@nextui-org/theme 2.1.18 → 2.2.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 (166) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-XY766PDD.mjs → chunk-3FZU25GR.mjs} +2 -1
  3. package/dist/{chunk-CVU6I4IJ.mjs → chunk-4ZM6AI3H.mjs} +1 -1
  4. package/dist/{chunk-LQGOKGQV.mjs → chunk-524WVPFR.mjs} +1 -1
  5. package/dist/{chunk-RJKUWMDJ.mjs → chunk-6XJJCV76.mjs} +1 -1
  6. package/dist/{chunk-S7W5DQP2.mjs → chunk-726LN7M3.mjs} +1 -1
  7. package/dist/{chunk-PXVLYT7W.mjs → chunk-7ELFOVMX.mjs} +1 -1
  8. package/dist/{chunk-WODEC7EF.mjs → chunk-7ODIBITJ.mjs} +6 -6
  9. package/dist/chunk-7TJINK3S.mjs +390 -0
  10. package/dist/{chunk-NVOA7VPK.mjs → chunk-AC6F4DT6.mjs} +4 -4
  11. package/dist/{chunk-GNLIYZAQ.mjs → chunk-AGUZRGXC.mjs} +1 -1
  12. package/dist/{chunk-U4EMZ2CQ.mjs → chunk-AO2AAOEJ.mjs} +2 -2
  13. package/dist/{chunk-3BNHFA72.mjs → chunk-AT4OXKKK.mjs} +1 -1
  14. package/dist/{chunk-5EJVI4V3.mjs → chunk-CTY7IP65.mjs} +29 -13
  15. package/dist/{chunk-DXTDUHS5.mjs → chunk-CUUGEIPA.mjs} +1 -1
  16. package/dist/chunk-D2XMP2NC.mjs +6 -0
  17. package/dist/{chunk-4JBYJQSP.mjs → chunk-ECP4S2VZ.mjs} +1 -1
  18. package/dist/{chunk-B55QBA5E.mjs → chunk-FRI2VDCA.mjs} +1 -1
  19. package/dist/{chunk-6AEINX52.mjs → chunk-GMMETTYU.mjs} +2 -16
  20. package/dist/{chunk-Y5VJSYKV.mjs → chunk-GMUSZ3YF.mjs} +1 -1
  21. package/dist/{chunk-FHNC7F3W.mjs → chunk-HGSHFC5N.mjs} +7 -1
  22. package/dist/{chunk-G3PB7L4N.mjs → chunk-HPFX3B3F.mjs} +1 -30
  23. package/dist/{chunk-VZI6SR6H.mjs → chunk-HUBDRSA4.mjs} +1 -2
  24. package/dist/{chunk-33DU6C7I.mjs → chunk-I6ESTKKY.mjs} +9 -9
  25. package/dist/{chunk-EGP3AT4R.mjs → chunk-IP3D7KVB.mjs} +3 -1
  26. package/dist/{chunk-Q3TEEYQJ.mjs → chunk-JQTFOIV7.mjs} +1 -1
  27. package/dist/{chunk-JBHEJMGV.mjs → chunk-KCOC3H6R.mjs} +1 -1
  28. package/dist/{chunk-ZWJMJMVY.mjs → chunk-KVPPQD2E.mjs} +27 -5
  29. package/dist/{chunk-WBNF66V7.mjs → chunk-LDBYFTHC.mjs} +1 -1
  30. package/dist/{chunk-GOHT67J3.mjs → chunk-MUWHEIW6.mjs} +13 -6
  31. package/dist/{chunk-2SNOAR5H.mjs → chunk-NAUU2OUH.mjs} +1 -1
  32. package/dist/chunk-NPDZ7OMC.mjs +401 -0
  33. package/dist/{chunk-QYW2VWAB.mjs → chunk-NYSEAAK5.mjs} +4 -4
  34. package/dist/{chunk-LENRVMCD.mjs → chunk-OQIS4MXV.mjs} +1 -1
  35. package/dist/{chunk-NAY2XKLY.mjs → chunk-PSEUPXFL.mjs} +1 -1
  36. package/dist/{chunk-SPRRISBY.mjs → chunk-RNAP5C4C.mjs} +1 -1
  37. package/dist/{chunk-L37EV5TN.mjs → chunk-S573WUYY.mjs} +1 -1
  38. package/dist/{chunk-777XXWYS.mjs → chunk-SEKJ6A6T.mjs} +19 -2
  39. package/dist/{chunk-YSXRNNDV.mjs → chunk-UODOTC2G.mjs} +1 -1
  40. package/dist/{chunk-77O7KLUI.mjs → chunk-V5ZTBGGO.mjs} +1 -1
  41. package/dist/{chunk-MUPUMXL7.mjs → chunk-VDRJHB4F.mjs} +7 -4
  42. package/dist/chunk-VJTX4YUQ.mjs +31 -0
  43. package/dist/{chunk-EC4F6RJF.mjs → chunk-W6DVXJB3.mjs} +1 -1
  44. package/dist/{chunk-XPLXQDB3.mjs → chunk-WAAJG22Y.mjs} +1 -1
  45. package/dist/chunk-WBQAMGXK.mjs +0 -0
  46. package/dist/{chunk-TDMF44G6.mjs → chunk-X7N3NQ6S.mjs} +1 -1
  47. package/dist/{chunk-5QVKTCUZ.mjs → chunk-YSA7EQBH.mjs} +12 -47
  48. package/dist/components/accordion.js +2 -67
  49. package/dist/components/accordion.mjs +2 -3
  50. package/dist/components/autocomplete.js +2 -67
  51. package/dist/components/autocomplete.mjs +2 -3
  52. package/dist/components/avatar.d.ts +14 -4
  53. package/dist/components/avatar.js +8 -70
  54. package/dist/components/avatar.mjs +2 -3
  55. package/dist/components/badge.js +2 -67
  56. package/dist/components/badge.mjs +2 -3
  57. package/dist/components/breadcrumbs.js +2 -67
  58. package/dist/components/breadcrumbs.mjs +2 -3
  59. package/dist/components/button.d.ts +35 -35
  60. package/dist/components/button.js +10 -75
  61. package/dist/components/button.mjs +2 -3
  62. package/dist/components/calendar.d.ts +495 -0
  63. package/dist/components/calendar.js +456 -0
  64. package/dist/components/calendar.mjs +11 -0
  65. package/dist/components/card.js +2 -67
  66. package/dist/components/card.mjs +2 -3
  67. package/dist/components/checkbox.js +5 -70
  68. package/dist/components/checkbox.mjs +2 -3
  69. package/dist/components/chip.js +5 -70
  70. package/dist/components/chip.mjs +2 -3
  71. package/dist/components/circular-progress.js +2 -67
  72. package/dist/components/circular-progress.mjs +2 -3
  73. package/dist/components/code.js +2 -67
  74. package/dist/components/code.mjs +2 -3
  75. package/dist/components/date-input.d.ts +815 -0
  76. package/dist/components/date-input.js +439 -0
  77. package/dist/components/date-input.mjs +7 -0
  78. package/dist/components/date-picker.d.ts +325 -0
  79. package/dist/components/date-picker.js +81 -0
  80. package/dist/components/date-picker.mjs +9 -0
  81. package/dist/components/divider.js +2 -67
  82. package/dist/components/divider.mjs +2 -3
  83. package/dist/components/drip.d.ts +2 -32
  84. package/dist/components/drip.js +2 -67
  85. package/dist/components/drip.mjs +2 -3
  86. package/dist/components/dropdown.d.ts +4 -64
  87. package/dist/components/dropdown.js +2 -67
  88. package/dist/components/dropdown.mjs +2 -3
  89. package/dist/components/image.js +2 -67
  90. package/dist/components/image.mjs +2 -3
  91. package/dist/components/index.d.ts +4 -1
  92. package/dist/components/index.js +926 -112
  93. package/dist/components/index.mjs +72 -59
  94. package/dist/components/input.js +14 -72
  95. package/dist/components/input.mjs +2 -3
  96. package/dist/components/kbd.js +3 -67
  97. package/dist/components/kbd.mjs +2 -3
  98. package/dist/components/link.js +2 -67
  99. package/dist/components/link.mjs +2 -3
  100. package/dist/components/listbox.js +2 -67
  101. package/dist/components/listbox.mjs +2 -3
  102. package/dist/components/menu.d.ts +2 -2
  103. package/dist/components/menu.js +2 -67
  104. package/dist/components/menu.mjs +2 -3
  105. package/dist/components/modal.js +4 -67
  106. package/dist/components/modal.mjs +2 -3
  107. package/dist/components/navbar.js +2 -67
  108. package/dist/components/navbar.mjs +2 -3
  109. package/dist/components/pagination.js +2 -67
  110. package/dist/components/pagination.mjs +2 -3
  111. package/dist/components/popover.d.ts +42 -0
  112. package/dist/components/popover.js +8 -67
  113. package/dist/components/popover.mjs +2 -3
  114. package/dist/components/progress.js +2 -67
  115. package/dist/components/progress.mjs +2 -3
  116. package/dist/components/radio.js +2 -67
  117. package/dist/components/radio.mjs +2 -3
  118. package/dist/components/scroll-shadow.js +2 -67
  119. package/dist/components/scroll-shadow.mjs +2 -3
  120. package/dist/components/select.js +30 -79
  121. package/dist/components/select.mjs +2 -3
  122. package/dist/components/skeleton.js +3 -68
  123. package/dist/components/skeleton.mjs +2 -3
  124. package/dist/components/slider.js +2 -67
  125. package/dist/components/slider.mjs +2 -3
  126. package/dist/components/snippet.js +2 -67
  127. package/dist/components/snippet.mjs +2 -3
  128. package/dist/components/spacer.js +2 -67
  129. package/dist/components/spacer.mjs +2 -3
  130. package/dist/components/spinner.js +2 -67
  131. package/dist/components/spinner.mjs +2 -3
  132. package/dist/components/table.js +28 -71
  133. package/dist/components/table.mjs +2 -3
  134. package/dist/components/tabs.d.ts +115 -0
  135. package/dist/components/tabs.js +20 -68
  136. package/dist/components/tabs.mjs +2 -3
  137. package/dist/components/toggle.js +7 -72
  138. package/dist/components/toggle.mjs +2 -3
  139. package/dist/components/user.d.ts +1 -1
  140. package/dist/components/user.js +2 -67
  141. package/dist/components/user.mjs +2 -3
  142. package/dist/default-layout.js +1 -2
  143. package/dist/default-layout.mjs +1 -1
  144. package/dist/index.d.ts +5 -2
  145. package/dist/index.js +1122 -430
  146. package/dist/index.mjs +78 -69
  147. package/dist/plugin.js +6 -177
  148. package/dist/plugin.mjs +5 -6
  149. package/dist/types.d.ts +1 -11
  150. package/dist/types.js +0 -64
  151. package/dist/types.mjs +1 -8
  152. package/dist/utilities/index.d.ts +0 -30
  153. package/dist/utilities/index.js +0 -30
  154. package/dist/utilities/index.mjs +2 -2
  155. package/dist/utilities/transition.d.ts +2 -31
  156. package/dist/utilities/transition.js +4 -31
  157. package/dist/utilities/transition.mjs +3 -1
  158. package/dist/utils/theme.d.ts +1 -3
  159. package/dist/utils/theme.js +0 -110
  160. package/dist/utils/theme.mjs +1 -6
  161. package/dist/utils/tv.js +2 -67
  162. package/dist/utils/tv.mjs +1 -2
  163. package/package.json +4 -4
  164. package/dist/chunk-DGMET46Q.mjs +0 -63
  165. package/dist/chunk-WA5F6AED.mjs +0 -57
  166. /package/dist/{chunk-T6HAGWX5.mjs → chunk-UVXYPGDZ.mjs} +0 -0
