@oliasoft-open-source/react-ui-library 4.7.1-beta-2 → 4.7.2-beta-1
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/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-KGDBMAHA-DU1RlXXC.js → Color-KGDBMAHA-C_6TIn_5.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-PKQXORMH-G7s8qauA.js → DocsRenderer-PKQXORMH-B9j7kreX.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-C1u71GX-.js → buttons-and-links-CkFWyoy7.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-CEBPUttQ.js → chunk-HLWAVYOI-DPpz6FNz.js} +1 -1
- package/dist/storybook/assets/{color-DHAEljmY.js → color-DDbba92n.js} +1 -1
- package/dist/storybook/assets/{iframe-Bmij6PfE.js → iframe-B33f9FIb.js} +2 -2
- package/dist/storybook/assets/{index-DOE9e5DX.js → index-C9G0jVw4.js} +1 -1
- package/dist/storybook/assets/{index-CjxhIVl4.js → index-DWmgSTbz.js} +4 -4
- package/dist/storybook/assets/{input-validation-BxKzDp9H.js → input-validation-GpZn2ec4.js} +1 -1
- package/dist/storybook/assets/{inputs-BsM0DB-x.js → inputs-BVq1iYbk.js} +1 -1
- package/dist/storybook/assets/{layout-forms-eascP8wD.js → layout-forms-CSgsNCth.js} +1 -1
- package/dist/storybook/assets/{layout-general-BOz6gY_c.js → layout-general-DDRDse77.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-CvJLF4eY.js → padding-and-spacing-B4GixvX-.js} +1 -1
- package/dist/storybook/assets/{preview-C_Y907i6.js → preview-9nCzKs_m.js} +1 -1
- package/dist/storybook/assets/{preview-9W7QLFGX.js → preview-CufpNzoE.js} +2 -2
- package/dist/storybook/assets/{unit-input.stories-BAUwNaks.js → unit-input.stories-BQSa8Ac5.js} +2 -2
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70026,7 +70026,7 @@ const getPreferredUnit = (unitkey, unitTemplate) => {
|
|
|
70026
70026
|
const preferredUnit = unitTemplate == null ? void 0 : unitTemplate[unitkey];
|
|
70027
70027
|
if (!preferredUnit) {
|
|
70028
70028
|
console.log(
|
|
70029
|
-
`Warning: 'unitTemplate'
|
|
70029
|
+
`Warning: 'unitTemplate' missing for '${unitkey}'. Using initial unit, value unit, or default.`
|
|
70030
70030
|
);
|
|
70031
70031
|
return unitFromQuantity(unitkey) ?? "";
|
|
70032
70032
|
}
|
|
@@ -70173,7 +70173,7 @@ const UnitInput = ({
|
|
|
70173
70173
|
[unitkey, unitTemplate]
|
|
70174
70174
|
);
|
|
70175
70175
|
const knownUnit = isKnownUnit(value, defaultUnit);
|
|
70176
|
-
const initDisplayUnit = initUnit ||
|
|
70176
|
+
const initDisplayUnit = initUnit || propUnit || defaultUnit;
|
|
70177
70177
|
const previousInitUnit = usePrevious(initDisplayUnit);
|
|
70178
70178
|
const convertedValue = safeConvertValue(
|
|
70179
70179
|
value,
|
|
@@ -70310,8 +70310,8 @@ const UnitInput = ({
|
|
|
70310
70310
|
const stringName = getStringName(name2);
|
|
70311
70311
|
let sectionsPredefinedMenu;
|
|
70312
70312
|
const createPredefinedOption = (el2) => {
|
|
70313
|
-
const elementValue = el2.value ? el2.value : "";
|
|
70314
|
-
const [value2, unit2 = ""] = isValueWithUnit(elementValue) ? split$1(elementValue) : [elementValue];
|
|
70313
|
+
const elementValue = (el2 == null ? void 0 : el2.value) ? el2.value : "";
|
|
70314
|
+
const [value2 = "", unit2 = ""] = isValueWithUnit(elementValue) ? split$1(elementValue) : [elementValue];
|
|
70315
70315
|
return {
|
|
70316
70316
|
type: MenuType.OPTION,
|
|
70317
70317
|
inline: true,
|