@redneckz/wildless-cms-uni-blocks 0.3.9 → 0.3.12
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +154 -76
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/GpsIcon.svg +1 -0
- package/dist/components/BaseTile/BaseTile.js +1 -1
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/Blocks.d.ts +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.mobile.d.ts +5 -0
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js +46 -0
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -0
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +4 -0
- package/dist/components/ComparisonTable/HeaderCell.mobile.d.ts +12 -0
- package/dist/components/ComparisonTable/HeaderCell.mobile.js +9 -0
- package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -0
- package/dist/components/ComparisonTable/TableCell.d.ts +3 -2
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.mobile.d.ts +9 -0
- package/dist/components/ComparisonTable/TableCell.mobile.js +12 -0
- package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -0
- package/dist/components/ComparisonTable/TableColumn.d.ts +10 -0
- package/dist/components/ComparisonTable/TableColumn.js +19 -0
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -0
- package/dist/components/ContentPage/ContentPageContext.d.ts +1 -1
- package/dist/components/CreditCalculator/CreditCalculator.d.ts +2 -2
- package/dist/components/CreditCalculator/CreditCalculator.js +18 -22
- package/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/dist/components/CreditCalculator/getCalculatorParams.d.ts +1 -1
- package/dist/components/CreditCalculator/getCreditRate.d.ts +1 -1
- package/dist/components/CreditCalculator/getDefaultMonths.d.ts +2 -0
- package/dist/components/CreditCalculator/getDefaultMonths.js +8 -0
- package/dist/components/CreditCalculator/getDefaultMonths.js.map +1 -0
- package/dist/components/CreditCalculator/getDefaultSum.d.ts +2 -0
- package/dist/components/CreditCalculator/getDefaultSum.js +8 -0
- package/dist/components/CreditCalculator/getDefaultSum.js.map +1 -0
- package/dist/components/CreditCalculator/getMonthlyPayment.d.ts +1 -1
- package/dist/components/CreditCalculator/renderButton.d.ts +1 -0
- package/dist/components/CreditCalculator/renderButton.js +8 -0
- package/dist/components/CreditCalculator/renderButton.js.map +1 -0
- package/dist/components/CreditCalculator/renderMonthsInput.d.ts +10 -0
- package/dist/components/CreditCalculator/renderMonthsInput.js +11 -0
- package/dist/components/CreditCalculator/renderMonthsInput.js.map +1 -0
- package/dist/components/CreditCalculator/renderProposal.d.ts +1 -0
- package/dist/components/CreditCalculator/renderProposal.js +9 -0
- package/dist/components/CreditCalculator/renderProposal.js.map +1 -0
- package/dist/components/CreditCalculator/renderTermsButton.d.ts +1 -0
- package/dist/components/CreditCalculator/renderTermsButton.js +9 -0
- package/dist/components/CreditCalculator/renderTermsButton.js.map +1 -0
- package/dist/components/CreditCalculator/renderWantedSumInput.d.ts +10 -0
- package/dist/components/CreditCalculator/renderWantedSumInput.js +18 -0
- package/dist/components/CreditCalculator/renderWantedSumInput.js.map +1 -0
- package/dist/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
- package/dist/components/ExchangeRateTile/CurrencyTable.js +19 -0
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -0
- package/dist/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
- package/dist/components/ExchangeRateTile/CurrentLocation.js +7 -0
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -0
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -0
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +15 -0
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -0
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +23 -27
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +10 -0
- package/dist/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
- package/dist/components/ExchangeRateTile/formatCurrency.js +6 -0
- package/dist/components/ExchangeRateTile/formatCurrency.js.map +1 -0
- package/dist/components/Gallery/Gallery.mobile.js +2 -2
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/hooks/useCreditCalculatorData.js +3 -3
- package/dist/hooks/useCreditCalculatorData.js.map +1 -1
- package/dist/hooks/useExchangeRates.d.ts +9 -0
- package/dist/hooks/useExchangeRates.js +18 -0
- package/dist/hooks/useExchangeRates.js.map +1 -0
- package/dist/icons/IconName.d.ts +3 -2
- package/dist/icons/IconName.js +1 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/InputTypes.d.ts +1 -0
- package/dist/model/InputTypes.js +2 -0
- package/dist/model/InputTypes.js.map +1 -0
- package/dist/setup-fixture.js +1 -1
- package/dist/setup-fixture.js.map +1 -1
- package/dist/ui-kit/Input/Input.d.ts +2 -0
- package/dist/ui-kit/Input/Input.js +8 -0
- package/dist/ui-kit/Input/Input.js.map +1 -0
- package/dist/ui-kit/Input/InputProps.d.ts +8 -0
- package/dist/ui-kit/Input/InputProps.js +2 -0
- package/dist/ui-kit/Input/InputProps.js.map +1 -0
- package/dist/ui-kit/Select/Select.d.ts +6 -0
- package/dist/ui-kit/Select/Select.js +8 -0
- package/dist/ui-kit/Select/Select.js.map +1 -0
- package/dist/ui-kit/Select/SelectOption.d.ts +5 -0
- package/dist/ui-kit/Select/SelectOption.js +8 -0
- package/dist/ui-kit/Select/SelectOption.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +11 -6
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -0
- package/lib/common.css +1 -1
- package/lib/components/BaseTile/BaseTile.js +1 -1
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/Blocks.d.ts +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.fixture.mobile.d.ts +5 -0
- package/lib/components/ComparisonTable/ComparisonTable.mobile.d.ts +5 -0
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js +44 -0
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -0
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +4 -0
- package/lib/components/ComparisonTable/HeaderCell.mobile.d.ts +12 -0
- package/lib/components/ComparisonTable/HeaderCell.mobile.js +7 -0
- package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -0
- package/lib/components/ComparisonTable/TableCell.d.ts +3 -2
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.mobile.d.ts +9 -0
- package/lib/components/ComparisonTable/TableCell.mobile.js +10 -0
- package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -0
- package/lib/components/ComparisonTable/TableColumn.d.ts +10 -0
- package/lib/components/ComparisonTable/TableColumn.js +17 -0
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -0
- package/lib/components/ContentPage/ContentPageContext.d.ts +1 -1
- package/lib/components/CreditCalculator/CreditCalculator.d.ts +2 -2
- package/lib/components/CreditCalculator/CreditCalculator.js +19 -23
- package/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/lib/components/CreditCalculator/getCalculatorParams.d.ts +1 -1
- package/lib/components/CreditCalculator/getCreditRate.d.ts +1 -1
- package/lib/components/CreditCalculator/getDefaultMonths.d.ts +2 -0
- package/lib/components/CreditCalculator/getDefaultMonths.js +5 -0
- package/lib/components/CreditCalculator/getDefaultMonths.js.map +1 -0
- package/lib/components/CreditCalculator/getDefaultSum.d.ts +2 -0
- package/lib/components/CreditCalculator/getDefaultSum.js +5 -0
- package/lib/components/CreditCalculator/getDefaultSum.js.map +1 -0
- package/lib/components/CreditCalculator/getMonthlyPayment.d.ts +1 -1
- package/lib/components/CreditCalculator/renderButton.d.ts +1 -0
- package/lib/components/CreditCalculator/renderButton.js +5 -0
- package/lib/components/CreditCalculator/renderButton.js.map +1 -0
- package/lib/components/CreditCalculator/renderMonthsInput.d.ts +10 -0
- package/lib/components/CreditCalculator/renderMonthsInput.js +8 -0
- package/lib/components/CreditCalculator/renderMonthsInput.js.map +1 -0
- package/lib/components/CreditCalculator/renderProposal.d.ts +1 -0
- package/lib/components/CreditCalculator/renderProposal.js +6 -0
- package/lib/components/CreditCalculator/renderProposal.js.map +1 -0
- package/lib/components/CreditCalculator/renderTermsButton.d.ts +1 -0
- package/lib/components/CreditCalculator/renderTermsButton.js +6 -0
- package/lib/components/CreditCalculator/renderTermsButton.js.map +1 -0
- package/lib/components/CreditCalculator/renderWantedSumInput.d.ts +10 -0
- package/lib/components/CreditCalculator/renderWantedSumInput.js +15 -0
- package/lib/components/CreditCalculator/renderWantedSumInput.js.map +1 -0
- package/lib/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
- package/lib/components/ExchangeRateTile/CurrencyTable.js +17 -0
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -0
- package/lib/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
- package/lib/components/ExchangeRateTile/CurrentLocation.js +5 -0
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -0
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -0
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +13 -0
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +23 -27
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +10 -0
- package/lib/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
- package/lib/components/ExchangeRateTile/formatCurrency.js +3 -0
- package/lib/components/ExchangeRateTile/formatCurrency.js.map +1 -0
- package/lib/components/Gallery/Gallery.mobile.js +2 -2
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +2 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/hooks/useCreditCalculatorData.js +3 -3
- package/lib/hooks/useCreditCalculatorData.js.map +1 -1
- package/lib/hooks/useExchangeRates.d.ts +9 -0
- package/lib/hooks/useExchangeRates.js +15 -0
- package/lib/hooks/useExchangeRates.js.map +1 -0
- package/lib/icons/IconName.d.ts +3 -2
- package/lib/icons/IconName.js +1 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/InputTypes.d.ts +1 -0
- package/lib/model/InputTypes.js +2 -0
- package/lib/model/InputTypes.js.map +1 -0
- package/lib/setup-fixture.js +1 -1
- package/lib/setup-fixture.js.map +1 -1
- package/lib/ui-kit/Input/Input.d.ts +2 -0
- package/lib/ui-kit/Input/Input.js +6 -0
- package/lib/ui-kit/Input/Input.js.map +1 -0
- package/lib/ui-kit/Input/InputProps.d.ts +8 -0
- package/lib/ui-kit/Input/InputProps.js +2 -0
- package/lib/ui-kit/Input/InputProps.js.map +1 -0
- package/lib/ui-kit/Select/Select.d.ts +6 -0
- package/lib/ui-kit/Select/Select.js +6 -0
- package/lib/ui-kit/Select/Select.js.map +1 -0
- package/lib/ui-kit/Select/SelectOption.d.ts +5 -0
- package/lib/ui-kit/Select/SelectOption.js +6 -0
- package/lib/ui-kit/Select/SelectOption.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +12 -7
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +136 -83
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +38 -28
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +4 -0
- package/mobile/dist/components/ComparisonTable/HeaderCell.d.ts +2 -0
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +1 -3
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.d.ts +4 -3
- package/mobile/dist/components/ComparisonTable/TableCell.js +5 -5
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.d.ts +10 -0
- package/mobile/dist/components/ComparisonTable/TableColumn.js +19 -0
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -0
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +1 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculator.d.ts +2 -2
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js +18 -22
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.d.ts +1 -1
- package/mobile/dist/components/CreditCalculator/getCreditRate.d.ts +1 -1
- package/mobile/dist/components/CreditCalculator/getDefaultMonths.d.ts +2 -0
- package/mobile/dist/components/CreditCalculator/getDefaultMonths.js +8 -0
- package/mobile/dist/components/CreditCalculator/getDefaultMonths.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getDefaultSum.d.ts +2 -0
- package/mobile/dist/components/CreditCalculator/getDefaultSum.js +8 -0
- package/mobile/dist/components/CreditCalculator/getDefaultSum.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.d.ts +1 -1
- package/mobile/dist/components/CreditCalculator/renderButton.d.ts +1 -0
- package/mobile/dist/components/CreditCalculator/renderButton.js +8 -0
- package/mobile/dist/components/CreditCalculator/renderButton.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/renderMonthsInput.d.ts +10 -0
- package/mobile/dist/components/CreditCalculator/renderMonthsInput.js +11 -0
- package/mobile/dist/components/CreditCalculator/renderMonthsInput.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/renderProposal.d.ts +1 -0
- package/mobile/dist/components/CreditCalculator/renderProposal.js +9 -0
- package/mobile/dist/components/CreditCalculator/renderProposal.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/renderTermsButton.d.ts +1 -0
- package/mobile/dist/components/CreditCalculator/renderTermsButton.js +9 -0
- package/mobile/dist/components/CreditCalculator/renderTermsButton.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/renderWantedSumInput.d.ts +10 -0
- package/mobile/dist/components/CreditCalculator/renderWantedSumInput.js +18 -0
- package/mobile/dist/components/CreditCalculator/renderWantedSumInput.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +19 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +7 -0
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +15 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +23 -27
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +10 -0
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.js +6 -0
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.js.map +1 -0
- package/mobile/dist/components/Gallery/Gallery.js +2 -2
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/hooks/useCreditCalculatorData.js +3 -3
- package/mobile/dist/hooks/useCreditCalculatorData.js.map +1 -1
- package/mobile/dist/hooks/useExchangeRates.d.ts +9 -0
- package/mobile/dist/hooks/useExchangeRates.js +18 -0
- package/mobile/dist/hooks/useExchangeRates.js.map +1 -0
- package/mobile/dist/icons/IconName.d.ts +3 -2
- package/mobile/dist/icons/IconName.js +1 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/InputTypes.d.ts +1 -0
- package/mobile/dist/model/InputTypes.js +2 -0
- package/mobile/dist/model/InputTypes.js.map +1 -0
- package/mobile/dist/setup-fixture.js +1 -1
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.d.ts +2 -0
- package/mobile/dist/ui-kit/Input/Input.js +8 -0
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -0
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +8 -0
- package/mobile/dist/ui-kit/Input/InputProps.js +2 -0
- package/mobile/dist/ui-kit/Input/InputProps.js.map +1 -0
- package/mobile/dist/ui-kit/Select/Select.d.ts +6 -0
- package/mobile/dist/ui-kit/Select/Select.js +8 -0
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -0
- package/mobile/dist/ui-kit/Select/SelectOption.d.ts +5 -0
- package/mobile/dist/ui-kit/Select/SelectOption.js +8 -0
- package/mobile/dist/ui-kit/Select/SelectOption.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +11 -6
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -0
- package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +38 -28
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +4 -0
- package/mobile/lib/components/ComparisonTable/HeaderCell.d.ts +2 -0
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +1 -3
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.d.ts +4 -3
- package/mobile/lib/components/ComparisonTable/TableCell.js +6 -6
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.d.ts +10 -0
- package/mobile/lib/components/ComparisonTable/TableColumn.js +17 -0
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -0
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +1 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculator.d.ts +2 -2
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js +19 -23
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.d.ts +1 -1
- package/mobile/lib/components/CreditCalculator/getCreditRate.d.ts +1 -1
- package/mobile/lib/components/CreditCalculator/getDefaultMonths.d.ts +2 -0
- package/mobile/lib/components/CreditCalculator/getDefaultMonths.js +5 -0
- package/mobile/lib/components/CreditCalculator/getDefaultMonths.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getDefaultSum.d.ts +2 -0
- package/mobile/lib/components/CreditCalculator/getDefaultSum.js +5 -0
- package/mobile/lib/components/CreditCalculator/getDefaultSum.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.d.ts +1 -1
- package/mobile/lib/components/CreditCalculator/renderButton.d.ts +1 -0
- package/mobile/lib/components/CreditCalculator/renderButton.js +5 -0
- package/mobile/lib/components/CreditCalculator/renderButton.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/renderMonthsInput.d.ts +10 -0
- package/mobile/lib/components/CreditCalculator/renderMonthsInput.js +8 -0
- package/mobile/lib/components/CreditCalculator/renderMonthsInput.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/renderProposal.d.ts +1 -0
- package/mobile/lib/components/CreditCalculator/renderProposal.js +6 -0
- package/mobile/lib/components/CreditCalculator/renderProposal.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/renderTermsButton.d.ts +1 -0
- package/mobile/lib/components/CreditCalculator/renderTermsButton.js +6 -0
- package/mobile/lib/components/CreditCalculator/renderTermsButton.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/renderWantedSumInput.d.ts +10 -0
- package/mobile/lib/components/CreditCalculator/renderWantedSumInput.js +15 -0
- package/mobile/lib/components/CreditCalculator/renderWantedSumInput.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +17 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +5 -0
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +13 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +23 -27
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +10 -0
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.js +3 -0
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.js.map +1 -0
- package/mobile/lib/components/Gallery/Gallery.js +2 -2
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/hooks/useCreditCalculatorData.js +3 -3
- package/mobile/lib/hooks/useCreditCalculatorData.js.map +1 -1
- package/mobile/lib/hooks/useExchangeRates.d.ts +9 -0
- package/mobile/lib/hooks/useExchangeRates.js +15 -0
- package/mobile/lib/hooks/useExchangeRates.js.map +1 -0
- package/mobile/lib/icons/IconName.d.ts +3 -2
- package/mobile/lib/icons/IconName.js +1 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/InputTypes.d.ts +1 -0
- package/mobile/lib/model/InputTypes.js +2 -0
- package/mobile/lib/model/InputTypes.js.map +1 -0
- package/mobile/lib/setup-fixture.js +1 -1
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.d.ts +2 -0
- package/mobile/lib/ui-kit/Input/Input.js +6 -0
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -0
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +8 -0
- package/mobile/lib/ui-kit/Input/InputProps.js +2 -0
- package/mobile/lib/ui-kit/Input/InputProps.js.map +1 -0
- package/mobile/lib/ui-kit/Select/Select.d.ts +6 -0
- package/mobile/lib/ui-kit/Select/Select.js +6 -0
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -0
- package/mobile/lib/ui-kit/Select/SelectOption.d.ts +5 -0
- package/mobile/lib/ui-kit/Select/SelectOption.js +6 -0
- package/mobile/lib/ui-kit/Select/SelectOption.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +12 -7
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -0
- package/mobile/src/common.css +12 -2
- package/mobile/src/components/BaseTile/BaseTile.tsx +1 -1
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +90 -102
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +4 -0
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +34 -30
- package/mobile/src/components/ComparisonTable/TableCell.tsx +30 -27
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +66 -0
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +1 -1
- package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +26 -87
- package/mobile/src/components/CreditCalculator/getCalculatorParams.ts +1 -1
- package/mobile/src/components/CreditCalculator/getCreditRate.ts +1 -1
- package/mobile/src/components/CreditCalculator/getDefaultMonths.ts +7 -0
- package/mobile/src/components/CreditCalculator/getDefaultSum.ts +7 -0
- package/mobile/src/components/CreditCalculator/getMonthlyPayment.ts +1 -1
- package/mobile/src/components/CreditCalculator/renderButton.tsx +13 -0
- package/mobile/src/components/CreditCalculator/renderMonthsInput.tsx +29 -0
- package/mobile/src/components/CreditCalculator/renderProposal.tsx +13 -0
- package/mobile/src/components/CreditCalculator/renderTermsButton.tsx +16 -0
- package/mobile/src/components/CreditCalculator/renderWantedSumInput.tsx +36 -0
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +47 -0
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +22 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +47 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +48 -79
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +11 -0
- package/mobile/src/components/ExchangeRateTile/formatCurrency.ts +3 -0
- package/mobile/src/components/Gallery/Gallery.tsx +2 -2
- package/mobile/src/components/Header/Header.tsx +1 -1
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +11 -1
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +5 -5
- package/mobile/src/hooks/useCreditCalculatorData.ts +3 -7
- package/mobile/src/hooks/useExchangeRates.ts +25 -0
- package/mobile/src/icons/GpsIcon.svg +8 -0
- package/mobile/src/icons/IconName.ts +3 -3
- package/mobile/src/model/InputTypes.ts +1 -0
- package/mobile/src/setup-fixture.ts +1 -1
- package/mobile/src/ui-kit/Input/Input.tsx +8 -0
- package/mobile/src/ui-kit/Input/InputProps.ts +9 -0
- package/mobile/src/ui-kit/Select/Select.tsx +15 -0
- package/mobile/src/ui-kit/Select/SelectOption.tsx +14 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +27 -19
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +1 -0
- package/package.json +1 -1
- package/src/common.css +12 -2
- package/src/components/BaseTile/BaseTile.tsx +1 -1
- package/src/components/Blocks.ts +2 -0
- package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +152 -0
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +121 -0
- package/src/components/ComparisonTable/ComparisonTableContent.ts +4 -0
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +50 -0
- package/src/components/ComparisonTable/TableCell.mobile.tsx +46 -0
- package/src/components/ComparisonTable/TableCell.tsx +3 -2
- package/src/components/ComparisonTable/TableColumn.tsx +66 -0
- package/src/components/ContentPage/ContentPageContext.tsx +1 -1
- package/src/components/CreditCalculator/CreditCalculator.tsx +26 -87
- package/src/components/CreditCalculator/getCalculatorParams.ts +1 -1
- package/src/components/CreditCalculator/getCreditRate.ts +1 -1
- package/src/components/CreditCalculator/getDefaultMonths.ts +7 -0
- package/src/components/CreditCalculator/getDefaultSum.ts +7 -0
- package/src/components/CreditCalculator/getMonthlyPayment.ts +1 -1
- package/src/components/CreditCalculator/renderButton.tsx +13 -0
- package/src/components/CreditCalculator/renderMonthsInput.tsx +29 -0
- package/src/components/CreditCalculator/renderProposal.tsx +13 -0
- package/src/components/CreditCalculator/renderTermsButton.tsx +16 -0
- package/src/components/CreditCalculator/renderWantedSumInput.tsx +36 -0
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +47 -0
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +22 -0
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +47 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +48 -79
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +11 -0
- package/src/components/ExchangeRateTile/formatCurrency.ts +3 -0
- package/src/components/Gallery/Gallery.mobile.tsx +2 -2
- package/src/components/Header/Header.mobile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.example.json +11 -1
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +57 -32
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +57 -104
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +5 -5
- package/src/components/ProductBlock/ProductBlockInner.tsx +4 -4
- package/src/hooks/useCreditCalculatorData.ts +3 -7
- package/src/hooks/useExchangeRates.ts +25 -0
- package/src/icons/GpsIcon.svg +8 -0
- package/src/icons/IconName.ts +3 -3
- package/src/model/InputTypes.ts +1 -0
- package/src/setup-fixture.ts +1 -1
- package/src/ui-kit/Button/Button.fixture.tsx +2 -6
- package/src/ui-kit/Input/Input.tsx +8 -0
- package/src/ui-kit/Input/InputProps.ts +9 -0
- package/src/ui-kit/Select/Select.tsx +15 -0
- package/src/ui-kit/Select/SelectOption.tsx +14 -0
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +27 -19
- package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +1 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
2
|
import { context } from '../../setup-fixture';
|
|
3
3
|
import { ProductBlock } from './ProductBlock';
|
|
4
|
+
import { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
5
|
+
import { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
4
6
|
|
|
5
7
|
const image: Picture = {
|
|
6
8
|
src: 'money-1.png',
|
|
@@ -18,45 +20,68 @@ const image: Picture = {
|
|
|
18
20
|
],
|
|
19
21
|
};
|
|
20
22
|
|
|
23
|
+
const benefits = [
|
|
24
|
+
{
|
|
25
|
+
label: 'До 5 млн ₽',
|
|
26
|
+
description: 'Кредитный лимит',
|
|
27
|
+
icon: 'EmptyWalletIcon',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: 'От 16,9%',
|
|
31
|
+
description: 'Ставка по кредиту',
|
|
32
|
+
icon: 'PercentageSquareIcon',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: 'До 5 лет',
|
|
36
|
+
description: 'Срок кредитования',
|
|
37
|
+
icon: 'CalendarIcon',
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
const buttons = [
|
|
42
|
+
{
|
|
43
|
+
href: 'https://rshb.ru',
|
|
44
|
+
text: 'Оформить карту',
|
|
45
|
+
target: '_blank',
|
|
46
|
+
version: 'primary',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
href: 'https://rshb.ru',
|
|
50
|
+
text: 'Подробнее',
|
|
51
|
+
target: '_blank',
|
|
52
|
+
version: 'secondary',
|
|
53
|
+
},
|
|
54
|
+
] as ButtonWithIconProps;
|
|
55
|
+
|
|
56
|
+
const items = [
|
|
57
|
+
'Совершайте любые личные покупки',
|
|
58
|
+
'Используйте корпоративную карту как обычную дебетовую, если вы ИП',
|
|
59
|
+
'Расходы для бизнеса на УСН 15% позволят снизить налоговую базу',
|
|
60
|
+
];
|
|
61
|
+
|
|
21
62
|
export default {
|
|
22
|
-
|
|
63
|
+
default: (
|
|
64
|
+
<div className="container grid grid-cols-12">
|
|
65
|
+
<ProductBlock
|
|
66
|
+
className="col-span-12"
|
|
67
|
+
context={context}
|
|
68
|
+
title={'Кредит до 5 000 000 Р\nбез залога и поручителей'}
|
|
69
|
+
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
70
|
+
benefits={benefits as Benefit[]}
|
|
71
|
+
buttons={buttons as ButtonWithIconProps[]}
|
|
72
|
+
image={image}
|
|
73
|
+
/>
|
|
74
|
+
</div>
|
|
75
|
+
),
|
|
76
|
+
items: (
|
|
23
77
|
<div className="container grid grid-cols-12">
|
|
24
78
|
<ProductBlock
|
|
25
79
|
className="col-span-12"
|
|
26
80
|
context={context}
|
|
27
81
|
title={'Кредит до 5 000 000 Р\nбез залога и поручителей'}
|
|
28
82
|
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
label: 'До 5 млн ₽',
|
|
32
|
-
description: 'Кредитный лимит',
|
|
33
|
-
icon: 'EmptyWalletIcon',
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: 'От 16,9%',
|
|
37
|
-
description: 'Ставка по кредиту',
|
|
38
|
-
icon: 'PercentageSquareIcon',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
label: 'До 5 лет',
|
|
42
|
-
description: 'Срок кредитования',
|
|
43
|
-
icon: 'CalendarIcon',
|
|
44
|
-
},
|
|
45
|
-
]}
|
|
46
|
-
buttons={[
|
|
47
|
-
{
|
|
48
|
-
href: 'https://rshb.ru',
|
|
49
|
-
text: 'Оформить карту',
|
|
50
|
-
target: '_blank',
|
|
51
|
-
version: 'primary',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
href: 'https://rshb.ru',
|
|
55
|
-
text: 'Подробнее',
|
|
56
|
-
target: '_blank',
|
|
57
|
-
version: 'secondary',
|
|
58
|
-
},
|
|
59
|
-
]}
|
|
83
|
+
items={items}
|
|
84
|
+
buttons={buttons as ButtonWithIconProps[]}
|
|
60
85
|
image={image}
|
|
61
86
|
/>
|
|
62
87
|
</div>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
2
|
import { context } from '../../setup-fixture';
|
|
3
3
|
import { ProductBlock } from './ProductBlock';
|
|
4
|
+
import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
5
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
6
|
|
|
5
7
|
const image: Picture = {
|
|
6
8
|
src: 'money-1.png',
|
|
@@ -12,6 +14,53 @@ const image: Picture = {
|
|
|
12
14
|
},
|
|
13
15
|
};
|
|
14
16
|
|
|
17
|
+
const breadcrumbs = [
|
|
18
|
+
{
|
|
19
|
+
text: 'Главная',
|
|
20
|
+
href: '/',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
text: 'Кредитные карты',
|
|
24
|
+
href: '/credit',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
text: 'Кредитная карта Своя Union Pay',
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
const benefits = [
|
|
32
|
+
{
|
|
33
|
+
label: 'До 5 млн ₽',
|
|
34
|
+
description: 'Кредитный лимит',
|
|
35
|
+
icon: 'EmptyWalletIcon',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: 'От 16,9%',
|
|
39
|
+
description: 'Ставка по кредиту',
|
|
40
|
+
icon: 'PercentageSquareIcon',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: 'До 5 лет',
|
|
44
|
+
description: 'Срок кредитования',
|
|
45
|
+
icon: 'CalendarIcon',
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
const buttons = [
|
|
50
|
+
{
|
|
51
|
+
href: 'https://rshb.ru',
|
|
52
|
+
text: 'Оформить карту',
|
|
53
|
+
target: '_blank',
|
|
54
|
+
version: 'primary',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
href: 'https://rshb.ru',
|
|
58
|
+
text: 'Подробнее',
|
|
59
|
+
target: '_blank',
|
|
60
|
+
version: 'secondary',
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
|
|
15
64
|
export default {
|
|
16
65
|
default: (
|
|
17
66
|
<div className="container grid grid-cols-12">
|
|
@@ -21,50 +70,9 @@ export default {
|
|
|
21
70
|
title={'Потребительский кредит наличными'}
|
|
22
71
|
headingType="h2"
|
|
23
72
|
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
24
|
-
breadcrumbs={
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
href: '/',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
text: 'Кредитные карты',
|
|
31
|
-
href: '/credit',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
text: 'Кредитная карта Своя Union Pay',
|
|
35
|
-
},
|
|
36
|
-
]}
|
|
37
|
-
benefits={[
|
|
38
|
-
{
|
|
39
|
-
label: 'До 5 млн ₽',
|
|
40
|
-
description: 'Кредитный лимит',
|
|
41
|
-
icon: 'EmptyWalletIcon',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
label: 'От 16,9%',
|
|
45
|
-
description: 'Ставка по кредиту',
|
|
46
|
-
icon: 'PercentageSquareIcon',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: 'До 5 лет',
|
|
50
|
-
description: 'Срок кредитования',
|
|
51
|
-
icon: 'CalendarIcon',
|
|
52
|
-
},
|
|
53
|
-
]}
|
|
54
|
-
buttons={[
|
|
55
|
-
{
|
|
56
|
-
href: 'https://rshb.ru',
|
|
57
|
-
text: 'Оформить карту',
|
|
58
|
-
target: '_blank',
|
|
59
|
-
version: 'primary',
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
href: 'https://rshb.ru',
|
|
63
|
-
text: 'Подробнее',
|
|
64
|
-
target: '_blank',
|
|
65
|
-
version: 'secondary',
|
|
66
|
-
},
|
|
67
|
-
]}
|
|
73
|
+
breadcrumbs={breadcrumbs}
|
|
74
|
+
benefits={benefits as Benefit[]}
|
|
75
|
+
buttons={buttons as ButtonWithIconProps[]}
|
|
68
76
|
image={image}
|
|
69
77
|
/>
|
|
70
78
|
</div>
|
|
@@ -78,51 +86,9 @@ export default {
|
|
|
78
86
|
headingType="h2"
|
|
79
87
|
version={'secondary'}
|
|
80
88
|
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
81
|
-
breadcrumbs={
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
href: '/',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
text: 'Кредитные карты',
|
|
88
|
-
href: '/credit',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
text: 'Кредитная карта Своя Union Pay',
|
|
92
|
-
href: '#',
|
|
93
|
-
},
|
|
94
|
-
]}
|
|
95
|
-
benefits={[
|
|
96
|
-
{
|
|
97
|
-
label: 'До 5 млн ₽',
|
|
98
|
-
description: 'Кредитный лимит',
|
|
99
|
-
icon: 'EmptyWalletWhiteIcon',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
label: 'От 16,9%',
|
|
103
|
-
description: 'Ставка по кредиту',
|
|
104
|
-
icon: 'PercentageSquareWhiteIcon',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
label: 'До 5 лет',
|
|
108
|
-
description: 'Срок кредитования',
|
|
109
|
-
icon: 'CalendarWhiteIcon',
|
|
110
|
-
},
|
|
111
|
-
]}
|
|
112
|
-
buttons={[
|
|
113
|
-
{
|
|
114
|
-
href: 'https://rshb.ru',
|
|
115
|
-
text: 'Оформить карту',
|
|
116
|
-
target: '_blank',
|
|
117
|
-
version: 'secondary',
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
href: 'https://rshb.ru',
|
|
121
|
-
text: 'Подробнее',
|
|
122
|
-
target: '_blank',
|
|
123
|
-
version: 'primary',
|
|
124
|
-
},
|
|
125
|
-
]}
|
|
89
|
+
breadcrumbs={breadcrumbs}
|
|
90
|
+
benefits={benefits as Benefit[]}
|
|
91
|
+
buttons={buttons as ButtonWithIconProps[]}
|
|
126
92
|
image={image}
|
|
127
93
|
/>
|
|
128
94
|
</div>
|
|
@@ -134,27 +100,14 @@ export default {
|
|
|
134
100
|
context={context}
|
|
135
101
|
title={'Оплата проходит \nв 180 странах мира'}
|
|
136
102
|
headingType="h2"
|
|
137
|
-
breadcrumbs={
|
|
103
|
+
breadcrumbs={breadcrumbs}
|
|
138
104
|
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
139
105
|
items={[
|
|
140
106
|
'Совершайте любые личные покупки',
|
|
141
107
|
'Используйте корпоративную карту как обычную дебетовую, если вы ИП',
|
|
142
108
|
'Расходы для бизнеса на УСН 15% позволят снизить налоговую базу',
|
|
143
109
|
]}
|
|
144
|
-
buttons={[
|
|
145
|
-
{
|
|
146
|
-
href: 'https://rshb.ru',
|
|
147
|
-
text: 'Оформить карту',
|
|
148
|
-
target: '_blank',
|
|
149
|
-
version: 'primary',
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
href: 'https://rshb.ru',
|
|
153
|
-
text: 'Подробнее',
|
|
154
|
-
target: '_blank',
|
|
155
|
-
version: 'secondary',
|
|
156
|
-
},
|
|
157
|
-
]}
|
|
110
|
+
buttons={buttons as ButtonWithIconProps[]}
|
|
158
111
|
image={image}
|
|
159
112
|
/>
|
|
160
113
|
</div>
|
|
@@ -34,7 +34,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
34
34
|
<Heading
|
|
35
35
|
headingType={headingType}
|
|
36
36
|
title={title}
|
|
37
|
-
className=
|
|
37
|
+
className="whitespace-pre-wrap max-w-[600px]"
|
|
38
38
|
/>
|
|
39
39
|
)
|
|
40
40
|
}
|
|
@@ -48,11 +48,11 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
48
48
|
) : null
|
|
49
49
|
}
|
|
50
50
|
>
|
|
51
|
-
{description ? <Description className="
|
|
52
|
-
{benefits?.length ? (
|
|
53
|
-
<div className="mt-
|
|
51
|
+
{description ? <Description className="mt-3" description={description} /> : null}
|
|
52
|
+
{benefits?.filter((items) => items.label)?.length ? (
|
|
53
|
+
<div className="mt-3">{benefits.map((_, i) => renderBenefit(_, i, version))}</div>
|
|
54
54
|
) : null}
|
|
55
|
-
{items?.length ? <List items={items} /> : null}
|
|
55
|
+
{items?.length ? <List className="mt-3" items={items} /> : null}
|
|
56
56
|
</BaseTile>
|
|
57
57
|
</div>
|
|
58
58
|
{renderImage(image)}
|
|
@@ -34,7 +34,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
34
34
|
<Heading
|
|
35
35
|
headingType={headingType}
|
|
36
36
|
title={title}
|
|
37
|
-
className=
|
|
37
|
+
className="whitespace-pre-wrap max-w-[600px]"
|
|
38
38
|
/>
|
|
39
39
|
)
|
|
40
40
|
}
|
|
@@ -45,10 +45,10 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
45
45
|
}
|
|
46
46
|
>
|
|
47
47
|
{description && (
|
|
48
|
-
<Description className="text-m-base max-w-[600px]" description={description} />
|
|
48
|
+
<Description className="text-m-base mt-4 max-w-[600px]" description={description} />
|
|
49
49
|
)}
|
|
50
|
-
{benefits?.length ? (
|
|
51
|
-
<div className="flex gap-6 mt-6
|
|
50
|
+
{benefits?.filter((items) => items.label)?.length ? (
|
|
51
|
+
<div className="flex gap-6 mt-6">
|
|
52
52
|
{benefits.map((_, i) => renderBenefit(_, i, version))}
|
|
53
53
|
</div>
|
|
54
54
|
) : null}
|
|
@@ -5,16 +5,12 @@ export function useCreditCalculatorData(
|
|
|
5
5
|
useAsyncData: AsyncDataHook,
|
|
6
6
|
directoryName: string | undefined,
|
|
7
7
|
): CreditCalculatorData {
|
|
8
|
-
const { data } = useAsyncData(creditCalculatorUrl(directoryName),
|
|
9
|
-
fetchCreditCalculatorData(directoryName),
|
|
10
|
-
);
|
|
8
|
+
const { data } = useAsyncData(creditCalculatorUrl(directoryName), fetchCreditCalculatorData);
|
|
11
9
|
return data || {};
|
|
12
10
|
}
|
|
13
11
|
|
|
14
|
-
async function fetchCreditCalculatorData(
|
|
15
|
-
|
|
16
|
-
): Promise<CreditCalculatorData> {
|
|
17
|
-
const response = await fetch(creditCalculatorUrl(directoryName));
|
|
12
|
+
async function fetchCreditCalculatorData(url: string): Promise<CreditCalculatorData> {
|
|
13
|
+
const response = await fetch(url);
|
|
18
14
|
return await response.json();
|
|
19
15
|
}
|
|
20
16
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { AsyncDataHook } from '../components/ContentPage/ContentPageContext';
|
|
2
|
+
import { ExchangeCurrencyItem } from '../components/ExchangeRateTile/ExchangeRateTileContent';
|
|
3
|
+
|
|
4
|
+
interface ExchangeRatesData {
|
|
5
|
+
exchangeRate?: {
|
|
6
|
+
currencies?: ExchangeCurrencyItem[];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function useExchangeRates(useAsyncData: AsyncDataHook): ExchangeRatesData {
|
|
11
|
+
const { data } = useAsyncData(EXCHANGE_RATES_URL, fetchExchangeRates);
|
|
12
|
+
|
|
13
|
+
return data || {};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
async function fetchExchangeRates(): Promise<ExchangeRatesData | undefined> {
|
|
17
|
+
try {
|
|
18
|
+
const response = await fetch(EXCHANGE_RATES_URL);
|
|
19
|
+
return await response.json();
|
|
20
|
+
} catch (err) {
|
|
21
|
+
console.error(err);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const EXCHANGE_RATES_URL = '/api/v1/exchangerates.json';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg title="Gps" width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M9.35107 5.45074C10.3959 4.89842 11.587 4.58569 12.8511 4.58569C16.9932 4.58569 20.3511 7.94356 20.3511 12.0857C20.3511 16.2278 16.9932 19.5857 12.8511 19.5857C8.70894 19.5857 5.35107 16.2278 5.35107 12.0857C5.35107 10.8216 5.66381 9.63055 6.21612 8.58569" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M12.8511 15.0857C14.5079 15.0857 15.8511 13.7425 15.8511 12.0857C15.8511 10.4288 14.5079 9.08569 12.8511 9.08569C11.1942 9.08569 9.85107 10.4288 9.85107 12.0857C9.85107 13.7425 11.1942 15.0857 12.8511 15.0857Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M12.8511 4.08569V2.08569" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M4.85107 12.0857H2.85107" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
<path d="M12.8511 20.0857V22.0857" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
+
<path d="M20.8511 12.0857H22.8511" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
</svg>
|
package/src/icons/IconName.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Generated. Do not touch
|
|
3
3
|
|
|
4
4
|
export enum IconMap {
|
|
5
|
-
ActualBalanceIcon = "ActualBalanceIcon", AppleIcon = "AppleIcon", AtmIcon = "AtmIcon", BankIcon = "BankIcon", BurgerIcon = "BurgerIcon", BurgerIconWhite = "BurgerIconWhite", Calendar2Icon = "Calendar2Icon", CalendarCircleIcon = "CalendarCircleIcon", CalendarIcon = "CalendarIcon", CalendarTickIcon = "CalendarTickIcon", CalendarWhiteIcon = "CalendarWhiteIcon", CardIcon = "CardIcon", CardPosIcon = "CardPosIcon", CardTickIcon = "CardTickIcon", CardWithGemIcon = "CardWithGemIcon", ChartSquareIcon = "ChartSquareIcon", ClockIcon = "ClockIcon", CloseIcon = "CloseIcon", ComfortableCompIcon = "ComfortableCompIcon", CreditCardsIcon = "CreditCardsIcon", DiscountShapeIcon = "DiscountShapeIcon", DocIcon = "DocIcon", DocIconMonoColor = "DocIconMonoColor", DocumentTextIcon = "DocumentTextIcon", DollarIcon = "DollarIcon", EarthIcon = "EarthIcon", EmptyWalletChangeIcon = "EmptyWalletChangeIcon", EmptyWalletIcon = "EmptyWalletIcon", EmptyWalletWhiteIcon = "EmptyWalletWhiteIcon", EuroIcon = "EuroIcon", GeolocationIcon = "GeolocationIcon", GlassIcon = "GlassIcon", GlobalIcon = "GlobalIcon", GridIcon = "GridIcon", GridIconWhite = "GridIconWhite", InterestGrowthIcon = "InterestGrowthIcon", InterestIcon = "InterestIcon", JCBIcon = "JCBIcon", LoupeIcon = "LoupeIcon", MasterCardIcon = "MasterCardIcon", MinusIcon = "MinusIcon", MirIcon = "MirIcon", MoneyIcon = "MoneyIcon", MoneyInsuranceIcon = "MoneyInsuranceIcon", MonitorMobileIcon = "MonitorMobileIcon", NewDocIcon = "NewDocIcon", OfficeIcon = "OfficeIcon", OkIcon = "OkIcon", PassSendIcon = "PassSendIcon", PercentageRoundIcon = "PercentageRoundIcon", PercentageSquareIcon = "PercentageSquareIcon", PercentageSquareWhiteIcon = "PercentageSquareWhiteIcon", PersonalCardIcon = "PersonalCardIcon", PlayMarketIcon = "PlayMarketIcon", PlusIcon = "PlusIcon", Profile2UserIcon = "Profile2UserIcon", ProfileIcon = "ProfileIcon", RoundRubleIcon = "RoundRubleIcon", SafeIcon = "SafeIcon", ShieldTickIcon = "ShieldTickIcon", SignDocsIcon = "SignDocsIcon", SmallClockIcon = "SmallClockIcon", TelegramIcon = "TelegramIcon", UnionPayIcon = "UnionPayIcon", UserTickIcon = "UserTickIcon", VisaIcon = "VisaIcon", VKIcon = "VKIcon", WalletAdd2Icon = "WalletAdd2Icon", WalletAddIcon = "WalletAddIcon", WalletIcon = "WalletIcon", WalletWithMoneyIcon = "WalletWithMoneyIcon"
|
|
5
|
+
ActualBalanceIcon = "ActualBalanceIcon", AppleIcon = "AppleIcon", AtmIcon = "AtmIcon", BankIcon = "BankIcon", BurgerIcon = "BurgerIcon", BurgerIconWhite = "BurgerIconWhite", Calendar2Icon = "Calendar2Icon", CalendarCircleIcon = "CalendarCircleIcon", CalendarIcon = "CalendarIcon", CalendarTickIcon = "CalendarTickIcon", CalendarWhiteIcon = "CalendarWhiteIcon", CardIcon = "CardIcon", CardPosIcon = "CardPosIcon", CardTickIcon = "CardTickIcon", CardWithGemIcon = "CardWithGemIcon", ChartSquareIcon = "ChartSquareIcon", ClockIcon = "ClockIcon", CloseIcon = "CloseIcon", ComfortableCompIcon = "ComfortableCompIcon", CreditCardsIcon = "CreditCardsIcon", DiscountShapeIcon = "DiscountShapeIcon", DocIcon = "DocIcon", DocIconMonoColor = "DocIconMonoColor", DocumentTextIcon = "DocumentTextIcon", DollarIcon = "DollarIcon", EarthIcon = "EarthIcon", EmptyWalletChangeIcon = "EmptyWalletChangeIcon", EmptyWalletIcon = "EmptyWalletIcon", EmptyWalletWhiteIcon = "EmptyWalletWhiteIcon", EuroIcon = "EuroIcon", GeolocationIcon = "GeolocationIcon", GlassIcon = "GlassIcon", GlobalIcon = "GlobalIcon", GpsIcon = "GpsIcon", GridIcon = "GridIcon", GridIconWhite = "GridIconWhite", InterestGrowthIcon = "InterestGrowthIcon", InterestIcon = "InterestIcon", JCBIcon = "JCBIcon", LoupeIcon = "LoupeIcon", MasterCardIcon = "MasterCardIcon", MinusIcon = "MinusIcon", MirIcon = "MirIcon", MoneyIcon = "MoneyIcon", MoneyInsuranceIcon = "MoneyInsuranceIcon", MonitorMobileIcon = "MonitorMobileIcon", NewDocIcon = "NewDocIcon", OfficeIcon = "OfficeIcon", OkIcon = "OkIcon", PassSendIcon = "PassSendIcon", PercentageRoundIcon = "PercentageRoundIcon", PercentageSquareIcon = "PercentageSquareIcon", PercentageSquareWhiteIcon = "PercentageSquareWhiteIcon", PersonalCardIcon = "PersonalCardIcon", PlayMarketIcon = "PlayMarketIcon", PlusIcon = "PlusIcon", Profile2UserIcon = "Profile2UserIcon", ProfileIcon = "ProfileIcon", RoundRubleIcon = "RoundRubleIcon", SafeIcon = "SafeIcon", ShieldTickIcon = "ShieldTickIcon", SignDocsIcon = "SignDocsIcon", SmallClockIcon = "SmallClockIcon", TelegramIcon = "TelegramIcon", UnionPayIcon = "UnionPayIcon", UserTickIcon = "UserTickIcon", VisaIcon = "VisaIcon", VKIcon = "VKIcon", WalletAdd2Icon = "WalletAdd2Icon", WalletAddIcon = "WalletAddIcon", WalletIcon = "WalletIcon", WalletWithMoneyIcon = "WalletWithMoneyIcon"
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -10,7 +10,7 @@ export enum IconMap {
|
|
|
10
10
|
* @title Иконка
|
|
11
11
|
* @enumNames [
|
|
12
12
|
* "",
|
|
13
|
-
* "Деньги", "Лого «Apple»", "Банкомат", "Банк", "Бургер", "Бургер (белый)", "Календарь 2", "Скруглённый календарь", "Календарь", "Календарь с галочкой", "Календарь белый", "Кред. карта", "Кред. карта под наклоном", "Кред. карта с галочкой", "Карта с драгоценностями", "Деньги внутри кошелька", "Часы", "Крестик", "Кресло", "Кредитные карты", "Скидка", "Документ", "Документ (одноцветный)", "Документ с текстом", "Доллар", "Земля", "Пустой кошелёк с возвратом", "Пустой кошелёк", "Пустой кошелёк (белый)", "Евро", "Геолокация", "Зеркало", "Глобус", "Сетка", "Сетка (белая)", "Диаграмма роста", "Скидка", "JCB", "Лупа", "MasterCard", "Минус", "МИР", "Деньги", "Денежное страхование", "Монитор и мобильный", "Новый документ", "Офис", "Лого «Одноклассники»", "Бизнес", "Проценты (круг.)", "Проценты", "Проценты белые", "Персональная карта", "Лого «PlayMarket»", "Плюс", "Профиль, 2 персоны", "Профиль", "Рубль (круг.)", "Сейф", "Безопасность", "Подписанные документы", "Маленькие часы", "Лого «Telegram»", "UnionPay", "Пользователь", "Visa", "Лого «VK»", "Пополнение карты", "Кошелёк с плюсом", "Кошелёк", "Кошелёк с деньгами"
|
|
13
|
+
* "Деньги", "Лого «Apple»", "Банкомат", "Банк", "Бургер", "Бургер (белый)", "Календарь 2", "Скруглённый календарь", "Календарь", "Календарь с галочкой", "Календарь белый", "Кред. карта", "Кред. карта под наклоном", "Кред. карта с галочкой", "Карта с драгоценностями", "Деньги внутри кошелька", "Часы", "Крестик", "Кресло", "Кредитные карты", "Скидка", "Документ", "Документ (одноцветный)", "Документ с текстом", "Доллар", "Земля", "Пустой кошелёк с возвратом", "Пустой кошелёк", "Пустой кошелёк (белый)", "Евро", "Геолокация", "Зеркало", "Глобус", "Gps", "Сетка", "Сетка (белая)", "Диаграмма роста", "Скидка", "JCB", "Лупа", "MasterCard", "Минус", "МИР", "Деньги", "Денежное страхование", "Монитор и мобильный", "Новый документ", "Офис", "Лого «Одноклассники»", "Бизнес", "Проценты (круг.)", "Проценты", "Проценты белые", "Персональная карта", "Лого «PlayMarket»", "Плюс", "Профиль, 2 персоны", "Профиль", "Рубль (круг.)", "Сейф", "Безопасность", "Подписанные документы", "Маленькие часы", "Лого «Telegram»", "UnionPay", "Пользователь", "Visa", "Лого «VK»", "Пополнение карты", "Кошелёк с плюсом", "Кошелёк", "Кошелёк с деньгами"
|
|
14
14
|
* ]
|
|
15
15
|
*/
|
|
16
|
-
export type IconName = "" | "ActualBalanceIcon" | "AppleIcon" | "AtmIcon" | "BankIcon" | "BurgerIcon" | "BurgerIconWhite" | "Calendar2Icon" | "CalendarCircleIcon" | "CalendarIcon" | "CalendarTickIcon" | "CalendarWhiteIcon" | "CardIcon" | "CardPosIcon" | "CardTickIcon" | "CardWithGemIcon" | "ChartSquareIcon" | "ClockIcon" | "CloseIcon" | "ComfortableCompIcon" | "CreditCardsIcon" | "DiscountShapeIcon" | "DocIcon" | "DocIconMonoColor" | "DocumentTextIcon" | "DollarIcon" | "EarthIcon" | "EmptyWalletChangeIcon" | "EmptyWalletIcon" | "EmptyWalletWhiteIcon" | "EuroIcon" | "GeolocationIcon" | "GlassIcon" | "GlobalIcon" | "GridIcon" | "GridIconWhite" | "InterestGrowthIcon" | "InterestIcon" | "JCBIcon" | "LoupeIcon" | "MasterCardIcon" | "MinusIcon" | "MirIcon" | "MoneyIcon" | "MoneyInsuranceIcon" | "MonitorMobileIcon" | "NewDocIcon" | "OfficeIcon" | "OkIcon" | "PassSendIcon" | "PercentageRoundIcon" | "PercentageSquareIcon" | "PercentageSquareWhiteIcon" | "PersonalCardIcon" | "PlayMarketIcon" | "PlusIcon" | "Profile2UserIcon" | "ProfileIcon" | "RoundRubleIcon" | "SafeIcon" | "ShieldTickIcon" | "SignDocsIcon" | "SmallClockIcon" | "TelegramIcon" | "UnionPayIcon" | "UserTickIcon" | "VisaIcon" | "VKIcon" | "WalletAdd2Icon" | "WalletAddIcon" | "WalletIcon" | "WalletWithMoneyIcon";
|
|
16
|
+
export type IconName = "" | "ActualBalanceIcon" | "AppleIcon" | "AtmIcon" | "BankIcon" | "BurgerIcon" | "BurgerIconWhite" | "Calendar2Icon" | "CalendarCircleIcon" | "CalendarIcon" | "CalendarTickIcon" | "CalendarWhiteIcon" | "CardIcon" | "CardPosIcon" | "CardTickIcon" | "CardWithGemIcon" | "ChartSquareIcon" | "ClockIcon" | "CloseIcon" | "ComfortableCompIcon" | "CreditCardsIcon" | "DiscountShapeIcon" | "DocIcon" | "DocIconMonoColor" | "DocumentTextIcon" | "DollarIcon" | "EarthIcon" | "EmptyWalletChangeIcon" | "EmptyWalletIcon" | "EmptyWalletWhiteIcon" | "EuroIcon" | "GeolocationIcon" | "GlassIcon" | "GlobalIcon" | "GpsIcon" | "GridIcon" | "GridIconWhite" | "InterestGrowthIcon" | "InterestIcon" | "JCBIcon" | "LoupeIcon" | "MasterCardIcon" | "MinusIcon" | "MirIcon" | "MoneyIcon" | "MoneyInsuranceIcon" | "MonitorMobileIcon" | "NewDocIcon" | "OfficeIcon" | "OkIcon" | "PassSendIcon" | "PercentageRoundIcon" | "PercentageSquareIcon" | "PercentageSquareWhiteIcon" | "PersonalCardIcon" | "PlayMarketIcon" | "PlusIcon" | "Profile2UserIcon" | "ProfileIcon" | "RoundRubleIcon" | "SafeIcon" | "ShieldTickIcon" | "SignDocsIcon" | "SmallClockIcon" | "TelegramIcon" | "UnionPayIcon" | "UserTickIcon" | "VisaIcon" | "VKIcon" | "WalletAdd2Icon" | "WalletAddIcon" | "WalletIcon" | "WalletWithMoneyIcon";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InputTypes = 'text' | 'number';
|
package/src/setup-fixture.ts
CHANGED
|
@@ -9,12 +9,8 @@ export default {
|
|
|
9
9
|
<p>Private clients</p>
|
|
10
10
|
<div className="flex gap-6" data-theme="pc">
|
|
11
11
|
<Button href="https://www.rshb.ru/" target="_blank" text="Primary" version="primary" />
|
|
12
|
-
<Button
|
|
13
|
-
|
|
14
|
-
target="_blank"
|
|
15
|
-
text="Secondary"
|
|
16
|
-
version="secondary"
|
|
17
|
-
/>
|
|
12
|
+
<Button href="https://www.rshb.ru/" target="_blank" text="Link" version="secondary" />
|
|
13
|
+
<Button href="https://www.rshb.ru/" target="_blank" text="Secondary" version="link" />
|
|
18
14
|
</div>
|
|
19
15
|
</div>
|
|
20
16
|
<div>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputProps } from './InputProps';
|
|
3
|
+
|
|
4
|
+
export const Input = JSX<InputProps>(({ className = '', id, name, type = 'text', placeholder }) => {
|
|
5
|
+
return (
|
|
6
|
+
<input className={className} id={id} name={name || id} type={type} placeholder={placeholder} />
|
|
7
|
+
);
|
|
8
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
|
|
3
|
+
export interface SelectProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const Select = JSX<SelectProps>(({ className = '', id, name, children }) => {
|
|
10
|
+
return (
|
|
11
|
+
<select className={className} id={id} name={name || id}>
|
|
12
|
+
{children}
|
|
13
|
+
</select>
|
|
14
|
+
);
|
|
15
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
|
|
3
|
+
export interface SelectOptionProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const SelectOption = JSX<SelectOptionProps>(({ className = '', value, children }) => {
|
|
9
|
+
return (
|
|
10
|
+
<option className={className} value={`${value}`}>
|
|
11
|
+
{children}
|
|
12
|
+
</option>
|
|
13
|
+
);
|
|
14
|
+
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { DEFAULT_GAP, DEFAULT_PADDING } from './constants';
|
|
3
|
+
import { SwipeListControlDots } from './SwipeListControlDots';
|
|
4
|
+
import { SwipeListControlList } from './SwipeListControlList';
|
|
2
5
|
import type { SwipeListControlProps } from './SwipeListControlProps';
|
|
3
|
-
import { getScrollPoints } from './utils/getScrollPoints';
|
|
4
6
|
import { getIndexParts } from './utils/getIndexParts';
|
|
5
|
-
import {
|
|
6
|
-
import { SwipeListControlDots } from './SwipeListControlDots';
|
|
7
|
-
import { DEFAULT_GAP, DEFAULT_PADDING } from './constants';
|
|
7
|
+
import { getScrollPoints } from './utils/getScrollPoints';
|
|
8
8
|
|
|
9
9
|
export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
10
10
|
({
|
|
@@ -14,6 +14,7 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
|
14
14
|
gap = DEFAULT_GAP,
|
|
15
15
|
padding = DEFAULT_PADDING,
|
|
16
16
|
showDots = true,
|
|
17
|
+
onSlideChange,
|
|
17
18
|
}) => {
|
|
18
19
|
const [activeIndex, setActiveIndex] = context.useState<number>(0);
|
|
19
20
|
const [indexFraction, setIndexFraction] = context.useState<number>(0);
|
|
@@ -35,28 +36,35 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
|
|
|
35
36
|
});
|
|
36
37
|
|
|
37
38
|
const { index, fraction } = getIndexParts(scrollLeft, scrollPoints);
|
|
39
|
+
if (index !== activeIndex && onSlideChange) {
|
|
40
|
+
onSlideChange();
|
|
41
|
+
}
|
|
38
42
|
setActiveIndex(index);
|
|
39
43
|
setIndexFraction(fraction);
|
|
40
44
|
};
|
|
41
45
|
|
|
42
46
|
return (
|
|
43
47
|
<div className={className}>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
padding={padding}
|
|
47
|
-
activeIndex={activeIndex}
|
|
48
|
-
onScroll={handleScroll}
|
|
49
|
-
>
|
|
50
|
-
{children}
|
|
51
|
-
</SwipeListControlList>
|
|
52
|
-
<SwipeListControlDots
|
|
53
|
-
activeIndex={activeIndex}
|
|
54
|
-
indexFraction={indexFraction}
|
|
55
|
-
showDots={showDots}
|
|
56
|
-
>
|
|
57
|
-
{children}
|
|
58
|
-
</SwipeListControlDots>
|
|
48
|
+
{renderSwipeList({ gap, padding, activeIndex, handleScroll, children })}
|
|
49
|
+
{renderSwipelistDots({ activeIndex, indexFraction, showDots, children })}
|
|
59
50
|
</div>
|
|
60
51
|
);
|
|
61
52
|
},
|
|
62
53
|
);
|
|
54
|
+
|
|
55
|
+
const renderSwipeList = ({ gap, padding, activeIndex, handleScroll, children }) => (
|
|
56
|
+
<SwipeListControlList
|
|
57
|
+
gap={gap}
|
|
58
|
+
padding={padding}
|
|
59
|
+
activeIndex={activeIndex}
|
|
60
|
+
onScroll={handleScroll}
|
|
61
|
+
>
|
|
62
|
+
{children}
|
|
63
|
+
</SwipeListControlList>
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
const renderSwipelistDots = ({ activeIndex, indexFraction, showDots, children }) => (
|
|
67
|
+
<SwipeListControlDots activeIndex={activeIndex} indexFraction={indexFraction} showDots={showDots}>
|
|
68
|
+
{children}
|
|
69
|
+
</SwipeListControlDots>
|
|
70
|
+
);
|