@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
|
@@ -8,6 +8,7 @@ import { BenefitsList } from '../BenefitsList/BenefitsList';
|
|
|
8
8
|
import { renderButtonsSection } from '../Button/renderButtonsSection';
|
|
9
9
|
import { Img } from '../Img/Img';
|
|
10
10
|
import { List } from '../List/List';
|
|
11
|
+
import { PriceList } from '../PriceList/PriceList';
|
|
11
12
|
import { RichText } from '../RichText/RichText';
|
|
12
13
|
import { Tags } from '../Tags/Tags';
|
|
13
14
|
import { type TextAlign } from '../Text/TextProps';
|
|
@@ -31,6 +32,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
31
32
|
isFullWidthTitle,
|
|
32
33
|
items,
|
|
33
34
|
isDotted = true,
|
|
35
|
+
priceList = [],
|
|
34
36
|
listItemSize,
|
|
35
37
|
tags = [],
|
|
36
38
|
buttons,
|
|
@@ -74,6 +76,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
74
76
|
<List items={items} isDotted={isDotted} listItemSize={listItemSize} />
|
|
75
77
|
) : null}
|
|
76
78
|
{children}
|
|
79
|
+
{priceList?.length ? <PriceList priceList={priceList} /> : null}
|
|
77
80
|
{renderTags(tags)}
|
|
78
81
|
</div>
|
|
79
82
|
</BaseTile>
|
|
@@ -20,6 +20,16 @@ export interface TileImageOptions {
|
|
|
20
20
|
isImageAlwaysOnRight?: boolean;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
export interface PriceItem {
|
|
24
|
+
label?: string;
|
|
25
|
+
amount?: number;
|
|
26
|
+
unit?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface PriceListProps {
|
|
30
|
+
priceList?: PriceItem[];
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
export type BaseProductTileContent = HeadlineProps &
|
|
24
34
|
BenefitsListContent &
|
|
25
35
|
RichTextProps &
|
|
@@ -28,7 +38,8 @@ export type BaseProductTileContent = HeadlineProps &
|
|
|
28
38
|
TagsContent &
|
|
29
39
|
ButtonsSectionContent &
|
|
30
40
|
ImageContent &
|
|
31
|
-
LabelProps &
|
|
41
|
+
LabelProps &
|
|
42
|
+
PriceListProps & {
|
|
32
43
|
imageOptions?: TileImageOptions;
|
|
33
44
|
/** @title Заголовок во всю ширину */
|
|
34
45
|
isFullWidthTitle?: boolean;
|
|
@@ -67,7 +67,9 @@ export const DatePicker = JSX<DatePickerProps>(
|
|
|
67
67
|
|
|
68
68
|
return (
|
|
69
69
|
<div className={style(className, 'relative')} ref={ref}>
|
|
70
|
-
<Text size="text-m">
|
|
70
|
+
<Text size="text-m" font-weight="font-light">
|
|
71
|
+
{label}
|
|
72
|
+
</Text>
|
|
71
73
|
{renderDatePickerForm(handleChangeVisibleCalendar, value, valid)}
|
|
72
74
|
{showCalendar ? (
|
|
73
75
|
<div className="absolute bg-white z-10 select-none">
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
2
|
+
import { useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useResizeObserver } from '../../hooks/useResizeObserver';
|
|
3
4
|
|
|
4
5
|
export interface FoldableSectionProps {
|
|
5
6
|
className?: string;
|
|
@@ -9,23 +10,27 @@ export interface FoldableSectionProps {
|
|
|
9
10
|
export const FoldableSection = JSX<FoldableSectionProps>(
|
|
10
11
|
({ className = '', isUnfolded, children }) => {
|
|
11
12
|
const containerRef = useRef<HTMLDivElement | null>(null);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
const childrenWrapperRef = useResizeObserver(
|
|
14
|
+
(childrenWrapperEl) => {
|
|
15
|
+
if (containerRef.current) {
|
|
16
|
+
containerRef.current.style.maxHeight = isUnfolded
|
|
17
|
+
? `${childrenWrapperEl.scrollHeight}px`
|
|
18
|
+
: '';
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
[isUnfolded],
|
|
22
|
+
);
|
|
20
23
|
|
|
21
24
|
return (
|
|
22
25
|
<div
|
|
23
26
|
ref={containerRef}
|
|
24
27
|
className={`transition-max-h duration-300 overflow-hidden ${
|
|
25
28
|
containerRef.current || !isUnfolded ? 'max-h-0' : ''
|
|
26
|
-
}
|
|
29
|
+
} `}
|
|
27
30
|
>
|
|
28
|
-
{
|
|
31
|
+
<div className={className} ref={childrenWrapperRef}>
|
|
32
|
+
{children}
|
|
33
|
+
</div>
|
|
29
34
|
</div>
|
|
30
35
|
);
|
|
31
36
|
},
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
|
|
3
|
+
import { Text } from '../Text/Text';
|
|
4
|
+
import { type PriceItem, type PriceListProps } from './PriceListProps';
|
|
5
|
+
|
|
6
|
+
export const PriceList = JSX<PriceListProps>(({ priceList }) =>
|
|
7
|
+
priceList?.length ? (
|
|
8
|
+
<div className="flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl">
|
|
9
|
+
{priceList.map(renderPriceListItem)}
|
|
10
|
+
</div>
|
|
11
|
+
) : null,
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const renderPriceListItem = ({ label, amount }: PriceItem) => (
|
|
15
|
+
<div className="basis-full flex flex-col-reverse sm:flex-row sm:justify-between sm:bg-main-divider sm:py-m sm:px-lg sm:rounded-md items-baseline whitespace-pre">
|
|
16
|
+
<Text font="font-light" size="text-l" color="text-secondary-text">
|
|
17
|
+
{label}
|
|
18
|
+
</Text>
|
|
19
|
+
{amount ? (
|
|
20
|
+
<span className="font-sans text-h6 sm:text-primary-main text-primary-text">
|
|
21
|
+
{toLocalNumberFormat(2)(amount)} ₽
|
|
22
|
+
</span>
|
|
23
|
+
) : null}
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { type IconVersion } from '../../model/IconVersion';
|
|
2
3
|
import { style } from '../../utils/style';
|
|
3
4
|
import { Icon } from '../Icon/Icon';
|
|
4
5
|
import { filterOptions } from './filterOptions';
|
|
@@ -6,42 +7,48 @@ import { formatOption } from './formatOption';
|
|
|
6
7
|
import { type Option } from './Option';
|
|
7
8
|
|
|
8
9
|
export interface SelectPopupProps {
|
|
9
|
-
|
|
10
|
+
iconVersion?: IconVersion;
|
|
11
|
+
onChange?: (option: Option) => void;
|
|
10
12
|
options?: Option[];
|
|
11
|
-
|
|
13
|
+
popupRef?: { current: HTMLDivElement | null };
|
|
12
14
|
query?: string;
|
|
13
|
-
|
|
15
|
+
value?: Option;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
|
-
export const SelectPopup = JSX<SelectPopupProps>(
|
|
17
|
-
options
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
e
|
|
31
|
-
|
|
32
|
-
onChange
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
18
|
+
export const SelectPopup = JSX<SelectPopupProps>(
|
|
19
|
+
({ popupRef, options, value, query, onChange, iconVersion }) =>
|
|
20
|
+
options?.length ? (
|
|
21
|
+
<div
|
|
22
|
+
className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md"
|
|
23
|
+
role="listbox"
|
|
24
|
+
ref={popupRef}
|
|
25
|
+
>
|
|
26
|
+
{filterOptions(options, query).map((option) => (
|
|
27
|
+
<div
|
|
28
|
+
key={option.key}
|
|
29
|
+
className="flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative"
|
|
30
|
+
role="option"
|
|
31
|
+
aria-selected={option.key === value?.key}
|
|
32
|
+
onClick={(e) => {
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
if (onChange) {
|
|
35
|
+
onChange(option);
|
|
36
|
+
}
|
|
37
|
+
}}
|
|
38
|
+
>
|
|
39
|
+
<span className="min-h-6">{formatOption(option)}</span>
|
|
40
|
+
<Icon
|
|
41
|
+
name="DoneSimpleIcon"
|
|
42
|
+
width="16"
|
|
43
|
+
height="16"
|
|
44
|
+
iconVersion={iconVersion}
|
|
45
|
+
className={style(
|
|
46
|
+
'absolute right-4 pt-3xs',
|
|
47
|
+
option.key === value?.key ? '' : 'hidden',
|
|
48
|
+
)}
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
))}
|
|
52
|
+
</div>
|
|
53
|
+
) : null,
|
|
47
54
|
);
|
|
@@ -16,6 +16,7 @@ export function useSelectPopup({
|
|
|
16
16
|
query,
|
|
17
17
|
onChange,
|
|
18
18
|
onClose,
|
|
19
|
+
iconVersion,
|
|
19
20
|
}: SelectPopupOptions) {
|
|
20
21
|
const popup = usePopupManager();
|
|
21
22
|
|
|
@@ -50,6 +51,7 @@ export function useSelectPopup({
|
|
|
50
51
|
value={value}
|
|
51
52
|
query={query}
|
|
52
53
|
onChange={handleChange}
|
|
54
|
+
iconVersion={iconVersion}
|
|
53
55
|
/>,
|
|
54
56
|
{
|
|
55
57
|
top: top + window.scrollY + height,
|
package/package.json
CHANGED
package/src/common.css
CHANGED
|
@@ -25,7 +25,6 @@ import { ImgBlock } from './ImgBlock/ImgBlock';
|
|
|
25
25
|
import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
26
26
|
import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
27
27
|
import { MortgageFiltration } from './MortgageFiltration/MortgageFiltration';
|
|
28
|
-
import { PictureText } from './PictureText/PictureText';
|
|
29
28
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
30
29
|
import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
31
30
|
import { ProductGallery } from './ProductGallery/ProductGallery';
|
|
@@ -69,7 +68,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
69
68
|
ImgBlock,
|
|
70
69
|
LinkDocs,
|
|
71
70
|
MobileAppTile,
|
|
72
|
-
PictureText,
|
|
73
71
|
Placeholder,
|
|
74
72
|
ProductBlock,
|
|
75
73
|
ProductGallery,
|
package/src/components/Blocks.ts
CHANGED
|
@@ -34,7 +34,6 @@ import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
|
34
34
|
import { MortgageFiltration } from './MortgageFiltration/MortgageFiltration';
|
|
35
35
|
import { OfficesAtmsMap } from './OfficesAtmsMap/OfficesAtmsMap';
|
|
36
36
|
import { ParagraphBlock } from './ParagraphBlock/ParagraphBlock';
|
|
37
|
-
import { PictureText } from './PictureText/PictureText';
|
|
38
37
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
39
38
|
import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
40
39
|
import { ProductGallery } from './ProductGallery/ProductGallery';
|
|
@@ -89,7 +88,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
89
88
|
MortgageFiltration,
|
|
90
89
|
OfficesAtmsMap,
|
|
91
90
|
ParagraphBlock,
|
|
92
|
-
PictureText,
|
|
93
91
|
Placeholder,
|
|
94
92
|
ProductBlock,
|
|
95
93
|
ProductGallery,
|
|
@@ -85,6 +85,21 @@ export default {
|
|
|
85
85
|
buttons: [sendRequestButton, detailsButton],
|
|
86
86
|
},
|
|
87
87
|
},
|
|
88
|
+
{
|
|
89
|
+
nav: {
|
|
90
|
+
title: 'Рефинансирование',
|
|
91
|
+
},
|
|
92
|
+
calculatorBlock: {
|
|
93
|
+
calcType: 'RefinancingCalculatorForm',
|
|
94
|
+
paramsViewSettings: {
|
|
95
|
+
isShowSalaryClient: true,
|
|
96
|
+
isShowInsurance: true,
|
|
97
|
+
},
|
|
98
|
+
buttons: [sendRequestButton],
|
|
99
|
+
footnote:
|
|
100
|
+
'Расчёт является предварительным. Точные условия будут предоставлены в отделении Банка.',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
88
103
|
]}
|
|
89
104
|
/>
|
|
90
105
|
),
|
|
@@ -26,7 +26,7 @@ export interface CreditCalculatorProp extends CreditCalculatorProps {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
|
|
29
|
-
({ className, sourceBookDir, buttons, footnote, paramsViewSettings
|
|
29
|
+
({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
|
|
30
30
|
const [userInputParams, { field }] = useForm({
|
|
31
31
|
isAnnuity: true,
|
|
32
32
|
isInsurance: true,
|
|
@@ -44,7 +44,8 @@ export const CreditCalculatorForm = JSX<CreditCalculatorProp>(
|
|
|
44
44
|
);
|
|
45
45
|
|
|
46
46
|
const paymentTypeElement = renderPaymentType({
|
|
47
|
-
title:
|
|
47
|
+
title: '',
|
|
48
|
+
mobileTitle: 'Тип платежа',
|
|
48
49
|
orientation: 'vertical',
|
|
49
50
|
...field('isAnnuity'),
|
|
50
51
|
});
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
|
|
27
27
|
export interface RefinancingCalculatorProp extends RefinancingCalculatorProps {
|
|
28
28
|
className?: string;
|
|
29
|
+
isMobile?: boolean;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
export const RefinancingCalculatorForm = JSX<RefinancingCalculatorProp>(
|
|
@@ -47,6 +48,13 @@ export const RefinancingCalculatorForm = JSX<RefinancingCalculatorProp>(
|
|
|
47
48
|
paramsViewSettings,
|
|
48
49
|
);
|
|
49
50
|
|
|
51
|
+
const paymentTypeElement = renderPaymentType({
|
|
52
|
+
title: '',
|
|
53
|
+
mobileTitle: 'Тип платежа',
|
|
54
|
+
orientation: 'vertical',
|
|
55
|
+
...field('isAnnuity'),
|
|
56
|
+
});
|
|
57
|
+
|
|
50
58
|
return (
|
|
51
59
|
<section className={style('flex flex-col justify-between @5xl:flex-row gap-m', className)}>
|
|
52
60
|
<div className="flex flex-col gap-y-m sm:max-w-md gap-2xl">
|
|
@@ -84,12 +92,15 @@ export const RefinancingCalculatorForm = JSX<RefinancingCalculatorProp>(
|
|
|
84
92
|
value: calculatorParams.moneyExtra,
|
|
85
93
|
})
|
|
86
94
|
: null}
|
|
95
|
+
<div className="sm:hidden pt-1 pb-4 border-b border-main-divider">
|
|
96
|
+
{paymentTypeElement}
|
|
97
|
+
</div>
|
|
87
98
|
</div>
|
|
88
99
|
{renderRate({
|
|
89
100
|
rate: calculatorParams.rate,
|
|
90
101
|
fractionDigits: 1,
|
|
91
102
|
})}
|
|
92
|
-
<div className="flex flex-col gap-2xl sm:w-96">
|
|
103
|
+
<div className="flex flex-col gap-2xl mt-2 sm:w-96 sm:mt-0">
|
|
93
104
|
<CalculatorValueBlock
|
|
94
105
|
title={'Ежемесячный платеж'}
|
|
95
106
|
value={calculatorParams.monthlyPayment}
|
|
@@ -102,7 +113,7 @@ export const RefinancingCalculatorForm = JSX<RefinancingCalculatorProp>(
|
|
|
102
113
|
postfix="₽"
|
|
103
114
|
/>
|
|
104
115
|
) : null}
|
|
105
|
-
|
|
116
|
+
<div className="hidden sm:block">{paymentTypeElement}</div>
|
|
106
117
|
{renderButtonsSection(buttons, { isVertical: true })}
|
|
107
118
|
{renderFootnote(footnote)}
|
|
108
119
|
</div>
|
|
@@ -115,7 +126,7 @@ const renderCreditParamsForm = (
|
|
|
115
126
|
params: RefinancingCalculatorParams & RefinancingCalculatorParamsViewSettings,
|
|
116
127
|
field: FormFieldRegisterer<any>,
|
|
117
128
|
) => (
|
|
118
|
-
<div className="space-y-s">
|
|
129
|
+
<div className="space-y-lg sm:space-y-s">
|
|
119
130
|
{params.isShowSalaryClient ? (
|
|
120
131
|
<Checkbox
|
|
121
132
|
text="Получаю зарплату на счёт в Россельхозбанке"
|
|
@@ -9,6 +9,7 @@ import { style } from '../../utils/style';
|
|
|
9
9
|
export interface BinaryRadioButtonGroupProps {
|
|
10
10
|
items: [truthy: RadioButtonItem, falsy: RadioButtonItem];
|
|
11
11
|
title?: string;
|
|
12
|
+
mobileTitle?: string;
|
|
12
13
|
orientation?: ListOrientation;
|
|
13
14
|
value?: boolean;
|
|
14
15
|
radioGroupClassName?: string;
|
|
@@ -18,6 +19,7 @@ export interface BinaryRadioButtonGroupProps {
|
|
|
18
19
|
export const renderBinaryRadioButtonGroup = ({
|
|
19
20
|
items,
|
|
20
21
|
title,
|
|
22
|
+
mobileTitle = title,
|
|
21
23
|
orientation = 'horizontal',
|
|
22
24
|
value,
|
|
23
25
|
radioGroupClassName,
|
|
@@ -25,12 +27,20 @@ export const renderBinaryRadioButtonGroup = ({
|
|
|
25
27
|
}: BinaryRadioButtonGroupProps) => (
|
|
26
28
|
<div className="space-y-s">
|
|
27
29
|
{title ? (
|
|
28
|
-
<div>
|
|
30
|
+
<div className="hidden @5xl:block">
|
|
29
31
|
<Text color="text-secondary-text" font="font-light">
|
|
30
32
|
{title}
|
|
31
33
|
</Text>
|
|
32
34
|
</div>
|
|
33
35
|
) : null}
|
|
36
|
+
{mobileTitle ? (
|
|
37
|
+
<div className="@5xl:hidden">
|
|
38
|
+
<Text color="text-secondary-text" font="font-light">
|
|
39
|
+
{mobileTitle}
|
|
40
|
+
</Text>
|
|
41
|
+
</div>
|
|
42
|
+
) : null}
|
|
43
|
+
|
|
34
44
|
<RadioButtonGroup
|
|
35
45
|
orientation={orientation}
|
|
36
46
|
items={items}
|
|
@@ -26,7 +26,7 @@ export const CarouselCard = JSX<CarouselCardProps>(
|
|
|
26
26
|
<div
|
|
27
27
|
className={style(
|
|
28
28
|
layerBaseStyle,
|
|
29
|
-
'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-light',
|
|
29
|
+
'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light',
|
|
30
30
|
)}
|
|
31
31
|
>
|
|
32
32
|
<Headline
|
|
@@ -5,6 +5,7 @@ import { type JSXBlock, type UniBlockProps } from '../../model/JSXBlock';
|
|
|
5
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
6
|
import { NotFound } from '../../ui-kit/NotFound/NotFound';
|
|
7
7
|
import { Pagination } from '../../ui-kit/Pagination/Pagination';
|
|
8
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
8
9
|
import { style } from '../../utils/style';
|
|
9
10
|
import { type DepositoryContent } from './DepositoryContent';
|
|
10
11
|
import { DepositoryFilter } from './DepositoryFilter';
|
|
@@ -33,32 +34,48 @@ export const Depository: JSXBlock<DepositoryProps> = JSX<DepositoryProps>(
|
|
|
33
34
|
const [itemCount, setItemCount] = useState(DEFAULT_ITEMS_COUNT);
|
|
34
35
|
const [filtrationState, { field, reset }] = useForm(initialFiltrationState);
|
|
35
36
|
|
|
36
|
-
const { totalPages = 0, items } = useDepository({
|
|
37
|
+
const { totalPages = 0, items = [] } = useDepository({
|
|
37
38
|
size: itemCount,
|
|
38
39
|
page: currentPage,
|
|
39
40
|
...filtrationState,
|
|
40
41
|
});
|
|
41
42
|
|
|
42
43
|
const handleChangePage = useCallback((page: number) => setCurrentPage(page - 1), []);
|
|
43
|
-
|
|
44
|
+
|
|
45
|
+
const handleItemCountChange = useCallback((count: number) => {
|
|
46
|
+
if (itemCount !== count) {
|
|
47
|
+
setItemCount(count);
|
|
48
|
+
setCurrentPage(0);
|
|
49
|
+
} else {
|
|
50
|
+
setItemCount(count);
|
|
51
|
+
}
|
|
52
|
+
}, []);
|
|
44
53
|
|
|
45
54
|
return (
|
|
46
|
-
<BlockWrapper className={style(className, 'container p-
|
|
55
|
+
<BlockWrapper className={style(className, 'container p-6xl')} {...rest}>
|
|
47
56
|
<DepositoryFilter filtrationState={filtrationState} field={field} onClearFilter={reset} />
|
|
48
57
|
<div className="flex flex-col">
|
|
49
58
|
<div className="grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b">
|
|
50
|
-
<
|
|
51
|
-
|
|
59
|
+
<div className="col-span-2">
|
|
60
|
+
<Text size="text-m" color="text-secondary-text">
|
|
61
|
+
Дата
|
|
62
|
+
</Text>
|
|
63
|
+
</div>
|
|
64
|
+
<span className="col-span-10">
|
|
65
|
+
<Text size="text-m" color="text-secondary-text">
|
|
66
|
+
Тема
|
|
67
|
+
</Text>
|
|
68
|
+
</span>
|
|
52
69
|
</div>
|
|
53
|
-
{items
|
|
54
|
-
items
|
|
70
|
+
{items.length ? (
|
|
71
|
+
items.map((params) => <DepositoryItem key={String(params.publicId)} {...params} />)
|
|
55
72
|
) : (
|
|
56
73
|
<NotFound title="Ничего не найдено" description="Попробуйте очистить фильтры" />
|
|
57
74
|
)}
|
|
58
75
|
<Pagination
|
|
59
76
|
currentPage={currentPage + 1}
|
|
60
77
|
onPageChange={handleChangePage}
|
|
61
|
-
totalPages={totalPages
|
|
78
|
+
totalPages={totalPages}
|
|
62
79
|
itemCount={itemCount}
|
|
63
80
|
onItemCountChange={handleItemCountChange}
|
|
64
81
|
/>
|
|
@@ -28,7 +28,7 @@ export const DepositoryFilter = JSX<DepositoryFilterProps>(
|
|
|
28
28
|
/>
|
|
29
29
|
<div className="col-span-2 mt-auto">
|
|
30
30
|
<button
|
|
31
|
-
className="px-m py-s rounded-md bg-main-gray text-green cursor-pointer w-full"
|
|
31
|
+
className="px-m py-s rounded-md bg-main-gray text-green hover:text-white hover:bg-primary-hover active:bg-primary-active cursor-pointer w-full"
|
|
32
32
|
onClick={onClearFilter}
|
|
33
33
|
>
|
|
34
34
|
Очистить фильтр
|
|
@@ -9,8 +9,12 @@ export const DepositoryItem = ({ title, timestamp, publicId }: DepositoryDataIte
|
|
|
9
9
|
|
|
10
10
|
return (
|
|
11
11
|
<div className="grid grid-cols-12 py-lg border-gray border-opacity-50 border-b" key={publicId}>
|
|
12
|
-
<div className="col-span-2
|
|
13
|
-
{timestamp ?
|
|
12
|
+
<div className="col-span-2">
|
|
13
|
+
{timestamp ? (
|
|
14
|
+
<Text size="text-m" font-weight="font-light">
|
|
15
|
+
{formatDate(timestamp)}
|
|
16
|
+
</Text>
|
|
17
|
+
) : null}
|
|
14
18
|
</div>
|
|
15
19
|
<div className="col-span-10 text-h6 hover:text-primary-active">
|
|
16
20
|
<a href={href} download aria-label="Скачать">
|
|
@@ -19,14 +19,23 @@ interface UseDepositoryParams extends DepositoryFiltrationState {
|
|
|
19
19
|
size: number;
|
|
20
20
|
page: number;
|
|
21
21
|
}
|
|
22
|
+
const DEPOSITARY_URL = '/api/v1/depository';
|
|
22
23
|
|
|
23
24
|
export const useDepository = ({ size, page, query, startDate, endDate }: UseDepositoryParams) => {
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
);
|
|
25
|
+
const formatStartDate = startDate ? formatDate(startDate, true) : '';
|
|
26
|
+
const formatEndDate = endDate ? formatDate(endDate, true) : '';
|
|
27
|
+
|
|
28
|
+
const searchParams = new URLSearchParams(DEPOSITARY_URL);
|
|
29
|
+
|
|
30
|
+
searchParams.set('page', String(page));
|
|
31
|
+
searchParams.set('size', String(size));
|
|
32
|
+
searchParams.set('query', query);
|
|
33
|
+
searchParams.set('startDate', formatStartDate);
|
|
34
|
+
searchParams.set('endDate', formatEndDate);
|
|
35
|
+
|
|
36
|
+
const queryString = `?${searchParams.toString()}`;
|
|
37
|
+
|
|
38
|
+
const { data } = useAsyncData<DepositoryData>(DEPOSITARY_URL + queryString, fetchJSONUnsafe);
|
|
30
39
|
|
|
31
40
|
return { items: data?.content, totalPages: data?.totalPages };
|
|
32
41
|
};
|
|
@@ -5,9 +5,9 @@ import { style } from '../../utils/style';
|
|
|
5
5
|
|
|
6
6
|
const colorStyle: Record<string, { border: string; text: TextColor }> = {
|
|
7
7
|
yellow: { border: 'border-yellow-light', text: 'text-yellow' },
|
|
8
|
-
green: { border: 'border-green-light', text: 'text-green-dark' },
|
|
8
|
+
green: { border: 'border-green-more-light', text: 'text-green-dark' },
|
|
9
9
|
gray: { border: 'border-gray', text: 'text-secondary-text' },
|
|
10
|
-
red: { border: 'border-error', text: 'text-error' },
|
|
10
|
+
red: { border: 'border-error/30', text: 'text-error' },
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export interface BadgeProps {
|