@nextui-org/theme 2.1.9 → 2.1.10

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 (162) hide show
  1. package/dist/{chunk-77O7KLUI.mjs → chunk-362LGETO.mjs} +1 -1
  2. package/dist/{chunk-23KK2ZAZ.mjs → chunk-5GLH2ERS.mjs} +2 -2
  3. package/dist/{chunk-RYOZQSNI.mjs → chunk-6XG3Y4GM.mjs} +12 -7
  4. package/dist/chunk-76A2UI6G.mjs +243 -0
  5. package/dist/chunk-AQDGQGUV.mjs +391 -0
  6. package/dist/{chunk-NAY2XKLY.mjs → chunk-B6QMTIF2.mjs} +1 -1
  7. package/dist/{chunk-LGRQRHJJ.mjs → chunk-BR6V72YY.mjs} +6 -3
  8. package/dist/{chunk-PJV3MWBL.mjs → chunk-C3KZKKPN.mjs} +182 -49
  9. package/dist/{chunk-5VJPQADB.mjs → chunk-CLW3JMFF.mjs} +2 -2
  10. package/dist/{chunk-NW5W5ANO.mjs → chunk-DGMET46Q.mjs} +4 -3
  11. package/dist/{chunk-WBNF66V7.mjs → chunk-F36W5Y6O.mjs} +1 -1
  12. package/dist/{chunk-GNLIYZAQ.mjs → chunk-FUMNSN2H.mjs} +1 -1
  13. package/dist/{chunk-KPK2JQIF.mjs → chunk-G3PB7L4N.mjs} +10 -0
  14. package/dist/{chunk-4DKVPW5Z.mjs → chunk-HBLCAYSX.mjs} +2 -2
  15. package/dist/{chunk-XPLXQDB3.mjs → chunk-HYA3WURA.mjs} +1 -1
  16. package/dist/{chunk-UHF2F2WJ.mjs → chunk-I5E37FAL.mjs} +4 -4
  17. package/dist/{chunk-RPMLQF4Y.mjs → chunk-J6EGGODL.mjs} +5 -5
  18. package/dist/{chunk-XY766PDD.mjs → chunk-J7FVLFSZ.mjs} +1 -1
  19. package/dist/{chunk-GKYVNUGL.mjs → chunk-JMOQB2OS.mjs} +3 -3
  20. package/dist/{chunk-EUS2SEYI.mjs → chunk-JX6O4KJS.mjs} +2 -2
  21. package/dist/{chunk-YSXRNNDV.mjs → chunk-N7N2LONM.mjs} +1 -1
  22. package/dist/{chunk-RHIZZ5XX.mjs → chunk-ODGTGSNM.mjs} +2 -2
  23. package/dist/{chunk-EC4F6RJF.mjs → chunk-PFGLTKGJ.mjs} +1 -1
  24. package/dist/{chunk-FZZINZOQ.mjs → chunk-QF56VSRK.mjs} +23 -6
  25. package/dist/{chunk-YKWIBFFV.mjs → chunk-QWYWYOG6.mjs} +18 -4
  26. package/dist/{chunk-Y32IWEMZ.mjs → chunk-S7W5DQP2.mjs} +3 -3
  27. package/dist/{chunk-F76574GG.mjs → chunk-SCQJ4BM3.mjs} +105 -39
  28. package/dist/{chunk-TIMHSW45.mjs → chunk-TUUOVVH3.mjs} +2 -2
  29. package/dist/{chunk-B55QBA5E.mjs → chunk-VD4MGTVP.mjs} +1 -1
  30. package/dist/{chunk-4JBYJQSP.mjs → chunk-VGHVBXXT.mjs} +1 -1
  31. package/dist/{chunk-WM43BKYH.mjs → chunk-VOTIIGIW.mjs} +3 -3
  32. package/dist/{chunk-O24TFHPZ.mjs → chunk-VPYXYIZ5.mjs} +2 -2
  33. package/dist/{chunk-ADNJ6GPZ.mjs → chunk-VU5TSYMO.mjs} +2 -2
  34. package/dist/{chunk-7MCHEQXT.mjs → chunk-VZI6SR6H.mjs} +4 -1
  35. package/dist/chunk-WBUVHAJX.mjs +37 -0
  36. package/dist/chunk-WHT6K6RC.mjs +58 -0
  37. package/dist/chunk-WNVF6X3M.mjs +171 -0
  38. package/dist/{chunk-EQIZ7W7V.mjs → chunk-WYVG7NY6.mjs} +3 -3
  39. package/dist/{chunk-LQGOKGQV.mjs → chunk-XHQNEGB6.mjs} +1 -1
  40. package/dist/{chunk-T7JNS25F.mjs → chunk-XHQUSKIE.mjs} +10 -1
  41. package/dist/{chunk-MOHT4OBR.mjs → chunk-XNF3KCH7.mjs} +2 -2
  42. package/dist/{chunk-XJU7LDVX.mjs → chunk-Y5WLFHBC.mjs} +74 -9
  43. package/dist/{chunk-XCWQAA5D.mjs → chunk-YRDQW7V4.mjs} +5 -5
  44. package/dist/components/accordion.js +27 -34
  45. package/dist/components/accordion.mjs +3 -3
  46. package/dist/components/autocomplete.d.ts +180 -0
  47. package/dist/components/autocomplete.js +165 -0
  48. package/dist/components/autocomplete.mjs +8 -0
  49. package/dist/components/avatar.js +28 -35
  50. package/dist/components/avatar.mjs +3 -3
  51. package/dist/components/badge.d.ts +7 -7
  52. package/dist/components/badge.js +29 -36
  53. package/dist/components/badge.mjs +3 -3
  54. package/dist/components/breadcrumbs.d.ts +816 -0
  55. package/dist/components/breadcrumbs.js +357 -0
  56. package/dist/components/breadcrumbs.mjs +14 -0
  57. package/dist/components/button.d.ts +7 -7
  58. package/dist/components/button.js +104 -39
  59. package/dist/components/button.mjs +3 -3
  60. package/dist/components/card.js +26 -33
  61. package/dist/components/card.mjs +3 -3
  62. package/dist/components/checkbox.js +25 -32
  63. package/dist/components/checkbox.mjs +3 -3
  64. package/dist/components/chip.js +26 -33
  65. package/dist/components/chip.mjs +3 -3
  66. package/dist/components/circular-progress.js +25 -32
  67. package/dist/components/circular-progress.mjs +2 -2
  68. package/dist/components/code.js +25 -32
  69. package/dist/components/code.mjs +3 -3
  70. package/dist/components/divider.js +25 -32
  71. package/dist/components/divider.mjs +2 -2
  72. package/dist/components/drip.d.ts +29 -3
  73. package/dist/components/drip.js +25 -32
  74. package/dist/components/drip.mjs +2 -2
  75. package/dist/components/dropdown.d.ts +103 -35
  76. package/dist/components/dropdown.js +25 -32
  77. package/dist/components/dropdown.mjs +3 -3
  78. package/dist/components/image.js +25 -32
  79. package/dist/components/image.mjs +2 -2
  80. package/dist/components/index.d.ts +4 -1
  81. package/dist/components/index.js +1189 -208
  82. package/dist/components/index.mjs +62 -48
  83. package/dist/components/input.d.ts +34 -41
  84. package/dist/components/input.js +205 -79
  85. package/dist/components/input.mjs +3 -3
  86. package/dist/components/kbd.js +25 -32
  87. package/dist/components/kbd.mjs +2 -2
  88. package/dist/components/link.js +25 -32
  89. package/dist/components/link.mjs +3 -3
  90. package/dist/components/listbox.d.ts +1 -1
  91. package/dist/components/listbox.js +41 -34
  92. package/dist/components/listbox.mjs +3 -3
  93. package/dist/components/menu.d.ts +119 -40
  94. package/dist/components/menu.js +41 -34
  95. package/dist/components/menu.mjs +3 -3
  96. package/dist/components/modal.js +25 -32
  97. package/dist/components/modal.mjs +3 -3
  98. package/dist/components/navbar.js +29 -33
  99. package/dist/components/navbar.mjs +3 -3
  100. package/dist/components/pagination.js +46 -36
  101. package/dist/components/pagination.mjs +3 -3
  102. package/dist/components/popover.d.ts +136 -132
  103. package/dist/components/popover.js +98 -94
  104. package/dist/components/popover.mjs +3 -3
  105. package/dist/components/progress.js +25 -32
  106. package/dist/components/progress.mjs +2 -2
  107. package/dist/components/radio.js +26 -33
  108. package/dist/components/radio.mjs +3 -3
  109. package/dist/components/scroll-shadow.js +25 -32
  110. package/dist/components/scroll-shadow.mjs +2 -2
  111. package/dist/components/select.d.ts +30 -51
  112. package/dist/components/select.js +128 -69
  113. package/dist/components/select.mjs +3 -3
  114. package/dist/components/skeleton.js +26 -33
  115. package/dist/components/skeleton.mjs +2 -2
  116. package/dist/components/slider.d.ts +1024 -0
  117. package/dist/components/slider.js +504 -0
  118. package/dist/components/slider.mjs +12 -0
  119. package/dist/components/snippet.js +25 -32
  120. package/dist/components/snippet.mjs +3 -3
  121. package/dist/components/spacer.js +25 -32
  122. package/dist/components/spacer.mjs +2 -2
  123. package/dist/components/spinner.js +25 -32
  124. package/dist/components/spinner.mjs +2 -2
  125. package/dist/components/table.js +25 -32
  126. package/dist/components/table.mjs +3 -3
  127. package/dist/components/tabs.js +25 -32
  128. package/dist/components/tabs.mjs +3 -3
  129. package/dist/components/toggle.js +25 -32
  130. package/dist/components/toggle.mjs +3 -3
  131. package/dist/components/user.d.ts +45 -29
  132. package/dist/components/user.js +25 -32
  133. package/dist/components/user.mjs +3 -3
  134. package/dist/default-layout.js +4 -1
  135. package/dist/default-layout.mjs +1 -1
  136. package/dist/index.d.ts +5 -2
  137. package/dist/index.js +1323 -321
  138. package/dist/index.mjs +69 -53
  139. package/dist/plugin.js +24 -5
  140. package/dist/plugin.mjs +6 -6
  141. package/dist/types.d.ts +8 -0
  142. package/dist/utilities/index.d.ts +10 -0
  143. package/dist/utilities/index.js +10 -0
  144. package/dist/utilities/index.mjs +2 -2
  145. package/dist/utilities/transition.d.ts +10 -0
  146. package/dist/utilities/transition.js +10 -0
  147. package/dist/utilities/transition.mjs +1 -1
  148. package/dist/utils/classes.d.ts +13 -1
  149. package/dist/utils/classes.js +10 -0
  150. package/dist/utils/classes.mjs +3 -1
  151. package/dist/utils/index.d.ts +1 -1
  152. package/dist/utils/index.js +10 -0
  153. package/dist/utils/index.mjs +3 -1
  154. package/dist/utils/theme.js +4 -3
  155. package/dist/utils/theme.mjs +1 -1
  156. package/dist/utils/tv.d.ts +2 -2
  157. package/dist/utils/tv.js +25 -32
  158. package/dist/utils/tv.mjs +1 -1
  159. package/package.json +9 -9
  160. package/dist/chunk-6AEINX52.mjs +0 -44
  161. package/dist/chunk-SN5GEHHN.mjs +0 -160
  162. /package/dist/{chunk-RH7YHIQY.mjs → chunk-T6HAGWX5.mjs} +0 -0
