@byyuurin/ui 0.0.7 → 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 +8 -7
- package/dist/module.mjs.map +1 -1
- package/dist/runtime/app/injections.d.ts +11 -0
- package/dist/runtime/app/injections.js +26 -0
- package/dist/runtime/components/Accordion.vue +28 -26
- package/dist/runtime/components/Alert.vue +27 -23
- package/dist/runtime/components/App.vue +21 -26
- package/dist/runtime/components/Avatar.vue +70 -0
- package/dist/runtime/components/AvatarGroup.vue +87 -0
- package/dist/runtime/components/Badge.vue +17 -15
- package/dist/runtime/components/Breadcrumb.vue +108 -0
- package/dist/runtime/components/Button.vue +15 -16
- package/dist/runtime/components/ButtonGroup.vue +14 -15
- package/dist/runtime/components/Calendar.vue +176 -0
- package/dist/runtime/components/Card.vue +9 -7
- package/dist/runtime/components/Carousel.vue +22 -22
- package/dist/runtime/components/Checkbox.vue +15 -14
- package/dist/runtime/components/Chip.vue +23 -21
- package/dist/runtime/components/Collapsible.vue +5 -8
- package/dist/runtime/components/Drawer.vue +91 -49
- package/dist/runtime/components/Input.vue +33 -36
- package/dist/runtime/components/InputNumber.vue +9 -10
- package/dist/runtime/components/Kbd.vue +47 -0
- package/dist/runtime/components/Link.vue +15 -12
- package/dist/runtime/components/LinkBase.vue +1 -1
- package/dist/runtime/components/Modal.vue +31 -19
- package/dist/runtime/components/OverlayProvider.vue +29 -0
- package/dist/runtime/components/Pagination.vue +60 -53
- package/dist/runtime/components/PinInput.vue +9 -12
- package/dist/runtime/components/Popover.vue +9 -12
- package/dist/runtime/components/Progress.vue +162 -0
- package/dist/runtime/components/RadioGroup.vue +38 -35
- package/dist/runtime/components/ScrollArea.vue +2 -6
- package/dist/runtime/components/Select.vue +48 -51
- package/dist/runtime/components/Separator.vue +2 -6
- package/dist/runtime/components/Skeleton.vue +30 -0
- package/dist/runtime/components/Slider.vue +8 -11
- package/dist/runtime/components/Switch.vue +17 -17
- package/dist/runtime/components/Table.vue +21 -16
- package/dist/runtime/components/Tabs.vue +24 -23
- package/dist/runtime/components/Textarea.vue +13 -16
- package/dist/runtime/components/Toast.vue +21 -24
- package/dist/runtime/components/{Toaster.vue → ToastProvider.vue} +22 -20
- package/dist/runtime/components/Tooltip.vue +9 -12
- package/dist/runtime/composables/useAvatarGroup.d.ts +4 -0
- package/dist/runtime/composables/useAvatarGroup.js +8 -0
- package/dist/runtime/composables/useButtonGroup.d.ts +4 -12
- package/dist/runtime/composables/useButtonGroup.js +1 -6
- package/dist/runtime/composables/useComponentIcons.d.ts +9 -9
- package/dist/runtime/composables/useComponentIcons.js +11 -11
- package/dist/runtime/composables/useKbd.d.ts +35 -0
- package/dist/runtime/composables/useKbd.js +49 -0
- package/dist/runtime/composables/useLocale.d.ts +8 -0
- package/dist/runtime/composables/useLocale.js +22 -0
- 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 -6
- package/dist/runtime/composables/useTheme.js +11 -15
- package/dist/runtime/composables/useToast.d.ts +4 -20
- package/dist/runtime/composables/useToast.js +6 -5
- package/dist/runtime/index.d.ts +9 -2
- package/dist/runtime/index.js +9 -2
- package/dist/runtime/locale/en.d.ts +2 -0
- package/dist/runtime/locale/en.js +34 -0
- package/dist/runtime/locale/index.d.ts +2 -0
- package/dist/runtime/locale/index.js +2 -0
- package/dist/runtime/locale/zh-tw.d.ts +2 -0
- package/dist/runtime/locale/zh-tw.js +34 -0
- package/dist/runtime/theme/accordion.d.ts +6 -6
- package/dist/runtime/theme/accordion.js +5 -5
- package/dist/runtime/theme/alert.js +3 -3
- package/dist/runtime/theme/app.d.ts +6 -6
- package/dist/runtime/theme/app.js +7 -7
- package/dist/runtime/theme/avatar-group.d.ts +52 -0
- package/dist/runtime/theme/avatar-group.js +32 -0
- package/dist/runtime/theme/avatar.d.ts +56 -0
- package/dist/runtime/theme/avatar.js +34 -0
- package/dist/runtime/theme/breadcrumb.d.ts +67 -0
- package/dist/runtime/theme/breadcrumb.js +44 -0
- package/dist/runtime/theme/button.d.ts +8 -8
- package/dist/runtime/theme/button.js +22 -22
- 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 +4 -4
- package/dist/runtime/theme/chip.js +5 -5
- package/dist/runtime/theme/drawer.d.ts +24 -21
- package/dist/runtime/theme/drawer.js +47 -20
- package/dist/runtime/theme/index.d.ts +8 -1
- package/dist/runtime/theme/index.js +8 -1
- package/dist/runtime/theme/input-number.d.ts +6 -0
- package/dist/runtime/theme/input-number.js +6 -3
- package/dist/runtime/theme/input.d.ts +12 -12
- package/dist/runtime/theme/input.js +26 -26
- package/dist/runtime/theme/kbd.d.ts +39 -0
- package/dist/runtime/theme/kbd.js +26 -0
- package/dist/runtime/theme/link.d.ts +1 -1
- package/dist/runtime/theme/link.js +3 -3
- package/dist/runtime/theme/modal.js +5 -5
- 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/popover.js +1 -1
- package/dist/runtime/theme/progress.d.ts +122 -0
- package/dist/runtime/theme/progress.js +95 -0
- 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 +18 -18
- package/dist/runtime/theme/select.js +34 -34
- package/dist/runtime/theme/separator.js +1 -1
- package/dist/runtime/theme/skeleton.d.ts +8 -0
- package/dist/runtime/theme/skeleton.js +7 -0
- package/dist/runtime/theme/slider.js +1 -1
- package/dist/runtime/theme/switch.js +6 -6
- package/dist/runtime/theme/table.js +7 -7
- package/dist/runtime/theme/tabs.d.ts +2 -2
- package/dist/runtime/theme/tabs.js +11 -11
- package/dist/runtime/theme/textarea.js +13 -13
- package/dist/runtime/theme/toast.js +6 -6
- package/dist/runtime/theme/tooltip.js +1 -1
- package/dist/runtime/types/components.d.ts +9 -1
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/locale.d.ts +29 -0
- package/dist/runtime/types/locale.js +0 -0
- package/dist/runtime/types/utils.d.ts +5 -3
- package/dist/runtime/utils/index.d.ts +6 -1
- package/dist/runtime/utils/index.js +6 -4
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/runtime/utils/translator.d.ts +18 -0
- package/dist/runtime/utils/translator.js +8 -0
- 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 +3 -12
- package/dist/unplugin.mjs.map +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +30 -19
- package/dist/runtime/components/ModalProvider.vue +0 -10
- package/dist/runtime/composables/useModal.d.ts +0 -15
- package/dist/runtime/composables/useModal.js +0 -52
- package/dist/shared/ui.d1728164.mjs +0 -4
- package/dist/shared/ui.d1728164.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
- /package/dist/runtime/{composables/defineInjection.d.ts → utils/vue.d.ts} +0 -0
- /package/dist/runtime/{composables/defineInjection.js → utils/vue.js} +0 -0
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface Toast extends Omit<ToastProps, 'defaultOpen'> {
|
|
3
|
-
id: string | number;
|
|
4
|
-
onClick?: (toast: Toast) => void;
|
|
5
|
-
}
|
|
1
|
+
import type { ToastState } from '../types/index.js';
|
|
6
2
|
export declare const useToast: () => {
|
|
7
|
-
toasts: import("vue").Ref<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
[x: symbol]: ToastProps;
|
|
11
|
-
id: string | number;
|
|
12
|
-
onClick?: ((toast: Toast) => void) | undefined;
|
|
13
|
-
}[], Toast[] | {
|
|
14
|
-
[x: string]: any;
|
|
15
|
-
[x: number]: any;
|
|
16
|
-
[x: symbol]: ToastProps;
|
|
17
|
-
id: string | number;
|
|
18
|
-
onClick?: ((toast: Toast) => void) | undefined;
|
|
19
|
-
}[]>;
|
|
20
|
-
add: (toast: Partial<Toast>) => Toast;
|
|
21
|
-
update: (id: string | number, toast: Partial<Omit<Toast, "id">>) => void;
|
|
3
|
+
toasts: import("vue").Ref<ToastState[], ToastState[]>;
|
|
4
|
+
add: (toast: Partial<ToastState>) => ToastState;
|
|
5
|
+
update: (id: string | number, toast: Partial<Omit<ToastState, "id">>) => void;
|
|
22
6
|
remove: (id: string | number) => void;
|
|
23
7
|
clear: () => void;
|
|
24
8
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { createSharedComposable } from "@vueuse/core";
|
|
2
2
|
import { nextTick, ref } from "vue";
|
|
3
|
+
import { useState } from "#imports";
|
|
3
4
|
export const useToast = createSharedComposable(() => {
|
|
4
|
-
const toasts =
|
|
5
|
+
const toasts = useState("toasts", () => []);
|
|
5
6
|
const running = ref(false);
|
|
6
7
|
const maxToasts = 5;
|
|
7
8
|
const queue = [];
|
|
8
|
-
const generateId = () =>
|
|
9
|
+
const generateId = () => `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
9
10
|
async function processQueue() {
|
|
10
11
|
if (running.value || queue.length === 0)
|
|
11
12
|
return;
|
|
@@ -28,7 +29,7 @@ export const useToast = createSharedComposable(() => {
|
|
|
28
29
|
return body;
|
|
29
30
|
}
|
|
30
31
|
function update(id, toast) {
|
|
31
|
-
const index = toasts.value.findIndex((
|
|
32
|
+
const index = toasts.value.findIndex((toast2) => toast2.id === id);
|
|
32
33
|
if (index === -1)
|
|
33
34
|
return;
|
|
34
35
|
toasts.value[index] = {
|
|
@@ -37,7 +38,7 @@ export const useToast = createSharedComposable(() => {
|
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
function remove(id) {
|
|
40
|
-
const index = toasts.value.findIndex((
|
|
41
|
+
const index = toasts.value.findIndex((toast) => toast.id === id);
|
|
41
42
|
if (index === -1)
|
|
42
43
|
return;
|
|
43
44
|
toasts.value[index] = {
|
|
@@ -45,7 +46,7 @@ export const useToast = createSharedComposable(() => {
|
|
|
45
46
|
open: false
|
|
46
47
|
};
|
|
47
48
|
setTimeout(() => {
|
|
48
|
-
toasts.value = toasts.value.filter((
|
|
49
|
+
toasts.value = toasts.value.filter((toast) => toast.id !== id);
|
|
49
50
|
}, 200);
|
|
50
51
|
}
|
|
51
52
|
function clear() {
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export { default as Accordion } from './components/Accordion.vue.js';
|
|
2
2
|
export { default as Alert } from './components/Alert.vue.js';
|
|
3
3
|
export { default as App } from './components/App.vue.js';
|
|
4
|
+
export { default as Avatar } from './components/Avatar.vue.js';
|
|
5
|
+
export { default as AvatarGroup } from './components/AvatarGroup.vue.js';
|
|
4
6
|
export { default as Badge } from './components/Badge.vue.js';
|
|
7
|
+
export { default as Breadcrumb } from './components/Breadcrumb.vue.js';
|
|
5
8
|
export { default as Button } from './components/Button.vue.js';
|
|
6
9
|
export { default as ButtonGroup } from './components/ButtonGroup.vue.js';
|
|
10
|
+
export { default as Calendar } from './components/Calendar.vue.js';
|
|
7
11
|
export { default as Card } from './components/Card.vue.js';
|
|
8
12
|
export { default as Carousel } from './components/Carousel.vue.js';
|
|
9
13
|
export { default as Checkbox } from './components/Checkbox.vue.js';
|
|
@@ -12,23 +16,26 @@ export { default as Collapsible } from './components/Collapsible.vue.js';
|
|
|
12
16
|
export { default as Drawer } from './components/Drawer.vue.js';
|
|
13
17
|
export { default as Input } from './components/Input.vue.js';
|
|
14
18
|
export { default as InputNumber } from './components/InputNumber.vue.js';
|
|
19
|
+
export { default as Kbd } from './components/Kbd.vue.js';
|
|
15
20
|
export { default as Link } from './components/Link.vue.js';
|
|
16
21
|
export { default as LinkBase } from './components/LinkBase.vue.js';
|
|
17
22
|
export { default as Modal } from './components/Modal.vue.js';
|
|
18
|
-
export { default as
|
|
23
|
+
export { default as OverlayProvider } from './components/OverlayProvider.vue.js';
|
|
19
24
|
export { default as Pagination } from './components/Pagination.vue.js';
|
|
20
25
|
export { default as PinInput } from './components/PinInput.vue.js';
|
|
21
26
|
export { default as Popover } from './components/Popover.vue.js';
|
|
27
|
+
export { default as Progress } from './components/Progress.vue.js';
|
|
22
28
|
export { default as RadioGroup } from './components/RadioGroup.vue.js';
|
|
23
29
|
export { default as ScrollArea } from './components/ScrollArea.vue.js';
|
|
24
30
|
export { default as Select } from './components/Select.vue.js';
|
|
25
31
|
export { default as Separator } from './components/Separator.vue.js';
|
|
32
|
+
export { default as Skeleton } from './components/Skeleton.vue.js';
|
|
26
33
|
export { default as Slider } from './components/Slider.vue.js';
|
|
27
34
|
export { default as Switch } from './components/Switch.vue.js';
|
|
28
35
|
export { default as Table } from './components/Table.vue.js';
|
|
29
36
|
export { default as Tabs } from './components/Tabs.vue.js';
|
|
30
37
|
export { default as Textarea } from './components/Textarea.vue.js';
|
|
31
38
|
export { default as Toast } from './components/Toast.vue.js';
|
|
32
|
-
export { default as
|
|
39
|
+
export { default as ToastProvider } from './components/ToastProvider.vue.js';
|
|
33
40
|
export { default as Tooltip } from './components/Tooltip.vue.js';
|
|
34
41
|
export * from './types/index.js';
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export { default as Accordion } from "./components/Accordion.vue";
|
|
2
2
|
export { default as Alert } from "./components/Alert.vue";
|
|
3
3
|
export { default as App } from "./components/App.vue";
|
|
4
|
+
export { default as Avatar } from "./components/Avatar.vue";
|
|
5
|
+
export { default as AvatarGroup } from "./components/AvatarGroup.vue";
|
|
4
6
|
export { default as Badge } from "./components/Badge.vue";
|
|
7
|
+
export { default as Breadcrumb } from "./components/Breadcrumb.vue";
|
|
5
8
|
export { default as Button } from "./components/Button.vue";
|
|
6
9
|
export { default as ButtonGroup } from "./components/ButtonGroup.vue";
|
|
10
|
+
export { default as Calendar } from "./components/Calendar.vue";
|
|
7
11
|
export { default as Card } from "./components/Card.vue";
|
|
8
12
|
export { default as Carousel } from "./components/Carousel.vue";
|
|
9
13
|
export { default as Checkbox } from "./components/Checkbox.vue";
|
|
@@ -12,23 +16,26 @@ export { default as Collapsible } from "./components/Collapsible.vue";
|
|
|
12
16
|
export { default as Drawer } from "./components/Drawer.vue";
|
|
13
17
|
export { default as Input } from "./components/Input.vue";
|
|
14
18
|
export { default as InputNumber } from "./components/InputNumber.vue";
|
|
19
|
+
export { default as Kbd } from "./components/Kbd.vue";
|
|
15
20
|
export { default as Link } from "./components/Link.vue";
|
|
16
21
|
export { default as LinkBase } from "./components/LinkBase.vue";
|
|
17
22
|
export { default as Modal } from "./components/Modal.vue";
|
|
18
|
-
export { default as
|
|
23
|
+
export { default as OverlayProvider } from "./components/OverlayProvider.vue";
|
|
19
24
|
export { default as Pagination } from "./components/Pagination.vue";
|
|
20
25
|
export { default as PinInput } from "./components/PinInput.vue";
|
|
21
26
|
export { default as Popover } from "./components/Popover.vue";
|
|
27
|
+
export { default as Progress } from "./components/Progress.vue";
|
|
22
28
|
export { default as RadioGroup } from "./components/RadioGroup.vue";
|
|
23
29
|
export { default as ScrollArea } from "./components/ScrollArea.vue";
|
|
24
30
|
export { default as Select } from "./components/Select.vue";
|
|
25
31
|
export { default as Separator } from "./components/Separator.vue";
|
|
32
|
+
export { default as Skeleton } from "./components/Skeleton.vue";
|
|
26
33
|
export { default as Slider } from "./components/Slider.vue";
|
|
27
34
|
export { default as Switch } from "./components/Switch.vue";
|
|
28
35
|
export { default as Table } from "./components/Table.vue";
|
|
29
36
|
export { default as Tabs } from "./components/Tabs.vue";
|
|
30
37
|
export { default as Textarea } from "./components/Textarea.vue";
|
|
31
38
|
export { default as Toast } from "./components/Toast.vue";
|
|
32
|
-
export { default as
|
|
39
|
+
export { default as ToastProvider } from "./components/ToastProvider.vue";
|
|
33
40
|
export { default as Tooltip } from "./components/Tooltip.vue";
|
|
34
41
|
export * from "./types/index.js";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineLocale } from "../utils/index.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "English",
|
|
4
|
+
code: "en",
|
|
5
|
+
messages: {
|
|
6
|
+
alert: {
|
|
7
|
+
close: "Close"
|
|
8
|
+
},
|
|
9
|
+
calendar: {
|
|
10
|
+
prevYear: "Previous year",
|
|
11
|
+
nextYear: "Next year",
|
|
12
|
+
prevMonth: "Previous month",
|
|
13
|
+
nextMonth: "Next month"
|
|
14
|
+
},
|
|
15
|
+
carousel: {
|
|
16
|
+
prev: "Prev",
|
|
17
|
+
next: "Next",
|
|
18
|
+
goto: "Go to slide {page}"
|
|
19
|
+
},
|
|
20
|
+
inputNumber: {
|
|
21
|
+
increment: "Increment",
|
|
22
|
+
decrement: "Decrement"
|
|
23
|
+
},
|
|
24
|
+
modal: {
|
|
25
|
+
close: "Close"
|
|
26
|
+
},
|
|
27
|
+
table: {
|
|
28
|
+
noData: "No data"
|
|
29
|
+
},
|
|
30
|
+
toast: {
|
|
31
|
+
close: "Close"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineLocale } from "../utils/index.js";
|
|
2
|
+
export default defineLocale({
|
|
3
|
+
name: "\u7E41\u9AD4\u4E2D\u6587",
|
|
4
|
+
code: "zh-TW",
|
|
5
|
+
messages: {
|
|
6
|
+
alert: {
|
|
7
|
+
close: "\u95DC\u9589"
|
|
8
|
+
},
|
|
9
|
+
calendar: {
|
|
10
|
+
prevYear: "\u53BB\u5E74",
|
|
11
|
+
nextYear: "\u660E\u5E74",
|
|
12
|
+
prevMonth: "\u4E0A\u500B\u6708",
|
|
13
|
+
nextMonth: "\u4E0B\u500B\u6708"
|
|
14
|
+
},
|
|
15
|
+
carousel: {
|
|
16
|
+
prev: "\u4E0A\u4E00\u9801",
|
|
17
|
+
next: "\u4E0B\u4E00\u9801",
|
|
18
|
+
goto: "\u8DF3\u8F49\u5230\u7B2C {page} \u9801"
|
|
19
|
+
},
|
|
20
|
+
inputNumber: {
|
|
21
|
+
increment: "\u589E\u52A0",
|
|
22
|
+
decrement: "\u6E1B\u5C11"
|
|
23
|
+
},
|
|
24
|
+
modal: {
|
|
25
|
+
close: "\u95DC\u9589"
|
|
26
|
+
},
|
|
27
|
+
table: {
|
|
28
|
+
noData: "\u6C92\u6709\u8CC7\u6599"
|
|
29
|
+
},
|
|
30
|
+
toast: {
|
|
31
|
+
close: "\u95DC\u9589"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
@@ -7,8 +7,8 @@ declare const _default: {
|
|
|
7
7
|
trigger: string;
|
|
8
8
|
content: string[];
|
|
9
9
|
body: string;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
leadingIcon: string;
|
|
11
|
+
trailingIcon: string;
|
|
12
12
|
label: string;
|
|
13
13
|
};
|
|
14
14
|
variants: {
|
|
@@ -31,8 +31,8 @@ declare const _default: {
|
|
|
31
31
|
trigger: string;
|
|
32
32
|
content: string[];
|
|
33
33
|
body: string;
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
leadingIcon: string;
|
|
35
|
+
trailingIcon: string;
|
|
36
36
|
label: string;
|
|
37
37
|
}, undefined>;
|
|
38
38
|
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
@@ -48,8 +48,8 @@ declare const _default: {
|
|
|
48
48
|
trigger: string;
|
|
49
49
|
content: string[];
|
|
50
50
|
body: string;
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
leadingIcon: string;
|
|
52
|
+
trailingIcon: string;
|
|
53
53
|
label: string;
|
|
54
54
|
}>;
|
|
55
55
|
};
|
|
@@ -3,18 +3,18 @@ export default ct(
|
|
|
3
3
|
/* @unocss-include */
|
|
4
4
|
{
|
|
5
5
|
slots: {
|
|
6
|
-
root: "w-full color-ui-
|
|
6
|
+
root: "w-full color-ui-base",
|
|
7
7
|
item: "border-b last:border-b-0",
|
|
8
8
|
header: "flex",
|
|
9
|
-
trigger: "group flex-1 flex items-center gap-2 font-medium text-sm py-4 outline-none focus-visible:outline-ui-
|
|
9
|
+
trigger: "group flex-1 flex items-center gap-2 font-medium text-sm py-4 outline-none focus-visible:outline-ui-base/80 min-w-0",
|
|
10
10
|
content: [
|
|
11
11
|
"overflow-hidden focus:outline-none",
|
|
12
12
|
"data-[state=open]:animate-[accordion-down_200ms_ease-out]",
|
|
13
13
|
"data-[state=closed]:animate-[accordion-up_200ms_ease-out]"
|
|
14
14
|
],
|
|
15
|
-
body: "text-sm pb-4 color-ui-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
body: "text-sm pb-4 color-ui-base/80",
|
|
16
|
+
leadingIcon: "shrink-0 size-5",
|
|
17
|
+
trailingIcon: "shrink-0 size-5 ms-auto group-data-[state=open]:rotate-180 transition-all duration-200",
|
|
18
18
|
label: "text-start break-words"
|
|
19
19
|
},
|
|
20
20
|
variants: {
|
|
@@ -18,13 +18,13 @@ export default ct(
|
|
|
18
18
|
close: "ui-base-inverted"
|
|
19
19
|
},
|
|
20
20
|
"outline": {
|
|
21
|
-
root: "color-ui-
|
|
21
|
+
root: "color-ui-fill bg-ui-base ring ring-inset ring-ui-fill/30"
|
|
22
22
|
},
|
|
23
23
|
"soft": {
|
|
24
|
-
root: "color-ui-
|
|
24
|
+
root: "color-ui-fill bg-soft-ui-fill/10"
|
|
25
25
|
},
|
|
26
26
|
"soft-outline": {
|
|
27
|
-
root: "color-ui-
|
|
27
|
+
root: "color-ui-fill bg-soft-ui-fill/10 ring ring-inset ring-ui-fill/30"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
orientation: {
|
|
@@ -4,12 +4,12 @@ declare const _default: {
|
|
|
4
4
|
loading: string;
|
|
5
5
|
check: string;
|
|
6
6
|
indeterminate: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
chevronUp: string;
|
|
8
|
+
chevronDown: string;
|
|
9
|
+
chevronLeft: string;
|
|
10
|
+
chevronRight: string;
|
|
11
|
+
chevronDoubleLeft: string;
|
|
12
|
+
chevronDoubleRight: string;
|
|
13
13
|
ellipsis: string;
|
|
14
14
|
plus: string;
|
|
15
15
|
minus: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
/* @unocss-include */
|
|
3
3
|
icons: {
|
|
4
|
-
close: "i-mdi-close
|
|
4
|
+
close: "i-mdi-close",
|
|
5
5
|
loading: "i-mdi-loading",
|
|
6
6
|
check: "i-mdi-check-bold",
|
|
7
7
|
indeterminate: "i-mdi-minus-thick",
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
chevronUp: "i-mdi-chevron-up",
|
|
9
|
+
chevronDown: "i-mdi-chevron-down",
|
|
10
|
+
chevronLeft: "i-mdi-chevron-left",
|
|
11
|
+
chevronRight: "i-mdi-chevron-right",
|
|
12
|
+
chevronDoubleLeft: "i-mdi-chevron-double-left",
|
|
13
|
+
chevronDoubleRight: "i-mdi-chevron-double-right",
|
|
14
14
|
ellipsis: "i-mdi-dots-horizontal",
|
|
15
15
|
plus: "i-mdi-plus",
|
|
16
16
|
minus: "i-mdi-minus"
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
base: string;
|
|
6
|
+
};
|
|
7
|
+
variants: {
|
|
8
|
+
size: {
|
|
9
|
+
xs: {
|
|
10
|
+
base: string;
|
|
11
|
+
};
|
|
12
|
+
sm: {
|
|
13
|
+
base: string;
|
|
14
|
+
};
|
|
15
|
+
md: {
|
|
16
|
+
base: string;
|
|
17
|
+
};
|
|
18
|
+
lg: {
|
|
19
|
+
base: string;
|
|
20
|
+
};
|
|
21
|
+
xl: {
|
|
22
|
+
base: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
27
|
+
size: {
|
|
28
|
+
xs: {
|
|
29
|
+
base: string;
|
|
30
|
+
};
|
|
31
|
+
sm: {
|
|
32
|
+
base: string;
|
|
33
|
+
};
|
|
34
|
+
md: {
|
|
35
|
+
base: string;
|
|
36
|
+
};
|
|
37
|
+
lg: {
|
|
38
|
+
base: string;
|
|
39
|
+
};
|
|
40
|
+
xl: {
|
|
41
|
+
base: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
root: string;
|
|
46
|
+
base: string;
|
|
47
|
+
}, undefined>;
|
|
48
|
+
defaultVariants: {
|
|
49
|
+
size: "md";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "inline-flex flex-row-reverse justify-end",
|
|
7
|
+
base: "relative rounded-full ring-ui-cx first:me-0"
|
|
8
|
+
},
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
xs: {
|
|
12
|
+
base: "ring-1 -me-0.125em"
|
|
13
|
+
},
|
|
14
|
+
sm: {
|
|
15
|
+
base: "ring-2 -me-0.125em"
|
|
16
|
+
},
|
|
17
|
+
md: {
|
|
18
|
+
base: "ring-2 -me-0.25em"
|
|
19
|
+
},
|
|
20
|
+
lg: {
|
|
21
|
+
base: "ring-3 -me-0.5em"
|
|
22
|
+
},
|
|
23
|
+
xl: {
|
|
24
|
+
base: "ring-3 -me-0.5em"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
defaultVariants: {
|
|
29
|
+
size: "md"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
image: string;
|
|
6
|
+
fallback: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
};
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
xs: {
|
|
12
|
+
root: string;
|
|
13
|
+
};
|
|
14
|
+
sm: {
|
|
15
|
+
root: string;
|
|
16
|
+
};
|
|
17
|
+
md: {
|
|
18
|
+
root: string;
|
|
19
|
+
};
|
|
20
|
+
lg: {
|
|
21
|
+
root: string;
|
|
22
|
+
};
|
|
23
|
+
xl: {
|
|
24
|
+
root: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
29
|
+
size: {
|
|
30
|
+
xs: {
|
|
31
|
+
root: string;
|
|
32
|
+
};
|
|
33
|
+
sm: {
|
|
34
|
+
root: string;
|
|
35
|
+
};
|
|
36
|
+
md: {
|
|
37
|
+
root: string;
|
|
38
|
+
};
|
|
39
|
+
lg: {
|
|
40
|
+
root: string;
|
|
41
|
+
};
|
|
42
|
+
xl: {
|
|
43
|
+
root: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
root: string;
|
|
48
|
+
image: string;
|
|
49
|
+
fallback: string;
|
|
50
|
+
icon: string;
|
|
51
|
+
}, undefined>;
|
|
52
|
+
defaultVariants: {
|
|
53
|
+
size: "md";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
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: "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-soft-ui-cb/10",
|
|
7
|
+
image: "size-full rounded-inherit object-cover",
|
|
8
|
+
fallback: "leading-none color-ui-base/60 truncate",
|
|
9
|
+
icon: "size-3/4 color-ui-base/60 shrink-0"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
xs: {
|
|
14
|
+
root: "text-xs size-1.4em"
|
|
15
|
+
},
|
|
16
|
+
sm: {
|
|
17
|
+
root: "text-sm size-1.6em"
|
|
18
|
+
},
|
|
19
|
+
md: {
|
|
20
|
+
root: "text-base size-2em"
|
|
21
|
+
},
|
|
22
|
+
lg: {
|
|
23
|
+
root: "text-lg size-2.4em"
|
|
24
|
+
},
|
|
25
|
+
xl: {
|
|
26
|
+
root: "text-xl size-3em"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
size: "md"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: undefined;
|
|
3
|
+
slots: {
|
|
4
|
+
root: string;
|
|
5
|
+
list: string;
|
|
6
|
+
item: string;
|
|
7
|
+
link: string;
|
|
8
|
+
linkLeadingIcon: string;
|
|
9
|
+
linkLabel: string;
|
|
10
|
+
separator: string;
|
|
11
|
+
separatorIcon: string;
|
|
12
|
+
};
|
|
13
|
+
variants: {
|
|
14
|
+
active: {
|
|
15
|
+
true: {
|
|
16
|
+
link: string;
|
|
17
|
+
};
|
|
18
|
+
false: {
|
|
19
|
+
link: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
disabled: {
|
|
23
|
+
true: {
|
|
24
|
+
link: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
to: {
|
|
28
|
+
true: "";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
compoundVariants: {
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
active: boolean;
|
|
34
|
+
to: boolean;
|
|
35
|
+
class: {
|
|
36
|
+
link: string;
|
|
37
|
+
};
|
|
38
|
+
}[];
|
|
39
|
+
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{
|
|
40
|
+
active: {
|
|
41
|
+
true: {
|
|
42
|
+
link: string;
|
|
43
|
+
};
|
|
44
|
+
false: {
|
|
45
|
+
link: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
disabled: {
|
|
49
|
+
true: {
|
|
50
|
+
link: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
to: {
|
|
54
|
+
true: "";
|
|
55
|
+
};
|
|
56
|
+
}, {
|
|
57
|
+
root: string;
|
|
58
|
+
list: string;
|
|
59
|
+
item: string;
|
|
60
|
+
link: string;
|
|
61
|
+
linkLeadingIcon: string;
|
|
62
|
+
linkLabel: string;
|
|
63
|
+
separator: string;
|
|
64
|
+
separatorIcon: string;
|
|
65
|
+
}>;
|
|
66
|
+
};
|
|
67
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
+
export default ct(
|
|
3
|
+
/* @unocss-include */
|
|
4
|
+
{
|
|
5
|
+
slots: {
|
|
6
|
+
root: "relative min-w-0",
|
|
7
|
+
list: "flex items-center gap-1.5",
|
|
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-primary",
|
|
10
|
+
linkLeadingIcon: "shrink-0 size-5",
|
|
11
|
+
linkLabel: "truncate",
|
|
12
|
+
separator: "flex",
|
|
13
|
+
separatorIcon: "shrink-0 size-5 color-ui-base/60"
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
active: {
|
|
17
|
+
true: {
|
|
18
|
+
link: "color-ui-primary font-semibold"
|
|
19
|
+
},
|
|
20
|
+
false: {
|
|
21
|
+
link: "color-ui-base/60 font-medium"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
disabled: {
|
|
25
|
+
true: {
|
|
26
|
+
link: "cursor-not-allowed opacity-50"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
to: {
|
|
30
|
+
true: ""
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
compoundVariants: [
|
|
34
|
+
{
|
|
35
|
+
disabled: false,
|
|
36
|
+
active: false,
|
|
37
|
+
to: true,
|
|
38
|
+
class: {
|
|
39
|
+
link: "hover:color-ui-base/80 transition-colors"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
);
|