@majoo-ui/react 1.55.0 → 1.55.2-rc.1
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/components/dialog/Dialog.d.ts +1 -1
- package/components/form/components/InputResourceList/InputResourceList.d.ts +2 -1
- package/components/modalDialog/ModalDialog.d.ts +9 -25
- package/components/pageDialog/PageDialog.d.ts +1 -1
- package/components/table/Table.d.ts +5 -1
- package/config/i18n/index.d.ts +2 -0
- package/config/index.d.ts +1 -0
- package/index.d.ts +1 -0
- package/index.esm.js +9720 -9660
- package/index.umd.js +9798 -9736
- package/package.json +6 -2
|
@@ -105,7 +105,7 @@ interface IContentProps extends DialogContentProps {
|
|
|
105
105
|
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
106
106
|
export default Dialog;
|
|
107
107
|
export declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
108
|
-
export declare const DialogContent: React.ForwardRefExoticComponent<Pick<IContentProps, "color" | "translate" | "hidden" | "size" | "style" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "
|
|
108
|
+
export declare const DialogContent: React.ForwardRefExoticComponent<Pick<IContentProps, "color" | "translate" | "hidden" | "size" | "style" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "asChild" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onOpenAutoFocus" | "onCloseAutoFocus" | "forceMount" | "css"> & React.RefAttributes<HTMLDivElement>>;
|
|
109
109
|
export declare const DialogTitle: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>, {}, {
|
|
110
110
|
sm: "(min-width: 359px)";
|
|
111
111
|
md: "(min-width: 767px)";
|
|
@@ -15,6 +15,7 @@ interface IInputResourceListProps {
|
|
|
15
15
|
counterFooterText: string;
|
|
16
16
|
isLoading: boolean;
|
|
17
17
|
enabledItems?: string[];
|
|
18
|
+
emptyDataMessage?: string;
|
|
18
19
|
value?: IResource[];
|
|
19
20
|
fetchData?(props: {
|
|
20
21
|
query?: string;
|
|
@@ -26,5 +27,5 @@ interface IInputResourceListProps {
|
|
|
26
27
|
title?: string;
|
|
27
28
|
hideSelectAll?: boolean;
|
|
28
29
|
}
|
|
29
|
-
declare function InputResourceList({ data, disabled, onItemCheck, onItemUncheck, searchPlaceholder, counterFooterText, isLoading, enabledItems, value, fetchData, onQueryChange, css, defaultSort, title, hideSelectAll }: IInputResourceListProps): JSX.Element;
|
|
30
|
+
declare function InputResourceList({ data, disabled, onItemCheck, onItemUncheck, searchPlaceholder, counterFooterText, isLoading, enabledItems, emptyDataMessage, value, fetchData, onQueryChange, css, defaultSort, title, hideSelectAll, }: IInputResourceListProps): JSX.Element;
|
|
30
31
|
export default InputResourceList;
|
|
@@ -95,9 +95,7 @@ export declare const ModalDialogFooter: import("@stitches/react/types/styled-com
|
|
|
95
95
|
};
|
|
96
96
|
subtleColor: (value: string) => {
|
|
97
97
|
color: string;
|
|
98
|
-
backgroundColor: string;
|
|
99
|
-
* If true, the close icon button is hidden
|
|
100
|
-
*/
|
|
98
|
+
backgroundColor: string;
|
|
101
99
|
};
|
|
102
100
|
}>>;
|
|
103
101
|
export declare const ModalDialogTitle: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
@@ -193,9 +191,7 @@ export declare const ModalDialogTitle: import("@stitches/react/types/styled-comp
|
|
|
193
191
|
};
|
|
194
192
|
subtleColor: (value: string) => {
|
|
195
193
|
color: string;
|
|
196
|
-
backgroundColor: string;
|
|
197
|
-
* If true, the close icon button is hidden
|
|
198
|
-
*/
|
|
194
|
+
backgroundColor: string;
|
|
199
195
|
};
|
|
200
196
|
}>>;
|
|
201
197
|
export declare const ModalDialogContent: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
@@ -291,9 +287,7 @@ export declare const ModalDialogContent: import("@stitches/react/types/styled-co
|
|
|
291
287
|
};
|
|
292
288
|
subtleColor: (value: string) => {
|
|
293
289
|
color: string;
|
|
294
|
-
backgroundColor: string;
|
|
295
|
-
* If true, the close icon button is hidden
|
|
296
|
-
*/
|
|
290
|
+
backgroundColor: string;
|
|
297
291
|
};
|
|
298
292
|
}>>;
|
|
299
293
|
export declare const ModalDialogTrigger: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
@@ -389,13 +383,11 @@ export declare const ModalDialogTrigger: import("@stitches/react/types/styled-co
|
|
|
389
383
|
};
|
|
390
384
|
subtleColor: (value: string) => {
|
|
391
385
|
color: string;
|
|
392
|
-
backgroundColor: string;
|
|
393
|
-
* If true, the close icon button is hidden
|
|
394
|
-
*/
|
|
386
|
+
backgroundColor: string;
|
|
395
387
|
};
|
|
396
388
|
}>>;
|
|
397
389
|
declare type IDialog = React.ComponentProps<typeof Dialog>;
|
|
398
|
-
interface ModalDialogProps extends IDialog, DialogContentProps {
|
|
390
|
+
interface ModalDialogProps extends Omit<IDialog, "children">, DialogContentProps {
|
|
399
391
|
/** set PageDialog zIndex, default is set to 1400 */
|
|
400
392
|
layer?: number | string;
|
|
401
393
|
/** Force to mobile view or desktop view, if undefined ModalDialog will be responsive according to current screen size */
|
|
@@ -530,9 +522,7 @@ declare const ModalDialog: {
|
|
|
530
522
|
};
|
|
531
523
|
subtleColor: (value: string) => {
|
|
532
524
|
color: string;
|
|
533
|
-
backgroundColor: string;
|
|
534
|
-
* If true, the close icon button is hidden
|
|
535
|
-
*/
|
|
525
|
+
backgroundColor: string;
|
|
536
526
|
};
|
|
537
527
|
}>>;
|
|
538
528
|
Title: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
@@ -628,9 +618,7 @@ declare const ModalDialog: {
|
|
|
628
618
|
};
|
|
629
619
|
subtleColor: (value: string) => {
|
|
630
620
|
color: string;
|
|
631
|
-
backgroundColor: string;
|
|
632
|
-
* If true, the close icon button is hidden
|
|
633
|
-
*/
|
|
621
|
+
backgroundColor: string;
|
|
634
622
|
};
|
|
635
623
|
}>>;
|
|
636
624
|
Content: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
@@ -726,9 +714,7 @@ declare const ModalDialog: {
|
|
|
726
714
|
};
|
|
727
715
|
subtleColor: (value: string) => {
|
|
728
716
|
color: string;
|
|
729
|
-
backgroundColor: string;
|
|
730
|
-
* If true, the close icon button is hidden
|
|
731
|
-
*/
|
|
717
|
+
backgroundColor: string;
|
|
732
718
|
};
|
|
733
719
|
}>>;
|
|
734
720
|
Footer: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
@@ -824,9 +810,7 @@ declare const ModalDialog: {
|
|
|
824
810
|
};
|
|
825
811
|
subtleColor: (value: string) => {
|
|
826
812
|
color: string;
|
|
827
|
-
backgroundColor: string;
|
|
828
|
-
* If true, the close icon button is hidden
|
|
829
|
-
*/
|
|
813
|
+
backgroundColor: string;
|
|
830
814
|
};
|
|
831
815
|
}>>;
|
|
832
816
|
defaultProps: {
|
|
@@ -388,7 +388,7 @@ export declare const PageDialogTrigger: import("@stitches/react/types/styled-com
|
|
|
388
388
|
};
|
|
389
389
|
}>>;
|
|
390
390
|
declare type IDialog = React.ComponentProps<typeof Dialog>;
|
|
391
|
-
interface PageDialogProps extends IDialog, DialogContentProps {
|
|
391
|
+
interface PageDialogProps extends Omit<IDialog, "children">, DialogContentProps {
|
|
392
392
|
/** set PageDialog zIndex, default is set to 1400 */
|
|
393
393
|
layer?: number | string;
|
|
394
394
|
/** Force to mobile view or desktop view, if undefined PageDialog will be responsive according to current screen size */
|
|
@@ -1123,6 +1123,10 @@ export interface TableProps {
|
|
|
1123
1123
|
* Total amount of the data.
|
|
1124
1124
|
*/
|
|
1125
1125
|
totalData?: number;
|
|
1126
|
+
/**
|
|
1127
|
+
* Total amount of the page.
|
|
1128
|
+
*/
|
|
1129
|
+
totalPage?: number;
|
|
1126
1130
|
/**
|
|
1127
1131
|
* Function executed when pagination or sorter is changed.<br/>
|
|
1128
1132
|
* interface FetchDataParams { <br/>
|
|
@@ -1235,7 +1239,7 @@ export interface TableProps {
|
|
|
1235
1239
|
showDuplicatedData?: boolean;
|
|
1236
1240
|
onRowClick?: (record: Row, index: number) => void;
|
|
1237
1241
|
}
|
|
1238
|
-
export declare function Table({ columns, data: rawData, keyId, pageIndex: controlledPageIndex, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, customEmptyDataProps, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, hiddenColumns, columnOrder, customRowsStyle, isMobileLayout, showDuplicatedData, onRowClick, }: TableProps): JSX.Element;
|
|
1242
|
+
export declare function Table({ columns, data: rawData, keyId, pageIndex: controlledPageIndex, totalPage, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, customEmptyDataProps, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, hiddenColumns, columnOrder, customRowsStyle, isMobileLayout, showDuplicatedData, onRowClick, }: TableProps): JSX.Element;
|
|
1239
1243
|
export interface TableColumnProps {
|
|
1240
1244
|
/**
|
|
1241
1245
|
* Required if accessor is a function<br/>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const i18n: import("i18next").i18n;
|
package/index.d.ts
CHANGED