@nextui-org/theme 2.2.2 → 2.2.4

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 (151) hide show
  1. package/dist/{chunk-7TJINK3S.mjs → chunk-22SLLLIZ.mjs} +2 -3
  2. package/dist/{chunk-524WVPFR.mjs → chunk-2KK3SUMT.mjs} +3 -4
  3. package/dist/chunk-3XVMTUU7.mjs +15 -0
  4. package/dist/{chunk-CUUGEIPA.mjs → chunk-4YQYZDME.mjs} +1 -2
  5. package/dist/{chunk-NYSEAAK5.mjs → chunk-5AGRECY5.mjs} +3 -5
  6. package/dist/{chunk-MUWHEIW6.mjs → chunk-66462YHM.mjs} +8 -9
  7. package/dist/{chunk-UODOTC2G.mjs → chunk-A2DU46QS.mjs} +1 -1
  8. package/dist/{chunk-7ELFOVMX.mjs → chunk-A4VDWEXY.mjs} +5 -7
  9. package/dist/{chunk-PSEUPXFL.mjs → chunk-AXXUQWWC.mjs} +1 -1
  10. package/dist/{chunk-NAUU2OUH.mjs → chunk-BJ6IKX32.mjs} +1 -1
  11. package/dist/{chunk-V5ZTBGGO.mjs → chunk-BT3FGTF7.mjs} +1 -1
  12. package/dist/chunk-BYWORP66.mjs +20 -0
  13. package/dist/{chunk-JQTFOIV7.mjs → chunk-C3SML4G4.mjs} +2 -3
  14. package/dist/{chunk-6XJJCV76.mjs → chunk-C43Y2OOL.mjs} +2 -3
  15. package/dist/{chunk-FRI2VDCA.mjs → chunk-CKTE75OS.mjs} +2 -3
  16. package/dist/{chunk-AO2AAOEJ.mjs → chunk-DIYH6KBL.mjs} +4 -4
  17. package/dist/{chunk-RNAP5C4C.mjs → chunk-DXPS72CE.mjs} +1 -2
  18. package/dist/{chunk-CTY7IP65.mjs → chunk-DZGYN4XH.mjs} +1 -2
  19. package/dist/{chunk-ECP4S2VZ.mjs → chunk-EF6G67MF.mjs} +1 -1
  20. package/dist/{chunk-3FZU25GR.mjs → chunk-F4AOWB64.mjs} +1 -1
  21. package/dist/{chunk-SEKJ6A6T.mjs → chunk-GDIZAU4E.mjs} +3 -3
  22. package/dist/{chunk-AC6F4DT6.mjs → chunk-GFTQERGX.mjs} +1 -1
  23. package/dist/{chunk-4ZM6AI3H.mjs → chunk-GQDFLFNG.mjs} +2 -3
  24. package/dist/{chunk-VDRJHB4F.mjs → chunk-HZX5JB5L.mjs} +9 -2
  25. package/dist/{chunk-KA5SSSWD.mjs → chunk-IISEDJRF.mjs} +1 -2
  26. package/dist/{chunk-IP3D7KVB.mjs → chunk-INW3YHX5.mjs} +16 -10
  27. package/dist/{chunk-GMUSZ3YF.mjs → chunk-JBKBSMXM.mjs} +11 -11
  28. package/dist/{chunk-AT4OXKKK.mjs → chunk-KKN74BUG.mjs} +1 -2
  29. package/dist/{chunk-WAAJG22Y.mjs → chunk-KPVV2V7V.mjs} +2 -3
  30. package/dist/{chunk-GMMETTYU.mjs → chunk-N2KXC5ZE.mjs} +6 -8
  31. package/dist/{chunk-NPDZ7OMC.mjs → chunk-NPRQPDVP.mjs} +4 -5
  32. package/dist/{chunk-OQIS4MXV.mjs → chunk-QXCYVABV.mjs} +1 -1
  33. package/dist/{chunk-S573WUYY.mjs → chunk-SKQWKT6K.mjs} +1 -2
  34. package/dist/{chunk-I6ESTKKY.mjs → chunk-SPXRXN7C.mjs} +4 -4
  35. package/dist/{chunk-W6DVXJB3.mjs → chunk-T2VR4T5R.mjs} +1 -1
  36. package/dist/{chunk-LDBYFTHC.mjs → chunk-U6G6SZ26.mjs} +28 -24
  37. package/dist/{chunk-AGUZRGXC.mjs → chunk-V4SD44VK.mjs} +1 -1
  38. package/dist/{chunk-KCOC3H6R.mjs → chunk-VFGZ2KFC.mjs} +1 -2
  39. package/dist/{chunk-X7N3NQ6S.mjs → chunk-VLE2FQQR.mjs} +2 -4
  40. package/dist/{chunk-KVPPQD2E.mjs → chunk-WRLU2O3D.mjs} +2 -3
  41. package/dist/{chunk-7ODIBITJ.mjs → chunk-WUUKIKPR.mjs} +2 -3
  42. package/dist/{chunk-VJTX4YUQ.mjs → chunk-X7QC2HIM.mjs} +1 -1
  43. package/dist/components/accordion.js +19 -8
  44. package/dist/components/accordion.mjs +5 -4
  45. package/dist/components/autocomplete.js +19 -8
  46. package/dist/components/autocomplete.mjs +3 -2
  47. package/dist/components/avatar.d.ts +49 -0
  48. package/dist/components/avatar.js +27 -8
  49. package/dist/components/avatar.mjs +5 -4
  50. package/dist/components/badge.js +19 -8
  51. package/dist/components/badge.mjs +5 -4
  52. package/dist/components/breadcrumbs.js +19 -10
  53. package/dist/components/breadcrumbs.mjs +5 -4
  54. package/dist/components/button.d.ts +7 -7
  55. package/dist/components/button.js +22 -10
  56. package/dist/components/button.mjs +5 -4
  57. package/dist/components/calendar.js +21 -12
  58. package/dist/components/calendar.mjs +5 -4
  59. package/dist/components/card.js +20 -10
  60. package/dist/components/card.mjs +5 -4
  61. package/dist/components/checkbox.js +21 -11
  62. package/dist/components/checkbox.mjs +5 -4
  63. package/dist/components/chip.js +19 -7
  64. package/dist/components/chip.mjs +5 -4
  65. package/dist/components/circular-progress.js +20 -9
  66. package/dist/components/circular-progress.mjs +3 -2
  67. package/dist/components/code.js +19 -7
  68. package/dist/components/code.mjs +5 -4
  69. package/dist/components/date-input.js +20 -9
  70. package/dist/components/date-input.mjs +3 -2
  71. package/dist/components/date-picker.js +19 -7
  72. package/dist/components/date-picker.mjs +3 -2
  73. package/dist/components/divider.js +19 -7
  74. package/dist/components/divider.mjs +3 -2
  75. package/dist/components/drip.js +19 -7
  76. package/dist/components/drip.mjs +3 -2
  77. package/dist/components/dropdown.d.ts +5 -5
  78. package/dist/components/dropdown.js +20 -9
  79. package/dist/components/dropdown.mjs +5 -4
  80. package/dist/components/image.js +46 -30
  81. package/dist/components/image.mjs +3 -2
  82. package/dist/components/index.d.ts +1 -0
  83. package/dist/components/index.js +114 -109
  84. package/dist/components/index.mjs +43 -42
  85. package/dist/components/input.js +26 -15
  86. package/dist/components/input.mjs +5 -4
  87. package/dist/components/kbd.js +19 -7
  88. package/dist/components/kbd.mjs +3 -2
  89. package/dist/components/link.js +20 -9
  90. package/dist/components/link.mjs +5 -4
  91. package/dist/components/listbox.js +19 -8
  92. package/dist/components/listbox.mjs +5 -4
  93. package/dist/components/menu.d.ts +5 -5
  94. package/dist/components/menu.js +19 -8
  95. package/dist/components/menu.mjs +5 -4
  96. package/dist/components/modal.d.ts +35 -0
  97. package/dist/components/modal.js +34 -16
  98. package/dist/components/modal.mjs +5 -4
  99. package/dist/components/navbar.js +19 -7
  100. package/dist/components/navbar.mjs +5 -4
  101. package/dist/components/pagination.js +19 -8
  102. package/dist/components/pagination.mjs +5 -4
  103. package/dist/components/popover.js +19 -8
  104. package/dist/components/popover.mjs +5 -4
  105. package/dist/components/progress.d.ts +2 -2
  106. package/dist/components/progress.js +21 -10
  107. package/dist/components/progress.mjs +3 -2
  108. package/dist/components/radio.js +23 -13
  109. package/dist/components/radio.mjs +5 -4
  110. package/dist/components/scroll-shadow.js +19 -7
  111. package/dist/components/scroll-shadow.mjs +3 -2
  112. package/dist/components/select.js +18 -9
  113. package/dist/components/select.mjs +5 -4
  114. package/dist/components/skeleton.js +22 -10
  115. package/dist/components/skeleton.mjs +3 -2
  116. package/dist/components/slider.d.ts +7 -0
  117. package/dist/components/slider.js +28 -18
  118. package/dist/components/slider.mjs +5 -4
  119. package/dist/components/snippet.js +20 -9
  120. package/dist/components/snippet.mjs +5 -4
  121. package/dist/components/spacer.js +19 -7
  122. package/dist/components/spacer.mjs +3 -2
  123. package/dist/components/spinner.js +19 -7
  124. package/dist/components/spinner.mjs +3 -2
  125. package/dist/components/table.js +20 -9
  126. package/dist/components/table.mjs +5 -4
  127. package/dist/components/tabs.js +21 -9
  128. package/dist/components/tabs.mjs +5 -4
  129. package/dist/components/toggle.js +20 -9
  130. package/dist/components/toggle.mjs +5 -4
  131. package/dist/components/user.d.ts +27 -26
  132. package/dist/components/user.js +19 -7
  133. package/dist/components/user.mjs +5 -4
  134. package/dist/index.d.ts +4 -0
  135. package/dist/index.js +128 -109
  136. package/dist/index.mjs +51 -42
  137. package/dist/utils/cn.d.ts +5 -0
  138. package/dist/utils/cn.js +59 -0
  139. package/dist/utils/cn.mjs +7 -0
  140. package/dist/utils/index.d.ts +4 -0
  141. package/dist/utils/index.js +38 -2
  142. package/dist/utils/index.mjs +12 -3
  143. package/dist/utils/tv.js +19 -7
  144. package/dist/utils/tv.mjs +2 -1
  145. package/dist/utils/tw-merge-config.d.ts +6 -0
  146. package/dist/utils/tw-merge-config.js +45 -0
  147. package/dist/utils/tw-merge-config.mjs +8 -0
  148. package/dist/utils/types.mjs +0 -1
  149. package/package.json +4 -2
  150. package/dist/chunk-K7LK7NCE.mjs +0 -0
  151. /package/dist/{chunk-CMYR6AOY.mjs → chunk-IV3K5WDK.mjs} +0 -0
