@una-ui/nuxt 1.0.0-alpha.8 → 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.
Files changed (65) hide show
  1. package/dist/module.json +3 -3
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/components/alert-dialog/AlertDialogAction.vue.d.ts +1 -1
  4. package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue.d.ts +1 -1
  5. package/dist/runtime/components/combobox/Combobox.vue +2 -0
  6. package/dist/runtime/components/combobox/Combobox.vue.d.ts +17 -17
  7. package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +1 -1
  8. package/dist/runtime/components/combobox/ComboboxList.vue +2 -0
  9. package/dist/runtime/components/combobox/ComboboxTrigger.vue.d.ts +1 -1
  10. package/dist/runtime/components/elements/Accordion.vue.d.ts +3 -3
  11. package/dist/runtime/components/elements/Badge.vue.d.ts +1 -5
  12. package/dist/runtime/components/elements/Toggle.vue.d.ts +1 -1
  13. package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue.d.ts +3 -3
  14. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +2 -0
  15. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +2 -0
  16. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +1 -1
  17. package/dist/runtime/components/elements/pagination/PaginationListItem.vue.d.ts +1 -1
  18. package/dist/runtime/components/elements/popover/PopoverContent.vue +2 -0
  19. package/dist/runtime/components/elements/tabs/Tabs.vue.d.ts +1 -1
  20. package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +1 -1
  21. package/dist/runtime/components/forms/Input.vue.d.ts +1 -13
  22. package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +3 -3
  23. package/dist/runtime/components/forms/select/Select.vue.d.ts +16 -16
  24. package/dist/runtime/components/forms/select/SelectContent.vue +2 -0
  25. package/dist/runtime/components/hover-card/HoverCardContent.vue +2 -0
  26. package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue.d.ts +6 -16
  27. package/dist/runtime/components/navigation-menu/NavigationMenu.vue.d.ts +10 -10
  28. package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +1 -1
  29. package/dist/runtime/components/number-field/NumberField.vue +1 -0
  30. package/dist/runtime/components/overlays/Toaster.vue.d.ts +1 -1
  31. package/dist/runtime/components/overlays/toast/Toast.vue.d.ts +1 -1
  32. package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +1 -1
  33. package/dist/runtime/components/resizable/ResizableHandle.vue +1 -0
  34. package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +1 -1
  35. package/dist/runtime/components/stepper/Stepper.vue +163 -0
  36. package/dist/runtime/components/stepper/Stepper.vue.d.ts +62 -0
  37. package/dist/runtime/components/stepper/StepperContainer.vue +21 -0
  38. package/dist/runtime/components/stepper/StepperContainer.vue.d.ts +15 -0
  39. package/dist/runtime/components/stepper/StepperDescription.vue +28 -0
  40. package/dist/runtime/components/stepper/StepperDescription.vue.d.ts +13 -0
  41. package/dist/runtime/components/stepper/StepperHeader.vue +21 -0
  42. package/dist/runtime/components/stepper/StepperHeader.vue.d.ts +15 -0
  43. package/dist/runtime/components/stepper/StepperIndicator.vue +34 -0
  44. package/dist/runtime/components/stepper/StepperIndicator.vue.d.ts +15 -0
  45. package/dist/runtime/components/stepper/StepperItem.vue +44 -0
  46. package/dist/runtime/components/stepper/StepperItem.vue.d.ts +15 -0
  47. package/dist/runtime/components/stepper/StepperSeparator.vue +29 -0
  48. package/dist/runtime/components/stepper/StepperSeparator.vue.d.ts +6 -0
  49. package/dist/runtime/components/stepper/StepperTitle.vue +27 -0
  50. package/dist/runtime/components/stepper/StepperTitle.vue.d.ts +13 -0
  51. package/dist/runtime/components/stepper/StepperTrigger.vue +29 -0
  52. package/dist/runtime/components/stepper/StepperTrigger.vue.d.ts +15 -0
  53. package/dist/runtime/components/stepper/StepperWrapper.vue +21 -0
  54. package/dist/runtime/components/stepper/StepperWrapper.vue.d.ts +15 -0
  55. package/dist/runtime/components/toggle-group/ToggleGroup.vue +70 -0
  56. package/dist/runtime/components/toggle-group/ToggleGroup.vue.d.ts +23 -0
  57. package/dist/runtime/components/toggle-group/ToggleGroupItem.vue +75 -0
  58. package/dist/runtime/components/toggle-group/ToggleGroupItem.vue.d.ts +18 -0
  59. package/dist/runtime/types/index.d.ts +2 -0
  60. package/dist/runtime/types/index.js +2 -0
  61. package/dist/runtime/types/stepper.d.ts +129 -0
  62. package/dist/runtime/types/stepper.js +0 -0
  63. package/dist/runtime/types/toggle-group.d.ts +39 -0
  64. package/dist/runtime/types/toggle-group.js +0 -0
  65. package/package.json +16 -16
