@sytechui/theme 2.4.26 → 2.5.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/dist/animations/index.d.mts +18 -0
- package/dist/animations/index.d.ts +18 -0
- package/dist/animations/index.js +18 -0
- package/dist/animations/index.mjs +1 -1
- package/dist/{chunk-HO2ILFC5.mjs → chunk-3INHRVXM.mjs} +1 -1
- package/dist/chunk-3L7WFLSH.mjs +127 -0
- package/dist/{chunk-UCUZEPMT.mjs → chunk-4V3RQUZU.mjs} +1 -1
- package/dist/{chunk-Q7SJBJ2C.mjs → chunk-5PWGYVAP.mjs} +1 -1
- package/dist/{chunk-A3QMPIR3.mjs → chunk-E34EWEJV.mjs} +1 -1
- package/dist/{chunk-EJLBCE3V.mjs → chunk-EJDFNA7Y.mjs} +1 -1
- package/dist/{chunk-QPJMPRZG.mjs → chunk-FQECQOZE.mjs} +1 -1
- package/dist/{chunk-6FGGVHAY.mjs → chunk-FUKRIH5Z.mjs} +1 -1
- package/dist/{chunk-KXPLHLA6.mjs → chunk-HYWP3BX7.mjs} +18 -0
- package/dist/{chunk-HJWFZEER.mjs → chunk-IAAKK6MJ.mjs} +7 -7
- package/dist/{chunk-T3FWPDDU.mjs → chunk-IB36XVBI.mjs} +181 -2
- package/dist/{chunk-JC3ABGTC.mjs → chunk-JNXXF3DG.mjs} +1 -1
- package/dist/{chunk-JLA3YAT4.mjs → chunk-JS2FQJMX.mjs} +1 -1
- package/dist/{chunk-6GMZ2XIO.mjs → chunk-NKYWOWNW.mjs} +1 -1
- package/dist/{chunk-PGQDBCOS.mjs → chunk-NPGKX3MZ.mjs} +1 -1
- package/dist/{chunk-GMH4QQZS.mjs → chunk-Q5TYW2HJ.mjs} +2 -2
- package/dist/{chunk-NPGM3ZLN.mjs → chunk-QQVGHMSD.mjs} +1 -1
- package/dist/{chunk-B3WML4XC.mjs → chunk-SGV526OS.mjs} +1 -1
- package/dist/{chunk-KKENQYAQ.mjs → chunk-SSU66MWA.mjs} +1 -1
- package/dist/{chunk-B5YWUSAH.mjs → chunk-TRZPE5UW.mjs} +1 -1
- package/dist/{chunk-JFTCRIQA.mjs → chunk-VDS6DP26.mjs} +1 -1
- package/dist/{chunk-DKJNATV2.mjs → chunk-YW4DIYUX.mjs} +1 -1
- package/dist/{chunk-T7YZ5PRR.mjs → chunk-Z65VJL4Y.mjs} +1 -1
- package/dist/colors/common.mjs +3 -3
- package/dist/colors/index.mjs +5 -5
- package/dist/colors/semantic.mjs +4 -4
- package/dist/colors.mjs +5 -5
- package/dist/components/accordion.mjs +31 -31
- package/dist/components/alert.mjs +31 -31
- package/dist/components/autocomplete.mjs +6 -6
- package/dist/components/avatar.mjs +31 -31
- package/dist/components/badge.mjs +31 -31
- package/dist/components/bottom-bar.d.mts +263 -0
- package/dist/components/bottom-bar.d.ts +263 -0
- package/dist/components/bottom-bar.js +422 -0
- package/dist/components/bottom-bar.mjs +51 -0
- package/dist/components/breadcrumbs.mjs +31 -31
- package/dist/components/button.mjs +31 -31
- package/dist/components/calendar.mjs +31 -31
- package/dist/components/card.mjs +31 -31
- package/dist/components/checkbox.mjs +31 -31
- package/dist/components/chip.mjs +31 -31
- package/dist/components/code.mjs +31 -31
- package/dist/components/date-input.mjs +6 -6
- package/dist/components/date-picker.mjs +6 -6
- package/dist/components/divider.mjs +6 -6
- package/dist/components/drawer.d.mts +33 -12
- package/dist/components/drawer.d.ts +33 -12
- package/dist/components/drawer.js +71 -6
- package/dist/components/drawer.mjs +6 -6
- package/dist/components/drip.mjs +6 -6
- package/dist/components/drop-zone.mjs +31 -31
- package/dist/components/dropdown.mjs +31 -31
- package/dist/components/form.mjs +6 -6
- package/dist/components/image.mjs +6 -6
- package/dist/components/index.d.mts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +256 -6
- package/dist/components/index.mjs +43 -41
- package/dist/components/input-otp.mjs +31 -31
- package/dist/components/input.mjs +31 -31
- package/dist/components/kbd.mjs +6 -6
- package/dist/components/link.mjs +31 -31
- package/dist/components/listbox.mjs +31 -31
- package/dist/components/menu.mjs +31 -31
- package/dist/components/modal.mjs +31 -31
- package/dist/components/navbar.mjs +31 -31
- package/dist/components/number-input.mjs +31 -31
- package/dist/components/pagination.mjs +31 -31
- package/dist/components/popover.mjs +31 -31
- package/dist/components/progress.mjs +6 -6
- package/dist/components/radio.mjs +31 -31
- package/dist/components/scroll-area.mjs +6 -6
- package/dist/components/scroll-shadow.mjs +6 -6
- package/dist/components/select.mjs +31 -31
- package/dist/components/skeleton.mjs +6 -6
- package/dist/components/slider.mjs +31 -31
- package/dist/components/snippet.mjs +31 -31
- package/dist/components/spacer.mjs +6 -6
- package/dist/components/spinner.mjs +6 -6
- package/dist/components/table.mjs +31 -31
- package/dist/components/tabs.mjs +31 -31
- package/dist/components/toast.mjs +31 -31
- package/dist/components/toggle.mjs +31 -31
- package/dist/components/user.mjs +31 -31
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +268 -6
- package/dist/index.mjs +49 -47
- package/dist/plugin.js +18 -0
- package/dist/plugin.mjs +11 -11
- package/dist/utilities/index.mjs +3 -3
- package/dist/utils/cn.mjs +5 -5
- package/dist/utils/index.mjs +31 -31
- package/dist/utils/merge-classes.mjs +31 -31
- package/dist/utils/tv.mjs +5 -5
- package/dist/utils/tw-merge-config.mjs +4 -4
- package/package.json +1 -1
- package/dist/chunk-U5MU6YGM.mjs +0 -62
- package/dist/{chunk-NTTT6BHX.mjs → chunk-6TOTQSJE.mjs} +6 -6
- package/dist/{chunk-7V3PIXOO.mjs → chunk-6US6AURX.mjs} +6 -6
|
@@ -9,6 +9,8 @@ declare const animations: {
|
|
|
9
9
|
"fade-out": string;
|
|
10
10
|
"appearance-in": string;
|
|
11
11
|
"appearance-out": string;
|
|
12
|
+
"drawer-enter": string;
|
|
13
|
+
"drawer-exit": string;
|
|
12
14
|
"indeterminate-bar": string;
|
|
13
15
|
};
|
|
14
16
|
keyframes: {
|
|
@@ -61,6 +63,22 @@ declare const animations: {
|
|
|
61
63
|
transform: string;
|
|
62
64
|
};
|
|
63
65
|
};
|
|
66
|
+
"drawer-enter": {
|
|
67
|
+
"0%": {
|
|
68
|
+
translate: string;
|
|
69
|
+
};
|
|
70
|
+
"100%": {
|
|
71
|
+
translate: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
"drawer-exit": {
|
|
75
|
+
"0%": {
|
|
76
|
+
translate: string;
|
|
77
|
+
};
|
|
78
|
+
"100%": {
|
|
79
|
+
translate: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
64
82
|
"indeterminate-bar": {
|
|
65
83
|
"0%": {
|
|
66
84
|
transform: string;
|
|
@@ -9,6 +9,8 @@ declare const animations: {
|
|
|
9
9
|
"fade-out": string;
|
|
10
10
|
"appearance-in": string;
|
|
11
11
|
"appearance-out": string;
|
|
12
|
+
"drawer-enter": string;
|
|
13
|
+
"drawer-exit": string;
|
|
12
14
|
"indeterminate-bar": string;
|
|
13
15
|
};
|
|
14
16
|
keyframes: {
|
|
@@ -61,6 +63,22 @@ declare const animations: {
|
|
|
61
63
|
transform: string;
|
|
62
64
|
};
|
|
63
65
|
};
|
|
66
|
+
"drawer-enter": {
|
|
67
|
+
"0%": {
|
|
68
|
+
translate: string;
|
|
69
|
+
};
|
|
70
|
+
"100%": {
|
|
71
|
+
translate: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
"drawer-exit": {
|
|
75
|
+
"0%": {
|
|
76
|
+
translate: string;
|
|
77
|
+
};
|
|
78
|
+
"100%": {
|
|
79
|
+
translate: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
64
82
|
"indeterminate-bar": {
|
|
65
83
|
"0%": {
|
|
66
84
|
transform: string;
|
package/dist/animations/index.js
CHANGED
|
@@ -34,6 +34,8 @@ var animations = {
|
|
|
34
34
|
"fade-out": "fade-out 1.2s linear 0s infinite normal none running",
|
|
35
35
|
"appearance-in": "appearance-in 250ms ease-out normal both",
|
|
36
36
|
"appearance-out": "appearance-out 60ms ease-in normal both",
|
|
37
|
+
"drawer-enter": "drawer-enter var(--drawer-enter-duration, 250ms) ease-out both",
|
|
38
|
+
"drawer-exit": "drawer-exit var(--drawer-exit-duration, 280ms) ease-in both",
|
|
37
39
|
"indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
|
|
38
40
|
},
|
|
39
41
|
keyframes: {
|
|
@@ -87,6 +89,22 @@ var animations = {
|
|
|
87
89
|
transform: "scale(0.85)"
|
|
88
90
|
}
|
|
89
91
|
},
|
|
92
|
+
"drawer-enter": {
|
|
93
|
+
"0%": {
|
|
94
|
+
translate: "var(--drawer-translate-x) var(--drawer-translate-y)"
|
|
95
|
+
},
|
|
96
|
+
"100%": {
|
|
97
|
+
translate: "0 0"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"drawer-exit": {
|
|
101
|
+
"0%": {
|
|
102
|
+
translate: "0 0"
|
|
103
|
+
},
|
|
104
|
+
"100%": {
|
|
105
|
+
translate: "var(--drawer-translate-x) var(--drawer-translate-y)"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
90
108
|
"indeterminate-bar": {
|
|
91
109
|
"0%": {
|
|
92
110
|
transform: "translateX(-50%) scaleX(0.2)"
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-NPGKX3MZ.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/drawer.ts
|
|
6
|
+
var drawer = tv({
|
|
7
|
+
slots: {
|
|
8
|
+
base: ["absolute", "m-0", "sm:m-0", "overflow-y-auto"],
|
|
9
|
+
swipeHandle: ["absolute", "z-10", "flex", "touch-none", "select-none"],
|
|
10
|
+
swipeHandleBar: "rounded-full bg-default-300 pointer-events-none"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
size: {
|
|
14
|
+
xs: {
|
|
15
|
+
base: "max-w-xs max-h-[20rem]"
|
|
16
|
+
},
|
|
17
|
+
sm: {
|
|
18
|
+
base: "max-w-sm max-h-[24rem]"
|
|
19
|
+
},
|
|
20
|
+
md: {
|
|
21
|
+
base: "max-w-md max-h-[28rem]"
|
|
22
|
+
},
|
|
23
|
+
lg: {
|
|
24
|
+
base: "max-w-lg max-h-[32rem]"
|
|
25
|
+
},
|
|
26
|
+
xl: {
|
|
27
|
+
base: "max-w-xl max-h-[36rem]"
|
|
28
|
+
},
|
|
29
|
+
"2xl": {
|
|
30
|
+
base: "max-w-2xl max-h-[42rem]"
|
|
31
|
+
},
|
|
32
|
+
"3xl": {
|
|
33
|
+
base: "max-w-3xl max-h-[48rem]"
|
|
34
|
+
},
|
|
35
|
+
"4xl": {
|
|
36
|
+
base: "max-w-4xl max-h-[56rem]"
|
|
37
|
+
},
|
|
38
|
+
"5xl": {
|
|
39
|
+
base: "max-w-5xl max-h-[64rem]"
|
|
40
|
+
},
|
|
41
|
+
full: {
|
|
42
|
+
base: "max-w-full max-h-full h-[100dvh] !rounded-none"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
placement: {
|
|
46
|
+
top: {
|
|
47
|
+
base: [
|
|
48
|
+
"inset-x-0 top-0 max-w-[none] rounded-t-none",
|
|
49
|
+
"[--drawer-translate-x:0] [--drawer-translate-y:-100%]"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
right: {
|
|
53
|
+
base: [
|
|
54
|
+
"inset-y-0 right-0 max-h-[none] rounded-r-none",
|
|
55
|
+
"[--drawer-translate-x:100%] [--drawer-translate-y:0]"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
bottom: {
|
|
59
|
+
base: [
|
|
60
|
+
"inset-x-0 bottom-0 max-w-[none] rounded-b-none",
|
|
61
|
+
"[--drawer-translate-x:0] [--drawer-translate-y:100%]"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
left: {
|
|
65
|
+
base: [
|
|
66
|
+
"inset-y-0 left-0 max-h-[none] rounded-l-none",
|
|
67
|
+
"[--drawer-translate-x:-100%] [--drawer-translate-y:0]"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
nativeMotion: {
|
|
72
|
+
true: {
|
|
73
|
+
base: [
|
|
74
|
+
"[will-change:translate,transform]",
|
|
75
|
+
"[backface-visibility:hidden]",
|
|
76
|
+
"data-[open=true]:animate-drawer-enter",
|
|
77
|
+
"[&:not([data-open])]:animate-drawer-exit",
|
|
78
|
+
"data-[disable-animation=true]:!animate-none"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
compoundVariants: [
|
|
84
|
+
{
|
|
85
|
+
placement: ["top", "bottom"],
|
|
86
|
+
class: {
|
|
87
|
+
swipeHandle: "left-1/2 h-8 w-16 -translate-x-1/2 justify-center",
|
|
88
|
+
swipeHandleBar: "h-1 w-9"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
placement: "top",
|
|
93
|
+
class: {
|
|
94
|
+
swipeHandle: "bottom-0 items-end pb-2 cursor-row-resize"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
placement: "bottom",
|
|
99
|
+
class: {
|
|
100
|
+
swipeHandle: "top-0 items-start pt-2 cursor-row-resize"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
placement: ["left", "right"],
|
|
105
|
+
class: {
|
|
106
|
+
swipeHandle: "top-1/2 h-16 w-8 -translate-y-1/2 items-center",
|
|
107
|
+
swipeHandleBar: "h-9 w-1"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
placement: "left",
|
|
112
|
+
class: {
|
|
113
|
+
swipeHandle: "right-0 justify-end pr-2 cursor-col-resize"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
placement: "right",
|
|
118
|
+
class: {
|
|
119
|
+
swipeHandle: "left-0 justify-start pl-2 cursor-col-resize"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
export {
|
|
126
|
+
drawer
|
|
127
|
+
};
|
|
@@ -10,6 +10,8 @@ var animations = {
|
|
|
10
10
|
"fade-out": "fade-out 1.2s linear 0s infinite normal none running",
|
|
11
11
|
"appearance-in": "appearance-in 250ms ease-out normal both",
|
|
12
12
|
"appearance-out": "appearance-out 60ms ease-in normal both",
|
|
13
|
+
"drawer-enter": "drawer-enter var(--drawer-enter-duration, 250ms) ease-out both",
|
|
14
|
+
"drawer-exit": "drawer-exit var(--drawer-exit-duration, 280ms) ease-in both",
|
|
13
15
|
"indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
|
|
14
16
|
},
|
|
15
17
|
keyframes: {
|
|
@@ -63,6 +65,22 @@ var animations = {
|
|
|
63
65
|
transform: "scale(0.85)"
|
|
64
66
|
}
|
|
65
67
|
},
|
|
68
|
+
"drawer-enter": {
|
|
69
|
+
"0%": {
|
|
70
|
+
translate: "var(--drawer-translate-x) var(--drawer-translate-y)"
|
|
71
|
+
},
|
|
72
|
+
"100%": {
|
|
73
|
+
translate: "0 0"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"drawer-exit": {
|
|
77
|
+
"0%": {
|
|
78
|
+
translate: "0 0"
|
|
79
|
+
},
|
|
80
|
+
"100%": {
|
|
81
|
+
translate: "var(--drawer-translate-x) var(--drawer-translate-y)"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
66
84
|
"indeterminate-bar": {
|
|
67
85
|
"0%": {
|
|
68
86
|
transform: "translateX(-50%) scaleX(0.2)"
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
isBaseTheme
|
|
6
6
|
} from "./chunk-D2XMP2NC.mjs";
|
|
7
|
+
import {
|
|
8
|
+
animations
|
|
9
|
+
} from "./chunk-HYWP3BX7.mjs";
|
|
7
10
|
import {
|
|
8
11
|
utilities
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6US6AURX.mjs";
|
|
10
13
|
import {
|
|
11
14
|
semanticColors
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JNXXF3DG.mjs";
|
|
13
16
|
import {
|
|
14
17
|
flattenThemeObject
|
|
15
18
|
} from "./chunk-5ICJA2GK.mjs";
|
|
16
|
-
import {
|
|
17
|
-
commonColors
|
|
18
|
-
} from "./chunk-NTTT6BHX.mjs";
|
|
19
19
|
import {
|
|
20
20
|
darkLayout,
|
|
21
21
|
defaultLayout,
|
|
22
22
|
lightLayout
|
|
23
23
|
} from "./chunk-HUBDRSA4.mjs";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./chunk-
|
|
25
|
+
commonColors
|
|
26
|
+
} from "./chunk-6TOTQSJE.mjs";
|
|
27
27
|
|
|
28
28
|
// src/plugin.ts
|
|
29
29
|
import Color from "color";
|
|
@@ -3,13 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-GQT3YUX3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
cn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YW4DIYUX.mjs";
|
|
7
7
|
import {
|
|
8
8
|
tv
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NPGKX3MZ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
collapseAdjacentVariantBorders,
|
|
12
12
|
dataFocusVisibleClasses,
|
|
13
|
+
focusVisibleClasses,
|
|
13
14
|
groupDataFocusVisibleClasses,
|
|
14
15
|
hiddenInputClasses,
|
|
15
16
|
ringClasses,
|
|
@@ -2257,6 +2258,183 @@ var badge = tv({
|
|
|
2257
2258
|
]
|
|
2258
2259
|
});
|
|
2259
2260
|
|
|
2261
|
+
// src/components/bottom-bar.ts
|
|
2262
|
+
var bottomBar = tv({
|
|
2263
|
+
slots: {
|
|
2264
|
+
base: ["z-50", "flex", "w-full", "pointer-events-none", "justify-center", "px-3"],
|
|
2265
|
+
list: [
|
|
2266
|
+
"relative",
|
|
2267
|
+
"flex",
|
|
2268
|
+
"w-full",
|
|
2269
|
+
"max-w-md",
|
|
2270
|
+
"items-center",
|
|
2271
|
+
"justify-around",
|
|
2272
|
+
"overflow-visible",
|
|
2273
|
+
"pointer-events-auto",
|
|
2274
|
+
"rounded-full",
|
|
2275
|
+
"border",
|
|
2276
|
+
"border-divider/60",
|
|
2277
|
+
"bg-content1/95",
|
|
2278
|
+
"shadow-large",
|
|
2279
|
+
"supports-[backdrop-filter]:bg-content1/65",
|
|
2280
|
+
"supports-[backdrop-filter]:backdrop-blur-2xl",
|
|
2281
|
+
"supports-[backdrop-filter]:backdrop-saturate-150"
|
|
2282
|
+
],
|
|
2283
|
+
item: ["relative", "flex", "min-w-0", "flex-1", "list-none", "justify-center"],
|
|
2284
|
+
link: [
|
|
2285
|
+
"group",
|
|
2286
|
+
"relative",
|
|
2287
|
+
"isolate",
|
|
2288
|
+
"flex",
|
|
2289
|
+
"min-h-14",
|
|
2290
|
+
"w-full",
|
|
2291
|
+
"min-w-0",
|
|
2292
|
+
"flex-col",
|
|
2293
|
+
"items-center",
|
|
2294
|
+
"justify-center",
|
|
2295
|
+
"gap-0.5",
|
|
2296
|
+
"px-2",
|
|
2297
|
+
"text-tiny",
|
|
2298
|
+
"font-medium",
|
|
2299
|
+
"text-default-500",
|
|
2300
|
+
"tap-highlight-transparent",
|
|
2301
|
+
"data-[selected=true]:font-semibold",
|
|
2302
|
+
"data-[disabled=true]:pointer-events-none",
|
|
2303
|
+
"data-[disabled=true]:opacity-disabled",
|
|
2304
|
+
"data-[prominent=true]:-translate-y-3",
|
|
2305
|
+
"data-[prominent=true]:mx-1",
|
|
2306
|
+
"data-[prominent=true]:min-h-16",
|
|
2307
|
+
"data-[prominent=true]:max-w-16",
|
|
2308
|
+
"data-[prominent=true]:rounded-full",
|
|
2309
|
+
"data-[prominent=true]:border",
|
|
2310
|
+
"data-[prominent=true]:border-divider/60",
|
|
2311
|
+
"data-[prominent=true]:bg-content1/95",
|
|
2312
|
+
"data-[prominent=true]:shadow-medium",
|
|
2313
|
+
"supports-[backdrop-filter]:data-[prominent=true]:bg-content1/70",
|
|
2314
|
+
...focusVisibleClasses
|
|
2315
|
+
],
|
|
2316
|
+
selectionIndicator: [
|
|
2317
|
+
"absolute",
|
|
2318
|
+
"z-0",
|
|
2319
|
+
"pointer-events-none",
|
|
2320
|
+
"list-none",
|
|
2321
|
+
"rounded-full",
|
|
2322
|
+
"bg-default-100/80",
|
|
2323
|
+
"will-change-[left,top,width,height]",
|
|
2324
|
+
"invisible",
|
|
2325
|
+
"data-[initialized=true]:visible"
|
|
2326
|
+
],
|
|
2327
|
+
icon: [
|
|
2328
|
+
"relative",
|
|
2329
|
+
"z-10",
|
|
2330
|
+
"flex",
|
|
2331
|
+
"size-6",
|
|
2332
|
+
"shrink-0",
|
|
2333
|
+
"items-center",
|
|
2334
|
+
"justify-center",
|
|
2335
|
+
"text-current",
|
|
2336
|
+
"[&>svg]:size-full"
|
|
2337
|
+
],
|
|
2338
|
+
label: ["relative", "z-10", "max-w-full", "truncate", "text-current"]
|
|
2339
|
+
},
|
|
2340
|
+
variants: {
|
|
2341
|
+
position: {
|
|
2342
|
+
fixed: {
|
|
2343
|
+
base: ["fixed", "inset-x-0", "bottom-0", "pb-[calc(0.75rem+env(safe-area-inset-bottom))]"]
|
|
2344
|
+
},
|
|
2345
|
+
sticky: {
|
|
2346
|
+
base: ["sticky", "bottom-0", "pb-[calc(0.75rem+env(safe-area-inset-bottom))]"]
|
|
2347
|
+
},
|
|
2348
|
+
static: {
|
|
2349
|
+
base: ["relative", "py-3"]
|
|
2350
|
+
}
|
|
2351
|
+
},
|
|
2352
|
+
color: {
|
|
2353
|
+
default: {
|
|
2354
|
+
link: "data-[selected=true]:text-foreground",
|
|
2355
|
+
selectionIndicator: ["border-foreground/30", "bg-default-200/80", "after:bg-foreground"]
|
|
2356
|
+
},
|
|
2357
|
+
primary: {
|
|
2358
|
+
link: "data-[selected=true]:text-primary",
|
|
2359
|
+
selectionIndicator: ["border-primary/40", "bg-primary/15", "after:bg-primary"]
|
|
2360
|
+
},
|
|
2361
|
+
secondary: {
|
|
2362
|
+
link: "data-[selected=true]:text-secondary",
|
|
2363
|
+
selectionIndicator: ["border-secondary/40", "bg-secondary/15", "after:bg-secondary"]
|
|
2364
|
+
},
|
|
2365
|
+
success: {
|
|
2366
|
+
link: "data-[selected=true]:text-success",
|
|
2367
|
+
selectionIndicator: ["border-success/40", "bg-success/15", "after:bg-success"]
|
|
2368
|
+
},
|
|
2369
|
+
warning: {
|
|
2370
|
+
link: "data-[selected=true]:text-warning",
|
|
2371
|
+
selectionIndicator: ["border-warning/40", "bg-warning/15", "after:bg-warning"]
|
|
2372
|
+
},
|
|
2373
|
+
danger: {
|
|
2374
|
+
link: "data-[selected=true]:text-danger",
|
|
2375
|
+
selectionIndicator: ["border-danger/40", "bg-danger/15", "after:bg-danger"]
|
|
2376
|
+
}
|
|
2377
|
+
},
|
|
2378
|
+
variant: {
|
|
2379
|
+
solid: {},
|
|
2380
|
+
underlined: {
|
|
2381
|
+
selectionIndicator: [
|
|
2382
|
+
"bg-transparent",
|
|
2383
|
+
"after:absolute",
|
|
2384
|
+
"after:bottom-0",
|
|
2385
|
+
"after:left-[10%]",
|
|
2386
|
+
"after:h-0.5",
|
|
2387
|
+
"after:w-4/5",
|
|
2388
|
+
"after:rounded-full",
|
|
2389
|
+
"after:content-['']"
|
|
2390
|
+
]
|
|
2391
|
+
},
|
|
2392
|
+
ghost: {
|
|
2393
|
+
selectionIndicator: ["border", "bg-transparent"]
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
hideLabels: {
|
|
2397
|
+
always: {
|
|
2398
|
+
label: "sr-only"
|
|
2399
|
+
},
|
|
2400
|
+
selected: {
|
|
2401
|
+
label: [
|
|
2402
|
+
"max-h-0",
|
|
2403
|
+
"opacity-0",
|
|
2404
|
+
"group-data-[selected=true]:max-h-5",
|
|
2405
|
+
"group-data-[selected=true]:opacity-100"
|
|
2406
|
+
]
|
|
2407
|
+
},
|
|
2408
|
+
never: {}
|
|
2409
|
+
},
|
|
2410
|
+
disableAnimation: {
|
|
2411
|
+
true: {
|
|
2412
|
+
link: "transition-none",
|
|
2413
|
+
selectionIndicator: "transition-none",
|
|
2414
|
+
icon: "transition-none",
|
|
2415
|
+
label: "transition-none"
|
|
2416
|
+
},
|
|
2417
|
+
false: {
|
|
2418
|
+
link: "transition-[color,transform,opacity] duration-250 ease-out",
|
|
2419
|
+
selectionIndicator: [
|
|
2420
|
+
"data-[animated=true]:transition-[left,top,width,height]",
|
|
2421
|
+
"data-[animated=true]:duration-250",
|
|
2422
|
+
"data-[animated=true]:ease-out"
|
|
2423
|
+
],
|
|
2424
|
+
icon: "transition-transform duration-250 ease-out group-data-[selected=true]:scale-105",
|
|
2425
|
+
label: "transition-[color,max-height,opacity] duration-250 ease-out"
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
},
|
|
2429
|
+
defaultVariants: {
|
|
2430
|
+
position: "fixed",
|
|
2431
|
+
color: "primary",
|
|
2432
|
+
variant: "solid",
|
|
2433
|
+
hideLabels: "never",
|
|
2434
|
+
disableAnimation: false
|
|
2435
|
+
}
|
|
2436
|
+
});
|
|
2437
|
+
|
|
2260
2438
|
// src/components/checkbox.ts
|
|
2261
2439
|
var checkbox = tv({
|
|
2262
2440
|
slots: {
|
|
@@ -10377,6 +10555,7 @@ export {
|
|
|
10377
10555
|
snippet,
|
|
10378
10556
|
chip,
|
|
10379
10557
|
badge,
|
|
10558
|
+
bottomBar,
|
|
10380
10559
|
checkbox,
|
|
10381
10560
|
checkboxGroup,
|
|
10382
10561
|
radio,
|