@oliasoft-open-source/react-ui-library 4.7.0-beta-1 → 4.7.0-beta-2
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 +131 -22
- package/dist/index.html +1 -1
- package/dist/index.js +751 -391
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/Color-6VNJS4EI-9rJemzwR.js +1 -0
- package/dist/storybook/assets/DocsRenderer-NNNQARDV-DP7bJ7AB.js +1 -0
- package/dist/storybook/assets/WithTooltip-V3YHNWJZ-eL_Uxnix.js +1 -0
- package/dist/storybook/assets/{accordion-6_27SROY.js → accordion-MRdNs3mQ.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-Uipdifbl.js → accordion.stories-Ytyr6tn2.js} +2 -2
- package/dist/storybook/assets/actions-Z1pyUd57.js +1 -0
- package/dist/storybook/assets/actions-_FIB7bOt.css +1 -0
- package/dist/storybook/assets/actions.stories-JWaU0QAA.js +1 -0
- package/dist/storybook/assets/afe.stories-Ad1-l25x.js +88 -0
- package/dist/storybook/assets/badge.stories-2BykvoFl.js +1 -0
- package/dist/storybook/assets/blowout.stories--vPM-KpE.js +40 -0
- package/dist/storybook/assets/button-UQO14biP.js +1 -0
- package/dist/storybook/assets/{button-group-q8QKkLVU.js → button-group-g7HxxHTn.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-tLZpLTfD.js → button-group.stories-hJ9V_va5.js} +2 -2
- package/dist/storybook/assets/button.stories-ihIU7iUf.js +80 -0
- package/dist/storybook/assets/{buttons-and-links-gkg6hOs-.js → buttons-and-links-fv_xHVqw.js} +2 -2
- package/dist/storybook/assets/card.stories-5YbTAbLy.js +1 -0
- package/dist/storybook/assets/casing-loads.stories-WfK3k-mh.js +209 -0
- package/dist/storybook/assets/cell.stories-Xy61z8ka.js +245 -0
- package/dist/storybook/assets/{check-box-LZdXXKhv.js → check-box-Q2GsbR79.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-0XCykxnz.js → check-box.stories-iQby_Dan.js} +2 -2
- package/dist/storybook/assets/{chunk-HLWAVYOI-YF156CNQ.js → chunk-HLWAVYOI-RXldIcZr.js} +1 -1
- package/dist/storybook/assets/color-5ySMclFt.js +25 -0
- package/dist/storybook/assets/{column.stories-6OLsjlcP.js → column.stories-NnQNzY18.js} +7 -7
- package/dist/storybook/assets/dialog-hHTtMGls.js +1 -0
- package/dist/storybook/assets/{drawer-WuErQ5Z8.js → drawer-ChY55ghN.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-RFRPs_pQ.js → drawer.stories-xv50_UKt.js} +4 -4
- package/dist/storybook/assets/empty.stories-dFjUCZln.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-jD6TclDQ.js} +1 -1
- package/dist/storybook/assets/{field.stories-RmhJ16HT.js → field.stories-CeHr9rXs.js} +5 -5
- package/dist/storybook/assets/file-button.stories-XxMjOBfe.js +10 -0
- package/dist/storybook/assets/file-input-A0eGNEgX.js +1 -0
- package/dist/storybook/assets/file-input.stories-dM7UFPVo.js +66 -0
- package/dist/storybook/assets/{flex.stories-lLz0Xrt_.js → flex.stories-6qFQFEL7.js} +2 -2
- package/dist/storybook/assets/footer.stories-4cSc0hBz.js +3 -0
- package/dist/storybook/assets/form.stories--Sgi1gUF.js +49 -0
- package/dist/storybook/assets/formation.stories-VUtbgcsq.js +74 -0
- package/dist/storybook/assets/{formatter-SWP5E3XI-uJi-Y6Jy.js → formatter-SWP5E3XI-qYj9Quey.js} +2 -2
- package/dist/storybook/assets/{heading-Bk0bpNfe.js → heading-FcNTpGhR.js} +1 -1
- package/dist/storybook/assets/{heading.stories-HLMPkIPo.js → heading.stories-0MJHBHcQ.js} +2 -2
- package/dist/storybook/assets/{help-icon--rUDxLUD.js → help-icon-D6ZGAbgL.js} +1 -1
- package/dist/storybook/assets/help-icon.stories-YZw5pFQt.js +4 -0
- package/dist/storybook/assets/{icon-y1a2N5SZ.js → icon-_m67DAr0.js} +3 -3
- package/dist/storybook/assets/icon.stories-2aZia1VV.js +6 -0
- package/dist/storybook/assets/iframe-oMAlwWd9.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-_waogfzH.js → index-RhTUHV_k.js} +20 -20
- package/dist/storybook/assets/index-VSx05S_2.js +14 -0
- package/dist/storybook/assets/index.es-HG2GUH9i.js +79 -0
- package/dist/storybook/assets/{input-u1He-wWs.js → input-fYKvBwPs.js} +1 -1
- package/dist/storybook/assets/{input-group.stories-WljyIQ0a.js → input-group.stories-ZBffPltv.js} +5 -5
- package/dist/storybook/assets/{input-validation-XFS-LWhH.js → input-validation-bb_81fGi.js} +2 -2
- package/dist/storybook/assets/{input.stories-rLdDRxtU.js → input.stories-Y5X-JFWU.js} +1 -1
- package/dist/storybook/assets/{inputs-vo_nTpyh.js → inputs-MxyGbJ9Y.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-dla_bzHj.js} +1 -1
- package/dist/storybook/assets/label.stories-t-e2pWHW.js +11 -0
- package/dist/storybook/assets/layout-forms-_uf7qzAu.js +16 -0
- package/dist/storybook/assets/{layout-general-QgIJDQ4H.js → layout-general-rHEcWCrx.js} +2 -2
- package/dist/storybook/assets/list-Nr0UfaUw.js +8 -0
- package/dist/storybook/assets/list.stories-K1nFEsjX.js +478 -0
- package/dist/storybook/assets/{list.stories-data-IcFu6vvd.js → list.stories-data-WlepbhE1.js} +1 -1
- package/dist/storybook/assets/{loader.stories-0OwmnNML.js → loader.stories-eEBGjVSN.js} +5 -5
- package/dist/storybook/assets/menu.stories-nx6w59Nv.js +82 -0
- package/dist/storybook/assets/{message-uMHaTEXV.js → message-bbAE2zjv.js} +1 -1
- package/dist/storybook/assets/{message.stories-CDgUaLZP.js → message.stories-RJI8haIH.js} +2 -2
- package/dist/storybook/assets/meta-content-073TGkSN.js +1 -0
- package/dist/storybook/assets/meta-content-dR7AAq04.css +1 -0
- package/dist/storybook/assets/modal.stories-rjCFe4Mn.js +200 -0
- package/dist/storybook/assets/number-input-xqup0wHW.js +1 -0
- package/dist/storybook/assets/number-input.stories-Kzl7Diug.js +153 -0
- package/dist/storybook/assets/objectWithoutPropertiesLoose-9Q1jwsKS.js +1 -0
- package/dist/storybook/assets/option-dropdown.stories-M9-IYc-K.js +21 -0
- package/dist/storybook/assets/{padding-and-spacing-J_Zb8SJm.js → padding-and-spacing-dUA1CCP8.js} +2 -2
- package/dist/storybook/assets/page.stories-x7QRBnZm.js +57 -0
- package/dist/storybook/assets/{pagination-5n5spTRo.js → pagination-er5fRdi2.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-g4a-aSxq.js → pagination.stories-9_uskT8r.js} +2 -2
- package/dist/storybook/assets/pop-confirm.stories-QyBm5ZAb.js +9 -0
- package/dist/storybook/assets/popover-rJn7kxkX.js +1 -0
- package/dist/storybook/assets/popover.stories-5aZN8AoC.js +10 -0
- package/dist/storybook/assets/{portal.stories-UGkzdgVk.js → portal.stories-1Jnj3LXz.js} +1 -1
- package/dist/storybook/assets/{preview-WIFbPoA-.js → preview-3kPhKzar.js} +13 -13
- package/dist/storybook/assets/preview-64tDm6Er.js +7 -0
- package/dist/storybook/assets/preview-OnO0tzRj.js +17 -0
- package/dist/storybook/assets/projects.stories-wnXCxuJE.js +47 -0
- package/dist/storybook/assets/{radio-button-jHcwHUA4.js → radio-button-7TJh5k-h.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-LkCJsp5P.js → radio-button.stories-9mvBu2BH.js} +5 -5
- package/dist/storybook/assets/react-router-dom-4Z66xYqZ.js +8 -0
- package/dist/storybook/assets/{reservoirs.stories-hhPblhmv.js → reservoirs.stories-XGU7s6pI.js} +2 -2
- package/dist/storybook/assets/{rich-text-input.stories-7UzvJ-A1.js → rich-text-input.stories-3Xaavdx_.js} +3 -3
- package/dist/storybook/assets/row.stories-Ph7Ckyfn.js +130 -0
- package/dist/storybook/assets/{select-JjEPivho.js → select-KWgree43.js} +1 -1
- package/dist/storybook/assets/{select.stories-qFDyxRFm.js → select.stories-3D2KkC3_.js} +2 -2
- package/dist/storybook/assets/side-bar-kr46QLwI.js +1 -0
- package/dist/storybook/assets/side-bar.stories-bJoVvzG5.js +1 -0
- package/dist/storybook/assets/{site.stories-QHCzFOnt.js → site.stories-VpsCjYty.js} +2 -2
- package/dist/storybook/assets/slider-jx0z5OyT.js +7 -0
- package/dist/storybook/assets/slider.stories-CpY4L01U.js +171 -0
- package/dist/storybook/assets/smart-upload-modal.stories-hjd4L84J.js +25 -0
- package/dist/storybook/assets/spacer.stories-FpDFoVWE.js +1 -0
- package/dist/storybook/assets/syntaxhighlighter-B5GMVT5T-1rrvKZrw.js +1 -0
- package/dist/storybook/assets/table-4SISWUSt.js +1 -0
- package/dist/storybook/assets/table-smKT-hbF.css +1 -0
- package/dist/storybook/assets/table.stories-data-UqqhbXjA.js +1 -0
- package/dist/storybook/assets/{table.stories-tEvulp9K.js → table.stories-rKzdxDA4.js} +94 -18
- package/dist/storybook/assets/{tabs.stories-KtJc5Yci.js → tabs.stories-aps5NXFv.js} +2 -2
- package/dist/storybook/assets/text-link.stories-Plmiu8NV.js +14 -0
- package/dist/storybook/assets/{textarea-gxvxVBdC.js → textarea-JE26Eekm.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-MZHVAwSx.js → textarea.stories-c1mkQU4s.js} +1 -1
- package/dist/storybook/assets/tiny-invariant-R4kOKlvx.js +8 -0
- package/dist/storybook/assets/title.stories-6AjYBLcL.js +37 -0
- package/dist/storybook/assets/{toaster-eOozfa7U.js → toaster-IL_npIpU.js} +1 -1
- package/dist/storybook/assets/toaster.stories-QL3_PKZL.js +86 -0
- package/dist/storybook/assets/{toggle-BPI2y-lU.js → toggle-vKuY4G3w.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-aVmjpons.js → toggle.stories-fJ5QYzcQ.js} +2 -2
- package/dist/storybook/assets/{tooltip-HEHiU__l.js → tooltip-dueTLnwA.js} +2 -2
- package/dist/storybook/assets/{tooltip.stories-tiOgoWHH.js → tooltip.stories-a_gd0XYu.js} +1 -1
- package/dist/storybook/assets/tooltip.test-case.stories-0HiezXaS.js +5 -0
- package/dist/storybook/assets/top-bar-K-LdFikH.css +1 -0
- package/dist/storybook/assets/top-bar-pptAo2LU.js +1 -0
- package/dist/storybook/assets/top-bar.stories-H1OeyQS_.js +21 -0
- package/dist/storybook/assets/top-bar.testcase.stories-uJCoeG_m.js +30 -0
- package/dist/storybook/assets/tree-U4LtpVm9.css +1 -0
- package/dist/storybook/assets/tree.stories-a-UG4OFf.js +182 -0
- package/dist/storybook/assets/unit-input-OT-AqIIa.css +1 -0
- package/dist/storybook/assets/unit-input.stories--qvPjZnZ.js +349 -0
- package/dist/storybook/assets/unit-table.stories-4HlhxSjf.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/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.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/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/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,9 @@ 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;
|
|
910
935
|
}
|
|
911
936
|
|
|
912
937
|
export declare interface IOptionDropdownProps {
|
|
@@ -925,7 +950,7 @@ declare interface IOptionItem {
|
|
|
925
950
|
label: ReactNode;
|
|
926
951
|
value: string;
|
|
927
952
|
icon: ReactNode;
|
|
928
|
-
onClick
|
|
953
|
+
onClick?: (evt: MouseEvent_2<HTMLAnchorElement, globalThis.MouseEvent>) => void;
|
|
929
954
|
isActive?: boolean;
|
|
930
955
|
isExperimental?: boolean;
|
|
931
956
|
invalid?: boolean;
|
|
@@ -1010,6 +1035,8 @@ export declare interface IPopoverProps {
|
|
|
1010
1035
|
testId?: string;
|
|
1011
1036
|
disabled?: boolean;
|
|
1012
1037
|
overflowContainer?: boolean;
|
|
1038
|
+
isOpen?: boolean;
|
|
1039
|
+
onToggle?: (isOpen: boolean) => void;
|
|
1013
1040
|
}
|
|
1014
1041
|
|
|
1015
1042
|
export declare interface IPortalProps {
|
|
@@ -1118,6 +1145,7 @@ declare interface ISelectCell extends TCommonCell {
|
|
|
1118
1145
|
deprecatedEventHandler?: boolean;
|
|
1119
1146
|
maxTooltipWidth?: TStringOrNumber;
|
|
1120
1147
|
autoLayerWidth?: boolean;
|
|
1148
|
+
multi?: boolean;
|
|
1121
1149
|
}
|
|
1122
1150
|
|
|
1123
1151
|
export declare interface ISelectProps {
|
|
@@ -1220,6 +1248,26 @@ export declare interface ISliderProps {
|
|
|
1220
1248
|
}) => void;
|
|
1221
1249
|
}
|
|
1222
1250
|
|
|
1251
|
+
export declare type ISmartUploadModalProps = {
|
|
1252
|
+
visible: boolean;
|
|
1253
|
+
prompt: string;
|
|
1254
|
+
onCloseModal: () => void;
|
|
1255
|
+
onUpload: (prompt: string, file: File) => any;
|
|
1256
|
+
onComplete: (data: {
|
|
1257
|
+
[key: string]: string;
|
|
1258
|
+
}[]) => void;
|
|
1259
|
+
onFailed?: () => void;
|
|
1260
|
+
onError?: (error: any) => void;
|
|
1261
|
+
width?: number;
|
|
1262
|
+
heading?: string;
|
|
1263
|
+
dialogText?: string;
|
|
1264
|
+
fileInputText?: string;
|
|
1265
|
+
fileInputPlaceholder?: string;
|
|
1266
|
+
uploadText?: string;
|
|
1267
|
+
cancelText?: string;
|
|
1268
|
+
testId?: string;
|
|
1269
|
+
};
|
|
1270
|
+
|
|
1223
1271
|
declare interface ISortCell extends TCommonCell {
|
|
1224
1272
|
type: TCellType;
|
|
1225
1273
|
hasSort?: boolean;
|
|
@@ -1370,6 +1418,7 @@ export declare interface ITextLinkProps {
|
|
|
1370
1418
|
testId?: string;
|
|
1371
1419
|
onClick?: (e: React_2.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
1372
1420
|
children?: React_2.ReactNode;
|
|
1421
|
+
component?: React_2.ElementType;
|
|
1373
1422
|
}
|
|
1374
1423
|
|
|
1375
1424
|
export declare interface ITextProps {
|
|
@@ -1475,6 +1524,7 @@ declare interface ITreeListProps {
|
|
|
1475
1524
|
padding?: TStringOrNumber;
|
|
1476
1525
|
};
|
|
1477
1526
|
};
|
|
1527
|
+
onDrop?: (event: React_2.DragEvent<HTMLDivElement>) => void;
|
|
1478
1528
|
}[];
|
|
1479
1529
|
onClick?: TEmpty;
|
|
1480
1530
|
actions?: any[];
|
|
@@ -1494,6 +1544,18 @@ export declare interface ITreeProps {
|
|
|
1494
1544
|
expand: React_2.ReactNode;
|
|
1495
1545
|
collapse: React_2.ReactNode;
|
|
1496
1546
|
};
|
|
1547
|
+
allowParentReassignment?: boolean;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
declare interface IUnitConfigItem {
|
|
1551
|
+
onChange?: (params: {
|
|
1552
|
+
oldUnit: string;
|
|
1553
|
+
newUnit: string;
|
|
1554
|
+
unitKey: string;
|
|
1555
|
+
}) => void;
|
|
1556
|
+
unitKey: string;
|
|
1557
|
+
storageUnit: string;
|
|
1558
|
+
preferredUnit: string;
|
|
1497
1559
|
}
|
|
1498
1560
|
|
|
1499
1561
|
export declare interface IUnitInputProps {
|
|
@@ -1503,7 +1565,7 @@ export declare interface IUnitInputProps {
|
|
|
1503
1565
|
placeholder?: string;
|
|
1504
1566
|
disabled?: boolean;
|
|
1505
1567
|
disabledUnit?: boolean;
|
|
1506
|
-
error?: string |
|
|
1568
|
+
error?: string | boolean;
|
|
1507
1569
|
left?: boolean;
|
|
1508
1570
|
small?: boolean;
|
|
1509
1571
|
width?: string | number;
|
|
@@ -1513,15 +1575,12 @@ export declare interface IUnitInputProps {
|
|
|
1513
1575
|
noConversion?: boolean;
|
|
1514
1576
|
doNotConvertValue?: boolean;
|
|
1515
1577
|
testId?: string;
|
|
1516
|
-
warning?: string |
|
|
1578
|
+
warning?: string | boolean;
|
|
1517
1579
|
predefinedOptions?: IPredefinedOption[];
|
|
1518
1580
|
initialPredefinedOption?: boolean;
|
|
1519
1581
|
shouldLinkAutomaticly?: boolean;
|
|
1520
1582
|
selectedPredefinedOptionKey?: string;
|
|
1521
|
-
validationCallback?: (
|
|
1522
|
-
name: string;
|
|
1523
|
-
error: string | null;
|
|
1524
|
-
};
|
|
1583
|
+
validationCallback?: (params: IUnitInputValidationCallbackPayload) => void;
|
|
1525
1584
|
disabledValidation?: boolean;
|
|
1526
1585
|
allowEmpty?: boolean;
|
|
1527
1586
|
autoValue?: string;
|
|
@@ -1530,6 +1589,57 @@ export declare interface IUnitInputProps {
|
|
|
1530
1589
|
onClick?: MouseEventHandler<HTMLInputElement>;
|
|
1531
1590
|
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
1532
1591
|
unitTemplate?: Record<string, any>;
|
|
1592
|
+
convertBackToStorageUnit?: boolean;
|
|
1593
|
+
enableCosmeticRounding?: boolean;
|
|
1594
|
+
enableDisplayRounding?: boolean;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
declare interface IUnitInputValidationCallbackPayload {
|
|
1598
|
+
name: string | {
|
|
1599
|
+
fieldName: string;
|
|
1600
|
+
};
|
|
1601
|
+
error: string | null;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
|
|
1605
|
+
rows?: IUnitTableRow[];
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
declare interface IUnitTableCell {
|
|
1609
|
+
autoUnit: boolean;
|
|
1610
|
+
unitKey: string;
|
|
1611
|
+
formatDisplayValue?: (value: TStringNumberNull) => TStringNumberNull;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
declare interface IUnitTableInputCell extends IInputCell, IUnitTableCell {
|
|
1615
|
+
onChange: (args: any) => void;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
declare interface IUnitTableNumberInputCell extends INumberInputCell, IUnitTableCell {
|
|
1619
|
+
onChange: (args: any) => void;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
export declare interface IUnitTableOnChangeEvent extends React_2.ChangeEvent<HTMLInputElement> {
|
|
1623
|
+
target: EventTarget & HTMLInputElement & {
|
|
1624
|
+
rowIndex: number;
|
|
1625
|
+
cellIndex: number;
|
|
1626
|
+
unit: string;
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
export declare interface IUnitTableProps extends Omit<ITableProps, 'table'> {
|
|
1631
|
+
table: IUnitTable;
|
|
1632
|
+
unitConfig: IUnitConfigItem[];
|
|
1633
|
+
convertBackToStorageUnit?: boolean;
|
|
1634
|
+
enableCosmeticRounding?: boolean;
|
|
1635
|
+
enableDisplayRounding?: boolean;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
export declare interface IUnitTableRow extends Omit<TRowType, 'cells'> {
|
|
1639
|
+
cells: TUnitTableCellShape[];
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
declare interface IUnitTableStaticCell extends IStaticCell, IUnitTableCell {
|
|
1533
1643
|
}
|
|
1534
1644
|
|
|
1535
1645
|
export declare const Label: ({ label, width, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, labelLeft, }: ILabelProps) => JSX_2.Element;
|
|
@@ -1570,7 +1680,7 @@ export declare const Modal: ({ children, visible, centered, width, onEnter, onEs
|
|
|
1570
1680
|
|
|
1571
1681
|
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
1682
|
|
|
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;
|
|
1683
|
+
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, }: INumberInputProps) => JSX_2.Element;
|
|
1574
1684
|
|
|
1575
1685
|
export declare const OptionDropdown: ({ name, label, options, onChange, showHeader, maxHeight, }: IOptionDropdownProps) => ReactElement;
|
|
1576
1686
|
|
|
@@ -1580,7 +1690,7 @@ export declare const Pagination: ({ pagination }: IPaginationProps) => JSX_2.Ele
|
|
|
1580
1690
|
|
|
1581
1691
|
export declare const PopConfirm: ({ children, placement, closeOnOutsideClick, fullWidth, title, cancelText, onClickCancel, okText, onClickOk, disableConfirmButton, overflowContainer, testId, }: IPopConfirmProps) => JSX_2.Element;
|
|
1582
1692
|
|
|
1583
|
-
export declare const Popover: ({ children, content, placement, closeOnOutsideClick, fullWidth, showCloseButton, testId, disabled, overflowContainer, }: IPopoverProps) => JSX_2.Element;
|
|
1693
|
+
export declare const Popover: ({ children, content, placement, closeOnOutsideClick, fullWidth, showCloseButton, testId, disabled, overflowContainer, isOpen: externalIsOpen, onToggle: externalOnToggle, }: IPopoverProps) => JSX_2.Element;
|
|
1584
1694
|
|
|
1585
1695
|
export declare const Portal: ({ id, children }: IPortalProps) => ReactPortal | null;
|
|
1586
1696
|
|
|
@@ -1602,6 +1712,8 @@ export declare const SideBar: React_2.MemoExoticComponent<({ options, startOpen,
|
|
|
1602
1712
|
|
|
1603
1713
|
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
1714
|
|
|
1715
|
+
export declare const SmartUploadModal: ({ visible, prompt, onCloseModal, onUpload, onComplete, onFailed, onError, width, heading, dialogText, fileInputText, fileInputPlaceholder, uploadText, cancelText, testId, }: ISmartUploadModalProps) => JSX_2.Element;
|
|
1716
|
+
|
|
1605
1717
|
export declare const Spacer: ({ height, width, flex, }: ISpacerProps) => JSX_2.Element;
|
|
1606
1718
|
|
|
1607
1719
|
export declare const Spinner: ({ small, colored, dark, tiny, }: ISpinnerProps) => JSX_2.Element;
|
|
@@ -1659,7 +1771,7 @@ export { Text_2 as Text }
|
|
|
1659
1771
|
|
|
1660
1772
|
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
1773
|
|
|
1662
|
-
export declare const TextLink: ({ children, href, target, testId, onClick, }: ITextLinkProps) => JSX_2.Element;
|
|
1774
|
+
export declare const TextLink: ({ children, href, target, testId, onClick, component: Component, }: ITextLinkProps) => JSX_2.Element;
|
|
1663
1775
|
|
|
1664
1776
|
declare type TFileReaderMethod = TInputReaderMethods | string;
|
|
1665
1777
|
|
|
@@ -1685,6 +1797,7 @@ declare type TLinkElement = TBaseElementProps & {
|
|
|
1685
1797
|
url?: string;
|
|
1686
1798
|
active?: boolean;
|
|
1687
1799
|
disabled?: boolean;
|
|
1800
|
+
component?: React.ElementType;
|
|
1688
1801
|
};
|
|
1689
1802
|
|
|
1690
1803
|
export declare type TMenuCarat = 'false' | 'right' | 'down';
|
|
@@ -1710,7 +1823,7 @@ export declare const Tooltip: ({ children, text, error, placement, possiblePlace
|
|
|
1710
1823
|
|
|
1711
1824
|
export declare const TopBar: ({ title, appSwitcher, content, contentRight, warning, height, fixedPosition, }: ITopBarProps) => JSX_2.Element;
|
|
1712
1825
|
|
|
1713
|
-
export declare const Tree: ({ list, draggable, onListReorder, onChangeOpen, testId, isInitialOpen, treeRef, itemHasChild, onItemToggle, icons, }: ITreeProps) => JSX_2.Element;
|
|
1826
|
+
export declare const Tree: ({ list, draggable, onListReorder, onChangeOpen, testId, isInitialOpen, treeRef, itemHasChild, onItemToggle, icons, allowParentReassignment, }: ITreeProps) => JSX_2.Element;
|
|
1714
1827
|
|
|
1715
1828
|
export declare enum TriggerType {
|
|
1716
1829
|
TEXT = "Text",
|
|
@@ -1746,15 +1859,11 @@ declare type TTopBarContent = TLinkElement | TButtonElement | TMenuElement | TCo
|
|
|
1746
1859
|
|
|
1747
1860
|
export declare type TTriggerType = 'Text' | 'Button' | 'DropDownButton' | 'Component';
|
|
1748
1861
|
|
|
1749
|
-
|
|
1862
|
+
declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTableInputCell | IUnitTableNumberInputCell;
|
|
1863
|
+
|
|
1864
|
+
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
1865
|
|
|
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;
|
|
1866
|
+
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
|
|
1758
1867
|
|
|
1759
1868
|
export declare const useFocus: () => UseFocusReturnType;
|
|
1760
1869
|
|
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>
|