@byyuurin/ui 0.0.6 → 0.0.8
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 +4 -5
- package/dist/module.cjs +5 -0
- package/dist/module.json +12 -0
- package/dist/{nuxt.mjs → module.mjs} +8 -8
- package/dist/module.mjs.map +1 -0
- package/dist/runtime/app/injections.d.ts +16 -0
- package/dist/runtime/app/injections.js +31 -0
- package/dist/runtime/components/Accordion.vue +27 -38
- package/dist/runtime/components/Alert.vue +23 -16
- package/dist/runtime/components/App.vue +15 -15
- package/dist/runtime/components/Avatar.vue +73 -0
- package/dist/runtime/components/AvatarGroup.vue +90 -0
- package/dist/runtime/components/Badge.vue +15 -10
- package/dist/runtime/components/Breadcrumb.vue +105 -0
- package/dist/runtime/components/Button.vue +22 -23
- package/dist/runtime/components/ButtonGroup.vue +12 -10
- package/dist/runtime/components/Card.vue +16 -8
- package/dist/runtime/components/Carousel.vue +19 -12
- package/dist/runtime/components/Checkbox.vue +16 -12
- package/dist/runtime/components/Chip.vue +17 -12
- package/dist/runtime/components/Collapsible.vue +56 -0
- package/dist/runtime/components/Drawer.vue +18 -17
- package/dist/runtime/components/Input.vue +28 -28
- package/dist/runtime/components/InputNumber.vue +169 -0
- package/dist/runtime/components/Kbd.vue +51 -0
- package/dist/runtime/components/Link.vue +301 -72
- package/dist/runtime/components/LinkBase.vue +88 -0
- package/dist/runtime/components/Modal.vue +11 -9
- package/dist/runtime/components/ModalProvider.vue +2 -1
- package/dist/runtime/components/Pagination.vue +30 -30
- package/dist/runtime/components/PinInput.vue +7 -7
- package/dist/runtime/components/Popover.vue +7 -7
- package/dist/runtime/components/Progress.vue +165 -0
- package/dist/runtime/components/RadioGroup.vue +33 -29
- package/dist/runtime/components/Select.vue +40 -40
- package/dist/runtime/components/Separator.vue +63 -0
- package/dist/runtime/components/Skeleton.vue +33 -0
- package/dist/runtime/components/Slider.vue +6 -6
- package/dist/runtime/components/Switch.vue +14 -15
- package/dist/runtime/components/Table.vue +300 -0
- package/dist/runtime/components/Tabs.vue +25 -21
- package/dist/runtime/components/Textarea.vue +11 -11
- package/dist/runtime/components/Toast.vue +15 -14
- package/dist/runtime/components/Toaster.vue +5 -39
- package/dist/runtime/components/Tooltip.vue +7 -7
- 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.mjs → useButtonGroup.js} +1 -6
- package/dist/runtime/composables/useComponentIcons.d.ts +9 -9
- package/dist/runtime/composables/useComponentIcons.js +24 -0
- 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/useModal.d.ts +2 -7
- package/dist/runtime/composables/{useModal.mjs → useModal.js} +1 -6
- package/dist/runtime/composables/useTheme.d.ts +2 -6
- package/dist/runtime/composables/useTheme.js +16 -0
- package/dist/runtime/composables/useToast.d.ts +1 -1
- package/dist/runtime/index.d.ts +40 -0
- package/dist/runtime/index.js +40 -0
- package/dist/runtime/locale/en.d.ts +2 -0
- package/dist/runtime/locale/en.js +28 -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 +28 -0
- package/dist/runtime/theme/accordion.d.ts +5 -5
- package/dist/runtime/theme/{accordion.mjs → accordion.js} +2 -2
- package/dist/runtime/theme/alert.d.ts +2 -2
- package/dist/runtime/theme/{alert.mjs → alert.js} +4 -4
- package/dist/runtime/theme/app.d.ts +8 -5
- package/dist/runtime/theme/app.js +18 -0
- 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/badge.d.ts +45 -21
- package/dist/runtime/theme/{badge.mjs → badge.js} +2 -2
- package/dist/runtime/theme/breadcrumb.d.ts +67 -0
- package/dist/runtime/theme/breadcrumb.js +44 -0
- package/dist/runtime/theme/button-group.d.ts +2 -2
- package/dist/runtime/theme/button.d.ts +61 -115
- package/dist/runtime/theme/button.js +164 -0
- package/dist/runtime/theme/card.d.ts +38 -38
- package/dist/runtime/theme/card.js +37 -0
- package/dist/runtime/theme/carousel.d.ts +2 -2
- package/dist/runtime/theme/{carousel.mjs → carousel.js} +2 -2
- package/dist/runtime/theme/checkbox.d.ts +1 -1
- package/dist/runtime/theme/{checkbox.mjs → checkbox.js} +3 -3
- package/dist/runtime/theme/chip.d.ts +47 -14
- package/dist/runtime/theme/{chip.mjs → chip.js} +7 -9
- package/dist/runtime/theme/collapsible.d.ts +38 -0
- package/dist/runtime/theme/collapsible.js +10 -0
- package/dist/runtime/theme/drawer.d.ts +43 -43
- package/dist/runtime/theme/{drawer.mjs → drawer.js} +33 -22
- package/dist/runtime/theme/index.d.ts +37 -27
- package/dist/runtime/theme/index.js +37 -0
- package/dist/runtime/theme/input-number.d.ts +141 -0
- package/dist/runtime/theme/input-number.js +95 -0
- package/dist/runtime/theme/input.d.ts +77 -105
- package/dist/runtime/theme/{input.mjs → input.js} +25 -25
- package/dist/runtime/theme/kbd.d.ts +39 -0
- package/dist/runtime/theme/kbd.js +26 -0
- package/dist/runtime/theme/link.d.ts +2 -2
- package/dist/runtime/theme/{link.mjs → link.js} +1 -1
- package/dist/runtime/theme/modal.d.ts +31 -8
- package/dist/runtime/theme/{modal.mjs → modal.js} +4 -9
- package/dist/runtime/theme/pagination.d.ts +17 -17
- package/dist/runtime/theme/pinInput.d.ts +42 -42
- package/dist/runtime/theme/{pinInput.mjs → pinInput.js} +10 -10
- package/dist/runtime/theme/popover.d.ts +8 -8
- package/dist/runtime/theme/{popover.mjs → 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 +1 -1
- package/dist/runtime/theme/{radio-group.mjs → radio-group.js} +1 -1
- package/dist/runtime/theme/scroll-area.d.ts +17 -17
- package/dist/runtime/theme/{scroll-area.mjs → scroll-area.js} +2 -2
- package/dist/runtime/theme/select.d.ts +93 -108
- package/dist/runtime/theme/{select.mjs → select.js} +31 -31
- package/dist/runtime/theme/separator.d.ts +95 -0
- package/dist/runtime/theme/separator.js +53 -0
- package/dist/runtime/theme/skeleton.d.ts +8 -0
- package/dist/runtime/theme/skeleton.js +7 -0
- package/dist/runtime/theme/slider.d.ts +1 -1
- package/dist/runtime/theme/{slider.mjs → slider.js} +3 -3
- package/dist/runtime/theme/switch.d.ts +1 -1
- package/dist/runtime/theme/{switch.mjs → switch.js} +3 -3
- package/dist/runtime/theme/table.d.ts +89 -0
- package/dist/runtime/theme/table.js +35 -0
- package/dist/runtime/theme/tabs.d.ts +70 -53
- package/dist/runtime/theme/{tabs.mjs → tabs.js} +12 -12
- package/dist/runtime/theme/textarea.d.ts +43 -37
- package/dist/runtime/theme/{textarea.mjs → textarea.js} +10 -10
- package/dist/runtime/theme/toast.d.ts +2 -2
- package/dist/runtime/theme/{toast.mjs → toast.js} +3 -3
- package/dist/runtime/theme/toaster.d.ts +42 -27
- package/dist/runtime/theme/tooltip.d.ts +11 -11
- package/dist/runtime/theme/tooltip.js +11 -0
- package/dist/runtime/types/components.d.ts +37 -27
- package/dist/runtime/types/index.d.ts +5 -4
- package/dist/runtime/types/index.js +3 -0
- package/dist/runtime/types/locale.d.ts +23 -0
- package/dist/runtime/types/locale.js +0 -0
- package/dist/runtime/types/utils.d.ts +1 -1
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/utils/index.d.ts +9 -4
- package/dist/runtime/utils/{index.mjs → index.js} +9 -7
- package/dist/runtime/utils/link.d.ts +22 -7
- package/dist/runtime/utils/link.js +30 -0
- package/dist/runtime/utils/styler.d.ts +1 -1
- package/dist/runtime/utils/translator.d.ts +18 -0
- package/dist/runtime/utils/translator.js +8 -0
- package/dist/runtime/vue/stubs.d.ts +9 -0
- package/dist/runtime/vue/stubs.js +16 -0
- package/dist/shared/ui.ba24b380.mjs +4 -0
- package/dist/shared/ui.ba24b380.mjs.map +1 -0
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/unocss.d.mts +6 -11
- package/dist/unocss.d.ts +6 -11
- package/dist/unocss.mjs +40 -21
- package/dist/unocss.mjs.map +1 -1
- package/dist/unplugin.mjs +35 -8
- package/dist/unplugin.mjs.map +1 -1
- package/dist/vite.d.mts +0 -1
- package/dist/vite.d.ts +0 -1
- package/dist/vite.mjs +3 -1
- package/dist/vite.mjs.map +1 -1
- package/package.json +50 -38
- package/dist/index.d.ts +0 -29
- package/dist/index.mjs +0 -29
- package/dist/nuxt.mjs.map +0 -1
- package/dist/runtime/composables/useComponentIcons.mjs +0 -24
- package/dist/runtime/composables/useTheme.mjs +0 -26
- package/dist/runtime/theme/app.mjs +0 -15
- package/dist/runtime/theme/button.mjs +0 -148
- package/dist/runtime/theme/card.mjs +0 -14
- package/dist/runtime/theme/index.mjs +0 -27
- package/dist/runtime/theme/tooltip.mjs +0 -11
- package/dist/runtime/types/components.mjs +0 -27
- package/dist/runtime/types/index.mjs +0 -2
- package/dist/runtime/utils/link.mjs +0 -4
- package/dist/shared/ui.D4zm1r0C.mjs +0 -4
- package/dist/shared/ui.D4zm1r0C.mjs.map +0 -1
- /package/dist/{nuxt.d.mts → module.d.mts} +0 -0
- /package/dist/{nuxt.d.ts → module.d.ts} +0 -0
- /package/dist/runtime/composables/{useToast.mjs → useToast.js} +0 -0
- /package/dist/runtime/theme/{button-group.mjs → button-group.js} +0 -0
- /package/dist/runtime/theme/{pagination.mjs → pagination.js} +0 -0
- /package/dist/runtime/theme/{toaster.mjs → toaster.js} +0 -0
- /package/dist/runtime/types/{utils.mjs → components.js} +0 -0
- /package/dist/runtime/utils/{extend-theme.mjs → extend-theme.js} +0 -0
- /package/dist/runtime/utils/{styler.mjs → styler.js} +0 -0
- /package/dist/runtime/{composables/defineInjection.d.ts → utils/vue.d.ts} +0 -0
- /package/dist/runtime/{composables/defineInjection.mjs → utils/vue.js} +0 -0
|
@@ -9,27 +9,43 @@ declare const _default: {
|
|
|
9
9
|
description: string;
|
|
10
10
|
};
|
|
11
11
|
variants: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
root
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
12
|
+
variant: {
|
|
13
|
+
solid: {
|
|
14
|
+
root: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
outline: {
|
|
18
|
+
root: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
soft: {
|
|
22
|
+
root: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
'soft-outline': {
|
|
26
|
+
root: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
21
29
|
};
|
|
22
30
|
};
|
|
23
|
-
compoundVariants: import("@byyuurin/ui-kit
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
root
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
31
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
32
|
+
variant: {
|
|
33
|
+
solid: {
|
|
34
|
+
root: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
outline: {
|
|
38
|
+
root: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
soft: {
|
|
42
|
+
root: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
45
|
+
'soft-outline': {
|
|
46
|
+
root: string;
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
33
49
|
};
|
|
34
50
|
}, {
|
|
35
51
|
root: string;
|
|
@@ -39,24 +55,8 @@ declare const _default: {
|
|
|
39
55
|
title: string;
|
|
40
56
|
description: string;
|
|
41
57
|
}, undefined>;
|
|
42
|
-
defaultVariants:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
root?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
46
|
-
header?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
47
|
-
body?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
48
|
-
title?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
49
|
-
description?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
50
|
-
footer?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
51
|
-
} | null;
|
|
52
|
-
};
|
|
53
|
-
}, {
|
|
54
|
-
root: string;
|
|
55
|
-
header: string;
|
|
56
|
-
body: string;
|
|
57
|
-
footer: string;
|
|
58
|
-
title: string;
|
|
59
|
-
description: string;
|
|
60
|
-
}>;
|
|
58
|
+
defaultVariants: {
|
|
59
|
+
variant: "outline";
|
|
60
|
+
};
|
|
61
61
|
};
|
|
62
62
|
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "rounded-ui-box divide-y",
|
|
7
|
+
header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
|
|
8
|
+
body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
|
|
9
|
+
footer: "flex items-center gap-1.5 p-4 sm:px-6",
|
|
10
|
+
title: "flex-grow text-xl font-semibold",
|
|
11
|
+
description: "w-full"
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
variant: {
|
|
15
|
+
"solid": {
|
|
16
|
+
root: "color-ui-cx bg-ui-fill divide-ui-cx/20",
|
|
17
|
+
description: "color-ui-cx/80"
|
|
18
|
+
},
|
|
19
|
+
"outline": {
|
|
20
|
+
root: "color-ui-content bg-ui-cx divide-ui-content/20 ring ring-inset ring-ui-fill/20",
|
|
21
|
+
description: "color-ui-content/80"
|
|
22
|
+
},
|
|
23
|
+
"soft": {
|
|
24
|
+
root: "color-ui-content bg-soft-ui-fill/10 divide-ui-content/20",
|
|
25
|
+
description: "color-ui-content/80"
|
|
26
|
+
},
|
|
27
|
+
"soft-outline": {
|
|
28
|
+
root: "color-ui-content bg-soft-ui-fill/10 divide-ui-content/20 ring ring-inset ring-ui-fill/20",
|
|
29
|
+
description: "color-ui-content/80"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
variant: "outline"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
);
|
|
@@ -37,7 +37,7 @@ declare const _default: {
|
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
-
compoundVariants: import("@byyuurin/ui-kit
|
|
40
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
41
41
|
orientation: {
|
|
42
42
|
vertical: {
|
|
43
43
|
container: string;
|
|
@@ -73,7 +73,7 @@ declare const _default: {
|
|
|
73
73
|
dots: string;
|
|
74
74
|
dot: string;
|
|
75
75
|
}, undefined>;
|
|
76
|
-
defaultVariants: import("@byyuurin/ui-kit
|
|
76
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
77
77
|
orientation: {
|
|
78
78
|
vertical: {
|
|
79
79
|
container: string;
|
|
@@ -12,7 +12,7 @@ export default ct(
|
|
|
12
12
|
prev: "rounded-full",
|
|
13
13
|
next: "rounded-full",
|
|
14
14
|
dots: "flex flex-wrap items-center justify-center gap-3",
|
|
15
|
-
dot: "cursor-pointer size-3 bg-
|
|
15
|
+
dot: "cursor-pointer size-3 bg-soft-ui-cb/10 rounded-full transition"
|
|
16
16
|
},
|
|
17
17
|
variants: {
|
|
18
18
|
orientation: {
|
|
@@ -35,7 +35,7 @@ export default ct(
|
|
|
35
35
|
},
|
|
36
36
|
active: {
|
|
37
37
|
true: {
|
|
38
|
-
dot: "bg-
|
|
38
|
+
dot: "bg-soft-ui-content"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -5,13 +5,13 @@ 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-
|
|
8
|
+
"size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-cx ring-2 ring-ui-content ring-inset bg-soft-ui-content",
|
|
9
9
|
"outline-none focus-visible:outline-ui-cb/80 focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
10
|
-
"aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-cb aria-[checked=false]:bg-
|
|
10
|
+
"aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-cb aria-[checked=false]:bg-ui-cx"
|
|
11
11
|
],
|
|
12
12
|
container: "flex items-center h-1.25em overflow-hidden",
|
|
13
13
|
wrapper: "text-inherit ms-2",
|
|
14
|
-
icon: "color-ui-
|
|
14
|
+
icon: "color-ui-cx shrink-0 size-1em transition data-[state=unchecked]:translate-y-full",
|
|
15
15
|
label: "flex color-ui-cb after:content-empty",
|
|
16
16
|
description: "color-ui-cb/60"
|
|
17
17
|
},
|
|
@@ -3,13 +3,13 @@ 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: {
|
|
11
11
|
solid: {
|
|
12
|
-
base: string
|
|
12
|
+
base: string;
|
|
13
13
|
};
|
|
14
14
|
outline: {
|
|
15
15
|
base: string;
|
|
@@ -47,19 +47,52 @@ declare const _default: {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
compoundVariants: ({
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
51
|
+
variant: {
|
|
52
|
+
solid: {
|
|
53
|
+
base: string;
|
|
54
|
+
};
|
|
55
|
+
outline: {
|
|
56
|
+
base: string;
|
|
57
|
+
};
|
|
58
|
+
soft: {
|
|
59
|
+
base: string;
|
|
60
|
+
};
|
|
61
|
+
'soft-outline': {
|
|
62
|
+
base: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
size: {
|
|
66
|
+
xs: {
|
|
67
|
+
base: string;
|
|
68
|
+
};
|
|
69
|
+
sm: {
|
|
70
|
+
base: string;
|
|
71
|
+
};
|
|
72
|
+
md: {
|
|
73
|
+
base: string;
|
|
74
|
+
};
|
|
75
|
+
lg: {
|
|
76
|
+
base: string;
|
|
77
|
+
};
|
|
78
|
+
xl: {
|
|
79
|
+
base: string;
|
|
80
|
+
};
|
|
55
81
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
82
|
+
groupOrientation: {
|
|
83
|
+
horizontal: {
|
|
84
|
+
base: string;
|
|
85
|
+
};
|
|
86
|
+
vertical: {
|
|
87
|
+
base: string;
|
|
88
|
+
};
|
|
61
89
|
};
|
|
62
|
-
}
|
|
90
|
+
}, {
|
|
91
|
+
base: string;
|
|
92
|
+
label: string;
|
|
93
|
+
leadingIcon: string;
|
|
94
|
+
trailingIcon: string;
|
|
95
|
+
}, undefined>;
|
|
63
96
|
defaultVariants: {
|
|
64
97
|
size: "md";
|
|
65
98
|
};
|
|
@@ -1,30 +1,28 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
import { buttonGroupVariant } from "./button-group.
|
|
2
|
+
import { buttonGroupVariant } from "./button-group.js";
|
|
3
3
|
export default ct(
|
|
4
4
|
/* @unocss-include */
|
|
5
5
|
{
|
|
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,
|
|
14
14
|
variant: {
|
|
15
15
|
"solid": {
|
|
16
|
-
base:
|
|
17
|
-
"color-ui-c1 bg-solid-ui-fill/90"
|
|
18
|
-
]
|
|
16
|
+
base: "color-ui-cx bg-soft-ui-fill/90"
|
|
19
17
|
},
|
|
20
18
|
"outline": {
|
|
21
|
-
base: "color-ui-fill bg-
|
|
19
|
+
base: "color-ui-fill bg-ui-cx ring ring-inset ring-ui-fill/30"
|
|
22
20
|
},
|
|
23
21
|
"soft": {
|
|
24
|
-
base: "color-ui-content/80 bg-
|
|
22
|
+
base: "color-ui-content/80 bg-soft-ui-fill/10"
|
|
25
23
|
},
|
|
26
24
|
"soft-outline": {
|
|
27
|
-
base: "color-ui-content/80 bg-
|
|
25
|
+
base: "color-ui-content/80 bg-soft-ui-fill/10 ring ring-inset ring-ui-fill/30"
|
|
28
26
|
}
|
|
29
27
|
},
|
|
30
28
|
size: {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
content: string;
|
|
6
|
+
};
|
|
7
|
+
variants: {
|
|
8
|
+
[key: string]: {
|
|
9
|
+
[key: string]: "" | {
|
|
10
|
+
root?: import("@byyuurin/ui-kit").ClassValue;
|
|
11
|
+
content?: import("@byyuurin/ui-kit").ClassValue;
|
|
12
|
+
} | null;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
16
|
+
[key: string]: {
|
|
17
|
+
[key: string]: "" | {
|
|
18
|
+
root?: import("@byyuurin/ui-kit").ClassValue;
|
|
19
|
+
content?: import("@byyuurin/ui-kit").ClassValue;
|
|
20
|
+
} | null;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
root: string;
|
|
24
|
+
content: string;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
27
|
+
[key: string]: {
|
|
28
|
+
[key: string]: "" | {
|
|
29
|
+
root?: import("@byyuurin/ui-kit").ClassValue;
|
|
30
|
+
content?: import("@byyuurin/ui-kit").ClassValue;
|
|
31
|
+
} | null;
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
root: string;
|
|
35
|
+
content: string;
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "",
|
|
7
|
+
content: "data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-in] overflow-hidden"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
);
|
|
@@ -17,67 +17,66 @@ declare const _default: {
|
|
|
17
17
|
content: string;
|
|
18
18
|
handle: string;
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
bottom: {
|
|
21
21
|
content: string;
|
|
22
22
|
handle: string;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
left: {
|
|
25
25
|
content: string;
|
|
26
26
|
handle: string;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
right: {
|
|
29
29
|
content: string;
|
|
30
30
|
handle: string;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
inset: {
|
|
34
34
|
true: {
|
|
35
|
-
|
|
35
|
+
content: string;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
full: {
|
|
39
|
-
true: "";
|
|
40
|
-
};
|
|
41
38
|
};
|
|
42
|
-
compoundVariants: ({
|
|
43
|
-
direction: ("top" | "bottom")[];
|
|
44
|
-
class: {
|
|
45
|
-
content: string;
|
|
46
|
-
handle: string;
|
|
47
|
-
};
|
|
48
|
-
full?: undefined;
|
|
49
|
-
} | {
|
|
50
|
-
direction: ("top" | "bottom")[];
|
|
51
|
-
full: false;
|
|
52
|
-
class: {
|
|
53
|
-
content: string;
|
|
54
|
-
handle?: undefined;
|
|
55
|
-
};
|
|
56
|
-
} | {
|
|
57
|
-
direction: ("right" | "left")[];
|
|
58
|
-
class: {
|
|
59
|
-
content: string;
|
|
60
|
-
handle: string;
|
|
61
|
-
};
|
|
62
|
-
full?: undefined;
|
|
63
|
-
} | {
|
|
64
|
-
direction: ("right" | "left")[];
|
|
65
|
-
full: false;
|
|
66
|
-
class: {
|
|
67
|
-
content: string;
|
|
68
|
-
handle?: undefined;
|
|
69
|
-
};
|
|
70
|
-
})[];
|
|
71
|
-
defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
|
|
39
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
72
40
|
direction: {
|
|
73
41
|
top: {
|
|
74
42
|
content: string;
|
|
75
43
|
handle: string;
|
|
76
44
|
};
|
|
45
|
+
bottom: {
|
|
46
|
+
content: string;
|
|
47
|
+
handle: string;
|
|
48
|
+
};
|
|
49
|
+
left: {
|
|
50
|
+
content: string;
|
|
51
|
+
handle: string;
|
|
52
|
+
};
|
|
77
53
|
right: {
|
|
78
54
|
content: string;
|
|
79
55
|
handle: string;
|
|
80
56
|
};
|
|
57
|
+
};
|
|
58
|
+
inset: {
|
|
59
|
+
true: {
|
|
60
|
+
content: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
overlay: string;
|
|
65
|
+
content: string;
|
|
66
|
+
handle: string;
|
|
67
|
+
container: string;
|
|
68
|
+
header: string;
|
|
69
|
+
title: string;
|
|
70
|
+
description: string;
|
|
71
|
+
body: string;
|
|
72
|
+
footer: string;
|
|
73
|
+
}, undefined>;
|
|
74
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
75
|
+
direction: {
|
|
76
|
+
top: {
|
|
77
|
+
content: string;
|
|
78
|
+
handle: string;
|
|
79
|
+
};
|
|
81
80
|
bottom: {
|
|
82
81
|
content: string;
|
|
83
82
|
handle: string;
|
|
@@ -86,15 +85,16 @@ declare const _default: {
|
|
|
86
85
|
content: string;
|
|
87
86
|
handle: string;
|
|
88
87
|
};
|
|
88
|
+
right: {
|
|
89
|
+
content: string;
|
|
90
|
+
handle: string;
|
|
91
|
+
};
|
|
89
92
|
};
|
|
90
|
-
|
|
93
|
+
inset: {
|
|
91
94
|
true: {
|
|
92
|
-
|
|
95
|
+
content: string;
|
|
93
96
|
};
|
|
94
97
|
};
|
|
95
|
-
full: {
|
|
96
|
-
true: "";
|
|
97
|
-
};
|
|
98
98
|
}, {
|
|
99
99
|
overlay: string;
|
|
100
100
|
content: string;
|
|
@@ -3,9 +3,9 @@ export default ct(
|
|
|
3
3
|
/* @unocss-include */
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
|
-
overlay: "fixed inset-0 bg-
|
|
7
|
-
content: "fixed bg-
|
|
8
|
-
handle: "shrink-0 rounded-full bg-
|
|
6
|
+
overlay: "fixed z-1 inset-0 bg-black/40",
|
|
7
|
+
content: "fixed z-1 bg-ui-cx ring ring-ui-cb/5 flex focus:outline-none",
|
|
8
|
+
handle: "shrink-0 rounded-full bg-soft-ui-cb/17.5",
|
|
9
9
|
container: "w-full flex flex-col overflow-hidden overflow-y-auto",
|
|
10
10
|
header: "p-4 sm:px-6 sibling:pt-0",
|
|
11
11
|
title: "color-ui-cb text-xl font-semibold",
|
|
@@ -19,26 +19,23 @@ export default ct(
|
|
|
19
19
|
content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box",
|
|
20
20
|
handle: "mb-4"
|
|
21
21
|
},
|
|
22
|
-
right: {
|
|
23
|
-
content: "right-4 flex-row rounded-l-ui-box",
|
|
24
|
-
handle: "ml-4"
|
|
25
|
-
},
|
|
26
22
|
bottom: {
|
|
27
23
|
content: "bottom-0 mt-24 flex-col rounded-t-ui-box",
|
|
28
24
|
handle: "mt-4"
|
|
29
25
|
},
|
|
30
26
|
left: {
|
|
31
|
-
content: "left-
|
|
27
|
+
content: "left-0 flex-row-reverse rounded-r-ui-box",
|
|
32
28
|
handle: "mr-4"
|
|
29
|
+
},
|
|
30
|
+
right: {
|
|
31
|
+
content: "right-0 flex-row rounded-l-ui-box",
|
|
32
|
+
handle: "ml-4"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
|
|
35
|
+
inset: {
|
|
36
36
|
true: {
|
|
37
|
-
|
|
37
|
+
content: "rounded-ui-box after:hidden"
|
|
38
38
|
}
|
|
39
|
-
},
|
|
40
|
-
full: {
|
|
41
|
-
true: ""
|
|
42
39
|
}
|
|
43
40
|
},
|
|
44
41
|
compoundVariants: [
|
|
@@ -50,24 +47,38 @@ export default ct(
|
|
|
50
47
|
}
|
|
51
48
|
},
|
|
52
49
|
{
|
|
53
|
-
direction: ["
|
|
54
|
-
|
|
50
|
+
direction: ["left", "right"],
|
|
51
|
+
class: {
|
|
52
|
+
content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]",
|
|
53
|
+
handle: "h-12 w-1.5 my-auto"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
direction: ["top"],
|
|
58
|
+
inset: true,
|
|
55
59
|
class: {
|
|
56
|
-
content: "inset-x-4
|
|
60
|
+
content: "inset-x-4 top-4"
|
|
57
61
|
}
|
|
58
62
|
},
|
|
59
63
|
{
|
|
60
|
-
direction: ["
|
|
64
|
+
direction: ["bottom"],
|
|
65
|
+
inset: true,
|
|
61
66
|
class: {
|
|
62
|
-
content: "inset-
|
|
63
|
-
|
|
67
|
+
content: "inset-x-4 bottom-4"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
direction: ["left"],
|
|
72
|
+
inset: true,
|
|
73
|
+
class: {
|
|
74
|
+
content: "inset-y-4 left-4"
|
|
64
75
|
}
|
|
65
76
|
},
|
|
66
77
|
{
|
|
67
|
-
direction: ["right"
|
|
68
|
-
|
|
78
|
+
direction: ["right"],
|
|
79
|
+
inset: true,
|
|
69
80
|
class: {
|
|
70
|
-
content: "inset-y-4
|
|
81
|
+
content: "inset-y-4 right-4"
|
|
71
82
|
}
|
|
72
83
|
}
|
|
73
84
|
]
|
|
@@ -1,27 +1,37 @@
|
|
|
1
|
-
export { default as accordion } from './accordion';
|
|
2
|
-
export { default as alert } from './alert';
|
|
3
|
-
export { default as app } from './app';
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
21
|
-
export { default as
|
|
22
|
-
export { default as
|
|
23
|
-
export { default as
|
|
24
|
-
export { default as
|
|
25
|
-
export { default as
|
|
26
|
-
export { default as
|
|
27
|
-
export { default as
|
|
1
|
+
export { default as accordion } from './accordion.js';
|
|
2
|
+
export { default as alert } from './alert.js';
|
|
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';
|
|
6
|
+
export { default as badge } from './badge.js';
|
|
7
|
+
export { default as breadcrumb } from './breadcrumb.js';
|
|
8
|
+
export { default as button } from './button.js';
|
|
9
|
+
export { default as buttonGroup } from './button-group.js';
|
|
10
|
+
export { default as card } from './card.js';
|
|
11
|
+
export { default as carousel } from './carousel.js';
|
|
12
|
+
export { default as checkbox } from './checkbox.js';
|
|
13
|
+
export { default as chip } from './chip.js';
|
|
14
|
+
export { default as collapsible } from './collapsible.js';
|
|
15
|
+
export { default as drawer } from './drawer.js';
|
|
16
|
+
export { default as input } from './input.js';
|
|
17
|
+
export { default as inputNumber } from './input-number.js';
|
|
18
|
+
export { default as kbd } from './kbd.js';
|
|
19
|
+
export { default as link } from './link.js';
|
|
20
|
+
export { default as modal } from './modal.js';
|
|
21
|
+
export { default as pagination } from './pagination.js';
|
|
22
|
+
export { default as pinInput } from './pinInput.js';
|
|
23
|
+
export { default as popover } from './popover.js';
|
|
24
|
+
export { default as progress } from './progress.js';
|
|
25
|
+
export { default as radioGroup } from './radio-group.js';
|
|
26
|
+
export { default as scrollArea } from './scroll-area.js';
|
|
27
|
+
export { default as select } from './select.js';
|
|
28
|
+
export { default as separator } from './separator.js';
|
|
29
|
+
export { default as skeleton } from './skeleton.js';
|
|
30
|
+
export { default as slider } from './slider.js';
|
|
31
|
+
export { default as switch } from './switch.js';
|
|
32
|
+
export { default as table } from './table.js';
|
|
33
|
+
export { default as tabs } from './tabs.js';
|
|
34
|
+
export { default as textarea } from './textarea.js';
|
|
35
|
+
export { default as toast } from './toast.js';
|
|
36
|
+
export { default as toaster } from './toaster.js';
|
|
37
|
+
export { default as tooltip } from './tooltip.js';
|