@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,29 @@
|
|
|
1
|
+
import { CheckboxLabelPosition } from '../../styleEnums';
|
|
2
|
+
import { Colors } from '../../theming';
|
|
3
|
+
export interface ICheckboxValue {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
indetermined?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface ICheckboxStyle {
|
|
8
|
+
borderColor?: string;
|
|
9
|
+
padding?: string;
|
|
10
|
+
color?: Colors | string;
|
|
11
|
+
margin?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ICheckbox extends ICheckboxStyle {
|
|
14
|
+
labelColor?: string;
|
|
15
|
+
fontFamily?: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
value: ICheckboxValue;
|
|
18
|
+
direction?: CheckboxLabelPosition;
|
|
19
|
+
enableIndetermined?: boolean;
|
|
20
|
+
onChange(e: ICheckboxValue): void;
|
|
21
|
+
}
|
|
22
|
+
export declare const Checkbox: {
|
|
23
|
+
(props: ICheckbox): JSX.Element;
|
|
24
|
+
defaultProps: {
|
|
25
|
+
direction: CheckboxLabelPosition;
|
|
26
|
+
margin: string;
|
|
27
|
+
padding: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Alignment, ZIndexLayers } from '../../styleEnums';
|
|
3
|
+
export interface ICover {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
crossAxis?: Alignment;
|
|
6
|
+
mainAxis?: Alignment;
|
|
7
|
+
hide?: boolean;
|
|
8
|
+
zIndex?: ZIndexLayers | number;
|
|
9
|
+
}
|
|
10
|
+
export declare const Cover: (props: ICover) => JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Moment } from 'moment';
|
|
3
|
+
import { MomentHandler } from '../../../generalTypes';
|
|
4
|
+
import { ITargetCard } from '../TargetCard';
|
|
5
|
+
import { Weekdays } from './DayPicker';
|
|
6
|
+
export interface IDatePicker extends ITargetCard {
|
|
7
|
+
setOpen: (newOpen: boolean) => void;
|
|
8
|
+
value?: Moment;
|
|
9
|
+
onDateSelect: MomentHandler;
|
|
10
|
+
firstDayMonday?: boolean;
|
|
11
|
+
startDate?: Moment;
|
|
12
|
+
endDate?: Moment;
|
|
13
|
+
availableDates?: Moment[];
|
|
14
|
+
enableWeekdayOnly?: Weekdays[];
|
|
15
|
+
excludedDates?: Moment[];
|
|
16
|
+
hideButtons?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const DatePicker: import("react").ForwardRefExoticComponent<IDatePicker & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
import moment, { Moment } from 'moment';
|
|
3
|
+
import { Colors, Settings } from '../../../theming';
|
|
4
|
+
import { MomentHandler } from '../../../generalTypes';
|
|
5
|
+
export declare enum Weekdays {
|
|
6
|
+
monday = 1,
|
|
7
|
+
tuesday = 2,
|
|
8
|
+
wednesday = 3,
|
|
9
|
+
thursday = 4,
|
|
10
|
+
friday = 5,
|
|
11
|
+
saturday = 6,
|
|
12
|
+
sunday = 7
|
|
13
|
+
}
|
|
14
|
+
export interface IDayPicker {
|
|
15
|
+
backgroundColor?: Colors | string;
|
|
16
|
+
iconColor?: Colors | string;
|
|
17
|
+
iconHoverColor?: Colors | string;
|
|
18
|
+
borderColor?: Colors | string;
|
|
19
|
+
borderRadius?: Settings | string;
|
|
20
|
+
shadow?: Settings | string;
|
|
21
|
+
shadowDim?: Settings | string;
|
|
22
|
+
onChange: MomentHandler;
|
|
23
|
+
onMonthClick: MouseEventHandler<HTMLButtonElement>;
|
|
24
|
+
value?: Moment;
|
|
25
|
+
firstDayMonday?: boolean;
|
|
26
|
+
startDate?: Moment;
|
|
27
|
+
endDate?: Moment;
|
|
28
|
+
setOpen: (newOpen: boolean) => void;
|
|
29
|
+
availableDates?: Moment[];
|
|
30
|
+
enableWeekdayOnly?: Weekdays[];
|
|
31
|
+
excludedDates?: Moment[];
|
|
32
|
+
hideButtons?: boolean;
|
|
33
|
+
hideShadow?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const DayPicker: {
|
|
36
|
+
(props: IDayPicker): JSX.Element;
|
|
37
|
+
defaultProps: {
|
|
38
|
+
backgroundColor: Colors;
|
|
39
|
+
shadowDim: Settings;
|
|
40
|
+
shadow: Colors;
|
|
41
|
+
value: moment.Moment;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import moment, { Moment } from 'moment';
|
|
2
|
+
import { MomentHandler } from '../../../generalTypes';
|
|
3
|
+
import { Colors, Settings } from '../../../theming';
|
|
4
|
+
export interface IMonthPicker {
|
|
5
|
+
backgroundColor?: Colors | string;
|
|
6
|
+
iconColor?: Colors | string;
|
|
7
|
+
iconHoverColor?: Colors | string;
|
|
8
|
+
borderColor?: Colors | string;
|
|
9
|
+
borderRadius?: Settings | string;
|
|
10
|
+
shadow?: Settings | string;
|
|
11
|
+
shadowDim?: Settings | string;
|
|
12
|
+
value?: Moment;
|
|
13
|
+
onChange: MomentHandler;
|
|
14
|
+
onMonthClick: MomentHandler;
|
|
15
|
+
setOpen: (newOpen: boolean) => void;
|
|
16
|
+
hideButtons?: boolean;
|
|
17
|
+
hideShadow?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const MonthPicker: {
|
|
20
|
+
(props: IMonthPicker): JSX.Element;
|
|
21
|
+
defaultProps: {
|
|
22
|
+
backgroundColor: Colors;
|
|
23
|
+
shadowDim: Settings;
|
|
24
|
+
shadow: Colors;
|
|
25
|
+
value: moment.Moment;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MutableRefObject, ReactNode } from 'react';
|
|
2
|
+
import { Direction, FloatingPosH, FloatingPosV, ZIndexLayers } from '../../styleEnums';
|
|
3
|
+
import { IFadeInOut } from '../Level1';
|
|
4
|
+
export interface IFloatingDiv {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
left?: string;
|
|
7
|
+
right?: string;
|
|
8
|
+
top?: string;
|
|
9
|
+
bottom?: string;
|
|
10
|
+
verticalPos?: FloatingPosV;
|
|
11
|
+
horizontalPos?: FloatingPosH;
|
|
12
|
+
ref?: MutableRefObject<HTMLDivElement>;
|
|
13
|
+
zIndex?: ZIndexLayers;
|
|
14
|
+
fadeInOut?: IFadeInOut;
|
|
15
|
+
direction?: Direction;
|
|
16
|
+
}
|
|
17
|
+
export declare const FloatingDiv: import("react").ForwardRefExoticComponent<Pick<IFloatingDiv, "children" | "zIndex" | "bottom" | "top" | "left" | "right" | "direction" | "verticalPos" | "horizontalPos" | "fadeInOut"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Colors } from '../../theming';
|
|
3
|
+
import { IIconStyle } from '../Level1';
|
|
4
|
+
interface IIconButtonStyle extends IIconStyle {
|
|
5
|
+
hoverBackgroundColor?: Colors | string;
|
|
6
|
+
flex?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IIconButton extends HTMLAttributes<HTMLButtonElement>, IIconButtonStyle {
|
|
9
|
+
ripple?: boolean;
|
|
10
|
+
size?: string;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
backgroundColor?: Colors | string;
|
|
13
|
+
toolTipText?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const IconButton: {
|
|
16
|
+
({ hoverBackgroundColor, color, opacity, hoverColor, size, children, backgroundColor, toolTipText, ...props }: IIconButton): JSX.Element;
|
|
17
|
+
defaultProps: {
|
|
18
|
+
size: string;
|
|
19
|
+
hoverBackgroundColor: Colors;
|
|
20
|
+
backgroundColor: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Colors, Settings } from '../../theming';
|
|
2
|
+
export type MultiButtonClickHandler = (data: string) => void;
|
|
3
|
+
export interface IMultiButtonSelect extends IMultiButtonSelectStyle {
|
|
4
|
+
selected?: string;
|
|
5
|
+
onClick: MultiButtonClickHandler;
|
|
6
|
+
selection: string[];
|
|
7
|
+
borderRadius?: Settings | string;
|
|
8
|
+
borderColor?: Colors | string;
|
|
9
|
+
border?: Settings | string;
|
|
10
|
+
selectedText?: Colors | string;
|
|
11
|
+
}
|
|
12
|
+
export interface IMultiButtonSelectStyle {
|
|
13
|
+
isSelected?: boolean;
|
|
14
|
+
selectedColor?: Colors | string;
|
|
15
|
+
hoverColor?: Colors | string;
|
|
16
|
+
width?: string;
|
|
17
|
+
height?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const MultiButtonSelect: {
|
|
20
|
+
(props: IMultiButtonSelect): JSX.Element;
|
|
21
|
+
defaultProps: {
|
|
22
|
+
selectedText: Colors;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EmptyFunctionHandler } from '../../generalTypes';
|
|
3
|
+
import { Alignment, OverlayDirection, Position, ZIndexLayers } from '../../styleEnums';
|
|
4
|
+
import { Colors, Settings } from '../../theming';
|
|
5
|
+
interface IOverlayStyle {
|
|
6
|
+
printable?: boolean;
|
|
7
|
+
borderColor?: Colors | string;
|
|
8
|
+
backgroundColor?: Colors | string;
|
|
9
|
+
zIndex?: ZIndexLayers | number;
|
|
10
|
+
mainAxis?: Alignment;
|
|
11
|
+
crossAxis?: Alignment;
|
|
12
|
+
}
|
|
13
|
+
export interface IOverlay extends IOverlayStyle {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
show?: boolean;
|
|
16
|
+
openSize?: string;
|
|
17
|
+
closedSize?: string;
|
|
18
|
+
direction: OverlayDirection;
|
|
19
|
+
position?: Position;
|
|
20
|
+
dismissable?: boolean;
|
|
21
|
+
onClose?: EmptyFunctionHandler;
|
|
22
|
+
covered?: boolean;
|
|
23
|
+
disableMobileSize?: boolean;
|
|
24
|
+
shadow?: Colors | string;
|
|
25
|
+
shadowDim?: Settings | string;
|
|
26
|
+
isSidebar?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const Overlay: {
|
|
29
|
+
(props: IOverlay): JSX.Element;
|
|
30
|
+
defaultProps: {
|
|
31
|
+
openSize: string;
|
|
32
|
+
backgroundColor: Colors;
|
|
33
|
+
topOffset: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IPanelFormSaveSection } from './PanelFormSaveSection';
|
|
3
|
+
import { IPanelFormTitleSection } from './PanelFormTitleSection';
|
|
4
|
+
export interface IPanelForm {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
titleSection: IPanelFormTitleSection;
|
|
7
|
+
saveSection: IPanelFormSaveSection;
|
|
8
|
+
}
|
|
9
|
+
export declare const PanelForm: (props: IPanelForm) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EmptyFunctionHandler } from '../../../generalTypes';
|
|
2
|
+
export interface IPanelFormSaveSection {
|
|
3
|
+
buttonText: string;
|
|
4
|
+
primaryButtonLoading: boolean;
|
|
5
|
+
primaryOnClick?: EmptyFunctionHandler;
|
|
6
|
+
discardOnClick: EmptyFunctionHandler;
|
|
7
|
+
buttonId?: string;
|
|
8
|
+
cancelButtonText?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const PanelFormSaveSection: (props: IPanelFormSaveSection) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Colors } from '../../theming';
|
|
2
|
+
import { IContainer } from '../Level1';
|
|
3
|
+
export interface IPillContainer extends IContainer {
|
|
4
|
+
text: string;
|
|
5
|
+
color: Colors | string;
|
|
6
|
+
}
|
|
7
|
+
export declare const PillContainer: {
|
|
8
|
+
(props: IPillContainer): JSX.Element;
|
|
9
|
+
defaultProps: {
|
|
10
|
+
padding: string;
|
|
11
|
+
width: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Colors } from '../../theming';
|
|
2
|
+
export interface IRadioButton {
|
|
3
|
+
label: string;
|
|
4
|
+
groupName: string;
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (data: string) => void;
|
|
7
|
+
buttonColor?: Colors | string;
|
|
8
|
+
textColor?: Colors | string;
|
|
9
|
+
}
|
|
10
|
+
export declare const RadioButton: (props: IRadioButton) => JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IAdditionalData, ISideMenuSection, SideMenuVariant } from './types';
|
|
2
|
+
import { EmptyFunctionHandler } from '../../../generalTypes';
|
|
3
|
+
export interface ISideMenu {
|
|
4
|
+
height?: string;
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
sections: ISideMenuSection[];
|
|
9
|
+
additionalData?: IAdditionalData[];
|
|
10
|
+
navFunc?: (section?: ISideMenuSection) => void;
|
|
11
|
+
checkActive?: (section: ISideMenuSection) => boolean;
|
|
12
|
+
onDiscard?: EmptyFunctionHandler;
|
|
13
|
+
padding?: string;
|
|
14
|
+
cardPadding?: string;
|
|
15
|
+
variant?: SideMenuVariant;
|
|
16
|
+
loadingSubmit?: boolean;
|
|
17
|
+
titleWidth?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const SideMenu: {
|
|
20
|
+
({ sections, checkActive, ...props }: ISideMenu): JSX.Element;
|
|
21
|
+
defaultProps: {
|
|
22
|
+
variant: SideMenuVariant;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Colors } from '../../../theming';
|
|
2
|
+
import { IButton } from '../../Level1';
|
|
3
|
+
interface ISideMenuButtonStyle {
|
|
4
|
+
activeColor?: Colors | string;
|
|
5
|
+
}
|
|
6
|
+
export interface ISideMenuButton extends ISideMenuButtonStyle, IButton {
|
|
7
|
+
active?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const SideMenuButton: {
|
|
10
|
+
(props: ISideMenuButton): JSX.Element;
|
|
11
|
+
defaultProps: {
|
|
12
|
+
activeColor: Colors;
|
|
13
|
+
color: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ISideMenuSection, ValidationResults } from './types';
|
|
2
|
+
export interface ISideMenuNav {
|
|
3
|
+
sections: ISideMenuSection[];
|
|
4
|
+
section: ISideMenuSection;
|
|
5
|
+
setResults: (newResult: {
|
|
6
|
+
[key in string]: ValidationResults;
|
|
7
|
+
}) => void;
|
|
8
|
+
navFunc?: (section?: ISideMenuSection) => void;
|
|
9
|
+
updateResult: (link: string, result: ValidationResults) => void;
|
|
10
|
+
loadingSubmit?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const SideMenuNav: (props: ISideMenuNav) => JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EmptyFunctionHandler } from '../../../generalTypes';
|
|
3
|
+
import { Colors } from '../../../theming';
|
|
4
|
+
export declare enum SideMenuVariant {
|
|
5
|
+
paper = "Paper",
|
|
6
|
+
line = "Line"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ValidationResults {
|
|
9
|
+
good = "Good",
|
|
10
|
+
bad = "Bad",
|
|
11
|
+
skipped = "Skipped"
|
|
12
|
+
}
|
|
13
|
+
export interface ISideMenuSection {
|
|
14
|
+
link: string;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
validate?: () => ValidationResults;
|
|
17
|
+
nextLink?: string;
|
|
18
|
+
prevLink?: string;
|
|
19
|
+
onSubmit?: EmptyFunctionHandler;
|
|
20
|
+
}
|
|
21
|
+
export interface IAdditionalData {
|
|
22
|
+
title: string;
|
|
23
|
+
data: string | ReactNode;
|
|
24
|
+
color?: Colors | string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Sizes } from '../../../styleEnums';
|
|
2
|
+
import { IButton } from '../../Level1';
|
|
3
|
+
export interface IFacebookButton extends IButton {
|
|
4
|
+
}
|
|
5
|
+
export declare const FacebookButton: {
|
|
6
|
+
(props: IFacebookButton): JSX.Element;
|
|
7
|
+
defaultProps: {
|
|
8
|
+
size: Sizes;
|
|
9
|
+
width: string;
|
|
10
|
+
ripple: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Sizes } from '../../../styleEnums';
|
|
2
|
+
import { IButton } from '../../Level1';
|
|
3
|
+
export interface IGoogleButton extends IButton {
|
|
4
|
+
}
|
|
5
|
+
export declare const GoogleButton: {
|
|
6
|
+
(props: IGoogleButton): JSX.Element;
|
|
7
|
+
defaultProps: {
|
|
8
|
+
size: Sizes;
|
|
9
|
+
width: string;
|
|
10
|
+
ripple: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Colors } from '../../theming';
|
|
2
|
+
export interface ISwitch {
|
|
3
|
+
value: boolean;
|
|
4
|
+
setValue: (value: boolean) => void;
|
|
5
|
+
pinColor?: Colors | string;
|
|
6
|
+
backgroundColor?: Colors | string;
|
|
7
|
+
activeBackgroundColor?: Colors | string;
|
|
8
|
+
borderRadius?: string;
|
|
9
|
+
pinBorderRadius?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Switch: (props: ISwitch) => JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Overflow, ZIndexLayers } from '../../styleEnums';
|
|
3
|
+
import { Colors, Settings } from '../../theming';
|
|
4
|
+
import { IOptionStyling } from '../UseDataLayer';
|
|
5
|
+
export declare enum TargetCardDirection {
|
|
6
|
+
topRight = "topRight",
|
|
7
|
+
topLeft = "topLeft",
|
|
8
|
+
bottomRight = "bottomRight",
|
|
9
|
+
bottomLeft = "bottomLeft"
|
|
10
|
+
}
|
|
11
|
+
export declare enum TargetCardType {
|
|
12
|
+
autocomplete = "autocomplete",
|
|
13
|
+
timepicker = "timepicker",
|
|
14
|
+
profilebox = "profilebox"
|
|
15
|
+
}
|
|
16
|
+
export interface ITargetCard extends IOptionStyling {
|
|
17
|
+
width?: string;
|
|
18
|
+
height?: string;
|
|
19
|
+
overflowX?: Overflow;
|
|
20
|
+
minWidth?: string;
|
|
21
|
+
maxWidth?: string;
|
|
22
|
+
maxHeight?: string;
|
|
23
|
+
open: boolean;
|
|
24
|
+
borderRadius?: Settings | string;
|
|
25
|
+
backgroundColor?: Colors | string;
|
|
26
|
+
shadow?: Colors | string;
|
|
27
|
+
shadowDim?: Settings | string;
|
|
28
|
+
overflowY?: Overflow;
|
|
29
|
+
target?: HTMLElement;
|
|
30
|
+
forceDirection?: TargetCardDirection;
|
|
31
|
+
topOffset?: number;
|
|
32
|
+
bottomOffset?: number;
|
|
33
|
+
leftOffset?: number;
|
|
34
|
+
rightOffset?: number;
|
|
35
|
+
buttonWidth?: number;
|
|
36
|
+
buttonHeight?: number;
|
|
37
|
+
zIndex?: ZIndexLayers;
|
|
38
|
+
targetCardType?: TargetCardType;
|
|
39
|
+
}
|
|
40
|
+
export declare const TargetCard: import("react").ForwardRefExoticComponent<ITargetCard & {
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextfieldVariant } from '../../../styleEnums';
|
|
2
|
+
import { Colors } from '../../../theming';
|
|
3
|
+
export interface IMasker {
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
fontFamily?: string;
|
|
6
|
+
variant?: TextfieldVariant;
|
|
7
|
+
backgroundColor?: string | Colors;
|
|
8
|
+
color?: string | Colors;
|
|
9
|
+
mask: string;
|
|
10
|
+
value: string;
|
|
11
|
+
onValueChange: (newValue: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const Masker: (props: IMasker) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { TextInputTypes } from '../../../styleEnums';
|
|
3
|
+
import { ITextFieldContainerStyle } from './TextFieldContainer';
|
|
4
|
+
export interface ITextField extends HTMLAttributes<HTMLInputElement | HTMLTextAreaElement>, ITextFieldContainerStyle {
|
|
5
|
+
prefixCmp?: ReactNode;
|
|
6
|
+
symbolsCmp?: ReactNode;
|
|
7
|
+
suffixCmp?: ReactNode;
|
|
8
|
+
type?: TextInputTypes;
|
|
9
|
+
value: string;
|
|
10
|
+
rows?: number;
|
|
11
|
+
mask?: string;
|
|
12
|
+
length?: number;
|
|
13
|
+
minWidth?: string;
|
|
14
|
+
onValueChange?: (newString: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const TextField: import("react").ForwardRefExoticComponent<ITextField & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextfieldVariant } from '../../../styleEnums';
|
|
3
|
+
import { IContainer } from '../../Level1';
|
|
4
|
+
import { IField, IFieldStyle } from '../../../generalTypes';
|
|
5
|
+
export interface ITextFieldContainer extends IContainer, ITextFieldContainerStyle {
|
|
6
|
+
}
|
|
7
|
+
export interface ITextFieldContainerStyle extends IFieldStyle, IField {
|
|
8
|
+
variant?: TextfieldVariant;
|
|
9
|
+
width?: string;
|
|
10
|
+
borderColor?: string;
|
|
11
|
+
hoverBorderColor?: string;
|
|
12
|
+
focusBorderColor?: string;
|
|
13
|
+
errorColor?: string;
|
|
14
|
+
error?: string;
|
|
15
|
+
isFocused?: boolean;
|
|
16
|
+
textArea?: boolean;
|
|
17
|
+
padding?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const TextFieldContainer: import("react").ForwardRefExoticComponent<ITextFieldContainer & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Colors, Settings } from '../../theming';
|
|
2
|
+
import { ToolTipPos } from '../../tooltip';
|
|
3
|
+
export interface ITooltip {
|
|
4
|
+
backgroundColor?: Colors | string;
|
|
5
|
+
borderRadius?: Settings | string;
|
|
6
|
+
textColor?: Colors | string;
|
|
7
|
+
shadow?: Settings | string;
|
|
8
|
+
shadowDim?: Settings | string;
|
|
9
|
+
placement: ToolTipPos;
|
|
10
|
+
componentDetails?: DOMRect;
|
|
11
|
+
tipWidth?: string;
|
|
12
|
+
show?: boolean;
|
|
13
|
+
text: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const Tooltip: {
|
|
16
|
+
(props: ITooltip): JSX.Element;
|
|
17
|
+
defaultProps: {
|
|
18
|
+
shadow: Colors;
|
|
19
|
+
shadowDim: Settings;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EmptyFunctionHandler } from '../../../generalTypes';
|
|
2
|
+
export interface IUploadPreview {
|
|
3
|
+
firebase?: boolean;
|
|
4
|
+
file?: File;
|
|
5
|
+
url?: any;
|
|
6
|
+
src?: any;
|
|
7
|
+
onRemove: EmptyFunctionHandler;
|
|
8
|
+
}
|
|
9
|
+
export declare const UploadPreview: (props: IUploadPreview) => JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DataSizes } from '../../../dataEnums';
|
|
2
|
+
import { IField, IFieldStyle } from '../../../generalTypes';
|
|
3
|
+
import { Colors } from '../../../theming';
|
|
4
|
+
import { FileUrlArrayHandler, FileListHandler, FileTypes } from './types';
|
|
5
|
+
export interface IUploader extends IField, IFieldStyle {
|
|
6
|
+
value?: string[];
|
|
7
|
+
valueAsSrc?: string[];
|
|
8
|
+
toUpload?: FileList;
|
|
9
|
+
instruction: string;
|
|
10
|
+
accept: string[] | FileTypes[];
|
|
11
|
+
byteSize: number;
|
|
12
|
+
dataSize?: DataSizes;
|
|
13
|
+
limit: number;
|
|
14
|
+
updateUpload: FileListHandler;
|
|
15
|
+
updateValue: FileUrlArrayHandler;
|
|
16
|
+
firebase?: boolean;
|
|
17
|
+
showGalleryBorder?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const Uploader: {
|
|
20
|
+
(props: IUploader): JSX.Element;
|
|
21
|
+
defaultProps: {
|
|
22
|
+
instruction: string;
|
|
23
|
+
width: string;
|
|
24
|
+
limit: number;
|
|
25
|
+
hoverBorderColor: Colors;
|
|
26
|
+
focusBorderColor: Colors;
|
|
27
|
+
helperColor: Colors;
|
|
28
|
+
errorColor: Colors;
|
|
29
|
+
};
|
|
30
|
+
};
|