@majoo-ui/react 1.48.1 → 1.48.4
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/mapPicker/InputMapPicker.d.ts +0 -4
- package/components/modalDialog/ModalDialog.d.ts +2 -1
- package/components/pageDialog/PageDialog.d.ts +2 -1
- package/components/stepWizard/index.d.ts +0 -1
- package/components/table/MobileTable.d.ts +5 -0
- package/components/table/Table.d.ts +12 -2
- package/index.esm.js +562 -428
- package/index.umd.js +559 -428
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Dialog } from '../../';
|
|
3
|
+
import { FocusScopeProps } from '@radix-ui/react-dialog';
|
|
3
4
|
import type { DialogContentProps } from '..';
|
|
4
5
|
export declare const ModalDialogFooter: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
5
6
|
sm: "(min-width: 359px)";
|
|
@@ -396,7 +397,7 @@ interface ModalDialogProps extends IDialog, DialogContentProps {
|
|
|
396
397
|
*/
|
|
397
398
|
width?: string | number;
|
|
398
399
|
/** Set default behavior when opening dialog with form. Usually used with prevent default*/
|
|
399
|
-
onOpenAutoFocus
|
|
400
|
+
onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
|
|
400
401
|
/**
|
|
401
402
|
* If true, the close icon button is hidden
|
|
402
403
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Dialog } from '../../';
|
|
3
|
+
import { FocusScopeProps } from '@radix-ui/react-dialog';
|
|
3
4
|
import type { DialogContentProps } from '..';
|
|
4
5
|
export declare const PageDialogFooter: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
5
6
|
sm: "(min-width: 359px)";
|
|
@@ -392,7 +393,7 @@ interface PageDialogProps extends IDialog, DialogContentProps {
|
|
|
392
393
|
/** Force to mobile view or desktop view, if undefined PageDialog will be responsive according to current screen size */
|
|
393
394
|
isMobile?: boolean | undefined;
|
|
394
395
|
/** Set default behavior when opening dialog with form. Usually used with prevent default*/
|
|
395
|
-
onOpenAutoFocus
|
|
396
|
+
onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
|
|
396
397
|
}
|
|
397
398
|
/**
|
|
398
399
|
* PageDialog are used to focus and display content that contains one specific task that requires interaction from the user and is separate from the main page.
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { CSS } from '../../config/stitches.config';
|
|
3
3
|
import { RowGroup } from './Table';
|
|
4
4
|
import { TableInstance } from 'react-table';
|
|
5
|
+
interface CustomRowsStyle {
|
|
6
|
+
predicate: boolean;
|
|
7
|
+
css: CSS;
|
|
8
|
+
}
|
|
5
9
|
interface MobileTableProps {
|
|
6
10
|
instance: TableInstance<object>;
|
|
7
11
|
totalData: number;
|
|
@@ -13,6 +17,7 @@ interface MobileTableProps {
|
|
|
13
17
|
rowGroup?: RowGroup;
|
|
14
18
|
hiddenColumns?: string[];
|
|
15
19
|
css?: CSS;
|
|
20
|
+
customRowsStyle?: (e: any) => CustomRowsStyle[];
|
|
16
21
|
}
|
|
17
22
|
declare const MobileTable: React.ForwardRefExoticComponent<MobileTableProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
23
|
export default MobileTable;
|
|
@@ -390,7 +390,9 @@ export declare const TableHeadCellContent: import("@stitches/react/types/styled-
|
|
|
390
390
|
color: string;
|
|
391
391
|
backgroundColor: string;
|
|
392
392
|
};
|
|
393
|
-
}>>, {
|
|
393
|
+
}>>, {
|
|
394
|
+
isMobile?: boolean | "true" | undefined;
|
|
395
|
+
}, {
|
|
394
396
|
sm: "(min-width: 359px)";
|
|
395
397
|
md: "(min-width: 767px)";
|
|
396
398
|
lg: "(min-width: 1023px)";
|
|
@@ -888,6 +890,10 @@ export interface RowGroup {
|
|
|
888
890
|
groupKey: string;
|
|
889
891
|
headerRender?: (row: Row<object>) => React.ReactNode;
|
|
890
892
|
}
|
|
893
|
+
interface CustomRowsStyle {
|
|
894
|
+
predicate: boolean;
|
|
895
|
+
css: CSS;
|
|
896
|
+
}
|
|
891
897
|
export interface TableProps {
|
|
892
898
|
/**
|
|
893
899
|
* The data array that you want to display on the table.
|
|
@@ -988,8 +994,12 @@ export interface TableProps {
|
|
|
988
994
|
* The order of column id
|
|
989
995
|
*/
|
|
990
996
|
columnOrder?: string[];
|
|
997
|
+
/**
|
|
998
|
+
* Additional style to customize one of the rows based on the specified condition
|
|
999
|
+
*/
|
|
1000
|
+
customRowsStyle?: (e: any) => CustomRowsStyle[];
|
|
991
1001
|
}
|
|
992
|
-
export declare function Table({ columns, data, keyId, pageIndex: controlledPageIndex, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, hiddenColumns, columnOrder, }: TableProps): JSX.Element;
|
|
1002
|
+
export declare function Table({ columns, data, keyId, pageIndex: controlledPageIndex, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, isLoading, css, headerCss, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, hiddenColumns, columnOrder, customRowsStyle, }: TableProps): JSX.Element;
|
|
993
1003
|
export interface TableColumnProps {
|
|
994
1004
|
/**
|
|
995
1005
|
* Required if accessor is a function<br/>
|