@nextui-org/theme 2.1.16 → 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 (121) 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-YUBM4HDU.mjs → chunk-GOHT67J3.mjs} +1 -1
  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 +32 -25
  69. package/dist/components/index.mjs +37 -37
  70. package/dist/components/input.js +32 -25
  71. package/dist/components/input.mjs +2 -2
  72. package/dist/components/kbd.js +32 -25
  73. package/dist/components/kbd.mjs +2 -2
  74. package/dist/components/link.js +32 -25
  75. package/dist/components/link.mjs +2 -2
  76. package/dist/components/listbox.js +32 -25
  77. package/dist/components/listbox.mjs +2 -2
  78. package/dist/components/menu.js +32 -25
  79. package/dist/components/menu.mjs +2 -2
  80. package/dist/components/modal.js +32 -25
  81. package/dist/components/modal.mjs +2 -2
  82. package/dist/components/navbar.js +32 -25
  83. package/dist/components/navbar.mjs +2 -2
  84. package/dist/components/pagination.js +32 -25
  85. package/dist/components/pagination.mjs +2 -2
  86. package/dist/components/popover.js +32 -25
  87. package/dist/components/popover.mjs +2 -2
  88. package/dist/components/progress.js +32 -25
  89. package/dist/components/progress.mjs +2 -2
  90. package/dist/components/radio.js +32 -25
  91. package/dist/components/radio.mjs +2 -2
  92. package/dist/components/scroll-shadow.js +32 -25
  93. package/dist/components/scroll-shadow.mjs +2 -2
  94. package/dist/components/select.js +32 -25
  95. package/dist/components/select.mjs +2 -2
  96. package/dist/components/skeleton.js +32 -25
  97. package/dist/components/skeleton.mjs +2 -2
  98. package/dist/components/slider.js +32 -25
  99. package/dist/components/slider.mjs +2 -2
  100. package/dist/components/snippet.js +32 -25
  101. package/dist/components/snippet.mjs +2 -2
  102. package/dist/components/spacer.js +32 -25
  103. package/dist/components/spacer.mjs +2 -2
  104. package/dist/components/spinner.js +32 -25
  105. package/dist/components/spinner.mjs +2 -2
  106. package/dist/components/table.js +32 -25
  107. package/dist/components/table.mjs +2 -2
  108. package/dist/components/tabs.js +32 -25
  109. package/dist/components/tabs.mjs +2 -2
  110. package/dist/components/toggle.js +32 -25
  111. package/dist/components/toggle.mjs +2 -2
  112. package/dist/components/user.d.ts +5 -5
  113. package/dist/components/user.js +32 -25
  114. package/dist/components/user.mjs +2 -2
  115. package/dist/index.js +32 -25
  116. package/dist/index.mjs +37 -37
  117. package/dist/utils/tv.d.ts +2 -2
  118. package/dist/utils/tv.js +32 -25
  119. package/dist/utils/tv.mjs +1 -1
  120. package/package.json +1 -1
  121. package/dist/chunk-WBUVHAJX.mjs +0 -37
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-YUBM4HDU.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.16",
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
- };