@byyuurin/ui 0.0.4 → 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 +23 -29
- package/dist/index.d.ts +28 -2
- package/dist/index.mjs +28 -2
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.mjs +15 -10
- package/dist/nuxt.mjs.map +1 -0
- package/dist/runtime/components/Accordion.vue +1 -1
- package/dist/runtime/components/Alert.vue +120 -0
- package/dist/runtime/components/App.vue +1 -1
- package/dist/runtime/components/Badge.vue +70 -0
- package/dist/runtime/components/Button.vue +7 -3
- package/dist/runtime/components/ButtonGroup.vue +47 -0
- package/dist/runtime/components/Card.vue +4 -4
- package/dist/runtime/components/Carousel.vue +310 -0
- package/dist/runtime/components/Checkbox.vue +1 -2
- package/dist/runtime/components/Chip.vue +64 -0
- package/dist/runtime/components/Drawer.vue +2 -2
- package/dist/runtime/components/Input.vue +10 -5
- package/dist/runtime/components/Link.vue +1 -1
- package/dist/runtime/components/Modal.vue +4 -5
- package/dist/runtime/components/Pagination.vue +167 -0
- package/dist/runtime/components/PinInput.vue +85 -0
- package/dist/runtime/components/Popover.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue +1 -2
- package/dist/runtime/components/ScrollArea.vue +2 -2
- package/dist/runtime/components/Select.vue +7 -2
- package/dist/runtime/components/Slider.vue +96 -0
- package/dist/runtime/components/Switch.vue +2 -4
- package/dist/runtime/components/Tabs.vue +1 -2
- package/dist/runtime/components/Textarea.vue +2 -4
- package/dist/runtime/components/Toast.vue +21 -10
- package/dist/runtime/components/Toaster.vue +5 -5
- package/dist/runtime/components/Tooltip.vue +1 -1
- 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/accordion.mjs +24 -21
- package/dist/runtime/theme/alert.d.ts +125 -0
- package/dist/runtime/theme/alert.mjs +47 -0
- package/dist/runtime/theme/app.d.ts +5 -0
- package/dist/runtime/theme/app.mjs +7 -1
- package/dist/runtime/theme/badge.d.ts +82 -0
- package/dist/runtime/theme/badge.mjs +92 -0
- 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 +15 -1
- package/dist/runtime/theme/button.mjs +135 -119
- package/dist/runtime/theme/card.d.ts +21 -2
- package/dist/runtime/theme/card.mjs +12 -9
- 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 +47 -41
- package/dist/runtime/theme/chip.d.ts +67 -0
- package/dist/runtime/theme/chip.mjs +68 -0
- package/dist/runtime/theme/drawer.d.ts +38 -0
- package/dist/runtime/theme/drawer.mjs +69 -66
- package/dist/runtime/theme/index.d.ts +10 -2
- package/dist/runtime/theme/index.mjs +10 -2
- package/dist/runtime/theme/input.d.ts +41 -22
- package/dist/runtime/theme/input.mjs +139 -121
- package/dist/runtime/theme/link.d.ts +14 -1
- package/dist/runtime/theme/link.mjs +23 -20
- package/dist/runtime/theme/modal.d.ts +3 -0
- package/dist/runtime/theme/modal.mjs +53 -47
- package/dist/runtime/theme/pagination.d.ts +56 -0
- package/dist/runtime/theme/pagination.mjs +13 -0
- package/dist/runtime/theme/pinInput.d.ts +100 -0
- package/dist/runtime/theme/pinInput.mjs +111 -0
- package/dist/runtime/theme/popover.d.ts +11 -0
- package/dist/runtime/theme/popover.mjs +11 -8
- package/dist/runtime/theme/{radioGroup.d.ts → radio-group.d.ts} +3 -0
- package/dist/runtime/theme/radio-group.mjs +61 -0
- package/dist/runtime/theme/{scrollArea.d.ts → scroll-area.d.ts} +22 -0
- package/dist/runtime/theme/scroll-area.mjs +33 -0
- package/dist/runtime/theme/select.d.ts +16 -2
- package/dist/runtime/theme/select.mjs +160 -142
- package/dist/runtime/theme/slider.d.ts +76 -0
- package/dist/runtime/theme/slider.mjs +52 -0
- package/dist/runtime/theme/switch.d.ts +3 -0
- package/dist/runtime/theme/switch.mjs +69 -63
- package/dist/runtime/theme/tabs.d.ts +15 -2
- package/dist/runtime/theme/tabs.mjs +134 -112
- package/dist/runtime/theme/textarea.d.ts +8 -2
- package/dist/runtime/theme/textarea.mjs +105 -89
- package/dist/runtime/theme/toast.d.ts +44 -6
- package/dist/runtime/theme/toast.mjs +30 -22
- package/dist/runtime/theme/toaster.d.ts +51 -2
- package/dist/runtime/theme/toaster.mjs +88 -80
- package/dist/runtime/theme/tooltip.d.ts +13 -0
- package/dist/runtime/theme/tooltip.mjs +9 -6
- package/dist/runtime/types/components.d.ts +27 -20
- package/dist/runtime/types/components.mjs +27 -0
- package/dist/runtime/types/index.d.ts +1 -3
- package/dist/runtime/types/utils.d.ts +1 -1
- package/dist/runtime/utils/extend-theme.mjs +1 -1
- package/dist/runtime/utils/link.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} +58 -36
- package/dist/unocss.mjs.map +1 -0
- package/dist/unplugin.d.mts +26 -0
- package/dist/unplugin.d.ts +26 -0
- package/dist/unplugin.mjs +72 -0
- package/dist/unplugin.mjs.map +1 -0
- package/dist/vite.d.mts +10 -0
- package/dist/vite.d.ts +10 -0
- package/dist/vite.mjs +14 -0
- package/dist/vite.mjs.map +1 -0
- package/package.json +46 -26
- package/dist/resolver.d.mts +0 -13
- package/dist/resolver.d.ts +0 -13
- package/dist/resolver.mjs +0 -21
- package/dist/runtime/components/index.d.ts +0 -20
- package/dist/runtime/components/index.mjs +0 -20
- package/dist/runtime/composables/index.d.ts +0 -5
- package/dist/runtime/composables/index.mjs +0 -5
- package/dist/runtime/theme/radioGroup.mjs +0 -55
- package/dist/runtime/theme/scrollArea.mjs +0 -30
- package/dist/shared/ui.Cmq14xN9.mjs +0 -25
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -1,100 +1,116 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "rounded-ui-base transition-colors aria-disabled:opacity-50",
|
|
7
|
+
base: [
|
|
8
|
+
"w-full color-inherit bg-transparent border-0 resize-none placeholder:color-ui-cb/50",
|
|
9
|
+
"focus:outline-none",
|
|
10
|
+
"disabled:cursor-not-allowed"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
size: {
|
|
15
|
+
xs: {
|
|
16
|
+
root: "text-xs"
|
|
17
|
+
},
|
|
18
|
+
sm: {
|
|
19
|
+
root: "text-sm"
|
|
20
|
+
},
|
|
21
|
+
md: {
|
|
22
|
+
root: "text-base"
|
|
23
|
+
},
|
|
24
|
+
lg: {
|
|
25
|
+
root: "text-lg"
|
|
26
|
+
},
|
|
27
|
+
xl: {
|
|
28
|
+
root: "text-xl"
|
|
29
|
+
}
|
|
18
30
|
},
|
|
19
|
-
|
|
20
|
-
|
|
31
|
+
variant: {
|
|
32
|
+
"outline": {
|
|
33
|
+
root: [
|
|
34
|
+
"color-ui-cb/80 bg-solid-ui-c1 ring ring-inset ring-ui-cb/50",
|
|
35
|
+
"focus-within:ring-2 focus-within:ring-ui-cb/50",
|
|
36
|
+
"aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"soft": {
|
|
40
|
+
root: [
|
|
41
|
+
"color-ui-cb/80 bg-solid-ui-cb/4",
|
|
42
|
+
"hover:bg-solid-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-solid-ui-cb/8 focus-within:color-ui-cb/85",
|
|
43
|
+
"aria-disabled:color-ui-content/80 aria-disabled:bg-solid-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-solid-ui-fill/5"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"soft-outline": {
|
|
47
|
+
root: [
|
|
48
|
+
"color-ui-cb/80 bg-solid-ui-cb/4 ring ring-inset ring-ui-cb/10",
|
|
49
|
+
"hover:bg-solid-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-solid-ui-cb/8 focus-within:color-ui-cb/85",
|
|
50
|
+
"aria-disabled:color-ui-content/80 aria-disabled:bg-solid-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-solid-ui-fill/5"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"ghost": {
|
|
54
|
+
root: [
|
|
55
|
+
"color-ui-cb/80 bg-transparent",
|
|
56
|
+
"hover:bg-solid-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-solid-ui-cb/8 focus-within:color-ui-cb/85",
|
|
57
|
+
"aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"none": {
|
|
61
|
+
root: "color-ui-cb bg-transparent"
|
|
62
|
+
}
|
|
21
63
|
},
|
|
22
|
-
|
|
23
|
-
|
|
64
|
+
underline: {
|
|
65
|
+
true: ""
|
|
24
66
|
},
|
|
25
|
-
|
|
26
|
-
|
|
67
|
+
highlight: {
|
|
68
|
+
true: {
|
|
69
|
+
base: ""
|
|
70
|
+
}
|
|
27
71
|
}
|
|
28
72
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
73
|
+
compoundVariants: [
|
|
74
|
+
{
|
|
75
|
+
variant: ["soft", "ghost", "none"],
|
|
76
|
+
highlight: false,
|
|
77
|
+
underline: true,
|
|
78
|
+
class: {
|
|
79
|
+
root: [
|
|
80
|
+
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-solid-ui-cb/40",
|
|
81
|
+
"focus-within:after:h-2px focus-within:after:bg-solid-ui-fill/60"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
36
84
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
]
|
|
85
|
+
{
|
|
86
|
+
size: ["xs", "sm", "md"],
|
|
87
|
+
class: {
|
|
88
|
+
root: "p-1.5 px-2.5"
|
|
89
|
+
}
|
|
43
90
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
]
|
|
91
|
+
{
|
|
92
|
+
size: ["lg", "xl"],
|
|
93
|
+
class: {
|
|
94
|
+
root: "p-2.5 px-3.5"
|
|
95
|
+
}
|
|
50
96
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
compoundVariants: [
|
|
65
|
-
{
|
|
66
|
-
variant: ["soft", "ghost", "none"],
|
|
67
|
-
highlight: false,
|
|
68
|
-
underline: true,
|
|
69
|
-
class: {
|
|
70
|
-
root: "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
size: ["xs", "sm", "md"],
|
|
75
|
-
class: {
|
|
76
|
-
root: "p-1.5 px-2.5"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
size: ["lg", "xl"],
|
|
81
|
-
class: {
|
|
82
|
-
root: "p-2.5 px-3.5"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
variant: ["soft", "ghost", "none"],
|
|
87
|
-
highlight: true,
|
|
88
|
-
class: {
|
|
89
|
-
root: "ring ring-inset ring-ui-fill/80"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
variant: ["outline"],
|
|
94
|
-
highlight: true,
|
|
95
|
-
class: {
|
|
96
|
-
root: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
|
|
97
|
+
{
|
|
98
|
+
variant: ["soft", "soft-outline", "ghost", "none"],
|
|
99
|
+
highlight: true,
|
|
100
|
+
class: {
|
|
101
|
+
root: "ring ring-inset ring-ui-fill/80"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
variant: ["outline"],
|
|
106
|
+
highlight: true,
|
|
107
|
+
class: {
|
|
108
|
+
root: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
|
|
109
|
+
}
|
|
97
110
|
}
|
|
111
|
+
],
|
|
112
|
+
defaultVariants: {
|
|
113
|
+
size: "md"
|
|
98
114
|
}
|
|
99
|
-
|
|
100
|
-
|
|
115
|
+
}
|
|
116
|
+
);
|
|
@@ -13,28 +13,38 @@ declare const _default: {
|
|
|
13
13
|
close: string;
|
|
14
14
|
};
|
|
15
15
|
variants: {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
orientation: {
|
|
17
|
+
horizontal: {
|
|
18
18
|
root: string;
|
|
19
19
|
actions: string;
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
vertical: {
|
|
22
22
|
root: string;
|
|
23
23
|
actions: string;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
+
title: {
|
|
27
|
+
true: {
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
26
31
|
};
|
|
27
32
|
compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
orientation: {
|
|
34
|
+
horizontal: {
|
|
30
35
|
root: string;
|
|
31
36
|
actions: string;
|
|
32
37
|
};
|
|
33
|
-
|
|
38
|
+
vertical: {
|
|
34
39
|
root: string;
|
|
35
40
|
actions: string;
|
|
36
41
|
};
|
|
37
42
|
};
|
|
43
|
+
title: {
|
|
44
|
+
true: {
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
38
48
|
}, {
|
|
39
49
|
root: string;
|
|
40
50
|
wrapper: string;
|
|
@@ -47,5 +57,33 @@ declare const _default: {
|
|
|
47
57
|
progress: string;
|
|
48
58
|
close: string;
|
|
49
59
|
}, undefined>;
|
|
60
|
+
defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
|
|
61
|
+
orientation: {
|
|
62
|
+
horizontal: {
|
|
63
|
+
root: string;
|
|
64
|
+
actions: string;
|
|
65
|
+
};
|
|
66
|
+
vertical: {
|
|
67
|
+
root: string;
|
|
68
|
+
actions: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
title: {
|
|
72
|
+
true: {
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}, {
|
|
77
|
+
root: string;
|
|
78
|
+
wrapper: string;
|
|
79
|
+
title: string;
|
|
80
|
+
description: string;
|
|
81
|
+
icon: string;
|
|
82
|
+
avatar: string;
|
|
83
|
+
avatarSize: string;
|
|
84
|
+
actions: string;
|
|
85
|
+
progress: string;
|
|
86
|
+
close: string;
|
|
87
|
+
}>;
|
|
50
88
|
};
|
|
51
89
|
export default _default;
|
|
@@ -1,27 +1,35 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "group relative overflow-hidden bg-solid-ui-c1 shadow-lg rounded-ui-box ring ring-ui-c2 p-4 flex gap-2.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-c2",
|
|
7
|
+
wrapper: "w-0 flex-1 flex flex-col gap-1",
|
|
8
|
+
title: "text-base font-medium color-ui-cb",
|
|
9
|
+
description: "text-sm color-ui-cb/80",
|
|
10
|
+
icon: "shrink-0 size-6 color-ui-cb",
|
|
11
|
+
avatar: "shrink-0",
|
|
12
|
+
avatarSize: "2xl",
|
|
13
|
+
actions: "flex flex-wrap gap-1.5 shrink-0",
|
|
14
|
+
progress: "absolute inset-x-[var(--ui-radius-box)] bottom-0 h-1 z-[-1] color-ui-base/80 bg-current rounded-ui-base",
|
|
15
|
+
close: "p-0.5"
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
orientation: {
|
|
19
|
+
horizontal: {
|
|
20
|
+
root: "items-center",
|
|
21
|
+
actions: "items-center"
|
|
22
|
+
},
|
|
23
|
+
vertical: {
|
|
24
|
+
root: "items-start",
|
|
25
|
+
actions: "items-start mt-2.5"
|
|
26
|
+
}
|
|
20
27
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
title: {
|
|
29
|
+
true: {
|
|
30
|
+
description: "mt-1"
|
|
31
|
+
}
|
|
24
32
|
}
|
|
25
33
|
}
|
|
26
34
|
}
|
|
27
|
-
|
|
35
|
+
);
|
|
@@ -5,6 +5,11 @@ declare const _default: {
|
|
|
5
5
|
base: string[];
|
|
6
6
|
};
|
|
7
7
|
variants: {
|
|
8
|
+
clickable: {
|
|
9
|
+
true: {
|
|
10
|
+
base: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
8
13
|
position: {
|
|
9
14
|
'top-left': {
|
|
10
15
|
viewport: string;
|
|
@@ -41,14 +46,14 @@ declare const _default: {
|
|
|
41
46
|
};
|
|
42
47
|
};
|
|
43
48
|
compoundVariants: ({
|
|
44
|
-
position: ("top-
|
|
49
|
+
position: ("top-right" | "top-left" | "top-center")[];
|
|
45
50
|
class: {
|
|
46
51
|
viewport: string;
|
|
47
52
|
base: string;
|
|
48
53
|
};
|
|
49
54
|
swipeDirection?: undefined;
|
|
50
55
|
} | {
|
|
51
|
-
position: ("bottom-
|
|
56
|
+
position: ("bottom-right" | "bottom-left" | "bottom-center")[];
|
|
52
57
|
class: {
|
|
53
58
|
viewport: string;
|
|
54
59
|
base: string;
|
|
@@ -69,5 +74,49 @@ declare const _default: {
|
|
|
69
74
|
};
|
|
70
75
|
position?: undefined;
|
|
71
76
|
})[];
|
|
77
|
+
defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
|
|
78
|
+
clickable: {
|
|
79
|
+
true: {
|
|
80
|
+
base: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
position: {
|
|
84
|
+
'top-left': {
|
|
85
|
+
viewport: string;
|
|
86
|
+
};
|
|
87
|
+
'top-center': {
|
|
88
|
+
viewport: string;
|
|
89
|
+
};
|
|
90
|
+
'top-right': {
|
|
91
|
+
viewport: string;
|
|
92
|
+
};
|
|
93
|
+
'bottom-left': {
|
|
94
|
+
viewport: string;
|
|
95
|
+
};
|
|
96
|
+
'bottom-center': {
|
|
97
|
+
viewport: string;
|
|
98
|
+
};
|
|
99
|
+
'bottom-right': {
|
|
100
|
+
viewport: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
swipeDirection: {
|
|
104
|
+
up: {
|
|
105
|
+
base: string;
|
|
106
|
+
};
|
|
107
|
+
right: {
|
|
108
|
+
base: string;
|
|
109
|
+
};
|
|
110
|
+
down: {
|
|
111
|
+
base: string;
|
|
112
|
+
};
|
|
113
|
+
left: {
|
|
114
|
+
base: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
}, {
|
|
118
|
+
viewport: string[];
|
|
119
|
+
base: string[];
|
|
120
|
+
}>;
|
|
72
121
|
};
|
|
73
122
|
export default _default;
|
|
@@ -1,89 +1,97 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
"top-right": {
|
|
26
|
-
viewport: "right-4"
|
|
27
|
-
},
|
|
28
|
-
"bottom-left": {
|
|
29
|
-
viewport: "left-4"
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
viewport: [
|
|
7
|
+
"fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] focus:outline-none",
|
|
8
|
+
"data-[expanded=true]:h-[var(--height)]"
|
|
9
|
+
],
|
|
10
|
+
base: [
|
|
11
|
+
"pointer-events-auto absolute inset-x-0 z-[var(--index)] [transform:var(--transform)] transition-all duration-200 ease-out",
|
|
12
|
+
"[&[data-expanded=false][data-front=false]]:h-[var(--front-height)]",
|
|
13
|
+
"[&[data-expanded=false][data-front=false]>*]:invisible",
|
|
14
|
+
"data-[state=closed]:animate-[toast-closed_200ms_ease-in-out]",
|
|
15
|
+
"[&[data-state=closed][data-expanded=false][data-front=false]]:animate-[toast-collapsed-closed_200ms_ease-in-out]",
|
|
16
|
+
"data-[swipe=move]:transition-none"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
variants: {
|
|
20
|
+
clickable: {
|
|
21
|
+
true: {
|
|
22
|
+
base: "cursor-pointer"
|
|
23
|
+
}
|
|
30
24
|
},
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
position: {
|
|
26
|
+
"top-left": {
|
|
27
|
+
viewport: "left-4"
|
|
28
|
+
},
|
|
29
|
+
"top-center": {
|
|
30
|
+
viewport: "left-1/2 -translate-x-1/2"
|
|
31
|
+
},
|
|
32
|
+
"top-right": {
|
|
33
|
+
viewport: "right-4"
|
|
34
|
+
},
|
|
35
|
+
"bottom-left": {
|
|
36
|
+
viewport: "left-4"
|
|
37
|
+
},
|
|
38
|
+
"bottom-center": {
|
|
39
|
+
viewport: "left-1/2 -translate-x-1/2"
|
|
40
|
+
},
|
|
41
|
+
"bottom-right": {
|
|
42
|
+
viewport: "right-4"
|
|
43
|
+
}
|
|
33
44
|
},
|
|
34
|
-
|
|
35
|
-
|
|
45
|
+
swipeDirection: {
|
|
46
|
+
up: {
|
|
47
|
+
base: "data-[swipe=end]:animate-[toast-slide-up_200ms_ease-out]"
|
|
48
|
+
},
|
|
49
|
+
right: {
|
|
50
|
+
base: "data-[swipe=end]:animate-[toast-slide-right_200ms_ease-out]"
|
|
51
|
+
},
|
|
52
|
+
down: {
|
|
53
|
+
base: "data-[swipe=end]:animate-[toast-slide-down_200ms_ease-out]"
|
|
54
|
+
},
|
|
55
|
+
left: {
|
|
56
|
+
base: "data-[swipe=end]:animate-[toast-slide-left_200ms_ease-out]"
|
|
57
|
+
}
|
|
36
58
|
}
|
|
37
59
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
60
|
+
compoundVariants: [
|
|
61
|
+
{
|
|
62
|
+
position: ["top-left", "top-center", "top-right"],
|
|
63
|
+
class: {
|
|
64
|
+
viewport: "top-4",
|
|
65
|
+
base: "top-0 data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out]"
|
|
66
|
+
}
|
|
41
67
|
},
|
|
42
|
-
|
|
43
|
-
|
|
68
|
+
{
|
|
69
|
+
position: ["bottom-left", "bottom-center", "bottom-right"],
|
|
70
|
+
class: {
|
|
71
|
+
viewport: "bottom-4",
|
|
72
|
+
base: "bottom-0 data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out]"
|
|
73
|
+
}
|
|
44
74
|
},
|
|
45
|
-
|
|
46
|
-
|
|
75
|
+
{
|
|
76
|
+
swipeDirection: ["left", "right"],
|
|
77
|
+
class: {
|
|
78
|
+
base: [
|
|
79
|
+
"data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)]",
|
|
80
|
+
"data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)]",
|
|
81
|
+
"data-[swipe=cancel]:translate-x-0"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
47
84
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
viewport: "top-4",
|
|
58
|
-
base: "top-0 data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out]"
|
|
85
|
+
{
|
|
86
|
+
swipeDirection: ["up", "down"],
|
|
87
|
+
class: {
|
|
88
|
+
base: [
|
|
89
|
+
"data-[swipe=move]:translate-y-[var(--reka-toast-swipe-move-y)]",
|
|
90
|
+
"data-[swipe=end]:translate-y-[var(--reka-toast-swipe-end-y)]",
|
|
91
|
+
"data-[swipe=cancel]:translate-y-0"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
59
94
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
class: {
|
|
64
|
-
viewport: "bottom-4",
|
|
65
|
-
base: "bottom-0 data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out]"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
swipeDirection: ["left", "right"],
|
|
70
|
-
class: {
|
|
71
|
-
base: [
|
|
72
|
-
"data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)]",
|
|
73
|
-
"data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)]",
|
|
74
|
-
"data-[swipe=cancel]:translate-x-0"
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
swipeDirection: ["up", "down"],
|
|
80
|
-
class: {
|
|
81
|
-
base: [
|
|
82
|
-
"data-[swipe=move]:translate-y-[var(--reka-toast-swipe-move-y)]",
|
|
83
|
-
"data-[swipe=end]:translate-y-[var(--reka-toast-swipe-end-y)]",
|
|
84
|
-
"data-[swipe=cancel]:translate-y-0"
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
});
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
);
|
|
@@ -27,5 +27,18 @@ declare const _default: {
|
|
|
27
27
|
arrow: string;
|
|
28
28
|
text: string;
|
|
29
29
|
}, undefined>;
|
|
30
|
+
defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
|
|
31
|
+
[key: string]: {
|
|
32
|
+
[key: string]: "" | {
|
|
33
|
+
content?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
34
|
+
arrow?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
35
|
+
text?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
36
|
+
} | null;
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
content: string;
|
|
40
|
+
arrow: string;
|
|
41
|
+
text: string;
|
|
42
|
+
}>;
|
|
30
43
|
};
|
|
31
44
|
export default _default;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
content: "flex items-center gap-1 bg-solid-ui-c1 color-ui-base shadow-sm rounded-ui-base ring ring-ui-base/10 h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
7
|
+
arrow: "fill-ui-c1 stroke-ui-cb/10",
|
|
8
|
+
text: "truncate"
|
|
9
|
+
}
|
|
7
10
|
}
|
|
8
|
-
|
|
11
|
+
);
|