@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
package/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2017 [these people](https://github.com/rollup/rollup-starter-lib/graphs/contributors)
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IStripeProvider } from './components';
|
|
3
|
+
import { GoogleMapConfig } from './geoUtils';
|
|
4
|
+
import { INavigationProvider } from './navigation';
|
|
5
|
+
import { INotificationConfig } from './notification';
|
|
6
|
+
import { IThemeProvider } from './theming';
|
|
7
|
+
export interface IAppProvider {
|
|
8
|
+
theme: IThemeProvider;
|
|
9
|
+
nav: INavigationProvider;
|
|
10
|
+
stripe?: IStripeProvider;
|
|
11
|
+
notification?: INotificationConfig;
|
|
12
|
+
mobileWidth?: number;
|
|
13
|
+
googleMapsConfig?: GoogleMapConfig;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const AppProvider: (props: IAppProvider) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TimingFunctions } from '../styleEnums';
|
|
2
|
+
export interface IRippleState {
|
|
3
|
+
id: string;
|
|
4
|
+
left: string;
|
|
5
|
+
top: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IRipple {
|
|
8
|
+
color: string;
|
|
9
|
+
duration: string;
|
|
10
|
+
timingFunction: TimingFunctions;
|
|
11
|
+
left?: string;
|
|
12
|
+
top?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const StyledRipple: import("styled-components").StyledComponent<"div", any, IRipple, never>;
|
|
15
|
+
export declare const Ripple: (props: IRipple) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ISVG {
|
|
2
|
+
width: string;
|
|
3
|
+
}
|
|
4
|
+
export interface IStrokes {
|
|
5
|
+
color: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ISVGAnimation extends ISVG, IStrokes {
|
|
8
|
+
}
|
|
9
|
+
export declare const ErrorAnimation: (props: ISVGAnimation) => JSX.Element;
|
|
10
|
+
export declare const SuccessAnimation: (props: ISVGAnimation) => JSX.Element;
|
|
11
|
+
export declare const WarningAnimation: (props: ISVGAnimation) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IAuthState, IAuthStoreActions } from './duck';
|
|
3
|
+
export interface IAuthenticationProvider<T> extends IAuthState<T>, IAuthStoreActions {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const _AuthenticationProvider: <T>({ children, user, login, logout }: IAuthenticationProvider<T>) => JSX.Element;
|
|
7
|
+
export declare const AuthenticationProvider: import("react-redux").ConnectedComponent<(<T>({ children, user, login, logout }: IAuthenticationProvider<T>) => JSX.Element), {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
10
|
+
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IAuthState, IAuthStoreActions } from './duck';
|
|
3
|
+
export interface IAuthContext<T> extends IAuthState<T>, IAuthStoreActions {
|
|
4
|
+
}
|
|
5
|
+
export declare const defaultAuthContext: IAuthContext<any>;
|
|
6
|
+
export declare const AuthContext: import("react").Context<IAuthContext<any>>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EmptyFunctionHandler } from '../generalTypes';
|
|
2
|
+
import { UserHandler } from './types';
|
|
3
|
+
export interface IAuthAction<T> {
|
|
4
|
+
type: AuthActionTypes;
|
|
5
|
+
payload: IAuthState<T>;
|
|
6
|
+
}
|
|
7
|
+
export declare enum AuthActionTypes {
|
|
8
|
+
login = "login",
|
|
9
|
+
logout = "logout"
|
|
10
|
+
}
|
|
11
|
+
export interface IAuthState<T> {
|
|
12
|
+
user?: T;
|
|
13
|
+
}
|
|
14
|
+
export interface IAuthStoreActions {
|
|
15
|
+
login?: UserHandler;
|
|
16
|
+
logout?: EmptyFunctionHandler;
|
|
17
|
+
}
|
|
18
|
+
export interface IAuthMapStore<T> {
|
|
19
|
+
authentication: IAuthState<T>;
|
|
20
|
+
}
|
|
21
|
+
export declare const persistAuth: string[];
|
|
22
|
+
export declare const authReducer: (state: IAuthState<any> | undefined, action: IAuthAction<any>) => IAuthState<any>;
|
|
23
|
+
export declare const authActions: {
|
|
24
|
+
login: (user: any) => {
|
|
25
|
+
type: AuthActionTypes;
|
|
26
|
+
payload: {
|
|
27
|
+
user: any;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
logout: () => {
|
|
31
|
+
type: AuthActionTypes;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const mapStateToPropsAuthentication: (store: IAuthMapStore<any>) => {
|
|
35
|
+
user: any;
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UserHandler = (user: any) => void;
|
package/dist/axios.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { AxiosError, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { EmptyFunctionHandler } from './generalTypes';
|
|
3
|
+
export declare const firebaseAuthHeaders: () => Promise<{
|
|
4
|
+
authorization: string;
|
|
5
|
+
} | null>;
|
|
6
|
+
export declare const requestInterceptor: (config: AxiosRequestConfig, firebase?: boolean, extraOptions?: AxiosRequestConfig) => Promise<{
|
|
7
|
+
headers: {
|
|
8
|
+
authorization?: string | undefined;
|
|
9
|
+
head?: import("axios").AxiosHeaders | undefined;
|
|
10
|
+
link?: import("axios").AxiosHeaders | undefined;
|
|
11
|
+
options?: import("axios").AxiosHeaders | undefined;
|
|
12
|
+
get?: import("axios").AxiosHeaders | undefined;
|
|
13
|
+
delete?: import("axios").AxiosHeaders | undefined;
|
|
14
|
+
post?: import("axios").AxiosHeaders | undefined;
|
|
15
|
+
put?: import("axios").AxiosHeaders | undefined;
|
|
16
|
+
patch?: import("axios").AxiosHeaders | undefined;
|
|
17
|
+
purge?: import("axios").AxiosHeaders | undefined;
|
|
18
|
+
unlink?: import("axios").AxiosHeaders | undefined;
|
|
19
|
+
common?: import("axios").AxiosHeaders | undefined;
|
|
20
|
+
};
|
|
21
|
+
url?: string | undefined;
|
|
22
|
+
method?: string | undefined;
|
|
23
|
+
baseURL?: string | undefined;
|
|
24
|
+
transformRequest?: import("axios").AxiosRequestTransformer | import("axios").AxiosRequestTransformer[] | undefined;
|
|
25
|
+
transformResponse?: import("axios").AxiosResponseTransformer | import("axios").AxiosResponseTransformer[] | undefined;
|
|
26
|
+
params?: any;
|
|
27
|
+
paramsSerializer?: import("axios").ParamsSerializerOptions | undefined;
|
|
28
|
+
data?: any;
|
|
29
|
+
timeout?: number | undefined;
|
|
30
|
+
timeoutErrorMessage?: string | undefined;
|
|
31
|
+
withCredentials?: boolean | undefined;
|
|
32
|
+
adapter?: (string | import("axios").AxiosAdapter) | (string | import("axios").AxiosAdapter)[] | undefined;
|
|
33
|
+
auth?: import("axios").AxiosBasicCredentials | undefined;
|
|
34
|
+
responseType?: import("axios").ResponseType | undefined;
|
|
35
|
+
responseEncoding?: string | undefined;
|
|
36
|
+
xsrfCookieName?: string | undefined;
|
|
37
|
+
xsrfHeaderName?: string | undefined;
|
|
38
|
+
onUploadProgress?: ((progressEvent: import("axios").AxiosProgressEvent) => void) | undefined;
|
|
39
|
+
onDownloadProgress?: ((progressEvent: import("axios").AxiosProgressEvent) => void) | undefined;
|
|
40
|
+
maxContentLength?: number | undefined;
|
|
41
|
+
validateStatus?: ((status: number) => boolean) | null | undefined;
|
|
42
|
+
maxBodyLength?: number | undefined;
|
|
43
|
+
maxRedirects?: number | undefined;
|
|
44
|
+
maxRate?: number | [number, number] | undefined;
|
|
45
|
+
beforeRedirect?: ((options: Record<string, any>, responseDetails: {
|
|
46
|
+
headers: Record<string, string>;
|
|
47
|
+
}) => void) | undefined;
|
|
48
|
+
socketPath?: string | null | undefined;
|
|
49
|
+
httpAgent?: any;
|
|
50
|
+
httpsAgent?: any;
|
|
51
|
+
proxy?: false | import("axios").AxiosProxyConfig | undefined;
|
|
52
|
+
cancelToken?: import("axios").CancelToken | undefined;
|
|
53
|
+
decompress?: boolean | undefined;
|
|
54
|
+
transitional?: import("axios").TransitionalOptions | undefined;
|
|
55
|
+
signal?: import("axios").GenericAbortSignal | undefined;
|
|
56
|
+
insecureHTTPParser?: boolean | undefined;
|
|
57
|
+
env?: {
|
|
58
|
+
FormData?: (new (...args: any[]) => object) | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
formSerializer?: import("axios").FormSerializerOptions | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
export declare const logoutResponseInterceptor: (error: AxiosError, logoutFunc?: EmptyFunctionHandler, logoutPath?: string) => Promise<never>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IUrlData } from './types';
|
|
3
|
+
export interface IBreadCrumbContext {
|
|
4
|
+
currentSteps: IUrlData[];
|
|
5
|
+
setCurrentSteps?: BreadCrumbHandler;
|
|
6
|
+
}
|
|
7
|
+
export type BreadCrumbHandler = (url: IUrlData[]) => void;
|
|
8
|
+
export declare const defaultBreadCrumbContext: IBreadCrumbContext;
|
|
9
|
+
export declare const BreadCrumbContext: import("react").Context<IBreadCrumbContext>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NotificationConsumer: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SnackbarConsumer: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ToolTipConsumer: () => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ImageProps } from 'next/image';
|
|
2
|
+
export interface IFbImage extends Omit<ImageProps, 'src'> {
|
|
3
|
+
fbUrl?: string;
|
|
4
|
+
noImagePadding?: string;
|
|
5
|
+
src?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const FbImage: ({ noImagePadding, fbUrl, src, alt, ...props }: IFbImage) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { User } from 'firebase/auth';
|
|
2
|
+
export interface IFirebaseConfig {
|
|
3
|
+
apiKey: string;
|
|
4
|
+
authDomain: string;
|
|
5
|
+
projectId: string;
|
|
6
|
+
storageBucket: string;
|
|
7
|
+
messagingSenderId: string;
|
|
8
|
+
appId: string;
|
|
9
|
+
measurementId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IFirebaseState {
|
|
12
|
+
initializing: boolean;
|
|
13
|
+
user: User | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EmptyFunctionHandler } from '../../generalTypes';
|
|
2
|
+
export interface IChangePassword {
|
|
3
|
+
firebase?: boolean;
|
|
4
|
+
onSubmit?: (oldPassword: string, newPassword: string) => Promise<void>;
|
|
5
|
+
email?: string;
|
|
6
|
+
onError: (error: string) => void;
|
|
7
|
+
onSuccess: EmptyFunctionHandler;
|
|
8
|
+
}
|
|
9
|
+
export declare const ChangePassword: (props: IChangePassword) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ChangePassword';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IGoogleCalendarContext {
|
|
3
|
+
loaded: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const defaultGoogleCalendarContext: IGoogleCalendarContext;
|
|
6
|
+
export declare const GoogleCalendarContext: import("react").Context<IGoogleCalendarContext>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IMarkerPos } from '../../geoUtils';
|
|
2
|
+
export interface IGMap extends GMapOptionalInputs, GMapView {
|
|
3
|
+
}
|
|
4
|
+
export interface GMapView {
|
|
5
|
+
width?: string;
|
|
6
|
+
height?: string;
|
|
7
|
+
center?: IMarkerPos;
|
|
8
|
+
markerPos?: IMarkerPos;
|
|
9
|
+
zoom?: number;
|
|
10
|
+
clickable?: boolean;
|
|
11
|
+
draggableMarker?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface GMapOptionalInputs {
|
|
14
|
+
setMarkerPos?: (pos: IMarkerPos) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const GMap: {
|
|
17
|
+
(props: IGMap): JSX.Element;
|
|
18
|
+
defaultProps: {
|
|
19
|
+
width: string;
|
|
20
|
+
height: string;
|
|
21
|
+
zoom: number;
|
|
22
|
+
center: {
|
|
23
|
+
lng: number;
|
|
24
|
+
lat: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IMarkerPos } from '../../geoUtils';
|
|
2
|
+
import { TargetCardType } from '../Level2';
|
|
3
|
+
import { IOption } from '../UseDataLayer';
|
|
4
|
+
import { GMapView } from './GMap';
|
|
5
|
+
export interface IGMapInput extends GMapView {
|
|
6
|
+
showCoordinates?: boolean;
|
|
7
|
+
showAddress?: boolean;
|
|
8
|
+
address?: IOption;
|
|
9
|
+
setAddress?: (address: any) => void;
|
|
10
|
+
editableFields?: boolean;
|
|
11
|
+
setMarkerPos: (pos: IMarkerPos) => void;
|
|
12
|
+
error?: string;
|
|
13
|
+
targetCardType?: TargetCardType;
|
|
14
|
+
}
|
|
15
|
+
export declare const GMapInput: ({ setAddress, setMarkerPos, ...props }: IGMapInput) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TextAlignment } from '../../styleEnums';
|
|
3
|
+
import { Colors } from '../../theming';
|
|
4
|
+
export interface ITitledRow {
|
|
5
|
+
label: string;
|
|
6
|
+
data: ReactNode;
|
|
7
|
+
color?: Colors | string;
|
|
8
|
+
titleWidth?: string;
|
|
9
|
+
titleAlignment?: TextAlignment;
|
|
10
|
+
bodyWidth?: string;
|
|
11
|
+
noCapitalization?: boolean;
|
|
12
|
+
width?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const TitledRow: (props: ITitledRow) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TitledRow';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HTMLAttributes, MouseEventHandler } from 'react';
|
|
2
|
+
import { Alignment } from '../../styleEnums';
|
|
3
|
+
import { Colors, Settings } from '../../theming';
|
|
4
|
+
export interface IButton extends HTMLAttributes<HTMLButtonElement>, IButtonStyle {
|
|
5
|
+
ripple?: boolean;
|
|
6
|
+
onLoadClick?: MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
toolTipText?: string;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
loadingWidth?: string;
|
|
10
|
+
loadingHeight?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IButtonStyle {
|
|
13
|
+
outlined?: boolean;
|
|
14
|
+
hoverShadow?: boolean;
|
|
15
|
+
hoverColor?: Colors | string;
|
|
16
|
+
shadow?: Colors | string;
|
|
17
|
+
shadowDim?: Settings | string;
|
|
18
|
+
transition?: string;
|
|
19
|
+
color?: Colors | string;
|
|
20
|
+
borderRadius?: Settings | string;
|
|
21
|
+
spinnerColor?: Colors | string;
|
|
22
|
+
width?: string;
|
|
23
|
+
height?: string;
|
|
24
|
+
padding?: string;
|
|
25
|
+
flex?: string;
|
|
26
|
+
alignment?: Alignment;
|
|
27
|
+
disable?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const Button: import("react").ForwardRefExoticComponent<IButton & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Alignment, Direction, DisplayTypes, FlexWrap, Overflow, PointerEvents, Position, WhiteSpace, ZIndexLayers } from '../../styleEnums';
|
|
3
|
+
import { Colors, Settings } from '../../theming';
|
|
4
|
+
export interface IContainer extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
display?: DisplayTypes;
|
|
6
|
+
print?: Boolean;
|
|
7
|
+
zIndex?: ZIndexLayers;
|
|
8
|
+
borderRightStyle?: Settings | string;
|
|
9
|
+
borderLeftStyle?: Settings | string;
|
|
10
|
+
borderBottomStyle?: Settings | string;
|
|
11
|
+
borderTopStyle?: Settings | string;
|
|
12
|
+
borderRadius?: Settings | string;
|
|
13
|
+
borderTopRightRadius?: string;
|
|
14
|
+
borderTopLeftRadius?: string;
|
|
15
|
+
borderBottomRightRadius?: string;
|
|
16
|
+
borderBottomLeftRadius?: string;
|
|
17
|
+
borderStyle?: Settings | string;
|
|
18
|
+
borderColor?: Colors | string;
|
|
19
|
+
height?: string;
|
|
20
|
+
width?: string;
|
|
21
|
+
minWidth?: string;
|
|
22
|
+
maxWidth?: string;
|
|
23
|
+
minHeight?: string;
|
|
24
|
+
maxHeight?: string;
|
|
25
|
+
overflow?: Overflow;
|
|
26
|
+
overflowX?: Overflow;
|
|
27
|
+
overflowY?: Overflow;
|
|
28
|
+
bottom?: string;
|
|
29
|
+
top?: string;
|
|
30
|
+
left?: string;
|
|
31
|
+
right?: string;
|
|
32
|
+
position?: Position;
|
|
33
|
+
direction?: Direction;
|
|
34
|
+
mainAxis?: Alignment;
|
|
35
|
+
crossAxis?: Alignment;
|
|
36
|
+
flex?: string;
|
|
37
|
+
backgroundColor?: Colors | string;
|
|
38
|
+
padding?: string;
|
|
39
|
+
printPadding?: string;
|
|
40
|
+
shadow?: Colors | string;
|
|
41
|
+
shadowDim?: Settings | string;
|
|
42
|
+
margin?: string;
|
|
43
|
+
opacity?: number | string;
|
|
44
|
+
visibility?: string;
|
|
45
|
+
transition?: string;
|
|
46
|
+
hiddenScrollbar?: boolean;
|
|
47
|
+
pointerEvents?: PointerEvents;
|
|
48
|
+
clickable?: boolean;
|
|
49
|
+
scrollTrackHover?: string;
|
|
50
|
+
scrollThumb?: string;
|
|
51
|
+
scrollThumbHover?: string;
|
|
52
|
+
whiteSpace?: WhiteSpace;
|
|
53
|
+
flexWrap?: FlexWrap;
|
|
54
|
+
backgroundUrl?: string;
|
|
55
|
+
printPosition?: Position;
|
|
56
|
+
}
|
|
57
|
+
export declare const Container: import("react").ForwardRefExoticComponent<IContainer & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Colors } from '../../theming';
|
|
3
|
+
export interface IDropdownButton extends HTMLAttributes<HTMLButtonElement>, IDropdownButtonStyle {
|
|
4
|
+
}
|
|
5
|
+
interface IDropdownButtonStyle {
|
|
6
|
+
hoverColor?: string;
|
|
7
|
+
backgroundColor?: string | Colors;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const DropdownButton: (props: IDropdownButton) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IContainer } from './Container';
|
|
3
|
+
export interface IFadeInOut extends IContainer {
|
|
4
|
+
show?: boolean;
|
|
5
|
+
hideFadeIn?: boolean;
|
|
6
|
+
hideFadeOut?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const FadeInOut: import("react").ForwardRefExoticComponent<IFadeInOut & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Colors } from '../../theming';
|
|
2
|
+
export interface IHr {
|
|
3
|
+
color?: string | Colors;
|
|
4
|
+
width?: string;
|
|
5
|
+
thickness?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Hr: {
|
|
8
|
+
(props: IHr): JSX.Element;
|
|
9
|
+
defaultProps: {
|
|
10
|
+
width: string;
|
|
11
|
+
thickness: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { TextVariants } from '../../styleEnums';
|
|
3
|
+
import { Colors } from '../../theming';
|
|
4
|
+
export interface IIconStyle {
|
|
5
|
+
hoverColor?: Colors | string;
|
|
6
|
+
color?: string | Colors;
|
|
7
|
+
opacity?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface IIcon extends IIconStyle, HTMLAttributes<HTMLSpanElement> {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
variant?: TextVariants;
|
|
12
|
+
}
|
|
13
|
+
export declare const Icon: {
|
|
14
|
+
(props: IIcon): JSX.Element;
|
|
15
|
+
defaultProps: {
|
|
16
|
+
variant: TextVariants;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ChangeEventHandler } from 'react';
|
|
2
|
+
import { Colors } from '../../theming';
|
|
3
|
+
export interface ISlider {
|
|
4
|
+
value: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
height?: string;
|
|
7
|
+
thumbHeight?: string;
|
|
8
|
+
upperColor?: Colors | string;
|
|
9
|
+
lowerColor?: Colors | string;
|
|
10
|
+
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
11
|
+
}
|
|
12
|
+
export declare const Slider: {
|
|
13
|
+
(props: ISlider): JSX.Element;
|
|
14
|
+
defaultProps: {
|
|
15
|
+
height: string;
|
|
16
|
+
width: string;
|
|
17
|
+
thumbHeight: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Overflow, PointerEvents, TextAlignment, TextDecoration, TextFontStyle, TextTransform, TextVariants, WhiteSpace } from '../../styleEnums';
|
|
3
|
+
import { Colors } from '../../theming';
|
|
4
|
+
interface ITypographyStyle {
|
|
5
|
+
padding?: string;
|
|
6
|
+
maxHeight?: string;
|
|
7
|
+
maxWidth?: string;
|
|
8
|
+
minHeight?: string;
|
|
9
|
+
minWidth?: string;
|
|
10
|
+
pointerEvents?: PointerEvents;
|
|
11
|
+
}
|
|
12
|
+
export interface ITypography extends HTMLAttributes<HTMLParagraphElement>, ITypographyStyle {
|
|
13
|
+
color?: string | Colors;
|
|
14
|
+
opacity?: number;
|
|
15
|
+
variant?: TextVariants;
|
|
16
|
+
fontSize?: string;
|
|
17
|
+
fontFamily?: string;
|
|
18
|
+
fontStyle?: TextFontStyle | string;
|
|
19
|
+
textTransform?: TextTransform;
|
|
20
|
+
textAlign?: TextAlignment;
|
|
21
|
+
textDecoration?: TextDecoration;
|
|
22
|
+
fontWeight?: string;
|
|
23
|
+
textClamp?: number;
|
|
24
|
+
lineHeight?: number;
|
|
25
|
+
whiteSpace: WhiteSpace;
|
|
26
|
+
overflow: Overflow;
|
|
27
|
+
}
|
|
28
|
+
export declare const Typography: {
|
|
29
|
+
(props: ITypography): JSX.Element;
|
|
30
|
+
defaultProps: {
|
|
31
|
+
pointerEvents: PointerEvents;
|
|
32
|
+
whiteSpace: WhiteSpace;
|
|
33
|
+
overflow: Overflow;
|
|
34
|
+
padding: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './Typography';
|
|
2
|
+
export * from './Container';
|
|
3
|
+
export * from './Button';
|
|
4
|
+
export * from './Icon';
|
|
5
|
+
export * from './Spacer';
|
|
6
|
+
export * from './Hr';
|
|
7
|
+
export * from './A';
|
|
8
|
+
export * from './DropdownButton';
|
|
9
|
+
export * from './Slider';
|
|
10
|
+
export * from './FadeInOut';
|