@oliasoft-open-source/react-ui-library 4.7.0-beta-3 → 4.7.0
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/404.html +1 -0
- package/dist/assets/{index-ffnttoim.js → index-3CeHq3uM.js} +5 -6
- package/dist/assets/{index-dOfLgtRX.css → index-DdTheZoQ.css} +1 -4
- package/dist/global.css +45 -48
- package/dist/index.d.ts +69 -79
- package/dist/index.html +1 -1
- package/dist/index.js +2013 -2282
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-6VNJS4EI-5mv-gOfo.js → Color-6VNJS4EI-xX703Erw.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-NNNQARDV-WaSwS_18.js → DocsRenderer-NNNQARDV-jfRj2DTn.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-V3YHNWJZ-Dlt0G_eH.js → WithTooltip-V3YHNWJZ-AvjzxEIz.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-BbpRXaiJ.js → accordion.stories-N0ePGIzZ.js} +1 -1
- package/dist/storybook/assets/{actions-MkrpU3sl.js → actions-0ELEGFed.js} +1 -1
- package/dist/storybook/assets/{actions.stories-9i52_Rux.js → actions.stories-kCR8bnxR.js} +1 -1
- package/dist/storybook/assets/{afe.stories-U0-W5U64.js → afe.stories-gS6IvugS.js} +1 -1
- package/dist/storybook/assets/{badge.stories--T9ak5cr.js → badge.stories-fpUlm73g.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-G-gAIxfk.js → blowout.stories-vtbbYHQT.js} +1 -1
- package/dist/storybook/assets/{button-MXXjI7Bb.js → button-BiJw0fB3.js} +1 -1
- package/dist/storybook/assets/{button-group-f5VgIRsa.js → button-group-uKCjEKYR.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-C7TuTTy6.js → button-group.stories-mynaBhDz.js} +1 -1
- package/dist/storybook/assets/{button.stories-rq3SXBTn.js → button.stories-7N3AZjiw.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-VQgmPqVJ.js → buttons-and-links-0h-AVRdJ.js} +1 -1
- package/dist/storybook/assets/{card.stories-pCYBc-Vt.js → card.stories-N8mLrD63.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-gq4jb1p0.js → casing-loads.stories-cCvBYMPa.js} +1 -1
- package/dist/storybook/assets/{cell.stories-ycwhWlIa.js → cell.stories-hT2-0Ekx.js} +1 -1
- package/dist/storybook/assets/{check-box-w174Mu0R.js → check-box-KynSyTaY.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-72A4TN39.js → check-box.stories-yE82OQod.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-_b1tlWM3.js → chunk-HLWAVYOI-UQuxjHgI.js} +1 -1
- package/dist/storybook/assets/{color-cEzs-xnA.js → color-Sdh3kTOi.js} +1 -1
- package/dist/storybook/assets/{column.stories-U4nQqgWb.js → column.stories-cX-u-DHI.js} +1 -1
- package/dist/storybook/assets/{dialog-u5m1F-lX.js → dialog-Au78k7wS.js} +1 -1
- package/dist/storybook/assets/{drawer-was2OGqf.js → drawer-Vhj7CUNA.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-euYpu-I_.js → drawer.stories-FPi2nBqL.js} +1 -1
- package/dist/storybook/assets/{empty.stories-T-_CrIhL.js → empty.stories-oRmjEU7P.js} +1 -1
- package/dist/storybook/assets/{field-fx75Y95f.js → field-m7XXDdEG.js} +1 -1
- package/dist/storybook/assets/{field.stories-2Qckj9Ou.js → field.stories-6xmZA-uD.js} +1 -1
- package/dist/storybook/assets/{file-button.stories-0zVuRMcp.js → file-button.stories-gojUYo7t.js} +1 -1
- package/dist/storybook/assets/{file-input-fzEQtraw.js → file-input-X63bjABB.js} +1 -1
- package/dist/storybook/assets/{file-input.stories-P1T12gxg.js → file-input.stories-KZSe0jKl.js} +1 -1
- package/dist/storybook/assets/{flex.stories-Vlk77f1V.js → flex.stories-xAOrglx5.js} +1 -1
- package/dist/storybook/assets/{footer.stories-OOGCWJOv.js → footer.stories-2AIpYgl_.js} +1 -1
- package/dist/storybook/assets/{form.stories-NIwGiDxn.js → form.stories-qFitN202.js} +1 -1
- package/dist/storybook/assets/{formation.stories-1BHk-Z5n.js → formation.stories-u2HG5vE1.js} +1 -1
- package/dist/storybook/assets/{formatter-SWP5E3XI-lPjnxviv.js → formatter-SWP5E3XI-AcQFFmvi.js} +1 -1
- package/dist/storybook/assets/{heading-CRsqGmBL.js → heading-4tVgoT7O.js} +1 -1
- package/dist/storybook/assets/{heading.stories-i7xajcE_.js → heading.stories-7Bqlw14c.js} +1 -1
- package/dist/storybook/assets/{help-icon-DUhtRK0A.js → help-icon-eelulTML.js} +1 -1
- package/dist/storybook/assets/{help-icon.stories-FyPetqQr.js → help-icon.stories-CptgOV2E.js} +1 -1
- package/dist/storybook/assets/iframe-3RlYxWwB.js +7 -0
- package/dist/storybook/assets/{index-xs8f072L.js → index-dKL70FW5.js} +5 -5
- package/dist/storybook/assets/{index-VSx05S_2.js → index-qZmQ7nA9.js} +1 -1
- package/dist/storybook/assets/{input-vzl5J-q1.js → input-fYKvBwPs.js} +1 -1
- package/dist/storybook/assets/{input-group.stories-6EUjHyss.js → input-group.stories-MuX_NnP5.js} +1 -1
- package/dist/storybook/assets/{input-validation-fn2c7CZI.js → input-validation--CWCjQnL.js} +1 -1
- package/dist/storybook/assets/{input.stories-rTyGPzfX.js → input.stories-Y5X-JFWU.js} +1 -1
- package/dist/storybook/assets/{inputs-4CE3Qz8f.js → inputs-97VxSPJR.js} +4 -4
- package/dist/storybook/assets/{label-CezqEpI3.js → label-bLcoUwtK.js} +1 -1
- package/dist/storybook/assets/{label.stories-niFJlzWW.js → label.stories-KbJuUVw3.js} +1 -1
- package/dist/storybook/assets/{layout-forms-hnqEzhUh.js → layout-forms-N4FQBaG8.js} +1 -1
- package/dist/storybook/assets/{layout-general-GKzWTVlq.js → layout-general-NDOvxP4q.js} +1 -1
- package/dist/storybook/assets/{list-obj4NAnI.js → list-oRkYBU-W.js} +1 -1
- package/dist/storybook/assets/{list.stories-q5ZUuhM_.js → list.stories-EMdcTvdT.js} +1 -1
- package/dist/storybook/assets/{list.stories-data-xxLjz2Y6.js → list.stories-data-oQzKw4Pq.js} +1 -1
- package/dist/storybook/assets/{loader.stories-UWhF9bJF.js → loader.stories-B5lK8-XB.js} +1 -1
- package/dist/storybook/assets/{menu.stories-y0NlwAvu.js → menu.stories-PBBlly2o.js} +1 -1
- package/dist/storybook/assets/{message.stories-iT_DKpjU.js → message.stories-aLAQs_iU.js} +1 -1
- package/dist/storybook/assets/{meta-content-egPJiNdW.js → meta-content-sjR-N3-O.js} +1 -1
- package/dist/storybook/assets/{modal.stories-VOY0gBdV.js → modal.stories-w8Ga2is6.js} +1 -1
- package/dist/storybook/assets/number-input-ymd7m-s5.js +1 -0
- package/dist/storybook/assets/number-input.stories-vPnYf6Zp.js +97 -0
- package/dist/storybook/assets/{option-dropdown.stories-hrDlMrbm.js → option-dropdown.stories-TfHqGoeH.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-J0l6qP8c.js → padding-and-spacing-c8LvBBMe.js} +1 -1
- package/dist/storybook/assets/{page.stories--jUrPw0e.js → page.stories-uG2-dlo7.js} +1 -1
- package/dist/storybook/assets/{pagination-APbPWlVY.js → pagination-H0l4VC9v.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-r3XGZlP9.js → pagination.stories-NQ91Xlrk.js} +1 -1
- package/dist/storybook/assets/{pop-confirm.stories-pXKS5ukj.js → pop-confirm.stories-6V_XrhKa.js} +1 -1
- package/dist/storybook/assets/{popover-ZJGe9jlj.js → popover-N9B8JT3G.js} +1 -1
- package/dist/storybook/assets/{popover.stories-2K90u4uo.js → popover.stories-7Q50puZs.js} +1 -1
- package/dist/storybook/assets/{preview-BYvKcpdH.js → preview-AHjAdEy1.js} +2 -2
- package/dist/storybook/assets/{preview-vq7_vD2k.js → preview-VX4P0egZ.js} +1 -1
- package/dist/storybook/assets/{projects.stories-LB28sKC4.js → projects.stories-UnlGjNFI.js} +1 -1
- package/dist/storybook/assets/{radio-button-9Xi1TwWI.js → radio-button-HPU-KHv4.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-7dkCcpUZ.js → radio-button.stories-ZyjCpReq.js} +1 -1
- package/dist/storybook/assets/{reservoirs.stories-f7usYIda.js → reservoirs.stories-tIoVea3g.js} +1 -1
- package/dist/storybook/assets/{rich-text-input.stories-YWaiFQEd.js → rich-text-input.stories-vk9xwB_D.js} +1 -1
- package/dist/storybook/assets/{row.stories-wtewEk0Z.js → row.stories-ot7Jjnt6.js} +1 -1
- package/dist/storybook/assets/{select-Bp8YY8Ze.js → select-I01_W6_4.js} +1 -1
- package/dist/storybook/assets/{select.stories-RjqGVn2g.js → select.stories-XAI8pyEc.js} +1 -1
- package/dist/storybook/assets/{side-bar-V0uxIghC.js → side-bar-evBxuVzm.js} +1 -1
- package/dist/storybook/assets/{side-bar.stories-rKoL8lrf.js → side-bar.stories-mtQSbRi1.js} +1 -1
- package/dist/storybook/assets/{site.stories-nwcDZZdB.js → site.stories-L_U9kFiJ.js} +1 -1
- package/dist/storybook/assets/{slider-0HIxE6AZ.js → slider-n3IxC2iq.js} +1 -1
- package/dist/storybook/assets/{slider.stories-9wM3WmDC.js → slider.stories-ZZQVWjaY.js} +1 -1
- package/dist/storybook/assets/{smart-upload-modal.stories-Lqh7FFLe.js → smart-upload-modal.stories-2PLKfrKC.js} +1 -1
- package/dist/storybook/assets/{spacer.stories-4n4RL13L.js → spacer.stories-oFV2pFb8.js} +1 -1
- package/dist/storybook/assets/{syntaxhighlighter-B5GMVT5T-jJ-aXkjr.js → syntaxhighlighter-B5GMVT5T-exhsGVYA.js} +1 -1
- package/dist/storybook/assets/table-yS0o5bJS.js +1 -0
- package/dist/storybook/assets/{table.stories-data-6LXl4zwR.js → table.stories-data-UtsQXBjO.js} +1 -1
- package/dist/storybook/assets/{table.stories-N07QxfiK.js → table.stories-gVTJDINj.js} +1 -1
- package/dist/storybook/assets/{textarea-c5fYK9-8.js → textarea-RrPYPGCC.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-soUP2Yhm.js → textarea.stories-rqdJWVro.js} +1 -1
- package/dist/storybook/assets/{title.stories-MKmiziEV.js → title.stories-ILp8GFMp.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-Na9wGy65.js → toaster.stories-Cu8HbPc6.js} +1 -1
- package/dist/storybook/assets/{toggle-gxvny8zu.js → toggle-R__kwKym.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-_Qd5Xk1K.js → toggle.stories-ViKd2aK_.js} +1 -1
- package/dist/storybook/assets/{tooltip-pjcB4ZxN.js → tooltip-dueTLnwA.js} +1 -1
- package/dist/storybook/assets/{tooltip.stories-YJfYxnb3.js → tooltip.stories-a_gd0XYu.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-ZUrHDklJ.js → tooltip.test-case.stories-68kziAjk.js} +1 -1
- package/dist/storybook/assets/{top-bar--h98E6oo.js → top-bar-KGd_PI0n.js} +1 -1
- package/dist/storybook/assets/{top-bar.stories-eahNLSjM.js → top-bar.stories-wVH6POte.js} +1 -1
- package/dist/storybook/assets/{top-bar.testcase.stories-AbbFHB0-.js → top-bar.testcase.stories-ATUEatgx.js} +1 -1
- package/dist/storybook/assets/{tree.stories-JyczIgiP.js → tree.stories-cTww9R00.js} +1 -1
- package/dist/storybook/assets/unit-input-qBUtqoTb.css +1 -0
- package/dist/storybook/assets/unit-input.stories-AGMYBqCC.js +284 -0
- package/dist/storybook/assets/unit-table.stories-KRnQ5bCj.js +150 -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/stories.json +1 -1
- package/package.json +8 -9
- package/dist/storybook/assets/iframe-7Gvk33Dy.js +0 -7
- package/dist/storybook/assets/number-input-yoDwXp2C.js +0 -1
- package/dist/storybook/assets/number-input.stories-QRbtwUKs.js +0 -153
- package/dist/storybook/assets/table-tDId3FKL.js +0 -1
- package/dist/storybook/assets/unit-input-OT-AqIIa.css +0 -1
- package/dist/storybook/assets/unit-input.stories-diwgawFe.js +0 -349
- package/dist/storybook/assets/unit-table.stories-6agZ80lN.js +0 -150
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
|
+
import { default as default_2 } from 'react';
|
|
3
4
|
import { DependencyList } from 'react';
|
|
4
5
|
import { FocusEvent as FocusEvent_2 } from 'react';
|
|
5
6
|
import { FocusEventHandler } from 'react';
|
|
@@ -12,7 +13,6 @@ import { MutableRefObject } from 'react';
|
|
|
12
13
|
import { NodeModel } from '@minoru/react-dnd-treeview';
|
|
13
14
|
import { Placement } from 'react-laag';
|
|
14
15
|
import { Property } from 'csstype';
|
|
15
|
-
import { default as React_2 } from 'react';
|
|
16
16
|
import { ReactElement } from 'react';
|
|
17
17
|
import { ReactNode } from 'react';
|
|
18
18
|
import { ReactPortal } from 'react';
|
|
@@ -73,7 +73,7 @@ export declare const Column: ({ background, borderLeft, borderRight, children, f
|
|
|
73
73
|
|
|
74
74
|
export declare const Dialog: ({ dialog }: IDialogProps) => JSX_2.Element;
|
|
75
75
|
|
|
76
|
-
export declare const DisabledContext:
|
|
76
|
+
export declare const DisabledContext: default_2.Context<boolean>;
|
|
77
77
|
|
|
78
78
|
export declare const dismissToast: (id: Id) => void;
|
|
79
79
|
|
|
@@ -146,7 +146,7 @@ declare interface IAction {
|
|
|
146
146
|
testId?: string;
|
|
147
147
|
hidden?: boolean;
|
|
148
148
|
disabled?: boolean;
|
|
149
|
-
onClick?: (evt:
|
|
149
|
+
onClick?: (evt: default_2.MouseEvent, id?: TStringOrNumber) => void;
|
|
150
150
|
tooltip?: ReactNode | string;
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -222,7 +222,7 @@ export declare interface IButtonProps {
|
|
|
222
222
|
testId?: string;
|
|
223
223
|
tooltip?: ReactNode | string;
|
|
224
224
|
inverted?: boolean;
|
|
225
|
-
component?:
|
|
225
|
+
component?: default_2.ElementType;
|
|
226
226
|
url?: string;
|
|
227
227
|
}
|
|
228
228
|
|
|
@@ -239,7 +239,7 @@ declare interface ICheckBoxCell extends TCommonCell {
|
|
|
239
239
|
label?: string | null;
|
|
240
240
|
checked: boolean;
|
|
241
241
|
type: TCellType;
|
|
242
|
-
onChange: (ev:
|
|
242
|
+
onChange: (ev: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
243
243
|
disabled?: boolean;
|
|
244
244
|
}
|
|
245
245
|
|
|
@@ -249,7 +249,7 @@ export declare interface ICheckBoxProps {
|
|
|
249
249
|
label?: string | null;
|
|
250
250
|
name?: string;
|
|
251
251
|
noMargin?: boolean;
|
|
252
|
-
onChange: (evt:
|
|
252
|
+
onChange: (evt: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
253
253
|
tabIndex?: number;
|
|
254
254
|
disabled?: boolean;
|
|
255
255
|
small?: boolean;
|
|
@@ -313,7 +313,7 @@ export declare enum IconType {
|
|
|
313
313
|
|
|
314
314
|
declare interface ICustomChangeEvent {
|
|
315
315
|
target: {
|
|
316
|
-
value
|
|
316
|
+
value?: string;
|
|
317
317
|
name: string;
|
|
318
318
|
predefinedSelected?: boolean;
|
|
319
319
|
predefinedOption?: IPredefinedOption;
|
|
@@ -341,7 +341,7 @@ export declare interface IDividerProps {
|
|
|
341
341
|
margin?: number | string;
|
|
342
342
|
color?: string;
|
|
343
343
|
align?: TAlign | string;
|
|
344
|
-
children?:
|
|
344
|
+
children?: default_2.ReactNode;
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
export declare interface IDrawerProps {
|
|
@@ -371,7 +371,7 @@ export declare interface IDrawerProps {
|
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
declare interface IDrawerTab {
|
|
374
|
-
icon?: ReactNode |
|
|
374
|
+
icon?: ReactNode | default_2.JSX.Element;
|
|
375
375
|
content?: ReactNode;
|
|
376
376
|
badge?: TStringOrNumber;
|
|
377
377
|
disabled?: boolean;
|
|
@@ -426,7 +426,7 @@ export declare interface IFlexProps {
|
|
|
426
426
|
justifyContent?: string;
|
|
427
427
|
direction?: Property.FlexDirection;
|
|
428
428
|
height?: TStringOrNumber;
|
|
429
|
-
children?:
|
|
429
|
+
children?: default_2.ReactNode;
|
|
430
430
|
wrap?: boolean;
|
|
431
431
|
gap?: boolean | TStringOrNumber;
|
|
432
432
|
}
|
|
@@ -492,10 +492,10 @@ declare interface IInputCell extends TCommonCell {
|
|
|
492
492
|
type: TCellType;
|
|
493
493
|
name?: string;
|
|
494
494
|
value?: TStringOrNumber;
|
|
495
|
-
onChange?: (ev:
|
|
496
|
-
onFocus?: (evt:
|
|
497
|
-
onBlur?: (evt:
|
|
498
|
-
onPaste?:
|
|
495
|
+
onChange?: (ev: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
496
|
+
onFocus?: (evt: default_2.FocusEvent<HTMLInputElement>) => void;
|
|
497
|
+
onBlur?: (evt: default_2.FocusEvent<HTMLInputElement>) => void;
|
|
498
|
+
onPaste?: default_2.ClipboardEventHandler<HTMLInputElement>;
|
|
499
499
|
placeholder?: string;
|
|
500
500
|
error?: string;
|
|
501
501
|
warning?: string;
|
|
@@ -517,16 +517,16 @@ export declare interface IInputGroupProps {
|
|
|
517
517
|
}
|
|
518
518
|
|
|
519
519
|
export declare interface IInputProps {
|
|
520
|
-
error?: TStringOrNumber |
|
|
521
|
-
warning?: TStringOrNumber |
|
|
522
|
-
tooltip?: TStringOrNumber |
|
|
520
|
+
error?: TStringOrNumber | default_2.ReactNode;
|
|
521
|
+
warning?: TStringOrNumber | default_2.ReactNode;
|
|
522
|
+
tooltip?: TStringOrNumber | default_2.ReactNode;
|
|
523
523
|
name?: string;
|
|
524
524
|
type?: string;
|
|
525
|
-
onChange?:
|
|
526
|
-
onKeyPress?:
|
|
525
|
+
onChange?: default_2.ChangeEventHandler<HTMLInputElement>;
|
|
526
|
+
onKeyPress?: default_2.KeyboardEventHandler<HTMLInputElement>;
|
|
527
527
|
onFocus?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
528
528
|
onBlur?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
529
|
-
onPaste?:
|
|
529
|
+
onPaste?: default_2.ClipboardEventHandler<HTMLInputElement>;
|
|
530
530
|
small?: boolean;
|
|
531
531
|
placeholder?: string | null;
|
|
532
532
|
tabIndex?: number;
|
|
@@ -576,7 +576,7 @@ export declare interface ILayoutColumnProps {
|
|
|
576
576
|
background?: string;
|
|
577
577
|
borderLeft?: boolean | string;
|
|
578
578
|
borderRight?: boolean | string;
|
|
579
|
-
children?:
|
|
579
|
+
children?: default_2.ReactNode;
|
|
580
580
|
flex?: boolean;
|
|
581
581
|
flexbox?: boolean;
|
|
582
582
|
padding?: boolean | string;
|
|
@@ -614,7 +614,7 @@ declare interface ILinkCell extends TCommonCell {
|
|
|
614
614
|
value?: TStringOrNumber;
|
|
615
615
|
type: TCellType;
|
|
616
616
|
disabled?: boolean;
|
|
617
|
-
onClick?: (evt:
|
|
617
|
+
onClick?: (evt: default_2.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
618
618
|
error?: StringNumberOrNode;
|
|
619
619
|
warning?: StringNumberOrNode;
|
|
620
620
|
tooltip?: StringNumberOrNode;
|
|
@@ -843,9 +843,9 @@ export declare interface IModalProps {
|
|
|
843
843
|
export declare interface INativeSelectProps {
|
|
844
844
|
borderRadius?: TStringOrNumber;
|
|
845
845
|
disabled?: boolean;
|
|
846
|
-
error?: TStringOrNumber |
|
|
847
|
-
warning?: TStringOrNumber |
|
|
848
|
-
tooltip?: TStringOrNumber |
|
|
846
|
+
error?: TStringOrNumber | default_2.ReactNode | null;
|
|
847
|
+
warning?: TStringOrNumber | default_2.ReactNode | null;
|
|
848
|
+
tooltip?: TStringOrNumber | default_2.ReactNode | null;
|
|
849
849
|
options: ISelectSelectedOption[];
|
|
850
850
|
onChange?: (evt: ChangeEvent<HTMLSelectElement>, value: ISelectSelectedOption | {
|
|
851
851
|
value: null;
|
|
@@ -866,11 +866,11 @@ export declare interface INativeSelectProps {
|
|
|
866
866
|
maxTooltipWidth?: TStringOrNumber;
|
|
867
867
|
}
|
|
868
868
|
|
|
869
|
-
export declare const Input:
|
|
869
|
+
export declare const Input: default_2.ForwardRefExoticComponent<IInputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
870
870
|
|
|
871
871
|
export declare const InputGroup: ({ children, small, width, }: IInputGroupProps) => ReactElement;
|
|
872
872
|
|
|
873
|
-
export declare const InputGroupAddon: ({ children, groupOrder, small, }: IInputGroupAddonProps) =>
|
|
873
|
+
export declare const InputGroupAddon: ({ children, groupOrder, small, }: IInputGroupAddonProps) => default_2.ReactElement;
|
|
874
874
|
|
|
875
875
|
export declare enum InputReaderMethods {
|
|
876
876
|
READ_AS_TEXT = "readAsText",
|
|
@@ -890,8 +890,8 @@ declare interface INumberInputCell extends TCommonCell {
|
|
|
890
890
|
value?: TStringOrNumber;
|
|
891
891
|
type: TCellType;
|
|
892
892
|
onChange?: (ev: any) => void;
|
|
893
|
-
onFocus?: (evt:
|
|
894
|
-
onBlur?: (evt:
|
|
893
|
+
onFocus?: (evt: default_2.FocusEvent<HTMLInputElement>) => void;
|
|
894
|
+
onBlur?: (evt: default_2.FocusEvent<HTMLInputElement>) => void;
|
|
895
895
|
placeholder?: string;
|
|
896
896
|
error?: string | boolean;
|
|
897
897
|
warning?: string | boolean;
|
|
@@ -900,7 +900,6 @@ declare interface INumberInputCell extends TCommonCell {
|
|
|
900
900
|
left?: boolean;
|
|
901
901
|
validationCallback?: TEmpty;
|
|
902
902
|
allowEmpty?: boolean;
|
|
903
|
-
enableCosmeticRounding: boolean;
|
|
904
903
|
enableDisplayRounding: boolean;
|
|
905
904
|
roundDisplayValue: (value: TStringNumberNull) => TStringNumberNull;
|
|
906
905
|
}
|
|
@@ -921,7 +920,7 @@ export declare interface INumberInputProps {
|
|
|
921
920
|
onBlur?: (evt: FocusEvent_2<HTMLInputElement>) => void;
|
|
922
921
|
tabIndex?: number;
|
|
923
922
|
testId?: string;
|
|
924
|
-
tooltip?: TStringOrNumber |
|
|
923
|
+
tooltip?: TStringOrNumber | default_2.ReactNode;
|
|
925
924
|
warning?: string | boolean;
|
|
926
925
|
validationCallback?: (name: string | {
|
|
927
926
|
fieldName: string;
|
|
@@ -929,10 +928,8 @@ export declare interface INumberInputProps {
|
|
|
929
928
|
allowEmpty?: boolean;
|
|
930
929
|
isInTable?: boolean;
|
|
931
930
|
groupOrder?: any;
|
|
932
|
-
enableCosmeticRounding?: boolean;
|
|
933
931
|
enableDisplayRounding?: boolean;
|
|
934
932
|
roundDisplayValue?: (args: TStringNumberNull) => TStringNumberNull;
|
|
935
|
-
disableInternalErrorValidationMessages?: boolean;
|
|
936
933
|
}
|
|
937
934
|
|
|
938
935
|
export declare interface IOptionDropdownProps {
|
|
@@ -988,7 +985,7 @@ declare interface IPaginationOptionType {
|
|
|
988
985
|
}
|
|
989
986
|
|
|
990
987
|
declare interface IPaginationPerPageType {
|
|
991
|
-
onChange?: (evt:
|
|
988
|
+
onChange?: (evt: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
992
989
|
options?: IPaginationOptionType[];
|
|
993
990
|
value?: TStringOrNumber;
|
|
994
991
|
}
|
|
@@ -1013,7 +1010,7 @@ export declare interface IPopConfirmProps {
|
|
|
1013
1010
|
}
|
|
1014
1011
|
|
|
1015
1012
|
declare interface IPopoverCell extends TCommonCell {
|
|
1016
|
-
content:
|
|
1013
|
+
content: default_2.ReactNode;
|
|
1017
1014
|
fullWidth: boolean;
|
|
1018
1015
|
closeOnOutsideClick: boolean;
|
|
1019
1016
|
disabled: boolean;
|
|
@@ -1046,7 +1043,7 @@ export declare interface IPortalProps {
|
|
|
1046
1043
|
}
|
|
1047
1044
|
|
|
1048
1045
|
declare interface IPredefinedOption {
|
|
1049
|
-
value
|
|
1046
|
+
value?: string;
|
|
1050
1047
|
label: string;
|
|
1051
1048
|
valueKey?: string;
|
|
1052
1049
|
}
|
|
@@ -1306,7 +1303,7 @@ declare interface IStaticCell extends TCommonCell {
|
|
|
1306
1303
|
tooltip: StringNumberOrNode;
|
|
1307
1304
|
};
|
|
1308
1305
|
hasSort?: boolean;
|
|
1309
|
-
onSort?: (evt:
|
|
1306
|
+
onSort?: (evt: default_2.MouseEvent<HTMLDivElement>) => void;
|
|
1310
1307
|
}
|
|
1311
1308
|
|
|
1312
1309
|
declare interface ISubAction {
|
|
@@ -1404,9 +1401,9 @@ export declare interface ITextAreaProps {
|
|
|
1404
1401
|
onFocus?: (evt: FocusEvent_2<HTMLTextAreaElement>) => void;
|
|
1405
1402
|
onBlur?: (evt: FocusEvent_2<HTMLTextAreaElement>) => void;
|
|
1406
1403
|
tabIndex?: number;
|
|
1407
|
-
error?: TStringOrNumber |
|
|
1408
|
-
warning?: TStringOrNumber |
|
|
1409
|
-
tooltip?: TStringOrNumber |
|
|
1404
|
+
error?: TStringOrNumber | default_2.ReactNode;
|
|
1405
|
+
warning?: TStringOrNumber | default_2.ReactNode;
|
|
1406
|
+
tooltip?: TStringOrNumber | default_2.ReactNode;
|
|
1410
1407
|
maxTooltipWidth?: TStringOrNumber;
|
|
1411
1408
|
resize?: Property.Resize;
|
|
1412
1409
|
monospace?: boolean;
|
|
@@ -1417,9 +1414,9 @@ export declare interface ITextLinkProps {
|
|
|
1417
1414
|
href?: string;
|
|
1418
1415
|
target?: string;
|
|
1419
1416
|
testId?: string;
|
|
1420
|
-
onClick?: (e:
|
|
1421
|
-
children?:
|
|
1422
|
-
component?:
|
|
1417
|
+
onClick?: (e: default_2.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
1418
|
+
children?: default_2.ReactNode;
|
|
1419
|
+
component?: default_2.ElementType;
|
|
1423
1420
|
}
|
|
1424
1421
|
|
|
1425
1422
|
export declare interface ITextProps {
|
|
@@ -1429,11 +1426,11 @@ export declare interface ITextProps {
|
|
|
1429
1426
|
faint?: boolean;
|
|
1430
1427
|
link?: boolean;
|
|
1431
1428
|
muted?: boolean;
|
|
1432
|
-
onClick?: (e:
|
|
1429
|
+
onClick?: (e: default_2.MouseEvent<HTMLSpanElement>) => void;
|
|
1433
1430
|
small?: boolean;
|
|
1434
1431
|
success?: boolean;
|
|
1435
1432
|
warning?: boolean;
|
|
1436
|
-
children?:
|
|
1433
|
+
children?: default_2.ReactNode;
|
|
1437
1434
|
}
|
|
1438
1435
|
|
|
1439
1436
|
export declare interface IToastProps {
|
|
@@ -1445,12 +1442,12 @@ export declare interface IToastProps {
|
|
|
1445
1442
|
|
|
1446
1443
|
export declare interface IToggleProps {
|
|
1447
1444
|
name?: string;
|
|
1448
|
-
label?: string |
|
|
1445
|
+
label?: string | default_2.ReactElement | null;
|
|
1449
1446
|
checked?: boolean;
|
|
1450
1447
|
disabled?: boolean;
|
|
1451
1448
|
display?: string;
|
|
1452
1449
|
small?: boolean;
|
|
1453
|
-
onChange: (evt:
|
|
1450
|
+
onChange: (evt: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
1454
1451
|
noMargin?: boolean;
|
|
1455
1452
|
testId?: string;
|
|
1456
1453
|
helpText?: string;
|
|
@@ -1475,7 +1472,7 @@ export declare interface ITooltipProps {
|
|
|
1475
1472
|
}
|
|
1476
1473
|
|
|
1477
1474
|
declare interface ITopBarAppSwitcherProps {
|
|
1478
|
-
icon?:
|
|
1475
|
+
icon?: default_2.ReactNode;
|
|
1479
1476
|
url?: string;
|
|
1480
1477
|
onClick?: MouseEventHandler<HTMLDivElement | HTMLAnchorElement>;
|
|
1481
1478
|
}
|
|
@@ -1492,28 +1489,28 @@ export declare interface ITopBarProps {
|
|
|
1492
1489
|
|
|
1493
1490
|
declare interface ITopBarTitleProps {
|
|
1494
1491
|
label?: string | null;
|
|
1495
|
-
logo?:
|
|
1492
|
+
logo?: default_2.ReactNode;
|
|
1496
1493
|
url?: string;
|
|
1497
1494
|
version?: TStringOrNumber;
|
|
1498
1495
|
onClick?: MouseEventHandler<HTMLDivElement | HTMLAnchorElement>;
|
|
1499
1496
|
}
|
|
1500
1497
|
|
|
1501
1498
|
declare interface ITreeListProps {
|
|
1502
|
-
name?: string |
|
|
1499
|
+
name?: string | default_2.ReactNode;
|
|
1503
1500
|
noHeader?: boolean;
|
|
1504
1501
|
items: {
|
|
1505
1502
|
id: TStringOrNumber;
|
|
1506
|
-
name: string |
|
|
1503
|
+
name: string | default_2.ReactNode;
|
|
1507
1504
|
parent: TStringOrNumber;
|
|
1508
1505
|
droppable?: boolean;
|
|
1509
|
-
details?: string |
|
|
1506
|
+
details?: string | default_2.ReactNode;
|
|
1510
1507
|
active?: boolean;
|
|
1511
1508
|
testId?: string;
|
|
1512
1509
|
icon?: {
|
|
1513
|
-
icon:
|
|
1510
|
+
icon: default_2.ReactNode;
|
|
1514
1511
|
color: string;
|
|
1515
1512
|
tooltip?: {
|
|
1516
|
-
text: TStringOrNumber |
|
|
1513
|
+
text: TStringOrNumber | default_2.ReactNode;
|
|
1517
1514
|
error?: boolean;
|
|
1518
1515
|
warning?: boolean;
|
|
1519
1516
|
placement?: string;
|
|
@@ -1525,7 +1522,7 @@ declare interface ITreeListProps {
|
|
|
1525
1522
|
padding?: TStringOrNumber;
|
|
1526
1523
|
};
|
|
1527
1524
|
};
|
|
1528
|
-
onDrop?: (event:
|
|
1525
|
+
onDrop?: (event: default_2.DragEvent<HTMLDivElement>) => void;
|
|
1529
1526
|
}[];
|
|
1530
1527
|
onClick?: TEmpty;
|
|
1531
1528
|
actions?: any[];
|
|
@@ -1542,8 +1539,8 @@ export declare interface ITreeProps {
|
|
|
1542
1539
|
itemHasChild?: (node: NodeModel<any>) => boolean;
|
|
1543
1540
|
onItemToggle?: (node: NodeModel<any>, isOpen: boolean) => void;
|
|
1544
1541
|
icons?: {
|
|
1545
|
-
expand:
|
|
1546
|
-
collapse:
|
|
1542
|
+
expand: default_2.ReactNode;
|
|
1543
|
+
collapse: default_2.ReactNode;
|
|
1547
1544
|
};
|
|
1548
1545
|
allowParentReassignment?: boolean;
|
|
1549
1546
|
}
|
|
@@ -1566,7 +1563,7 @@ export declare interface IUnitInputProps {
|
|
|
1566
1563
|
placeholder?: string;
|
|
1567
1564
|
disabled?: boolean;
|
|
1568
1565
|
disabledUnit?: boolean;
|
|
1569
|
-
error?: string | boolean;
|
|
1566
|
+
error?: string | null | boolean;
|
|
1570
1567
|
left?: boolean;
|
|
1571
1568
|
small?: boolean;
|
|
1572
1569
|
width?: string | number;
|
|
@@ -1576,12 +1573,15 @@ export declare interface IUnitInputProps {
|
|
|
1576
1573
|
noConversion?: boolean;
|
|
1577
1574
|
doNotConvertValue?: boolean;
|
|
1578
1575
|
testId?: string;
|
|
1579
|
-
warning?: string |
|
|
1580
|
-
predefinedOptions?: IPredefinedOption[];
|
|
1576
|
+
warning?: string | null;
|
|
1577
|
+
predefinedOptions?: IPredefinedOption[] | null;
|
|
1581
1578
|
initialPredefinedOption?: boolean;
|
|
1582
1579
|
shouldLinkAutomaticly?: boolean;
|
|
1583
1580
|
selectedPredefinedOptionKey?: string;
|
|
1584
|
-
validationCallback?: (
|
|
1581
|
+
validationCallback?: (name: string, message: string | null) => {
|
|
1582
|
+
name: string;
|
|
1583
|
+
error: string | null;
|
|
1584
|
+
};
|
|
1585
1585
|
disabledValidation?: boolean;
|
|
1586
1586
|
allowEmpty?: boolean;
|
|
1587
1587
|
autoValue?: string;
|
|
@@ -1590,16 +1590,6 @@ export declare interface IUnitInputProps {
|
|
|
1590
1590
|
onClick?: MouseEventHandler<HTMLInputElement>;
|
|
1591
1591
|
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
1592
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
1593
|
}
|
|
1604
1594
|
|
|
1605
1595
|
declare interface IUnitTable extends Omit<ITableProps['table'], 'rows'> {
|
|
@@ -1620,7 +1610,7 @@ declare interface IUnitTableNumberInputCell extends INumberInputCell, IUnitTable
|
|
|
1620
1610
|
onChange: (args: any) => void;
|
|
1621
1611
|
}
|
|
1622
1612
|
|
|
1623
|
-
export declare interface IUnitTableOnChangeEvent extends
|
|
1613
|
+
export declare interface IUnitTableOnChangeEvent extends default_2.ChangeEvent<HTMLInputElement> {
|
|
1624
1614
|
target: EventTarget & HTMLInputElement & {
|
|
1625
1615
|
rowIndex: number;
|
|
1626
1616
|
cellIndex: number;
|
|
@@ -1647,9 +1637,9 @@ export declare const Label: ({ label, width, helpText, helpTextMaxWidth, onClick
|
|
|
1647
1637
|
|
|
1648
1638
|
export declare const List: ({ list, bordered, expanding, narrow, toggleNarrow, onToggleNarrow, invokeEditOnRowClick, noHeader, stickyHeader, draggable, onListReorder, marginBottom, height, testId, scrollDetails, }: IListProps) => JSX_2.Element;
|
|
1649
1639
|
|
|
1650
|
-
export declare const ListHeading:
|
|
1640
|
+
export declare const ListHeading: default_2.ForwardRefExoticComponent<IListHeadingProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
1651
1641
|
|
|
1652
|
-
export declare const ListSubheading:
|
|
1642
|
+
export declare const ListSubheading: default_2.ForwardRefExoticComponent<IListSubheadingProps & default_2.RefAttributes<(HTMLDivElement | null)[]>>;
|
|
1653
1643
|
|
|
1654
1644
|
export declare const Loader: ({ width, height, text, details, fullViewPortSize, cover, children, theme, testId, }: ILoaderProps) => JSX_2.Element;
|
|
1655
1645
|
|
|
@@ -1681,7 +1671,7 @@ export declare const Modal: ({ children, visible, centered, width, onEnter, onEs
|
|
|
1681
1671
|
|
|
1682
1672
|
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;
|
|
1683
1673
|
|
|
1684
|
-
export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, onBlur, tabIndex, testId, tooltip, warning, validationCallback, allowEmpty, isInTable, groupOrder,
|
|
1674
|
+
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, }: INumberInputProps) => JSX_2.Element;
|
|
1685
1675
|
|
|
1686
1676
|
export declare const OptionDropdown: ({ name, label, options, onChange, showHeader, maxHeight, }: IOptionDropdownProps) => ReactElement;
|
|
1687
1677
|
|
|
@@ -1703,13 +1693,13 @@ export declare const RadioButton: ({ name, label: rawLabel, options: rawOptions,
|
|
|
1703
1693
|
|
|
1704
1694
|
export declare const readFile: (file?: Blob, method?: TFileReaderMethod) => Promise<string | ArrayBuffer | null>;
|
|
1705
1695
|
|
|
1706
|
-
export declare const RichTextInput:
|
|
1696
|
+
export declare const RichTextInput: default_2.ForwardRefExoticComponent<IRichTextInputProps & default_2.RefAttributes<any>>;
|
|
1707
1697
|
|
|
1708
1698
|
export declare const Row: ({ alignItems, justifyContent, children, flex, height, marginBottom, marginTop, spacing: spacingProp, wrap, testId, }: IRowProps) => JSX_2.Element;
|
|
1709
1699
|
|
|
1710
1700
|
export declare const Select: (props: ISelectProps) => JSX_2.Element;
|
|
1711
1701
|
|
|
1712
|
-
export declare const SideBar:
|
|
1702
|
+
export declare const SideBar: default_2.MemoExoticComponent<({ options, startOpen, onShiftClickToggleOpen, top, }: ISideBarProps) => JSX_2.Element>;
|
|
1713
1703
|
|
|
1714
1704
|
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;
|
|
1715
1705
|
|
|
@@ -1814,7 +1804,7 @@ export declare type TMessageType = 'Info' | 'Success' | 'Warning' | 'Error';
|
|
|
1814
1804
|
|
|
1815
1805
|
declare type TMouseEventHandler = (evt: MouseEvent_2) => void;
|
|
1816
1806
|
|
|
1817
|
-
export declare const toast: ({ id, message, autoClose, onClose, }: IToastProps) => void |
|
|
1807
|
+
export declare const toast: ({ id, message, autoClose, onClose, }: IToastProps) => void | default_2.ReactText;
|
|
1818
1808
|
|
|
1819
1809
|
export { Toaster }
|
|
1820
1810
|
|
|
@@ -1862,7 +1852,7 @@ export declare type TTriggerType = 'Text' | 'Button' | 'DropDownButton' | 'Compo
|
|
|
1862
1852
|
|
|
1863
1853
|
declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTableInputCell | IUnitTableNumberInputCell;
|
|
1864
1854
|
|
|
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,
|
|
1855
|
+
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;
|
|
1866
1856
|
|
|
1867
1857
|
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
|
|
1868
1858
|
|
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-3CeHq3uM.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-DdTheZoQ.css"></head><body><div id="content"></div></body>
|