@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.
- package/dist/es/northlight.d.ts +1 -1
- package/dist/es/northlight.js +7 -4
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +7 -4
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +3 -3
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/package.json +2 -2
package/dist/umd/northlight.cjs
CHANGED
|
@@ -14497,7 +14497,7 @@
|
|
|
14497
14497
|
"max",
|
|
14498
14498
|
"min"
|
|
14499
14499
|
]);
|
|
14500
|
-
var _a2;
|
|
14500
|
+
var _a2, _b2, _c;
|
|
14501
14501
|
const { isOpen, onToggle, onClose } = react.useDisclosure();
|
|
14502
14502
|
const [inputValueState, setInputValueState] = React.useState(valueProp == null ? void 0 : valueProp.input);
|
|
14503
14503
|
const [selectOptionState, setselectOptionState] = React.useState(valueProp == null ? void 0 : valueProp.option);
|
|
@@ -14559,9 +14559,10 @@
|
|
|
14559
14559
|
onChange == null ? void 0 : onChange(getNewValue(option, input));
|
|
14560
14560
|
}
|
|
14561
14561
|
}, [inputValue, defaultToZeroIfEmpty]);
|
|
14562
|
+
const buttonWidth = (_b2 = (_a2 = buttonRef.current) == null ? void 0 : _a2.offsetWidth) != null ? _b2 : 0;
|
|
14562
14563
|
return /* @__PURE__ */ React.createElement(react.InputGroup, null, /* @__PURE__ */ React.createElement(
|
|
14563
14564
|
FormattedNumberInput,
|
|
14564
|
-
__spreadValues$1({
|
|
14565
|
+
__spreadProps(__spreadValues$1({
|
|
14565
14566
|
width: "100%",
|
|
14566
14567
|
onChange: (values) => handleInputChange(values.floatValue),
|
|
14567
14568
|
value: inputValue,
|
|
@@ -14573,7 +14574,9 @@
|
|
|
14573
14574
|
readOnly: isReadOnly,
|
|
14574
14575
|
min,
|
|
14575
14576
|
max
|
|
14576
|
-
}, rest)
|
|
14577
|
+
}, rest), {
|
|
14578
|
+
pr: `${buttonWidth >= 0 ? buttonWidth + 10 : 0}px`
|
|
14579
|
+
})
|
|
14577
14580
|
), /* @__PURE__ */ React.createElement(
|
|
14578
14581
|
react.InputRightElement,
|
|
14579
14582
|
{
|
|
@@ -14591,7 +14594,7 @@
|
|
|
14591
14594
|
flexShrink: "0",
|
|
14592
14595
|
height: "100%"
|
|
14593
14596
|
},
|
|
14594
|
-
(
|
|
14597
|
+
(_c = selectOption == null ? void 0 : selectOption.label) != null ? _c : ""
|
|
14595
14598
|
)
|
|
14596
14599
|
), /* @__PURE__ */ React.createElement(react.Box, { position: "absolute", width: "100%" }, /* @__PURE__ */ React.createElement(
|
|
14597
14600
|
Select,
|