@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,22 +1,17 @@
|
|
|
1
1
|
export const ACQUIRING_TYPES = [
|
|
2
2
|
{
|
|
3
|
-
code: '1',
|
|
4
3
|
name: 'Торговый эквайринг',
|
|
5
4
|
},
|
|
6
5
|
{
|
|
7
|
-
code: '2',
|
|
8
6
|
name: 'Мобильный эквайринг',
|
|
9
7
|
},
|
|
10
8
|
{
|
|
11
|
-
code: '3',
|
|
12
9
|
name: 'Интернет-эквайринг',
|
|
13
10
|
},
|
|
14
11
|
{
|
|
15
|
-
code: '4',
|
|
16
12
|
name: 'QR-эквайринг (СБП)',
|
|
17
13
|
},
|
|
18
14
|
{
|
|
19
|
-
code: '5',
|
|
20
15
|
name: 'Все виды эквайринга',
|
|
21
16
|
},
|
|
22
17
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acquiringTypes.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/acquiringTypes.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAa;IACvC;QACE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"acquiringTypes.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/acquiringTypes.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAa;IACvC;QACE,IAAI,EAAE,oBAAoB;KAC3B;IACD;QACE,IAAI,EAAE,qBAAqB;KAC5B;IACD;QACE,IAAI,EAAE,oBAAoB;KAC3B;IACD;QACE,IAAI,EAAE,oBAAoB;KAC3B;IACD;QACE,IAAI,EAAE,qBAAqB;KAC5B;CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { WrapperSelect } from './WrapperSelect.js';
|
|
3
|
-
export const renderBankOffices = ({ regions, region, branches, department, handleChange, }) => (_jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [_jsx("div", { className: "w-1/2", children: _jsx(WrapperSelect, { data: regions, fieldValue: "
|
|
3
|
+
export const renderBankOffices = ({ regions, region, branches, department, handleChange, }) => (_jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [_jsx("div", { className: "w-1/2", children: _jsx(WrapperSelect, { data: regions, fieldValue: "name", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D" }) }), _jsx("div", { className: "w-1/2", children: _jsx(WrapperSelect, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: department, setSelected: (value) => handleChange({ department: value }), label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441" }) })] }));
|
|
4
4
|
//# sourceMappingURL=renderBankOffices.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CreditFormState } from './ApplicationFormCredit';
|
|
2
|
+
import type { CreditFormState } from './ApplicationFormCredit';
|
|
3
3
|
import type { HandleFormStateChange } from './models';
|
|
4
4
|
interface RenderCreditParametersProps {
|
|
5
5
|
amount: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { jsxs as _jsxs
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ITEMS_CREDIT_AMOUNT, ITEMS_CREDIT_TERM, MAX_CREDIT_AMOUNT, MAX_CREDIT_TERM, MIN_CREDIT_AMOUNT, MIN_CREDIT_TERM, } from './ApplicationFormCredit.js';
|
|
1
|
+
import { jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { ITEMS_CREDIT_AMOUNT, ITEMS_CREDIT_TERM, MAX_CREDIT_AMOUNT, MAX_CREDIT_TERM, MIN_CREDIT_AMOUNT, MIN_CREDIT_TERM, } from './CreditParameters.js';
|
|
3
|
+
import { renderInputRange } from './renderInputRange.js';
|
|
5
4
|
export const renderCreditParameters = ({ amount, term, handleChange, }) => (_jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [renderInputRange({
|
|
6
5
|
label: 'Сумма кредита, ₽',
|
|
7
6
|
value: amount,
|
|
@@ -17,5 +16,4 @@ export const renderCreditParameters = ({ amount, term, handleChange, }) => (_jsx
|
|
|
17
16
|
max: MAX_CREDIT_TERM,
|
|
18
17
|
items: ITEMS_CREDIT_TERM,
|
|
19
18
|
})] }));
|
|
20
|
-
const renderInputRange = (props) => (_jsxs("div", { className: "w-1/2", children: [_jsx("label", { children: _jsx(Text, { size: "text-m-light", children: props.label }) }), _jsx(InputRange, { ...props })] }));
|
|
21
19
|
//# sourceMappingURL=renderCreditParameters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderCreditParameters.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderCreditParameters.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"renderCreditParameters.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderCreditParameters.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACrC,MAAM,EACN,IAAI,EACJ,YAAY,GACgB,EAAE,EAAE,CAAC,CACjC,eAAK,SAAS,EAAC,iCAAiC,aAC7C,gBAAgB,CAAC;YAChB,KAAK,EAAE,kBAAkB;YACzB,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;YACpD,GAAG,EAAE,iBAAiB;YACtB,GAAG,EAAE,iBAAiB;YACtB,KAAK,EAAE,mBAAmB;SAC3B,CAAC,EACD,gBAAgB,CAAC;YAChB,KAAK,EAAE,uBAAuB;YAC9B,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;YAClD,GAAG,EAAE,eAAe;YACpB,GAAG,EAAE,eAAe;YACpB,KAAK,EAAE,iBAAiB;SACzB,CAAC,IACE,CACP,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RenderInputRangeProps {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number;
|
|
5
|
+
onChange: (value: number) => void;
|
|
6
|
+
min: number;
|
|
7
|
+
max: number;
|
|
8
|
+
items: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare const renderInputRange: (props: RenderInputRangeProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { InputRange } from '../../ui-kit/InputRange/InputRange.js';
|
|
3
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
4
|
+
export const renderInputRange = (props) => (_jsxs("div", { className: "w-1/2", children: [_jsx("label", { children: _jsx(Text, { size: "text-m-light", children: props.label }) }), _jsx(InputRange, { ...props })] }));
|
|
5
|
+
//# sourceMappingURL=renderInputRange.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderInputRange.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderInputRange.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAW9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE,CAAC,CAChE,eAAK,SAAS,EAAC,OAAO,aACpB,0BACE,KAAC,IAAI,IAAC,IAAI,EAAC,cAAc,YAAE,KAAK,CAAC,KAAK,GAAQ,GACxC,EACR,KAAC,UAAU,OAAK,KAAK,GAAI,IACrB,CACP,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WedFormState } from './ApplicationFormWed';
|
|
3
|
-
import { HandleFormStateChange } from './models';
|
|
2
|
+
import type { WedFormState } from './ApplicationFormWed';
|
|
3
|
+
import type { HandleFormStateChange } from './models';
|
|
4
4
|
interface RenderQuestionsInterestedProps {
|
|
5
5
|
currencyControl: boolean;
|
|
6
6
|
documentaryOperations: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox.js';
|
|
3
|
-
export const renderQuestionsInterested = ({ currencyControl, documentaryOperations, conversionOperations, text, handleChange, }) => (_jsxs("div", { className: "mb-6", children: [_jsxs("div", { className: "flex items-center mb-4 gap-6", children: [_jsx(Checkbox, { text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", checked: currencyControl, onChange: (value) => handleChange({ currencyControl: value }) }), _jsx(Checkbox, { text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: documentaryOperations, onChange: (value) => handleChange({ documentaryOperations: value }) }), _jsx(Checkbox, { text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: conversionOperations, onChange: (value) => handleChange({ conversionOperations: value }) })] }), _jsx("textarea", { placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0412\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441, \u043C\u0435\u0441\u0442\u043E \u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0437\u043D\u0435\u0441\u0430 \u0438 \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u043D\u043E\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430", className: "block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:
|
|
3
|
+
export const renderQuestionsInterested = ({ currencyControl, documentaryOperations, conversionOperations, text, handleChange, }) => (_jsxs("div", { className: "mb-6", children: [_jsxs("div", { className: "flex items-center mb-4 gap-6", children: [_jsx(Checkbox, { text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", checked: currencyControl, onChange: (value) => handleChange({ currencyControl: value }) }), _jsx(Checkbox, { text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: documentaryOperations, onChange: (value) => handleChange({ documentaryOperations: value }) }), _jsx(Checkbox, { text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: conversionOperations, onChange: (value) => handleChange({ conversionOperations: value }) })] }), _jsx("textarea", { placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0412\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441, \u043C\u0435\u0441\u0442\u043E \u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0437\u043D\u0435\u0441\u0430 \u0438 \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u043D\u043E\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430", 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", value: text, onChange: (e) => handleChange({ text: e.target.value }) })] }));
|
|
4
4
|
//# sourceMappingURL=renderQuestionsInterested.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderQuestionsInterested.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderQuestionsInterested.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAY1D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,EACxC,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,IAAI,EACJ,YAAY,GACmB,EAAE,EAAE,CAAC,CACpC,eAAK,SAAS,EAAC,MAAM,aACnB,eAAK,SAAS,EAAC,8BAA8B,aAC3C,KAAC,QAAQ,IACP,IAAI,EAAC,mGAAmB,EACxB,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,GAC7D,EACF,KAAC,QAAQ,IACP,IAAI,EAAC,iIAAwB,EAC7B,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC,GACnE,EACF,KAAC,QAAQ,IACP,IAAI,EAAC,iIAAwB,EAC7B,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAAC,GAClE,IACE,EACN,mBACE,WAAW,EAAC,+eAA+F,EAC3G,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"renderQuestionsInterested.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderQuestionsInterested.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAY1D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,EACxC,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,IAAI,EACJ,YAAY,GACmB,EAAE,EAAE,CAAC,CACpC,eAAK,SAAS,EAAC,MAAM,aACnB,eAAK,SAAS,EAAC,8BAA8B,aAC3C,KAAC,QAAQ,IACP,IAAI,EAAC,mGAAmB,EACxB,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,GAC7D,EACF,KAAC,QAAQ,IACP,IAAI,EAAC,iIAAwB,EAC7B,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC,GACnE,EACF,KAAC,QAAQ,IACP,IAAI,EAAC,iIAAwB,EAC7B,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAAC,GAClE,IACE,EACN,mBACE,WAAW,EAAC,+eAA+F,EAC3G,SAAS,EAAC,kJAAkJ,EAC5J,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,GACvD,IACE,CACP,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { ACQUIRING_TYPES } from './acquiringTypes.js';
|
|
3
3
|
import { WrapperSelect } from './WrapperSelect.js';
|
|
4
|
-
export const renderSelects = ({ acquiringType, regions, region, handleChange }) => (_jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [_jsx("div", { className: "w-1/2", children: _jsx(WrapperSelect, { data: ACQUIRING_TYPES, fieldValue: "
|
|
4
|
+
export const renderSelects = ({ acquiringType, regions, region, handleChange }) => (_jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [_jsx("div", { className: "w-1/2", children: _jsx(WrapperSelect, { data: ACQUIRING_TYPES, fieldValue: "name", fieldLabel: "name", selected: acquiringType, setSelected: (value) => handleChange({ acquiringType: value }), label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433" }) }), _jsx("div", { className: "w-1/2", children: _jsx(WrapperSelect, { data: regions, fieldValue: "name", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441" }) })] }));
|
|
5
5
|
//# sourceMappingURL=renderSelects.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderSubmitButton.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderSubmitButton.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"renderSubmitButton.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderSubmitButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAGtF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAoB,EAAE,SAAkB,EAAE,EAAE;IAC7E,MAAM,WAAW,GAAG,uBAAuB,CAAC;QAC1C,SAAS,EAAE,YAAY;QACvB,OAAO,EAAE,MAAM,EAAE,OAAO;KACzB,CAAC,CAAC;IAEH,OAAO,CACL,iBAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,OAAO,WAAW,IAAI,SAAS,EAAE,YAC/D,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,GACzC,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import type { HandleFormStateChange } from './models';
|
|
3
3
|
interface UseFormHandlersProps<T> {
|
|
4
|
-
formState: Partial<T>;
|
|
5
|
-
handleSubmit: (data: Partial<T>) => void;
|
|
6
4
|
setFormState: Dispatch<SetStateAction<T>>;
|
|
7
|
-
typeForm: string;
|
|
8
5
|
}
|
|
9
|
-
export declare const useFormHandlers: <T>({
|
|
6
|
+
export declare const useFormHandlers: <T>({ setFormState }: UseFormHandlersProps<T>) => {
|
|
10
7
|
handleChange: HandleFormStateChange<T>;
|
|
11
|
-
onSubmit: (e: React.FormEvent<HTMLFormElement>) => Promise<void>;
|
|
12
8
|
};
|
|
13
9
|
export {};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
-
export const useFormHandlers = ({
|
|
2
|
+
export const useFormHandlers = ({ setFormState }) => {
|
|
3
3
|
const handleChange = useCallback((state) => setFormState((oldState) => ({ ...oldState, ...state })), []);
|
|
4
|
-
const onSubmit = useCallback(async (e) => {
|
|
5
|
-
e.preventDefault();
|
|
6
|
-
handleSubmit && (await handleSubmit({ ...formState, typeForm }));
|
|
7
|
-
}, []);
|
|
8
4
|
return {
|
|
9
5
|
handleChange,
|
|
10
|
-
onSubmit,
|
|
11
6
|
};
|
|
12
7
|
};
|
|
13
8
|
//# sourceMappingURL=useFormHandlers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormHandlers.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/useFormHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"useFormHandlers.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/useFormHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAQ1D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAI,EAAE,YAAY,EAA2B,EAAE,EAAE;IAC9E,MAAM,YAAY,GAA6B,WAAW,CACxD,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,EAClE,EAAE,CACH,CAAC;IAEF,OAAO;QACL,YAAY;KACb,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { LinkButton } from '../../ui-kit/LinkButton/LinkButton.js';
|
|
|
5
5
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
6
6
|
import { Carousel } from '../Carousel/Carousel.js';
|
|
7
7
|
import { Headline } from '../Headline/Headline.js';
|
|
8
|
-
const MAX_LINKS_COUNT =
|
|
8
|
+
const MAX_LINKS_COUNT = 10;
|
|
9
9
|
export const CarouselLinks = JSX(({ className = '', additionalDescription, description, links, title, version = 'secondary', ...rest }) => {
|
|
10
10
|
return (_jsxs(BlockWrapper, { className: `flex w-full p-10 overflow-hidden justify-between ${className}`, version: version, ...rest, children: [_jsxs("div", { className: "flex flex-col max-w-96 pr-9 text-white text-xl-light", children: [_jsx(Headline, { className: "p-0", title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (_jsx("div", { className: "pt-6", children: _jsx(Paragraph, { children: additionalDescription }) })) : null] }), links?.length ? renderLinks(links) : null] }));
|
|
11
11
|
});
|
|
@@ -6,8 +6,8 @@ import { adjustHref } from '../../utils/adjustHref.js';
|
|
|
6
6
|
import { style } from '../../utils/style.js';
|
|
7
7
|
import { Headline } from '../Headline/Headline.js';
|
|
8
8
|
import { getPaddings } from './getPaddings.js';
|
|
9
|
-
export const Video = JSX(({ className, title,
|
|
9
|
+
export const Video = JSX(({ className, title, url, previewImg, ...rest }) => {
|
|
10
10
|
const router = useRouter();
|
|
11
|
-
return (_jsxs(BlockWrapper, { className: style(getPaddings(className), className), ...rest, children: [_jsx(Headline, { title: title, headlineVersion: "M" }),
|
|
11
|
+
return (_jsxs(BlockWrapper, { className: style(getPaddings(className), className), ...rest, children: [_jsx(Headline, { title: title, headlineVersion: "M" }), url ? (_jsx("video", { className: "m-auto w-full object-fill", preload: "metadata", poster: adjustHref(router)(previewImg?.src), style: { maxHeight: 524 }, controls: true, children: _jsx("source", { src: adjustHref(router)(url) }) })) : null] }));
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=Video.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Video.js","sourceRoot":"","sources":["../../../src/components/Video/Video.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,C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} from '../../model/HeadlineType';
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* @title Блок Видео
|
|
5
|
+
* @default {
|
|
6
|
+
* "title": "Заголовок блока"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
4
9
|
export interface VideoContent extends TitleProps {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @title Ссылка на видео
|
|
12
|
+
*/
|
|
13
|
+
url?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @title Заставка в блоке
|
|
16
|
+
* @default {
|
|
17
|
+
* "format": "webp",
|
|
18
|
+
* "size": {
|
|
19
|
+
* "width": 1004
|
|
20
|
+
* },
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
8
23
|
previewImg?: Picture;
|
|
9
24
|
}
|
package/lib/hooks/useLink.d.ts
CHANGED
package/lib/hooks/useLink.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAMxC,MAAM,UAAU,OAAO,CAAC,QAAQ,GAAG,KAAK;IACtC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,CAA2C,KAAQ,EAAiB,EAAE,CAAC,CAAC;QAC7E,GAAG,KAAK;QACR,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;QAC5D,YAAY,EAAE,KAAK,CAAC,IAAI;QACxB,OAAO,EAAE,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;KACpD,CAAC,CAAC;IAEH,SAAS,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAkC;QAC3E,OAAO,CAAC,EAAqB,EAAE,EAAE;YAC/B,OAAO,IAAI,OAAO,CAAC,EAAE,CAAC,CAAC;YAEvB,IAAI,CAAC,IAAI,IAAI,QAAQ,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;gBAClD,kBAAkB;gBAClB,OAAO;aACR;YAED,iBAAiB;YACjB,EAAE,EAAE,cAAc,EAAE,CAAC;YACrB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreventableEvent.js","sourceRoot":"","sources":["../../src/model/PreventableEvent.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { Img } from '../Img/Img.js';
|
|
4
|
+
import { useLink } from '../../hooks/useLink.js';
|
|
4
5
|
const LINK_CLASS_NAME = `absolute border border-primary-main ml-3 px-6 py-5
|
|
5
6
|
text-l-light bg-white text-primary-text flex w-[316px]
|
|
6
7
|
justify-between items-center group-hover/link:text-primary-main z-10`;
|
|
7
8
|
const LINK_BORDER_CLASS_NAME = 'bg-transparent border-white border h-[70px] absolute w-[316px] top-0';
|
|
8
9
|
export const LinkButton = JSX(({ text, href = '', target = '', className = '' }) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
return (_jsxs("div", { className: `relative group/link cursor-pointer w-[328px] h-[82px] ${className}`, children: [_jsxs("a", { className: LINK_CLASS_NAME, role: "link", href: href, target: target, children: [_jsx("div", { className: "p-0.5", children: text }), _jsx("div", { className: "w-6 h-6", children: _jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main", width: "24", height: "24", asSVG: true }) })] }), _jsx("div", { className: `${LINK_BORDER_CLASS_NAME} mx-1.5 mt-1.5` }), _jsx("div", { className: `${LINK_BORDER_CLASS_NAME} mt-3 mr-3` })] }));
|
|
10
|
+
const link = useLink();
|
|
11
|
+
const adjustedProps = link({ href, target });
|
|
12
|
+
return text ? (_jsxs("div", { className: `relative group/link cursor-pointer w-[328px] h-[82px] ${className}`, children: [_jsxs("a", { className: LINK_CLASS_NAME, role: "link", ...adjustedProps, children: [_jsx("div", { className: "p-0.5", children: text }), _jsx("div", { className: "w-6 h-6", children: _jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main", width: "24", height: "24", asSVG: true }) })] }), _jsx("div", { className: `${LINK_BORDER_CLASS_NAME} mx-1.5 mt-1.5` }), _jsx("div", { className: `${LINK_BORDER_CLASS_NAME} mt-3 mr-3` })] })) : null;
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=LinkButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkButton.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkButton/LinkButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"LinkButton.js","sourceRoot":"","sources":["../../../src/ui-kit/LinkButton/LinkButton.tsx"],"names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} from './SwipeListControlProps';
|
|
3
2
|
declare type ItemsVisibilityList = Array<IntersectionObserverEntry | undefined>;
|
|
4
3
|
declare type SwipeListItemWidthAuto = 0;
|
|
@@ -15,7 +14,6 @@ interface SwipeListContainerProps extends SwipeContainerProps {
|
|
|
15
14
|
snapAlign?: 'snap-start' | 'snap-center' | 'snap-end';
|
|
16
15
|
onVisibleItemsChange?: (itemsVisibilityList: ItemsVisibilityList) => void;
|
|
17
16
|
onVisibleIndicesChange?: (indices: number[]) => void;
|
|
18
|
-
listType?: SwipeListControlType;
|
|
19
17
|
}
|
|
20
18
|
export declare const SwipeListContainer: import("@redneckz/uni-jsx").UNIComponent<SwipeListContainerProps, any, any>;
|
|
21
19
|
export {};
|
|
@@ -3,10 +3,10 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { useCallback, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
4
|
import { mapChildren } from '../../utils/mapChildren.js';
|
|
5
5
|
import { style } from '../../utils/style.js';
|
|
6
|
+
import { getContainerHeight } from './getContainerHeight.js';
|
|
6
7
|
import { SwipeListItem } from './SwipeListItem.js';
|
|
7
8
|
const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]', 'min-w-[25%]'];
|
|
8
|
-
const
|
|
9
|
-
export const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount = 0, gap = 0, padding = 0, listType = 'horizontal-list', snapAlign = 'snap-center', children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
|
|
9
|
+
export const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount = 0, gap = 0, padding = 0, listType = 'horizontal-list', snapAlign = 'snap-center', minHeight, children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
|
|
10
10
|
const observerOptions = {
|
|
11
11
|
sensitivity: 1,
|
|
12
12
|
rootRef: containerRef,
|
|
@@ -24,14 +24,10 @@ export const SwipeListContainer = JSX(({ className = '', containerRef, activeInd
|
|
|
24
24
|
const isHorizontalList = listType === 'horizontal-list';
|
|
25
25
|
const containerStyle = {
|
|
26
26
|
...(isHorizontalList ? getContainerOffset(padding, additionPadding) : {}),
|
|
27
|
-
...(isVerticalList ?
|
|
27
|
+
...(isVerticalList ? getContainerHeight(minHeight) : {}),
|
|
28
28
|
gap: `${gap}px`,
|
|
29
29
|
};
|
|
30
|
-
|
|
31
|
-
...(isHorizontalList ? getContainerOffset(padding / 4) : {}),
|
|
32
|
-
maxHeight: DEFAULT_HEIGHT,
|
|
33
|
-
};
|
|
34
|
-
return (_jsx("div", { className: style('box-border overflow-auto no-scrollbar', listType, className), style: containerStyle, role: "list", ref: containerRef, children: mapChildren((child, idx) => (_jsx(SwipeListItem, { className: style(snapAlign, visibleItemCount ? childStyleMap[visibleItemCount - 1] : '', isVerticalList ? 'h-full' : ''), style: itemContainerStyle, activeIndex: activeIndex, idx: idx, observerOptions: observerOptions, onIntersection: handleIntersection, children: child }, String(idx))))(children) }));
|
|
30
|
+
return (_jsx("div", { className: style('box-border overflow-auto no-scrollbar', listType, className), style: containerStyle, role: "list", ref: containerRef, children: mapChildren((child, idx) => (_jsx(SwipeListItem, { className: style(snapAlign, visibleItemCount ? childStyleMap[visibleItemCount - 1] : '', isVerticalList ? 'h-full' : ''), style: isHorizontalList ? getContainerOffset(padding / 4) : {}, activeIndex: activeIndex, idx: idx, observerOptions: observerOptions, onIntersection: handleIntersection, children: child }, String(idx))))(children) }));
|
|
35
31
|
});
|
|
36
32
|
// Styles used to compensate outer container padding to get rid of clipping effect
|
|
37
33
|
const getContainerOffset = (padding, additionalPadding = 0) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeListContainer.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListContainer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,6BAA6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AQ,CAAC,CAAC,CAAC,EAAE,CAC/B,EACD,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,kBAAkB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAC9D,WAAW,EAAE,WAAW,EACxB,GAAG,EAAE,GAAG,EACR,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,kBAAkB,YAEjC,KAAK,IAZD,MAAM,CAAC,GAAG,CAAC,CAaF,CACjB,CAAC,CAAC,QAAQ,CAAC,GACR,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kFAAkF;AAClF,MAAM,kBAAkB,GAAG,CAAC,OAAe,EAAE,iBAAiB,GAAG,CAAC,EAA0B,EAAE,CAAC,CAAC;IAC9F,UAAU,EAAE,GAAG,CAAC,OAAO,IAAI;IAC3B,WAAW,EAAE,GAAG,CAAC,OAAO,IAAI;IAC5B,WAAW,EAAE,GAAG,OAAO,IAAI;IAC3B,YAAY,EAAE,GAAG,OAAO,GAAG,iBAAiB,IAAI;CACjD,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,mBAAwC,EAAE,EAAE,CACrE,mBAAmB;KAChB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAmD,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACtE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,iBAAiB,IAAI,GAAG,CAAC;KAChD,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -11,13 +11,13 @@ const DEFAULT_GAP = 14;
|
|
|
11
11
|
and get rid of a clipping effect caused by overflow: hidden.
|
|
12
12
|
*/
|
|
13
13
|
const DEFAULT_PADDING = 16;
|
|
14
|
-
export const SwipeListControl = JSX(({ className = '', gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
|
|
14
|
+
export const SwipeListControl = JSX(({ className = '', gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
|
|
15
15
|
const itemCount = Array.isArray(children) ? children.length : 0;
|
|
16
16
|
const [containerRef, scroll] = useSwipeListScroll({
|
|
17
17
|
itemCount,
|
|
18
18
|
onVisibleIndicesChange,
|
|
19
19
|
});
|
|
20
20
|
const [activeIndex] = scroll.visibleIndicesRange;
|
|
21
|
-
return (_jsxs("div", { className: style(className, listType === 'vertical-list' ? 'relative h-full' : ''), children: [_jsx(SwipeListContainer, { containerRef: containerRef, activeIndex: activeIndex, visibleItemCount: 1, gap: gap, padding: padding, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, listType: listType, children: children }), showDots ? (_jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: activeIndex, dotCount: itemCount, listType: listType })) : null] }));
|
|
21
|
+
return (_jsxs("div", { className: style(className, listType === 'vertical-list' ? 'relative h-full' : ''), children: [_jsx(SwipeListContainer, { containerRef: containerRef, activeIndex: activeIndex, visibleItemCount: 1, gap: gap, padding: padding, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, listType: listType, minHeight: minHeight, children: children }), showDots ? (_jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: activeIndex, dotCount: itemCount, listType: listType })) : null] }));
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=SwipeListControl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeListControl.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,O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AAC,CACV,KAAC,oBAAoB,IACnB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
-
|
|
3
|
-
* @title Вид
|
|
4
|
-
* @enumNames ["Горизонтальный", "Вертикальный"]
|
|
5
|
-
*/
|
|
6
|
-
export declare type SwipeListControlType = 'horizontal-list' | 'vertical-list';
|
|
2
|
+
import type { SwipeContainerProps } from './SwipeListControlProps';
|
|
7
3
|
/**
|
|
8
4
|
* @title Swipe-контроллер
|
|
9
5
|
*/
|
|
10
|
-
export interface SwipeListControlContent {
|
|
6
|
+
export interface SwipeListControlContent extends SwipeContainerProps {
|
|
11
7
|
/** @title Точки-индикаторы */
|
|
12
8
|
showDots?: boolean;
|
|
13
|
-
listType?: SwipeListControlType;
|
|
14
9
|
version?: BlockVersion;
|
|
15
10
|
}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import type { SwipeListControlContent } from './SwipeListControlContent';
|
|
2
2
|
/**
|
|
3
|
-
* @title
|
|
3
|
+
* @title Вид
|
|
4
|
+
* @enumNames ["Горизонтальный", "Вертикальный"]
|
|
4
5
|
*/
|
|
6
|
+
export declare type SwipeListControlType = 'horizontal-list' | 'vertical-list';
|
|
7
|
+
/**
|
|
8
|
+
* @title Минимальная высота
|
|
9
|
+
* @enumNames ['Стандартная', 'Маленькая']
|
|
10
|
+
*/
|
|
11
|
+
export declare type ContainerMinHeight = 866 | 720;
|
|
5
12
|
export interface SwipeContainerProps {
|
|
6
|
-
/** @
|
|
13
|
+
/** @hidden */
|
|
7
14
|
gap?: number;
|
|
8
|
-
/** @
|
|
15
|
+
/** @hidden */
|
|
9
16
|
padding?: number;
|
|
17
|
+
listType?: SwipeListControlType;
|
|
18
|
+
minHeight?: ContainerMinHeight;
|
|
10
19
|
}
|
|
11
20
|
/**
|
|
12
21
|
* @title Swipe-контроллер
|
|
@@ -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
|
+
export const getContainerHeight = (minHeight) => ({
|
|
7
|
+
height: `calc(100vh - ${HEADER_HEIGHT + FOOTER_HEIGHT + BLOCKS_GAP + PAGE_PADDINGS_X}px)`,
|
|
8
|
+
minHeight: `${minHeight || DEFAULT_HEIGHT}px`,
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=getContainerHeight.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getContainerHeight.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/getContainerHeight.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,eAAe,GAAG,EAAE,CAAC;AAC3B,MAAM,cAAc,GAAG,GAAG,CAAC;AAE3B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,SAAkB,EAAE,EAAE,CAAC,CAAC;IACzD,MAAM,EAAE,gBAAgB,aAAa,GAAG,aAAa,GAAG,UAAU,GAAG,eAAe,KAAK;IACzF,SAAS,EAAE,GAAG,SAAS,IAAI,cAAc,IAAI;CAC9C,CAAC,CAAC"}
|
|
@@ -541,6 +541,16 @@
|
|
|
541
541
|
return Array.isArray(children) ? children.map(mapper) : mapper(children, 0);
|
|
542
542
|
};
|
|
543
543
|
|
|
544
|
+
const HEADER_HEIGHT = 170;
|
|
545
|
+
const FOOTER_HEIGHT = 48;
|
|
546
|
+
const BLOCKS_GAP = 4;
|
|
547
|
+
const PAGE_PADDINGS_X = 20;
|
|
548
|
+
const DEFAULT_HEIGHT = 866;
|
|
549
|
+
const getContainerHeight = (minHeight) => ({
|
|
550
|
+
height: `calc(100vh - ${HEADER_HEIGHT + FOOTER_HEIGHT + BLOCKS_GAP + PAGE_PADDINGS_X}px)`,
|
|
551
|
+
minHeight: `${minHeight || DEFAULT_HEIGHT}px`,
|
|
552
|
+
});
|
|
553
|
+
|
|
544
554
|
const SwipeListItem = JSX(({ className = '', style, idx, activeIndex, observerOptions, children, onIntersection }) => {
|
|
545
555
|
const observerCallback = useCallback((entries) => {
|
|
546
556
|
if (entries.length && onIntersection) {
|
|
@@ -552,8 +562,7 @@
|
|
|
552
562
|
});
|
|
553
563
|
|
|
554
564
|
const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]', 'min-w-[25%]'];
|
|
555
|
-
const
|
|
556
|
-
const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount = 0, gap = 0, padding = 0, listType = 'horizontal-list', snapAlign = 'snap-center', children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
|
|
565
|
+
const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount = 0, gap = 0, padding = 0, listType = 'horizontal-list', snapAlign = 'snap-center', minHeight, children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
|
|
557
566
|
const observerOptions = {
|
|
558
567
|
sensitivity: 1,
|
|
559
568
|
rootRef: containerRef,
|
|
@@ -571,14 +580,10 @@
|
|
|
571
580
|
const isHorizontalList = listType === 'horizontal-list';
|
|
572
581
|
const containerStyle = {
|
|
573
582
|
...(isHorizontalList ? getContainerOffset(padding, additionPadding) : {}),
|
|
574
|
-
...(isVerticalList ?
|
|
583
|
+
...(isVerticalList ? getContainerHeight(minHeight) : {}),
|
|
575
584
|
gap: `${gap}px`,
|
|
576
585
|
};
|
|
577
|
-
|
|
578
|
-
...(isHorizontalList ? getContainerOffset(padding / 4) : {}),
|
|
579
|
-
maxHeight: DEFAULT_HEIGHT,
|
|
580
|
-
};
|
|
581
|
-
return (jsx("div", { className: style('box-border overflow-auto no-scrollbar', listType, className), style: containerStyle, role: "list", ref: containerRef, children: mapChildren((child, idx) => (jsx(SwipeListItem, { className: style(snapAlign, visibleItemCount ? childStyleMap[visibleItemCount - 1] : '', isVerticalList ? 'h-full' : ''), style: itemContainerStyle, activeIndex: activeIndex, idx: idx, observerOptions: observerOptions, onIntersection: handleIntersection, children: child }, String(idx))))(children) }));
|
|
586
|
+
return (jsx("div", { className: style('box-border overflow-auto no-scrollbar', listType, className), style: containerStyle, role: "list", ref: containerRef, children: mapChildren((child, idx) => (jsx(SwipeListItem, { className: style(snapAlign, visibleItemCount ? childStyleMap[visibleItemCount - 1] : '', isVerticalList ? 'h-full' : ''), style: isHorizontalList ? getContainerOffset(padding / 4) : {}, activeIndex: activeIndex, idx: idx, observerOptions: observerOptions, onIntersection: handleIntersection, children: child }, String(idx))))(children) }));
|
|
582
587
|
});
|
|
583
588
|
// Styles used to compensate outer container padding to get rid of clipping effect
|
|
584
589
|
const getContainerOffset = (padding, additionalPadding = 0) => ({
|
|
@@ -688,14 +693,14 @@
|
|
|
688
693
|
and get rid of a clipping effect caused by overflow: hidden.
|
|
689
694
|
*/
|
|
690
695
|
const DEFAULT_PADDING = 16;
|
|
691
|
-
const SwipeListControl = JSX(({ className = '', gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
|
|
696
|
+
const SwipeListControl = JSX(({ className = '', gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
|
|
692
697
|
const itemCount = Array.isArray(children) ? children.length : 0;
|
|
693
698
|
const [containerRef, scroll] = useSwipeListScroll({
|
|
694
699
|
itemCount,
|
|
695
700
|
onVisibleIndicesChange,
|
|
696
701
|
});
|
|
697
702
|
const [activeIndex] = scroll.visibleIndicesRange;
|
|
698
|
-
return (jsxs("div", { className: style(className, listType === 'vertical-list' ? 'relative h-full' : ''), children: [jsx(SwipeListContainer, { containerRef: containerRef, activeIndex: activeIndex, visibleItemCount: 1, gap: gap, padding: padding, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, listType: listType, children: children }), showDots ? (jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: activeIndex, dotCount: itemCount, listType: listType })) : null] }));
|
|
703
|
+
return (jsxs("div", { className: style(className, listType === 'vertical-list' ? 'relative h-full' : ''), children: [jsx(SwipeListContainer, { containerRef: containerRef, activeIndex: activeIndex, visibleItemCount: 1, gap: gap, padding: padding, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, listType: listType, minHeight: minHeight, children: children }), showDots ? (jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: activeIndex, dotCount: itemCount, listType: listType })) : null] }));
|
|
699
704
|
});
|
|
700
705
|
|
|
701
706
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
@@ -1671,7 +1676,7 @@
|
|
|
1671
1676
|
return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
|
|
1672
1677
|
}
|
|
1673
1678
|
|
|
1674
|
-
const packageVersion = "0.8.
|
|
1679
|
+
const packageVersion = "0.8.19";
|
|
1675
1680
|
|
|
1676
1681
|
exports.Blocks = Blocks;
|
|
1677
1682
|
exports.ContentPage = ContentPage;
|