@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@majoo-ui/react",
|
|
3
|
-
"version": "1.61.
|
|
3
|
+
"version": "1.61.25-rc.2",
|
|
4
4
|
"main": "./index.esm.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"typings": "./index.d.ts",
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"react": "17.0.2",
|
|
15
|
-
"react-dom": "17.0.2"
|
|
16
|
-
"prop-types": "^15.8.1"
|
|
15
|
+
"react-dom": "17.0.2"
|
|
17
16
|
},
|
|
18
17
|
"dependencies": {
|
|
19
18
|
"@floating-ui/react": "^0.19.2",
|
|
@@ -77,5 +76,6 @@
|
|
|
77
76
|
"recharts": "^2.1.9",
|
|
78
77
|
"axios": "1.6.0",
|
|
79
78
|
"yup": "^0.32.11"
|
|
80
|
-
}
|
|
79
|
+
},
|
|
80
|
+
"types": "./index.d.ts"
|
|
81
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Colors';
|
|
1
|
+
export * from './Colors';
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
-
import { BaseRadixNoCss, BaseRadixProps } from '../../type/base.types';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Determines whether one or multiple items can be opened at the same time.
|
|
8
|
-
*/
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
} & AccordionPrimitiveProps & BaseRadixProps;
|
|
11
|
-
export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
|
|
13
|
-
interface AccordionTriggerProps extends AccordionTriggerPrimitiveProps, BaseRadixProps {
|
|
14
|
-
/**
|
|
15
|
-
* If the value is 'false' then it will hide the arrow icon.
|
|
16
|
-
*/
|
|
17
|
-
hasContent?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Specify the arrow position.
|
|
20
|
-
*/
|
|
21
|
-
arrowPosition?: 'right' | 'left';
|
|
22
|
-
/**
|
|
23
|
-
* Specify the arrow icon color.
|
|
24
|
-
*/
|
|
25
|
-
arrowColor?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Custom the arrow component.
|
|
28
|
-
*/
|
|
29
|
-
customArrow?: React.ReactNode;
|
|
30
|
-
children: React.ReactNode;
|
|
31
|
-
}
|
|
32
|
-
export declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
-
export declare const AccordionItem: React.FC<AccordionPrimitive.AccordionItemProps & BaseRadixNoCss>;
|
|
34
|
-
export declare const AccordionContent: React.FC<AccordionPrimitive.AccordionContentProps & BaseRadixNoCss>;
|
|
35
|
-
export {};
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
+
import { BaseRadixNoCss, BaseRadixProps } from '../../type/base.types';
|
|
4
|
+
type AccordionPrimitiveProps = AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps;
|
|
5
|
+
type AccordionProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Determines whether one or multiple items can be opened at the same time.
|
|
8
|
+
*/
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
} & AccordionPrimitiveProps & BaseRadixProps;
|
|
11
|
+
export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
type AccordionTriggerPrimitiveProps = Omit<AccordionPrimitive.AccordionTriggerProps, keyof ComponentPropsWithoutRef<'button'>>;
|
|
13
|
+
interface AccordionTriggerProps extends AccordionTriggerPrimitiveProps, BaseRadixProps {
|
|
14
|
+
/**
|
|
15
|
+
* If the value is 'false' then it will hide the arrow icon.
|
|
16
|
+
*/
|
|
17
|
+
hasContent?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Specify the arrow position.
|
|
20
|
+
*/
|
|
21
|
+
arrowPosition?: 'right' | 'left';
|
|
22
|
+
/**
|
|
23
|
+
* Specify the arrow icon color.
|
|
24
|
+
*/
|
|
25
|
+
arrowColor?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Custom the arrow component.
|
|
28
|
+
*/
|
|
29
|
+
customArrow?: React.ReactNode;
|
|
30
|
+
children: React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
export declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
export declare const AccordionItem: React.FC<AccordionPrimitive.AccordionItemProps & BaseRadixNoCss>;
|
|
34
|
+
export declare const AccordionContent: React.FC<AccordionPrimitive.AccordionContentProps & BaseRadixNoCss>;
|
|
35
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Accordion';
|
|
1
|
+
export * from './Accordion';
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { LabelProps } from 'recharts';
|
|
3
|
-
import { CSS } from '../../config/stitches.config';
|
|
4
|
-
export interface BarChartData {
|
|
5
|
-
name: string;
|
|
6
|
-
total: number;
|
|
7
|
-
color: string;
|
|
8
|
-
}
|
|
9
|
-
interface BarChartLegend {
|
|
10
|
-
show: boolean;
|
|
11
|
-
showTotal: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface BarChartTooltip {
|
|
14
|
-
label?: (number: any) => string;
|
|
15
|
-
render?: () => JSX.Element;
|
|
16
|
-
}
|
|
17
|
-
interface BarChartLabel {
|
|
18
|
-
show?: boolean;
|
|
19
|
-
dataKey?: string;
|
|
20
|
-
position?: LabelProps['position'];
|
|
21
|
-
formatter?: (string: any) => string;
|
|
22
|
-
render?: () => JSX.Element;
|
|
23
|
-
}
|
|
24
|
-
interface YAxisProps {
|
|
25
|
-
show?: boolean;
|
|
26
|
-
}
|
|
27
|
-
interface BarChartProps {
|
|
28
|
-
/**
|
|
29
|
-
* Additional css property.
|
|
30
|
-
*/
|
|
31
|
-
css?: CSS;
|
|
32
|
-
/**
|
|
33
|
-
* Datasets of chart.
|
|
34
|
-
*/
|
|
35
|
-
data: BarChartData[];
|
|
36
|
-
/**
|
|
37
|
-
* Legend config of chart.
|
|
38
|
-
*/
|
|
39
|
-
legend?: BarChartLegend;
|
|
40
|
-
/**
|
|
41
|
-
* Title section of chart.
|
|
42
|
-
*/
|
|
43
|
-
title?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Subtitle section of chart.
|
|
46
|
-
*/
|
|
47
|
-
subtitle?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Tooltip config of chart.
|
|
50
|
-
*/
|
|
51
|
-
tooltip?: BarChartTooltip;
|
|
52
|
-
/**
|
|
53
|
-
* Direction of Bar Chart layout.
|
|
54
|
-
*/
|
|
55
|
-
direction?: 'vertical' | 'horizontal';
|
|
56
|
-
/**
|
|
57
|
-
* Format axis label.
|
|
58
|
-
*/
|
|
59
|
-
tickFormatter?: (number: any) => string;
|
|
60
|
-
/**
|
|
61
|
-
* Label config of chart.
|
|
62
|
-
*/
|
|
63
|
-
label?: BarChartLabel;
|
|
64
|
-
/**
|
|
65
|
-
* Y Axis config of chart.
|
|
66
|
-
*/
|
|
67
|
-
yAxis?: YAxisProps;
|
|
68
|
-
}
|
|
69
|
-
declare function BarChartComponent({ css, data, legend, title, subtitle, tooltip, direction, tickFormatter, label, yAxis, }: BarChartProps): JSX.Element;
|
|
70
|
-
declare namespace BarChartComponent {
|
|
71
|
-
var defaultProps: {
|
|
72
|
-
data: never[];
|
|
73
|
-
legend: {
|
|
74
|
-
show: boolean;
|
|
75
|
-
showTotal: boolean;
|
|
76
|
-
};
|
|
77
|
-
yAxis: {
|
|
78
|
-
show: boolean;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
export default BarChartComponent;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LabelProps } from 'recharts';
|
|
3
|
+
import { CSS } from '../../config/stitches.config';
|
|
4
|
+
export interface BarChartData {
|
|
5
|
+
name: string;
|
|
6
|
+
total: number;
|
|
7
|
+
color: string;
|
|
8
|
+
}
|
|
9
|
+
interface BarChartLegend {
|
|
10
|
+
show: boolean;
|
|
11
|
+
showTotal: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface BarChartTooltip {
|
|
14
|
+
label?: (number: any) => string;
|
|
15
|
+
render?: () => JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
interface BarChartLabel {
|
|
18
|
+
show?: boolean;
|
|
19
|
+
dataKey?: string;
|
|
20
|
+
position?: LabelProps['position'];
|
|
21
|
+
formatter?: (string: any) => string;
|
|
22
|
+
render?: () => JSX.Element;
|
|
23
|
+
}
|
|
24
|
+
interface YAxisProps {
|
|
25
|
+
show?: boolean;
|
|
26
|
+
}
|
|
27
|
+
interface BarChartProps {
|
|
28
|
+
/**
|
|
29
|
+
* Additional css property.
|
|
30
|
+
*/
|
|
31
|
+
css?: CSS;
|
|
32
|
+
/**
|
|
33
|
+
* Datasets of chart.
|
|
34
|
+
*/
|
|
35
|
+
data: BarChartData[];
|
|
36
|
+
/**
|
|
37
|
+
* Legend config of chart.
|
|
38
|
+
*/
|
|
39
|
+
legend?: BarChartLegend;
|
|
40
|
+
/**
|
|
41
|
+
* Title section of chart.
|
|
42
|
+
*/
|
|
43
|
+
title?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Subtitle section of chart.
|
|
46
|
+
*/
|
|
47
|
+
subtitle?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Tooltip config of chart.
|
|
50
|
+
*/
|
|
51
|
+
tooltip?: BarChartTooltip;
|
|
52
|
+
/**
|
|
53
|
+
* Direction of Bar Chart layout.
|
|
54
|
+
*/
|
|
55
|
+
direction?: 'vertical' | 'horizontal';
|
|
56
|
+
/**
|
|
57
|
+
* Format axis label.
|
|
58
|
+
*/
|
|
59
|
+
tickFormatter?: (number: any) => string;
|
|
60
|
+
/**
|
|
61
|
+
* Label config of chart.
|
|
62
|
+
*/
|
|
63
|
+
label?: BarChartLabel;
|
|
64
|
+
/**
|
|
65
|
+
* Y Axis config of chart.
|
|
66
|
+
*/
|
|
67
|
+
yAxis?: YAxisProps;
|
|
68
|
+
}
|
|
69
|
+
declare function BarChartComponent({ css, data, legend, title, subtitle, tooltip, direction, tickFormatter, label, yAxis, }: BarChartProps): JSX.Element;
|
|
70
|
+
declare namespace BarChartComponent {
|
|
71
|
+
var defaultProps: {
|
|
72
|
+
data: never[];
|
|
73
|
+
legend: {
|
|
74
|
+
show: boolean;
|
|
75
|
+
showTotal: boolean;
|
|
76
|
+
};
|
|
77
|
+
yAxis: {
|
|
78
|
+
show: boolean;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export default BarChartComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as BarChart } from './BarChart';
|
|
1
|
+
export { default as BarChart } from './BarChart';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BreadcrumbStyle, BreadcrumbItem, BreadcrumbLinkStyle } from './Breadcrumb';
|
|
3
|
-
|
|
4
|
-
declare const Breadcrumb: React.FC<BreadcrumbProps>;
|
|
5
|
-
|
|
6
|
-
declare const BreadcrumbLink: React.FC<BreadcrumbLinkProps>;
|
|
7
|
-
export { Breadcrumb, BreadcrumbItem, BreadcrumbLink };
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BreadcrumbStyle, BreadcrumbItem, BreadcrumbLinkStyle } from './Breadcrumb';
|
|
3
|
+
type BreadcrumbProps = React.ComponentProps<typeof BreadcrumbStyle>;
|
|
4
|
+
declare const Breadcrumb: React.FC<BreadcrumbProps>;
|
|
5
|
+
type BreadcrumbLinkProps = React.ComponentProps<typeof BreadcrumbLinkStyle>;
|
|
6
|
+
declare const BreadcrumbLink: React.FC<BreadcrumbLinkProps>;
|
|
7
|
+
export { Breadcrumb, BreadcrumbItem, BreadcrumbLink };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Button } from './Button';
|
|
2
|
-
export * from './Button';
|
|
1
|
+
export { default as Button } from './Button';
|
|
2
|
+
export * from './Button';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Card } from './Card';
|
|
2
|
-
export * from './Card';
|
|
1
|
+
export { default as Card } from './Card';
|
|
2
|
+
export * from './Card';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './lineChart';
|
|
1
|
+
export * from './lineChart';
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface ComparatorChangeType {
|
|
3
|
-
type: 'DELETE' | 'ADD' | 'SEARCH';
|
|
4
|
-
payload: any;
|
|
5
|
-
}
|
|
6
|
-
interface LineChartProps {
|
|
7
|
-
/**
|
|
8
|
-
* Title identity for a chart.
|
|
9
|
-
*/
|
|
10
|
-
title: string;
|
|
11
|
-
/**
|
|
12
|
-
* Additional description for a chart.
|
|
13
|
-
*/
|
|
14
|
-
description?: string | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Additional placeholder for comparator input select.
|
|
17
|
-
*/
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
/**
|
|
20
|
-
* List of data to be used as a graph.
|
|
21
|
-
*/
|
|
22
|
-
data: any[];
|
|
23
|
-
/**
|
|
24
|
-
* Mapping of a data list.
|
|
25
|
-
*/
|
|
26
|
-
legendData: any[];
|
|
27
|
-
/**
|
|
28
|
-
* Key to bind xAxis data.
|
|
29
|
-
*/
|
|
30
|
-
xAxisKey: string;
|
|
31
|
-
/**
|
|
32
|
-
* Loading status of chart.
|
|
33
|
-
*/
|
|
34
|
-
isLoading?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Tick formatter period.
|
|
37
|
-
*/
|
|
38
|
-
period?: 'jam' | 'hari' | 'minggu' | 'bulan' | 'tahun';
|
|
39
|
-
/**
|
|
40
|
-
* Customize tooltip label format.
|
|
41
|
-
*/
|
|
42
|
-
chartTypeLabel?: string;
|
|
43
|
-
/**
|
|
44
|
-
* To round up yAxis data.
|
|
45
|
-
*/
|
|
46
|
-
roundUpYAxis?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* List of the comparator.
|
|
49
|
-
*/
|
|
50
|
-
comparatorList?: any[];
|
|
51
|
-
/**
|
|
52
|
-
* Customize xAxis tick formatter.
|
|
53
|
-
*/
|
|
54
|
-
customXAxisFormat?: (value: any) => void;
|
|
55
|
-
/**
|
|
56
|
-
* Customize yAxis tick formatter.
|
|
57
|
-
*/
|
|
58
|
-
customYAxisFormat?: (value: any) => string;
|
|
59
|
-
/**
|
|
60
|
-
* Customize tooltip date format.
|
|
61
|
-
*/
|
|
62
|
-
customTooltipDate?: (value: any) => ReactNode;
|
|
63
|
-
/**
|
|
64
|
-
* on comparator change event handler.
|
|
65
|
-
*/
|
|
66
|
-
onComparatorChange?: (e: ComparatorChangeType) => void;
|
|
67
|
-
}
|
|
68
|
-
export declare const COMPARISON_LIMIT = 5;
|
|
69
|
-
declare function LineChart(props: LineChartProps): JSX.Element;
|
|
70
|
-
declare namespace LineChart {
|
|
71
|
-
var defaultProps: {
|
|
72
|
-
customXAxisFormat: undefined;
|
|
73
|
-
onComparatorChange: undefined;
|
|
74
|
-
comparatorList: never[];
|
|
75
|
-
placeholder: string;
|
|
76
|
-
roundUpYAxis: boolean;
|
|
77
|
-
period: undefined;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
export default LineChart;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface ComparatorChangeType {
|
|
3
|
+
type: 'DELETE' | 'ADD' | 'SEARCH';
|
|
4
|
+
payload: any;
|
|
5
|
+
}
|
|
6
|
+
interface LineChartProps {
|
|
7
|
+
/**
|
|
8
|
+
* Title identity for a chart.
|
|
9
|
+
*/
|
|
10
|
+
title: string;
|
|
11
|
+
/**
|
|
12
|
+
* Additional description for a chart.
|
|
13
|
+
*/
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Additional placeholder for comparator input select.
|
|
17
|
+
*/
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/**
|
|
20
|
+
* List of data to be used as a graph.
|
|
21
|
+
*/
|
|
22
|
+
data: any[];
|
|
23
|
+
/**
|
|
24
|
+
* Mapping of a data list.
|
|
25
|
+
*/
|
|
26
|
+
legendData: any[];
|
|
27
|
+
/**
|
|
28
|
+
* Key to bind xAxis data.
|
|
29
|
+
*/
|
|
30
|
+
xAxisKey: string;
|
|
31
|
+
/**
|
|
32
|
+
* Loading status of chart.
|
|
33
|
+
*/
|
|
34
|
+
isLoading?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Tick formatter period.
|
|
37
|
+
*/
|
|
38
|
+
period?: 'jam' | 'hari' | 'minggu' | 'bulan' | 'tahun';
|
|
39
|
+
/**
|
|
40
|
+
* Customize tooltip label format.
|
|
41
|
+
*/
|
|
42
|
+
chartTypeLabel?: string;
|
|
43
|
+
/**
|
|
44
|
+
* To round up yAxis data.
|
|
45
|
+
*/
|
|
46
|
+
roundUpYAxis?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* List of the comparator.
|
|
49
|
+
*/
|
|
50
|
+
comparatorList?: any[];
|
|
51
|
+
/**
|
|
52
|
+
* Customize xAxis tick formatter.
|
|
53
|
+
*/
|
|
54
|
+
customXAxisFormat?: (value: any) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Customize yAxis tick formatter.
|
|
57
|
+
*/
|
|
58
|
+
customYAxisFormat?: (value: any) => string;
|
|
59
|
+
/**
|
|
60
|
+
* Customize tooltip date format.
|
|
61
|
+
*/
|
|
62
|
+
customTooltipDate?: (value: any) => ReactNode;
|
|
63
|
+
/**
|
|
64
|
+
* on comparator change event handler.
|
|
65
|
+
*/
|
|
66
|
+
onComparatorChange?: (e: ComparatorChangeType) => void;
|
|
67
|
+
}
|
|
68
|
+
export declare const COMPARISON_LIMIT = 5;
|
|
69
|
+
declare function LineChart(props: LineChartProps): JSX.Element;
|
|
70
|
+
declare namespace LineChart {
|
|
71
|
+
var defaultProps: {
|
|
72
|
+
customXAxisFormat: undefined;
|
|
73
|
+
onComparatorChange: undefined;
|
|
74
|
+
comparatorList: never[];
|
|
75
|
+
placeholder: string;
|
|
76
|
+
roundUpYAxis: boolean;
|
|
77
|
+
period: undefined;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export default LineChart;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface ComparatorProps {
|
|
3
|
-
option: any;
|
|
4
|
-
onCloseClick: (any: any) => void;
|
|
5
|
-
onComparatorAdd: (any: any) => void;
|
|
6
|
-
legendData: any[];
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
onComparatorSearch: (string: any) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const Comparator: {
|
|
11
|
-
(props: ComparatorProps): JSX.Element;
|
|
12
|
-
defaultProps: {
|
|
13
|
-
option: {}[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default Comparator;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ComparatorProps {
|
|
3
|
+
option: any;
|
|
4
|
+
onCloseClick: (any: any) => void;
|
|
5
|
+
onComparatorAdd: (any: any) => void;
|
|
6
|
+
legendData: any[];
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
onComparatorSearch: (string: any) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Comparator: {
|
|
11
|
+
(props: ComparatorProps): JSX.Element;
|
|
12
|
+
defaultProps: {
|
|
13
|
+
option: {}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default Comparator;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const ComparatorController: ({ option, onComparatorAdd, onComparatorSearch, placeholder }: {
|
|
3
|
-
option: any;
|
|
4
|
-
onComparatorAdd: any;
|
|
5
|
-
onComparatorSearch: any;
|
|
6
|
-
placeholder: any;
|
|
7
|
-
}) => JSX.Element;
|
|
8
|
-
export default ComparatorController;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const ComparatorController: ({ option, onComparatorAdd, onComparatorSearch, placeholder }: {
|
|
3
|
+
option: any;
|
|
4
|
+
onComparatorAdd: any;
|
|
5
|
+
onComparatorSearch: any;
|
|
6
|
+
placeholder: any;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export default ComparatorController;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface ComparatorItemProps {
|
|
3
|
-
dataKey: string;
|
|
4
|
-
color: string;
|
|
5
|
-
variants: [];
|
|
6
|
-
onCloseClick: () => void;
|
|
7
|
-
disableClose: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const ComparatorItem: (props: ComparatorItemProps) => JSX.Element;
|
|
10
|
-
export default ComparatorItem;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ComparatorItemProps {
|
|
3
|
+
dataKey: string;
|
|
4
|
+
color: string;
|
|
5
|
+
variants: [];
|
|
6
|
+
onCloseClick: () => void;
|
|
7
|
+
disableClose: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const ComparatorItem: (props: ComparatorItemProps) => JSX.Element;
|
|
10
|
+
export default ComparatorItem;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CSS } from '../../../../config/stitches.config';
|
|
3
|
-
interface ProductListProps {
|
|
4
|
-
variants: [];
|
|
5
|
-
name: string;
|
|
6
|
-
direction: string;
|
|
7
|
-
css: CSS;
|
|
8
|
-
}
|
|
9
|
-
declare const ProductList: (props: ProductListProps) => JSX.Element;
|
|
10
|
-
export default ProductList;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CSS } from '../../../../config/stitches.config';
|
|
3
|
+
interface ProductListProps {
|
|
4
|
+
variants: [];
|
|
5
|
+
name: string;
|
|
6
|
+
direction: string;
|
|
7
|
+
css: CSS;
|
|
8
|
+
}
|
|
9
|
+
declare const ProductList: (props: ProductListProps) => JSX.Element;
|
|
10
|
+
export default ProductList;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface TitleLegendProps {
|
|
3
|
-
title: string | undefined;
|
|
4
|
-
legendData: any[];
|
|
5
|
-
filteredData: any[];
|
|
6
|
-
setFilteredData: (any: any) => void;
|
|
7
|
-
isComparator?: boolean;
|
|
8
|
-
titleOnly?: boolean;
|
|
9
|
-
isDividedByThousand: boolean;
|
|
10
|
-
description: string | undefined;
|
|
11
|
-
}
|
|
12
|
-
declare const TitleLegend: {
|
|
13
|
-
(props: TitleLegendProps): JSX.Element;
|
|
14
|
-
defaultProps: {
|
|
15
|
-
isComparator: undefined;
|
|
16
|
-
titleOnly: boolean;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export default TitleLegend;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface TitleLegendProps {
|
|
3
|
+
title: string | undefined;
|
|
4
|
+
legendData: any[];
|
|
5
|
+
filteredData: any[];
|
|
6
|
+
setFilteredData: (any: any) => void;
|
|
7
|
+
isComparator?: boolean;
|
|
8
|
+
titleOnly?: boolean;
|
|
9
|
+
isDividedByThousand: boolean;
|
|
10
|
+
description: string | undefined;
|
|
11
|
+
}
|
|
12
|
+
declare const TitleLegend: {
|
|
13
|
+
(props: TitleLegendProps): JSX.Element;
|
|
14
|
+
defaultProps: {
|
|
15
|
+
isComparator: undefined;
|
|
16
|
+
titleOnly: boolean;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default TitleLegend;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface TooltipProps {
|
|
3
|
-
hover?: string | null;
|
|
4
|
-
payload: any[];
|
|
5
|
-
active?: boolean;
|
|
6
|
-
legendData: any[];
|
|
7
|
-
maxValue: number;
|
|
8
|
-
xAxisKey: string;
|
|
9
|
-
chartTypeLabel?: string;
|
|
10
|
-
customTooltipDate?: (value: any) => ReactNode;
|
|
11
|
-
}
|
|
12
|
-
declare const Tooltip: {
|
|
13
|
-
(props: TooltipProps): JSX.Element | null;
|
|
14
|
-
defaultProps: {
|
|
15
|
-
hover: null;
|
|
16
|
-
payload: undefined;
|
|
17
|
-
active: undefined;
|
|
18
|
-
legendData: never[];
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default Tooltip;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface TooltipProps {
|
|
3
|
+
hover?: string | null;
|
|
4
|
+
payload: any[];
|
|
5
|
+
active?: boolean;
|
|
6
|
+
legendData: any[];
|
|
7
|
+
maxValue: number;
|
|
8
|
+
xAxisKey: string;
|
|
9
|
+
chartTypeLabel?: string;
|
|
10
|
+
customTooltipDate?: (value: any) => ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const Tooltip: {
|
|
13
|
+
(props: TooltipProps): JSX.Element | null;
|
|
14
|
+
defaultProps: {
|
|
15
|
+
hover: null;
|
|
16
|
+
payload: undefined;
|
|
17
|
+
active: undefined;
|
|
18
|
+
legendData: never[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default Tooltip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as LineChart } from './LineChart';
|
|
1
|
+
export { default as LineChart } from './LineChart';
|