@@ -106,6 +106,22 @@ declare const tabs: tailwind_variants.TVReturnType<{
106
106
  tabContent: string;
107
107
  };
108
108
  };
109
+ placement: {
110
+ top: {};
111
+ start: {
112
+ tabList: string;
113
+ panel: string;
114
+ wrapper: string;
115
+ };
116
+ end: {
117
+ tabList: string;
118
+ panel: string;
119
+ wrapper: string;
120
+ };
121
+ bottom: {
122
+ wrapper: string;
123
+ };
124
+ };
109
125
  }, {
110
126
  base: string;
111
127
  tabList: string[];
@@ -113,6 +129,7 @@ declare const tabs: tailwind_variants.TVReturnType<{
113
129
  tabContent: string[];
114
130
  cursor: string[];
115
131
  panel: string[];
132
+ wrapper: never[];
116
133
  }, undefined, tailwind_variants_dist_config.TVConfig<{
117
134
  variant: {
118
135
  solid: {
@@ -200,6 +217,22 @@ declare const tabs: tailwind_variants.TVReturnType<{
200
217
  tabContent: string;
201
218
  };
202
219
  };
220
+ placement: {
221
+ top: {};
222
+ start: {
223
+ tabList: string;
224
+ panel: string;
225
+ wrapper: string;
226
+ };
227
+ end: {
228
+ tabList: string;
229
+ panel: string;
230
+ wrapper: string;
231
+ };
232
+ bottom: {
233
+ wrapper: string;
234
+ };
235
+ };
203
236
  }, {
204
237
  variant: {
205
238
  solid: {
@@ -287,6 +320,22 @@ declare const tabs: tailwind_variants.TVReturnType<{
287
320
  tabContent: string;
288
321
  };
289
322
  };
323
+ placement: {
324
+ top: {};
325
+ start: {
326
+ tabList: string;
327
+ panel: string;
328
+ wrapper: string;
329
+ };
330
+ end: {
331
+ tabList: string;
332
+ panel: string;
333
+ wrapper: string;
334
+ };
335
+ bottom: {
336
+ wrapper: string;
337
+ };
338
+ };
290
339
  }>, {
291
340
  variant: {
292
341
  solid: {
@@ -374,6 +423,22 @@ declare const tabs: tailwind_variants.TVReturnType<{
374
423
  tabContent: string;
375
424
  };
376
425
  };
426
+ placement: {
427
+ top: {};
428
+ start: {
429
+ tabList: string;
430
+ panel: string;
431
+ wrapper: string;
432
+ };
433
+ end: {
434
+ tabList: string;
435
+ panel: string;
436
+ wrapper: string;
437
+ };
438
+ bottom: {
439
+ wrapper: string;
440
+ };
441
+ };
377
442
  }, {
378
443
  base: string;
379
444
  tabList: string[];
@@ -381,6 +446,7 @@ declare const tabs: tailwind_variants.TVReturnType<{
381
446
  tabContent: string[];
382
447
  cursor: string[];
383
448
  panel: string[];
449
+ wrapper: never[];
384
450
  }, tailwind_variants.TVReturnType<{
385
451
  variant: {
386
452
  solid: {
@@ -468,6 +534,22 @@ declare const tabs: tailwind_variants.TVReturnType<{
468
534
  tabContent: string;
469
535
  };
470
536
  };
537
+ placement: {
538
+ top: {};
539
+ start: {
540
+ tabList: string;
541
+ panel: string;
542
+ wrapper: string;
543
+ };
544
+ end: {
545
+ tabList: string;
546
+ panel: string;
547
+ wrapper: string;
548
+ };
549
+ bottom: {
550
+ wrapper: string;
551
+ };
552
+ };
471
553
  }, {
472
554
  base: string;
473
555
  tabList: string[];
@@ -475,6 +557,7 @@ declare const tabs: tailwind_variants.TVReturnType<{
475
557
  tabContent: string[];
476
558
  cursor: string[];
477
559
  panel: string[];
560
+ wrapper: never[];
478
561
  }, undefined, tailwind_variants_dist_config.TVConfig<{
479
562
  variant: {
480
563
  solid: {
@@ -562,6 +645,22 @@ declare const tabs: tailwind_variants.TVReturnType<{
562
645
  tabContent: string;
563
646
  };
564
647
  };
648
+ placement: {
649
+ top: {};
650
+ start: {
651
+ tabList: string;
652
+ panel: string;
653
+ wrapper: string;
654
+ };
655
+ end: {
656
+ tabList: string;
657
+ panel: string;
658
+ wrapper: string;
659
+ };
660
+ bottom: {
661
+ wrapper: string;
662
+ };
663
+ };
565
664
  }, {
566
665
  variant: {
567
666
  solid: {
@@ -649,6 +748,22 @@ declare const tabs: tailwind_variants.TVReturnType<{
649
748
  tabContent: string;
650
749
  };
651
750
  };
751
+ placement: {
752
+ top: {};
753
+ start: {
754
+ tabList: string;
755
+ panel: string;
756
+ wrapper: string;
757
+ };
758
+ end: {
759
+ tabList: string;
760
+ panel: string;
761
+ wrapper: string;
762
+ };
763
+ bottom: {
764
+ wrapper: string;
765
+ };
766
+ };
652
767
  }>, unknown, unknown, undefined>>;
653
768
  type TabsVariantProps = VariantProps<typeof tabs>;
654
769
  type TabsSlots = keyof ReturnType<typeof tabs>;
@@ -26,61 +26,6 @@ module.exports = __toCommonJS(tabs_exports);
26
26
 
27
27
  // src/utils/tv.ts
28
28
  var import_tailwind_variants = require("tailwind-variants");
29
-
30
- // src/types.ts
31
- var spacingScaleKeys = [
32
- "0",
33
- "xs",
34
- "sm",
35
- "md",
36
- "lg",
37
- "xl",
38
- "2xl",
39
- "3xl",
40
- "4xl",
41
- "5xl",
42
- "6xl",
43
- "7xl",
44
- "8xl",
45
- "9xl",
46
- "1",
47
- "2",
48
- "3",
49
- "3.5",
50
- "4",
51
- "5",
52
- "6",
53
- "7",
54
- "8",
55
- "9",
56
- "10",
57
- "11",
58
- "12",
59
- "13",
60
- "14",
61
- "15",
62
- "16",
63
- "17",
64
- "18",
65
- "20",
66
- "24",
67
- "28",
68
- "32",
69
- "36",
70
- "40",
71
- "44",
72
- "48",
73
- "52",
74
- "56",
75
- "60",
76
- "64",
77
- "72",
78
- "80",
79
- "96"
80
- ];
81
- var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
82
-
83
- // src/utils/tv.ts
84
29
  var COMMON_UNITS = ["small", "medium", "large"];
85
30
  var tv = (options, config) => {
86
31
  var _a, _b, _c;
@@ -92,7 +37,7 @@ var tv = (options, config) => {
92
37
  theme: {
93
38
  ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
94
39
  opacity: ["disabled"],
95
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
40
+ spacing: ["divider"],
96
41
  borderWidth: COMMON_UNITS,
97
42
  borderRadius: COMMON_UNITS
98
43
  },
@@ -100,17 +45,7 @@ var tv = (options, config) => {
100
45
  ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
101
46
  shadow: [{ shadow: COMMON_UNITS }],
102
47
  "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
- ]
48
+ "bg-image": ["bg-stripe-gradient"]
114
49
  }
115
50
  }
116
51
  });
@@ -248,7 +183,8 @@ var tabs = tv({
248
183
  "px-1",
249
184
  "outline-none",
250
185
  ...dataFocusVisibleClasses
251
- ]
186
+ ],
187
+ wrapper: []
252
188
  },
253
189
  variants: {
254
190
  variant: {
@@ -336,6 +272,22 @@ var tabs = tv({
336
272
  tab: "transition-none",
337
273
  tabContent: "transition-none"
338
274
  }
275
+ },
276
+ placement: {
277
+ top: {},
278
+ start: {
279
+ tabList: "flex-col",
280
+ panel: "py-0 px-3",
281
+ wrapper: "flex"
282
+ },
283
+ end: {
284
+ tabList: "flex-col",
285
+ panel: "py-0 px-3",
286
+ wrapper: "flex flex-row-reverse"
287
+ },
288
+ bottom: {
289
+ wrapper: "flex flex-col-reverse"
290
+ }
339
291
  }
340
292
  },
341
293
  defaultVariants: {
@@ -1,12 +1,11 @@
1
1
  import {
2
2
  tabs
3
- } from "../chunk-777XXWYS.mjs";
3
+ } from "../chunk-SEKJ6A6T.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-2PIR7DFM.mjs";
7
- import "../chunk-6AEINX52.mjs";
7
+ import "../chunk-GMMETTYU.mjs";
8
8
  import "../chunk-XHQUSKIE.mjs";
9
- import "../chunk-WA5F6AED.mjs";
10
9
  export {
11
10
  tabs
12
11
  };
@@ -26,61 +26,6 @@ module.exports = __toCommonJS(toggle_exports);
26
26
 
27
27
  // src/utils/tv.ts
28
28
  var import_tailwind_variants = require("tailwind-variants");
29
-
30
- // src/types.ts
31
- var spacingScaleKeys = [
32
- "0",
33
- "xs",
34
- "sm",
35
- "md",
36
- "lg",
37
- "xl",
38
- "2xl",
39
- "3xl",
40
- "4xl",
41
- "5xl",
42
- "6xl",
43
- "7xl",
44
- "8xl",
45
- "9xl",
46
- "1",
47
- "2",
48
- "3",
49
- "3.5",
50
- "4",
51
- "5",
52
- "6",
53
- "7",
54
- "8",
55
- "9",
56
- "10",
57
- "11",
58
- "12",
59
- "13",
60
- "14",
61
- "15",
62
- "16",
63
- "17",
64
- "18",
65
- "20",
66
- "24",
67
- "28",
68
- "32",
69
- "36",
70
- "40",
71
- "44",
72
- "48",
73
- "52",
74
- "56",
75
- "60",
76
- "64",
77
- "72",
78
- "80",
79
- "96"
80
- ];
81
- var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
82
-
83
- // src/utils/tv.ts
84
29
  var COMMON_UNITS = ["small", "medium", "large"];
85
30
  var tv = (options, config) => {
86
31
  var _a, _b, _c;
@@ -92,7 +37,7 @@ var tv = (options, config) => {
92
37
  theme: {
93
38
  ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
94
39
  opacity: ["disabled"],
95
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
40
+ spacing: ["divider"],
96
41
  borderWidth: COMMON_UNITS,
97
42
  borderRadius: COMMON_UNITS
98
43
  },
@@ -100,17 +45,7 @@ var tv = (options, config) => {
100
45
  ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
101
46
  shadow: [{ shadow: COMMON_UNITS }],
102
47
  "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
- ]
48
+ "bg-image": ["bg-stripe-gradient"]
114
49
  }
115
50
  }
116
51
  });
@@ -152,8 +87,8 @@ var toggle = tv({
152
87
  "rounded-full",
153
88
  "origin-right"
154
89
  ],
155
- startContent: "z-0 absolute left-1.5 text-current",
156
- endContent: "z-0 absolute right-1.5 text-default-600",
90
+ startContent: "z-0 absolute left-1.5 rtl:right-1.5 rtl:left-[unset] text-current",
91
+ endContent: "z-0 absolute right-1.5 rtl:left-1.5 rtl:right-[unset] text-default-600",
157
92
  thumbIcon: "text-black",
158
93
  label: "relative text-foreground select-none"
159
94
  },
@@ -198,7 +133,7 @@ var toggle = tv({
198
133
  },
199
134
  size: {
200
135
  sm: {
201
- wrapper: "w-10 h-6 mr-2",
136
+ wrapper: "w-10 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]",
202
137
  thumb: [
203
138
  "w-4 h-4 text-tiny",
204
139
  "group-data-[selected=true]:ml-4 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-4"
@@ -208,7 +143,7 @@ var toggle = tv({
208
143
  label: "text-small"
209
144
  },
210
145
  md: {
211
- wrapper: "w-12 h-7 mr-2",
146
+ wrapper: "w-12 h-7 mr-2 rtl:ml-2 rtl:mr-[unset]",
212
147
  thumb: [
213
148
  "w-5 h-5 text-small",
214
149
  "group-data-[selected=true]:ml-5 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-5"
@@ -218,7 +153,7 @@ var toggle = tv({
218
153
  label: "text-medium"
219
154
  },
220
155
  lg: {
221
- wrapper: "w-14 h-8 mr-2",
156
+ wrapper: "w-14 h-8 mr-2 rtl:ml-2 rtl:mr-[unset]",
222
157
  thumb: [
223
158
  "w-6 h-6 text-medium",
224
159
  "group-data-[selected=true]:ml-6 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-6"
@@ -1,12 +1,11 @@
1
1
  import {
2
2
  toggle
3
- } from "../chunk-WODEC7EF.mjs";
3
+ } from "../chunk-7ODIBITJ.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-2PIR7DFM.mjs";
7
- import "../chunk-6AEINX52.mjs";
7
+ import "../chunk-GMMETTYU.mjs";
8
8
  import "../chunk-XHQUSKIE.mjs";
9
- import "../chunk-WA5F6AED.mjs";
10
9
  export {
11
10
  toggle
12
11
  };
@@ -32,7 +32,7 @@ declare const user: tailwind_variants.TVReturnType<{
32
32
  name?: tailwind_variants.ClassValue;
33
33
  wrapper?: tailwind_variants.ClassValue;
34
34
  };
35
- } | undefined;
35
+ };
36
36
  } | {}, {
37
37
  base: string[];
38
38
  wrapper: string;
@@ -26,61 +26,6 @@ module.exports = __toCommonJS(user_exports);
26
26
 
27
27
  // src/utils/tv.ts
28
28
  var import_tailwind_variants = require("tailwind-variants");
29
-
30
- // src/types.ts
31
- var spacingScaleKeys = [
32
- "0",
33
- "xs",
34
- "sm",
35
- "md",
36
- "lg",
37
- "xl",
38
- "2xl",
39
- "3xl",
40
- "4xl",
41
- "5xl",
42
- "6xl",
43
- "7xl",
44
- "8xl",
45
- "9xl",
46
- "1",
47
- "2",
48
- "3",
49
- "3.5",
50
- "4",
51
- "5",
52
- "6",
53
- "7",
54
- "8",
55
- "9",
56
- "10",
57
- "11",
58
- "12",
59
- "13",
60
- "14",
61
- "15",
62
- "16",
63
- "17",
64
- "18",
65
- "20",
66
- "24",
67
- "28",
68
- "32",
69
- "36",
70
- "40",
71
- "44",
72
- "48",
73
- "52",
74
- "56",
75
- "60",
76
- "64",
77
- "72",
78
- "80",
79
- "96"
80
- ];
81
- var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
82
-
83
- // src/utils/tv.ts
84
29
  var COMMON_UNITS = ["small", "medium", "large"];
85
30
  var tv = (options, config) => {
86
31
  var _a, _b, _c;
@@ -92,7 +37,7 @@ var tv = (options, config) => {
92
37
  theme: {
93
38
  ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
94
39
  opacity: ["disabled"],
95
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
40
+ spacing: ["divider"],
96
41
  borderWidth: COMMON_UNITS,
97
42
  borderRadius: COMMON_UNITS
98
43
  },
@@ -100,17 +45,7 @@ var tv = (options, config) => {
100
45
  ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
101
46
  shadow: [{ shadow: COMMON_UNITS }],
102
47
  "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
- ]
48
+ "bg-image": ["bg-stripe-gradient"]
114
49
  }
115
50
  }
116
51
  });
@@ -1,12 +1,11 @@
1
1
  import {
2
2
  user
3
- } from "../chunk-2SNOAR5H.mjs";
3
+ } from "../chunk-NAUU2OUH.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-2PIR7DFM.mjs";
7
- import "../chunk-6AEINX52.mjs";
7
+ import "../chunk-GMMETTYU.mjs";
8
8
  import "../chunk-XHQUSKIE.mjs";
9
- import "../chunk-WA5F6AED.mjs";
10
9
  export {
11
10
  user
12
11
  };
@@ -26,9 +26,8 @@ __export(default_layout_exports, {
26
26
  });
27
27
  module.exports = __toCommonJS(default_layout_exports);
28
28
  var defaultLayout = {
29
- spacingUnit: 4,
30
- disabledOpacity: ".5",
31
29
  dividerWeight: "1px",
30
+ disabledOpacity: ".5",
32
31
  fontSize: {
33
32
  tiny: "0.75rem",
34
33
  small: "0.875rem",
@@ -2,7 +2,7 @@ import {
2
2
  darkLayout,
3
3
  defaultLayout,
4
4
  lightLayout
5
- } from "./chunk-VZI6SR6H.mjs";
5
+ } from "./chunk-HUBDRSA4.mjs";
6
6
  export {
7
7
  darkLayout,
8
8
  defaultLayout,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { AvatarGroupVariantProps, AvatarSlots, AvatarVariantProps, avatar, avatarGroup } from './components/avatar.js';
1
+ export { AvatarGroupSlots, AvatarGroupVariantProps, AvatarSlots, AvatarVariantProps, avatar, avatarGroup } from './components/avatar.js';
2
2
  export { CardReturnType, CardSlots, CardVariantProps, card } from './components/card.js';
3
3
  export { LinkVariantProps, link, linkAnchorClasses } from './components/link.js';
4
4
  export { UserSlots, user } from './components/user.js';
@@ -34,12 +34,15 @@ export { ScrollShadowVariantProps, scrollShadow } from './components/scroll-shad
34
34
  export { SliderSlots, SliderVariantProps, slider } from './components/slider.js';
35
35
  export { BreadcrumbItemSlots, BreadcrumbItemVariantProps, BreadcrumbsSlots, BreadcrumbsVariantProps, breadcrumbItem, breadcrumbs } from './components/breadcrumbs.js';
36
36
  export { AutocompleteSlots, AutocompleteVariantProps, autocomplete } from './components/autocomplete.js';
37
+ export { CalendarReturnType, CalendarSlots, CalendarVariantProps, calendar } from './components/calendar.js';
38
+ export { DateInputReturnType, DateInputSlots, DateInputVariantProps, dateInput } from './components/date-input.js';
39
+ export { DatePickerReturnType, DatePickerSlots, DatePickerVariantProps, DateRangePickerReturnType, DateRangePickerSlots, DateRangePickerVariantProps, datePicker, dateRangePicker } from './components/date-picker.js';
37
40
  export { absoluteFullClasses, baseStyles, collapseAdjacentVariantBorders, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, ringClasses, translateCenterClasses } from './utils/classes.js';
38
41
  export { SlotsToClasses } from './utils/types.js';
39
42
  export { colorVariants } from './utils/variants.js';
40
43
  export { colors } from './colors/index.js';
41
44
  export { nextui } from './plugin.js';
42
- export { BaseThemeUnit, ConfigTheme, ConfigThemes, DefaultThemeType, FontThemeUnit, LayoutTheme, NextUIPluginConfig, SpacingScale, SpacingScaleKeys, mappedSpacingScaleKeys, spacingScaleKeys } from './types.js';
45
+ export { BaseThemeUnit, ConfigTheme, ConfigThemes, DefaultThemeType, FontThemeUnit, LayoutTheme, NextUIPluginConfig } from './types.js';
43
46
  export { tv } from './utils/tv.js';
44
47
  export { TV, VariantProps } from 'tailwind-variants';
45
48
  export { BaseColors, ColorScale, SemanticBaseColors, ThemeColors } from './colors/types.js';