@nextui-org/theme 2.1.15 → 2.1.17

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 (122) hide show
  1. package/dist/{chunk-VPYXYIZ5.mjs → chunk-2SNOAR5H.mjs} +1 -1
  2. package/dist/{chunk-Y5WLFHBC.mjs → chunk-33DU6C7I.mjs} +1 -1
  3. package/dist/{chunk-5Y7664AG.mjs → chunk-3BNHFA72.mjs} +1 -1
  4. package/dist/{chunk-VGHVBXXT.mjs → chunk-4JBYJQSP.mjs} +1 -1
  5. package/dist/{chunk-SMRPQEB3.mjs → chunk-5EJVI4V3.mjs} +1 -1
  6. package/dist/chunk-6AEINX52.mjs +44 -0
  7. package/dist/{chunk-ODGTGSNM.mjs → chunk-777XXWYS.mjs} +1 -1
  8. package/dist/{chunk-362LGETO.mjs → chunk-77O7KLUI.mjs} +1 -1
  9. package/dist/{chunk-VD4MGTVP.mjs → chunk-B55QBA5E.mjs} +1 -1
  10. package/dist/{chunk-5GLH2ERS.mjs → chunk-CVU6I4IJ.mjs} +1 -1
  11. package/dist/{chunk-QWYWYOG6.mjs → chunk-DXTDUHS5.mjs} +1 -1
  12. package/dist/{chunk-PFGLTKGJ.mjs → chunk-EC4F6RJF.mjs} +1 -1
  13. package/dist/{chunk-HBLCAYSX.mjs → chunk-EGP3AT4R.mjs} +1 -1
  14. package/dist/{chunk-WNVF6X3M.mjs → chunk-FHNC7F3W.mjs} +1 -1
  15. package/dist/{chunk-TUUOVVH3.mjs → chunk-FXXH62BP.mjs} +1 -1
  16. package/dist/{chunk-VOTIIGIW.mjs → chunk-G2RPAV6S.mjs} +1 -1
  17. package/dist/{chunk-FUMNSN2H.mjs → chunk-GNLIYZAQ.mjs} +1 -1
  18. package/dist/{chunk-CTFFC543.mjs → chunk-GOHT67J3.mjs} +19 -3
  19. package/dist/{chunk-I5E37FAL.mjs → chunk-JBHEJMGV.mjs} +1 -1
  20. package/dist/{chunk-YRDQW7V4.mjs → chunk-L37EV5TN.mjs} +1 -1
  21. package/dist/{chunk-BR6V72YY.mjs → chunk-LENRVMCD.mjs} +1 -1
  22. package/dist/{chunk-XHQNEGB6.mjs → chunk-LQGOKGQV.mjs} +1 -1
  23. package/dist/{chunk-J6EGGODL.mjs → chunk-MUPUMXL7.mjs} +1 -1
  24. package/dist/{chunk-B6QMTIF2.mjs → chunk-NAY2XKLY.mjs} +1 -1
  25. package/dist/{chunk-WYVG7NY6.mjs → chunk-PXVLYT7W.mjs} +1 -1
  26. package/dist/{chunk-XNF3KCH7.mjs → chunk-Q3TEEYQJ.mjs} +1 -1
  27. package/dist/{chunk-CLW3JMFF.mjs → chunk-QYW2VWAB.mjs} +1 -1
  28. package/dist/{chunk-76A2UI6G.mjs → chunk-RJKUWMDJ.mjs} +1 -1
  29. package/dist/{chunk-QF56VSRK.mjs → chunk-SPRRISBY.mjs} +1 -1
  30. package/dist/{chunk-JMOQB2OS.mjs → chunk-TDMF44G6.mjs} +1 -1
  31. package/dist/{chunk-JX6O4KJS.mjs → chunk-U4EMZ2CQ.mjs} +1 -1
  32. package/dist/{chunk-F36W5Y6O.mjs → chunk-WBNF66V7.mjs} +1 -1
  33. package/dist/{chunk-HYA3WURA.mjs → chunk-XPLXQDB3.mjs} +1 -1
  34. package/dist/{chunk-J7FVLFSZ.mjs → chunk-XY766PDD.mjs} +1 -1
  35. package/dist/{chunk-AQDGQGUV.mjs → chunk-Y5VJSYKV.mjs} +1 -1
  36. package/dist/{chunk-N7N2LONM.mjs → chunk-YSXRNNDV.mjs} +1 -1
  37. package/dist/{chunk-VU5TSYMO.mjs → chunk-ZWJMJMVY.mjs} +1 -1
  38. package/dist/components/accordion.js +32 -25
  39. package/dist/components/accordion.mjs +2 -2
  40. package/dist/components/autocomplete.js +32 -25
  41. package/dist/components/autocomplete.mjs +2 -2
  42. package/dist/components/avatar.js +32 -25
  43. package/dist/components/avatar.mjs +2 -2
  44. package/dist/components/badge.js +32 -25
  45. package/dist/components/badge.mjs +2 -2
  46. package/dist/components/breadcrumbs.js +32 -25
  47. package/dist/components/breadcrumbs.mjs +2 -2
  48. package/dist/components/button.js +32 -25
  49. package/dist/components/button.mjs +2 -2
  50. package/dist/components/card.js +32 -25
  51. package/dist/components/card.mjs +2 -2
  52. package/dist/components/checkbox.js +32 -25
  53. package/dist/components/checkbox.mjs +2 -2
  54. package/dist/components/chip.js +32 -25
  55. package/dist/components/chip.mjs +2 -2
  56. package/dist/components/circular-progress.js +32 -25
  57. package/dist/components/circular-progress.mjs +2 -2
  58. package/dist/components/code.js +32 -25
  59. package/dist/components/code.mjs +2 -2
  60. package/dist/components/divider.js +32 -25
  61. package/dist/components/divider.mjs +2 -2
  62. package/dist/components/drip.js +32 -25
  63. package/dist/components/drip.mjs +2 -2
  64. package/dist/components/dropdown.js +32 -25
  65. package/dist/components/dropdown.mjs +2 -2
  66. package/dist/components/image.js +32 -25
  67. package/dist/components/image.mjs +2 -2
  68. package/dist/components/index.js +50 -27
  69. package/dist/components/index.mjs +37 -37
  70. package/dist/components/input.d.ts +7 -0
  71. package/dist/components/input.js +50 -27
  72. package/dist/components/input.mjs +2 -2
  73. package/dist/components/kbd.js +32 -25
  74. package/dist/components/kbd.mjs +2 -2
  75. package/dist/components/link.js +32 -25
  76. package/dist/components/link.mjs +2 -2
  77. package/dist/components/listbox.js +32 -25
  78. package/dist/components/listbox.mjs +2 -2
  79. package/dist/components/menu.js +32 -25
  80. package/dist/components/menu.mjs +2 -2
  81. package/dist/components/modal.js +32 -25
  82. package/dist/components/modal.mjs +2 -2
  83. package/dist/components/navbar.js +32 -25
  84. package/dist/components/navbar.mjs +2 -2
  85. package/dist/components/pagination.js +32 -25
  86. package/dist/components/pagination.mjs +2 -2
  87. package/dist/components/popover.js +32 -25
  88. package/dist/components/popover.mjs +2 -2
  89. package/dist/components/progress.js +32 -25
  90. package/dist/components/progress.mjs +2 -2
  91. package/dist/components/radio.js +32 -25
  92. package/dist/components/radio.mjs +2 -2
  93. package/dist/components/scroll-shadow.js +32 -25
  94. package/dist/components/scroll-shadow.mjs +2 -2
  95. package/dist/components/select.js +32 -25
  96. package/dist/components/select.mjs +2 -2
  97. package/dist/components/skeleton.js +32 -25
  98. package/dist/components/skeleton.mjs +2 -2
  99. package/dist/components/slider.js +32 -25
  100. package/dist/components/slider.mjs +2 -2
  101. package/dist/components/snippet.js +32 -25
  102. package/dist/components/snippet.mjs +2 -2
  103. package/dist/components/spacer.js +32 -25
  104. package/dist/components/spacer.mjs +2 -2
  105. package/dist/components/spinner.js +32 -25
  106. package/dist/components/spinner.mjs +2 -2
  107. package/dist/components/table.js +32 -25
  108. package/dist/components/table.mjs +2 -2
  109. package/dist/components/tabs.js +32 -25
  110. package/dist/components/tabs.mjs +2 -2
  111. package/dist/components/toggle.js +32 -25
  112. package/dist/components/toggle.mjs +2 -2
  113. package/dist/components/user.d.ts +5 -5
  114. package/dist/components/user.js +32 -25
  115. package/dist/components/user.mjs +2 -2
  116. package/dist/index.js +50 -27
  117. package/dist/index.mjs +37 -37
  118. package/dist/utils/tv.d.ts +2 -2
  119. package/dist/utils/tv.js +32 -25
  120. package/dist/utils/tv.mjs +1 -1
  121. package/package.json +1 -1
  122. package/dist/chunk-WBUVHAJX.mjs +0 -37
