@redneckz/wildless-cms-uni-blocks 0.14.28 → 0.14.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.14.28.js +28 -0
- package/bin/migration-scripts/0.14.29.js +73 -0
- package/bin/migration-scripts/0.14.30.js +54 -0
- package/bin/migration-scripts/0.14.4.js +4 -4
- package/bin/utils.js +54 -7
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +219 -133
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
- package/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/bundle/components/OfficesAtmsMap/CardCell.d.ts +3 -2
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
- package/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
- package/bundle/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
- package/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
- package/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
- package/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/bundle/hooks/useResizeObserver.d.ts +3 -0
- package/bundle/model/HeadlineType.d.ts +0 -8
- package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
- package/bundle/ui-kit/PriceList/PriceList.d.ts +2 -0
- package/bundle/ui-kit/PriceList/PriceListProps.d.ts +9 -0
- package/bundle/ui-kit/Select/SelectPopup.d.ts +5 -3
- package/bundle/ui-kit/Select/useSelectPopup.d.ts +1 -1
- package/dist/components/Blocks.js +0 -6
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +3 -2
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
- package/dist/components/Calculator/RefinancingCalculatorForm.js +9 -3
- package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/dist/components/Depository/Depository.js +12 -3
- package/dist/components/Depository/Depository.js.map +1 -1
- package/dist/components/Depository/DepositoryFilter.js +1 -1
- package/dist/components/Depository/DepositoryFilter.js.map +1 -1
- package/dist/components/Depository/DepositoryItem.js +1 -1
- package/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/dist/components/Depository/useDepository.js +11 -1
- package/dist/components/Depository/useDepository.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +2 -2
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/dist/components/Headline/headlineVersionStyles.js +1 -12
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/dist/components/OfficesAtmsMap/Badge.js +2 -2
- package/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
- package/dist/components/OfficesAtmsMap/CardCell.d.ts +3 -2
- package/dist/components/OfficesAtmsMap/CardCell.js +6 -4
- package/dist/components/OfficesAtmsMap/CardCell.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
- package/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
- package/dist/components/OfficesAtmsMap/getScheduleDescription.js +36 -0
- package/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
- package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
- package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js +28 -0
- package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
- package/dist/components/OfficesAtmsMap/renderBusinessSchedule.js +32 -0
- package/dist/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
- package/dist/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
- package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/dist/components/StepsBlock/StepsBlock.js +3 -2
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/hooks/useResizeObserver.d.ts +3 -0
- package/dist/hooks/useResizeObserver.js +22 -0
- package/dist/hooks/useResizeObserver.js.map +1 -0
- package/dist/model/HeadlineType.d.ts +0 -8
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/dist/ui-kit/DatePicker/DatePicker.js +1 -1
- package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/dist/ui-kit/Foldable/FoldableSection.js +5 -4
- package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/dist/ui-kit/List/List.js +1 -1
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListItem.js +1 -1
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/PriceList/PriceList.d.ts +2 -0
- package/dist/ui-kit/PriceList/PriceList.js +9 -0
- package/dist/ui-kit/PriceList/PriceList.js.map +1 -0
- package/dist/ui-kit/PriceList/PriceListProps.d.ts +9 -0
- package/{mobile/dist/components/PictureText/PictureTextContent.js → dist/ui-kit/PriceList/PriceListProps.js} +1 -1
- package/dist/ui-kit/PriceList/PriceListProps.js.map +1 -0
- package/dist/ui-kit/Select/Select.js +1 -0
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/Select/SelectPopup.d.ts +5 -3
- package/dist/ui-kit/Select/SelectPopup.js +2 -2
- package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/dist/ui-kit/Select/useSelectPopup.d.ts +1 -1
- package/dist/ui-kit/Select/useSelectPopup.js +2 -2
- package/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -6
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +3 -2
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
- package/lib/components/Calculator/RefinancingCalculatorForm.js +10 -4
- package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +0 -2
- package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +0 -2
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +2 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/lib/components/Depository/Depository.js +12 -3
- package/lib/components/Depository/Depository.js.map +1 -1
- package/lib/components/Depository/DepositoryFilter.js +1 -1
- package/lib/components/Depository/DepositoryFilter.js.map +1 -1
- package/lib/components/Depository/DepositoryItem.js +1 -1
- package/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/lib/components/Depository/useDepository.js +11 -1
- package/lib/components/Depository/useDepository.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +2 -2
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/lib/components/Headline/headlineVersionStyles.js +0 -11
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/lib/components/OfficesAtmsMap/Badge.js +2 -2
- package/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
- package/lib/components/OfficesAtmsMap/CardCell.d.ts +3 -2
- package/lib/components/OfficesAtmsMap/CardCell.js +6 -4
- package/lib/components/OfficesAtmsMap/CardCell.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
- package/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
- package/lib/components/OfficesAtmsMap/getScheduleDescription.js +32 -0
- package/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
- package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
- package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js +25 -0
- package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
- package/lib/components/OfficesAtmsMap/renderBusinessSchedule.js +27 -0
- package/lib/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
- package/lib/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
- package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +1 -0
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -0
- package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +1 -0
- package/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/lib/components/StepsBlock/StepsBlock.js +3 -2
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/hooks/useResizeObserver.d.ts +3 -0
- package/lib/hooks/useResizeObserver.js +19 -0
- package/lib/hooks/useResizeObserver.js.map +1 -0
- package/lib/model/HeadlineType.d.ts +0 -8
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/lib/ui-kit/DatePicker/DatePicker.js +1 -1
- package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/lib/ui-kit/Foldable/FoldableSection.js +6 -5
- package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/lib/ui-kit/List/List.js +1 -1
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListItem.js +1 -1
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/PriceList/PriceList.d.ts +2 -0
- package/lib/ui-kit/PriceList/PriceList.fixture.d.ts +6 -0
- package/lib/ui-kit/PriceList/PriceList.js +7 -0
- package/lib/ui-kit/PriceList/PriceList.js.map +1 -0
- package/lib/ui-kit/PriceList/PriceListProps.d.ts +9 -0
- package/lib/ui-kit/PriceList/PriceListProps.js +2 -0
- package/lib/ui-kit/PriceList/PriceListProps.js.map +1 -0
- package/lib/ui-kit/Select/Select.js +1 -0
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Select/SelectPopup.d.ts +5 -3
- package/lib/ui-kit/Select/SelectPopup.js +2 -2
- package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/lib/ui-kit/Select/useSelectPopup.d.ts +1 -1
- package/lib/ui-kit/Select/useSelectPopup.js +2 -2
- package/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +88 -88
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
- package/mobile/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/mobile/bundle/components/OfficesAtmsMap/CardCell.d.ts +3 -2
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
- package/mobile/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
- package/mobile/bundle/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
- package/mobile/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/mobile/bundle/hooks/useResizeObserver.d.ts +3 -0
- package/mobile/bundle/model/HeadlineType.d.ts +0 -8
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
- package/mobile/bundle/ui-kit/PriceList/PriceList.d.ts +2 -0
- package/mobile/bundle/ui-kit/PriceList/PriceListProps.d.ts +9 -0
- package/mobile/bundle/ui-kit/Select/SelectPopup.d.ts +5 -3
- package/mobile/bundle/ui-kit/Select/useSelectPopup.d.ts +1 -1
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +3 -2
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +9 -3
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/mobile/dist/components/Depository/Depository.js +12 -3
- package/mobile/dist/components/Depository/Depository.js.map +1 -1
- package/mobile/dist/components/Depository/DepositoryFilter.js +1 -1
- package/mobile/dist/components/Depository/DepositoryFilter.js.map +1 -1
- package/mobile/dist/components/Depository/DepositoryItem.js +1 -1
- package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/dist/components/Depository/useDepository.js +11 -1
- package/mobile/dist/components/Depository/useDepository.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js +2 -2
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/mobile/dist/components/Headline/headlineVersionStyles.js +1 -12
- package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/Badge.js +2 -2
- package/mobile/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/CardCell.d.ts +3 -2
- package/mobile/dist/components/OfficesAtmsMap/CardCell.js +6 -4
- package/mobile/dist/components/OfficesAtmsMap/CardCell.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
- package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
- package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js +36 -0
- package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
- package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js +28 -0
- package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
- package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.js +32 -0
- package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/mobile/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/mobile/dist/hooks/useResizeObserver.d.ts +3 -0
- package/mobile/dist/hooks/useResizeObserver.js +22 -0
- package/mobile/dist/hooks/useResizeObserver.js.map +1 -0
- package/mobile/dist/model/HeadlineType.d.ts +0 -8
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/dist/ui-kit/DatePicker/DatePicker.js +1 -1
- package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js +5 -4
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/mobile/dist/ui-kit/List/List.js +1 -1
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/PriceList/PriceList.d.ts +2 -0
- package/mobile/dist/ui-kit/PriceList/PriceList.js +9 -0
- package/mobile/dist/ui-kit/PriceList/PriceList.js.map +1 -0
- package/mobile/dist/ui-kit/PriceList/PriceListProps.d.ts +9 -0
- package/{dist/components/PictureText/PictureTextContent.js → mobile/dist/ui-kit/PriceList/PriceListProps.js} +1 -1
- package/mobile/dist/ui-kit/PriceList/PriceListProps.js.map +1 -0
- package/mobile/dist/ui-kit/Select/Select.js +1 -0
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.d.ts +5 -3
- package/mobile/dist/ui-kit/Select/SelectPopup.js +2 -2
- package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/dist/ui-kit/Select/useSelectPopup.d.ts +1 -1
- package/mobile/dist/ui-kit/Select/useSelectPopup.js +2 -2
- package/mobile/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +3 -2
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.d.ts +1 -0
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +10 -4
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/mobile/lib/components/Depository/Depository.js +12 -3
- package/mobile/lib/components/Depository/Depository.js.map +1 -1
- package/mobile/lib/components/Depository/DepositoryFilter.js +1 -1
- package/mobile/lib/components/Depository/DepositoryFilter.js.map +1 -1
- package/mobile/lib/components/Depository/DepositoryItem.js +1 -1
- package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/lib/components/Depository/useDepository.js +11 -1
- package/mobile/lib/components/Depository/useDepository.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js +2 -2
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/mobile/lib/components/Headline/headlineVersionStyles.js +0 -11
- package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/Badge.js +2 -2
- package/mobile/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/CardCell.d.ts +3 -2
- package/mobile/lib/components/OfficesAtmsMap/CardCell.js +6 -4
- package/mobile/lib/components/OfficesAtmsMap/CardCell.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +5 -0
- package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +4 -0
- package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js +32 -0
- package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +3 -0
- package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js +25 -0
- package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +8 -0
- package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.js +27 -0
- package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +2 -2
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +24 -28
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/mobile/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/mobile/lib/hooks/useResizeObserver.d.ts +3 -0
- package/mobile/lib/hooks/useResizeObserver.js +19 -0
- package/mobile/lib/hooks/useResizeObserver.js.map +1 -0
- package/mobile/lib/model/HeadlineType.d.ts +0 -8
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +9 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/lib/ui-kit/DatePicker/DatePicker.js +1 -1
- package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js +6 -5
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/mobile/lib/ui-kit/List/List.js +1 -1
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/PriceList/PriceList.d.ts +2 -0
- package/mobile/lib/ui-kit/PriceList/PriceList.js +7 -0
- package/mobile/lib/ui-kit/PriceList/PriceList.js.map +1 -0
- package/mobile/lib/ui-kit/PriceList/PriceListProps.d.ts +9 -0
- package/mobile/lib/ui-kit/PriceList/PriceListProps.js +2 -0
- package/mobile/lib/ui-kit/PriceList/PriceListProps.js.map +1 -0
- package/mobile/lib/ui-kit/Select/Select.js +1 -0
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.d.ts +5 -3
- package/mobile/lib/ui-kit/Select/SelectPopup.js +2 -2
- package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/lib/ui-kit/Select/useSelectPopup.d.ts +1 -1
- package/mobile/lib/ui-kit/Select/useSelectPopup.js +2 -2
- package/mobile/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
- package/mobile/src/common.css +1 -0
- package/mobile/src/components/Blocks.ts +0 -4
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +3 -2
- package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +14 -3
- package/mobile/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +11 -1
- package/mobile/src/components/Carousel/Carousel.tsx +1 -1
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
- package/mobile/src/components/Depository/Depository.tsx +25 -8
- package/mobile/src/components/Depository/DepositoryFilter.tsx +1 -1
- package/mobile/src/components/Depository/DepositoryItem.tsx +6 -2
- package/mobile/src/components/Depository/useDepository.ts +15 -6
- package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
- package/mobile/src/components/Headline/headlineVersionStyles.ts +1 -13
- package/mobile/src/components/OfficesAtmsMap/Badge.tsx +2 -2
- package/mobile/src/components/OfficesAtmsMap/CardCell.tsx +33 -21
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +5 -0
- package/mobile/src/components/OfficesAtmsMap/getScheduleDescription.tsx +48 -0
- package/mobile/src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx +28 -0
- package/mobile/src/components/OfficesAtmsMap/renderBusinessSchedule.tsx +54 -0
- package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +46 -41
- package/mobile/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
- package/mobile/src/hooks/useResizeObserver.ts +28 -0
- package/mobile/src/model/HeadlineType.ts +0 -10
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +3 -0
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +12 -1
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
- package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +3 -1
- package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +16 -11
- package/mobile/src/ui-kit/List/List.tsx +1 -1
- package/mobile/src/ui-kit/List/ListItem.tsx +15 -17
- package/mobile/src/ui-kit/PriceList/PriceList.tsx +25 -0
- package/mobile/src/ui-kit/PriceList/PriceListProps.ts +11 -0
- package/mobile/src/ui-kit/Select/Select.tsx +1 -0
- package/mobile/src/ui-kit/Select/SelectPopup.tsx +41 -34
- package/mobile/src/ui-kit/Select/useSelectPopup.tsx +2 -0
- package/package.json +1 -1
- package/src/common.css +1 -0
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -6
- package/src/components/Calculator/Calculator.fixture.mobile.tsx +15 -0
- package/src/components/Calculator/CreditCalculatorForm.tsx +3 -2
- package/src/components/Calculator/RefinancingCalculatorForm.tsx +14 -3
- package/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +11 -1
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +0 -34
- package/src/components/Carousel/Carousel.fixture.tsx +2 -52
- package/src/components/Carousel/Carousel.tsx +1 -1
- package/src/components/CarouselCard/CarouselCard.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +44 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
- package/src/components/Depository/Depository.tsx +25 -8
- package/src/components/Depository/DepositoryFilter.tsx +1 -1
- package/src/components/Depository/DepositoryItem.tsx +6 -2
- package/src/components/Depository/useDepository.ts +15 -6
- package/src/components/Footer/SocialMedia.tsx +2 -2
- package/src/components/Headline/headlineVersionStyles.ts +1 -13
- package/src/components/OfficesAtmsMap/Badge.tsx +2 -2
- package/src/components/OfficesAtmsMap/CardCell.tsx +33 -21
- package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +5 -0
- package/src/components/OfficesAtmsMap/getScheduleDescription.tsx +48 -0
- package/src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx +28 -0
- package/src/components/OfficesAtmsMap/renderBusinessSchedule.tsx +54 -0
- package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +46 -41
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +42 -0
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +42 -0
- package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +15 -0
- package/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
- package/src/components/StepsBlock/StepsBlock.tsx +7 -4
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +4 -12
- package/src/hooks/useResizeObserver.ts +28 -0
- package/src/model/HeadlineType.ts +0 -10
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +3 -0
- package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +12 -1
- package/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
- package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
- package/src/ui-kit/DatePicker/DatePicker.tsx +3 -1
- package/src/ui-kit/Foldable/FoldableSection.tsx +16 -11
- package/src/ui-kit/List/List.tsx +1 -1
- package/src/ui-kit/List/ListItem.tsx +15 -17
- package/src/ui-kit/PriceList/PriceList.fixture.tsx +16 -0
- package/src/ui-kit/PriceList/PriceList.tsx +25 -0
- package/src/ui-kit/PriceList/PriceListProps.ts +11 -0
- package/src/ui-kit/Select/Select.tsx +1 -0
- package/src/ui-kit/Select/SelectPopup.tsx +41 -34
- package/src/ui-kit/Select/useSelectPopup.tsx +2 -0
- package/tailwind.config.cjs +23 -20
- package/bin/migration-scripts/0.14.12.js +0 -34
- package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/bundle/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
- package/bundle/components/PictureText/PictureText.d.ts +0 -5
- package/bundle/components/PictureText/PictureTextContent.d.ts +0 -11
- package/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
- package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/dist/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
- package/dist/components/OfficesAtmsMap/renderLunchHour.js +0 -10
- package/dist/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
- package/dist/components/PictureText/PictureText.d.ts +0 -5
- package/dist/components/PictureText/PictureText.js +0 -9
- package/dist/components/PictureText/PictureText.js.map +0 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +0 -11
- package/dist/components/PictureText/PictureTextContent.js.map +0 -1
- package/dist/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
- package/dist/components/PictureText/renderInsuranceSumMonth.js +0 -9
- package/dist/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +0 -13
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +0 -13
- package/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.fixture.d.ts +0 -8
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/lib/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
- package/lib/components/OfficesAtmsMap/renderLunchHour.js +0 -7
- package/lib/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
- package/lib/components/PictureText/PictureText.d.ts +0 -5
- package/lib/components/PictureText/PictureText.fixture.d.ts +0 -14
- package/lib/components/PictureText/PictureText.fixture.mobile.d.ts +0 -14
- package/lib/components/PictureText/PictureText.js +0 -7
- package/lib/components/PictureText/PictureText.js.map +0 -1
- package/lib/components/PictureText/PictureTextContent.d.ts +0 -11
- package/lib/components/PictureText/PictureTextContent.js +0 -2
- package/lib/components/PictureText/PictureTextContent.js.map +0 -1
- package/lib/components/PictureText/renderInsuranceSumMonth.d.ts +0 -1
- package/lib/components/PictureText/renderInsuranceSumMonth.js +0 -6
- package/lib/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/mobile/bundle/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
- package/mobile/bundle/components/PictureText/PictureText.d.ts +0 -5
- package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +0 -11
- package/mobile/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
- package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.js +0 -10
- package/mobile/dist/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
- package/mobile/dist/components/PictureText/PictureText.d.ts +0 -5
- package/mobile/dist/components/PictureText/PictureText.js +0 -9
- package/mobile/dist/components/PictureText/PictureText.js.map +0 -1
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +0 -11
- package/mobile/dist/components/PictureText/PictureTextContent.js.map +0 -1
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +0 -9
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.d.ts +0 -2
- package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.js +0 -7
- package/mobile/lib/components/OfficesAtmsMap/renderLunchHour.js.map +0 -1
- package/mobile/lib/components/PictureText/PictureText.d.ts +0 -5
- package/mobile/lib/components/PictureText/PictureText.js +0 -7
- package/mobile/lib/components/PictureText/PictureText.js.map +0 -1
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +0 -11
- package/mobile/lib/components/PictureText/PictureTextContent.js +0 -2
- package/mobile/lib/components/PictureText/PictureTextContent.js.map +0 -1
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.d.ts +0 -2
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +0 -6
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +0 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
- package/mobile/src/components/OfficesAtmsMap/renderLunchHour.tsx +0 -28
- package/mobile/src/components/PictureText/PictureText.example.json +0 -40
- package/mobile/src/components/PictureText/PictureText.tsx +0 -36
- package/mobile/src/components/PictureText/PictureText.ui.json +0 -23
- package/mobile/src/components/PictureText/PictureTextContent.ts +0 -13
- package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +0 -21
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +0 -92
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +0 -96
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
- package/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.fixture.tsx +0 -26
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
- package/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
- package/src/components/OfficesAtmsMap/renderLunchHour.tsx +0 -28
- package/src/components/PictureText/PictureText.example.json +0 -40
- package/src/components/PictureText/PictureText.fixture.mobile.tsx +0 -116
- package/src/components/PictureText/PictureText.fixture.tsx +0 -130
- package/src/components/PictureText/PictureText.tsx +0 -36
- package/src/components/PictureText/PictureText.ui.json +0 -23
- package/src/components/PictureText/PictureTextContent.ts +0 -13
- package/src/components/PictureText/renderInsuranceSumMonth.tsx +0 -21
|
@@ -3,22 +3,10 @@ import { Text } from '../../ui-kit/Text/Text';
|
|
|
3
3
|
import { Badge } from './Badge';
|
|
4
4
|
import { CardCell } from './CardCell';
|
|
5
5
|
import { CardRow } from './CardRow';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type WorkScheduleWeek,
|
|
11
|
-
} from './OfficesAtmsMapProps';
|
|
12
|
-
|
|
13
|
-
const WEEKDAY_MAP = [
|
|
14
|
-
['Понедельник', 'workingMonday'],
|
|
15
|
-
['Вторник', 'workingTuesday'],
|
|
16
|
-
['Среда', 'workingWednesday'],
|
|
17
|
-
['Четверг', 'workingThursday'],
|
|
18
|
-
['Пятница', 'workingFriday'],
|
|
19
|
-
['Суббота', 'workingSaturday'],
|
|
20
|
-
['Воскресенье', 'workingSunday'],
|
|
21
|
-
];
|
|
6
|
+
import { getScheduleDescription } from './getScheduleDescription';
|
|
7
|
+
import { getWorkScheduleWeek } from './getWorkScheduleWeek';
|
|
8
|
+
import { type Branch, type Currency, type WorkScheduleWeek } from './OfficesAtmsMapProps';
|
|
9
|
+
import { renderAlternativeDay, renderBusinessSchedule } from './renderBusinessSchedule';
|
|
22
10
|
|
|
23
11
|
const currentWeekDayIdx = new Date().getDay();
|
|
24
12
|
|
|
@@ -37,14 +25,20 @@ export const renderOfficeCard = (
|
|
|
37
25
|
}: Branch,
|
|
38
26
|
index: number,
|
|
39
27
|
) => {
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
if (!workSchedule) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const workScheduleWeek = getWorkScheduleWeek(workSchedule);
|
|
33
|
+
const labelSchedule = workSchedule?.businessScheduleVisibleTag
|
|
34
|
+
? 'Для физических лиц'
|
|
35
|
+
: 'Для физических и юридических лиц';
|
|
42
36
|
|
|
43
37
|
return (
|
|
44
38
|
<div key={String(index)} className="bg-white col-span-12 p-3xl border-green border">
|
|
45
39
|
<div className="flex justify-between">
|
|
46
40
|
<Text size="text-h4">{name}</Text>
|
|
47
|
-
{renderCurrentDaySchedule(
|
|
41
|
+
{renderCurrentDaySchedule(workScheduleWeek)}
|
|
48
42
|
</div>
|
|
49
43
|
{address ? (
|
|
50
44
|
<div className="flex pb-xl pt-xs gap-2xs">
|
|
@@ -60,7 +54,23 @@ export const renderOfficeCard = (
|
|
|
60
54
|
<CardCell label="Для консультаций по валютному контролю" value={phoneCurrencyControl} />
|
|
61
55
|
<CardCell label="Контакт-центр" value={phoneCallCentre} />
|
|
62
56
|
</CardRow>
|
|
63
|
-
{
|
|
57
|
+
{workSchedule.isMatchesPattern ? (
|
|
58
|
+
<CardRow>
|
|
59
|
+
<CardCell label={labelSchedule} labelSize="text-l" className="w-full max-w-none">
|
|
60
|
+
<div className="flex justify-between pt-xs">{workScheduleWeek?.map(renderDay)}</div>
|
|
61
|
+
</CardCell>
|
|
62
|
+
</CardRow>
|
|
63
|
+
) : (
|
|
64
|
+
<CardRow>
|
|
65
|
+
<CardCell label={labelSchedule} labelSize="text-l">
|
|
66
|
+
<div className="flex gap-1">{workScheduleWeek?.map(renderAlternativeDay)}</div>
|
|
67
|
+
</CardCell>
|
|
68
|
+
{getScheduleDescription(workScheduleWeek)}
|
|
69
|
+
</CardRow>
|
|
70
|
+
)}
|
|
71
|
+
{workSchedule?.businessScheduleVisibleTag
|
|
72
|
+
? renderBusinessSchedule(workSchedule?.businessScheduleDescription)
|
|
73
|
+
: null}
|
|
64
74
|
{exchangeRate?.currencies?.length ? (
|
|
65
75
|
<CardRow className="flex-wrap">{exchangeRate?.currencies?.map(renderCurrency)}</CardRow>
|
|
66
76
|
) : null}
|
|
@@ -68,21 +78,6 @@ export const renderOfficeCard = (
|
|
|
68
78
|
);
|
|
69
79
|
};
|
|
70
80
|
|
|
71
|
-
const getWorkScheduleWeek = (workSchedule?: WorkSchedule): WorkScheduleWeek[] =>
|
|
72
|
-
WEEKDAY_MAP.map(([title, key]) => {
|
|
73
|
-
const dayOff = ['workingSaturday', 'workingSunday'].includes(key);
|
|
74
|
-
|
|
75
|
-
return {
|
|
76
|
-
title,
|
|
77
|
-
status: Boolean(workSchedule?.[key]),
|
|
78
|
-
workTime: dayOff ? workSchedule?.workTimeSaturday : workSchedule?.workTime,
|
|
79
|
-
lunchHour: dayOff ? workSchedule?.lunchHourSaturday : workSchedule?.lunchHour,
|
|
80
|
-
get hasLunch() {
|
|
81
|
-
return /\d+/.test(this.lunchHour ?? '');
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
});
|
|
85
|
-
|
|
86
81
|
export const renderCurrency = (
|
|
87
82
|
{ currency, buyExchangeRate, saleExchangeRate }: Currency,
|
|
88
83
|
i: number,
|
|
@@ -95,17 +90,19 @@ export const renderCurrency = (
|
|
|
95
90
|
);
|
|
96
91
|
|
|
97
92
|
//TODO: Add logic time https://github.com/redneckz/wildless-cms-uni-blocks/pull/1549
|
|
98
|
-
export const renderCurrentDaySchedule = (workScheduleWeek?: WorkScheduleWeek) => {
|
|
99
|
-
|
|
93
|
+
export const renderCurrentDaySchedule = (workScheduleWeek?: WorkScheduleWeek[]) => {
|
|
94
|
+
const [currentWeekDay] = workScheduleWeek?.slice(currentWeekDayIdx - 1) ?? [];
|
|
95
|
+
|
|
96
|
+
if (!currentWeekDay) {
|
|
100
97
|
return null;
|
|
101
98
|
}
|
|
102
99
|
|
|
103
|
-
const { lunchHour, status, workTime, hasLunch } =
|
|
100
|
+
const { lunchHour, status, workTime, hasLunch } = currentWeekDay;
|
|
104
101
|
|
|
105
102
|
return status ? (
|
|
106
|
-
<div className="flex gap-s">
|
|
103
|
+
<div className="flex gap-s items-start whitespace-nowrap">
|
|
107
104
|
{workTime ? <Badge color="green">{workTime}</Badge> : null}
|
|
108
|
-
{lunchHour && hasLunch ? <Badge color="yellow">{lunchHour}</Badge> : null}
|
|
105
|
+
{lunchHour && hasLunch ? <Badge color="yellow">{`перерыв: ${lunchHour}`}</Badge> : null}
|
|
109
106
|
</div>
|
|
110
107
|
) : (
|
|
111
108
|
<Badge color="red">Выходной</Badge>
|
|
@@ -120,7 +117,15 @@ export const renderDay = (
|
|
|
120
117
|
key={String(index)}
|
|
121
118
|
label={title}
|
|
122
119
|
value={status && workTime ? workTime : ''}
|
|
123
|
-
subText={
|
|
120
|
+
subText={getSubTextLunch(lunchHour, hasLunch, status)}
|
|
124
121
|
subColor={!status || hasLunch ? 'text-error' : 'text-green-dark'}
|
|
125
122
|
/>
|
|
126
123
|
);
|
|
124
|
+
|
|
125
|
+
const getSubTextLunch = (lunchHour?: string, hasLunch = false, status = false) => {
|
|
126
|
+
if (!status) {
|
|
127
|
+
return 'Не работает';
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return lunchHour && hasLunch ? `Перерыв ${lunchHour}` : lunchHour;
|
|
131
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
1
2
|
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @title Форматированный текст
|
|
5
6
|
*/
|
|
6
|
-
export type RichTextBlockContent = RichTextProps;
|
|
7
|
+
export type RichTextBlockContent = UniBlockContent & RichTextProps;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
|
|
3
|
+
export function useResizeObserver<T extends HTMLDivElement, Deps extends any[] = []>(
|
|
4
|
+
callback: (target: T, entry: ResizeObserverEntry) => void,
|
|
5
|
+
deps: Deps,
|
|
6
|
+
) {
|
|
7
|
+
const ref = useRef<T | null>(null);
|
|
8
|
+
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
const element = ref?.current;
|
|
11
|
+
|
|
12
|
+
if (!element) {
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const observer = new ResizeObserver((entries) => {
|
|
17
|
+
callback(element, entries[0]);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
observer.observe(element);
|
|
21
|
+
|
|
22
|
+
return () => {
|
|
23
|
+
observer.disconnect();
|
|
24
|
+
};
|
|
25
|
+
}, [callback, ...deps]);
|
|
26
|
+
|
|
27
|
+
return ref;
|
|
28
|
+
}
|
|
@@ -10,12 +10,6 @@ import { type TextAlign } from '../ui-kit/Text/TextProps';
|
|
|
10
10
|
*/
|
|
11
11
|
export type HeadlineVersion = 'XXL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* @title Размер заголовка
|
|
15
|
-
* @enumNames ["Заголовок", "Самый большой тонкий", "Самый большой", "Очень большой тонкий", "Очень большой", "Большой", "Средний", "Маленький"]
|
|
16
|
-
*/
|
|
17
|
-
export type HeadlineSmallVersion = 'H6' | 'XL_L' | 'XL_R' | 'L_L' | 'L_R' | 'M' | 'S' | 'XS';
|
|
18
|
-
|
|
19
13
|
export type TitleProps = {
|
|
20
14
|
/** @title Заголовок */
|
|
21
15
|
title?: string;
|
|
@@ -51,7 +45,3 @@ export type HeadlineCommonProps = TitleProps & DescriptionProps & AlignProps;
|
|
|
51
45
|
export type HeadlineProps = HeadlineCommonProps & {
|
|
52
46
|
headlineVersion?: HeadlineVersion;
|
|
53
47
|
};
|
|
54
|
-
|
|
55
|
-
export type HeadlineSmallProps = HeadlineCommonProps & {
|
|
56
|
-
headlineSmallVersion?: HeadlineSmallVersion;
|
|
57
|
-
};
|
|
@@ -8,6 +8,7 @@ import { BenefitsList } from '../BenefitsList/BenefitsList';
|
|
|
8
8
|
import { renderButtonsSection } from '../Button/renderButtonsSection';
|
|
9
9
|
import { Img } from '../Img/Img';
|
|
10
10
|
import { List } from '../List/List';
|
|
11
|
+
import { PriceList } from '../PriceList/PriceList';
|
|
11
12
|
import { RichText } from '../RichText/RichText';
|
|
12
13
|
import { Tags } from '../Tags/Tags';
|
|
13
14
|
import { type TextAlign } from '../Text/TextProps';
|
|
@@ -31,6 +32,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
31
32
|
isFullWidthTitle,
|
|
32
33
|
items,
|
|
33
34
|
isDotted = true,
|
|
35
|
+
priceList = [],
|
|
34
36
|
listItemSize,
|
|
35
37
|
tags = [],
|
|
36
38
|
buttons,
|
|
@@ -74,6 +76,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
74
76
|
<List items={items} isDotted={isDotted} listItemSize={listItemSize} />
|
|
75
77
|
) : null}
|
|
76
78
|
{children}
|
|
79
|
+
{priceList?.length ? <PriceList priceList={priceList} /> : null}
|
|
77
80
|
{renderTags(tags)}
|
|
78
81
|
</div>
|
|
79
82
|
</BaseTile>
|
|
@@ -20,6 +20,16 @@ export interface TileImageOptions {
|
|
|
20
20
|
isImageAlwaysOnRight?: boolean;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
export interface PriceItem {
|
|
24
|
+
label?: string;
|
|
25
|
+
amount?: number;
|
|
26
|
+
unit?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface PriceListProps {
|
|
30
|
+
priceList?: PriceItem[];
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
export type BaseProductTileContent = HeadlineProps &
|
|
24
34
|
BenefitsListContent &
|
|
25
35
|
RichTextProps &
|
|
@@ -28,7 +38,8 @@ export type BaseProductTileContent = HeadlineProps &
|
|
|
28
38
|
TagsContent &
|
|
29
39
|
ButtonsSectionContent &
|
|
30
40
|
ImageContent &
|
|
31
|
-
LabelProps &
|
|
41
|
+
LabelProps &
|
|
42
|
+
PriceListProps & {
|
|
32
43
|
imageOptions?: TileImageOptions;
|
|
33
44
|
/** @title Заголовок во всю ширину */
|
|
34
45
|
isFullWidthTitle?: boolean;
|
|
@@ -46,11 +46,11 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
46
46
|
{title ? <div className="relative">{title}</div> : null}
|
|
47
47
|
<div
|
|
48
48
|
className={style(
|
|
49
|
-
'grow relative flex flex-col @
|
|
49
|
+
'grow relative flex flex-col @xl:flex-row gap-3xl',
|
|
50
50
|
leftImage ? 'self-start' : '',
|
|
51
51
|
)}
|
|
52
52
|
>
|
|
53
|
-
{renderImageContainer(leftImage, { imageAlign, className: '
|
|
53
|
+
{renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' })}
|
|
54
54
|
<div
|
|
55
55
|
className={style(
|
|
56
56
|
'grid gap-3xl',
|
|
@@ -104,4 +104,4 @@ const renderImageContainer = (
|
|
|
104
104
|
) : null;
|
|
105
105
|
|
|
106
106
|
const imageSecondaryStyle = (isImageSecondary: boolean) =>
|
|
107
|
-
isImageSecondary ? 'hidden @
|
|
107
|
+
isImageSecondary ? 'hidden @xl:block' : '';
|
|
@@ -39,7 +39,7 @@ const renderButton =
|
|
|
39
39
|
return text || icon?.icon ? (
|
|
40
40
|
<Button
|
|
41
41
|
key={index ? String(index) : ''}
|
|
42
|
-
className={style('basis-full
|
|
42
|
+
className={style('basis-full lg:basis-auto', buttonClassName)}
|
|
43
43
|
appendLeft={renderButtonIcon({ ...icon, iconVersion })}
|
|
44
44
|
appendRight={renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion })}
|
|
45
45
|
version={version}
|
|
@@ -67,7 +67,9 @@ export const DatePicker = JSX<DatePickerProps>(
|
|
|
67
67
|
|
|
68
68
|
return (
|
|
69
69
|
<div className={style(className, 'relative')} ref={ref}>
|
|
70
|
-
<Text size="text-m">
|
|
70
|
+
<Text size="text-m" font-weight="font-light">
|
|
71
|
+
{label}
|
|
72
|
+
</Text>
|
|
71
73
|
{renderDatePickerForm(handleChangeVisibleCalendar, value, valid)}
|
|
72
74
|
{showCalendar ? (
|
|
73
75
|
<div className="absolute bg-white z-10 select-none">
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
2
|
+
import { useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useResizeObserver } from '../../hooks/useResizeObserver';
|
|
3
4
|
|
|
4
5
|
export interface FoldableSectionProps {
|
|
5
6
|
className?: string;
|
|
@@ -9,23 +10,27 @@ export interface FoldableSectionProps {
|
|
|
9
10
|
export const FoldableSection = JSX<FoldableSectionProps>(
|
|
10
11
|
({ className = '', isUnfolded, children }) => {
|
|
11
12
|
const containerRef = useRef<HTMLDivElement | null>(null);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
const childrenWrapperRef = useResizeObserver(
|
|
14
|
+
(childrenWrapperEl) => {
|
|
15
|
+
if (containerRef.current) {
|
|
16
|
+
containerRef.current.style.maxHeight = isUnfolded
|
|
17
|
+
? `${childrenWrapperEl.scrollHeight}px`
|
|
18
|
+
: '';
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
[isUnfolded],
|
|
22
|
+
);
|
|
20
23
|
|
|
21
24
|
return (
|
|
22
25
|
<div
|
|
23
26
|
ref={containerRef}
|
|
24
27
|
className={`transition-max-h duration-300 overflow-hidden ${
|
|
25
28
|
containerRef.current || !isUnfolded ? 'max-h-0' : ''
|
|
26
|
-
}
|
|
29
|
+
} `}
|
|
27
30
|
>
|
|
28
|
-
{
|
|
31
|
+
<div className={className} ref={childrenWrapperRef}>
|
|
32
|
+
{children}
|
|
33
|
+
</div>
|
|
29
34
|
</div>
|
|
30
35
|
);
|
|
31
36
|
},
|
|
@@ -19,7 +19,7 @@ const ITEM_INDENT_MAP: Record<ListItemSize, string> = {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export const List = JSX<ListProps>(
|
|
22
|
-
({ className, hasIndent, isDotted, items, listItemSize = 'M' }) =>
|
|
22
|
+
({ className, hasIndent, isDotted = true, items = [], listItemSize = 'M' }) =>
|
|
23
23
|
items?.length ? (
|
|
24
24
|
<section
|
|
25
25
|
className={style(
|
|
@@ -19,20 +19,18 @@ const DOT_SIZE_MAP = {
|
|
|
19
19
|
XS: 'w-1 h-1 mr-xs',
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export const ListItem = JSX<ListItemProps>(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<div
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
),
|
|
38
|
-
);
|
|
22
|
+
export const ListItem = JSX<ListItemProps>(({ className, isDotted, children, size = 'M' }) => (
|
|
23
|
+
<div className={style('font-sans flex', className)} role="listitem">
|
|
24
|
+
{isDotted ? (
|
|
25
|
+
<div className="shrink-0">
|
|
26
|
+
<div
|
|
27
|
+
className={style(
|
|
28
|
+
'align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white',
|
|
29
|
+
DOT_SIZE_MAP[size],
|
|
30
|
+
)}
|
|
31
|
+
/>
|
|
32
|
+
</div>
|
|
33
|
+
) : null}
|
|
34
|
+
<span>{children}</span>
|
|
35
|
+
</div>
|
|
36
|
+
));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
|
|
3
|
+
import { Text } from '../Text/Text';
|
|
4
|
+
import { type PriceItem, type PriceListProps } from './PriceListProps';
|
|
5
|
+
|
|
6
|
+
export const PriceList = JSX<PriceListProps>(({ priceList }) =>
|
|
7
|
+
priceList?.length ? (
|
|
8
|
+
<div className="flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl">
|
|
9
|
+
{priceList.map(renderPriceListItem)}
|
|
10
|
+
</div>
|
|
11
|
+
) : null,
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const renderPriceListItem = ({ label, amount }: PriceItem) => (
|
|
15
|
+
<div className="basis-full flex flex-col-reverse sm:flex-row sm:justify-between sm:bg-main-divider sm:py-m sm:px-lg sm:rounded-md items-baseline whitespace-pre">
|
|
16
|
+
<Text font="font-light" size="text-l" color="text-secondary-text">
|
|
17
|
+
{label}
|
|
18
|
+
</Text>
|
|
19
|
+
{amount ? (
|
|
20
|
+
<span className="font-sans text-h6 sm:text-primary-main text-primary-text">
|
|
21
|
+
{toLocalNumberFormat(2)(amount)} ₽
|
|
22
|
+
</span>
|
|
23
|
+
) : null}
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { type IconVersion } from '../../model/IconVersion';
|
|
2
3
|
import { style } from '../../utils/style';
|
|
3
4
|
import { Icon } from '../Icon/Icon';
|
|
4
5
|
import { filterOptions } from './filterOptions';
|
|
@@ -6,42 +7,48 @@ import { formatOption } from './formatOption';
|
|
|
6
7
|
import { type Option } from './Option';
|
|
7
8
|
|
|
8
9
|
export interface SelectPopupProps {
|
|
9
|
-
|
|
10
|
+
iconVersion?: IconVersion;
|
|
11
|
+
onChange?: (option: Option) => void;
|
|
10
12
|
options?: Option[];
|
|
11
|
-
|
|
13
|
+
popupRef?: { current: HTMLDivElement | null };
|
|
12
14
|
query?: string;
|
|
13
|
-
|
|
15
|
+
value?: Option;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
|
-
export const SelectPopup = JSX<SelectPopupProps>(
|
|
17
|
-
options
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
e
|
|
31
|
-
|
|
32
|
-
onChange
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
18
|
+
export const SelectPopup = JSX<SelectPopupProps>(
|
|
19
|
+
({ popupRef, options, value, query, onChange, iconVersion }) =>
|
|
20
|
+
options?.length ? (
|
|
21
|
+
<div
|
|
22
|
+
className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md"
|
|
23
|
+
role="listbox"
|
|
24
|
+
ref={popupRef}
|
|
25
|
+
>
|
|
26
|
+
{filterOptions(options, query).map((option) => (
|
|
27
|
+
<div
|
|
28
|
+
key={option.key}
|
|
29
|
+
className="flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative"
|
|
30
|
+
role="option"
|
|
31
|
+
aria-selected={option.key === value?.key}
|
|
32
|
+
onClick={(e) => {
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
if (onChange) {
|
|
35
|
+
onChange(option);
|
|
36
|
+
}
|
|
37
|
+
}}
|
|
38
|
+
>
|
|
39
|
+
<span className="min-h-6">{formatOption(option)}</span>
|
|
40
|
+
<Icon
|
|
41
|
+
name="DoneSimpleIcon"
|
|
42
|
+
width="16"
|
|
43
|
+
height="16"
|
|
44
|
+
iconVersion={iconVersion}
|
|
45
|
+
className={style(
|
|
46
|
+
'absolute right-4 pt-3xs',
|
|
47
|
+
option.key === value?.key ? '' : 'hidden',
|
|
48
|
+
)}
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
))}
|
|
52
|
+
</div>
|
|
53
|
+
) : null,
|
|
47
54
|
);
|
|
@@ -16,6 +16,7 @@ export function useSelectPopup({
|
|
|
16
16
|
query,
|
|
17
17
|
onChange,
|
|
18
18
|
onClose,
|
|
19
|
+
iconVersion,
|
|
19
20
|
}: SelectPopupOptions) {
|
|
20
21
|
const popup = usePopupManager();
|
|
21
22
|
|
|
@@ -50,6 +51,7 @@ export function useSelectPopup({
|
|
|
50
51
|
value={value}
|
|
51
52
|
query={query}
|
|
52
53
|
onChange={handleChange}
|
|
54
|
+
iconVersion={iconVersion}
|
|
53
55
|
/>,
|
|
54
56
|
{
|
|
55
57
|
top: top + window.scrollY + height,
|
package/package.json
CHANGED
package/src/common.css
CHANGED
|
@@ -11,7 +11,6 @@ import { CarouselBankHistoryCard } from './CarouselBankHistoryCard/CarouselBankH
|
|
|
11
11
|
import { CarouselCard } from './CarouselCard/CarouselCard';
|
|
12
12
|
import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
|
|
13
13
|
import { CarouselLinks } from './CarouselLinks/CarouselLinks';
|
|
14
|
-
import { CarouselProductCard } from './CarouselProductCard/CarouselProductCard';
|
|
15
14
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
16
15
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
17
16
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
@@ -26,7 +25,6 @@ import { ImgBlock } from './ImgBlock/ImgBlock';
|
|
|
26
25
|
import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
27
26
|
import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
28
27
|
import { MortgageFiltration } from './MortgageFiltration/MortgageFiltration';
|
|
29
|
-
import { PictureText } from './PictureText/PictureText';
|
|
30
28
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
31
29
|
import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
32
30
|
import { ProductGallery } from './ProductGallery/ProductGallery';
|
|
@@ -56,7 +54,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
56
54
|
CarouselCard,
|
|
57
55
|
CarouselCatalogCard,
|
|
58
56
|
CarouselLinks,
|
|
59
|
-
CarouselProductCard,
|
|
60
57
|
CarouselRecommendationCard,
|
|
61
58
|
CarouselTariffsCard,
|
|
62
59
|
ComparisonTable,
|
|
@@ -71,7 +68,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
71
68
|
ImgBlock,
|
|
72
69
|
LinkDocs,
|
|
73
70
|
MobileAppTile,
|
|
74
|
-
PictureText,
|
|
75
71
|
Placeholder,
|
|
76
72
|
ProductBlock,
|
|
77
73
|
ProductGallery,
|
package/src/components/Blocks.ts
CHANGED
|
@@ -13,9 +13,7 @@ import { CarouselCard } from './CarouselCard/CarouselCard';
|
|
|
13
13
|
import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
|
|
14
14
|
import { CarouselInvestmentCard } from './CarouselInvestmentCard/CarouselInvestmentCard';
|
|
15
15
|
import { CarouselLinks } from './CarouselLinks/CarouselLinks';
|
|
16
|
-
import { CarouselProductCard } from './CarouselProductCard/CarouselProductCard';
|
|
17
16
|
import { CarouselRecommendationCard } from './CarouselRecommendationCard/CarouselRecommendationCard';
|
|
18
|
-
import { CarouselRichTextCard } from './CarouselRichTextCard/CarouselRichTextCard';
|
|
19
17
|
import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
|
|
20
18
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
21
19
|
import { ContactsBlock } from './ContactsBlock/ContactsBlock';
|
|
@@ -36,7 +34,6 @@ import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
|
36
34
|
import { MortgageFiltration } from './MortgageFiltration/MortgageFiltration';
|
|
37
35
|
import { OfficesAtmsMap } from './OfficesAtmsMap/OfficesAtmsMap';
|
|
38
36
|
import { ParagraphBlock } from './ParagraphBlock/ParagraphBlock';
|
|
39
|
-
import { PictureText } from './PictureText/PictureText';
|
|
40
37
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
41
38
|
import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
42
39
|
import { ProductGallery } from './ProductGallery/ProductGallery';
|
|
@@ -70,9 +67,7 @@ export const Blocks: BlocksRegistry = {
|
|
|
70
67
|
CarouselCatalogCard,
|
|
71
68
|
CarouselInvestmentCard,
|
|
72
69
|
CarouselLinks,
|
|
73
|
-
CarouselProductCard,
|
|
74
70
|
CarouselRecommendationCard,
|
|
75
|
-
CarouselRichTextCard,
|
|
76
71
|
CarouselTariffsCard,
|
|
77
72
|
ComparisonTable,
|
|
78
73
|
ContactsBlock,
|
|
@@ -93,7 +88,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
93
88
|
MortgageFiltration,
|
|
94
89
|
OfficesAtmsMap,
|
|
95
90
|
ParagraphBlock,
|
|
96
|
-
PictureText,
|
|
97
91
|
Placeholder,
|
|
98
92
|
ProductBlock,
|
|
99
93
|
ProductGallery,
|
|
@@ -85,6 +85,21 @@ export default {
|
|
|
85
85
|
buttons: [sendRequestButton, detailsButton],
|
|
86
86
|
},
|
|
87
87
|
},
|
|
88
|
+
{
|
|
89
|
+
nav: {
|
|
90
|
+
title: 'Рефинансирование',
|
|
91
|
+
},
|
|
92
|
+
calculatorBlock: {
|
|
93
|
+
calcType: 'RefinancingCalculatorForm',
|
|
94
|
+
paramsViewSettings: {
|
|
95
|
+
isShowSalaryClient: true,
|
|
96
|
+
isShowInsurance: true,
|
|
97
|
+
},
|
|
98
|
+
buttons: [sendRequestButton],
|
|
99
|
+
footnote:
|
|
100
|
+
'Расчёт является предварительным. Точные условия будут предоставлены в отделении Банка.',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
88
103
|
]}
|
|
89
104
|
/>
|
|
90
105
|
),
|