@@ -15,13 +15,11 @@ const inputs: FormInput[] = [
15
15
icon : "user" ,
16
16
} ) ,
17
17
new FormInput ( {
18
- values : [ "" ] ,
19
- name : "lastName" ,
20
- required : true ,
21
- title : "Last Name" ,
22
- placeholder : "What is your last name?" ,
23
- autocomplete : "family-name" ,
24
- icon : "user-group" ,
18
+ placeholder : "E.g. Blue" ,
19
+ title : "Possible Value" ,
20
+ icon : [ "industry" , { } ] ,
21
+ name : "offerFieldValues" ,
22
+ multiple : true ,
25
23
} ) ,
26
24
new FormInput ( {
27
25
required : true ,
@@ -35,19 +33,24 @@ const inputs: FormInput[] = [
35
33
title : "Choose one or several payment methods" ,
36
34
} ) ,
37
35
new FormInput ( {
38
- values : [ [ "" , "" , "" ] ] ,
39
- name : "location" ,
40
- type : eFormType . LOCATION ,
41
- required : true ,
36
+ options : [
37
+ { value : "Happy" , icon : "face-smile" } ,
38
+ { value : "Tired" , icon : "face-tired" } ,
39
+ { value : "Sad" , icon : "face-sad-tear" } ,
40
+ { value : "indiferent" , icon : "face-meh" } ,
41
+ { value : "In love" , icon : "face-grin-hearts" } ,
42
+ ] ,
43
+ type : eFormType . CHOICE ,
44
+ values : [ "" ] ,
45
+ name : "feeling" ,
46
+ title : "How you feeling today?" ,
42
47
} ) ,
43
48
new FormInput ( {
44
- values : [ [ "CO+57" , "" ] ] ,
45
- name : "cellphone " ,
46
- required : true ,
47
- type : eFormType . CELLPHONE ,
49
+ type : eFormType . BOOLEAN ,
50
+ placeholder : "Users can skip this field when creating an offer " ,
51
+ name : "nullable" ,
52
+ title : "Is this field optional in the offer?" ,
48
53
} ) ,
49
-
50
- // new FormInput({ value:"",name: "identification", type: eFormTypeSimple.ID }),
51
54
] ;
52
55
53
56
const meta = {
@@ -62,4 +65,30 @@ export const Sample: Story = {
62
65
args : { modelValue : inputs } ,
63
66
} ;
64
67
68
+ export const WithLocation : Story = {
69
+ args : {
70
+ modelValue : [
71
+ new FormInput ( {
72
+ values : [ [ "" , "" , "" ] ] ,
73
+ name : "location" ,
74
+ type : eFormType . LOCATION ,
75
+ required : true ,
76
+ } ) ,
77
+ ] ,
78
+ } ,
79
+ } ;
80
+
81
+ export const WithPhone : Story = {
82
+ args : {
83
+ modelValue : [
84
+ new FormInput ( {
85
+ values : [ [ "CO+57" , "" ] ] ,
86
+ name : "cellphone" ,
87
+ required : true ,
88
+ type : eFormType . CELLPHONE ,
89
+ } ) ,
90
+ ] ,
91
+ } ,
92
+ } ;
93
+
65
94
export default meta ;
0 commit comments