@@ -19,18 +19,18 @@ declare const user: tailwind_variants.TVReturnType<{
19
19
  [key: string]: {
20
20
  [key: string]: tailwind_variants.ClassValue | {
21
21
  base?: tailwind_variants.ClassValue;
22
+ description?: tailwind_variants.ClassValue;
22
23
  name?: tailwind_variants.ClassValue;
23
24
  wrapper?: tailwind_variants.ClassValue;
24
- description?: tailwind_variants.ClassValue;
25
25
  };
26
26
  };
27
27
  } | {
28
28
  [x: string]: {
29
29
  [x: string]: tailwind_variants.ClassValue | {
30
30
  base?: tailwind_variants.ClassValue;
31
+ description?: tailwind_variants.ClassValue;
31
32
  name?: tailwind_variants.ClassValue;
32
33
  wrapper?: tailwind_variants.ClassValue;
33
- description?: tailwind_variants.ClassValue;
34
34
  };
35
35
  } | undefined;
36
36
  } | {}, {
@@ -42,18 +42,18 @@ declare const user: tailwind_variants.TVReturnType<{
42
42
  [key: string]: {
43
43
  [key: string]: tailwind_variants.ClassValue | {
44
44
  base?: tailwind_variants.ClassValue;
45
+ description?: tailwind_variants.ClassValue;
45
46
  name?: tailwind_variants.ClassValue;
46
47
  wrapper?: tailwind_variants.ClassValue;
47
- description?: tailwind_variants.ClassValue;
48
48
  };
49
49
  };
50
50
  } | {}>, {
51
51
  [key: string]: {
52
52
  [key: string]: tailwind_variants.ClassValue | {
53
53
  base?: tailwind_variants.ClassValue;
54
+ description?: tailwind_variants.ClassValue;
54
55
  name?: tailwind_variants.ClassValue;
55
56
  wrapper?: tailwind_variants.ClassValue;
56
- description?: tailwind_variants.ClassValue;
57
57
  };
58
58
  };
59
59
  } | {}, {
@@ -70,9 +70,9 @@ declare const user: tailwind_variants.TVReturnType<{
70
70
  [key: string]: {
71
71
  [key: string]: tailwind_variants.ClassValue | {
72
72
  base?: tailwind_variants.ClassValue;
73
+ description?: tailwind_variants.ClassValue;
73
74
  name?: tailwind_variants.ClassValue;
74
75
  wrapper?: tailwind_variants.ClassValue;
75
- description?: tailwind_variants.ClassValue;
76
76
  };
77
77
  };
78
78
  } | {}>, unknown, unknown, undefined>>;
@@ -82,32 +82,39 @@ 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 = (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
- ]
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
+ }
108
115
  }
