@frontile/theme 0.17.1 → 0.18.0-alpha.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 (81) hide show
  1. package/README.md +139 -0
  2. package/declarations/colors/config.d.ts +64 -0
  3. package/declarations/colors/contrast.d.ts +16 -0
  4. package/declarations/colors/palette-absolute.d.ts +8 -0
  5. package/declarations/colors/palette-dark.d.ts +123 -0
  6. package/declarations/colors/palette-light.d.ts +123 -0
  7. package/declarations/colors/palette.d.ts +123 -0
  8. package/declarations/colors/semantic.d.ts +7 -1
  9. package/declarations/colors/types.d.ts +321 -15
  10. package/declarations/colors/util.d.ts +6 -1
  11. package/declarations/colors.d.ts +2 -2
  12. package/declarations/components/avatar.d.ts +42 -42
  13. package/declarations/components/button.d.ts +254 -152
  14. package/declarations/components/chip.d.ts +62 -103
  15. package/declarations/components/close-button.d.ts +42 -50
  16. package/declarations/components/divider.d.ts +43 -10
  17. package/declarations/components/dropdown.d.ts +42 -1
  18. package/declarations/components/forms/forms-legacy.d.ts +496 -178
  19. package/declarations/components/forms/forms.d.ts +891 -822
  20. package/declarations/components/listbox.d.ts +88 -79
  21. package/declarations/components/notification-card.d.ts +41 -84
  22. package/declarations/components/notifications-container.d.ts +42 -17
  23. package/declarations/components/overlays.d.ts +172 -84
  24. package/declarations/components/popover.d.ts +43 -16
  25. package/declarations/components/progress-bar.d.ts +44 -104
  26. package/declarations/components/spinner.d.ts +44 -30
  27. package/declarations/components/table.d.ts +51 -132
  28. package/declarations/plugin/default-config.d.ts +63 -9
  29. package/declarations/plugin/overlays.d.ts +2 -6
  30. package/declarations/plugin/power-select.d.ts +1 -1
  31. package/declarations/plugin/resolve.d.ts +1 -2
  32. package/declarations/tw.d.ts +40 -1
  33. package/declarations/types.d.ts +29 -12
  34. package/dist/colors.js +1 -1
  35. package/dist/config-4CswsBlg.js +342 -0
  36. package/dist/config-4CswsBlg.js.map +1 -0
  37. package/dist/config-B3XkEtHW.js +377 -0
  38. package/dist/config-B3XkEtHW.js.map +1 -0
  39. package/dist/config-BpWBpuzR.js +335 -0
  40. package/dist/config-BpWBpuzR.js.map +1 -0
  41. package/dist/config-Cle59Y4k.js +523 -0
  42. package/dist/config-Cle59Y4k.js.map +1 -0
  43. package/dist/config-D0EoeVzn.js +388 -0
  44. package/dist/config-D0EoeVzn.js.map +1 -0
  45. package/dist/config-DBAavoE2.js +336 -0
  46. package/dist/config-DBAavoE2.js.map +1 -0
  47. package/dist/config-Oysuq2Z9.js +341 -0
  48. package/dist/config-Oysuq2Z9.js.map +1 -0
  49. package/dist/config-PYki2g7N.js +335 -0
  50. package/dist/config-PYki2g7N.js.map +1 -0
  51. package/dist/forms-legacy-15iy0KmK.js +1851 -0
  52. package/dist/forms-legacy-15iy0KmK.js.map +1 -0
  53. package/dist/forms-legacy-B-L2HELt.js +1881 -0
  54. package/dist/forms-legacy-B-L2HELt.js.map +1 -0
  55. package/dist/forms-legacy-BMIAioRi.js +1807 -0
  56. package/dist/forms-legacy-BMIAioRi.js.map +1 -0
  57. package/dist/forms-legacy-B_EygtyK.js +1763 -0
  58. package/dist/forms-legacy-B_EygtyK.js.map +1 -0
  59. package/dist/forms-legacy-CVLZ-9BG.js +1804 -0
  60. package/dist/forms-legacy-CVLZ-9BG.js.map +1 -0
  61. package/dist/forms-legacy-CuFc3hcn.js +1807 -0
  62. package/dist/forms-legacy-CuFc3hcn.js.map +1 -0
  63. package/dist/forms-legacy-DiKImAli.js +1809 -0
  64. package/dist/forms-legacy-DiKImAli.js.map +1 -0
  65. package/dist/forms-legacy-edWQVbZP.js +1809 -0
  66. package/dist/forms-legacy-edWQVbZP.js.map +1 -0
  67. package/dist/index.css +63 -0
  68. package/dist/index.js +2 -3
  69. package/dist/index.js.map +1 -1
  70. package/dist/plugin.js +184 -128
  71. package/dist/plugin.js.map +1 -1
  72. package/dist/styles/font-faces.css +26 -0
  73. package/dist/styles/theme.css +48 -0
  74. package/dist/styles/typography.css +291 -0
  75. package/package.json +14 -7
  76. package/public/fonts/stix-two-text-italic-variable.woff2 +0 -0
  77. package/public/fonts/stix-two-text-variable.woff2 +0 -0
  78. package/src/index.css +63 -0
  79. package/src/styles/font-faces.css +26 -0
  80. package/src/styles/theme.css +48 -0
  81. package/src/styles/typography.css +291 -0
