@byyuurin/ui 0.0.7 → 0.0.9
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/dist/module.json +1 -1
- package/dist/module.mjs +8 -7
- package/dist/module.mjs.map +1 -1
- package/dist/runtime/app/injections.d.ts +11 -0
- package/dist/runtime/app/injections.js +26 -0
- package/dist/runtime/components/Accordion.vue +28 -26
- package/dist/runtime/components/Alert.vue +27 -23
- package/dist/runtime/components/App.vue +21 -26
- package/dist/runtime/components/Avatar.vue +70 -0
- package/dist/runtime/components/AvatarGroup.vue +87 -0
- package/dist/runtime/components/Badge.vue +17 -15
- package/dist/runtime/components/Breadcrumb.vue +108 -0
- package/dist/runtime/components/Button.vue +15 -16
- package/dist/runtime/components/ButtonGroup.vue +14 -15
- package/dist/runtime/components/Calendar.vue +176 -0
- package/dist/runtime/components/Card.vue +9 -7
- package/dist/runtime/components/Carousel.vue +22 -22
- package/dist/runtime/components/Checkbox.vue +15 -14
- package/dist/runtime/components/Chip.vue +23 -21
- package/dist/runtime/components/Collapsible.vue +5 -8
- package/dist/runtime/components/Drawer.vue +91 -49
- package/dist/runtime/components/Input.vue +33 -36
- package/dist/runtime/components/InputNumber.vue +9 -10
- package/dist/runtime/components/Kbd.vue +47 -0
- package/dist/runtime/components/Link.vue +15 -12
- package/dist/runtime/components/LinkBase.vue +1 -1
- package/dist/runtime/components/Modal.vue +31 -19
- package/dist/runtime/components/OverlayProvider.vue +29 -0
- package/dist/runtime/components/Pagination.vue +60 -53
- package/dist/runtime/components/PinInput.vue +9 -12
- package/dist/runtime/components/Popover.vue +9 -12
- package/dist/runtime/components/Progress.vue +162 -0
- package/dist/runtime/components/RadioGroup.vue +38 -35
- package/dist/runtime/components/ScrollArea.vue +2 -6
- package/dist/runtime/components/Select.vue +48 -51
- package/dist/runtime/components/Separator.vue +2 -6
- package/dist/runtime/components/Skeleton.vue +30 -0
- package/dist/runtime/components/Slider.vue +8 -11
- package/dist/runtime/components/Switch.vue +17 -17
- package/dist/runtime/components/Table.vue +21 -16
- package/dist/runtime/components/Tabs.vue +24 -23
- package/dist/runtime/components/Textarea.vue +13 -16
- package/dist/runtime/components/Toast.vue +21 -24
- package/dist/runtime/components/{Toaster.vue → ToastProvider.vue} +22 -20
- package/dist/runtime/components/Tooltip.vue +9 -12
- package/dist/runtime/composables/useAvatarGroup.d.ts +4 -0
- package/dist/runtime/composables/useAvatarGroup.js +8 -0
- package/dist/runtime/composables/useButtonGroup.d.ts +4 -12
- package/dist/runtime/composables/useButtonGroup.js +1 -6
- package/dist/runtime/composables/useComponentIcons.d.ts +9 -9
- package/dist/runtime/composables/useComponentIcons.js +11 -11
- package/dist/runtime/composables/useKbd.d.ts +35 -0
- package/dist/runtime/composables/useKbd.js +49 -0
- package/dist/runtime/composables/useLocale.d.ts +8 -0
- package/dist/runtime/composables/useLocale.js +22 -0
- 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 -6
- package/dist/runtime/composables/useTheme.js +11 -15
- package/dist/runtime/composables/useToast.d.ts +4 -20
- package/dist/runtime/composables/useToast.js +6 -5
- package/dist/runtime/index.d.ts +9 -2
- package/dist/runtime/index.js +9 -2
- package/dist/runtime/locale/en.d.ts +2 -0
- package/dist/runtime/locale/en.js +34 -0
- package/dist/runtime/locale/index.d.ts +2 -0
- package/dist/runtime/locale/index.js +2 -0
- package/dist/runtime/locale/zh-tw.d.ts +2 -0
- package/dist/runtime/locale/zh-tw.js +34 -0
- package/dist/runtime/theme/accordion.d.ts +6 -6
- package/dist/runtime/theme/accordion.js +5 -5
- package/dist/runtime/theme/alert.js +3 -3
- package/dist/runtime/theme/app.d.ts +6 -6
- package/dist/runtime/theme/app.js +7 -7
- package/dist/runtime/theme/avatar-group.d.ts +52 -0
- package/dist/runtime/theme/avatar-group.js +32 -0
- package/dist/runtime/theme/avatar.d.ts +56 -0
- package/dist/runtime/theme/avatar.js +34 -0
- package/dist/runtime/theme/breadcrumb.d.ts +67 -0
- package/dist/runtime/theme/breadcrumb.js +44 -0
- package/dist/runtime/theme/button.d.ts +8 -8
- package/dist/runtime/theme/button.js +22 -22
- 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 +4 -4
- package/dist/runtime/theme/chip.js +5 -5
- package/dist/runtime/theme/drawer.d.ts +24 -21
- package/dist/runtime/theme/drawer.js +47 -20
- package/dist/runtime/theme/index.d.ts +8 -1
- package/dist/runtime/theme/index.js +8 -1
- package/dist/runtime/theme/input-number.d.ts +6 -0
- package/dist/runtime/theme/input-number.js +6 -3
- package/dist/runtime/theme/input.d.ts +12 -12
- package/dist/runtime/theme/input.js +26 -26
- package/dist/runtime/theme/kbd.d.ts +39 -0
- package/dist/runtime/theme/kbd.js +26 -0
- package/dist/runtime/theme/link.d.ts +1 -1
- package/dist/runtime/theme/link.js +3 -3
- package/dist/runtime/theme/modal.js +5 -5
- package/dist/runtime/theme/pagination.d.ts +27 -3
- package/dist/runtime/theme/pagination.js +6 -2
- package/dist/runtime/theme/pinInput.js +13 -13
- package/dist/runtime/theme/popover.js +1 -1
- package/dist/runtime/theme/progress.d.ts +122 -0
- package/dist/runtime/theme/progress.js +95 -0
- 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 +18 -18
- package/dist/runtime/theme/select.js +34 -34
- package/dist/runtime/theme/separator.js +1 -1
- package/dist/runtime/theme/skeleton.d.ts +8 -0
- package/dist/runtime/theme/skeleton.js +7 -0
- package/dist/runtime/theme/slider.js +1 -1
- package/dist/runtime/theme/switch.js +6 -6
- package/dist/runtime/theme/table.js +7 -7
- package/dist/runtime/theme/tabs.d.ts +2 -2
- package/dist/runtime/theme/tabs.js +11 -11
- package/dist/runtime/theme/textarea.js +13 -13
- package/dist/runtime/theme/toast.js +6 -6
- package/dist/runtime/theme/tooltip.js +1 -1
- package/dist/runtime/types/components.d.ts +9 -1
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/locale.d.ts +29 -0
- package/dist/runtime/types/locale.js +0 -0
- package/dist/runtime/types/utils.d.ts +5 -3
- package/dist/runtime/utils/index.d.ts +6 -1
- package/dist/runtime/utils/index.js +6 -4
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/runtime/utils/translator.d.ts +18 -0
- package/dist/runtime/utils/translator.js +8 -0
- package/dist/shared/ui.1a1f119c.mjs +5 -0
- package/dist/shared/ui.1a1f119c.mjs.map +1 -0
- package/dist/unocss.mjs +19 -14
- package/dist/unocss.mjs.map +1 -1
- package/dist/unplugin.mjs +3 -12
- package/dist/unplugin.mjs.map +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +30 -19
- package/dist/runtime/components/ModalProvider.vue +0 -10
- package/dist/runtime/composables/useModal.d.ts +0 -15
- package/dist/runtime/composables/useModal.js +0 -52
- package/dist/shared/ui.d1728164.mjs +0 -4
- package/dist/shared/ui.d1728164.mjs.map +0 -1
- /package/dist/runtime/theme/{toaster.d.ts → toast-provider.d.ts} +0 -0
- /package/dist/runtime/theme/{toaster.js → toast-provider.js} +0 -0
- /package/dist/runtime/{composables/defineInjection.d.ts → utils/vue.d.ts} +0 -0
- /package/dist/runtime/{composables/defineInjection.js → utils/vue.js} +0 -0
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export { default as accordion } from "./accordion.js";
|
|
2
2
|
export { default as alert } from "./alert.js";
|
|
3
3
|
export { default as app } from "./app.js";
|
|
4
|
+
export { default as avatar } from "./avatar.js";
|
|
5
|
+
export { default as avatarGroup } from "./avatar-group.js";
|
|
4
6
|
export { default as badge } from "./badge.js";
|
|
7
|
+
export { default as breadcrumb } from "./breadcrumb.js";
|
|
5
8
|
export { default as button } from "./button.js";
|
|
6
9
|
export { default as buttonGroup } from "./button-group.js";
|
|
10
|
+
export { default as calendar } from "./calendar.js";
|
|
7
11
|
export { default as card } from "./card.js";
|
|
8
12
|
export { default as carousel } from "./carousel.js";
|
|
9
13
|
export { default as checkbox } from "./checkbox.js";
|
|
@@ -12,20 +16,23 @@ export { default as collapsible } from "./collapsible.js";
|
|
|
12
16
|
export { default as drawer } from "./drawer.js";
|
|
13
17
|
export { default as input } from "./input.js";
|
|
14
18
|
export { default as inputNumber } from "./input-number.js";
|
|
19
|
+
export { default as kbd } from "./kbd.js";
|
|
15
20
|
export { default as link } from "./link.js";
|
|
16
21
|
export { default as modal } from "./modal.js";
|
|
17
22
|
export { default as pagination } from "./pagination.js";
|
|
18
23
|
export { default as pinInput } from "./pinInput.js";
|
|
19
24
|
export { default as popover } from "./popover.js";
|
|
25
|
+
export { default as progress } from "./progress.js";
|
|
20
26
|
export { default as radioGroup } from "./radio-group.js";
|
|
21
27
|
export { default as scrollArea } from "./scroll-area.js";
|
|
22
28
|
export { default as select } from "./select.js";
|
|
23
29
|
export { default as separator } from "./separator.js";
|
|
30
|
+
export { default as skeleton } from "./skeleton.js";
|
|
24
31
|
export { default as slider } from "./slider.js";
|
|
25
32
|
export { default as switch } from "./switch.js";
|
|
26
33
|
export { default as table } from "./table.js";
|
|
27
34
|
export { default as tabs } from "./tabs.js";
|
|
28
35
|
export { default as textarea } from "./textarea.js";
|
|
29
36
|
export { default as toast } from "./toast.js";
|
|
30
|
-
export { default as
|
|
37
|
+
export { default as toastProvider } from "./toast-provider.js";
|
|
31
38
|
export { default as tooltip } from "./tooltip.js";
|
|
@@ -58,6 +58,9 @@ declare const _default: {
|
|
|
58
58
|
decrement: string;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
+
underline: {
|
|
62
|
+
true: "";
|
|
63
|
+
};
|
|
61
64
|
highlight: {
|
|
62
65
|
true: {
|
|
63
66
|
base: string;
|
|
@@ -116,6 +119,9 @@ declare const _default: {
|
|
|
116
119
|
decrement: string;
|
|
117
120
|
};
|
|
118
121
|
};
|
|
122
|
+
underline: {
|
|
123
|
+
true: "";
|
|
124
|
+
};
|
|
119
125
|
highlight: {
|
|
120
126
|
true: {
|
|
121
127
|
base: string;
|
|
@@ -6,12 +6,12 @@ export default ct(
|
|
|
6
6
|
slots: {
|
|
7
7
|
base: "relative inline-flex items-center rounded-ui-base transition-colors aria-disabled:opacity-50",
|
|
8
8
|
input: [
|
|
9
|
-
"w-full color-inherit bg-transparent border-0 placeholder:color-ui-
|
|
9
|
+
"w-full color-inherit bg-transparent border-0 placeholder:color-ui-base/50",
|
|
10
10
|
"focus:outline-none",
|
|
11
11
|
"disabled:cursor-not-allowed"
|
|
12
12
|
],
|
|
13
|
-
increment: "absolute flex items-center",
|
|
14
|
-
decrement: "absolute flex items-center"
|
|
13
|
+
increment: "absolute flex items-center ui-base",
|
|
14
|
+
decrement: "absolute flex items-center ui-base"
|
|
15
15
|
},
|
|
16
16
|
variants: {
|
|
17
17
|
size: {
|
|
@@ -37,6 +37,9 @@ export default ct(
|
|
|
37
37
|
decrement: "bottom-0 end-0 pe-0.5 [&>button]:py-0 scale-80"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
+
underline: {
|
|
41
|
+
true: ""
|
|
42
|
+
},
|
|
40
43
|
highlight: {
|
|
41
44
|
true: {
|
|
42
45
|
base: "ring ring-inset ring-ui-fill"
|
|
@@ -3,10 +3,10 @@ declare const _default: {
|
|
|
3
3
|
slots: {
|
|
4
4
|
base: string;
|
|
5
5
|
input: string[];
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
leading: string;
|
|
7
|
+
leadingIcon: string;
|
|
8
|
+
trailing: string;
|
|
9
|
+
trailingIcon: string;
|
|
10
10
|
};
|
|
11
11
|
variants: {
|
|
12
12
|
size: {
|
|
@@ -43,10 +43,10 @@ declare const _default: {
|
|
|
43
43
|
base: string;
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
leading: {
|
|
47
47
|
true: "";
|
|
48
48
|
};
|
|
49
|
-
|
|
49
|
+
trailing: {
|
|
50
50
|
true: "";
|
|
51
51
|
};
|
|
52
52
|
loading: {
|
|
@@ -107,10 +107,10 @@ declare const _default: {
|
|
|
107
107
|
base: string;
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
|
-
|
|
110
|
+
leading: {
|
|
111
111
|
true: "";
|
|
112
112
|
};
|
|
113
|
-
|
|
113
|
+
trailing: {
|
|
114
114
|
true: "";
|
|
115
115
|
};
|
|
116
116
|
loading: {
|
|
@@ -138,10 +138,10 @@ declare const _default: {
|
|
|
138
138
|
}, {
|
|
139
139
|
base: string;
|
|
140
140
|
input: string[];
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
leading: string;
|
|
142
|
+
leadingIcon: string;
|
|
143
|
+
trailing: string;
|
|
144
|
+
trailingIcon: string;
|
|
145
145
|
}, undefined>;
|
|
146
146
|
defaultVariants: {
|
|
147
147
|
size: "md";
|
|
@@ -6,14 +6,14 @@ export default ct(
|
|
|
6
6
|
slots: {
|
|
7
7
|
base: "inline-flex items-center rounded-ui-base transition-colors aria-disabled:opacity-50",
|
|
8
8
|
input: [
|
|
9
|
-
"w-full color-inherit bg-transparent border-0 placeholder:color-ui-
|
|
9
|
+
"w-full color-inherit bg-transparent border-0 placeholder:color-ui-base/50",
|
|
10
10
|
"focus:outline-none",
|
|
11
11
|
"disabled:cursor-not-allowed"
|
|
12
12
|
],
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
leading: "flex items-center",
|
|
14
|
+
leadingIcon: "shrink-0 size-1.25em",
|
|
15
|
+
trailing: "flex items-center",
|
|
16
|
+
trailingIcon: "shrink-0 size-1.25em"
|
|
17
17
|
},
|
|
18
18
|
variants: {
|
|
19
19
|
...buttonGroupVariant,
|
|
@@ -37,40 +37,40 @@ export default ct(
|
|
|
37
37
|
variant: {
|
|
38
38
|
"outline": {
|
|
39
39
|
base: [
|
|
40
|
-
"color-ui-
|
|
41
|
-
"focus-within:ring-2 focus-within:ring-ui-
|
|
42
|
-
"aria-disabled:ring-ui-
|
|
40
|
+
"color-ui-base/80 bg-ui-base ring ring-inset ring-ui-base/30",
|
|
41
|
+
"focus-within:ring-2 focus-within:ring-ui-base/50 hover:focus-within:ring-ui-base/50",
|
|
42
|
+
"aria-disabled:ring-ui-base/20 hover:aria-disabled:ring-ui-base/20"
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
45
|
"soft": {
|
|
46
46
|
base: [
|
|
47
|
-
"color-ui-
|
|
48
|
-
"hover:bg-soft-ui-cb/6 hover:color-ui-
|
|
49
|
-
"aria-disabled:color-ui-
|
|
47
|
+
"color-ui-base/80 bg-soft-ui-cb/4",
|
|
48
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 hover:focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85 hover:focus-within:color-ui-base/85",
|
|
49
|
+
"aria-disabled:color-ui-base/80 aria-disabled:bg-soft-ui-cb/5 hover:aria-disabled:color-ui-base/80 hover:aria-disabled:bg-soft-ui-cb/5"
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
"soft-outline": {
|
|
53
53
|
base: [
|
|
54
|
-
"color-ui-
|
|
55
|
-
"hover:bg-soft-ui-cb/6 hover:color-ui-
|
|
56
|
-
"aria-disabled:color-ui-
|
|
54
|
+
"color-ui-base/80 bg-soft-ui-cb/4 ring ring-inset ring-ui-base/30",
|
|
55
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 hover:focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85 hover:focus-within:color-ui-base/85",
|
|
56
|
+
"aria-disabled:color-ui-base/80 aria-disabled:bg-soft-ui-cb/5 hover:aria-disabled:color-ui-base/80 hover:aria-disabled:bg-soft-ui-cb/5"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
"ghost": {
|
|
60
60
|
base: [
|
|
61
|
-
"color-ui-
|
|
62
|
-
"hover:bg-soft-ui-cb/6 hover:color-ui-
|
|
61
|
+
"color-ui-base/80 bg-transparent",
|
|
62
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 hover:focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85 hover:focus-within:color-ui-base/85",
|
|
63
63
|
"aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
"none": {
|
|
67
|
-
base: "color-ui-
|
|
67
|
+
base: "color-ui-base bg-transparent"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
|
|
70
|
+
leading: {
|
|
71
71
|
true: ""
|
|
72
72
|
},
|
|
73
|
-
|
|
73
|
+
trailing: {
|
|
74
74
|
true: ""
|
|
75
75
|
},
|
|
76
76
|
loading: {
|
|
@@ -84,7 +84,7 @@ export default ct(
|
|
|
84
84
|
},
|
|
85
85
|
type: {
|
|
86
86
|
file: {
|
|
87
|
-
input: "
|
|
87
|
+
input: "leading-normal not-disabled:cursor-pointer file:pointer-events-none file:py-0 file:font-size-0.875em file:rounded-ui-button file:border-none file:color-ui-cx file:bg-soft-ui-cb/80"
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
},
|
|
@@ -118,7 +118,7 @@ export default ct(
|
|
|
118
118
|
variant: ["soft", "soft-outline", "ghost", "none"],
|
|
119
119
|
highlight: true,
|
|
120
120
|
class: {
|
|
121
|
-
base: "ring ring-inset ring-ui-fill/80"
|
|
121
|
+
base: "ring ring-inset ring-ui-fill/80 focus-within:ring-ui-fill/80"
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
{
|
|
@@ -130,17 +130,17 @@ export default ct(
|
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
loading: true,
|
|
133
|
-
|
|
133
|
+
leading: true,
|
|
134
134
|
class: {
|
|
135
|
-
|
|
135
|
+
leadingIcon: "animate-spin"
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
loading: true,
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
leading: false,
|
|
141
|
+
trailing: true,
|
|
142
142
|
class: {
|
|
143
|
-
|
|
143
|
+
trailingIcon: "animate-spin"
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
],
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: string;
|
|
3
|
+
slots: undefined;
|
|
4
|
+
variants: {
|
|
5
|
+
variant: {
|
|
6
|
+
solid: "color-ui-cx bg-soft-ui-fill/90";
|
|
7
|
+
outline: "color-ui-fill ring bg-ui-base/90 ring-inset ring-ui-fill/30";
|
|
8
|
+
soft: "color-ui-fill/80 bg-soft-ui-fill/20";
|
|
9
|
+
'soft-outline': "color-ui-fill/80 bg-soft-ui-fill/20 ring ring-inset ring-ui-fill/30";
|
|
10
|
+
};
|
|
11
|
+
size: {
|
|
12
|
+
xs: "text-xs";
|
|
13
|
+
sm: "text-sm";
|
|
14
|
+
md: "text-base";
|
|
15
|
+
lg: "text-lg";
|
|
16
|
+
xl: "text-xl";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
20
|
+
variant: {
|
|
21
|
+
solid: "color-ui-cx bg-soft-ui-fill/90";
|
|
22
|
+
outline: "color-ui-fill ring bg-ui-base/90 ring-inset ring-ui-fill/30";
|
|
23
|
+
soft: "color-ui-fill/80 bg-soft-ui-fill/20";
|
|
24
|
+
'soft-outline': "color-ui-fill/80 bg-soft-ui-fill/20 ring ring-inset ring-ui-fill/30";
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
xs: "text-xs";
|
|
28
|
+
sm: "text-sm";
|
|
29
|
+
md: "text-base";
|
|
30
|
+
lg: "text-lg";
|
|
31
|
+
xl: "text-xl";
|
|
32
|
+
};
|
|
33
|
+
}, undefined, "inline-flex items-center justify-center px-0.25em rounded-ui-base leading-normal min-w-1.5em font-medium font-sans select-none">;
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
variant: "outline";
|
|
36
|
+
size: "md";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
base: "inline-flex items-center justify-center px-0.25em rounded-ui-base leading-normal min-w-1.5em font-medium font-sans select-none",
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
"solid": "color-ui-cx bg-soft-ui-fill/90",
|
|
9
|
+
"outline": "color-ui-fill ring bg-ui-base/90 ring-inset ring-ui-fill/30",
|
|
10
|
+
"soft": "color-ui-fill/80 bg-soft-ui-fill/20",
|
|
11
|
+
"soft-outline": "color-ui-fill/80 bg-soft-ui-fill/20 ring ring-inset ring-ui-fill/30"
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
xs: "text-xs",
|
|
15
|
+
sm: "text-sm",
|
|
16
|
+
md: "text-base",
|
|
17
|
+
lg: "text-lg",
|
|
18
|
+
xl: "text-xl"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {
|
|
22
|
+
variant: "outline",
|
|
23
|
+
size: "md"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
);
|
|
@@ -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: {
|
|
@@ -3,13 +3,13 @@ export default ct(
|
|
|
3
3
|
/* @unocss-include */
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
|
-
overlay: "fixed inset-0 bg-black/40",
|
|
7
|
-
content: "fixed bg-ui-
|
|
6
|
+
overlay: "fixed z-1 inset-0 bg-black/40",
|
|
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
|
);
|
|
@@ -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/80 hover:aria-disabled:ring-ui-base/80"
|
|
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: {
|
|
@@ -4,7 +4,7 @@ export default ct(
|
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
6
|
content: [
|
|
7
|
-
"color-ui-base bg-ui-base shadow-lg rounded-ui-box ring ring-ui-base/10",
|
|
7
|
+
"z-1 color-ui-base bg-ui-base shadow-lg rounded-ui-box ring ring-ui-base/10",
|
|
8
8
|
"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none pointer-events-auto"
|
|
9
9
|
],
|
|
10
10
|
arrow: "fill-ui-base stroke-ui-cb/10"
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
root: string;
|
|
6
|
+
indicator: string;
|
|
7
|
+
status: string;
|
|
8
|
+
steps: string;
|
|
9
|
+
step: string;
|
|
10
|
+
};
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
xs: {
|
|
14
|
+
wrapper: string;
|
|
15
|
+
};
|
|
16
|
+
sm: {
|
|
17
|
+
wrapper: string;
|
|
18
|
+
};
|
|
19
|
+
md: {
|
|
20
|
+
wrapper: string;
|
|
21
|
+
};
|
|
22
|
+
lg: {
|
|
23
|
+
wrapper: string;
|
|
24
|
+
};
|
|
25
|
+
xl: {
|
|
26
|
+
wrapper: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
step: {
|
|
30
|
+
active: {
|
|
31
|
+
step: string;
|
|
32
|
+
};
|
|
33
|
+
first: {
|
|
34
|
+
step: string;
|
|
35
|
+
};
|
|
36
|
+
other: {
|
|
37
|
+
step: string;
|
|
38
|
+
};
|
|
39
|
+
last: {
|
|
40
|
+
step: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
orientation: {
|
|
44
|
+
horizontal: {
|
|
45
|
+
wrapper: string;
|
|
46
|
+
root: string;
|
|
47
|
+
status: string;
|
|
48
|
+
};
|
|
49
|
+
vertical: {
|
|
50
|
+
wrapper: string;
|
|
51
|
+
root: string;
|
|
52
|
+
status: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
inverted: {
|
|
56
|
+
true: {
|
|
57
|
+
status: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
62
|
+
size: {
|
|
63
|
+
xs: {
|
|
64
|
+
wrapper: string;
|
|
65
|
+
};
|
|
66
|
+
sm: {
|
|
67
|
+
wrapper: string;
|
|
68
|
+
};
|
|
69
|
+
md: {
|
|
70
|
+
wrapper: string;
|
|
71
|
+
};
|
|
72
|
+
lg: {
|
|
73
|
+
wrapper: string;
|
|
74
|
+
};
|
|
75
|
+
xl: {
|
|
76
|
+
wrapper: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
step: {
|
|
80
|
+
active: {
|
|
81
|
+
step: string;
|
|
82
|
+
};
|
|
83
|
+
first: {
|
|
84
|
+
step: string;
|
|
85
|
+
};
|
|
86
|
+
other: {
|
|
87
|
+
step: string;
|
|
88
|
+
};
|
|
89
|
+
last: {
|
|
90
|
+
step: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
orientation: {
|
|
94
|
+
horizontal: {
|
|
95
|
+
wrapper: string;
|
|
96
|
+
root: string;
|
|
97
|
+
status: string;
|
|
98
|
+
};
|
|
99
|
+
vertical: {
|
|
100
|
+
wrapper: string;
|
|
101
|
+
root: string;
|
|
102
|
+
status: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
inverted: {
|
|
106
|
+
true: {
|
|
107
|
+
status: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
wrapper: string;
|
|
112
|
+
root: string;
|
|
113
|
+
indicator: string;
|
|
114
|
+
status: string;
|
|
115
|
+
steps: string;
|
|
116
|
+
step: string;
|
|
117
|
+
}, undefined>;
|
|
118
|
+
defaultVariants: {
|
|
119
|
+
size: "md";
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
export default _default;
|