@eturnity/eturnity_reusable_components 1.1.31 → 1.1.32
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
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
:placeholder="placeholder"
|
|
19
19
|
:isError="isError"
|
|
20
20
|
:inputWidth="inputWidth"
|
|
21
|
+
:minWidth="minWidth"
|
|
21
22
|
:value="formatWithCurrency(value)"
|
|
22
23
|
:hasLength="!!value && !!value.length"
|
|
23
24
|
@blur="onInputBlur($event)"
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
// placeholder="Enter distance"
|
|
49
50
|
// :isError="false" //default is false
|
|
50
51
|
// inputWidth="150px" //by default, this is 100%
|
|
52
|
+
// minWidth="100px"
|
|
51
53
|
// :numberPrecision="3"
|
|
52
54
|
// unitName="pc"
|
|
53
55
|
// :value="inputValue" //required -- String
|
|
@@ -79,6 +81,7 @@ const inputProps = {
|
|
|
79
81
|
isError: Boolean,
|
|
80
82
|
hasUnit: Boolean,
|
|
81
83
|
inputWidth: String,
|
|
84
|
+
minWidth: String,
|
|
82
85
|
hasLength: Boolean,
|
|
83
86
|
isDisabled: Boolean,
|
|
84
87
|
noBorder: Boolean,
|
|
@@ -103,6 +106,7 @@ const InputContainer = styled("input", inputProps)`
|
|
|
103
106
|
color: ${(props) =>
|
|
104
107
|
props.isError ? props.theme.colors.red : props.theme.colors.black};
|
|
105
108
|
width: ${(props) => (props.inputWidth ? props.inputWidth : "100%")};
|
|
109
|
+
min-width: ${(props) => (props.minWidth ? props.minWidth : "unset")};
|
|
106
110
|
background-color: ${(props) =>
|
|
107
111
|
props.isDisabled ? props.theme.colors.grey5 : "#fff"};
|
|
108
112
|
box-sizing: border-box;
|
|
@@ -189,6 +193,10 @@ export default {
|
|
|
189
193
|
required: false,
|
|
190
194
|
default: null,
|
|
191
195
|
},
|
|
196
|
+
minWidth: {
|
|
197
|
+
required: false,
|
|
198
|
+
default: null,
|
|
199
|
+
},
|
|
192
200
|
value: {
|
|
193
201
|
required: true,
|
|
194
202
|
default: null,
|