diff --git a/src/pages/Inventory/sections/CompositesSection.tsx b/src/pages/Inventory/sections/CompositesSection.tsx index a3f8cfb..c2c8d44 100644 --- a/src/pages/Inventory/sections/CompositesSection.tsx +++ b/src/pages/Inventory/sections/CompositesSection.tsx @@ -8,6 +8,7 @@ import { BarChart, Breadcrumb, CommandPalette, + ConfirmDialog, DataTable, DetailPanel, Dropdown, @@ -17,6 +18,7 @@ import { LineChart, MenuItem, Modal, + MultiSelect, Popover, ProcessorTimeline, ShortcutsBar, @@ -208,6 +210,13 @@ export function CompositesSection() { ] const [activeFilters, setActiveFilters] = useState([{ label: 'Live', value: 'live' }]) + // ConfirmDialog + const [confirmOpen, setConfirmOpen] = useState(false) + const [confirmDone, setConfirmDone] = useState(false) + + // MultiSelect + const [multiValue, setMultiValue] = useState(['admin']) + // 15. Modal const [modalOpen, setModalOpen] = useState(false) @@ -294,6 +303,21 @@ export function CompositesSection() { /> + {/* 2b. ConfirmDialog */} + + + {confirmDone && Deleted!} + setConfirmOpen(false)} + onConfirm={() => { setConfirmOpen(false); setConfirmDone(true) }} + message={'Delete project "my-project"? This cannot be undone.'} + confirmText="my-project" + /> + + {/* 3. AreaChart */} + {/* 15b. MultiSelect */} + +
+ + + Selected: {multiValue.join(', ') || 'none'} + +
+
+ {/* 16. Popover */}

Primitives

@@ -328,6 +332,15 @@ export function PrimitivesSection() {
+ {/* 15b. InlineEdit */} + +
+ + {}} placeholder="Click to add name..." /> + {}} disabled /> +
+
+ {/* 16. KeyboardHint */}