@@ -0,0 +1,1881 @@
1
+ import { extendTailwindMerge } from 'tailwind-merge';
2
+ import { createTV } from 'tailwind-variants';
3
+
4
+ function flat(arr, target) {
5
+ arr.forEach(el => {
6
+ if (Array.isArray(el)) {
7
+ flat(el, target);
8
+ } else {
9
+ target.push(el);
10
+ }
11
+ });
12
+ }
13
+ function flatArray(arr) {
14
+ const flattened = [];
15
+ flat(arr, flattened);
16
+ return flattened;
17
+ }
18
+ const voidEmpty = value => value ? value : undefined;
19
+ const clsx = (...classes) => {
20
+ return voidEmpty(flatArray(classes).filter(Boolean).join(' '));
21
+ };
22
+
23
+ // Common size units used across all design tokens (icons, typography, etc.)
24
+ const COMMON_UNITS = ['pico', 'nano', 'micro', '3xs', '2xs', 'xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', 'kilo', 'mega'];
25
+ const ELEVATION_LEVELS = ['0', '1', '2', '3', '4', '5'];
26
+ const twMergeConfig = {
27
+ extend: {
28
+ classGroups: {
29
+ // Icon sizes
30
+ 'icon-size': [{
31
+ 'size-icon': COMMON_UNITS
32
+ }],
33
+ // Border widths (directional variants handled automatically)
34
+ 'border-w': [{
35
+ border: ['thin', 'heavy', 'aggressive']
36
+ }],
37
+ // Border radius (extend existing rounded utilities)
38
+ rounded: [{
39
+ rounded: ['default', 'pill']
40
+ }],
41
+ // Elevation shadows
42
+ shadow: [{
43
+ 'shadow-elevation': ELEVATION_LEVELS
44
+ }],
45
+ // Opacity
46
+ opacity: [{
47
+ opacity: ['hover', 'disabled']
48
+ }],
49
+ // Typography composite text styles (extend font-size class group)
50
+ // These set font-size + other properties, so they should conflict with text-* utilities
51
+ 'font-size': [{
52
+ 'text-marquee': [...COMMON_UNITS]
53
+ }, {
54
+ 'text-header': [...COMMON_UNITS]
55
+ }, {
56
+ 'text-body': [...COMMON_UNITS]
57
+ }, {
58
+ 'text-code': [...COMMON_UNITS]
59
+ }, {
60
+ 'text-caption': [...COMMON_UNITS]
61
+ }, {
62
+ 'text-label': [...COMMON_UNITS]
63
+ }]
64
+ },
65
+ conflictingClassGroups: {
66
+ 'icon-size': ['w', 'h', 'size']
67
+ }
68
+ }
69
+ };
70
+ const twMergeBase = extendTailwindMerge(twMergeConfig);
71
+ function twMerge(defaultClass, overwrites) {
72
+ if (overwrites) {
73
+ return twMergeBase(clsx(defaultClass, overwrites));
74
+ }
75
+ return clsx(defaultClass);
76
+ }
77
+ const tv = createTV({
78
+ twMerge: true,
79
+ twMergeConfig
80
+ });
81
+
82
+ const avatar = tv({
83
+ slots: {
84
+ base: ['flex', 'relative', 'justify-center', 'items-center', 'box-border', 'overflow-hidden', 'align-middle', 'text-neutral-strong', 'z-0', 'bg-neutral-subtle', 'ring-1 ring-default ring-offset-1 ring-offset-background'],
85
+ img: 'size-full',
86
+ name: ['w-full', 'font-normal', 'text-center', 'text-inherit', 'absolute', 'top-1/2', 'left-1/2', '-translate-x-1/2', '-translate-y-1/2', 'select-none']
87
+ },
88
+ variants: {
89
+ shape: {
90
+ square: 'rounded-[20%]',
91
+ circle: 'rounded-full'
92
+ },
93
+ size: {
94
+ xs: {
95
+ base: 'size-5 text-xs'
96
+ },
97
+ sm: {
98
+ base: 'size-6 text-sm'
99
+ },
100
+ md: {
101
+ base: 'size-8 text-base'
102
+ },
103
+ lg: {
104
+ base: 'size-10 text-lg'
105
+ },
106
+ xl: {
107
+ base: 'size-12 text-xl'
108
+ }
109
+ }
110
+ },
111
+ defaultVariants: {
112
+ size: 'md',
113
+ shape: 'circle'
114
+ }
115
+ });
116
+
117
+ const focusVisibleRing = ['outline-hidden', 'focus-visible:z-10', 'focus-visible:ring-3', 'focus-visible:ring-focus', 'focus-visible:ring-offset-2', 'focus-visible:ring-offset-background'];
118
+ const focusVisibleWithinRing = ['outline-hidden', 'has-focus-visible:z-10', 'has-focus-visible:ring-3', 'has-[:focus-visible]:ring-focus', 'has-focus-visible:ring-offset-2', 'has-[:focus-visible]:ring-offset-background'];
119
+
120
+ const baseButton = tv({
121
+ base: ['leading-none', 'inline-flex items-center justify-center', '[&_svg]:size-[1em]', 'font-bold', 'border', 'border-transparent', 'disabled:cursor-not-allowed', 'disabled:bg-surface-overlay-soft', 'disabled:text-neutral-medium', 'disabled:border-neutral-soft', ...focusVisibleRing],
122
+ variants: {
123
+ appearance: {
124
+ outlined: ''
125
+ },
126
+ intent: {
127
+ default: '',
128
+ primary: 'focus-visible:ring-brand-soft',
129
+ accent: 'focus-visible:ring-accent-soft',
130
+ success: 'focus-visible:ring-success-soft',
131
+ warning: 'focus-visible:ring-warning-soft',
132
+ danger: 'focus-visible:ring-danger-soft'
133
+ },
134
+ size: {
135
+ xs: 'text-xs leading-none px-2.5 py-0.5 gap-1 rounded',
136
+ sm: 'text-sm leading-none px-3 py-1 gap-1.5 rounded-lg',
137
+ md: 'text-lg leading-none px-4 py-2 gap-1.5 rounded-xl',
138
+ lg: 'text-xl leading-none px-6 py-3 gap-1.5 rounded-xl',
139
+ xl: 'text-3xl leading-none px-8 py-4 gap-2.5 rounded-2xl'
140
+ },
141
+ isInGroup: {
142
+ true: ['rounded-none first:rounded-l last:rounded-r', '[&:not(:first-child):not(:last-child)]:rounded-none', 'not-last-of-type:-me-px']
143
+ }
144
+ },
145
+ compoundVariants: [
146
+ // APPEARANCE: outlined
147
+ {
148
+ appearance: 'outlined',
149
+ intent: 'default',
150
+ class: 'text-neutral-strong border-neutral-medium hover:bg-neutral-subtle hover:border-neutral-firm active:bg-neutral-muted active:text-neutral-bolder'
151
+ }, {
152
+ appearance: 'outlined',
153
+ intent: 'primary',
154
+ class: 'text-brand-strong border-brand-medium hover:bg-brand-subtle hover:border-brand-firm active:bg-brand-muted active:text-brand-bolder'
155
+ }, {
156
+ appearance: 'outlined',
157
+ intent: 'accent',
158
+ class: 'text-accent-strong border-accent-medium hover:bg-accent-subtle hover:border-accent-firm active:bg-accent-muted active:text-accent-bolder'
159
+ }, {
160
+ appearance: 'outlined',
161
+ intent: 'success',
162
+ class: 'text-success-strong border-success-medium hover:bg-success-subtle hover:border-success-firm active:bg-success-muted active:text-success-bolder'
163
+ }, {
164
+ appearance: 'outlined',
165
+ intent: 'warning',
166
+ class: 'text-warning-strong border-warning-medium hover:bg-warning-subtle hover:border-warning-firm active:bg-warning-muted active:text-warning-bolder'
167
+ }, {
168
+ appearance: 'outlined',
169
+ intent: 'danger',
170
+ class: 'text-danger-strong border-danger-medium hover:bg-danger-subtle hover:border-danger-firm active:bg-danger-muted active:text-danger-bolder'
171
+ }],
172
+ defaultVariants: {
173
+ size: 'md',
174
+ intent: 'default'
175
+ }
176
+ });
177
+ const button = tv({
178
+ extend: baseButton,
179
+ base: [''],
180
+ variants: {
181
+ appearance: {
182
+ default: 'shadow-elevation-2',
183
+ outlined: '',
184
+ minimal: '',
185
+ tonal: 'shadow-elevation-2',
186
+ custom: ''
187
+ }
188
+ },
189
+ compoundVariants: [
190
+ // APPEARANCE: default (filled)
191
+ {
192
+ appearance: 'default',
193
+ intent: 'default',
194
+ class: 'bg-neutral-firm text-on-neutral-firm hover:bg-neutral-strong hover:text-on-neutral-strong active:bg-neutral-bolder active:text-on-neutral-bolder'
195
+ }, {
196
+ appearance: 'default',
197
+ intent: 'primary',
198
+ class: 'bg-brand-soft text-on-brand-soft hover:bg-brand-medium hover:text-on-brand-medium active:bg-brand-firm active:text-on-brand-firm'
199
+ }, {
200
+ appearance: 'default',
201
+ intent: 'accent',
202
+ class: 'bg-accent-soft text-on-accent-soft hover:bg-accent-medium hover:text-on-accent-medium active:bg-accent-firm active:text-on-accent-firm'
203
+ }, {
204
+ appearance: 'default',
205
+ intent: 'success',
206
+ class: 'bg-success-soft text-on-success-soft hover:bg-success-medium hover:text-on-success-medium active:bg-success-firm active:text-on-success-firm'
207
+ }, {
208
+ appearance: 'default',
209
+ intent: 'warning',
210
+ class: 'bg-warning-soft text-on-warning-soft hover:bg-warning-medium hover:text-on-warning-medium active:bg-warning-firm active:text-on-warning-firm'
211
+ }, {
212
+ appearance: 'default',
213
+ intent: 'danger',
214
+ class: 'bg-danger-soft text-on-danger-soft hover:bg-danger-medium hover:text-on-danger-medium active:bg-danger-firm active:text-on-danger-firm'
215
+ },
216
+ // APPEARANCE: minimal (ghost)
217
+ {
218
+ appearance: 'minimal',
219
+ intent: 'default',
220
+ class: 'text-neutral-strong hover:bg-neutral-subtle active:bg-neutral-muted active:text-neutral-bolder'
221
+ }, {
222
+ appearance: 'minimal',
223
+ intent: 'primary',
224
+ class: 'text-brand-strong hover:bg-brand-subtle active:bg-brand-muted active:text-brand-bolder'
225
+ }, {
226
+ appearance: 'minimal',
227
+ intent: 'accent',
228
+ class: 'text-accent-strong hover:bg-accent-subtle active:bg-accent-muted active:text-accent-bolder'
229
+ }, {
230
+ appearance: 'minimal',
231
+ intent: 'success',
232
+ class: 'text-success-strong hover:bg-success-subtle active:bg-success-muted active:text-success-bolder'
233
+ }, {
234
+ appearance: 'minimal',
235
+ intent: 'warning',
236
+ class: 'text-warning-strong hover:bg-warning-subtle active:bg-warning-muted active:text-warning-bolder'
237
+ }, {
238
+ appearance: 'minimal',
239
+ intent: 'danger',
240
+ class: 'text-danger-strong hover:bg-danger-subtle active:bg-danger-muted active:text-danger-bolder'
241
+ },
242
+ // APPEARANCE: tonal
243
+ {
244
+ appearance: 'tonal',
245
+ intent: 'default',
246
+ class: 'bg-neutral-subtle text-neutral-strong hover:bg-neutral-muted active:bg-neutral-soft active:text-on-neutral-soft'
247
+ }, {
248
+ appearance: 'tonal',
249
+ intent: 'primary',
250
+ class: 'bg-brand-subtle text-brand-strong hover:bg-brand-muted active:bg-brand-soft active:text-on-brand-soft'
251
+ }, {
252
+ appearance: 'tonal',
253
+ intent: 'accent',
254
+ class: 'bg-accent-subtle text-accent-strong hover:bg-accent-muted active:bg-accent-soft active:text-on-accent-soft'
255
+ }, {
256
+ appearance: 'tonal',
257
+ intent: 'success',
258
+ class: 'bg-success-subtle text-success-strong hover:bg-success-muted active:bg-success-soft active:text-on-success-soft'
259
+ }, {
260
+ appearance: 'tonal',
261
+ intent: 'warning',
262
+ class: 'bg-warning-subtle text-warning-strong hover:bg-warning-muted active:bg-warning-soft active:text-on-warning-soft'
263
+ }, {
264
+ appearance: 'tonal',
265
+ intent: 'danger',
266
+ class: 'bg-danger-subtle text-danger-strong hover:bg-danger-muted active:bg-danger-soft active:text-on-danger-soft'
267
+ },
268
+ // APPEARANCE: custom
269
+ {
270
+ appearance: 'custom',
271
+ intent: 'default',
272
+ class: 'text-neutral-strong'
273
+ }, {
274
+ appearance: 'custom',
275
+ intent: 'primary',
276
+ class: 'text-brand-strong'
277
+ }, {
278
+ appearance: 'custom',
279
+ intent: 'accent',
280
+ class: 'text-accent-strong'
281
+ }, {
282
+ appearance: 'custom',
283
+ intent: 'success',
284
+ class: 'text-success-strong'
285
+ }, {
286
+ appearance: 'custom',
287
+ intent: 'warning',
288
+ class: 'text-warning-strong'
289
+ }, {
290
+ appearance: 'custom',
291
+ intent: 'danger',
292
+ class: 'text-danger-strong'
293
+ }],
294
+ defaultVariants: {
295
+ size: 'md',
296
+ intent: 'primary'
297
+ }
298
+ });
299
+ const toggleButton = tv({
300
+ extend: baseButton,
301
+ base: [''],
302
+ variants: {
303
+ isSelected: {
304
+ true: ''
305
+ }
306
+ },
307
+ compoundVariants: [{
308
+ appearance: 'outlined',
309
+ intent: 'default',
310
+ isSelected: true,
311
+ class: 'bg-neutral-firm text-on-neutral-firm hover:bg-neutral-strong hover:text-on-neutral-strong'
312
+ }, {
313
+ appearance: 'outlined',
314
+ intent: 'primary',
315
+ isSelected: true,
316
+ class: 'bg-brand-soft text-on-brand-soft hover:bg-brand-medium hover:text-on-brand-medium'
317
+ }, {
318
+ appearance: 'outlined',
319
+ intent: 'accent',
320
+ isSelected: true,
321
+ class: 'bg-accent-soft text-on-accent-soft hover:bg-accent-medium hover:text-on-accent-medium'
322
+ }, {
323
+ appearance: 'outlined',
324
+ intent: 'success',
325
+ isSelected: true,
326
+ class: 'bg-success-soft text-on-success-soft hover:bg-success-medium hover:text-on-success-medium'
327
+ }, {
328
+ appearance: 'outlined',
329
+ intent: 'warning',
330
+ isSelected: true,
331
+ class: 'bg-warning-soft text-on-warning-soft hover:bg-warning-medium hover:text-on-warning-medium'
332
+ }, {
333
+ appearance: 'outlined',
334
+ intent: 'danger',
335
+ isSelected: true,
336
+ class: 'bg-danger-soft text-on-danger-soft hover:bg-danger-medium hover:text-on-danger-medium'
337
+ }]
338
+ });
339
+ const buttonGroup = tv({
340
+ base: ['inline-flex items-center justify-center h-auto']
341
+ });
342
+
343
+ const chip = tv({
344
+ slots: {
345
+ base: ['leading-tight', 'disabled:cursor-not-allowed', 'disabled:opacity-40', 'whitespace-nowrap', 'inline-flex items-center justify-between box-border'],
346
+ content: ['flex-1 text-inherit font-normal'],
347
+ dot: ['w-2', 'h-2', 'ml-1', 'rounded-full'],
348
+ closeButton: ['p-0.5']
349
+ },
350
+ variants: {
351
+ isDisabled: {
352
+ true: 'opacity-40'
353
+ },
354
+ appearance: {
355
+ default: '',
356
+ outlined: '',
357
+ faded: ''
358
+ },
359
+ intent: {
360
+ default: {
361
+ dot: 'bg-neutral-strong',
362
+ closeButton: ['bg-neutral-muted', 'text-on-neutral-medium', 'hover:bg-neutral-medium']
363
+ },
364
+ primary: {
365
+ dot: 'bg-brand-soft',
366
+ closeButton: ['bg-brand-muted', 'text-on-brand-soft', 'hover:bg-brand-medium', 'focus-visible:ring-brand-soft']
367
+ },
368
+ accent: {
369
+ dot: 'bg-accent-soft',
370
+ closeButton: ['bg-accent-muted', 'text-on-accent-soft', 'hover:bg-accent-medium', 'focus-visible:ring-accent-soft']
371
+ },
372
+ success: {
373
+ dot: 'bg-success-soft',
374
+ closeButton: ['bg-success-muted', 'text-on-success-soft', 'hover:bg-success-medium', 'focus-visible:ring-success-soft']
375
+ },
376
+ warning: {
377
+ dot: 'bg-warning-soft',
378
+ closeButton: ['bg-warning-muted', 'text-on-warning-soft', 'hover:bg-warning-medium', 'focus-visible:ring-warning-soft']
379
+ },
380
+ danger: {
381
+ dot: 'bg-danger-soft',
382
+ closeButton: ['bg-danger-muted', 'text-on-danger-soft', 'hover:bg-danger-medium', 'focus-visible:ring-danger-soft']
383
+ }
384
+ },
385
+ size: {
386
+ sm: {
387
+ base: 'text-xs px-1 h-6',
388
+ content: 'px-1',
389
+ closeButton: 'text-xs'
390
+ },
391
+ md: {
392
+ base: 'text-sm px-1 h-7',
393
+ content: 'px-2',
394
+ closeButton: 'text-sm'
395
+ },
396
+ lg: {
397
+ base: 'text-lg px-2 h-8',
398
+ content: 'px-2',
399
+ closeButton: 'text-lg'
400
+ }
401
+ },
402
+ radius: {
403
+ none: 'rounded-none',
404
+ sm: 'rounded-sm',
405
+ lg: 'rounded-lg',
406
+ full: 'rounded-full'
407
+ }
408
+ },
409
+ compoundVariants: [
410
+ // APPEARANCE: default (filled)
411
+ {
412
+ appearance: 'default',
413
+ intent: 'default',
414
+ class: {
415
+ base: 'bg-neutral-firm text-on-neutral-firm'
416
+ }
417
+ }, {
418
+ appearance: 'default',
419
+ intent: 'primary',
420
+ class: {
421
+ base: 'bg-brand-soft text-on-brand-soft'
422
+ }
423
+ }, {
424
+ appearance: 'default',
425
+ intent: 'accent',
426
+ class: {
427
+ base: 'bg-accent-soft text-on-accent-soft'
428
+ }
429
+ }, {
430
+ appearance: 'default',
431
+ intent: 'success',
432
+ class: {
433
+ base: 'bg-success-soft text-on-success-soft'
434
+ }
435
+ }, {
436
+ appearance: 'default',
437
+ intent: 'warning',
438
+ class: {
439
+ base: 'bg-warning-soft text-on-warning-soft'
440
+ }
441
+ }, {
442
+ appearance: 'default',
443
+ intent: 'danger',
444
+ class: {
445
+ base: 'bg-danger-soft text-on-danger-soft'
446
+ }
447
+ },
448
+ // APPEARANCE: faded (tonal)
449
+ {
450
+ appearance: 'faded',
451
+ intent: 'default',
452
+ class: {
453
+ base: 'text-neutral-strong bg-neutral-subtle'
454
+ }
455
+ }, {
456
+ appearance: 'faded',
457
+ intent: 'primary',
458
+ class: {
459
+ base: 'text-brand-strong bg-brand-subtle'
460
+ }
461
+ }, {
462
+ appearance: 'faded',
463
+ intent: 'accent',
464
+ class: {
465
+ base: 'text-accent-strong bg-accent-subtle'
466
+ }
467
+ }, {
468
+ appearance: 'faded',
469
+ intent: 'success',
470
+ class: {
471
+ base: 'text-success-strong bg-success-subtle'
472
+ }
473
+ }, {
474
+ appearance: 'faded',
475
+ intent: 'warning',
476
+ class: {
477
+ base: 'text-warning-strong bg-warning-subtle'
478
+ }
479
+ }, {
480
+ appearance: 'faded',
481
+ intent: 'danger',
482
+ class: {
483
+ base: 'text-danger-strong bg-danger-subtle'
484
+ }
485
+ },
486
+ // APPEARANCE: outlined
487
+ {
488
+ appearance: 'outlined',
489
+ intent: 'default',
490
+ class: {
491
+ base: 'text-neutral-strong border border-neutral-medium'
492
+ }
493
+ }, {
494
+ appearance: 'outlined',
495
+ intent: 'primary',
496
+ class: {
497
+ base: 'text-brand-strong border border-brand-medium'
498
+ }
499
+ }, {
500
+ appearance: 'outlined',
501
+ intent: 'accent',
502
+ class: {
503
+ base: 'text-accent-strong border border-accent-medium'
504
+ }
505
+ }, {
506
+ appearance: 'outlined',
507
+ intent: 'success',
508
+ class: {
509
+ base: 'text-success-strong border border-success-medium'
510
+ }
511
+ }, {
512
+ appearance: 'outlined',
513
+ intent: 'warning',
514
+ class: {
515
+ base: 'text-warning-strong border border-warning-medium'
516
+ }
517
+ }, {
518
+ appearance: 'outlined',
519
+ intent: 'danger',
520
+ class: {
521
+ base: 'text-danger-strong border border-danger-medium'
522
+ }
523
+ }],
524
+ defaultVariants: {
525
+ size: 'md',
526
+ intent: 'default',
527
+ appearance: 'default',
528
+ radius: 'full'
529
+ }
530
+ });
531
+
532
+ const progressBar = tv({
533
+ slots: {
534
+ base: ['overflow-hidden w-full bg-surface-overlay-soft'],
535
+ label: ['flex justify-between pb-1 gap-2 leading-tight'],
536
+ progress: [''],
537
+ description: ['text-neutral-medium text-xs pb-1']
538
+ },
539
+ variants: {
540
+ isIndeterminate: {
541
+ true: {
542
+ progress: ['animate-loading origin-left']
543
+ }
544
+ },
545
+ intent: {
546
+ default: {
547
+ progress: 'bg-neutral-strong'
548
+ },
549
+ primary: {
550
+ progress: 'bg-brand-soft'
551
+ },
552
+ success: {
553
+ progress: 'bg-success-soft'
554
+ },
555
+ warning: {
556
+ progress: 'bg-warning-soft'
557
+ },
558
+ danger: {
559
+ progress: 'bg-danger-soft'
560
+ }
561
+ },
562
+ size: {
563
+ xs: {
564
+ base: 'h-1',
565
+ progress: 'h-1',
566
+ label: 'text-xs',
567
+ description: 'text-xs'
568
+ },
569
+ sm: {
570
+ base: 'h-2',
571
+ progress: 'h-2',
572
+ label: 'text-sm',
573
+ description: 'text-sm'
574
+ },
575
+ md: {
576
+ base: 'h-4',
577
+ progress: 'h-4'
578
+ },
579
+ lg: {
580
+ base: 'h-8',
581
+ progress: 'h-8',
582
+ label: 'text-lg',
583
+ description: 'text-lg'
584
+ }
585
+ },
586
+ radius: {
587
+ none: 'rounded-none',
588
+ sm: 'rounded-sm',
589
+ lg: 'rounded-lg',
590
+ full: 'rounded-full'
591
+ }
592
+ },
593
+ defaultVariants: {
594
+ size: 'md',
595
+ intent: 'default',
596
+ radius: 'sm'
597
+ }
598
+ });
599
+
600
+ const closeButton = tv({
601
+ slots: {
602
+ base: ['rounded-full transition transition-200 text-inherit', ...focusVisibleRing],
603
+ icon: 'size-[1em]'
604
+ },
605
+ variants: {
606
+ size: {
607
+ xs: {
608
+ base: 'text-sm p-1'
609
+ },
610
+ sm: {
611
+ base: 'text-base p-2'
612
+ },
613
+ md: {
614
+ base: 'text-xl p-2'
615
+ },
616
+ lg: {
617
+ base: 'text-2xl p-3'
618
+ },
619
+ xl: {
620
+ base: 'text-4xl p-3'
621
+ }
622
+ },
623
+ variant: {
624
+ transparent: {
625
+ base: ['bg-transparent', 'hover:bg-surface-overlay-subtle']
626
+ },
627
+ subtle: {
628
+ base: ['bg-neutral-subtle', 'text-on-neutral-subtle', 'hover:bg-surface-overlay-subtle']
629
+ }
630
+ }
631
+ },
632
+ defaultVariants: {
633
+ size: 'md',
634
+ variant: 'transparent'
635
+ }
636
+ });
637
+
638
+ const listbox = tv({
639
+ base: 'w-full flex flex-col gap-0.5 outline-hidden p-1'
640
+ });
641
+ const listboxItem = tv({
642
+ slots: {
643
+ base: ['flex', 'group', 'gap-2', 'items-center', 'justify-between', 'relative', 'px-2', 'py-1.5', 'w-full', 'h-full', 'box-border', 'rounded-sm', 'subpixel-antialiased', 'outline-hidden', 'cursor-pointer', 'tap-highlight-transparent'],
644
+ descriptionWrapper: 'w-full flex flex-col items-start justify-center',
645
+ label: 'flex-1 text-sm font-normal truncate',
646
+ description: ['w-full', 'text-xs', 'text-neutral-firm', 'group-hover:text-current'],
647
+ selectedIcon: ['text-inherit', 'w-4', 'h-4', 'shrink-0'],
648
+ shortcut: ['px-1', 'py-0.5', 'rounded-sm', 'font-sans', 'text-neutral-medium', 'text-xs', 'border', 'border-neutral-soft', 'group-data-is-active:border-current']
649
+ },
650
+ variants: {
651
+ appearance: {
652
+ default: {
653
+ base: ''
654
+ },
655
+ outlined: {
656
+ base: 'border border-transparent bg-transparent'
657
+ },
658
+ faded: {
659
+ base: ['border border-transparent']
660
+ }
661
+ },
662
+ intent: {
663
+ default: {},
664
+ primary: {},
665
+ secondary: {},
666
+ success: {},
667
+ warning: {},
668
+ danger: {}
669
+ },
670
+ isActive: {
671
+ true: {
672
+ base: []
673
+ }
674
+ },
675
+ withDivider: {
676
+ true: {
677
+ base: ['mb-1.5']
678
+ }
679
+ },
680
+ isDisabled: {
681
+ true: {
682
+ base: 'opacity-disabled pointer-events-none'
683
+ }
684
+ },
685
+ isSelected: {
686
+ true: {
687
+ base: ''
688
+ }
689
+ }
690
+ },
691
+ defaultVariants: {
692
+ appearance: 'default',
693
+ intent: 'default'
694
+ },
695
+ compoundVariants: [
696
+ // appearance: default
697
+ {
698
+ appearance: 'default',
699
+ intent: 'default',
700
+ class: {
701
+ base: ['data-is-active:bg-neutral-subtle', 'data-is-active:text-neutral-strong']
702
+ }
703
+ }, {
704
+ appearance: 'default',
705
+ intent: 'primary',
706
+ class: {
707
+ base: ['data-is-active:bg-brand-soft', 'data-is-active:text-on-brand-soft']
708
+ }
709
+ }, {
710
+ appearance: 'default',
711
+ intent: 'success',
712
+ class: {
713
+ base: ['data-is-active:bg-success-soft', 'data-is-active:text-on-success-soft']
714
+ }
715
+ }, {
716
+ appearance: 'default',
717
+ intent: 'warning',
718
+ class: {
719
+ base: ['data-is-active:bg-warning-soft', 'data-is-active:text-on-warning-soft']
720
+ }
721
+ }, {
722
+ appearance: 'default',
723
+ intent: 'danger',
724
+ class: {
725
+ base: ['data-is-active:bg-danger-soft', 'data-is-active:text-on-danger-soft']
726
+ }
727
+ }, {
728
+ appearance: 'default',
729
+ intent: 'default',
730
+ isActive: true,
731
+ class: {
732
+ shortcut: ['text-on-neutral', 'border-on-neutral/20']
733
+ }
734
+ }, {
735
+ appearance: 'default',
736
+ intent: 'primary',
737
+ isActive: true,
738
+ class: {
739
+ shortcut: ['text-on-brand-soft', 'border-on-brand-soft/20']
740
+ }
741
+ }, {
742
+ appearance: 'default',
743
+ intent: 'success',
744
+ isActive: true,
745
+ class: {
746
+ shortcut: ['text-on-success-soft', 'border-on-success-soft/20']
747
+ }
748
+ }, {
749
+ appearance: 'default',
750
+ intent: 'warning',
751
+ isActive: true,
752
+ class: {
753
+ shortcut: ['text-on-warning-soft', 'border-on-warning-soft/20']
754
+ }
755
+ }, {
756
+ appearance: 'default',
757
+ intent: 'danger',
758
+ isActive: true,
759
+ class: {
760
+ shortcut: ['text-on-danger-soft', 'border-on-danger-soft/20']
761
+ }
762
+ },
763
+ // appearance: outlined
764
+ {
765
+ appearance: 'outlined',
766
+ intent: 'default',
767
+ class: {
768
+ base: ['data-is-active:border-neutral-medium', 'data-is-active:text-neutral-strong']
769
+ }
770
+ }, {
771
+ appearance: 'outlined',
772
+ intent: 'primary',
773
+ class: {
774
+ base: ['data-is-active:border-brand-medium', 'data-is-active:text-brand-strong']
775
+ }
776
+ }, {
777
+ appearance: 'outlined',
778
+ intent: 'success',
779
+ class: {
780
+ base: ['data-is-active:border-success', 'data-is-active:text-success-strong']
781
+ }
782
+ }, {
783
+ appearance: 'outlined',
784
+ intent: 'warning',
785
+ class: {
786
+ base: ['data-is-active:border-warning', 'data-is-active:text-warning-strong']
787
+ }
788
+ }, {
789
+ appearance: 'outlined',
790
+ intent: 'danger',
791
+ class: {
792
+ base: ['data-is-active:border-danger', 'data-is-active:text-danger-strong']
793
+ }
794
+ },
795
+ // appearance: faded
796
+ {
797
+ appearance: 'faded',
798
+ intent: 'default',
799
+ class: {
800
+ base: ['data-is-active:bg-neutral-soft/20', 'data-is-active:border-neutral-medium', 'data-is-active:text-neutral-strong']
801
+ }
802
+ }, {
803
+ appearance: 'faded',
804
+ intent: 'primary',
805
+ class: {
806
+ base: ['data-is-active:bg-brand-soft/20', 'data-is-active:border-brand-medium', 'data-is-active:text-brand-strong']
807
+ }
808
+ }, {
809
+ appearance: 'faded',
810
+ intent: 'success',
811
+ class: {
812
+ base: ['data-is-active:bg-success-soft/20', 'data-is-active:border-success', 'data-is-active:text-success-strong']
813
+ }
814
+ }, {
815
+ appearance: 'faded',
816
+ intent: 'warning',
817
+ class: {
818
+ base: ['data-is-active:bg-warning-soft/20', 'data-is-active:border-warning', 'data-is-active:text-warning-strong']
819
+ }
820
+ }, {
821
+ appearance: 'faded',
822
+ intent: 'danger',
823
+ class: {
824
+ base: ['data-is-active:bg-danger-soft/20', 'data-is-active:border-danger', 'data-is-active:text-danger-strong']
825
+ }
826
+ }]
827
+ });
828
+
829
+ const dropdownContent = tv({
830
+ base: 'bg-surface-solid-1 w-[260px] rounded-sm border border-neutral-subtle'
831
+ });
832
+
833
+ const popover = tv({
834
+ base: 'bg-surface-solid-1 rounded-sm border border-neutral-subtle',
835
+ variants: {
836
+ size: {
837
+ sm: 'w-40',
838
+ md: 'w-64',
839
+ lg: 'w-96',
840
+ xl: 'w-136',
841
+ trigger: 'w-(--trigger-width)'
842
+ }
843
+ },
844
+ defaultVariants: {
845
+ size: 'md'
846
+ }
847
+ });
848
+
849
+ const divider = tv({
850
+ base: 'shrink-0 bg-neutral-subtle border-none',
851
+ variants: {
852
+ orientation: {
853
+ horizontal: 'w-full h-px',
854
+ vertical: 'h-full w-px'
855
+ }
856
+ },
857
+ defaultVariants: {
858
+ orientation: 'horizontal'
859
+ }
860
+ });
861
+
862
+ const spinner = tv({
863
+ base: 'text-neutral-muted animate-spin',
864
+ variants: {
865
+ size: {
866
+ xs: 'w-4 h-4',
867
+ sm: 'w-6 h-6,',
868
+ md: 'w-8 h-8,',
869
+ lg: 'w-10 h-10',
870
+ xl: 'w-12 h-12'
871
+ },
872
+ intent: {
873
+ default: 'fill-neutral-strong',
874
+ primary: 'fill-brand',
875
+ success: 'fill-success',
876
+ warning: 'fill-warning',
877
+ danger: 'fill-danger'
878
+ }
879
+ },
880
+ defaultVariants: {
881
+ size: 'md',
882
+ intent: 'default'
883
+ }
884
+ });
885
+
886
+ const table = tv({
887
+ slots: {
888
+ base: ['w-full', 'caption-bottom', 'text-sm'],
889
+ wrapper: ['relative', 'isolate', 'overflow-auto', 'rounded-default', 'bg-surface-card'],
890
+ table: ['w-full', 'table-auto'],
891
+ thead: ['relative', 'bg-surface-overlay-subtle'],
892
+ tbody: ['divide-y', 'divide-surface-overlay-subtle', '[&>tr]:data-[selectable=true]:data-[selected=false]:hover:bg-neutral-subtle', '[&>tr]:data-[selectable=true]:transition-colors'],
893
+ tfoot: ['relative'],
894
+ tr: ['data-[disabled=true]:opacity-50', 'data-[disabled=true]:cursor-not-allowed', 'data-[disabled=true]:hover:bg-transparent', 'data-[selectable=true]:focus-visible:ring-2', 'data-[selectable=true]:focus-visible:ring-inset', 'data-[selectable=true]:focus-visible:ring-default', 'data-[selectable=true]:focus-visible:z-10', 'transition-colors', 'duration-150', 'outline-hidden'],
895
+ separator: ['absolute', 'z-2', 'left-0', 'w-full', 'h-px', 'bg-surface-overlay-medium'],
896
+ th: ['h-12', 'px-4', 'text-left', 'align-middle', 'font-semibold', 'text-neutral-boldest', '[&:has([role=checkbox])]:pr-0', 'data-[sortable=true]:cursor-pointer'],
897
+ sortButton: ['group/sort', 'inline-flex', 'items-center', 'gap-1', 'w-full', 'text-left', 'font-semibold', 'text-neutral-boldest', 'outline-hidden', 'focus-visible:z-10', 'focus-visible:ring-3', 'focus-visible:ring-focus', 'focus-visible:ring-offset-2', 'focus-visible:ring-offset-background'],
898
+ sortIcon: ['size-4', 'flex-shrink-0', 'text-neutral-soft', 'transition-opacity', 'data-[sorted=false]:opacity-0', 'group-hover/sort:data-[sorted=false]:opacity-100', 'data-[sorted=true]:opacity-100'],
899
+ columnVisibilityButton: ['flex'],
900
+ columnVisibilityIcon: ['size-6'],
901
+ td: ['p-4', 'align-middle', 'text-neutral-strong', '[&:has([role=checkbox])]:pr-0'],
902
+ empty: ['text-neutral-soft', 'align-middle', 'text-center', 'py-12']
903
+ },
904
+ variants: {
905
+ size: {
906
+ sm: {
907
+ th: 'h-10 px-3 py-2 text-xs',
908
+ td: 'px-3 py-2 text-xs'
909
+ },
910
+ md: {
911
+ th: 'h-12 px-4 text-sm',
912
+ td: 'p-4 text-sm'
913
+ },
914
+ lg: {
915
+ th: 'h-14 px-6 text-base',
916
+ td: 'p-6 text-base'
917
+ }
918
+ },
919
+ isLoading: {
920
+ true: {
921
+ thead: ['after:absolute', 'after:top-full', 'after:left-0', 'after:w-1/2', 'after:animate-swing', 'after:h-px', 'after:z-10']
922
+ }
923
+ },
924
+ loadingColor: {
925
+ default: {},
926
+ primary: {},
927
+ success: {},
928
+ warning: {},
929
+ danger: {}
930
+ },
931
+ selectionColor: {
932
+ default: {},
933
+ primary: {},
934
+ success: {},
935
+ warning: {},
936
+ danger: {}
937
+ },
938
+ layout: {
939
+ auto: {
940
+ table: 'table-auto'
941
+ },
942
+ fixed: {
943
+ table: 'table-fixed'
944
+ }
945
+ },
946
+ striped: {
947
+ true: {
948
+ tbody: '[&_tr:nth-child(odd)]:bg-surface-overlay-subtle'
949
+ }
950
+ },
951
+ isSticky: {
952
+ true: {}
953
+ },
954
+ stickyPosition: {
955
+ left: {},
956
+ right: {},
957
+ top: {},
958
+ bottom: {}
959
+ },
960
+ isScrollable: {
961
+ true: {
962
+ wrapper: ['overflow-auto']
963
+ }
964
+ },
965
+ hasStickyHeader: {
966
+ true: {}
967
+ },
968
+ isInStickyRow: {
969
+ true: {}
970
+ }
971
+ },
972
+ compoundVariants: [
973
+ // Sticky header - highest priority for intersections with columns
974
+ {
975
+ isSticky: true,
976
+ stickyPosition: 'top',
977
+ class: {
978
+ thead: ['sticky', 'top-0', 'z-2', 'bg-surface-card']
979
+ }
980
+ },
981
+ // Sticky footer
982
+ {
983
+ isSticky: true,
984
+ stickyPosition: 'bottom',
985
+ class: {
986
+ tfoot: ['sticky', 'bottom-0', 'z-2', 'bg-surface-card']
987
+ }
988
+ },
989
+ // Sticky columns - medium priority, header cells get higher z-index
990
+ {
991
+ isSticky: true,
992
+ stickyPosition: 'left',
993
+ class: {
994
+ th: ['sticky', 'left-0', 'z-3', 'bg-surface-card', '[background-image:linear-gradient(var(--color-surface-overlay-subtle),var(--color-surface-overlay-subtle))]'],
995
+ td: ['sticky', 'left-0', 'z-1', 'bg-surface-card']
996
+ }
997
+ }, {
998
+ isSticky: true,
999
+ stickyPosition: 'right',
1000
+ class: {
1001
+ th: ['sticky', 'right-0', 'z-3', 'bg-surface-card', '[background-image:linear-gradient(var(--color-surface-overlay-subtle),var(--color-surface-overlay-subtle))]'],
1002
+ td: ['sticky', 'right-0', 'z-1', 'bg-surface-card']
1003
+ }
1004
+ },
1005
+ // Sticky rows - base layer
1006
+ {
1007
+ isSticky: true,
1008
+ stickyPosition: 'top',
1009
+ class: {
1010
+ tr: ['sticky', 'top-0', 'z-1', 'bg-surface-card']
1011
+ }
1012
+ }, {
1013
+ isSticky: true,
1014
+ stickyPosition: 'bottom',
1015
+ class: {
1016
+ tr: ['sticky', 'bottom-0', 'z-1', 'bg-surface-card']
1017
+ }
1018
+ },
1019
+ // Sticky rows with sticky header - position after header
1020
+ {
1021
+ isSticky: true,
1022
+ stickyPosition: 'top',
1023
+ hasStickyHeader: true,
1024
+ class: {
1025
+ tr: ['sticky', 'z-2', 'bg-surface-card', '[&.sticky]:[top:var(--table-header-height,48px)]']
1026
+ }
1027
+ },
1028
+ // Intersection cells: sticky column + sticky row - highest z-index
1029
+ {
1030
+ isSticky: true,
1031
+ stickyPosition: 'left',
1032
+ isInStickyRow: true,
1033
+ class: {
1034
+ td: ['sticky', 'left-0', 'z-2', 'bg-surface-card']
1035
+ }
1036
+ }, {
1037
+ isSticky: true,
1038
+ stickyPosition: 'right',
1039
+ isInStickyRow: true,
1040
+ class: {
1041
+ td: ['sticky', 'right-0', 'z-2', 'bg-surface-card']
1042
+ }
1043
+ },
1044
+ // Loading states with color variants
1045
+ {
1046
+ isLoading: true,
1047
+ loadingColor: 'default',
1048
+ class: {
1049
+ thead: `after:bg-neutral`
1050
+ }
1051
+ }, {
1052
+ isLoading: true,
1053
+ loadingColor: 'primary',
1054
+ class: {
1055
+ thead: `after:bg-brand`
1056
+ }
1057
+ }, {
1058
+ isLoading: true,
1059
+ loadingColor: 'success',
1060
+ class: {
1061
+ thead: `after:bg-success`
1062
+ }
1063
+ }, {
1064
+ isLoading: true,
1065
+ loadingColor: 'warning',
1066
+ class: {
1067
+ thead: `after:bg-warning`
1068
+ }
1069
+ }, {
1070
+ isLoading: true,
1071
+ loadingColor: 'danger',
1072
+ class: {
1073
+ thead: `after:bg-danger`
1074
+ }
1075
+ },
1076
+ // Selection color variants
1077
+ {
1078
+ selectionColor: 'default',
1079
+ class: {
1080
+ tbody: '[&>tr]:data-[selected=true]:bg-neutral-subtle/50',
1081
+ tr: ['data-[selectable=true]:focus-visible:ring-default']
1082
+ }
1083
+ }, {
1084
+ selectionColor: 'primary',
1085
+ class: {
1086
+ tbody: '[&>tr]:data-[selected=true]:bg-brand-subtle',
1087
+ tr: ['data-[selectable=true]:focus-visible:ring-brand-soft']
1088
+ }
1089
+ }, {
1090
+ selectionColor: 'success',
1091
+ class: {
1092
+ tbody: '[&>tr]:data-[selected=true]:bg-success-subtle',
1093
+ tr: ['data-[selectable=true]:focus-visible:ring-success']
1094
+ }
1095
+ }, {
1096
+ selectionColor: 'warning',
1097
+ class: {
1098
+ tbody: '[&>tr]:data-[selected=true]:bg-warning-subtle',
1099
+ tr: ['data-[selectable=true]:focus-visible:ring-warning']
1100
+ }
1101
+ }, {
1102
+ selectionColor: 'danger',
1103
+ class: {
1104
+ tbody: '[&>tr]:data-[selected=true]:bg-danger-subtle',
1105
+ tr: ['data-[selectable=true]:focus-visible:ring-danger']
1106
+ }
1107
+ }],
1108
+ defaultVariants: {
1109
+ size: 'md',
1110
+ layout: 'auto',
1111
+ loadingColor: 'default',
1112
+ selectionColor: 'primary'
1113
+ }
1114
+ });
1115
+
1116
+ const notificationsContainer = tv({
1117
+ base: ['w-full', 'max-h-full', 'overflow-hidden', 'px-4', 'fixed', 'max-w-lg', 'z-1000'],
1118
+ variants: {
1119
+ placement: {
1120
+ 'top-left': 'top-0 left-0',
1121
+ 'top-center': 'top-0 left-2/4 translate-x-[-50%]',
1122
+ 'top-right': 'top-0 right-0',
1123
+ 'bottom-left': 'bottom-0 left-0',
1124
+ 'bottom-center': 'bottom-0 left-2/4 translate-x-[-50%]',
1125
+ 'bottom-right': 'bottom-0 right-0 '
1126
+ }
1127
+ },
1128
+ defaultVariants: {
1129
+ placement: 'bottom-right'
1130
+ }
1131
+ });
1132
+
1133
+ const btn = ['transition transition-200', ...focusVisibleRing];
1134
+ const notificationCard = tv({
1135
+ slots: {
1136
+ base: 'py-3 px-4 overflow-hidden flex items-center justify-between relative min-h-16 text-sm rounded-sm shadow-sm transition-all transition-200 ease-in-out',
1137
+ message: 'grow',
1138
+ customActions: 'flex flex-nowrap',
1139
+ customActionButton: [...btn, 'first:ml-4 last:-mr-2 font-semibold py-1 px-2 rounded-sm hover:bg-surface-overlay-soft'],
1140
+ closeButton: [...btn, 'inline-block p-2 ml-2 -mr-2 rounded-full hover:bg-surface-overlay-soft']
1141
+ },
1142
+ variants: {
1143
+ appearance: {
1144
+ info: {
1145
+ base: 'bg-neutral-firm text-on-neutral-firm'
1146
+ },
1147
+ success: {
1148
+ base: 'bg-success-soft text-on-success-soft'
1149
+ },
1150
+ warning: {
1151
+ base: 'bg-warning-soft text-on-warning-soft'
1152
+ },
1153
+ error: {
1154
+ base: 'bg-danger-soft text-on-danger-soft'
1155
+ }
1156
+ }
1157
+ },
1158
+ defaultVariants: {
1159
+ appearance: 'info'
1160
+ }
1161
+ });
1162
+ const zoomOut = {
1163
+ leaveTo: {
1164
+ transform: 'scale(0.80)',
1165
+ opacity: '0'
1166
+ },
1167
+ leave: {
1168
+ transform: 'translate3d(0,0,0)'
1169
+ }
1170
+ };
1171
+ const notificationEnteringFrom = {
1172
+ right: {
1173
+ transform: 'translate3d(125%, 0, 0)'
1174
+ },
1175
+ left: {
1176
+ transform: 'translate3d(-125%, 0, 0)'
1177
+ },
1178
+ top: {
1179
+ transform: 'translate3d(0, -125%, 0)'
1180
+ },
1181
+ bottom: {
1182
+ transform: 'translate3d(0, 125%, 0)'
1183
+ }
1184
+ };
1185
+ const notificationTransitions = {
1186
+ slideFromTopLeft: {
1187
+ ...zoomOut,
1188
+ enter: {
1189
+ ...notificationEnteringFrom.left
1190
+ }
1191
+ },
1192
+ slideFromTopCenter: {
1193
+ ...zoomOut,
1194
+ enter: notificationEnteringFrom.top
1195
+ },
1196
+ slideFromTopRight: {
1197
+ ...zoomOut,
1198
+ enter: notificationEnteringFrom.right
1199
+ },
1200
+ slideFromBottomLeft: {
1201
+ ...zoomOut,
1202
+ enter: notificationEnteringFrom.left
1203
+ },
1204
+ slideFromBottomCenter: {
1205
+ ...zoomOut,
1206
+ enter: notificationEnteringFrom.bottom
1207
+ },
1208
+ slideFromBottomRight: {
1209
+ ...zoomOut,
1210
+ enter: notificationEnteringFrom.right
1211
+ }
1212
+ };
1213
+
1214
+ const obscurer = `before:bg-linear-to-b before:to-surface-solid-1 before:from-surface-solid-1/75 before:absolute before:left-0 before:w-full before:h-4 before:-top-4 before:content-['_']`;
1215
+ const overlay = tv({
1216
+ base: 'will-change-transform overflow-auto',
1217
+ variants: {
1218
+ enableFlexContent: {
1219
+ true: 'flex items-center fixed inset-0 flex-col'
1220
+ },
1221
+ inPlace: {
1222
+ true: 'absolute'
1223
+ }
1224
+ }
1225
+ });
1226
+ const backdrop = tv({
1227
+ base: 'fixed inset-0 select-none',
1228
+ variants: {
1229
+ type: {
1230
+ none: '',
1231
+ transparent: '',
1232
+ blur: 'bg-surface-overlay-inverse-strong backdrop-blur-sm',
1233
+ faded: 'bg-surface-overlay-inverse-strong'
1234
+ },
1235
+ inPlace: {
1236
+ true: 'absolute'
1237
+ }
1238
+ }
1239
+ });
1240
+ const modal = tv({
1241
+ slots: {
1242
+ base: 'flex flex-col shrink-0 relative text-surface-solid-11 bg-surface-solid-1 border border-surface-overlay-medium rounded-2xl my-24 w-full outline-hidden overflow-clip',
1243
+ closeButton: 'absolute top-3 right-3',
1244
+ header: 'font-bold text-xl px-6 pt-8 pb-2',
1245
+ body: 'px-6 py-2 grow overflow-y-auto',
1246
+ footer: 'flex justify-end items-center px-6 pt-6 pb-8 gap-4'
1247
+ },
1248
+ variants: {
1249
+ size: {
1250
+ xs: 'modal--xs',
1251
+ sm: 'modal--sm',
1252
+ md: 'modal--md',
1253
+ lg: 'modal--lg',
1254
+ xl: 'modal--xl',
1255
+ full: 'modal--full'
1256
+ },
1257
+ isCentered: {
1258
+ true: 'my-auto'
1259
+ }
1260
+ }
1261
+ });
1262
+ const drawer = tv({
1263
+ slots: {
1264
+ base: 'flex flex-col absolute text-surface-solid-11 bg-surface-solid-1 border border-surface-overlay-medium rounded-2xl w-full h-full outline-hidden overflow-clip',
1265
+ closeButton: 'absolute top-3 right-3',
1266
+ header: 'font-bold text-xl text-center px-8 pt-10 pb-2',
1267
+ body: 'px-8 py-4 grow overflow-y-auto',
1268
+ footer: `${obscurer} flex justify-end items-center relative border-t border-surface-overlay-medium bg-surface-solid-0 p-8 gap-4`
1269
+ },
1270
+ variants: {
1271
+ size: {
1272
+ xs: '',
1273
+ sm: '',
1274
+ md: '',
1275
+ lg: '',
1276
+ xl: '',
1277
+ full: ''
1278
+ },
1279
+ placement: {
1280
+ top: 'top-0 right-0 left-0',
1281
+ bottom: 'bottom-0 right-0 left-0',
1282
+ left: 'top-0 bottom-0 left-0',
1283
+ right: 'top-0 bottom-0 right-0'
1284
+ }
1285
+ },
1286
+ compoundVariants: [
1287
+ // vertical
1288
+ {
1289
+ placement: ['top', 'bottom'],
1290
+ size: 'xs',
1291
+ class: 'drawer--vertical-xs'
1292
+ }, {
1293
+ placement: ['top', 'bottom'],
1294
+ size: 'sm',
1295
+ class: 'drawer--vertical-sm'
1296
+ }, {
1297
+ placement: ['top', 'bottom'],
1298
+ size: 'md',
1299
+ class: 'drawer--vertical-md'
1300
+ }, {
1301
+ placement: ['top', 'bottom'],
1302
+ size: 'lg',
1303
+ class: 'drawer--vertical-lg'
1304
+ }, {
1305
+ placement: ['top', 'bottom'],
1306
+ size: 'xl',
1307
+ class: 'drawer--vertical-xl'
1308
+ }, {
1309
+ placement: ['top', 'bottom'],
1310
+ size: 'full',
1311
+ class: 'drawer--vertical-full'
1312
+ },
1313
+ // horizontal
1314
+ {
1315
+ placement: ['right', 'left'],
1316
+ size: 'xs',
1317
+ class: 'drawer--horizontal-xs'
1318
+ }, {
1319
+ placement: ['right', 'left'],
1320
+ size: 'sm',
1321
+ class: 'drawer--horizontal-sm'
1322
+ }, {
1323
+ placement: ['right', 'left'],
1324
+ size: 'md',
1325
+ class: 'drawer--horizontal-md'
1326
+ }, {
1327
+ placement: ['right', 'left'],
1328
+ size: 'lg',
1329
+ class: 'drawer--horizontal-lg'
1330
+ }, {
1331
+ placement: ['right', 'left'],
1332
+ size: 'xl',
1333
+ class: 'drawer--horizontal-xl'
1334
+ }, {
1335
+ placement: ['right', 'left'],
1336
+ size: 'full',
1337
+ class: 'drawer--horizontal-full'
1338
+ }]
1339
+ });
1340
+ const slideTransition = {
1341
+ enterActive: {
1342
+ transition: 'transform 0.2s cubic-bezier(0.37, 0, 0.63, 1)'
1343
+ },
1344
+ leaveActive: {
1345
+ transition: 'transform 0.2s cubic-bezier(0.37, 0, 0.63, 1)'
1346
+ }
1347
+ };
1348
+ const overlayTransitions = {
1349
+ fade: {
1350
+ enter: {
1351
+ opacity: '0'
1352
+ },
1353
+ enterActive: {
1354
+ transition: 'opacity 0.2s linear'
1355
+ },
1356
+ leave: {
1357
+ opacity: '1'
1358
+ },
1359
+ leaveActive: {
1360
+ transition: 'opacity 0.2s linear'
1361
+ }
1362
+ },
1363
+ zoom: {
1364
+ enter: {
1365
+ opacity: '0',
1366
+ transform: 'scale(0.8)'
1367
+ },
1368
+ enterActive: {
1369
+ transition: 'all 0.2s ease-in-out'
1370
+ },
1371
+ leave: {
1372
+ opacity: '1',
1373
+ transform: 'scale(1)'
1374
+ },
1375
+ leaveActive: {
1376
+ transition: 'all 0.2s ease-in-out'
1377
+ }
1378
+ },
1379
+ slideFromLeft: {
1380
+ enter: {
1381
+ transform: 'translateX(-100%)'
1382
+ },
1383
+ leave: {
1384
+ transform: 'translateX(0%)'
1385
+ },
1386
+ ...slideTransition
1387
+ },
1388
+ slideFromRight: {
1389
+ enter: {
1390
+ transform: 'translateX(100%)'
1391
+ },
1392
+ leave: {
1393
+ transform: 'translateX(0%)'
1394
+ },
1395
+ ...slideTransition
1396
+ },
1397
+ slideFromTop: {
1398
+ enter: {
1399
+ transform: 'translateY(-100%)'
1400
+ },
1401
+ leave: {
1402
+ transform: 'translateY(0%)'
1403
+ },
1404
+ ...slideTransition
1405
+ },
1406
+ slideFromBottom: {
1407
+ enter: {
1408
+ transform: 'translateY(100%)'
1409
+ },
1410
+ leave: {
1411
+ transform: 'translateY(0%)'
1412
+ },
1413
+ ...slideTransition
1414
+ },
1415
+ scale: {
1416
+ enter: {
1417
+ opacity: '0',
1418
+ transform: 'scale(0.95)'
1419
+ },
1420
+ enterActive: {
1421
+ transitionProperty: 'transform, opacity',
1422
+ transitionDuration: '200ms',
1423
+ transitionTimingFunction: 'cubic-bezier(0, 0, 0.2, 1)'
1424
+ },
1425
+ enterTo: {
1426
+ opacity: '1',
1427
+ transform: 'translate(scaleX(1) scaleY(1))'
1428
+ },
1429
+ leave: {
1430
+ opacity: '1',
1431
+ transform: 'translate(scaleX(1) scaleY(1))'
1432
+ },
1433
+ leaveActive: {
1434
+ transitionProperty: 'transform, opacity',
1435
+ transitionDuration: '100ms',
1436
+ transitionTimingFunction: 'cubic-bezier(0.4, 0, 1, 1)'
1437
+ },
1438
+ leaveTo: {
1439
+ opacity: '0',
1440
+ transform: 'scale(0.95)'
1441
+ }
1442
+ }
1443
+ };
1444
+
1445
+ const label = tv({
1446
+ slots: {
1447
+ base: 'text-neutral-strong inline-block font-semibold leading-tight pb-1',
1448
+ asterisk: 'text-danger'
1449
+ },
1450
+ variants: {
1451
+ size: {
1452
+ sm: {
1453
+ base: 'text-xs'
1454
+ },
1455
+ md: {},
1456
+ lg: {
1457
+ base: 'text-lg'
1458
+ }
1459
+ }
1460
+ },
1461
+ defaultVariants: {
1462
+ size: 'md'
1463
+ }
1464
+ });
1465
+ const formDescription = tv({
1466
+ base: 'text-neutral-medium text-xs pb-1 last:pb-0',
1467
+ variants: {
1468
+ size: {
1469
+ sm: 'text-xs',
1470
+ md: '',
1471
+ lg: 'text-lg'
1472
+ }
1473
+ },
1474
+ defaultVariants: {
1475
+ size: 'md'
1476
+ }
1477
+ });
1478
+ const formFeedback = tv({
1479
+ base: 'text-xs pt-1',
1480
+ variants: {
1481
+ intent: {
1482
+ primary: 'text-brand',
1483
+ success: 'text-success',
1484
+ danger: 'text-danger',
1485
+ warning: 'text-warning'
1486
+ },
1487
+ size: {
1488
+ sm: 'text-xs',
1489
+ md: '',
1490
+ lg: 'text-lg'
1491
+ }
1492
+ },
1493
+ defaultVariants: {
1494
+ size: 'sm'
1495
+ }
1496
+ });
1497
+ const input = tv({
1498
+ slots: {
1499
+ base: '',
1500
+ innerContainer: 'relative flex',
1501
+ startContent: 'absolute inset-y-0 left-0 flex items-center',
1502
+ endContent: 'absolute inset-y-0 right-0 flex items-center',
1503
+ input: ['appearance-none', 'flex-1', 'w-full', 'bg-surface-solid-0', 'text-neutral-strong', 'placeholder-neutral-medium', 'text-base text-left', 'border', 'border-neutral-soft', 'rounded-sm', 'leading-tight', 'focus:ring-3', 'focus:ring-focus', 'focus:outline-hidden', 'focus:border-brand-soft', 'selection:bg-surface-overlay-soft', 'disabled:border-neutral-subtle disabled:text-neutral-soft', 'aria-invalid:border-danger-soft', 'aria-invalid:focus:ring-danger-soft']
1504
+ },
1505
+ variants: {
1506
+ size: {
1507
+ sm: {
1508
+ input: 'p-2',
1509
+ startContent: 'pl-2',
1510
+ endContent: 'pr-2'
1511
+ },
1512
+ md: {
1513
+ input: 'p-3',
1514
+ startContent: 'pl-3',
1515
+ endContent: 'pr-3'
1516
+ },
1517
+ lg: {
1518
+ input: 'p-4',
1519
+ startContent: 'pl-4',
1520
+ endContent: 'pr-4'
1521
+ }
1522
+ },
1523
+ hasStartContent: {
1524
+ true: {
1525
+ input: 'ps-8'
1526
+ }
1527
+ },
1528
+ hasEndContent: {
1529
+ true: {
1530
+ input: 'pe-10'
1531
+ }
1532
+ },
1533
+ startContentPointerEvents: {
1534
+ auto: {
1535
+ startContent: 'pointer-events-auto'
1536
+ },
1537
+ none: {
1538
+ startContent: 'pointer-events-none'
1539
+ }
1540
+ },
1541
+ endContentPointerEvents: {
1542
+ auto: {
1543
+ endContent: 'pointer-events-auto'
1544
+ },
1545
+ none: {
1546
+ endContent: 'pointer-events-none'
1547
+ }
1548
+ }
1549
+ },
1550
+ defaultVariants: {
1551
+ size: 'md'
1552
+ }
1553
+ });
1554
+ const textarea = tv({
1555
+ extend: input,
1556
+ slots: {
1557
+ input: 'min-h-24'
1558
+ },
1559
+ variants: {
1560
+ size: {
1561
+ sm: {},
1562
+ md: {},
1563
+ lg: {}
1564
+ }
1565
+ }
1566
+ });
1567
+ const checkboxRadioBase = tv({
1568
+ slots: {
1569
+ base: ['max-w-fit flex items-center justify-start'],
1570
+ input: ['appearance-none', 'inline-block', 'align-middle', 'select-none', 'shrink-0', 'h-[1em] w-[1em]', 'text-base', 'text-brand', 'border border-neutral-soft', 'bg-surface-solid-0', 'checked:bg-origin-border checked:border-transparent dark:checked:bg-current checked:bg-current checked:bg-center checked:bg-no-repeat checked:disabled:bg-neutral-soft', ...focusVisibleRing],
1571
+ labelContainer: ['flex flex-col ml-2'],
1572
+ label: 'font-normal pb-0'
1573
+ },
1574
+ variants: {
1575
+ size: {
1576
+ sm: {
1577
+ input: ''
1578
+ },
1579
+ md: {
1580
+ input: ''
1581
+ },
1582
+ lg: {
1583
+ input: ''
1584
+ }
1585
+ }
1586
+ },
1587
+ defaultVariants: {
1588
+ size: 'md'
1589
+ }
1590
+ });
1591
+ const checkboxRadioGroupBase = tv({
1592
+ slots: {
1593
+ base: '',
1594
+ optionsContainer: ['flex flex-col flex-wrap gap-4 data-[orientation=horizontal]:flex-row'],
1595
+ label: 'pb-2'
1596
+ },
1597
+ variants: {
1598
+ size: {
1599
+ sm: '',
1600
+ md: '',
1601
+ lg: ''
1602
+ }
1603
+ }
1604
+ });
1605
+ const checkbox = tv({
1606
+ extend: checkboxRadioBase,
1607
+ slots: {
1608
+ input: ['checked-bg-checkbox', 'indeterminate-bg-checkbox', 'rounded-xs',
1609
+ // Indeterminate state styles - show minus/dash icon
1610
+ 'indeterminate:bg-brand', 'indeterminate:border-brand-medium', 'indeterminate:bg-origin-border', 'indeterminate:bg-center', 'indeterminate:bg-no-repeat', 'dark:indeterminate:bg-current']
1611
+ },
1612
+ variants: {
1613
+ size: {
1614
+ sm: {
1615
+ input: ''
1616
+ },
1617
+ md: {
1618
+ input: ''
1619
+ },
1620
+ lg: {
1621
+ input: ''
1622
+ }
1623
+ }
1624
+ },
1625
+ defaultVariants: {
1626
+ size: 'md'
1627
+ }
1628
+ });
1629
+ const radio = tv({
1630
+ extend: checkboxRadioBase,
1631
+ slots: {
1632
+ input: ['checked-bg-radio', 'rounded-full']
1633
+ },
1634
+ variants: {
1635
+ size: {
1636
+ sm: {
1637
+ input: ''
1638
+ },
1639
+ md: {
1640
+ input: ''
1641
+ },
1642
+ lg: {
1643
+ input: ''
1644
+ }
1645
+ }
1646
+ },
1647
+ defaultVariants: {
1648
+ size: 'md'
1649
+ }
1650
+ });
1651
+ const radioGroup = tv({
1652
+ extend: checkboxRadioGroupBase
1653
+ });
1654
+ const checkboxGroup = tv({
1655
+ extend: checkboxRadioGroupBase
1656
+ });
1657
+ const select = tv({
1658
+ extend: input,
1659
+ slots: {
1660
+ base: [],
1661
+ placeholder: 'text-neutral-medium',
1662
+ listbox: 'scroll-py-6 max-h-64',
1663
+ icon: 'w-5 h-5',
1664
+ clearButton: 'pointer-events-auto',
1665
+ input: '[button]:cursor-default',
1666
+ emptyContent: 'p-2'
1667
+ },
1668
+ variants: {
1669
+ size: {
1670
+ sm: {},
1671
+ md: {},
1672
+ lg: {}
1673
+ }
1674
+ },
1675
+ defaultVariants: {
1676
+ size: 'md'
1677
+ }
1678
+ });
1679
+ const nativeSelect = tv({
1680
+ extend: input,
1681
+ slots: {
1682
+ input: ['appearance-none'],
1683
+ icon: 'w-5 h-5'
1684
+ },
1685
+ variants: {
1686
+ size: {
1687
+ sm: {},
1688
+ md: {},
1689
+ lg: {}
1690
+ }
1691
+ }
1692
+ });
1693
+ const switchInput = tv({
1694
+ slots: {
1695
+ base: 'group relative max-w-fit inline-flex items-center justify-start',
1696
+ labelContainer: 'flex flex-col ml-2',
1697
+ label: 'font-normal pb-0',
1698
+ wrapper: ['px-1', 'relative', 'inline-flex', 'items-center', 'justify-start', 'shrink-0', 'overflow-hidden', 'bg-neutral-soft', 'rounded-full', 'cursor-pointer touch-none tap-highlight-transparent select-none', 'transition-background', ...focusVisibleWithinRing],
1699
+ hiddenInput: ['font-inherit', 'text-[100%]', 'leading-[1.15]', 'm-0', 'p-0', 'overflow-visible', 'box-border', 'absolute', 'top-0', 'w-full', 'h-full', 'opacity-[0.0001]', 'z-1', 'cursor-pointer', 'disabled:cursor-default'],
1700
+ thumb: ['z-10', 'flex', 'items-center', 'justify-center', 'bg-white', 'shadow-small', 'rounded-full', 'origin-right', 'transition-all', 'pointer-events-none', 'text-black'],
1701
+ startContent: ['z-0 absolute start-1.5 text-current', 'opacity-0', 'scale-50', 'transition-transform-opacity', 'group-data-[selected=true]:scale-100', 'group-data-[selected=true]:opacity-100'],
1702
+ endContent: ['z-0 absolute end-1.5 text-neutral-medium', 'opacity-100', 'transition-transform-opacity', 'group-data-[selected=true]:translate-x-3', 'group-data-[selected=true]:opacity-0']
1703
+ },
1704
+ variants: {
1705
+ isDisabled: {
1706
+ true: {
1707
+ wrapper: 'opacity-disabled pointer-events-none'
1708
+ }
1709
+ },
1710
+ size: {
1711
+ sm: {
1712
+ wrapper: 'w-6 h-3 px-[2px]',
1713
+ thumb: ['w-2 h-2 text-xs', 'group-data-[selected=true]:ms-3'],
1714
+ endContent: 'text-xs',
1715
+ startContent: 'text-xs',
1716
+ label: 'text-small'
1717
+ },
1718
+ md: {
1719
+ wrapper: 'w-11 h-6',
1720
+ thumb: ['w-4 h-4 text-sm', 'group-data-[selected=true]:ms-5'],
1721
+ endContent: 'text-sm',
1722
+ startContent: 'text-sm',
1723
+ label: 'text-md'
1724
+ },
1725
+ lg: {
1726
+ wrapper: 'w-12 h-7',
1727
+ thumb: ['w-5 h-5 text-medium', 'group-data-[selected=true]:ms-5'],
1728
+ endContent: 'text-md',
1729
+ startContent: 'text-md',
1730
+ label: 'text-lg'
1731
+ }
1732
+ },
1733
+ intent: {
1734
+ default: {
1735
+ wrapper: ['group-data-[selected=true]:bg-neutral-firm', 'group-data-[selected=true]:text-on-neutral-firm']
1736
+ },
1737
+ primary: {
1738
+ wrapper: ['group-data-[selected=true]:bg-brand-medium', 'group-data-[selected=true]:text-on-brand-medium']
1739
+ },
1740
+ accent: {
1741
+ wrapper: ['group-data-[selected=true]:bg-accent-medium', 'group-data-[selected=true]:text-on-accent-medium']
1742
+ },
1743
+ success: {
1744
+ wrapper: ['group-data-[selected=true]:bg-success-medium', 'group-data-[selected=true]:text-on-success-medium']
1745
+ },
1746
+ warning: {
1747
+ wrapper: ['group-data-[selected=true]:bg-warning-medium', 'group-data-[selected=true]:text-on-warning-medium']
1748
+ },
1749
+ danger: {
1750
+ wrapper: ['group-data-[selected=true]:bg-danger-medium', 'group-data-[selected=true]:text-on-danger-medium']
1751
+ }
1752
+ }
1753
+ },
1754
+ defaultVariants: {
1755
+ size: 'md',
1756
+ intent: 'primary',
1757
+ isDisabled: false
1758
+ }
1759
+ });
1760
+
1761
+ const base = tv({
1762
+ slots: {
1763
+ base: 'flex flex-wrap flex-row items-center',
1764
+ labelContainer: 'leading-tight flex items-start',
1765
+ inputContainer: 'flex items-center',
1766
+ label: 'font-normal pl-2 pb-0',
1767
+ hint: 'pl-2 flex basis-full before:content-["_"] before:inline-block before:w-[1em] before:h-[1em] shrink-0'
1768
+ },
1769
+ variants: {
1770
+ size: {
1771
+ sm: {
1772
+ label: 'text-sm'
1773
+ },
1774
+ md: '',
1775
+ lg: ''
1776
+ }
1777
+ },
1778
+ defaultVariants: {
1779
+ size: 'md'
1780
+ }
1781
+ });
1782
+ const formCheckbox = tv({
1783
+ extend: base,
1784
+ slots: {
1785
+ checkbox: ''
1786
+ }
1787
+ });
1788
+ const formRadio = tv({
1789
+ extend: base,
1790
+ slots: {
1791
+ radio: ''
1792
+ }
1793
+ });
1794
+ const baseGroup = tv({
1795
+ slots: {
1796
+ base: '',
1797
+ label: 'pb-1 last:pb-0',
1798
+ hint: 'pb-1 last:pb-0',
1799
+ feedback: 'pt-0 flex-[1_100%]'
1800
+ },
1801
+ variants: {
1802
+ isInline: {
1803
+ true: {
1804
+ base: 'flex flex-wrap flex-row items-start',
1805
+ label: 'pr-4 pb-0',
1806
+ hint: 'pr-4 pb-0',
1807
+ feedback: 'pr-4 pb-0'
1808
+ }
1809
+ }
1810
+ }
1811
+ });
1812
+ const formCheckboxGroup = tv({
1813
+ extend: baseGroup,
1814
+ slots: {
1815
+ formCheckbox: 'pb-1 last:pb-0'
1816
+ },
1817
+ variants: {
1818
+ isInline: {
1819
+ true: {
1820
+ formCheckbox: 'pr-4 pb-0'
1821
+ }
1822
+ }
1823
+ }
1824
+ });
1825
+ const formRadioGroup = tv({
1826
+ extend: baseGroup,
1827
+ slots: {
1828
+ formRadio: 'pb-1 last:pb-0'
1829
+ },
1830
+ variants: {
1831
+ isInline: {
1832
+ true: {
1833
+ formRadio: 'pr-4 pb-0'
1834
+ }
1835
+ }
1836
+ }
1837
+ });
1838
+ const formInput = tv({
1839
+ slots: {
1840
+ base: 'flex flex-wrap flex-row',
1841
+ label: 'flex-[1_100%]',
1842
+ input: '',
1843
+ hint: 'flex-[1_100%]',
1844
+ feedback: 'flex-[1_100%]'
1845
+ },
1846
+ variants: {
1847
+ size: {
1848
+ sm: '',
1849
+ md: '',
1850
+ lg: ''
1851
+ }
1852
+ },
1853
+ defaultVariants: {
1854
+ size: 'md'
1855
+ }
1856
+ });
1857
+ const formTextarea = tv({
1858
+ extend: formInput
1859
+ });
1860
+ const formSelect = tv({
1861
+ slots: {
1862
+ base: 'flex flex-wrap flex-row',
1863
+ label: 'flex-[1_100%]',
1864
+ select: '',
1865
+ hint: 'flex-[1_100%]',
1866
+ feedback: 'flex-[1_100%]'
1867
+ },
1868
+ variants: {
1869
+ size: {
1870
+ sm: '',
1871
+ md: '',
1872
+ lg: ''
1873
+ }
1874
+ },
1875
+ defaultVariants: {
1876
+ size: 'md'
1877
+ }
1878
+ });
1879
+
1880
+ export { notificationCard as A, notificationTransitions as B, notificationsContainer as C, overlay as D, overlayTransitions as E, popover as F, progressBar as G, radio as H, radioGroup as I, select as J, spinner as K, switchInput as L, table as M, textarea as N, toggleButton as O, twMerge as P, tv as Q, avatar as a, backdrop as b, button as c, buttonGroup as d, checkbox as e, checkboxGroup as f, chip as g, closeButton as h, divider as i, drawer as j, dropdownContent as k, formCheckbox as l, formCheckboxGroup as m, formDescription as n, formFeedback as o, formInput as p, formRadio as q, formRadioGroup as r, formSelect as s, formTextarea as t, input as u, label as v, listbox as w, listboxItem as x, modal as y, nativeSelect as z };
1881
+ //# sourceMappingURL=forms-legacy-B-L2HELt.js.map