@eturnity/eturnity_reusable_components 7.12.2-EPDM-9012.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.12.2-EPDM-9012.1",
3
+ "version": "7.12.2-EPDM-9012.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -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
  },
@@ -14,6 +14,7 @@
14
14
  v-if="infoTextMessage"
15
15
  :text="infoTextMessage"
16
16
  :size="fontSize ? fontSize : '16px'"
17
+ :alignArrow="infoTextAlign"
17
18
  />
18
19
  </label-wrapper>
19
20
  </template>
@@ -58,6 +59,7 @@ export default {
58
59
  // import labelText from "@eturnity/eturnity_reusable_components/src/components/label"
59
60
  // To use:
60
61
  // <label-text
62
+ // infoTextAlign="right" // left by default
61
63
  // infoTextMessage="My info message"
62
64
  // label="Question 5"
63
65
  // />
@@ -77,6 +79,9 @@ export default {
77
79
  infoTextMessage: {
78
80
  required: false
79
81
  },
82
+ infoTextAlign: {
83
+ required: false
84
+ },
80
85
  labelOptional: {
81
86
  required: false,
82
87
  default: false
@@ -13,6 +13,7 @@
13
13
  <info-text
14
14
  v-if="tab['labelInfoText']"
15
15
  :text="tab['labelInfoText']"
16
+ :alignArrow="tab['labelInfoAlign']"
16
17
  />
17
18
  </Option>
18
19
  </tab>
@@ -54,7 +55,7 @@ const Option = styled('div',TabAttr)`
54
55
  justify-content: center;
55
56
  flex-direction: row;
56
57
  gap: 10px;
57
- color: ${props=>props.textColor ?
58
+ color: ${props=>props.textColor ?
58
59
  props.theme.colors[props.textColor] ? props.theme.colors[props.textColor] : props.textColor :
59
60
  props.isDisabled ? props.theme.colors.grey2 : props.theme.colors.black};
60
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
  }