@tap-payments/auth-jsconnect 2.5.22-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 +12 -6
- 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
|
@@ -21,7 +21,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
21
21
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
22
|
import React from 'react';
|
|
23
23
|
import Box from '@mui/material/Box';
|
|
24
|
-
import {
|
|
24
|
+
import { styled } from '@mui/material/styles';
|
|
25
25
|
import { useTranslation } from 'react-i18next';
|
|
26
26
|
import { useLanguage } from '../../../hooks';
|
|
27
27
|
import Text from '../../../components/Text';
|
|
@@ -29,10 +29,11 @@ import CheckBox from '../../../components/CheckBox';
|
|
|
29
29
|
import Warning from '../../../components/Warning';
|
|
30
30
|
import Collapse from '../../../components/Collapse';
|
|
31
31
|
import { findFirstId } from '../../../utils';
|
|
32
|
+
import Mandatory from '../../shared/Mandatory';
|
|
32
33
|
import SaleChannelIconsInput from './SaleChannelIconsInput';
|
|
33
|
-
var InputLabelStyled = styled(Text)(function (_a) {
|
|
34
|
+
export var InputLabelStyled = styled(Text)(function (_a) {
|
|
34
35
|
var theme = _a.theme;
|
|
35
|
-
return (__assign({ margin: theme.spacing(
|
|
36
|
+
return (__assign({ margin: theme.spacing(3, 0, 0.875, 0), color: theme.palette.secondary.main }, theme.typography.body1));
|
|
36
37
|
});
|
|
37
38
|
var ContainerStyled = styled(Box)(function (_a) {
|
|
38
39
|
var theme = _a.theme;
|
|
@@ -40,34 +41,20 @@ var ContainerStyled = styled(Box)(function (_a) {
|
|
|
40
41
|
display: 'flex',
|
|
41
42
|
flexDirection: 'row',
|
|
42
43
|
alignItems: 'center',
|
|
43
|
-
padding: theme.spacing(0, 0.5, 0, 0.5),
|
|
44
44
|
height: theme.spacing(3.625),
|
|
45
45
|
marginBlockEnd: theme.spacing(0.2)
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
|
-
var TextStyled = styled(Text)(function (_a) {
|
|
49
|
-
var theme = _a.theme;
|
|
50
|
-
return (__assign(
|
|
48
|
+
var TextStyled = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'checked'; } })(function (_a) {
|
|
49
|
+
var theme = _a.theme, checked = _a.checked;
|
|
50
|
+
return (__assign({ color: checked ? theme.palette.secondary.main : theme.palette.secondary.light, fontWeight: theme.typography.fontWeightLight, whiteSpace: 'pre' }, theme.typography.caption));
|
|
51
51
|
});
|
|
52
52
|
var CheckBoxStyled = styled(CheckBox)(function (_a) {
|
|
53
|
-
var theme = _a.theme
|
|
53
|
+
var theme = _a.theme;
|
|
54
54
|
return ({
|
|
55
|
-
|
|
56
|
-
marginInlineEnd: theme.spacing(-1),
|
|
57
|
-
opacity: disabled ? 0.6 : 1,
|
|
58
|
-
'& .MuiSvgIcon-root': {
|
|
59
|
-
fontSize: 30
|
|
60
|
-
},
|
|
61
|
-
'&.Mui-checked': {
|
|
62
|
-
color: theme.palette.text.primary,
|
|
63
|
-
borderRadius: theme.spacing(2.5)
|
|
64
|
-
}
|
|
55
|
+
marginInlineStart: theme.spacing(-1.125)
|
|
65
56
|
});
|
|
66
57
|
});
|
|
67
|
-
var MandatoryStyled = styled('span')(function (_a) {
|
|
68
|
-
var theme = _a.theme;
|
|
69
|
-
return (__assign(__assign({ color: alpha(theme.palette.error.light, 0.4) }, theme.typography.h6), { fontWeight: theme.typography.fontWeightLight, verticalAlign: 'sub' }));
|
|
70
|
-
});
|
|
71
58
|
var CollapseStyled = styled(Collapse)(function (_a) {
|
|
72
59
|
var theme = _a.theme;
|
|
73
60
|
return ({
|
|
@@ -146,9 +133,9 @@ var SalesChannel = function (_a) {
|
|
|
146
133
|
var id = _a.id;
|
|
147
134
|
return id === activeSaleIconId;
|
|
148
135
|
}); }, [selectedSalas, activeSaleIconId]);
|
|
149
|
-
return (_jsxs(_Fragment, { children: [_jsxs(Box, __assign({ sx: {
|
|
136
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Box, __assign({ sx: { ml: 3, mr: 3 } }, { children: [_jsxs(InputLabelStyled, { children: [t('channel_of_service'), " ", _jsx(Mandatory, {})] }), list.map(function (channel, index) {
|
|
150
137
|
var _a, _b;
|
|
151
|
-
return (_jsxs(ContainerStyled, { children: [_jsx(CheckBoxStyled, { id: channel.id, disableRipple: true, disabled: disabled || readOnly, disableFocusRipple: true, focusRipple: false, checked: isChecked(channel.id), onChange: function () { return onSelectSalesChannel(channel); } }), _jsxs(TextStyled, { children: [isAr ? (_a = channel === null || channel === void 0 ? void 0 : channel.name) === null || _a === void 0 ? void 0 : _a.ar : (_b = channel === null || channel === void 0 ? void 0 : channel.name) === null || _b === void 0 ? void 0 : _b.en, " "] })] }, "".concat(channel.id, "-indx").concat(index)));
|
|
138
|
+
return (_jsxs(ContainerStyled, { children: [_jsx(CheckBoxStyled, { id: channel.id, disableRipple: true, disabled: disabled || readOnly, disableFocusRipple: true, focusRipple: false, checked: isChecked(channel.id), onChange: function () { return onSelectSalesChannel(channel); } }), _jsxs(TextStyled, __assign({ checked: isChecked(channel.id) }, { children: [isAr ? (_a = channel === null || channel === void 0 ? void 0 : channel.name) === null || _a === void 0 ? void 0 : _a.ar : (_b = channel === null || channel === void 0 ? void 0 : channel.name) === null || _b === void 0 ? void 0 : _b.en, " "] }))] }, "".concat(channel.id, "-indx").concat(index)));
|
|
152
139
|
}), _jsx(CollapseStyled, __assign({ in: error === 'choose_atleast_one_channel' }, { children: _jsx(Warning, __assign({ warningType: 'alert' }, { children: t(error) })) }))] }), 'salesChannels'), _jsx(SaleChannelIconsInput, { readOnly: readOnly, error: error, selectedIconId: activeSaleIconId, onSelectIcon: onChangeActiveSaleIcon, onChangeValue: onValueChange, selectedChannels: selectedSalas, isVerified: isChannelVerified === null || isChannelVerified === void 0 ? void 0 : isChannelVerified(activeSaleIconId, selectedChannel) }, 'saleChannelIconsInput')] }));
|
|
153
140
|
};
|
|
154
141
|
export default React.memo(SalesChannel);
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
3
|
interface SearchProps {
|
|
3
4
|
showSearch?: boolean;
|
|
4
5
|
placeholder?: string;
|
|
5
6
|
onSearchValue?: (value: string) => void;
|
|
7
|
+
sx?: SxProps<Theme>;
|
|
6
8
|
}
|
|
7
|
-
declare const Search: ({ onSearchValue, placeholder }: SearchProps) => JSX.Element;
|
|
9
|
+
declare const Search: ({ onSearchValue, placeholder, sx }: SearchProps) => JSX.Element;
|
|
8
10
|
export default Search;
|
|
@@ -1,13 +1,49 @@
|
|
|
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
|
-
import
|
|
15
|
+
import { styled, alpha } from '@mui/material/styles';
|
|
16
|
+
import { ThemeMode } from '../../../@types';
|
|
17
|
+
import TextField from '../../shared/TextField';
|
|
18
|
+
import SearchIcon from '../SearchIcon';
|
|
19
|
+
var TextFieldStyled = styled(TextField)(function (_a) {
|
|
20
|
+
var theme = _a.theme;
|
|
21
|
+
return ({
|
|
22
|
+
'& .MuiFilledInput-root': {
|
|
23
|
+
background: theme.palette.mode === ThemeMode.DARK ? "".concat(alpha(theme.palette.common.black, 0.7), " !important") : "".concat(theme.palette.secondary.dark, " !important"),
|
|
24
|
+
border: "1px solid ".concat(alpha(theme.palette.text.secondary, 0.3), " !important"),
|
|
25
|
+
boxShadow: 'none',
|
|
26
|
+
paddingInlineEnd: theme.spacing(1.5)
|
|
27
|
+
},
|
|
28
|
+
label: {
|
|
29
|
+
lineHeight: '1.4',
|
|
30
|
+
top: '-6px'
|
|
31
|
+
},
|
|
32
|
+
input: {
|
|
33
|
+
height: theme.spacing(5),
|
|
34
|
+
paddingTop: '0px',
|
|
35
|
+
paddingBottom: '0px',
|
|
36
|
+
marginTop: theme.spacing(0.5),
|
|
37
|
+
marginBottom: theme.spacing(-0.75)
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
});
|
|
5
41
|
var Search = function (_a) {
|
|
6
|
-
var onSearchValue = _a.onSearchValue, placeholder = _a.placeholder;
|
|
42
|
+
var onSearchValue = _a.onSearchValue, placeholder = _a.placeholder, sx = _a.sx;
|
|
7
43
|
var t = useTranslation().t;
|
|
8
44
|
var handleOnChange = function (event) {
|
|
9
45
|
onSearchValue === null || onSearchValue === void 0 ? void 0 : onSearchValue(event.target.value);
|
|
10
46
|
};
|
|
11
|
-
return (_jsx(React.Fragment, { children: _jsx(
|
|
47
|
+
return (_jsx(React.Fragment, { children: _jsx(TextFieldStyled, { boxSx: __assign({ pl: 1, pt: 2, pr: 1, pb: 0 }, sx), InputProps: { endAdornment: _jsx(SearchIcon, {}) }, label: t(placeholder || 'search_placeholder'), onChange: handleOnChange }) }));
|
|
12
48
|
};
|
|
13
49
|
export default Search;
|
|
@@ -10,17 +10,16 @@ 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 '../../../components/Icon';
|
|
14
13
|
import { styled } from '@mui/material/styles';
|
|
14
|
+
import { ThemeMode } from '../../../@types';
|
|
15
|
+
import Icon from '../../../components/Icon';
|
|
15
16
|
import { ICONS_NAMES } from '../../../constants';
|
|
16
17
|
var SearchIcon = styled(Icon)(function (_a) {
|
|
17
18
|
var theme = _a.theme;
|
|
18
|
-
return ({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
cursor: 'pointer'
|
|
22
|
-
});
|
|
19
|
+
return (__assign({ display: 'flex', width: theme.spacing(2), height: theme.spacing(2) }, (theme.palette.mode === ThemeMode.DARK && {
|
|
20
|
+
filter: 'brightness(0) invert(1)'
|
|
21
|
+
})));
|
|
23
22
|
});
|
|
24
23
|
export default function CustomSearchIcon(props) {
|
|
25
|
-
return _jsx(SearchIcon, __assign({ src: ICONS_NAMES.
|
|
24
|
+
return _jsx(SearchIcon, __assign({ src: ICONS_NAMES.search }, props));
|
|
26
25
|
}
|
|
@@ -13,7 +13,7 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import { memo, useEffect, useState } from 'react';
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
15
15
|
import { styled } from '@mui/material/styles';
|
|
16
|
-
import { MerchantStatus } from '../../../@types';
|
|
16
|
+
import { MerchantStatus, ThemeMode } from '../../../@types';
|
|
17
17
|
import { FlowsButtons } from '../../shared/Button';
|
|
18
18
|
import { ICONS_NAMES, PASSWORD_OPERATION_TYPE } from '../../../constants';
|
|
19
19
|
import { useAppSelector, useLanguage } from '../../../hooks';
|
|
@@ -26,12 +26,16 @@ import AcceptancePayouts from '../AcceptancePayouts';
|
|
|
26
26
|
var TitleStyled = styled(Text)(function (_a) {
|
|
27
27
|
var _b;
|
|
28
28
|
var theme = _a.theme;
|
|
29
|
-
return (__assign(__assign({}, theme.typography.body1), (_b = { fontWeight: theme.typography.fontWeightBold, color: theme.palette.
|
|
29
|
+
return (__assign(__assign({}, theme.typography.body1), (_b = { fontWeight: theme.typography.fontWeightBold, color: theme.palette.mode === ThemeMode.DARK ? theme.palette.secondary.main : theme.palette.success.dark, paddingBottom: theme.spacing(3) }, _b[theme.breakpoints.down('sm')] = {}, _b)));
|
|
30
|
+
});
|
|
31
|
+
var SubTitleStyled = styled(Text)(function (_a) {
|
|
32
|
+
var theme = _a.theme;
|
|
33
|
+
return (__assign(__assign({}, theme.typography.caption), { marginTop: theme.spacing(3), color: theme.palette.mode === ThemeMode.DARK ? theme.palette.secondary.main : theme.palette.text.primary, fontWeight: theme.typography.fontWeightRegular, lineHeight: '16.8px', textAlign: 'center' }));
|
|
30
34
|
});
|
|
31
35
|
var ContainerStyled = styled(Container)(function (_a) {
|
|
32
36
|
var theme = _a.theme;
|
|
33
37
|
return ({
|
|
34
|
-
justifyContent: '
|
|
38
|
+
justifyContent: 'center',
|
|
35
39
|
minHeight: theme.spacing(30),
|
|
36
40
|
alignItems: 'center'
|
|
37
41
|
});
|
|
@@ -85,6 +89,15 @@ var SuccessFlowButtons = function (_a) {
|
|
|
85
89
|
var status = name === 'password' ? flowStatus : (_b = flowsDetails.find(function (flow) { return flow.name === name; })) === null || _b === void 0 ? void 0 : _b.status;
|
|
86
90
|
var type = status === 'reviewed' || status === 'completed' || status === 'complete' || status === 'verified' ? 'completed' : 'pending';
|
|
87
91
|
var title = t("".concat(name, "_flow_").concat(type), {
|
|
92
|
+
individual_name: t('individual'),
|
|
93
|
+
brand: t('brand'),
|
|
94
|
+
business_type: t('entity'),
|
|
95
|
+
license_number: t('license_number'),
|
|
96
|
+
bank_name: t('bank'),
|
|
97
|
+
iban: t('iban'),
|
|
98
|
+
tax_id: t('tax')
|
|
99
|
+
});
|
|
100
|
+
var subtitle = t("".concat(name, "_flow_").concat(type), {
|
|
88
101
|
individual_name: (is_authorized && count > 1 ? t('company_individuals_details', { count: count }) : username.toLowerCase() + maskedId) || t('individual'),
|
|
89
102
|
brand: brandName,
|
|
90
103
|
business_type: entityLegalName,
|
|
@@ -95,16 +108,18 @@ var SuccessFlowButtons = function (_a) {
|
|
|
95
108
|
});
|
|
96
109
|
var isCompleted = status === 'verified' && name !== 'password';
|
|
97
110
|
var isIndividual = name === 'individual';
|
|
98
|
-
var
|
|
99
|
-
var
|
|
111
|
+
var darkSrc = isCompleted ? "".concat(name, "_icon_completed") : "".concat(name, "_icon_dark");
|
|
112
|
+
var src = isCompleted ? "".concat(name, "_icon_completed") : "".concat(name, "_icon");
|
|
100
113
|
return {
|
|
101
114
|
token: token,
|
|
102
115
|
name: name,
|
|
103
116
|
status: status,
|
|
104
117
|
title: title,
|
|
118
|
+
subtitle: subtitle,
|
|
105
119
|
href: url,
|
|
106
120
|
src: images[src],
|
|
107
|
-
|
|
121
|
+
darkSrc: images[darkSrc],
|
|
122
|
+
hoverSrc: images[src],
|
|
108
123
|
isCompleted: isCompleted,
|
|
109
124
|
sx: isIndividual ? { textTransform: 'capitalize' } : {}
|
|
110
125
|
};
|
|
@@ -125,12 +140,12 @@ var SuccessFlowButtons = function (_a) {
|
|
|
125
140
|
}
|
|
126
141
|
}
|
|
127
142
|
}, [flows, isAr]);
|
|
128
|
-
return (_jsxs(ContainerStyled, { children: [_jsxs(TitleStyled, { children: [t('account_details'), " "] }), _jsx(AcceptancePayouts, { showAcceptance: isAcceptance, showPayout: isPayout }), _jsx(ButtonGroupStyled, { children: _jsx(FlowsButtons, { buttons: buttons, data: {
|
|
143
|
+
return (_jsxs(ContainerStyled, __assign({ sx: { ml: 3, mr: 3 } }, { children: [_jsxs(TitleStyled, { children: [t('account_details'), " "] }), _jsx(AcceptancePayouts, { showAcceptance: isAcceptance, showPayout: isPayout }), _jsx(SubTitleStyled, { children: t('flows_description') }), _jsx(ButtonGroupStyled, { children: _jsx(FlowsButtons, { buttons: buttons, data: {
|
|
129
144
|
flowName: flowName,
|
|
130
145
|
email: email || '',
|
|
131
146
|
emailUrl: url,
|
|
132
147
|
brandName: shortenBrand(brandName),
|
|
133
148
|
isAuthorizedUser: is_authorized
|
|
134
|
-
} }) })] }));
|
|
149
|
+
} }) })] })));
|
|
135
150
|
};
|
|
136
151
|
export default memo(SuccessFlowButtons);
|
|
@@ -11,31 +11,31 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import Box from '@mui/material/Box/Box';
|
|
14
|
-
import { styled } from '@mui/material/styles';
|
|
14
|
+
import { styled, useTheme } from '@mui/material/styles';
|
|
15
15
|
import * as React from 'react';
|
|
16
16
|
import { useTranslation } from 'react-i18next';
|
|
17
17
|
import Text from '../../../components/Text';
|
|
18
18
|
import Button from '../../../components/Button';
|
|
19
|
-
import Container from '../Containers/ScreenContainer';
|
|
20
19
|
import { EmailProvidersButton, SuccessButton } from '../../shared/Button';
|
|
21
20
|
import Icon from '../../../components/Icon';
|
|
22
21
|
import { ICONS_NAMES } from '../../../constants';
|
|
23
22
|
import { useLanguage } from '../../../hooks';
|
|
23
|
+
import { ThemeMode } from '../../../@types';
|
|
24
|
+
import Container from '../Containers/ScreenContainer';
|
|
24
25
|
var MailBoxStyled = styled(Box)(function () { return ({
|
|
25
26
|
width: '100%'
|
|
26
27
|
}); });
|
|
27
28
|
var TitleStyled = styled(Text)(function (_a) {
|
|
28
29
|
var theme = _a.theme;
|
|
29
|
-
return (__assign(__assign({}, theme.typography.
|
|
30
|
+
return (__assign(__assign({}, theme.typography.h6), { fontWeight: 600, color: theme.palette.mode === ThemeMode.DARK ? theme.palette.secondary.main : theme.palette.text.primary, marginBlockEnd: theme.spacing(3), padding: theme.spacing(0, 3), textAlign: 'center' }));
|
|
30
31
|
});
|
|
31
32
|
var DescriptionStyled = styled(Text)(function (_a) {
|
|
32
33
|
var theme = _a.theme;
|
|
33
|
-
return (__assign(__assign({}, theme.typography.
|
|
34
|
+
return (__assign(__assign({}, theme.typography.body1), { fontWeight: theme.typography.fontWeightMedium, textAlign: 'center', color: theme.palette.text.secondary, marginBlockEnd: theme.spacing(3), padding: theme.spacing(0, 3) }));
|
|
34
35
|
});
|
|
35
36
|
var ContainerStyled = styled(Container)(function (_a) {
|
|
36
37
|
var theme = _a.theme;
|
|
37
38
|
return ({
|
|
38
|
-
justifyContent: 'space-between',
|
|
39
39
|
minHeight: theme.spacing(30),
|
|
40
40
|
alignItems: 'center',
|
|
41
41
|
pointerEvents: 'auto'
|
|
@@ -50,7 +50,8 @@ var IconStyled = styled(Icon)(function (_a) {
|
|
|
50
50
|
marginBlockEnd: theme.spacing(3.25)
|
|
51
51
|
},
|
|
52
52
|
_b[theme.breakpoints.down('sm')] = {
|
|
53
|
-
marginBlock: theme.spacing(3.25)
|
|
53
|
+
marginBlock: theme.spacing(3.25),
|
|
54
|
+
marginTop: theme.spacing(0)
|
|
54
55
|
},
|
|
55
56
|
_b);
|
|
56
57
|
});
|
|
@@ -58,6 +59,7 @@ var ThankYou = function (_a) {
|
|
|
58
59
|
var title = _a.title, description = _a.description, showEmailProviders = _a.showEmailProviders, onSuccess = _a.onSuccess, successTitle = _a.successTitle, loading = _a.loading, error = _a.error, enableBack = _a.enableBack, onBack = _a.onBack;
|
|
59
60
|
var t = useTranslation().t;
|
|
60
61
|
var isAr = useLanguage().isAr;
|
|
61
|
-
|
|
62
|
+
var theme = useTheme();
|
|
63
|
+
return (_jsxs(ContainerStyled, { children: [_jsx(IconStyled, { src: theme.palette.mode === ThemeMode.DARK ? ICONS_NAMES.success_screen_dark : ICONS_NAMES.success_screen, alt: 'loading...' }), title && _jsxs(TitleStyled, { children: [title, " "] }), _jsx(DescriptionStyled, { children: description }), showEmailProviders && (_jsx(MailBoxStyled, { children: _jsx(EmailProvidersButton, { gmail: { title: t('gmail_btn_open_title'), href: 'https://mail.google.com/mail/u/0/#inbox' }, outlook: { title: t('outlook_btn_open_title'), href: 'https://outlook.live.com/mail/0/' }, apple: { title: t('apple_btn_open_title'), href: 'mailto:' }, mail: { title: t('mail_btn_open_title'), href: 'mailto:' } }) })), onSuccess && !showEmailProviders && (_jsx(MailBoxStyled, { children: _jsx(SuccessButton, __assign({ onClick: onSuccess, disableBack: true, disableNextIcon: true, disabled: loading, isAr: isAr, loading: loading, variant: 'contained', error: t(error || '') }, { children: t(successTitle || '') })) })), enableBack && (_jsx(Button, __assign({ sx: { mb: 1.5, mt: 0 }, onClick: function () { return onBack === null || onBack === void 0 ? void 0 : onBack(); }, variant: 'text' }, { children: t('back') })))] }));
|
|
62
64
|
};
|
|
63
65
|
export default React.memo(ThankYou);
|
|
@@ -1,29 +1,19 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
import { TextFieldProps } from '../../../components/TextField';
|
|
4
|
+
export declare const BoxStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
3
5
|
children?: React.ReactNode;
|
|
4
6
|
component?: React.ElementType<any> | undefined;
|
|
5
7
|
ref?: React.Ref<unknown> | undefined;
|
|
6
|
-
sx?:
|
|
8
|
+
sx?: SxProps<Theme> | undefined;
|
|
7
9
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
8
10
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
error?: string;
|
|
19
|
-
progress?: number;
|
|
20
|
-
isSubmitting?: boolean;
|
|
21
|
-
isUploading?: boolean;
|
|
22
|
-
isFileUploaded?: boolean;
|
|
23
|
-
onFileUploaded: (files: Array<File>) => void;
|
|
24
|
-
onReset: () => void;
|
|
25
|
-
initialFileName?: string;
|
|
26
|
-
multiple?: boolean;
|
|
27
|
-
}
|
|
28
|
-
declare const UploadFile: ({ label, required, title, subTitle, dragDescription, uploadingTitle, successTitle, isSubmitting, isUploading, isFileUploaded, error, progress, onFileUploaded, onReset, initialFileName, multiple }: UploadFileProps) => JSX.Element;
|
|
29
|
-
export default UploadFile;
|
|
11
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
12
|
+
export declare const TextStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
13
|
+
show: boolean;
|
|
14
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
15
|
+
export declare const IconStyled: import("@emotion/styled").StyledComponent<import("../../../components/Icon").IconProps & React.RefAttributes<HTMLImageElement> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
16
|
+
export declare type CustomInputProps = TextFieldProps & {
|
|
17
|
+
boxSx?: SxProps<Theme>;
|
|
18
|
+
};
|
|
19
|
+
export default function CustomInput({ boxSx, placeholder, helperText, ...rest }: CustomInputProps): JSX.Element;
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { styled } from '@mui/material/styles';
|
|
25
|
+
import Box from '@mui/material/Box';
|
|
26
|
+
import TextField from '../../../components/TextField';
|
|
27
|
+
import { ICONS_NAMES } from '../../../constants';
|
|
28
|
+
import Icon from '../../../components/Icon';
|
|
29
|
+
export var BoxStyled = styled(Box)(function (_a) {
|
|
30
|
+
var theme = _a.theme;
|
|
31
|
+
return ({
|
|
32
|
+
padding: theme.spacing(0, 3, 0, 3)
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
export var TextStyled = styled('span', { shouldForwardProp: function (prop) { return prop !== 'show'; } })(function (_a) {
|
|
36
|
+
var show = _a.show, theme = _a.theme;
|
|
37
|
+
return ({
|
|
38
|
+
display: show ? 'inherit' : 'none',
|
|
39
|
+
marginTop: theme.spacing(1)
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
export var IconStyled = styled(Icon)(function (_a) {
|
|
43
|
+
var theme = _a.theme;
|
|
44
|
+
return ({
|
|
45
|
+
width: theme.spacing(1.5),
|
|
46
|
+
height: theme.spacing(1.5),
|
|
47
|
+
verticalAlign: 'text-bottom',
|
|
48
|
+
marginInlineEnd: theme.spacing(0.5)
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
var InputStyled = styled(TextField)(function (_a) {
|
|
52
|
+
var theme = _a.theme, inputProps = _a.inputProps;
|
|
53
|
+
return (__assign({ width: '100%', direction: theme.direction }, ((inputProps === null || inputProps === void 0 ? void 0 : inputProps.readOnly) && {
|
|
54
|
+
cursor: 'default',
|
|
55
|
+
'& .MuiFilledInput-root': {
|
|
56
|
+
background: "".concat(theme.palette.action.disabledBackground, " !important")
|
|
57
|
+
}
|
|
58
|
+
})));
|
|
59
|
+
});
|
|
60
|
+
export default function CustomInput(_a) {
|
|
61
|
+
var boxSx = _a.boxSx, placeholder = _a.placeholder, helperText = _a.helperText, rest = __rest(_a, ["boxSx", "placeholder", "helperText"]);
|
|
62
|
+
return (_jsx(BoxStyled, __assign({ sx: boxSx }, { children: _jsx(InputStyled, __assign({}, rest, { placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.toString(), fullWidth: true, error: !!helperText, helperText: _jsxs(TextStyled, __assign({ show: !!helperText }, { children: [_jsx(IconStyled, { src: ICONS_NAMES.error_icon }), helperText] })) })) })));
|
|
63
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CustomInputProps } from '../../shared/TextField';
|
|
3
|
+
export declare const InputStyled: import("@emotion/styled").StyledComponent<CustomInputProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
4
|
+
export default function TextFieldSelect(props: CustomInputProps): JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { styled } from '@mui/material/styles';
|
|
14
|
+
import Input from '../../shared/TextField';
|
|
15
|
+
export var InputStyled = styled(Input)(function (_a) {
|
|
16
|
+
var inputProps = _a.inputProps;
|
|
17
|
+
return ({
|
|
18
|
+
'& .MuiInputBase-input': {
|
|
19
|
+
cursor: (inputProps === null || inputProps === void 0 ? void 0 : inputProps.readOnly) ? 'default' : 'pointer',
|
|
20
|
+
WebkitTextFillColor: 'inherit',
|
|
21
|
+
caretColor: 'transparent'
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
export default function TextFieldSelect(props) {
|
|
26
|
+
var handleFocus = function (event) {
|
|
27
|
+
event.target.blur();
|
|
28
|
+
if (props.onFocus)
|
|
29
|
+
props.onFocus(event);
|
|
30
|
+
};
|
|
31
|
+
return _jsx(InputStyled, __assign({}, props, { inputMode: 'none', onFocus: handleFocus }));
|
|
32
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export declare type TitleDescriptionProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
};
|
|
8
|
+
declare const TitleDescription: ({ title, description, sx }: TitleDescriptionProps) => JSX.Element;
|
|
9
|
+
export default TitleDescription;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useTranslation } from 'react-i18next';
|
|
14
|
+
import Box from '@mui/material/Box';
|
|
15
|
+
import { styled } from '@mui/material/styles';
|
|
16
|
+
import { useAppSelector } from '../../../hooks';
|
|
17
|
+
import { settingsSelector } from '../../../app/settings';
|
|
18
|
+
import { ThemeMode } from '../../../@types';
|
|
19
|
+
import Icon from '../../../components/Icon';
|
|
20
|
+
var BoxStyled = styled(Box)(function (_a) {
|
|
21
|
+
var theme = _a.theme;
|
|
22
|
+
return ({
|
|
23
|
+
display: 'flex',
|
|
24
|
+
flexDirection: 'row',
|
|
25
|
+
background: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.black : theme.palette.common.white,
|
|
26
|
+
borderBottom: "1px solid ".concat(theme.palette.divider),
|
|
27
|
+
borderRadius: theme.spacing(1.5, 1.5, 0, 0),
|
|
28
|
+
padding: theme.spacing(1.75, 3, 1.75, 3),
|
|
29
|
+
marginBottom: theme.spacing(3),
|
|
30
|
+
zIndex: '99999',
|
|
31
|
+
justifyContent: 'start',
|
|
32
|
+
width: '100%'
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
var ContainerStyled = styled(Box)(function (_a) {
|
|
36
|
+
var theme = _a.theme;
|
|
37
|
+
return ({
|
|
38
|
+
display: 'flex',
|
|
39
|
+
flexDirection: 'column',
|
|
40
|
+
gap: theme.spacing(0.375)
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
var TitleStyled = styled('span')(function (_a) {
|
|
44
|
+
var theme = _a.theme;
|
|
45
|
+
return ({
|
|
46
|
+
color: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.white : theme.palette.text.primary,
|
|
47
|
+
fontWeight: 400,
|
|
48
|
+
fontSize: theme.spacing(2.25)
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
var DescStyled = styled('span')(function (_a) {
|
|
52
|
+
var theme = _a.theme;
|
|
53
|
+
return ({
|
|
54
|
+
color: theme.palette.text.secondary,
|
|
55
|
+
fontWeight: 400,
|
|
56
|
+
fontSize: theme.spacing(1.5)
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
var IconStyled = styled(Icon)(function (_a) {
|
|
60
|
+
var theme = _a.theme;
|
|
61
|
+
return ({
|
|
62
|
+
width: theme.spacing(5),
|
|
63
|
+
height: theme.spacing(5),
|
|
64
|
+
background: theme.palette.mode === ThemeMode.DARK ? theme.palette.background.paper : theme.palette.common.white,
|
|
65
|
+
boxShadow: theme.shadows[7],
|
|
66
|
+
borderRadius: theme.spacing(12.5),
|
|
67
|
+
marginInlineEnd: theme.spacing(1)
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
var TitleDescription = function (_a) {
|
|
71
|
+
var title = _a.title, description = _a.description, sx = _a.sx;
|
|
72
|
+
var t = useTranslation().t;
|
|
73
|
+
var data = useAppSelector(settingsSelector).data;
|
|
74
|
+
var isTapOrigin = data.isTapOrigin, merchant = data.merchant;
|
|
75
|
+
return (_jsxs(BoxStyled, __assign({ sx: sx }, { children: [!isTapOrigin && (merchant === null || merchant === void 0 ? void 0 : merchant.logo) && _jsx(IconStyled, { src: merchant === null || merchant === void 0 ? void 0 : merchant.logo }), _jsxs(ContainerStyled, { children: [_jsx(TitleStyled, { children: t(title) }), description && _jsx(DescStyled, { children: t(description) })] })] })));
|
|
76
|
+
};
|
|
77
|
+
export default TitleDescription;
|