@byyuurin/ui 0.0.6 → 0.0.7
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} +4 -4
- package/dist/module.mjs.map +1 -0
- package/dist/runtime/components/Accordion.vue +20 -31
- package/dist/runtime/components/Alert.vue +1 -1
- package/dist/runtime/components/Button.vue +10 -11
- package/dist/runtime/components/Card.vue +9 -6
- package/dist/runtime/components/Checkbox.vue +3 -3
- package/dist/runtime/components/Chip.vue +2 -2
- package/dist/runtime/components/Collapsible.vue +56 -0
- package/dist/runtime/components/Drawer.vue +4 -2
- package/dist/runtime/components/Input.vue +4 -4
- package/dist/runtime/components/InputNumber.vue +167 -0
- package/dist/runtime/components/Link.vue +301 -72
- package/dist/runtime/components/LinkBase.vue +88 -0
- package/dist/runtime/components/Modal.vue +0 -1
- package/dist/runtime/components/Select.vue +4 -4
- package/dist/runtime/components/Separator.vue +63 -0
- package/dist/runtime/components/Switch.vue +3 -3
- package/dist/runtime/components/Table.vue +292 -0
- package/dist/runtime/components/Tabs.vue +17 -17
- package/dist/runtime/components/Toast.vue +1 -1
- package/dist/runtime/components/Toaster.vue +1 -35
- package/dist/runtime/composables/useButtonGroup.d.ts +1 -1
- package/dist/runtime/composables/{useButtonGroup.mjs → useButtonGroup.js} +1 -1
- package/dist/runtime/composables/{useComponentIcons.mjs → useComponentIcons.js} +1 -1
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/{useModal.mjs → useModal.js} +1 -1
- package/dist/runtime/composables/useTheme.d.ts +3 -3
- package/dist/runtime/composables/{useTheme.mjs → useTheme.js} +3 -3
- package/dist/runtime/composables/useToast.d.ts +1 -1
- package/dist/runtime/index.d.ts +34 -0
- package/dist/runtime/index.js +34 -0
- package/dist/runtime/theme/accordion.d.ts +8 -8
- 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 +3 -0
- package/dist/runtime/theme/{app.mjs → app.js} +4 -1
- package/dist/runtime/theme/badge.d.ts +45 -21
- package/dist/runtime/theme/{badge.mjs → badge.js} +2 -2
- package/dist/runtime/theme/button-group.d.ts +2 -2
- package/dist/runtime/theme/button.d.ts +57 -111
- 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 +45 -12
- package/dist/runtime/theme/{chip.mjs → chip.js} +5 -7
- 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 +31 -27
- package/dist/runtime/theme/index.js +31 -0
- package/dist/runtime/theme/input-number.d.ts +135 -0
- package/dist/runtime/theme/input-number.js +92 -0
- package/dist/runtime/theme/input.d.ts +71 -99
- package/dist/runtime/theme/{input.mjs → input.js} +14 -14
- 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/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 +84 -99
- package/dist/runtime/theme/{select.mjs → select.js} +17 -17
- package/dist/runtime/theme/separator.d.ts +95 -0
- package/dist/runtime/theme/separator.js +53 -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} +2 -2
- package/dist/runtime/theme/table.d.ts +89 -0
- package/dist/runtime/theme/table.js +35 -0
- package/dist/runtime/theme/tabs.d.ts +69 -52
- package/dist/runtime/theme/{tabs.mjs → tabs.js} +11 -11
- 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} +1 -1
- 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 +31 -27
- package/dist/runtime/types/index.d.ts +4 -4
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/utils/index.d.ts +3 -3
- package/dist/runtime/utils/{index.mjs → index.js} +3 -3
- 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/vue/stubs.d.ts +9 -0
- package/dist/runtime/vue/stubs.js +16 -0
- package/dist/shared/{ui.D4zm1r0C.mjs → ui.d1728164.mjs} +1 -1
- package/dist/shared/ui.d1728164.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 +37 -1
- 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 +37 -36
- package/dist/index.d.ts +0 -29
- package/dist/index.mjs +0 -29
- package/dist/nuxt.mjs.map +0 -1
- 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.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/{defineInjection.mjs → defineInjection.js} +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
|
@@ -14,17 +14,17 @@ export default ct(
|
|
|
14
14
|
variants: {
|
|
15
15
|
variant: {
|
|
16
16
|
"solid": {
|
|
17
|
-
root: "color-ui-
|
|
17
|
+
root: "color-ui-cx bg-ui-fill",
|
|
18
18
|
close: "ui-base-inverted"
|
|
19
19
|
},
|
|
20
20
|
"outline": {
|
|
21
|
-
root: "color-ui-content bg-
|
|
21
|
+
root: "color-ui-content bg-ui-cx ring ring-inset ring-ui-fill/30"
|
|
22
22
|
},
|
|
23
23
|
"soft": {
|
|
24
|
-
root: "color-ui-content bg-
|
|
24
|
+
root: "color-ui-content bg-soft-ui-fill/10"
|
|
25
25
|
},
|
|
26
26
|
"soft-outline": {
|
|
27
|
-
root: "color-ui-content bg-
|
|
27
|
+
root: "color-ui-content bg-soft-ui-fill/10 ring ring-inset ring-ui-fill/30"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
orientation: {
|
|
@@ -4,12 +4,15 @@ declare const _default: {
|
|
|
4
4
|
loading: string;
|
|
5
5
|
check: string;
|
|
6
6
|
indeterminate: string;
|
|
7
|
+
up: string;
|
|
7
8
|
down: string;
|
|
8
9
|
arrowLeft: string;
|
|
9
10
|
arrowRight: string;
|
|
10
11
|
doubleLeft: string;
|
|
11
12
|
doubleRight: string;
|
|
12
13
|
ellipsis: string;
|
|
14
|
+
plus: string;
|
|
15
|
+
minus: string;
|
|
13
16
|
};
|
|
14
17
|
};
|
|
15
18
|
export default _default;
|
|
@@ -5,11 +5,14 @@ export default {
|
|
|
5
5
|
loading: "i-mdi-loading",
|
|
6
6
|
check: "i-mdi-check-bold",
|
|
7
7
|
indeterminate: "i-mdi-minus-thick",
|
|
8
|
+
up: "i-mdi-chevron-up",
|
|
8
9
|
down: "i-mdi-chevron-down",
|
|
9
10
|
arrowLeft: "i-mdi-chevron-left",
|
|
10
11
|
arrowRight: "i-mdi-chevron-right",
|
|
11
12
|
doubleLeft: "i-mdi-chevron-double-left",
|
|
12
13
|
doubleRight: "i-mdi-chevron-double-right",
|
|
13
|
-
ellipsis: "i-mdi-dots-horizontal"
|
|
14
|
+
ellipsis: "i-mdi-dots-horizontal",
|
|
15
|
+
plus: "i-mdi-plus",
|
|
16
|
+
minus: "i-mdi-minus"
|
|
14
17
|
}
|
|
15
18
|
};
|
|
@@ -50,31 +50,55 @@ declare const _default: {
|
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
-
compoundVariants: ({
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
54
|
+
size: {
|
|
55
|
+
xs: {
|
|
56
|
+
root: string;
|
|
57
|
+
};
|
|
58
|
+
sm: {
|
|
59
|
+
root: string;
|
|
60
|
+
};
|
|
61
|
+
md: {
|
|
62
|
+
root: string;
|
|
63
|
+
};
|
|
64
|
+
lg: {
|
|
65
|
+
root: string;
|
|
66
|
+
};
|
|
67
|
+
xl: {
|
|
68
|
+
root: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
position: {
|
|
72
|
+
'top-right': {
|
|
73
|
+
base: string;
|
|
74
|
+
};
|
|
75
|
+
'bottom-right': {
|
|
76
|
+
base: string;
|
|
77
|
+
};
|
|
78
|
+
'top-left': {
|
|
79
|
+
base: string;
|
|
80
|
+
};
|
|
81
|
+
'bottom-left': {
|
|
82
|
+
base: string;
|
|
83
|
+
};
|
|
58
84
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
base: string;
|
|
85
|
+
show: {
|
|
86
|
+
true: {
|
|
87
|
+
base: string;
|
|
88
|
+
};
|
|
64
89
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
inset: false;
|
|
68
|
-
class: {
|
|
69
|
-
base: string;
|
|
90
|
+
inset: {
|
|
91
|
+
true: "";
|
|
70
92
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
base: string;
|
|
93
|
+
standalone: {
|
|
94
|
+
false: {
|
|
95
|
+
base: string;
|
|
96
|
+
};
|
|
76
97
|
};
|
|
77
|
-
}
|
|
98
|
+
}, {
|
|
99
|
+
root: string;
|
|
100
|
+
base: string[];
|
|
101
|
+
}, undefined>;
|
|
78
102
|
defaultVariants: {
|
|
79
103
|
size: "md";
|
|
80
104
|
};
|
|
@@ -5,8 +5,8 @@ export default ct(
|
|
|
5
5
|
slots: {
|
|
6
6
|
root: "relative inline-flex items-center justify-center shrink-0",
|
|
7
7
|
base: [
|
|
8
|
-
"inline-block rounded-full ring ring-ui-
|
|
9
|
-
"h-1.2em min-w-1.2em p-0.2em text-0.8em bg-
|
|
8
|
+
"inline-block rounded-full ring ring-ui-cx flex items-center justify-center color-ui-cx font-medium whitespace-nowrap",
|
|
9
|
+
"h-1.2em min-w-1.2em p-0.2em text-0.8em bg-ui-fill"
|
|
10
10
|
]
|
|
11
11
|
},
|
|
12
12
|
variants: {
|
|
@@ -14,7 +14,7 @@ declare const _default: {
|
|
|
14
14
|
vertical: "flex flex-col -space-y-px";
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
compoundVariants: import("@byyuurin/ui-kit
|
|
17
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
18
18
|
size: {
|
|
19
19
|
xs: "";
|
|
20
20
|
sm: "";
|
|
@@ -27,7 +27,7 @@ declare const _default: {
|
|
|
27
27
|
vertical: "flex flex-col -space-y-px";
|
|
28
28
|
};
|
|
29
29
|
}, undefined, "relative">;
|
|
30
|
-
defaultVariants: import("@byyuurin/ui-kit
|
|
30
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
31
31
|
size: {
|
|
32
32
|
xs: "";
|
|
33
33
|
sm: "";
|
|
@@ -65,124 +65,70 @@ declare const _default: {
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
-
compoundVariants: ({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
};
|
|
89
|
-
active?: undefined;
|
|
90
|
-
variant?: undefined;
|
|
91
|
-
loading?: undefined;
|
|
92
|
-
prefix?: undefined;
|
|
93
|
-
suffix?: undefined;
|
|
94
|
-
} | {
|
|
95
|
-
active: true;
|
|
96
|
-
variant: "solid";
|
|
97
|
-
class: {
|
|
98
|
-
base: string;
|
|
99
|
-
label?: undefined;
|
|
100
|
-
prefixIcon?: undefined;
|
|
101
|
-
suffixIcon?: undefined;
|
|
68
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
69
|
+
variant: {
|
|
70
|
+
solid: {
|
|
71
|
+
base: string[];
|
|
72
|
+
};
|
|
73
|
+
outline: {
|
|
74
|
+
base: string[];
|
|
75
|
+
};
|
|
76
|
+
soft: {
|
|
77
|
+
base: string[];
|
|
78
|
+
};
|
|
79
|
+
'soft-outline': {
|
|
80
|
+
base: string[];
|
|
81
|
+
};
|
|
82
|
+
ghost: {
|
|
83
|
+
base: string[];
|
|
84
|
+
};
|
|
85
|
+
link: {
|
|
86
|
+
base: string[];
|
|
87
|
+
};
|
|
102
88
|
};
|
|
103
|
-
size
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
89
|
+
size: {
|
|
90
|
+
xs: {
|
|
91
|
+
base: string;
|
|
92
|
+
};
|
|
93
|
+
sm: {
|
|
94
|
+
base: string;
|
|
95
|
+
};
|
|
96
|
+
md: {
|
|
97
|
+
base: string;
|
|
98
|
+
};
|
|
99
|
+
lg: {
|
|
100
|
+
base: string;
|
|
101
|
+
};
|
|
102
|
+
xl: {
|
|
103
|
+
base: string;
|
|
104
|
+
};
|
|
115
105
|
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
prefix?: undefined;
|
|
119
|
-
suffix?: undefined;
|
|
120
|
-
} | {
|
|
121
|
-
active: true;
|
|
122
|
-
variant: ("soft" | "soft-outline")[];
|
|
123
|
-
class: {
|
|
124
|
-
base: string;
|
|
125
|
-
label?: undefined;
|
|
126
|
-
prefixIcon?: undefined;
|
|
127
|
-
suffixIcon?: undefined;
|
|
106
|
+
active: {
|
|
107
|
+
true: "";
|
|
128
108
|
};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
prefix?: undefined;
|
|
132
|
-
suffix?: undefined;
|
|
133
|
-
} | {
|
|
134
|
-
active: true;
|
|
135
|
-
variant: "ghost";
|
|
136
|
-
class: {
|
|
137
|
-
base: string;
|
|
138
|
-
label?: undefined;
|
|
139
|
-
prefixIcon?: undefined;
|
|
140
|
-
suffixIcon?: undefined;
|
|
109
|
+
prefix: {
|
|
110
|
+
true: "";
|
|
141
111
|
};
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
prefix?: undefined;
|
|
145
|
-
suffix?: undefined;
|
|
146
|
-
} | {
|
|
147
|
-
active: true;
|
|
148
|
-
variant: "link";
|
|
149
|
-
class: {
|
|
150
|
-
base: string;
|
|
151
|
-
label?: undefined;
|
|
152
|
-
prefixIcon?: undefined;
|
|
153
|
-
suffixIcon?: undefined;
|
|
112
|
+
suffix: {
|
|
113
|
+
true: "";
|
|
154
114
|
};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
prefix?: undefined;
|
|
158
|
-
suffix?: undefined;
|
|
159
|
-
} | {
|
|
160
|
-
loading: true;
|
|
161
|
-
prefix: true;
|
|
162
|
-
class: {
|
|
163
|
-
prefixIcon: string;
|
|
164
|
-
base?: undefined;
|
|
165
|
-
label?: undefined;
|
|
166
|
-
suffixIcon?: undefined;
|
|
115
|
+
loading: {
|
|
116
|
+
true: "";
|
|
167
117
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
suffix: true;
|
|
176
|
-
class: {
|
|
177
|
-
suffixIcon: string;
|
|
178
|
-
base?: undefined;
|
|
179
|
-
label?: undefined;
|
|
180
|
-
prefixIcon?: undefined;
|
|
118
|
+
groupOrientation: {
|
|
119
|
+
horizontal: {
|
|
120
|
+
base: string;
|
|
121
|
+
};
|
|
122
|
+
vertical: {
|
|
123
|
+
base: string;
|
|
124
|
+
};
|
|
181
125
|
};
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
126
|
+
}, {
|
|
127
|
+
base: string[];
|
|
128
|
+
label: string;
|
|
129
|
+
prefixIcon: string;
|
|
130
|
+
suffixIcon: string;
|
|
131
|
+
}, undefined>;
|
|
186
132
|
defaultVariants: {
|
|
187
133
|
size: "md";
|
|
188
134
|
};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
import { buttonGroupVariant } from "./button-group.js";
|
|
3
|
+
export default ct(
|
|
4
|
+
/* @unocss-include */
|
|
5
|
+
{
|
|
6
|
+
slots: {
|
|
7
|
+
base: [
|
|
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-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-cx bg-soft-ui-fill/85",
|
|
22
|
+
"hover:bg-soft-ui-fill/75 active:bg-soft-ui-fill/95",
|
|
23
|
+
"disabled:bg-soft-ui-fill/85 aria-disabled:bg-soft-ui-fill/85",
|
|
24
|
+
"hover:disabled:bg-soft-ui-fill/85 hover:aria-disabled:bg-soft-ui-fill/85"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"outline": {
|
|
28
|
+
base: [
|
|
29
|
+
"color-ui-fill/80 bg-ui-cx ring ring-inset ring-ui-fill/30",
|
|
30
|
+
"hover:bg-soft-ui-fill/5 active:bg-soft-ui-fill/10",
|
|
31
|
+
"disabled:bg-ui-cx aria-disabled:bg-ui-cx",
|
|
32
|
+
"hover:disabled:bg-ui-cx hover:aria-disabled:bg-ui-cx"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"soft": {
|
|
36
|
+
base: [
|
|
37
|
+
"color-ui-content/80 bg-soft-ui-fill/15",
|
|
38
|
+
"hover:bg-soft-ui-fill/10 hover:color-ui-content/80 active:bg-soft-ui-fill/25 active:color-ui-content/90",
|
|
39
|
+
"disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-content/80 aria-disabled:color-ui-content/80",
|
|
40
|
+
"hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-content/80 hover:aria-disabled:color-ui-content/80"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"soft-outline": {
|
|
44
|
+
base: [
|
|
45
|
+
"color-ui-content/80 bg-soft-ui-fill/15 ring ring-inset ring-ui-fill/30",
|
|
46
|
+
"hover:bg-soft-ui-fill/10 hover:color-ui-content/80 active:bg-soft-ui-fill/25 active:color-ui-content/90",
|
|
47
|
+
"disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-content/80 aria-disabled:color-ui-content/80",
|
|
48
|
+
"hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-content/80 hover:aria-disabled:color-ui-content/80"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"ghost": {
|
|
52
|
+
base: [
|
|
53
|
+
"color-ui-fill/80 bg-transparent",
|
|
54
|
+
"hover:bg-soft-ui-fill/5 hover:color-ui-fill/80 active:bg-soft-ui-fill/10 active:color-ui-fill/90",
|
|
55
|
+
"disabled:bg-transparent aria-disabled:bg-transparent disabled:hover:bg-transparent aria-disabled:hover:bg-transparent disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80",
|
|
56
|
+
"hover:disabled:bg-transparent hover:aria-disabled:bg-transparent hover:disabled:hover:bg-transparent hover:aria-disabled:hover:bg-transparent hover:disabled:color-ui-fill/80 hover:aria-disabled:color-ui-fill/80"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"link": {
|
|
60
|
+
base: [
|
|
61
|
+
"color-ui-fill/80 bg-transparent",
|
|
62
|
+
"hover:color-ui-fill/60 active:color-ui-fill",
|
|
63
|
+
"disabled:color-ui-fill aria-disabled:color-ui-fill",
|
|
64
|
+
"hover:disabled:color-ui-fill hover:aria-disabled:color-ui-fill"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
size: {
|
|
69
|
+
xs: {
|
|
70
|
+
base: "text-xs"
|
|
71
|
+
},
|
|
72
|
+
sm: {
|
|
73
|
+
base: "text-sm"
|
|
74
|
+
},
|
|
75
|
+
md: {
|
|
76
|
+
base: "text-base"
|
|
77
|
+
},
|
|
78
|
+
lg: {
|
|
79
|
+
base: "text-lg"
|
|
80
|
+
},
|
|
81
|
+
xl: {
|
|
82
|
+
base: "text-xl"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
active: {
|
|
86
|
+
true: ""
|
|
87
|
+
},
|
|
88
|
+
prefix: {
|
|
89
|
+
true: ""
|
|
90
|
+
},
|
|
91
|
+
suffix: {
|
|
92
|
+
true: ""
|
|
93
|
+
},
|
|
94
|
+
loading: {
|
|
95
|
+
true: ""
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
compoundVariants: [
|
|
99
|
+
{
|
|
100
|
+
size: ["xs", "sm", "md"],
|
|
101
|
+
class: {
|
|
102
|
+
base: "p-1.5",
|
|
103
|
+
label: "px-1"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
size: ["lg", "xl"],
|
|
108
|
+
class: {
|
|
109
|
+
base: "p-2.5",
|
|
110
|
+
label: "px-2"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
active: true,
|
|
115
|
+
variant: "solid",
|
|
116
|
+
class: {
|
|
117
|
+
base: "bg-soft-ui-fill/95 hover:bg-soft-ui-fill/95"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
active: true,
|
|
122
|
+
variant: "outline",
|
|
123
|
+
class: {
|
|
124
|
+
base: "bg-soft-ui-fill/10 hover:bg-soft-ui-fill/30"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
active: true,
|
|
129
|
+
variant: ["soft", "soft-outline"],
|
|
130
|
+
class: {
|
|
131
|
+
base: "color-ui-content/90 bg-soft-ui-fill/25 hover:color-ui-content/90 hover:bg-soft-ui-fill/25"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
active: true,
|
|
136
|
+
variant: "ghost",
|
|
137
|
+
class: {
|
|
138
|
+
base: "color-ui-fill/90 bg-soft-ui-fill/10 hover:color-ui-fill/90 hover:bg-soft-ui-fill/10"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
active: true,
|
|
143
|
+
variant: "link",
|
|
144
|
+
class: {
|
|
145
|
+
base: "color-ui-fill hover:color-ui-fill"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
loading: true,
|
|
150
|
+
prefix: true,
|
|
151
|
+
class: { prefixIcon: "animate-spin" }
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
loading: true,
|
|
155
|
+
prefix: false,
|
|
156
|
+
suffix: true,
|
|
157
|
+
class: { suffixIcon: "animate-spin" }
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
defaultVariants: {
|
|
161
|
+
size: "md"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
);
|
|
@@ -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
|
}
|