@tap-payments/auth-jsconnect 2.11.0-development → 2.11.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 (51) hide show
  1. package/build/@types/form.d.ts +0 -2
  2. package/build/api/entity.d.ts +0 -3
  3. package/build/api/lead.d.ts +0 -1
  4. package/build/assets/locales/ar.json +10 -9
  5. package/build/assets/locales/en.json +10 -9
  6. package/build/components/Tooltip/Tooltip.js +1 -1
  7. package/build/constants/app.d.ts +1 -9
  8. package/build/constants/app.js +4 -6
  9. package/build/constants/validation.d.ts +0 -1
  10. package/build/constants/validation.js +0 -1
  11. package/build/features/app/business/businessStore.js +10 -15
  12. package/build/features/app/connectExpress/connectExpressStore.js +4 -19
  13. package/build/features/app/terminal/terminalStore.d.ts +1 -2
  14. package/build/features/app/terminal/terminalStore.js +2 -5
  15. package/build/features/auth/Auth.d.ts +1 -1
  16. package/build/features/auth/screens/AuthenticationList/EntityList.js +2 -2
  17. package/build/features/business/screens/BusinessType/BusinessType.js +2 -13
  18. package/build/features/business/screens/BusinessType/EntityLicenseList.js +5 -11
  19. package/build/features/business/screens/BusinessType/LicenseList.js +7 -15
  20. package/build/features/business/screens/BusinessType/validation.d.ts +3 -6
  21. package/build/features/business/screens/BusinessType/validation.js +10 -31
  22. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +2 -2
  23. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +0 -1
  24. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +7 -23
  25. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  26. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
  27. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +3 -6
  28. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +21 -57
  29. package/build/features/entity/screens/EntityName/EntityName.js +1 -2
  30. package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
  31. package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
  32. package/build/features/entity/screens/EntityName/validation.js +3 -14
  33. package/build/features/shared/Button/FlowsButtons.d.ts +0 -1
  34. package/build/features/shared/Button/FlowsButtons.js +1 -1
  35. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -2
  36. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +2 -3
  37. package/build/features/terminal/screens/LinkNewTerminal/styles.js +2 -2
  38. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +3 -8
  39. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +1 -3
  40. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +5 -6
  41. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +10 -19
  42. package/build/features/terminal/screens/TerminalListPage/TerminalListPage.js +2 -7
  43. package/build/features/terminal/screens/shared/TerminalList.js +3 -3
  44. package/build/utils/common.js +3 -3
  45. package/build/utils/string.d.ts +1 -1
  46. package/build/utils/string.js +2 -2
  47. package/package.json +2 -2
  48. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +0 -35
  49. package/build/features/business/screens/BusinessType/UnifiedNumber.js +0 -84
  50. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +0 -36
  51. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +0 -81
@@ -1,81 +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 { useController, useFormContext } from 'react-hook-form';
16
- import { alpha, styled } from '@mui/material/styles';
17
- import InfoIcon from '@mui/icons-material/Info';
18
- import Box from '@mui/material/Box';
19
- import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
20
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
21
- import { removeAllCharsFromNumber } from '../../../../utils';
22
- import Collapse from '../../../../components/Collapse';
23
- import Tooltip from '../../../../components/Tooltip';
24
- import Text from '../../../../components/Text';
25
- import { ScreenContainer } from '../../../shared/Containers';
26
- import Input from '../../../shared/Input';
27
- import { clearError, connectExpressSelector } from '../../../app/connectExpress/connectExpressStore';
28
- import { EndAdornment } from '../../../shared/EndAdornment';
29
- var LabelContainerStyled = styled(Box)(function (_a) {
30
- var theme = _a.theme;
31
- return ({
32
- display: 'flex',
33
- justifyContent: 'space-between',
34
- padding: theme.spacing(0, 2.5, 1, 2.5)
35
- });
36
- });
37
- var InputLabelStyled = styled(Text)(function (_a) {
38
- var theme = _a.theme;
39
- return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
40
- });
41
- export var InfoIconStyled = styled(InfoIcon)(function (_a) {
42
- var theme = _a.theme;
43
- return ({
44
- width: theme.spacing(2.75),
45
- height: theme.spacing(2.125),
46
- cursor: 'pointer',
47
- color: alpha(theme.palette.text.primary, 0.4),
48
- display: 'inline-flex'
49
- });
50
- });
51
- export var InfoOutlinedIconStyled = styled(InfoOutlinedIcon)(function (_a) {
52
- var theme = _a.theme;
53
- return ({
54
- width: theme.spacing(2.75),
55
- height: theme.spacing(2.125),
56
- cursor: 'pointer',
57
- color: alpha(theme.palette.text.primary, 0.4),
58
- display: 'inline-flex'
59
- });
60
- });
61
- var UnifiedNumber = function (_a) {
62
- var _b;
63
- var show = _a.show, readOnly = _a.readOnly, isVerified = _a.isVerified;
64
- var t = useTranslation().t;
65
- var bckError = useAppSelector(connectExpressSelector).error;
66
- var control = useFormContext().control;
67
- var dispatch = useAppDispatch();
68
- var _c = React.useState(false), hovered = _c[0], setHovered = _c[1];
69
- var handleChange = function (_a) {
70
- var target = _a.target;
71
- if (bckError)
72
- dispatch(clearError());
73
- var value = removeAllCharsFromNumber(target.value);
74
- unifiedNumberControl.field.onChange(value);
75
- };
76
- var unifiedNumberControl = useController({ control: control, name: 'unifiedNumber' });
77
- var unifiedNumberValue = unifiedNumberControl.field.value || '';
78
- var error = (_b = unifiedNumberControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
79
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { mb: 2.5 } }, { children: [_jsxs(LabelContainerStyled, { children: [_jsx(InputLabelStyled, { children: t('v1_company_unified_number_label') }), _jsx(Tooltip, __assign({ title: t('v1_company_unified_number_description'), onMouseOver: function () { return setHovered(true); }, onMouseLeave: function () { return setHovered(false); }, onTouchStartCapture: function () { return setHovered(true); } }, { children: hovered ? _jsx(InfoIconStyled, {}) : _jsx(InfoOutlinedIconStyled, {}) }))] }), _jsx(Input, { readOnly: readOnly, onChange: handleChange, value: unifiedNumberValue, sx: { '& .MuiInputBase-input': { cursor: 'auto' } }, placeholder: t('v1_company_unified_number_hint'), warningType: 'alert', warningMessage: error && t(error), endAdornment: _jsx(EndAdornment, { value: unifiedNumberValue, isVerified: isVerified }) })] })) })));
80
- };
81
- export default React.memo(UnifiedNumber);