@byyuurin/ui 0.0.7 → 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/dist/module.json +1 -1
- package/dist/module.mjs +5 -5
- package/dist/module.mjs.map +1 -1
- package/dist/runtime/app/injections.d.ts +16 -0
- package/dist/runtime/app/injections.js +31 -0
- package/dist/runtime/components/Accordion.vue +20 -20
- package/dist/runtime/components/Alert.vue +22 -15
- 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 +13 -13
- package/dist/runtime/components/ButtonGroup.vue +12 -10
- package/dist/runtime/components/Card.vue +7 -2
- package/dist/runtime/components/Carousel.vue +19 -12
- package/dist/runtime/components/Checkbox.vue +13 -9
- package/dist/runtime/components/Chip.vue +17 -12
- package/dist/runtime/components/Collapsible.vue +3 -3
- package/dist/runtime/components/Drawer.vue +14 -15
- package/dist/runtime/components/Input.vue +24 -24
- package/dist/runtime/components/InputNumber.vue +7 -5
- package/dist/runtime/components/Kbd.vue +51 -0
- package/dist/runtime/components/Link.vue +10 -10
- package/dist/runtime/components/LinkBase.vue +1 -1
- package/dist/runtime/components/Modal.vue +11 -8
- 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/Skeleton.vue +33 -0
- package/dist/runtime/components/Slider.vue +6 -6
- package/dist/runtime/components/Switch.vue +11 -12
- package/dist/runtime/components/Table.vue +19 -11
- package/dist/runtime/components/Tabs.vue +22 -18
- package/dist/runtime/components/Textarea.vue +11 -11
- package/dist/runtime/components/Toast.vue +14 -13
- package/dist/runtime/components/Toaster.vue +4 -4
- 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.js +1 -6
- package/dist/runtime/composables/useComponentIcons.d.ts +9 -9
- package/dist/runtime/composables/useComponentIcons.js +11 -11
- package/dist/runtime/composables/useKbd.d.ts +35 -0
- package/dist/runtime/composables/useKbd.js +49 -0
- package/dist/runtime/composables/useLocale.d.ts +8 -0
- package/dist/runtime/composables/useLocale.js +22 -0
- package/dist/runtime/composables/useModal.d.ts +1 -6
- package/dist/runtime/composables/useModal.js +1 -6
- package/dist/runtime/composables/useTheme.d.ts +0 -4
- package/dist/runtime/composables/useTheme.js +2 -12
- package/dist/runtime/index.d.ts +6 -0
- package/dist/runtime/index.js +6 -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 +6 -6
- package/dist/runtime/theme/accordion.js +2 -2
- package/dist/runtime/theme/app.d.ts +6 -6
- package/dist/runtime/theme/app.js +7 -7
- package/dist/runtime/theme/avatar-group.d.ts +52 -0
- package/dist/runtime/theme/avatar-group.js +32 -0
- package/dist/runtime/theme/avatar.d.ts +56 -0
- package/dist/runtime/theme/avatar.js +34 -0
- package/dist/runtime/theme/breadcrumb.d.ts +67 -0
- package/dist/runtime/theme/breadcrumb.js +44 -0
- package/dist/runtime/theme/button.d.ts +8 -8
- package/dist/runtime/theme/button.js +9 -9
- package/dist/runtime/theme/chip.d.ts +4 -4
- package/dist/runtime/theme/chip.js +2 -2
- package/dist/runtime/theme/drawer.js +2 -2
- package/dist/runtime/theme/index.d.ts +6 -0
- package/dist/runtime/theme/index.js +6 -0
- package/dist/runtime/theme/input-number.d.ts +6 -0
- package/dist/runtime/theme/input-number.js +5 -2
- package/dist/runtime/theme/input.d.ts +12 -12
- package/dist/runtime/theme/input.js +12 -12
- package/dist/runtime/theme/kbd.d.ts +39 -0
- package/dist/runtime/theme/kbd.js +26 -0
- package/dist/runtime/theme/modal.js +2 -2
- package/dist/runtime/theme/popover.js +1 -1
- package/dist/runtime/theme/progress.d.ts +122 -0
- package/dist/runtime/theme/progress.js +95 -0
- package/dist/runtime/theme/select.d.ts +18 -18
- package/dist/runtime/theme/select.js +16 -16
- package/dist/runtime/theme/skeleton.d.ts +8 -0
- package/dist/runtime/theme/skeleton.js +7 -0
- package/dist/runtime/theme/switch.js +1 -1
- package/dist/runtime/theme/tabs.d.ts +2 -2
- package/dist/runtime/theme/tabs.js +1 -1
- package/dist/runtime/theme/toast.js +2 -2
- package/dist/runtime/theme/tooltip.js +1 -1
- package/dist/runtime/types/components.d.ts +6 -0
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -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/utils/index.d.ts +6 -1
- package/dist/runtime/utils/index.js +6 -4
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/runtime/utils/translator.d.ts +18 -0
- package/dist/runtime/utils/translator.js +8 -0
- package/dist/shared/ui.ba24b380.mjs +4 -0
- package/dist/shared/ui.ba24b380.mjs.map +1 -0
- package/dist/unplugin.mjs +3 -12
- package/dist/unplugin.mjs.map +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +24 -13
- package/dist/shared/ui.d1728164.mjs +0 -4
- package/dist/shared/ui.d1728164.mjs.map +0 -1
- /package/dist/runtime/{composables/defineInjection.d.ts → utils/vue.d.ts} +0 -0
- /package/dist/runtime/{composables/defineInjection.js → utils/vue.js} +0 -0
|
@@ -3,8 +3,8 @@ export default ct(
|
|
|
3
3
|
/* @unocss-include */
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
|
-
overlay: "fixed inset-0 bg-black/40",
|
|
7
|
-
content: "fixed bg-ui-cx ring ring-ui-cb/5 flex focus:outline-none",
|
|
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
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",
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export { default as accordion } from './accordion.js';
|
|
2
2
|
export { default as alert } from './alert.js';
|
|
3
3
|
export { default as app } from './app.js';
|
|
4
|
+
export { default as avatar } from './avatar.js';
|
|
5
|
+
export { default as avatarGroup } from './avatar-group.js';
|
|
4
6
|
export { default as badge } from './badge.js';
|
|
7
|
+
export { default as breadcrumb } from './breadcrumb.js';
|
|
5
8
|
export { default as button } from './button.js';
|
|
6
9
|
export { default as buttonGroup } from './button-group.js';
|
|
7
10
|
export { default as card } from './card.js';
|
|
@@ -12,15 +15,18 @@ export { default as collapsible } from './collapsible.js';
|
|
|
12
15
|
export { default as drawer } from './drawer.js';
|
|
13
16
|
export { default as input } from './input.js';
|
|
14
17
|
export { default as inputNumber } from './input-number.js';
|
|
18
|
+
export { default as kbd } from './kbd.js';
|
|
15
19
|
export { default as link } from './link.js';
|
|
16
20
|
export { default as modal } from './modal.js';
|
|
17
21
|
export { default as pagination } from './pagination.js';
|
|
18
22
|
export { default as pinInput } from './pinInput.js';
|
|
19
23
|
export { default as popover } from './popover.js';
|
|
24
|
+
export { default as progress } from './progress.js';
|
|
20
25
|
export { default as radioGroup } from './radio-group.js';
|
|
21
26
|
export { default as scrollArea } from './scroll-area.js';
|
|
22
27
|
export { default as select } from './select.js';
|
|
23
28
|
export { default as separator } from './separator.js';
|
|
29
|
+
export { default as skeleton } from './skeleton.js';
|
|
24
30
|
export { default as slider } from './slider.js';
|
|
25
31
|
export { default as switch } from './switch.js';
|
|
26
32
|
export { default as table } from './table.js';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export { default as accordion } from "./accordion.js";
|
|
2
2
|
export { default as alert } from "./alert.js";
|
|
3
3
|
export { default as app } from "./app.js";
|
|
4
|
+
export { default as avatar } from "./avatar.js";
|
|
5
|
+
export { default as avatarGroup } from "./avatar-group.js";
|
|
4
6
|
export { default as badge } from "./badge.js";
|
|
7
|
+
export { default as breadcrumb } from "./breadcrumb.js";
|
|
5
8
|
export { default as button } from "./button.js";
|
|
6
9
|
export { default as buttonGroup } from "./button-group.js";
|
|
7
10
|
export { default as card } from "./card.js";
|
|
@@ -12,15 +15,18 @@ export { default as collapsible } from "./collapsible.js";
|
|
|
12
15
|
export { default as drawer } from "./drawer.js";
|
|
13
16
|
export { default as input } from "./input.js";
|
|
14
17
|
export { default as inputNumber } from "./input-number.js";
|
|
18
|
+
export { default as kbd } from "./kbd.js";
|
|
15
19
|
export { default as link } from "./link.js";
|
|
16
20
|
export { default as modal } from "./modal.js";
|
|
17
21
|
export { default as pagination } from "./pagination.js";
|
|
18
22
|
export { default as pinInput } from "./pinInput.js";
|
|
19
23
|
export { default as popover } from "./popover.js";
|
|
24
|
+
export { default as progress } from "./progress.js";
|
|
20
25
|
export { default as radioGroup } from "./radio-group.js";
|
|
21
26
|
export { default as scrollArea } from "./scroll-area.js";
|
|
22
27
|
export { default as select } from "./select.js";
|
|
23
28
|
export { default as separator } from "./separator.js";
|
|
29
|
+
export { default as skeleton } from "./skeleton.js";
|
|
24
30
|
export { default as slider } from "./slider.js";
|
|
25
31
|
export { default as switch } from "./switch.js";
|
|
26
32
|
export { default as table } from "./table.js";
|
|
@@ -58,6 +58,9 @@ declare const _default: {
|
|
|
58
58
|
decrement: string;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
+
underline: {
|
|
62
|
+
true: "";
|
|
63
|
+
};
|
|
61
64
|
highlight: {
|
|
62
65
|
true: {
|
|
63
66
|
base: string;
|
|
@@ -116,6 +119,9 @@ declare const _default: {
|
|
|
116
119
|
decrement: string;
|
|
117
120
|
};
|
|
118
121
|
};
|
|
122
|
+
underline: {
|
|
123
|
+
true: "";
|
|
124
|
+
};
|
|
119
125
|
highlight: {
|
|
120
126
|
true: {
|
|
121
127
|
base: string;
|
|
@@ -10,8 +10,8 @@ export default ct(
|
|
|
10
10
|
"focus:outline-none",
|
|
11
11
|
"disabled:cursor-not-allowed"
|
|
12
12
|
],
|
|
13
|
-
increment: "absolute flex items-center",
|
|
14
|
-
decrement: "absolute flex items-center"
|
|
13
|
+
increment: "absolute flex items-center ui-base",
|
|
14
|
+
decrement: "absolute flex items-center ui-base"
|
|
15
15
|
},
|
|
16
16
|
variants: {
|
|
17
17
|
size: {
|
|
@@ -37,6 +37,9 @@ export default ct(
|
|
|
37
37
|
decrement: "bottom-0 end-0 pe-0.5 [&>button]:py-0 scale-80"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
+
underline: {
|
|
41
|
+
true: ""
|
|
42
|
+
},
|
|
40
43
|
highlight: {
|
|
41
44
|
true: {
|
|
42
45
|
base: "ring ring-inset ring-ui-fill"
|
|
@@ -3,10 +3,10 @@ declare const _default: {
|
|
|
3
3
|
slots: {
|
|
4
4
|
base: string;
|
|
5
5
|
input: string[];
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
leading: string;
|
|
7
|
+
leadingIcon: string;
|
|
8
|
+
trailing: string;
|
|
9
|
+
trailingIcon: string;
|
|
10
10
|
};
|
|
11
11
|
variants: {
|
|
12
12
|
size: {
|
|
@@ -43,10 +43,10 @@ declare const _default: {
|
|
|
43
43
|
base: string;
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
leading: {
|
|
47
47
|
true: "";
|
|
48
48
|
};
|
|
49
|
-
|
|
49
|
+
trailing: {
|
|
50
50
|
true: "";
|
|
51
51
|
};
|
|
52
52
|
loading: {
|
|
@@ -107,10 +107,10 @@ declare const _default: {
|
|
|
107
107
|
base: string;
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
|
-
|
|
110
|
+
leading: {
|
|
111
111
|
true: "";
|
|
112
112
|
};
|
|
113
|
-
|
|
113
|
+
trailing: {
|
|
114
114
|
true: "";
|
|
115
115
|
};
|
|
116
116
|
loading: {
|
|
@@ -138,10 +138,10 @@ declare const _default: {
|
|
|
138
138
|
}, {
|
|
139
139
|
base: string;
|
|
140
140
|
input: string[];
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
leading: string;
|
|
142
|
+
leadingIcon: string;
|
|
143
|
+
trailing: string;
|
|
144
|
+
trailingIcon: string;
|
|
145
145
|
}, undefined>;
|
|
146
146
|
defaultVariants: {
|
|
147
147
|
size: "md";
|
|
@@ -10,10 +10,10 @@ export default ct(
|
|
|
10
10
|
"focus:outline-none",
|
|
11
11
|
"disabled:cursor-not-allowed"
|
|
12
12
|
],
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
leading: "flex items-center",
|
|
14
|
+
leadingIcon: "shrink-0 size-1.25em",
|
|
15
|
+
trailing: "flex items-center",
|
|
16
|
+
trailingIcon: "shrink-0 size-1.25em"
|
|
17
17
|
},
|
|
18
18
|
variants: {
|
|
19
19
|
...buttonGroupVariant,
|
|
@@ -67,10 +67,10 @@ export default ct(
|
|
|
67
67
|
base: "color-ui-cb bg-transparent"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
|
|
70
|
+
leading: {
|
|
71
71
|
true: ""
|
|
72
72
|
},
|
|
73
|
-
|
|
73
|
+
trailing: {
|
|
74
74
|
true: ""
|
|
75
75
|
},
|
|
76
76
|
loading: {
|
|
@@ -84,7 +84,7 @@ export default ct(
|
|
|
84
84
|
},
|
|
85
85
|
type: {
|
|
86
86
|
file: {
|
|
87
|
-
input: "
|
|
87
|
+
input: "leading-normal not-disabled:cursor-pointer file:pointer-events-none file:py-0 file:font-size-0.875em file:rounded-ui-button file:border-none file:color-ui-cx file:bg-soft-ui-cb/80"
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
},
|
|
@@ -130,17 +130,17 @@ export default ct(
|
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
loading: true,
|
|
133
|
-
|
|
133
|
+
leading: true,
|
|
134
134
|
class: {
|
|
135
|
-
|
|
135
|
+
leadingIcon: "animate-spin"
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
loading: true,
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
leading: false,
|
|
141
|
+
trailing: true,
|
|
142
142
|
class: {
|
|
143
|
-
|
|
143
|
+
trailingIcon: "animate-spin"
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
],
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: string;
|
|
3
|
+
slots: undefined;
|
|
4
|
+
variants: {
|
|
5
|
+
variant: {
|
|
6
|
+
solid: "color-ui-cx bg-soft-ui-fill/90";
|
|
7
|
+
outline: "color-ui-fill ring bg-ui-cx/90 ring-inset ring-ui-fill/30";
|
|
8
|
+
soft: "color-ui-fill/80 bg-soft-ui-fill/20";
|
|
9
|
+
'soft-outline': "color-ui-fill/80 bg-soft-ui-fill/20 ring ring-inset ring-ui-fill/30";
|
|
10
|
+
};
|
|
11
|
+
size: {
|
|
12
|
+
xs: "text-xs";
|
|
13
|
+
sm: "text-sm";
|
|
14
|
+
md: "text-base";
|
|
15
|
+
lg: "text-lg";
|
|
16
|
+
xl: "text-xl";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
20
|
+
variant: {
|
|
21
|
+
solid: "color-ui-cx bg-soft-ui-fill/90";
|
|
22
|
+
outline: "color-ui-fill ring bg-ui-cx/90 ring-inset ring-ui-fill/30";
|
|
23
|
+
soft: "color-ui-fill/80 bg-soft-ui-fill/20";
|
|
24
|
+
'soft-outline': "color-ui-fill/80 bg-soft-ui-fill/20 ring ring-inset ring-ui-fill/30";
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
xs: "text-xs";
|
|
28
|
+
sm: "text-sm";
|
|
29
|
+
md: "text-base";
|
|
30
|
+
lg: "text-lg";
|
|
31
|
+
xl: "text-xl";
|
|
32
|
+
};
|
|
33
|
+
}, undefined, "inline-flex items-center justify-center px-0.25em rounded-ui-base leading-normal min-w-1.5em font-medium font-sans select-none">;
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
variant: "outline";
|
|
36
|
+
size: "md";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
base: "inline-flex items-center justify-center px-0.25em rounded-ui-base leading-normal min-w-1.5em font-medium font-sans select-none",
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
"solid": "color-ui-cx bg-soft-ui-fill/90",
|
|
9
|
+
"outline": "color-ui-fill ring bg-ui-cx/90 ring-inset ring-ui-fill/30",
|
|
10
|
+
"soft": "color-ui-fill/80 bg-soft-ui-fill/20",
|
|
11
|
+
"soft-outline": "color-ui-fill/80 bg-soft-ui-fill/20 ring ring-inset ring-ui-fill/30"
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
xs: "text-xs",
|
|
15
|
+
sm: "text-sm",
|
|
16
|
+
md: "text-base",
|
|
17
|
+
lg: "text-lg",
|
|
18
|
+
xl: "text-xl"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {
|
|
22
|
+
variant: "outline",
|
|
23
|
+
size: "md"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
);
|
|
@@ -3,8 +3,8 @@ export default ct(
|
|
|
3
3
|
/* @unocss-include */
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
|
-
overlay: "fixed inset-0 bg-black/40",
|
|
7
|
-
content: "fixed bg-ui-cx divide-y divide-ui-cb/10 flex flex-col focus:outline-none",
|
|
6
|
+
overlay: "fixed z-1 inset-0 bg-black/40",
|
|
7
|
+
content: "fixed z-1 bg-ui-cx divide-y divide-ui-cb/10 flex flex-col focus:outline-none",
|
|
8
8
|
header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
|
|
9
9
|
body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
|
|
10
10
|
footer: "flex items-center gap-1.5 p-4 sm:px-6",
|
|
@@ -4,7 +4,7 @@ export default ct(
|
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
6
|
content: [
|
|
7
|
-
"color-ui-base bg-ui-base shadow-lg rounded-ui-box ring ring-ui-base/10",
|
|
7
|
+
"z-1 color-ui-base bg-ui-base shadow-lg rounded-ui-box ring ring-ui-base/10",
|
|
8
8
|
"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none pointer-events-auto"
|
|
9
9
|
],
|
|
10
10
|
arrow: "fill-ui-base stroke-ui-cb/10"
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
root: string;
|
|
6
|
+
indicator: string;
|
|
7
|
+
status: string;
|
|
8
|
+
steps: string;
|
|
9
|
+
step: string;
|
|
10
|
+
};
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
xs: {
|
|
14
|
+
wrapper: string;
|
|
15
|
+
};
|
|
16
|
+
sm: {
|
|
17
|
+
wrapper: string;
|
|
18
|
+
};
|
|
19
|
+
md: {
|
|
20
|
+
wrapper: string;
|
|
21
|
+
};
|
|
22
|
+
lg: {
|
|
23
|
+
wrapper: string;
|
|
24
|
+
};
|
|
25
|
+
xl: {
|
|
26
|
+
wrapper: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
step: {
|
|
30
|
+
active: {
|
|
31
|
+
step: string;
|
|
32
|
+
};
|
|
33
|
+
first: {
|
|
34
|
+
step: string;
|
|
35
|
+
};
|
|
36
|
+
other: {
|
|
37
|
+
step: string;
|
|
38
|
+
};
|
|
39
|
+
last: {
|
|
40
|
+
step: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
orientation: {
|
|
44
|
+
horizontal: {
|
|
45
|
+
wrapper: string;
|
|
46
|
+
root: string;
|
|
47
|
+
status: string;
|
|
48
|
+
};
|
|
49
|
+
vertical: {
|
|
50
|
+
wrapper: string;
|
|
51
|
+
root: string;
|
|
52
|
+
status: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
inverted: {
|
|
56
|
+
true: {
|
|
57
|
+
status: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
62
|
+
size: {
|
|
63
|
+
xs: {
|
|
64
|
+
wrapper: string;
|
|
65
|
+
};
|
|
66
|
+
sm: {
|
|
67
|
+
wrapper: string;
|
|
68
|
+
};
|
|
69
|
+
md: {
|
|
70
|
+
wrapper: string;
|
|
71
|
+
};
|
|
72
|
+
lg: {
|
|
73
|
+
wrapper: string;
|
|
74
|
+
};
|
|
75
|
+
xl: {
|
|
76
|
+
wrapper: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
step: {
|
|
80
|
+
active: {
|
|
81
|
+
step: string;
|
|
82
|
+
};
|
|
83
|
+
first: {
|
|
84
|
+
step: string;
|
|
85
|
+
};
|
|
86
|
+
other: {
|
|
87
|
+
step: string;
|
|
88
|
+
};
|
|
89
|
+
last: {
|
|
90
|
+
step: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
orientation: {
|
|
94
|
+
horizontal: {
|
|
95
|
+
wrapper: string;
|
|
96
|
+
root: string;
|
|
97
|
+
status: string;
|
|
98
|
+
};
|
|
99
|
+
vertical: {
|
|
100
|
+
wrapper: string;
|
|
101
|
+
root: string;
|
|
102
|
+
status: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
inverted: {
|
|
106
|
+
true: {
|
|
107
|
+
status: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
wrapper: string;
|
|
112
|
+
root: string;
|
|
113
|
+
indicator: string;
|
|
114
|
+
status: string;
|
|
115
|
+
steps: string;
|
|
116
|
+
step: string;
|
|
117
|
+
}, undefined>;
|
|
118
|
+
defaultVariants: {
|
|
119
|
+
size: "md";
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
export default _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
wrapper: "gap-2",
|
|
7
|
+
root: "relative overflow-hidden rounded-full bg-soft-ui-cb/30",
|
|
8
|
+
indicator: "bg-ui-content rounded-full size-full transition-transform duration-200 ease-out",
|
|
9
|
+
status: "flex justify-end color-ui-cb/50 transition-[width] duration-200",
|
|
10
|
+
steps: "grid items-end color-ui-cb/80",
|
|
11
|
+
step: "truncate text-end row-start-1 col-start-1 transition-opacity"
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
size: {
|
|
15
|
+
xs: {
|
|
16
|
+
wrapper: "text-xs"
|
|
17
|
+
},
|
|
18
|
+
sm: {
|
|
19
|
+
wrapper: "text-sm"
|
|
20
|
+
},
|
|
21
|
+
md: {
|
|
22
|
+
wrapper: "text-base"
|
|
23
|
+
},
|
|
24
|
+
lg: {
|
|
25
|
+
wrapper: "text-lg"
|
|
26
|
+
},
|
|
27
|
+
xl: {
|
|
28
|
+
wrapper: "text-xl"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
step: {
|
|
32
|
+
active: {
|
|
33
|
+
step: "opacity-100"
|
|
34
|
+
},
|
|
35
|
+
first: {
|
|
36
|
+
step: "opacity-100 color-ui-cb/60"
|
|
37
|
+
},
|
|
38
|
+
other: {
|
|
39
|
+
step: "opacity-0"
|
|
40
|
+
},
|
|
41
|
+
last: {
|
|
42
|
+
step: ""
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
orientation: {
|
|
46
|
+
horizontal: {
|
|
47
|
+
wrapper: "w-full flex flex-col",
|
|
48
|
+
root: "w-full",
|
|
49
|
+
status: "flex-row"
|
|
50
|
+
},
|
|
51
|
+
vertical: {
|
|
52
|
+
wrapper: "h-full flex flex-row-reverse",
|
|
53
|
+
root: "h-full w-0.5em",
|
|
54
|
+
status: "flex-col"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
inverted: {
|
|
58
|
+
true: {
|
|
59
|
+
status: "self-end"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
compoundVariants: [
|
|
64
|
+
{
|
|
65
|
+
orientation: "horizontal",
|
|
66
|
+
inverted: true,
|
|
67
|
+
class: {
|
|
68
|
+
step: "text-start",
|
|
69
|
+
status: "flex-row-reverse"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
orientation: "vertical",
|
|
74
|
+
inverted: true,
|
|
75
|
+
class: {
|
|
76
|
+
steps: "items-start",
|
|
77
|
+
status: "flex-col-reverse"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{ size: "xs", orientation: "horizontal", class: { root: "h-0.25em" } },
|
|
81
|
+
{ size: "sm", orientation: "horizontal", class: { root: "h-0.5em" } },
|
|
82
|
+
{ size: "md", orientation: "horizontal", class: { root: "h-0.75em" } },
|
|
83
|
+
{ size: "lg", orientation: "horizontal", class: { root: "h-1em" } },
|
|
84
|
+
{ size: "xl", orientation: "horizontal", class: { root: "h-1.25em" } },
|
|
85
|
+
{ size: "xs", orientation: "vertical", class: { root: "w-0.25em" } },
|
|
86
|
+
{ size: "sm", orientation: "vertical", class: { root: "w-0.5em" } },
|
|
87
|
+
{ size: "md", orientation: "vertical", class: { root: "w-0.75em" } },
|
|
88
|
+
{ size: "lg", orientation: "vertical", class: { root: "w-1em" } },
|
|
89
|
+
{ size: "xl", orientation: "vertical", class: { root: "w-1.25em" } }
|
|
90
|
+
],
|
|
91
|
+
defaultVariants: {
|
|
92
|
+
size: "md"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
);
|
|
@@ -12,14 +12,14 @@ declare const _default: {
|
|
|
12
12
|
label: string;
|
|
13
13
|
separator: string;
|
|
14
14
|
item: string[];
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
itemLeadingIcon: string;
|
|
16
|
+
itemTrailing: string;
|
|
17
|
+
itemTrailingIcon: string;
|
|
18
18
|
itemLabel: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
leading: string;
|
|
20
|
+
leadingIcon: string;
|
|
21
|
+
trailing: string;
|
|
22
|
+
trailingIcon: string;
|
|
23
23
|
};
|
|
24
24
|
variants: {
|
|
25
25
|
variant: {
|
|
@@ -61,10 +61,10 @@ declare const _default: {
|
|
|
61
61
|
item: string;
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
leading: {
|
|
65
65
|
true: "";
|
|
66
66
|
};
|
|
67
|
-
|
|
67
|
+
trailing: {
|
|
68
68
|
true: "";
|
|
69
69
|
};
|
|
70
70
|
loading: {
|
|
@@ -125,10 +125,10 @@ declare const _default: {
|
|
|
125
125
|
item: string;
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
|
-
|
|
128
|
+
leading: {
|
|
129
129
|
true: "";
|
|
130
130
|
};
|
|
131
|
-
|
|
131
|
+
trailing: {
|
|
132
132
|
true: "";
|
|
133
133
|
};
|
|
134
134
|
loading: {
|
|
@@ -160,14 +160,14 @@ declare const _default: {
|
|
|
160
160
|
label: string;
|
|
161
161
|
separator: string;
|
|
162
162
|
item: string[];
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
itemLeadingIcon: string;
|
|
164
|
+
itemTrailing: string;
|
|
165
|
+
itemTrailingIcon: string;
|
|
166
166
|
itemLabel: string;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
leading: string;
|
|
168
|
+
leadingIcon: string;
|
|
169
|
+
trailing: string;
|
|
170
|
+
trailingIcon: string;
|
|
171
171
|
}, undefined>;
|
|
172
172
|
defaultVariants: {
|
|
173
173
|
size: "md";
|
|
@@ -5,14 +5,14 @@ export default ct(
|
|
|
5
5
|
{
|
|
6
6
|
slots: {
|
|
7
7
|
base: [
|
|
8
|
-
"
|
|
8
|
+
"group inline-flex items-center gap-x-2 rounded-ui-base focus:outline-none transition-colors",
|
|
9
9
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
10
10
|
],
|
|
11
11
|
value: "me-auto truncate pointer-events-none",
|
|
12
12
|
placeholder: "me-auto truncate color-ui-cb/50",
|
|
13
13
|
arrow: "fill-ui-cx stroke-ui-cb/20",
|
|
14
14
|
content: [
|
|
15
|
-
"max-h-60 w-[var(--reka-popper-anchor-width)] bg-ui-cx shadow-lg rounded-[calc(var(--ui-radius-tabs)*0.66)] ring ring-ui-cb/20 overflow-hidden pointer-events-auto",
|
|
15
|
+
"z-1 max-h-60 w-[var(--reka-popper-anchor-width)] bg-ui-cx shadow-lg rounded-[calc(var(--ui-radius-tabs)*0.66)] ring ring-ui-cb/20 overflow-hidden pointer-events-auto",
|
|
16
16
|
"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]"
|
|
17
17
|
],
|
|
18
18
|
viewport: "divide-y divide-ui-cb/10 scroll-py-1",
|
|
@@ -27,14 +27,14 @@ export default ct(
|
|
|
27
27
|
"data-[highlighted]:color-ui-cb data-[highlighted]:before:bg-soft-ui-cb/3",
|
|
28
28
|
"data-[state=checked]:color-ui-base"
|
|
29
29
|
],
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
itemLeadingIcon: "shrink-0 color-ui-cb/80 group-data-[highlighted]:color-ui-cb/80 transition-colors",
|
|
31
|
+
itemTrailing: "ms-auto inline-flex gap-1.5 items-center",
|
|
32
|
+
itemTrailingIcon: "shrink-0",
|
|
33
33
|
itemLabel: "truncate",
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
leading: "flex items-center",
|
|
35
|
+
leadingIcon: "shrink-0 size-1.25em",
|
|
36
|
+
trailing: "flex items-center",
|
|
37
|
+
trailingIcon: "shrink-0 size-1.25em"
|
|
38
38
|
},
|
|
39
39
|
variants: {
|
|
40
40
|
...buttonGroupVariant,
|
|
@@ -93,10 +93,10 @@ export default ct(
|
|
|
93
93
|
item: "text-xl"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
|
|
96
|
+
leading: {
|
|
97
97
|
true: ""
|
|
98
98
|
},
|
|
99
|
-
|
|
99
|
+
trailing: {
|
|
100
100
|
true: ""
|
|
101
101
|
},
|
|
102
102
|
loading: {
|
|
@@ -151,17 +151,17 @@ export default ct(
|
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
loading: true,
|
|
154
|
-
|
|
154
|
+
leading: true,
|
|
155
155
|
class: {
|
|
156
|
-
|
|
156
|
+
leadingIcon: "animate-spin"
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
loading: true,
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
leading: false,
|
|
162
|
+
trailing: true,
|
|
163
163
|
class: {
|
|
164
|
-
|
|
164
|
+
trailingIcon: "animate-spin"
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
],
|