@eturnity/eturnity_reusable_components 1.1.91 → 1.1.94
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
|
@@ -158,7 +158,7 @@ const ErrorMessage = styled.div`
|
|
|
158
158
|
font-size: 14px;
|
|
159
159
|
color: ${(props) => props.theme.colors.red};
|
|
160
160
|
position: absolute;
|
|
161
|
-
|
|
161
|
+
top: calc(100% + 1px);
|
|
162
162
|
`
|
|
163
163
|
|
|
164
164
|
const LabelWrapper = styled.div`
|
|
@@ -267,6 +267,10 @@ export default {
|
|
|
267
267
|
required: false,
|
|
268
268
|
default: null,
|
|
269
269
|
},
|
|
270
|
+
numberToStringEnabled: {
|
|
271
|
+
required: false,
|
|
272
|
+
default: true
|
|
273
|
+
}
|
|
270
274
|
},
|
|
271
275
|
methods: {
|
|
272
276
|
onChangeHandler(event) {
|
|
@@ -346,11 +350,13 @@ export default {
|
|
|
346
350
|
return input + " " + unit
|
|
347
351
|
} else if (!adjustedMinValue && adjustedMinValue !== 0) {
|
|
348
352
|
return ""
|
|
349
|
-
} else {
|
|
353
|
+
} else if (this.numberToStringEnabled) {
|
|
350
354
|
return numberToString({
|
|
351
355
|
value: adjustedMinValue,
|
|
352
356
|
numberPrecision: this.numberPrecision,
|
|
353
357
|
})
|
|
358
|
+
} else {
|
|
359
|
+
return adjustedMinValue
|
|
354
360
|
}
|
|
355
361
|
},
|
|
356
362
|
},
|
|
@@ -98,7 +98,7 @@ const InputWrapper = styled("div", inputAttrs)`
|
|
|
98
98
|
position: relative;
|
|
99
99
|
display: grid;
|
|
100
100
|
align-items: center;
|
|
101
|
-
gap:
|
|
101
|
+
gap: 8px;
|
|
102
102
|
grid-template-columns: ${(props) =>
|
|
103
103
|
!props.hasLabel
|
|
104
104
|
? "1fr"
|
|
@@ -111,7 +111,7 @@ const ErrorMessage = styled.div`
|
|
|
111
111
|
font-size: 14px;
|
|
112
112
|
color: ${(props) => props.theme.colors.red};
|
|
113
113
|
position: absolute;
|
|
114
|
-
|
|
114
|
+
top: calc(100% + 1px);
|
|
115
115
|
`
|
|
116
116
|
|
|
117
117
|
const InputLabel = styled.div`
|