@byyuurin/ui 0.0.6 → 0.0.7
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 +4 -5
- package/dist/module.cjs +5 -0
- package/dist/module.json +12 -0
- package/dist/{nuxt.mjs → module.mjs} +4 -4
- package/dist/module.mjs.map +1 -0
- package/dist/runtime/components/Accordion.vue +20 -31
- package/dist/runtime/components/Alert.vue +1 -1
- package/dist/runtime/components/Button.vue +10 -11
- package/dist/runtime/components/Card.vue +9 -6
- package/dist/runtime/components/Checkbox.vue +3 -3
- package/dist/runtime/components/Chip.vue +2 -2
- package/dist/runtime/components/Collapsible.vue +56 -0
- package/dist/runtime/components/Drawer.vue +4 -2
- package/dist/runtime/components/Input.vue +4 -4
- package/dist/runtime/components/InputNumber.vue +167 -0
- package/dist/runtime/components/Link.vue +301 -72
- package/dist/runtime/components/LinkBase.vue +88 -0
- package/dist/runtime/components/Modal.vue +0 -1
- package/dist/runtime/components/Select.vue +4 -4
- package/dist/runtime/components/Separator.vue +63 -0
- package/dist/runtime/components/Switch.vue +3 -3
- package/dist/runtime/components/Table.vue +292 -0
- package/dist/runtime/components/Tabs.vue +17 -17
- package/dist/runtime/components/Toast.vue +1 -1
- package/dist/runtime/components/Toaster.vue +1 -35
- package/dist/runtime/composables/useButtonGroup.d.ts +1 -1
- package/dist/runtime/composables/{useButtonGroup.mjs → useButtonGroup.js} +1 -1
- package/dist/runtime/composables/{useComponentIcons.mjs → useComponentIcons.js} +1 -1
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/{useModal.mjs → useModal.js} +1 -1
- package/dist/runtime/composables/useTheme.d.ts +3 -3
- package/dist/runtime/composables/{useTheme.mjs → useTheme.js} +3 -3
- package/dist/runtime/composables/useToast.d.ts +1 -1
- package/dist/runtime/index.d.ts +34 -0
- package/dist/runtime/index.js +34 -0
- package/dist/runtime/theme/accordion.d.ts +8 -8
- package/dist/runtime/theme/{accordion.mjs → accordion.js} +2 -2
- package/dist/runtime/theme/alert.d.ts +2 -2
- package/dist/runtime/theme/{alert.mjs → alert.js} +4 -4
- package/dist/runtime/theme/app.d.ts +3 -0
- package/dist/runtime/theme/{app.mjs → app.js} +4 -1
- package/dist/runtime/theme/badge.d.ts +45 -21
- package/dist/runtime/theme/{badge.mjs → badge.js} +2 -2
- package/dist/runtime/theme/button-group.d.ts +2 -2
- package/dist/runtime/theme/button.d.ts +57 -111
- package/dist/runtime/theme/button.js +164 -0
- package/dist/runtime/theme/card.d.ts +38 -38
- package/dist/runtime/theme/card.js +37 -0
- package/dist/runtime/theme/carousel.d.ts +2 -2
- package/dist/runtime/theme/{carousel.mjs → carousel.js} +2 -2
- package/dist/runtime/theme/checkbox.d.ts +1 -1
- package/dist/runtime/theme/{checkbox.mjs → checkbox.js} +3 -3
- package/dist/runtime/theme/chip.d.ts +45 -12
- package/dist/runtime/theme/{chip.mjs → chip.js} +5 -7
- package/dist/runtime/theme/collapsible.d.ts +38 -0
- package/dist/runtime/theme/collapsible.js +10 -0
- package/dist/runtime/theme/drawer.d.ts +43 -43
- package/dist/runtime/theme/{drawer.mjs → drawer.js} +33 -22
- package/dist/runtime/theme/index.d.ts +31 -27
- package/dist/runtime/theme/index.js +31 -0
- package/dist/runtime/theme/input-number.d.ts +135 -0
- package/dist/runtime/theme/input-number.js +92 -0
- package/dist/runtime/theme/input.d.ts +71 -99
- package/dist/runtime/theme/{input.mjs → input.js} +14 -14
- package/dist/runtime/theme/link.d.ts +2 -2
- package/dist/runtime/theme/{link.mjs → link.js} +1 -1
- package/dist/runtime/theme/modal.d.ts +31 -8
- package/dist/runtime/theme/{modal.mjs → modal.js} +4 -9
- package/dist/runtime/theme/pagination.d.ts +17 -17
- package/dist/runtime/theme/pinInput.d.ts +42 -42
- package/dist/runtime/theme/{pinInput.mjs → pinInput.js} +10 -10
- package/dist/runtime/theme/popover.d.ts +8 -8
- package/dist/runtime/theme/{popover.mjs → popover.js} +1 -1
- package/dist/runtime/theme/radio-group.d.ts +1 -1
- package/dist/runtime/theme/{radio-group.mjs → radio-group.js} +1 -1
- package/dist/runtime/theme/scroll-area.d.ts +17 -17
- package/dist/runtime/theme/{scroll-area.mjs → scroll-area.js} +2 -2
- package/dist/runtime/theme/select.d.ts +84 -99
- package/dist/runtime/theme/{select.mjs → select.js} +17 -17
- package/dist/runtime/theme/separator.d.ts +95 -0
- package/dist/runtime/theme/separator.js +53 -0
- package/dist/runtime/theme/slider.d.ts +1 -1
- package/dist/runtime/theme/{slider.mjs → slider.js} +3 -3
- package/dist/runtime/theme/switch.d.ts +1 -1
- package/dist/runtime/theme/{switch.mjs → switch.js} +2 -2
- package/dist/runtime/theme/table.d.ts +89 -0
- package/dist/runtime/theme/table.js +35 -0
- package/dist/runtime/theme/tabs.d.ts +69 -52
- package/dist/runtime/theme/{tabs.mjs → tabs.js} +11 -11
- package/dist/runtime/theme/textarea.d.ts +43 -37
- package/dist/runtime/theme/{textarea.mjs → textarea.js} +10 -10
- package/dist/runtime/theme/toast.d.ts +2 -2
- package/dist/runtime/theme/{toast.mjs → toast.js} +1 -1
- package/dist/runtime/theme/toaster.d.ts +42 -27
- package/dist/runtime/theme/tooltip.d.ts +11 -11
- package/dist/runtime/theme/tooltip.js +11 -0
- package/dist/runtime/types/components.d.ts +31 -27
- package/dist/runtime/types/index.d.ts +4 -4
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/utils/index.d.ts +3 -3
- package/dist/runtime/utils/{index.mjs → index.js} +3 -3
- package/dist/runtime/utils/link.d.ts +22 -7
- package/dist/runtime/utils/link.js +30 -0
- package/dist/runtime/utils/styler.d.ts +1 -1
- package/dist/runtime/vue/stubs.d.ts +9 -0
- package/dist/runtime/vue/stubs.js +16 -0
- package/dist/shared/{ui.D4zm1r0C.mjs → ui.d1728164.mjs} +1 -1
- package/dist/shared/ui.d1728164.mjs.map +1 -0
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/unocss.d.mts +6 -11
- package/dist/unocss.d.ts +6 -11
- package/dist/unocss.mjs +40 -21
- package/dist/unocss.mjs.map +1 -1
- package/dist/unplugin.mjs +37 -1
- package/dist/unplugin.mjs.map +1 -1
- package/dist/vite.d.mts +0 -1
- package/dist/vite.d.ts +0 -1
- package/dist/vite.mjs +3 -1
- package/dist/vite.mjs.map +1 -1
- package/package.json +37 -36
- package/dist/index.d.ts +0 -29
- package/dist/index.mjs +0 -29
- package/dist/nuxt.mjs.map +0 -1
- package/dist/runtime/theme/button.mjs +0 -148
- package/dist/runtime/theme/card.mjs +0 -14
- package/dist/runtime/theme/index.mjs +0 -27
- package/dist/runtime/theme/tooltip.mjs +0 -11
- package/dist/runtime/types/components.mjs +0 -27
- package/dist/runtime/types/index.mjs +0 -2
- package/dist/runtime/utils/link.mjs +0 -4
- package/dist/shared/ui.D4zm1r0C.mjs.map +0 -1
- /package/dist/{nuxt.d.mts → module.d.mts} +0 -0
- /package/dist/{nuxt.d.ts → module.d.ts} +0 -0
- /package/dist/runtime/composables/{defineInjection.mjs → defineInjection.js} +0 -0
- /package/dist/runtime/composables/{useToast.mjs → useToast.js} +0 -0
- /package/dist/runtime/theme/{button-group.mjs → button-group.js} +0 -0
- /package/dist/runtime/theme/{pagination.mjs → pagination.js} +0 -0
- /package/dist/runtime/theme/{toaster.mjs → toaster.js} +0 -0
- /package/dist/runtime/types/{utils.mjs → components.js} +0 -0
- /package/dist/runtime/utils/{extend-theme.mjs → extend-theme.js} +0 -0
- /package/dist/runtime/utils/{styler.mjs → styler.js} +0 -0
|
@@ -7,27 +7,27 @@ declare const _default: {
|
|
|
7
7
|
variants: {
|
|
8
8
|
[key: string]: {
|
|
9
9
|
[key: string]: "" | {
|
|
10
|
-
content?: import("@byyuurin/ui-kit
|
|
11
|
-
arrow?: import("@byyuurin/ui-kit
|
|
10
|
+
content?: import("@byyuurin/ui-kit").ClassValue;
|
|
11
|
+
arrow?: import("@byyuurin/ui-kit").ClassValue;
|
|
12
12
|
} | null;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
compoundVariants: import("@byyuurin/ui-kit
|
|
15
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
16
16
|
[key: string]: {
|
|
17
17
|
[key: string]: "" | {
|
|
18
|
-
content?: import("@byyuurin/ui-kit
|
|
19
|
-
arrow?: import("@byyuurin/ui-kit
|
|
18
|
+
content?: import("@byyuurin/ui-kit").ClassValue;
|
|
19
|
+
arrow?: import("@byyuurin/ui-kit").ClassValue;
|
|
20
20
|
} | null;
|
|
21
21
|
};
|
|
22
22
|
}, {
|
|
23
23
|
content: string[];
|
|
24
24
|
arrow: string;
|
|
25
25
|
}, undefined>;
|
|
26
|
-
defaultVariants: import("@byyuurin/ui-kit
|
|
26
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
27
27
|
[key: string]: {
|
|
28
28
|
[key: string]: "" | {
|
|
29
|
-
content?: import("@byyuurin/ui-kit
|
|
30
|
-
arrow?: import("@byyuurin/ui-kit
|
|
29
|
+
content?: import("@byyuurin/ui-kit").ClassValue;
|
|
30
|
+
arrow?: import("@byyuurin/ui-kit").ClassValue;
|
|
31
31
|
} | null;
|
|
32
32
|
};
|
|
33
33
|
}, {
|
|
@@ -4,7 +4,7 @@ export default ct(
|
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
6
|
content: [
|
|
7
|
-
"color-ui-base bg-
|
|
7
|
+
"color-ui-base bg-ui-base shadow-lg rounded-ui-box ring ring-ui-base/10",
|
|
8
8
|
"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none pointer-events-auto"
|
|
9
9
|
],
|
|
10
10
|
arrow: "fill-ui-base stroke-ui-cb/10"
|
|
@@ -8,7 +8,7 @@ export default ct(
|
|
|
8
8
|
legend: "mb-2 color-ui-cb",
|
|
9
9
|
item: "flex items-start",
|
|
10
10
|
base: "relative size-1.25em rounded-ui-radio ring ring-inset ring-ui-cb outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80 transition data-[state=checked]:ring-ui-base",
|
|
11
|
-
indicator: "absolute inset-0 scale-0 rounded-ui-radio bg-
|
|
11
|
+
indicator: "absolute inset-0 scale-0 rounded-ui-radio bg-ui-fill transition data-[state=checked]:scale-66",
|
|
12
12
|
container: "h-1.5em flex items-center",
|
|
13
13
|
wrapper: "",
|
|
14
14
|
label: "block ps-2 color-ui-cb",
|
|
@@ -17,22 +17,22 @@ declare const _default: {
|
|
|
17
17
|
variants: {
|
|
18
18
|
[key: string]: {
|
|
19
19
|
[key: string]: "" | {
|
|
20
|
-
root?: import("@byyuurin/ui-kit
|
|
21
|
-
viewport?: import("@byyuurin/ui-kit
|
|
22
|
-
corner?: import("@byyuurin/ui-kit
|
|
23
|
-
scrollbar?: import("@byyuurin/ui-kit
|
|
24
|
-
thumb?: import("@byyuurin/ui-kit
|
|
20
|
+
root?: import("@byyuurin/ui-kit").ClassValue;
|
|
21
|
+
viewport?: import("@byyuurin/ui-kit").ClassValue;
|
|
22
|
+
corner?: import("@byyuurin/ui-kit").ClassValue;
|
|
23
|
+
scrollbar?: import("@byyuurin/ui-kit").ClassValue;
|
|
24
|
+
thumb?: import("@byyuurin/ui-kit").ClassValue;
|
|
25
25
|
} | null;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
compoundVariants: import("@byyuurin/ui-kit
|
|
28
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
29
29
|
[key: string]: {
|
|
30
30
|
[key: string]: "" | {
|
|
31
|
-
root?: import("@byyuurin/ui-kit
|
|
32
|
-
viewport?: import("@byyuurin/ui-kit
|
|
33
|
-
corner?: import("@byyuurin/ui-kit
|
|
34
|
-
scrollbar?: import("@byyuurin/ui-kit
|
|
35
|
-
thumb?: import("@byyuurin/ui-kit
|
|
31
|
+
root?: import("@byyuurin/ui-kit").ClassValue;
|
|
32
|
+
viewport?: import("@byyuurin/ui-kit").ClassValue;
|
|
33
|
+
corner?: import("@byyuurin/ui-kit").ClassValue;
|
|
34
|
+
scrollbar?: import("@byyuurin/ui-kit").ClassValue;
|
|
35
|
+
thumb?: import("@byyuurin/ui-kit").ClassValue;
|
|
36
36
|
} | null;
|
|
37
37
|
};
|
|
38
38
|
}, {
|
|
@@ -47,14 +47,14 @@ declare const _default: {
|
|
|
47
47
|
/** The corner where both vertical and horizontal scrollbars meet. */
|
|
48
48
|
corner: string;
|
|
49
49
|
}, undefined>;
|
|
50
|
-
defaultVariants: import("@byyuurin/ui-kit
|
|
50
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
51
51
|
[key: string]: {
|
|
52
52
|
[key: string]: "" | {
|
|
53
|
-
root?: import("@byyuurin/ui-kit
|
|
54
|
-
viewport?: import("@byyuurin/ui-kit
|
|
55
|
-
corner?: import("@byyuurin/ui-kit
|
|
56
|
-
scrollbar?: import("@byyuurin/ui-kit
|
|
57
|
-
thumb?: import("@byyuurin/ui-kit
|
|
53
|
+
root?: import("@byyuurin/ui-kit").ClassValue;
|
|
54
|
+
viewport?: import("@byyuurin/ui-kit").ClassValue;
|
|
55
|
+
corner?: import("@byyuurin/ui-kit").ClassValue;
|
|
56
|
+
scrollbar?: import("@byyuurin/ui-kit").ClassValue;
|
|
57
|
+
thumb?: import("@byyuurin/ui-kit").ClassValue;
|
|
58
58
|
} | null;
|
|
59
59
|
};
|
|
60
60
|
}, {
|
|
@@ -22,8 +22,8 @@ export default ct(
|
|
|
22
22
|
],
|
|
23
23
|
/** The thumb to be used in `ScrollAreaScrollbar`. */
|
|
24
24
|
thumb: [
|
|
25
|
-
"relative flex-1 bg-
|
|
26
|
-
"hover:bg-
|
|
25
|
+
"relative flex-1 bg-soft-ui-cb/20 rounded-ui-base cursor-pointer transition-colors",
|
|
26
|
+
"hover:bg-soft-ui-cb/30 active:bg-soft-ui-cb/40",
|
|
27
27
|
"before:content-empty before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:w-full before:h-full before:min-w-10 before:min-h-10 "
|
|
28
28
|
],
|
|
29
29
|
/** The corner where both vertical and horizontal scrollbars meet. */
|
|
@@ -85,105 +85,90 @@ declare const _default: {
|
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
compoundVariants: ({
|
|
89
|
-
variant:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
prefix
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
} | {
|
|
173
|
-
loading: true;
|
|
174
|
-
prefix: false;
|
|
175
|
-
suffix: true;
|
|
176
|
-
class: {
|
|
177
|
-
suffixIcon: string;
|
|
178
|
-
base?: undefined;
|
|
179
|
-
item?: undefined;
|
|
180
|
-
prefixIcon?: undefined;
|
|
181
|
-
};
|
|
182
|
-
variant?: undefined;
|
|
183
|
-
highlight?: undefined;
|
|
184
|
-
underline?: undefined;
|
|
185
|
-
size?: undefined;
|
|
186
|
-
})[];
|
|
88
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
89
|
+
variant: {
|
|
90
|
+
outline: {
|
|
91
|
+
base: string[];
|
|
92
|
+
};
|
|
93
|
+
soft: {
|
|
94
|
+
base: string[];
|
|
95
|
+
};
|
|
96
|
+
'soft-outline': {
|
|
97
|
+
base: string[];
|
|
98
|
+
};
|
|
99
|
+
ghost: {
|
|
100
|
+
base: string[];
|
|
101
|
+
};
|
|
102
|
+
none: {
|
|
103
|
+
base: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
size: {
|
|
107
|
+
xs: {
|
|
108
|
+
base: string;
|
|
109
|
+
item: string;
|
|
110
|
+
};
|
|
111
|
+
sm: {
|
|
112
|
+
base: string;
|
|
113
|
+
item: string;
|
|
114
|
+
};
|
|
115
|
+
md: {
|
|
116
|
+
base: string;
|
|
117
|
+
item: string;
|
|
118
|
+
};
|
|
119
|
+
lg: {
|
|
120
|
+
base: string;
|
|
121
|
+
item: string;
|
|
122
|
+
};
|
|
123
|
+
xl: {
|
|
124
|
+
base: string;
|
|
125
|
+
item: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
prefix: {
|
|
129
|
+
true: "";
|
|
130
|
+
};
|
|
131
|
+
suffix: {
|
|
132
|
+
true: "";
|
|
133
|
+
};
|
|
134
|
+
loading: {
|
|
135
|
+
true: "";
|
|
136
|
+
};
|
|
137
|
+
underline: {
|
|
138
|
+
true: "";
|
|
139
|
+
};
|
|
140
|
+
highlight: {
|
|
141
|
+
true: "";
|
|
142
|
+
};
|
|
143
|
+
groupOrientation: {
|
|
144
|
+
horizontal: {
|
|
145
|
+
base: string;
|
|
146
|
+
};
|
|
147
|
+
vertical: {
|
|
148
|
+
base: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
}, {
|
|
152
|
+
base: string[];
|
|
153
|
+
value: string;
|
|
154
|
+
placeholder: string;
|
|
155
|
+
arrow: string;
|
|
156
|
+
content: string[];
|
|
157
|
+
viewport: string;
|
|
158
|
+
group: string;
|
|
159
|
+
empty: string;
|
|
160
|
+
label: string;
|
|
161
|
+
separator: string;
|
|
162
|
+
item: string[];
|
|
163
|
+
itemPrefixIcon: string;
|
|
164
|
+
itemSuffix: string;
|
|
165
|
+
itemSuffixIcon: string;
|
|
166
|
+
itemLabel: string;
|
|
167
|
+
prefix: string;
|
|
168
|
+
prefixIcon: string;
|
|
169
|
+
suffix: string;
|
|
170
|
+
suffixIcon: string;
|
|
171
|
+
}, undefined>;
|
|
187
172
|
defaultVariants: {
|
|
188
173
|
size: "md";
|
|
189
174
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
import { buttonGroupVariant } from "./button-group.
|
|
2
|
+
import { buttonGroupVariant } from "./button-group.js";
|
|
3
3
|
export default ct(
|
|
4
4
|
/* @unocss-include */
|
|
5
5
|
{
|
|
6
6
|
slots: {
|
|
7
7
|
base: [
|
|
8
|
-
"
|
|
8
|
+
"relative group rounded-ui-base inline-flex items-center gap-x-2 focus:outline-none transition-colors",
|
|
9
9
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
10
10
|
],
|
|
11
11
|
value: "me-auto truncate pointer-events-none",
|
|
12
12
|
placeholder: "me-auto truncate color-ui-cb/50",
|
|
13
|
-
arrow: "fill-ui-
|
|
13
|
+
arrow: "fill-ui-cx stroke-ui-cb/20",
|
|
14
14
|
content: [
|
|
15
|
-
"max-h-60 w-[var(--reka-popper-anchor-width)] bg-
|
|
15
|
+
"max-h-60 w-[var(--reka-popper-anchor-width)] bg-ui-cx shadow-lg rounded-[calc(var(--ui-radius-tabs)*0.66)] ring ring-ui-cb/20 overflow-hidden pointer-events-auto",
|
|
16
16
|
"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]"
|
|
17
17
|
],
|
|
18
18
|
viewport: "divide-y divide-ui-cb/10 scroll-py-1",
|
|
19
19
|
group: "p-1 isolate",
|
|
20
20
|
empty: "py-2 text-center text-sm color-ui-cb/50",
|
|
21
21
|
label: "font-semibold color-ui-cb cursor-pointer",
|
|
22
|
-
separator: "-mx-1 my-1 h-px bg-
|
|
22
|
+
separator: "-mx-1 my-1 h-px bg-soft-ui-cb/10",
|
|
23
23
|
item: [
|
|
24
24
|
"group relative w-full flex gap-2 items-center select-none outline-none color-ui-cb/50 transition-colors cursor-pointer",
|
|
25
25
|
"aria-disabled:cursor-not-allowed aria-disabled:opacity-50",
|
|
26
26
|
"before:content-empty before:absolute before:z-[-1] before:inset-px before:rounded-ui-base before:transition-colors",
|
|
27
|
-
"data-[highlighted]:color-ui-cb data-[highlighted]:before:bg-
|
|
27
|
+
"data-[highlighted]:color-ui-cb data-[highlighted]:before:bg-soft-ui-cb/3",
|
|
28
28
|
"data-[state=checked]:color-ui-base"
|
|
29
29
|
],
|
|
30
30
|
itemPrefixIcon: "shrink-0 color-ui-cb/80 group-data-[highlighted]:color-ui-cb/80 transition-colors",
|
|
@@ -41,29 +41,29 @@ export default ct(
|
|
|
41
41
|
variant: {
|
|
42
42
|
"outline": {
|
|
43
43
|
base: [
|
|
44
|
-
"color-ui-cb/80 bg-
|
|
44
|
+
"color-ui-cb/80 bg-ui-cx ring ring-inset ring-ui-cb/30 data-[state=open]:ring-2 data-[state=open]:ring-ui-cb/50",
|
|
45
45
|
"focus-within:ring-2 focus-within:ring-ui-cb/50",
|
|
46
46
|
"disabled:ring-ui-cb/80 hover:disabled:ring-ui-cb/80"
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"soft": {
|
|
50
50
|
base: [
|
|
51
|
-
"color-ui-cb/80 bg-
|
|
52
|
-
"hover:bg-
|
|
53
|
-
"disabled:color-ui-content/80 disabled:bg-
|
|
51
|
+
"color-ui-cb/80 bg-soft-ui-cb/5 data-[state=open]:bg-soft-ui-cb/5",
|
|
52
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
|
|
53
|
+
"disabled:color-ui-content/80 disabled:bg-soft-ui-fill/5 hover:disabled:color-ui-content/80 hover:disabled:bg-soft-ui-fill/5"
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
56
|
"soft-outline": {
|
|
57
57
|
base: [
|
|
58
|
-
"color-ui-cb/80 bg-
|
|
59
|
-
"hover:bg-
|
|
60
|
-
"disabled:color-ui-content/80 disabled:bg-
|
|
58
|
+
"color-ui-cb/80 bg-soft-ui-cb/5 ring ring-inset ring-ui-cb/10 data-[state=open]:bg-soft-ui-cb/5 data-[state=open]:ring-ui-cb/25",
|
|
59
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
|
|
60
|
+
"disabled:color-ui-content/80 disabled:bg-soft-ui-fill/5 hover:disabled:color-ui-content/80 hover:disabled:bg-soft-ui-fill/5"
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
63
|
"ghost": {
|
|
64
64
|
base: [
|
|
65
|
-
"color-ui-cb/80 bg-transparent",
|
|
66
|
-
"hover:bg-
|
|
65
|
+
"color-ui-cb/80 bg-transparent data-[state=open]:bg-soft-ui-cb/8",
|
|
66
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
|
|
67
67
|
"disabled:color-ui-fill/80 disabled:bg-transparent hover:disabled:color-ui-fill/80 hover:disabled:bg-transparent"
|
|
68
68
|
]
|
|
69
69
|
},
|
|
@@ -116,8 +116,8 @@ export default ct(
|
|
|
116
116
|
underline: true,
|
|
117
117
|
class: {
|
|
118
118
|
base: [
|
|
119
|
-
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-
|
|
120
|
-
"data-[state=open]:after:h-2px data-[state=open]:after:bg-
|
|
119
|
+
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-soft-ui-cb/40",
|
|
120
|
+
"data-[state=open]:after:h-2px data-[state=open]:after:bg-soft-ui-fill/60"
|
|
121
121
|
]
|
|
122
122
|
}
|
|
123
123
|
},
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
line: string;
|
|
6
|
+
container: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
variants: {
|
|
11
|
+
orientation: {
|
|
12
|
+
horizontal: {
|
|
13
|
+
root: string;
|
|
14
|
+
line: string;
|
|
15
|
+
container: string;
|
|
16
|
+
};
|
|
17
|
+
vertical: {
|
|
18
|
+
root: string;
|
|
19
|
+
line: string;
|
|
20
|
+
container: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
start: {
|
|
24
|
+
true: {
|
|
25
|
+
line: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
end: {
|
|
29
|
+
true: {
|
|
30
|
+
line: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
35
|
+
orientation: {
|
|
36
|
+
horizontal: {
|
|
37
|
+
root: string;
|
|
38
|
+
line: string;
|
|
39
|
+
container: string;
|
|
40
|
+
};
|
|
41
|
+
vertical: {
|
|
42
|
+
root: string;
|
|
43
|
+
line: string;
|
|
44
|
+
container: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
start: {
|
|
48
|
+
true: {
|
|
49
|
+
line: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
end: {
|
|
53
|
+
true: {
|
|
54
|
+
line: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
root: string;
|
|
59
|
+
line: string;
|
|
60
|
+
container: string;
|
|
61
|
+
icon: string;
|
|
62
|
+
label: string;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
65
|
+
orientation: {
|
|
66
|
+
horizontal: {
|
|
67
|
+
root: string;
|
|
68
|
+
line: string;
|
|
69
|
+
container: string;
|
|
70
|
+
};
|
|
71
|
+
vertical: {
|
|
72
|
+
root: string;
|
|
73
|
+
line: string;
|
|
74
|
+
container: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
start: {
|
|
78
|
+
true: {
|
|
79
|
+
line: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
end: {
|
|
83
|
+
true: {
|
|
84
|
+
line: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
root: string;
|
|
89
|
+
line: string;
|
|
90
|
+
container: string;
|
|
91
|
+
icon: string;
|
|
92
|
+
label: string;
|
|
93
|
+
}>;
|
|
94
|
+
};
|
|
95
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "flex items-center justify-center text-center",
|
|
7
|
+
line: "border-solid border-ui-fill/20",
|
|
8
|
+
container: "color-ui-cb/80 flex",
|
|
9
|
+
icon: "shrink-0 size-5",
|
|
10
|
+
label: ""
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
orientation: {
|
|
14
|
+
horizontal: {
|
|
15
|
+
root: "w-full flex-row",
|
|
16
|
+
line: "min-w-3 w-full border-t",
|
|
17
|
+
container: "px-3 whitespace-nowrap"
|
|
18
|
+
},
|
|
19
|
+
vertical: {
|
|
20
|
+
root: "h-full flex-col",
|
|
21
|
+
line: "min-h-3 h-full border-s",
|
|
22
|
+
container: "py-2"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
start: {
|
|
26
|
+
true: {
|
|
27
|
+
line: "w-auto flex-grow"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
end: {
|
|
31
|
+
true: {
|
|
32
|
+
line: "w-auto flex-grow"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
compoundVariants: [
|
|
37
|
+
{
|
|
38
|
+
orientation: "vertical",
|
|
39
|
+
start: true,
|
|
40
|
+
class: {
|
|
41
|
+
line: "h-auto"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
orientation: "vertical",
|
|
46
|
+
end: true,
|
|
47
|
+
class: {
|
|
48
|
+
line: "h-auto"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
);
|
|
@@ -5,13 +5,13 @@ export default ct(
|
|
|
5
5
|
slots: {
|
|
6
6
|
root: "relative flex items-center select-none touch-none aria-disabled:opacity-50",
|
|
7
7
|
track: [
|
|
8
|
-
"relative bg-
|
|
8
|
+
"relative bg-soft-ui-cb/10 overflow-hidden rounded-full flex-grow cursor-pointer",
|
|
9
9
|
"data-[disabled]:cursor-not-allowed",
|
|
10
10
|
"data-[orientation=horizontal]:h-0.6em data-[orientation=vertical]:w-0.6em"
|
|
11
11
|
],
|
|
12
|
-
range: "absolute rounded-full bg-
|
|
12
|
+
range: "absolute rounded-full bg-soft-ui-fill",
|
|
13
13
|
thumb: [
|
|
14
|
-
"size-1em rounded-full bg-
|
|
14
|
+
"size-1em rounded-full bg-ui-cx ring-0.2em cursor-pointer focus-visible:outline-0.2em focus-visible:outline-offset-0.2em",
|
|
15
15
|
"data-[disabled]:cursor-not-allowed",
|
|
16
16
|
"ring-ui-fill outline-none focus-visible:outline-ui-fill/50"
|
|
17
17
|
]
|
|
@@ -7,12 +7,12 @@ export default ct(
|
|
|
7
7
|
base: [
|
|
8
8
|
"inline-flex items-center shrink-0 rounded-ui-switch border-2 border-transparent transition-colors duration-200",
|
|
9
9
|
"outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80",
|
|
10
|
-
"data-[state=unchecked]:bg-
|
|
10
|
+
"data-[state=unchecked]:bg-soft-ui-cb/10 data-[state=checked]:bg-soft-ui-fill/80",
|
|
11
11
|
"w-2.7em"
|
|
12
12
|
],
|
|
13
13
|
container: "flex items-center h-1.5em",
|
|
14
14
|
thumb: [
|
|
15
|
-
"group pointer-events-none rounded-ui-switch size-1.25em bg-
|
|
15
|
+
"group pointer-events-none rounded-ui-switch size-1.25em bg-ui-cx shadow-lg ring-0 transition-transform duration-200 flex items-center justify-center",
|
|
16
16
|
"data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:translate-x-0 data-[state=checked]:translate-x-1.25em data-[state=checked]:rtl:-translate-x-1.25em"
|
|
17
17
|
],
|
|
18
18
|
icon: [
|