@northlight/ui 2.35.1 → 2.35.2

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.
@@ -3265,7 +3265,7 @@ interface PresetOptions {
3265
3265
  thousandSeparator: string;
3266
3266
  decimalSeparator: string;
3267
3267
  }
3268
- interface FormattedNumberInputProps extends Omit<NumericFormatProps, 'onChange' | 'max' | 'min'> {
3268
+ interface FormattedNumberInputProps extends Omit<NumericFormatProps, 'onChange' | 'max' | 'min'>, Omit<InputProps, 'color' | 'defaultValue' | 'value' | 'height' | 'size' | 'type' | 'width' | 'values' | 'events' | 'onChange'> {
3269
3269
  max?: number;
3270
3270
  min?: number;
3271
3271
  /** Changes thousand and decimal separators */
@@ -14537,7 +14537,7 @@ const ComboPicker = (_a) => {
14537
14537
  "max",
14538
14538
  "min"
14539
14539
  ]);
14540
- var _a2;
14540
+ var _a2, _b2, _c;
14541
14541
  const { isOpen, onToggle, onClose } = useDisclosure();
14542
14542
  const [inputValueState, setInputValueState] = useState(valueProp == null ? void 0 : valueProp.input);
14543
14543
  const [selectOptionState, setselectOptionState] = useState(valueProp == null ? void 0 : valueProp.option);
@@ -14599,9 +14599,10 @@ const ComboPicker = (_a) => {
14599
14599
  onChange == null ? void 0 : onChange(getNewValue(option, input));
14600
14600
  }
14601
14601
  }, [inputValue, defaultToZeroIfEmpty]);
14602
+ const buttonWidth = (_b2 = (_a2 = buttonRef.current) == null ? void 0 : _a2.offsetWidth) != null ? _b2 : 0;
14602
14603
  return /* @__PURE__ */ React.createElement(InputGroup, null, /* @__PURE__ */ React.createElement(
14603
14604
  FormattedNumberInput,
14604
- __spreadValues$1({
14605
+ __spreadProps(__spreadValues$1({
14605
14606
  width: "100%",
14606
14607
  onChange: (values) => handleInputChange(values.floatValue),
14607
14608
  value: inputValue,
@@ -14613,7 +14614,9 @@ const ComboPicker = (_a) => {
14613
14614
  readOnly: isReadOnly,
14614
14615
  min,
14615
14616
  max
14616
- }, rest)
14617
+ }, rest), {
14618
+ pr: `${buttonWidth >= 0 ? buttonWidth + 10 : 0}px`
14619
+ })
14617
14620
  ), /* @__PURE__ */ React.createElement(
14618
14621
  InputRightElement,
14619
14622
  {
@@ -14631,7 +14634,7 @@ const ComboPicker = (_a) => {
14631
14634
  flexShrink: "0",
14632
14635
  height: "100%"
14633
14636
  },
14634
- (_a2 = selectOption == null ? void 0 : selectOption.label) != null ? _a2 : ""
14637
+ (_c = selectOption == null ? void 0 : selectOption.label) != null ? _c : ""
14635
14638
  )
14636
14639
  ), /* @__PURE__ */ React.createElement(Box, { position: "absolute", width: "100%" }, /* @__PURE__ */ React.createElement(
14637
14640
  Select,