@byyuurin/ui 0.0.5 → 0.0.6
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 +13 -8
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +3 -0
- package/dist/nuxt.mjs +4 -3
- package/dist/nuxt.mjs.map +1 -1
- package/dist/runtime/components/App.vue +1 -1
- package/dist/runtime/components/Badge.vue +0 -1
- package/dist/runtime/components/Button.vue +4 -1
- package/dist/runtime/components/ButtonGroup.vue +47 -0
- package/dist/runtime/components/Carousel.vue +310 -0
- package/dist/runtime/components/Checkbox.vue +0 -1
- package/dist/runtime/components/Chip.vue +7 -2
- package/dist/runtime/components/Input.vue +8 -4
- package/dist/runtime/components/Modal.vue +2 -3
- package/dist/runtime/components/Pagination.vue +167 -0
- package/dist/runtime/components/PinInput.vue +0 -1
- package/dist/runtime/components/RadioGroup.vue +0 -1
- package/dist/runtime/components/ScrollArea.vue +1 -1
- package/dist/runtime/components/Select.vue +5 -1
- package/dist/runtime/components/Slider.vue +0 -1
- package/dist/runtime/components/Switch.vue +1 -3
- package/dist/runtime/components/Tabs.vue +0 -1
- package/dist/runtime/components/Textarea.vue +0 -1
- package/dist/runtime/components/Toast.vue +20 -9
- package/dist/runtime/components/Toaster.vue +3 -4
- package/dist/runtime/composables/useButtonGroup.d.ts +13 -0
- package/dist/runtime/composables/useButtonGroup.mjs +14 -0
- package/dist/runtime/composables/useTheme.d.ts +2 -2
- package/dist/runtime/composables/useTheme.mjs +1 -1
- package/dist/runtime/composables/useToast.d.ts +4 -4
- package/dist/runtime/composables/useToast.mjs +19 -6
- package/dist/runtime/theme/accordion.d.ts +17 -0
- package/dist/runtime/theme/alert.d.ts +40 -0
- package/dist/runtime/theme/alert.mjs +4 -4
- package/dist/runtime/theme/app.d.ts +5 -0
- package/dist/runtime/theme/app.mjs +6 -1
- package/dist/runtime/theme/badge.d.ts +3 -0
- package/dist/runtime/theme/badge.mjs +5 -2
- package/dist/runtime/theme/button-group.d.ts +66 -0
- package/dist/runtime/theme/button-group.mjs +42 -0
- package/dist/runtime/theme/button.d.ts +11 -0
- package/dist/runtime/theme/button.mjs +23 -18
- package/dist/runtime/theme/card.d.ts +19 -0
- package/dist/runtime/theme/card.mjs +1 -1
- package/dist/runtime/theme/carousel.d.ts +113 -0
- package/dist/runtime/theme/carousel.mjs +43 -0
- package/dist/runtime/theme/checkbox.d.ts +3 -0
- package/dist/runtime/theme/checkbox.mjs +6 -3
- package/dist/runtime/theme/chip.d.ts +11 -0
- package/dist/runtime/theme/chip.mjs +10 -5
- package/dist/runtime/theme/drawer.d.ts +38 -0
- package/dist/runtime/theme/drawer.mjs +2 -2
- package/dist/runtime/theme/index.d.ts +5 -2
- package/dist/runtime/theme/index.mjs +5 -2
- package/dist/runtime/theme/input.d.ts +33 -22
- package/dist/runtime/theme/input.mjs +36 -31
- package/dist/runtime/theme/link.d.ts +13 -0
- package/dist/runtime/theme/modal.d.ts +3 -0
- package/dist/runtime/theme/modal.mjs +5 -2
- package/dist/runtime/theme/pagination.d.ts +56 -0
- package/dist/runtime/theme/pagination.mjs +13 -0
- package/dist/runtime/theme/pinInput.d.ts +3 -0
- package/dist/runtime/theme/pinInput.mjs +14 -11
- package/dist/runtime/theme/popover.d.ts +11 -0
- package/dist/runtime/theme/popover.mjs +1 -1
- package/dist/runtime/theme/{radioGroup.d.ts → radio-group.d.ts} +3 -0
- package/dist/runtime/theme/{radioGroup.mjs → radio-group.mjs} +4 -1
- package/dist/runtime/theme/{scrollArea.d.ts → scroll-area.d.ts} +22 -0
- package/dist/runtime/theme/{scrollArea.mjs → scroll-area.mjs} +2 -2
- package/dist/runtime/theme/select.d.ts +11 -0
- package/dist/runtime/theme/select.mjs +20 -15
- package/dist/runtime/theme/slider.d.ts +3 -0
- package/dist/runtime/theme/slider.mjs +6 -3
- package/dist/runtime/theme/switch.d.ts +3 -0
- package/dist/runtime/theme/switch.mjs +5 -2
- package/dist/runtime/theme/tabs.d.ts +3 -0
- package/dist/runtime/theme/tabs.mjs +13 -10
- package/dist/runtime/theme/textarea.d.ts +3 -0
- package/dist/runtime/theme/textarea.mjs +14 -11
- package/dist/runtime/theme/toast.d.ts +44 -6
- package/dist/runtime/theme/toast.mjs +12 -7
- package/dist/runtime/theme/toaster.d.ts +49 -0
- package/dist/runtime/theme/toaster.mjs +5 -0
- package/dist/runtime/theme/tooltip.d.ts +13 -0
- package/dist/runtime/theme/tooltip.mjs +1 -1
- package/dist/runtime/types/components.d.ts +27 -25
- package/dist/runtime/types/components.mjs +27 -0
- package/dist/runtime/types/utils.d.ts +1 -1
- package/dist/runtime/utils/styler.d.ts +2 -2
- package/dist/shared/ui.D4zm1r0C.mjs +4 -0
- package/dist/shared/ui.D4zm1r0C.mjs.map +1 -0
- package/dist/{unocss-preset.d.mts → unocss.d.mts} +4 -4
- package/dist/{unocss-preset.d.ts → unocss.d.ts} +4 -4
- package/dist/{unocss-preset.mjs → unocss.mjs} +15 -2
- package/dist/unocss.mjs.map +1 -0
- package/dist/unplugin.d.mts +4 -3
- package/dist/unplugin.d.ts +4 -3
- package/dist/unplugin.mjs +13 -5
- package/dist/unplugin.mjs.map +1 -1
- package/dist/vite.d.mts +2 -1
- package/dist/vite.d.ts +2 -1
- package/dist/vite.mjs +5 -5
- package/dist/vite.mjs.map +1 -1
- package/package.json +35 -22
- package/dist/shared/ui.CzDyI29e.mjs +0 -8
- package/dist/shared/ui.CzDyI29e.mjs.map +0 -1
- package/dist/unocss-preset.mjs.map +0 -1
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: string;
|
|
3
|
+
slots: undefined;
|
|
4
|
+
variants: {
|
|
5
|
+
size: {
|
|
6
|
+
xs: "";
|
|
7
|
+
sm: "";
|
|
8
|
+
md: "";
|
|
9
|
+
lg: "";
|
|
10
|
+
xl: "";
|
|
11
|
+
};
|
|
12
|
+
orientation: {
|
|
13
|
+
horizontal: "inline-flex -space-x-px";
|
|
14
|
+
vertical: "flex flex-col -space-y-px";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
|
|
18
|
+
size: {
|
|
19
|
+
xs: "";
|
|
20
|
+
sm: "";
|
|
21
|
+
md: "";
|
|
22
|
+
lg: "";
|
|
23
|
+
xl: "";
|
|
24
|
+
};
|
|
25
|
+
orientation: {
|
|
26
|
+
horizontal: "inline-flex -space-x-px";
|
|
27
|
+
vertical: "flex flex-col -space-y-px";
|
|
28
|
+
};
|
|
29
|
+
}, undefined, "relative">;
|
|
30
|
+
defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
|
|
31
|
+
size: {
|
|
32
|
+
xs: "";
|
|
33
|
+
sm: "";
|
|
34
|
+
md: "";
|
|
35
|
+
lg: "";
|
|
36
|
+
xl: "";
|
|
37
|
+
};
|
|
38
|
+
orientation: {
|
|
39
|
+
horizontal: "inline-flex -space-x-px";
|
|
40
|
+
vertical: "flex flex-col -space-y-px";
|
|
41
|
+
};
|
|
42
|
+
}, undefined>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
export declare const buttonGroupVariant: {
|
|
46
|
+
groupOrientation: {
|
|
47
|
+
horizontal: {
|
|
48
|
+
base: string;
|
|
49
|
+
};
|
|
50
|
+
vertical: {
|
|
51
|
+
base: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const buttonGroupVariantWithRoot: {
|
|
56
|
+
groupOrientation: {
|
|
57
|
+
horizontal: {
|
|
58
|
+
root: string;
|
|
59
|
+
base: string;
|
|
60
|
+
};
|
|
61
|
+
vertical: {
|
|
62
|
+
root: string;
|
|
63
|
+
base: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
base: "relative",
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
xs: "",
|
|
9
|
+
sm: "",
|
|
10
|
+
md: "",
|
|
11
|
+
lg: "",
|
|
12
|
+
xl: ""
|
|
13
|
+
},
|
|
14
|
+
orientation: {
|
|
15
|
+
horizontal: "inline-flex -space-x-px",
|
|
16
|
+
vertical: "flex flex-col -space-y-px"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export const buttonGroupVariant = {
|
|
22
|
+
groupOrientation: {
|
|
23
|
+
horizontal: {
|
|
24
|
+
base: "not-only-child:first:rounded-e-none not-only-child:last:rounded-s-none not-last:not-first:rounded-none"
|
|
25
|
+
},
|
|
26
|
+
vertical: {
|
|
27
|
+
base: "not-only-child:first:rounded-b-none not-only-child:last:rounded-t-none not-last:not-first:rounded-none"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export const buttonGroupVariantWithRoot = {
|
|
32
|
+
groupOrientation: {
|
|
33
|
+
horizontal: {
|
|
34
|
+
root: "group",
|
|
35
|
+
base: "group-not-only-child:group-first:rounded-e-none group-not-only-child:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
|
|
36
|
+
},
|
|
37
|
+
vertical: {
|
|
38
|
+
root: "group",
|
|
39
|
+
base: "group-not-only-child:group-first:rounded-b-none group-not-only-child:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
@@ -56,6 +56,14 @@ declare const _default: {
|
|
|
56
56
|
loading: {
|
|
57
57
|
true: "";
|
|
58
58
|
};
|
|
59
|
+
groupOrientation: {
|
|
60
|
+
horizontal: {
|
|
61
|
+
base: string;
|
|
62
|
+
};
|
|
63
|
+
vertical: {
|
|
64
|
+
base: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
59
67
|
};
|
|
60
68
|
compoundVariants: ({
|
|
61
69
|
size: ("xs" | "sm" | "md")[];
|
|
@@ -175,5 +183,8 @@ declare const _default: {
|
|
|
175
183
|
active?: undefined;
|
|
176
184
|
variant?: undefined;
|
|
177
185
|
})[];
|
|
186
|
+
defaultVariants: {
|
|
187
|
+
size: "md";
|
|
188
|
+
};
|
|
178
189
|
};
|
|
179
190
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
import { buttonGroupVariant } from "./button-group.mjs";
|
|
2
3
|
export default ct(
|
|
3
4
|
/* @unocss-include */
|
|
4
5
|
{
|
|
@@ -13,39 +14,40 @@ export default ct(
|
|
|
13
14
|
suffixIcon: "shrink-0 size-1.5em not-only-child:mr-0.5"
|
|
14
15
|
},
|
|
15
16
|
variants: {
|
|
17
|
+
...buttonGroupVariant,
|
|
16
18
|
variant: {
|
|
17
19
|
"solid": {
|
|
18
20
|
base: [
|
|
19
|
-
"color-ui-c1 bg-ui-fill/90",
|
|
20
|
-
"hover:bg-ui-fill/80 active:bg-ui-fill",
|
|
21
|
-
"disabled:bg-ui-fill/90 aria-disabled:bg-ui-fill/90"
|
|
21
|
+
"color-ui-c1 bg-solid-ui-fill/90",
|
|
22
|
+
"hover:bg-solid-ui-fill/80 active:bg-solid-ui-fill",
|
|
23
|
+
"disabled:bg-solid-ui-fill/90 aria-disabled:bg-solid-ui-fill/90"
|
|
22
24
|
]
|
|
23
25
|
},
|
|
24
26
|
"outline": {
|
|
25
27
|
base: [
|
|
26
|
-
"color-ui-fill bg-ui-c1 ring ring-inset ring-ui-fill",
|
|
27
|
-
"hover:bg-ui-fill/5 active:bg-ui-fill/10",
|
|
28
|
-
"disabled:bg-ui-c1 aria-disabled:bg-ui-c1"
|
|
28
|
+
"color-ui-fill bg-solid-ui-c1 ring ring-inset ring-ui-fill",
|
|
29
|
+
"hover:bg-solid-ui-fill/5 active:bg-solid-ui-fill/10",
|
|
30
|
+
"disabled:bg-solid-ui-c1 aria-disabled:bg-solid-ui-c1"
|
|
29
31
|
]
|
|
30
32
|
},
|
|
31
33
|
"soft": {
|
|
32
34
|
base: [
|
|
33
|
-
"color-ui-content/80 bg-ui-fill/10",
|
|
34
|
-
"hover:bg-ui-fill/15 hover:color-ui-content/80 active:bg-ui-fill/20 active:color-ui-content/90",
|
|
35
|
-
"disabled:bg-ui-fill/10 aria-disabled:bg-ui-fill/10 disabled:color-ui-content/80 aria-disabled:color-ui-content/80"
|
|
35
|
+
"color-ui-content/80 bg-solid-ui-fill/10",
|
|
36
|
+
"hover:bg-solid-ui-fill/15 hover:color-ui-content/80 active:bg-solid-ui-fill/20 active:color-ui-content/90",
|
|
37
|
+
"disabled:bg-solid-ui-fill/10 aria-disabled:bg-solid-ui-fill/10 disabled:color-ui-content/80 aria-disabled:color-ui-content/80"
|
|
36
38
|
]
|
|
37
39
|
},
|
|
38
40
|
"soft-outline": {
|
|
39
41
|
base: [
|
|
40
|
-
"color-ui-content/80 bg-ui-fill/10 ring ring-inset ring-ui-fill/40",
|
|
41
|
-
"hover:bg-ui-fill/15 hover:color-ui-content/80 active:bg-ui-fill/20 active:color-ui-content/90",
|
|
42
|
-
"disabled:bg-ui-fill/10 aria-disabled:bg-ui-fill/10 disabled:color-ui-content/80 aria-disabled:color-ui-content/80"
|
|
42
|
+
"color-ui-content/80 bg-solid-ui-fill/10 ring ring-inset ring-ui-fill/40",
|
|
43
|
+
"hover:bg-solid-ui-fill/15 hover:color-ui-content/80 active:bg-solid-ui-fill/20 active:color-ui-content/90",
|
|
44
|
+
"disabled:bg-solid-ui-fill/10 aria-disabled:bg-solid-ui-fill/10 disabled:color-ui-content/80 aria-disabled:color-ui-content/80"
|
|
43
45
|
]
|
|
44
46
|
},
|
|
45
47
|
"ghost": {
|
|
46
48
|
base: [
|
|
47
49
|
"color-ui-fill/80 bg-transparent",
|
|
48
|
-
"hover:bg-ui-fill/10 hover:color-ui-fill/80 active:bg-ui-fill/20 active:color-ui-fill/90",
|
|
50
|
+
"hover:bg-solid-ui-fill/10 hover:color-ui-fill/80 active:bg-solid-ui-fill/20 active:color-ui-fill/90",
|
|
49
51
|
"disabled:bg-transparent aria-disabled:bg-transparent disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80"
|
|
50
52
|
]
|
|
51
53
|
},
|
|
@@ -105,22 +107,22 @@ export default ct(
|
|
|
105
107
|
{
|
|
106
108
|
active: true,
|
|
107
109
|
variant: "solid",
|
|
108
|
-
class: { base: "bg-ui-fill hover:bg-ui-fill" }
|
|
110
|
+
class: { base: "bg-solid-ui-fill hover:bg-solid-ui-fill" }
|
|
109
111
|
},
|
|
110
112
|
{
|
|
111
113
|
active: true,
|
|
112
114
|
variant: "outline",
|
|
113
|
-
class: { base: "bg-ui-fill/10 hover:bg-ui-fill/10" }
|
|
115
|
+
class: { base: "bg-solid-ui-fill/10 hover:bg-solid-ui-fill/10" }
|
|
114
116
|
},
|
|
115
117
|
{
|
|
116
118
|
active: true,
|
|
117
119
|
variant: ["soft", "soft-outline"],
|
|
118
|
-
class: { base: "color-ui-content/90 bg-ui-fill/20 hover:color-ui-content/90 hover:bg-ui-fill/20" }
|
|
120
|
+
class: { base: "color-ui-content/90 bg-solid-ui-fill/20 hover:color-ui-content/90 hover:bg-solid-ui-fill/20" }
|
|
119
121
|
},
|
|
120
122
|
{
|
|
121
123
|
active: true,
|
|
122
124
|
variant: "ghost",
|
|
123
|
-
class: { base: "color-ui-fill/90 bg-ui-fill/20 hover:color-ui-fill/90 hover:bg-ui-fill/20" }
|
|
125
|
+
class: { base: "color-ui-fill/90 bg-solid-ui-fill/20 hover:color-ui-fill/90 hover:bg-solid-ui-fill/20" }
|
|
124
126
|
},
|
|
125
127
|
{
|
|
126
128
|
active: true,
|
|
@@ -138,6 +140,9 @@ export default ct(
|
|
|
138
140
|
suffix: true,
|
|
139
141
|
class: { suffixIcon: "animate-spin" }
|
|
140
142
|
}
|
|
141
|
-
]
|
|
143
|
+
],
|
|
144
|
+
defaultVariants: {
|
|
145
|
+
size: "md"
|
|
146
|
+
}
|
|
142
147
|
}
|
|
143
148
|
);
|
|
@@ -39,5 +39,24 @@ declare const _default: {
|
|
|
39
39
|
title: string;
|
|
40
40
|
description: string;
|
|
41
41
|
}, undefined>;
|
|
42
|
+
defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
|
|
43
|
+
[key: string]: {
|
|
44
|
+
[key: string]: "" | {
|
|
45
|
+
root?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
46
|
+
header?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
47
|
+
body?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
48
|
+
title?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
49
|
+
description?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
50
|
+
footer?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
51
|
+
} | null;
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
root: string;
|
|
55
|
+
header: string;
|
|
56
|
+
body: string;
|
|
57
|
+
footer: string;
|
|
58
|
+
title: string;
|
|
59
|
+
description: string;
|
|
60
|
+
}>;
|
|
42
61
|
};
|
|
43
62
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export default ct(
|
|
|
3
3
|
/* @unocss-include */
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
|
-
root: "color-ui-cb bg-ui-c1 ring ring-ui-cb/10 divide-y divide-ui-cb/10 rounded-ui-box shadow-sm shadow-ui-cb/10",
|
|
6
|
+
root: "color-ui-cb bg-solid-ui-c1 ring ring-ui-cb/10 divide-y divide-ui-cb/10 rounded-ui-box shadow-sm shadow-ui-cb/10",
|
|
7
7
|
header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
|
|
8
8
|
body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
|
|
9
9
|
footer: "flex items-center gap-1.5 p-4 sm:px-6",
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
viewport: string;
|
|
6
|
+
container: string;
|
|
7
|
+
item: string;
|
|
8
|
+
controls: string;
|
|
9
|
+
arrows: string;
|
|
10
|
+
prev: string;
|
|
11
|
+
next: string;
|
|
12
|
+
dots: string;
|
|
13
|
+
dot: string;
|
|
14
|
+
};
|
|
15
|
+
variants: {
|
|
16
|
+
orientation: {
|
|
17
|
+
vertical: {
|
|
18
|
+
container: string;
|
|
19
|
+
item: string;
|
|
20
|
+
controls: string;
|
|
21
|
+
arrows: string;
|
|
22
|
+
dots: string;
|
|
23
|
+
prev: string;
|
|
24
|
+
next: string;
|
|
25
|
+
};
|
|
26
|
+
horizontal: {
|
|
27
|
+
container: string;
|
|
28
|
+
item: string;
|
|
29
|
+
prev: string;
|
|
30
|
+
next: string;
|
|
31
|
+
dots: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
active: {
|
|
35
|
+
true: {
|
|
36
|
+
dot: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
|
|
41
|
+
orientation: {
|
|
42
|
+
vertical: {
|
|
43
|
+
container: string;
|
|
44
|
+
item: string;
|
|
45
|
+
controls: string;
|
|
46
|
+
arrows: string;
|
|
47
|
+
dots: string;
|
|
48
|
+
prev: string;
|
|
49
|
+
next: string;
|
|
50
|
+
};
|
|
51
|
+
horizontal: {
|
|
52
|
+
container: string;
|
|
53
|
+
item: string;
|
|
54
|
+
prev: string;
|
|
55
|
+
next: string;
|
|
56
|
+
dots: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
active: {
|
|
60
|
+
true: {
|
|
61
|
+
dot: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
root: string;
|
|
66
|
+
viewport: string;
|
|
67
|
+
container: string;
|
|
68
|
+
item: string;
|
|
69
|
+
controls: string;
|
|
70
|
+
arrows: string;
|
|
71
|
+
prev: string;
|
|
72
|
+
next: string;
|
|
73
|
+
dots: string;
|
|
74
|
+
dot: string;
|
|
75
|
+
}, undefined>;
|
|
76
|
+
defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
|
|
77
|
+
orientation: {
|
|
78
|
+
vertical: {
|
|
79
|
+
container: string;
|
|
80
|
+
item: string;
|
|
81
|
+
controls: string;
|
|
82
|
+
arrows: string;
|
|
83
|
+
dots: string;
|
|
84
|
+
prev: string;
|
|
85
|
+
next: string;
|
|
86
|
+
};
|
|
87
|
+
horizontal: {
|
|
88
|
+
container: string;
|
|
89
|
+
item: string;
|
|
90
|
+
prev: string;
|
|
91
|
+
next: string;
|
|
92
|
+
dots: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
active: {
|
|
96
|
+
true: {
|
|
97
|
+
dot: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}, {
|
|
101
|
+
root: string;
|
|
102
|
+
viewport: string;
|
|
103
|
+
container: string;
|
|
104
|
+
item: string;
|
|
105
|
+
controls: string;
|
|
106
|
+
arrows: string;
|
|
107
|
+
prev: string;
|
|
108
|
+
next: string;
|
|
109
|
+
dots: string;
|
|
110
|
+
dot: string;
|
|
111
|
+
}>;
|
|
112
|
+
};
|
|
113
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "relative focus:outline-none",
|
|
7
|
+
viewport: "overflow-hidden",
|
|
8
|
+
container: "flex items-start",
|
|
9
|
+
item: "min-w-0 shrink-0 basis-full",
|
|
10
|
+
controls: "",
|
|
11
|
+
arrows: "",
|
|
12
|
+
prev: "rounded-full",
|
|
13
|
+
next: "rounded-full",
|
|
14
|
+
dots: "flex flex-wrap items-center justify-center gap-3",
|
|
15
|
+
dot: "cursor-pointer size-3 bg-solid-ui-cb/10 rounded-full transition"
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
orientation: {
|
|
19
|
+
vertical: {
|
|
20
|
+
container: "flex-col -mt-4",
|
|
21
|
+
item: "pt-4",
|
|
22
|
+
controls: "flex gap-4 justify-between py-2",
|
|
23
|
+
arrows: "flex gap-1 only-child:mx-auto",
|
|
24
|
+
dots: "only-child:mx-auto only-child:my-2",
|
|
25
|
+
prev: "rotate-90 rtl:-rotate-90",
|
|
26
|
+
next: "rotate-90 rtl:-rotate-90"
|
|
27
|
+
},
|
|
28
|
+
horizontal: {
|
|
29
|
+
container: "flex-row -ms-4",
|
|
30
|
+
item: "ps-4",
|
|
31
|
+
prev: "absolute -start-12 top-1/2 [translate:0_-50%]",
|
|
32
|
+
next: "absolute -end-12 top-1/2 [translate:0_-50%]",
|
|
33
|
+
dots: "absolute inset-x-0 -bottom-7"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
active: {
|
|
37
|
+
true: {
|
|
38
|
+
dot: "bg-solid-ui-content"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
);
|
|
@@ -5,11 +5,11 @@ export default ct(
|
|
|
5
5
|
slots: {
|
|
6
6
|
root: "relative flex items-start",
|
|
7
7
|
base: [
|
|
8
|
-
"size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-c1 ring-2 ring-ui-content ring-inset bg-ui-content",
|
|
8
|
+
"size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-c1 ring-2 ring-ui-content ring-inset bg-solid-ui-content",
|
|
9
9
|
"outline-none focus-visible:outline-ui-cb/80 focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
10
|
-
"aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-cb aria-[checked=false]:bg-ui-c1"
|
|
10
|
+
"aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-cb aria-[checked=false]:bg-solid-ui-c1"
|
|
11
11
|
],
|
|
12
|
-
container: "flex items-center h-1.25em",
|
|
12
|
+
container: "flex items-center h-1.25em overflow-hidden",
|
|
13
13
|
wrapper: "text-inherit ms-2",
|
|
14
14
|
icon: "color-ui-c1 shrink-0 size-1em transition data-[state=unchecked]:translate-y-full",
|
|
15
15
|
label: "flex color-ui-cb after:content-empty",
|
|
@@ -46,6 +46,9 @@ export default ct(
|
|
|
46
46
|
label: "cursor-pointer"
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
+
},
|
|
50
|
+
defaultVariants: {
|
|
51
|
+
size: "md"
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
54
|
);
|
|
@@ -38,6 +38,14 @@ declare const _default: {
|
|
|
38
38
|
base: string;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
+
groupOrientation: {
|
|
42
|
+
horizontal: {
|
|
43
|
+
base: string;
|
|
44
|
+
};
|
|
45
|
+
vertical: {
|
|
46
|
+
base: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
41
49
|
};
|
|
42
50
|
compoundVariants: ({
|
|
43
51
|
size: ("xs" | "sm" | "md")[];
|
|
@@ -52,5 +60,8 @@ declare const _default: {
|
|
|
52
60
|
label: string;
|
|
53
61
|
};
|
|
54
62
|
})[];
|
|
63
|
+
defaultVariants: {
|
|
64
|
+
size: "md";
|
|
65
|
+
};
|
|
55
66
|
};
|
|
56
67
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
import { buttonGroupVariant } from "./button-group.mjs";
|
|
2
3
|
export default ct(
|
|
3
4
|
/* @unocss-include */
|
|
4
5
|
{
|
|
@@ -9,20 +10,21 @@ export default ct(
|
|
|
9
10
|
suffixIcon: "shrink-0 size-1.5em not-only-child:mr-1.5"
|
|
10
11
|
},
|
|
11
12
|
variants: {
|
|
13
|
+
...buttonGroupVariant,
|
|
12
14
|
variant: {
|
|
13
15
|
"solid": {
|
|
14
16
|
base: [
|
|
15
|
-
"color-ui-c1 bg-ui-fill/90"
|
|
17
|
+
"color-ui-c1 bg-solid-ui-fill/90"
|
|
16
18
|
]
|
|
17
19
|
},
|
|
18
20
|
"outline": {
|
|
19
|
-
base: "color-ui-fill bg-ui-c1 ring ring-inset ring-ui-fill"
|
|
21
|
+
base: "color-ui-fill bg-solid-ui-c1 ring ring-inset ring-ui-fill"
|
|
20
22
|
},
|
|
21
23
|
"soft": {
|
|
22
|
-
base: "color-ui-content/80 bg-ui-fill/10"
|
|
24
|
+
base: "color-ui-content/80 bg-solid-ui-fill/10"
|
|
23
25
|
},
|
|
24
26
|
"soft-outline": {
|
|
25
|
-
base: "color-ui-content/80 bg-ui-fill/10 ring ring-inset ring-ui-fill/40"
|
|
27
|
+
base: "color-ui-content/80 bg-solid-ui-fill/10 ring ring-inset ring-ui-fill/40"
|
|
26
28
|
}
|
|
27
29
|
},
|
|
28
30
|
size: {
|
|
@@ -58,6 +60,9 @@ export default ct(
|
|
|
58
60
|
label: "px-2"
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
|
-
]
|
|
63
|
+
],
|
|
64
|
+
defaultVariants: {
|
|
65
|
+
size: "md"
|
|
66
|
+
}
|
|
62
67
|
}
|
|
63
68
|
);
|
|
@@ -68,5 +68,43 @@ declare const _default: {
|
|
|
68
68
|
handle?: undefined;
|
|
69
69
|
};
|
|
70
70
|
})[];
|
|
71
|
+
defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
|
|
72
|
+
direction: {
|
|
73
|
+
top: {
|
|
74
|
+
content: string;
|
|
75
|
+
handle: string;
|
|
76
|
+
};
|
|
77
|
+
right: {
|
|
78
|
+
content: string;
|
|
79
|
+
handle: string;
|
|
80
|
+
};
|
|
81
|
+
bottom: {
|
|
82
|
+
content: string;
|
|
83
|
+
handle: string;
|
|
84
|
+
};
|
|
85
|
+
left: {
|
|
86
|
+
content: string;
|
|
87
|
+
handle: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
blur: {
|
|
91
|
+
true: {
|
|
92
|
+
overlay: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
full: {
|
|
96
|
+
true: "";
|
|
97
|
+
};
|
|
98
|
+
}, {
|
|
99
|
+
overlay: string;
|
|
100
|
+
content: string;
|
|
101
|
+
handle: string;
|
|
102
|
+
container: string;
|
|
103
|
+
header: string;
|
|
104
|
+
title: string;
|
|
105
|
+
description: string;
|
|
106
|
+
body: string;
|
|
107
|
+
footer: string;
|
|
108
|
+
}>;
|
|
71
109
|
};
|
|
72
110
|
export default _default;
|
|
@@ -4,8 +4,8 @@ export default ct(
|
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
6
|
overlay: "fixed inset-0 bg-ui-c3/75",
|
|
7
|
-
content: "fixed bg-ui-c1 ring ring-ui-cb/5 flex focus:outline-none",
|
|
8
|
-
handle: "shrink-0 rounded-full bg-ui-cb/17.5",
|
|
7
|
+
content: "fixed bg-solid-ui-c1 ring ring-ui-cb/5 flex focus:outline-none",
|
|
8
|
+
handle: "shrink-0 rounded-full bg-solid-ui-cb/17.5",
|
|
9
9
|
container: "w-full flex flex-col overflow-hidden overflow-y-auto",
|
|
10
10
|
header: "p-4 sm:px-6 sibling:pt-0",
|
|
11
11
|
title: "color-ui-cb text-xl font-semibold",
|
|
@@ -3,17 +3,20 @@ export { default as alert } from './alert';
|
|
|
3
3
|
export { default as app } from './app';
|
|
4
4
|
export { default as badge } from './badge';
|
|
5
5
|
export { default as button } from './button';
|
|
6
|
+
export { default as buttonGroup } from './button-group';
|
|
6
7
|
export { default as card } from './card';
|
|
8
|
+
export { default as carousel } from './carousel';
|
|
7
9
|
export { default as checkbox } from './checkbox';
|
|
8
10
|
export { default as chip } from './chip';
|
|
9
11
|
export { default as drawer } from './drawer';
|
|
10
12
|
export { default as input } from './input';
|
|
11
13
|
export { default as link } from './link';
|
|
12
14
|
export { default as modal } from './modal';
|
|
15
|
+
export { default as pagination } from './pagination';
|
|
13
16
|
export { default as pinInput } from './pinInput';
|
|
14
17
|
export { default as popover } from './popover';
|
|
15
|
-
export { default as radioGroup } from './
|
|
16
|
-
export { default as scrollArea } from './
|
|
18
|
+
export { default as radioGroup } from './radio-group';
|
|
19
|
+
export { default as scrollArea } from './scroll-area';
|
|
17
20
|
export { default as select } from './select';
|
|
18
21
|
export { default as slider } from './slider';
|
|
19
22
|
export { default as switch } from './switch';
|
|
@@ -3,17 +3,20 @@ export { default as alert } from "./alert.mjs";
|
|
|
3
3
|
export { default as app } from "./app.mjs";
|
|
4
4
|
export { default as badge } from "./badge.mjs";
|
|
5
5
|
export { default as button } from "./button.mjs";
|
|
6
|
+
export { default as buttonGroup } from "./button-group.mjs";
|
|
6
7
|
export { default as card } from "./card.mjs";
|
|
8
|
+
export { default as carousel } from "./carousel.mjs";
|
|
7
9
|
export { default as checkbox } from "./checkbox.mjs";
|
|
8
10
|
export { default as chip } from "./chip.mjs";
|
|
9
11
|
export { default as drawer } from "./drawer.mjs";
|
|
10
12
|
export { default as input } from "./input.mjs";
|
|
11
13
|
export { default as link } from "./link.mjs";
|
|
12
14
|
export { default as modal } from "./modal.mjs";
|
|
15
|
+
export { default as pagination } from "./pagination.mjs";
|
|
13
16
|
export { default as pinInput } from "./pinInput.mjs";
|
|
14
17
|
export { default as popover } from "./popover.mjs";
|
|
15
|
-
export { default as radioGroup } from "./
|
|
16
|
-
export { default as scrollArea } from "./
|
|
18
|
+
export { default as radioGroup } from "./radio-group.mjs";
|
|
19
|
+
export { default as scrollArea } from "./scroll-area.mjs";
|
|
17
20
|
export { default as select } from "./select.mjs";
|
|
18
21
|
export { default as slider } from "./slider.mjs";
|
|
19
22
|
export { default as switch } from "./switch.mjs";
|