@una-ui/nuxt 0.55.3 → 0.56.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/AlertDialogAction.vue +2 -0
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +2 -0
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/ComboboxTrigger.vue +2 -0
- package/dist/runtime/components/drawer/DrawerClose.vue +2 -0
- package/dist/runtime/components/elements/Accordion.vue +2 -0
- package/dist/runtime/components/elements/Button.vue +4 -0
- package/dist/runtime/components/elements/Button.vue.d.ts +3 -3
- package/dist/runtime/components/elements/Toggle.vue +2 -0
- package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +2 -2
- package/dist/runtime/components/elements/dialog/DialogClose.vue +2 -0
- package/dist/runtime/components/elements/dialog/DialogClose.vue.d.ts +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue +2 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue +2 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue.d.ts +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue +2 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue +2 -0
- package/dist/runtime/components/elements/pagination/PaginationFirst.vue +2 -0
- package/dist/runtime/components/elements/pagination/PaginationFirst.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/PaginationLast.vue +2 -0
- package/dist/runtime/components/elements/pagination/PaginationLast.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/PaginationListItem.vue +2 -0
- package/dist/runtime/components/elements/pagination/PaginationNext.vue +2 -0
- package/dist/runtime/components/elements/pagination/PaginationNext.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/PaginationPrev.vue +2 -0
- package/dist/runtime/components/elements/pagination/PaginationPrev.vue.d.ts +1 -1
- package/dist/runtime/components/elements/tabs/Tabs.vue +57 -42
- package/dist/runtime/components/elements/tabs/Tabs.vue.d.ts +12 -8
- package/dist/runtime/components/elements/tabs/TabsContent.vue +1 -0
- package/dist/runtime/components/elements/tabs/TabsList.vue +7 -8
- package/dist/runtime/components/elements/tabs/TabsList.vue.d.ts +3 -1
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue +13 -14
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +6 -3
- package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue +2 -0
- package/dist/runtime/components/forms/Input.vue.d.ts +1 -1
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +1 -1
- package/dist/runtime/components/forms/select/SelectTrigger.vue +2 -0
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbLink.vue +2 -0
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue.d.ts +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuContentItem.vue +2 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuItem.vue +2 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue +2 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue +2 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/toast/ToastAction.vue +2 -0
- package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +1 -1
- package/dist/runtime/components/scroll-area/ScrollArea.vue.d.ts +1 -1
- package/dist/runtime/components/sheet/SheetClose.vue +2 -0
- 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/components/sidebar/SidebarTrigger.vue +2 -0
- package/dist/runtime/types/button.d.ts +2 -0
- package/dist/runtime/types/tabs.d.ts +13 -37
- package/package.json +6 -6
- package/dist/runtime/components/elements/tabs/TabsRoot.vue +0 -32
- package/dist/runtime/components/elements/tabs/TabsRoot.vue.d.ts +0 -17
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -29,6 +29,8 @@ const props = defineProps({
|
|
|
29
29
|
dropdownMenu: { type: String, required: false },
|
|
30
30
|
toggleOn: { type: String, required: false },
|
|
31
31
|
toggleOff: { type: String, required: false },
|
|
32
|
+
tabsActive: { type: String, required: false },
|
|
33
|
+
tabsInactive: { type: String, required: false },
|
|
32
34
|
navigationMenu: { type: String, required: false },
|
|
33
35
|
navigationMenuLink: { type: String, required: false },
|
|
34
36
|
ariaLabel: { type: String, required: false }
|
|
@@ -30,6 +30,8 @@ const props = defineProps({
|
|
|
30
30
|
dropdownMenu: { type: String, required: false },
|
|
31
31
|
toggleOn: { type: String, required: false },
|
|
32
32
|
toggleOff: { type: String, required: false },
|
|
33
|
+
tabsActive: { type: String, required: false },
|
|
34
|
+
tabsInactive: { type: String, required: false },
|
|
33
35
|
navigationMenu: { type: String, required: false },
|
|
34
36
|
navigationMenuLink: { type: String, required: false },
|
|
35
37
|
ariaLabel: { type: String, required: false }
|
|
@@ -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;
|
|
@@ -34,6 +34,8 @@ const props = defineProps({
|
|
|
34
34
|
dropdownMenu: { type: String, required: false },
|
|
35
35
|
toggleOn: { type: String, required: false },
|
|
36
36
|
toggleOff: { type: String, required: false },
|
|
37
|
+
tabsActive: { type: String, required: false },
|
|
38
|
+
tabsInactive: { type: String, required: false },
|
|
37
39
|
navigationMenu: { type: String, required: false },
|
|
38
40
|
navigationMenuLink: { type: String, required: false },
|
|
39
41
|
ariaLabel: { type: String, required: false }
|
|
@@ -27,6 +27,8 @@ const props = defineProps({
|
|
|
27
27
|
dropdownMenu: { type: String, required: false },
|
|
28
28
|
toggleOn: { type: String, required: false },
|
|
29
29
|
toggleOff: { type: String, required: false },
|
|
30
|
+
tabsActive: { type: String, required: false },
|
|
31
|
+
tabsInactive: { type: String, required: false },
|
|
30
32
|
navigationMenu: { type: String, required: false },
|
|
31
33
|
navigationMenuLink: { type: String, required: false },
|
|
32
34
|
ariaLabel: { type: String, required: false }
|
|
@@ -42,6 +42,8 @@ const props = defineProps({
|
|
|
42
42
|
dropdownMenu: { type: String, required: false },
|
|
43
43
|
toggleOn: { type: String, required: false },
|
|
44
44
|
toggleOff: { type: String, required: false },
|
|
45
|
+
tabsActive: { type: String, required: false },
|
|
46
|
+
tabsInactive: { type: String, required: false },
|
|
45
47
|
navigationMenu: { type: String, required: false },
|
|
46
48
|
navigationMenuLink: { type: String, required: false },
|
|
47
49
|
ariaLabel: { type: String, required: false }
|
|
@@ -31,6 +31,8 @@ const props = defineProps({
|
|
|
31
31
|
dropdownMenu: { type: String, required: false },
|
|
32
32
|
toggleOn: { type: String, required: false },
|
|
33
33
|
toggleOff: { type: String, required: false },
|
|
34
|
+
tabsActive: { type: String, required: false },
|
|
35
|
+
tabsInactive: { type: String, required: false },
|
|
34
36
|
navigationMenu: { type: String, required: false },
|
|
35
37
|
navigationMenuLink: { type: String, required: false },
|
|
36
38
|
ariaLabel: { type: String, required: false }
|
|
@@ -45,6 +47,8 @@ const mergeVariants = computed(() => {
|
|
|
45
47
|
"dropdown-menu": props.dropdownMenu,
|
|
46
48
|
"toggle-on": props.toggleOn,
|
|
47
49
|
"toggle-off": props.toggleOff,
|
|
50
|
+
"tabs-active": props.tabsActive,
|
|
51
|
+
"tabs-inactive": props.tabsInactive,
|
|
48
52
|
"navigation-menu": props.navigationMenu,
|
|
49
53
|
"navigation-menu-link": props.navigationMenuLink
|
|
50
54
|
};
|
|
@@ -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;
|
|
@@ -34,6 +34,8 @@ const props = defineProps({
|
|
|
34
34
|
paginationSelected: { type: String, required: false },
|
|
35
35
|
paginationUnselected: { type: String, required: false },
|
|
36
36
|
dropdownMenu: { type: String, required: false },
|
|
37
|
+
tabsActive: { type: String, required: false },
|
|
38
|
+
tabsInactive: { type: String, required: false },
|
|
37
39
|
navigationMenu: { type: String, required: false },
|
|
38
40
|
navigationMenuLink: { type: String, required: false },
|
|
39
41
|
ariaLabel: { type: String, required: false }
|
|
@@ -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>;
|
|
@@ -28,6 +28,8 @@ const props = defineProps({
|
|
|
28
28
|
dropdownMenu: { type: String, required: false },
|
|
29
29
|
toggleOn: { type: String, required: false },
|
|
30
30
|
toggleOff: { type: String, required: false },
|
|
31
|
+
tabsActive: { type: String, required: false },
|
|
32
|
+
tabsInactive: { type: String, required: false },
|
|
31
33
|
navigationMenu: { type: String, required: false },
|
|
32
34
|
navigationMenuLink: { type: String, required: false },
|
|
33
35
|
ariaLabel: { type: String, required: false }
|
|
@@ -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>;
|
|
@@ -54,6 +54,8 @@ const props = defineProps({
|
|
|
54
54
|
dropdownMenu: { type: String, required: false },
|
|
55
55
|
toggleOn: { type: String, required: false },
|
|
56
56
|
toggleOff: { type: String, required: false },
|
|
57
|
+
tabsActive: { type: String, required: false },
|
|
58
|
+
tabsInactive: { type: String, required: false },
|
|
57
59
|
navigationMenu: { type: String, required: false },
|
|
58
60
|
navigationMenuLink: { type: String, required: false },
|
|
59
61
|
ariaLabel: { type: String, required: false },
|
|
@@ -40,6 +40,8 @@ const props = defineProps({
|
|
|
40
40
|
dropdownMenu: { type: String, required: false },
|
|
41
41
|
toggleOn: { type: String, required: false },
|
|
42
42
|
toggleOff: { type: String, required: false },
|
|
43
|
+
tabsActive: { type: String, required: false },
|
|
44
|
+
tabsInactive: { type: String, required: false },
|
|
43
45
|
navigationMenu: { type: String, required: false },
|
|
44
46
|
navigationMenuLink: { type: String, required: false },
|
|
45
47
|
ariaLabel: { type: String, required: false }
|
|
@@ -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>;
|
|
@@ -33,6 +33,8 @@ const props = defineProps({
|
|
|
33
33
|
dropdownMenu: { type: String, required: false },
|
|
34
34
|
toggleOn: { type: String, required: false },
|
|
35
35
|
toggleOff: { type: String, required: false },
|
|
36
|
+
tabsActive: { type: String, required: false },
|
|
37
|
+
tabsInactive: { type: String, required: false },
|
|
36
38
|
navigationMenu: { type: String, required: false },
|
|
37
39
|
navigationMenuLink: { type: String, required: false },
|
|
38
40
|
ariaLabel: { type: String, required: false },
|
|
@@ -27,6 +27,8 @@ const props = defineProps({
|
|
|
27
27
|
dropdownMenu: { type: String, required: false },
|
|
28
28
|
toggleOn: { type: String, required: false },
|
|
29
29
|
toggleOff: { type: String, required: false },
|
|
30
|
+
tabsActive: { type: String, required: false },
|
|
31
|
+
tabsInactive: { type: String, required: false },
|
|
30
32
|
navigationMenu: { type: String, required: false },
|
|
31
33
|
navigationMenuLink: { type: String, required: false },
|
|
32
34
|
ariaLabel: { type: String, required: false },
|
|
@@ -30,6 +30,8 @@ const props = defineProps({
|
|
|
30
30
|
dropdownMenu: { type: String, required: false },
|
|
31
31
|
toggleOn: { type: String, required: false },
|
|
32
32
|
toggleOff: { type: String, required: false },
|
|
33
|
+
tabsActive: { type: String, required: false },
|
|
34
|
+
tabsInactive: { type: String, required: false },
|
|
33
35
|
navigationMenu: { type: String, required: false },
|
|
34
36
|
navigationMenuLink: { type: String, required: false },
|
|
35
37
|
ariaLabel: { type: String, required: false }
|
|
@@ -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>;
|
|
@@ -30,6 +30,8 @@ const props = defineProps({
|
|
|
30
30
|
dropdownMenu: { type: String, required: false },
|
|
31
31
|
toggleOn: { type: String, required: false },
|
|
32
32
|
toggleOff: { type: String, required: false },
|
|
33
|
+
tabsActive: { type: String, required: false },
|
|
34
|
+
tabsInactive: { type: String, required: false },
|
|
33
35
|
navigationMenu: { type: String, required: false },
|
|
34
36
|
navigationMenuLink: { type: String, required: false },
|
|
35
37
|
ariaLabel: { type: String, required: false }
|
|
@@ -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>;
|
|
@@ -33,6 +33,8 @@ const props = defineProps({
|
|
|
33
33
|
dropdownMenu: { type: String, required: false },
|
|
34
34
|
toggleOn: { type: String, required: false },
|
|
35
35
|
toggleOff: { type: String, required: false },
|
|
36
|
+
tabsActive: { type: String, required: false },
|
|
37
|
+
tabsInactive: { type: String, required: false },
|
|
36
38
|
navigationMenu: { type: String, required: false },
|
|
37
39
|
navigationMenuLink: { type: String, required: false },
|
|
38
40
|
ariaLabel: { type: String, required: false }
|
|
@@ -30,6 +30,8 @@ const props = defineProps({
|
|
|
30
30
|
dropdownMenu: { type: String, required: false },
|
|
31
31
|
toggleOn: { type: String, required: false },
|
|
32
32
|
toggleOff: { type: String, required: false },
|
|
33
|
+
tabsActive: { type: String, required: false },
|
|
34
|
+
tabsInactive: { type: String, required: false },
|
|
33
35
|
navigationMenu: { type: String, required: false },
|
|
34
36
|
navigationMenuLink: { type: String, required: false },
|
|
35
37
|
ariaLabel: { type: String, required: false }
|
|
@@ -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>;
|
|
@@ -30,6 +30,8 @@ const props = defineProps({
|
|
|
30
30
|
dropdownMenu: { type: String, required: false },
|
|
31
31
|
toggleOn: { type: String, required: false },
|
|
32
32
|
toggleOff: { type: String, required: false },
|
|
33
|
+
tabsActive: { type: String, required: false },
|
|
34
|
+
tabsInactive: { type: String, required: false },
|
|
33
35
|
navigationMenu: { type: String, required: false },
|
|
34
36
|
navigationMenuLink: { type: String, required: false },
|
|
35
37
|
ariaLabel: { type: String, required: false }
|
|
@@ -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>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { TabsRoot, useForwardPropsEmits } from "reka-ui";
|
|
4
|
+
import { cn } from "../../../utils";
|
|
5
5
|
import TabsContent from "./TabsContent.vue";
|
|
6
6
|
import TabsList from "./TabsList.vue";
|
|
7
|
-
import TabsRoot from "./TabsRoot.vue";
|
|
8
7
|
import TabsTrigger from "./TabsTrigger.vue";
|
|
9
8
|
const props = defineProps({
|
|
10
|
-
items: { type: Array, required:
|
|
9
|
+
items: { type: Array, required: false },
|
|
11
10
|
_tabsContent: { type: Object, required: false },
|
|
12
11
|
_tabsTrigger: { type: Object, required: false },
|
|
13
12
|
_tabsList: { type: Object, required: false },
|
|
13
|
+
una: { type: Object, required: false },
|
|
14
14
|
defaultValue: { type: null, required: false },
|
|
15
15
|
orientation: { type: String, required: false },
|
|
16
16
|
dir: { type: String, required: false },
|
|
@@ -20,53 +20,68 @@ const props = defineProps({
|
|
|
20
20
|
asChild: { type: Boolean, required: false },
|
|
21
21
|
as: { type: null, required: false },
|
|
22
22
|
class: { type: null, required: false },
|
|
23
|
-
size: { type: null, required: false },
|
|
24
|
-
|
|
23
|
+
size: { type: null, required: false, default: "sm" },
|
|
24
|
+
tabsActive: { type: String, required: false },
|
|
25
|
+
tabsInactive: { type: String, required: false },
|
|
25
26
|
disabled: { type: Boolean, required: false }
|
|
26
27
|
});
|
|
27
28
|
const emits = defineEmits(["update:modelValue"]);
|
|
28
|
-
const delegatedProps =
|
|
29
|
-
const { class: _, ...delegated } = props;
|
|
30
|
-
return delegated;
|
|
31
|
-
});
|
|
29
|
+
const delegatedProps = reactiveOmit(props, ["class", "items", "tabsActive", "tabsInactive", "disabled", "size", "una"]);
|
|
32
30
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
33
31
|
</script>
|
|
34
32
|
|
|
35
33
|
<template>
|
|
36
34
|
<TabsRoot
|
|
37
|
-
v-bind="
|
|
38
|
-
:
|
|
35
|
+
v-bind="forwarded"
|
|
36
|
+
:class="cn(
|
|
37
|
+
'tabs',
|
|
38
|
+
props.una?.tabs,
|
|
39
|
+
props.class
|
|
40
|
+
)"
|
|
39
41
|
>
|
|
40
|
-
<
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
:
|
|
50
|
-
v-bind="{ ...forwarded._tabsTrigger, ...item?._tabsTrigger }"
|
|
42
|
+
<slot>
|
|
43
|
+
<TabsList
|
|
44
|
+
v-bind="forwarded._tabsList"
|
|
45
|
+
:una
|
|
46
|
+
:size
|
|
47
|
+
>
|
|
48
|
+
<slot name="list" :items="items">
|
|
49
|
+
<template
|
|
50
|
+
v-for="item in items"
|
|
51
|
+
:key="item.value"
|
|
51
52
|
>
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
{{ typeof item.content === "string" ? item.content : "" }}
|
|
67
|
-
</component>
|
|
53
|
+
<TabsTrigger
|
|
54
|
+
:tabs-active="item?._tabsTrigger?.tabsActive || item.tabsActive || props.tabsActive"
|
|
55
|
+
:tabs-inactive="item?._tabsTrigger?.tabsInactive || item.tabsInactive || props.tabsInactive"
|
|
56
|
+
:disabled="item?._tabsTrigger?.disabled || item.disabled || props.disabled"
|
|
57
|
+
:value="item.value"
|
|
58
|
+
:size
|
|
59
|
+
v-bind="{ ...forwarded._tabsTrigger, ...item?._tabsTrigger }"
|
|
60
|
+
:una
|
|
61
|
+
>
|
|
62
|
+
<slot name="trigger" :item="item" :disabled="item?._tabsTrigger?.disabled || item.disabled || props.disabled">
|
|
63
|
+
{{ item.name }}
|
|
64
|
+
</slot>
|
|
65
|
+
</TabsTrigger>
|
|
66
|
+
</template>
|
|
68
67
|
</slot>
|
|
69
|
-
</
|
|
70
|
-
|
|
68
|
+
</TabsList>
|
|
69
|
+
<template
|
|
70
|
+
v-for="item in items"
|
|
71
|
+
:key="item.value"
|
|
72
|
+
>
|
|
73
|
+
<TabsContent
|
|
74
|
+
v-bind="forwarded._tabsContent"
|
|
75
|
+
:value="item.value"
|
|
76
|
+
:una
|
|
77
|
+
>
|
|
78
|
+
<slot name="content" :item="item">
|
|
79
|
+
<component :is="typeof item.content === 'string' ? 'span' : item.content">
|
|
80
|
+
{{ typeof item.content === "string" ? item.content : "" }}
|
|
81
|
+
</component>
|
|
82
|
+
</slot>
|
|
83
|
+
</TabsContent>
|
|
84
|
+
</template>
|
|
85
|
+
</slot>
|
|
71
86
|
</TabsRoot>
|
|
72
87
|
</template>
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import type { NTabsProps } from '../../../types/tabs.js';
|
|
2
|
-
declare var
|
|
3
|
-
items: any[];
|
|
4
|
-
},
|
|
2
|
+
declare var __VLS_6: {}, __VLS_11: {
|
|
3
|
+
items: any[] | undefined;
|
|
4
|
+
}, __VLS_16: {
|
|
5
5
|
item: any;
|
|
6
6
|
disabled: any;
|
|
7
|
-
},
|
|
7
|
+
}, __VLS_21: {
|
|
8
8
|
item: any;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
|
-
|
|
11
|
+
default?: (props: typeof __VLS_6) => any;
|
|
12
12
|
} & {
|
|
13
|
-
|
|
13
|
+
list?: (props: typeof __VLS_11) => any;
|
|
14
14
|
} & {
|
|
15
|
-
|
|
15
|
+
trigger?: (props: typeof __VLS_16) => any;
|
|
16
|
+
} & {
|
|
17
|
+
content?: (props: typeof __VLS_21) => any;
|
|
16
18
|
};
|
|
17
19
|
declare const __VLS_component: import("vue").DefineComponent<NTabsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
20
|
"update:modelValue": (payload: string | number) => any;
|
|
19
21
|
}, string, import("vue").PublicProps, Readonly<NTabsProps> & Readonly<{
|
|
20
22
|
"onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
|
|
21
|
-
}>, {
|
|
23
|
+
}>, {
|
|
24
|
+
size: import("vue").HTMLAttributes["class"];
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
26
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
23
27
|
export default _default;
|
|
24
28
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
2
3
|
import { TabsList } from "reka-ui";
|
|
3
|
-
import { computed } from "vue";
|
|
4
4
|
import { cn } from "../../../utils";
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
una: { type: Object, required: false },
|
|
@@ -8,21 +8,20 @@ const props = defineProps({
|
|
|
8
8
|
asChild: { type: Boolean, required: false },
|
|
9
9
|
as: { type: null, required: false },
|
|
10
10
|
class: { type: null, required: false },
|
|
11
|
-
size: { type: null, required: false }
|
|
12
|
-
});
|
|
13
|
-
const delegatedProps = computed(() => {
|
|
14
|
-
const { class: _, ...delegated } = props;
|
|
15
|
-
return delegated;
|
|
11
|
+
size: { type: null, required: false, default: "sm" }
|
|
16
12
|
});
|
|
13
|
+
const delegatedProps = reactiveOmit(props, ["class", "size"]);
|
|
17
14
|
</script>
|
|
18
15
|
|
|
19
16
|
<template>
|
|
20
17
|
<TabsList
|
|
18
|
+
data-slot="tabs-list"
|
|
19
|
+
:size
|
|
21
20
|
v-bind="delegatedProps"
|
|
22
21
|
:class="cn(
|
|
23
22
|
'tabs-list',
|
|
24
|
-
props.
|
|
25
|
-
props.
|
|
23
|
+
props.una?.tabsList,
|
|
24
|
+
props.class
|
|
26
25
|
)"
|
|
27
26
|
>
|
|
28
27
|
<slot />
|
|
@@ -3,7 +3,9 @@ declare var __VLS_6: {};
|
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
4
|
default?: (props: typeof __VLS_6) => any;
|
|
5
5
|
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<NTabsListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NTabsListProps> & Readonly<{}>, {
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<NTabsListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NTabsListProps> & Readonly<{}>, {
|
|
7
|
+
size: import("vue").HTMLAttributes["class"];
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
9
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
10
|
export default _default;
|
|
9
11
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
2
3
|
import { TabsTrigger } from "reka-ui";
|
|
3
|
-
import { computed } from "vue";
|
|
4
4
|
import { cn } from "../../../utils";
|
|
5
5
|
import Button from "../Button.vue";
|
|
6
6
|
const props = defineProps({
|
|
7
|
-
tabs: { type: String, required: false },
|
|
8
7
|
una: { type: Object, required: false },
|
|
9
8
|
value: { type: [String, Number], required: true },
|
|
10
9
|
disabled: { type: Boolean, required: false },
|
|
@@ -21,6 +20,7 @@ const props = defineProps({
|
|
|
21
20
|
btn: { type: String, required: false },
|
|
22
21
|
leading: { type: String, required: false },
|
|
23
22
|
trailing: { type: String, required: false },
|
|
23
|
+
size: { type: String, required: false, default: "sm" },
|
|
24
24
|
square: { type: null, required: false },
|
|
25
25
|
rounded: { type: null, required: false },
|
|
26
26
|
class: { type: null, required: false },
|
|
@@ -31,30 +31,29 @@ const props = defineProps({
|
|
|
31
31
|
dropdownMenu: { type: String, required: false },
|
|
32
32
|
toggleOn: { type: String, required: false },
|
|
33
33
|
toggleOff: { type: String, required: false },
|
|
34
|
+
tabsActive: { type: String, required: false, default: "soft-black" },
|
|
35
|
+
tabsInactive: { type: String, required: false },
|
|
34
36
|
navigationMenu: { type: String, required: false },
|
|
35
37
|
navigationMenuLink: { type: String, required: false },
|
|
36
|
-
ariaLabel: { type: String, required: false }
|
|
37
|
-
size: { type: null, required: false }
|
|
38
|
-
});
|
|
39
|
-
const delegatedProps = computed(() => {
|
|
40
|
-
const { class: _, ...delegated } = props;
|
|
41
|
-
return delegated;
|
|
38
|
+
ariaLabel: { type: String, required: false }
|
|
42
39
|
});
|
|
40
|
+
const delegatedProps = reactiveOmit(props, ["class", "size"]);
|
|
43
41
|
</script>
|
|
44
42
|
|
|
45
43
|
<template>
|
|
46
44
|
<TabsTrigger
|
|
47
45
|
v-bind="delegatedProps"
|
|
46
|
+
:size
|
|
47
|
+
data-slot="tabs-trigger"
|
|
48
48
|
:class="cn(
|
|
49
|
-
'tabs-trigger',
|
|
49
|
+
'tabs-trigger h-[calc(100%-1px)]',
|
|
50
|
+
props.una?.tabsTrigger,
|
|
50
51
|
props.class
|
|
51
52
|
)"
|
|
52
|
-
:una="{
|
|
53
|
-
...props.una,
|
|
54
|
-
btnDefaultVariant: props.tabs ? `tabs-${props.tabs}` : 'tabs-default-variant'
|
|
55
|
-
}"
|
|
56
53
|
:as="Button"
|
|
57
54
|
>
|
|
58
|
-
<
|
|
55
|
+
<template v-for="(_, name) in $slots" #[name]="slotData">
|
|
56
|
+
<slot :name="name" v-bind="slotData" />
|
|
57
|
+
</template>
|
|
59
58
|
</TabsTrigger>
|
|
60
59
|
</template>
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { NTabsTriggerProps } from '../../../types/tabs.js';
|
|
2
|
-
declare var
|
|
2
|
+
declare var __VLS_7: string | number, __VLS_8: any;
|
|
3
3
|
type __VLS_Slots = {} & {
|
|
4
|
-
|
|
4
|
+
[K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any;
|
|
5
5
|
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<NTabsTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NTabsTriggerProps> & Readonly<{}>, {
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<NTabsTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NTabsTriggerProps> & Readonly<{}>, {
|
|
7
|
+
size: string;
|
|
8
|
+
tabsActive: string;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
11
|
export default _default;
|
|
9
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -25,6 +25,8 @@ const props = defineProps({
|
|
|
25
25
|
dropdownMenu: { type: String, required: false },
|
|
26
26
|
toggleOn: { type: String, required: false },
|
|
27
27
|
toggleOff: { type: String, required: false },
|
|
28
|
+
tabsActive: { type: String, required: false },
|
|
29
|
+
tabsInactive: { type: String, required: false },
|
|
28
30
|
navigationMenu: { type: String, required: false },
|
|
29
31
|
navigationMenuLink: { type: String, required: false },
|
|
30
32
|
ariaLabel: { type: String, required: false },
|
|
@@ -17,9 +17,9 @@ declare const __VLS_component: import("vue").DefineComponent<NInputProps, {
|
|
|
17
17
|
onTrailing?: ((...args: any[]) => any) | undefined;
|
|
18
18
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
-
type: HTMLInputElement["type"] | "textarea";
|
|
21
20
|
size: string;
|
|
22
21
|
resize: string | null;
|
|
22
|
+
type: HTMLInputElement["type"] | "textarea";
|
|
23
23
|
rows: number;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -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>;
|
|
@@ -36,6 +36,8 @@ const props = defineProps({
|
|
|
36
36
|
dropdownMenu: { type: String, required: false },
|
|
37
37
|
toggleOn: { type: String, required: false },
|
|
38
38
|
toggleOff: { type: String, required: false },
|
|
39
|
+
tabsActive: { type: String, required: false },
|
|
40
|
+
tabsInactive: { type: String, required: false },
|
|
39
41
|
navigationMenu: { type: String, required: false },
|
|
40
42
|
navigationMenuLink: { type: String, required: false },
|
|
41
43
|
ariaLabel: { type: String, required: false }
|
|
@@ -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;
|
|
@@ -28,6 +28,8 @@ const props = defineProps({
|
|
|
28
28
|
dropdownMenu: { type: String, required: false },
|
|
29
29
|
toggleOn: { type: String, required: false },
|
|
30
30
|
toggleOff: { type: String, required: false },
|
|
31
|
+
tabsActive: { type: String, required: false },
|
|
32
|
+
tabsInactive: { type: String, required: false },
|
|
31
33
|
navigationMenu: { type: String, required: false },
|
|
32
34
|
navigationMenuLink: { type: String, required: false },
|
|
33
35
|
ariaLabel: { type: String, required: false }
|
|
@@ -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;
|
|
@@ -32,6 +32,8 @@ const props = defineProps({
|
|
|
32
32
|
dropdownMenu: { type: String, required: false },
|
|
33
33
|
toggleOn: { type: String, required: false },
|
|
34
34
|
toggleOff: { type: String, required: false },
|
|
35
|
+
tabsActive: { type: String, required: false },
|
|
36
|
+
tabsInactive: { type: String, required: false },
|
|
35
37
|
navigationMenu: { type: String, required: false },
|
|
36
38
|
ariaLabel: { type: String, required: false },
|
|
37
39
|
size: { type: null, required: false }
|
|
@@ -31,6 +31,8 @@ const props = defineProps({
|
|
|
31
31
|
dropdownMenu: { type: String, required: false },
|
|
32
32
|
toggleOn: { type: String, required: false },
|
|
33
33
|
toggleOff: { type: String, required: false },
|
|
34
|
+
tabsActive: { type: String, required: false },
|
|
35
|
+
tabsInactive: { type: String, required: false },
|
|
34
36
|
navigationMenuLink: { type: String, required: false },
|
|
35
37
|
ariaLabel: { type: String, required: false },
|
|
36
38
|
active: { type: Boolean, required: false },
|
|
@@ -34,6 +34,8 @@ const props = defineProps({
|
|
|
34
34
|
dropdownMenu: { type: String, required: false },
|
|
35
35
|
toggleOn: { type: String, required: false },
|
|
36
36
|
toggleOff: { type: String, required: false },
|
|
37
|
+
tabsActive: { type: String, required: false },
|
|
38
|
+
tabsInactive: { type: String, required: false },
|
|
37
39
|
navigationMenu: { type: String, required: false },
|
|
38
40
|
ariaLabel: { type: String, required: false },
|
|
39
41
|
size: { type: null, required: false }
|
|
@@ -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;
|
|
@@ -37,6 +37,8 @@ const props = defineProps({
|
|
|
37
37
|
dropdownMenu: { type: String, required: false },
|
|
38
38
|
toggleOn: { type: String, required: false },
|
|
39
39
|
toggleOff: { type: String, required: false },
|
|
40
|
+
tabsActive: { type: String, required: false },
|
|
41
|
+
tabsInactive: { type: String, required: false },
|
|
40
42
|
navigationMenuLink: { type: String, required: false },
|
|
41
43
|
ariaLabel: { type: String, required: false }
|
|
42
44
|
});
|
|
@@ -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;
|
|
@@ -31,6 +31,8 @@ const props = defineProps({
|
|
|
31
31
|
dropdownMenu: { type: String, required: false },
|
|
32
32
|
toggleOn: { type: String, required: false },
|
|
33
33
|
toggleOff: { type: String, required: false },
|
|
34
|
+
tabsActive: { type: String, required: false },
|
|
35
|
+
tabsInactive: { type: String, required: false },
|
|
34
36
|
navigationMenu: { type: String, required: false },
|
|
35
37
|
navigationMenuLink: { type: String, required: false },
|
|
36
38
|
ariaLabel: { type: String, required: false },
|
|
@@ -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>;
|
|
@@ -28,6 +28,8 @@ const props = defineProps({
|
|
|
28
28
|
dropdownMenu: { type: String, required: false },
|
|
29
29
|
toggleOn: { type: String, required: false },
|
|
30
30
|
toggleOff: { type: String, required: false },
|
|
31
|
+
tabsActive: { type: String, required: false },
|
|
32
|
+
tabsInactive: { type: String, required: false },
|
|
31
33
|
navigationMenu: { type: String, required: false },
|
|
32
34
|
navigationMenuLink: { type: String, required: false },
|
|
33
35
|
ariaLabel: { type: String, required: false, default: "Close" }
|
|
@@ -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;
|
|
@@ -27,6 +27,8 @@ const props = defineProps({
|
|
|
27
27
|
dropdownMenu: { type: String, required: false },
|
|
28
28
|
toggleOn: { type: String, required: false },
|
|
29
29
|
toggleOff: { type: String, required: false },
|
|
30
|
+
tabsActive: { type: String, required: false },
|
|
31
|
+
tabsInactive: { type: String, required: false },
|
|
30
32
|
navigationMenu: { type: String, required: false },
|
|
31
33
|
navigationMenuLink: { type: String, required: false },
|
|
32
34
|
ariaLabel: { type: String, required: false }
|
|
@@ -5,26 +5,17 @@ interface BaseExtensions {
|
|
|
5
5
|
class?: HTMLAttributes['class'];
|
|
6
6
|
size?: HTMLAttributes['class'];
|
|
7
7
|
}
|
|
8
|
-
export interface NTabsProps extends TabsRootProps, BaseExtensions, Pick<NTabsTriggerProps, '
|
|
8
|
+
export interface NTabsProps extends TabsRootProps, BaseExtensions, Pick<NTabsTriggerProps, 'tabsActive' | 'tabsInactive' | 'disabled'> {
|
|
9
9
|
/**
|
|
10
10
|
* The array of items that is passed to tabs.
|
|
11
11
|
*
|
|
12
12
|
* @default []
|
|
13
13
|
*/
|
|
14
|
-
items
|
|
14
|
+
items?: any[];
|
|
15
15
|
_tabsContent?: Partial<NTabsContentProps>;
|
|
16
16
|
_tabsTrigger?: Partial<NTabsTriggerProps>;
|
|
17
17
|
_tabsList?: Partial<NTabsListProps>;
|
|
18
|
-
|
|
19
|
-
export interface NTabsRootProps extends TabsRootProps, BaseExtensions {
|
|
20
|
-
/**
|
|
21
|
-
* `UnaUI` preset configuration
|
|
22
|
-
*
|
|
23
|
-
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/tabs.ts
|
|
24
|
-
*/
|
|
25
|
-
una?: {
|
|
26
|
-
tabsRoot?: HTMLAttributes['class'];
|
|
27
|
-
};
|
|
18
|
+
una?: NTabsUnaProps;
|
|
28
19
|
}
|
|
29
20
|
export interface NTabsListProps extends TabsListProps, BaseExtensions {
|
|
30
21
|
/**
|
|
@@ -32,29 +23,10 @@ export interface NTabsListProps extends TabsListProps, BaseExtensions {
|
|
|
32
23
|
*
|
|
33
24
|
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/tabs.ts
|
|
34
25
|
*/
|
|
35
|
-
una?:
|
|
36
|
-
tabsList?: HTMLAttributes['class'];
|
|
37
|
-
};
|
|
26
|
+
una?: Pick<NTabsUnaProps, 'tabsList'>;
|
|
38
27
|
}
|
|
39
|
-
export interface NTabsTriggerProps extends TabsTriggerProps, Omit<NButtonProps, 'una'
|
|
40
|
-
|
|
41
|
-
* Allows you to add `UnaUI` button preset properties,
|
|
42
|
-
* Think of it as a shortcut for adding options or variants to the preset if available.
|
|
43
|
-
*
|
|
44
|
-
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/tabs.ts
|
|
45
|
-
* @example
|
|
46
|
-
* tabs="solid-green"
|
|
47
|
-
*/
|
|
48
|
-
tabs?: string;
|
|
49
|
-
/**
|
|
50
|
-
* `UnaUI` preset configuration
|
|
51
|
-
*
|
|
52
|
-
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/tabs.ts
|
|
53
|
-
*/
|
|
54
|
-
una?: {
|
|
55
|
-
tabsTrigger?: HTMLAttributes['class'];
|
|
56
|
-
tabsDefaultVariant?: HTMLAttributes['class'];
|
|
57
|
-
} & NButtonProps['una'];
|
|
28
|
+
export interface NTabsTriggerProps extends TabsTriggerProps, Omit<NButtonProps, 'una'> {
|
|
29
|
+
una?: Pick<NTabsUnaProps, 'tabsTrigger'> & Pick<NButtonProps, 'una'>;
|
|
58
30
|
}
|
|
59
31
|
export interface NTabsContentProps extends TabsContentProps, BaseExtensions {
|
|
60
32
|
/**
|
|
@@ -62,8 +34,12 @@ export interface NTabsContentProps extends TabsContentProps, BaseExtensions {
|
|
|
62
34
|
*
|
|
63
35
|
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/tabs.ts
|
|
64
36
|
*/
|
|
65
|
-
una?:
|
|
66
|
-
|
|
67
|
-
|
|
37
|
+
una?: Pick<NTabsUnaProps, 'tabsContent'>;
|
|
38
|
+
}
|
|
39
|
+
export interface NTabsUnaProps {
|
|
40
|
+
tabs?: HTMLAttributes['class'];
|
|
41
|
+
tabsList?: HTMLAttributes['class'];
|
|
42
|
+
tabsTrigger?: HTMLAttributes['class'];
|
|
43
|
+
tabsContent?: HTMLAttributes['class'];
|
|
68
44
|
}
|
|
69
45
|
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.56.0",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@headlessui/vue": "^1.7.23",
|
|
40
40
|
"@iconify/utils": "^2.3.0",
|
|
41
|
-
"@nuxt/kit": "^3.17.
|
|
41
|
+
"@nuxt/kit": "^3.17.4",
|
|
42
42
|
"@nuxtjs/color-mode": "^3.5.2",
|
|
43
43
|
"@tanstack/vue-table": "^8.21.3",
|
|
44
44
|
"@unocss/core": "^66.0.0",
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"unocss": "^66.0.0",
|
|
59
59
|
"unocss-preset-animations": "^1.2.1",
|
|
60
60
|
"vaul-vue": "^0.4.1",
|
|
61
|
-
"@una-ui/extractor-vue-script": "^0.
|
|
62
|
-
"@una-ui/preset": "^0.
|
|
61
|
+
"@una-ui/extractor-vue-script": "^0.56.0",
|
|
62
|
+
"@una-ui/preset": "^0.56.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@iconify-json/lucide": "^1.2.44",
|
|
66
66
|
"@iconify-json/radix-icons": "^1.2.2",
|
|
67
67
|
"@iconify-json/tabler": "^1.2.18",
|
|
68
68
|
"@nuxt/module-builder": "^1.0.1",
|
|
69
|
-
"@nuxt/schema": "^3.17.
|
|
70
|
-
"nuxt": "^3.17.
|
|
69
|
+
"@nuxt/schema": "^3.17.4",
|
|
70
|
+
"nuxt": "^3.17.4",
|
|
71
71
|
"zod": "^3.25.7"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { TabsRoot, useForwardPropsEmits } from "reka-ui";
|
|
3
|
-
import { cn } from "../../../utils";
|
|
4
|
-
const props = defineProps({
|
|
5
|
-
una: { type: Object, required: false },
|
|
6
|
-
defaultValue: { type: null, required: false },
|
|
7
|
-
orientation: { type: String, required: false },
|
|
8
|
-
dir: { type: String, required: false },
|
|
9
|
-
activationMode: { type: String, required: false },
|
|
10
|
-
modelValue: { type: null, required: false },
|
|
11
|
-
unmountOnHide: { type: Boolean, required: false },
|
|
12
|
-
asChild: { type: Boolean, required: false },
|
|
13
|
-
as: { type: null, required: false },
|
|
14
|
-
class: { type: null, required: false },
|
|
15
|
-
size: { type: null, required: false }
|
|
16
|
-
});
|
|
17
|
-
const emits = defineEmits(["update:modelValue"]);
|
|
18
|
-
const forwarded = useForwardPropsEmits(props, emits);
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<template>
|
|
22
|
-
<TabsRoot
|
|
23
|
-
v-bind="forwarded"
|
|
24
|
-
:class="cn(
|
|
25
|
-
'tabs-root',
|
|
26
|
-
props.class,
|
|
27
|
-
props.una?.tabsRoot
|
|
28
|
-
)"
|
|
29
|
-
>
|
|
30
|
-
<slot />
|
|
31
|
-
</TabsRoot>
|
|
32
|
-
</template>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { NTabsRootProps } from '../../../types/tabs.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<NTabsRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (payload: string | number) => any;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<NTabsRootProps> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
17
|
-
};
|