@nextui-org/theme 2.1.16 → 2.1.18
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.
- package/dist/{chunk-VPYXYIZ5.mjs → chunk-2SNOAR5H.mjs} +1 -1
- package/dist/{chunk-Y5WLFHBC.mjs → chunk-33DU6C7I.mjs} +1 -1
- package/dist/{chunk-5Y7664AG.mjs → chunk-3BNHFA72.mjs} +1 -1
- package/dist/{chunk-VGHVBXXT.mjs → chunk-4JBYJQSP.mjs} +1 -1
- package/dist/{chunk-SMRPQEB3.mjs → chunk-5EJVI4V3.mjs} +1 -1
- package/dist/chunk-6AEINX52.mjs +44 -0
- package/dist/{chunk-ODGTGSNM.mjs → chunk-777XXWYS.mjs} +1 -1
- package/dist/{chunk-362LGETO.mjs → chunk-77O7KLUI.mjs} +1 -1
- package/dist/{chunk-VD4MGTVP.mjs → chunk-B55QBA5E.mjs} +1 -1
- package/dist/{chunk-5GLH2ERS.mjs → chunk-CVU6I4IJ.mjs} +1 -1
- package/dist/{chunk-QWYWYOG6.mjs → chunk-DXTDUHS5.mjs} +1 -1
- package/dist/{chunk-PFGLTKGJ.mjs → chunk-EC4F6RJF.mjs} +1 -1
- package/dist/{chunk-HBLCAYSX.mjs → chunk-EGP3AT4R.mjs} +1 -1
- package/dist/{chunk-WNVF6X3M.mjs → chunk-FHNC7F3W.mjs} +1 -1
- package/dist/{chunk-FUMNSN2H.mjs → chunk-GNLIYZAQ.mjs} +1 -1
- package/dist/{chunk-YUBM4HDU.mjs → chunk-GOHT67J3.mjs} +1 -1
- package/dist/{chunk-I5E37FAL.mjs → chunk-JBHEJMGV.mjs} +1 -1
- package/dist/{chunk-YRDQW7V4.mjs → chunk-L37EV5TN.mjs} +1 -1
- package/dist/{chunk-BR6V72YY.mjs → chunk-LENRVMCD.mjs} +1 -1
- package/dist/{chunk-XHQNEGB6.mjs → chunk-LQGOKGQV.mjs} +1 -1
- package/dist/{chunk-J6EGGODL.mjs → chunk-MUPUMXL7.mjs} +1 -1
- package/dist/{chunk-B6QMTIF2.mjs → chunk-NAY2XKLY.mjs} +1 -1
- package/dist/{chunk-VOTIIGIW.mjs → chunk-NVOA7VPK.mjs} +20 -1
- package/dist/{chunk-WYVG7NY6.mjs → chunk-PXVLYT7W.mjs} +1 -1
- package/dist/{chunk-XNF3KCH7.mjs → chunk-Q3TEEYQJ.mjs} +1 -1
- package/dist/{chunk-CLW3JMFF.mjs → chunk-QYW2VWAB.mjs} +1 -1
- package/dist/{chunk-76A2UI6G.mjs → chunk-RJKUWMDJ.mjs} +1 -1
- package/dist/{chunk-QF56VSRK.mjs → chunk-SPRRISBY.mjs} +1 -1
- package/dist/{chunk-JMOQB2OS.mjs → chunk-TDMF44G6.mjs} +1 -1
- package/dist/{chunk-JX6O4KJS.mjs → chunk-U4EMZ2CQ.mjs} +1 -1
- package/dist/{chunk-F36W5Y6O.mjs → chunk-WBNF66V7.mjs} +1 -1
- package/dist/{chunk-TUUOVVH3.mjs → chunk-WODEC7EF.mjs} +4 -4
- package/dist/{chunk-HYA3WURA.mjs → chunk-XPLXQDB3.mjs} +1 -1
- package/dist/{chunk-J7FVLFSZ.mjs → chunk-XY766PDD.mjs} +1 -1
- package/dist/{chunk-AQDGQGUV.mjs → chunk-Y5VJSYKV.mjs} +1 -1
- package/dist/{chunk-N7N2LONM.mjs → chunk-YSXRNNDV.mjs} +1 -1
- package/dist/{chunk-VU5TSYMO.mjs → chunk-ZWJMJMVY.mjs} +1 -1
- package/dist/components/accordion.js +32 -25
- package/dist/components/accordion.mjs +2 -2
- package/dist/components/autocomplete.js +32 -25
- package/dist/components/autocomplete.mjs +2 -2
- package/dist/components/avatar.js +32 -25
- package/dist/components/avatar.mjs +2 -2
- package/dist/components/badge.js +32 -25
- package/dist/components/badge.mjs +2 -2
- package/dist/components/breadcrumbs.js +32 -25
- package/dist/components/breadcrumbs.mjs +2 -2
- package/dist/components/button.js +32 -25
- package/dist/components/button.mjs +2 -2
- package/dist/components/card.js +32 -25
- package/dist/components/card.mjs +2 -2
- package/dist/components/checkbox.js +32 -25
- package/dist/components/checkbox.mjs +2 -2
- package/dist/components/chip.js +51 -25
- package/dist/components/chip.mjs +2 -2
- package/dist/components/circular-progress.js +32 -25
- package/dist/components/circular-progress.mjs +2 -2
- package/dist/components/code.js +32 -25
- package/dist/components/code.mjs +2 -2
- package/dist/components/divider.js +32 -25
- package/dist/components/divider.mjs +2 -2
- package/dist/components/drip.js +32 -25
- package/dist/components/drip.mjs +2 -2
- package/dist/components/dropdown.js +32 -25
- package/dist/components/dropdown.mjs +2 -2
- package/dist/components/image.js +32 -25
- package/dist/components/image.mjs +2 -2
- package/dist/components/index.js +54 -28
- package/dist/components/index.mjs +37 -37
- package/dist/components/input.js +32 -25
- package/dist/components/input.mjs +2 -2
- package/dist/components/kbd.js +32 -25
- package/dist/components/kbd.mjs +2 -2
- package/dist/components/link.js +32 -25
- package/dist/components/link.mjs +2 -2
- package/dist/components/listbox.js +32 -25
- package/dist/components/listbox.mjs +2 -2
- package/dist/components/menu.js +32 -25
- package/dist/components/menu.mjs +2 -2
- package/dist/components/modal.js +32 -25
- package/dist/components/modal.mjs +2 -2
- package/dist/components/navbar.js +32 -25
- package/dist/components/navbar.mjs +2 -2
- package/dist/components/pagination.js +32 -25
- package/dist/components/pagination.mjs +2 -2
- package/dist/components/popover.js +32 -25
- package/dist/components/popover.mjs +2 -2
- package/dist/components/progress.js +32 -25
- package/dist/components/progress.mjs +2 -2
- package/dist/components/radio.js +32 -25
- package/dist/components/radio.mjs +2 -2
- package/dist/components/scroll-shadow.js +32 -25
- package/dist/components/scroll-shadow.mjs +2 -2
- package/dist/components/select.js +32 -25
- package/dist/components/select.mjs +2 -2
- package/dist/components/skeleton.js +32 -25
- package/dist/components/skeleton.mjs +2 -2
- package/dist/components/slider.js +32 -25
- package/dist/components/slider.mjs +2 -2
- package/dist/components/snippet.js +32 -25
- package/dist/components/snippet.mjs +2 -2
- package/dist/components/spacer.js +32 -25
- package/dist/components/spacer.mjs +2 -2
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +32 -25
- package/dist/components/spinner.mjs +2 -2
- package/dist/components/table.js +32 -25
- package/dist/components/table.mjs +2 -2
- package/dist/components/tabs.js +32 -25
- package/dist/components/tabs.mjs +2 -2
- package/dist/components/toggle.js +35 -28
- package/dist/components/toggle.mjs +2 -2
- package/dist/components/user.d.ts +5 -5
- package/dist/components/user.js +32 -25
- package/dist/components/user.mjs +2 -2
- package/dist/index.js +54 -28
- package/dist/index.mjs +37 -37
- package/dist/utils/tv.d.ts +2 -2
- package/dist/utils/tv.js +32 -25
- package/dist/utils/tv.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-WBUVHAJX.mjs +0 -37
package/dist/components/user.js
CHANGED
|
@@ -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 = (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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 = [
|
package/dist/components/user.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
user
|
|
3
|
-
} from "../chunk-
|
|
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-
|
|
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 = (
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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) => ({
|
|
@@ -1751,6 +1758,7 @@ var chip = tv({
|
|
|
1751
1758
|
base: [
|
|
1752
1759
|
"relative",
|
|
1753
1760
|
"max-w-fit",
|
|
1761
|
+
"min-w-min",
|
|
1754
1762
|
"inline-flex",
|
|
1755
1763
|
"items-center",
|
|
1756
1764
|
"justify-between",
|
|
@@ -2133,6 +2141,8 @@ var chip = tv({
|
|
|
2133
2141
|
},
|
|
2134
2142
|
{
|
|
2135
2143
|
isOneChar: true,
|
|
2144
|
+
hasStartContent: false,
|
|
2145
|
+
hasEndContent: false,
|
|
2136
2146
|
size: "sm",
|
|
2137
2147
|
class: {
|
|
2138
2148
|
base: "w-5 h-5 min-w-unit-5 min-h-5"
|
|
@@ -2140,6 +2150,8 @@ var chip = tv({
|
|
|
2140
2150
|
},
|
|
2141
2151
|
{
|
|
2142
2152
|
isOneChar: true,
|
|
2153
|
+
hasStartContent: false,
|
|
2154
|
+
hasEndContent: false,
|
|
2143
2155
|
size: "md",
|
|
2144
2156
|
class: {
|
|
2145
2157
|
base: "w-6 h-6 min-w-unit-6 min-h-6"
|
|
@@ -2147,6 +2159,8 @@ var chip = tv({
|
|
|
2147
2159
|
},
|
|
2148
2160
|
{
|
|
2149
2161
|
isOneChar: true,
|
|
2162
|
+
hasStartContent: false,
|
|
2163
|
+
hasEndContent: false,
|
|
2150
2164
|
size: "lg",
|
|
2151
2165
|
class: {
|
|
2152
2166
|
base: "w-7 h-7 min-w-unit-7 min-h-7"
|
|
@@ -2155,6 +2169,8 @@ var chip = tv({
|
|
|
2155
2169
|
{
|
|
2156
2170
|
isOneChar: true,
|
|
2157
2171
|
isCloseable: false,
|
|
2172
|
+
hasStartContent: false,
|
|
2173
|
+
hasEndContent: false,
|
|
2158
2174
|
class: {
|
|
2159
2175
|
base: "px-0 justify-center",
|
|
2160
2176
|
content: "px-0 flex-none"
|
|
@@ -2163,10 +2179,20 @@ var chip = tv({
|
|
|
2163
2179
|
{
|
|
2164
2180
|
isOneChar: true,
|
|
2165
2181
|
isCloseable: true,
|
|
2182
|
+
hasStartContent: false,
|
|
2183
|
+
hasEndContent: false,
|
|
2166
2184
|
class: {
|
|
2167
2185
|
base: "w-auto"
|
|
2168
2186
|
}
|
|
2169
2187
|
},
|
|
2188
|
+
{
|
|
2189
|
+
isOneChar: true,
|
|
2190
|
+
variant: "dot",
|
|
2191
|
+
class: {
|
|
2192
|
+
base: "w-auto h-7 px-1 items-center",
|
|
2193
|
+
content: "px-2"
|
|
2194
|
+
}
|
|
2195
|
+
},
|
|
2170
2196
|
{
|
|
2171
2197
|
hasStartContent: true,
|
|
2172
2198
|
size: "sm",
|
|
@@ -3392,7 +3418,7 @@ var toggle = tv({
|
|
|
3392
3418
|
wrapper: "w-10 h-6 mr-2",
|
|
3393
3419
|
thumb: [
|
|
3394
3420
|
"w-4 h-4 text-tiny",
|
|
3395
|
-
"group-data-[selected=true]:ml-4"
|
|
3421
|
+
"group-data-[selected=true]:ml-4 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-4"
|
|
3396
3422
|
],
|
|
3397
3423
|
endContent: "text-tiny",
|
|
3398
3424
|
startContent: "text-tiny",
|
|
@@ -3402,7 +3428,7 @@ var toggle = tv({
|
|
|
3402
3428
|
wrapper: "w-12 h-7 mr-2",
|
|
3403
3429
|
thumb: [
|
|
3404
3430
|
"w-5 h-5 text-small",
|
|
3405
|
-
"group-data-[selected=true]:ml-5"
|
|
3431
|
+
"group-data-[selected=true]:ml-5 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-5"
|
|
3406
3432
|
],
|
|
3407
3433
|
endContent: "text-small",
|
|
3408
3434
|
startContent: "text-small",
|
|
@@ -3412,7 +3438,7 @@ var toggle = tv({
|
|
|
3412
3438
|
wrapper: "w-14 h-8 mr-2",
|
|
3413
3439
|
thumb: [
|
|
3414
3440
|
"w-6 h-6 text-medium",
|
|
3415
|
-
"group-data-[selected=true]:ml-6"
|
|
3441
|
+
"group-data-[selected=true]:ml-6 rtl:group-data-[selected=true]:ml-0 rtl:group-data-[selected=true]:mr-6"
|
|
3416
3442
|
],
|
|
3417
3443
|
endContent: "text-medium",
|
|
3418
3444
|
startContent: "text-medium",
|
package/dist/index.mjs
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
1
|
import "./chunk-T6HAGWX5.mjs";
|
|
2
2
|
import {
|
|
3
3
|
slider
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Y5VJSYKV.mjs";
|
|
5
5
|
import {
|
|
6
6
|
snippet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-B55QBA5E.mjs";
|
|
8
8
|
import {
|
|
9
9
|
spacer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EC4F6RJF.mjs";
|
|
11
11
|
import {
|
|
12
12
|
spinner
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NAY2XKLY.mjs";
|
|
14
14
|
import {
|
|
15
15
|
table
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZWJMJMVY.mjs";
|
|
17
17
|
import {
|
|
18
18
|
tabs
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-777XXWYS.mjs";
|
|
20
20
|
import {
|
|
21
21
|
toggle
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WODEC7EF.mjs";
|
|
23
23
|
import {
|
|
24
24
|
user
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2SNOAR5H.mjs";
|
|
26
26
|
import {
|
|
27
27
|
navbar
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LENRVMCD.mjs";
|
|
29
29
|
import {
|
|
30
30
|
pagination
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SPRRISBY.mjs";
|
|
32
32
|
import {
|
|
33
33
|
popover
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FHNC7F3W.mjs";
|
|
35
35
|
import {
|
|
36
36
|
progress
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LQGOKGQV.mjs";
|
|
38
38
|
import {
|
|
39
39
|
radio,
|
|
40
40
|
radioGroup
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-PXVLYT7W.mjs";
|
|
42
42
|
import {
|
|
43
43
|
scrollShadow
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-4JBYJQSP.mjs";
|
|
45
45
|
import {
|
|
46
46
|
select
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-5EJVI4V3.mjs";
|
|
48
48
|
import {
|
|
49
49
|
skeleton
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-U4EMZ2CQ.mjs";
|
|
51
51
|
import {
|
|
52
52
|
image
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-WBNF66V7.mjs";
|
|
54
54
|
import {
|
|
55
55
|
input
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-GOHT67J3.mjs";
|
|
57
57
|
import {
|
|
58
58
|
kbd
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-XY766PDD.mjs";
|
|
60
60
|
import {
|
|
61
61
|
link,
|
|
62
62
|
linkAnchorClasses
|
|
63
|
-
} from "./chunk-
|
|
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-
|
|
69
|
+
} from "./chunk-DXTDUHS5.mjs";
|
|
70
70
|
import {
|
|
71
71
|
modal
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-EGP3AT4R.mjs";
|
|
73
73
|
import {
|
|
74
74
|
card
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-TDMF44G6.mjs";
|
|
76
76
|
import {
|
|
77
77
|
checkbox,
|
|
78
78
|
checkboxGroup
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-QYW2VWAB.mjs";
|
|
80
80
|
import {
|
|
81
81
|
chip
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-NVOA7VPK.mjs";
|
|
83
83
|
import {
|
|
84
84
|
circularProgress
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-XPLXQDB3.mjs";
|
|
86
86
|
import {
|
|
87
87
|
code
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-77O7KLUI.mjs";
|
|
89
89
|
import {
|
|
90
90
|
divider
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-YSXRNNDV.mjs";
|
|
92
92
|
import {
|
|
93
93
|
drip
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-GNLIYZAQ.mjs";
|
|
95
95
|
import {
|
|
96
96
|
dropdown,
|
|
97
97
|
dropdownItem,
|
|
98
98
|
dropdownMenu,
|
|
99
99
|
dropdownSection
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-CVU6I4IJ.mjs";
|
|
101
101
|
import {
|
|
102
102
|
accordion,
|
|
103
103
|
accordionItem
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-JBHEJMGV.mjs";
|
|
105
105
|
import {
|
|
106
106
|
autocomplete
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-3BNHFA72.mjs";
|
|
108
108
|
import {
|
|
109
109
|
avatar,
|
|
110
110
|
avatarGroup
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-MUPUMXL7.mjs";
|
|
112
112
|
import {
|
|
113
113
|
badge
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-L37EV5TN.mjs";
|
|
115
115
|
import {
|
|
116
116
|
breadcrumbItem,
|
|
117
117
|
breadcrumbs
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-RJKUWMDJ.mjs";
|
|
119
119
|
import {
|
|
120
120
|
button,
|
|
121
121
|
buttonGroup
|
|
122
|
-
} from "./chunk-
|
|
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-
|
|
130
|
+
} from "./chunk-6AEINX52.mjs";
|
|
131
131
|
import {
|
|
132
132
|
nextui
|
|
133
133
|
} from "./chunk-5QVKTCUZ.mjs";
|
package/dist/utils/tv.d.ts
CHANGED
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 = (
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextui-org/theme",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.18",
|
|
4
4
|
"description": "The default theme for NextUI components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"theme",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"scripts": {
|
|
94
94
|
"build": "tsup src --dts",
|
|
95
95
|
"build:fast": "tsup src",
|
|
96
|
-
"dev": "
|
|
96
|
+
"dev": "pnpm build:fast --watch",
|
|
97
97
|
"clean": "rimraf dist .turbo",
|
|
98
98
|
"typecheck": "tsc --noEmit"
|
|
99
99
|
}
|
package/dist/chunk-WBUVHAJX.mjs
DELETED
|
@@ -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
|
-
};
|