@redneckz/wildless-cms-uni-blocks 0.14.29 → 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.29.js +1 -33
- package/bin/migration-scripts/0.14.30.js +54 -0
- package/bin/utils.js +36 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +179 -67
- 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/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/hooks/useResizeObserver.d.ts +3 -0
- 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 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -2
- 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/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- 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/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/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/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/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/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/dist/{components/PictureText/PictureTextContent.js → 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 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -2
- 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/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- 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/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/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/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/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/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 +48 -25
- 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/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/hooks/useResizeObserver.d.ts +3 -0
- 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 -2
- 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/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- 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/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/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/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/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/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/mobile/dist/{components/PictureText/PictureTextContent.js → 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 -2
- 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/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- 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/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/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/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/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/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 -2
- 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/CarouselCard/CarouselCard.tsx +1 -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/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/hooks/useResizeObserver.ts +28 -0
- 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/DatePicker/DatePicker.tsx +3 -1
- package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +16 -11
- 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 -2
- package/src/components/Blocks.ts +0 -2
- 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/CarouselCard/CarouselCard.tsx +1 -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/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/StepsBlock/StepsBlock.tsx +7 -4
- package/src/hooks/useResizeObserver.ts +28 -0
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +3 -0
- package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +12 -1
- package/src/ui-kit/DatePicker/DatePicker.tsx +3 -1
- package/src/ui-kit/Foldable/FoldableSection.tsx +16 -11
- 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/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/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/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/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/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/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/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/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
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
2
|
-
import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
|
|
3
|
-
/**
|
|
4
|
-
* @title Картинка с текстом
|
|
5
|
-
*/
|
|
6
|
-
export declare type PictureTextContent = UniBlockContent & BaseProductTileContent & {
|
|
7
|
-
/** @title Ежемесячный лимит */
|
|
8
|
-
monthLimit?: number;
|
|
9
|
-
/** @title Страховая сумма */
|
|
10
|
-
sum?: number;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PictureTextContent.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureTextContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
3
|
-
import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat.js';
|
|
4
|
-
export const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? (_jsxs("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма', sum) : null, Number(monthLimit) > 0 ? renderValueBlock('Ежемесячный лимит', monthLimit) : null] })) : null;
|
|
5
|
-
const renderValueBlock = (title, value = 0) => (_jsxs("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", children: [_jsx(Text, { font: "font-light", size: "text-l", color: "text-secondary-text", children: title }), _jsxs("span", { className: "font-sans text-h6 sm:text-primary-main text-primary-text", children: [toLocalNumberFormat(2)(value), " \u20BD"] })] }));
|
|
6
|
-
//# sourceMappingURL=renderInsuranceSumMonth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderInsuranceSumMonth.js","sourceRoot":"","sources":["../../../src/components/PictureText/renderInsuranceSumMonth.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAY,EAAE,UAAmB,EAAE,EAAE,CAC3E,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAClB,eAAK,SAAS,EAAC,4EAA4E,aACxF,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EACjE,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,IAC9E,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,KAAK,GAAG,CAAC,EAAE,EAAE,CAAC,CACrD,eAAK,SAAS,EAAC,iJAAiJ,aAC9J,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,qBAAqB,YAC9D,KAAK,GACD,EACP,gBAAM,SAAS,EAAC,0DAA0D,aACvE,mBAAmB,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,eACzB,IACH,CACP,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
2
|
-
|
|
3
|
-
export const renderLunchHour = (lunchHour: string) => {
|
|
4
|
-
const hasLunch = /\d+/gi.test(lunchHour);
|
|
5
|
-
|
|
6
|
-
return hasLunch ? (
|
|
7
|
-
<div className="flex flex-row w-full pb-2xs">
|
|
8
|
-
<div className="pr-s">
|
|
9
|
-
<Text size="text-l" color="text-error">
|
|
10
|
-
Перерыв
|
|
11
|
-
</Text>
|
|
12
|
-
</div>
|
|
13
|
-
<div>
|
|
14
|
-
<Text size="text-l" color="text-error">
|
|
15
|
-
{lunchHour}
|
|
16
|
-
</Text>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
) : (
|
|
20
|
-
<div className="items-center w-full pb-2xs">
|
|
21
|
-
<div>
|
|
22
|
-
<Text size="text-m" color="text-primary-main" font="font-light">
|
|
23
|
-
{lunchHour}
|
|
24
|
-
</Text>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"title": "Блок с картинкой",
|
|
4
|
-
"description": "Описание",
|
|
5
|
-
"headlineVersion": "M",
|
|
6
|
-
"align": "text-center",
|
|
7
|
-
"image": {
|
|
8
|
-
"format": "webp",
|
|
9
|
-
"size": {
|
|
10
|
-
"width": 400,
|
|
11
|
-
"height": 300
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"version": "primary",
|
|
15
|
-
"benefits": [
|
|
16
|
-
{
|
|
17
|
-
"type": "default",
|
|
18
|
-
"label": "Преимущество №1",
|
|
19
|
-
"icon": {
|
|
20
|
-
"format": "webp",
|
|
21
|
-
"icon": "ShieldTickIcon"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"type": "default",
|
|
26
|
-
"label": "Преимущество №2",
|
|
27
|
-
"icon": {
|
|
28
|
-
"format": "webp",
|
|
29
|
-
"icon": "ShieldTickIcon"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"sum": 500000,
|
|
34
|
-
"monthLimit": 25000,
|
|
35
|
-
"imageOptions": {
|
|
36
|
-
"directionRight": false,
|
|
37
|
-
"imageAlign": "center"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import { type PictureTextContent } from './PictureTextContent';
|
|
6
|
-
import { renderInsuranceSumMonth } from './renderInsuranceSumMonth';
|
|
7
|
-
|
|
8
|
-
export interface PictureTextProps extends PictureTextContent, UniBlockProps {}
|
|
9
|
-
|
|
10
|
-
export const PictureText = JSX<PictureTextProps>(
|
|
11
|
-
({
|
|
12
|
-
className,
|
|
13
|
-
padding,
|
|
14
|
-
headlineVersion = 'M',
|
|
15
|
-
align = 'text-center',
|
|
16
|
-
sum,
|
|
17
|
-
monthLimit,
|
|
18
|
-
imageOptions,
|
|
19
|
-
...rest
|
|
20
|
-
}) => (
|
|
21
|
-
<BlockWrapper className={className} padding="p-0" {...rest}>
|
|
22
|
-
<BaseProductTile
|
|
23
|
-
className="h-full"
|
|
24
|
-
defaultPadding="p-6xl"
|
|
25
|
-
padding={padding}
|
|
26
|
-
headlineVersion={headlineVersion}
|
|
27
|
-
align={align}
|
|
28
|
-
isFullWidthTitle={true}
|
|
29
|
-
imageOptions={{ directionRight: false, imageAlign: 'center', ...imageOptions }}
|
|
30
|
-
{...rest}
|
|
31
|
-
>
|
|
32
|
-
{renderInsuranceSumMonth(Number(sum), Number(monthLimit))}
|
|
33
|
-
</BaseProductTile>
|
|
34
|
-
</BlockWrapper>
|
|
35
|
-
),
|
|
36
|
-
);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"sum": {
|
|
4
|
-
"ui:field": "number"
|
|
5
|
-
},
|
|
6
|
-
"monthLimit": {
|
|
7
|
-
"ui:field": "number"
|
|
8
|
-
},
|
|
9
|
-
"benefits": {
|
|
10
|
-
"items": {
|
|
11
|
-
"__html": {
|
|
12
|
-
"ui:widget": "html"
|
|
13
|
-
},
|
|
14
|
-
"type": {
|
|
15
|
-
"ui:widget": "hidden"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"__html": {
|
|
20
|
-
"ui:widget": "html"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
2
|
-
import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @title Картинка с текстом
|
|
6
|
-
*/
|
|
7
|
-
export type PictureTextContent = UniBlockContent &
|
|
8
|
-
BaseProductTileContent & {
|
|
9
|
-
/** @title Ежемесячный лимит */
|
|
10
|
-
monthLimit?: number;
|
|
11
|
-
/** @title Страховая сумма */
|
|
12
|
-
sum?: number;
|
|
13
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
2
|
-
import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
|
|
3
|
-
|
|
4
|
-
export const renderInsuranceSumMonth = (sum?: number, monthLimit?: number) =>
|
|
5
|
-
sum || monthLimit ? (
|
|
6
|
-
<div className="flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl">
|
|
7
|
-
{Number(sum) > 0 ? renderValueBlock('Страховая сумма', sum) : null}
|
|
8
|
-
{Number(monthLimit) > 0 ? renderValueBlock('Ежемесячный лимит', monthLimit) : null}
|
|
9
|
-
</div>
|
|
10
|
-
) : null;
|
|
11
|
-
|
|
12
|
-
const renderValueBlock = (title: string, value = 0) => (
|
|
13
|
-
<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">
|
|
14
|
-
<Text font="font-light" size="text-l" color="text-secondary-text">
|
|
15
|
-
{title}
|
|
16
|
-
</Text>
|
|
17
|
-
<span className="font-sans text-h6 sm:text-primary-main text-primary-text">
|
|
18
|
-
{toLocalNumberFormat(2)(value)} ₽
|
|
19
|
-
</span>
|
|
20
|
-
</div>
|
|
21
|
-
);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
2
|
-
|
|
3
|
-
export const renderLunchHour = (lunchHour: string) => {
|
|
4
|
-
const hasLunch = /\d+/gi.test(lunchHour);
|
|
5
|
-
|
|
6
|
-
return hasLunch ? (
|
|
7
|
-
<div className="flex flex-row w-full pb-2xs">
|
|
8
|
-
<div className="pr-s">
|
|
9
|
-
<Text size="text-l" color="text-error">
|
|
10
|
-
Перерыв
|
|
11
|
-
</Text>
|
|
12
|
-
</div>
|
|
13
|
-
<div>
|
|
14
|
-
<Text size="text-l" color="text-error">
|
|
15
|
-
{lunchHour}
|
|
16
|
-
</Text>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
) : (
|
|
20
|
-
<div className="items-center w-full pb-2xs">
|
|
21
|
-
<div>
|
|
22
|
-
<Text size="text-m" color="text-primary-main" font="font-light">
|
|
23
|
-
{lunchHour}
|
|
24
|
-
</Text>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"title": "Блок с картинкой",
|
|
4
|
-
"description": "Описание",
|
|
5
|
-
"headlineVersion": "M",
|
|
6
|
-
"align": "text-center",
|
|
7
|
-
"image": {
|
|
8
|
-
"format": "webp",
|
|
9
|
-
"size": {
|
|
10
|
-
"width": 400,
|
|
11
|
-
"height": 300
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"version": "primary",
|
|
15
|
-
"benefits": [
|
|
16
|
-
{
|
|
17
|
-
"type": "default",
|
|
18
|
-
"label": "Преимущество №1",
|
|
19
|
-
"icon": {
|
|
20
|
-
"format": "webp",
|
|
21
|
-
"icon": "ShieldTickIcon"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"type": "default",
|
|
26
|
-
"label": "Преимущество №2",
|
|
27
|
-
"icon": {
|
|
28
|
-
"format": "webp",
|
|
29
|
-
"icon": "ShieldTickIcon"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"sum": 500000,
|
|
34
|
-
"monthLimit": 25000,
|
|
35
|
-
"imageOptions": {
|
|
36
|
-
"directionRight": false,
|
|
37
|
-
"imageAlign": "center"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { type Picture } from '../../model/Picture';
|
|
2
|
-
import '../../setup-fixture';
|
|
3
|
-
import { PictureText } from './PictureText';
|
|
4
|
-
import { type PictureTextContent } from './PictureTextContent';
|
|
5
|
-
|
|
6
|
-
const imageInsurance: Picture = {
|
|
7
|
-
src: 'insurance.png',
|
|
8
|
-
format: 'webp',
|
|
9
|
-
alt: 'Страховые риски и продукты',
|
|
10
|
-
size: {
|
|
11
|
-
width: 335,
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const imageMonitor: Picture = {
|
|
16
|
-
src: 'monitor.png',
|
|
17
|
-
format: 'webp',
|
|
18
|
-
alt: 'Управление несколькими счетами',
|
|
19
|
-
size: {
|
|
20
|
-
width: 420,
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
export const PICTURE_TEXT: PictureTextContent = {
|
|
24
|
-
title: 'Страховые риски и продукты',
|
|
25
|
-
description: 'Покрываемые риски программы «Страхование от потери работы»',
|
|
26
|
-
benefits: [
|
|
27
|
-
{
|
|
28
|
-
type: 'default',
|
|
29
|
-
label: 'Кредит по одному документу',
|
|
30
|
-
description: 'До 300 тыс ₽ по упрощённой процедуре получения кредита',
|
|
31
|
-
icon: { icon: 'DocIcon' },
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
type: 'default',
|
|
35
|
-
label: 'Кредит на общих условиях',
|
|
36
|
-
description: 'До 5 млн ₽ на общих условиях получения кредита',
|
|
37
|
-
icon: { icon: 'DocIcon', iconVersion: 'white' },
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export const INSURANCE_TEXT: PictureTextContent = {
|
|
43
|
-
title: 'Страховые риски и продукты',
|
|
44
|
-
description: 'Покрываемые риски программы «Защита вас и ваших близких»',
|
|
45
|
-
benefits: [
|
|
46
|
-
{
|
|
47
|
-
type: 'default',
|
|
48
|
-
label: 'Телесное повреждение',
|
|
49
|
-
icon: { icon: 'ShieldTickIcon' },
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
type: 'default',
|
|
53
|
-
label: 'Госпитализация застрахованного',
|
|
54
|
-
description: 'Описание',
|
|
55
|
-
icon: { icon: 'ShieldTickIcon' },
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
type: 'default',
|
|
59
|
-
label: 'Сокращение численности работников организации и другой текст для теста длинны текста',
|
|
60
|
-
icon: { icon: 'ShieldTickIcon' },
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
type: 'default',
|
|
64
|
-
label: 'Смерть застрахованного',
|
|
65
|
-
icon: { icon: 'ShieldTickIcon' },
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
image: imageInsurance,
|
|
69
|
-
sum: 500000,
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export const BENEFITS_HTML_TEXT: PictureTextContent = {
|
|
73
|
-
title: '',
|
|
74
|
-
benefits: [
|
|
75
|
-
{
|
|
76
|
-
type: 'rte',
|
|
77
|
-
__html:
|
|
78
|
-
'<p class="h3">Управление несколькими счетами</p><p>Контролируйте баланс, пересылайте реквизиты контрагентам и установите любимый счёт для регулярных платежей</p>',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
type: 'rte',
|
|
82
|
-
__html:
|
|
83
|
-
'<p class="h3">Управление несколькими счетами</p><p>Контролируйте баланс, пересылайте реквизиты контрагентам и установите любимый счёт для регулярных платежей</p>',
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
|
|
87
|
-
image: imageMonitor,
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export default {
|
|
91
|
-
default: (
|
|
92
|
-
<div className="container grid grid-cols-12">
|
|
93
|
-
<PictureText className="col-span-12" {...PICTURE_TEXT} />
|
|
94
|
-
</div>
|
|
95
|
-
),
|
|
96
|
-
secondary: (
|
|
97
|
-
<div className="container grid grid-cols-12">
|
|
98
|
-
<PictureText className="col-span-12" {...PICTURE_TEXT} version="secondary" />
|
|
99
|
-
</div>
|
|
100
|
-
),
|
|
101
|
-
'insurance sum': (
|
|
102
|
-
<div className="container grid grid-cols-12">
|
|
103
|
-
<PictureText className="col-span-12" {...INSURANCE_TEXT} />
|
|
104
|
-
</div>
|
|
105
|
-
),
|
|
106
|
-
'insurance monthPay': (
|
|
107
|
-
<div className="container grid grid-cols-12">
|
|
108
|
-
<PictureText className="col-span-12" {...INSURANCE_TEXT} monthLimit={25000} />
|
|
109
|
-
</div>
|
|
110
|
-
),
|
|
111
|
-
'benefits as html': (
|
|
112
|
-
<div className="container grid grid-cols-12">
|
|
113
|
-
<PictureText className="col-span-12" {...BENEFITS_HTML_TEXT} />
|
|
114
|
-
</div>
|
|
115
|
-
),
|
|
116
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { type Picture } from '../../model/Picture';
|
|
2
|
-
import '../../setup-fixture';
|
|
3
|
-
import { PictureText } from './PictureText';
|
|
4
|
-
import { type PictureTextContent } from './PictureTextContent';
|
|
5
|
-
|
|
6
|
-
const image: Picture = {
|
|
7
|
-
src: 'legal-support-business.png',
|
|
8
|
-
format: 'webp',
|
|
9
|
-
size: {
|
|
10
|
-
width: 400,
|
|
11
|
-
height: 300,
|
|
12
|
-
},
|
|
13
|
-
alt: 'Варианты потребительского кредита',
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const imageInsurance: Picture = {
|
|
17
|
-
src: 'insurance.png',
|
|
18
|
-
format: 'webp',
|
|
19
|
-
alt: 'Страховые риски и продукты',
|
|
20
|
-
size: {
|
|
21
|
-
width: 400,
|
|
22
|
-
height: 300,
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const imageMonitor: Picture = {
|
|
27
|
-
src: 'monitor.png',
|
|
28
|
-
format: 'webp',
|
|
29
|
-
alt: 'Управление несколькими счетами',
|
|
30
|
-
size: {
|
|
31
|
-
width: 420,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
export const PICTURE_TEXT: PictureTextContent = {
|
|
35
|
-
title: 'Обменивайте бонусы на путешествия',
|
|
36
|
-
description:
|
|
37
|
-
'Получайте 1% бонусными баллами с любых покупок и 1,5% баллами с покупок в категории «Путешествия». Обменивайте ' +
|
|
38
|
-
'бонусные баллы на авиа и ж/д билеты, бронирование отелей и прокат автомобилей.',
|
|
39
|
-
benefits: [
|
|
40
|
-
{
|
|
41
|
-
type: 'default',
|
|
42
|
-
label: 'Кредит по одному документу',
|
|
43
|
-
description: 'До 300 тыс ₽ по упрощённой процедуре получения кредита',
|
|
44
|
-
icon: { icon: 'DocIcon' },
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
type: 'default',
|
|
48
|
-
label: 'Кредит на общих условиях',
|
|
49
|
-
description: 'До 5 млн ₽ на общих условиях получения кредита',
|
|
50
|
-
icon: { icon: 'DocIcon' },
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
image,
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const INSURANCE_TEXT: PictureTextContent = {
|
|
57
|
-
title: 'Страховые риски и продукты',
|
|
58
|
-
description: 'Покрываемые риски программы «Защита вас и ваших близких»',
|
|
59
|
-
benefits: [
|
|
60
|
-
{
|
|
61
|
-
type: 'default',
|
|
62
|
-
label: 'Телесное повреждение',
|
|
63
|
-
icon: { icon: 'ShieldTickIcon' },
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
type: 'default',
|
|
67
|
-
label: 'Госпитализация застрахованного',
|
|
68
|
-
description: 'Описание',
|
|
69
|
-
icon: { icon: 'ShieldTickIcon' },
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
type: 'default',
|
|
73
|
-
label: 'Сокращение численности работников организации и другой текст для теста длинны текста',
|
|
74
|
-
icon: { icon: 'ShieldTickIcon' },
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
type: 'default',
|
|
78
|
-
label: 'Смерть застрахованного',
|
|
79
|
-
icon: { icon: 'ShieldTickIcon' },
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
image: imageInsurance,
|
|
83
|
-
sum: 500000,
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export const BENEFITS_HTML_TEXT: PictureTextContent = {
|
|
87
|
-
title: '',
|
|
88
|
-
benefits: [
|
|
89
|
-
{
|
|
90
|
-
type: 'rte',
|
|
91
|
-
__html:
|
|
92
|
-
'<p class="h3">Управление несколькими счетами</p><p>Контролируйте баланс, пересылайте реквизиты контрагентам и установите любимый счёт для регулярных платежей</p>',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
type: 'rte',
|
|
96
|
-
__html:
|
|
97
|
-
'<p class="h3">Управление несколькими счетами</p><p>Контролируйте баланс, пересылайте реквизиты контрагентам и установите любимый счёт для регулярных платежей</p>',
|
|
98
|
-
},
|
|
99
|
-
],
|
|
100
|
-
|
|
101
|
-
image: imageMonitor,
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export default {
|
|
105
|
-
default: (
|
|
106
|
-
<div className="container grid grid-cols-12">
|
|
107
|
-
<PictureText className="col-span-12" {...PICTURE_TEXT} />
|
|
108
|
-
</div>
|
|
109
|
-
),
|
|
110
|
-
secondary: (
|
|
111
|
-
<div className="container grid grid-cols-12">
|
|
112
|
-
<PictureText className="col-span-12" {...PICTURE_TEXT} version="secondary" />
|
|
113
|
-
</div>
|
|
114
|
-
),
|
|
115
|
-
'insurance sum': (
|
|
116
|
-
<div className="container grid grid-cols-12">
|
|
117
|
-
<PictureText className="col-span-12" {...INSURANCE_TEXT} />
|
|
118
|
-
</div>
|
|
119
|
-
),
|
|
120
|
-
'insurance monthPay': (
|
|
121
|
-
<div className="container grid grid-cols-12">
|
|
122
|
-
<PictureText className="col-span-12" {...INSURANCE_TEXT} monthLimit={25000} />
|
|
123
|
-
</div>
|
|
124
|
-
),
|
|
125
|
-
'benefits as html': (
|
|
126
|
-
<div className="container grid grid-cols-12">
|
|
127
|
-
<PictureText className="col-span-12" {...BENEFITS_HTML_TEXT} />
|
|
128
|
-
</div>
|
|
129
|
-
),
|
|
130
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import { type PictureTextContent } from './PictureTextContent';
|
|
6
|
-
import { renderInsuranceSumMonth } from './renderInsuranceSumMonth';
|
|
7
|
-
|
|
8
|
-
export interface PictureTextProps extends PictureTextContent, UniBlockProps {}
|
|
9
|
-
|
|
10
|
-
export const PictureText = JSX<PictureTextProps>(
|
|
11
|
-
({
|
|
12
|
-
className,
|
|
13
|
-
padding,
|
|
14
|
-
headlineVersion = 'M',
|
|
15
|
-
align = 'text-center',
|
|
16
|
-
sum,
|
|
17
|
-
monthLimit,
|
|
18
|
-
imageOptions,
|
|
19
|
-
...rest
|
|
20
|
-
}) => (
|
|
21
|
-
<BlockWrapper className={className} padding="p-0" {...rest}>
|
|
22
|
-
<BaseProductTile
|
|
23
|
-
className="h-full"
|
|
24
|
-
defaultPadding="p-6xl"
|
|
25
|
-
padding={padding}
|
|
26
|
-
headlineVersion={headlineVersion}
|
|
27
|
-
align={align}
|
|
28
|
-
isFullWidthTitle={true}
|
|
29
|
-
imageOptions={{ directionRight: false, imageAlign: 'center', ...imageOptions }}
|
|
30
|
-
{...rest}
|
|
31
|
-
>
|
|
32
|
-
{renderInsuranceSumMonth(Number(sum), Number(monthLimit))}
|
|
33
|
-
</BaseProductTile>
|
|
34
|
-
</BlockWrapper>
|
|
35
|
-
),
|
|
36
|
-
);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"sum": {
|
|
4
|
-
"ui:field": "number"
|
|
5
|
-
},
|
|
6
|
-
"monthLimit": {
|
|
7
|
-
"ui:field": "number"
|
|
8
|
-
},
|
|
9
|
-
"benefits": {
|
|
10
|
-
"items": {
|
|
11
|
-
"__html": {
|
|
12
|
-
"ui:widget": "html"
|
|
13
|
-
},
|
|
14
|
-
"type": {
|
|
15
|
-
"ui:widget": "hidden"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"__html": {
|
|
20
|
-
"ui:widget": "html"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
2
|
-
import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @title Картинка с текстом
|
|
6
|
-
*/
|
|
7
|
-
export type PictureTextContent = UniBlockContent &
|
|
8
|
-
BaseProductTileContent & {
|
|
9
|
-
/** @title Ежемесячный лимит */
|
|
10
|
-
monthLimit?: number;
|
|
11
|
-
/** @title Страховая сумма */
|
|
12
|
-
sum?: number;
|
|
13
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
2
|
-
import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
|
|
3
|
-
|
|
4
|
-
export const renderInsuranceSumMonth = (sum?: number, monthLimit?: number) =>
|
|
5
|
-
sum || monthLimit ? (
|
|
6
|
-
<div className="flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl">
|
|
7
|
-
{Number(sum) > 0 ? renderValueBlock('Страховая сумма', sum) : null}
|
|
8
|
-
{Number(monthLimit) > 0 ? renderValueBlock('Ежемесячный лимит', monthLimit) : null}
|
|
9
|
-
</div>
|
|
10
|
-
) : null;
|
|
11
|
-
|
|
12
|
-
const renderValueBlock = (title: string, value = 0) => (
|
|
13
|
-
<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">
|
|
14
|
-
<Text font="font-light" size="text-l" color="text-secondary-text">
|
|
15
|
-
{title}
|
|
16
|
-
</Text>
|
|
17
|
-
<span className="font-sans text-h6 sm:text-primary-main text-primary-text">
|
|
18
|
-
{toLocalNumberFormat(2)(value)} ₽
|
|
19
|
-
</span>
|
|
20
|
-
</div>
|
|
21
|
-
);
|