@eturnity/eturnity_reusable_components 1.2.0-beta.2 → 1.2.0-beta.3
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
|
@@ -96,15 +96,8 @@ const InputContainer = styled('input', inputProps)`
|
|
|
96
96
|
props.isError
|
|
97
97
|
? '1px solid ' + props.theme.colors.red
|
|
98
98
|
: props.noBorder
|
|
99
|
-
<<<<<<< HEAD
|
|
100
|
-
? 'none'
|
|
101
|
-
: props.hasLength
|
|
102
|
-
? '1px solid ' + props.theme.colors.black
|
|
103
|
-
: '1px solid ' + props.theme.colors.mediumGray};
|
|
104
|
-
=======
|
|
105
99
|
? "none"
|
|
106
100
|
: "1px solid " + props.theme.colors.mediumGray};
|
|
107
|
-
>>>>>>> master
|
|
108
101
|
padding: ${(props) =>
|
|
109
102
|
props.hasUnit ? '11px 40px 11px 10px' : '11px 5px 11px 10px'};
|
|
110
103
|
border-radius: 4px;
|
|
@@ -284,11 +277,7 @@ export default {
|
|
|
284
277
|
methods: {
|
|
285
278
|
onChangeHandler(event) {
|
|
286
279
|
if (isNaN(event)) {
|
|
287
|
-
<<<<<<< HEAD
|
|
288
|
-
event = ''
|
|
289
|
-
=======
|
|
290
280
|
event = this.minNumber || this.minNumber === 0 ? this.minNumber : event
|
|
291
|
-
>>>>>>> master
|
|
292
281
|
}
|
|
293
282
|
this.$emit('input-change', event)
|
|
294
283
|
},
|
|
@@ -316,15 +305,11 @@ export default {
|
|
|
316
305
|
return num
|
|
317
306
|
}
|
|
318
307
|
})
|
|
319
|
-
<<<<<<< HEAD
|
|
320
|
-
let evaluated = eval(formatted.join(''))
|
|
321
|
-
=======
|
|
322
308
|
let evaluated = eval(formatted.join(""))
|
|
323
309
|
evaluated = stringToNumber({
|
|
324
310
|
value: evaluated,
|
|
325
311
|
numberPrecision: this.numberPrecision,
|
|
326
312
|
})
|
|
327
|
-
>>>>>>> master
|
|
328
313
|
return evaluated
|
|
329
314
|
},
|
|
330
315
|
onInputBlur(e) {
|
|
@@ -364,14 +349,6 @@ export default {
|
|
|
364
349
|
? this.minNumber
|
|
365
350
|
: ''
|
|
366
351
|
if ((adjustedMinValue || adjustedMinValue === 0) && !this.isFocused) {
|
|
367
|
-
<<<<<<< HEAD
|
|
368
|
-
let input = numberToString({
|
|
369
|
-
value: adjustedMinValue,
|
|
370
|
-
numberPrecision: this.numberPrecision,
|
|
371
|
-
})
|
|
372
|
-
let unit = this.showLinearUnitName ? '' : this.unitName
|
|
373
|
-
return input + ' ' + unit
|
|
374
|
-
=======
|
|
375
352
|
let input = this.numberToStringEnabled
|
|
376
353
|
? numberToString({
|
|
377
354
|
value: adjustedMinValue,
|
|
@@ -380,7 +357,6 @@ export default {
|
|
|
380
357
|
: adjustedMinValue
|
|
381
358
|
let unit = this.showLinearUnitName ? "" : this.unitName
|
|
382
359
|
return input + " " + unit
|
|
383
|
-
>>>>>>> master
|
|
384
360
|
} else if (!adjustedMinValue && adjustedMinValue !== 0) {
|
|
385
361
|
return ''
|
|
386
362
|
} else {
|