@byyuurin/ui 0.0.3 → 0.0.4
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 -2
- package/dist/nuxt.mjs +1 -1
- package/dist/resolver.mjs +1 -1
- package/dist/runtime/components/App.vue +5 -1
- package/dist/runtime/components/Button.vue +0 -1
- package/dist/runtime/components/Checkbox.vue +2 -5
- package/dist/runtime/components/Input.vue +5 -1
- package/dist/runtime/components/ModalProvider.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue +1 -7
- package/dist/runtime/components/ScrollArea.vue +72 -0
- package/dist/runtime/components/Switch.vue +0 -1
- package/dist/runtime/components/Tabs.vue +5 -5
- package/dist/runtime/components/Textarea.vue +173 -0
- package/dist/runtime/components/Toast.vue +1 -1
- package/dist/runtime/components/index.d.ts +2 -0
- package/dist/runtime/components/index.mjs +2 -0
- package/dist/runtime/composables/defineInjection.d.ts +11 -0
- package/dist/runtime/composables/defineInjection.mjs +9 -0
- package/dist/runtime/composables/index.d.ts +1 -0
- package/dist/runtime/composables/index.mjs +1 -0
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/useModal.mjs +3 -2
- package/dist/runtime/composables/useTheme.d.ts +3 -1
- package/dist/runtime/composables/useTheme.mjs +14 -6
- package/dist/runtime/theme/button.d.ts +0 -8
- package/dist/runtime/theme/button.mjs +1 -9
- package/dist/runtime/theme/checkbox.d.ts +0 -12
- package/dist/runtime/theme/checkbox.mjs +4 -9
- package/dist/runtime/theme/index.d.ts +2 -0
- package/dist/runtime/theme/index.mjs +2 -0
- package/dist/runtime/theme/radioGroup.d.ts +0 -24
- package/dist/runtime/theme/radioGroup.mjs +8 -20
- package/dist/runtime/theme/scrollArea.d.ts +51 -0
- package/dist/runtime/theme/scrollArea.mjs +30 -0
- package/dist/runtime/theme/switch.d.ts +0 -12
- package/dist/runtime/theme/switch.mjs +2 -8
- package/dist/runtime/theme/tabs.d.ts +32 -11
- package/dist/runtime/theme/tabs.mjs +19 -12
- package/dist/runtime/theme/textarea.d.ts +90 -0
- package/dist/runtime/theme/textarea.mjs +100 -0
- package/dist/runtime/theme/toast.mjs +1 -1
- package/dist/runtime/types/components.d.ts +2 -0
- package/dist/runtime/utils/index.d.ts +0 -11
- package/dist/runtime/utils/index.mjs +0 -11
- package/dist/shared/{ui.CPXA9QoM.mjs → ui.Cmq14xN9.mjs} +2 -0
- package/dist/unocss-preset.d.mts +15 -7
- package/dist/unocss-preset.d.ts +15 -7
- package/dist/unocss-preset.mjs +90 -386
- package/package.json +6 -5
- package/dist/index.cjs +0 -38
- package/dist/runtime/components/index.cjs +0 -132
- package/dist/runtime/composables/index.cjs +0 -33
- package/dist/runtime/composables/useComponentIcons.cjs +0 -30
- package/dist/runtime/composables/useModal.cjs +0 -55
- package/dist/runtime/composables/useTheme.cjs +0 -30
- package/dist/runtime/composables/useToast.cjs +0 -51
- package/dist/runtime/theme/accordion.cjs +0 -27
- package/dist/runtime/theme/app.cjs +0 -15
- package/dist/runtime/theme/button.cjs +0 -127
- package/dist/runtime/theme/card.cjs +0 -17
- package/dist/runtime/theme/checkbox.cjs +0 -56
- package/dist/runtime/theme/drawer.cjs +0 -73
- package/dist/runtime/theme/index.cjs +0 -125
- package/dist/runtime/theme/input.cjs +0 -115
- package/dist/runtime/theme/link.cjs +0 -23
- package/dist/runtime/theme/modal.cjs +0 -55
- package/dist/runtime/theme/popover.cjs +0 -13
- package/dist/runtime/theme/radioGroup.cjs +0 -73
- package/dist/runtime/theme/select.cjs +0 -128
- package/dist/runtime/theme/switch.cjs +0 -73
- package/dist/runtime/theme/tabs.cjs +0 -105
- package/dist/runtime/theme/toast.cjs +0 -33
- package/dist/runtime/theme/toaster.cjs +0 -72
- package/dist/runtime/theme/tooltip.cjs +0 -14
- package/dist/runtime/types/components.cjs +0 -1
- package/dist/runtime/types/index.cjs +0 -27
- package/dist/runtime/types/utils.cjs +0 -1
- package/dist/runtime/utils/extend-theme.cjs +0 -24
- package/dist/runtime/utils/index.cjs +0 -119
- package/dist/runtime/utils/link.cjs +0 -10
- package/dist/runtime/utils/styler.cjs +0 -18
|
@@ -3,12 +3,13 @@ export default ct({
|
|
|
3
3
|
slots: {
|
|
4
4
|
root: "relative flex items-start",
|
|
5
5
|
base: [
|
|
6
|
-
"size-1.25em shrink-0 flex items-center justify-center rounded-ui-
|
|
7
|
-
"focus-visible:outline-ui-cb focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
6
|
+
"size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-c1 ring-2 ring-ui-content ring-inset bg-ui-content",
|
|
7
|
+
"focus-visible:outline-ui-cb focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
8
|
+
"aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-cb aria-[checked=false]:bg-ui-c1"
|
|
8
9
|
],
|
|
9
10
|
container: "flex items-center h-1.25em",
|
|
10
11
|
wrapper: "text-inherit ms-2",
|
|
11
|
-
icon: "shrink-0 size-1em data-[state=
|
|
12
|
+
icon: "color-ui-c1 shrink-0 size-1em transition data-[state=unchecked]:translate-y-full",
|
|
12
13
|
label: "flex color-ui-cb after:content-empty",
|
|
13
14
|
description: "color-ui-cb/60"
|
|
14
15
|
},
|
|
@@ -42,12 +43,6 @@ export default ct({
|
|
|
42
43
|
false: {
|
|
43
44
|
label: "cursor-pointer"
|
|
44
45
|
}
|
|
45
|
-
},
|
|
46
|
-
checked: {
|
|
47
|
-
true: {
|
|
48
|
-
base: "ring-2 ring-ui-content bg-ui-content",
|
|
49
|
-
icon: "color-ui-c1"
|
|
50
|
-
}
|
|
51
46
|
}
|
|
52
47
|
}
|
|
53
48
|
});
|
|
@@ -9,9 +9,11 @@ export { default as link } from './link';
|
|
|
9
9
|
export { default as modal } from './modal';
|
|
10
10
|
export { default as popover } from './popover';
|
|
11
11
|
export { default as radioGroup } from './radioGroup';
|
|
12
|
+
export { default as scrollArea } from './scrollArea';
|
|
12
13
|
export { default as select } from './select';
|
|
13
14
|
export { default as switch } from './switch';
|
|
14
15
|
export { default as tabs } from './tabs';
|
|
16
|
+
export { default as textarea } from './textarea';
|
|
15
17
|
export { default as toast } from './toast';
|
|
16
18
|
export { default as toaster } from './toaster';
|
|
17
19
|
export { default as tooltip } from './tooltip';
|
|
@@ -9,9 +9,11 @@ export { default as link } from "./link.mjs";
|
|
|
9
9
|
export { default as modal } from "./modal.mjs";
|
|
10
10
|
export { default as popover } from "./popover.mjs";
|
|
11
11
|
export { default as radioGroup } from "./radioGroup.mjs";
|
|
12
|
+
export { default as scrollArea } from "./scrollArea.mjs";
|
|
12
13
|
export { default as select } from "./select.mjs";
|
|
13
14
|
export { default as switch } from "./switch.mjs";
|
|
14
15
|
export { default as tabs } from "./tabs.mjs";
|
|
16
|
+
export { default as textarea } from "./textarea.mjs";
|
|
15
17
|
export { default as toast } from "./toast.mjs";
|
|
16
18
|
export { default as toaster } from "./toaster.mjs";
|
|
17
19
|
export { default as tooltip } from "./tooltip.mjs";
|
|
@@ -16,7 +16,6 @@ declare const _default: {
|
|
|
16
16
|
orientation: {
|
|
17
17
|
horizontal: {
|
|
18
18
|
fieldset: string;
|
|
19
|
-
wrapper: string;
|
|
20
19
|
};
|
|
21
20
|
vertical: {
|
|
22
21
|
fieldset: string;
|
|
@@ -39,17 +38,6 @@ declare const _default: {
|
|
|
39
38
|
root: string;
|
|
40
39
|
};
|
|
41
40
|
};
|
|
42
|
-
dot: {
|
|
43
|
-
true: {
|
|
44
|
-
indicator: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
round: {
|
|
48
|
-
true: {
|
|
49
|
-
base: string;
|
|
50
|
-
indicator: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
41
|
disabled: {
|
|
54
42
|
true: {
|
|
55
43
|
root: string;
|
|
@@ -68,7 +56,6 @@ declare const _default: {
|
|
|
68
56
|
orientation: {
|
|
69
57
|
horizontal: {
|
|
70
58
|
fieldset: string;
|
|
71
|
-
wrapper: string;
|
|
72
59
|
};
|
|
73
60
|
vertical: {
|
|
74
61
|
fieldset: string;
|
|
@@ -91,17 +78,6 @@ declare const _default: {
|
|
|
91
78
|
root: string;
|
|
92
79
|
};
|
|
93
80
|
};
|
|
94
|
-
dot: {
|
|
95
|
-
true: {
|
|
96
|
-
indicator: string;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
round: {
|
|
100
|
-
true: {
|
|
101
|
-
base: string;
|
|
102
|
-
indicator: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
81
|
disabled: {
|
|
106
82
|
true: {
|
|
107
83
|
root: string;
|
|
@@ -2,21 +2,20 @@ import { ct } from "@byyuurin/ui-kit";
|
|
|
2
2
|
export default ct({
|
|
3
3
|
slots: {
|
|
4
4
|
root: "relative",
|
|
5
|
-
fieldset: "flex flex-wrap gap-
|
|
6
|
-
legend: "mb-
|
|
5
|
+
fieldset: "flex flex-wrap gap-2 gap-x-4",
|
|
6
|
+
legend: "mb-2 color-ui-cb",
|
|
7
7
|
item: "flex items-start",
|
|
8
|
-
base: "size-1.25em rounded-ui-
|
|
9
|
-
indicator: "
|
|
8
|
+
base: "relative size-1.25em rounded-ui-radio ring ring-inset ring-ui-cb focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb transition data-[state=checked]:ring-ui-base",
|
|
9
|
+
indicator: "absolute inset-0 scale-0 rounded-ui-radio bg-ui-fill transition data-[state=checked]:scale-66",
|
|
10
10
|
container: "h-1.5em flex items-center",
|
|
11
|
-
wrapper: "
|
|
12
|
-
label: "block
|
|
13
|
-
description: "color-ui-cb/60"
|
|
11
|
+
wrapper: "",
|
|
12
|
+
label: "block ps-2 color-ui-cb",
|
|
13
|
+
description: "ps-2 color-ui-cb/60"
|
|
14
14
|
},
|
|
15
15
|
variants: {
|
|
16
16
|
orientation: {
|
|
17
17
|
horizontal: {
|
|
18
|
-
fieldset: "flex-row"
|
|
19
|
-
wrapper: "me-2"
|
|
18
|
+
fieldset: "flex-row"
|
|
20
19
|
},
|
|
21
20
|
vertical: {
|
|
22
21
|
fieldset: "flex-col"
|
|
@@ -39,17 +38,6 @@ export default ct({
|
|
|
39
38
|
root: "text-xl"
|
|
40
39
|
}
|
|
41
40
|
},
|
|
42
|
-
dot: {
|
|
43
|
-
true: {
|
|
44
|
-
indicator: "after:content-empty after:size-0.75em after:bg-ui-c1 after:rounded-ui-base"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
round: {
|
|
48
|
-
true: {
|
|
49
|
-
base: "rounded-full",
|
|
50
|
-
indicator: "rounded-full after:rounded-full"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
41
|
disabled: {
|
|
54
42
|
true: {
|
|
55
43
|
root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { TransitionGroupProps } from 'vue';
|
|
2
|
+
export declare const transitionProps: TransitionGroupProps;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
base: undefined;
|
|
5
|
+
slots: {
|
|
6
|
+
/** Contains all the parts of a scroll area. */
|
|
7
|
+
root: string;
|
|
8
|
+
/** The viewport area of the scroll area. */
|
|
9
|
+
viewport: string;
|
|
10
|
+
/** The vertical and horizontal scrollbar. */
|
|
11
|
+
scrollbar: string[];
|
|
12
|
+
/** The thumb to be used in `ScrollAreaScrollbar`. */
|
|
13
|
+
thumb: string[];
|
|
14
|
+
/** The corner where both vertical and horizontal scrollbars meet. */
|
|
15
|
+
corner: string;
|
|
16
|
+
};
|
|
17
|
+
variants: {
|
|
18
|
+
[key: string]: {
|
|
19
|
+
[key: string]: "" | {
|
|
20
|
+
root?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
21
|
+
viewport?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
22
|
+
corner?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
23
|
+
scrollbar?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
24
|
+
thumb?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
25
|
+
} | null;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
|
|
29
|
+
[key: string]: {
|
|
30
|
+
[key: string]: "" | {
|
|
31
|
+
root?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
32
|
+
viewport?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
33
|
+
corner?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
34
|
+
scrollbar?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
35
|
+
thumb?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
36
|
+
} | null;
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
/** Contains all the parts of a scroll area. */
|
|
40
|
+
root: string;
|
|
41
|
+
/** The viewport area of the scroll area. */
|
|
42
|
+
viewport: string;
|
|
43
|
+
/** The vertical and horizontal scrollbar. */
|
|
44
|
+
scrollbar: string[];
|
|
45
|
+
/** The thumb to be used in `ScrollAreaScrollbar`. */
|
|
46
|
+
thumb: string[];
|
|
47
|
+
/** The corner where both vertical and horizontal scrollbars meet. */
|
|
48
|
+
corner: string;
|
|
49
|
+
}, undefined>;
|
|
50
|
+
};
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export const transitionProps = {
|
|
3
|
+
enterFromClass: "opacity-0",
|
|
4
|
+
enterActiveClass: "transition",
|
|
5
|
+
leaveToClass: "opacity-0",
|
|
6
|
+
leaveActiveClass: "transition",
|
|
7
|
+
moveClass: "transition"
|
|
8
|
+
};
|
|
9
|
+
export default ct({
|
|
10
|
+
slots: {
|
|
11
|
+
/** Contains all the parts of a scroll area. */
|
|
12
|
+
root: "relative overflow-hidden shadow-sm shadow-ui-cb/10 bg-ui-c1 border border-ui-cb/10 rounded-ui-base",
|
|
13
|
+
/** The viewport area of the scroll area. */
|
|
14
|
+
viewport: "size-full rounded-ui-base",
|
|
15
|
+
/** The vertical and horizontal scrollbar. */
|
|
16
|
+
scrollbar: [
|
|
17
|
+
"flex select-none touch-none p-0.5 duration-160 ease-out",
|
|
18
|
+
"data-[orientation=vertical]:w-2.5 data-[orientation=vertical]:my-[calc(var(--ui-radius-box)+0.25rem)]",
|
|
19
|
+
"data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:h-2.5 data-[orientation=horizontal]:mx-[calc(var(--ui-radius-box)+0.25rem)]"
|
|
20
|
+
],
|
|
21
|
+
/** The thumb to be used in `ScrollAreaScrollbar`. */
|
|
22
|
+
thumb: [
|
|
23
|
+
"relative flex-1 bg-ui-cb/20 rounded-ui-base cursor-pointer transition-colors",
|
|
24
|
+
"hover:bg-ui-cb/30 active:bg-ui-cb/40",
|
|
25
|
+
"before:content-empty before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:w-full before:h-full before:min-w-10 before:min-h-10 "
|
|
26
|
+
],
|
|
27
|
+
/** The corner where both vertical and horizontal scrollbars meet. */
|
|
28
|
+
corner: ""
|
|
29
|
+
}
|
|
30
|
+
});
|
|
@@ -28,12 +28,6 @@ declare const _default: {
|
|
|
28
28
|
root: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
round: {
|
|
32
|
-
true: {
|
|
33
|
-
base: string;
|
|
34
|
-
thumb: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
31
|
checked: {
|
|
38
32
|
true: {
|
|
39
33
|
icon: string;
|
|
@@ -82,12 +76,6 @@ declare const _default: {
|
|
|
82
76
|
root: string;
|
|
83
77
|
};
|
|
84
78
|
};
|
|
85
|
-
round: {
|
|
86
|
-
true: {
|
|
87
|
-
base: string;
|
|
88
|
-
thumb: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
79
|
checked: {
|
|
92
80
|
true: {
|
|
93
81
|
icon: string;
|
|
@@ -3,14 +3,14 @@ export default ct({
|
|
|
3
3
|
slots: {
|
|
4
4
|
root: "relative flex items-start",
|
|
5
5
|
base: [
|
|
6
|
-
"inline-flex items-center shrink-0 rounded-ui-
|
|
6
|
+
"inline-flex items-center shrink-0 rounded-ui-switch border-2 border-transparent transition-colors duration-200",
|
|
7
7
|
"focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
8
8
|
"data-[state=unchecked]:bg-ui-cb/10 data-[state=checked]:bg-ui-fill/80 focus-visible:outline-ui-base",
|
|
9
9
|
"w-2.7em"
|
|
10
10
|
],
|
|
11
11
|
container: "flex items-center h-1.5em",
|
|
12
12
|
thumb: [
|
|
13
|
-
"group pointer-events-none rounded-ui-
|
|
13
|
+
"group pointer-events-none rounded-ui-switch size-1.25em bg-ui-c1 shadow-lg ring-0 transition-transform duration-200 flex items-center justify-center",
|
|
14
14
|
"data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:translate-x-0 data-[state=checked]:translate-x-1.25em data-[state=checked]:rtl:-translate-x-1.25em"
|
|
15
15
|
],
|
|
16
16
|
icon: [
|
|
@@ -39,12 +39,6 @@ export default ct({
|
|
|
39
39
|
root: "text-xl"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
round: {
|
|
43
|
-
true: {
|
|
44
|
-
base: "rounded-full",
|
|
45
|
-
thumb: "rounded-full"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
42
|
checked: {
|
|
49
43
|
true: {
|
|
50
44
|
icon: "group-data-[state=checked]:opacity-100"
|
|
@@ -6,7 +6,7 @@ declare const _default: {
|
|
|
6
6
|
indicator: string;
|
|
7
7
|
trigger: string[];
|
|
8
8
|
content: string;
|
|
9
|
-
|
|
9
|
+
prefixIcon: string;
|
|
10
10
|
label: string;
|
|
11
11
|
};
|
|
12
12
|
variants: {
|
|
@@ -42,24 +42,19 @@ declare const _default: {
|
|
|
42
42
|
};
|
|
43
43
|
size: {
|
|
44
44
|
xs: {
|
|
45
|
-
|
|
46
|
-
leadingIcon: string;
|
|
45
|
+
root: string;
|
|
47
46
|
};
|
|
48
47
|
sm: {
|
|
49
|
-
|
|
50
|
-
leadingIcon: string;
|
|
48
|
+
root: string;
|
|
51
49
|
};
|
|
52
50
|
md: {
|
|
53
|
-
|
|
54
|
-
leadingIcon: string;
|
|
51
|
+
root: string;
|
|
55
52
|
};
|
|
56
53
|
lg: {
|
|
57
|
-
|
|
58
|
-
leadingIcon: string;
|
|
54
|
+
root: string;
|
|
59
55
|
};
|
|
60
56
|
xl: {
|
|
61
|
-
|
|
62
|
-
leadingIcon: string;
|
|
57
|
+
root: string;
|
|
63
58
|
};
|
|
64
59
|
};
|
|
65
60
|
full: {
|
|
@@ -69,33 +64,59 @@ declare const _default: {
|
|
|
69
64
|
};
|
|
70
65
|
};
|
|
71
66
|
compoundVariants: ({
|
|
67
|
+
size: ("xs" | "sm" | "md")[];
|
|
68
|
+
class: {
|
|
69
|
+
trigger: string;
|
|
70
|
+
indicator?: undefined;
|
|
71
|
+
list?: undefined;
|
|
72
|
+
};
|
|
73
|
+
orientation?: undefined;
|
|
74
|
+
variant?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
size: ("lg" | "xl")[];
|
|
77
|
+
class: {
|
|
78
|
+
trigger: string;
|
|
79
|
+
indicator?: undefined;
|
|
80
|
+
list?: undefined;
|
|
81
|
+
};
|
|
82
|
+
orientation?: undefined;
|
|
83
|
+
variant?: undefined;
|
|
84
|
+
} | {
|
|
72
85
|
orientation: "horizontal";
|
|
73
86
|
variant: ("solid" | "soft")[];
|
|
74
87
|
class: {
|
|
75
88
|
indicator: string;
|
|
89
|
+
trigger?: undefined;
|
|
76
90
|
list?: undefined;
|
|
77
91
|
};
|
|
92
|
+
size?: undefined;
|
|
78
93
|
} | {
|
|
79
94
|
orientation: "horizontal";
|
|
80
95
|
variant: "link";
|
|
81
96
|
class: {
|
|
82
97
|
list: string;
|
|
83
98
|
indicator: string;
|
|
99
|
+
trigger?: undefined;
|
|
84
100
|
};
|
|
101
|
+
size?: undefined;
|
|
85
102
|
} | {
|
|
86
103
|
orientation: "vertical";
|
|
87
104
|
variant: ("solid" | "soft")[];
|
|
88
105
|
class: {
|
|
89
106
|
indicator: string;
|
|
90
107
|
list: string;
|
|
108
|
+
trigger?: undefined;
|
|
91
109
|
};
|
|
110
|
+
size?: undefined;
|
|
92
111
|
} | {
|
|
93
112
|
orientation: "vertical";
|
|
94
113
|
variant: "link";
|
|
95
114
|
class: {
|
|
96
115
|
list: string;
|
|
97
116
|
indicator: string;
|
|
117
|
+
trigger?: undefined;
|
|
98
118
|
};
|
|
119
|
+
size?: undefined;
|
|
99
120
|
})[];
|
|
100
121
|
};
|
|
101
122
|
export default _default;
|
|
@@ -5,12 +5,12 @@ export default ct({
|
|
|
5
5
|
list: "relative flex p-1 group",
|
|
6
6
|
indicator: "absolute transition-all duration-200",
|
|
7
7
|
trigger: [
|
|
8
|
-
"group relative inline-flex items-center shrink-0 min-w-0 font-medium rounded-ui-tabs transition-colors",
|
|
8
|
+
"group relative inline-flex items-center gap-0.25em shrink-0 min-w-0 font-medium rounded-ui-tabs transition-colors",
|
|
9
9
|
"focus:outline-hidden",
|
|
10
10
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
11
11
|
],
|
|
12
12
|
content: "w-full focus:outline-none",
|
|
13
|
-
|
|
13
|
+
prefixIcon: "shrink-0 size-1.5em",
|
|
14
14
|
label: "truncate"
|
|
15
15
|
},
|
|
16
16
|
variants: {
|
|
@@ -55,24 +55,19 @@ export default ct({
|
|
|
55
55
|
},
|
|
56
56
|
size: {
|
|
57
57
|
xs: {
|
|
58
|
-
|
|
59
|
-
leadingIcon: "size-4"
|
|
58
|
+
root: "text-sm"
|
|
60
59
|
},
|
|
61
60
|
sm: {
|
|
62
|
-
|
|
63
|
-
leadingIcon: "size-4"
|
|
61
|
+
root: "tex-tsm"
|
|
64
62
|
},
|
|
65
63
|
md: {
|
|
66
|
-
|
|
67
|
-
leadingIcon: "size-5"
|
|
64
|
+
root: "text-base"
|
|
68
65
|
},
|
|
69
66
|
lg: {
|
|
70
|
-
|
|
71
|
-
leadingIcon: "size-5"
|
|
67
|
+
root: "text-lg"
|
|
72
68
|
},
|
|
73
69
|
xl: {
|
|
74
|
-
|
|
75
|
-
leadingIcon: "size-6"
|
|
70
|
+
root: "text-xl"
|
|
76
71
|
}
|
|
77
72
|
},
|
|
78
73
|
full: {
|
|
@@ -82,6 +77,18 @@ export default ct({
|
|
|
82
77
|
}
|
|
83
78
|
},
|
|
84
79
|
compoundVariants: [
|
|
80
|
+
{
|
|
81
|
+
size: ["xs", "sm", "md"],
|
|
82
|
+
class: {
|
|
83
|
+
trigger: "p-1.5 px-2.5"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
size: ["lg", "xl"],
|
|
88
|
+
class: {
|
|
89
|
+
trigger: "p-2.5 px-4.5"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
85
92
|
{
|
|
86
93
|
orientation: "horizontal",
|
|
87
94
|
variant: ["solid", "soft"],
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
base: string[];
|
|
6
|
+
};
|
|
7
|
+
variants: {
|
|
8
|
+
size: {
|
|
9
|
+
xs: {
|
|
10
|
+
root: string;
|
|
11
|
+
};
|
|
12
|
+
sm: {
|
|
13
|
+
root: string;
|
|
14
|
+
};
|
|
15
|
+
md: {
|
|
16
|
+
root: string;
|
|
17
|
+
};
|
|
18
|
+
lg: {
|
|
19
|
+
root: string;
|
|
20
|
+
};
|
|
21
|
+
xl: {
|
|
22
|
+
root: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
variant: {
|
|
26
|
+
outline: {
|
|
27
|
+
root: string[];
|
|
28
|
+
};
|
|
29
|
+
soft: {
|
|
30
|
+
root: string[];
|
|
31
|
+
};
|
|
32
|
+
ghost: {
|
|
33
|
+
root: string[];
|
|
34
|
+
};
|
|
35
|
+
none: {
|
|
36
|
+
root: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
underline: {
|
|
40
|
+
true: "";
|
|
41
|
+
};
|
|
42
|
+
highlight: {
|
|
43
|
+
true: {
|
|
44
|
+
base: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
compoundVariants: ({
|
|
49
|
+
variant: ("soft" | "ghost" | "none")[];
|
|
50
|
+
highlight: false;
|
|
51
|
+
underline: true;
|
|
52
|
+
class: {
|
|
53
|
+
root: string;
|
|
54
|
+
};
|
|
55
|
+
size?: undefined;
|
|
56
|
+
} | {
|
|
57
|
+
size: ("xs" | "sm" | "md")[];
|
|
58
|
+
class: {
|
|
59
|
+
root: string;
|
|
60
|
+
};
|
|
61
|
+
variant?: undefined;
|
|
62
|
+
highlight?: undefined;
|
|
63
|
+
underline?: undefined;
|
|
64
|
+
} | {
|
|
65
|
+
size: ("lg" | "xl")[];
|
|
66
|
+
class: {
|
|
67
|
+
root: string;
|
|
68
|
+
};
|
|
69
|
+
variant?: undefined;
|
|
70
|
+
highlight?: undefined;
|
|
71
|
+
underline?: undefined;
|
|
72
|
+
} | {
|
|
73
|
+
variant: ("soft" | "ghost" | "none")[];
|
|
74
|
+
highlight: true;
|
|
75
|
+
class: {
|
|
76
|
+
root: string;
|
|
77
|
+
};
|
|
78
|
+
underline?: undefined;
|
|
79
|
+
size?: undefined;
|
|
80
|
+
} | {
|
|
81
|
+
variant: "outline"[];
|
|
82
|
+
highlight: true;
|
|
83
|
+
class: {
|
|
84
|
+
root: string;
|
|
85
|
+
};
|
|
86
|
+
underline?: undefined;
|
|
87
|
+
size?: undefined;
|
|
88
|
+
})[];
|
|
89
|
+
};
|
|
90
|
+
export default _default;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "rounded-ui-base transition-colors aria-disabled:opacity-50",
|
|
5
|
+
base: [
|
|
6
|
+
"w-full color-inherit bg-transparent border-0 resize-none placeholder:color-ui-cb/50",
|
|
7
|
+
"focus:outline-none",
|
|
8
|
+
"disabled:cursor-not-allowed"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
xs: {
|
|
14
|
+
root: "text-xs"
|
|
15
|
+
},
|
|
16
|
+
sm: {
|
|
17
|
+
root: "text-sm"
|
|
18
|
+
},
|
|
19
|
+
md: {
|
|
20
|
+
root: "text-base"
|
|
21
|
+
},
|
|
22
|
+
lg: {
|
|
23
|
+
root: "text-lg"
|
|
24
|
+
},
|
|
25
|
+
xl: {
|
|
26
|
+
root: "text-xl"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
variant: {
|
|
30
|
+
outline: {
|
|
31
|
+
root: [
|
|
32
|
+
"color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50",
|
|
33
|
+
"focus-within:ring-2 focus-within:ring-ui-cb/50",
|
|
34
|
+
"aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
soft: {
|
|
38
|
+
root: [
|
|
39
|
+
"color-ui-cb/80 bg-ui-cb/4",
|
|
40
|
+
"hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
|
|
41
|
+
"aria-disabled:color-ui-content/80 aria-disabled:bg-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-ui-fill/5"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
ghost: {
|
|
45
|
+
root: [
|
|
46
|
+
"color-ui-cb/80 bg-transparent",
|
|
47
|
+
"hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
|
|
48
|
+
"aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
none: {
|
|
52
|
+
root: "color-ui-cb bg-transparent"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
underline: {
|
|
56
|
+
true: ""
|
|
57
|
+
},
|
|
58
|
+
highlight: {
|
|
59
|
+
true: {
|
|
60
|
+
base: ""
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
compoundVariants: [
|
|
65
|
+
{
|
|
66
|
+
variant: ["soft", "ghost", "none"],
|
|
67
|
+
highlight: false,
|
|
68
|
+
underline: true,
|
|
69
|
+
class: {
|
|
70
|
+
root: "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
size: ["xs", "sm", "md"],
|
|
75
|
+
class: {
|
|
76
|
+
root: "p-1.5 px-2.5"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
size: ["lg", "xl"],
|
|
81
|
+
class: {
|
|
82
|
+
root: "p-2.5 px-3.5"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
variant: ["soft", "ghost", "none"],
|
|
87
|
+
highlight: true,
|
|
88
|
+
class: {
|
|
89
|
+
root: "ring ring-inset ring-ui-fill/80"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
variant: ["outline"],
|
|
94
|
+
highlight: true,
|
|
95
|
+
class: {
|
|
96
|
+
root: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
});
|
|
@@ -9,7 +9,7 @@ export default ct({
|
|
|
9
9
|
avatar: "shrink-0",
|
|
10
10
|
avatarSize: "2xl",
|
|
11
11
|
actions: "flex flex-wrap gap-1.5 shrink-0",
|
|
12
|
-
progress: "absolute inset-x-
|
|
12
|
+
progress: "absolute inset-x-[var(--ui-radius-box)] bottom-0 h-1 z-[-1] color-ui-base/80 bg-current rounded-ui-base",
|
|
13
13
|
close: "p-0.5"
|
|
14
14
|
},
|
|
15
15
|
variants: {
|
|
@@ -10,9 +10,11 @@ export type * from '../components/Link.vue';
|
|
|
10
10
|
export type * from '../components/Modal.vue';
|
|
11
11
|
export type * from '../components/Popover.vue';
|
|
12
12
|
export type * from '../components/RadioGroup.vue';
|
|
13
|
+
export type * from '../components/ScrollArea.vue';
|
|
13
14
|
export type * from '../components/Select.vue';
|
|
14
15
|
export type * from '../components/Switch.vue';
|
|
15
16
|
export type * from '../components/Tabs.vue';
|
|
17
|
+
export type * from '../components/Textarea.vue';
|
|
16
18
|
export type * from '../components/Toast.vue';
|
|
17
19
|
export type * from '../components/Toaster.vue';
|
|
18
20
|
export type * from '../components/Tooltip.vue';
|