109
- }
110
- });
116
+ });
117
+ };
111
118
 
112
119
  // src/utils/classes.ts
113
120
  var dataFocusVisibleClasses = [
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  user
3
- } from "../chunk-VPYXYIZ5.mjs";
3
+ } from "../chunk-2SNOAR5H.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-2PIR7DFM.mjs";
7
- import "../chunk-WBUVHAJX.mjs";
7
+ import "../chunk-6AEINX52.mjs";
8
8
  import "../chunk-XHQUSKIE.mjs";
9
9
  import "../chunk-WA5F6AED.mjs";
10
10
  export {
package/dist/index.js CHANGED
@@ -154,32 +154,39 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
154
154
 
155
155
  // src/utils/tv.ts
156
156
  var COMMON_UNITS = ["small", "medium", "large"];
157
- var tv = (0, import_tailwind_variants.createTV)({
158
- twMerge: true,
159
- twMergeConfig: {
160
- theme: {
161
- opacity: ["disabled"],
162
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
163
- borderWidth: COMMON_UNITS,
164
- borderRadius: COMMON_UNITS
165
- },
166
- classGroups: {
167
- shadow: [{ shadow: COMMON_UNITS }],
168
- "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
169
- "bg-image": ["bg-stripe-gradient"],
170
- "min-w": [
171
- {
172
- "min-w": ["unit", ...mappedSpacingScaleKeys]
173
- }
174
- ],
175
- "min-h": [
176
- {
177
- "min-h": ["unit", ...mappedSpacingScaleKeys]
178
- }
179
- ]
157
+ var tv = (options, config) => {
158
+ var _a, _b, _c;
159
+ return (0, import_tailwind_variants.tv)(options, {
160
+ ...config,
161
+ twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
162
+ twMergeConfig: {
163
+ ...config == null ? void 0 : config.twMergeConfig,
164
+ theme: {
165
+ ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
166
+ opacity: ["disabled"],
167
+ spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
168
+ borderWidth: COMMON_UNITS,
169
+ borderRadius: COMMON_UNITS
170
+ },
171
+ classGroups: {
172
+ ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
173
+ shadow: [{ shadow: COMMON_UNITS }],
174
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
175
+ "bg-image": ["bg-stripe-gradient"],
176
+ "min-w": [
177
+ {
178
+ "min-w": ["unit", ...mappedSpacingScaleKeys]
179
+ }
180
+ ],
181
+ "min-h": [
182
+ {
183
+ "min-h": ["unit", ...mappedSpacingScaleKeys]
184
+ }
185
+ ]
186
+ }
180
187
  }
181
- }
182
- });
188
+ });
189
+ };
183
190
 
184
191
  // src/utils/classes.ts
185
192
  var baseStyles = (prefix) => ({
@@ -3805,7 +3812,7 @@ var input = tv({
3805
3812
  "rounded-full",
3806
3813
  ...dataFocusVisibleClasses
3807
3814
  ],
3808
- helperWrapper: "p-1 flex relative flex-col gap-1.5",
3815
+ helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
3809
3816
  description: "text-tiny text-foreground-400",
3810
3817
  errorMessage: "text-tiny text-danger"
3811
3818
  },
@@ -3954,7 +3961,8 @@ var input = tv({
3954
3961
  true: {
3955
3962
  label: "relative",
3956
3963
  inputWrapper: "!h-auto",
3957
- input: "resize-none py-2 data-[hide-scroll=true]:scrollbar-hide"
3964
+ innerWrapper: "items-start group-data-[has-label=true]:items-start",
3965
+ input: "resize-none data-[hide-scroll=true]:scrollbar-hide"
3958
3966
  }
3959
3967
  },
3960
3968
  disableAnimation: {
@@ -4533,6 +4541,13 @@ var input = tv({
4533
4541
  label: "group-data-[has-helper=true]:pt-4"
4534
4542
  }
4535
4543
  },
4544
+ {
4545
+ labelPlacement: ["outside", "outside-left"],
4546
+ isMultiline: true,
4547
+ class: {
4548
+ inputWrapper: "py-2"
4549
+ }
4550
+ },
4536
4551
  {
4537
4552
  labelPlacement: "outside",
4538
4553
  isMultiline: true,
@@ -4544,6 +4559,7 @@ var input = tv({
4544
4559
  labelPlacement: "inside",
4545
4560
  isMultiline: true,
4546
4561
  class: {
4562
+ label: "pb-0.5",
4547
4563
  input: "pt-0"
4548
4564
  }
4549
4565
  },
@@ -4559,6 +4575,13 @@ var input = tv({
4559
4575
  class: {
4560
4576
  label: ["pe-2", "max-w-full", "text-ellipsis", "overflow-hidden"]
4561
4577
  }
4578
+ },
4579
+ {
4580
+ isMultiline: true,
4581
+ radius: "full",
4582
+ class: {
4583
+ inputWrapper: "data-[has-multiple-rows=true]:rounded-large"
4584
+ }
4562
4585
  }
4563
4586
  ]
4564
4587
  });
package/dist/index.mjs CHANGED
@@ -1,125 +1,125 @@
1
1
  import "./chunk-T6HAGWX5.mjs";
2
2
  import {
3
3
  slider
4
- } from "./chunk-AQDGQGUV.mjs";
4
+ } from "./chunk-Y5VJSYKV.mjs";
5
5
  import {
6
6
  snippet
7
- } from "./chunk-VD4MGTVP.mjs";
7
+ } from "./chunk-B55QBA5E.mjs";
8
8
  import {
9
9
  spacer
10
- } from "./chunk-PFGLTKGJ.mjs";
10
+ } from "./chunk-EC4F6RJF.mjs";
11
11
  import {
12
12
  spinner
13
- } from "./chunk-B6QMTIF2.mjs";
13
+ } from "./chunk-NAY2XKLY.mjs";
14
14
  import {
15
15
  table
16
- } from "./chunk-VU5TSYMO.mjs";
16
+ } from "./chunk-ZWJMJMVY.mjs";
17
17
  import {
18
18
  tabs
19
- } from "./chunk-ODGTGSNM.mjs";
19
+ } from "./chunk-777XXWYS.mjs";
20
20
  import {
21
21
  toggle
22
- } from "./chunk-TUUOVVH3.mjs";
22
+ } from "./chunk-FXXH62BP.mjs";
23
23
  import {
24
24
  user
25
- } from "./chunk-VPYXYIZ5.mjs";
25
+ } from "./chunk-2SNOAR5H.mjs";
26
26
  import {
27
27
  navbar
28
- } from "./chunk-BR6V72YY.mjs";
28
+ } from "./chunk-LENRVMCD.mjs";
29
29
  import {
30
30
  pagination
31
- } from "./chunk-QF56VSRK.mjs";
31
+ } from "./chunk-SPRRISBY.mjs";
32
32
  import {
33
33
  popover
34
- } from "./chunk-WNVF6X3M.mjs";
34
+ } from "./chunk-FHNC7F3W.mjs";
35
35
  import {
36
36
  progress
37
- } from "./chunk-XHQNEGB6.mjs";
37
+ } from "./chunk-LQGOKGQV.mjs";
38
38
  import {
39
39
  radio,
40
40
  radioGroup
41
- } from "./chunk-WYVG7NY6.mjs";
41
+ } from "./chunk-PXVLYT7W.mjs";
42
42
  import {
43
43
  scrollShadow
44
- } from "./chunk-VGHVBXXT.mjs";
44
+ } from "./chunk-4JBYJQSP.mjs";
45
45
  import {
46
46
  select
47
- } from "./chunk-SMRPQEB3.mjs";
47
+ } from "./chunk-5EJVI4V3.mjs";
48
48
  import {
49
49
  skeleton
50
- } from "./chunk-JX6O4KJS.mjs";
50
+ } from "./chunk-U4EMZ2CQ.mjs";
51
51
  import {
52
52
  image
53
- } from "./chunk-F36W5Y6O.mjs";
53
+ } from "./chunk-WBNF66V7.mjs";
54
54
  import {
55
55
  input
56
- } from "./chunk-CTFFC543.mjs";
56
+ } from "./chunk-GOHT67J3.mjs";
57
57
  import {
58
58
  kbd
59
- } from "./chunk-J7FVLFSZ.mjs";
59
+ } from "./chunk-XY766PDD.mjs";
60
60
  import {
61
61
  link,
62
62
  linkAnchorClasses
63
- } from "./chunk-XNF3KCH7.mjs";
63
+ } from "./chunk-Q3TEEYQJ.mjs";
64
64
  import "./chunk-YJLQTC7L.mjs";
