@tap-payments/auth-jsconnect 1.0.5 → 1.0.8

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 (242) hide show
  1. package/build/@types/app.d.ts +61 -3
  2. package/build/@types/app.js +5 -0
  3. package/build/app/settings.d.ts +3 -3
  4. package/build/app/settings.js +26 -11
  5. package/build/assets/locales/ar.json +51 -3
  6. package/build/assets/locales/en.json +50 -2
  7. package/build/components/AnimationFlow/BottomSheet.js +1 -1
  8. package/build/components/AnimationFlow/Dialog.js +7 -22
  9. package/build/components/Footer/Footer.js +1 -1
  10. package/build/components/Loader/Loader.js +12 -11
  11. package/build/components/OTPField/OTPField.js +3 -23
  12. package/build/components/OTPTimer/OTPTimer.d.ts +4 -3
  13. package/build/components/OTPTimer/OTPTimer.js +19 -6
  14. package/build/components/Providers/ThemeProvider.js +3 -2
  15. package/build/components/SimpleList/SimpleList.d.ts +1 -1
  16. package/build/components/SimpleList/SimpleList.js +2 -5
  17. package/build/components/Warning/Warning.js +2 -18
  18. package/build/constants/app.d.ts +9 -0
  19. package/build/constants/app.js +112 -2
  20. package/build/constants/assets.d.ts +4 -0
  21. package/build/constants/assets.js +4 -0
  22. package/build/constants/dummy.d.ts +103 -0
  23. package/build/constants/dummy.js +219 -0
  24. package/build/constants/validation.d.ts +4 -0
  25. package/build/constants/validation.js +4 -0
  26. package/build/features/bank/Bank.d.ts +6 -0
  27. package/build/features/bank/Bank.js +48 -0
  28. package/build/features/bank/index.d.ts +1 -0
  29. package/build/features/bank/index.js +1 -0
  30. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +5 -0
  31. package/build/features/bank/screens/BankDetails/BankDetails.js +57 -0
  32. package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -0
  33. package/build/features/bank/screens/BankDetails/BankName.js +27 -0
  34. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +5 -0
  35. package/build/features/bank/screens/BankDetails/Beneficiary.js +34 -0
  36. package/build/features/bank/screens/BankDetails/IBAN.d.ts +5 -0
  37. package/build/features/bank/screens/BankDetails/IBAN.js +35 -0
  38. package/build/features/bank/screens/BankDetails/index.d.ts +3 -0
  39. package/build/features/bank/screens/BankDetails/index.js +2 -0
  40. package/build/features/bank/screens/BankDetails/validation.d.ts +14 -0
  41. package/build/features/bank/screens/BankDetails/validation.js +9 -0
  42. package/build/features/business/Business.d.ts +6 -0
  43. package/build/features/business/Business.js +61 -0
  44. package/build/features/business/index.d.ts +1 -0
  45. package/build/features/business/index.js +1 -1
  46. package/build/features/business/screens/Activities/Activities.d.ts +5 -0
  47. package/build/features/business/screens/Activities/Activities.js +83 -0
  48. package/build/features/business/screens/Activities/ActivitiesList.d.ts +70 -0
  49. package/build/features/business/screens/Activities/ActivitiesList.js +136 -0
  50. package/build/features/business/screens/Activities/SalesChannels.d.ts +5 -0
  51. package/build/features/business/screens/Activities/SalesChannels.js +107 -0
  52. package/build/features/business/screens/Activities/index.d.ts +3 -0
  53. package/build/features/business/screens/Activities/index.js +2 -0
  54. package/build/features/business/screens/Activities/validation.d.ts +119 -0
  55. package/build/features/business/screens/Activities/validation.js +17 -0
  56. package/build/features/business/screens/BusinessType/BusinessType.d.ts +12 -0
  57. package/build/features/business/screens/BusinessType/BusinessType.js +85 -0
  58. package/build/features/business/screens/BusinessType/CRNumber.d.ts +6 -0
  59. package/build/features/business/screens/BusinessType/CRNumber.js +40 -0
  60. package/build/features/business/screens/BusinessType/CompanyLicense.d.ts +11 -0
  61. package/build/features/business/screens/BusinessType/CompanyLicense.js +109 -0
  62. package/build/features/business/screens/BusinessType/FLNumber.d.ts +6 -0
  63. package/build/features/business/screens/BusinessType/FLNumber.js +40 -0
  64. package/build/features/business/screens/BusinessType/FreelanceLicense.d.ts +11 -0
  65. package/build/features/business/screens/BusinessType/FreelanceLicense.js +112 -0
  66. package/build/features/business/screens/BusinessType/SelectType.d.ts +8 -0
  67. package/build/features/business/screens/BusinessType/SelectType.js +106 -0
  68. package/build/features/business/screens/BusinessType/Switch.d.ts +7 -0
  69. package/build/features/business/screens/BusinessType/Switch.js +35 -0
  70. package/build/features/business/screens/BusinessType/index.d.ts +3 -0
  71. package/build/features/business/screens/BusinessType/index.js +2 -0
  72. package/build/features/business/screens/BusinessType/validation.d.ts +15 -0
  73. package/build/features/business/screens/BusinessType/validation.js +14 -0
  74. package/build/features/business/screens/Confirm/Confirm.d.ts +5 -0
  75. package/build/features/business/screens/Confirm/Confirm.js +53 -0
  76. package/build/features/business/screens/Confirm/index.d.ts +3 -0
  77. package/build/features/business/screens/Confirm/index.js +2 -0
  78. package/build/features/business/screens/Customers/CustomerLocations.d.ts +92 -0
  79. package/build/features/business/screens/Customers/CustomerLocations.js +122 -0
  80. package/build/features/business/screens/Customers/Customers.d.ts +5 -0
  81. package/build/features/business/screens/Customers/Customers.js +92 -0
  82. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +7 -0
  83. package/build/features/business/screens/Customers/ExpectedCustomers.js +78 -0
  84. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +7 -0
  85. package/build/features/business/screens/Customers/ExpectedSalesRange.js +74 -0
  86. package/build/features/business/screens/Customers/RefundPolicy.d.ts +44 -0
  87. package/build/features/business/screens/Customers/RefundPolicy.js +86 -0
  88. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +3 -0
  89. package/build/features/business/screens/Customers/TransactionPolicy.js +37 -0
  90. package/build/features/business/screens/Customers/index.d.ts +3 -0
  91. package/build/features/business/screens/Customers/index.js +2 -0
  92. package/build/features/business/screens/Customers/validation.d.ts +20 -0
  93. package/build/features/business/screens/Customers/validation.js +8 -0
  94. package/build/features/business/screens/IDBOD/DOB.js +8 -8
  95. package/build/features/business/screens/IDBOD/ID.js +8 -7
  96. package/build/features/business/screens/IDBOD/IDBOD.js +5 -6
  97. package/build/features/business/screens/OTP/OTP.d.ts +11 -0
  98. package/build/features/business/screens/OTP/OTP.js +112 -0
  99. package/build/features/business/screens/OTP/OTPInput.d.ts +5 -0
  100. package/build/features/business/screens/OTP/OTPInput.js +51 -0
  101. package/build/features/{connect → business}/screens/OTP/OTPTimer.d.ts +0 -0
  102. package/build/features/business/screens/OTP/OTPTimer.js +20 -0
  103. package/build/features/business/screens/OTP/index.d.ts +3 -0
  104. package/build/features/business/screens/OTP/index.js +2 -0
  105. package/build/features/business/screens/OTP/validation.d.ts +8 -0
  106. package/build/features/business/screens/OTP/validation.js +4 -0
  107. package/build/features/business/screens/Success/Success.d.ts +5 -0
  108. package/build/features/business/screens/Success/Success.js +15 -0
  109. package/build/features/business/screens/Success/index.d.ts +3 -0
  110. package/build/features/business/screens/Success/index.js +2 -0
  111. package/build/features/business/screens/VerifyNumber/OTPInput.d.ts +6 -0
  112. package/build/features/business/screens/VerifyNumber/OTPInput.js +68 -0
  113. package/build/features/business/screens/VerifyNumber/OTPTimer.d.ts +5 -0
  114. package/build/features/business/screens/VerifyNumber/OTPTimer.js +20 -0
  115. package/build/features/business/screens/VerifyNumber/VerifyNumber.d.ts +13 -0
  116. package/build/features/business/screens/VerifyNumber/VerifyNumber.js +119 -0
  117. package/build/features/business/screens/VerifyNumber/index.d.ts +3 -0
  118. package/build/features/business/screens/VerifyNumber/index.js +2 -0
  119. package/build/features/business/screens/VerifyNumber/validation.d.ts +8 -0
  120. package/build/features/business/screens/VerifyNumber/validation.js +4 -0
  121. package/build/features/connect/Connect.js +6 -18
  122. package/build/features/connect/screens/Individual/Email.d.ts +1 -1
  123. package/build/features/connect/screens/Individual/Email.js +6 -31
  124. package/build/features/connect/screens/Individual/Individual.js +7 -16
  125. package/build/features/connect/screens/Individual/Name.d.ts +1 -1
  126. package/build/features/connect/screens/Individual/Name.js +7 -34
  127. package/build/features/connect/screens/MID/BusinessCountry.js +5 -40
  128. package/build/features/connect/screens/MID/IDNumber.js +13 -28
  129. package/build/features/connect/screens/MID/MID.js +6 -43
  130. package/build/features/connect/screens/MID/MobileNumber.js +22 -41
  131. package/build/features/connect/screens/Merchant/BrandName.js +5 -31
  132. package/build/features/connect/screens/Merchant/Merchant.js +6 -50
  133. package/build/features/connect/screens/Merchant/SocialMedia.js +3 -11
  134. package/build/features/connect/screens/Merchant/TAC.js +4 -13
  135. package/build/features/connect/screens/OTP/OTP.js +17 -61
  136. package/build/features/connect/screens/OTP/OTPInput.js +8 -21
  137. package/build/features/connect/screens/Password/Password.js +12 -49
  138. package/build/features/connect/screens/Password/PasswordInput.js +16 -51
  139. package/build/features/connect/screens/ThankYou/ThankYou.js +4 -65
  140. package/build/features/featuresScreens.d.ts +5 -0
  141. package/build/features/featuresScreens.js +78 -7
  142. package/build/features/owner/Owner.d.ts +6 -0
  143. package/build/features/owner/Owner.js +50 -0
  144. package/build/features/owner/index.d.ts +1 -0
  145. package/build/features/owner/index.js +1 -0
  146. package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.d.ts +19 -0
  147. package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.js +52 -0
  148. package/build/features/owner/screens/ShowOwnerInfo/index.d.ts +3 -0
  149. package/build/features/owner/screens/ShowOwnerInfo/index.js +2 -0
  150. package/build/features/owner/screens/ShowOwnerInfo/info.d.ts +7 -0
  151. package/build/features/owner/screens/ShowOwnerInfo/info.js +28 -0
  152. package/build/features/password/Password.d.ts +6 -0
  153. package/build/features/password/Password.js +50 -0
  154. package/build/features/password/index.d.ts +1 -0
  155. package/build/features/password/index.js +1 -0
  156. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +7 -0
  157. package/build/features/password/screens/CreatePassword/ConditionText.js +23 -0
  158. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +5 -0
  159. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +27 -0
  160. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +5 -0
  161. package/build/features/password/screens/CreatePassword/CreatePassword.js +51 -0
  162. package/build/features/password/screens/CreatePassword/Password.d.ts +5 -0
  163. package/build/features/password/screens/CreatePassword/Password.js +75 -0
  164. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +7 -0
  165. package/build/features/password/screens/CreatePassword/PasswordBar.js +29 -0
  166. package/build/features/password/screens/CreatePassword/index.d.ts +3 -0
  167. package/build/features/password/screens/CreatePassword/index.js +2 -0
  168. package/build/features/password/screens/CreatePassword/validation.d.ts +11 -0
  169. package/build/features/password/screens/CreatePassword/validation.js +8 -0
  170. package/build/features/shared/Button/Button.d.ts +8 -0
  171. package/build/features/shared/Button/Button.js +47 -0
  172. package/build/features/shared/Button/index.d.ts +2 -0
  173. package/build/features/shared/Button/index.js +2 -0
  174. package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -0
  175. package/build/features/shared/CheckIcon/CheckIcon.js +14 -0
  176. package/build/features/shared/CheckIcon/index.d.ts +2 -0
  177. package/build/features/shared/CheckIcon/index.js +2 -0
  178. package/build/features/shared/ClearIcon/ClearIcon.d.ts +6 -0
  179. package/build/features/shared/ClearIcon/ClearIcon.js +26 -0
  180. package/build/features/shared/ClearIcon/index.d.ts +2 -0
  181. package/build/features/shared/ClearIcon/index.js +2 -0
  182. package/build/features/shared/Containers/FeatureContainer.d.ts +4 -0
  183. package/build/features/shared/Containers/FeatureContainer.js +33 -0
  184. package/build/features/shared/Containers/ScreenContainer.d.ts +4 -0
  185. package/build/features/shared/Containers/ScreenContainer.js +28 -0
  186. package/build/features/shared/Containers/index.d.ts +3 -0
  187. package/build/features/shared/Containers/index.js +3 -0
  188. package/build/features/shared/ExpandIcon/ExpandIcon.d.ts +7 -0
  189. package/build/features/shared/ExpandIcon/ExpandIcon.js +24 -0
  190. package/build/features/shared/ExpandIcon/index.d.ts +2 -0
  191. package/build/features/shared/ExpandIcon/index.js +2 -0
  192. package/build/features/shared/Footer/Footer.d.ts +2 -0
  193. package/build/features/shared/Footer/Footer.js +16 -0
  194. package/build/features/shared/Footer/index.d.ts +2 -0
  195. package/build/features/shared/Footer/index.js +2 -0
  196. package/build/features/shared/Input/Input.d.ts +27 -0
  197. package/build/features/shared/Input/Input.js +59 -0
  198. package/build/features/shared/Input/index.d.ts +2 -0
  199. package/build/features/shared/Input/index.js +2 -0
  200. package/build/features/shared/OTP/OTP.d.ts +9 -0
  201. package/build/features/shared/OTP/OTP.js +85 -0
  202. package/build/features/shared/OTP/index.d.ts +2 -0
  203. package/build/features/shared/OTP/index.js +2 -0
  204. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +8 -0
  205. package/build/features/shared/PasswordIcon/PasswordIcon.js +37 -0
  206. package/build/features/shared/PasswordIcon/index.d.ts +2 -0
  207. package/build/features/shared/PasswordIcon/index.js +2 -0
  208. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +7 -0
  209. package/build/features/shared/SuccessScreen/SuccessScreen.js +54 -0
  210. package/build/features/shared/SuccessScreen/index.d.ts +2 -0
  211. package/build/features/shared/SuccessScreen/index.js +2 -0
  212. package/build/features/tax/Tax.d.ts +6 -0
  213. package/build/features/tax/Tax.js +50 -0
  214. package/build/features/tax/index.d.ts +1 -0
  215. package/build/features/tax/index.js +1 -0
  216. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +5 -0
  217. package/build/features/tax/screens/TaxDetails/TaxDetails.js +45 -0
  218. package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -0
  219. package/build/features/tax/screens/TaxDetails/VATId.js +27 -0
  220. package/build/features/tax/screens/TaxDetails/index.d.ts +3 -0
  221. package/build/features/tax/screens/TaxDetails/index.js +2 -0
  222. package/build/features/tax/screens/TaxDetails/validation.d.ts +8 -0
  223. package/build/features/tax/screens/TaxDetails/validation.js +4 -0
  224. package/build/hooks/index.d.ts +1 -0
  225. package/build/hooks/index.js +1 -0
  226. package/build/hooks/useContainerDimensions.d.ts +4 -0
  227. package/build/hooks/useContainerDimensions.js +21 -0
  228. package/build/index.css +1 -1
  229. package/build/index.d.ts +7 -2
  230. package/build/index.js +17 -2
  231. package/build/theme/palette.js +10 -4
  232. package/build/theme/typography.js +2 -2
  233. package/build/utils/array.d.ts +3 -1
  234. package/build/utils/array.js +7 -3
  235. package/build/utils/string.d.ts +2 -0
  236. package/build/utils/string.js +11 -0
  237. package/build/utils/validation.d.ts +6 -0
  238. package/build/utils/validation.js +19 -1
  239. package/package.json +1 -1
  240. package/build/features/connect/Footer.d.ts +0 -4
  241. package/build/features/connect/Footer.js +0 -16
  242. package/build/features/connect/screens/OTP/OTPTimer.js +0 -35
