@tap-payments/auth-jsconnect 1.0.4 → 1.0.7
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 +74 -0
- package/build/@types/app.js +11 -1
- package/build/@types/theme.d.ts +12 -3
- package/build/@types/theme.js +15 -1
- package/build/app/rootReducer.d.ts +1 -1
- package/build/app/rootReducer.js +1 -1
- package/build/app/settings.d.ts +7 -2
- package/build/app/settings.js +36 -6
- package/build/app/store.d.ts +2 -2
- package/build/assets/locales/ar.json +70 -3
- package/build/assets/locales/en.json +69 -2
- package/build/components/AnimationFlow/BottomSheet.d.ts +3 -2
- package/build/components/AnimationFlow/BottomSheet.js +30 -3
- package/build/components/AnimationFlow/Dialog.d.ts +3 -2
- package/build/components/AnimationFlow/Dialog.js +26 -18
- package/build/components/Button/Button.d.ts +7 -3
- package/build/components/Button/Button.js +20 -2
- package/build/components/Collapse/Collapse.d.ts +5 -0
- package/build/components/Collapse/Collapse.js +28 -0
- package/build/components/Collapse/index.d.ts +3 -0
- package/build/components/Collapse/index.js +2 -0
- package/build/components/DatePicker/DatePicker.js +3 -3
- package/build/components/Footer/Footer.js +1 -1
- package/build/components/Input/Input.d.ts +4 -1
- package/build/components/Input/Input.js +7 -5
- package/build/components/Loader/Loader.d.ts +10 -8
- package/build/components/Loader/Loader.js +21 -41
- package/build/components/OTPField/OTPField.js +3 -23
- package/build/components/OTPTimer/OTPTimer.d.ts +4 -2
- package/build/components/OTPTimer/OTPTimer.js +20 -8
- package/build/components/Providers/ThemeProvider.js +6 -9
- package/build/components/SimpleList/SimpleList.d.ts +11 -3
- package/build/components/SimpleList/SimpleList.js +51 -22
- package/build/components/Slide/Slide.d.ts +6 -0
- package/build/components/Slide/Slide.js +30 -0
- package/build/components/Slide/index.d.ts +3 -0
- package/build/components/Slide/index.js +2 -0
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +14 -0
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +86 -0
- package/build/components/SocialMediaGroup/index.d.ts +3 -0
- package/build/components/SocialMediaGroup/index.js +2 -0
- package/build/components/ToggleButton/ToggleButton.d.ts +5 -0
- package/build/components/ToggleButton/ToggleButton.js +44 -0
- package/build/components/ToggleButton/index.d.ts +3 -0
- package/build/components/ToggleButton/index.js +2 -0
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -0
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +37 -0
- package/build/components/ToggleButtonGroup/index.d.ts +3 -0
- package/build/components/ToggleButtonGroup/index.js +2 -0
- package/build/components/Tooltip/Tooltip.d.ts +10 -0
- package/build/components/Tooltip/Tooltip.js +44 -0
- package/build/components/Tooltip/index.d.ts +3 -0
- package/build/components/Tooltip/index.js +2 -0
- package/build/components/Warning/Warning.d.ts +2 -1
- package/build/components/Warning/Warning.js +4 -19
- package/build/constants/app.d.ts +14 -4
- package/build/constants/app.js +145 -4
- package/build/constants/assets.d.ts +11 -0
- package/build/constants/assets.js +12 -1
- package/build/constants/dummy.d.ts +103 -0
- package/build/constants/dummy.js +219 -0
- package/build/constants/index.d.ts +1 -0
- package/build/constants/index.js +1 -0
- package/build/constants/validation.d.ts +6 -0
- package/build/constants/validation.js +6 -0
- package/build/features/app/{midStore.d.ts → business/midStore.d.ts} +2 -2
- package/build/features/app/{midStore.js → business/midStore.js} +0 -0
- package/build/features/app/connect/midStore.d.ts +10 -0
- package/build/features/app/connect/midStore.js +18 -0
- package/build/features/bank/Bank.d.ts +6 -0
- package/build/features/bank/Bank.js +48 -0
- package/build/features/bank/index.d.ts +1 -0
- package/build/features/bank/index.js +1 -0
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +5 -0
- package/build/features/bank/screens/BankDetails/BankDetails.js +57 -0
- package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -0
- package/build/features/bank/screens/BankDetails/BankName.js +27 -0
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +5 -0
- package/build/features/bank/screens/BankDetails/Beneficiary.js +34 -0
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +5 -0
- package/build/features/bank/screens/BankDetails/IBAN.js +35 -0
- package/build/features/bank/screens/BankDetails/index.d.ts +3 -0
- package/build/features/bank/screens/BankDetails/index.js +2 -0
- package/build/features/bank/screens/BankDetails/validation.d.ts +14 -0
- package/build/features/bank/screens/BankDetails/validation.js +9 -0
- package/build/features/business/Business.d.ts +6 -0
- package/build/features/business/Business.js +61 -0
- package/build/features/business/index.d.ts +1 -0
- package/build/features/business/index.js +1 -0
- package/build/features/business/screens/Activities/Activities.d.ts +5 -0
- package/build/features/business/screens/Activities/Activities.js +83 -0
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +70 -0
- package/build/features/business/screens/Activities/ActivitiesList.js +136 -0
- package/build/features/business/screens/Activities/SalesChannels.d.ts +5 -0
- package/build/features/business/screens/Activities/SalesChannels.js +107 -0
- package/build/features/business/screens/Activities/index.d.ts +3 -0
- package/build/features/business/screens/Activities/index.js +2 -0
- package/build/features/business/screens/Activities/validation.d.ts +119 -0
- package/build/features/business/screens/Activities/validation.js +17 -0
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +12 -0
- package/build/features/business/screens/BusinessType/BusinessType.js +85 -0
- package/build/features/business/screens/BusinessType/CRNumber.d.ts +6 -0
- package/build/features/business/screens/BusinessType/CRNumber.js +40 -0
- package/build/features/business/screens/BusinessType/CompanyLicense.d.ts +11 -0
- package/build/features/business/screens/BusinessType/CompanyLicense.js +109 -0
- package/build/features/business/screens/BusinessType/FLNumber.d.ts +6 -0
- package/build/features/business/screens/BusinessType/FLNumber.js +40 -0
- package/build/features/business/screens/BusinessType/FreelanceLicense.d.ts +11 -0
- package/build/features/business/screens/BusinessType/FreelanceLicense.js +112 -0
- package/build/features/business/screens/BusinessType/SelectType.d.ts +8 -0
- package/build/features/business/screens/BusinessType/SelectType.js +106 -0
- package/build/features/business/screens/BusinessType/Switch.d.ts +7 -0
- package/build/features/business/screens/BusinessType/Switch.js +35 -0
- package/build/features/business/screens/BusinessType/index.d.ts +3 -0
- package/build/features/business/screens/BusinessType/index.js +2 -0
- package/build/features/business/screens/BusinessType/validation.d.ts +15 -0
- package/build/features/business/screens/BusinessType/validation.js +14 -0
- package/build/features/business/screens/Confirm/Confirm.d.ts +5 -0
- package/build/features/business/screens/Confirm/Confirm.js +53 -0
- package/build/features/business/screens/Confirm/index.d.ts +3 -0
- package/build/features/business/screens/Confirm/index.js +2 -0
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +92 -0
- package/build/features/business/screens/Customers/CustomerLocations.js +122 -0
- package/build/features/business/screens/Customers/Customers.d.ts +5 -0
- package/build/features/business/screens/Customers/Customers.js +92 -0
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +7 -0
- package/build/features/business/screens/Customers/ExpectedCustomers.js +78 -0
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +7 -0
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +74 -0
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +44 -0
- package/build/features/business/screens/Customers/RefundPolicy.js +86 -0
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +3 -0
- package/build/features/business/screens/Customers/TransactionPolicy.js +37 -0
- package/build/features/business/screens/Customers/index.d.ts +3 -0
- package/build/features/business/screens/Customers/index.js +2 -0
- package/build/features/business/screens/Customers/validation.d.ts +20 -0
- package/build/features/business/screens/Customers/validation.js +8 -0
- package/build/features/business/screens/IDBOD/DOB.d.ts +5 -0
- package/build/features/business/screens/IDBOD/DOB.js +44 -0
- package/build/features/business/screens/IDBOD/ID.d.ts +5 -0
- package/build/features/business/screens/IDBOD/ID.js +69 -0
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +5 -0
- package/build/features/business/screens/IDBOD/IDBOD.js +85 -0
- package/build/features/business/screens/IDBOD/index.d.ts +3 -0
- package/build/features/business/screens/IDBOD/index.js +2 -0
- package/build/features/business/screens/IDBOD/validation.d.ts +11 -0
- package/build/features/business/screens/IDBOD/validation.js +5 -0
- package/build/features/business/screens/OTP/OTP.d.ts +11 -0
- package/build/features/business/screens/OTP/OTP.js +112 -0
- package/build/features/business/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/business/screens/OTP/OTPInput.js +51 -0
- package/build/features/business/screens/OTP/OTPTimer.d.ts +5 -0
- package/build/features/business/screens/OTP/OTPTimer.js +20 -0
- package/build/features/business/screens/OTP/index.d.ts +3 -0
- package/build/features/business/screens/OTP/index.js +2 -0
- package/build/features/business/screens/OTP/validation.d.ts +8 -0
- package/build/features/business/screens/OTP/validation.js +4 -0
- package/build/features/business/screens/Success/Success.d.ts +5 -0
- package/build/features/business/screens/Success/Success.js +15 -0
- package/build/features/business/screens/Success/index.d.ts +3 -0
- package/build/features/business/screens/Success/index.js +2 -0
- package/build/features/business/screens/VerifyNumber/OTPInput.d.ts +6 -0
- package/build/features/business/screens/VerifyNumber/OTPInput.js +68 -0
- package/build/features/business/screens/VerifyNumber/OTPTimer.d.ts +5 -0
- package/build/features/business/screens/VerifyNumber/OTPTimer.js +20 -0
- package/build/features/business/screens/VerifyNumber/VerifyNumber.d.ts +13 -0
- package/build/features/business/screens/VerifyNumber/VerifyNumber.js +119 -0
- package/build/features/business/screens/VerifyNumber/index.d.ts +3 -0
- package/build/features/business/screens/VerifyNumber/index.js +2 -0
- package/build/features/business/screens/VerifyNumber/validation.d.ts +8 -0
- package/build/features/business/screens/VerifyNumber/validation.js +4 -0
- package/build/features/connect/Connect.js +20 -22
- package/build/features/connect/screens/Individual/Email.d.ts +5 -0
- package/build/features/connect/screens/Individual/Email.js +31 -0
- package/build/features/connect/screens/Individual/Individual.d.ts +5 -0
- package/build/features/connect/screens/Individual/Individual.js +77 -0
- package/build/features/connect/screens/Individual/Name.d.ts +5 -0
- package/build/features/connect/screens/Individual/Name.js +31 -0
- package/build/features/connect/screens/Individual/index.d.ts +3 -0
- package/build/features/connect/screens/Individual/index.js +2 -0
- package/build/features/connect/screens/Individual/validation.d.ts +11 -0
- package/build/features/connect/screens/Individual/validation.js +5 -0
- package/build/features/connect/screens/MID/BusinessCountry.d.ts +2 -6
- package/build/features/connect/screens/MID/BusinessCountry.js +20 -79
- package/build/features/connect/screens/MID/IDNumber.d.ts +0 -4
- package/build/features/connect/screens/MID/IDNumber.js +24 -36
- package/build/features/connect/screens/MID/MID.js +41 -24
- package/build/features/connect/screens/MID/MIDTitle.js +2 -2
- package/build/features/connect/screens/MID/MobileNumber.d.ts +2 -7
- package/build/features/connect/screens/MID/MobileNumber.js +40 -84
- package/build/features/connect/screens/MID/validation.d.ts +18 -0
- package/build/features/connect/screens/MID/validation.js +8 -0
- package/build/features/connect/screens/Merchant/BrandName.d.ts +5 -0
- package/build/features/connect/screens/Merchant/BrandName.js +73 -0
- package/build/features/connect/screens/Merchant/Merchant.d.ts +5 -0
- package/build/features/connect/screens/Merchant/Merchant.js +50 -0
- package/build/features/connect/screens/Merchant/SocialMedia.d.ts +5 -0
- package/build/features/connect/screens/Merchant/SocialMedia.js +79 -0
- package/build/features/connect/screens/Merchant/TAC.d.ts +5 -0
- package/build/features/connect/screens/Merchant/TAC.js +79 -0
- package/build/features/connect/screens/Merchant/index.d.ts +3 -0
- package/build/features/connect/screens/Merchant/index.js +2 -0
- package/build/features/connect/screens/Merchant/validation.d.ts +50 -0
- package/build/features/connect/screens/Merchant/validation.js +23 -0
- package/build/features/connect/screens/OTP/OTP.d.ts +6 -2
- package/build/features/connect/screens/OTP/OTP.js +41 -46
- package/build/features/connect/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/connect/screens/OTP/OTPInput.js +38 -0
- package/build/features/connect/screens/OTP/validation.d.ts +8 -0
- package/build/features/connect/screens/OTP/validation.js +4 -0
- package/build/features/connect/screens/Password/Password.d.ts +5 -0
- package/build/features/connect/screens/Password/Password.js +49 -0
- package/build/features/connect/screens/Password/PasswordInput.d.ts +5 -0
- package/build/features/connect/screens/Password/PasswordInput.js +38 -0
- package/build/features/connect/screens/Password/index.d.ts +3 -0
- package/build/features/connect/screens/Password/index.js +2 -0
- package/build/features/connect/screens/Password/validation.d.ts +8 -0
- package/build/features/connect/screens/Password/validation.js +4 -0
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +5 -0
- package/build/features/connect/screens/ThankYou/ThankYou.js +15 -0
- package/build/features/connect/screens/ThankYou/index.d.ts +3 -0
- package/build/features/connect/screens/ThankYou/index.js +2 -0
- package/build/features/featuresScreens.d.ts +7 -0
- package/build/features/featuresScreens.js +99 -0
- package/build/features/owner/Owner.d.ts +6 -0
- package/build/features/owner/Owner.js +50 -0
- package/build/features/owner/index.d.ts +1 -0
- package/build/features/owner/index.js +1 -0
- package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.d.ts +19 -0
- package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.js +52 -0
- package/build/features/owner/screens/ShowOwnerInfo/index.d.ts +3 -0
- package/build/features/owner/screens/ShowOwnerInfo/index.js +2 -0
- package/build/features/owner/screens/ShowOwnerInfo/info.d.ts +7 -0
- package/build/features/owner/screens/ShowOwnerInfo/info.js +28 -0
- package/build/features/password/Password.d.ts +6 -0
- package/build/features/password/Password.js +50 -0
- package/build/features/password/index.d.ts +1 -0
- package/build/features/password/index.js +1 -0
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +7 -0
- package/build/features/password/screens/CreatePassword/ConditionText.js +23 -0
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +5 -0
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +27 -0
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +5 -0
- package/build/features/password/screens/CreatePassword/CreatePassword.js +51 -0
- package/build/features/password/screens/CreatePassword/Password.d.ts +5 -0
- package/build/features/password/screens/CreatePassword/Password.js +75 -0
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +7 -0
- package/build/features/password/screens/CreatePassword/PasswordBar.js +29 -0
- package/build/features/password/screens/CreatePassword/index.d.ts +3 -0
- package/build/features/password/screens/CreatePassword/index.js +2 -0
- package/build/features/password/screens/CreatePassword/validation.d.ts +11 -0
- package/build/features/password/screens/CreatePassword/validation.js +8 -0
- package/build/features/shared/Button/Button.d.ts +8 -0
- package/build/features/shared/Button/Button.js +49 -0
- package/build/features/shared/Button/index.d.ts +2 -0
- package/build/features/shared/Button/index.js +2 -0
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -0
- package/build/features/shared/CheckIcon/CheckIcon.js +14 -0
- package/build/features/shared/CheckIcon/index.d.ts +2 -0
- package/build/features/shared/CheckIcon/index.js +2 -0
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +6 -0
- package/build/features/shared/ClearIcon/ClearIcon.js +26 -0
- package/build/features/shared/ClearIcon/index.d.ts +2 -0
- package/build/features/shared/ClearIcon/index.js +2 -0
- package/build/features/shared/Containers/FeatureContainer.d.ts +4 -0
- package/build/features/shared/Containers/FeatureContainer.js +33 -0
- package/build/features/shared/Containers/ScreenContainer.d.ts +4 -0
- package/build/features/shared/Containers/ScreenContainer.js +28 -0
- package/build/features/shared/Containers/index.d.ts +3 -0
- package/build/features/shared/Containers/index.js +3 -0
- package/build/features/shared/ExpandIcon/ExpandIcon.d.ts +7 -0
- package/build/features/shared/ExpandIcon/ExpandIcon.js +24 -0
- package/build/features/shared/ExpandIcon/index.d.ts +2 -0
- package/build/features/shared/ExpandIcon/index.js +2 -0
- package/build/features/shared/Footer/Footer.d.ts +2 -0
- package/build/features/shared/Footer/Footer.js +16 -0
- package/build/features/shared/Footer/index.d.ts +2 -0
- package/build/features/shared/Footer/index.js +2 -0
- package/build/features/shared/Input/Input.d.ts +27 -0
- package/build/features/shared/Input/Input.js +59 -0
- package/build/features/shared/Input/index.d.ts +2 -0
- package/build/features/shared/Input/index.js +2 -0
- package/build/features/shared/OTP/OTP.d.ts +9 -0
- package/build/features/shared/OTP/OTP.js +85 -0
- package/build/features/shared/OTP/index.d.ts +2 -0
- package/build/features/shared/OTP/index.js +2 -0
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +8 -0
- package/build/features/shared/PasswordIcon/PasswordIcon.js +37 -0
- package/build/features/shared/PasswordIcon/index.d.ts +2 -0
- package/build/features/shared/PasswordIcon/index.js +2 -0
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +7 -0
- package/build/features/shared/SuccessScreen/SuccessScreen.js +54 -0
- package/build/features/shared/SuccessScreen/index.d.ts +2 -0
- package/build/features/shared/SuccessScreen/index.js +2 -0
- package/build/features/tax/Tax.d.ts +6 -0
- package/build/features/tax/Tax.js +50 -0
- package/build/features/tax/index.d.ts +1 -0
- package/build/features/tax/index.js +1 -0
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +5 -0
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +45 -0
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -0
- package/build/features/tax/screens/TaxDetails/VATId.js +27 -0
- package/build/features/tax/screens/TaxDetails/index.d.ts +3 -0
- package/build/features/tax/screens/TaxDetails/index.js +2 -0
- package/build/features/tax/screens/TaxDetails/validation.d.ts +8 -0
- package/build/features/tax/screens/TaxDetails/validation.js +4 -0
- package/build/hooks/index.d.ts +5 -0
- package/build/hooks/index.js +5 -0
- package/build/hooks/useAppDispatch.d.ts +4 -0
- package/build/hooks/useAppDispatch.js +2 -0
- package/build/hooks/useAppSelector.d.ts +3 -0
- package/build/hooks/useAppSelector.js +2 -0
- package/build/hooks/useAppTheme.js +3 -2
- package/build/hooks/useContainerDimensions.d.ts +4 -0
- package/build/hooks/useContainerDimensions.js +21 -0
- package/build/hooks/useEventListener.d.ts +5 -0
- package/build/hooks/useEventListener.js +20 -0
- package/build/hooks/useLanguage.d.ts +4 -0
- package/build/hooks/useLanguage.js +8 -0
- package/build/index.css +6 -1
- package/build/index.d.ts +7 -2
- package/build/index.js +17 -2
- package/build/theme/palette.js +11 -4
- package/build/theme/theme.d.ts +1 -1
- package/build/theme/theme.js +0 -1
- package/build/theme/typography.js +2 -2
- package/build/utils/array.d.ts +3 -1
- package/build/utils/array.js +7 -3
- package/build/utils/string.d.ts +3 -1
- package/build/utils/string.js +11 -2
- package/build/utils/validation.d.ts +10 -0
- package/build/utils/validation.js +30 -0
- package/package.json +120 -116
- package/build/app/hooks.d.ts +0 -7
- package/build/app/hooks.js +0 -3
|
@@ -0,0 +1,28 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
24
|
+
import MUICollapse from '@mui/material/Collapse';
|
|
25
|
+
export default function Collapse(_a) {
|
|
26
|
+
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
27
|
+
return (_jsx(MUICollapse, __assign({ unmountOnExit: true, timeout: 500 }, rest, { children: children })));
|
|
28
|
+
}
|
|
@@ -27,7 +27,7 @@ import 'react-calendar/dist/Calendar.css';
|
|
|
27
27
|
import Box from '@mui/material/Box';
|
|
28
28
|
import { styled } from '@mui/material/styles';
|
|
29
29
|
import Divider from '@mui/material/Divider';
|
|
30
|
-
import Collapse from '
|
|
30
|
+
import Collapse from '../Collapse';
|
|
31
31
|
import CalendarTodayOutlined from '@mui/icons-material/CalendarTodayOutlined';
|
|
32
32
|
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
33
33
|
import ExpandLessIcon from '@mui/icons-material/ExpandLess';
|
|
@@ -85,7 +85,7 @@ var DatePicker = function (_a) {
|
|
|
85
85
|
var defaultMax = new Date();
|
|
86
86
|
var defaultMin = new Date('1900-01-01');
|
|
87
87
|
var toggleCalender = function (event) {
|
|
88
|
-
var elementId = '
|
|
88
|
+
var elementId = 'animation-flow-template-content';
|
|
89
89
|
if (anchor) {
|
|
90
90
|
setTimeout(function () { return scrollDown(elementId); }, 500);
|
|
91
91
|
return setAnchor(null);
|
|
@@ -104,6 +104,6 @@ var DatePicker = function (_a) {
|
|
|
104
104
|
return (_jsxs(Container, __assign({ disabled: disabled, id: 'container-calendar' }, { children: [_jsx(InputFieldStyled, { endAdornment: _jsx(ArrowIcon, __assign({ disabled: disabled }, { children: disabled ? '' : arrowIcon })), value: date ? formattedDate(date) : '', placeholder: 'YYYY-MM-DD', onClick: function (e) {
|
|
105
105
|
if (!disabled)
|
|
106
106
|
toggleCalender(e);
|
|
107
|
-
}, startAdornment: calenderIcon, disabled: !disabled, readOnly: readOnly, dir: dir }), _jsxs(Collapse, __assign({ in: !!anchor
|
|
107
|
+
}, startAdornment: calenderIcon, disabled: !disabled, readOnly: readOnly, dir: dir }), _jsxs(Collapse, __assign({ in: !!anchor }, { children: [_jsx(Calendar, __assign({}, rest, { value: date, calendarType: 'Hebrew', onChange: handleOnDateChange, locale: rest.locale, maxDate: rest.maxDate || defaultMax, minDate: rest.minDate || defaultMin })), _jsx(Divider, {})] }))] })));
|
|
108
108
|
};
|
|
109
109
|
export default memo(DatePicker);
|
|
@@ -34,7 +34,7 @@ import Box from '@mui/material/Box';
|
|
|
34
34
|
import { SOCIAL_MEDIA_LINKS } from '../../constants/dummy';
|
|
35
35
|
var FooterStyled = styled(Box)(function (_a) {
|
|
36
36
|
var theme = _a.theme;
|
|
37
|
-
return (__assign(__assign({ display: 'flex', margin: theme.spacing(1.5), color: theme.palette.background.paper }, theme.typography.caption), { alignItems: 'center', justifyContent: 'center' }));
|
|
37
|
+
return (__assign(__assign({ direction: theme.direction, display: 'flex', margin: theme.spacing(1.5), color: theme.palette.background.paper }, theme.typography.caption), { alignItems: 'center', justifyContent: 'center', position: 'relative', bottom: 0, marginBottom: theme.spacing(-3.75) }));
|
|
38
38
|
});
|
|
39
39
|
var FollowUsStyled = styled(Text)(function (_a) {
|
|
40
40
|
var theme = _a.theme;
|
|
@@ -5,12 +5,15 @@ export interface InputFieldProps extends InputProps {
|
|
|
5
5
|
hide?: boolean;
|
|
6
6
|
startAdornment?: React.ReactNode;
|
|
7
7
|
endAdornment?: React.ReactNode;
|
|
8
|
+
warningType?: 'alert' | 'error';
|
|
9
|
+
warningMessage?: string;
|
|
8
10
|
}
|
|
9
11
|
declare const _default: React.MemoExoticComponent<{
|
|
10
|
-
({ onEnterPressed, hide, endAdornment, startAdornment, ...rest }: InputFieldProps): JSX.Element;
|
|
12
|
+
({ onEnterPressed, hide, endAdornment, startAdornment, warningType, warningMessage, ...rest }: InputFieldProps): JSX.Element;
|
|
11
13
|
defaultProps: {
|
|
12
14
|
hide: boolean;
|
|
13
15
|
placeholder: string;
|
|
16
|
+
warningType: string;
|
|
14
17
|
};
|
|
15
18
|
}>;
|
|
16
19
|
export default _default;
|
|
@@ -20,10 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import { memo } from 'react';
|
|
25
25
|
import Input from '@mui/material/Input';
|
|
26
|
-
import Collapse from '
|
|
26
|
+
import Collapse from '../Collapse';
|
|
27
|
+
import Warning from '../Warning';
|
|
27
28
|
import { alpha, styled } from '@mui/material/styles';
|
|
28
29
|
var InputStyled = styled(Input)(function (_a) {
|
|
29
30
|
var theme = _a.theme;
|
|
@@ -63,7 +64,7 @@ var InputStyled = styled(Input)(function (_a) {
|
|
|
63
64
|
});
|
|
64
65
|
});
|
|
65
66
|
var InputField = function (_a) {
|
|
66
|
-
var onEnterPressed = _a.onEnterPressed, hide = _a.hide, endAdornment = _a.endAdornment, startAdornment = _a.startAdornment, rest = __rest(_a, ["onEnterPressed", "hide", "endAdornment", "startAdornment"]);
|
|
67
|
+
var onEnterPressed = _a.onEnterPressed, hide = _a.hide, endAdornment = _a.endAdornment, startAdornment = _a.startAdornment, warningType = _a.warningType, warningMessage = _a.warningMessage, rest = __rest(_a, ["onEnterPressed", "hide", "endAdornment", "startAdornment", "warningType", "warningMessage"]);
|
|
67
68
|
var onKeyPress = function (e) {
|
|
68
69
|
var _a;
|
|
69
70
|
if (e.key === 'Enter')
|
|
@@ -72,10 +73,11 @@ var InputField = function (_a) {
|
|
|
72
73
|
};
|
|
73
74
|
if (!rest.defaultValue)
|
|
74
75
|
delete rest.defaultValue;
|
|
75
|
-
return (
|
|
76
|
+
return (_jsxs(Collapse, __assign({ in: !hide }, { children: [_jsx(InputStyled, __assign({ onKeyPress: onKeyPress, endAdornment: endAdornment, startAdornment: startAdornment }, rest)), _jsx(Collapse, __assign({ in: !!warningMessage, timeout: 400 }, { children: _jsx(Warning, __assign({ warningType: warningType }, { children: warningMessage })) }))] })));
|
|
76
77
|
};
|
|
77
78
|
InputField.defaultProps = {
|
|
78
79
|
hide: false,
|
|
79
|
-
placeholder: '500000000'
|
|
80
|
+
placeholder: '500000000',
|
|
81
|
+
warningType: 'error'
|
|
80
82
|
};
|
|
81
83
|
export default memo(InputField);
|
|
@@ -3,19 +3,21 @@ export interface LoaderProps {
|
|
|
3
3
|
outerColor?: string;
|
|
4
4
|
innerColor?: string;
|
|
5
5
|
duration?: number;
|
|
6
|
-
|
|
6
|
+
toggleAnimation?: boolean;
|
|
7
7
|
size?: number;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
|
-
|
|
9
|
+
className?: string;
|
|
10
10
|
}
|
|
11
|
-
declare
|
|
12
|
-
|
|
13
|
-
defaultProps: {
|
|
11
|
+
declare function Loader(props: LoaderProps): JSX.Element;
|
|
12
|
+
declare namespace Loader {
|
|
13
|
+
var defaultProps: {
|
|
14
14
|
outerColor: string;
|
|
15
15
|
innerColor: string;
|
|
16
|
-
runAnimation: boolean;
|
|
17
|
-
size: number;
|
|
18
16
|
duration: number;
|
|
17
|
+
toggleAnimation: boolean;
|
|
18
|
+
size: number;
|
|
19
|
+
style: null;
|
|
19
20
|
};
|
|
20
|
-
}
|
|
21
|
+
}
|
|
22
|
+
declare const _default: React.MemoExoticComponent<typeof Loader>;
|
|
21
23
|
export default _default;
|
|
@@ -9,53 +9,33 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import React
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import React from 'react';
|
|
14
14
|
import { styled } from '@mui/material/styles';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return ({
|
|
19
|
-
width: theme.spacing(12.5),
|
|
20
|
-
height: theme.spacing(12.5),
|
|
21
|
-
margin: 'auto',
|
|
15
|
+
var RootStyled = styled('div')(function () { return ({
|
|
16
|
+
'&:before': {
|
|
17
|
+
content: '""',
|
|
22
18
|
display: 'block',
|
|
23
|
-
|
|
24
|
-
}
|
|
19
|
+
paddingTop: '100%'
|
|
20
|
+
},
|
|
21
|
+
position: 'relative',
|
|
22
|
+
margin: '0px auto',
|
|
23
|
+
width: '40px',
|
|
24
|
+
height: '40px'
|
|
25
|
+
}); });
|
|
26
|
+
var LoaderBoxStyled = styled('svg')(function (_a) {
|
|
27
|
+
var size = _a.size;
|
|
28
|
+
return (__assign({ height: '100%', transformOrigin: 'center center', width: '100%', position: 'absolute', top: 0, left: 0, margin: 'auto' }, (size && { transform: "scale(".concat(size / 40.0, ")") })));
|
|
25
29
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
width: theme.spacing(12.5),
|
|
30
|
-
height: theme.spacing(12.5),
|
|
31
|
-
display: 'block',
|
|
32
|
-
position: 'relative',
|
|
33
|
-
margin: 'auto'
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
var SvgBoxLoaderStyled = styled('svg')(function (_a) {
|
|
37
|
-
var theme = _a.theme;
|
|
38
|
-
return ({
|
|
39
|
-
width: '100%',
|
|
40
|
-
height: '100%',
|
|
41
|
-
position: 'absolute',
|
|
42
|
-
margin: '0',
|
|
43
|
-
left: '0',
|
|
44
|
-
right: '0',
|
|
45
|
-
top: theme.spacing(-0.18)
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
var Loader = function (_a) {
|
|
49
|
-
var outerColor = _a.outerColor, innerColor = _a.innerColor, duration = _a.duration, runAnimation = _a.runAnimation, style = _a.style, svgStyle = _a.svgStyle, size = _a.size;
|
|
50
|
-
var defaultDuration = duration || 0;
|
|
51
|
-
var scaleStyle = size ? { transform: 'scale(' + size / 40.0 + ')' } : {};
|
|
52
|
-
return (_jsx(DivStyled, { children: _jsx(LoaderContainerStyled, __assign({ style: style }, { children: _jsxs(SvgBoxLoaderStyled, __assign({ style: Object.assign(scaleStyle, svgStyle) }, { children: [_jsx("circle", __assign({ style: { stroke: outerColor }, cx: '50%', cy: '50%', r: '20', fill: 'none', strokeLinecap: 'round', strokeWidth: ' 3.6px', strokeDasharray: ' 125, 124' }, { children: runAnimation && (_jsxs(Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '0 50 50', to: '360 50 50', dur: defaultDuration / 3 + 's', repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; 122; 122; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: defaultDuration + 's', repeatCount: 'indefinite' })] })) })), _jsx("circle", __assign({ style: { stroke: innerColor }, cx: '50%', cy: '50%', r: '14', fill: 'none', strokeLinecap: 'round', strokeWidth: ' 3.6px', strokeDasharray: ' 88, 124' }, { children: runAnimation && (_jsxs(Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '360 50 50', to: '0 50 50', dur: defaultDuration / 3 + 's', repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; -85; -85; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: defaultDuration + 's', repeatCount: 'indefinite' })] })) }))] })) })) }));
|
|
53
|
-
};
|
|
30
|
+
function Loader(props) {
|
|
31
|
+
return (_jsx(RootStyled, __assign({ className: 'loader', style: props.style }, { children: _jsxs(LoaderBoxStyled, __assign({ className: 'circular-loader', viewBox: '25 25 50 50' }, { children: [_jsx("circle", __assign({ cx: '50', cy: '50', r: '20', fill: 'none', stroke: props.outerColor || 'black', strokeWidth: '3.6px', strokeLinecap: 'round', strokeDasharray: ' 125, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '0 50 50', to: '360 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; 122; 122; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) })), _jsx("circle", __assign({ cx: '50', cy: '50', r: '14', fill: 'none', stroke: props.innerColor || 'black', strokeWidth: ' 3.6px', strokeLinecap: 'round', strokeDasharray: ' 88, 124' }, { children: props.toggleAnimation && (_jsxs(_Fragment, { children: [_jsx("animateTransform", { attributeName: 'transform', type: 'rotate', from: '360 50 50', to: '0 50 50', dur: "".concat(props.duration || 0 / 3, "s"), repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'stroke-dashoffset', values: '0; -85; -85; 0; 0', keyTimes: '0; 0.45; 0.55; 0.9; 1', dur: "".concat(props.duration, "s"), repeatCount: 'indefinite' })] })) }))] })) })));
|
|
32
|
+
}
|
|
54
33
|
Loader.defaultProps = {
|
|
55
34
|
outerColor: '#423e3c',
|
|
56
35
|
innerColor: '#423e3c',
|
|
57
|
-
|
|
36
|
+
duration: 3,
|
|
37
|
+
toggleAnimation: false,
|
|
58
38
|
size: 50,
|
|
59
|
-
|
|
39
|
+
style: null
|
|
60
40
|
};
|
|
61
41
|
export default React.memo(Loader);
|
|
@@ -28,29 +28,9 @@ var OTPFieldStyled = styled(OTPInput)(function (_a) {
|
|
|
28
28
|
var _b;
|
|
29
29
|
var theme = _a.theme;
|
|
30
30
|
return ({
|
|
31
|
-
input: (_b = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
color: theme.palette.text.primary,
|
|
35
|
-
outline: 'none',
|
|
36
|
-
border: 'none',
|
|
37
|
-
borderLeft: theme.spacing(0),
|
|
38
|
-
borderRight: theme.spacing(0),
|
|
39
|
-
borderTop: theme.spacing(0),
|
|
40
|
-
borderBottom: '1px solid ',
|
|
41
|
-
borderColor: '#a6a6a6',
|
|
42
|
-
textAlign: 'center',
|
|
43
|
-
margin: '1.2%'
|
|
44
|
-
},
|
|
45
|
-
_b[theme.breakpoints.down('sm')] = {
|
|
46
|
-
margin: '1%'
|
|
47
|
-
},
|
|
48
|
-
_b.background = 'transparent',
|
|
49
|
-
_b.caretColor = theme.palette.primary.main,
|
|
50
|
-
_b.marginInline = theme.spacing(0.6),
|
|
51
|
-
_b.fontSize = theme.spacing(2.5),
|
|
52
|
-
_b.width = theme.spacing(5),
|
|
53
|
-
_b)
|
|
31
|
+
input: __assign(__assign((_b = { borderRadius: theme.spacing(0), height: theme.spacing(4.75), color: theme.palette.text.primary, outline: 'none', border: 'none', borderLeft: theme.spacing(0), borderRight: theme.spacing(0), borderTop: theme.spacing(0), borderBottom: '1px solid ', borderColor: '#a6a6a6', textAlign: 'center', margin: '1.2%' }, _b[theme.breakpoints.down('sm')] = {
|
|
32
|
+
margin: '1%'
|
|
33
|
+
}, _b.background = 'transparent', _b.caretColor = theme.palette.primary.main, _b.marginInline = theme.spacing(0.6), _b), theme.typography.h6), { width: theme.spacing(5) })
|
|
54
34
|
});
|
|
55
35
|
});
|
|
56
36
|
var OTPFieldComponent = function (_a) {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BoxProps } from '@mui/material/Box';
|
|
3
3
|
export interface OTPTimerProps extends BoxProps {
|
|
4
|
-
|
|
4
|
+
timeInSeconds?: number;
|
|
5
|
+
timeEndLabel: string;
|
|
6
|
+
onResetClick?: () => void;
|
|
5
7
|
}
|
|
6
8
|
declare const _default: React.MemoExoticComponent<{
|
|
7
|
-
({
|
|
9
|
+
({ timeInSeconds, timeEndLabel, onResetClick, ...rest }: OTPTimerProps): JSX.Element;
|
|
8
10
|
defaultProps: {
|
|
9
11
|
time: number;
|
|
10
12
|
};
|
|
@@ -30,25 +30,37 @@ var OTPTimerStyled = styled(Box)(function (_a) {
|
|
|
30
30
|
return ({
|
|
31
31
|
display: 'flex',
|
|
32
32
|
paddingInline: theme.spacing(2.5),
|
|
33
|
-
paddingBlockStart: theme.spacing(6.25),
|
|
34
33
|
justifyContent: 'end'
|
|
35
34
|
});
|
|
36
35
|
});
|
|
37
36
|
var OTPTimerTextStyled = styled(Text)(function (_a) {
|
|
38
37
|
var theme = _a.theme;
|
|
39
38
|
return ({
|
|
40
|
-
width: 'fit-content',
|
|
41
39
|
fontWeight: theme.typography.fontWeightBold,
|
|
42
|
-
fontSize: theme.
|
|
40
|
+
fontSize: theme.typography.fontSize,
|
|
43
41
|
marginTop: theme.spacing(0.5)
|
|
44
42
|
});
|
|
45
43
|
});
|
|
46
44
|
var OTPTimerComponent = function (_a) {
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick, rest = __rest(_a, ["timeInSeconds", "timeEndLabel", "onResetClick"]);
|
|
46
|
+
var _b = React.useState(timeInSeconds || 60), timeValue = _b[0], seTimeValue = _b[1];
|
|
47
|
+
React.useEffect(function () {
|
|
48
|
+
if (timeValue <= 0)
|
|
49
|
+
return;
|
|
50
|
+
var interval = setInterval(function () {
|
|
51
|
+
seTimeValue(timeValue - 1);
|
|
52
|
+
}, 1000);
|
|
53
|
+
return function () { return clearInterval(interval); };
|
|
54
|
+
}, [timeValue]);
|
|
55
|
+
var resetTimer = function () {
|
|
56
|
+
if (onResetClick) {
|
|
57
|
+
onResetClick();
|
|
58
|
+
seTimeValue(timeInSeconds || 60);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
return (_jsx(OTPTimerStyled, __assign({ onClick: resetTimer }, rest, { children: _jsx(OTPTimerTextStyled, __assign({ variant: 'h4', color: 'primary', sx: {
|
|
62
|
+
cursor: timeValue <= 0 ? 'pointer' : 'default'
|
|
63
|
+
} }, { children: timeValue > 0 ? (timeValue > 9 ? "00:".concat(timeValue) : "00:0".concat(timeValue)) : timeEndLabel })) })));
|
|
52
64
|
};
|
|
53
65
|
OTPTimerComponent.defaultProps = {
|
|
54
66
|
time: 59
|
|
@@ -10,15 +10,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { Fragment } from 'react';
|
|
14
|
+
import { ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
|
|
15
15
|
export default function ThemeProvider(_a) {
|
|
16
16
|
var children = _a.children, theme = _a.theme;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
console.info('Now the application is using the custom theme.');
|
|
22
|
-
}, [theme]);
|
|
23
|
-
return _jsx(MUIThemeProvider, __assign({ theme: theme || createTheme() }, { children: children }));
|
|
17
|
+
if (!theme) {
|
|
18
|
+
return _jsx(Fragment, {});
|
|
19
|
+
}
|
|
20
|
+
return _jsx(MUIThemeProvider, __assign({ theme: theme }, { children: children }));
|
|
24
21
|
}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ListProps } from '@mui/material/List';
|
|
3
3
|
import { ListItemProps } from '@mui/material/ListItem';
|
|
4
4
|
export interface SimpleListProps<T> extends ListProps {
|
|
5
5
|
list: Array<T>;
|
|
6
6
|
listItemProps?: ListItemProps;
|
|
7
7
|
onSelectItem: (item: T) => void;
|
|
8
|
-
renderItem: (item: T) => React.ReactElement;
|
|
8
|
+
renderItem: (item: T, idx: number) => React.ReactElement;
|
|
9
|
+
searchKeyPath?: string;
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
+
declare function SimpleList<T>({ list, listItemProps, onSelectItem, renderItem, children, searchKeyPath, ...rest }: SimpleListProps<T>): JSX.Element;
|
|
12
|
+
declare namespace SimpleList {
|
|
13
|
+
var defaultProps: {
|
|
14
|
+
searchKeyPath: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
declare const _default: typeof SimpleList;
|
|
18
|
+
export default _default;
|
|
@@ -22,31 +22,38 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { createElement as _createElement } from "react";
|
|
25
|
+
import * as React from 'react';
|
|
25
26
|
import List from '@mui/material/List';
|
|
26
27
|
import ListItem from '@mui/material/ListItem';
|
|
27
|
-
import { styled
|
|
28
|
-
import
|
|
29
|
-
|
|
28
|
+
import { styled } from '@mui/material/styles';
|
|
29
|
+
import get from 'lodash-es/get';
|
|
30
|
+
import { useEventListener } from '../../hooks';
|
|
31
|
+
var ListStyled = styled(List)(function (_a) {
|
|
32
|
+
var _b;
|
|
30
33
|
var theme = _a.theme;
|
|
31
|
-
return ({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
return (_b = {
|
|
35
|
+
overflowY: 'auto',
|
|
36
|
+
listStyle: 'none',
|
|
37
|
+
paddingTop: theme.spacing(2.125),
|
|
38
|
+
height: theme.spacing(40)
|
|
39
|
+
},
|
|
40
|
+
_b[theme.breakpoints.down('sm')] = {
|
|
41
|
+
height: "calc(100vh - ".concat(theme.spacing(34.875), ")")
|
|
42
|
+
},
|
|
43
|
+
_b['&::-webkit-scrollbar'] = {
|
|
37
44
|
width: '0px'
|
|
38
45
|
},
|
|
39
|
-
'&::-webkit-scrollbar-track'
|
|
46
|
+
_b['&::-webkit-scrollbar-track'] = {
|
|
40
47
|
boxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)',
|
|
41
48
|
webkitBoxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)'
|
|
42
49
|
},
|
|
43
|
-
'&::-webkit-scrollbar-thumb'
|
|
50
|
+
_b['&::-webkit-scrollbar-thumb'] = {
|
|
44
51
|
backgroundColor: 'rgba(0,0,0,.1)',
|
|
45
52
|
outline: '1px solid slategrey'
|
|
46
|
-
}
|
|
47
|
-
|
|
53
|
+
},
|
|
54
|
+
_b);
|
|
48
55
|
});
|
|
49
|
-
var
|
|
56
|
+
var ListItemStyled = styled(ListItem)(function (_a) {
|
|
50
57
|
var theme = _a.theme;
|
|
51
58
|
return ({
|
|
52
59
|
display: 'flex',
|
|
@@ -58,14 +65,36 @@ var TapListItem = styled(ListItem)(function (_a) {
|
|
|
58
65
|
justifyContent: 'space-between'
|
|
59
66
|
});
|
|
60
67
|
});
|
|
61
|
-
|
|
62
|
-
var list = _a.list, listItemProps = _a.listItemProps, onSelectItem = _a.onSelectItem, renderItem = _a.renderItem, children = _a.children,
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
function SimpleList(_a) {
|
|
69
|
+
var list = _a.list, listItemProps = _a.listItemProps, onSelectItem = _a.onSelectItem, renderItem = _a.renderItem, children = _a.children, searchKeyPath = _a.searchKeyPath, rest = __rest(_a, ["list", "listItemProps", "onSelectItem", "renderItem", "children", "searchKeyPath"]);
|
|
70
|
+
var _b = React.useState(list), items = _b[0], setItems = _b[1];
|
|
71
|
+
var filterItems = function (arr, searchKey) {
|
|
72
|
+
return arr.filter(function (item) {
|
|
73
|
+
var searchValue = get(item, searchKeyPath || '') || '';
|
|
74
|
+
return searchValue.charAt(0).toLowerCase() === searchKey.charAt(searchKey.length - 1).toLowerCase();
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
var onKeySearch = function (_a) {
|
|
78
|
+
var code = _a.code;
|
|
79
|
+
if (code) {
|
|
80
|
+
var filteredArr = filterItems(items, code);
|
|
81
|
+
if (filteredArr.length === 0 || code === 'Backspace')
|
|
82
|
+
setItems(list);
|
|
83
|
+
else
|
|
84
|
+
setItems(filteredArr);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
if (searchKeyPath)
|
|
88
|
+
useEventListener('keydown', onKeySearch);
|
|
89
|
+
return (_jsx(ListStyled, __assign({}, rest, { children: children ||
|
|
90
|
+
items.map(function (item, idx) {
|
|
91
|
+
return (_createElement(ListItemStyled, __assign({}, listItemProps, { onClick: function () {
|
|
68
92
|
onSelectItem(item);
|
|
69
|
-
}, disableGutters: true, key: idx }), renderItem(item)));
|
|
93
|
+
}, disableGutters: true, key: idx }), renderItem(item, idx)));
|
|
70
94
|
}) })));
|
|
71
95
|
}
|
|
96
|
+
SimpleList.defaultProps = {
|
|
97
|
+
searchKeyPath: ''
|
|
98
|
+
};
|
|
99
|
+
var typedMemo = React.memo;
|
|
100
|
+
export default typedMemo(SimpleList);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SlideProps as MUISlideProps } from '@mui/material/Slide';
|
|
3
|
+
export interface SlideProps extends MUISlideProps {
|
|
4
|
+
}
|
|
5
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<SlideProps, "className" | "style" | "color" | "direction" | "translate" | "slot" | "title" | "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" | "children" | "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" | "in" | "mountOnEnter" | "unmountOnExit" | "timeout" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "container"> & React.RefAttributes<unknown>>>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
24
|
+
import React from 'react';
|
|
25
|
+
import MUISlide from '@mui/material/Slide';
|
|
26
|
+
var Slide = React.forwardRef(function (_a, ref) {
|
|
27
|
+
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
28
|
+
return (_jsx(MUISlide, __assign({ ref: ref, direction: 'up', timeout: { exit: 300, appear: 500, enter: 300 }, mountOnEnter: true, unmountOnExit: true }, rest, { children: children })));
|
|
29
|
+
});
|
|
30
|
+
export default React.memo(Slide);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SocialMediaTypes } from '../../@types';
|
|
3
|
+
import { ToggleButtonGroupProps } from '../ToggleButtonGroup';
|
|
4
|
+
import { ToggleButtonProps } from '../ToggleButton';
|
|
5
|
+
export interface SocialMediaGroupProps extends ToggleButtonGroupProps {
|
|
6
|
+
toggleButtonProps?: ToggleButtonProps;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: React.MemoExoticComponent<{
|
|
9
|
+
({ children, defaultValue, onChange, toggleButtonProps, ...rest }: SocialMediaGroupProps): JSX.Element;
|
|
10
|
+
defaultProps: {
|
|
11
|
+
defaultValue: SocialMediaTypes;
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|