@tap-payments/auth-jsconnect 2.0.54-test → 2.0.55-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/app.d.ts +39 -14
- package/build/@types/app.js +9 -0
- package/build/@types/form.d.ts +11 -0
- package/build/api/account.js +1 -1
- package/build/api/auth.d.ts +15 -2
- package/build/api/auth.js +25 -2
- package/build/api/availabilityServices.js +1 -1
- package/build/api/axios.js +4 -4
- package/build/api/board.js +1 -1
- package/build/api/brand.d.ts +1 -1
- package/build/api/brand.js +1 -1
- package/build/api/country.js +1 -1
- package/build/api/data.d.ts +33 -7
- package/build/api/data.js +42 -17
- package/build/api/entity.d.ts +2 -0
- package/build/api/entity.js +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/individual.d.ts +1 -1
- package/build/api/individual.js +1 -1
- package/build/api/ip.js +1 -1
- package/build/api/lead.d.ts +1 -1
- package/build/api/lead.js +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.js +1 -1
- package/build/app/rootReducer.d.ts +10 -7
- package/build/app/rootReducer.js +14 -8
- package/build/app/settings.d.ts +2 -2
- package/build/app/settings.js +11 -5
- package/build/app/store.d.ts +6 -0
- package/build/assets/locales/ar.json +14 -4
- package/build/assets/locales/en.json +14 -4
- package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -1
- package/build/components/AnimationFlow/AnimationFlow.js +5 -7
- package/build/components/AnimationFlow/BottomSheet.js +2 -1
- package/build/components/AnimationFlow/Dialog.d.ts +4 -1
- package/build/components/AnimationFlow/Dialog.js +10 -5
- package/build/components/DatePicker/DatePicker.js +3 -3
- package/build/components/FileInput/DragAndDrop.d.ts +9 -1
- package/build/components/FileInput/DragAndDrop.js +115 -10
- package/build/components/FileInput/UploadInput.js +2 -2
- package/build/components/Footer/Footer.js +3 -3
- package/build/components/Input/Input.js +2 -2
- package/build/components/Lottie/Lottie.d.ts +878 -0
- package/build/components/Lottie/Lottie.js +58 -0
- package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
- package/build/components/Lottie/files/success.json +425 -0
- package/build/components/Lottie/index.d.ts +3 -0
- package/build/components/Lottie/index.js +3 -0
- package/build/components/OTPTimer/OTPTimer.js +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -0
- package/build/components/ProgressBar/CircularProgressBar.js +48 -0
- package/build/components/ProgressBar/index.d.ts +2 -0
- package/build/components/ProgressBar/index.js +2 -0
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +3 -2
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +29 -36
- package/build/constants/api.d.ts +1 -0
- package/build/constants/api.js +10 -7
- package/build/constants/app.d.ts +16 -1
- package/build/constants/app.js +76 -4
- package/build/constants/assets.d.ts +17 -1
- package/build/constants/assets.js +22 -6
- package/build/constants/validation.d.ts +1 -0
- package/build/constants/validation.js +1 -0
- package/build/features/app/auth/authStore.d.ts +35 -0
- package/build/features/app/auth/authStore.js +148 -0
- package/build/features/app/bank/bankStore.d.ts +6 -2
- package/build/features/app/bank/bankStore.js +46 -26
- package/build/features/app/business/businessStore.d.ts +2 -2
- package/build/features/app/business/businessStore.js +58 -48
- package/build/features/app/connect/connectStore.d.ts +14 -2
- package/build/features/app/connect/connectStore.js +170 -10
- package/build/features/app/entity/entityStore.d.ts +53 -0
- package/build/features/app/entity/entityStore.js +461 -0
- package/build/features/app/individual/individualStore.d.ts +2 -2
- package/build/features/app/individual/individualStore.js +23 -15
- package/build/features/app/otp/otpStore.d.ts +28 -0
- package/build/features/app/otp/otpStore.js +153 -0
- package/build/features/app/password/passwordStore.d.ts +2 -2
- package/build/features/app/password/passwordStore.js +4 -4
- package/build/features/app/signIn/signInStore.d.ts +2 -2
- package/build/features/app/signIn/signInStore.js +6 -6
- package/build/features/app/tax/taxStore.d.ts +2 -2
- package/build/features/app/tax/taxStore.js +5 -5
- package/build/features/auth/Auth.d.ts +10 -0
- package/build/features/auth/Auth.js +87 -0
- package/build/features/auth/index.d.ts +1 -0
- package/build/features/auth/index.js +1 -0
- package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTP.js +72 -0
- package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTPInput.js +44 -0
- package/build/features/auth/screens/OTP/index.d.ts +3 -0
- package/build/features/auth/screens/OTP/index.js +2 -0
- package/build/features/auth/screens/OTP/validation.d.ts +8 -0
- package/build/features/auth/screens/OTP/validation.js +4 -0
- package/build/features/bank/Bank.d.ts +1 -1
- package/build/features/bank/Bank.js +18 -12
- package/build/features/bank/screens/BankDetails/BankDetails.js +9 -9
- package/build/features/bank/screens/BankDetails/BankName.js +8 -8
- package/build/features/bank/screens/BankDetails/BankStatement.js +35 -10
- package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
- package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
- package/build/features/bank/screens/BankDetails/validation.js +1 -1
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/bank/screens/Success/Success.js +3 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/bank/screens/Verify/OTPInput.js +4 -4
- package/build/features/bank/screens/Verify/Verify.js +9 -9
- package/build/features/business/Business.d.ts +2 -2
- package/build/features/business/Business.js +20 -13
- package/build/features/business/screens/Activities/Activities.js +7 -7
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
- package/build/features/business/screens/Activities/LicenseName.js +6 -6
- package/build/features/business/screens/Activities/OperationStartDate.js +4 -4
- package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
- package/build/features/business/screens/Activities/SalesChannels.js +8 -8
- package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
- package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
- package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
- package/build/features/business/screens/BusinessType/SelectType.js +6 -6
- package/build/features/business/screens/BusinessType/validation.js +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +3 -3
- package/build/features/business/screens/Customers/CustomerLocations.js +33 -15
- package/build/features/business/screens/Customers/Customers.js +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +22 -10
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +39 -21
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
- package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
- package/build/features/business/screens/IDBOD/DOB.js +5 -5
- package/build/features/business/screens/IDBOD/ID.js +6 -6
- package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
- package/build/features/business/screens/OTP/OTP.js +9 -9
- package/build/features/business/screens/OTP/OTPInput.js +4 -4
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/business/screens/Success/Success.js +3 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/business/screens/Verify/OTPInput.js +4 -4
- package/build/features/business/screens/Verify/Verify.js +9 -9
- package/build/features/connect/Connect.d.ts +3 -2
- package/build/features/connect/Connect.js +46 -16
- package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connect/screens/CivilID/CivilID.js +85 -0
- package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
- package/build/features/connect/screens/CivilID/index.d.ts +3 -0
- package/build/features/connect/screens/CivilID/index.js +2 -0
- package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
- package/build/features/connect/screens/CivilID/validation.js +4 -0
- package/build/features/connect/screens/Individual/Email.js +7 -7
- package/build/features/connect/screens/Individual/Individual.js +14 -10
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
- package/build/features/connect/screens/Individual/Name.js +6 -6
- package/build/features/connect/screens/Individual/validation.js +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +8 -8
- package/build/features/connect/screens/Merchant/BrandName.js +10 -10
- package/build/features/connect/screens/Merchant/Merchant.js +42 -18
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +5 -0
- package/build/features/connect/screens/Merchant/SalesChannels.js +114 -0
- package/build/features/connect/screens/Merchant/SocialMedia.js +65 -20
- package/build/features/connect/screens/Merchant/TAC.js +7 -7
- package/build/features/connect/screens/Merchant/validation.d.ts +87 -0
- package/build/features/connect/screens/Merchant/validation.js +69 -3
- package/build/features/connect/screens/Mobile/Mobile.js +16 -13
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/connect/screens/Mobile/Title.js +2 -2
- package/build/features/connect/screens/NID/DOB.js +5 -5
- package/build/features/connect/screens/NID/IDNumber.js +8 -8
- package/build/features/connect/screens/NID/NID.js +8 -8
- package/build/features/connect/screens/OTP/OTP.js +9 -9
- package/build/features/connect/screens/OTP/OTPInput.js +4 -4
- package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +169 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +22 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +8 -0
- package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/connect/screens/VerifyPACI/index.js +2 -0
- package/build/features/entity/Entity.d.ts +7 -0
- package/build/features/entity/Entity.js +70 -0
- package/build/features/entity/index.d.ts +1 -0
- package/build/features/entity/index.js +1 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +54 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +139 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +56 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +17 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +28 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +6 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +38 -0
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +112 -0
- package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/index.js +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +107 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.js +17 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/entity/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/entity/screens/Success/Success.d.ts +5 -0
- package/build/features/entity/screens/Success/Success.js +16 -0
- package/build/features/entity/screens/Success/index.d.ts +3 -0
- package/build/features/entity/screens/Success/index.js +2 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +109 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/entity/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/entity/screens/Verify/OTPInput.js +47 -0
- package/build/features/entity/screens/Verify/Verify.d.ts +5 -0
- package/build/features/entity/screens/Verify/Verify.js +78 -0
- package/build/features/entity/screens/Verify/index.d.ts +2 -0
- package/build/features/entity/screens/Verify/index.js +2 -0
- package/build/features/entity/screens/Verify/validation.d.ts +8 -0
- package/build/features/entity/screens/Verify/validation.js +4 -0
- package/build/features/featuresScreens.d.ts +4 -1
- package/build/features/featuresScreens.js +88 -40
- package/build/features/individual/Individual.d.ts +2 -2
- package/build/features/individual/Individual.js +20 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +9 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +23 -12
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
- package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
- package/build/features/individual/screens/Success/Success.js +3 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/individual/screens/Verify/OTPInput.js +4 -4
- package/build/features/individual/screens/Verify/Verify.js +9 -9
- package/build/features/otp/OTP.d.ts +7 -0
- package/build/features/otp/OTP.js +58 -0
- package/build/features/otp/index.d.ts +0 -0
- package/build/features/otp/index.js +1 -0
- package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +6 -0
- package/build/features/otp/screens/OTPVerify/OTPInput.js +47 -0
- package/build/features/otp/screens/OTPVerify/Verify.d.ts +5 -0
- package/build/features/otp/screens/OTPVerify/Verify.js +49 -0
- package/build/features/otp/screens/OTPVerify/index.d.ts +2 -0
- package/build/features/otp/screens/OTPVerify/index.js +2 -0
- package/build/features/otp/screens/OTPVerify/validation.d.ts +8 -0
- package/build/features/otp/screens/OTPVerify/validation.js +4 -0
- package/build/features/password/Password.d.ts +2 -2
- package/build/features/password/Password.js +20 -13
- package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
- package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
- package/build/features/password/screens/CreatePassword/Password.js +6 -6
- package/build/features/password/screens/OTP/OTP.js +9 -9
- package/build/features/password/screens/OTP/OTPInput.js +4 -4
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/password/screens/Success/Success.js +4 -4
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/password/screens/Verify/OTPInput.js +4 -4
- package/build/features/password/screens/Verify/Verify.js +9 -9
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
- package/build/features/shared/Background/Background.d.ts +7 -5
- package/build/features/shared/Background/Background.js +16 -5
- package/build/features/shared/Background/LogoBackground.js +3 -3
- package/build/features/shared/Button/AbsherButton.d.ts +1 -1
- package/build/features/shared/Button/AbsherButton.js +3 -3
- package/build/features/shared/Button/Button.d.ts +1 -1
- package/build/features/shared/Button/Button.js +7 -7
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/EmailProvidersButtons.js +2 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
- package/build/features/shared/Button/FlowsButtons.js +6 -6
- package/build/features/shared/Button/MobileButton.d.ts +1 -1
- package/build/features/shared/Button/MobileButton.js +3 -3
- package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
- package/build/features/shared/Dialog/CloseDialog.js +62 -0
- package/build/features/shared/Dialog/DialogContainer.d.ts +8 -0
- package/build/features/shared/Dialog/DialogContainer.js +56 -0
- package/build/features/shared/Dialog/index.d.ts +4 -0
- package/build/features/shared/Dialog/index.js +4 -0
- package/build/features/shared/Footer/Footer.js +4 -4
- package/build/features/shared/Input/Input.d.ts +2 -2
- package/build/features/shared/Input/Input.js +4 -4
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/OTP/OTP.js +3 -3
- package/build/features/shared/Search/Search.js +1 -1
- package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
- package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
- package/build/features/shared/UploadFile/UploadFile.js +27 -12
- package/build/features/signIn/SignIn.d.ts +2 -2
- package/build/features/signIn/SignIn.js +21 -13
- package/build/features/signIn/screens/Email/Email.js +8 -8
- package/build/features/signIn/screens/Email/EmailField.js +5 -5
- package/build/features/signIn/screens/Email/validation.js +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
- package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/signIn/screens/OTP/OTP.js +9 -9
- package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
- package/build/features/signIn/screens/Password/Password.js +7 -7
- package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
- package/build/features/tax/Tax.d.ts +2 -2
- package/build/features/tax/Tax.js +21 -13
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/tax/screens/Success/Success.js +3 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -6
- package/build/features/tax/screens/TaxDetails/VATId.js +5 -5
- package/build/features/tax/screens/Verify/OTPInput.js +4 -4
- package/build/features/tax/screens/Verify/Verify.js +9 -9
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +6 -4
- package/build/hooks/useAppDispatch.d.ts +3 -0
- package/build/hooks/useAppSelector.d.ts +1 -1
- package/build/hooks/useAppTheme.d.ts +1 -1
- package/build/hooks/useAppTheme.js +3 -3
- package/build/hooks/useErrorListener.js +4 -3
- package/build/hooks/useLanguage.js +1 -1
- package/build/hooks/useRedirectionListener.js +1 -1
- package/build/hooks/useScreen.d.ts +3 -0
- package/build/hooks/useScreen.js +14 -0
- package/build/hooks/useStepStartedListener.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index.d.ts +12 -9
- package/build/index.js +18 -9
- package/build/theme/theme.d.ts +1 -1
- package/build/utils/array.d.ts +1 -1
- package/build/utils/device.d.ts +1 -0
- package/build/utils/device.js +13 -0
- package/build/utils/html.d.ts +1 -0
- package/build/utils/html.js +6 -0
- package/build/utils/locale.d.ts +1 -1
- package/build/utils/locale.js +2 -2
- package/build/utils/rsa.d.ts +2 -2
- package/build/utils/rsa.js +2 -2
- package/build/utils/string.d.ts +23 -21
- package/build/utils/string.js +13 -4
- package/package.json +1 -1
- package/build/api/index.d.ts +0 -83
- package/build/components/DatePicker/customStyle.css +0 -86
- package/build/index.css +0 -140
|
@@ -14,17 +14,28 @@ import { memo } from 'react';
|
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
15
|
import Box from '@mui/material/Box';
|
|
16
16
|
import LogoBackground from './LogoBackground';
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
import { BACKGROUND_ID } from '@src/constants';
|
|
18
|
+
import { useScreen } from '@hooks';
|
|
19
|
+
var BackgroundStyled = styled(Box, {
|
|
20
|
+
shouldForwardProp: function (prop) { return !['isTapOrigin', 'open', 'isSmall'].includes(prop); }
|
|
21
|
+
})(function (_a) {
|
|
22
|
+
var isTapOrigin = _a.isTapOrigin, open = _a.open, isSmall = _a.isSmall;
|
|
19
23
|
return ({
|
|
20
24
|
width: '100vw',
|
|
21
25
|
height: '100vh',
|
|
22
|
-
|
|
26
|
+
zIndex: isSmall ? 'auto' : 999,
|
|
27
|
+
position: 'absolute',
|
|
28
|
+
background: !open
|
|
29
|
+
? 'inherit'
|
|
30
|
+
: isTapOrigin
|
|
31
|
+
? 'linear-gradient(180deg, #98ABAF 0%, #D9D6CC 100%)'
|
|
32
|
+
: 'rgba(0, 0, 0, 0.5)'
|
|
23
33
|
});
|
|
24
34
|
});
|
|
25
35
|
var Background = function (_a) {
|
|
26
|
-
var children = _a.children, isTapOrigin = _a.isTapOrigin, loading = _a.loading;
|
|
36
|
+
var children = _a.children, isTapOrigin = _a.isTapOrigin, loading = _a.loading, hideLogo = _a.hideLogo, sx = _a.sx, open = _a.open;
|
|
27
37
|
var showLogo = !loading && isTapOrigin;
|
|
28
|
-
|
|
38
|
+
var small = useScreen().small;
|
|
39
|
+
return (_jsxs(BackgroundStyled, __assign({ id: BACKGROUND_ID, isSmall: small, isTapOrigin: isTapOrigin, sx: sx, open: open }, { children: [showLogo && !hideLogo && _jsx(LogoBackground, {}), children] })));
|
|
29
40
|
};
|
|
30
41
|
export default memo(Background);
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import { styled } from '@mui/material/styles';
|
|
4
4
|
import Box from '@mui/material/Box';
|
|
5
|
-
import Icon from '
|
|
6
|
-
import { ICONS_NAMES } from '
|
|
7
|
-
import { useLanguage } from '
|
|
5
|
+
import Icon from '@components/Icon';
|
|
6
|
+
import { ICONS_NAMES } from '@constants';
|
|
7
|
+
import { useLanguage } from '@hooks';
|
|
8
8
|
var BoxStyled = styled(Box)(function (_a) {
|
|
9
9
|
var _b;
|
|
10
10
|
var theme = _a.theme;
|
|
@@ -21,11 +21,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import Button from '
|
|
25
|
-
import Icon from '
|
|
24
|
+
import Button from '@components/Button';
|
|
25
|
+
import Icon from '@components/Icon';
|
|
26
26
|
import { styled, useTheme } from '@mui/material/styles';
|
|
27
27
|
import Box from '@mui/material/Box';
|
|
28
|
-
import { ICONS_NAMES } from '
|
|
28
|
+
import { ICONS_NAMES } from '@constants';
|
|
29
29
|
var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'disabled'; } })(function (_a) {
|
|
30
30
|
var theme = _a.theme, disabled = _a.disabled;
|
|
31
31
|
return (__assign({ width: theme.spacing(3), height: theme.spacing(3), marginInlineStart: theme.spacing(0.75) }, (disabled && {
|
|
@@ -22,15 +22,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import React, { Fragment } from 'react';
|
|
25
|
-
import Button from '
|
|
26
|
-
import Icon from '
|
|
25
|
+
import Button from '@components/Button';
|
|
26
|
+
import Icon from '@components/Icon';
|
|
27
27
|
import { styled } from '@mui/material/styles';
|
|
28
|
-
import Loader from '
|
|
29
|
-
import { ICONS_NAMES } from '
|
|
30
|
-
import Warning from '
|
|
31
|
-
import Collapse from '
|
|
28
|
+
import Loader from '@components/Loader';
|
|
29
|
+
import { ICONS_NAMES } from '@constants';
|
|
30
|
+
import Warning from '@components/Warning';
|
|
31
|
+
import Collapse from '@components/Collapse';
|
|
32
32
|
import Box from '@mui/material/Box';
|
|
33
|
-
import Text from '
|
|
33
|
+
import Text from '@components/Text';
|
|
34
34
|
var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
|
|
35
35
|
var theme = _a.theme, isAr = _a.isAr;
|
|
36
36
|
return ({
|
|
@@ -10,11 +10,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import Button from '
|
|
13
|
+
import Button from '@components/Button';
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
15
|
import Box from '@mui/material/Box';
|
|
16
16
|
import Link from '@mui/material/Link';
|
|
17
|
-
import { ICONS_NAMES } from '
|
|
17
|
+
import { ICONS_NAMES } from '@constants';
|
|
18
18
|
var Image = styled('img')(function (_a) {
|
|
19
19
|
var theme = _a.theme;
|
|
20
20
|
return ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ButtonProps } from '
|
|
2
|
+
import { ButtonProps } from '@components/Button';
|
|
3
3
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
4
|
-
import { FlowsTypes } from '
|
|
4
|
+
import { FlowsTypes } from '@types';
|
|
5
5
|
export declare type ButtonItemProps = {
|
|
6
6
|
name: string;
|
|
7
7
|
status: string;
|
|
@@ -47,16 +47,16 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
49
49
|
import { useState } from 'react';
|
|
50
|
-
import Button from '
|
|
50
|
+
import Button from '@components/Button';
|
|
51
51
|
import { alpha, styled } from '@mui/material/styles';
|
|
52
52
|
import Box from '@mui/material/Box';
|
|
53
53
|
import Link from '@mui/material/Link';
|
|
54
|
-
import { ICONS_NAMES } from '
|
|
54
|
+
import { ICONS_NAMES } from '@constants';
|
|
55
55
|
import CheckIcon from '@mui/icons-material/Check';
|
|
56
|
-
import { useAppDispatch, useLanguage } from '
|
|
57
|
-
import { handleOpen, handleCurrentActiveScreen, handleNextScreenStep } from '
|
|
58
|
-
import { getScreenNameBasedOnFlow } from '
|
|
59
|
-
import API from '
|
|
56
|
+
import { useAppDispatch, useLanguage } from '@src/hooks';
|
|
57
|
+
import { handleOpen, handleCurrentActiveScreen, handleNextScreenStep } from '@src/app/settings';
|
|
58
|
+
import { getScreenNameBasedOnFlow } from '@utils';
|
|
59
|
+
import API from '@api';
|
|
60
60
|
var Image = styled('img')(function (_a) {
|
|
61
61
|
var theme = _a.theme;
|
|
62
62
|
return ({
|
|
@@ -21,11 +21,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import Button from '
|
|
25
|
-
import Icon from '
|
|
24
|
+
import Button from '@components/Button';
|
|
25
|
+
import Icon from '@components/Icon';
|
|
26
26
|
import { styled } from '@mui/material/styles';
|
|
27
27
|
import Box from '@mui/material/Box';
|
|
28
|
-
import { ICONS_NAMES } from '
|
|
28
|
+
import { ICONS_NAMES } from '@constants';
|
|
29
29
|
var IconStyled = styled(Icon, { shouldForwardProp: function (prop) { return prop !== 'disabled'; } })(function (_a) {
|
|
30
30
|
var theme = _a.theme, disabled = _a.disabled;
|
|
31
31
|
return (__assign({ width: theme.spacing(3), height: theme.spacing(3), marginInlineStart: theme.spacing(0.75) }, (disabled && {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface CloseDialogStyledProps {
|
|
3
|
+
message?: string;
|
|
4
|
+
confirmTitle: string;
|
|
5
|
+
closeTitle: string;
|
|
6
|
+
open: boolean;
|
|
7
|
+
onConfirm?: () => void;
|
|
8
|
+
onCancel?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export default function CloseDialog({ message, confirmTitle, closeTitle, open, onConfirm, onCancel }: CloseDialogStyledProps): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { alpha, styled } from '@mui/material/styles';
|
|
14
|
+
import Collapse from '@components/Collapse';
|
|
15
|
+
import Text from '@components/Text';
|
|
16
|
+
import Box from '@mui/material/Box';
|
|
17
|
+
var ConfirmCloseBox = styled(Box)(function (_a) {
|
|
18
|
+
var theme = _a.theme;
|
|
19
|
+
return ({
|
|
20
|
+
position: 'absolute',
|
|
21
|
+
backgroundColor: theme.palette.common.white,
|
|
22
|
+
borderRadius: theme.spacing(1),
|
|
23
|
+
height: theme.spacing(5.5),
|
|
24
|
+
display: 'flex',
|
|
25
|
+
justifyContent: 'space-evenly',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
zIndex: 20,
|
|
28
|
+
width: '100%',
|
|
29
|
+
bottom: theme.spacing(2.625)
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
var DisableBoxStyled = styled(Box)(function (_a) {
|
|
33
|
+
var theme = _a.theme;
|
|
34
|
+
return ({
|
|
35
|
+
backgroundColor: alpha(theme.palette.common.black, 0.5),
|
|
36
|
+
zIndex: 10,
|
|
37
|
+
position: 'absolute',
|
|
38
|
+
top: 0,
|
|
39
|
+
left: 0,
|
|
40
|
+
width: '100%',
|
|
41
|
+
height: '100%',
|
|
42
|
+
borderRadius: theme.spacing(1.5)
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
var YesTextStyled = styled(Text)(function (_a) {
|
|
46
|
+
var theme = _a.theme;
|
|
47
|
+
return ({
|
|
48
|
+
color: theme.palette.primary.main,
|
|
49
|
+
cursor: 'pointer'
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
var NoTextStyled = styled(Text)(function (_a) {
|
|
53
|
+
var theme = _a.theme;
|
|
54
|
+
return ({
|
|
55
|
+
color: theme.palette.primary.dark,
|
|
56
|
+
cursor: 'pointer'
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
export default function CloseDialog(_a) {
|
|
60
|
+
var message = _a.message, confirmTitle = _a.confirmTitle, closeTitle = _a.closeTitle, open = _a.open, onConfirm = _a.onConfirm, onCancel = _a.onCancel;
|
|
61
|
+
return (_jsxs(Collapse, __assign({ in: open }, { children: [_jsx(Box, { children: _jsxs(ConfirmCloseBox, { children: [_jsxs(Text, { children: [" ", message] }), _jsx(YesTextStyled, __assign({ onClick: onConfirm }, { children: confirmTitle })), _jsx(NoTextStyled, __assign({ onClick: onCancel }, { children: closeTitle }))] }) }), _jsx(DisableBoxStyled, { id: 'disable-container' })] })));
|
|
62
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DialogProps {
|
|
3
|
+
onClose?: () => void;
|
|
4
|
+
onConfirm?: () => void;
|
|
5
|
+
children: React.ReactElement;
|
|
6
|
+
isTapOrigin?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default function Dialog({ isTapOrigin, onClose, children, onConfirm }: DialogProps): JSX.Element;
|
|
@@ -0,0 +1,56 @@
|
|
|
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { styled } from '@mui/material/styles';
|
|
15
|
+
import { useTranslation } from 'react-i18next';
|
|
16
|
+
import Icon from '@components/Icon';
|
|
17
|
+
import Box from '@mui/material/Box';
|
|
18
|
+
import { ICONS_NAMES } from '@src/constants';
|
|
19
|
+
import CloseDialog from './CloseDialog';
|
|
20
|
+
var CloseIconStyled = styled(Icon)(function (_a) {
|
|
21
|
+
var theme = _a.theme;
|
|
22
|
+
return ({
|
|
23
|
+
width: theme.spacing(3.75),
|
|
24
|
+
height: theme.spacing(3.75)
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
var CloseBox = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'isTapOrigin'; } })(function (_a) {
|
|
28
|
+
var theme = _a.theme, isTapOrigin = _a.isTapOrigin;
|
|
29
|
+
return ({
|
|
30
|
+
display: 'flex',
|
|
31
|
+
justifyContent: 'end',
|
|
32
|
+
marginBlockStart: theme.spacing(2),
|
|
33
|
+
marginInlineEnd: theme.spacing(2),
|
|
34
|
+
cursor: 'pointer',
|
|
35
|
+
direction: theme.direction,
|
|
36
|
+
position: isTapOrigin ? 'initial' : 'absolute',
|
|
37
|
+
right: 0,
|
|
38
|
+
left: 0
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
export default function Dialog(_a) {
|
|
42
|
+
var isTapOrigin = _a.isTapOrigin, onClose = _a.onClose, children = _a.children, onConfirm = _a.onConfirm;
|
|
43
|
+
var _b = React.useState(false), open = _b[0], setOpen = _b[1];
|
|
44
|
+
var t = useTranslation().t;
|
|
45
|
+
var handleOnCloseButton = function () {
|
|
46
|
+
setOpen(true);
|
|
47
|
+
onClose && onClose();
|
|
48
|
+
};
|
|
49
|
+
var handleOnConfirm = function () {
|
|
50
|
+
onConfirm && onConfirm();
|
|
51
|
+
};
|
|
52
|
+
var handleOnCancel = function () {
|
|
53
|
+
setOpen(false);
|
|
54
|
+
};
|
|
55
|
+
return (_jsxs(_Fragment, { children: [onClose && (_jsx(CloseBox, __assign({ isTapOrigin: isTapOrigin, id: 'close-container', onClick: handleOnCloseButton }, { children: _jsx(CloseIconStyled, { src: ICONS_NAMES.CLOSE_ICON }) }))), children, onClose && (_jsx(CloseDialog, { message: t('confirm_close_flow_title'), confirmTitle: t('confirm_close_flow_yes'), closeTitle: t('confirm_close_flow_no'), open: open, onConfirm: handleOnConfirm, onCancel: handleOnCancel }))] }));
|
|
56
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { LanguageMode } from '
|
|
3
|
-
import { useAppDispatch, useLanguage, useAppSelector } from '
|
|
4
|
-
import { handleLanguage, settingsSelector } from '
|
|
5
|
-
import Footer from '
|
|
2
|
+
import { LanguageMode } from '@types';
|
|
3
|
+
import { useAppDispatch, useLanguage, useAppSelector } from '@hooks';
|
|
4
|
+
import { handleLanguage, settingsSelector } from '@app/settings';
|
|
5
|
+
import Footer from '@components/Footer';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
export default function CustomFooter() {
|
|
8
8
|
var isEn = useLanguage().isEn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { InputProps } from '
|
|
2
|
+
import { InputProps } from '@components/Input';
|
|
3
3
|
export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
|
|
4
4
|
align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
|
|
5
5
|
children?: React.ReactNode;
|
|
@@ -22,5 +22,5 @@ interface CustomButtonProps extends InputProps {
|
|
|
22
22
|
label?: string;
|
|
23
23
|
required?: boolean;
|
|
24
24
|
}
|
|
25
|
-
export default function CustomInput({ label, required, ...props }: CustomButtonProps): JSX.Element;
|
|
25
|
+
export default function CustomInput({ label, required, placeholder, ...props }: CustomButtonProps): JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -22,9 +22,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
24
|
import { styled, alpha } from '@mui/material/styles';
|
|
25
|
-
import Text from '
|
|
25
|
+
import Text from '@components/Text';
|
|
26
26
|
import Box from '@mui/material/Box';
|
|
27
|
-
import Input from '
|
|
27
|
+
import Input from '@components/Input';
|
|
28
28
|
import Mandatory from '../Mandatory';
|
|
29
29
|
export var InputLabelStyled = styled(Text)(function (_a) {
|
|
30
30
|
var theme = _a.theme;
|
|
@@ -51,6 +51,6 @@ var LabelContainerStyled = styled(Box)(function (_a) {
|
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
53
|
export default function CustomInput(_a) {
|
|
54
|
-
var label = _a.label, required = _a.required, props = __rest(_a, ["label", "required"]);
|
|
55
|
-
return (_jsxs(_Fragment, { children: [label && (_jsxs(LabelContainerStyled, { children: [_jsx(InputLabelStyled, { children: label }), required && _jsx(Mandatory, {})] })), _jsx(InputStyled, __assign({}, props))] }));
|
|
54
|
+
var label = _a.label, required = _a.required, placeholder = _a.placeholder, props = __rest(_a, ["label", "required", "placeholder"]);
|
|
55
|
+
return (_jsxs(_Fragment, { children: [label && (_jsxs(LabelContainerStyled, { children: [_jsx(InputLabelStyled, { children: label }), required && _jsx(Mandatory, {})] })), _jsx(InputStyled, __assign({}, props, { placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.toString() }))] }));
|
|
56
56
|
}
|
|
@@ -25,9 +25,9 @@ import * as React from 'react';
|
|
|
25
25
|
import { styled } from '@mui/material/styles';
|
|
26
26
|
import Box from '@mui/material/Box/Box';
|
|
27
27
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
28
|
-
import OTPField from '
|
|
29
|
-
import OTPTimer from '
|
|
30
|
-
import { useContainerDimensions } from '
|
|
28
|
+
import OTPField from '@components/OTPField';
|
|
29
|
+
import OTPTimer from '@components/OTPTimer';
|
|
30
|
+
import { useContainerDimensions } from '@hooks';
|
|
31
31
|
var OTPStyled = styled(OTPField)(function (_a) {
|
|
32
32
|
var _b;
|
|
33
33
|
var theme = _a.theme, parentWidth = _a.parentWidth;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import Input from '
|
|
4
|
+
import Input from '@features/shared/Input';
|
|
5
5
|
var Search = function (_a) {
|
|
6
6
|
var onSearchValue = _a.onSearchValue;
|
|
7
7
|
var t = useTranslation().t;
|
|
@@ -10,9 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import Icon from '
|
|
13
|
+
import Icon from '@src/components/Icon';
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
|
-
import { ICONS_NAMES } from '
|
|
15
|
+
import { ICONS_NAMES } from '@src/constants';
|
|
16
16
|
var SearchIcon = styled(Icon)(function (_a) {
|
|
17
17
|
var theme = _a.theme;
|
|
18
18
|
return ({
|
|
@@ -14,12 +14,12 @@ import Box from '@mui/material/Box/Box';
|
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
15
|
import * as React from 'react';
|
|
16
16
|
import { useTranslation } from 'react-i18next';
|
|
17
|
-
import Text from '
|
|
17
|
+
import Text from '@components/Text';
|
|
18
18
|
import Container from '../Containers/ScreenContainer';
|
|
19
|
-
import { EmailProvidersButton, SuccessButton } from '
|
|
20
|
-
import Icon from '
|
|
21
|
-
import { ICONS_NAMES } from '
|
|
22
|
-
import { useLanguage } from '
|
|
19
|
+
import { EmailProvidersButton, SuccessButton } from '@features/shared/Button';
|
|
20
|
+
import Icon from '@components/Icon';
|
|
21
|
+
import { ICONS_NAMES } from '@constants';
|
|
22
|
+
import { useLanguage } from '@hooks';
|
|
23
23
|
var MailBoxStyled = styled(Box)(function () { return ({
|
|
24
24
|
width: '100%'
|
|
25
25
|
}); });
|
|
@@ -10,12 +10,17 @@ export declare const InputContainerStyled: import("@emotion/styled").StyledCompo
|
|
|
10
10
|
interface UploadFileProps {
|
|
11
11
|
label: string;
|
|
12
12
|
required?: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
title: string;
|
|
14
|
+
subTitle: string;
|
|
15
|
+
dragDescription: string;
|
|
16
|
+
uploadingTitle: string;
|
|
17
|
+
successTitle: string;
|
|
15
18
|
error?: string;
|
|
16
19
|
isSubmitting?: boolean;
|
|
20
|
+
isUploading?: boolean;
|
|
21
|
+
isFileUploaded?: boolean;
|
|
17
22
|
onFileUploaded: (file: File) => void;
|
|
18
23
|
onReset: () => void;
|
|
19
24
|
}
|
|
20
|
-
declare const UploadFile: ({ label, required,
|
|
25
|
+
declare const UploadFile: ({ label, required, title, subTitle, dragDescription, uploadingTitle, successTitle, isSubmitting, isUploading, isFileUploaded, error, onFileUploaded, onReset }: UploadFileProps) => JSX.Element;
|
|
21
26
|
export default UploadFile;
|
|
@@ -12,14 +12,18 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
|
-
import { ScreenContainer } from '
|
|
15
|
+
import { ScreenContainer } from '@features/shared/Containers';
|
|
16
16
|
import Box from '@mui/material/Box';
|
|
17
|
-
import { InputLabelStyled } from '
|
|
18
|
-
import Mandatory from '
|
|
19
|
-
import { DragAndDrop
|
|
20
|
-
import Collapse from '
|
|
21
|
-
import Warning from '../../../components/Warning';
|
|
17
|
+
import { InputLabelStyled } from '@features/shared/Input/Input';
|
|
18
|
+
import Mandatory from '@features/shared/Mandatory';
|
|
19
|
+
import { DragAndDrop } from '@components/FileInput';
|
|
20
|
+
import Collapse from '@src/components/Collapse';
|
|
22
21
|
import ClearIcon from '@mui/icons-material/Clear';
|
|
22
|
+
import CheckIcon from '@src/features/shared/CheckIcon';
|
|
23
|
+
import { maskFileName } from '@src/utils';
|
|
24
|
+
import Icon from '@components/Icon';
|
|
25
|
+
import { ICONS_NAMES } from '@constants';
|
|
26
|
+
import Text from '@components/Text';
|
|
23
27
|
var FeatureStyled = styled(ScreenContainer)(function (_a) {
|
|
24
28
|
var theme = _a.theme;
|
|
25
29
|
return ({
|
|
@@ -36,11 +40,11 @@ var LabelContainerStyled = styled(Box)(function (_a) {
|
|
|
36
40
|
});
|
|
37
41
|
var BoxStyled = styled(Box)(function (_a) {
|
|
38
42
|
var theme = _a.theme;
|
|
39
|
-
return (__assign(__assign({ direction: theme.direction }, theme.typography.subtitle2), { color: theme.palette.primary.main, fontWeight: theme.typography.fontWeightBold, background: theme.palette.background.default, padding: theme.spacing(1.5, 2.5, 1.5), width: '
|
|
43
|
+
return (__assign(__assign({ direction: theme.direction }, theme.typography.subtitle2), { color: theme.palette.primary.main, fontWeight: theme.typography.fontWeightBold, background: theme.palette.background.default, padding: theme.spacing(1.5, 2.5, 1.5), width: '88%', wordBreak: 'break-all', display: 'flex', justifyContent: 'space-between' }));
|
|
40
44
|
});
|
|
41
45
|
var UploadBoxStyled = styled(Box)(function (_a) {
|
|
42
46
|
var theme = _a.theme;
|
|
43
|
-
return (__assign(__assign({}, theme.typography.caption), { background: theme.palette.primary.main, color: theme.palette.common.white, fontWeight: theme.typography.fontWeightRegular, cursor: 'pointer', width: '
|
|
47
|
+
return (__assign(__assign({}, theme.typography.caption), { background: theme.palette.primary.main, color: theme.palette.common.white, fontWeight: theme.typography.fontWeightRegular, cursor: 'pointer', width: '12%', display: 'flex', justifyContent: 'center', alignItems: 'center' }));
|
|
44
48
|
});
|
|
45
49
|
var ClearIconStyled = styled(ClearIcon)(function (_a) {
|
|
46
50
|
var theme = _a.theme;
|
|
@@ -55,14 +59,16 @@ export var InputContainerStyled = styled(Box)(function (_a) {
|
|
|
55
59
|
var theme = _a.theme;
|
|
56
60
|
return ({
|
|
57
61
|
display: 'flex',
|
|
58
|
-
width: '100%'
|
|
62
|
+
width: '100%',
|
|
63
|
+
justifyContent: 'center'
|
|
59
64
|
});
|
|
60
65
|
});
|
|
61
66
|
var UploadFile = function (_a) {
|
|
62
|
-
var label = _a.label, required = _a.required,
|
|
67
|
+
var label = _a.label, required = _a.required, title = _a.title, subTitle = _a.subTitle, dragDescription = _a.dragDescription, uploadingTitle = _a.uploadingTitle, successTitle = _a.successTitle, isSubmitting = _a.isSubmitting, isUploading = _a.isUploading, isFileUploaded = _a.isFileUploaded, error = _a.error, onFileUploaded = _a.onFileUploaded, onReset = _a.onReset;
|
|
63
68
|
var _b = React.useState(''), fileName = _b[0], setFileName = _b[1];
|
|
69
|
+
var _c = React.useState(false), showFile = _c[0], setShowFile = _c[1];
|
|
64
70
|
var handleFileChange = function (file) {
|
|
65
|
-
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
71
|
+
setFileName(maskFileName(file === null || file === void 0 ? void 0 : file.name));
|
|
66
72
|
onFileUploaded === null || onFileUploaded === void 0 ? void 0 : onFileUploaded(file);
|
|
67
73
|
};
|
|
68
74
|
var handleReset = function () {
|
|
@@ -71,6 +77,15 @@ var UploadFile = function (_a) {
|
|
|
71
77
|
onReset === null || onReset === void 0 ? void 0 : onReset();
|
|
72
78
|
}
|
|
73
79
|
};
|
|
74
|
-
|
|
80
|
+
React.useEffect(function () {
|
|
81
|
+
if (isFileUploaded && !!fileName) {
|
|
82
|
+
setTimeout(function () {
|
|
83
|
+
setShowFile(true);
|
|
84
|
+
}, 800);
|
|
85
|
+
}
|
|
86
|
+
else
|
|
87
|
+
setShowFile(false);
|
|
88
|
+
}, [isFileUploaded]);
|
|
89
|
+
return (_jsxs(FeatureStyled, { children: [_jsxs(LabelContainerStyled, { children: [_jsx(InputLabelStyled, { children: label }), required && _jsx(Mandatory, {})] }), _jsx(Collapse, __assign({ in: !showFile }, { children: _jsx(InputContainerStyled, { children: _jsx(DragAndDrop, { title: title, subTitle: subTitle, description: dragDescription, fileExists: !!fileName, uploadingTitle: uploadingTitle, successTitle: successTitle, uploading: isUploading, uploadSuccess: isFileUploaded, onSuccess: handleFileChange, error: error }) }) })), _jsx(Collapse, __assign({ in: showFile, timeout: 300 }, { children: _jsxs(InputContainerStyled, { children: [_jsxs(BoxStyled, { children: [_jsxs(Box, __assign({ sx: { display: 'flex' } }, { children: [_jsx(Icon, { src: ICONS_NAMES.DOC_ICON }), _jsx(Text, { children: fileName })] })), _jsx(Box, { children: _jsx(CheckIcon, {}) })] }), _jsx(UploadBoxStyled, __assign({ onClick: handleReset }, { children: _jsx(ClearIconStyled, {}) }))] }) }))] }));
|
|
75
90
|
};
|
|
76
91
|
export default UploadFile;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LibConfig } from '
|
|
2
|
+
import { LibConfig } from '@types';
|
|
3
3
|
export interface SignInLibProps extends LibConfig {
|
|
4
4
|
}
|
|
5
5
|
export declare function SignInLib(props: SignInLibProps): JSX.Element;
|
|
6
6
|
export declare function renderSignInLib(config: SignInLibProps, elementId: string): void;
|
|
7
|
-
export declare function unmountSignInLib(elementId: string): void;
|
|
7
|
+
export declare function unmountSignInLib(elementId: string, unmountTimeout?: number): void;
|
|
@@ -11,18 +11,18 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { memo } from 'react';
|
|
14
|
-
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '
|
|
15
|
-
import { settingsSelector } from '
|
|
16
|
-
import AnimationFlow from '
|
|
17
|
-
import { store } from '
|
|
18
|
-
import { ReduxProvider, ThemeProvider } from '
|
|
19
|
-
import Collapse from '
|
|
20
|
-
import { reactElement } from '
|
|
21
|
-
import { FeatureContainer } from '
|
|
22
|
-
import { SigIn_SCREENS_NAVIGATION } from '
|
|
14
|
+
import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener } from '@hooks';
|
|
15
|
+
import { settingsSelector } from '@app/settings';
|
|
16
|
+
import AnimationFlow from '@components/AnimationFlow';
|
|
17
|
+
import { store } from '@app/store';
|
|
18
|
+
import { ReduxProvider, ThemeProvider } from '@components/Providers';
|
|
19
|
+
import Collapse from '@components/Collapse';
|
|
20
|
+
import { reactElement } from '@utils';
|
|
21
|
+
import { FeatureContainer } from '@features/shared/Containers';
|
|
22
|
+
import { DIALOG_ID, SigIn_SCREENS_NAVIGATION } from '@constants';
|
|
23
23
|
import { signInFeatureScreens } from '../featuresScreens';
|
|
24
24
|
import CustomFooter from '../shared/Footer';
|
|
25
|
-
import { signInSelector } from '
|
|
25
|
+
import { signInSelector } from '@features/app/signIn/signInStore';
|
|
26
26
|
import Background from '../shared/Background';
|
|
27
27
|
var SignIn = memo(function (props) {
|
|
28
28
|
var theme = useAppTheme().theme;
|
|
@@ -32,7 +32,7 @@ var SignIn = memo(function (props) {
|
|
|
32
32
|
useErrorListener(signInError || error);
|
|
33
33
|
useStepStartedListener();
|
|
34
34
|
var activeScreen = data.activeScreen, isTapOrigin = data.isTapOrigin, open = data.open;
|
|
35
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ isTapOrigin: isTapOrigin, loading: loading }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, open: open, error: error, loading: loading, breakpoint: 'sm', footer: _jsx(CustomFooter, {}), screenId: activeScreen.name }, { children: _jsx(FeatureContainer, { children: signInFeatureScreens.map(function (_a, index) {
|
|
35
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: loading }, { children: _jsx(AnimationFlow, __assign({ isTapOrigin: isTapOrigin, open: open, error: error, loading: loading, breakpoint: 'sm', footer: _jsx(CustomFooter, {}), screenId: activeScreen.name }, { children: _jsx(FeatureContainer, { children: signInFeatureScreens.map(function (_a, index) {
|
|
36
36
|
var Element = _a.element, name = _a.name;
|
|
37
37
|
var isActive = activeScreen.name === name;
|
|
38
38
|
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
|
|
@@ -44,6 +44,14 @@ export function SignInLib(props) {
|
|
|
44
44
|
export function renderSignInLib(config, elementId) {
|
|
45
45
|
reactElement(elementId).render(_jsx(SignInLib, __assign({}, config)));
|
|
46
46
|
}
|
|
47
|
-
export function unmountSignInLib(elementId) {
|
|
48
|
-
|
|
47
|
+
export function unmountSignInLib(elementId, unmountTimeout) {
|
|
48
|
+
if (unmountTimeout === void 0) { unmountTimeout = 1000; }
|
|
49
|
+
var element = document.getElementById(elementId);
|
|
50
|
+
var dialogEl = document.getElementById(DIALOG_ID);
|
|
51
|
+
setTimeout(function () {
|
|
52
|
+
var _a;
|
|
53
|
+
((_a = element === null || element === void 0 ? void 0 : element.children) === null || _a === void 0 ? void 0 : _a.length) && element.removeChild(element.children[0]);
|
|
54
|
+
dialogEl && dialogEl.remove();
|
|
55
|
+
reactElement(elementId).unmount();
|
|
56
|
+
}, unmountTimeout);
|
|
49
57
|
}
|