@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
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
// src/utilities/transition.ts
|
|
2
2
|
var DEFAULT_TRANSITION_DURATION = "250ms";
|
|
3
3
|
var transition_default = {
|
|
4
|
-
".transition-all": {
|
|
5
|
-
"transition-property": "all",
|
|
6
|
-
"transition-timing-function": "ease",
|
|
7
|
-
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
8
|
-
},
|
|
9
4
|
".transition-background": {
|
|
10
5
|
"transition-property": "background",
|
|
11
6
|
"transition-timing-function": "ease",
|
|
12
7
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
13
8
|
},
|
|
14
|
-
".transition": {
|
|
15
|
-
"transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
|
|
16
|
-
"transition-timing-function": "ease",
|
|
17
|
-
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
18
|
-
},
|
|
19
|
-
".transition-colors": {
|
|
20
|
-
"transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke",
|
|
21
|
-
"transition-timing-function": "ease",
|
|
22
|
-
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
23
|
-
},
|
|
24
|
-
".transition-opacity": {
|
|
25
|
-
"transition-property": "opacity",
|
|
26
|
-
"transition-timing-function": "ease",
|
|
27
|
-
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
28
|
-
},
|
|
29
9
|
".transition-colors-opacity": {
|
|
30
10
|
"transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke, opacity",
|
|
31
11
|
"transition-timing-function": "ease",
|
|
@@ -51,16 +31,6 @@ var transition_default = {
|
|
|
51
31
|
"transition-timing-function": "ease",
|
|
52
32
|
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
53
33
|
},
|
|
54
|
-
".transition-shadow": {
|
|
55
|
-
"transition-property": "box-shadow",
|
|
56
|
-
"transition-timing-function": "ease",
|
|
57
|
-
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
58
|
-
},
|
|
59
|
-
".transition-transform": {
|
|
60
|
-
"transition-property": "transform",
|
|
61
|
-
"transition-timing-function": "ease",
|
|
62
|
-
"transition-duration": DEFAULT_TRANSITION_DURATION
|
|
63
|
-
},
|
|
64
34
|
".transition-transform-opacity": {
|
|
65
35
|
"transition-property": "transform, opacity",
|
|
66
36
|
"transition-timing-function": "ease",
|
|
@@ -84,5 +54,6 @@ var transition_default = {
|
|
|
84
54
|
};
|
|
85
55
|
|
|
86
56
|
export {
|
|
57
|
+
DEFAULT_TRANSITION_DURATION,
|
|
87
58
|
transition_default
|
|
88
59
|
};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-2PIR7DFM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
tv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
collapseAdjacentVariantBorders,
|
|
9
9
|
dataFocusVisibleClasses
|
|
@@ -41,9 +41,9 @@ var button = tv({
|
|
|
41
41
|
ghost: "border-medium bg-transparent"
|
|
42
42
|
},
|
|
43
43
|
size: {
|
|
44
|
-
sm: "px-
|
|
45
|
-
md: "px-
|
|
46
|
-
lg: "px-
|
|
44
|
+
sm: "px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",
|
|
45
|
+
md: "px-4 min-w-20 h-10 text-small gap-2 rounded-medium",
|
|
46
|
+
lg: "px-6 min-w-24 h-12 text-medium gap-3 rounded-large"
|
|
47
47
|
},
|
|
48
48
|
color: {
|
|
49
49
|
default: "",
|
|
@@ -70,8 +70,8 @@ var button = tv({
|
|
|
70
70
|
true: "[&:not(:first-child):not(:last-child)]:rounded-none"
|
|
71
71
|
},
|
|
72
72
|
isIconOnly: {
|
|
73
|
-
true: "px-
|
|
74
|
-
false: "[&>svg]:max-w-[theme(spacing.
|
|
73
|
+
true: "px-0 !gap-0",
|
|
74
|
+
false: "[&>svg]:max-w-[theme(spacing.8)]"
|
|
75
75
|
},
|
|
76
76
|
disableAnimation: {
|
|
77
77
|
true: "!transition-none",
|
|
@@ -386,17 +386,17 @@ var button = tv({
|
|
|
386
386
|
{
|
|
387
387
|
isIconOnly: true,
|
|
388
388
|
size: "sm",
|
|
389
|
-
class: "min-w-
|
|
389
|
+
class: "min-w-8 w-8 h-8"
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
392
|
isIconOnly: true,
|
|
393
393
|
size: "md",
|
|
394
|
-
class: "min-w-
|
|
394
|
+
class: "min-w-10 w-10 h-10"
|
|
395
395
|
},
|
|
396
396
|
{
|
|
397
397
|
isIconOnly: true,
|
|
398
398
|
size: "lg",
|
|
399
|
-
class: "min-w-
|
|
399
|
+
class: "min-w-12 w-12 h-12"
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
402
|
variant: ["solid", "faded", "flat", "bordered", "shadow"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses
|
|
6
6
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -52,6 +52,8 @@ var modal = tv({
|
|
|
52
52
|
"select-none",
|
|
53
53
|
"top-1",
|
|
54
54
|
"right-1",
|
|
55
|
+
"rtl:left-1",
|
|
56
|
+
"rtl:right-[unset]",
|
|
55
57
|
"p-2",
|
|
56
58
|
"text-foreground-500",
|
|
57
59
|
"rounded-full",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses
|
|
6
6
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -30,6 +30,7 @@ var table = tv({
|
|
|
30
30
|
"px-3",
|
|
31
31
|
"h-10",
|
|
32
32
|
"text-left",
|
|
33
|
+
"rtl:text-right",
|
|
33
34
|
"align-middle",
|
|
34
35
|
"bg-default-100",
|
|
35
36
|
"whitespace-nowrap",
|
|
@@ -37,7 +38,11 @@ var table = tv({
|
|
|
37
38
|
"text-tiny",
|
|
38
39
|
"font-semibold",
|
|
39
40
|
"first:rounded-l-lg",
|
|
41
|
+
"rtl:first:rounded-r-lg",
|
|
42
|
+
"rtl:first:rounded-l-[unset]",
|
|
40
43
|
"last:rounded-r-lg",
|
|
44
|
+
"rtl:last:rounded-l-lg",
|
|
45
|
+
"rtl:last:rounded-r-[unset]",
|
|
41
46
|
"outline-none",
|
|
42
47
|
"data-[sortable=true]:transition-colors",
|
|
43
48
|
"data-[sortable=true]:cursor-pointer",
|
|
@@ -62,7 +67,8 @@ var table = tv({
|
|
|
62
67
|
"before:inset-0",
|
|
63
68
|
"before:opacity-0",
|
|
64
69
|
"data-[selected=true]:before:opacity-100",
|
|
65
|
-
"group-data-[disabled=true]:text-foreground-300"
|
|
70
|
+
"group-data-[disabled=true]:text-foreground-300",
|
|
71
|
+
"group-data-[disabled=true]:cursor-not-allowed"
|
|
66
72
|
],
|
|
67
73
|
tfoot: "",
|
|
68
74
|
sortIcon: [
|
|
@@ -145,7 +151,8 @@ var table = tv({
|
|
|
145
151
|
true: {
|
|
146
152
|
td: [
|
|
147
153
|
"group-data-[odd=true]:before:bg-default-100",
|
|
148
|
-
"group-data-[odd=true]:before:opacity-100"
|
|
154
|
+
"group-data-[odd=true]:before:opacity-100",
|
|
155
|
+
"group-data-[odd=true]:before:-z-10"
|
|
149
156
|
]
|
|
150
157
|
}
|
|
151
158
|
},
|
|
@@ -173,14 +180,29 @@ var table = tv({
|
|
|
173
180
|
true: {
|
|
174
181
|
td: [
|
|
175
182
|
"group-data-[first=true]:first:before:rounded-tl-lg",
|
|
183
|
+
"group-data-[first=true]:rtl:first:before:rounded-tr-lg",
|
|
184
|
+
"group-data-[first=true]:rtl:first:before:rounded-tl-[unset]",
|
|
176
185
|
"group-data-[first=true]:last:before:rounded-tr-lg",
|
|
186
|
+
"group-data-[first=true]:rtl:last:before:rounded-tl-lg",
|
|
187
|
+
"group-data-[first=true]:rtl:last:before:rounded-tr-[unset]",
|
|
177
188
|
"group-data-[middle=true]:before:rounded-none",
|
|
178
189
|
"group-data-[last=true]:first:before:rounded-bl-lg",
|
|
179
|
-
"group-data-[last=true]:
|
|
190
|
+
"group-data-[last=true]:rtl:first:before:rounded-br-lg",
|
|
191
|
+
"group-data-[last=true]:rtl:first:before:rounded-bl-[unset]",
|
|
192
|
+
"group-data-[last=true]:last:before:rounded-br-lg",
|
|
193
|
+
"group-data-[last=true]:rtl:last:before:rounded-bl-lg",
|
|
194
|
+
"group-data-[last=true]:rtl:last:before:rounded-br-[unset]"
|
|
180
195
|
]
|
|
181
196
|
},
|
|
182
197
|
false: {
|
|
183
|
-
td: [
|
|
198
|
+
td: [
|
|
199
|
+
"first:before:rounded-l-lg",
|
|
200
|
+
"rtl:first:before:rounded-r-lg",
|
|
201
|
+
"rtl:first:before:rounded-l-[unset]",
|
|
202
|
+
"last:before:rounded-r-lg",
|
|
203
|
+
"rtl:last:before:rounded-l-lg",
|
|
204
|
+
"rtl:last:before:rounded-r-[unset]"
|
|
205
|
+
]
|
|
184
206
|
}
|
|
185
207
|
},
|
|
186
208
|
fullWidth: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataFocusVisibleClasses,
|
|
6
6
|
groupDataFocusVisibleClasses
|
|
@@ -15,6 +15,7 @@ var input = tv({
|
|
|
15
15
|
"z-10",
|
|
16
16
|
"pointer-events-none",
|
|
17
17
|
"origin-top-left",
|
|
18
|
+
"rtl:origin-top-right",
|
|
18
19
|
"subpixel-antialiased",
|
|
19
20
|
"block",
|
|
20
21
|
"text-small",
|
|
@@ -35,6 +36,8 @@ var input = tv({
|
|
|
35
36
|
"hidden",
|
|
36
37
|
"absolute",
|
|
37
38
|
"right-3",
|
|
39
|
+
"rtl:right-auto",
|
|
40
|
+
"rtl:left-3",
|
|
38
41
|
"appearance-none",
|
|
39
42
|
"outline-none",
|
|
40
43
|
"select-none",
|
|
@@ -113,17 +116,17 @@ var input = tv({
|
|
|
113
116
|
size: {
|
|
114
117
|
sm: {
|
|
115
118
|
label: "text-tiny",
|
|
116
|
-
inputWrapper: "h-
|
|
119
|
+
inputWrapper: "h-8 min-h-8 px-2 rounded-small",
|
|
117
120
|
input: "text-small",
|
|
118
121
|
clearButton: "text-medium"
|
|
119
122
|
},
|
|
120
123
|
md: {
|
|
121
|
-
inputWrapper: "h-
|
|
124
|
+
inputWrapper: "h-10 min-h-10 rounded-medium",
|
|
122
125
|
input: "text-small",
|
|
123
126
|
clearButton: "text-large"
|
|
124
127
|
},
|
|
125
128
|
lg: {
|
|
126
|
-
inputWrapper: "h-
|
|
129
|
+
inputWrapper: "h-12 min-h-12 rounded-large",
|
|
127
130
|
input: "text-medium",
|
|
128
131
|
clearButton: "text-large"
|
|
129
132
|
}
|
|
@@ -153,7 +156,7 @@ var input = tv({
|
|
|
153
156
|
base: "flex-row items-center flex-nowrap data-[has-helper=true]:items-start",
|
|
154
157
|
inputWrapper: "flex-1",
|
|
155
158
|
mainWrapper: "flex flex-col",
|
|
156
|
-
label: "relative text-foreground pr-2"
|
|
159
|
+
label: "relative text-foreground pr-2 rtl:pr-0 rtl:pl-2"
|
|
157
160
|
},
|
|
158
161
|
inside: {
|
|
159
162
|
label: "text-tiny cursor-text",
|
|
@@ -168,7 +171,7 @@ var input = tv({
|
|
|
168
171
|
},
|
|
169
172
|
isClearable: {
|
|
170
173
|
true: {
|
|
171
|
-
input: "peer pr-6",
|
|
174
|
+
input: "peer pr-6 rtl:pr-0 rtl:pl-6",
|
|
172
175
|
clearButton: "peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"
|
|
173
176
|
}
|
|
174
177
|
},
|
|
@@ -734,6 +737,8 @@ var input = tv({
|
|
|
734
737
|
class: {
|
|
735
738
|
label: [
|
|
736
739
|
"left-3",
|
|
740
|
+
"rtl:left-auto",
|
|
741
|
+
"rtl:right-3",
|
|
737
742
|
"text-small",
|
|
738
743
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
739
744
|
],
|
|
@@ -747,6 +752,8 @@ var input = tv({
|
|
|
747
752
|
class: {
|
|
748
753
|
label: [
|
|
749
754
|
"left-3",
|
|
755
|
+
"rtl:left-auto",
|
|
756
|
+
"rtl:right-3",
|
|
750
757
|
"text-medium",
|
|
751
758
|
"group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
752
759
|
],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
groupDataFocusVisibleClasses
|
|
6
6
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -61,7 +61,7 @@ var checkbox = tv({
|
|
|
61
61
|
size: {
|
|
62
62
|
sm: {
|
|
63
63
|
wrapper: [
|
|
64
|
-
"w-4 h-4 mr-2",
|
|
64
|
+
"w-4 h-4 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
|
65
65
|
"rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
|
66
66
|
"before:rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
|
67
67
|
"after:rounded-[calc(theme(borderRadius.medium)*0.5)]"
|
|
@@ -71,7 +71,7 @@ var checkbox = tv({
|
|
|
71
71
|
},
|
|
72
72
|
md: {
|
|
73
73
|
wrapper: [
|
|
74
|
-
"w-5 h-5 mr-2",
|
|
74
|
+
"w-5 h-5 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
|
75
75
|
"rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
|
76
76
|
"before:rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
|
77
77
|
"after:rounded-[calc(theme(borderRadius.medium)*0.6)]"
|
|
@@ -81,7 +81,7 @@ var checkbox = tv({
|
|
|
81
81
|
},
|
|
82
82
|
lg: {
|
|
83
83
|
wrapper: [
|
|
84
|
-
"w-6 h-6 mr-2",
|
|
84
|
+
"w-6 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
|
85
85
|
"rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
|
86
86
|
"before:rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
|
87
87
|
"after:rounded-[calc(theme(borderRadius.medium)*0.7)]"
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-2PIR7DFM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
tv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
dataFocusVisibleClasses
|
|
9
9
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -57,7 +57,8 @@ var tabs = tv({
|
|
|
57
57
|
"px-1",
|
|
58
58
|
"outline-none",
|
|
59
59
|
...dataFocusVisibleClasses
|
|
60
|
-
]
|
|
60
|
+
],
|
|
61
|
+
wrapper: []
|
|
61
62
|
},
|
|
62
63
|
variants: {
|
|
63
64
|
variant: {
|
|
@@ -145,6 +146,22 @@ var tabs = tv({
|
|
|
145
146
|
tab: "transition-none",
|
|
146
147
|
tabContent: "transition-none"
|
|
147
148
|
}
|
|
149
|
+
},
|
|
150
|
+
placement: {
|
|
151
|
+
top: {},
|
|
152
|
+
start: {
|
|
153
|
+
tabList: "flex-col",
|
|
154
|
+
panel: "py-0 px-3",
|
|
155
|
+
wrapper: "flex"
|
|
156
|
+
},
|
|
157
|
+
end: {
|
|
158
|
+
tabList: "flex-col",
|
|
159
|
+
panel: "py-0 px-3",
|
|
160
|
+
wrapper: "flex flex-row-reverse"
|
|
161
|
+
},
|
|
162
|
+
bottom: {
|
|
163
|
+
wrapper: "flex flex-col-reverse"
|
|
164
|
+
}
|
|
148
165
|
}
|
|
149
166
|
},
|
|
150
167
|
defaultVariants: {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-2PIR7DFM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
tv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GMMETTYU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
dataFocusVisibleClasses,
|
|
9
9
|
translateCenterClasses
|
|
@@ -108,8 +108,8 @@ var avatar = tv({
|
|
|
108
108
|
isInGroup: {
|
|
109
109
|
true: {
|
|
110
110
|
base: [
|
|
111
|
-
"-ms-2 data-[hover=true]:-translate-x-3 transition-transform",
|
|
112
|
-
"data-[focus-visible=true]:-translate-x-3"
|
|
111
|
+
"-ms-2 data-[hover=true]:-translate-x-3 rtl:data-[hover=true]:translate-x-3 transition-transform",
|
|
112
|
+
"data-[focus-visible=true]:-translate-x-3 rtl:data-[focus-visible=true]:translate-x-3"
|
|
113
113
|
]
|
|
114
114
|
}
|
|
115
115
|
},
|
|
@@ -170,7 +170,10 @@ var avatar = tv({
|
|
|
170
170
|
]
|
|
171
171
|
});
|
|
172
172
|
var avatarGroup = tv({
|
|
173
|
-
|
|
173
|
+
slots: {
|
|
174
|
+
base: "flex items-center justify-center h-auto w-max-content",
|
|
175
|
+
count: "hover:-translate-x-0"
|
|
176
|
+
},
|
|
174
177
|
variants: {
|
|
175
178
|
isGrid: {
|
|
176
179
|
true: "inline-grid grid-cols-4 gap-3"
|
|
File without changes
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isBaseTheme
|
|
3
|
+
} from "./chunk-D2XMP2NC.mjs";
|
|
1
4
|
import {
|
|
2
5
|
utilities
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-726LN7M3.mjs";
|
|
4
7
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
isBaseTheme
|
|
8
|
-
} from "./chunk-DGMET46Q.mjs";
|
|
8
|
+
DEFAULT_TRANSITION_DURATION
|
|
9
|
+
} from "./chunk-HPFX3B3F.mjs";
|
|
9
10
|
import {
|
|
10
11
|
baseStyles
|
|
11
12
|
} from "./chunk-XHQUSKIE.mjs";
|
|
@@ -19,7 +20,7 @@ import {
|
|
|
19
20
|
darkLayout,
|
|
20
21
|
defaultLayout,
|
|
21
22
|
lightLayout
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HUBDRSA4.mjs";
|
|
23
24
|
import {
|
|
24
25
|
animations
|
|
25
26
|
} from "./chunk-DMASP6FA.mjs";
|
|
@@ -63,7 +64,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
63
64
|
if (!colorValue)
|
|
64
65
|
return;
|
|
65
66
|
try {
|
|
66
|
-
const parsedColor = parsedColorsCache[colorValue] || Color(colorValue).hsl().round().array();
|
|
67
|
+
const parsedColor = parsedColorsCache[colorValue] || Color(colorValue).hsl().round(2).array();
|
|
67
68
|
parsedColorsCache[colorValue] = parsedColor;
|
|
68
69
|
const [h, s, l, defaultAlphaValue] = parsedColor;
|
|
69
70
|
const nextuiColorVariable = `--${prefix}-${colorName}`;
|
|
@@ -95,17 +96,8 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
95
96
|
resolved.utilities[cssSelector][nestedLayoutVariable] = nestedValue;
|
|
96
97
|
}
|
|
97
98
|
} else {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
const spacingScale = generateSpacingScale(Number(value));
|
|
101
|
-
for (const [scaleKey, scaleValue] of Object.entries(spacingScale)) {
|
|
102
|
-
const spacingVariable = `${layoutVariablePrefix}-${scaleKey}`;
|
|
103
|
-
resolved.utilities[cssSelector][spacingVariable] = scaleValue;
|
|
104
|
-
}
|
|
105
|
-
} else {
|
|
106
|
-
const formattedValue = layoutVariablePrefix.includes("opacity") && typeof value === "number" ? value.toString().replace(/^0\./, ".") : value;
|
|
107
|
-
resolved.utilities[cssSelector][layoutVariablePrefix] = formattedValue;
|
|
108
|
-
}
|
|
99
|
+
const formattedValue = layoutVariablePrefix.includes("opacity") && typeof value === "number" ? value.toString().replace(/^0\./, ".") : value;
|
|
100
|
+
resolved.utilities[cssSelector][layoutVariablePrefix] = formattedValue;
|
|
109
101
|
}
|
|
110
102
|
}
|
|
111
103
|
}
|
|
@@ -113,24 +105,6 @@ var resolveConfig = (themes = {}, defaultTheme, prefix) => {
|
|
|
113
105
|
};
|
|
114
106
|
var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
115
107
|
const resolved = resolveConfig(themes, defaultTheme, prefix);
|
|
116
|
-
const minSizes = {
|
|
117
|
-
"unit-1": `var(--${prefix}-spacing-unit)`,
|
|
118
|
-
"unit-2": `var(--${prefix}-spacing-unit-2`,
|
|
119
|
-
"unit-3": `var(--${prefix}-spacing-unit-3)`,
|
|
120
|
-
"unit-3.5": `var(--${prefix}-spacing-unit-3_5)`,
|
|
121
|
-
"unit-4": `var(--${prefix}-spacing-unit-4)`,
|
|
122
|
-
"unit-5": `var(--${prefix}-spacing-unit-5)`,
|
|
123
|
-
"unit-6": `var(--${prefix}-spacing-unit-6)`,
|
|
124
|
-
"unit-7": `var(--${prefix}-spacing-unit-7)`,
|
|
125
|
-
"unit-8": `var(--${prefix}-spacing-unit-8)`,
|
|
126
|
-
"unit-9": `var(--${prefix}-spacing-unit-9)`,
|
|
127
|
-
"unit-10": `var(--${prefix}-spacing-unit-10)`,
|
|
128
|
-
"unit-11": `var(--${prefix}-spacing-unit-11)`,
|
|
129
|
-
"unit-12": `var(--${prefix}-spacing-unit-12)`,
|
|
130
|
-
"unit-16": `var(--${prefix}-spacing-unit-16)`,
|
|
131
|
-
"unit-20": `var(--${prefix}-spacing-unit-20)`,
|
|
132
|
-
"unit-24": `var(--${prefix}-spacing-unit-24)`
|
|
133
|
-
};
|
|
134
108
|
return plugin(
|
|
135
109
|
({ addBase, addUtilities, addVariant }) => {
|
|
136
110
|
addBase({
|
|
@@ -160,16 +134,6 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
160
134
|
width: {
|
|
161
135
|
divider: `var(--${prefix}-divider-weight)`
|
|
162
136
|
},
|
|
163
|
-
spacing: {
|
|
164
|
-
unit: `var(--${prefix}-spacing-unit)`,
|
|
165
|
-
...createSpacingUnits(prefix)
|
|
166
|
-
},
|
|
167
|
-
minWidth: {
|
|
168
|
-
...minSizes
|
|
169
|
-
},
|
|
170
|
-
minHeight: {
|
|
171
|
-
...minSizes
|
|
172
|
-
},
|
|
173
137
|
fontSize: {
|
|
174
138
|
tiny: [`var(--${prefix}-font-size-tiny)`, `var(--${prefix}-line-height-tiny)`],
|
|
175
139
|
small: [`var(--${prefix}-font-size-small)`, `var(--${prefix}-line-height-small)`],
|
|
@@ -205,7 +169,8 @@ var corePlugin = (themes = {}, defaultTheme, prefix, addCommonColors) => {
|
|
|
205
169
|
transitionDuration: {
|
|
206
170
|
0: "0ms",
|
|
207
171
|
250: "250ms",
|
|
208
|
-
400: "400ms"
|
|
172
|
+
400: "400ms",
|
|
173
|
+
DEFAULT: DEFAULT_TRANSITION_DURATION
|
|
209
174
|
},
|
|
210
175
|
transitionTimingFunction: {
|
|
211
176
|
"soft-spring": "cubic-bezier(0.155, 1.105, 0.295, 1.12)"
|