@piu-company/react-toolkit 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 -6
- 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 -62
- package/dist/breadCrumb/BreadCrumbProvider.d.ts +5 -5
- package/dist/breadCrumb/context.d.ts +8 -9
- 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 -6
- 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 -6
- 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 -8
- 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 -18
- 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 +42 -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 -19
- 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 +22 -22
- package/dist/components/Level3/TimeField/TimePicker.d.ts +23 -24
- 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 -7
- 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 -12
- 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.cjs.js +53158 -52655
- package/dist/index.d.ts +22 -22
- package/dist/index.esm.js +53243 -52740
- package/dist/masker.d.ts +15 -15
- package/dist/navigation/NavProvider.d.ts +7 -7
- package/dist/navigation/context.d.ts +6 -7
- 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 -9
- 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 -6
- 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 -9
- 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 -12
- 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 -11
- 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 +34 -31
package/dist/masker.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export declare enum MaskerCharacters {
|
|
2
|
-
digit = "d",
|
|
3
|
-
letter = "x",
|
|
4
|
-
empty = "-"
|
|
5
|
-
}
|
|
6
|
-
export interface IMaskerConfig {
|
|
7
|
-
template: string;
|
|
8
|
-
placeholder: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const maskLetterChecker: (config: IMaskerConfig, raw: string) => boolean;
|
|
11
|
-
export declare const maskOutput: (config: IMaskerConfig, raw: string) => string;
|
|
12
|
-
export declare const idCardMask: IMaskerConfig;
|
|
13
|
-
export declare const dateMask: IMaskerConfig;
|
|
14
|
-
export declare const timeMask: IMaskerConfig;
|
|
15
|
-
export declare const vatMTMask: IMaskerConfig;
|
|
1
|
+
export declare enum MaskerCharacters {
|
|
2
|
+
digit = "d",
|
|
3
|
+
letter = "x",
|
|
4
|
+
empty = "-"
|
|
5
|
+
}
|
|
6
|
+
export interface IMaskerConfig {
|
|
7
|
+
template: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const maskLetterChecker: (config: IMaskerConfig, raw: string) => boolean;
|
|
11
|
+
export declare const maskOutput: (config: IMaskerConfig, raw: string) => string;
|
|
12
|
+
export declare const idCardMask: IMaskerConfig;
|
|
13
|
+
export declare const dateMask: IMaskerConfig;
|
|
14
|
+
export declare const timeMask: IMaskerConfig;
|
|
15
|
+
export declare const vatMTMask: IMaskerConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Browser } from './types';
|
|
3
|
-
export interface INavigationProvider {
|
|
4
|
-
browser: Browser;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare const NavigationProvider: (props: INavigationProvider) => JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Browser } from './types';
|
|
3
|
+
export interface INavigationProvider {
|
|
4
|
+
browser: Browser;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const NavigationProvider: (props: INavigationProvider) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const NavigationContext: import("react").Context<INavigationContext>;
|
|
1
|
+
import { Browser } from './types';
|
|
2
|
+
export interface INavigationContext {
|
|
3
|
+
browser?: Browser;
|
|
4
|
+
}
|
|
5
|
+
export declare const defaultNavigationContext: INavigationContext;
|
|
6
|
+
export declare const NavigationContext: import("react").Context<INavigationContext>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './context';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './NavProvider';
|
|
1
|
+
export * from './context';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export * from './NavProvider';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare enum Browser {
|
|
2
|
-
firefox = "firefox",
|
|
3
|
-
edge = "edge",
|
|
4
|
-
chrome = "chrome",
|
|
5
|
-
safari = "safari"
|
|
6
|
-
}
|
|
1
|
+
export declare enum Browser {
|
|
2
|
+
firefox = "firefox",
|
|
3
|
+
edge = "edge",
|
|
4
|
+
chrome = "chrome",
|
|
5
|
+
safari = "safari"
|
|
6
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { INotificationState, INotificationStoreActions } from './duck';
|
|
3
|
-
import { PlayFunction } from 'use-sound/dist/types';
|
|
4
|
-
export interface Notification {
|
|
5
|
-
title: string;
|
|
6
|
-
body: string;
|
|
7
|
-
link?: string;
|
|
8
|
-
dismissable?: boolean;
|
|
9
|
-
sound?: boolean;
|
|
10
|
-
type?: string;
|
|
11
|
-
data?: any;
|
|
12
|
-
}
|
|
13
|
-
export interface INotificationConfig {
|
|
14
|
-
sound?: PlayFunction;
|
|
15
|
-
customConsumer?: boolean;
|
|
16
|
-
onAddNotification?: (notification: Notification) => void;
|
|
17
|
-
}
|
|
18
|
-
export interface INotificationProvider extends INotificationConfig, INotificationState, INotificationStoreActions {
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
}
|
|
21
|
-
export declare const NotificationProvider: any;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { INotificationState, INotificationStoreActions } from './duck';
|
|
3
|
+
import { PlayFunction } from 'use-sound/dist/types';
|
|
4
|
+
export interface Notification {
|
|
5
|
+
title: string;
|
|
6
|
+
body: string;
|
|
7
|
+
link?: string;
|
|
8
|
+
dismissable?: boolean;
|
|
9
|
+
sound?: boolean;
|
|
10
|
+
type?: string;
|
|
11
|
+
data?: any;
|
|
12
|
+
}
|
|
13
|
+
export interface INotificationConfig {
|
|
14
|
+
sound?: PlayFunction;
|
|
15
|
+
customConsumer?: boolean;
|
|
16
|
+
onAddNotification?: (notification: Notification) => void;
|
|
17
|
+
}
|
|
18
|
+
export interface INotificationProvider extends INotificationConfig, INotificationState, INotificationStoreActions {
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare const NotificationProvider: any;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const NotificationContext: import("react").Context<INotificationContext>;
|
|
1
|
+
import { Notification } from './NotificationProvider';
|
|
2
|
+
export interface INotificationContext {
|
|
3
|
+
notifications?: Notification[];
|
|
4
|
+
addNotification?: (newNotif: Notification) => void;
|
|
5
|
+
removeNotification?: (index: number) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultNotificationContext: INotificationContext;
|
|
8
|
+
export declare const NotificationContext: import("react").Context<INotificationContext>;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { Notification } from './NotificationProvider';
|
|
2
|
-
export interface INotificationAction {
|
|
3
|
-
type: NotificationActionTypes;
|
|
4
|
-
payload: INotificationState;
|
|
5
|
-
}
|
|
6
|
-
export declare enum NotificationActionTypes {
|
|
7
|
-
setNotifications = "setNotifications"
|
|
8
|
-
}
|
|
9
|
-
export interface INotificationState {
|
|
10
|
-
notifications?: Notification[];
|
|
11
|
-
}
|
|
12
|
-
export interface INotificationStoreActions {
|
|
13
|
-
setNotifications: (notifications: Notification[]) => void;
|
|
14
|
-
}
|
|
15
|
-
export interface INotificationMapStore {
|
|
16
|
-
notifications: INotificationState;
|
|
17
|
-
}
|
|
18
|
-
export declare const persistNotification: string[];
|
|
19
|
-
export declare const notificationReducer: (state: INotificationState | undefined, action: INotificationAction) => INotificationState;
|
|
20
|
-
export declare const notificationActions: {
|
|
21
|
-
setNotifications: (notifications: Notification[]) => {
|
|
22
|
-
type: NotificationActionTypes;
|
|
23
|
-
payload: {
|
|
24
|
-
notifications: Notification[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export declare const mapStateToPropsNotification: (store: INotificationMapStore) => {
|
|
29
|
-
notifications: Notification[] | undefined;
|
|
30
|
-
};
|
|
1
|
+
import { Notification } from './NotificationProvider';
|
|
2
|
+
export interface INotificationAction {
|
|
3
|
+
type: NotificationActionTypes;
|
|
4
|
+
payload: INotificationState;
|
|
5
|
+
}
|
|
6
|
+
export declare enum NotificationActionTypes {
|
|
7
|
+
setNotifications = "setNotifications"
|
|
8
|
+
}
|
|
9
|
+
export interface INotificationState {
|
|
10
|
+
notifications?: Notification[];
|
|
11
|
+
}
|
|
12
|
+
export interface INotificationStoreActions {
|
|
13
|
+
setNotifications: (notifications: Notification[]) => void;
|
|
14
|
+
}
|
|
15
|
+
export interface INotificationMapStore {
|
|
16
|
+
notifications: INotificationState;
|
|
17
|
+
}
|
|
18
|
+
export declare const persistNotification: string[];
|
|
19
|
+
export declare const notificationReducer: (state: INotificationState | undefined, action: INotificationAction) => INotificationState;
|
|
20
|
+
export declare const notificationActions: {
|
|
21
|
+
setNotifications: (notifications: Notification[]) => {
|
|
22
|
+
type: NotificationActionTypes;
|
|
23
|
+
payload: {
|
|
24
|
+
notifications: Notification[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const mapStateToPropsNotification: (store: INotificationMapStore) => {
|
|
29
|
+
notifications: Notification[] | undefined;
|
|
30
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './NotificationProvider';
|
|
2
|
-
export * from './context';
|
|
3
|
-
export * from './duck';
|
|
1
|
+
export * from './NotificationProvider';
|
|
2
|
+
export * from './context';
|
|
3
|
+
export * from './duck';
|
package/dist/redux.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Reducer } from 'react';
|
|
2
|
-
import { PersistConfig } from 'redux-persist';
|
|
3
|
-
import { IAuthAction, IAuthState } from './authentication';
|
|
4
|
-
import { ISidebarAction, ISidebarState } from './components';
|
|
5
|
-
import { IThemeAction, IThemeState } from './theming';
|
|
6
|
-
import { IDataLayerAction, IDataLayerState } from './dataLayer';
|
|
7
|
-
import { PersistPartial } from 'redux-persist/es/persistReducer';
|
|
8
|
-
import { INotificationAction, INotificationState } from './notification';
|
|
9
|
-
export declare const generateModulePersistConfig: <T>(appName: string, moduleName: string, whitelist: string[]) => PersistConfig<T, any, any, any>;
|
|
10
|
-
export declare const defaultStorageSetup: IStorageSetup;
|
|
11
|
-
export interface IStorageSetup {
|
|
12
|
-
theme?: boolean;
|
|
13
|
-
authentication?: boolean;
|
|
14
|
-
sidebar?: boolean;
|
|
15
|
-
notifications?: boolean;
|
|
16
|
-
dataLayer?: string[];
|
|
17
|
-
}
|
|
18
|
-
export interface IConfig<UserType> {
|
|
19
|
-
theme?: Reducer<IThemeState, IThemeAction> | Reducer<IThemeState & PersistPartial, IThemeAction>;
|
|
20
|
-
sidebar?: Reducer<ISidebarState & PersistPartial, ISidebarAction> | Reducer<ISidebarState, ISidebarAction>;
|
|
21
|
-
authentication?: Reducer<IAuthState<UserType> & PersistPartial, IAuthAction<UserType>> | Reducer<IAuthState<UserType>, IAuthAction<UserType>>;
|
|
22
|
-
notifications?: Reducer<INotificationState & PersistPartial, INotificationAction> | Reducer<INotificationState, INotificationAction>;
|
|
23
|
-
dataLayer?: Reducer<IDataLayerState & PersistPartial, IDataLayerAction> | Reducer<IDataLayerState, IDataLayerAction>;
|
|
24
|
-
}
|
|
25
|
-
export declare const reducerCombiner: <T>(appName: string, setup?: IStorageSetup) => IConfig<T>;
|
|
1
|
+
import { Reducer } from 'react';
|
|
2
|
+
import { PersistConfig } from 'redux-persist';
|
|
3
|
+
import { IAuthAction, IAuthState } from './authentication';
|
|
4
|
+
import { ISidebarAction, ISidebarState } from './components';
|
|
5
|
+
import { IThemeAction, IThemeState } from './theming';
|
|
6
|
+
import { IDataLayerAction, IDataLayerState } from './dataLayer';
|
|
7
|
+
import { PersistPartial } from 'redux-persist/es/persistReducer';
|
|
8
|
+
import { INotificationAction, INotificationState } from './notification';
|
|
9
|
+
export declare const generateModulePersistConfig: <T>(appName: string, moduleName: string, whitelist: string[]) => PersistConfig<T, any, any, any>;
|
|
10
|
+
export declare const defaultStorageSetup: IStorageSetup;
|
|
11
|
+
export interface IStorageSetup {
|
|
12
|
+
theme?: boolean;
|
|
13
|
+
authentication?: boolean;
|
|
14
|
+
sidebar?: boolean;
|
|
15
|
+
notifications?: boolean;
|
|
16
|
+
dataLayer?: string[];
|
|
17
|
+
}
|
|
18
|
+
export interface IConfig<UserType> {
|
|
19
|
+
theme?: Reducer<IThemeState, IThemeAction> | Reducer<IThemeState & PersistPartial, IThemeAction>;
|
|
20
|
+
sidebar?: Reducer<ISidebarState & PersistPartial, ISidebarAction> | Reducer<ISidebarState, ISidebarAction>;
|
|
21
|
+
authentication?: Reducer<IAuthState<UserType> & PersistPartial, IAuthAction<UserType>> | Reducer<IAuthState<UserType>, IAuthAction<UserType>>;
|
|
22
|
+
notifications?: Reducer<INotificationState & PersistPartial, INotificationAction> | Reducer<INotificationState, INotificationAction>;
|
|
23
|
+
dataLayer?: Reducer<IDataLayerState & PersistPartial, IDataLayerAction> | Reducer<IDataLayerState, IDataLayerAction>;
|
|
24
|
+
}
|
|
25
|
+
export declare const reducerCombiner: <T>(appName: string, setup?: IStorageSetup) => IConfig<T>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface ISizeProvider {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
mobileWidth?: number;
|
|
5
|
-
}
|
|
6
|
-
export declare const SizeProvider: (props: ISizeProvider) => JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ISizeProvider {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
mobileWidth?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const SizeProvider: (props: ISizeProvider) => import("react/jsx-runtime").JSX.Element;
|
package/dist/size/context.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const SizeContext: import("react").Context<ISizeContext>;
|
|
1
|
+
export interface ISizeContext {
|
|
2
|
+
mobile: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const defaultSizeContext: ISizeContext;
|
|
5
|
+
export declare const SizeContext: import("react").Context<ISizeContext>;
|
package/dist/size/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './context';
|
|
2
|
-
export * from './SizeProvider';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './context';
|
|
2
|
+
export * from './SizeProvider';
|
|
3
|
+
export * from './types';
|
package/dist/size/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface ISize {
|
|
2
|
-
width: number;
|
|
3
|
-
height: number;
|
|
4
|
-
}
|
|
5
|
-
export declare const mobileWidth = 768;
|
|
1
|
+
export interface ISize {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const mobileWidth = 768;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface ISnackbarProvider {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
export declare const SnackbarProvider: (props: ISnackbarProvider) => JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ISnackbarProvider {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const SnackbarProvider: (props: ISnackbarProvider) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const SnackbarContext: import("react").Context<ISnackbarContext>;
|
|
1
|
+
import { ISnackbar } from '../components';
|
|
2
|
+
import { SnackbarStateHandler } from './types';
|
|
3
|
+
export interface ISnackbarContext {
|
|
4
|
+
state?: ISnackbar;
|
|
5
|
+
addData?: SnackbarStateHandler;
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultSnackbarsContext: ISnackbarContext;
|
|
8
|
+
export declare const SnackbarContext: import("react").Context<ISnackbarContext>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ISnackbarConfig, SnackbarStateHandler, SnackbarType } from './types';
|
|
2
|
-
export declare const generateSnackbarConfig: (message: string, type: SnackbarType, snackbarData?: ISnackbarConfig) => {
|
|
3
|
-
data: {
|
|
4
|
-
message: string;
|
|
5
|
-
snackbarType: SnackbarType;
|
|
6
|
-
interval: number;
|
|
7
|
-
show: boolean;
|
|
8
|
-
};
|
|
9
|
-
horizontalPos: import("..").FloatingPosH;
|
|
10
|
-
verticalPos: import("..").FloatingPosV;
|
|
11
|
-
icon: boolean;
|
|
12
|
-
width?: string
|
|
13
|
-
};
|
|
14
|
-
export declare const displaySnackbar: (message: string, barType: SnackbarType, snackbarAddData?: SnackbarStateHandler) => void;
|
|
1
|
+
import { ISnackbarConfig, SnackbarStateHandler, SnackbarType } from './types';
|
|
2
|
+
export declare const generateSnackbarConfig: (message: string, type: SnackbarType, snackbarData?: ISnackbarConfig) => {
|
|
3
|
+
data: {
|
|
4
|
+
message: string;
|
|
5
|
+
snackbarType: SnackbarType;
|
|
6
|
+
interval: number;
|
|
7
|
+
show: boolean;
|
|
8
|
+
};
|
|
9
|
+
horizontalPos: import("..").FloatingPosH;
|
|
10
|
+
verticalPos: import("..").FloatingPosV;
|
|
11
|
+
icon: boolean;
|
|
12
|
+
width?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const displaySnackbar: (message: string, barType: SnackbarType, snackbarAddData?: SnackbarStateHandler) => void;
|
package/dist/snackbar/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
export * from './context';
|
|
3
|
-
export * from './SnackbarProvider';
|
|
4
|
-
export * from './functions';
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './context';
|
|
3
|
+
export * from './SnackbarProvider';
|
|
4
|
+
export * from './functions';
|
package/dist/snackbar/types.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ISnackbar } from '../components';
|
|
2
|
-
import { FloatingPosH, FloatingPosV } from '../styleEnums';
|
|
3
|
-
export type SnackbarHandler = (newState: ISnackbar) => void;
|
|
4
|
-
export type SnackbarStateHandler = (newState: ISnackbar) => void;
|
|
5
|
-
export declare const initialSnackbarData: ISnackbarData;
|
|
6
|
-
export declare const CommonSnackbar: ISnackbarConfig;
|
|
7
|
-
export interface ISnackbarData {
|
|
8
|
-
show?: boolean;
|
|
9
|
-
message: string;
|
|
10
|
-
snackbarType?: SnackbarType;
|
|
11
|
-
interval?: number;
|
|
12
|
-
}
|
|
13
|
-
export declare enum SnackbarType {
|
|
14
|
-
success = "success",
|
|
15
|
-
warning = "warning",
|
|
16
|
-
info = "info",
|
|
17
|
-
error = "error"
|
|
18
|
-
}
|
|
19
|
-
export interface ISnackbarConfig {
|
|
20
|
-
horizontalPos: FloatingPosH;
|
|
21
|
-
verticalPos: FloatingPosV;
|
|
22
|
-
icon: boolean;
|
|
23
|
-
width?: string;
|
|
24
|
-
data: {
|
|
25
|
-
interval: number;
|
|
26
|
-
show: boolean;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
1
|
+
import { ISnackbar } from '../components';
|
|
2
|
+
import { FloatingPosH, FloatingPosV } from '../styleEnums';
|
|
3
|
+
export type SnackbarHandler = (newState: ISnackbar) => void;
|
|
4
|
+
export type SnackbarStateHandler = (newState: ISnackbar) => void;
|
|
5
|
+
export declare const initialSnackbarData: ISnackbarData;
|
|
6
|
+
export declare const CommonSnackbar: ISnackbarConfig;
|
|
7
|
+
export interface ISnackbarData {
|
|
8
|
+
show?: boolean;
|
|
9
|
+
message: string;
|
|
10
|
+
snackbarType?: SnackbarType;
|
|
11
|
+
interval?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare enum SnackbarType {
|
|
14
|
+
success = "success",
|
|
15
|
+
warning = "warning",
|
|
16
|
+
info = "info",
|
|
17
|
+
error = "error"
|
|
18
|
+
}
|
|
19
|
+
export interface ISnackbarConfig {
|
|
20
|
+
horizontalPos: FloatingPosH;
|
|
21
|
+
verticalPos: FloatingPosV;
|
|
22
|
+
icon: boolean;
|
|
23
|
+
width?: string;
|
|
24
|
+
data: {
|
|
25
|
+
interval: number;
|
|
26
|
+
show: boolean;
|
|
27
|
+
};
|
|
28
|
+
}
|