@byyuurin/ui 0.0.0
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/LICENSE.md +21 -0
- package/README.md +32 -0
- package/dist/components/Accordion.vue +104 -0
- package/dist/components/App.vue +57 -0
- package/dist/components/Button.vue +94 -0
- package/dist/components/Card.vue +76 -0
- package/dist/components/Checkbox.vue +104 -0
- package/dist/components/Drawer.vue +133 -0
- package/dist/components/Input.vue +169 -0
- package/dist/components/Link.vue +117 -0
- package/dist/components/Modal.vue +145 -0
- package/dist/components/ModalProvider.vue +10 -0
- package/dist/components/Popover.vue +97 -0
- package/dist/components/RadioGroup.vue +180 -0
- package/dist/components/Select.vue +258 -0
- package/dist/components/Switch.vue +99 -0
- package/dist/components/Tabs.vue +117 -0
- package/dist/components/Toast.vue +126 -0
- package/dist/components/Toaster.vue +143 -0
- package/dist/components/Tooltip.vue +71 -0
- package/dist/components/index.d.ts +18 -0
- package/dist/components/index.mjs +18 -0
- package/dist/composables/index.d.ts +4 -0
- package/dist/composables/index.mjs +4 -0
- package/dist/composables/useComponentIcons.d.ts +26 -0
- package/dist/composables/useComponentIcons.mjs +24 -0
- package/dist/composables/useModal.d.ts +15 -0
- package/dist/composables/useModal.mjs +51 -0
- package/dist/composables/useTheme.d.ts +8 -0
- package/dist/composables/useTheme.mjs +18 -0
- package/dist/composables/useToast.d.ts +24 -0
- package/dist/composables/useToast.mjs +48 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +3 -0
- package/dist/internal/constants.d.ts +3 -0
- package/dist/internal/constants.mjs +21 -0
- package/dist/internal/extend-theme.d.ts +9 -0
- package/dist/internal/extend-theme.mjs +16 -0
- package/dist/internal/extend-theme.test.d.ts +1 -0
- package/dist/internal/extend-theme.test.mjs +45 -0
- package/dist/internal/index.d.ts +4 -0
- package/dist/internal/index.mjs +4 -0
- package/dist/internal/link.d.ts +15 -0
- package/dist/internal/link.mjs +4 -0
- package/dist/internal/styler.d.ts +5 -0
- package/dist/internal/styler.mjs +236 -0
- package/dist/internal/styler.test.d.ts +1 -0
- package/dist/internal/styler.test.mjs +10 -0
- package/dist/nuxt.d.ts +10 -0
- package/dist/nuxt.mjs +28 -0
- package/dist/resolver.d.ts +10 -0
- package/dist/resolver.mjs +18 -0
- package/dist/theme/accordion.d.ts +39 -0
- package/dist/theme/accordion.mjs +25 -0
- package/dist/theme/app.d.ts +10 -0
- package/dist/theme/app.mjs +9 -0
- package/dist/theme/button.d.ts +184 -0
- package/dist/theme/button.mjs +140 -0
- package/dist/theme/card.d.ts +43 -0
- package/dist/theme/card.mjs +11 -0
- package/dist/theme/checkbox.d.ts +97 -0
- package/dist/theme/checkbox.mjs +53 -0
- package/dist/theme/drawer.d.ts +72 -0
- package/dist/theme/drawer.mjs +72 -0
- package/dist/theme/index.d.ts +17 -0
- package/dist/theme/index.mjs +17 -0
- package/dist/theme/input.d.ts +159 -0
- package/dist/theme/input.mjs +133 -0
- package/dist/theme/link.d.ts +31 -0
- package/dist/theme/link.mjs +23 -0
- package/dist/theme/modal.d.ts +50 -0
- package/dist/theme/modal.mjs +54 -0
- package/dist/theme/popover.d.ts +27 -0
- package/dist/theme/popover.mjs +10 -0
- package/dist/theme/radioGroup.d.ts +131 -0
- package/dist/theme/radioGroup.mjs +67 -0
- package/dist/theme/select.d.ts +177 -0
- package/dist/theme/select.mjs +154 -0
- package/dist/theme/switch.d.ts +131 -0
- package/dist/theme/switch.mjs +78 -0
- package/dist/theme/tabs.d.ts +101 -0
- package/dist/theme/tabs.mjs +117 -0
- package/dist/theme/toast.d.ts +51 -0
- package/dist/theme/toast.mjs +27 -0
- package/dist/theme/toaster.d.ts +73 -0
- package/dist/theme/toaster.mjs +89 -0
- package/dist/theme/tooltip.d.ts +31 -0
- package/dist/theme/tooltip.mjs +8 -0
- package/dist/types/components.d.ts +18 -0
- package/dist/types/components.mjs +0 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.mjs +2 -0
- package/dist/types/utils.d.ts +29 -0
- package/dist/types/utils.mjs +0 -0
- package/dist/unocss-preset.d.ts +37 -0
- package/dist/unocss-preset.mjs +164 -0
- package/dist/utils/index.d.ts +18 -0
- package/dist/utils/index.mjs +70 -0
- package/dist/utils/unocss.d.ts +3 -0
- package/dist/utils/unocss.mjs +50 -0
- package/package.json +103 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
base: string[];
|
|
6
|
+
prefix: string;
|
|
7
|
+
prefixIcon: string;
|
|
8
|
+
suffix: string;
|
|
9
|
+
suffixIcon: string;
|
|
10
|
+
};
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
xs: {
|
|
14
|
+
root: string;
|
|
15
|
+
};
|
|
16
|
+
sm: {
|
|
17
|
+
root: string;
|
|
18
|
+
};
|
|
19
|
+
md: {
|
|
20
|
+
root: string;
|
|
21
|
+
};
|
|
22
|
+
lg: {
|
|
23
|
+
root: string;
|
|
24
|
+
};
|
|
25
|
+
xl: {
|
|
26
|
+
root: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
variant: {
|
|
30
|
+
outline: {
|
|
31
|
+
root: string[];
|
|
32
|
+
};
|
|
33
|
+
soft: {
|
|
34
|
+
root: string[];
|
|
35
|
+
};
|
|
36
|
+
ghost: {
|
|
37
|
+
root: string[];
|
|
38
|
+
};
|
|
39
|
+
none: {
|
|
40
|
+
root: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
prefix: {
|
|
44
|
+
true: "";
|
|
45
|
+
};
|
|
46
|
+
suffix: {
|
|
47
|
+
true: "";
|
|
48
|
+
};
|
|
49
|
+
loading: {
|
|
50
|
+
true: "";
|
|
51
|
+
};
|
|
52
|
+
underline: {
|
|
53
|
+
true: "";
|
|
54
|
+
};
|
|
55
|
+
highlight: {
|
|
56
|
+
true: {
|
|
57
|
+
base: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
type: {
|
|
61
|
+
file: {
|
|
62
|
+
base: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
compoundVariants: ({
|
|
67
|
+
variant: ("soft" | "ghost" | "none")[];
|
|
68
|
+
highlight: false;
|
|
69
|
+
underline: true;
|
|
70
|
+
class: {
|
|
71
|
+
root: string;
|
|
72
|
+
prefixIcon?: undefined;
|
|
73
|
+
suffixIcon?: undefined;
|
|
74
|
+
};
|
|
75
|
+
size?: undefined;
|
|
76
|
+
loading?: undefined;
|
|
77
|
+
prefix?: undefined;
|
|
78
|
+
suffix?: undefined;
|
|
79
|
+
} | {
|
|
80
|
+
size: ("xs" | "sm" | "md")[];
|
|
81
|
+
class: {
|
|
82
|
+
root: string;
|
|
83
|
+
prefixIcon?: undefined;
|
|
84
|
+
suffixIcon?: undefined;
|
|
85
|
+
};
|
|
86
|
+
variant?: undefined;
|
|
87
|
+
highlight?: undefined;
|
|
88
|
+
underline?: undefined;
|
|
89
|
+
loading?: undefined;
|
|
90
|
+
prefix?: undefined;
|
|
91
|
+
suffix?: undefined;
|
|
92
|
+
} | {
|
|
93
|
+
size: ("lg" | "xl")[];
|
|
94
|
+
class: {
|
|
95
|
+
root: string;
|
|
96
|
+
prefixIcon?: undefined;
|
|
97
|
+
suffixIcon?: undefined;
|
|
98
|
+
};
|
|
99
|
+
variant?: undefined;
|
|
100
|
+
highlight?: undefined;
|
|
101
|
+
underline?: undefined;
|
|
102
|
+
loading?: undefined;
|
|
103
|
+
prefix?: undefined;
|
|
104
|
+
suffix?: undefined;
|
|
105
|
+
} | {
|
|
106
|
+
variant: ("soft" | "ghost" | "none")[];
|
|
107
|
+
highlight: true;
|
|
108
|
+
class: {
|
|
109
|
+
root: string;
|
|
110
|
+
prefixIcon?: undefined;
|
|
111
|
+
suffixIcon?: undefined;
|
|
112
|
+
};
|
|
113
|
+
underline?: undefined;
|
|
114
|
+
size?: undefined;
|
|
115
|
+
loading?: undefined;
|
|
116
|
+
prefix?: undefined;
|
|
117
|
+
suffix?: undefined;
|
|
118
|
+
} | {
|
|
119
|
+
variant: "outline"[];
|
|
120
|
+
highlight: true;
|
|
121
|
+
class: {
|
|
122
|
+
root: string;
|
|
123
|
+
prefixIcon?: undefined;
|
|
124
|
+
suffixIcon?: undefined;
|
|
125
|
+
};
|
|
126
|
+
underline?: undefined;
|
|
127
|
+
size?: undefined;
|
|
128
|
+
loading?: undefined;
|
|
129
|
+
prefix?: undefined;
|
|
130
|
+
suffix?: undefined;
|
|
131
|
+
} | {
|
|
132
|
+
loading: true;
|
|
133
|
+
prefix: true;
|
|
134
|
+
class: {
|
|
135
|
+
prefixIcon: string;
|
|
136
|
+
root?: undefined;
|
|
137
|
+
suffixIcon?: undefined;
|
|
138
|
+
};
|
|
139
|
+
variant?: undefined;
|
|
140
|
+
highlight?: undefined;
|
|
141
|
+
underline?: undefined;
|
|
142
|
+
size?: undefined;
|
|
143
|
+
suffix?: undefined;
|
|
144
|
+
} | {
|
|
145
|
+
loading: true;
|
|
146
|
+
prefix: false;
|
|
147
|
+
suffix: true;
|
|
148
|
+
class: {
|
|
149
|
+
suffixIcon: string;
|
|
150
|
+
root?: undefined;
|
|
151
|
+
prefixIcon?: undefined;
|
|
152
|
+
};
|
|
153
|
+
variant?: undefined;
|
|
154
|
+
highlight?: undefined;
|
|
155
|
+
underline?: undefined;
|
|
156
|
+
size?: undefined;
|
|
157
|
+
})[];
|
|
158
|
+
};
|
|
159
|
+
export default _default;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "inline-flex items-center gap-x-2 rounded-ui-base transition-colors aria-disabled:opacity-50",
|
|
5
|
+
base: [
|
|
6
|
+
"w-full color-inherit bg-transparent border-0 placeholder:color-ui-cb/50",
|
|
7
|
+
"focus:outline-none",
|
|
8
|
+
"disabled:cursor-not-allowed"
|
|
9
|
+
],
|
|
10
|
+
prefix: "flex items-center",
|
|
11
|
+
prefixIcon: "shrink-0 size-1.25em",
|
|
12
|
+
suffix: "flex items-center",
|
|
13
|
+
suffixIcon: "shrink-0 size-1.25em"
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
size: {
|
|
17
|
+
xs: {
|
|
18
|
+
root: "text-xs"
|
|
19
|
+
},
|
|
20
|
+
sm: {
|
|
21
|
+
root: "text-sm"
|
|
22
|
+
},
|
|
23
|
+
md: {
|
|
24
|
+
root: "text-base"
|
|
25
|
+
},
|
|
26
|
+
lg: {
|
|
27
|
+
root: "text-lg"
|
|
28
|
+
},
|
|
29
|
+
xl: {
|
|
30
|
+
root: "text-xl"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
variant: {
|
|
34
|
+
outline: {
|
|
35
|
+
root: [
|
|
36
|
+
"color-ui-cb/80 bg-ui-c1 ring ring-inset ring-ui-cb/50",
|
|
37
|
+
"focus-within:ring-2 focus-within:ring-ui-cb/50",
|
|
38
|
+
"aria-disabled:ring-ui-cb/80 hover:aria-disabled:ring-ui-cb/80"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
soft: {
|
|
42
|
+
root: [
|
|
43
|
+
"color-ui-cb/80 bg-ui-cb/4",
|
|
44
|
+
"hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
|
|
45
|
+
"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"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
ghost: {
|
|
49
|
+
root: [
|
|
50
|
+
"color-ui-cb/80 bg-transparent",
|
|
51
|
+
"hover:bg-ui-cb/6 hover:color-ui-cb/80 focus-within:bg-ui-cb/8 focus-within:color-ui-cb/85",
|
|
52
|
+
"aria-disabled:color-ui-fill/80 aria-disabled:bg-transparent hover:aria-disabled:color-ui-fill/80 hover:aria-disabled:bg-transparent"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
none: {
|
|
56
|
+
root: "color-ui-cb bg-transparent"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
prefix: {
|
|
60
|
+
true: ""
|
|
61
|
+
},
|
|
62
|
+
suffix: {
|
|
63
|
+
true: ""
|
|
64
|
+
},
|
|
65
|
+
loading: {
|
|
66
|
+
true: ""
|
|
67
|
+
},
|
|
68
|
+
underline: {
|
|
69
|
+
true: ""
|
|
70
|
+
},
|
|
71
|
+
highlight: {
|
|
72
|
+
true: {
|
|
73
|
+
base: ""
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
type: {
|
|
77
|
+
file: {
|
|
78
|
+
base: "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-c1 file:bg-ui-cb/80"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
compoundVariants: [
|
|
83
|
+
{
|
|
84
|
+
variant: ["soft", "ghost", "none"],
|
|
85
|
+
highlight: false,
|
|
86
|
+
underline: true,
|
|
87
|
+
class: {
|
|
88
|
+
root: "relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-ui-cb/40"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
size: ["xs", "sm", "md"],
|
|
93
|
+
class: {
|
|
94
|
+
root: "p-1.5 px-2.5"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
size: ["lg", "xl"],
|
|
99
|
+
class: {
|
|
100
|
+
root: "p-2.5 px-3.5"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
variant: ["soft", "ghost", "none"],
|
|
105
|
+
highlight: true,
|
|
106
|
+
class: {
|
|
107
|
+
root: "ring ring-inset ring-ui-fill/80"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
variant: ["outline"],
|
|
112
|
+
highlight: true,
|
|
113
|
+
class: {
|
|
114
|
+
root: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
loading: true,
|
|
119
|
+
prefix: true,
|
|
120
|
+
class: {
|
|
121
|
+
prefixIcon: "animate-spin"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
loading: true,
|
|
126
|
+
prefix: false,
|
|
127
|
+
suffix: true,
|
|
128
|
+
class: {
|
|
129
|
+
suffixIcon: "animate-spin"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: string;
|
|
3
|
+
slots: undefined;
|
|
4
|
+
variants: {
|
|
5
|
+
underline: {
|
|
6
|
+
true: "border-current";
|
|
7
|
+
false: "border-transparent";
|
|
8
|
+
};
|
|
9
|
+
active: {
|
|
10
|
+
true: string[];
|
|
11
|
+
false: string[];
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
true: "cursor-not-allowed opacity-50";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
|
|
18
|
+
underline: {
|
|
19
|
+
true: "border-current";
|
|
20
|
+
false: "border-transparent";
|
|
21
|
+
};
|
|
22
|
+
active: {
|
|
23
|
+
true: string[];
|
|
24
|
+
false: string[];
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
true: "cursor-not-allowed opacity-50";
|
|
28
|
+
};
|
|
29
|
+
}, undefined, "border-y border-t-transparent focus-visible:outline-ui-cb">;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct({
|
|
3
|
+
base: "border-y border-t-transparent focus-visible:outline-ui-cb",
|
|
4
|
+
variants: {
|
|
5
|
+
underline: {
|
|
6
|
+
true: "border-current",
|
|
7
|
+
false: "border-transparent"
|
|
8
|
+
},
|
|
9
|
+
active: {
|
|
10
|
+
true: [
|
|
11
|
+
"color-ui-fill",
|
|
12
|
+
"disabled:color-ui-fill aria-disabled:color-ui-fill"
|
|
13
|
+
],
|
|
14
|
+
false: [
|
|
15
|
+
"color-ui-cb hover:color-ui-cb/80 transition-colors",
|
|
16
|
+
"disabled:hover:color-ui-cb aria-disabled:hover:color-ui-cb"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
disabled: {
|
|
20
|
+
true: "cursor-not-allowed opacity-50"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
overlay: string;
|
|
5
|
+
content: string;
|
|
6
|
+
header: string;
|
|
7
|
+
body: string;
|
|
8
|
+
footer: string;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
close: string;
|
|
12
|
+
};
|
|
13
|
+
variants: {
|
|
14
|
+
transition: {
|
|
15
|
+
true: {
|
|
16
|
+
overlay: string;
|
|
17
|
+
content: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
blur: {
|
|
21
|
+
true: {
|
|
22
|
+
overlay: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
size: {
|
|
26
|
+
fullscreen: {
|
|
27
|
+
content: string;
|
|
28
|
+
};
|
|
29
|
+
sm: {
|
|
30
|
+
content: string;
|
|
31
|
+
};
|
|
32
|
+
md: {
|
|
33
|
+
content: string;
|
|
34
|
+
};
|
|
35
|
+
lg: {
|
|
36
|
+
content: string;
|
|
37
|
+
};
|
|
38
|
+
xl: {
|
|
39
|
+
content: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
compoundVariants: {
|
|
44
|
+
size: ("sm" | "md" | "lg" | "xl")[];
|
|
45
|
+
class: {
|
|
46
|
+
content: string[];
|
|
47
|
+
};
|
|
48
|
+
}[];
|
|
49
|
+
};
|
|
50
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct({
|
|
3
|
+
slots: {
|
|
4
|
+
overlay: "fixed inset-0 bg-ui-c3/75",
|
|
5
|
+
content: "fixed bg-ui-c1 divide-y divide-ui-cb/10 flex flex-col focus:outline-none",
|
|
6
|
+
header: "flex flex-wrap items-center gap-1 px-4 py-5 sm:px-6",
|
|
7
|
+
body: "flex-1 overflow-y-auto p-4 sm:p-6 empty:hidden",
|
|
8
|
+
footer: "flex items-center gap-1.5 p-4 sm:px-6",
|
|
9
|
+
title: "flex-grow color-ui-cb text-xl font-semibold",
|
|
10
|
+
description: "w-full color-ui-cb/80",
|
|
11
|
+
close: "ms-auto"
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
transition: {
|
|
15
|
+
true: {
|
|
16
|
+
overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
|
|
17
|
+
content: "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
blur: {
|
|
21
|
+
true: {
|
|
22
|
+
overlay: "backdrop-blur-sm"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
fullscreen: {
|
|
27
|
+
content: "inset-0"
|
|
28
|
+
},
|
|
29
|
+
sm: {
|
|
30
|
+
content: "w-screen-sm"
|
|
31
|
+
},
|
|
32
|
+
md: {
|
|
33
|
+
content: "w-screen-md"
|
|
34
|
+
},
|
|
35
|
+
lg: {
|
|
36
|
+
content: "w-screen-lg"
|
|
37
|
+
},
|
|
38
|
+
xl: {
|
|
39
|
+
content: "w-screen-xl"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
compoundVariants: [
|
|
44
|
+
{
|
|
45
|
+
size: ["sm", "md", "lg", "xl"],
|
|
46
|
+
class: {
|
|
47
|
+
content: [
|
|
48
|
+
"bottom-4 left-[50%] translate-x-[-50%] h-auto max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] ring ring-ui-c2",
|
|
49
|
+
"sm:bottom-auto sm:top-[50%] sm:translate-y-[-50%] sm:rounded-ui-box sm:shadow-lg"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
content: string[];
|
|
5
|
+
arrow: string;
|
|
6
|
+
};
|
|
7
|
+
variants: {
|
|
8
|
+
[key: string]: {
|
|
9
|
+
[key: string]: "" | {
|
|
10
|
+
content?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
11
|
+
arrow?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
12
|
+
} | null;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
|
|
16
|
+
[key: string]: {
|
|
17
|
+
[key: string]: "" | {
|
|
18
|
+
content?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
19
|
+
arrow?: import("@byyuurin/ui-kit/index").ClassValue;
|
|
20
|
+
} | null;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
content: string[];
|
|
24
|
+
arrow: string;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct({
|
|
3
|
+
slots: {
|
|
4
|
+
content: [
|
|
5
|
+
"color-ui-base bg-ui-base shadow-lg rounded-ui-box ring ring-ui-base/10",
|
|
6
|
+
"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none pointer-events-auto"
|
|
7
|
+
],
|
|
8
|
+
arrow: "fill-ui-base stroke-ui-cb/10"
|
|
9
|
+
}
|
|
10
|
+
});
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
fieldset: string;
|
|
6
|
+
legend: string;
|
|
7
|
+
item: string;
|
|
8
|
+
base: string;
|
|
9
|
+
indicator: string;
|
|
10
|
+
container: string;
|
|
11
|
+
wrapper: string;
|
|
12
|
+
label: string;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
variants: {
|
|
16
|
+
orientation: {
|
|
17
|
+
horizontal: {
|
|
18
|
+
fieldset: string;
|
|
19
|
+
wrapper: string;
|
|
20
|
+
};
|
|
21
|
+
vertical: {
|
|
22
|
+
fieldset: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
size: {
|
|
26
|
+
xs: {
|
|
27
|
+
root: string;
|
|
28
|
+
};
|
|
29
|
+
sm: {
|
|
30
|
+
root: string;
|
|
31
|
+
};
|
|
32
|
+
md: {
|
|
33
|
+
root: string;
|
|
34
|
+
};
|
|
35
|
+
lg: {
|
|
36
|
+
root: string;
|
|
37
|
+
};
|
|
38
|
+
xl: {
|
|
39
|
+
root: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
dot: {
|
|
43
|
+
true: {
|
|
44
|
+
indicator: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
round: {
|
|
48
|
+
true: {
|
|
49
|
+
base: string;
|
|
50
|
+
indicator: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
disabled: {
|
|
54
|
+
true: {
|
|
55
|
+
root: string;
|
|
56
|
+
};
|
|
57
|
+
false: {
|
|
58
|
+
label: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
required: {
|
|
62
|
+
true: {
|
|
63
|
+
legend: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
compoundVariants: import("@byyuurin/ui-kit/index").CVCompoundVariants<{
|
|
68
|
+
orientation: {
|
|
69
|
+
horizontal: {
|
|
70
|
+
fieldset: string;
|
|
71
|
+
wrapper: string;
|
|
72
|
+
};
|
|
73
|
+
vertical: {
|
|
74
|
+
fieldset: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
size: {
|
|
78
|
+
xs: {
|
|
79
|
+
root: string;
|
|
80
|
+
};
|
|
81
|
+
sm: {
|
|
82
|
+
root: string;
|
|
83
|
+
};
|
|
84
|
+
md: {
|
|
85
|
+
root: string;
|
|
86
|
+
};
|
|
87
|
+
lg: {
|
|
88
|
+
root: string;
|
|
89
|
+
};
|
|
90
|
+
xl: {
|
|
91
|
+
root: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
dot: {
|
|
95
|
+
true: {
|
|
96
|
+
indicator: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
round: {
|
|
100
|
+
true: {
|
|
101
|
+
base: string;
|
|
102
|
+
indicator: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
disabled: {
|
|
106
|
+
true: {
|
|
107
|
+
root: string;
|
|
108
|
+
};
|
|
109
|
+
false: {
|
|
110
|
+
label: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
required: {
|
|
114
|
+
true: {
|
|
115
|
+
legend: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}, {
|
|
119
|
+
root: string;
|
|
120
|
+
fieldset: string;
|
|
121
|
+
legend: string;
|
|
122
|
+
item: string;
|
|
123
|
+
base: string;
|
|
124
|
+
indicator: string;
|
|
125
|
+
container: string;
|
|
126
|
+
wrapper: string;
|
|
127
|
+
label: string;
|
|
128
|
+
description: string;
|
|
129
|
+
}, undefined>;
|
|
130
|
+
};
|
|
131
|
+
export default _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct({
|
|
3
|
+
slots: {
|
|
4
|
+
root: "relative",
|
|
5
|
+
fieldset: "flex flex-wrap gap-0.5em",
|
|
6
|
+
legend: "mb-1 block font-medium color-ui-cb",
|
|
7
|
+
item: "flex items-start",
|
|
8
|
+
base: "size-1.25em rounded-ui-base ring ring-inset ring-ui-cb focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-cb",
|
|
9
|
+
indicator: "flex items-center justify-center size-full rounded-ui-base bg-ui-fill",
|
|
10
|
+
container: "h-1.5em flex items-center",
|
|
11
|
+
wrapper: "ms-2",
|
|
12
|
+
label: "block font-medium color-ui-cb",
|
|
13
|
+
description: "color-ui-cb/60"
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
orientation: {
|
|
17
|
+
horizontal: {
|
|
18
|
+
fieldset: "flex-row",
|
|
19
|
+
wrapper: "me-2"
|
|
20
|
+
},
|
|
21
|
+
vertical: {
|
|
22
|
+
fieldset: "flex-col"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
xs: {
|
|
27
|
+
root: "text-xs"
|
|
28
|
+
},
|
|
29
|
+
sm: {
|
|
30
|
+
root: "text-sm"
|
|
31
|
+
},
|
|
32
|
+
md: {
|
|
33
|
+
root: "text-base"
|
|
34
|
+
},
|
|
35
|
+
lg: {
|
|
36
|
+
root: "text-lg"
|
|
37
|
+
},
|
|
38
|
+
xl: {
|
|
39
|
+
root: "text-xl"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
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
|
+
disabled: {
|
|
54
|
+
true: {
|
|
55
|
+
root: "opacity-50 after:content-empty after:absolute after:inset-0 after:cursor-not-allowed"
|
|
56
|
+
},
|
|
57
|
+
false: {
|
|
58
|
+
label: "cursor-pointer"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
required: {
|
|
62
|
+
true: {
|
|
63
|
+
legend: "after:content-['*'] after:ms-0.5"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|