@oliasoft-open-source/react-ui-library 4.8.0-beta-2 → 4.8.0-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-Csdt18_R.js → index-GTFdS-JF.js} +1008 -862
- package/dist/index.d.ts +8 -10
- package/dist/index.html +1 -1
- package/dist/index.js +1014 -899
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-KGDBMAHA-BS-rAnbo.js → Color-KGDBMAHA-BGErnsA6.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-PKQXORMH-DZ7r3cmw.js → DocsRenderer-PKQXORMH-D7WH90Ux.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-CKrpJWRn.js → accordion.stories-YV-J9E1H.js} +1 -1
- package/dist/storybook/assets/{afe.stories-80-X2oCf.js → afe.stories-BnD7J0sn.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-ES-Fuaqn.js → blowout.stories-BlyKeeED.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-sTGnmj6h.js → buttons-and-links-BCjRj0sv.js} +2 -2
- package/dist/storybook/assets/{casing-loads.stories-Do3mZuX2.js → casing-loads.stories-CEKi9p48.js} +1 -1
- package/dist/storybook/assets/{cell.stories-B0YsumDa.js → cell.stories-B0IK4EXk.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-B6vW-2Fd.js → check-box.stories-C_7Z7Ss6.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-BqK-R5cR.js → chunk-HLWAVYOI-D7npaoui.js} +1 -1
- package/dist/storybook/assets/{color-Cvx86PKp.js → color-DCR_IQPE.js} +2 -2
- package/dist/storybook/assets/{column.stories-BxfR9Tla.js → column.stories-DDTHFELF.js} +1 -1
- package/dist/storybook/assets/{footer.stories-CMN_mVki.js → footer.stories-Bl3gEVhY.js} +1 -1
- package/dist/storybook/assets/{form.stories-C1Qx3M_1.js → form.stories-JRw9Y_sV.js} +1 -1
- package/dist/storybook/assets/{formation.stories-CCJYaUpG.js → formation.stories-DNNvbCAo.js} +1 -1
- package/dist/storybook/assets/{grid-B6LFPf51.js → grid-DRkC-bt8.js} +1 -1
- package/dist/storybook/assets/{grid.stories-BhjMGl59.js → grid.stories-DqjhHHwX.js} +1 -1
- package/dist/storybook/assets/{icon.stories-C1hZXIMX.js → icon.stories-fnZUR-LK.js} +1 -1
- package/dist/storybook/assets/iframe-DNtoVJNq.js +2 -0
- package/dist/storybook/assets/index-C0x1JmaP.js +14 -0
- package/dist/storybook/assets/{index-B8zF6D3V.js → index-CEjEvyl9.js} +95 -95
- package/dist/storybook/assets/{index-omjWi7I7.js → index-C_B8BHJN.js} +1 -1
- package/dist/storybook/assets/{index-Be0hXiyp.js → index-DMAnyMX5.js} +1 -1
- package/dist/storybook/assets/{input-group.stories-44quIZTV.js → input-group.stories-D7nvlp0S.js} +1 -1
- package/dist/storybook/assets/{input-validation-BREYBXzB.js → input-validation-Cpjs6Oco.js} +1 -1
- package/dist/storybook/assets/{inputs-DkxT6vDD.js → inputs-B0fHrXlB.js} +2 -2
- package/dist/storybook/assets/{layout-forms-Y0Chz5wF.js → layout-forms-Ck78vgFh.js} +1 -1
- package/dist/storybook/assets/{layout-general-CRJUCd3s.js → layout-general-BV8ErZlY.js} +1 -1
- package/dist/storybook/assets/{menu.stories-Dozt6Npk.js → menu.stories-mt3LwVCk.js} +1 -1
- package/dist/storybook/assets/{message.stories-K3bQ-5bJ.js → message.stories-DEMcK-wa.js} +1 -1
- package/dist/storybook/assets/{modal.stories-BX49dKIM.js → modal.stories-Benu2pYo.js} +1 -1
- package/dist/storybook/assets/number-input-FjN2w5Zq.js +4 -0
- package/dist/storybook/assets/number-input.stories-CjeUb5EQ.js +166 -0
- package/dist/storybook/assets/{padding-and-spacing-DYx_u7EA.js → padding-and-spacing-Tv64UDVi.js} +1 -1
- package/dist/storybook/assets/{pagination-iSMIbR33.js → pagination-DXnrsBZs.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-BUPaZD5R.js → pagination.stories-DKSBeVH-.js} +1 -1
- package/dist/storybook/assets/{popover.stories-Duemqiqp.js → popover.stories-BKImRt9k.js} +1 -1
- package/dist/storybook/assets/{preview-kt6m1zZo.js → preview-C4UROPMn.js} +2 -2
- package/dist/storybook/assets/{preview-B2Xzz4-3.js → preview-DV63XeY-.js} +1 -1
- package/dist/storybook/assets/{projects.stories-DU-QlBa6.js → projects.stories-BfMSNrkX.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-8QEKlNvO.js → radio-button.stories-CGJnfCk-.js} +1 -1
- package/dist/storybook/assets/{reservoirs.stories-aSZ9r1Pu.js → reservoirs.stories-CZme5ZCc.js} +1 -1
- package/dist/storybook/assets/rich-text-input.stories-a2GSF6vM.js +256 -0
- package/dist/storybook/assets/{row-4iAGREkV.js → row-Bmiy2Lh0.js} +1 -1
- package/dist/storybook/assets/{row.stories-ZCrMoTuY.js → row.stories-UAENUT5Q.js} +1 -1
- package/dist/storybook/assets/{select-C8iu4-uz.js → select-Br1k0mOD.js} +1 -1
- package/dist/storybook/assets/{select.stories-DbgjgsiX.js → select.stories-Bj6BwvfZ.js} +1 -1
- package/dist/storybook/assets/{site.stories-Ci4g5W2A.js → site.stories-CRc-gQlK.js} +1 -1
- package/dist/storybook/assets/{smart-upload-modal.stories-DgnJ79fa.js → smart-upload-modal.stories-BStZdEeo.js} +1 -1
- package/dist/storybook/assets/styled-components.browser.esm-BQ9GQzDc.js +2 -0
- package/dist/storybook/assets/{table-ZQD4ELIM.js → table-DMsE4ks-.js} +1 -1
- package/dist/storybook/assets/{table.stories-DGedoAir.js → table.stories-CvFBGBd6.js} +1 -1
- package/dist/storybook/assets/{title.stories-jQBBSflc.js → title.stories-DvTVQphz.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-CAqrDYpd.js → toaster.stories-Dxg5K32_.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-t0T4HV1D.js → toggle.stories-mjk0JIle.js} +1 -1
- package/dist/storybook/assets/unit-input-5P4Cogho.css +1 -0
- package/dist/storybook/assets/unit-input.stories-s45csxB3.js +353 -0
- package/dist/storybook/assets/unit-table.stories-DtWOiSyD.js +152 -0
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/sb-addons/interactions-2/manager-bundle.js +1 -0
- package/dist/storybook/sb-manager/globals-runtime.js +1 -1
- package/dist/storybook/sb-manager/globals.js +48 -0
- package/dist/storybook/sb-preview/runtime.js +1 -0
- package/package.json +8 -4
- package/dist/storybook/assets/iframe-CUVhB5TR.js +0 -2
- package/dist/storybook/assets/index-DQs5XS8h.js +0 -14
- package/dist/storybook/assets/number-input-CD-fbjVQ.js +0 -4
- package/dist/storybook/assets/number-input.stories-h1PlFB_G.js +0 -105
- package/dist/storybook/assets/rich-text-input.stories-CsFyrKRA.js +0 -256
- package/dist/storybook/assets/styled-components.browser.esm-Bf0q9Yjk.js +0 -2
- package/dist/storybook/assets/unit-input-CoFS2qhN.css +0 -1
- package/dist/storybook/assets/unit-input.stories-C7XlUSaC.js +0 -290
- package/dist/storybook/assets/unit-table.stories-BJbxGp7Y.js +0 -150
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,6 +867,8 @@ export declare interface INativeSelectProps {
|
|
|
866
867
|
maxTooltipWidth?: TStringOrNumber;
|
|
867
868
|
}
|
|
868
869
|
|
|
870
|
+
export declare const initializeContext: (context: Context<UnitContextType | null>) => void;
|
|
871
|
+
|
|
869
872
|
export declare const Input: default_2.ForwardRefExoticComponent<IInputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
870
873
|
|
|
871
874
|
export declare const InputGroup: ({ children, small, width, }: IInputGroupProps) => ReactElement;
|
|
@@ -902,7 +905,7 @@ declare interface INumberInputCell extends TCommonCell {
|
|
|
902
905
|
allowEmpty?: boolean;
|
|
903
906
|
enableCosmeticRounding: boolean;
|
|
904
907
|
enableDisplayRounding: boolean;
|
|
905
|
-
roundDisplayValue: (value:
|
|
908
|
+
roundDisplayValue: (value: TStringOrNumber) => TStringOrNumber;
|
|
906
909
|
}
|
|
907
910
|
|
|
908
911
|
export declare interface INumberInputProps {
|
|
@@ -931,7 +934,7 @@ export declare interface INumberInputProps {
|
|
|
931
934
|
groupOrder?: any;
|
|
932
935
|
enableCosmeticRounding?: boolean;
|
|
933
936
|
enableDisplayRounding?: boolean;
|
|
934
|
-
roundDisplayValue?: (args:
|
|
937
|
+
roundDisplayValue?: (args: TStringOrNumber) => TStringOrNumber;
|
|
935
938
|
disableInternalErrorValidationMessages?: boolean;
|
|
936
939
|
}
|
|
937
940
|
|
|
@@ -1581,7 +1584,7 @@ export declare interface IUnitInputProps {
|
|
|
1581
1584
|
initialPredefinedOption?: boolean;
|
|
1582
1585
|
shouldLinkAutomaticly?: boolean;
|
|
1583
1586
|
selectedPredefinedOptionKey?: string;
|
|
1584
|
-
validationCallback?: (
|
|
1587
|
+
validationCallback?: (name: string, error: string | null) => any;
|
|
1585
1588
|
disabledValidation?: boolean;
|
|
1586
1589
|
allowEmpty?: boolean;
|
|
1587
1590
|
autoValue?: string;
|
|
@@ -1595,13 +1598,6 @@ export declare interface IUnitInputProps {
|
|
|
1595
1598
|
enableDisplayRounding?: boolean;
|
|
1596
1599
|
}
|
|
1597
1600
|
|
|
1598
|
-
declare interface IUnitInputValidationCallbackPayload {
|
|
1599
|
-
name: string | {
|
|
1600
|
-
fieldName: string;
|
|
1601
|
-
};
|
|
1602
|
-
error: string | null;
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
1601
|
declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
|
|
1606
1602
|
rows?: IUnitTableRow[];
|
|
1607
1603
|
}
|
|
@@ -1862,6 +1858,8 @@ export declare type TTriggerType = 'Text' | 'Button' | 'DropDownButton' | 'Compo
|
|
|
1862
1858
|
|
|
1863
1859
|
declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTableInputCell | IUnitTableNumberInputCell;
|
|
1864
1860
|
|
|
1861
|
+
declare type UnitContextType = any;
|
|
1862
|
+
|
|
1865
1863
|
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, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitInputProps) => JSX_2.Element;
|
|
1866
1864
|
|
|
1867
1865
|
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-GTFdS-JF.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-Oe0PlEED.css"></head><body><div id="content"></div></body>
|