65
65
  import {
66
66
  menu,
67
67
  menuItem,
68
68
  menuSection
69
- } from "./chunk-QWYWYOG6.mjs";
69
+ } from "./chunk-DXTDUHS5.mjs";
70
70
  import {
71
71
  modal
72
- } from "./chunk-HBLCAYSX.mjs";
72
+ } from "./chunk-EGP3AT4R.mjs";
73
73
  import {
74
74
  card
75
- } from "./chunk-JMOQB2OS.mjs";
75
+ } from "./chunk-TDMF44G6.mjs";
76
76
  import {
77
77
  checkbox,
78
78
  checkboxGroup
79
- } from "./chunk-CLW3JMFF.mjs";
79
+ } from "./chunk-QYW2VWAB.mjs";
80
80
  import {
81
81
  chip
82
- } from "./chunk-VOTIIGIW.mjs";
82
+ } from "./chunk-G2RPAV6S.mjs";
83
83
  import {
84
84
  circularProgress
85
- } from "./chunk-HYA3WURA.mjs";
85
+ } from "./chunk-XPLXQDB3.mjs";
86
86
  import {
87
87
  code
88
- } from "./chunk-362LGETO.mjs";
88
+ } from "./chunk-77O7KLUI.mjs";
89
89
  import {
90
90
  divider
91
- } from "./chunk-N7N2LONM.mjs";
91
+ } from "./chunk-YSXRNNDV.mjs";
92
92
  import {
93
93
  drip
94
- } from "./chunk-FUMNSN2H.mjs";
94
+ } from "./chunk-GNLIYZAQ.mjs";
95
95
  import {
96
96
  dropdown,
97
97
  dropdownItem,
98
98
  dropdownMenu,
99
99
  dropdownSection
100
- } from "./chunk-5GLH2ERS.mjs";
100
+ } from "./chunk-CVU6I4IJ.mjs";
101
101
  import {
102
102
  accordion,
103
103
  accordionItem
104
- } from "./chunk-I5E37FAL.mjs";
104
+ } from "./chunk-JBHEJMGV.mjs";
105
105
  import {
106
106
  autocomplete
107
- } from "./chunk-5Y7664AG.mjs";
107
+ } from "./chunk-3BNHFA72.mjs";
108
108
  import {
109
109
  avatar,
110
110
  avatarGroup
111
- } from "./chunk-J6EGGODL.mjs";
111
+ } from "./chunk-MUPUMXL7.mjs";
112
112
  import {
113
113
  badge
114
- } from "./chunk-YRDQW7V4.mjs";
114
+ } from "./chunk-L37EV5TN.mjs";
115
115
  import {
116
116
  breadcrumbItem,
117
117
  breadcrumbs
118
- } from "./chunk-76A2UI6G.mjs";
118
+ } from "./chunk-RJKUWMDJ.mjs";
119
119
  import {
120
120
  button,
121
121
  buttonGroup
122
- } from "./chunk-Y5WLFHBC.mjs";
122
+ } from "./chunk-33DU6C7I.mjs";
123
123
  import "./chunk-CMYR6AOY.mjs";
