@tap-payments/auth-jsconnect 2.10.0-development → 2.10.0-sandbox

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.
Files changed (120) hide show
  1. package/build/@types/index.d.ts +0 -1
  2. package/build/@types/index.js +0 -1
  3. package/build/api/auth.d.ts +1 -9
  4. package/build/api/index.d.ts +1 -8
  5. package/build/api/index.js +1 -3
  6. package/build/app/rootReducer.d.ts +0 -1
  7. package/build/app/rootReducer.js +1 -3
  8. package/build/app/store.d.ts +0 -2
  9. package/build/components/Tooltip/Tooltip.js +1 -1
  10. package/build/constants/app.d.ts +2 -11
  11. package/build/constants/app.js +1 -109
  12. package/build/constants/assets.d.ts +0 -4
  13. package/build/constants/assets.js +1 -5
  14. package/build/constants/flows.d.ts +0 -14
  15. package/build/constants/flows.js +0 -14
  16. package/build/constants/validation.d.ts +0 -1
  17. package/build/constants/validation.js +0 -1
  18. package/build/features/app/tax/taxStore.js +1 -1
  19. package/build/features/featuresScreens.d.ts +0 -1
  20. package/build/features/featuresScreens.js +0 -62
  21. package/build/features/shared/Button/Button.js +1 -1
  22. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -3
  23. package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
  24. package/build/hooks/useAppDispatch.d.ts +0 -1
  25. package/build/index.d.ts +2 -3
  26. package/build/index.js +2 -4
  27. package/build/theme/palette.js +0 -12
  28. package/build/theme/typography.js +0 -4
  29. package/build/utils/common.js +3 -3
  30. package/package.json +2 -2
  31. package/build/@types/terminal.d.ts +0 -116
  32. package/build/@types/terminal.js +0 -1
  33. package/build/api/terminal.d.ts +0 -23
  34. package/build/api/terminal.js +0 -60
  35. package/build/components/DeviceCard/DeviceCard.d.ts +0 -18
  36. package/build/components/DeviceCard/DeviceCard.js +0 -103
  37. package/build/components/DeviceCard/index.d.ts +0 -3
  38. package/build/components/DeviceCard/index.js +0 -2
  39. package/build/features/app/terminal/terminalStore.d.ts +0 -106
  40. package/build/features/app/terminal/terminalStore.js +0 -635
  41. package/build/features/shared/PushNotification/PushNotification.d.ts +0 -11
  42. package/build/features/shared/PushNotification/PushNotification.js +0 -34
  43. package/build/features/shared/PushNotification/index.d.ts +0 -2
  44. package/build/features/shared/PushNotification/index.js +0 -2
  45. package/build/features/terminal/Terminal.d.ts +0 -14
  46. package/build/features/terminal/Terminal.js +0 -95
  47. package/build/features/terminal/index.d.ts +0 -1
  48. package/build/features/terminal/index.js +0 -1
  49. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +0 -3
  50. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +0 -68
  51. package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +0 -2
  52. package/build/features/terminal/screens/LinkNewTerminal/index.js +0 -2
  53. package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +0 -10
  54. package/build/features/terminal/screens/LinkNewTerminal/styles.js +0 -28
  55. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +0 -3
  56. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +0 -50
  57. package/build/features/terminal/screens/LinkedSuccess/index.d.ts +0 -2
  58. package/build/features/terminal/screens/LinkedSuccess/index.js +0 -2
  59. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +0 -3
  60. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +0 -50
  61. package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +0 -2
  62. package/build/features/terminal/screens/LinkedTerminalInfo/index.js +0 -2
  63. package/build/features/terminal/screens/Loading/Loading.d.ts +0 -4
  64. package/build/features/terminal/screens/Loading/Loading.js +0 -10
  65. package/build/features/terminal/screens/Loading/index.d.ts +0 -2
  66. package/build/features/terminal/screens/Loading/index.js +0 -2
  67. package/build/features/terminal/screens/NoTerminalLinked/NoTerminalLinked.d.ts +0 -3
  68. package/build/features/terminal/screens/NoTerminalLinked/NoTerminalLinked.js +0 -57
  69. package/build/features/terminal/screens/NoTerminalLinked/index.d.ts +0 -2
  70. package/build/features/terminal/screens/NoTerminalLinked/index.js +0 -2
  71. package/build/features/terminal/screens/NoTerminalLinked/styles.d.ts +0 -36
  72. package/build/features/terminal/screens/NoTerminalLinked/styles.js +0 -34
  73. package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +0 -5
  74. package/build/features/terminal/screens/OperatorError/OperatorError.js +0 -9
  75. package/build/features/terminal/screens/OperatorError/index.d.ts +0 -2
  76. package/build/features/terminal/screens/OperatorError/index.js +0 -2
  77. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -3
  78. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
  79. package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +0 -2
  80. package/build/features/terminal/screens/ResetPasswordSuccess/index.js +0 -2
  81. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
  82. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -31
  83. package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +0 -2
  84. package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +0 -2
  85. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +0 -9
  86. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +0 -20
  87. package/build/features/terminal/screens/TerminalDeviceList/Header.d.ts +0 -6
  88. package/build/features/terminal/screens/TerminalDeviceList/Header.js +0 -23
  89. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +0 -3
  90. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +0 -129
  91. package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +0 -2
  92. package/build/features/terminal/screens/TerminalDeviceList/index.js +0 -2
  93. package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +0 -71
  94. package/build/features/terminal/screens/TerminalDeviceList/styles.js +0 -56
  95. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +0 -3
  96. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +0 -52
  97. package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +0 -2
  98. package/build/features/terminal/screens/UnlinkedSuccess/index.js +0 -2
  99. package/build/features/terminal/screens/UnlinkedTerminalInfo/TerminalList.d.ts +0 -9
  100. package/build/features/terminal/screens/UnlinkedTerminalInfo/TerminalList.js +0 -16
  101. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +0 -3
  102. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +0 -94
  103. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +0 -2
  104. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +0 -2
  105. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +0 -74
  106. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +0 -98
  107. package/build/features/terminal/screens/Verify/OTPInput.d.ts +0 -7
  108. package/build/features/terminal/screens/Verify/OTPInput.js +0 -51
  109. package/build/features/terminal/screens/Verify/Verify.d.ts +0 -5
  110. package/build/features/terminal/screens/Verify/Verify.js +0 -85
  111. package/build/features/terminal/screens/Verify/index.d.ts +0 -2
  112. package/build/features/terminal/screens/Verify/index.js +0 -2
  113. package/build/features/terminal/screens/Verify/validation.d.ts +0 -8
  114. package/build/features/terminal/screens/Verify/validation.js +0 -4
  115. package/build/features/terminal/screens/shared/index.d.ts +0 -2
  116. package/build/features/terminal/screens/shared/index.js +0 -2
  117. package/build/features/terminal/screens/shared/styles.d.ts +0 -72
  118. package/build/features/terminal/screens/shared/styles.js +0 -50
  119. package/build/features/terminal/screens/shared/utils.d.ts +0 -7
  120. package/build/features/terminal/screens/shared/utils.js +0 -24