@@ -0,0 +1,20 @@
1
+ import * as yup from 'yup';
2
+ export declare const CustomerInfoValidation: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
+ customerLocations: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
4
+ expectedCustomers: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
5
+ expectedSalesRange: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
6
+ refundPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
7
+ transactionPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
8
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
9
+ customerLocations: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
10
+ expectedCustomers: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
11
+ expectedSalesRange: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
12
+ refundPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
13
+ transactionPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
14
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
15
+ customerLocations: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
16
+ expectedCustomers: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
17
+ expectedSalesRange: import("yup/lib/array").RequiredArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined>;
18
+ refundPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
19
+ transactionPolicy: yup.BooleanSchema<boolean | undefined, import("yup/lib/types").AnyObject, true>;
20
+ }>>>;
@@ -0,0 +1,8 @@
1
+ import * as yup from 'yup';
2
+ export var CustomerInfoValidation = yup.object().shape({
3
+ customerLocations: yup.array().required(''),
4
+ expectedCustomers: yup.array().required(''),
5
+ expectedSalesRange: yup.array().required(''),
6
+ refundPolicy: yup.boolean().required().isTrue('Please accept the refund policy'),
7
+ transactionPolicy: yup.boolean().required().isTrue('Please accept the transaction policy')
8
+ });
@@ -17,18 +17,18 @@ import { useController, useFormContext } from 'react-hook-form';
17
17
  import { styled, alpha } from '@mui/material/styles';
