@byyuurin/ui 0.0.5 → 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 +15 -11
- package/dist/module.cjs +5 -0
- package/dist/module.json +12 -0
- package/dist/{nuxt.mjs → module.mjs} +7 -6
- 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/App.vue +1 -1
- package/dist/runtime/components/Badge.vue +0 -1
- package/dist/runtime/components/Button.vue +14 -12
- package/dist/runtime/components/ButtonGroup.vue +47 -0
- package/dist/runtime/components/Card.vue +9 -6
- package/dist/runtime/components/Carousel.vue +310 -0
- package/dist/runtime/components/Checkbox.vue +3 -4
- package/dist/runtime/components/Chip.vue +9 -4
- package/dist/runtime/components/Collapsible.vue +56 -0
- package/dist/runtime/components/Drawer.vue +4 -2
- package/dist/runtime/components/Input.vue +12 -8
- 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 +2 -4
- package/dist/runtime/components/Pagination.vue +167 -0
- package/dist/runtime/components/PinInput.vue +0 -1
- package/dist/runtime/components/RadioGroup.vue +0 -1
- package/dist/runtime/components/ScrollArea.vue +1 -1
- package/dist/runtime/components/Select.vue +9 -5
- package/dist/runtime/components/Separator.vue +63 -0
- package/dist/runtime/components/Slider.vue +0 -1
- package/dist/runtime/components/Switch.vue +4 -6
- package/dist/runtime/components/Table.vue +292 -0
- package/dist/runtime/components/Tabs.vue +17 -18
- package/dist/runtime/components/Textarea.vue +0 -1
- package/dist/runtime/components/Toast.vue +21 -10
- package/dist/runtime/components/Toaster.vue +4 -39
- package/dist/runtime/composables/useButtonGroup.d.ts +13 -0
- package/dist/runtime/composables/useButtonGroup.js +14 -0
- 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 +4 -4
- package/dist/runtime/composables/{useTheme.mjs → useTheme.js} +4 -4
- package/dist/runtime/composables/useToast.d.ts +4 -4
- package/dist/runtime/composables/{useToast.mjs → useToast.js} +19 -6
- package/dist/runtime/index.d.ts +34 -0
- package/dist/runtime/index.js +34 -0
- package/dist/runtime/theme/accordion.d.ts +22 -5
- package/dist/runtime/theme/{accordion.mjs → accordion.js} +2 -2
- package/dist/runtime/theme/alert.d.ts +41 -1
- package/dist/runtime/theme/{alert.mjs → alert.js} +4 -4
- package/dist/runtime/theme/app.d.ts +8 -0
- package/dist/runtime/theme/app.js +18 -0
- package/dist/runtime/theme/badge.d.ts +48 -21
- package/dist/runtime/theme/{badge.mjs → badge.js} +5 -2
- package/dist/runtime/theme/button-group.d.ts +66 -0
- package/dist/runtime/theme/button-group.js +42 -0
- package/dist/runtime/theme/button.d.ts +68 -111
- package/dist/runtime/theme/button.js +164 -0
- package/dist/runtime/theme/card.d.ts +38 -19
- package/dist/runtime/theme/card.js +37 -0
- package/dist/runtime/theme/carousel.d.ts +113 -0
- package/dist/runtime/theme/carousel.js +43 -0
- package/dist/runtime/theme/checkbox.d.ts +4 -1
- package/dist/runtime/theme/{checkbox.mjs → checkbox.js} +7 -4
- package/dist/runtime/theme/chip.d.ts +56 -12
- package/dist/runtime/theme/{chip.mjs → chip.js} +10 -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 +71 -33
- package/dist/runtime/theme/{drawer.mjs → drawer.js} +33 -22
- package/dist/runtime/theme/index.d.ts +31 -24
- 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 +94 -111
- package/dist/runtime/theme/input.js +151 -0
- package/dist/runtime/theme/link.d.ts +14 -1
- package/dist/runtime/theme/{link.mjs → link.js} +1 -1
- package/dist/runtime/theme/modal.d.ts +33 -7
- package/dist/runtime/theme/{modal.mjs → modal.js} +8 -10
- package/dist/runtime/theme/pagination.d.ts +56 -0
- package/dist/runtime/theme/pagination.js +13 -0
- package/dist/runtime/theme/pinInput.d.ts +45 -42
- package/dist/runtime/theme/{pinInput.mjs → pinInput.js} +14 -11
- package/dist/runtime/theme/popover.d.ts +16 -5
- package/dist/runtime/theme/{radioGroup.d.ts → radio-group.d.ts} +4 -1
- package/dist/runtime/theme/{radioGroup.mjs → radio-group.js} +3 -0
- package/dist/runtime/theme/scroll-area.d.ts +73 -0
- package/dist/runtime/theme/{scrollArea.mjs → scroll-area.js} +2 -2
- package/dist/runtime/theme/select.d.ts +95 -99
- package/dist/runtime/theme/{select.mjs → select.js} +22 -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 +4 -1
- package/dist/runtime/theme/{slider.mjs → slider.js} +6 -3
- package/dist/runtime/theme/switch.d.ts +4 -1
- package/dist/runtime/theme/{switch.mjs → switch.js} +5 -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 +72 -52
- package/dist/runtime/theme/{tabs.mjs → tabs.js} +15 -12
- package/dist/runtime/theme/textarea.d.ts +46 -37
- package/dist/runtime/theme/{textarea.mjs → textarea.js} +14 -11
- package/dist/runtime/theme/toast.d.ts +45 -7
- package/dist/runtime/theme/{toast.mjs → toast.js} +12 -7
- package/dist/runtime/theme/toaster.d.ts +89 -25
- package/dist/runtime/theme/{toaster.mjs → toaster.js} +5 -0
- package/dist/runtime/theme/tooltip.d.ts +20 -7
- package/dist/runtime/theme/{tooltip.mjs → tooltip.js} +2 -2
- package/dist/runtime/types/components.d.ts +7 -1
- package/dist/runtime/types/index.d.ts +4 -4
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/utils.d.ts +1 -1
- 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 +2 -2
- package/dist/runtime/vue/stubs.d.ts +9 -0
- package/dist/runtime/vue/stubs.js +16 -0
- package/dist/shared/ui.d1728164.mjs +4 -0
- 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-preset.d.ts → unocss.d.mts} +10 -15
- package/dist/{unocss-preset.d.mts → unocss.d.ts} +10 -15
- package/dist/{unocss-preset.mjs → unocss.mjs} +53 -21
- package/dist/unocss.mjs.map +1 -0
- package/dist/unplugin.d.mts +4 -3
- package/dist/unplugin.d.ts +4 -3
- package/dist/unplugin.mjs +49 -5
- package/dist/unplugin.mjs.map +1 -1
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.mjs +7 -5
- package/dist/vite.mjs.map +1 -1
- package/package.json +59 -45
- package/dist/index.d.ts +0 -26
- package/dist/index.mjs +0 -26
- package/dist/nuxt.mjs.map +0 -1
- package/dist/runtime/theme/app.mjs +0 -10
- package/dist/runtime/theme/button.mjs +0 -143
- package/dist/runtime/theme/card.mjs +0 -14
- package/dist/runtime/theme/index.mjs +0 -24
- package/dist/runtime/theme/input.mjs +0 -146
- package/dist/runtime/theme/scrollArea.d.ts +0 -51
- package/dist/runtime/types/index.mjs +0 -2
- package/dist/runtime/utils/link.mjs +0 -4
- package/dist/shared/ui.CzDyI29e.mjs +0 -8
- package/dist/shared/ui.CzDyI29e.mjs.map +0 -1
- package/dist/unocss-preset.mjs.map +0 -1
- /package/{LICENSE.md → LICENSE} +0 -0
- /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/theme/{popover.mjs → popover.js} +0 -0
- /package/dist/runtime/types/{components.mjs → components.js} +0 -0
- /package/dist/runtime/types/{utils.mjs → utils.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
|
@@ -5,7 +5,7 @@ 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-
|
|
8
|
+
"inline-block rounded-full ring ring-ui-cx flex items-center justify-center color-ui-cx font-medium whitespace-nowrap",
|
|
9
9
|
"h-1.2em min-w-1.2em p-0.2em text-0.8em bg-ui-fill"
|
|
10
10
|
]
|
|
11
11
|
},
|
|
@@ -84,6 +84,9 @@ export default ct(
|
|
|
84
84
|
base: "translate-y-1/2 -translate-x-1/2 transform"
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
]
|
|
87
|
+
],
|
|
88
|
+
defaultVariants: {
|
|
89
|
+
size: "md"
|
|
90
|
+
}
|
|
88
91
|
}
|
|
89
92
|
);
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: string;
|
|
3
|
+
slots: undefined;
|
|
4
|
+
variants: {
|
|
5
|
+
size: {
|
|
6
|
+
xs: "";
|
|
7
|
+
sm: "";
|
|
8
|
+
md: "";
|
|
9
|
+
lg: "";
|
|
10
|
+
xl: "";
|
|
11
|
+
};
|
|
12
|
+
orientation: {
|
|
13
|
+
horizontal: "inline-flex -space-x-px";
|
|
14
|
+
vertical: "flex flex-col -space-y-px";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
18
|
+
size: {
|
|
19
|
+
xs: "";
|
|
20
|
+
sm: "";
|
|
21
|
+
md: "";
|
|
22
|
+
lg: "";
|
|
23
|
+
xl: "";
|
|
24
|
+
};
|
|
25
|
+
orientation: {
|
|
26
|
+
horizontal: "inline-flex -space-x-px";
|
|
27
|
+
vertical: "flex flex-col -space-y-px";
|
|
28
|
+
};
|
|
29
|
+
}, undefined, "relative">;
|
|
30
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
31
|
+
size: {
|
|
32
|
+
xs: "";
|
|
33
|
+
sm: "";
|
|
34
|
+
md: "";
|
|
35
|
+
lg: "";
|
|
36
|
+
xl: "";
|
|
37
|
+
};
|
|
38
|
+
orientation: {
|
|
39
|
+
horizontal: "inline-flex -space-x-px";
|
|
40
|
+
vertical: "flex flex-col -space-y-px";
|
|
41
|
+
};
|
|
42
|
+
}, undefined>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
export declare const buttonGroupVariant: {
|
|
46
|
+
groupOrientation: {
|
|
47
|
+
horizontal: {
|
|
48
|
+
base: string;
|
|
49
|
+
};
|
|
50
|
+
vertical: {
|
|
51
|
+
base: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const buttonGroupVariantWithRoot: {
|
|
56
|
+
groupOrientation: {
|
|
57
|
+
horizontal: {
|
|
58
|
+
root: string;
|
|
59
|
+
base: string;
|
|
60
|
+
};
|
|
61
|
+
vertical: {
|
|
62
|
+
root: string;
|
|
63
|
+
base: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
base: "relative",
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
xs: "",
|
|
9
|
+
sm: "",
|
|
10
|
+
md: "",
|
|
11
|
+
lg: "",
|
|
12
|
+
xl: ""
|
|
13
|
+
},
|
|
14
|
+
orientation: {
|
|
15
|
+
horizontal: "inline-flex -space-x-px",
|
|
16
|
+
vertical: "flex flex-col -space-y-px"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export const buttonGroupVariant = {
|
|
22
|
+
groupOrientation: {
|
|
23
|
+
horizontal: {
|
|
24
|
+
base: "not-only-child:first:rounded-e-none not-only-child:last:rounded-s-none not-last:not-first:rounded-none"
|
|
25
|
+
},
|
|
26
|
+
vertical: {
|
|
27
|
+
base: "not-only-child:first:rounded-b-none not-only-child:last:rounded-t-none not-last:not-first:rounded-none"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export const buttonGroupVariantWithRoot = {
|
|
32
|
+
groupOrientation: {
|
|
33
|
+
horizontal: {
|
|
34
|
+
root: "group",
|
|
35
|
+
base: "group-not-only-child:group-first:rounded-e-none group-not-only-child:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
|
|
36
|
+
},
|
|
37
|
+
vertical: {
|
|
38
|
+
root: "group",
|
|
39
|
+
base: "group-not-only-child:group-first:rounded-b-none group-not-only-child:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
@@ -56,124 +56,81 @@ declare const _default: {
|
|
|
56
56
|
loading: {
|
|
57
57
|
true: "";
|
|
58
58
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
suffixIcon?: undefined;
|
|
67
|
-
};
|
|
68
|
-
active?: undefined;
|
|
69
|
-
variant?: undefined;
|
|
70
|
-
loading?: undefined;
|
|
71
|
-
prefix?: undefined;
|
|
72
|
-
suffix?: undefined;
|
|
73
|
-
} | {
|
|
74
|
-
size: ("lg" | "xl")[];
|
|
75
|
-
class: {
|
|
76
|
-
base: string;
|
|
77
|
-
label: string;
|
|
78
|
-
prefixIcon?: undefined;
|
|
79
|
-
suffixIcon?: undefined;
|
|
59
|
+
groupOrientation: {
|
|
60
|
+
horizontal: {
|
|
61
|
+
base: string;
|
|
62
|
+
};
|
|
63
|
+
vertical: {
|
|
64
|
+
base: string;
|
|
65
|
+
};
|
|
80
66
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
67
|
+
};
|
|
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
|
+
};
|
|
94
88
|
};
|
|
95
|
-
size
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
+
};
|
|
107
105
|
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
prefix?: undefined;
|
|
111
|
-
suffix?: undefined;
|
|
112
|
-
} | {
|
|
113
|
-
active: true;
|
|
114
|
-
variant: ("soft" | "soft-outline")[];
|
|
115
|
-
class: {
|
|
116
|
-
base: string;
|
|
117
|
-
label?: undefined;
|
|
118
|
-
prefixIcon?: undefined;
|
|
119
|
-
suffixIcon?: undefined;
|
|
106
|
+
active: {
|
|
107
|
+
true: "";
|
|
120
108
|
};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
prefix?: undefined;
|
|
124
|
-
suffix?: undefined;
|
|
125
|
-
} | {
|
|
126
|
-
active: true;
|
|
127
|
-
variant: "ghost";
|
|
128
|
-
class: {
|
|
129
|
-
base: string;
|
|
130
|
-
label?: undefined;
|
|
131
|
-
prefixIcon?: undefined;
|
|
132
|
-
suffixIcon?: undefined;
|
|
109
|
+
prefix: {
|
|
110
|
+
true: "";
|
|
133
111
|
};
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
prefix?: undefined;
|
|
137
|
-
suffix?: undefined;
|
|
138
|
-
} | {
|
|
139
|
-
active: true;
|
|
140
|
-
variant: "link";
|
|
141
|
-
class: {
|
|
142
|
-
base: string;
|
|
143
|
-
label?: undefined;
|
|
144
|
-
prefixIcon?: undefined;
|
|
145
|
-
suffixIcon?: undefined;
|
|
112
|
+
suffix: {
|
|
113
|
+
true: "";
|
|
146
114
|
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
prefix?: undefined;
|
|
150
|
-
suffix?: undefined;
|
|
151
|
-
} | {
|
|
152
|
-
loading: true;
|
|
153
|
-
prefix: true;
|
|
154
|
-
class: {
|
|
155
|
-
prefixIcon: string;
|
|
156
|
-
base?: undefined;
|
|
157
|
-
label?: undefined;
|
|
158
|
-
suffixIcon?: undefined;
|
|
115
|
+
loading: {
|
|
116
|
+
true: "";
|
|
159
117
|
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
suffix: true;
|
|
168
|
-
class: {
|
|
169
|
-
suffixIcon: string;
|
|
170
|
-
base?: undefined;
|
|
171
|
-
label?: undefined;
|
|
172
|
-
prefixIcon?: undefined;
|
|
118
|
+
groupOrientation: {
|
|
119
|
+
horizontal: {
|
|
120
|
+
base: string;
|
|
121
|
+
};
|
|
122
|
+
vertical: {
|
|
123
|
+
base: string;
|
|
124
|
+
};
|
|
173
125
|
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
126
|
+
}, {
|
|
127
|
+
base: string[];
|
|
128
|
+
label: string;
|
|
129
|
+
prefixIcon: string;
|
|
130
|
+
suffixIcon: string;
|
|
131
|
+
}, undefined>;
|
|
132
|
+
defaultVariants: {
|
|
133
|
+
size: "md";
|
|
134
|
+
};
|
|
178
135
|
};
|
|
179
136
|
export default _default;
|
|
@@ -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,5 +55,8 @@ declare const _default: {
|
|
|
39
55
|
title: string;
|
|
40
56
|
description: string;
|
|
41
57
|
}, undefined>;
|
|
58
|
+
defaultVariants: {
|
|
59
|
+
variant: "outline";
|
|
60
|
+
};
|
|
42
61
|
};
|
|
43
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
|
+
);
|