@byyuurin/ui 0.0.8 → 0.0.10
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 +0 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -3
- package/dist/module.mjs.map +1 -1
- package/dist/runtime/app/injections.d.ts +9299 -8
- package/dist/runtime/app/injections.js +35 -5
- package/dist/runtime/components/Accordion.vue +17 -19
- package/dist/runtime/components/Alert.vue +6 -9
- package/dist/runtime/components/App.vue +14 -19
- package/dist/runtime/components/Avatar.vue +5 -8
- package/dist/runtime/components/AvatarGroup.vue +2 -5
- package/dist/runtime/components/Badge.vue +3 -6
- package/dist/runtime/components/Breadcrumb.vue +22 -23
- package/dist/runtime/components/Button.vue +2 -3
- package/dist/runtime/components/ButtonGroup.vue +2 -5
- package/dist/runtime/components/Calendar.vue +185 -0
- package/dist/runtime/components/Card.vue +2 -5
- package/dist/runtime/components/Carousel.vue +11 -16
- package/dist/runtime/components/Checkbox.vue +13 -11
- package/dist/runtime/components/Chip.vue +6 -9
- package/dist/runtime/components/Collapsible.vue +2 -5
- package/dist/runtime/components/Drawer.vue +88 -45
- package/dist/runtime/components/DropdownMenu.vue +143 -0
- package/dist/runtime/components/DropdownMenuContent.vue +188 -0
- package/dist/runtime/components/Form.vue +311 -0
- package/dist/runtime/components/FormItem.vue +129 -0
- package/dist/runtime/components/Input.vue +34 -23
- package/dist/runtime/components/InputNumber.vue +23 -18
- package/dist/runtime/components/Kbd.vue +2 -6
- package/dist/runtime/components/Link.vue +25 -7
- package/dist/runtime/components/Modal.vue +31 -22
- package/dist/runtime/components/OverlayProvider.vue +29 -0
- package/dist/runtime/components/Pagination.vue +34 -27
- package/dist/runtime/components/PinInput.vue +23 -17
- package/dist/runtime/components/Popover.vue +5 -8
- package/dist/runtime/components/Progress.vue +2 -5
- package/dist/runtime/components/RadioGroup.vue +52 -49
- package/dist/runtime/components/ScrollArea.vue +2 -6
- package/dist/runtime/components/Select.vue +96 -89
- package/dist/runtime/components/Separator.vue +2 -6
- package/dist/runtime/components/Skeleton.vue +2 -5
- package/dist/runtime/components/Slider.vue +13 -11
- package/dist/runtime/components/Switch.vue +18 -11
- package/dist/runtime/components/Table.vue +23 -13
- package/dist/runtime/components/Tabs.vue +14 -16
- package/dist/runtime/components/Textarea.vue +20 -17
- package/dist/runtime/components/Toast.vue +12 -13
- package/dist/runtime/components/{Toaster.vue → ToastProvider.vue} +18 -16
- package/dist/runtime/components/Tooltip.vue +5 -8
- package/dist/runtime/composables/useFormItem.d.ts +27 -0
- package/dist/runtime/composables/useFormItem.js +64 -0
- package/dist/runtime/composables/useKbd.d.ts +1 -1
- package/dist/runtime/composables/useOverlay.d.ts +29 -0
- package/dist/runtime/composables/useOverlay.js +69 -0
- package/dist/runtime/composables/useTheme.d.ts +6 -2
- package/dist/runtime/composables/useTheme.js +10 -3
- package/dist/runtime/composables/useToast.d.ts +4 -20
- package/dist/runtime/composables/useToast.js +6 -5
- package/dist/runtime/index.d.ts +6 -2
- package/dist/runtime/index.js +6 -2
- package/dist/runtime/locale/en.js +6 -0
- package/dist/runtime/locale/zh-tw.js +6 -0
- package/dist/runtime/theme/accordion.js +3 -3
- package/dist/runtime/theme/alert.js +3 -3
- package/dist/runtime/theme/app.d.ts +1 -0
- package/dist/runtime/theme/app.js +2 -1
- package/dist/runtime/theme/avatar.js +2 -2
- package/dist/runtime/theme/badge.d.ts +21 -45
- package/dist/runtime/theme/breadcrumb.d.ts +3 -3
- package/dist/runtime/theme/breadcrumb.js +5 -5
- package/dist/runtime/theme/button.d.ts +111 -57
- package/dist/runtime/theme/button.js +13 -13
- package/dist/runtime/theme/calendar.d.ts +56 -0
- package/dist/runtime/theme/calendar.js +69 -0
- package/dist/runtime/theme/card.js +6 -6
- package/dist/runtime/theme/carousel.js +1 -1
- package/dist/runtime/theme/checkbox.js +5 -5
- package/dist/runtime/theme/chip.d.ts +11 -44
- package/dist/runtime/theme/chip.js +3 -3
- package/dist/runtime/theme/drawer.d.ts +85 -47
- package/dist/runtime/theme/drawer.js +46 -19
- package/dist/runtime/theme/dropdown-menu.d.ts +71 -0
- package/dist/runtime/theme/dropdown-menu.js +83 -0
- package/dist/runtime/theme/form-item.d.ts +76 -0
- package/dist/runtime/theme/form-item.js +34 -0
- package/dist/runtime/theme/form.d.ts +8 -0
- package/dist/runtime/theme/form.js +7 -0
- package/dist/runtime/theme/index.d.ts +5 -1
- package/dist/runtime/theme/index.js +5 -1
- package/dist/runtime/theme/input-number.d.ts +41 -61
- package/dist/runtime/theme/input-number.js +1 -1
- package/dist/runtime/theme/input.d.ts +99 -71
- package/dist/runtime/theme/input.js +15 -15
- package/dist/runtime/theme/kbd.d.ts +2 -2
- package/dist/runtime/theme/kbd.js +1 -1
- package/dist/runtime/theme/link.d.ts +1 -1
- package/dist/runtime/theme/link.js +3 -3
- package/dist/runtime/theme/modal.d.ts +5 -33
- package/dist/runtime/theme/modal.js +4 -4
- package/dist/runtime/theme/pagination.d.ts +27 -3
- package/dist/runtime/theme/pagination.js +6 -2
- package/dist/runtime/theme/pinInput.d.ts +42 -42
- package/dist/runtime/theme/pinInput.js +13 -13
- package/dist/runtime/theme/progress.d.ts +117 -53
- package/dist/runtime/theme/progress.js +4 -4
- package/dist/runtime/theme/radio-group.d.ts +2 -2
- package/dist/runtime/theme/radio-group.js +7 -7
- package/dist/runtime/theme/select.d.ts +100 -84
- package/dist/runtime/theme/select.js +21 -20
- package/dist/runtime/theme/separator.d.ts +13 -28
- package/dist/runtime/theme/separator.js +1 -1
- package/dist/runtime/theme/skeleton.d.ts +1 -1
- package/dist/runtime/theme/skeleton.js +1 -1
- package/dist/runtime/theme/slider.js +1 -1
- package/dist/runtime/theme/switch.js +5 -5
- package/dist/runtime/theme/table.d.ts +3 -0
- package/dist/runtime/theme/table.js +8 -7
- package/dist/runtime/theme/tabs.d.ts +51 -68
- package/dist/runtime/theme/tabs.js +10 -10
- package/dist/runtime/theme/textarea.d.ts +37 -43
- package/dist/runtime/theme/textarea.js +13 -13
- package/dist/runtime/theme/{toaster.d.ts → toast-provider.d.ts} +26 -41
- package/dist/runtime/theme/toast.js +5 -5
- package/dist/runtime/theme/tooltip.js +1 -1
- package/dist/runtime/types/components.d.ts +6 -1
- package/dist/runtime/types/form.d.ts +45 -0
- package/dist/runtime/types/form.js +0 -0
- package/dist/runtime/types/index.d.ts +5 -2
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/locale.d.ts +6 -0
- package/dist/runtime/types/utils.d.ts +35 -12
- package/dist/runtime/utils/extend-theme.js +15 -4
- package/dist/runtime/utils/form.d.ts +5 -0
- package/dist/runtime/utils/form.js +24 -0
- package/dist/runtime/utils/index.d.ts +2 -0
- package/dist/runtime/utils/index.js +4 -0
- package/dist/runtime/utils/link.d.ts +4 -26
- package/dist/runtime/utils/link.js +10 -3
- package/dist/shared/ui.3e7fad19.mjs +5 -0
- package/dist/shared/ui.3e7fad19.mjs.map +1 -0
- package/dist/unocss.mjs +21 -16
- package/dist/unocss.mjs.map +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +20 -18
- package/dist/runtime/components/ModalProvider.vue +0 -11
- package/dist/runtime/composables/useModal.d.ts +0 -10
- package/dist/runtime/composables/useModal.js +0 -47
- package/dist/shared/ui.ba24b380.mjs +0 -4
- package/dist/shared/ui.ba24b380.mjs.map +0 -1
- /package/dist/runtime/theme/{toaster.js → toast-provider.js} +0 -0
|
@@ -85,91 +85,107 @@ declare const _default: {
|
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
compoundVariants:
|
|
89
|
-
variant:
|
|
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
|
-
leading
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
88
|
+
compoundVariants: ({
|
|
89
|
+
variant: ("soft" | "ghost" | "none")[];
|
|
90
|
+
highlight: false;
|
|
91
|
+
underline: true;
|
|
92
|
+
class: {
|
|
93
|
+
base: string[];
|
|
94
|
+
item?: undefined;
|
|
95
|
+
leadingIcon?: undefined;
|
|
96
|
+
trailingIcon?: undefined;
|
|
97
|
+
};
|
|
98
|
+
size?: undefined;
|
|
99
|
+
loading?: undefined;
|
|
100
|
+
leading?: undefined;
|
|
101
|
+
trailing?: undefined;
|
|
102
|
+
} | {
|
|
103
|
+
size: ("xs" | "sm" | "md")[];
|
|
104
|
+
class: {
|
|
105
|
+
base: string;
|
|
106
|
+
item: string;
|
|
107
|
+
leadingIcon?: undefined;
|
|
108
|
+
trailingIcon?: undefined;
|
|
109
|
+
};
|
|
110
|
+
variant?: undefined;
|
|
111
|
+
highlight?: undefined;
|
|
112
|
+
underline?: undefined;
|
|
113
|
+
loading?: undefined;
|
|
114
|
+
leading?: undefined;
|
|
115
|
+
trailing?: undefined;
|
|
116
|
+
} | {
|
|
117
|
+
size: ("lg" | "xl")[];
|
|
118
|
+
class: {
|
|
119
|
+
base: string;
|
|
120
|
+
item: string;
|
|
121
|
+
leadingIcon?: undefined;
|
|
122
|
+
trailingIcon?: undefined;
|
|
123
|
+
};
|
|
124
|
+
variant?: undefined;
|
|
125
|
+
highlight?: undefined;
|
|
126
|
+
underline?: undefined;
|
|
127
|
+
loading?: undefined;
|
|
128
|
+
leading?: undefined;
|
|
129
|
+
trailing?: undefined;
|
|
130
|
+
} | {
|
|
131
|
+
variant: ("soft" | "soft-outline" | "ghost" | "none")[];
|
|
132
|
+
highlight: true;
|
|
133
|
+
class: {
|
|
134
|
+
base: string;
|
|
135
|
+
item?: undefined;
|
|
136
|
+
leadingIcon?: undefined;
|
|
137
|
+
trailingIcon?: undefined;
|
|
138
|
+
};
|
|
139
|
+
underline?: undefined;
|
|
140
|
+
size?: undefined;
|
|
141
|
+
loading?: undefined;
|
|
142
|
+
leading?: undefined;
|
|
143
|
+
trailing?: undefined;
|
|
144
|
+
} | {
|
|
145
|
+
variant: "outline"[];
|
|
146
|
+
highlight: true;
|
|
147
|
+
class: {
|
|
148
|
+
base: string;
|
|
149
|
+
item?: undefined;
|
|
150
|
+
leadingIcon?: undefined;
|
|
151
|
+
trailingIcon?: undefined;
|
|
152
|
+
};
|
|
153
|
+
underline?: undefined;
|
|
154
|
+
size?: undefined;
|
|
155
|
+
loading?: undefined;
|
|
156
|
+
leading?: undefined;
|
|
157
|
+
trailing?: undefined;
|
|
158
|
+
} | {
|
|
159
|
+
loading: true;
|
|
160
|
+
leading: true;
|
|
161
|
+
class: {
|
|
162
|
+
leadingIcon: string;
|
|
163
|
+
base?: undefined;
|
|
164
|
+
item?: undefined;
|
|
165
|
+
trailingIcon?: undefined;
|
|
166
|
+
};
|
|
167
|
+
variant?: undefined;
|
|
168
|
+
highlight?: undefined;
|
|
169
|
+
underline?: undefined;
|
|
170
|
+
size?: undefined;
|
|
171
|
+
trailing?: undefined;
|
|
172
|
+
} | {
|
|
173
|
+
loading: true;
|
|
174
|
+
leading: false;
|
|
175
|
+
trailing: true;
|
|
176
|
+
class: {
|
|
177
|
+
trailingIcon: string;
|
|
178
|
+
base?: undefined;
|
|
179
|
+
item?: undefined;
|
|
180
|
+
leadingIcon?: undefined;
|
|
181
|
+
};
|
|
182
|
+
variant?: undefined;
|
|
183
|
+
highlight?: undefined;
|
|
184
|
+
underline?: undefined;
|
|
185
|
+
size?: undefined;
|
|
186
|
+
})[];
|
|
172
187
|
defaultVariants: {
|
|
188
|
+
variant: "outline";
|
|
173
189
|
size: "md";
|
|
174
190
|
};
|
|
175
191
|
};
|
|
@@ -9,25 +9,25 @@ export default ct(
|
|
|
9
9
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
10
10
|
],
|
|
11
11
|
value: "me-auto truncate pointer-events-none",
|
|
12
|
-
placeholder: "me-auto truncate color-ui-
|
|
12
|
+
placeholder: "me-auto truncate color-ui-base/50",
|
|
13
13
|
arrow: "fill-ui-cx stroke-ui-cb/20",
|
|
14
14
|
content: [
|
|
15
|
-
"z-1 max-h-60 w-[var(--reka-popper-anchor-width)] bg-ui-
|
|
15
|
+
"z-1 max-h-60 w-[var(--reka-popper-anchor-width)] bg-ui-base shadow-lg rounded-[calc(var(--ui-radius-tabs)*0.66)] ring ring-ui-base/20 overflow-hidden pointer-events-auto",
|
|
16
16
|
"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]"
|
|
17
17
|
],
|
|
18
|
-
viewport: "divide-y divide-ui-
|
|
18
|
+
viewport: "divide-y divide-ui-base/10 scroll-py-1",
|
|
19
19
|
group: "p-1 isolate",
|
|
20
|
-
empty: "py-2 text-center text-sm color-ui-
|
|
21
|
-
label: "font-semibold color-ui-
|
|
20
|
+
empty: "py-2 text-center text-sm color-ui-base/50",
|
|
21
|
+
label: "font-semibold color-ui-base cursor-pointer",
|
|
22
22
|
separator: "-mx-1 my-1 h-px bg-soft-ui-cb/10",
|
|
23
23
|
item: [
|
|
24
|
-
"group relative w-full flex gap-2 items-center select-none outline-none color-ui-
|
|
24
|
+
"group relative w-full flex gap-2 items-center select-none outline-none color-ui-base/50 transition-colors cursor-pointer",
|
|
25
25
|
"aria-disabled:cursor-not-allowed aria-disabled:opacity-50",
|
|
26
26
|
"before:content-empty before:absolute before:z-[-1] before:inset-px before:rounded-ui-base before:transition-colors",
|
|
27
|
-
"data-[highlighted]:color-ui-
|
|
27
|
+
"data-[highlighted]:color-ui-base data-[highlighted]:before:bg-soft-ui-cb/3",
|
|
28
28
|
"data-[state=checked]:color-ui-base"
|
|
29
29
|
],
|
|
30
|
-
itemLeadingIcon: "shrink-0 color-ui-
|
|
30
|
+
itemLeadingIcon: "shrink-0 color-ui-base/80 group-data-[highlighted]:color-ui-base/80 transition-colors",
|
|
31
31
|
itemTrailing: "ms-auto inline-flex gap-1.5 items-center",
|
|
32
32
|
itemTrailingIcon: "shrink-0",
|
|
33
33
|
itemLabel: "truncate",
|
|
@@ -41,34 +41,34 @@ export default ct(
|
|
|
41
41
|
variant: {
|
|
42
42
|
"outline": {
|
|
43
43
|
base: [
|
|
44
|
-
"color-ui-
|
|
45
|
-
"focus-within:ring-2 focus-within:ring-ui-
|
|
46
|
-
"disabled:ring-ui-
|
|
44
|
+
"color-ui-base/80 bg-ui-base ring ring-inset ring-ui-base/30 data-[state=open]:ring-2 data-[state=open]:ring-ui-base/50",
|
|
45
|
+
"focus-within:ring-2 focus-within:ring-ui-base/50",
|
|
46
|
+
"disabled:ring-ui-base/15 hover:disabled:ring-ui-base/15"
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"soft": {
|
|
50
50
|
base: [
|
|
51
|
-
"color-ui-
|
|
52
|
-
"hover:bg-soft-ui-cb/6 hover:color-ui-
|
|
53
|
-
"disabled:color-ui-
|
|
51
|
+
"color-ui-base/80 bg-soft-ui-cb/5 data-[state=open]:bg-soft-ui-cb/5",
|
|
52
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85",
|
|
53
|
+
"disabled:color-ui-fill/80 disabled:bg-soft-ui-fill/5 hover:disabled:color-ui-fill/80 hover:disabled:bg-soft-ui-fill/5"
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
56
|
"soft-outline": {
|
|
57
57
|
base: [
|
|
58
|
-
"color-ui-
|
|
59
|
-
"hover:bg-soft-ui-cb/6 hover:color-ui-
|
|
60
|
-
"disabled:color-ui-
|
|
58
|
+
"color-ui-base/80 bg-soft-ui-cb/5 ring ring-inset ring-ui-base/10 data-[state=open]:bg-soft-ui-cb/5 data-[state=open]:ring-ui-base/25",
|
|
59
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85",
|
|
60
|
+
"disabled:color-ui-fill/80 disabled:bg-soft-ui-fill/5 hover:disabled:color-ui-fill/80 hover:disabled:bg-soft-ui-fill/5"
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
63
|
"ghost": {
|
|
64
64
|
base: [
|
|
65
|
-
"color-ui-
|
|
66
|
-
"hover:bg-soft-ui-cb/6 hover:color-ui-
|
|
65
|
+
"color-ui-base/80 bg-transparent data-[state=open]:bg-soft-ui-cb/8",
|
|
66
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85",
|
|
67
67
|
"disabled:color-ui-fill/80 disabled:bg-transparent hover:disabled:color-ui-fill/80 hover:disabled:bg-transparent"
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"none": {
|
|
71
|
-
base: "color-ui-
|
|
71
|
+
base: "color-ui-base bg-transparent"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
size: {
|
|
@@ -166,6 +166,7 @@ export default ct(
|
|
|
166
166
|
}
|
|
167
167
|
],
|
|
168
168
|
defaultVariants: {
|
|
169
|
+
variant: "outline",
|
|
169
170
|
size: "md"
|
|
170
171
|
}
|
|
171
172
|
}
|
|
@@ -31,36 +31,21 @@ declare const _default: {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
compoundVariants:
|
|
35
|
-
orientation:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
container: string;
|
|
40
|
-
};
|
|
41
|
-
vertical: {
|
|
42
|
-
root: string;
|
|
43
|
-
line: string;
|
|
44
|
-
container: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
start: {
|
|
48
|
-
true: {
|
|
49
|
-
line: string;
|
|
50
|
-
};
|
|
34
|
+
compoundVariants: ({
|
|
35
|
+
orientation: "vertical";
|
|
36
|
+
start: true;
|
|
37
|
+
class: {
|
|
38
|
+
line: string;
|
|
51
39
|
};
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
40
|
+
end?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
orientation: "vertical";
|
|
43
|
+
end: true;
|
|
44
|
+
class: {
|
|
45
|
+
line: string;
|
|
56
46
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
line: string;
|
|
60
|
-
container: string;
|
|
61
|
-
icon: string;
|
|
62
|
-
label: string;
|
|
63
|
-
}, undefined>;
|
|
47
|
+
start?: undefined;
|
|
48
|
+
})[];
|
|
64
49
|
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
65
50
|
orientation: {
|
|
66
51
|
horizontal: {
|
|
@@ -2,7 +2,7 @@ declare const _default: {
|
|
|
2
2
|
base: string;
|
|
3
3
|
slots: undefined;
|
|
4
4
|
variants: {};
|
|
5
|
-
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{}, undefined, "animate-pulse rounded-ui-base bg-soft-ui-
|
|
5
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{}, undefined, "animate-pulse rounded-ui-base bg-soft-ui-cb/10">;
|
|
6
6
|
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{}, undefined>;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
@@ -11,7 +11,7 @@ export default ct(
|
|
|
11
11
|
],
|
|
12
12
|
range: "absolute rounded-full bg-soft-ui-fill",
|
|
13
13
|
thumb: [
|
|
14
|
-
"size-1em rounded-full bg-ui-
|
|
14
|
+
"size-1em rounded-full bg-ui-base ring-0.2em cursor-pointer focus-visible:outline-0.2em focus-visible:outline-offset-0.2em",
|
|
15
15
|
"data-[disabled]:cursor-not-allowed",
|
|
16
16
|
"ring-ui-fill outline-none focus-visible:outline-ui-fill/50"
|
|
17
17
|
]
|
|
@@ -6,22 +6,22 @@ export default ct(
|
|
|
6
6
|
root: "relative inline-flex items-start",
|
|
7
7
|
base: [
|
|
8
8
|
"inline-flex items-center shrink-0 rounded-ui-switch border-2 border-transparent transition-colors duration-200",
|
|
9
|
-
"outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-
|
|
9
|
+
"outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-base/80",
|
|
10
10
|
"data-[state=unchecked]:bg-soft-ui-cb/10 data-[state=checked]:bg-soft-ui-fill/80",
|
|
11
11
|
"w-2.7em"
|
|
12
12
|
],
|
|
13
13
|
container: "flex items-center h-1.5em",
|
|
14
14
|
thumb: [
|
|
15
|
-
"group pointer-events-none rounded-ui-switch size-1.25em bg-ui-
|
|
15
|
+
"group pointer-events-none rounded-ui-switch size-1.25em bg-ui-base shadow-lg ring-0 transition-transform duration-200 flex items-center justify-center",
|
|
16
16
|
"data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:translate-x-0 data-[state=checked]:translate-x-1.25em data-[state=checked]:rtl:-translate-x-1.25em"
|
|
17
17
|
],
|
|
18
18
|
icon: [
|
|
19
19
|
"absolute shrink-0 opacity-0 size-10/12 transition-[color,opacity] duration-200",
|
|
20
|
-
"group-data-[state=unchecked]:color-ui-
|
|
20
|
+
"group-data-[state=unchecked]:color-ui-base/50 group-data-[state=checked]:color-ui-base"
|
|
21
21
|
],
|
|
22
22
|
wrapper: "ms-2",
|
|
23
|
-
label: "flex color-ui-
|
|
24
|
-
description: "color-ui-
|
|
23
|
+
label: "flex color-ui-base/80",
|
|
24
|
+
description: "color-ui-base/60"
|
|
25
25
|
},
|
|
26
26
|
variants: {
|
|
27
27
|
size: {
|
|
@@ -10,6 +10,7 @@ declare const _default: {
|
|
|
10
10
|
th: string;
|
|
11
11
|
td: string;
|
|
12
12
|
empty: string;
|
|
13
|
+
loading: string;
|
|
13
14
|
};
|
|
14
15
|
variants: {
|
|
15
16
|
sticky: {
|
|
@@ -56,6 +57,7 @@ declare const _default: {
|
|
|
56
57
|
th: string;
|
|
57
58
|
td: string;
|
|
58
59
|
empty: string;
|
|
60
|
+
loading: string;
|
|
59
61
|
}, undefined>;
|
|
60
62
|
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
61
63
|
sticky: {
|
|
@@ -84,6 +86,7 @@ declare const _default: {
|
|
|
84
86
|
th: string;
|
|
85
87
|
td: string;
|
|
86
88
|
empty: string;
|
|
89
|
+
loading: string;
|
|
87
90
|
}>;
|
|
88
91
|
};
|
|
89
92
|
export default _default;
|
|
@@ -7,22 +7,23 @@ export default ct(
|
|
|
7
7
|
base: "min-w-full overflow-clip",
|
|
8
8
|
caption: "sr-only",
|
|
9
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-
|
|
10
|
+
tbody: "divide-y divide-ui-base/10",
|
|
11
11
|
tr: "data-[selected=true]:bg-soft-ui-cb/50",
|
|
12
|
-
th: "px-4 py-3.5 text-sm color-ui-
|
|
13
|
-
td: "p-4 text-sm color-ui-
|
|
14
|
-
empty: "py-6 text-center text-sm color-ui-
|
|
12
|
+
th: "px-4 py-3.5 text-sm color-ui-base text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
|
|
13
|
+
td: "p-4 text-sm color-ui-base/80 whitespace-nowrap [&:has([role=checkbox])]:pe-0",
|
|
14
|
+
empty: "py-6 text-center text-sm color-ui-base/80",
|
|
15
|
+
loading: ""
|
|
15
16
|
},
|
|
16
17
|
variants: {
|
|
17
18
|
sticky: {
|
|
18
19
|
true: {
|
|
19
|
-
thead: "sticky z-1 top-0 inset-x-0 bg-ui-
|
|
20
|
+
thead: "sticky z-1 top-0 inset-x-0 bg-ui-base/90 backdrop-blur"
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
23
|
pinned: {
|
|
23
24
|
true: {
|
|
24
|
-
th: "sticky bg-ui-
|
|
25
|
-
td: "sticky bg-ui-
|
|
25
|
+
th: "sticky bg-ui-base/90 data-[pinned=left]:left-0 data-[pinned=right]:right-0",
|
|
26
|
+
td: "sticky bg-ui-base/90 data-[pinned=left]:left-0 data-[pinned=right]:right-0"
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
29
|
expanded: {
|
|
@@ -73,78 +73,61 @@ declare const _default: {
|
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
|
-
compoundVariants:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
};
|
|
76
|
+
compoundVariants: ({
|
|
77
|
+
size: ("xs" | "sm" | "md")[];
|
|
78
|
+
class: {
|
|
79
|
+
trigger: string;
|
|
80
|
+
indicator?: undefined;
|
|
81
|
+
list?: undefined;
|
|
103
82
|
};
|
|
104
|
-
orientation
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
list: string;
|
|
113
|
-
indicator: string;
|
|
114
|
-
trigger: string;
|
|
115
|
-
};
|
|
83
|
+
orientation?: undefined;
|
|
84
|
+
variant?: undefined;
|
|
85
|
+
} | {
|
|
86
|
+
size: ("lg" | "xl")[];
|
|
87
|
+
class: {
|
|
88
|
+
trigger: string;
|
|
89
|
+
indicator?: undefined;
|
|
90
|
+
list?: undefined;
|
|
116
91
|
};
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
};
|
|
127
|
-
lg: {
|
|
128
|
-
root: string;
|
|
129
|
-
};
|
|
130
|
-
xl: {
|
|
131
|
-
root: string;
|
|
132
|
-
};
|
|
92
|
+
orientation?: undefined;
|
|
93
|
+
variant?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
orientation: "horizontal";
|
|
96
|
+
variant: ("solid" | "outline" | "soft" | "soft-outline")[];
|
|
97
|
+
class: {
|
|
98
|
+
indicator: string;
|
|
99
|
+
trigger?: undefined;
|
|
100
|
+
list?: undefined;
|
|
133
101
|
};
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
102
|
+
size?: undefined;
|
|
103
|
+
} | {
|
|
104
|
+
orientation: "horizontal";
|
|
105
|
+
variant: "link";
|
|
106
|
+
class: {
|
|
107
|
+
list: string;
|
|
108
|
+
indicator: string;
|
|
109
|
+
trigger?: undefined;
|
|
138
110
|
};
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
111
|
+
size?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
orientation: "vertical";
|
|
114
|
+
variant: ("solid" | "outline" | "soft" | "soft-outline")[];
|
|
115
|
+
class: {
|
|
116
|
+
indicator: string;
|
|
117
|
+
list: string;
|
|
118
|
+
trigger?: undefined;
|
|
119
|
+
};
|
|
120
|
+
size?: undefined;
|
|
121
|
+
} | {
|
|
122
|
+
orientation: "vertical";
|
|
123
|
+
variant: "link";
|
|
124
|
+
class: {
|
|
125
|
+
list: string;
|
|
126
|
+
indicator: string;
|
|
127
|
+
trigger?: undefined;
|
|
128
|
+
};
|
|
129
|
+
size?: undefined;
|
|
130
|
+
})[];
|
|
148
131
|
defaultVariants: {
|
|
149
132
|
size: "md";
|
|
150
133
|
};
|
|
@@ -20,24 +20,24 @@ export default ct(
|
|
|
20
20
|
"solid": {
|
|
21
21
|
list: "bg-soft-ui-cb/5 rounded-ui-tabs",
|
|
22
22
|
trigger: [
|
|
23
|
-
"data-[state=active]:color-ui-cx focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-
|
|
24
|
-
"data-[state=inactive]:color-ui-
|
|
23
|
+
"data-[state=active]:color-ui-cx focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-base/80",
|
|
24
|
+
"data-[state=inactive]:color-ui-base/80 hover:data-[state=inactive]:not-disabled:color-ui-base"
|
|
25
25
|
],
|
|
26
26
|
indicator: "bg-soft-ui-fill/90 rounded-ui-tabs shadow-sm"
|
|
27
27
|
},
|
|
28
28
|
"outline": {
|
|
29
29
|
list: "bg-soft-ui-cb/5 rounded-ui-tabs",
|
|
30
30
|
trigger: [
|
|
31
|
-
"data-[state=active]:color-ui-
|
|
32
|
-
"data-[state=inactive]:color-ui-
|
|
31
|
+
"data-[state=active]:color-ui-fill focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ui-fill/80",
|
|
32
|
+
"data-[state=inactive]:color-ui-base/80 hover:data-[state=inactive]:not-disabled:color-ui-base"
|
|
33
33
|
],
|
|
34
|
-
indicator: "rounded-ui-tabs ring ring-inset ring-ui-
|
|
34
|
+
indicator: "rounded-ui-tabs ring ring-inset ring-ui-fill"
|
|
35
35
|
},
|
|
36
36
|
"soft": {
|
|
37
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
|
-
"data-[state=inactive]:color-ui-
|
|
40
|
+
"data-[state=inactive]:color-ui-base/80 hover:data-[state=inactive]:not-disabled:color-ui-base"
|
|
41
41
|
],
|
|
42
42
|
indicator: "bg-soft-ui-fill/10 rounded-ui-tabs shadow-sm"
|
|
43
43
|
},
|
|
@@ -45,16 +45,16 @@ export default ct(
|
|
|
45
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
|
-
"data-[state=inactive]:color-ui-
|
|
48
|
+
"data-[state=inactive]:color-ui-base/80 hover:data-[state=inactive]:not-disabled:color-ui-base"
|
|
49
49
|
],
|
|
50
|
-
indicator: "bg-soft-ui-fill/10 rounded-ui-tabs shadow-sm ring ring-inset ring-ui-
|
|
50
|
+
indicator: "bg-soft-ui-fill/10 rounded-ui-tabs shadow-sm ring ring-inset ring-ui-fill/30"
|
|
51
51
|
},
|
|
52
52
|
"link": {
|
|
53
|
-
list: "bg-soft-ui-cb/5 border-ui-
|
|
53
|
+
list: "bg-soft-ui-cb/5 border-ui-base/10",
|
|
54
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
|
-
"data-[state=inactive]:color-ui-
|
|
57
|
+
"data-[state=inactive]:color-ui-base/80 hover:data-[state=inactive]:not-disabled:color-ui-base"
|
|
58
58
|
]
|
|
59
59
|
}
|
|
60
60
|
},
|