package/dist/index.mjs CHANGED
@@ -1,143 +1,149 @@
1
1
  import "./chunk-UVXYPGDZ.mjs";
2
2
  import {
3
3
  tabs
4
- } from "./chunk-SEKJ6A6T.mjs";
4
+ } from "./chunk-GDIZAU4E.mjs";
5
5
  import {
6
6
  toggle
7
- } from "./chunk-7ODIBITJ.mjs";
7
+ } from "./chunk-WUUKIKPR.mjs";
8
8
  import {
9
9
  user
10
- } from "./chunk-NAUU2OUH.mjs";
10
+ } from "./chunk-BJ6IKX32.mjs";
11
11
  import {
12
12
  scrollShadow
13
- } from "./chunk-ECP4S2VZ.mjs";
13
+ } from "./chunk-EF6G67MF.mjs";
14
14
  import {
15
15
  select
16
- } from "./chunk-CTY7IP65.mjs";
16
+ } from "./chunk-DZGYN4XH.mjs";
17
17
  import {
18
18
  skeleton
19
- } from "./chunk-AO2AAOEJ.mjs";
19
+ } from "./chunk-DIYH6KBL.mjs";
20
20
  import {
21
21
  slider
22
- } from "./chunk-GMUSZ3YF.mjs";
22
+ } from "./chunk-JBKBSMXM.mjs";
23
23
  import {
24
24
  snippet
25
- } from "./chunk-FRI2VDCA.mjs";
25
+ } from "./chunk-CKTE75OS.mjs";
26
26
  import {
27
27
  spacer
28
- } from "./chunk-W6DVXJB3.mjs";
28
+ } from "./chunk-T2VR4T5R.mjs";
29
29
  import {
30
30
  spinner
31
- } from "./chunk-PSEUPXFL.mjs";
31
+ } from "./chunk-AXXUQWWC.mjs";
32
32
  import {
33
33
  table
34
- } from "./chunk-KVPPQD2E.mjs";
34
+ } from "./chunk-WRLU2O3D.mjs";
35
35
  import "./chunk-YJLQTC7L.mjs";
