@frontile/theme 0.17.0-beta.1 → 0.17.0-beta.13

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 (93) hide show
  1. package/README.md +16 -5
  2. package/declarations/colors/defaults.d.ts +0 -1
  3. package/declarations/colors/semantic.d.ts +0 -1
  4. package/declarations/colors/types.d.ts +0 -1
  5. package/declarations/colors/util.d.ts +0 -1
  6. package/declarations/colors.d.ts +0 -1
  7. package/declarations/components/avatar.d.ts +171 -0
  8. package/declarations/components/button.d.ts +0 -1
  9. package/declarations/components/chip.d.ts +0 -1
  10. package/declarations/components/close-button.d.ts +3 -4
  11. package/declarations/components/divider.d.ts +0 -1
  12. package/declarations/components/dropdown.d.ts +0 -1
  13. package/declarations/components/forms/forms-legacy.d.ts +0 -1
  14. package/declarations/components/forms/forms.d.ts +355 -2
  15. package/declarations/components/forms/index.d.ts +0 -1
  16. package/declarations/components/index.d.ts +1 -1
  17. package/declarations/components/listbox.d.ts +7 -8
  18. package/declarations/components/notification-card.d.ts +6 -7
  19. package/declarations/components/notifications-container.d.ts +0 -1
  20. package/declarations/components/overlays.d.ts +0 -1
  21. package/declarations/components/popover.d.ts +7 -1
  22. package/declarations/components/progress-bar.d.ts +0 -1
  23. package/declarations/components/shared.d.ts +2 -0
  24. package/declarations/components/spinner.d.ts +0 -1
  25. package/declarations/index.d.ts +0 -1
  26. package/declarations/plugin/default-config.d.ts +0 -1
  27. package/declarations/plugin/overlays.d.ts +0 -1
  28. package/declarations/plugin/power-select.d.ts +0 -1
  29. package/declarations/plugin/resolve.d.ts +0 -1
  30. package/declarations/plugin/safelist.d.ts +0 -1
  31. package/declarations/plugin/transitions.d.ts +0 -1
  32. package/declarations/plugin.d.ts +0 -1
  33. package/declarations/template-registry.d.ts +0 -1
  34. package/declarations/tw.d.ts +0 -1
  35. package/declarations/types.d.ts +0 -1
  36. package/dist/colors.js +1 -1
  37. package/dist/{forms-legacy-C8pB0Hf3.js → forms-legacy-BfjJExaO.js} +148 -43
  38. package/dist/forms-legacy-BfjJExaO.js.map +1 -0
  39. package/dist/index.js +4 -2
  40. package/dist/index.js.map +1 -1
  41. package/dist/plugin.js +3 -4
  42. package/dist/plugin.js.map +1 -1
  43. package/dist/{semantic-Us_bxqq7.js → semantic-DUv6Lpqq.js} +4 -7
  44. package/dist/semantic-DUv6Lpqq.js.map +1 -0
  45. package/package.json +49 -52
  46. package/declarations/colors/defaults.d.ts.map +0 -1
  47. package/declarations/colors/semantic.d.ts.map +0 -1
  48. package/declarations/colors/types.d.ts.map +0 -1
  49. package/declarations/colors/util.d.ts.map +0 -1
  50. package/declarations/colors.d.ts.map +0 -1
  51. package/declarations/components/button.d.ts.map +0 -1
  52. package/declarations/components/chip.d.ts.map +0 -1
  53. package/declarations/components/close-button.d.ts.map +0 -1
  54. package/declarations/components/divider.d.ts.map +0 -1
  55. package/declarations/components/dropdown.d.ts.map +0 -1
  56. package/declarations/components/forms/forms-legacy.d.ts.map +0 -1
  57. package/declarations/components/forms/forms.d.ts.map +0 -1
  58. package/declarations/components/forms/index.d.ts.map +0 -1
  59. package/declarations/components/index.d.ts.map +0 -1
  60. package/declarations/components/listbox.d.ts.map +0 -1
  61. package/declarations/components/notification-card.d.ts.map +0 -1
  62. package/declarations/components/notifications-container.d.ts.map +0 -1
  63. package/declarations/components/overlays.d.ts.map +0 -1
  64. package/declarations/components/popover.d.ts.map +0 -1
  65. package/declarations/components/progress-bar.d.ts.map +0 -1
  66. package/declarations/components/spinner.d.ts.map +0 -1
  67. package/declarations/defaults-6b749161.d.ts +0 -67
  68. package/declarations/defaults-6b749161.d.ts.map +0 -1
  69. package/declarations/forms-legacy-C8pB0Hf3.d.ts +0 -5701
  70. package/declarations/forms-legacy-C8pB0Hf3.d.ts.map +0 -1
  71. package/declarations/index-6ccbcd58.d.ts +0 -2
  72. package/declarations/index-6ccbcd58.d.ts.map +0 -1
  73. package/declarations/index.d.ts.map +0 -1
  74. package/declarations/plugin/default-config.d.ts.map +0 -1
  75. package/declarations/plugin/overlays.d.ts.map +0 -1
  76. package/declarations/plugin/power-select.d.ts.map +0 -1
  77. package/declarations/plugin/resolve.d.ts.map +0 -1
  78. package/declarations/plugin/safelist.d.ts.map +0 -1
  79. package/declarations/plugin/transitions.d.ts.map +0 -1
  80. package/declarations/plugin.d.ts.map +0 -1
  81. package/declarations/semantic-Us_bxqq7.d.ts +0 -7
  82. package/declarations/semantic-Us_bxqq7.d.ts.map +0 -1
  83. package/declarations/template-registry.d.ts.map +0 -1
  84. package/declarations/tw-0891d74d.d.ts +0 -6
  85. package/declarations/tw-0891d74d.d.ts.map +0 -1
  86. package/declarations/tw.d.ts.map +0 -1
  87. package/declarations/types-45f8510f.d.ts +0 -39
  88. package/declarations/types-45f8510f.d.ts.map +0 -1
  89. package/declarations/types.d.ts.map +0 -1
  90. package/declarations/util-e4b6947c.d.ts +0 -3
  91. package/declarations/util-e4b6947c.d.ts.map +0 -1
  92. package/dist/forms-legacy-C8pB0Hf3.js.map +0 -1
  93. package/dist/semantic-Us_bxqq7.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  declare const listbox: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "w-full flex flex-col gap-0.5 outline-none p-1", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "w-full flex flex-col gap-0.5 outline-none p-1", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
