@oliasoft-open-source/react-ui-library 4.7.0-beta-1 → 4.7.0-beta-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/README.md +12 -11
- package/dist/assets/{index-AkeNwthw.css → index-dOfLgtRX.css} +226 -183
- package/dist/assets/{index-neKlYvgy.js → index-ffnttoim.js} +285 -147
- package/dist/global.css +226 -183
- package/dist/index.d.ts +132 -22
- package/dist/index.html +1 -1
- package/dist/index.js +754 -391
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/Color-6VNJS4EI-5mv-gOfo.js +1 -0
- package/dist/storybook/assets/DocsRenderer-NNNQARDV-WaSwS_18.js +1 -0
- package/dist/storybook/assets/WithTooltip-V3YHNWJZ-Dlt0G_eH.js +1 -0
- package/dist/storybook/assets/{accordion-6_27SROY.js → accordion-M-sY23Hd.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-Uipdifbl.js → accordion.stories-BbpRXaiJ.js} +2 -2
- package/dist/storybook/assets/actions-MkrpU3sl.js +1 -0
- package/dist/storybook/assets/actions-_FIB7bOt.css +1 -0
- package/dist/storybook/assets/actions.stories-9i52_Rux.js +1 -0
- package/dist/storybook/assets/afe.stories-U0-W5U64.js +88 -0
- package/dist/storybook/assets/badge.stories--T9ak5cr.js +1 -0
- package/dist/storybook/assets/blowout.stories-G-gAIxfk.js +40 -0
- package/dist/storybook/assets/button-MXXjI7Bb.js +1 -0
- package/dist/storybook/assets/{button-group-q8QKkLVU.js → button-group-f5VgIRsa.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-tLZpLTfD.js → button-group.stories-C7TuTTy6.js} +2 -2
- package/dist/storybook/assets/button.stories-rq3SXBTn.js +80 -0
- package/dist/storybook/assets/{buttons-and-links-gkg6hOs-.js → buttons-and-links-VQgmPqVJ.js} +2 -2
- package/dist/storybook/assets/card.stories-pCYBc-Vt.js +1 -0
- package/dist/storybook/assets/casing-loads.stories-gq4jb1p0.js +209 -0
- package/dist/storybook/assets/cell.stories-ycwhWlIa.js +245 -0
- package/dist/storybook/assets/{check-box-LZdXXKhv.js → check-box-w174Mu0R.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-0XCykxnz.js → check-box.stories-72A4TN39.js} +2 -2
- package/dist/storybook/assets/{chunk-HLWAVYOI-YF156CNQ.js → chunk-HLWAVYOI-_b1tlWM3.js} +1 -1
- package/dist/storybook/assets/color-cEzs-xnA.js +25 -0
- package/dist/storybook/assets/{column.stories-6OLsjlcP.js → column.stories-U4nQqgWb.js} +7 -7
- package/dist/storybook/assets/dialog-u5m1F-lX.js +1 -0
- package/dist/storybook/assets/{drawer-WuErQ5Z8.js → drawer-was2OGqf.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-RFRPs_pQ.js → drawer.stories-euYpu-I_.js} +4 -4
- package/dist/storybook/assets/empty.stories-T-_CrIhL.js +1 -0
- 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-eknsj_Ll.js → field-fx75Y95f.js} +1 -1
- package/dist/storybook/assets/{field.stories-RmhJ16HT.js → field.stories-2Qckj9Ou.js} +5 -5
- package/dist/storybook/assets/file-button.stories-0zVuRMcp.js +10 -0
- package/dist/storybook/assets/file-input-fzEQtraw.js +1 -0
- package/dist/storybook/assets/file-input.stories-P1T12gxg.js +66 -0
- package/dist/storybook/assets/{flex.stories-lLz0Xrt_.js → flex.stories-Vlk77f1V.js} +2 -2
- package/dist/storybook/assets/footer.stories-OOGCWJOv.js +3 -0
- package/dist/storybook/assets/form.stories-NIwGiDxn.js +49 -0
- package/dist/storybook/assets/formation.stories-1BHk-Z5n.js +74 -0
- package/dist/storybook/assets/{formatter-SWP5E3XI-uJi-Y6Jy.js → formatter-SWP5E3XI-lPjnxviv.js} +1 -1
- package/dist/storybook/assets/{heading-Bk0bpNfe.js → heading-CRsqGmBL.js} +1 -1
- package/dist/storybook/assets/{heading.stories-HLMPkIPo.js → heading.stories-i7xajcE_.js} +2 -2
- package/dist/storybook/assets/{help-icon--rUDxLUD.js → help-icon-DUhtRK0A.js} +1 -1
- package/dist/storybook/assets/help-icon.stories-FyPetqQr.js +4 -0
- package/dist/storybook/assets/icon-8EQazuuW.js +8 -0
- package/dist/storybook/assets/icon.stories-j-b_Exev.js +6 -0
- package/dist/storybook/assets/iframe-7Gvk33Dy.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-VSx05S_2.js +14 -0
- package/dist/storybook/assets/{index-_waogfzH.js → index-xs8f072L.js} +20 -20
- package/dist/storybook/assets/index.es-VXFRDikp.js +79 -0
- package/dist/storybook/assets/inheritsLoose-8sb_A2v4.js +1 -0
- package/dist/storybook/assets/{input-group.stories-WljyIQ0a.js → input-group.stories-6EUjHyss.js} +5 -5
- package/dist/storybook/assets/{input-validation-XFS-LWhH.js → input-validation-fn2c7CZI.js} +2 -2
- package/dist/storybook/assets/{input-u1He-wWs.js → input-vzl5J-q1.js} +1 -1
- package/dist/storybook/assets/{input.stories-rLdDRxtU.js → input.stories-rTyGPzfX.js} +1 -1
- package/dist/storybook/assets/{inputs-vo_nTpyh.js → inputs-4CE3Qz8f.js} +14 -14
- package/dist/storybook/assets/{isPlainObject-4RuU_w9g.js → isPlainObject-OQlD0fAV.js} +1 -1
- package/dist/storybook/assets/{label-0_Qf6I8t.js → label-CezqEpI3.js} +1 -1
- package/dist/storybook/assets/label.stories-niFJlzWW.js +11 -0
- package/dist/storybook/assets/layout-forms-hnqEzhUh.js +16 -0
- package/dist/storybook/assets/{layout-general-QgIJDQ4H.js → layout-general-GKzWTVlq.js} +2 -2
- package/dist/storybook/assets/list-obj4NAnI.js +8 -0
- package/dist/storybook/assets/{list.stories-data-IcFu6vvd.js → list.stories-data-xxLjz2Y6.js} +1 -1
- package/dist/storybook/assets/list.stories-q5ZUuhM_.js +478 -0
- package/dist/storybook/assets/{loader.stories-0OwmnNML.js → loader.stories-UWhF9bJF.js} +5 -5
- package/dist/storybook/assets/menu.stories-y0NlwAvu.js +82 -0
- package/dist/storybook/assets/{message-uMHaTEXV.js → message-CRKuTfOl.js} +1 -1
- package/dist/storybook/assets/{message.stories-CDgUaLZP.js → message.stories-iT_DKpjU.js} +2 -2
- package/dist/storybook/assets/meta-content-dR7AAq04.css +1 -0
- package/dist/storybook/assets/meta-content-egPJiNdW.js +1 -0
- package/dist/storybook/assets/modal.stories-VOY0gBdV.js +200 -0
- package/dist/storybook/assets/number-input-yoDwXp2C.js +1 -0
- package/dist/storybook/assets/number-input.stories-QRbtwUKs.js +153 -0
- package/dist/storybook/assets/objectWithoutPropertiesLoose-9Q1jwsKS.js +1 -0
- package/dist/storybook/assets/option-dropdown.stories-hrDlMrbm.js +21 -0
- package/dist/storybook/assets/{padding-and-spacing-J_Zb8SJm.js → padding-and-spacing-J0l6qP8c.js} +1 -1
- package/dist/storybook/assets/page.stories--jUrPw0e.js +57 -0
- package/dist/storybook/assets/{pagination-5n5spTRo.js → pagination-APbPWlVY.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-g4a-aSxq.js → pagination.stories-r3XGZlP9.js} +1 -1
- package/dist/storybook/assets/pop-confirm.stories-pXKS5ukj.js +9 -0
- package/dist/storybook/assets/popover-ZJGe9jlj.js +1 -0
- package/dist/storybook/assets/popover.stories-2K90u4uo.js +10 -0
- package/dist/storybook/assets/{portal.stories-UGkzdgVk.js → portal.stories-1Jnj3LXz.js} +1 -1
- package/dist/storybook/assets/preview-BYvKcpdH.js +7 -0
- package/dist/storybook/assets/preview-OnO0tzRj.js +17 -0
- package/dist/storybook/assets/{preview-WIFbPoA-.js → preview-vq7_vD2k.js} +13 -13
- package/dist/storybook/assets/projects.stories-LB28sKC4.js +47 -0
- package/dist/storybook/assets/{radio-button-jHcwHUA4.js → radio-button-9Xi1TwWI.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-LkCJsp5P.js → radio-button.stories-7dkCcpUZ.js} +5 -5
- package/dist/storybook/assets/react-router-dom-EZH1n7K1.js +8 -0
- package/dist/storybook/assets/{reservoirs.stories-hhPblhmv.js → reservoirs.stories-f7usYIda.js} +2 -2
- package/dist/storybook/assets/{rich-text-input.stories-7UzvJ-A1.js → rich-text-input.stories-YWaiFQEd.js} +1 -1
- package/dist/storybook/assets/row.stories-wtewEk0Z.js +130 -0
- package/dist/storybook/assets/select-Bp8YY8Ze.js +1 -0
- package/dist/storybook/assets/{select.stories-qFDyxRFm.js → select.stories-RjqGVn2g.js} +1 -1
- package/dist/storybook/assets/side-bar-V0uxIghC.js +1 -0
- package/dist/storybook/assets/side-bar.stories-rKoL8lrf.js +1 -0
- package/dist/storybook/assets/{site.stories-QHCzFOnt.js → site.stories-nwcDZZdB.js} +2 -2
- package/dist/storybook/assets/slider-0HIxE6AZ.js +7 -0
- package/dist/storybook/assets/slider.stories-9wM3WmDC.js +171 -0
- package/dist/storybook/assets/smart-upload-modal.stories-Lqh7FFLe.js +25 -0
- package/dist/storybook/assets/spacer.stories-4n4RL13L.js +1 -0
- package/dist/storybook/assets/syntaxhighlighter-B5GMVT5T-jJ-aXkjr.js +1 -0
- package/dist/storybook/assets/table-smKT-hbF.css +1 -0
- package/dist/storybook/assets/table-tDId3FKL.js +1 -0
- package/dist/storybook/assets/{table.stories-tEvulp9K.js → table.stories-N07QxfiK.js} +94 -18
- package/dist/storybook/assets/table.stories-data-6LXl4zwR.js +1 -0
- 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-gxvxVBdC.js → textarea-c5fYK9-8.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-MZHVAwSx.js → textarea.stories-soUP2Yhm.js} +1 -1
- package/dist/storybook/assets/tiny-invariant-R4kOKlvx.js +8 -0
- package/dist/storybook/assets/title.stories-MKmiziEV.js +37 -0
- package/dist/storybook/assets/{toaster-eOozfa7U.js → toaster-yPcd4ELJ.js} +1 -1
- package/dist/storybook/assets/toaster.stories-Na9wGy65.js +86 -0
- package/dist/storybook/assets/{toggle-BPI2y-lU.js → toggle-gxvny8zu.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-aVmjpons.js → toggle.stories-_Qd5Xk1K.js} +2 -2
- package/dist/storybook/assets/{tooltip-HEHiU__l.js → tooltip-pjcB4ZxN.js} +2 -2
- package/dist/storybook/assets/{tooltip.stories-tiOgoWHH.js → tooltip.stories-YJfYxnb3.js} +1 -1
- package/dist/storybook/assets/tooltip.test-case.stories-ZUrHDklJ.js +5 -0
- package/dist/storybook/assets/top-bar--h98E6oo.js +1 -0
- package/dist/storybook/assets/top-bar-K-LdFikH.css +1 -0
- package/dist/storybook/assets/top-bar.stories-eahNLSjM.js +21 -0
- package/dist/storybook/assets/top-bar.testcase.stories-AbbFHB0-.js +30 -0
- package/dist/storybook/assets/tree-U4LtpVm9.css +1 -0
- package/dist/storybook/assets/tree.stories-JyczIgiP.js +182 -0
- package/dist/storybook/assets/unit-input-OT-AqIIa.css +1 -0
- package/dist/storybook/assets/unit-input.stories-diwgawFe.js +349 -0
- package/dist/storybook/assets/unit-table.stories-6agZ80lN.js +150 -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 +10 -9
- package/dist/storybook/assets/Color-6VNJS4EI-NPUHt_3q.js +0 -1
- package/dist/storybook/assets/DocsRenderer-NNNQARDV-HIEKjKKN.js +0 -1
- package/dist/storybook/assets/WithTooltip-4HIR6TLV-XVy3Qn7b.js +0 -1
- package/dist/storybook/assets/actions-W12osUP0.css +0 -1
- package/dist/storybook/assets/actions-Z9jDWreP.js +0 -1
- package/dist/storybook/assets/actions.stories-Qrio9EMy.js +0 -1
- package/dist/storybook/assets/afe.stories-mangk6LB.js +0 -88
- package/dist/storybook/assets/badge.stories-C0MXS15j.js +0 -1
- package/dist/storybook/assets/blowout.stories-i7Ii3760.js +0 -40
- package/dist/storybook/assets/button-7V8oA22w.js +0 -1
- package/dist/storybook/assets/button.stories-PhWmZXOu.js +0 -71
- package/dist/storybook/assets/card.stories-HzHJW6ek.js +0 -1
- package/dist/storybook/assets/casing-loads.stories-4eIPrrhL.js +0 -209
- package/dist/storybook/assets/cell.stories-X4sboJCw.js +0 -212
- package/dist/storybook/assets/color-PIYd2VAw.js +0 -25
- package/dist/storybook/assets/dialog-WKHRZcjc.js +0 -1
- package/dist/storybook/assets/empty.stories-lva3DbfI.js +0 -1
- package/dist/storybook/assets/extends-dGVwEr9R.js +0 -1
- package/dist/storybook/assets/file-input.stories-SF8BeFpu.js +0 -66
- package/dist/storybook/assets/footer.stories-L0qQuABW.js +0 -3
- package/dist/storybook/assets/form.stories-qQsjBbOk.js +0 -49
- package/dist/storybook/assets/formation.stories-E8DV_cIY.js +0 -74
- package/dist/storybook/assets/help-icon.stories-vifwJgNA.js +0 -4
- package/dist/storybook/assets/icon-y1a2N5SZ.js +0 -8
- package/dist/storybook/assets/icon.stories-W-UgTWyK.js +0 -6
- package/dist/storybook/assets/iframe-NU_z28D3.js +0 -7
- package/dist/storybook/assets/index-IQMsp8Ab.js +0 -14
- package/dist/storybook/assets/index-gM75B7fB.js +0 -8
- package/dist/storybook/assets/index.es-JXn3JM7k.js +0 -86
- package/dist/storybook/assets/inheritsLoose-Y9jOMJLd.js +0 -1
- package/dist/storybook/assets/label.stories-aXdU5_Ql.js +0 -11
- package/dist/storybook/assets/layout-forms-w8JJQQqh.js +0 -16
- package/dist/storybook/assets/list-8l-RGDgw.js +0 -8
- package/dist/storybook/assets/list-heading-Vd3hu5Pf.js +0 -1
- package/dist/storybook/assets/list-heading-Y8BAUuV6.css +0 -1
- package/dist/storybook/assets/list.stories-Vp0Dm7UU.js +0 -457
- package/dist/storybook/assets/menu.stories-VwRF_Pbx.js +0 -60
- package/dist/storybook/assets/modal.stories-15sY1c5H.js +0 -173
- package/dist/storybook/assets/number-input-SvjJIGsW.js +0 -1
- package/dist/storybook/assets/number-input.stories-BURENIFo.js +0 -81
- package/dist/storybook/assets/option-dropdown.stories-Q2zd2AcS.js +0 -21
- package/dist/storybook/assets/page.stories-pa-9WU0e.js +0 -57
- package/dist/storybook/assets/pop-confirm.stories-_agvSFJd.js +0 -9
- package/dist/storybook/assets/popover-Y3FpGdUS.js +0 -1
- package/dist/storybook/assets/popover.stories-b7Tt4S0j.js +0 -1
- package/dist/storybook/assets/preview-D7BEK6_6.js +0 -7
- package/dist/storybook/assets/preview-Fi7DQdoQ.js +0 -1
- package/dist/storybook/assets/projects.stories-YPlCLdRE.js +0 -47
- package/dist/storybook/assets/row.stories-juQv80h3.js +0 -122
- package/dist/storybook/assets/select-JjEPivho.js +0 -1
- package/dist/storybook/assets/side-bar-Fjr2t9MT.js +0 -1
- package/dist/storybook/assets/side-bar.stories-sxBJCVnV.js +0 -1
- package/dist/storybook/assets/slider-nl2rJ9LF.js +0 -7
- package/dist/storybook/assets/slider.stories--aZa8kf-.js +0 -127
- package/dist/storybook/assets/spacer.stories-eCrKj4b3.js +0 -1
- package/dist/storybook/assets/syntaxhighlighter-NMPM6SWI--OA96ou_.js +0 -1
- package/dist/storybook/assets/table-PWodWi0p.css +0 -1
- package/dist/storybook/assets/table-i8WT9qpj.js +0 -1
- package/dist/storybook/assets/table.stories-data-4h6h0P0V.js +0 -1
- package/dist/storybook/assets/text-link.stories-kjfUeFtk.js +0 -1
- package/dist/storybook/assets/title.stories-cmteB9lx.js +0 -37
- package/dist/storybook/assets/toaster.stories-S25S4g_F.js +0 -86
- package/dist/storybook/assets/tooltip.test-case.stories-kIeZayHw.js +0 -3
- package/dist/storybook/assets/top-bar-9iOkm7Gq.js +0 -1
- package/dist/storybook/assets/top-bar-cBtxm6yr.css +0 -1
- package/dist/storybook/assets/top-bar.stories-5jcHi3Q_.js +0 -1
- package/dist/storybook/assets/top-bar.testcase.stories-7acJvLc_.js +0 -30
- package/dist/storybook/assets/tree-zmq4MRb6.css +0 -1
- package/dist/storybook/assets/tree.stories-_5t-Rrls.js +0 -128
- package/dist/storybook/assets/unit-input-qBUtqoTb.css +0 -1
- package/dist/storybook/assets/unit-input.stories-j3Ykteob.js +0 -273
- package/dist/storybook/assets/unit-table.stories-4XYwgJwY.js +0 -100
package/dist/index.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export declare enum BreadcrumbLinkType {
|
|
|
41
41
|
CUSTOM = "custom"
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export declare const Button: ({ active, basic, colored, disabled, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip, inverted, }: IButtonProps) => JSX_2.Element;
|
|
44
|
+
export declare const Button: ({ active, basic, colored, disabled, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip, inverted, component: Component, url, }: IButtonProps) => JSX_2.Element;
|
|
45
45
|
|
|
46
46
|
export declare const ButtonGroup: (props: IButtonGroupProps) => JSX_2.Element;
|
|
47
47
|
|
|
@@ -92,6 +92,8 @@ export declare const Empty: ({ width, height, text, children, testId, }: IEmptyP
|
|
|
92
92
|
|
|
93
93
|
export declare const Field: ({ label, labelLeft, labelWidth, children, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, testId, }: IFieldProps) => JSX_2.Element;
|
|
94
94
|
|
|
95
|
+
export declare const FileButton: ({ file, accept, multi, name, disabled, onChange, ...buttonProps }: IFileButtonProps) => JSX_2.Element;
|
|
96
|
+
|
|
95
97
|
export declare const FileInput: ({ label, loading, placeholder, disabled, file, accept, multi, name, width, onChange, testId, }: IFileInputProps) => ReactElement;
|
|
96
98
|
|
|
97
99
|
export declare const Flex: ({ alignItems, justifyContent, direction, height, children, wrap, gap, }: IFlexProps) => JSX_2.Element;
|
|
@@ -220,6 +222,8 @@ export declare interface IButtonProps {
|
|
|
220
222
|
testId?: string;
|
|
221
223
|
tooltip?: ReactNode | string;
|
|
222
224
|
inverted?: boolean;
|
|
225
|
+
component?: React_2.ElementType;
|
|
226
|
+
url?: string;
|
|
223
227
|
}
|
|
224
228
|
|
|
225
229
|
export declare interface ICardProps {
|
|
@@ -395,6 +399,14 @@ export declare interface IFieldProps {
|
|
|
395
399
|
testId?: string;
|
|
396
400
|
}
|
|
397
401
|
|
|
402
|
+
export declare interface IFileButtonProps extends IButtonProps {
|
|
403
|
+
file?: File;
|
|
404
|
+
accept?: string;
|
|
405
|
+
multi?: boolean;
|
|
406
|
+
name?: string;
|
|
407
|
+
onChange?: (evt: any) => void;
|
|
408
|
+
}
|
|
409
|
+
|
|
398
410
|
export declare interface IFileInputProps {
|
|
399
411
|
label?: string | null;
|
|
400
412
|
loading?: boolean;
|
|
@@ -481,6 +493,8 @@ declare interface IInputCell extends TCommonCell {
|
|
|
481
493
|
name?: string;
|
|
482
494
|
value?: TStringOrNumber;
|
|
483
495
|
onChange?: (ev: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
496
|
+
onFocus?: (evt: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
497
|
+
onBlur?: (evt: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
484
498
|
onPaste?: React_2.ClipboardEventHandler<HTMLInputElement>;
|
|
485
499
|
placeholder?: string;
|
|
486
500
|
error?: string;
|
|
@@ -510,8 +524,8 @@ export declare interface IInputProps {
|
|
|
510
524
|
type?: string;
|
|
511
525
|
onChange?: React_2.ChangeEventHandler<HTMLInputElement>;
|
|
512
526
|
onKeyPress?: React_2.KeyboardEventHandler<HTMLInputElement>;
|
|
513
|
-
onFocus?:
|
|
514
|
-
onBlur?:
|
|
527
|
+
onFocus?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
528
|
+
onBlur?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
515
529
|
onPaste?: React_2.ClipboardEventHandler<HTMLInputElement>;
|
|
516
530
|
small?: boolean;
|
|
517
531
|
placeholder?: string | null;
|
|
@@ -658,6 +672,7 @@ declare interface IListItem {
|
|
|
658
672
|
id?: TStringOrNumber;
|
|
659
673
|
type?: string;
|
|
660
674
|
metaCount?: number;
|
|
675
|
+
component?: React.ElementType;
|
|
661
676
|
}
|
|
662
677
|
|
|
663
678
|
export declare interface IListProps {
|
|
@@ -764,6 +779,7 @@ declare interface IMenuSection {
|
|
|
764
779
|
actions?: any[];
|
|
765
780
|
url?: string;
|
|
766
781
|
upload?: boolean;
|
|
782
|
+
component?: React.ElementType;
|
|
767
783
|
}
|
|
768
784
|
|
|
769
785
|
declare interface IMenuShowAllButton {
|
|
@@ -874,6 +890,8 @@ declare interface INumberInputCell extends TCommonCell {
|
|
|
874
890
|
value?: TStringOrNumber;
|
|
875
891
|
type: TCellType;
|
|
876
892
|
onChange?: (ev: any) => void;
|
|
893
|
+
onFocus?: (evt: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
894
|
+
onBlur?: (evt: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
877
895
|
placeholder?: string;
|
|
878
896
|
error?: string | boolean;
|
|
879
897
|
warning?: string | boolean;
|
|
@@ -882,6 +900,9 @@ declare interface INumberInputCell extends TCommonCell {
|
|
|
882
900
|
left?: boolean;
|
|
883
901
|
validationCallback?: TEmpty;
|
|
884
902
|
allowEmpty?: boolean;
|
|
903
|
+
enableCosmeticRounding: boolean;
|
|
904
|
+
enableDisplayRounding: boolean;
|
|
905
|
+
roundDisplayValue: (value: TStringNumberNull) => TStringNumberNull;
|
|
885
906
|
}
|
|
886
907
|
|
|
887
908
|
export declare interface INumberInputProps {
|
|
@@ -897,6 +918,7 @@ export declare interface INumberInputProps {
|
|
|
897
918
|
value?: TStringOrNumber;
|
|
898
919
|
onChange?: (evt: ChangeEvent<HTMLInputElement>) => void;
|
|
899
920
|
onFocus?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
921
|
+
onBlur?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
900
922
|
tabIndex?: number;
|
|
901
923
|
testId?: string;
|
|
902
924
|
tooltip?: TStringOrNumber | React_2.ReactNode;
|
|
@@ -907,6 +929,10 @@ export declare interface INumberInputProps {
|
|
|
907
929
|
allowEmpty?: boolean;
|
|
908
930
|
isInTable?: boolean;
|
|
909
931
|
groupOrder?: any;
|
|
932
|
+
enableCosmeticRounding?: boolean;
|
|
933
|
+
enableDisplayRounding?: boolean;
|
|
934
|
+
roundDisplayValue?: (args: TStringNumberNull) => TStringNumberNull;
|
|
935
|
+
disableInternalErrorValidationMessages?: boolean;
|
|
910
936
|
}
|
|
911
937
|
|
|
912
938
|
export declare interface IOptionDropdownProps {
|
|
@@ -925,7 +951,7 @@ declare interface IOptionItem {
|
|
|
925
951
|
label: ReactNode;
|
|
926
952
|
value: string;
|
|
927
953
|
icon: ReactNode;
|
|
928
|
-
onClick
|
|
954
|
+
onClick?: (evt: MouseEvent_2<HTMLAnchorElement, globalThis.MouseEvent>) => void;
|
|
929
955
|
isActive?: boolean;
|
|
930
956
|
isExperimental?: boolean;
|
|
931
957
|
invalid?: boolean;
|
|
@@ -1010,6 +1036,8 @@ export declare interface IPopoverProps {
|
|
|
1010
1036
|
testId?: string;
|
|
1011
1037
|
disabled?: boolean;
|
|
1012
1038
|
overflowContainer?: boolean;
|
|
1039
|
+
isOpen?: boolean;
|
|
1040
|
+
onToggle?: (isOpen: boolean) => void;
|
|
1013
1041
|
}
|
|
1014
1042
|
|
|
1015
1043
|
export declare interface IPortalProps {
|
|
@@ -1118,6 +1146,7 @@ declare interface ISelectCell extends TCommonCell {
|
|
|
1118
1146
|
deprecatedEventHandler?: boolean;
|
|
1119
1147
|
maxTooltipWidth?: TStringOrNumber;
|
|
1120
1148
|
autoLayerWidth?: boolean;
|
|
1149
|
+
multi?: boolean;
|
|
1121
1150
|
}
|
|
1122
1151
|
|
|
1123
1152
|
export declare interface ISelectProps {
|
|
@@ -1220,6 +1249,26 @@ export declare interface ISliderProps {
|
|
|
1220
1249
|
}) => void;
|
|
1221
1250
|
}
|
|
1222
1251
|
|
|
1252
|
+
export declare type ISmartUploadModalProps = {
|
|
1253
|
+
visible: boolean;
|
|
1254
|
+
prompt: string;
|
|
1255
|
+
onCloseModal: () => void;
|
|
1256
|
+
onUpload: (prompt: string, file: File) => any;
|
|
1257
|
+
onComplete: (data: {
|
|
1258
|
+
[key: string]: string;
|
|
1259
|
+
}[]) => void;
|
|
1260
|
+
onFailed?: () => void;
|
|
1261
|
+
onError?: (error: any) => void;
|
|
1262
|
+
width?: number;
|
|
1263
|
+
heading?: string;
|
|
1264
|
+
dialogText?: string;
|
|
1265
|
+
fileInputText?: string;
|
|
1266
|
+
fileInputPlaceholder?: string;
|
|
1267
|
+
uploadText?: string;
|
|
1268
|
+
cancelText?: string;
|
|
1269
|
+
testId?: string;
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1223
1272
|
declare interface ISortCell extends TCommonCell {
|
|
1224
1273
|
type: TCellType;
|
|
1225
1274
|
hasSort?: boolean;
|
|
@@ -1370,6 +1419,7 @@ export declare interface ITextLinkProps {
|
|
|
1370
1419
|
testId?: string;
|
|
1371
1420
|
onClick?: (e: React_2.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
1372
1421
|
children?: React_2.ReactNode;
|
|
1422
|
+
component?: React_2.ElementType;
|
|
1373
1423
|
}
|
|
1374
1424
|
|
|
1375
1425
|
export declare interface ITextProps {
|
|
@@ -1475,6 +1525,7 @@ declare interface ITreeListProps {
|
|
|
1475
1525
|
padding?: TStringOrNumber;
|
|
1476
1526
|
};
|
|
1477
1527
|
};
|
|
1528
|
+
onDrop?: (event: React_2.DragEvent<HTMLDivElement>) => void;
|
|
1478
1529
|
}[];
|
|
1479
1530
|
onClick?: TEmpty;
|
|
1480
1531
|
actions?: any[];
|
|
@@ -1494,6 +1545,18 @@ export declare interface ITreeProps {
|
|
|
1494
1545
|
expand: React_2.ReactNode;
|
|
1495
1546
|
collapse: React_2.ReactNode;
|
|
1496
1547
|
};
|
|
1548
|
+
allowParentReassignment?: boolean;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
declare interface IUnitConfigItem {
|
|
1552
|
+
onChange?: (params: {
|
|
1553
|
+
oldUnit: string;
|
|
1554
|
+
newUnit: string;
|
|
1555
|
+
unitKey: string;
|
|
1556
|
+
}) => void;
|
|
1557
|
+
unitKey: string;
|
|
1558
|
+
storageUnit: string;
|
|
1559
|
+
preferredUnit: string;
|
|
1497
1560
|
}
|
|
1498
1561
|
|
|
1499
1562
|
export declare interface IUnitInputProps {
|
|
@@ -1503,7 +1566,7 @@ export declare interface IUnitInputProps {
|
|
|
1503
1566
|
placeholder?: string;
|
|
1504
1567
|
disabled?: boolean;
|
|
1505
1568
|
disabledUnit?: boolean;
|
|
1506
|
-
error?: string |
|
|
1569
|
+
error?: string | boolean;
|
|
1507
1570
|
left?: boolean;
|
|
1508
1571
|
small?: boolean;
|
|
1509
1572
|
width?: string | number;
|
|
@@ -1513,15 +1576,12 @@ export declare interface IUnitInputProps {
|
|
|
1513
1576
|
noConversion?: boolean;
|
|
1514
1577
|
doNotConvertValue?: boolean;
|
|
1515
1578
|
testId?: string;
|
|
1516
|
-
warning?: string |
|
|
1579
|
+
warning?: string | boolean;
|
|
1517
1580
|
predefinedOptions?: IPredefinedOption[];
|
|
1518
1581
|
initialPredefinedOption?: boolean;
|
|
1519
1582
|
shouldLinkAutomaticly?: boolean;
|
|
1520
1583
|
selectedPredefinedOptionKey?: string;
|
|
1521
|
-
validationCallback?: (
|
|
1522
|
-
name: string;
|
|
1523
|
-
error: string | null;
|
|
1524
|
-
};
|
|
1584
|
+
validationCallback?: (params: IUnitInputValidationCallbackPayload) => void;
|
|
1525
1585
|
disabledValidation?: boolean;
|
|
1526
1586
|
allowEmpty?: boolean;
|
|
1527
1587
|
autoValue?: string;
|
|
@@ -1530,6 +1590,57 @@ export declare interface IUnitInputProps {
|
|
|
1530
1590
|
onClick?: MouseEventHandler<HTMLInputElement>;
|
|
1531
1591
|
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
1532
1592
|
unitTemplate?: Record<string, any>;
|
|
1593
|
+
convertBackToStorageUnit?: boolean;
|
|
1594
|
+
enableCosmeticRounding?: boolean;
|
|
1595
|
+
enableDisplayRounding?: boolean;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
declare interface IUnitInputValidationCallbackPayload {
|
|
1599
|
+
name: string | {
|
|
1600
|
+
fieldName: string;
|
|
1601
|
+
};
|
|
1602
|
+
error: string | null;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
|
|
1606
|
+
rows?: IUnitTableRow[];
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
declare interface IUnitTableCell {
|
|
1610
|
+
autoUnit: boolean;
|
|
1611
|
+
unitKey: string;
|
|
1612
|
+
formatDisplayValue?: (value: TStringNumberNull) => TStringNumberNull;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
declare interface IUnitTableInputCell extends IInputCell, IUnitTableCell {
|
|
1616
|
+
onChange: (args: any) => void;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
declare interface IUnitTableNumberInputCell extends INumberInputCell, IUnitTableCell {
|
|
1620
|
+
onChange: (args: any) => void;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
export declare interface IUnitTableOnChangeEvent extends React_2.ChangeEvent<HTMLInputElement> {
|
|
1624
|
+
target: EventTarget & HTMLInputElement & {
|
|
1625
|
+
rowIndex: number;
|
|
1626
|
+
cellIndex: number;
|
|
1627
|
+
unit: string;
|
|
1628
|
+
};
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
1632
|
+
table: IUnitTable;
|
|
1633
|
+
unitConfig: IUnitConfigItem[];
|
|
1634
|
+
convertBackToStorageUnit?: boolean;
|
|
1635
|
+
enableCosmeticRounding?: boolean;
|
|
1636
|
+
enableDisplayRounding?: boolean;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
|
|
1640
|
+
cells: TUnitTableCellShape[];
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
declare interface IUnitTableStaticCell extends IStaticCell, IUnitTableCell {
|
|
1533
1644
|
}
|
|
1534
1645
|
|
|
1535
1646
|
export declare const Label: ({ label, width, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, labelLeft, }: ILabelProps) => JSX_2.Element;
|
|
@@ -1570,7 +1681,7 @@ export declare const Modal: ({ children, visible, centered, width, onEnter, onEs
|
|
|
1570
1681
|
|
|
1571
1682
|
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;
|
|
1572
1683
|
|
|
1573
|
-
export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, tabIndex, testId, tooltip, warning, validationCallback, allowEmpty, isInTable, groupOrder, }: INumberInputProps) => JSX_2.Element;
|
|
1684
|
+
export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, onBlur, tabIndex, testId, tooltip, warning, validationCallback, allowEmpty, isInTable, groupOrder, enableCosmeticRounding, enableDisplayRounding, roundDisplayValue, disableInternalErrorValidationMessages, }: INumberInputProps) => JSX_2.Element;
|
|
1574
1685
|
|
|
1575
1686
|
export declare const OptionDropdown: ({ name, label, options, onChange, showHeader, maxHeight, }: IOptionDropdownProps) => ReactElement;
|
|
1576
1687
|
|
|
@@ -1580,7 +1691,7 @@ export declare const Pagination: ({ pagination }: IPaginationProps) => JSX_2.Ele
|
|
|
1580
1691
|
|
|
1581
1692
|
export declare const PopConfirm: ({ children, placement, closeOnOutsideClick, fullWidth, title, cancelText, onClickCancel, okText, onClickOk, disableConfirmButton, overflowContainer, testId, }: IPopConfirmProps) => JSX_2.Element;
|
|
1582
1693
|
|
|
1583
|
-
export declare const Popover: ({ children, content, placement, closeOnOutsideClick, fullWidth, showCloseButton, testId, disabled, overflowContainer, }: IPopoverProps) => JSX_2.Element;
|
|
1694
|
+
export declare const Popover: ({ children, content, placement, closeOnOutsideClick, fullWidth, showCloseButton, testId, disabled, overflowContainer, isOpen: externalIsOpen, onToggle: externalOnToggle, }: IPopoverProps) => JSX_2.Element;
|
|
1584
1695
|
|
|
1585
1696
|
export declare const Portal: ({ id, children }: IPortalProps) => ReactPortal | null;
|
|
1586
1697
|
|
|
@@ -1602,6 +1713,8 @@ export declare const SideBar: React_2.MemoExoticComponent<({ options, startOpen,
|
|
|
1602
1713
|
|
|
1603
1714
|
export declare const Slider: ({ name, label, width, labelWidth, value, min, max, step, marks, showArrows, showTooltip, tooltipFormatter, disabled, range, small, vertical, onChange, }: ISliderProps) => JSX_2.Element;
|
|
1604
1715
|
|
|
1716
|
+
export declare const SmartUploadModal: ({ visible, prompt, onCloseModal, onUpload, onComplete, onFailed, onError, width, heading, dialogText, fileInputText, fileInputPlaceholder, uploadText, cancelText, testId, }: ISmartUploadModalProps) => JSX_2.Element;
|
|
1717
|
+
|
|
1605
1718
|
export declare const Spacer: ({ height, width, flex, }: ISpacerProps) => JSX_2.Element;
|
|
1606
1719
|
|
|
1607
1720
|
export declare const Spinner: ({ small, colored, dark, tiny, }: ISpinnerProps) => JSX_2.Element;
|
|
@@ -1659,7 +1772,7 @@ export { Text_2 as Text }
|
|
|
1659
1772
|
|
|
1660
1773
|
export declare const TextArea: ({ name, value, placeholder, cols, rows, disabled, onChange, onKeyPress, onFocus, onBlur, tabIndex, error, warning, tooltip, maxTooltipWidth, resize, monospace, testId, }: ITextAreaProps) => JSX_2.Element;
|
|
1661
1774
|
|
|
1662
|
-
export declare const TextLink: ({ children, href, target, testId, onClick, }: ITextLinkProps) => JSX_2.Element;
|
|
1775
|
+
export declare const TextLink: ({ children, href, target, testId, onClick, component: Component, }: ITextLinkProps) => JSX_2.Element;
|
|
1663
1776
|
|
|
1664
1777
|
declare type TFileReaderMethod = TInputReaderMethods | string;
|
|
1665
1778
|
|
|
@@ -1685,6 +1798,7 @@ declare type TLinkElement = TBaseElementProps & {
|
|
|
1685
1798
|
url?: string;
|
|
1686
1799
|
active?: boolean;
|
|
1687
1800
|
disabled?: boolean;
|
|
1801
|
+
component?: React.ElementType;
|
|
1688
1802
|
};
|
|
1689
1803
|
|
|
1690
1804
|
export declare type TMenuCarat = 'false' | 'right' | 'down';
|
|
@@ -1710,7 +1824,7 @@ export declare const Tooltip: ({ children, text, error, placement, possiblePlace
|
|
|
1710
1824
|
|
|
1711
1825
|
export declare const TopBar: ({ title, appSwitcher, content, contentRight, warning, height, fixedPosition, }: ITopBarProps) => JSX_2.Element;
|
|
1712
1826
|
|
|
1713
|
-
export declare const Tree: ({ list, draggable, onListReorder, onChangeOpen, testId, isInitialOpen, treeRef, itemHasChild, onItemToggle, icons, }: ITreeProps) => JSX_2.Element;
|
|
1827
|
+
export declare const Tree: ({ list, draggable, onListReorder, onChangeOpen, testId, isInitialOpen, treeRef, itemHasChild, onItemToggle, icons, allowParentReassignment, }: ITreeProps) => JSX_2.Element;
|
|
1714
1828
|
|
|
1715
1829
|
export declare enum TriggerType {
|
|
1716
1830
|
TEXT = "Text",
|
|
@@ -1746,15 +1860,11 @@ declare type TTopBarContent = TLinkElement | TButtonElement | TMenuElement | TCo
|
|
|
1746
1860
|
|
|
1747
1861
|
export declare type TTriggerType = 'Text' | 'Button' | 'DropDownButton' | 'Component';
|
|
1748
1862
|
|
|
1749
|
-
|
|
1863
|
+
declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTableInputCell | IUnitTableNumberInputCell;
|
|
1864
|
+
|
|
1865
|
+
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;
|
|
1750
1866
|
|
|
1751
|
-
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit,
|
|
1752
|
-
table: any;
|
|
1753
|
-
unitConfig: any;
|
|
1754
|
-
convertBackToStorageUnit?: boolean | undefined;
|
|
1755
|
-
convertBackToString?: boolean | undefined;
|
|
1756
|
-
enableCosmeticRounding?: boolean | undefined;
|
|
1757
|
-
}) => JSX_2.Element;
|
|
1867
|
+
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
|
|
1758
1868
|
|
|
1759
1869
|
export declare const useFocus: () => UseFocusReturnType;
|
|
1760
1870
|
|
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-ffnttoim.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-dOfLgtRX.css"></head><body><div id="content"></div></body>
|