@oliasoft-open-source/react-ui-library 4.10.6-beta-1 → 4.10.6-beta-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.
Files changed (21) hide show
  1. package/dist/index.js +5 -2
  2. package/dist/index.js.map +1 -1
  3. package/dist/storybook/assets/{Color-KGDBMAHA-DztiLtEN.js → Color-KGDBMAHA-D-NQaklH.js} +1 -1
  4. package/dist/storybook/assets/{DocsRenderer-PKQXORMH-BMT3Fbga.js → DocsRenderer-PKQXORMH-DxOnx1oV.js} +1 -1
  5. package/dist/storybook/assets/{buttons-and-links-C7IsmVsN.js → buttons-and-links-CJpVkzrz.js} +1 -1
  6. package/dist/storybook/assets/{chunk-HLWAVYOI-TWd0O54_.js → chunk-HLWAVYOI-_rHyaL4V.js} +1 -1
  7. package/dist/storybook/assets/{color-Cck0VOWk.js → color-DRFp7ikN.js} +1 -1
  8. package/dist/storybook/assets/{iframe-dW5Q-9xS.js → iframe-C_hdCZCj.js} +2 -2
  9. package/dist/storybook/assets/{index-DXos5jMe.js → index-DJTNHBDs.js} +4 -4
  10. package/dist/storybook/assets/{index-DQYSiCm-.js → index-lKvKvOdk.js} +1 -1
  11. package/dist/storybook/assets/{input-validation-GX7jVwyf.js → input-validation-DxgmKoPU.js} +1 -1
  12. package/dist/storybook/assets/{inputs-BH9ZaDKT.js → inputs-CGEfLq-p.js} +1 -1
  13. package/dist/storybook/assets/{layout-forms-CIuatYFX.js → layout-forms-CozlBsFf.js} +1 -1
  14. package/dist/storybook/assets/{layout-general-vMN-AVYI.js → layout-general-BVynyHt7.js} +1 -1
  15. package/dist/storybook/assets/{padding-and-spacing-B3YjR6c8.js → padding-and-spacing-m7vZCGZE.js} +1 -1
  16. package/dist/storybook/assets/{preview-mew46N8J.js → preview-9AC4uNvp.js} +1 -1
  17. package/dist/storybook/assets/{preview-CXhc82QK.js → preview-B4AfZSL8.js} +2 -2
  18. package/dist/storybook/assets/{unit-input.stories-DTpfB0rr.js → unit-input.stories-9b23SnFs.js} +13 -13
  19. package/dist/storybook/iframe.html +1 -1
  20. package/dist/storybook/project.json +1 -1
  21. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import * as PropTypes from "prop-types";
16
16
  import PropTypes__default from "prop-types";
17
17
  import ReactDOM, { createPortal, unstable_batchedUpdates, render } from "react-dom";
18
18
  import { noop as noop$3, set, get as get$2, isString as isString$3, isNumber as isNumber$1, isBoolean as isBoolean$2, isFunction as isFunction$3, isEmpty, isArray as isArray$1, toNumber, debounce as debounce$2, isObject as isObject$5, isEqual as isEqual$4 } from "lodash";
19
- import { toString as toString$1, isScientificStringNum, roundToPrecision, toNum, roundToFixed, validateNumber, cleanNumStr, stripLeadingZeros, unitFromQuantity, ALT_UNITS, isValueWithUnit, withUnit, convertSamePrecision, getValue as getValue$1, getUnit, KNOWN_UNITS, split as split$1, label as label$b, isValidNum, altUnitsList, convertAndGetValue, getUnitsForQuantity, roundByMagnitudeToFixed } from "@oliasoft-open-source/units";
19
+ import { toString as toString$1, isScientificStringNum, roundToPrecision, toNum, roundToFixed, validateNumber, cleanNumStr, stripLeadingZeros, unitFromQuantity, ALT_UNITS, isValueWithUnit, withUnit, convertSamePrecision, getValue as getValue$1, getUnit, KNOWN_UNITS, split as split$1, label as label$b, isValidNum, getAltUnitsListByQuantity, altUnitsList, convertAndGetValue, getUnitsForQuantity, roundByMagnitudeToFixed } from "@oliasoft-open-source/units";
20
20
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
21
21
  function getDefaultExportFromCjs(x2) {
22
22
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
@@ -70358,7 +70358,10 @@ const UnitInput = ({
70358
70358
  unitkey,
70359
70359
  toUnit: initToUnit
70360
70360
  });
70361
- if (unitkey && shouldConvert) {
70361
+ if (!shouldConvert) {
70362
+ let alternativeUnits2 = getAltUnitsListByQuantity(unitkey);
70363
+ return alternativeUnits2 == null ? void 0 : alternativeUnits2.map((unitRow) => ["", unitRow == null ? void 0 : unitRow.unit]);
70364
+ } else if (unitkey) {
70362
70365
  try {
70363
70366
  let alternativeUnits2 = altUnitsList(valueToList, unitkey);
70364
70367
  if (getValue$1(valueToList) === "") {