@eturnity/eturnity_reusable_components 7.12.2-EPDM-9012.0 → 7.12.2-EPDM-9012.2
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/package.json +1 -1
- package/src/components/errorMessage/index.vue +1 -3
- package/src/components/inputs/inputNumber/InputNumber.stories.js +3 -1
- package/src/components/inputs/inputNumber/index.vue +6 -0
- package/src/components/inputs/inputText/InputText.stories.js +1 -0
- package/src/components/inputs/inputText/index.vue +5 -0
- package/src/components/label/index.vue +0 -1
- package/src/components/navigationTabs/index.vue +1 -3
- package/src/components/pageTitle/index.vue +8 -4
package/package.json
CHANGED
@@ -9,9 +9,7 @@
|
|
9
9
|
<script>
|
10
10
|
// import ErrorMessage from "@eturnity/eturnity_reusable_components/src/components/errorMessage"
|
11
11
|
//To use:
|
12
|
-
// <error-message
|
13
|
-
// alignText="right" // default is left
|
14
|
-
// />
|
12
|
+
// <error-message />
|
15
13
|
|
16
14
|
import styled from 'vue-styled-components'
|
17
15
|
|
@@ -32,6 +32,7 @@ const Template = (args, { argTypes }) => ({
|
|
32
32
|
// fontSize="13px"
|
33
33
|
// labelText="Number of Modules"
|
34
34
|
// labelInfoText="Here is some information for you..."
|
35
|
+
// labelInfoAlign="left"
|
35
36
|
// />
|
36
37
|
})
|
37
38
|
|
@@ -128,7 +129,8 @@ WithLabelInfo.args = {
|
|
128
129
|
textAlign: "left",
|
129
130
|
showLinearUnitName: false,
|
130
131
|
labelText: "Number Input",
|
131
|
-
labelInfoText: "Here is some information for you..."
|
132
|
+
labelInfoText: "Here is some information for you...",
|
133
|
+
labelInfoAlign: "right",
|
132
134
|
}
|
133
135
|
|
134
136
|
export const LargerFont = Template.bind({})
|
@@ -20,6 +20,7 @@
|
|
20
20
|
<info-text
|
21
21
|
v-if="labelInfoText"
|
22
22
|
:text="labelInfoText"
|
23
|
+
:alignArrow="labelInfoAlign"
|
23
24
|
/>
|
24
25
|
</label-wrapper>
|
25
26
|
<input-wrapper>
|
@@ -94,6 +95,7 @@
|
|
94
95
|
// fontSize="13px"
|
95
96
|
// labelText="Number of Modules"
|
96
97
|
// labelInfoText="Here is some information for you..."
|
98
|
+
// labelInfoAlign="left"
|
97
99
|
// :minNumber="0"
|
98
100
|
// fontColor="blue"
|
99
101
|
// />
|
@@ -402,6 +404,10 @@ export default {
|
|
402
404
|
required: false,
|
403
405
|
default: null
|
404
406
|
},
|
407
|
+
labelInfoAlign: {
|
408
|
+
required: false,
|
409
|
+
default: 'left'
|
410
|
+
},
|
405
411
|
defaultNumber: {
|
406
412
|
required: false,
|
407
413
|
default: null
|
@@ -21,6 +21,7 @@ const Template = (args, { argTypes }) => ({
|
|
21
21
|
// @input-change="onInputChange({ value: $event, type: 'companyName' })"
|
22
22
|
// :isError="checkErrors()"
|
23
23
|
// :errorMessage="This is my error message"
|
24
|
+
// infoTextAlign="right" // left by default
|
24
25
|
// infoTextMessage="My info message"
|
25
26
|
// label="Question 5"
|
26
27
|
// alignItems="horizontal" // horizontal, vertical
|
@@ -18,6 +18,7 @@
|
|
18
18
|
v-if="infoTextMessage"
|
19
19
|
:text="infoTextMessage"
|
20
20
|
:size="fontSize ? fontSize : '16px'"
|
21
|
+
:alignArrow="infoTextAlign"
|
21
22
|
/>
|
22
23
|
</label-wrapper>
|
23
24
|
<input-error-wrapper>
|
@@ -205,6 +206,7 @@ export default {
|
|
205
206
|
// @input-blur="onInputBlur($event)"
|
206
207
|
// :isError="checkErrors()"
|
207
208
|
// :errorMessage="This is my error message"
|
209
|
+
// infoTextAlign="right" // left by default
|
208
210
|
// infoTextMessage="My info message"
|
209
211
|
// label="Question 5"
|
210
212
|
// alignItems="horizontal" // horizontal, vertical
|
@@ -268,6 +270,9 @@ export default {
|
|
268
270
|
infoTextMessage: {
|
269
271
|
required: false
|
270
272
|
},
|
273
|
+
infoTextAlign: {
|
274
|
+
required: false
|
275
|
+
},
|
271
276
|
label: {
|
272
277
|
required: false
|
273
278
|
},
|
@@ -13,8 +13,6 @@
|
|
13
13
|
<info-text
|
14
14
|
v-if="tab['labelInfoText']"
|
15
15
|
:text="tab['labelInfoText']"
|
16
|
-
borderColor="#ccc"
|
17
|
-
size="14px"
|
18
16
|
:alignArrow="tab['labelInfoAlign']"
|
19
17
|
/>
|
20
18
|
</Option>
|
@@ -57,7 +55,7 @@ const Option = styled('div',TabAttr)`
|
|
57
55
|
justify-content: center;
|
58
56
|
flex-direction: row;
|
59
57
|
gap: 10px;
|
60
|
-
color: ${props=>props.textColor ?
|
58
|
+
color: ${props=>props.textColor ?
|
61
59
|
props.theme.colors[props.textColor] ? props.theme.colors[props.textColor] : props.textColor :
|
62
60
|
props.isDisabled ? props.theme.colors.grey2 : props.theme.colors.black};
|
63
61
|
`
|
@@ -6,6 +6,7 @@
|
|
6
6
|
<info-text
|
7
7
|
v-if="!!infoText"
|
8
8
|
:text="infoText"
|
9
|
+
:alignArrow="infoAlign"
|
9
10
|
/>
|
10
11
|
</title-wrap>
|
11
12
|
</template>
|
@@ -49,10 +50,6 @@ export default {
|
|
49
50
|
text: {
|
50
51
|
required: true,
|
51
52
|
},
|
52
|
-
infoText: {
|
53
|
-
required: false,
|
54
|
-
default: null,
|
55
|
-
},
|
56
53
|
color: {
|
57
54
|
required: false,
|
58
55
|
},
|
@@ -63,6 +60,13 @@ export default {
|
|
63
60
|
uppercase: {
|
64
61
|
required: false,
|
65
62
|
default: true
|
63
|
+
},
|
64
|
+
infoText: {
|
65
|
+
required: false,
|
66
|
+
default: null,
|
67
|
+
},
|
68
|
+
infoAlign: {
|
69
|
+
required: false,
|
66
70
|
}
|
67
71
|
},
|
68
72
|
}
|