@byyuurin/ui 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/dist/module.cjs +5 -0
- package/dist/module.json +12 -0
- package/dist/{nuxt.mjs → module.mjs} +4 -4
- package/dist/module.mjs.map +1 -0
- package/dist/runtime/components/Accordion.vue +20 -31
- package/dist/runtime/components/Alert.vue +1 -1
- package/dist/runtime/components/Button.vue +10 -11
- package/dist/runtime/components/Card.vue +9 -6
- package/dist/runtime/components/Checkbox.vue +3 -3
- package/dist/runtime/components/Chip.vue +2 -2
- package/dist/runtime/components/Collapsible.vue +56 -0
- package/dist/runtime/components/Drawer.vue +4 -2
- package/dist/runtime/components/Input.vue +4 -4
- package/dist/runtime/components/InputNumber.vue +167 -0
- package/dist/runtime/components/Link.vue +301 -72
- package/dist/runtime/components/LinkBase.vue +88 -0
- package/dist/runtime/components/Modal.vue +0 -1
- package/dist/runtime/components/Select.vue +4 -4
- package/dist/runtime/components/Separator.vue +63 -0
- package/dist/runtime/components/Switch.vue +3 -3
- package/dist/runtime/components/Table.vue +292 -0
- package/dist/runtime/components/Tabs.vue +17 -17
- package/dist/runtime/components/Toast.vue +1 -1
- package/dist/runtime/components/Toaster.vue +1 -35
- package/dist/runtime/composables/useButtonGroup.d.ts +1 -1
- package/dist/runtime/composables/{useButtonGroup.mjs → useButtonGroup.js} +1 -1
- package/dist/runtime/composables/{useComponentIcons.mjs → useComponentIcons.js} +1 -1
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/{useModal.mjs → useModal.js} +1 -1
- package/dist/runtime/composables/useTheme.d.ts +3 -3
- package/dist/runtime/composables/{useTheme.mjs → useTheme.js} +3 -3
- package/dist/runtime/composables/useToast.d.ts +1 -1
- package/dist/runtime/index.d.ts +34 -0
- package/dist/runtime/index.js +34 -0
- package/dist/runtime/theme/accordion.d.ts +8 -8
- package/dist/runtime/theme/{accordion.mjs → accordion.js} +2 -2
- package/dist/runtime/theme/alert.d.ts +2 -2
- package/dist/runtime/theme/{alert.mjs → alert.js} +4 -4
- package/dist/runtime/theme/app.d.ts +3 -0
- package/dist/runtime/theme/{app.mjs → app.js} +4 -1
- package/dist/runtime/theme/badge.d.ts +45 -21
- package/dist/runtime/theme/{badge.mjs → badge.js} +2 -2
- package/dist/runtime/theme/button-group.d.ts +2 -2
- package/dist/runtime/theme/button.d.ts +57 -111
- package/dist/runtime/theme/button.js +164 -0
- package/dist/runtime/theme/card.d.ts +38 -38
- package/dist/runtime/theme/card.js +37 -0
- package/dist/runtime/theme/carousel.d.ts +2 -2
- package/dist/runtime/theme/{carousel.mjs → carousel.js} +2 -2
- package/dist/runtime/theme/checkbox.d.ts +1 -1
- package/dist/runtime/theme/{checkbox.mjs → checkbox.js} +3 -3
- package/dist/runtime/theme/chip.d.ts +45 -12
- package/dist/runtime/theme/{chip.mjs → chip.js} +5 -7
- package/dist/runtime/theme/collapsible.d.ts +38 -0
- package/dist/runtime/theme/collapsible.js +10 -0
- package/dist/runtime/theme/drawer.d.ts +43 -43
- package/dist/runtime/theme/{drawer.mjs → drawer.js} +33 -22
- package/dist/runtime/theme/index.d.ts +31 -27
- package/dist/runtime/theme/index.js +31 -0
- package/dist/runtime/theme/input-number.d.ts +135 -0
- package/dist/runtime/theme/input-number.js +92 -0
- package/dist/runtime/theme/input.d.ts +71 -99
- package/dist/runtime/theme/{input.mjs → input.js} +14 -14
- package/dist/runtime/theme/link.d.ts +2 -2
- package/dist/runtime/theme/{link.mjs → link.js} +1 -1
- package/dist/runtime/theme/modal.d.ts +31 -8
- package/dist/runtime/theme/{modal.mjs → modal.js} +4 -9
- package/dist/runtime/theme/pagination.d.ts +17 -17
- package/dist/runtime/theme/pinInput.d.ts +42 -42
- package/dist/runtime/theme/{pinInput.mjs → pinInput.js} +10 -10
- package/dist/runtime/theme/popover.d.ts +8 -8
- package/dist/runtime/theme/{popover.mjs → popover.js} +1 -1
- package/dist/runtime/theme/radio-group.d.ts +1 -1
- package/dist/runtime/theme/{radio-group.mjs → radio-group.js} +1 -1
- package/dist/runtime/theme/scroll-area.d.ts +17 -17
- package/dist/runtime/theme/{scroll-area.mjs → scroll-area.js} +2 -2
- package/dist/runtime/theme/select.d.ts +84 -99
- package/dist/runtime/theme/{select.mjs → select.js} +17 -17
- package/dist/runtime/theme/separator.d.ts +95 -0
- package/dist/runtime/theme/separator.js +53 -0
- package/dist/runtime/theme/slider.d.ts +1 -1
- package/dist/runtime/theme/{slider.mjs → slider.js} +3 -3
- package/dist/runtime/theme/switch.d.ts +1 -1
- package/dist/runtime/theme/{switch.mjs → switch.js} +2 -2
- package/dist/runtime/theme/table.d.ts +89 -0
- package/dist/runtime/theme/table.js +35 -0
- package/dist/runtime/theme/tabs.d.ts +69 -52
- package/dist/runtime/theme/{tabs.mjs → tabs.js} +11 -11
- package/dist/runtime/theme/textarea.d.ts +43 -37
- package/dist/runtime/theme/{textarea.mjs → textarea.js} +10 -10
- package/dist/runtime/theme/toast.d.ts +2 -2
- package/dist/runtime/theme/{toast.mjs → toast.js} +1 -1
- package/dist/runtime/theme/toaster.d.ts +42 -27
- package/dist/runtime/theme/tooltip.d.ts +11 -11
- package/dist/runtime/theme/tooltip.js +11 -0
- package/dist/runtime/types/components.d.ts +31 -27
- package/dist/runtime/types/index.d.ts +4 -4
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/utils/index.d.ts +3 -3
- package/dist/runtime/utils/{index.mjs → index.js} +3 -3
- package/dist/runtime/utils/link.d.ts +22 -7
- package/dist/runtime/utils/link.js +30 -0
- package/dist/runtime/utils/styler.d.ts +1 -1
- package/dist/runtime/vue/stubs.d.ts +9 -0
- package/dist/runtime/vue/stubs.js +16 -0
- package/dist/shared/{ui.D4zm1r0C.mjs → ui.d1728164.mjs} +1 -1
- package/dist/shared/ui.d1728164.mjs.map +1 -0
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/unocss.d.mts +6 -11
- package/dist/unocss.d.ts +6 -11
- package/dist/unocss.mjs +40 -21
- package/dist/unocss.mjs.map +1 -1
- package/dist/unplugin.mjs +37 -1
- package/dist/unplugin.mjs.map +1 -1
- package/dist/vite.d.mts +0 -1
- package/dist/vite.d.ts +0 -1
- package/dist/vite.mjs +3 -1
- package/dist/vite.mjs.map +1 -1
- package/package.json +37 -36
- package/dist/index.d.ts +0 -29
- package/dist/index.mjs +0 -29
- package/dist/nuxt.mjs.map +0 -1
- package/dist/runtime/theme/button.mjs +0 -148
- package/dist/runtime/theme/card.mjs +0 -14
- package/dist/runtime/theme/index.mjs +0 -27
- package/dist/runtime/theme/tooltip.mjs +0 -11
- package/dist/runtime/types/components.mjs +0 -27
- package/dist/runtime/types/index.mjs +0 -2
- package/dist/runtime/utils/link.mjs +0 -4
- package/dist/shared/ui.D4zm1r0C.mjs.map +0 -1
- /package/dist/{nuxt.d.mts → module.d.mts} +0 -0
- /package/dist/{nuxt.d.ts → module.d.ts} +0 -0
- /package/dist/runtime/composables/{defineInjection.mjs → defineInjection.js} +0 -0
- /package/dist/runtime/composables/{useToast.mjs → useToast.js} +0 -0
- /package/dist/runtime/theme/{button-group.mjs → button-group.js} +0 -0
- /package/dist/runtime/theme/{pagination.mjs → pagination.js} +0 -0
- /package/dist/runtime/theme/{toaster.mjs → toaster.js} +0 -0
- /package/dist/runtime/types/{utils.mjs → components.js} +0 -0
- /package/dist/runtime/utils/{extend-theme.mjs → extend-theme.js} +0 -0
- /package/dist/runtime/utils/{styler.mjs → styler.js} +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
base: string;
|
|
6
|
+
caption: string;
|
|
7
|
+
thead: string;
|
|
8
|
+
tbody: string;
|
|
9
|
+
tr: string;
|
|
10
|
+
th: string;
|
|
11
|
+
td: string;
|
|
12
|
+
empty: string;
|
|
13
|
+
};
|
|
14
|
+
variants: {
|
|
15
|
+
sticky: {
|
|
16
|
+
true: {
|
|
17
|
+
thead: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
pinned: {
|
|
21
|
+
true: {
|
|
22
|
+
th: string;
|
|
23
|
+
td: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
expanded: {
|
|
27
|
+
true: {
|
|
28
|
+
tr: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
33
|
+
sticky: {
|
|
34
|
+
true: {
|
|
35
|
+
thead: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
pinned: {
|
|
39
|
+
true: {
|
|
40
|
+
th: string;
|
|
41
|
+
td: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
expanded: {
|
|
45
|
+
true: {
|
|
46
|
+
tr: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
root: string;
|
|
51
|
+
base: string;
|
|
52
|
+
caption: string;
|
|
53
|
+
thead: string;
|
|
54
|
+
tbody: string;
|
|
55
|
+
tr: string;
|
|
56
|
+
th: string;
|
|
57
|
+
td: string;
|
|
58
|
+
empty: string;
|
|
59
|
+
}, undefined>;
|
|
60
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
61
|
+
sticky: {
|
|
62
|
+
true: {
|
|
63
|
+
thead: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
pinned: {
|
|
67
|
+
true: {
|
|
68
|
+
th: string;
|
|
69
|
+
td: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
expanded: {
|
|
73
|
+
true: {
|
|
74
|
+
tr: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
}, {
|
|
78
|
+
root: string;
|
|
79
|
+
base: string;
|
|
80
|
+
caption: string;
|
|
81
|
+
thead: string;
|
|
82
|
+
tbody: string;
|
|
83
|
+
tr: string;
|
|
84
|
+
th: string;
|
|
85
|
+
td: string;
|
|
86
|
+
empty: string;
|
|
87
|
+
}>;
|
|
88
|
+
};
|
|
89
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "relative overflow-auto",
|
|
7
|
+
base: "min-w-full overflow-clip",
|
|
8
|
+
caption: "sr-only",
|
|
9
|
+
thead: "relative [&>tr]:after:absolute [&>tr]:after:inset-x-0 [&>tr]:after:bottom-0 [&>tr]:after:h-px [&>tr]:after:bg-ui-cb/20",
|
|
10
|
+
tbody: "divide-y divide-ui-cb/10",
|
|
11
|
+
tr: "data-[selected=true]:bg-soft-ui-cb/50",
|
|
12
|
+
th: "px-4 py-3.5 text-sm color-ui-cb text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
|
|
13
|
+
td: "p-4 text-sm color-ui-cb/80 whitespace-nowrap [&:has([role=checkbox])]:pe-0",
|
|
14
|
+
empty: "py-6 text-center text-sm color-ui-cb/80"
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
sticky: {
|
|
18
|
+
true: {
|
|
19
|
+
thead: "sticky z-1 top-0 inset-x-0 bg-ui-cx/90 backdrop-blur"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
pinned: {
|
|
23
|
+
true: {
|
|
24
|
+
th: "sticky bg-ui-cx/90 data-[pinned=left]:left-0 data-[pinned=right]:right-0",
|
|
25
|
+
td: "sticky bg-ui-cx/90 data-[pinned=left]:left-0 data-[pinned=right]:right-0"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
expanded: {
|
|
29
|
+
true: {
|
|
30
|
+
tr: "animate-[fade-in_200ms_ease-out]"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
);
|
|
@@ -67,67 +67,84 @@ declare const _default: {
|
|
|
67
67
|
root: string;
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
-
|
|
70
|
+
evenly: {
|
|
71
71
|
true: {
|
|
72
72
|
trigger: string;
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
|
-
compoundVariants: ({
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
76
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
77
|
+
variant: {
|
|
78
|
+
solid: {
|
|
79
|
+
list: string;
|
|
80
|
+
trigger: string[];
|
|
81
|
+
indicator: string;
|
|
82
|
+
};
|
|
83
|
+
outline: {
|
|
84
|
+
list: string;
|
|
85
|
+
trigger: string[];
|
|
86
|
+
indicator: string;
|
|
87
|
+
};
|
|
88
|
+
soft: {
|
|
89
|
+
list: string;
|
|
90
|
+
trigger: string[];
|
|
91
|
+
indicator: string;
|
|
92
|
+
};
|
|
93
|
+
'soft-outline': {
|
|
94
|
+
list: string;
|
|
95
|
+
trigger: string[];
|
|
96
|
+
indicator: string;
|
|
97
|
+
};
|
|
98
|
+
link: {
|
|
99
|
+
list: string;
|
|
100
|
+
indicator: string;
|
|
101
|
+
trigger: string[];
|
|
102
|
+
};
|
|
101
103
|
};
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
104
|
+
orientation: {
|
|
105
|
+
horizontal: {
|
|
106
|
+
root: string;
|
|
107
|
+
list: string;
|
|
108
|
+
indicator: string;
|
|
109
|
+
trigger: string;
|
|
110
|
+
};
|
|
111
|
+
vertical: {
|
|
112
|
+
list: string;
|
|
113
|
+
indicator: string;
|
|
114
|
+
trigger: string;
|
|
115
|
+
};
|
|
110
116
|
};
|
|
111
|
-
size
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
size: {
|
|
118
|
+
xs: {
|
|
119
|
+
root: string;
|
|
120
|
+
};
|
|
121
|
+
sm: {
|
|
122
|
+
root: string;
|
|
123
|
+
};
|
|
124
|
+
md: {
|
|
125
|
+
root: string;
|
|
126
|
+
};
|
|
127
|
+
lg: {
|
|
128
|
+
root: string;
|
|
129
|
+
};
|
|
130
|
+
xl: {
|
|
131
|
+
root: string;
|
|
132
|
+
};
|
|
119
133
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
class: {
|
|
125
|
-
list: string;
|
|
126
|
-
indicator: string;
|
|
127
|
-
trigger?: undefined;
|
|
134
|
+
evenly: {
|
|
135
|
+
true: {
|
|
136
|
+
trigger: string;
|
|
137
|
+
};
|
|
128
138
|
};
|
|
129
|
-
|
|
130
|
-
|
|
139
|
+
}, {
|
|
140
|
+
root: string;
|
|
141
|
+
list: string;
|
|
142
|
+
indicator: string;
|
|
143
|
+
trigger: string[];
|
|
144
|
+
content: string;
|
|
145
|
+
prefixIcon: string;
|
|
146
|
+
label: string;
|
|
147
|
+
}, undefined>;
|
|
131
148
|
defaultVariants: {
|
|
132
149
|
size: "md";
|
|
133
150
|
};
|
|
@@ -18,15 +18,15 @@ export default ct(
|
|
|
18
18
|
variants: {
|
|
19
19
|
variant: {
|
|
20
20
|
"solid": {
|
|
21
|
-
list: "bg-
|
|
21
|
+
list: "bg-soft-ui-cb/5 rounded-ui-tabs",
|
|
22
22
|
trigger: [
|
|
23
|
-
"data-[state=active]:color-ui-
|
|
23
|
+
"data-[state=active]:color-ui-cx focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb/80",
|
|
24
24
|
"data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
|
|
25
25
|
],
|
|
26
|
-
indicator: "bg-
|
|
26
|
+
indicator: "bg-soft-ui-fill/90 rounded-ui-tabs shadow-sm"
|
|
27
27
|
},
|
|
28
28
|
"outline": {
|
|
29
|
-
list: "bg-
|
|
29
|
+
list: "bg-soft-ui-cb/5 rounded-ui-tabs",
|
|
30
30
|
trigger: [
|
|
31
31
|
"data-[state=active]:color-ui-content focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-content/80",
|
|
32
32
|
"data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
|
|
@@ -34,24 +34,24 @@ export default ct(
|
|
|
34
34
|
indicator: "rounded-ui-tabs ring ring-inset ring-ui-content"
|
|
35
35
|
},
|
|
36
36
|
"soft": {
|
|
37
|
-
list: "bg-
|
|
37
|
+
list: "bg-soft-ui-cb/5 rounded-ui-tabs",
|
|
38
38
|
trigger: [
|
|
39
39
|
"data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill",
|
|
40
40
|
"data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
|
|
41
41
|
],
|
|
42
|
-
indicator: "bg-
|
|
42
|
+
indicator: "bg-soft-ui-fill/10 rounded-ui-tabs shadow-sm"
|
|
43
43
|
},
|
|
44
44
|
"soft-outline": {
|
|
45
|
-
list: "bg-
|
|
45
|
+
list: "bg-soft-ui-cb/5 rounded-ui-tabs",
|
|
46
46
|
trigger: [
|
|
47
47
|
"data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill",
|
|
48
48
|
"data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
|
|
49
49
|
],
|
|
50
|
-
indicator: "bg-
|
|
50
|
+
indicator: "bg-soft-ui-fill/10 rounded-ui-tabs shadow-sm ring ring-inset ring-ui-content/30"
|
|
51
51
|
},
|
|
52
52
|
"link": {
|
|
53
|
-
list: "bg-
|
|
54
|
-
indicator: "bg-
|
|
53
|
+
list: "bg-soft-ui-cb/5 border-ui-cb/10",
|
|
54
|
+
indicator: "bg-soft-ui-fill rounded-full",
|
|
55
55
|
trigger: [
|
|
56
56
|
"data-[state=active]:color-ui-base focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-base",
|
|
57
57
|
"data-[state=inactive]:color-ui-cb/80 hover:data-[state=inactive]:not-disabled:color-ui-cb"
|
|
@@ -88,7 +88,7 @@ export default ct(
|
|
|
88
88
|
root: "text-xl"
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
-
|
|
91
|
+
evenly: {
|
|
92
92
|
true: {
|
|
93
93
|
trigger: "w-full flex-1"
|
|
94
94
|
}
|
|
@@ -48,47 +48,53 @@ declare const _default: {
|
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
-
compoundVariants: ({
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
52
|
+
size: {
|
|
53
|
+
xs: {
|
|
54
|
+
root: string;
|
|
55
|
+
};
|
|
56
|
+
sm: {
|
|
57
|
+
root: string;
|
|
58
|
+
};
|
|
59
|
+
md: {
|
|
60
|
+
root: string;
|
|
61
|
+
};
|
|
62
|
+
lg: {
|
|
63
|
+
root: string;
|
|
64
|
+
};
|
|
65
|
+
xl: {
|
|
66
|
+
root: string;
|
|
67
|
+
};
|
|
63
68
|
};
|
|
64
|
-
variant
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
variant: {
|
|
70
|
+
outline: {
|
|
71
|
+
root: string[];
|
|
72
|
+
};
|
|
73
|
+
soft: {
|
|
74
|
+
root: string[];
|
|
75
|
+
};
|
|
76
|
+
'soft-outline': {
|
|
77
|
+
root: string[];
|
|
78
|
+
};
|
|
79
|
+
ghost: {
|
|
80
|
+
root: string[];
|
|
81
|
+
};
|
|
82
|
+
none: {
|
|
83
|
+
root: string;
|
|
84
|
+
};
|
|
71
85
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
underline?: undefined;
|
|
75
|
-
} | {
|
|
76
|
-
variant: ("soft" | "soft-outline" | "ghost" | "none")[];
|
|
77
|
-
highlight: true;
|
|
78
|
-
class: {
|
|
79
|
-
root: string;
|
|
86
|
+
underline: {
|
|
87
|
+
true: "";
|
|
80
88
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
highlight: true;
|
|
86
|
-
class: {
|
|
87
|
-
root: string;
|
|
89
|
+
highlight: {
|
|
90
|
+
true: {
|
|
91
|
+
base: string;
|
|
92
|
+
};
|
|
88
93
|
};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
}, {
|
|
95
|
+
root: string;
|
|
96
|
+
base: string[];
|
|
97
|
+
}, undefined>;
|
|
92
98
|
defaultVariants: {
|
|
93
99
|
size: "md";
|
|
94
100
|
};
|
|
@@ -31,29 +31,29 @@ export default ct(
|
|
|
31
31
|
variant: {
|
|
32
32
|
"outline": {
|
|
33
33
|
root: [
|
|
34
|
-
"color-ui-cb/80 bg-
|
|
34
|
+
"color-ui-cb/80 bg-ui-cx ring ring-inset ring-ui-cb/30",
|
|
35
35
|
"focus-within:ring-2 focus-within:ring-ui-cb/50",
|
|
36
36
|
"aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
39
|
"soft": {
|
|
40
40
|
root: [
|
|
41
|
-
"color-ui-cb/80 bg-
|
|
42
|
-
"hover:bg-
|
|
43
|
-
"aria-disabled:color-ui-content/80 aria-disabled:bg-
|
|
41
|
+
"color-ui-cb/80 bg-soft-ui-cb/4",
|
|
42
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:hover:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
|
|
43
|
+
"aria-disabled:color-ui-content/80 aria-disabled:bg-soft-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-soft-ui-fill/5"
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
46
|
"soft-outline": {
|
|
47
47
|
root: [
|
|
48
|
-
"color-ui-cb/80 bg-
|
|
49
|
-
"hover:bg-
|
|
50
|
-
"aria-disabled:color-ui-content/80 aria-disabled:bg-
|
|
48
|
+
"color-ui-cb/80 bg-soft-ui-cb/4 ring ring-inset ring-ui-cb/30",
|
|
49
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:hover:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
|
|
50
|
+
"aria-disabled:color-ui-content/80 aria-disabled:bg-soft-ui-fill/5 hover:aria-disabled:color-ui-content/80 hover:aria-disabled:bg-soft-ui-fill/5"
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
53
|
"ghost": {
|
|
54
54
|
root: [
|
|
55
55
|
"color-ui-cb/80 bg-transparent",
|
|
56
|
-
"hover:bg-
|
|
56
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:hover:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
|
|
57
57
|
"aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
@@ -77,8 +77,8 @@ export default ct(
|
|
|
77
77
|
underline: true,
|
|
78
78
|
class: {
|
|
79
79
|
root: [
|
|
80
|
-
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-
|
|
81
|
-
"focus-within:after:h-2px focus-within:after:bg-
|
|
80
|
+
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-soft-ui-cb/40",
|
|
81
|
+
"focus-within:after:h-2px focus-within:after:bg-soft-ui-fill/60"
|
|
82
82
|
]
|
|
83
83
|
}
|
|
84
84
|
},
|
|
@@ -29,7 +29,7 @@ declare const _default: {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
compoundVariants: import("@byyuurin/ui-kit
|
|
32
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
33
33
|
orientation: {
|
|
34
34
|
horizontal: {
|
|
35
35
|
root: string;
|
|
@@ -57,7 +57,7 @@ declare const _default: {
|
|
|
57
57
|
progress: string;
|
|
58
58
|
close: string;
|
|
59
59
|
}, undefined>;
|
|
60
|
-
defaultVariants: import("@byyuurin/ui-kit
|
|
60
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
61
61
|
orientation: {
|
|
62
62
|
horizontal: {
|
|
63
63
|
root: string;
|
|
@@ -3,7 +3,7 @@ export default ct(
|
|
|
3
3
|
/* @unocss-include */
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
|
-
root: "group relative overflow-hidden bg-
|
|
6
|
+
root: "group relative overflow-hidden bg-ui-cx shadow-lg rounded-ui-box ring ring-ui-cb/5 p-4 flex gap-2.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ui-cb/5",
|
|
7
7
|
wrapper: "w-0 flex-1 flex flex-col gap-1",
|
|
8
8
|
title: "text-base font-medium color-ui-cb",
|
|
9
9
|
description: "text-sm color-ui-cb/80",
|
|
@@ -45,36 +45,51 @@ declare const _default: {
|
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
compoundVariants: ({
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
swipeDirection?: undefined;
|
|
55
|
-
} | {
|
|
56
|
-
position: ("bottom-right" | "bottom-left" | "bottom-center")[];
|
|
57
|
-
class: {
|
|
58
|
-
viewport: string;
|
|
59
|
-
base: string;
|
|
48
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
49
|
+
clickable: {
|
|
50
|
+
true: {
|
|
51
|
+
base: string;
|
|
52
|
+
};
|
|
60
53
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
54
|
+
position: {
|
|
55
|
+
'top-left': {
|
|
56
|
+
viewport: string;
|
|
57
|
+
};
|
|
58
|
+
'top-center': {
|
|
59
|
+
viewport: string;
|
|
60
|
+
};
|
|
61
|
+
'top-right': {
|
|
62
|
+
viewport: string;
|
|
63
|
+
};
|
|
64
|
+
'bottom-left': {
|
|
65
|
+
viewport: string;
|
|
66
|
+
};
|
|
67
|
+
'bottom-center': {
|
|
68
|
+
viewport: string;
|
|
69
|
+
};
|
|
70
|
+
'bottom-right': {
|
|
71
|
+
viewport: string;
|
|
72
|
+
};
|
|
67
73
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
swipeDirection: {
|
|
75
|
+
up: {
|
|
76
|
+
base: string;
|
|
77
|
+
};
|
|
78
|
+
right: {
|
|
79
|
+
base: string;
|
|
80
|
+
};
|
|
81
|
+
down: {
|
|
82
|
+
base: string;
|
|
83
|
+
};
|
|
84
|
+
left: {
|
|
85
|
+
base: string;
|
|
86
|
+
};
|
|
74
87
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
88
|
+
}, {
|
|
89
|
+
viewport: string[];
|
|
90
|
+
base: string[];
|
|
91
|
+
}, undefined>;
|
|
92
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
78
93
|
clickable: {
|
|
79
94
|
true: {
|
|
80
95
|
base: string;
|
|
@@ -8,18 +8,18 @@ declare const _default: {
|
|
|
8
8
|
variants: {
|
|
9
9
|
[key: string]: {
|
|
10
10
|
[key: string]: "" | {
|
|
11
|
-
content?: import("@byyuurin/ui-kit
|
|
12
|
-
arrow?: import("@byyuurin/ui-kit
|
|
13
|
-
text?: import("@byyuurin/ui-kit
|
|
11
|
+
content?: import("@byyuurin/ui-kit").ClassValue;
|
|
12
|
+
arrow?: import("@byyuurin/ui-kit").ClassValue;
|
|
13
|
+
text?: import("@byyuurin/ui-kit").ClassValue;
|
|
14
14
|
} | null;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
compoundVariants: import("@byyuurin/ui-kit
|
|
17
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
18
18
|
[key: string]: {
|
|
19
19
|
[key: string]: "" | {
|
|
20
|
-
content?: import("@byyuurin/ui-kit
|
|
21
|
-
arrow?: import("@byyuurin/ui-kit
|
|
22
|
-
text?: import("@byyuurin/ui-kit
|
|
20
|
+
content?: import("@byyuurin/ui-kit").ClassValue;
|
|
21
|
+
arrow?: import("@byyuurin/ui-kit").ClassValue;
|
|
22
|
+
text?: import("@byyuurin/ui-kit").ClassValue;
|
|
23
23
|
} | null;
|
|
24
24
|
};
|
|
25
25
|
}, {
|
|
@@ -27,12 +27,12 @@ declare const _default: {
|
|
|
27
27
|
arrow: string;
|
|
28
28
|
text: string;
|
|
29
29
|
}, undefined>;
|
|
30
|
-
defaultVariants: import("@byyuurin/ui-kit
|
|
30
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
31
31
|
[key: string]: {
|
|
32
32
|
[key: string]: "" | {
|
|
33
|
-
content?: import("@byyuurin/ui-kit
|
|
34
|
-
arrow?: import("@byyuurin/ui-kit
|
|
35
|
-
text?: import("@byyuurin/ui-kit
|
|
33
|
+
content?: import("@byyuurin/ui-kit").ClassValue;
|
|
34
|
+
arrow?: import("@byyuurin/ui-kit").ClassValue;
|
|
35
|
+
text?: import("@byyuurin/ui-kit").ClassValue;
|
|
36
36
|
} | null;
|
|
37
37
|
};
|
|
38
38
|
}, {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
content: "flex items-center gap-1 bg-ui-cx color-ui-base shadow-sm rounded-ui-base ring ring-ui-base/10 h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
7
|
+
arrow: "fill-ui-cx stroke-ui-cb/10",
|
|
8
|
+
text: "truncate"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
);
|