@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
|
@@ -3,8 +3,8 @@ declare const _default: {
|
|
|
3
3
|
slots: {
|
|
4
4
|
base: string[];
|
|
5
5
|
label: string;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
leadingIcon: string;
|
|
7
|
+
trailingIcon: string;
|
|
8
8
|
};
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -47,10 +47,10 @@ declare const _default: {
|
|
|
47
47
|
active: {
|
|
48
48
|
true: "";
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
leading: {
|
|
51
51
|
true: "";
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
trailing: {
|
|
54
54
|
true: "";
|
|
55
55
|
};
|
|
56
56
|
loading: {
|
|
@@ -106,10 +106,10 @@ declare const _default: {
|
|
|
106
106
|
active: {
|
|
107
107
|
true: "";
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
leading: {
|
|
110
110
|
true: "";
|
|
111
111
|
};
|
|
112
|
-
|
|
112
|
+
trailing: {
|
|
113
113
|
true: "";
|
|
114
114
|
};
|
|
115
115
|
loading: {
|
|
@@ -126,8 +126,8 @@ declare const _default: {
|
|
|
126
126
|
}, {
|
|
127
127
|
base: string[];
|
|
128
128
|
label: string;
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
leadingIcon: string;
|
|
130
|
+
trailingIcon: string;
|
|
131
131
|
}, undefined>;
|
|
132
132
|
defaultVariants: {
|
|
133
133
|
size: "md";
|
|
@@ -6,12 +6,12 @@ export default ct(
|
|
|
6
6
|
slots: {
|
|
7
7
|
base: [
|
|
8
8
|
"relative inline-flex items-center rounded-ui-button leading-normal transition-colors",
|
|
9
|
-
"outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-
|
|
9
|
+
"outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-base/80",
|
|
10
10
|
"disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:opacity-50"
|
|
11
11
|
],
|
|
12
12
|
label: "color-inherit",
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
leadingIcon: "shrink-0 size-1.5em not-only-child:ml-0.5",
|
|
14
|
+
trailingIcon: "shrink-0 size-1.5em not-only-child:mr-0.5"
|
|
15
15
|
},
|
|
16
16
|
variants: {
|
|
17
17
|
...buttonGroupVariant,
|
|
@@ -26,26 +26,26 @@ export default ct(
|
|
|
26
26
|
},
|
|
27
27
|
"outline": {
|
|
28
28
|
base: [
|
|
29
|
-
"color-ui-fill/80 bg-ui-
|
|
29
|
+
"color-ui-fill/80 bg-ui-base ring ring-inset ring-ui-fill/30",
|
|
30
30
|
"hover:bg-soft-ui-fill/5 active:bg-soft-ui-fill/10",
|
|
31
|
-
"disabled:bg-ui-
|
|
32
|
-
"hover:disabled:bg-ui-
|
|
31
|
+
"disabled:bg-ui-base aria-disabled:bg-ui-base",
|
|
32
|
+
"hover:disabled:bg-ui-base hover:aria-disabled:bg-ui-base"
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"soft": {
|
|
36
36
|
base: [
|
|
37
|
-
"color-ui-
|
|
38
|
-
"hover:bg-soft-ui-fill/10 hover:color-ui-
|
|
39
|
-
"disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-
|
|
40
|
-
"hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-
|
|
37
|
+
"color-ui-fill/80 bg-soft-ui-fill/15",
|
|
38
|
+
"hover:bg-soft-ui-fill/10 hover:color-ui-fill/80 active:bg-soft-ui-fill/25 active:color-ui-fill/90",
|
|
39
|
+
"disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80",
|
|
40
|
+
"hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-fill/80 hover:aria-disabled:color-ui-fill/80"
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"soft-outline": {
|
|
44
44
|
base: [
|
|
45
|
-
"color-ui-
|
|
46
|
-
"hover:bg-soft-ui-fill/10 hover:color-ui-
|
|
47
|
-
"disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-
|
|
48
|
-
"hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-
|
|
45
|
+
"color-ui-fill/80 bg-soft-ui-fill/15 ring ring-inset ring-ui-fill/30",
|
|
46
|
+
"hover:bg-soft-ui-fill/10 hover:color-ui-fill/80 active:bg-soft-ui-fill/25 active:color-ui-fill/90",
|
|
47
|
+
"disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80",
|
|
48
|
+
"hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-fill/80 hover:aria-disabled:color-ui-fill/80"
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"ghost": {
|
|
@@ -85,10 +85,10 @@ export default ct(
|
|
|
85
85
|
active: {
|
|
86
86
|
true: ""
|
|
87
87
|
},
|
|
88
|
-
|
|
88
|
+
leading: {
|
|
89
89
|
true: ""
|
|
90
90
|
},
|
|
91
|
-
|
|
91
|
+
trailing: {
|
|
92
92
|
true: ""
|
|
93
93
|
},
|
|
94
94
|
loading: {
|
|
@@ -128,7 +128,7 @@ export default ct(
|
|
|
128
128
|
active: true,
|
|
129
129
|
variant: ["soft", "soft-outline"],
|
|
130
130
|
class: {
|
|
131
|
-
base: "color-ui-
|
|
131
|
+
base: "color-ui-fill/90 bg-soft-ui-fill/25 hover:color-ui-fill/90 hover:bg-soft-ui-fill/25"
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
{
|
|
@@ -147,14 +147,14 @@ export default ct(
|
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
loading: true,
|
|
150
|
-
|
|
151
|
-
class: {
|
|
150
|
+
leading: true,
|
|
151
|
+
class: { leadingIcon: "animate-spin" }
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
loading: true,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
class: {
|
|
155
|
+
leading: false,
|
|
156
|
+
trailing: true,
|
|
157
|
+
class: { trailingIcon: "animate-spin" }
|
|
158
158
|
}
|
|
159
159
|
],
|
|
160
160
|
defaultVariants: {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
header: string;
|
|
6
|
+
body: string;
|
|
7
|
+
heading: string;
|
|
8
|
+
grid: string;
|
|
9
|
+
gridRow: string;
|
|
10
|
+
gridWeekDaysRow: string;
|
|
11
|
+
gridBody: string;
|
|
12
|
+
headCell: string;
|
|
13
|
+
cell: string;
|
|
14
|
+
cellTrigger: string[];
|
|
15
|
+
};
|
|
16
|
+
variants: {
|
|
17
|
+
size: {
|
|
18
|
+
xs: {
|
|
19
|
+
root: string;
|
|
20
|
+
};
|
|
21
|
+
sm: {
|
|
22
|
+
root: string;
|
|
23
|
+
};
|
|
24
|
+
md: {
|
|
25
|
+
root: string;
|
|
26
|
+
};
|
|
27
|
+
lg: {
|
|
28
|
+
root: string;
|
|
29
|
+
};
|
|
30
|
+
xl: {
|
|
31
|
+
root: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly: {
|
|
35
|
+
true: {
|
|
36
|
+
cellTrigger: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
disabled: {
|
|
40
|
+
true: {
|
|
41
|
+
cellTrigger: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
compoundVariants: {
|
|
46
|
+
readonly: boolean;
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
class: {
|
|
49
|
+
cellTrigger: string;
|
|
50
|
+
};
|
|
51
|
+
}[];
|
|
52
|
+
defaultVariants: {
|
|
53
|
+
size: "md";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "",
|
|
7
|
+
header: "flex items-center justify-between",
|
|
8
|
+
body: "flex flex-col space-y-4 pt-4 sm:flex-row sm:space-x-4 sm:space-y-0",
|
|
9
|
+
heading: "text-center font-medium truncate mx-auto",
|
|
10
|
+
grid: "w-full border-collapse select-none space-y-1 focus:outline-none",
|
|
11
|
+
gridRow: "grid gap-1 grid-cols-7",
|
|
12
|
+
gridWeekDaysRow: "mb-1 grid gap-1 w-full grid-cols-7",
|
|
13
|
+
gridBody: "grid",
|
|
14
|
+
headCell: "rounded-ui-base color-ui-fill",
|
|
15
|
+
cell: "relative text-center color-ui-base/80",
|
|
16
|
+
cellTrigger: [
|
|
17
|
+
"relative size-2.25em flex items-center justify-center rounded-ui-button whitespace-nowrap transition",
|
|
18
|
+
"focus-visible:ring-2 focus-visible:ring-ui-base/90 focus:outline-none",
|
|
19
|
+
"data-[disabled]:color-ui-base/50 data-[disabled]:cursor-not-allowed",
|
|
20
|
+
"data-[unavailable]:line-through data-[unavailable]:color-ui-base/50 data-[unavailable]:cursor-not-allowed",
|
|
21
|
+
"data-[selected]:color-ui-cx data-[selected]:bg-soft-ui-fill/95",
|
|
22
|
+
"data-[today]:font-semibold data-[today]:not-[[data-selected]]:color-ui-fill/95",
|
|
23
|
+
"data-[highlighted]:bg-soft-ui-fill/20",
|
|
24
|
+
"data-[outside-view]:color-ui-base/20"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
variants: {
|
|
28
|
+
size: {
|
|
29
|
+
xs: {
|
|
30
|
+
root: "text-xs"
|
|
31
|
+
},
|
|
32
|
+
sm: {
|
|
33
|
+
root: "text-sm"
|
|
34
|
+
},
|
|
35
|
+
md: {
|
|
36
|
+
root: "text-base"
|
|
37
|
+
},
|
|
38
|
+
lg: {
|
|
39
|
+
root: "text-lg"
|
|
40
|
+
},
|
|
41
|
+
xl: {
|
|
42
|
+
root: "text-xl"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
readonly: {
|
|
46
|
+
true: {
|
|
47
|
+
cellTrigger: "cursor-default data-[today]:not-[[data-selected]]:color-ui-fill/60"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
disabled: {
|
|
51
|
+
true: {
|
|
52
|
+
cellTrigger: "data-[today]:not-[[data-selected]]:color-ui-fill/60 data-[selected]:bg-soft-ui-fill/50"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
compoundVariants: [
|
|
57
|
+
{
|
|
58
|
+
readonly: false,
|
|
59
|
+
disabled: false,
|
|
60
|
+
class: {
|
|
61
|
+
cellTrigger: "hover:not-[[data-selected],[data-disabled],[data-unavailable]]:bg-soft-ui-fill/10"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
defaultVariants: {
|
|
66
|
+
size: "md"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
);
|
|
@@ -17,16 +17,16 @@ export default ct(
|
|
|
17
17
|
description: "color-ui-cx/80"
|
|
18
18
|
},
|
|
19
19
|
"outline": {
|
|
20
|
-
root: "color-ui-
|
|
21
|
-
description: "color-ui-
|
|
20
|
+
root: "color-ui-fill bg-ui-base divide-ui-fill/20 ring ring-inset ring-ui-fill/20",
|
|
21
|
+
description: "color-ui-fill/80"
|
|
22
22
|
},
|
|
23
23
|
"soft": {
|
|
24
|
-
root: "color-ui-
|
|
25
|
-
description: "color-ui-
|
|
24
|
+
root: "color-ui-fill bg-soft-ui-fill/10 divide-ui-fill/20",
|
|
25
|
+
description: "color-ui-fill/80"
|
|
26
26
|
},
|
|
27
27
|
"soft-outline": {
|
|
28
|
-
root: "color-ui-
|
|
29
|
-
description: "color-ui-
|
|
28
|
+
root: "color-ui-fill bg-soft-ui-fill/10 divide-ui-fill/20 ring ring-inset ring-ui-fill/20",
|
|
29
|
+
description: "color-ui-fill/80"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
},
|
|
@@ -5,15 +5,15 @@ export default ct(
|
|
|
5
5
|
slots: {
|
|
6
6
|
root: "relative flex items-start",
|
|
7
7
|
base: [
|
|
8
|
-
"size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-cx ring-2 ring-ui-
|
|
9
|
-
"outline-none focus-visible:outline-ui-
|
|
10
|
-
"aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-
|
|
8
|
+
"size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-cx ring-2 ring-ui-fill ring-inset bg-ui-fill",
|
|
9
|
+
"outline-none focus-visible:outline-ui-base/80 focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
10
|
+
"aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-base aria-[checked=false]:bg-ui-base"
|
|
11
11
|
],
|
|
12
12
|
container: "flex items-center h-1.25em overflow-hidden",
|
|
13
13
|
wrapper: "text-inherit ms-2",
|
|
14
14
|
icon: "color-ui-cx shrink-0 size-1em transition data-[state=unchecked]:translate-y-full",
|
|
15
|
-
label: "flex color-ui-
|
|
16
|
-
description: "color-ui-
|
|
15
|
+
label: "flex color-ui-base after:content-empty",
|
|
16
|
+
description: "color-ui-base/60"
|
|
17
17
|
},
|
|
18
18
|
variants: {
|
|
19
19
|
size: {
|
|
@@ -3,8 +3,8 @@ declare const _default: {
|
|
|
3
3
|
slots: {
|
|
4
4
|
base: string;
|
|
5
5
|
label: string;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
leadingIcon: string;
|
|
7
|
+
trailingIcon: string;
|
|
8
8
|
};
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -90,8 +90,8 @@ declare const _default: {
|
|
|
90
90
|
}, {
|
|
91
91
|
base: string;
|
|
92
92
|
label: string;
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
leadingIcon: string;
|
|
94
|
+
trailingIcon: string;
|
|
95
95
|
}, undefined>;
|
|
96
96
|
defaultVariants: {
|
|
97
97
|
size: "md";
|
|
@@ -6,8 +6,8 @@ export default ct(
|
|
|
6
6
|
slots: {
|
|
7
7
|
base: "inline-flex items-center rounded-ui-base leading-normal transition-colors",
|
|
8
8
|
label: "",
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
leadingIcon: "shrink-0 size-1.5em not-only-child:ml-1.5",
|
|
10
|
+
trailingIcon: "shrink-0 size-1.5em not-only-child:mr-1.5"
|
|
11
11
|
},
|
|
12
12
|
variants: {
|
|
13
13
|
...buttonGroupVariant,
|
|
@@ -16,13 +16,13 @@ export default ct(
|
|
|
16
16
|
base: "color-ui-cx bg-soft-ui-fill/90"
|
|
17
17
|
},
|
|
18
18
|
"outline": {
|
|
19
|
-
base: "color-ui-fill bg-ui-
|
|
19
|
+
base: "color-ui-fill bg-ui-base ring ring-inset ring-ui-fill/30"
|
|
20
20
|
},
|
|
21
21
|
"soft": {
|
|
22
|
-
base: "color-ui-
|
|
22
|
+
base: "color-ui-fill/80 bg-soft-ui-fill/10"
|
|
23
23
|
},
|
|
24
24
|
"soft-outline": {
|
|
25
|
-
base: "color-ui-
|
|
25
|
+
base: "color-ui-fill/80 bg-soft-ui-fill/10 ring ring-inset ring-ui-fill/30"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
size: {
|
|
@@ -3,31 +3,32 @@ declare const _default: {
|
|
|
3
3
|
slots: {
|
|
4
4
|
overlay: string;
|
|
5
5
|
content: string;
|
|
6
|
-
handle: string;
|
|
7
6
|
container: string;
|
|
8
7
|
header: string;
|
|
9
|
-
title: string;
|
|
10
|
-
description: string;
|
|
11
8
|
body: string;
|
|
12
9
|
footer: string;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
close: string;
|
|
13
13
|
};
|
|
14
14
|
variants: {
|
|
15
15
|
direction: {
|
|
16
16
|
top: {
|
|
17
17
|
content: string;
|
|
18
|
-
handle: string;
|
|
19
18
|
};
|
|
20
19
|
bottom: {
|
|
21
20
|
content: string;
|
|
22
|
-
handle: string;
|
|
23
21
|
};
|
|
24
22
|
left: {
|
|
25
23
|
content: string;
|
|
26
|
-
handle: string;
|
|
27
24
|
};
|
|
28
25
|
right: {
|
|
29
26
|
content: string;
|
|
30
|
-
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
transition: {
|
|
30
|
+
true: {
|
|
31
|
+
overlay: string;
|
|
31
32
|
};
|
|
32
33
|
};
|
|
33
34
|
inset: {
|
|
@@ -40,19 +41,20 @@ declare const _default: {
|
|
|
40
41
|
direction: {
|
|
41
42
|
top: {
|
|
42
43
|
content: string;
|
|
43
|
-
handle: string;
|
|
44
44
|
};
|
|
45
45
|
bottom: {
|
|
46
46
|
content: string;
|
|
47
|
-
handle: string;
|
|
48
47
|
};
|
|
49
48
|
left: {
|
|
50
49
|
content: string;
|
|
51
|
-
handle: string;
|
|
52
50
|
};
|
|
53
51
|
right: {
|
|
54
52
|
content: string;
|
|
55
|
-
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
transition: {
|
|
56
|
+
true: {
|
|
57
|
+
overlay: string;
|
|
56
58
|
};
|
|
57
59
|
};
|
|
58
60
|
inset: {
|
|
@@ -63,31 +65,32 @@ declare const _default: {
|
|
|
63
65
|
}, {
|
|
64
66
|
overlay: string;
|
|
65
67
|
content: string;
|
|
66
|
-
handle: string;
|
|
67
68
|
container: string;
|
|
68
69
|
header: string;
|
|
69
|
-
title: string;
|
|
70
|
-
description: string;
|
|
71
70
|
body: string;
|
|
72
71
|
footer: string;
|
|
72
|
+
title: string;
|
|
73
|
+
description: string;
|
|
74
|
+
close: string;
|
|
73
75
|
}, undefined>;
|
|
74
76
|
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
75
77
|
direction: {
|
|
76
78
|
top: {
|
|
77
79
|
content: string;
|
|
78
|
-
handle: string;
|
|
79
80
|
};
|
|
80
81
|
bottom: {
|
|
81
82
|
content: string;
|
|
82
|
-
handle: string;
|
|
83
83
|
};
|
|
84
84
|
left: {
|
|
85
85
|
content: string;
|
|
86
|
-
handle: string;
|
|
87
86
|
};
|
|
88
87
|
right: {
|
|
89
88
|
content: string;
|
|
90
|
-
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
transition: {
|
|
92
|
+
true: {
|
|
93
|
+
overlay: string;
|
|
91
94
|
};
|
|
92
95
|
};
|
|
93
96
|
inset: {
|
|
@@ -98,13 +101,13 @@ declare const _default: {
|
|
|
98
101
|
}, {
|
|
99
102
|
overlay: string;
|
|
100
103
|
content: string;
|
|
101
|
-
handle: string;
|
|
102
104
|
container: string;
|
|
103
105
|
header: string;
|
|
104
|
-
title: string;
|
|
105
|
-
description: string;
|
|
106
106
|
body: string;
|
|
107
107
|
footer: string;
|
|
108
|
+
title: string;
|
|
109
|
+
description: string;
|
|
110
|
+
close: string;
|
|
108
111
|
}>;
|
|
109
112
|
};
|
|
110
113
|
export default _default;
|
|
@@ -3,33 +3,34 @@ 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-
|
|
8
|
-
handle: "shrink-0 rounded-full bg-soft-ui-cb/17.5",
|
|
6
|
+
overlay: "fixed z-1 inset-0 bg-black/40",
|
|
7
|
+
content: "fixed z-1 bg-ui-base ring ring-ui-base/5 flex focus:outline-none",
|
|
9
8
|
container: "w-full flex flex-col overflow-hidden overflow-y-auto",
|
|
10
|
-
header: "
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
header: "flex flex-wrap items-center gap-1 px-4 py-5 pb-0 sm:px-6",
|
|
10
|
+
body: "flex-1 overflow-y-auto p-4 sm:p-6",
|
|
11
|
+
footer: "flex items-center gap-1.5 p-4 pt-0 sm:px-6",
|
|
12
|
+
title: "flex-grow color-ui-base text-xl font-semibold",
|
|
13
|
+
description: "w-full color-ui-base/80",
|
|
14
|
+
close: "ms-auto"
|
|
15
15
|
},
|
|
16
16
|
variants: {
|
|
17
17
|
direction: {
|
|
18
18
|
top: {
|
|
19
|
-
content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box"
|
|
20
|
-
handle: "mb-4"
|
|
19
|
+
content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box"
|
|
21
20
|
},
|
|
22
21
|
bottom: {
|
|
23
|
-
content: "bottom-0 mt-24 flex-col rounded-t-ui-box"
|
|
24
|
-
handle: "mt-4"
|
|
22
|
+
content: "bottom-0 mt-24 flex-col rounded-t-ui-box"
|
|
25
23
|
},
|
|
26
24
|
left: {
|
|
27
|
-
content: "left-0 flex-row-reverse rounded-r-ui-box"
|
|
28
|
-
handle: "mr-4"
|
|
25
|
+
content: "left-0 flex-row-reverse rounded-r-ui-box"
|
|
29
26
|
},
|
|
30
27
|
right: {
|
|
31
|
-
content: "right-0 flex-row rounded-l-ui-box"
|
|
32
|
-
|
|
28
|
+
content: "right-0 flex-row rounded-l-ui-box"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
transition: {
|
|
32
|
+
true: {
|
|
33
|
+
overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
inset: {
|
|
@@ -42,15 +43,13 @@ export default ct(
|
|
|
42
43
|
{
|
|
43
44
|
direction: ["top", "bottom"],
|
|
44
45
|
class: {
|
|
45
|
-
content: "inset-x-0 h-auto max-h-[96%]"
|
|
46
|
-
handle: "w-12 h-1.5 mx-auto"
|
|
46
|
+
content: "inset-x-0 h-auto max-h-[96%]"
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
direction: ["left", "right"],
|
|
51
51
|
class: {
|
|
52
|
-
content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]"
|
|
53
|
-
handle: "h-12 w-1.5 my-auto"
|
|
52
|
+
content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]"
|
|
54
53
|
}
|
|
55
54
|
},
|
|
56
55
|
{
|
|
@@ -60,6 +59,13 @@ export default ct(
|
|
|
60
59
|
content: "inset-x-4 top-4"
|
|
61
60
|
}
|
|
62
61
|
},
|
|
62
|
+
{
|
|
63
|
+
direction: ["top"],
|
|
64
|
+
transition: true,
|
|
65
|
+
class: {
|
|
66
|
+
content: "data-[state=open]:animate-[slide-in-from-top_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-top_500ms_cubic-bezier(0.32,0.72,0,1)]"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
63
69
|
{
|
|
64
70
|
direction: ["bottom"],
|
|
65
71
|
inset: true,
|
|
@@ -67,6 +73,13 @@ export default ct(
|
|
|
67
73
|
content: "inset-x-4 bottom-4"
|
|
68
74
|
}
|
|
69
75
|
},
|
|
76
|
+
{
|
|
77
|
+
direction: ["bottom"],
|
|
78
|
+
transition: true,
|
|
79
|
+
class: {
|
|
80
|
+
content: "data-[state=open]:animate-[slide-in-from-bottom_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-bottom_500ms_cubic-bezier(0.32,0.72,0,1)]"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
70
83
|
{
|
|
71
84
|
direction: ["left"],
|
|
72
85
|
inset: true,
|
|
@@ -74,12 +87,26 @@ export default ct(
|
|
|
74
87
|
content: "inset-y-4 left-4"
|
|
75
88
|
}
|
|
76
89
|
},
|
|
90
|
+
{
|
|
91
|
+
direction: ["left"],
|
|
92
|
+
transition: true,
|
|
93
|
+
class: {
|
|
94
|
+
content: "data-[state=open]:animate-[slide-in-from-left_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-left_500ms_cubic-bezier(0.32,0.72,0,1)]"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
77
97
|
{
|
|
78
98
|
direction: ["right"],
|
|
79
99
|
inset: true,
|
|
80
100
|
class: {
|
|
81
101
|
content: "inset-y-4 right-4"
|
|
82
102
|
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
direction: ["right"],
|
|
106
|
+
transition: true,
|
|
107
|
+
class: {
|
|
108
|
+
content: "data-[state=open]:animate-[slide-in-from-right_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-right_500ms_cubic-bezier(0.32,0.72,0,1)]"
|
|
109
|
+
}
|
|
83
110
|
}
|
|
84
111
|
]
|
|
85
112
|
}
|
|
@@ -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';
|