diff --git a/src/features/admin/devkit/ComponentsPage.client.js b/src/features/admin/devkit/ComponentsPage.client.js index 4f53d1d..d90b2e5 100644 --- a/src/features/admin/devkit/ComponentsPage.client.js +++ b/src/features/admin/devkit/ComponentsPage.client.js @@ -1,5 +1,6 @@ 'use client'; +import { useState } from 'react'; import { Button, Card, @@ -9,12 +10,37 @@ import { Select, Textarea, Switch, + TagInput, StatCard, Loading, } from '@zen/core/shared/components'; import { UserCircle02Icon } from '@zen/core/shared/icons'; import AdminHeader from '../components/AdminHeader.js'; +const ROLE_OPTIONS = [ + { value: 'admin', label: 'Admin', color: '#6366f1' }, + { value: 'editor', label: 'Éditeur', color: '#f59e0b' }, + { value: 'viewer', label: 'Lecteur', color: '#10b981' }, + { value: 'support', label: 'Support', color: '#3b82f6' }, + { value: 'billing', label: 'Facturation', color: '#ec4899' }, +]; + +function TagInputDemo({ label, description, error, renderTag }) { + const [value, setValue] = useState([]); + return ( + + ); +} + function PreviewBlock({ title, children }) { return (
@@ -165,6 +191,19 @@ export default function ComponentsPage() {
+ +
+ + ( + {opt.label} + )} + /> + +
+
+