@eturnity/eturnity_reusable_components 7.30.3 → 7.32.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/.eslintrc.js +184 -0
- package/.prettierrc +8 -6
- package/package.json +9 -21
- package/src/App.vue +79 -78
- package/src/assets/theme.js +3 -3
- package/src/components/addNewButton/AddNewButton.stories.js +2 -2
- package/src/components/addNewButton/index.vue +48 -51
- package/src/components/banner/actionBanner/index.vue +54 -55
- package/src/components/banner/banner/banner.stories.js +5 -5
- package/src/components/banner/banner/index.vue +159 -159
- package/src/components/banner/infoBanner/index.vue +41 -53
- package/src/components/buttons/buttonIcon/index.vue +125 -122
- package/src/components/buttons/closeButton/CloseButton.stories.js +3 -3
- package/src/components/buttons/closeButton/index.vue +49 -49
- package/src/components/buttons/mainButton/index.vue +108 -108
- package/src/components/card/index.vue +70 -70
- package/src/components/collapsableInfoText/index.vue +96 -94
- package/src/components/deleteIcon/DeleteIcon.stories.js +4 -4
- package/src/components/deleteIcon/index.vue +54 -54
- package/src/components/draggableInputHandle/index.vue +37 -37
- package/src/components/dropdown/Dropdown.stories.js +9 -10
- package/src/components/dropdown/index.vue +106 -106
- package/src/components/errorMessage/index.vue +52 -52
- package/src/components/filter/filterSettings.vue +428 -422
- package/src/components/filter/index.vue +135 -135
- package/src/components/filter/parentDropdown.vue +73 -73
- package/src/components/icon/Icons.stories.js +7 -7
- package/src/components/icon/iconCollection.vue +53 -53
- package/src/components/icon/index.vue +122 -122
- package/src/components/iconWrapper/index.vue +156 -156
- package/src/components/infoCard/index.vue +30 -32
- package/src/components/infoText/index.vue +142 -137
- package/src/components/inputs/checkbox/Checkbox.stories.js +8 -8
- package/src/components/inputs/checkbox/index.vue +190 -180
- package/src/components/inputs/inputNumber/InputNumber.stories.js +41 -41
- package/src/components/inputs/inputNumber/index.vue +696 -696
- package/src/components/inputs/inputNumberQuestion/index.vue +185 -182
- package/src/components/inputs/inputText/InputText.stories.js +22 -22
- package/src/components/inputs/inputText/index.vue +337 -336
- package/src/components/inputs/radioButton/RadioButton.stories.js +16 -16
- package/src/components/inputs/radioButton/index.vue +222 -219
- package/src/components/inputs/searchInput/SearchInput.stories.js +8 -8
- package/src/components/inputs/searchInput/index.vue +127 -126
- package/src/components/inputs/select/index.vue +792 -791
- package/src/components/inputs/select/option/index.vue +124 -124
- package/src/components/inputs/select/select.stories.js +31 -32
- package/src/components/inputs/slider/index.vue +99 -99
- package/src/components/inputs/switchField/index.vue +220 -222
- package/src/components/inputs/textAreaInput/TextAreaInput.stories.js +57 -57
- package/src/components/inputs/textAreaInput/index.vue +171 -173
- package/src/components/inputs/toggle/Toggle.stories.js +14 -14
- package/src/components/inputs/toggle/index.vue +214 -217
- package/src/components/label/index.vue +82 -82
- package/src/components/markerItem/index.vue +68 -66
- package/src/components/modals/actionModal/index.vue +54 -54
- package/src/components/modals/infoModal/index.vue +39 -36
- package/src/components/modals/modal/index.vue +134 -134
- package/src/components/modals/modal/modal.stories.js +5 -5
- package/src/components/navigationTabs/index.vue +96 -94
- package/src/components/pageSubtitle/index.vue +55 -49
- package/src/components/pageTitle/index.vue +56 -56
- package/src/components/pagination/index.vue +92 -89
- package/src/components/progressBar/index.vue +107 -107
- package/src/components/projectMarker/index.vue +246 -244
- package/src/components/rangeSlider/Slider.vue +491 -465
- package/src/components/rangeSlider/index.vue +410 -410
- package/src/components/rangeSlider/utils/dom.js +5 -5
- package/src/components/selectedOptions/index.vue +119 -119
- package/src/components/sideMenu/index.vue +199 -199
- package/src/components/spinner/index.vue +57 -57
- package/src/components/tableDropdown/index.vue +520 -520
- package/src/components/tables/mainTable/index.vue +417 -400
- package/src/components/tables/viewTable/index.vue +171 -171
- package/src/components/threeDots/index.vue +340 -334
- package/src/components/videoThumbnail/index.vue +86 -86
- package/src/components/videoThumbnail/videoThumbnail.stories.js +14 -16
- package/src/helpers/numberConverter.js +2 -2
- package/src/helpers/translateLang.js +9 -9
- package/src/mixins/inputValidations.js +5 -5
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
@@ -1,256 +1,254 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
4
|
-
:
|
2
|
+
<Container>
|
3
|
+
<FlexWrapper
|
4
|
+
:align-items="alignItems"
|
5
5
|
:disabled="disabled"
|
6
|
-
:alignItems="alignItems"
|
7
6
|
:label="label"
|
7
|
+
:size="size"
|
8
8
|
>
|
9
|
-
<
|
9
|
+
<LabelContainer
|
10
10
|
v-if="label && labelAlign === 'left'"
|
11
|
-
:
|
12
|
-
:
|
13
|
-
:
|
14
|
-
:
|
11
|
+
:color-mode="colorMode"
|
12
|
+
:has-info-message="!!infoTextMessage"
|
13
|
+
:primary-color="primaryColor"
|
14
|
+
:secondary-color="secondaryColor"
|
15
15
|
>
|
16
|
-
<
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
</label-container>
|
16
|
+
<LabelText :size="size">
|
17
|
+
{{ label }}
|
18
|
+
</LabelText>
|
19
|
+
<InfoText v-if="infoTextMessage" :text="infoTextMessage" />
|
20
|
+
</LabelContainer>
|
22
21
|
|
23
|
-
<
|
24
|
-
:
|
22
|
+
<SwitchWrapper
|
23
|
+
:background-color="backgroundColor"
|
25
24
|
:disabled="disabled"
|
26
|
-
:
|
25
|
+
:size="size"
|
27
26
|
>
|
28
|
-
<
|
27
|
+
<SwitchOption
|
29
28
|
v-for="(item, index) in options"
|
30
29
|
:key="index"
|
31
|
-
|
32
|
-
:isActive="selectedValue == item.value"
|
33
|
-
:colorMode="colorMode"
|
34
|
-
:primaryColor="primaryColor"
|
35
|
-
:secondaryColor="secondaryColor"
|
36
|
-
:inactiveColor="inactiveColor"
|
30
|
+
:color-mode="colorMode"
|
37
31
|
:data-id="item.hasOwnProperty('dataId') ? item.dataId : ''"
|
32
|
+
:inactive-color="inactiveColor"
|
33
|
+
:is-active="selectedValue == item.value"
|
34
|
+
:primary-color="primaryColor"
|
35
|
+
:secondary-color="secondaryColor"
|
36
|
+
@click="selectItem(item.value)"
|
38
37
|
>
|
39
38
|
{{ item.content }}
|
40
|
-
</
|
41
|
-
</
|
42
|
-
<
|
39
|
+
</SwitchOption>
|
40
|
+
</SwitchWrapper>
|
41
|
+
<LabelContainer
|
43
42
|
v-if="label && labelAlign === 'right'"
|
44
|
-
:
|
43
|
+
:has-info-message="!!infoTextMessage"
|
45
44
|
>
|
46
|
-
<
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</flex-wrapper>
|
54
|
-
</container>
|
45
|
+
<LabelText :font-color="fontColor" :size="size">
|
46
|
+
{{ label }}
|
47
|
+
</LabelText>
|
48
|
+
<InfoText v-if="infoTextMessage" :text="infoTextMessage" @click.stop />
|
49
|
+
</LabelContainer>
|
50
|
+
</FlexWrapper>
|
51
|
+
</Container>
|
55
52
|
</template>
|
56
53
|
|
57
54
|
<script>
|
58
|
-
// import Toggle from "@eturnity/eturnity_reusable_components/src/components/inputs/toggle"
|
59
|
-
// To use:
|
60
|
-
// <SwitchField
|
61
|
-
// @on-switch-change="onInputChange($event)"
|
62
|
-
// :options="[{value:0,content:'zero'},{value:1,content:'one'},{value:2,content:'two'}]"
|
63
|
-
// :value="1"
|
64
|
-
// label="label"
|
65
|
-
// toggleColor="red"
|
66
|
-
// size="large"
|
67
|
-
// backgroundColor="blue"
|
68
|
-
// labelAlign="left"
|
69
|
-
// fontColor="black"
|
70
|
-
// :disabled="false"
|
71
|
-
// />
|
72
|
-
|
73
|
-
import styled from 'vue3-styled-components'
|
74
|
-
import InfoText from '../../infoText'
|
75
|
-
import theme from '../../../assets/theme'
|
76
|
-
const Container = styled.div``
|
55
|
+
// import Toggle from "@eturnity/eturnity_reusable_components/src/components/inputs/toggle"
|
56
|
+
// To use:
|
57
|
+
// <SwitchField
|
58
|
+
// @on-switch-change="onInputChange($event)"
|
59
|
+
// :options="[{value:0,content:'zero'},{value:1,content:'one'},{value:2,content:'two'}]"
|
60
|
+
// :value="1"
|
61
|
+
// label="label"
|
62
|
+
// toggleColor="red"
|
63
|
+
// size="large"
|
64
|
+
// backgroundColor="blue"
|
65
|
+
// labelAlign="left"
|
66
|
+
// fontColor="black"
|
67
|
+
// :disabled="false"
|
68
|
+
// />
|
77
69
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
alignItems: String
|
83
|
-
}
|
84
|
-
const FlexWrapper = styled('div', flexAttrs)`
|
85
|
-
display: grid;
|
86
|
-
grid-template-columns: auto 1fr;
|
87
|
-
grid-gap: 10px;
|
88
|
-
align-items: center;
|
89
|
-
cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
|
90
|
-
grid-template-columns: ${(props) =>
|
91
|
-
props.alignItems === 'vertical' || !props.label ? '1fr' : 'auto 1fr'};
|
92
|
-
`
|
70
|
+
import styled from 'vue3-styled-components'
|
71
|
+
import InfoText from '../../infoText'
|
72
|
+
import theme from '../../../assets/theme'
|
73
|
+
const Container = styled.div``
|
93
74
|
|
94
|
-
const
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
isChecked: Boolean,
|
100
|
-
secondaryColor: String,
|
101
|
-
primaryColor: String,
|
102
|
-
}
|
103
|
-
const LabelText = styled('div', toggleAttrs)`
|
104
|
-
color: ${(props) => props.primaryColor };
|
105
|
-
font-size: 13px;
|
106
|
-
font-weight: 700;
|
107
|
-
`
|
108
|
-
|
109
|
-
const SwitchWrapper = styled('span', toggleAttrs)`
|
110
|
-
display: flex;
|
111
|
-
position: relative;
|
112
|
-
cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
|
113
|
-
height: ${(props) =>
|
114
|
-
props.size === 'medium'
|
115
|
-
? '24px'
|
116
|
-
: props.size === 'small'
|
117
|
-
? '16px'
|
118
|
-
: '24px'};
|
119
|
-
`
|
120
|
-
const optionAttrs = {
|
121
|
-
isActive: Boolean,
|
122
|
-
primaryColor: String,
|
123
|
-
secondaryColor: String,
|
124
|
-
inactiveColor: String
|
125
|
-
}
|
126
|
-
const switchOption = styled('div', optionAttrs)`
|
127
|
-
color: ${(props) =>
|
128
|
-
props.isActive ? props.primaryColor : props.inactiveColor};
|
129
|
-
background-color: ${(props) =>
|
130
|
-
props.isActive ? props.secondaryColor : 'transparent'};
|
131
|
-
border: 1px solid
|
132
|
-
${(props) => (props.isActive ? props.secondaryColor : props.inactiveColor)};
|
133
|
-
display: flex;
|
134
|
-
align-items: center;
|
135
|
-
justify-content: center;
|
136
|
-
flex-grow: 1;
|
137
|
-
font-size: 13px;
|
138
|
-
line-height: 1;
|
139
|
-
text-align: center;
|
140
|
-
padding: 10px;
|
141
|
-
margin-right: -1px;
|
142
|
-
transition: all 0.1s ease-in-out;
|
143
|
-
overflow: hidden;
|
144
|
-
& :hover {
|
145
|
-
cursor: pointer;
|
75
|
+
const flexAttrs = {
|
76
|
+
label: String,
|
77
|
+
size: String,
|
78
|
+
disabled: Boolean,
|
79
|
+
alignItems: String,
|
146
80
|
}
|
147
|
-
|
148
|
-
|
81
|
+
const FlexWrapper = styled('div', flexAttrs)`
|
82
|
+
display: grid;
|
83
|
+
grid-template-columns: auto 1fr;
|
84
|
+
grid-gap: 10px;
|
85
|
+
align-items: center;
|
86
|
+
cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
|
87
|
+
grid-template-columns: ${(props) =>
|
88
|
+
props.alignItems === 'vertical' || !props.label ? '1fr' : 'auto 1fr'};
|
89
|
+
`
|
90
|
+
|
91
|
+
const toggleAttrs = {
|
92
|
+
size: String,
|
93
|
+
fontColor: String,
|
94
|
+
disabled: Boolean,
|
95
|
+
backgroundColor: String,
|
96
|
+
isChecked: Boolean,
|
97
|
+
secondaryColor: String,
|
98
|
+
primaryColor: String,
|
149
99
|
}
|
150
|
-
|
151
|
-
|
100
|
+
const LabelText = styled('div', toggleAttrs)`
|
101
|
+
color: ${(props) => props.primaryColor};
|
102
|
+
font-size: 13px;
|
103
|
+
font-weight: 700;
|
104
|
+
`
|
105
|
+
|
106
|
+
const SwitchWrapper = styled('span', toggleAttrs)`
|
107
|
+
display: flex;
|
108
|
+
position: relative;
|
109
|
+
cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
|
110
|
+
height: ${(props) =>
|
111
|
+
props.size === 'medium'
|
112
|
+
? '24px'
|
113
|
+
: props.size === 'small'
|
114
|
+
? '16px'
|
115
|
+
: '24px'};
|
116
|
+
`
|
117
|
+
const optionAttrs = {
|
118
|
+
isActive: Boolean,
|
119
|
+
primaryColor: String,
|
120
|
+
secondaryColor: String,
|
121
|
+
inactiveColor: String,
|
152
122
|
}
|
153
|
-
`
|
123
|
+
const SwitchOption = styled('div', optionAttrs)`
|
124
|
+
color: ${(props) =>
|
125
|
+
props.isActive ? props.primaryColor : props.inactiveColor};
|
126
|
+
background-color: ${(props) =>
|
127
|
+
props.isActive ? props.secondaryColor : 'transparent'};
|
128
|
+
border: 1px solid
|
129
|
+
${(props) =>
|
130
|
+
props.isActive ? props.secondaryColor : props.inactiveColor};
|
131
|
+
display: flex;
|
132
|
+
align-items: center;
|
133
|
+
justify-content: center;
|
134
|
+
flex-grow: 1;
|
135
|
+
font-size: 13px;
|
136
|
+
line-height: 1;
|
137
|
+
text-align: center;
|
138
|
+
padding: 10px;
|
139
|
+
margin-right: -1px;
|
140
|
+
transition: all 0.1s ease-in-out;
|
141
|
+
overflow: hidden;
|
142
|
+
& :hover {
|
143
|
+
cursor: pointer;
|
144
|
+
}
|
145
|
+
&:first-child {
|
146
|
+
border-radius: 4px 0 0 4px;
|
147
|
+
}
|
148
|
+
&:last-child {
|
149
|
+
border-radius: 0 4px 4px 0;
|
150
|
+
}
|
151
|
+
`
|
154
152
|
|
155
|
-
const labelAttrs = { hasInfoMessage: Boolean }
|
156
|
-
const LabelContainer = styled('div', labelAttrs)`
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
`
|
153
|
+
const labelAttrs = { hasInfoMessage: Boolean }
|
154
|
+
const LabelContainer = styled('div', labelAttrs)`
|
155
|
+
display: inline-grid;
|
156
|
+
grid-template-columns: ${(props) =>
|
157
|
+
props.hasInfoMessage ? 'auto 1fr' : 'auto'};
|
158
|
+
grid-gap: 12px;
|
159
|
+
align-items: center;
|
160
|
+
`
|
163
161
|
|
164
|
-
export default {
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
},
|
175
|
-
props: {
|
176
|
-
label: {
|
177
|
-
required: false,
|
178
|
-
default: ''
|
179
|
-
},
|
180
|
-
toggleColor: {
|
181
|
-
required: false
|
162
|
+
export default {
|
163
|
+
name: 'SwitchField',
|
164
|
+
components: {
|
165
|
+
Container,
|
166
|
+
SwitchWrapper,
|
167
|
+
FlexWrapper,
|
168
|
+
LabelText,
|
169
|
+
InfoText,
|
170
|
+
LabelContainer,
|
171
|
+
SwitchOption,
|
182
172
|
},
|
183
|
-
|
184
|
-
|
173
|
+
props: {
|
174
|
+
label: {
|
175
|
+
required: false,
|
176
|
+
default: '',
|
177
|
+
},
|
178
|
+
toggleColor: {
|
179
|
+
required: false,
|
180
|
+
},
|
181
|
+
backgroundColor: {
|
182
|
+
required: false,
|
183
|
+
},
|
184
|
+
size: {
|
185
|
+
required: false,
|
186
|
+
default: 'small',
|
187
|
+
},
|
188
|
+
labelAlign: {
|
189
|
+
required: false,
|
190
|
+
default: 'left',
|
191
|
+
},
|
192
|
+
fontColor: {
|
193
|
+
required: false,
|
194
|
+
},
|
195
|
+
disabled: {
|
196
|
+
required: false,
|
197
|
+
default: false,
|
198
|
+
},
|
199
|
+
infoTextMessage: {
|
200
|
+
required: false,
|
201
|
+
},
|
202
|
+
colorMode: {
|
203
|
+
required: false,
|
204
|
+
default: 'light',
|
205
|
+
},
|
206
|
+
alignItems: {
|
207
|
+
required: false,
|
208
|
+
default: 'horizontal',
|
209
|
+
},
|
210
|
+
options: {
|
211
|
+
required: true,
|
212
|
+
},
|
213
|
+
value: {
|
214
|
+
required: false,
|
215
|
+
default: null,
|
216
|
+
},
|
185
217
|
},
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
},
|
194
|
-
fontColor: {
|
195
|
-
required: false
|
196
|
-
},
|
197
|
-
disabled: {
|
198
|
-
required: false,
|
199
|
-
default: false
|
200
|
-
},
|
201
|
-
infoTextMessage: {
|
202
|
-
required: false
|
203
|
-
},
|
204
|
-
colorMode: {
|
205
|
-
required: false,
|
206
|
-
default: 'light'
|
207
|
-
},
|
208
|
-
alignItems: {
|
209
|
-
required: false,
|
210
|
-
default: 'horizontal'
|
218
|
+
data() {
|
219
|
+
return {
|
220
|
+
selectedValue: null,
|
221
|
+
primaryColor: 'white',
|
222
|
+
secondaryColor: 'black',
|
223
|
+
inactiveColor: 'grey6',
|
224
|
+
}
|
211
225
|
},
|
212
|
-
|
213
|
-
|
226
|
+
watch: {
|
227
|
+
value(val) {
|
228
|
+
this.selectedValue = val
|
229
|
+
},
|
214
230
|
},
|
215
|
-
|
216
|
-
|
217
|
-
default: null
|
218
|
-
}
|
219
|
-
},
|
220
|
-
data() {
|
221
|
-
return {
|
222
|
-
selectedValue: null,
|
223
|
-
primaryColor: 'white',
|
224
|
-
secondaryColor: 'black',
|
225
|
-
inactiveColor: 'grey6'
|
226
|
-
}
|
227
|
-
},
|
228
|
-
created() {
|
229
|
-
this.selectedValue = this.value
|
231
|
+
created() {
|
232
|
+
this.selectedValue = this.value
|
230
233
|
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
}
|
240
|
-
},
|
241
|
-
methods: {
|
242
|
-
selectItem(value) {
|
243
|
-
if (this.disabled) {
|
244
|
-
return
|
234
|
+
if (this.colorMode == 'dark') {
|
235
|
+
this.primaryColor = theme.colors.black
|
236
|
+
this.secondaryColor = theme.colors.white
|
237
|
+
this.inactiveColor = theme.colors.grey6
|
238
|
+
} else {
|
239
|
+
this.primaryColor = theme.colors.white
|
240
|
+
this.secondaryColor = theme.colors.black
|
241
|
+
this.inactiveColor = theme.colors.grey6
|
245
242
|
}
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
243
|
+
},
|
244
|
+
methods: {
|
245
|
+
selectItem(value) {
|
246
|
+
if (this.disabled) {
|
247
|
+
return
|
248
|
+
}
|
249
|
+
this.selectedValue = value
|
250
|
+
this.$emit('on-switch-change', this.selectedValue)
|
251
|
+
},
|
252
|
+
},
|
254
253
|
}
|
255
|
-
}
|
256
254
|
</script>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import TextAreaInput from
|
1
|
+
import TextAreaInput from './index.vue'
|
2
2
|
|
3
3
|
export default {
|
4
|
-
title:
|
4
|
+
title: 'TextAreaInput',
|
5
5
|
component: TextAreaInput,
|
6
6
|
// argTypes: {},
|
7
7
|
}
|
@@ -31,97 +31,97 @@ const Template = (args, { argTypes }) => ({
|
|
31
31
|
|
32
32
|
export const Default = Template.bind({})
|
33
33
|
Default.args = {
|
34
|
-
placeholder:
|
34
|
+
placeholder: 'Enter a comment',
|
35
35
|
isDisabled: false,
|
36
|
-
rowHeight:
|
36
|
+
rowHeight: '2',
|
37
37
|
isError: false,
|
38
|
-
errorText:
|
39
|
-
infoTextMessage:
|
40
|
-
label:
|
41
|
-
value:
|
42
|
-
alignItems:
|
43
|
-
inputWidth:
|
38
|
+
errorText: 'This field is required',
|
39
|
+
infoTextMessage: '',
|
40
|
+
label: '',
|
41
|
+
value: '',
|
42
|
+
alignItems: 'vertical',
|
43
|
+
inputWidth: '350px',
|
44
44
|
}
|
45
45
|
|
46
46
|
export const Disabled = Template.bind({})
|
47
47
|
Disabled.args = {
|
48
|
-
placeholder:
|
48
|
+
placeholder: 'Enter a comment',
|
49
49
|
isDisabled: true,
|
50
|
-
rowHeight:
|
50
|
+
rowHeight: '2',
|
51
51
|
isError: false,
|
52
|
-
errorText:
|
53
|
-
infoTextMessage:
|
54
|
-
label:
|
55
|
-
value:
|
56
|
-
alignItems:
|
57
|
-
inputWidth:
|
52
|
+
errorText: 'This field is required',
|
53
|
+
infoTextMessage: '',
|
54
|
+
label: '',
|
55
|
+
value: '',
|
56
|
+
alignItems: 'vertical',
|
57
|
+
inputWidth: '350px',
|
58
58
|
}
|
59
59
|
|
60
60
|
export const Error = Template.bind({})
|
61
61
|
Error.args = {
|
62
|
-
placeholder:
|
62
|
+
placeholder: 'Enter a comment',
|
63
63
|
isDisabled: false,
|
64
|
-
rowHeight:
|
64
|
+
rowHeight: '2',
|
65
65
|
isError: true,
|
66
|
-
errorText:
|
67
|
-
infoTextMessage:
|
68
|
-
label:
|
69
|
-
value:
|
70
|
-
alignItems:
|
71
|
-
inputWidth:
|
66
|
+
errorText: 'This field is required',
|
67
|
+
infoTextMessage: '',
|
68
|
+
label: '',
|
69
|
+
value: '',
|
70
|
+
alignItems: 'vertical',
|
71
|
+
inputWidth: '350px',
|
72
72
|
}
|
73
73
|
|
74
74
|
export const WithLabel = Template.bind({})
|
75
75
|
WithLabel.args = {
|
76
|
-
placeholder:
|
76
|
+
placeholder: 'Enter a comment',
|
77
77
|
isDisabled: false,
|
78
|
-
rowHeight:
|
78
|
+
rowHeight: '2',
|
79
79
|
isError: false,
|
80
|
-
errorText:
|
81
|
-
infoTextMessage:
|
82
|
-
label:
|
83
|
-
value:
|
84
|
-
alignItems:
|
85
|
-
inputWidth:
|
80
|
+
errorText: 'This field is required',
|
81
|
+
infoTextMessage: 'Here is some information',
|
82
|
+
label: 'Description',
|
83
|
+
value: 'Here is my description!',
|
84
|
+
alignItems: 'vertical',
|
85
|
+
inputWidth: '350px',
|
86
86
|
}
|
87
87
|
|
88
88
|
export const HorizontalLabel = Template.bind({})
|
89
89
|
HorizontalLabel.args = {
|
90
|
-
placeholder:
|
90
|
+
placeholder: 'Enter a comment',
|
91
91
|
isDisabled: false,
|
92
|
-
rowHeight:
|
92
|
+
rowHeight: '2',
|
93
93
|
isError: false,
|
94
|
-
errorText:
|
95
|
-
infoTextMessage:
|
96
|
-
label:
|
97
|
-
value:
|
98
|
-
alignItems:
|
99
|
-
inputWidth:
|
94
|
+
errorText: 'This field is required',
|
95
|
+
infoTextMessage: 'Here is some information',
|
96
|
+
label: 'Description',
|
97
|
+
value: 'Here is my description!',
|
98
|
+
alignItems: 'horizontal',
|
99
|
+
inputWidth: '350px',
|
100
100
|
}
|
101
101
|
|
102
102
|
export const LargerTextArea = Template.bind({})
|
103
103
|
LargerTextArea.args = {
|
104
|
-
placeholder:
|
104
|
+
placeholder: 'Enter a comment',
|
105
105
|
isDisabled: false,
|
106
|
-
rowHeight:
|
106
|
+
rowHeight: '5',
|
107
107
|
isError: false,
|
108
|
-
errorText:
|
109
|
-
infoTextMessage:
|
110
|
-
label:
|
111
|
-
value:
|
112
|
-
alignItems:
|
108
|
+
errorText: 'This field is required',
|
109
|
+
infoTextMessage: 'Here is some information',
|
110
|
+
label: 'Description',
|
111
|
+
value: 'Here is my description!',
|
112
|
+
alignItems: 'vertical',
|
113
113
|
}
|
114
114
|
|
115
115
|
export const LargerFontSize = Template.bind({})
|
116
116
|
LargerFontSize.args = {
|
117
|
-
placeholder:
|
117
|
+
placeholder: 'Enter a comment',
|
118
118
|
isDisabled: false,
|
119
|
-
rowHeight:
|
120
|
-
fontSize:
|
119
|
+
rowHeight: '5',
|
120
|
+
fontSize: '24px',
|
121
121
|
isError: false,
|
122
|
-
errorText:
|
123
|
-
infoTextMessage:
|
124
|
-
label:
|
125
|
-
value:
|
126
|
-
alignItems:
|
122
|
+
errorText: 'This field is required',
|
123
|
+
infoTextMessage: 'Here is some information',
|
124
|
+
label: 'Description',
|
125
|
+
value: 'Here is my description!',
|
126
|
+
alignItems: 'vertical',
|
127
127
|
}
|