@majoo-ui/react 1.52.2-rc.1 → 1.52.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/components/devicePreview/DevicePreview.d.ts +13 -0
- package/components/form/components/InputSelect/InputSelect.d.ts +5 -1
- package/components/modalDialog/ModalDialog.d.ts +4 -0
- package/components/pageDialog/PageDialog.d.ts +4 -0
- package/components/table/Table.d.ts +5 -1
- package/index.esm.css +1310 -1298
- package/index.esm.js +1317 -762
- package/index.umd.css +1310 -1298
- package/index.umd.js +1318 -760
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
React
|
|
2
|
-
|
|
3
|
-
This library was generated with [Nx](https://nx.dev).
|
|
4
|
-
|
|
5
|
-
Running unit tests
|
|
6
|
-
|
|
7
|
-
Run `nx test react` to execute the unit tests via [Jest](https://jestjs.io).
|
|
1
|
+
React
|
|
2
|
+
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
|
+
|
|
5
|
+
Running unit tests
|
|
6
|
+
|
|
7
|
+
Run `nx test react` to execute the unit tests via [Jest](https://jestjs.io).
|
|
@@ -7,6 +7,10 @@ declare const EnumTypeDevice: {
|
|
|
7
7
|
readonly desktop: "desktop";
|
|
8
8
|
};
|
|
9
9
|
declare type EnumTypeDevice = typeof EnumTypeDevice[keyof typeof EnumTypeDevice];
|
|
10
|
+
interface ContentMessage {
|
|
11
|
+
sender?: string;
|
|
12
|
+
message: string;
|
|
13
|
+
}
|
|
10
14
|
interface Props {
|
|
11
15
|
/**
|
|
12
16
|
* set size of frame device.
|
|
@@ -38,6 +42,15 @@ interface Props {
|
|
|
38
42
|
* @default false
|
|
39
43
|
*/
|
|
40
44
|
withComponent?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* option device preview variant
|
|
47
|
+
* @default 'default'
|
|
48
|
+
*/
|
|
49
|
+
variant: 'sms' | 'whatsapp' | 'email' | 'notification' | 'default';
|
|
50
|
+
/**
|
|
51
|
+
* Message content if variant is `'sms' | 'whatsapp' | 'email' | 'notification'`
|
|
52
|
+
**/
|
|
53
|
+
content?: ContentMessage;
|
|
41
54
|
}
|
|
42
55
|
export declare const ImageDevicePreview: import("@stitches/react/types/styled-component").StyledComponent<"img", {}, {
|
|
43
56
|
sm: "(min-width: 359px)";
|
|
@@ -691,11 +691,15 @@ interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelected
|
|
|
691
691
|
* If true, the input will become invalid state.
|
|
692
692
|
*/
|
|
693
693
|
isInvalid?: boolean;
|
|
694
|
+
/**
|
|
695
|
+
* If true, the tooltip will shown when the component hovered
|
|
696
|
+
*/
|
|
697
|
+
showTooltip?: boolean;
|
|
694
698
|
/**
|
|
695
699
|
* Deprecated in v1.46.7. Use 'hideArrowIcon' instead.
|
|
696
700
|
*/
|
|
697
701
|
noOptionIcon?: boolean;
|
|
698
702
|
css?: CSS;
|
|
699
703
|
}
|
|
700
|
-
export declare function InputSelect({ option, onChange, value, placeholder, searchPlaceholder, embedSearch, size, disabled, search, iconColor, hideArrowicon, showLeadingIcon, placement, disabledOptions, textSelector, valueSelector, readOnly, isInvalid, noOptionIcon, fetchData, onSearch, isLoading, css, ...props }: InputSelectProps): JSX.Element;
|
|
704
|
+
export declare function InputSelect({ option, onChange, value, placeholder, searchPlaceholder, embedSearch, size, disabled, search, iconColor, hideArrowicon, showLeadingIcon, placement, disabledOptions, textSelector, valueSelector, readOnly, isInvalid, noOptionIcon, fetchData, onSearch, isLoading, showTooltip, css, ...props }: InputSelectProps): JSX.Element;
|
|
701
705
|
export default InputSelect;
|
|
@@ -402,6 +402,10 @@ interface ModalDialogProps extends IDialog, DialogContentProps {
|
|
|
402
402
|
* If true, the close icon button is hidden
|
|
403
403
|
*/
|
|
404
404
|
hideCloseButton?: boolean;
|
|
405
|
+
/**
|
|
406
|
+
* If true, the close icon button is disabled
|
|
407
|
+
*/
|
|
408
|
+
disabledCloseButton?: boolean;
|
|
405
409
|
}
|
|
406
410
|
/**
|
|
407
411
|
* ModalDialog 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.
|
|
@@ -398,6 +398,10 @@ interface PageDialogProps extends IDialog, DialogContentProps {
|
|
|
398
398
|
onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
|
|
399
399
|
onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
|
|
400
400
|
onInteractOutside?: (event: PointerDownOutsideEvent | FocusOutsideEvent) => void;
|
|
401
|
+
/**
|
|
402
|
+
* If true, the close button is disabled
|
|
403
|
+
*/
|
|
404
|
+
disabledCloseButton?: boolean;
|
|
401
405
|
}
|
|
402
406
|
/**
|
|
403
407
|
* 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.
|
|
@@ -1201,8 +1201,12 @@ export interface TableProps {
|
|
|
1201
1201
|
* Additional style to customize one of the rows based on the specified condition
|
|
1202
1202
|
*/
|
|
1203
1203
|
customRowsStyle?: (e: any) => CustomRowsStyle[];
|
|
1204
|
+
/**
|
|
1205
|
+
* Override isMobile condition
|
|
1206
|
+
*/
|
|
1207
|
+
isMobileLayout?: boolean;
|
|
1204
1208
|
}
|
|
1205
|
-
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;
|
|
1209
|
+
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, isMobileLayout }: TableProps): JSX.Element;
|
|
1206
1210
|
export interface TableColumnProps {
|
|
1207
1211
|
/**
|
|
1208
1212
|
* Required if accessor is a function<br/>
|