@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
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
content: [
|
|
7
|
+
"bg-ui-base shadow-lg rounded-ui-base ring ring-ui-base/10 divide-y divide-ui-base/10 overflow-y-auto scroll-py-1",
|
|
8
|
+
"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]"
|
|
9
|
+
],
|
|
10
|
+
arrow: "-mt-px fill-ui-cx stroke-ui-base/10",
|
|
11
|
+
group: "p-1 isolate",
|
|
12
|
+
label: "w-full flex items-center font-semibold color-ui-base",
|
|
13
|
+
separator: "-mx-1 my-1 h-px bg-ui-cb/10",
|
|
14
|
+
item: [
|
|
15
|
+
"group relative w-full flex items-center select-none outline-none",
|
|
16
|
+
"before:content-empty before:absolute before:z-[-1] before:inset-px before:rounded-ui-base",
|
|
17
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"
|
|
18
|
+
],
|
|
19
|
+
itemLeadingIcon: "shrink-0",
|
|
20
|
+
itemLeadingAvatar: "shrink-0",
|
|
21
|
+
itemTrailing: "ms-auto inline-flex gap-1.5 items-center",
|
|
22
|
+
itemTrailingIcon: "shrink-0",
|
|
23
|
+
itemTrailingKbds: "hidden lg:inline-flex items-center shrink-0",
|
|
24
|
+
itemLabel: "truncate",
|
|
25
|
+
itemLabelExternalIcon: "inline-block size-3 align-top color-ui-base/50"
|
|
26
|
+
},
|
|
27
|
+
variants: {
|
|
28
|
+
size: {
|
|
29
|
+
xs: {
|
|
30
|
+
content: "text-xs"
|
|
31
|
+
},
|
|
32
|
+
sm: {
|
|
33
|
+
content: "text-sm"
|
|
34
|
+
},
|
|
35
|
+
md: {
|
|
36
|
+
content: "text-base"
|
|
37
|
+
},
|
|
38
|
+
lg: {
|
|
39
|
+
content: "text-lg"
|
|
40
|
+
},
|
|
41
|
+
xl: {
|
|
42
|
+
content: "text-xl"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
active: {
|
|
46
|
+
true: {
|
|
47
|
+
item: "color-ui-base before:bg-ui-cb/10",
|
|
48
|
+
itemLeadingIcon: "color-ui-base/80"
|
|
49
|
+
},
|
|
50
|
+
false: {
|
|
51
|
+
item: "color-ui-base/80 data-[highlighted]:color-ui-base data-[state=open]:color-ui-base data-[highlighted]:before:bg-ui-cb/5 data-[state=open]:before:bg-ui-cb/5 transition-colors before:transition-colors",
|
|
52
|
+
itemLeadingIcon: "color-ui-base/50 group-data-[highlighted]:color-ui-base/80 group-data-[state=open]:color-ui-base/80 transition-colors"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
loading: {
|
|
56
|
+
true: {
|
|
57
|
+
itemLeadingIcon: "animate-spin"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
compoundVariants: [
|
|
62
|
+
{
|
|
63
|
+
size: ["xs", "sm", "md"],
|
|
64
|
+
class: {
|
|
65
|
+
label: "p-0.25em gap-0.25em",
|
|
66
|
+
item: "p-0.25em gap-0.25em",
|
|
67
|
+
itemTrailingKbds: "gap-0.125em"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
size: ["lg", "xl"],
|
|
72
|
+
class: {
|
|
73
|
+
label: "p-0.5em gap-0.5em",
|
|
74
|
+
item: "p-0.5em gap-0.5em",
|
|
75
|
+
itemTrailingKbds: "gap-0.25em"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
defaultVariants: {
|
|
80
|
+
size: "md"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
);
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
wrapper: string;
|
|
6
|
+
labelWrapper: string;
|
|
7
|
+
label: string;
|
|
8
|
+
container: string;
|
|
9
|
+
description: string;
|
|
10
|
+
error: string;
|
|
11
|
+
hint: string;
|
|
12
|
+
help: string;
|
|
13
|
+
};
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
xs: {
|
|
17
|
+
root: string;
|
|
18
|
+
};
|
|
19
|
+
sm: {
|
|
20
|
+
root: string;
|
|
21
|
+
};
|
|
22
|
+
md: {
|
|
23
|
+
root: string;
|
|
24
|
+
};
|
|
25
|
+
lg: {
|
|
26
|
+
root: string;
|
|
27
|
+
};
|
|
28
|
+
xl: {
|
|
29
|
+
root: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
required: {
|
|
33
|
+
true: {
|
|
34
|
+
label: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
39
|
+
size: {
|
|
40
|
+
xs: {
|
|
41
|
+
root: string;
|
|
42
|
+
};
|
|
43
|
+
sm: {
|
|
44
|
+
root: string;
|
|
45
|
+
};
|
|
46
|
+
md: {
|
|
47
|
+
root: string;
|
|
48
|
+
};
|
|
49
|
+
lg: {
|
|
50
|
+
root: string;
|
|
51
|
+
};
|
|
52
|
+
xl: {
|
|
53
|
+
root: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
required: {
|
|
57
|
+
true: {
|
|
58
|
+
label: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
root: string;
|
|
63
|
+
wrapper: string;
|
|
64
|
+
labelWrapper: string;
|
|
65
|
+
label: string;
|
|
66
|
+
container: string;
|
|
67
|
+
description: string;
|
|
68
|
+
error: string;
|
|
69
|
+
hint: string;
|
|
70
|
+
help: string;
|
|
71
|
+
}, undefined>;
|
|
72
|
+
defaultVariants: {
|
|
73
|
+
size: "md";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "",
|
|
7
|
+
wrapper: "",
|
|
8
|
+
labelWrapper: "flex content-center items-center justify-between",
|
|
9
|
+
label: "block font-medium color-ui-base/80",
|
|
10
|
+
container: "mt-0.25em relative",
|
|
11
|
+
description: "color-ui-base/60",
|
|
12
|
+
error: "mt-0.25em color-ui-fill",
|
|
13
|
+
hint: "color-ui-base/60",
|
|
14
|
+
help: "mt-0.25em color-ui-base/60"
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
size: {
|
|
18
|
+
xs: { root: "text-xs" },
|
|
19
|
+
sm: { root: "text-sm" },
|
|
20
|
+
md: { root: "text-base" },
|
|
21
|
+
lg: { root: "text-lg" },
|
|
22
|
+
xl: { root: "text-xl" }
|
|
23
|
+
},
|
|
24
|
+
required: {
|
|
25
|
+
true: {
|
|
26
|
+
label: `after:content-['*'] after:ms-0.5 after:color-ui-fill`
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
size: "md"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: string;
|
|
3
|
+
slots: undefined;
|
|
4
|
+
variants: {};
|
|
5
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{}, undefined, "">;
|
|
6
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{}, undefined>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -7,12 +7,16 @@ export { default as badge } from './badge.js';
|
|
|
7
7
|
export { default as breadcrumb } from './breadcrumb.js';
|
|
8
8
|
export { default as button } from './button.js';
|
|
9
9
|
export { default as buttonGroup } from './button-group.js';
|
|
10
|
+
export { default as calendar } from './calendar.js';
|
|
10
11
|
export { default as card } from './card.js';
|
|
11
12
|
export { default as carousel } from './carousel.js';
|
|
12
13
|
export { default as checkbox } from './checkbox.js';
|
|
13
14
|
export { default as chip } from './chip.js';
|
|
14
15
|
export { default as collapsible } from './collapsible.js';
|
|
15
16
|
export { default as drawer } from './drawer.js';
|
|
17
|
+
export { default as dropdownMenu } from './dropdown-menu.js';
|
|
18
|
+
export { default as form } from './form.js';
|
|
19
|
+
export { default as formItem } from './form-item.js';
|
|
16
20
|
export { default as input } from './input.js';
|
|
17
21
|
export { default as inputNumber } from './input-number.js';
|
|
18
22
|
export { default as kbd } from './kbd.js';
|
|
@@ -33,5 +37,5 @@ export { default as table } from './table.js';
|
|
|
33
37
|
export { default as tabs } from './tabs.js';
|
|
34
38
|
export { default as textarea } from './textarea.js';
|
|
35
39
|
export { default as toast } from './toast.js';
|
|
36
|
-
export { default as
|
|
40
|
+
export { default as toastProvider } from './toast-provider.js';
|
|
37
41
|
export { default as tooltip } from './tooltip.js';
|
|
@@ -7,12 +7,16 @@ export { default as badge } from "./badge.js";
|
|
|
7
7
|
export { default as breadcrumb } from "./breadcrumb.js";
|
|
8
8
|
export { default as button } from "./button.js";
|
|
9
9
|
export { default as buttonGroup } from "./button-group.js";
|
|
10
|
+
export { default as calendar } from "./calendar.js";
|
|
10
11
|
export { default as card } from "./card.js";
|
|
11
12
|
export { default as carousel } from "./carousel.js";
|
|
12
13
|
export { default as checkbox } from "./checkbox.js";
|
|
13
14
|
export { default as chip } from "./chip.js";
|
|
14
15
|
export { default as collapsible } from "./collapsible.js";
|
|
15
16
|
export { default as drawer } from "./drawer.js";
|
|
17
|
+
export { default as dropdownMenu } from "./dropdown-menu.js";
|
|
18
|
+
export { default as form } from "./form.js";
|
|
19
|
+
export { default as formItem } from "./form-item.js";
|
|
16
20
|
export { default as input } from "./input.js";
|
|
17
21
|
export { default as inputNumber } from "./input-number.js";
|
|
18
22
|
export { default as kbd } from "./kbd.js";
|
|
@@ -33,5 +37,5 @@ export { default as table } from "./table.js";
|
|
|
33
37
|
export { default as tabs } from "./tabs.js";
|
|
34
38
|
export { default as textarea } from "./textarea.js";
|
|
35
39
|
export { default as toast } from "./toast.js";
|
|
36
|
-
export { default as
|
|
40
|
+
export { default as toastProvider } from "./toast-provider.js";
|
|
37
41
|
export { default as tooltip } from "./tooltip.js";
|
|
@@ -67,72 +67,52 @@ declare const _default: {
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
-
compoundVariants:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
};
|
|
78
|
-
md: {
|
|
79
|
-
base: string;
|
|
80
|
-
};
|
|
81
|
-
lg: {
|
|
82
|
-
base: string;
|
|
83
|
-
};
|
|
84
|
-
xl: {
|
|
85
|
-
base: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
variant: {
|
|
89
|
-
outline: {
|
|
90
|
-
base: string[];
|
|
91
|
-
};
|
|
92
|
-
soft: {
|
|
93
|
-
base: string[];
|
|
94
|
-
};
|
|
95
|
-
'soft-outline': {
|
|
96
|
-
base: string[];
|
|
97
|
-
};
|
|
98
|
-
ghost: {
|
|
99
|
-
base: string[];
|
|
100
|
-
};
|
|
101
|
-
none: {
|
|
102
|
-
base: string;
|
|
103
|
-
};
|
|
70
|
+
compoundVariants: ({
|
|
71
|
+
variant: ("soft" | "ghost" | "none")[];
|
|
72
|
+
highlight: false;
|
|
73
|
+
underline: true;
|
|
74
|
+
class: {
|
|
75
|
+
base: string[];
|
|
76
|
+
input?: undefined;
|
|
104
77
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
78
|
+
size?: undefined;
|
|
79
|
+
} | {
|
|
80
|
+
size: ("xs" | "sm" | "md")[];
|
|
81
|
+
class: {
|
|
82
|
+
base: string;
|
|
83
|
+
input: string;
|
|
110
84
|
};
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
decrement: string;
|
|
120
|
-
};
|
|
85
|
+
variant?: undefined;
|
|
86
|
+
highlight?: undefined;
|
|
87
|
+
underline?: undefined;
|
|
88
|
+
} | {
|
|
89
|
+
size: ("lg" | "xl")[];
|
|
90
|
+
class: {
|
|
91
|
+
base: string;
|
|
92
|
+
input: string;
|
|
121
93
|
};
|
|
122
|
-
|
|
123
|
-
|
|
94
|
+
variant?: undefined;
|
|
95
|
+
highlight?: undefined;
|
|
96
|
+
underline?: undefined;
|
|
97
|
+
} | {
|
|
98
|
+
variant: ("soft" | "soft-outline" | "ghost" | "none")[];
|
|
99
|
+
highlight: true;
|
|
100
|
+
class: {
|
|
101
|
+
base: string;
|
|
102
|
+
input?: undefined;
|
|
124
103
|
};
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
104
|
+
underline?: undefined;
|
|
105
|
+
size?: undefined;
|
|
106
|
+
} | {
|
|
107
|
+
variant: "outline"[];
|
|
108
|
+
highlight: true;
|
|
109
|
+
class: {
|
|
110
|
+
base: string;
|
|
111
|
+
input?: undefined;
|
|
129
112
|
};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
increment: string;
|
|
134
|
-
decrement: string;
|
|
135
|
-
}, undefined>;
|
|
113
|
+
underline?: undefined;
|
|
114
|
+
size?: undefined;
|
|
115
|
+
})[];
|
|
136
116
|
defaultVariants: {
|
|
137
117
|
size: "md";
|
|
138
118
|
variant: "outline";
|
|
@@ -6,7 +6,7 @@ export default ct(
|
|
|
6
6
|
slots: {
|
|
7
7
|
base: "relative inline-flex items-center rounded-ui-base transition-colors aria-disabled:opacity-50",
|
|
8
8
|
input: [
|
|
9
|
-
"w-full color-inherit bg-transparent border-0 placeholder:color-ui-
|
|
9
|
+
"w-full color-inherit bg-transparent border-0 placeholder:color-ui-base/50",
|
|
10
10
|
"focus:outline-none",
|
|
11
11
|
"disabled:cursor-not-allowed"
|
|
12
12
|
],
|
|
@@ -72,77 +72,105 @@ 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
|
-
}
|
|
75
|
+
compoundVariants: ({
|
|
76
|
+
variant: ("soft" | "ghost" | "none")[];
|
|
77
|
+
highlight: false;
|
|
78
|
+
underline: true;
|
|
79
|
+
class: {
|
|
80
|
+
base: string[];
|
|
81
|
+
input?: undefined;
|
|
82
|
+
leadingIcon?: undefined;
|
|
83
|
+
trailingIcon?: undefined;
|
|
84
|
+
};
|
|
85
|
+
size?: undefined;
|
|
86
|
+
loading?: undefined;
|
|
87
|
+
leading?: undefined;
|
|
88
|
+
trailing?: undefined;
|
|
89
|
+
} | {
|
|
90
|
+
size: ("xs" | "sm" | "md")[];
|
|
91
|
+
class: {
|
|
92
|
+
base: string;
|
|
93
|
+
input: string;
|
|
94
|
+
leadingIcon?: undefined;
|
|
95
|
+
trailingIcon?: undefined;
|
|
96
|
+
};
|
|
97
|
+
variant?: undefined;
|
|
98
|
+
highlight?: undefined;
|
|
99
|
+
underline?: undefined;
|
|
100
|
+
loading?: undefined;
|
|
101
|
+
leading?: undefined;
|
|
102
|
+
trailing?: undefined;
|
|
103
|
+
} | {
|
|
104
|
+
size: ("lg" | "xl")[];
|
|
105
|
+
class: {
|
|
106
|
+
base: string;
|
|
107
|
+
input: string;
|
|
108
|
+
leadingIcon?: undefined;
|
|
109
|
+
trailingIcon?: undefined;
|
|
110
|
+
};
|
|
111
|
+
variant?: undefined;
|
|
112
|
+
highlight?: undefined;
|
|
113
|
+
underline?: undefined;
|
|
114
|
+
loading?: undefined;
|
|
115
|
+
leading?: undefined;
|
|
116
|
+
trailing?: undefined;
|
|
117
|
+
} | {
|
|
118
|
+
variant: ("soft" | "soft-outline" | "ghost" | "none")[];
|
|
119
|
+
highlight: true;
|
|
120
|
+
class: {
|
|
121
|
+
base: string;
|
|
122
|
+
input?: undefined;
|
|
123
|
+
leadingIcon?: undefined;
|
|
124
|
+
trailingIcon?: undefined;
|
|
125
|
+
};
|
|
126
|
+
underline?: undefined;
|
|
127
|
+
size?: undefined;
|
|
128
|
+
loading?: undefined;
|
|
129
|
+
leading?: undefined;
|
|
130
|
+
trailing?: undefined;
|
|
131
|
+
} | {
|
|
132
|
+
variant: "outline"[];
|
|
133
|
+
highlight: true;
|
|
134
|
+
class: {
|
|
135
|
+
base: string;
|
|
136
|
+
input?: undefined;
|
|
137
|
+
leadingIcon?: undefined;
|
|
138
|
+
trailingIcon?: undefined;
|
|
139
|
+
};
|
|
140
|
+
underline?: undefined;
|
|
141
|
+
size?: undefined;
|
|
142
|
+
loading?: undefined;
|
|
143
|
+
leading?: undefined;
|
|
144
|
+
trailing?: undefined;
|
|
145
|
+
} | {
|
|
146
|
+
loading: true;
|
|
147
|
+
leading: true;
|
|
148
|
+
class: {
|
|
149
|
+
leadingIcon: string;
|
|
150
|
+
base?: undefined;
|
|
151
|
+
input?: undefined;
|
|
152
|
+
trailingIcon?: undefined;
|
|
153
|
+
};
|
|
154
|
+
variant?: undefined;
|
|
155
|
+
highlight?: undefined;
|
|
156
|
+
underline?: undefined;
|
|
157
|
+
size?: undefined;
|
|
158
|
+
trailing?: undefined;
|
|
159
|
+
} | {
|
|
160
|
+
loading: true;
|
|
161
|
+
leading: false;
|
|
162
|
+
trailing: true;
|
|
163
|
+
class: {
|
|
164
|
+
trailingIcon: string;
|
|
165
|
+
base?: undefined;
|
|
166
|
+
input?: undefined;
|
|
167
|
+
leadingIcon?: undefined;
|
|
168
|
+
};
|
|
169
|
+
variant?: undefined;
|
|
170
|
+
highlight?: undefined;
|
|
171
|
+
underline?: undefined;
|
|
172
|
+
size?: undefined;
|
|
173
|
+
})[];
|
|
146
174
|
defaultVariants: {
|
|
147
175
|
size: "md";
|
|
148
176
|
};
|
|
@@ -6,7 +6,7 @@ export default ct(
|
|
|
6
6
|
slots: {
|
|
7
7
|
base: "inline-flex items-center rounded-ui-base transition-colors aria-disabled:opacity-50",
|
|
8
8
|
input: [
|
|
9
|
-
"w-full color-inherit bg-transparent border-0 placeholder:color-ui-
|
|
9
|
+
"w-full color-inherit bg-transparent border-0 placeholder:color-ui-base/50",
|
|
10
10
|
"focus:outline-none",
|
|
11
11
|
"disabled:cursor-not-allowed"
|
|
12
12
|
],
|
|
@@ -37,34 +37,34 @@ export default ct(
|
|
|
37
37
|
variant: {
|
|
38
38
|
"outline": {
|
|
39
39
|
base: [
|
|
40
|
-
"color-ui-
|
|
41
|
-
"focus-within:ring-2 focus-within:ring-ui-
|
|
42
|
-
"aria-disabled:ring-ui-
|
|
40
|
+
"color-ui-base/80 bg-ui-base ring ring-inset ring-ui-base/30",
|
|
41
|
+
"focus-within:ring-2 focus-within:ring-ui-base/50 hover:focus-within:ring-ui-base/50",
|
|
42
|
+
"aria-disabled:ring-ui-base/20 hover:aria-disabled:ring-ui-base/20"
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
45
|
"soft": {
|
|
46
46
|
base: [
|
|
47
|
-
"color-ui-
|
|
48
|
-
"hover:bg-soft-ui-cb/6 hover:color-ui-
|
|
49
|
-
"aria-disabled:color-ui-
|
|
47
|
+
"color-ui-base/80 bg-soft-ui-cb/4",
|
|
48
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 hover:focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85 hover:focus-within:color-ui-base/85",
|
|
49
|
+
"aria-disabled:color-ui-base/80 aria-disabled:bg-soft-ui-cb/5 hover:aria-disabled:color-ui-base/80 hover:aria-disabled:bg-soft-ui-cb/5"
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
"soft-outline": {
|
|
53
53
|
base: [
|
|
54
|
-
"color-ui-
|
|
55
|
-
"hover:bg-soft-ui-cb/6 hover:color-ui-
|
|
56
|
-
"aria-disabled:color-ui-
|
|
54
|
+
"color-ui-base/80 bg-soft-ui-cb/4 ring ring-inset ring-ui-base/30",
|
|
55
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 hover:focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85 hover:focus-within:color-ui-base/85",
|
|
56
|
+
"aria-disabled:color-ui-base/80 aria-disabled:bg-soft-ui-cb/5 hover:aria-disabled:color-ui-base/80 hover:aria-disabled:bg-soft-ui-cb/5"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
"ghost": {
|
|
60
60
|
base: [
|
|
61
|
-
"color-ui-
|
|
62
|
-
"hover:bg-soft-ui-cb/6 hover:color-ui-
|
|
61
|
+
"color-ui-base/80 bg-transparent",
|
|
62
|
+
"hover:bg-soft-ui-cb/6 hover:color-ui-base/80 focus-within:bg-soft-ui-cb/8 hover:focus-within:bg-soft-ui-cb/8 focus-within:color-ui-base/85 hover:focus-within:color-ui-base/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
|
},
|
|
66
66
|
"none": {
|
|
67
|
-
base: "color-ui-
|
|
67
|
+
base: "color-ui-base bg-transparent"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
leading: {
|
|
@@ -118,14 +118,14 @@ export default ct(
|
|
|
118
118
|
variant: ["soft", "soft-outline", "ghost", "none"],
|
|
119
119
|
highlight: true,
|
|
120
120
|
class: {
|
|
121
|
-
base: "ring ring-inset ring-ui-fill/80"
|
|
121
|
+
base: "ring ring-inset ring-ui-fill/80 focus-within:ring-ui-fill/80 hover:focus-within:ring-ui-fill/80"
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
variant: ["outline"],
|
|
126
126
|
highlight: true,
|
|
127
127
|
class: {
|
|
128
|
-
base: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
|
|
128
|
+
base: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80 hover:focus-within:ring-ui-fill/80"
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
{
|
|
@@ -4,7 +4,7 @@ declare const _default: {
|
|
|
4
4
|
variants: {
|
|
5
5
|
variant: {
|
|
6
6
|
solid: "color-ui-cx bg-soft-ui-fill/90";
|
|
7
|
-
outline: "color-ui-fill ring bg-ui-
|
|
7
|
+
outline: "color-ui-fill ring bg-ui-base/90 ring-inset ring-ui-fill/30";
|
|
8
8
|
soft: "color-ui-fill/80 bg-soft-ui-fill/20";
|
|
9
9
|
'soft-outline': "color-ui-fill/80 bg-soft-ui-fill/20 ring ring-inset ring-ui-fill/30";
|
|
10
10
|
};
|
|
@@ -19,7 +19,7 @@ declare const _default: {
|
|
|
19
19
|
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
20
20
|
variant: {
|
|
21
21
|
solid: "color-ui-cx bg-soft-ui-fill/90";
|
|
22
|
-
outline: "color-ui-fill ring bg-ui-
|
|
22
|
+
outline: "color-ui-fill ring bg-ui-base/90 ring-inset ring-ui-fill/30";
|
|
23
23
|
soft: "color-ui-fill/80 bg-soft-ui-fill/20";
|
|
24
24
|
'soft-outline': "color-ui-fill/80 bg-soft-ui-fill/20 ring ring-inset ring-ui-fill/30";
|
|
25
25
|
};
|
|
@@ -6,7 +6,7 @@ export default ct(
|
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
8
|
"solid": "color-ui-cx bg-soft-ui-fill/90",
|
|
9
|
-
"outline": "color-ui-fill ring bg-ui-
|
|
9
|
+
"outline": "color-ui-fill ring bg-ui-base/90 ring-inset ring-ui-fill/30",
|
|
10
10
|
"soft": "color-ui-fill/80 bg-soft-ui-fill/20",
|
|
11
11
|
"soft-outline": "color-ui-fill/80 bg-soft-ui-fill/20 ring ring-inset ring-ui-fill/30"
|
|
12
12
|
},
|