@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "1.1.91",
3
+ "version": "1.1.94",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -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
- bottom: -18px;
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
  },
@@ -108,7 +108,7 @@ const ErrorMessage = styled.div`
108
108
  font-size: 14px;
109
109
  color: ${(props) => props.theme.colors.red};
110
110
  position: absolute;
111
- bottom: -18px;
111
+ top: calc(100% + 1px);
112
112
  `
113
113
 
114
114
  export default {
@@ -98,7 +98,7 @@ const InputWrapper = styled("div", inputAttrs)`
98
98
  position: relative;
99
99
  display: grid;
100
100
  align-items: center;
101
- gap: 14px;
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
- bottom: -18px;
114
+ top: calc(100% + 1px);
115
115
  `
116
116
 
117
117
  const InputLabel = styled.div`