@piu-company/react-toolkit 1.0.0
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/LICENSE +7 -0
- package/dist/AppProvider.d.ts +16 -0
- package/dist/animations/QuadSpinner.d.ts +13 -0
- package/dist/animations/Ripple.d.ts +15 -0
- package/dist/animations/SvgAnimations.d.ts +11 -0
- package/dist/animations/index.d.ts +3 -0
- package/dist/authentication/AuthenticationProvider.d.ts +11 -0
- package/dist/authentication/context.d.ts +6 -0
- package/dist/authentication/duck.d.ts +36 -0
- package/dist/authentication/index.d.ts +4 -0
- package/dist/authentication/types.d.ts +1 -0
- package/dist/axios.d.ts +62 -0
- package/dist/breadCrumb/BreadCrumbProvider.d.ts +5 -0
- package/dist/breadCrumb/context.d.ts +9 -0
- package/dist/breadCrumb/index.d.ts +3 -0
- package/dist/breadCrumb/types.d.ts +4 -0
- package/dist/components/Consumers/NotificationConsumer.d.ts +1 -0
- package/dist/components/Consumers/SnackbarsConsumer.d.ts +1 -0
- package/dist/components/Consumers/ToolTipConsumer.d.ts +1 -0
- package/dist/components/Consumers/index.d.ts +3 -0
- package/dist/components/Firebase/FbImage.d.ts +7 -0
- package/dist/components/Firebase/index.d.ts +2 -0
- package/dist/components/Firebase/types.d.ts +14 -0
- package/dist/components/Forms/ChangePassword.d.ts +9 -0
- package/dist/components/Forms/index.d.ts +1 -0
- package/dist/components/GoogleCalendar/GoogleCalendarProvider.d.ts +6 -0
- package/dist/components/GoogleCalendar/context.d.ts +6 -0
- package/dist/components/GoogleCalendar/index.d.ts +2 -0
- package/dist/components/GoogleCalendar/types.d.ts +10 -0
- package/dist/components/GoogleMaps/GMap.d.ts +27 -0
- package/dist/components/GoogleMaps/GMapInput.d.ts +15 -0
- package/dist/components/GoogleMaps/GoogleMapsProvider.d.ts +6 -0
- package/dist/components/GoogleMaps/context.d.ts +6 -0
- package/dist/components/GoogleMaps/index.d.ts +4 -0
- package/dist/components/Layout/TitledRow.d.ts +14 -0
- package/dist/components/Layout/index.d.ts +1 -0
- package/dist/components/Level1/A.d.ts +6 -0
- package/dist/components/Level1/Button.d.ts +29 -0
- package/dist/components/Level1/Container.d.ts +57 -0
- package/dist/components/Level1/DropdownButton.d.ts +11 -0
- package/dist/components/Level1/FadeInOut.d.ts +8 -0
- package/dist/components/Level1/Hr.d.ts +13 -0
- package/dist/components/Level1/Icon.d.ts +18 -0
- package/dist/components/Level1/Slider.d.ts +19 -0
- package/dist/components/Level1/Spacer.d.ts +5 -0
- package/dist/components/Level1/Typography.d.ts +37 -0
- package/dist/components/Level1/index.d.ts +10 -0
- package/dist/components/Level2/Card.d.ts +9 -0
- package/dist/components/Level2/Checkbox.d.ts +29 -0
- package/dist/components/Level2/Cover.d.ts +10 -0
- package/dist/components/Level2/DatePicker/DatePicker.d.ts +18 -0
- package/dist/components/Level2/DatePicker/DayPicker.d.ts +43 -0
- package/dist/components/Level2/DatePicker/MonthPicker.d.ts +27 -0
- package/dist/components/Level2/DatePicker/index.d.ts +4 -0
- package/dist/components/Level2/DatePicker/types.d.ts +8 -0
- package/dist/components/Level2/FloatingDiv.d.ts +17 -0
- package/dist/components/Level2/IconButton.d.ts +23 -0
- package/dist/components/Level2/Linker.d.ts +7 -0
- package/dist/components/Level2/MultiButtonSelect.d.ts +24 -0
- package/dist/components/Level2/Overlay.d.ts +36 -0
- package/dist/components/Level2/PanelForm/PanelForm.d.ts +9 -0
- package/dist/components/Level2/PanelForm/PanelFormContent.d.ts +5 -0
- package/dist/components/Level2/PanelForm/PanelFormSaveSection.d.ts +10 -0
- package/dist/components/Level2/PanelForm/PanelFormSection.d.ts +6 -0
- package/dist/components/Level2/PanelForm/PanelFormTitleSection.d.ts +6 -0
- package/dist/components/Level2/PanelForm/index.d.ts +5 -0
- package/dist/components/Level2/PillContainer.d.ts +13 -0
- package/dist/components/Level2/RadioButton.d.ts +10 -0
- package/dist/components/Level2/SideMenu/SideMenu.d.ts +24 -0
- package/dist/components/Level2/SideMenu/SideMenuButton.d.ts +16 -0
- package/dist/components/Level2/SideMenu/SideMenuNav.d.ts +12 -0
- package/dist/components/Level2/SideMenu/index.d.ts +3 -0
- package/dist/components/Level2/SideMenu/types.d.ts +25 -0
- package/dist/components/Level2/SocialButtons/FacebookButton.d.ts +12 -0
- package/dist/components/Level2/SocialButtons/GoogleButton.d.ts +12 -0
- package/dist/components/Level2/SocialButtons/index.d.ts +2 -0
- package/dist/components/Level2/Switch.d.ts +11 -0
- package/dist/components/Level2/TargetCard.d.ts +42 -0
- package/dist/components/Level2/TextField/Masker.d.ts +13 -0
- package/dist/components/Level2/TextField/TextField.d.ts +16 -0
- package/dist/components/Level2/TextField/TextFieldContainer.d.ts +19 -0
- package/dist/components/Level2/TextField/index.d.ts +3 -0
- package/dist/components/Level2/ThemeToggle.d.ts +5 -0
- package/dist/components/Level2/Tooltip.d.ts +21 -0
- package/dist/components/Level2/Uploader/UploadPreview.d.ts +9 -0
- package/dist/components/Level2/Uploader/Uploader.d.ts +30 -0
- package/dist/components/Level2/Uploader/index.d.ts +3 -0
- package/dist/components/Level2/Uploader/types.d.ts +7 -0
- package/dist/components/Level2/index.d.ts +20 -0
- package/dist/components/Level3/AreaChart.d.ts +29 -0
- package/dist/components/Level3/BarChart.d.ts +26 -0
- package/dist/components/Level3/BreadCrumb.d.ts +5 -0
- package/dist/components/Level3/Chart.d.ts +22 -0
- package/dist/components/Level3/ColorPicker.d.ts +9 -0
- package/dist/components/Level3/DashboardCard.d.ts +18 -0
- package/dist/components/Level3/DashboardCardV2.d.ts +13 -0
- package/dist/components/Level3/DashboardSelector/DashboardSelector.d.ts +8 -0
- package/dist/components/Level3/DashboardSelector/index.d.ts +2 -0
- package/dist/components/Level3/DashboardSelector/types.d.ts +4 -0
- package/dist/components/Level3/DateField.d.ts +31 -0
- package/dist/components/Level3/FloatingIconButton.d.ts +19 -0
- package/dist/components/Level3/FloatingIconButtonList.d.ts +13 -0
- package/dist/components/Level3/FullScreenButton.d.ts +2 -0
- package/dist/components/Level3/ListEditor.d.ts +12 -0
- package/dist/components/Level3/MultiChart.d.ts +27 -0
- package/dist/components/Level3/OptionSelector/OptionSelector.d.ts +18 -0
- package/dist/components/Level3/OptionSelector/index.d.ts +2 -0
- package/dist/components/Level3/OptionSelector/types.d.ts +8 -0
- package/dist/components/Level3/OverlayTopBar.d.ts +32 -0
- package/dist/components/Level3/PasswordField.d.ts +17 -0
- package/dist/components/Level3/PhoneField/PhoneField.d.ts +12 -0
- package/dist/components/Level3/PhoneField/PhoneSelection.d.ts +15 -0
- package/dist/components/Level3/PhoneField/countryData.d.ts +7 -0
- package/dist/components/Level3/PhoneField/flags/index.d.ts +243 -0
- package/dist/components/Level3/PhoneField/functions.d.ts +4 -0
- package/dist/components/Level3/PhoneField/index.d.ts +6 -0
- package/dist/components/Level3/PhoneField/types.d.ts +5 -0
- package/dist/components/Level3/PieChart.d.ts +30 -0
- package/dist/components/Level3/Popup.d.ts +23 -0
- package/dist/components/Level3/ProfileBox.d.ts +27 -0
- package/dist/components/Level3/Snackbar.d.ts +16 -0
- package/dist/components/Level3/TimeField/TimeField.d.ts +22 -0
- package/dist/components/Level3/TimeField/TimePicker.d.ts +24 -0
- package/dist/components/Level3/TimeField/index.d.ts +2 -0
- package/dist/components/Level3/Topbar.d.ts +36 -0
- package/dist/components/Level3/index.d.ts +24 -0
- package/dist/components/Level4/ConfirmPopup.d.ts +14 -0
- package/dist/components/Level4/index.d.ts +1 -0
- package/dist/components/NextJS/NEXTGlobalStyle.d.ts +7 -0
- package/dist/components/NextJS/index.d.ts +2 -0
- package/dist/components/NextJS/utils.d.ts +1 -0
- package/dist/components/Stripe/CardCvc.d.ts +17 -0
- package/dist/components/Stripe/CardExpiry.d.ts +17 -0
- package/dist/components/Stripe/CardNumber.d.ts +17 -0
- package/dist/components/Stripe/StripeProvider.d.ts +9 -0
- package/dist/components/Stripe/context.d.ts +7 -0
- package/dist/components/Stripe/functions.d.ts +5 -0
- package/dist/components/Stripe/index.d.ts +6 -0
- package/dist/components/UseDataLayer/Autocomplete/Autocomplete.d.ts +10 -0
- package/dist/components/UseDataLayer/Autocomplete/AutocompleteUI.d.ts +21 -0
- package/dist/components/UseDataLayer/Autocomplete/OptionDiv.d.ts +12 -0
- package/dist/components/UseDataLayer/Autocomplete/Selection.d.ts +13 -0
- package/dist/components/UseDataLayer/Autocomplete/index.d.ts +5 -0
- package/dist/components/UseDataLayer/Autocomplete/types.d.ts +10 -0
- package/dist/components/UseDataLayer/CountrySelection.d.ts +11 -0
- package/dist/components/UseDataLayer/EntityList/EntityList.d.ts +10 -0
- package/dist/components/UseDataLayer/EntityList/EntityListUI.d.ts +12 -0
- package/dist/components/UseDataLayer/EntityList/index.d.ts +3 -0
- package/dist/components/UseDataLayer/EntityList/types.d.ts +1 -0
- package/dist/components/UseDataLayer/Table/Header.d.ts +24 -0
- package/dist/components/UseDataLayer/Table/PaginationControl.d.ts +8 -0
- package/dist/components/UseDataLayer/Table/Row.d.ts +22 -0
- package/dist/components/UseDataLayer/Table/ShowingControl.d.ts +18 -0
- package/dist/components/UseDataLayer/Table/ShowingFooter.d.ts +6 -0
- package/dist/components/UseDataLayer/Table/Table.d.ts +10 -0
- package/dist/components/UseDataLayer/Table/TableUI.d.ts +24 -0
- package/dist/components/UseDataLayer/Table/index.d.ts +8 -0
- package/dist/components/UseDataLayer/Table/types.d.ts +13 -0
- package/dist/components/UseDataLayer/TownSelection.d.ts +11 -0
- package/dist/components/UseDataLayer/index.d.ts +5 -0
- package/dist/components/UseRedux/Sidebar/Sidebar.d.ts +48 -0
- package/dist/components/UseRedux/Sidebar/SidebarButton.d.ts +25 -0
- package/dist/components/UseRedux/Sidebar/SidebarTitle.d.ts +14 -0
- package/dist/components/UseRedux/Sidebar/SidebarToggler.d.ts +16 -0
- package/dist/components/UseRedux/Sidebar/duck.d.ts +30 -0
- package/dist/components/UseRedux/Sidebar/index.d.ts +6 -0
- package/dist/components/UseRedux/Sidebar/types.d.ts +13 -0
- package/dist/components/UseRedux/index.d.ts +1 -0
- package/dist/components/index.d.ts +15 -0
- package/dist/components/pages/AuthPage/AuthPage.d.ts +18 -0
- package/dist/components/pages/AuthPage/index.d.ts +2 -0
- package/dist/components/pages/AuthPage/types.d.ts +14 -0
- package/dist/components/pages/AuthPageV2.d.ts +16 -0
- package/dist/components/pages/ErrorPage.d.ts +13 -0
- package/dist/components/pages/ForbiddenPage.d.ts +15 -0
- package/dist/components/pages/ForgotPasswordPage/ForgotPasswordForm.d.ts +5 -0
- package/dist/components/pages/ForgotPasswordPage/ForgotPasswordPage.d.ts +4 -0
- package/dist/components/pages/ForgotPasswordPage/index.d.ts +2 -0
- package/dist/components/pages/LoadingPage.d.ts +14 -0
- package/dist/components/pages/LoginPage/LoginForm.d.ts +20 -0
- package/dist/components/pages/LoginPage/LoginPage.d.ts +9 -0
- package/dist/components/pages/LoginPage/index.d.ts +2 -0
- package/dist/components/pages/LogoutPage.d.ts +5 -0
- package/dist/components/pages/NotFoundPage.d.ts +6 -0
- package/dist/components/pages/UnverifiedUserPage.d.ts +6 -0
- package/dist/components/pages/index.d.ts +10 -0
- package/dist/contextCheckers.d.ts +4 -0
- package/dist/dataEnums.d.ts +370 -0
- package/dist/dataLayer/DataContext.d.ts +12 -0
- package/dist/dataLayer/DataProvider.d.ts +53 -0
- package/dist/dataLayer/duck.d.ts +32 -0
- package/dist/dataLayer/index.d.ts +4 -0
- package/dist/dataLayer/types.d.ts +17 -0
- package/dist/generalTypes.d.ts +48 -0
- package/dist/geoUtils.d.ts +35 -0
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/types.d.ts +3 -0
- package/dist/hooks/useClickOutside.d.ts +3 -0
- package/dist/hooks/useCombinedRef.d.ts +1 -0
- package/dist/hooks/useEnterSubmit.d.ts +2 -0
- package/dist/hooks/useFBAuth.d.ts +2 -0
- package/dist/hooks/useInterval.d.ts +2 -0
- package/dist/hooks/useResize.d.ts +2 -0
- package/dist/hooks/useTimeout.d.ts +2 -0
- package/dist/index.cjs.js +56506 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.esm.js +56002 -0
- package/dist/masker.d.ts +15 -0
- package/dist/navigation/NavProvider.d.ts +7 -0
- package/dist/navigation/context.d.ts +7 -0
- package/dist/navigation/index.d.ts +3 -0
- package/dist/navigation/types.d.ts +6 -0
- package/dist/notification/NotificationProvider.d.ts +21 -0
- package/dist/notification/context.d.ts +9 -0
- package/dist/notification/duck.d.ts +30 -0
- package/dist/notification/index.d.ts +3 -0
- package/dist/redux.d.ts +25 -0
- package/dist/size/SizeProvider.d.ts +6 -0
- package/dist/size/context.d.ts +6 -0
- package/dist/size/index.d.ts +3 -0
- package/dist/size/types.d.ts +5 -0
- package/dist/snackbar/SnackbarProvider.d.ts +5 -0
- package/dist/snackbar/context.d.ts +9 -0
- package/dist/snackbar/functions.d.ts +14 -0
- package/dist/snackbar/index.d.ts +4 -0
- package/dist/snackbar/types.d.ts +28 -0
- package/dist/styleEnums.d.ts +156 -0
- package/dist/theming/ThemeProvider.d.ts +26 -0
- package/dist/theming/context.d.ts +12 -0
- package/dist/theming/duck.d.ts +23 -0
- package/dist/theming/functions.d.ts +2 -0
- package/dist/theming/index.d.ts +5 -0
- package/dist/theming/types.d.ts +60 -0
- package/dist/tooltip/ToolTipProvider.d.ts +5 -0
- package/dist/tooltip/context.d.ts +11 -0
- package/dist/tooltip/index.d.ts +3 -0
- package/dist/tooltip/types.d.ts +8 -0
- package/dist/tsconfig.rollup.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/utils.d.ts +39 -0
- package/package.json +81 -0
|
@@ -0,0 +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';
|
|
@@ -0,0 +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>) => JSX.Element;
|
|
@@ -0,0 +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>) => JSX.Element;
|
|
@@ -0,0 +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>) => JSX.Element;
|
|
@@ -0,0 +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): JSX.Element;
|
|
13
|
+
defaultProps: {
|
|
14
|
+
title: string;
|
|
15
|
+
value: string;
|
|
16
|
+
titleColor: Colors;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +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) => JSX.Element;
|
|
@@ -0,0 +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) => JSX.Element;
|
|
@@ -0,0 +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): JSX.Element;
|
|
27
|
+
defaultProps: {
|
|
28
|
+
iconNormal: Colors;
|
|
29
|
+
iconFocus: Colors;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +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): JSX.Element;
|
|
12
|
+
defaultProps: {
|
|
13
|
+
width: string;
|
|
14
|
+
height: string;
|
|
15
|
+
verticalPos: FloatingPosV;
|
|
16
|
+
horizontalPos: FloatingPosH;
|
|
17
|
+
color: Colors;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +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): JSX.Element;
|
|
9
|
+
defaultProps: {
|
|
10
|
+
verticalPos: FloatingPosV;
|
|
11
|
+
horizontalPos: FloatingPosH;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +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) => JSX.Element;
|
|
@@ -0,0 +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>) => JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Colors, Settings } from '../../../theming';
|
|
3
|
+
import { ITargetCard } from '../../Level2';
|
|
4
|
+
import { ISelectorOption } from './types';
|
|
5
|
+
export interface IOptionSelector extends IOptionSelectorStyle, ITargetCard {
|
|
6
|
+
options?: ISelectorOption[];
|
|
7
|
+
rightAlign?: boolean;
|
|
8
|
+
customOptions?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
interface IOptionSelectorStyle {
|
|
11
|
+
iconColor?: Colors | string;
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
shadow?: Colors | string;
|
|
14
|
+
shadowDim?: Settings | string;
|
|
15
|
+
hoverColor?: Colors | string;
|
|
16
|
+
}
|
|
17
|
+
export declare const OptionSelector: import("react").ForwardRefExoticComponent<IOptionSelector & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Position, ZIndexLayers } from '../../styleEnums';
|
|
3
|
+
import { Colors, Settings } from '../../theming';
|
|
4
|
+
export interface IOverlaytopBar {
|
|
5
|
+
backgroundColor?: string | Colors;
|
|
6
|
+
iconColor?: string | Colors;
|
|
7
|
+
topBarColor?: string | Colors;
|
|
8
|
+
openSize?: string;
|
|
9
|
+
closedSize?: string;
|
|
10
|
+
shadow?: Colors | string;
|
|
11
|
+
shadowDim?: Settings | string;
|
|
12
|
+
leftChild?: ReactNode;
|
|
13
|
+
centreChild?: ReactNode;
|
|
14
|
+
appbarContent?: ReactNode;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
fullScreen?: boolean;
|
|
17
|
+
zIndex?: ZIndexLayers;
|
|
18
|
+
minPageHeight?: string;
|
|
19
|
+
borderRadius?: string | Settings.borderRadius;
|
|
20
|
+
mainBodyPosition?: Position;
|
|
21
|
+
}
|
|
22
|
+
export declare const OverlayTopBar: {
|
|
23
|
+
(props: IOverlaytopBar): JSX.Element;
|
|
24
|
+
defaultProps: {
|
|
25
|
+
backgroundColor: Colors;
|
|
26
|
+
mainBodyPosition: Position;
|
|
27
|
+
closedSize: string;
|
|
28
|
+
openSize: string;
|
|
29
|
+
shadow: Colors;
|
|
30
|
+
shadowDim: Settings;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
import { TextfieldVariant } from '../../styleEnums';
|
|
3
|
+
import { ITextField } from '../Level2';
|
|
4
|
+
export interface IPasswordField extends ITextField {
|
|
5
|
+
value: string;
|
|
6
|
+
variant?: TextfieldVariant;
|
|
7
|
+
ripple?: boolean;
|
|
8
|
+
width?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const PasswordField: {
|
|
13
|
+
({ value, onChange, ripple, variant, width, label, ...props }: IPasswordField): JSX.Element;
|
|
14
|
+
defaultProps: {
|
|
15
|
+
variant: TextfieldVariant;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IField } from '../../../generalTypes';
|
|
2
|
+
import { IPhoneInput, PhoneChangeHandler } from './types';
|
|
3
|
+
export interface IPhoneField extends IField {
|
|
4
|
+
value: IPhoneInput;
|
|
5
|
+
onChange: PhoneChangeHandler;
|
|
6
|
+
borderRadius?: string;
|
|
7
|
+
borderColor?: string;
|
|
8
|
+
buttonHoverColor?: string;
|
|
9
|
+
selectionBorderRadius?: string;
|
|
10
|
+
width?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const PhoneField: ({ borderColor, value, buttonHoverColor, selectionBorderRadius, onChange, width, label, ...props }: IPhoneField) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormEventHandler } from 'react';
|
|
2
|
+
import { ICountries } from './countryData';
|
|
3
|
+
import { ITargetCard } from '../../Level2';
|
|
4
|
+
export interface IPhoneSelection extends ITargetCard {
|
|
5
|
+
countryList: ICountries[];
|
|
6
|
+
buttonColor?: string;
|
|
7
|
+
buttonHoverColor?: string;
|
|
8
|
+
borderRadius?: string;
|
|
9
|
+
handleCountrySelect: Function;
|
|
10
|
+
codeSearch: string;
|
|
11
|
+
onCodeSearchChange: FormEventHandler;
|
|
12
|
+
borderColor?: string;
|
|
13
|
+
countryCode: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const PhoneSelection: import("react").ForwardRefExoticComponent<IPhoneSelection & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
export declare const AF: any;
|
|
2
|
+
export declare const AX: any;
|
|
3
|
+
export declare const AL: any;
|
|
4
|
+
export declare const DZ: any;
|
|
5
|
+
export declare const AS: any;
|
|
6
|
+
export declare const AD: any;
|
|
7
|
+
export declare const AO: any;
|
|
8
|
+
export declare const AI: any;
|
|
9
|
+
export declare const AQ: any;
|
|
10
|
+
export declare const AG: any;
|
|
11
|
+
export declare const AR: any;
|
|
12
|
+
export declare const AM: any;
|
|
13
|
+
export declare const AW: any;
|
|
14
|
+
export declare const AU: any;
|
|
15
|
+
export declare const AT: any;
|
|
16
|
+
export declare const AZ: any;
|
|
17
|
+
export declare const BS: any;
|
|
18
|
+
export declare const BH: any;
|
|
19
|
+
export declare const BD: any;
|
|
20
|
+
export declare const BB: any;
|
|
21
|
+
export declare const BY: any;
|
|
22
|
+
export declare const BE: any;
|
|
23
|
+
export declare const BZ: any;
|
|
24
|
+
export declare const BJ: any;
|
|
25
|
+
export declare const BM: any;
|
|
26
|
+
export declare const BO: any;
|
|
27
|
+
export declare const BA: any;
|
|
28
|
+
export declare const BW: any;
|
|
29
|
+
export declare const BV: any;
|
|
30
|
+
export declare const BR: any;
|
|
31
|
+
export declare const IO: any;
|
|
32
|
+
export declare const BN: any;
|
|
33
|
+
export declare const BG: any;
|
|
34
|
+
export declare const BF: any;
|
|
35
|
+
export declare const BI: any;
|
|
36
|
+
export declare const KH: any;
|
|
37
|
+
export declare const CM: any;
|
|
38
|
+
export declare const CA: any;
|
|
39
|
+
export declare const CV: any;
|
|
40
|
+
export declare const KY: any;
|
|
41
|
+
export declare const CF: any;
|
|
42
|
+
export declare const TD: any;
|
|
43
|
+
export declare const CL: any;
|
|
44
|
+
export declare const CN: any;
|
|
45
|
+
export declare const CX: any;
|
|
46
|
+
export declare const CC: any;
|
|
47
|
+
export declare const CO: any;
|
|
48
|
+
export declare const KM: any;
|
|
49
|
+
export declare const CG: any;
|
|
50
|
+
export declare const CD: any;
|
|
51
|
+
export declare const CK: any;
|
|
52
|
+
export declare const CR: any;
|
|
53
|
+
export declare const CI: any;
|
|
54
|
+
export declare const HR: any;
|
|
55
|
+
export declare const CU: any;
|
|
56
|
+
export declare const CY: any;
|
|
57
|
+
export declare const CZ: any;
|
|
58
|
+
export declare const DK: any;
|
|
59
|
+
export declare const DJ: any;
|
|
60
|
+
export declare const DM: any;
|
|
61
|
+
export declare const DO: any;
|
|
62
|
+
export declare const EC: any;
|
|
63
|
+
export declare const EG: any;
|
|
64
|
+
export declare const SV: any;
|
|
65
|
+
export declare const GQ: any;
|
|
66
|
+
export declare const ER: any;
|
|
67
|
+
export declare const EE: any;
|
|
68
|
+
export declare const ET: any;
|
|
69
|
+
export declare const FK: any;
|
|
70
|
+
export declare const FO: any;
|
|
71
|
+
export declare const FJ: any;
|
|
72
|
+
export declare const FI: any;
|
|
73
|
+
export declare const FR: any;
|
|
74
|
+
export declare const GF: any;
|
|
75
|
+
export declare const PF: any;
|
|
76
|
+
export declare const TF: any;
|
|
77
|
+
export declare const GA: any;
|
|
78
|
+
export declare const GM: any;
|
|
79
|
+
export declare const GE: any;
|
|
80
|
+
export declare const DE: any;
|
|
81
|
+
export declare const GH: any;
|
|
82
|
+
export declare const GI: any;
|
|
83
|
+
export declare const GR: any;
|
|
84
|
+
export declare const GL: any;
|
|
85
|
+
export declare const GD: any;
|
|
86
|
+
export declare const GP: any;
|
|
87
|
+
export declare const GU: any;
|
|
88
|
+
export declare const GT: any;
|
|
89
|
+
export declare const GG: any;
|
|
90
|
+
export declare const GN: any;
|
|
91
|
+
export declare const GW: any;
|
|
92
|
+
export declare const GY: any;
|
|
93
|
+
export declare const HT: any;
|
|
94
|
+
export declare const HM: any;
|
|
95
|
+
export declare const VA: any;
|
|
96
|
+
export declare const HN: any;
|
|
97
|
+
export declare const HK: any;
|
|
98
|
+
export declare const HU: any;
|
|
99
|
+
export declare const IS: any;
|
|
100
|
+
export declare const IN: any;
|
|
101
|
+
export declare const ID: any;
|
|
102
|
+
export declare const IR: any;
|
|
103
|
+
export declare const IQ: any;
|
|
104
|
+
export declare const IE: any;
|
|
105
|
+
export declare const IM: any;
|
|
106
|
+
export declare const IL: any;
|
|
107
|
+
export declare const IT: any;
|
|
108
|
+
export declare const JM: any;
|
|
109
|
+
export declare const JP: any;
|
|
110
|
+
export declare const JE: any;
|
|
111
|
+
export declare const JO: any;
|
|
112
|
+
export declare const KZ: any;
|
|
113
|
+
export declare const KE: any;
|
|
114
|
+
export declare const KI: any;
|
|
115
|
+
export declare const KP: any;
|
|
116
|
+
export declare const KR: any;
|
|
117
|
+
export declare const XK: any;
|
|
118
|
+
export declare const KW: any;
|
|
119
|
+
export declare const KG: any;
|
|
120
|
+
export declare const LA: any;
|
|
121
|
+
export declare const LV: any;
|
|
122
|
+
export declare const LB: any;
|
|
123
|
+
export declare const LS: any;
|
|
124
|
+
export declare const LR: any;
|
|
125
|
+
export declare const LY: any;
|
|
126
|
+
export declare const LI: any;
|
|
127
|
+
export declare const LT: any;
|
|
128
|
+
export declare const LU: any;
|
|
129
|
+
export declare const MO: any;
|
|
130
|
+
export declare const MK: any;
|
|
131
|
+
export declare const MG: any;
|
|
132
|
+
export declare const MW: any;
|
|
133
|
+
export declare const MY: any;
|
|
134
|
+
export declare const MV: any;
|
|
135
|
+
export declare const ML: any;
|
|
136
|
+
export declare const MT: any;
|
|
137
|
+
export declare const MQ: any;
|
|
138
|
+
export declare const MR: any;
|
|
139
|
+
export declare const MU: any;
|
|
140
|
+
export declare const YT: any;
|
|
141
|
+
export declare const MX: any;
|
|
142
|
+
export declare const FM: any;
|
|
143
|
+
export declare const MD: any;
|
|
144
|
+
export declare const MC: any;
|
|
145
|
+
export declare const MN: any;
|
|
146
|
+
export declare const ME: any;
|
|
147
|
+
export declare const MS: any;
|
|
148
|
+
export declare const MA: any;
|
|
149
|
+
export declare const MZ: any;
|
|
150
|
+
export declare const MM: any;
|
|
151
|
+
export declare const NA: any;
|
|
152
|
+
export declare const NR: any;
|
|
153
|
+
export declare const NL: any;
|
|
154
|
+
export declare const AN: any;
|
|
155
|
+
export declare const NC: any;
|
|
156
|
+
export declare const NZ: any;
|
|
157
|
+
export declare const NI: any;
|
|
158
|
+
export declare const NE: any;
|
|
159
|
+
export declare const NG: any;
|
|
160
|
+
export declare const NU: any;
|
|
161
|
+
export declare const NF: any;
|
|
162
|
+
export declare const MP: any;
|
|
163
|
+
export declare const NO: any;
|
|
164
|
+
export declare const OM: any;
|
|
165
|
+
export declare const PK: any;
|
|
166
|
+
export declare const PW: any;
|
|
167
|
+
export declare const PS: any;
|
|
168
|
+
export declare const PA: any;
|
|
169
|
+
export declare const PG: any;
|
|
170
|
+
export declare const PY: any;
|
|
171
|
+
export declare const PE: any;
|
|
172
|
+
export declare const PH: any;
|
|
173
|
+
export declare const PN: any;
|
|
174
|
+
export declare const PL: any;
|
|
175
|
+
export declare const PT: any;
|
|
176
|
+
export declare const PR: any;
|
|
177
|
+
export declare const QA: any;
|
|
178
|
+
export declare const RO: any;
|
|
179
|
+
export declare const RU: any;
|
|
180
|
+
export declare const RW: any;
|
|
181
|
+
export declare const RE: any;
|
|
182
|
+
export declare const BL: any;
|
|
183
|
+
export declare const SH: any;
|
|
184
|
+
export declare const KN: any;
|
|
185
|
+
export declare const LC: any;
|
|
186
|
+
export declare const MF: any;
|
|
187
|
+
export declare const PM: any;
|
|
188
|
+
export declare const VC: any;
|
|
189
|
+
export declare const WS: any;
|
|
190
|
+
export declare const SM: any;
|
|
191
|
+
export declare const ST: any;
|
|
192
|
+
export declare const SA: any;
|
|
193
|
+
export declare const SN: any;
|
|
194
|
+
export declare const RS: any;
|
|
195
|
+
export declare const SC: any;
|
|
196
|
+
export declare const SL: any;
|
|
197
|
+
export declare const SG: any;
|
|
198
|
+
export declare const SK: any;
|
|
199
|
+
export declare const SI: any;
|
|
200
|
+
export declare const SB: any;
|
|
201
|
+
export declare const SO: any;
|
|
202
|
+
export declare const ZA: any;
|
|
203
|
+
export declare const SS: any;
|
|
204
|
+
export declare const GS: any;
|
|
205
|
+
export declare const ES: any;
|
|
206
|
+
export declare const LK: any;
|
|
207
|
+
export declare const SD: any;
|
|
208
|
+
export declare const SR: any;
|
|
209
|
+
export declare const SJ: any;
|
|
210
|
+
export declare const SZ: any;
|
|
211
|
+
export declare const SE: any;
|
|
212
|
+
export declare const CH: any;
|
|
213
|
+
export declare const SY: any;
|
|
214
|
+
export declare const TW: any;
|
|
215
|
+
export declare const TJ: any;
|
|
216
|
+
export declare const TZ: any;
|
|
217
|
+
export declare const TH: any;
|
|
218
|
+
export declare const TL: any;
|
|
219
|
+
export declare const TG: any;
|
|
220
|
+
export declare const TK: any;
|
|
221
|
+
export declare const TO: any;
|
|
222
|
+
export declare const TT: any;
|
|
223
|
+
export declare const TN: any;
|
|
224
|
+
export declare const TR: any;
|
|
225
|
+
export declare const TM: any;
|
|
226
|
+
export declare const TC: any;
|
|
227
|
+
export declare const TV: any;
|
|
228
|
+
export declare const UG: any;
|
|
229
|
+
export declare const UA: any;
|
|
230
|
+
export declare const AE: any;
|
|
231
|
+
export declare const GB: any;
|
|
232
|
+
export declare const US: any;
|
|
233
|
+
export declare const UY: any;
|
|
234
|
+
export declare const UZ: any;
|
|
235
|
+
export declare const VU: any;
|
|
236
|
+
export declare const VE: any;
|
|
237
|
+
export declare const VN: any;
|
|
238
|
+
export declare const VG: any;
|
|
239
|
+
export declare const VI: any;
|
|
240
|
+
export declare const WF: any;
|
|
241
|
+
export declare const YE: any;
|
|
242
|
+
export declare const ZM: any;
|
|
243
|
+
export declare const ZW: any;
|