@dashforge/tw 0.1.0-beta → 0.2.0-beta
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 +108 -0
- package/dist/index.d.ts +1 -82
- package/dist/index.esm.js +1563 -2
- package/dist/src/components/AspectRatio/AspectRatio.d.ts +36 -0
- package/dist/src/components/AspectRatio/AspectRatio.d.ts.map +1 -0
- package/dist/src/components/AspectRatio/aspectRatio.types.d.ts +50 -0
- package/dist/src/components/AspectRatio/aspectRatio.types.d.ts.map +1 -0
- package/dist/src/components/Box/Box.d.ts +36 -0
- package/dist/src/components/Box/Box.d.ts.map +1 -0
- package/dist/src/components/Box/box.types.d.ts +54 -0
- package/dist/src/components/Box/box.types.d.ts.map +1 -0
- package/dist/src/components/Box/box.variants.d.ts +402 -0
- package/dist/src/components/Box/box.variants.d.ts.map +1 -0
- package/dist/src/components/Container/Container.d.ts +35 -0
- package/dist/src/components/Container/Container.d.ts.map +1 -0
- package/dist/src/components/Container/container.types.d.ts +41 -0
- package/dist/src/components/Container/container.types.d.ts.map +1 -0
- package/dist/src/components/Container/container.variants.d.ts +93 -0
- package/dist/src/components/Container/container.variants.d.ts.map +1 -0
- package/dist/src/components/Divider/Divider.d.ts +50 -0
- package/dist/src/components/Divider/Divider.d.ts.map +1 -0
- package/dist/src/components/Divider/divider.types.d.ts +47 -0
- package/dist/src/components/Divider/divider.types.d.ts.map +1 -0
- package/dist/src/components/Divider/divider.variants.d.ts +129 -0
- package/dist/src/components/Divider/divider.variants.d.ts.map +1 -0
- package/dist/src/components/Grid/Grid.d.ts +32 -0
- package/dist/src/components/Grid/Grid.d.ts.map +1 -0
- package/dist/src/components/Grid/grid.types.d.ts +103 -0
- package/dist/src/components/Grid/grid.types.d.ts.map +1 -0
- package/dist/src/components/Grid/grid.variants.d.ts +453 -0
- package/dist/src/components/Grid/grid.variants.d.ts.map +1 -0
- package/dist/src/components/Stack/Stack.d.ts +24 -0
- package/dist/src/components/Stack/Stack.d.ts.map +1 -0
- package/dist/src/components/Stack/stack.types.d.ts +61 -0
- package/dist/src/components/Stack/stack.types.d.ts.map +1 -0
- package/dist/src/components/Stack/stack.variants.d.ts +163 -0
- package/dist/src/components/Stack/stack.variants.d.ts.map +1 -0
- package/dist/src/components/Typography/Typography.d.ts +42 -0
- package/dist/src/components/Typography/Typography.d.ts.map +1 -0
- package/dist/src/components/Typography/typography.types.d.ts +61 -0
- package/dist/src/components/Typography/typography.types.d.ts.map +1 -0
- package/dist/src/components/Typography/typography.variants.d.ts +167 -0
- package/dist/src/components/Typography/typography.variants.d.ts.map +1 -0
- package/dist/src/components/VisuallyHidden/VisuallyHidden.d.ts +42 -0
- package/dist/src/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/dist/src/components/VisuallyHidden/visuallyHidden.types.d.ts +42 -0
- package/dist/src/components/VisuallyHidden/visuallyHidden.types.d.ts.map +1 -0
- package/dist/src/index.d.ts +22 -0
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/AspectRatio/AspectRatio.test.tsx +173 -0
- package/src/components/AspectRatio/AspectRatio.tsx +73 -0
- package/src/components/AspectRatio/aspectRatio.types.ts +54 -0
- package/src/components/Box/Box.test.tsx +349 -0
- package/src/components/Box/Box.tsx +83 -0
- package/src/components/Box/box.types.ts +61 -0
- package/src/components/Box/box.variants.ts +211 -0
- package/src/components/Container/Container.test.tsx +209 -0
- package/src/components/Container/Container.tsx +74 -0
- package/src/components/Container/container.types.ts +45 -0
- package/src/components/Container/container.variants.ts +81 -0
- package/src/components/Divider/Divider.test.tsx +241 -0
- package/src/components/Divider/Divider.tsx +140 -0
- package/src/components/Divider/divider.types.ts +52 -0
- package/src/components/Divider/divider.variants.ts +115 -0
- package/src/components/Grid/Grid.test.tsx +321 -0
- package/src/components/Grid/Grid.tsx +148 -0
- package/src/components/Grid/grid.types.ts +112 -0
- package/src/components/Grid/grid.variants.ts +133 -0
- package/src/components/Stack/Stack.test.tsx +309 -0
- package/src/components/Stack/Stack.tsx +115 -0
- package/src/components/Stack/stack.types.ts +68 -0
- package/src/components/Stack/stack.variants.ts +80 -0
- package/src/components/Typography/Typography.test.tsx +230 -0
- package/src/components/Typography/Typography.tsx +112 -0
- package/src/components/Typography/typography.types.ts +65 -0
- package/src/components/Typography/typography.variants.ts +113 -0
- package/src/components/VisuallyHidden/VisuallyHidden.test.tsx +86 -0
- package/src/components/VisuallyHidden/VisuallyHidden.tsx +59 -0
- package/src/components/VisuallyHidden/visuallyHidden.types.ts +45 -0
- package/src/index.ts +49 -0
- package/dist/components/AppShell/AppShell.d.ts +0 -32
- package/dist/components/AppShell/AppShell.d.ts.map +0 -1
- package/dist/components/AppShell/appShell.types.d.ts +0 -62
- package/dist/components/AppShell/appShell.types.d.ts.map +0 -1
- package/dist/components/AppShell/appShell.variants.d.ts +0 -65
- package/dist/components/AppShell/appShell.variants.d.ts.map +0 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +0 -32
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +0 -1
- package/dist/components/Autocomplete/autocomplete.types.d.ts +0 -214
- package/dist/components/Autocomplete/autocomplete.types.d.ts.map +0 -1
- package/dist/components/Autocomplete/autocomplete.variants.d.ts +0 -214
- package/dist/components/Autocomplete/autocomplete.variants.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -23
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/breadcrumbs.types.d.ts +0 -98
- package/dist/components/Breadcrumbs/breadcrumbs.types.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/breadcrumbs.variants.d.ts +0 -85
- package/dist/components/Breadcrumbs/breadcrumbs.variants.d.ts.map +0 -1
- package/dist/components/Button/Button.d.ts +0 -44
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/Button/button.types.d.ts +0 -66
- package/dist/components/Button/button.types.d.ts.map +0 -1
- package/dist/components/Button/button.variants.d.ts +0 -104
- package/dist/components/Button/button.variants.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +0 -31
- package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox/checkbox.types.d.ts +0 -86
- package/dist/components/Checkbox/checkbox.types.d.ts.map +0 -1
- package/dist/components/Checkbox/checkbox.variants.d.ts +0 -109
- package/dist/components/Checkbox/checkbox.variants.d.ts.map +0 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +0 -38
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +0 -1
- package/dist/components/ConfirmDialog/confirmDialog.types.d.ts +0 -80
- package/dist/components/ConfirmDialog/confirmDialog.types.d.ts.map +0 -1
- package/dist/components/ConfirmDialog/confirmDialog.variants.d.ts +0 -90
- package/dist/components/ConfirmDialog/confirmDialog.variants.d.ts.map +0 -1
- package/dist/components/DateTimePicker/DateTimePicker.d.ts +0 -49
- package/dist/components/DateTimePicker/DateTimePicker.d.ts.map +0 -1
- package/dist/components/DateTimePicker/dateTimePicker.types.d.ts +0 -95
- package/dist/components/DateTimePicker/dateTimePicker.types.d.ts.map +0 -1
- package/dist/components/DateTimePicker/dateTimePicker.variants.d.ts +0 -165
- package/dist/components/DateTimePicker/dateTimePicker.variants.d.ts.map +0 -1
- package/dist/components/LeftNav/LeftNav.d.ts +0 -34
- package/dist/components/LeftNav/LeftNav.d.ts.map +0 -1
- package/dist/components/LeftNav/leftNav.types.d.ts +0 -136
- package/dist/components/LeftNav/leftNav.types.d.ts.map +0 -1
- package/dist/components/LeftNav/leftNav.variants.d.ts +0 -143
- package/dist/components/LeftNav/leftNav.variants.d.ts.map +0 -1
- package/dist/components/NumberField/NumberField.d.ts +0 -18
- package/dist/components/NumberField/NumberField.d.ts.map +0 -1
- package/dist/components/NumberField/numberField.types.d.ts +0 -79
- package/dist/components/NumberField/numberField.types.d.ts.map +0 -1
- package/dist/components/NumberField/numberField.variants.d.ts +0 -169
- package/dist/components/NumberField/numberField.variants.d.ts.map +0 -1
- package/dist/components/OTPField/OTPField.d.ts +0 -25
- package/dist/components/OTPField/OTPField.d.ts.map +0 -1
- package/dist/components/OTPField/otpField.types.d.ts +0 -74
- package/dist/components/OTPField/otpField.types.d.ts.map +0 -1
- package/dist/components/OTPField/otpField.variants.d.ts +0 -105
- package/dist/components/OTPField/otpField.variants.d.ts.map +0 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +0 -35
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +0 -1
- package/dist/components/RadioGroup/radioGroup.types.d.ts +0 -103
- package/dist/components/RadioGroup/radioGroup.types.d.ts.map +0 -1
- package/dist/components/RadioGroup/radioGroup.variants.d.ts +0 -166
- package/dist/components/RadioGroup/radioGroup.variants.d.ts.map +0 -1
- package/dist/components/Snackbar/Snackbar.d.ts +0 -37
- package/dist/components/Snackbar/Snackbar.d.ts.map +0 -1
- package/dist/components/Snackbar/snackbar.types.d.ts +0 -86
- package/dist/components/Snackbar/snackbar.types.d.ts.map +0 -1
- package/dist/components/Snackbar/snackbar.variants.d.ts +0 -153
- package/dist/components/Snackbar/snackbar.variants.d.ts.map +0 -1
- package/dist/components/Switch/Switch.d.ts +0 -15
- package/dist/components/Switch/Switch.d.ts.map +0 -1
- package/dist/components/Switch/switch.types.d.ts +0 -47
- package/dist/components/Switch/switch.types.d.ts.map +0 -1
- package/dist/components/Switch/switch.variants.d.ts +0 -105
- package/dist/components/Switch/switch.variants.d.ts.map +0 -1
- package/dist/components/TextField/TextField.d.ts +0 -25
- package/dist/components/TextField/TextField.d.ts.map +0 -1
- package/dist/components/TextField/textField.types.d.ts +0 -72
- package/dist/components/TextField/textField.types.d.ts.map +0 -1
- package/dist/components/TextField/textField.variants.d.ts +0 -160
- package/dist/components/TextField/textField.variants.d.ts.map +0 -1
- package/dist/components/Textarea/Textarea.d.ts +0 -16
- package/dist/components/Textarea/Textarea.d.ts.map +0 -1
- package/dist/components/Textarea/textarea.types.d.ts +0 -63
- package/dist/components/Textarea/textarea.types.d.ts.map +0 -1
- package/dist/components/Textarea/textarea.variants.d.ts +0 -197
- package/dist/components/Textarea/textarea.variants.d.ts.map +0 -1
- package/dist/components/TopBar/TopBar.d.ts +0 -33
- package/dist/components/TopBar/TopBar.d.ts.map +0 -1
- package/dist/components/TopBar/topBar.types.d.ts +0 -49
- package/dist/components/TopBar/topBar.types.d.ts.map +0 -1
- package/dist/components/TopBar/topBar.variants.d.ts +0 -79
- package/dist/components/TopBar/topBar.variants.d.ts.map +0 -1
- package/dist/components/_shared/resolveValidationState.d.ts +0 -42
- package/dist/components/_shared/resolveValidationState.d.ts.map +0 -1
- package/dist/hooks/useAccessState.d.ts +0 -37
- package/dist/hooks/useAccessState.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
- package/dist/utils/cn.d.ts +0 -26
- package/dist/utils/cn.d.ts.map +0 -1
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
-
/**
|
|
3
|
-
* Tailwind-variants recipe for `<RadioGroup>` with slots.
|
|
4
|
-
*
|
|
5
|
-
* Slots:
|
|
6
|
-
* - `root` — outer wrapper (label + option list + helper/error)
|
|
7
|
-
* - `label` — group-level label (rendered above the option list)
|
|
8
|
-
* - `requiredMark` — red asterisk for required groups
|
|
9
|
-
* - `optionList` — container for the radio options (flex direction
|
|
10
|
-
* decided by the `layout` variant)
|
|
11
|
-
* - `option` — wrapper for a single option (control + label)
|
|
12
|
-
* - `control` — visible circle (Radix `RadioGroup.Item`)
|
|
13
|
-
* - `indicator` — inner dot (Radix `RadioGroup.Indicator`)
|
|
14
|
-
* - `optionLabel` — text label associated with the control
|
|
15
|
-
* - `helperText` — descriptive line below the option list
|
|
16
|
-
* - `errorText` — semantic counterpart of helperText for error mode
|
|
17
|
-
*
|
|
18
|
-
* Variants:
|
|
19
|
-
* - `size` : sm / md / lg — drives control circle + label text size
|
|
20
|
-
* - `layout` : stacked (vertical, default) / row (horizontal)
|
|
21
|
-
* - `error` : bool — swaps borders + helperText color to danger tones
|
|
22
|
-
*/
|
|
23
|
-
export declare const radioGroupVariants: import("tailwind-variants").TVReturnType<{
|
|
24
|
-
size: {
|
|
25
|
-
sm: {
|
|
26
|
-
control: string;
|
|
27
|
-
indicator: string;
|
|
28
|
-
optionLabel: string;
|
|
29
|
-
};
|
|
30
|
-
md: {
|
|
31
|
-
control: string;
|
|
32
|
-
indicator: string;
|
|
33
|
-
optionLabel: string;
|
|
34
|
-
};
|
|
35
|
-
lg: {
|
|
36
|
-
control: string;
|
|
37
|
-
indicator: string;
|
|
38
|
-
optionLabel: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
layout: {
|
|
42
|
-
stacked: {
|
|
43
|
-
optionList: string;
|
|
44
|
-
};
|
|
45
|
-
row: {
|
|
46
|
-
optionList: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
error: {
|
|
50
|
-
true: {
|
|
51
|
-
control: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
disabled: {
|
|
55
|
-
true: {
|
|
56
|
-
control: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
}, {
|
|
60
|
-
root: string;
|
|
61
|
-
label: string;
|
|
62
|
-
requiredMark: string;
|
|
63
|
-
optionList: string;
|
|
64
|
-
option: string;
|
|
65
|
-
control: string[];
|
|
66
|
-
indicator: string;
|
|
67
|
-
optionLabel: string;
|
|
68
|
-
helperText: string;
|
|
69
|
-
errorText: string;
|
|
70
|
-
}, undefined, {
|
|
71
|
-
size: {
|
|
72
|
-
sm: {
|
|
73
|
-
control: string;
|
|
74
|
-
indicator: string;
|
|
75
|
-
optionLabel: string;
|
|
76
|
-
};
|
|
77
|
-
md: {
|
|
78
|
-
control: string;
|
|
79
|
-
indicator: string;
|
|
80
|
-
optionLabel: string;
|
|
81
|
-
};
|
|
82
|
-
lg: {
|
|
83
|
-
control: string;
|
|
84
|
-
indicator: string;
|
|
85
|
-
optionLabel: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
layout: {
|
|
89
|
-
stacked: {
|
|
90
|
-
optionList: string;
|
|
91
|
-
};
|
|
92
|
-
row: {
|
|
93
|
-
optionList: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
error: {
|
|
97
|
-
true: {
|
|
98
|
-
control: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
disabled: {
|
|
102
|
-
true: {
|
|
103
|
-
control: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
}, {
|
|
107
|
-
root: string;
|
|
108
|
-
label: string;
|
|
109
|
-
requiredMark: string;
|
|
110
|
-
optionList: string;
|
|
111
|
-
option: string;
|
|
112
|
-
control: string[];
|
|
113
|
-
indicator: string;
|
|
114
|
-
optionLabel: string;
|
|
115
|
-
helperText: string;
|
|
116
|
-
errorText: string;
|
|
117
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
118
|
-
size: {
|
|
119
|
-
sm: {
|
|
120
|
-
control: string;
|
|
121
|
-
indicator: string;
|
|
122
|
-
optionLabel: string;
|
|
123
|
-
};
|
|
124
|
-
md: {
|
|
125
|
-
control: string;
|
|
126
|
-
indicator: string;
|
|
127
|
-
optionLabel: string;
|
|
128
|
-
};
|
|
129
|
-
lg: {
|
|
130
|
-
control: string;
|
|
131
|
-
indicator: string;
|
|
132
|
-
optionLabel: string;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
layout: {
|
|
136
|
-
stacked: {
|
|
137
|
-
optionList: string;
|
|
138
|
-
};
|
|
139
|
-
row: {
|
|
140
|
-
optionList: string;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
error: {
|
|
144
|
-
true: {
|
|
145
|
-
control: string;
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
disabled: {
|
|
149
|
-
true: {
|
|
150
|
-
control: string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
}, {
|
|
154
|
-
root: string;
|
|
155
|
-
label: string;
|
|
156
|
-
requiredMark: string;
|
|
157
|
-
optionList: string;
|
|
158
|
-
option: string;
|
|
159
|
-
control: string[];
|
|
160
|
-
indicator: string;
|
|
161
|
-
optionLabel: string;
|
|
162
|
-
helperText: string;
|
|
163
|
-
errorText: string;
|
|
164
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
165
|
-
export type RadioGroupVariants = VariantProps<typeof radioGroupVariants>;
|
|
166
|
-
//# sourceMappingURL=radioGroup.variants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radioGroup.variants.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/radioGroup.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CA6D7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { SnackbarApi, SnackbarProviderProps } from './snackbar.types.js';
|
|
2
|
-
/**
|
|
3
|
-
* `useSnackbar()` — returns `{ enqueue, dismiss, dismissAll }`.
|
|
4
|
-
*
|
|
5
|
-
* Throws if called outside `<SnackbarProvider>` — silent no-op would
|
|
6
|
-
* be a footgun for "Saved!" toasts that silently vanish.
|
|
7
|
-
*/
|
|
8
|
-
export declare function useSnackbar(): SnackbarApi;
|
|
9
|
-
/**
|
|
10
|
-
* Dashforge TW Snackbar provider — transient, stacked toast notifications.
|
|
11
|
-
*
|
|
12
|
-
* **Behaviour**:
|
|
13
|
-
* - `enqueue(opts)` returns the assigned `id`.
|
|
14
|
-
* - Items appear in a fixed-corner stack (`position` prop).
|
|
15
|
-
* - At most `maxVisible` (default 5) are shown — extras queue FIFO.
|
|
16
|
-
* - Each item auto-dismisses after `autoHideMs` (default 4000); set
|
|
17
|
-
* `0` for a persistent snackbar.
|
|
18
|
-
* - Re-enqueueing with the SAME `id` reuses the slot and resets the
|
|
19
|
-
* timer (de-dup pattern for repeated "Saved" toasts).
|
|
20
|
-
*
|
|
21
|
-
* **A11y**:
|
|
22
|
-
* - Container is an `aria-live="polite"` region (assistive techs
|
|
23
|
-
* announce new messages without stealing focus).
|
|
24
|
-
* - Severity icon is `aria-hidden` — the message text carries the
|
|
25
|
-
* semantic.
|
|
26
|
-
* - Close + action buttons are focusable via Tab; the visual stack
|
|
27
|
-
* order is the same as the announcement order.
|
|
28
|
-
*
|
|
29
|
-
* **Re-render contract**:
|
|
30
|
-
* - Provider re-renders ONLY when the visible set changes.
|
|
31
|
-
* - The `api` (returned by `useSnackbar()`) is stable across re-renders
|
|
32
|
-
* — `useCallback`'d with no deps, mutates a ref internally.
|
|
33
|
-
* - Consumers calling `useSnackbar()` get the same identity each time
|
|
34
|
-
* so they can safely pass `enqueue` to `useEffect` deps.
|
|
35
|
-
*/
|
|
36
|
-
export declare function SnackbarProvider(props: SnackbarProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
//# sourceMappingURL=Snackbar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Snackbar.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/Snackbar.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,WAAW,EAEX,qBAAqB,EAGtB,MAAM,qBAAqB,CAAC;AAI7B;;;;;GAKG;AACH,wBAAgB,WAAW,IAAI,WAAW,CAQzC;AAeD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,2CA4N5D"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { SnackbarVariants } from './snackbar.variants.js';
|
|
3
|
-
/** Visual severity — drives icon color + accent on the snackbar surface. */
|
|
4
|
-
export type SnackbarSeverity = 'info' | 'success' | 'warning' | 'danger';
|
|
5
|
-
/** Corner anchor for the snackbar stack. */
|
|
6
|
-
export type SnackbarPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
7
|
-
/** One snackbar instance — what `useSnackbar().enqueue()` accepts. */
|
|
8
|
-
export interface SnackbarOptions {
|
|
9
|
-
/** Required text/content. */
|
|
10
|
-
message: ReactNode;
|
|
11
|
-
/** Visual severity. @default 'info' */
|
|
12
|
-
severity?: SnackbarSeverity;
|
|
13
|
-
/**
|
|
14
|
-
* Auto-dismiss after this many ms. `0` / negative ⇒ persistent
|
|
15
|
-
* (only dismissed by the close button or `dismiss(id)`).
|
|
16
|
-
* @default 4000
|
|
17
|
-
*/
|
|
18
|
-
autoHideMs?: number;
|
|
19
|
-
/** Optional action button label + handler. */
|
|
20
|
-
action?: {
|
|
21
|
-
label: ReactNode;
|
|
22
|
-
onClick: () => void;
|
|
23
|
-
};
|
|
24
|
-
/** Per-instance close-button visibility. @default true */
|
|
25
|
-
showClose?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Stable identifier for de-duplication. If a snackbar with the same
|
|
28
|
-
* `id` is enqueued while already visible, the existing one is REUSED
|
|
29
|
-
* (auto-dismiss timer reset) instead of stacking a duplicate. Useful
|
|
30
|
-
* for "Saved" toasts triggered repeatedly from the same action.
|
|
31
|
-
*/
|
|
32
|
-
id?: string;
|
|
33
|
-
}
|
|
34
|
-
/** Internal model — every enqueued snackbar gets a unique id + a tick. */
|
|
35
|
-
export interface SnackbarRecord extends SnackbarOptions {
|
|
36
|
-
id: string;
|
|
37
|
-
/**
|
|
38
|
-
* Monotonic creation tick, used to drive the entry CSS transition
|
|
39
|
-
* (the consumer's CSS can target `data-state="entered"` keyed by tick).
|
|
40
|
-
*/
|
|
41
|
-
tick: number;
|
|
42
|
-
}
|
|
43
|
-
export interface SnackbarSlotProps {
|
|
44
|
-
container?: {
|
|
45
|
-
className?: string;
|
|
46
|
-
};
|
|
47
|
-
item?: {
|
|
48
|
-
className?: string;
|
|
49
|
-
};
|
|
50
|
-
icon?: {
|
|
51
|
-
className?: string;
|
|
52
|
-
};
|
|
53
|
-
message?: {
|
|
54
|
-
className?: string;
|
|
55
|
-
};
|
|
56
|
-
action?: {
|
|
57
|
-
className?: string;
|
|
58
|
-
};
|
|
59
|
-
closeButton?: {
|
|
60
|
-
className?: string;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
/** API exposed by `useSnackbar()`. */
|
|
64
|
-
export interface SnackbarApi {
|
|
65
|
-
/** Show a snackbar — returns its assigned id (auto-generated if not provided). */
|
|
66
|
-
enqueue: (options: SnackbarOptions) => string;
|
|
67
|
-
/** Dismiss a specific snackbar. */
|
|
68
|
-
dismiss: (id: string) => void;
|
|
69
|
-
/** Dismiss every visible snackbar. */
|
|
70
|
-
dismissAll: () => void;
|
|
71
|
-
}
|
|
72
|
-
export interface SnackbarProviderProps extends SnackbarVariants {
|
|
73
|
-
children: ReactNode;
|
|
74
|
-
/** Corner the stack anchors to. @default 'bottom-right' */
|
|
75
|
-
position?: SnackbarPosition;
|
|
76
|
-
/**
|
|
77
|
-
* Hard cap on simultaneously visible snackbars. Excess enqueued
|
|
78
|
-
* items wait FIFO until a slot frees up. @default 5
|
|
79
|
-
*/
|
|
80
|
-
maxVisible?: number;
|
|
81
|
-
/** Defaults merged into every enqueue. */
|
|
82
|
-
defaults?: Pick<SnackbarOptions, 'severity' | 'autoHideMs' | 'showClose'>;
|
|
83
|
-
/** Per-slot className overrides. */
|
|
84
|
-
slotProps?: SnackbarSlotProps;
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=snackbar.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar.types.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/snackbar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,4EAA4E;AAC5E,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEzE,4CAA4C;AAC5C,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,YAAY,GACZ,WAAW,GACX,aAAa,GACb,eAAe,GACf,cAAc,CAAC;AAEnB,sEAAsE;AACtE,MAAM,WAAW,eAAe;IAC9B,6BAA6B;IAC7B,OAAO,EAAE,SAAS,CAAC;IACnB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IACnD,0DAA0D;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,0EAA0E;AAC1E,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,IAAI,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9B,IAAI,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9B,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjC,MAAM,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAChC,WAAW,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACtC;AAED,sCAAsC;AACtC,MAAM,WAAW,WAAW;IAC1B,kFAAkF;IAClF,OAAO,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,MAAM,CAAC;IAC9C,mCAAmC;IACnC,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,sCAAsC;IACtC,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D,QAAQ,EAAE,SAAS,CAAC;IACpB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,YAAY,GAAG,WAAW,CAAC,CAAC;IAC1E,oCAAoC;IACpC,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B"}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
-
/**
|
|
3
|
-
* Tailwind-variants recipe for `<Snackbar>` (stacked toast surface).
|
|
4
|
-
*
|
|
5
|
-
* Slots:
|
|
6
|
-
* - `container` — fixed-position outer stack
|
|
7
|
-
* - `item` — single snackbar surface
|
|
8
|
-
* - `icon` — leading severity icon
|
|
9
|
-
* - `message` — main text
|
|
10
|
-
* - `action` — optional action button
|
|
11
|
-
* - `closeButton` — trailing `×` button
|
|
12
|
-
*/
|
|
13
|
-
export declare const snackbarVariants: import("tailwind-variants").TVReturnType<{
|
|
14
|
-
position: {
|
|
15
|
-
'top-left': {
|
|
16
|
-
container: string;
|
|
17
|
-
};
|
|
18
|
-
'top-center': {
|
|
19
|
-
container: string;
|
|
20
|
-
};
|
|
21
|
-
'top-right': {
|
|
22
|
-
container: string;
|
|
23
|
-
};
|
|
24
|
-
'bottom-left': {
|
|
25
|
-
container: string;
|
|
26
|
-
};
|
|
27
|
-
'bottom-center': {
|
|
28
|
-
container: string;
|
|
29
|
-
};
|
|
30
|
-
'bottom-right': {
|
|
31
|
-
container: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
severity: {
|
|
35
|
-
info: {
|
|
36
|
-
item: string;
|
|
37
|
-
icon: string;
|
|
38
|
-
};
|
|
39
|
-
success: {
|
|
40
|
-
item: string;
|
|
41
|
-
icon: string;
|
|
42
|
-
};
|
|
43
|
-
warning: {
|
|
44
|
-
item: string;
|
|
45
|
-
icon: string;
|
|
46
|
-
};
|
|
47
|
-
danger: {
|
|
48
|
-
item: string;
|
|
49
|
-
icon: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
}, {
|
|
53
|
-
container: string[];
|
|
54
|
-
item: string[];
|
|
55
|
-
icon: string;
|
|
56
|
-
message: string;
|
|
57
|
-
action: string[];
|
|
58
|
-
closeButton: string[];
|
|
59
|
-
}, undefined, {
|
|
60
|
-
position: {
|
|
61
|
-
'top-left': {
|
|
62
|
-
container: string;
|
|
63
|
-
};
|
|
64
|
-
'top-center': {
|
|
65
|
-
container: string;
|
|
66
|
-
};
|
|
67
|
-
'top-right': {
|
|
68
|
-
container: string;
|
|
69
|
-
};
|
|
70
|
-
'bottom-left': {
|
|
71
|
-
container: string;
|
|
72
|
-
};
|
|
73
|
-
'bottom-center': {
|
|
74
|
-
container: string;
|
|
75
|
-
};
|
|
76
|
-
'bottom-right': {
|
|
77
|
-
container: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
severity: {
|
|
81
|
-
info: {
|
|
82
|
-
item: string;
|
|
83
|
-
icon: string;
|
|
84
|
-
};
|
|
85
|
-
success: {
|
|
86
|
-
item: string;
|
|
87
|
-
icon: string;
|
|
88
|
-
};
|
|
89
|
-
warning: {
|
|
90
|
-
item: string;
|
|
91
|
-
icon: string;
|
|
92
|
-
};
|
|
93
|
-
danger: {
|
|
94
|
-
item: string;
|
|
95
|
-
icon: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
}, {
|
|
99
|
-
container: string[];
|
|
100
|
-
item: string[];
|
|
101
|
-
icon: string;
|
|
102
|
-
message: string;
|
|
103
|
-
action: string[];
|
|
104
|
-
closeButton: string[];
|
|
105
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
106
|
-
position: {
|
|
107
|
-
'top-left': {
|
|
108
|
-
container: string;
|
|
109
|
-
};
|
|
110
|
-
'top-center': {
|
|
111
|
-
container: string;
|
|
112
|
-
};
|
|
113
|
-
'top-right': {
|
|
114
|
-
container: string;
|
|
115
|
-
};
|
|
116
|
-
'bottom-left': {
|
|
117
|
-
container: string;
|
|
118
|
-
};
|
|
119
|
-
'bottom-center': {
|
|
120
|
-
container: string;
|
|
121
|
-
};
|
|
122
|
-
'bottom-right': {
|
|
123
|
-
container: string;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
severity: {
|
|
127
|
-
info: {
|
|
128
|
-
item: string;
|
|
129
|
-
icon: string;
|
|
130
|
-
};
|
|
131
|
-
success: {
|
|
132
|
-
item: string;
|
|
133
|
-
icon: string;
|
|
134
|
-
};
|
|
135
|
-
warning: {
|
|
136
|
-
item: string;
|
|
137
|
-
icon: string;
|
|
138
|
-
};
|
|
139
|
-
danger: {
|
|
140
|
-
item: string;
|
|
141
|
-
icon: string;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
}, {
|
|
145
|
-
container: string[];
|
|
146
|
-
item: string[];
|
|
147
|
-
icon: string;
|
|
148
|
-
message: string;
|
|
149
|
-
action: string[];
|
|
150
|
-
closeButton: string[];
|
|
151
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
152
|
-
export type SnackbarVariants = VariantProps<typeof snackbarVariants>;
|
|
153
|
-
//# sourceMappingURL=snackbar.variants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Snackbar/snackbar.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAwD3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { SwitchProps } from './switch.types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Dashforge TW Switch — bridge-integrated toggle.
|
|
4
|
-
*
|
|
5
|
-
* Implementation mirrors `<Checkbox>` (same 8-step bridge integration
|
|
6
|
-
* pattern, same StrictMode-safe unregister, same controlled-vs-
|
|
7
|
-
* uncontrolled Radix props logic) — the only differences are:
|
|
8
|
-
*
|
|
9
|
-
* - Renders Radix `Switch.Root` + `Switch.Thumb` instead of `Checkbox`.
|
|
10
|
-
* - No indicator icon (the thumb position is the visual state).
|
|
11
|
-
* - Variants drive both control track dimensions AND the thumb
|
|
12
|
-
* translate-x distance so the knob lands flush at each end.
|
|
13
|
-
*/
|
|
14
|
-
export declare function Switch(props: SwitchProps): import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
-
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;;;;;;;;GAWG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,kDAsIxC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { AccessRequirement } from '@dashforge/rbac';
|
|
3
|
-
import type { Engine } from '@dashforge/ui-core';
|
|
4
|
-
import type { SwitchVariants } from './switch.variants.js';
|
|
5
|
-
export interface SwitchSlotProps {
|
|
6
|
-
root?: {
|
|
7
|
-
className?: string;
|
|
8
|
-
};
|
|
9
|
-
control?: {
|
|
10
|
-
className?: string;
|
|
11
|
-
};
|
|
12
|
-
thumb?: {
|
|
13
|
-
className?: string;
|
|
14
|
-
};
|
|
15
|
-
label?: {
|
|
16
|
-
className?: string;
|
|
17
|
-
};
|
|
18
|
-
helperText?: {
|
|
19
|
-
className?: string;
|
|
20
|
-
};
|
|
21
|
-
errorText?: {
|
|
22
|
-
className?: string;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Props for the Dashforge TW `<Switch>` component.
|
|
27
|
-
*
|
|
28
|
-
* Mirrors the bridge contract of `@dashforge/ui/Switch` (MUI). Same
|
|
29
|
-
* `name` / `rules` / `visibleWhen` / `access` semantics, same
|
|
30
|
-
* validation gating. Renders through Radix `Switch.Root` + `Switch.Thumb`.
|
|
31
|
-
*/
|
|
32
|
-
export interface SwitchProps extends Pick<SwitchVariants, 'size'> {
|
|
33
|
-
name: string;
|
|
34
|
-
label?: ReactNode;
|
|
35
|
-
rules?: unknown;
|
|
36
|
-
visibleWhen?: (engine: Engine) => boolean;
|
|
37
|
-
checked?: boolean;
|
|
38
|
-
defaultChecked?: boolean;
|
|
39
|
-
disabled?: boolean;
|
|
40
|
-
helperText?: ReactNode;
|
|
41
|
-
error?: boolean;
|
|
42
|
-
access?: AccessRequirement;
|
|
43
|
-
sx?: string;
|
|
44
|
-
slotProps?: SwitchSlotProps;
|
|
45
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=switch.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"switch.types.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,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,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjC,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,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;;;;;;GAMG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
-
/**
|
|
3
|
-
* Tailwind-variants recipe for `<Switch>` with slots.
|
|
4
|
-
*
|
|
5
|
-
* Slots:
|
|
6
|
-
* - `root` — outer flex wrapper (control + label)
|
|
7
|
-
* - `control` — the visible track (Radix `Switch.Root`)
|
|
8
|
-
* - `thumb` — the moving knob (Radix `Switch.Thumb`); animated
|
|
9
|
-
* via translate-x on data-state="checked"
|
|
10
|
-
* - `label` — text next to the control
|
|
11
|
-
* - `helperText` / `errorText` — informational lines below
|
|
12
|
-
*/
|
|
13
|
-
export declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
14
|
-
size: {
|
|
15
|
-
sm: {
|
|
16
|
-
control: string;
|
|
17
|
-
thumb: string;
|
|
18
|
-
label: string;
|
|
19
|
-
};
|
|
20
|
-
md: {
|
|
21
|
-
control: string;
|
|
22
|
-
thumb: string;
|
|
23
|
-
label: string;
|
|
24
|
-
};
|
|
25
|
-
lg: {
|
|
26
|
-
control: string;
|
|
27
|
-
thumb: string;
|
|
28
|
-
label: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
error: {
|
|
32
|
-
true: {
|
|
33
|
-
control: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}, {
|
|
37
|
-
root: string;
|
|
38
|
-
control: string[];
|
|
39
|
-
thumb: string[];
|
|
40
|
-
label: string;
|
|
41
|
-
helperText: string;
|
|
42
|
-
errorText: string;
|
|
43
|
-
}, undefined, {
|
|
44
|
-
size: {
|
|
45
|
-
sm: {
|
|
46
|
-
control: string;
|
|
47
|
-
thumb: string;
|
|
48
|
-
label: string;
|
|
49
|
-
};
|
|
50
|
-
md: {
|
|
51
|
-
control: string;
|
|
52
|
-
thumb: string;
|
|
53
|
-
label: string;
|
|
54
|
-
};
|
|
55
|
-
lg: {
|
|
56
|
-
control: string;
|
|
57
|
-
thumb: string;
|
|
58
|
-
label: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
error: {
|
|
62
|
-
true: {
|
|
63
|
-
control: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
}, {
|
|
67
|
-
root: string;
|
|
68
|
-
control: string[];
|
|
69
|
-
thumb: string[];
|
|
70
|
-
label: string;
|
|
71
|
-
helperText: string;
|
|
72
|
-
errorText: string;
|
|
73
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
74
|
-
size: {
|
|
75
|
-
sm: {
|
|
76
|
-
control: string;
|
|
77
|
-
thumb: string;
|
|
78
|
-
label: string;
|
|
79
|
-
};
|
|
80
|
-
md: {
|
|
81
|
-
control: string;
|
|
82
|
-
thumb: string;
|
|
83
|
-
label: string;
|
|
84
|
-
};
|
|
85
|
-
lg: {
|
|
86
|
-
control: string;
|
|
87
|
-
thumb: string;
|
|
88
|
-
label: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
error: {
|
|
92
|
-
true: {
|
|
93
|
-
control: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
}, {
|
|
97
|
-
root: string;
|
|
98
|
-
control: string[];
|
|
99
|
-
thumb: string[];
|
|
100
|
-
label: string;
|
|
101
|
-
helperText: string;
|
|
102
|
-
errorText: string;
|
|
103
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
104
|
-
export type SwitchVariants = VariantProps<typeof switchVariants>;
|
|
105
|
-
//# sourceMappingURL=switch.variants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"switch.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/switch.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAiDzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { TextFieldProps } from './textField.types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Dashforge TW TextField — bridge-integrated text input.
|
|
4
|
-
*
|
|
5
|
-
* Implementation mirrors `@dashforge/ui/TextField` (MUI) at the bridge
|
|
6
|
-
* level — same `name` / `rules` / `visibleWhen` / `access` semantics,
|
|
7
|
-
* same validation gating, same StrictMode-safe unregister pattern.
|
|
8
|
-
* Renderer differences:
|
|
9
|
-
*
|
|
10
|
-
* - Native `<input>` element wrapped in a TV-styled
|
|
11
|
-
* `<div role-less wrapper>` so the focus ring extends to the entire
|
|
12
|
-
* field (consistent with shadcn-style inputs).
|
|
13
|
-
* - Layout modes: `stacked` (default — label above) and `inline`
|
|
14
|
-
* (label left of input). MUI's `floating` mode is deferred to a
|
|
15
|
-
* follow-up sprint; consumers needing the visual can layer it via
|
|
16
|
-
* `slotProps`.
|
|
17
|
-
* - No Select-integration hook (Select lands in F4 as its own component).
|
|
18
|
-
*
|
|
19
|
-
* **A11y**:
|
|
20
|
-
* - `aria-invalid` is set from the resolved validation state.
|
|
21
|
-
* - `aria-describedby` links the input to the helper/error text node.
|
|
22
|
-
* - Required fields get the native `required` attribute + a visual `*`.
|
|
23
|
-
*/
|
|
24
|
-
export declare function TextField(props: TextFieldProps): import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
-
//# sourceMappingURL=TextField.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,kDAuL9C"}
|