@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,92 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
import inputTheme from "./input.js";
|
|
3
|
+
export default ct(
|
|
4
|
+
/* @unocss-include */
|
|
5
|
+
{
|
|
6
|
+
slots: {
|
|
7
|
+
base: "relative inline-flex items-center rounded-ui-base transition-colors aria-disabled:opacity-50",
|
|
8
|
+
input: [
|
|
9
|
+
"w-full color-inherit bg-transparent border-0 placeholder:color-ui-cb/50",
|
|
10
|
+
"focus:outline-none",
|
|
11
|
+
"disabled:cursor-not-allowed"
|
|
12
|
+
],
|
|
13
|
+
increment: "absolute flex items-center",
|
|
14
|
+
decrement: "absolute flex items-center"
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
size: {
|
|
18
|
+
...inputTheme.variants.size
|
|
19
|
+
},
|
|
20
|
+
variant: {
|
|
21
|
+
...inputTheme.variants.variant
|
|
22
|
+
},
|
|
23
|
+
disabled: {
|
|
24
|
+
true: {
|
|
25
|
+
increment: "opacity-50 cursor-not-allowed",
|
|
26
|
+
decrement: "opacity-50 cursor-not-allowed"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
orientation: {
|
|
30
|
+
horizontal: {
|
|
31
|
+
input: "text-center",
|
|
32
|
+
increment: "inset-y-0 end-0 pe-0.5",
|
|
33
|
+
decrement: "inset-y-0 start-0 ps-0.5"
|
|
34
|
+
},
|
|
35
|
+
vertical: {
|
|
36
|
+
increment: "top-0 end-0 pe-0.5 [&>button]:py-0 scale-80",
|
|
37
|
+
decrement: "bottom-0 end-0 pe-0.5 [&>button]:py-0 scale-80"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
highlight: {
|
|
41
|
+
true: {
|
|
42
|
+
base: "ring ring-inset ring-ui-fill"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
compoundVariants: [
|
|
47
|
+
{
|
|
48
|
+
variant: ["soft", "ghost", "none"],
|
|
49
|
+
highlight: false,
|
|
50
|
+
underline: true,
|
|
51
|
+
class: {
|
|
52
|
+
base: [
|
|
53
|
+
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-soft-ui-cb/40",
|
|
54
|
+
"focus-within:after:h-2px focus-within:after:bg-soft-ui-fill/60"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
size: ["xs", "sm", "md"],
|
|
60
|
+
class: {
|
|
61
|
+
base: "p-1.5",
|
|
62
|
+
input: "px-1"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
size: ["lg", "xl"],
|
|
67
|
+
class: {
|
|
68
|
+
base: "p-2.5",
|
|
69
|
+
input: "px-1.5"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
variant: ["soft", "soft-outline", "ghost", "none"],
|
|
74
|
+
highlight: true,
|
|
75
|
+
class: {
|
|
76
|
+
base: "ring ring-inset ring-ui-fill/80"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
variant: ["outline"],
|
|
81
|
+
highlight: true,
|
|
82
|
+
class: {
|
|
83
|
+
base: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
defaultVariants: {
|
|
88
|
+
size: "md",
|
|
89
|
+
variant: "outline"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
);
|
|
@@ -72,105 +72,77 @@ declare const _default: {
|
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
|
-
compoundVariants: ({
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
loading: true;
|
|
147
|
-
prefix: true;
|
|
148
|
-
class: {
|
|
149
|
-
prefixIcon: string;
|
|
150
|
-
base?: undefined;
|
|
151
|
-
input?: undefined;
|
|
152
|
-
suffixIcon?: undefined;
|
|
153
|
-
};
|
|
154
|
-
variant?: undefined;
|
|
155
|
-
highlight?: undefined;
|
|
156
|
-
underline?: undefined;
|
|
157
|
-
size?: undefined;
|
|
158
|
-
suffix?: undefined;
|
|
159
|
-
} | {
|
|
160
|
-
loading: true;
|
|
161
|
-
prefix: false;
|
|
162
|
-
suffix: true;
|
|
163
|
-
class: {
|
|
164
|
-
suffixIcon: string;
|
|
165
|
-
base?: undefined;
|
|
166
|
-
input?: undefined;
|
|
167
|
-
prefixIcon?: undefined;
|
|
168
|
-
};
|
|
169
|
-
variant?: undefined;
|
|
170
|
-
highlight?: undefined;
|
|
171
|
-
underline?: undefined;
|
|
172
|
-
size?: undefined;
|
|
173
|
-
})[];
|
|
75
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
76
|
+
size: {
|
|
77
|
+
xs: {
|
|
78
|
+
base: string;
|
|
79
|
+
};
|
|
80
|
+
sm: {
|
|
81
|
+
base: string;
|
|
82
|
+
};
|
|
83
|
+
md: {
|
|
84
|
+
base: string;
|
|
85
|
+
};
|
|
86
|
+
lg: {
|
|
87
|
+
base: string;
|
|
88
|
+
};
|
|
89
|
+
xl: {
|
|
90
|
+
base: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
variant: {
|
|
94
|
+
outline: {
|
|
95
|
+
base: string[];
|
|
96
|
+
};
|
|
97
|
+
soft: {
|
|
98
|
+
base: string[];
|
|
99
|
+
};
|
|
100
|
+
'soft-outline': {
|
|
101
|
+
base: string[];
|
|
102
|
+
};
|
|
103
|
+
ghost: {
|
|
104
|
+
base: string[];
|
|
105
|
+
};
|
|
106
|
+
none: {
|
|
107
|
+
base: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
prefix: {
|
|
111
|
+
true: "";
|
|
112
|
+
};
|
|
113
|
+
suffix: {
|
|
114
|
+
true: "";
|
|
115
|
+
};
|
|
116
|
+
loading: {
|
|
117
|
+
true: "";
|
|
118
|
+
};
|
|
119
|
+
underline: {
|
|
120
|
+
true: "";
|
|
121
|
+
};
|
|
122
|
+
highlight: {
|
|
123
|
+
true: "";
|
|
124
|
+
};
|
|
125
|
+
type: {
|
|
126
|
+
file: {
|
|
127
|
+
input: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
groupOrientation: {
|
|
131
|
+
horizontal: {
|
|
132
|
+
base: string;
|
|
133
|
+
};
|
|
134
|
+
vertical: {
|
|
135
|
+
base: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
}, {
|
|
139
|
+
base: string;
|
|
140
|
+
input: string[];
|
|
141
|
+
prefix: string;
|
|
142
|
+
prefixIcon: string;
|
|
143
|
+
suffix: string;
|
|
144
|
+
suffixIcon: string;
|
|
145
|
+
}, undefined>;
|
|
174
146
|
defaultVariants: {
|
|
175
147
|
size: "md";
|
|
176
148
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
import { buttonGroupVariant } from "./button-group.
|
|
2
|
+
import { buttonGroupVariant } from "./button-group.js";
|
|
3
3
|
export default ct(
|
|
4
4
|
/* @unocss-include */
|
|
5
5
|
{
|
|
@@ -37,29 +37,29 @@ export default ct(
|
|
|
37
37
|
variant: {
|
|
38
38
|
"outline": {
|
|
39
39
|
base: [
|
|
40
|
-
"color-ui-cb/80 bg-
|
|
41
|
-
"focus-within:ring-2 focus-within:ring-ui-cb/50",
|
|
42
|
-
"aria-disabled:ring-ui-cb/
|
|
40
|
+
"color-ui-cb/80 bg-ui-cx ring ring-inset ring-ui-cb/30",
|
|
41
|
+
"focus-within:ring-2 focus-within:ring-ui-cb/50 hover:focus-within:ring-ui-cb/50",
|
|
42
|
+
"aria-disabled:ring-ui-cb/20 hover:aria-disabled:ring-ui-cb/20"
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
45
|
"soft": {
|
|
46
46
|
base: [
|
|
47
|
-
"color-ui-cb/80 bg-
|
|
48
|
-
"hover:bg-
|
|
49
|
-
"aria-disabled:color-ui-cb/80 aria-disabled:bg-
|
|
47
|
+
"color-ui-cb/80 bg-soft-ui-cb/4",
|
|
48
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 hover:focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85 hover:focus-within:color-ui-cb/85",
|
|
49
|
+
"aria-disabled:color-ui-cb/80 aria-disabled:bg-soft-ui-cb/5 hover:aria-disabled:color-ui-cb/80 hover:aria-disabled:bg-soft-ui-cb/5"
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
"soft-outline": {
|
|
53
53
|
base: [
|
|
54
|
-
"color-ui-cb/80 bg-
|
|
55
|
-
"hover:bg-
|
|
56
|
-
"aria-disabled:color-ui-cb/80 aria-disabled:bg-
|
|
54
|
+
"color-ui-cb/80 bg-soft-ui-cb/4 ring ring-inset ring-ui-cb/30",
|
|
55
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 hover:focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85 hover:focus-within:color-ui-cb/85",
|
|
56
|
+
"aria-disabled:color-ui-cb/80 aria-disabled:bg-soft-ui-cb/5 hover:aria-disabled:color-ui-cb/80 hover:aria-disabled:bg-soft-ui-cb/5"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
"ghost": {
|
|
60
60
|
base: [
|
|
61
61
|
"color-ui-cb/80 bg-transparent",
|
|
62
|
-
"hover:bg-
|
|
62
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 hover:focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85 hover:focus-within:color-ui-cb/85",
|
|
63
63
|
"aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
@@ -84,7 +84,7 @@ export default ct(
|
|
|
84
84
|
},
|
|
85
85
|
type: {
|
|
86
86
|
file: {
|
|
87
|
-
input: "prefix-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-
|
|
87
|
+
input: "prefix-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
|
},
|
|
@@ -95,8 +95,8 @@ export default ct(
|
|
|
95
95
|
underline: true,
|
|
96
96
|
class: {
|
|
97
97
|
base: [
|
|
98
|
-
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-
|
|
99
|
-
"focus-within:after:h-2px focus-within:after:bg-
|
|
98
|
+
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-soft-ui-cb/40",
|
|
99
|
+
"focus-within:after:h-2px focus-within:after:bg-soft-ui-fill/60"
|
|
100
100
|
]
|
|
101
101
|
}
|
|
102
102
|
},
|
|
@@ -14,7 +14,7 @@ declare const _default: {
|
|
|
14
14
|
true: "cursor-not-allowed opacity-50";
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
compoundVariants: import("@byyuurin/ui-kit
|
|
17
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
18
18
|
underline: {
|
|
19
19
|
true: "border-current";
|
|
20
20
|
false: "border-transparent";
|
|
@@ -27,7 +27,7 @@ declare const _default: {
|
|
|
27
27
|
true: "cursor-not-allowed opacity-50";
|
|
28
28
|
};
|
|
29
29
|
}, undefined, "border-y border-t-transparent outline-none focus-visible:outline-ui-cb/80">;
|
|
30
|
-
defaultVariants: import("@byyuurin/ui-kit
|
|
30
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
31
31
|
underline: {
|
|
32
32
|
true: "border-current";
|
|
33
33
|
false: "border-transparent";
|
|
@@ -14,7 +14,7 @@ export default ct(
|
|
|
14
14
|
"disabled:color-ui-fill aria-disabled:color-ui-fill"
|
|
15
15
|
],
|
|
16
16
|
false: [
|
|
17
|
-
"color-ui-cb hover:color-ui-cb/
|
|
17
|
+
"color-ui-cb/80 hover:color-ui-cb/60 transition-colors",
|
|
18
18
|
"disabled:hover:color-ui-cb aria-disabled:hover:color-ui-cb"
|
|
19
19
|
]
|
|
20
20
|
},
|
|
@@ -17,9 +17,29 @@ declare const _default: {
|
|
|
17
17
|
content: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
size: {
|
|
21
|
+
fullscreen: {
|
|
22
|
+
content: string;
|
|
23
|
+
};
|
|
24
|
+
sm: {
|
|
25
|
+
content: string;
|
|
26
|
+
};
|
|
27
|
+
md: {
|
|
28
|
+
content: string;
|
|
29
|
+
};
|
|
30
|
+
lg: {
|
|
31
|
+
content: string;
|
|
32
|
+
};
|
|
33
|
+
xl: {
|
|
34
|
+
content: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
39
|
+
transition: {
|
|
21
40
|
true: {
|
|
22
41
|
overlay: string;
|
|
42
|
+
content: string;
|
|
23
43
|
};
|
|
24
44
|
};
|
|
25
45
|
size: {
|
|
@@ -39,13 +59,16 @@ declare const _default: {
|
|
|
39
59
|
content: string;
|
|
40
60
|
};
|
|
41
61
|
};
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
62
|
+
}, {
|
|
63
|
+
overlay: string;
|
|
64
|
+
content: string;
|
|
65
|
+
header: string;
|
|
66
|
+
body: string;
|
|
67
|
+
footer: string;
|
|
68
|
+
title: string;
|
|
69
|
+
description: string;
|
|
70
|
+
close: string;
|
|
71
|
+
}, undefined>;
|
|
49
72
|
defaultVariants: {
|
|
50
73
|
size: "sm";
|
|
51
74
|
};
|
|
@@ -3,8 +3,8 @@ export default ct(
|
|
|
3
3
|
/* @unocss-include */
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
|
-
overlay: "fixed inset-0 bg-
|
|
7
|
-
content: "fixed bg-
|
|
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",
|
|
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",
|
|
@@ -19,11 +19,6 @@ export default ct(
|
|
|
19
19
|
content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
blur: {
|
|
23
|
-
true: {
|
|
24
|
-
overlay: "backdrop-blur-sm"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
22
|
size: {
|
|
28
23
|
fullscreen: {
|
|
29
24
|
content: "inset-0"
|
|
@@ -47,8 +42,8 @@ export default ct(
|
|
|
47
42
|
size: ["sm", "md", "lg", "xl"],
|
|
48
43
|
class: {
|
|
49
44
|
content: [
|
|
50
|
-
"bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] ring ring-ui-
|
|
51
|
-
"sm:bottom-auto sm:top-[50%] sm:translate-y-[-50%]
|
|
45
|
+
"bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] rounded-ui-box shadow-sm shadow-ui-cb/10 ring ring-ui-cb/10",
|
|
46
|
+
"sm:bottom-auto sm:top-[50%] sm:translate-y-[-50%]"
|
|
52
47
|
]
|
|
53
48
|
}
|
|
54
49
|
}
|
|
@@ -10,22 +10,22 @@ declare const _default: {
|
|
|
10
10
|
variants: {
|
|
11
11
|
[key: string]: {
|
|
12
12
|
[key: string]: "" | {
|
|
13
|
-
root?: import("@byyuurin/ui-kit
|
|
14
|
-
item?: import("@byyuurin/ui-kit
|
|
15
|
-
label?: import("@byyuurin/ui-kit
|
|
16
|
-
list?: import("@byyuurin/ui-kit
|
|
17
|
-
ellipsis?: import("@byyuurin/ui-kit
|
|
13
|
+
root?: import("@byyuurin/ui-kit").ClassValue;
|
|
14
|
+
item?: import("@byyuurin/ui-kit").ClassValue;
|
|
15
|
+
label?: import("@byyuurin/ui-kit").ClassValue;
|
|
16
|
+
list?: import("@byyuurin/ui-kit").ClassValue;
|
|
17
|
+
ellipsis?: import("@byyuurin/ui-kit").ClassValue;
|
|
18
18
|
} | null;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
compoundVariants: import("@byyuurin/ui-kit
|
|
21
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
22
22
|
[key: string]: {
|
|
23
23
|
[key: string]: "" | {
|
|
24
|
-
root?: import("@byyuurin/ui-kit
|
|
25
|
-
item?: import("@byyuurin/ui-kit
|
|
26
|
-
label?: import("@byyuurin/ui-kit
|
|
27
|
-
list?: import("@byyuurin/ui-kit
|
|
28
|
-
ellipsis?: import("@byyuurin/ui-kit
|
|
24
|
+
root?: import("@byyuurin/ui-kit").ClassValue;
|
|
25
|
+
item?: import("@byyuurin/ui-kit").ClassValue;
|
|
26
|
+
label?: import("@byyuurin/ui-kit").ClassValue;
|
|
27
|
+
list?: import("@byyuurin/ui-kit").ClassValue;
|
|
28
|
+
ellipsis?: import("@byyuurin/ui-kit").ClassValue;
|
|
29
29
|
} | null;
|
|
30
30
|
};
|
|
31
31
|
}, {
|
|
@@ -35,14 +35,14 @@ declare const _default: {
|
|
|
35
35
|
ellipsis: string;
|
|
36
36
|
label: string;
|
|
37
37
|
}, undefined>;
|
|
38
|
-
defaultVariants: import("@byyuurin/ui-kit
|
|
38
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
39
39
|
[key: string]: {
|
|
40
40
|
[key: string]: "" | {
|
|
41
|
-
root?: import("@byyuurin/ui-kit
|
|
42
|
-
item?: import("@byyuurin/ui-kit
|
|
43
|
-
label?: import("@byyuurin/ui-kit
|
|
44
|
-
list?: import("@byyuurin/ui-kit
|
|
45
|
-
ellipsis?: import("@byyuurin/ui-kit
|
|
41
|
+
root?: import("@byyuurin/ui-kit").ClassValue;
|
|
42
|
+
item?: import("@byyuurin/ui-kit").ClassValue;
|
|
43
|
+
label?: import("@byyuurin/ui-kit").ClassValue;
|
|
44
|
+
list?: import("@byyuurin/ui-kit").ClassValue;
|
|
45
|
+
ellipsis?: import("@byyuurin/ui-kit").ClassValue;
|
|
46
46
|
} | null;
|
|
47
47
|
};
|
|
48
48
|
}, {
|
|
@@ -47,52 +47,52 @@ declare const _default: {
|
|
|
47
47
|
true: "";
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
compoundVariants: ({
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
50
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
51
|
+
size: {
|
|
52
|
+
xs: {
|
|
53
|
+
container: string;
|
|
54
|
+
};
|
|
55
|
+
sm: {
|
|
56
|
+
container: string;
|
|
57
|
+
};
|
|
58
|
+
md: {
|
|
59
|
+
container: string;
|
|
60
|
+
};
|
|
61
|
+
lg: {
|
|
62
|
+
container: string;
|
|
63
|
+
};
|
|
64
|
+
xl: {
|
|
65
|
+
container: string;
|
|
66
|
+
};
|
|
64
67
|
};
|
|
65
|
-
variant
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
variant: {
|
|
69
|
+
outline: {
|
|
70
|
+
container: string[];
|
|
71
|
+
};
|
|
72
|
+
soft: {
|
|
73
|
+
container: string[];
|
|
74
|
+
};
|
|
75
|
+
'soft-outline': {
|
|
76
|
+
container: string[];
|
|
77
|
+
};
|
|
78
|
+
ghost: {
|
|
79
|
+
container: string[];
|
|
80
|
+
};
|
|
81
|
+
none: {
|
|
82
|
+
container: string;
|
|
83
|
+
};
|
|
73
84
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
underline?: undefined;
|
|
77
|
-
} | {
|
|
78
|
-
variant: ("soft" | "soft-outline" | "ghost" | "none")[];
|
|
79
|
-
highlight: true;
|
|
80
|
-
class: {
|
|
81
|
-
container: string;
|
|
82
|
-
base?: undefined;
|
|
85
|
+
underline: {
|
|
86
|
+
true: "";
|
|
83
87
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
} | {
|
|
87
|
-
variant: "outline"[];
|
|
88
|
-
highlight: true;
|
|
89
|
-
class: {
|
|
90
|
-
container: string;
|
|
91
|
-
base?: undefined;
|
|
88
|
+
highlight: {
|
|
89
|
+
true: "";
|
|
92
90
|
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
}, {
|
|
92
|
+
root: string;
|
|
93
|
+
container: string;
|
|
94
|
+
base: string;
|
|
95
|
+
}, undefined>;
|
|
96
96
|
defaultVariants: {
|
|
97
97
|
size: "md";
|
|
98
98
|
};
|
|
@@ -28,29 +28,29 @@ export default ct(
|
|
|
28
28
|
variant: {
|
|
29
29
|
"outline": {
|
|
30
30
|
container: [
|
|
31
|
-
"color-ui-cb/80 bg-
|
|
31
|
+
"color-ui-cb/80 bg-ui-cx ring ring-inset ring-ui-cb/30",
|
|
32
32
|
"focus-within:ring-2 focus-within:ring-ui-cb/50",
|
|
33
33
|
"aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
36
|
"soft": {
|
|
37
37
|
container: [
|
|
38
|
-
"color-ui-cb/80 bg-
|
|
39
|
-
"hover:bg-
|
|
40
|
-
"aria-disabled:color-ui-content/80 aria-disabled:bg-
|
|
38
|
+
"color-ui-cb/80 bg-soft-ui-cb/4",
|
|
39
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
|
|
40
|
+
"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"
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"soft-outline": {
|
|
44
44
|
container: [
|
|
45
|
-
"color-ui-cb/80 bg-
|
|
46
|
-
"hover:bg-
|
|
47
|
-
"aria-disabled:color-ui-content/80 aria-disabled:bg-
|
|
45
|
+
"color-ui-cb/80 bg-soft-ui-cb/4 ring ring-inset ring-ui-cb/30",
|
|
46
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
|
|
47
|
+
"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"
|
|
48
48
|
]
|
|
49
49
|
},
|
|
50
50
|
"ghost": {
|
|
51
51
|
container: [
|
|
52
52
|
"color-ui-cb/80 bg-transparent",
|
|
53
|
-
"hover:bg-
|
|
53
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-cb/85",
|
|
54
54
|
"aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
|
|
55
55
|
]
|
|
56
56
|
},
|
|
@@ -72,8 +72,8 @@ export default ct(
|
|
|
72
72
|
underline: true,
|
|
73
73
|
class: {
|
|
74
74
|
container: [
|
|
75
|
-
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-
|
|
76
|
-
"focus-within:after:h-2px focus-within:after:bg-
|
|
75
|
+
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-soft-ui-cb/40",
|
|
76
|
+
"focus-within:after:h-2px focus-within:after:bg-soft-ui-fill/60"
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
},
|