36
36
  import {
37
37
  menu,
38
38
  menuItem,
39
39
  menuSection
40
- } from "./chunk-CUUGEIPA.mjs";
40
+ } from "./chunk-4YQYZDME.mjs";
41
41
  import {
42
42
  modal
43
- } from "./chunk-IP3D7KVB.mjs";
43
+ } from "./chunk-INW3YHX5.mjs";
44
44
  import {
45
45
  navbar
46
- } from "./chunk-OQIS4MXV.mjs";
46
+ } from "./chunk-QXCYVABV.mjs";
47
47
  import {
48
48
  pagination
49
- } from "./chunk-RNAP5C4C.mjs";
49
+ } from "./chunk-DXPS72CE.mjs";
50
50
  import {
51
51
  popover
52
- } from "./chunk-KA5SSSWD.mjs";
52
+ } from "./chunk-IISEDJRF.mjs";
53
53
  import {
54
54
  progress
55
- } from "./chunk-524WVPFR.mjs";
55
+ } from "./chunk-2KK3SUMT.mjs";
56
56
  import {
57
57
  radio,
58
58
  radioGroup
59
- } from "./chunk-7ELFOVMX.mjs";
59
+ } from "./chunk-A4VDWEXY.mjs";
60
60
  import {
61
61
  divider
62
- } from "./chunk-UODOTC2G.mjs";
62
+ } from "./chunk-A2DU46QS.mjs";
63
63
  import {
64
64
  drip
65
- } from "./chunk-AGUZRGXC.mjs";
65
+ } from "./chunk-V4SD44VK.mjs";
66
66
  import {
67
67
  dropdown,
68
68
  dropdownItem,
69
69
  dropdownMenu,
70
70
  dropdownSection
71
- } from "./chunk-4ZM6AI3H.mjs";
71
+ } from "./chunk-GQDFLFNG.mjs";
72
72
  import {
73
73
  image
74
- } from "./chunk-LDBYFTHC.mjs";
74
+ } from "./chunk-U6G6SZ26.mjs";
75
75
  import {
76
76
  input
77
- } from "./chunk-MUWHEIW6.mjs";
77
+ } from "./chunk-66462YHM.mjs";
78
78
  import {
79
79
  kbd
80
- } from "./chunk-3FZU25GR.mjs";
80
+ } from "./chunk-F4AOWB64.mjs";
81
81
  import {
82
82
  link,
83
83
  linkAnchorClasses
84
- } from "./chunk-JQTFOIV7.mjs";
84
+ } from "./chunk-C3SML4G4.mjs";
85
85
  import {
86
86
  calendar
87
- } from "./chunk-NPDZ7OMC.mjs";
87
+ } from "./chunk-NPRQPDVP.mjs";
88
88
  import {
89
89
  card
90
- } from "./chunk-X7N3NQ6S.mjs";
90
+ } from "./chunk-VLE2FQQR.mjs";
91
91
  import {
92
92
  checkbox,
93
93
  checkboxGroup
94
- } from "./chunk-NYSEAAK5.mjs";
94
+ } from "./chunk-5AGRECY5.mjs";
95
95
  import {
96
96
  chip
97
- } from "./chunk-AC6F4DT6.mjs";
97
+ } from "./chunk-GFTQERGX.mjs";
98
98
  import {
99
99
  circularProgress
100
- } from "./chunk-WAAJG22Y.mjs";
100
+ } from "./chunk-KPVV2V7V.mjs";
101
101
  import {
102
102
  code
103
- } from "./chunk-V5ZTBGGO.mjs";
103
+ } from "./chunk-BT3FGTF7.mjs";
104
104
  import {
105
105
  dateInput
106
- } from "./chunk-7TJINK3S.mjs";
106
+ } from "./chunk-22SLLLIZ.mjs";
107
107
  import {
108
108
  datePicker,
109
109
  dateRangePicker
110
- } from "./chunk-VJTX4YUQ.mjs";
110
+ } from "./chunk-X7QC2HIM.mjs";
111
111
  import {
112
112
  accordion,
113
113
  accordionItem
114
- } from "./chunk-KCOC3H6R.mjs";
114
+ } from "./chunk-VFGZ2KFC.mjs";
115
115
  import {
116
116
  autocomplete
117
- } from "./chunk-AT4OXKKK.mjs";
117
+ } from "./chunk-KKN74BUG.mjs";
118
118
  import {
119
119
  avatar,
120
120
  avatarGroup
121
- } from "./chunk-VDRJHB4F.mjs";
121
+ } from "./chunk-HZX5JB5L.mjs";
122
122
  import {
123
123
  badge
124
- } from "./chunk-S573WUYY.mjs";
124
+ } from "./chunk-SKQWKT6K.mjs";
125
125
  import {
126
126
  breadcrumbItem,
127
127
  breadcrumbs
128
- } from "./chunk-6XJJCV76.mjs";
128
+ } from "./chunk-C43Y2OOL.mjs";
129
129
  import {
130
130
  button,
131
131
  buttonGroup
132
- } from "./chunk-I6ESTKKY.mjs";
133
- import "./chunk-CMYR6AOY.mjs";
134
- import "./chunk-K7LK7NCE.mjs";
132
+ } from "./chunk-SPXRXN7C.mjs";
133
+ import "./chunk-IV3K5WDK.mjs";
134
+ import {
135
+ cn
136
+ } from "./chunk-3XVMTUU7.mjs";
135
137
  import {
136
138
  colorVariants
137
139
  } from "./chunk-2PIR7DFM.mjs";
