@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,8 +3,18 @@ exports.useDepository = void 0;
|
|
|
3
3
|
const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
|
|
4
4
|
const fetchJSON_1 = require("../../utils/fetchJSON");
|
|
5
5
|
const formatDate_1 = require("../../utils/formatDate");
|
|
6
|
+
const DEPOSITARY_URL = '/api/v1/depository';
|
|
6
7
|
const useDepository = ({ size, page, query, startDate, endDate }) => {
|
|
7
|
-
const
|
|
8
|
+
const formatStartDate = startDate ? (0, formatDate_1.formatDate)(startDate, true) : '';
|
|
9
|
+
const formatEndDate = endDate ? (0, formatDate_1.formatDate)(endDate, true) : '';
|
|
10
|
+
const searchParams = new URLSearchParams(DEPOSITARY_URL);
|
|
11
|
+
searchParams.set('page', String(page));
|
|
12
|
+
searchParams.set('size', String(size));
|
|
13
|
+
searchParams.set('query', query);
|
|
14
|
+
searchParams.set('startDate', formatStartDate);
|
|
15
|
+
searchParams.set('endDate', formatEndDate);
|
|
16
|
+
const queryString = `?${searchParams.toString()}`;
|
|
17
|
+
const { data } = (0, useAsyncData_1.useAsyncData)(DEPOSITARY_URL + queryString, fetchJSON_1.fetchJSONUnsafe);
|
|
8
18
|
return { items: data?.content, totalPages: data?.totalPages };
|
|
9
19
|
};
|
|
10
20
|
exports.useDepository = useDepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDepository.js","sourceRoot":"","sources":["../../../src/components/Depository/useDepository.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AACxE,qDAAwD;AACxD,uDAAoD;
|
|
1
|
+
{"version":3,"file":"useDepository.js","sourceRoot":"","sources":["../../../src/components/Depository/useDepository.ts"],"names":[],"mappings":";;AAAA,2EAA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..._,
|
|
23
23
|
...buttonText,
|
|
24
24
|
icon: { ...iconCustom, iconVersion: 'color' },
|
|
25
|
-
version,
|
|
25
|
+
version: _?.version ?? version,
|
|
26
26
|
};
|
|
27
27
|
});
|
|
28
28
|
const buttonClassName = (0, style_1.style)('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : 'basis-auto', stretched ? 'flex-1 justify-center' : '');
|
|
29
29
|
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col gap-xs', className), children: [(0, jsx_runtime_1.jsx)("div", { className: "flex gap-xs", children: (0, renderButtonsSection_1.renderButtonsSection)(buttons, {
|
|
30
|
-
className: stretched ? '
|
|
30
|
+
className: (0, style_1.style)(stretched || hasText ? 'basis-full' : ''),
|
|
31
31
|
buttonClassName,
|
|
32
32
|
}) }), children ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
|
|
33
33
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AAGvD,mFAAgF;AAChF,iDAA8C;AAC9C,+CAA4C;AAC5C,6CAA0C;AAC1C,qDAAkD;AAUrC,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpF,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,GAAuB,CAAC;IAC9D,MAAM,OAAO,GAAgC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QAC5D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,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|
|
1
|
+
import { type HeadlineVersion } from '../../model/HeadlineType';
|
|
2
2
|
import { type HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
|
|
3
3
|
import { type FontWeight, type TextSize, type TitleSize } from '../../ui-kit/Text/TextProps';
|
|
4
4
|
export declare const headlineVersionStyles: Record<HeadlineVersion, {
|
|
@@ -7,4 +7,3 @@ export declare const headlineVersionStyles: Record<HeadlineVersion, {
|
|
|
7
7
|
descriptionWeight: FontWeight;
|
|
8
8
|
descriptionStyle: string;
|
|
9
9
|
}>;
|
|
10
|
-
export declare const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.
|
|
2
|
+
exports.headlineVersionStyles = void 0;
|
|
3
3
|
exports.headlineVersionStyles = {
|
|
4
4
|
XXL: {
|
|
5
5
|
title: { headingType: 'h0', as: 'h1' },
|
|
@@ -38,15 +38,4 @@ exports.headlineVersionStyles = {
|
|
|
38
38
|
descriptionStyle: 'mt-xs',
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
|
-
// TODO: Move to Gallery and rename
|
|
42
|
-
exports.HEADLINE_SMALL_VERSION = {
|
|
43
|
-
H6: 'text-h6',
|
|
44
|
-
XL_L: 'text-xl-light',
|
|
45
|
-
XL_R: 'text-xl',
|
|
46
|
-
L_L: 'text-l-light',
|
|
47
|
-
L_R: 'text-l',
|
|
48
|
-
M: 'text-m-light',
|
|
49
|
-
S: 'text-s-light',
|
|
50
|
-
XS: 'text-xs-light',
|
|
51
|
-
};
|
|
52
41
|
//# sourceMappingURL=headlineVersionStyles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headlineVersionStyles.js","sourceRoot":"","sources":["../../../src/components/Headline/headlineVersionStyles.ts"],"names":[],"mappings":";;AAIa,QAAA,qBAAqB,GAQ9B;IACF,GAAG,EAAE;QACH,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,aAAa;QAChC,gBAAgB,EAAE,OAAO;KAC1B;IACD,EAAE,EAAE;QACF,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,MAAM;KACzB;IACD,CAAC,EAAE;QACD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,MAAM;KACzB;IACD,CAAC,EAAE;QACD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,MAAM;KACzB;IACD,CAAC,EAAE;QACD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,OAAO;KAC1B;IACD,EAAE,EAAE;QACF,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,QAAQ;QACzB,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,OAAO;KAC1B;CACF,CAAC
|
|
1
|
+
{"version":3,"file":"headlineVersionStyles.js","sourceRoot":"","sources":["../../../src/components/Headline/headlineVersionStyles.ts"],"names":[],"mappings":";;AAIa,QAAA,qBAAqB,GAQ9B;IACF,GAAG,EAAE;QACH,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,aAAa;QAChC,gBAAgB,EAAE,OAAO;KAC1B;IACD,EAAE,EAAE;QACF,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,MAAM;KACzB;IACD,CAAC,EAAE;QACD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,MAAM;KACzB;IACD,CAAC,EAAE;QACD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,MAAM;KACzB;IACD,CAAC,EAAE;QACD,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,SAAS;QAC1B,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,OAAO;KAC1B;IACD,EAAE,EAAE;QACF,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;QACtC,eAAe,EAAE,QAAQ;QACzB,iBAAiB,EAAE,YAAY;QAC/B,gBAAgB,EAAE,OAAO;KAC1B;CACF,CAAC"}
|
|
@@ -6,9 +6,9 @@ const Text_1 = require("../../ui-kit/Text/Text");
|
|
|
6
6
|
const style_1 = require("../../utils/style");
|
|
7
7
|
const colorStyle = {
|
|
8
8
|
yellow: { border: 'border-yellow-light', text: 'text-yellow' },
|
|
9
|
-
green: { border: 'border-green-light', text: 'text-green-dark' },
|
|
9
|
+
green: { border: 'border-green-more-light', text: 'text-green-dark' },
|
|
10
10
|
gray: { border: 'border-gray', text: 'text-secondary-text' },
|
|
11
|
-
red: { border: 'border-error', text: 'text-error' },
|
|
11
|
+
red: { border: 'border-error/30', text: 'text-error' },
|
|
12
12
|
};
|
|
13
13
|
exports.Badge = (0, uni_jsx_1.JSX)(({ className, children, color = 'gray' }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('p-s border border-gray rounded-md flex items-center', colorStyle[color].border, className), children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", color: colorStyle[color].text, children: children }) })));
|
|
14
14
|
//# sourceMappingURL=Badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/Badge.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;AAE1C,MAAM,UAAU,GAAwD;IACtE,MAAM,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,EAAE,aAAa,EAAE;IAC9D,KAAK,EAAE,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/Badge.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;AAE1C,MAAM,UAAU,GAAwD;IACtE,MAAM,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,IAAI,EAAE,aAAa,EAAE;IAC9D,KAAK,EAAE,EAAE,MAAM,EAAE,yBAAyB,EAAE,IAAI,EAAE,iBAAiB,EAAE;IACrE,IAAI,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC5D,GAAG,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE;CACvD,CAAC;AAOW,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,CAChF,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,qDAAqD,EACrD,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,EACxB,SAAS,CACV,YAED,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,YAC9C,QAAQ,GACJ,GACH,CACP,CAAC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { type TextColor } from '../../ui-kit/Text/TextProps';
|
|
1
|
+
import { type TextColor, type TextSize } from '../../ui-kit/Text/TextProps';
|
|
2
2
|
export interface CardCellProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
label?: string;
|
|
5
|
-
|
|
5
|
+
labelSize?: TextSize;
|
|
6
|
+
value?: string | string[];
|
|
6
7
|
subText?: string;
|
|
7
8
|
subColor?: TextColor;
|
|
8
9
|
}
|
|
@@ -4,11 +4,13 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
6
6
|
const style_1 = require("../../utils/style");
|
|
7
|
-
exports.CardCell = (0, uni_jsx_1.JSX)(({
|
|
8
|
-
const textItems = value?.split(',') ?? [];
|
|
9
|
-
if (
|
|
7
|
+
exports.CardCell = (0, uni_jsx_1.JSX)(({ value, subText, children, ...props }) => {
|
|
8
|
+
const textItems = (Array.isArray(value) ? value : value?.split(',') ?? []).filter(Boolean);
|
|
9
|
+
if ([textItems.length, children, subText].every((_) => !_)) {
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
|
-
return (
|
|
12
|
+
return renderCardCell({ textItems, subText, children, ...props });
|
|
13
13
|
});
|
|
14
|
+
const renderCardCell = ({ label, labelSize = 'text-m', textItems, subColor, subText, className, children, }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex gap-2xs flex-col h-full max-w-[300px]', className), children: [label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", size: labelSize, children: label })) : null, children ||
|
|
15
|
+
textItems.filter(Boolean).map((text, i) => ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: text.trim() }, String(i)))), subText ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: subColor, size: "text-m", children: subText })) : null] }));
|
|
14
16
|
//# sourceMappingURL=CardCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardCell.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/CardCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;
|
|
1
|
+
{"version":3,"file":"CardCell.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/CardCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,6CAA0C;AAW7B,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACpF,MAAM,SAAS,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAE3F,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE;QAC1D,OAAO,IAAI,CAAC;KACb;IAED,OAAO,cAAc,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;AACpE,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,EACtB,KAAK,EACL,SAAS,GAAG,QAAQ,EACpB,SAAS,EACT,QAAQ,EACR,OAAO,EACP,SAAS,EACT,QAAQ,GAC+C,EAAE,EAAE,CAAC,CAC5D,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,4CAA4C,EAAE,SAAS,CAAC,aAC3E,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAE,SAAS,YAChE,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ;YACP,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACzC,uBAAC,WAAI,IAAiB,IAAI,EAAC,QAAQ,YAChC,IAAI,CAAC,IAAI,EAAE,IADH,MAAM,CAAC,CAAC,CAAC,CAEb,CACR,CAAC,EACH,OAAO,CAAC,CAAC,CAAC,CACT,uBAAC,WAAI,IAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAC,QAAQ,YACjC,OAAO,GACH,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
|
|
@@ -13,7 +13,9 @@ export interface ExchangeRate {
|
|
|
13
13
|
currencies?: Currency[];
|
|
14
14
|
}
|
|
15
15
|
export declare type WorkScheduleWeek = {
|
|
16
|
+
key?: string;
|
|
16
17
|
title?: string;
|
|
18
|
+
short?: string;
|
|
17
19
|
status?: boolean;
|
|
18
20
|
workTime?: string;
|
|
19
21
|
lunchHour?: string;
|
|
@@ -37,6 +39,9 @@ export declare type WorkSchedule = {
|
|
|
37
39
|
workingFriday?: boolean;
|
|
38
40
|
workingSaturday?: boolean;
|
|
39
41
|
workingSunday?: boolean;
|
|
42
|
+
isMatchesPattern?: boolean;
|
|
43
|
+
businessScheduleVisibleTag?: boolean;
|
|
44
|
+
businessScheduleDescription?: string;
|
|
40
45
|
};
|
|
41
46
|
export declare type SafeBoxCaseTariff = {
|
|
42
47
|
id?: number;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WorkScheduleWeek } from './OfficesAtmsMapProps';
|
|
3
|
+
export declare const getScheduleDescription: (workScheduleWeek: WorkScheduleWeek[]) => JSX.Element;
|
|
4
|
+
export declare const buildScheduleText: ({ workTime, lunchHour, daysOff }: Record<string, string | undefined>, isSaturday?: boolean) => string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.buildScheduleText = exports.getScheduleDescription = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const CardCell_1 = require("./CardCell");
|
|
5
|
+
const getScheduleDescription = (workScheduleWeek) => {
|
|
6
|
+
const workingWeekday = workScheduleWeek.find((_) => _.key !== 'workingSaturday' && Boolean(_.status) && Boolean(_.workTime));
|
|
7
|
+
const workingSaturday = workScheduleWeek.find((_) => _.key === 'workingSaturday' && Boolean(_.status) && Boolean(_.workTime));
|
|
8
|
+
const daysOff = workScheduleWeek
|
|
9
|
+
.filter((_) => !_.status)
|
|
10
|
+
.map((_) => _.short?.toLowerCase())
|
|
11
|
+
.join(', ');
|
|
12
|
+
const rows = [
|
|
13
|
+
(0, exports.buildScheduleText)({
|
|
14
|
+
workTime: workingWeekday?.workTime,
|
|
15
|
+
lunchHour: workingWeekday?.lunchHour,
|
|
16
|
+
daysOff: workingSaturday ? '' : daysOff,
|
|
17
|
+
}),
|
|
18
|
+
(0, exports.buildScheduleText)({ workTime: workingSaturday?.workTime, lunchHour: workingSaturday?.lunchHour, daysOff }, true),
|
|
19
|
+
].filter(Boolean);
|
|
20
|
+
return (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u0431\u043E\u0442\u044B", value: rows, className: "max-w-none" });
|
|
21
|
+
};
|
|
22
|
+
exports.getScheduleDescription = getScheduleDescription;
|
|
23
|
+
const buildScheduleText = ({ workTime = '', lunchHour = '', daysOff = '' }, isSaturday = false) => {
|
|
24
|
+
if (!workTime) {
|
|
25
|
+
return '';
|
|
26
|
+
}
|
|
27
|
+
return [
|
|
28
|
+
`${isSaturday ? 'Суббота' : 'Будние дни'}: ${workTime}`,
|
|
29
|
+
lunchHour ? `перерыв: ${lunchHour}` : '',
|
|
30
|
+
daysOff ? `не работает: ${daysOff}` : '',
|
|
31
|
+
]
|
|
32
|
+
.filter(Boolean)
|
|
33
|
+
.join('; ');
|
|
34
|
+
};
|
|
35
|
+
exports.buildScheduleText = buildScheduleText;
|
|
36
|
+
//# sourceMappingURL=getScheduleDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getScheduleDescription.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/getScheduleDescription.tsx"],"names":[],"mappings":";;;AAAA,yCAAsC;AAG/B,MAAM,sBAAsB,GAAG,CAAC,gBAAoC,EAAE,EAAE;IAC7E,MAAM,cAAc,GAAG,gBAAgB,CAAC,IAAI,CAC1C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,iBAAiB,IAAI,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAC/E,CAAC;IAEF,MAAM,eAAe,GAAG,gBAAgB,CAAC,IAAI,CAC3C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,iBAAiB,IAAI,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAC/E,CAAC;IAEF,MAAM,OAAO,GAAG,gBAAgB;SAC7B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC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AC;AAfW,QAAA,iBAAiB,qBAe5B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.getWorkScheduleWeek = exports.WEEKDAY_MAP = void 0;
|
|
3
|
+
exports.WEEKDAY_MAP = [
|
|
4
|
+
['workingMonday', 'Пн', 'Понедельник'],
|
|
5
|
+
['workingTuesday', 'Вт', 'Вторник'],
|
|
6
|
+
['workingWednesday', 'Ср', 'Среда'],
|
|
7
|
+
['workingThursday', 'Чт', 'Четверг'],
|
|
8
|
+
['workingFriday', 'Пт', 'Пятница'],
|
|
9
|
+
['workingSaturday', 'Сб', 'Суббота'],
|
|
10
|
+
['workingSunday', 'Вс', 'Воскресенье'],
|
|
11
|
+
];
|
|
12
|
+
const getWorkScheduleWeek = (workSchedule) => exports.WEEKDAY_MAP.map(([key, short, title]) => ({
|
|
13
|
+
key,
|
|
14
|
+
title,
|
|
15
|
+
short,
|
|
16
|
+
status: Boolean(workSchedule?.[key]),
|
|
17
|
+
get workTime() {
|
|
18
|
+
return key === 'workingSaturday' ? workSchedule?.workTimeSaturday : workSchedule?.workTime;
|
|
19
|
+
},
|
|
20
|
+
get lunchHour() {
|
|
21
|
+
return key === 'workingSaturday' ? workSchedule?.lunchHourSaturday : workSchedule?.lunchHour;
|
|
22
|
+
},
|
|
23
|
+
get hasLunch() {
|
|
24
|
+
return /\d+/.test(this.lunchHour ?? '');
|
|
25
|
+
},
|
|
26
|
+
}));
|
|
27
|
+
exports.getWorkScheduleWeek = getWorkScheduleWeek;
|
|
28
|
+
//# sourceMappingURL=getWorkScheduleWeek.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWorkScheduleWeek.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx"],"names":[],"mappings":";;AAEa,QAAA,WAAW,GAAG;IACzB,CAAC,eAAe,EAAE,IAAI,EAAE,aAAa,CAAC;IACtC,CAAC,gBAAgB,EAAE,IAAI,EAAE,SAAS,CAAC;IACnC,CAAC,kBAAkB,EAAE,IAAI,EAAE,OAAO,CAAC;IACnC,CAAC,iBAAiB,EAAE,IAAI,EAAE,SAAS,CAAC;IACpC,CAAC,eAAe,EAAE,IAAI,EAAE,SAAS,CAAC;IAClC,CAAC,iBAAiB,EAAE,IAAI,EAAE,SAAS,CAAC;IACpC,CAAC,eAAe,EAAE,IAAI,EAAE,aAAa,CAAC;CACvC,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,YAA2B,EAAsB,EAAE,CACrF,mBAAW,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IACxC,GAAG;IACH,KAAK;IACL,KAAK;IACL,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC,GAAG,CAAC,CAAC;IACpC,IAAI,QAAQ;QACV,OAAO,GAAG,KAAK,iBAAiB,CAAC,CAAC,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAC,YAAY,EAAE,QAAQ,CAAC;IAC7F,CAAC;IACD,IAAI,SAAS;QACX,OAAO,GAAG,KAAK,iBAAiB,CAAC,CAAC,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC,CAAC,YAAY,EAAE,SAAS,CAAC;IAC/F,CAAC;IACD,IAAI,QAAQ;QACV,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF,CAAC,CAAC,CAAC;AAfO,QAAA,mBAAmB,uBAe1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WorkScheduleWeek } from './OfficesAtmsMapProps';
|
|
3
|
+
export declare const renderBusinessSchedule: (scheduleDescription?: string) => JSX.Element | null;
|
|
4
|
+
export declare const getBusinessSchedule: (scheduleDescription: string) => {
|
|
5
|
+
short: string;
|
|
6
|
+
status: boolean;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const renderAlternativeDay: ({ short, status }: WorkScheduleWeek, index: number) => JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderAlternativeDay = exports.getBusinessSchedule = exports.renderBusinessSchedule = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
5
|
+
const style_1 = require("../../utils/style");
|
|
6
|
+
const CardCell_1 = require("./CardCell");
|
|
7
|
+
const CardRow_1 = require("./CardRow");
|
|
8
|
+
const getWorkScheduleWeek_1 = require("./getWorkScheduleWeek");
|
|
9
|
+
const renderBusinessSchedule = (scheduleDescription) => {
|
|
10
|
+
if (!scheduleDescription) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
const businessSchedule = (0, exports.getBusinessSchedule)(scheduleDescription);
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)(CardRow_1.CardRow, { className: "border-none", children: [(0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", labelSize: "text-l", children: (0, jsx_runtime_1.jsx)("div", { className: "flex gap-1", children: businessSchedule.map(exports.renderAlternativeDay) }) }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u0431\u043E\u0442\u044B", className: "max-w-none", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { children: scheduleDescription }) })] }));
|
|
15
|
+
};
|
|
16
|
+
exports.renderBusinessSchedule = renderBusinessSchedule;
|
|
17
|
+
const getBusinessSchedule = (scheduleDescription) => {
|
|
18
|
+
const weekDayMap = getWorkScheduleWeek_1.WEEKDAY_MAP.map(([, short]) => ({ short, status: true }));
|
|
19
|
+
const splittedScheduleDescription = scheduleDescription.split('/') ?? [];
|
|
20
|
+
const lastPartScheduleDescription = splittedScheduleDescription[splittedScheduleDescription.length - 1]?.toLowerCase();
|
|
21
|
+
if (!lastPartScheduleDescription?.includes('выходной')) {
|
|
22
|
+
return weekDayMap;
|
|
23
|
+
}
|
|
24
|
+
return weekDayMap.map((_) => ({
|
|
25
|
+
..._,
|
|
26
|
+
status: !lastPartScheduleDescription?.includes(_.short.toLowerCase()),
|
|
27
|
+
}));
|
|
28
|
+
};
|
|
29
|
+
exports.getBusinessSchedule = getBusinessSchedule;
|
|
30
|
+
const renderAlternativeDay = ({ short, status }, index) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('w-9 h-9 rounded-md flex items-center justify-center', status ? 'bg-green-more-light text-green-dark' : 'bg-error/30 text-error'), children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xs", children: short }) }, String(index)));
|
|
31
|
+
exports.renderAlternativeDay = renderAlternativeDay;
|
|
32
|
+
//# sourceMappingURL=renderBusinessSchedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderBusinessSchedule.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderBusinessSchedule.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,6CAA0C;AAC1C,yCAAsC;AACtC,uCAAoC;AACpC,+DAAoD;AAG7C,MAAM,sBAAsB,GAAG,CAAC,mBAA4B,EAAE,EAAE;IACrE,IAAI,CAAC,mBAAmB,EAAE;QACxB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,gBAAgB,GAAG,IAAA,2BAAmB,EAAC,mBAAmB,CAAC,CAAC;IAElE,OAAO,CACL,wBAAC,iBAAO,IAAC,SAAS,EAAC,aAAa,aAC9B,uBAAC,mBAAQ,IAAC,KAAK,EAAC,0GAAqB,EAAC,SAAS,EAAC,QAAQ,YACtD,gCAAK,SAAS,EAAC,YAAY,YAA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IAAI,EAAC,SAAS,YAAE,KAAK,GAAQ,IAN9B,MAAM,CAAC,KAAK,CAAC,CAOd,CACP,CAAC;AAVW,QAAA,oBAAoB,wBAU/B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type Branch, type Currency, type WorkScheduleWeek } from './OfficesAtmsMapProps';
|
|
3
|
-
export declare const renderOfficeCard: ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }: Branch, index: number) => JSX.Element;
|
|
3
|
+
export declare const renderOfficeCard: ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }: Branch, index: number) => JSX.Element | null;
|
|
4
4
|
export declare const renderCurrency: ({ currency, buyExchangeRate, saleExchangeRate }: Currency, i: number) => JSX.Element;
|
|
5
|
-
export declare const renderCurrentDaySchedule: (workScheduleWeek?: WorkScheduleWeek) => JSX.Element | null;
|
|
5
|
+
export declare const renderCurrentDaySchedule: (workScheduleWeek?: WorkScheduleWeek[]) => JSX.Element | null;
|
|
6
6
|
export declare const renderDay: ({ title, status, workTime, lunchHour, hasLunch }: WorkScheduleWeek, index: number) => JSX.Element;
|
|
@@ -6,45 +6,41 @@ const Text_1 = require("../../ui-kit/Text/Text");
|
|
|
6
6
|
const Badge_1 = require("./Badge");
|
|
7
7
|
const CardCell_1 = require("./CardCell");
|
|
8
8
|
const CardRow_1 = require("./CardRow");
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
['Среда', 'workingWednesday'],
|
|
13
|
-
['Четверг', 'workingThursday'],
|
|
14
|
-
['Пятница', 'workingFriday'],
|
|
15
|
-
['Суббота', 'workingSaturday'],
|
|
16
|
-
['Воскресенье', 'workingSunday'],
|
|
17
|
-
];
|
|
9
|
+
const getScheduleDescription_1 = require("./getScheduleDescription");
|
|
10
|
+
const getWorkScheduleWeek_1 = require("./getWorkScheduleWeek");
|
|
11
|
+
const renderBusinessSchedule_1 = require("./renderBusinessSchedule");
|
|
18
12
|
const currentWeekDayIdx = new Date().getDay();
|
|
19
13
|
const renderOfficeCard = ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }, index) => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
if (!workSchedule) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
const workScheduleWeek = (0, getWorkScheduleWeek_1.getWorkScheduleWeek)(workSchedule);
|
|
18
|
+
const labelSchedule = workSchedule?.businessScheduleVisibleTag
|
|
19
|
+
? 'Для физических лиц'
|
|
20
|
+
: 'Для физических и юридических лиц';
|
|
21
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h4", children: name }), (0, exports.renderCurrentDaySchedule)(workScheduleWeek)] }), address ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex pb-xl pt-xs gap-2xs", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "GeolocationIcon", width: "24", height: "24" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", children: address })] })) : null, (0, jsx_runtime_1.jsxs)(CardRow_1.CardRow, { className: "flex-wrap", children: [(0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0424\u0430\u043A\u0441", value: fax }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D \u0444\u0438\u043B\u0438\u0430\u043B\u0430", value: phone }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0439 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneBusiness }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneNatural }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0414\u043B\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u0446\u0438\u0439 \u043F\u043E \u0432\u0430\u043B\u044E\u0442\u043D\u043E\u043C\u0443 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044E", value: phoneCurrencyControl }), (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442-\u0446\u0435\u043D\u0442\u0440", value: phoneCallCentre })] }), workSchedule.isMatchesPattern ? ((0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { children: (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: labelSchedule, labelSize: "text-l", className: "w-full max-w-none", children: (0, jsx_runtime_1.jsx)("div", { className: "flex justify-between pt-xs", children: workScheduleWeek?.map(exports.renderDay) }) }) })) : ((0, jsx_runtime_1.jsxs)(CardRow_1.CardRow, { children: [(0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: labelSchedule, labelSize: "text-l", children: (0, jsx_runtime_1.jsx)("div", { className: "flex gap-1", children: workScheduleWeek?.map(renderBusinessSchedule_1.renderAlternativeDay) }) }), (0, getScheduleDescription_1.getScheduleDescription)(workScheduleWeek)] })), workSchedule?.businessScheduleVisibleTag
|
|
22
|
+
? (0, renderBusinessSchedule_1.renderBusinessSchedule)(workSchedule?.businessScheduleDescription)
|
|
23
|
+
: null, exchangeRate?.currencies?.length ? ((0, jsx_runtime_1.jsx)(CardRow_1.CardRow, { className: "flex-wrap", children: exchangeRate?.currencies?.map(exports.renderCurrency) })) : null] }, String(index)));
|
|
23
24
|
};
|
|
24
25
|
exports.renderOfficeCard = renderOfficeCard;
|
|
25
|
-
const getWorkScheduleWeek = (workSchedule) => WEEKDAY_MAP.map(([title, key]) => {
|
|
26
|
-
const dayOff = ['workingSaturday', 'workingSunday'].includes(key);
|
|
27
|
-
return {
|
|
28
|
-
title,
|
|
29
|
-
status: Boolean(workSchedule?.[key]),
|
|
30
|
-
workTime: dayOff ? workSchedule?.workTimeSaturday : workSchedule?.workTime,
|
|
31
|
-
lunchHour: dayOff ? workSchedule?.lunchHourSaturday : workSchedule?.lunchHour,
|
|
32
|
-
get hasLunch() {
|
|
33
|
-
return /\d+/.test(this.lunchHour ?? '');
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
26
|
const renderCurrency = ({ currency, buyExchangeRate, saleExchangeRate }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-lg h-full", children: [currency?.currency ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", value: currency.currency }) : null, buyExchangeRate ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041A\u0443\u043F\u0438\u0442\u044C", value: String(buyExchangeRate) }) : null, saleExchangeRate ? (0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C", value: String(saleExchangeRate) }) : null] }, String(i)));
|
|
38
27
|
exports.renderCurrency = renderCurrency;
|
|
39
28
|
//TODO: Add logic time https://github.com/redneckz/wildless-cms-uni-blocks/pull/1549
|
|
40
29
|
const renderCurrentDaySchedule = (workScheduleWeek) => {
|
|
41
|
-
|
|
30
|
+
const [currentWeekDay] = workScheduleWeek?.slice(currentWeekDayIdx - 1) ?? [];
|
|
31
|
+
if (!currentWeekDay) {
|
|
42
32
|
return null;
|
|
43
33
|
}
|
|
44
|
-
const { lunchHour, status, workTime, hasLunch } =
|
|
45
|
-
return status ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-s", children: [workTime ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "green", children: workTime }) : null, lunchHour && hasLunch ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "yellow", children: lunchHour }) : null] })) : ((0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "red", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }));
|
|
34
|
+
const { lunchHour, status, workTime, hasLunch } = currentWeekDay;
|
|
35
|
+
return status ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-s items-start whitespace-nowrap", children: [workTime ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "green", children: workTime }) : null, lunchHour && hasLunch ? (0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "yellow", children: `перерыв: ${lunchHour}` }) : null] })) : ((0, jsx_runtime_1.jsx)(Badge_1.Badge, { color: "red", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }));
|
|
46
36
|
};
|
|
47
37
|
exports.renderCurrentDaySchedule = renderCurrentDaySchedule;
|
|
48
|
-
const renderDay = ({ title, status, workTime, lunchHour, hasLunch }, index) => ((0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: title, value: status && workTime ? workTime : '', subText:
|
|
38
|
+
const renderDay = ({ title, status, workTime, lunchHour, hasLunch }, index) => ((0, jsx_runtime_1.jsx)(CardCell_1.CardCell, { label: title, value: status && workTime ? workTime : '', subText: getSubTextLunch(lunchHour, hasLunch, status), subColor: !status || hasLunch ? 'text-error' : 'text-green-dark' }, String(index)));
|
|
49
39
|
exports.renderDay = renderDay;
|
|
40
|
+
const getSubTextLunch = (lunchHour, hasLunch = false, status = false) => {
|
|
41
|
+
if (!status) {
|
|
42
|
+
return 'Не работает';
|
|
43
|
+
}
|
|
44
|
+
return lunchHour && hasLunch ? `Перерыв ${lunchHour}` : lunchHour;
|
|
45
|
+
};
|
|
50
46
|
//# sourceMappingURL=renderOfficeCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderOfficeCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderOfficeCard.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,iDAA8C;AAC9C,mCAAgC;AAChC,yCAAsC;AACtC,uCAAoC;
|
|
1
|
+
{"version":3,"file":"renderOfficeCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderOfficeCard.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,iDAA8C;AAC9C,mCAAgC;AAChC,yCAAsC;AACtC,uCAAoC;AACpC,qEAAkE;AAClE,+DAA4D;AAE5D,qEAAwF;AAExF,MAAM,iBAAiB,GAAG,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC;AAEvC,MAAM,gBAAgB,GAAG,CAC9B,EACE,IAAI,EACJ,OAAO,EACP,KAAK,EACL,GAAG,EACH,aAAa,EACb,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,YAAY,GACL,EACT,KAAa,EACb,EAAE;IACF,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,gBAAgB,GAAG,IAAA,yCAAmB,EAAC,YAAY,CAAC,CAAC;IAC3D,MAAM,aAAa,GAAG,YAAY,EAAE,0BAA0B;QAC5D,CAAC,CAAC,oBAAoB;QACtB,CAAC,CAAC,kCAAkC,CAAC;IAEvC,OAAO,CACL,iCAAyB,SAAS,EAAC,gDAAgD,aACjF,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,YAAE,IAAI,GAAQ,EACjC,IAAA,gCAAwB,EAAC,gBAAgB,CAAC,IACvC,EACL,OAAO,CAAC,CAAC,CAAC,CACT,iCAAK,SAAS,EAAC,0BAA0B,aACvC,uBAAC,WAAI,IAAC,IAAI,EAAC,iBAAiB,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM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AC,WAAW,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACpE,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
1
2
|
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
2
3
|
/**
|
|
3
4
|
* @title Форматированный текст
|
|
4
5
|
*/
|
|
5
|
-
export declare type RichTextBlockContent = RichTextProps;
|
|
6
|
+
export declare type RichTextBlockContent = UniBlockContent & RichTextProps;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.useResizeObserver = void 0;
|
|
3
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
4
|
+
function useResizeObserver(callback, deps) {
|
|
5
|
+
const ref = (0, hooks_1.useRef)(null);
|
|
6
|
+
(0, hooks_1.useEffect)(() => {
|
|
7
|
+
const element = ref?.current;
|
|
8
|
+
if (!element) {
|
|
9
|
+
return undefined;
|
|
10
|
+
}
|
|
11
|
+
const observer = new ResizeObserver((entries) => {
|
|
12
|
+
callback(element, entries[0]);
|
|
13
|
+
});
|
|
14
|
+
observer.observe(element);
|
|
15
|
+
return () => {
|
|
16
|
+
observer.disconnect();
|
|
17
|
+
};
|
|
18
|
+
}, [callback, ...deps]);
|
|
19
|
+
return ref;
|
|
20
|
+
}
|
|
21
|
+
exports.useResizeObserver = useResizeObserver;
|
|
22
|
+
//# sourceMappingURL=useResizeObserver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResizeObserver.js","sourceRoot":"","sources":["../../src/hooks/useResizeObserver.ts"],"names":[],"mappings":";;AAAA,uDAAgE;AAEhE,SAAgB,iBAAiB,CAC/B,QAAyD,EACzD,IAAU;IAEV,MAAM,GAAG,GAAG,IAAA,cAAM,EAAW,IAAI,CAAC,CAAC;IAEnC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,OAAO,GAAG,GAAG,EAAE,OAAO,CAAC;QAE7B,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,SAAS,CAAC;SAClB;QAED,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAC,CAAC,OAAO,EAAE,EAAE;YAC9C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;QAEH,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAE1B,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,UAAU,EAAE,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;IAExB,OAAO,GAAG,CAAC;AACb,CAAC;AAzBD,8CAyBC"}
|
|
@@ -7,11 +7,6 @@ import { type TextAlign } from '../ui-kit/Text/TextProps';
|
|
|
7
7
|
* @enumNames ["Самый большой", "Очень большой", "Большой", "Средний", "Маленький", "Самый маленький"]
|
|
8
8
|
*/
|
|
9
9
|
export declare type HeadlineVersion = 'XXL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
10
|
-
/**
|
|
11
|
-
* @title Размер заголовка
|
|
12
|
-
* @enumNames ["Заголовок", "Самый большой тонкий", "Самый большой", "Очень большой тонкий", "Очень большой", "Большой", "Средний", "Маленький"]
|
|
13
|
-
*/
|
|
14
|
-
export declare type HeadlineSmallVersion = 'H6' | 'XL_L' | 'XL_R' | 'L_L' | 'L_R' | 'M' | 'S' | 'XS';
|
|
15
10
|
export declare type TitleProps = {
|
|
16
11
|
/** @title Заголовок */
|
|
17
12
|
title?: string;
|
|
@@ -40,6 +35,3 @@ export declare type HeadlineCommonProps = TitleProps & DescriptionProps & AlignP
|
|
|
40
35
|
export declare type HeadlineProps = HeadlineCommonProps & {
|
|
41
36
|
headlineVersion?: HeadlineVersion;
|
|
42
37
|
};
|
|
43
|
-
export declare type HeadlineSmallProps = HeadlineCommonProps & {
|
|
44
|
-
headlineSmallVersion?: HeadlineSmallVersion;
|
|
45
|
-
};
|
|
@@ -8,13 +8,14 @@ const BenefitsList_1 = require("../BenefitsList/BenefitsList");
|
|
|
8
8
|
const renderButtonsSection_1 = require("../Button/renderButtonsSection");
|
|
9
9
|
const Img_1 = require("../Img/Img");
|
|
10
10
|
const List_1 = require("../List/List");
|
|
11
|
+
const PriceList_1 = require("../PriceList/PriceList");
|
|
11
12
|
const RichText_1 = require("../RichText/RichText");
|
|
12
13
|
const Tags_1 = require("../Tags/Tags");
|
|
13
|
-
exports.BaseProductTile = (0, uni_jsx_1.JSX)(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, children, }) => {
|
|
14
|
+
exports.BaseProductTile = (0, uni_jsx_1.JSX)(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle, items, isDotted = true, priceList = [], listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, children, }) => {
|
|
14
15
|
const img = image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null;
|
|
15
16
|
const headline = renderHeadline({ title, description, headlineVersion, align });
|
|
16
17
|
const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...(0, exports.leftOrRightImage)(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? ((0, jsx_runtime_1.jsx)(BenefitsList_1.BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...(0, exports.leftOrRightImage)(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? ((0, jsx_runtime_1.jsx)(BenefitsList_1.BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, priceList?.length ? (0, jsx_runtime_1.jsx)(PriceList_1.PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
|
|
18
19
|
});
|
|
19
20
|
const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
20
21
|
exports.leftOrRightImage = leftOrRightImage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings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EAAE,EAAE,CACxF,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,CACrB,uBAAC,mBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,IAAI,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
1
|
+
{"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;AAI9D,mDAAgD;AAChD,+DAA4D;AAC5D,yEAAsE;AACtE,oCAAiC;AACjC,uCAAoC;AACpC,sDAAmD;AACnD,mDAAgD;AAChD,uCAAoC;AAMvB,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EACC,SAAS,EACT,OAAO,EACP,cAAc,EACd,KAAK,EACL,WAAW,EACX,eAAe,GAAG,GAAG,EACrB,KAAK,GAAG,WAAW,EACnB,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,MAAM,EACN,gBAAgB,EAChB,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,SAAS,GAAG,EAAE,EACd,YAAY,EACZ,IAAI,GAAG,EAAE,EACT,OAAO,EACP,KAAK,EACL,YAAY,EAAE,EACZ,UAAU,GAAG,QAAQ,EACrB,cAAc,GAAG,IAAI,EACrB,oBAAoB,EACpB,gBAAgB,GAAG,KAAK,GACzB,GAAG,EAAE,EACN,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACtD,MAAM,QAAQ,GAAG,cAAc,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,CAAC;IAChF,MAAM,gBAAgB,GA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,CAAC,CACF,CAAC;AAEK,MAAM,gBAAgB,GAAG,CAAC,GAAU,EAAE,cAAuB,EAAE,EAAE,CACtE,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;AAD/C,QAAA,gBAAgB,oBAC+B;AAE5D,MAAM,UAAU,GAAG,CAAC,IAAc,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AASpF,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,EAAkB,EAAE,EAAE,CACxF,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,CACrB,uBAAC,mBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,IAAI,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -18,7 +18,15 @@ export interface TileImageOptions {
|
|
|
18
18
|
/** @title Изображение всегда справа */
|
|
19
19
|
isImageAlwaysOnRight?: boolean;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export interface PriceItem {
|
|
22
|
+
label?: string;
|
|
23
|
+
amount?: number;
|
|
24
|
+
unit?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface PriceListProps {
|
|
27
|
+
priceList?: PriceItem[];
|
|
28
|
+
}
|
|
29
|
+
export declare type BaseProductTileContent = HeadlineProps & BenefitsListContent & RichTextProps & ListContent & BulletsProps & TagsContent & ButtonsSectionContent & ImageContent & LabelProps & PriceListProps & {
|
|
22
30
|
imageOptions?: TileImageOptions;
|
|
23
31
|
/** @title Заголовок во всю ширину */
|
|
24
32
|
isFullWidthTitle?: boolean;
|
|
@@ -8,7 +8,7 @@ const imageAlignmentMap = {
|
|
|
8
8
|
center: '@xl:self-center',
|
|
9
9
|
end: '@xl:self-end',
|
|
10
10
|
};
|
|
11
|
-
exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, children, }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className), children: [title ? (0, jsx_runtime_1.jsx)("div", { className: "relative", children: title }) : null, (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('grow relative flex flex-col @
|
|
11
|
+
exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, children, }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className), children: [title ? (0, jsx_runtime_1.jsx)("div", { className: "relative", children: title }) : null, (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('grow relative flex flex-col @xl:flex-row gap-3xl', leftImage ? 'self-start' : ''), children: [renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' }), (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow'), children: [(0, jsx_runtime_1.jsxs)("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderImageContainer(rightImage, {
|
|
12
12
|
className: (0, style_1.style)('@xl:justify-self-end @xl:col-start-2', buttons ? rowSpanStyle(isImageAlwaysOnRight) : '', positionStyle(isImageAlwaysOnRight), imageSecondaryStyle(isImageSecondary)),
|
|
13
13
|
imageAlign,
|
|
14
14
|
}), renderButtons(buttons)] })] })] })));
|
|
@@ -16,5 +16,5 @@ const rowSpanStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'row-span-
|
|
|
16
16
|
const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'justify-self-end col-start-2 self-center' : '';
|
|
17
17
|
const renderButtons = (buttons) => buttons ? (0, jsx_runtime_1.jsx)("div", { className: "self-end", children: buttons }) : null;
|
|
18
18
|
const renderImageContainer = (image, { className, imageAlign }) => image ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('shrink-1/2 justify-self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
19
|
-
const imageSecondaryStyle = (isImageSecondary) => isImageSecondary ? 'hidden @
|
|
19
|
+
const imageSecondaryStyle = (isImageSecondary) => isImageSecondary ? 'hidden @xl:block' : '';
|
|
20
20
|
//# sourceMappingURL=BaseTile.js.map
|