@@ -1,94 +0,0 @@
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
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import * as React from 'react';
14
- import { useTranslation } from 'react-i18next';
15
- import { useTheme } from '@mui/material/styles';
16
- import Box from '@mui/material/Box';
17
- import { CONNECT_FLOWS, DEFAULT_TIMER_VALUE, ICONS_NAMES, TERMINAL_PUSH_NOTIFICATION_DURATION } from '../../../../constants';
18
- import { useAppDispatch, useAppSelector, useLanguage } from '../../../../hooks';
19
- import { handleNextScreenStep, handlePrevScreenStep } from '../../../../app/settings';
20
- import { ScreenContainer } from '../../../shared/Containers';
21
- import DeviceCard from '../../../../components/DeviceCard';
22
- import OTPTimer from '../../../../components/OTPTimer';
23
- import Collapse from '../../../../components/Collapse';
24
- import { clearError, linkTerminalDevice, pushNotificationLinkNewTerminal, storeSelectedTerminal, terminalSelector } from '../../../app/terminal/terminalStore';
25
- import PushNotification from '../../../shared/PushNotification';
26
- import Button from '../../../shared/Button';
27
- import { Container, getId, getIdLabel, LinkWithText } from '../shared';
28
- import { SendRequestContainer } from './styles';
29
- import TerminalList from './TerminalList';
30
- var UnlinkedTerminalInfo = function () {
31
- var t = useTranslation().t;
32
- var typography = useTheme().typography;
33
- var dispatch = useAppDispatch();
34
- var isAr = useLanguage().isAr;
35
- var _a = React.useState(false), isRequestSent = _a[0], setIsRequestSent = _a[1];
36
- var _b = React.useState(false), isReady = _b[0], setIsReady = _b[1];
37
- var _c = React.useState(false), success = _c[0], setSuccess = _c[1];
38
- var _d = React.useState(false), failed = _d[0], setFailed = _d[1];
39
- var _e = useAppSelector(terminalSelector), data = _e.data, error = _e.error;
40
- var _f = data.terminalInfo, selectedTerminalDevice = _f.selectedTerminalDevice, selectedTerminal = _f.selectedTerminal, responseData = data.responseData;
41
- var _g = responseData || {}, linkTerminalDeviceData = _g.linkTerminalDeviceData, terminalList = _g.terminalList;
42
- var model = selectedTerminalDevice.model, linked = selectedTerminalDevice.linked, display_name = selectedTerminalDevice.display_name;
43
- var _h = (model || {}).image_url, image_url = _h === void 0 ? ICONS_NAMES.device_image : _h;
44
- var expiry = TERMINAL_PUSH_NOTIFICATION_DURATION;
45
- var newTerminal = false;
46
- React.useEffect(function () {
47
- if (linkTerminalDeviceData && !isReady) {
48
- setIsReady(true);
49
- }
50
- }, [linkTerminalDeviceData]);
51
- React.useEffect(function () {
52
- if (!isReady)
53
- return;
54
- var promise = dispatch(pushNotificationLinkNewTerminal({ newTerminal: newTerminal, onSuccess: function () { return setSuccess(true); }, onFailure: function () { return setFailed(true); } }));
55
- promise
56
- .unwrap()
57
- .then(function (_a) {
58
- var nextScreen = _a.nextScreen;
59
- if (nextScreen)
60
- dispatch(handleNextScreenStep(nextScreen));
61
- })
62
- .catch(function () { });
63
- return function () {
64
- promise === null || promise === void 0 ? void 0 : promise.abort();
65
- };
66
- }, [isReady]);
67
- var getRequestSendDescription = function () {
68
- if (error)
69
- return t('terminal_request_denied', { device: display_name });
70
- if (isRequestSent)
71
- return t('terminal_new_request_will_send');
72
- return t('terminal_request_will_send');
73
- };
74
- var handleOnSendRequest = function () {
75
- setIsRequestSent(true);
76
- handleOnResendClick();
77
- };
78
- var handleOnBack = function () {
79
- if (error)
80
- dispatch(clearError());
81
- dispatch(handlePrevScreenStep(CONNECT_FLOWS.terminal.terminalList));
82
- };
83
- var handleOnSelectTerminal = function (terminal) {
84
- if (error)
85
- dispatch(clearError());
86
- dispatch(storeSelectedTerminal(terminal));
87
- };
88
- var handleOnResendClick = function () {
89
- dispatch(linkTerminalDevice());
90
- };
91
- var disabled = !(selectedTerminal === null || selectedTerminal === void 0 ? void 0 : selectedTerminal.id) || isRequestSent;
92
- return (_jsxs(ScreenContainer, __assign({ minHeight: 224, justifyContent: 'space-between' }, { children: [_jsx(PushNotification, __assign({ error: t('terminal_request_denied', { device: display_name }), failed: failed, success: success, expiryInSeconds: expiry }, { children: _jsxs(Container, { children: [_jsxs(Box, __assign({ sx: { ml: 2.5, mr: 2.5 } }, { children: [_jsx(LinkWithText, { children: "".concat(t('terminal_link'), " ").concat(display_name) }), _jsx(DeviceCard, { image: image_url, name: display_name, deviceId: getId(selectedTerminalDevice), deviceIdLabel: getIdLabel(selectedTerminalDevice), isLinked: linked }), _jsx(LinkWithText, { children: t('terminal_with') }), _jsx(TerminalList, { selectedTerminal: selectedTerminal, list: terminalList, onClick: handleOnSelectTerminal })] })), _jsxs(SendRequestContainer, __assign({ hasError: !!error, sx: __assign(__assign({}, typography.button_small), { fontWeight: typography.fontWeightRegular, mt: 2 }) }, { children: [getRequestSendDescription(), _jsx(Collapse, __assign({ in: isRequestSent && !error }, { children: _jsx(OTPTimer, { timeEndLabel: t('terminal_resend_request'), timeInSeconds: DEFAULT_TIMER_VALUE, onResetClick: handleOnResendClick }) }))] }))] }) })), _jsx(Button, __assign({ sx: { ml: 2.5, mr: 2.5, mt: 2 }, disabled: disabled, onBackClicked: handleOnBack, onClick: handleOnSendRequest, isAr: isAr }, { children: t('terminal_send_link_request') }))] })));
93
- };
94
- export default React.memo(UnlinkedTerminalInfo);
@@ -1,2 +0,0 @@
1
- import UnlinkedTerminalInfo from './UnlinkedTerminalInfo';
2
- export default UnlinkedTerminalInfo;
@@ -1,2 +0,0 @@
1
- import UnlinkedTerminalInfo from './UnlinkedTerminalInfo';
2
- export default UnlinkedTerminalInfo;
@@ -1,74 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ResendText: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
3
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
4
- children?: import("react").ReactNode;
5
- classes?: Partial<import("@mui/material/Typography").TypographyClasses> | undefined;
6
- gutterBottom?: boolean | undefined;
7
- noWrap?: boolean | undefined;
8
- paragraph?: boolean | undefined;
9
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
10
- variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
11
- variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
12
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
13
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
14
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
- interface SendRequestContainerProps {
16
- hasError?: boolean;
17
- }
18
- export declare const SendRequestContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
19
- children?: import("react").ReactNode;
20
- component?: import("react").ElementType<any> | undefined;
21
- ref?: import("react").Ref<unknown> | undefined;
22
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
23
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
24
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
25
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & SendRequestContainerProps, {}, {}>;
26
- export declare const ScrollContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
27
- children?: import("react").ReactNode;
28
- component?: import("react").ElementType<any> | undefined;
29
- ref?: import("react").Ref<unknown> | undefined;
30
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
31
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
32
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
33
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
34
- export declare const TerminalListContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
35
- children?: import("react").ReactNode;
36
- component?: import("react").ElementType<any> | undefined;
37
- ref?: import("react").Ref<unknown> | undefined;
38
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
39
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
40
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
41
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
42
- export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
43
- children?: import("react").ReactNode;
44
- component?: import("react").ElementType<any> | undefined;
45
- ref?: import("react").Ref<unknown> | undefined;
46
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
47
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
48
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
49
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
50
- export declare const TitleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
51
- children?: import("react").ReactNode;
52
- component?: import("react").ElementType<any> | undefined;
53
- ref?: import("react").Ref<unknown> | undefined;
54
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
55
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
56
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
57
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
58
- export declare const Image: import("@emotion/styled").StyledComponent<import("../../../../components/Icon").IconProps & import("react").RefAttributes<HTMLImageElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
59
- export declare const Title: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
60
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
61
- children?: import("react").ReactNode;
62
- classes?: Partial<import("@mui/material/Typography").TypographyClasses> | undefined;
63
- gutterBottom?: boolean | undefined;
64
- noWrap?: boolean | undefined;
65
- paragraph?: boolean | undefined;
66
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
67
- variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
68
- variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
69
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
70
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
71
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
72
- export declare const ListItem: import("@emotion/styled").StyledComponent<import("../../../../components/DeviceCard").DeviceCardProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
73
- export declare const StyledRadio: import("@emotion/styled").StyledComponent<import("@mui/material/Radio").RadioProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
74
- export {};
@@ -1,98 +0,0 @@
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
- import { alpha, styled } from '@mui/material/styles';
13
- import Typography from '@mui/material/Typography';
14
- import Box from '@mui/material/Box';
15
- import Icon from '../../../../components/Icon';
16
- import DeviceCard from '../../../../components/DeviceCard';
17
- import { QRCodeDescription } from '../shared';
18
- import Radio from '@mui/material/Radio';
19
- export var ResendText = styled(Typography)(function (_a) {
20
- var _b = _a.theme, palette = _b.palette, typography = _b.typography, spacing = _b.spacing;
21
- return (__assign(__assign({ cursor: 'pointer', color: palette.primary.main }, typography.caption), { fontWeight: typography.fontWeightRegular, textAlign: 'end', marginTop: spacing(0.75) }));
22
- });
23
- export var SendRequestContainer = styled(QRCodeDescription, {
24
- shouldForwardProp: function (prop) { return !['hasError'].includes(prop.toString()); }
25
- })(function (_a) {
26
- var _b = _a.theme, typography = _b.typography, palette = _b.palette, hasError = _a.hasError;
27
- return (__assign(__assign(__assign({}, typography.button_small), { fontWeight: typography.fontWeightRegular, mt: 2 }), (hasError && {
28
- background: alpha(palette.error.dark, 0.3),
29
- borderWidth: '1px, 0px, 1px, 0px',
30
- borderStyle: 'solid',
31
- borderColor: alpha(palette.error.dark, 0.7),
32
- color: alpha(palette.error.main, 0.7)
33
- })));
34
- });
35
- export var ScrollContainer = styled(Box)(function (_a) {
36
- var spacing = _a.theme.spacing;
37
- return ({
38
- maxHeight: spacing(20.625),
39
- overflow: 'scroll'
40
- });
41
- });
42
- export var TerminalListContainer = styled(Box)(function (_a) {
43
- var spacing = _a.theme.spacing;
44
- return ({
45
- display: 'flex',
46
- justifyContent: 'space-between',
47
- flexDirection: 'column',
48
- alignItems: 'center',
49
- width: '100%',
50
- gap: spacing(0.75)
51
- });
52
- });
53
- export var Container = styled(Box)(function (_a) {
54
- var _b = _a.theme, spacing = _b.spacing, _c = _b.palette, common = _c.common, toastDeviceSelectorDropdown = _c.components.toastDeviceSelectorDropdown;
55
- return ({
56
- marginTop: spacing(1),
57
- border: "1px solid ".concat(toastDeviceSelectorDropdown.border),
58
- backgroundColor: common.white,
59
- borderRadius: spacing(1)
60
- });
61
- });
62
- export var TitleContainer = styled(Box)(function (_a) {
63
- var _b = _a.theme, spacing = _b.spacing, toastDeviceSelectorDropdown = _b.palette.components.toastDeviceSelectorDropdown;
64
- return ({
65
- padding: spacing(1.5, 2, 1.5, 2),
66
- display: 'flex',
67
- flexDirection: 'row',
68
- gap: spacing(0.75),
69
- alignItems: 'center',
70
- borderBottom: "1px solid ".concat(toastDeviceSelectorDropdown.border)
71
- });
72
- });
73
- export var Image = styled(Icon)(function (_a) {
74
- var spacing = _a.theme.spacing;
75
- return ({
76
- width: spacing(3),
77
- height: spacing(3)
78
- });
79
- });
80
- export var Title = styled(Typography)(function (_a) {
81
- var _b = _a.theme, typography = _b.typography, palette = _b.palette;
82
- return (__assign(__assign({}, typography.body2), { color: palette.components.deviceCard.title, fontWeight: typography.fontWeightBold }));
83
- });
84
- export var ListItem = styled(DeviceCard)(function (_a) {
85
- var spacing = _a.theme.spacing;
86
- return ({
87
- paddingTop: spacing(1),
88
- paddingBottom: spacing(1)
89
- });
90
- });
91
- export var StyledRadio = styled(Radio)(function (_a) {
92
- var theme = _a.theme;
93
- return ({
94
- '&.Mui-checked': {
95
- color: theme.palette.primary.main
96
- }
97
- });
98
- });
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- export interface OTPProps {
3
- loading: boolean;
4
- setLoading: (flag: boolean) => void;
5
- }
6
- declare const _default: React.MemoExoticComponent<({ loading }: OTPProps) => JSX.Element>;
7
- export default _default;
@@ -1,51 +0,0 @@
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
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import * as React from 'react';
14
- import Box from '@mui/material/Box/Box';
15
- import { styled } from '@mui/material/styles';
16
- import OTPField from '../../../shared/OTP';
17
- import { useController, useFormContext } from 'react-hook-form';
18
- import { useTranslation } from 'react-i18next';
19
- import { DEFAULT_TIMER_VALUE } from '../../../../constants';
20
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
21
- import { isTokenExpired } from '../../../../utils';
22
- import { clearError, terminalSelector, resendOTP } from '../../../app/terminal/terminalStore';
23
- var BoxStyled = styled(Box)(function (_a) {
24
- var theme = _a.theme;
25
- return ({
26
- display: 'flex',
27
- flexDirection: 'column',
28
- fontFamily: theme.typography.fontFamily
29
- });
30
- });
31
- var OTPInput = function (_a) {
32
- var loading = _a.loading;
33
- var _b = useFormContext(), control = _b.control, setValue = _b.setValue;
34
- var t = useTranslation().t;
35
- var otpControl = useController({ name: 'otp', control: control });
36
- var dispatch = useAppDispatch();
37
- var error = useAppSelector(terminalSelector).error;
38
- var handleOnOTPChange = function (otp) {
39
- if (error)
40
- dispatch(clearError());
41
- otpControl.field.onChange(otp);
42
- };
43
- var handleOnResendOTP = function () {
44
- if (otpControl.field.value)
45
- setValue('otp', '', { shouldValidate: true });
46
- dispatch(resendOTP());
47
- };
48
- var otpValue = otpControl.field.value;
49
- return (_jsx(BoxStyled, __assign({ dir: 'ltr' }, { children: _jsx(OTPField, { loading: loading, timeEndLabel: t('ide_otp_resend_label'), timerInSeconds: DEFAULT_TIMER_VALUE, onResetClick: handleOnResendOTP, value: otpValue, hasError: isTokenExpired(error), onChange: function (number) { return handleOnOTPChange(number.toString()); } }) })));
50
- };
51
- export default React.memo(OTPInput);
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- export interface OTPProps {
3
- }
4
- declare const _default: React.MemoExoticComponent<({}: OTPProps) => JSX.Element>;
5
- export default _default;
@@ -1,85 +0,0 @@
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
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import * as React from 'react';
14
- import { useAppDispatch, useSetFromDefaultValues, useSanitizedTranslation, useLanguage, useAppSelector } from '../../../../hooks';
15
- import { useTranslation } from 'react-i18next';
16
- import { useForm, FormProvider } from 'react-hook-form';
17
- import { yupResolver } from '@hookform/resolvers/yup';
18
- import Box from '@mui/material/Box/Box';
19
- import { styled } from '@mui/material/styles';
20
- import { handleNextScreenStep } from '../../../../app/settings';
21
- import { deepCopy, maskPhone } from '../../../../utils';
22
- import Form from '../../../../components/Form';
23
- import Text from '../../../../components/Text';
24
- import { ScreenContainer } from '../../../shared/Containers';
25
- import { terminalSelector, clearError, resetOTPScreen, verifyTokenOTP } from '../../../app/terminal/terminalStore';
26
- import Button from '../../../shared/Button';
27
- import { OTPValidation } from './validation';
28
- import OTPInput from './OTPInput';
29
- var OTPTitleContainerStyled = styled(Box)(function (_a) {
30
- var theme = _a.theme;
31
- return ({
32
- background: theme.palette.common.white,
33
- border: '1px solid',
34
- borderColor: theme.palette.divider,
35
- direction: theme.direction,
36
- borderRadius: theme.spacing(0, 0, 1.25, 1.25),
37
- marginBottom: theme.spacing(5.75)
38
- });
39
- });
40
- var OTPTitleStyled = styled(Text)(function (_a) {
41
- var theme = _a.theme;
42
- return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.text.primary, fontWeight: theme.typography.fontWeightLight, marginBlock: theme.spacing(1.75), marginInlineStart: theme.spacing(2.5), lineHeight: 1.75 }));
43
- });
44
- var FormStyled = styled(Form)(function () { return ({
45
- display: 'flex',
46
- flexDirection: 'column'
47
- }); });
48
- var VerifyNumber = function (_a) {
49
- var _b, _c, _d;
50
- var dispatch = useAppDispatch();
51
- var _e = useAppSelector(terminalSelector), data = _e.data, loading = _e.loading, error = _e.error;
52
- var otp = data.otpData.otp;
53
- var methods = useForm({
54
- resolver: yupResolver(OTPValidation),
55
- defaultValues: {
56
- otp: otp
57
- },
58
- mode: 'onChange'
59
- });
60
- useSetFromDefaultValues(methods, data.otpData);
61
- var t = useTranslation().t;
62
- var st = useSanitizedTranslation();
63
- var isAr = useLanguage().isAr;
64
- var _f = React.useState(false), resendLoading = _f[0], setResendLoading = _f[1];
65
- var phone = (_d = (_c = (_b = data.responseData) === null || _b === void 0 ? void 0 : _b.authData) === null || _c === void 0 ? void 0 : _c.verification_by) === null || _d === void 0 ? void 0 : _d.sent_to;
66
- React.useEffect(function () {
67
- if (error && methods.formState.isValid && phone)
68
- dispatch(clearError());
69
- return function () {
70
- dispatch(resetOTPScreen());
71
- };
72
- }, [methods.formState.isValid]);
73
- var onSubmit = function (formData) {
74
- dispatch(verifyTokenOTP(deepCopy(formData)))
75
- .unwrap()
76
- .then(function (_a) {
77
- var nextScreen = _a.nextScreen;
78
- dispatch(handleNextScreenStep(nextScreen));
79
- })
80
- .catch(function () { });
81
- };
82
- var disabled = !methods.formState.isValid || !phone || resendLoading;
83
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? st('ide_otp_waiting_title') : st('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, { loading: resendLoading, setLoading: setResendLoading }), _jsx(Button, __assign({ disableBack: true, disabled: disabled, isAr: isAr, loading: loading, error: st(error || '') }, { children: t('next') }))] })) })) }));
84
- };
85
- export default React.memo(VerifyNumber);
@@ -1,2 +0,0 @@
1
- import OTP from './Verify';
2
- export default OTP;
@@ -1,2 +0,0 @@
1
- import OTP from './Verify';
2
- export default OTP;
@@ -1,8 +0,0 @@
1
- import * as yup from 'yup';
2
- export declare const OTPValidation: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
- otp: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
- }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
5
- otp: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
- }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
7
- otp: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
- }>>>;
@@ -1,4 +0,0 @@
1
- import * as yup from 'yup';
2
- export var OTPValidation = yup.object().shape({
3
- otp: yup.string().min(6, 'otp_min_length').required('otp_required')
4
- });
@@ -1,2 +0,0 @@
1
- export * from './styles';
2
- export * from './utils';
@@ -1,2 +0,0 @@
1
- export * from './styles';
2
- export * from './utils';
@@ -1,72 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
3
- children?: import("react").ReactNode;
4
- component?: import("react").ElementType<any> | undefined;
5
- ref?: import("react").Ref<unknown> | undefined;
6
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
7
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
8
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
9
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
10
- export declare const LinkNewTerminalContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
11
- children?: import("react").ReactNode;
12
- component?: import("react").ElementType<any> | undefined;
13
- ref?: import("react").Ref<unknown> | undefined;
14
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
15
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
16
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
17
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
18
- export declare const TextTypography: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
19
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
20
- children?: import("react").ReactNode;
21
- classes?: Partial<import("@mui/material/Typography").TypographyClasses> | undefined;
22
- gutterBottom?: boolean | undefined;
23
- noWrap?: boolean | undefined;
24
- paragraph?: boolean | undefined;
25
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
26
- variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
27
- variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
28
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
29
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
30
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
31
- export declare const LinkWithText: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
32
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
33
- children?: import("react").ReactNode;
34
- classes?: Partial<import("@mui/material/Typography").TypographyClasses> | undefined;
35
- gutterBottom?: boolean | undefined;
36
- noWrap?: boolean | undefined;
37
- paragraph?: boolean | undefined;
38
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
39
- variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
40
- variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
41
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
42
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
43
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
44
- export declare const LinkTerminalText: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
45
- align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
46
- children?: import("react").ReactNode;
47
- classes?: Partial<import("@mui/material/Typography").TypographyClasses> | undefined;
48
- gutterBottom?: boolean | undefined;
49
- noWrap?: boolean | undefined;
50
- paragraph?: boolean | undefined;
51
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
52
- variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
53
- variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
54
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
55
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
56
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
57
- export declare const QRCodeDescription: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
58
- children?: import("react").ReactNode;
59
- component?: import("react").ElementType<any> | undefined;
60
- ref?: import("react").Ref<unknown> | undefined;
61
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
62
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
63
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
64
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
65
- export declare const SuccessContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
66
- children?: import("react").ReactNode;
67
- component?: import("react").ElementType<any> | undefined;
68
- ref?: import("react").Ref<unknown> | undefined;
69
- sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
70
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
71
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
72
- }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;