@rolster/react-components 18.21.38 → 18.21.40

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.
@@ -3,7 +3,7 @@
3
3
  --rlc-tabular-text-font-size,
4
4
  var(--rls-body-font-size)
5
5
  );
6
- --pvt-char-height: calc(var(--pvt-char-font-size) + 1rem);
6
+ --pvt-char-height: var(--pvt-char-font-size);
7
7
  --pvt-char-width: var(--rlc-tabular-text-char-width, 5.5rem);
8
8
  --pvt-pointer-width: var(--rlc-tabular-text-pointer-width, 2rem);
9
9
  display: flex;
@@ -46,8 +46,8 @@
46
46
  justify-content: var(--rlc-amount-text-align, flex-start);
47
47
  }
48
48
  .rls-amount__decimal {
49
- --rlc-tabular-text-char-width: calc(var(--pvt-font-size) * 0.55);
50
- --rlc-tabular-text-font-size: calc(var(--pvt-font-size) * 0.75);
49
+ --rlc-tabular-text-char-width: calc(var(--pvt-font-size) * 0.5);
50
+ --rlc-tabular-text-font-size: calc(var(--pvt-font-size) * 0.6);
51
51
  align-self: flex-end;
52
52
  } /*# sourceMappingURL=Amount.css.map */
53
53
 
@@ -553,18 +553,19 @@
553
553
  background: var(--rls-theme-color-700);
554
554
  color: var(--rls-app-color-050);
555
555
  }
556
+ .rls-input__component:read-only {
557
+ pointer-events: none;
558
+ }
556
559
  .rls-input__component:disabled {
557
560
  opacity: 0.5;
558
561
  }
559
562
  .rls-input__value {
560
563
  position: absolute;
561
- display: flex;
562
564
  top: 0rem;
563
565
  left: 0rem;
564
566
  width: 100%;
565
567
  height: var(--pvt-height);
566
568
  line-height: var(--pvt-height);
567
- align-items: center;
568
569
  background: rgba(0, 0, 0, 0);
569
570
  pointer-events: none;
570
571
  overflow: hidden;
package/dist/cjs/index.js CHANGED
@@ -1569,7 +1569,7 @@ function RlsInput({ children, decimals, disabled, formControl, identifier, onEnt
1569
1569
  const _onChange = require$$0.useCallback((event) => {
1570
1570
  const valueInput = event.target.value;
1571
1571
  const value = type === 'number'
1572
- ? commons.floorDecimals(+valueInput, decimals || 0)
1572
+ ? parseFloat((+valueInput).toFixed(decimals))
1573
1573
  : valueInput;
1574
1574
  isChangeInternal.current = true;
1575
1575
  onValue && onValue(value);