@una-ui/nuxt 0.57.0 → 0.59.0
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 +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialog.vue.d.ts +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogAction.vue.d.ts +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue.d.ts +1 -1
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +2 -2
- package/dist/runtime/components/combobox/Combobox.vue.d.ts +21 -21
- package/dist/runtime/components/combobox/ComboboxInput.vue +2 -0
- package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/ComboboxTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/data/table/TableBody.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableCaption.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableCell.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableEmpty.vue.d.ts +21 -2
- package/dist/runtime/components/data/table/TableFooter.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableHead.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableHeader.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableLoading.vue.d.ts +22 -3
- package/dist/runtime/components/data/table/TableRow.vue.d.ts +22 -3
- package/dist/runtime/components/drawer/Drawer.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Accordion.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Alert.vue.d.ts +5 -1
- package/dist/runtime/components/elements/Badge.vue.d.ts +5 -1
- package/dist/runtime/components/elements/Button.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Toggle.vue.d.ts +1 -1
- package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +2 -2
- package/dist/runtime/components/elements/collapsible/Collapsible.vue.d.ts +2 -2
- package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +1 -1
- package/dist/runtime/components/elements/dialog/DialogClose.vue.d.ts +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue.d.ts +4 -4
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue.d.ts +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/Pagination.vue.d.ts +5 -2
- 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/PaginationListItem.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/popover/Popover.vue.d.ts +1 -1
- package/dist/runtime/components/elements/tabs/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/forms/Input.vue +50 -4
- package/dist/runtime/components/forms/Input.vue.d.ts +20 -3
- package/dist/runtime/components/forms/Switch.vue +7 -6
- package/dist/runtime/components/forms/Switch.vue.d.ts +2 -2
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +4 -4
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +1 -1
- package/dist/runtime/components/forms/select/Select.vue.d.ts +17 -17
- package/dist/runtime/components/hover-card/HoverCard.vue +79 -0
- package/dist/runtime/components/hover-card/HoverCard.vue.d.ts +25 -0
- package/dist/runtime/components/hover-card/HoverCardArrow.vue +30 -0
- package/dist/runtime/components/hover-card/HoverCardArrow.vue.d.ts +6 -0
- package/dist/runtime/components/hover-card/HoverCardContent.vue +57 -0
- package/dist/runtime/components/hover-card/HoverCardContent.vue.d.ts +15 -0
- package/dist/runtime/components/hover-card/HoverCardTrigger.vue +55 -0
- package/dist/runtime/components/hover-card/HoverCardTrigger.vue.d.ts +13 -0
- package/dist/runtime/components/misc/ThemeSwitcher.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue.d.ts +16 -6
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue.d.ts +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenu.vue.d.ts +11 -11
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +2 -2
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/toast/Toast.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +2 -2
- package/dist/runtime/components/resizable/ResizablePanel.vue.d.ts +7 -1
- package/dist/runtime/components/resizable/ResizablePanelGroup.vue.d.ts +3 -1
- package/dist/runtime/components/scroll-area/ScrollArea.vue.d.ts +1 -1
- package/dist/runtime/components/sheet/Sheet.vue.d.ts +1 -1
- package/dist/runtime/components/sidebar/SidebarInput.vue +2 -1
- package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuButton.vue.d.ts +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue.d.ts +1 -1
- package/dist/runtime/types/hover-card.d.ts +57 -0
- package/dist/runtime/types/hover-card.js +0 -0
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/input.d.ts +9 -3
- package/dist/runtime/types/switch.d.ts +16 -12
- package/dist/runtime/types/table.d.ts +9 -0
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +4 -0
- package/package.json +8 -8
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import {
|
|
4
|
+
HoverCardContent,
|
|
5
|
+
HoverCardPortal,
|
|
6
|
+
useForwardProps
|
|
7
|
+
} from "reka-ui";
|
|
8
|
+
import { cn } from "../../utils";
|
|
9
|
+
defineOptions({
|
|
10
|
+
inheritAttrs: false
|
|
11
|
+
});
|
|
12
|
+
const props = defineProps({
|
|
13
|
+
una: { type: Object, required: false },
|
|
14
|
+
forceMount: { type: Boolean, required: false },
|
|
15
|
+
side: { type: null, required: false },
|
|
16
|
+
sideOffset: { type: Number, required: false, default: 4 },
|
|
17
|
+
align: { type: null, required: false },
|
|
18
|
+
alignOffset: { type: Number, required: false },
|
|
19
|
+
avoidCollisions: { type: Boolean, required: false },
|
|
20
|
+
collisionBoundary: { type: null, required: false },
|
|
21
|
+
collisionPadding: { type: [Number, Object], required: false },
|
|
22
|
+
arrowPadding: { type: Number, required: false },
|
|
23
|
+
sticky: { type: String, required: false },
|
|
24
|
+
hideWhenDetached: { type: Boolean, required: false },
|
|
25
|
+
positionStrategy: { type: String, required: false },
|
|
26
|
+
updatePositionStrategy: { type: String, required: false },
|
|
27
|
+
disableUpdateOnLayoutShift: { type: Boolean, required: false },
|
|
28
|
+
prioritizePosition: { type: Boolean, required: false },
|
|
29
|
+
reference: { type: null, required: false },
|
|
30
|
+
asChild: { type: Boolean, required: false },
|
|
31
|
+
as: { type: [String, Object, Function], required: false },
|
|
32
|
+
hoverCard: { type: null, required: false },
|
|
33
|
+
class: { type: null, required: false },
|
|
34
|
+
size: { type: null, required: false }
|
|
35
|
+
});
|
|
36
|
+
const delegatedProps = reactiveOmit(props, "una", "class");
|
|
37
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<template>
|
|
41
|
+
<HoverCardPortal>
|
|
42
|
+
<HoverCardContent
|
|
43
|
+
data-slot="hover-card-content"
|
|
44
|
+
v-bind="{ ...forwarded, ...$attrs }"
|
|
45
|
+
:class="
|
|
46
|
+
cn(
|
|
47
|
+
'hover-card-content',
|
|
48
|
+
props.una?.hoverCardContent,
|
|
49
|
+
props.class
|
|
50
|
+
)
|
|
51
|
+
"
|
|
52
|
+
:hover-card
|
|
53
|
+
>
|
|
54
|
+
<slot />
|
|
55
|
+
</HoverCardContent>
|
|
56
|
+
</HoverCardPortal>
|
|
57
|
+
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NHoverCardContentProps } from '../../types/index.js';
|
|
2
|
+
declare var __VLS_10: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_10) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<NHoverCardContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NHoverCardContentProps> & Readonly<{}>, {
|
|
7
|
+
sideOffset: number;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { HoverCardTrigger, useForwardProps } from "reka-ui";
|
|
4
|
+
import { cn } from "../../utils";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
una: { type: Object, required: false },
|
|
7
|
+
reference: { type: null, required: false },
|
|
8
|
+
asChild: { type: Boolean, required: false },
|
|
9
|
+
as: { type: [String, Object, Function], required: false },
|
|
10
|
+
type: { type: String, required: false },
|
|
11
|
+
loadingPlacement: { type: String, required: false },
|
|
12
|
+
icon: { type: Boolean, required: false },
|
|
13
|
+
disabled: { type: Boolean, required: false },
|
|
14
|
+
reverse: { type: Boolean, required: false },
|
|
15
|
+
loading: { type: Boolean, required: false },
|
|
16
|
+
block: { type: Boolean, required: false },
|
|
17
|
+
to: { type: null, required: false },
|
|
18
|
+
label: { type: String, required: false },
|
|
19
|
+
btn: { type: String, required: false },
|
|
20
|
+
leading: { type: String, required: false },
|
|
21
|
+
trailing: { type: String, required: false },
|
|
22
|
+
size: { type: String, required: false },
|
|
23
|
+
square: { type: null, required: false },
|
|
24
|
+
rounded: { type: null, required: false },
|
|
25
|
+
class: { type: null, required: false },
|
|
26
|
+
breadcrumbActive: { type: String, required: false },
|
|
27
|
+
breadcrumbInactive: { type: String, required: false },
|
|
28
|
+
paginationSelected: { type: String, required: false },
|
|
29
|
+
paginationUnselected: { type: String, required: false },
|
|
30
|
+
dropdownMenu: { type: String, required: false },
|
|
31
|
+
toggleOn: { type: String, required: false },
|
|
32
|
+
toggleOff: { type: String, required: false },
|
|
33
|
+
tabsActive: { type: String, required: false },
|
|
34
|
+
tabsInactive: { type: String, required: false },
|
|
35
|
+
navigationMenu: { type: String, required: false },
|
|
36
|
+
navigationMenuLink: { type: String, required: false },
|
|
37
|
+
ariaLabel: { type: String, required: false }
|
|
38
|
+
});
|
|
39
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
40
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<template>
|
|
44
|
+
<HoverCardTrigger
|
|
45
|
+
data-slot="hover-card-trigger"
|
|
46
|
+
v-bind="forwarded"
|
|
47
|
+
:class="cn(
|
|
48
|
+
'hover-card-trigger',
|
|
49
|
+
props.una?.hoverCardTrigger,
|
|
50
|
+
props.class
|
|
51
|
+
)"
|
|
52
|
+
>
|
|
53
|
+
<slot />
|
|
54
|
+
</HoverCardTrigger>
|
|
55
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NHoverCardTriggerProps } from '../../types/index.js';
|
|
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<NHoverCardTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NHoverCardTriggerProps> & 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,16 +1,26 @@
|
|
|
1
1
|
import type { NBreadcrumbProps } from '../../../types/index.js';
|
|
2
2
|
declare var __VLS_5: {
|
|
3
|
-
items:
|
|
3
|
+
items: Partial<import("../../../types/index.js").NButtonProps & {
|
|
4
|
+
children?: import("../../../types/index.js").NButtonProps[];
|
|
5
|
+
}>[];
|
|
4
6
|
}, __VLS_10: {
|
|
5
|
-
item:
|
|
7
|
+
item: Partial<import("../../../types/index.js").NButtonProps & {
|
|
8
|
+
children?: import("../../../types/index.js").NButtonProps[];
|
|
9
|
+
}>;
|
|
6
10
|
}, __VLS_15: {
|
|
7
|
-
item:
|
|
11
|
+
item: Partial<import("../../../types/index.js").NButtonProps & {
|
|
12
|
+
children?: import("../../../types/index.js").NButtonProps[];
|
|
13
|
+
}>;
|
|
8
14
|
}, __VLS_20: {
|
|
9
|
-
item:
|
|
10
|
-
|
|
15
|
+
item: Partial<import("../../../types/index.js").NButtonProps & {
|
|
16
|
+
children?: import("../../../types/index.js").NButtonProps[];
|
|
17
|
+
}>;
|
|
18
|
+
index: number;
|
|
11
19
|
isActive: boolean;
|
|
12
20
|
}, __VLS_22: {
|
|
13
|
-
item:
|
|
21
|
+
item: Partial<import("../../../types/index.js").NButtonProps & {
|
|
22
|
+
children?: import("../../../types/index.js").NButtonProps[];
|
|
23
|
+
}>;
|
|
14
24
|
}, __VLS_33: {};
|
|
15
25
|
type __VLS_Slots = {} & {
|
|
16
26
|
root?: (props: typeof __VLS_5) => any;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NBreadcrumbEllipsisProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NBreadcrumbEllipsisProps> & Readonly<{}>, {
|
|
7
|
-
icon: string;
|
|
8
7
|
size: string;
|
|
8
|
+
icon: string;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
11
|
export default _default;
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NBreadcrumbSeparatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NBreadcrumbSeparatorProps> & Readonly<{}>, {
|
|
7
|
-
icon: string;
|
|
8
7
|
size: string;
|
|
8
|
+
icon: string;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
11
|
export default _default;
|
|
@@ -7,31 +7,31 @@ declare const _default: <T extends U[], U extends NNavigationMenuItemProps>(__VL
|
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: {
|
|
9
9
|
[x: string]: ((props: {
|
|
10
|
-
item: any;
|
|
11
|
-
active:
|
|
10
|
+
item: T extends number ? number : T extends string ? string : T extends any[] ? T[number] : T extends Iterable<infer T1> ? T1 : any;
|
|
11
|
+
active: boolean | undefined;
|
|
12
12
|
}) => any) | undefined;
|
|
13
13
|
} & {
|
|
14
|
-
[x: string]: ((props: {
|
|
15
|
-
items:
|
|
16
|
-
item: any;
|
|
14
|
+
[x: `${string}-content`]: ((props: {
|
|
15
|
+
items: import("../../types/index.js").NNavigationMenuLinkProps[];
|
|
16
|
+
item: T extends number ? number : T extends string ? string : T extends any[] ? T[number] : T extends Iterable<infer T1> ? T1 : any;
|
|
17
17
|
}) => any) | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
[x: string]: ((props: {
|
|
20
|
-
item: any;
|
|
20
|
+
item: T extends number ? number : T extends string ? string : T extends any[] ? T[number] : T extends Iterable<infer T1> ? T1 : any;
|
|
21
21
|
}) => any) | undefined;
|
|
22
22
|
} & {
|
|
23
23
|
default?: (props: {
|
|
24
|
-
items:
|
|
24
|
+
items: T | undefined;
|
|
25
25
|
}) => any;
|
|
26
26
|
} & {
|
|
27
27
|
list?: (props: {
|
|
28
|
-
items:
|
|
28
|
+
items: T | undefined;
|
|
29
29
|
}) => any;
|
|
30
30
|
} & {
|
|
31
31
|
trigger?: (props: {
|
|
32
|
-
modelValue:
|
|
33
|
-
item: any;
|
|
34
|
-
index:
|
|
32
|
+
modelValue: string;
|
|
33
|
+
item: T extends number ? number : T extends string ? string : T extends any[] ? T[number] : T extends Iterable<infer T1> ? T1 : any;
|
|
34
|
+
index: number;
|
|
35
35
|
}) => any;
|
|
36
36
|
} & {
|
|
37
37
|
viewport?: (props: {}) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NNavigationMenuLinkProps } from '../../types/index.js';
|
|
2
2
|
declare var __VLS_6: {
|
|
3
|
-
active:
|
|
3
|
+
active: boolean | undefined;
|
|
4
4
|
};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_6) => any;
|
|
@@ -14,9 +14,9 @@ declare const __VLS_component: import("vue").DefineComponent<NNavigationMenuLink
|
|
|
14
14
|
originalEvent: Event;
|
|
15
15
|
}>) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
17
18
|
btn: string;
|
|
18
19
|
navigationMenuLink: string;
|
|
19
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
22
|
export default _default;
|
|
@@ -4,10 +4,10 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NNavigationMenuTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NNavigationMenuTriggerProps> & Readonly<{}>, {
|
|
7
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
7
8
|
btn: string;
|
|
8
9
|
trailing: string;
|
|
9
10
|
navigationMenu: string;
|
|
10
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
13
13
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NToastProps } from '../../../types/index.js';
|
|
2
2
|
declare var __VLS_10: {}, __VLS_15: {}, __VLS_20: {}, __VLS_25: {}, __VLS_30: {}, __VLS_32: {
|
|
3
|
-
actions:
|
|
3
|
+
actions: import("reka-ui").ToastActionProps[];
|
|
4
4
|
}, __VLS_40: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
leading?: (props: typeof __VLS_10) => any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { NToastActionProps } from '../../../types/index.js';
|
|
2
|
-
declare var __VLS_10:
|
|
2
|
+
declare var __VLS_10: string | number, __VLS_11: any;
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NToastActionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NToastActionProps> & Readonly<{}>, {
|
|
7
|
-
btn: string;
|
|
8
7
|
size: string;
|
|
8
|
+
btn: string;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
11
|
export default _default;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { NResizablePanelProps } from '../../types/index.js';
|
|
2
|
-
declare var __VLS_6:
|
|
2
|
+
declare var __VLS_6: {
|
|
3
|
+
isCollapsed: boolean;
|
|
4
|
+
isExpanded: boolean;
|
|
5
|
+
collapse: () => void;
|
|
6
|
+
expand: () => void;
|
|
7
|
+
resize: (size: number) => void;
|
|
8
|
+
};
|
|
3
9
|
type __VLS_Slots = {} & {
|
|
4
10
|
default?: (props: typeof __VLS_6) => any;
|
|
5
11
|
};
|
|
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_10) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<NScrollAreaProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NScrollAreaProps> & Readonly<{}>, {
|
|
7
|
-
size: import("vue").HTMLAttributes["class"];
|
|
8
7
|
rounded: import("vue").HTMLAttributes["class"];
|
|
8
|
+
size: import("vue").HTMLAttributes["class"];
|
|
9
9
|
scrollArea: import("vue").HTMLAttributes["class"];
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NSheetProps } from '../../types/index.js';
|
|
2
2
|
declare var __VLS_6: {}, __VLS_11: {
|
|
3
|
-
open:
|
|
3
|
+
open: boolean;
|
|
4
4
|
}, __VLS_26: {}, __VLS_31: {}, __VLS_36: {}, __VLS_41: {}, __VLS_43: {}, __VLS_48: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
root?: (props: typeof __VLS_6) => any;
|
|
@@ -8,7 +8,8 @@ const props = defineProps({
|
|
|
8
8
|
status: { type: String, required: false },
|
|
9
9
|
loading: { type: Boolean, required: false },
|
|
10
10
|
reverse: { type: Boolean, required: false },
|
|
11
|
-
|
|
11
|
+
autofocus: { type: Boolean, required: false },
|
|
12
|
+
autofocusDelay: { type: Number, required: false },
|
|
12
13
|
leading: { type: String, required: false },
|
|
13
14
|
trailing: { type: String, required: false },
|
|
14
15
|
input: { type: String, required: false },
|
|
@@ -6,8 +6,8 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
default?: (props: typeof __VLS_17) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import("vue").DefineComponent<NSidebarMenuButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NSidebarMenuButtonProps> & Readonly<{}>, {
|
|
9
|
-
size: "default" | "sm" | "lg";
|
|
10
9
|
as: import("reka-ui").AsTag | import("vue").Component;
|
|
10
|
+
size: "default" | "sm" | "lg";
|
|
11
11
|
variant: "default" | "outline";
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -18,8 +18,8 @@ type __VLS_Slots = {} & {
|
|
|
18
18
|
default?: (props: typeof __VLS_6) => any;
|
|
19
19
|
};
|
|
20
20
|
declare const __VLS_component: import("vue").DefineComponent<NSidebarMenuButtonChildProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NSidebarMenuButtonChildProps> & Readonly<{}>, {
|
|
21
|
-
size: "default" | "sm" | "lg";
|
|
22
21
|
as: import("reka-ui").AsTag | import("vue").Component;
|
|
22
|
+
size: "default" | "sm" | "lg";
|
|
23
23
|
variant: "default" | "outline";
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
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<NSidebarMenuSubButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NSidebarMenuSubButtonProps> & Readonly<{}>, {
|
|
7
|
-
size: "sm" | "md";
|
|
8
7
|
as: import("reka-ui").AsTag | import("vue").Component;
|
|
8
|
+
size: "sm" | "md";
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
11
11
|
export default _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { HoverCardArrowProps, HoverCardContentProps, HoverCardRootProps, HoverCardTriggerProps } from 'reka-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import type { NButtonProps } from './button.js';
|
|
4
|
+
interface BaseExtensions {
|
|
5
|
+
/** CSS class for the component */
|
|
6
|
+
class?: HTMLAttributes['class'];
|
|
7
|
+
/** Size of the component */
|
|
8
|
+
size?: HTMLAttributes['class'];
|
|
9
|
+
}
|
|
10
|
+
export interface NHoverCardProps extends HoverCardRootProps, Omit<NHoverCardTriggerProps, 'una' | 'size'>, BaseExtensions {
|
|
11
|
+
/**
|
|
12
|
+
* Allows you to add `UnaUI` hover-card preset properties,
|
|
13
|
+
* Think of it as a shortcut for adding options or variants to the preset if available.
|
|
14
|
+
*
|
|
15
|
+
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/hover-card.ts
|
|
16
|
+
* @example
|
|
17
|
+
* hover-card="outline-gray"
|
|
18
|
+
*/
|
|
19
|
+
hoverCard?: HTMLAttributes['class'];
|
|
20
|
+
/** Whether to show the arrow or not */
|
|
21
|
+
arrow?: boolean;
|
|
22
|
+
/** Props for the hover card content */
|
|
23
|
+
_hoverCardContent?: Partial<NHoverCardContentProps>;
|
|
24
|
+
/** Props for the hover card trigger */
|
|
25
|
+
_hoverCardTrigger?: Partial<NHoverCardTriggerProps>;
|
|
26
|
+
/** Props for the hover card arrow */
|
|
27
|
+
_hoverCardArrow?: Partial<NHoverCardArrowProps>;
|
|
28
|
+
/**
|
|
29
|
+
* `UnaUI` preset configuration
|
|
30
|
+
*
|
|
31
|
+
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/hover-card.ts
|
|
32
|
+
*/
|
|
33
|
+
una?: NHoverCardUnaProps;
|
|
34
|
+
}
|
|
35
|
+
export interface NHoverCardContentProps extends HoverCardContentProps, Pick<NHoverCardProps, 'hoverCard'>, BaseExtensions {
|
|
36
|
+
/** Additional properties for the una component */
|
|
37
|
+
una?: Pick<NHoverCardUnaProps, 'hoverCardContent'>;
|
|
38
|
+
}
|
|
39
|
+
export interface NHoverCardTriggerProps extends HoverCardTriggerProps, Omit<NButtonProps, 'una'> {
|
|
40
|
+
/** Additional properties for the una component */
|
|
41
|
+
una?: Pick<NHoverCardUnaProps, 'hoverCardTrigger'> & NButtonProps['una'];
|
|
42
|
+
}
|
|
43
|
+
export interface NHoverCardArrowProps extends HoverCardArrowProps, Pick<NHoverCardProps, 'hoverCard'>, BaseExtensions {
|
|
44
|
+
/** Additional properties for the una component */
|
|
45
|
+
una?: Pick<NHoverCardUnaProps, 'hoverCardArrow'>;
|
|
46
|
+
}
|
|
47
|
+
interface NHoverCardUnaProps {
|
|
48
|
+
/** CSS class for the hover card */
|
|
49
|
+
hoverCard?: HTMLAttributes['class'];
|
|
50
|
+
/** CSS class for the hover card content */
|
|
51
|
+
hoverCardContent?: HTMLAttributes['class'];
|
|
52
|
+
/** CSS class for the hover card trigger */
|
|
53
|
+
hoverCardTrigger?: HTMLAttributes['class'];
|
|
54
|
+
/** CSS class for the hover card arrow */
|
|
55
|
+
hoverCardArrow?: HTMLAttributes['class'];
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
File without changes
|
|
@@ -16,6 +16,7 @@ export * from './drawer.js';
|
|
|
16
16
|
export * from './dropdown-menu.js';
|
|
17
17
|
export * from './form.js';
|
|
18
18
|
export * from './form-group.js';
|
|
19
|
+
export * from './hover-card.js';
|
|
19
20
|
export * from './icon.js';
|
|
20
21
|
export * from './indicator.js';
|
|
21
22
|
export * from './input.js';
|
|
@@ -16,6 +16,7 @@ export * from "./drawer.js";
|
|
|
16
16
|
export * from "./dropdown-menu.js";
|
|
17
17
|
export * from "./form.js";
|
|
18
18
|
export * from "./form-group.js";
|
|
19
|
+
export * from "./hover-card.js";
|
|
19
20
|
export * from "./icon.js";
|
|
20
21
|
export * from "./indicator.js";
|
|
21
22
|
export * from "./input.js";
|
|
@@ -24,11 +24,17 @@ export interface NInputProps {
|
|
|
24
24
|
*/
|
|
25
25
|
reverse?: boolean;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Automatically focus the input when the component is mounted.
|
|
28
28
|
*
|
|
29
|
-
* @default
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
autofocus?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Delay the autofocus of the input when the component is mounted.
|
|
34
|
+
*
|
|
35
|
+
* @default 0
|
|
30
36
|
*/
|
|
31
|
-
|
|
37
|
+
autofocusDelay?: number;
|
|
32
38
|
/**
|
|
33
39
|
* Display leading icon.
|
|
34
40
|
*
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import type { SwitchRootProps } from 'reka-ui';
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
|
-
|
|
3
|
+
interface BaseExtensions {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
/**
|
|
6
|
+
* Allows you to change the size of the input.
|
|
7
|
+
*
|
|
8
|
+
* @default md
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* size="sm" | size="2cm" | size="2rem" | size="2px"
|
|
12
|
+
*/
|
|
13
|
+
size?: HTMLAttributes['class'];
|
|
14
|
+
}
|
|
15
|
+
export interface NSwitchProps extends SwitchRootProps, BaseExtensions {
|
|
4
16
|
/**
|
|
5
17
|
* Add a loading indicator to the switch.
|
|
6
18
|
* This will also disable the switch.
|
|
@@ -31,15 +43,6 @@ export interface NSwitchProps extends SwitchRootProps {
|
|
|
31
43
|
* off-icon="i-heroicons-x-mark-20-solid text-white"
|
|
32
44
|
*/
|
|
33
45
|
uncheckedIcon?: HTMLAttributes['class'];
|
|
34
|
-
/**
|
|
35
|
-
* Allows you to change the size of the input.
|
|
36
|
-
*
|
|
37
|
-
* @default md
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* size="sm" | size="2cm" | size="2rem" | size="2px"
|
|
41
|
-
*/
|
|
42
|
-
size?: HTMLAttributes['class'];
|
|
43
46
|
/**
|
|
44
47
|
* Allows you to add `UnaUI` switch preset properties,
|
|
45
48
|
* Think of it as a shortcut for adding options or variants to the preset if available.
|
|
@@ -63,8 +66,8 @@ export interface NSwitchProps extends SwitchRootProps {
|
|
|
63
66
|
*/
|
|
64
67
|
una?: {
|
|
65
68
|
switch?: HTMLAttributes['class'];
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
switchCheckedBase?: HTMLAttributes['class'];
|
|
70
|
+
switchUncheckedBase?: HTMLAttributes['class'];
|
|
68
71
|
switchThumb?: HTMLAttributes['class'];
|
|
69
72
|
switchThumbChecked?: HTMLAttributes['class'];
|
|
70
73
|
switchThumbUnchecked?: HTMLAttributes['class'];
|
|
@@ -75,3 +78,4 @@ export interface NSwitchProps extends SwitchRootProps {
|
|
|
75
78
|
switchLoadingIconName?: HTMLAttributes['class'];
|
|
76
79
|
};
|
|
77
80
|
}
|
|
81
|
+
export {};
|
|
@@ -124,32 +124,39 @@ export interface NTableProps<TData, TValue> extends Omit<CoreOptions<TData>, 'da
|
|
|
124
124
|
una?: NTableUnaProps & NScrollAreaUnaProps;
|
|
125
125
|
}
|
|
126
126
|
export interface NTableBodyProps extends PrimitiveProps {
|
|
127
|
+
[key: string]: any;
|
|
127
128
|
class?: HTMLAttributes['class'];
|
|
128
129
|
una?: Pick<NTableUnaProps, 'tableBody'>;
|
|
129
130
|
}
|
|
130
131
|
export interface NTableHeadProps extends PrimitiveProps {
|
|
132
|
+
[key: string]: any;
|
|
131
133
|
class?: HTMLAttributes['class'];
|
|
132
134
|
dataPinned?: 'left' | 'right' | false;
|
|
133
135
|
una?: Pick<NTableUnaProps, 'tableHead'>;
|
|
134
136
|
}
|
|
135
137
|
export interface NTableHeaderProps extends PrimitiveProps {
|
|
138
|
+
[key: string]: any;
|
|
136
139
|
class?: HTMLAttributes['class'];
|
|
137
140
|
una?: Pick<NTableUnaProps, 'tableHeader'>;
|
|
138
141
|
}
|
|
139
142
|
export interface NTableFooterProps extends PrimitiveProps {
|
|
143
|
+
[key: string]: any;
|
|
140
144
|
class?: HTMLAttributes['class'];
|
|
141
145
|
una?: Pick<NTableUnaProps, 'tableFooter'>;
|
|
142
146
|
}
|
|
143
147
|
export interface NTableRowProps extends PrimitiveProps {
|
|
148
|
+
[key: string]: any;
|
|
144
149
|
class?: HTMLAttributes['class'];
|
|
145
150
|
una?: Pick<NTableUnaProps, 'tableRow'>;
|
|
146
151
|
}
|
|
147
152
|
export interface NTableCellProps extends PrimitiveProps {
|
|
153
|
+
[key: string]: any;
|
|
148
154
|
class?: HTMLAttributes['class'];
|
|
149
155
|
dataPinned?: 'left' | 'right' | false;
|
|
150
156
|
una?: Pick<NTableUnaProps, 'tableCell'>;
|
|
151
157
|
}
|
|
152
158
|
export interface NTableEmptyProps {
|
|
159
|
+
[key: string]: any;
|
|
153
160
|
class?: HTMLAttributes['class'];
|
|
154
161
|
colspan?: number;
|
|
155
162
|
_tableCell?: NTableCellProps;
|
|
@@ -157,6 +164,7 @@ export interface NTableEmptyProps {
|
|
|
157
164
|
una?: Pick<NTableUnaProps, 'tableEmpty' | 'tableRow' | 'tableCell'>;
|
|
158
165
|
}
|
|
159
166
|
export interface NTableLoadingProps {
|
|
167
|
+
[key: string]: any;
|
|
160
168
|
size?: HTMLAttributes['class'];
|
|
161
169
|
enabled?: boolean;
|
|
162
170
|
class?: HTMLAttributes['class'];
|
|
@@ -167,6 +175,7 @@ export interface NTableLoadingProps {
|
|
|
167
175
|
una?: Pick<NTableUnaProps, 'tableLoading' | 'tableLoadingCell' | 'tableLoadingRow'>;
|
|
168
176
|
}
|
|
169
177
|
export interface NTableCaptionProps extends PrimitiveProps {
|
|
178
|
+
[key: string]: any;
|
|
170
179
|
class?: HTMLAttributes['class'];
|
|
171
180
|
una?: Pick<NTableUnaProps, 'tableCaption'>;
|
|
172
181
|
}
|