@redneckz/wildless-cms-uni-blocks 0.14.840 → 0.14.842
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.832.js +1 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +63 -346
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/Loader/Loader.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.js +0 -6
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +1 -8
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/dist/components/Carousel/renderCarouselCards.js +2 -2
- package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/TextInformationLink.js +1 -1
- package/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/dist/components/Header/HeaderTopMenu.js +1 -1
- package/dist/components/Header/HeaderTopMenu.js.map +1 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Loader/Loader.d.ts +1 -1
- package/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.js +0 -6
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +1 -8
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/lib/components/Carousel/renderCarouselCards.js +2 -2
- package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/TextInformationLink.js +1 -1
- package/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/lib/components/Header/HeaderTopMenu.js +1 -1
- package/lib/components/Header/HeaderTopMenu.js.map +1 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Loader/Loader.d.ts +1 -1
- package/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.fixture.d.ts +4 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/bundle/bundle.umd.js +35 -246
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/Loader/Loader.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -8
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/mobile/dist/components/Carousel/renderCarouselCards.js +2 -2
- package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTopMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderTopMenu.js.map +1 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.d.ts +1 -1
- package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -8
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
- package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
- package/mobile/lib/components/Carousel/renderCarouselCards.js +2 -2
- package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTopMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderTopMenu.js.map +1 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.d.ts +1 -1
- package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +0 -4
- package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +5 -18
- package/mobile/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
- package/mobile/src/components/Carousel/renderCarouselCards.tsx +2 -6
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/mobile/src/components/Footer/TextInformationLink.tsx +1 -1
- package/mobile/src/components/Header/HeaderTopMenu.tsx +1 -5
- package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
- package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/mobile/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Loader/Loader.tsx +1 -1
- package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
- package/package.json +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -6
- package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
- package/src/components/CardTransfer/CardTransfer.tsx +5 -18
- package/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
- package/src/components/Carousel/renderCarouselCards.tsx +2 -6
- package/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/src/components/Footer/TextInformationLink.tsx +1 -1
- package/src/components/Header/HeaderTopMenu.tsx +1 -5
- package/src/icons/IconName.ts +4 -4
- package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
- package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
- package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
- package/src/ui-kit/Loader/Loader.tsx +1 -1
- package/src/ui-kit/ProgressBar/ProgressBar.fixture.tsx +4 -1
- package/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
- package/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
- package/bundle/components/CarouselLinks/CarouselLinks.d.ts +0 -6
- package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
- package/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
- package/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
- package/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
- package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
- package/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
- package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
- package/bundle/components/ExchangeRateTile/calculateResult.d.ts +0 -2
- package/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
- package/bundle/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
- package/bundle/components/ExchangeRateTile/renderInput.d.ts +0 -11
- package/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
- package/bundle/ui-kit/Rating/Rating.d.ts +0 -1
- package/dist/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
- package/dist/components/CarouselLinks/CarouselLinkButton.js +0 -17
- package/dist/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
- package/dist/components/CarouselLinks/CarouselLinks.d.ts +0 -6
- package/dist/components/CarouselLinks/CarouselLinks.js +0 -11
- package/dist/components/CarouselLinks/CarouselLinks.js.map +0 -1
- package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
- package/dist/components/CarouselLinks/CarouselLinksContent.js +0 -2
- package/dist/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
- package/dist/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
- package/dist/components/ExchangeRateTile/CurrencyProps.js +0 -10
- package/dist/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
- package/dist/components/ExchangeRateTile/CurrencyTable.js +0 -23
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
- package/dist/components/ExchangeRateTile/CurrentLocation.js +0 -10
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -73
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +0 -26
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
- package/dist/components/ExchangeRateTile/calculateResult.d.ts +0 -2
- package/dist/components/ExchangeRateTile/calculateResult.js +0 -11
- package/dist/components/ExchangeRateTile/calculateResult.js.map +0 -1
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.js +0 -21
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
- package/dist/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
- package/dist/components/ExchangeRateTile/formatCurrency.js +0 -10
- package/dist/components/ExchangeRateTile/formatCurrency.js.map +0 -1
- package/dist/components/ExchangeRateTile/renderInput.d.ts +0 -11
- package/dist/components/ExchangeRateTile/renderInput.js +0 -16
- package/dist/components/ExchangeRateTile/renderInput.js.map +0 -1
- package/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
- package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -13
- package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -33
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -58
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
- package/dist/ui-kit/Rating/Rating.d.ts +0 -1
- package/dist/ui-kit/Rating/Rating.js +0 -21
- package/dist/ui-kit/Rating/Rating.js.map +0 -1
- package/lib/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
- package/lib/components/CarouselLinks/CarouselLinkButton.js +0 -15
- package/lib/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
- package/lib/components/CarouselLinks/CarouselLinks.d.ts +0 -6
- package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +0 -5
- package/lib/components/CarouselLinks/CarouselLinks.fixture.mobile.d.ts +0 -5
- package/lib/components/CarouselLinks/CarouselLinks.js +0 -9
- package/lib/components/CarouselLinks/CarouselLinks.js.map +0 -1
- package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
- package/lib/components/CarouselLinks/CarouselLinksContent.js +0 -2
- package/lib/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
- package/lib/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
- package/lib/components/ExchangeRateTile/CurrencyProps.js +0 -8
- package/lib/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
- package/lib/components/ExchangeRateTile/CurrencyTable.js +0 -21
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
- package/lib/components/ExchangeRateTile/CurrentLocation.js +0 -8
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -71
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
- package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +0 -5
- package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.d.ts +0 -5
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +0 -24
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
- package/lib/components/ExchangeRateTile/calculateResult.d.ts +0 -2
- package/lib/components/ExchangeRateTile/calculateResult.js +0 -7
- package/lib/components/ExchangeRateTile/calculateResult.js.map +0 -1
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.js +0 -18
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
- package/lib/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
- package/lib/components/ExchangeRateTile/formatCurrency.js +0 -7
- package/lib/components/ExchangeRateTile/formatCurrency.js.map +0 -1
- package/lib/components/ExchangeRateTile/renderInput.d.ts +0 -11
- package/lib/components/ExchangeRateTile/renderInput.js +0 -13
- package/lib/components/ExchangeRateTile/renderInput.js.map +0 -1
- package/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
- package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -10
- package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +0 -5
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -31
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -56
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
- package/lib/ui-kit/Rating/Rating.d.ts +0 -1
- package/lib/ui-kit/Rating/Rating.fixture.d.ts +0 -5
- package/lib/ui-kit/Rating/Rating.js +0 -18
- package/lib/ui-kit/Rating/Rating.js.map +0 -1
- package/mobile/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
- package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +0 -6
- package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
- package/mobile/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
- package/mobile/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
- package/mobile/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
- package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
- package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
- package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
- package/mobile/bundle/components/ExchangeRateTile/calculateResult.d.ts +0 -2
- package/mobile/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
- package/mobile/bundle/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
- package/mobile/bundle/components/ExchangeRateTile/renderInput.d.ts +0 -11
- package/mobile/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
- package/mobile/bundle/ui-kit/Rating/Rating.d.ts +0 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +0 -17
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +0 -6
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +0 -11
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +0 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js +0 -2
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
- package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js +0 -10
- package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +0 -23
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +0 -10
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -73
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +0 -26
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/calculateResult.d.ts +0 -2
- package/mobile/dist/components/ExchangeRateTile/calculateResult.js +0 -11
- package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js +0 -21
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.js +0 -10
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.d.ts +0 -11
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +0 -16
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
- package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -13
- package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -33
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -58
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
- package/mobile/dist/ui-kit/Rating/Rating.d.ts +0 -1
- package/mobile/dist/ui-kit/Rating/Rating.js +0 -21
- package/mobile/dist/ui-kit/Rating/Rating.js.map +0 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +0 -15
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +0 -6
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +0 -9
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +0 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js +0 -2
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
- package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js +0 -8
- package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +0 -21
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +0 -8
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -71
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +0 -24
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/calculateResult.d.ts +0 -2
- package/mobile/lib/components/ExchangeRateTile/calculateResult.js +0 -7
- package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js +0 -18
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.js +0 -7
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.d.ts +0 -11
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +0 -13
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
- package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -10
- package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -31
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -56
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
- package/mobile/lib/ui-kit/Rating/Rating.d.ts +0 -1
- package/mobile/lib/ui-kit/Rating/Rating.js +0 -18
- package/mobile/lib/ui-kit/Rating/Rating.js.map +0 -1
- package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +0 -36
- package/mobile/src/components/CarouselLinks/CarouselLinks.example.json +0 -31
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +0 -50
- package/mobile/src/components/CarouselLinks/CarouselLinks.ui.json +0 -16
- package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +0 -22
- package/mobile/src/components/ExchangeRateTile/CurrencyProps.ts +0 -6
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +0 -64
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +0 -28
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +0 -155
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +0 -12
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +0 -60
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +0 -8
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
- package/mobile/src/components/ExchangeRateTile/calculateResult.ts +0 -9
- package/mobile/src/components/ExchangeRateTile/callbackCurrencySelect.ts +0 -25
- package/mobile/src/components/ExchangeRateTile/formatCurrency.ts +0 -8
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +0 -43
- package/mobile/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +0 -25
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +0 -89
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +0 -82
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +0 -21
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +0 -35
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +0 -145
- package/mobile/src/ui-kit/Rating/Rating.tsx +0 -39
- package/src/components/CarouselLinks/CarouselLinkButton.tsx +0 -36
- package/src/components/CarouselLinks/CarouselLinks.example.json +0 -31
- package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +0 -83
- package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +0 -40
- package/src/components/CarouselLinks/CarouselLinks.tsx +0 -50
- package/src/components/CarouselLinks/CarouselLinks.ui.json +0 -16
- package/src/components/CarouselLinks/CarouselLinksContent.ts +0 -22
- package/src/components/ExchangeRateTile/CurrencyProps.ts +0 -6
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +0 -64
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +0 -28
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +0 -155
- package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +0 -12
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.tsx +0 -19
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +0 -21
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +0 -60
- package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +0 -8
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
- package/src/components/ExchangeRateTile/calculateResult.ts +0 -9
- package/src/components/ExchangeRateTile/callbackCurrencySelect.ts +0 -25
- package/src/components/ExchangeRateTile/formatCurrency.ts +0 -8
- package/src/components/ExchangeRateTile/renderInput.tsx +0 -43
- package/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +0 -25
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +0 -89
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +0 -62
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +0 -82
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +0 -21
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +0 -35
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +0 -145
- package/src/ui-kit/Rating/Rating.fixture.tsx +0 -7
- package/src/ui-kit/Rating/Rating.tsx +0 -39
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type TitleProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type IconProps } from '../../model/Picture';
|
|
3
|
-
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
4
|
-
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @title Кнопка выбора программы
|
|
8
|
-
*/
|
|
9
|
-
export type CardItem = IconProps & {
|
|
10
|
-
/** @title Страховой взнос */
|
|
11
|
-
fee?: number;
|
|
12
|
-
/** @title Страховая сумма */
|
|
13
|
-
sum?: number;
|
|
14
|
-
/** @title Ссылка на программу*/
|
|
15
|
-
href?: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @title Вкладка
|
|
20
|
-
*/
|
|
21
|
-
export type InsuranceAmountBlockTab = TitleProps & {
|
|
22
|
-
/** @title Содержимое вкладки */
|
|
23
|
-
cards?: CardItem[];
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @title Страховые суммы
|
|
28
|
-
*/
|
|
29
|
-
export type InsuranceAmountBlockContent = UniBlockContent &
|
|
30
|
-
TitleProps & {
|
|
31
|
-
/** @title Список вкладок */
|
|
32
|
-
insuranceTabs?: InsuranceAmountBlockTab[];
|
|
33
|
-
/** @title Кнопка */
|
|
34
|
-
button?: LinkButtonContent;
|
|
35
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { useCarouselControls } from '../../hooks/useCarouselControls';
|
|
4
|
-
import { type ComponentType } from '../../model/ComponentType';
|
|
5
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
6
|
-
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
|
|
7
|
-
import { type ButtonCommonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
8
|
-
import { renderArrows } from '../../ui-kit/LinkButton/renderArrows';
|
|
9
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
10
|
-
import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat';
|
|
11
|
-
import { type CardItem, type InsuranceAmountBlockTab } from './InsuranceAmountBlockContent';
|
|
12
|
-
|
|
13
|
-
export interface InsuranceAmountBlockInnerProps extends InsuranceAmountBlockTab, ComponentType {
|
|
14
|
-
button?: ButtonCommonContent;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
type InsuranceGalleryProps = {
|
|
18
|
-
activeIndex: number;
|
|
19
|
-
cards: CardItem[];
|
|
20
|
-
selectedCardIndex: number;
|
|
21
|
-
onClick: (index: number) => void;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
type NavButtonProps = {
|
|
25
|
-
slide: CardItem;
|
|
26
|
-
i: number;
|
|
27
|
-
isActive: boolean;
|
|
28
|
-
onClick: () => void;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export const InsuranceAmountBlockInner = JSX<InsuranceAmountBlockInnerProps>(
|
|
32
|
-
({ className = '', cards = [], button }) => {
|
|
33
|
-
const [selectedCardIndex, setSelectedCardIndex] = useState(0);
|
|
34
|
-
const handleSelectedCardIndex = useCallback((_: number) => setSelectedCardIndex(_), []);
|
|
35
|
-
const galleryLength = cards.length;
|
|
36
|
-
const CARD_VIEW_COUNT = 2;
|
|
37
|
-
const [activeIndex, controls] = useCarouselControls({
|
|
38
|
-
itemCount: galleryLength,
|
|
39
|
-
visibleItemCount: CARD_VIEW_COUNT,
|
|
40
|
-
});
|
|
41
|
-
const { canDec, canInc } = controls;
|
|
42
|
-
const activeHref = cards[activeIndex]?.href;
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<section role="listitem" className={`min-w-full text-center ${className}`}>
|
|
46
|
-
<div className="relative overflow-hidden" aria-label="Страховые программы">
|
|
47
|
-
{galleryLength
|
|
48
|
-
? renderGallery({
|
|
49
|
-
activeIndex,
|
|
50
|
-
cards,
|
|
51
|
-
selectedCardIndex,
|
|
52
|
-
onClick: handleSelectedCardIndex,
|
|
53
|
-
})
|
|
54
|
-
: null}
|
|
55
|
-
{renderArrows({
|
|
56
|
-
...controls,
|
|
57
|
-
btnClass: ['left-12', 'right-12'],
|
|
58
|
-
className: 'top-16',
|
|
59
|
-
})}
|
|
60
|
-
{canDec ? (
|
|
61
|
-
<div className="absolute top-0 left-0 h-full w-32 bg-opacity-from-white" />
|
|
62
|
-
) : null}
|
|
63
|
-
{canInc ? (
|
|
64
|
-
<div className="absolute top-0 right-0 h-full w-32 bg-opacity-to-white" />
|
|
65
|
-
) : null}
|
|
66
|
-
</div>
|
|
67
|
-
<LinkButton className="w-60 text-center" version="primary" {...button} href={activeHref} />
|
|
68
|
-
</section>
|
|
69
|
-
);
|
|
70
|
-
},
|
|
71
|
-
);
|
|
72
|
-
|
|
73
|
-
function renderGallery({ activeIndex, cards, selectedCardIndex, onClick }: InsuranceGalleryProps) {
|
|
74
|
-
const tabsShiftWidth = activeIndex * 460;
|
|
75
|
-
const cardsAlignStyle = cards.length > 2 ? 'justify-start' : 'justify-center';
|
|
76
|
-
|
|
77
|
-
return (
|
|
78
|
-
<div style={{ transform: `translateX(-${tabsShiftWidth}px)` }} className="duration-1000 px-6xl">
|
|
79
|
-
<div className={`w-full flex flex-nowrap gap-s pb-6xl ${cardsAlignStyle}`}>
|
|
80
|
-
{cards.map((slide, i) =>
|
|
81
|
-
renderNavButton({
|
|
82
|
-
slide,
|
|
83
|
-
i,
|
|
84
|
-
isActive: Boolean(i === selectedCardIndex),
|
|
85
|
-
onClick: () => onClick(i),
|
|
86
|
-
}),
|
|
87
|
-
)}
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function renderNavButton({ slide, i, isActive, onClick }: NavButtonProps) {
|
|
94
|
-
const btnClassName = isActive
|
|
95
|
-
? 'shadow-dark-blue border-primary-main'
|
|
96
|
-
: `ease-in duration-300 border-gray`;
|
|
97
|
-
|
|
98
|
-
return (
|
|
99
|
-
<button
|
|
100
|
-
type="button"
|
|
101
|
-
key={String(i)}
|
|
102
|
-
onClick={onClick}
|
|
103
|
-
className={`p-3xl min-w-fit flex items-center gap-2xl bg-white border-solid border relative ${btnClassName}`}
|
|
104
|
-
>
|
|
105
|
-
{slide?.icon ? (
|
|
106
|
-
<Img
|
|
107
|
-
className="p-lg rounded-full bg-secondary-light"
|
|
108
|
-
image={slide.icon}
|
|
109
|
-
width="108"
|
|
110
|
-
height="108"
|
|
111
|
-
/>
|
|
112
|
-
) : null}
|
|
113
|
-
|
|
114
|
-
<div className="flex gap-s">
|
|
115
|
-
{slide?.sum ? renderValueBlock('страховая сумма', slide.sum) : null}
|
|
116
|
-
{slide?.fee ? renderValueBlock('страховой взнос', slide.fee) : null}
|
|
117
|
-
</div>
|
|
118
|
-
{renderDoneIcon(isActive)}
|
|
119
|
-
</button>
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function renderValueBlock(title: string, sum: number) {
|
|
124
|
-
return (
|
|
125
|
-
<div className="flex flex-col text-left whitespace-pre">
|
|
126
|
-
<Text size="text-h6">{toLocalNumberFormat(2)(sum)} ₽</Text>
|
|
127
|
-
<div className="mt-2xs">
|
|
128
|
-
<Text size="text-l" color="text-secondary-text">
|
|
129
|
-
{title}
|
|
130
|
-
</Text>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function renderDoneIcon(isActive: boolean) {
|
|
137
|
-
return isActive ? (
|
|
138
|
-
<Img
|
|
139
|
-
className={`h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4`}
|
|
140
|
-
image={{ icon: 'DoneIcon' }}
|
|
141
|
-
width="24"
|
|
142
|
-
height="24"
|
|
143
|
-
/>
|
|
144
|
-
) : null;
|
|
145
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
-
import { Icon } from '../Icon/Icon';
|
|
3
|
-
|
|
4
|
-
export const Rating = () => {
|
|
5
|
-
const [rating, setRating] = useState(0);
|
|
6
|
-
const [hoverRating, setHoverRating] = useState(0);
|
|
7
|
-
|
|
8
|
-
const handleClick = (event: { currentTarget: { id: string } }) => {
|
|
9
|
-
setRating(parseInt(event.currentTarget.id));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const handleMouseEnter = (event: { currentTarget: { id: string } }) => {
|
|
13
|
-
setHoverRating(parseInt(event.currentTarget.id));
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const handleMouseLeave = () => {
|
|
17
|
-
setHoverRating(0);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<div className="flex justify-center">
|
|
22
|
-
{[...Array(5)].map((_, i) => (
|
|
23
|
-
<span
|
|
24
|
-
key={i}
|
|
25
|
-
onClick={handleClick}
|
|
26
|
-
onMouseEnter={handleMouseEnter}
|
|
27
|
-
onMouseLeave={handleMouseLeave}
|
|
28
|
-
id={`${i + 1}`}
|
|
29
|
-
>
|
|
30
|
-
<Icon
|
|
31
|
-
name="StarIcon"
|
|
32
|
-
iconVersion={rating >= i + 1 || hoverRating >= i + 1 ? 'color' : 'gray'}
|
|
33
|
-
className="cursor-pointer w-14 h-14"
|
|
34
|
-
/>
|
|
35
|
-
</span>
|
|
36
|
-
))}
|
|
37
|
-
</div>
|
|
38
|
-
);
|
|
39
|
-
};
|