@oliasoft-open-source/react-ui-library 4.6.0 → 4.6.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.d.ts +2 -3
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/Color-6VNJS4EI-LkypNDYY.js +1 -0
- package/dist/storybook/assets/DocsRenderer-NNNQARDV-271EmMHR.js +1 -0
- package/dist/storybook/assets/WithTooltip-V3YHNWJZ-5odABDuO.js +1 -0
- package/dist/storybook/assets/{accordion-MRdNs3mQ.js → accordion-M-sY23Hd.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-3sqRwqly.js → accordion.stories-nYKTmoeA.js} +2 -2
- package/dist/storybook/assets/{actions-AZ9fI-GM.js → actions-mOcj9IlF.js} +1 -1
- package/dist/storybook/assets/{actions.stories-DcHBD8wo.js → actions.stories-ER0_rAT3.js} +1 -1
- package/dist/storybook/assets/afe.stories-gufd9PH8.js +88 -0
- package/dist/storybook/assets/{badge.stories-5O4TV4St.js → badge.stories-QAHZ0hGs.js} +1 -1
- package/dist/storybook/assets/blowout.stories-TT3YZhxD.js +40 -0
- package/dist/storybook/assets/{button-group-O6Di9sNA.js → button-group-mNQThLQb.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-2yCzCoPD.js → button-group.stories-hEWUnlpm.js} +1 -1
- package/dist/storybook/assets/{button-rm22C2wf.js → button-shH4xakS.js} +1 -1
- package/dist/storybook/assets/{button.stories-32q2fViV.js → button.stories-5xHwBO1P.js} +6 -6
- package/dist/storybook/assets/{buttons-and-links-LEUVLdX3.js → buttons-and-links-Sb4bneec.js} +1 -1
- package/dist/storybook/assets/{card.stories-v_QIHoI3.js → card.stories-52XKdWMP.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-rcooFkDL.js → casing-loads.stories-58Yzw909.js} +2 -2
- package/dist/storybook/assets/{cell.stories-MEK7F8sN.js → cell.stories-dk65sciA.js} +9 -9
- package/dist/storybook/assets/{check-box-7DccPNCs.js → check-box-2gxosI3y.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-QBPARD7M.js → check-box.stories-dct4BaKG.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-XeHb_zS2.js → chunk-HLWAVYOI-C-Uqv-lv.js} +1 -1
- package/dist/storybook/assets/color-QEPOj0Ib.js +25 -0
- package/dist/storybook/assets/{column.stories-FWqVDX5B.js → column.stories-1Qq8awo0.js} +6 -6
- package/dist/storybook/assets/{dialog-VIWX250Q.js → dialog-roJ8Yns6.js} +1 -1
- package/dist/storybook/assets/{drawer-FAo1Q_ET.js → drawer-GdbVQdWk.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-raVCT-8R.js → drawer.stories-XWMoCncm.js} +2 -2
- package/dist/storybook/assets/{empty.stories-eLsVeLsD.js → empty.stories-XVXKuuiT.js} +1 -1
- package/dist/storybook/assets/entry-preview-TGgN7-T4.js +1 -0
- package/dist/storybook/assets/{config-b-_d5fwn.js → entry-preview-docs-KfUfHYQ7.js} +37 -37
- package/dist/storybook/assets/{field-9udMeZdr.js → field-FZX0Z7IB.js} +1 -1
- package/dist/storybook/assets/{field.stories-H98nslNw.js → field.stories-Quu0snQm.js} +5 -5
- package/dist/storybook/assets/{file-input.stories-d--B8cOO.js → file-input.stories-qbEqmWyt.js} +1 -1
- package/dist/storybook/assets/{flex-KzhjL9yc.js → flex-RYZsoWEN.js} +1 -1
- package/dist/storybook/assets/{flex.stories-I4p46kT6.js → flex.stories-8HJIYv6E.js} +1 -1
- package/dist/storybook/assets/footer.stories-tB9ZiuYm.js +3 -0
- package/dist/storybook/assets/form.stories-7v6JzvJl.js +49 -0
- package/dist/storybook/assets/formation.stories-gIRSy7_9.js +74 -0
- package/dist/storybook/assets/{formatter-SWP5E3XI-DSCJOjJG.js → formatter-SWP5E3XI-a7sBt194.js} +1 -1
- package/dist/storybook/assets/{heading-sY0SLHoQ.js → heading-jZsIIJF0.js} +1 -1
- package/dist/storybook/assets/{heading.stories-zStr3-HL.js → heading.stories-lW_q2VjY.js} +1 -1
- package/dist/storybook/assets/{help-icon-yrJgkgdC.js → help-icon-SKky6KLV.js} +1 -1
- package/dist/storybook/assets/{help-icon.stories-gjzAU_pF.js → help-icon.stories-i7tX8eBl.js} +1 -1
- package/dist/storybook/assets/icon-8EQazuuW.js +8 -0
- package/dist/storybook/assets/{icon.stories-jaMoeuyt.js → icon.stories-j-b_Exev.js} +1 -1
- package/dist/storybook/assets/iframe-Z5bUT4O1.js +7 -0
- package/dist/storybook/assets/index-PPLHz8o0.js +6 -0
- package/dist/storybook/assets/index-R5dkQuFe.js +3 -0
- package/dist/storybook/assets/{index-abKsB-Kl.js → index-i2tVYo5N.js} +20 -20
- package/dist/storybook/assets/{index.es-LXZC0YVN.js → index.es-VXFRDikp.js} +4 -4
- package/dist/storybook/assets/inheritsLoose-8sb_A2v4.js +1 -0
- package/dist/storybook/assets/{input-iDZqV-2m.js → input-2BhbKV-j.js} +1 -1
- package/dist/storybook/assets/{input-group.stories-UDFOhdWz.js → input-group.stories-gJFYuvVb.js} +5 -5
- package/dist/storybook/assets/{input-validation-20MUxBI6.js → input-validation-FFXJoKSI.js} +1 -1
- package/dist/storybook/assets/{input.stories-iopguZKB.js → input.stories-74EIL_bF.js} +1 -1
- package/dist/storybook/assets/{inputs-TmWBRWaW.js → inputs-DtKO2too.js} +1 -1
- package/dist/storybook/assets/{isPlainObject-4RuU_w9g.js → isPlainObject-OQlD0fAV.js} +1 -1
- package/dist/storybook/assets/{label-J7MI85wD.js → label-uCFEME1p.js} +1 -1
- package/dist/storybook/assets/{label.stories-kmvMrgz2.js → label.stories-LhXr4NuA.js} +1 -1
- package/dist/storybook/assets/{layout-forms-kkgtzmiO.js → layout-forms-7ZIITxGs.js} +1 -1
- package/dist/storybook/assets/{layout-general-BO1UiJxQ.js → layout-general-zuo7KumY.js} +1 -1
- package/dist/storybook/assets/{list-vXYnYUi0.js → list-PShi-3TE.js} +1 -1
- package/dist/storybook/assets/{list.stories-KCjHPYZx.js → list.stories-TLnvjaYU.js} +2 -2
- package/dist/storybook/assets/{list.stories-data-p4t83IOz.js → list.stories-data-Qc3oehAh.js} +1 -1
- package/dist/storybook/assets/{loader.stories-NPfeCmtc.js → loader.stories-xsnhGOV_.js} +5 -5
- package/dist/storybook/assets/{menu.stories-data-c8X93fYM.js → menu.stories-data-hEz8P1yK.js} +1 -1
- package/dist/storybook/assets/{menu.stories-t0fFav_z.js → menu.stories-ppWN2JgO.js} +6 -6
- package/dist/storybook/assets/{message-p9VAXLNZ.js → message-CRKuTfOl.js} +1 -1
- package/dist/storybook/assets/{message.stories-uPLoUdpD.js → message.stories-N8ZGvhv2.js} +1 -1
- package/dist/storybook/assets/meta-content-lUynpOsR.js +1 -0
- package/dist/storybook/assets/{modal.stories-7Z_rzYSc.js → modal.stories-dirXv4n_.js} +2 -2
- package/dist/storybook/assets/number-input-CMhEMmUd.js +1 -0
- package/dist/storybook/assets/number-input.stories-AU1jlL6D.js +97 -0
- package/dist/storybook/assets/{option-dropdown.stories-XXhHv7Q-.js → option-dropdown.stories-n7CDZevX.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-ResQ517B.js → padding-and-spacing-3Mlm9PiC.js} +1 -1
- package/dist/storybook/assets/{page.stories-WaAu4bZx.js → page.stories-OXhmRr73.js} +1 -1
- package/dist/storybook/assets/{pagination-WmRtOUjO.js → pagination-tnyyuMkB.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-leit5iOS.js → pagination.stories-c7jbEB_j.js} +2 -2
- package/dist/storybook/assets/{pop-confirm.stories-PknEXhpI.js → pop-confirm.stories-kZScSFuk.js} +1 -1
- package/dist/storybook/assets/{popover-ZT5lBU-W.js → popover-cad2llTa.js} +1 -1
- package/dist/storybook/assets/popover.stories-1JvlWYFM.js +1 -0
- package/dist/storybook/assets/{portal.stories-UGkzdgVk.js → portal.stories-1Jnj3LXz.js} +1 -1
- package/dist/storybook/assets/{preview-5oXwpv5M.js → preview-0LPoYPAJ.js} +13 -13
- package/dist/storybook/assets/preview-MDW-geT9.js +7 -0
- package/dist/storybook/assets/preview-OnO0tzRj.js +17 -0
- package/dist/storybook/assets/projects.stories-epAPUAg1.js +47 -0
- package/dist/storybook/assets/{radio-button-T38JdN-I.js → radio-button-5n_38sFk.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-MbtUJQ4_.js → radio-button.stories-Z_B_oHnZ.js} +1 -1
- package/dist/storybook/assets/react-router-dom-EZH1n7K1.js +8 -0
- package/dist/storybook/assets/{reservoirs.stories-qYaPMbjv.js → reservoirs.stories-vxBxhmZh.js} +2 -2
- package/dist/storybook/assets/{rich-text-input.stories-hYx4gSgs.js → rich-text-input.stories-EbjoMb2s.js} +3 -3
- package/dist/storybook/assets/{row.stories-1uI0HLm0.js → row.stories-p0ssjvtr.js} +2 -2
- package/dist/storybook/assets/select-DZdWUrCW.js +1 -0
- package/dist/storybook/assets/{select.stories-U32XvwIb.js → select.stories-QOxuHSmz.js} +2 -2
- package/dist/storybook/assets/{side-bar-_tR5JeGc.js → side-bar-ZpHvA_KQ.js} +1 -1
- package/dist/storybook/assets/side-bar.stories-GCjyz_UC.js +27 -0
- package/dist/storybook/assets/{site.stories-ltRQw7Km.js → site.stories-k6-tU36k.js} +2 -2
- package/dist/storybook/assets/slider-MN9iDCsS.js +7 -0
- package/dist/storybook/assets/{slider.stories-10JT-qwQ.js → slider.stories-hVrt3K9M.js} +4 -4
- package/dist/storybook/assets/{spacer.stories-hs33H_N9.js → spacer.stories-Tc3LfeOH.js} +1 -1
- package/dist/storybook/assets/syntaxhighlighter-B5GMVT5T-jueltlMw.js +1 -0
- package/dist/storybook/assets/table-033R9jUC.js +1 -0
- package/dist/storybook/assets/{table.stories-data-ehBuODKA.js → table.stories-data-NfE_v-gH.js} +1 -1
- package/dist/storybook/assets/{table.stories-63gTcmnB.js → table.stories-wdVWlpz1.js} +5 -5
- package/dist/storybook/assets/{tabs.stories-KtJc5Yci.js → tabs.stories-aps5NXFv.js} +2 -2
- package/dist/storybook/assets/text-link.stories-Mx9ojcOC.js +14 -0
- package/dist/storybook/assets/{textarea-mYEkEnUR.js → textarea-ygEac3d2.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-ARS3RM31.js → textarea.stories-vr_I38NI.js} +1 -1
- package/dist/storybook/assets/{hoist-non-react-statics.cjs-pnyno-Dk.js → tiny-invariant-R4kOKlvx.js} +2 -2
- package/dist/storybook/assets/title.stories-9QWP9XVr.js +37 -0
- package/dist/storybook/assets/{toaster-bqqWcltU.js → toaster-yPcd4ELJ.js} +1 -1
- package/dist/storybook/assets/toaster.stories-D_1FY8OT.js +86 -0
- package/dist/storybook/assets/{toggle-b0PkHQDl.js → toggle-M_66MP8X.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-zMCWB_3O.js → toggle.stories-VfPLoUW1.js} +1 -1
- package/dist/storybook/assets/{tooltip-ZHdi6rl-.js → tooltip-HEHiU__l.js} +1 -1
- package/dist/storybook/assets/{tooltip.stories-gTfOeEzv.js → tooltip.stories-tiOgoWHH.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-Vq8nFCVS.js → tooltip.test-case.stories-g9fe1-Ut.js} +1 -1
- package/dist/storybook/assets/{top-bar-e2jItFw6.js → top-bar-ywJJBf-H.js} +1 -1
- package/dist/storybook/assets/top-bar.stories-KkBPu_h3.js +21 -0
- package/dist/storybook/assets/{top-bar.testcase.stories-2MxbcV7T.js → top-bar.testcase.stories-RJkl6c8Z.js} +2 -2
- package/dist/storybook/assets/{tree.stories-U6RKMnnO.js → tree.stories-UiERA8eJ.js} +1 -1
- package/dist/storybook/assets/{unit-input.stories-S31ymsIe.js → unit-input.stories-NxlXJaPc.js} +15 -15
- package/dist/storybook/assets/unit-table.stories-JkNu_Up6.js +103 -0
- package/dist/storybook/iframe.html +3 -1
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/sb-addons/actions-0/manager-bundle.js +1 -1
- package/dist/storybook/sb-preview/globals.js +1 -1
- package/dist/storybook/sb-preview/runtime.js +19 -19
- package/dist/storybook/stories.json +1 -1
- package/package.json +1 -1
- package/dist/storybook/assets/Color-6VNJS4EI-7SF_QHKQ.js +0 -1
- package/dist/storybook/assets/DocsRenderer-NNNQARDV-zFqyxzyz.js +0 -1
- package/dist/storybook/assets/WithTooltip-4HIR6TLV--mlcCTTj.js +0 -1
- package/dist/storybook/assets/afe.stories-ArA2txnu.js +0 -88
- package/dist/storybook/assets/blowout.stories-6yWu_xKW.js +0 -40
- package/dist/storybook/assets/color-fUhGriLa.js +0 -25
- package/dist/storybook/assets/extends-dGVwEr9R.js +0 -1
- package/dist/storybook/assets/footer.stories-Mrr_R3r9.js +0 -3
- package/dist/storybook/assets/form.stories-6S2hx2wh.js +0 -49
- package/dist/storybook/assets/formation.stories-pE9W1lT-.js +0 -74
- package/dist/storybook/assets/icon-_m67DAr0.js +0 -8
- package/dist/storybook/assets/iframe-5vkaUfcR.js +0 -7
- package/dist/storybook/assets/index-gM75B7fB.js +0 -8
- package/dist/storybook/assets/inheritsLoose-Y9jOMJLd.js +0 -1
- package/dist/storybook/assets/list-heading-5IIpXtaS.js +0 -1
- package/dist/storybook/assets/number-input-wURqWy_O.js +0 -1
- package/dist/storybook/assets/number-input.stories-V3bsui-x.js +0 -81
- package/dist/storybook/assets/popover.stories-Jsd7AOQD.js +0 -1
- package/dist/storybook/assets/preview-Fi7DQdoQ.js +0 -1
- package/dist/storybook/assets/preview-XaSsmro5.js +0 -7
- package/dist/storybook/assets/projects.stories-thRPHYqQ.js +0 -47
- package/dist/storybook/assets/react-router-dom-2JKSc1g5.js +0 -8
- package/dist/storybook/assets/select-kE9fK8N9.js +0 -1
- package/dist/storybook/assets/side-bar.stories-I7ZQcntL.js +0 -27
- package/dist/storybook/assets/slider-XJwLz14m.js +0 -7
- package/dist/storybook/assets/syntaxhighlighter-NMPM6SWI-CwboJMBs.js +0 -1
- package/dist/storybook/assets/table-geCXJ5Oo.js +0 -1
- package/dist/storybook/assets/text-link.stories-_A7eKI_2.js +0 -14
- package/dist/storybook/assets/title.stories-0uqbMXQe.js +0 -37
- package/dist/storybook/assets/toaster.stories-j_yWcF95.js +0 -86
- package/dist/storybook/assets/top-bar.stories-Dz8tdKm4.js +0 -21
- package/dist/storybook/assets/unit-table.stories-8hLAgPN9.js +0 -103
- /package/dist/storybook/assets/{list-heading-dR7AAq04.css → meta-content-dR7AAq04.css} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1562,7 +1562,7 @@ declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
|
|
|
1562
1562
|
declare interface IUnitTableCell {
|
|
1563
1563
|
autoUnit: boolean;
|
|
1564
1564
|
unitKey: string;
|
|
1565
|
-
formatDisplayValue?: (value:
|
|
1565
|
+
formatDisplayValue?: (value: TStringNumberNull) => TStringNumberNull;
|
|
1566
1566
|
}
|
|
1567
1567
|
|
|
1568
1568
|
declare interface IUnitTableInputCell extends IInputCell, IUnitTableCell {
|
|
@@ -1587,7 +1587,6 @@ export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
|
1587
1587
|
convertBackToStorageUnit?: boolean;
|
|
1588
1588
|
enableCosmeticRounding?: boolean;
|
|
1589
1589
|
enableDisplayRounding?: boolean;
|
|
1590
|
-
roundDisplayValue?: (value: TStringNumberNull) => TStringNumberNull;
|
|
1591
1590
|
}
|
|
1592
1591
|
|
|
1593
1592
|
export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
|
|
@@ -1816,7 +1815,7 @@ declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTabl
|
|
|
1816
1815
|
|
|
1817
1816
|
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;
|
|
1818
1817
|
|
|
1819
|
-
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding,
|
|
1818
|
+
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
|
|
1820
1819
|
|
|
1821
1820
|
export declare const useFocus: () => UseFocusReturnType;
|
|
1822
1821
|
|
package/dist/index.js
CHANGED
|
@@ -70716,8 +70716,7 @@ const convertVisibleRows = ({
|
|
|
70716
70716
|
onChangeUnit,
|
|
70717
70717
|
convertBackToStorageUnit,
|
|
70718
70718
|
enableCosmeticRounding,
|
|
70719
|
-
enableDisplayRounding
|
|
70720
|
-
roundDisplayValue
|
|
70719
|
+
enableDisplayRounding
|
|
70721
70720
|
}) => {
|
|
70722
70721
|
const convertedHeaders = headers ? headers.map((headerRow) => ({
|
|
70723
70722
|
...headerRow,
|
|
@@ -70739,7 +70738,8 @@ const convertVisibleRows = ({
|
|
|
70739
70738
|
...row2,
|
|
70740
70739
|
cells: row2.cells.map((cell2, cellIndex) => {
|
|
70741
70740
|
if ("autoUnit" in cell2 && (cell2 == null ? void 0 : cell2.autoUnit) && (typeof (cell2 == null ? void 0 : cell2.value) === "string" || typeof (cell2 == null ? void 0 : cell2.value) === "number")) {
|
|
70742
|
-
const {
|
|
70741
|
+
const { unitKey, value, formatDisplayValue } = cell2;
|
|
70742
|
+
const roundDisplayValue = enableDisplayRounding && "roundDisplayValue" in cell2 ? cell2 == null ? void 0 : cell2.roundDisplayValue : null;
|
|
70743
70743
|
const selectedUnit = selectedUnits[unitKey];
|
|
70744
70744
|
const storageUnit = storageUnits[unitKey];
|
|
70745
70745
|
const unitChanged = selectedUnit !== storageUnit;
|
|
@@ -70796,8 +70796,7 @@ const UnitTable = ({
|
|
|
70796
70796
|
unitConfig,
|
|
70797
70797
|
convertBackToStorageUnit = true,
|
|
70798
70798
|
enableCosmeticRounding = true,
|
|
70799
|
-
enableDisplayRounding = true
|
|
70800
|
-
roundDisplayValue
|
|
70799
|
+
enableDisplayRounding = true
|
|
70801
70800
|
}) => {
|
|
70802
70801
|
const { rows, headers, ...otherProps } = table2;
|
|
70803
70802
|
const { storageUnits, preferredUnits } = normalizeUnits(unitConfig);
|
|
@@ -70818,8 +70817,7 @@ const UnitTable = ({
|
|
|
70818
70817
|
onChangeUnit,
|
|
70819
70818
|
convertBackToStorageUnit,
|
|
70820
70819
|
enableCosmeticRounding,
|
|
70821
|
-
enableDisplayRounding
|
|
70822
|
-
roundDisplayValue
|
|
70820
|
+
enableDisplayRounding
|
|
70823
70821
|
});
|
|
70824
70822
|
const convertedViewData = convertViewData(selectedUnits);
|
|
70825
70823
|
const [viewData, setViewData] = useState(convertedViewData);
|