@rolster/react-components 18.21.42 → 18.21.44

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.
@@ -26,6 +26,8 @@
26
26
 
27
27
  .rls-amount {
28
28
  --pvt-font-size: var(--rlc-amount-font-size, inherit);
29
+ --pvt-decimal-width: var(--rlc-amount-decimal-width, 0.5);
30
+ --pvt-decimal-size: var(--rlc-amount-decimal-size, 0.6);
29
31
  --rlc-tabular-text-font-size: var(--pvt-font-size);
30
32
  display: flex;
31
33
  width: var(--rlc-amount-width, auto);
@@ -46,8 +48,12 @@
46
48
  justify-content: var(--rlc-amount-text-align, flex-start);
47
49
  }
48
50
  .rls-amount__decimal {
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
+ --rlc-tabular-text-char-width: calc(
52
+ var(--pvt-font-size) * var(--pvt-decimal-width)
53
+ );
54
+ --rlc-tabular-text-font-size: calc(
55
+ var(--pvt-font-size) * var(--pvt-decimal-size)
56
+ );
51
57
  align-self: flex-end;
52
58
  } /*# sourceMappingURL=Amount.css.map */
53
59
 
package/dist/cjs/index.js CHANGED
@@ -2638,17 +2638,24 @@ function useFieldAutocomplete(props) {
2638
2638
  }, [controller.setState]);
2639
2639
  const onChange = require$$0.useCallback((element) => {
2640
2640
  if (props.onSelect) {
2641
- controller.setState({ modalIsVisible: false });
2642
2641
  element.value && props.onSelect(element.value);
2643
2642
  }
2644
2643
  else {
2645
- controller.setState({ modalIsVisible: false });
2646
2644
  controller.setFormValue(element);
2647
2645
  }
2646
+ if (props.selectionContinuos) {
2647
+ setPattern('');
2648
+ controller.inputRef?.current?.focus();
2649
+ }
2650
+ else {
2651
+ controller.setState({ modalIsVisible: false });
2652
+ }
2648
2653
  props.onValue && props.onValue(element.value);
2649
2654
  }, [
2650
2655
  controller.setState,
2651
2656
  controller.setFormValue,
2657
+ setPattern,
2658
+ props.selectionContinuos,
2652
2659
  props.onSelect,
2653
2660
  props.onValue
2654
2661
  ]);