@tap-payments/auth-jsconnect 1.0.2 → 1.0.5
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/build/@types/app.d.ts +16 -0
- package/build/@types/app.js +6 -2
- package/build/@types/index.js +0 -1
- package/build/@types/redux.js +0 -1
- package/build/@types/theme.d.ts +12 -3
- package/build/@types/theme.js +15 -2
- package/build/app/rootReducer.d.ts +1 -1
- package/build/app/rootReducer.js +1 -2
- package/build/app/settings.d.ts +7 -2
- package/build/app/settings.js +21 -7
- package/build/app/store.d.ts +2 -2
- package/build/app/store.js +0 -1
- package/build/assets/locales/ar.json +22 -3
- package/build/assets/locales/en.json +20 -1
- package/build/components/AnimationFlow/AnimationFlow.js +15 -5
- package/build/components/AnimationFlow/BottomSheet.d.ts +3 -2
- package/build/components/AnimationFlow/BottomSheet.js +43 -5
- package/build/components/AnimationFlow/Dialog.d.ts +3 -2
- package/build/components/AnimationFlow/Dialog.js +35 -18
- package/build/components/AnimationFlow/index.js +0 -1
- package/build/components/Button/Button.d.ts +7 -3
- package/build/components/Button/Button.js +21 -3
- package/build/components/Button/index.js +0 -1
- package/build/components/CheckBox/CheckBox.js +2 -2
- package/build/components/CheckBox/index.js +0 -1
- package/build/components/Collapse/Collapse.d.ts +5 -0
- package/build/components/Collapse/Collapse.js +28 -0
- package/build/components/Collapse/index.d.ts +3 -0
- package/build/components/Collapse/index.js +2 -0
- package/build/components/DatePicker/DatePicker.js +10 -14
- package/build/components/DatePicker/index.js +0 -1
- package/build/components/Footer/Footer.js +2 -16
- package/build/components/Footer/index.js +0 -1
- package/build/components/Form/Form.js +2 -2
- package/build/components/Form/index.js +0 -1
- package/build/components/Icon/Icon.js +2 -2
- package/build/components/Icon/index.js +0 -1
- package/build/components/Input/Input.d.ts +4 -1
- package/build/components/Input/Input.js +8 -7
- package/build/components/Input/index.js +0 -1
- package/build/components/InputAdornment/InputAdornment.js +3 -3
- package/build/components/InputAdornment/index.js +0 -1
- package/build/components/List/List.js +2 -4
- package/build/components/List/index.js +0 -1
- package/build/components/ListItem/ListItem.js +2 -2
- package/build/components/ListItem/index.js +0 -1
- package/build/components/Loader/Loader.d.ts +10 -8
- package/build/components/Loader/Loader.js +25 -43
- package/build/components/Loader/index.js +0 -1
- package/build/components/LogoBadge/LogoBadge.js +4 -5
- package/build/components/LogoBadge/index.js +0 -1
- package/build/components/OTPField/OTPField.js +2 -2
- package/build/components/OTPField/index.js +0 -1
- package/build/components/OTPTimer/OTPTimer.d.ts +2 -1
- package/build/components/OTPTimer/OTPTimer.js +6 -8
- package/build/components/OTPTimer/index.js +0 -1
- package/build/components/ProgressBar/ProgressBar.js +2 -3
- package/build/components/ProgressBar/index.js +0 -1
- package/build/components/Providers/ReduxProvider.js +13 -3
- package/build/components/Providers/ThemeProvider.js +18 -10
- package/build/components/Providers/index.js +0 -1
- package/build/components/SimpleList/SimpleList.d.ts +10 -2
- package/build/components/SimpleList/SimpleList.js +58 -26
- package/build/components/SimpleList/index.js +0 -1
- package/build/components/Slide/Slide.d.ts +6 -0
- package/build/components/Slide/Slide.js +30 -0
- package/build/components/Slide/index.d.ts +3 -0
- package/build/components/Slide/index.js +2 -0
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +14 -0
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +86 -0
- package/build/components/SocialMediaGroup/index.d.ts +3 -0
- package/build/components/SocialMediaGroup/index.js +2 -0
- package/build/components/Text/Text.js +2 -2
- package/build/components/Text/index.js +0 -1
- package/build/components/ToggleButton/ToggleButton.d.ts +5 -0
- package/build/components/ToggleButton/ToggleButton.js +44 -0
- package/build/components/ToggleButton/index.d.ts +3 -0
- package/build/components/ToggleButton/index.js +2 -0
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -0
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +37 -0
- package/build/components/ToggleButtonGroup/index.d.ts +3 -0
- package/build/components/ToggleButtonGroup/index.js +2 -0
- package/build/components/Tooltip/Tooltip.d.ts +10 -0
- package/build/components/Tooltip/Tooltip.js +44 -0
- package/build/components/Tooltip/index.d.ts +3 -0
- package/build/components/Tooltip/index.js +2 -0
- package/build/components/Warning/Warning.d.ts +2 -1
- package/build/components/Warning/Warning.js +4 -3
- package/build/components/Warning/index.js +0 -1
- package/build/constants/app.d.ts +5 -4
- package/build/constants/app.js +35 -5
- package/build/constants/assets.d.ts +7 -0
- package/build/constants/assets.js +8 -2
- package/build/constants/dummy.js +0 -1
- package/build/constants/index.d.ts +1 -0
- package/build/constants/index.js +1 -1
- package/build/constants/validation.d.ts +2 -0
- package/build/constants/validation.js +2 -0
- package/build/features/app/{midStore.d.ts → business/midStore.d.ts} +2 -2
- package/build/features/app/{midStore.js → business/midStore.js} +0 -1
- package/build/features/app/connect/midStore.d.ts +10 -0
- package/build/features/app/connect/midStore.js +18 -0
- package/build/features/business/index.d.ts +0 -0
- package/build/features/business/index.js +1 -0
- package/build/features/business/screens/IDBOD/DOB.d.ts +5 -0
- package/build/features/business/screens/IDBOD/DOB.js +44 -0
- package/build/features/business/screens/IDBOD/ID.d.ts +5 -0
- package/build/features/business/screens/IDBOD/ID.js +68 -0
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +5 -0
- package/build/features/business/screens/IDBOD/IDBOD.js +86 -0
- package/build/features/business/screens/IDBOD/index.d.ts +3 -0
- package/build/features/business/screens/IDBOD/index.js +2 -0
- package/build/features/business/screens/IDBOD/validation.d.ts +11 -0
- package/build/features/business/screens/IDBOD/validation.js +5 -0
- package/build/features/connect/Connect.js +31 -25
- package/build/features/connect/Footer.d.ts +4 -0
- package/build/features/connect/Footer.js +16 -0
- package/build/features/connect/index.js +0 -1
- package/build/features/connect/screens/Individual/Email.d.ts +5 -0
- package/build/features/connect/screens/Individual/Email.js +56 -0
- package/build/features/connect/screens/Individual/Individual.d.ts +5 -0
- package/build/features/connect/screens/Individual/Individual.js +86 -0
- package/build/features/connect/screens/Individual/Name.d.ts +5 -0
- package/build/features/connect/screens/Individual/Name.js +58 -0
- package/build/features/connect/screens/Individual/index.d.ts +3 -0
- package/build/features/connect/screens/Individual/index.js +2 -0
- package/build/features/connect/screens/Individual/validation.d.ts +11 -0
- package/build/features/connect/screens/Individual/validation.js +5 -0
- package/build/features/connect/screens/MID/BusinessCountry.d.ts +2 -6
- package/build/features/connect/screens/MID/BusinessCountry.js +18 -53
- package/build/features/connect/screens/MID/IDNumber.d.ts +0 -4
- package/build/features/connect/screens/MID/IDNumber.js +28 -22
- package/build/features/connect/screens/MID/MID.js +85 -27
- package/build/features/connect/screens/MID/MIDTitle.js +3 -5
- package/build/features/connect/screens/MID/MobileNumber.d.ts +2 -7
- package/build/features/connect/screens/MID/MobileNumber.js +28 -69
- package/build/features/connect/screens/MID/index.js +0 -1
- package/build/features/connect/screens/MID/validation.d.ts +18 -0
- package/build/features/connect/screens/MID/validation.js +8 -0
- package/build/features/connect/screens/Merchant/BrandName.d.ts +5 -0
- package/build/features/connect/screens/Merchant/BrandName.js +99 -0
- package/build/features/connect/screens/Merchant/Merchant.d.ts +5 -0
- package/build/features/connect/screens/Merchant/Merchant.js +94 -0
- package/build/features/connect/screens/Merchant/SocialMedia.d.ts +5 -0
- package/build/features/connect/screens/Merchant/SocialMedia.js +87 -0
- package/build/features/connect/screens/Merchant/TAC.d.ts +5 -0
- package/build/features/connect/screens/Merchant/TAC.js +88 -0
- package/build/features/connect/screens/Merchant/index.d.ts +3 -0
- package/build/features/connect/screens/Merchant/index.js +2 -0
- package/build/features/connect/screens/Merchant/validation.d.ts +50 -0
- package/build/features/connect/screens/Merchant/validation.js +23 -0
- package/build/features/connect/screens/OTP/OTP.d.ts +6 -2
- package/build/features/connect/screens/OTP/OTP.js +76 -32
- package/build/features/connect/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/connect/screens/OTP/OTPInput.js +51 -0
- package/build/features/connect/screens/OTP/OTPTimer.d.ts +5 -0
- package/build/features/connect/screens/OTP/OTPTimer.js +35 -0
- package/build/features/connect/screens/OTP/index.js +0 -1
- package/build/features/connect/screens/OTP/validation.d.ts +8 -0
- package/build/features/connect/screens/OTP/validation.js +4 -0
- package/build/features/connect/screens/Password/Password.d.ts +5 -0
- package/build/features/connect/screens/Password/Password.js +86 -0
- package/build/features/connect/screens/Password/PasswordInput.d.ts +5 -0
- package/build/features/connect/screens/Password/PasswordInput.js +73 -0
- package/build/features/connect/screens/Password/index.d.ts +3 -0
- package/build/features/connect/screens/Password/index.js +2 -0
- package/build/features/connect/screens/Password/validation.d.ts +8 -0
- package/build/features/connect/screens/Password/validation.js +4 -0
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +5 -0
- package/build/features/connect/screens/ThankYou/ThankYou.js +76 -0
- package/build/features/connect/screens/ThankYou/index.d.ts +3 -0
- package/build/features/connect/screens/ThankYou/index.js +2 -0
- package/build/features/featuresScreens.d.ts +2 -0
- package/build/features/featuresScreens.js +28 -0
- package/build/hooks/index.d.ts +4 -0
- package/build/hooks/index.js +4 -1
- package/build/hooks/useAppDispatch.d.ts +4 -0
- package/build/hooks/useAppDispatch.js +2 -0
- package/build/hooks/useAppSelector.d.ts +3 -0
- package/build/hooks/useAppSelector.js +2 -0
- package/build/hooks/useAppTheme.js +3 -3
- package/build/hooks/useEventListener.d.ts +5 -0
- package/build/hooks/useEventListener.js +20 -0
- package/build/hooks/useLanguage.d.ts +4 -0
- package/build/hooks/useLanguage.js +8 -0
- package/build/hooks/useThemeMode.js +0 -1
- package/build/i18n.js +0 -1
- package/build/index.css +5 -0
- package/build/index.js +0 -1
- package/build/theme/components.js +0 -1
- package/build/theme/index.js +0 -1
- package/build/theme/palette.js +1 -1
- package/build/theme/shadows.js +0 -1
- package/build/theme/theme.d.ts +1 -1
- package/build/theme/theme.js +0 -2
- package/build/theme/typography.js +0 -1
- package/build/utils/array.js +0 -1
- package/build/utils/html.js +0 -1
- package/build/utils/index.js +0 -1
- package/build/utils/object.js +0 -1
- package/build/utils/storage.js +0 -1
- package/build/utils/string.d.ts +1 -1
- package/build/utils/string.js +1 -4
- package/build/utils/style.js +0 -1
- package/build/utils/validation.d.ts +4 -0
- package/build/utils/validation.js +12 -1
- package/package.json +120 -112
- package/build/@types/app.js.map +0 -1
- package/build/@types/index.js.map +0 -1
- package/build/@types/redux.js.map +0 -1
- package/build/@types/theme.js.map +0 -1
- package/build/app/hooks.d.ts +0 -7
- package/build/app/hooks.js +0 -4
- package/build/app/hooks.js.map +0 -1
- package/build/app/rootReducer.js.map +0 -1
- package/build/app/settings.js.map +0 -1
- package/build/app/store.js.map +0 -1
- package/build/components/AnimationFlow/AnimationFlow.js.map +0 -1
- package/build/components/AnimationFlow/BottomSheet.js.map +0 -1
- package/build/components/AnimationFlow/Dialog.js.map +0 -1
- package/build/components/AnimationFlow/index.js.map +0 -1
- package/build/components/Button/Button.js.map +0 -1
- package/build/components/Button/index.js.map +0 -1
- package/build/components/CheckBox/CheckBox.js.map +0 -1
- package/build/components/CheckBox/index.js.map +0 -1
- package/build/components/DatePicker/DatePicker.js.map +0 -1
- package/build/components/DatePicker/index.js.map +0 -1
- package/build/components/Footer/Footer.js.map +0 -1
- package/build/components/Footer/index.js.map +0 -1
- package/build/components/Form/Form.js.map +0 -1
- package/build/components/Form/index.js.map +0 -1
- package/build/components/Icon/Icon.js.map +0 -1
- package/build/components/Icon/index.js.map +0 -1
- package/build/components/Input/Input.js.map +0 -1
- package/build/components/Input/index.js.map +0 -1
- package/build/components/InputAdornment/InputAdornment.js.map +0 -1
- package/build/components/InputAdornment/index.js.map +0 -1
- package/build/components/List/List.js.map +0 -1
- package/build/components/List/index.js.map +0 -1
- package/build/components/ListItem/ListItem.js.map +0 -1
- package/build/components/ListItem/index.js.map +0 -1
- package/build/components/Loader/Loader.js.map +0 -1
- package/build/components/Loader/index.js.map +0 -1
- package/build/components/LogoBadge/LogoBadge.js.map +0 -1
- package/build/components/LogoBadge/index.js.map +0 -1
- package/build/components/OTPField/OTPField.js.map +0 -1
- package/build/components/OTPField/index.js.map +0 -1
- package/build/components/OTPTimer/OTPTimer.js.map +0 -1
- package/build/components/OTPTimer/index.js.map +0 -1
- package/build/components/ProgressBar/ProgressBar.js.map +0 -1
- package/build/components/ProgressBar/index.js.map +0 -1
- package/build/components/Providers/ReduxProvider.js.map +0 -1
- package/build/components/Providers/ThemeProvider.js.map +0 -1
- package/build/components/Providers/index.js.map +0 -1
- package/build/components/SimpleList/SimpleList.js.map +0 -1
- package/build/components/SimpleList/index.js.map +0 -1
- package/build/components/Text/Text.js.map +0 -1
- package/build/components/Text/index.js.map +0 -1
- package/build/components/Warning/Warning.js.map +0 -1
- package/build/components/Warning/index.js.map +0 -1
- package/build/constants/app.js.map +0 -1
- package/build/constants/assets.js.map +0 -1
- package/build/constants/dummy.js.map +0 -1
- package/build/constants/index.js.map +0 -1
- package/build/features/app/midStore.js.map +0 -1
- package/build/features/connect/Connect.js.map +0 -1
- package/build/features/connect/index.js.map +0 -1
- package/build/features/connect/screens/MID/BusinessCountry.js.map +0 -1
- package/build/features/connect/screens/MID/IDNumber.js.map +0 -1
- package/build/features/connect/screens/MID/MID.js.map +0 -1
- package/build/features/connect/screens/MID/MIDTitle.js.map +0 -1
- package/build/features/connect/screens/MID/MobileNumber.js.map +0 -1
- package/build/features/connect/screens/MID/index.js.map +0 -1
- package/build/features/connect/screens/OTP/OTP.js.map +0 -1
- package/build/features/connect/screens/OTP/index.js.map +0 -1
- package/build/hooks/index.js.map +0 -1
- package/build/hooks/useAppTheme.js.map +0 -1
- package/build/hooks/useThemeMode.js.map +0 -1
- package/build/i18n.js.map +0 -1
- package/build/index.js.map +0 -1
- package/build/theme/components.js.map +0 -1
- package/build/theme/index.js.map +0 -1
- package/build/theme/palette.js.map +0 -1
- package/build/theme/shadows.js.map +0 -1
- package/build/theme/theme.js.map +0 -1
- package/build/theme/typography.js.map +0 -1
- package/build/utils/array.js.map +0 -1
- package/build/utils/html.js.map +0 -1
- package/build/utils/index.js.map +0 -1
- package/build/utils/object.js.map +0 -1
- package/build/utils/storage.js.map +0 -1
- package/build/utils/string.js.map +0 -1
- package/build/utils/style.js.map +0 -1
- package/build/utils/validation.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ListProps } from '@mui/material/List';
|
|
3
3
|
import { ListItemProps } from '@mui/material/ListItem';
|
|
4
4
|
export interface SimpleListProps<T> extends ListProps {
|
|
@@ -6,5 +6,13 @@ export interface SimpleListProps<T> extends ListProps {
|
|
|
6
6
|
listItemProps?: ListItemProps;
|
|
7
7
|
onSelectItem: (item: T) => void;
|
|
8
8
|
renderItem: (item: T) => React.ReactElement;
|
|
9
|
+
searchKeyPath?: string;
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
+
declare function SimpleList<T>({ list, listItemProps, onSelectItem, renderItem, children, searchKeyPath, ...rest }: SimpleListProps<T>): JSX.Element;
|
|
12
|
+
declare namespace SimpleList {
|
|
13
|
+
var defaultProps: {
|
|
14
|
+
searchKeyPath: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
declare const _default: typeof SimpleList;
|
|
18
|
+
export default _default;
|
|
@@ -20,32 +20,40 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { createElement as _createElement } from "react";
|
|
25
|
+
import * as React from 'react';
|
|
24
26
|
import List from '@mui/material/List';
|
|
25
27
|
import ListItem from '@mui/material/ListItem';
|
|
26
|
-
import { styled
|
|
27
|
-
import
|
|
28
|
-
|
|
28
|
+
import { styled } from '@mui/material/styles';
|
|
29
|
+
import get from 'lodash-es/get';
|
|
30
|
+
import { useEventListener } from '../../hooks';
|
|
31
|
+
var ListStyled = styled(List)(function (_a) {
|
|
32
|
+
var _b;
|
|
29
33
|
var theme = _a.theme;
|
|
30
|
-
return ({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
return (_b = {
|
|
35
|
+
overflowY: 'auto',
|
|
36
|
+
listStyle: 'none',
|
|
37
|
+
paddingTop: theme.spacing(2.125),
|
|
38
|
+
height: theme.spacing(40)
|
|
39
|
+
},
|
|
40
|
+
_b[theme.breakpoints.down('sm')] = {
|
|
41
|
+
height: "calc(100vh - ".concat(theme.spacing(34.875), ")")
|
|
42
|
+
},
|
|
43
|
+
_b['&::-webkit-scrollbar'] = {
|
|
36
44
|
width: '0px'
|
|
37
45
|
},
|
|
38
|
-
'&::-webkit-scrollbar-track'
|
|
46
|
+
_b['&::-webkit-scrollbar-track'] = {
|
|
39
47
|
boxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)',
|
|
40
48
|
webkitBoxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)'
|
|
41
49
|
},
|
|
42
|
-
'&::-webkit-scrollbar-thumb'
|
|
50
|
+
_b['&::-webkit-scrollbar-thumb'] = {
|
|
43
51
|
backgroundColor: 'rgba(0,0,0,.1)',
|
|
44
52
|
outline: '1px solid slategrey'
|
|
45
|
-
}
|
|
46
|
-
|
|
53
|
+
},
|
|
54
|
+
_b);
|
|
47
55
|
});
|
|
48
|
-
var
|
|
56
|
+
var ListItemStyled = styled(ListItem)(function (_a) {
|
|
49
57
|
var theme = _a.theme;
|
|
50
58
|
return ({
|
|
51
59
|
display: 'flex',
|
|
@@ -57,15 +65,39 @@ var TapListItem = styled(ListItem)(function (_a) {
|
|
|
57
65
|
justifyContent: 'space-between'
|
|
58
66
|
});
|
|
59
67
|
});
|
|
60
|
-
|
|
61
|
-
var list = _a.list, listItemProps = _a.listItemProps, onSelectItem = _a.onSelectItem, renderItem = _a.renderItem, children = _a.children,
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
function SimpleList(_a) {
|
|
69
|
+
var list = _a.list, listItemProps = _a.listItemProps, onSelectItem = _a.onSelectItem, renderItem = _a.renderItem, children = _a.children, searchKeyPath = _a.searchKeyPath, rest = __rest(_a, ["list", "listItemProps", "onSelectItem", "renderItem", "children", "searchKeyPath"]);
|
|
70
|
+
var _b = React.useState([]), items = _b[0], setItems = _b[1];
|
|
71
|
+
React.useEffect(function () {
|
|
72
|
+
setItems(list);
|
|
73
|
+
}, [list]);
|
|
74
|
+
var filterItems = function (arr, searchKey) {
|
|
75
|
+
return arr.filter(function (item) {
|
|
76
|
+
var searchValue = get(item, searchKeyPath || '') || '';
|
|
77
|
+
return searchValue.charAt(0).toLowerCase() === searchKey.charAt(searchKey.length - 1).toLowerCase();
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
var onKeySearch = function (_a) {
|
|
81
|
+
var code = _a.code;
|
|
82
|
+
if (code) {
|
|
83
|
+
var filteredArr = filterItems(items, code);
|
|
84
|
+
if (filteredArr.length === 0 || code === 'Backspace')
|
|
85
|
+
setItems(list);
|
|
86
|
+
else
|
|
87
|
+
setItems(filteredArr);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
if (searchKeyPath)
|
|
91
|
+
useEventListener('keydown', onKeySearch);
|
|
92
|
+
return (_jsx(ListStyled, __assign({}, rest, { children: children ||
|
|
93
|
+
items.map(function (item, idx) {
|
|
94
|
+
return (_createElement(ListItemStyled, __assign({}, listItemProps, { onClick: function () {
|
|
95
|
+
onSelectItem(item);
|
|
96
|
+
}, disableGutters: true, key: idx }), renderItem(item)));
|
|
97
|
+
}) })));
|
|
70
98
|
}
|
|
71
|
-
|
|
99
|
+
SimpleList.defaultProps = {
|
|
100
|
+
searchKeyPath: ''
|
|
101
|
+
};
|
|
102
|
+
var typedMemo = React.memo;
|
|
103
|
+
export default typedMemo(SimpleList);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SlideProps as MUISlideProps } from '@mui/material/Slide';
|
|
3
|
+
export interface SlideProps extends MUISlideProps {
|
|
4
|
+
}
|
|
5
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<SlideProps, "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "in" | "mountOnEnter" | "unmountOnExit" | "timeout" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "container"> & React.RefAttributes<unknown>>>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import React from 'react';
|
|
25
|
+
import MUISlide from '@mui/material/Slide';
|
|
26
|
+
var Slide = React.forwardRef(function (_a, ref) {
|
|
27
|
+
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
28
|
+
return (_jsx(MUISlide, __assign({ ref: ref, direction: 'up', timeout: { exit: 300, appear: 500, enter: 300 }, mountOnEnter: true, unmountOnExit: true }, rest, { children: children })));
|
|
29
|
+
});
|
|
30
|
+
export default React.memo(Slide);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SocialMediaTypes } from '../../@types';
|
|
3
|
+
import { ToggleButtonGroupProps } from '../ToggleButtonGroup';
|
|
4
|
+
import { ToggleButtonProps } from '../ToggleButton';
|
|
5
|
+
export interface SocialMediaGroupProps extends ToggleButtonGroupProps {
|
|
6
|
+
toggleButtonProps?: ToggleButtonProps;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: React.MemoExoticComponent<{
|
|
9
|
+
({ children, defaultValue, onChange, toggleButtonProps, ...rest }: SocialMediaGroupProps): JSX.Element;
|
|
10
|
+
defaultProps: {
|
|
11
|
+
defaultValue: SocialMediaTypes;
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import * as React from 'react';
|
|
25
|
+
import { styled } from '@mui/material/styles';
|
|
26
|
+
import { ICONS_NAMES } from '../../constants';
|
|
27
|
+
import { SocialMediaTypes } from '../../@types';
|
|
28
|
+
import ToggleButtonGroup from '../ToggleButtonGroup';
|
|
29
|
+
import ToggleButton from '../ToggleButton';
|
|
30
|
+
import Icon from '../Icon';
|
|
31
|
+
var WebToggleButton = styled(ToggleButton, {
|
|
32
|
+
shouldForwardProp: function (prop) { return prop !== 'isActive'; }
|
|
33
|
+
})(function (_a) {
|
|
34
|
+
var theme = _a.theme, isActive = _a.isActive;
|
|
35
|
+
return ({
|
|
36
|
+
borderBottom: isActive ? "".concat(theme.spacing(0.25), " solid #3A4154") : 'none'
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var TwitterToggleButton = styled(ToggleButton, {
|
|
40
|
+
shouldForwardProp: function (prop) { return prop !== 'isActive'; }
|
|
41
|
+
})(function (_a) {
|
|
42
|
+
var theme = _a.theme, isActive = _a.isActive;
|
|
43
|
+
return ({
|
|
44
|
+
borderBottom: isActive ? "".concat(theme.spacing(0.25), " solid #1DA1F2") : 'none'
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
var InstagramToggleButton = styled(ToggleButton, {
|
|
48
|
+
shouldForwardProp: function (prop) { return prop !== 'isActive'; }
|
|
49
|
+
})(function (_a) {
|
|
50
|
+
var theme = _a.theme, isActive = _a.isActive;
|
|
51
|
+
return ({
|
|
52
|
+
borderBottom: isActive ? "".concat(theme.spacing(0.25), " solid #8A3AB9") : 'none'
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
var WebTwitterIconStyled = styled(Icon)(function (_a) {
|
|
56
|
+
var theme = _a.theme;
|
|
57
|
+
return ({
|
|
58
|
+
width: theme.spacing(5.5),
|
|
59
|
+
height: theme.spacing(5.5)
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
var InstagramIconStyled = styled(Icon, {
|
|
63
|
+
shouldForwardProp: function (prop) { return prop !== 'isActive'; }
|
|
64
|
+
})(function (_a) {
|
|
65
|
+
var theme = _a.theme, isActive = _a.isActive;
|
|
66
|
+
return ({
|
|
67
|
+
width: isActive ? '100%' : theme.spacing(5.5),
|
|
68
|
+
height: isActive ? '100%' : theme.spacing(5.5)
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
var SocialMediaGroupComponent = function (_a) {
|
|
72
|
+
var children = _a.children, defaultValue = _a.defaultValue, onChange = _a.onChange, toggleButtonProps = _a.toggleButtonProps, rest = __rest(_a, ["children", "defaultValue", "onChange", "toggleButtonProps"]);
|
|
73
|
+
var _b = React.useState(defaultValue), socialMediaType = _b[0], setSocialMediaType = _b[1];
|
|
74
|
+
var isWebActive = socialMediaType === SocialMediaTypes.WEB;
|
|
75
|
+
var isTwitterActive = socialMediaType === SocialMediaTypes.TWITTER;
|
|
76
|
+
var isInstagramActive = socialMediaType === SocialMediaTypes.INSTAGRAM;
|
|
77
|
+
var handleOnChange = function (event, value) {
|
|
78
|
+
setSocialMediaType(value);
|
|
79
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
80
|
+
};
|
|
81
|
+
return (_jsxs(ToggleButtonGroup, __assign({ value: socialMediaType, exclusive: true }, rest, { onChange: handleOnChange }, { children: [children, " ||", _jsx(WebToggleButton, __assign({ isActive: isWebActive }, toggleButtonProps, { value: SocialMediaTypes.WEB }, { children: _jsx(WebTwitterIconStyled, { src: isWebActive ? ICONS_NAMES.WEB_ACTIVE_ICON : ICONS_NAMES.WEB_ICON }) })), _jsx(TwitterToggleButton, __assign({ isActive: isTwitterActive }, toggleButtonProps, { value: SocialMediaTypes.TWITTER }, { children: _jsx(WebTwitterIconStyled, { src: isTwitterActive ? ICONS_NAMES.TWITTER_ACTIVE_ICON : ICONS_NAMES.TWITTER_ICON }) })), _jsx(InstagramToggleButton, __assign({ isActive: isInstagramActive }, toggleButtonProps, { value: SocialMediaTypes.INSTAGRAM }, { children: _jsx(InstagramIconStyled, { isActive: isInstagramActive, src: isInstagramActive ? ICONS_NAMES.INSTAGRAM_ACTIVE_ICON : ICONS_NAMES.INSTAGRAM_ICON }) }))] })));
|
|
82
|
+
};
|
|
83
|
+
export default React.memo(SocialMediaGroupComponent);
|
|
84
|
+
SocialMediaGroupComponent.defaultProps = {
|
|
85
|
+
defaultValue: SocialMediaTypes.WEB
|
|
86
|
+
};
|
|
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
24
|
import * as React from 'react';
|
|
24
25
|
import Typography from '@mui/material/Typography';
|
|
25
26
|
import { styled } from '@mui/material/styles';
|
|
@@ -29,7 +30,6 @@ var TextStyled = styled(Typography)(function (_a) {
|
|
|
29
30
|
});
|
|
30
31
|
var Text = function (_a) {
|
|
31
32
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
32
|
-
return
|
|
33
|
+
return _jsx(TextStyled, __assign({}, props, { children: children }));
|
|
33
34
|
};
|
|
34
35
|
export default React.memo(Text);
|
|
35
|
-
//# sourceMappingURL=Text.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ToggleButtonProps } from '@mui/material/ToggleButton';
|
|
3
|
+
export type { ToggleButtonProps };
|
|
4
|
+
declare const _default: React.MemoExoticComponent<({ children, ...props }: ToggleButtonProps<"button", {}>) => JSX.Element>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import * as React from 'react';
|
|
25
|
+
import { styled } from '@mui/material/styles';
|
|
26
|
+
import ToggleButton from '@mui/material/ToggleButton';
|
|
27
|
+
var ToggleButtonStyled = styled(ToggleButton)(function (_a) {
|
|
28
|
+
var theme = _a.theme;
|
|
29
|
+
return ({
|
|
30
|
+
width: theme.spacing(5.5),
|
|
31
|
+
height: theme.spacing(5.5),
|
|
32
|
+
border: 'none',
|
|
33
|
+
borderRadius: theme.spacing(0),
|
|
34
|
+
background: 'none',
|
|
35
|
+
'&.Mui-selected': {
|
|
36
|
+
background: 'none'
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
var ToggleButtonComponent = function (_a) {
|
|
41
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
42
|
+
return (_jsx(ToggleButtonStyled, __assign({ disableFocusRipple: true, disableRipple: true, disableTouchRipple: true }, props, { children: children })));
|
|
43
|
+
};
|
|
44
|
+
export default React.memo(ToggleButtonComponent);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ToggleButtonGroupProps } from '@mui/material/ToggleButtonGroup';
|
|
3
|
+
export type { ToggleButtonGroupProps };
|
|
4
|
+
declare const _default: React.MemoExoticComponent<({ children, ...props }: ToggleButtonGroupProps) => JSX.Element>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import * as React from 'react';
|
|
25
|
+
import { styled, alpha } from '@mui/material/styles';
|
|
26
|
+
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
|
|
27
|
+
var ToggleButtonGroupStyled = styled(ToggleButtonGroup)(function (_a) {
|
|
28
|
+
var theme = _a.theme;
|
|
29
|
+
return ({
|
|
30
|
+
background: alpha(theme.palette.secondary.main, 0.1)
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
var ToggleButtonGroupComponent = function (_a) {
|
|
34
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
35
|
+
return _jsx(ToggleButtonGroupStyled, __assign({}, props, { children: children }));
|
|
36
|
+
};
|
|
37
|
+
export default React.memo(ToggleButtonGroupComponent);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TooltipProps } from '@mui/material/Tooltip';
|
|
3
|
+
export type { TooltipProps };
|
|
4
|
+
declare const _default: React.MemoExoticComponent<{
|
|
5
|
+
({ children, ...rest }: TooltipProps): JSX.Element;
|
|
6
|
+
defaultProps: {
|
|
7
|
+
placement: string;
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import * as React from 'react';
|
|
25
|
+
import { styled, alpha } from '@mui/material/styles';
|
|
26
|
+
import Tooltip, { tooltipClasses } from '@mui/material/Tooltip';
|
|
27
|
+
var StyledTooltip = styled(function (_a) {
|
|
28
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
29
|
+
return (_jsx(Tooltip, __assign({}, props, { classes: { popper: className } })));
|
|
30
|
+
})(function (_a) {
|
|
31
|
+
var _b;
|
|
32
|
+
var theme = _a.theme;
|
|
33
|
+
return (_b = {},
|
|
34
|
+
_b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) }),
|
|
35
|
+
_b);
|
|
36
|
+
});
|
|
37
|
+
var TooltipComponent = function (_a) {
|
|
38
|
+
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
39
|
+
return _jsx(StyledTooltip, __assign({}, rest, { children: children }));
|
|
40
|
+
};
|
|
41
|
+
export default React.memo(TooltipComponent);
|
|
42
|
+
TooltipComponent.defaultProps = {
|
|
43
|
+
placement: 'bottom-end'
|
|
44
|
+
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BoxProps } from '@mui/material/Box';
|
|
3
3
|
export interface WarningProps extends BoxProps {
|
|
4
|
-
children
|
|
4
|
+
children?: string;
|
|
5
5
|
warningType?: 'alert' | 'error';
|
|
6
6
|
}
|
|
7
7
|
declare const _default: React.MemoExoticComponent<{
|
|
8
8
|
({ children, warningType, ...rest }: WarningProps): JSX.Element;
|
|
9
9
|
defaultProps: {
|
|
10
10
|
warningType: string;
|
|
11
|
+
children: string;
|
|
11
12
|
};
|
|
12
13
|
}>;
|
|
13
14
|
export default _default;
|
|
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
24
|
import * as React from 'react';
|
|
24
25
|
import { styled } from '@mui/material/styles';
|
|
25
26
|
import Box from '@mui/material/Box';
|
|
@@ -49,10 +50,10 @@ var AlertStyled = styled(Box)(function (_a) {
|
|
|
49
50
|
});
|
|
50
51
|
var WarningComponent = function (_a) {
|
|
51
52
|
var children = _a.children, warningType = _a.warningType, rest = __rest(_a, ["children", "warningType"]);
|
|
52
|
-
return warningType === 'alert' ? (
|
|
53
|
+
return warningType === 'alert' ? (_jsx(AlertStyled, __assign({}, rest, { children: children }))) : (_jsx(ErrorStyled, __assign({}, rest, { children: children })));
|
|
53
54
|
};
|
|
54
55
|
WarningComponent.defaultProps = {
|
|
55
|
-
warningType: 'error'
|
|
56
|
+
warningType: 'error',
|
|
57
|
+
children: 'default warning message'
|
|
56
58
|
};
|
|
57
59
|
export default React.memo(WarningComponent);
|
|
58
|
-
//# sourceMappingURL=Warning.js.map
|
package/build/constants/app.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { ScreenStepNavigation } from '../@types';
|
|
1
2
|
export declare const LOCAL_STORAGE_KEYS: {
|
|
2
3
|
themeMode: string;
|
|
3
4
|
languageMode: string;
|
|
4
5
|
};
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
export declare const EXTERNAL_LINKS: {
|
|
7
|
+
TOS_EN: string;
|
|
8
|
+
TOS_AR: string;
|
|
8
9
|
};
|
|
9
|
-
export declare const
|
|
10
|
+
export declare const CONNECT_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
|
package/build/constants/app.js
CHANGED
|
@@ -2,9 +2,39 @@ export var LOCAL_STORAGE_KEYS = {
|
|
|
2
2
|
themeMode: 'themeMode',
|
|
3
3
|
languageMode: 'languageMode'
|
|
4
4
|
};
|
|
5
|
-
export var
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export var EXTERNAL_LINKS = {
|
|
6
|
+
TOS_EN: 'https://www.tap.company/sa/en/terms-conditions',
|
|
7
|
+
TOS_AR: 'https://www.tap.company/sa/ar/terms-conditions'
|
|
8
8
|
};
|
|
9
|
-
export var
|
|
10
|
-
|
|
9
|
+
export var CONNECT_SCREENS_NAVIGATION = [
|
|
10
|
+
{
|
|
11
|
+
name: 'CONNECT_MID_STEP',
|
|
12
|
+
next: 'CONNECT_OTP_STEP',
|
|
13
|
+
prev: '',
|
|
14
|
+
order: 1
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'CONNECT_OTP_STEP',
|
|
18
|
+
next: 'CONNECT_INDIVIDUAL_STEP',
|
|
19
|
+
prev: 'CONNECT_MID_STEP',
|
|
20
|
+
order: 2
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'CONNECT_INDIVIDUAL_STEP',
|
|
24
|
+
next: 'CONNECT_MERCHANT_INFO_STEP',
|
|
25
|
+
prev: 'CONNECT_OTP_STEP',
|
|
26
|
+
order: 3
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'CONNECT_MERCHANT_INFO_STEP',
|
|
30
|
+
next: 'CONNECT_THANK_YOU_STEP',
|
|
31
|
+
prev: 'CONNECT_INDIVIDUAL_STEP',
|
|
32
|
+
order: 4
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'CONNECT_THANK_YOU_STEP',
|
|
36
|
+
next: '',
|
|
37
|
+
prev: 'CONNECT_MERCHANT_INFO_STEP',
|
|
38
|
+
order: 5
|
|
39
|
+
}
|
|
40
|
+
];
|
|
@@ -15,9 +15,16 @@ export declare const ICONS_NAMES: {
|
|
|
15
15
|
DOWN_ARROW_ICON_DARK: string;
|
|
16
16
|
CLEAR_ICON: string;
|
|
17
17
|
LOGO_ICON: string;
|
|
18
|
+
WEB_ICON: string;
|
|
19
|
+
WEB_ACTIVE_ICON: string;
|
|
20
|
+
TWITTER_ICON: string;
|
|
21
|
+
TWITTER_ACTIVE_ICON: string;
|
|
22
|
+
INSTAGRAM_ICON: string;
|
|
23
|
+
INSTAGRAM_ACTIVE_ICON: string;
|
|
18
24
|
TAP_EN: string;
|
|
19
25
|
TAP_AR: string;
|
|
20
26
|
ID_IMAGE: string;
|
|
21
27
|
MOBILE_IMAGE: string;
|
|
22
28
|
WHITE_ARROW: string;
|
|
29
|
+
SUCCESS: string;
|
|
23
30
|
};
|