@oliasoft-open-source/react-ui-library 4.8.0-beta-4 → 4.8.0-beta-6
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-Oe0PlEED.css → index-BpSdrNXy.css} +316 -316
- package/dist/assets/{index-GTFdS-JF.js → index-CnfDrmnZ.js} +236 -195
- package/dist/global.css +576 -576
- package/dist/index.d.ts +39 -39
- package/dist/index.html +1 -1
- package/dist/index.js +546 -510
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-KGDBMAHA-BGErnsA6.js → Color-KGDBMAHA-7n9iRx7S.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-PKQXORMH-D7WH90Ux.js → DocsRenderer-PKQXORMH-C57lSAQP.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-YV-J9E1H.js → accordion.stories-DxcPNOgs.js} +2 -2
- package/dist/storybook/assets/actions-D-uVCDzk.js +39 -0
- package/dist/storybook/assets/{actions.stories-CCDxFKFk.js → actions.stories-gKfuiKQy.js} +1 -1
- package/dist/storybook/assets/{afe.stories-BnD7J0sn.js → afe.stories-Be4Zi8Qk.js} +2 -2
- package/dist/storybook/assets/{badge.stories-D5DA-vxC.js → badge.stories-Dkq_XgEW.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-BlyKeeED.js → blowout.stories-DHdofVc-.js} +1 -1
- package/dist/storybook/assets/button-DHevvVBE.js +1 -0
- package/dist/storybook/assets/button-fAxt_G4d.css +1 -0
- package/dist/storybook/assets/{button-group-CwJdFo2z.js → button-group-1DEZPmxq.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-DU5k5qCY.js → button-group.stories-C4V1k0z_.js} +1 -1
- package/dist/storybook/assets/{button.stories-DVtec2Eo.js → button.stories-DA9DGYD2.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-BCjRj0sv.js → buttons-and-links-CAoQC4F0.js} +2 -2
- package/dist/storybook/assets/{casing-loads.stories-CEKi9p48.js → casing-loads.stories-C4UBI5Xe.js} +2 -2
- package/dist/storybook/assets/{cell.stories-B0IK4EXk.js → cell.stories-BSxt9Uy7.js} +2 -2
- package/dist/storybook/assets/check-box-DPLaOkRR.js +13 -0
- package/dist/storybook/assets/{check-box.stories-C_7Z7Ss6.js → check-box.stories-DfbWw6mD.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-D7npaoui.js → chunk-HLWAVYOI-DrFFqdeg.js} +1 -1
- package/dist/storybook/assets/{color-DCR_IQPE.js → color-Cj3Jrfqu.js} +2 -2
- package/dist/storybook/assets/{dialog-Di8hNunM.js → dialog-BelCA1mt.js} +1 -1
- package/dist/storybook/assets/drawer-DOWJp9T4.js +3 -0
- package/dist/storybook/assets/drawer-DhrjYsQu.css +1 -0
- package/dist/storybook/assets/{drawer.stories-B-PsNJJ6.js → drawer.stories-DcjyDHEs.js} +1 -1
- package/dist/storybook/assets/{empty.stories-BVYXwvpa.js → empty.stories-DcwF0pkK.js} +1 -1
- package/dist/storybook/assets/{field.stories-B9p9nBgY.js → field.stories-DUGMwi1O.js} +1 -1
- package/dist/storybook/assets/file-button.stories-CU2pZcEO.js +22 -0
- package/dist/storybook/assets/file-input-X3BnZaHk.js +13 -0
- package/dist/storybook/assets/{file-input.stories-Jrdw5k-s.js → file-input.stories-CWD5XYE9.js} +1 -1
- package/dist/storybook/assets/{flex.stories-BEXf0VqI.js → flex.stories-BhvJpHpN.js} +1 -1
- package/dist/storybook/assets/footer.stories-CMQkKB8p.js +3 -0
- package/dist/storybook/assets/form.stories-CX1WxUVL.js +49 -0
- package/dist/storybook/assets/formation.stories-DdQ8gl9A.js +74 -0
- package/dist/storybook/assets/helpers-JJxzGegQ.js +1 -0
- package/dist/storybook/assets/iframe-BGmrP0sW.js +2 -0
- package/dist/storybook/assets/index-C2sXcduN.js +1 -0
- package/dist/storybook/assets/{index-CEjEvyl9.js → index-DugqEjCI.js} +47 -47
- package/dist/storybook/assets/input-DD7t4kHm.css +1 -0
- package/dist/storybook/assets/input-DTXbDJaL.js +1 -0
- package/dist/storybook/assets/{input-group.stories-D7nvlp0S.js → input-group.stories-Bqx8op1f.js} +2 -2
- package/dist/storybook/assets/{input-validation-Cpjs6Oco.js → input-validation-f5uEIzl2.js} +2 -2
- package/dist/storybook/assets/{input.stories-BruLeJ44.js → input.stories-FKl0qVhm.js} +1 -1
- package/dist/storybook/assets/{inputs-B0fHrXlB.js → inputs-CeRKE4Lz.js} +2 -2
- package/dist/storybook/assets/{layout-forms-Ck78vgFh.js → layout-forms-BxYHgSuN.js} +4 -4
- package/dist/storybook/assets/{layout-general-BV8ErZlY.js → layout-general-GRQFrkfR.js} +1 -1
- package/dist/storybook/assets/{list-yVTOdmpX.js → list-bKpz6I9Q.js} +1 -1
- package/dist/storybook/assets/{list.stories-ChqQXY5M.js → list.stories-Cgmt29Wv.js} +1 -1
- package/dist/storybook/assets/{list.stories-data-Iq66w9oH.js → list.stories-data-D_Aj3AN4.js} +1 -1
- package/dist/storybook/assets/{loader.stories-DM7ZJBgz.js → loader.stories-pS8zRM4u.js} +1 -1
- package/dist/storybook/assets/{lodash-BHd_uQHh.js → lodash-c4VUpsOs.js} +2 -2
- package/dist/storybook/assets/menu.stories-data-CQ59XhzU.js +1 -0
- package/dist/storybook/assets/{menu.stories-mt3LwVCk.js → menu.stories-xWX80Eh2.js} +1 -1
- package/dist/storybook/assets/message-Cl3kn7ZD.css +1 -0
- package/dist/storybook/assets/message-Y48EomV-.js +1 -0
- package/dist/storybook/assets/{message.stories-DEMcK-wa.js → message.stories-r_UlbshI.js} +1 -1
- package/dist/storybook/assets/meta-content-DWZbURV2.js +9 -0
- package/dist/storybook/assets/meta-content-DnZPPeTF.css +1 -0
- package/dist/storybook/assets/{modal.stories-Benu2pYo.js → modal.stories-BcqAhYEy.js} +2 -2
- package/dist/storybook/assets/number-input-CEoWDcRg.js +16 -0
- package/dist/storybook/assets/number-input.stories-UJVpFqsh.js +110 -0
- package/dist/storybook/assets/option-dropdown.stories-CIvqMhQ3.js +52 -0
- package/dist/storybook/assets/{padding-and-spacing-Tv64UDVi.js → padding-and-spacing-D6XbiS3K.js} +1 -1
- package/dist/storybook/assets/{page.stories-Cse3cMsO.js → page.stories-DnCh8h8y.js} +1 -1
- package/dist/storybook/assets/{pagination-DXnrsBZs.js → pagination-D6pYWeQM.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-DKSBeVH-.js → pagination.stories-ItfGvzb-.js} +2 -2
- package/dist/storybook/assets/{pop-confirm.stories-Dhid1FK8.js → pop-confirm.stories-DCpooB2O.js} +1 -1
- package/dist/storybook/assets/{popover-CzZdWNnB.js → popover-rq33c1W2.js} +1 -1
- package/dist/storybook/assets/popover.stories-B4sQDryP.js +10 -0
- package/dist/storybook/assets/{preview-DV63XeY-.js → preview-C0zm9b3L.js} +2 -2
- package/dist/storybook/assets/{preview-C4UROPMn.js → preview-DGngQ_J0.js} +2 -2
- package/dist/storybook/assets/projects.stories-Co_WnKSx.js +47 -0
- package/dist/storybook/assets/radio-button-C4ljBRED.js +13 -0
- package/dist/storybook/assets/{radio-button.stories-CGJnfCk-.js → radio-button.stories-BzyW2CtK.js} +2 -2
- package/dist/storybook/assets/{reservoirs.stories-CZme5ZCc.js → reservoirs.stories-FQuUA3DK.js} +2 -2
- package/dist/storybook/assets/{rich-text-input-DPMWElGY.css → rich-text-input-dDjxXFl-.css} +1 -1
- package/dist/storybook/assets/{rich-text-input.stories-a2GSF6vM.js → rich-text-input.stories-B5srzxDu.js} +44 -44
- package/dist/storybook/assets/{row.stories-UAENUT5Q.js → row.stories-C1XgB_82.js} +2 -2
- package/dist/storybook/assets/select-H-9tdhwc.css +1 -0
- package/dist/storybook/assets/select-V2ZNp3Pv.js +61 -0
- package/dist/storybook/assets/select.input-CJed_LLR.js +1 -0
- package/dist/storybook/assets/{select.stories-Bj6BwvfZ.js → select.stories-CV9h5z0E.js} +2 -2
- package/dist/storybook/assets/{side-bar-CKbHPgIV.js → side-bar-CSx5wI-k.js} +4 -4
- package/dist/storybook/assets/side-bar-auov230-.css +1 -0
- package/dist/storybook/assets/{side-bar.stories-MUj_dj1F.js → side-bar.stories-M6FsuCrQ.js} +1 -1
- package/dist/storybook/assets/{site.stories-CRc-gQlK.js → site.stories-ZGohyW6Z.js} +2 -2
- package/dist/storybook/assets/slider-C7vnj_3M.js +27 -0
- package/dist/storybook/assets/{slider.stories-Cd0rLfHP.js → slider.stories-BzBb3PkP.js} +1 -1
- package/dist/storybook/assets/{smart-upload-modal.stories-BStZdEeo.js → smart-upload-modal.stories-Dn7dIsu1.js} +1 -1
- package/dist/storybook/assets/{spacer.stories-CHEZdgDM.js → spacer.stories-BBTt2LdE.js} +1 -1
- package/dist/storybook/assets/table-C9uAiJu6.css +1 -0
- package/dist/storybook/assets/table-iMn5OU9-.js +86 -0
- package/dist/storybook/assets/{table.stories-CvFBGBd6.js → table.stories-CIsR2u2M.js} +2 -2
- package/dist/storybook/assets/table.stories-data-D52aKMY1.js +1 -0
- package/dist/storybook/assets/tabs-BoToLVEP.js +13 -0
- package/dist/storybook/assets/tabs.stories-B52iEaHf.js +30 -0
- package/dist/storybook/assets/textarea-D6ltcKhz.js +13 -0
- package/dist/storybook/assets/textarea-H-YTEwr8.css +1 -0
- package/dist/storybook/assets/{textarea.stories-aRLEoDHg.js → textarea.stories-CJ-Oqytp.js} +1 -1
- package/dist/storybook/assets/{title.stories-DvTVQphz.js → title.stories-BhbnN3vD.js} +2 -2
- package/dist/storybook/assets/{toaster-BNO0suPv.js → toaster-BoBcvmf9.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-Dxg5K32_.js → toaster.stories-HO4VBTy-.js} +1 -1
- package/dist/storybook/assets/toggle-BbFVf61v.js +13 -0
- package/dist/storybook/assets/{toggle.stories-mjk0JIle.js → toggle.stories-qTHFTXxI.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-i9YQqba1.js → tooltip.test-case.stories-CHibN8rC.js} +1 -1
- package/dist/storybook/assets/{top-bar-C_tn2Pc5.js → top-bar-DkXSzzqt.js} +1 -1
- package/dist/storybook/assets/{top-bar.stories-B2a-RgK-.js → top-bar.stories-HDmWT243.js} +1 -1
- package/dist/storybook/assets/{top-bar.testcase.stories-DoPEAMYc.js → top-bar.testcase.stories-DfmrkEpT.js} +1 -1
- package/dist/storybook/assets/{tree.stories-6UHASEZu.js → tree.stories-feLUcTtm.js} +1 -1
- package/dist/storybook/assets/{types-UmZ4Y_CR.js → types-Dx2TtIG9.js} +1 -1
- package/dist/storybook/assets/unit-input.stories-DCAfSaYS.js +316 -0
- package/dist/storybook/assets/unit-table.stories-M7pzrM4S.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 +52 -52
- package/dist/storybook/sb-manager/globals-runtime.js +7164 -7166
- package/dist/storybook/sb-manager/runtime.js +1110 -1111
- package/dist/storybook/sb-preview/runtime.js +1485 -1483
- package/package.json +3 -3
- package/dist/storybook/assets/actions-CHgr8eL8.js +0 -27
- package/dist/storybook/assets/button-BpFIj2Vw.css +0 -1
- package/dist/storybook/assets/button-VxhoNhrV.js +0 -1
- package/dist/storybook/assets/check-box-BtCGePRy.js +0 -1
- package/dist/storybook/assets/drawer-BhuWxI7V.js +0 -3
- package/dist/storybook/assets/drawer-v-B4gIC0.css +0 -1
- package/dist/storybook/assets/file-button.stories-FOaiNPt-.js +0 -10
- package/dist/storybook/assets/file-input-BpMtsZ2S.js +0 -1
- package/dist/storybook/assets/footer.stories-Bl3gEVhY.js +0 -3
- package/dist/storybook/assets/form.stories-JRw9Y_sV.js +0 -49
- package/dist/storybook/assets/formation.stories-DNNvbCAo.js +0 -74
- package/dist/storybook/assets/iframe-DNtoVJNq.js +0 -2
- package/dist/storybook/assets/index-C_B8BHJN.js +0 -1
- package/dist/storybook/assets/input-BW9trNAW.js +0 -1
- package/dist/storybook/assets/input-WN7SK0fa.css +0 -1
- package/dist/storybook/assets/menu.stories-data-DeDnsKpk.js +0 -1
- package/dist/storybook/assets/message-BYzRg8Ae.js +0 -1
- package/dist/storybook/assets/message-nw5WQq6S.css +0 -1
- package/dist/storybook/assets/meta-content-B1HsACrT.css +0 -1
- package/dist/storybook/assets/meta-content-cbHGvPJ7.js +0 -9
- package/dist/storybook/assets/number-input-FjN2w5Zq.js +0 -4
- package/dist/storybook/assets/number-input.stories-CjeUb5EQ.js +0 -166
- package/dist/storybook/assets/option-dropdown.stories-CoLsSS95.js +0 -34
- package/dist/storybook/assets/popover.stories-BKImRt9k.js +0 -10
- package/dist/storybook/assets/projects.stories-BfMSNrkX.js +0 -47
- package/dist/storybook/assets/radio-button-YBwYcMaM.js +0 -1
- package/dist/storybook/assets/select-Br1k0mOD.js +0 -40
- package/dist/storybook/assets/select-Byh1FIvP.css +0 -1
- package/dist/storybook/assets/select.input-DIKP56UZ.js +0 -1
- package/dist/storybook/assets/side-bar-DvwMCSK0.css +0 -1
- package/dist/storybook/assets/slider-DAramr8j.js +0 -31
- package/dist/storybook/assets/table-CyYpP6Fs.css +0 -1
- package/dist/storybook/assets/table-DMsE4ks-.js +0 -86
- package/dist/storybook/assets/table.stories-data-CR9VpXHs.js +0 -1
- package/dist/storybook/assets/tabs-CAZ_dHGK.js +0 -1
- package/dist/storybook/assets/tabs.stories-DXcDAqB2.js +0 -30
- package/dist/storybook/assets/textarea-BV7xWEdt.js +0 -1
- package/dist/storybook/assets/textarea-DapBtyYV.css +0 -1
- package/dist/storybook/assets/toggle-CBpNgTrm.js +0 -1
- package/dist/storybook/assets/unit-input.stories-s45csxB3.js +0 -353
- package/dist/storybook/assets/unit-table.stories-DtWOiSyD.js +0 -152
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Context } from 'react';
|
|
|
3
3
|
import { CSSProperties } from 'react';
|
|
4
4
|
import { default as default_2 } from 'react';
|
|
5
5
|
import { DependencyList } from 'react';
|
|
6
|
+
import { ElementType as ElementType_2 } from 'react';
|
|
6
7
|
import { FocusEvent as FocusEvent_2 } from 'react';
|
|
7
8
|
import { FocusEventHandler } from 'react';
|
|
8
9
|
import { Id } from 'react-toastify';
|
|
@@ -240,7 +241,7 @@ declare interface ICheckBoxCell extends TCommonCell {
|
|
|
240
241
|
label?: string | null;
|
|
241
242
|
checked: boolean;
|
|
242
243
|
type: TCellType;
|
|
243
|
-
onChange:
|
|
244
|
+
onChange: TChangeEventHandler;
|
|
244
245
|
disabled?: boolean;
|
|
245
246
|
}
|
|
246
247
|
|
|
@@ -250,7 +251,7 @@ export declare interface ICheckBoxProps {
|
|
|
250
251
|
label?: string | null;
|
|
251
252
|
name?: string;
|
|
252
253
|
noMargin?: boolean;
|
|
253
|
-
onChange:
|
|
254
|
+
onChange: TChangeEventHandler;
|
|
254
255
|
tabIndex?: number;
|
|
255
256
|
disabled?: boolean;
|
|
256
257
|
small?: boolean;
|
|
@@ -405,7 +406,7 @@ export declare interface IFileButtonProps extends IButtonProps {
|
|
|
405
406
|
accept?: string;
|
|
406
407
|
multi?: boolean;
|
|
407
408
|
name?: string;
|
|
408
|
-
onChange?:
|
|
409
|
+
onChange?: TChangeEventHandler;
|
|
409
410
|
}
|
|
410
411
|
|
|
411
412
|
export declare interface IFileInputProps {
|
|
@@ -418,7 +419,7 @@ export declare interface IFileInputProps {
|
|
|
418
419
|
multi?: boolean;
|
|
419
420
|
name?: string;
|
|
420
421
|
width?: TStringOrNumber;
|
|
421
|
-
onChange?:
|
|
422
|
+
onChange?: TChangeEventHandler;
|
|
422
423
|
testId?: string;
|
|
423
424
|
}
|
|
424
425
|
|
|
@@ -493,7 +494,7 @@ declare interface IInputCell extends TCommonCell {
|
|
|
493
494
|
type: TCellType;
|
|
494
495
|
name?: string;
|
|
495
496
|
value?: TStringOrNumber;
|
|
496
|
-
onChange?:
|
|
497
|
+
onChange?: TChangeEventHandler;
|
|
497
498
|
onFocus?: (evt: default_2.FocusEvent<HTMLInputElement>) => void;
|
|
498
499
|
onBlur?: (evt: default_2.FocusEvent<HTMLInputElement>) => void;
|
|
499
500
|
onPaste?: default_2.ClipboardEventHandler<HTMLInputElement>;
|
|
@@ -523,7 +524,7 @@ export declare interface IInputProps {
|
|
|
523
524
|
tooltip?: TStringOrNumber | default_2.ReactNode;
|
|
524
525
|
name?: string;
|
|
525
526
|
type?: string;
|
|
526
|
-
onChange?:
|
|
527
|
+
onChange?: TChangeEventHandler;
|
|
527
528
|
onKeyPress?: default_2.KeyboardEventHandler<HTMLInputElement>;
|
|
528
529
|
onFocus?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
529
530
|
onBlur?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
@@ -773,14 +774,14 @@ declare interface IMenuSection {
|
|
|
773
774
|
inline?: boolean;
|
|
774
775
|
title?: string;
|
|
775
776
|
download?: boolean;
|
|
776
|
-
onChange?:
|
|
777
|
+
onChange?: TChangeEventHandler;
|
|
777
778
|
menu?: any;
|
|
778
779
|
visible?: boolean;
|
|
779
780
|
closeOnOptionClick?: boolean;
|
|
780
781
|
actions?: any[];
|
|
781
782
|
url?: string;
|
|
782
783
|
upload?: boolean;
|
|
783
|
-
component?:
|
|
784
|
+
component?: ElementType_2;
|
|
784
785
|
}
|
|
785
786
|
|
|
786
787
|
declare interface IMenuShowAllButton {
|
|
@@ -892,7 +893,7 @@ declare interface INumberInputCell extends TCommonCell {
|
|
|
892
893
|
name?: string;
|
|
893
894
|
value?: TStringOrNumber;
|
|
894
895
|
type: TCellType;
|
|
895
|
-
onChange?:
|
|
896
|
+
onChange?: TChangeEventHandler;
|
|
896
897
|
onFocus?: (evt: default_2.FocusEvent<HTMLInputElement>) => void;
|
|
897
898
|
onBlur?: (evt: default_2.FocusEvent<HTMLInputElement>) => void;
|
|
898
899
|
placeholder?: string;
|
|
@@ -903,9 +904,8 @@ declare interface INumberInputCell extends TCommonCell {
|
|
|
903
904
|
left?: boolean;
|
|
904
905
|
validationCallback?: TEmpty;
|
|
905
906
|
allowEmpty?: boolean;
|
|
906
|
-
enableCosmeticRounding: boolean;
|
|
907
907
|
enableDisplayRounding: boolean;
|
|
908
|
-
roundDisplayValue: (value:
|
|
908
|
+
roundDisplayValue: (value: TStringNumberNull) => TStringNumberNull;
|
|
909
909
|
}
|
|
910
910
|
|
|
911
911
|
export declare interface INumberInputProps {
|
|
@@ -919,7 +919,7 @@ export declare interface INumberInputProps {
|
|
|
919
919
|
small?: boolean;
|
|
920
920
|
width?: TStringOrNumber;
|
|
921
921
|
value?: TStringOrNumber;
|
|
922
|
-
onChange?:
|
|
922
|
+
onChange?: TChangeEventHandler;
|
|
923
923
|
onFocus?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
924
924
|
onBlur?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
925
925
|
tabIndex?: number;
|
|
@@ -932,9 +932,8 @@ export declare interface INumberInputProps {
|
|
|
932
932
|
allowEmpty?: boolean;
|
|
933
933
|
isInTable?: boolean;
|
|
934
934
|
groupOrder?: any;
|
|
935
|
-
enableCosmeticRounding?: boolean;
|
|
936
935
|
enableDisplayRounding?: boolean;
|
|
937
|
-
roundDisplayValue?: (args:
|
|
936
|
+
roundDisplayValue?: (args: TStringNumberNull) => TStringNumberNull;
|
|
938
937
|
disableInternalErrorValidationMessages?: boolean;
|
|
939
938
|
}
|
|
940
939
|
|
|
@@ -942,10 +941,7 @@ export declare interface IOptionDropdownProps {
|
|
|
942
941
|
name?: string;
|
|
943
942
|
label: string;
|
|
944
943
|
options: IOptionType[];
|
|
945
|
-
onChange:
|
|
946
|
-
name?: string;
|
|
947
|
-
value: IOptionType[];
|
|
948
|
-
}>) => void;
|
|
944
|
+
onChange: TChangeEventHandler;
|
|
949
945
|
showHeader?: boolean;
|
|
950
946
|
maxHeight?: string;
|
|
951
947
|
}
|
|
@@ -991,7 +987,7 @@ declare interface IPaginationOptionType {
|
|
|
991
987
|
}
|
|
992
988
|
|
|
993
989
|
declare interface IPaginationPerPageType {
|
|
994
|
-
onChange?:
|
|
990
|
+
onChange?: TChangeEventHandler;
|
|
995
991
|
options?: IPaginationOptionType[];
|
|
996
992
|
value?: TStringOrNumber;
|
|
997
993
|
}
|
|
@@ -1088,7 +1084,7 @@ export declare interface IRadioButtonProps {
|
|
|
1088
1084
|
inline?: boolean;
|
|
1089
1085
|
disabled?: boolean;
|
|
1090
1086
|
small?: boolean;
|
|
1091
|
-
onChange?:
|
|
1087
|
+
onChange?: TChangeEventHandler;
|
|
1092
1088
|
noMargin?: boolean;
|
|
1093
1089
|
mainLabel?: string;
|
|
1094
1090
|
onClick?: (target: HTMLInputElement) => void;
|
|
@@ -1135,7 +1131,7 @@ declare interface ISelectCell extends TCommonCell {
|
|
|
1135
1131
|
type: TCellType;
|
|
1136
1132
|
name?: string;
|
|
1137
1133
|
value?: TStringOrNumber;
|
|
1138
|
-
onChange?:
|
|
1134
|
+
onChange?: TChangeEventHandler;
|
|
1139
1135
|
onCreate?: (ev: any) => void;
|
|
1140
1136
|
error?: StringNumberOrNode;
|
|
1141
1137
|
warning?: StringNumberOrNode;
|
|
@@ -1158,7 +1154,7 @@ export declare interface ISelectProps {
|
|
|
1158
1154
|
options?: ISelectSelectedOption[];
|
|
1159
1155
|
value?: any;
|
|
1160
1156
|
native?: boolean;
|
|
1161
|
-
onChange?:
|
|
1157
|
+
onChange?: TChangeEventHandler;
|
|
1162
1158
|
deprecatedEventHandler?: boolean;
|
|
1163
1159
|
autoScroll?: boolean;
|
|
1164
1160
|
warning?: TStringOrNumber | ReactNode;
|
|
@@ -1215,7 +1211,7 @@ declare interface ISliderCell extends TCommonCell {
|
|
|
1215
1211
|
max: number;
|
|
1216
1212
|
step?: number;
|
|
1217
1213
|
marks?: TSliderMark[];
|
|
1218
|
-
onChange:
|
|
1214
|
+
onChange: TChangeEventHandler;
|
|
1219
1215
|
showArrows?: boolean;
|
|
1220
1216
|
showTooltip?: boolean;
|
|
1221
1217
|
tooltipFormatter?: (value: any) => any;
|
|
@@ -1243,13 +1239,7 @@ export declare interface ISliderProps {
|
|
|
1243
1239
|
width?: string;
|
|
1244
1240
|
height?: string;
|
|
1245
1241
|
};
|
|
1246
|
-
onChange:
|
|
1247
|
-
target: {
|
|
1248
|
-
name?: string;
|
|
1249
|
-
value: number | number[];
|
|
1250
|
-
label?: TStringNumberNull | ReactNode;
|
|
1251
|
-
};
|
|
1252
|
-
}) => void;
|
|
1242
|
+
onChange: TChangeEventHandler;
|
|
1253
1243
|
}
|
|
1254
1244
|
|
|
1255
1245
|
export declare type ISmartUploadModalProps = {
|
|
@@ -1385,7 +1375,7 @@ export declare interface ITabsProps {
|
|
|
1385
1375
|
options?: ITabOption[] | null;
|
|
1386
1376
|
children?: any;
|
|
1387
1377
|
value?: ITabSelectedOption;
|
|
1388
|
-
onChange?:
|
|
1378
|
+
onChange?: TChangeEventHandler;
|
|
1389
1379
|
padding?: boolean;
|
|
1390
1380
|
margin?: boolean;
|
|
1391
1381
|
contentPadding?: boolean;
|
|
@@ -1402,7 +1392,7 @@ export declare interface ITextAreaProps {
|
|
|
1402
1392
|
cols?: number;
|
|
1403
1393
|
rows?: number;
|
|
1404
1394
|
disabled?: boolean;
|
|
1405
|
-
onChange?:
|
|
1395
|
+
onChange?: TChangeEventHandler<HTMLTextAreaElement>;
|
|
1406
1396
|
onKeyPress?: (evt: KeyboardEvent_2<HTMLTextAreaElement>) => void;
|
|
1407
1397
|
onFocus?: (evt: FocusEvent_2<HTMLTextAreaElement>) => void;
|
|
1408
1398
|
onBlur?: (evt: FocusEvent_2<HTMLTextAreaElement>) => void;
|
|
@@ -1453,7 +1443,7 @@ export declare interface IToggleProps {
|
|
|
1453
1443
|
disabled?: boolean;
|
|
1454
1444
|
display?: string;
|
|
1455
1445
|
small?: boolean;
|
|
1456
|
-
onChange:
|
|
1446
|
+
onChange: TChangeEventHandler;
|
|
1457
1447
|
noMargin?: boolean;
|
|
1458
1448
|
testId?: string;
|
|
1459
1449
|
helpText?: string;
|
|
@@ -1588,14 +1578,11 @@ export declare interface IUnitInputProps {
|
|
|
1588
1578
|
disabledValidation?: boolean;
|
|
1589
1579
|
allowEmpty?: boolean;
|
|
1590
1580
|
autoValue?: string;
|
|
1591
|
-
onChange
|
|
1581
|
+
onChange?: (event: TChangeEvent | ICustomChangeEvent) => void;
|
|
1592
1582
|
onSwitchUnit?: (unit: string) => void;
|
|
1593
1583
|
onClick?: MouseEventHandler<HTMLInputElement>;
|
|
1594
1584
|
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
1595
1585
|
unitTemplate?: Record<string, any>;
|
|
1596
|
-
convertBackToStorageUnit?: boolean;
|
|
1597
|
-
enableCosmeticRounding?: boolean;
|
|
1598
|
-
enableDisplayRounding?: boolean;
|
|
1599
1586
|
}
|
|
1600
1587
|
|
|
1601
1588
|
declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
|
|
@@ -1677,7 +1664,7 @@ export declare const Modal: ({ children, visible, centered, width, onEnter, onEs
|
|
|
1677
1664
|
|
|
1678
1665
|
export declare const NativeSelect: ({ disabled, error, warning, tooltip, options, onChange, onFocus, onBlur, right, small, tabIndex, selectedOption, width, groupOrder, testId, isInTable, clearable, placeholder, hasNonExistentValue, maxTooltipWidth, borderRadius, }: INativeSelectProps) => JSX_2.Element;
|
|
1679
1666
|
|
|
1680
|
-
export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, onBlur, tabIndex, testId, tooltip, warning, validationCallback, allowEmpty, isInTable, groupOrder,
|
|
1667
|
+
export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, onBlur, tabIndex, testId, tooltip, warning, validationCallback, allowEmpty, isInTable, groupOrder, enableDisplayRounding, roundDisplayValue, disableInternalErrorValidationMessages, }: INumberInputProps) => JSX_2.Element;
|
|
1681
1668
|
|
|
1682
1669
|
export declare const OptionDropdown: ({ name, label, options, onChange, showHeader, maxHeight, }: IOptionDropdownProps) => ReactElement;
|
|
1683
1670
|
|
|
@@ -1746,6 +1733,19 @@ declare type TCellShape = IPopoverCell | IStaticCell | ISelectCell | IHelpIconCe
|
|
|
1746
1733
|
|
|
1747
1734
|
declare type TCellType = 'Static' | 'Icon' | 'Select' | 'Input' | 'NumberInput' | 'Popover' | 'CheckBox' | 'Actions' | 'Link' | 'Slider' | 'Unit' | string;
|
|
1748
1735
|
|
|
1736
|
+
export declare type TChangeEvent<T extends HTMLElement = HTMLInputElement> = ChangeEvent<T> & {
|
|
1737
|
+
target: T | {
|
|
1738
|
+
name: string;
|
|
1739
|
+
value: any;
|
|
1740
|
+
label?: string;
|
|
1741
|
+
files?: FileList | null;
|
|
1742
|
+
};
|
|
1743
|
+
};
|
|
1744
|
+
|
|
1745
|
+
export declare type TChangeEventHandler<T extends HTMLElement = HTMLInputElement> = (event: TChangeEvent<T>, ...additionalProps: {
|
|
1746
|
+
[key: string]: any;
|
|
1747
|
+
}[]) => void;
|
|
1748
|
+
|
|
1749
1749
|
export declare type TColor = 'danger' | 'red' | 'white' | 'success' | 'green' | 'muted';
|
|
1750
1750
|
|
|
1751
1751
|
declare interface TCommonCell {
|
|
@@ -1860,7 +1860,7 @@ declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTabl
|
|
|
1860
1860
|
|
|
1861
1861
|
declare type UnitContextType = any;
|
|
1862
1862
|
|
|
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,
|
|
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, }: IUnitInputProps) => JSX_2.Element;
|
|
1864
1864
|
|
|
1865
1865
|
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
|
|
1866
1866
|
|
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-CnfDrmnZ.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-BpSdrNXy.css"></head><body><div id="content"></div></body>
|