@una-ui/nuxt 0.58.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/aspect-ratio/AspectRatio.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/Combobox.vue.d.ts +4 -4
- package/dist/runtime/components/elements/Button.vue.d.ts +3 -3
- package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +2 -2
- package/dist/runtime/components/elements/dialog/DialogClose.vue.d.ts +1 -1
- 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/forms/Input.vue.d.ts +6 -6
- package/dist/runtime/components/forms/Switch.vue +7 -6
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +1 -1
- 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/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/NavigationMenuLink.vue.d.ts +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.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/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/switch.d.ts +16 -12
- package/package.json +3 -3
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -6,8 +6,8 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
default?: (props: typeof __VLS_6) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import("vue").DefineComponent<NAspectRatioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAspectRatioProps> & Readonly<{}>, {
|
|
9
|
-
rounded: import("vue").HTMLAttributes["class"];
|
|
10
9
|
aspectRatio: string;
|
|
10
|
+
rounded: import("vue").HTMLAttributes["class"];
|
|
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;
|
|
@@ -3,12 +3,12 @@ import type { ExtractItemType, NComboboxGroupProps, NComboboxProps } from '../..
|
|
|
3
3
|
declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly "onUpdate:modelValue"?: ((value: ExtractItemType<T>) => any) | undefined;
|
|
6
|
+
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
6
7
|
readonly onHighlight?: ((payload: {
|
|
7
8
|
ref: HTMLElement;
|
|
8
9
|
value: ExtractItemType<T>;
|
|
9
10
|
} | undefined) => any) | undefined;
|
|
10
|
-
|
|
11
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onHighlight" | "onUpdate:open"> & NComboboxProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
11
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:open" | "onHighlight"> & NComboboxProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
12
12
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
13
13
|
attrs: any;
|
|
14
14
|
slots: {
|
|
@@ -76,10 +76,10 @@ declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awa
|
|
|
76
76
|
} & {
|
|
77
77
|
footer?: (props: {}) => any;
|
|
78
78
|
};
|
|
79
|
-
emit: ((evt: "update:modelValue", value: ExtractItemType<T>) => void) & ((evt: "highlight", payload: {
|
|
79
|
+
emit: ((evt: "update:modelValue", value: ExtractItemType<T>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "highlight", payload: {
|
|
80
80
|
ref: HTMLElement;
|
|
81
81
|
value: ExtractItemType<T>;
|
|
82
|
-
} | undefined) => void)
|
|
82
|
+
} | undefined) => void);
|
|
83
83
|
}>) => import("vue").VNode & {
|
|
84
84
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
85
85
|
};
|
|
@@ -10,9 +10,6 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
trailing?: (props: typeof __VLS_37) => any;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_component: import("vue").DefineComponent<NButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NButtonProps> & Readonly<{}>, {
|
|
13
|
-
type: "button" | "submit" | "reset";
|
|
14
|
-
loadingPlacement: "leading" | "trailing" | "label";
|
|
15
|
-
size: string;
|
|
16
13
|
una: {
|
|
17
14
|
btnDefaultVariant?: string;
|
|
18
15
|
btn?: string;
|
|
@@ -24,6 +21,9 @@ declare const __VLS_component: import("vue").DefineComponent<NButtonProps, {}, {
|
|
|
24
21
|
btnLoadingIcon?: string;
|
|
25
22
|
};
|
|
26
23
|
rounded: import("vue").HTMLAttributes["class"];
|
|
24
|
+
size: string;
|
|
25
|
+
type: "button" | "submit" | "reset";
|
|
26
|
+
loadingPlacement: "leading" | "trailing" | "label";
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
29
29
|
export default _default;
|
|
@@ -6,10 +6,10 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
fallback?: (props: typeof __VLS_14) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import("vue").DefineComponent<NAvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NAvatarProps> & Readonly<{}>, {
|
|
9
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
10
|
+
rounded: import("vue").HTMLAttributes["class"];
|
|
9
11
|
size: import("vue").HTMLAttributes["class"];
|
|
10
12
|
square: import("vue").HTMLAttributes["class"];
|
|
11
|
-
rounded: import("vue").HTMLAttributes["class"];
|
|
12
|
-
as: import("reka-ui").AsTag | import("vue").Component;
|
|
13
13
|
avatar: import("vue").HTMLAttributes["class"];
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
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<NDialogCloseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NDialogCloseProps> & Readonly<{}>, {
|
|
7
|
-
icon: boolean;
|
|
8
7
|
label: string;
|
|
8
|
+
icon: boolean;
|
|
9
9
|
btn: string;
|
|
10
10
|
square: import("vue").HTMLAttributes["class"];
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -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
|
-
size: string;
|
|
5
4
|
rounded: import("vue").HTMLAttributes["class"];
|
|
5
|
+
size: string;
|
|
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
|
-
icon: boolean;
|
|
8
7
|
label: string;
|
|
8
|
+
icon: boolean;
|
|
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
|
-
icon: boolean;
|
|
8
7
|
label: string;
|
|
8
|
+
icon: boolean;
|
|
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
|
-
icon: boolean;
|
|
8
7
|
label: string;
|
|
8
|
+
icon: boolean;
|
|
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
|
-
icon: boolean;
|
|
8
7
|
label: string;
|
|
8
|
+
icon: boolean;
|
|
9
9
|
square: import("vue").HTMLAttributes["class"];
|
|
10
10
|
paginationUnselected: string;
|
|
11
11
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -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
|
-
leading: (...args: any[]) => void;
|
|
17
|
-
trailing: (...args: any[]) => void;
|
|
18
16
|
blur: (...args: any[]) => void;
|
|
19
17
|
change: (...args: any[]) => void;
|
|
18
|
+
leading: (...args: any[]) => void;
|
|
19
|
+
trailing: (...args: any[]) => void;
|
|
20
20
|
"update:modelValue": (...args: any[]) => void;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
-
onLeading?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
onTrailing?: ((...args: any[]) => any) | undefined;
|
|
24
22
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
25
23
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onLeading?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
onTrailing?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
|
-
type: HTMLInputElement["type"] | "textarea";
|
|
29
28
|
size: string;
|
|
30
|
-
autofocusDelay: number;
|
|
31
29
|
resize: string | null;
|
|
30
|
+
type: HTMLInputElement["type"] | "textarea";
|
|
31
|
+
autofocusDelay: number;
|
|
32
32
|
rows: number;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -12,9 +12,8 @@ const props = defineProps({
|
|
|
12
12
|
icon: { type: null, required: false },
|
|
13
13
|
checkedIcon: { type: null, required: false },
|
|
14
14
|
uncheckedIcon: { type: null, required: false },
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
switchUnchecked: { type: null, required: false, default: "~" },
|
|
15
|
+
switchChecked: { type: null, required: false, default: "primary" },
|
|
16
|
+
switchUnchecked: { type: null, required: false, default: "gray" },
|
|
18
17
|
una: { type: Object, required: false },
|
|
19
18
|
defaultValue: { type: Boolean, required: false },
|
|
20
19
|
modelValue: { type: [Boolean, null], required: false },
|
|
@@ -24,7 +23,9 @@ const props = defineProps({
|
|
|
24
23
|
asChild: { type: Boolean, required: false },
|
|
25
24
|
as: { type: [String, Object, Function], required: false },
|
|
26
25
|
name: { type: String, required: false },
|
|
27
|
-
required: { type: Boolean, required: false }
|
|
26
|
+
required: { type: Boolean, required: false },
|
|
27
|
+
class: { type: null, required: false },
|
|
28
|
+
size: { type: null, required: false, default: "md" }
|
|
28
29
|
});
|
|
29
30
|
const emit = defineEmits(["update:modelValue"]);
|
|
30
31
|
const rootPropsEmits = useForwardPropsEmits(reactivePick(props, "as", "asChild", "modelValue", "defaultValue", "disabled", "id", "name", "required", "value"), emit);
|
|
@@ -37,7 +38,7 @@ const rootPropsEmits = useForwardPropsEmits(reactivePick(props, "as", "asChild",
|
|
|
37
38
|
:class="cn(
|
|
38
39
|
'peer switch',
|
|
39
40
|
una?.switch,
|
|
40
|
-
modelValue ? una?.
|
|
41
|
+
modelValue ? una?.switchCheckedBase : una?.switchUncheckedBase
|
|
41
42
|
)"
|
|
42
43
|
:disabled="disabled || loading"
|
|
43
44
|
:switch-checked
|
|
@@ -46,7 +47,7 @@ const rootPropsEmits = useForwardPropsEmits(reactivePick(props, "as", "asChild",
|
|
|
46
47
|
>
|
|
47
48
|
<SwitchThumb
|
|
48
49
|
:class="cn(
|
|
49
|
-
'switch-thumb',
|
|
50
|
+
'peer switch-thumb',
|
|
50
51
|
una?.switchThumb,
|
|
51
52
|
modelValue ? 'switch-thumb-checked' : 'switch-thumb-unchecked',
|
|
52
53
|
modelValue ? una?.switchThumbChecked : una?.switchThumbUnchecked
|
|
@@ -8,8 +8,8 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
description?: (props: typeof __VLS_19) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_component: import("vue").DefineComponent<NRadioGroupItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NRadioGroupItemProps> & Readonly<{}>, {
|
|
11
|
-
icon: import("vue").HTMLAttributes["class"];
|
|
12
11
|
size: import("vue").HTMLAttributes["class"];
|
|
12
|
+
icon: import("vue").HTMLAttributes["class"];
|
|
13
13
|
square: import("vue").HTMLAttributes["class"];
|
|
14
14
|
radioGroup: import("vue").HTMLAttributes["class"];
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactivePick } from "@vueuse/core";
|
|
3
|
+
import { HoverCardRoot, useForwardPropsEmits } from "reka-ui";
|
|
4
|
+
import HoverCardArrow from "./HoverCardArrow.vue";
|
|
5
|
+
import HoverCardContent from "./HoverCardContent.vue";
|
|
6
|
+
import HoverCardTrigger from "./HoverCardTrigger.vue";
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
hoverCard: { type: null, required: false, default: "outline-gray" },
|
|
9
|
+
arrow: { type: Boolean, required: false },
|
|
10
|
+
_hoverCardContent: { type: Object, required: false },
|
|
11
|
+
_hoverCardTrigger: { type: Object, required: false },
|
|
12
|
+
_hoverCardArrow: { type: Object, required: false },
|
|
13
|
+
una: { type: Object, required: false },
|
|
14
|
+
defaultOpen: { type: Boolean, required: false },
|
|
15
|
+
open: { type: Boolean, required: false },
|
|
16
|
+
openDelay: { type: Number, required: false },
|
|
17
|
+
closeDelay: { type: Number, required: false },
|
|
18
|
+
reference: { type: null, required: false },
|
|
19
|
+
asChild: { type: Boolean, required: false },
|
|
20
|
+
as: { type: [String, Object, Function], required: false },
|
|
21
|
+
type: { type: String, required: false },
|
|
22
|
+
loadingPlacement: { type: String, required: false },
|
|
23
|
+
icon: { type: Boolean, required: false },
|
|
24
|
+
disabled: { type: Boolean, required: false },
|
|
25
|
+
reverse: { type: Boolean, required: false },
|
|
26
|
+
loading: { type: Boolean, required: false },
|
|
27
|
+
block: { type: Boolean, required: false },
|
|
28
|
+
to: { type: null, required: false },
|
|
29
|
+
label: { type: String, required: false },
|
|
30
|
+
btn: { type: String, required: false },
|
|
31
|
+
leading: { type: String, required: false },
|
|
32
|
+
trailing: { type: String, required: false },
|
|
33
|
+
square: { type: null, required: false },
|
|
34
|
+
rounded: { type: null, required: false },
|
|
35
|
+
class: { type: null, required: false },
|
|
36
|
+
breadcrumbActive: { type: String, required: false },
|
|
37
|
+
breadcrumbInactive: { type: String, required: false },
|
|
38
|
+
paginationSelected: { type: String, required: false },
|
|
39
|
+
paginationUnselected: { type: String, required: false },
|
|
40
|
+
dropdownMenu: { type: String, required: false },
|
|
41
|
+
toggleOn: { type: String, required: false },
|
|
42
|
+
toggleOff: { type: String, required: false },
|
|
43
|
+
tabsActive: { type: String, required: false },
|
|
44
|
+
tabsInactive: { type: String, required: false },
|
|
45
|
+
navigationMenu: { type: String, required: false },
|
|
46
|
+
navigationMenuLink: { type: String, required: false },
|
|
47
|
+
ariaLabel: { type: String, required: false },
|
|
48
|
+
size: { type: null, required: false }
|
|
49
|
+
});
|
|
50
|
+
const emits = defineEmits(["update:open"]);
|
|
51
|
+
const rootProps = reactivePick(props, [
|
|
52
|
+
"closeDelay",
|
|
53
|
+
"openDelay",
|
|
54
|
+
"defaultOpen",
|
|
55
|
+
"open"
|
|
56
|
+
]);
|
|
57
|
+
const forwarded = useForwardPropsEmits(rootProps, emits);
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<template>
|
|
61
|
+
<HoverCardRoot
|
|
62
|
+
v-slot="{ open }"
|
|
63
|
+
v-bind="forwarded"
|
|
64
|
+
>
|
|
65
|
+
<slot>
|
|
66
|
+
<HoverCardTrigger
|
|
67
|
+
as-child
|
|
68
|
+
:una
|
|
69
|
+
v-bind="_hoverCardTrigger"
|
|
70
|
+
>
|
|
71
|
+
<slot name="trigger" :open />
|
|
72
|
+
</HoverCardTrigger>
|
|
73
|
+
<HoverCardContent v-bind="_hoverCardContent" :hover-card :una>
|
|
74
|
+
<slot name="content" />
|
|
75
|
+
<HoverCardArrow v-if="props.arrow" v-bind="_hoverCardArrow" :hover-card :una />
|
|
76
|
+
</HoverCardContent>
|
|
77
|
+
</slot>
|
|
78
|
+
</HoverCardRoot>
|
|
79
|
+
</template>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { NHoverCardProps } from '../../types/index.js';
|
|
2
|
+
declare var __VLS_6: {}, __VLS_11: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
}, __VLS_16: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_6) => any;
|
|
7
|
+
} & {
|
|
8
|
+
trigger?: (props: typeof __VLS_11) => any;
|
|
9
|
+
} & {
|
|
10
|
+
content?: (props: typeof __VLS_16) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<NHoverCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:open": (value: boolean) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<NHoverCardProps> & Readonly<{
|
|
15
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
hoverCard: import("vue").HTMLAttributes["class"];
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { HoverCardArrow } from "reka-ui";
|
|
4
|
+
import { cn } from "../../utils";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
una: { type: Object, required: false },
|
|
7
|
+
width: { type: Number, required: false, default: 12 },
|
|
8
|
+
height: { type: Number, required: false, default: 6 },
|
|
9
|
+
rounded: { type: Boolean, required: false },
|
|
10
|
+
asChild: { type: Boolean, required: false },
|
|
11
|
+
as: { type: [String, Object, Function], required: false },
|
|
12
|
+
hoverCard: { type: null, required: false },
|
|
13
|
+
class: { type: null, required: false },
|
|
14
|
+
size: { type: null, required: false }
|
|
15
|
+
});
|
|
16
|
+
const forwarded = reactiveOmit(props, "class", "una");
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<HoverCardArrow
|
|
21
|
+
v-bind="forwarded"
|
|
22
|
+
data-slot="hover-card-arrow"
|
|
23
|
+
:class="cn(
|
|
24
|
+
'hover-card-arrow',
|
|
25
|
+
props.una?.hoverCardArrow,
|
|
26
|
+
props.class
|
|
27
|
+
)"
|
|
28
|
+
:hover-card
|
|
29
|
+
/>
|
|
30
|
+
</template>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NHoverCardArrowProps } from '../../types/index.js';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<NHoverCardArrowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NHoverCardArrowProps> & Readonly<{}>, {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -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
|
+
};
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -4,8 +4,8 @@ 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;
|
|
@@ -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>;
|
|
@@ -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";
|
|
@@ -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 {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.59.0",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"unocss": "^66.0.0",
|
|
59
59
|
"unocss-preset-animations": "^1.2.1",
|
|
60
60
|
"vaul-vue": "^0.4.1",
|
|
61
|
-
"@una-ui/
|
|
62
|
-
"@una-ui/
|
|
61
|
+
"@una-ui/extractor-vue-script": "^0.59.0",
|
|
62
|
+
"@una-ui/preset": "^0.59.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@iconify-json/lucide": "^1.2.47",
|