@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
|
@@ -11,33 +11,41 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
13
|
import React from 'react';
|
|
14
|
+
import { useTranslation } from 'react-i18next';
|
|
14
15
|
import Box from '@mui/material/Box';
|
|
15
|
-
import { alpha, styled } from '@mui/material/styles';
|
|
16
|
-
import Input from '../
|
|
16
|
+
import { alpha, styled, useTheme } from '@mui/material/styles';
|
|
17
|
+
import Input from '../TextField';
|
|
17
18
|
import Text from '../Text';
|
|
18
19
|
import { useDropzone } from 'react-dropzone';
|
|
19
|
-
import Icon from '
|
|
20
|
+
import Icon from '../Icon';
|
|
20
21
|
import { ICONS_NAMES } from '../../constants';
|
|
21
|
-
import { CircularProgress } from '
|
|
22
|
-
import Collapse from '
|
|
22
|
+
import { CircularProgress } from '../ProgressBar';
|
|
23
|
+
import Collapse from '../Collapse';
|
|
23
24
|
import Fade from '@mui/material/Fade';
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
import { ThemeMode } from '../../@types';
|
|
26
|
+
var BoxStyled = styled(Box, { shouldForwardProp: function (prop) { return !['active', 'hasError'].includes(prop); } })(function (_a) {
|
|
27
|
+
var theme = _a.theme, active = _a.active, hasError = _a.hasError;
|
|
28
|
+
return (__assign(__assign(__assign({ direction: theme.direction }, theme.typography.subtitle2), { color: theme.palette.text.secondary, fontWeight: theme.typography.fontWeightRegular, background: theme.palette.background.paper, paddingInline: theme.spacing(2), border: "2px dashed ".concat(active ? theme.palette.primary.main : alpha(theme.palette.text.secondary, 0.3)), width: theme.spacing(40.875), minHeight: theme.spacing(12.75), cursor: 'default', display: 'flex', borderRadius: theme.spacing(1) }), (hasError && {
|
|
29
|
+
border: "1px dashed ".concat(alpha(theme.palette.warning.main, 0.3)),
|
|
30
|
+
background: alpha(theme.palette.warning.main, 0.07)
|
|
31
|
+
})));
|
|
27
32
|
});
|
|
28
33
|
var UploadInputStyled = styled(Input)(function () { return ({
|
|
29
34
|
display: 'none'
|
|
30
35
|
}); });
|
|
31
|
-
var
|
|
36
|
+
var StartBoxStyled = styled(Box)(function () { return ({
|
|
32
37
|
display: 'flex',
|
|
33
|
-
justifyContent: '
|
|
38
|
+
justifyContent: 'start',
|
|
34
39
|
alignItems: 'center'
|
|
35
40
|
}); });
|
|
41
|
+
var CenterBoxStyled = styled(StartBoxStyled)(function () { return ({
|
|
42
|
+
justifyContent: 'center'
|
|
43
|
+
}); });
|
|
36
44
|
var IconStyled = styled(Icon)(function (_a) {
|
|
37
45
|
var theme = _a.theme;
|
|
38
46
|
return ({
|
|
39
|
-
width: theme.spacing(
|
|
40
|
-
height: theme.spacing(
|
|
47
|
+
width: theme.spacing(6),
|
|
48
|
+
height: theme.spacing(6),
|
|
41
49
|
cursor: 'pointer'
|
|
42
50
|
});
|
|
43
51
|
});
|
|
@@ -49,27 +57,24 @@ var DoneIconStyled = styled(Icon)(function (_a) {
|
|
|
49
57
|
cursor: 'pointer'
|
|
50
58
|
});
|
|
51
59
|
});
|
|
52
|
-
var VerticalCenterBox = styled(Box)(function (
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
alignItems: 'center'
|
|
59
|
-
});
|
|
60
|
-
});
|
|
60
|
+
var VerticalCenterBox = styled(Box)(function () { return ({
|
|
61
|
+
display: 'flex',
|
|
62
|
+
justifyContent: 'center',
|
|
63
|
+
flexDirection: 'column',
|
|
64
|
+
alignItems: 'start'
|
|
65
|
+
}); });
|
|
61
66
|
var DescTextStyled = styled(Text)(function (_a) {
|
|
62
67
|
var theme = _a.theme;
|
|
63
68
|
return ({
|
|
64
|
-
|
|
65
|
-
textAlign: 'center',
|
|
69
|
+
textAlign: 'start',
|
|
66
70
|
marginBlockStart: theme.spacing(1),
|
|
67
|
-
marginBlockEnd: theme.spacing(0)
|
|
71
|
+
marginBlockEnd: theme.spacing(0),
|
|
72
|
+
fontSize: theme.spacing(1.375)
|
|
68
73
|
});
|
|
69
74
|
});
|
|
70
75
|
var SubTitleStyled = styled(Text)(function (_a) {
|
|
71
76
|
var theme = _a.theme;
|
|
72
|
-
return (__assign(
|
|
77
|
+
return (__assign({ textAlign: 'start', color: theme.palette.primary.main, marginInlineStart: theme.spacing(0.5) }, theme.typography.subtitle2));
|
|
73
78
|
});
|
|
74
79
|
var WarningIconStyled = styled(Icon)(function (_a) {
|
|
75
80
|
var theme = _a.theme;
|
|
@@ -79,32 +84,31 @@ var WarningIconStyled = styled(Icon)(function (_a) {
|
|
|
79
84
|
marginInline: theme.spacing(0.5)
|
|
80
85
|
});
|
|
81
86
|
});
|
|
82
|
-
var DropFileIcon = styled(Icon)(function (_a) {
|
|
83
|
-
var theme = _a.theme;
|
|
84
|
-
return ({
|
|
85
|
-
width: theme.spacing(9.375),
|
|
86
|
-
height: theme.spacing(9.375),
|
|
87
|
-
zIndex: 2,
|
|
88
|
-
position: 'absolute',
|
|
89
|
-
right: 0,
|
|
90
|
-
marginInline: theme.spacing(-1.25)
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
87
|
var TextDoneStyled = styled(Text)(function (_a) {
|
|
94
88
|
var theme = _a.theme;
|
|
95
89
|
return ({
|
|
96
90
|
marginBlockStart: theme.spacing(1),
|
|
97
|
-
color: theme.palette.text.primary
|
|
91
|
+
color: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.white : theme.palette.text.primary
|
|
98
92
|
});
|
|
99
93
|
});
|
|
100
94
|
var WarningContainer = styled(Box)(function (_a) {
|
|
101
95
|
var theme = _a.theme;
|
|
102
|
-
return (
|
|
96
|
+
return ({
|
|
97
|
+
flexDirection: 'row',
|
|
98
|
+
display: 'flex',
|
|
99
|
+
justifyContent: 'start',
|
|
100
|
+
color: theme.palette.warning.main,
|
|
101
|
+
alignItems: 'center',
|
|
102
|
+
marginTop: theme.spacing(1),
|
|
103
|
+
fontSize: theme.spacing(1.25)
|
|
104
|
+
});
|
|
103
105
|
});
|
|
104
106
|
var DragAndDrop = function (_a) {
|
|
105
107
|
var title = _a.title, subTitle = _a.subTitle, description = _a.description, error = _a.error, uploadingTitle = _a.uploadingTitle, successTitle = _a.successTitle, progress = _a.progress, uploading = _a.uploading, fileExists = _a.fileExists, uploadSuccess = _a.uploadSuccess, onSuccess = _a.onSuccess, multiple = _a.multiple;
|
|
106
108
|
var _b = React.useState(false), dragActive = _b[0], setDragActive = _b[1];
|
|
107
109
|
var _c = React.useState(false), showDone = _c[0], setShowDone = _c[1];
|
|
110
|
+
var theme = useTheme();
|
|
111
|
+
var t = useTranslation().t;
|
|
108
112
|
var _d = useDropzone({
|
|
109
113
|
maxFiles: multiple ? undefined : 1,
|
|
110
114
|
noKeyboard: true,
|
|
@@ -131,6 +135,6 @@ var DragAndDrop = function (_a) {
|
|
|
131
135
|
}, 400);
|
|
132
136
|
}
|
|
133
137
|
}, [uploading]);
|
|
134
|
-
return (
|
|
138
|
+
return (_jsxs(Box, __assign({ id: 'upload-container' }, { children: [_jsxs(BoxStyled, __assign({ hasError: !!error, sx: { justifyContent: (!uploading && !uploadSuccess) || !fileExists ? 'start' : 'center' }, active: dragActive }, getRootProps({ className: 'dropzone' }), { children: [_jsx(Fade, __assign({ in: (!uploading && !uploadSuccess) || !fileExists, unmountOnExit: true, timeout: 100 }, { children: _jsxs(Box, __assign({ sx: { display: 'flex', pt: 1.25, pb: 1.25 } }, { children: [_jsx(StartBoxStyled, __assign({ sx: { marginInlineEnd: theme.spacing(1.25) } }, { children: _jsx(IconStyled, { src: dragActive ? ICONS_NAMES.ACTIVE_UPLOAD_ICON : ICONS_NAMES.UPLOAD_ICON }) })), _jsxs(VerticalCenterBox, { children: [_jsxs(StartBoxStyled, { children: [_jsx(Text, __assign({ sx: __assign({}, theme.typography.subtitle2) }, { children: title })), _jsx(SubTitleStyled, { children: subTitle })] }), _jsx(DescTextStyled, { children: description })] }), _jsx(UploadInputStyled, { inputProps: __assign({}, getInputProps()) })] })) })), _jsx(CenterBoxStyled, { children: showDone ? (_jsxs(VerticalCenterBox, { children: [_jsx(DoneIconStyled, { src: ICONS_NAMES.DONE_ICON }), _jsx(TextDoneStyled, { children: successTitle })] })) : uploading ? (_jsxs(VerticalCenterBox, { children: [_jsx(CircularProgress, { value: progress, size: 54 }), _jsx(Text, { children: uploadingTitle })] })) : (_jsx(_Fragment, {})) })] })), _jsx(Collapse, __assign({ in: !!error, timeout: 400 }, { children: _jsxs(WarningContainer, { children: [_jsx(WarningIconStyled, { src: ICONS_NAMES.WARNING_INFO_ICON }), error && t(error)] }) }))] })));
|
|
135
139
|
};
|
|
136
140
|
export default DragAndDrop;
|
|
@@ -21,6 +21,6 @@ var IconComponent = styled('img')(function (_a) {
|
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
23
|
var Icon = React.forwardRef(function (props, ref) {
|
|
24
|
-
return _jsx(IconComponent, __assign({}, props, { ref: ref }));
|
|
24
|
+
return _jsx(IconComponent, __assign({ sx: props.sx }, props, { ref: ref }));
|
|
25
25
|
});
|
|
26
26
|
export default React.memo(Icon);
|
|
@@ -22,20 +22,21 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import * as React from 'react';
|
|
25
|
-
import { styled } from '@mui/material/styles';
|
|
26
25
|
import OTPInput from 'react-otp-input';
|
|
26
|
+
import { alpha, styled } from '@mui/material/styles';
|
|
27
|
+
import { ThemeMode } from '../../@types';
|
|
27
28
|
var OTPFieldStyled = styled(OTPInput)(function (_a) {
|
|
28
29
|
var _b;
|
|
29
30
|
var theme = _a.theme;
|
|
30
31
|
return ({
|
|
31
|
-
input: __assign(__assign((_b = {
|
|
32
|
+
input: __assign(__assign((_b = { height: theme.spacing(6), color: theme.palette.secondary.main, outline: 'none', borderRadius: theme.spacing(1), border: '1px solid ', borderColor: alpha(theme.palette.text.secondary, 0.3), background: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.black : theme.palette.common.white, textAlign: 'center', margin: '1.2%' }, _b[theme.breakpoints.down('sm')] = {
|
|
32
33
|
margin: '1%'
|
|
33
|
-
}, _b.
|
|
34
|
+
}, _b.caretColor = theme.palette.primary.main, _b.marginInline = theme.spacing(0.6), _b), theme.typography.h6), { width: theme.spacing(5) })
|
|
34
35
|
});
|
|
35
36
|
});
|
|
36
37
|
var OTPFieldComponent = function (_a) {
|
|
37
38
|
var length = _a.length, value = _a.value, autoFocus = _a.autoFocus, isInputNum = _a.isInputNum, disabled = _a.disabled, rest = __rest(_a, ["length", "value", "autoFocus", "isInputNum", "disabled"]);
|
|
38
|
-
return (_jsx(OTPFieldStyled, __assign({ value: value, inputStyle: { width: '
|
|
39
|
+
return (_jsx(OTPFieldStyled, __assign({ value: value, inputStyle: { width: '48px' }, numInputs: length, isDisabled: disabled, shouldAutoFocus: autoFocus, isInputNum: isInputNum }, rest)));
|
|
39
40
|
};
|
|
40
41
|
OTPFieldComponent.defaultProps = {
|
|
41
42
|
length: 6,
|
|
@@ -29,7 +29,7 @@ var OTPTimerStyled = styled(Box)(function (_a) {
|
|
|
29
29
|
var theme = _a.theme;
|
|
30
30
|
return ({
|
|
31
31
|
display: 'flex',
|
|
32
|
-
paddingInline: theme.spacing(
|
|
32
|
+
paddingInline: theme.spacing(3),
|
|
33
33
|
justifyContent: 'flex-end',
|
|
34
34
|
maxWidth: 'fit-content',
|
|
35
35
|
marginLeft: 'auto'
|
|
@@ -37,11 +37,7 @@ var OTPTimerStyled = styled(Box)(function (_a) {
|
|
|
37
37
|
});
|
|
38
38
|
var OTPTimerTextStyled = styled(Text)(function (_a) {
|
|
39
39
|
var theme = _a.theme;
|
|
40
|
-
return ({
|
|
41
|
-
fontWeight: theme.typography.fontWeightBold,
|
|
42
|
-
fontSize: theme.typography.fontSize,
|
|
43
|
-
marginTop: theme.spacing(0.5)
|
|
44
|
-
});
|
|
40
|
+
return (__assign(__assign({ fontWeight: theme.typography.fontWeightRegular }, theme.typography.caption), { marginTop: theme.spacing(0.5) }));
|
|
45
41
|
});
|
|
46
42
|
var OTPTimerComponent = function (_a) {
|
|
47
43
|
var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick, rest = __rest(_a, ["timeInSeconds", "timeEndLabel", "onResetClick"]);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopoverProps } from '@mui/material/Popover';
|
|
3
|
+
export interface CustomPopoverProps extends PopoverProps {
|
|
4
|
+
useDefaultStyle?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export default function CustomPopover({ useDefaultStyle, anchorOrigin, transformOrigin, ...rest }: CustomPopoverProps): JSX.Element;
|
|
@@ -0,0 +1,79 @@
|
|
|
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 Popover from '@mui/material/Popover';
|
|
25
|
+
import { styled, useTheme } from '@mui/material/styles';
|
|
26
|
+
import Box from '@mui/material/Box';
|
|
27
|
+
import { ThemeMode } from '../../@types';
|
|
28
|
+
var IconStyled = styled('span')(function (_a) {
|
|
29
|
+
var _b;
|
|
30
|
+
var theme = _a.theme;
|
|
31
|
+
return (_b = {
|
|
32
|
+
content: '""',
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
width: 0,
|
|
35
|
+
height: 0,
|
|
36
|
+
borderBottom: "8px solid ".concat(theme.palette.mode === ThemeMode.DARK ? theme.palette.common.black : theme.palette.common.white),
|
|
37
|
+
borderLeft: '5px solid transparent',
|
|
38
|
+
borderRight: '5px solid transparent',
|
|
39
|
+
top: '0px',
|
|
40
|
+
left: theme.direction === 'ltr' ? 'calc(50% - -7px)' : 'unset',
|
|
41
|
+
right: theme.direction === 'rtl' ? 'calc(50% - -7px)' : 'unset'
|
|
42
|
+
},
|
|
43
|
+
_b[theme.breakpoints.down('sm')] = {
|
|
44
|
+
left: theme.direction === 'ltr' ? 'calc(100% - 67px)' : 'unset',
|
|
45
|
+
right: theme.direction === 'rtl' ? 'calc(100% - 67px)' : 'unset'
|
|
46
|
+
},
|
|
47
|
+
_b);
|
|
48
|
+
});
|
|
49
|
+
var PopoverStyled = styled(Popover)(function (_a) {
|
|
50
|
+
var theme = _a.theme;
|
|
51
|
+
return ({
|
|
52
|
+
zIndex: 99999,
|
|
53
|
+
'& .MuiPopover-paper': {
|
|
54
|
+
borderRadius: theme.spacing(0),
|
|
55
|
+
background: 'transparent',
|
|
56
|
+
boxShadow: 'none'
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
var ContainerStyled = styled(Box)(function (_a) {
|
|
61
|
+
var theme = _a.theme;
|
|
62
|
+
return ({
|
|
63
|
+
background: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.black : theme.palette.common.white,
|
|
64
|
+
borderRadius: theme.spacing(1),
|
|
65
|
+
margin: theme.spacing(1),
|
|
66
|
+
boxShadow: theme.shadows[3]
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
export default function CustomPopover(_a) {
|
|
70
|
+
var _b = _a.useDefaultStyle, useDefaultStyle = _b === void 0 ? true : _b, anchorOrigin = _a.anchorOrigin, transformOrigin = _a.transformOrigin, rest = __rest(_a, ["useDefaultStyle", "anchorOrigin", "transformOrigin"]);
|
|
71
|
+
var theme = useTheme();
|
|
72
|
+
return (_jsxs(PopoverStyled, __assign({ dir: theme.direction, hideBackdrop: true, anchorOrigin: anchorOrigin || {
|
|
73
|
+
vertical: 'bottom',
|
|
74
|
+
horizontal: 'center'
|
|
75
|
+
}, transformOrigin: transformOrigin || {
|
|
76
|
+
vertical: 'top',
|
|
77
|
+
horizontal: 'center'
|
|
78
|
+
} }, rest, { children: [useDefaultStyle && _jsx(IconStyled, {}), useDefaultStyle ? _jsx(ContainerStyled, { children: rest.children }) : rest.children] })));
|
|
79
|
+
}
|
|
@@ -24,23 +24,22 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
24
24
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
25
25
|
import Typography from '@mui/material/Typography';
|
|
26
26
|
import Box from '@mui/material/Box';
|
|
27
|
-
import { styled } from '@mui/material/styles';
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
});
|
|
40
|
-
});
|
|
27
|
+
import { styled, useTheme } from '@mui/material/styles';
|
|
28
|
+
import { ThemeMode } from '../../@types';
|
|
29
|
+
var BoxStyled = styled(Box)(function () { return ({
|
|
30
|
+
display: 'flex',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'center',
|
|
33
|
+
top: 0,
|
|
34
|
+
left: 0,
|
|
35
|
+
bottom: 0,
|
|
36
|
+
right: 0,
|
|
37
|
+
position: 'absolute'
|
|
38
|
+
}); });
|
|
41
39
|
export default function CircularProgressWithLabel(_a) {
|
|
42
40
|
var size = _a.size, value = _a.value, textSx = _a.textSx, props = __rest(_a, ["size", "value", "textSx"]);
|
|
43
|
-
|
|
41
|
+
var theme = useTheme();
|
|
42
|
+
return (_jsxs(Box, __assign({ sx: { position: 'relative', display: 'inline-flex' } }, { children: [_jsx(CircularProgress, __assign({ variant: 'determinate', size: size, value: value }, props)), _jsx(BoxStyled, { children: _jsx(Typography, __assign({ variant: 'caption', sx: textSx, component: 'div', color: theme.palette.mode === ThemeMode.DARK ? 'common.white' : 'text.primary' }, { children: "".concat(Math.round(value), "%") })) })] })));
|
|
44
43
|
}
|
|
45
44
|
CircularProgressWithLabel.defaultProps = {
|
|
46
45
|
size: 54,
|
|
@@ -11,21 +11,31 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
|
-
import { styled } from '@mui/material/styles';
|
|
14
|
+
import { styled, useTheme } from '@mui/material/styles';
|
|
15
15
|
import Radio from '@mui/material/Radio';
|
|
16
|
+
import { ICONS_NAMES } from '../../constants';
|
|
17
|
+
import { ThemeMode } from '../../@types';
|
|
18
|
+
import Icon from '../Icon';
|
|
16
19
|
var RadioStyled = styled(Radio)(function (_a) {
|
|
17
20
|
var theme = _a.theme;
|
|
18
|
-
return (__assign(__assign({ padding: theme.spacing(0), height: theme.spacing(4.375), width: theme.spacing(4.375) }, theme.typography.caption), { fontWeight: theme.typography.fontWeightMedium, fontStretch: 'normal', fontStyle: 'normal', letterSpacing: 'normal', color: theme.palette.secondary
|
|
21
|
+
return (__assign(__assign({ padding: theme.spacing(0), height: theme.spacing(4.375), width: theme.spacing(4.375) }, theme.typography.caption), { fontWeight: theme.typography.fontWeightMedium, fontStretch: 'normal', fontStyle: 'normal', letterSpacing: 'normal', color: theme.palette.text.secondary, '& .MuiSvgIcon-root': {
|
|
19
22
|
fontSize: theme.spacing(3),
|
|
20
23
|
width: theme.spacing(3),
|
|
21
24
|
height: theme.spacing(3)
|
|
22
25
|
}, '&.MuiRadio-colorPrimary': {
|
|
23
|
-
'&.Mui-checked': {
|
|
24
|
-
color: theme.palette.success.dark
|
|
25
|
-
}
|
|
26
|
+
'&.Mui-checked': {}
|
|
26
27
|
} }));
|
|
27
28
|
});
|
|
29
|
+
var CheckedIconStyled = styled(Icon)(function (_a) {
|
|
30
|
+
var theme = _a.theme;
|
|
31
|
+
return ({
|
|
32
|
+
width: theme.spacing(2),
|
|
33
|
+
height: theme.spacing(2)
|
|
34
|
+
});
|
|
35
|
+
});
|
|
28
36
|
var RadioComponent = function (props) {
|
|
29
|
-
|
|
37
|
+
var theme = useTheme();
|
|
38
|
+
var icon = theme.palette.mode === ThemeMode.DARK ? ICONS_NAMES.radio_checked_dark : ICONS_NAMES.radio_checked;
|
|
39
|
+
return (_jsx(RadioStyled, __assign({ checkedIcon: _jsx(CheckedIconStyled, { src: icon }), color: 'primary', disableFocusRipple: true, disableRipple: true, disableTouchRipple: true, focusRipple: false }, props)));
|
|
30
40
|
};
|
|
31
41
|
export default React.memo(RadioComponent);
|
|
@@ -12,8 +12,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import * as React from 'react';
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
15
|
-
import { styled
|
|
15
|
+
import { styled } from '@mui/material/styles';
|
|
16
16
|
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
17
|
+
import { ThemeMode } from '../../@types';
|
|
17
18
|
import Radio from '../Radio';
|
|
18
19
|
var RadioLabelStyled = styled(FormControlLabel)(function (_a) {
|
|
19
20
|
var theme = _a.theme;
|
|
@@ -23,7 +24,7 @@ var RadioLabelStyled = styled(FormControlLabel)(function (_a) {
|
|
|
23
24
|
paddingInlineEnd: theme.spacing(0.625),
|
|
24
25
|
marginLeft: theme.direction === 'rtl' ? theme.spacing(2) : theme.spacing(-1.375),
|
|
25
26
|
marginRight: theme.direction === 'rtl' ? theme.spacing(-1.375) : theme.spacing(2),
|
|
26
|
-
'& .MuiFormControlLabel-label': __assign({ color:
|
|
27
|
+
'& .MuiFormControlLabel-label': __assign({ color: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.white : theme.palette.text.primary, fontWeight: theme.typography.fontWeightRegular }, theme.typography.subtitle2)
|
|
27
28
|
});
|
|
28
29
|
});
|
|
29
30
|
var RadioLabel = function (_a) {
|
|
@@ -2,6 +2,19 @@ import * as React from 'react';
|
|
|
2
2
|
import { ListProps } from '@mui/material/List';
|
|
3
3
|
import { ListItemProps } from '@mui/material/ListItem';
|
|
4
4
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
5
|
+
export declare const NameContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
6
|
+
align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
|
|
9
|
+
gutterBottom?: boolean | undefined;
|
|
10
|
+
noWrap?: boolean | undefined;
|
|
11
|
+
paragraph?: boolean | undefined;
|
|
12
|
+
sx?: SxProps<Theme> | undefined;
|
|
13
|
+
variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
|
|
14
|
+
variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
|
|
15
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
|
|
16
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
17
|
+
}, 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" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
5
18
|
export interface SimpleListProps<T> extends ListProps {
|
|
6
19
|
list: Array<T>;
|
|
7
20
|
selectedItems?: Array<T>;
|
|
@@ -13,8 +26,9 @@ export interface SimpleListProps<T> extends ListProps {
|
|
|
13
26
|
getSelectedItemCondition?: (a: T, b: T) => boolean;
|
|
14
27
|
sx?: SxProps<Theme>;
|
|
15
28
|
space?: number;
|
|
29
|
+
isPopupMode?: boolean;
|
|
16
30
|
}
|
|
17
|
-
declare function SimpleList<T>({ list, listItemProps, onSelectItem, renderItem, children, searchKeyPath, searchValuePath, selectedItems, getSelectedItemCondition, space, ...rest }: SimpleListProps<T>): JSX.Element;
|
|
31
|
+
declare function SimpleList<T>({ list, listItemProps, onSelectItem, renderItem, children, searchKeyPath, searchValuePath, selectedItems, getSelectedItemCondition, space, isPopupMode, ...rest }: SimpleListProps<T>): JSX.Element;
|
|
18
32
|
declare namespace SimpleList {
|
|
19
33
|
var defaultProps: {
|
|
20
34
|
searchKeyPath: string;
|
|
@@ -32,54 +32,61 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
32
32
|
import { createElement as _createElement } from "react";
|
|
33
33
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
34
34
|
import * as React from 'react';
|
|
35
|
+
import { useTranslation } from 'react-i18next';
|
|
35
36
|
import List from '@mui/material/List';
|
|
36
37
|
import ListItem from '@mui/material/ListItem';
|
|
37
38
|
import { styled } from '@mui/material/styles';
|
|
38
39
|
import get from 'lodash-es/get';
|
|
39
40
|
import { useEventListener } from '../../hooks';
|
|
41
|
+
import { ThemeMode } from '../../@types';
|
|
42
|
+
import Text from '../Text';
|
|
40
43
|
import Search from '../../features/shared/Search';
|
|
41
|
-
var ListStyled = styled(List, { shouldForwardProp: function (prop) { return
|
|
44
|
+
var ListStyled = styled(List, { shouldForwardProp: function (prop) { return !['height', 'isPopupMode'].includes(prop); } })(function (_a) {
|
|
42
45
|
var _b;
|
|
43
|
-
var theme = _a.theme, height = _a.height;
|
|
44
|
-
return (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
boxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)',
|
|
60
|
-
webkitBoxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)'
|
|
61
|
-
},
|
|
62
|
-
_b['&::-webkit-scrollbar-thumb'] = {
|
|
63
|
-
backgroundColor: 'rgba(0,0,0,.1)',
|
|
64
|
-
outline: '1px solid slategrey'
|
|
65
|
-
},
|
|
66
|
-
_b);
|
|
46
|
+
var theme = _a.theme, height = _a.height, isPopupMode = _a.isPopupMode;
|
|
47
|
+
return (__assign(__assign({ overflowY: 'auto', overflowX: 'hidden', listStyle: 'none', display: 'flow-root', paddingTop: theme.spacing(2.125), height: theme.spacing(40) }, (isPopupMode && {
|
|
48
|
+
height: 'unset',
|
|
49
|
+
maxHeight: theme.spacing(40)
|
|
50
|
+
})), (_b = {}, _b[theme.breakpoints.down('sm')] = {
|
|
51
|
+
height: 'unset',
|
|
52
|
+
maxHeight: height
|
|
53
|
+
}, _b['&::-webkit-scrollbar'] = {
|
|
54
|
+
width: '0px'
|
|
55
|
+
}, _b['&::-webkit-scrollbar-track'] = {
|
|
56
|
+
boxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)',
|
|
57
|
+
webkitBoxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)'
|
|
58
|
+
}, _b['&::-webkit-scrollbar-thumb'] = {
|
|
59
|
+
backgroundColor: 'rgba(0,0,0,.1)',
|
|
60
|
+
outline: '1px solid slategrey'
|
|
61
|
+
}, _b)));
|
|
67
62
|
});
|
|
68
63
|
var ListItemStyled = styled(ListItem)(function (_a) {
|
|
69
64
|
var theme = _a.theme;
|
|
70
65
|
return ({
|
|
71
66
|
display: 'flex',
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
67
|
+
marginInlineStart: theme.spacing(1),
|
|
68
|
+
marginInlineEnd: theme.spacing(1),
|
|
69
|
+
paddingInlineStart: theme.spacing(2),
|
|
70
|
+
paddingInlineEnd: theme.spacing(2),
|
|
71
|
+
paddingTop: theme.spacing(1.375),
|
|
72
|
+
paddingBottom: theme.spacing(1.375),
|
|
76
73
|
cursor: 'pointer',
|
|
77
|
-
|
|
74
|
+
width: 'unset',
|
|
75
|
+
justifyContent: 'space-between',
|
|
76
|
+
borderRadius: theme.spacing(1),
|
|
77
|
+
'&:hover': {
|
|
78
|
+
backgroundColor: theme.palette.action.hover
|
|
79
|
+
}
|
|
78
80
|
});
|
|
79
81
|
});
|
|
82
|
+
export var NameContainer = styled(Text)(function (_a) {
|
|
83
|
+
var theme = _a.theme;
|
|
84
|
+
return (__assign(__assign({ color: theme.palette.mode === ThemeMode.DARK ? theme.palette.common.white : theme.palette.text.primary }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25), textAlign: 'start' }));
|
|
85
|
+
});
|
|
80
86
|
function SimpleList(_a) {
|
|
81
|
-
var list = _a.list, listItemProps = _a.listItemProps, onSelectItem = _a.onSelectItem, renderItem = _a.renderItem, children = _a.children, searchKeyPath = _a.searchKeyPath, searchValuePath = _a.searchValuePath, selectedItems = _a.selectedItems, getSelectedItemCondition = _a.getSelectedItemCondition, _b = _a.space, space = _b === void 0 ? 187 : _b, rest = __rest(_a, ["list", "listItemProps", "onSelectItem", "renderItem", "children", "searchKeyPath", "searchValuePath", "selectedItems", "getSelectedItemCondition", "space"]);
|
|
87
|
+
var list = _a.list, listItemProps = _a.listItemProps, onSelectItem = _a.onSelectItem, renderItem = _a.renderItem, children = _a.children, searchKeyPath = _a.searchKeyPath, searchValuePath = _a.searchValuePath, selectedItems = _a.selectedItems, getSelectedItemCondition = _a.getSelectedItemCondition, _b = _a.space, space = _b === void 0 ? 187 : _b, isPopupMode = _a.isPopupMode, rest = __rest(_a, ["list", "listItemProps", "onSelectItem", "renderItem", "children", "searchKeyPath", "searchValuePath", "selectedItems", "getSelectedItemCondition", "space", "isPopupMode"]);
|
|
82
88
|
var _c = React.useState(list), items = _c[0], setItems = _c[1];
|
|
89
|
+
var t = useTranslation().t;
|
|
83
90
|
React.useEffect(function () {
|
|
84
91
|
setItems(list);
|
|
85
92
|
}, [list]);
|
|
@@ -122,12 +129,16 @@ function SimpleList(_a) {
|
|
|
122
129
|
}
|
|
123
130
|
setItems(list);
|
|
124
131
|
};
|
|
125
|
-
return (_jsxs(_Fragment, { children: [(searchValuePath === null || searchValuePath === void 0 ? void 0 : searchValuePath.length) && _jsx(Search, { onSearchValue: onSearch }), _jsx(ListStyled, __assign({ height: maxHeight }, rest, { children: children ||
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
132
|
+
return (_jsxs(_Fragment, { children: [(searchValuePath === null || searchValuePath === void 0 ? void 0 : searchValuePath.length) && _jsx(Search, { onSearchValue: onSearch }), _jsx(ListStyled, __assign({ isPopupMode: isPopupMode, height: maxHeight }, rest, { children: children || mapSelectedItemBeginning.length ? (mapSelectedItemBeginning.map(function (item, idx) {
|
|
133
|
+
return (_createElement(ListItemStyled, __assign({}, listItemProps, { onClick: function (e) {
|
|
134
|
+
onSelectItem(item, e);
|
|
135
|
+
}, disableGutters: true, key: idx }), renderItem(item, idx)));
|
|
136
|
+
})) : (_jsx(ListItemStyled, __assign({ sx: {
|
|
137
|
+
cursor: 'default',
|
|
138
|
+
'&:hover': {
|
|
139
|
+
backgroundColor: 'unset'
|
|
140
|
+
}
|
|
141
|
+
}, disableGutters: true }, { children: _jsx(NameContainer, { children: t('no_results') }) }))) }))] }));
|
|
131
142
|
}
|
|
132
143
|
SimpleList.defaultProps = {
|
|
133
144
|
searchKeyPath: ''
|
|
@@ -5,7 +5,7 @@ export interface SocialMediaGroupProps extends ToggleButtonGroupProps {
|
|
|
5
5
|
toggleButtonProps?: ToggleButtonProps;
|
|
6
6
|
}
|
|
7
7
|
declare const _default: React.MemoExoticComponent<{
|
|
8
|
-
({ children,
|
|
8
|
+
({ children, onChange, ...rest }: SocialMediaGroupProps): JSX.Element;
|
|
9
9
|
defaultProps: {};
|
|
10
10
|
}>;
|
|
11
11
|
export default _default;
|
|
@@ -24,7 +24,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
24
24
|
import * as React from 'react';
|
|
25
25
|
import ToggleButtonGroup from '../ToggleButtonGroup';
|
|
26
26
|
var SocialMediaGroupComponent = function (_a) {
|
|
27
|
-
var children = _a.children,
|
|
27
|
+
var children = _a.children, onChange = _a.onChange, rest = __rest(_a, ["children", "onChange"]);
|
|
28
28
|
var handleOnChange = function (event, value) {
|
|
29
29
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
30
30
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextFieldProps } from '@mui/material/TextField';
|
|
3
|
+
interface Props {
|
|
4
|
+
onEnterPressed?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
5
|
+
hide?: boolean;
|
|
6
|
+
warningType?: 'alert' | 'error' | 'hint';
|
|
7
|
+
warningMessage?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type CustomTextFieldProps = TextFieldProps & Props;
|
|
10
|
+
declare const _default: React.MemoExoticComponent<{
|
|
11
|
+
({ onEnterPressed, hide, warningType, warningMessage, ...rest }: CustomTextFieldProps): JSX.Element;
|
|
12
|
+
defaultProps: {
|
|
13
|
+
hide: boolean;
|
|
14
|
+
warningType: string;
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|