@oliasoft-open-source/react-ui-library 4.7.3-beta-6 → 4.7.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/404.html +1 -0
- package/dist/assets/{index-7PLAdoQ9.js → index-D5kcnHmD.js} +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.html +1 -1
- package/dist/index.js +9 -32
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/Color-KGDBMAHA-RK4YYQs0.js +1 -0
- package/dist/storybook/assets/DocsRenderer-PKQXORMH-B0ryFlHH.js +1 -0
- package/dist/storybook/assets/{accordion-BiuI_LCA.js → accordion-6ouB0WTt.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-sb-Y7MMb.js → accordion.stories-DlFZNmdv.js} +2 -2
- package/dist/storybook/assets/{actions-4w-EOz3m.js → actions-Cu_0szZ4.js} +1 -1
- package/dist/storybook/assets/{actions.stories-CtocfSW4.js → actions.stories-SCPuAp0T.js} +1 -1
- package/dist/storybook/assets/{afe.stories--E_j7kET.js → afe.stories-G3SzS3sg.js} +2 -2
- package/dist/storybook/assets/{badge.stories-CKnNQLZ5.js → badge.stories-DGYA6_1I.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-AxiXaQQ-.js → blowout.stories-P0LHuXSY.js} +1 -1
- package/dist/storybook/assets/{button-CdEIDAx8.js → button-_0DiND6h.js} +1 -1
- package/dist/storybook/assets/{button-group-BIUVa0X9.js → button-group-BYiHMljF.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-B0Gb9kNs.js → button-group.stories-Bz6NHaeB.js} +1 -1
- package/dist/storybook/assets/{button.stories-CHt71NKu.js → button.stories-vVBGddVf.js} +2 -2
- package/dist/storybook/assets/{buttons-and-links-BauLyn_y.js → buttons-and-links-B6aQa-f5.js} +2 -2
- package/dist/storybook/assets/{card.stories-Cddrprok.js → card.stories-DIlqxO94.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-EZlP6XsN.js → casing-loads.stories-0T--WlaD.js} +2 -2
- package/dist/storybook/assets/{cell.stories-D9KrTmCA.js → cell.stories-C5Tkxyfr.js} +2 -2
- package/dist/storybook/assets/{check-box-2fHPdAZG.js → check-box-DkdQxC5c.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-Do-GOmLf.js → check-box.stories-D8C12IQo.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-BX6pTYCG.js → chunk-HLWAVYOI-dB_9CZG8.js} +1 -1
- package/dist/storybook/assets/color-BSzeqkLx.js +25 -0
- package/dist/storybook/assets/{column.stories-rKyxUTAG.js → column.stories-C1Sxwh4f.js} +1 -1
- package/dist/storybook/assets/{dialog-B-R6eAnf.js → dialog-CAWCUmp3.js} +1 -1
- package/dist/storybook/assets/{drawer-BOl7GxGI.js → drawer-vbDFqa4U.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-qH2nYW2a.js → drawer.stories-CmbGsKmS.js} +4 -4
- package/dist/storybook/assets/{empty.stories-BKEXzh9o.js → empty.stories-iHPKKy4z.js} +1 -1
- package/dist/storybook/assets/extends-CF3RwP-h.js +1 -0
- package/dist/storybook/assets/{field-nInV3MuR.js → field-DwLk_uWj.js} +1 -1
- package/dist/storybook/assets/{field.stories-eRSYmEtA.js → field.stories-s-0LQVbp.js} +1 -1
- package/dist/storybook/assets/{file-button.stories-CH6kxEKM.js → file-button.stories-C90kcfbw.js} +1 -1
- package/dist/storybook/assets/{file-input-Amcc9o5I.js → file-input-C_2w1dKj.js} +1 -1
- package/dist/storybook/assets/{file-input.stories-aiTQE5UN.js → file-input.stories-BEsZox6U.js} +1 -1
- package/dist/storybook/assets/{flex.stories-CT6o2gii.js → flex.stories-D-QN0gkk.js} +1 -1
- package/dist/storybook/assets/footer.stories-U_zMDmxF.js +3 -0
- package/dist/storybook/assets/form.stories-1L75MGpX.js +49 -0
- package/dist/storybook/assets/formation.stories-YHpXrXvC.js +74 -0
- package/dist/storybook/assets/{heading-EzI5s4VN.js → heading-DkSFysAb.js} +1 -1
- package/dist/storybook/assets/{heading.stories-D5x1-mKs.js → heading.stories-Dtq7LNlB.js} +1 -1
- package/dist/storybook/assets/{help-icon-CfV3_Ais.js → help-icon-LfPZiYla.js} +1 -1
- package/dist/storybook/assets/{help-icon.stories-D4KS1wlT.js → help-icon.stories-Dh2ylnGq.js} +1 -1
- package/dist/storybook/assets/icon-BP4BO6-k.js +8 -0
- package/dist/storybook/assets/{icon.stories-C1hZXIMX.js → icon.stories-B-tKaIKA.js} +1 -1
- package/dist/storybook/assets/iframe-CNFcCVDc.js +2 -0
- package/dist/storybook/assets/index-BIwFZkUc.js +1 -0
- package/dist/storybook/assets/{index-CZerqvnp.js → index-ccPuy0l1.js} +8 -8
- package/dist/storybook/assets/{index.es-DazXb-ul.js → index.es-D2piFfFj.js} +4 -4
- package/dist/storybook/assets/inheritsLoose-DR8r8Ogv.js +1 -0
- package/dist/storybook/assets/{input-group.stories-hHCmTbtu.js → input-group.stories-BcoORZ9x.js} +2 -2
- package/dist/storybook/assets/{input-validation-DejYoLOw.js → input-validation-CLVu4gtl.js} +2 -2
- package/dist/storybook/assets/{inputs-NeM4HqdZ.js → inputs-qWlLPYX_.js} +4 -4
- package/dist/storybook/assets/{label-Cz6TT90s.js → label-tWjEmTQJ.js} +1 -1
- package/dist/storybook/assets/{label.stories-BzSzxxM-.js → label.stories-BTA8N7tD.js} +1 -1
- package/dist/storybook/assets/layout-forms-p4s8eHw6.js +16 -0
- package/dist/storybook/assets/{layout-general-BoKJ4ZlB.js → layout-general-Dn1nlXYw.js} +2 -2
- package/dist/storybook/assets/{list-BtA0jYMp.js → list-BpVed6Pw.js} +1 -1
- package/dist/storybook/assets/{list.stories-CmJsmJZJ.js → list.stories-CiT9J_FH.js} +2 -2
- package/dist/storybook/assets/{list.stories-data-C_w1DX5i.js → list.stories-data-CnVYk3eo.js} +1 -1
- package/dist/storybook/assets/{loader.stories-CA2m3EFj.js → loader.stories-BKBFctQ1.js} +1 -1
- package/dist/storybook/assets/{menu.stories-Bc2kf356.js → menu.stories-Bp8L83xx.js} +2 -2
- package/dist/storybook/assets/{message-ZenLdkrf.js → message-ttrR1AaP.js} +1 -1
- package/dist/storybook/assets/{message.stories-CXOrrAOR.js → message.stories-C8YRT7nL.js} +1 -1
- package/dist/storybook/assets/{meta-content-BdypOdcN.js → meta-content-Djgg-tiF.js} +1 -1
- package/dist/storybook/assets/{modal.stories-ChRLG9ud.js → modal.stories-BoVj2EsX.js} +2 -2
- package/dist/storybook/assets/{number-input.stories-COWyMRAs.js → number-input.stories-CcNTeD25.js} +2 -2
- package/dist/storybook/assets/{option-dropdown.stories-DvgAgTHQ.js → option-dropdown.stories-COGmMWEl.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-CUlpXdO2.js → padding-and-spacing-BNiScrzg.js} +2 -2
- package/dist/storybook/assets/{page.stories-DdAfcsOc.js → page.stories-BB3g1zwB.js} +1 -1
- package/dist/storybook/assets/{pagination-0wY_w1xz.js → pagination-DSQeMPG_.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-BagAIIz3.js → pagination.stories-DjIohcDx.js} +2 -2
- package/dist/storybook/assets/{pop-confirm.stories-D4L3erpj.js → pop-confirm.stories-Cr_ZBbLn.js} +1 -1
- package/dist/storybook/assets/{popover-CvS_kBVF.js → popover-Dq3iC_lM.js} +1 -1
- package/dist/storybook/assets/popover.stories-CoWCb2Mn.js +10 -0
- package/dist/storybook/assets/preview-CZPuAPNr.js +2 -0
- package/dist/storybook/assets/{preview-BiBwi-VL.js → preview-DhMlVLsE.js} +2 -2
- package/dist/storybook/assets/projects.stories-BesbPJ8Z.js +47 -0
- package/dist/storybook/assets/{radio-button-J4oEQdxt.js → radio-button-BD7pi0ao.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-BFp_qyyE.js → radio-button.stories-B84Ip3NV.js} +1 -1
- package/dist/storybook/assets/react-router-dom-CMITYWBH.js +8 -0
- package/dist/storybook/assets/{reservoirs.stories-DywuU8EY.js → reservoirs.stories-kxVBoa7Y.js} +2 -2
- package/dist/storybook/assets/{rich-text-input.stories-Cw_6EJx8.js → rich-text-input.stories-C5pcIbSa.js} +3 -3
- package/dist/storybook/assets/{row.stories-D7V0fxhq.js → row.stories-ATsrjumb.js} +2 -2
- package/dist/storybook/assets/{select-yqiMF9-4.js → select-78sreKsp.js} +2 -2
- package/dist/storybook/assets/{select.stories-VMcOn7Ri.js → select.stories-CZwsHVDB.js} +2 -2
- package/dist/storybook/assets/{side-bar-DAMfASqb.js → side-bar-WsK6pkmj.js} +1 -1
- package/dist/storybook/assets/{side-bar.stories-BlEIOckL.js → side-bar.stories-Bu2q_b_w.js} +1 -1
- package/dist/storybook/assets/{site.stories-Kk57nhAn.js → site.stories-Yh4uNi3Q.js} +2 -2
- package/dist/storybook/assets/{slider-BLU39INk.js → slider-CxVlS0fh.js} +4 -4
- package/dist/storybook/assets/{slider.stories-DdVxUAfH.js → slider.stories-_wS70xsm.js} +2 -2
- package/dist/storybook/assets/{smart-upload-modal.stories-Cot88l9r.js → smart-upload-modal.stories-DDlO9y2j.js} +1 -1
- package/dist/storybook/assets/{spacer.stories-Dd1QMhoc.js → spacer.stories-B3LrTr7b.js} +1 -1
- package/dist/storybook/assets/{table-DmwpXp_Q.js → table-DPvzYjoq.js} +1 -1
- package/dist/storybook/assets/{table.stories-DKcZk5JR.js → table.stories-BGQ1O9nw.js} +2 -2
- package/dist/storybook/assets/{table.stories-data-C6x-UHeN.js → table.stories-data-2STKbgzG.js} +1 -1
- package/dist/storybook/assets/text-link.stories-BsuVBOWo.js +14 -0
- package/dist/storybook/assets/{title.stories-CKbl0CB2.js → title.stories-CVRTXggL.js} +2 -2
- package/dist/storybook/assets/{toaster-B8A3xIYu.js → toaster-DPbde9Mi.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-DuE6vvV6.js → toaster.stories-DfbfDavp.js} +1 -1
- package/dist/storybook/assets/{toggle-D0yzyALV.js → toggle-t1iTuSL7.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-Cre2gnIB.js → toggle.stories-D44S3Nix.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-BWJhZQg8.js → tooltip.test-case.stories-BtrJUImB.js} +1 -1
- package/dist/storybook/assets/{top-bar-mKg-xcLh.js → top-bar-R-CjhJ21.js} +1 -1
- package/dist/storybook/assets/top-bar.stories-BYN9rcUw.js +21 -0
- package/dist/storybook/assets/{top-bar.testcase.stories-BlbsX9By.js → top-bar.testcase.stories-ZPaSRyIh.js} +1 -1
- package/dist/storybook/assets/{tree.stories-CkYwGe0X.js → tree.stories-Ghxps-dL.js} +1 -1
- package/dist/storybook/assets/unit-input.stories-Bqt0CdF7.js +290 -0
- package/dist/storybook/assets/unit-table.stories-DXies3fA.js +150 -0
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +1 -1
- package/dist/storybook/assets/Color-KGDBMAHA-CkztEiML.js +0 -1
- package/dist/storybook/assets/DocsRenderer-PKQXORMH-CP_Q5IGB.js +0 -1
- package/dist/storybook/assets/color-BNalCYYX.js +0 -25
- package/dist/storybook/assets/footer.stories-B5zvZawz.js +0 -3
- package/dist/storybook/assets/form.stories-D58sdhOk.js +0 -49
- package/dist/storybook/assets/formation.stories-OtA8Hcp6.js +0 -74
- package/dist/storybook/assets/icon-BSFY3vDO.js +0 -8
- package/dist/storybook/assets/iframe-qFXWLeOa.js +0 -2
- package/dist/storybook/assets/index-DEMnWl0Y.js +0 -1
- package/dist/storybook/assets/inheritsLoose-DP0QEDDI.js +0 -1
- package/dist/storybook/assets/layout-forms-B8949Fjt.js +0 -16
- package/dist/storybook/assets/popover.stories-ChwzGOlc.js +0 -10
- package/dist/storybook/assets/preview-DbtMUp2m.js +0 -2
- package/dist/storybook/assets/projects.stories-ApHyZURX.js +0 -47
- package/dist/storybook/assets/react-router-dom-Ck2Y_Fzc.js +0 -8
- package/dist/storybook/assets/text-link.stories-BQAkVO-W.js +0 -14
- package/dist/storybook/assets/top-bar.stories-CFZoJq-r.js +0 -21
- package/dist/storybook/assets/unit-input.stories-aY3ydXnU.js +0 -290
- package/dist/storybook/assets/unit-table.stories-BoNWlaAe.js +0 -150
package/dist/404.html
ADDED
|
@@ -0,0 +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-D5kcnHmD.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-Oe0PlEED.css"></head><body><div id="content"></div></body>
|
|
@@ -75846,7 +75846,6 @@ function TreeInner(props, ref2) {
|
|
|
75846
75846
|
}
|
|
75847
75847
|
reactExports.forwardRef(TreeInner);
|
|
75848
75848
|
requireUnits();
|
|
75849
|
-
reactExports.createContext(null);
|
|
75850
75849
|
const Footer = () => {
|
|
75851
75850
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
75852
75851
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}),
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
|
-
import { Context } from 'react';
|
|
3
2
|
import { CSSProperties } from 'react';
|
|
4
3
|
import { default as default_2 } from 'react';
|
|
5
4
|
import { DependencyList } from 'react';
|
|
@@ -867,8 +866,6 @@ export declare interface INativeSelectProps {
|
|
|
867
866
|
maxTooltipWidth?: TStringOrNumber;
|
|
868
867
|
}
|
|
869
868
|
|
|
870
|
-
export declare const initializeContext: (context: Context<UnitContextType | null>) => void;
|
|
871
|
-
|
|
872
869
|
export declare const Input: default_2.ForwardRefExoticComponent<IInputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
873
870
|
|
|
874
871
|
export declare const InputGroup: ({ children, small, width, }: IInputGroupProps) => ReactElement;
|
|
@@ -1855,8 +1852,6 @@ export declare type TTriggerType = 'Text' | 'Button' | 'DropDownButton' | 'Compo
|
|
|
1855
1852
|
|
|
1856
1853
|
declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTableInputCell | IUnitTableNumberInputCell;
|
|
1857
1854
|
|
|
1858
|
-
declare type UnitContextType = any;
|
|
1859
|
-
|
|
1860
1855
|
export declare const UnitInput: ({ name, placeholder, disabled, disabledUnit, error, left, small, width, value, unitkey, initUnit, noConversion, onChange, onClick, onFocus, onSwitchUnit, unitTemplate, doNotConvertValue, testId, warning, predefinedOptions, initialPredefinedOption, shouldLinkAutomaticly, selectedPredefinedOptionKey, validationCallback, disabledValidation, allowEmpty, autoValue, }: IUnitInputProps) => JSX_2.Element;
|
|
1861
1856
|
|
|
1862
1857
|
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
|
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-D5kcnHmD.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-Oe0PlEED.css"></head><body><div id="content"></div></body>
|
package/dist/index.js
CHANGED
|
@@ -3741,15 +3741,7 @@ const TooltipLayer = ({
|
|
|
3741
3741
|
...layerProps,
|
|
3742
3742
|
children: [
|
|
3743
3743
|
/* @__PURE__ */ jsx("div", { style: { maxWidth, fontSize, padding: padding2 }, children: text2 }),
|
|
3744
|
-
/* @__PURE__ */ jsx(
|
|
3745
|
-
Arrow,
|
|
3746
|
-
{
|
|
3747
|
-
...arrowProps,
|
|
3748
|
-
size: 6,
|
|
3749
|
-
onPointerEnterCapture: void 0,
|
|
3750
|
-
onPointerLeaveCapture: void 0
|
|
3751
|
-
}
|
|
3752
|
-
)
|
|
3744
|
+
/* @__PURE__ */ jsx(Arrow, { ...arrowProps, size: 6 })
|
|
3753
3745
|
]
|
|
3754
3746
|
}
|
|
3755
3747
|
);
|
|
@@ -21894,9 +21886,7 @@ const Popover = ({
|
|
|
21894
21886
|
backgroundColor: "var(--color-background-layer)",
|
|
21895
21887
|
borderColor: "var(--color-border)",
|
|
21896
21888
|
borderWidth: 1,
|
|
21897
|
-
size: 6
|
|
21898
|
-
onPointerEnterCapture: void 0,
|
|
21899
|
-
onPointerLeaveCapture: void 0
|
|
21889
|
+
size: 6
|
|
21900
21890
|
}
|
|
21901
21891
|
)
|
|
21902
21892
|
]
|
|
@@ -70026,7 +70016,7 @@ const getPreferredUnit = (unitkey, unitTemplate) => {
|
|
|
70026
70016
|
const preferredUnit = unitTemplate == null ? void 0 : unitTemplate[unitkey];
|
|
70027
70017
|
if (!preferredUnit) {
|
|
70028
70018
|
console.log(
|
|
70029
|
-
`Warning: 'unitTemplate'
|
|
70019
|
+
`Warning: 'unitTemplate' does not define a preferred unit for '${unitkey}'. Defaulting to standard unit.`
|
|
70030
70020
|
);
|
|
70031
70021
|
return unitFromQuantity(unitkey) ?? "";
|
|
70032
70022
|
}
|
|
@@ -70124,17 +70114,6 @@ const isKnownUnit = (valueWithUnit, defaultUnit) => {
|
|
|
70124
70114
|
const unitFromValue = getUnit(valueWithUnit || "");
|
|
70125
70115
|
return isUnitKnown(defaultUnit) && isUnitKnown(unitFromValue);
|
|
70126
70116
|
};
|
|
70127
|
-
let UnitContext = createContext(null);
|
|
70128
|
-
const useUnitContext = () => {
|
|
70129
|
-
return useContext(UnitContext);
|
|
70130
|
-
};
|
|
70131
|
-
let isInitialized = false;
|
|
70132
|
-
const initializeContext = (context2) => {
|
|
70133
|
-
if (!isInitialized) {
|
|
70134
|
-
isInitialized = true;
|
|
70135
|
-
UnitContext = context2;
|
|
70136
|
-
}
|
|
70137
|
-
};
|
|
70138
70117
|
const predefinedMenuActive = "_predefinedMenuActive_1yvt4_1";
|
|
70139
70118
|
const styles = {
|
|
70140
70119
|
predefinedMenuActive
|
|
@@ -70173,19 +70152,18 @@ const UnitInput = ({
|
|
|
70173
70152
|
allowEmpty = false,
|
|
70174
70153
|
autoValue
|
|
70175
70154
|
}) => {
|
|
70176
|
-
const context2 = useUnitContext();
|
|
70177
|
-
const runAfterUpdate = useRunAfterUpdate();
|
|
70178
70155
|
if (typeof value === "number") {
|
|
70179
70156
|
value = `${value}`;
|
|
70180
70157
|
}
|
|
70158
|
+
const runAfterUpdate = useRunAfterUpdate();
|
|
70181
70159
|
const [propValue = "", propUnit = ""] = value !== void 0 ? split$1(value) : [];
|
|
70182
70160
|
const propAutoUnit = autoValue ? getUnit(autoValue) : "";
|
|
70183
|
-
const
|
|
70184
|
-
() => getPreferredUnit(unitkey, unitTemplate
|
|
70185
|
-
[unitkey, unitTemplate
|
|
70161
|
+
const defaultUnit = useMemo$1(
|
|
70162
|
+
() => getPreferredUnit(unitkey, unitTemplate),
|
|
70163
|
+
[unitkey, unitTemplate]
|
|
70186
70164
|
);
|
|
70187
|
-
const knownUnit = isKnownUnit(value,
|
|
70188
|
-
const initDisplayUnit = initUnit ||
|
|
70165
|
+
const knownUnit = isKnownUnit(value, defaultUnit);
|
|
70166
|
+
const initDisplayUnit = initUnit || defaultUnit || propUnit;
|
|
70189
70167
|
const previousInitUnit = usePrevious(initDisplayUnit);
|
|
70190
70168
|
const convertedValue = safeConvertValue(
|
|
70191
70169
|
value,
|
|
@@ -70854,7 +70832,6 @@ export {
|
|
|
70854
70832
|
UnitInput,
|
|
70855
70833
|
UnitTable,
|
|
70856
70834
|
dismissToast,
|
|
70857
|
-
initializeContext,
|
|
70858
70835
|
readFile,
|
|
70859
70836
|
toast,
|
|
70860
70837
|
useFocus,
|