@eturnity/eturnity_reusable_components 1.2.22 → 1.2.23
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
|
@@ -14,29 +14,32 @@
|
|
|
14
14
|
:alignText="infoTextAlign"
|
|
15
15
|
/>
|
|
16
16
|
</label-wrapper>
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
17
|
+
<icon-container>
|
|
18
|
+
<input-container
|
|
19
|
+
:placeholder="placeholder"
|
|
20
|
+
:isError="isError"
|
|
21
|
+
:inputWidth="inputWidth"
|
|
22
|
+
:minWidth="minWidth"
|
|
23
|
+
:value="value"
|
|
24
|
+
@input="onChangeHandler"
|
|
25
|
+
:noBorder="noBorder"
|
|
26
|
+
:disabled="disabled"
|
|
27
|
+
:isDisabled="disabled"
|
|
28
|
+
:fontSize="fontSize"
|
|
29
|
+
:inputType="inputType"
|
|
30
|
+
:type="inputTypeData"
|
|
31
|
+
/>
|
|
32
|
+
<icon-wrapper
|
|
33
|
+
v-if="inputType === 'password' && !isError"
|
|
34
|
+
@click="toggleShowPassword()"
|
|
35
|
+
size="20px"
|
|
36
|
+
>
|
|
37
|
+
<icon name="current_variant" size="20px" />
|
|
38
|
+
</icon-wrapper>
|
|
39
|
+
<icon-wrapper v-if="isError" size="16px">
|
|
40
|
+
<icon name="warning" size="16px" cursor="default" />
|
|
41
|
+
</icon-wrapper>
|
|
42
|
+
</icon-container>
|
|
40
43
|
</input-wrapper>
|
|
41
44
|
<error-message v-if="isError">{{ errorMessage }}</error-message>
|
|
42
45
|
</container>
|
|
@@ -90,6 +93,7 @@ const InputContainer = styled('input', inputProps)`
|
|
|
90
93
|
? '11px 25px 11px 10px'
|
|
91
94
|
: '11px 5px 11px 10px'};
|
|
92
95
|
border-radius: 4px;
|
|
96
|
+
position: relative;
|
|
93
97
|
font-size: ${(props) => (props.fontSize ? props.fontSize : '16px')};
|
|
94
98
|
color: ${(props) =>
|
|
95
99
|
props.isError ? props.theme.colors.red : props.theme.colors.black};
|
|
@@ -128,10 +132,18 @@ const ErrorMessage = styled.div`
|
|
|
128
132
|
top: calc(100% + 1px);
|
|
129
133
|
`
|
|
130
134
|
|
|
131
|
-
const
|
|
135
|
+
const IconAttrs = { size: String }
|
|
136
|
+
const IconWrapper = styled('div', IconAttrs)`
|
|
132
137
|
position: absolute;
|
|
133
|
-
top:
|
|
138
|
+
top: 0;
|
|
139
|
+
bottom: 0;
|
|
140
|
+
margin: auto;
|
|
134
141
|
right: 5px;
|
|
142
|
+
height: ${(props) => (props.size ? props.size : 'auto')};
|
|
143
|
+
`
|
|
144
|
+
|
|
145
|
+
const IconContainer = styled.div`
|
|
146
|
+
position: relative;
|
|
135
147
|
`
|
|
136
148
|
|
|
137
149
|
export default {
|
|
@@ -161,7 +173,8 @@ export default {
|
|
|
161
173
|
InputLabel,
|
|
162
174
|
LabelWrapper,
|
|
163
175
|
Icon,
|
|
164
|
-
IconWrapper
|
|
176
|
+
IconWrapper,
|
|
177
|
+
IconContainer
|
|
165
178
|
},
|
|
166
179
|
data() {
|
|
167
180
|
return {
|