@redneckz/wildless-cms-uni-blocks 0.14.258 → 0.14.259
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/bin/migration-scripts/0.14.259.js +32 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +41 -44
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +4 -16
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -9
- package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +0 -1
- package/{dist/components/ApplicationForm → bundle/components/ApplicationFormCustom}/Footnote.d.ts +3 -3
- package/{dist/components/ApplicationForm → bundle/components/ApplicationFormCustom}/renderAgreementSubmit.d.ts +1 -1
- package/bundle/components/{ApplicationForm → ApplicationFormCustom}/renderSubmitButton.d.ts +1 -1
- package/bundle/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.d.ts +6 -0
- package/bundle/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +14 -0
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +0 -2
- package/bundle/components/Carousel/renderCardHighlight.d.ts +3 -3
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -4
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -5
- package/bundle/data/FooterData.d.ts +2 -4
- package/bundle/model/HeadlineType.d.ts +4 -0
- package/bundle/model/LinkProps.d.ts +2 -3
- package/bundle/ui-kit/BaseFiltration/HotFilterBase.d.ts +2 -4
- package/bundle/ui-kit/List/ListItem.d.ts +3 -3
- package/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +3 -3
- package/bundle/ui-kit/Select/Option.d.ts +3 -3
- package/bundle/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +3 -3
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +4 -16
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js +3 -4
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -9
- package/dist/components/ApplicationForm/EmbeddableForms.d.ts +0 -1
- package/dist/components/ApplicationForm/EmbeddableForms.js +0 -2
- package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/dist/components/ApplicationFormCustom/ApplicationFormCustom.js +2 -3
- package/dist/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/{bundle/components/ApplicationForm → dist/components/ApplicationFormCustom}/Footnote.d.ts +3 -3
- package/dist/components/ApplicationFormCustom/Footnote.js.map +1 -0
- package/dist/components/ApplicationFormCustom/UltraPremiumField.js +1 -1
- package/dist/components/ApplicationFormCustom/UltraPremiumField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/{mobile/dist/components/ApplicationForm → dist/components/ApplicationFormCustom}/renderAgreementSubmit.d.ts +1 -1
- package/dist/components/ApplicationFormCustom/renderAgreementSubmit.js.map +1 -0
- package/{mobile/dist/components/ApplicationForm → dist/components/ApplicationFormCustom}/renderSubmitButton.d.ts +1 -1
- package/dist/components/ApplicationFormCustom/renderSubmitButton.js.map +1 -0
- package/dist/components/ApplicationFormCustom/validators.js.map +1 -0
- package/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.d.ts +6 -0
- package/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.js +23 -0
- package/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.js.map +1 -0
- package/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +14 -0
- package/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.js +2 -0
- package/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +0 -2
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Carousel/renderCardHighlight.d.ts +3 -3
- package/dist/components/Carousel/renderCardHighlight.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -4
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -5
- package/dist/data/FooterData.d.ts +2 -4
- package/dist/model/HeadlineType.d.ts +4 -0
- package/dist/model/LinkProps.d.ts +2 -3
- package/dist/ui-kit/BaseFiltration/HotFilterBase.d.ts +2 -4
- package/dist/ui-kit/List/ListItem.d.ts +3 -3
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +3 -3
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/dist/ui-kit/Select/Option.d.ts +3 -3
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +3 -3
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +0 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +0 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +4 -16
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js +3 -4
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -9
- package/lib/components/ApplicationForm/EmbeddableForms.d.ts +0 -1
- package/lib/components/ApplicationForm/EmbeddableForms.js +0 -2
- package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.js +2 -3
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/lib/components/{ApplicationForm → ApplicationFormCustom}/Footnote.d.ts +3 -3
- package/lib/components/ApplicationFormCustom/Footnote.js.map +1 -0
- package/lib/components/ApplicationFormCustom/UltraPremiumField.js +1 -1
- package/lib/components/ApplicationFormCustom/UltraPremiumField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/lib/components/{ApplicationForm → ApplicationFormCustom}/renderAgreementSubmit.d.ts +1 -1
- package/lib/components/ApplicationFormCustom/renderAgreementSubmit.js.map +1 -0
- package/lib/components/{ApplicationForm → ApplicationFormCustom}/renderSubmitButton.d.ts +1 -1
- package/lib/components/ApplicationFormCustom/renderSubmitButton.js.map +1 -0
- package/lib/components/ApplicationFormCustom/validators.js.map +1 -0
- package/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.d.ts +6 -0
- package/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.fixture.d.ts +5 -0
- package/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.js +21 -0
- package/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.js.map +1 -0
- package/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +14 -0
- package/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.js +2 -0
- package/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +0 -2
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Carousel/renderCardHighlight.d.ts +3 -3
- package/lib/components/Carousel/renderCardHighlight.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -4
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -5
- package/lib/data/FooterData.d.ts +2 -4
- package/lib/model/HeadlineType.d.ts +4 -0
- package/lib/model/LinkProps.d.ts +2 -3
- package/lib/ui-kit/BaseFiltration/HotFilterBase.d.ts +2 -4
- package/lib/ui-kit/List/ListItem.d.ts +3 -3
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +3 -3
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/ui-kit/Select/Option.d.ts +3 -3
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +3 -3
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +28 -44
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +4 -16
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -9
- package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +0 -1
- package/mobile/bundle/components/{ApplicationForm → ApplicationFormCustom}/Footnote.d.ts +3 -3
- package/mobile/bundle/components/{ApplicationForm → ApplicationFormCustom}/renderAgreementSubmit.d.ts +1 -1
- package/{dist/components/ApplicationForm → mobile/bundle/components/ApplicationFormCustom}/renderSubmitButton.d.ts +1 -1
- package/mobile/bundle/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.d.ts +6 -0
- package/mobile/bundle/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +14 -0
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +0 -2
- package/mobile/bundle/components/Carousel/renderCardHighlight.d.ts +3 -3
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -4
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +3 -5
- package/mobile/bundle/data/FooterData.d.ts +2 -4
- package/mobile/bundle/model/HeadlineType.d.ts +4 -0
- package/mobile/bundle/model/LinkProps.d.ts +2 -3
- package/mobile/bundle/ui-kit/BaseFiltration/HotFilterBase.d.ts +2 -4
- package/mobile/bundle/ui-kit/List/ListItem.d.ts +3 -3
- package/mobile/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +3 -3
- package/mobile/bundle/ui-kit/Select/Option.d.ts +3 -3
- package/mobile/bundle/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +3 -3
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +4 -16
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +3 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -9
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +0 -1
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +0 -2
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustom.js +2 -3
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/Footnote.d.ts +7 -0
- package/mobile/dist/components/ApplicationFormCustom/Footnote.js.map +1 -0
- package/mobile/dist/components/ApplicationFormCustom/UltraPremiumField.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/UltraPremiumField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/{bundle/components/ApplicationForm → mobile/dist/components/ApplicationFormCustom}/renderAgreementSubmit.d.ts +1 -1
- package/mobile/dist/components/ApplicationFormCustom/renderAgreementSubmit.js.map +1 -0
- package/mobile/{bundle/components/ApplicationForm → dist/components/ApplicationFormCustom}/renderSubmitButton.d.ts +1 -1
- package/mobile/dist/components/ApplicationFormCustom/renderSubmitButton.js.map +1 -0
- package/mobile/dist/components/ApplicationFormCustom/validators.js.map +1 -0
- package/mobile/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.d.ts +6 -0
- package/mobile/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.js +23 -0
- package/mobile/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.js.map +1 -0
- package/mobile/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +14 -0
- package/mobile/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.js +2 -0
- package/mobile/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +0 -2
- package/mobile/dist/components/Carousel/renderCardHighlight.d.ts +3 -3
- package/mobile/dist/components/Carousel/renderCardHighlight.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -4
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -5
- package/mobile/dist/data/FooterData.d.ts +2 -4
- package/mobile/dist/model/HeadlineType.d.ts +4 -0
- package/mobile/dist/model/LinkProps.d.ts +2 -3
- package/mobile/dist/ui-kit/BaseFiltration/HotFilterBase.d.ts +2 -4
- package/mobile/dist/ui-kit/List/ListItem.d.ts +3 -3
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +3 -3
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Option.d.ts +3 -3
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +3 -3
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +4 -16
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +3 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -9
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +0 -1
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +0 -2
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustom.js +2 -3
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/Footnote.d.ts +7 -0
- package/mobile/lib/components/ApplicationFormCustom/Footnote.js.map +1 -0
- package/mobile/lib/components/ApplicationFormCustom/UltraPremiumField.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/UltraPremiumField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +5 -0
- package/mobile/lib/components/ApplicationFormCustom/renderAgreementSubmit.js.map +1 -0
- package/mobile/lib/components/ApplicationFormCustom/renderSubmitButton.d.ts +3 -0
- package/mobile/lib/components/ApplicationFormCustom/renderSubmitButton.js.map +1 -0
- package/mobile/lib/components/ApplicationFormCustom/validators.js.map +1 -0
- package/mobile/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.d.ts +6 -0
- package/mobile/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.js +21 -0
- package/mobile/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.js.map +1 -0
- package/mobile/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +14 -0
- package/mobile/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.js +2 -0
- package/mobile/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +0 -2
- package/mobile/lib/components/Carousel/renderCardHighlight.d.ts +3 -3
- package/mobile/lib/components/Carousel/renderCardHighlight.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +2 -4
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -5
- package/mobile/lib/data/FooterData.d.ts +2 -4
- package/mobile/lib/model/HeadlineType.d.ts +4 -0
- package/mobile/lib/model/LinkProps.d.ts +2 -3
- package/mobile/lib/ui-kit/BaseFiltration/HotFilterBase.d.ts +2 -4
- package/mobile/lib/ui-kit/List/ListItem.d.ts +3 -3
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +3 -3
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Option.d.ts +3 -3
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +3 -3
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +4 -18
- package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +5 -5
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +0 -4
- package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +0 -2
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.tsx +2 -3
- package/mobile/src/components/{ApplicationForm → ApplicationFormCustom}/Footnote.tsx +3 -3
- package/mobile/src/components/ApplicationFormCustom/UltraPremiumField.tsx +1 -1
- package/mobile/src/components/ApplicationFormCustom/getObjectValidator.tsx +3 -3
- package/mobile/src/components/{ApplicationForm → ApplicationFormCustom}/renderAgreementSubmit.tsx +1 -1
- package/{src/components/ApplicationForm → mobile/src/components/ApplicationFormCustom}/renderSubmitButton.tsx +1 -1
- package/mobile/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.example.json +1 -0
- package/mobile/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.tsx +57 -0
- package/mobile/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.ui.json +1 -0
- package/mobile/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.ts +10 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +0 -2
- package/mobile/src/components/Carousel/renderCardHighlight.tsx +3 -3
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +2 -4
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +7 -5
- package/mobile/src/data/FooterData.ts +5 -6
- package/mobile/src/model/HeadlineType.ts +5 -0
- package/mobile/src/model/LinkProps.ts +3 -4
- package/mobile/src/ui-kit/BaseFiltration/HotFilterBase.ts +3 -4
- package/mobile/src/ui-kit/List/ListItem.tsx +3 -3
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +3 -3
- package/mobile/src/ui-kit/Select/Option.ts +4 -3
- package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +3 -3
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +11 -32
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +11 -32
- package/src/components/ApplicationForm/ApplicationFormContent.ts +4 -18
- package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +5 -5
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +0 -4
- package/src/components/ApplicationForm/EmbeddableForms.tsx +0 -2
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.tsx +2 -3
- package/src/components/{ApplicationForm → ApplicationFormCustom}/Footnote.tsx +3 -3
- package/src/components/ApplicationFormCustom/UltraPremiumField.tsx +1 -1
- package/src/components/ApplicationFormCustom/getObjectValidator.tsx +3 -3
- package/src/components/{ApplicationForm → ApplicationFormCustom}/renderAgreementSubmit.tsx +1 -1
- package/{mobile/src/components/ApplicationForm → src/components/ApplicationFormCustom}/renderSubmitButton.tsx +1 -1
- package/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.example.json +1 -0
- package/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.fixture.tsx +20 -0
- package/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.tsx +57 -0
- package/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupport.ui.json +1 -0
- package/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.ts +10 -0
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +0 -2
- package/src/components/Blocks.ts +2 -0
- package/src/components/Carousel/renderCardHighlight.tsx +3 -3
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +2 -4
- package/src/components/LinkDocs/LinkDocsContent.ts +7 -5
- package/src/data/FooterData.ts +5 -6
- package/src/model/HeadlineType.ts +5 -0
- package/src/model/LinkProps.ts +3 -4
- package/src/ui-kit/BaseFiltration/HotFilterBase.ts +3 -4
- package/src/ui-kit/List/ListItem.tsx +3 -3
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +3 -3
- package/src/ui-kit/Select/Option.ts +4 -3
- package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +3 -3
- package/bundle/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +0 -2
- package/bundle/components/ApplicationForm/formStyle.d.ts +0 -2
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +0 -2
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +0 -21
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +0 -1
- package/dist/components/ApplicationForm/Footnote.js.map +0 -1
- package/dist/components/ApplicationForm/formStyle.d.ts +0 -2
- package/dist/components/ApplicationForm/formStyle.js +0 -5
- package/dist/components/ApplicationForm/formStyle.js.map +0 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +0 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +0 -1
- package/dist/components/ApplicationForm/validators.js.map +0 -1
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +0 -2
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +0 -19
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +0 -1
- package/lib/components/ApplicationForm/Footnote.js.map +0 -1
- package/lib/components/ApplicationForm/formStyle.d.ts +0 -2
- package/lib/components/ApplicationForm/formStyle.js +0 -3
- package/lib/components/ApplicationForm/formStyle.js.map +0 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +0 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +0 -1
- package/lib/components/ApplicationForm/validators.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +0 -2
- package/mobile/bundle/components/ApplicationForm/formStyle.d.ts +0 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +0 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +0 -21
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/Footnote.d.ts +0 -7
- package/mobile/dist/components/ApplicationForm/Footnote.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/formStyle.d.ts +0 -2
- package/mobile/dist/components/ApplicationForm/formStyle.js +0 -5
- package/mobile/dist/components/ApplicationForm/formStyle.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/validators.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +0 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +0 -19
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/Footnote.d.ts +0 -7
- package/mobile/lib/components/ApplicationForm/Footnote.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/formStyle.d.ts +0 -2
- package/mobile/lib/components/ApplicationForm/formStyle.js +0 -3
- package/mobile/lib/components/ApplicationForm/formStyle.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +0 -5
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +0 -3
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/validators.js.map +0 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +0 -45
- package/mobile/src/components/ApplicationForm/formStyle.ts +0 -3
- package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +0 -45
- package/src/components/ApplicationForm/formStyle.ts +0 -3
- /package/bundle/components/{ApplicationForm → ApplicationFormCustom}/validators.d.ts +0 -0
- /package/dist/components/{ApplicationForm → ApplicationFormCustom}/Footnote.js +0 -0
- /package/dist/components/{ApplicationForm → ApplicationFormCustom}/renderAgreementSubmit.js +0 -0
- /package/dist/components/{ApplicationForm → ApplicationFormCustom}/renderSubmitButton.js +0 -0
- /package/dist/components/{ApplicationForm → ApplicationFormCustom}/validators.d.ts +0 -0
- /package/dist/components/{ApplicationForm → ApplicationFormCustom}/validators.js +0 -0
- /package/lib/components/{ApplicationForm → ApplicationFormCustom}/Footnote.js +0 -0
- /package/lib/components/{ApplicationForm → ApplicationFormCustom}/renderAgreementSubmit.js +0 -0
- /package/lib/components/{ApplicationForm → ApplicationFormCustom}/renderSubmitButton.js +0 -0
- /package/lib/components/{ApplicationForm → ApplicationFormCustom}/validators.d.ts +0 -0
- /package/lib/components/{ApplicationForm → ApplicationFormCustom}/validators.js +0 -0
- /package/mobile/bundle/components/{ApplicationForm → ApplicationFormCustom}/validators.d.ts +0 -0
- /package/mobile/dist/components/{ApplicationForm → ApplicationFormCustom}/Footnote.js +0 -0
- /package/mobile/dist/components/{ApplicationForm → ApplicationFormCustom}/renderAgreementSubmit.js +0 -0
- /package/mobile/dist/components/{ApplicationForm → ApplicationFormCustom}/renderSubmitButton.js +0 -0
- /package/mobile/dist/components/{ApplicationForm → ApplicationFormCustom}/validators.d.ts +0 -0
- /package/mobile/dist/components/{ApplicationForm → ApplicationFormCustom}/validators.js +0 -0
- /package/mobile/lib/components/{ApplicationForm → ApplicationFormCustom}/Footnote.js +0 -0
- /package/mobile/lib/components/{ApplicationForm → ApplicationFormCustom}/renderAgreementSubmit.js +0 -0
- /package/mobile/lib/components/{ApplicationForm → ApplicationFormCustom}/renderSubmitButton.js +0 -0
- /package/mobile/lib/components/{ApplicationForm → ApplicationFormCustom}/validators.d.ts +0 -0
- /package/mobile/lib/components/{ApplicationForm → ApplicationFormCustom}/validators.js +0 -0
- /package/mobile/src/components/{ApplicationForm → ApplicationFormCustom}/validators.ts +0 -0
- /package/src/components/{ApplicationForm → ApplicationFormCustom}/validators.ts +0 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -1182,7 +1182,7 @@
|
|
|
1182
1182
|
iconVersion: 'black',
|
|
1183
1183
|
isBorder: false,
|
|
1184
1184
|
};
|
|
1185
|
-
const formStyle
|
|
1185
|
+
const formStyle = 'flex justify-between items-center h-14 px-m py-s border rounded-md cursor-pointer ' +
|
|
1186
1186
|
'hover:border-black active:border-black focus:border-black';
|
|
1187
1187
|
const DatePicker = JSX(({ className = '', label = '', value, valid = true, minDate, maxDate, onChange }) => {
|
|
1188
1188
|
const [showCalendar, { setValue }] = useBool(false);
|
|
@@ -1198,7 +1198,7 @@
|
|
|
1198
1198
|
});
|
|
1199
1199
|
return (jsxs("div", { className: style('space-y-xs', className), ref: ref, children: [renderLabel(label), jsxs("div", { className: "relative", children: [renderDatePickerForm(handleChangeVisibleCalendar, value, valid), showCalendar ? (jsxs("div", { className: "absolute bg-white z-20 select-none", children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, onDateSelect: onChange, min: minDate, max: maxDate })] })) : null] })] }));
|
|
1200
1200
|
});
|
|
1201
|
-
const renderDatePickerForm = (handleChangeVisibleCalendar, value, valid) => (jsxs("div", { onClick: handleChangeVisibleCalendar, className: style(formStyle
|
|
1201
|
+
const renderDatePickerForm = (handleChangeVisibleCalendar, value, valid) => (jsxs("div", { onClick: handleChangeVisibleCalendar, className: style(formStyle, valid ? 'border-gray' : 'border-error'), children: [jsx(Paragraph, { children: value && formatDate(value) }), jsx(Icon, { ...ICON_PROPS, name: "CalendarIcon" })] }));
|
|
1202
1202
|
|
|
1203
1203
|
const DatePickerControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(DatePicker, { label: label && rest?.errors ? `${label}*` : label, valid: Boolean(!error), ...rest }), renderErrorText(error)] })));
|
|
1204
1204
|
|
|
@@ -1327,6 +1327,8 @@
|
|
|
1327
1327
|
return Array.isArray(data) ? data : [];
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
|
+
const getNamesFromInput = (inputs) => Object.values(inputs.filter((_) => _))?.map((_) => _.name);
|
|
1331
|
+
|
|
1330
1332
|
const pattern = (regexp) => validator((_) => typeof _ === 'string' && regexp.test(_));
|
|
1331
1333
|
|
|
1332
1334
|
const required = validator((_) => _ !== null && _ !== undefined && _ !== '');
|
|
@@ -1339,8 +1341,6 @@
|
|
|
1339
1341
|
const phoneValidator = pattern(/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/)(ERROR_MESSAGE);
|
|
1340
1342
|
const agreementValidator = validator((_) => typeof _ === 'boolean' && _)('Согласие обязательно');
|
|
1341
1343
|
|
|
1342
|
-
const getNamesFromInput = (inputs) => Object.values(inputs.filter((_) => _))?.map((_) => _.name);
|
|
1343
|
-
|
|
1344
1344
|
const validatorObj = {
|
|
1345
1345
|
typeForm: defaultValidator,
|
|
1346
1346
|
surname: nameValidator,
|
|
@@ -1395,30 +1395,6 @@
|
|
|
1395
1395
|
return (jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: useMemo(() => regions?.map(({ code = '', name = '' }) => ({ key: code, text: name })), [regions]), ...getValidation(field('region'), validatorObj.region, input?.required) }));
|
|
1396
1396
|
});
|
|
1397
1397
|
|
|
1398
|
-
const ApplicationFieldsetLayout = JSX(({ title, children }) => (jsxs("fieldset", { className: "grid @xl:flex @xl:justify-between gap-m border-b border-b-main-divider @xl:border-none", children: [title ? (jsx("legend", { className: "w-full", children: jsx(Heading, { title: title, headingType: "h6", className: "@xl:text-center" }) })) : null, children] })));
|
|
1399
|
-
|
|
1400
|
-
const FEEDBACK_TYPES = [
|
|
1401
|
-
{
|
|
1402
|
-
text: 'Задать вопрос по продуктам и услугам',
|
|
1403
|
-
key: 'FEEDBACK',
|
|
1404
|
-
},
|
|
1405
|
-
{
|
|
1406
|
-
text: 'Качество обслуживания',
|
|
1407
|
-
key: 'FEEDBACK_QS',
|
|
1408
|
-
},
|
|
1409
|
-
];
|
|
1410
|
-
const FEEDBACK_METHOD = [
|
|
1411
|
-
{ key: 'phone', text: 'Телефонный звонок' },
|
|
1412
|
-
{ key: 'email', text: 'Электронное сообщение' },
|
|
1413
|
-
];
|
|
1414
|
-
const SERVICE_DIRECTIONS = [
|
|
1415
|
-
{ key: 'Физическое лицо' },
|
|
1416
|
-
{ key: 'Юридическое лицо / ИП' },
|
|
1417
|
-
];
|
|
1418
|
-
|
|
1419
|
-
const formStyle = 'container space-y-m';
|
|
1420
|
-
const oneColumnFormStyle = 'w-full max-w-xl space-y-s m-auto';
|
|
1421
|
-
|
|
1422
1398
|
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
1423
1399
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => {
|
|
1424
1400
|
const resultOptions = { ...commonOptions, ...options };
|
|
@@ -1485,6 +1461,27 @@
|
|
|
1485
1461
|
const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с ';
|
|
1486
1462
|
const renderAgreementSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex col-span-2 gap-m flex-col lg:flex-row w-full justify-between items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: agreementText, link: link })), renderSubmitButton(button)] }));
|
|
1487
1463
|
|
|
1464
|
+
const ApplicationFieldsetLayout = JSX(({ title, children }) => (jsxs("fieldset", { className: "grid @xl:flex @xl:justify-between gap-m border-b border-b-main-divider @xl:border-none", children: [title ? (jsx("legend", { className: "w-full", children: jsx(Heading, { title: title, headingType: "h6", className: "@xl:text-center" }) })) : null, children] })));
|
|
1465
|
+
|
|
1466
|
+
const FEEDBACK_TYPES = [
|
|
1467
|
+
{
|
|
1468
|
+
text: 'Задать вопрос по продуктам и услугам',
|
|
1469
|
+
key: 'FEEDBACK',
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
text: 'Качество обслуживания',
|
|
1473
|
+
key: 'FEEDBACK_QS',
|
|
1474
|
+
},
|
|
1475
|
+
];
|
|
1476
|
+
const FEEDBACK_METHOD = [
|
|
1477
|
+
{ key: 'phone', text: 'Телефонный звонок' },
|
|
1478
|
+
{ key: 'email', text: 'Электронное сообщение' },
|
|
1479
|
+
];
|
|
1480
|
+
const SERVICE_DIRECTIONS = [
|
|
1481
|
+
{ key: 'Физическое лицо' },
|
|
1482
|
+
{ key: 'Юридическое лицо / ИП' },
|
|
1483
|
+
];
|
|
1484
|
+
|
|
1488
1485
|
const initialFormState$1 = {
|
|
1489
1486
|
surname: '',
|
|
1490
1487
|
name: '',
|
|
@@ -1518,7 +1515,7 @@
|
|
|
1518
1515
|
});
|
|
1519
1516
|
const isQualityService = field('typeForm').value?.key === 'FEEDBACK_QS';
|
|
1520
1517
|
const isLegalEntity = getLegalEntity(field('typeForm').value?.key, field('serviceDirection').value?.key);
|
|
1521
|
-
return (jsx("form", { className:
|
|
1518
|
+
return (jsx("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: "w-full max-w-xl space-y-s m-auto", children: [jsx(SelectControl, { label: "\u0422\u0435\u043C\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u043C\u0443", options: FEEDBACK_TYPES, ...withValidator(field('typeForm'), defaultValidator) }), isQualityService ? (jsx(SelectControl, { label: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435", options: SERVICE_DIRECTIONS, ...withValidator(field('serviceDirection'), defaultValidator) })) : null, jsx(RegionField, { field: field }), isQualityService ? jsx(AddressBranchField, { field: field }) : null, jsxs("div", { className: "space-y-s", children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') }), jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...withValidator(field('birthday'), defaultValidator) })] }), isLegalEntity ? (jsxs("div", { children: [jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('fullName') })] })) : null, jsx(SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430", options: FEEDBACK_METHOD, ...withValidator(field('feedbackMethod'), defaultValidator) }), jsx(InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), isQualityService ? (jsxs("div", { children: [jsx(InputPhoneControl, { label: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0442\u0435\u043B\u0435\u0444\u043E\u043D", ...(!field('secondaryPhone').value || field('secondaryPhone').value === '+7 ('
|
|
1522
1519
|
? field('secondaryPhone')
|
|
1523
1520
|
: withValidator(field('secondaryPhone'), phoneValidator)) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('email'), defaultValidator) }), jsx(InputControl, { label: "\u0424\u0418\u041E \u0438\u043B\u0438 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u0432\u0448\u0435\u0433\u043E \u0412\u0430\u0441 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u0430 \u0411\u0430\u043D\u043A\u0430", ...field('bankEmpolee') }), jsx(InputControl, { label: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0432 \u0411\u0430\u043D\u043A", ...field('applicationDate') })] })) : (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('email'), defaultValidator) })), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435", isTextarea: true }), renderAgreementSubmit(field('consentDataProcessing'), link, button)] }) }) }));
|
|
1524
1521
|
});
|
|
@@ -1543,20 +1540,7 @@
|
|
|
1543
1540
|
};
|
|
1544
1541
|
const getLegalEntity = (typeFormKey = '', serviceDirectionKey = '') => typeFormKey === 'FEEDBACK_QS' && serviceDirectionKey === 'Юридическое лицо / ИП';
|
|
1545
1542
|
|
|
1546
|
-
const ApplicationFormGrantSupport = JSX((props) => {
|
|
1547
|
-
const { button, regionSource } = props;
|
|
1548
|
-
const [region, setRegion] = useState({ key: '' });
|
|
1549
|
-
const regions = regionSource?.regions ?? [];
|
|
1550
|
-
const buttonStyle = getRegularButtonClasses({
|
|
1551
|
-
className: 'text-white',
|
|
1552
|
-
version: button?.version,
|
|
1553
|
-
});
|
|
1554
|
-
const regionHref = regions?.find((_) => _.name === region.key)?.href;
|
|
1555
|
-
return (jsxs("div", { className: "container space-y-s", children: [regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name, text: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(LinkButton, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
|
|
1556
|
-
});
|
|
1557
|
-
|
|
1558
1543
|
const EmbeddableForms = {
|
|
1559
|
-
ApplicationFormGrantSupport,
|
|
1560
1544
|
ApplicationFormFeedback,
|
|
1561
1545
|
};
|
|
1562
1546
|
|
|
@@ -1840,7 +1824,7 @@
|
|
|
1840
1824
|
}, []);
|
|
1841
1825
|
const [, { field, onSubmit }] = useForm(initialFormState, { onSubmit: handleSubmit });
|
|
1842
1826
|
const fieldName = getConsentDataProcessing(inputs)?.name;
|
|
1843
|
-
return (jsxs(ApplicationFormLayout, { className: style(
|
|
1827
|
+
return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, responseType: responseType, ...rest, children: [jsxs("form", { onSubmit: onSubmit, children: [sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [_?.title ? jsx("div", { className: "@xl:text-center @xl:col-span-2", children: _.title }) : null, (_?.inputs || [])?.map(getField(field, typeForm))] }, `section-${i}`))), renderAgreementSubmit(fieldName ? field('consentDataProcessing') : undefined, link, button)] }), isContacts ? renderContacts() : null] }));
|
|
1844
1828
|
});
|
|
1845
1829
|
const inputColumnStyles = (column) => column === 2 ? '@xl:grid-cols-2' : '';
|
|
1846
1830
|
const getConsentDataProcessing = (inputs) => inputs?.find((_) => _?.name === 'consentDataProcessing');
|
|
@@ -1849,6 +1833,18 @@
|
|
|
1849
1833
|
.filter((input) => !input?.condition ||
|
|
1850
1834
|
input?.condition.values.find((_) => _ === data?.[input?.condition?.name]));
|
|
1851
1835
|
|
|
1836
|
+
const ApplicationFormGrantSupport = UniBlock(({ className, title, button, regionSource, ...rest }) => {
|
|
1837
|
+
const [region, setRegion] = useState({ key: '' });
|
|
1838
|
+
const regions = regionSource?.regions ?? [];
|
|
1839
|
+
const buttonStyle = getRegularButtonClasses({
|
|
1840
|
+
className: 'text-white',
|
|
1841
|
+
version: button?.version || 'primary',
|
|
1842
|
+
});
|
|
1843
|
+
const regionHref = regions?.find((_) => _.name === region.key)?.href;
|
|
1844
|
+
const buttonText = button?.text ? button.text : 'Перейти';
|
|
1845
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px] space-y-m", children: [title ? jsx(Heading, { headingType: "h3", title: title, className: "@xl:text-center" }) : null, regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name, text: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(LinkButton, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), children: buttonText }) })) : null] }) }));
|
|
1846
|
+
});
|
|
1847
|
+
|
|
1852
1848
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
1853
1849
|
|
|
1854
1850
|
const SlideCheckboxGroup = JSX(({ value, onChange, items = [], multiple }) => {
|
|
@@ -5866,6 +5862,7 @@
|
|
|
5866
5862
|
AdTile,
|
|
5867
5863
|
ApplicationForm,
|
|
5868
5864
|
ApplicationFormCustom,
|
|
5865
|
+
ApplicationFormGrantSupport,
|
|
5869
5866
|
BankAccountFiltration,
|
|
5870
5867
|
BenefitsBlock,
|
|
5871
5868
|
BonusBenefitsBlock,
|
|
@@ -6138,7 +6135,7 @@
|
|
|
6138
6135
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6139
6136
|
});
|
|
6140
6137
|
|
|
6141
|
-
const packageVersion = "0.14.
|
|
6138
|
+
const packageVersion = "0.14.258";
|
|
6142
6139
|
|
|
6143
6140
|
exports.Blocks = Blocks;
|
|
6144
6141
|
exports.ContentPage = ContentPage;
|