@@ -4,9 +4,9 @@ import { type iForm, FormInput, useForm } from "@open-xamu-co/ui-common-helpers"
4
4
import { eFormType } from "@open-xamu-co/ui-common-enums" ;
5
5
import type { iInvalidInput } from "@open-xamu-co/ui-common-types" ;
6
6
7
- import Stages from "./Stages.vue" ;
7
+ import StagesComponent from "./Stages.vue" ;
8
8
9
- export const stages : iForm [ ] [ ] = [
9
+ export const stagesData : iForm [ ] [ ] = [
10
10
[
11
11
{
12
12
title : "Offer field" ,
@@ -97,17 +97,18 @@ async function submitFn(inputs: FormInput[]): Promise<boolean | iInvalidInput[]>
97
97
98
98
const meta = {
99
99
title : "Form/Form Stages" ,
100
- component : Stages ,
101
- args : { stages, submitFn } ,
102
- } satisfies Meta < typeof Stages > ;
100
+ component : StagesComponent ,
101
+ args : { stages : stagesData , submitFn } ,
102
+ excludeStories : / .* D a t a $ / ,
103
+ } satisfies Meta < typeof StagesComponent > ;
103
104
104
- type Story = StoryObj < typeof Stages > ;
105
+ type Story = StoryObj < typeof StagesComponent > ;
105
106
106
- export const Sample : Story = {
107
- args : { stages, submitFn } ,
107
+ export const Stages : Story = {
108
+ args : { stages : stagesData , submitFn } ,
108
109
} ;
109
110
110
- export const WithInvalidStage : Story = {
111
+ export const StagesWithInvalidStage : Story = {
111
112
args : {
112
113
stages : [
113
114
[
0 commit comments