@piu-company/react-toolkit 1.0.2 → 1.0.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/dist/AppProvider.d.ts +16 -16
- package/dist/animations/QuadSpinner.d.ts +13 -13
- package/dist/animations/Ripple.d.ts +15 -15
- package/dist/animations/SvgAnimations.d.ts +11 -11
- package/dist/animations/index.d.ts +3 -3
- package/dist/authentication/AuthenticationProvider.d.ts +11 -11
- package/dist/authentication/context.d.ts +5 -5
- package/dist/authentication/duck.d.ts +36 -36
- package/dist/authentication/index.d.ts +4 -4
- package/dist/authentication/types.d.ts +1 -1
- package/dist/axios.d.ts +167 -167
- package/dist/breadCrumb/BreadCrumbProvider.d.ts +5 -5
- package/dist/breadCrumb/context.d.ts +8 -8
- package/dist/breadCrumb/index.d.ts +3 -3
- package/dist/breadCrumb/types.d.ts +4 -4
- package/dist/components/Consumers/NotificationConsumer.d.ts +1 -1
- package/dist/components/Consumers/SnackbarsConsumer.d.ts +1 -1
- package/dist/components/Consumers/ToolTipConsumer.d.ts +1 -1
- package/dist/components/Consumers/index.d.ts +3 -3
- package/dist/components/Firebase/FbImage.d.ts +7 -7
- package/dist/components/Firebase/index.d.ts +2 -2
- package/dist/components/Firebase/types.d.ts +14 -14
- package/dist/components/Forms/ChangePassword.d.ts +9 -9
- package/dist/components/Forms/index.d.ts +1 -1
- package/dist/components/GoogleCalendar/GoogleCalendarProvider.d.ts +6 -6
- package/dist/components/GoogleCalendar/context.d.ts +5 -5
- package/dist/components/GoogleCalendar/index.d.ts +2 -2
- package/dist/components/GoogleCalendar/types.d.ts +10 -10
- package/dist/components/GoogleMaps/GMap.d.ts +27 -27
- package/dist/components/GoogleMaps/GMapInput.d.ts +15 -15
- package/dist/components/GoogleMaps/GoogleMapsProvider.d.ts +6 -6
- package/dist/components/GoogleMaps/context.d.ts +5 -5
- package/dist/components/GoogleMaps/index.d.ts +4 -4
- package/dist/components/Layout/TitledRow.d.ts +14 -14
- package/dist/components/Layout/index.d.ts +1 -1
- package/dist/components/Level1/A.d.ts +6 -6
- package/dist/components/Level1/Button.d.ts +29 -29
- package/dist/components/Level1/Container.d.ts +57 -57
- package/dist/components/Level1/DropdownButton.d.ts +11 -11
- package/dist/components/Level1/FadeInOut.d.ts +7 -7
- package/dist/components/Level1/Hr.d.ts +13 -13
- package/dist/components/Level1/Icon.d.ts +18 -18
- package/dist/components/Level1/Slider.d.ts +19 -19
- package/dist/components/Level1/Spacer.d.ts +5 -5
- package/dist/components/Level1/Typography.d.ts +37 -37
- package/dist/components/Level1/index.d.ts +10 -10
- package/dist/components/Level2/Card.d.ts +9 -9
- package/dist/components/Level2/Checkbox.d.ts +29 -29
- package/dist/components/Level2/Cover.d.ts +10 -10
- package/dist/components/Level2/DatePicker/DatePicker.d.ts +17 -17
- package/dist/components/Level2/DatePicker/DayPicker.d.ts +43 -43
- package/dist/components/Level2/DatePicker/MonthPicker.d.ts +27 -27
- package/dist/components/Level2/DatePicker/index.d.ts +4 -4
- package/dist/components/Level2/DatePicker/types.d.ts +8 -8
- package/dist/components/Level2/FloatingDiv.d.ts +17 -17
- package/dist/components/Level2/IconButton.d.ts +23 -23
- package/dist/components/Level2/Linker.d.ts +7 -7
- package/dist/components/Level2/MultiButtonSelect.d.ts +24 -24
- package/dist/components/Level2/Overlay.d.ts +36 -36
- package/dist/components/Level2/PanelForm/PanelForm.d.ts +9 -9
- package/dist/components/Level2/PanelForm/PanelFormContent.d.ts +5 -5
- package/dist/components/Level2/PanelForm/PanelFormSaveSection.d.ts +10 -10
- package/dist/components/Level2/PanelForm/PanelFormSection.d.ts +6 -6
- package/dist/components/Level2/PanelForm/PanelFormTitleSection.d.ts +6 -6
- package/dist/components/Level2/PanelForm/index.d.ts +5 -5
- package/dist/components/Level2/PillContainer.d.ts +13 -13
- package/dist/components/Level2/RadioButton.d.ts +10 -10
- package/dist/components/Level2/SideMenu/SideMenu.d.ts +24 -24
- package/dist/components/Level2/SideMenu/SideMenuButton.d.ts +16 -16
- package/dist/components/Level2/SideMenu/SideMenuNav.d.ts +12 -12
- package/dist/components/Level2/SideMenu/index.d.ts +3 -3
- package/dist/components/Level2/SideMenu/types.d.ts +25 -25
- package/dist/components/Level2/SocialButtons/FacebookButton.d.ts +12 -12
- package/dist/components/Level2/SocialButtons/GoogleButton.d.ts +12 -12
- package/dist/components/Level2/SocialButtons/index.d.ts +2 -2
- package/dist/components/Level2/Switch.d.ts +11 -11
- package/dist/components/Level2/TargetCard.d.ts +43 -42
- package/dist/components/Level2/TextField/Masker.d.ts +13 -13
- package/dist/components/Level2/TextField/TextField.d.ts +16 -16
- package/dist/components/Level2/TextField/TextFieldContainer.d.ts +18 -18
- package/dist/components/Level2/TextField/index.d.ts +3 -3
- package/dist/components/Level2/ThemeToggle.d.ts +5 -5
- package/dist/components/Level2/Tooltip.d.ts +21 -21
- package/dist/components/Level2/Uploader/UploadPreview.d.ts +9 -9
- package/dist/components/Level2/Uploader/Uploader.d.ts +30 -30
- package/dist/components/Level2/Uploader/index.d.ts +3 -3
- package/dist/components/Level2/Uploader/types.d.ts +7 -7
- package/dist/components/Level2/index.d.ts +20 -20
- package/dist/components/Level3/AreaChart.d.ts +29 -29
- package/dist/components/Level3/BarChart.d.ts +26 -26
- package/dist/components/Level3/BreadCrumb.d.ts +5 -5
- package/dist/components/Level3/Chart.d.ts +22 -22
- package/dist/components/Level3/ColorPicker.d.ts +9 -9
- package/dist/components/Level3/DashboardCard.d.ts +18 -18
- package/dist/components/Level3/DashboardCardV2.d.ts +13 -13
- package/dist/components/Level3/DashboardSelector/DashboardSelector.d.ts +8 -8
- package/dist/components/Level3/DashboardSelector/index.d.ts +2 -2
- package/dist/components/Level3/DashboardSelector/types.d.ts +4 -4
- package/dist/components/Level3/DateField.d.ts +31 -31
- package/dist/components/Level3/FloatingIconButton.d.ts +19 -19
- package/dist/components/Level3/FloatingIconButtonList.d.ts +13 -13
- package/dist/components/Level3/FullScreenButton.d.ts +2 -2
- package/dist/components/Level3/ListEditor.d.ts +12 -12
- package/dist/components/Level3/MultiChart.d.ts +27 -27
- package/dist/components/Level3/OptionSelector/OptionSelector.d.ts +18 -18
- package/dist/components/Level3/OptionSelector/index.d.ts +2 -2
- package/dist/components/Level3/OptionSelector/types.d.ts +8 -8
- package/dist/components/Level3/OverlayTopBar.d.ts +32 -32
- package/dist/components/Level3/PasswordField.d.ts +17 -17
- package/dist/components/Level3/PhoneField/PhoneField.d.ts +12 -12
- package/dist/components/Level3/PhoneField/PhoneSelection.d.ts +15 -15
- package/dist/components/Level3/PhoneField/countryData.d.ts +7 -7
- package/dist/components/Level3/PhoneField/flags/index.d.ts +243 -243
- package/dist/components/Level3/PhoneField/functions.d.ts +4 -4
- package/dist/components/Level3/PhoneField/index.d.ts +6 -6
- package/dist/components/Level3/PhoneField/types.d.ts +5 -5
- package/dist/components/Level3/PieChart.d.ts +30 -30
- package/dist/components/Level3/Popup.d.ts +23 -23
- package/dist/components/Level3/ProfileBox.d.ts +27 -27
- package/dist/components/Level3/Snackbar.d.ts +16 -16
- package/dist/components/Level3/TimeField/TimeField.d.ts +23 -22
- package/dist/components/Level3/TimeField/TimePicker.d.ts +23 -23
- package/dist/components/Level3/TimeField/index.d.ts +2 -2
- package/dist/components/Level3/Topbar.d.ts +36 -36
- package/dist/components/Level3/index.d.ts +24 -24
- package/dist/components/Level4/ConfirmPopup.d.ts +14 -14
- package/dist/components/Level4/index.d.ts +1 -1
- package/dist/components/NextJS/NEXTGlobalStyle.d.ts +7 -7
- package/dist/components/NextJS/index.d.ts +2 -2
- package/dist/components/NextJS/utils.d.ts +1 -1
- package/dist/components/Stripe/CardCvc.d.ts +17 -17
- package/dist/components/Stripe/CardExpiry.d.ts +17 -17
- package/dist/components/Stripe/CardNumber.d.ts +17 -17
- package/dist/components/Stripe/StripeProvider.d.ts +9 -9
- package/dist/components/Stripe/context.d.ts +6 -6
- package/dist/components/Stripe/functions.d.ts +5 -5
- package/dist/components/Stripe/index.d.ts +6 -6
- package/dist/components/UseDataLayer/Autocomplete/Autocomplete.d.ts +10 -10
- package/dist/components/UseDataLayer/Autocomplete/AutocompleteUI.d.ts +21 -21
- package/dist/components/UseDataLayer/Autocomplete/OptionDiv.d.ts +12 -12
- package/dist/components/UseDataLayer/Autocomplete/Selection.d.ts +13 -13
- package/dist/components/UseDataLayer/Autocomplete/index.d.ts +5 -5
- package/dist/components/UseDataLayer/Autocomplete/types.d.ts +10 -10
- package/dist/components/UseDataLayer/CountrySelection.d.ts +11 -11
- package/dist/components/UseDataLayer/EntityList/EntityList.d.ts +10 -10
- package/dist/components/UseDataLayer/EntityList/EntityListUI.d.ts +12 -12
- package/dist/components/UseDataLayer/EntityList/index.d.ts +3 -3
- package/dist/components/UseDataLayer/EntityList/types.d.ts +1 -1
- package/dist/components/UseDataLayer/Table/Header.d.ts +24 -24
- package/dist/components/UseDataLayer/Table/PaginationControl.d.ts +8 -8
- package/dist/components/UseDataLayer/Table/Row.d.ts +22 -22
- package/dist/components/UseDataLayer/Table/ShowingControl.d.ts +18 -18
- package/dist/components/UseDataLayer/Table/ShowingFooter.d.ts +6 -6
- package/dist/components/UseDataLayer/Table/Table.d.ts +10 -10
- package/dist/components/UseDataLayer/Table/TableUI.d.ts +24 -24
- package/dist/components/UseDataLayer/Table/index.d.ts +8 -8
- package/dist/components/UseDataLayer/Table/types.d.ts +13 -13
- package/dist/components/UseDataLayer/TownSelection.d.ts +11 -11
- package/dist/components/UseDataLayer/index.d.ts +5 -5
- package/dist/components/UseRedux/Sidebar/Sidebar.d.ts +48 -48
- package/dist/components/UseRedux/Sidebar/SidebarButton.d.ts +25 -25
- package/dist/components/UseRedux/Sidebar/SidebarTitle.d.ts +14 -14
- package/dist/components/UseRedux/Sidebar/SidebarToggler.d.ts +16 -16
- package/dist/components/UseRedux/Sidebar/duck.d.ts +30 -30
- package/dist/components/UseRedux/Sidebar/index.d.ts +6 -6
- package/dist/components/UseRedux/Sidebar/types.d.ts +13 -13
- package/dist/components/UseRedux/index.d.ts +1 -1
- package/dist/components/index.d.ts +15 -15
- package/dist/components/pages/AuthPage/AuthPage.d.ts +18 -18
- package/dist/components/pages/AuthPage/index.d.ts +2 -2
- package/dist/components/pages/AuthPage/types.d.ts +14 -14
- package/dist/components/pages/AuthPageV2.d.ts +16 -16
- package/dist/components/pages/ErrorPage.d.ts +13 -13
- package/dist/components/pages/ForbiddenPage.d.ts +15 -15
- package/dist/components/pages/ForgotPasswordPage/ForgotPasswordForm.d.ts +5 -5
- package/dist/components/pages/ForgotPasswordPage/ForgotPasswordPage.d.ts +4 -4
- package/dist/components/pages/ForgotPasswordPage/index.d.ts +2 -2
- package/dist/components/pages/LoadingPage.d.ts +14 -14
- package/dist/components/pages/LoginPage/LoginForm.d.ts +20 -20
- package/dist/components/pages/LoginPage/LoginPage.d.ts +9 -9
- package/dist/components/pages/LoginPage/index.d.ts +2 -2
- package/dist/components/pages/LogoutPage.d.ts +5 -5
- package/dist/components/pages/NotFoundPage.d.ts +6 -6
- package/dist/components/pages/UnverifiedUserPage.d.ts +6 -6
- package/dist/components/pages/index.d.ts +10 -10
- package/dist/contextCheckers.d.ts +4 -4
- package/dist/dataEnums.d.ts +370 -370
- package/dist/dataLayer/DataContext.d.ts +11 -11
- package/dist/dataLayer/DataProvider.d.ts +53 -53
- package/dist/dataLayer/duck.d.ts +32 -32
- package/dist/dataLayer/index.d.ts +4 -4
- package/dist/dataLayer/types.d.ts +17 -17
- package/dist/generalTypes.d.ts +48 -48
- package/dist/geoUtils.d.ts +35 -35
- package/dist/hooks/index.d.ts +8 -8
- package/dist/hooks/types.d.ts +3 -3
- package/dist/hooks/useClickOutside.d.ts +3 -3
- package/dist/hooks/useCombinedRef.d.ts +1 -1
- package/dist/hooks/useEnterSubmit.d.ts +2 -2
- package/dist/hooks/useFBAuth.d.ts +2 -2
- package/dist/hooks/useInterval.d.ts +2 -2
- package/dist/hooks/useResize.d.ts +2 -2
- package/dist/hooks/useTimeout.d.ts +2 -2
- package/dist/index.d.ts +22 -22
- package/dist/masker.d.ts +15 -15
- package/dist/navigation/NavProvider.d.ts +7 -7
- package/dist/navigation/context.d.ts +6 -6
- package/dist/navigation/index.d.ts +3 -3
- package/dist/navigation/types.d.ts +6 -6
- package/dist/notification/NotificationProvider.d.ts +21 -21
- package/dist/notification/context.d.ts +8 -8
- package/dist/notification/duck.d.ts +30 -30
- package/dist/notification/index.d.ts +3 -3
- package/dist/redux.d.ts +25 -25
- package/dist/size/SizeProvider.d.ts +6 -6
- package/dist/size/context.d.ts +5 -5
- package/dist/size/index.d.ts +3 -3
- package/dist/size/types.d.ts +5 -5
- package/dist/snackbar/SnackbarProvider.d.ts +5 -5
- package/dist/snackbar/context.d.ts +8 -8
- package/dist/snackbar/functions.d.ts +14 -14
- package/dist/snackbar/index.d.ts +4 -4
- package/dist/snackbar/types.d.ts +28 -28
- package/dist/styleEnums.d.ts +156 -156
- package/dist/theming/ThemeProvider.d.ts +26 -26
- package/dist/theming/context.d.ts +11 -11
- package/dist/theming/duck.d.ts +23 -23
- package/dist/theming/functions.d.ts +2 -2
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/types.d.ts +60 -60
- package/dist/tooltip/ToolTipProvider.d.ts +5 -5
- package/dist/tooltip/context.d.ts +10 -10
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tooltip/types.d.ts +8 -8
- package/dist/tsconfig.rollup.tsbuildinfo +1 -1
- package/dist/utils.d.ts +39 -39
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { DataSizes } from '../../../dataEnums';
|
|
2
|
-
import { IField, IFieldStyle } from '../../../generalTypes';
|
|
3
|
-
import { Colors } from '../../../theming';
|
|
4
|
-
import { FileUrlArrayHandler, FileListHandler, FileTypes } from './types';
|
|
5
|
-
export interface IUploader extends IField, IFieldStyle {
|
|
6
|
-
value?: string[];
|
|
7
|
-
valueAsSrc?: string[];
|
|
8
|
-
toUpload?: FileList;
|
|
9
|
-
instruction: string;
|
|
10
|
-
accept: string[] | FileTypes[];
|
|
11
|
-
byteSize: number;
|
|
12
|
-
dataSize?: DataSizes;
|
|
13
|
-
limit: number;
|
|
14
|
-
updateUpload: FileListHandler;
|
|
15
|
-
updateValue: FileUrlArrayHandler;
|
|
16
|
-
firebase?: boolean;
|
|
17
|
-
showGalleryBorder?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare const Uploader: {
|
|
20
|
-
(props: IUploader): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
defaultProps: {
|
|
22
|
-
instruction: string;
|
|
23
|
-
width: string;
|
|
24
|
-
limit: number;
|
|
25
|
-
hoverBorderColor: Colors;
|
|
26
|
-
focusBorderColor: Colors;
|
|
27
|
-
helperColor: Colors;
|
|
28
|
-
errorColor: Colors;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
1
|
+
import { DataSizes } from '../../../dataEnums';
|
|
2
|
+
import { IField, IFieldStyle } from '../../../generalTypes';
|
|
3
|
+
import { Colors } from '../../../theming';
|
|
4
|
+
import { FileUrlArrayHandler, FileListHandler, FileTypes } from './types';
|
|
5
|
+
export interface IUploader extends IField, IFieldStyle {
|
|
6
|
+
value?: string[];
|
|
7
|
+
valueAsSrc?: string[];
|
|
8
|
+
toUpload?: FileList;
|
|
9
|
+
instruction: string;
|
|
10
|
+
accept: string[] | FileTypes[];
|
|
11
|
+
byteSize: number;
|
|
12
|
+
dataSize?: DataSizes;
|
|
13
|
+
limit: number;
|
|
14
|
+
updateUpload: FileListHandler;
|
|
15
|
+
updateValue: FileUrlArrayHandler;
|
|
16
|
+
firebase?: boolean;
|
|
17
|
+
showGalleryBorder?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const Uploader: {
|
|
20
|
+
(props: IUploader): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
defaultProps: {
|
|
22
|
+
instruction: string;
|
|
23
|
+
width: string;
|
|
24
|
+
limit: number;
|
|
25
|
+
hoverBorderColor: Colors;
|
|
26
|
+
focusBorderColor: Colors;
|
|
27
|
+
helperColor: Colors;
|
|
28
|
+
errorColor: Colors;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './Uploader';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './UploadPreview';
|
|
1
|
+
export * from './Uploader';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export * from './UploadPreview';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare enum FileTypes {
|
|
2
|
-
audio = "audio/*",
|
|
3
|
-
video = "video/*",
|
|
4
|
-
image = "image/*"
|
|
5
|
-
}
|
|
6
|
-
export type FileListHandler = (files: FileList) => void;
|
|
7
|
-
export type FileUrlArrayHandler = (files: string[]) => void;
|
|
1
|
+
export declare enum FileTypes {
|
|
2
|
+
audio = "audio/*",
|
|
3
|
+
video = "video/*",
|
|
4
|
+
image = "image/*"
|
|
5
|
+
}
|
|
6
|
+
export type FileListHandler = (files: FileList) => void;
|
|
7
|
+
export type FileUrlArrayHandler = (files: string[]) => void;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export * from './Checkbox';
|
|
2
|
-
export * from './TargetCard';
|
|
3
|
-
export * from './IconButton';
|
|
4
|
-
export * from './TextField';
|
|
5
|
-
export * from './SocialButtons';
|
|
6
|
-
export * from './DatePicker';
|
|
7
|
-
export * from './MultiButtonSelect';
|
|
8
|
-
export * from './Tooltip';
|
|
9
|
-
export * from './FloatingDiv';
|
|
10
|
-
export * from './Overlay';
|
|
11
|
-
export * from './Cover';
|
|
12
|
-
export * from './Card';
|
|
13
|
-
export * from './SideMenu';
|
|
14
|
-
export * from './PanelForm';
|
|
15
|
-
export * from './RadioButton';
|
|
16
|
-
export * from './Uploader';
|
|
17
|
-
export * from './ThemeToggle';
|
|
18
|
-
export * from './Linker';
|
|
19
|
-
export * from './PillContainer';
|
|
20
|
-
export * from './Switch';
|
|
1
|
+
export * from './Checkbox';
|
|
2
|
+
export * from './TargetCard';
|
|
3
|
+
export * from './IconButton';
|
|
4
|
+
export * from './TextField';
|
|
5
|
+
export * from './SocialButtons';
|
|
6
|
+
export * from './DatePicker';
|
|
7
|
+
export * from './MultiButtonSelect';
|
|
8
|
+
export * from './Tooltip';
|
|
9
|
+
export * from './FloatingDiv';
|
|
10
|
+
export * from './Overlay';
|
|
11
|
+
export * from './Cover';
|
|
12
|
+
export * from './Card';
|
|
13
|
+
export * from './SideMenu';
|
|
14
|
+
export * from './PanelForm';
|
|
15
|
+
export * from './RadioButton';
|
|
16
|
+
export * from './Uploader';
|
|
17
|
+
export * from './ThemeToggle';
|
|
18
|
+
export * from './Linker';
|
|
19
|
+
export * from './PillContainer';
|
|
20
|
+
export * from './Switch';
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { APIFunctionHandler } from '../../dataLayer';
|
|
3
|
-
import { Colors } from '../../theming';
|
|
4
|
-
import { DashboardSelectorVariant } from './DashboardSelector';
|
|
5
|
-
import { ISelectorOption } from './OptionSelector';
|
|
6
|
-
export interface IAreachart<APIResult, DataType> {
|
|
7
|
-
title: string;
|
|
8
|
-
subtitle?: ReactNode;
|
|
9
|
-
data?: DataType;
|
|
10
|
-
apiCall?: APIFunctionHandler;
|
|
11
|
-
parseResponse?: (data: APIResult) => DataType;
|
|
12
|
-
yKey: {
|
|
13
|
-
name?: string;
|
|
14
|
-
key: string;
|
|
15
|
-
color?: string;
|
|
16
|
-
}[];
|
|
17
|
-
xKey: string;
|
|
18
|
-
lineColor?: Colors | string;
|
|
19
|
-
height: number;
|
|
20
|
-
options?: ISelectorOption[];
|
|
21
|
-
value?: string;
|
|
22
|
-
variant?: DashboardSelectorVariant;
|
|
23
|
-
displayGrid?: boolean;
|
|
24
|
-
displayVerticalGrid?: boolean;
|
|
25
|
-
displayLegend?: boolean;
|
|
26
|
-
colorOffsetPercentage?: string;
|
|
27
|
-
strokeWidth?: string;
|
|
28
|
-
}
|
|
29
|
-
export declare const Areachart: <APIResult, DataType>(props: IAreachart<APIResult, DataType>) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { APIFunctionHandler } from '../../dataLayer';
|
|
3
|
+
import { Colors } from '../../theming';
|
|
4
|
+
import { DashboardSelectorVariant } from './DashboardSelector';
|
|
5
|
+
import { ISelectorOption } from './OptionSelector';
|
|
6
|
+
export interface IAreachart<APIResult, DataType> {
|
|
7
|
+
title: string;
|
|
8
|
+
subtitle?: ReactNode;
|
|
9
|
+
data?: DataType;
|
|
10
|
+
apiCall?: APIFunctionHandler;
|
|
11
|
+
parseResponse?: (data: APIResult) => DataType;
|
|
12
|
+
yKey: {
|
|
13
|
+
name?: string;
|
|
14
|
+
key: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
}[];
|
|
17
|
+
xKey: string;
|
|
18
|
+
lineColor?: Colors | string;
|
|
19
|
+
height: number;
|
|
20
|
+
options?: ISelectorOption[];
|
|
21
|
+
value?: string;
|
|
22
|
+
variant?: DashboardSelectorVariant;
|
|
23
|
+
displayGrid?: boolean;
|
|
24
|
+
displayVerticalGrid?: boolean;
|
|
25
|
+
displayLegend?: boolean;
|
|
26
|
+
colorOffsetPercentage?: string;
|
|
27
|
+
strokeWidth?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const Areachart: <APIResult, DataType>(props: IAreachart<APIResult, DataType>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { APIFunctionHandler } from '../../dataLayer';
|
|
3
|
-
import { Colors } from '../../theming';
|
|
4
|
-
import { DashboardSelectorVariant } from './DashboardSelector';
|
|
5
|
-
import { ISelectorOption } from './OptionSelector';
|
|
6
|
-
export interface IBarchart<APIResult, DataType> {
|
|
7
|
-
title: string;
|
|
8
|
-
subtitle?: ReactNode;
|
|
9
|
-
data?: DataType;
|
|
10
|
-
apiCall?: APIFunctionHandler;
|
|
11
|
-
parseResponse?: (data: APIResult) => DataType;
|
|
12
|
-
yKey: {
|
|
13
|
-
name?: string;
|
|
14
|
-
key: string;
|
|
15
|
-
color?: string;
|
|
16
|
-
}[];
|
|
17
|
-
xKey: string;
|
|
18
|
-
lineColor?: Colors | string;
|
|
19
|
-
height: number;
|
|
20
|
-
options?: ISelectorOption[];
|
|
21
|
-
value?: string;
|
|
22
|
-
variant?: DashboardSelectorVariant;
|
|
23
|
-
displayGrid?: boolean;
|
|
24
|
-
displayVerticalGrid?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export declare const Barchart: <APIResult, DataType>(props: IBarchart<APIResult, DataType>) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { APIFunctionHandler } from '../../dataLayer';
|
|
3
|
+
import { Colors } from '../../theming';
|
|
4
|
+
import { DashboardSelectorVariant } from './DashboardSelector';
|
|
5
|
+
import { ISelectorOption } from './OptionSelector';
|
|
6
|
+
export interface IBarchart<APIResult, DataType> {
|
|
7
|
+
title: string;
|
|
8
|
+
subtitle?: ReactNode;
|
|
9
|
+
data?: DataType;
|
|
10
|
+
apiCall?: APIFunctionHandler;
|
|
11
|
+
parseResponse?: (data: APIResult) => DataType;
|
|
12
|
+
yKey: {
|
|
13
|
+
name?: string;
|
|
14
|
+
key: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
}[];
|
|
17
|
+
xKey: string;
|
|
18
|
+
lineColor?: Colors | string;
|
|
19
|
+
height: number;
|
|
20
|
+
options?: ISelectorOption[];
|
|
21
|
+
value?: string;
|
|
22
|
+
variant?: DashboardSelectorVariant;
|
|
23
|
+
displayGrid?: boolean;
|
|
24
|
+
displayVerticalGrid?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare const Barchart: <APIResult, DataType>(props: IBarchart<APIResult, DataType>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Colors } from '../../theming';
|
|
2
|
-
export interface IBreadCrumb {
|
|
3
|
-
iconColor?: Colors | string;
|
|
4
|
-
}
|
|
5
|
-
export declare const BreadCrumb: (props: IBreadCrumb) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { Colors } from '../../theming';
|
|
2
|
+
export interface IBreadCrumb {
|
|
3
|
+
iconColor?: Colors | string;
|
|
4
|
+
}
|
|
5
|
+
export declare const BreadCrumb: (props: IBreadCrumb) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { APIFunctionHandler } from '../../dataLayer';
|
|
3
|
-
import { Colors } from '../../theming';
|
|
4
|
-
import { DashboardSelectorVariant } from './DashboardSelector';
|
|
5
|
-
import { ISelectorOption } from './OptionSelector';
|
|
6
|
-
export interface IChart<APIResult, DataType> {
|
|
7
|
-
title: string;
|
|
8
|
-
subtitle?: ReactNode;
|
|
9
|
-
data?: DataType;
|
|
10
|
-
apiCall?: APIFunctionHandler;
|
|
11
|
-
parseResponse?: (data: APIResult) => DataType;
|
|
12
|
-
yKey: string;
|
|
13
|
-
xKey: string;
|
|
14
|
-
lineColor?: Colors | string;
|
|
15
|
-
height: number;
|
|
16
|
-
options?: ISelectorOption[];
|
|
17
|
-
value?: string;
|
|
18
|
-
variant?: DashboardSelectorVariant;
|
|
19
|
-
displayGrid?: boolean;
|
|
20
|
-
displayVerticalGrid?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export declare const Chart: <APIResult, DataType>(props: IChart<APIResult, DataType>) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { APIFunctionHandler } from '../../dataLayer';
|
|
3
|
+
import { Colors } from '../../theming';
|
|
4
|
+
import { DashboardSelectorVariant } from './DashboardSelector';
|
|
5
|
+
import { ISelectorOption } from './OptionSelector';
|
|
6
|
+
export interface IChart<APIResult, DataType> {
|
|
7
|
+
title: string;
|
|
8
|
+
subtitle?: ReactNode;
|
|
9
|
+
data?: DataType;
|
|
10
|
+
apiCall?: APIFunctionHandler;
|
|
11
|
+
parseResponse?: (data: APIResult) => DataType;
|
|
12
|
+
yKey: string;
|
|
13
|
+
xKey: string;
|
|
14
|
+
lineColor?: Colors | string;
|
|
15
|
+
height: number;
|
|
16
|
+
options?: ISelectorOption[];
|
|
17
|
+
value?: string;
|
|
18
|
+
variant?: DashboardSelectorVariant;
|
|
19
|
+
displayGrid?: boolean;
|
|
20
|
+
displayVerticalGrid?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const Chart: <APIResult, DataType>(props: IChart<APIResult, DataType>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface IColorPicker {
|
|
2
|
-
value?: string;
|
|
3
|
-
onValueChange?: (data: string) => void;
|
|
4
|
-
width?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
readonly?: boolean;
|
|
7
|
-
padding?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const ColorPicker: (props: IColorPicker) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface IColorPicker {
|
|
2
|
+
value?: string;
|
|
3
|
+
onValueChange?: (data: string) => void;
|
|
4
|
+
width?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
padding?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ColorPicker: (props: IColorPicker) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Colors } from '../../theming';
|
|
3
|
-
export interface IDashboardCard {
|
|
4
|
-
width?: string;
|
|
5
|
-
height?: string;
|
|
6
|
-
title: string;
|
|
7
|
-
titleColor: Colors | string;
|
|
8
|
-
value: string;
|
|
9
|
-
icon: ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export declare const DashboardCard: {
|
|
12
|
-
(props: IDashboardCard): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
defaultProps: {
|
|
14
|
-
title: string;
|
|
15
|
-
value: string;
|
|
16
|
-
titleColor: Colors;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Colors } from '../../theming';
|
|
3
|
+
export interface IDashboardCard {
|
|
4
|
+
width?: string;
|
|
5
|
+
height?: string;
|
|
6
|
+
title: string;
|
|
7
|
+
titleColor: Colors | string;
|
|
8
|
+
value: string;
|
|
9
|
+
icon: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const DashboardCard: {
|
|
12
|
+
(props: IDashboardCard): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
defaultProps: {
|
|
14
|
+
title: string;
|
|
15
|
+
value: string;
|
|
16
|
+
titleColor: Colors;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Colors } from '../../theming';
|
|
3
|
-
export interface IDashboardCardV2 {
|
|
4
|
-
width?: string;
|
|
5
|
-
height?: string;
|
|
6
|
-
title: string;
|
|
7
|
-
subtitle?: string;
|
|
8
|
-
iconColor: Colors | string;
|
|
9
|
-
value: string;
|
|
10
|
-
icon: ReactNode;
|
|
11
|
-
footer?: ReactNode;
|
|
12
|
-
}
|
|
13
|
-
export declare const DashboardCardV2: (props: IDashboardCardV2) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Colors } from '../../theming';
|
|
3
|
+
export interface IDashboardCardV2 {
|
|
4
|
+
width?: string;
|
|
5
|
+
height?: string;
|
|
6
|
+
title: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
iconColor: Colors | string;
|
|
9
|
+
value: string;
|
|
10
|
+
icon: ReactNode;
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const DashboardCardV2: (props: IDashboardCardV2) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ISelectorOption } from '../OptionSelector';
|
|
2
|
-
import { DashboardSelectorVariant } from './types';
|
|
3
|
-
export interface IDashboardSelector {
|
|
4
|
-
options: ISelectorOption[];
|
|
5
|
-
value: string;
|
|
6
|
-
variant: DashboardSelectorVariant;
|
|
7
|
-
}
|
|
8
|
-
export declare const DashboardSelector: (props: IDashboardSelector) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ISelectorOption } from '../OptionSelector';
|
|
2
|
+
import { DashboardSelectorVariant } from './types';
|
|
3
|
+
export interface IDashboardSelector {
|
|
4
|
+
options: ISelectorOption[];
|
|
5
|
+
value: string;
|
|
6
|
+
variant: DashboardSelectorVariant;
|
|
7
|
+
}
|
|
8
|
+
export declare const DashboardSelector: (props: IDashboardSelector) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './DashboardSelector';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './DashboardSelector';
|
|
2
|
+
export * from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum DashboardSelectorVariant {
|
|
2
|
-
icon = "Icon",
|
|
3
|
-
selection = "Selection"
|
|
4
|
-
}
|
|
1
|
+
export declare enum DashboardSelectorVariant {
|
|
2
|
+
icon = "Icon",
|
|
3
|
+
selection = "Selection"
|
|
4
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { Moment } from 'moment';
|
|
2
|
-
import { Weekdays } from '../Level2';
|
|
3
|
-
import { Colors } from '../../theming';
|
|
4
|
-
import { MomentHandler } from '../../generalTypes';
|
|
5
|
-
export interface IDateField {
|
|
6
|
-
value?: Moment;
|
|
7
|
-
onDateSelect: MomentHandler;
|
|
8
|
-
label?: string;
|
|
9
|
-
iconNormal?: Colors | string;
|
|
10
|
-
iconFocus?: Colors | string;
|
|
11
|
-
width?: string;
|
|
12
|
-
format: string;
|
|
13
|
-
error?: string;
|
|
14
|
-
firstDayMonday?: boolean;
|
|
15
|
-
startDate?: Moment;
|
|
16
|
-
endDate?: Moment;
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
availableDates?: Moment[];
|
|
19
|
-
enableWeekdayOnly?: Weekdays[];
|
|
20
|
-
helperText?: string;
|
|
21
|
-
excludedDates?: Moment[];
|
|
22
|
-
editable?: boolean;
|
|
23
|
-
hideButtons?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare const DateField: {
|
|
26
|
-
({ value, ...props }: IDateField): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
defaultProps: {
|
|
28
|
-
iconNormal: Colors;
|
|
29
|
-
iconFocus: Colors;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
1
|
+
import { Moment } from 'moment';
|
|
2
|
+
import { Weekdays } from '../Level2';
|
|
3
|
+
import { Colors } from '../../theming';
|
|
4
|
+
import { MomentHandler } from '../../generalTypes';
|
|
5
|
+
export interface IDateField {
|
|
6
|
+
value?: Moment;
|
|
7
|
+
onDateSelect: MomentHandler;
|
|
8
|
+
label?: string;
|
|
9
|
+
iconNormal?: Colors | string;
|
|
10
|
+
iconFocus?: Colors | string;
|
|
11
|
+
width?: string;
|
|
12
|
+
format: string;
|
|
13
|
+
error?: string;
|
|
14
|
+
firstDayMonday?: boolean;
|
|
15
|
+
startDate?: Moment;
|
|
16
|
+
endDate?: Moment;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
availableDates?: Moment[];
|
|
19
|
+
enableWeekdayOnly?: Weekdays[];
|
|
20
|
+
helperText?: string;
|
|
21
|
+
excludedDates?: Moment[];
|
|
22
|
+
editable?: boolean;
|
|
23
|
+
hideButtons?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare const DateField: {
|
|
26
|
+
({ value, ...props }: IDateField): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
defaultProps: {
|
|
28
|
+
iconNormal: Colors;
|
|
29
|
+
iconFocus: Colors;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { FloatingPosH, FloatingPosV } from '../../styleEnums';
|
|
2
|
-
import { Colors } from '../../theming';
|
|
3
|
-
import { IButton } from '../Level1';
|
|
4
|
-
import { IFloatingDiv } from '../Level2';
|
|
5
|
-
export interface IFloatingIconButton extends IButton {
|
|
6
|
-
buttonColor?: Colors | string;
|
|
7
|
-
text?: boolean;
|
|
8
|
-
noDiv?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const FloatingIconButton: {
|
|
11
|
-
({ onClick, buttonColor, width, height, ripple, loading, toolTipText, noDiv, ...props }: IFloatingIconButton & IFloatingDiv): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
defaultProps: {
|
|
13
|
-
width: string;
|
|
14
|
-
height: string;
|
|
15
|
-
verticalPos: FloatingPosV;
|
|
16
|
-
horizontalPos: FloatingPosH;
|
|
17
|
-
color: Colors;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
1
|
+
import { FloatingPosH, FloatingPosV } from '../../styleEnums';
|
|
2
|
+
import { Colors } from '../../theming';
|
|
3
|
+
import { IButton } from '../Level1';
|
|
4
|
+
import { IFloatingDiv } from '../Level2';
|
|
5
|
+
export interface IFloatingIconButton extends IButton {
|
|
6
|
+
buttonColor?: Colors | string;
|
|
7
|
+
text?: boolean;
|
|
8
|
+
noDiv?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const FloatingIconButton: {
|
|
11
|
+
({ onClick, buttonColor, width, height, ripple, loading, toolTipText, noDiv, ...props }: IFloatingIconButton & IFloatingDiv): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
defaultProps: {
|
|
13
|
+
width: string;
|
|
14
|
+
height: string;
|
|
15
|
+
verticalPos: FloatingPosV;
|
|
16
|
+
horizontalPos: FloatingPosH;
|
|
17
|
+
color: Colors;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { FloatingPosH, FloatingPosV } from '../../styleEnums';
|
|
2
|
-
import { IFloatingDiv } from '../Level2';
|
|
3
|
-
import { IFloatingIconButton } from './FloatingIconButton';
|
|
4
|
-
export interface IFloatingIconButtonList extends IFloatingDiv {
|
|
5
|
-
buttons: IFloatingIconButton[];
|
|
6
|
-
}
|
|
7
|
-
export declare const FloatingIconButtonList: {
|
|
8
|
-
({ buttons, ...props }: IFloatingIconButtonList): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
defaultProps: {
|
|
10
|
-
verticalPos: FloatingPosV;
|
|
11
|
-
horizontalPos: FloatingPosH;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
1
|
+
import { FloatingPosH, FloatingPosV } from '../../styleEnums';
|
|
2
|
+
import { IFloatingDiv } from '../Level2';
|
|
3
|
+
import { IFloatingIconButton } from './FloatingIconButton';
|
|
4
|
+
export interface IFloatingIconButtonList extends IFloatingDiv {
|
|
5
|
+
buttons: IFloatingIconButton[];
|
|
6
|
+
}
|
|
7
|
+
export declare const FloatingIconButtonList: {
|
|
8
|
+
({ buttons, ...props }: IFloatingIconButtonList): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
defaultProps: {
|
|
10
|
+
verticalPos: FloatingPosV;
|
|
11
|
+
horizontalPos: FloatingPosH;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IIconButton } from '../Level2';
|
|
2
|
-
export declare const FullScreenButton: (props: IIconButton) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { IIconButton } from '../Level2';
|
|
2
|
+
export declare const FullScreenButton: (props: IIconButton) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface IListEditor {
|
|
3
|
-
title?: string;
|
|
4
|
-
subTitles?: string;
|
|
5
|
-
handleAddEvent?: (data: string) => Promise<void>;
|
|
6
|
-
dataList: string[];
|
|
7
|
-
onDelete: (index: number) => Promise<void>;
|
|
8
|
-
customTopSection?: ReactNode;
|
|
9
|
-
ignoreOnEnterSubmit?: boolean;
|
|
10
|
-
padding?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const ListEditor: (props: IListEditor) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface IListEditor {
|
|
3
|
+
title?: string;
|
|
4
|
+
subTitles?: string;
|
|
5
|
+
handleAddEvent?: (data: string) => Promise<void>;
|
|
6
|
+
dataList: string[];
|
|
7
|
+
onDelete: (index: number) => Promise<void>;
|
|
8
|
+
customTopSection?: ReactNode;
|
|
9
|
+
ignoreOnEnterSubmit?: boolean;
|
|
10
|
+
padding?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const ListEditor: (props: IListEditor) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { APIFunctionHandler } from '../../dataLayer';
|
|
3
|
-
import { Colors } from '../../theming';
|
|
4
|
-
import { DashboardSelectorVariant } from './DashboardSelector';
|
|
5
|
-
import { ISelectorOption } from './OptionSelector';
|
|
6
|
-
export interface IMultiChart<APIResult, DataType> {
|
|
7
|
-
title: string;
|
|
8
|
-
subtitle?: ReactNode;
|
|
9
|
-
data?: DataType;
|
|
10
|
-
apiCall?: APIFunctionHandler;
|
|
11
|
-
parseResponse?: (data: APIResult) => DataType;
|
|
12
|
-
yKey: {
|
|
13
|
-
name?: string;
|
|
14
|
-
key: string;
|
|
15
|
-
color?: string;
|
|
16
|
-
}[];
|
|
17
|
-
xKey: string;
|
|
18
|
-
lineColor?: Colors | string;
|
|
19
|
-
height: number;
|
|
20
|
-
options?: ISelectorOption[];
|
|
21
|
-
value?: string;
|
|
22
|
-
variant?: DashboardSelectorVariant;
|
|
23
|
-
displayGrid?: boolean;
|
|
24
|
-
displayVerticalGrid?: boolean;
|
|
25
|
-
displayLegend?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export declare const MultiChart: <APIResult, DataType>(props: IMultiChart<APIResult, DataType>) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { APIFunctionHandler } from '../../dataLayer';
|
|
3
|
+
import { Colors } from '../../theming';
|
|
4
|
+
import { DashboardSelectorVariant } from './DashboardSelector';
|
|
5
|
+
import { ISelectorOption } from './OptionSelector';
|
|
6
|
+
export interface IMultiChart<APIResult, DataType> {
|
|
7
|
+
title: string;
|
|
8
|
+
subtitle?: ReactNode;
|
|
9
|
+
data?: DataType;
|
|
10
|
+
apiCall?: APIFunctionHandler;
|
|
11
|
+
parseResponse?: (data: APIResult) => DataType;
|
|
12
|
+
yKey: {
|
|
13
|
+
name?: string;
|
|
14
|
+
key: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
}[];
|
|
17
|
+
xKey: string;
|
|
18
|
+
lineColor?: Colors | string;
|
|
19
|
+
height: number;
|
|
20
|
+
options?: ISelectorOption[];
|
|
21
|
+
value?: string;
|
|
22
|
+
variant?: DashboardSelectorVariant;
|
|
23
|
+
displayGrid?: boolean;
|
|
24
|
+
displayVerticalGrid?: boolean;
|
|
25
|
+
displayLegend?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare const MultiChart: <APIResult, DataType>(props: IMultiChart<APIResult, DataType>) => import("react/jsx-runtime").JSX.Element;
|