@redneckz/wildless-cms-uni-blocks 0.14.840 → 0.14.841
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 +47 -325
- package/bundle/bundle.umd.min.js +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/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -6
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +20 -226
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/src/components/Blocks.ts +0 -4
- package/package.json +2 -2
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -6
- 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,89 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"version": "primary",
|
|
4
|
-
"padding": "",
|
|
5
|
-
"title": "Заголовок",
|
|
6
|
-
"insuranceTabs": [
|
|
7
|
-
{
|
|
8
|
-
"title": "Описание 1",
|
|
9
|
-
"cards": [
|
|
10
|
-
{
|
|
11
|
-
"sum": 200000,
|
|
12
|
-
"fee": 2100,
|
|
13
|
-
"icon": {
|
|
14
|
-
"format": "webp",
|
|
15
|
-
"size": {
|
|
16
|
-
"width": 70,
|
|
17
|
-
"height": 70
|
|
18
|
-
},
|
|
19
|
-
"icon": "ActualBalanceIcon"
|
|
20
|
-
},
|
|
21
|
-
"href": ""
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"sum": 200000,
|
|
25
|
-
"fee": 2100,
|
|
26
|
-
"icon": {
|
|
27
|
-
"format": "webp",
|
|
28
|
-
"size": {
|
|
29
|
-
"width": 70,
|
|
30
|
-
"height": 70
|
|
31
|
-
},
|
|
32
|
-
"icon": "ActualBalanceIcon"
|
|
33
|
-
},
|
|
34
|
-
"href": ""
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"title": "Описание 2",
|
|
40
|
-
"cards": [
|
|
41
|
-
{
|
|
42
|
-
"sum": 200000,
|
|
43
|
-
"fee": 2100,
|
|
44
|
-
"icon": {
|
|
45
|
-
"format": "webp",
|
|
46
|
-
"size": {
|
|
47
|
-
"width": 70,
|
|
48
|
-
"height": 70
|
|
49
|
-
},
|
|
50
|
-
"icon": "ActualBalanceIcon"
|
|
51
|
-
},
|
|
52
|
-
"href": ""
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"sum": 200000,
|
|
56
|
-
"fee": 2100,
|
|
57
|
-
"icon": {
|
|
58
|
-
"format": "webp",
|
|
59
|
-
"size": {
|
|
60
|
-
"width": 70,
|
|
61
|
-
"height": 70
|
|
62
|
-
},
|
|
63
|
-
"icon": "ActualBalanceIcon"
|
|
64
|
-
},
|
|
65
|
-
"href": ""
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"sum": 200000,
|
|
69
|
-
"fee": 2100,
|
|
70
|
-
"icon": {
|
|
71
|
-
"format": "webp",
|
|
72
|
-
"size": {
|
|
73
|
-
"width": 70,
|
|
74
|
-
"height": 70
|
|
75
|
-
},
|
|
76
|
-
"icon": "ActualBalanceIcon"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"button": {
|
|
83
|
-
"href": "",
|
|
84
|
-
"text": "Выбрать программу",
|
|
85
|
-
"target": "_self",
|
|
86
|
-
"version": "primary"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
-
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
6
|
-
import { style } from '../../utils/style';
|
|
7
|
-
import { type InsuranceAmountBlockContent } from './InsuranceAmountBlockContent';
|
|
8
|
-
import { InsuranceAmountBlockInner } from './InsuranceAmountBlockInner';
|
|
9
|
-
|
|
10
|
-
interface NavButtonProps {
|
|
11
|
-
title?: string;
|
|
12
|
-
i: number;
|
|
13
|
-
isActive: boolean;
|
|
14
|
-
onClick: () => void;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface InsuranceAmountBlockProps extends InsuranceAmountBlockContent, UniBlockProps {}
|
|
18
|
-
|
|
19
|
-
export const InsuranceAmountBlock = JSX<InsuranceAmountBlockProps>(
|
|
20
|
-
({ className = '', title, insuranceTabs = [], button, ...rest }) => {
|
|
21
|
-
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
22
|
-
const handleActiveSlideIndex = useCallback((_: number) => setActiveSlideIndex(_), []);
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<BlockWrapper
|
|
26
|
-
className={style('box-border overflow-hidden relative px-0 space-y-2xl', className)}
|
|
27
|
-
defaultPadding="p-6xl"
|
|
28
|
-
{...rest}
|
|
29
|
-
>
|
|
30
|
-
{title ? <Heading className="text-center" title={title} headingType="h3" /> : null}
|
|
31
|
-
{insuranceTabs?.length > 1 ? (
|
|
32
|
-
<div className="p-xs bg-secondary-light w-fit mx-auto rounded-md">
|
|
33
|
-
{insuranceTabs.map((item, i) =>
|
|
34
|
-
renderNavButton({
|
|
35
|
-
title: item?.title,
|
|
36
|
-
i,
|
|
37
|
-
isActive: Boolean(i === activeSlideIndex),
|
|
38
|
-
onClick: () => handleActiveSlideIndex(i),
|
|
39
|
-
}),
|
|
40
|
-
)}
|
|
41
|
-
</div>
|
|
42
|
-
) : null}
|
|
43
|
-
<div
|
|
44
|
-
className="flex"
|
|
45
|
-
style={{ transform: `translateX(-${activeSlideIndex}00%)` }}
|
|
46
|
-
role="list"
|
|
47
|
-
>
|
|
48
|
-
{renderInsuranceGalleries({
|
|
49
|
-
insuranceTabs,
|
|
50
|
-
button,
|
|
51
|
-
})}
|
|
52
|
-
</div>
|
|
53
|
-
</BlockWrapper>
|
|
54
|
-
);
|
|
55
|
-
},
|
|
56
|
-
);
|
|
57
|
-
|
|
58
|
-
const renderInsuranceGalleries = ({ insuranceTabs, button }: InsuranceAmountBlockContent) => {
|
|
59
|
-
const insuranceGalleries = insuranceTabs?.map((_) => _.cards);
|
|
60
|
-
|
|
61
|
-
return insuranceGalleries?.length
|
|
62
|
-
? insuranceGalleries.map((cards, i) => (
|
|
63
|
-
<InsuranceAmountBlockInner key={String(i)} button={button} cards={cards} />
|
|
64
|
-
))
|
|
65
|
-
: null;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
function renderNavButton({ title, i, isActive, onClick }: NavButtonProps) {
|
|
69
|
-
const btnClassName = isActive ? 'bg-primary-main text-white rounded-md' : `text-secondary-text`;
|
|
70
|
-
|
|
71
|
-
return (
|
|
72
|
-
<button
|
|
73
|
-
type="button"
|
|
74
|
-
key={String(i)}
|
|
75
|
-
onClick={onClick}
|
|
76
|
-
aria-label={`Кнопка ${title}`}
|
|
77
|
-
className={`box-border px-m py-s text-m font-light ${btnClassName}`}
|
|
78
|
-
>
|
|
79
|
-
{title}
|
|
80
|
-
</button>
|
|
81
|
-
);
|
|
82
|
-
}
|
|
@@ -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
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useLink } from '../../hooks/useLink';
|
|
3
|
-
import { type ComponentType } from '../../model/ComponentType';
|
|
4
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
5
|
-
import { style } from '../../utils/style';
|
|
6
|
-
import { type CarouselLinkProps } from './CarouselLinksContent';
|
|
7
|
-
|
|
8
|
-
export type CarouselLinkButtonProps = CarouselLinkProps & ComponentType;
|
|
9
|
-
|
|
10
|
-
export const CarouselLinkButton = JSX<CarouselLinkButtonProps>(({ icon, ...linkProps }) => {
|
|
11
|
-
const link = useLink();
|
|
12
|
-
const { text, href, target, onClick } = link(linkProps);
|
|
13
|
-
|
|
14
|
-
const textStyle =
|
|
15
|
-
'font-light md:font-normal text-primary-text text-center text-xs md:text-sm whitespace-wrap';
|
|
16
|
-
|
|
17
|
-
return text ? (
|
|
18
|
-
<div className={style('p-3 rounded-lg bg-white text-secondary-text flex justify-center')}>
|
|
19
|
-
<a role="link" href={href} target={target} onClick={onClick}>
|
|
20
|
-
<div className="flex flex-col items-center gap-3 break-words max-w-[150px]">
|
|
21
|
-
{icon ? (
|
|
22
|
-
<Img
|
|
23
|
-
className="w-7 h-7 md:w-12 md:h-12"
|
|
24
|
-
image={{
|
|
25
|
-
...icon,
|
|
26
|
-
iconVersion: icon?.iconVersion,
|
|
27
|
-
}}
|
|
28
|
-
alt={text}
|
|
29
|
-
/>
|
|
30
|
-
) : null}
|
|
31
|
-
<div className={textStyle}>{text}</div>
|
|
32
|
-
</div>
|
|
33
|
-
</a>
|
|
34
|
-
</div>
|
|
35
|
-
) : null;
|
|
36
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"version": "secondary",
|
|
4
|
-
"padding": "",
|
|
5
|
-
"title": "Заголовок",
|
|
6
|
-
"description": "Описание 1",
|
|
7
|
-
"additionalDescription": "Описание 2",
|
|
8
|
-
"links": [
|
|
9
|
-
{
|
|
10
|
-
"text": "Текст",
|
|
11
|
-
"href": "#"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"text": "Текст",
|
|
15
|
-
"href": "#"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"text": "Текст",
|
|
19
|
-
"href": "#"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"text": "Текст",
|
|
23
|
-
"href": "#"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"text": "Текст",
|
|
27
|
-
"href": "#"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
|
|
3
|
-
import { CarouselLinks } from './CarouselLinks';
|
|
4
|
-
import { type CarouselLinkProps } from './CarouselLinksContent';
|
|
5
|
-
|
|
6
|
-
const links = [
|
|
7
|
-
{
|
|
8
|
-
text: 'Миссия и Стратегия',
|
|
9
|
-
href: '#',
|
|
10
|
-
icon: { icon: 'AchievementIcon' },
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
text: 'Контакты и реквизиты',
|
|
14
|
-
href: '#',
|
|
15
|
-
icon: { icon: 'PhoneCallingIcon' },
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
text: 'Новости',
|
|
19
|
-
href: '#',
|
|
20
|
-
icon: { icon: 'BankIcon' },
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
text: 'Карьера в Банке',
|
|
24
|
-
href: '#',
|
|
25
|
-
icon: { icon: 'BriefcaseIcon' },
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
text: 'Меры безопасности',
|
|
29
|
-
href: '#',
|
|
30
|
-
icon: { icon: 'ShieldTickIcon' },
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
text: 'Награды и рейтинги',
|
|
34
|
-
href: '#',
|
|
35
|
-
icon: { icon: 'CupIcon' },
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
text: 'Агротех стартапы',
|
|
39
|
-
href: '#',
|
|
40
|
-
icon: { icon: 'DevIcon' },
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
text: 'Залоговое имущество',
|
|
44
|
-
href: '#',
|
|
45
|
-
icon: { icon: 'PercentageRoundIcon' },
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
text: 'Меры безопасности',
|
|
49
|
-
href: '#',
|
|
50
|
-
icon: { icon: 'LockIcon' },
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
text: 'Непрофильные активы',
|
|
54
|
-
href: '#',
|
|
55
|
-
icon: { icon: 'ChartRoundIcon' },
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
text: 'Меры безопасности',
|
|
59
|
-
href: '#',
|
|
60
|
-
icon: { icon: 'CopyIcon' },
|
|
61
|
-
},
|
|
62
|
-
] as CarouselLinkProps[];
|
|
63
|
-
|
|
64
|
-
const description = `Акционерное общество «Российский Сельскохозяйственный банк»* —
|
|
65
|
-
один из крупнейших банков в России. Был основан в 2000 году в целях развития
|
|
66
|
-
национальной кредитно-финансовой системы агропромышленного сектора и
|
|
67
|
-
сельских территорий Российской Федерации.`;
|
|
68
|
-
|
|
69
|
-
const additionalDescription = `Сегодня это универсальный коммерческий банк,
|
|
70
|
-
предоставляющий все виды банковских услуг и занимающий лидирующие позиции
|
|
71
|
-
в финансировании агропромышленного комплекса России.`;
|
|
72
|
-
|
|
73
|
-
export default {
|
|
74
|
-
default: (
|
|
75
|
-
<CarouselLinks
|
|
76
|
-
links={links}
|
|
77
|
-
title="О Банке"
|
|
78
|
-
description={description}
|
|
79
|
-
additionalDescription={additionalDescription}
|
|
80
|
-
version="secondary"
|
|
81
|
-
/>
|
|
82
|
-
),
|
|
83
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
|
|
3
|
-
import { CarouselLinks } from './CarouselLinks';
|
|
4
|
-
import { type CarouselLinkProps } from './CarouselLinksContent';
|
|
5
|
-
|
|
6
|
-
const link = {
|
|
7
|
-
text: 'Заключения',
|
|
8
|
-
href: '#',
|
|
9
|
-
icon: {
|
|
10
|
-
icon: 'BankIcon',
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const links = Array.from<CarouselLinkProps>({ length: 11 })
|
|
15
|
-
.fill(link as CarouselLinkProps)
|
|
16
|
-
.map((_) => ({ ..._, text: `${_.text}`, icon: _.icon }));
|
|
17
|
-
|
|
18
|
-
const description = `Акционерное общество «Российский Сельскохозяйственный банк»* —
|
|
19
|
-
один из крупнейших банков в России. Был основан в 2000 году в целях развития
|
|
20
|
-
национальной кредитно-финансовой системы агропромышленного сектора и
|
|
21
|
-
сельских территорий Российской Федерации.`;
|
|
22
|
-
|
|
23
|
-
const additionalDescription = `Сегодня это универсальный коммерческий банк,
|
|
24
|
-
предоставляющий все виды банковских услуг и занимающий лидирующие позиции
|
|
25
|
-
в финансировании агропромышленного комплекса России.`;
|
|
26
|
-
|
|
27
|
-
export default {
|
|
28
|
-
default: (
|
|
29
|
-
<div className="container grid grid-cols-12">
|
|
30
|
-
<CarouselLinks
|
|
31
|
-
links={links}
|
|
32
|
-
title="О Банке"
|
|
33
|
-
description={description}
|
|
34
|
-
additionalDescription={additionalDescription}
|
|
35
|
-
version="secondary"
|
|
36
|
-
className="col-span-12"
|
|
37
|
-
/>
|
|
38
|
-
</div>
|
|
39
|
-
),
|
|
40
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
|
-
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
4
|
-
import { style } from '../../utils/style';
|
|
5
|
-
import { Headline } from '../Headline/Headline';
|
|
6
|
-
import { CarouselLinkButton } from './CarouselLinkButton';
|
|
7
|
-
import { type CarouselLinkProps, type CarouselLinksContent } from './CarouselLinksContent';
|
|
8
|
-
|
|
9
|
-
interface CarouselLinksProps extends CarouselLinksContent, UniBlockProps {}
|
|
10
|
-
|
|
11
|
-
export const CarouselLinks = JSX<CarouselLinksProps>(
|
|
12
|
-
({ className, additionalDescription, description, links, title, ...rest }) => (
|
|
13
|
-
<BlockWrapper defaultPadding="p-5xl" className={style('overflow-hidden', className)} {...rest}>
|
|
14
|
-
<div className="flex flex-col lg:flex-row gap-5 justify-between">
|
|
15
|
-
<div className="flex-1">
|
|
16
|
-
<Headline
|
|
17
|
-
isEmbedded={true}
|
|
18
|
-
title={title}
|
|
19
|
-
description={description}
|
|
20
|
-
as="h1"
|
|
21
|
-
align="text-left"
|
|
22
|
-
headlineVersion="XL"
|
|
23
|
-
/>
|
|
24
|
-
<Headline
|
|
25
|
-
className="pt-m"
|
|
26
|
-
description={additionalDescription}
|
|
27
|
-
align="text-left"
|
|
28
|
-
isEmbedded={true}
|
|
29
|
-
/>
|
|
30
|
-
</div>
|
|
31
|
-
{links?.length ? renderLinks(links) : null}
|
|
32
|
-
</div>
|
|
33
|
-
</BlockWrapper>
|
|
34
|
-
),
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
const renderLinks = (links: CarouselLinkProps[]) => (
|
|
38
|
-
<div
|
|
39
|
-
className={style(
|
|
40
|
-
'lg:grid-cols-9 lg:[&>*]:col-span-2 lg:[&>*:nth-child(14n+2)]:col-span-3 lg:[&>*:nth-child(7n+5)]:col-span-3',
|
|
41
|
-
'lg:[&>*:nth-child(7n+6)]:col-span-3 lg:[&>*:nth-child(7n+7)]:col-span-3 lg:[&>*:nth-child(14n+10)]:col-span-3 lg:w-3/6',
|
|
42
|
-
'grid-cols-3 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+3)]:col-span-2 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+4)]:col-span-2',
|
|
43
|
-
'grid gap-3 lg:gap-5',
|
|
44
|
-
)}
|
|
45
|
-
>
|
|
46
|
-
{links.map((link, i) => (
|
|
47
|
-
<CarouselLinkButton key={String(i)} {...link} />
|
|
48
|
-
))}
|
|
49
|
-
</div>
|
|
50
|
-
);
|