@dashforge/tw 0.10.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 +35 -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 +133 -24
- package/dist/src/components/Tabs/Tabs.d.ts +8 -4
- package/dist/src/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/src/components/Tabs/tabs.types.d.ts +8 -2
- package/dist/src/components/Tabs/tabs.types.d.ts.map +1 -1
- package/dist/src/components/Tabs/useTabs.d.ts +55 -0
- package/dist/src/components/Tabs/useTabs.d.ts.map +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +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 -8
- package/src/components/Tabs/Tabs.test.tsx +85 -14
- package/src/components/Tabs/Tabs.tsx +35 -24
- package/src/components/Tabs/tabs.types.ts +8 -2
- package/src/components/Tabs/useTabs.ts +167 -0
- package/src/components/TextField/TextField.test.tsx +5 -1
- package/src/index.ts +1 -1
- package/vite.config.ts +8 -0
- package/vitest.config.mts +8 -1
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
/**
|
|
3
|
+
* Tailwind-variants recipe for `<Textarea>` with 7 slots.
|
|
4
|
+
*
|
|
5
|
+
* Sibling of `<TextField>` but renders a multi-line `<textarea>` element
|
|
6
|
+
* instead of a single-line `<input>`. Shares the same slot taxonomy +
|
|
7
|
+
* variant axes so consumers can swap the two without rewriting overrides.
|
|
8
|
+
*/
|
|
9
|
+
export declare const textareaVariants: import("tailwind-variants").TVReturnType<{
|
|
10
|
+
size: {
|
|
11
|
+
sm: {
|
|
12
|
+
inputWrapper: string;
|
|
13
|
+
input: string;
|
|
14
|
+
};
|
|
15
|
+
md: {
|
|
16
|
+
inputWrapper: string;
|
|
17
|
+
input: string;
|
|
18
|
+
};
|
|
19
|
+
lg: {
|
|
20
|
+
inputWrapper: string;
|
|
21
|
+
input: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
layout: {
|
|
25
|
+
stacked: {
|
|
26
|
+
root: string;
|
|
27
|
+
};
|
|
28
|
+
inline: {
|
|
29
|
+
root: string;
|
|
30
|
+
label: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
error: {
|
|
34
|
+
true: {
|
|
35
|
+
inputWrapper: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
fullWidth: {
|
|
39
|
+
true: {
|
|
40
|
+
root: string;
|
|
41
|
+
inputWrapper: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
disabled: {
|
|
45
|
+
true: {
|
|
46
|
+
inputWrapper: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
resize: {
|
|
50
|
+
none: {
|
|
51
|
+
input: string;
|
|
52
|
+
};
|
|
53
|
+
vertical: {
|
|
54
|
+
input: string;
|
|
55
|
+
};
|
|
56
|
+
horizontal: {
|
|
57
|
+
input: string;
|
|
58
|
+
};
|
|
59
|
+
both: {
|
|
60
|
+
input: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
root: string;
|
|
65
|
+
label: string;
|
|
66
|
+
requiredMark: string;
|
|
67
|
+
inputWrapper: string[];
|
|
68
|
+
input: string[];
|
|
69
|
+
helperText: string;
|
|
70
|
+
errorText: string;
|
|
71
|
+
}, undefined, {
|
|
72
|
+
size: {
|
|
73
|
+
sm: {
|
|
74
|
+
inputWrapper: string;
|
|
75
|
+
input: string;
|
|
76
|
+
};
|
|
77
|
+
md: {
|
|
78
|
+
inputWrapper: string;
|
|
79
|
+
input: string;
|
|
80
|
+
};
|
|
81
|
+
lg: {
|
|
82
|
+
inputWrapper: string;
|
|
83
|
+
input: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
layout: {
|
|
87
|
+
stacked: {
|
|
88
|
+
root: string;
|
|
89
|
+
};
|
|
90
|
+
inline: {
|
|
91
|
+
root: string;
|
|
92
|
+
label: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
error: {
|
|
96
|
+
true: {
|
|
97
|
+
inputWrapper: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
fullWidth: {
|
|
101
|
+
true: {
|
|
102
|
+
root: string;
|
|
103
|
+
inputWrapper: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
disabled: {
|
|
107
|
+
true: {
|
|
108
|
+
inputWrapper: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
resize: {
|
|
112
|
+
none: {
|
|
113
|
+
input: string;
|
|
114
|
+
};
|
|
115
|
+
vertical: {
|
|
116
|
+
input: string;
|
|
117
|
+
};
|
|
118
|
+
horizontal: {
|
|
119
|
+
input: string;
|
|
120
|
+
};
|
|
121
|
+
both: {
|
|
122
|
+
input: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
}, {
|
|
126
|
+
root: string;
|
|
127
|
+
label: string;
|
|
128
|
+
requiredMark: string;
|
|
129
|
+
inputWrapper: string[];
|
|
130
|
+
input: string[];
|
|
131
|
+
helperText: string;
|
|
132
|
+
errorText: string;
|
|
133
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
134
|
+
size: {
|
|
135
|
+
sm: {
|
|
136
|
+
inputWrapper: string;
|
|
137
|
+
input: string;
|
|
138
|
+
};
|
|
139
|
+
md: {
|
|
140
|
+
inputWrapper: string;
|
|
141
|
+
input: string;
|
|
142
|
+
};
|
|
143
|
+
lg: {
|
|
144
|
+
inputWrapper: string;
|
|
145
|
+
input: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
layout: {
|
|
149
|
+
stacked: {
|
|
150
|
+
root: string;
|
|
151
|
+
};
|
|
152
|
+
inline: {
|
|
153
|
+
root: string;
|
|
154
|
+
label: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
error: {
|
|
158
|
+
true: {
|
|
159
|
+
inputWrapper: string;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
fullWidth: {
|
|
163
|
+
true: {
|
|
164
|
+
root: string;
|
|
165
|
+
inputWrapper: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
disabled: {
|
|
169
|
+
true: {
|
|
170
|
+
inputWrapper: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
resize: {
|
|
174
|
+
none: {
|
|
175
|
+
input: string;
|
|
176
|
+
};
|
|
177
|
+
vertical: {
|
|
178
|
+
input: string;
|
|
179
|
+
};
|
|
180
|
+
horizontal: {
|
|
181
|
+
input: string;
|
|
182
|
+
};
|
|
183
|
+
both: {
|
|
184
|
+
input: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
}, {
|
|
188
|
+
root: string;
|
|
189
|
+
label: string;
|
|
190
|
+
requiredMark: string;
|
|
191
|
+
inputWrapper: string[];
|
|
192
|
+
input: string[];
|
|
193
|
+
helperText: string;
|
|
194
|
+
errorText: string;
|
|
195
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
196
|
+
export type TextareaVariants = VariantProps<typeof textareaVariants>;
|
|
197
|
+
//# sourceMappingURL=textarea.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/textarea.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAyE3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TimePickerProps } from './timePicker.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Dashforge TW `<TimePicker>` — a form-bound time-of-day field.
|
|
4
|
+
*
|
|
5
|
+
* A read-only trigger button paired with a time-list popover (Radix
|
|
6
|
+
* Popover). Integrates with the Dashforge form bridge + RBAC.
|
|
7
|
+
*
|
|
8
|
+
* Storage contract: a canonical 24-hour `"HH:mm"` string, or `null` —
|
|
9
|
+
* shared with the MUI `@dashforge/ui` `TimePicker`. `hour12` is display-only.
|
|
10
|
+
*/
|
|
11
|
+
export declare function TimePicker(props: TimePickerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
//# sourceMappingURL=TimePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../src/components/TimePicker/TimePicker.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAkB7D;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,kDAwOhD"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Engine } from '@dashforge/ui-core';
|
|
3
|
+
import type { AccessRequirement } from '@dashforge/rbac';
|
|
4
|
+
/** Per-slot `className` overrides for `<TimePicker>`. */
|
|
5
|
+
export interface TimePickerSlotProps {
|
|
6
|
+
root?: {
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
label?: {
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
requiredMark?: {
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
trigger?: {
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
helperText?: {
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
errorText?: {
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Props for the `<TimePicker>` form field (Tailwind skin).
|
|
27
|
+
*
|
|
28
|
+
* A read-only trigger paired with a `<Calendar>`-style time-list popover.
|
|
29
|
+
* The stored value is a canonical 24-hour `"HH:mm"` string, or `null`.
|
|
30
|
+
* 12-hour notation (`hour12`) is display-only. No date, no timezone.
|
|
31
|
+
*
|
|
32
|
+
* The prop surface mirrors the MUI `@dashforge/ui` `TimePicker`.
|
|
33
|
+
*/
|
|
34
|
+
export interface TimePickerProps {
|
|
35
|
+
/** Field name — the bridge registration key. Required. */
|
|
36
|
+
name: string;
|
|
37
|
+
/** Validation rules forwarded to the form bridge. */
|
|
38
|
+
rules?: unknown;
|
|
39
|
+
/** Field label. */
|
|
40
|
+
label?: ReactNode;
|
|
41
|
+
/** Helper text below the control (overrides a bridge error message). */
|
|
42
|
+
helperText?: ReactNode;
|
|
43
|
+
/** Explicit error state (overrides the bridge's auto error). */
|
|
44
|
+
error?: boolean;
|
|
45
|
+
/** Marks the field required (adds the label asterisk). */
|
|
46
|
+
required?: boolean;
|
|
47
|
+
/** Disables the field. */
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
/** Placeholder shown when no time is selected. */
|
|
50
|
+
placeholder?: string;
|
|
51
|
+
/** Label/control layout. */
|
|
52
|
+
layout?: 'stacked' | 'inline';
|
|
53
|
+
/** Reactive visibility predicate evaluated against the form engine. */
|
|
54
|
+
visibleWhen?: (engine: Engine) => boolean;
|
|
55
|
+
/** RBAC access requirement. */
|
|
56
|
+
access?: AccessRequirement;
|
|
57
|
+
/** Controlled value — `"HH:mm"` (24-hour) or `null`. */
|
|
58
|
+
value?: string | null;
|
|
59
|
+
/** Uncontrolled initial value. */
|
|
60
|
+
defaultValue?: string | null;
|
|
61
|
+
/** Fired with the new time (or `null` when cleared). */
|
|
62
|
+
onChange?: (value: string | null) => void;
|
|
63
|
+
/** Earliest selectable time, `"HH:mm"`. Default `"00:00"`. */
|
|
64
|
+
minTime?: string;
|
|
65
|
+
/** Latest selectable time, `"HH:mm"`. Default `"23:30"`. */
|
|
66
|
+
maxTime?: string;
|
|
67
|
+
/** Step between time-list options, in minutes. Default `30`. */
|
|
68
|
+
stepMinutes?: number;
|
|
69
|
+
/** Render the time list in 12-hour notation. Default `false`. */
|
|
70
|
+
hour12?: boolean;
|
|
71
|
+
/** Stretches the field to its container width. */
|
|
72
|
+
fullWidth?: boolean;
|
|
73
|
+
/** Root-level Tailwind class override. */
|
|
74
|
+
sx?: string;
|
|
75
|
+
/** Per-slot `className` overrides. */
|
|
76
|
+
slotProps?: TimePickerSlotProps;
|
|
77
|
+
/** Test id applied to the field root. */
|
|
78
|
+
testId?: string;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=timePicker.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timePicker.types.d.ts","sourceRoot":"","sources":["../../../src/components/TimePicker/timePicker.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,yDAAyD;AACzD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9B,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,YAAY,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjC,UAAU,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACpC,SAAS,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACpC;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B,0DAA0D;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,mBAAmB;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,wEAAwE;IACxE,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,gEAAgE;IAChE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC9B,uEAAuE;IACvE,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1C,+BAA+B;IAC/B,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,wDAAwD;IACxD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slots for `<TimePicker>` — a bridge-integrated time field whose trigger
|
|
3
|
+
* is a `<button>` styled as an input, opening a time-list popover.
|
|
4
|
+
*
|
|
5
|
+
* Theme identity: bare neutral / brand token-backed classes only — no
|
|
6
|
+
* `dark:` variants on the neutral palette (the preset CSS-var swap
|
|
7
|
+
* auto-inverts). See `_shared/themeIdentity.test.ts`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const timePickerVariants: import("tailwind-variants").TVReturnType<{
|
|
10
|
+
layout: {
|
|
11
|
+
stacked: {};
|
|
12
|
+
inline: {
|
|
13
|
+
root: string;
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
error: {
|
|
18
|
+
true: {
|
|
19
|
+
trigger: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
fullWidth: {
|
|
23
|
+
true: {
|
|
24
|
+
root: string;
|
|
25
|
+
trigger: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
root: string;
|
|
30
|
+
label: string;
|
|
31
|
+
requiredMark: string;
|
|
32
|
+
trigger: string;
|
|
33
|
+
value: string;
|
|
34
|
+
placeholder: string;
|
|
35
|
+
icon: string;
|
|
36
|
+
list: string;
|
|
37
|
+
option: string;
|
|
38
|
+
helperText: string;
|
|
39
|
+
errorText: string;
|
|
40
|
+
}, undefined, {
|
|
41
|
+
layout: {
|
|
42
|
+
stacked: {};
|
|
43
|
+
inline: {
|
|
44
|
+
root: string;
|
|
45
|
+
label: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
error: {
|
|
49
|
+
true: {
|
|
50
|
+
trigger: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
fullWidth: {
|
|
54
|
+
true: {
|
|
55
|
+
root: string;
|
|
56
|
+
trigger: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
root: string;
|
|
61
|
+
label: string;
|
|
62
|
+
requiredMark: string;
|
|
63
|
+
trigger: string;
|
|
64
|
+
value: string;
|
|
65
|
+
placeholder: string;
|
|
66
|
+
icon: string;
|
|
67
|
+
list: string;
|
|
68
|
+
option: string;
|
|
69
|
+
helperText: string;
|
|
70
|
+
errorText: string;
|
|
71
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
72
|
+
layout: {
|
|
73
|
+
stacked: {};
|
|
74
|
+
inline: {
|
|
75
|
+
root: string;
|
|
76
|
+
label: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
error: {
|
|
80
|
+
true: {
|
|
81
|
+
trigger: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
fullWidth: {
|
|
85
|
+
true: {
|
|
86
|
+
root: string;
|
|
87
|
+
trigger: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}, {
|
|
91
|
+
root: string;
|
|
92
|
+
label: string;
|
|
93
|
+
requiredMark: string;
|
|
94
|
+
trigger: string;
|
|
95
|
+
value: string;
|
|
96
|
+
placeholder: string;
|
|
97
|
+
icon: string;
|
|
98
|
+
list: string;
|
|
99
|
+
option: string;
|
|
100
|
+
helperText: string;
|
|
101
|
+
errorText: string;
|
|
102
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
103
|
+
//# sourceMappingURL=timePicker.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timePicker.variants.d.ts","sourceRoot":"","sources":["../../../src/components/TimePicker/timePicker.variants.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CA0C7B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TooltipProps } from './tooltip.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Dashforge TW `<Tooltip>` — hoverable / focusable tooltip.
|
|
4
|
+
*
|
|
5
|
+
* Built on `@radix-ui/react-tooltip`:
|
|
6
|
+
* - APG tooltip pattern: `role="tooltip"`, `aria-describedby` wired
|
|
7
|
+
* to the trigger automatically (Radix manages the id linkage).
|
|
8
|
+
* - Shows on hover OR keyboard focus.
|
|
9
|
+
* - Dismissed on Escape or pointer leave.
|
|
10
|
+
*
|
|
11
|
+
* Wrap any single React node — it becomes the trigger via Radix's
|
|
12
|
+
* `asChild` slot. The trigger inherits `aria-describedby` so screen
|
|
13
|
+
* readers announce the tooltip content along with the trigger.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <Tooltip content="Delete this item">
|
|
18
|
+
* <Button variant="ghost">
|
|
19
|
+
* <TrashIcon />
|
|
20
|
+
* </Button>
|
|
21
|
+
* </Tooltip>
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* Each consumer can also wrap the entire app once in
|
|
25
|
+
* `<RadixTooltip.Provider>` to share delay/skip configuration; we
|
|
26
|
+
* include a per-component provider here for ease-of-use.
|
|
27
|
+
*/
|
|
28
|
+
export declare function Tooltip(props: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,2CAsC1C"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface TooltipSlotProps {
|
|
3
|
+
content?: {
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
arrow?: {
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Props for `<Tooltip>`.
|
|
12
|
+
*
|
|
13
|
+
* Built on `@radix-ui/react-tooltip`. Wrap any element with a tooltip
|
|
14
|
+
* that follows APG semantics (`role="tooltip"`, `aria-describedby`
|
|
15
|
+
* wired to the trigger).
|
|
16
|
+
*
|
|
17
|
+
* Renders an arrow by default. Three side options
|
|
18
|
+
* (top / right / bottom / left) with 'top' as default. Delay
|
|
19
|
+
* configurable via `delayDuration` (forwarded to Radix Provider).
|
|
20
|
+
*/
|
|
21
|
+
export interface TooltipProps {
|
|
22
|
+
/** The element that, when hovered/focused, shows the tooltip. */
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
/** Tooltip body content. */
|
|
25
|
+
content: ReactNode;
|
|
26
|
+
/** Side of the trigger to show the tooltip on. @default 'top' */
|
|
27
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
28
|
+
/** Alignment along the perpendicular axis. @default 'center' */
|
|
29
|
+
align?: 'start' | 'center' | 'end';
|
|
30
|
+
/** Hide the arrow indicator. @default false (arrow shown) */
|
|
31
|
+
hideArrow?: boolean;
|
|
32
|
+
/** Delay before the tooltip shows on hover (ms). @default 200 */
|
|
33
|
+
delayDuration?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Controlled open state. Use when the tooltip should be programmatic
|
|
36
|
+
* (e.g. revealed on a manual button press). Omit for default
|
|
37
|
+
* hover / focus behavior.
|
|
38
|
+
*/
|
|
39
|
+
open?: boolean;
|
|
40
|
+
/** Called when the tooltip's open state changes. */
|
|
41
|
+
onOpenChange?: (open: boolean) => void;
|
|
42
|
+
/** Side offset in pixels from the trigger. @default 4 */
|
|
43
|
+
sideOffset?: number;
|
|
44
|
+
/** Per-slot overrides. */
|
|
45
|
+
slotProps?: TooltipSlotProps;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=tooltip.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.types.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/tooltip.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjC,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAChC;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,YAAY;IAC3B,iEAAiE;IACjE,QAAQ,EAAE,SAAS,CAAC;IACpB,4BAA4B;IAC5B,OAAO,EAAE,SAAS,CAAC;IACnB,iEAAiE;IACjE,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,gEAAgE;IAChE,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,6DAA6D;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,oDAAoD;IACpD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
export declare const tooltipVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
5
|
+
content?: import("tailwind-merge").ClassNameValue;
|
|
6
|
+
arrow?: import("tailwind-merge").ClassNameValue;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
} | {
|
|
10
|
+
[x: string]: {
|
|
11
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
12
|
+
content?: import("tailwind-merge").ClassNameValue;
|
|
13
|
+
arrow?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | {}, {
|
|
17
|
+
content: string[];
|
|
18
|
+
arrow: string;
|
|
19
|
+
}, undefined, {
|
|
20
|
+
[key: string]: {
|
|
21
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
22
|
+
content?: import("tailwind-merge").ClassNameValue;
|
|
23
|
+
arrow?: import("tailwind-merge").ClassNameValue;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
} | {}, {
|
|
27
|
+
content: string[];
|
|
28
|
+
arrow: string;
|
|
29
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
30
|
+
content: string[];
|
|
31
|
+
arrow: string;
|
|
32
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
33
|
+
export type TooltipVariants = VariantProps<typeof tooltipVariants>;
|
|
34
|
+
//# sourceMappingURL=tooltip.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/tooltip.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAuB1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { TopBarProps } from './topBar.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Dashforge TW TopBar — sticky header with 3 named slots.
|
|
4
|
+
*
|
|
5
|
+
* Pure composition. Three regions arranged horizontally:
|
|
6
|
+
*
|
|
7
|
+
* ┌──────────────────────────────────────────────────────────┐
|
|
8
|
+
* │ start │ center │ end │
|
|
9
|
+
* └──────────────────────────────────────────────────────────┘
|
|
10
|
+
*
|
|
11
|
+
* - `start` and `end` shrink to content.
|
|
12
|
+
* - `center` grows to fill remaining space.
|
|
13
|
+
* - If you pass `children` instead of `center`, those children render
|
|
14
|
+
* in the center region — handy for terse JSX:
|
|
15
|
+
*
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <TopBar start={<Logo />} end={<UserMenu />}>
|
|
18
|
+
* <Breadcrumbs items={trail} />
|
|
19
|
+
* </TopBar>
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* Default renders as `<header role="banner">` (implicit from
|
|
23
|
+
* `<header>` as a top-level landmark). Pass `asDiv` for cases where
|
|
24
|
+
* you don't want the banner role (e.g., nested inside another header).
|
|
25
|
+
*
|
|
26
|
+
* **A11y**:
|
|
27
|
+
* - `<header>` is a banner landmark — only one per page; if you put
|
|
28
|
+
* multiple TopBars on a page, use `asDiv` on the secondary ones.
|
|
29
|
+
* - Slots are agnostic about ARIA — wrap your slot content with
|
|
30
|
+
* appropriate roles (`<nav>`, `<search>`, etc.) where needed.
|
|
31
|
+
*/
|
|
32
|
+
export declare function TopBar(props: TopBarProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=TopBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../src/components/TopBar/TopBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CA+BxC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { TopBarVariants } from './topBar.variants.js';
|
|
3
|
+
export interface TopBarSlotProps {
|
|
4
|
+
root?: {
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
start?: {
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
center?: {
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
end?: {
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Props for `<TopBar>`.
|
|
19
|
+
*
|
|
20
|
+
* Pure composition container with 3 named slots — `start`, `center`,
|
|
21
|
+
* `end` — that fill a sticky horizontal bar.
|
|
22
|
+
*
|
|
23
|
+
* Typical patterns:
|
|
24
|
+
*
|
|
25
|
+
* - **start**: mobile menu toggle, brand/logo
|
|
26
|
+
* - **center**: Breadcrumbs, page title, global search
|
|
27
|
+
* - **end**: notifications icon, user menu, theme toggle
|
|
28
|
+
*
|
|
29
|
+
* The component is intentionally minimal: it just lays out the three
|
|
30
|
+
* regions. All semantics (e.g., `<header role="banner">`) come for
|
|
31
|
+
* free from rendering as an HTML `<header>` element.
|
|
32
|
+
*/
|
|
33
|
+
export interface TopBarProps extends TopBarVariants {
|
|
34
|
+
/** Left-aligned slot (mobile menu, brand). */
|
|
35
|
+
start?: ReactNode;
|
|
36
|
+
/** Center slot (breadcrumbs, title). Grows to fill remaining space. */
|
|
37
|
+
center?: ReactNode;
|
|
38
|
+
/** Right-aligned slot (actions, user menu). */
|
|
39
|
+
end?: ReactNode;
|
|
40
|
+
/** Convenience: render the bar as a plain `<div>` (no banner role). */
|
|
41
|
+
asDiv?: boolean;
|
|
42
|
+
/** Root className shortcut. */
|
|
43
|
+
sx?: string;
|
|
44
|
+
/** Per-slot className overrides. */
|
|
45
|
+
slotProps?: TopBarSlotProps;
|
|
46
|
+
/** Children render between `start` and `end` when no `center` is set. */
|
|
47
|
+
children?: ReactNode;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=topBar.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topBar.types.d.ts","sourceRoot":"","sources":["../../../src/components/TopBar/topBar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9B,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,MAAM,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAChC,GAAG,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,8CAA8C;IAC9C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,uEAAuE;IACvE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,+CAA+C;IAC/C,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,uEAAuE;IACvE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+BAA+B;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oCAAoC;IACpC,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,yEAAyE;IACzE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|