@redneckz/wildless-cms-uni-blocks 0.8.17 → 0.8.19
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/CorporateLeadAPI.d.ts +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +135 -66
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/bundle/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/bundle/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/bundle/components/Video/VideoContent.d.ts +19 -4
- package/bundle/hooks/useLink.d.ts +1 -3
- package/bundle/model/PreventableEvent.d.ts +3 -0
- package/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +0 -2
- package/bundle/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +2 -7
- package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -1
- package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +12 -3
- package/bundle/ui-kit/SwipeListControl/getContainerHeight.d.ts +4 -0
- package/dist/api/CorporateLeadAPI.d.ts +1 -1
- package/dist/api/CorporateLeadAPI.js +1 -1
- package/dist/api/CorporateLeadAPI.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +6 -3
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +21 -13
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/dist/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/dist/components/ApplicationForm/CreditParameters.js +9 -0
- package/dist/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/dist/components/ApplicationForm/acquiringTypes.js +0 -5
- package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/dist/components/ApplicationForm/renderBankOffices.js +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js +10 -12
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/dist/components/ApplicationForm/renderInputRange.js +8 -0
- package/dist/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/dist/components/ApplicationForm/renderSelects.js +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/dist/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/dist/components/ApplicationForm/useFormHandlers.js +1 -6
- package/dist/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/dist/components/Video/Video.js +2 -2
- package/dist/components/Video/Video.js.map +1 -1
- package/dist/components/Video/VideoContent.d.ts +19 -4
- package/dist/hooks/useLink.d.ts +1 -3
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/model/PreventableEvent.d.ts +3 -0
- package/dist/model/PreventableEvent.js +2 -0
- package/dist/model/PreventableEvent.js.map +1 -0
- package/dist/ui-kit/LinkButton/LinkButton.js +4 -4
- package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +0 -2
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +4 -8
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +2 -7
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +12 -3
- package/dist/ui-kit/SwipeListControl/getContainerHeight.d.ts +4 -0
- package/dist/ui-kit/SwipeListControl/getContainerHeight.js +13 -0
- package/dist/ui-kit/SwipeListControl/getContainerHeight.js.map +1 -0
- package/lib/api/CorporateLeadAPI.d.ts +1 -1
- package/lib/api/CorporateLeadAPI.js +1 -1
- package/lib/api/CorporateLeadAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +0 -2
- package/lib/components/ApplicationForm/ApplicationForm.js +6 -3
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +18 -10
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/lib/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/lib/components/ApplicationForm/CreditParameters.js +7 -0
- package/lib/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/lib/components/ApplicationForm/acquiringTypes.js +0 -5
- package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/lib/components/ApplicationForm/renderBankOffices.js +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js +3 -5
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/lib/components/ApplicationForm/renderInputRange.js +5 -0
- package/lib/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/lib/components/ApplicationForm/renderSelects.js +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/lib/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/lib/components/ApplicationForm/useFormHandlers.js +1 -6
- package/lib/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/lib/components/Video/Video.js +2 -2
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoContent.d.ts +19 -4
- package/lib/hooks/useLink.d.ts +1 -3
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/model/PreventableEvent.d.ts +3 -0
- package/lib/model/PreventableEvent.js +2 -0
- package/lib/model/PreventableEvent.js.map +1 -0
- package/lib/ui-kit/LinkButton/LinkButton.js +4 -4
- package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +0 -2
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +4 -8
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +2 -7
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +12 -3
- package/lib/ui-kit/SwipeListControl/getContainerHeight.d.ts +4 -0
- package/lib/ui-kit/SwipeListControl/getContainerHeight.js +10 -0
- package/lib/ui-kit/SwipeListControl/getContainerHeight.js.map +1 -0
- package/mobile/bundle/api/CorporateLeadAPI.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +16 -11
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/mobile/bundle/components/Video/VideoContent.d.ts +19 -4
- package/mobile/bundle/hooks/useLink.d.ts +1 -3
- package/mobile/bundle/model/PreventableEvent.d.ts +3 -0
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +0 -2
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +2 -7
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -1
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +12 -3
- package/mobile/bundle/ui-kit/SwipeListControl/getContainerHeight.d.ts +4 -0
- package/mobile/dist/api/CorporateLeadAPI.d.ts +1 -1
- package/mobile/dist/api/CorporateLeadAPI.js +1 -1
- package/mobile/dist/api/CorporateLeadAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +6 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +21 -13
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/CreditParameters.js +9 -0
- package/mobile/dist/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js +0 -5
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +10 -12
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderInputRange.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSelects.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js +1 -6
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/dist/components/Video/Video.js +2 -2
- package/mobile/dist/components/Video/Video.js.map +1 -1
- package/mobile/dist/components/Video/VideoContent.d.ts +19 -4
- package/mobile/dist/hooks/useLink.d.ts +1 -3
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/model/PreventableEvent.d.ts +3 -0
- package/mobile/dist/model/PreventableEvent.js +2 -0
- package/mobile/dist/model/PreventableEvent.js.map +1 -0
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js +4 -4
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +0 -2
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +4 -8
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +2 -7
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +12 -3
- package/mobile/dist/ui-kit/SwipeListControl/getContainerHeight.d.ts +4 -0
- package/mobile/dist/ui-kit/SwipeListControl/getContainerHeight.js +13 -0
- package/mobile/dist/ui-kit/SwipeListControl/getContainerHeight.js.map +1 -0
- package/mobile/lib/api/CorporateLeadAPI.d.ts +1 -1
- package/mobile/lib/api/CorporateLeadAPI.js +1 -1
- package/mobile/lib/api/CorporateLeadAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +6 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +18 -10
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/CreditParameters.js +7 -0
- package/mobile/lib/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js +0 -5
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +3 -5
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderInputRange.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSelects.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js +1 -6
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/lib/components/Video/Video.js +2 -2
- package/mobile/lib/components/Video/Video.js.map +1 -1
- package/mobile/lib/components/Video/VideoContent.d.ts +19 -4
- package/mobile/lib/hooks/useLink.d.ts +1 -3
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/model/PreventableEvent.d.ts +3 -0
- package/mobile/lib/model/PreventableEvent.js +2 -0
- package/mobile/lib/model/PreventableEvent.js.map +1 -0
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js +4 -4
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +0 -2
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +4 -8
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +2 -7
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +12 -3
- package/mobile/lib/ui-kit/SwipeListControl/getContainerHeight.d.ts +4 -0
- package/mobile/lib/ui-kit/SwipeListControl/getContainerHeight.js +10 -0
- package/mobile/lib/ui-kit/SwipeListControl/getContainerHeight.js.map +1 -0
- package/mobile/src/api/CorporateLeadAPI.ts +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +8 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +20 -5
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +20 -7
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +16 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +23 -12
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +15 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +18 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
- package/mobile/src/components/ApplicationForm/CreditParameters.ts +7 -0
- package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +1 -1
- package/mobile/src/components/ApplicationForm/acquiringTypes.ts +0 -5
- package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +3 -22
- package/mobile/src/components/ApplicationForm/renderInputRange.tsx +20 -0
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderSelects.tsx +2 -2
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
- package/mobile/src/components/ApplicationForm/useFormHandlers.ts +1 -15
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/mobile/src/components/CarouselLinks/CarouselLinks.ui.json +8 -0
- package/mobile/src/components/Video/Video.example.json +5 -0
- package/mobile/src/components/Video/Video.tsx +4 -4
- package/mobile/src/components/Video/Video.ui.json +1 -1
- package/mobile/src/components/Video/VideoContent.ts +19 -4
- package/mobile/src/hooks/useLink.ts +1 -4
- package/mobile/src/model/PreventableEvent.ts +3 -0
- package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +7 -7
- package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +4 -10
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlContent.ts +2 -8
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +14 -3
- package/mobile/src/ui-kit/SwipeListControl/getContainerHeight.ts +10 -0
- package/package.json +1 -1
- package/src/api/CorporateLeadAPI.ts +2 -2
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +8 -4
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +20 -5
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +20 -7
- package/src/components/ApplicationForm/ApplicationFormContent.ts +16 -4
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +23 -12
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +15 -4
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +18 -4
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
- package/src/components/ApplicationForm/CreditParameters.ts +7 -0
- package/src/components/ApplicationForm/WrapperSelect.tsx +1 -1
- package/src/components/ApplicationForm/acquiringTypes.ts +0 -5
- package/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
- package/src/components/ApplicationForm/renderCreditParameters.tsx +3 -22
- package/src/components/ApplicationForm/renderInputRange.tsx +20 -0
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -3
- package/src/components/ApplicationForm/renderSelects.tsx +2 -2
- package/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
- package/src/components/ApplicationForm/useFormHandlers.ts +1 -15
- package/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/src/components/CarouselLinks/CarouselLinks.ui.json +8 -0
- package/src/components/Video/Video.example.json +5 -0
- package/src/components/Video/Video.fixture.tsx +1 -1
- package/src/components/Video/Video.tsx +4 -4
- package/src/components/Video/Video.ui.json +1 -1
- package/src/components/Video/VideoContent.ts +19 -4
- package/src/hooks/useLink.ts +1 -4
- package/src/model/PreventableEvent.ts +3 -0
- package/src/ui-kit/LinkButton/LinkButton.tsx +7 -7
- package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +4 -10
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +2 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlContent.ts +2 -8
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +14 -3
- package/src/ui-kit/SwipeListControl/getContainerHeight.ts +10 -0
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
1
|
+
import type { CreditFormState } from './ApplicationFormCredit';
|
|
3
2
|
import {
|
|
4
|
-
CreditFormState,
|
|
5
3
|
ITEMS_CREDIT_AMOUNT,
|
|
6
4
|
ITEMS_CREDIT_TERM,
|
|
7
5
|
MAX_CREDIT_AMOUNT,
|
|
8
6
|
MAX_CREDIT_TERM,
|
|
9
7
|
MIN_CREDIT_AMOUNT,
|
|
10
8
|
MIN_CREDIT_TERM,
|
|
11
|
-
} from './
|
|
9
|
+
} from './CreditParameters';
|
|
12
10
|
import type { HandleFormStateChange } from './models';
|
|
11
|
+
import { renderInputRange } from './renderInputRange';
|
|
13
12
|
|
|
14
13
|
interface RenderCreditParametersProps {
|
|
15
14
|
amount: number;
|
|
@@ -41,21 +40,3 @@ export const renderCreditParameters = ({
|
|
|
41
40
|
})}
|
|
42
41
|
</div>
|
|
43
42
|
);
|
|
44
|
-
|
|
45
|
-
interface RenderInputRangeProps {
|
|
46
|
-
label: string;
|
|
47
|
-
value: number;
|
|
48
|
-
onChange: (value: number) => void;
|
|
49
|
-
min: number;
|
|
50
|
-
max: number;
|
|
51
|
-
items: string[];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const renderInputRange = (props: RenderInputRangeProps) => (
|
|
55
|
-
<div className="w-1/2">
|
|
56
|
-
<label>
|
|
57
|
-
<Text size="text-m-light">{props.label}</Text>
|
|
58
|
-
</label>
|
|
59
|
-
<InputRange {...props} />
|
|
60
|
-
</div>
|
|
61
|
-
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InputRange } from '../../ui-kit/InputRange/InputRange';
|
|
2
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
3
|
+
|
|
4
|
+
interface RenderInputRangeProps {
|
|
5
|
+
label: string;
|
|
6
|
+
value: number;
|
|
7
|
+
onChange: (value: number) => void;
|
|
8
|
+
min: number;
|
|
9
|
+
max: number;
|
|
10
|
+
items: string[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const renderInputRange = (props: RenderInputRangeProps) => (
|
|
14
|
+
<div className="w-1/2">
|
|
15
|
+
<label>
|
|
16
|
+
<Text size="text-m-light">{props.label}</Text>
|
|
17
|
+
</label>
|
|
18
|
+
<InputRange {...props} />
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
2
|
-
import { WedFormState } from './ApplicationFormWed';
|
|
3
|
-
import { HandleFormStateChange } from './models';
|
|
2
|
+
import type { WedFormState } from './ApplicationFormWed';
|
|
3
|
+
import type { HandleFormStateChange } from './models';
|
|
4
4
|
|
|
5
5
|
interface RenderQuestionsInterestedProps {
|
|
6
6
|
currencyControl: boolean;
|
|
@@ -37,7 +37,7 @@ export const renderQuestionsInterested = ({
|
|
|
37
37
|
</div>
|
|
38
38
|
<textarea
|
|
39
39
|
placeholder="Укажите интересующий Вас вопрос, место ведения бизнеса и удобное время для телефонного звонка"
|
|
40
|
-
className="block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:
|
|
40
|
+
className="block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text"
|
|
41
41
|
value={text}
|
|
42
42
|
onChange={(e) => handleChange({ text: e.target.value })}
|
|
43
43
|
/>
|
|
@@ -15,7 +15,7 @@ export const renderSelects = ({ acquiringType, regions, region, handleChange }:
|
|
|
15
15
|
<div className="w-1/2">
|
|
16
16
|
<WrapperSelect
|
|
17
17
|
data={ACQUIRING_TYPES}
|
|
18
|
-
fieldValue="
|
|
18
|
+
fieldValue="name"
|
|
19
19
|
fieldLabel="name"
|
|
20
20
|
selected={acquiringType}
|
|
21
21
|
setSelected={(value) => handleChange({ acquiringType: value })}
|
|
@@ -26,7 +26,7 @@ export const renderSelects = ({ acquiringType, regions, region, handleChange }:
|
|
|
26
26
|
<div className="w-1/2">
|
|
27
27
|
<WrapperSelect
|
|
28
28
|
data={regions}
|
|
29
|
-
fieldValue="
|
|
29
|
+
fieldValue="name"
|
|
30
30
|
fieldLabel="name"
|
|
31
31
|
selected={region}
|
|
32
32
|
setSelected={(value) => handleChange({ region: value })}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
2
1
|
import { getRegularButtonClasses } from '../../ui-kit/Button/getRegularButtonClasses';
|
|
2
|
+
import type { ButtonProps } from './ApplicationFormContent';
|
|
3
3
|
|
|
4
4
|
export const renderSubmitButton = (button?: ButtonProps, className?: string) => {
|
|
5
5
|
const buttonStyle = getRegularButtonClasses({
|
|
@@ -3,30 +3,16 @@ import { Dispatch, SetStateAction } from 'react';
|
|
|
3
3
|
import type { HandleFormStateChange } from './models';
|
|
4
4
|
|
|
5
5
|
interface UseFormHandlersProps<T> {
|
|
6
|
-
formState: Partial<T>;
|
|
7
|
-
handleSubmit: (data: Partial<T>) => void;
|
|
8
6
|
setFormState: Dispatch<SetStateAction<T>>;
|
|
9
|
-
typeForm: string;
|
|
10
7
|
}
|
|
11
8
|
|
|
12
|
-
export const useFormHandlers = <T>({
|
|
13
|
-
formState,
|
|
14
|
-
handleSubmit,
|
|
15
|
-
setFormState,
|
|
16
|
-
typeForm,
|
|
17
|
-
}: UseFormHandlersProps<T>) => {
|
|
9
|
+
export const useFormHandlers = <T>({ setFormState }: UseFormHandlersProps<T>) => {
|
|
18
10
|
const handleChange: HandleFormStateChange<T> = useCallback(
|
|
19
11
|
(state) => setFormState((oldState) => ({ ...oldState, ...state })),
|
|
20
12
|
[],
|
|
21
13
|
);
|
|
22
14
|
|
|
23
|
-
const onSubmit = useCallback(async (e: React.FormEvent<HTMLFormElement>) => {
|
|
24
|
-
e.preventDefault();
|
|
25
|
-
handleSubmit && (await handleSubmit({ ...formState, typeForm }));
|
|
26
|
-
}, []);
|
|
27
|
-
|
|
28
15
|
return {
|
|
29
16
|
handleChange,
|
|
30
|
-
onSubmit,
|
|
31
17
|
};
|
|
32
18
|
};
|
|
@@ -10,7 +10,7 @@ import type { CarouselLinksContent } from './CarouselLinksContent';
|
|
|
10
10
|
|
|
11
11
|
export interface CarouselLinksProps extends CarouselLinksContent, UniBlockProps {}
|
|
12
12
|
|
|
13
|
-
const MAX_LINKS_COUNT =
|
|
13
|
+
const MAX_LINKS_COUNT = 10;
|
|
14
14
|
|
|
15
15
|
export const CarouselLinks = JSX<CarouselLinksProps>(
|
|
16
16
|
({
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useRouter } from '../../hooks/useRouter';
|
|
3
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
4
|
import { adjustHref } from '../../utils/adjustHref';
|
|
6
5
|
import { style } from '../../utils/style';
|
|
7
6
|
import { Headline } from '../Headline/Headline';
|
|
8
7
|
import { getPaddings } from './getPaddings';
|
|
8
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
9
9
|
import type { VideoContent } from './VideoContent';
|
|
10
10
|
|
|
11
11
|
interface VideoProps extends VideoContent, UniBlockProps {}
|
|
12
12
|
|
|
13
|
-
export const Video = JSX<VideoProps>(({ className, title,
|
|
13
|
+
export const Video = JSX<VideoProps>(({ className, title, url, previewImg, ...rest }) => {
|
|
14
14
|
const router = useRouter();
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
17
|
<BlockWrapper className={style(getPaddings(className), className)} {...rest}>
|
|
18
18
|
<Headline title={title} headlineVersion="M" />
|
|
19
|
-
{
|
|
19
|
+
{url ? (
|
|
20
20
|
<video
|
|
21
21
|
className="m-auto w-full object-fill"
|
|
22
22
|
preload="metadata"
|
|
@@ -24,7 +24,7 @@ export const Video = JSX<VideoProps>(({ className, title, src, previewImg, ...re
|
|
|
24
24
|
style={{ maxHeight: 524 }}
|
|
25
25
|
controls
|
|
26
26
|
>
|
|
27
|
-
<source src={adjustHref(router)(
|
|
27
|
+
<source src={adjustHref(router)(url)} />
|
|
28
28
|
</video>
|
|
29
29
|
) : null}
|
|
30
30
|
</BlockWrapper>
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import type { TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
3
|
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @title Блок Видео
|
|
6
|
+
* @default {
|
|
7
|
+
* "title": "Заголовок блока"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
5
10
|
export interface VideoContent extends TitleProps {
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @title Ссылка на видео
|
|
13
|
+
*/
|
|
14
|
+
url?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @title Заставка в блоке
|
|
17
|
+
* @default {
|
|
18
|
+
* "format": "webp",
|
|
19
|
+
* "size": {
|
|
20
|
+
* "width": 1004
|
|
21
|
+
* },
|
|
22
|
+
* }
|
|
23
|
+
*/
|
|
9
24
|
previewImg?: Picture;
|
|
10
25
|
}
|
package/src/hooks/useLink.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import type { LinkProps } from '../model/LinkProps';
|
|
2
|
+
import type { PreventableEvent } from '../model/PreventableEvent';
|
|
2
3
|
import { adjustHref } from '../utils/adjustHref';
|
|
3
4
|
import { isLocalURL } from '../utils/url';
|
|
4
5
|
import { handlerDecorator } from './handlerDecorator';
|
|
5
6
|
import { useRouter } from './useRouter';
|
|
6
7
|
|
|
7
|
-
interface PreventableEvent {
|
|
8
|
-
preventDefault: () => void;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
8
|
interface Clickable {
|
|
12
9
|
onClick(ev?: PreventableEvent): void;
|
|
13
10
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { LinkProps } from '../../model/LinkProps';
|
|
3
2
|
import { Img } from '../Img/Img';
|
|
3
|
+
import { useLink } from '../../hooks/useLink';
|
|
4
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
4
5
|
|
|
5
6
|
const LINK_CLASS_NAME = `absolute border border-primary-main ml-3 px-6 py-5
|
|
6
7
|
text-l-light bg-white text-primary-text flex w-[316px]
|
|
@@ -15,13 +16,12 @@ export type LinkButtonProps = LinkProps & {
|
|
|
15
16
|
|
|
16
17
|
export const LinkButton = JSX<LinkButtonProps>(
|
|
17
18
|
({ text, href = '', target = '', className = '' }) => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
19
|
+
const link = useLink();
|
|
20
|
+
const adjustedProps = link({ href, target });
|
|
21
21
|
|
|
22
|
-
return (
|
|
22
|
+
return text ? (
|
|
23
23
|
<div className={`relative group/link cursor-pointer w-[328px] h-[82px] ${className}`}>
|
|
24
|
-
<a className={LINK_CLASS_NAME} role="link"
|
|
24
|
+
<a className={LINK_CLASS_NAME} role="link" {...adjustedProps}>
|
|
25
25
|
<div className="p-0.5">{text}</div>
|
|
26
26
|
<div className="w-6 h-6">
|
|
27
27
|
<Img
|
|
@@ -37,6 +37,6 @@ export const LinkButton = JSX<LinkButtonProps>(
|
|
|
37
37
|
<div className={`${LINK_BORDER_CLASS_NAME} mx-1.5 mt-1.5`} />
|
|
38
38
|
<div className={`${LINK_BORDER_CLASS_NAME} mt-3 mr-3`} />
|
|
39
39
|
</div>
|
|
40
|
-
);
|
|
40
|
+
) : null;
|
|
41
41
|
},
|
|
42
42
|
);
|
|
@@ -3,7 +3,7 @@ import { useCallback, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
3
3
|
import type { IntersectionObserverOptions } from '../../hooks/useIntersectionObserver';
|
|
4
4
|
import { mapChildren } from '../../utils/mapChildren';
|
|
5
5
|
import { style } from '../../utils/style';
|
|
6
|
-
import
|
|
6
|
+
import { getContainerHeight } from './getContainerHeight';
|
|
7
7
|
import type { SwipeContainerProps } from './SwipeListControlProps';
|
|
8
8
|
import { SwipeListItem } from './SwipeListItem';
|
|
9
9
|
|
|
@@ -22,13 +22,10 @@ interface SwipeListContainerProps extends SwipeContainerProps {
|
|
|
22
22
|
snapAlign?: 'snap-start' | 'snap-center' | 'snap-end';
|
|
23
23
|
onVisibleItemsChange?: (itemsVisibilityList: ItemsVisibilityList) => void;
|
|
24
24
|
onVisibleIndicesChange?: (indices: number[]) => void;
|
|
25
|
-
listType?: SwipeListControlType;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]', 'min-w-[25%]'];
|
|
29
28
|
|
|
30
|
-
const DEFAULT_HEIGHT = '866px';
|
|
31
|
-
|
|
32
29
|
export const SwipeListContainer = JSX<SwipeListContainerProps>(
|
|
33
30
|
({
|
|
34
31
|
className = '',
|
|
@@ -39,6 +36,7 @@ export const SwipeListContainer = JSX<SwipeListContainerProps>(
|
|
|
39
36
|
padding = 0,
|
|
40
37
|
listType = 'horizontal-list',
|
|
41
38
|
snapAlign = 'snap-center',
|
|
39
|
+
minHeight,
|
|
42
40
|
children,
|
|
43
41
|
onVisibleItemsChange,
|
|
44
42
|
onVisibleIndicesChange,
|
|
@@ -67,13 +65,9 @@ export const SwipeListContainer = JSX<SwipeListContainerProps>(
|
|
|
67
65
|
const isHorizontalList = listType === 'horizontal-list';
|
|
68
66
|
const containerStyle = {
|
|
69
67
|
...(isHorizontalList ? getContainerOffset(padding, additionPadding) : {}),
|
|
70
|
-
...(isVerticalList ?
|
|
68
|
+
...(isVerticalList ? getContainerHeight(minHeight) : {}),
|
|
71
69
|
gap: `${gap}px`,
|
|
72
70
|
};
|
|
73
|
-
const itemContainerStyle = {
|
|
74
|
-
...(isHorizontalList ? getContainerOffset(padding / 4) : {}),
|
|
75
|
-
maxHeight: DEFAULT_HEIGHT,
|
|
76
|
-
};
|
|
77
71
|
|
|
78
72
|
return (
|
|
79
73
|
<div
|
|
@@ -90,7 +84,7 @@ export const SwipeListContainer = JSX<SwipeListContainerProps>(
|
|
|
90
84
|
visibleItemCount ? childStyleMap[visibleItemCount - 1] : '',
|
|
91
85
|
isVerticalList ? 'h-full' : '',
|
|
92
86
|
)}
|
|
93
|
-
style={
|
|
87
|
+
style={isHorizontalList ? getContainerOffset(padding / 4) : {}}
|
|
94
88
|
activeIndex={activeIndex}
|
|
95
89
|
idx={idx}
|
|
96
90
|
observerOptions={observerOptions}
|
|
@@ -20,6 +20,7 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
|
20
20
|
gap = DEFAULT_GAP,
|
|
21
21
|
padding = DEFAULT_PADDING,
|
|
22
22
|
showDots = true,
|
|
23
|
+
minHeight,
|
|
23
24
|
children,
|
|
24
25
|
onVisibleIndicesChange,
|
|
25
26
|
listType = 'horizontal-list',
|
|
@@ -42,6 +43,7 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
|
42
43
|
padding={padding}
|
|
43
44
|
onVisibleIndicesChange={scroll.handleVisibleIndicesChange}
|
|
44
45
|
listType={listType}
|
|
46
|
+
minHeight={minHeight}
|
|
45
47
|
>
|
|
46
48
|
{children}
|
|
47
49
|
</SwipeListContainer>
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @title Вид
|
|
5
|
-
* @enumNames ["Горизонтальный", "Вертикальный"]
|
|
6
|
-
*/
|
|
7
|
-
export type SwipeListControlType = 'horizontal-list' | 'vertical-list';
|
|
2
|
+
import type { SwipeContainerProps } from './SwipeListControlProps';
|
|
8
3
|
|
|
9
4
|
/**
|
|
10
5
|
* @title Swipe-контроллер
|
|
11
6
|
*/
|
|
12
|
-
export interface SwipeListControlContent {
|
|
7
|
+
export interface SwipeListControlContent extends SwipeContainerProps {
|
|
13
8
|
/** @title Точки-индикаторы */
|
|
14
9
|
showDots?: boolean;
|
|
15
|
-
listType?: SwipeListControlType;
|
|
16
10
|
version?: BlockVersion;
|
|
17
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { SwipeListControlType } from './
|
|
2
|
+
import type { SwipeListControlType } from './SwipeListControlProps';
|
|
3
3
|
|
|
4
4
|
const containerStyles: Record<SwipeListControlType, string> = {
|
|
5
5
|
'horizontal-list': 'mx-auto mt-5 w-fit',
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import type { SwipeListControlContent } from './SwipeListControlContent';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @title
|
|
4
|
+
* @title Вид
|
|
5
|
+
* @enumNames ["Горизонтальный", "Вертикальный"]
|
|
5
6
|
*/
|
|
7
|
+
export type SwipeListControlType = 'horizontal-list' | 'vertical-list';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @title Минимальная высота
|
|
11
|
+
* @enumNames ['Стандартная', 'Маленькая']
|
|
12
|
+
*/
|
|
13
|
+
export type ContainerMinHeight = 866 | 720;
|
|
14
|
+
|
|
6
15
|
export interface SwipeContainerProps {
|
|
7
|
-
/** @
|
|
16
|
+
/** @hidden */
|
|
8
17
|
gap?: number;
|
|
9
|
-
/** @
|
|
18
|
+
/** @hidden */
|
|
10
19
|
padding?: number;
|
|
20
|
+
listType?: SwipeListControlType;
|
|
21
|
+
minHeight?: ContainerMinHeight;
|
|
11
22
|
}
|
|
12
23
|
|
|
13
24
|
/**
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const HEADER_HEIGHT = 170;
|
|
2
|
+
const FOOTER_HEIGHT = 48;
|
|
3
|
+
const BLOCKS_GAP = 4;
|
|
4
|
+
const PAGE_PADDINGS_X = 20;
|
|
5
|
+
const DEFAULT_HEIGHT = 866;
|
|
6
|
+
|
|
7
|
+
export const getContainerHeight = (minHeight?: number) => ({
|
|
8
|
+
height: `calc(100vh - ${HEADER_HEIGHT + FOOTER_HEIGHT + BLOCKS_GAP + PAGE_PADDINGS_X}px)`,
|
|
9
|
+
minHeight: `${minHeight || DEFAULT_HEIGHT}px`,
|
|
10
|
+
});
|