@nextui-org/theme 2.1.17 → 2.2.0
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/README.md +1 -1
- package/dist/{chunk-XY766PDD.mjs → chunk-3FZU25GR.mjs} +2 -1
- package/dist/{chunk-CVU6I4IJ.mjs → chunk-4ZM6AI3H.mjs} +1 -1
- package/dist/{chunk-LQGOKGQV.mjs → chunk-524WVPFR.mjs} +1 -1
- package/dist/{chunk-RJKUWMDJ.mjs → chunk-6XJJCV76.mjs} +1 -1
- package/dist/{chunk-S7W5DQP2.mjs → chunk-726LN7M3.mjs} +1 -1
- package/dist/{chunk-PXVLYT7W.mjs → chunk-7ELFOVMX.mjs} +1 -1
- package/dist/{chunk-FXXH62BP.mjs → chunk-7ODIBITJ.mjs} +9 -9
- package/dist/chunk-7TJINK3S.mjs +390 -0
- package/dist/{chunk-G2RPAV6S.mjs → chunk-AC6F4DT6.mjs} +23 -4
- package/dist/{chunk-GNLIYZAQ.mjs → chunk-AGUZRGXC.mjs} +1 -1
- package/dist/{chunk-U4EMZ2CQ.mjs → chunk-AO2AAOEJ.mjs} +2 -2
- package/dist/{chunk-3BNHFA72.mjs → chunk-AT4OXKKK.mjs} +1 -1
- package/dist/chunk-BHDPFX6P.mjs +400 -0
- package/dist/chunk-BLAJANNW.mjs +43 -0
- package/dist/{chunk-5EJVI4V3.mjs → chunk-CTY7IP65.mjs} +29 -13
- package/dist/{chunk-DXTDUHS5.mjs → chunk-CUUGEIPA.mjs} +1 -1
- package/dist/chunk-D2XMP2NC.mjs +6 -0
- package/dist/{chunk-4JBYJQSP.mjs → chunk-ECP4S2VZ.mjs} +1 -1
- package/dist/{chunk-B55QBA5E.mjs → chunk-FRI2VDCA.mjs} +1 -1
- package/dist/{chunk-6AEINX52.mjs → chunk-GMMETTYU.mjs} +2 -16
- package/dist/{chunk-Y5VJSYKV.mjs → chunk-GMUSZ3YF.mjs} +1 -1
- package/dist/{chunk-FHNC7F3W.mjs → chunk-HGSHFC5N.mjs} +7 -1
- package/dist/{chunk-G3PB7L4N.mjs → chunk-HPFX3B3F.mjs} +1 -30
- package/dist/{chunk-VZI6SR6H.mjs → chunk-HUBDRSA4.mjs} +1 -2
- package/dist/{chunk-33DU6C7I.mjs → chunk-I6ESTKKY.mjs} +9 -9
- package/dist/{chunk-EGP3AT4R.mjs → chunk-IP3D7KVB.mjs} +3 -1
- package/dist/{chunk-Q3TEEYQJ.mjs → chunk-JQTFOIV7.mjs} +1 -1
- package/dist/{chunk-JBHEJMGV.mjs → chunk-KCOC3H6R.mjs} +1 -1
- package/dist/{chunk-ZWJMJMVY.mjs → chunk-KVPPQD2E.mjs} +27 -5
- package/dist/{chunk-WBNF66V7.mjs → chunk-LDBYFTHC.mjs} +1 -1
- package/dist/{chunk-GOHT67J3.mjs → chunk-MUWHEIW6.mjs} +13 -6
- package/dist/{chunk-2SNOAR5H.mjs → chunk-NAUU2OUH.mjs} +1 -1
- package/dist/{chunk-QYW2VWAB.mjs → chunk-NYSEAAK5.mjs} +4 -4
- package/dist/{chunk-LENRVMCD.mjs → chunk-OQIS4MXV.mjs} +1 -1
- package/dist/{chunk-NAY2XKLY.mjs → chunk-PSEUPXFL.mjs} +1 -1
- package/dist/{chunk-SPRRISBY.mjs → chunk-RNAP5C4C.mjs} +1 -1
- package/dist/{chunk-L37EV5TN.mjs → chunk-S573WUYY.mjs} +1 -1
- package/dist/{chunk-777XXWYS.mjs → chunk-SEKJ6A6T.mjs} +19 -2
- package/dist/{chunk-YSXRNNDV.mjs → chunk-UODOTC2G.mjs} +1 -1
- package/dist/{chunk-77O7KLUI.mjs → chunk-V5ZTBGGO.mjs} +1 -1
- package/dist/{chunk-MUPUMXL7.mjs → chunk-VDRJHB4F.mjs} +7 -4
- package/dist/{chunk-EC4F6RJF.mjs → chunk-W6DVXJB3.mjs} +1 -1
- package/dist/{chunk-XPLXQDB3.mjs → chunk-WAAJG22Y.mjs} +1 -1
- package/dist/chunk-WBQAMGXK.mjs +0 -0
- package/dist/{chunk-TDMF44G6.mjs → chunk-X7N3NQ6S.mjs} +1 -1
- package/dist/{chunk-5QVKTCUZ.mjs → chunk-YSA7EQBH.mjs} +12 -47
- package/dist/components/accordion.js +2 -67
- package/dist/components/accordion.mjs +2 -3
- package/dist/components/autocomplete.js +2 -67
- package/dist/components/autocomplete.mjs +2 -3
- package/dist/components/avatar.d.ts +14 -4
- package/dist/components/avatar.js +8 -70
- package/dist/components/avatar.mjs +2 -3
- package/dist/components/badge.js +2 -67
- package/dist/components/badge.mjs +2 -3
- package/dist/components/breadcrumbs.js +2 -67
- package/dist/components/breadcrumbs.mjs +2 -3
- package/dist/components/button.d.ts +35 -35
- package/dist/components/button.js +10 -75
- package/dist/components/button.mjs +2 -3
- package/dist/components/calendar.d.ts +495 -0
- package/dist/components/calendar.js +455 -0
- package/dist/components/calendar.mjs +11 -0
- package/dist/components/card.js +2 -67
- package/dist/components/card.mjs +2 -3
- package/dist/components/checkbox.js +5 -70
- package/dist/components/checkbox.mjs +2 -3
- package/dist/components/chip.js +24 -70
- package/dist/components/chip.mjs +2 -3
- package/dist/components/circular-progress.js +2 -67
- package/dist/components/circular-progress.mjs +2 -3
- package/dist/components/code.js +2 -67
- package/dist/components/code.mjs +2 -3
- package/dist/components/date-input.d.ts +815 -0
- package/dist/components/date-input.js +439 -0
- package/dist/components/date-input.mjs +7 -0
- package/dist/components/date-picker.d.ts +265 -0
- package/dist/components/date-picker.js +93 -0
- package/dist/components/date-picker.mjs +9 -0
- package/dist/components/divider.js +2 -67
- package/dist/components/divider.mjs +2 -3
- package/dist/components/drip.d.ts +2 -32
- package/dist/components/drip.js +2 -67
- package/dist/components/drip.mjs +2 -3
- package/dist/components/dropdown.d.ts +4 -64
- package/dist/components/dropdown.js +2 -67
- package/dist/components/dropdown.mjs +2 -3
- package/dist/components/image.js +2 -67
- package/dist/components/image.mjs +2 -3
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +959 -115
- package/dist/components/index.mjs +72 -59
- package/dist/components/input.js +14 -72
- package/dist/components/input.mjs +2 -3
- package/dist/components/kbd.js +3 -67
- package/dist/components/kbd.mjs +2 -3
- package/dist/components/link.js +2 -67
- package/dist/components/link.mjs +2 -3
- package/dist/components/listbox.js +2 -67
- package/dist/components/listbox.mjs +2 -3
- package/dist/components/menu.d.ts +2 -2
- package/dist/components/menu.js +2 -67
- package/dist/components/menu.mjs +2 -3
- package/dist/components/modal.js +4 -67
- package/dist/components/modal.mjs +2 -3
- package/dist/components/navbar.js +2 -67
- package/dist/components/navbar.mjs +2 -3
- package/dist/components/pagination.js +2 -67
- package/dist/components/pagination.mjs +2 -3
- package/dist/components/popover.d.ts +42 -0
- package/dist/components/popover.js +8 -67
- package/dist/components/popover.mjs +2 -3
- package/dist/components/progress.js +2 -67
- package/dist/components/progress.mjs +2 -3
- package/dist/components/radio.js +2 -67
- package/dist/components/radio.mjs +2 -3
- package/dist/components/scroll-shadow.js +2 -67
- package/dist/components/scroll-shadow.mjs +2 -3
- package/dist/components/select.js +30 -79
- package/dist/components/select.mjs +2 -3
- package/dist/components/skeleton.js +3 -68
- package/dist/components/skeleton.mjs +2 -3
- package/dist/components/slider.js +2 -67
- package/dist/components/slider.mjs +2 -3
- package/dist/components/snippet.js +2 -67
- package/dist/components/snippet.mjs +2 -3
- package/dist/components/spacer.js +2 -67
- package/dist/components/spacer.mjs +2 -3
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +2 -67
- package/dist/components/spinner.mjs +2 -3
- package/dist/components/table.js +28 -71
- package/dist/components/table.mjs +2 -3
- package/dist/components/tabs.d.ts +115 -0
- package/dist/components/tabs.js +20 -68
- package/dist/components/tabs.mjs +2 -3
- package/dist/components/toggle.js +10 -75
- package/dist/components/toggle.mjs +2 -3
- package/dist/components/user.d.ts +1 -1
- package/dist/components/user.js +2 -67
- package/dist/components/user.mjs +2 -3
- package/dist/default-layout.js +1 -2
- package/dist/default-layout.mjs +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1150 -428
- package/dist/index.mjs +78 -69
- package/dist/plugin.js +6 -177
- package/dist/plugin.mjs +5 -6
- package/dist/types.d.ts +1 -11
- package/dist/types.js +0 -64
- package/dist/types.mjs +1 -8
- package/dist/utilities/index.d.ts +0 -30
- package/dist/utilities/index.js +0 -30
- package/dist/utilities/index.mjs +2 -2
- package/dist/utilities/transition.d.ts +2 -31
- package/dist/utilities/transition.js +4 -31
- package/dist/utilities/transition.mjs +3 -1
- package/dist/utils/theme.d.ts +1 -3
- package/dist/utils/theme.js +0 -110
- package/dist/utils/theme.mjs +1 -6
- package/dist/utils/tv.js +2 -67
- package/dist/utils/tv.mjs +1 -2
- package/package.json +5 -5
- package/dist/chunk-DGMET46Q.mjs +0 -63
- package/dist/chunk-WA5F6AED.mjs +0 -57
- /package/dist/{chunk-T6HAGWX5.mjs → chunk-UVXYPGDZ.mjs} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,125 +1,135 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-UVXYPGDZ.mjs";
|
|
2
|
+
import {
|
|
3
|
+
tabs
|
|
4
|
+
} from "./chunk-SEKJ6A6T.mjs";
|
|
5
|
+
import {
|
|
6
|
+
toggle
|
|
7
|
+
} from "./chunk-7ODIBITJ.mjs";
|
|
8
|
+
import {
|
|
9
|
+
user
|
|
10
|
+
} from "./chunk-NAUU2OUH.mjs";
|
|
11
|
+
import {
|
|
12
|
+
scrollShadow
|
|
13
|
+
} from "./chunk-ECP4S2VZ.mjs";
|
|
14
|
+
import {
|
|
15
|
+
select
|
|
16
|
+
} from "./chunk-CTY7IP65.mjs";
|
|
17
|
+
import {
|
|
18
|
+
skeleton
|
|
19
|
+
} from "./chunk-AO2AAOEJ.mjs";
|
|
2
20
|
import {
|
|
3
21
|
slider
|
|
4
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GMUSZ3YF.mjs";
|
|
5
23
|
import {
|
|
6
24
|
snippet
|
|
7
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FRI2VDCA.mjs";
|
|
8
26
|
import {
|
|
9
27
|
spacer
|
|
10
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-W6DVXJB3.mjs";
|
|
11
29
|
import {
|
|
12
30
|
spinner
|
|
13
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PSEUPXFL.mjs";
|
|
14
32
|
import {
|
|
15
33
|
table
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import
|
|
18
|
-
tabs
|
|
19
|
-
} from "./chunk-777XXWYS.mjs";
|
|
34
|
+
} from "./chunk-KVPPQD2E.mjs";
|
|
35
|
+
import "./chunk-YJLQTC7L.mjs";
|
|
20
36
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
37
|
+
menu,
|
|
38
|
+
menuItem,
|
|
39
|
+
menuSection
|
|
40
|
+
} from "./chunk-CUUGEIPA.mjs";
|
|
23
41
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
42
|
+
modal
|
|
43
|
+
} from "./chunk-IP3D7KVB.mjs";
|
|
26
44
|
import {
|
|
27
45
|
navbar
|
|
28
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-OQIS4MXV.mjs";
|
|
29
47
|
import {
|
|
30
48
|
pagination
|
|
31
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-RNAP5C4C.mjs";
|
|
32
50
|
import {
|
|
33
51
|
popover
|
|
34
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-HGSHFC5N.mjs";
|
|
35
53
|
import {
|
|
36
54
|
progress
|
|
37
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-524WVPFR.mjs";
|
|
38
56
|
import {
|
|
39
57
|
radio,
|
|
40
58
|
radioGroup
|
|
41
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-7ELFOVMX.mjs";
|
|
42
60
|
import {
|
|
43
|
-
|
|
44
|
-
} from "./chunk-
|
|
61
|
+
divider
|
|
62
|
+
} from "./chunk-UODOTC2G.mjs";
|
|
45
63
|
import {
|
|
46
|
-
|
|
47
|
-
} from "./chunk-
|
|
64
|
+
drip
|
|
65
|
+
} from "./chunk-AGUZRGXC.mjs";
|
|
48
66
|
import {
|
|
49
|
-
|
|
50
|
-
|
|
67
|
+
dropdown,
|
|
68
|
+
dropdownItem,
|
|
69
|
+
dropdownMenu,
|
|
70
|
+
dropdownSection
|
|
71
|
+
} from "./chunk-4ZM6AI3H.mjs";
|
|
51
72
|
import {
|
|
52
73
|
image
|
|
53
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-LDBYFTHC.mjs";
|
|
54
75
|
import {
|
|
55
76
|
input
|
|
56
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-MUWHEIW6.mjs";
|
|
57
78
|
import {
|
|
58
79
|
kbd
|
|
59
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-3FZU25GR.mjs";
|
|
60
81
|
import {
|
|
61
82
|
link,
|
|
62
83
|
linkAnchorClasses
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-YJLQTC7L.mjs";
|
|
65
|
-
import {
|
|
66
|
-
menu,
|
|
67
|
-
menuItem,
|
|
68
|
-
menuSection
|
|
69
|
-
} from "./chunk-DXTDUHS5.mjs";
|
|
84
|
+
} from "./chunk-JQTFOIV7.mjs";
|
|
70
85
|
import {
|
|
71
|
-
|
|
72
|
-
} from "./chunk-
|
|
86
|
+
calendar
|
|
87
|
+
} from "./chunk-BHDPFX6P.mjs";
|
|
73
88
|
import {
|
|
74
89
|
card
|
|
75
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-X7N3NQ6S.mjs";
|
|
76
91
|
import {
|
|
77
92
|
checkbox,
|
|
78
93
|
checkboxGroup
|
|
79
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-NYSEAAK5.mjs";
|
|
80
95
|
import {
|
|
81
96
|
chip
|
|
82
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-AC6F4DT6.mjs";
|
|
83
98
|
import {
|
|
84
99
|
circularProgress
|
|
85
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-WAAJG22Y.mjs";
|
|
86
101
|
import {
|
|
87
102
|
code
|
|
88
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-V5ZTBGGO.mjs";
|
|
89
104
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
105
|
+
dateInput
|
|
106
|
+
} from "./chunk-7TJINK3S.mjs";
|
|
92
107
|
import {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
dropdown,
|
|
97
|
-
dropdownItem,
|
|
98
|
-
dropdownMenu,
|
|
99
|
-
dropdownSection
|
|
100
|
-
} from "./chunk-CVU6I4IJ.mjs";
|
|
108
|
+
datePicker,
|
|
109
|
+
dateRangePicker
|
|
110
|
+
} from "./chunk-BLAJANNW.mjs";
|
|
101
111
|
import {
|
|
102
112
|
accordion,
|
|
103
113
|
accordionItem
|
|
104
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-KCOC3H6R.mjs";
|
|
105
115
|
import {
|
|
106
116
|
autocomplete
|
|
107
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-AT4OXKKK.mjs";
|
|
108
118
|
import {
|
|
109
119
|
avatar,
|
|
110
120
|
avatarGroup
|
|
111
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-VDRJHB4F.mjs";
|
|
112
122
|
import {
|
|
113
123
|
badge
|
|
114
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-S573WUYY.mjs";
|
|
115
125
|
import {
|
|
116
126
|
breadcrumbItem,
|
|
117
127
|
breadcrumbs
|
|
118
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-6XJJCV76.mjs";
|
|
119
129
|
import {
|
|
120
130
|
button,
|
|
121
131
|
buttonGroup
|
|
122
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-I6ESTKKY.mjs";
|
|
123
133
|
import "./chunk-CMYR6AOY.mjs";
|
|
124
134
|
import "./chunk-K7LK7NCE.mjs";
|
|
125
135
|
import {
|
|
@@ -127,15 +137,15 @@ import {
|
|
|
127
137
|
} from "./chunk-2PIR7DFM.mjs";
|
|
128
138
|
import {
|
|
129
139
|
tv
|
|
130
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
131
141
|
import {
|
|
132
142
|
nextui
|
|
133
|
-
} from "./chunk-
|
|
134
|
-
import "./chunk-
|
|
143
|
+
} from "./chunk-YSA7EQBH.mjs";
|
|
144
|
+
import "./chunk-D2XMP2NC.mjs";
|
|
145
|
+
import "./chunk-726LN7M3.mjs";
|
|
135
146
|
import "./chunk-DI2L75XK.mjs";
|
|
136
147
|
import "./chunk-4Z22WXZX.mjs";
|
|
137
|
-
import "./chunk-
|
|
138
|
-
import "./chunk-DGMET46Q.mjs";
|
|
148
|
+
import "./chunk-HPFX3B3F.mjs";
|
|
139
149
|
import {
|
|
140
150
|
absoluteFullClasses,
|
|
141
151
|
baseStyles,
|
|
@@ -155,11 +165,8 @@ import {
|
|
|
155
165
|
} from "./chunk-G4RCK475.mjs";
|
|
156
166
|
import "./chunk-KUNVFLXJ.mjs";
|
|
157
167
|
import "./chunk-M63AFAHO.mjs";
|
|
158
|
-
import "./chunk-
|
|
159
|
-
import
|
|
160
|
-
mappedSpacingScaleKeys,
|
|
161
|
-
spacingScaleKeys
|
|
162
|
-
} from "./chunk-WA5F6AED.mjs";
|
|
168
|
+
import "./chunk-HUBDRSA4.mjs";
|
|
169
|
+
import "./chunk-WBQAMGXK.mjs";
|
|
163
170
|
import "./chunk-DMASP6FA.mjs";
|
|
164
171
|
import {
|
|
165
172
|
commonColors
|
|
@@ -185,6 +192,7 @@ export {
|
|
|
185
192
|
breadcrumbs,
|
|
186
193
|
button,
|
|
187
194
|
buttonGroup,
|
|
195
|
+
calendar,
|
|
188
196
|
card,
|
|
189
197
|
checkbox,
|
|
190
198
|
checkboxGroup,
|
|
@@ -196,6 +204,9 @@ export {
|
|
|
196
204
|
colors,
|
|
197
205
|
commonColors,
|
|
198
206
|
dataFocusVisibleClasses,
|
|
207
|
+
dateInput,
|
|
208
|
+
datePicker,
|
|
209
|
+
dateRangePicker,
|
|
199
210
|
divider,
|
|
200
211
|
drip,
|
|
201
212
|
dropdown,
|
|
@@ -212,7 +223,6 @@ export {
|
|
|
212
223
|
menu as listbox,
|
|
213
224
|
menuItem as listboxItem,
|
|
214
225
|
menuSection as listboxSection,
|
|
215
|
-
mappedSpacingScaleKeys,
|
|
216
226
|
menu,
|
|
217
227
|
menuItem,
|
|
218
228
|
menuSection,
|
|
@@ -232,7 +242,6 @@ export {
|
|
|
232
242
|
slider,
|
|
233
243
|
snippet,
|
|
234
244
|
spacer,
|
|
235
|
-
spacingScaleKeys,
|
|
236
245
|
spinner,
|
|
237
246
|
table,
|
|
238
247
|
tabs,
|
package/dist/plugin.js
CHANGED
|
@@ -425,31 +425,11 @@ var animations = {
|
|
|
425
425
|
// src/utilities/transition.ts
|
|
426
426
|
var DEFAULT_TRANSITION_DURATION = "250ms";
|
|
427
427
|
var transition_default = {
|
|
428
|
-
".transition-all": {
|
|
429
|
-
"transition-property": "all",
|
|
430
|
-
"transition-timing-function": "ease",
|
|
431
|
-
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
432
|
-
},
|
|
433
428
|
".transition-background": {
|
|
434
429
|
"transition-property": "background",
|
|
435
430
|
"transition-timing-function": "ease",
|
|
436
431
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
437
432
|
},
|
|
438
|
-
".transition": {
|
|
439
|
-
"transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
|
|
440
|
-
"transition-timing-function": "ease",
|
|
441
|
-
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
442
|
-
},
|
|
443
|
-
".transition-colors": {
|
|
444
|
-
"transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke",
|
|
445
|
-
"transition-timing-function": "ease",
|
|
446
|
-
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
447
|
-
},
|
|
448
|
-
".transition-opacity": {
|
|
449
|
-
"transition-property": "opacity",
|
|
450
|
-
"transition-timing-function": "ease",
|
|
451
|
-
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
452
|
-
},
|
|
453
433
|
".transition-colors-opacity": {
|
|
454
434
|
"transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke, opacity",
|
|
455
435
|
"transition-timing-function": "ease",
|
|
@@ -475,16 +455,6 @@ var transition_default = {
|
|
|
475
455
|
"transition-timing-function": "ease",
|
|
476
456
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
477
457
|
},
|
|
478
|
-
".transition-shadow": {
|
|
479
|
-
"transition-property": "box-shadow",
|
|
480
|
-
"transition-timing-function": "ease",
|
|
481
|
-
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
482
|
-
},
|
|
483
|
-
".transition-transform": {
|
|
484
|
-
"transition-property": "transform",
|
|
485
|
-
"transition-timing-function": "ease",
|
|
486
|
-
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
487
|
-
},
|
|
488
458
|
".transition-transform-opacity": {
|
|
489
459
|
"transition-property": "transform, opacity",
|
|
490
460
|
"transition-timing-function": "ease",
|
|
@@ -551,118 +521,13 @@ var utilities = {
|
|
|
551
521
|
...scrollbar_hide_default
|
|
552
522
|
};
|
|
553
523
|
|
|
554
|
-
// src/types.ts
|
|
555
|
-
var spacingScaleKeys = [
|
|
556
|
-
"0",
|
|
557
|
-
"xs",
|
|
558
|
-
"sm",
|
|
559
|
-
"md",
|
|
560
|
-
"lg",
|
|
561
|
-
"xl",
|
|
562
|
-
"2xl",
|
|
563
|
-
"3xl",
|
|
564
|
-
"4xl",
|
|
565
|
-
"5xl",
|
|
566
|
-
"6xl",
|
|
567
|
-
"7xl",
|
|
568
|
-
"8xl",
|
|
569
|
-
"9xl",
|
|
570
|
-
"1",
|
|
571
|
-
"2",
|
|
572
|
-
"3",
|
|
573
|
-
"3.5",
|
|
574
|
-
"4",
|
|
575
|
-
"5",
|
|
576
|
-
"6",
|
|
577
|
-
"7",
|
|
578
|
-
"8",
|
|
579
|
-
"9",
|
|
580
|
-
"10",
|
|
581
|
-
"11",
|
|
582
|
-
"12",
|
|
583
|
-
"13",
|
|
584
|
-
"14",
|
|
585
|
-
"15",
|
|
586
|
-
"16",
|
|
587
|
-
"17",
|
|
588
|
-
"18",
|
|
589
|
-
"20",
|
|
590
|
-
"24",
|
|
591
|
-
"28",
|
|
592
|
-
"32",
|
|
593
|
-
"36",
|
|
594
|
-
"40",
|
|
595
|
-
"44",
|
|
596
|
-
"48",
|
|
597
|
-
"52",
|
|
598
|
-
"56",
|
|
599
|
-
"60",
|
|
600
|
-
"64",
|
|
601
|
-
"72",
|
|
602
|
-
"80",
|
|
603
|
-
"96"
|
|
604
|
-
];
|
|
605
|
-
var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
606
|
-
|
|
607
524
|
// src/utils/theme.ts
|
|
608
525
|
var isBaseTheme = (theme) => theme === "light" || theme === "dark";
|
|
609
|
-
var ROOT_FONT_SIZE = 16;
|
|
610
|
-
var baseScale = [1, 2, 3, 3.5, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18];
|
|
611
|
-
var extendedScale = [20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 72, 80, 96];
|
|
612
|
-
var generateSpacingScale = (spacingUnit) => {
|
|
613
|
-
const scaleLabels = {
|
|
614
|
-
xs: 2,
|
|
615
|
-
sm: 3,
|
|
616
|
-
md: 4,
|
|
617
|
-
lg: 5.5,
|
|
618
|
-
xl: 9,
|
|
619
|
-
"2xl": 12,
|
|
620
|
-
"3xl": 20,
|
|
621
|
-
"4xl": 30,
|
|
622
|
-
"5xl": 56,
|
|
623
|
-
"6xl": 72,
|
|
624
|
-
"7xl": 96,
|
|
625
|
-
"8xl": 128,
|
|
626
|
-
"9xl": 160
|
|
627
|
-
};
|
|
628
|
-
const scale = { 0: "0px" };
|
|
629
|
-
Object.entries(scaleLabels).forEach(([label, multiplier]) => {
|
|
630
|
-
scale[label] = multiplier ? `${spacingUnit * multiplier / ROOT_FONT_SIZE}rem` : `${spacingUnit / ROOT_FONT_SIZE}rem`;
|
|
631
|
-
});
|
|
632
|
-
baseScale.forEach((i) => {
|
|
633
|
-
let key = `${i}`;
|
|
634
|
-
if (key.includes(".")) {
|
|
635
|
-
const [first, second] = key.split(".");
|
|
636
|
-
key = `${first}_${second}`;
|
|
637
|
-
}
|
|
638
|
-
scale[key] = `${spacingUnit * i / ROOT_FONT_SIZE}rem`;
|
|
639
|
-
});
|
|
640
|
-
extendedScale.forEach((i) => {
|
|
641
|
-
const key = `${i}`;
|
|
642
|
-
scale[key] = `${spacingUnit * i / ROOT_FONT_SIZE}rem`;
|
|
643
|
-
});
|
|
644
|
-
return scale;
|
|
645
|
-
};
|
|
646
|
-
function createSpacingUnits(prefix) {
|
|
647
|
-
let result = spacingScaleKeys.reduce((acc, key) => {
|
|
648
|
-
let value = `var(--${prefix}-spacing-unit-${key})`;
|
|
649
|
-
if (key.includes(".")) {
|
|
650
|
-
const [first, second] = key.split(".");
|
|
651
|
-
value = `var(--${prefix}-spacing-unit-${first}_${second})`;
|
|
652
|
-
}
|
|
653
|
-
return {
|
|
654
|
-
...acc,
|
|
655
|
-
[`unit-${key}`]: value
|
|
656
|
-
};
|
|
657
|
-
}, {});
|
|
658
|
-
return result;
|
|
659
|
-
}
|
|
660
526
|
|
|
661
527
|
// src/default-layout.ts
|
|
662
528
|
var defaultLayout = {
|
|
663
|
-
spacingUnit: 4,
|
|
664
|
-
disabledOpacity: ".5",
|
|
665
529
|
dividerWeight: "1px",
|
|
530
|
+
disabledOpacity: ".5",
|
|
666
531
|
fontSize: {
|
|
667
532
|
tiny: "0.75rem",
|
|
668
533
|
small: "0.875rem",
|
|
@@ -737,7 +602,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
737
602
|
if (!colorValue)
|
|
738
603
|
return;
|
|
739
604
|
try {
|
|
740
|
-
const parsedColor = parsedColorsCache[colorValue] || (0, import_color.default)(colorValue).hsl().round().array();
|
|
605
|
+
const parsedColor = parsedColorsCache[colorValue] || (0, import_color.default)(colorValue).hsl().round(2).array();
|
|
741
606
|
parsedColorsCache[colorValue] = parsedColor;
|
|
742
607
|
const [h, s, l, defaultAlphaValue] = parsedColor;
|
|
743
608
|
const nextuiColorVariable = `--${prefix}-${colorName}`;
|
|
@@ -769,17 +634,8 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
769
634
|
resolved.utilities[cssSelector][nestedLayoutVariable] = nestedValue;
|
|
770
635
|
}
|
|
771
636
|
} else {
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
const spacingScale = generateSpacingScale(Number(value));
|
|
775
|
-
for (const [scaleKey, scaleValue] of Object.entries(spacingScale)) {
|
|
776
|
-
const spacingVariable = `${layoutVariablePrefix}-${scaleKey}`;
|
|
777
|
-
resolved.utilities[cssSelector][spacingVariable] = scaleValue;
|
|
778
|
-
}
|
|
779
|
-
} else {
|
|
780
|
-
const formattedValue = layoutVariablePrefix.includes("opacity") && typeof value === "number" ? value.toString().replace(/^0\./, ".") : value;
|
|
781
|
-
resolved.utilities[cssSelector][layoutVariablePrefix] = formattedValue;
|
|
782
|
-
}
|
|
637
|
+
const formattedValue = layoutVariablePrefix.includes("opacity") && typeof value === "number" ? value.toString().replace(/^0\./, ".") : value;
|
|
638
|
+
resolved.utilities[cssSelector][layoutVariablePrefix] = formattedValue;
|
|
783
639
|
}
|
|
784
640
|
}
|
|
785
641
|
}
|
|
@@ -787,24 +643,6 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
787
643
|
};
|
|
788
644
|
var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
789
645
|
const resolved = resolveConfig(themes, defaultTheme, prefix);
|
|
790
|
-
const minSizes = {
|
|
791
|
-
"unit-1": `var(--${prefix}-spacing-unit)`,
|
|
792
|
-
"unit-2": `var(--${prefix}-spacing-unit-2`,
|
|
793
|
-
"unit-3": `var(--${prefix}-spacing-unit-3)`,
|
|
794
|
-
"unit-3.5": `var(--${prefix}-spacing-unit-3_5)`,
|
|
795
|
-
"unit-4": `var(--${prefix}-spacing-unit-4)`,
|
|
796
|
-
"unit-5": `var(--${prefix}-spacing-unit-5)`,
|
|
797
|
-
"unit-6": `var(--${prefix}-spacing-unit-6)`,
|
|
798
|
-
"unit-7": `var(--${prefix}-spacing-unit-7)`,
|
|
799
|
-
"unit-8": `var(--${prefix}-spacing-unit-8)`,
|
|
800
|
-
"unit-9": `var(--${prefix}-spacing-unit-9)`,
|
|
801
|
-
"unit-10": `var(--${prefix}-spacing-unit-10)`,
|
|
802
|
-
"unit-11": `var(--${prefix}-spacing-unit-11)`,
|
|
803
|
-
"unit-12": `var(--${prefix}-spacing-unit-12)`,
|
|
804
|
-
"unit-16": `var(--${prefix}-spacing-unit-16)`,
|
|
805
|
-
"unit-20": `var(--${prefix}-spacing-unit-20)`,
|
|
806
|
-
"unit-24": `var(--${prefix}-spacing-unit-24)`
|
|
807
|
-
};
|
|
808
646
|
return (0, import_plugin.default)(
|
|
809
647
|
({ addBase, addUtilities, addVariant }) => {
|
|
810
648
|
addBase({
|
|
@@ -834,16 +672,6 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
834
672
|
width: {
|
|
835
673
|
divider: `var(--${prefix}-divider-weight)`
|
|
836
674
|
},
|
|
837
|
-
spacing: {
|
|
838
|
-
unit: `var(--${prefix}-spacing-unit)`,
|
|
839
|
-
...createSpacingUnits(prefix)
|
|
840
|
-
},
|
|
841
|
-
minWidth: {
|
|
842
|
-
...minSizes
|
|
843
|
-
},
|
|
844
|
-
minHeight: {
|
|
845
|
-
...minSizes
|
|
846
|
-
},
|
|
847
675
|
fontSize: {
|
|
848
676
|
tiny: [`var(--${prefix}-font-size-tiny)`, `var(--${prefix}-line-height-tiny)`],
|
|
849
677
|
small: [`var(--${prefix}-font-size-small)`, `var(--${prefix}-line-height-small)`],
|
|
@@ -879,7 +707,8 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
879
707
|
transitionDuration: {
|
|
880
708
|
0: "0ms",
|
|
881
709
|
250: "250ms",
|
|
882
|
-
400: "400ms"
|
|
710
|
+
400: "400ms",
|
|
711
|
+
DEFAULT: DEFAULT_TRANSITION_DURATION
|
|
883
712
|
},
|
|
884
713
|
transitionTimingFunction: {
|
|
885
714
|
"soft-spring": "cubic-bezier(0.155, 1.105, 0.295, 1.12)"
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
nextui
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-YSA7EQBH.mjs";
|
|
4
|
+
import "./chunk-D2XMP2NC.mjs";
|
|
5
|
+
import "./chunk-726LN7M3.mjs";
|
|
5
6
|
import "./chunk-DI2L75XK.mjs";
|
|
6
7
|
import "./chunk-4Z22WXZX.mjs";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-DGMET46Q.mjs";
|
|
8
|
+
import "./chunk-HPFX3B3F.mjs";
|
|
9
9
|
import "./chunk-XHQUSKIE.mjs";
|
|
10
10
|
import "./chunk-WQEDQHKX.mjs";
|
|
11
11
|
import "./chunk-QZTWGJ72.mjs";
|
|
12
12
|
import "./chunk-G4RCK475.mjs";
|
|
13
13
|
import "./chunk-KUNVFLXJ.mjs";
|
|
14
14
|
import "./chunk-M63AFAHO.mjs";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-WA5F6AED.mjs";
|
|
15
|
+
import "./chunk-HUBDRSA4.mjs";
|
|
17
16
|
import "./chunk-DMASP6FA.mjs";
|
|
18
17
|
import "./chunk-IAS3SFA4.mjs";
|
|
19
18
|
import "./chunk-JUEOCLA3.mjs";
|
package/dist/types.d.ts
CHANGED
|
@@ -9,17 +9,7 @@ type BaseThemeUnit = {
|
|
|
9
9
|
type FontThemeUnit = BaseThemeUnit & {
|
|
10
10
|
tiny?: string;
|
|
11
11
|
};
|
|
12
|
-
declare const spacingScaleKeys: string[];
|
|
13
|
-
declare const mappedSpacingScaleKeys: string[];
|
|
14
|
-
type SpacingScaleKeys = (typeof spacingScaleKeys)[number];
|
|
15
|
-
type SpacingScale = Partial<Record<SpacingScaleKeys, string>>;
|
|
16
12
|
interface LayoutTheme {
|
|
17
|
-
/**
|
|
18
|
-
* Base unit token that defines a consistent spacing scale across the components.
|
|
19
|
-
*
|
|
20
|
-
* @default 4 (px)
|
|
21
|
-
*/
|
|
22
|
-
spacingUnit?: number;
|
|
23
13
|
/**
|
|
24
14
|
* The default font size applied across the components.
|
|
25
15
|
*
|
|
@@ -145,4 +135,4 @@ type NextUIPluginConfig = {
|
|
|
145
135
|
defaultExtendTheme?: DefaultThemeType;
|
|
146
136
|
};
|
|
147
137
|
|
|
148
|
-
export { BaseThemeUnit, ConfigTheme, ConfigThemes, DefaultThemeType, FontThemeUnit, LayoutTheme, NextUIPluginConfig
|
|
138
|
+
export { BaseThemeUnit, ConfigTheme, ConfigThemes, DefaultThemeType, FontThemeUnit, LayoutTheme, NextUIPluginConfig };
|
package/dist/types.js
CHANGED
|
@@ -3,10 +3,6 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
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
6
|
var __copyProps = (to, from, except, desc) => {
|
|
11
7
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
8
|
for (let key of __getOwnPropNames(from))
|
|
@@ -19,64 +15,4 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
15
|
|
|
20
16
|
// src/types.ts
|
|
21
17
|
var types_exports = {};
|
|
22
|
-
__export(types_exports, {
|
|
23
|
-
mappedSpacingScaleKeys: () => mappedSpacingScaleKeys,
|
|
24
|
-
spacingScaleKeys: () => spacingScaleKeys
|
|
25
|
-
});
|
|
26
18
|
module.exports = __toCommonJS(types_exports);
|
|
27
|
-
var spacingScaleKeys = [
|
|
28
|
-
"0",
|
|
29
|
-
"xs",
|
|
30
|
-
"sm",
|
|
31
|
-
"md",
|
|
32
|
-
"lg",
|
|
33
|
-
"xl",
|
|
34
|
-
"2xl",
|
|
35
|
-
"3xl",
|
|
36
|
-
"4xl",
|
|
37
|
-
"5xl",
|
|
38
|
-
"6xl",
|
|
39
|
-
"7xl",
|
|
40
|
-
"8xl",
|
|
41
|
-
"9xl",
|
|
42
|
-
"1",
|
|
43
|
-
"2",
|
|
44
|
-
"3",
|
|
45
|
-
"3.5",
|
|
46
|
-
"4",
|
|
47
|
-
"5",
|
|
48
|
-
"6",
|
|
49
|
-
"7",
|
|
50
|
-
"8",
|
|
51
|
-
"9",
|
|
52
|
-
"10",
|
|
53
|
-
"11",
|
|
54
|
-
"12",
|
|
55
|
-
"13",
|
|
56
|
-
"14",
|
|
57
|
-
"15",
|
|
58
|
-
"16",
|
|
59
|
-
"17",
|
|
60
|
-
"18",
|
|
61
|
-
"20",
|
|
62
|
-
"24",
|
|
63
|
-
"28",
|
|
64
|
-
"32",
|
|
65
|
-
"36",
|
|
66
|
-
"40",
|
|
67
|
-
"44",
|
|
68
|
-
"48",
|
|
69
|
-
"52",
|
|
70
|
-
"56",
|
|
71
|
-
"60",
|
|
72
|
-
"64",
|
|
73
|
-
"72",
|
|
74
|
-
"80",
|
|
75
|
-
"96"
|
|
76
|
-
];
|
|
77
|
-
var mappedSpacingScaleKeys = spacingScaleKeys.map((key) => `unit-${key}`);
|
|
78
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
79
|
-
0 && (module.exports = {
|
|
80
|
-
mappedSpacingScaleKeys,
|
|
81
|
-
spacingScaleKeys
|
|
82
|
-
});
|
package/dist/types.mjs
CHANGED
|
@@ -13,31 +13,11 @@ declare const utilities: {
|
|
|
13
13
|
display: string;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
".transition-all": {
|
|
17
|
-
"transition-property": string;
|
|
18
|
-
"transition-timing-function": string;
|
|
19
|
-
"transition-duration": string;
|
|
20
|
-
};
|
|
21
16
|
".transition-background": {
|
|
22
17
|
"transition-property": string;
|
|
23
18
|
"transition-timing-function": string;
|
|
24
19
|
"transition-duration": string;
|
|
25
20
|
};
|
|
26
|
-
".transition": {
|
|
27
|
-
"transition-property": string;
|
|
28
|
-
"transition-timing-function": string;
|
|
29
|
-
"transition-duration": string;
|
|
30
|
-
};
|
|
31
|
-
".transition-colors": {
|
|
32
|
-
"transition-property": string;
|
|
33
|
-
"transition-timing-function": string;
|
|
34
|
-
"transition-duration": string;
|
|
35
|
-
};
|
|
36
|
-
".transition-opacity": {
|
|
37
|
-
"transition-property": string;
|
|
38
|
-
"transition-timing-function": string;
|
|
39
|
-
"transition-duration": string;
|
|
40
|
-
};
|
|
41
21
|
".transition-colors-opacity": {
|
|
42
22
|
"transition-property": string;
|
|
43
23
|
"transition-timing-function": string;
|
|
@@ -63,16 +43,6 @@ declare const utilities: {
|
|
|
63
43
|
"transition-timing-function": string;
|
|
64
44
|
"transition-duration": string;
|
|
65
45
|
};
|
|
66
|
-
".transition-shadow": {
|
|
67
|
-
"transition-property": string;
|
|
68
|
-
"transition-timing-function": string;
|
|
69
|
-
"transition-duration": string;
|
|
70
|
-
};
|
|
71
|
-
".transition-transform": {
|
|
72
|
-
"transition-property": string;
|
|
73
|
-
"transition-timing-function": string;
|
|
74
|
-
"transition-duration": string;
|
|
75
|
-
};
|
|
76
46
|
".transition-transform-opacity": {
|
|
77
47
|
"transition-property": string;
|
|
78
48
|
"transition-timing-function": string;
|