@byyuurin/ui 0.0.8 → 0.0.9
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/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 +2 -7
- package/dist/runtime/app/injections.js +0 -5
- package/dist/runtime/components/Accordion.vue +10 -8
- package/dist/runtime/components/Alert.vue +5 -8
- 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 +2 -5
- package/dist/runtime/components/Breadcrumb.vue +11 -8
- package/dist/runtime/components/Button.vue +2 -3
- package/dist/runtime/components/ButtonGroup.vue +2 -5
- package/dist/runtime/components/Calendar.vue +176 -0
- package/dist/runtime/components/Card.vue +2 -5
- package/dist/runtime/components/Carousel.vue +6 -13
- package/dist/runtime/components/Checkbox.vue +2 -5
- package/dist/runtime/components/Chip.vue +6 -9
- package/dist/runtime/components/Collapsible.vue +2 -5
- package/dist/runtime/components/Drawer.vue +80 -37
- package/dist/runtime/components/Input.vue +10 -13
- package/dist/runtime/components/InputNumber.vue +2 -5
- package/dist/runtime/components/Kbd.vue +2 -6
- package/dist/runtime/components/Link.vue +8 -5
- package/dist/runtime/components/Modal.vue +20 -11
- package/dist/runtime/components/OverlayProvider.vue +29 -0
- package/dist/runtime/components/Pagination.vue +34 -27
- package/dist/runtime/components/PinInput.vue +2 -5
- package/dist/runtime/components/Popover.vue +2 -5
- package/dist/runtime/components/Progress.vue +2 -5
- package/dist/runtime/components/RadioGroup.vue +6 -7
- package/dist/runtime/components/ScrollArea.vue +2 -6
- package/dist/runtime/components/Select.vue +10 -13
- package/dist/runtime/components/Separator.vue +2 -6
- package/dist/runtime/components/Skeleton.vue +2 -5
- package/dist/runtime/components/Slider.vue +2 -5
- package/dist/runtime/components/Switch.vue +6 -5
- package/dist/runtime/components/Table.vue +2 -5
- package/dist/runtime/components/Tabs.vue +2 -5
- package/dist/runtime/components/Textarea.vue +2 -5
- package/dist/runtime/components/Toast.vue +7 -11
- package/dist/runtime/components/{Toaster.vue → ToastProvider.vue} +18 -16
- package/dist/runtime/components/Tooltip.vue +2 -5
- 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 +9 -3
- package/dist/runtime/composables/useToast.d.ts +4 -20
- package/dist/runtime/composables/useToast.js +6 -5
- package/dist/runtime/index.d.ts +3 -2
- package/dist/runtime/index.js +3 -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/avatar.js +2 -2
- package/dist/runtime/theme/breadcrumb.js +5 -5
- 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.js +3 -3
- package/dist/runtime/theme/drawer.d.ts +24 -21
- package/dist/runtime/theme/drawer.js +46 -19
- package/dist/runtime/theme/index.d.ts +2 -1
- package/dist/runtime/theme/index.js +2 -1
- package/dist/runtime/theme/input-number.js +1 -1
- package/dist/runtime/theme/input.js +14 -14
- 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.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.js +13 -13
- 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.js +20 -20
- 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.js +7 -7
- package/dist/runtime/theme/tabs.js +10 -10
- package/dist/runtime/theme/textarea.js +13 -13
- package/dist/runtime/theme/toast.js +5 -5
- package/dist/runtime/theme/tooltip.js +1 -1
- package/dist/runtime/types/components.d.ts +3 -1
- package/dist/runtime/types/locale.d.ts +6 -0
- package/dist/runtime/types/utils.d.ts +4 -2
- package/dist/shared/ui.1a1f119c.mjs +5 -0
- package/dist/shared/ui.1a1f119c.mjs.map +1 -0
- package/dist/unocss.mjs +19 -14
- package/dist/unocss.mjs.map +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +9 -9
- 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.d.ts → toast-provider.d.ts} +0 -0
- /package/dist/runtime/theme/{toaster.js → toast-provider.js} +0 -0
|
@@ -6,19 +6,19 @@ export default ct(
|
|
|
6
6
|
root: "relative min-w-0",
|
|
7
7
|
list: "flex items-center gap-1.5",
|
|
8
8
|
item: "flex min-w-0",
|
|
9
|
-
link: "group relative flex items-center gap-1.5 text-sm min-w-0 focus-visible:outline-ui-
|
|
9
|
+
link: "group relative flex items-center gap-1.5 text-sm min-w-0 focus-visible:outline-ui-primary",
|
|
10
10
|
linkLeadingIcon: "shrink-0 size-5",
|
|
11
11
|
linkLabel: "truncate",
|
|
12
12
|
separator: "flex",
|
|
13
|
-
separatorIcon: "shrink-0 size-5 color-ui-
|
|
13
|
+
separatorIcon: "shrink-0 size-5 color-ui-base/60"
|
|
14
14
|
},
|
|
15
15
|
variants: {
|
|
16
16
|
active: {
|
|
17
17
|
true: {
|
|
18
|
-
link: "
|
|
18
|
+
link: "color-ui-primary font-semibold"
|
|
19
19
|
},
|
|
20
20
|
false: {
|
|
21
|
-
link: "color-ui-
|
|
21
|
+
link: "color-ui-base/60 font-medium"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
disabled: {
|
|
@@ -36,7 +36,7 @@ export default ct(
|
|
|
36
36
|
active: false,
|
|
37
37
|
to: true,
|
|
38
38
|
class: {
|
|
39
|
-
link: "hover:color-ui-
|
|
39
|
+
link: "hover:color-ui-base/80 transition-colors"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
]
|
|
@@ -6,7 +6,7 @@ export default ct(
|
|
|
6
6
|
slots: {
|
|
7
7
|
base: [
|
|
8
8
|
"relative inline-flex items-center rounded-ui-button leading-normal transition-colors",
|
|
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
|
"disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:opacity-50"
|
|
11
11
|
],
|
|
12
12
|
label: "color-inherit",
|
|
@@ -26,26 +26,26 @@ export default ct(
|
|
|
26
26
|
},
|
|
27
27
|
"outline": {
|
|
28
28
|
base: [
|
|
29
|
-
"color-ui-fill/80 bg-ui-
|
|
29
|
+
"color-ui-fill/80 bg-ui-base ring ring-inset ring-ui-fill/30",
|
|
30
30
|
"hover:bg-soft-ui-fill/5 active:bg-soft-ui-fill/10",
|
|
31
|
-
"disabled:bg-ui-
|
|
32
|
-
"hover:disabled:bg-ui-
|
|
31
|
+
"disabled:bg-ui-base aria-disabled:bg-ui-base",
|
|
32
|
+
"hover:disabled:bg-ui-base hover:aria-disabled:bg-ui-base"
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"soft": {
|
|
36
36
|
base: [
|
|
37
|
-
"color-ui-
|
|
38
|
-
"hover:bg-soft-ui-fill/10 hover:color-ui-
|
|
39
|
-
"disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-
|
|
40
|
-
"hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-
|
|
37
|
+
"color-ui-fill/80 bg-soft-ui-fill/15",
|
|
38
|
+
"hover:bg-soft-ui-fill/10 hover:color-ui-fill/80 active:bg-soft-ui-fill/25 active:color-ui-fill/90",
|
|
39
|
+
"disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80",
|
|
40
|
+
"hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-fill/80 hover:aria-disabled:color-ui-fill/80"
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"soft-outline": {
|
|
44
44
|
base: [
|
|
45
|
-
"color-ui-
|
|
46
|
-
"hover:bg-soft-ui-fill/10 hover:color-ui-
|
|
47
|
-
"disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-
|
|
48
|
-
"hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-
|
|
45
|
+
"color-ui-fill/80 bg-soft-ui-fill/15 ring ring-inset ring-ui-fill/30",
|
|
46
|
+
"hover:bg-soft-ui-fill/10 hover:color-ui-fill/80 active:bg-soft-ui-fill/25 active:color-ui-fill/90",
|
|
47
|
+
"disabled:bg-soft-ui-fill/15 aria-disabled:bg-soft-ui-fill/15 disabled:color-ui-fill/80 aria-disabled:color-ui-fill/80",
|
|
48
|
+
"hover:disabled:bg-soft-ui-fill/15 hover:aria-disabled:bg-soft-ui-fill/15 hover:disabled:color-ui-fill/80 hover:aria-disabled:color-ui-fill/80"
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"ghost": {
|
|
@@ -128,7 +128,7 @@ export default ct(
|
|
|
128
128
|
active: true,
|
|
129
129
|
variant: ["soft", "soft-outline"],
|
|
130
130
|
class: {
|
|
131
|
-
base: "color-ui-
|
|
131
|
+
base: "color-ui-fill/90 bg-soft-ui-fill/25 hover:color-ui-fill/90 hover:bg-soft-ui-fill/25"
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
{
|
|
@@ -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: boolean;
|
|
47
|
+
disabled: boolean;
|
|
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: {
|
|
@@ -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,31 +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
|
-
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
transition: {
|
|
30
|
+
true: {
|
|
31
|
+
overlay: string;
|
|
31
32
|
};
|
|
32
33
|
};
|
|
33
34
|
inset: {
|
|
@@ -40,19 +41,20 @@ declare const _default: {
|
|
|
40
41
|
direction: {
|
|
41
42
|
top: {
|
|
42
43
|
content: string;
|
|
43
|
-
handle: string;
|
|
44
44
|
};
|
|
45
45
|
bottom: {
|
|
46
46
|
content: string;
|
|
47
|
-
handle: string;
|
|
48
47
|
};
|
|
49
48
|
left: {
|
|
50
49
|
content: string;
|
|
51
|
-
handle: string;
|
|
52
50
|
};
|
|
53
51
|
right: {
|
|
54
52
|
content: string;
|
|
55
|
-
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
transition: {
|
|
56
|
+
true: {
|
|
57
|
+
overlay: string;
|
|
56
58
|
};
|
|
57
59
|
};
|
|
58
60
|
inset: {
|
|
@@ -63,31 +65,32 @@ declare const _default: {
|
|
|
63
65
|
}, {
|
|
64
66
|
overlay: string;
|
|
65
67
|
content: string;
|
|
66
|
-
handle: string;
|
|
67
68
|
container: string;
|
|
68
69
|
header: string;
|
|
69
|
-
title: string;
|
|
70
|
-
description: string;
|
|
71
70
|
body: string;
|
|
72
71
|
footer: string;
|
|
72
|
+
title: string;
|
|
73
|
+
description: string;
|
|
74
|
+
close: string;
|
|
73
75
|
}, undefined>;
|
|
74
76
|
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
75
77
|
direction: {
|
|
76
78
|
top: {
|
|
77
79
|
content: string;
|
|
78
|
-
handle: string;
|
|
79
80
|
};
|
|
80
81
|
bottom: {
|
|
81
82
|
content: string;
|
|
82
|
-
handle: string;
|
|
83
83
|
};
|
|
84
84
|
left: {
|
|
85
85
|
content: string;
|
|
86
|
-
handle: string;
|
|
87
86
|
};
|
|
88
87
|
right: {
|
|
89
88
|
content: string;
|
|
90
|
-
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
transition: {
|
|
92
|
+
true: {
|
|
93
|
+
overlay: string;
|
|
91
94
|
};
|
|
92
95
|
};
|
|
93
96
|
inset: {
|
|
@@ -98,13 +101,13 @@ declare const _default: {
|
|
|
98
101
|
}, {
|
|
99
102
|
overlay: string;
|
|
100
103
|
content: string;
|
|
101
|
-
handle: string;
|
|
102
104
|
container: string;
|
|
103
105
|
header: string;
|
|
104
|
-
title: string;
|
|
105
|
-
description: string;
|
|
106
106
|
body: string;
|
|
107
107
|
footer: string;
|
|
108
|
+
title: string;
|
|
109
|
+
description: string;
|
|
110
|
+
close: string;
|
|
108
111
|
}>;
|
|
109
112
|
};
|
|
110
113
|
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
|
}
|
|
@@ -7,6 +7,7 @@ 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';
|
|
@@ -33,5 +34,5 @@ export { default as table } from './table.js';
|
|
|
33
34
|
export { default as tabs } from './tabs.js';
|
|
34
35
|
export { default as textarea } from './textarea.js';
|
|
35
36
|
export { default as toast } from './toast.js';
|
|
36
|
-
export { default as
|
|
37
|
+
export { default as toastProvider } from './toast-provider.js';
|
|
37
38
|
export { default as tooltip } from './tooltip.js';
|
|
@@ -7,6 +7,7 @@ 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";
|
|
@@ -33,5 +34,5 @@ export { default as table } from "./table.js";
|
|
|
33
34
|
export { default as tabs } from "./tabs.js";
|
|
34
35
|
export { default as textarea } from "./textarea.js";
|
|
35
36
|
export { default as toast } from "./toast.js";
|
|
36
|
-
export { default as
|
|
37
|
+
export { default as toastProvider } from "./toast-provider.js";
|
|
37
38
|
export { default as tooltip } from "./tooltip.js";
|
|
@@ -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
|
],
|
|
@@ -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,7 +118,7 @@ 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"
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
{
|
|
@@ -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
|
};
|