2
2
  declare const listboxItem: import("tailwind-variants").TVReturnType<{
3
- appearence: {
3
+ appearance: {
4
4
  default: {
5
5
  base: string;
6
6
  };
@@ -47,7 +47,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
47
47
  selectedIcon: string[];
48
48
  shortcut: string[];
49
49
  }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
50
- appearence: {
50
+ appearance: {
51
51
  default: {
52
52
  base: string;
53
53
  };
@@ -87,7 +87,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
87
87
  };
88
88
  };
89
89
  }, {
90
- appearence: {
90
+ appearance: {
91
91
  default: {
92
92
  base: string;
93
93
  };
@@ -127,7 +127,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
127
127
  };
128
128
  };
129
129
  }>, {
130
- appearence: {
130
+ appearance: {
131
131
  default: {
132
132
  base: string;
133
133
  };
@@ -174,7 +174,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
174
174
  selectedIcon: string[];
175
175
  shortcut: string[];
176
176
  }, import("tailwind-variants").TVReturnType<{
177
- appearence: {
177
+ appearance: {
178
178
  default: {
179
179
  base: string;
180
180
  };
@@ -221,7 +221,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
221
221
  selectedIcon: string[];
222
222
  shortcut: string[];
223
223
  }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
224
- appearence: {
224
+ appearance: {
225
225
  default: {
226
226
  base: string;
227
227
  };
@@ -261,7 +261,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
261
261
  };
262
262
  };
263
263
  }, {
264
- appearence: {
264
+ appearance: {
265
265
  default: {
266
266
  base: string;
267
267
  };
@@ -302,4 +302,3 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
302
302
  };
303
303
  }>, unknown, unknown, undefined>>;
304
304
  export { listbox, listboxItem };
305
- //# sourceMappingURL=listbox.d.ts.map
@@ -25,8 +25,8 @@ declare const notificationCard: import("tailwind-variants").TVReturnType<{
25
25
  base: string;
26
26
  message: string;
27
27
  customActions: string;
28
- customActionButton: string;
29
- closeButton: string;
28
+ customActionButton: string[];
29
+ closeButton: string[];
30
30
  }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
31
31
  appearance: {
32
32
  info: {
@@ -100,8 +100,8 @@ declare const notificationCard: import("tailwind-variants").TVReturnType<{
100
100
  base: string;
101
101
  message: string;
102
102
  customActions: string;
103
- customActionButton: string;
104
- closeButton: string;
103
+ customActionButton: string[];
104
+ closeButton: string[];
105
105
  }, import("tailwind-variants").TVReturnType<{
106
106
  appearance: {
107
107
  info: {
@@ -129,8 +129,8 @@ declare const notificationCard: import("tailwind-variants").TVReturnType<{
129
129
  base: string;
130
130
  message: string;
131
131
  customActions: string;
132
- customActionButton: string;
133
- closeButton: string;
132
+ customActionButton: string[];
133
+ closeButton: string[];
134
134
  }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
135
135
  appearance: {
136
136
  info: {
@@ -253,4 +253,3 @@ declare const notificationTransitions: {
253
253
  };
254
254
  };
255
255
  export { notificationCard, notificationTransitions };
256
- //# sourceMappingURL=notification-card.d.ts.map
@@ -63,4 +63,3 @@ declare const notificationsContainer: import("tailwind-variants").TVReturnType<{
63
63
  };
64
64
  }>, unknown, unknown, undefined>>;
65
65
  export { notificationsContainer };
66
- //# sourceMappingURL=notifications-container.d.ts.map
@@ -472,4 +472,3 @@ export type ModalSlots = keyof ReturnType<typeof modal>;
472
472
  export type BackdropVariants = VariantProps<typeof backdrop>;
473
473
  export type BackdropSlots = keyof ReturnType<typeof backdrop>;
474
474
  export { overlay, drawer, modal, overlayTransitions, backdrop };
475
- //# sourceMappingURL=overlays.d.ts.map
@@ -4,6 +4,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
4
4
  md: string;
5
5
  lg: string;
6
6
  xl: string;
7
+ trigger: string;
7
8
  };
8
9
  }, undefined, "bg-content1 rounded border border-default-200", import("tailwind-variants/dist/config.js").TVConfig<{
9
10
  size: {
@@ -11,6 +12,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
11
12
  md: string;
12
13
  lg: string;
13
14
  xl: string;
15
+ trigger: string;
14
16
  };
15
17
  }, {
16
18
  size: {
@@ -18,6 +20,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
18
20
  md: string;
19
21
  lg: string;
20
22
  xl: string;
23
+ trigger: string;
21
24
  };
22
25
  }>, {
23
26
  size: {
@@ -25,6 +28,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
25
28
  md: string;
26
29
  lg: string;
27
30
  xl: string;
31
+ trigger: string;
28
32
  };
29
33
  }, undefined, import("tailwind-variants").TVReturnType<{
30
34
  size: {
@@ -32,6 +36,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
32
36
  md: string;
33
37
  lg: string;
34
38
  xl: string;
39
+ trigger: string;
35
40
  };
36
41
  }, undefined, "bg-content1 rounded border border-default-200", import("tailwind-variants/dist/config.js").TVConfig<{
37
42
  size: {
@@ -39,6 +44,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
39
44
  md: string;
40
45
  lg: string;
41
46
  xl: string;
47
+ trigger: string;
42
48
  };
43
49
  }, {
44
50
  size: {
@@ -46,7 +52,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
46
52
  md: string;
47
53
  lg: string;
48
54
  xl: string;
55
+ trigger: string;
49
56
  };
50
57
  }>, unknown, unknown, undefined>>;
51
58
  export { popover };
52
- //# sourceMappingURL=popover.d.ts.map
@@ -362,4 +362,3 @@ declare const progressBar: import("tailwind-variants").TVReturnType<{
362
362
  };
363
363
  }>, unknown, unknown, undefined>>;
364
364
  export { progressBar };
365
- //# sourceMappingURL=progress-bar.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const focusVisibleRing: string[];
2
+ export declare const focusVisibleWithinRing: string[];
@@ -107,4 +107,3 @@ declare const spinner: import("tailwind-variants").TVReturnType<{
107
107
  }>, unknown, unknown, undefined>>;
108
108
  export type SpinnerVariants = VariantProps<typeof spinner>;
109
109
  export { spinner };
110
- //# sourceMappingURL=spinner.d.ts.map
@@ -8,4 +8,3 @@ export type SlotsToClasses<S extends string> = {
8
8
  [key in S]?: ClassValue;
9
9
  };
10
10
  export { useStyles, registerCustomStyles };
11
- //# sourceMappingURL=index.d.ts.map
@@ -19,4 +19,3 @@ declare const defaultConfig: {
19
19
  };
20
20
  };
21
21
  export { defaultConfig };
22
- //# sourceMappingURL=default-config.d.ts.map
@@ -6,4 +6,3 @@ declare function modalSizes(addComponents: PluginAPI['addComponents'], sizes: {
6
6
  [key: string]: string;
7
7
  }, margin: string): void;
8
8
  export { modalSizes, drawerSizes };
9
- //# sourceMappingURL=overlays.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import type { PluginAPI } from 'tailwindcss/types/config';
2
2
  declare function registerPowerSelectComponents(addComponents: PluginAPI['addComponents'], prefix: string): void;
3
3
  export { registerPowerSelectComponents };
4
- //# sourceMappingURL=power-select.d.ts.map
@@ -19,4 +19,3 @@ declare function resolveConfig(userConfig?: PluginConfig): {
19
19
  prefix: string;
20
20
  };
21
21
  export { resolveThemes, resolveConfig };
22
- //# sourceMappingURL=resolve.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare const safelist: {
2
2
  pattern: RegExp;
3
3
  }[];
4
- //# sourceMappingURL=safelist.d.ts.map
@@ -11,4 +11,3 @@ declare function addTransitions(addComponents: PluginAPI['addComponents'], baseS
11
11
  [key: string]: Transition;
12
12
  }): void;
13
13
  export { addTransitions };
14
- //# sourceMappingURL=transitions.d.ts.map
@@ -4,4 +4,3 @@ export { swapColorValues } from './colors/util';
4
4
  export { safelist } from './plugin/safelist';
5
5
  declare function frontile(config?: PluginConfig): ReturnType<typeof plugin>;
6
6
  export { frontile };
7
- //# sourceMappingURL=plugin.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export default interface Registry {
2
2
  }
3
- //# sourceMappingURL=template-registry.d.ts.map
@@ -2,4 +2,3 @@ import type { ClassValue } from 'tailwind-variants';
2
2
  export { tv } from 'tailwind-variants';
3
3
  export type { VariantProps } from 'tailwind-variants';
4
4
  export declare function twMerge(defaultClass: ClassValue, overwrites: ClassValue): string | undefined;
5
- //# sourceMappingURL=tw.d.ts.map
@@ -27,4 +27,3 @@ export type PluginConfig = {
27
27
  layout?: LayoutTheme;
28
28
  defaultTheme?: DefaultThemeType;
29
29
  };
30
- //# sourceMappingURL=types.d.ts.map
package/dist/colors.js CHANGED
@@ -1,2 +1,2 @@
1
- export { b as blue, g as gray, a as green, r as red, s as semanticColors, y as yellow } from './semantic-Us_bxqq7.js';
1
+ export { b as blue, g as gray, a as green, r as red, s as semanticColors, y as yellow } from './semantic-DUv6Lpqq.js';
2
2
  //# sourceMappingURL=colors.js.map
@@ -32,8 +32,46 @@ function twMerge(defaultClass, overwrites) {
32
32
  return clsx(defaultClass);
33
33
  }
34
34
 
35
+ const avatar = tv({
36
+ slots: {
37
+ base: ['flex', 'relative', 'justify-center', 'items-center', 'box-border', 'overflow-hidden', 'align-middle', 'text-foreground', 'z-0', 'bg-default-200', 'ring-1 ring-default ring-offset-1 ring-offset-background'],
38
+ img: 'size-full',
39
+ 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']
40
+ },
41
+ variants: {
42
+ shape: {
43
+ square: 'rounded-[20%]',
44
+ circle: 'rounded-full'
45
+ },
46
+ size: {
47
+ xs: {
48
+ base: 'size-5 text-xs'
49
+ },
50
+ sm: {
51
+ base: 'size-6 text-sm'
52
+ },
53
+ md: {
54
+ base: 'size-8 text-base'
55
+ },
56
+ lg: {
57
+ base: 'size-10 text-lg'
58
+ },
59
+ xl: {
60
+ base: 'size-12 text-xl'
61
+ }
62
+ }
63
+ },
64
+ defaultVariants: {
65
+ size: 'md',
66
+ shape: 'circle'
67
+ }
68
+ });
69
+
70
+ const focusVisibleRing = ['outline-none', 'focus-visible:z-10', 'focus-visible:ring', 'focus-visible:ring-focus', 'focus-visible:ring-offset-2', 'focus-visible:ring-offset-background'];
71
+ const focusVisibleWithinRing = ['outline-none', 'has-[:focus-visible]:z-10', 'has-[:focus-visible]:ring', 'has-[:focus-visible]:ring-focus', 'has-[:focus-visible]:ring-offset-2', 'has-[:focus-visible]:ring-offset-background'];
72
+
35
73
  const baseButton = tv({
36
- base: ['leading-tight', 'inline-block', 'font-semibold', 'border', 'border-transparent', 'rounded', 'disabled:cursor-not-allowed', 'disabled:opacity-40', 'focus-visible:ring'],
74
+ base: ['leading-tight', 'inline-block', 'font-semibold', 'border', 'border-transparent', 'rounded', 'disabled:cursor-not-allowed', 'disabled:opacity-40', ...focusVisibleRing],
37
75
  variants: {
38
76
  appearance: {
39
77
  outlined: ''
@@ -43,10 +81,10 @@ const baseButton = tv({
43
81
  },
44
82
  intent: {
45
83
  default: '',
46
- primary: '',
47
- success: '',
48
- warning: '',
49
- danger: ''
84
+ primary: 'focus-visible:ring-primary-500',
85
+ success: 'focus-visible:ring-success-500',
86
+ warning: 'focus-visible:ring-warning',
87
+ danger: 'focus-visible:ring-danger'
50
88
  },
51
89
  size: {
52
90
  xs: 'text-sm px-2 py-1',
@@ -229,19 +267,19 @@ const chip = tv({
229
267
  },
230
268
  primary: {
231
269
  dot: 'bg-primary',
232
- closeButton: ['bg-primary-700', 'text-background', 'hover:bg-primary-700/60']
270
+ closeButton: ['bg-primary-700', 'text-background', 'hover:bg-primary-700/60', 'focus-visible:ring-primary-700']
233
271
  },
234
272
  success: {
235
273
  dot: 'bg-success',
236
- closeButton: ['bg-success', 'text-background', 'hover:bg-success/60']
274
+ closeButton: ['bg-success', 'text-background', 'hover:bg-success/60', 'focus-visible:ring-success']
237
275
  },
238
276
  warning: {
239
277
  dot: 'bg-warning',
240
- closeButton: ['bg-warning', 'text-background', 'hover:bg-warning/60']
278
+ closeButton: ['bg-warning', 'text-background', 'hover:bg-warning/60', 'focus-visible:ring-warning']
241
279
  },
242
280
  danger: {
243
281
  dot: 'bg-danger',
244
- closeButton: ['bg-danger', 'text-background', 'hover:bg-danger/60']
282
+ closeButton: ['bg-danger', 'text-background', 'hover:bg-danger/60', 'focus-visible:ring-danger']
245
283
  }
246
284
  },
247
285
  size: {
@@ -439,7 +477,7 @@ const progressBar = tv({
439
477
 
440
478
  const closeButton = tv({
441
479
  slots: {
442
- base: 'rounded-full transition transition-200 focus-visible:ring text-inherit',
480
+ base: ['rounded-full transition transition-200 text-inherit', ...focusVisibleRing],
443
481
  icon: 'size-[1em]'
444
482
  },
445
483
  variants: {
@@ -488,7 +526,7 @@ const listboxItem = tv({
488
526
  shortcut: ['px-1', 'py-0.5', 'rounded', 'font-sans', 'text-foreground-500', 'text-xs', 'border', 'border-default-300', 'group-data-is-active:border-current']
489
527
  },
490
528
  variants: {
491
- appearence: {
529
+ appearance: {
492
530
  default: {
493
531
  base: ''
494
532
  },
@@ -529,129 +567,129 @@ const listboxItem = tv({
529
567
  }
530
568
  },
531
569
  defaultVariants: {
532
- appearence: 'default',
570
+ appearance: 'default',
533
571
  intent: 'default'
534
572
  },
535
573
  compoundVariants: [
536
- // appearence: default
574
+ // appearance: default
537
575
  {
538
- appearence: 'default',
576
+ appearance: 'default',
539
577
  intent: 'default',
540
578
  class: {
541
579
  base: ['data-is-active:bg-default', 'data-is-active:text-default-foreground']
542
580
  }
543
581
  }, {
544
- appearence: 'default',
582
+ appearance: 'default',
545
583
  intent: 'primary',
546
584
  class: {
547
585
  base: ['data-is-active:bg-primary-500', 'data-is-active:text-primary-foreground']
548
586
  }
549
587
  }, {
550
- appearence: 'default',
588
+ appearance: 'default',
551
589
  intent: 'success',
552
590
  class: {
553
591
  base: ['data-is-active:bg-success-500', 'data-is-active:text-success-foreground']
554
592
  }
555
593
  }, {
556
- appearence: 'default',
594
+ appearance: 'default',
557
595
  intent: 'warning',
558
596
  class: {
559
597
  base: ['data-is-active:bg-warning-500', 'data-is-active:text-warning-foreground']
560
598
  }
561
599
  }, {
562
- appearence: 'default',
600
+ appearance: 'default',
563
601
  intent: 'danger',
564
602
  class: {
565
603
  base: ['data-is-active:bg-danger-500', 'data-is-active:text-danger-foreground']
566
604
  }
567
605
  }, {
568
- appearence: 'default',
606
+ appearance: 'default',
569
607
  intent: 'primary',
570
608
  isActive: true,
571
609
  class: {
572
610
  shortcut: ['text-primary-foreground']
573
611
  }
574
612
  }, {
575
- appearence: 'default',
613
+ appearance: 'default',
576
614
  intent: 'success',
577
615
  isActive: true,
578
616
  class: {
579
617
  shortcut: ['text-success-foreground']
580
618
  }
581
619
  }, {
582
- appearence: 'default',
620
+ appearance: 'default',
583
621
  intent: 'warning',
584
622
  isActive: true,
585
623
  class: {
586
624
  shortcut: ['text-warning-foreground']
587
625
  }
588
626
  }, {
589
- appearence: 'default',
627
+ appearance: 'default',
590
628
  intent: 'danger',
591
629
  isActive: true,
592
630
  class: {
593
631
  shortcut: ['text-danger-foreground']
594
632
  }
595
633
  },
596
- // appearence: outlined
634
+ // appearance: outlined
597
635
  {
598
- appearence: 'outlined',
636
+ appearance: 'outlined',
599
637
  intent: 'default',
600
638
  class: {
601
639
  base: ['data-is-active:border-default-700', 'data-is-active:text-default-700']
602
640
  }
603
641
  }, {
604
- appearence: 'outlined',
642
+ appearance: 'outlined',
605
643
  intent: 'primary',
606
644
  class: {
607
645
  base: ['data-is-active:border-primary', 'data-is-active:text-primary']
608
646
  }
609
647
  }, {
610
- appearence: 'outlined',
648
+ appearance: 'outlined',
611
649
  intent: 'success',
612
650
  class: {
613
651
  base: ['data-is-active:border-success', 'data-is-active:text-success']
614
652
  }
615
653
  }, {
616
- appearence: 'outlined',
654
+ appearance: 'outlined',
617
655
  intent: 'warning',
618
656
  class: {
619
657
  base: ['data-is-active:border-warning', 'data-is-active:text-warning']
620
658
  }
621
659
  }, {
622
- appearence: 'outlined',
660
+ appearance: 'outlined',
623
661
  intent: 'danger',
624
662
  class: {
625
663
  base: ['data-is-active:border-danger', 'data-is-active:text-danger']
626
664
  }
627
665
  },
628
- // appearence: faded
666
+ // appearance: faded
629
667
  {
630
- appearence: 'faded',
668
+ appearance: 'faded',
631
669
  intent: 'default',
632
670
  class: {
633
671
  base: ['data-is-active:bg-default-400/20', 'data-is-active:border-default-700', 'data-is-active:text-default-700']
634
672
  }
635
673
  }, {
636
- appearence: 'faded',
674
+ appearance: 'faded',
637
675
  intent: 'primary',
638
676
  class: {
639
677
  base: ['data-is-active:bg-primary-300/20', 'data-is-active:border-primary', 'data-is-active:text-primary']
640
678
  }
641
679
  }, {
642
- appearence: 'faded',
680
+ appearance: 'faded',
643
681
  intent: 'success',
644
682
  class: {
645
683
  base: ['data-is-active:bg-success-300/20', 'data-is-active:border-success', 'data-is-active:text-success']
646
684
  }
647
685
  }, {
648
- appearence: 'faded',
686
+ appearance: 'faded',
649
687
  intent: 'warning',
650
688
  class: {
651
689
  base: ['data-is-active:bg-warning-300/20', 'data-is-active:border-warning', 'data-is-active:text-warning']
652
690
  }
653
691
  }, {
654
- appearence: 'faded',
692
+ appearance: 'faded',
655
693
  intent: 'danger',
656
694
  class: {
657
695
  base: ['data-is-active:bg-danger-300/20', 'data-is-active:border-danger', 'data-is-active:text-danger']
@@ -670,7 +708,8 @@ const popover = tv({
670
708
  sm: 'w-40',
671
709
  md: 'w-64',
672
710
  lg: 'w-96',
673
- xl: 'w-[34rem]'
711
+ xl: 'w-[34rem]',
712
+ trigger: 'w-[var(--trigger-width)]'
674
713
  }
675
714
  },
676
715
  defaultVariants: {
@@ -732,14 +771,14 @@ const notificationsContainer = tv({
732
771
  }
733
772
  });
734
773
 
735
- const btn = 'transition transition-200 focus-visible:ring';
774
+ const btn = ['transition transition-200', ...focusVisibleRing];
736
775
  const notificationCard = tv({
737
776
  slots: {
738
777
  base: 'py-3 px-4 overflow-hidden flex items-center justify-between relative min-h-16 text-sm rounded shadow transition-all transition-200 ease-in-out',
739
778
  message: 'grow',
740
779
  customActions: 'flex flex-nowrap',
741
- customActionButton: btn + ' first:ml-4 last:-mr-2 font-semibold py-1 px-2 rounded',
742
- closeButton: btn + ' inline-block p-2 ml-2 -mr-2 rounded-full'
780
+ customActionButton: [...btn, 'first:ml-4 last:-mr-2 font-semibold py-1 px-2 rounded'],
781
+ closeButton: [...btn, 'inline-block p-2 ml-2 -mr-2 rounded-full']
743
782
  },
744
783
  variants: {
745
784
  appearance: {
@@ -871,7 +910,7 @@ const modal = tv({
871
910
  });
872
911
  const drawer = tv({
873
912
  slots: {
874
- base: 'flex flex-col absolute text-content1-foreground bg-content1 w-full h-full shadow',
913
+ base: 'flex flex-col absolute text-content1-foreground bg-content1 w-full h-full shadow outline-none',
875
914
  closeButton: 'absolute top-2 right-2 dark:hover:bg-content2',
876
915
  header: 'font-bold text-xl p-4 rounded-tl rounded-tr',
877
916
  body: 'p-4 grow overflow-y-auto',
@@ -1177,7 +1216,7 @@ const textarea = tv({
1177
1216
  const checkboxRadioBase = tv({
1178
1217
  slots: {
1179
1218
  base: ['max-w-fit flex items-center justify-start'],
1180
- input: ['appearance-none', 'inline-block', 'align-middle', 'select-none', 'shrink-0', 'h-[1em] w-[1em]', 'text-base', 'text-primary', 'border border-default-400', 'bg-white dark:bg-default-100', 'checked:bg-origin-border checked:border-transparent dark:checked:bg-current checked:bg-current checked:bg-center checked:bg-no-repeat checked:disabled:bg-default-300'],
1219
+ input: ['appearance-none', 'inline-block', 'align-middle', 'select-none', 'shrink-0', 'h-[1em] w-[1em]', 'text-base', 'text-primary', 'border border-default-400', 'bg-white dark:bg-default-100', 'checked:bg-origin-border checked:border-transparent dark:checked:bg-current checked:bg-current checked:bg-center checked:bg-no-repeat checked:disabled:bg-default-300', ...focusVisibleRing],
1181
1220
  labelContainer: ['flex flex-col ml-2'],
1182
1221
  label: 'font-normal pb-0'
1183
1222
  },
@@ -1269,7 +1308,9 @@ const select = tv({
1269
1308
  placeholder: 'text-default-400',
1270
1309
  listbox: 'scroll-py-6 max-h-64',
1271
1310
  icon: 'w-5 h-5',
1272
- clearButton: 'pointer-events-auto'
1311
+ clearButton: 'pointer-events-auto',
1312
+ input: '[&:is(button)]:cursor-default',
1313
+ emptyContent: 'p-2'
1273
1314
  },
1274
1315
  variants: {
1275
1316
  size: {
@@ -1296,6 +1337,70 @@ const nativeSelect = tv({
1296
1337
  }
1297
1338
  }
1298
1339
  });
1340
+ const switchInput = tv({
1341
+ slots: {
1342
+ base: 'group relative max-w-fit inline-flex items-center justify-start',
1343
+ labelContainer: 'flex flex-col ml-2',
1344
+ label: 'font-normal pb-0',
1345
+ wrapper: ['px-1', 'relative', 'inline-flex', 'items-center', 'justify-start', 'flex-shrink-0', 'overflow-hidden', 'bg-default-300', 'rounded-full', 'cursor-pointer touch-none tap-highlight-transparent select-none', 'transition-background', ...focusVisibleWithinRing],
1346
+ 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'],
1347
+ thumb: ['z-10', 'flex', 'items-center', 'justify-center', 'bg-white', 'shadow-small', 'rounded-full', 'origin-right', 'transition-all', 'pointer-events-none', 'text-black'],
1348
+ 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'],
1349
+ endContent: ['z-0 absolute end-1.5 text-default-600', 'opacity-100', 'transition-transform-opacity', 'group-data-[selected=true]:translate-x-3', 'group-data-[selected=true]:opacity-0']
1350
+ },
1351
+ variants: {
1352
+ isDisabled: {
1353
+ true: {
1354
+ wrapper: 'opacity-disabled pointer-events-none'
1355
+ }
1356
+ },
1357
+ size: {
1358
+ sm: {
1359
+ wrapper: 'w-6 h-3 px-[2px]',
1360
+ thumb: ['w-2 h-2 text-xs', 'group-data-[selected=true]:ms-3'],
1361
+ endContent: 'text-xs',
1362
+ startContent: 'text-xs',
1363
+ label: 'text-small'
1364
+ },
1365
+ md: {
1366
+ wrapper: 'w-11 h-6',
1367
+ thumb: ['w-4 h-4 text-sm', 'group-data-[selected=true]:ms-5'],
1368
+ endContent: 'text-sm',
1369
+ startContent: 'text-sm',
1370
+ label: 'text-md'
1371
+ },
1372
+ lg: {
1373
+ wrapper: 'w-12 h-7',
1374
+ thumb: ['w-5 h-5 text-medium', 'group-data-[selected=true]:ms-5'],
1375
+ endContent: 'text-md',
1376
+ startContent: 'text-md',
1377
+ label: 'text-lg'
1378
+ }
1379
+ },
1380
+ intent: {
1381
+ default: {
1382
+ wrapper: ['group-data-[selected=true]:bg-default-400', 'group-data-[selected=true]:text-default-foreground']
1383
+ },
1384
+ primary: {
1385
+ wrapper: ['group-data-[selected=true]:bg-primary', 'group-data-[selected=true]:text-primary-foreground']
1386
+ },
1387
+ success: {
1388
+ wrapper: ['group-data-[selected=true]:bg-success', 'group-data-[selected=true]:text-success-foreground']
1389
+ },
1390
+ warning: {
1391
+ wrapper: ['group-data-[selected=true]:bg-warning', 'group-data-[selected=true]:text-warning-foreground']
1392
+ },
1393
+ danger: {
1394
+ wrapper: ['group-data-[selected=true]:bg-danger', 'data-[selected=true]:text-danger-foreground']
1395
+ }
1396
+ }
1397
+ },
1398
+ defaultVariants: {
1399
+ size: 'md',
1400
+ intent: 'primary',
1401
+ isDisabled: false
1402
+ }
1403
+ });
1299
1404
 
1300
1405
  const base = tv({
1301
1406
  slots: {
@@ -1416,5 +1521,5 @@ const formSelect = tv({
1416
1521
  }
1417
1522
  });
1418
1523
 
1419
- export { notificationTransitions as A, notificationsContainer as B, overlay as C, overlayTransitions as D, popover as E, progressBar as F, radio as G, radioGroup as H, select as I, spinner as J, textarea as K, toggleButton as L, twMerge as M, button as a, backdrop as b, buttonGroup as c, checkbox as d, checkboxGroup as e, chip as f, closeButton as g, divider as h, drawer as i, dropdownContent as j, formCheckbox as k, formCheckboxGroup as l, formDescription as m, formFeedback as n, formInput as o, formRadio as p, formRadioGroup as q, formSelect as r, formTextarea as s, input as t, label as u, listbox as v, listboxItem as w, modal as x, nativeSelect as y, notificationCard as z };
1420
- //# sourceMappingURL=forms-legacy-C8pB0Hf3.js.map
1524
+ 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, textarea as M, toggleButton as N, twMerge as O, 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 };
1525
+ //# sourceMappingURL=forms-legacy-BfjJExaO.js.map