@nearform/quantum 1.7.3 → 1.9.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/README.md +19 -1
- package/dist/animations/index.d.ts +25 -0
- package/dist/animations/index.js +14 -37
- package/dist/animations/index.js.map +1 -1
- package/dist/assets/build/open-source.icon.d.ts +2 -0
- package/dist/assets/build/open-source.icon.js +7 -0
- package/dist/assets/build/open-source.icon.js.map +1 -0
- package/dist/assets/index.d.ts +13 -0
- package/dist/assets/index.js +29 -0
- package/dist/assets/index.js.map +1 -0
- package/dist/colors/accent.d.ts +16 -0
- package/dist/colors/accent.js +21 -0
- package/dist/colors/accent.js.map +1 -0
- package/dist/colors/background.d.ts +36 -0
- package/dist/colors/background.js +41 -0
- package/dist/colors/background.js.map +1 -0
- package/dist/colors/base.d.ts +136 -0
- package/dist/colors/base.js +140 -0
- package/dist/colors/base.js.map +1 -0
- package/dist/colors/border.d.ts +16 -0
- package/dist/colors/border.js +21 -0
- package/dist/colors/border.js.map +1 -0
- package/dist/colors/button.d.ts +106 -0
- package/dist/colors/button.js +115 -0
- package/dist/colors/button.js.map +1 -0
- package/dist/colors/feedback.d.ts +27 -0
- package/dist/colors/feedback.js +32 -0
- package/dist/colors/feedback.js.map +1 -0
- package/dist/colors/foreground.d.ts +35 -0
- package/dist/colors/foreground.js +40 -0
- package/dist/colors/foreground.js.map +1 -0
- package/dist/colors/index.d.ts +351 -0
- package/dist/colors/index.js +13 -416
- package/dist/colors/index.js.map +1 -1
- package/dist/components/Accordion/index.d.ts +13 -0
- package/dist/components/Accordion/index.js +97 -0
- package/dist/components/Accordion/index.js.map +1 -0
- package/dist/components/AppHeader/index.d.ts +21 -0
- package/dist/components/AppHeader/index.js +98 -0
- package/dist/components/AppHeader/index.js.map +1 -0
- package/dist/components/Avatar/index.d.ts +30 -0
- package/dist/components/Avatar/index.js +116 -0
- package/dist/components/Avatar/index.js.map +1 -0
- package/dist/components/BackLink/index.d.ts +9 -0
- package/dist/components/BackLink/index.js +80 -0
- package/dist/components/BackLink/index.js.map +1 -0
- package/dist/components/Badge/index.d.ts +48 -0
- package/dist/components/Badge/index.js +160 -0
- package/dist/components/Badge/index.js.map +1 -0
- package/dist/components/Breadcrumb/index.d.ts +13 -0
- package/dist/components/Breadcrumb/index.js +90 -0
- package/dist/components/Breadcrumb/index.js.map +1 -0
- package/dist/components/Button/index.d.ts +17 -0
- package/dist/components/Button/index.js +204 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/ButtonGroup/index.d.ts +11 -0
- package/dist/components/ButtonGroup/index.js +102 -0
- package/dist/components/ButtonGroup/index.js.map +1 -0
- package/dist/components/Calendar/index.d.ts +8 -0
- package/dist/components/Calendar/index.js +146 -0
- package/dist/components/Calendar/index.js.map +1 -0
- package/dist/components/Card/index.d.ts +28 -0
- package/dist/components/Card/index.js +155 -0
- package/dist/components/Card/index.js.map +1 -0
- package/dist/components/Chat/index.d.ts +39 -0
- package/dist/components/Chat/index.js +100 -0
- package/dist/components/Chat/index.js.map +1 -0
- package/dist/components/Checkbox/index.d.ts +5 -0
- package/dist/components/Checkbox/index.js +128 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +61 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js +107 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/CheckboxGroup/CheckboxGroupItem.d.ts +19 -0
- package/dist/components/CheckboxGroup/CheckboxGroupItem.js +83 -0
- package/dist/components/CheckboxGroup/CheckboxGroupItem.js.map +1 -0
- package/dist/components/CheckboxGroup/index.d.ts +2 -0
- package/dist/components/CheckboxGroup/index.js +9 -0
- package/dist/components/CheckboxGroup/index.js.map +1 -0
- package/dist/components/Chip/index.d.ts +11 -0
- package/dist/components/Chip/index.js +105 -0
- package/dist/components/Chip/index.js.map +1 -0
- package/dist/components/CodeBlock/index.d.ts +7 -0
- package/dist/components/CodeBlock/index.js +57 -0
- package/dist/components/CodeBlock/index.js.map +1 -0
- package/dist/components/ControlLabel/index.d.ts +13 -0
- package/dist/components/ControlLabel/index.js +83 -0
- package/dist/components/ControlLabel/index.js.map +1 -0
- package/dist/components/DateInput/index.d.ts +26 -0
- package/dist/components/DateInput/index.js +261 -0
- package/dist/components/DateInput/index.js.map +1 -0
- package/dist/components/DocsList/index.d.ts +18 -0
- package/dist/components/DocsList/index.js +125 -0
- package/dist/components/DocsList/index.js.map +1 -0
- package/dist/components/FormGroup/index.d.ts +121 -0
- package/dist/components/FormGroup/index.js +359 -0
- package/dist/components/FormGroup/index.js.map +1 -0
- package/dist/components/HeroButton/index.d.ts +17 -0
- package/dist/components/HeroButton/index.js +139 -0
- package/dist/components/HeroButton/index.js.map +1 -0
- package/dist/components/IconButton/index.d.ts +77 -0
- package/dist/components/IconButton/index.js +235 -0
- package/dist/components/IconButton/index.js.map +1 -0
- package/dist/components/Input/index.d.ts +27 -0
- package/dist/components/Input/index.js +179 -0
- package/dist/components/Input/index.js.map +1 -0
- package/dist/components/Label/index.d.ts +12 -0
- package/dist/components/Label/index.js +89 -0
- package/dist/components/Label/index.js.map +1 -0
- package/dist/components/Link/index.d.ts +8 -0
- package/dist/components/Link/index.js +40 -0
- package/dist/components/Link/index.js.map +1 -0
- package/dist/components/Modal/index.d.ts +26 -0
- package/dist/components/Modal/index.js +143 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/Navigation/index.d.ts +8 -0
- package/dist/components/Navigation/index.js +65 -0
- package/dist/components/Navigation/index.js.map +1 -0
- package/dist/components/Notice/index.d.ts +17 -0
- package/dist/components/Notice/index.js +134 -0
- package/dist/components/Notice/index.js.map +1 -0
- package/dist/components/PageHeader/index.d.ts +15 -0
- package/dist/components/PageHeader/index.js +90 -0
- package/dist/components/PageHeader/index.js.map +1 -0
- package/dist/components/Pagination/index.d.ts +17 -0
- package/dist/components/Pagination/index.js +118 -0
- package/dist/components/Pagination/index.js.map +1 -0
- package/dist/components/Password/index.d.ts +18 -0
- package/dist/components/Password/index.js +106 -0
- package/dist/components/Password/index.js.map +1 -0
- package/dist/components/Popover/index.d.ts +28 -0
- package/dist/components/Popover/index.js +97 -0
- package/dist/components/Popover/index.js.map +1 -0
- package/dist/components/Radio/RadioGroup.d.ts +42 -0
- package/dist/components/Radio/RadioGroup.js +82 -0
- package/dist/components/Radio/RadioGroup.js.map +1 -0
- package/dist/components/Radio/RadioGroupItem.d.ts +17 -0
- package/dist/components/Radio/RadioGroupItem.js +117 -0
- package/dist/components/Radio/RadioGroupItem.js.map +1 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +8 -0
- package/dist/components/Radio/index.js.map +1 -0
- package/dist/components/Select/index.d.ts +19 -0
- package/dist/components/Select/index.js +206 -0
- package/dist/components/Select/index.js.map +1 -0
- package/dist/components/Slider/index.d.ts +18 -0
- package/dist/components/Slider/index.js +122 -0
- package/dist/components/Slider/index.js.map +1 -0
- package/dist/components/SortAndShow/index.d.ts +15 -0
- package/dist/components/SortAndShow/index.js +68 -0
- package/dist/components/SortAndShow/index.js.map +1 -0
- package/dist/components/SplitButton/index.d.ts +25 -0
- package/dist/components/SplitButton/index.js +224 -0
- package/dist/components/SplitButton/index.js.map +1 -0
- package/dist/components/Stats/index.d.ts +10 -0
- package/dist/components/Stats/index.js +63 -0
- package/dist/components/Stats/index.js.map +1 -0
- package/dist/components/Stepper/index.d.ts +23 -0
- package/dist/components/Stepper/index.js +142 -0
- package/dist/components/Stepper/index.js.map +1 -0
- package/dist/components/StepsIndicator/Step.d.ts +6 -0
- package/dist/components/StepsIndicator/Step.js +24 -0
- package/dist/components/StepsIndicator/Step.js.map +1 -0
- package/dist/components/StepsIndicator/StepsIndicator.d.ts +12 -0
- package/dist/components/StepsIndicator/StepsIndicator.js +67 -0
- package/dist/components/StepsIndicator/StepsIndicator.js.map +1 -0
- package/dist/components/StepsIndicator/index.d.ts +2 -0
- package/dist/components/StepsIndicator/index.js +19 -0
- package/dist/components/StepsIndicator/index.js.map +1 -0
- package/dist/components/Subnav/index.d.ts +14 -0
- package/dist/components/Subnav/index.js +94 -0
- package/dist/components/Subnav/index.js.map +1 -0
- package/dist/components/Switch/index.d.ts +4 -0
- package/dist/components/Switch/index.js +103 -0
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/Table/index.d.ts +48 -0
- package/dist/components/Table/index.js +147 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/Tabs/index.d.ts +16 -0
- package/dist/components/Tabs/index.js +168 -0
- package/dist/components/Tabs/index.js.map +1 -0
- package/dist/components/Textarea/index.d.ts +13 -0
- package/dist/components/Textarea/index.js +96 -0
- package/dist/components/Textarea/index.js.map +1 -0
- package/dist/components/Toast/index.d.ts +24 -0
- package/dist/components/Toast/index.js +171 -0
- package/dist/components/Toast/index.js.map +1 -0
- package/dist/components/ToggleList/index.d.ts +20 -0
- package/dist/components/ToggleList/index.js +68 -0
- package/dist/components/ToggleList/index.js.map +1 -0
- package/dist/components/Tooltip/index.d.ts +11 -0
- package/dist/components/Tooltip/index.js +66 -0
- package/dist/components/Tooltip/index.js.map +1 -0
- package/dist/components/WebsiteFooter/index.d.ts +23 -0
- package/dist/components/WebsiteFooter/index.js +113 -0
- package/dist/components/WebsiteFooter/index.js.map +1 -0
- package/dist/components/WebsiteHeader/index.d.ts +21 -0
- package/dist/components/WebsiteHeader/index.js +98 -0
- package/dist/components/WebsiteHeader/index.js.map +1 -0
- package/dist/components/choice-group.d.ts +109 -0
- package/dist/components/choice-group.js +200 -0
- package/dist/components/choice-group.js.map +1 -0
- package/dist/components/index.d.ts +49 -0
- package/dist/components/index.js +66 -0
- package/dist/components/index.js.map +1 -0
- package/dist/esm/animations/index.js +17 -0
- package/dist/esm/animations/index.js.map +1 -0
- package/dist/esm/colors/accent.js +18 -0
- package/dist/esm/colors/accent.js.map +1 -0
- package/dist/esm/colors/background.js +38 -0
- package/dist/esm/colors/background.js.map +1 -0
- package/dist/esm/colors/base.js +137 -0
- package/dist/esm/colors/base.js.map +1 -0
- package/dist/esm/colors/border.js +18 -0
- package/dist/esm/colors/border.js.map +1 -0
- package/dist/esm/colors/button.js +112 -0
- package/dist/esm/colors/button.js.map +1 -0
- package/dist/esm/colors/feedback.js +29 -0
- package/dist/esm/colors/feedback.js.map +1 -0
- package/dist/esm/colors/foreground.js +37 -0
- package/dist/esm/colors/foreground.js.map +1 -0
- package/dist/esm/colors/index.js +13 -0
- package/dist/esm/colors/index.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/tailwind-base.js +31 -0
- package/dist/esm/tailwind-base.js.map +1 -0
- package/dist/esm/tailwind-plugin.js +29 -0
- package/dist/esm/tailwind-plugin.js.map +1 -0
- package/dist/esm/theme.js +55 -0
- package/dist/esm/theme.js.map +1 -0
- package/dist/global.css +574 -482
- package/dist/index.d.ts +3 -1299
- package/dist/index.js +23 -6335
- package/dist/index.js.map +1 -1
- package/dist/lib/utils.d.ts +16 -0
- package/dist/lib/utils.js +23 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/tailwind-base.js +33 -0
- package/dist/tailwind-base.js.map +1 -0
- package/dist/tailwind-plugin.js +31 -497
- package/dist/tailwind-plugin.js.map +1 -1
- package/dist/theme.js +60 -0
- package/dist/theme.js.map +1 -0
- package/package.json +9 -11
- package/dist/animations/index.mjs +0 -8
- package/dist/animations/index.mjs.map +0 -1
- package/dist/chunk-36NLQKQR.mjs +0 -22
- package/dist/chunk-36NLQKQR.mjs.map +0 -1
- package/dist/chunk-3FFF7Q7C.mjs +0 -55
- package/dist/chunk-3FFF7Q7C.mjs.map +0 -1
- package/dist/chunk-GTI4HTES.mjs +0 -386
- package/dist/chunk-GTI4HTES.mjs.map +0 -1
- package/dist/colors/index.mjs +0 -8
- package/dist/colors/index.mjs.map +0 -1
- package/dist/global.css.map +0 -1
- package/dist/index.d.mts +0 -1299
- package/dist/index.mjs +0 -5910
- package/dist/index.mjs.map +0 -1
- package/dist/tailwind-plugin.mjs +0 -67
- package/dist/tailwind-plugin.mjs.map +0 -1
package/dist/index.d.mts
DELETED
|
@@ -1,1299 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
-
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import React__default from 'react';
|
|
6
|
-
import { IconType } from 'react-icons';
|
|
7
|
-
export { IconType } from 'react-icons';
|
|
8
|
-
import { DayPicker } from 'react-day-picker';
|
|
9
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
10
|
-
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
11
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
12
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
13
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
14
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
15
|
-
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
16
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
17
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
18
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
19
|
-
import * as ToastPrimitive from '@radix-ui/react-toast';
|
|
20
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
21
|
-
export * from 'react-icons/bs';
|
|
22
|
-
|
|
23
|
-
declare const _default: {
|
|
24
|
-
grey: {
|
|
25
|
-
50: string;
|
|
26
|
-
100: string;
|
|
27
|
-
200: string;
|
|
28
|
-
300: string;
|
|
29
|
-
400: string;
|
|
30
|
-
500: string;
|
|
31
|
-
600: string;
|
|
32
|
-
700: string;
|
|
33
|
-
800: string;
|
|
34
|
-
900: string;
|
|
35
|
-
};
|
|
36
|
-
blue: {
|
|
37
|
-
50: string;
|
|
38
|
-
100: string;
|
|
39
|
-
200: string;
|
|
40
|
-
300: string;
|
|
41
|
-
400: string;
|
|
42
|
-
500: string;
|
|
43
|
-
600: string;
|
|
44
|
-
700: string;
|
|
45
|
-
800: string;
|
|
46
|
-
900: string;
|
|
47
|
-
};
|
|
48
|
-
red: {
|
|
49
|
-
50: string;
|
|
50
|
-
100: string;
|
|
51
|
-
200: string;
|
|
52
|
-
300: string;
|
|
53
|
-
400: string;
|
|
54
|
-
500: string;
|
|
55
|
-
600: string;
|
|
56
|
-
700: string;
|
|
57
|
-
800: string;
|
|
58
|
-
900: string;
|
|
59
|
-
};
|
|
60
|
-
orange: {
|
|
61
|
-
50: string;
|
|
62
|
-
100: string;
|
|
63
|
-
200: string;
|
|
64
|
-
300: string;
|
|
65
|
-
400: string;
|
|
66
|
-
500: string;
|
|
67
|
-
600: string;
|
|
68
|
-
700: string;
|
|
69
|
-
800: string;
|
|
70
|
-
900: string;
|
|
71
|
-
};
|
|
72
|
-
yellow: {
|
|
73
|
-
50: string;
|
|
74
|
-
100: string;
|
|
75
|
-
200: string;
|
|
76
|
-
300: string;
|
|
77
|
-
400: string;
|
|
78
|
-
500: string;
|
|
79
|
-
600: string;
|
|
80
|
-
700: string;
|
|
81
|
-
800: string;
|
|
82
|
-
900: string;
|
|
83
|
-
};
|
|
84
|
-
green: {
|
|
85
|
-
50: string;
|
|
86
|
-
100: string;
|
|
87
|
-
200: string;
|
|
88
|
-
300: string;
|
|
89
|
-
400: string;
|
|
90
|
-
500: string;
|
|
91
|
-
600: string;
|
|
92
|
-
700: string;
|
|
93
|
-
800: string;
|
|
94
|
-
900: string;
|
|
95
|
-
};
|
|
96
|
-
teal: {
|
|
97
|
-
50: string;
|
|
98
|
-
100: string;
|
|
99
|
-
200: string;
|
|
100
|
-
300: string;
|
|
101
|
-
400: string;
|
|
102
|
-
500: string;
|
|
103
|
-
600: string;
|
|
104
|
-
700: string;
|
|
105
|
-
800: string;
|
|
106
|
-
900: string;
|
|
107
|
-
};
|
|
108
|
-
indigo: {
|
|
109
|
-
50: string;
|
|
110
|
-
100: string;
|
|
111
|
-
200: string;
|
|
112
|
-
300: string;
|
|
113
|
-
400: string;
|
|
114
|
-
500: string;
|
|
115
|
-
600: string;
|
|
116
|
-
700: string;
|
|
117
|
-
800: string;
|
|
118
|
-
900: string;
|
|
119
|
-
};
|
|
120
|
-
purple: {
|
|
121
|
-
50: string;
|
|
122
|
-
100: string;
|
|
123
|
-
200: string;
|
|
124
|
-
300: string;
|
|
125
|
-
400: string;
|
|
126
|
-
500: string;
|
|
127
|
-
600: string;
|
|
128
|
-
700: string;
|
|
129
|
-
800: string;
|
|
130
|
-
900: string;
|
|
131
|
-
};
|
|
132
|
-
pink: {
|
|
133
|
-
50: string;
|
|
134
|
-
100: string;
|
|
135
|
-
200: string;
|
|
136
|
-
300: string;
|
|
137
|
-
400: string;
|
|
138
|
-
500: string;
|
|
139
|
-
600: string;
|
|
140
|
-
700: string;
|
|
141
|
-
800: string;
|
|
142
|
-
900: string;
|
|
143
|
-
};
|
|
144
|
-
brandMidnight: {
|
|
145
|
-
10: string;
|
|
146
|
-
30: string;
|
|
147
|
-
50: string;
|
|
148
|
-
80: string;
|
|
149
|
-
100: string;
|
|
150
|
-
};
|
|
151
|
-
brandGreen: {
|
|
152
|
-
10: string;
|
|
153
|
-
30: string;
|
|
154
|
-
50: string;
|
|
155
|
-
80: string;
|
|
156
|
-
100: string;
|
|
157
|
-
};
|
|
158
|
-
transparent: string;
|
|
159
|
-
current: string;
|
|
160
|
-
primary: {
|
|
161
|
-
10: string;
|
|
162
|
-
30: string;
|
|
163
|
-
50: string;
|
|
164
|
-
80: string;
|
|
165
|
-
100: string;
|
|
166
|
-
};
|
|
167
|
-
secondary: {
|
|
168
|
-
10: string;
|
|
169
|
-
30: string;
|
|
170
|
-
50: string;
|
|
171
|
-
80: string;
|
|
172
|
-
100: string;
|
|
173
|
-
};
|
|
174
|
-
foreground: {
|
|
175
|
-
DEFAULT: string;
|
|
176
|
-
dark: string;
|
|
177
|
-
muted: {
|
|
178
|
-
DEFAULT: string;
|
|
179
|
-
dark: string;
|
|
180
|
-
};
|
|
181
|
-
subtle: {
|
|
182
|
-
DEFAULT: string;
|
|
183
|
-
dark: string;
|
|
184
|
-
};
|
|
185
|
-
inverse: {
|
|
186
|
-
DEFAULT: string;
|
|
187
|
-
dark: string;
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
background: {
|
|
191
|
-
DEFAULT: string;
|
|
192
|
-
dark: string;
|
|
193
|
-
alt: {
|
|
194
|
-
DEFAULT: string;
|
|
195
|
-
dark: string;
|
|
196
|
-
};
|
|
197
|
-
subtle: {
|
|
198
|
-
DEFAULT: string;
|
|
199
|
-
dark: string;
|
|
200
|
-
};
|
|
201
|
-
surface: {
|
|
202
|
-
DEFAULT: string;
|
|
203
|
-
dark: string;
|
|
204
|
-
};
|
|
205
|
-
inverse: {
|
|
206
|
-
DEFAULT: string;
|
|
207
|
-
dark: string;
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
accent: {
|
|
211
|
-
DEFAULT: string;
|
|
212
|
-
dark: string;
|
|
213
|
-
alt: {
|
|
214
|
-
DEFAULT: string;
|
|
215
|
-
dark: string;
|
|
216
|
-
};
|
|
217
|
-
hover: {
|
|
218
|
-
DEFAULT: string;
|
|
219
|
-
dark: string;
|
|
220
|
-
};
|
|
221
|
-
focus: {
|
|
222
|
-
DEFAULT: string;
|
|
223
|
-
dark: string;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
border: {
|
|
227
|
-
DEFAULT: string;
|
|
228
|
-
dark: string;
|
|
229
|
-
hover: {
|
|
230
|
-
DEFAULT: string;
|
|
231
|
-
dark: string;
|
|
232
|
-
};
|
|
233
|
-
focus: {
|
|
234
|
-
DEFAULT: string;
|
|
235
|
-
dark: string;
|
|
236
|
-
};
|
|
237
|
-
subtle: {
|
|
238
|
-
DEFAULT: string;
|
|
239
|
-
dark: string;
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
feedback: {
|
|
243
|
-
success: {
|
|
244
|
-
DEFAULT: string;
|
|
245
|
-
dark: string;
|
|
246
|
-
};
|
|
247
|
-
warning: {
|
|
248
|
-
DEFAULT: string;
|
|
249
|
-
dark: string;
|
|
250
|
-
};
|
|
251
|
-
danger: {
|
|
252
|
-
DEFAULT: string;
|
|
253
|
-
dark: string;
|
|
254
|
-
};
|
|
255
|
-
error: {
|
|
256
|
-
DEFAULT: string;
|
|
257
|
-
dark: string;
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
button: {
|
|
261
|
-
primary: {
|
|
262
|
-
DEFAULT: string;
|
|
263
|
-
dark: string;
|
|
264
|
-
hover: {
|
|
265
|
-
DEFAULT: string;
|
|
266
|
-
dark: string;
|
|
267
|
-
};
|
|
268
|
-
focus: {
|
|
269
|
-
DEFAULT: string;
|
|
270
|
-
dark: string;
|
|
271
|
-
};
|
|
272
|
-
disabled: {
|
|
273
|
-
DEFAULT: string;
|
|
274
|
-
dark: string;
|
|
275
|
-
};
|
|
276
|
-
selected: {
|
|
277
|
-
DEFAULT: string;
|
|
278
|
-
dark: string;
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
secondary: {
|
|
282
|
-
DEFAULT: string;
|
|
283
|
-
dark: string;
|
|
284
|
-
hover: {
|
|
285
|
-
DEFAULT: string;
|
|
286
|
-
dark: string;
|
|
287
|
-
};
|
|
288
|
-
focus: {
|
|
289
|
-
DEFAULT: string;
|
|
290
|
-
dark: string;
|
|
291
|
-
};
|
|
292
|
-
disabled: {
|
|
293
|
-
DEFAULT: string;
|
|
294
|
-
dark: string;
|
|
295
|
-
};
|
|
296
|
-
border: {
|
|
297
|
-
DEFAULT: string;
|
|
298
|
-
dark: string;
|
|
299
|
-
hover: {
|
|
300
|
-
DEFAULT: string;
|
|
301
|
-
dark: string;
|
|
302
|
-
};
|
|
303
|
-
focus: {
|
|
304
|
-
DEFAULT: string;
|
|
305
|
-
dark: string;
|
|
306
|
-
};
|
|
307
|
-
disabled: {
|
|
308
|
-
DEFAULT: string;
|
|
309
|
-
dark: string;
|
|
310
|
-
};
|
|
311
|
-
selected: {
|
|
312
|
-
DEFAULT: string;
|
|
313
|
-
dark: string;
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
tertiary: {
|
|
318
|
-
hover: {
|
|
319
|
-
DEFAULT: string;
|
|
320
|
-
dark: string;
|
|
321
|
-
};
|
|
322
|
-
focus: {
|
|
323
|
-
DEFAULT: string;
|
|
324
|
-
dark: string;
|
|
325
|
-
};
|
|
326
|
-
selected: {
|
|
327
|
-
DEFAULT: string;
|
|
328
|
-
dark: string;
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
success: {
|
|
332
|
-
DEFAULT: string;
|
|
333
|
-
hover: {
|
|
334
|
-
DEFAULT: string;
|
|
335
|
-
};
|
|
336
|
-
focus: {
|
|
337
|
-
DEFAULT: string;
|
|
338
|
-
};
|
|
339
|
-
disabled: {
|
|
340
|
-
DEFAULT: string;
|
|
341
|
-
dark: string;
|
|
342
|
-
};
|
|
343
|
-
selected: {
|
|
344
|
-
DEFAULT: string;
|
|
345
|
-
dark: string;
|
|
346
|
-
};
|
|
347
|
-
};
|
|
348
|
-
danger: {
|
|
349
|
-
DEFAULT: string;
|
|
350
|
-
hover: {
|
|
351
|
-
DEFAULT: string;
|
|
352
|
-
};
|
|
353
|
-
focus: {
|
|
354
|
-
DEFAULT: string;
|
|
355
|
-
};
|
|
356
|
-
disabled: {
|
|
357
|
-
DEFAULT: string;
|
|
358
|
-
dark: string;
|
|
359
|
-
};
|
|
360
|
-
selected: {
|
|
361
|
-
DEFAULT: string;
|
|
362
|
-
dark: string;
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
};
|
|
366
|
-
white: {
|
|
367
|
-
DEFAULT: string;
|
|
368
|
-
};
|
|
369
|
-
black: {
|
|
370
|
-
DEFAULT: string;
|
|
371
|
-
};
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
declare const sizeVariants: (props?: ({
|
|
375
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
376
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
377
|
-
type AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root> & VariantProps<typeof sizeVariants>;
|
|
378
|
-
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
379
|
-
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
380
|
-
declare const AccordionHeader: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionHeaderProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
381
|
-
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
382
|
-
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
383
|
-
|
|
384
|
-
declare const avatarVariants: (props?: ({
|
|
385
|
-
size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
|
|
386
|
-
shape?: "square" | "circle" | null | undefined;
|
|
387
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
388
|
-
interface AvatarProps extends Omit<React__default.ComponentPropsWithoutRef<'span'>, 'children' | 'onError'>, VariantProps<typeof avatarVariants> {
|
|
389
|
-
/**
|
|
390
|
-
* Image to show. Until it loads — and permanently, if it fails to load — the
|
|
391
|
-
* initials or the icon show in its place.
|
|
392
|
-
*/
|
|
393
|
-
src?: string;
|
|
394
|
-
/** Who the avatar stands for: names it, and seeds the initials. */
|
|
395
|
-
name?: string;
|
|
396
|
-
/** Initials to render instead of the ones derived from `name`. */
|
|
397
|
-
initials?: string;
|
|
398
|
-
/** Accessible name to use instead of `name`, for the image and the fallback alike. */
|
|
399
|
-
alt?: string;
|
|
400
|
-
/** Icon to render instead of the default person glyph when there are no initials. */
|
|
401
|
-
icon?: React__default.ReactNode;
|
|
402
|
-
}
|
|
403
|
-
/**
|
|
404
|
-
* The image sits on top of the fallback rather than replacing it, so the
|
|
405
|
-
* initials cover the gap while it loads instead of the avatar flashing empty.
|
|
406
|
-
* Only one of the two is ever exposed to assistive technology: the `<img>`
|
|
407
|
-
* carries the accessible name whenever it is rendered, and the fallback layer
|
|
408
|
-
* is `aria-hidden` throughout.
|
|
409
|
-
*/
|
|
410
|
-
declare const Avatar: React__default.ForwardRefExoticComponent<AvatarProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
411
|
-
|
|
412
|
-
declare const backLinkVariants: (props?: ({
|
|
413
|
-
size?: "sm" | "md" | null | undefined;
|
|
414
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
415
|
-
interface BackLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof backLinkVariants> {
|
|
416
|
-
}
|
|
417
|
-
declare const BackLink: React.ForwardRefExoticComponent<BackLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
418
|
-
|
|
419
|
-
declare const OpenSourceIcon: IconType;
|
|
420
|
-
|
|
421
|
-
declare const Breadcrumb: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
422
|
-
declare const BreadcrumbList: React.ForwardRefExoticComponent<React.OlHTMLAttributes<HTMLOListElement> & React.RefAttributes<HTMLOListElement>>;
|
|
423
|
-
declare const BreadcrumbItem: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
424
|
-
interface BreadcrumbLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
425
|
-
asChild?: boolean;
|
|
426
|
-
icon?: IconType;
|
|
427
|
-
}
|
|
428
|
-
declare const BreadcrumbLink: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
429
|
-
declare const BreadcrumbPage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
430
|
-
declare const BreadcrumbSeparator: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* Badge wears the same clothes as `Chip`: a 2px coloured border around a `-50`
|
|
434
|
-
* fill, with the text in near-black `foreground` rather than a tint of the
|
|
435
|
-
* hue. The two are siblings in the design file and share the fills exactly, so
|
|
436
|
-
* they share the tokens here too.
|
|
437
|
-
*
|
|
438
|
-
* Putting the colour in the border rather than the text is what makes the
|
|
439
|
-
* whole set comfortably accessible -- `foreground` on any of the `-50` fills
|
|
440
|
-
* is 16:1 or better, so there is no per-hue weight to tune and no ramp that
|
|
441
|
-
* has to be treated as a special case.
|
|
442
|
-
*
|
|
443
|
-
* Dark mode is not in the design file, so it is derived: the fill drops to the
|
|
444
|
-
* page background, the border takes the dark half of its descriptor, and the
|
|
445
|
-
* border goes on carrying the meaning. Tinting the fill instead would have
|
|
446
|
-
* been prettier and would have hidden the border in it -- `feedback-error` on
|
|
447
|
-
* `red-900` is 1.85:1, which would leave error and success telling themselves
|
|
448
|
-
* apart by fill alone.
|
|
449
|
-
*/
|
|
450
|
-
declare const badgeVariants: (props?: ({
|
|
451
|
-
variant?: "default" | "disabled" | "info" | "success" | "warning" | "error" | "active" | null | undefined;
|
|
452
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
453
|
-
shape?: "circle" | "rounded" | null | undefined;
|
|
454
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
455
|
-
interface BadgeProps extends React__default.ComponentPropsWithoutRef<'span'>, VariantProps<typeof badgeVariants> {
|
|
456
|
-
/** Decorative icon shown before the text. */
|
|
457
|
-
icon?: React__default.ReactNode;
|
|
458
|
-
/** Shows a filled dot before the text, in the badge's own colour. */
|
|
459
|
-
dot?: boolean;
|
|
460
|
-
}
|
|
461
|
-
/**
|
|
462
|
-
* A badge labels the thing beside it -- a count, a status, a category. It is
|
|
463
|
-
* static: nothing about it responds to a click, and a badge that needs to be
|
|
464
|
-
* pressed or removed is a `Chip`. `disabled` is an appearance only, for a
|
|
465
|
-
* badge attached to a control that is itself disabled; it does not disable
|
|
466
|
-
* anything, because there is nothing here to disable.
|
|
467
|
-
*
|
|
468
|
-
* The text inside is the label, so it is left in the accessibility tree as
|
|
469
|
-
* ordinary content. A badge whose text does not say enough on its own -- a
|
|
470
|
-
* bare `3` -- takes an `aria-label`, and with it `role="img"`, which is what
|
|
471
|
-
* makes that label reach a screen reader at all: `aria-label` on a plain
|
|
472
|
-
* `<span>` has no role to name and most screen readers drop it. The badge
|
|
473
|
-
* never carries that role without a name to go in it, however the role
|
|
474
|
-
* arrived.
|
|
475
|
-
*/
|
|
476
|
-
declare const Badge: React__default.ForwardRefExoticComponent<BadgeProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
477
|
-
|
|
478
|
-
declare const buttonVariants: (props?: ({
|
|
479
|
-
variant?: "success" | "primary" | "secondary" | "tertiary" | "danger" | null | undefined;
|
|
480
|
-
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
481
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
482
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
483
|
-
leftSideChild?: React.ReactNode;
|
|
484
|
-
rightSideChild?: React.ReactNode;
|
|
485
|
-
leftSideClassName?: string;
|
|
486
|
-
rightSideClassName?: string;
|
|
487
|
-
children: any;
|
|
488
|
-
asChild?: boolean;
|
|
489
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
490
|
-
}
|
|
491
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
492
|
-
|
|
493
|
-
declare const buttonGroupVariants: (props?: ({
|
|
494
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
495
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
496
|
-
size?: "sm" | "md" | null | undefined;
|
|
497
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
498
|
-
interface ButtonGroupProps extends React__default.ComponentPropsWithoutRef<'div'>, VariantProps<typeof buttonGroupVariants> {
|
|
499
|
-
}
|
|
500
|
-
declare const ButtonGroup: React__default.ForwardRefExoticComponent<ButtonGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
501
|
-
|
|
502
|
-
type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
503
|
-
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): React.JSX.Element;
|
|
504
|
-
declare namespace Calendar {
|
|
505
|
-
var displayName: string;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
type CheckboxProps = React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;
|
|
509
|
-
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
510
|
-
|
|
511
|
-
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
512
|
-
|
|
513
|
-
declare const cardVariants: (props?: ({
|
|
514
|
-
variant?: "outline" | "filled" | null | undefined;
|
|
515
|
-
interactive?: boolean | null | undefined;
|
|
516
|
-
selected?: boolean | null | undefined;
|
|
517
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
518
|
-
interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
519
|
-
}
|
|
520
|
-
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
521
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
522
|
-
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
523
|
-
type CheckboxRootProps = React.ComponentPropsWithoutRef<typeof Checkbox>;
|
|
524
|
-
interface SelectableCardProps extends Omit<CheckboxRootProps, 'title' | 'children' | 'asChild'> {
|
|
525
|
-
title: React.ReactNode;
|
|
526
|
-
description?: React.ReactNode;
|
|
527
|
-
}
|
|
528
|
-
declare const SelectableCard: React.ForwardRefExoticComponent<SelectableCardProps & React.RefAttributes<HTMLButtonElement>>;
|
|
529
|
-
type SwitchRootProps$1 = React.ComponentPropsWithoutRef<typeof Switch>;
|
|
530
|
-
interface SwitchCardProps extends Omit<SwitchRootProps$1, 'children' | 'asChild'> {
|
|
531
|
-
label: React.ReactNode;
|
|
532
|
-
onRemove?: () => void;
|
|
533
|
-
removeLabel?: string;
|
|
534
|
-
}
|
|
535
|
-
declare const SwitchCard: React.ForwardRefExoticComponent<SwitchCardProps & React.RefAttributes<HTMLButtonElement>>;
|
|
536
|
-
|
|
537
|
-
interface ChoiceGroupFieldsetProps extends React.ComponentPropsWithoutRef<'fieldset'> {
|
|
538
|
-
/** The group's name, rendered as its `<legend>`. */
|
|
539
|
-
legend?: React.ReactNode;
|
|
540
|
-
/** Hint under the legend, reached through the fieldset's `aria-describedby`. */
|
|
541
|
-
description?: React.ReactNode;
|
|
542
|
-
/** Validation message under the options, reached the same way. */
|
|
543
|
-
error?: React.ReactNode;
|
|
544
|
-
/**
|
|
545
|
-
* Dims the legend along with the options. Deliberately not rendered as the
|
|
546
|
-
* `<fieldset disabled>` attribute, which the browser applies to every
|
|
547
|
-
* control inside the element with no way for one of them to opt back in: a
|
|
548
|
-
* group disabled that way could not leave a single option live, and an item
|
|
549
|
-
* that had asked to stay enabled would render as enabled and refuse to be
|
|
550
|
-
* clicked. Every control is given `disabled` in its own right instead.
|
|
551
|
-
*/
|
|
552
|
-
disabled?: boolean;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
interface CheckboxGroupContextValue {
|
|
556
|
-
/** The values of the boxes that are currently ticked. */
|
|
557
|
-
value: string[];
|
|
558
|
-
toggle: (value: string, checked: boolean) => void;
|
|
559
|
-
/** Shared by every box in the group, so the set submits as one field. */
|
|
560
|
-
name?: string;
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* The group's selection, for a `CheckboxGroupItem` to read. `null` outside a
|
|
564
|
-
* group, where an item is an ordinary checkbox that keeps its own state.
|
|
565
|
-
*/
|
|
566
|
-
declare const useCheckboxGroup: () => CheckboxGroupContextValue | null;
|
|
567
|
-
interface CheckboxGroupProps extends Omit<ChoiceGroupFieldsetProps, 'defaultValue' | 'onChange'> {
|
|
568
|
-
/** Ticked values. Supply it for a controlled group, with `onValueChange`. */
|
|
569
|
-
value?: string[];
|
|
570
|
-
/** Ticked values at first render, for a group that keeps its own state. */
|
|
571
|
-
defaultValue?: string[];
|
|
572
|
-
onValueChange?: (value: string[]) => void;
|
|
573
|
-
/** Given to every box, so the group submits as one multi-valued field. */
|
|
574
|
-
name?: string;
|
|
575
|
-
/** Lays the options out in a column or in a wrapping row. */
|
|
576
|
-
orientation?: 'vertical' | 'horizontal';
|
|
577
|
-
/** Which side of its control each label sits on. */
|
|
578
|
-
labelPosition?: 'left' | 'right';
|
|
579
|
-
/**
|
|
580
|
-
* Marks the options invalid independently of `error`, and wins over it in
|
|
581
|
-
* both directions -- the same split `FormGroup` draws, for the same reason:
|
|
582
|
-
* `error` is what the group says, `invalid` is what it claims about itself.
|
|
583
|
-
*/
|
|
584
|
-
invalid?: boolean;
|
|
585
|
-
}
|
|
586
|
-
/**
|
|
587
|
-
* A set of checkboxes that belong to one question.
|
|
588
|
-
*
|
|
589
|
-
* ```tsx
|
|
590
|
-
* <CheckboxGroup
|
|
591
|
-
* legend="How should we contact you?"
|
|
592
|
-
* description="Select all that apply"
|
|
593
|
-
* name="contact"
|
|
594
|
-
* defaultValue={['email']}
|
|
595
|
-
* >
|
|
596
|
-
* <CheckboxGroupItem value="email" label="Email" />
|
|
597
|
-
* <CheckboxGroupItem value="phone" label="Phone" description="Weekdays only" />
|
|
598
|
-
* </CheckboxGroup>
|
|
599
|
-
* ```
|
|
600
|
-
*
|
|
601
|
-
* The group owns the selection and the items read it, rather than each box
|
|
602
|
-
* holding a boolean of its own: "which of these are ticked" is one piece of
|
|
603
|
-
* state and one `onValueChange`, and a group that submits under one `name` is
|
|
604
|
-
* one field on the server too.
|
|
605
|
-
*
|
|
606
|
-
* There is no `required`. A checkbox group's rule is almost always "at least
|
|
607
|
-
* one", and HTML's `required` on a checkbox means that box in particular, so
|
|
608
|
-
* forwarding it to the options would demand every one of them; `aria-required`
|
|
609
|
-
* on each box says the same thing to a screen reader. The rule belongs to the
|
|
610
|
-
* form, and what it produces is an `error`.
|
|
611
|
-
*/
|
|
612
|
-
declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
613
|
-
|
|
614
|
-
interface CheckboxGroupItemProps extends Omit<CheckboxProps, 'checked' | 'defaultChecked' | 'value'> {
|
|
615
|
-
/** What this box contributes to the group's value when it is ticked. */
|
|
616
|
-
value: string;
|
|
617
|
-
label?: React.ReactNode;
|
|
618
|
-
/** Hint for this option alone, announced with the box it belongs to. */
|
|
619
|
-
description?: React.ReactNode;
|
|
620
|
-
}
|
|
621
|
-
/**
|
|
622
|
-
* One box in a `CheckboxGroup`, with the label and hint that belong to it.
|
|
623
|
-
*
|
|
624
|
-
* Whether it is ticked comes from the group, so `checked` is not a prop here;
|
|
625
|
-
* `onCheckedChange` still is, for the caller who wants to know about this one
|
|
626
|
-
* box as well as about the group. Rendered outside a group it is an ordinary
|
|
627
|
-
* uncontrolled checkbox that happens to come with its label wired up.
|
|
628
|
-
*/
|
|
629
|
-
declare const CheckboxGroupItem: React.ForwardRefExoticComponent<CheckboxGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
630
|
-
|
|
631
|
-
interface CodeBlockProps extends React.HTMLAttributes<HTMLElement> {
|
|
632
|
-
label?: React.ReactNode;
|
|
633
|
-
language?: string;
|
|
634
|
-
}
|
|
635
|
-
declare const CodeBlock: React.ForwardRefExoticComponent<CodeBlockProps & React.RefAttributes<HTMLElement>>;
|
|
636
|
-
|
|
637
|
-
type DateInputInvalidReason = 'format' | 'range';
|
|
638
|
-
interface DateInputValueDetails {
|
|
639
|
-
text: string;
|
|
640
|
-
invalid: boolean;
|
|
641
|
-
reason: DateInputInvalidReason | null;
|
|
642
|
-
}
|
|
643
|
-
interface DateInputProps extends Omit<React.ComponentPropsWithoutRef<'input'>, 'size' | 'type' | 'value' | 'defaultValue' | 'min' | 'max'> {
|
|
644
|
-
value?: Date | null;
|
|
645
|
-
defaultValue?: Date | null;
|
|
646
|
-
onValueChange?: (date: Date | null, details: DateInputValueDetails) => void;
|
|
647
|
-
format?: string;
|
|
648
|
-
formatHint?: string;
|
|
649
|
-
min?: Date;
|
|
650
|
-
max?: Date;
|
|
651
|
-
variant?: 'primary' | 'error' | 'success';
|
|
652
|
-
size?: 'sm' | 'default' | 'lg';
|
|
653
|
-
formClassName?: string;
|
|
654
|
-
labelText?: string;
|
|
655
|
-
helpText?: string;
|
|
656
|
-
calendarLabel?: string;
|
|
657
|
-
invalidMessage?: string;
|
|
658
|
-
rangeMessage?: string;
|
|
659
|
-
}
|
|
660
|
-
declare const DateInput: React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
661
|
-
|
|
662
|
-
declare const chipVariants: (props?: ({
|
|
663
|
-
variant?: "default" | "info" | "success" | "warning" | "error" | null | undefined;
|
|
664
|
-
size?: "default" | "lg" | null | undefined;
|
|
665
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
666
|
-
interface ChipProps extends React__default.ComponentPropsWithRef<'button'>, VariantProps<typeof chipVariants> {
|
|
667
|
-
active?: boolean;
|
|
668
|
-
}
|
|
669
|
-
declare const Chip: React__default.ForwardRefExoticComponent<Omit<ChipProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
670
|
-
|
|
671
|
-
declare const labelVariants: (props?: ({
|
|
672
|
-
size?: "sm" | "md" | "lg" | "xs" | "xl" | null | undefined;
|
|
673
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
674
|
-
interface LabelProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
675
|
-
hintText?: string;
|
|
676
|
-
align?: 'left' | 'right';
|
|
677
|
-
}
|
|
678
|
-
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
679
|
-
|
|
680
|
-
declare const verticalAlignVariants: (props?: ({
|
|
681
|
-
varticalAlign?: "middle" | "top" | "bottom" | null | undefined;
|
|
682
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
683
|
-
type Props$1 = Omit<LabelProps, 'children' | 'align'> & VariantProps<typeof verticalAlignVariants> & React.PropsWithChildren<{
|
|
684
|
-
label: string;
|
|
685
|
-
position?: 'left' | 'right';
|
|
686
|
-
varticalAlign?: 'top' | 'middle' | 'bottom';
|
|
687
|
-
}>;
|
|
688
|
-
declare const ControlLabel: React.FC<Props$1>;
|
|
689
|
-
|
|
690
|
-
/**
|
|
691
|
-
* A field is three things that have to agree with each other: a label, a
|
|
692
|
-
* control, and a message below it. Getting them to agree is entirely id
|
|
693
|
-
* plumbing -- the label's `htmlFor` has to match the control's `id`, the
|
|
694
|
-
* message's `id` has to appear in the control's `aria-describedby`, and the
|
|
695
|
-
* control has to be marked `aria-invalid` when the message is an error. That
|
|
696
|
-
* is what `FormGroup` does; the layout is the smaller half of the job.
|
|
697
|
-
*
|
|
698
|
-
* The plumbing is done by cloning the children rather than by having the
|
|
699
|
-
* children read a context, so the group works with anything that takes the
|
|
700
|
-
* props every form control already takes -- our `Input` and `Select`, a bare
|
|
701
|
-
* `<input>`, a control from somewhere else. The only requirement is that they
|
|
702
|
-
* are direct children, which is the arrangement the design file draws.
|
|
703
|
-
*/
|
|
704
|
-
declare const formGroupVariants: (props?: ({
|
|
705
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
706
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
707
|
-
interface FormGroupContextValue {
|
|
708
|
-
/** Shown by `FieldDescription` unless it is given children of its own. */
|
|
709
|
-
description?: React.ReactNode;
|
|
710
|
-
/** Shown by `FieldError` unless it is given children of its own. */
|
|
711
|
-
error?: React.ReactNode;
|
|
712
|
-
descriptionId: string;
|
|
713
|
-
errorId: string;
|
|
714
|
-
/** Whether a `FieldError` in this group has something to render. */
|
|
715
|
-
errorShown: boolean;
|
|
716
|
-
}
|
|
717
|
-
/**
|
|
718
|
-
* The group's messages and the ids they are published under. `null` outside a
|
|
719
|
-
* `FormGroup`, which is what lets `FieldError` and `FieldDescription` be
|
|
720
|
-
* rendered on their own.
|
|
721
|
-
*
|
|
722
|
-
* Useful for a control the group cannot reach -- one nested inside a wrapper
|
|
723
|
-
* of your own, say -- which can take `errorId` from here and put it in its own
|
|
724
|
-
* `aria-describedby`.
|
|
725
|
-
*/
|
|
726
|
-
declare const useFormGroup: () => FormGroupContextValue | null;
|
|
727
|
-
type FieldMessageProps = React.ComponentPropsWithoutRef<'p'>;
|
|
728
|
-
/**
|
|
729
|
-
* The hint under the control. Takes its text from the group's `description`,
|
|
730
|
-
* or from its own children when you would rather write it inline.
|
|
731
|
-
*
|
|
732
|
-
* Stands down while the group's `FieldError` has something to say, so the two
|
|
733
|
-
* can be written side by side once and the field shows one message at a time
|
|
734
|
-
* rather than growing a second line as it is validated. The error is the more
|
|
735
|
-
* urgent of the two and it takes the place, not the space below it. A field
|
|
736
|
-
* that genuinely needs both messages at once wants a second element of its
|
|
737
|
-
* own rather than this one.
|
|
738
|
-
*/
|
|
739
|
-
declare const FieldDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
740
|
-
/**
|
|
741
|
-
* The validation message under the control, and the thing that puts the group
|
|
742
|
-
* in its error state: a `FormGroup` whose `error` is set marks its control
|
|
743
|
-
* `aria-invalid` whether or not a `FieldError` is there to render it.
|
|
744
|
-
*
|
|
745
|
-
* `role="alert"` is what announces a message that appears after the page has
|
|
746
|
-
* loaded -- an element carrying it is read out when it enters the DOM, and
|
|
747
|
-
* this one is not rendered at all until there is something to say. The
|
|
748
|
-
* `aria-describedby` link the group sets up covers the other direction: a
|
|
749
|
-
* message that was already on screen is read when focus reaches the control.
|
|
750
|
-
*/
|
|
751
|
-
declare const FieldError: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
752
|
-
interface FormGroupProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'id'>, VariantProps<typeof formGroupVariants> {
|
|
753
|
-
/** Given to the control and to the label's `htmlFor`. Generated when omitted. */
|
|
754
|
-
controlId?: string;
|
|
755
|
-
/** Hint text, rendered wherever `<FieldDescription />` is placed. */
|
|
756
|
-
description?: React.ReactNode;
|
|
757
|
-
/**
|
|
758
|
-
* Validation message, rendered wherever `<FieldError />` is placed. Setting
|
|
759
|
-
* it marks the control invalid.
|
|
760
|
-
*/
|
|
761
|
-
error?: React.ReactNode;
|
|
762
|
-
/**
|
|
763
|
-
* Marks the control invalid independently of `error`, and wins over it in
|
|
764
|
-
* both directions -- `invalid` alone flags a control with no message to
|
|
765
|
-
* show, and `invalid={false}` alongside an `error` renders the message
|
|
766
|
-
* without the flag. The two are deliberately separate: `error` is what the
|
|
767
|
-
* field says, `invalid` is what it claims about itself, and a field can
|
|
768
|
-
* reasonably carry a message it does not want treated as a validation
|
|
769
|
-
* failure. Leave it unset and the error decides.
|
|
770
|
-
*/
|
|
771
|
-
invalid?: boolean;
|
|
772
|
-
/** Passed to the control, for the whole field to be disabled in one place. */
|
|
773
|
-
disabled?: boolean;
|
|
774
|
-
/** Passed to the control, for the whole field to be required in one place. */
|
|
775
|
-
required?: boolean;
|
|
776
|
-
}
|
|
777
|
-
/**
|
|
778
|
-
* Wraps a label, a control and its messages into one field, wiring them
|
|
779
|
-
* together and laying them out in either orientation.
|
|
780
|
-
*
|
|
781
|
-
* ```tsx
|
|
782
|
-
* <FormGroup orientation="vertical" error="Pick a date in the future">
|
|
783
|
-
* <Label>Start date</Label>
|
|
784
|
-
* <Input type="date" variant="error" onClear={clear} />
|
|
785
|
-
* <FieldError />
|
|
786
|
-
* </FormGroup>
|
|
787
|
-
* ```
|
|
788
|
-
*
|
|
789
|
-
* The label, the messages and the control are recognised by what they are, so
|
|
790
|
-
* they can be written in any order -- though writing them in the order they
|
|
791
|
-
* appear is what makes the vertical layout need no placement rules at all.
|
|
792
|
-
* Anything that is not a `Label`, a `FieldDescription` or a `FieldError` is
|
|
793
|
-
* taken to be the control; only the first one is wired, since an id can only
|
|
794
|
-
* belong to one element.
|
|
795
|
-
*
|
|
796
|
-
* Nothing is overwritten. A child that already has an `htmlFor`, an
|
|
797
|
-
* `aria-describedby`, a `disabled` or a `required` keeps it, and its own
|
|
798
|
-
* `className` is applied after the group's. A control that already has an `id`
|
|
799
|
-
* keeps that too, and the label and the messages are built around it --
|
|
800
|
-
* `controlId` is the one way to override it, since a group asked for a
|
|
801
|
-
* specific id has been asked by the only party above both of them.
|
|
802
|
-
*
|
|
803
|
-
* `aria-invalid="false"` is the single exception, because it is the only one
|
|
804
|
-
* of these that says nothing by being there: it is the attribute's default
|
|
805
|
-
* and reads identically to its absence. See the guard below.
|
|
806
|
-
*/
|
|
807
|
-
declare const FormGroup: React.ForwardRefExoticComponent<FormGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
808
|
-
|
|
809
|
-
/**
|
|
810
|
-
* An icon button is a `Button` with the label taken out, so it takes its
|
|
811
|
-
* colours from `buttonVariants` rather than restating them. That import is
|
|
812
|
-
* the point rather than an economy: the two sit beside each other in a
|
|
813
|
-
* toolbar, so a variant that gained a hover state or a focus ring in one and
|
|
814
|
-
* not the other would be visible in the gap between them.
|
|
815
|
-
*
|
|
816
|
-
* `size: null` is how cva is told to skip a variant *and* its default, so
|
|
817
|
-
* `Button`'s padding and text sizes are left off entirely and the square
|
|
818
|
-
* below is the only thing setting the box.
|
|
819
|
-
*
|
|
820
|
-
* Which is the other half of the borrowing: a `Button`'s height is arithmetic
|
|
821
|
-
* -- padding plus line box plus border, with compound variants putting
|
|
822
|
-
* `secondary`'s 2px back -- and there is no line box here to add up, because
|
|
823
|
-
* there is no text. So the height is set outright, as `Input` sets its own,
|
|
824
|
-
* and `border-box` absorbs `secondary`'s border rather than a compound
|
|
825
|
-
* variant having to. The numbers are `Button`'s, measured: an icon button
|
|
826
|
-
* belongs in a row with one.
|
|
827
|
-
*/
|
|
828
|
-
declare const iconButtonVariants: (props?: ({
|
|
829
|
-
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
830
|
-
shape?: "circle" | "rounded" | null | undefined;
|
|
831
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
832
|
-
interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'title'>, VariantProps<typeof iconButtonVariants> {
|
|
833
|
-
/** The icon. It is the whole of the button's content. */
|
|
834
|
-
icon: React.ReactNode;
|
|
835
|
-
/**
|
|
836
|
-
* What the button does, in words -- "Close", "Add to basket", not "cross"
|
|
837
|
-
* or "plus". Required, because there is no text for a screen reader to fall
|
|
838
|
-
* back on.
|
|
839
|
-
*/
|
|
840
|
-
label: string;
|
|
841
|
-
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
842
|
-
}
|
|
843
|
-
/**
|
|
844
|
-
* A button whose content is an icon and nothing else: the close on a dialog,
|
|
845
|
-
* the actions at the end of a table row, a toolbar.
|
|
846
|
-
*
|
|
847
|
-
* `label` is required and has no default, which is the one way this differs
|
|
848
|
-
* from every other prop here. An icon button with no accessible name is a
|
|
849
|
-
* control a screen reader announces as "button" and nothing more, and unlike
|
|
850
|
-
* a missing colour it is invisible to everyone who is not affected by it.
|
|
851
|
-
* There is no name that could be guessed from an icon, so the type asks for
|
|
852
|
-
* one rather than inventing it (WCAG 4.1.2).
|
|
853
|
-
*
|
|
854
|
-
* The icon is left out of the accessibility tree by `aria-label` itself,
|
|
855
|
-
* which replaces an element's contents when the name is computed, so the icon
|
|
856
|
-
* needs no `aria-hidden` of its own. What the icon must not carry is a
|
|
857
|
-
* `title`, which would put a browser tooltip on it that the button's own
|
|
858
|
-
* `Tooltip` did not put there. That one is unreachable from here: `icon` is a
|
|
859
|
-
* `ReactNode`, so there is nothing to type-check.
|
|
860
|
-
*
|
|
861
|
-
* `title` is off the button as well, which is the one prop of a `<button>`
|
|
862
|
-
* this component takes away. It is not that it competes for the name --
|
|
863
|
-
* `title` is the last resort in the naming order, behind both `aria-label`
|
|
864
|
-
* and the contents, so while there is a label it never wins. It is that every
|
|
865
|
-
* reason to reach for it here is already served by something better, and
|
|
866
|
-
* served properly: a tooltip is `Tooltip`, which is reachable by keyboard and
|
|
867
|
-
* by touch as a native one is not, and a name is `label`. What is left is a
|
|
868
|
-
* second tooltip doubling up with the first, and a name that appears out of
|
|
869
|
-
* nowhere in the one case where `label` resolved empty. Neither is worth a
|
|
870
|
-
* prop, so the type stops it at the point where it can still be changed
|
|
871
|
-
* cheaply.
|
|
872
|
-
*
|
|
873
|
-
* Only the type stops it. A `title` arriving through an untyped spread is
|
|
874
|
-
* passed to the element like any other attribute, because deleting an
|
|
875
|
-
* attribute a caller explicitly set is a worse surprise than rendering it.
|
|
876
|
-
*
|
|
877
|
-
* `type` defaults to `"button"`. A bare `<button>` inside a form is a submit
|
|
878
|
-
* button, and an icon button is most often a close or a remove -- the one
|
|
879
|
-
* place that default does the most damage.
|
|
880
|
-
*/
|
|
881
|
-
declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
882
|
-
|
|
883
|
-
declare const formVariants: (props?: ({
|
|
884
|
-
variant?: "success" | "error" | "primary" | null | undefined;
|
|
885
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
886
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
887
|
-
type InputType = 'color' | 'date' | 'datetime-local' | 'email' | 'month' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week' | (string & {});
|
|
888
|
-
/**
|
|
889
|
-
* `size` is the field's height rather than the HTML attribute of that name,
|
|
890
|
-
* which is omitted. The attribute asks for a width in characters, and the
|
|
891
|
-
* `<input>` here is `flex-grow` inside the field, so it was already being
|
|
892
|
-
* overruled by the layout before it could mean anything.
|
|
893
|
-
*/
|
|
894
|
-
interface InputProps extends Omit<React__default.HTMLProps<HTMLInputElement>, 'size'> {
|
|
895
|
-
variant: 'primary' | 'error' | 'success';
|
|
896
|
-
size?: 'sm' | 'default' | 'lg';
|
|
897
|
-
type: InputType;
|
|
898
|
-
formClassName?: string;
|
|
899
|
-
leftSideClassName?: string;
|
|
900
|
-
leftSideChild?: React__default.ReactNode;
|
|
901
|
-
rightSideChild?: React__default.ReactNode;
|
|
902
|
-
labelText?: string;
|
|
903
|
-
helpText?: string;
|
|
904
|
-
clearLabel?: string;
|
|
905
|
-
onClear: () => void;
|
|
906
|
-
}
|
|
907
|
-
declare const Input: React__default.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
908
|
-
|
|
909
|
-
interface Props extends React__default.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
910
|
-
selected?: boolean;
|
|
911
|
-
icon?: IconType;
|
|
912
|
-
}
|
|
913
|
-
declare const Link: React__default.ForwardRefExoticComponent<Props & React__default.RefAttributes<HTMLAnchorElement>>;
|
|
914
|
-
|
|
915
|
-
declare const Modal: React.FC<DialogPrimitive.DialogProps>;
|
|
916
|
-
declare const ModalTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
917
|
-
declare const ModalPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
918
|
-
declare const ModalCloseFooter: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
919
|
-
declare const ModalOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
920
|
-
declare const ModalContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
921
|
-
declare const headerVariants: (props?: ({
|
|
922
|
-
variant?: "form" | "default" | null | undefined;
|
|
923
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
924
|
-
declare const ModalHeader: {
|
|
925
|
-
({ className, variant, ...props }: React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof headerVariants>): React.JSX.Element;
|
|
926
|
-
displayName: string;
|
|
927
|
-
};
|
|
928
|
-
declare const ModalFooter: {
|
|
929
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
930
|
-
displayName: string;
|
|
931
|
-
};
|
|
932
|
-
declare const ModalTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
933
|
-
declare const ModalClose: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
934
|
-
declare const ModalDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & VariantProps<(props?: ({
|
|
935
|
-
variant?: "form" | "default" | null | undefined;
|
|
936
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLParagraphElement>>;
|
|
937
|
-
|
|
938
|
-
declare const pageHeaderVariants: (props?: ({
|
|
939
|
-
size?: "sm" | "md" | null | undefined;
|
|
940
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
941
|
-
interface PageHeaderProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof pageHeaderVariants> {
|
|
942
|
-
}
|
|
943
|
-
declare const PageHeader: React.ForwardRefExoticComponent<PageHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
944
|
-
interface PageHeaderTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
945
|
-
asChild?: boolean;
|
|
946
|
-
count?: React.ReactNode;
|
|
947
|
-
}
|
|
948
|
-
declare const PageHeaderTitle: React.ForwardRefExoticComponent<PageHeaderTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
949
|
-
declare const PageHeaderActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
950
|
-
|
|
951
|
-
declare const PaginationVariants: (props?: class_variance_authority_dist_types.ClassProp | undefined) => string;
|
|
952
|
-
interface PaginationProps {
|
|
953
|
-
currentPage: number;
|
|
954
|
-
setCurrentPage: React__default.Dispatch<React__default.SetStateAction<number>>;
|
|
955
|
-
numberOfItemsPerPage: number;
|
|
956
|
-
totalNumberOfFilteredItems: number;
|
|
957
|
-
label?: string;
|
|
958
|
-
previousLabel?: string;
|
|
959
|
-
nextLabel?: string;
|
|
960
|
-
pageLabel?: (page: number) => string;
|
|
961
|
-
}
|
|
962
|
-
interface PaginationProps extends React__default.ComponentPropsWithoutRef<'div'>, VariantProps<typeof PaginationVariants> {
|
|
963
|
-
}
|
|
964
|
-
declare const Pagination: React__default.ForwardRefExoticComponent<PaginationProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
965
|
-
|
|
966
|
-
/**
|
|
967
|
-
* `size` is the field's height, and is passed through to the same variants
|
|
968
|
-
* `Input` uses so the two line up in a form. As there, it displaces the HTML
|
|
969
|
-
* attribute of that name, which the `flex-grow` input was overruling anyway.
|
|
970
|
-
*/
|
|
971
|
-
interface PasswordProps extends Omit<React__default.HTMLProps<HTMLInputElement>, 'size'> {
|
|
972
|
-
formClassName?: string;
|
|
973
|
-
variant?: 'primary' | 'error' | 'success';
|
|
974
|
-
size?: 'sm' | 'default' | 'lg';
|
|
975
|
-
toggleMask?: boolean;
|
|
976
|
-
labelText?: string;
|
|
977
|
-
helpText?: string;
|
|
978
|
-
showLabel?: string;
|
|
979
|
-
hideLabel?: string;
|
|
980
|
-
}
|
|
981
|
-
declare const Password: React__default.ForwardRefExoticComponent<Omit<PasswordProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
982
|
-
|
|
983
|
-
declare const popoverVariants: (props?: class_variance_authority_dist_types.ClassProp | undefined) => string;
|
|
984
|
-
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
985
|
-
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
986
|
-
declare const PopoverClose: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
987
|
-
interface PopoverProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>, VariantProps<typeof popoverVariants> {
|
|
988
|
-
}
|
|
989
|
-
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
990
|
-
type PopoverScrollAreaProps = React.PropsWithChildren<{
|
|
991
|
-
className?: string;
|
|
992
|
-
}>;
|
|
993
|
-
declare const PopoverScrollArea: React.FC<PopoverScrollAreaProps>;
|
|
994
|
-
interface PopoverSeparatorProps extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {
|
|
995
|
-
fullLength?: boolean;
|
|
996
|
-
}
|
|
997
|
-
declare const PopoverSeparator: React.ForwardRefExoticComponent<PopoverSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
998
|
-
type PopoverHeaderProps = React.PropsWithChildren<{
|
|
999
|
-
className?: string;
|
|
1000
|
-
}>;
|
|
1001
|
-
declare const PopoverHeader: React.FC<PopoverHeaderProps>;
|
|
1002
|
-
type PopoverFooterProps = React.PropsWithChildren<{
|
|
1003
|
-
className?: string;
|
|
1004
|
-
}>;
|
|
1005
|
-
declare const PopoverFooter: React.FC<PopoverFooterProps>;
|
|
1006
|
-
|
|
1007
|
-
interface RadioGroupProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> {
|
|
1008
|
-
/** The group's name, rendered as its `<legend>`. */
|
|
1009
|
-
legend?: React.ReactNode;
|
|
1010
|
-
/** Hint under the legend, announced when focus enters the group. */
|
|
1011
|
-
description?: React.ReactNode;
|
|
1012
|
-
/** Validation message under the options, announced the same way. */
|
|
1013
|
-
error?: React.ReactNode;
|
|
1014
|
-
/**
|
|
1015
|
-
* Marks the options invalid independently of `error`, and wins over it in
|
|
1016
|
-
* both directions -- the same split `FormGroup` and `CheckboxGroup` draw.
|
|
1017
|
-
*/
|
|
1018
|
-
invalid?: boolean;
|
|
1019
|
-
/** Which side of its control each label sits on. */
|
|
1020
|
-
labelPosition?: 'left' | 'right';
|
|
1021
|
-
/** Classes for the `<fieldset>` the group renders. */
|
|
1022
|
-
className?: string;
|
|
1023
|
-
}
|
|
1024
|
-
/**
|
|
1025
|
-
* A set of radios that belong to one question, of which exactly one can be
|
|
1026
|
-
* chosen.
|
|
1027
|
-
*
|
|
1028
|
-
* ```tsx
|
|
1029
|
-
* <RadioGroup legend="Delivery" defaultValue="standard" name="delivery">
|
|
1030
|
-
* <Radio value="standard" label="Standard" description="3-5 working days" />
|
|
1031
|
-
* <Radio value="express" label="Express" description="Next working day" />
|
|
1032
|
-
* </RadioGroup>
|
|
1033
|
-
* ```
|
|
1034
|
-
*
|
|
1035
|
-
* `orientation` now lays the options out as well as setting which arrow keys
|
|
1036
|
-
* move between them -- it used to do only the second, which meant a horizontal
|
|
1037
|
-
* group was a column you navigated with the left and right arrows. The two
|
|
1038
|
-
* were never independent in practice: a reader arrows in the direction the
|
|
1039
|
-
* options are drawn.
|
|
1040
|
-
*
|
|
1041
|
-
* `className` lands on the `<fieldset>`, which is the group's outermost
|
|
1042
|
-
* element and the one to size or space. Spacing between the options is
|
|
1043
|
-
* `orientation`'s job.
|
|
1044
|
-
*/
|
|
1045
|
-
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
1046
|
-
|
|
1047
|
-
interface RadioGroupItemProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
|
|
1048
|
-
label?: React.ReactNode;
|
|
1049
|
-
/** Hint for this option alone, announced with the radio it belongs to. */
|
|
1050
|
-
description?: React.ReactNode;
|
|
1051
|
-
}
|
|
1052
|
-
/**
|
|
1053
|
-
* One radio in a `RadioGroup`, with the label and hint that belong to it.
|
|
1054
|
-
*
|
|
1055
|
-
* Without a `label` it renders as the bare control it always has, for the
|
|
1056
|
-
* `ControlLabel` pairing the stories used to show; with one it brings its own
|
|
1057
|
-
* label, and the hint is wired to the control rather than left as text beside
|
|
1058
|
-
* it.
|
|
1059
|
-
*/
|
|
1060
|
-
declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1061
|
-
|
|
1062
|
-
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
1063
|
-
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
1064
|
-
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1065
|
-
declare const SelectPortal: React.FC<SelectPrimitive.SelectPortalProps>;
|
|
1066
|
-
declare const triggerVariants: (props?: ({
|
|
1067
|
-
variant?: "default" | "success" | "error" | null | undefined;
|
|
1068
|
-
size?: "sm" | "lg" | null | undefined;
|
|
1069
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1070
|
-
interface TriggerProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>, VariantProps<typeof triggerVariants> {
|
|
1071
|
-
}
|
|
1072
|
-
declare const SelectTrigger: React.ForwardRefExoticComponent<TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1073
|
-
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1074
|
-
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1075
|
-
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1076
|
-
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1077
|
-
|
|
1078
|
-
declare const SortAndShow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1079
|
-
interface SortAndShowOption {
|
|
1080
|
-
value: string;
|
|
1081
|
-
label: React.ReactNode;
|
|
1082
|
-
disabled?: boolean;
|
|
1083
|
-
}
|
|
1084
|
-
interface SortAndShowControlProps extends Omit<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root>, 'children'> {
|
|
1085
|
-
label: React.ReactNode;
|
|
1086
|
-
options: SortAndShowOption[];
|
|
1087
|
-
className?: string;
|
|
1088
|
-
}
|
|
1089
|
-
declare const SortAndShowControl: React.ForwardRefExoticComponent<SortAndShowControlProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1090
|
-
|
|
1091
|
-
declare const splitButtonVariants: (props?: ({
|
|
1092
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
1093
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1094
|
-
declare const splitButtonSegmentVariants: (props?: ({
|
|
1095
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
1096
|
-
segment?: "action" | "trigger" | null | undefined;
|
|
1097
|
-
size?: "sm" | "md" | null | undefined;
|
|
1098
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1099
|
-
interface SplitButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, VariantProps<typeof splitButtonVariants>, Pick<VariantProps<typeof splitButtonSegmentVariants>, 'size'> {
|
|
1100
|
-
label: React.ReactNode;
|
|
1101
|
-
children: React.ReactNode;
|
|
1102
|
-
menuLabel?: string;
|
|
1103
|
-
open?: boolean;
|
|
1104
|
-
defaultOpen?: boolean;
|
|
1105
|
-
onOpenChange?: (open: boolean) => void;
|
|
1106
|
-
align?: DropdownMenuPrimitive.DropdownMenuContentProps['align'];
|
|
1107
|
-
menuClassName?: string;
|
|
1108
|
-
}
|
|
1109
|
-
declare const SplitButton: React.ForwardRefExoticComponent<SplitButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1110
|
-
declare const SplitButtonItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1111
|
-
declare const SplitButtonSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1112
|
-
|
|
1113
|
-
declare const Stats: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDListElement> & React.RefAttributes<HTMLDListElement>>;
|
|
1114
|
-
interface StatProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1115
|
-
label: React.ReactNode;
|
|
1116
|
-
value: React.ReactNode;
|
|
1117
|
-
icon?: IconType;
|
|
1118
|
-
}
|
|
1119
|
-
declare const Stat: React.ForwardRefExoticComponent<StatProps & React.RefAttributes<HTMLDivElement>>;
|
|
1120
|
-
|
|
1121
|
-
type StepStatus = 'complete' | 'current' | 'upcoming';
|
|
1122
|
-
interface StepperProps extends React.OlHTMLAttributes<HTMLOListElement> {
|
|
1123
|
-
currentStep?: number;
|
|
1124
|
-
}
|
|
1125
|
-
declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLOListElement>>;
|
|
1126
|
-
interface StepperItemProps extends Omit<React.LiHTMLAttributes<HTMLLIElement>, 'title'> {
|
|
1127
|
-
title: React.ReactNode;
|
|
1128
|
-
description?: React.ReactNode;
|
|
1129
|
-
}
|
|
1130
|
-
declare const StepperItem: React.ForwardRefExoticComponent<StepperItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
1131
|
-
interface StepperNavProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1132
|
-
currentStep: number;
|
|
1133
|
-
totalSteps: number;
|
|
1134
|
-
onStepChange?: (step: number) => void;
|
|
1135
|
-
indicator?: 'dots' | 'counter';
|
|
1136
|
-
label?: string;
|
|
1137
|
-
backLabel?: React.ReactNode;
|
|
1138
|
-
nextLabel?: React.ReactNode;
|
|
1139
|
-
stepLabel?: (step: number, total: number) => string;
|
|
1140
|
-
}
|
|
1141
|
-
declare const StepperNav: React.ForwardRefExoticComponent<StepperNavProps & React.RefAttributes<HTMLDivElement>>;
|
|
1142
|
-
|
|
1143
|
-
declare const Subnav: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
1144
|
-
interface SubnavHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
1145
|
-
asChild?: boolean;
|
|
1146
|
-
}
|
|
1147
|
-
declare const SubnavHeading: React.ForwardRefExoticComponent<SubnavHeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
1148
|
-
declare const SubnavList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
|
|
1149
|
-
declare const SubnavItem: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
1150
|
-
interface SubnavLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1151
|
-
asChild?: boolean;
|
|
1152
|
-
active?: boolean;
|
|
1153
|
-
}
|
|
1154
|
-
declare const SubnavLink: React.ForwardRefExoticComponent<SubnavLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
1155
|
-
|
|
1156
|
-
interface StepProps {
|
|
1157
|
-
selected: 'true' | 'false';
|
|
1158
|
-
className?: string;
|
|
1159
|
-
}
|
|
1160
|
-
declare const Step: ({ selected, className }: StepProps) => React.JSX.Element;
|
|
1161
|
-
|
|
1162
|
-
interface StepsIndicatorProp {
|
|
1163
|
-
selectedIndex?: number;
|
|
1164
|
-
length?: number;
|
|
1165
|
-
props?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
1166
|
-
name?: string;
|
|
1167
|
-
onClick?: (i: number) => void;
|
|
1168
|
-
label?: string;
|
|
1169
|
-
stepLabel?: (step: number, total: number) => string;
|
|
1170
|
-
}
|
|
1171
|
-
declare const StepsIndicator: React.ForwardRefExoticComponent<StepsIndicatorProp & React.RefAttributes<HTMLDivElement>>;
|
|
1172
|
-
|
|
1173
|
-
declare const tableBodyVariants: (props?: ({
|
|
1174
|
-
variant?: "zebra" | null | undefined;
|
|
1175
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1176
|
-
type TableAlign = 'left' | 'center' | 'right';
|
|
1177
|
-
type TableSortDirection = 'asc' | 'desc' | false;
|
|
1178
|
-
interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
|
|
1179
|
-
containerClassName?: string;
|
|
1180
|
-
}
|
|
1181
|
-
declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
|
|
1182
|
-
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
1183
|
-
interface TableHeadProps extends Omit<React.ThHTMLAttributes<HTMLTableCellElement>, 'align'> {
|
|
1184
|
-
align?: TableAlign;
|
|
1185
|
-
sortDirection?: TableSortDirection;
|
|
1186
|
-
onSort?: React.MouseEventHandler<HTMLButtonElement>;
|
|
1187
|
-
}
|
|
1188
|
-
declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
1189
|
-
interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement>, VariantProps<typeof tableBodyVariants> {
|
|
1190
|
-
}
|
|
1191
|
-
declare const TableBody: React.ForwardRefExoticComponent<TableBodyProps & React.RefAttributes<HTMLTableSectionElement>>;
|
|
1192
|
-
interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
1193
|
-
selected?: boolean;
|
|
1194
|
-
}
|
|
1195
|
-
declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
|
|
1196
|
-
interface TableCellProps extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, 'align'> {
|
|
1197
|
-
align?: TableAlign;
|
|
1198
|
-
}
|
|
1199
|
-
declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
1200
|
-
interface TableEmptyProps extends TableCellProps {
|
|
1201
|
-
colSpan: number;
|
|
1202
|
-
}
|
|
1203
|
-
declare const TableEmpty: React.ForwardRefExoticComponent<TableEmptyProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
1204
|
-
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
1205
|
-
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
1206
|
-
|
|
1207
|
-
declare const tabsVariants: (props?: class_variance_authority_dist_types.ClassProp | undefined) => string;
|
|
1208
|
-
declare const tabsListVariants: (props?: class_variance_authority_dist_types.ClassProp | undefined) => string;
|
|
1209
|
-
declare const tabsTriggerVariants: (props?: ({
|
|
1210
|
-
size?: "sm" | "md" | null | undefined;
|
|
1211
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1212
|
-
declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1213
|
-
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1214
|
-
interface TabsTriggerProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>, VariantProps<typeof tabsTriggerVariants> {
|
|
1215
|
-
count?: React.ReactNode;
|
|
1216
|
-
}
|
|
1217
|
-
declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1218
|
-
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1219
|
-
|
|
1220
|
-
declare const textareaVariants: (props?: ({
|
|
1221
|
-
variant?: "disabled" | "success" | "error" | "primary" | null | undefined;
|
|
1222
|
-
defaultVariants?: "variant" | null | undefined;
|
|
1223
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1224
|
-
interface TextareaProps extends React__default.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
1225
|
-
variant: 'primary' | 'error' | 'success' | 'disabled';
|
|
1226
|
-
labelText?: string;
|
|
1227
|
-
helpText?: string;
|
|
1228
|
-
id?: string;
|
|
1229
|
-
}
|
|
1230
|
-
declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
1231
|
-
|
|
1232
|
-
declare const ToastProvider: React.FC<ToastPrimitive.ToastProviderProps>;
|
|
1233
|
-
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
1234
|
-
declare const toastVariants: (props?: ({
|
|
1235
|
-
variant?: "info" | "success" | "warning" | "error" | null | undefined;
|
|
1236
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1237
|
-
type ToastVariant = NonNullable<VariantProps<typeof toastVariants>['variant']>;
|
|
1238
|
-
interface ToastProps extends React.ComponentPropsWithoutRef<typeof ToastPrimitive.Root>, VariantProps<typeof toastVariants> {
|
|
1239
|
-
/** Replaces the variant's icon. Pass `null` to show no icon. */
|
|
1240
|
-
icon?: React.ReactNode;
|
|
1241
|
-
}
|
|
1242
|
-
declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLLIElement>>;
|
|
1243
|
-
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1244
|
-
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1245
|
-
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1246
|
-
interface ToastCloseProps extends React.ComponentPropsWithoutRef<typeof ToastPrimitive.Close> {
|
|
1247
|
-
/** Accessible name for the close button. */
|
|
1248
|
-
label?: string;
|
|
1249
|
-
}
|
|
1250
|
-
declare const ToastClose: React.ForwardRefExoticComponent<ToastCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1251
|
-
|
|
1252
|
-
declare const ToggleList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
|
|
1253
|
-
type SwitchRootProps = React.ComponentPropsWithoutRef<typeof Switch>;
|
|
1254
|
-
type ToggleListItemRemoveProps = {
|
|
1255
|
-
onRemove?: undefined;
|
|
1256
|
-
removeLabel?: undefined;
|
|
1257
|
-
} | {
|
|
1258
|
-
onRemove: () => void;
|
|
1259
|
-
label: string;
|
|
1260
|
-
removeLabel?: string;
|
|
1261
|
-
} | {
|
|
1262
|
-
onRemove: () => void;
|
|
1263
|
-
removeLabel: string;
|
|
1264
|
-
};
|
|
1265
|
-
type ToggleListItemProps = Omit<SwitchRootProps, 'children' | 'asChild'> & {
|
|
1266
|
-
label: React.ReactNode;
|
|
1267
|
-
} & ToggleListItemRemoveProps;
|
|
1268
|
-
declare const ToggleListItem: React.ForwardRefExoticComponent<ToggleListItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1269
|
-
|
|
1270
|
-
interface TooltipProps {
|
|
1271
|
-
children?: React.ReactNode;
|
|
1272
|
-
side?: TooltipPrimitive.TooltipContentProps['side'];
|
|
1273
|
-
content?: React.ReactNode;
|
|
1274
|
-
sideOffset?: number;
|
|
1275
|
-
}
|
|
1276
|
-
declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
|
|
1277
|
-
|
|
1278
|
-
declare const websiteFooterVariants: (props?: ({
|
|
1279
|
-
size?: "sm" | "standard" | null | undefined;
|
|
1280
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1281
|
-
declare const footerStatementVariants: (props?: ({
|
|
1282
|
-
size?: "sm" | "standard" | null | undefined;
|
|
1283
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1284
|
-
declare const linkColumnVariants: (props?: ({
|
|
1285
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1286
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1287
|
-
interface WebsiteFooterProps extends React__default.ComponentPropsWithoutRef<'footer'>, VariantProps<typeof websiteFooterVariants> {
|
|
1288
|
-
}
|
|
1289
|
-
declare const WebsiteFooter: React__default.ForwardRefExoticComponent<WebsiteFooterProps & React__default.RefAttributes<HTMLElement>>;
|
|
1290
|
-
interface FooterStatementProps extends React__default.ComponentPropsWithoutRef<'div'>, VariantProps<typeof footerStatementVariants> {
|
|
1291
|
-
}
|
|
1292
|
-
declare const FooterStatement: React__default.ForwardRefExoticComponent<FooterStatementProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1293
|
-
type LinkRowProps = React__default.ComponentPropsWithoutRef<'div'>;
|
|
1294
|
-
declare const LinkRow: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
1295
|
-
interface LinkColumnProps extends React__default.ComponentPropsWithoutRef<'div'>, VariantProps<typeof linkColumnVariants> {
|
|
1296
|
-
}
|
|
1297
|
-
declare const LinkColumn: React__default.ForwardRefExoticComponent<LinkColumnProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1298
|
-
|
|
1299
|
-
export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Avatar, type AvatarProps, BackLink, type BackLinkProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarProps, Card, CardDescription, type CardProps, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, CodeBlock, type CodeBlockProps, ControlLabel, DateInput, type DateInputInvalidReason, type DateInputProps, type DateInputValueDetails, FieldDescription, FieldError, type FieldMessageProps, FooterStatement, type FooterStatementProps, FormGroup, type FormGroupProps, IconButton, type IconButtonProps, Input, type InputProps, Label, type LabelProps, Link, LinkColumn, type LinkColumnProps, LinkRow, type LinkRowProps, Modal, ModalClose, ModalCloseFooter, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, OpenSourceIcon, PageHeader, PageHeaderActions, type PageHeaderProps, PageHeaderTitle, type PageHeaderTitleProps, Pagination, Password, type PasswordProps, Popover, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, type PopoverProps, PopoverScrollArea, PopoverSeparator, PopoverTrigger, RadioGroupItem as Radio, RadioGroup, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, SelectableCard, type SelectableCardProps, SortAndShow, SortAndShowControl, type SortAndShowControlProps, type SortAndShowOption, SplitButton, SplitButtonItem, type SplitButtonProps, SplitButtonSeparator, Stat, type StatProps, Stats, Step, type StepProps, type StepStatus, Stepper, StepperItem, type StepperItemProps, StepperNav, type StepperNavProps, type StepperProps, StepsIndicator, type StepsIndicatorProp, Subnav, SubnavHeading, type SubnavHeadingProps, SubnavItem, SubnavLink, type SubnavLinkProps, SubnavList, Switch, SwitchCard, type SwitchCardProps, Table, type TableAlign, TableBody, type TableBodyProps, TableCaption, TableCell, type TableCellProps, TableEmpty, type TableEmptyProps, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableSortDirection, Tabs, TabsContent, TabsList, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, type ToastCloseProps, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, ToggleList, ToggleListItem, type ToggleListItemProps, Tooltip, type TooltipProps, type TriggerProps, WebsiteFooter, type WebsiteFooterProps, backLinkVariants, buttonVariants, cardVariants, _default as colors, formVariants, iconButtonVariants, pageHeaderVariants, splitButtonSegmentVariants, splitButtonVariants, tabsListVariants, tabsTriggerVariants, tabsVariants, textareaVariants, useCheckboxGroup, useFormGroup };
|