@una-ui/nuxt 1.0.0-alpha.7 → 1.0.0-alpha.9
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 +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogAction.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogAction.vue.d.ts +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue.d.ts +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogContent.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogDescription.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogOverlay.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogTitle.vue +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialogTrigger.vue +1 -1
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue +1 -1
- package/dist/runtime/components/combobox/Combobox.vue +3 -1
- package/dist/runtime/components/combobox/Combobox.vue.d.ts +17 -17
- package/dist/runtime/components/combobox/ComboboxAnchor.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxEmpty.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxGroup.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxInput.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/ComboboxItem.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxItemIndicator.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxLabel.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxList.vue +4 -1
- package/dist/runtime/components/combobox/ComboboxSeparator.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxTrigger.vue +1 -1
- package/dist/runtime/components/combobox/ComboboxTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/combobox/ComboboxViewport.vue +1 -1
- package/dist/runtime/components/data/table/TableBody.vue +1 -1
- package/dist/runtime/components/data/table/TableCaption.vue +1 -1
- package/dist/runtime/components/data/table/TableCell.vue +1 -1
- package/dist/runtime/components/data/table/TableFooter.vue +1 -1
- package/dist/runtime/components/data/table/TableHead.vue +1 -1
- package/dist/runtime/components/data/table/TableHeader.vue +1 -1
- package/dist/runtime/components/data/table/TableRow.vue +1 -1
- package/dist/runtime/components/drawer/DrawerClose.vue +1 -1
- package/dist/runtime/components/drawer/DrawerContent.vue +1 -1
- package/dist/runtime/components/drawer/DrawerDescription.vue +1 -1
- package/dist/runtime/components/drawer/DrawerOverlay.vue +2 -1
- package/dist/runtime/components/drawer/DrawerTitle.vue +1 -1
- package/dist/runtime/components/drawer/DrawerTrigger.vue +1 -1
- package/dist/runtime/components/elements/Accordion.vue.d.ts +3 -3
- package/dist/runtime/components/elements/AvatarGroup.vue +1 -1
- package/dist/runtime/components/elements/Badge.vue.d.ts +1 -5
- package/dist/runtime/components/elements/Label.vue +1 -1
- package/dist/runtime/components/elements/Progress.vue +1 -1
- package/dist/runtime/components/elements/Separator.vue +1 -1
- package/dist/runtime/components/elements/Toggle.vue +1 -1
- package/dist/runtime/components/elements/Toggle.vue.d.ts +1 -1
- package/dist/runtime/components/elements/avatar/Avatar.vue +1 -1
- package/dist/runtime/components/elements/avatar/AvatarFallback.vue +1 -1
- package/dist/runtime/components/elements/avatar/AvatarImage.vue +1 -1
- package/dist/runtime/components/elements/collapsible/Collapsible.vue +1 -1
- package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue +2 -1
- package/dist/runtime/components/elements/collapsible/CollapsibleTrigger.vue +1 -1
- package/dist/runtime/components/elements/dialog/DialogClose.vue +1 -1
- package/dist/runtime/components/elements/dialog/DialogContent.vue +1 -1
- package/dist/runtime/components/elements/dialog/DialogDescription.vue +3 -2
- package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +1 -1
- package/dist/runtime/components/elements/dialog/DialogTitle.vue +1 -1
- package/dist/runtime/components/elements/dialog/DialogTrigger.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue.d.ts +3 -3
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +4 -2
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuGroup.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuLabel.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSeparator.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +4 -2
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue +1 -1
- package/dist/runtime/components/elements/pagination/Pagination.vue +1 -1
- package/dist/runtime/components/elements/pagination/PaginationEllipsis.vue +1 -1
- package/dist/runtime/components/elements/pagination/PaginationFirst.vue +1 -1
- package/dist/runtime/components/elements/pagination/PaginationLast.vue +1 -1
- package/dist/runtime/components/elements/pagination/PaginationListItem.vue +1 -1
- package/dist/runtime/components/elements/pagination/PaginationListItem.vue.d.ts +1 -1
- package/dist/runtime/components/elements/pagination/PaginationNext.vue +1 -1
- package/dist/runtime/components/elements/pagination/PaginationPrev.vue +1 -1
- package/dist/runtime/components/elements/popover/PopoverContent.vue +4 -1
- package/dist/runtime/components/elements/tabs/Tabs.vue +1 -1
- package/dist/runtime/components/elements/tabs/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/elements/tabs/TabsContent.vue +1 -1
- package/dist/runtime/components/elements/tabs/TabsList.vue +1 -1
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue +1 -1
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +1 -1
- package/dist/runtime/components/elements/tooltip/TooltipContent.vue +2 -1
- package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue +1 -1
- package/dist/runtime/components/forms/Checkbox.vue +1 -1
- package/dist/runtime/components/forms/FormGroup.vue +1 -1
- package/dist/runtime/components/forms/Input.vue.d.ts +1 -13
- package/dist/runtime/components/forms/Slider.vue +1 -1
- package/dist/runtime/components/forms/Switch.vue +1 -1
- package/dist/runtime/components/forms/form/FormField.vue +1 -1
- package/dist/runtime/components/forms/form/FormLabel.vue +1 -1
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue +1 -1
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +3 -3
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +1 -1
- package/dist/runtime/components/forms/select/Select.vue.d.ts +16 -16
- package/dist/runtime/components/forms/select/SelectContent.vue +4 -1
- package/dist/runtime/components/forms/select/SelectGroup.vue +1 -1
- package/dist/runtime/components/forms/select/SelectItem.vue +1 -1
- package/dist/runtime/components/forms/select/SelectItemIndicator.vue +1 -1
- package/dist/runtime/components/forms/select/SelectItemText.vue +1 -1
- package/dist/runtime/components/forms/select/SelectLabel.vue +1 -1
- package/dist/runtime/components/forms/select/SelectScrollDownButton.vue +1 -1
- package/dist/runtime/components/forms/select/SelectScrollUpButton.vue +1 -1
- package/dist/runtime/components/forms/select/SelectSeparator.vue +1 -1
- package/dist/runtime/components/forms/select/SelectTrigger.vue +1 -1
- package/dist/runtime/components/forms/select/SelectValue.vue +1 -1
- package/dist/runtime/components/hover-card/HoverCard.vue +1 -1
- package/dist/runtime/components/hover-card/HoverCardArrow.vue +1 -1
- package/dist/runtime/components/hover-card/HoverCardContent.vue +4 -1
- package/dist/runtime/components/hover-card/HoverCardTrigger.vue +1 -1
- package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue.d.ts +6 -16
- package/dist/runtime/components/navigation-menu/NavigationMenu.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenu.vue.d.ts +10 -10
- package/dist/runtime/components/navigation-menu/NavigationMenuContent.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuContentItem.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue +2 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuItem.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuList.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue +1 -1
- package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue +2 -1
- package/dist/runtime/components/number-field/NumberField.vue +2 -1
- package/dist/runtime/components/number-field/NumberFieldDecrement.vue +1 -1
- package/dist/runtime/components/number-field/NumberFieldIncrement.vue +1 -1
- package/dist/runtime/components/number-field/NumberFieldInput.vue +1 -1
- package/dist/runtime/components/overlays/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/toast/Toast.vue +1 -1
- package/dist/runtime/components/overlays/toast/Toast.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/toast/ToastAction.vue +1 -1
- package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/toast/ToastClose.vue +1 -1
- package/dist/runtime/components/overlays/toast/ToastDescription.vue +1 -1
- package/dist/runtime/components/overlays/toast/ToastTitle.vue +1 -1
- package/dist/runtime/components/overlays/toast/ToastViewport.vue +1 -1
- package/dist/runtime/components/pin-input/PinInput.vue +1 -1
- package/dist/runtime/components/pin-input/PinInputGroup.vue +1 -1
- package/dist/runtime/components/pin-input/PinInputSeparator.vue +1 -1
- package/dist/runtime/components/pin-input/PinInputSlot.vue +1 -1
- package/dist/runtime/components/resizable/ResizableHandle.vue +2 -1
- package/dist/runtime/components/resizable/ResizablePanel.vue +1 -1
- package/dist/runtime/components/resizable/ResizablePanelGroup.vue +1 -1
- package/dist/runtime/components/scroll-area/ScrollArea.vue +1 -1
- package/dist/runtime/components/scroll-area/ScrollBar.vue +1 -1
- package/dist/runtime/components/sheet/SheetClose.vue +1 -1
- package/dist/runtime/components/sheet/SheetContent.vue +7 -2
- package/dist/runtime/components/sheet/SheetDescription.vue +1 -1
- package/dist/runtime/components/sheet/SheetOverlay.vue +7 -2
- package/dist/runtime/components/sheet/SheetTitle.vue +1 -1
- package/dist/runtime/components/sheet/SheetTrigger.vue +1 -1
- package/dist/runtime/components/sidebar/SidebarGroupAction.vue +1 -1
- package/dist/runtime/components/sidebar/SidebarGroupLabel.vue +1 -1
- package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuAction.vue +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuButton.vue +2 -2
- package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue +1 -1
- package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue +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/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/stepper.d.ts +129 -0
- package/dist/runtime/types/stepper.js +0 -0
- package/dist/runtime/types/toggle-group.d.ts +39 -0
- package/dist/runtime/types/toggle-group.js +0 -0
- package/package.json +16 -16
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { StepperItem, useForwardProps } from "reka-ui";
|
|
4
|
+
import { cn } from "../../utils";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
slot: { type: String, required: false },
|
|
7
|
+
title: { type: String, required: false },
|
|
8
|
+
description: { type: String, required: false },
|
|
9
|
+
value: { type: [String, Number], required: false },
|
|
10
|
+
icon: { type: String, required: false },
|
|
11
|
+
una: { type: Object, required: false },
|
|
12
|
+
step: { type: Number, required: true },
|
|
13
|
+
disabled: { type: Boolean, required: false },
|
|
14
|
+
completed: { type: Boolean, required: false },
|
|
15
|
+
asChild: { type: Boolean, required: false },
|
|
16
|
+
as: { type: [String, Object, Function], required: false },
|
|
17
|
+
orientation: { type: String, required: false, default: "horizontal" },
|
|
18
|
+
class: { type: null, required: false },
|
|
19
|
+
size: { type: null, required: false }
|
|
20
|
+
});
|
|
21
|
+
const delegatedProps = reactiveOmit(props, [
|
|
22
|
+
"class",
|
|
23
|
+
"una",
|
|
24
|
+
"title",
|
|
25
|
+
"description",
|
|
26
|
+
"slot"
|
|
27
|
+
]);
|
|
28
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<StepperItem
|
|
33
|
+
v-slot="slotProps"
|
|
34
|
+
v-bind="forwarded"
|
|
35
|
+
:class="cn(
|
|
36
|
+
'group stepper-item',
|
|
37
|
+
orientation === 'vertical' && 'stepper-item-vertical',
|
|
38
|
+
props.class,
|
|
39
|
+
props.una?.stepperItem
|
|
40
|
+
)"
|
|
41
|
+
>
|
|
42
|
+
<slot v-bind="slotProps" />
|
|
43
|
+
</StepperItem>
|
|
44
|
+
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NStepperItemProps } from '../../types/index.js';
|
|
2
|
+
declare var __VLS_6: any;
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_6) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<NStepperItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NStepperItemProps> & Readonly<{}>, {
|
|
7
|
+
orientation: "vertical" | "horizontal";
|
|
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,29 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { StepperSeparator, useForwardProps } from "reka-ui";
|
|
4
|
+
import { cn } from "../../utils";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
una: { type: Object, required: false },
|
|
7
|
+
orientation: { type: String, required: false, default: "horizontal" },
|
|
8
|
+
decorative: { type: Boolean, required: false },
|
|
9
|
+
asChild: { type: Boolean, required: false },
|
|
10
|
+
as: { type: [String, Object, Function], required: false },
|
|
11
|
+
stepper: { type: String, required: false, default: "solid-primary" },
|
|
12
|
+
class: { type: null, required: false }
|
|
13
|
+
});
|
|
14
|
+
const delegatedProps = reactiveOmit(props, "class", "una");
|
|
15
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<StepperSeparator
|
|
20
|
+
v-bind="forwarded"
|
|
21
|
+
:class="cn(
|
|
22
|
+
'stepper-separator',
|
|
23
|
+
orientation === 'vertical' ? 'stepper-separator-vertical' : 'stepper-separator-horizontal',
|
|
24
|
+
props.class,
|
|
25
|
+
props.una?.stepperSeparator
|
|
26
|
+
)"
|
|
27
|
+
:stepper
|
|
28
|
+
/>
|
|
29
|
+
</template>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NStepperSeparatorProps } from '../../types/index.js';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<NStepperSeparatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NStepperSeparatorProps> & Readonly<{}>, {
|
|
3
|
+
orientation: "vertical" | "horizontal";
|
|
4
|
+
stepper: string;
|
|
5
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { StepperTitle, useForwardProps } from "reka-ui";
|
|
4
|
+
import { cn } from "../../utils";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
una: { type: Object, required: false },
|
|
7
|
+
asChild: { type: Boolean, required: false },
|
|
8
|
+
as: { type: [String, Object, Function], required: false },
|
|
9
|
+
class: { type: null, required: false },
|
|
10
|
+
size: { type: null, required: false }
|
|
11
|
+
});
|
|
12
|
+
const delegatedProps = reactiveOmit(props, "class", "una");
|
|
13
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<StepperTitle
|
|
18
|
+
v-bind="forwarded"
|
|
19
|
+
:class="cn(
|
|
20
|
+
'stepper-title',
|
|
21
|
+
props.class,
|
|
22
|
+
props.una?.stepperTitle
|
|
23
|
+
)"
|
|
24
|
+
>
|
|
25
|
+
<slot />
|
|
26
|
+
</StepperTitle>
|
|
27
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NStepperTitleProps } 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<NStepperTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NStepperTitleProps> & 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
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { StepperTrigger, useForwardProps } from "reka-ui";
|
|
4
|
+
import { cn } from "../../utils";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
una: { type: Object, required: false },
|
|
7
|
+
asChild: { type: Boolean, required: false },
|
|
8
|
+
as: { type: [String, Object, Function], required: false },
|
|
9
|
+
stepper: { type: String, required: false, default: "solid-primary" },
|
|
10
|
+
class: { type: null, required: false },
|
|
11
|
+
size: { type: null, required: false }
|
|
12
|
+
});
|
|
13
|
+
const delegatedProps = reactiveOmit(props, "class", "una");
|
|
14
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<StepperTrigger
|
|
19
|
+
v-bind="forwarded"
|
|
20
|
+
:class="cn(
|
|
21
|
+
'stepper-trigger',
|
|
22
|
+
props.class,
|
|
23
|
+
props.una?.stepperTrigger
|
|
24
|
+
)"
|
|
25
|
+
:stepper
|
|
26
|
+
>
|
|
27
|
+
<slot />
|
|
28
|
+
</StepperTrigger>
|
|
29
|
+
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NStepperTriggerProps } 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<NStepperTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NStepperTriggerProps> & Readonly<{}>, {
|
|
7
|
+
stepper: string;
|
|
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,21 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { cn } from "../../utils";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
una: { type: Object, required: false },
|
|
5
|
+
class: { type: null, required: false },
|
|
6
|
+
orientation: { type: String, required: false, default: "horizontal" }
|
|
7
|
+
});
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div
|
|
12
|
+
:class="cn(
|
|
13
|
+
'stepper-wrapper',
|
|
14
|
+
orientation === 'vertical' && 'stepper-wrapper-vertical',
|
|
15
|
+
props.class,
|
|
16
|
+
props.una?.stepperWrapper
|
|
17
|
+
)"
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NStepperWrapperProps } from '../../types/index.js';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<NStepperWrapperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NStepperWrapperProps> & Readonly<{}>, {
|
|
7
|
+
orientation: "vertical" | "horizontal";
|
|
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,70 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
7
|
+
import { ToggleGroupRoot, useForwardPropsEmits } from "reka-ui";
|
|
8
|
+
import { cn } from "../../utils";
|
|
9
|
+
import ToggleGroupItem from "./ToggleGroupItem.vue";
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
items: { type: null, required: false },
|
|
12
|
+
_toggleGroupItem: { type: Object, required: false },
|
|
13
|
+
una: { type: Object, required: false },
|
|
14
|
+
rovingFocus: { type: Boolean, required: false },
|
|
15
|
+
disabled: { type: Boolean, required: false },
|
|
16
|
+
orientation: { type: String, required: false },
|
|
17
|
+
dir: { type: String, required: false },
|
|
18
|
+
loop: { type: Boolean, required: false },
|
|
19
|
+
asChild: { type: Boolean, required: false },
|
|
20
|
+
as: { type: [String, Object, Function], required: false },
|
|
21
|
+
name: { type: String, required: false },
|
|
22
|
+
required: { type: Boolean, required: false },
|
|
23
|
+
type: { type: String, required: false },
|
|
24
|
+
modelValue: { type: null, required: false },
|
|
25
|
+
defaultValue: { type: null, required: false },
|
|
26
|
+
toggleOff: { type: String, required: false },
|
|
27
|
+
toggleOn: { type: String, required: false },
|
|
28
|
+
class: { type: null, required: false },
|
|
29
|
+
size: { type: null, required: false }
|
|
30
|
+
});
|
|
31
|
+
const emits = defineEmits(["update:modelValue"]);
|
|
32
|
+
const rootProps = reactiveOmit(props, [
|
|
33
|
+
"class",
|
|
34
|
+
"size",
|
|
35
|
+
"toggleOff",
|
|
36
|
+
"toggleOn",
|
|
37
|
+
"una"
|
|
38
|
+
]);
|
|
39
|
+
const forwarded = useForwardPropsEmits(rootProps, emits);
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<template>
|
|
43
|
+
<ToggleGroupRoot
|
|
44
|
+
v-slot="slotProps"
|
|
45
|
+
v-bind="forwarded"
|
|
46
|
+
data-slot="toggle-group"
|
|
47
|
+
:class="cn(
|
|
48
|
+
'toggle-group',
|
|
49
|
+
props.orientation === 'vertical' ? 'toggle-group-vertical' : 'toggle-group-horizontal',
|
|
50
|
+
props.class,
|
|
51
|
+
props.una?.toggleGroup
|
|
52
|
+
)"
|
|
53
|
+
>
|
|
54
|
+
<slot v-bind="slotProps">
|
|
55
|
+
<template v-if="items && items.length">
|
|
56
|
+
<template v-for="item in items" :key="item.value">
|
|
57
|
+
<slot :name="item.slot ?? 'item'" v-bind="{ item, value: item.value }">
|
|
58
|
+
<ToggleGroupItem
|
|
59
|
+
:una
|
|
60
|
+
:size
|
|
61
|
+
:toggle-on
|
|
62
|
+
:toggle-off
|
|
63
|
+
v-bind="{ ...item, ..._toggleGroupItem }"
|
|
64
|
+
/>
|
|
65
|
+
</slot>
|
|
66
|
+
</template>
|
|
67
|
+
</template>
|
|
68
|
+
</slot>
|
|
69
|
+
</ToggleGroupRoot>
|
|
70
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { NToggleGroupItemProps, NToggleGroupProps } from '../../types/index.js';
|
|
2
|
+
declare const _default: <T extends NToggleGroupItemProps, U extends Array<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<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly "onUpdate:modelValue"?: ((payload: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[]) => any) | undefined;
|
|
5
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & NToggleGroupProps<U> & Partial<{}>> & import("vue").PublicProps;
|
|
6
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
7
|
+
attrs: any;
|
|
8
|
+
slots: {
|
|
9
|
+
[x: string]: ((props: {
|
|
10
|
+
item: any;
|
|
11
|
+
value: any;
|
|
12
|
+
}) => any) | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
default?: (props: any) => any;
|
|
15
|
+
};
|
|
16
|
+
emit: (evt: "update:modelValue", payload: import("reka-ui").AcceptableValue | import("reka-ui").AcceptableValue[]) => void;
|
|
17
|
+
}>) => import("vue").VNode & {
|
|
18
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_PrettifyLocal<T> = {
|
|
22
|
+
[K in keyof T]: T[K];
|
|
23
|
+
} & {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
7
|
+
import { ToggleGroupItem, useForwardPropsEmits } from "reka-ui";
|
|
8
|
+
import { cn } from "../../utils";
|
|
9
|
+
import Toggle from "../elements/Toggle.vue";
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
slot: { type: String, required: false },
|
|
12
|
+
una: { type: Object, required: false },
|
|
13
|
+
value: { type: null, required: true },
|
|
14
|
+
disabled: { type: Boolean, required: false },
|
|
15
|
+
asChild: { type: Boolean, required: false },
|
|
16
|
+
as: { type: [String, Object, Function], required: false, default: Toggle },
|
|
17
|
+
toggleOn: { type: String, required: false },
|
|
18
|
+
toggleOff: { type: String, required: false },
|
|
19
|
+
defaultValue: { type: Boolean, required: false },
|
|
20
|
+
modelValue: { type: [Boolean, null], required: false },
|
|
21
|
+
name: { type: String, required: false },
|
|
22
|
+
required: { type: Boolean, required: false },
|
|
23
|
+
type: { type: String, required: false },
|
|
24
|
+
loadingPlacement: { type: String, required: false },
|
|
25
|
+
icon: { type: Boolean, required: false, default: true },
|
|
26
|
+
reverse: { type: Boolean, required: false },
|
|
27
|
+
loading: { type: Boolean, required: false },
|
|
28
|
+
block: { type: Boolean, required: false },
|
|
29
|
+
to: { type: null, required: false },
|
|
30
|
+
label: { type: String, required: false },
|
|
31
|
+
btn: { type: String, required: false },
|
|
32
|
+
leading: { type: String, required: false },
|
|
33
|
+
trailing: { type: String, required: false },
|
|
34
|
+
size: { type: String, required: false },
|
|
35
|
+
square: { type: null, required: false, default: true },
|
|
36
|
+
rounded: { type: null, required: false },
|
|
37
|
+
class: { type: null, required: false },
|
|
38
|
+
breadcrumbActive: { type: String, required: false },
|
|
39
|
+
breadcrumbInactive: { type: String, required: false },
|
|
40
|
+
paginationSelected: { type: String, required: false },
|
|
41
|
+
paginationUnselected: { type: String, required: false },
|
|
42
|
+
dropdownMenu: { 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
|
+
});
|
|
49
|
+
const emits = defineEmits(["update:modelValue"]);
|
|
50
|
+
const delegatedProps = reactiveOmit(props, [
|
|
51
|
+
"class",
|
|
52
|
+
"toggleOff",
|
|
53
|
+
"toggleOn",
|
|
54
|
+
"una"
|
|
55
|
+
]);
|
|
56
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<template>
|
|
60
|
+
<ToggleGroupItem
|
|
61
|
+
v-slot="slotProps"
|
|
62
|
+
v-bind="forwarded"
|
|
63
|
+
data-slot="toggle-group-item"
|
|
64
|
+
:toggle-on
|
|
65
|
+
:toggle-off
|
|
66
|
+
:as="props.as"
|
|
67
|
+
:class="cn(
|
|
68
|
+
'toggle-group-item',
|
|
69
|
+
props.una?.toggleGroupItem,
|
|
70
|
+
props.class
|
|
71
|
+
)"
|
|
72
|
+
>
|
|
73
|
+
<slot v-bind="slotProps" />
|
|
74
|
+
</ToggleGroupItem>
|
|
75
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { NToggleGroupItemProps } from '../../types/index.js';
|
|
2
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NToggleGroupItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
"update:modelValue": (value: boolean) => any;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<NToggleGroupItemProps> & Readonly<{
|
|
5
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
icon: boolean;
|
|
8
|
+
square: import("vue").HTMLAttributes["class"];
|
|
9
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
11
|
+
default?: (props: any) => any;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -38,11 +38,13 @@ export * from './sheet.js';
|
|
|
38
38
|
export * from './sidebar.js';
|
|
39
39
|
export * from './skeleton.js';
|
|
40
40
|
export * from './slider.js';
|
|
41
|
+
export * from './stepper.js';
|
|
41
42
|
export * from './switch.js';
|
|
42
43
|
export * from './table.js';
|
|
43
44
|
export * from './tabs.js';
|
|
44
45
|
export * from './toast.js';
|
|
45
46
|
export * from './toggle.js';
|
|
47
|
+
export * from './toggle-group.js';
|
|
46
48
|
export * from './tooltip.js';
|
|
47
49
|
export interface Colors {
|
|
48
50
|
[key: string]: string;
|
|
@@ -38,9 +38,11 @@ export * from "./sheet.js";
|
|
|
38
38
|
export * from "./sidebar.js";
|
|
39
39
|
export * from "./skeleton.js";
|
|
40
40
|
export * from "./slider.js";
|
|
41
|
+
export * from "./stepper.js";
|
|
41
42
|
export * from "./switch.js";
|
|
42
43
|
export * from "./table.js";
|
|
43
44
|
export * from "./tabs.js";
|
|
44
45
|
export * from "./toast.js";
|
|
45
46
|
export * from "./toggle.js";
|
|
47
|
+
export * from "./toggle-group.js";
|
|
46
48
|
export * from "./tooltip.js";
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import type { StepperDescriptionProps, StepperIndicatorProps, StepperItemProps, StepperRootEmits, StepperRootProps, StepperSeparatorProps, StepperTitleProps, StepperTriggerProps } from 'reka-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
interface BaseExtensions {
|
|
4
|
+
/** CSS class for the component */
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
/** Size of the component */
|
|
7
|
+
size?: HTMLAttributes['class'];
|
|
8
|
+
}
|
|
9
|
+
export interface NStepperProps<T> extends StepperRootProps, Pick<StepperItemProps, 'disabled'>, BaseExtensions {
|
|
10
|
+
/**
|
|
11
|
+
* The array of steps that is passed to the stepper.
|
|
12
|
+
*
|
|
13
|
+
* @default []
|
|
14
|
+
*/
|
|
15
|
+
items?: T[];
|
|
16
|
+
/**
|
|
17
|
+
* Allows you to add `UnaUI` stepper preset properties,
|
|
18
|
+
* Think of it as a shortcut for adding options or variants to the preset if available.
|
|
19
|
+
*
|
|
20
|
+
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/stepper.ts
|
|
21
|
+
* @example
|
|
22
|
+
* stepper="solid-yellow"
|
|
23
|
+
*/
|
|
24
|
+
stepper?: string;
|
|
25
|
+
/** Props for the stepper item */
|
|
26
|
+
_stepperItem?: Partial<NStepperItemProps>;
|
|
27
|
+
/** Props for the stepper trigger */
|
|
28
|
+
_stepperTrigger?: Partial<NStepperTriggerProps>;
|
|
29
|
+
/** Props for the stepper separator */
|
|
30
|
+
_stepperSeparator?: Partial<NStepperSeparatorProps>;
|
|
31
|
+
/** Props for the stepper title */
|
|
32
|
+
_stepperTitle?: Partial<NStepperTitleProps>;
|
|
33
|
+
/** Props for the stepper description */
|
|
34
|
+
_stepperDescription?: Partial<NStepperDescriptionProps>;
|
|
35
|
+
/** Props for the stepper indicator */
|
|
36
|
+
_stepperIndicator?: Partial<NStepperIndicatorProps>;
|
|
37
|
+
/** Props for the stepper header */
|
|
38
|
+
_stepperHeader?: Partial<NStepperHeaderProps>;
|
|
39
|
+
/** Props for the stepper wrapper */
|
|
40
|
+
_stepperWrapper?: Partial<NStepperWrapperProps>;
|
|
41
|
+
/** Props for the stepper container */
|
|
42
|
+
_stepperContainer?: Partial<NStepperContainerProps>;
|
|
43
|
+
/**
|
|
44
|
+
* `UnaUI` preset configuration
|
|
45
|
+
*
|
|
46
|
+
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/stepper.ts
|
|
47
|
+
*/
|
|
48
|
+
una?: NStepperUnaProps;
|
|
49
|
+
}
|
|
50
|
+
export type NStepperEmits<T> = StepperRootEmits & {
|
|
51
|
+
next: [payload: T];
|
|
52
|
+
prev: [payload: T];
|
|
53
|
+
};
|
|
54
|
+
export interface NStepperItemProps extends StepperItemProps, Pick<NStepperProps<NStepperItemProps>, 'orientation'>, BaseExtensions {
|
|
55
|
+
/** Slot of the stepper item */
|
|
56
|
+
slot?: string;
|
|
57
|
+
/** Title of the stepper item. */
|
|
58
|
+
title?: string;
|
|
59
|
+
/** Description of the stepper item. */
|
|
60
|
+
description?: string;
|
|
61
|
+
value?: string | number;
|
|
62
|
+
/**
|
|
63
|
+
* Icon name
|
|
64
|
+
* @see @IconifyIcon
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* 'i-heroicons-book-open-20-solid'
|
|
68
|
+
*/
|
|
69
|
+
icon?: string;
|
|
70
|
+
/** Additional properties for the una component */
|
|
71
|
+
una?: Pick<NStepperUnaProps, 'stepperItem'>;
|
|
72
|
+
}
|
|
73
|
+
export interface NStepperTriggerProps extends StepperTriggerProps, Pick<NStepperProps<StepperItemProps>, 'stepper'>, BaseExtensions {
|
|
74
|
+
/** Additional properties for the una component */
|
|
75
|
+
una?: Pick<NStepperUnaProps, 'stepperTrigger' | 'stepperMenuDefaultVariant'>;
|
|
76
|
+
}
|
|
77
|
+
export interface NStepperSeparatorProps extends StepperSeparatorProps, Pick<NStepperProps<StepperItemProps>, 'stepper'>, Pick<BaseExtensions, 'class'> {
|
|
78
|
+
/** Additional properties for the una component */
|
|
79
|
+
una?: Pick<NStepperUnaProps, 'stepperSeparator'>;
|
|
80
|
+
}
|
|
81
|
+
export interface NStepperIndicatorProps extends StepperIndicatorProps, Pick<NStepperProps<StepperItemProps>, 'stepper'>, BaseExtensions {
|
|
82
|
+
/** Additional properties for the una component */
|
|
83
|
+
una?: Pick<NStepperUnaProps, 'stepperIndicator'>;
|
|
84
|
+
}
|
|
85
|
+
export interface NStepperHeaderProps extends Pick<BaseExtensions, 'class'>, Pick<NStepperProps<StepperItemProps>, 'orientation'> {
|
|
86
|
+
/** Additional properties for the una component */
|
|
87
|
+
una?: Pick<NStepperUnaProps, 'stepperHeader'>;
|
|
88
|
+
}
|
|
89
|
+
export interface NStepperTitleProps extends StepperTitleProps, BaseExtensions {
|
|
90
|
+
/** Additional properties for the una component */
|
|
91
|
+
una?: Pick<NStepperUnaProps, 'stepperTitle'>;
|
|
92
|
+
}
|
|
93
|
+
export interface NStepperDescriptionProps extends StepperDescriptionProps, BaseExtensions {
|
|
94
|
+
/** Additional properties for the una component */
|
|
95
|
+
una?: Pick<NStepperUnaProps, 'stepperDescription'>;
|
|
96
|
+
}
|
|
97
|
+
export interface NStepperContainerProps extends Pick<BaseExtensions, 'class'>, Pick<NStepperProps<StepperItemProps>, 'orientation'> {
|
|
98
|
+
/** Additional properties for the una component */
|
|
99
|
+
una?: Pick<NStepperUnaProps, 'stepperContainer'>;
|
|
100
|
+
}
|
|
101
|
+
export interface NStepperWrapperProps extends Pick<BaseExtensions, 'class'>, Pick<NStepperProps<StepperItemProps>, 'orientation'> {
|
|
102
|
+
/** Additional properties for the una component */
|
|
103
|
+
una?: Pick<NStepperUnaProps, 'stepperWrapper'>;
|
|
104
|
+
}
|
|
105
|
+
interface NStepperUnaProps {
|
|
106
|
+
/** CSS class for the stepper */
|
|
107
|
+
stepper?: HTMLAttributes['class'];
|
|
108
|
+
/** CSS class for the stepper trigger */
|
|
109
|
+
stepperTrigger?: HTMLAttributes['class'];
|
|
110
|
+
/** CSS class for the stepper trigger default variant */
|
|
111
|
+
stepperMenuDefaultVariant?: HTMLAttributes['class'];
|
|
112
|
+
/** CSS class for the stepper item */
|
|
113
|
+
stepperItem?: HTMLAttributes['class'];
|
|
114
|
+
/** CSS class for the stepper title */
|
|
115
|
+
stepperTitle?: HTMLAttributes['class'];
|
|
116
|
+
/** CSS class for the stepper description */
|
|
117
|
+
stepperDescription?: HTMLAttributes['class'];
|
|
118
|
+
/** CSS class for the stepper indicator */
|
|
119
|
+
stepperIndicator?: HTMLAttributes['class'];
|
|
120
|
+
/** CSS class for the stepper separator */
|
|
121
|
+
stepperSeparator?: HTMLAttributes['class'];
|
|
122
|
+
/** CSS class for the stepper header */
|
|
123
|
+
stepperHeader?: HTMLAttributes['class'];
|
|
124
|
+
/** CSS class for the stepper container */
|
|
125
|
+
stepperContainer?: HTMLAttributes['class'];
|
|
126
|
+
/** CSS class for the stepper wrapper */
|
|
127
|
+
stepperWrapper?: HTMLAttributes['class'];
|
|
128
|
+
}
|
|
129
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ToggleGroupItemProps, ToggleGroupRootProps } from 'reka-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import type { NButtonProps } from './button.js';
|
|
4
|
+
import type { NToggleProps } from './toggle.js';
|
|
5
|
+
interface BaseExtensions {
|
|
6
|
+
/** CSS class for the component */
|
|
7
|
+
class?: HTMLAttributes['class'];
|
|
8
|
+
/** Size of the component */
|
|
9
|
+
size?: HTMLAttributes['class'];
|
|
10
|
+
}
|
|
11
|
+
export interface NToggleGroupProps<T> extends ToggleGroupRootProps, Pick<NToggleProps, 'toggleOff' | 'toggleOn'>, BaseExtensions {
|
|
12
|
+
/**
|
|
13
|
+
* The array of items that is passed to the toggle group.
|
|
14
|
+
*
|
|
15
|
+
* @default []
|
|
16
|
+
*/
|
|
17
|
+
items?: T;
|
|
18
|
+
/** Props for the toggle group item */
|
|
19
|
+
_toggleGroupItem?: Partial<NToggleGroupItemProps>;
|
|
20
|
+
/**
|
|
21
|
+
* `UnaUI` preset configuration
|
|
22
|
+
*
|
|
23
|
+
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/toggle-group.ts
|
|
24
|
+
*/
|
|
25
|
+
una?: NToggleGroupUnaProps;
|
|
26
|
+
}
|
|
27
|
+
export interface NToggleGroupItemProps extends ToggleGroupItemProps, Omit<NToggleProps, 'una'>, Pick<BaseExtensions, 'class'> {
|
|
28
|
+
/** Slot of the toggle group item */
|
|
29
|
+
slot?: string;
|
|
30
|
+
/** Additional properties for the una component */
|
|
31
|
+
una?: Pick<NToggleGroupUnaProps, 'toggleGroupItem'> & NButtonProps['una'];
|
|
32
|
+
}
|
|
33
|
+
interface NToggleGroupUnaProps {
|
|
34
|
+
/** CSS class for the navigation menu */
|
|
35
|
+
toggleGroup?: HTMLAttributes['class'];
|
|
36
|
+
/** CSS class for the navigation menu content */
|
|
37
|
+
toggleGroupItem?: HTMLAttributes['class'];
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
File without changes
|