@byyuurin/ui 0.0.3 → 0.0.5
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 +15 -24
- package/dist/index.d.ts +25 -2
- package/dist/index.mjs +25 -2
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.mjs +14 -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 +5 -1
- package/dist/runtime/components/Badge.vue +71 -0
- package/dist/runtime/components/Button.vue +3 -3
- package/dist/runtime/components/Card.vue +4 -4
- package/dist/runtime/components/Checkbox.vue +3 -6
- package/dist/runtime/components/Chip.vue +59 -0
- package/dist/runtime/components/Drawer.vue +2 -2
- package/dist/runtime/components/Input.vue +7 -2
- package/dist/runtime/components/Link.vue +1 -1
- package/dist/runtime/components/Modal.vue +2 -2
- package/dist/runtime/components/ModalProvider.vue +1 -1
- package/dist/runtime/components/PinInput.vue +86 -0
- package/dist/runtime/components/Popover.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue +2 -8
- package/dist/runtime/components/ScrollArea.vue +72 -0
- package/dist/runtime/components/Select.vue +2 -1
- package/dist/runtime/components/Slider.vue +97 -0
- package/dist/runtime/components/Switch.vue +1 -2
- package/dist/runtime/components/Tabs.vue +6 -6
- package/dist/runtime/components/Textarea.vue +172 -0
- package/dist/runtime/components/Toast.vue +2 -2
- package/dist/runtime/components/Toaster.vue +2 -1
- package/dist/runtime/components/Tooltip.vue +1 -1
- package/dist/runtime/composables/defineInjection.d.ts +11 -0
- package/dist/runtime/composables/defineInjection.mjs +9 -0
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/useModal.mjs +3 -2
- package/dist/runtime/composables/useTheme.d.ts +3 -1
- package/dist/runtime/composables/useTheme.mjs +14 -6
- package/dist/runtime/theme/accordion.mjs +24 -21
- package/dist/runtime/theme/alert.d.ts +85 -0
- package/dist/runtime/theme/alert.mjs +47 -0
- package/dist/runtime/theme/app.mjs +1 -0
- package/dist/runtime/theme/badge.d.ts +79 -0
- package/dist/runtime/theme/badge.mjs +89 -0
- package/dist/runtime/theme/button.d.ts +4 -9
- package/dist/runtime/theme/button.mjs +130 -127
- package/dist/runtime/theme/card.d.ts +2 -2
- package/dist/runtime/theme/card.mjs +12 -9
- package/dist/runtime/theme/checkbox.d.ts +0 -12
- package/dist/runtime/theme/checkbox.mjs +45 -47
- package/dist/runtime/theme/chip.d.ts +56 -0
- package/dist/runtime/theme/chip.mjs +63 -0
- package/dist/runtime/theme/drawer.mjs +69 -66
- package/dist/runtime/theme/index.d.ts +7 -0
- package/dist/runtime/theme/index.mjs +7 -0
- package/dist/runtime/theme/input.d.ts +13 -5
- package/dist/runtime/theme/input.mjs +135 -122
- package/dist/runtime/theme/link.d.ts +1 -1
- package/dist/runtime/theme/link.mjs +23 -20
- package/dist/runtime/theme/modal.mjs +51 -48
- package/dist/runtime/theme/pinInput.d.ts +97 -0
- package/dist/runtime/theme/pinInput.mjs +108 -0
- package/dist/runtime/theme/popover.mjs +11 -8
- package/dist/runtime/theme/radioGroup.d.ts +0 -24
- package/dist/runtime/theme/radioGroup.mjs +50 -59
- package/dist/runtime/theme/scrollArea.d.ts +51 -0
- package/dist/runtime/theme/scrollArea.mjs +33 -0
- package/dist/runtime/theme/select.d.ts +5 -2
- package/dist/runtime/theme/select.mjs +156 -143
- package/dist/runtime/theme/slider.d.ts +73 -0
- package/dist/runtime/theme/slider.mjs +49 -0
- package/dist/runtime/theme/switch.d.ts +0 -12
- package/dist/runtime/theme/switch.mjs +66 -69
- package/dist/runtime/theme/tabs.d.ts +44 -13
- package/dist/runtime/theme/tabs.mjs +132 -106
- package/dist/runtime/theme/textarea.d.ts +93 -0
- package/dist/runtime/theme/textarea.mjs +113 -0
- package/dist/runtime/theme/toast.mjs +26 -23
- package/dist/runtime/theme/toaster.d.ts +2 -2
- package/dist/runtime/theme/toaster.mjs +84 -81
- package/dist/runtime/theme/tooltip.mjs +9 -6
- package/dist/runtime/types/components.d.ts +7 -0
- package/dist/runtime/types/index.d.ts +1 -3
- package/dist/runtime/utils/extend-theme.mjs +1 -1
- package/dist/runtime/utils/index.d.ts +0 -11
- package/dist/runtime/utils/index.mjs +0 -11
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/shared/ui.CzDyI29e.mjs +8 -0
- package/dist/shared/ui.CzDyI29e.mjs.map +1 -0
- package/dist/unocss-preset.d.mts +15 -7
- package/dist/unocss-preset.d.ts +15 -7
- package/dist/unocss-preset.mjs +97 -384
- package/dist/unocss-preset.mjs.map +1 -0
- package/dist/unplugin.d.mts +25 -0
- package/dist/unplugin.d.ts +25 -0
- package/dist/unplugin.mjs +64 -0
- package/dist/unplugin.mjs.map +1 -0
- package/dist/vite.d.mts +9 -0
- package/dist/vite.d.ts +9 -0
- package/dist/vite.mjs +14 -0
- package/dist/vite.mjs.map +1 -0
- package/package.json +22 -14
- package/dist/index.cjs +0 -38
- 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.cjs +0 -132
- package/dist/runtime/components/index.d.ts +0 -18
- package/dist/runtime/components/index.mjs +0 -18
- package/dist/runtime/composables/index.cjs +0 -33
- package/dist/runtime/composables/index.d.ts +0 -4
- package/dist/runtime/composables/index.mjs +0 -4
- package/dist/runtime/composables/useComponentIcons.cjs +0 -30
- package/dist/runtime/composables/useModal.cjs +0 -55
- package/dist/runtime/composables/useTheme.cjs +0 -30
- package/dist/runtime/composables/useToast.cjs +0 -51
- package/dist/runtime/theme/accordion.cjs +0 -27
- package/dist/runtime/theme/app.cjs +0 -15
- package/dist/runtime/theme/button.cjs +0 -127
- package/dist/runtime/theme/card.cjs +0 -17
- package/dist/runtime/theme/checkbox.cjs +0 -56
- package/dist/runtime/theme/drawer.cjs +0 -73
- package/dist/runtime/theme/index.cjs +0 -125
- package/dist/runtime/theme/input.cjs +0 -115
- package/dist/runtime/theme/link.cjs +0 -23
- package/dist/runtime/theme/modal.cjs +0 -55
- package/dist/runtime/theme/popover.cjs +0 -13
- package/dist/runtime/theme/radioGroup.cjs +0 -73
- package/dist/runtime/theme/select.cjs +0 -128
- package/dist/runtime/theme/switch.cjs +0 -73
- package/dist/runtime/theme/tabs.cjs +0 -105
- package/dist/runtime/theme/toast.cjs +0 -33
- package/dist/runtime/theme/toaster.cjs +0 -72
- package/dist/runtime/theme/tooltip.cjs +0 -14
- package/dist/runtime/types/components.cjs +0 -1
- package/dist/runtime/types/index.cjs +0 -27
- package/dist/runtime/types/utils.cjs +0 -1
- package/dist/runtime/utils/extend-theme.cjs +0 -24
- package/dist/runtime/utils/index.cjs +0 -119
- package/dist/runtime/utils/link.cjs +0 -10
- package/dist/runtime/utils/styler.cjs +0 -18
- package/dist/shared/ui.CPXA9QoM.mjs +0 -23
|
@@ -1,54 +1,57 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
transition: {
|
|
15
|
-
true: {
|
|
16
|
-
overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
|
|
17
|
-
content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
blur: {
|
|
21
|
-
true: {
|
|
22
|
-
overlay: "backdrop-blur-sm"
|
|
23
|
-
}
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
overlay: "fixed inset-0 bg-ui-c3/75",
|
|
7
|
+
content: "fixed bg-ui-c1 divide-y divide-ui-cb/10 flex flex-col focus:outline-none",
|
|
8
|
+
header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
|
|
9
|
+
body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
|
|
10
|
+
footer: "flex items-center gap-1.5 p-4 sm:px-6",
|
|
11
|
+
title: "flex-grow color-ui-cb text-xl font-semibold",
|
|
12
|
+
description: "w-full color-ui-cb/80",
|
|
13
|
+
close: "ms-auto"
|
|
24
14
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
variants: {
|
|
16
|
+
transition: {
|
|
17
|
+
true: {
|
|
18
|
+
overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
|
|
19
|
+
content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
|
|
20
|
+
}
|
|
28
21
|
},
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
blur: {
|
|
23
|
+
true: {
|
|
24
|
+
overlay: "backdrop-blur-sm"
|
|
25
|
+
}
|
|
31
26
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
size: {
|
|
28
|
+
fullscreen: {
|
|
29
|
+
content: "inset-0"
|
|
30
|
+
},
|
|
31
|
+
sm: {
|
|
32
|
+
content: "w-screen-sm"
|
|
33
|
+
},
|
|
34
|
+
md: {
|
|
35
|
+
content: "w-screen-md"
|
|
36
|
+
},
|
|
37
|
+
lg: {
|
|
38
|
+
content: "w-screen-lg"
|
|
39
|
+
},
|
|
40
|
+
xl: {
|
|
41
|
+
content: "w-screen-xl"
|
|
42
|
+
}
|
|
40
43
|
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
},
|
|
45
|
+
compoundVariants: [
|
|
46
|
+
{
|
|
47
|
+
size: ["sm", "md", "lg", "xl"],
|
|
48
|
+
class: {
|
|
49
|
+
content: [
|
|
50
|
+
"bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] ring ring-ui-c2",
|
|
51
|
+
"sm:bottom-auto sm:top-[50%] sm:translate-y-[-50%] sm:rounded-ui-box sm:shadow-lg"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
51
54
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
container: string;
|
|
6
|
+
base: string;
|
|
7
|
+
};
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
xs: {
|
|
11
|
+
container: string;
|
|
12
|
+
};
|
|
13
|
+
sm: {
|
|
14
|
+
container: string;
|
|
15
|
+
};
|
|
16
|
+
md: {
|
|
17
|
+
container: string;
|
|
18
|
+
};
|
|
19
|
+
lg: {
|
|
20
|
+
container: string;
|
|
21
|
+
};
|
|
22
|
+
xl: {
|
|
23
|
+
container: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
variant: {
|
|
27
|
+
outline: {
|
|
28
|
+
container: string[];
|
|
29
|
+
};
|
|
30
|
+
soft: {
|
|
31
|
+
container: string[];
|
|
32
|
+
};
|
|
33
|
+
'soft-outline': {
|
|
34
|
+
container: string[];
|
|
35
|
+
};
|
|
36
|
+
ghost: {
|
|
37
|
+
container: string[];
|
|
38
|
+
};
|
|
39
|
+
none: {
|
|
40
|
+
container: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
underline: {
|
|
44
|
+
true: "";
|
|
45
|
+
};
|
|
46
|
+
highlight: {
|
|
47
|
+
true: "";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
compoundVariants: ({
|
|
51
|
+
variant: ("soft" | "ghost" | "none")[];
|
|
52
|
+
highlight: false;
|
|
53
|
+
underline: true;
|
|
54
|
+
class: {
|
|
55
|
+
container: string[];
|
|
56
|
+
base?: undefined;
|
|
57
|
+
};
|
|
58
|
+
size?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
size: ("xs" | "sm" | "md")[];
|
|
61
|
+
class: {
|
|
62
|
+
base: string;
|
|
63
|
+
container?: undefined;
|
|
64
|
+
};
|
|
65
|
+
variant?: undefined;
|
|
66
|
+
highlight?: undefined;
|
|
67
|
+
underline?: undefined;
|
|
68
|
+
} | {
|
|
69
|
+
size: ("lg" | "xl")[];
|
|
70
|
+
class: {
|
|
71
|
+
base: string;
|
|
72
|
+
container?: undefined;
|
|
73
|
+
};
|
|
74
|
+
variant?: undefined;
|
|
75
|
+
highlight?: undefined;
|
|
76
|
+
underline?: undefined;
|
|
77
|
+
} | {
|
|
78
|
+
variant: ("soft" | "soft-outline" | "ghost" | "none")[];
|
|
79
|
+
highlight: true;
|
|
80
|
+
class: {
|
|
81
|
+
container: string;
|
|
82
|
+
base?: undefined;
|
|
83
|
+
};
|
|
84
|
+
underline?: undefined;
|
|
85
|
+
size?: undefined;
|
|
86
|
+
} | {
|
|
87
|
+
variant: "outline"[];
|
|
88
|
+
highlight: true;
|
|
89
|
+
class: {
|
|
90
|
+
container: string;
|
|
91
|
+
base?: undefined;
|
|
92
|
+
};
|
|
93
|
+
underline?: undefined;
|
|
94
|
+
size?: undefined;
|
|
95
|
+
})[];
|
|
96
|
+
};
|
|
97
|
+
export default _default;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "inline-flex items-center gap-x-2",
|
|
7
|
+
container: "rounded-ui-base border-0 transition-colors aria-disabled:opacity-50",
|
|
8
|
+
base: "w-full color-inherit bg-transparent text-center placeholder:color-ui-cb/50 focus:outline-none disabled:cursor-not-allowed"
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
xs: {
|
|
13
|
+
container: "text-xs size-7"
|
|
14
|
+
},
|
|
15
|
+
sm: {
|
|
16
|
+
container: "text-sm size-8"
|
|
17
|
+
},
|
|
18
|
+
md: {
|
|
19
|
+
container: "text-base size-9"
|
|
20
|
+
},
|
|
21
|
+
lg: {
|
|
22
|
+
container: "text-lg size-12.5"
|
|
23
|
+
},
|
|
24
|
+
xl: {
|
|
25
|
+
container: "text-xl size-12.5"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
variant: {
|
|
29
|
+
"outline": {
|
|
30
|
+
container: [
|
|
31
|
+
"color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50",
|
|
32
|
+
"focus-within:ring-2 focus-within:ring-ui-cb/50",
|
|
33
|
+
"aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"soft": {
|
|
37
|
+
container: [
|
|
38
|
+
"color-ui-cb/80 bg-ui-cb/4",
|
|
39
|
+
"hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
|
|
40
|
+
"aria-disabled:color-ui-content/80 aria-disabled:bg-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-ui-fill/5"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"soft-outline": {
|
|
44
|
+
container: [
|
|
45
|
+
"color-ui-cb/80 bg-ui-cb/4 ring ring-inset ring-ui-cb/10",
|
|
46
|
+
"hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
|
|
47
|
+
"aria-disabled:color-ui-content/80 aria-disabled:bg-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-ui-fill/5"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"ghost": {
|
|
51
|
+
container: [
|
|
52
|
+
"color-ui-cb/80 bg-transparent",
|
|
53
|
+
"hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
|
|
54
|
+
"aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"none": {
|
|
58
|
+
container: "color-ui-cb bg-transparent"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
underline: {
|
|
62
|
+
true: ""
|
|
63
|
+
},
|
|
64
|
+
highlight: {
|
|
65
|
+
true: ""
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
compoundVariants: [
|
|
69
|
+
{
|
|
70
|
+
variant: ["soft", "ghost", "none"],
|
|
71
|
+
highlight: false,
|
|
72
|
+
underline: true,
|
|
73
|
+
class: {
|
|
74
|
+
container: [
|
|
75
|
+
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40",
|
|
76
|
+
"focus-within:after:h-2px focus-within:after:bg-ui-fill/60"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
size: ["xs", "sm", "md"],
|
|
82
|
+
class: {
|
|
83
|
+
base: "p-1.5"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
size: ["lg", "xl"],
|
|
88
|
+
class: {
|
|
89
|
+
base: "p-2.5"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
variant: ["soft", "soft-outline", "ghost", "none"],
|
|
94
|
+
highlight: true,
|
|
95
|
+
class: {
|
|
96
|
+
container: "ring ring-inset ring-ui-fill/80"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
variant: ["outline"],
|
|
101
|
+
highlight: true,
|
|
102
|
+
class: {
|
|
103
|
+
container: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
);
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
content: [
|
|
7
|
+
"color-ui-base bg-ui-base shadow-lg rounded-ui-box ring ring-ui-base/10",
|
|
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
|
+
],
|
|
10
|
+
arrow: "fill-ui-base stroke-ui-cb/10"
|
|
11
|
+
}
|
|
9
12
|
}
|
|
10
|
-
|
|
13
|
+
);
|
|
@@ -16,7 +16,6 @@ declare const _default: {
|
|
|
16
16
|
orientation: {
|
|
17
17
|
horizontal: {
|
|
18
18
|
fieldset: string;
|
|
19
|
-
wrapper: string;
|
|
20
19
|
};
|
|
21
20
|
vertical: {
|
|
22
21
|
fieldset: string;
|
|
@@ -39,17 +38,6 @@ declare const _default: {
|
|
|
39
38
|
root: string;
|
|
40
39
|
};
|
|
41
40
|
};
|
|
42
|
-
dot: {
|
|
43
|
-
true: {
|
|
44
|
-
indicator: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
round: {
|
|
48
|
-
true: {
|
|
49
|
-
base: string;
|
|
50
|
-
indicator: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
41
|
disabled: {
|
|
54
42
|
true: {
|
|
55
43
|
root: string;
|
|
@@ -68,7 +56,6 @@ declare const _default: {
|
|
|
68
56
|
orientation: {
|
|
69
57
|
horizontal: {
|
|
70
58
|
fieldset: string;
|
|
71
|
-
wrapper: string;
|
|
72
59
|
};
|
|
73
60
|
vertical: {
|
|
74
61
|
fieldset: string;
|
|
@@ -91,17 +78,6 @@ declare const _default: {
|
|
|
91
78
|
root: string;
|
|
92
79
|
};
|
|
93
80
|
};
|
|
94
|
-
dot: {
|
|
95
|
-
true: {
|
|
96
|
-
indicator: string;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
round: {
|
|
100
|
-
true: {
|
|
101
|
-
base: string;
|
|
102
|
-
indicator: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
81
|
disabled: {
|
|
106
82
|
true: {
|
|
107
83
|
root: string;
|
|
@@ -1,67 +1,58 @@
|
|
|
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
|
-
orientation: {
|
|
17
|
-
horizontal: {
|
|
18
|
-
fieldset: "flex-row",
|
|
19
|
-
wrapper: "me-2"
|
|
20
|
-
},
|
|
21
|
-
vertical: {
|
|
22
|
-
fieldset: "flex-col"
|
|
23
|
-
}
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "relative",
|
|
7
|
+
fieldset: "flex flex-wrap gap-2 gap-x-4",
|
|
8
|
+
legend: "mb-2 color-ui-cb",
|
|
9
|
+
item: "flex items-start",
|
|
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-ui-fill transition data-[state=checked]:scale-66",
|
|
12
|
+
container: "h-1.5em flex items-center",
|
|
13
|
+
wrapper: "",
|
|
14
|
+
label: "block ps-2 color-ui-cb",
|
|
15
|
+
description: "ps-2 color-ui-cb/60"
|
|
24
16
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
variants: {
|
|
18
|
+
orientation: {
|
|
19
|
+
horizontal: {
|
|
20
|
+
fieldset: "flex-row"
|
|
21
|
+
},
|
|
22
|
+
vertical: {
|
|
23
|
+
fieldset: "flex-col"
|
|
24
|
+
}
|
|
31
25
|
},
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
size: {
|
|
27
|
+
xs: {
|
|
28
|
+
root: "text-xs"
|
|
29
|
+
},
|
|
30
|
+
sm: {
|
|
31
|
+
root: "text-sm"
|
|
32
|
+
},
|
|
33
|
+
md: {
|
|
34
|
+
root: "text-base"
|
|
35
|
+
},
|
|
36
|
+
lg: {
|
|
37
|
+
root: "text-lg"
|
|
38
|
+
},
|
|
39
|
+
xl: {
|
|
40
|
+
root: "text-xl"
|
|
41
|
+
}
|
|
34
42
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
dot: {
|
|
43
|
-
true: {
|
|
44
|
-
indicator: "after:content-empty after:size-0.75em after:bg-ui-c1 after:rounded-ui-base"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
round: {
|
|
48
|
-
true: {
|
|
49
|
-
base: "rounded-full",
|
|
50
|
-
indicator: "rounded-full after:rounded-full"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
disabled: {
|
|
54
|
-
true: {
|
|
55
|
-
root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
|
|
43
|
+
disabled: {
|
|
44
|
+
true: {
|
|
45
|
+
root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
|
|
46
|
+
},
|
|
47
|
+
false: {
|
|
48
|
+
label: "cursor-pointer"
|
|
49
|
+
}
|
|
56
50
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
required: {
|
|
62
|
-
true: {
|
|
63
|
-
legend: "after:content-['*'] after:ms-0.5"
|
|
51
|
+
required: {
|
|
52
|
+
true: {
|
|
53
|
+
legend: "after:content-['*'] after:ms-0.5"
|
|
54
|
+
}
|
|
64
55
|
}
|
|
65
56
|
}
|
|
66
57
|
}
|
|
67
|
-
|
|
58
|
+
);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { TransitionGroupProps } from 'vue';
|
|
2
|
+
export declare const transitionProps: TransitionGroupProps;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
base: undefined;
|
|
5
|
+
slots: {
|
|
6
|
+
/** Contains all the parts of a scroll area. */
|
|
7
|
+
root: string;
|
|
8
|
+
/** The viewport area of the scroll area. */
|
|
9
|
+
viewport: string;
|
|
10
|
+
/** The vertical and horizontal scrollbar. */
|
|
11
|
+
scrollbar: string[];
|
|
12
|
+
/** The thumb to be used in `ScrollAreaScrollbar`. */
|
|
13
|
+
thumb: string[];
|
|
14
|
+
/** The corner where both vertical and horizontal scrollbars meet. */
|
|
15
|
+
corner: string;
|
|
16
|
+
};
|
|
17
|
+
variants: {
|
|
18
|
+
[key: string]: {
|
|
19
|
+
[key: string]: "" | {
|
|
20
|
+
root?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
21
|
+
viewport?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
22
|
+
corner?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
23
|
+
scrollbar?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
24
|
+
thumb?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
25
|
+
} | null;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
|
|
29
|
+
[key: string]: {
|
|
30
|
+
[key: string]: "" | {
|
|
31
|
+
root?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
32
|
+
viewport?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
33
|
+
corner?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
34
|
+
scrollbar?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
35
|
+
thumb?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
36
|
+
} | null;
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
/** Contains all the parts of a scroll area. */
|
|
40
|
+
root: string;
|
|
41
|
+
/** The viewport area of the scroll area. */
|
|
42
|
+
viewport: string;
|
|
43
|
+
/** The vertical and horizontal scrollbar. */
|
|
44
|
+
scrollbar: string[];
|
|
45
|
+
/** The thumb to be used in `ScrollAreaScrollbar`. */
|
|
46
|
+
thumb: string[];
|
|
47
|
+
/** The corner where both vertical and horizontal scrollbars meet. */
|
|
48
|
+
corner: string;
|
|
49
|
+
}, undefined>;
|
|
50
|
+
};
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export const transitionProps = {
|
|
3
|
+
enterFromClass: "opacity-0",
|
|
4
|
+
enterActiveClass: "transition",
|
|
5
|
+
leaveToClass: "opacity-0",
|
|
6
|
+
leaveActiveClass: "transition",
|
|
7
|
+
moveClass: "transition"
|
|
8
|
+
};
|
|
9
|
+
export default ct(
|
|
10
|
+
/* @unocss-include */
|
|
11
|
+
{
|
|
12
|
+
slots: {
|
|
13
|
+
/** Contains all the parts of a scroll area. */
|
|
14
|
+
root: "relative overflow-hidden",
|
|
15
|
+
/** The viewport area of the scroll area. */
|
|
16
|
+
viewport: "size-full rounded-ui-base outline-none",
|
|
17
|
+
/** The vertical and horizontal scrollbar. */
|
|
18
|
+
scrollbar: [
|
|
19
|
+
"flex select-none touch-none p-0.5 duration-160 ease-out",
|
|
20
|
+
"data-[orientation=vertical]:w-2.5 data-[orientation=vertical]:my-[calc(var(--ui-radius-box)+0.25rem)]",
|
|
21
|
+
"data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:h-2.5 data-[orientation=horizontal]:mx-[calc(var(--ui-radius-box)+0.25rem)]"
|
|
22
|
+
],
|
|
23
|
+
/** The thumb to be used in `ScrollAreaScrollbar`. */
|
|
24
|
+
thumb: [
|
|
25
|
+
"relative flex-1 bg-ui-cb/20 rounded-ui-base cursor-pointer transition-colors",
|
|
26
|
+
"hover:bg-ui-cb/30 active:bg-ui-cb/40",
|
|
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
|
+
],
|
|
29
|
+
/** The corner where both vertical and horizontal scrollbars meet. */
|
|
30
|
+
corner: ""
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
);
|
|
@@ -29,6 +29,9 @@ declare const _default: {
|
|
|
29
29
|
soft: {
|
|
30
30
|
base: string[];
|
|
31
31
|
};
|
|
32
|
+
'soft-outline': {
|
|
33
|
+
base: string[];
|
|
34
|
+
};
|
|
32
35
|
ghost: {
|
|
33
36
|
base: string[];
|
|
34
37
|
};
|
|
@@ -79,7 +82,7 @@ declare const _default: {
|
|
|
79
82
|
highlight: false;
|
|
80
83
|
underline: true;
|
|
81
84
|
class: {
|
|
82
|
-
base: string;
|
|
85
|
+
base: string[];
|
|
83
86
|
item?: undefined;
|
|
84
87
|
prefixIcon?: undefined;
|
|
85
88
|
suffixIcon?: undefined;
|
|
@@ -117,7 +120,7 @@ declare const _default: {
|
|
|
117
120
|
prefix?: undefined;
|
|
118
121
|
suffix?: undefined;
|
|
119
122
|
} | {
|
|
120
|
-
variant: ("soft" | "ghost" | "none")[];
|
|
123
|
+
variant: ("soft" | "soft-outline" | "ghost" | "none")[];
|
|
121
124
|
highlight: true;
|
|
122
125
|
class: {
|
|
123
126
|
base: string;
|