138
140
  import {
139
141
  tv
140
- } from "./chunk-GMMETTYU.mjs";
142
+ } from "./chunk-N2KXC5ZE.mjs";
143
+ import {
144
+ COMMON_UNITS,
145
+ twMergeConfig
146
+ } from "./chunk-BYWORP66.mjs";
141
147
  import {
142
148
  nextui
143
149
  } from "./chunk-YSA7EQBH.mjs";
@@ -180,6 +186,7 @@ import "./chunk-L2OL7R23.mjs";
180
186
  import "./chunk-YZYGFPNK.mjs";
181
187
  import "./chunk-GHZ36ATJ.mjs";
182
188
  export {
189
+ COMMON_UNITS,
183
190
  absoluteFullClasses,
184
191
  accordion,
185
192
  accordionItem,
@@ -198,6 +205,7 @@ export {
198
205
  checkboxGroup,
199
206
  chip,
200
207
  circularProgress,
208
+ cn,
201
209
  code,
202
210
  collapseAdjacentVariantBorders,
203
211
  colorVariants,
@@ -248,5 +256,6 @@ export {
248
256
  toggle,
249
257
  translateCenterClasses,
250
258
  tv,
259
+ twMergeConfig,
251
260
  user
252
261
  };
@@ -0,0 +1,5 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ declare function cn(...inputs: ClassValue[]): string;
4
+
5
+ export { cn };
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // src/utils/cn.ts
27
+ var cn_exports = {};
28
+ __export(cn_exports, {
29
+ cn: () => cn
30
+ });
31
+ module.exports = __toCommonJS(cn_exports);
32
+ var import_clsx = __toESM(require("clsx"));
33
+ var import_tailwind_merge = require("tailwind-merge");
34
+
35
+ // src/utils/tw-merge-config.ts
36
+ var COMMON_UNITS = ["small", "medium", "large"];
37
+ var twMergeConfig = {
38
+ theme: {
39
+ opacity: ["disabled"],
40
+ spacing: ["divider"],
41
+ borderWidth: COMMON_UNITS,
42
+ borderRadius: COMMON_UNITS
43
+ },
44
+ classGroups: {
45
+ shadow: [{ shadow: COMMON_UNITS }],
46
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
47
+ "bg-image": ["bg-stripe-gradient"]
48
+ }
49
+ };
50
+
51
+ // src/utils/cn.ts
52
+ var twMerge = (0, import_tailwind_merge.extendTailwindMerge)(twMergeConfig);
53
+ function cn(...inputs) {
54
+ return twMerge((0, import_clsx.default)(inputs));
55
+ }
56
+ // Annotate the CommonJS export names for ESM import in node:
57
+ 0 && (module.exports = {
58
+ cn
59
+ });
@@ -0,0 +1,7 @@
1
+ import {
2
+ cn
3
+ } from "../chunk-3XVMTUU7.mjs";
4
+ import "../chunk-BYWORP66.mjs";
5
+ export {
6
+ cn
7
+ };
@@ -1,4 +1,8 @@
1
1
  export { absoluteFullClasses, baseStyles, collapseAdjacentVariantBorders, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, ringClasses, translateCenterClasses } from './classes.js';
2
2
  export { SlotsToClasses } from './types.js';
3
3
  export { colorVariants } from './variants.js';
4
+ export { COMMON_UNITS, twMergeConfig } from './tw-merge-config.js';
5
+ export { cn } from './cn.js';
4
6
  import 'tailwind-variants';
7
+ import 'tailwind-merge';
8
+ import 'clsx';
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,20 +17,27 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
18
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
25
 
20
26
  // src/utils/index.ts
21
27
  var utils_exports = {};
22
28
  __export(utils_exports, {
29
+ COMMON_UNITS: () => COMMON_UNITS,
23
30
  absoluteFullClasses: () => absoluteFullClasses,
24
31
  baseStyles: () => baseStyles,
32
+ cn: () => cn,
25
33
  collapseAdjacentVariantBorders: () => collapseAdjacentVariantBorders,
26
34
  colorVariants: () => colorVariants,
27
35
  dataFocusVisibleClasses: () => dataFocusVisibleClasses,
28
36
  focusVisibleClasses: () => focusVisibleClasses,
29
37
  groupDataFocusVisibleClasses: () => groupDataFocusVisibleClasses,
30
38
  ringClasses: () => ringClasses,
31
- translateCenterClasses: () => translateCenterClasses
39
+ translateCenterClasses: () => translateCenterClasses,
40
+ twMergeConfig: () => twMergeConfig
32
41
  });
33
42
  module.exports = __toCommonJS(utils_exports);
34
43
 
@@ -155,15 +164,42 @@ var colorVariants = {
155
164
  light,
156
165
  ghost
157
166
  };
167
+
168
+ // src/utils/tw-merge-config.ts
169
+ var COMMON_UNITS = ["small", "medium", "large"];
170
+ var twMergeConfig = {
171
+ theme: {
172
+ opacity: ["disabled"],
173
+ spacing: ["divider"],
174
+ borderWidth: COMMON_UNITS,
175
+ borderRadius: COMMON_UNITS
176
+ },
177
+ classGroups: {
178
+ shadow: [{ shadow: COMMON_UNITS }],
179
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
180
+ "bg-image": ["bg-stripe-gradient"]
181
+ }
182
+ };
183
+
184
+ // src/utils/cn.ts
185
+ var import_clsx = __toESM(require("clsx"));
186
+ var import_tailwind_merge = require("tailwind-merge");
187
+ var twMerge = (0, import_tailwind_merge.extendTailwindMerge)(twMergeConfig);
188
+ function cn(...inputs) {
189
+ return twMerge((0, import_clsx.default)(inputs));
190
+ }
158
191
  // Annotate the CommonJS export names for ESM import in node:
159
192
  0 && (module.exports = {
193
+ COMMON_UNITS,
160
194
  absoluteFullClasses,
161
195
  baseStyles,
196
+ cn,
162
197
  collapseAdjacentVariantBorders,
163
198
  colorVariants,
164
199
  dataFocusVisibleClasses,
165
200
  focusVisibleClasses,
166
201
  groupDataFocusVisibleClasses,
167
202
  ringClasses,
168
- translateCenterClasses
203
+ translateCenterClasses,
204
+ twMergeConfig
169
205
  });
@@ -1,8 +1,14 @@
1
- import "../chunk-CMYR6AOY.mjs";
2
- import "../chunk-K7LK7NCE.mjs";
1
+ import "../chunk-IV3K5WDK.mjs";
2
+ import {
3
+ cn
4
+ } from "../chunk-3XVMTUU7.mjs";
3
5
  import {
4
6
  colorVariants
5
7
  } from "../chunk-2PIR7DFM.mjs";
8
+ import {
9
+ COMMON_UNITS,
10
+ twMergeConfig
11
+ } from "../chunk-BYWORP66.mjs";
6
12
  import {
7
13
  absoluteFullClasses,
8
14
  baseStyles,
@@ -14,13 +20,16 @@ import {
14
20
  translateCenterClasses
15
21
  } from "../chunk-XHQUSKIE.mjs";
16
22
  export {
23
+ COMMON_UNITS,
17
24
  absoluteFullClasses,
18
25
  baseStyles,
26
+ cn,
19
27
  collapseAdjacentVariantBorders,
20
28
  colorVariants,
21
29
  dataFocusVisibleClasses,
22
30
  focusVisibleClasses,
23
31
  groupDataFocusVisibleClasses,
24
32
  ringClasses,
25
- translateCenterClasses
33
+ translateCenterClasses,
34
+ twMergeConfig
26
35
  };
package/dist/utils/tv.js CHANGED
@@ -24,7 +24,24 @@ __export(tv_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(tv_exports);
26
26
  var import_tailwind_variants = require("tailwind-variants");
27
+
28
+ // src/utils/tw-merge-config.ts
27
29
  var COMMON_UNITS = ["small", "medium", "large"];
30
+ var twMergeConfig = {
31
+ theme: {
32
+ opacity: ["disabled"],
33
+ spacing: ["divider"],
34
+ borderWidth: COMMON_UNITS,
35
+ borderRadius: COMMON_UNITS
36
+ },
37
+ classGroups: {
38
+ shadow: [{ shadow: COMMON_UNITS }],
39
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
40
+ "bg-image": ["bg-stripe-gradient"]
41
+ }
42
+ };
43
+
44
+ // src/utils/tv.ts
28
45
  var tv = (options, config) => {
29
46
  var _a, _b, _c;
30
47
  return (0, import_tailwind_variants.tv)(options, {
@@ -34,16 +51,11 @@ var tv = (options, config) => {
34
51
  ...config == null ? void 0 : config.twMergeConfig,
35
52
  theme: {
36
53
  ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
37
- opacity: ["disabled"],
38
- spacing: ["divider"],
39
- borderWidth: COMMON_UNITS,
40
- borderRadius: COMMON_UNITS
54
+ ...twMergeConfig.theme
41
55
  },
42
56
  classGroups: {
43
57
  ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
44
- shadow: [{ shadow: COMMON_UNITS }],
45
- "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
46
- "bg-image": ["bg-stripe-gradient"]
58
+ ...twMergeConfig.classGroups
47
59
  }
48
60
  }
49
61
  });
package/dist/utils/tv.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  tv
3
- } from "../chunk-GMMETTYU.mjs";
3
+ } from "../chunk-N2KXC5ZE.mjs";
4
+ import "../chunk-BYWORP66.mjs";
4
5
  export {
5
6
  tv
6
7
  };
@@ -0,0 +1,6 @@
1
+ import { Config } from 'tailwind-merge';
2
+
3
+ declare const COMMON_UNITS: string[];
4
+ declare const twMergeConfig: Partial<Config>;
5
+
6
+ export { COMMON_UNITS, twMergeConfig };
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/utils/tw-merge-config.ts
21
+ var tw_merge_config_exports = {};
22
+ __export(tw_merge_config_exports, {
23
+ COMMON_UNITS: () => COMMON_UNITS,
24
+ twMergeConfig: () => twMergeConfig
25
+ });
26
+ module.exports = __toCommonJS(tw_merge_config_exports);
27
+ var COMMON_UNITS = ["small", "medium", "large"];
28
+ var twMergeConfig = {
29
+ theme: {
30
+ opacity: ["disabled"],
31
+ spacing: ["divider"],
32
+ borderWidth: COMMON_UNITS,
33
+ borderRadius: COMMON_UNITS
34
+ },
35
+ classGroups: {
36
+ shadow: [{ shadow: COMMON_UNITS }],
37
+ "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
38
+ "bg-image": ["bg-stripe-gradient"]
39
+ }
40
+ };
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
43
+ COMMON_UNITS,
44
+ twMergeConfig
45
+ });
@@ -0,0 +1,8 @@
1
+ import {
2
+ COMMON_UNITS,
3
+ twMergeConfig
4
+ } from "../chunk-BYWORP66.mjs";
5
+ export {
6
+ COMMON_UNITS,
7
+ twMergeConfig
8
+ };
@@ -1 +0,0 @@
1
- import "../chunk-K7LK7NCE.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",
@@ -46,7 +46,9 @@
46
46
  "lodash.kebabcase": "^4.1.1",
47
47
  "lodash.mapkeys": "^4.6.0",
48
48
  "lodash.omit": "^4.5.0",
49
- "tailwind-variants": "^0.1.20"
49
+ "clsx": "^1.2.1",
50
+ "tailwind-variants": "^0.1.20",
51
+ "tailwind-merge": "^1.14.0"
50
52
  },
51
53
  "peerDependencies": {
52
54
  "tailwindcss": ">=3.4.0"
File without changes
File without changes