@oliasoft-open-source/react-ui-library 4.2.0-beta-2 → 4.2.0-beta-3

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 (25) hide show
  1. package/dist/index.js +5 -2
  2. package/dist/index.js.map +1 -1
  3. package/dist/storybook/assets/{Color-6VNJS4EI-4c266928.js → Color-6VNJS4EI-4a5d7280.js} +1 -1
  4. package/dist/storybook/assets/{DocsRenderer-NNNQARDV-4522c04a.js → DocsRenderer-NNNQARDV-72503a2d.js} +1 -1
  5. package/dist/storybook/assets/{WithTooltip-4HIR6TLV-3f797c81.js → WithTooltip-4HIR6TLV-23437932.js} +1 -1
  6. package/dist/storybook/assets/{buttons-and-links-3ca65a4b.js → buttons-and-links-c7506f52.js} +1 -1
  7. package/dist/storybook/assets/{chunk-HLWAVYOI-6bd5aff8.js → chunk-HLWAVYOI-1b1e8383.js} +1 -1
  8. package/dist/storybook/assets/{color-6f498d70.js → color-e373f623.js} +1 -1
  9. package/dist/storybook/assets/{formatter-SWP5E3XI-cf89c041.js → formatter-SWP5E3XI-d3a9e021.js} +1 -1
  10. package/dist/storybook/assets/{iframe-4241ee87.js → iframe-210f2f48.js} +1 -1
  11. package/dist/storybook/assets/{index-24b2d8c6.js → index-5d28dded.js} +4 -4
  12. package/dist/storybook/assets/{input-validation-ca50f656.js → input-validation-141270c5.js} +1 -1
  13. package/dist/storybook/assets/{inputs-48a26c2d.js → inputs-851ed326.js} +1 -1
  14. package/dist/storybook/assets/{layout-forms-ee9889f6.js → layout-forms-8fb9eb93.js} +1 -1
  15. package/dist/storybook/assets/{layout-general-2d6bd6c2.js → layout-general-2e5a4012.js} +1 -1
  16. package/dist/storybook/assets/{padding-and-spacing-c11842e2.js → padding-and-spacing-d5b7037c.js} +1 -1
  17. package/dist/storybook/assets/{preview-f4241840.js → preview-3a1dcfd9.js} +1 -1
  18. package/dist/storybook/assets/preview-78133dba.js +1 -0
  19. package/dist/storybook/assets/{syntaxhighlighter-NMPM6SWI-2e6bd966.js → syntaxhighlighter-NMPM6SWI-35b98f86.js} +1 -1
  20. package/dist/storybook/assets/unit-input.stories-50ac8b0f.js +257 -0
  21. package/dist/storybook/iframe.html +1 -1
  22. package/dist/storybook/project.json +1 -1
  23. package/package.json +1 -1
  24. package/dist/storybook/assets/preview-ea6061e8.js +0 -1
  25. package/dist/storybook/assets/unit-input.stories-ca28e74b.js +0 -257
package/dist/index.js CHANGED
@@ -70123,7 +70123,7 @@ const getPreferredUnit = (unitkey, unitTemplate) => {
70123
70123
  const preferredUnit = unitTemplate == null ? void 0 : unitTemplate[unitkey];
70124
70124
  if (!preferredUnit) {
70125
70125
  console.log(
70126
- `Warning: unitTemplate is ${unitTemplate}, unitkey is ${unitkey}`
70126
+ `Warning: 'unitTemplate' does not define a preferred unit for '${unitkey}'. Defaulting to standard unit.`
70127
70127
  );
70128
70128
  return unitFromQuantity(unitkey) ?? "";
70129
70129
  }
@@ -70242,7 +70242,10 @@ const UnitInput = ({
70242
70242
  const runAfterUpdate = useRunAfterUpdate();
70243
70243
  const [propValue = "", propUnit = ""] = value !== void 0 ? split$1(value) : [];
70244
70244
  const propAutoUnit = autoValue ? getUnit(autoValue) : "";
70245
- const defaultUnit = getPreferredUnit(unitkey, unitTemplate);
70245
+ const defaultUnit = useMemo$1(
70246
+ () => getPreferredUnit(unitkey, unitTemplate),
70247
+ [unitkey, unitTemplate]
70248
+ );
70246
70249
  const initDisplayUnit = initUnit || defaultUnit || propUnit;
70247
70250
  const previousInitUnit = usePrevious(initDisplayUnit);
70248
70251
  const convertedValue = safeConvertValue(