@tap-payments/auth-jsconnect 2.5.23-test → 3.0.0-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 +4 -0
- package/build/@types/app.js +5 -0
- package/build/api/country.d.ts +1 -0
- package/build/api/country.js +11 -1
- package/build/api/index.d.ts +1 -0
- package/build/app/settings.d.ts +5 -2
- package/build/app/settings.js +13 -3
- package/build/assets/locales/ar.json +107 -5
- package/build/assets/locales/en.json +108 -7
- package/build/components/AnimationFlow/AnimationFlow.d.ts +3 -3
- package/build/components/AnimationFlow/AnimationFlow.js +4 -4
- package/build/components/AnimationFlow/BottomSheet.d.ts +3 -4
- package/build/components/AnimationFlow/BottomSheet.js +33 -27
- package/build/components/AnimationFlow/Dialog.d.ts +3 -4
- package/build/components/AnimationFlow/Dialog.js +17 -54
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +3 -1
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +12 -5
- package/build/components/ArabicDatePicker/style.css +2 -0
- package/build/components/Button/Button.js +21 -10
- package/build/components/CheckBox/CheckBox.d.ts +2 -1
- package/build/components/CheckBox/CheckBox.js +41 -19
- package/build/components/DatePicker/DatePicker.d.ts +3 -1
- package/build/components/DatePicker/DatePicker.js +12 -6
- package/build/components/DatePicker/customStyle.css +1 -0
- package/build/components/ExpandIcon/ExpandIcon.js +8 -5
- package/build/components/FileInput/DragAndDrop.js +43 -39
- package/build/components/Icon/Icon.js +1 -1
- package/build/components/OTPField/OTPField.js +5 -4
- package/build/components/OTPTimer/OTPTimer.js +2 -6
- package/build/components/Popover/Popover.d.ts +6 -0
- package/build/components/Popover/Popover.js +79 -0
- package/build/components/Popover/index.d.ts +3 -0
- package/build/components/Popover/index.js +2 -0
- package/build/components/ProgressBar/CircularProgressBar.js +14 -15
- package/build/components/Radio/Radio.js +16 -6
- package/build/components/RadioLabel/RadioLabel.js +3 -2
- package/build/components/SimpleList/SimpleList.d.ts +15 -1
- package/build/components/SimpleList/SimpleList.js +48 -37
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +1 -1
- package/build/components/TextField/TextField.d.ts +17 -0
- package/build/components/TextField/TextField.js +89 -0
- package/build/components/TextField/index.d.ts +3 -0
- package/build/components/TextField/index.js +2 -0
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +2 -1
- package/build/components/Tooltip/Tooltip.js +38 -7
- package/build/components/Warning/Warning.js +4 -4
- package/build/constants/app.js +35 -11
- package/build/constants/assets.d.ts +72 -0
- package/build/constants/assets.js +131 -59
- package/build/constants/date.d.ts +1 -0
- package/build/constants/date.js +14 -0
- package/build/constants/index.d.ts +1 -0
- package/build/constants/index.js +1 -0
- package/build/features/app/brand/brandStore.d.ts +3 -2
- package/build/features/app/brand/brandStore.js +4 -1
- package/build/features/app/business/businessStore.d.ts +4 -2
- package/build/features/app/business/businessStore.js +10 -4
- package/build/features/app/entity/entityStore.d.ts +3 -2
- package/build/features/app/entity/entityStore.js +4 -1
- package/build/features/app/individual/individualStore.d.ts +3 -2
- package/build/features/app/individual/individualStore.js +4 -1
- package/build/features/bank/Bank.js +3 -3
- package/build/features/bank/screens/BankDetails/BankDetails.js +3 -8
- package/build/features/bank/screens/BankDetails/BankName.js +7 -3
- package/build/features/bank/screens/BankDetails/BankStatement.js +1 -1
- package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -3
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +7 -16
- package/build/features/bank/screens/BankDetails/IBAN.js +7 -2
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
- package/build/features/bank/screens/Success/Success.js +14 -2
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
- package/build/features/bank/screens/Verify/Verify.js +5 -8
- package/build/features/brand/Brand.js +3 -3
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -51
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +17 -55
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +9 -7
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +2 -31
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +14 -32
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +12 -13
- package/build/features/brand/screens/BrandActivities/ExpectedSaleField.d.ts +8 -0
- package/build/features/brand/screens/BrandActivities/ExpectedSaleField.js +55 -0
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +9 -16
- package/build/features/brand/screens/BrandActivities/TAC.js +8 -21
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +4 -2
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +2 -2
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +1 -1
- package/build/features/brand/screens/BrandInfo/BrandName.js +7 -51
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +8 -4
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.js +11 -5
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.js +10 -4
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.js +10 -4
- package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/TeamSize.js +10 -4
- package/build/features/brand/screens/ExpectedSales/ExpectedSaleList.d.ts +29 -0
- package/build/features/brand/screens/ExpectedSales/ExpectedSaleList.js +136 -0
- package/build/features/brand/screens/ExpectedSales/ExpectedSales.d.ts +5 -0
- package/build/features/brand/screens/ExpectedSales/ExpectedSales.js +91 -0
- package/build/features/brand/screens/ExpectedSales/index.d.ts +2 -0
- package/build/features/brand/screens/ExpectedSales/index.js +2 -0
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
- package/build/features/brand/screens/Success/Success.js +13 -1
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
- package/build/features/brand/screens/Verify/Verify.js +5 -8
- package/build/features/business/Business.js +3 -3
- package/build/features/business/screens/Activities/Activities.js +7 -11
- package/build/features/business/screens/Activities/ActivityField.d.ts +22 -0
- package/build/features/business/screens/Activities/ActivityField.js +63 -0
- package/build/features/business/screens/Activities/LicenseName.js +4 -2
- package/build/features/business/screens/Activities/OperationStartDate.js +3 -3
- package/build/features/business/screens/BrandDetails/BrandDetails.js +3 -2
- package/build/features/business/screens/BrandDetails/BrandName.js +5 -9
- package/build/features/business/screens/BrandDetails/Header.js +4 -3
- package/build/features/business/screens/BrandDetails/LicenseInfo.js +5 -9
- package/build/features/business/screens/BrandDetails/SalesChannel.js +9 -5
- package/build/features/business/screens/BusinessActivities/ActivityList.d.ts +30 -0
- package/build/features/business/screens/BusinessActivities/ActivityList.js +265 -0
- package/build/features/business/screens/BusinessActivities/BusinessActivities.d.ts +5 -0
- package/build/features/business/screens/BusinessActivities/BusinessActivities.js +90 -0
- package/build/features/business/screens/BusinessActivities/index.d.ts +2 -0
- package/build/features/business/screens/BusinessActivities/index.js +2 -0
- package/build/features/business/screens/BusinessType/Article.js +1 -1
- package/build/features/business/screens/BusinessType/BusinessType.js +6 -4
- package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +2 -1
- package/build/features/business/screens/BusinessType/EntityLicenseList.js +9 -11
- package/build/features/business/screens/BusinessType/EntityName.js +6 -3
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +2 -1
- package/build/features/business/screens/BusinessType/LicenseList.js +9 -6
- package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -3
- package/build/features/business/screens/BusinessType/LicenseType.js +16 -11
- package/build/features/business/screens/CivilID/CivilID.js +8 -16
- package/build/features/business/screens/CivilID/IDNumber.js +5 -18
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -18
- package/build/features/business/screens/Customers/CustomerLocations.js +11 -26
- package/build/features/business/screens/Customers/Customers.js +12 -10
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +2 -1
- package/build/features/business/screens/Customers/ExpectedCustomers.js +10 -13
- package/build/features/business/screens/Customers/ExpectedSaleField.d.ts +6 -0
- package/build/features/business/screens/Customers/ExpectedSaleField.js +49 -0
- package/build/features/business/screens/Customers/RefundPolicy.js +8 -16
- package/build/features/business/screens/Customers/TransactionPolicy.js +4 -2
- package/build/features/business/screens/ExpectedSales/ExpectedSaleList.d.ts +29 -0
- package/build/features/business/screens/ExpectedSales/ExpectedSaleList.js +136 -0
- package/build/features/business/screens/ExpectedSales/ExpectedSales.d.ts +5 -0
- package/build/features/business/screens/ExpectedSales/ExpectedSales.js +91 -0
- package/build/features/business/screens/ExpectedSales/index.d.ts +2 -0
- package/build/features/business/screens/ExpectedSales/index.js +2 -0
- package/build/features/business/screens/IDBOD/DOB.js +3 -12
- package/build/features/business/screens/IDBOD/ID.js +2 -2
- package/build/features/business/screens/IDBOD/IDBOD.js +9 -16
- package/build/features/business/screens/OTP/OTP.js +10 -22
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
- package/build/features/business/screens/Success/Success.js +13 -1
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
- package/build/features/business/screens/Verify/Verify.js +5 -8
- package/build/features/connect/Connect.js +3 -3
- package/build/features/connect/screens/BrandSegment/BrandSegment.js +8 -4
- package/build/features/connect/screens/BrandSegment/SegmentLocations.d.ts +2 -1
- package/build/features/connect/screens/BrandSegment/SegmentLocations.js +9 -5
- package/build/features/connect/screens/BrandSegment/SegmentProfits.d.ts +2 -1
- package/build/features/connect/screens/BrandSegment/SegmentProfits.js +8 -4
- package/build/features/connect/screens/BrandSegment/SegmentTechs.d.ts +2 -1
- package/build/features/connect/screens/BrandSegment/SegmentTechs.js +8 -4
- package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +2 -1
- package/build/features/connect/screens/BrandSegment/TeamSize.js +8 -4
- package/build/features/connect/screens/CivilID/CivilID.js +11 -12
- package/build/features/connect/screens/CivilID/IDNumber.js +3 -18
- package/build/features/connect/screens/Individual/Email.js +6 -2
- package/build/features/connect/screens/Individual/Individual.js +11 -9
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -0
- package/build/features/connect/screens/Individual/MobileNumber.js +29 -22
- package/build/features/connect/screens/Individual/Name.js +4 -2
- package/build/features/connect/screens/Merchant/BrandList.d.ts +2 -1
- package/build/features/connect/screens/Merchant/BrandList.js +8 -4
- package/build/features/connect/screens/Merchant/BrandName.d.ts +2 -1
- package/build/features/connect/screens/Merchant/BrandName.js +7 -42
- package/build/features/connect/screens/Merchant/Merchant.js +8 -4
- package/build/features/connect/screens/Merchant/TAC.js +12 -24
- package/build/features/connect/screens/Mobile/Mobile.js +19 -21
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -0
- package/build/features/connect/screens/Mobile/MobileNumber.js +22 -19
- package/build/features/connect/screens/NID/DOB.d.ts +1 -1
- package/build/features/connect/screens/NID/DOB.js +5 -26
- package/build/features/connect/screens/NID/IDNumber.js +3 -18
- package/build/features/connect/screens/NID/NID.js +13 -14
- package/build/features/connect/screens/OTP/OTP.js +5 -8
- package/build/features/connect/screens/ThankYou/ThankYou.js +13 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +0 -61
- package/build/features/connectExpress/ConnectExpress.js +3 -3
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +13 -1
- package/build/features/connectExpress/screens/Brand/Brand.js +4 -2
- package/build/features/connectExpress/screens/CivilID/CivilID.js +7 -8
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +3 -18
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +2 -2
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +3 -18
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +5 -40
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +9 -5
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +2 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +11 -6
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +8 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +9 -17
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +6 -4
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +6 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +1 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +33 -26
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +6 -2
- package/build/features/connectExpress/screens/IdentityOTP/OTP.js +5 -8
- package/build/features/connectExpress/screens/Mobile/Mobile.js +21 -12
- package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +1 -0
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +33 -26
- package/build/features/connectExpress/screens/Mobile/TAC.js +12 -24
- package/build/features/connectExpress/screens/NID/DOB.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/DOB.js +4 -24
- package/build/features/connectExpress/screens/NID/IDNumber.js +8 -18
- package/build/features/connectExpress/screens/NID/NID.js +7 -8
- package/build/features/connectExpress/screens/NID/TAC.js +9 -17
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -1
- package/build/features/connectExpress/screens/NIDMissed/DOB.js +3 -24
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +5 -18
- package/build/features/connectExpress/screens/NIDMissed/NID.js +2 -2
- package/build/features/connectExpress/screens/OTP/OTP.js +5 -8
- package/build/features/connectExpress/screens/OTP/OTPInput.js +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
- package/build/features/entity/Entity.js +3 -3
- package/build/features/entity/screens/EntityActivities/ActivityList.d.ts +30 -0
- package/build/features/entity/screens/EntityActivities/ActivityList.js +265 -0
- package/build/features/entity/screens/EntityActivities/EntityActivities.d.ts +5 -0
- package/build/features/entity/screens/EntityActivities/EntityActivities.js +89 -0
- package/build/features/entity/screens/EntityActivities/index.d.ts +2 -0
- package/build/features/entity/screens/EntityActivities/index.js +2 -0
- package/build/features/entity/screens/EntityCapital/ActivityField.d.ts +22 -0
- package/build/features/entity/screens/EntityCapital/ActivityField.js +63 -0
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +7 -3
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +6 -2
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +7 -3
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +10 -11
- package/build/features/entity/screens/EntityName/Article.js +1 -1
- package/build/features/entity/screens/EntityName/EntityName.js +6 -4
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +1 -50
- package/build/features/entity/screens/EntityName/EntityTypeList.js +19 -50
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +2 -15
- package/build/features/entity/screens/EntityName/ExpiryDate.js +5 -11
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +2 -15
- package/build/features/entity/screens/EntityName/IssuingDate.js +5 -11
- package/build/features/entity/screens/EntityName/LegalName.js +6 -2
- package/build/features/entity/screens/EntityName/LicenseNumber.js +4 -2
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +6 -2
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
- package/build/features/entity/screens/Success/Success.js +13 -1
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
- package/build/features/entity/screens/Verify/Verify.js +5 -8
- package/build/features/featuresScreens.js +26 -1
- package/build/features/individual/Individual.js +3 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +8 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +3 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +9 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -100
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +14 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +6 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +7 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +9 -3
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +1 -1
- package/build/features/individual/screens/IndividualList/Email.js +4 -2
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +1 -27
- package/build/features/individual/screens/IndividualList/IndividualList.js +2 -21
- package/build/features/individual/screens/IndividualList/MobileNumber.js +30 -24
- package/build/features/individual/screens/IndividualList/UserList.js +36 -15
- package/build/features/individual/screens/IndividualOccupation/IndividualOccupation.d.ts +5 -0
- package/build/features/individual/screens/IndividualOccupation/IndividualOccupation.js +91 -0
- package/build/features/individual/screens/IndividualOccupation/OccupationList.d.ts +29 -0
- package/build/features/individual/screens/IndividualOccupation/OccupationList.js +136 -0
- package/build/features/individual/screens/IndividualOccupation/index.d.ts +2 -0
- package/build/features/individual/screens/IndividualOccupation/index.js +2 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +10 -4
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +10 -4
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +4 -13
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +6 -2
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +4 -13
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +16 -12
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +7 -2
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +7 -4
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +10 -4
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +31 -24
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +6 -2
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +10 -4
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.d.ts +1 -0
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +34 -30
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +10 -2
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
- package/build/features/individual/screens/Success/Success.js +13 -1
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
- package/build/features/individual/screens/Verify/Verify.js +5 -8
- package/build/features/password/Password.js +3 -3
- package/build/features/password/screens/CreatePassword/ConditionText.js +2 -1
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +15 -2
- package/build/features/password/screens/CreatePassword/CreatePassword.js +3 -3
- package/build/features/password/screens/CreatePassword/Password.js +17 -9
- package/build/features/password/screens/CreatePassword/PasswordBar.js +4 -4
- package/build/features/password/screens/OTP/OTP.js +10 -22
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
- package/build/features/password/screens/Success/Success.js +13 -1
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
- package/build/features/password/screens/Verify/Verify.js +5 -8
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +16 -11
- package/build/features/shared/Background/Background.js +11 -2
- package/build/features/shared/Button/AbsherButton.js +12 -2
- package/build/features/shared/Button/Button.js +16 -11
- package/build/features/shared/Button/EmailProvidersButtons.js +34 -22
- package/build/features/shared/Button/FlowsButtons.d.ts +3 -1
- package/build/features/shared/Button/FlowsButtons.js +79 -69
- package/build/features/shared/Button/IndividualActionButtons.js +39 -40
- package/build/features/shared/Button/MobileButton.js +16 -2
- package/build/features/shared/Button/SuccessButton.d.ts +1 -1
- package/build/features/shared/Button/SuccessButton.js +10 -15
- package/build/features/shared/Calender/Calender.d.ts +3 -1
- package/build/features/shared/Calender/Calender.js +4 -4
- package/build/features/shared/Calender/CustomCalender.d.ts +15 -0
- package/build/features/shared/Calender/CustomCalender.js +46 -0
- package/build/features/shared/Calender/CustomDatePicker.d.ts +29 -0
- package/build/features/shared/Calender/CustomDatePicker.js +252 -0
- package/build/features/shared/Calender/CustomHijriDatePicker.d.ts +29 -0
- package/build/features/shared/Calender/CustomHijriDatePicker.js +258 -0
- package/build/features/shared/Calender/DatePicker.d.ts +29 -0
- package/build/features/shared/Calender/DatePicker.js +229 -0
- package/build/features/shared/Calender/index.d.ts +2 -0
- package/build/features/shared/Calender/index.js +2 -0
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -2
- package/build/features/shared/CheckIcon/CheckIcon.js +9 -7
- package/build/features/shared/Chip/Chip.js +2 -1
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +2 -0
- package/build/features/shared/ClearIcon/ClearIcon.js +2 -1
- package/build/features/shared/Containers/ContainerWithHeader.d.ts +11 -0
- package/build/features/shared/Containers/ContainerWithHeader.js +52 -0
- package/build/features/shared/Containers/FeatureContainer.d.ts +1 -2
- package/build/features/shared/Containers/FeatureContainer.js +6 -4
- package/build/features/shared/Containers/index.d.ts +2 -1
- package/build/features/shared/Containers/index.js +2 -1
- package/build/features/shared/CountryPopup/CountryPopup.d.ts +7 -0
- package/build/features/shared/CountryPopup/CountryPopup.js +166 -0
- package/build/features/shared/CountryPopup/index.d.ts +2 -0
- package/build/features/shared/CountryPopup/index.js +2 -0
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +6 -6
- package/build/features/shared/DataLoading/DataLoading.js +6 -6
- package/build/features/shared/DropDownStyle/DropDownStyle.d.ts +24 -0
- package/build/features/shared/DropDownStyle/DropDownStyle.js +61 -0
- package/build/features/shared/DropDownStyle/index.d.ts +2 -0
- package/build/features/shared/DropDownStyle/index.js +2 -0
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +2 -1
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +2 -2
- package/build/features/shared/Footer/PoweredByFooter.d.ts +1 -2
- package/build/features/shared/Footer/PoweredByFooter.js +3 -3
- package/build/features/shared/GenericError/GenericError.js +3 -2
- package/build/features/shared/Header/Header.d.ts +8 -0
- package/build/features/shared/Header/Header.js +88 -0
- package/build/features/shared/Header/index.d.ts +3 -0
- package/build/features/shared/Header/index.js +2 -0
- package/build/features/shared/InputSelect/InputSelect.js +0 -1
- package/build/features/shared/LanguagePopup/LanguagePopup.d.ts +5 -0
- package/build/features/shared/LanguagePopup/LanguagePopup.js +178 -0
- package/build/features/shared/LanguagePopup/index.d.ts +2 -0
- package/build/features/shared/LanguagePopup/index.js +2 -0
- package/build/features/shared/Mandatory/Mandatory.js +2 -2
- package/build/features/shared/OTP/OTP.js +10 -11
- package/build/features/shared/PaciVerification/PaciVerification.js +5 -4
- package/build/features/shared/PasswordIcon/PasswordIcon.js +3 -2
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +47 -22
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +13 -0
- package/build/features/shared/SalesChannels/SalesChannel.js +11 -24
- package/build/features/shared/Search/Search.d.ts +3 -1
- package/build/features/shared/Search/Search.js +39 -3
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +0 -1
- package/build/features/shared/SearchIcon/SearchIcon.js +6 -7
- package/build/features/shared/SearchIcon/index.d.ts +2 -0
- package/build/features/shared/SearchIcon/index.js +2 -0
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +23 -8
- package/build/features/shared/SuccessScreen/SuccessScreen.js +9 -7
- package/build/features/shared/{UploadFile/UploadFile.d.ts → TextField/TextField.d.ts} +14 -24
- package/build/features/shared/TextField/TextField.js +63 -0
- package/build/features/shared/TextField/index.d.ts +3 -0
- package/build/features/shared/TextField/index.js +2 -0
- package/build/features/shared/TextFieldSelect/TextFieldSelect.d.ts +4 -0
- package/build/features/shared/TextFieldSelect/TextFieldSelect.js +32 -0
- package/build/features/shared/TextFieldSelect/index.d.ts +2 -0
- package/build/features/shared/TextFieldSelect/index.js +2 -0
- package/build/features/shared/TitleDescription/TitleDescription.d.ts +9 -0
- package/build/features/shared/TitleDescription/TitleDescription.js +77 -0
- package/build/features/shared/TitleDescription/index.d.ts +2 -0
- package/build/features/shared/TitleDescription/index.js +2 -0
- package/build/features/shared/UploadFile/FileUpload.d.ts +8 -2
- package/build/features/shared/UploadFile/FileUpload.js +58 -31
- package/build/features/shared/UploadFile/UploadWrapper.js +7 -3
- package/build/features/shared/UploadFile/index.d.ts +1 -2
- package/build/features/shared/UploadFile/index.js +1 -2
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +8 -2
- package/build/features/shared/UploadMultipleFile/UploadFile.js +58 -31
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +14 -9
- package/build/features/signIn/SignIn.js +3 -3
- package/build/features/signIn/screens/Mobile/MobileNumber.js +7 -4
- package/build/features/tax/Tax.js +3 -3
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +13 -1
- package/build/features/tax/screens/Success/Success.js +13 -1
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -1
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +7 -16
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +2 -2
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +2 -2
- package/build/features/tax/screens/TaxDetails/VATId.js +7 -2
- package/build/features/tax/screens/Verify/Verify.js +9 -9
- package/build/hooks/useAppConfig.js +10 -1
- package/build/theme/palette.js +81 -27
- package/build/theme/shadows.js +7 -7
- package/build/theme/typography.js +3 -3
- package/build/utils/array.d.ts +1 -1
- package/build/utils/array.js +2 -2
- package/build/utils/string.js +14 -16
- package/package.json +3 -1
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +0 -10
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +0 -143
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +0 -37
- package/build/features/business/screens/Activities/ActivitiesList.js +0 -292
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +0 -8
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +0 -138
- package/build/features/connect/screens/Mobile/Title.d.ts +0 -8
- package/build/features/connect/screens/Mobile/Title.js +0 -29
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +0 -8
- package/build/features/connectExpress/screens/Mobile/Title.js +0 -29
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +0 -38
- package/build/features/entity/screens/EntityCapital/ActivityList.js +0 -290
- package/build/features/shared/UploadFile/UploadFile.js +0 -91
|
@@ -1,8 +1,20 @@
|
|
|
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
|
+
};
|
|
1
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
13
|
import * as React from 'react';
|
|
3
14
|
import { useTranslation } from 'react-i18next';
|
|
4
15
|
import { useAppDispatch, useAppSelector } from '../../../../hooks';
|
|
5
16
|
import { updateLeadSuccess, taxSelector } from '../../../app/tax/taxStore';
|
|
17
|
+
import { ContainerWithHeader } from '../../../shared/Containers';
|
|
6
18
|
import SuccessScreen from '../../../shared/SuccessScreen';
|
|
7
19
|
var Success = function (_a) {
|
|
8
20
|
var t = useTranslation().t;
|
|
@@ -17,6 +29,6 @@ var Success = function (_a) {
|
|
|
17
29
|
var onSuccess = function () {
|
|
18
30
|
setClicked(true);
|
|
19
31
|
};
|
|
20
|
-
return (_jsx(SuccessScreen, { title: t('tax_success_title'), onSuccess: onSuccess, successTitle: t('continue'), loading: clicked && updateBoardSuccessLoading, error: error || '' }));
|
|
32
|
+
return (_jsx(ContainerWithHeader, __assign({ title: 'tax_success_header_title', description: 'tax_success_header_description' }, { children: _jsx(SuccessScreen, { title: t('tax_success_title'), onSuccess: onSuccess, successTitle: t('continue'), loading: clicked && updateBoardSuccessLoading, error: error || '' }) })));
|
|
21
33
|
};
|
|
22
34
|
export default React.memo(Success);
|
|
@@ -14,9 +14,10 @@ import { memo } from 'react';
|
|
|
14
14
|
import { useAppSelector } from '../../../../hooks';
|
|
15
15
|
import { taxSelector } from '../../../app/tax/taxStore';
|
|
16
16
|
import SuccessFlowButtons from '../../../shared/SuccessFlowButtons';
|
|
17
|
+
import { ContainerWithHeader } from '../../../shared/Containers';
|
|
17
18
|
var SuccessWithFlowButtons = function () {
|
|
18
19
|
var data = useAppSelector(taxSelector).data;
|
|
19
20
|
var _a = data.verify.responseBody || {}, flows = _a.flows, entity = _a.entity, brand = _a.brand, bank = _a.bank_account, merchant = _a.merchant, user = _a.user, business = _a.business, board_id = _a.board_id, board_info_id = _a.board_info_id, name = _a.name, individuals = _a.individuals;
|
|
20
|
-
return (_jsx(SuccessFlowButtons, { flowName: data.flowName, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [] }));
|
|
21
|
+
return (_jsx(ContainerWithHeader, __assign({ title: 'tax_flows_title', description: 'tax_flows_description' }, { children: _jsx(SuccessFlowButtons, { flowName: data.flowName, bank: bank, brand: brand, entity: entity, merchant: merchant, user: __assign({ names: { en: name } }, user), business: business, boardId: board_id, boardInfoId: board_info_id, individuals: individuals, flows: flows || [] }) })));
|
|
21
22
|
};
|
|
22
23
|
export default memo(SuccessWithFlowButtons);
|
|
@@ -12,37 +12,28 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useTranslation } from 'react-i18next';
|
|
14
14
|
import { useController, useFormContext } from 'react-hook-form';
|
|
15
|
-
import { styled
|
|
15
|
+
import { styled } from '@mui/material/styles';
|
|
16
16
|
import { ScreenContainer } from '../../../shared/Containers';
|
|
17
17
|
import Box from '@mui/material/Box';
|
|
18
18
|
import CheckBox from '../../../../components/CheckBox';
|
|
19
19
|
import Text from '../../../../components/Text';
|
|
20
20
|
import Warning from '../../../../components/Warning';
|
|
21
21
|
import Collapse from '../../../../components/Collapse';
|
|
22
|
+
import { ThemeMode } from '../../../../@types';
|
|
22
23
|
var ConfirmContainerStyled = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'readOnly'; } })(function (_a) {
|
|
23
|
-
var
|
|
24
|
-
return (__assign({ display: 'flex', flexDirection: 'row', alignItems: 'center'
|
|
24
|
+
var readOnly = _a.readOnly;
|
|
25
|
+
return (__assign({ display: 'flex', flexDirection: 'row', alignItems: 'center' }, (readOnly && {
|
|
25
26
|
opacity: '0.6'
|
|
26
27
|
})));
|
|
27
28
|
});
|
|
28
29
|
var TextStyled = styled(Text)(function (_a) {
|
|
29
30
|
var theme = _a.theme;
|
|
30
|
-
return (__assign({ color:
|
|
31
|
+
return (__assign({ color: theme.palette.mode === ThemeMode.DARK ? theme.palette.text.secondary : theme.palette.secondary.light, fontWeight: theme.typography.fontWeightRegular, whiteSpace: 'pre-line', height: 'fit-content' }, theme.typography.caption));
|
|
31
32
|
});
|
|
32
33
|
var CheckboxStyled = styled(CheckBox)(function (_a) {
|
|
33
34
|
var theme = _a.theme;
|
|
34
35
|
return ({
|
|
35
|
-
|
|
36
|
-
padding: theme.spacing(0),
|
|
37
|
-
marginInlineEnd: theme.spacing(1.5),
|
|
38
|
-
color: theme.palette.primary.main,
|
|
39
|
-
'& .MuiSvgIcon-root': {
|
|
40
|
-
fontSize: theme.spacing(3.75)
|
|
41
|
-
},
|
|
42
|
-
'&.Mui-checked': {
|
|
43
|
-
color: theme.palette.text.primary,
|
|
44
|
-
borderRadius: theme.spacing(2.5)
|
|
45
|
-
}
|
|
36
|
+
marginInlineStart: theme.spacing(-1.125)
|
|
46
37
|
});
|
|
47
38
|
});
|
|
48
39
|
var CollapseStyled = styled(Collapse)(function () { return ({
|
|
@@ -61,6 +52,6 @@ var ConfirmPolicy = function (_a) {
|
|
|
61
52
|
return;
|
|
62
53
|
confirmControl.field.onChange(checked);
|
|
63
54
|
};
|
|
64
|
-
return (_jsxs(ScreenContainer, { children: [_jsxs(ConfirmContainerStyled, __assign({ readOnly: readOnly }, { children: [_jsx(CheckboxStyled, { disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: confirmChecked, onChange: handleConfirmCheckedChange }), _jsx(TextStyled, { children: t('tax_confirm_information') })] })), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: warningMessage && t(warningMessage) })) }))] }));
|
|
55
|
+
return (_jsxs(ScreenContainer, __assign({ sx: { mt: 3, ml: 3, mr: 3 } }, { children: [_jsxs(ConfirmContainerStyled, __assign({ readOnly: readOnly }, { children: [_jsx(CheckboxStyled, { disableRipple: true, disableFocusRipple: true, focusRipple: false, checked: confirmChecked, onChange: handleConfirmCheckedChange }), _jsx(TextStyled, { children: t('tax_confirm_information') })] })), _jsx(CollapseStyled, __assign({ in: !!warningMessage }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: warningMessage && t(warningMessage) })) }))] })));
|
|
65
56
|
};
|
|
66
57
|
export default ConfirmPolicy;
|
|
@@ -20,7 +20,7 @@ import { useAppDispatch, useLanguage, useAppSelector, useSetFromDefaultValues, u
|
|
|
20
20
|
import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
|
|
21
21
|
import { DocumentPurpose } from '../../../../@types';
|
|
22
22
|
import { deepCopy, getFileDetailsFromDocument, isSA } from '../../../../utils';
|
|
23
|
-
import {
|
|
23
|
+
import { ContainerWithHeader } from '../../../shared/Containers';
|
|
24
24
|
import Button from '../../../shared/Button';
|
|
25
25
|
import { retrieveBoardStatus, taxSelector, updateTaxInfo } from '../../../app/tax/taxStore';
|
|
26
26
|
import { Validation } from './validation';
|
|
@@ -70,6 +70,6 @@ var TaxDetails = function () {
|
|
|
70
70
|
}
|
|
71
71
|
dispatch(retrieveBoardStatus());
|
|
72
72
|
};
|
|
73
|
-
return (_jsx(
|
|
73
|
+
return (_jsx(ContainerWithHeader, __assign({ onBack: function () { return onBack(); }, title: 'tax_info_title', description: 'tax_info_description' }, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(VATId, { readOnly: readOnly['vatId'] || noneEditable['tax_number'], isVerified: isVatIdVerified }), _jsx(TaxDocument, { show: isSACountry, defaultFiles: defaultTaxFiles, readOnly: readOnly['documentId'] || noneEditable['documents'] }), _jsx(ConfirmPolicy, { readOnly: readOnly['confirmPolicy'] || noneEditable['is_vat_acknowledged'] }), _jsx(Button, __assign({ disableBack: true, isAr: isAr, disabled: !methods.formState.isValid || uploading, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) })));
|
|
74
74
|
};
|
|
75
75
|
export default TaxDetails;
|
|
@@ -25,7 +25,7 @@ import { hasVerifiedValue } from '../../../../utils';
|
|
|
25
25
|
var FeatureStyled = styled(ScreenContainer)(function (_a) {
|
|
26
26
|
var theme = _a.theme;
|
|
27
27
|
return ({
|
|
28
|
-
marginBlockStart: theme.spacing(
|
|
28
|
+
marginBlockStart: theme.spacing(2.5)
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
var TaxDocument = function (_a) {
|
|
@@ -45,6 +45,6 @@ var TaxDocument = function (_a) {
|
|
|
45
45
|
documentIdControl.field.onChange(ids);
|
|
46
46
|
};
|
|
47
47
|
var isDocumentVerified = React.useMemo(function () { var _a; return !!((_a = defaultFiles === null || defaultFiles === void 0 ? void 0 : defaultFiles[0]) === null || _a === void 0 ? void 0 : _a.docId) && hasVerifiedValue(data_verification, "documents.".concat(defaultFiles[0].docId)); }, [data_verification]);
|
|
48
|
-
return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(FeatureStyled,
|
|
48
|
+
return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(FeatureStyled, { children: _jsx(UploadMultipleFile, { readOnly: readOnly, id: 'documentId', control: control, label: t('title_tax_document'), title: t('drag_and_drop'), subTitle: t('subtitle_drop'), dragDescription: t('desc_drag_and_drop_tax_document'), uploadingTitle: t('file_uploading_title'), successTitle: t('success_upload_bank_statement'), onFileUploaded: handleTaxDocumentChange, isSubmitting: loading, onDeleteFile: handleReset, maxLimit: 4, defaultFiles: defaultFiles, purpose: DocumentPurpose.TAX_DOCUMENT, fileUploadingStatus: function (uploading) { return dispatch(uploadingStatus(uploading)); }, fileType: FileType.IMAGES, isVerified: !(uploadedIds === null || uploadedIds === void 0 ? void 0 : uploadedIds.length) && isDocumentVerified }) }) })));
|
|
49
49
|
};
|
|
50
50
|
export default TaxDocument;
|
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
14
|
import Box from '@mui/material/Box';
|
|
15
|
-
import Input from '../../../shared/
|
|
15
|
+
import Input from '../../../shared/TextField';
|
|
16
16
|
import { useTranslation } from 'react-i18next';
|
|
17
17
|
import { useController, useFormContext } from 'react-hook-form';
|
|
18
18
|
import { VAT_ID_LENGTH } from '../../../../constants';
|
|
@@ -37,6 +37,11 @@ var VATId = function (_a) {
|
|
|
37
37
|
var clearValue = function () {
|
|
38
38
|
vatControl.field.onChange('');
|
|
39
39
|
};
|
|
40
|
-
return (_jsx(Box, __assign({ sx: isSACountry ? {} : { height: '200px' } }, { children: _jsx(Input, {
|
|
40
|
+
return (_jsx(Box, __assign({ sx: isSACountry ? {} : { height: '200px' } }, { children: _jsx(Input, { label: t('vat_id'), InputProps: {
|
|
41
|
+
endAdornment: _jsx(EndAdornment, { value: vatValue, isVerified: isVerified, error: vatError, onClear: clearValue })
|
|
42
|
+
}, inputProps: {
|
|
43
|
+
maxLength: VAT_ID_LENGTH,
|
|
44
|
+
readOnly: readOnly
|
|
45
|
+
}, value: vatValue || '', onChange: function (event) { return handleOnChange(event.target.value); }, placeholder: t('vat_id_placeholder'), helperText: vatError && t(vatError), required: true }) })));
|
|
41
46
|
};
|
|
42
47
|
export default VATId;
|
|
@@ -21,7 +21,7 @@ import { useLanguage, useAppSelector } from '../../../../hooks';
|
|
|
21
21
|
import { deepCopy, maskPhone } from '../../../../utils';
|
|
22
22
|
import Form from '../../../../components/Form';
|
|
23
23
|
import Text from '../../../../components/Text';
|
|
24
|
-
import {
|
|
24
|
+
import { ContainerWithHeader } from '../../../shared/Containers';
|
|
25
25
|
import { taxSelector, clearError, resetOTPScreen, verifyTaxLeadOTP } from '../../../app/tax/taxStore';
|
|
26
26
|
import Button from '../../../shared/Button';
|
|
27
27
|
import { OTPValidation } from './validation';
|
|
@@ -29,17 +29,14 @@ import OTPInput from './OTPInput';
|
|
|
29
29
|
var OTPTitleContainerStyled = styled(Box)(function (_a) {
|
|
30
30
|
var theme = _a.theme;
|
|
31
31
|
return ({
|
|
32
|
-
background: theme.palette.common.white,
|
|
33
|
-
border: '1px solid',
|
|
34
|
-
borderColor: theme.palette.divider,
|
|
35
32
|
direction: theme.direction,
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
paddingInline: theme.spacing(3),
|
|
34
|
+
paddingBottom: theme.spacing(5)
|
|
38
35
|
});
|
|
39
36
|
});
|
|
40
37
|
var OTPTitleStyled = styled(Text)(function (_a) {
|
|
41
38
|
var theme = _a.theme;
|
|
42
|
-
return (__assign(__assign({}, theme.typography.
|
|
39
|
+
return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.secondary.main, fontWeight: theme.typography.fontWeightRegular, lineHeight: '19px', whiteSpace: 'pre-line' }));
|
|
43
40
|
});
|
|
44
41
|
var FormStyled = styled(Form)(function () { return ({
|
|
45
42
|
display: 'flex',
|
|
@@ -49,9 +46,12 @@ var VerifyNumber = function (_a) {
|
|
|
49
46
|
var _b, _c, _d, _e;
|
|
50
47
|
var dispatch = useAppDispatch();
|
|
51
48
|
var _f = useAppSelector(taxSelector), data = _f.data, loading = _f.loading, error = _f.error;
|
|
49
|
+
var otp = data.otpData.otp;
|
|
52
50
|
var methods = useForm({
|
|
53
51
|
resolver: yupResolver(OTPValidation),
|
|
54
|
-
defaultValues:
|
|
52
|
+
defaultValues: {
|
|
53
|
+
otp: otp
|
|
54
|
+
},
|
|
55
55
|
mode: 'onChange'
|
|
56
56
|
});
|
|
57
57
|
useSetFromDefaultValues(methods, data.otpData);
|
|
@@ -70,6 +70,6 @@ var VerifyNumber = function (_a) {
|
|
|
70
70
|
dispatch(verifyTaxLeadOTP(deepCopy(formData)));
|
|
71
71
|
};
|
|
72
72
|
var disabled = !methods.formState.isValid || !!error || !phone || resendLoading;
|
|
73
|
-
return (_jsx(
|
|
73
|
+
return (_jsx(ContainerWithHeader, __assign({ title: 'otp_authentication', description: 'otp_authentication_description' }, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(OTPTitleContainerStyled, { children: _jsxs(OTPTitleStyled, { children: [loading ? t('ide_otp_waiting_title') : t('ide_opt_sent_title'), !loading && phone && _jsx("span", __assign({ dir: 'ltr' }, { children: "".concat(maskPhone(phone || '')) }))] }) }), _jsx(OTPInput, { loading: resendLoading, setLoading: setResendLoading }), _jsx(Button, __assign({ disableBack: true, disabled: disabled, isAr: isAr, loading: loading, error: t(error || '') }, { children: t('next') }))] })) })) })));
|
|
74
74
|
};
|
|
75
75
|
export default React.memo(VerifyNumber);
|
|
@@ -21,7 +21,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { useEffect } from 'react';
|
|
24
|
-
import {
|
|
24
|
+
import { ThemeMode } from '../@types';
|
|
25
|
+
import { handleActiveFlowScreens, handleSetAppConfig, handleLanguage, handleOpen, handleIsTapOrigin, fetchAppSettingsSync, handelBoardMaturity, settingsSelector, handleSkin } from '../app/settings';
|
|
25
26
|
import { useAppDispatch } from './useAppDispatch';
|
|
26
27
|
import { useAppSelector } from './useAppSelector';
|
|
27
28
|
import { isTapDomain, removeRequestHeaders, setBaseUrl } from '../utils';
|
|
@@ -33,6 +34,13 @@ export var useAppConfig = function (_a) {
|
|
|
33
34
|
dispatch(handleSetAppConfig(__assign({ appInfo: appInfo, publicKey: publicKey }, rest)));
|
|
34
35
|
dispatch(handleActiveFlowScreens(navigation));
|
|
35
36
|
};
|
|
37
|
+
var setAppTheme = function () {
|
|
38
|
+
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
39
|
+
dispatch(handleSkin(ThemeMode.DARK));
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
dispatch(handleSkin(ThemeMode.LIGHT));
|
|
43
|
+
};
|
|
36
44
|
var checkDomain = function () {
|
|
37
45
|
var isTap = isTapDomain(rest.merchantDomain);
|
|
38
46
|
dispatch(handleIsTapOrigin(isTap));
|
|
@@ -48,6 +56,7 @@ export var useAppConfig = function (_a) {
|
|
|
48
56
|
checkDomain();
|
|
49
57
|
setBaseUrl(publicKey);
|
|
50
58
|
setAppConfig();
|
|
59
|
+
setAppTheme();
|
|
51
60
|
if (typeof boardMaturity === 'boolean')
|
|
52
61
|
dispatch(handelBoardMaturity(boardMaturity));
|
|
53
62
|
if (!data.isMaturityExpress)
|
package/build/theme/palette.js
CHANGED
|
@@ -1,68 +1,122 @@
|
|
|
1
1
|
export var lightPalette = {
|
|
2
2
|
mode: 'light',
|
|
3
|
-
divider: '
|
|
3
|
+
divider: 'rgba(227, 227, 227, 1)',
|
|
4
4
|
primary: {
|
|
5
|
-
main: '
|
|
5
|
+
main: 'rgba(31, 136, 208, 1)',
|
|
6
6
|
dark: '#9CA0A94D',
|
|
7
|
-
light: '#0E9346'
|
|
7
|
+
light: '#0E9346',
|
|
8
|
+
contrastText: 'rgba(98, 98, 98, 1)'
|
|
8
9
|
},
|
|
9
10
|
success: {
|
|
10
11
|
light: '#2CCE01',
|
|
11
|
-
main: '
|
|
12
|
-
dark: '
|
|
12
|
+
main: 'rgba(30, 203, 64, 1)',
|
|
13
|
+
dark: 'rgba(59, 65, 82, 1)',
|
|
14
|
+
contrastText: 'rgba(126, 123, 123, 1)'
|
|
13
15
|
},
|
|
14
16
|
common: {
|
|
15
17
|
black: '#000',
|
|
16
18
|
white: '#fff'
|
|
17
19
|
},
|
|
18
20
|
background: {
|
|
19
|
-
paper: '
|
|
20
|
-
default: '
|
|
21
|
+
paper: 'rgba(244, 244, 244, 1)',
|
|
22
|
+
default: 'rgba(255, 255, 255, 1)'
|
|
21
23
|
},
|
|
22
24
|
text: {
|
|
23
|
-
primary: '
|
|
24
|
-
secondary: '
|
|
25
|
-
disabled: '
|
|
25
|
+
primary: 'rgba(75, 72, 71, 1)',
|
|
26
|
+
secondary: 'rgba(159, 159, 159, 1)',
|
|
27
|
+
disabled: 'rgba(32, 35, 43, 1)'
|
|
26
28
|
},
|
|
27
29
|
action: {
|
|
28
30
|
selected: 'rgba(0, 0, 0, 0.08)',
|
|
29
|
-
hover: 'rgba(
|
|
31
|
+
hover: 'rgba(248, 248, 248, 1)',
|
|
32
|
+
active: 'rgba(0, 154, 255, 1)',
|
|
33
|
+
disabled: 'rgba(187, 186, 186, 1)',
|
|
34
|
+
disabledBackground: 'rgba(234, 234, 234, 1)',
|
|
35
|
+
focus: ''
|
|
30
36
|
},
|
|
31
37
|
secondary: {
|
|
32
|
-
light: '
|
|
33
|
-
main: '
|
|
34
|
-
dark: '
|
|
38
|
+
light: 'rgba(126, 126, 126, 1)',
|
|
39
|
+
main: 'rgba(63, 66, 77, 1)',
|
|
40
|
+
dark: 'rgba(250, 250, 250, 1)',
|
|
41
|
+
contrastText: 'rgba(216, 214, 217, 1)'
|
|
35
42
|
},
|
|
36
43
|
error: {
|
|
37
|
-
main: '
|
|
38
|
-
light: '
|
|
39
|
-
dark: '#E937454D'
|
|
44
|
+
main: 'rgba(204, 0, 0, 1)',
|
|
45
|
+
light: 'rgba(237, 27, 36, 1)',
|
|
46
|
+
dark: '#E937454D',
|
|
47
|
+
contrastText: ''
|
|
40
48
|
},
|
|
41
49
|
warning: {
|
|
42
|
-
main: '
|
|
50
|
+
main: 'rgba(255, 122, 0, 1)',
|
|
43
51
|
light: '#FF9F00',
|
|
44
|
-
dark: '#F5A6234D'
|
|
52
|
+
dark: '#F5A6234D',
|
|
53
|
+
contrastText: ''
|
|
45
54
|
},
|
|
46
55
|
info: {
|
|
47
56
|
main: '#808592',
|
|
48
|
-
light: '
|
|
57
|
+
light: 'rgba(239, 239, 239, 1)',
|
|
58
|
+
dark: 'rgba(244, 244, 244, 1)',
|
|
59
|
+
contrastText: 'rgba(187, 186, 186, 1)'
|
|
49
60
|
}
|
|
50
61
|
};
|
|
51
62
|
export var darkPalette = {
|
|
52
63
|
mode: 'dark',
|
|
53
|
-
divider: '
|
|
64
|
+
divider: 'rgba(54, 52, 51, 1)',
|
|
65
|
+
primary: {
|
|
66
|
+
main: '#fff',
|
|
67
|
+
dark: '#9CA0A94D',
|
|
68
|
+
light: '#0E9346',
|
|
69
|
+
contrastText: 'rgba(49, 46, 46, 1)'
|
|
70
|
+
},
|
|
71
|
+
success: {
|
|
72
|
+
light: '#2CCE01',
|
|
73
|
+
main: 'rgba(30, 203, 64, 1)',
|
|
74
|
+
dark: '#3A4155',
|
|
75
|
+
contrastText: 'rgba(138, 138, 138, 1)'
|
|
76
|
+
},
|
|
77
|
+
common: {
|
|
78
|
+
black: '#000',
|
|
79
|
+
white: '#fff'
|
|
80
|
+
},
|
|
54
81
|
background: {
|
|
55
|
-
paper: '
|
|
56
|
-
default: '
|
|
82
|
+
paper: 'rgba(33, 31, 31, 1)',
|
|
83
|
+
default: 'rgba(0, 0, 0, 1)'
|
|
57
84
|
},
|
|
58
85
|
text: {
|
|
59
|
-
primary: '
|
|
86
|
+
primary: 'rgba(33, 31, 31, 1)',
|
|
87
|
+
secondary: 'rgba(159, 159, 159, 1)',
|
|
88
|
+
disabled: 'rgba(98, 98, 98, 1)'
|
|
60
89
|
},
|
|
61
90
|
action: {
|
|
62
91
|
selected: 'rgba(0, 0, 0, 0.08)',
|
|
63
|
-
hover: 'rgba(
|
|
92
|
+
hover: 'rgba(23, 21, 21, 1)',
|
|
93
|
+
active: '#fff',
|
|
94
|
+
disabled: 'rgba(44, 42, 41, 1)',
|
|
95
|
+
disabledBackground: 'rgba(23, 23, 23, 1)',
|
|
96
|
+
focus: ''
|
|
64
97
|
},
|
|
65
|
-
|
|
66
|
-
|
|
98
|
+
secondary: {
|
|
99
|
+
light: 'rgba(159, 159, 159, 1)',
|
|
100
|
+
main: 'rgba(207, 207, 207, 1)',
|
|
101
|
+
dark: 'rgba(250, 250, 250, 1)',
|
|
102
|
+
contrastText: 'rgba(64, 64, 66, 1)'
|
|
103
|
+
},
|
|
104
|
+
error: {
|
|
105
|
+
main: 'rgba(204, 0, 0, 1)',
|
|
106
|
+
light: 'rgba(237, 27, 36, 1)',
|
|
107
|
+
dark: '#E937454D',
|
|
108
|
+
contrastText: ''
|
|
109
|
+
},
|
|
110
|
+
warning: {
|
|
111
|
+
main: 'rgba(255, 122, 0, 1)',
|
|
112
|
+
light: '#FF9F00',
|
|
113
|
+
dark: '#F5A6234D',
|
|
114
|
+
contrastText: ''
|
|
115
|
+
},
|
|
116
|
+
info: {
|
|
117
|
+
main: '#808592',
|
|
118
|
+
light: 'rgba(49, 46, 46, 1)',
|
|
119
|
+
dark: 'rgba(23, 21, 21, 1)',
|
|
120
|
+
contrastText: 'rgba(207, 207, 207, 1)'
|
|
67
121
|
}
|
|
68
122
|
};
|
package/build/theme/shadows.js
CHANGED
|
@@ -2,13 +2,13 @@ export var shadows = [
|
|
|
2
2
|
'none',
|
|
3
3
|
'0 0 0 1px rgb(63 63 68 / 5%), 0 1px 2px 0 rgb(63 63 68 / 15%)',
|
|
4
4
|
'0px 0px 2px rgba(0, 0, 0, 0.08)',
|
|
5
|
-
'0px
|
|
6
|
-
'
|
|
7
|
-
'0px
|
|
8
|
-
'0px
|
|
9
|
-
'0px
|
|
10
|
-
'0px
|
|
11
|
-
'0px
|
|
5
|
+
'0px 0px 8px rgba(0, 0, 0, 0.15)',
|
|
6
|
+
'inset 0 0 6px rgba(0,0,0,0.00)',
|
|
7
|
+
'0px 0px 0px 0px rgba(0, 0, 0, 0.10), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -26px 156px 44px 0px rgba(0, 0, 0, 0.00)',
|
|
8
|
+
'0px 0px 6px rgba(0, 0, 0, 0.11)',
|
|
9
|
+
'0px 0px 5px rgba(0, 0, 0, 0.15)',
|
|
10
|
+
'0px 24px 64px rgba(75, 72, 71, 0.5)',
|
|
11
|
+
'0px 0px 4px 0px rgba(0, 0, 0, 0.10)',
|
|
12
12
|
'0px 6px 6px -3px rgba(0,0,0,0.2),0px 10px 14px 1px rgba(0,0,0,0.14),0px 4px 18px 3px rgba(0,0,0,0.12)',
|
|
13
13
|
'0px 6px 7px -4px rgba(0,0,0,0.2),0px 11px 15px 1px rgba(0,0,0,0.14),0px 4px 20px 3px rgba(0,0,0,0.12)',
|
|
14
14
|
'0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12)',
|
|
@@ -24,8 +24,8 @@ export var typography = {
|
|
|
24
24
|
subtitle1: { fontSize: '1.125rem' },
|
|
25
25
|
subtitle2: { fontSize: '0.875rem' },
|
|
26
26
|
body1: { fontSize: '1rem' },
|
|
27
|
-
body2: { fontSize: '0.
|
|
28
|
-
button: { fontSize: '0.
|
|
27
|
+
body2: { fontSize: '0.9375rem' },
|
|
28
|
+
button: { fontSize: '0.8125rem' },
|
|
29
29
|
caption: { fontSize: '0.75rem' },
|
|
30
|
-
overline: { fontSize: '0.
|
|
30
|
+
overline: { fontSize: '0.5625rem' }
|
|
31
31
|
};
|
package/build/utils/array.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const removeArrayItem: (items: Array<string>, item: string) => st
|
|
|
7
7
|
export declare const splitString: (string: string, splitter?: string) => string[];
|
|
8
8
|
export declare const isInclude: (items: Array<string | number>, item: any) => boolean;
|
|
9
9
|
export declare const findItem: (items: Array<string | number>, key: any) => string | number | undefined;
|
|
10
|
-
export declare const isExist: (items: Array<any>, id: string) => any;
|
|
10
|
+
export declare const isExist: (items: Array<any>, id: string | Array<string>) => any;
|
|
11
11
|
export declare const allAreTruthy: (items: Array<any>, condition: boolean | string, key: string, exclude?: string) => boolean;
|
|
12
12
|
export declare const sortCountries: (countries: Array<CountryCode>) => CountryCode[];
|
|
13
13
|
export declare const findCountryByIso2: (countries: Array<CountryCode>, iso2: string) => CountryCode | undefined;
|
package/build/utils/array.js
CHANGED
|
@@ -98,9 +98,9 @@ export var isExist = function (items, id) {
|
|
|
98
98
|
return items.find(function (_a) {
|
|
99
99
|
var sub = _a.sub, itemID = _a.id;
|
|
100
100
|
if (!sub)
|
|
101
|
-
return itemID === id;
|
|
101
|
+
return typeof id === 'string' ? itemID === id : id.includes(itemID);
|
|
102
102
|
return sub.some(function (item) {
|
|
103
|
-
return item.id === id;
|
|
103
|
+
return typeof id === 'string' ? item.id === id : id.includes(item.id);
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
106
|
};
|
package/build/utils/string.js
CHANGED
|
@@ -51,31 +51,29 @@ export var maskFileName = function (str) {
|
|
|
51
51
|
return first + '....';
|
|
52
52
|
};
|
|
53
53
|
export var getIndividualName = function (name) {
|
|
54
|
-
var _a;
|
|
55
54
|
var nameArray = (name === null || name === void 0 ? void 0 : name.split(' ')) || [];
|
|
56
|
-
|
|
57
|
-
return;
|
|
55
|
+
var length = nameArray.length;
|
|
58
56
|
var first = '';
|
|
59
57
|
var middle = '';
|
|
60
58
|
var last = '';
|
|
61
|
-
if (
|
|
62
|
-
|
|
63
|
-
middle = nameArray[0];
|
|
64
|
-
last = nameArray[0];
|
|
59
|
+
if (length === 0) {
|
|
60
|
+
return;
|
|
65
61
|
}
|
|
66
|
-
else if (
|
|
67
|
-
first = nameArray[0];
|
|
68
|
-
last = nameArray[1];
|
|
62
|
+
else if (length === 1) {
|
|
63
|
+
first = middle = last = nameArray[0];
|
|
69
64
|
}
|
|
70
|
-
else if (
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
else if (length === 2) {
|
|
66
|
+
;
|
|
67
|
+
first = nameArray[0], last = nameArray[1];
|
|
68
|
+
}
|
|
69
|
+
else if (length === 3) {
|
|
70
|
+
;
|
|
71
|
+
first = nameArray[0], middle = nameArray[1], last = nameArray[2];
|
|
74
72
|
}
|
|
75
73
|
else {
|
|
76
74
|
first = nameArray[0];
|
|
77
|
-
middle =
|
|
78
|
-
last = nameArray[
|
|
75
|
+
middle = nameArray.slice(1, length - 1).join(' ');
|
|
76
|
+
last = nameArray[length - 1];
|
|
79
77
|
}
|
|
80
78
|
return { first: first, middle: middle, last: last };
|
|
81
79
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-test",
|
|
4
4
|
"description": "connect library, auth",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"@babel/preset-react": "^7.18.6",
|
|
36
36
|
"@babel/preset-typescript": "^7.18.6",
|
|
37
37
|
"@types/lodash-es": "^4.17.6",
|
|
38
|
+
"@types/moment-hijri": "~2.1.0",
|
|
38
39
|
"@types/react": "^18.0.15",
|
|
39
40
|
"@types/react-calendar": "~3.5.1",
|
|
40
41
|
"@types/react-dom": "^18.0.6",
|
|
@@ -91,6 +92,7 @@
|
|
|
91
92
|
"lodash-es": "^4.17.21",
|
|
92
93
|
"lottie-web": "^5.9.6",
|
|
93
94
|
"moment": "^2.29.4",
|
|
95
|
+
"moment-hijri": "~2.1.2",
|
|
94
96
|
"react": "^18.2.0",
|
|
95
97
|
"react-calendar": "~3.7.0",
|
|
96
98
|
"react-device-detect": "^2.2.2",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface ExpectedSalesRangeProps {
|
|
3
|
-
show: boolean;
|
|
4
|
-
onListOpen?: () => void;
|
|
5
|
-
onListClose?: () => void;
|
|
6
|
-
readOnly?: boolean;
|
|
7
|
-
isVerified?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const ExpectedSalesRange: ({ show, onListClose, onListOpen, readOnly, isVerified }: ExpectedSalesRangeProps) => JSX.Element;
|
|
10
|
-
export default ExpectedSalesRange;
|