@@ -18,7 +18,9 @@ declare const select: tailwind_variants.TVReturnType<{
18
18
  };
19
19
  };
20
20
  color: {
21
- default: {};
21
+ default: {
22
+ value: string[];
23
+ };
22
24
  primary: {};
23
25
  secondary: {};
24
26
  success: {};
@@ -76,11 +78,6 @@ declare const select: tailwind_variants.TVReturnType<{
76
78
  base: string;
77
79
  };
78
80
  };
79
- isLabelPlaceholder: {
80
- true: {
81
- label: string;
82
- };
83
- };
84
81
  isDisabled: {
85
82
  true: {
86
83
  base: string;
@@ -128,16 +125,16 @@ declare const select: tailwind_variants.TVReturnType<{
128
125
  };
129
126
  }, {
130
127
  base: string;
131
- label: string;
128
+ label: string[];
132
129
  mainWrapper: string;
133
130
  trigger: string;
134
131
  innerWrapper: string;
135
132
  selectorIcon: string;
136
133
  spinner: string;
137
- value: string;
134
+ value: string[];
138
135
  listboxWrapper: string;
139
136
  listbox: string;
140
- popover: string;
137
+ popoverContent: string;
141
138
  helperWrapper: string;
142
139
  description: string;
143
140
  errorMessage: string;
@@ -157,7 +154,9 @@ declare const select: tailwind_variants.TVReturnType<{
157
154
  };
158
155
  };
159
156
  color: {
160
- default: {};
157
+ default: {
158
+ value: string[];
159
+ };
161
160
  primary: {};
162
161
  secondary: {};
163
162
  success: {};
@@ -215,11 +214,6 @@ declare const select: tailwind_variants.TVReturnType<{
215
214
  base: string;
216
215
  };
217
216
  };
218
- isLabelPlaceholder: {
219
- true: {
220
- label: string;
221
- };
222
- };
223
217
  isDisabled: {
224
218
  true: {
225
219
  base: string;
@@ -281,7 +275,9 @@ declare const select: tailwind_variants.TVReturnType<{
281
275
  };
282
276
  };
283
277
  color: {
284
- default: {};
278
+ default: {
279
+ value: string[];
280
+ };
285
281
  primary: {};
286
282
  secondary: {};
287
283
  success: {};
@@ -339,11 +335,6 @@ declare const select: tailwind_variants.TVReturnType<{
339
335
  base: string;
340
336
  };
341
337
  };
342
- isLabelPlaceholder: {
343
- true: {
344
- label: string;
345
- };
346
- };
347
338
  isDisabled: {
348
339
  true: {
349
340
  base: string;
@@ -405,7 +396,9 @@ declare const select: tailwind_variants.TVReturnType<{
405
396
  };
406
397
  };
407
398
  color: {
408
- default: {};
399
+ default: {
400
+ value: string[];
401
+ };
409
402
  primary: {};
410
403
  secondary: {};
411
404
  success: {};
@@ -463,11 +456,6 @@ declare const select: tailwind_variants.TVReturnType<{
463
456
  base: string;
464
457
  };
465
458
  };
466
- isLabelPlaceholder: {
467
- true: {
468
- label: string;
469
- };
470
- };
471
459
  isDisabled: {
472
460
  true: {
473
461
  base: string;
@@ -515,16 +503,16 @@ declare const select: tailwind_variants.TVReturnType<{
515
503
  };
516
504
  }, {
517
505
  base: string;
518
- label: string;
506
+ label: string[];
519
507
  mainWrapper: string;
520
508
  trigger: string;
521
509
  innerWrapper: string;
522
510
  selectorIcon: string;
523
511
  spinner: string;
524
- value: string;
512
+ value: string[];
525
513
  listboxWrapper: string;
526
514
  listbox: string;
527
- popover: string;
515
+ popoverContent: string;
528
516
  helperWrapper: string;
529
517
  description: string;
530
518
  errorMessage: string;
@@ -544,7 +532,9 @@ declare const select: tailwind_variants.TVReturnType<{
544
532
  };
545
533
  };
546
534
  color: {
547
- default: {};
535
+ default: {
536
+ value: string[];
537
+ };
548
538
  primary: {};
549
539
  secondary: {};
550
540
  success: {};
@@ -602,11 +592,6 @@ declare const select: tailwind_variants.TVReturnType<{
602
592
  base: string;
603
593
  };
604
594
  };
605
- isLabelPlaceholder: {
606
- true: {
607
- label: string;
608
- };
609
- };
610
595
  isDisabled: {
611
596
  true: {
612
597
  base: string;
@@ -654,16 +639,16 @@ declare const select: tailwind_variants.TVReturnType<{
654
639
  };
655
640
  }, {
656
641
  base: string;
657
- label: string;
642
+ label: string[];
658
643
  mainWrapper: string;
659
644
  trigger: string;
660
645
  innerWrapper: string;
661
646
  selectorIcon: string;
662
647
  spinner: string;
663
- value: string;
648
+ value: string[];
664
649
  listboxWrapper: string;
665
650
  listbox: string;
666
- popover: string;
651
+ popoverContent: string;
667
652
  helperWrapper: string;
668
653
  description: string;
669
654
  errorMessage: string;
@@ -683,7 +668,9 @@ declare const select: tailwind_variants.TVReturnType<{
683
668
  };
684
669
  };
685
670
  color: {
686
- default: {};
671
+ default: {
672
+ value: string[];
673
+ };
687
674
  primary: {};
688
675
  secondary: {};
689
676
  success: {};
@@ -741,11 +728,6 @@ declare const select: tailwind_variants.TVReturnType<{
741
728
  base: string;
742
729
  };
743
730
  };
744
- isLabelPlaceholder: {
745
- true: {
746
- label: string;
747
- };
748
- };
749
731
  isDisabled: {
750
732
  true: {
751
733
  base: string;
@@ -807,7 +789,9 @@ declare const select: tailwind_variants.TVReturnType<{
807
789
  };
808
790
  };
809
791
  color: {
810
- default: {};
792
+ default: {
793
+ value: string[];
794
+ };
811
795
  primary: {};
812
796
  secondary: {};
813
797
  success: {};
@@ -865,11 +849,6 @@ declare const select: tailwind_variants.TVReturnType<{
865
849
  base: string;
866
850
  };
867
851
  };
868
- isLabelPlaceholder: {
869
- true: {
870
- label: string;
871
- };
872
- };
873
852
  isDisabled: {
874
853
  true: {
875
854
  base: string;
@@ -91,54 +91,56 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
91
91
 
92
92
  // src/utils/tv.ts
93
93
  var COMMON_UNITS = ["small", "medium", "large"];
94
- var tv = (options, config) => {
95
- var _a, _b, _c;
96
- return (0, import_tailwind_variants.tv)(options, {
97
- ...config,
98
- twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
99
- twMergeConfig: {
100
- ...config == null ? void 0 : config.twMergeConfig,
101
- theme: {
102
- ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
103
- opacity: ["disabled"],
104
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
105
- borderWidth: COMMON_UNITS,
106
- borderRadius: COMMON_UNITS
107
- },
108
- classGroups: {
109
- ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
110
- shadow: [{ shadow: COMMON_UNITS }],
111
- "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
112
- "bg-image": ["bg-stripe-gradient"],
113
- "min-w": [
114
- {
115
- "min-w": ["unit", ...mappedSpacingScaleKeys]
116
- }
117
- ],
118
- "min-h": [
119
- {
120
- "min-h": ["unit", ...mappedSpacingScaleKeys]
121
- }
122
- ]
123
- }
94
+ var tv = (0, import_tailwind_variants.createTV)({
95
+ twMerge: true,
96
+ twMergeConfig: {
97
+ theme: {
98
+ opacity: ["disabled"],
99
+ spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
100
+ borderWidth: COMMON_UNITS,
101
+ borderRadius: COMMON_UNITS
102
+ },
103
+ classGroups: {
104
+ shadow: [{ shadow: COMMON_UNITS }],
105
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
106
+ "bg-image": ["bg-stripe-gradient"],
107
+ "min-w": [
108
+ {
109
+ "min-w": ["unit", ...mappedSpacingScaleKeys]
110
+ }
111
+ ],
112
+ "min-h": [
113
+ {
114
+ "min-h": ["unit", ...mappedSpacingScaleKeys]
115
+ }
116
+ ]
124
117
  }
125
- });
126
- };
118
+ }
119
+ });
127
120
 
128
121
  // src/components/select.ts
129
122
  var select = tv({
130
123
  slots: {
131
124
  base: "group inline-flex flex-col relative w-full",
132
- label: "block text-small font-medium text-foreground-500 pointer-events-none",
125
+ label: [
126
+ "block",
127
+ "absolute",
128
+ "z-10",
129
+ "origin-top-left",
130
+ "subpixel-antialiased",
131
+ "text-small",
132
+ "text-foreground-500",
133
+ "pointer-events-none"
134
+ ],
133
135
  mainWrapper: "w-full flex flex-col",
134
136
  trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
135
137
  innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.unit-6))] items-center gap-1.5 box-border",
136
138
  selectorIcon: "absolute right-3 w-unit-4 h-unit-4",
137
139
  spinner: "absolute right-3",
138
- value: "font-normal w-full text-left opacity-60 group-data-[filled=true]:opacity-100",
140
+ value: ["font-normal", "w-full", "text-left"],
139
141
  listboxWrapper: "scroll-py-6 max-h-64 w-full",
140
142
  listbox: "",
141
- popover: "w-full p-1 overflow-hidden",
143
+ popoverContent: "w-full p-1 overflow-hidden",
142
144
  helperWrapper: "flex relative flex-col gap-1.5 pt-1 px-1",
143
145
  description: "text-tiny text-foreground-400",
144
146
  errorMessage: "text-tiny text-danger"
@@ -196,7 +198,9 @@ var select = tv({
196
198
  }
197
199
  },
198
200
  color: {
199
- default: {},
201
+ default: {
202
+ value: ["text-foreground-500", "group-data-[has-value=true]:text-foreground"]
203
+ },
200
204
  primary: {},
201
205
  secondary: {},
202
206
  success: {},
@@ -242,7 +246,7 @@ var select = tv({
242
246
  },
243
247
  "outside-left": {
244
248
  base: "flex-row items-center flex-nowrap items-start",
245
- label: "text-foreground pr-2"
249
+ label: "relative text-foreground pr-2"
246
250
  },
247
251
  inside: {
248
252
  label: "text-tiny cursor-pointer",
@@ -254,11 +258,6 @@ var select = tv({
254
258
  base: "w-full"
255
259
  }
256
260
  },
257
- isLabelPlaceholder: {
258
- true: {
259
- label: "absolute z-10"
260
- }
261
- },
262
261
  isDisabled: {
263
262
  true: {
264
263
  base: "opacity-disabled pointer-events-none",
@@ -268,7 +267,7 @@ var select = tv({
268
267
  isInvalid: {
269
268
  true: {
270
269
  label: "!text-danger",
271
- value: "text-danger",
270
+ value: "!text-danger",
272
271
  selectorIcon: "text-danger"
273
272
  }
274
273
  },
@@ -297,9 +296,9 @@ var select = tv({
297
296
  label: [
298
297
  "will-change-auto",
299
298
  "origin-top-left",
300
- "transition-all",
301
299
  "!duration-200",
302
300
  "!ease-out",
301
+ "transition-[transform,color,left,opacity]",
303
302
  "motion-reduce:transition-none"
304
303
  ],
305
304
  selectorIcon: "transition-transform duration-150 ease motion-reduce:transition-none"
@@ -560,6 +559,13 @@ var select = tv({
560
559
  ]
561
560
  }
562
561
  },
562
+ {
563
+ labelPlacement: "inside",
564
+ color: "default",
565
+ class: {
566
+ label: "group-data-[filled=true]:text-foreground-600"
567
+ }
568
+ },
563
569
  {
564
570
  isInvalid: true,
565
571
  variant: "flat",
@@ -608,18 +614,12 @@ var select = tv({
608
614
  }
609
615
  },
610
616
  {
611
- isLabelPlaceholder: true,
612
617
  labelPlacement: ["inside", "outside"],
613
618
  class: {
614
- label: [
615
- "font-normal",
616
- "group-data-[filled=true]:font-medium",
617
- "group-data-[filled=true]:pointer-events-auto"
618
- ]
619
+ label: ["group-data-[filled=true]:pointer-events-auto"]
619
620
  }
620
621
  },
621
622
  {
622
- isLabelPlaceholder: true,
623
623
  labelPlacement: "outside",
624
624
  class: {
625
625
  base: "group relative justify-end",
@@ -635,62 +635,121 @@ var select = tv({
635
635
  }
636
636
  },
637
637
  {
638
- isLabelPlaceholder: true,
638
+ labelPlacement: ["inside"],
639
+ class: {
640
+ label: "group-data-[filled=true]:scale-85"
641
+ }
642
+ },
643
+ {
639
644
  labelPlacement: "inside",
640
645
  size: ["sm", "md"],
641
646
  class: {
642
- label: ["text-small", "group-data-[filled=true]:text-tiny"],
647
+ label: "text-small",
643
648
  input: "pt-4"
644
649
  }
645
650
  },
646
651
  {
647
- isLabelPlaceholder: true,
648
652
  labelPlacement: "inside",
649
653
  size: "sm",
650
654
  class: {
651
- label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_3px)]"],
655
+ label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],
652
656
  innerWrapper: "pt-4"
653
657
  }
654
658
  },
655
659
  {
656
- isLabelPlaceholder: true,
657
660
  labelPlacement: "inside",
658
661
  size: "md",
659
662
  class: {
660
663
  label: [
661
- "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
664
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"
662
665
  ],
663
666
  innerWrapper: "pt-4"
664
667
  }
665
668
  },
666
669
  {
667
- isLabelPlaceholder: true,
668
670
  labelPlacement: "inside",
669
671
  size: "lg",
670
672
  class: {
671
673
  label: [
672
674
  "text-medium",
673
- "group-data-[filled=true]:text-small",
674
- "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_5px)]"
675
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"
675
676
  ],
676
677
  innerWrapper: "pt-5"
677
678
  }
678
679
  },
679
680
  {
680
- isLabelPlaceholder: true,
681
+ labelPlacement: "inside",
682
+ variant: ["faded", "bordered"],
683
+ size: "sm",
684
+ class: {
685
+ label: [
686
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"
687
+ ]
688
+ }
689
+ },
690
+ {
691
+ labelPlacement: "inside",
692
+ variant: ["faded", "bordered"],
693
+ size: "md",
694
+ class: {
695
+ label: [
696
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"
697
+ ]
698
+ }
699
+ },
700
+ {
701
+ labelPlacement: "inside",
702
+ variant: ["faded", "bordered"],
703
+ size: "lg",
704
+ class: {
705
+ label: [
706
+ "text-medium",
707
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"
708
+ ]
709
+ }
710
+ },
711
+ {
712
+ labelPlacement: "inside",
713
+ variant: "underlined",
714
+ size: "sm",
715
+ class: {
716
+ label: ["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]
717
+ }
718
+ },
719
+ {
720
+ labelPlacement: "inside",
721
+ variant: "underlined",
722
+ size: "md",
723
+ class: {
724
+ label: [
725
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"
726
+ ]
727
+ }
728
+ },
729
+ {
730
+ labelPlacement: "inside",
731
+ variant: "underlined",
732
+ size: "lg",
733
+ class: {
734
+ label: [
735
+ "text-medium",
736
+ "group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"
737
+ ]
738
+ }
739
+ },
740
+ {
681
741
  labelPlacement: "outside",
682
742
  size: "sm",
683
743
  class: {
684
744
  label: [
685
745
  "left-2",
686
- "text-small",
687
- "group-data-[filled=true]:text-tiny",
746
+ "text-tiny",
688
747
  "group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
689
- ]
748
+ ],
749
+ base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"
690
750
  }
691
751
  },
692
752
  {
693
- isLabelPlaceholder: true,
694
753
  labelPlacement: "outside",
695
754
  size: "md",
696
755
  class: {
@@ -698,20 +757,20 @@ var select = tv({
698
757
  "left-3",
699
758
  "text-small",
700
759
  "group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
701
- ]
760
+ ],
761
+ base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"
702
762
  }
703
763
  },
704
764
  {
705
- isLabelPlaceholder: true,
706
765
  labelPlacement: "outside",
707
766
  size: "lg",
708
767
  class: {
709
768
  label: [
710
769
  "left-3",
711
770
  "text-medium",
712
- "group-data-[filled=true]:text-small",
713
771
  "group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
714
- ]
772
+ ],
773
+ base: "data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"
715
774
  }
716
775
  }
717
776
  ]
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  select
3
- } from "../chunk-F76574GG.mjs";
3
+ } from "../chunk-SCQJ4BM3.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-2PIR7DFM.mjs";
7
- import "../chunk-6AEINX52.mjs";
8
- import "../chunk-T7JNS25F.mjs";
7
+ import "../chunk-WBUVHAJX.mjs";
8
+ import "../chunk-XHQUSKIE.mjs";
9
9
  import "../chunk-WA5F6AED.mjs";
10
10
  export {
11
11
  select
@@ -82,39 +82,32 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
82
82
 
83
83
  // src/utils/tv.ts
84
84
  var COMMON_UNITS = ["small", "medium", "large"];
85
- var tv = (options, config) => {
86
- var _a, _b, _c;
87
- return (0, import_tailwind_variants.tv)(options, {
88
- ...config,
89
- twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
90
- twMergeConfig: {
91
- ...config == null ? void 0 : config.twMergeConfig,
92
- theme: {
93
- ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
94
- opacity: ["disabled"],
95
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
96
- borderWidth: COMMON_UNITS,
97
- borderRadius: COMMON_UNITS
98
- },
99
- classGroups: {
100
- ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
101
- shadow: [{ shadow: COMMON_UNITS }],
102
- "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
103
- "bg-image": ["bg-stripe-gradient"],
104
- "min-w": [
105
- {
106
- "min-w": ["unit", ...mappedSpacingScaleKeys]
107
- }
108
- ],
109
- "min-h": [
110
- {
111
- "min-h": ["unit", ...mappedSpacingScaleKeys]
112
- }
113
- ]
114
- }
85
+ var tv = (0, import_tailwind_variants.createTV)({
86
+ twMerge: true,
87
+ twMergeConfig: {
88
+ theme: {
89
+ opacity: ["disabled"],
90
+ spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
91
+ borderWidth: COMMON_UNITS,
92
+ borderRadius: COMMON_UNITS
93
+ },
94
+ classGroups: {
95
+ shadow: [{ shadow: COMMON_UNITS }],
96
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
97
+ "bg-image": ["bg-stripe-gradient"],
98
+ "min-w": [
99
+ {
100
+ "min-w": ["unit", ...mappedSpacingScaleKeys]
101
+ }
102
+ ],
103
+ "min-h": [
104
+ {
105
+ "min-h": ["unit", ...mappedSpacingScaleKeys]
106
+ }
107
+ ]
115
108
  }
116
- });
117
- };
109
+ }
110
+ });
118
111
 
119
112
  // src/components/skeleton.ts
120
113
  var skeleton = tv({
@@ -142,7 +135,7 @@ var skeleton = tv({
142
135
  "after:-z-10",
143
136
  "after:bg-content3",
144
137
  "dark:after:bg-content2",
145
- "data-[loaded=true]:bg-transparent",
138
+ "data-[loaded=true]:!bg-transparent",
146
139
  "data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:animate-none",
147
140
  "data-[loaded=true]:after:opacity-0"
148
141
  ],
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  skeleton
3
- } from "../chunk-EUS2SEYI.mjs";
4
- import "../chunk-6AEINX52.mjs";
3
+ } from "../chunk-JX6O4KJS.mjs";
4
+ import "../chunk-WBUVHAJX.mjs";
5
5
  import "../chunk-WA5F6AED.mjs";
6
6
  export {
7
7
  skeleton