@byyuurin/ui 0.0.8 → 0.0.10
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 +0 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -3
- package/dist/module.mjs.map +1 -1
- package/dist/runtime/app/injections.d.ts +9299 -8
- package/dist/runtime/app/injections.js +35 -5
- package/dist/runtime/components/Accordion.vue +17 -19
- package/dist/runtime/components/Alert.vue +6 -9
- package/dist/runtime/components/App.vue +14 -19
- package/dist/runtime/components/Avatar.vue +5 -8
- package/dist/runtime/components/AvatarGroup.vue +2 -5
- package/dist/runtime/components/Badge.vue +3 -6
- package/dist/runtime/components/Breadcrumb.vue +22 -23
- package/dist/runtime/components/Button.vue +2 -3
- package/dist/runtime/components/ButtonGroup.vue +2 -5
- package/dist/runtime/components/Calendar.vue +185 -0
- package/dist/runtime/components/Card.vue +2 -5
- package/dist/runtime/components/Carousel.vue +11 -16
- package/dist/runtime/components/Checkbox.vue +13 -11
- package/dist/runtime/components/Chip.vue +6 -9
- package/dist/runtime/components/Collapsible.vue +2 -5
- package/dist/runtime/components/Drawer.vue +88 -45
- package/dist/runtime/components/DropdownMenu.vue +143 -0
- package/dist/runtime/components/DropdownMenuContent.vue +188 -0
- package/dist/runtime/components/Form.vue +311 -0
- package/dist/runtime/components/FormItem.vue +129 -0
- package/dist/runtime/components/Input.vue +34 -23
- package/dist/runtime/components/InputNumber.vue +23 -18
- package/dist/runtime/components/Kbd.vue +2 -6
- package/dist/runtime/components/Link.vue +25 -7
- package/dist/runtime/components/Modal.vue +31 -22
- package/dist/runtime/components/OverlayProvider.vue +29 -0
- package/dist/runtime/components/Pagination.vue +34 -27
- package/dist/runtime/components/PinInput.vue +23 -17
- package/dist/runtime/components/Popover.vue +5 -8
- package/dist/runtime/components/Progress.vue +2 -5
- package/dist/runtime/components/RadioGroup.vue +52 -49
- package/dist/runtime/components/ScrollArea.vue +2 -6
- package/dist/runtime/components/Select.vue +96 -89
- package/dist/runtime/components/Separator.vue +2 -6
- package/dist/runtime/components/Skeleton.vue +2 -5
- package/dist/runtime/components/Slider.vue +13 -11
- package/dist/runtime/components/Switch.vue +18 -11
- package/dist/runtime/components/Table.vue +23 -13
- package/dist/runtime/components/Tabs.vue +14 -16
- package/dist/runtime/components/Textarea.vue +20 -17
- package/dist/runtime/components/Toast.vue +12 -13
- package/dist/runtime/components/{Toaster.vue → ToastProvider.vue} +18 -16
- package/dist/runtime/components/Tooltip.vue +5 -8
- package/dist/runtime/composables/useFormItem.d.ts +27 -0
- package/dist/runtime/composables/useFormItem.js +64 -0
- package/dist/runtime/composables/useKbd.d.ts +1 -1
- package/dist/runtime/composables/useOverlay.d.ts +29 -0
- package/dist/runtime/composables/useOverlay.js +69 -0
- package/dist/runtime/composables/useTheme.d.ts +6 -2
- package/dist/runtime/composables/useTheme.js +10 -3
- package/dist/runtime/composables/useToast.d.ts +4 -20
- package/dist/runtime/composables/useToast.js +6 -5
- package/dist/runtime/index.d.ts +6 -2
- package/dist/runtime/index.js +6 -2
- package/dist/runtime/locale/en.js +6 -0
- package/dist/runtime/locale/zh-tw.js +6 -0
- package/dist/runtime/theme/accordion.js +3 -3
- package/dist/runtime/theme/alert.js +3 -3
- package/dist/runtime/theme/app.d.ts +1 -0
- package/dist/runtime/theme/app.js +2 -1
- package/dist/runtime/theme/avatar.js +2 -2
- package/dist/runtime/theme/badge.d.ts +21 -45
- package/dist/runtime/theme/breadcrumb.d.ts +3 -3
- package/dist/runtime/theme/breadcrumb.js +5 -5
- package/dist/runtime/theme/button.d.ts +111 -57
- package/dist/runtime/theme/button.js +13 -13
- package/dist/runtime/theme/calendar.d.ts +56 -0
- package/dist/runtime/theme/calendar.js +69 -0
- package/dist/runtime/theme/card.js +6 -6
- package/dist/runtime/theme/carousel.js +1 -1
- package/dist/runtime/theme/checkbox.js +5 -5
- package/dist/runtime/theme/chip.d.ts +11 -44
- package/dist/runtime/theme/chip.js +3 -3
- package/dist/runtime/theme/drawer.d.ts +85 -47
- package/dist/runtime/theme/drawer.js +46 -19
- package/dist/runtime/theme/dropdown-menu.d.ts +71 -0
- package/dist/runtime/theme/dropdown-menu.js +83 -0
- package/dist/runtime/theme/form-item.d.ts +76 -0
- package/dist/runtime/theme/form-item.js +34 -0
- package/dist/runtime/theme/form.d.ts +8 -0
- package/dist/runtime/theme/form.js +7 -0
- package/dist/runtime/theme/index.d.ts +5 -1
- package/dist/runtime/theme/index.js +5 -1
- package/dist/runtime/theme/input-number.d.ts +41 -61
- package/dist/runtime/theme/input-number.js +1 -1
- package/dist/runtime/theme/input.d.ts +99 -71
- package/dist/runtime/theme/input.js +15 -15
- package/dist/runtime/theme/kbd.d.ts +2 -2
- package/dist/runtime/theme/kbd.js +1 -1
- package/dist/runtime/theme/link.d.ts +1 -1
- package/dist/runtime/theme/link.js +3 -3
- package/dist/runtime/theme/modal.d.ts +5 -33
- package/dist/runtime/theme/modal.js +4 -4
- package/dist/runtime/theme/pagination.d.ts +27 -3
- package/dist/runtime/theme/pagination.js +6 -2
- package/dist/runtime/theme/pinInput.d.ts +42 -42
- package/dist/runtime/theme/pinInput.js +13 -13
- package/dist/runtime/theme/progress.d.ts +117 -53
- package/dist/runtime/theme/progress.js +4 -4
- package/dist/runtime/theme/radio-group.d.ts +2 -2
- package/dist/runtime/theme/radio-group.js +7 -7
- package/dist/runtime/theme/select.d.ts +100 -84
- package/dist/runtime/theme/select.js +21 -20
- package/dist/runtime/theme/separator.d.ts +13 -28
- package/dist/runtime/theme/separator.js +1 -1
- package/dist/runtime/theme/skeleton.d.ts +1 -1
- package/dist/runtime/theme/skeleton.js +1 -1
- package/dist/runtime/theme/slider.js +1 -1
- package/dist/runtime/theme/switch.js +5 -5
- package/dist/runtime/theme/table.d.ts +3 -0
- package/dist/runtime/theme/table.js +8 -7
- package/dist/runtime/theme/tabs.d.ts +51 -68
- package/dist/runtime/theme/tabs.js +10 -10
- package/dist/runtime/theme/textarea.d.ts +37 -43
- package/dist/runtime/theme/textarea.js +13 -13
- package/dist/runtime/theme/{toaster.d.ts → toast-provider.d.ts} +26 -41
- package/dist/runtime/theme/toast.js +5 -5
- package/dist/runtime/theme/tooltip.js +1 -1
- package/dist/runtime/types/components.d.ts +6 -1
- package/dist/runtime/types/form.d.ts +45 -0
- package/dist/runtime/types/form.js +0 -0
- package/dist/runtime/types/index.d.ts +5 -2
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/locale.d.ts +6 -0
- package/dist/runtime/types/utils.d.ts +35 -12
- package/dist/runtime/utils/extend-theme.js +15 -4
- package/dist/runtime/utils/form.d.ts +5 -0
- package/dist/runtime/utils/form.js +24 -0
- package/dist/runtime/utils/index.d.ts +2 -0
- package/dist/runtime/utils/index.js +4 -0
- package/dist/runtime/utils/link.d.ts +4 -26
- package/dist/runtime/utils/link.js +10 -3
- package/dist/shared/ui.3e7fad19.mjs +5 -0
- package/dist/shared/ui.3e7fad19.mjs.map +1 -0
- package/dist/unocss.mjs +21 -16
- package/dist/unocss.mjs.map +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +20 -18
- package/dist/runtime/components/ModalProvider.vue +0 -11
- package/dist/runtime/composables/useModal.d.ts +0 -10
- package/dist/runtime/composables/useModal.js +0 -47
- package/dist/shared/ui.ba24b380.mjs +0 -4
- package/dist/shared/ui.ba24b380.mjs.map +0 -1
- /package/dist/runtime/theme/{toaster.js → toast-provider.js} +0 -0
|
@@ -26,7 +26,7 @@ declare const _default: {
|
|
|
26
26
|
disabled: {
|
|
27
27
|
true: "cursor-not-allowed opacity-50";
|
|
28
28
|
};
|
|
29
|
-
}, undefined, "border-y border-t-transparent outline-none focus-visible:outline-ui-
|
|
29
|
+
}, undefined, "border-y border-t-transparent outline-none focus-visible:outline-ui-base/80">;
|
|
30
30
|
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
31
31
|
underline: {
|
|
32
32
|
true: "border-current";
|
|
@@ -2,7 +2,7 @@ import { ct } from "@byyuurin/ui-kit";
|
|
|
2
2
|
export default ct(
|
|
3
3
|
/* @unocss-include */
|
|
4
4
|
{
|
|
5
|
-
base: "border-y border-t-transparent outline-none focus-visible:outline-ui-
|
|
5
|
+
base: "border-y border-t-transparent outline-none focus-visible:outline-ui-base/80",
|
|
6
6
|
variants: {
|
|
7
7
|
underline: {
|
|
8
8
|
true: "border-current",
|
|
@@ -14,8 +14,8 @@ export default ct(
|
|
|
14
14
|
"disabled:color-ui-fill aria-disabled:color-ui-fill"
|
|
15
15
|
],
|
|
16
16
|
false: [
|
|
17
|
-
"color-ui-
|
|
18
|
-
"disabled:hover:color-ui-
|
|
17
|
+
"color-ui-base/80 hover:color-ui-base/60 transition-colors",
|
|
18
|
+
"disabled:hover:color-ui-base aria-disabled:hover:color-ui-base"
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
21
|
disabled: {
|
|
@@ -35,40 +35,12 @@ declare const _default: {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
compoundVariants:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
content: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
size: {
|
|
46
|
-
fullscreen: {
|
|
47
|
-
content: string;
|
|
48
|
-
};
|
|
49
|
-
sm: {
|
|
50
|
-
content: string;
|
|
51
|
-
};
|
|
52
|
-
md: {
|
|
53
|
-
content: string;
|
|
54
|
-
};
|
|
55
|
-
lg: {
|
|
56
|
-
content: string;
|
|
57
|
-
};
|
|
58
|
-
xl: {
|
|
59
|
-
content: string;
|
|
60
|
-
};
|
|
38
|
+
compoundVariants: {
|
|
39
|
+
size: ("sm" | "md" | "lg" | "xl")[];
|
|
40
|
+
class: {
|
|
41
|
+
content: string[];
|
|
61
42
|
};
|
|
62
|
-
}
|
|
63
|
-
overlay: string;
|
|
64
|
-
content: string;
|
|
65
|
-
header: string;
|
|
66
|
-
body: string;
|
|
67
|
-
footer: string;
|
|
68
|
-
title: string;
|
|
69
|
-
description: string;
|
|
70
|
-
close: string;
|
|
71
|
-
}, undefined>;
|
|
43
|
+
}[];
|
|
72
44
|
defaultVariants: {
|
|
73
45
|
size: "sm";
|
|
74
46
|
};
|
|
@@ -4,12 +4,12 @@ export default ct(
|
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
6
|
overlay: "fixed z-1 inset-0 bg-black/40",
|
|
7
|
-
content: "fixed z-1 bg-ui-
|
|
7
|
+
content: "fixed z-1 bg-ui-base divide-y divide-ui-base/10 flex flex-col focus:outline-none",
|
|
8
8
|
header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
|
|
9
9
|
body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
|
|
10
10
|
footer: "flex items-center gap-1.5 p-4 sm:px-6",
|
|
11
|
-
title: "flex-grow color-ui-
|
|
12
|
-
description: "w-full color-ui-
|
|
11
|
+
title: "flex-grow color-ui-base text-xl font-semibold",
|
|
12
|
+
description: "w-full color-ui-base/80",
|
|
13
13
|
close: "ms-auto"
|
|
14
14
|
},
|
|
15
15
|
variants: {
|
|
@@ -42,7 +42,7 @@ export default ct(
|
|
|
42
42
|
size: ["sm", "md", "lg", "xl"],
|
|
43
43
|
class: {
|
|
44
44
|
content: [
|
|
45
|
-
"bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] rounded-ui-box shadow-sm shadow-ui-
|
|
45
|
+
"bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] rounded-ui-box shadow-sm shadow-ui-base/10 ring ring-ui-base/10",
|
|
46
46
|
"sm:bottom-auto sm:top-[50%] sm:translate-y-[-50%]"
|
|
47
47
|
]
|
|
48
48
|
}
|
|
@@ -3,9 +3,13 @@ declare const _default: {
|
|
|
3
3
|
slots: {
|
|
4
4
|
root: string;
|
|
5
5
|
list: string;
|
|
6
|
-
item: string;
|
|
7
6
|
ellipsis: string;
|
|
8
7
|
label: string;
|
|
8
|
+
item: string;
|
|
9
|
+
first: string;
|
|
10
|
+
prev: string;
|
|
11
|
+
next: string;
|
|
12
|
+
last: string;
|
|
9
13
|
};
|
|
10
14
|
variants: {
|
|
11
15
|
[key: string]: {
|
|
@@ -14,7 +18,11 @@ declare const _default: {
|
|
|
14
18
|
item?: import("@byyuurin/ui-kit").ClassValue;
|
|
15
19
|
label?: import("@byyuurin/ui-kit").ClassValue;
|
|
16
20
|
list?: import("@byyuurin/ui-kit").ClassValue;
|
|
21
|
+
prev?: import("@byyuurin/ui-kit").ClassValue;
|
|
22
|
+
next?: import("@byyuurin/ui-kit").ClassValue;
|
|
17
23
|
ellipsis?: import("@byyuurin/ui-kit").ClassValue;
|
|
24
|
+
first?: import("@byyuurin/ui-kit").ClassValue;
|
|
25
|
+
last?: import("@byyuurin/ui-kit").ClassValue;
|
|
18
26
|
} | null;
|
|
19
27
|
};
|
|
20
28
|
};
|
|
@@ -25,15 +33,23 @@ declare const _default: {
|
|
|
25
33
|
item?: import("@byyuurin/ui-kit").ClassValue;
|
|
26
34
|
label?: import("@byyuurin/ui-kit").ClassValue;
|
|
27
35
|
list?: import("@byyuurin/ui-kit").ClassValue;
|
|
36
|
+
prev?: import("@byyuurin/ui-kit").ClassValue;
|
|
37
|
+
next?: import("@byyuurin/ui-kit").ClassValue;
|
|
28
38
|
ellipsis?: import("@byyuurin/ui-kit").ClassValue;
|
|
39
|
+
first?: import("@byyuurin/ui-kit").ClassValue;
|
|
40
|
+
last?: import("@byyuurin/ui-kit").ClassValue;
|
|
29
41
|
} | null;
|
|
30
42
|
};
|
|
31
43
|
}, {
|
|
32
44
|
root: string;
|
|
33
45
|
list: string;
|
|
34
|
-
item: string;
|
|
35
46
|
ellipsis: string;
|
|
36
47
|
label: string;
|
|
48
|
+
item: string;
|
|
49
|
+
first: string;
|
|
50
|
+
prev: string;
|
|
51
|
+
next: string;
|
|
52
|
+
last: string;
|
|
37
53
|
}, undefined>;
|
|
38
54
|
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
39
55
|
[key: string]: {
|
|
@@ -42,15 +58,23 @@ declare const _default: {
|
|
|
42
58
|
item?: import("@byyuurin/ui-kit").ClassValue;
|
|
43
59
|
label?: import("@byyuurin/ui-kit").ClassValue;
|
|
44
60
|
list?: import("@byyuurin/ui-kit").ClassValue;
|
|
61
|
+
prev?: import("@byyuurin/ui-kit").ClassValue;
|
|
62
|
+
next?: import("@byyuurin/ui-kit").ClassValue;
|
|
45
63
|
ellipsis?: import("@byyuurin/ui-kit").ClassValue;
|
|
64
|
+
first?: import("@byyuurin/ui-kit").ClassValue;
|
|
65
|
+
last?: import("@byyuurin/ui-kit").ClassValue;
|
|
46
66
|
} | null;
|
|
47
67
|
};
|
|
48
68
|
}, {
|
|
49
69
|
root: string;
|
|
50
70
|
list: string;
|
|
51
|
-
item: string;
|
|
52
71
|
ellipsis: string;
|
|
53
72
|
label: string;
|
|
73
|
+
item: string;
|
|
74
|
+
first: string;
|
|
75
|
+
prev: string;
|
|
76
|
+
next: string;
|
|
77
|
+
last: string;
|
|
54
78
|
}>;
|
|
55
79
|
};
|
|
56
80
|
export default _default;
|
|
@@ -5,9 +5,13 @@ export default ct(
|
|
|
5
5
|
slots: {
|
|
6
6
|
root: "",
|
|
7
7
|
list: "flex items-center gap-1",
|
|
8
|
-
item: "",
|
|
9
8
|
ellipsis: "pointer-events-none",
|
|
10
|
-
label: "px-0 min-w-1.5em"
|
|
9
|
+
label: "px-0 min-w-1.5em text-center",
|
|
10
|
+
item: "",
|
|
11
|
+
first: "",
|
|
12
|
+
prev: "",
|
|
13
|
+
next: "",
|
|
14
|
+
last: ""
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
);
|
|
@@ -47,52 +47,52 @@ declare const _default: {
|
|
|
47
47
|
true: "";
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
compoundVariants:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
};
|
|
58
|
-
md: {
|
|
59
|
-
container: string;
|
|
60
|
-
};
|
|
61
|
-
lg: {
|
|
62
|
-
container: string;
|
|
63
|
-
};
|
|
64
|
-
xl: {
|
|
65
|
-
container: string;
|
|
66
|
-
};
|
|
50
|
+
compoundVariants: ({
|
|
51
|
+
variant: ("soft" | "ghost" | "none")[];
|
|
52
|
+
highlight: false;
|
|
53
|
+
underline: true;
|
|
54
|
+
class: {
|
|
55
|
+
container: string[];
|
|
56
|
+
base?: undefined;
|
|
67
57
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
};
|
|
75
|
-
'soft-outline': {
|
|
76
|
-
container: string[];
|
|
77
|
-
};
|
|
78
|
-
ghost: {
|
|
79
|
-
container: string[];
|
|
80
|
-
};
|
|
81
|
-
none: {
|
|
82
|
-
container: string;
|
|
83
|
-
};
|
|
58
|
+
size?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
size: ("xs" | "sm" | "md")[];
|
|
61
|
+
class: {
|
|
62
|
+
base: string;
|
|
63
|
+
container?: undefined;
|
|
84
64
|
};
|
|
85
|
-
|
|
86
|
-
|
|
65
|
+
variant?: undefined;
|
|
66
|
+
highlight?: undefined;
|
|
67
|
+
underline?: undefined;
|
|
68
|
+
} | {
|
|
69
|
+
size: ("lg" | "xl")[];
|
|
70
|
+
class: {
|
|
71
|
+
base: string;
|
|
72
|
+
container?: undefined;
|
|
87
73
|
};
|
|
88
|
-
|
|
89
|
-
|
|
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;
|
|
90
83
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
96
|
defaultVariants: {
|
|
97
97
|
size: "md";
|
|
98
98
|
};
|
|
@@ -5,7 +5,7 @@ export default ct(
|
|
|
5
5
|
slots: {
|
|
6
6
|
root: "inline-flex items-center gap-x-2",
|
|
7
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-
|
|
8
|
+
base: "w-full color-inherit bg-transparent text-center placeholder:color-ui-base/50 focus:outline-none disabled:cursor-not-allowed"
|
|
9
9
|
},
|
|
10
10
|
variants: {
|
|
11
11
|
size: {
|
|
@@ -28,34 +28,34 @@ export default ct(
|
|
|
28
28
|
variant: {
|
|
29
29
|
"outline": {
|
|
30
30
|
container: [
|
|
31
|
-
"color-ui-
|
|
32
|
-
"focus-within:ring-2 focus-within:ring-ui-
|
|
33
|
-
"aria-disabled:ring-ui-
|
|
31
|
+
"color-ui-base/80 bg-ui-base ring ring-inset ring-ui-base/30",
|
|
32
|
+
"focus-within:ring-2 focus-within:ring-ui-base/50",
|
|
33
|
+
"aria-disabled:ring-ui-base/15 hover:aria-disabled:ring-ui-base/15"
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
36
|
"soft": {
|
|
37
37
|
container: [
|
|
38
|
-
"color-ui-
|
|
39
|
-
"hover:bg-soft-ui-cb/6 hover:color-ui-
|
|
40
|
-
"aria-disabled:color-ui-
|
|
38
|
+
"color-ui-base/80 bg-soft-ui-cb/4",
|
|
39
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85",
|
|
40
|
+
"aria-disabled:color-ui-fill/80 aria-disabled:bg-soft-ui-fill/5 hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-soft-ui-fill/5"
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"soft-outline": {
|
|
44
44
|
container: [
|
|
45
|
-
"color-ui-
|
|
46
|
-
"hover:bg-soft-ui-cb/6 hover:color-ui-
|
|
47
|
-
"aria-disabled:color-ui-
|
|
45
|
+
"color-ui-base/80 bg-soft-ui-cb/4 ring ring-inset ring-ui-base/30",
|
|
46
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85",
|
|
47
|
+
"aria-disabled:color-ui-fill/80 aria-disabled:bg-soft-ui-fill/5 hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-soft-ui-fill/5"
|
|
48
48
|
]
|
|
49
49
|
},
|
|
50
50
|
"ghost": {
|
|
51
51
|
container: [
|
|
52
|
-
"color-ui-
|
|
53
|
-
"hover:bg-soft-ui-cb/6 hover:color-ui-
|
|
52
|
+
"color-ui-base/80 bg-transparent",
|
|
53
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85",
|
|
54
54
|
"aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
57
|
"none": {
|
|
58
|
-
container: "color-ui-
|
|
58
|
+
container: "color-ui-base bg-transparent"
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
underline: {
|
|
@@ -58,63 +58,127 @@ declare const _default: {
|
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
compoundVariants:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
md: {
|
|
70
|
-
wrapper: string;
|
|
71
|
-
};
|
|
72
|
-
lg: {
|
|
73
|
-
wrapper: string;
|
|
74
|
-
};
|
|
75
|
-
xl: {
|
|
76
|
-
wrapper: string;
|
|
77
|
-
};
|
|
61
|
+
compoundVariants: ({
|
|
62
|
+
orientation: "horizontal";
|
|
63
|
+
inverted: true;
|
|
64
|
+
class: {
|
|
65
|
+
step: string;
|
|
66
|
+
status: string;
|
|
67
|
+
steps?: undefined;
|
|
68
|
+
root?: undefined;
|
|
78
69
|
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
};
|
|
89
|
-
last: {
|
|
90
|
-
step: string;
|
|
91
|
-
};
|
|
70
|
+
size?: undefined;
|
|
71
|
+
} | {
|
|
72
|
+
orientation: "vertical";
|
|
73
|
+
inverted: true;
|
|
74
|
+
class: {
|
|
75
|
+
steps: string;
|
|
76
|
+
status: string;
|
|
77
|
+
step?: undefined;
|
|
78
|
+
root?: undefined;
|
|
92
79
|
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
status: string;
|
|
103
|
-
};
|
|
80
|
+
size?: undefined;
|
|
81
|
+
} | {
|
|
82
|
+
size: "xs";
|
|
83
|
+
orientation: "horizontal";
|
|
84
|
+
class: {
|
|
85
|
+
root: string;
|
|
86
|
+
step?: undefined;
|
|
87
|
+
status?: undefined;
|
|
88
|
+
steps?: undefined;
|
|
104
89
|
};
|
|
105
|
-
inverted
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
90
|
+
inverted?: undefined;
|
|
91
|
+
} | {
|
|
92
|
+
size: "sm";
|
|
93
|
+
orientation: "horizontal";
|
|
94
|
+
class: {
|
|
95
|
+
root: string;
|
|
96
|
+
step?: undefined;
|
|
97
|
+
status?: undefined;
|
|
98
|
+
steps?: undefined;
|
|
109
99
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
100
|
+
inverted?: undefined;
|
|
101
|
+
} | {
|
|
102
|
+
size: "md";
|
|
103
|
+
orientation: "horizontal";
|
|
104
|
+
class: {
|
|
105
|
+
root: string;
|
|
106
|
+
step?: undefined;
|
|
107
|
+
status?: undefined;
|
|
108
|
+
steps?: undefined;
|
|
109
|
+
};
|
|
110
|
+
inverted?: undefined;
|
|
111
|
+
} | {
|
|
112
|
+
size: "lg";
|
|
113
|
+
orientation: "horizontal";
|
|
114
|
+
class: {
|
|
115
|
+
root: string;
|
|
116
|
+
step?: undefined;
|
|
117
|
+
status?: undefined;
|
|
118
|
+
steps?: undefined;
|
|
119
|
+
};
|
|
120
|
+
inverted?: undefined;
|
|
121
|
+
} | {
|
|
122
|
+
size: "xl";
|
|
123
|
+
orientation: "horizontal";
|
|
124
|
+
class: {
|
|
125
|
+
root: string;
|
|
126
|
+
step?: undefined;
|
|
127
|
+
status?: undefined;
|
|
128
|
+
steps?: undefined;
|
|
129
|
+
};
|
|
130
|
+
inverted?: undefined;
|
|
131
|
+
} | {
|
|
132
|
+
size: "xs";
|
|
133
|
+
orientation: "vertical";
|
|
134
|
+
class: {
|
|
135
|
+
root: string;
|
|
136
|
+
step?: undefined;
|
|
137
|
+
status?: undefined;
|
|
138
|
+
steps?: undefined;
|
|
139
|
+
};
|
|
140
|
+
inverted?: undefined;
|
|
141
|
+
} | {
|
|
142
|
+
size: "sm";
|
|
143
|
+
orientation: "vertical";
|
|
144
|
+
class: {
|
|
145
|
+
root: string;
|
|
146
|
+
step?: undefined;
|
|
147
|
+
status?: undefined;
|
|
148
|
+
steps?: undefined;
|
|
149
|
+
};
|
|
150
|
+
inverted?: undefined;
|
|
151
|
+
} | {
|
|
152
|
+
size: "md";
|
|
153
|
+
orientation: "vertical";
|
|
154
|
+
class: {
|
|
155
|
+
root: string;
|
|
156
|
+
step?: undefined;
|
|
157
|
+
status?: undefined;
|
|
158
|
+
steps?: undefined;
|
|
159
|
+
};
|
|
160
|
+
inverted?: undefined;
|
|
161
|
+
} | {
|
|
162
|
+
size: "lg";
|
|
163
|
+
orientation: "vertical";
|
|
164
|
+
class: {
|
|
165
|
+
root: string;
|
|
166
|
+
step?: undefined;
|
|
167
|
+
status?: undefined;
|
|
168
|
+
steps?: undefined;
|
|
169
|
+
};
|
|
170
|
+
inverted?: undefined;
|
|
171
|
+
} | {
|
|
172
|
+
size: "xl";
|
|
173
|
+
orientation: "vertical";
|
|
174
|
+
class: {
|
|
175
|
+
root: string;
|
|
176
|
+
step?: undefined;
|
|
177
|
+
status?: undefined;
|
|
178
|
+
steps?: undefined;
|
|
179
|
+
};
|
|
180
|
+
inverted?: undefined;
|
|
181
|
+
})[];
|
|
118
182
|
defaultVariants: {
|
|
119
183
|
size: "md";
|
|
120
184
|
};
|
|
@@ -5,9 +5,9 @@ export default ct(
|
|
|
5
5
|
slots: {
|
|
6
6
|
wrapper: "gap-2",
|
|
7
7
|
root: "relative overflow-hidden rounded-full bg-soft-ui-cb/30",
|
|
8
|
-
indicator: "bg-ui-
|
|
9
|
-
status: "flex justify-end color-ui-
|
|
10
|
-
steps: "grid items-end color-ui-
|
|
8
|
+
indicator: "bg-ui-fill rounded-full size-full transition-transform duration-200 ease-out",
|
|
9
|
+
status: "flex justify-end color-ui-base/50 transition-[width] duration-200",
|
|
10
|
+
steps: "grid items-end color-ui-base/80",
|
|
11
11
|
step: "truncate text-end row-start-1 col-start-1 transition-opacity"
|
|
12
12
|
},
|
|
13
13
|
variants: {
|
|
@@ -33,7 +33,7 @@ export default ct(
|
|
|
33
33
|
step: "opacity-100"
|
|
34
34
|
},
|
|
35
35
|
first: {
|
|
36
|
-
step: "opacity-100 color-ui-
|
|
36
|
+
step: "opacity-100 color-ui-base/60"
|
|
37
37
|
},
|
|
38
38
|
other: {
|
|
39
39
|
step: "opacity-0"
|
|
@@ -40,7 +40,7 @@ declare const _default: {
|
|
|
40
40
|
};
|
|
41
41
|
disabled: {
|
|
42
42
|
true: {
|
|
43
|
-
|
|
43
|
+
item: string;
|
|
44
44
|
};
|
|
45
45
|
false: {
|
|
46
46
|
label: string;
|
|
@@ -80,7 +80,7 @@ declare const _default: {
|
|
|
80
80
|
};
|
|
81
81
|
disabled: {
|
|
82
82
|
true: {
|
|
83
|
-
|
|
83
|
+
item: string;
|
|
84
84
|
};
|
|
85
85
|
false: {
|
|
86
86
|
label: string;
|
|
@@ -3,16 +3,16 @@ export default ct(
|
|
|
3
3
|
/* @unocss-include */
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
|
-
root: "
|
|
6
|
+
root: "",
|
|
7
7
|
fieldset: "flex flex-wrap gap-2 gap-x-4",
|
|
8
|
-
legend: "mb-2 color-ui-
|
|
9
|
-
item: "flex items-start",
|
|
10
|
-
base: "relative size-1.25em rounded-ui-radio ring ring-inset ring-ui-
|
|
8
|
+
legend: "mb-2 color-ui-base",
|
|
9
|
+
item: "relative flex items-start",
|
|
10
|
+
base: "relative size-1.25em rounded-ui-radio ring ring-inset ring-ui-base outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-base/80 transition data-[state=checked]:ring-ui-base",
|
|
11
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
|
-
label: "block ps-2 color-ui-
|
|
15
|
-
description: "ps-2 color-ui-
|
|
14
|
+
label: "block ps-2 color-ui-base",
|
|
15
|
+
description: "ps-2 color-ui-base/60"
|
|
16
16
|
},
|
|
17
17
|
variants: {
|
|
18
18
|
orientation: {
|
|
@@ -42,7 +42,7 @@ export default ct(
|
|
|
42
42
|
},
|
|
43
43
|
disabled: {
|
|
44
44
|
true: {
|
|
45
|
-
|
|
45
|
+
item: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
|
|
46
46
|
},
|
|
47
47
|
false: {
|
|
48
48
|
label: "cursor-pointer"
|