@nearform/quantum 1.8.0 → 1.9.1

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