@una-ui/nuxt 1.0.0-alpha.1 → 1.0.0-alpha.10
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 +3 -3
- package/dist/module.mjs +10 -8
- 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/alert-dialog/AlertDialogContent.vue +0 -1
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/Combobox.vue +3 -2
- package/dist/runtime/components/combobox/Combobox.vue.d.ts +19 -19
- package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/ComboboxList.vue +3 -0
- package/dist/runtime/components/combobox/ComboboxTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/data/table/Table.vue +6 -1
- package/dist/runtime/components/data/table/TableEmpty.vue +17 -9
- package/dist/runtime/components/data/table/TableEmpty.vue.d.ts +4 -0
- package/dist/runtime/components/drawer/Drawer.vue.d.ts +1 -1
- package/dist/runtime/components/drawer/DrawerContent.vue +0 -1
- package/dist/runtime/components/drawer/DrawerOverlay.vue +1 -0
- package/dist/runtime/components/elements/Accordion.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Badge.vue.d.ts +1 -5
- 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/collapsible/Collapsible.vue.d.ts +2 -2
- package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue +1 -0
- package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +1 -1
- package/dist/runtime/components/elements/dialog/DialogContent.vue +0 -1
- package/dist/runtime/components/elements/dialog/DialogDescription.vue +2 -1
- package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +0 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue.d.ts +4 -4
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +3 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +3 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/Pagination.vue.d.ts +2 -5
- package/dist/runtime/components/elements/pagination/PaginationListItem.vue.d.ts +1 -1
- package/dist/runtime/components/elements/popover/Popover.vue.d.ts +1 -1
- package/dist/runtime/components/elements/popover/PopoverContent.vue +3 -0
- 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/elements/tooltip/TooltipContent.vue +1 -0
- package/dist/runtime/components/forms/Input.vue.d.ts +1 -13
- package/dist/runtime/components/forms/Switch.vue.d.ts +2 -2
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue +1 -2
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +5 -5
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +1 -1
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +2 -1
- package/dist/runtime/components/forms/select/Select.vue +4 -6
- package/dist/runtime/components/forms/select/Select.vue.d.ts +18 -20
- package/dist/runtime/components/forms/select/SelectContent.vue +3 -0
- package/dist/runtime/components/hover-card/HoverCard.vue.d.ts +1 -1
- package/dist/runtime/components/hover-card/HoverCardContent.vue +3 -0
- package/dist/runtime/components/misc/ThemeSwitcher.vue +25 -19
- package/dist/runtime/components/misc/ThemeSwitcher.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue.d.ts +6 -16
- package/dist/runtime/components/navigation-menu/NavigationMenu.vue.d.ts +11 -11
- package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue +1 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue +1 -0
- package/dist/runtime/components/number-field/NumberField.vue +1 -0
- 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 +1 -1
- package/dist/runtime/components/pin-input/PinInput.vue +139 -0
- package/dist/runtime/components/pin-input/PinInput.vue.d.ts +33 -0
- package/dist/runtime/components/pin-input/PinInputGroup.vue +28 -0
- package/dist/runtime/components/pin-input/PinInputGroup.vue.d.ts +13 -0
- package/dist/runtime/components/pin-input/PinInputSeparator.vue +30 -0
- package/dist/runtime/components/pin-input/PinInputSeparator.vue.d.ts +15 -0
- package/dist/runtime/components/pin-input/PinInputSlot.vue +46 -0
- package/dist/runtime/components/pin-input/PinInputSlot.vue.d.ts +5 -0
- package/dist/runtime/components/resizable/ResizableHandle.vue +1 -0
- package/dist/runtime/components/resizable/ResizablePanel.vue.d.ts +1 -7
- package/dist/runtime/components/resizable/ResizablePanelGroup.vue.d.ts +1 -3
- package/dist/runtime/components/sheet/Sheet.vue.d.ts +1 -1
- package/dist/runtime/components/sheet/SheetContent.vue +6 -2
- package/dist/runtime/components/sheet/SheetOverlay.vue +6 -1
- package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +1 -1
- package/dist/runtime/components/stepper/Stepper.vue +163 -0
- package/dist/runtime/components/stepper/Stepper.vue.d.ts +62 -0
- package/dist/runtime/components/stepper/StepperContainer.vue +21 -0
- package/dist/runtime/components/stepper/StepperContainer.vue.d.ts +15 -0
- package/dist/runtime/components/stepper/StepperDescription.vue +28 -0
- package/dist/runtime/components/stepper/StepperDescription.vue.d.ts +13 -0
- package/dist/runtime/components/stepper/StepperHeader.vue +21 -0
- package/dist/runtime/components/stepper/StepperHeader.vue.d.ts +15 -0
- package/dist/runtime/components/stepper/StepperIndicator.vue +34 -0
- package/dist/runtime/components/stepper/StepperIndicator.vue.d.ts +15 -0
- package/dist/runtime/components/stepper/StepperItem.vue +44 -0
- package/dist/runtime/components/stepper/StepperItem.vue.d.ts +15 -0
- package/dist/runtime/components/stepper/StepperSeparator.vue +29 -0
- package/dist/runtime/components/stepper/StepperSeparator.vue.d.ts +6 -0
- package/dist/runtime/components/stepper/StepperTitle.vue +27 -0
- package/dist/runtime/components/stepper/StepperTitle.vue.d.ts +13 -0
- package/dist/runtime/components/stepper/StepperTrigger.vue +29 -0
- package/dist/runtime/components/stepper/StepperTrigger.vue.d.ts +15 -0
- package/dist/runtime/components/stepper/StepperWrapper.vue +21 -0
- package/dist/runtime/components/stepper/StepperWrapper.vue.d.ts +15 -0
- package/dist/runtime/components/toggle-group/ToggleGroup.vue +70 -0
- package/dist/runtime/components/toggle-group/ToggleGroup.vue.d.ts +23 -0
- package/dist/runtime/components/toggle-group/ToggleGroupItem.vue +75 -0
- package/dist/runtime/components/toggle-group/ToggleGroupItem.vue.d.ts +18 -0
- package/dist/runtime/composables/useUnaSettings.js +6 -4
- package/dist/runtime/types/combobox.d.ts +3 -2
- package/dist/runtime/types/index.d.ts +6 -3
- package/dist/runtime/types/index.js +3 -0
- package/dist/runtime/types/pin-input.d.ts +88 -0
- package/dist/runtime/types/pin-input.js +0 -0
- package/dist/runtime/types/radio-group.d.ts +5 -3
- package/dist/runtime/types/select.d.ts +6 -3
- package/dist/runtime/types/stepper.d.ts +129 -0
- package/dist/runtime/types/stepper.js +0 -0
- package/dist/runtime/types/table.d.ts +16 -3
- package/dist/runtime/types/toggle-group.d.ts +39 -0
- package/dist/runtime/types/toggle-group.js +0 -0
- package/package.json +18 -17
|
@@ -12,19 +12,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
12
12
|
blur: () => void | undefined;
|
|
13
13
|
select: () => void | undefined;
|
|
14
14
|
inputRef: import("vue").Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
15
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
-
leading: (...args: any[]) => void;
|
|
17
|
-
trailing: (...args: any[]) => void;
|
|
18
|
-
blur: (...args: any[]) => void;
|
|
19
|
-
change: (...args: any[]) => void;
|
|
20
|
-
"update:modelValue": (...args: any[]) => void;
|
|
21
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
-
onLeading?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
onTrailing?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
25
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
-
}>, {
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
|
|
28
16
|
type: HTMLInputElement["type"] | "textarea";
|
|
29
17
|
size: string;
|
|
30
18
|
autofocusDelay: number;
|
|
@@ -8,6 +8,7 @@ import { RadioGroupRoot, useForwardPropsEmits } from "reka-ui";
|
|
|
8
8
|
import { cn } from "../../../utils";
|
|
9
9
|
import RadioGroupItem from "./RadioGroupItem.vue";
|
|
10
10
|
const props = defineProps({
|
|
11
|
+
modelValue: { type: null, required: true },
|
|
11
12
|
items: { type: Array, required: false },
|
|
12
13
|
labelKey: { type: null, required: false },
|
|
13
14
|
valueKey: { type: null, required: false },
|
|
@@ -20,7 +21,6 @@ const props = defineProps({
|
|
|
20
21
|
square: { type: null, required: false, default: "1em" },
|
|
21
22
|
rounded: { type: null, required: false },
|
|
22
23
|
icon: { type: null, required: false },
|
|
23
|
-
modelValue: { type: null, required: false },
|
|
24
24
|
defaultValue: { type: null, required: false },
|
|
25
25
|
disabled: { type: Boolean, required: false },
|
|
26
26
|
orientation: { type: String, required: false },
|
|
@@ -71,7 +71,6 @@ function getItemDescription(item) {
|
|
|
71
71
|
|
|
72
72
|
<template>
|
|
73
73
|
<RadioGroupRoot
|
|
74
|
-
v-slot="{ modelValue }"
|
|
75
74
|
:class="cn(
|
|
76
75
|
'radio-group',
|
|
77
76
|
orientation === 'horizontal' ? 'radio-group-orientation-horizontal' : 'radio-group-orientation-vertical',
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { AcceptableValue } from 'reka-ui';
|
|
2
2
|
import type { NRadioGroupItemProps, NRadioGroupProps } from '../../../types/index.js';
|
|
3
|
-
declare const _default: <T extends AcceptableValue
|
|
3
|
+
declare const _default: <T extends AcceptableValue, Item extends T | NRadioGroupItemProps<T>>(__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"?: ((payload: string) => any) | undefined;
|
|
6
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & NRadioGroupProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
6
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & NRadioGroupProps<T, Item> & Partial<{}>> & import("vue").PublicProps;
|
|
7
7
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
8
8
|
attrs: any;
|
|
9
9
|
slots: {
|
|
10
10
|
default?: (props: {
|
|
11
|
-
modelValue:
|
|
11
|
+
modelValue: any;
|
|
12
12
|
}) => any;
|
|
13
13
|
} & {
|
|
14
14
|
label?: (props: {
|
|
15
|
-
item:
|
|
15
|
+
item: any;
|
|
16
16
|
}) => any;
|
|
17
17
|
} & {
|
|
18
18
|
description?: (props: {
|
|
19
|
-
item:
|
|
19
|
+
item: any;
|
|
20
20
|
}) => any;
|
|
21
21
|
};
|
|
22
22
|
emit: (evt: "update:modelValue", payload: string) => void;
|
|
@@ -12,6 +12,7 @@ defineOptions({
|
|
|
12
12
|
inheritAttrs: false
|
|
13
13
|
});
|
|
14
14
|
const props = defineProps({
|
|
15
|
+
value: { type: null, required: true },
|
|
15
16
|
label: { type: String, required: false },
|
|
16
17
|
radioGroup: { type: null, required: false, default: "primary" },
|
|
17
18
|
description: { type: String, required: false },
|
|
@@ -22,7 +23,6 @@ const props = defineProps({
|
|
|
22
23
|
rounded: { type: null, required: false },
|
|
23
24
|
icon: { type: null, required: false, default: "radio-group-indicator-icon" },
|
|
24
25
|
id: { type: String, required: false },
|
|
25
|
-
value: { type: null, required: false },
|
|
26
26
|
disabled: { type: Boolean, required: false },
|
|
27
27
|
asChild: { type: Boolean, required: false },
|
|
28
28
|
as: { type: null, required: false },
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { NRadioGroupItemProps } from '../../../types/index.js';
|
|
2
|
+
type __VLS_Props = NRadioGroupItemProps;
|
|
2
3
|
declare var __VLS_9: {}, __VLS_17: {}, __VLS_19: {};
|
|
3
4
|
type __VLS_Slots = {} & {
|
|
4
5
|
icon?: (props: typeof __VLS_9) => any;
|
|
@@ -7,7 +8,7 @@ type __VLS_Slots = {} & {
|
|
|
7
8
|
} & {
|
|
8
9
|
description?: (props: typeof __VLS_19) => any;
|
|
9
10
|
};
|
|
10
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
12
|
icon: import("vue").HTMLAttributes["class"];
|
|
12
13
|
size: import("vue").HTMLAttributes["class"];
|
|
13
14
|
square: import("vue").HTMLAttributes["class"];
|
|
@@ -13,11 +13,14 @@ import SelectSeparator from "./SelectSeparator.vue";
|
|
|
13
13
|
import SelectTrigger from "./SelectTrigger.vue";
|
|
14
14
|
import SelectValue from "./SelectValue.vue";
|
|
15
15
|
const props = defineProps({
|
|
16
|
-
items: { type:
|
|
16
|
+
items: { type: null, required: true },
|
|
17
17
|
itemKey: { type: null, required: false },
|
|
18
18
|
valueKey: { type: null, required: false },
|
|
19
19
|
label: { type: String, required: false },
|
|
20
20
|
groupSeparator: { type: Boolean, required: false },
|
|
21
|
+
defaultValue: { type: null, required: false },
|
|
22
|
+
modelValue: { type: null, required: false },
|
|
23
|
+
multiple: { type: null, required: false },
|
|
21
24
|
_selectScrollUpButton: { type: Object, required: false },
|
|
22
25
|
_selectItemText: { type: Object, required: false },
|
|
23
26
|
_selectScrollDownButton: { type: Object, required: false },
|
|
@@ -31,11 +34,8 @@ const props = defineProps({
|
|
|
31
34
|
una: { type: Object, required: false },
|
|
32
35
|
open: { type: Boolean, required: false },
|
|
33
36
|
defaultOpen: { type: Boolean, required: false },
|
|
34
|
-
defaultValue: { type: null, required: false },
|
|
35
|
-
modelValue: { type: null, required: false },
|
|
36
37
|
by: { type: [String, Function], required: false },
|
|
37
38
|
dir: { type: String, required: false },
|
|
38
|
-
multiple: { type: Boolean, required: false },
|
|
39
39
|
autocomplete: { type: String, required: false },
|
|
40
40
|
disabled: { type: Boolean, required: false },
|
|
41
41
|
name: { type: String, required: false },
|
|
@@ -87,7 +87,6 @@ function isItemSelected(item, modelValue) {
|
|
|
87
87
|
|
|
88
88
|
<template>
|
|
89
89
|
<SelectRoot
|
|
90
|
-
v-slot="{ modelValue, open }"
|
|
91
90
|
:class="cn(
|
|
92
91
|
props.una?.select,
|
|
93
92
|
props.class
|
|
@@ -211,7 +210,6 @@ function isItemSelected(item, modelValue) {
|
|
|
211
210
|
</slot>
|
|
212
211
|
</SelectGroup>
|
|
213
212
|
</template>
|
|
214
|
-
<slot />
|
|
215
213
|
</slot>
|
|
216
214
|
</SelectContent>
|
|
217
215
|
</slot>
|
|
@@ -1,66 +1,64 @@
|
|
|
1
1
|
import type { AcceptableValue } from 'reka-ui';
|
|
2
2
|
import type { NSelectProps, SelectGroup as SelectGroupType } from '../../../types/index.js';
|
|
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<{
|
|
3
|
+
declare const _default: <T extends AcceptableValue, I extends Array<T | SelectGroupType<T>>, M extends boolean = false>(__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: T) => any) | undefined;
|
|
6
6
|
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
7
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:open"> & NSelectProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
7
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:open"> & NSelectProps<T, I, M> & Partial<{}>> & import("vue").PublicProps;
|
|
8
8
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: {
|
|
11
11
|
default?: (props: {
|
|
12
|
-
modelValue:
|
|
13
|
-
open:
|
|
12
|
+
modelValue: any;
|
|
13
|
+
open: any;
|
|
14
14
|
}) => any;
|
|
15
15
|
} & {
|
|
16
16
|
'trigger-wrapper'?: (props: {
|
|
17
|
-
modelValue:
|
|
18
|
-
open:
|
|
17
|
+
modelValue: any;
|
|
18
|
+
open: any;
|
|
19
19
|
}) => any;
|
|
20
20
|
} & {
|
|
21
21
|
trigger?: (props: {
|
|
22
|
-
modelValue:
|
|
23
|
-
open:
|
|
22
|
+
modelValue: any;
|
|
23
|
+
open: any;
|
|
24
24
|
}) => any;
|
|
25
25
|
} & {
|
|
26
26
|
value?: (props: {
|
|
27
|
-
modelValue:
|
|
28
|
-
open:
|
|
27
|
+
modelValue: any;
|
|
28
|
+
open: any;
|
|
29
29
|
}) => any;
|
|
30
30
|
} & {
|
|
31
31
|
content?: (props: {
|
|
32
|
-
items:
|
|
32
|
+
items: any;
|
|
33
33
|
}) => any;
|
|
34
34
|
} & {
|
|
35
35
|
label?: (props: {
|
|
36
|
-
label:
|
|
36
|
+
label: any;
|
|
37
37
|
}) => any;
|
|
38
38
|
} & {
|
|
39
39
|
item?: (props: {
|
|
40
|
-
item:
|
|
40
|
+
item: any;
|
|
41
41
|
}) => any;
|
|
42
42
|
} & {
|
|
43
43
|
indicator?: (props: {
|
|
44
|
-
item:
|
|
44
|
+
item: any;
|
|
45
45
|
}) => any;
|
|
46
46
|
} & {
|
|
47
47
|
group?: (props: {
|
|
48
|
-
items:
|
|
48
|
+
items: any;
|
|
49
49
|
}) => any;
|
|
50
50
|
} & {
|
|
51
51
|
label?: (props: {
|
|
52
|
-
label:
|
|
52
|
+
label: any;
|
|
53
53
|
}) => any;
|
|
54
54
|
} & {
|
|
55
55
|
item?: (props: {
|
|
56
|
-
item:
|
|
56
|
+
item: any;
|
|
57
57
|
}) => any;
|
|
58
58
|
} & {
|
|
59
59
|
indicator?: (props: {
|
|
60
|
-
item:
|
|
60
|
+
item: any;
|
|
61
61
|
}) => any;
|
|
62
|
-
} & {
|
|
63
|
-
default?: (props: {}) => any;
|
|
64
62
|
};
|
|
65
63
|
emit: ((evt: "update:modelValue", value: T) => void) & ((evt: "update:open", value: boolean) => void);
|
|
66
64
|
}>) => import("vue").VNode & {
|
|
@@ -22,8 +22,10 @@ const props = defineProps({
|
|
|
22
22
|
bodyLock: { type: Boolean, required: false },
|
|
23
23
|
side: { type: null, required: false },
|
|
24
24
|
sideOffset: { type: Number, required: false },
|
|
25
|
+
sideFlip: { type: Boolean, required: false },
|
|
25
26
|
align: { type: null, required: false },
|
|
26
27
|
alignOffset: { type: Number, required: false },
|
|
28
|
+
alignFlip: { type: Boolean, required: false },
|
|
27
29
|
avoidCollisions: { type: Boolean, required: false },
|
|
28
30
|
collisionBoundary: { type: null, required: false },
|
|
29
31
|
collisionPadding: { type: [Number, Object], required: false },
|
|
@@ -51,6 +53,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
51
53
|
v-bind="{ ...forwarded, ...$attrs }"
|
|
52
54
|
:class="
|
|
53
55
|
cn(
|
|
56
|
+
'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',
|
|
54
57
|
'select-content',
|
|
55
58
|
position === 'popper' && 'select-content-popper',
|
|
56
59
|
props.class
|
|
@@ -14,8 +14,10 @@ const props = defineProps({
|
|
|
14
14
|
forceMount: { type: Boolean, required: false },
|
|
15
15
|
side: { type: null, required: false },
|
|
16
16
|
sideOffset: { type: Number, required: false, default: 4 },
|
|
17
|
+
sideFlip: { type: Boolean, required: false },
|
|
17
18
|
align: { type: null, required: false },
|
|
18
19
|
alignOffset: { type: Number, required: false },
|
|
20
|
+
alignFlip: { type: Boolean, required: false },
|
|
19
21
|
avoidCollisions: { type: Boolean, required: false },
|
|
20
22
|
collisionBoundary: { type: null, required: false },
|
|
21
23
|
collisionPadding: { type: [Number, Object], required: false },
|
|
@@ -44,6 +46,7 @@ const forwarded = useForwardProps(delegatedProps);
|
|
|
44
46
|
v-bind="{ ...forwarded, ...$attrs }"
|
|
45
47
|
:class="
|
|
46
48
|
cn(
|
|
49
|
+
'data-[state=hidden]:opacity-0 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',
|
|
47
50
|
'hover-card-content',
|
|
48
51
|
props.una?.hoverCardContent,
|
|
49
52
|
props.class
|
|
@@ -25,23 +25,23 @@ const currentPrimaryThemeName = computed(() => {
|
|
|
25
25
|
});
|
|
26
26
|
const currentGrayThemeHex = computed(() => settings.value.grayColors?.["--una-gray-hex"]);
|
|
27
27
|
const currentGrayThemeName = computed(() => {
|
|
28
|
-
if (settings.value.theme
|
|
29
|
-
return
|
|
28
|
+
if (settings.value.theme) {
|
|
29
|
+
return settings.value.theme;
|
|
30
30
|
}
|
|
31
31
|
const theme = grayThemes.find(([, theme2]) => theme2["--una-gray-hex"] === currentGrayThemeHex.value);
|
|
32
32
|
return theme ? theme[0] : "";
|
|
33
33
|
});
|
|
34
|
-
function
|
|
34
|
+
function updateTheme(theme) {
|
|
35
35
|
settings.value.theme = theme;
|
|
36
|
-
settings.value.primary =
|
|
37
|
-
settings.value.gray =
|
|
36
|
+
settings.value.primary = false;
|
|
37
|
+
settings.value.gray = false;
|
|
38
38
|
}
|
|
39
39
|
function updatePrimaryTheme(theme) {
|
|
40
|
-
settings.value.theme =
|
|
40
|
+
settings.value.theme = false;
|
|
41
41
|
settings.value.primary = theme;
|
|
42
42
|
}
|
|
43
43
|
function updateGrayTheme(theme) {
|
|
44
|
-
settings.value.theme =
|
|
44
|
+
settings.value.theme = false;
|
|
45
45
|
settings.value.gray = theme;
|
|
46
46
|
}
|
|
47
47
|
function shuffleTheme() {
|
|
@@ -114,7 +114,7 @@ function shuffleTheme() {
|
|
|
114
114
|
class="justify-start gap-2 ring-primary"
|
|
115
115
|
:aria-label="`Theme: ${theme.name}`"
|
|
116
116
|
:class="currentPrimaryThemeName === theme?.name && 'ring-2'"
|
|
117
|
-
@click="
|
|
117
|
+
@click="updateTheme(theme.name)"
|
|
118
118
|
>
|
|
119
119
|
<template #leading>
|
|
120
120
|
<Icon
|
|
@@ -169,19 +169,25 @@ function shuffleTheme() {
|
|
|
169
169
|
<div class="space-y-2">
|
|
170
170
|
<Label for="color" class="text-xs"> Gray Color </Label>
|
|
171
171
|
<div class="grid grid-cols-7 gap-3">
|
|
172
|
-
<
|
|
172
|
+
<template
|
|
173
173
|
v-for="[key, theme] in grayThemes"
|
|
174
174
|
:key="key"
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
175
|
+
>
|
|
176
|
+
<button
|
|
177
|
+
:title="capitalize(key)"
|
|
178
|
+
:style="{
|
|
179
|
+
'--c-gray': `oklch(${theme['--una-gray-600']})`,
|
|
180
|
+
'--c-gray-foreground': `oklch(${theme['--una-gray-500']})`
|
|
181
|
+
}"
|
|
182
|
+
class="bg-$c-gray transition-all dark:bg-$c-gray-foreground"
|
|
183
|
+
rounded="full"
|
|
184
|
+
square="6.5"
|
|
185
|
+
:class="[currentGrayThemeName === key ? 'ring-2' : 'scale-93']"
|
|
186
|
+
ring="gray offset-4 offset-background"
|
|
187
|
+
:aria-label="`Gray Color: ${key}`"
|
|
188
|
+
@click="updateGrayTheme(key)"
|
|
189
|
+
/>
|
|
190
|
+
</template>
|
|
185
191
|
</div>
|
|
186
192
|
</div>
|
|
187
193
|
|
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
import type { NBreadcrumbProps } from '../../../types/index.js';
|
|
2
2
|
declare var __VLS_5: {
|
|
3
|
-
items:
|
|
4
|
-
children?: import("../../../types/index.js").NButtonProps[];
|
|
5
|
-
}>[];
|
|
3
|
+
items: any;
|
|
6
4
|
}, __VLS_10: {
|
|
7
|
-
item:
|
|
8
|
-
children?: import("../../../types/index.js").NButtonProps[];
|
|
9
|
-
}>;
|
|
5
|
+
item: any;
|
|
10
6
|
}, __VLS_15: {
|
|
11
|
-
item:
|
|
12
|
-
children?: import("../../../types/index.js").NButtonProps[];
|
|
13
|
-
}>;
|
|
7
|
+
item: any;
|
|
14
8
|
}, __VLS_20: {
|
|
15
|
-
item:
|
|
16
|
-
|
|
17
|
-
}>;
|
|
18
|
-
index: number;
|
|
9
|
+
item: any;
|
|
10
|
+
index: any;
|
|
19
11
|
isActive: boolean;
|
|
20
12
|
}, __VLS_22: {
|
|
21
|
-
item:
|
|
22
|
-
children?: import("../../../types/index.js").NButtonProps[];
|
|
23
|
-
}>;
|
|
13
|
+
item: any;
|
|
24
14
|
}, __VLS_33: {};
|
|
25
15
|
type __VLS_Slots = {} & {
|
|
26
16
|
root?: (props: typeof __VLS_5) => any;
|
|
@@ -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:
|
|
11
|
-
active:
|
|
10
|
+
item: any;
|
|
11
|
+
active: any;
|
|
12
12
|
}) => any) | undefined;
|
|
13
13
|
} & {
|
|
14
|
-
[x:
|
|
15
|
-
items:
|
|
16
|
-
item:
|
|
14
|
+
[x: string]: ((props: {
|
|
15
|
+
items: any;
|
|
16
|
+
item: any;
|
|
17
17
|
}) => any) | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
[x: string]: ((props: {
|
|
20
|
-
item:
|
|
20
|
+
item: any;
|
|
21
21
|
}) => any) | undefined;
|
|
22
22
|
} & {
|
|
23
23
|
default?: (props: {
|
|
24
|
-
items:
|
|
24
|
+
items: any;
|
|
25
25
|
}) => any;
|
|
26
26
|
} & {
|
|
27
27
|
list?: (props: {
|
|
28
|
-
items:
|
|
28
|
+
items: any;
|
|
29
29
|
}) => any;
|
|
30
30
|
} & {
|
|
31
31
|
trigger?: (props: {
|
|
32
|
-
modelValue:
|
|
33
|
-
item:
|
|
34
|
-
index:
|
|
32
|
+
modelValue: any;
|
|
33
|
+
item: any;
|
|
34
|
+
index: any;
|
|
35
35
|
}) => any;
|
|
36
36
|
} & {
|
|
37
37
|
viewport?: (props: {}) => any;
|
|
@@ -18,6 +18,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
18
18
|
<NavigationMenuIndicator
|
|
19
19
|
v-bind="forwardedProps"
|
|
20
20
|
:class="cn(
|
|
21
|
+
'data-[state=hidden]:opacity-0 data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut',
|
|
21
22
|
'navigation-menu-indicator',
|
|
22
23
|
props.una?.navigationMenuIndicator,
|
|
23
24
|
props.class
|
|
@@ -34,6 +34,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
34
34
|
cn(
|
|
35
35
|
'navigation-menu-viewport',
|
|
36
36
|
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90',
|
|
37
|
+
'data-[state=closed]:fade-out data-[state=open]:fade-in',
|
|
37
38
|
props.una?.navigationMenuViewport
|
|
38
39
|
)
|
|
39
40
|
"
|
|
@@ -19,6 +19,7 @@ const props = defineProps({
|
|
|
19
19
|
formatOptions: { type: null, required: false },
|
|
20
20
|
locale: { type: String, required: false },
|
|
21
21
|
disabled: { type: Boolean, required: false },
|
|
22
|
+
readonly: { type: Boolean, required: false },
|
|
22
23
|
disableWheelChange: { type: Boolean, required: false },
|
|
23
24
|
invertWheelChange: { type: Boolean, required: false },
|
|
24
25
|
id: { type: String, required: false },
|
|
@@ -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: any;
|
|
4
4
|
}, __VLS_40: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
leading?: (props: typeof __VLS_10) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NToastActionProps } from '../../../types/index.js';
|
|
2
|
-
declare var __VLS_10:
|
|
2
|
+
declare var __VLS_10: any, __VLS_11: any;
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
5
5
|
};
|