@byyuurin/ui 0.0.4 → 0.0.6
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 +23 -29
- package/dist/index.d.ts +28 -2
- package/dist/index.mjs +28 -2
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.mjs +15 -10
- package/dist/nuxt.mjs.map +1 -0
- package/dist/runtime/components/Accordion.vue +1 -1
- package/dist/runtime/components/Alert.vue +120 -0
- package/dist/runtime/components/App.vue +1 -1
- package/dist/runtime/components/Badge.vue +70 -0
- package/dist/runtime/components/Button.vue +7 -3
- package/dist/runtime/components/ButtonGroup.vue +47 -0
- package/dist/runtime/components/Card.vue +4 -4
- package/dist/runtime/components/Carousel.vue +310 -0
- package/dist/runtime/components/Checkbox.vue +1 -2
- package/dist/runtime/components/Chip.vue +64 -0
- package/dist/runtime/components/Drawer.vue +2 -2
- package/dist/runtime/components/Input.vue +10 -5
- package/dist/runtime/components/Link.vue +1 -1
- package/dist/runtime/components/Modal.vue +4 -5
- package/dist/runtime/components/Pagination.vue +167 -0
- package/dist/runtime/components/PinInput.vue +85 -0
- package/dist/runtime/components/Popover.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue +1 -2
- package/dist/runtime/components/ScrollArea.vue +2 -2
- package/dist/runtime/components/Select.vue +7 -2
- package/dist/runtime/components/Slider.vue +96 -0
- package/dist/runtime/components/Switch.vue +2 -4
- package/dist/runtime/components/Tabs.vue +1 -2
- package/dist/runtime/components/Textarea.vue +2 -4
- package/dist/runtime/components/Toast.vue +21 -10
- package/dist/runtime/components/Toaster.vue +5 -5
- package/dist/runtime/components/Tooltip.vue +1 -1
- package/dist/runtime/composables/useButtonGroup.d.ts +13 -0
- package/dist/runtime/composables/useButtonGroup.mjs +14 -0
- package/dist/runtime/composables/useTheme.d.ts +2 -2
- package/dist/runtime/composables/useTheme.mjs +1 -1
- package/dist/runtime/composables/useToast.d.ts +4 -4
- package/dist/runtime/composables/useToast.mjs +19 -6
- package/dist/runtime/theme/accordion.d.ts +17 -0
- package/dist/runtime/theme/accordion.mjs +24 -21
- package/dist/runtime/theme/alert.d.ts +125 -0
- package/dist/runtime/theme/alert.mjs +47 -0
- package/dist/runtime/theme/app.d.ts +5 -0
- package/dist/runtime/theme/app.mjs +7 -1
- package/dist/runtime/theme/badge.d.ts +82 -0
- package/dist/runtime/theme/badge.mjs +92 -0
- package/dist/runtime/theme/button-group.d.ts +66 -0
- package/dist/runtime/theme/button-group.mjs +42 -0
- package/dist/runtime/theme/button.d.ts +15 -1
- package/dist/runtime/theme/button.mjs +135 -119
- package/dist/runtime/theme/card.d.ts +21 -2
- package/dist/runtime/theme/card.mjs +12 -9
- package/dist/runtime/theme/carousel.d.ts +113 -0
- package/dist/runtime/theme/carousel.mjs +43 -0
- package/dist/runtime/theme/checkbox.d.ts +3 -0
- package/dist/runtime/theme/checkbox.mjs +47 -41
- package/dist/runtime/theme/chip.d.ts +67 -0
- package/dist/runtime/theme/chip.mjs +68 -0
- package/dist/runtime/theme/drawer.d.ts +38 -0
- package/dist/runtime/theme/drawer.mjs +69 -66
- package/dist/runtime/theme/index.d.ts +10 -2
- package/dist/runtime/theme/index.mjs +10 -2
- package/dist/runtime/theme/input.d.ts +41 -22
- package/dist/runtime/theme/input.mjs +139 -121
- package/dist/runtime/theme/link.d.ts +14 -1
- package/dist/runtime/theme/link.mjs +23 -20
- package/dist/runtime/theme/modal.d.ts +3 -0
- package/dist/runtime/theme/modal.mjs +53 -47
- package/dist/runtime/theme/pagination.d.ts +56 -0
- package/dist/runtime/theme/pagination.mjs +13 -0
- package/dist/runtime/theme/pinInput.d.ts +100 -0
- package/dist/runtime/theme/pinInput.mjs +111 -0
- package/dist/runtime/theme/popover.d.ts +11 -0
- package/dist/runtime/theme/popover.mjs +11 -8
- package/dist/runtime/theme/{radioGroup.d.ts → radio-group.d.ts} +3 -0
- package/dist/runtime/theme/radio-group.mjs +61 -0
- package/dist/runtime/theme/{scrollArea.d.ts → scroll-area.d.ts} +22 -0
- package/dist/runtime/theme/scroll-area.mjs +33 -0
- package/dist/runtime/theme/select.d.ts +16 -2
- package/dist/runtime/theme/select.mjs +160 -142
- package/dist/runtime/theme/slider.d.ts +76 -0
- package/dist/runtime/theme/slider.mjs +52 -0
- package/dist/runtime/theme/switch.d.ts +3 -0
- package/dist/runtime/theme/switch.mjs +69 -63
- package/dist/runtime/theme/tabs.d.ts +15 -2
- package/dist/runtime/theme/tabs.mjs +134 -112
- package/dist/runtime/theme/textarea.d.ts +8 -2
- package/dist/runtime/theme/textarea.mjs +105 -89
- package/dist/runtime/theme/toast.d.ts +44 -6
- package/dist/runtime/theme/toast.mjs +30 -22
- package/dist/runtime/theme/toaster.d.ts +51 -2
- package/dist/runtime/theme/toaster.mjs +88 -80
- package/dist/runtime/theme/tooltip.d.ts +13 -0
- package/dist/runtime/theme/tooltip.mjs +9 -6
- package/dist/runtime/types/components.d.ts +27 -20
- package/dist/runtime/types/components.mjs +27 -0
- package/dist/runtime/types/index.d.ts +1 -3
- package/dist/runtime/types/utils.d.ts +1 -1
- package/dist/runtime/utils/extend-theme.mjs +1 -1
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/runtime/utils/styler.d.ts +2 -2
- package/dist/shared/ui.D4zm1r0C.mjs +4 -0
- package/dist/shared/ui.D4zm1r0C.mjs.map +1 -0
- package/dist/{unocss-preset.d.mts → unocss.d.mts} +4 -4
- package/dist/{unocss-preset.d.ts → unocss.d.ts} +4 -4
- package/dist/{unocss-preset.mjs → unocss.mjs} +58 -36
- package/dist/unocss.mjs.map +1 -0
- package/dist/unplugin.d.mts +26 -0
- package/dist/unplugin.d.ts +26 -0
- package/dist/unplugin.mjs +72 -0
- package/dist/unplugin.mjs.map +1 -0
- package/dist/vite.d.mts +10 -0
- package/dist/vite.d.ts +10 -0
- package/dist/vite.mjs +14 -0
- package/dist/vite.mjs.map +1 -0
- package/package.json +46 -26
- package/dist/resolver.d.mts +0 -13
- package/dist/resolver.d.ts +0 -13
- package/dist/resolver.mjs +0 -21
- package/dist/runtime/components/index.d.ts +0 -20
- package/dist/runtime/components/index.mjs +0 -20
- package/dist/runtime/composables/index.d.ts +0 -5
- package/dist/runtime/composables/index.mjs +0 -5
- package/dist/runtime/theme/radioGroup.mjs +0 -55
- package/dist/runtime/theme/scrollArea.mjs +0 -30
- package/dist/shared/ui.Cmq14xN9.mjs +0 -25
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -1,132 +1,148 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
import { buttonGroupVariant } from "./button-group.mjs";
|
|
3
|
+
export default ct(
|
|
4
|
+
/* @unocss-include */
|
|
5
|
+
{
|
|
6
|
+
slots: {
|
|
7
|
+
base: [
|
|
8
|
+
"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-cb/80",
|
|
10
|
+
"disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:opacity-50"
|
|
11
|
+
],
|
|
12
|
+
label: "color-inherit",
|
|
13
|
+
prefixIcon: "shrink-0 size-1.5em not-only-child:ml-0.5",
|
|
14
|
+
suffixIcon: "shrink-0 size-1.5em not-only-child:mr-0.5"
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
...buttonGroupVariant,
|
|
18
|
+
variant: {
|
|
19
|
+
"solid": {
|
|
20
|
+
base: [
|
|
21
|
+
"color-ui-c1 bg-solid-ui-fill/90",
|
|
22
|
+
"hover:bg-solid-ui-fill/80 active:bg-solid-ui-fill",
|
|
23
|
+
"disabled:bg-solid-ui-fill/90 aria-disabled:bg-solid-ui-fill/90"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"outline": {
|
|
27
|
+
base: [
|
|
28
|
+
"color-ui-fill bg-solid-ui-c1 ring ring-inset ring-ui-fill",
|
|
29
|
+
"hover:bg-solid-ui-fill/5 active:bg-solid-ui-fill/10",
|
|
30
|
+
"disabled:bg-solid-ui-c1 aria-disabled:bg-solid-ui-c1"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"soft": {
|
|
34
|
+
base: [
|
|
35
|
+
"color-ui-content/80 bg-solid-ui-fill/10",
|
|
36
|
+
"hover:bg-solid-ui-fill/15 hover:color-ui-content/80 active:bg-solid-ui-fill/20 active:color-ui-content/90",
|
|
37
|
+
"disabled:bg-solid-ui-fill/10 aria-disabled:bg-solid-ui-fill/10 disabled:color-ui-content/80 aria-disabled:color-ui-content/80"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"soft-outline": {
|
|
41
|
+
base: [
|
|
42
|
+
"color-ui-content/80 bg-solid-ui-fill/10 ring ring-inset ring-ui-fill/40",
|
|
43
|
+
"hover:bg-solid-ui-fill/15 hover:color-ui-content/80 active:bg-solid-ui-fill/20 active:color-ui-content/90",
|
|
44
|
+
"disabled:bg-solid-ui-fill/10 aria-disabled:bg-solid-ui-fill/10 disabled:color-ui-content/80 aria-disabled:color-ui-content/80"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"ghost": {
|
|
48
|
+
base: [
|
|
49
|
+
"color-ui-fill/80 bg-transparent",
|
|
50
|
+
"hover:bg-solid-ui-fill/10 hover:color-ui-fill/80 active:bg-solid-ui-fill/20 active:color-ui-fill/90",
|
|
51
|
+
"disabled:bg-transparent aria-disabled:bg-transparent disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"link": {
|
|
55
|
+
base: [
|
|
56
|
+
"color-ui-fill/80 bg-transparent",
|
|
57
|
+
"hover:color-ui-fill/60 active:color-ui-fill",
|
|
58
|
+
"disabled:color-ui-fill aria-disabled:color-ui-fill"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
size: {
|
|
63
|
+
xs: {
|
|
64
|
+
base: "text-xs"
|
|
65
|
+
},
|
|
66
|
+
sm: {
|
|
67
|
+
base: "text-sm"
|
|
68
|
+
},
|
|
69
|
+
md: {
|
|
70
|
+
base: "text-base"
|
|
71
|
+
},
|
|
72
|
+
lg: {
|
|
73
|
+
base: "text-lg"
|
|
74
|
+
},
|
|
75
|
+
xl: {
|
|
76
|
+
base: "text-xl"
|
|
77
|
+
}
|
|
20
78
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"color-ui-fill bg-ui-c1 ring ring-inset ring-ui-fill",
|
|
24
|
-
"hover:bg-ui-fill/10 active:bg-ui-fill/25",
|
|
25
|
-
"disabled:bg-ui-c1 aria-disabled:bg-ui-c1"
|
|
26
|
-
]
|
|
79
|
+
active: {
|
|
80
|
+
true: ""
|
|
27
81
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"color-ui-content/80 bg-ui-fill/10",
|
|
31
|
-
"hover:bg-ui-fill/15 hover:color-ui-content/80 active:bg-ui-fill/20 active:color-ui-content/90",
|
|
32
|
-
"disabled:bg-ui-fill/10 aria-disabled:bg-ui-fill/10 disabled:color-ui-content/80 aria-disabled:color-ui-content/80"
|
|
33
|
-
]
|
|
82
|
+
prefix: {
|
|
83
|
+
true: ""
|
|
34
84
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"color-ui-fill/80 bg-transparent",
|
|
38
|
-
"hover:bg-ui-fill/10 hover:color-ui-fill/80 active:bg-ui-fill/20 active:color-ui-fill/90",
|
|
39
|
-
"disabled:bg-transparent aria-disabled:bg-transparent disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80"
|
|
40
|
-
]
|
|
85
|
+
suffix: {
|
|
86
|
+
true: ""
|
|
41
87
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"color-ui-fill bg-transparent",
|
|
45
|
-
"hover:color-ui-fill/80 active:color-ui-fill/90",
|
|
46
|
-
"disabled:color-ui-fill aria-disabled:color-ui-fill"
|
|
47
|
-
]
|
|
88
|
+
loading: {
|
|
89
|
+
true: ""
|
|
48
90
|
}
|
|
49
91
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
92
|
+
compoundVariants: [
|
|
93
|
+
{
|
|
94
|
+
size: ["xs", "sm", "md"],
|
|
95
|
+
class: {
|
|
96
|
+
base: "p-1.5",
|
|
97
|
+
label: "px-1"
|
|
98
|
+
}
|
|
53
99
|
},
|
|
54
|
-
|
|
55
|
-
|
|
100
|
+
{
|
|
101
|
+
size: ["lg", "xl"],
|
|
102
|
+
class: {
|
|
103
|
+
base: "p-2.5",
|
|
104
|
+
label: "px-2"
|
|
105
|
+
}
|
|
56
106
|
},
|
|
57
|
-
|
|
58
|
-
|
|
107
|
+
{
|
|
108
|
+
active: true,
|
|
109
|
+
variant: "solid",
|
|
110
|
+
class: { base: "bg-solid-ui-fill hover:bg-solid-ui-fill" }
|
|
59
111
|
},
|
|
60
|
-
|
|
61
|
-
|
|
112
|
+
{
|
|
113
|
+
active: true,
|
|
114
|
+
variant: "outline",
|
|
115
|
+
class: { base: "bg-solid-ui-fill/10 hover:bg-solid-ui-fill/10" }
|
|
62
116
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
{
|
|
89
|
-
size: ["lg", "xl"],
|
|
90
|
-
class: {
|
|
91
|
-
base: "p-2.5",
|
|
92
|
-
label: "px-2"
|
|
117
|
+
{
|
|
118
|
+
active: true,
|
|
119
|
+
variant: ["soft", "soft-outline"],
|
|
120
|
+
class: { base: "color-ui-content/90 bg-solid-ui-fill/20 hover:color-ui-content/90 hover:bg-solid-ui-fill/20" }
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
active: true,
|
|
124
|
+
variant: "ghost",
|
|
125
|
+
class: { base: "color-ui-fill/90 bg-solid-ui-fill/20 hover:color-ui-fill/90 hover:bg-solid-ui-fill/20" }
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
active: true,
|
|
129
|
+
variant: "link",
|
|
130
|
+
class: { base: "color-ui-fill/90 hover:color-ui-fill/90" }
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
loading: true,
|
|
134
|
+
prefix: true,
|
|
135
|
+
class: { prefixIcon: "animate-spin" }
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
loading: true,
|
|
139
|
+
prefix: false,
|
|
140
|
+
suffix: true,
|
|
141
|
+
class: { suffixIcon: "animate-spin" }
|
|
93
142
|
}
|
|
94
|
-
|
|
95
|
-
{
|
|
96
|
-
|
|
97
|
-
variant: "solid",
|
|
98
|
-
class: { base: "bg-ui-fill hover:bg-ui-fill" }
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
active: true,
|
|
102
|
-
variant: "outline",
|
|
103
|
-
class: { base: "bg-ui-fill/25 hover:bg-ui-fill/25" }
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
active: true,
|
|
107
|
-
variant: "soft",
|
|
108
|
-
class: { base: "color-ui-content/90 bg-ui-fill/20 hover:color-ui-content/90 hover:bg-ui-fill/20" }
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
active: true,
|
|
112
|
-
variant: "ghost",
|
|
113
|
-
class: { base: "color-ui-fill/90 bg-ui-fill/20 hover:color-ui-fill/90 hover:bg-ui-fill/20" }
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
active: true,
|
|
117
|
-
variant: "link",
|
|
118
|
-
class: { base: "color-ui-fill/90 hover:color-ui-fill/90" }
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
loading: true,
|
|
122
|
-
prefix: true,
|
|
123
|
-
class: { prefixIcon: "animate-spin" }
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
loading: true,
|
|
127
|
-
prefix: false,
|
|
128
|
-
suffix: true,
|
|
129
|
-
class: { suffixIcon: "animate-spin" }
|
|
143
|
+
],
|
|
144
|
+
defaultVariants: {
|
|
145
|
+
size: "md"
|
|
130
146
|
}
|
|
131
|
-
|
|
132
|
-
|
|
147
|
+
}
|
|
148
|
+
);
|
|
@@ -14,9 +14,9 @@ declare const _default: {
|
|
|
14
14
|
root?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
15
15
|
header?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
16
16
|
body?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
17
|
-
footer?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
18
17
|
title?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
19
18
|
description?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
19
|
+
footer?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
20
20
|
} | null;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -26,9 +26,9 @@ declare const _default: {
|
|
|
26
26
|
root?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
27
27
|
header?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
28
28
|
body?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
29
|
-
footer?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
30
29
|
title?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
31
30
|
description?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
31
|
+
footer?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
32
32
|
} | null;
|
|
33
33
|
};
|
|
34
34
|
}, {
|
|
@@ -39,5 +39,24 @@ declare const _default: {
|
|
|
39
39
|
title: string;
|
|
40
40
|
description: string;
|
|
41
41
|
}, undefined>;
|
|
42
|
+
defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
|
|
43
|
+
[key: string]: {
|
|
44
|
+
[key: string]: "" | {
|
|
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
|
+
}>;
|
|
42
61
|
};
|
|
43
62
|
export default _default;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "color-ui-cb bg-solid-ui-c1 ring ring-ui-cb/10 divide-y divide-ui-cb/10 rounded-ui-box shadow-sm shadow-ui-cb/10",
|
|
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 color-ui-cb text-xl font-semibold",
|
|
11
|
+
description: "w-full color-ui-cb/80"
|
|
12
|
+
}
|
|
10
13
|
}
|
|
11
|
-
|
|
14
|
+
);
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
viewport: string;
|
|
6
|
+
container: string;
|
|
7
|
+
item: string;
|
|
8
|
+
controls: string;
|
|
9
|
+
arrows: string;
|
|
10
|
+
prev: string;
|
|
11
|
+
next: string;
|
|
12
|
+
dots: string;
|
|
13
|
+
dot: string;
|
|
14
|
+
};
|
|
15
|
+
variants: {
|
|
16
|
+
orientation: {
|
|
17
|
+
vertical: {
|
|
18
|
+
container: string;
|
|
19
|
+
item: string;
|
|
20
|
+
controls: string;
|
|
21
|
+
arrows: string;
|
|
22
|
+
dots: string;
|
|
23
|
+
prev: string;
|
|
24
|
+
next: string;
|
|
25
|
+
};
|
|
26
|
+
horizontal: {
|
|
27
|
+
container: string;
|
|
28
|
+
item: string;
|
|
29
|
+
prev: string;
|
|
30
|
+
next: string;
|
|
31
|
+
dots: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
active: {
|
|
35
|
+
true: {
|
|
36
|
+
dot: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
|
|
41
|
+
orientation: {
|
|
42
|
+
vertical: {
|
|
43
|
+
container: string;
|
|
44
|
+
item: string;
|
|
45
|
+
controls: string;
|
|
46
|
+
arrows: string;
|
|
47
|
+
dots: string;
|
|
48
|
+
prev: string;
|
|
49
|
+
next: string;
|
|
50
|
+
};
|
|
51
|
+
horizontal: {
|
|
52
|
+
container: string;
|
|
53
|
+
item: string;
|
|
54
|
+
prev: string;
|
|
55
|
+
next: string;
|
|
56
|
+
dots: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
active: {
|
|
60
|
+
true: {
|
|
61
|
+
dot: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
root: string;
|
|
66
|
+
viewport: string;
|
|
67
|
+
container: string;
|
|
68
|
+
item: string;
|
|
69
|
+
controls: string;
|
|
70
|
+
arrows: string;
|
|
71
|
+
prev: string;
|
|
72
|
+
next: string;
|
|
73
|
+
dots: string;
|
|
74
|
+
dot: string;
|
|
75
|
+
}, undefined>;
|
|
76
|
+
defaultVariants: import("@byyuurin/ui-kit/index").CVDefaultVariants<{
|
|
77
|
+
orientation: {
|
|
78
|
+
vertical: {
|
|
79
|
+
container: string;
|
|
80
|
+
item: string;
|
|
81
|
+
controls: string;
|
|
82
|
+
arrows: string;
|
|
83
|
+
dots: string;
|
|
84
|
+
prev: string;
|
|
85
|
+
next: string;
|
|
86
|
+
};
|
|
87
|
+
horizontal: {
|
|
88
|
+
container: string;
|
|
89
|
+
item: string;
|
|
90
|
+
prev: string;
|
|
91
|
+
next: string;
|
|
92
|
+
dots: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
active: {
|
|
96
|
+
true: {
|
|
97
|
+
dot: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}, {
|
|
101
|
+
root: string;
|
|
102
|
+
viewport: string;
|
|
103
|
+
container: string;
|
|
104
|
+
item: string;
|
|
105
|
+
controls: string;
|
|
106
|
+
arrows: string;
|
|
107
|
+
prev: string;
|
|
108
|
+
next: string;
|
|
109
|
+
dots: string;
|
|
110
|
+
dot: string;
|
|
111
|
+
}>;
|
|
112
|
+
};
|
|
113
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "relative focus:outline-none",
|
|
7
|
+
viewport: "overflow-hidden",
|
|
8
|
+
container: "flex items-start",
|
|
9
|
+
item: "min-w-0 shrink-0 basis-full",
|
|
10
|
+
controls: "",
|
|
11
|
+
arrows: "",
|
|
12
|
+
prev: "rounded-full",
|
|
13
|
+
next: "rounded-full",
|
|
14
|
+
dots: "flex flex-wrap items-center justify-center gap-3",
|
|
15
|
+
dot: "cursor-pointer size-3 bg-solid-ui-cb/10 rounded-full transition"
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
orientation: {
|
|
19
|
+
vertical: {
|
|
20
|
+
container: "flex-col -mt-4",
|
|
21
|
+
item: "pt-4",
|
|
22
|
+
controls: "flex gap-4 justify-between py-2",
|
|
23
|
+
arrows: "flex gap-1 only-child:mx-auto",
|
|
24
|
+
dots: "only-child:mx-auto only-child:my-2",
|
|
25
|
+
prev: "rotate-90 rtl:-rotate-90",
|
|
26
|
+
next: "rotate-90 rtl:-rotate-90"
|
|
27
|
+
},
|
|
28
|
+
horizontal: {
|
|
29
|
+
container: "flex-row -ms-4",
|
|
30
|
+
item: "ps-4",
|
|
31
|
+
prev: "absolute -start-12 top-1/2 [translate:0_-50%]",
|
|
32
|
+
next: "absolute -end-12 top-1/2 [translate:0_-50%]",
|
|
33
|
+
dots: "absolute inset-x-0 -bottom-7"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
active: {
|
|
37
|
+
true: {
|
|
38
|
+
dot: "bg-solid-ui-content"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
);
|
|
@@ -1,48 +1,54 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "relative flex items-start",
|
|
7
|
+
base: [
|
|
8
|
+
"size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-c1 ring-2 ring-ui-content ring-inset bg-solid-ui-content",
|
|
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-solid-ui-c1"
|
|
11
|
+
],
|
|
12
|
+
container: "flex items-center h-1.25em overflow-hidden",
|
|
13
|
+
wrapper: "text-inherit ms-2",
|
|
14
|
+
icon: "color-ui-c1 shrink-0 size-1em transition data-[state=unchecked]:translate-y-full",
|
|
15
|
+
label: "flex color-ui-cb after:content-empty",
|
|
16
|
+
description: "color-ui-cb/60"
|
|
17
|
+
},
|
|
18
|
+
variants: {
|
|
19
|
+
size: {
|
|
20
|
+
xs: {
|
|
21
|
+
root: "text-xs"
|
|
22
|
+
},
|
|
23
|
+
sm: {
|
|
24
|
+
root: "text-sm"
|
|
25
|
+
},
|
|
26
|
+
md: {
|
|
27
|
+
root: "text-base"
|
|
28
|
+
},
|
|
29
|
+
lg: {
|
|
30
|
+
root: "text-lg"
|
|
31
|
+
},
|
|
32
|
+
xl: {
|
|
33
|
+
root: "text-xl"
|
|
34
|
+
}
|
|
26
35
|
},
|
|
27
|
-
|
|
28
|
-
|
|
36
|
+
required: {
|
|
37
|
+
true: {
|
|
38
|
+
label: `after:content-['*'] after:ms-0.5`
|
|
39
|
+
}
|
|
29
40
|
},
|
|
30
|
-
|
|
31
|
-
|
|
41
|
+
disabled: {
|
|
42
|
+
true: {
|
|
43
|
+
root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
|
|
44
|
+
},
|
|
45
|
+
false: {
|
|
46
|
+
label: "cursor-pointer"
|
|
47
|
+
}
|
|
32
48
|
}
|
|
33
49
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
label: `after:content-['*'] after:ms-0.5`
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
disabled: {
|
|
40
|
-
true: {
|
|
41
|
-
root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
|
|
42
|
-
},
|
|
43
|
-
false: {
|
|
44
|
-
label: "cursor-pointer"
|
|
45
|
-
}
|
|
50
|
+
defaultVariants: {
|
|
51
|
+
size: "md"
|
|
46
52
|
}
|
|
47
53
|
}
|
|
48
|
-
|
|
54
|
+
);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
base: string;
|
|
5
|
+
label: string;
|
|
6
|
+
prefixIcon: string;
|
|
7
|
+
suffixIcon: string;
|
|
8
|
+
};
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
solid: {
|
|
12
|
+
base: string[];
|
|
13
|
+
};
|
|
14
|
+
outline: {
|
|
15
|
+
base: string;
|
|
16
|
+
};
|
|
17
|
+
soft: {
|
|
18
|
+
base: string;
|
|
19
|
+
};
|
|
20
|
+
'soft-outline': {
|
|
21
|
+
base: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
xs: {
|
|
26
|
+
base: string;
|
|
27
|
+
};
|
|
28
|
+
sm: {
|
|
29
|
+
base: string;
|
|
30
|
+
};
|
|
31
|
+
md: {
|
|
32
|
+
base: string;
|
|
33
|
+
};
|
|
34
|
+
lg: {
|
|
35
|
+
base: string;
|
|
36
|
+
};
|
|
37
|
+
xl: {
|
|
38
|
+
base: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
groupOrientation: {
|
|
42
|
+
horizontal: {
|
|
43
|
+
base: string;
|
|
44
|
+
};
|
|
45
|
+
vertical: {
|
|
46
|
+
base: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
compoundVariants: ({
|
|
51
|
+
size: ("xs" | "sm" | "md")[];
|
|
52
|
+
class: {
|
|
53
|
+
base: string;
|
|
54
|
+
label: string;
|
|
55
|
+
};
|
|
56
|
+
} | {
|
|
57
|
+
size: ("lg" | "xl")[];
|
|
58
|
+
class: {
|
|
59
|
+
base: string;
|
|
60
|
+
label: string;
|
|
61
|
+
};
|
|
62
|
+
})[];
|
|
63
|
+
defaultVariants: {
|
|
64
|
+
size: "md";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export default _default;
|