@nextui-org/theme 2.1.18 → 2.2.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/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-WODEC7EF.mjs → chunk-7ODIBITJ.mjs} +6 -6
- package/dist/chunk-7TJINK3S.mjs +390 -0
- package/dist/{chunk-NVOA7VPK.mjs → chunk-AC6F4DT6.mjs} +4 -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-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-NPDZ7OMC.mjs +401 -0
- 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-VJTX4YUQ.mjs +31 -0
- 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 +456 -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 +5 -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 +325 -0
- package/dist/components/date-picker.js +81 -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 +926 -112
- 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.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 +7 -72
- 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 +1122 -430
- 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 +4 -4
- 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,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";
|
|
@@ -14,6 +14,7 @@ var select = tv({
|
|
|
14
14
|
"absolute",
|
|
15
15
|
"z-10",
|
|
16
16
|
"origin-top-left",
|
|
17
|
+
"rtl:origin-top-right",
|
|
17
18
|
"subpixel-antialiased",
|
|
18
19
|
"text-small",
|
|
19
20
|
"text-foreground-500",
|
|
@@ -21,10 +22,10 @@ var select = tv({
|
|
|
21
22
|
],
|
|
22
23
|
mainWrapper: "w-full flex flex-col",
|
|
23
24
|
trigger: "relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",
|
|
24
|
-
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.
|
|
25
|
-
selectorIcon: "absolute right-3 w-
|
|
26
|
-
spinner: "absolute right-3",
|
|
27
|
-
value: ["text-foreground-500", "font-normal", "w-full", "text-left"],
|
|
25
|
+
innerWrapper: "inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",
|
|
26
|
+
selectorIcon: "absolute right-3 rtl:left-3 rtl:right-[unset] w-4 h-4",
|
|
27
|
+
spinner: "absolute right-3 rtl:left-3 rtl:right-[unset]",
|
|
28
|
+
value: ["text-foreground-500", "font-normal", "w-full", "text-left", "rtl:text-right"],
|
|
28
29
|
listboxWrapper: "scroll-py-6 max-h-64 w-full",
|
|
29
30
|
listbox: "",
|
|
30
31
|
popoverContent: "w-full p-1 overflow-hidden",
|
|
@@ -98,15 +99,15 @@ var select = tv({
|
|
|
98
99
|
size: {
|
|
99
100
|
sm: {
|
|
100
101
|
label: "text-tiny",
|
|
101
|
-
trigger: "h-
|
|
102
|
+
trigger: "h-8 min-h-8 px-2 rounded-small",
|
|
102
103
|
value: "text-small"
|
|
103
104
|
},
|
|
104
105
|
md: {
|
|
105
|
-
trigger: "h-
|
|
106
|
+
trigger: "h-10 min-h-10 rounded-medium",
|
|
106
107
|
value: "text-small"
|
|
107
108
|
},
|
|
108
109
|
lg: {
|
|
109
|
-
trigger: "h-
|
|
110
|
+
trigger: "h-12 min-h-12 rounded-large",
|
|
110
111
|
value: "text-medium"
|
|
111
112
|
}
|
|
112
113
|
},
|
|
@@ -133,7 +134,7 @@ var select = tv({
|
|
|
133
134
|
},
|
|
134
135
|
"outside-left": {
|
|
135
136
|
base: "flex-row items-center flex-nowrap items-start",
|
|
136
|
-
label: "relative pr-2 text-foreground"
|
|
137
|
+
label: "relative pr-2 rtl:pl-2 rtl:pr-[unset] text-foreground"
|
|
137
138
|
},
|
|
138
139
|
inside: {
|
|
139
140
|
label: "text-tiny cursor-pointer",
|
|
@@ -184,6 +185,7 @@ var select = tv({
|
|
|
184
185
|
label: [
|
|
185
186
|
"will-change-auto",
|
|
186
187
|
"origin-top-left",
|
|
188
|
+
"rtl:origin-top-right",
|
|
187
189
|
"!duration-200",
|
|
188
190
|
"!ease-out",
|
|
189
191
|
"transition-[transform,color,left,opacity]",
|
|
@@ -504,14 +506,14 @@ var select = tv({
|
|
|
504
506
|
labelPlacement: "inside",
|
|
505
507
|
size: "sm",
|
|
506
508
|
class: {
|
|
507
|
-
trigger: "h-12 min-h-
|
|
509
|
+
trigger: "h-12 min-h-12 py-1.5 px-3"
|
|
508
510
|
}
|
|
509
511
|
},
|
|
510
512
|
{
|
|
511
513
|
labelPlacement: "inside",
|
|
512
514
|
size: "md",
|
|
513
515
|
class: {
|
|
514
|
-
trigger: "h-14 min-h-
|
|
516
|
+
trigger: "h-14 min-h-14 py-2"
|
|
515
517
|
}
|
|
516
518
|
},
|
|
517
519
|
{
|
|
@@ -519,7 +521,7 @@ var select = tv({
|
|
|
519
521
|
size: "lg",
|
|
520
522
|
class: {
|
|
521
523
|
label: "text-small",
|
|
522
|
-
trigger: "h-16 min-h-
|
|
524
|
+
trigger: "h-16 min-h-16 py-2.5 gap-0"
|
|
523
525
|
}
|
|
524
526
|
},
|
|
525
527
|
{
|
|
@@ -533,7 +535,15 @@ var select = tv({
|
|
|
533
535
|
isMultiline: false,
|
|
534
536
|
class: {
|
|
535
537
|
base: "group relative justify-end",
|
|
536
|
-
label: [
|
|
538
|
+
label: [
|
|
539
|
+
"pb-0",
|
|
540
|
+
"z-20",
|
|
541
|
+
"top-1/2",
|
|
542
|
+
"-translate-y-1/2",
|
|
543
|
+
"group-data-[filled=true]:left-0",
|
|
544
|
+
"rtl:group-data-[filled=true]:right-0",
|
|
545
|
+
"rtl:group-data-[filled=true]:left-[unset]"
|
|
546
|
+
]
|
|
537
547
|
}
|
|
538
548
|
},
|
|
539
549
|
{
|
|
@@ -654,6 +664,8 @@ var select = tv({
|
|
|
654
664
|
class: {
|
|
655
665
|
label: [
|
|
656
666
|
"left-2",
|
|
667
|
+
"rtl:right-2",
|
|
668
|
+
"rtl:left-[unset]",
|
|
657
669
|
"text-tiny",
|
|
658
670
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"
|
|
659
671
|
],
|
|
@@ -667,6 +679,8 @@ var select = tv({
|
|
|
667
679
|
class: {
|
|
668
680
|
label: [
|
|
669
681
|
"left-3",
|
|
682
|
+
"rtl:right-3",
|
|
683
|
+
"rtl:left-[unset]",
|
|
670
684
|
"text-small",
|
|
671
685
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"
|
|
672
686
|
],
|
|
@@ -680,6 +694,8 @@ var select = tv({
|
|
|
680
694
|
class: {
|
|
681
695
|
label: [
|
|
682
696
|
"left-3",
|
|
697
|
+
"rtl:right-3",
|
|
698
|
+
"rtl:left-[unset]",
|
|
683
699
|
"text-medium",
|
|
684
700
|
"group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"
|
|
685
701
|
],
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
mappedSpacingScaleKeys
|
|
3
|
-
} from "./chunk-WA5F6AED.mjs";
|
|
4
|
-
|
|
5
1
|
// src/utils/tv.ts
|
|
6
2
|
import { tv as tvBase } from "tailwind-variants";
|
|
7
3
|
var COMMON_UNITS = ["small", "medium", "large"];
|
|
@@ -15,7 +11,7 @@ var tv = (options, config) => {
|
|
|
15
11
|
theme: {
|
|
16
12
|
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
17
13
|
opacity: ["disabled"],
|
|
18
|
-
spacing: ["divider"
|
|
14
|
+
spacing: ["divider"],
|
|
19
15
|
borderWidth: COMMON_UNITS,
|
|
20
16
|
borderRadius: COMMON_UNITS
|
|
21
17
|
},
|
|
@@ -23,17 +19,7 @@ var tv = (options, config) => {
|
|
|
23
19
|
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
|
|
24
20
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
25
21
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
26
|
-
"bg-image": ["bg-stripe-gradient"]
|
|
27
|
-
"min-w": [
|
|
28
|
-
{
|
|
29
|
-
"min-w": ["unit", ...mappedSpacingScaleKeys]
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"min-h": [
|
|
33
|
-
{
|
|
34
|
-
"min-h": ["unit", ...mappedSpacingScaleKeys]
|
|
35
|
-
}
|
|
36
|
-
]
|
|
22
|
+
"bg-image": ["bg-stripe-gradient"]
|
|
37
23
|
}
|
|
38
24
|
}
|
|
39
25
|
});
|
|
@@ -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";
|
|
@@ -145,6 +145,12 @@ var popover = tv({
|
|
|
145
145
|
true: {
|
|
146
146
|
base: "animate-none"
|
|
147
147
|
}
|
|
148
|
+
},
|
|
149
|
+
isDropdownDisabled: {
|
|
150
|
+
true: {
|
|
151
|
+
trigger: "opacity-disabled pointer-events-none"
|
|
152
|
+
},
|
|
153
|
+
false: {}
|
|
148
154
|
}
|
|
149
155
|
},
|
|
150
156
|
defaultVariants: {
|
|
@@ -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
|
],
|