@oliasoft-open-source/react-ui-library 4.12.0-beta-2 → 4.12.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.
- package/dist/assets/{index-BVCFmQTa.js → index-BMWyiwz3.js} +169 -145
- package/dist/assets/{index-BU9wzZv9.css → index-BaYhOc6M.css} +37 -5
- package/dist/index.html +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-KGDBMAHA-BODMLRvZ.js → Color-KGDBMAHA-BU5Cvr93.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-PKQXORMH-DEi7ICVq.js → DocsRenderer-PKQXORMH-giM41WN8.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-C_Vx7GEC.js → accordion.stories-BlHfHegj.js} +1 -1
- package/dist/storybook/assets/{afe.stories-OEYJqexC.js → afe.stories-C9XjJj62.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-BHNS6Ebw.js → buttons-and-links-BA3MNFjq.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-BAdZ87Oc.js → casing-loads.stories-Cl2tJipP.js} +1 -1
- package/dist/storybook/assets/{cell.stories-Bu5u9qEl.js → cell.stories-rzJE_qJC.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-BbzmrmoZ.js → chunk-HLWAVYOI-Dvbg03uT.js} +1 -1
- package/dist/storybook/assets/{color-oeF0-Pph.js → color-DIyQ13kP.js} +1 -1
- package/dist/storybook/assets/{footer.stories-LUxEpSgD.js → footer.stories-C6M5S0UZ.js} +1 -1
- package/dist/storybook/assets/{form.stories-B7V77yuI.js → form.stories-BNORsn6Z.js} +1 -1
- package/dist/storybook/assets/{formation.stories-D7MX0dSY.js → formation.stories-1WX1Nu1P.js} +1 -1
- package/dist/storybook/assets/{iframe-nuCPRPrd.js → iframe-B0e2q2Zd.js} +2 -2
- package/dist/storybook/assets/{index-CN6H1a0D.js → index-BXJ79Lvz.js} +1 -1
- package/dist/storybook/assets/{index-BFtO1KgR.js → index-BlyDuQBv.js} +4 -4
- package/dist/storybook/assets/{initialize-context-rEvM6bdZ.js → initialize-context-Y03pJPr5.js} +1 -1
- package/dist/storybook/assets/{input-group.stories-BdQ1prY4.js → input-group.stories-BCajsqAk.js} +1 -1
- package/dist/storybook/assets/{input-validation-Ccu8WMpy.js → input-validation-CLZKtfoW.js} +1 -1
- package/dist/storybook/assets/{inputs-C4fsY4Ua.js → inputs-DlW6Jeem.js} +1 -1
- package/dist/storybook/assets/{layout-forms-DOgsanng.js → layout-forms-C6ZH-nYk.js} +1 -1
- package/dist/storybook/assets/{layout-general-DtDx77FI.js → layout-general-CWqOMwXA.js} +1 -1
- package/dist/storybook/assets/menu.test-case.stories-XN9XFV-D.js +3 -0
- package/dist/storybook/assets/{modal.stories-DUXRRhK-.js → modal.stories-C2d-Em5V.js} +1 -1
- package/dist/storybook/assets/{number-input-CNnU6gOF.js → number-input-B3_gmeWr.js} +1 -1
- package/dist/storybook/assets/{number-input.stories-Bo26PJmJ.js → number-input.stories-epjUq9ve.js} +1 -1
- package/dist/storybook/assets/number-input.test-case.stories-DeEtalIU.js +95 -0
- package/dist/storybook/assets/{padding-and-spacing-Mfm_1hn5.js → padding-and-spacing-CfnXk0Zn.js} +1 -1
- package/dist/storybook/assets/{pagination-CoyQUC4R.js → pagination-CR1nxnnq.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-qfpnU8DC.js → pagination.stories-qXmBYwYc.js} +1 -1
- package/dist/storybook/assets/{popover.stories-TwNkFkWa.js → popover.stories-DZTfimDf.js} +1 -1
- package/dist/storybook/assets/{preview-BIv_KaBF.js → preview-b9pkIJl_.js} +2 -2
- package/dist/storybook/assets/{preview-DVjsIOwK.js → preview-jWpKVqju.js} +1 -1
- package/dist/storybook/assets/{reservoirs.stories-DE9FrS0f.js → reservoirs.stories-r1Ip90kJ.js} +1 -1
- package/dist/storybook/assets/{rich-text-input.stories-BNwcnp92.js → rich-text-input.stories-DwaseXZv.js} +1 -1
- package/dist/storybook/assets/{row.stories-D3Bnp8i4.js → row.stories-DRvH8Grn.js} +1 -1
- package/dist/storybook/assets/select-Cwks-WA0.js +61 -0
- package/dist/storybook/assets/{select.stories-BRGk9iYK.js → select.stories-DjGSNDXK.js} +1 -1
- package/dist/storybook/assets/select.test-case.stories-CrXzt4qn.js +82 -0
- package/dist/storybook/assets/{table-DPbEkZqw.js → table-DoyDBG6l.js} +1 -1
- package/dist/storybook/assets/{table.stories-BBzqpsyH.js → table.stories-BgWKzIob.js} +1 -1
- package/dist/storybook/assets/{title.stories-B4PYbA22.js → title.stories-Rv6ZO_Wl.js} +1 -1
- package/dist/storybook/assets/{unit-input-Byipu-z0.js → unit-input-BXg4VphV.js} +1 -1
- package/dist/storybook/assets/{unit-input.stories-CChVbxmI.js → unit-input.stories-Btz2M_TP.js} +1 -1
- package/dist/storybook/assets/{unit-input.test-case.stories-BeFM9DuK.js → unit-input.test-case.stories-CZD1jf36.js} +1 -1
- package/dist/storybook/assets/{unit-table.stories-9x5S71wv.js → unit-table.stories-CISvZMxX.js} +1 -1
- package/dist/storybook/assets/{unit-table.test-case.stories-DZJ-hZ72.js → unit-table.test-case.stories-tEype9om.js} +1 -1
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +1 -1
- package/dist/storybook/assets/menu.test-case.stories-W-jG-Jk8.js +0 -3
- package/dist/storybook/assets/number-input.test-case.stories-CHGSaGbj.js +0 -92
- package/dist/storybook/assets/select-BQzJMnK1.js +0 -61
- package/dist/storybook/assets/select.test-case.stories-BYMK9M8u.js +0 -82
|
@@ -7856,6 +7856,9 @@ button:active .remirror-menu-pane-shortcut,
|
|
|
7856
7856
|
border-width: 4px 4px 0;
|
|
7857
7857
|
border-top-color: #6c6c6c;
|
|
7858
7858
|
}
|
|
7859
|
+
.rc-slider {
|
|
7860
|
+
--height-slider: 14px;
|
|
7861
|
+
}
|
|
7859
7862
|
.rc-slider:not(.rc-slider-disabled) .rc-slider-rail {
|
|
7860
7863
|
background-color: var(--color-border);
|
|
7861
7864
|
}
|
|
@@ -7878,11 +7881,8 @@ button:active .remirror-menu-pane-shortcut,
|
|
|
7878
7881
|
.rc-slider .rc-slider-handle {
|
|
7879
7882
|
opacity: 1;
|
|
7880
7883
|
}
|
|
7881
|
-
.rc-slider .rc-slider-mark
|
|
7882
|
-
|
|
7883
|
-
}
|
|
7884
|
-
.rc-slider .rc-slider-mark-text-active {
|
|
7885
|
-
color: var(--color-text-muted);
|
|
7884
|
+
.rc-slider .rc-slider-mark {
|
|
7885
|
+
top: 0;
|
|
7886
7886
|
}
|
|
7887
7887
|
.rc-slider-disabled {
|
|
7888
7888
|
background-color: transparent !important;
|
|
@@ -7892,6 +7892,38 @@ button:active .remirror-menu-pane-shortcut,
|
|
|
7892
7892
|
.rc-slider-disabled .rc-slider-dot {
|
|
7893
7893
|
cursor: default !important;
|
|
7894
7894
|
}
|
|
7895
|
+
._container_1bhdk_1 {
|
|
7896
|
+
display: flex;
|
|
7897
|
+
align-items: center;
|
|
7898
|
+
min-height: var(--size);
|
|
7899
|
+
gap: 4px;
|
|
7900
|
+
}
|
|
7901
|
+
._container_1bhdk_1._small_1bhdk_7 {
|
|
7902
|
+
min-height: var(--size-sm);
|
|
7903
|
+
}
|
|
7904
|
+
._container_1bhdk_1._vertical_1bhdk_10 {
|
|
7905
|
+
flex-direction: column;
|
|
7906
|
+
padding-bottom: 0;
|
|
7907
|
+
}
|
|
7908
|
+
._container_1bhdk_1._vertical_1bhdk_10 ._hasArrows_1bhdk_14 {
|
|
7909
|
+
margin-top: 5px;
|
|
7910
|
+
margin-bottom: 5px;
|
|
7911
|
+
}
|
|
7912
|
+
._container_1bhdk_1._vertical_1bhdk_10 ._button_1bhdk_18 svg {
|
|
7913
|
+
transform: rotate(-90deg);
|
|
7914
|
+
}
|
|
7915
|
+
._label_1bhdk_21 {
|
|
7916
|
+
white-space: nowrap;
|
|
7917
|
+
margin-left: var(--padding-xs);
|
|
7918
|
+
line-height: 1;
|
|
7919
|
+
overflow: hidden;
|
|
7920
|
+
text-overflow: ellipsis;
|
|
7921
|
+
flex-shrink: 0;
|
|
7922
|
+
}
|
|
7923
|
+
._dot_1bhdk_29 {
|
|
7924
|
+
width: 8px;
|
|
7925
|
+
height: 14px;
|
|
7926
|
+
}
|
|
7895
7927
|
:root {
|
|
7896
7928
|
--toastify-color-light: #fff;
|
|
7897
7929
|
--toastify-color-dark: #121212;
|
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-
|
|
1
|
+
<!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-BMWyiwz3.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-BaYhOc6M.css"></head><body><div id="content"></div></body>
|
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, getUnit, ALT_UNITS, isValueWithUnit, getValue as getValue$1, withUnit, convertSamePrecision, convertAndGetValue,
|
|
19
|
+
import { toString as toString$1, isScientificStringNum, roundToPrecision, toNum, roundToFixed, validateNumber, cleanNumStr, stripLeadingZeros, unitFromQuantity, getUnit, KNOWN_UNITS, ALT_UNITS, isValueWithUnit, getValue as getValue$1, withUnit, convertSamePrecision, convertAndGetValue, split as split$1, label as label$b, isValidNum, getAltUnitsListByQuantity, altUnitsList, 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;
|
|
@@ -70138,7 +70138,8 @@ const isWrongValue = (val) => {
|
|
|
70138
70138
|
};
|
|
70139
70139
|
const isValueWithUnknownUnit = (value) => {
|
|
70140
70140
|
if (!value) return false;
|
|
70141
|
-
|
|
70141
|
+
const unit2 = getUnit(value);
|
|
70142
|
+
return !KNOWN_UNITS.includes(unit2);
|
|
70142
70143
|
};
|
|
70143
70144
|
const checkConversion = ({
|
|
70144
70145
|
value,
|
|
@@ -70202,13 +70203,15 @@ const safeConvertValue = ({
|
|
|
70202
70203
|
defaultFromUnit,
|
|
70203
70204
|
doNotConvertValue
|
|
70204
70205
|
}) => {
|
|
70205
|
-
const isWithUnit = isValueWithUnknownUnit(value) || isValueWithUnit(value);
|
|
70206
70206
|
const rawValue = getValue$1(value);
|
|
70207
70207
|
const isInvalidInput = isWrongValue(rawValue);
|
|
70208
|
+
if (isValueWithUnknownUnit(value)) {
|
|
70209
|
+
return { value: rawValue };
|
|
70210
|
+
}
|
|
70208
70211
|
if (isInvalidInput) {
|
|
70209
70212
|
return { value: rawValue };
|
|
70210
70213
|
}
|
|
70211
|
-
if (!
|
|
70214
|
+
if (!isValueWithUnit(value)) {
|
|
70212
70215
|
return { value };
|
|
70213
70216
|
}
|
|
70214
70217
|
return convertUnit({
|