@redneckz/wildless-cms-uni-blocks 0.14.154 → 0.14.155
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/bundle/api/LeadServiceAPI.d.ts +10 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +131 -220
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/AddressBranchField.d.ts +2 -1
- package/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -0
- package/bundle/components/ApplicationForm/ApplicationFormAntiFraud.d.ts +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +2 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +0 -1
- package/bundle/components/ApplicationForm/ApplicationFormCorruption.d.ts +2 -2
- package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +3 -2
- package/bundle/components/ApplicationForm/ApplicationFormFeedback.d.ts +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +2 -2
- package/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +6 -5
- package/bundle/components/ApplicationForm/DatePickerControl.d.ts +1 -0
- package/bundle/components/ApplicationForm/RegionPremiumField.d.ts +6 -0
- package/bundle/components/ApplicationForm/SelectControl.d.ts +2 -0
- package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -4
- package/bundle/hooks/useForm.d.ts +4 -1
- package/bundle/hooks/usePremiumBranchesByRegions.d.ts +1 -0
- package/bundle/ui-kit/Input/InputProps.d.ts +1 -0
- package/dist/api/LeadServiceAPI.d.ts +10 -1
- package/dist/api/LeadServiceAPI.js +23 -1
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationForm/AddressBranchField.d.ts +2 -1
- package/dist/components/ApplicationForm/AddressBranchField.js +7 -4
- package/dist/components/ApplicationForm/AddressBranchField.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +3 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +6 -11
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAntiFraud.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +3 -11
- package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +2 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +10 -16
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +0 -1
- package/dist/components/ApplicationForm/ApplicationFormCorruption.d.ts +2 -2
- package/dist/components/ApplicationForm/ApplicationFormCorruption.js +4 -12
- package/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +3 -2
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +10 -21
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +6 -9
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormFeedback.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js +7 -7
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +6 -14
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +2 -2
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +5 -15
- package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +6 -27
- package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.d.ts +6 -5
- package/dist/components/ApplicationForm/ApplicationFormWed.js +12 -20
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/DatePickerControl.d.ts +1 -0
- package/dist/components/ApplicationForm/DatePickerControl.js +1 -1
- package/dist/components/ApplicationForm/DatePickerControl.js.map +1 -1
- package/dist/components/ApplicationForm/InputControl.js +1 -1
- package/dist/components/ApplicationForm/InputControl.js.map +1 -1
- package/dist/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/dist/components/ApplicationForm/RegionPremiumField.d.ts +6 -0
- package/dist/components/ApplicationForm/RegionPremiumField.js +17 -0
- package/dist/components/ApplicationForm/RegionPremiumField.js.map +1 -0
- package/dist/components/ApplicationForm/SelectControl.d.ts +2 -0
- package/dist/components/ApplicationForm/SelectControl.js +1 -1
- package/dist/components/ApplicationForm/SelectControl.js.map +1 -1
- package/dist/components/ApplicationForm/handleSubmit.js +3 -51
- package/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderUserData.js +1 -1
- package/dist/components/ApplicationForm/renderUserData.js.map +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -4
- package/dist/components/ApplicationForm/renderWedDataOrganization.js +3 -3
- package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/dist/hooks/useForm.d.ts +4 -1
- package/dist/hooks/useForm.js +2 -2
- package/dist/hooks/useForm.js.map +1 -1
- package/dist/hooks/usePremiumBranchesByRegions.d.ts +1 -0
- package/dist/hooks/usePremiumBranchesByRegions.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +1 -0
- package/dist/utils/formatPhone.js +1 -1
- package/dist/utils/formatPhone.js.map +1 -1
- package/lib/api/LeadServiceAPI.d.ts +10 -1
- package/lib/api/LeadServiceAPI.js +23 -1
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/AddressBranchField.d.ts +2 -1
- package/lib/components/ApplicationForm/AddressBranchField.js +7 -4
- package/lib/components/ApplicationForm/AddressBranchField.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +3 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +6 -11
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAntiFraud.d.ts +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +3 -11
- package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +2 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +10 -16
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +0 -1
- package/lib/components/ApplicationForm/ApplicationFormCorruption.d.ts +2 -2
- package/lib/components/ApplicationForm/ApplicationFormCorruption.js +4 -12
- package/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +3 -2
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +10 -21
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +6 -9
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormFeedback.d.ts +1 -1
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js +7 -7
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +7 -15
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +2 -2
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +5 -15
- package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +6 -27
- package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.d.ts +6 -5
- package/lib/components/ApplicationForm/ApplicationFormWed.js +12 -20
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/DatePickerControl.d.ts +1 -0
- package/lib/components/ApplicationForm/DatePickerControl.js +1 -1
- package/lib/components/ApplicationForm/DatePickerControl.js.map +1 -1
- package/lib/components/ApplicationForm/InputControl.js +1 -1
- package/lib/components/ApplicationForm/InputControl.js.map +1 -1
- package/lib/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/lib/components/ApplicationForm/RegionPremiumField.d.ts +6 -0
- package/lib/components/ApplicationForm/RegionPremiumField.js +15 -0
- package/lib/components/ApplicationForm/RegionPremiumField.js.map +1 -0
- package/lib/components/ApplicationForm/SelectControl.d.ts +2 -0
- package/lib/components/ApplicationForm/SelectControl.js +1 -1
- package/lib/components/ApplicationForm/SelectControl.js.map +1 -1
- package/lib/components/ApplicationForm/handleSubmit.js +3 -51
- package/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderUserData.js +1 -1
- package/lib/components/ApplicationForm/renderUserData.js.map +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -4
- package/lib/components/ApplicationForm/renderWedDataOrganization.js +3 -3
- package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/lib/hooks/useForm.d.ts +4 -1
- package/lib/hooks/useForm.js +2 -2
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/hooks/usePremiumBranchesByRegions.d.ts +1 -0
- package/lib/hooks/usePremiumBranchesByRegions.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +1 -0
- package/lib/utils/formatPhone.js +1 -1
- package/lib/utils/formatPhone.js.map +1 -1
- package/mobile/bundle/api/LeadServiceAPI.d.ts +10 -1
- package/mobile/bundle/bundle.umd.js +131 -220
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/AddressBranchField.d.ts +2 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormAntiFraud.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +2 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +0 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCorruption.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +3 -2
- package/mobile/bundle/components/ApplicationForm/ApplicationFormFeedback.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +6 -5
- package/mobile/bundle/components/ApplicationForm/DatePickerControl.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/RegionPremiumField.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/SelectControl.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -4
- package/mobile/bundle/hooks/useForm.d.ts +4 -1
- package/mobile/bundle/hooks/usePremiumBranchesByRegions.d.ts +1 -0
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/dist/api/LeadServiceAPI.d.ts +10 -1
- package/mobile/dist/api/LeadServiceAPI.js +23 -1
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/AddressBranchField.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/AddressBranchField.js +7 -4
- package/mobile/dist/components/ApplicationForm/AddressBranchField.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +3 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +6 -11
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +3 -11
- package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +10 -16
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +0 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js +4 -12
- package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +3 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +10 -21
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +6 -9
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +7 -7
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +6 -14
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +5 -15
- package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +6 -27
- package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.d.ts +6 -5
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +12 -20
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/DatePickerControl.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/DatePickerControl.js +1 -1
- package/mobile/dist/components/ApplicationForm/DatePickerControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/InputControl.js +1 -1
- package/mobile/dist/components/ApplicationForm/InputControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/RegionPremiumField.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/RegionPremiumField.js +17 -0
- package/mobile/dist/components/ApplicationForm/RegionPremiumField.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/SelectControl.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/SelectControl.js +1 -1
- package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/handleSubmit.js +3 -51
- package/mobile/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderUserData.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderUserData.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -4
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +3 -3
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/dist/hooks/useForm.d.ts +4 -1
- package/mobile/dist/hooks/useForm.js +2 -2
- package/mobile/dist/hooks/useForm.js.map +1 -1
- package/mobile/dist/hooks/usePremiumBranchesByRegions.d.ts +1 -0
- package/mobile/dist/hooks/usePremiumBranchesByRegions.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/dist/utils/formatPhone.js +1 -1
- package/mobile/dist/utils/formatPhone.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.d.ts +10 -1
- package/mobile/lib/api/LeadServiceAPI.js +23 -1
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/AddressBranchField.d.ts +2 -1
- package/mobile/lib/components/ApplicationForm/AddressBranchField.js +7 -4
- package/mobile/lib/components/ApplicationForm/AddressBranchField.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +3 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +6 -11
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +3 -11
- package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +10 -16
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +0 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js +4 -12
- package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +3 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +10 -21
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +6 -9
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +7 -7
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +7 -15
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +5 -15
- package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +6 -27
- package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.d.ts +6 -5
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +12 -20
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/DatePickerControl.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/DatePickerControl.js +1 -1
- package/mobile/lib/components/ApplicationForm/DatePickerControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/InputControl.js +1 -1
- package/mobile/lib/components/ApplicationForm/InputControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/RegionPremiumField.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/RegionPremiumField.js +15 -0
- package/mobile/lib/components/ApplicationForm/RegionPremiumField.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/SelectControl.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/SelectControl.js +1 -1
- package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/handleSubmit.js +3 -51
- package/mobile/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderUserData.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderUserData.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -4
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +3 -3
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/lib/hooks/useForm.d.ts +4 -1
- package/mobile/lib/hooks/useForm.js +2 -2
- package/mobile/lib/hooks/useForm.js.map +1 -1
- package/mobile/lib/hooks/usePremiumBranchesByRegions.d.ts +1 -0
- package/mobile/lib/hooks/usePremiumBranchesByRegions.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/lib/utils/formatPhone.js +1 -1
- package/mobile/lib/utils/formatPhone.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +50 -3
- package/mobile/src/components/ApplicationForm/AddressBranchField.tsx +21 -15
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +7 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +12 -12
- package/mobile/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +6 -15
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +24 -18
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +0 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormCorruption.tsx +8 -20
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +13 -29
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +8 -10
- package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +20 -22
- package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +7 -17
- package/mobile/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +9 -23
- package/mobile/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +12 -49
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +25 -27
- package/mobile/src/components/ApplicationForm/DatePickerControl.tsx +3 -2
- package/mobile/src/components/ApplicationForm/InputControl.tsx +3 -3
- package/mobile/src/components/ApplicationForm/PhoneInputControl.tsx +2 -2
- package/mobile/src/components/ApplicationForm/RegionPremiumField.tsx +28 -0
- package/mobile/src/components/ApplicationForm/SelectControl.tsx +10 -6
- package/mobile/src/components/ApplicationForm/handleSubmit.tsx +3 -52
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +4 -2
- package/mobile/src/components/ApplicationForm/renderUserData.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +4 -20
- package/mobile/src/hooks/useForm.ts +3 -2
- package/mobile/src/hooks/usePremiumBranchesByRegions.ts +1 -0
- package/mobile/src/ui-kit/Input/InputProps.ts +1 -0
- package/mobile/src/utils/formatPhone.ts +1 -1
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +50 -3
- package/src/components/ApplicationForm/AddressBranchField.tsx +21 -15
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +7 -1
- package/src/components/ApplicationForm/ApplicationForm.ui.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +12 -12
- package/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +6 -15
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +24 -18
- package/src/components/ApplicationForm/ApplicationFormContent.ts +0 -1
- package/src/components/ApplicationForm/ApplicationFormCorruption.tsx +8 -20
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +13 -29
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +8 -10
- package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +20 -22
- package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +7 -17
- package/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +9 -23
- package/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +12 -49
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +25 -27
- package/src/components/ApplicationForm/DatePickerControl.tsx +3 -2
- package/src/components/ApplicationForm/InputControl.tsx +3 -3
- package/src/components/ApplicationForm/PhoneInputControl.tsx +2 -2
- package/src/components/ApplicationForm/RegionPremiumField.tsx +28 -0
- package/src/components/ApplicationForm/SelectControl.tsx +10 -6
- package/src/components/ApplicationForm/handleSubmit.tsx +3 -52
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +4 -2
- package/src/components/ApplicationForm/renderUserData.tsx +3 -3
- package/src/components/ApplicationForm/renderWedDataOrganization.tsx +4 -20
- package/src/hooks/useForm.ts +3 -2
- package/src/hooks/usePremiumBranchesByRegions.ts +1 -0
- package/src/ui-kit/Input/InputProps.ts +1 -0
- package/src/utils/formatPhone.ts +1 -1
- package/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -4
- package/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -4
- package/bundle/components/ApplicationForm/renderTextarea.d.ts +0 -11
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -4
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +0 -11
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +0 -1
- package/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -4
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js +0 -7
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +0 -1
- package/dist/components/ApplicationForm/renderTextarea.d.ts +0 -11
- package/dist/components/ApplicationForm/renderTextarea.js +0 -10
- package/dist/components/ApplicationForm/renderTextarea.js.map +0 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -3
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +0 -8
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +0 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -3
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js +0 -4
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +0 -1
- package/lib/components/ApplicationForm/renderTextarea.d.ts +0 -10
- package/lib/components/ApplicationForm/renderTextarea.js +0 -7
- package/lib/components/ApplicationForm/renderTextarea.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -4
- package/mobile/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -4
- package/mobile/bundle/components/ApplicationForm/renderTextarea.d.ts +0 -11
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -4
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +0 -11
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -4
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +0 -7
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderTextarea.d.ts +0 -11
- package/mobile/dist/components/ApplicationForm/renderTextarea.js +0 -10
- package/mobile/dist/components/ApplicationForm/renderTextarea.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -4
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +0 -8
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -4
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +0 -4
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderTextarea.d.ts +0 -11
- package/mobile/lib/components/ApplicationForm/renderTextarea.js +0 -7
- package/mobile/lib/components/ApplicationForm/renderTextarea.js.map +0 -1
- package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +0 -22
- package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +0 -10
- package/mobile/src/components/ApplicationForm/renderTextarea.tsx +0 -42
- package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +0 -22
- package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +0 -10
- package/src/components/ApplicationForm/renderTextarea.tsx +0 -42
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { formatPhone } from '../../utils/formatPhone';
|
|
2
1
|
import { objectValidator } from '../../validation/objectValidator';
|
|
3
2
|
import { isValidationSuccess } from '../../validation/validator';
|
|
4
3
|
import { type FeedbackFormState } from './ApplicationFormFeedback';
|
|
@@ -31,24 +30,7 @@ export const handleSubmitIndividual = (
|
|
|
31
30
|
...feedbackValidatorDefaultObject,
|
|
32
31
|
addressBranch: defaultValidator,
|
|
33
32
|
});
|
|
34
|
-
|
|
35
|
-
const submitData = {
|
|
36
|
-
typeForm: formState.typeForm.key,
|
|
37
|
-
regionBranch: formState?.region?.text,
|
|
38
|
-
addressBranch: formState.addressBranch?.text || '',
|
|
39
|
-
surname: formState.surname,
|
|
40
|
-
name: formState.name,
|
|
41
|
-
middleName: formState.middleName,
|
|
42
|
-
feedbackMethod: formState.feedbackMethod.text,
|
|
43
|
-
phoneNumber: formatPhone(formState.phone),
|
|
44
|
-
secondaryPhoneNumber: formState.secondaryPhone?.replace(/[^+\d]/g, ''),
|
|
45
|
-
email: formState.email,
|
|
46
|
-
bankEmpolee: formState.bankEmpolee,
|
|
47
|
-
applicationDate: formState.applicationDate,
|
|
48
|
-
comment: formState.comment,
|
|
49
|
-
consentDataProcessing: formState.consentDataProcessing,
|
|
50
|
-
};
|
|
51
|
-
isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
|
|
33
|
+
isValidationSuccess(feedbackValidator(formState)) && onSubmit(formState, true);
|
|
52
34
|
};
|
|
53
35
|
|
|
54
36
|
export const handleSubmitLegal = (
|
|
@@ -60,25 +42,7 @@ export const handleSubmitLegal = (
|
|
|
60
42
|
addressBranch: defaultValidator,
|
|
61
43
|
inn: innValidator,
|
|
62
44
|
});
|
|
63
|
-
|
|
64
|
-
typeForm: formState.typeForm.key,
|
|
65
|
-
region: formState.region?.text,
|
|
66
|
-
addressBranch: formState.addressBranch?.text || '',
|
|
67
|
-
surname: formState.surname,
|
|
68
|
-
name: formState.name,
|
|
69
|
-
middleName: formState.middleName,
|
|
70
|
-
inn: formState.inn,
|
|
71
|
-
fullName: formState.fullName,
|
|
72
|
-
feedbackMethod: formState.feedbackMethod.text,
|
|
73
|
-
phone: formatPhone(formState.phone),
|
|
74
|
-
secondaryPhoneNumber: formState?.secondaryPhone,
|
|
75
|
-
mail: formState.email,
|
|
76
|
-
bankEmpolee: formState.bankEmpolee,
|
|
77
|
-
applicationDate: formState.applicationDate,
|
|
78
|
-
comment: formState.comment,
|
|
79
|
-
consentDataProcessing: formState.consentDataProcessing,
|
|
80
|
-
};
|
|
81
|
-
isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, false);
|
|
45
|
+
isValidationSuccess(feedbackValidator(formState)) && onSubmit(formState, false);
|
|
82
46
|
};
|
|
83
47
|
|
|
84
48
|
export const handleSubmitQuestion = (
|
|
@@ -89,18 +53,5 @@ export const handleSubmitQuestion = (
|
|
|
89
53
|
...feedbackValidatorDefaultObject,
|
|
90
54
|
birthday: defaultValidator,
|
|
91
55
|
});
|
|
92
|
-
|
|
93
|
-
typeForm: formState.typeForm.key,
|
|
94
|
-
regionBranch: formState.region?.text,
|
|
95
|
-
surname: formState.surname,
|
|
96
|
-
name: formState.name,
|
|
97
|
-
middleName: formState.middleName,
|
|
98
|
-
birthday: formState.birthday,
|
|
99
|
-
feedbackMethod: formState.feedbackMethod.text,
|
|
100
|
-
phoneNumber: formatPhone(formState.phone),
|
|
101
|
-
email: formState.email,
|
|
102
|
-
comment: formState.comment,
|
|
103
|
-
consentDataProcessing: formState.consentDataProcessing,
|
|
104
|
-
};
|
|
105
|
-
isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
|
|
56
|
+
isValidationSuccess(feedbackValidator(formState)) && onSubmit(formState, true);
|
|
106
57
|
};
|
|
@@ -13,14 +13,14 @@ export const renderAcquiringDataOrganization = (
|
|
|
13
13
|
<ApplicationFieldsetLayout title={title}>
|
|
14
14
|
<div className={formChildrenStyle}>
|
|
15
15
|
<InputControl
|
|
16
|
-
label="Наименование
|
|
16
|
+
label="Наименование организации"
|
|
17
17
|
{...withValidator(field('fullName'), defaultValidator)}
|
|
18
18
|
/>
|
|
19
|
-
<InputControl label="Контактное
|
|
19
|
+
<InputControl label="Контактное лицо" {...withValidator(field('name'), nameValidator)} />
|
|
20
20
|
</div>
|
|
21
21
|
<div className={formChildrenStyle}>
|
|
22
|
-
<InputControl label="
|
|
23
|
-
<PhoneInputControl label="
|
|
22
|
+
<InputControl label="ИНН" {...withValidator(field('inn'), innValidator)} />
|
|
23
|
+
<PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
|
|
24
24
|
</div>
|
|
25
25
|
</ApplicationFieldsetLayout>
|
|
26
26
|
);
|
|
@@ -19,14 +19,16 @@ export const renderCreditDataOrganization = (
|
|
|
19
19
|
<InputControl label="ИНН" {...withValidator(field('inn'), innValidator)} />
|
|
20
20
|
<PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
|
|
21
21
|
</div>
|
|
22
|
-
|
|
23
22
|
<div className={formChildrenStyle}>
|
|
24
23
|
<InputControl
|
|
25
24
|
label="Годовая выручка, ₽"
|
|
26
25
|
{...withValidator(field('annualRevenue'), defaultValidator)}
|
|
27
26
|
/>
|
|
28
27
|
<InputControl label="Контактное лицо" {...withValidator(field('name'), nameValidator)} />
|
|
29
|
-
<InputControl
|
|
28
|
+
<InputControl
|
|
29
|
+
label="Электронная почта"
|
|
30
|
+
{...withValidator(field('email'), defaultValidator)}
|
|
31
|
+
/>
|
|
30
32
|
</div>
|
|
31
33
|
</ApplicationFieldsetLayout>
|
|
32
34
|
);
|
|
@@ -27,12 +27,12 @@ export const renderUserData = <
|
|
|
27
27
|
isBirthday = true,
|
|
28
28
|
) => (
|
|
29
29
|
<div className="space-y-s">
|
|
30
|
-
<InputControl label="
|
|
31
|
-
<InputControl label="
|
|
30
|
+
<InputControl label="Фамилия" {...withValidator(field('surname'), nameValidator)} />
|
|
31
|
+
<InputControl label="Имя" {...withValidator(field('name'), nameValidator)} />
|
|
32
32
|
<InputControl label="Отчество (Обязательно, при наличии)" {...field('middleName')} />
|
|
33
33
|
{isBirthday ? (
|
|
34
34
|
<DatePickerControl
|
|
35
|
-
label="Дата
|
|
35
|
+
label="Дата рождения"
|
|
36
36
|
{...withValidator(field('birthday'), defaultValidator)}
|
|
37
37
|
/>
|
|
38
38
|
) : null}
|
|
@@ -2,31 +2,20 @@ import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
|
2
2
|
import { withValidator } from '../../validation/withValidator';
|
|
3
3
|
import { type WedFormState } from './ApplicationFormWed';
|
|
4
4
|
import { InputControl } from './InputControl';
|
|
5
|
-
import { type Select } from './models';
|
|
6
5
|
import { PhoneInputControl } from './PhoneInputControl';
|
|
7
|
-
import {
|
|
6
|
+
import { RegionField } from './RegionField';
|
|
8
7
|
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
|
|
9
8
|
|
|
10
9
|
interface WedDataOrganizationProps {
|
|
11
|
-
title?: string;
|
|
12
10
|
field: FormFieldRegisterer<WedFormState>;
|
|
13
|
-
regions: Select[];
|
|
14
11
|
}
|
|
15
12
|
|
|
16
|
-
export const renderWedDataOrganization = ({ field
|
|
13
|
+
export const renderWedDataOrganization = ({ field }: WedDataOrganizationProps) => {
|
|
17
14
|
const isCurrencyControl = field('vedTypes').value === 'currencyControl';
|
|
18
15
|
|
|
19
16
|
return (
|
|
20
17
|
<div className="space-y-s">
|
|
21
|
-
{isCurrencyControl ?
|
|
22
|
-
<SelectControl
|
|
23
|
-
label="Филиал"
|
|
24
|
-
placeholder="Выберите филиал"
|
|
25
|
-
isSearch={true}
|
|
26
|
-
options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
|
|
27
|
-
{...withValidator(field('region'), defaultValidator)}
|
|
28
|
-
/>
|
|
29
|
-
) : null}
|
|
18
|
+
{isCurrencyControl ? <RegionField field={field} /> : null}
|
|
30
19
|
<div className="grid @xl:grid-cols-2 @xl:gap-x-lg gap-s">
|
|
31
20
|
{isCurrencyControl ? (
|
|
32
21
|
<InputControl label="ИНН" {...withValidator(field('inn'), innValidator)} />
|
|
@@ -37,12 +26,7 @@ export const renderWedDataOrganization = ({ field, regions }: WedDataOrganizatio
|
|
|
37
26
|
/>
|
|
38
27
|
<InputControl label="ФИО" {...withValidator(field('name'), nameValidator)} />
|
|
39
28
|
<PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
|
|
40
|
-
{!isCurrencyControl ? (
|
|
41
|
-
<InputControl
|
|
42
|
-
label="Электронная почта"
|
|
43
|
-
{...withValidator(field('mail'), defaultValidator)}
|
|
44
|
-
/>
|
|
45
|
-
) : null}
|
|
29
|
+
{!isCurrencyControl ? <InputControl label="Электронная почта" {...field('email')} /> : null}
|
|
46
30
|
</div>
|
|
47
31
|
</div>
|
|
48
32
|
);
|
package/src/hooks/useForm.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type FormFieldRegisterer<FormState> = <N extends keyof FormState, V = For
|
|
|
19
19
|
|
|
20
20
|
export const useForm = <FormState extends Record<string, any>>(
|
|
21
21
|
initialState: FormState,
|
|
22
|
-
onSubmit?: (_: FormState) => void,
|
|
22
|
+
{ resetOnSubmit, onSubmit }: { resetOnSubmit?: boolean; onSubmit?: (_: FormState) => void } = {},
|
|
23
23
|
): [
|
|
24
24
|
FormState,
|
|
25
25
|
{
|
|
@@ -76,7 +76,8 @@ export const useForm = <FormState extends Record<string, any>>(
|
|
|
76
76
|
(e: PreventableEvent) => {
|
|
77
77
|
e.preventDefault();
|
|
78
78
|
|
|
79
|
-
setDirtyForm(true);
|
|
79
|
+
resetOnSubmit ? reset() : setDirtyForm(true);
|
|
80
|
+
|
|
80
81
|
onSubmit && onSubmit(formState);
|
|
81
82
|
},
|
|
82
83
|
[onSubmit, formState],
|
package/src/utils/formatPhone.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const formatPhone = (phone: string) => phone
|
|
1
|
+
export const formatPhone = (phone: string) => phone?.replace(/[^+\d]/g, '');
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
-
import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
|
|
4
|
-
export declare const renderBusinessCardDataOrganization: (field: FormFieldRegisterer<BusinessCardFormState>) => JSX.Element;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
-
import { type AcquiringFormState } from './ApplicationFormAcquiring';
|
|
4
|
-
export declare const renderSlideCheckboxes: (field: FormFieldRegisterer<AcquiringFormState>) => JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FieldProps } from '../../hooks/useForm';
|
|
3
|
-
interface TextFieldProps {
|
|
4
|
-
textField: FieldProps<string>;
|
|
5
|
-
text?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
value?: string;
|
|
8
|
-
error?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const renderTextarea: ({ textField, text, placeholder, error }: TextFieldProps) => JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
-
import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
|
|
4
|
-
export declare const renderBusinessCardDataOrganization: (field: FormFieldRegisterer<BusinessCardFormState>) => JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderBusinessCardDataOrganization = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const withValidator_1 = require("../../validation/withValidator");
|
|
5
|
-
const ApplicationFieldsetLayout_1 = require("./ApplicationFieldsetLayout");
|
|
6
|
-
const InputControl_1 = require("./InputControl");
|
|
7
|
-
const PhoneInputControl_1 = require("./PhoneInputControl");
|
|
8
|
-
const validators_1 = require("./validators");
|
|
9
|
-
const renderBusinessCardDataOrganization = (field) => ((0, jsx_runtime_1.jsxs)(ApplicationFieldsetLayout_1.ApplicationFieldsetLayout, { children: [(0, jsx_runtime_1.jsxs)("div", { className: ApplicationFieldsetLayout_1.formChildrenStyle, children: [(0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...(0, withValidator_1.withValidator)(field('name'), validators_1.nameValidator) }), (0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0418\u041D\u041D", ...(0, withValidator_1.withValidator)(field('inn'), validators_1.innValidator) })] }), (0, jsx_runtime_1.jsxs)("div", { className: ApplicationFieldsetLayout_1.formChildrenStyle, children: [(0, jsx_runtime_1.jsx)(PhoneInputControl_1.PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...(0, withValidator_1.withValidator)(field('phone'), validators_1.phoneValidator) }), (0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...(0, withValidator_1.withValidator)(field('mail'), validators_1.defaultValidator) })] })] }));
|
|
10
|
-
exports.renderBusinessCardDataOrganization = renderBusinessCardDataOrganization;
|
|
11
|
-
//# sourceMappingURL=renderBusinessCardDataOrganization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderBusinessCardDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx"],"names":[],"mappings":";;;AACA,kEAA+D;AAC/D,2EAA2F;AAE3F,iDAA8C;AAC9C,2DAAwD;AACxD,6CAA6F;AAEtF,MAAM,kCAAkC,GAAG,CAChD,KAAiD,EACjD,EAAE,CAAC,CACH,wBAAC,qDAAyB,eACxB,iCAAK,SAAS,EAAE,6CAAiB,aAC/B,uBAAC,2BAAY,IAAC,KAAK,EAAC,uFAAiB,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE,0BAAa,CAAC,GAAI,EACzF,uBAAC,2BAAY,IAAC,KAAK,EAAC,oBAAK,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,KAAK,CAAC,EAAE,yBAAY,CAAC,GAAI,IACvE,EACN,iCAAK,SAAS,EAAE,6CAAiB,aAC/B,uBAAC,qCAAiB,IAAC,KAAK,EAAC,4CAAS,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,OAAO,CAAC,EAAE,2BAAc,CAAC,GAAI,EACxF,uBAAC,2BAAY,IAAC,KAAK,EAAC,mGAAmB,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE,6BAAgB,CAAC,GAAI,IAC1F,IACoB,CAC7B,CAAC;AAbW,QAAA,kCAAkC,sCAa7C"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
-
import { type AcquiringFormState } from './ApplicationFormAcquiring';
|
|
4
|
-
export declare const renderSlideCheckboxes: (field: FormFieldRegisterer<AcquiringFormState>) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderSlideCheckboxes = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const SlideCheckbox_1 = require("../../ui-kit/SlideCheckbox/SlideCheckbox");
|
|
5
|
-
const renderSlideCheckboxes = (field) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(SlideCheckbox_1.SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C \u043E\u043D\u043B\u0430\u0439\u043D-\u043A\u0430\u0441\u0441\u0443", ...field('onlineCheckout') }), (0, jsx_runtime_1.jsx)(SlideCheckbox_1.SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })] }));
|
|
6
|
-
exports.renderSlideCheckboxes = renderSlideCheckboxes;
|
|
7
|
-
//# sourceMappingURL=renderSlideCheckboxes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderSlideCheckboxes.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderSlideCheckboxes.tsx"],"names":[],"mappings":";;;AACA,4EAAyE;AAGlE,MAAM,qBAAqB,GAAG,CAAC,KAA8C,EAAE,EAAE,CAAC,CACvF,4CACE,uBAAC,6BAAa,IAAC,IAAI,EAAC,mIAA0B,KAAK,KAAK,CAAC,gBAAgB,CAAC,GAAI,EAC9E,uBAAC,6BAAa,IAAC,IAAI,EAAC,oHAA0B,KAAK,KAAK,CAAC,aAAa,CAAC,GAAI,IACvE,CACP,CAAC;AALW,QAAA,qBAAqB,yBAKhC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FieldProps } from '../../hooks/useForm';
|
|
3
|
-
interface TextFieldProps {
|
|
4
|
-
textField: FieldProps<string>;
|
|
5
|
-
text?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
value?: string;
|
|
8
|
-
error?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const renderTextarea: ({ textField, text, placeholder, error }: TextFieldProps) => JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderTextarea = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
5
|
-
const style_1 = require("../../utils/style");
|
|
6
|
-
const renderErrorText_1 = require("./renderErrorText");
|
|
7
|
-
const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
|
|
8
|
-
const renderTextarea = ({ textField, text, placeholder = '', error }) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("label", { className: "space-y-xs", htmlFor: "textarea", children: [text ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: text }) })) : null, (0, jsx_runtime_1.jsx)("textarea", { id: "textarea", placeholder: placeholder, className: (0, style_1.style)('block w-full resize-y min-h-24 p-m outline-none border rounded-md border-gray', activeTextareaStyles), value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }), (0, renderErrorText_1.renderErrorText)(error)] }));
|
|
9
|
-
exports.renderTextarea = renderTextarea;
|
|
10
|
-
//# sourceMappingURL=renderTextarea.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderTextarea.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderTextarea.tsx"],"names":[],"mappings":";;;AACA,iDAA8C;AAC9C,6CAA0C;AAC1C,uDAAoD;AAUpD,MAAM,oBAAoB,GACxB,uFAAuF,CAAC;AACnF,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,EAAkB,EAAE,EAAE,CAAC,CAC9F,4CACE,mCAAO,SAAS,EAAC,YAAY,EAAC,OAAO,EAAC,UAAU,aAC7C,IAAI,CAAC,CAAC,CAAC,CACN,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,GACA,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,qCACE,EAAE,EAAC,UAAU,EACb,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,IAAA,aAAK,EACd,+EAA+E,EAC/E,oBAAoB,CACrB,EACD,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,OAAO,EACL,CAAC,CAAC,CAAkC,EAAE,EAAE,CACtC,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,CAAQ,GAE3E,IACI,EACP,IAAA,iCAAe,EAAC,KAAK,CAAC,IACnB,CACP,CAAC;AA1BW,QAAA,cAAc,kBA0BzB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { withValidator } from '../../validation/withValidator.js';
|
|
3
|
-
import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout.js';
|
|
4
|
-
import { InputControl } from './InputControl.js';
|
|
5
|
-
import { PhoneInputControl } from './PhoneInputControl.js';
|
|
6
|
-
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators.js';
|
|
7
|
-
export const renderBusinessCardDataOrganization = (field) => (_jsxs(ApplicationFieldsetLayout, { children: [_jsxs("div", { className: formChildrenStyle, children: [_jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), _jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), _jsxs("div", { className: formChildrenStyle, children: [_jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), _jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
|
|
8
|
-
//# sourceMappingURL=renderBusinessCardDataOrganization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderBusinessCardDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE7F,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,KAAiD,EACjD,EAAE,CAAC,CACH,MAAC,yBAAyB,eACxB,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,YAAY,IAAC,KAAK,EAAC,uFAAiB,KAAK,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,GAAI,EACzF,KAAC,YAAY,IAAC,KAAK,EAAC,oBAAK,KAAK,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,GAAI,IACvE,EACN,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,iBAAiB,IAAC,KAAK,EAAC,4CAAS,KAAK,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,GAAI,EACxF,KAAC,YAAY,IAAC,KAAK,EAAC,mGAAmB,KAAK,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,GAAI,IAC1F,IACoB,CAC7B,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { SlideCheckbox } from '../../ui-kit/SlideCheckbox/SlideCheckbox.js';
|
|
3
|
-
export const renderSlideCheckboxes = (field) => (_jsxs("div", { children: [_jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C \u043E\u043D\u043B\u0430\u0439\u043D-\u043A\u0430\u0441\u0441\u0443", ...field('onlineCheckout') }), _jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })] }));
|
|
4
|
-
//# sourceMappingURL=renderSlideCheckboxes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderSlideCheckboxes.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderSlideCheckboxes.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGzE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAA8C,EAAE,EAAE,CAAC,CACvF,0BACE,KAAC,aAAa,IAAC,IAAI,EAAC,mIAA0B,KAAK,KAAK,CAAC,gBAAgB,CAAC,GAAI,EAC9E,KAAC,aAAa,IAAC,IAAI,EAAC,oHAA0B,KAAK,KAAK,CAAC,aAAa,CAAC,GAAI,IACvE,CACP,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type FieldProps } from '../../hooks/useForm';
|
|
2
|
-
interface TextFieldProps {
|
|
3
|
-
textField: FieldProps<string>;
|
|
4
|
-
text?: string;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
value?: string;
|
|
7
|
-
error?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const renderTextarea: ({ textField, text, placeholder, error }: TextFieldProps) => JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
3
|
-
import { style } from '../../utils/style.js';
|
|
4
|
-
import { renderErrorText } from './renderErrorText.js';
|
|
5
|
-
const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
|
|
6
|
-
export const renderTextarea = ({ textField, text, placeholder = '', error }) => (_jsxs("div", { children: [_jsxs("label", { className: "space-y-xs", htmlFor: "textarea", children: [text ? (_jsx("div", { children: _jsx(Text, { size: "text-m", font: "font-light", children: text }) })) : null, _jsx("textarea", { id: "textarea", placeholder: placeholder, className: style('block w-full resize-y min-h-24 p-m outline-none border rounded-md border-gray', activeTextareaStyles), value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }), renderErrorText(error)] }));
|
|
7
|
-
//# sourceMappingURL=renderTextarea.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderTextarea.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderTextarea.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAUpD,MAAM,oBAAoB,GACxB,uFAAuF,CAAC;AAC1F,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,EAAkB,EAAE,EAAE,CAAC,CAC9F,0BACE,iBAAO,SAAS,EAAC,YAAY,EAAC,OAAO,EAAC,UAAU,aAC7C,IAAI,CAAC,CAAC,CAAC,CACN,wBACE,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,GACA,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,mBACE,EAAE,EAAC,UAAU,EACb,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,CACd,+EAA+E,EAC/E,oBAAoB,CACrB,EACD,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,OAAO,EACL,CAAC,CAAC,CAAkC,EAAE,EAAE,CACtC,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,CAAQ,GAE3E,IACI,EACP,eAAe,CAAC,KAAK,CAAC,IACnB,CACP,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
-
import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
|
|
4
|
-
export declare const renderBusinessCardDataOrganization: (field: FormFieldRegisterer<BusinessCardFormState>) => JSX.Element;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
-
import { type AcquiringFormState } from './ApplicationFormAcquiring';
|
|
4
|
-
export declare const renderSlideCheckboxes: (field: FormFieldRegisterer<AcquiringFormState>) => JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FieldProps } from '../../hooks/useForm';
|
|
3
|
-
interface TextFieldProps {
|
|
4
|
-
textField: FieldProps<string>;
|
|
5
|
-
text?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
value?: string;
|
|
8
|
-
error?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const renderTextarea: ({ textField, text, placeholder, error }: TextFieldProps) => JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
-
import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
|
|
4
|
-
export declare const renderBusinessCardDataOrganization: (field: FormFieldRegisterer<BusinessCardFormState>) => JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderBusinessCardDataOrganization = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const withValidator_1 = require("../../validation/withValidator");
|
|
5
|
-
const ApplicationFieldsetLayout_1 = require("./ApplicationFieldsetLayout");
|
|
6
|
-
const InputControl_1 = require("./InputControl");
|
|
7
|
-
const PhoneInputControl_1 = require("./PhoneInputControl");
|
|
8
|
-
const validators_1 = require("./validators");
|
|
9
|
-
const renderBusinessCardDataOrganization = (field) => ((0, jsx_runtime_1.jsxs)(ApplicationFieldsetLayout_1.ApplicationFieldsetLayout, { children: [(0, jsx_runtime_1.jsxs)("div", { className: ApplicationFieldsetLayout_1.formChildrenStyle, children: [(0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...(0, withValidator_1.withValidator)(field('name'), validators_1.nameValidator) }), (0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0418\u041D\u041D", ...(0, withValidator_1.withValidator)(field('inn'), validators_1.innValidator) })] }), (0, jsx_runtime_1.jsxs)("div", { className: ApplicationFieldsetLayout_1.formChildrenStyle, children: [(0, jsx_runtime_1.jsx)(PhoneInputControl_1.PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...(0, withValidator_1.withValidator)(field('phone'), validators_1.phoneValidator) }), (0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...(0, withValidator_1.withValidator)(field('mail'), validators_1.defaultValidator) })] })] }));
|
|
10
|
-
exports.renderBusinessCardDataOrganization = renderBusinessCardDataOrganization;
|
|
11
|
-
//# sourceMappingURL=renderBusinessCardDataOrganization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderBusinessCardDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx"],"names":[],"mappings":";;;AACA,kEAA+D;AAC/D,2EAA2F;AAE3F,iDAA8C;AAC9C,2DAAwD;AACxD,6CAA6F;AAEtF,MAAM,kCAAkC,GAAG,CAChD,KAAiD,EACjD,EAAE,CAAC,CACH,wBAAC,qDAAyB,eACxB,iCAAK,SAAS,EAAE,6CAAiB,aAC/B,uBAAC,2BAAY,IAAC,KAAK,EAAC,uFAAiB,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE,0BAAa,CAAC,GAAI,EACzF,uBAAC,2BAAY,IAAC,KAAK,EAAC,oBAAK,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,KAAK,CAAC,EAAE,yBAAY,CAAC,GAAI,IACvE,EACN,iCAAK,SAAS,EAAE,6CAAiB,aAC/B,uBAAC,qCAAiB,IAAC,KAAK,EAAC,4CAAS,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,OAAO,CAAC,EAAE,2BAAc,CAAC,GAAI,EACxF,uBAAC,2BAAY,IAAC,KAAK,EAAC,mGAAmB,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE,6BAAgB,CAAC,GAAI,IAC1F,IACoB,CAC7B,CAAC;AAbW,QAAA,kCAAkC,sCAa7C"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
-
import { type AcquiringFormState } from './ApplicationFormAcquiring';
|
|
4
|
-
export declare const renderSlideCheckboxes: (field: FormFieldRegisterer<AcquiringFormState>) => JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderSlideCheckboxes = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const SlideCheckbox_1 = require("../../ui-kit/SlideCheckbox/SlideCheckbox");
|
|
5
|
-
const renderSlideCheckboxes = (field) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(SlideCheckbox_1.SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C \u043E\u043D\u043B\u0430\u0439\u043D-\u043A\u0430\u0441\u0441\u0443", ...field('onlineCheckout') }), (0, jsx_runtime_1.jsx)(SlideCheckbox_1.SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })] }));
|
|
6
|
-
exports.renderSlideCheckboxes = renderSlideCheckboxes;
|
|
7
|
-
//# sourceMappingURL=renderSlideCheckboxes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderSlideCheckboxes.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderSlideCheckboxes.tsx"],"names":[],"mappings":";;;AACA,4EAAyE;AAGlE,MAAM,qBAAqB,GAAG,CAAC,KAA8C,EAAE,EAAE,CAAC,CACvF,4CACE,uBAAC,6BAAa,IAAC,IAAI,EAAC,mIAA0B,KAAK,KAAK,CAAC,gBAAgB,CAAC,GAAI,EAC9E,uBAAC,6BAAa,IAAC,IAAI,EAAC,oHAA0B,KAAK,KAAK,CAAC,aAAa,CAAC,GAAI,IACvE,CACP,CAAC;AALW,QAAA,qBAAqB,yBAKhC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FieldProps } from '../../hooks/useForm';
|
|
3
|
-
interface TextFieldProps {
|
|
4
|
-
textField: FieldProps<string>;
|
|
5
|
-
text?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
value?: string;
|
|
8
|
-
error?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const renderTextarea: ({ textField, text, placeholder, error }: TextFieldProps) => JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderTextarea = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
5
|
-
const style_1 = require("../../utils/style");
|
|
6
|
-
const renderErrorText_1 = require("./renderErrorText");
|
|
7
|
-
const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
|
|
8
|
-
const renderTextarea = ({ textField, text, placeholder = '', error }) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("label", { className: "space-y-xs", htmlFor: "textarea", children: [text ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: text }) })) : null, (0, jsx_runtime_1.jsx)("textarea", { id: "textarea", placeholder: placeholder, className: (0, style_1.style)('block w-full resize-y min-h-24 p-m outline-none border rounded-md border-gray', activeTextareaStyles), value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }), (0, renderErrorText_1.renderErrorText)(error)] }));
|
|
9
|
-
exports.renderTextarea = renderTextarea;
|
|
10
|
-
//# sourceMappingURL=renderTextarea.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderTextarea.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderTextarea.tsx"],"names":[],"mappings":";;;AACA,iDAA8C;AAC9C,6CAA0C;AAC1C,uDAAoD;AAUpD,MAAM,oBAAoB,GACxB,uFAAuF,CAAC;AACnF,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,EAAkB,EAAE,EAAE,CAAC,CAC9F,4CACE,mCAAO,SAAS,EAAC,YAAY,EAAC,OAAO,EAAC,UAAU,aAC7C,IAAI,CAAC,CAAC,CAAC,CACN,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,GACA,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,qCACE,EAAE,EAAC,UAAU,EACb,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,IAAA,aAAK,EACd,+EAA+E,EAC/E,oBAAoB,CACrB,EACD,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,OAAO,EACL,CAAC,CAAC,CAAkC,EAAE,EAAE,CACtC,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,CAAQ,GAE3E,IACI,EACP,IAAA,iCAAe,EAAC,KAAK,CAAC,IACnB,CACP,CAAC;AA1BW,QAAA,cAAc,kBA0BzB"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
-
import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
|
|
4
|
-
export declare const renderBusinessCardDataOrganization: (field: FormFieldRegisterer<BusinessCardFormState>) => JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { withValidator } from '../../validation/withValidator.js';
|
|
3
|
-
import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout.js';
|
|
4
|
-
import { InputControl } from './InputControl.js';
|
|
5
|
-
import { PhoneInputControl } from './PhoneInputControl.js';
|
|
6
|
-
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators.js';
|
|
7
|
-
export const renderBusinessCardDataOrganization = (field) => (_jsxs(ApplicationFieldsetLayout, { children: [_jsxs("div", { className: formChildrenStyle, children: [_jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), _jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), _jsxs("div", { className: formChildrenStyle, children: [_jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), _jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
|
|
8
|
-
//# sourceMappingURL=renderBusinessCardDataOrganization.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderBusinessCardDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE7F,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,KAAiD,EACjD,EAAE,CAAC,CACH,MAAC,yBAAyB,eACxB,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,YAAY,IAAC,KAAK,EAAC,uFAAiB,KAAK,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,GAAI,EACzF,KAAC,YAAY,IAAC,KAAK,EAAC,oBAAK,KAAK,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,GAAI,IACvE,EACN,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,iBAAiB,IAAC,KAAK,EAAC,4CAAS,KAAK,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,GAAI,EACxF,KAAC,YAAY,IAAC,KAAK,EAAC,mGAAmB,KAAK,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,GAAI,IAC1F,IACoB,CAC7B,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
-
import { type AcquiringFormState } from './ApplicationFormAcquiring';
|
|
4
|
-
export declare const renderSlideCheckboxes: (field: FormFieldRegisterer<AcquiringFormState>) => JSX.Element;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { SlideCheckbox } from '../../ui-kit/SlideCheckbox/SlideCheckbox.js';
|
|
3
|
-
export const renderSlideCheckboxes = (field) => (_jsxs("div", { children: [_jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C \u043E\u043D\u043B\u0430\u0439\u043D-\u043A\u0430\u0441\u0441\u0443", ...field('onlineCheckout') }), _jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })] }));
|
|
4
|
-
//# sourceMappingURL=renderSlideCheckboxes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderSlideCheckboxes.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderSlideCheckboxes.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGzE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAA8C,EAAE,EAAE,CAAC,CACvF,0BACE,KAAC,aAAa,IAAC,IAAI,EAAC,mIAA0B,KAAK,KAAK,CAAC,gBAAgB,CAAC,GAAI,EAC9E,KAAC,aAAa,IAAC,IAAI,EAAC,oHAA0B,KAAK,KAAK,CAAC,aAAa,CAAC,GAAI,IACvE,CACP,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type FieldProps } from '../../hooks/useForm';
|
|
3
|
-
interface TextFieldProps {
|
|
4
|
-
textField: FieldProps<string>;
|
|
5
|
-
text?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
value?: string;
|
|
8
|
-
error?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const renderTextarea: ({ textField, text, placeholder, error }: TextFieldProps) => JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
3
|
-
import { style } from '../../utils/style.js';
|
|
4
|
-
import { renderErrorText } from './renderErrorText.js';
|
|
5
|
-
const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
|
|
6
|
-
export const renderTextarea = ({ textField, text, placeholder = '', error }) => (_jsxs("div", { children: [_jsxs("label", { className: "space-y-xs", htmlFor: "textarea", children: [text ? (_jsx("div", { children: _jsx(Text, { size: "text-m", font: "font-light", children: text }) })) : null, _jsx("textarea", { id: "textarea", placeholder: placeholder, className: style('block w-full resize-y min-h-24 p-m outline-none border rounded-md border-gray', activeTextareaStyles), value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }), renderErrorText(error)] }));
|
|
7
|
-
//# sourceMappingURL=renderTextarea.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderTextarea.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderTextarea.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAUpD,MAAM,oBAAoB,GACxB,uFAAuF,CAAC;AAC1F,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,EAAkB,EAAE,EAAE,CAAC,CAC9F,0BACE,iBAAO,SAAS,EAAC,YAAY,EAAC,OAAO,EAAC,UAAU,aAC7C,IAAI,CAAC,CAAC,CAAC,CACN,wBACE,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,GACA,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,mBACE,EAAE,EAAC,UAAU,EACb,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,CACd,+EAA+E,EAC/E,oBAAoB,CACrB,EACD,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,OAAO,EACL,CAAC,CAAC,CAAkC,EAAE,EAAE,CACtC,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,CAAQ,GAE3E,IACI,EACP,eAAe,CAAC,KAAK,CAAC,IACnB,CACP,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
-
import { withValidator } from '../../validation/withValidator';
|
|
3
|
-
import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout';
|
|
4
|
-
import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
|
|
5
|
-
import { InputControl } from './InputControl';
|
|
6
|
-
import { PhoneInputControl } from './PhoneInputControl';
|
|
7
|
-
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
|
|
8
|
-
|
|
9
|
-
export const renderBusinessCardDataOrganization = (
|
|
10
|
-
field: FormFieldRegisterer<BusinessCardFormState>,
|
|
11
|
-
) => (
|
|
12
|
-
<ApplicationFieldsetLayout>
|
|
13
|
-
<div className={formChildrenStyle}>
|
|
14
|
-
<InputControl label="Контактное лицо" {...withValidator(field('name'), nameValidator)} />
|
|
15
|
-
<InputControl label="ИНН" {...withValidator(field('inn'), innValidator)} />
|
|
16
|
-
</div>
|
|
17
|
-
<div className={formChildrenStyle}>
|
|
18
|
-
<PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
|
|
19
|
-
<InputControl label="Электронная почта" {...withValidator(field('mail'), defaultValidator)} />
|
|
20
|
-
</div>
|
|
21
|
-
</ApplicationFieldsetLayout>
|
|
22
|
-
);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
-
import { SlideCheckbox } from '../../ui-kit/SlideCheckbox/SlideCheckbox';
|
|
3
|
-
import { type AcquiringFormState } from './ApplicationFormAcquiring';
|
|
4
|
-
|
|
5
|
-
export const renderSlideCheckboxes = (field: FormFieldRegisterer<AcquiringFormState>) => (
|
|
6
|
-
<div>
|
|
7
|
-
<SlideCheckbox text="Хочу купить онлайн-кассу" {...field('onlineCheckout')} />
|
|
8
|
-
<SlideCheckbox text="Хочу купить POS-терминал" {...field('posTerminal')} />
|
|
9
|
-
</div>
|
|
10
|
-
);
|