18
18
  import Text from '../../../../components/Text';
19
19
  import DatePicker from '../../../../components/DatePicker';
20
- var BoxStyled = styled(Box)(function () { return ({
21
- display: 'flex',
22
- flexDirection: 'column'
23
- }); });
24
- var InputLabelStyled = styled(Text)(function (_a) {
20
+ var BoxStyled = styled(Box)(function (_a) {
25
21
  var theme = _a.theme;
26
22
  return ({
27
- color: alpha(theme.palette.text.primary, 0.4),
28
- fontSize: theme.spacing(1.5),
29
- cursor: 'pointer'
23
+ display: 'flex',
24
+ flexDirection: 'column',
25
+ direction: theme.direction
30
26
  });
31
27
  });
28
+ var InputLabelStyled = styled(Text)(function (_a) {
29
+ var theme = _a.theme;
30
+ return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption), { cursor: 'pointer' }));
31
+ });
32
32
  var BOD = function (_a) {
33
33
  var t = useTranslation().t;
34
34
  var control = useFormContext().control;
@@ -20,17 +20,18 @@ import Input from '../../../../components/Input';
20
20
  import ClearIcon from '@mui/icons-material/Clear';
21
21
  import { removeAllCharsFromNumber } from '../../../../utils';
22
22
  import { ID_NUMBER_LENGTH } from '../../../../constants';
23
- var BoxStyled = styled(Box)(function () { return ({
24
- display: 'flex',
25
- flexDirection: 'column'
26
- }); });
27
- var InputLabelStyled = styled(Text)(function (_a) {
23
+ var BoxStyled = styled(Box)(function (_a) {
28
24
  var theme = _a.theme;
29
25
  return ({
30
- color: alpha(theme.palette.text.primary, 0.4),
31
- fontSize: theme.spacing(1.5)
26
+ display: 'flex',
27
+ flexDirection: 'column',
28
+ direction: theme.direction
32
29
  });
33
30
  });
31
+ var InputLabelStyled = styled(Text)(function (_a) {
32
+ var theme = _a.theme;
33
+ return (__assign({ color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption));
34
+ });
34
35
  var InputStyled = styled(Input)(function (_a) {
35
36
  var theme = _a.theme;
36
37
  return ({
@@ -22,10 +22,10 @@ import { NIDValidationSchema } from './validation';
22
22
  import Loader from '../../../../components/Loader';
23
23
  import { ICONS_NAMES } from '../../../../constants';
24
24
  import Button from '../../../../components/Button';
25
- import { useAppDispatch, useAppSelector, useLanguage } from '../../../../hooks';
25
+ import { useAppDispatch, useLanguage } from '../../../../hooks';
26
+ import { handleNextScreenStep } from '../../../../app/settings';
26
27
  import Icon from '../../../../components/Icon';
27
28
  import Form from '../../../../components/Form';
28
- import { handleNextScreenStep, settingsSelector } from '../../../../app/settings';
29
29
  var BoxStyled = styled(Box)(function (_a) {
30
30
  var theme = _a.theme;
31
31
  return ({
@@ -48,7 +48,7 @@ var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop
48
48
  var ButtonContainer = styled(Box)(function (_a) {
49
49
  var theme = _a.theme;
50
50
  return ({
51
- margin: theme.spacing(2.5)
51
+ margin: theme.spacing(5, 2.5, 2.5, 2.5)
52
52
  });
53
53
  });
54
54
  var LoaderStyled = styled(Loader)(function (_a) {
@@ -67,8 +67,7 @@ var FormStyled = styled(Form)(function () { return ({
67
67
  var IDBOD = function (_a) {
68
68
  var isAr = useLanguage().isAr;
69
69
  var dispatch = useAppDispatch();
70
- var settingStore = useAppSelector(settingsSelector);
71
- var _b = useTranslation(), t = _b.t, i18n = _b.i18n;
70
+ var t = useTranslation().t;
72
71
  var methods = useForm({
73
72
  resolver: yupResolver(NIDValidationSchema),
74
73
  defaultValues: {
@@ -79,7 +78,7 @@ var IDBOD = function (_a) {
79
78
  });
80
79
  var onSubmit = function (data) {
81
80
  console.log('data', data);
82
- dispatch(handleNextScreenStep(settingStore.data.activeScreen));
81
+ dispatch(handleNextScreenStep());
83
82
  };
84
83
  return (_jsx(BoxStyled, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(ID, {}), _jsx(DOB, {}), _jsx(ButtonContainer, { children: _jsx(Button, __assign({ disabled: !methods.formState.isValid, type: 'submit', startIcon: _jsx(LoaderStyled, { innerColor: 'white', outerColor: 'white', size: 30 }), endIcon: _jsx(IconStyled, { isAr: isAr, src: ICONS_NAMES.WHITE_ARROW }) }, { children: t('next') })) })] })) })) }));
85
84
  };
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ export interface OTPProps {
3
+ idNumber?: string;
4
+ }
5
+ declare const _default: React.MemoExoticComponent<{
6
+ ({ idNumber }: OTPProps): JSX.Element;
7
+ defaultProps: {
8
+ idNumber: string;
9
+ };
10
+ }>;
11
+ export default _default;
@@ -0,0 +1,112 @@
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 Box from '@mui/material/Box/Box';
14
+ import { styled } from '@mui/material/styles';
15
+ import * as React from 'react';
16
+ import { useTranslation } from 'react-i18next';
17
+ import Text from '../../../../components/Text';
18
+ import OTPTimer from './OTPTimer';
19
+ import Icon from '../../../../components/Icon';
20
+ import Button from '../../../../components/Button';
21
+ import Loader from '../../../../components/Loader';
22
+ import { ICONS_NAMES } from '../../../../constants/assets';
23
+ import { useAppDispatch } from '../../../../hooks';
24
+ import { handleNextScreenStep } from '../../../../app/settings';
25
+ import { useLanguage } from '../../../../hooks';
26
+ import { useForm, FormProvider } from 'react-hook-form';
27
+ import { yupResolver } from '@hookform/resolvers/yup';
28
+ import Form from '../../../../components/Form';
29
+ import { maskID } from '../../../../utils';
30
+ import { OTPValidation } from './validation';
31
+ import OTPInput from './OTPInput';
32
+ var BoxStyled = styled(Box)(function (_a) {
33
+ var theme = _a.theme;
34
+ return ({
35
+ display: 'flex',
36
+ flexDirection: 'column',
37
+ overflow: 'hidden',
38
+ direction: theme.direction
39
+ });
40
+ });
41
+ var OTPTitleContainerStyled = styled(Box)(function (_a) {
42
+ var _b;
43
+ var theme = _a.theme;
44
+ return (_b = {
45
+ background: theme.palette.common.white,
46
+ border: '1px solid',
47
+ borderColor: theme.palette.divider,
48
+ direction: theme.direction,
49
+ borderRadius: theme.spacing(0, 0, 1.25, 1.25)
50
+ },
51
+ _b[theme.breakpoints.up('sm')] = {
52
+ marginBottom: theme.spacing(6)
53
+ },
54
+ _b);
55
+ });
56
+ var OTPTitleStyled = styled(Text)(function (_a) {
57
+ var theme = _a.theme;
58
+ return (__assign(__assign({}, theme.typography.body1), { fontWeight: theme.typography.fontWeightLight, color: theme.palette.text.primary, marginBlock: theme.spacing(1.75), marginInlineStart: theme.spacing(2.5) }));
59
+ });
60
+ var LoaderStyled = styled(Loader)(function (_a) {
61
+ var theme = _a.theme;
62
+ return ({
63
+ marginInlineStart: theme.spacing(-6.25),
64
+ '& .loader-box-container': {
65
+ marginInlineStart: theme.spacing(2.5)
66
+ }
67
+ });
68
+ });
69
+ var FormStyled = styled(Form)(function () { return ({
70
+ display: 'flex',
71
+ flexDirection: 'column'
72
+ }); });
73
+ var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
74
+ var theme = _a.theme, isAr = _a.isAr;
75
+ return ({
76
+ width: theme.spacing(3),
77
+ height: theme.spacing(3),
78
+ paddingInlineStart: theme.spacing(1.5),
79
+ paddingInlineEnd: theme.spacing(0.5),
80
+ transform: isAr ? 'scaleX(-1)' : 'scaleX(1)'
81
+ });
82
+ });
83
+ var ButtonContainer = styled(Box)(function (_a) {
84
+ var theme = _a.theme;
85
+ return ({
86
+ margin: theme.spacing(2.5)
87
+ });
88
+ });
89
+ var OTP = function (_a) {
90
+ var idNumber = _a.idNumber;
91
+ var dispatch = useAppDispatch();
92
+ var methods = useForm({
93
+ resolver: yupResolver(OTPValidation),
94
+ defaultValues: {
95
+ otp: ''
96
+ },
97
+ mode: 'onChange'
98
+ });
99
+ var t = useTranslation().t;
100
+ var isAr = useLanguage().isAr;
101
+ var onSubmit = function (data) {
102
+ console.log('data', data);
103
+ if (data.otp === '123456')
104
+ return dispatch(handleNextScreenStep('BUSINESS_IDBOD_STEP'));
105
+ dispatch(handleNextScreenStep('BUSINESS_BUSINESS_TYPE_STEP'));
106
+ };
107
+ return (_jsx(BoxStyled, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [t('opt_nid_sent_title'), " ", _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskID(idNumber || '')) }))] }) }), _jsx(OTPInput, {}), _jsx(OTPTimer, {}), _jsx(ButtonContainer, { children: _jsx(Button, __assign({ disabled: !methods.formState.isValid, type: 'submit', startIcon: _jsx(LoaderStyled, { innerColor: 'white', outerColor: 'white', size: 30 }), endIcon: _jsx(IconStyled, { isAr: isAr, src: ICONS_NAMES.WHITE_ARROW }) }, { children: t('next') })) })] })) })) }));
108
+ };
109
+ OTP.defaultProps = {
110
+ idNumber: '1234567891'
111
+ };
112
+ export default React.memo(OTP);
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface OTPProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: OTPProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,51 @@
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 Box from '@mui/material/Box/Box';
14
+ import { styled } from '@mui/material/styles';
15
+ import OTPField from '../../../../components/OTPField';
16
+ import * as React from 'react';
17
+ import { useController, useFormContext } from 'react-hook-form';
18
+ var BoxStyled = styled(Box)(function (_a) {
19
+ var theme = _a.theme;
20
+ return ({
21
+ display: 'flex',
22
+ flexDirection: 'column'
23
+ });
24
+ });
25
+ var OTPStyled = styled(OTPField)(function (_a) {
26
+ var _b;
27
+ var theme = _a.theme;
28
+ return (_b = {
29
+ marginInlineStart: theme.spacing(2.0),
30
+ input: {
31
+ width: "".concat(theme.spacing(3.75), " !important")
32
+ },
33
+ '& :focus': {
34
+ borderColor: theme.palette.primary.main
35
+ }
36
+ },
37
+ _b[theme.breakpoints.down('sm')] = {
38
+ marginInlineStart: theme.spacing(3)
39
+ },
40
+ _b);
41
+ });
42
+ var OTPInput = function (_a) {
43
+ var control = useFormContext().control;
44
+ var otpControl = useController({ name: 'otp', control: control });
45
+ var handleOnOTPChange = function (otp) {
46
+ otpControl.field.onChange(otp);
47
+ };
48
+ var otpValue = otpControl.field.value;
49
+ return (_jsx(BoxStyled, __assign({ dir: 'ltr' }, { children: _jsx(OTPStyled, { value: otpValue, onChange: function (number) { return handleOnOTPChange(number.toString()); } }) })));
50
+ };
51
+ export default React.memo(OTPInput);
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import Box from '@mui/material/Box/Box';
4
+ import { styled } from '@mui/material/styles';
5
+ import { useTranslation } from 'react-i18next';
6
+ import OTPTimer from '../../../../components/OTPTimer';
7
+ import { DEFAULT_TIMER_VALUE } from '../../../../constants';
8
+ var BoxStyled = styled(Box)(function (_a) {
9
+ var theme = _a.theme;
10
+ return ({
11
+ display: 'flex',
12
+ flexDirection: 'column',
13
+ padding: theme.spacing(2.5, 0, 6.5, 0)
14
+ });
15
+ });
16
+ var Timer = function (_a) {
17
+ var t = useTranslation().t;
18
+ return (_jsx(BoxStyled, { children: _jsx(OTPTimer, { timeEndLabel: t('resend_otp'), timeInSeconds: DEFAULT_TIMER_VALUE, onResetClick: function () { } }) }));
19
+ };
20
+ export default React.memo(Timer);
@@ -0,0 +1,3 @@
1
+ import OTP, { OTPProps } from './OTP';
2
+ export type { OTPProps };
3
+ export default OTP;
@@ -0,0 +1,2 @@
1
+ import OTP from './OTP';
2
+ export default OTP;
@@ -0,0 +1,8 @@
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
+ }>>>;
@@ -0,0 +1,4 @@
1
+ import * as yup from 'yup';
2
+ export var OTPValidation = yup.object().shape({
3
+ otp: yup.string().min(6).required('OTP is required')
4
+ });
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface SuccessProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: SuccessProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { useTranslation } from 'react-i18next';
4
+ import SuccessScreen from '../../../shared/SuccessScreen';
5
+ var Success = function (_a) {
6
+ var t = useTranslation().t;
7
+ var onSuccess = function () {
8
+ console.log('success');
9
+ alert('Account created successfully, please check your email');
10
+ alert("It's a fake message, plz wait us to integrate with the backend. <A.Sharkawy>");
11
+ window.location.href = '/new/business';
12
+ };
13
+ return _jsx(SuccessScreen, { title: t('success_message'), onSuccess: onSuccess });
14
+ };
15
+ export default React.memo(Success);
@@ -0,0 +1,3 @@
1
+ import Success, { SuccessProps } from './Success';
2
+ export type { SuccessProps };
3
+ export default Success;
@@ -0,0 +1,2 @@
1
+ import Success from './Success';
2
+ export default Success;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export interface OTPProps {
3
+ onOTPChange?: (otp: string) => void;
4
+ }
5
+ declare const _default: React.MemoExoticComponent<({ onOTPChange }: OTPProps) => JSX.Element>;
6
+ export default _default;
@@ -0,0 +1,68 @@
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 Box from '@mui/material/Box/Box';
14
+ import { styled } from '@mui/material/styles';
15
+ import OTPField from '../../../../components/OTPField';
16
+ import * as React from 'react';
17
+ import { useForm, FormProvider, useController, useFormContext } from 'react-hook-form';
18
+ import { yupResolver } from '@hookform/resolvers/yup';
19
+ import { OTPValidation } from './validation';
20
+ var BoxStyled = styled(Box)(function (_a) {
21
+ var _b;
22
+ var theme = _a.theme;
23
+ return (_b = {
24
+ display: 'flex',
25
+ flexDirection: 'column',
26
+ direction: theme.direction
27
+ },
28
+ _b[theme.breakpoints.down('sm')] = {
29
+ paddingTop: theme.spacing(2.5)
30
+ },
31
+ _b);
32
+ });
33
+ var OTPStyled = styled(OTPField)(function (_a) {
34
+ var _b;
35
+ var theme = _a.theme;
36
+ return (_b = {
37
+ marginInlineStart: theme.spacing(2.0),
38
+ input: {
39
+ width: "".concat(theme.spacing(3.75), " !important")
40
+ },
41
+ '& :focus': {
42
+ borderColor: theme.palette.primary.main
43
+ }
44
+ },
45
+ _b[theme.breakpoints.down('sm')] = {
46
+ marginInlineStart: theme.spacing(3)
47
+ },
48
+ _b);
49
+ });
50
+ var OTPInput = function (_a) {
51
+ var onOTPChange = _a.onOTPChange;
52
+ var methods = useForm({
53
+ resolver: yupResolver(OTPValidation),
54
+ defaultValues: {
55
+ otp: ''
56
+ },
57
+ mode: 'onChange'
58
+ });
59
+ var control = useFormContext().control;
60
+ var otpControl = useController({ name: 'otp', control: control });
61
+ var handleOnOTPChange = function (otp) {
62
+ otpControl.field.onChange(otp);
63
+ onOTPChange === null || onOTPChange === void 0 ? void 0 : onOTPChange(otp);
64
+ };
65
+ var otpValue = otpControl.field.value;
66
+ return (_jsx(BoxStyled, __assign({ dir: 'ltr' }, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsx(OTPStyled, { value: otpValue, onChange: function (number) { return handleOnOTPChange(number.toString()); } }) })) })));
67
+ };
68
+ export default React.memo(OTPInput);
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface TimerProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: TimerProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import Box from '@mui/material/Box/Box';
4
+ import { styled } from '@mui/material/styles';
5
+ import { useTranslation } from 'react-i18next';
6
+ import OTPTimer from '../../../../components/OTPTimer';
7
+ import { DEFAULT_TIMER_VALUE } from '../../../../constants';
8
+ var BoxStyled = styled(Box)(function (_a) {
9
+ var theme = _a.theme;
10
+ return ({
11
+ display: 'flex',
12
+ flexDirection: 'column',
13
+ padding: theme.spacing(2.5, 0, 3.75, 0)
14
+ });
15
+ });
16
+ var Timer = function (_a) {
17
+ var t = useTranslation().t;
18
+ return (_jsx(BoxStyled, { children: _jsx(OTPTimer, { timeEndLabel: t('resend_otp'), timeInSeconds: DEFAULT_TIMER_VALUE, onResetClick: function () { } }) }));
19
+ };
20
+ export default React.memo(Timer);
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ export interface OTPProps {
3
+ phone?: string;
4
+ code?: string;
5
+ }
6
+ declare const _default: React.MemoExoticComponent<{
7
+ ({ phone, code }: OTPProps): JSX.Element;
8
+ defaultProps: {
9
+ phone: string;
10
+ code: string;
11
+ };
12
+ }>;
13
+ export default _default;
@@ -0,0 +1,119 @@
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 Box from '@mui/material/Box/Box';
14
+ import { styled } from '@mui/material/styles';
15
+ import * as React from 'react';
16
+ import { useTranslation } from 'react-i18next';
17
+ import Text from '../../../../components/Text';
18
+ import OTPTimer from './OTPTimer';
19
+ import Icon from '../../../../components/Icon';
20
+ import Button from '../../../../components/Button';
21
+ import Loader from '../../../../components/Loader';
22
+ import { ICONS_NAMES } from '../../../../constants/assets';
23
+ import { useAppDispatch } from '../../../../hooks';
24
+ import { handleNextScreenStep } from '../../../../app/settings';
25
+ import { useLanguage } from '../../../../hooks';
26
+ import { useForm, FormProvider } from 'react-hook-form';
27
+ import { yupResolver } from '@hookform/resolvers/yup';
28
+ import Form from '../../../../components/Form';
29
+ import { maskPhone } from '../../../../utils';
30
+ import { OTPValidation } from './validation';
31
+ import OTPInput from './OTPInput';
32
+ var BoxStyled = styled(Box)(function (_a) {
33
+ var theme = _a.theme;
34
+ return ({
35
+ display: 'flex',
36
+ flexDirection: 'column',
37
+ overflow: 'hidden',
38
+ direction: theme.direction
39
+ });
40
+ });
41
+ var InputsContainerStyled = styled(Box)(function (_a) {
42
+ var theme = _a.theme;
43
+ return ({
44
+ paddingBottom: theme.spacing(3.75)
45
+ });
46
+ });
47
+ var OTPTitleContainerStyled = styled(Box)(function (_a) {
48
+ var _b;
49
+ var theme = _a.theme;
50
+ return (_b = {
51
+ background: theme.palette.common.white,
52
+ border: '1px solid',
53
+ borderColor: theme.palette.divider,
54
+ direction: theme.direction,
55
+ borderRadius: theme.spacing(0, 0, 1.25, 1.25)
56
+ },
57
+ _b[theme.breakpoints.up('sm')] = {
58
+ marginBottom: theme.spacing(6)
59
+ },
60
+ _b);
61
+ });
62
+ var OTPTitleStyled = styled(Text)(function (_a) {
63
+ var theme = _a.theme;
64
+ return (__assign(__assign({}, theme.typography.body1), { fontWeight: theme.typography.fontWeightLight, color: theme.palette.text.primary, marginBlock: theme.spacing(1.75), marginInlineStart: theme.spacing(2.5) }));
65
+ });
66
+ var LoaderStyled = styled(Loader)(function (_a) {
67
+ var theme = _a.theme;
68
+ return ({
69
+ marginInlineStart: theme.spacing(-6.25),
70
+ '& .loader-box-container': {
71
+ marginInlineStart: theme.spacing(2.5)
72
+ }
73
+ });
74
+ });
75
+ var FormStyled = styled(Form)(function () { return ({
76
+ display: 'flex',
77
+ flexDirection: 'column'
78
+ }); });
79
+ var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
80
+ var theme = _a.theme, isAr = _a.isAr;
81
+ return ({
82
+ width: theme.spacing(3),
83
+ height: theme.spacing(3),
84
+ paddingInlineStart: theme.spacing(1.5),
85
+ paddingInlineEnd: theme.spacing(0.5),
86
+ transform: isAr ? 'scaleX(-1)' : 'scaleX(1)'
87
+ });
88
+ });
89
+ var ButtonContainer = styled(Box)(function (_a) {
90
+ var theme = _a.theme;
91
+ return ({
92
+ margin: theme.spacing(2.5)
93
+ });
94
+ });
95
+ var VerifyNumber = function (_a) {
96
+ var phone = _a.phone, code = _a.code;
97
+ var dispatch = useAppDispatch();
98
+ var methods = useForm({
99
+ resolver: yupResolver(OTPValidation),
100
+ defaultValues: {
101
+ otp: ''
102
+ },
103
+ mode: 'onChange'
104
+ });
105
+ var t = useTranslation().t;
106
+ var isAr = useLanguage().isAr;
107
+ var onSubmit = function (data) {
108
+ console.log('data', data);
109
+ if (data.otp === '123456')
110
+ return dispatch(handleNextScreenStep('BUSINESS_IDBOD_STEP'));
111
+ dispatch(handleNextScreenStep('BUSINESS_BUSINESS_TYPE_STEP'));
112
+ };
113
+ return (_jsx(BoxStyled, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(InputsContainerStyled, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [t('service_otp_send_title'), " ", _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(code, " ").concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, {}), _jsx(OTPTimer, {})] }), _jsx(ButtonContainer, { children: _jsx(Button, __assign({ disabled: !methods.formState.isValid, type: 'submit', startIcon: _jsx(LoaderStyled, { innerColor: 'white', outerColor: 'white', size: 30 }), endIcon: _jsx(IconStyled, { isAr: isAr, src: ICONS_NAMES.WHITE_ARROW }) }, { children: t('next') })) })] })) })) }));
114
+ };
115
+ VerifyNumber.defaultProps = {
116
+ phone: '8940298292',
117
+ code: '+91'
118
+ };
119
+ export default React.memo(VerifyNumber);
@@ -0,0 +1,3 @@
1
+ import OTP, { OTPProps } from './VerifyNumber';
2
+ export type { OTPProps };
3
+ export default OTP;
@@ -0,0 +1,2 @@
1
+ import OTP from './VerifyNumber';
2
+ export default OTP;
@@ -0,0 +1,8 @@
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
+ }>>>;