@byyuurin/ui 0.0.3 → 0.0.5
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 -24
- package/dist/index.d.ts +25 -2
- package/dist/index.mjs +25 -2
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.mjs +14 -10
- package/dist/nuxt.mjs.map +1 -0
- package/dist/runtime/components/Accordion.vue +1 -1
- package/dist/runtime/components/Alert.vue +120 -0
- package/dist/runtime/components/App.vue +5 -1
- package/dist/runtime/components/Badge.vue +71 -0
- package/dist/runtime/components/Button.vue +3 -3
- package/dist/runtime/components/Card.vue +4 -4
- package/dist/runtime/components/Checkbox.vue +3 -6
- package/dist/runtime/components/Chip.vue +59 -0
- package/dist/runtime/components/Drawer.vue +2 -2
- package/dist/runtime/components/Input.vue +7 -2
- package/dist/runtime/components/Link.vue +1 -1
- package/dist/runtime/components/Modal.vue +2 -2
- package/dist/runtime/components/ModalProvider.vue +1 -1
- package/dist/runtime/components/PinInput.vue +86 -0
- package/dist/runtime/components/Popover.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue +2 -8
- package/dist/runtime/components/ScrollArea.vue +72 -0
- package/dist/runtime/components/Select.vue +2 -1
- package/dist/runtime/components/Slider.vue +97 -0
- package/dist/runtime/components/Switch.vue +1 -2
- package/dist/runtime/components/Tabs.vue +6 -6
- package/dist/runtime/components/Textarea.vue +172 -0
- package/dist/runtime/components/Toast.vue +2 -2
- package/dist/runtime/components/Toaster.vue +2 -1
- package/dist/runtime/components/Tooltip.vue +1 -1
- package/dist/runtime/composables/defineInjection.d.ts +11 -0
- package/dist/runtime/composables/defineInjection.mjs +9 -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/accordion.mjs +24 -21
- package/dist/runtime/theme/alert.d.ts +85 -0
- package/dist/runtime/theme/alert.mjs +47 -0
- package/dist/runtime/theme/app.mjs +1 -0
- package/dist/runtime/theme/badge.d.ts +79 -0
- package/dist/runtime/theme/badge.mjs +89 -0
- package/dist/runtime/theme/button.d.ts +4 -9
- package/dist/runtime/theme/button.mjs +130 -127
- package/dist/runtime/theme/card.d.ts +2 -2
- package/dist/runtime/theme/card.mjs +12 -9
- package/dist/runtime/theme/checkbox.d.ts +0 -12
- package/dist/runtime/theme/checkbox.mjs +45 -47
- package/dist/runtime/theme/chip.d.ts +56 -0
- package/dist/runtime/theme/chip.mjs +63 -0
- package/dist/runtime/theme/drawer.mjs +69 -66
- package/dist/runtime/theme/index.d.ts +7 -0
- package/dist/runtime/theme/index.mjs +7 -0
- package/dist/runtime/theme/input.d.ts +13 -5
- package/dist/runtime/theme/input.mjs +135 -122
- package/dist/runtime/theme/link.d.ts +1 -1
- package/dist/runtime/theme/link.mjs +23 -20
- package/dist/runtime/theme/modal.mjs +51 -48
- package/dist/runtime/theme/pinInput.d.ts +97 -0
- package/dist/runtime/theme/pinInput.mjs +108 -0
- package/dist/runtime/theme/popover.mjs +11 -8
- package/dist/runtime/theme/radioGroup.d.ts +0 -24
- package/dist/runtime/theme/radioGroup.mjs +50 -59
- package/dist/runtime/theme/scrollArea.d.ts +51 -0
- package/dist/runtime/theme/scrollArea.mjs +33 -0
- package/dist/runtime/theme/select.d.ts +5 -2
- package/dist/runtime/theme/select.mjs +156 -143
- package/dist/runtime/theme/slider.d.ts +73 -0
- package/dist/runtime/theme/slider.mjs +49 -0
- package/dist/runtime/theme/switch.d.ts +0 -12
- package/dist/runtime/theme/switch.mjs +66 -69
- package/dist/runtime/theme/tabs.d.ts +44 -13
- package/dist/runtime/theme/tabs.mjs +132 -106
- package/dist/runtime/theme/textarea.d.ts +93 -0
- package/dist/runtime/theme/textarea.mjs +113 -0
- package/dist/runtime/theme/toast.mjs +26 -23
- package/dist/runtime/theme/toaster.d.ts +2 -2
- package/dist/runtime/theme/toaster.mjs +84 -81
- package/dist/runtime/theme/tooltip.mjs +9 -6
- package/dist/runtime/types/components.d.ts +7 -0
- package/dist/runtime/types/index.d.ts +1 -3
- package/dist/runtime/utils/extend-theme.mjs +1 -1
- package/dist/runtime/utils/index.d.ts +0 -11
- package/dist/runtime/utils/index.mjs +0 -11
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/shared/ui.CzDyI29e.mjs +8 -0
- package/dist/shared/ui.CzDyI29e.mjs.map +1 -0
- package/dist/unocss-preset.d.mts +15 -7
- package/dist/unocss-preset.d.ts +15 -7
- package/dist/unocss-preset.mjs +97 -384
- package/dist/unocss-preset.mjs.map +1 -0
- package/dist/unplugin.d.mts +25 -0
- package/dist/unplugin.d.ts +25 -0
- package/dist/unplugin.mjs +64 -0
- package/dist/unplugin.mjs.map +1 -0
- package/dist/vite.d.mts +9 -0
- package/dist/vite.d.ts +9 -0
- package/dist/vite.mjs +14 -0
- package/dist/vite.mjs.map +1 -0
- package/package.json +22 -14
- package/dist/index.cjs +0 -38
- package/dist/resolver.d.mts +0 -13
- package/dist/resolver.d.ts +0 -13
- package/dist/resolver.mjs +0 -21
- package/dist/runtime/components/index.cjs +0 -132
- package/dist/runtime/components/index.d.ts +0 -18
- package/dist/runtime/components/index.mjs +0 -18
- package/dist/runtime/composables/index.cjs +0 -33
- package/dist/runtime/composables/index.d.ts +0 -4
- package/dist/runtime/composables/index.mjs +0 -4
- 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
- package/dist/shared/ui.CPXA9QoM.mjs +0 -23
|
@@ -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: {
|
|
@@ -16,11 +16,21 @@ declare const _default: {
|
|
|
16
16
|
trigger: string[];
|
|
17
17
|
indicator: string;
|
|
18
18
|
};
|
|
19
|
+
outline: {
|
|
20
|
+
list: string;
|
|
21
|
+
trigger: string[];
|
|
22
|
+
indicator: string;
|
|
23
|
+
};
|
|
19
24
|
soft: {
|
|
20
25
|
list: string;
|
|
21
26
|
trigger: string[];
|
|
22
27
|
indicator: string;
|
|
23
28
|
};
|
|
29
|
+
'soft-outline': {
|
|
30
|
+
list: string;
|
|
31
|
+
trigger: string[];
|
|
32
|
+
indicator: string;
|
|
33
|
+
};
|
|
24
34
|
link: {
|
|
25
35
|
list: string;
|
|
26
36
|
indicator: string;
|
|
@@ -42,24 +52,19 @@ declare const _default: {
|
|
|
42
52
|
};
|
|
43
53
|
size: {
|
|
44
54
|
xs: {
|
|
45
|
-
|
|
46
|
-
leadingIcon: string;
|
|
55
|
+
root: string;
|
|
47
56
|
};
|
|
48
57
|
sm: {
|
|
49
|
-
|
|
50
|
-
leadingIcon: string;
|
|
58
|
+
root: string;
|
|
51
59
|
};
|
|
52
60
|
md: {
|
|
53
|
-
|
|
54
|
-
leadingIcon: string;
|
|
61
|
+
root: string;
|
|
55
62
|
};
|
|
56
63
|
lg: {
|
|
57
|
-
|
|
58
|
-
leadingIcon: string;
|
|
64
|
+
root: string;
|
|
59
65
|
};
|
|
60
66
|
xl: {
|
|
61
|
-
|
|
62
|
-
leadingIcon: string;
|
|
67
|
+
root: string;
|
|
63
68
|
};
|
|
64
69
|
};
|
|
65
70
|
full: {
|
|
@@ -69,33 +74,59 @@ declare const _default: {
|
|
|
69
74
|
};
|
|
70
75
|
};
|
|
71
76
|
compoundVariants: ({
|
|
77
|
+
size: ("xs" | "sm" | "md")[];
|
|
78
|
+
class: {
|
|
79
|
+
trigger: string;
|
|
80
|
+
indicator?: undefined;
|
|
81
|
+
list?: undefined;
|
|
82
|
+
};
|
|
83
|
+
orientation?: undefined;
|
|
84
|
+
variant?: undefined;
|
|
85
|
+
} | {
|
|
86
|
+
size: ("lg" | "xl")[];
|
|
87
|
+
class: {
|
|
88
|
+
trigger: string;
|
|
89
|
+
indicator?: undefined;
|
|
90
|
+
list?: undefined;
|
|
91
|
+
};
|
|
92
|
+
orientation?: undefined;
|
|
93
|
+
variant?: undefined;
|
|
94
|
+
} | {
|
|
72
95
|
orientation: "horizontal";
|
|
73
|
-
variant: ("solid" | "soft")[];
|
|
96
|
+
variant: ("solid" | "outline" | "soft" | "soft-outline")[];
|
|
74
97
|
class: {
|
|
75
98
|
indicator: string;
|
|
99
|
+
trigger?: undefined;
|
|
76
100
|
list?: undefined;
|
|
77
101
|
};
|
|
102
|
+
size?: undefined;
|
|
78
103
|
} | {
|
|
79
104
|
orientation: "horizontal";
|
|
80
105
|
variant: "link";
|
|
81
106
|
class: {
|
|
82
107
|
list: string;
|
|
83
108
|
indicator: string;
|
|
109
|
+
trigger?: undefined;
|
|
84
110
|
};
|
|
111
|
+
size?: undefined;
|
|
85
112
|
} | {
|
|
86
113
|
orientation: "vertical";
|
|
87
|
-
variant: ("solid" | "soft")[];
|
|
114
|
+
variant: ("solid" | "outline" | "soft" | "soft-outline")[];
|
|
88
115
|
class: {
|
|
89
116
|
indicator: string;
|
|
90
117
|
list: string;
|
|
118
|
+
trigger?: undefined;
|
|
91
119
|
};
|
|
120
|
+
size?: undefined;
|
|
92
121
|
} | {
|
|
93
122
|
orientation: "vertical";
|
|
94
123
|
variant: "link";
|
|
95
124
|
class: {
|
|
96
125
|
list: string;
|
|
97
126
|
indicator: string;
|
|
127
|
+
trigger?: undefined;
|
|
98
128
|
};
|
|
129
|
+
size?: undefined;
|
|
99
130
|
})[];
|
|
100
131
|
};
|
|
101
132
|
export default _default;
|
|
@@ -1,117 +1,143 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "flex items-center gap-2",
|
|
7
|
+
list: "relative flex p-1 group",
|
|
8
|
+
indicator: "absolute transition-all duration-200",
|
|
9
|
+
trigger: [
|
|
10
|
+
"group relative inline-flex items-center gap-0.25em shrink-0 min-w-0 font-medium rounded-ui-tabs transition-colors",
|
|
11
|
+
"outline-none",
|
|
12
|
+
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
13
|
+
],
|
|
14
|
+
content: "w-full focus:outline-none",
|
|
15
|
+
prefixIcon: "shrink-0 size-1.5em",
|
|
16
|
+
label: "truncate"
|
|
17
|
+
},
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
"solid": {
|
|
21
|
+
list: "bg-ui-cb/5 rounded-ui-tabs",
|
|
22
|
+
trigger: [
|
|
23
|
+
"data-[state=active]:color-ui-c1 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80",
|
|
24
|
+
"data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
|
|
25
|
+
],
|
|
26
|
+
indicator: "bg-ui-fill/90 rounded-ui-tabs shadow-xs"
|
|
27
|
+
},
|
|
28
|
+
"outline": {
|
|
29
|
+
list: "bg-ui-cb/5 rounded-ui-tabs",
|
|
30
|
+
trigger: [
|
|
31
|
+
"data-[state=active]:color-ui-content focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-content/80",
|
|
32
|
+
"data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
|
|
33
|
+
],
|
|
34
|
+
indicator: "rounded-ui-tabs ring ring-inset ring-ui-content"
|
|
35
|
+
},
|
|
36
|
+
"soft": {
|
|
37
|
+
list: "bg-ui-cb/5 rounded-ui-tabs",
|
|
38
|
+
trigger: [
|
|
39
|
+
"data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill",
|
|
40
|
+
"data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
|
|
41
|
+
],
|
|
42
|
+
indicator: "bg-ui-fill/10 rounded-ui-tabs shadow-xs"
|
|
43
|
+
},
|
|
44
|
+
"soft-outline": {
|
|
45
|
+
list: "bg-ui-cb/5 rounded-ui-tabs",
|
|
46
|
+
trigger: [
|
|
47
|
+
"data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill",
|
|
48
|
+
"data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
|
|
49
|
+
],
|
|
50
|
+
indicator: "bg-ui-fill/10 rounded-ui-tabs shadow-xs ring ring-inset ring-ui-content/40"
|
|
51
|
+
},
|
|
52
|
+
"link": {
|
|
53
|
+
list: "bg-ui-cb/5 border-ui-cb/10",
|
|
54
|
+
indicator: "bg-ui-fill rounded-full",
|
|
55
|
+
trigger: [
|
|
56
|
+
"data-[state=active]:color-ui-base focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-base",
|
|
57
|
+
"data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
25
60
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
61
|
+
orientation: {
|
|
62
|
+
horizontal: {
|
|
63
|
+
root: "flex-col",
|
|
64
|
+
list: "w-full",
|
|
65
|
+
indicator: "left-0 w-[var(--reka-tabs-indicator-size)] translate-x-[var(--reka-tabs-indicator-position)]",
|
|
66
|
+
trigger: "justify-center"
|
|
67
|
+
},
|
|
68
|
+
vertical: {
|
|
69
|
+
list: "flex-col",
|
|
70
|
+
indicator: "top-0 h-[var(--reka-tabs-indicator-size)] translate-y-[var(--reka-tabs-indicator-position)]",
|
|
71
|
+
trigger: "flex-1 w-full"
|
|
72
|
+
}
|
|
33
73
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
74
|
+
size: {
|
|
75
|
+
xs: {
|
|
76
|
+
root: "text-sm"
|
|
77
|
+
},
|
|
78
|
+
sm: {
|
|
79
|
+
root: "tex-tsm"
|
|
80
|
+
},
|
|
81
|
+
md: {
|
|
82
|
+
root: "text-base"
|
|
83
|
+
},
|
|
84
|
+
lg: {
|
|
85
|
+
root: "text-lg"
|
|
86
|
+
},
|
|
87
|
+
xl: {
|
|
88
|
+
root: "text-xl"
|
|
89
|
+
}
|
|
49
90
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
91
|
+
full: {
|
|
92
|
+
true: {
|
|
93
|
+
trigger: "w-full flex-1"
|
|
94
|
+
}
|
|
54
95
|
}
|
|
55
96
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
97
|
+
compoundVariants: [
|
|
98
|
+
{
|
|
99
|
+
size: ["xs", "sm", "md"],
|
|
100
|
+
class: {
|
|
101
|
+
trigger: "p-1.5 px-2.5"
|
|
102
|
+
}
|
|
60
103
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
104
|
+
{
|
|
105
|
+
size: ["lg", "xl"],
|
|
106
|
+
class: {
|
|
107
|
+
trigger: "p-2.5 px-4.5"
|
|
108
|
+
}
|
|
64
109
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
110
|
+
{
|
|
111
|
+
orientation: "horizontal",
|
|
112
|
+
variant: ["solid", "soft", "outline", "soft-outline"],
|
|
113
|
+
class: {
|
|
114
|
+
indicator: "inset-y-1"
|
|
115
|
+
}
|
|
68
116
|
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
117
|
+
{
|
|
118
|
+
orientation: "horizontal",
|
|
119
|
+
variant: "link",
|
|
120
|
+
class: {
|
|
121
|
+
list: "border-b -mb-px",
|
|
122
|
+
indicator: "-bottom-px h-px"
|
|
123
|
+
}
|
|
72
124
|
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
class: {
|
|
89
|
-
indicator: "inset-y-1"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
orientation: "horizontal",
|
|
94
|
-
variant: "link",
|
|
95
|
-
class: {
|
|
96
|
-
list: "border-b -mb-px",
|
|
97
|
-
indicator: "-bottom-px h-px"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
orientation: "vertical",
|
|
102
|
-
variant: ["solid", "soft"],
|
|
103
|
-
class: {
|
|
104
|
-
indicator: "inset-x-1",
|
|
105
|
-
list: "items-center rounded-[calc(var(--ui-radius-tabs)*0.66)]"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
orientation: "vertical",
|
|
110
|
-
variant: "link",
|
|
111
|
-
class: {
|
|
112
|
-
list: "border-s -ms-px",
|
|
113
|
-
indicator: "-start-px w-px"
|
|
125
|
+
{
|
|
126
|
+
orientation: "vertical",
|
|
127
|
+
variant: ["solid", "soft", "outline", "soft-outline"],
|
|
128
|
+
class: {
|
|
129
|
+
indicator: "inset-x-1",
|
|
130
|
+
list: "items-center rounded-[calc(var(--ui-radius-tabs)*0.66)]"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
orientation: "vertical",
|
|
135
|
+
variant: "link",
|
|
136
|
+
class: {
|
|
137
|
+
list: "border-s -ms-px",
|
|
138
|
+
indicator: "-start-px w-px"
|
|
139
|
+
}
|
|
114
140
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
);
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
'soft-outline': {
|
|
33
|
+
root: string[];
|
|
34
|
+
};
|
|
35
|
+
ghost: {
|
|
36
|
+
root: string[];
|
|
37
|
+
};
|
|
38
|
+
none: {
|
|
39
|
+
root: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
underline: {
|
|
43
|
+
true: "";
|
|
44
|
+
};
|
|
45
|
+
highlight: {
|
|
46
|
+
true: {
|
|
47
|
+
base: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
compoundVariants: ({
|
|
52
|
+
variant: ("soft" | "ghost" | "none")[];
|
|
53
|
+
highlight: false;
|
|
54
|
+
underline: true;
|
|
55
|
+
class: {
|
|
56
|
+
root: string[];
|
|
57
|
+
};
|
|
58
|
+
size?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
size: ("xs" | "sm" | "md")[];
|
|
61
|
+
class: {
|
|
62
|
+
root: string;
|
|
63
|
+
};
|
|
64
|
+
variant?: undefined;
|
|
65
|
+
highlight?: undefined;
|
|
66
|
+
underline?: undefined;
|
|
67
|
+
} | {
|
|
68
|
+
size: ("lg" | "xl")[];
|
|
69
|
+
class: {
|
|
70
|
+
root: string;
|
|
71
|
+
};
|
|
72
|
+
variant?: undefined;
|
|
73
|
+
highlight?: undefined;
|
|
74
|
+
underline?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
variant: ("soft" | "soft-outline" | "ghost" | "none")[];
|
|
77
|
+
highlight: true;
|
|
78
|
+
class: {
|
|
79
|
+
root: string;
|
|
80
|
+
};
|
|
81
|
+
underline?: undefined;
|
|
82
|
+
size?: undefined;
|
|
83
|
+
} | {
|
|
84
|
+
variant: "outline"[];
|
|
85
|
+
highlight: true;
|
|
86
|
+
class: {
|
|
87
|
+
root: string;
|
|
88
|
+
};
|
|
89
|
+
underline?: undefined;
|
|
90
|
+
size?: undefined;
|
|
91
|
+
})[];
|
|
92
|
+
};
|
|
93
|
+
export default _default;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "rounded-ui-base transition-colors aria-disabled:opacity-50",
|
|
7
|
+
base: [
|
|
8
|
+
"w-full color-inherit bg-transparent border-0 resize-none placeholder:color-ui-cb/50",
|
|
9
|
+
"focus:outline-none",
|
|
10
|
+
"disabled:cursor-not-allowed"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
size: {
|
|
15
|
+
xs: {
|
|
16
|
+
root: "text-xs"
|
|
17
|
+
},
|
|
18
|
+
sm: {
|
|
19
|
+
root: "text-sm"
|
|
20
|
+
},
|
|
21
|
+
md: {
|
|
22
|
+
root: "text-base"
|
|
23
|
+
},
|
|
24
|
+
lg: {
|
|
25
|
+
root: "text-lg"
|
|
26
|
+
},
|
|
27
|
+
xl: {
|
|
28
|
+
root: "text-xl"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
variant: {
|
|
32
|
+
"outline": {
|
|
33
|
+
root: [
|
|
34
|
+
"color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50",
|
|
35
|
+
"focus-within:ring-2 focus-within:ring-ui-cb/50",
|
|
36
|
+
"aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"soft": {
|
|
40
|
+
root: [
|
|
41
|
+
"color-ui-cb/80 bg-ui-cb/4",
|
|
42
|
+
"hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
|
|
43
|
+
"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"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"soft-outline": {
|
|
47
|
+
root: [
|
|
48
|
+
"color-ui-cb/80 bg-ui-cb/4 ring ring-inset ring-ui-cb/10",
|
|
49
|
+
"hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
|
|
50
|
+
"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"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"ghost": {
|
|
54
|
+
root: [
|
|
55
|
+
"color-ui-cb/80 bg-transparent",
|
|
56
|
+
"hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
|
|
57
|
+
"aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"none": {
|
|
61
|
+
root: "color-ui-cb bg-transparent"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
underline: {
|
|
65
|
+
true: ""
|
|
66
|
+
},
|
|
67
|
+
highlight: {
|
|
68
|
+
true: {
|
|
69
|
+
base: ""
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
compoundVariants: [
|
|
74
|
+
{
|
|
75
|
+
variant: ["soft", "ghost", "none"],
|
|
76
|
+
highlight: false,
|
|
77
|
+
underline: true,
|
|
78
|
+
class: {
|
|
79
|
+
root: [
|
|
80
|
+
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40",
|
|
81
|
+
"focus-within:after:h-2px focus-within:after:bg-ui-fill/60"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
size: ["xs", "sm", "md"],
|
|
87
|
+
class: {
|
|
88
|
+
root: "p-1.5 px-2.5"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
size: ["lg", "xl"],
|
|
93
|
+
class: {
|
|
94
|
+
root: "p-2.5 px-3.5"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
variant: ["soft", "soft-outline", "ghost", "none"],
|
|
99
|
+
highlight: true,
|
|
100
|
+
class: {
|
|
101
|
+
root: "ring ring-inset ring-ui-fill/80"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
variant: ["outline"],
|
|
106
|
+
highlight: true,
|
|
107
|
+
class: {
|
|
108
|
+
root: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
);
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "relative group overflow-hidden bg-ui-c1 shadow-lg rounded-ui-box ring ring-ui-c2 p-4 flex gap-2.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-c2",
|
|
7
|
+
wrapper: "w-0 flex-1 flex flex-col gap-1",
|
|
8
|
+
title: "text-base font-medium color-ui-cb",
|
|
9
|
+
description: "text-sm color-ui-cb/80",
|
|
10
|
+
icon: "shrink-0 size-6 color-ui-cb",
|
|
11
|
+
avatar: "shrink-0",
|
|
12
|
+
avatarSize: "2xl",
|
|
13
|
+
actions: "flex flex-wrap gap-1.5 shrink-0",
|
|
14
|
+
progress: "absolute inset-x-[var(--ui-radius-box)] bottom-0 h-1 z-[-1] color-ui-base/80 bg-current rounded-ui-base",
|
|
15
|
+
close: "p-0.5"
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
multiline: {
|
|
19
|
+
true: {
|
|
20
|
+
root: "items-start",
|
|
21
|
+
actions: "items-start mt-1"
|
|
22
|
+
},
|
|
23
|
+
false: {
|
|
24
|
+
root: "items-center",
|
|
25
|
+
actions: "items-center"
|
|
26
|
+
}
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
|
-
|
|
30
|
+
);
|
|
@@ -41,14 +41,14 @@ declare const _default: {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
compoundVariants: ({
|
|
44
|
-
position: ("top-
|
|
44
|
+
position: ("top-right" | "top-left" | "top-center")[];
|
|
45
45
|
class: {
|
|
46
46
|
viewport: string;
|
|
47
47
|
base: string;
|
|
48
48
|
};
|
|
49
49
|
swipeDirection?: undefined;
|
|
50
50
|
} | {
|
|
51
|
-
position: ("bottom-
|
|
51
|
+
position: ("bottom-right" | "bottom-left" | "bottom-center")[];
|
|
52
52
|
class: {
|
|
53
53
|
viewport: string;
|
|
54
54
|
base: string;
|