@nextui-org/theme 2.2.11 → 2.3.0-beta.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.
- package/dist/{chunk-LSQXJEPE.mjs → chunk-2ODFPLXN.mjs} +22 -22
- package/dist/{chunk-TA7PDZUG.mjs → chunk-2TAKWWRG.mjs} +1 -1
- package/dist/chunk-3XDFZGUJ.mjs +216 -0
- package/dist/{chunk-3XVMTUU7.mjs → chunk-46U6G7UJ.mjs} +2 -2
- package/dist/{chunk-MP2JYSMR.mjs → chunk-5VB7JNVX.mjs} +2 -2
- package/dist/{chunk-JBKBSMXM.mjs → chunk-7IYRK3EV.mjs} +1 -1
- package/dist/{chunk-T2VR4T5R.mjs → chunk-AKXXHKTO.mjs} +1 -1
- package/dist/{chunk-EF6G67MF.mjs → chunk-AN5I7NTT.mjs} +1 -1
- package/dist/{chunk-KPVV2V7V.mjs → chunk-AUN4SP2F.mjs} +1 -1
- package/dist/{chunk-A2DU46QS.mjs → chunk-AXSF7SRE.mjs} +1 -1
- package/dist/{chunk-V4SD44VK.mjs → chunk-BWPOLXFL.mjs} +1 -1
- package/dist/{chunk-AXXUQWWC.mjs → chunk-DBPAK7QN.mjs} +1 -1
- package/dist/{chunk-63NMFZTF.mjs → chunk-EGGHND3C.mjs} +2 -2
- package/dist/chunk-EP7KPCL3.mjs +62 -0
- package/dist/{chunk-GQDFLFNG.mjs → chunk-EQPJSVMB.mjs} +1 -1
- package/dist/{chunk-KUKJUMC3.mjs → chunk-FB2NWPDB.mjs} +4 -4
- package/dist/{chunk-ARYJFX77.mjs → chunk-FJGKW3ZE.mjs} +10 -10
- package/dist/{chunk-BYWORP66.mjs → chunk-GIXI35A3.mjs} +8 -1
- package/dist/{chunk-BJ6IKX32.mjs → chunk-GMZHMFEU.mjs} +1 -1
- package/dist/{chunk-BZCSOIUI.mjs → chunk-GQT3YUX3.mjs} +5 -5
- package/dist/{chunk-XL6AWNU3.mjs → chunk-HHK47K4W.mjs} +2 -2
- package/dist/{chunk-MVG7GLBD.mjs → chunk-HIFLYEAM.mjs} +1 -1
- package/dist/{chunk-22SLLLIZ.mjs → chunk-HNRFZTEX.mjs} +3 -3
- package/dist/{chunk-M3GQ3DWZ.mjs → chunk-HZ7J23VD.mjs} +6 -3
- package/dist/{chunk-C3SML4G4.mjs → chunk-IAHJC7C4.mjs} +1 -1
- package/dist/{chunk-2KK3SUMT.mjs → chunk-IZOPFGDE.mjs} +37 -2
- package/dist/{chunk-PWJWH4MD.mjs → chunk-JE6SPRGQ.mjs} +2 -2
- package/dist/{chunk-7YPXCOW5.mjs → chunk-K6KPB2U5.mjs} +1 -1
- package/dist/{chunk-42JWJWWX.mjs → chunk-KTTXIYK2.mjs} +2 -2
- package/dist/{chunk-C43Y2OOL.mjs → chunk-KZ2I3V4D.mjs} +2 -2
- package/dist/{chunk-JFWA3DGK.mjs → chunk-LCMN7HGG.mjs} +19 -13
- package/dist/{chunk-JYFVXE5E.mjs → chunk-LVAEW6WR.mjs} +3 -3
- package/dist/{chunk-R27WO3A6.mjs → chunk-LWG2RR7B.mjs} +2 -2
- package/dist/{chunk-P73E5YV7.mjs → chunk-N67DL6BW.mjs} +2 -4
- package/dist/{chunk-UDSOWFZE.mjs → chunk-OAHW4NON.mjs} +1 -1
- package/dist/{chunk-WGH4WKVU.mjs → chunk-QFGVVQRM.mjs} +2 -2
- package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
- package/dist/{chunk-QWWVIX6M.mjs → chunk-TNFNBUPA.mjs} +5 -4
- package/dist/{chunk-U6G6SZ26.mjs → chunk-TOQXZATI.mjs} +1 -1
- package/dist/{chunk-3QYYLFUC.mjs → chunk-UQZHSMVI.mjs} +1 -1
- package/dist/{chunk-N2KXC5ZE.mjs → chunk-UWE6H66T.mjs} +1 -1
- package/dist/{chunk-KPI62GDB.mjs → chunk-VKSIQ7SR.mjs} +1 -1
- package/dist/{chunk-F4AOWB64.mjs → chunk-VX7HAPUO.mjs} +1 -1
- package/dist/{chunk-DI2L75XK.mjs → chunk-W5UU3F46.mjs} +5 -0
- package/dist/{chunk-QV3ALCMB.mjs → chunk-XQI5RD6S.mjs} +2 -2
- package/dist/{chunk-3LD7T42T.mjs → chunk-XZMJGJQX.mjs} +4 -4
- package/dist/{chunk-VLE2FQQR.mjs → chunk-YLHKOIZS.mjs} +1 -1
- package/dist/{chunk-XXQSA25O.mjs → chunk-YRDDKYYT.mjs} +6 -3
- package/dist/components/accordion.js +8 -1
- package/dist/components/accordion.mjs +5 -5
- package/dist/components/alert.d.ts +344 -0
- package/dist/components/alert.js +355 -0
- package/dist/components/alert.mjs +12 -0
- package/dist/components/autocomplete.js +8 -1
- package/dist/components/autocomplete.mjs +3 -3
- package/dist/components/avatar.js +13 -6
- package/dist/components/avatar.mjs +5 -5
- package/dist/components/badge.js +13 -6
- package/dist/components/badge.mjs +5 -5
- package/dist/components/breadcrumbs.js +9 -2
- package/dist/components/breadcrumbs.mjs +5 -5
- package/dist/components/button.js +17 -7
- package/dist/components/button.mjs +5 -5
- package/dist/components/calendar.js +8 -1
- package/dist/components/calendar.mjs +5 -5
- package/dist/components/card.js +8 -1
- package/dist/components/card.mjs +5 -5
- package/dist/components/checkbox.js +11 -4
- package/dist/components/checkbox.mjs +5 -5
- package/dist/components/chip.js +13 -6
- package/dist/components/chip.mjs +5 -5
- package/dist/components/circular-progress.js +8 -1
- package/dist/components/circular-progress.mjs +3 -3
- package/dist/components/code.js +13 -6
- package/dist/components/code.mjs +5 -5
- package/dist/components/date-input.js +10 -3
- package/dist/components/date-input.mjs +3 -3
- package/dist/components/date-picker.js +9 -2
- package/dist/components/date-picker.mjs +3 -3
- package/dist/components/divider.js +8 -1
- package/dist/components/divider.mjs +3 -3
- package/dist/components/drawer.d.ts +358 -0
- package/dist/components/drawer.js +130 -0
- package/dist/components/drawer.mjs +8 -0
- package/dist/components/drip.js +8 -1
- package/dist/components/drip.mjs +3 -3
- package/dist/components/dropdown.js +8 -1
- package/dist/components/dropdown.mjs +5 -5
- package/dist/components/image.js +8 -1
- package/dist/components/image.mjs +3 -3
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +367 -55
- package/dist/components/index.mjs +68 -60
- package/dist/components/input.d.ts +7 -0
- package/dist/components/input.js +12 -4
- package/dist/components/input.mjs +5 -5
- package/dist/components/kbd.js +8 -1
- package/dist/components/kbd.mjs +3 -3
- package/dist/components/link.js +8 -1
- package/dist/components/link.mjs +5 -5
- package/dist/components/listbox.js +8 -1
- package/dist/components/listbox.mjs +5 -5
- package/dist/components/menu.js +8 -1
- package/dist/components/menu.mjs +5 -5
- package/dist/components/modal.js +9 -4
- package/dist/components/modal.mjs +5 -5
- package/dist/components/navbar.js +8 -1
- package/dist/components/navbar.mjs +5 -5
- package/dist/components/pagination.js +13 -6
- package/dist/components/pagination.mjs +5 -5
- package/dist/components/popover.js +13 -6
- package/dist/components/popover.mjs +5 -5
- package/dist/components/progress.js +44 -2
- package/dist/components/progress.mjs +3 -3
- package/dist/components/radio.js +10 -3
- package/dist/components/radio.mjs +5 -5
- package/dist/components/scroll-shadow.js +8 -1
- package/dist/components/scroll-shadow.mjs +3 -3
- package/dist/components/select.d.ts +21 -0
- package/dist/components/select.js +13 -3
- package/dist/components/select.mjs +5 -5
- package/dist/components/skeleton.js +8 -1
- package/dist/components/skeleton.mjs +3 -3
- package/dist/components/slider.js +8 -1
- package/dist/components/slider.mjs +5 -5
- package/dist/components/snippet.js +13 -6
- package/dist/components/snippet.mjs +5 -5
- package/dist/components/spacer.js +8 -1
- package/dist/components/spacer.mjs +3 -3
- package/dist/components/spinner.js +8 -1
- package/dist/components/spinner.mjs +3 -3
- package/dist/components/table.js +29 -22
- package/dist/components/table.mjs +5 -5
- package/dist/components/tabs.js +13 -6
- package/dist/components/tabs.mjs +5 -5
- package/dist/components/toggle.js +17 -10
- package/dist/components/toggle.mjs +5 -5
- package/dist/components/user.d.ts +26 -27
- package/dist/components/user.js +8 -1
- package/dist/components/user.mjs +5 -5
- package/dist/index.d.ts +2 -1
- package/dist/index.js +392 -69
- package/dist/index.mjs +74 -66
- package/dist/plugin.js +24 -13
- package/dist/plugin.mjs +4 -4
- package/dist/utilities/custom.d.ts +5 -0
- package/dist/utilities/custom.js +5 -0
- package/dist/utilities/custom.mjs +1 -1
- package/dist/utilities/index.d.ts +5 -0
- package/dist/utilities/index.js +5 -0
- package/dist/utilities/index.mjs +3 -3
- package/dist/utils/cn.js +9 -2
- package/dist/utils/cn.mjs +2 -2
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +14 -7
- package/dist/utils/index.mjs +5 -5
- package/dist/utils/tv.js +8 -1
- package/dist/utils/tv.mjs +2 -2
- package/dist/utils/tw-merge-config.d.ts +17 -3
- package/dist/utils/tw-merge-config.js +8 -1
- package/dist/utils/tw-merge-config.mjs +1 -1
- package/dist/utils/variants.js +5 -5
- package/dist/utils/variants.mjs +1 -1
- package/package.json +3 -12
- /package/dist/{chunk-UVXYPGDZ.mjs → chunk-MA4DKK64.mjs} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,157 +1,163 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-MA4DKK64.mjs";
|
|
2
|
+
import {
|
|
3
|
+
spinner
|
|
4
|
+
} from "./chunk-DBPAK7QN.mjs";
|
|
5
|
+
import {
|
|
6
|
+
table
|
|
7
|
+
} from "./chunk-2ODFPLXN.mjs";
|
|
2
8
|
import {
|
|
3
9
|
tabs
|
|
4
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KTTXIYK2.mjs";
|
|
5
11
|
import {
|
|
6
12
|
toggle
|
|
7
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FJGKW3ZE.mjs";
|
|
8
14
|
import {
|
|
9
15
|
user
|
|
10
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GMZHMFEU.mjs";
|
|
17
|
+
import {
|
|
18
|
+
progress
|
|
19
|
+
} from "./chunk-IZOPFGDE.mjs";
|
|
20
|
+
import {
|
|
21
|
+
radio,
|
|
22
|
+
radioGroup
|
|
23
|
+
} from "./chunk-LVAEW6WR.mjs";
|
|
11
24
|
import {
|
|
12
25
|
scrollShadow
|
|
13
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AN5I7NTT.mjs";
|
|
14
27
|
import {
|
|
15
28
|
select
|
|
16
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HZ7J23VD.mjs";
|
|
17
30
|
import {
|
|
18
31
|
skeleton
|
|
19
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OAHW4NON.mjs";
|
|
20
33
|
import {
|
|
21
34
|
slider
|
|
22
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-7IYRK3EV.mjs";
|
|
23
36
|
import {
|
|
24
37
|
snippet
|
|
25
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SC2SILVU.mjs";
|
|
26
39
|
import {
|
|
27
40
|
spacer
|
|
28
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-AKXXHKTO.mjs";
|
|
29
42
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
43
|
+
kbd
|
|
44
|
+
} from "./chunk-VX7HAPUO.mjs";
|
|
32
45
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
46
|
+
link,
|
|
47
|
+
linkAnchorClasses
|
|
48
|
+
} from "./chunk-IAHJC7C4.mjs";
|
|
35
49
|
import "./chunk-YJLQTC7L.mjs";
|
|
36
50
|
import {
|
|
37
51
|
menu,
|
|
38
52
|
menuItem,
|
|
39
53
|
menuSection
|
|
40
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-K6KPB2U5.mjs";
|
|
41
55
|
import {
|
|
42
56
|
modal
|
|
43
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-N67DL6BW.mjs";
|
|
44
58
|
import {
|
|
45
59
|
navbar
|
|
46
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-UQZHSMVI.mjs";
|
|
47
61
|
import {
|
|
48
62
|
pagination
|
|
49
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-EGGHND3C.mjs";
|
|
50
64
|
import {
|
|
51
65
|
popover
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import {
|
|
54
|
-
progress
|
|
55
|
-
} from "./chunk-2KK3SUMT.mjs";
|
|
66
|
+
} from "./chunk-HHK47K4W.mjs";
|
|
56
67
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
} from "./chunk-
|
|
68
|
+
datePicker,
|
|
69
|
+
dateRangePicker
|
|
70
|
+
} from "./chunk-QFGVVQRM.mjs";
|
|
60
71
|
import {
|
|
61
72
|
divider
|
|
62
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-AXSF7SRE.mjs";
|
|
74
|
+
import {
|
|
75
|
+
drawer
|
|
76
|
+
} from "./chunk-EP7KPCL3.mjs";
|
|
63
77
|
import {
|
|
64
78
|
drip
|
|
65
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-BWPOLXFL.mjs";
|
|
66
80
|
import {
|
|
67
81
|
dropdown,
|
|
68
82
|
dropdownItem,
|
|
69
83
|
dropdownMenu,
|
|
70
84
|
dropdownSection
|
|
71
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-EQPJSVMB.mjs";
|
|
72
86
|
import {
|
|
73
87
|
image
|
|
74
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-TOQXZATI.mjs";
|
|
75
89
|
import {
|
|
76
90
|
input
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import {
|
|
79
|
-
kbd
|
|
80
|
-
} from "./chunk-F4AOWB64.mjs";
|
|
91
|
+
} from "./chunk-TNFNBUPA.mjs";
|
|
81
92
|
import {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
} from "./chunk-
|
|
93
|
+
button,
|
|
94
|
+
buttonGroup
|
|
95
|
+
} from "./chunk-YRDDKYYT.mjs";
|
|
85
96
|
import {
|
|
86
97
|
calendar
|
|
87
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-VKSIQ7SR.mjs";
|
|
88
99
|
import {
|
|
89
100
|
card
|
|
90
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-YLHKOIZS.mjs";
|
|
91
102
|
import {
|
|
92
103
|
checkbox,
|
|
93
104
|
checkboxGroup
|
|
94
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-FB2NWPDB.mjs";
|
|
95
106
|
import {
|
|
96
107
|
chip
|
|
97
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-5VB7JNVX.mjs";
|
|
98
109
|
import {
|
|
99
110
|
circularProgress
|
|
100
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-AUN4SP2F.mjs";
|
|
101
112
|
import {
|
|
102
113
|
code
|
|
103
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-JE6SPRGQ.mjs";
|
|
104
115
|
import {
|
|
105
116
|
dateInput
|
|
106
|
-
} from "./chunk-
|
|
107
|
-
import {
|
|
108
|
-
datePicker,
|
|
109
|
-
dateRangePicker
|
|
110
|
-
} from "./chunk-WGH4WKVU.mjs";
|
|
117
|
+
} from "./chunk-HNRFZTEX.mjs";
|
|
111
118
|
import {
|
|
112
119
|
accordion,
|
|
113
120
|
accordionItem
|
|
114
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-HIFLYEAM.mjs";
|
|
122
|
+
import {
|
|
123
|
+
alert
|
|
124
|
+
} from "./chunk-3XDFZGUJ.mjs";
|
|
115
125
|
import {
|
|
116
126
|
autocomplete
|
|
117
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-2TAKWWRG.mjs";
|
|
118
128
|
import {
|
|
119
129
|
avatar,
|
|
120
130
|
avatarGroup
|
|
121
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-LWG2RR7B.mjs";
|
|
122
132
|
import {
|
|
123
133
|
badge
|
|
124
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-XQI5RD6S.mjs";
|
|
125
135
|
import {
|
|
126
136
|
breadcrumbItem,
|
|
127
137
|
breadcrumbs
|
|
128
|
-
} from "./chunk-
|
|
129
|
-
import {
|
|
130
|
-
button,
|
|
131
|
-
buttonGroup
|
|
132
|
-
} from "./chunk-XXQSA25O.mjs";
|
|
138
|
+
} from "./chunk-KZ2I3V4D.mjs";
|
|
133
139
|
import "./chunk-IV3K5WDK.mjs";
|
|
134
|
-
import {
|
|
135
|
-
cn
|
|
136
|
-
} from "./chunk-3XVMTUU7.mjs";
|
|
137
140
|
import {
|
|
138
141
|
colorVariants
|
|
139
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-GQT3YUX3.mjs";
|
|
143
|
+
import {
|
|
144
|
+
cn
|
|
145
|
+
} from "./chunk-46U6G7UJ.mjs";
|
|
140
146
|
import {
|
|
141
147
|
tv
|
|
142
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-UWE6H66T.mjs";
|
|
143
149
|
import {
|
|
144
150
|
COMMON_UNITS,
|
|
145
151
|
twMergeConfig
|
|
146
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-GIXI35A3.mjs";
|
|
147
153
|
import {
|
|
148
154
|
nextui
|
|
149
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-LCMN7HGG.mjs";
|
|
150
156
|
import "./chunk-D2XMP2NC.mjs";
|
|
151
|
-
import "./chunk-
|
|
152
|
-
import "./chunk-DI2L75XK.mjs";
|
|
153
|
-
import "./chunk-4Z22WXZX.mjs";
|
|
157
|
+
import "./chunk-XZMJGJQX.mjs";
|
|
154
158
|
import "./chunk-WN6AL2BX.mjs";
|
|
159
|
+
import "./chunk-W5UU3F46.mjs";
|
|
160
|
+
import "./chunk-4Z22WXZX.mjs";
|
|
155
161
|
import {
|
|
156
162
|
absoluteFullClasses,
|
|
157
163
|
baseStyles,
|
|
@@ -194,6 +200,7 @@ export {
|
|
|
194
200
|
absoluteFullClasses,
|
|
195
201
|
accordion,
|
|
196
202
|
accordionItem,
|
|
203
|
+
alert,
|
|
197
204
|
autocomplete,
|
|
198
205
|
avatar,
|
|
199
206
|
avatarGroup,
|
|
@@ -222,6 +229,7 @@ export {
|
|
|
222
229
|
dateRangePicker,
|
|
223
230
|
defaultLayout,
|
|
224
231
|
divider,
|
|
232
|
+
drawer,
|
|
225
233
|
drip,
|
|
226
234
|
dropdown,
|
|
227
235
|
dropdownItem,
|
package/dist/plugin.js
CHANGED
|
@@ -31,12 +31,8 @@ __export(plugin_exports, {
|
|
|
31
31
|
module.exports = __toCommonJS(plugin_exports);
|
|
32
32
|
var import_color = __toESM(require("color"));
|
|
33
33
|
var import_plugin = __toESM(require("tailwindcss/plugin.js"));
|
|
34
|
-
var import_lodash = __toESM(require("lodash.get"));
|
|
35
|
-
var import_lodash2 = __toESM(require("lodash.omit"));
|
|
36
|
-
var import_lodash3 = __toESM(require("lodash.foreach"));
|
|
37
|
-
var import_lodash4 = __toESM(require("lodash.mapkeys"));
|
|
38
|
-
var import_lodash5 = __toESM(require("lodash.kebabcase"));
|
|
39
34
|
var import_deepmerge = __toESM(require("deepmerge"));
|
|
35
|
+
var import_shared_utils = require("@nextui-org/shared-utils");
|
|
40
36
|
|
|
41
37
|
// src/colors/blue.ts
|
|
42
38
|
var blue = {
|
|
@@ -493,6 +489,11 @@ var custom_default = {
|
|
|
493
489
|
},
|
|
494
490
|
".tap-highlight-transparent": {
|
|
495
491
|
"-webkit-tap-highlight-color": "transparent"
|
|
492
|
+
},
|
|
493
|
+
".input-search-cancel-button-none": {
|
|
494
|
+
"&::-webkit-search-cancel-button": {
|
|
495
|
+
"-webkit-appearance": "none"
|
|
496
|
+
}
|
|
496
497
|
}
|
|
497
498
|
};
|
|
498
499
|
|
|
@@ -593,7 +594,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
593
594
|
"color-scheme": scheme
|
|
594
595
|
} : {};
|
|
595
596
|
const flatColors = flattenThemeObject(colors2);
|
|
596
|
-
const flatLayout = layout ? (0,
|
|
597
|
+
const flatLayout = layout ? (0, import_shared_utils.mapKeys)(layout, (_, key) => (0, import_shared_utils.kebabCase)(key)) : {};
|
|
597
598
|
resolved.variants.push({
|
|
598
599
|
name: themeName,
|
|
599
600
|
definition: [`&.${themeName}`, `&[data-theme='${themeName}']`]
|
|
@@ -643,6 +644,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
643
644
|
};
|
|
644
645
|
var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
645
646
|
const resolved = resolveConfig(themes, defaultTheme, prefix);
|
|
647
|
+
const createStripeGradient = (stripeColor, backgroundColor) => `linear-gradient(45deg, hsl(var(--${prefix}-${stripeColor})) 25%, hsl(var(--${prefix}-${backgroundColor})) 25%, hsl(var(--${prefix}-${backgroundColor})) 50%, hsl(var(--${prefix}-${stripeColor})) 50%, hsl(var(--${prefix}-${stripeColor})) 75%, hsl(var(--${prefix}-${backgroundColor})) 75%, hsl(var(--${prefix}-${backgroundColor})))`;
|
|
646
648
|
return (0, import_plugin.default)(
|
|
647
649
|
({ addBase, addUtilities, addVariant }) => {
|
|
648
650
|
addBase({
|
|
@@ -701,8 +703,16 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
701
703
|
medium: `var(--${prefix}-box-shadow-medium)`,
|
|
702
704
|
large: `var(--${prefix}-box-shadow-large)`
|
|
703
705
|
},
|
|
706
|
+
backgroundSize: {
|
|
707
|
+
"stripe-size": "1.25rem 1.25rem"
|
|
708
|
+
},
|
|
704
709
|
backgroundImage: {
|
|
705
|
-
"stripe-gradient": "
|
|
710
|
+
"stripe-gradient-default": createStripeGradient("default-200", "default-400"),
|
|
711
|
+
"stripe-gradient-primary": createStripeGradient("primary-200", "primary"),
|
|
712
|
+
"stripe-gradient-secondary": createStripeGradient("secondary-200", "secondary"),
|
|
713
|
+
"stripe-gradient-success": createStripeGradient("success-200", "success"),
|
|
714
|
+
"stripe-gradient-warning": createStripeGradient("warning-200", "warning"),
|
|
715
|
+
"stripe-gradient-danger": createStripeGradient("danger-200", "danger")
|
|
706
716
|
},
|
|
707
717
|
transitionDuration: {
|
|
708
718
|
0: "0ms",
|
|
@@ -720,6 +730,7 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
720
730
|
);
|
|
721
731
|
};
|
|
722
732
|
var nextui = (config = {}) => {
|
|
733
|
+
var _a, _b, _c, _d;
|
|
723
734
|
const {
|
|
724
735
|
themes: themeObject = {},
|
|
725
736
|
defaultTheme = "light",
|
|
@@ -728,8 +739,8 @@ var nextui = (config = {}) => {
|
|
|
728
739
|
prefix: defaultPrefix = DEFAULT_PREFIX,
|
|
729
740
|
addCommonColors = false
|
|
730
741
|
} = config;
|
|
731
|
-
const userLightColors = (0
|
|
732
|
-
const userDarkColors = (0
|
|
742
|
+
const userLightColors = ((_a = themeObject == null ? void 0 : themeObject.light) == null ? void 0 : _a.colors) || {};
|
|
743
|
+
const userDarkColors = ((_b = themeObject == null ? void 0 : themeObject.dark) == null ? void 0 : _b.colors) || {};
|
|
733
744
|
const defaultLayoutObj = userLayout && typeof userLayout === "object" ? (0, import_deepmerge.default)(defaultLayout, userLayout) : defaultLayout;
|
|
734
745
|
const baseLayouts = {
|
|
735
746
|
light: {
|
|
@@ -741,8 +752,8 @@ var nextui = (config = {}) => {
|
|
|
741
752
|
...darkLayout
|
|
742
753
|
}
|
|
743
754
|
};
|
|
744
|
-
let otherThemes = (0,
|
|
745
|
-
(
|
|
755
|
+
let otherThemes = (0, import_shared_utils.omit)(themeObject, ["light", "dark"]) || {};
|
|
756
|
+
Object.entries(otherThemes).forEach(([themeName, { extend, colors: colors2, layout }]) => {
|
|
746
757
|
const baseTheme = extend && isBaseTheme(extend) ? extend : defaultExtendTheme;
|
|
747
758
|
if (colors2 && typeof colors2 === "object") {
|
|
748
759
|
otherThemes[themeName].colors = (0, import_deepmerge.default)(semanticColors[baseTheme], colors2);
|
|
@@ -755,11 +766,11 @@ var nextui = (config = {}) => {
|
|
|
755
766
|
}
|
|
756
767
|
});
|
|
757
768
|
const light = {
|
|
758
|
-
layout: (0, import_deepmerge.default)(baseLayouts.light, (0
|
|
769
|
+
layout: (0, import_deepmerge.default)(baseLayouts.light, ((_c = themeObject == null ? void 0 : themeObject.light) == null ? void 0 : _c.layout) || {}),
|
|
759
770
|
colors: (0, import_deepmerge.default)(semanticColors.light, userLightColors)
|
|
760
771
|
};
|
|
761
772
|
const dark = {
|
|
762
|
-
layout: (0, import_deepmerge.default)(baseLayouts.dark, (0
|
|
773
|
+
layout: (0, import_deepmerge.default)(baseLayouts.dark, ((_d = themeObject == null ? void 0 : themeObject.dark) == null ? void 0 : _d.layout) || {}),
|
|
763
774
|
colors: (0, import_deepmerge.default)(semanticColors.dark, userDarkColors)
|
|
764
775
|
};
|
|
765
776
|
const themes = {
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nextui
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LCMN7HGG.mjs";
|
|
4
4
|
import "./chunk-D2XMP2NC.mjs";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-DI2L75XK.mjs";
|
|
7
|
-
import "./chunk-4Z22WXZX.mjs";
|
|
5
|
+
import "./chunk-XZMJGJQX.mjs";
|
|
8
6
|
import "./chunk-WN6AL2BX.mjs";
|
|
7
|
+
import "./chunk-W5UU3F46.mjs";
|
|
8
|
+
import "./chunk-4Z22WXZX.mjs";
|
|
9
9
|
import "./chunk-XHQUSKIE.mjs";
|
|
10
10
|
import "./chunk-WQEDQHKX.mjs";
|
|
11
11
|
import "./chunk-QZTWGJ72.mjs";
|
|
@@ -17,6 +17,11 @@ declare const _default: {
|
|
|
17
17
|
".tap-highlight-transparent": {
|
|
18
18
|
"-webkit-tap-highlight-color": string;
|
|
19
19
|
};
|
|
20
|
+
".input-search-cancel-button-none": {
|
|
21
|
+
"&::-webkit-search-cancel-button": {
|
|
22
|
+
"-webkit-appearance": string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
20
25
|
};
|
|
21
26
|
|
|
22
27
|
export { _default as default };
|
package/dist/utilities/custom.js
CHANGED
|
@@ -38,6 +38,11 @@ var custom_default = {
|
|
|
38
38
|
},
|
|
39
39
|
".tap-highlight-transparent": {
|
|
40
40
|
"-webkit-tap-highlight-color": "transparent"
|
|
41
|
+
},
|
|
42
|
+
".input-search-cancel-button-none": {
|
|
43
|
+
"&::-webkit-search-cancel-button": {
|
|
44
|
+
"-webkit-appearance": "none"
|
|
45
|
+
}
|
|
41
46
|
}
|
|
42
47
|
};
|
|
43
48
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -78,6 +78,11 @@ declare const utilities: {
|
|
|
78
78
|
".tap-highlight-transparent": {
|
|
79
79
|
"-webkit-tap-highlight-color": string;
|
|
80
80
|
};
|
|
81
|
+
".input-search-cancel-button-none": {
|
|
82
|
+
"&::-webkit-search-cancel-button": {
|
|
83
|
+
"-webkit-appearance": string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
81
86
|
};
|
|
82
87
|
|
|
83
88
|
export { utilities };
|
package/dist/utilities/index.js
CHANGED
|
@@ -95,6 +95,11 @@ var custom_default = {
|
|
|
95
95
|
},
|
|
96
96
|
".tap-highlight-transparent": {
|
|
97
97
|
"-webkit-tap-highlight-color": "transparent"
|
|
98
|
+
},
|
|
99
|
+
".input-search-cancel-button-none": {
|
|
100
|
+
"&::-webkit-search-cancel-button": {
|
|
101
|
+
"-webkit-appearance": "none"
|
|
102
|
+
}
|
|
98
103
|
}
|
|
99
104
|
};
|
|
100
105
|
|
package/dist/utilities/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
utilities
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-DI2L75XK.mjs";
|
|
5
|
-
import "../chunk-4Z22WXZX.mjs";
|
|
3
|
+
} from "../chunk-XZMJGJQX.mjs";
|
|
6
4
|
import "../chunk-WN6AL2BX.mjs";
|
|
5
|
+
import "../chunk-W5UU3F46.mjs";
|
|
6
|
+
import "../chunk-4Z22WXZX.mjs";
|
|
7
7
|
export {
|
|
8
8
|
utilities
|
|
9
9
|
};
|
package/dist/utils/cn.js
CHANGED
|
@@ -44,12 +44,19 @@ var twMergeConfig = {
|
|
|
44
44
|
classGroups: {
|
|
45
45
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
46
46
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
47
|
-
"bg-image": [
|
|
47
|
+
"bg-image": [
|
|
48
|
+
"bg-stripe-gradient-default",
|
|
49
|
+
"bg-stripe-gradient-primary",
|
|
50
|
+
"bg-stripe-gradient-secondary",
|
|
51
|
+
"bg-stripe-gradient-success",
|
|
52
|
+
"bg-stripe-gradient-warning",
|
|
53
|
+
"bg-stripe-gradient-danger"
|
|
54
|
+
]
|
|
48
55
|
}
|
|
49
56
|
};
|
|
50
57
|
|
|
51
58
|
// src/utils/cn.ts
|
|
52
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)(twMergeConfig);
|
|
59
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({ extend: twMergeConfig });
|
|
53
60
|
function cn(...inputs) {
|
|
54
61
|
return twMerge((0, import_clsx.default)(inputs));
|
|
55
62
|
}
|
package/dist/utils/cn.mjs
CHANGED
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -121,11 +121,11 @@ var bordered = {
|
|
|
121
121
|
};
|
|
122
122
|
var flat = {
|
|
123
123
|
default: "bg-default/40 text-default-700",
|
|
124
|
-
primary: "bg-primary/20 text-primary-
|
|
125
|
-
secondary: "bg-secondary/20 text-secondary-
|
|
126
|
-
success: "bg-success/20 text-success-
|
|
127
|
-
warning: "bg-warning/20 text-warning-
|
|
128
|
-
danger: "bg-danger/20 text-danger-
|
|
124
|
+
primary: "bg-primary/20 text-primary-600",
|
|
125
|
+
secondary: "bg-secondary/20 text-secondary-600",
|
|
126
|
+
success: "bg-success/20 text-success-700 dark:text-success",
|
|
127
|
+
warning: "bg-warning/20 text-warning-700 dark:text-warning",
|
|
128
|
+
danger: "bg-danger/20 text-danger-600 dark:text-danger-500",
|
|
129
129
|
foreground: "bg-foreground/10 text-foreground"
|
|
130
130
|
};
|
|
131
131
|
var faded = {
|
|
@@ -177,14 +177,21 @@ var twMergeConfig = {
|
|
|
177
177
|
classGroups: {
|
|
178
178
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
179
179
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
180
|
-
"bg-image": [
|
|
180
|
+
"bg-image": [
|
|
181
|
+
"bg-stripe-gradient-default",
|
|
182
|
+
"bg-stripe-gradient-primary",
|
|
183
|
+
"bg-stripe-gradient-secondary",
|
|
184
|
+
"bg-stripe-gradient-success",
|
|
185
|
+
"bg-stripe-gradient-warning",
|
|
186
|
+
"bg-stripe-gradient-danger"
|
|
187
|
+
]
|
|
181
188
|
}
|
|
182
189
|
};
|
|
183
190
|
|
|
184
191
|
// src/utils/cn.ts
|
|
185
192
|
var import_clsx = __toESM(require("clsx"));
|
|
186
193
|
var import_tailwind_merge = require("tailwind-merge");
|
|
187
|
-
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)(twMergeConfig);
|
|
194
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({ extend: twMergeConfig });
|
|
188
195
|
function cn(...inputs) {
|
|
189
196
|
return twMerge((0, import_clsx.default)(inputs));
|
|
190
197
|
}
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../chunk-IV3K5WDK.mjs";
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "../chunk-3XVMTUU7.mjs";
|
|
5
2
|
import {
|
|
6
3
|
colorVariants
|
|
7
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-GQT3YUX3.mjs";
|
|
5
|
+
import {
|
|
6
|
+
cn
|
|
7
|
+
} from "../chunk-46U6G7UJ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
COMMON_UNITS,
|
|
10
10
|
twMergeConfig
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-GIXI35A3.mjs";
|
|
12
12
|
import {
|
|
13
13
|
absoluteFullClasses,
|
|
14
14
|
baseStyles,
|
package/dist/utils/tv.js
CHANGED
|
@@ -37,7 +37,14 @@ var twMergeConfig = {
|
|
|
37
37
|
classGroups: {
|
|
38
38
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
39
39
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
40
|
-
"bg-image": [
|
|
40
|
+
"bg-image": [
|
|
41
|
+
"bg-stripe-gradient-default",
|
|
42
|
+
"bg-stripe-gradient-primary",
|
|
43
|
+
"bg-stripe-gradient-secondary",
|
|
44
|
+
"bg-stripe-gradient-success",
|
|
45
|
+
"bg-stripe-gradient-warning",
|
|
46
|
+
"bg-stripe-gradient-danger"
|
|
47
|
+
]
|
|
41
48
|
}
|
|
42
49
|
};
|
|
43
50
|
|
package/dist/utils/tv.mjs
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import { Config } from 'tailwind-merge';
|
|
2
|
-
|
|
3
1
|
declare const COMMON_UNITS: string[];
|
|
4
|
-
declare const twMergeConfig:
|
|
2
|
+
declare const twMergeConfig: {
|
|
3
|
+
theme: {
|
|
4
|
+
opacity: string[];
|
|
5
|
+
spacing: string[];
|
|
6
|
+
borderWidth: string[];
|
|
7
|
+
borderRadius: string[];
|
|
8
|
+
};
|
|
9
|
+
classGroups: {
|
|
10
|
+
shadow: {
|
|
11
|
+
shadow: string[];
|
|
12
|
+
}[];
|
|
13
|
+
"font-size": {
|
|
14
|
+
text: string[];
|
|
15
|
+
}[];
|
|
16
|
+
"bg-image": string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
5
19
|
|
|
6
20
|
export { COMMON_UNITS, twMergeConfig };
|
|
@@ -35,7 +35,14 @@ var twMergeConfig = {
|
|
|
35
35
|
classGroups: {
|
|
36
36
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
37
37
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
38
|
-
"bg-image": [
|
|
38
|
+
"bg-image": [
|
|
39
|
+
"bg-stripe-gradient-default",
|
|
40
|
+
"bg-stripe-gradient-primary",
|
|
41
|
+
"bg-stripe-gradient-secondary",
|
|
42
|
+
"bg-stripe-gradient-success",
|
|
43
|
+
"bg-stripe-gradient-warning",
|
|
44
|
+
"bg-stripe-gradient-danger"
|
|
45
|
+
]
|
|
39
46
|
}
|
|
40
47
|
};
|
|
41
48
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/utils/variants.js
CHANGED
|
@@ -52,11 +52,11 @@ var bordered = {
|
|
|
52
52
|
};
|
|
53
53
|
var flat = {
|
|
54
54
|
default: "bg-default/40 text-default-700",
|
|
55
|
-
primary: "bg-primary/20 text-primary-
|
|
56
|
-
secondary: "bg-secondary/20 text-secondary-
|
|
57
|
-
success: "bg-success/20 text-success-
|
|
58
|
-
warning: "bg-warning/20 text-warning-
|
|
59
|
-
danger: "bg-danger/20 text-danger-
|
|
55
|
+
primary: "bg-primary/20 text-primary-600",
|
|
56
|
+
secondary: "bg-secondary/20 text-secondary-600",
|
|
57
|
+
success: "bg-success/20 text-success-700 dark:text-success",
|
|
58
|
+
warning: "bg-warning/20 text-warning-700 dark:text-warning",
|
|
59
|
+
danger: "bg-danger/20 text-danger-600 dark:text-danger-500",
|
|
60
60
|
foreground: "bg-foreground/10 text-foreground"
|
|
61
61
|
};
|
|
62
62
|
var faded = {
|