@tap-payments/auth-jsconnect 2.0.43-test → 2.0.43
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 +50 -20
- package/build/@types/app.js +9 -3
- package/build/@types/form.d.ts +21 -12
- package/build/api/auth.d.ts +28 -5
- package/build/api/auth.js +36 -1
- package/build/api/axios.js +2 -2
- package/build/api/brand.d.ts +2 -1
- package/build/api/brand.js +10 -1
- package/build/api/country.d.ts +3 -1
- package/build/api/country.js +3 -1
- package/build/api/data.d.ts +38 -7
- package/build/api/data.js +57 -17
- package/build/api/entity.d.ts +51 -5
- package/build/api/entity.js +39 -9
- package/build/api/firebase.d.ts +1 -1
- package/build/api/firebase.js +3 -1
- package/build/api/index.d.ts +44 -14
- package/build/api/individual.d.ts +76 -19
- package/build/api/individual.js +29 -2
- package/build/api/lead.d.ts +9 -6
- package/build/api/lead.js +8 -1
- package/build/app/rootReducer.d.ts +0 -1
- package/build/app/rootReducer.js +0 -2
- package/build/app/settings.d.ts +9 -2
- package/build/app/settings.js +22 -11
- package/build/app/store.d.ts +0 -2
- package/build/assets/locales/ar.json +258 -183
- package/build/assets/locales/en.json +190 -108
- package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -1
- package/build/components/AnimationFlow/AnimationFlow.js +6 -8
- package/build/components/AnimationFlow/BottomSheet.d.ts +2 -1
- package/build/components/AnimationFlow/BottomSheet.js +4 -3
- package/build/components/AnimationFlow/Dialog.d.ts +4 -1
- package/build/components/AnimationFlow/Dialog.js +5 -3
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +13 -0
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +94 -0
- package/build/components/ArabicDatePicker/index.d.ts +2 -0
- package/build/components/ArabicDatePicker/index.js +2 -0
- package/build/components/ArabicDatePicker/style.css +24 -0
- package/build/components/FileInput/DragAndDrop.d.ts +10 -1
- package/build/components/FileInput/DragAndDrop.js +108 -8
- package/build/components/Lottie/Lottie.d.ts +878 -0
- package/build/components/Lottie/Lottie.js +58 -0
- package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
- package/build/components/Lottie/files/success.json +425 -0
- package/build/components/Lottie/index.d.ts +3 -0
- package/build/components/Lottie/index.js +3 -0
- package/build/components/OTPField/OTPField.d.ts +2 -1
- package/build/components/OTPField/OTPField.js +2 -2
- package/build/components/OTPTimer/OTPTimer.js +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -0
- package/build/components/ProgressBar/CircularProgressBar.js +48 -0
- package/build/components/ProgressBar/index.d.ts +2 -0
- package/build/components/ProgressBar/index.js +2 -0
- package/build/components/RadioLabel/RadioLabel.d.ts +2 -1
- package/build/components/RadioLabel/RadioLabel.js +2 -2
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +2 -6
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +4 -49
- package/build/constants/api.d.ts +6 -0
- package/build/constants/api.js +14 -1
- package/build/constants/app.d.ts +5 -5
- package/build/constants/app.js +62 -32
- package/build/constants/assets.d.ts +14 -0
- package/build/constants/assets.js +16 -2
- package/build/constants/dummy.d.ts +1 -1
- package/build/constants/dummy.js +2 -2
- package/build/constants/validation.d.ts +10 -0
- package/build/constants/validation.js +11 -1
- package/build/features/app/auth/authStore.d.ts +30 -4
- package/build/features/app/auth/authStore.js +182 -20
- package/build/features/app/bank/bankStore.d.ts +16 -0
- package/build/features/app/bank/bankStore.js +88 -41
- package/build/features/app/business/businessStore.d.ts +33 -5
- package/build/features/app/business/businessStore.js +487 -350
- package/build/features/app/connect/connectStore.d.ts +34 -31
- package/build/features/app/connect/connectStore.js +427 -300
- package/build/features/app/entity/entityStore.d.ts +40 -8
- package/build/features/app/entity/entityStore.js +387 -149
- package/build/features/app/individual/individualStore.d.ts +18 -0
- package/build/features/app/individual/individualStore.js +168 -89
- package/build/features/app/password/passwordStore.d.ts +1 -7
- package/build/features/app/password/passwordStore.js +31 -20
- package/build/features/app/tax/taxStore.js +23 -16
- package/build/features/auth/Auth.d.ts +2 -1
- package/build/features/auth/Auth.js +37 -9
- package/build/features/auth/screens/NID/DOB.d.ts +7 -0
- package/build/features/auth/screens/NID/DOB.js +47 -0
- package/build/features/auth/screens/NID/IDNumber.d.ts +3 -0
- package/build/features/auth/screens/NID/IDNumber.js +64 -0
- package/build/features/auth/screens/NID/NID.d.ts +5 -0
- package/build/features/auth/screens/NID/NID.js +68 -0
- package/build/features/auth/screens/NID/TAC.d.ts +3 -0
- package/build/features/auth/screens/NID/TAC.js +87 -0
- package/build/features/auth/screens/NID/index.d.ts +3 -0
- package/build/features/auth/screens/NID/index.js +2 -0
- package/build/features/auth/screens/NID/validation.d.ts +27 -0
- package/build/features/auth/screens/NID/validation.js +19 -0
- package/build/features/auth/screens/OTP/OTP.js +8 -4
- package/build/features/auth/screens/OTP/OTPInput.js +9 -2
- package/build/features/bank/Bank.js +4 -4
- package/build/features/bank/screens/BankDetails/BankDetails.js +18 -5
- package/build/features/bank/screens/BankDetails/BankName.js +2 -1
- package/build/features/bank/screens/BankDetails/BankStatement.js +41 -8
- package/build/features/bank/screens/BankDetails/Beneficiary.js +10 -11
- package/build/features/bank/screens/BankDetails/IBAN.js +4 -1
- package/build/features/bank/screens/BankDetails/validation.js +2 -2
- package/build/features/bank/screens/Success/Success.js +7 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +16 -12
- package/build/features/business/Business.js +4 -4
- package/build/features/business/screens/Activities/Activities.js +16 -17
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +37 -1
- package/build/features/business/screens/Activities/ActivitiesList.js +51 -12
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +15 -1
- package/build/features/business/screens/Activities/OperationStartDate.js +21 -2
- package/build/features/business/screens/Activities/validation.d.ts +0 -51
- package/build/features/business/screens/Activities/validation.js +4 -10
- package/build/features/business/screens/BusinessType/BusinessType.js +20 -7
- package/build/features/business/screens/BusinessType/EntityName.d.ts +6 -0
- package/build/features/business/screens/BusinessType/EntityName.js +56 -0
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +6 -0
- package/build/features/business/screens/BusinessType/LicenseCertificate.js +76 -0
- package/build/features/business/screens/BusinessType/LicenseList.js +26 -7
- package/build/features/business/screens/BusinessType/LicenseNumber.js +12 -6
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +6 -0
- package/build/features/business/screens/BusinessType/LicenseType.js +78 -0
- package/build/features/business/screens/BusinessType/validation.d.ts +19 -0
- package/build/features/business/screens/BusinessType/validation.js +52 -3
- package/build/features/business/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/business/screens/CivilID/CivilID.js +67 -0
- package/build/features/business/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/business/screens/CivilID/IDNumber.js +59 -0
- package/build/features/business/screens/CivilID/index.d.ts +3 -0
- package/build/features/business/screens/CivilID/index.js +2 -0
- package/build/features/business/screens/CivilID/validation.d.ts +8 -0
- package/build/features/business/screens/CivilID/validation.js +4 -0
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +15 -2
- package/build/features/business/screens/Customers/CustomerLocations.js +32 -8
- package/build/features/business/screens/Customers/Customers.js +15 -9
- package/build/features/business/screens/Customers/ExpectedCustomers.js +16 -4
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +32 -14
- package/build/features/business/screens/Customers/RefundPolicy.js +8 -2
- package/build/features/business/screens/Customers/TransactionPolicy.js +8 -2
- package/build/features/business/screens/IDBOD/IDBOD.js +15 -2
- package/build/features/business/screens/OTP/OTP.js +15 -2
- package/build/features/business/screens/Success/Success.js +10 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -11
- package/build/features/business/screens/Verify/Verify.js +4 -4
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACI.js +159 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACILoading.d.ts +6 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACILoading.js +23 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACISuccess.d.ts +5 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACISuccess.js +8 -0
- package/build/features/business/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/business/screens/VerifyPACI/index.js +2 -0
- package/build/features/connect/Connect.d.ts +1 -0
- package/build/features/connect/Connect.js +38 -10
- package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connect/screens/CivilID/CivilID.js +102 -0
- package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
- package/build/features/connect/screens/CivilID/index.d.ts +3 -0
- package/build/features/connect/screens/CivilID/index.js +2 -0
- package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
- package/build/features/connect/screens/CivilID/validation.js +4 -0
- package/build/features/connect/screens/Individual/Email.js +11 -3
- package/build/features/connect/screens/Individual/Individual.js +44 -28
- package/build/features/connect/screens/Merchant/BrandList.js +15 -7
- package/build/features/connect/screens/Merchant/BrandName.js +7 -4
- package/build/features/connect/screens/Merchant/Merchant.js +48 -65
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +4 -1
- package/build/features/connect/screens/Merchant/SalesChannels.js +28 -31
- package/build/features/connect/screens/Merchant/SocialMedia.d.ts +3 -4
- package/build/features/connect/screens/Merchant/SocialMedia.js +106 -112
- package/build/features/connect/screens/Merchant/TAC.js +8 -2
- package/build/features/connect/screens/Merchant/validation.d.ts +13 -123
- package/build/features/connect/screens/Merchant/validation.js +106 -173
- package/build/features/connect/screens/Mobile/Mobile.js +33 -12
- package/build/features/connect/screens/NID/NID.js +5 -1
- package/build/features/connect/screens/OTP/OTP.js +20 -6
- package/build/features/connect/screens/OTP/OTPInput.js +3 -2
- package/build/features/connect/screens/ThankYou/ThankYou.js +8 -2
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +159 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +6 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +23 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +8 -0
- package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/connect/screens/VerifyPACI/index.js +2 -0
- package/build/features/entity/Entity.js +6 -6
- package/build/features/entity/screens/Customers/CustomerLocations.d.ts +118 -0
- package/build/features/entity/screens/Customers/CustomerLocations.js +171 -0
- package/build/features/entity/screens/Customers/Customers.d.ts +5 -0
- package/build/features/entity/screens/Customers/Customers.js +90 -0
- package/build/features/entity/screens/Customers/ExpectedCustomers.d.ts +8 -0
- package/build/features/entity/screens/Customers/ExpectedCustomers.js +98 -0
- package/build/features/entity/screens/Customers/ExpectedSalesRange.d.ts +8 -0
- package/build/features/entity/screens/Customers/ExpectedSalesRange.js +127 -0
- package/build/features/entity/screens/Customers/RefundPolicy.d.ts +36 -0
- package/build/features/entity/screens/Customers/RefundPolicy.js +84 -0
- package/build/features/entity/screens/Customers/TransactionPolicy.d.ts +3 -0
- package/build/features/entity/screens/Customers/TransactionPolicy.js +44 -0
- package/build/features/entity/screens/Customers/index.d.ts +3 -0
- package/build/features/entity/screens/Customers/index.js +2 -0
- package/build/features/entity/screens/Customers/validation.d.ts +20 -0
- package/build/features/entity/screens/Customers/validation.js +13 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +2 -1
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +25 -15
- package/build/features/entity/screens/EntityInfoConfirm/Article.d.ts +3 -0
- package/build/features/entity/screens/EntityInfoConfirm/Article.js +73 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +38 -10
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +20 -5
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +2 -1
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +34 -5
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +13 -18
- package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +75 -41
- package/build/features/entity/screens/EntityInfoConfirm/validation.js +76 -10
- package/build/features/entity/screens/Success/Success.js +7 -3
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +11 -10
- package/build/features/entity/screens/Verify/Verify.js +18 -5
- package/build/features/featuresScreens.d.ts +0 -1
- package/build/features/featuresScreens.js +30 -7
- package/build/features/individual/Individual.js +4 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +18 -25
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +15 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +11 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +2 -2
- package/build/features/individual/screens/Success/Success.js +7 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +16 -12
- package/build/features/individual/screens/Verify/Verify.js +18 -5
- package/build/features/password/Password.js +4 -4
- package/build/features/password/screens/CreatePassword/CreatePassword.js +16 -3
- package/build/features/password/screens/OTP/OTP.js +15 -2
- package/build/features/password/screens/Success/Success.js +7 -3
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +16 -13
- package/build/features/password/screens/Verify/Verify.js +16 -3
- package/build/features/shared/Background/Background.d.ts +2 -5
- package/build/features/shared/Background/Background.js +7 -3
- package/build/features/shared/Button/Button.js +1 -0
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +2 -1
- package/build/features/shared/Button/EmailProvidersButtons.js +7 -2
- package/build/features/shared/Button/MobileButton.d.ts +2 -1
- package/build/features/shared/Button/MobileButton.js +2 -2
- package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
- package/build/features/shared/Dialog/CloseDialog.js +71 -0
- package/build/features/shared/Dialog/DialogContainer.d.ts +8 -0
- package/build/features/shared/Dialog/DialogContainer.js +56 -0
- package/build/features/shared/Dialog/index.d.ts +4 -0
- package/build/features/shared/Dialog/index.js +4 -0
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/Input/Input.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +3 -2
- package/build/features/shared/UploadFile/UploadFile.d.ts +10 -3
- package/build/features/shared/UploadFile/UploadFile.js +24 -9
- package/build/features/signIn/SignIn.js +4 -4
- package/build/features/signIn/screens/Email/Email.js +4 -2
- package/build/features/signIn/screens/Mobile/Mobile.js +5 -1
- package/build/features/signIn/screens/OTP/OTP.js +14 -1
- package/build/features/signIn/screens/Password/Password.js +15 -2
- package/build/features/tax/Tax.js +6 -6
- package/build/features/tax/screens/Success/Success.js +9 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +15 -11
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +16 -3
- package/build/features/tax/screens/Verify/Verify.js +16 -3
- package/build/hooks/index.d.ts +2 -0
- package/build/hooks/index.js +2 -0
- package/build/hooks/useAppConfig.d.ts +3 -1
- package/build/hooks/useAppConfig.js +2 -2
- package/build/hooks/useAppDispatch.d.ts +0 -1
- package/build/hooks/useErrorListener.js +0 -6
- package/build/hooks/useScreen.d.ts +3 -0
- package/build/hooks/useScreen.js +14 -0
- package/build/hooks/useSetFromDefaultValues.d.ts +2 -0
- package/build/hooks/useSetFromDefaultValues.js +24 -0
- package/build/index.d.ts +2 -3
- package/build/index.js +1 -4
- package/build/utils/array.d.ts +50 -1
- package/build/utils/array.js +66 -0
- package/build/utils/common.d.ts +1 -0
- package/build/utils/common.js +3 -0
- package/build/utils/date.d.ts +1 -0
- package/build/utils/date.js +5 -0
- package/build/utils/device.d.ts +1 -0
- package/build/utils/device.js +13 -0
- package/build/utils/index.d.ts +2 -0
- package/build/utils/index.js +2 -0
- package/build/utils/locale.js +1 -1
- package/build/utils/object.d.ts +1 -0
- package/build/utils/object.js +12 -0
- package/build/utils/string.d.ts +14 -0
- package/build/utils/string.js +85 -3
- package/build/utils/validation.d.ts +2 -0
- package/build/utils/validation.js +6 -0
- package/package.json +4 -3
- package/build/features/app/otp/otpStore.d.ts +0 -28
- package/build/features/app/otp/otpStore.js +0 -153
- package/build/features/business/screens/Activities/SalesChannels.d.ts +0 -5
- package/build/features/business/screens/Activities/SalesChannels.js +0 -112
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +0 -112
- package/build/features/otp/OTP.d.ts +0 -7
- package/build/features/otp/OTP.js +0 -58
- package/build/features/otp/index.d.ts +0 -0
- package/build/features/otp/index.js +0 -1
- package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +0 -6
- package/build/features/otp/screens/OTPVerify/OTPInput.js +0 -47
- package/build/features/otp/screens/OTPVerify/Verify.d.ts +0 -5
- package/build/features/otp/screens/OTPVerify/Verify.js +0 -49
- package/build/features/otp/screens/OTPVerify/index.d.ts +0 -2
- package/build/features/otp/screens/OTPVerify/index.js +0 -2
- package/build/features/otp/screens/OTPVerify/validation.d.ts +0 -8
- package/build/features/otp/screens/OTPVerify/validation.js +0 -4
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
{
|
|
2
|
+
"v": "4.8.0",
|
|
3
|
+
"meta": { "g": "LottieFiles AE 3.0.2", "a": "", "k": "", "d": "", "tc": "" },
|
|
4
|
+
"fr": 30,
|
|
5
|
+
"ip": 0,
|
|
6
|
+
"op": 106,
|
|
7
|
+
"w": 640,
|
|
8
|
+
"h": 640,
|
|
9
|
+
"nm": "success",
|
|
10
|
+
"ddd": 0,
|
|
11
|
+
"assets": [],
|
|
12
|
+
"layers": [
|
|
13
|
+
{
|
|
14
|
+
"ddd": 0,
|
|
15
|
+
"ind": 1,
|
|
16
|
+
"ty": 4,
|
|
17
|
+
"nm": "Circle Outlines",
|
|
18
|
+
"sr": 1,
|
|
19
|
+
"ks": {
|
|
20
|
+
"o": {
|
|
21
|
+
"a": 1,
|
|
22
|
+
"k": [
|
|
23
|
+
{ "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 48.008, "s": [100] },
|
|
24
|
+
{ "t": 53.0126953125, "s": [10] }
|
|
25
|
+
],
|
|
26
|
+
"ix": 11
|
|
27
|
+
},
|
|
28
|
+
"r": { "a": 0, "k": 0, "ix": 10 },
|
|
29
|
+
"p": { "a": 0, "k": [320, 320, 0], "ix": 2 },
|
|
30
|
+
"a": { "a": 0, "k": [40, 40, 0], "ix": 1 },
|
|
31
|
+
"s": { "a": 0, "k": [197.535, 197.535, 100], "ix": 6 }
|
|
32
|
+
},
|
|
33
|
+
"ao": 0,
|
|
34
|
+
"shapes": [
|
|
35
|
+
{
|
|
36
|
+
"ty": "gr",
|
|
37
|
+
"it": [
|
|
38
|
+
{
|
|
39
|
+
"ind": 0,
|
|
40
|
+
"ty": "sh",
|
|
41
|
+
"ix": 1,
|
|
42
|
+
"ks": {
|
|
43
|
+
"a": 0,
|
|
44
|
+
"k": {
|
|
45
|
+
"i": [
|
|
46
|
+
[0, -20.385],
|
|
47
|
+
[20.385, 0],
|
|
48
|
+
[0, 20.385],
|
|
49
|
+
[-20.385, 0]
|
|
50
|
+
],
|
|
51
|
+
"o": [
|
|
52
|
+
[0, 20.385],
|
|
53
|
+
[-20.385, 0],
|
|
54
|
+
[0, -20.385],
|
|
55
|
+
[20.385, 0]
|
|
56
|
+
],
|
|
57
|
+
"v": [
|
|
58
|
+
[36.91, 0],
|
|
59
|
+
[0, 36.91],
|
|
60
|
+
[-36.91, 0],
|
|
61
|
+
[0, -36.91]
|
|
62
|
+
],
|
|
63
|
+
"c": true
|
|
64
|
+
},
|
|
65
|
+
"ix": 2
|
|
66
|
+
},
|
|
67
|
+
"nm": "Path 1",
|
|
68
|
+
"mn": "ADBE Vector Shape - Group",
|
|
69
|
+
"hd": false
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"ty": "st",
|
|
73
|
+
"c": { "a": 0, "k": [0.117647066303, 0.796078491211, 0.250980392157, 1], "ix": 3 },
|
|
74
|
+
"o": { "a": 0, "k": 100, "ix": 4 },
|
|
75
|
+
"w": { "a": 0, "k": 5, "ix": 5 },
|
|
76
|
+
"lc": 2,
|
|
77
|
+
"lj": 2,
|
|
78
|
+
"bm": 0,
|
|
79
|
+
"nm": "Stroke 1",
|
|
80
|
+
"mn": "ADBE Vector Graphic - Stroke",
|
|
81
|
+
"hd": false
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"ty": "tr",
|
|
85
|
+
"p": { "a": 0, "k": [40, 40], "ix": 2 },
|
|
86
|
+
"a": { "a": 0, "k": [0, 0], "ix": 1 },
|
|
87
|
+
"s": { "a": 0, "k": [100, 100], "ix": 3 },
|
|
88
|
+
"r": { "a": 0, "k": 0, "ix": 6 },
|
|
89
|
+
"o": { "a": 0, "k": 100, "ix": 7 },
|
|
90
|
+
"sk": { "a": 0, "k": 0, "ix": 4 },
|
|
91
|
+
"sa": { "a": 0, "k": 0, "ix": 5 },
|
|
92
|
+
"nm": "Transform"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"nm": "Group 1",
|
|
96
|
+
"np": 2,
|
|
97
|
+
"cix": 2,
|
|
98
|
+
"bm": 0,
|
|
99
|
+
"ix": 1,
|
|
100
|
+
"mn": "ADBE Vector Group",
|
|
101
|
+
"hd": false
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"ty": "tm",
|
|
105
|
+
"s": { "a": 0, "k": 0, "ix": 1 },
|
|
106
|
+
"e": {
|
|
107
|
+
"a": 1,
|
|
108
|
+
"k": [
|
|
109
|
+
{ "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 40, "s": [0] },
|
|
110
|
+
{ "t": 53.0126953125, "s": [100] }
|
|
111
|
+
],
|
|
112
|
+
"ix": 2
|
|
113
|
+
},
|
|
114
|
+
"o": { "a": 0, "k": 0, "ix": 3 },
|
|
115
|
+
"m": 1,
|
|
116
|
+
"ix": 2,
|
|
117
|
+
"nm": "Trim Paths 1",
|
|
118
|
+
"mn": "ADBE Vector Filter - Trim",
|
|
119
|
+
"hd": false
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"ip": 40,
|
|
123
|
+
"op": 940.900900900901,
|
|
124
|
+
"st": 40,
|
|
125
|
+
"bm": 0
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"ddd": 0,
|
|
129
|
+
"ind": 2,
|
|
130
|
+
"ty": 4,
|
|
131
|
+
"nm": "Tick Outlines",
|
|
132
|
+
"sr": 1,
|
|
133
|
+
"ks": {
|
|
134
|
+
"o": { "a": 0, "k": 100, "ix": 11 },
|
|
135
|
+
"r": { "a": 0, "k": 0, "ix": 10 },
|
|
136
|
+
"p": { "a": 0, "k": [320, 320, 0], "ix": 2 },
|
|
137
|
+
"a": { "a": 0, "k": [40, 40, 0], "ix": 1 },
|
|
138
|
+
"s": { "a": 0, "k": [197.535, 197.535, 100], "ix": 6 }
|
|
139
|
+
},
|
|
140
|
+
"ao": 0,
|
|
141
|
+
"shapes": [
|
|
142
|
+
{
|
|
143
|
+
"ty": "gr",
|
|
144
|
+
"it": [
|
|
145
|
+
{
|
|
146
|
+
"ind": 0,
|
|
147
|
+
"ty": "sh",
|
|
148
|
+
"ix": 1,
|
|
149
|
+
"ks": {
|
|
150
|
+
"a": 0,
|
|
151
|
+
"k": {
|
|
152
|
+
"i": [
|
|
153
|
+
[0, 0],
|
|
154
|
+
[0, 0],
|
|
155
|
+
[0, 0]
|
|
156
|
+
],
|
|
157
|
+
"o": [
|
|
158
|
+
[0, 0],
|
|
159
|
+
[0, 0],
|
|
160
|
+
[0, 0]
|
|
161
|
+
],
|
|
162
|
+
"v": [
|
|
163
|
+
[-12.495, 0.165],
|
|
164
|
+
[-4.189, 8.342],
|
|
165
|
+
[12.495, -8.342]
|
|
166
|
+
],
|
|
167
|
+
"c": false
|
|
168
|
+
},
|
|
169
|
+
"ix": 2
|
|
170
|
+
},
|
|
171
|
+
"nm": "Path 1",
|
|
172
|
+
"mn": "ADBE Vector Shape - Group",
|
|
173
|
+
"hd": false
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"ty": "st",
|
|
177
|
+
"c": { "a": 0, "k": [0.117647066303, 0.796078491211, 0.250980392157, 1], "ix": 3 },
|
|
178
|
+
"o": { "a": 0, "k": 100, "ix": 4 },
|
|
179
|
+
"w": { "a": 0, "k": 5, "ix": 5 },
|
|
180
|
+
"lc": 2,
|
|
181
|
+
"lj": 2,
|
|
182
|
+
"bm": 0,
|
|
183
|
+
"nm": "Stroke 1",
|
|
184
|
+
"mn": "ADBE Vector Graphic - Stroke",
|
|
185
|
+
"hd": false
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"ty": "tr",
|
|
189
|
+
"p": { "a": 0, "k": [40, 40], "ix": 2 },
|
|
190
|
+
"a": { "a": 0, "k": [0, 0], "ix": 1 },
|
|
191
|
+
"s": { "a": 0, "k": [100, 100], "ix": 3 },
|
|
192
|
+
"r": { "a": 0, "k": 0, "ix": 6 },
|
|
193
|
+
"o": { "a": 0, "k": 100, "ix": 7 },
|
|
194
|
+
"sk": { "a": 0, "k": 0, "ix": 4 },
|
|
195
|
+
"sa": { "a": 0, "k": 0, "ix": 5 },
|
|
196
|
+
"nm": "Transform"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"nm": "Group 1",
|
|
200
|
+
"np": 2,
|
|
201
|
+
"cix": 2,
|
|
202
|
+
"bm": 0,
|
|
203
|
+
"ix": 1,
|
|
204
|
+
"mn": "ADBE Vector Group",
|
|
205
|
+
"hd": false
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"ty": "tm",
|
|
209
|
+
"s": { "a": 0, "k": 0, "ix": 1 },
|
|
210
|
+
"e": {
|
|
211
|
+
"a": 1,
|
|
212
|
+
"k": [
|
|
213
|
+
{ "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 44.004, "s": [0] },
|
|
214
|
+
{ "t": 57.016699316504, "s": [99] }
|
|
215
|
+
],
|
|
216
|
+
"ix": 2
|
|
217
|
+
},
|
|
218
|
+
"o": { "a": 0, "k": 0, "ix": 3 },
|
|
219
|
+
"m": 1,
|
|
220
|
+
"ix": 2,
|
|
221
|
+
"nm": "Trim Paths 1",
|
|
222
|
+
"mn": "ADBE Vector Filter - Trim",
|
|
223
|
+
"hd": false
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"ip": 44.004004004004,
|
|
227
|
+
"op": 944.904904904905,
|
|
228
|
+
"st": 44.004004004004,
|
|
229
|
+
"bm": 0
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"ddd": 0,
|
|
233
|
+
"ind": 3,
|
|
234
|
+
"ty": 4,
|
|
235
|
+
"nm": "Shape Layer 2",
|
|
236
|
+
"sr": 1,
|
|
237
|
+
"ks": {
|
|
238
|
+
"o": {
|
|
239
|
+
"a": 1,
|
|
240
|
+
"k": [
|
|
241
|
+
{ "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 18, "s": [10] },
|
|
242
|
+
{ "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 53, "s": [92.895] },
|
|
243
|
+
{ "t": 56, "s": [0] }
|
|
244
|
+
],
|
|
245
|
+
"ix": 11
|
|
246
|
+
},
|
|
247
|
+
"r": { "a": 0, "k": 0, "ix": 10 },
|
|
248
|
+
"p": { "a": 0, "k": [323.035, 320.203, 0], "ix": 2 },
|
|
249
|
+
"a": { "a": 0, "k": [0, 0, 0], "ix": 1 },
|
|
250
|
+
"s": {
|
|
251
|
+
"a": 1,
|
|
252
|
+
"k": [
|
|
253
|
+
{
|
|
254
|
+
"i": { "x": [0.833, 0.833, 0.833], "y": [0.833, 0.833, 0.833] },
|
|
255
|
+
"o": { "x": [0.167, 0.167, 0.167], "y": [0.167, 0.167, 0.167] },
|
|
256
|
+
"t": 18,
|
|
257
|
+
"s": [100, 100, 100]
|
|
258
|
+
},
|
|
259
|
+
{ "t": 56, "s": [25, 25, 100] }
|
|
260
|
+
],
|
|
261
|
+
"ix": 6
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"ao": 0,
|
|
265
|
+
"shapes": [
|
|
266
|
+
{
|
|
267
|
+
"ty": "gr",
|
|
268
|
+
"it": [
|
|
269
|
+
{
|
|
270
|
+
"d": 1,
|
|
271
|
+
"ty": "el",
|
|
272
|
+
"s": { "a": 0, "k": [604.492, 604.492], "ix": 2 },
|
|
273
|
+
"p": { "a": 0, "k": [0, 0], "ix": 3 },
|
|
274
|
+
"nm": "Ellipse Path 1",
|
|
275
|
+
"mn": "ADBE Vector Shape - Ellipse",
|
|
276
|
+
"hd": false
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"ty": "st",
|
|
280
|
+
"c": { "a": 0, "k": [0.117647058824, 0.796078431373, 0.250980392157, 1], "ix": 3 },
|
|
281
|
+
"o": { "a": 0, "k": 100, "ix": 4 },
|
|
282
|
+
"w": { "a": 0, "k": 2, "ix": 5 },
|
|
283
|
+
"lc": 1,
|
|
284
|
+
"lj": 1,
|
|
285
|
+
"ml": 4,
|
|
286
|
+
"bm": 0,
|
|
287
|
+
"nm": "Stroke 1",
|
|
288
|
+
"mn": "ADBE Vector Graphic - Stroke",
|
|
289
|
+
"hd": false
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"ty": "fl",
|
|
293
|
+
"c": { "a": 0, "k": [0, 0, 0, 1], "ix": 4 },
|
|
294
|
+
"o": { "a": 0, "k": 0, "ix": 5 },
|
|
295
|
+
"r": 1,
|
|
296
|
+
"bm": 0,
|
|
297
|
+
"nm": "Fill 1",
|
|
298
|
+
"mn": "ADBE Vector Graphic - Fill",
|
|
299
|
+
"hd": false
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"ty": "tr",
|
|
303
|
+
"p": { "a": 0, "k": [-3.035, -0.203], "ix": 2 },
|
|
304
|
+
"a": { "a": 0, "k": [0, 0], "ix": 1 },
|
|
305
|
+
"s": { "a": 0, "k": [100, 100], "ix": 3 },
|
|
306
|
+
"r": { "a": 0, "k": 0, "ix": 6 },
|
|
307
|
+
"o": { "a": 0, "k": 100, "ix": 7 },
|
|
308
|
+
"sk": { "a": 0, "k": 0, "ix": 4 },
|
|
309
|
+
"sa": { "a": 0, "k": 0, "ix": 5 },
|
|
310
|
+
"nm": "Transform"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"nm": "Ellipse 1",
|
|
314
|
+
"np": 3,
|
|
315
|
+
"cix": 2,
|
|
316
|
+
"bm": 0,
|
|
317
|
+
"ix": 1,
|
|
318
|
+
"mn": "ADBE Vector Group",
|
|
319
|
+
"hd": false
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"ip": 18,
|
|
323
|
+
"op": 94,
|
|
324
|
+
"st": 18,
|
|
325
|
+
"bm": 0
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"ddd": 0,
|
|
329
|
+
"ind": 4,
|
|
330
|
+
"ty": 4,
|
|
331
|
+
"nm": "Shape Layer 1",
|
|
332
|
+
"sr": 1,
|
|
333
|
+
"ks": {
|
|
334
|
+
"o": {
|
|
335
|
+
"a": 1,
|
|
336
|
+
"k": [
|
|
337
|
+
{ "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 0, "s": [10] },
|
|
338
|
+
{ "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 35, "s": [92.895] },
|
|
339
|
+
{ "t": 38, "s": [0] }
|
|
340
|
+
],
|
|
341
|
+
"ix": 11
|
|
342
|
+
},
|
|
343
|
+
"r": { "a": 0, "k": 0, "ix": 10 },
|
|
344
|
+
"p": { "a": 0, "k": [323.035, 320.203, 0], "ix": 2 },
|
|
345
|
+
"a": { "a": 0, "k": [0, 0, 0], "ix": 1 },
|
|
346
|
+
"s": {
|
|
347
|
+
"a": 1,
|
|
348
|
+
"k": [
|
|
349
|
+
{
|
|
350
|
+
"i": { "x": [0.833, 0.833, 0.833], "y": [0.833, 0.833, 0.833] },
|
|
351
|
+
"o": { "x": [0.167, 0.167, 0.167], "y": [0.167, 0.167, 0.167] },
|
|
352
|
+
"t": 0,
|
|
353
|
+
"s": [100, 100, 100]
|
|
354
|
+
},
|
|
355
|
+
{ "t": 38, "s": [25, 25, 100] }
|
|
356
|
+
],
|
|
357
|
+
"ix": 6
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"ao": 0,
|
|
361
|
+
"shapes": [
|
|
362
|
+
{
|
|
363
|
+
"ty": "gr",
|
|
364
|
+
"it": [
|
|
365
|
+
{
|
|
366
|
+
"d": 1,
|
|
367
|
+
"ty": "el",
|
|
368
|
+
"s": { "a": 0, "k": [604.492, 604.492], "ix": 2 },
|
|
369
|
+
"p": { "a": 0, "k": [0, 0], "ix": 3 },
|
|
370
|
+
"nm": "Ellipse Path 1",
|
|
371
|
+
"mn": "ADBE Vector Shape - Ellipse",
|
|
372
|
+
"hd": false
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"ty": "st",
|
|
376
|
+
"c": { "a": 0, "k": [0.117647058824, 0.796078431373, 0.250980392157, 1], "ix": 3 },
|
|
377
|
+
"o": { "a": 0, "k": 100, "ix": 4 },
|
|
378
|
+
"w": { "a": 0, "k": 2, "ix": 5 },
|
|
379
|
+
"lc": 1,
|
|
380
|
+
"lj": 1,
|
|
381
|
+
"ml": 4,
|
|
382
|
+
"bm": 0,
|
|
383
|
+
"nm": "Stroke 1",
|
|
384
|
+
"mn": "ADBE Vector Graphic - Stroke",
|
|
385
|
+
"hd": false
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"ty": "fl",
|
|
389
|
+
"c": { "a": 0, "k": [0, 0, 0, 1], "ix": 4 },
|
|
390
|
+
"o": { "a": 0, "k": 0, "ix": 5 },
|
|
391
|
+
"r": 1,
|
|
392
|
+
"bm": 0,
|
|
393
|
+
"nm": "Fill 1",
|
|
394
|
+
"mn": "ADBE Vector Graphic - Fill",
|
|
395
|
+
"hd": false
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"ty": "tr",
|
|
399
|
+
"p": { "a": 0, "k": [-3.035, -0.203], "ix": 2 },
|
|
400
|
+
"a": { "a": 0, "k": [0, 0], "ix": 1 },
|
|
401
|
+
"s": { "a": 0, "k": [100, 100], "ix": 3 },
|
|
402
|
+
"r": { "a": 0, "k": 0, "ix": 6 },
|
|
403
|
+
"o": { "a": 0, "k": 100, "ix": 7 },
|
|
404
|
+
"sk": { "a": 0, "k": 0, "ix": 4 },
|
|
405
|
+
"sa": { "a": 0, "k": 0, "ix": 5 },
|
|
406
|
+
"nm": "Transform"
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"nm": "Ellipse 1",
|
|
410
|
+
"np": 3,
|
|
411
|
+
"cix": 2,
|
|
412
|
+
"bm": 0,
|
|
413
|
+
"ix": 1,
|
|
414
|
+
"mn": "ADBE Vector Group",
|
|
415
|
+
"hd": false
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"ip": 0,
|
|
419
|
+
"op": 76,
|
|
420
|
+
"st": 0,
|
|
421
|
+
"bm": 0
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
"markers": []
|
|
425
|
+
}
|
|
@@ -5,9 +5,10 @@ export interface OTPFieldProps {
|
|
|
5
5
|
autoFocus?: boolean;
|
|
6
6
|
onChange: (otpValue: number) => void;
|
|
7
7
|
isInputNum?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
8
9
|
}
|
|
9
10
|
declare const _default: React.MemoExoticComponent<{
|
|
10
|
-
({ length, value, autoFocus, isInputNum, ...rest }: OTPFieldProps): JSX.Element;
|
|
11
|
+
({ length, value, autoFocus, isInputNum, disabled, ...rest }: OTPFieldProps): JSX.Element;
|
|
11
12
|
defaultProps: {
|
|
12
13
|
length: number;
|
|
13
14
|
autoFocus: boolean;
|
|
@@ -34,8 +34,8 @@ var OTPFieldStyled = styled(OTPInput)(function (_a) {
|
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
var OTPFieldComponent = function (_a) {
|
|
37
|
-
var length = _a.length, value = _a.value, autoFocus = _a.autoFocus, isInputNum = _a.isInputNum, rest = __rest(_a, ["length", "value", "autoFocus", "isInputNum"]);
|
|
38
|
-
return (_jsx(OTPFieldStyled, __assign({ value: value, inputStyle: { width: '46px' }, numInputs: length, shouldAutoFocus: autoFocus, isInputNum: isInputNum }, rest)));
|
|
37
|
+
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: '46px' }, numInputs: length, isDisabled: disabled, shouldAutoFocus: autoFocus, isInputNum: isInputNum }, rest)));
|
|
39
39
|
};
|
|
40
40
|
OTPFieldComponent.defaultProps = {
|
|
41
41
|
length: 6,
|
|
@@ -61,7 +61,7 @@ var OTPTimerComponent = function (_a) {
|
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
return (_jsx(OTPTimerStyled, __assign({ onClick: resetTimer }, rest, { children: _jsx(OTPTimerTextStyled, __assign({ variant: 'h4', color: 'primary', sx: {
|
|
64
|
-
cursor: timeValue <= 0 ? 'pointer' : 'default'
|
|
64
|
+
cursor: timeValue <= 0 && onResetClick ? 'pointer' : 'default'
|
|
65
65
|
} }, { children: timeValue > 0 ? (timeValue > 9 ? "00:".concat(timeValue) : "00:0".concat(timeValue)) : timeEndLabel })) })));
|
|
66
66
|
};
|
|
67
67
|
OTPTimerComponent.defaultProps = {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CircularProgressProps } from '@mui/material/CircularProgress';
|
|
3
|
+
export interface CircularProps extends CircularProgressProps {
|
|
4
|
+
size: number;
|
|
5
|
+
value: number;
|
|
6
|
+
}
|
|
7
|
+
declare function CircularProgressWithLabel({ size, value, ...props }: CircularProps): JSX.Element;
|
|
8
|
+
declare namespace CircularProgressWithLabel {
|
|
9
|
+
var defaultProps: {
|
|
10
|
+
size: number;
|
|
11
|
+
value: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export default CircularProgressWithLabel;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 CircularProgress from '@mui/material/CircularProgress';
|
|
25
|
+
import Typography from '@mui/material/Typography';
|
|
26
|
+
import Box from '@mui/material/Box';
|
|
27
|
+
import { styled } from '@mui/material/styles';
|
|
28
|
+
var BoxStyled = styled(Box)(function (_a) {
|
|
29
|
+
var theme = _a.theme;
|
|
30
|
+
return ({
|
|
31
|
+
display: 'flex',
|
|
32
|
+
alignItems: 'center',
|
|
33
|
+
justifyContent: 'center',
|
|
34
|
+
top: 0,
|
|
35
|
+
left: 0,
|
|
36
|
+
bottom: 0,
|
|
37
|
+
right: 0,
|
|
38
|
+
position: 'absolute'
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
export default function CircularProgressWithLabel(_a) {
|
|
42
|
+
var size = _a.size, value = _a.value, props = __rest(_a, ["size", "value"]);
|
|
43
|
+
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', component: 'div', color: 'text.primary' }, { children: "".concat(Math.round(value), "%") })) })] })));
|
|
44
|
+
}
|
|
45
|
+
CircularProgressWithLabel.defaultProps = {
|
|
46
|
+
size: 54,
|
|
47
|
+
value: 0
|
|
48
|
+
};
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
export interface RadioLabelProps {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
5
|
+
control?: React.ReactElement<any, any>;
|
|
5
6
|
}
|
|
6
|
-
declare const _default: React.MemoExoticComponent<({ label, value }: RadioLabelProps) => JSX.Element>;
|
|
7
|
+
declare const _default: React.MemoExoticComponent<({ label, value, control }: RadioLabelProps) => JSX.Element>;
|
|
7
8
|
export default _default;
|
|
@@ -27,8 +27,8 @@ var RadioLabelStyled = styled(FormControlLabel)(function (_a) {
|
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
var RadioLabel = function (_a) {
|
|
30
|
-
var label = _a.label, value = _a.value;
|
|
30
|
+
var label = _a.label, value = _a.value, control = _a.control;
|
|
31
31
|
var t = useTranslation().t;
|
|
32
|
-
return (_jsx(RadioLabelStyled, { value: value, control: _jsx(Radio, { color: 'primary', disableFocusRipple: true, disableRipple: true, disableTouchRipple: true, focusRipple: false }), label: t(label) }));
|
|
32
|
+
return (_jsx(RadioLabelStyled, { value: value, control: control || _jsx(Radio, { color: 'primary', disableFocusRipple: true, disableRipple: true, disableTouchRipple: true, focusRipple: false }), label: t(label) }));
|
|
33
33
|
};
|
|
34
34
|
export default React.memo(RadioLabel);
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SocialMediaTypes } from '../../@types';
|
|
3
2
|
import { ToggleButtonGroupProps } from '../ToggleButtonGroup';
|
|
4
3
|
import { ToggleButtonProps } from '../ToggleButton';
|
|
5
4
|
export interface SocialMediaGroupProps extends ToggleButtonGroupProps {
|
|
6
5
|
toggleButtonProps?: ToggleButtonProps;
|
|
7
|
-
showSocialMediaTypes?: Array<SocialMediaTypes>;
|
|
8
6
|
}
|
|
9
7
|
declare const _default: React.MemoExoticComponent<{
|
|
10
|
-
({ children, defaultValue, onChange, toggleButtonProps,
|
|
11
|
-
defaultProps: {
|
|
12
|
-
defaultValue: SocialMediaTypes;
|
|
13
|
-
};
|
|
8
|
+
({ children, defaultValue, onChange, toggleButtonProps, ...rest }: SocialMediaGroupProps): JSX.Element;
|
|
9
|
+
defaultProps: {};
|
|
14
10
|
}>;
|
|
15
11
|
export default _default;
|