@oliasoft-open-source/react-ui-library 10.6.3 → 10.6.4

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5162,12 +5162,9 @@ var UnitInput = ({ name, placeholder = "", disabled = false, disabledUnit = fals
5162
5162
  defaultFromUnit: propUnit,
5163
5163
  doNotConvertValue: noConversion
5164
5164
  });
5165
- const [displayLayer, setDisplayLayer] = useState(convertedValue !== "" ? {
5166
- value: convertedValue,
5165
+ const [displayLayer, setDisplayLayer] = useState({
5166
+ value: convertedValue !== "" ? convertedValue : propValue,
5167
5167
  unit: initDisplayUnit
5168
- } : {
5169
- value: propValue,
5170
- unit: propUnit
5171
5168
  });
5172
5169
  const derivedAllowEmpty = allowEmpty || (displayLayer === null || displayLayer === void 0 ? void 0 : displayLayer.value) === void 0;
5173
5170
  const [predefinedOptionsMenuState, setPredefinedOptionsMenuState] = useState(initialPredefinedOption ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "10.6.3",
3
+ "version": "10.6.4",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {