@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
|
@@ -0,0 +1,52 @@
|
|
|
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 React from 'react';
|
|
25
|
+
import Box from '@mui/material/Box';
|
|
26
|
+
import { styled } from '@mui/material/styles';
|
|
27
|
+
import TitleDescription from '../../shared/TitleDescription';
|
|
28
|
+
import Header from '../Header';
|
|
29
|
+
var BoxStyled = styled(Box)(function (_a) {
|
|
30
|
+
var theme = _a.theme;
|
|
31
|
+
return ({
|
|
32
|
+
display: 'flex',
|
|
33
|
+
flexDirection: 'column',
|
|
34
|
+
direction: theme.direction,
|
|
35
|
+
fontFamily: theme.typography.fontFamily,
|
|
36
|
+
overflow: 'hidden'
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var ContentBoxStyled = styled(Box)(function (_a) {
|
|
40
|
+
var theme = _a.theme;
|
|
41
|
+
return ({
|
|
42
|
+
zIndex: 99999,
|
|
43
|
+
width: '100%',
|
|
44
|
+
backgroundColor: theme.palette.background.paper,
|
|
45
|
+
borderRadius: theme.spacing(1.5, 1.5, 0, 0)
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
var ContainerWithHeader = React.forwardRef(function (_a, ref) {
|
|
49
|
+
var onBack = _a.onBack, headerSx = _a.headerSx, title = _a.title, description = _a.description, titleBoxSx = _a.titleBoxSx, rest = __rest(_a, ["onBack", "headerSx", "title", "description", "titleBoxSx"]);
|
|
50
|
+
return (_jsxs(BoxStyled, __assign({}, rest, { ref: ref, id: 'main-screen-containers-with-headers' }, { children: [_jsx(Header, { onBack: onBack, headerSx: headerSx }), _jsxs(ContentBoxStyled, { children: [_jsx(TitleDescription, { sx: titleBoxSx, title: title, description: description }), rest.children] })] })));
|
|
51
|
+
});
|
|
52
|
+
export default ContainerWithHeader;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BoxProps } from '@mui/material/Box';
|
|
3
3
|
interface FeatureContainerProps extends BoxProps {
|
|
4
|
-
isMaturityExpress?: boolean;
|
|
5
4
|
}
|
|
6
|
-
declare const FeatureContainer: React.ForwardRefExoticComponent<Pick<FeatureContainerProps, "className" | "style" | "classes" | "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" | "translate" | "slot" | "title" | "children" | "component" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"
|
|
5
|
+
declare const FeatureContainer: React.ForwardRefExoticComponent<Pick<FeatureContainerProps, "className" | "style" | "classes" | "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" | "translate" | "slot" | "title" | "children" | "component" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<unknown>>;
|
|
7
6
|
export default FeatureContainer;
|
|
@@ -13,13 +13,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
15
|
import Box from '@mui/material/Box';
|
|
16
|
-
var Container = styled(Box
|
|
16
|
+
var Container = styled(Box)(function (_a) {
|
|
17
17
|
var _b;
|
|
18
|
-
var theme = _a.theme
|
|
18
|
+
var theme = _a.theme;
|
|
19
19
|
return (_b = {
|
|
20
20
|
width: '100%',
|
|
21
21
|
minHeight: theme.spacing(30),
|
|
22
|
-
paddingTop: theme.spacing(
|
|
22
|
+
paddingTop: theme.spacing(0),
|
|
23
|
+
borderRadius: theme.spacing(1.5),
|
|
24
|
+
backgroundColor: theme.palette.background.paper
|
|
23
25
|
},
|
|
24
26
|
_b[theme.transitions.create('all')] = {
|
|
25
27
|
duration: theme.transitions.duration.enteringScreen,
|
|
@@ -27,7 +29,7 @@ var Container = styled(Box, { shouldForwardProp: function (prop) { return prop !
|
|
|
27
29
|
property: 'all'
|
|
28
30
|
},
|
|
29
31
|
_b[theme.breakpoints.down('sm')] = {
|
|
30
|
-
paddingTop:
|
|
32
|
+
paddingTop: theme.spacing(0)
|
|
31
33
|
},
|
|
32
34
|
_b);
|
|
33
35
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import FeatureContainer from './FeatureContainer';
|
|
2
2
|
import ScreenContainer from './ScreenContainer';
|
|
3
|
-
|
|
3
|
+
import ContainerWithHeader from './ContainerWithHeader';
|
|
4
|
+
export { FeatureContainer, ScreenContainer, ContainerWithHeader };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import FeatureContainer from './FeatureContainer';
|
|
2
2
|
import ScreenContainer from './ScreenContainer';
|
|
3
|
-
|
|
3
|
+
import ContainerWithHeader from './ContainerWithHeader';
|
|
4
|
+
export { FeatureContainer, ScreenContainer, ContainerWithHeader };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CountryCode } from '../../../@types';
|
|
3
|
+
export declare type CountryPopupProps = {
|
|
4
|
+
list: Array<CountryCode>;
|
|
5
|
+
isSmallDevice?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export default function CountryPopup({ list, isSmallDevice }: CountryPopupProps): JSX.Element;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
import Popover from '@mui/material/Popover';
|
|
15
|
+
import { alpha, styled } from '@mui/material/styles';
|
|
16
|
+
import Box from '@mui/material/Box';
|
|
17
|
+
import Button from '@mui/material/Button';
|
|
18
|
+
import { useAppDispatch, useAppSelector, useLanguage } from '../../../hooks';
|
|
19
|
+
import { ThemeMode } from '../../../@types';
|
|
20
|
+
import { handleBusinessCountry, settingsSelector } from '../../../app/settings';
|
|
21
|
+
import ExpandIcon from '../../../components/ExpandIcon';
|
|
22
|
+
import Icon from '../../../components/Icon';
|
|
23
|
+
var ButtonStyled = styled(Button)(function (_a) {
|
|
24
|
+
var theme = _a.theme;
|
|
25
|
+
return ({
|
|
26
|
+
backgroundColor: alpha(theme.palette.common.black, 0.06),
|
|
27
|
+
backdropFilter: theme.spacing(1.75),
|
|
28
|
+
borderRadius: theme.spacing(2),
|
|
29
|
+
'&:hover': {
|
|
30
|
+
backgroundColor: alpha(theme.palette.common.black, 0.06)
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
var IconStyled = styled('span')(function (_a) {
|
|
35
|
+
var _b;
|
|
36
|
+
var theme = _a.theme;
|
|
37
|
+
return (_b = {
|
|
38
|
+
content: '""',
|
|
39
|
+
position: 'absolute',
|
|
40
|
+
width: 0,
|
|
41
|
+
height: 0,
|
|
42
|
+
borderBottom: "8px solid ".concat(theme.palette.mode === ThemeMode.DARK ? alpha(theme.palette.common.black, 0.87) : alpha(theme.palette.common.white, 0.73)),
|
|
43
|
+
borderLeft: '5px solid transparent',
|
|
44
|
+
borderRight: '5px solid transparent',
|
|
45
|
+
bottom: '0px',
|
|
46
|
+
top: 'unset',
|
|
47
|
+
left: theme.direction === 'ltr' ? 'calc(50% - -7px)' : 'unset',
|
|
48
|
+
right: theme.direction === 'rtl' ? 'calc(50% - 17px)' : 'unset',
|
|
49
|
+
transform: 'rotate(180deg)'
|
|
50
|
+
},
|
|
51
|
+
_b[theme.breakpoints.down('sm')] = {
|
|
52
|
+
top: '0px',
|
|
53
|
+
bottom: 'unset',
|
|
54
|
+
transform: 'rotate(0deg)',
|
|
55
|
+
left: theme.direction === 'ltr' ? 'calc(50% - 20px)' : 'unset',
|
|
56
|
+
right: theme.direction === 'rtl' ? 'calc(50% - 17px)' : 'unset'
|
|
57
|
+
},
|
|
58
|
+
_b);
|
|
59
|
+
});
|
|
60
|
+
var ExpandIconStyled = styled(ExpandIcon, { shouldForwardProp: function (prop) { return prop !== 'open'; } })(function (_a) {
|
|
61
|
+
var _b;
|
|
62
|
+
var theme = _a.theme, open = _a.open;
|
|
63
|
+
return (_b = {
|
|
64
|
+
width: theme.spacing(1),
|
|
65
|
+
height: theme.spacing(1),
|
|
66
|
+
marginInlineStart: theme.spacing(1),
|
|
67
|
+
filter: 'brightness(0) invert(1)',
|
|
68
|
+
transition: 'all 0.3s',
|
|
69
|
+
transform: open ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
70
|
+
},
|
|
71
|
+
_b[theme.breakpoints.down('sm')] = {
|
|
72
|
+
transform: 'rotate(0deg)'
|
|
73
|
+
},
|
|
74
|
+
_b);
|
|
75
|
+
});
|
|
76
|
+
var PopoverStyled = styled(Popover)(function (_a) {
|
|
77
|
+
var theme = _a.theme;
|
|
78
|
+
return ({
|
|
79
|
+
zIndex: 99999,
|
|
80
|
+
'& .MuiPopover-paper': {
|
|
81
|
+
borderRadius: theme.spacing(0),
|
|
82
|
+
background: 'transparent',
|
|
83
|
+
boxShadow: 'none'
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
var ContainerStyled = styled(Box)(function (_a) {
|
|
88
|
+
var theme = _a.theme;
|
|
89
|
+
return ({
|
|
90
|
+
background: theme.palette.mode === ThemeMode.DARK ? alpha(theme.palette.common.black, 0.87) : alpha(theme.palette.common.white, 0.73),
|
|
91
|
+
borderRadius: theme.spacing(1),
|
|
92
|
+
margin: theme.spacing(1),
|
|
93
|
+
boxShadow: theme.shadows[8],
|
|
94
|
+
backdropFilter: 'blur(12px)'
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
var TextBoxStyled = styled(Box)(function (_a) {
|
|
98
|
+
var theme = _a.theme;
|
|
99
|
+
return ({
|
|
100
|
+
borderRadius: theme.spacing(1),
|
|
101
|
+
padding: theme.spacing(1),
|
|
102
|
+
alignItems: 'center',
|
|
103
|
+
minWidth: theme.spacing(19),
|
|
104
|
+
display: 'flex',
|
|
105
|
+
'&:hover': {
|
|
106
|
+
backgroundColor: theme.palette.info.dark
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
var CountryIconStyled = styled(Icon)(function (_a) {
|
|
111
|
+
var theme = _a.theme;
|
|
112
|
+
return ({
|
|
113
|
+
marginInlineEnd: theme.spacing(1),
|
|
114
|
+
width: theme.spacing(2.25),
|
|
115
|
+
height: theme.spacing(1.625),
|
|
116
|
+
borderRadius: theme.spacing(0.25)
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
var LangTextStyled = styled('span')(function (_a) {
|
|
120
|
+
var theme = _a.theme;
|
|
121
|
+
return (__assign({ color: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.white : theme.palette.primary.contrastText, fontWeight: 400 }, theme.typography.button));
|
|
122
|
+
});
|
|
123
|
+
export default function CountryPopup(_a) {
|
|
124
|
+
var list = _a.list, _b = _a.isSmallDevice, isSmallDevice = _b === void 0 ? false : _b;
|
|
125
|
+
var _c = React.useState(null), anchorEl = _c[0], setAnchorEl = _c[1];
|
|
126
|
+
var isEn = useLanguage().isEn;
|
|
127
|
+
var dispatch = useAppDispatch();
|
|
128
|
+
var data = useAppSelector(settingsSelector).data;
|
|
129
|
+
var country = data.businessCountry;
|
|
130
|
+
var countryFlag = country.logo;
|
|
131
|
+
var handleChangeCountry = function (country) {
|
|
132
|
+
dispatch(handleBusinessCountry(country));
|
|
133
|
+
handleClose();
|
|
134
|
+
};
|
|
135
|
+
var handleClick = function (event) {
|
|
136
|
+
if (anchorEl) {
|
|
137
|
+
handleClose();
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
setAnchorEl(event.currentTarget);
|
|
141
|
+
};
|
|
142
|
+
var handleClose = function () {
|
|
143
|
+
setAnchorEl(null);
|
|
144
|
+
};
|
|
145
|
+
var open = Boolean(anchorEl);
|
|
146
|
+
var id = open ? 'country-popup' : undefined;
|
|
147
|
+
return (_jsxs(Box, { children: [_jsxs(ButtonStyled, __assign({ disableElevation: true, disableFocusRipple: true, disableRipple: true, disableTouchRipple: true, sx: { minWidth: 'unset', cursor: list.length ? 'pointer' : 'default' }, "aria-describedby": id, variant: 'text', onClick: list.length ? handleClick : undefined }, { children: [_jsx(CountryIconStyled, { sx: { margin: 0 }, src: countryFlag }), !!list.length && _jsx(ExpandIconStyled, { open: open })] })), _jsxs(PopoverStyled, __assign({ id: id, open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: isSmallDevice
|
|
148
|
+
? {
|
|
149
|
+
vertical: 'bottom',
|
|
150
|
+
horizontal: 'center'
|
|
151
|
+
}
|
|
152
|
+
: {
|
|
153
|
+
vertical: 'top',
|
|
154
|
+
horizontal: 'center'
|
|
155
|
+
}, transformOrigin: isSmallDevice
|
|
156
|
+
? {
|
|
157
|
+
vertical: 'top',
|
|
158
|
+
horizontal: 'center'
|
|
159
|
+
}
|
|
160
|
+
: {
|
|
161
|
+
vertical: 'bottom',
|
|
162
|
+
horizontal: 'center'
|
|
163
|
+
} }, { children: [_jsx(IconStyled, {}), _jsx(ContainerStyled, { children: (list || []).map(function (country, index) {
|
|
164
|
+
return (_jsx(Box, __assign({ sx: { p: 1, pb: index === 0 ? 0 : 1, pt: index !== 0 ? 0 : 1 } }, { children: _jsxs(TextBoxStyled, __assign({ onClick: function () { return handleChangeCountry(country); } }, { children: [_jsx(CountryIconStyled, { src: country.logo }), _jsx(LangTextStyled, { children: isEn ? country.name.english : country.name.arabic })] })) }), index));
|
|
165
|
+
}) })] }))] }));
|
|
166
|
+
}
|
|
@@ -17,7 +17,8 @@ import { styled } from '@mui/material/styles';
|
|
|
17
17
|
import Collapse from '../../../components/Collapse';
|
|
18
18
|
import Text from '../../../components/Text';
|
|
19
19
|
import LottieFile, { LottieAnimationFiles } from '../../../components/Lottie';
|
|
20
|
-
import {
|
|
20
|
+
import { ContainerWithHeader } from '../../shared/Containers';
|
|
21
|
+
import { ThemeMode } from '../../../@types';
|
|
21
22
|
import GenericError from '../GenericError';
|
|
22
23
|
var TitleContainerStyled = styled(Box)(function (_a) {
|
|
23
24
|
var theme = _a.theme;
|
|
@@ -25,8 +26,7 @@ var TitleContainerStyled = styled(Box)(function (_a) {
|
|
|
25
26
|
direction: theme.direction,
|
|
26
27
|
display: 'flex',
|
|
27
28
|
flexDirection: 'column',
|
|
28
|
-
alignItems: 'center'
|
|
29
|
-
marginBottom: theme.spacing(2.5)
|
|
29
|
+
alignItems: 'center'
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
var Container = styled(Box)(function (_a) {
|
|
@@ -44,15 +44,15 @@ var Container = styled(Box)(function (_a) {
|
|
|
44
44
|
});
|
|
45
45
|
var TitleStyled = styled(Text)(function (_a) {
|
|
46
46
|
var theme = _a.theme;
|
|
47
|
-
return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.text.primary, fontWeight:
|
|
47
|
+
return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.mode === ThemeMode.DARK ? theme.palette.secondary.main : theme.palette.text.primary, fontWeight: 600, marginBottom: theme.spacing(1.5), lineHeight: '19.2px', textAlign: 'center' }));
|
|
48
48
|
});
|
|
49
49
|
var SubTitleStyled = styled(Text)(function (_a) {
|
|
50
50
|
var theme = _a.theme;
|
|
51
|
-
return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.
|
|
51
|
+
return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.secondary, fontWeight: theme.typography.fontWeightMedium, lineHeight: '16.8px', textAlign: 'center' }));
|
|
52
52
|
});
|
|
53
53
|
var CreateAccountLoading = function (_a) {
|
|
54
54
|
var error = _a.error, children = _a.children;
|
|
55
55
|
var t = useTranslation().t;
|
|
56
|
-
return (_jsxs(
|
|
56
|
+
return (_jsxs(ContainerWithHeader, __assign({ title: 'create_account_loading', description: 'create_account_loading_desc' }, { children: [_jsxs(TitleContainerStyled, { children: [_jsx(Collapse, __assign({ in: !!error }, { children: _jsx(GenericError, { error: error || '', errorTitle: 'oops' }) })), _jsxs(Collapse, __assign({ in: !error }, { children: [_jsx(Container, { children: _jsx(LottieFile, { file: LottieAnimationFiles.account_creation, loop: true, height: '375px' }) }), _jsxs(_Fragment, { children: [_jsx(TitleStyled, { children: t('creating_account_title') }), _jsx(SubTitleStyled, { children: t('creating_account_description') })] })] }))] }), children] })));
|
|
57
57
|
};
|
|
58
58
|
export default React.memo(CreateAccountLoading);
|
|
@@ -16,8 +16,9 @@ import Box from '@mui/material/Box/Box';
|
|
|
16
16
|
import { styled } from '@mui/material/styles';
|
|
17
17
|
import Collapse from '../../../components/Collapse';
|
|
18
18
|
import Text from '../../../components/Text';
|
|
19
|
+
import { ThemeMode } from '../../../@types';
|
|
19
20
|
import LottieFile, { LottieAnimationFiles } from '../../../components/Lottie';
|
|
20
|
-
import {
|
|
21
|
+
import { ContainerWithHeader } from '../../shared/Containers';
|
|
21
22
|
import GenericError from '../GenericError';
|
|
22
23
|
var TitleContainerStyled = styled(Box)(function (_a) {
|
|
23
24
|
var theme = _a.theme;
|
|
@@ -25,8 +26,7 @@ var TitleContainerStyled = styled(Box)(function (_a) {
|
|
|
25
26
|
direction: theme.direction,
|
|
26
27
|
display: 'flex',
|
|
27
28
|
flexDirection: 'column',
|
|
28
|
-
alignItems: 'center'
|
|
29
|
-
marginBottom: theme.spacing(2.5)
|
|
29
|
+
alignItems: 'center'
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
var Container = styled(Box)(function (_a) {
|
|
@@ -44,15 +44,15 @@ var Container = styled(Box)(function (_a) {
|
|
|
44
44
|
});
|
|
45
45
|
var TitleStyled = styled(Text)(function (_a) {
|
|
46
46
|
var theme = _a.theme;
|
|
47
|
-
return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.text.primary, fontWeight:
|
|
47
|
+
return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.mode === ThemeMode.DARK ? theme.palette.secondary.main : theme.palette.text.primary, fontWeight: 600, marginBottom: theme.spacing(1.5), lineHeight: '19.2px', textAlign: 'center' }));
|
|
48
48
|
});
|
|
49
49
|
var SubTitleStyled = styled(Text)(function (_a) {
|
|
50
50
|
var theme = _a.theme;
|
|
51
|
-
return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.
|
|
51
|
+
return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.secondary, fontWeight: theme.typography.fontWeightMedium, lineHeight: '16.8px', textAlign: 'center' }));
|
|
52
52
|
});
|
|
53
53
|
var DataLoading = function (_a) {
|
|
54
54
|
var error = _a.error;
|
|
55
55
|
var t = useTranslation().t;
|
|
56
|
-
return (_jsx(
|
|
56
|
+
return (_jsx(ContainerWithHeader, __assign({ title: 'data_loading_title', description: 'data_loading_desc' }, { children: _jsxs(TitleContainerStyled, { children: [_jsx(Collapse, __assign({ in: !!error }, { children: _jsx(GenericError, { error: error || '', errorTitle: 'oops' }) })), _jsxs(Collapse, __assign({ in: !error }, { children: [_jsx(Container, { children: _jsx(LottieFile, { file: LottieAnimationFiles.account_creation, loop: true, height: '375px' }) }), _jsxs(_Fragment, { children: [_jsx(TitleStyled, { children: t('prepare_data_title') }), _jsx(SubTitleStyled, { children: t('prepare_data_description') })] })] }))] }) })));
|
|
57
57
|
};
|
|
58
58
|
export default React.memo(DataLoading);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
import { PopoverOrigin } from '@mui/material';
|
|
4
|
+
export declare const BoxStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
component?: React.ElementType<any> | undefined;
|
|
7
|
+
ref?: React.Ref<unknown> | undefined;
|
|
8
|
+
sx?: SxProps<Theme> | undefined;
|
|
9
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
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
|
+
isPopupMode: boolean;
|
|
13
|
+
}, {}, {}>;
|
|
14
|
+
declare type DropDownStyleProps = {
|
|
15
|
+
anchorEl: HTMLElement | null | boolean;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
sx?: SxProps<Theme> | undefined;
|
|
18
|
+
isPopupMode?: boolean;
|
|
19
|
+
onClosePopup?: () => void;
|
|
20
|
+
anchorOrigin?: PopoverOrigin;
|
|
21
|
+
transformOrigin?: PopoverOrigin;
|
|
22
|
+
};
|
|
23
|
+
export default function DropDownStyle({ anchorEl, children, sx, isPopupMode, onClosePopup, anchorOrigin, transformOrigin }: DropDownStyleProps): JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
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 * as React from 'react';
|
|
14
|
+
import { styled, useTheme } from '@mui/material/styles';
|
|
15
|
+
import { Box } from '@mui/material';
|
|
16
|
+
import { ThemeMode } from '../../../@types';
|
|
17
|
+
import Collapse from '../../../components/Collapse';
|
|
18
|
+
import CustomPopover from '../../../components/Popover';
|
|
19
|
+
export var BoxStyled = styled(Box, { shouldForwardProp: function (prop) { return prop !== 'isPopupMode'; } })(function (_a) {
|
|
20
|
+
var _b;
|
|
21
|
+
var theme = _a.theme, isPopupMode = _a.isPopupMode;
|
|
22
|
+
return (__assign(__assign({}, (!isPopupMode && {
|
|
23
|
+
background: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.black : theme.palette.common.white,
|
|
24
|
+
boxShadow: theme.shadows[5],
|
|
25
|
+
borderRadius: theme.spacing(1),
|
|
26
|
+
margin: theme.spacing(0.5, 3, 0.5, 3)
|
|
27
|
+
})), (isPopupMode && (_b = {
|
|
28
|
+
width: "calc(375px - 48px)"
|
|
29
|
+
},
|
|
30
|
+
_b[theme.breakpoints.down('sm')] = {
|
|
31
|
+
width: "calc(375px - 30px)",
|
|
32
|
+
margin: theme.spacing(0.5, 'auto', 0.5, 'auto')
|
|
33
|
+
},
|
|
34
|
+
_b))));
|
|
35
|
+
});
|
|
36
|
+
var PopoverStyled = styled(CustomPopover)(function (_a) {
|
|
37
|
+
var theme = _a.theme;
|
|
38
|
+
return ({
|
|
39
|
+
'& .MuiPopover-paper': {
|
|
40
|
+
background: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.black : theme.palette.common.white,
|
|
41
|
+
boxShadow: theme.shadows[5],
|
|
42
|
+
borderRadius: theme.spacing(1),
|
|
43
|
+
margin: theme.spacing(0.5, 0, 0.5, 0)
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
export default function DropDownStyle(_a) {
|
|
48
|
+
var anchorEl = _a.anchorEl, children = _a.children, sx = _a.sx, isPopupMode = _a.isPopupMode, onClosePopup = _a.onClosePopup, anchorOrigin = _a.anchorOrigin, transformOrigin = _a.transformOrigin;
|
|
49
|
+
var theme = useTheme();
|
|
50
|
+
var open = !!anchorEl;
|
|
51
|
+
var anchorRef = React.useRef(null);
|
|
52
|
+
var _b = React.useState(typeof anchorEl === 'boolean' ? null : anchorEl), ancEl = _b[0], setAncEl = _b[1];
|
|
53
|
+
React.useEffect(function () {
|
|
54
|
+
if (ancEl === null)
|
|
55
|
+
setTimeout(function () {
|
|
56
|
+
if (anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current)
|
|
57
|
+
setAncEl(anchorRef.current);
|
|
58
|
+
}, 1);
|
|
59
|
+
}, [anchorRef]);
|
|
60
|
+
return isPopupMode ? (_jsx("div", __assign({ ref: anchorRef, dir: theme.direction }, { children: anchorEl && (_jsx(PopoverStyled, __assign({ anchorOrigin: anchorOrigin, transformOrigin: transformOrigin, anchorEl: ancEl, onClose: onClosePopup, hideBackdrop: false, useDefaultStyle: false, open: open }, { children: _jsx(BoxStyled, __assign({ isPopupMode: true, sx: sx }, { children: children })) }))) }))) : (_jsx(Collapse, __assign({ in: open }, { children: _jsx(BoxStyled, __assign({ isPopupMode: false, sx: sx }, { children: children })) })));
|
|
61
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
interface EndAdornmentExpandedProps {
|
|
3
3
|
anchorEl: HTMLElement | null;
|
|
4
4
|
isVerified?: boolean;
|
|
5
|
+
readOnly?: boolean;
|
|
5
6
|
}
|
|
6
|
-
declare const EndAdornmentExpanded: ({ isVerified, anchorEl }: EndAdornmentExpandedProps) => JSX.Element;
|
|
7
|
+
declare const EndAdornmentExpanded: ({ isVerified, anchorEl, readOnly }: EndAdornmentExpandedProps) => JSX.Element;
|
|
7
8
|
export default EndAdornmentExpanded;
|
|
@@ -2,10 +2,10 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import CheckIcon from '../../shared/CheckIcon';
|
|
3
3
|
import ExpandIcon from '../../../components/ExpandIcon';
|
|
4
4
|
var EndAdornmentExpanded = function (_a) {
|
|
5
|
-
var isVerified = _a.isVerified, anchorEl = _a.anchorEl;
|
|
5
|
+
var isVerified = _a.isVerified, anchorEl = _a.anchorEl, readOnly = _a.readOnly;
|
|
6
6
|
var getEndAdornmentExpanded = function () {
|
|
7
7
|
if (isVerified && !anchorEl)
|
|
8
|
-
return (_jsxs(_Fragment, { children: [_jsx(CheckIcon, { isVerified: isVerified, sx: { marginInlineEnd: '10px' } }), _jsx(ExpandIcon, { anchorEl: !!anchorEl })] }));
|
|
8
|
+
return (_jsxs(_Fragment, { children: [_jsx(CheckIcon, { isVerified: isVerified, sx: { marginInlineEnd: readOnly ? '0px' : '10px' } }), !readOnly && _jsx(ExpandIcon, { anchorEl: !!anchorEl })] }));
|
|
9
9
|
return _jsx(ExpandIcon, { anchorEl: !!anchorEl });
|
|
10
10
|
};
|
|
11
11
|
return _jsx(_Fragment, { children: getEndAdornmentExpanded() });
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
3
|
export declare type PoweredByFooterProps = {
|
|
4
|
-
id?: string;
|
|
5
4
|
icon?: string;
|
|
6
5
|
textSx?: SxProps<Theme> | undefined;
|
|
7
6
|
sx?: SxProps<Theme> | undefined;
|
|
8
7
|
};
|
|
9
|
-
export default function PoweredByFooter({ icon, textSx, sx
|
|
8
|
+
export default function PoweredByFooter({ icon, textSx, sx }: PoweredByFooterProps): JSX.Element;
|
|
@@ -18,7 +18,7 @@ import Icon from '../../../components/Icon';
|
|
|
18
18
|
import { ICONS_NAMES } from '../../../constants';
|
|
19
19
|
var LogoBoxStyled = styled(Box)(function (_a) {
|
|
20
20
|
var theme = _a.theme;
|
|
21
|
-
return (__assign(__assign({ direction: theme.direction, display: 'flex',
|
|
21
|
+
return (__assign(__assign({ direction: theme.direction, display: 'flex', color: theme.palette.background.paper }, theme.typography.caption), { alignItems: 'center', justifyContent: 'center' }));
|
|
22
22
|
});
|
|
23
23
|
var TextStyled = styled('span')(function (_a) {
|
|
24
24
|
var theme = _a.theme;
|
|
@@ -29,8 +29,8 @@ var LogoStyled = styled(Icon)(function () { return ({
|
|
|
29
29
|
height: 'unset'
|
|
30
30
|
}); });
|
|
31
31
|
export default function PoweredByFooter(_a) {
|
|
32
|
-
var icon = _a.icon, textSx = _a.textSx, sx = _a.sx
|
|
32
|
+
var icon = _a.icon, textSx = _a.textSx, sx = _a.sx;
|
|
33
33
|
var isAr = useLanguage().isAr;
|
|
34
34
|
var t = useTranslation().t;
|
|
35
|
-
return (_jsxs(LogoBoxStyled, __assign({
|
|
35
|
+
return (_jsxs(LogoBoxStyled, __assign({ dir: isAr ? 'rtl' : 'ltr', sx: sx }, { children: [_jsx(TextStyled, __assign({ sx: textSx }, { children: t('powered_by') })), _jsx(LogoStyled, { src: icon || (isAr ? ICONS_NAMES.LOGO_WITH_NAME_WHITE_AR_ICON : ICONS_NAMES.LOGO_WITH_NAME_WHITE_EN_ICON) })] })));
|
|
36
36
|
}
|
|
@@ -17,14 +17,15 @@ import { useTranslation } from 'react-i18next';
|
|
|
17
17
|
import Text from '../../../components/Text';
|
|
18
18
|
import Icon from '../../../components/Icon';
|
|
19
19
|
import { ICONS_NAMES } from '../../../constants';
|
|
20
|
+
import { ThemeMode } from '../../../@types';
|
|
20
21
|
import LottieFile, { LottieAnimationFiles } from '../../../components/Lottie';
|
|
21
22
|
var ErrorTitleStyled = styled(Text)(function (_a) {
|
|
22
23
|
var theme = _a.theme;
|
|
23
|
-
return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.text.primary, fontWeight:
|
|
24
|
+
return (__assign(__assign({}, theme.typography.body1), { color: theme.palette.mode === ThemeMode.DARK ? theme.palette.secondary.main : theme.palette.text.primary, fontWeight: 600, marginBottom: theme.spacing(2), lineHeight: '19.2px', textAlign: 'center' }));
|
|
24
25
|
});
|
|
25
26
|
var ErrorSubTitleStyled = styled(Text)(function (_a) {
|
|
26
27
|
var theme = _a.theme;
|
|
27
|
-
return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.
|
|
28
|
+
return (__assign(__assign({}, theme.typography.body2), { color: theme.palette.text.secondary, fontWeight: theme.typography.fontWeightMedium, lineHeight: '20px', textAlign: 'center', paddingInlineStart: theme.spacing(2.5), paddingInlineEnd: theme.spacing(2.5) }));
|
|
28
29
|
});
|
|
29
30
|
var Container = styled(Box)(function (_a) {
|
|
30
31
|
var theme = _a.theme;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export interface HeaderProps {
|
|
4
|
+
headerSx?: SxProps<Theme>;
|
|
5
|
+
onBack?: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.MemoExoticComponent<({ onBack, headerSx }: HeaderProps) => JSX.Element>;
|
|
8
|
+
export default _default;
|