124
124
  import "./chunk-K7LK7NCE.mjs";
125
125
  import {
@@ -127,7 +127,7 @@ import {
127
127
  } from "./chunk-2PIR7DFM.mjs";
128
128
  import {
129
129
  tv
130
- } from "./chunk-WBUVHAJX.mjs";
130
+ } from "./chunk-6AEINX52.mjs";
131
131
  import {
132
132
  nextui
133
133
  } from "./chunk-5QVKTCUZ.mjs";
@@ -1,5 +1,5 @@
1
- import * as tailwind_variants from 'tailwind-variants';
1
+ import { TV } from 'tailwind-variants';
2
2
 
3
- declare const tv: tailwind_variants.TV;
3
+ declare const tv: TV;
4
4
 
5
5
  export { tv };
package/dist/utils/tv.js CHANGED
@@ -80,32 +80,39 @@ var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
80
80
 
81
81
  // src/utils/tv.ts
82
82
  var COMMON_UNITS = ["small", "medium", "large"];
83
- var tv = (0, import_tailwind_variants.createTV)({
84
- twMerge: true,
85
- twMergeConfig: {
86
- theme: {
87
- opacity: ["disabled"],
88
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
89
- borderWidth: COMMON_UNITS,
90
- borderRadius: COMMON_UNITS
91
- },
92
- classGroups: {
93
- shadow: [{ shadow: COMMON_UNITS }],
94
- "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
95
- "bg-image": ["bg-stripe-gradient"],
96
- "min-w": [
97
- {
98
- "min-w": ["unit", ...mappedSpacingScaleKeys]
99
- }
100
- ],
101
- "min-h": [
102
- {
103
- "min-h": ["unit", ...mappedSpacingScaleKeys]
104
- }
105
- ]
83
+ var tv = (options, config) => {
84
+ var _a, _b, _c;
85
+ return (0, import_tailwind_variants.tv)(options, {
86
+ ...config,
87
+ twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
88
+ twMergeConfig: {
89
+ ...config == null ? void 0 : config.twMergeConfig,
90
+ theme: {
91
+ ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
92
+ opacity: ["disabled"],
93
+ spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
94
+ borderWidth: COMMON_UNITS,
95
+ borderRadius: COMMON_UNITS
96
+ },
97
+ classGroups: {
98
+ ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
99
+ shadow: [{ shadow: COMMON_UNITS }],
100
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
101
+ "bg-image": ["bg-stripe-gradient"],
102
+ "min-w": [
103
+ {
104
+ "min-w": ["unit", ...mappedSpacingScaleKeys]
105
+ }
106
+ ],
107
+ "min-h": [
108
+ {
109
+ "min-h": ["unit", ...mappedSpacingScaleKeys]
110
+ }
111
+ ]
112
+ }
106
113
  }
107
- }
108
- });
114
+ });
115
+ };
109
116
  // Annotate the CommonJS export names for ESM import in node:
110
117
  0 && (module.exports = {
111
118
  tv
package/dist/utils/tv.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tv
3
- } from "../chunk-WBUVHAJX.mjs";
3
+ } from "../chunk-6AEINX52.mjs";
4
4
  import "../chunk-WA5F6AED.mjs";
5
5
  export {
6
6
  tv
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "2.1.15",
3
+ "version": "2.1.17",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",
@@ -1,37 +0,0 @@
1
- import {
2
- mappedSpacingScaleKeys
3
- } from "./chunk-WA5F6AED.mjs";
4
-
5
- // src/utils/tv.ts
6
- import { createTV } from "tailwind-variants";
7
- var COMMON_UNITS = ["small", "medium", "large"];
8
- var tv = createTV({
9
- twMerge: true,
10
- twMergeConfig: {
11
- theme: {
12
- opacity: ["disabled"],
13
- spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
14
- borderWidth: COMMON_UNITS,
15
- borderRadius: COMMON_UNITS
16
- },
17
- classGroups: {
18
- shadow: [{ shadow: COMMON_UNITS }],
19
- "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
20
- "bg-image": ["bg-stripe-gradient"],
21
- "min-w": [
22
- {
23
- "min-w": ["unit", ...mappedSpacingScaleKeys]
24
- }
25
- ],
26
- "min-h": [
27
- {
28
- "min-h": ["unit", ...mappedSpacingScaleKeys]
29
- }
30
- ]
31
- }
32
- }
33
- });
34
-
35
- export {
36
- tv
37
- };