@@ -0,0 +1,163 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { StepperRoot, useForwardPropsEmits } from "reka-ui";
4
+ import { computed, useTemplateRef } from "vue";
5
+ import { cn } from "../../utils";
6
+ import Icon from "../elements/Icon.vue";
7
+ import StepperContainer from "./StepperContainer.vue";
8
+ import StepperDescription from "./StepperDescription.vue";
9
+ import StepperHeader from "./StepperHeader.vue";
10
+ import StepperIndicator from "./StepperIndicator.vue";
11
+ import StepperItem from "./StepperItem.vue";
12
+ import StepperSeparator from "./StepperSeparator.vue";
13
+ import StepperTitle from "./StepperTitle.vue";
14
+ import StepperTrigger from "./StepperTrigger.vue";
15
+ import StepperWrapper from "./StepperWrapper.vue";
16
+ const props = defineProps({
17
+ items: { type: Array, required: false },
18
+ stepper: { type: String, required: false, default: "solid-primary" },
19
+ _stepperItem: { type: Object, required: false },
20
+ _stepperTrigger: { type: Object, required: false },
21
+ _stepperSeparator: { type: Object, required: false },
22
+ _stepperTitle: { type: Object, required: false },
23
+ _stepperDescription: { type: Object, required: false },
24
+ _stepperIndicator: { type: Object, required: false },
25
+ _stepperHeader: { type: Object, required: false },
26
+ _stepperWrapper: { type: Object, required: false },
27
+ _stepperContainer: { type: Object, required: false },
28
+ una: { type: Object, required: false },
29
+ defaultValue: { type: Number, required: false },
30
+ orientation: { type: String, required: false, default: "horizontal" },
31
+ dir: { type: String, required: false },
32
+ modelValue: { type: Number, required: false },
33
+ linear: { type: Boolean, required: false },
34
+ asChild: { type: Boolean, required: false },
35
+ as: { type: [String, Object, Function], required: false },
36
+ disabled: { type: Boolean, required: false },
37
+ class: { type: null, required: false },
38
+ size: { type: null, required: false }
39
+ });
40
+ const emits = defineEmits(["update:modelValue", "next", "prev"]);
41
+ const modelValue = defineModel({ type: [String, Number] });
42
+ const delegatedProps = reactiveOmit(props, [
43
+ "class",
44
+ "una"
45
+ ]);
46
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
47
+ const stepper = useTemplateRef("stepper");
48
+ const currentStepIndex = computed({
49
+ get() {
50
+ const value = modelValue.value ?? props.defaultValue;
51
+ return (typeof value === "string" ? props.items?.findIndex((item) => item.value === value) : value) ?? 0;
52
+ },
53
+ set(value) {
54
+ modelValue.value = props.items?.[value]?.value ?? value;
55
+ }
56
+ });
57
+ const currentStep = computed(() => props.items?.[currentStepIndex.value]);
58
+ const isEveryItemHasStep = computed(() => props.items?.every((item) => item.step));
59
+ const hasNextStep = computed(() => currentStepIndex.value < props.items.length - 1);
60
+ const hasPrevStep = computed(() => currentStepIndex.value > 0);
61
+ defineExpose({
62
+ goToStep: (step) => {
63
+ currentStepIndex.value = step;
64
+ stepper.value?.goToStep(step);
65
+ },
66
+ nextStep: () => {
67
+ if (!hasNextStep.value)
68
+ return;
69
+ currentStepIndex.value += 1;
70
+ stepper.value?.nextStep();
71
+ emits("next", currentStep.value);
72
+ },
73
+ prevStep: () => {
74
+ if (!hasPrevStep.value)
75
+ return;
76
+ currentStepIndex.value -= 1;
77
+ stepper.value?.prevStep();
78
+ emits("prev", currentStep.value);
79
+ },
80
+ hasNext: () => stepper.value?.hasNext(),
81
+ hasPrev: () => stepper.value?.hasPrev()
82
+ });
83
+ </script>
84
+
85
+ <template>
86
+ <StepperRoot
87
+ ref="stepper"
88
+ v-slot="slotProps"
89
+ v-bind="forwarded"
90
+ v-model="currentStepIndex"
91
+ :class="cn(
92
+ 'stepper',
93
+ orientation === 'horizontal' && 'stepper-horizontal',
94
+ props.class
95
+ )"
96
+ :una
97
+ >
98
+ <slot v-bind="slotProps">
99
+ <StepperWrapper :una v-bind="props._stepperWrapper" :orientation>
100
+ <slot name="wrapper" :items>
101
+ <StepperItem
102
+ v-for="(item, idx) in items"
103
+ :key="isEveryItemHasStep ? item.step : idx"
104
+ :step="isEveryItemHasStep ? item.step : idx"
105
+ :disabled="item.disabled ?? props.disabled"
106
+ :una
107
+ v-bind="props._stepperItem"
108
+ :orientation
109
+ >
110
+ <slot name="item" :item="item" :step="isEveryItemHasStep ? item.step : idx">
111
+ <StepperContainer :orientation :una v-bind="props._stepperContainer">
112
+ <StepperTrigger v-bind="props._stepperTrigger" :una :stepper="props.stepper" :size="size ?? item.size">
113
+ <slot name="trigger" :item="item">
114
+ <StepperIndicator
115
+ v-slot="{ step }"
116
+ v-bind="props._stepperIndicator"
117
+ :una
118
+ :size="size ?? item.size"
119
+ :stepper="props.stepper"
120
+ >
121
+ <slot name="indicator" :item :step>
122
+ <Icon v-if="item.icon" :name="item.icon" :size="size ?? item.size" />
123
+ <template v-else>
124
+ {{ idx + 1 }}
125
+ </template>
126
+ </slot>
127
+ </StepperIndicator>
128
+ </slot>
129
+ </StepperTrigger>
130
+ <StepperSeparator
131
+ v-if="items && idx < items.length - 1"
132
+ v-bind="props._stepperSeparator"
133
+ :una
134
+ :stepper="props.stepper"
135
+ :orientation
136
+ />
137
+ </StepperContainer>
138
+ <StepperHeader :una v-bind="props._stepperHeader" :orientation>
139
+ <slot name="header" :item="item">
140
+ <StepperTitle v-if="item.title" :una v-bind="props._stepperTitle" :size="size ?? item.size">
141
+ <slot name="title" :item="item">
142
+ {{ item.title }}
143
+ </slot>
144
+ </StepperTitle>
145
+ <StepperDescription v-if="item.description" :una v-bind="props._stepperDescription" :size="size ?? item.size">
146
+ <slot name="description" :item="item">
147
+ {{ item.description }}
148
+ </slot>
149
+ </StepperDescription>
150
+ </slot>
151
+ </StepperHeader>
152
+ </slot>
153
+ </StepperItem>
154
+ </slot>
155
+ </StepperWrapper>
156
+ <slot
157
+ v-if="!!$slots.content || currentStep?.slot"
158
+ :name="currentStep?.slot ?? 'content'"
159
+ :item="currentStep"
160
+ />
161
+ </slot>
162
+ </StepperRoot>
163
+ </template>
@@ -0,0 +1,62 @@
1
+ import type { NStepperItemProps, NStepperProps } from '../../types/index.js';
2
+ declare const _default: <T extends Partial<NStepperItemProps>>(__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"?: ((...args: unknown[]) => any) | undefined;
5
+ readonly onNext?: ((payload: T) => any) | undefined;
6
+ readonly onPrev?: ((payload: T) => any) | undefined;
7
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onNext" | "onPrev"> & (NStepperProps<T> & {
8
+ modelValue?: string | number;
9
+ }) & Partial<{}>> & import("vue").PublicProps;
10
+ expose(exposed: import("vue").ShallowUnwrapRef<{
11
+ goToStep: (step: number) => void;
12
+ nextStep: () => void;
13
+ prevStep: () => void;
14
+ hasNext: () => boolean | undefined;
15
+ hasPrev: () => boolean | undefined;
16
+ }>): void;
17
+ attrs: any;
18
+ slots: {
19
+ [x: string]: ((props: {
20
+ item: any;
21
+ }) => any) | undefined;
22
+ } & {
23
+ default?: (props: any) => any;
24
+ } & {
25
+ wrapper?: (props: {
26
+ items: any;
27
+ }) => any;
28
+ } & {
29
+ item?: (props: {
30
+ item: any;
31
+ step: any;
32
+ }) => any;
33
+ } & {
34
+ trigger?: (props: {
35
+ item: any;
36
+ }) => any;
37
+ } & {
38
+ indicator?: (props: {
39
+ item: any;
40
+ step: any;
41
+ }) => any;
42
+ } & {
43
+ header?: (props: {
44
+ item: any;
45
+ }) => any;
46
+ } & {
47
+ title?: (props: {
48
+ item: any;
49
+ }) => any;
50
+ } & {
51
+ description?: (props: {
52
+ item: any;
53
+ }) => any;
54
+ };
55
+ emit: (((evt: "update:modelValue", payload: number | undefined) => void) & ((evt: "next", payload: T) => void) & ((evt: "prev", payload: T) => void)) & ((evt: "update:modelValue", value: string | number | undefined) => void);
56
+ }>) => import("vue").VNode & {
57
+ __ctx?: Awaited<typeof __VLS_setup>;
58
+ };
59
+ export default _default;
60
+ type __VLS_PrettifyLocal<T> = {
61
+ [K in keyof T]: T[K];
62
+ } & {};
@@ -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-container',
14
+ orientation === 'horizontal' && 'stepper-container-horizontal',
15
+ props.class,
16
+ props.una?.stepperContainer
17
+ )"
18
+ >
19
+ <slot />
20
+ </div>
21
+ </template>
@@ -0,0 +1,15 @@
1
+ import type { NStepperContainerProps } 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<NStepperContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NStepperContainerProps> & 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,28 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { StepperDescription, 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
+ <StepperDescription
18
+ v-slot="slotProps"
19
+ v-bind="forwarded"
20
+ :class="cn(
21
+ 'stepper-description',
22
+ props.class,
23
+ props.una?.stepperDescription
24
+ )"
25
+ >
26
+ <slot v-bind="slotProps" />
27
+ </StepperDescription>
28
+ </template>
@@ -0,0 +1,13 @@
1
+ import type { NStepperDescriptionProps } 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<NStepperDescriptionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NStepperDescriptionProps> & 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,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-header',
14
+ orientation === 'horizontal' && 'stepper-header-horizontal',
15
+ props.class,
16
+ props.una?.stepperHeader
17
+ )"
18
+ >
19
+ <slot />
20
+ </div>
21
+ </template>
@@ -0,0 +1,15 @@
1
+ import type { NStepperHeaderProps } 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<NStepperHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NStepperHeaderProps> & 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,34 @@
1
+ <script setup>
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { StepperIndicator, 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, [
14
+ "class",
15
+ "una",
16
+ "stepper"
17
+ ]);
18
+ const forwarded = useForwardProps(delegatedProps);
19
+ </script>
20
+
21
+ <template>
22
+ <StepperIndicator
23
+ v-slot="slotProps"
24
+ v-bind="forwarded"
25
+ :class="cn(
26
+ 'stepper-indicator',
27
+ props.class,
28
+ props.una?.stepperIndicator
29
+ )"
30
+ :stepper
31
+ >
32
+ <slot v-bind="slotProps" />
33
+ </StepperIndicator>
34
+ </template>
@@ -0,0 +1,15 @@
1
+ import type { NStepperIndicatorProps } 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<NStepperIndicatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NStepperIndicatorProps> & 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,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
+ };