@una-ui/nuxt 0.61.0 → 1.0.0-alpha.2
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.d.mts +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +5 -3
- package/dist/runtime/components/alert/Alert.vue +94 -0
- package/dist/runtime/components/alert/Alert.vue.d.ts +32 -0
- package/dist/runtime/components/alert/AlertClose.vue +58 -0
- package/dist/runtime/components/alert/AlertClose.vue.d.ts +18 -0
- package/dist/runtime/components/alert/AlertDescription.vue +22 -0
- package/dist/runtime/components/alert/AlertDescription.vue.d.ts +15 -0
- package/dist/runtime/components/alert/AlertTitle.vue +22 -0
- package/dist/runtime/components/alert/AlertTitle.vue.d.ts +15 -0
- package/dist/runtime/components/alert-dialog/AlertDialog.vue +2 -2
- package/dist/runtime/components/alert-dialog/AlertDialog.vue.d.ts +1 -0
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogContent.vue +2 -2
- package/dist/runtime/components/alert-dialog/AlertDialogContent.vue.d.ts +1 -0
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/Combobox.vue +2 -1
- package/dist/runtime/components/combobox/ComboboxTrigger.vue +1 -1
- package/dist/runtime/components/elements/Button.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Skeleton.vue +1 -1
- package/dist/runtime/components/elements/Skeleton.vue.d.ts +3 -1
- package/dist/runtime/components/elements/avatar/Avatar.vue +17 -15
- package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +6 -4
- package/dist/runtime/components/elements/card/Card.vue +15 -4
- package/dist/runtime/components/elements/card/Card.vue.d.ts +6 -4
- package/dist/runtime/components/elements/card/CardAction.vue +19 -0
- package/dist/runtime/components/elements/card/CardAction.vue.d.ts +13 -0
- package/dist/runtime/components/elements/card/CardContent.vue +1 -0
- package/dist/runtime/components/elements/card/CardDescription.vue +1 -0
- package/dist/runtime/components/elements/card/CardFooter.vue +1 -0
- package/dist/runtime/components/elements/card/CardHeader.vue +1 -0
- package/dist/runtime/components/elements/card/CardTitle.vue +1 -0
- package/dist/runtime/components/elements/dialog/Dialog.vue +73 -62
- package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +12 -9
- package/dist/runtime/components/elements/dialog/DialogClose.vue +1 -0
- package/dist/runtime/components/elements/dialog/DialogClose.vue.d.ts +1 -1
- package/dist/runtime/components/elements/dialog/DialogContent.vue +3 -2
- package/dist/runtime/components/elements/dialog/DialogContent.vue.d.ts +1 -0
- package/dist/runtime/components/elements/dialog/DialogDescription.vue +1 -0
- package/dist/runtime/components/elements/dialog/DialogFooter.vue +1 -0
- package/dist/runtime/components/elements/dialog/DialogHeader.vue +1 -0
- package/dist/runtime/components/elements/dialog/DialogOverlay.vue +1 -0
- package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +2 -2
- package/dist/runtime/components/elements/dialog/DialogScrollContent.vue.d.ts +1 -0
- package/dist/runtime/components/elements/dialog/DialogTitle.vue +1 -0
- package/dist/runtime/components/elements/dialog/DialogTrigger.vue +16 -0
- package/dist/runtime/components/elements/dialog/DialogTrigger.vue.d.ts +13 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/PaginationFirst.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/PaginationLast.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/PaginationNext.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/PaginationPrev.vue.d.ts +1 -1
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue +2 -2
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +1 -0
- package/dist/runtime/components/forms/Checkbox.vue +2 -2
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +2 -0
- package/dist/runtime/components/forms/FormGroup.vue +1 -1
- package/dist/runtime/components/forms/Input.vue.d.ts +6 -6
- package/dist/runtime/components/forms/Slider.vue +12 -11
- package/dist/runtime/components/forms/Slider.vue.d.ts +1 -0
- package/dist/runtime/components/forms/form/FormField.vue +1 -1
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +1 -1
- package/dist/runtime/components/forms/select/SelectTrigger.vue +1 -1
- package/dist/runtime/components/misc/ThemeSwitcher.vue +101 -32
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbPage.vue +1 -1
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue.d.ts +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/number-field/NumberField.vue.d.ts +1 -1
- package/dist/runtime/components/number-field/NumberFieldDecrement.vue.d.ts +1 -1
- package/dist/runtime/components/number-field/NumberFieldIncrement.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +1 -1
- package/dist/runtime/components/scroll-area/ScrollArea.vue.d.ts +1 -1
- package/dist/runtime/components/sheet/Sheet.vue +11 -5
- package/dist/runtime/components/sheet/Sheet.vue.d.ts +7 -4
- package/dist/runtime/components/sheet/SheetClose.vue +1 -0
- package/dist/runtime/components/sheet/SheetContent.vue +6 -5
- package/dist/runtime/components/sheet/SheetContent.vue.d.ts +4 -2
- package/dist/runtime/components/sheet/SheetDescription.vue +1 -0
- package/dist/runtime/components/sheet/SheetFooter.vue +1 -0
- package/dist/runtime/components/sheet/SheetHeader.vue +1 -0
- package/dist/runtime/components/sheet/SheetOverlay.vue +23 -0
- package/dist/runtime/components/sheet/SheetOverlay.vue.d.ts +12 -0
- package/dist/runtime/components/sheet/SheetTitle.vue +1 -0
- package/dist/runtime/components/sheet/SheetTrigger.vue +4 -1
- package/dist/runtime/components/sidebar/Sidebar.vue +8 -3
- package/dist/runtime/components/sidebar/SidebarContent.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarFooter.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarGroup.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarGroupAction.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarGroupContent.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarGroupLabel.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarHeader.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarInput.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarInset.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarMenu.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarMenuAction.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarMenuBadge.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarMenuButton.vue.d.ts +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuItem.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarMenuSkeleton.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarMenuSub.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue +3 -1
- package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue.d.ts +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuSubItem.vue +2 -0
- package/dist/runtime/components/sidebar/SidebarProvider.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarRail.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarSeparator.vue +1 -0
- package/dist/runtime/components/sidebar/SidebarTrigger.vue +1 -0
- package/dist/runtime/composables/useUnaSettings.js +22 -9
- package/dist/runtime/composables/useUnaThemes.d.ts +5 -5
- package/dist/runtime/composables/useUnaThemes.js +48 -98
- package/dist/runtime/plugins/theme.client.js +13 -0
- package/dist/runtime/plugins/theme.server.js +12 -0
- package/dist/runtime/types/alert-dialog.d.ts +2 -2
- package/dist/runtime/types/alert.d.ts +30 -15
- package/dist/runtime/types/card.d.ts +5 -0
- package/dist/runtime/types/dialog.d.ts +8 -3
- package/dist/runtime/types/index.d.ts +10 -2
- package/dist/runtime/types/sheet.d.ts +2 -2
- package/package.json +9 -9
- package/dist/runtime/components/elements/Alert.vue +0 -127
- package/dist/runtime/components/elements/Alert.vue.d.ts +0 -22
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NCardActionProps } from '../../../types/card.js';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<NCardActionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NCardActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { reactivePick } from "@vueuse/core";
|
|
3
|
-
import { DialogRoot,
|
|
3
|
+
import { DialogRoot, useForwardPropsEmits, VisuallyHidden } from "reka-ui";
|
|
4
4
|
import { computed } from "vue";
|
|
5
5
|
import { randomId } from "../../../utils";
|
|
6
6
|
import DialogContent from "./DialogContent.vue";
|
|
@@ -9,6 +9,7 @@ import DialogFooter from "./DialogFooter.vue";
|
|
|
9
9
|
import DialogHeader from "./DialogHeader.vue";
|
|
10
10
|
import DialogScrollContent from "./DialogScrollContent.vue";
|
|
11
11
|
import DialogTitle from "./DialogTitle.vue";
|
|
12
|
+
import DialogTrigger from "./DialogTrigger.vue";
|
|
12
13
|
defineOptions({
|
|
13
14
|
inheritAttrs: false
|
|
14
15
|
});
|
|
@@ -21,11 +22,12 @@ const props = defineProps({
|
|
|
21
22
|
_dialogHeader: { type: Object, required: false },
|
|
22
23
|
_dialogFooter: { type: Object, required: false },
|
|
23
24
|
_dialogContent: { type: Object, required: false },
|
|
25
|
+
_dialogTrigger: { type: Object, required: false },
|
|
24
26
|
una: { type: Object, required: false },
|
|
25
27
|
open: { type: Boolean, required: false },
|
|
26
28
|
defaultOpen: { type: Boolean, required: false },
|
|
27
29
|
modal: { type: Boolean, required: false },
|
|
28
|
-
|
|
30
|
+
dismissible: { type: Boolean, required: false, default: true },
|
|
29
31
|
showClose: { type: Boolean, required: false, default: true },
|
|
30
32
|
overlay: { type: Boolean, required: false, default: true },
|
|
31
33
|
_dialogClose: { type: Object, required: false },
|
|
@@ -45,71 +47,80 @@ const rootPropsEmits = useForwardPropsEmits(rootProps, emits);
|
|
|
45
47
|
</script>
|
|
46
48
|
|
|
47
49
|
<template>
|
|
48
|
-
<DialogRoot
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
<DialogRoot
|
|
51
|
+
v-slot="{ open }"
|
|
52
|
+
data-slot="dialog"
|
|
53
|
+
v-bind="rootPropsEmits"
|
|
54
|
+
>
|
|
55
|
+
<slot>
|
|
56
|
+
<DialogTrigger
|
|
57
|
+
v-bind="_dialogTrigger"
|
|
58
|
+
as-child
|
|
59
|
+
>
|
|
60
|
+
<slot name="trigger" :open />
|
|
61
|
+
</DialogTrigger>
|
|
52
62
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
<component
|
|
64
|
+
:is="!scrollable ? DialogContent : DialogScrollContent"
|
|
65
|
+
v-bind="_dialogContent"
|
|
66
|
+
:_dialog-overlay
|
|
67
|
+
:_dialog-close
|
|
68
|
+
:scrollable
|
|
69
|
+
:show-close
|
|
70
|
+
:dismissible
|
|
71
|
+
:una
|
|
72
|
+
>
|
|
73
|
+
<VisuallyHidden v-if="title === DEFAULT_TITLE || !!$slots.title || (description === DEFAULT_DESCRIPTION || !!$slots.description)">
|
|
74
|
+
<DialogTitle v-if="title === DEFAULT_TITLE || !!$slots.title">
|
|
75
|
+
{{ title }}
|
|
76
|
+
</DialogTitle>
|
|
67
77
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
78
|
+
<DialogDescription v-if="description === DEFAULT_DESCRIPTION || !!$slots.description">
|
|
79
|
+
{{ description }}
|
|
80
|
+
</DialogDescription>
|
|
81
|
+
</VisuallyHidden>
|
|
72
82
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
<slot name="content">
|
|
84
|
+
<DialogHeader
|
|
85
|
+
v-if="!!$slots.header || (title !== DEFAULT_TITLE || !!$slots.title) || (description !== DEFAULT_DESCRIPTION || !!$slots.description)"
|
|
86
|
+
v-bind="_dialogHeader"
|
|
87
|
+
:una
|
|
88
|
+
>
|
|
89
|
+
<slot name="header">
|
|
90
|
+
<DialogTitle
|
|
91
|
+
v-if="$slots.title || title !== DEFAULT_TITLE"
|
|
92
|
+
v-bind="_dialogTitle"
|
|
93
|
+
:una
|
|
94
|
+
>
|
|
95
|
+
<slot name="title">
|
|
96
|
+
{{ title }}
|
|
97
|
+
</slot>
|
|
98
|
+
</DialogTitle>
|
|
89
99
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
<DialogDescription
|
|
101
|
+
v-if="$slots.description || description !== DEFAULT_DESCRIPTION"
|
|
102
|
+
v-bind="_dialogDescription"
|
|
103
|
+
:una
|
|
104
|
+
>
|
|
105
|
+
<slot name="description">
|
|
106
|
+
{{ description }}
|
|
107
|
+
</slot>
|
|
108
|
+
</DialogDescription>
|
|
109
|
+
</slot>
|
|
110
|
+
</DialogHeader>
|
|
101
111
|
|
|
102
|
-
|
|
103
|
-
|
|
112
|
+
<!-- body -->
|
|
113
|
+
<slot name="body" />
|
|
104
114
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
115
|
+
<DialogFooter
|
|
116
|
+
v-if="$slots.footer"
|
|
117
|
+
v-bind="_dialogFooter"
|
|
118
|
+
:una
|
|
119
|
+
>
|
|
120
|
+
<slot name="footer" />
|
|
121
|
+
</DialogFooter>
|
|
122
|
+
</slot>
|
|
123
|
+
</component>
|
|
124
|
+
</slot>
|
|
114
125
|
</DialogRoot>
|
|
115
126
|
</template>
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import type { NDialogProps } from '../../../types/index.js';
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_6: {}, __VLS_11: {
|
|
3
3
|
open: boolean;
|
|
4
|
-
},
|
|
4
|
+
}, __VLS_27: {}, __VLS_32: {}, __VLS_37: {}, __VLS_42: {}, __VLS_44: {}, __VLS_49: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
|
-
|
|
6
|
+
default?: (props: typeof __VLS_6) => any;
|
|
7
7
|
} & {
|
|
8
|
-
|
|
8
|
+
trigger?: (props: typeof __VLS_11) => any;
|
|
9
9
|
} & {
|
|
10
|
-
|
|
10
|
+
content?: (props: typeof __VLS_27) => any;
|
|
11
11
|
} & {
|
|
12
|
-
|
|
12
|
+
header?: (props: typeof __VLS_32) => any;
|
|
13
13
|
} & {
|
|
14
|
-
|
|
14
|
+
title?: (props: typeof __VLS_37) => any;
|
|
15
15
|
} & {
|
|
16
|
-
|
|
16
|
+
description?: (props: typeof __VLS_42) => any;
|
|
17
17
|
} & {
|
|
18
|
-
|
|
18
|
+
body?: (props: typeof __VLS_44) => any;
|
|
19
|
+
} & {
|
|
20
|
+
footer?: (props: typeof __VLS_49) => any;
|
|
19
21
|
};
|
|
20
22
|
declare const __VLS_component: import("vue").DefineComponent<NDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
23
|
"update:open": (value: boolean) => any;
|
|
22
24
|
}, string, import("vue").PublicProps, Readonly<NDialogProps> & Readonly<{
|
|
23
25
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
24
26
|
}>, {
|
|
27
|
+
dismissible: boolean;
|
|
25
28
|
overlay: boolean;
|
|
26
29
|
showClose: boolean;
|
|
27
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NDialogCloseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NDialogCloseProps> & Readonly<{}>, {
|
|
7
|
-
label: string;
|
|
8
7
|
icon: boolean;
|
|
8
|
+
label: string;
|
|
9
9
|
btn: string;
|
|
10
10
|
square: import("vue").HTMLAttributes["class"];
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -13,7 +13,7 @@ defineOptions({
|
|
|
13
13
|
inheritAttrs: false
|
|
14
14
|
});
|
|
15
15
|
const props = defineProps({
|
|
16
|
-
|
|
16
|
+
dismissible: { type: Boolean, required: false, default: true },
|
|
17
17
|
showClose: { type: Boolean, required: false, default: true },
|
|
18
18
|
overlay: { type: Boolean, required: false, default: true },
|
|
19
19
|
_dialogClose: { type: Object, required: false },
|
|
@@ -30,7 +30,7 @@ const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside"
|
|
|
30
30
|
const delegatedProps = reactiveOmit(props, ["class", "una", "_dialogOverlay", "_dialogClose"]);
|
|
31
31
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
32
32
|
const contentEvents = computed(() => {
|
|
33
|
-
if (props.
|
|
33
|
+
if (!props.dismissible) {
|
|
34
34
|
return {
|
|
35
35
|
pointerDownOutside: (e) => e.preventDefault(),
|
|
36
36
|
interactOutside: (e) => e.preventDefault(),
|
|
@@ -53,6 +53,7 @@ const contentEvents = computed(() => {
|
|
|
53
53
|
/>
|
|
54
54
|
|
|
55
55
|
<DialogContent
|
|
56
|
+
data-slot="dialog-content"
|
|
56
57
|
v-bind="{ ...forwarded, ...$attrs }"
|
|
57
58
|
:class="cn(
|
|
58
59
|
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-48% data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-48%',
|
|
@@ -18,6 +18,7 @@ declare const __VLS_component: import("vue").DefineComponent<NDialogContentProps
|
|
|
18
18
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
19
19
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
|
+
dismissible: boolean;
|
|
21
22
|
overlay: boolean;
|
|
22
23
|
showClose: boolean;
|
|
23
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -14,6 +14,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
14
14
|
|
|
15
15
|
<template>
|
|
16
16
|
<DialogDescription
|
|
17
|
+
data-slot="dialog-description"
|
|
17
18
|
v-bind="forwardedProps"
|
|
18
19
|
:class="cn(
|
|
19
20
|
'dialog-description data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-48% data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-48%',
|
|
@@ -10,6 +10,7 @@ const props = defineProps({
|
|
|
10
10
|
|
|
11
11
|
<template>
|
|
12
12
|
<DialogOverlay
|
|
13
|
+
data-slot="dialog-overlay"
|
|
13
14
|
:class="cn(
|
|
14
15
|
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
|
|
15
16
|
!props.scrollable ? 'dialog-overlay' : 'dialog-scroll-overlay',
|
|
@@ -13,7 +13,7 @@ defineOptions({
|
|
|
13
13
|
inheritAttrs: false
|
|
14
14
|
});
|
|
15
15
|
const props = defineProps({
|
|
16
|
-
|
|
16
|
+
dismissible: { type: Boolean, required: false, default: true },
|
|
17
17
|
showClose: { type: Boolean, required: false, default: true },
|
|
18
18
|
overlay: { type: Boolean, required: false, default: true },
|
|
19
19
|
_dialogClose: { type: Object, required: false },
|
|
@@ -29,7 +29,7 @@ const props = defineProps({
|
|
|
29
29
|
const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"]);
|
|
30
30
|
const delegatedProps = reactiveOmit(props, ["class", "_dialogOverlay", "_dialogClose"]);
|
|
31
31
|
const contentEvents = computed(() => {
|
|
32
|
-
if (props.
|
|
32
|
+
if (!props.dismissible) {
|
|
33
33
|
return {
|
|
34
34
|
pointerDownOutside: (e) => e.preventDefault(),
|
|
35
35
|
interactOutside: (e) => e.preventDefault(),
|
|
@@ -18,6 +18,7 @@ declare const __VLS_component: import("vue").DefineComponent<NDialogContentProps
|
|
|
18
18
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
19
19
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
|
+
dismissible: boolean;
|
|
21
22
|
overlay: boolean;
|
|
22
23
|
showClose: boolean;
|
|
23
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { DialogTrigger } from "reka-ui";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
asChild: { type: Boolean, required: false },
|
|
5
|
+
as: { type: null, required: false }
|
|
6
|
+
});
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<DialogTrigger
|
|
11
|
+
data-slot="dialog-trigger"
|
|
12
|
+
v-bind="props"
|
|
13
|
+
>
|
|
14
|
+
<slot />
|
|
15
|
+
</DialogTrigger>
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DialogTriggerProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_6: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_6) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<DialogTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { NDropdownMenuItemProps } from '../../../types/index.js';
|
|
2
2
|
type __VLS_Slots = any;
|
|
3
3
|
declare const __VLS_component: import("vue").DefineComponent<NDropdownMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NDropdownMenuItemProps> & Readonly<{}>, {
|
|
4
|
-
rounded: import("vue").HTMLAttributes["class"];
|
|
5
4
|
size: string;
|
|
5
|
+
rounded: import("vue").HTMLAttributes["class"];
|
|
6
6
|
dropdownMenuItem: import("vue").HTMLAttributes["class"];
|
|
7
7
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NPaginationFirstProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NPaginationFirstProps> & Readonly<{}>, {
|
|
7
|
-
label: string;
|
|
8
7
|
icon: boolean;
|
|
8
|
+
label: string;
|
|
9
9
|
square: import("vue").HTMLAttributes["class"];
|
|
10
10
|
paginationUnselected: string;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NPaginationLastProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NPaginationLastProps> & Readonly<{}>, {
|
|
7
|
-
label: string;
|
|
8
7
|
icon: boolean;
|
|
8
|
+
label: string;
|
|
9
9
|
square: import("vue").HTMLAttributes["class"];
|
|
10
10
|
paginationUnselected: string;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NPaginationNextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NPaginationNextProps> & Readonly<{}>, {
|
|
7
|
-
label: string;
|
|
8
7
|
icon: boolean;
|
|
8
|
+
label: string;
|
|
9
9
|
square: import("vue").HTMLAttributes["class"];
|
|
10
10
|
paginationUnselected: string;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NPaginationPrevProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NPaginationPrevProps> & Readonly<{}>, {
|
|
7
|
-
label: string;
|
|
8
7
|
icon: boolean;
|
|
8
|
+
label: string;
|
|
9
9
|
square: import("vue").HTMLAttributes["class"];
|
|
10
10
|
paginationUnselected: string;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -31,8 +31,8 @@ const props = defineProps({
|
|
|
31
31
|
dropdownMenu: { type: String, required: false },
|
|
32
32
|
toggleOn: { type: String, required: false },
|
|
33
33
|
toggleOff: { type: String, required: false },
|
|
34
|
-
tabsActive: { type: String, required: false, default: "
|
|
35
|
-
tabsInactive: { type: String, required: false },
|
|
34
|
+
tabsActive: { type: String, required: false, default: "outline-gray" },
|
|
35
|
+
tabsInactive: { type: String, required: false, default: "text-muted" },
|
|
36
36
|
navigationMenu: { type: String, required: false },
|
|
37
37
|
navigationMenuLink: { type: String, required: false },
|
|
38
38
|
ariaLabel: { type: String, required: false }
|
|
@@ -6,6 +6,7 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NTabsTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NTabsTriggerProps> & Readonly<{}>, {
|
|
7
7
|
size: string;
|
|
8
8
|
tabsActive: string;
|
|
9
|
+
tabsInactive: string;
|
|
9
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
11
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
12
|
export default _default;
|
|
@@ -9,9 +9,9 @@ defineOptions({
|
|
|
9
9
|
inheritAttrs: false
|
|
10
10
|
});
|
|
11
11
|
const props = defineProps({
|
|
12
|
-
checkbox: { type: String, required: false },
|
|
12
|
+
checkbox: { type: String, required: false, default: "primary" },
|
|
13
13
|
label: { type: String, required: false },
|
|
14
|
-
size: { type: String, required: false },
|
|
14
|
+
size: { type: String, required: false, default: "md" },
|
|
15
15
|
reverse: { type: Boolean, required: false },
|
|
16
16
|
forceMount: { type: Boolean, required: false, default: true },
|
|
17
17
|
_checkboxIndicator: { type: Object, required: false },
|
|
@@ -10,7 +10,9 @@ declare const __VLS_component: import("vue").DefineComponent<NCheckboxProps, {},
|
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<NCheckboxProps> & Readonly<{
|
|
11
11
|
"onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
+
size: string;
|
|
13
14
|
forceMount: boolean;
|
|
15
|
+
checkbox: string;
|
|
14
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
17
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
18
|
export default _default;
|
|
@@ -13,22 +13,22 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
13
13
|
select: () => void | undefined;
|
|
14
14
|
inputRef: import("vue").Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
15
15
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
-
blur: (...args: any[]) => void;
|
|
17
|
-
change: (...args: any[]) => void;
|
|
18
16
|
leading: (...args: any[]) => void;
|
|
19
17
|
trailing: (...args: any[]) => void;
|
|
18
|
+
blur: (...args: any[]) => void;
|
|
19
|
+
change: (...args: any[]) => void;
|
|
20
20
|
"update:modelValue": (...args: any[]) => void;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
24
22
|
onLeading?: ((...args: any[]) => any) | undefined;
|
|
25
23
|
onTrailing?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
|
-
size: string;
|
|
29
|
-
resize: string | null;
|
|
30
28
|
type: HTMLInputElement["type"] | "textarea";
|
|
29
|
+
size: string;
|
|
31
30
|
autofocusDelay: number;
|
|
31
|
+
resize: string | null;
|
|
32
32
|
rows: number;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|