@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,56 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
header: string;
|
|
6
|
+
body: string;
|
|
7
|
+
heading: string;
|
|
8
|
+
grid: string;
|
|
9
|
+
gridRow: string;
|
|
10
|
+
gridWeekDaysRow: string;
|
|
11
|
+
gridBody: string;
|
|
12
|
+
headCell: string;
|
|
13
|
+
cell: string;
|
|
14
|
+
cellTrigger: string[];
|
|
15
|
+
};
|
|
16
|
+
variants: {
|
|
17
|
+
size: {
|
|
18
|
+
xs: {
|
|
19
|
+
root: string;
|
|
20
|
+
};
|
|
21
|
+
sm: {
|
|
22
|
+
root: string;
|
|
23
|
+
};
|
|
24
|
+
md: {
|
|
25
|
+
root: string;
|
|
26
|
+
};
|
|
27
|
+
lg: {
|
|
28
|
+
root: string;
|
|
29
|
+
};
|
|
30
|
+
xl: {
|
|
31
|
+
root: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly: {
|
|
35
|
+
true: {
|
|
36
|
+
cellTrigger: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
disabled: {
|
|
40
|
+
true: {
|
|
41
|
+
cellTrigger: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
compoundVariants: {
|
|
46
|
+
readonly: false;
|
|
47
|
+
disabled: false;
|
|
48
|
+
class: {
|
|
49
|
+
cellTrigger: string;
|
|
50
|
+
};
|
|
51
|
+
}[];
|
|
52
|
+
defaultVariants: {
|
|
53
|
+
size: "md";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "",
|
|
7
|
+
header: "flex items-center justify-between",
|
|
8
|
+
body: "flex flex-col space-y-4 pt-4 sm:flex-row sm:space-x-4 sm:space-y-0",
|
|
9
|
+
heading: "text-center font-medium truncate mx-auto",
|
|
10
|
+
grid: "w-full border-collapse select-none space-y-1 focus:outline-none",
|
|
11
|
+
gridRow: "grid gap-1 grid-cols-7",
|
|
12
|
+
gridWeekDaysRow: "mb-1 grid gap-1 w-full grid-cols-7",
|
|
13
|
+
gridBody: "grid",
|
|
14
|
+
headCell: "rounded-ui-base color-ui-fill",
|
|
15
|
+
cell: "relative text-center color-ui-base/80",
|
|
16
|
+
cellTrigger: [
|
|
17
|
+
"relative size-2.25em flex items-center justify-center rounded-ui-button whitespace-nowrap transition",
|
|
18
|
+
"focus-visible:ring-2 focus-visible:ring-ui-base/90 focus:outline-none",
|
|
19
|
+
"data-[disabled]:color-ui-base/50 data-[disabled]:cursor-not-allowed",
|
|
20
|
+
"data-[unavailable]:line-through data-[unavailable]:color-ui-base/50 data-[unavailable]:cursor-not-allowed",
|
|
21
|
+
"data-[selected]:color-ui-cx data-[selected]:bg-soft-ui-fill/95",
|
|
22
|
+
"data-[today]:font-semibold data-[today]:not-[[data-selected]]:color-ui-fill/95",
|
|
23
|
+
"data-[highlighted]:bg-soft-ui-fill/20",
|
|
24
|
+
"data-[outside-view]:color-ui-base/20"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
variants: {
|
|
28
|
+
size: {
|
|
29
|
+
xs: {
|
|
30
|
+
root: "text-xs"
|
|
31
|
+
},
|
|
32
|
+
sm: {
|
|
33
|
+
root: "text-sm"
|
|
34
|
+
},
|
|
35
|
+
md: {
|
|
36
|
+
root: "text-base"
|
|
37
|
+
},
|
|
38
|
+
lg: {
|
|
39
|
+
root: "text-lg"
|
|
40
|
+
},
|
|
41
|
+
xl: {
|
|
42
|
+
root: "text-xl"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
readonly: {
|
|
46
|
+
true: {
|
|
47
|
+
cellTrigger: "cursor-default data-[today]:not-[[data-selected]]:color-ui-fill/60"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
disabled: {
|
|
51
|
+
true: {
|
|
52
|
+
cellTrigger: "data-[today]:not-[[data-selected]]:color-ui-fill/60 data-[selected]:bg-soft-ui-fill/50"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
compoundVariants: [
|
|
57
|
+
{
|
|
58
|
+
readonly: false,
|
|
59
|
+
disabled: false,
|
|
60
|
+
class: {
|
|
61
|
+
cellTrigger: "hover:not-[[data-selected],[data-disabled],[data-unavailable]]:bg-soft-ui-fill/10"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
defaultVariants: {
|
|
66
|
+
size: "md"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
);
|
|
@@ -17,16 +17,16 @@ export default ct(
|
|
|
17
17
|
description: "color-ui-cx/80"
|
|
18
18
|
},
|
|
19
19
|
"outline": {
|
|
20
|
-
root: "color-ui-
|
|
21
|
-
description: "color-ui-
|
|
20
|
+
root: "color-ui-fill bg-ui-base divide-ui-fill/20 ring ring-inset ring-ui-fill/20",
|
|
21
|
+
description: "color-ui-fill/80"
|
|
22
22
|
},
|
|
23
23
|
"soft": {
|
|
24
|
-
root: "color-ui-
|
|
25
|
-
description: "color-ui-
|
|
24
|
+
root: "color-ui-fill bg-soft-ui-fill/10 divide-ui-fill/20",
|
|
25
|
+
description: "color-ui-fill/80"
|
|
26
26
|
},
|
|
27
27
|
"soft-outline": {
|
|
28
|
-
root: "color-ui-
|
|
29
|
-
description: "color-ui-
|
|
28
|
+
root: "color-ui-fill bg-soft-ui-fill/10 divide-ui-fill/20 ring ring-inset ring-ui-fill/20",
|
|
29
|
+
description: "color-ui-fill/80"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
},
|
|
@@ -5,15 +5,15 @@ export default ct(
|
|
|
5
5
|
slots: {
|
|
6
6
|
root: "relative flex items-start",
|
|
7
7
|
base: [
|
|
8
|
-
"size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-cx ring-2 ring-ui-
|
|
9
|
-
"outline-none focus-visible:outline-ui-
|
|
10
|
-
"aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-
|
|
8
|
+
"size-1.25em shrink-0 flex items-center justify-center rounded-ui-checkbox color-ui-cx ring-2 ring-ui-fill ring-inset bg-ui-fill",
|
|
9
|
+
"outline-none focus-visible:outline-ui-base/80 focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
10
|
+
"aria-[checked=false]:ring-1 aria-[checked=false]:ring-ui-base aria-[checked=false]:bg-ui-base"
|
|
11
11
|
],
|
|
12
12
|
container: "flex items-center h-1.25em overflow-hidden",
|
|
13
13
|
wrapper: "text-inherit ms-2",
|
|
14
14
|
icon: "color-ui-cx shrink-0 size-1em transition data-[state=unchecked]:translate-y-full",
|
|
15
|
-
label: "flex color-ui-
|
|
16
|
-
description: "color-ui-
|
|
15
|
+
label: "flex color-ui-base after:content-empty",
|
|
16
|
+
description: "color-ui-base/60"
|
|
17
17
|
},
|
|
18
18
|
variants: {
|
|
19
19
|
size: {
|
|
@@ -47,52 +47,19 @@ declare const _default: {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
compoundVariants:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
outline: {
|
|
56
|
-
base: string;
|
|
57
|
-
};
|
|
58
|
-
soft: {
|
|
59
|
-
base: string;
|
|
60
|
-
};
|
|
61
|
-
'soft-outline': {
|
|
62
|
-
base: string;
|
|
63
|
-
};
|
|
50
|
+
compoundVariants: ({
|
|
51
|
+
size: ("xs" | "sm" | "md")[];
|
|
52
|
+
class: {
|
|
53
|
+
base: string;
|
|
54
|
+
label: string;
|
|
64
55
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
base: string;
|
|
71
|
-
};
|
|
72
|
-
md: {
|
|
73
|
-
base: string;
|
|
74
|
-
};
|
|
75
|
-
lg: {
|
|
76
|
-
base: string;
|
|
77
|
-
};
|
|
78
|
-
xl: {
|
|
79
|
-
base: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
groupOrientation: {
|
|
83
|
-
horizontal: {
|
|
84
|
-
base: string;
|
|
85
|
-
};
|
|
86
|
-
vertical: {
|
|
87
|
-
base: string;
|
|
88
|
-
};
|
|
56
|
+
} | {
|
|
57
|
+
size: ("lg" | "xl")[];
|
|
58
|
+
class: {
|
|
59
|
+
base: string;
|
|
60
|
+
label: string;
|
|
89
61
|
};
|
|
90
|
-
}
|
|
91
|
-
base: string;
|
|
92
|
-
label: string;
|
|
93
|
-
leadingIcon: string;
|
|
94
|
-
trailingIcon: string;
|
|
95
|
-
}, undefined>;
|
|
62
|
+
})[];
|
|
96
63
|
defaultVariants: {
|
|
97
64
|
size: "md";
|
|
98
65
|
};
|
|
@@ -16,13 +16,13 @@ export default ct(
|
|
|
16
16
|
base: "color-ui-cx bg-soft-ui-fill/90"
|
|
17
17
|
},
|
|
18
18
|
"outline": {
|
|
19
|
-
base: "color-ui-fill bg-ui-
|
|
19
|
+
base: "color-ui-fill bg-ui-base ring ring-inset ring-ui-fill/30"
|
|
20
20
|
},
|
|
21
21
|
"soft": {
|
|
22
|
-
base: "color-ui-
|
|
22
|
+
base: "color-ui-fill/80 bg-soft-ui-fill/10"
|
|
23
23
|
},
|
|
24
24
|
"soft-outline": {
|
|
25
|
-
base: "color-ui-
|
|
25
|
+
base: "color-ui-fill/80 bg-soft-ui-fill/10 ring ring-inset ring-ui-fill/30"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
size: {
|
|
@@ -3,56 +3,32 @@ declare const _default: {
|
|
|
3
3
|
slots: {
|
|
4
4
|
overlay: string;
|
|
5
5
|
content: string;
|
|
6
|
-
handle: string;
|
|
7
6
|
container: string;
|
|
8
7
|
header: string;
|
|
9
|
-
title: string;
|
|
10
|
-
description: string;
|
|
11
8
|
body: string;
|
|
12
9
|
footer: string;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
close: string;
|
|
13
13
|
};
|
|
14
14
|
variants: {
|
|
15
15
|
direction: {
|
|
16
16
|
top: {
|
|
17
17
|
content: string;
|
|
18
|
-
handle: string;
|
|
19
18
|
};
|
|
20
19
|
bottom: {
|
|
21
20
|
content: string;
|
|
22
|
-
handle: string;
|
|
23
21
|
};
|
|
24
22
|
left: {
|
|
25
23
|
content: string;
|
|
26
|
-
handle: string;
|
|
27
24
|
};
|
|
28
25
|
right: {
|
|
29
26
|
content: string;
|
|
30
|
-
handle: string;
|
|
31
27
|
};
|
|
32
28
|
};
|
|
33
|
-
|
|
29
|
+
transition: {
|
|
34
30
|
true: {
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
40
|
-
direction: {
|
|
41
|
-
top: {
|
|
42
|
-
content: string;
|
|
43
|
-
handle: string;
|
|
44
|
-
};
|
|
45
|
-
bottom: {
|
|
46
|
-
content: string;
|
|
47
|
-
handle: string;
|
|
48
|
-
};
|
|
49
|
-
left: {
|
|
50
|
-
content: string;
|
|
51
|
-
handle: string;
|
|
52
|
-
};
|
|
53
|
-
right: {
|
|
54
|
-
content: string;
|
|
55
|
-
handle: string;
|
|
31
|
+
overlay: string;
|
|
56
32
|
};
|
|
57
33
|
};
|
|
58
34
|
inset: {
|
|
@@ -60,34 +36,96 @@ declare const _default: {
|
|
|
60
36
|
content: string;
|
|
61
37
|
};
|
|
62
38
|
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
39
|
+
};
|
|
40
|
+
compoundVariants: ({
|
|
41
|
+
direction: ("top" | "bottom")[];
|
|
42
|
+
class: {
|
|
43
|
+
content: string;
|
|
44
|
+
};
|
|
45
|
+
inset?: undefined;
|
|
46
|
+
transition?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
direction: ("left" | "right")[];
|
|
49
|
+
class: {
|
|
50
|
+
content: string;
|
|
51
|
+
};
|
|
52
|
+
inset?: undefined;
|
|
53
|
+
transition?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
direction: "top"[];
|
|
56
|
+
inset: true;
|
|
57
|
+
class: {
|
|
58
|
+
content: string;
|
|
59
|
+
};
|
|
60
|
+
transition?: undefined;
|
|
61
|
+
} | {
|
|
62
|
+
direction: "top"[];
|
|
63
|
+
transition: true;
|
|
64
|
+
class: {
|
|
65
|
+
content: string;
|
|
66
|
+
};
|
|
67
|
+
inset?: undefined;
|
|
68
|
+
} | {
|
|
69
|
+
direction: "bottom"[];
|
|
70
|
+
inset: true;
|
|
71
|
+
class: {
|
|
72
|
+
content: string;
|
|
73
|
+
};
|
|
74
|
+
transition?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
direction: "bottom"[];
|
|
77
|
+
transition: true;
|
|
78
|
+
class: {
|
|
79
|
+
content: string;
|
|
80
|
+
};
|
|
81
|
+
inset?: undefined;
|
|
82
|
+
} | {
|
|
83
|
+
direction: "left"[];
|
|
84
|
+
inset: true;
|
|
85
|
+
class: {
|
|
86
|
+
content: string;
|
|
87
|
+
};
|
|
88
|
+
transition?: undefined;
|
|
89
|
+
} | {
|
|
90
|
+
direction: "left"[];
|
|
91
|
+
transition: true;
|
|
92
|
+
class: {
|
|
93
|
+
content: string;
|
|
94
|
+
};
|
|
95
|
+
inset?: undefined;
|
|
96
|
+
} | {
|
|
97
|
+
direction: "right"[];
|
|
98
|
+
inset: true;
|
|
99
|
+
class: {
|
|
100
|
+
content: string;
|
|
101
|
+
};
|
|
102
|
+
transition?: undefined;
|
|
103
|
+
} | {
|
|
104
|
+
direction: "right"[];
|
|
105
|
+
transition: true;
|
|
106
|
+
class: {
|
|
107
|
+
content: string;
|
|
108
|
+
};
|
|
109
|
+
inset?: undefined;
|
|
110
|
+
})[];
|
|
74
111
|
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
75
112
|
direction: {
|
|
76
113
|
top: {
|
|
77
114
|
content: string;
|
|
78
|
-
handle: string;
|
|
79
115
|
};
|
|
80
116
|
bottom: {
|
|
81
117
|
content: string;
|
|
82
|
-
handle: string;
|
|
83
118
|
};
|
|
84
119
|
left: {
|
|
85
120
|
content: string;
|
|
86
|
-
handle: string;
|
|
87
121
|
};
|
|
88
122
|
right: {
|
|
89
123
|
content: string;
|
|
90
|
-
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
transition: {
|
|
127
|
+
true: {
|
|
128
|
+
overlay: string;
|
|
91
129
|
};
|
|
92
130
|
};
|
|
93
131
|
inset: {
|
|
@@ -98,13 +136,13 @@ declare const _default: {
|
|
|
98
136
|
}, {
|
|
99
137
|
overlay: string;
|
|
100
138
|
content: string;
|
|
101
|
-
handle: string;
|
|
102
139
|
container: string;
|
|
103
140
|
header: string;
|
|
104
|
-
title: string;
|
|
105
|
-
description: string;
|
|
106
141
|
body: string;
|
|
107
142
|
footer: string;
|
|
143
|
+
title: string;
|
|
144
|
+
description: string;
|
|
145
|
+
close: string;
|
|
108
146
|
}>;
|
|
109
147
|
};
|
|
110
148
|
export default _default;
|
|
@@ -4,32 +4,33 @@ export default ct(
|
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
6
|
overlay: "fixed z-1 inset-0 bg-black/40",
|
|
7
|
-
content: "fixed z-1 bg-ui-
|
|
8
|
-
handle: "shrink-0 rounded-full bg-soft-ui-cb/17.5",
|
|
7
|
+
content: "fixed z-1 bg-ui-base ring ring-ui-base/5 flex focus:outline-none",
|
|
9
8
|
container: "w-full flex flex-col overflow-hidden overflow-y-auto",
|
|
10
|
-
header: "
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
header: "flex flex-wrap items-center gap-1 px-4 py-5 pb-0 sm:px-6",
|
|
10
|
+
body: "flex-1 overflow-y-auto p-4 sm:p-6",
|
|
11
|
+
footer: "flex items-center gap-1.5 p-4 pt-0 sm:px-6",
|
|
12
|
+
title: "flex-grow color-ui-base text-xl font-semibold",
|
|
13
|
+
description: "w-full color-ui-base/80",
|
|
14
|
+
close: "ms-auto"
|
|
15
15
|
},
|
|
16
16
|
variants: {
|
|
17
17
|
direction: {
|
|
18
18
|
top: {
|
|
19
|
-
content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box"
|
|
20
|
-
handle: "mb-4"
|
|
19
|
+
content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box"
|
|
21
20
|
},
|
|
22
21
|
bottom: {
|
|
23
|
-
content: "bottom-0 mt-24 flex-col rounded-t-ui-box"
|
|
24
|
-
handle: "mt-4"
|
|
22
|
+
content: "bottom-0 mt-24 flex-col rounded-t-ui-box"
|
|
25
23
|
},
|
|
26
24
|
left: {
|
|
27
|
-
content: "left-0 flex-row-reverse rounded-r-ui-box"
|
|
28
|
-
handle: "mr-4"
|
|
25
|
+
content: "left-0 flex-row-reverse rounded-r-ui-box"
|
|
29
26
|
},
|
|
30
27
|
right: {
|
|
31
|
-
content: "right-0 flex-row rounded-l-ui-box"
|
|
32
|
-
|
|
28
|
+
content: "right-0 flex-row rounded-l-ui-box"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
transition: {
|
|
32
|
+
true: {
|
|
33
|
+
overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
inset: {
|
|
@@ -42,15 +43,13 @@ export default ct(
|
|
|
42
43
|
{
|
|
43
44
|
direction: ["top", "bottom"],
|
|
44
45
|
class: {
|
|
45
|
-
content: "inset-x-0 h-auto max-h-[96%]"
|
|
46
|
-
handle: "w-12 h-1.5 mx-auto"
|
|
46
|
+
content: "inset-x-0 h-auto max-h-[96%]"
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
direction: ["left", "right"],
|
|
51
51
|
class: {
|
|
52
|
-
content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]"
|
|
53
|
-
handle: "h-12 w-1.5 my-auto"
|
|
52
|
+
content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]"
|
|
54
53
|
}
|
|
55
54
|
},
|
|
56
55
|
{
|
|
@@ -60,6 +59,13 @@ export default ct(
|
|
|
60
59
|
content: "inset-x-4 top-4"
|
|
61
60
|
}
|
|
62
61
|
},
|
|
62
|
+
{
|
|
63
|
+
direction: ["top"],
|
|
64
|
+
transition: true,
|
|
65
|
+
class: {
|
|
66
|
+
content: "data-[state=open]:animate-[slide-in-from-top_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-top_500ms_cubic-bezier(0.32,0.72,0,1)]"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
63
69
|
{
|
|
64
70
|
direction: ["bottom"],
|
|
65
71
|
inset: true,
|
|
@@ -67,6 +73,13 @@ export default ct(
|
|
|
67
73
|
content: "inset-x-4 bottom-4"
|
|
68
74
|
}
|
|
69
75
|
},
|
|
76
|
+
{
|
|
77
|
+
direction: ["bottom"],
|
|
78
|
+
transition: true,
|
|
79
|
+
class: {
|
|
80
|
+
content: "data-[state=open]:animate-[slide-in-from-bottom_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-bottom_500ms_cubic-bezier(0.32,0.72,0,1)]"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
70
83
|
{
|
|
71
84
|
direction: ["left"],
|
|
72
85
|
inset: true,
|
|
@@ -74,12 +87,26 @@ export default ct(
|
|
|
74
87
|
content: "inset-y-4 left-4"
|
|
75
88
|
}
|
|
76
89
|
},
|
|
90
|
+
{
|
|
91
|
+
direction: ["left"],
|
|
92
|
+
transition: true,
|
|
93
|
+
class: {
|
|
94
|
+
content: "data-[state=open]:animate-[slide-in-from-left_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-left_500ms_cubic-bezier(0.32,0.72,0,1)]"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
77
97
|
{
|
|
78
98
|
direction: ["right"],
|
|
79
99
|
inset: true,
|
|
80
100
|
class: {
|
|
81
101
|
content: "inset-y-4 right-4"
|
|
82
102
|
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
direction: ["right"],
|
|
106
|
+
transition: true,
|
|
107
|
+
class: {
|
|
108
|
+
content: "data-[state=open]:animate-[slide-in-from-right_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-right_500ms_cubic-bezier(0.32,0.72,0,1)]"
|
|
109
|
+
}
|
|
83
110
|
}
|
|
84
111
|
]
|
|
85
112
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
content: string[];
|
|
5
|
+
arrow: string;
|
|
6
|
+
group: string;
|
|
7
|
+
label: string;
|
|
8
|
+
separator: string;
|
|
9
|
+
item: string[];
|
|
10
|
+
itemLeadingIcon: string;
|
|
11
|
+
itemLeadingAvatar: string;
|
|
12
|
+
itemTrailing: string;
|
|
13
|
+
itemTrailingIcon: string;
|
|
14
|
+
itemTrailingKbds: string;
|
|
15
|
+
itemLabel: string;
|
|
16
|
+
itemLabelExternalIcon: string;
|
|
17
|
+
};
|
|
18
|
+
variants: {
|
|
19
|
+
size: {
|
|
20
|
+
xs: {
|
|
21
|
+
content: string;
|
|
22
|
+
};
|
|
23
|
+
sm: {
|
|
24
|
+
content: string;
|
|
25
|
+
};
|
|
26
|
+
md: {
|
|
27
|
+
content: string;
|
|
28
|
+
};
|
|
29
|
+
lg: {
|
|
30
|
+
content: string;
|
|
31
|
+
};
|
|
32
|
+
xl: {
|
|
33
|
+
content: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
active: {
|
|
37
|
+
true: {
|
|
38
|
+
item: string;
|
|
39
|
+
itemLeadingIcon: string;
|
|
40
|
+
};
|
|
41
|
+
false: {
|
|
42
|
+
item: string;
|
|
43
|
+
itemLeadingIcon: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
loading: {
|
|
47
|
+
true: {
|
|
48
|
+
itemLeadingIcon: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
compoundVariants: ({
|
|
53
|
+
size: ("xs" | "sm" | "md")[];
|
|
54
|
+
class: {
|
|
55
|
+
label: string;
|
|
56
|
+
item: string;
|
|
57
|
+
itemTrailingKbds: string;
|
|
58
|
+
};
|
|
59
|
+
} | {
|
|
60
|
+
size: ("lg" | "xl")[];
|
|
61
|
+
class: {
|
|
62
|
+
label: string;
|
|
63
|
+
item: string;
|
|
64
|
+
itemTrailingKbds: string;
|
|
65
|
+
};
|
|
66
|
+
})[];
|
|
67
|
+
defaultVariants: {
|
|
68
|
+
size: "md";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export default _default;
|