mediacube-ui 0.1.29 → 0.1.31

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": "mediacube-ui",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -545,15 +545,16 @@ export default {
545
545
  case 'amount_format':
546
546
  value = this.setDecimalsLimit(value)
547
547
  const cursor_position = this.getCaretPos(e.target)?.start
548
-
549
548
  const prepared_value = this.formattedToNumber(value)
550
- value = prepared_value ? parseFloat(prepared_value) : null
551
- e.target.value = this.isRtl ? value : this.getAmountFormat(prepared_value)
552
549
 
553
550
  if (!this.isRtl) {
551
+ value = prepared_value ? parseFloat(prepared_value) : null
552
+ e.target.value = this.getAmountFormat(prepared_value)
554
553
  const space_length =
555
554
  e.target.value?.slice(0, cursor_position).replace(/[^ ]/gm, '')?.length || 0
556
555
  this.setCaretPos(e.target, cursor_position + space_length, cursor_position + space_length)
556
+ } else {
557
+ e.target.value = prepared_value
557
558
  }
558
559
  break
559
560
  }
@@ -174,6 +174,7 @@ export default {
174
174
  }
175
175
  }
176
176
  &__percent {
177
+ flex-shrink: 0;
177
178
  &--monospace {
178
179
  font-feature-settings: 'tnum';
179
180
  font-variant-numeric: tabular-nums;