@majoo-ui/react 1.54.17 → 1.54.18
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/datePicker/InputDatePicker.d.ts +5 -1
- package/components/datePicker/components/Calendar.d.ts +3 -1
- package/components/datePicker/components/MobileCalendar.d.ts +1 -1
- package/components/modalDialog/ModalDialog.d.ts +24 -8
- package/components/table/Table.d.ts +7 -3
- package/index.esm.css +1295 -1308
- package/index.esm.js +723 -616
- package/index.umd.css +1295 -1308
- package/index.umd.js +725 -616
- package/package.json +2 -2
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).
|
|
@@ -79,5 +79,9 @@ export interface InputDatePickerProps {
|
|
|
79
79
|
* Invalid state input.
|
|
80
80
|
*/
|
|
81
81
|
isInvalid?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Allow DatePicker to reset selected date.
|
|
84
|
+
*/
|
|
85
|
+
allowReset?: boolean;
|
|
82
86
|
}
|
|
83
|
-
export declare function InputDatePicker({ type, showRangeControl, rangePickerType, placeholder, size, disabled, onChange, defaultValue: defaultDateValue, value: dateValue, defaultDate, date, advanceView, placement, css, showTimePicker, minDate, maxDate, readOnly, isInvalid, }: InputDatePickerProps): JSX.Element;
|
|
87
|
+
export declare function InputDatePicker({ type, showRangeControl, rangePickerType, placeholder, size, disabled, onChange, defaultValue: defaultDateValue, value: dateValue, defaultDate, date, advanceView, placement, css, showTimePicker, minDate, maxDate, readOnly, isInvalid, allowReset, }: InputDatePickerProps): JSX.Element;
|
|
@@ -12,6 +12,7 @@ export interface CalendarProps extends RenderProps {
|
|
|
12
12
|
onIsMultiDateChange?: (isMultiDate: boolean) => void;
|
|
13
13
|
onUpdate?: () => void;
|
|
14
14
|
onCancel: () => void;
|
|
15
|
+
onReset?: () => void;
|
|
15
16
|
selected?: Date[];
|
|
16
17
|
containerStyle?: CSS;
|
|
17
18
|
disabled?: boolean;
|
|
@@ -19,6 +20,7 @@ export interface CalendarProps extends RenderProps {
|
|
|
19
20
|
renderTimePicker?: () => React.ReactNode;
|
|
20
21
|
minDate?: Date;
|
|
21
22
|
maxDate?: Date;
|
|
23
|
+
allowReset?: boolean;
|
|
22
24
|
}
|
|
23
|
-
declare const CalendarBox: ({ calendars, getDateProps, advanceView, onCalendarDateChange, onIsMultiDateChange, onUpdate, onCancel, selected, containerStyle, disabled, showTimePicker, renderTimePicker, minDate, maxDate, }: CalendarProps) => JSX.Element | null;
|
|
25
|
+
declare const CalendarBox: ({ calendars, getDateProps, advanceView, onCalendarDateChange, onIsMultiDateChange, onUpdate, onCancel, onReset, selected, containerStyle, disabled, showTimePicker, renderTimePicker, minDate, maxDate, allowReset, }: CalendarProps) => JSX.Element | null;
|
|
24
26
|
export default CalendarBox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CalendarProps } from './Calendar';
|
|
3
|
-
declare const MobileCalendarBox: ({ calendars, getDateProps, advanceView, onCalendarDateChange, onIsMultiDateChange, onUpdate, onCancel, selected, containerStyle, disabled, minDate, maxDate, }: CalendarProps) => JSX.Element | null;
|
|
3
|
+
declare const MobileCalendarBox: ({ calendars, getDateProps, advanceView, onCalendarDateChange, onIsMultiDateChange, onUpdate, onCancel, onReset, selected, containerStyle, disabled, minDate, maxDate, allowReset, }: CalendarProps) => JSX.Element | null;
|
|
4
4
|
export default MobileCalendarBox;
|
|
@@ -95,7 +95,9 @@ export declare const ModalDialogFooter: import("@stitches/react/types/styled-com
|
|
|
95
95
|
};
|
|
96
96
|
subtleColor: (value: string) => {
|
|
97
97
|
color: string;
|
|
98
|
-
backgroundColor: string;
|
|
98
|
+
backgroundColor: string; /**
|
|
99
|
+
* If true, the close icon button is hidden
|
|
100
|
+
*/
|
|
99
101
|
};
|
|
100
102
|
}>>;
|
|
101
103
|
export declare const ModalDialogTitle: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
@@ -191,7 +193,9 @@ export declare const ModalDialogTitle: import("@stitches/react/types/styled-comp
|
|
|
191
193
|
};
|
|
192
194
|
subtleColor: (value: string) => {
|
|
193
195
|
color: string;
|
|
194
|
-
backgroundColor: string;
|
|
196
|
+
backgroundColor: string; /**
|
|
197
|
+
* If true, the close icon button is hidden
|
|
198
|
+
*/
|
|
195
199
|
};
|
|
196
200
|
}>>;
|
|
197
201
|
export declare const ModalDialogContent: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
@@ -287,7 +291,9 @@ export declare const ModalDialogContent: import("@stitches/react/types/styled-co
|
|
|
287
291
|
};
|
|
288
292
|
subtleColor: (value: string) => {
|
|
289
293
|
color: string;
|
|
290
|
-
backgroundColor: string;
|
|
294
|
+
backgroundColor: string; /**
|
|
295
|
+
* If true, the close icon button is hidden
|
|
296
|
+
*/
|
|
291
297
|
};
|
|
292
298
|
}>>;
|
|
293
299
|
export declare const ModalDialogTrigger: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
@@ -383,7 +389,9 @@ export declare const ModalDialogTrigger: import("@stitches/react/types/styled-co
|
|
|
383
389
|
};
|
|
384
390
|
subtleColor: (value: string) => {
|
|
385
391
|
color: string;
|
|
386
|
-
backgroundColor: string;
|
|
392
|
+
backgroundColor: string; /**
|
|
393
|
+
* If true, the close icon button is hidden
|
|
394
|
+
*/
|
|
387
395
|
};
|
|
388
396
|
}>>;
|
|
389
397
|
declare type IDialog = React.ComponentProps<typeof Dialog>;
|
|
@@ -522,7 +530,9 @@ declare const ModalDialog: {
|
|
|
522
530
|
};
|
|
523
531
|
subtleColor: (value: string) => {
|
|
524
532
|
color: string;
|
|
525
|
-
backgroundColor: string;
|
|
533
|
+
backgroundColor: string; /**
|
|
534
|
+
* If true, the close icon button is hidden
|
|
535
|
+
*/
|
|
526
536
|
};
|
|
527
537
|
}>>;
|
|
528
538
|
Title: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
@@ -618,7 +628,9 @@ declare const ModalDialog: {
|
|
|
618
628
|
};
|
|
619
629
|
subtleColor: (value: string) => {
|
|
620
630
|
color: string;
|
|
621
|
-
backgroundColor: string;
|
|
631
|
+
backgroundColor: string; /**
|
|
632
|
+
* If true, the close icon button is hidden
|
|
633
|
+
*/
|
|
622
634
|
};
|
|
623
635
|
}>>;
|
|
624
636
|
Content: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
@@ -714,7 +726,9 @@ declare const ModalDialog: {
|
|
|
714
726
|
};
|
|
715
727
|
subtleColor: (value: string) => {
|
|
716
728
|
color: string;
|
|
717
|
-
backgroundColor: string;
|
|
729
|
+
backgroundColor: string; /**
|
|
730
|
+
* If true, the close icon button is hidden
|
|
731
|
+
*/
|
|
718
732
|
};
|
|
719
733
|
}>>;
|
|
720
734
|
Footer: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
@@ -810,7 +824,9 @@ declare const ModalDialog: {
|
|
|
810
824
|
};
|
|
811
825
|
subtleColor: (value: string) => {
|
|
812
826
|
color: string;
|
|
813
|
-
backgroundColor: string;
|
|
827
|
+
backgroundColor: string; /**
|
|
828
|
+
* If true, the close icon button is hidden
|
|
829
|
+
*/
|
|
814
830
|
};
|
|
815
831
|
}>>;
|
|
816
832
|
defaultProps: {
|
|
@@ -97,7 +97,9 @@ export declare const TableContent: import("@stitches/react/types/styled-componen
|
|
|
97
97
|
backgroundColor: string;
|
|
98
98
|
};
|
|
99
99
|
}>>;
|
|
100
|
-
export declare const TableHead: import("@stitches/react/types/styled-component").StyledComponent<"thead", {
|
|
100
|
+
export declare const TableHead: import("@stitches/react/types/styled-component").StyledComponent<"thead", {
|
|
101
|
+
isInfiniteScroll?: boolean | "true" | undefined;
|
|
102
|
+
}, {
|
|
101
103
|
sm: "(min-width: 359px)";
|
|
102
104
|
md: "(min-width: 767px)";
|
|
103
105
|
lg: "(min-width: 1023px)";
|
|
@@ -194,9 +196,11 @@ export declare const TableHead: import("@stitches/react/types/styled-component")
|
|
|
194
196
|
};
|
|
195
197
|
}>>;
|
|
196
198
|
export declare const TableHeaderCellContainer: import("@stitches/react/types/styled-component").StyledComponent<any, {
|
|
197
|
-
isSortedDesc?: boolean | "
|
|
199
|
+
isSortedDesc?: boolean | "true" | "false" | undefined;
|
|
198
200
|
unsortable?: boolean | "true" | undefined;
|
|
199
201
|
isMobile?: boolean | "true" | undefined;
|
|
202
|
+
isToggleable?: boolean | "true" | undefined;
|
|
203
|
+
isToggled?: boolean | "true" | undefined;
|
|
200
204
|
}, {
|
|
201
205
|
sm: "(min-width: 359px)";
|
|
202
206
|
md: "(min-width: 767px)";
|
|
@@ -1231,7 +1235,7 @@ export interface TableProps {
|
|
|
1231
1235
|
showDuplicatedData?: boolean;
|
|
1232
1236
|
onRowClick?: (record: Row, index: number) => void;
|
|
1233
1237
|
}
|
|
1234
|
-
export declare function Table({ columns, data, 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;
|
|
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;
|
|
1235
1239
|
export interface TableColumnProps {
|
|
1236
1240
|
/**
|
|
1237
1241
|
* Required if accessor is a function<br/>
|