@dashforge/tw 0.11.0-beta → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -12
- package/COVERAGE.md +2 -2
- package/PARITY.md +7 -9
- package/PERFORMANCE.md +3 -4
- package/THEME-AUDIT.md +3 -4
- package/dist/components/Accordion/Accordion.d.ts +21 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/accordion.types.d.ts +74 -0
- package/dist/components/Accordion/accordion.types.d.ts.map +1 -0
- package/dist/components/Accordion/accordion.variants.d.ts +58 -0
- package/dist/components/Accordion/accordion.variants.d.ts.map +1 -0
- package/dist/components/AppShell/AppShell.d.ts +46 -0
- package/dist/components/AppShell/AppShell.d.ts.map +1 -0
- package/dist/components/AppShell/appShell.types.d.ts +62 -0
- package/dist/components/AppShell/appShell.types.d.ts.map +1 -0
- package/dist/components/AppShell/appShell.variants.d.ts +65 -0
- package/dist/components/AppShell/appShell.variants.d.ts.map +1 -0
- package/dist/components/AspectRatio/AspectRatio.d.ts +36 -0
- package/dist/components/AspectRatio/AspectRatio.d.ts.map +1 -0
- package/dist/components/AspectRatio/aspectRatio.types.d.ts +50 -0
- package/dist/components/AspectRatio/aspectRatio.types.d.ts.map +1 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +32 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -0
- package/dist/components/Autocomplete/autocomplete.types.d.ts +214 -0
- package/dist/components/Autocomplete/autocomplete.types.d.ts.map +1 -0
- package/dist/components/Autocomplete/autocomplete.variants.d.ts +214 -0
- package/dist/components/Autocomplete/autocomplete.variants.d.ts.map +1 -0
- package/dist/components/Box/Box.d.ts +36 -0
- package/dist/components/Box/Box.d.ts.map +1 -0
- package/dist/components/Box/box.types.d.ts +54 -0
- package/dist/components/Box/box.types.d.ts.map +1 -0
- package/dist/components/Box/box.variants.d.ts +402 -0
- package/dist/components/Box/box.variants.d.ts.map +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +23 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/Breadcrumbs/breadcrumbs.types.d.ts +98 -0
- package/dist/components/Breadcrumbs/breadcrumbs.types.d.ts.map +1 -0
- package/dist/components/Breadcrumbs/breadcrumbs.variants.d.ts +85 -0
- package/dist/components/Breadcrumbs/breadcrumbs.variants.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +44 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/button.types.d.ts +66 -0
- package/dist/components/Button/button.types.d.ts.map +1 -0
- package/dist/components/Button/button.variants.d.ts +104 -0
- package/dist/components/Button/button.variants.d.ts.map +1 -0
- package/dist/components/Calendar/Calendar.d.ts +14 -0
- package/dist/components/Calendar/Calendar.d.ts.map +1 -0
- package/dist/components/Calendar/calendar.types.d.ts +72 -0
- package/dist/components/Calendar/calendar.types.d.ts.map +1 -0
- package/dist/components/Calendar/calendar.variants.d.ts +99 -0
- package/dist/components/Calendar/calendar.variants.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +31 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/checkbox.types.d.ts +86 -0
- package/dist/components/Checkbox/checkbox.types.d.ts.map +1 -0
- package/dist/components/Checkbox/checkbox.variants.d.ts +109 -0
- package/dist/components/Checkbox/checkbox.variants.d.ts.map +1 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +38 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -0
- package/dist/components/ConfirmDialog/confirmDialog.types.d.ts +80 -0
- package/dist/components/ConfirmDialog/confirmDialog.types.d.ts.map +1 -0
- package/dist/components/ConfirmDialog/confirmDialog.variants.d.ts +90 -0
- package/dist/components/ConfirmDialog/confirmDialog.variants.d.ts.map +1 -0
- package/dist/components/Container/Container.d.ts +35 -0
- package/dist/components/Container/Container.d.ts.map +1 -0
- package/dist/components/Container/container.types.d.ts +41 -0
- package/dist/components/Container/container.types.d.ts.map +1 -0
- package/dist/components/Container/container.variants.d.ts +93 -0
- package/dist/components/Container/container.variants.d.ts.map +1 -0
- package/dist/components/DataGrid/DataGrid.d.ts +29 -0
- package/dist/components/DataGrid/DataGrid.d.ts.map +1 -0
- package/dist/components/DataGrid/dataGrid.types.d.ts +214 -0
- package/dist/components/DataGrid/dataGrid.types.d.ts.map +1 -0
- package/dist/components/DataGrid/dataGrid.variants.d.ts +222 -0
- package/dist/components/DataGrid/dataGrid.variants.d.ts.map +1 -0
- package/dist/components/DataGrid/filters/ColumnFilters.d.ts +23 -0
- package/dist/components/DataGrid/filters/ColumnFilters.d.ts.map +1 -0
- package/dist/components/DataGrid/reorder/useColumnReorder.d.ts +50 -0
- package/dist/components/DataGrid/reorder/useColumnReorder.d.ts.map +1 -0
- package/dist/components/DataGrid/resize/useColumnResize.d.ts +39 -0
- package/dist/components/DataGrid/resize/useColumnResize.d.ts.map +1 -0
- package/dist/components/DataGrid/visibility/ColumnVisibilityMenu.d.ts +44 -0
- package/dist/components/DataGrid/visibility/ColumnVisibilityMenu.d.ts.map +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +14 -0
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/components/DatePicker/datePicker.types.d.ts +88 -0
- package/dist/components/DatePicker/datePicker.types.d.ts.map +1 -0
- package/dist/components/DatePicker/datePicker.variants.d.ts +97 -0
- package/dist/components/DatePicker/datePicker.variants.d.ts.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +13 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/dist/components/DateRangePicker/dateRangePicker.types.d.ts +85 -0
- package/dist/components/DateRangePicker/dateRangePicker.types.d.ts.map +1 -0
- package/dist/components/DateRangePicker/dateRangePicker.variants.d.ts +183 -0
- package/dist/components/DateRangePicker/dateRangePicker.variants.d.ts.map +1 -0
- package/dist/components/DateTimePicker/DateTimePicker.d.ts +13 -0
- package/dist/components/DateTimePicker/DateTimePicker.d.ts.map +1 -0
- package/dist/components/DateTimePicker/dateTimePicker.types.d.ts +90 -0
- package/dist/components/DateTimePicker/dateTimePicker.types.d.ts.map +1 -0
- package/dist/components/DateTimePicker/dateTimePicker.variants.d.ts +107 -0
- package/dist/components/DateTimePicker/dateTimePicker.variants.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +17 -0
- package/dist/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog/dialog.types.d.ts +75 -0
- package/dist/components/Dialog/dialog.types.d.ts.map +1 -0
- package/dist/components/Dialog/dialog.variants.d.ts +80 -0
- package/dist/components/Dialog/dialog.variants.d.ts.map +1 -0
- package/dist/components/Divider/Divider.d.ts +50 -0
- package/dist/components/Divider/Divider.d.ts.map +1 -0
- package/dist/components/Divider/divider.types.d.ts +47 -0
- package/dist/components/Divider/divider.types.d.ts.map +1 -0
- package/dist/components/Divider/divider.variants.d.ts +129 -0
- package/dist/components/Divider/divider.variants.d.ts.map +1 -0
- package/dist/components/Grid/Grid.d.ts +32 -0
- package/dist/components/Grid/Grid.d.ts.map +1 -0
- package/dist/components/Grid/grid.types.d.ts +103 -0
- package/dist/components/Grid/grid.types.d.ts.map +1 -0
- package/dist/components/Grid/grid.variants.d.ts +453 -0
- package/dist/components/Grid/grid.variants.d.ts.map +1 -0
- package/dist/components/LeftNav/LeftNav.d.ts +34 -0
- package/dist/components/LeftNav/LeftNav.d.ts.map +1 -0
- package/dist/components/LeftNav/leftNav.types.d.ts +136 -0
- package/dist/components/LeftNav/leftNav.types.d.ts.map +1 -0
- package/dist/components/LeftNav/leftNav.variants.d.ts +143 -0
- package/dist/components/LeftNav/leftNav.variants.d.ts.map +1 -0
- package/dist/components/NumberField/NumberField.d.ts +18 -0
- package/dist/components/NumberField/NumberField.d.ts.map +1 -0
- package/dist/components/NumberField/numberField.types.d.ts +79 -0
- package/dist/components/NumberField/numberField.types.d.ts.map +1 -0
- package/dist/components/NumberField/numberField.variants.d.ts +169 -0
- package/dist/components/NumberField/numberField.variants.d.ts.map +1 -0
- package/dist/components/OTPField/OTPField.d.ts +25 -0
- package/dist/components/OTPField/OTPField.d.ts.map +1 -0
- package/dist/components/OTPField/otpField.types.d.ts +74 -0
- package/dist/components/OTPField/otpField.types.d.ts.map +1 -0
- package/dist/components/OTPField/otpField.variants.d.ts +105 -0
- package/dist/components/OTPField/otpField.variants.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +32 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/pagination.helpers.d.ts +23 -0
- package/dist/components/Pagination/pagination.helpers.d.ts.map +1 -0
- package/dist/components/Pagination/pagination.types.d.ts +120 -0
- package/dist/components/Pagination/pagination.types.d.ts.map +1 -0
- package/dist/components/Pagination/pagination.variants.d.ts +150 -0
- package/dist/components/Pagination/pagination.variants.d.ts.map +1 -0
- package/dist/components/Popover/Popover.d.ts +15 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/popover.types.d.ts +45 -0
- package/dist/components/Popover/popover.types.d.ts.map +1 -0
- package/dist/components/Popover/popover.variants.d.ts +34 -0
- package/dist/components/Popover/popover.variants.d.ts.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +35 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/components/RadioGroup/radioGroup.types.d.ts +103 -0
- package/dist/components/RadioGroup/radioGroup.types.d.ts.map +1 -0
- package/dist/components/RadioGroup/radioGroup.variants.d.ts +166 -0
- package/dist/components/RadioGroup/radioGroup.variants.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +23 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/skeleton.types.d.ts +56 -0
- package/dist/components/Skeleton/skeleton.types.d.ts.map +1 -0
- package/dist/components/Skeleton/skeleton.variants.d.ts +110 -0
- package/dist/components/Skeleton/skeleton.variants.d.ts.map +1 -0
- package/dist/components/Snackbar/Snackbar.d.ts +37 -0
- package/dist/components/Snackbar/Snackbar.d.ts.map +1 -0
- package/dist/components/Snackbar/snackbar.types.d.ts +86 -0
- package/dist/components/Snackbar/snackbar.types.d.ts.map +1 -0
- package/dist/components/Snackbar/snackbar.variants.d.ts +153 -0
- package/dist/components/Snackbar/snackbar.variants.d.ts.map +1 -0
- package/dist/components/Stack/Stack.d.ts +24 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/stack.types.d.ts +61 -0
- package/dist/components/Stack/stack.types.d.ts.map +1 -0
- package/dist/components/Stack/stack.variants.d.ts +163 -0
- package/dist/components/Stack/stack.variants.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +15 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/switch.types.d.ts +47 -0
- package/dist/components/Switch/switch.types.d.ts.map +1 -0
- package/dist/components/Switch/switch.variants.d.ts +105 -0
- package/dist/components/Switch/switch.variants.d.ts.map +1 -0
- package/dist/components/Table/Table.d.ts +24 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/cells/RenderButton.d.ts +13 -0
- package/dist/components/Table/cells/RenderButton.d.ts.map +1 -0
- package/dist/components/Table/cells/RenderChip.d.ts +80 -0
- package/dist/components/Table/cells/RenderChip.d.ts.map +1 -0
- package/dist/components/Table/cells/RenderText.d.ts +21 -0
- package/dist/components/Table/cells/RenderText.d.ts.map +1 -0
- package/dist/components/Table/cells/RenderTwoLine.d.ts +20 -0
- package/dist/components/Table/cells/RenderTwoLine.d.ts.map +1 -0
- package/dist/components/Table/cells/RowActionsMenu.d.ts +36 -0
- package/dist/components/Table/cells/RowActionsMenu.d.ts.map +1 -0
- package/dist/components/Table/cells/index.d.ts +11 -0
- package/dist/components/Table/cells/index.d.ts.map +1 -0
- package/dist/components/Table/table.types.d.ts +399 -0
- package/dist/components/Table/table.types.d.ts.map +1 -0
- package/dist/components/Table/table.variants.d.ts +285 -0
- package/dist/components/Table/table.variants.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +19 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/tabs.types.d.ts +61 -0
- package/dist/components/Tabs/tabs.types.d.ts.map +1 -0
- package/dist/components/Tabs/tabs.variants.d.ts +82 -0
- package/dist/components/Tabs/tabs.variants.d.ts.map +1 -0
- package/dist/components/Tabs/useTabs.d.ts +55 -0
- package/dist/components/Tabs/useTabs.d.ts.map +1 -0
- package/dist/components/TextField/TextField.d.ts +25 -0
- package/dist/components/TextField/TextField.d.ts.map +1 -0
- package/dist/components/TextField/textField.types.d.ts +98 -0
- package/dist/components/TextField/textField.types.d.ts.map +1 -0
- package/dist/components/TextField/textField.variants.d.ts +166 -0
- package/dist/components/TextField/textField.variants.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +16 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/textarea.types.d.ts +63 -0
- package/dist/components/Textarea/textarea.types.d.ts.map +1 -0
- package/dist/components/Textarea/textarea.variants.d.ts +197 -0
- package/dist/components/Textarea/textarea.variants.d.ts.map +1 -0
- package/dist/components/TimePicker/TimePicker.d.ts +12 -0
- package/dist/components/TimePicker/TimePicker.d.ts.map +1 -0
- package/dist/components/TimePicker/timePicker.types.d.ts +80 -0
- package/dist/components/TimePicker/timePicker.types.d.ts.map +1 -0
- package/dist/components/TimePicker/timePicker.variants.d.ts +103 -0
- package/dist/components/TimePicker/timePicker.variants.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +29 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/tooltip.types.d.ts +47 -0
- package/dist/components/Tooltip/tooltip.types.d.ts.map +1 -0
- package/dist/components/Tooltip/tooltip.variants.d.ts +34 -0
- package/dist/components/Tooltip/tooltip.variants.d.ts.map +1 -0
- package/dist/components/TopBar/TopBar.d.ts +33 -0
- package/dist/components/TopBar/TopBar.d.ts.map +1 -0
- package/dist/components/TopBar/topBar.types.d.ts +49 -0
- package/dist/components/TopBar/topBar.types.d.ts.map +1 -0
- package/dist/components/TopBar/topBar.variants.d.ts +79 -0
- package/dist/components/TopBar/topBar.variants.d.ts.map +1 -0
- package/dist/components/Typography/Typography.d.ts +42 -0
- package/dist/components/Typography/Typography.d.ts.map +1 -0
- package/dist/components/Typography/typography.types.d.ts +61 -0
- package/dist/components/Typography/typography.types.d.ts.map +1 -0
- package/dist/components/Typography/typography.variants.d.ts +167 -0
- package/dist/components/Typography/typography.variants.d.ts.map +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +42 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/dist/components/VisuallyHidden/visuallyHidden.types.d.ts +42 -0
- package/dist/components/VisuallyHidden/visuallyHidden.types.d.ts.map +1 -0
- package/dist/components/_shared/data/getNestedValue.d.ts +20 -0
- package/dist/components/_shared/data/getNestedValue.d.ts.map +1 -0
- package/dist/components/_shared/data/useColumnAutoDetect.d.ts +45 -0
- package/dist/components/_shared/data/useColumnAutoDetect.d.ts.map +1 -0
- package/dist/components/_shared/data/useControllableState.d.ts +23 -0
- package/dist/components/_shared/data/useControllableState.d.ts.map +1 -0
- package/dist/components/_shared/data/useDebouncedValue.d.ts +10 -0
- package/dist/components/_shared/data/useDebouncedValue.d.ts.map +1 -0
- package/dist/components/_shared/data/useTableFilter.d.ts +36 -0
- package/dist/components/_shared/data/useTableFilter.d.ts.map +1 -0
- package/dist/components/_shared/data/useTableSearch.d.ts +23 -0
- package/dist/components/_shared/data/useTableSearch.d.ts.map +1 -0
- package/dist/components/_shared/data/useTableSelection.d.ts +25 -0
- package/dist/components/_shared/data/useTableSelection.d.ts.map +1 -0
- package/dist/components/_shared/data/useTableSort.d.ts +20 -0
- package/dist/components/_shared/data/useTableSort.d.ts.map +1 -0
- package/dist/components/_shared/data/useVirtualizer.d.ts +107 -0
- package/dist/components/_shared/data/useVirtualizer.d.ts.map +1 -0
- package/dist/components/_shared/resolveValidationState.d.ts +42 -0
- package/dist/components/_shared/resolveValidationState.d.ts.map +1 -0
- package/dist/hooks/useAccessState.d.ts +37 -0
- package/dist/hooks/useAccessState.d.ts.map +1 -0
- package/dist/index.d.ts +146 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/dist/utils/cn.d.ts +26 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/package.json +7 -7
- package/src/components/TextField/TextField.test.tsx +5 -1
- package/vite.config.ts +8 -0
- package/vitest.config.mts +8 -1
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
/**
|
|
3
|
+
* `gridVariants` — CSS Grid container + item, polymorphic in role.
|
|
4
|
+
*
|
|
5
|
+
* Architectural choice (planned with the user — F9 deep dive):
|
|
6
|
+
*
|
|
7
|
+
* Pattern is MUI Grid v2 from the API side (`<Grid container>` +
|
|
8
|
+
* `<Grid xs={6}>`), but engine is REAL CSS Grid under the hood
|
|
9
|
+
* (`display: grid` + `grid-template-columns: repeat(N, 1fr)` +
|
|
10
|
+
* `col-span-*`). MUI v2 uses flexbox + basis percentages — historical
|
|
11
|
+
* IE11 reasons. In 2026, CSS Grid is universally supported AND
|
|
12
|
+
* Tailwind ships `grid-cols-*` / `col-span-*` natively, so flexbox
|
|
13
|
+
* would be a downgrade.
|
|
14
|
+
*
|
|
15
|
+
* Two distinct shapes coexist in the same TV recipe:
|
|
16
|
+
*
|
|
17
|
+
* • container=true — display:grid + cols + gap + autoFlow
|
|
18
|
+
* • container=false — col-span at each breakpoint (xs/sm/md/lg/xl)
|
|
19
|
+
*
|
|
20
|
+
* The discriminated union lives in grid.types.ts (TypeScript-level);
|
|
21
|
+
* here the TV catalogue exposes every axis so the consumer's choice
|
|
22
|
+
* triggers the right classes regardless of which role the component
|
|
23
|
+
* is playing. Unused axes produce no classes (TV silently drops
|
|
24
|
+
* undefined variants), so a container Grid never accidentally emits
|
|
25
|
+
* `col-span-6` and an item Grid never accidentally emits `grid`.
|
|
26
|
+
*
|
|
27
|
+
* Mapping table size:
|
|
28
|
+
* • cols : 6 entries (12, 6, 4, 3, 2, 1)
|
|
29
|
+
* • autoFlow : 5 entries
|
|
30
|
+
* • span axes (5×14) : 70 entries (xs/sm/md/lg/xl × {1..12, auto, full})
|
|
31
|
+
* • gap / gapX / gapY : 33 entries (11 steps × 3 axes)
|
|
32
|
+
*
|
|
33
|
+
* Total: ~115 literal class names. All explicit, all Tailwind-scannable.
|
|
34
|
+
* Bundle CSS impact when fully exercised: ~3 KB gz (mostly the
|
|
35
|
+
* responsive col-span set).
|
|
36
|
+
*/
|
|
37
|
+
export declare const gridVariants: import("tailwind-variants").TVReturnType<{
|
|
38
|
+
container: {
|
|
39
|
+
true: string;
|
|
40
|
+
};
|
|
41
|
+
cols: {
|
|
42
|
+
1: string;
|
|
43
|
+
2: string;
|
|
44
|
+
3: string;
|
|
45
|
+
4: string;
|
|
46
|
+
6: string;
|
|
47
|
+
12: string;
|
|
48
|
+
};
|
|
49
|
+
autoFlow: {
|
|
50
|
+
row: string;
|
|
51
|
+
col: string;
|
|
52
|
+
dense: string;
|
|
53
|
+
'row-dense': string;
|
|
54
|
+
'col-dense': string;
|
|
55
|
+
};
|
|
56
|
+
spacing: {
|
|
57
|
+
0: string;
|
|
58
|
+
'0.5': string;
|
|
59
|
+
1: string;
|
|
60
|
+
2: string;
|
|
61
|
+
3: string;
|
|
62
|
+
4: string;
|
|
63
|
+
6: string;
|
|
64
|
+
8: string;
|
|
65
|
+
12: string;
|
|
66
|
+
16: string;
|
|
67
|
+
24: string;
|
|
68
|
+
};
|
|
69
|
+
spacingX: {
|
|
70
|
+
0: string;
|
|
71
|
+
'0.5': string;
|
|
72
|
+
1: string;
|
|
73
|
+
2: string;
|
|
74
|
+
3: string;
|
|
75
|
+
4: string;
|
|
76
|
+
6: string;
|
|
77
|
+
8: string;
|
|
78
|
+
12: string;
|
|
79
|
+
16: string;
|
|
80
|
+
24: string;
|
|
81
|
+
};
|
|
82
|
+
spacingY: {
|
|
83
|
+
0: string;
|
|
84
|
+
'0.5': string;
|
|
85
|
+
1: string;
|
|
86
|
+
2: string;
|
|
87
|
+
3: string;
|
|
88
|
+
4: string;
|
|
89
|
+
6: string;
|
|
90
|
+
8: string;
|
|
91
|
+
12: string;
|
|
92
|
+
16: string;
|
|
93
|
+
24: string;
|
|
94
|
+
};
|
|
95
|
+
xs: {
|
|
96
|
+
1: string;
|
|
97
|
+
2: string;
|
|
98
|
+
3: string;
|
|
99
|
+
4: string;
|
|
100
|
+
5: string;
|
|
101
|
+
6: string;
|
|
102
|
+
7: string;
|
|
103
|
+
8: string;
|
|
104
|
+
9: string;
|
|
105
|
+
10: string;
|
|
106
|
+
11: string;
|
|
107
|
+
12: string;
|
|
108
|
+
auto: string;
|
|
109
|
+
full: string;
|
|
110
|
+
};
|
|
111
|
+
sm: {
|
|
112
|
+
1: string;
|
|
113
|
+
2: string;
|
|
114
|
+
3: string;
|
|
115
|
+
4: string;
|
|
116
|
+
5: string;
|
|
117
|
+
6: string;
|
|
118
|
+
7: string;
|
|
119
|
+
8: string;
|
|
120
|
+
9: string;
|
|
121
|
+
10: string;
|
|
122
|
+
11: string;
|
|
123
|
+
12: string;
|
|
124
|
+
auto: string;
|
|
125
|
+
full: string;
|
|
126
|
+
};
|
|
127
|
+
md: {
|
|
128
|
+
1: string;
|
|
129
|
+
2: string;
|
|
130
|
+
3: string;
|
|
131
|
+
4: string;
|
|
132
|
+
5: string;
|
|
133
|
+
6: string;
|
|
134
|
+
7: string;
|
|
135
|
+
8: string;
|
|
136
|
+
9: string;
|
|
137
|
+
10: string;
|
|
138
|
+
11: string;
|
|
139
|
+
12: string;
|
|
140
|
+
auto: string;
|
|
141
|
+
full: string;
|
|
142
|
+
};
|
|
143
|
+
lg: {
|
|
144
|
+
1: string;
|
|
145
|
+
2: string;
|
|
146
|
+
3: string;
|
|
147
|
+
4: string;
|
|
148
|
+
5: string;
|
|
149
|
+
6: string;
|
|
150
|
+
7: string;
|
|
151
|
+
8: string;
|
|
152
|
+
9: string;
|
|
153
|
+
10: string;
|
|
154
|
+
11: string;
|
|
155
|
+
12: string;
|
|
156
|
+
auto: string;
|
|
157
|
+
full: string;
|
|
158
|
+
};
|
|
159
|
+
xl: {
|
|
160
|
+
1: string;
|
|
161
|
+
2: string;
|
|
162
|
+
3: string;
|
|
163
|
+
4: string;
|
|
164
|
+
5: string;
|
|
165
|
+
6: string;
|
|
166
|
+
7: string;
|
|
167
|
+
8: string;
|
|
168
|
+
9: string;
|
|
169
|
+
10: string;
|
|
170
|
+
11: string;
|
|
171
|
+
12: string;
|
|
172
|
+
auto: string;
|
|
173
|
+
full: string;
|
|
174
|
+
};
|
|
175
|
+
}, undefined, "", {
|
|
176
|
+
container: {
|
|
177
|
+
true: string;
|
|
178
|
+
};
|
|
179
|
+
cols: {
|
|
180
|
+
1: string;
|
|
181
|
+
2: string;
|
|
182
|
+
3: string;
|
|
183
|
+
4: string;
|
|
184
|
+
6: string;
|
|
185
|
+
12: string;
|
|
186
|
+
};
|
|
187
|
+
autoFlow: {
|
|
188
|
+
row: string;
|
|
189
|
+
col: string;
|
|
190
|
+
dense: string;
|
|
191
|
+
'row-dense': string;
|
|
192
|
+
'col-dense': string;
|
|
193
|
+
};
|
|
194
|
+
spacing: {
|
|
195
|
+
0: string;
|
|
196
|
+
'0.5': string;
|
|
197
|
+
1: string;
|
|
198
|
+
2: string;
|
|
199
|
+
3: string;
|
|
200
|
+
4: string;
|
|
201
|
+
6: string;
|
|
202
|
+
8: string;
|
|
203
|
+
12: string;
|
|
204
|
+
16: string;
|
|
205
|
+
24: string;
|
|
206
|
+
};
|
|
207
|
+
spacingX: {
|
|
208
|
+
0: string;
|
|
209
|
+
'0.5': string;
|
|
210
|
+
1: string;
|
|
211
|
+
2: string;
|
|
212
|
+
3: string;
|
|
213
|
+
4: string;
|
|
214
|
+
6: string;
|
|
215
|
+
8: string;
|
|
216
|
+
12: string;
|
|
217
|
+
16: string;
|
|
218
|
+
24: string;
|
|
219
|
+
};
|
|
220
|
+
spacingY: {
|
|
221
|
+
0: string;
|
|
222
|
+
'0.5': string;
|
|
223
|
+
1: string;
|
|
224
|
+
2: string;
|
|
225
|
+
3: string;
|
|
226
|
+
4: string;
|
|
227
|
+
6: string;
|
|
228
|
+
8: string;
|
|
229
|
+
12: string;
|
|
230
|
+
16: string;
|
|
231
|
+
24: string;
|
|
232
|
+
};
|
|
233
|
+
xs: {
|
|
234
|
+
1: string;
|
|
235
|
+
2: string;
|
|
236
|
+
3: string;
|
|
237
|
+
4: string;
|
|
238
|
+
5: string;
|
|
239
|
+
6: string;
|
|
240
|
+
7: string;
|
|
241
|
+
8: string;
|
|
242
|
+
9: string;
|
|
243
|
+
10: string;
|
|
244
|
+
11: string;
|
|
245
|
+
12: string;
|
|
246
|
+
auto: string;
|
|
247
|
+
full: string;
|
|
248
|
+
};
|
|
249
|
+
sm: {
|
|
250
|
+
1: string;
|
|
251
|
+
2: string;
|
|
252
|
+
3: string;
|
|
253
|
+
4: string;
|
|
254
|
+
5: string;
|
|
255
|
+
6: string;
|
|
256
|
+
7: string;
|
|
257
|
+
8: string;
|
|
258
|
+
9: string;
|
|
259
|
+
10: string;
|
|
260
|
+
11: string;
|
|
261
|
+
12: string;
|
|
262
|
+
auto: string;
|
|
263
|
+
full: string;
|
|
264
|
+
};
|
|
265
|
+
md: {
|
|
266
|
+
1: string;
|
|
267
|
+
2: string;
|
|
268
|
+
3: string;
|
|
269
|
+
4: string;
|
|
270
|
+
5: string;
|
|
271
|
+
6: string;
|
|
272
|
+
7: string;
|
|
273
|
+
8: string;
|
|
274
|
+
9: string;
|
|
275
|
+
10: string;
|
|
276
|
+
11: string;
|
|
277
|
+
12: string;
|
|
278
|
+
auto: string;
|
|
279
|
+
full: string;
|
|
280
|
+
};
|
|
281
|
+
lg: {
|
|
282
|
+
1: string;
|
|
283
|
+
2: string;
|
|
284
|
+
3: string;
|
|
285
|
+
4: string;
|
|
286
|
+
5: string;
|
|
287
|
+
6: string;
|
|
288
|
+
7: string;
|
|
289
|
+
8: string;
|
|
290
|
+
9: string;
|
|
291
|
+
10: string;
|
|
292
|
+
11: string;
|
|
293
|
+
12: string;
|
|
294
|
+
auto: string;
|
|
295
|
+
full: string;
|
|
296
|
+
};
|
|
297
|
+
xl: {
|
|
298
|
+
1: string;
|
|
299
|
+
2: string;
|
|
300
|
+
3: string;
|
|
301
|
+
4: string;
|
|
302
|
+
5: string;
|
|
303
|
+
6: string;
|
|
304
|
+
7: string;
|
|
305
|
+
8: string;
|
|
306
|
+
9: string;
|
|
307
|
+
10: string;
|
|
308
|
+
11: string;
|
|
309
|
+
12: string;
|
|
310
|
+
auto: string;
|
|
311
|
+
full: string;
|
|
312
|
+
};
|
|
313
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
314
|
+
container: {
|
|
315
|
+
true: string;
|
|
316
|
+
};
|
|
317
|
+
cols: {
|
|
318
|
+
1: string;
|
|
319
|
+
2: string;
|
|
320
|
+
3: string;
|
|
321
|
+
4: string;
|
|
322
|
+
6: string;
|
|
323
|
+
12: string;
|
|
324
|
+
};
|
|
325
|
+
autoFlow: {
|
|
326
|
+
row: string;
|
|
327
|
+
col: string;
|
|
328
|
+
dense: string;
|
|
329
|
+
'row-dense': string;
|
|
330
|
+
'col-dense': string;
|
|
331
|
+
};
|
|
332
|
+
spacing: {
|
|
333
|
+
0: string;
|
|
334
|
+
'0.5': string;
|
|
335
|
+
1: string;
|
|
336
|
+
2: string;
|
|
337
|
+
3: string;
|
|
338
|
+
4: string;
|
|
339
|
+
6: string;
|
|
340
|
+
8: string;
|
|
341
|
+
12: string;
|
|
342
|
+
16: string;
|
|
343
|
+
24: string;
|
|
344
|
+
};
|
|
345
|
+
spacingX: {
|
|
346
|
+
0: string;
|
|
347
|
+
'0.5': string;
|
|
348
|
+
1: string;
|
|
349
|
+
2: string;
|
|
350
|
+
3: string;
|
|
351
|
+
4: string;
|
|
352
|
+
6: string;
|
|
353
|
+
8: string;
|
|
354
|
+
12: string;
|
|
355
|
+
16: string;
|
|
356
|
+
24: string;
|
|
357
|
+
};
|
|
358
|
+
spacingY: {
|
|
359
|
+
0: string;
|
|
360
|
+
'0.5': string;
|
|
361
|
+
1: string;
|
|
362
|
+
2: string;
|
|
363
|
+
3: string;
|
|
364
|
+
4: string;
|
|
365
|
+
6: string;
|
|
366
|
+
8: string;
|
|
367
|
+
12: string;
|
|
368
|
+
16: string;
|
|
369
|
+
24: string;
|
|
370
|
+
};
|
|
371
|
+
xs: {
|
|
372
|
+
1: string;
|
|
373
|
+
2: string;
|
|
374
|
+
3: string;
|
|
375
|
+
4: string;
|
|
376
|
+
5: string;
|
|
377
|
+
6: string;
|
|
378
|
+
7: string;
|
|
379
|
+
8: string;
|
|
380
|
+
9: string;
|
|
381
|
+
10: string;
|
|
382
|
+
11: string;
|
|
383
|
+
12: string;
|
|
384
|
+
auto: string;
|
|
385
|
+
full: string;
|
|
386
|
+
};
|
|
387
|
+
sm: {
|
|
388
|
+
1: string;
|
|
389
|
+
2: string;
|
|
390
|
+
3: string;
|
|
391
|
+
4: string;
|
|
392
|
+
5: string;
|
|
393
|
+
6: string;
|
|
394
|
+
7: string;
|
|
395
|
+
8: string;
|
|
396
|
+
9: string;
|
|
397
|
+
10: string;
|
|
398
|
+
11: string;
|
|
399
|
+
12: string;
|
|
400
|
+
auto: string;
|
|
401
|
+
full: string;
|
|
402
|
+
};
|
|
403
|
+
md: {
|
|
404
|
+
1: string;
|
|
405
|
+
2: string;
|
|
406
|
+
3: string;
|
|
407
|
+
4: string;
|
|
408
|
+
5: string;
|
|
409
|
+
6: string;
|
|
410
|
+
7: string;
|
|
411
|
+
8: string;
|
|
412
|
+
9: string;
|
|
413
|
+
10: string;
|
|
414
|
+
11: string;
|
|
415
|
+
12: string;
|
|
416
|
+
auto: string;
|
|
417
|
+
full: string;
|
|
418
|
+
};
|
|
419
|
+
lg: {
|
|
420
|
+
1: string;
|
|
421
|
+
2: string;
|
|
422
|
+
3: string;
|
|
423
|
+
4: string;
|
|
424
|
+
5: string;
|
|
425
|
+
6: string;
|
|
426
|
+
7: string;
|
|
427
|
+
8: string;
|
|
428
|
+
9: string;
|
|
429
|
+
10: string;
|
|
430
|
+
11: string;
|
|
431
|
+
12: string;
|
|
432
|
+
auto: string;
|
|
433
|
+
full: string;
|
|
434
|
+
};
|
|
435
|
+
xl: {
|
|
436
|
+
1: string;
|
|
437
|
+
2: string;
|
|
438
|
+
3: string;
|
|
439
|
+
4: string;
|
|
440
|
+
5: string;
|
|
441
|
+
6: string;
|
|
442
|
+
7: string;
|
|
443
|
+
8: string;
|
|
444
|
+
9: string;
|
|
445
|
+
10: string;
|
|
446
|
+
11: string;
|
|
447
|
+
12: string;
|
|
448
|
+
auto: string;
|
|
449
|
+
full: string;
|
|
450
|
+
};
|
|
451
|
+
}, undefined, "", unknown, unknown, undefined>>;
|
|
452
|
+
export type GridVariants = VariantProps<typeof gridVariants>;
|
|
453
|
+
//# sourceMappingURL=grid.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/grid.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CA6FvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { LeftNavProps } from './leftNav.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Dashforge TW LeftNav — router-agnostic sidebar navigation.
|
|
4
|
+
*
|
|
5
|
+
* Pure presentational. The consumer wires `activeId` from the current
|
|
6
|
+
* route. Each row renders as a real `<a>` (with `href`) or a `<button>`
|
|
7
|
+
* (with `onSelect`); `linkComponent` swaps in a router-aware link
|
|
8
|
+
* component for SPA navigation.
|
|
9
|
+
*
|
|
10
|
+
* Modes:
|
|
11
|
+
* - **Expanded** (`collapsed={false}`): full-width with labels +
|
|
12
|
+
* badges + group children visible.
|
|
13
|
+
* - **Rail** (`collapsed={true}`): 56px wide, icons only, labels
|
|
14
|
+
* hidden from sighted users (still announced to screen readers via
|
|
15
|
+
* `sr-only`). Group children are hidden — clicking the group
|
|
16
|
+
* header is a no-op visually in rail mode (consumer is expected
|
|
17
|
+
* to either expand the nav or surface a flyout in a follow-up).
|
|
18
|
+
*
|
|
19
|
+
* **A11y**:
|
|
20
|
+
* - `<nav aria-label="…">` landmark.
|
|
21
|
+
* - `aria-current="page"` on the active row.
|
|
22
|
+
* - Groups expose `aria-expanded` / `aria-controls` and the children
|
|
23
|
+
* wrapper is `role="region" aria-labelledby="…-header"`.
|
|
24
|
+
* - Rail-mode tooltips via the native `title` attribute (preserves
|
|
25
|
+
* hover discoverability when labels are visually hidden).
|
|
26
|
+
*
|
|
27
|
+
* **Re-render contract**:
|
|
28
|
+
* - Rows are extracted into stable sub-components so a single
|
|
29
|
+
* `activeId` change re-renders all rows but each does only its
|
|
30
|
+
* own `useAccessState` lookup; this is the price of per-row RBAC.
|
|
31
|
+
* - Group expand/collapse re-renders ONLY that group (local state).
|
|
32
|
+
*/
|
|
33
|
+
export declare function LeftNav(props: LeftNavProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=LeftNav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeftNav.d.ts","sourceRoot":"","sources":["../../../src/components/LeftNav/LeftNav.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAIV,YAAY,EACb,MAAM,oBAAoB,CAAC;AA+M5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,2CAkF1C"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { ReactNode, ComponentType, AnchorHTMLAttributes, Ref } from 'react';
|
|
2
|
+
import type { AccessRequirement } from '@dashforge/rbac';
|
|
3
|
+
import type { LeftNavVariants } from './leftNav.variants.js';
|
|
4
|
+
/**
|
|
5
|
+
* One row in the LeftNav. May be either a clickable item OR a group
|
|
6
|
+
* (a header that owns nested children, optionally collapsible).
|
|
7
|
+
*/
|
|
8
|
+
export type LeftNavNode = LeftNavItem | LeftNavGroup;
|
|
9
|
+
export interface LeftNavItem {
|
|
10
|
+
kind?: 'item';
|
|
11
|
+
/** Stable id used for `activeId` matching + React keys. */
|
|
12
|
+
id: string;
|
|
13
|
+
label: ReactNode;
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Destination for navigation. Omit for a pure-callback item (use
|
|
17
|
+
* `onSelect`).
|
|
18
|
+
*/
|
|
19
|
+
href?: string;
|
|
20
|
+
/** Fired when the row is clicked (in addition to navigation). */
|
|
21
|
+
onSelect?: () => void;
|
|
22
|
+
/** Optional pill / counter rendered to the right of the label. */
|
|
23
|
+
badge?: ReactNode;
|
|
24
|
+
/** Per-item disabled flag. */
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/** RBAC access requirement — hides / disables the row. */
|
|
27
|
+
access?: AccessRequirement;
|
|
28
|
+
}
|
|
29
|
+
export interface LeftNavGroup {
|
|
30
|
+
kind: 'group';
|
|
31
|
+
id: string;
|
|
32
|
+
label: ReactNode;
|
|
33
|
+
icon?: ReactNode;
|
|
34
|
+
children: LeftNavItem[];
|
|
35
|
+
/**
|
|
36
|
+
* Initial expanded state when used in uncontrolled mode. Default
|
|
37
|
+
* `true` (groups open by default — most app navs want immediate
|
|
38
|
+
* visibility).
|
|
39
|
+
*/
|
|
40
|
+
defaultExpanded?: boolean;
|
|
41
|
+
/** Controlled expanded state. Provide `onExpandedChange` to update. */
|
|
42
|
+
expanded?: boolean;
|
|
43
|
+
/** RBAC access requirement — hides / disables the whole group. */
|
|
44
|
+
access?: AccessRequirement;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Polymorphic link component prop. Defaults to `<a>`. Pass a
|
|
48
|
+
* router-aware component (react-router `Link`, Next `Link`) for SPA
|
|
49
|
+
* navigation.
|
|
50
|
+
*/
|
|
51
|
+
export type LeftNavLinkComponent = ComponentType<AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
52
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
53
|
+
}>;
|
|
54
|
+
export interface LeftNavSlotProps {
|
|
55
|
+
root?: {
|
|
56
|
+
className?: string;
|
|
57
|
+
};
|
|
58
|
+
brand?: {
|
|
59
|
+
className?: string;
|
|
60
|
+
};
|
|
61
|
+
list?: {
|
|
62
|
+
className?: string;
|
|
63
|
+
};
|
|
64
|
+
item?: {
|
|
65
|
+
className?: string;
|
|
66
|
+
};
|
|
67
|
+
itemLink?: {
|
|
68
|
+
className?: string;
|
|
69
|
+
};
|
|
70
|
+
itemActive?: {
|
|
71
|
+
className?: string;
|
|
72
|
+
};
|
|
73
|
+
itemIcon?: {
|
|
74
|
+
className?: string;
|
|
75
|
+
};
|
|
76
|
+
itemLabel?: {
|
|
77
|
+
className?: string;
|
|
78
|
+
};
|
|
79
|
+
itemBadge?: {
|
|
80
|
+
className?: string;
|
|
81
|
+
};
|
|
82
|
+
group?: {
|
|
83
|
+
className?: string;
|
|
84
|
+
};
|
|
85
|
+
groupHeader?: {
|
|
86
|
+
className?: string;
|
|
87
|
+
};
|
|
88
|
+
groupChildren?: {
|
|
89
|
+
className?: string;
|
|
90
|
+
};
|
|
91
|
+
footer?: {
|
|
92
|
+
className?: string;
|
|
93
|
+
};
|
|
94
|
+
collapseToggle?: {
|
|
95
|
+
className?: string;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Props for `<LeftNav>`.
|
|
100
|
+
*
|
|
101
|
+
* Router-agnostic sidebar navigation. The consumer drives the active
|
|
102
|
+
* item via `activeId` (typically derived from the current route).
|
|
103
|
+
*
|
|
104
|
+
* Rail / drawer responsive behaviour is handled by `<AppShell>`; this
|
|
105
|
+
* component renders the actual nav content and exposes a `collapsed`
|
|
106
|
+
* prop for the icon-only "rail" rendering.
|
|
107
|
+
*/
|
|
108
|
+
export interface LeftNavProps extends LeftNavVariants {
|
|
109
|
+
items: LeftNavNode[];
|
|
110
|
+
/** Currently-active item id (highlight + `aria-current="page"`). */
|
|
111
|
+
activeId?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Icon-only rail mode. When `true`, labels and group children are
|
|
114
|
+
* visually hidden (kept for screen readers via `sr-only`).
|
|
115
|
+
*/
|
|
116
|
+
collapsed?: boolean;
|
|
117
|
+
/** Fired when the user clicks the collapse-toggle button. */
|
|
118
|
+
onCollapseChange?: (collapsed: boolean) => void;
|
|
119
|
+
/** Fired when a group's expanded state changes (controlled or not). */
|
|
120
|
+
onGroupExpandedChange?: (groupId: string, expanded: boolean) => void;
|
|
121
|
+
/** Brand / logo node rendered at the top. */
|
|
122
|
+
brand?: ReactNode;
|
|
123
|
+
/** Footer node (e.g., user badge). */
|
|
124
|
+
footer?: ReactNode;
|
|
125
|
+
/** Override the link component. @default 'a' */
|
|
126
|
+
linkComponent?: LeftNavLinkComponent;
|
|
127
|
+
/** Visible label of the nav landmark. @default 'Main navigation' */
|
|
128
|
+
ariaLabel?: string;
|
|
129
|
+
/** Root className shortcut. */
|
|
130
|
+
sx?: string;
|
|
131
|
+
/** Per-slot className overrides. */
|
|
132
|
+
slotProps?: LeftNavSlotProps;
|
|
133
|
+
/** Show / hide the collapse toggle button. @default true */
|
|
134
|
+
showCollapseToggle?: boolean;
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=leftNav.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leftNav.types.d.ts","sourceRoot":"","sources":["../../../src/components/LeftNav/leftNav.types.ts"],"names":[],"mappings":"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"}
|