@oliasoft-open-source/react-ui-library 4.7.3-beta-2 → 4.7.3-beta-4
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-D5kcnHmD.js → index-7PLAdoQ9.js} +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.html +1 -1
- package/dist/index.js +7 -20
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/Color-KGDBMAHA-NxfrngWu.js +1 -0
- package/dist/storybook/assets/DocsRenderer-PKQXORMH-BKwgpZes.js +1 -0
- package/dist/storybook/assets/{accordion-BiuI_LCA.js → accordion-6ouB0WTt.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-Beb4y7rL.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-WJoC6FVV.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-GWWpybLw.js → buttons-and-links-zoC7TwzM.js} +2 -2
- package/dist/storybook/assets/{card.stories-Cddrprok.js → card.stories-DIlqxO94.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-DeIAdq5K.js → casing-loads.stories-0T--WlaD.js} +2 -2
- package/dist/storybook/assets/{cell.stories-DZKcKOIi.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-D8C12IQo.js +102 -0
- package/dist/storybook/assets/{chunk-HLWAVYOI-rY5YQOb2.js → chunk-HLWAVYOI-b3gM-xPN.js} +1 -1
- package/dist/storybook/assets/color-Byg8B_-G.js +25 -0
- package/dist/storybook/assets/{column.stories-rKyxUTAG.js → column.stories-C1Sxwh4f.js} +1 -1
- package/dist/storybook/assets/dialog-CAWCUmp3.js +1 -0
- 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-CJLU_nqW.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-9dtcUGvc.js +2 -0
- package/dist/storybook/assets/{index-4gO9mIeA.js → index-C6MDeJbG.js} +8 -8
- package/dist/storybook/assets/index-DQOq-Hor.js +1 -0
- 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-Dtak6Me2.js → input-group.stories-BcoORZ9x.js} +2 -2
- package/dist/storybook/assets/{input-validation-wltu7rhx.js → input-validation-Cjzh-uP9.js} +2 -2
- package/dist/storybook/assets/{inputs-Bsfja93s.js → inputs-Clw9Zn9N.js} +2 -2
- 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-BPAdD5VV.js +16 -0
- package/dist/storybook/assets/{layout-general-DJOJ7Xv5.js → layout-general-C7ibgLmy.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-Bp8L83xx.js +82 -0
- package/dist/storybook/assets/message-ttrR1AaP.js +1 -0
- package/dist/storybook/assets/{message.stories-B02RIMXw.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-BoVj2EsX.js +200 -0
- package/dist/storybook/assets/number-input.stories-CcNTeD25.js +97 -0
- package/dist/storybook/assets/{option-dropdown.stories-DvgAgTHQ.js → option-dropdown.stories-COGmMWEl.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-BnOF4Ueu.js → padding-and-spacing-D7cLnhaP.js} +2 -2
- package/dist/storybook/assets/{page.stories-DdAfcsOc.js → page.stories-BB3g1zwB.js} +1 -1
- package/dist/storybook/assets/{pagination-DRdJ9LGH.js → pagination-DSQeMPG_.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-C_4kzgcf.js → pagination.stories-DjIohcDx.js} +2 -2
- package/dist/storybook/assets/{pop-confirm.stories-Dlm0BaMY.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-Da45f8XP.js +2 -0
- package/dist/storybook/assets/{preview-DtaSOELl.js → preview-xNOOrD8N.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-B84Ip3NV.js +61 -0
- package/dist/storybook/assets/react-router-dom-CMITYWBH.js +8 -0
- package/dist/storybook/assets/{reservoirs.stories-BUs7WSxB.js → reservoirs.stories-kxVBoa7Y.js} +2 -2
- package/dist/storybook/assets/{rich-text-input.stories-BP79IJ53.js → rich-text-input.stories-C5pcIbSa.js} +3 -3
- package/dist/storybook/assets/{row.stories-CIJowbkv.js → row.stories-ATsrjumb.js} +2 -2
- package/dist/storybook/assets/select-78sreKsp.js +40 -0
- package/dist/storybook/assets/select.stories-CZwsHVDB.js +914 -0
- 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-PeStvjoa.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-B7Ro6zGB.js → table-DPvzYjoq.js} +1 -1
- package/dist/storybook/assets/{table.stories-1mHu1R2T.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-CcK2ZS1r.js → title.stories-CVRTXggL.js} +2 -2
- package/dist/storybook/assets/toaster-DPbde9Mi.js +1 -0
- package/dist/storybook/assets/toaster.stories-DfbfDavp.js +86 -0
- package/dist/storybook/assets/{toggle-D0yzyALV.js → toggle-t1iTuSL7.js} +1 -1
- package/dist/storybook/assets/toggle.stories-D44S3Nix.js +117 -0
- 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-DsvikA1H.js +290 -0
- package/dist/storybook/assets/unit-table.stories-DXies3fA.js +150 -0
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/index.html +2 -6
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +1 -1
- package/dist/storybook/assets/Color-KGDBMAHA-BDaGFyls.js +0 -1
- package/dist/storybook/assets/DocsRenderer-PKQXORMH-DeAerz72.js +0 -1
- package/dist/storybook/assets/check-box.stories-Dqopb7XV.js +0 -126
- package/dist/storybook/assets/color-lBkUm7cb.js +0 -25
- package/dist/storybook/assets/dialog-dXhT3sJF.js +0 -1
- package/dist/storybook/assets/footer.stories-BlfgJYnF.js +0 -3
- package/dist/storybook/assets/form.stories-RD2lXS5Q.js +0 -49
- package/dist/storybook/assets/formation.stories-BC2p8tEp.js +0 -74
- package/dist/storybook/assets/icon-BSFY3vDO.js +0 -8
- package/dist/storybook/assets/iframe-D9Shj_Nm.js +0 -2
- package/dist/storybook/assets/index-Be0hXiyp.js +0 -179
- package/dist/storybook/assets/index-CF7H4eMJ.js +0 -28
- package/dist/storybook/assets/index-NK2Pj-Tv.js +0 -1
- package/dist/storybook/assets/inheritsLoose-DP0QEDDI.js +0 -1
- package/dist/storybook/assets/layout-forms-Bf7y_Hym.js +0 -16
- package/dist/storybook/assets/menu.stories-BD7P2iMQ.js +0 -84
- package/dist/storybook/assets/message-BYzRg8Ae.js +0 -1
- package/dist/storybook/assets/modal.stories-l76yG1FY.js +0 -228
- package/dist/storybook/assets/number-input.stories-CmgIvuEY.js +0 -105
- package/dist/storybook/assets/popover.stories-D6_Ulo0d.js +0 -10
- package/dist/storybook/assets/preview-DLBQXbKW.js +0 -1
- package/dist/storybook/assets/preview-Dyti8xUp.js +0 -2
- package/dist/storybook/assets/projects.stories-ApHyZURX.js +0 -47
- package/dist/storybook/assets/radio-button.stories-Ds-DfLlj.js +0 -71
- package/dist/storybook/assets/react-router-dom-Ck2Y_Fzc.js +0 -8
- package/dist/storybook/assets/select-BeEJzL_0.js +0 -40
- package/dist/storybook/assets/select.stories-DgC9Agq6.js +0 -579
- package/dist/storybook/assets/text-link.stories-BQAkVO-W.js +0 -14
- package/dist/storybook/assets/toaster-BNO0suPv.js +0 -1
- package/dist/storybook/assets/toaster.stories-DYw4Syxn.js +0 -89
- package/dist/storybook/assets/toggle.stories-DKENe2T9.js +0 -141
- package/dist/storybook/assets/top-bar.stories-CFZoJq-r.js +0 -21
- package/dist/storybook/assets/unit-input.stories-BdhJ50Pr.js +0 -290
- package/dist/storybook/assets/unit-table.stories-_Z6tTx-x.js +0 -150
- package/dist/storybook/sb-addons/interactions-2/manager-bundle.js +0 -233
- package/dist/storybook/sb-addons/storybook-dark-mode-esm-preset-3/manager-bundle.js.LEGAL.txt +0 -0
- /package/dist/storybook/sb-addons/{storybook-dark-mode-esm-preset-3 → storybook-dark-mode-esm-preset-2}/manager-bundle.js +0 -0
- /package/dist/storybook/sb-addons/{interactions-2 → storybook-dark-mode-esm-preset-2}/manager-bundle.js.LEGAL.txt +0 -0
|
@@ -75846,6 +75846,7 @@ function TreeInner(props, ref2) {
|
|
|
75846
75846
|
}
|
|
75847
75847
|
reactExports.forwardRef(TreeInner);
|
|
75848
75848
|
requireUnits();
|
|
75849
|
+
reactExports.createContext(null);
|
|
75849
75850
|
const Footer = () => {
|
|
75850
75851
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
75851
75852
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}),
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
|
+
import { Context } from 'react';
|
|
2
3
|
import { CSSProperties } from 'react';
|
|
3
4
|
import { default as default_2 } from 'react';
|
|
4
5
|
import { DependencyList } from 'react';
|
|
@@ -866,7 +867,7 @@ export declare interface INativeSelectProps {
|
|
|
866
867
|
maxTooltipWidth?: TStringOrNumber;
|
|
867
868
|
}
|
|
868
869
|
|
|
869
|
-
export declare const initializeContext: (
|
|
870
|
+
export declare const initializeContext: (context: Context<UnitContextType | null>) => void;
|
|
870
871
|
|
|
871
872
|
export declare const Input: default_2.ForwardRefExoticComponent<IInputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
872
873
|
|
|
@@ -1856,7 +1857,7 @@ declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTabl
|
|
|
1856
1857
|
|
|
1857
1858
|
declare type UnitContextType = any;
|
|
1858
1859
|
|
|
1859
|
-
export declare const UnitInput:
|
|
1860
|
+
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;
|
|
1860
1861
|
|
|
1861
1862
|
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
|
|
1862
1863
|
|
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-7PLAdoQ9.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
|
@@ -70127,33 +70127,22 @@ const isKnownUnit = (valueWithUnit, defaultUnit) => {
|
|
|
70127
70127
|
const unitFromValue = getUnit(valueWithUnit || "");
|
|
70128
70128
|
return isUnitKnown(defaultUnit) && isUnitKnown(unitFromValue);
|
|
70129
70129
|
};
|
|
70130
|
-
|
|
70131
|
-
const UnitContextProvider = ({ children, value }) => {
|
|
70132
|
-
return /* @__PURE__ */ jsx(UnitContext.Provider, { value, children });
|
|
70133
|
-
};
|
|
70130
|
+
let UnitContext = createContext(null);
|
|
70134
70131
|
const useUnitContext = () => {
|
|
70135
70132
|
return useContext(UnitContext);
|
|
70136
70133
|
};
|
|
70137
70134
|
let isInitialized = false;
|
|
70138
|
-
|
|
70139
|
-
const initializeContext = (value) => {
|
|
70135
|
+
const initializeContext = (context2) => {
|
|
70140
70136
|
if (!isInitialized) {
|
|
70141
|
-
providedValue = value;
|
|
70142
70137
|
isInitialized = true;
|
|
70138
|
+
UnitContext = context2;
|
|
70143
70139
|
}
|
|
70144
70140
|
};
|
|
70145
|
-
const WithUnitContext = (Component2) => (props) => {
|
|
70146
|
-
if (!isInitialized) {
|
|
70147
|
-
console.log("Context not initialized. Call initializeContext first.");
|
|
70148
|
-
return /* @__PURE__ */ jsx(Component2, { ...props });
|
|
70149
|
-
}
|
|
70150
|
-
return /* @__PURE__ */ jsx(UnitContextProvider, { value: providedValue, children: /* @__PURE__ */ jsx(Component2, { ...props }) });
|
|
70151
|
-
};
|
|
70152
70141
|
const predefinedMenuActive = "_predefinedMenuActive_1yvt4_1";
|
|
70153
70142
|
const styles = {
|
|
70154
70143
|
predefinedMenuActive
|
|
70155
70144
|
};
|
|
70156
|
-
const
|
|
70145
|
+
const UnitInput = ({
|
|
70157
70146
|
name: name2,
|
|
70158
70147
|
placeholder: placeholder3 = "",
|
|
70159
70148
|
disabled: disabled2 = false,
|
|
@@ -70174,7 +70163,7 @@ const UnitInputComponent = ({
|
|
|
70174
70163
|
},
|
|
70175
70164
|
onSwitchUnit = () => {
|
|
70176
70165
|
},
|
|
70177
|
-
unitTemplate
|
|
70166
|
+
unitTemplate,
|
|
70178
70167
|
doNotConvertValue = false,
|
|
70179
70168
|
testId,
|
|
70180
70169
|
warning: warning2 = null,
|
|
@@ -70187,12 +70176,11 @@ const UnitInputComponent = ({
|
|
|
70187
70176
|
allowEmpty = false,
|
|
70188
70177
|
autoValue
|
|
70189
70178
|
}) => {
|
|
70190
|
-
const context2 = useUnitContext();
|
|
70191
|
-
const unitTemplate = externalUnitTemplate ?? (context2 == null ? void 0 : context2.unitTemplate);
|
|
70192
|
-
console.log("context in component ->>>>", context2);
|
|
70193
70179
|
if (typeof value === "number") {
|
|
70194
70180
|
value = `${value}`;
|
|
70195
70181
|
}
|
|
70182
|
+
const context2 = useUnitContext();
|
|
70183
|
+
console.log("context in component ->>>>", context2, context2 == null ? void 0 : context2.unitTemplate);
|
|
70196
70184
|
const runAfterUpdate = useRunAfterUpdate();
|
|
70197
70185
|
const [propValue = "", propUnit = ""] = value !== void 0 ? split$1(value) : [];
|
|
70198
70186
|
const propAutoUnit = autoValue ? getUnit(autoValue) : "";
|
|
@@ -70476,7 +70464,6 @@ const UnitInputComponent = ({
|
|
|
70476
70464
|
}
|
|
70477
70465
|
);
|
|
70478
70466
|
};
|
|
70479
|
-
const UnitInput = WithUnitContext(UnitInputComponent);
|
|
70480
70467
|
const normalizeUnits = (unitConfig) => unitConfig.reduce(
|
|
70481
70468
|
({ preferredUnits, storageUnits }, { unitKey, preferredUnit, storageUnit }) => {
|
|
70482
70469
|
preferredUnits[unitKey] = preferredUnit;
|