@majoo-ui/react 1.61.24 → 1.61.25-rc.2
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/index.d.ts +1 -5
- package/index.esm.js +24546 -26967
- package/package.json +4 -4
- package/{colors → src/colors}/index.d.ts +1 -1
- package/{components → src/components}/accordion/Accordion.d.ts +35 -35
- package/{components → src/components}/accordion/index.d.ts +1 -1
- package/{components → src/components}/barChart/BarChart.d.ts +82 -82
- package/{components → src/components}/barChart/index.d.ts +1 -1
- package/{components → src/components}/breadcrumb/index.d.ts +7 -7
- package/{components → src/components}/button/index.d.ts +2 -2
- package/{components → src/components}/card/index.d.ts +2 -2
- package/{components → src/components}/chart/index.d.ts +1 -1
- package/{components → src/components}/chart/lineChart/LineChart.d.ts +80 -80
- package/{components → src/components}/chart/lineChart/components/Comparator.d.ts +16 -16
- package/{components → src/components}/chart/lineChart/components/ComparatorController.d.ts +8 -8
- package/{components → src/components}/chart/lineChart/components/ComparatorItem.d.ts +10 -10
- package/{components → src/components}/chart/lineChart/components/ProductList.d.ts +10 -10
- package/{components → src/components}/chart/lineChart/components/TitleLegend.d.ts +19 -19
- package/{components → src/components}/chart/lineChart/components/Tooltip.d.ts +21 -21
- package/{components → src/components}/chart/lineChart/index.d.ts +1 -1
- package/{components → src/components}/chart/utils/index.d.ts +18 -18
- package/{components → src/components}/checkboxTable/CheckboxTable.d.ts +29 -29
- package/{components → src/components}/checkboxTable/index.d.ts +1 -1
- package/{components → src/components}/checkboxTable/transition.d.ts +11 -11
- package/{components → src/components}/contentEditor/ContentEditor.d.ts +44 -44
- package/{components → src/components}/contentEditor/index.d.ts +1 -1
- package/{components → src/components}/contextMenu/index.d.ts +1 -1
- package/{components → src/components}/datePicker/AdvancedOption.d.ts +12 -12
- package/{components → src/components}/datePicker/CustomDatePicker.d.ts +63 -63
- package/{components → src/components}/datePicker/DatePicker.d.ts +10 -10
- package/{components → src/components}/datePicker/DatePickerMulti.d.ts +11 -11
- package/{components → src/components}/datePicker/InputDatePicker.d.ts +170 -170
- package/{components → src/components}/datePicker/InputDateRangePicker.d.ts +26 -26
- package/{components → src/components}/datePicker/components/Calendar.d.ts +32 -32
- package/{components → src/components}/datePicker/components/CalendarMulti.d.ts +21 -21
- package/{components → src/components}/datePicker/components/CalendarTimePicker.d.ts +11 -11
- package/{components → src/components}/datePicker/components/MobileCalendar.d.ts +4 -4
- package/{components → src/components}/datePicker/components/index.d.ts +6 -6
- package/{components → src/components}/datePicker/index.d.ts +7 -7
- package/{components → src/components}/datePicker/state/reducer.d.ts +26 -26
- package/{components → src/components}/datePicker/timePicker/index.d.ts +4 -4
- package/{components → src/components}/devicePreview/index.d.ts +2 -2
- package/{components → src/components}/dialog/index.d.ts +2 -2
- package/{components → src/components}/editableTable/Columns.d.ts +59 -59
- package/{components → src/components}/editableTable/EditableMobile.d.ts +23 -23
- package/{components → src/components}/editableTable/EditableTable.d.ts +432 -432
- package/{components → src/components}/editableTable/faker.d.ts +16 -16
- package/{components → src/components}/editableTable/index.d.ts +2 -2
- package/{components → src/components}/form/components/InputCombobox/InputCombobox.d.ts +43 -43
- package/{components → src/components}/form/components/InputCombobox/index.d.ts +1 -1
- package/{components → src/components}/form/components/InputCounter/InputCounter.d.ts +58 -58
- package/{components → src/components}/form/components/InputCounter/index.d.ts +2 -2
- package/{components → src/components}/form/components/InputDateRange/InputDateRange.d.ts +39 -39
- package/{components → src/components}/form/components/InputDateRange/index.d.ts +2 -2
- package/{components → src/components}/form/components/InputElement/index.d.ts +1 -1
- package/{components → src/components}/form/components/InputGroup/index.d.ts +1 -1
- package/{components → src/components}/form/components/InputOTP/InputOTP.d.ts +108 -108
- package/{components → src/components}/form/components/InputOTP/index.d.ts +2 -2
- package/{components → src/components}/form/components/InputResourceList/InputResourceList.d.ts +39 -39
- package/{components → src/components}/form/components/InputSelect/index.d.ts +2 -2
- package/{components → src/components}/form/components/InputSelectCheck/OptionGroupItem.d.ts +5 -5
- package/{components → src/components}/form/components/InputSignature/InputSignature.d.ts +12 -12
- package/{components → src/components}/form/components/InputSignature/SignatureModal.d.ts +11 -11
- package/{components → src/components}/form/components/InputSignature/index.d.ts +2 -2
- package/{components → src/components}/form/components/InputText/index.d.ts +1 -1
- package/{components → src/components}/form/components/index.d.ts +27 -27
- package/{components → src/components}/form/index.d.ts +1 -1
- package/{components → src/components}/heading/index.d.ts +2 -2
- package/{components → src/components}/image/index.d.ts +2 -2
- package/{components → src/components}/index.d.ts +53 -53
- package/{components → src/components}/link/index.d.ts +1 -1
- package/{components → src/components}/loadingBar/LoadingBar.d.ts +51 -51
- package/{components → src/components}/loadingBar/index.d.ts +1 -1
- package/{components → src/components}/mapPicker/InputMapPicker.d.ts +4 -4
- package/{components → src/components}/mapPicker/MapPicker.d.ts +17 -17
- package/{components → src/components}/mapPicker/index.d.ts +2 -2
- package/{components → src/components}/mapPicker/types/index.d.ts +103 -103
- package/{components → src/components}/modalDialog/index.d.ts +2 -2
- package/{components → src/components}/pageDialog/index.d.ts +1 -1
- package/{components → src/components}/paragraph/index.d.ts +2 -2
- package/{components → src/components}/pieChart/PieChart.d.ts +100 -100
- package/{components → src/components}/pieChart/index.d.ts +1 -1
- package/{components → src/components}/progressIndicator/ProgressIndicator.d.ts +17 -17
- package/{components → src/components}/progressIndicator/index.d.ts +1 -1
- package/{components → src/components}/scrollSync/ScrollSync.d.ts +45 -45
- package/{components → src/components}/scrollSync/ScrollSyncNode.d.ts +32 -32
- package/{components → src/components}/scrollSync/index.d.ts +2 -2
- package/{components → src/components}/scrollSync/utils.d.ts +3 -3
- package/{components → src/components}/separator/index.d.ts +2 -2
- package/{components → src/components}/skeleton/Skeleton.d.ts +19 -19
- package/{components → src/components}/skeleton/index.d.ts +1 -1
- package/{components → src/components}/stepWizard/index.d.ts +45 -45
- package/{components → src/components}/table/MobileTable.d.ts +39 -39
- package/{components → src/components}/table/index.d.ts +3 -3
- package/{components → src/components}/tableOfContent/index.d.ts +57 -57
- package/{components → src/components}/tagList/TagList.d.ts +21 -21
- package/{components → src/components}/tagList/index.d.ts +1 -1
- package/{components → src/components}/text/index.d.ts +2 -2
- package/{components → src/components}/upload/utils/canvasPreview.d.ts +2 -2
- package/{components → src/components}/upload/utils/imgPreview.d.ts +2 -2
- package/{foundations → src/foundations}/indices/Indices.d.ts +2 -2
- package/{foundations → src/foundations}/radii/Radii.d.ts +2 -2
- package/{foundations → src/foundations}/space/Space.d.ts +2 -2
- package/{hooks → src/hooks}/index.d.ts +2 -2
- package/{hooks → src/hooks}/useListOption/useListOption.d.ts +8 -8
- package/{hooks → src/hooks}/useToggle/useToggle.d.ts +1 -1
- package/src/index.d.ts +5 -0
- package/{layout → src/layout}/box/index.d.ts +1 -1
- package/{layout → src/layout}/flex/index.d.ts +2 -2
- package/{layout → src/layout}/grid/index.d.ts +2 -2
- package/{layout → src/layout}/index.d.ts +4 -4
- package/{type → src/type}/base.types.d.ts +11 -11
- package/src/type/stitches.types.d.ts +1 -0
- package/{utils → src/utils}/request.d.ts +14 -14
- package/{utils → src/utils}/useNavigatorOnline.d.ts +2 -2
- package/{utils → src/utils}/variant.d.ts +4 -4
- package/components/alert-backup/index.backup.d.ts +0 -1
- package/components/button/Button.d.ts +0 -163
- package/components/card/Card.d.ts +0 -531
- package/components/contextMenu/ContextMenu.d.ts +0 -404
- package/components/datePicker/components/DateNumber.d.ts +0 -104
- package/components/devicePreview/DevicePreview.d.ts +0 -161
- package/components/dialog/Dialog.d.ts +0 -402
- package/components/form/components/InputCombobox/InputCombobox.backup.d.ts +0 -43
- package/components/form/components/InputSelect/InputSelect.d.ts +0 -862
- package/components/heading/Heading.d.ts +0 -100
- package/components/link/Link.d.ts +0 -109
- package/components/modalDialog/ModalDialog.d.ts +0 -836
- package/components/pageDialog/PageDialog.d.ts +0 -810
- package/components/table/Table.d.ts +0 -1529
- package/config/stitches.config.d.ts +0 -645
- package/foundations/typography/Typography.d.ts +0 -396
- package/type/stitches.types.d.ts +0 -1
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { LabelProps } from 'recharts';
|
|
3
|
-
import { CSS } from '../../config/stitches.config';
|
|
4
|
-
import './styles.css';
|
|
5
|
-
interface PieChartData {
|
|
6
|
-
name: string;
|
|
7
|
-
total: number;
|
|
8
|
-
color: string;
|
|
9
|
-
}
|
|
10
|
-
interface PieChartLegend {
|
|
11
|
-
show?: boolean;
|
|
12
|
-
showTotal?: boolean;
|
|
13
|
-
position?: 'right' | 'bottom' | 'left';
|
|
14
|
-
height?: number;
|
|
15
|
-
}
|
|
16
|
-
interface PieChartTooltip {
|
|
17
|
-
label?: (number: any) => string;
|
|
18
|
-
render?: () => JSX.Element;
|
|
19
|
-
}
|
|
20
|
-
interface PieChartLabel {
|
|
21
|
-
show?: boolean;
|
|
22
|
-
dataKey?: string;
|
|
23
|
-
position?: LabelProps['position'];
|
|
24
|
-
formatter?: (string: any) => string;
|
|
25
|
-
render?: (any: any) => JSX.Element;
|
|
26
|
-
}
|
|
27
|
-
interface PieChartProps {
|
|
28
|
-
/**
|
|
29
|
-
* Section title of the chart.
|
|
30
|
-
*/
|
|
31
|
-
title?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Subtitle of the chart.
|
|
34
|
-
*/
|
|
35
|
-
subtitle?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Datasets of the chart.
|
|
38
|
-
*/
|
|
39
|
-
data: PieChartData[];
|
|
40
|
-
/**
|
|
41
|
-
* Additional css property.
|
|
42
|
-
*/
|
|
43
|
-
css?: CSS;
|
|
44
|
-
/**
|
|
45
|
-
* Avatar url address.
|
|
46
|
-
*/
|
|
47
|
-
avatarURL?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Acronym text if avatar not valid.
|
|
50
|
-
*/
|
|
51
|
-
avatarAcronym?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Validitiy of avatar.
|
|
54
|
-
*/
|
|
55
|
-
validAvatar?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Datasets of chart legend.
|
|
58
|
-
*/
|
|
59
|
-
legend?: PieChartLegend;
|
|
60
|
-
/**
|
|
61
|
-
* Responsive state.
|
|
62
|
-
*/
|
|
63
|
-
isMobile?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Customize tooltip label.
|
|
66
|
-
*/
|
|
67
|
-
tooltip?: PieChartTooltip;
|
|
68
|
-
/**
|
|
69
|
-
* Label config of chart.
|
|
70
|
-
*/
|
|
71
|
-
label?: PieChartLabel;
|
|
72
|
-
/**
|
|
73
|
-
* Custom outer radius size.
|
|
74
|
-
*/
|
|
75
|
-
outerRadius?: number;
|
|
76
|
-
/**
|
|
77
|
-
* Custom inner radius size.
|
|
78
|
-
*/
|
|
79
|
-
innerRadius?: number;
|
|
80
|
-
}
|
|
81
|
-
declare const PieChartComponent: {
|
|
82
|
-
({ data, css, avatarURL, avatarAcronym, validAvatar, legend, isMobile, tooltip, title, subtitle, label, outerRadius, innerRadius, }: PieChartProps): JSX.Element;
|
|
83
|
-
defaultProps: {
|
|
84
|
-
data: never[];
|
|
85
|
-
avatarURL: undefined;
|
|
86
|
-
avatarAcronym: string;
|
|
87
|
-
validAvatar: boolean;
|
|
88
|
-
legend: {
|
|
89
|
-
show: boolean;
|
|
90
|
-
showTotal: boolean;
|
|
91
|
-
data: never[];
|
|
92
|
-
position: string;
|
|
93
|
-
height: number;
|
|
94
|
-
};
|
|
95
|
-
isMobile: boolean;
|
|
96
|
-
outerRadius: number;
|
|
97
|
-
innerRadius: number;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
export default PieChartComponent;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LabelProps } from 'recharts';
|
|
3
|
+
import { CSS } from '../../config/stitches.config';
|
|
4
|
+
import './styles.css';
|
|
5
|
+
interface PieChartData {
|
|
6
|
+
name: string;
|
|
7
|
+
total: number;
|
|
8
|
+
color: string;
|
|
9
|
+
}
|
|
10
|
+
interface PieChartLegend {
|
|
11
|
+
show?: boolean;
|
|
12
|
+
showTotal?: boolean;
|
|
13
|
+
position?: 'right' | 'bottom' | 'left';
|
|
14
|
+
height?: number;
|
|
15
|
+
}
|
|
16
|
+
interface PieChartTooltip {
|
|
17
|
+
label?: (number: any) => string;
|
|
18
|
+
render?: () => JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
interface PieChartLabel {
|
|
21
|
+
show?: boolean;
|
|
22
|
+
dataKey?: string;
|
|
23
|
+
position?: LabelProps['position'];
|
|
24
|
+
formatter?: (string: any) => string;
|
|
25
|
+
render?: (any: any) => JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
interface PieChartProps {
|
|
28
|
+
/**
|
|
29
|
+
* Section title of the chart.
|
|
30
|
+
*/
|
|
31
|
+
title?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Subtitle of the chart.
|
|
34
|
+
*/
|
|
35
|
+
subtitle?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Datasets of the chart.
|
|
38
|
+
*/
|
|
39
|
+
data: PieChartData[];
|
|
40
|
+
/**
|
|
41
|
+
* Additional css property.
|
|
42
|
+
*/
|
|
43
|
+
css?: CSS;
|
|
44
|
+
/**
|
|
45
|
+
* Avatar url address.
|
|
46
|
+
*/
|
|
47
|
+
avatarURL?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Acronym text if avatar not valid.
|
|
50
|
+
*/
|
|
51
|
+
avatarAcronym?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Validitiy of avatar.
|
|
54
|
+
*/
|
|
55
|
+
validAvatar?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Datasets of chart legend.
|
|
58
|
+
*/
|
|
59
|
+
legend?: PieChartLegend;
|
|
60
|
+
/**
|
|
61
|
+
* Responsive state.
|
|
62
|
+
*/
|
|
63
|
+
isMobile?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Customize tooltip label.
|
|
66
|
+
*/
|
|
67
|
+
tooltip?: PieChartTooltip;
|
|
68
|
+
/**
|
|
69
|
+
* Label config of chart.
|
|
70
|
+
*/
|
|
71
|
+
label?: PieChartLabel;
|
|
72
|
+
/**
|
|
73
|
+
* Custom outer radius size.
|
|
74
|
+
*/
|
|
75
|
+
outerRadius?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Custom inner radius size.
|
|
78
|
+
*/
|
|
79
|
+
innerRadius?: number;
|
|
80
|
+
}
|
|
81
|
+
declare const PieChartComponent: {
|
|
82
|
+
({ data, css, avatarURL, avatarAcronym, validAvatar, legend, isMobile, tooltip, title, subtitle, label, outerRadius, innerRadius, }: PieChartProps): JSX.Element;
|
|
83
|
+
defaultProps: {
|
|
84
|
+
data: never[];
|
|
85
|
+
avatarURL: undefined;
|
|
86
|
+
avatarAcronym: string;
|
|
87
|
+
validAvatar: boolean;
|
|
88
|
+
legend: {
|
|
89
|
+
show: boolean;
|
|
90
|
+
showTotal: boolean;
|
|
91
|
+
data: never[];
|
|
92
|
+
position: string;
|
|
93
|
+
height: number;
|
|
94
|
+
};
|
|
95
|
+
isMobile: boolean;
|
|
96
|
+
outerRadius: number;
|
|
97
|
+
innerRadius: number;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export default PieChartComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as PieChart } from './PieChart';
|
|
1
|
+
export { default as PieChart } from './PieChart';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ProgressListData {
|
|
3
|
-
progress: number;
|
|
4
|
-
title?: string | (() => HTMLElement | React.ReactElement | JSX.Element);
|
|
5
|
-
icon?: React.ReactElement | undefined;
|
|
6
|
-
render?: () => JSX.Element | JSX.Element;
|
|
7
|
-
}
|
|
8
|
-
interface ProgressIndicatorProps {
|
|
9
|
-
direction?: 'horizontal' | 'vertical';
|
|
10
|
-
progress: number;
|
|
11
|
-
progressError?: number;
|
|
12
|
-
progressList: ProgressListData[];
|
|
13
|
-
width?: number;
|
|
14
|
-
gap?: number;
|
|
15
|
-
}
|
|
16
|
-
export default function ProgressIndicator(props: ProgressIndicatorProps): JSX.Element;
|
|
17
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ProgressListData {
|
|
3
|
+
progress: number;
|
|
4
|
+
title?: string | (() => HTMLElement | React.ReactElement | JSX.Element);
|
|
5
|
+
icon?: React.ReactElement | undefined;
|
|
6
|
+
render?: () => JSX.Element | JSX.Element;
|
|
7
|
+
}
|
|
8
|
+
interface ProgressIndicatorProps {
|
|
9
|
+
direction?: 'horizontal' | 'vertical';
|
|
10
|
+
progress: number;
|
|
11
|
+
progressError?: number;
|
|
12
|
+
progressList: ProgressListData[];
|
|
13
|
+
width?: number;
|
|
14
|
+
gap?: number;
|
|
15
|
+
}
|
|
16
|
+
export default function ProgressIndicator(props: ProgressIndicatorProps): JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as ProgressIndicator } from './ProgressIndicator';
|
|
1
|
+
export { default as ProgressIndicator } from './ProgressIndicator';
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { ScrollConfig } from './ScrollSyncNode';
|
|
3
|
-
export interface ScrollSyncProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
/**syncing enable control */
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
/** In case we want scroll to be proportionally applied regardless of the width and/or height*/
|
|
8
|
-
proportional?: boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* node should be scrollable
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* node should be scrollable
|
|
16
|
-
*/
|
|
17
|
-
interface SyncableElement {
|
|
18
|
-
node: Node;
|
|
19
|
-
scroll: ScrollConfig;
|
|
20
|
-
}
|
|
21
|
-
interface ScrollingSyncerContextValues {
|
|
22
|
-
/**
|
|
23
|
-
* register node to be synced with other scrolled nodes
|
|
24
|
-
*/
|
|
25
|
-
registerNode: (node: SyncableElement, groups: string[]) => void;
|
|
26
|
-
/**
|
|
27
|
-
* unregister node to stop syncing with other scrolled nodes
|
|
28
|
-
*/
|
|
29
|
-
unregisterNode: (node: SyncableElement, group: string[]) => void;
|
|
30
|
-
/**
|
|
31
|
-
* scroll handler for each node.onScroll
|
|
32
|
-
*/
|
|
33
|
-
onScroll: (e: React.UIEvent<HTMLElement>, groups: string[]) => void;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* ScrollingSyncerContext is the context to be handling scrolled nodes
|
|
37
|
-
*/
|
|
38
|
-
export declare const ScrollingSyncerContext: React.Context<ScrollingSyncerContextValues>;
|
|
39
|
-
/**
|
|
40
|
-
* ScrollSync component is a context based component,
|
|
41
|
-
* that wrappes children to be .Provided with context utils and eventsHandlers
|
|
42
|
-
* @param props ScrollSyncProps
|
|
43
|
-
*/
|
|
44
|
-
export declare const ScrollSync: FC<ScrollSyncProps>;
|
|
45
|
-
export default ScrollSync;
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { ScrollConfig } from './ScrollSyncNode';
|
|
3
|
+
export interface ScrollSyncProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/**syncing enable control */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/** In case we want scroll to be proportionally applied regardless of the width and/or height*/
|
|
8
|
+
proportional?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* node should be scrollable
|
|
12
|
+
*/
|
|
13
|
+
type Node = (EventTarget & HTMLElement) | null;
|
|
14
|
+
/**
|
|
15
|
+
* node should be scrollable
|
|
16
|
+
*/
|
|
17
|
+
interface SyncableElement {
|
|
18
|
+
node: Node;
|
|
19
|
+
scroll: ScrollConfig;
|
|
20
|
+
}
|
|
21
|
+
interface ScrollingSyncerContextValues {
|
|
22
|
+
/**
|
|
23
|
+
* register node to be synced with other scrolled nodes
|
|
24
|
+
*/
|
|
25
|
+
registerNode: (node: SyncableElement, groups: string[]) => void;
|
|
26
|
+
/**
|
|
27
|
+
* unregister node to stop syncing with other scrolled nodes
|
|
28
|
+
*/
|
|
29
|
+
unregisterNode: (node: SyncableElement, group: string[]) => void;
|
|
30
|
+
/**
|
|
31
|
+
* scroll handler for each node.onScroll
|
|
32
|
+
*/
|
|
33
|
+
onScroll: (e: React.UIEvent<HTMLElement>, groups: string[]) => void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* ScrollingSyncerContext is the context to be handling scrolled nodes
|
|
37
|
+
*/
|
|
38
|
+
export declare const ScrollingSyncerContext: React.Context<ScrollingSyncerContextValues>;
|
|
39
|
+
/**
|
|
40
|
+
* ScrollSync component is a context based component,
|
|
41
|
+
* that wrappes children to be .Provided with context utils and eventsHandlers
|
|
42
|
+
* @param props ScrollSyncProps
|
|
43
|
+
*/
|
|
44
|
+
export declare const ScrollSync: FC<ScrollSyncProps>;
|
|
45
|
+
export default ScrollSync;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* ScrollSyncNode Component
|
|
4
|
-
*
|
|
5
|
-
* Wrap your content in it to keep its scroll position in sync with other panes
|
|
6
|
-
*/
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
interface ScrollSyncNodeProps {
|
|
10
|
-
/**
|
|
11
|
-
* Children
|
|
12
|
-
*/
|
|
13
|
-
children: React.ReactElement;
|
|
14
|
-
/**
|
|
15
|
-
* Groups to make the children attached to
|
|
16
|
-
*/
|
|
17
|
-
group?: string | string[];
|
|
18
|
-
/**
|
|
19
|
-
* If the scrolling is enabled or not
|
|
20
|
-
*/
|
|
21
|
-
scroll?: ScrollConfig;
|
|
22
|
-
/**
|
|
23
|
-
* Prevent scroll on current node if axis is locked
|
|
24
|
-
*/
|
|
25
|
-
selfLockAxis?: LockAxis;
|
|
26
|
-
/**
|
|
27
|
-
* Callback for scroll handling
|
|
28
|
-
*/
|
|
29
|
-
onScroll?: (e: React.UIEvent<HTMLElement>) => void;
|
|
30
|
-
}
|
|
31
|
-
export declare const ScrollSyncNode: React.ForwardRefExoticComponent<ScrollSyncNodeProps & React.RefAttributes<EventTarget & HTMLElement>>;
|
|
32
|
-
export default ScrollSyncNode;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* ScrollSyncNode Component
|
|
4
|
+
*
|
|
5
|
+
* Wrap your content in it to keep its scroll position in sync with other panes
|
|
6
|
+
*/
|
|
7
|
+
export type ScrollConfig = 'all' | 'vertical-only' | 'horizontal-only';
|
|
8
|
+
export type LockAxis = 'X' | 'Y' | 'XY' | null;
|
|
9
|
+
interface ScrollSyncNodeProps {
|
|
10
|
+
/**
|
|
11
|
+
* Children
|
|
12
|
+
*/
|
|
13
|
+
children: React.ReactElement;
|
|
14
|
+
/**
|
|
15
|
+
* Groups to make the children attached to
|
|
16
|
+
*/
|
|
17
|
+
group?: string | string[];
|
|
18
|
+
/**
|
|
19
|
+
* If the scrolling is enabled or not
|
|
20
|
+
*/
|
|
21
|
+
scroll?: ScrollConfig;
|
|
22
|
+
/**
|
|
23
|
+
* Prevent scroll on current node if axis is locked
|
|
24
|
+
*/
|
|
25
|
+
selfLockAxis?: LockAxis;
|
|
26
|
+
/**
|
|
27
|
+
* Callback for scroll handling
|
|
28
|
+
*/
|
|
29
|
+
onScroll?: (e: React.UIEvent<HTMLElement>) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const ScrollSyncNode: React.ForwardRefExoticComponent<ScrollSyncNodeProps & React.RefAttributes<EventTarget & HTMLElement>>;
|
|
32
|
+
export default ScrollSyncNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as ScrollSync } from './ScrollSync';
|
|
2
|
-
export { default as ScrollSyncNode } from './ScrollSyncNode';
|
|
1
|
+
export { default as ScrollSync } from './ScrollSync';
|
|
2
|
+
export { default as ScrollSyncNode } from './ScrollSyncNode';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { LockAxis } from "./ScrollSyncNode";
|
|
2
|
-
export declare const toArray: (groups: string | string[]) => string[];
|
|
3
|
-
export declare const getMovingAxis: (e: WheelEvent) => LockAxis;
|
|
1
|
+
import { LockAxis } from "./ScrollSyncNode";
|
|
2
|
+
export declare const toArray: (groups: string | string[]) => string[];
|
|
3
|
+
export declare const getMovingAxis: (e: WheelEvent) => LockAxis;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Separator';
|
|
2
|
-
export { default as Separator } from './Separator';
|
|
1
|
+
export * from './Separator';
|
|
2
|
+
export { default as Separator } from './Separator';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CSS } from '../../config/stitches.config';
|
|
3
|
-
import 'react-loading-skeleton/dist/skeleton.css';
|
|
4
|
-
interface SkeletonProps {
|
|
5
|
-
css?: CSS;
|
|
6
|
-
variant?: 'group' | 'single';
|
|
7
|
-
color?: 'primary' | 'secondary';
|
|
8
|
-
width?: string | number;
|
|
9
|
-
patternCount?: number;
|
|
10
|
-
}
|
|
11
|
-
declare function Skeleton(props: SkeletonProps): JSX.Element;
|
|
12
|
-
declare namespace Skeleton {
|
|
13
|
-
var defaultProps: {
|
|
14
|
-
variant: string;
|
|
15
|
-
color: string;
|
|
16
|
-
width: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export default Skeleton;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CSS } from '../../config/stitches.config';
|
|
3
|
+
import 'react-loading-skeleton/dist/skeleton.css';
|
|
4
|
+
interface SkeletonProps {
|
|
5
|
+
css?: CSS;
|
|
6
|
+
variant?: 'group' | 'single';
|
|
7
|
+
color?: 'primary' | 'secondary';
|
|
8
|
+
width?: string | number;
|
|
9
|
+
patternCount?: number;
|
|
10
|
+
}
|
|
11
|
+
declare function Skeleton(props: SkeletonProps): JSX.Element;
|
|
12
|
+
declare namespace Skeleton {
|
|
13
|
+
var defaultProps: {
|
|
14
|
+
variant: string;
|
|
15
|
+
color: string;
|
|
16
|
+
width: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export default Skeleton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Skeleton } from './Skeleton';
|
|
1
|
+
export { default as Skeleton } from './Skeleton';
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type * as Stitches from '@stitches/react';
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
withTolltip?: boolean;
|
|
6
|
-
tooltipsContents?: string;
|
|
7
|
-
hidden: boolean;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
enterRight?: string;
|
|
11
|
-
enterLeft?: string;
|
|
12
|
-
exitRight?: string;
|
|
13
|
-
exitLeft?: string;
|
|
14
|
-
intro?: string;
|
|
15
|
-
};
|
|
16
|
-
interface IStepWizardProps {
|
|
17
|
-
initialStep: number;
|
|
18
|
-
navContents: Array<DataContents>;
|
|
19
|
-
isMobile?: boolean;
|
|
20
|
-
cssNav?: Stitches.CSS;
|
|
21
|
-
children: React.ReactNode;
|
|
22
|
-
transitions?: Transitions;
|
|
23
|
-
onStepChange?: (stepChange: {
|
|
24
|
-
prevStep: number;
|
|
25
|
-
activeStep: number;
|
|
26
|
-
}) => void;
|
|
27
|
-
setSw: () => void;
|
|
28
|
-
scrollTop?: boolean;
|
|
29
|
-
forbidClickNav: boolean;
|
|
30
|
-
hide?: boolean;
|
|
31
|
-
onChangeVisibility?: (isHide: boolean) => void;
|
|
32
|
-
onNavClicked?: () => void;
|
|
33
|
-
hideCheckedIcon?: boolean;
|
|
34
|
-
appendContent?: JSX.Element;
|
|
35
|
-
isLazyMount?: boolean;
|
|
36
|
-
}
|
|
37
|
-
declare const StepWizard: {
|
|
38
|
-
(props: IStepWizardProps): JSX.Element;
|
|
39
|
-
defaultProps: {
|
|
40
|
-
isLazyMount: boolean;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export default StepWizard;
|
|
44
|
-
export { StepWizardContext } from './StepWizard';
|
|
45
|
-
export { StepWizard };
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type * as Stitches from '@stitches/react';
|
|
3
|
+
type DataContents = {
|
|
4
|
+
title: string;
|
|
5
|
+
withTolltip?: boolean;
|
|
6
|
+
tooltipsContents?: string;
|
|
7
|
+
hidden: boolean;
|
|
8
|
+
};
|
|
9
|
+
type Transitions = {
|
|
10
|
+
enterRight?: string;
|
|
11
|
+
enterLeft?: string;
|
|
12
|
+
exitRight?: string;
|
|
13
|
+
exitLeft?: string;
|
|
14
|
+
intro?: string;
|
|
15
|
+
};
|
|
16
|
+
interface IStepWizardProps {
|
|
17
|
+
initialStep: number;
|
|
18
|
+
navContents: Array<DataContents>;
|
|
19
|
+
isMobile?: boolean;
|
|
20
|
+
cssNav?: Stitches.CSS;
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
transitions?: Transitions;
|
|
23
|
+
onStepChange?: (stepChange: {
|
|
24
|
+
prevStep: number;
|
|
25
|
+
activeStep: number;
|
|
26
|
+
}) => void;
|
|
27
|
+
setSw: () => void;
|
|
28
|
+
scrollTop?: boolean;
|
|
29
|
+
forbidClickNav: boolean;
|
|
30
|
+
hide?: boolean;
|
|
31
|
+
onChangeVisibility?: (isHide: boolean) => void;
|
|
32
|
+
onNavClicked?: () => void;
|
|
33
|
+
hideCheckedIcon?: boolean;
|
|
34
|
+
appendContent?: JSX.Element;
|
|
35
|
+
isLazyMount?: boolean;
|
|
36
|
+
}
|
|
37
|
+
declare const StepWizard: {
|
|
38
|
+
(props: IStepWizardProps): JSX.Element;
|
|
39
|
+
defaultProps: {
|
|
40
|
+
isLazyMount: boolean;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export default StepWizard;
|
|
44
|
+
export { StepWizardContext } from './StepWizard';
|
|
45
|
+
export { StepWizard };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CSS } from '../../config/stitches.config';
|
|
3
|
-
import { EmptyDataProps, RowGroup, Decoration } from './Table';
|
|
4
|
-
import { TableInstance } from 'react-table';
|
|
5
|
-
interface CustomRowsStyle {
|
|
6
|
-
predicate: boolean;
|
|
7
|
-
css?: CSS;
|
|
8
|
-
hideRowMenuColumn?: boolean;
|
|
9
|
-
}
|
|
10
|
-
interface IRowVirtualizer {
|
|
11
|
-
virtualItems: {
|
|
12
|
-
start: number;
|
|
13
|
-
end: number;
|
|
14
|
-
}[];
|
|
15
|
-
totalSize: number;
|
|
16
|
-
}
|
|
17
|
-
interface MobileTableProps {
|
|
18
|
-
instance: TableInstance<object>;
|
|
19
|
-
totalData: number;
|
|
20
|
-
isInfiniteScroll: boolean;
|
|
21
|
-
footer: JSX.Element;
|
|
22
|
-
infiniteScrollWrapper: (children: JSX.Element) => JSX.Element;
|
|
23
|
-
isLoading: boolean;
|
|
24
|
-
customEmptyDataProps: EmptyDataProps;
|
|
25
|
-
rowGroup?: RowGroup;
|
|
26
|
-
hiddenColumns?: string[];
|
|
27
|
-
css?: CSS;
|
|
28
|
-
customRowsStyle?: (e: any) => CustomRowsStyle[];
|
|
29
|
-
cellAlign?: 'top' | 'center' | 'bottom';
|
|
30
|
-
renderContextMenu: () => JSX.Element;
|
|
31
|
-
handleRowClick: (row: object, index: number) => void;
|
|
32
|
-
additionalExceptionIds: string[];
|
|
33
|
-
hideHeader?: boolean;
|
|
34
|
-
decoration?: Decoration;
|
|
35
|
-
rowVirtualizer: IRowVirtualizer;
|
|
36
|
-
virtualized?: boolean;
|
|
37
|
-
}
|
|
38
|
-
declare const MobileTable: React.ForwardRefExoticComponent<MobileTableProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
-
export default MobileTable;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CSS } from '../../config/stitches.config';
|
|
3
|
+
import { EmptyDataProps, RowGroup, Decoration } from './Table';
|
|
4
|
+
import { TableInstance } from 'react-table';
|
|
5
|
+
interface CustomRowsStyle {
|
|
6
|
+
predicate: boolean;
|
|
7
|
+
css?: CSS;
|
|
8
|
+
hideRowMenuColumn?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface IRowVirtualizer {
|
|
11
|
+
virtualItems: {
|
|
12
|
+
start: number;
|
|
13
|
+
end: number;
|
|
14
|
+
}[];
|
|
15
|
+
totalSize: number;
|
|
16
|
+
}
|
|
17
|
+
interface MobileTableProps {
|
|
18
|
+
instance: TableInstance<object>;
|
|
19
|
+
totalData: number;
|
|
20
|
+
isInfiniteScroll: boolean;
|
|
21
|
+
footer: JSX.Element;
|
|
22
|
+
infiniteScrollWrapper: (children: JSX.Element) => JSX.Element;
|
|
23
|
+
isLoading: boolean;
|
|
24
|
+
customEmptyDataProps: EmptyDataProps;
|
|
25
|
+
rowGroup?: RowGroup;
|
|
26
|
+
hiddenColumns?: string[];
|
|
27
|
+
css?: CSS;
|
|
28
|
+
customRowsStyle?: (e: any) => CustomRowsStyle[];
|
|
29
|
+
cellAlign?: 'top' | 'center' | 'bottom';
|
|
30
|
+
renderContextMenu: () => JSX.Element;
|
|
31
|
+
handleRowClick: (row: object, index: number) => void;
|
|
32
|
+
additionalExceptionIds: string[];
|
|
33
|
+
hideHeader?: boolean;
|
|
34
|
+
decoration?: Decoration;
|
|
35
|
+
rowVirtualizer: IRowVirtualizer;
|
|
36
|
+
virtualized?: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare const MobileTable: React.ForwardRefExoticComponent<MobileTableProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
export default MobileTable;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Table';
|
|
2
|
-
export * from './components';
|
|
3
|
-
export { default as MobileTable } from './MobileTable';
|
|
1
|
+
export * from './Table';
|
|
2
|
+
export * from './components';
|
|
3
|
+
export { default as MobileTable } from './MobileTable';
|