@redneckz/wildless-cms-uni-blocks 0.9.16 → 0.10.1
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.9.10.js +30 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +405 -246
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/InputControl.d.ts +10 -0
- package/bundle/components/ApplicationForm/{WrapperSelect.d.ts → SelectControl.d.ts} +4 -2
- package/bundle/components/ApplicationForm/models.d.ts +5 -0
- package/bundle/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/{lib/components/ApplicationForm/renderSelects.d.ts → bundle/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
- package/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/bundle/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/{dist/components/ApplicationForm/renderBankOffices.d.ts → bundle/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
- package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/bundle/components/ApplicationForm/useForm.d.ts +14 -0
- package/bundle/components/ApplicationForm/validate.d.ts +1 -0
- package/bundle/components/Carousel/CarouselContent.d.ts +2 -0
- package/bundle/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/bundle/components/Footer/FooterContent.d.ts +1 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/bundle/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/bundle/components/ProductTile/renderImage.d.ts +1 -1
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/bundle/components/Tile/TileContent.d.ts +2 -0
- package/bundle/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/bundle/ui-kit/Select/Select.d.ts +2 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +3 -3
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +52 -41
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js +38 -25
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/InputControl.d.ts +10 -0
- package/dist/components/ApplicationForm/InputControl.js +10 -0
- package/dist/components/ApplicationForm/InputControl.js.map +1 -0
- package/{lib/components/ApplicationForm/WrapperSelect.d.ts → dist/components/ApplicationForm/SelectControl.d.ts} +4 -2
- package/dist/components/ApplicationForm/SelectControl.js +14 -0
- package/dist/components/ApplicationForm/SelectControl.js.map +1 -0
- package/dist/components/ApplicationForm/models.d.ts +5 -0
- package/dist/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/dist/components/ApplicationForm/normalizeSelected.js +5 -0
- package/dist/components/ApplicationForm/normalizeSelected.js.map +1 -0
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +8 -0
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
- package/{bundle/components/ApplicationForm/renderSelects.d.ts → dist/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +9 -0
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +8 -0
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
- package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +8 -0
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
- package/dist/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/dist/components/ApplicationForm/renderRegion.js +8 -0
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -0
- package/{lib/components/ApplicationForm/renderBankOffices.d.ts → dist/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
- package/dist/components/ApplicationForm/renderRegionDepartment.js +8 -0
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
- package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/dist/components/ApplicationForm/renderWedDataOrganization.js +8 -0
- package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
- package/dist/components/ApplicationForm/useForm.d.ts +14 -0
- package/dist/components/ApplicationForm/useForm.js +37 -0
- package/dist/components/ApplicationForm/useForm.js.map +1 -0
- package/dist/components/ApplicationForm/validate.d.ts +1 -0
- package/dist/components/ApplicationForm/validate.js +22 -0
- package/dist/components/ApplicationForm/validate.js.map +1 -0
- package/dist/components/Blocks.js +4 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +5 -3
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +4 -3
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +2 -0
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/dist/components/ExchangeRateOffice/Currencies.js +12 -0
- package/dist/components/ExchangeRateOffice/Currencies.js.map +1 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +16 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
- package/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/dist/components/ExchangeRateOffice/renderCurrencies.js +30 -0
- package/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
- package/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/dist/components/ExchangeRateOffice/renderTableHeader.js +9 -0
- package/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
- package/dist/components/Footer/FooterContent.d.ts +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +2 -3
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +4 -2
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/dist/components/ProductTile/renderImage.d.ts +1 -1
- package/dist/components/ProductTile/renderImage.js +3 -2
- package/dist/components/ProductTile/renderImage.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +22 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
- package/dist/components/RichTextBlock/RichTextBlock.js +2 -2
- package/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.js +1 -3
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/components/Tile/Tile.js +5 -4
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +2 -0
- package/dist/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +2 -2
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/RichText/RichText.js +3 -2
- package/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/dist/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/dist/ui-kit/Select/Select.d.ts +2 -0
- package/dist/ui-kit/Select/Select.js +5 -3
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +3 -3
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +53 -42
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js +38 -25
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/InputControl.d.ts +10 -0
- package/lib/components/ApplicationForm/InputControl.js +8 -0
- package/lib/components/ApplicationForm/InputControl.js.map +1 -0
- package/{mobile/bundle/components/ApplicationForm/WrapperSelect.d.ts → lib/components/ApplicationForm/SelectControl.d.ts} +4 -2
- package/lib/components/ApplicationForm/SelectControl.js +12 -0
- package/lib/components/ApplicationForm/SelectControl.js.map +1 -0
- package/lib/components/ApplicationForm/models.d.ts +5 -0
- package/lib/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/lib/components/ApplicationForm/normalizeSelected.js +2 -0
- package/lib/components/ApplicationForm/normalizeSelected.js.map +1 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +5 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
- package/{mobile/bundle/components/ApplicationForm/renderSelects.d.ts → lib/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +6 -0
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +5 -0
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
- package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +5 -0
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
- package/lib/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/lib/components/ApplicationForm/renderRegion.js +5 -0
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -0
- package/{bundle/components/ApplicationForm/renderBankOffices.d.ts → lib/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
- package/lib/components/ApplicationForm/renderRegionDepartment.js +5 -0
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
- package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/lib/components/ApplicationForm/renderWedDataOrganization.js +5 -0
- package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
- package/lib/components/ApplicationForm/useForm.d.ts +14 -0
- package/lib/components/ApplicationForm/useForm.js +34 -0
- package/lib/components/ApplicationForm/useForm.js.map +1 -0
- package/lib/components/ApplicationForm/validate.d.ts +1 -0
- package/lib/components/ApplicationForm/validate.js +19 -0
- package/lib/components/ApplicationForm/validate.js.map +1 -0
- package/lib/components/Blocks.js +4 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +5 -3
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +4 -3
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +2 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/lib/components/ExchangeRateOffice/Currencies.js +10 -0
- package/lib/components/ExchangeRateOffice/Currencies.js.map +1 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.fixture.d.ts +6 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +14 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
- package/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/lib/components/ExchangeRateOffice/renderCurrencies.js +27 -0
- package/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
- package/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/lib/components/ExchangeRateOffice/renderTableHeader.js +6 -0
- package/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
- package/lib/components/Footer/FooterContent.d.ts +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -1
- package/lib/components/ProductBlock/ProductBlock.js +2 -3
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +4 -2
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/lib/components/ProductTile/renderImage.d.ts +1 -1
- package/lib/components/ProductTile/renderImage.js +3 -2
- package/lib/components/ProductTile/renderImage.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.d.ts +6 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +20 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
- package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +3 -0
- package/lib/components/RichTextBlock/RichTextBlock.js +2 -2
- package/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.js +1 -3
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/components/Tile/Tile.fixture.d.ts +1 -0
- package/lib/components/Tile/Tile.js +5 -4
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +2 -0
- package/lib/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +2 -2
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/RichText/RichText.js +3 -2
- package/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/lib/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/lib/ui-kit/Select/Select.d.ts +2 -0
- package/lib/ui-kit/Select/Select.js +5 -3
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +7 -7
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/InputControl.d.ts +10 -0
- package/{dist/components/ApplicationForm/WrapperSelect.d.ts → mobile/bundle/components/ApplicationForm/SelectControl.d.ts} +4 -2
- package/mobile/bundle/components/ApplicationForm/models.d.ts +5 -0
- package/mobile/bundle/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/{dist/components/ApplicationForm/renderSelects.d.ts → mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
- package/mobile/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/mobile/bundle/components/ApplicationForm/{renderBankOffices.d.ts → renderRegionDepartment.d.ts} +4 -2
- package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/useForm.d.ts +14 -0
- package/mobile/bundle/components/ApplicationForm/validate.d.ts +1 -0
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/bundle/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/mobile/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/mobile/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/mobile/bundle/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/bundle/components/ProductTile/renderImage.d.ts +1 -1
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/mobile/bundle/components/Tile/TileContent.d.ts +2 -0
- package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/mobile/bundle/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +3 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +52 -41
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +38 -25
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/InputControl.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/InputControl.js +10 -0
- package/mobile/dist/components/ApplicationForm/InputControl.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/SelectControl.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/SelectControl.js +14 -0
- package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/models.d.ts +5 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelected.js +5 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelected.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +9 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/renderRegion.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +15 -0
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/useForm.d.ts +14 -0
- package/mobile/dist/components/ApplicationForm/useForm.js +37 -0
- package/mobile/dist/components/ApplicationForm/useForm.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/validate.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/validate.js +22 -0
- package/mobile/dist/components/ApplicationForm/validate.js.map +1 -0
- package/mobile/dist/components/Bonus/Bonus.js +5 -3
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +4 -3
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/mobile/dist/components/ExchangeRateOffice/Currencies.js +12 -0
- package/mobile/dist/components/ExchangeRateOffice/Currencies.js.map +1 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +16 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js +30 -0
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
- package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js +9 -0
- package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
- package/mobile/dist/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/dist/components/Headline/Headline.js +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +4 -2
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/dist/components/ProductTile/renderImage.d.ts +1 -1
- package/mobile/dist/components/ProductTile/renderImage.js +3 -2
- package/mobile/dist/components/ProductTile/renderImage.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +22 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js +2 -2
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +5 -4
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +2 -0
- package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -2
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/RichText/RichText.js +3 -2
- package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/mobile/dist/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/dist/ui-kit/Select/Select.js +5 -3
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +3 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +53 -42
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +38 -25
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/InputControl.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/InputControl.js +8 -0
- package/mobile/lib/components/ApplicationForm/InputControl.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/SelectControl.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/SelectControl.js +12 -0
- package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/models.d.ts +5 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelected.js +2 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelected.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +6 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/mobile/lib/components/ApplicationForm/renderRegion.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +15 -0
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/useForm.d.ts +14 -0
- package/mobile/lib/components/ApplicationForm/useForm.js +34 -0
- package/mobile/lib/components/ApplicationForm/useForm.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/validate.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/validate.js +19 -0
- package/mobile/lib/components/ApplicationForm/validate.js.map +1 -0
- package/mobile/lib/components/Bonus/Bonus.js +5 -3
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +4 -3
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/mobile/lib/components/ExchangeRateOffice/Currencies.js +10 -0
- package/mobile/lib/components/ExchangeRateOffice/Currencies.js.map +1 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +14 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js +27 -0
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
- package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js +6 -0
- package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
- package/mobile/lib/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/lib/components/Headline/Headline.js +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -2
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +4 -2
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
- package/mobile/lib/components/ProductTile/renderImage.d.ts +1 -1
- package/mobile/lib/components/ProductTile/renderImage.js +3 -2
- package/mobile/lib/components/ProductTile/renderImage.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +20 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js +2 -2
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +5 -4
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +2 -0
- package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -2
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/RichText.js +3 -2
- package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/mobile/lib/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/lib/ui-kit/Select/Select.js +5 -3
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/src/common.css +24 -5
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +2 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +3 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +52 -102
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +38 -109
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +75 -64
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +44 -31
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +43 -93
- package/mobile/src/components/ApplicationForm/InputControl.tsx +35 -0
- package/mobile/src/components/ApplicationForm/SelectControl.tsx +54 -0
- package/mobile/src/components/ApplicationForm/models.ts +6 -0
- package/mobile/src/components/ApplicationForm/normalizeSelected.ts +4 -0
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +60 -0
- package/{src/components/ApplicationForm/renderSelects.tsx → mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx} +22 -6
- package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +60 -0
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +76 -0
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +36 -0
- package/{src/components/ApplicationForm/renderBankOffices.tsx → mobile/src/components/ApplicationForm/renderRegionDepartment.tsx} +16 -7
- package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +68 -0
- package/mobile/src/components/ApplicationForm/useForm.ts +65 -0
- package/mobile/src/components/ApplicationForm/validate.ts +22 -0
- package/mobile/src/components/Bonus/Bonus.tsx +12 -7
- package/mobile/src/components/Carousel/Carousel.example.json +2 -1
- package/mobile/src/components/Carousel/Carousel.tsx +6 -2
- package/mobile/src/components/Carousel/CarouselContent.ts +2 -0
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +4 -2
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +5 -10
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
- package/mobile/src/components/ExchangeRateOffice/Currencies.ts +8 -0
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +32 -0
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +60 -0
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.ui.json +1 -0
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +36 -0
- package/mobile/src/components/ExchangeRateOffice/renderCurrencies.tsx +73 -0
- package/mobile/src/components/ExchangeRateOffice/renderTableHeader.tsx +11 -0
- package/mobile/src/components/Footer/FooterContent.ts +1 -1
- package/mobile/src/components/Headline/Headline.tsx +1 -5
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +0 -2
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +11 -6
- package/mobile/src/components/ProductTile/ProductTileContent.ts +1 -1
- package/mobile/src/components/ProductTile/renderImage.tsx +3 -2
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +10 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +82 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +20 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +22 -0
- package/mobile/src/components/RichTextBlock/RichTextBlock.tsx +2 -2
- package/mobile/src/components/Tile/Tile.example.json +2 -1
- package/mobile/src/components/Tile/Tile.tsx +26 -17
- package/mobile/src/components/Tile/TileContent.ts +2 -0
- package/mobile/src/ui-kit/Button/getRegularButtonClasses.ts +1 -1
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
- package/mobile/src/ui-kit/RichText/RichText.tsx +5 -2
- package/mobile/src/ui-kit/RichText/RichTextProps.ts +2 -2
- package/mobile/src/ui-kit/Select/Select.tsx +19 -4
- package/package.json +2 -2
- package/src/common.css +24 -5
- package/src/components/ApplicationForm/ApplicationForm.example.json +2 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +3 -3
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +52 -102
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +38 -109
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +75 -64
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +44 -31
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +43 -93
- package/src/components/ApplicationForm/InputControl.tsx +35 -0
- package/src/components/ApplicationForm/SelectControl.tsx +54 -0
- package/src/components/ApplicationForm/models.ts +6 -0
- package/src/components/ApplicationForm/normalizeSelected.ts +4 -0
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +60 -0
- package/{mobile/src/components/ApplicationForm/renderSelects.tsx → src/components/ApplicationForm/renderAcquiringRegion.tsx} +22 -6
- package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +60 -0
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +76 -0
- package/src/components/ApplicationForm/renderRegion.tsx +36 -0
- package/{mobile/src/components/ApplicationForm/renderBankOffices.tsx → src/components/ApplicationForm/renderRegionDepartment.tsx} +16 -7
- package/src/components/ApplicationForm/renderWedDataOrganization.tsx +68 -0
- package/src/components/ApplicationForm/useForm.ts +65 -0
- package/src/components/ApplicationForm/validate.ts +22 -0
- package/src/components/Blocks.ts +4 -0
- package/src/components/Bonus/Bonus.tsx +12 -7
- package/src/components/Carousel/Carousel.example.json +2 -1
- package/src/components/Carousel/Carousel.fixture.tsx +2 -1
- package/src/components/Carousel/Carousel.tsx +6 -2
- package/src/components/Carousel/CarouselContent.ts +2 -0
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +4 -2
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +5 -10
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +4 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
- package/src/components/ExchangeRateOffice/Currencies.ts +8 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +32 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.fixture.tsx +78 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +60 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.ui.json +1 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +36 -0
- package/src/components/ExchangeRateOffice/renderCurrencies.tsx +73 -0
- package/src/components/ExchangeRateOffice/renderTableHeader.tsx +11 -0
- package/src/components/Footer/FooterContent.ts +1 -1
- package/src/components/Headline/Headline.tsx +1 -5
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +14 -22
- package/src/components/ProductBlock/ProductBlock.tsx +5 -6
- package/src/components/ProductBlock/ProductBlockContent.ts +0 -2
- package/src/components/ProductBlock/ProductBlockInner.tsx +21 -25
- package/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/src/components/ProductTile/ProductTile.fixture.tsx +6 -2
- package/src/components/ProductTile/ProductTile.tsx +11 -6
- package/src/components/ProductTile/ProductTileContent.ts +1 -1
- package/src/components/ProductTile/renderImage.tsx +3 -2
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +10 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +37 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +82 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +20 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +22 -0
- package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +22 -0
- package/src/components/RichTextBlock/RichTextBlock.tsx +2 -2
- package/src/components/TariffsTable/EmbeddableCellData.tsx +1 -4
- package/src/components/Tile/Tile.example.json +2 -1
- package/src/components/Tile/Tile.fixture.tsx +5 -0
- package/src/components/Tile/Tile.tsx +26 -17
- package/src/components/Tile/TileContent.ts +2 -0
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +14 -0
- package/src/ui-kit/Button/getRegularButtonClasses.ts +1 -1
- package/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
- package/src/ui-kit/RichText/RichText.tsx +5 -2
- package/src/ui-kit/RichText/RichTextProps.ts +2 -2
- package/src/ui-kit/Select/Select.tsx +19 -4
- package/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/bundle/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/bundle/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/dist/components/ApplicationForm/WrapperSelect.js +0 -13
- package/dist/components/ApplicationForm/WrapperSelect.js.map +0 -1
- package/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/dist/components/ApplicationForm/normalizeSelectedRegion.js +0 -5
- package/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
- package/dist/components/ApplicationForm/renderBankOffices.js +0 -7
- package/dist/components/ApplicationForm/renderBankOffices.js.map +0 -1
- package/dist/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/dist/components/ApplicationForm/renderDataOrganization.js +0 -7
- package/dist/components/ApplicationForm/renderDataOrganization.js.map +0 -1
- package/dist/components/ApplicationForm/renderSelects.js +0 -8
- package/dist/components/ApplicationForm/renderSelects.js.map +0 -1
- package/dist/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/dist/components/ApplicationForm/useFormHandlers.js +0 -11
- package/dist/components/ApplicationForm/useFormHandlers.js.map +0 -1
- package/lib/components/ApplicationForm/WrapperSelect.js +0 -11
- package/lib/components/ApplicationForm/WrapperSelect.js.map +0 -1
- package/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/lib/components/ApplicationForm/normalizeSelectedRegion.js +0 -2
- package/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
- package/lib/components/ApplicationForm/renderBankOffices.js +0 -4
- package/lib/components/ApplicationForm/renderBankOffices.js.map +0 -1
- package/lib/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/lib/components/ApplicationForm/renderDataOrganization.js +0 -4
- package/lib/components/ApplicationForm/renderDataOrganization.js.map +0 -1
- package/lib/components/ApplicationForm/renderSelects.js +0 -5
- package/lib/components/ApplicationForm/renderSelects.js.map +0 -1
- package/lib/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/lib/components/ApplicationForm/useFormHandlers.js +0 -8
- package/lib/components/ApplicationForm/useFormHandlers.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/mobile/bundle/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/mobile/dist/components/ApplicationForm/WrapperSelect.d.ts +0 -11
- package/mobile/dist/components/ApplicationForm/WrapperSelect.js +0 -13
- package/mobile/dist/components/ApplicationForm/WrapperSelect.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js +0 -5
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderBankOffices.d.ts +0 -13
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js +0 -7
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.js +0 -7
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderSelects.d.ts +0 -11
- package/mobile/dist/components/ApplicationForm/renderSelects.js +0 -8
- package/mobile/dist/components/ApplicationForm/renderSelects.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js +0 -11
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/WrapperSelect.d.ts +0 -11
- package/mobile/lib/components/ApplicationForm/WrapperSelect.js +0 -11
- package/mobile/lib/components/ApplicationForm/WrapperSelect.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js +0 -2
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderBankOffices.d.ts +0 -13
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js +0 -4
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.js +0 -4
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderSelects.d.ts +0 -11
- package/mobile/lib/components/ApplicationForm/renderSelects.js +0 -5
- package/mobile/lib/components/ApplicationForm/renderSelects.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js +0 -8
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +0 -1
- package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +0 -32
- package/mobile/src/components/ApplicationForm/normalizeSelectedRegion.ts +0 -4
- package/mobile/src/components/ApplicationForm/renderDataOrganization.tsx +0 -78
- package/mobile/src/components/ApplicationForm/useFormHandlers.ts +0 -18
- package/src/components/ApplicationForm/WrapperSelect.tsx +0 -32
- package/src/components/ApplicationForm/normalizeSelectedRegion.ts +0 -4
- package/src/components/ApplicationForm/renderDataOrganization.tsx +0 -78
- package/src/components/ApplicationForm/useFormHandlers.ts +0 -18
|
@@ -7,12 +7,11 @@ const Breadcrumb_1 = require("../../ui-kit/Breadcrumb");
|
|
|
7
7
|
const joinList_1 = require("../../utils/joinList");
|
|
8
8
|
const ProductBlockInner_1 = require("./ProductBlockInner");
|
|
9
9
|
const renderBackwardButton_1 = require("./renderBackwardButton");
|
|
10
|
+
const style_1 = require("../../utils/style");
|
|
10
11
|
const breadcrumbStyle = 'text-secondary-text group-data-secondary:text-white/80';
|
|
11
12
|
exports.ProductBlock = (0, uni_jsx_1.JSX)((props) => {
|
|
12
13
|
const { className = '', breadcrumbs, backwardButton, version = 'primary', ...rest } = props;
|
|
13
14
|
const buttonVersion = version === 'primary' ? version : 'white';
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className:
|
|
15
|
-
? (0, renderBackwardButton_1.renderBackwardButton)(backwardButton, buttonVersion, 'mb-10 -mt-2.5')
|
|
16
|
-
: null, breadcrumbs?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "text-xs-light mb-6", children: (0, joinList_1.joinList)((0, jsx_runtime_1.jsx)("span", { className: `mx-2 ${breadcrumbStyle}`, children: "/" }))(breadcrumbs.map((breadcrumb, i) => ((0, jsx_runtime_1.jsx)(Breadcrumb_1.Breadcrumb, { className: breadcrumbStyle, ...breadcrumb }, String(i))))) })) : null, (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { version: version, ...rest })] }));
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('overflow-hidden p-12 flex flex-col box-border min-h-[454px]', className), version: version, ...rest, children: [backwardButton?.text ? (0, renderBackwardButton_1.renderBackwardButton)(backwardButton, buttonVersion) : null, breadcrumbs?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "text-xs-light mb-6", children: (0, joinList_1.joinList)((0, jsx_runtime_1.jsx)("span", { className: (0, style_1.style)('mx-2', breadcrumbStyle), children: "/" }))(breadcrumbs.map((breadcrumb, i) => ((0, jsx_runtime_1.jsx)(Breadcrumb_1.Breadcrumb, { className: breadcrumbStyle, ...breadcrumb }, String(i))))) })) : null, (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { className: "mt-10", version: version, ...rest })] }));
|
|
17
16
|
});
|
|
18
17
|
//# sourceMappingURL=ProductBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,wDAAqD;AACrD,mDAAgD;AAEhD,2DAAwD;AACxD,iEAA8D;
|
|
1
|
+
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,wDAAqD;AACrD,mDAAgD;AAEhD,2DAAwD;AACxD,iEAA8D;AAC9D,6CAA0C;AAI1C,MAAM,eAAe,GAAG,wDAAwD,CAAC;AAEpE,QAAA,YAAY,GAAG,IAAA,aAAG,EAAoB,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAC5F,MAAM,aAAa,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAEhE,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,6DAA6D,EAAE,SAAS,CAAC,EAC1F,OAAO,EAAE,OAAO,KACZ,IAAI,aAEP,cAAc,EAAE,IAAI,CAAC,CAAC,CAAC,IAAA,2CAAoB,EAAC,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,EACjF,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,CACrB,gCAAK,SAAS,EAAC,oBAAoB,YAChC,IAAA,mBAAQ,EAAC,iCAAM,SAAS,EAAE,IAAA,aAAK,EAAC,MAAM,EAAE,eAAe,CAAC,kBAAU,CAAC,CAClE,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CACjC,uBAAC,uBAAU,IAAiB,SAAS,EAAE,eAAe,KAAM,UAAU,IAArD,MAAM,CAAC,CAAC,CAAC,CAAgD,CAC3E,CAAC,CACH,GACG,CACP,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,qCAAiB,IAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAE,OAAO,KAAM,IAAI,GAAI,IACtD,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { BulletsProps } from '../../model/Bullets';
|
|
2
|
-
import type { Footnote } from '../../model/Footnote';
|
|
3
2
|
import type { HeadlineProps } from '../../model/HeadlineType';
|
|
4
3
|
import type { IconVersion } from '../../model/IconVersion';
|
|
5
4
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
@@ -9,7 +8,7 @@ import type { BackwardButtonProps, ButtonContent } from '../../ui-kit/Button/But
|
|
|
9
8
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
10
9
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
11
10
|
import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
12
|
-
export declare type ProductBlockInnerContent = HeadlineProps & RichTextProps & ListContent & ButtonContent &
|
|
11
|
+
export declare type ProductBlockInnerContent = HeadlineProps & RichTextProps & ListContent & ButtonContent & ImageContent & BulletsProps & {
|
|
13
12
|
/**
|
|
14
13
|
* @title Количество преимуществ в строке
|
|
15
14
|
* @enumNames ["2", "3"]
|
|
@@ -10,10 +10,10 @@ const style_1 = require("../../utils/style");
|
|
|
10
10
|
const BaseTile_1 = require("../BaseTile/BaseTile");
|
|
11
11
|
const Headline_1 = require("../Headline/Headline");
|
|
12
12
|
const renderBenefit_1 = require("./renderBenefit");
|
|
13
|
-
exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons,
|
|
13
|
+
exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, image, __html, items, version = 'primary', isDotted = true, textBlockClassName = '', directionRight = true, }) => {
|
|
14
14
|
const benefitsCount = benefits?.filter((_) => _.label)?.length;
|
|
15
15
|
const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCountOfRow);
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex grow justify-between items-stretch h-full', className), children: [image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className:
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex grow justify-between items-stretch h-full', className), children: [image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: (0, style_1.style)('mt-[-50px]', directionRight ? 'order-2' : ''), image: image })) : null, (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', textBlockClassName), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: [benefitsCount ? ((0, jsx_runtime_1.jsx)("div", { className: benefitsContainerStyles, children: benefits?.map((0, renderBenefit_1.renderBenefit)(version, benefitsVersion)) })) : null, __html ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-5", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] })] })] }));
|
|
17
17
|
});
|
|
18
18
|
const getBenefitsContainerStyles = (benefitsCountOfRow = 2) => `gap-6 mt-6 ${benefitsCountOfRow > 2
|
|
19
19
|
? 'inline-grid grid-cols-[auto_auto_auto]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mFAAgF;AAChF,8CAA2C;AAC3C,iDAA8C;AAC9C,6DAA0D;AAC1D,6CAA0C;AAC1C,mDAAgD;AAChD,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,kBAAkB,GAAG,CAAC,EACtB,QAAQ,EACR,eAAe,EACf,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAEx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AC7C,aAAa,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAE,uBAAuB,YACpC,QAAQ,EAAE,GAAG,CAAC,IAAA,6BAAa,EAAC,OAAO,EAAE,eAAe,CAAC,CAAC,GACnD,CACP,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,CAAC,CAAC,CACR,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,mBAAQ,IAAC,MAAM,EAAE,MAAM,GAAI,GACxB,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,uBAAC,WAAI,IACH,SAAS,EAAC,cAAc,EACxB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAC,UAAU,EACxB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,IACC,IACP,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,kBAAkB,GAAG,CAAC,EAAE,EAAE,CAC5D,cACE,kBAAkB,GAAG,CAAC;IACpB,CAAC,CAAC,wCAAwC;IAC1C,CAAC,CAAC,mCACN,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
3
3
|
import type { BackwardButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
-
export declare function renderBackwardButton(button: BackwardButtonProps, version: ButtonVersion, className
|
|
4
|
+
export declare function renderBackwardButton(button: BackwardButtonProps, version: ButtonVersion, className?: string): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,8CAA2C;AAC3C,6CAA0C;AAE1C,SAAgB,oBAAoB,CAClC,MAA2B,EAC3B,OAAsB,EACtB,
|
|
1
|
+
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,8CAA2C;AAC3C,6CAA0C;AAE1C,SAAgB,oBAAoB,CAClC,MAA2B,EAC3B,OAAsB,EACtB,SAAkB;IAElB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACtC,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,YAAY,GAAG,MAAM,EAAE,IAAI,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;IAE/D,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,mBAAmB,EAAE,SAAS,CAAC,aACnD,uBAAC,eAAM,IACL,OAAO,EAAE,OAAO,EAChB,OAAO,QACP,SAAS,EAAC,mEAAmE,EAC7E,SAAS,EAAE,IAAI,EACf,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,YAEd,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,WAAW,EAAE,YAAY,CAAC,WAAW,IAAI,WAAW,EAAE,EAChF,KAAK,SACL,GACK,EACR,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,eAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAI,CACnF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC;AA9BD,oDA8BC"}
|
|
@@ -10,13 +10,15 @@ const Headline_1 = require("../Headline/Headline");
|
|
|
10
10
|
const renderAdditionalDescription_1 = require("./renderAdditionalDescription");
|
|
11
11
|
const renderBenefit_1 = require("./renderBenefit");
|
|
12
12
|
const renderImage_1 = require("./renderImage");
|
|
13
|
-
exports.ProductTile = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image,
|
|
13
|
+
exports.ProductTile = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, directionRight = true, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('overflow-hidden p-9 box-border relative min-h-[364px] flex flex-col justify-between', (0, getTileRightPadding_1.getTileRightPadding)(className), className), ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', directionRight ? '' : 'items-end'), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: (0, style_1.style)('!p-0 !bg-transparent z-10', title || description ? 'mb-3.5' : ''), title: title, description: description, headlineVersion: headlineVersion, as: "h2", align: "text-left" }), renderBenefits(benefits, image), (0, renderAdditionalDescription_1.renderAdditionalDescription)(additionalDescription, image)] }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, {
|
|
14
|
+
className: (0, style_1.style)('mt-5 text-l', directionRight ? '' : 'justify-end'),
|
|
15
|
+
}), (0, renderImage_1.renderImage)(image, directionRight)] })));
|
|
14
16
|
function renderBenefits(benefits, image) {
|
|
15
17
|
if (!benefits.length) {
|
|
16
18
|
return null;
|
|
17
19
|
}
|
|
18
20
|
// picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
|
|
19
21
|
const benefitsWidth = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)("div", { className:
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline', benefitsWidth), children: benefits.length ? benefits.map(renderBenefit_1.renderBenefit) : null }));
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=ProductTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,mFAAgF;AAChF,6CAA0C;AAC1C,yEAAsE;AACtE,mDAAgD;AAEhD,+EAA4E;AAC5E,mDAAgD;AAChD,+CAA4C;AAI/B,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,qBAAqB,EACrB,QAAQ,GAAG,EAAE,EACb,OAAO,EACP,KAAK,EACL,
|
|
1
|
+
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,mFAAgF;AAChF,6CAA0C;AAC1C,yEAAsE;AACtE,mDAAgD;AAEhD,+EAA4E;AAC5E,mDAAgD;AAChD,+CAA4C;AAI/B,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,qBAAqB,EACrB,QAAQ,GAAG,EAAE,EACb,OAAO,EACP,KAAK,EACL,cAAc,GAAG,IAAI,EACrB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EACd,qFAAqF,EACrF,IAAA,yCAAmB,EAAC,SAAS,CAAC,EAC9B,SAAS,CACV,KACG,IAAI,aAER,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,eAAe,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,aACvE,uBAAC,mBAAQ,IACP,SAAS,EAAE,IAAA,aAAK,EAAC,2BAA2B,EAAE,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EACnF,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,EAAE,EAAC,IAAI,EACP,KAAK,EAAC,WAAW,GACjB,EACD,cAAc,CAAC,QAAQ,EAAE,KAAK,CAAC,EAC/B,IAAA,yDAA2B,EAAC,qBAAqB,EAAE,KAAK,CAAC,IACtD,EACL,IAAA,2CAAoB,EAAC,OAAO,EAAE;YAC7B,SAAS,EAAE,IAAA,aAAK,EAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;SACrE,CAAC,EACD,IAAA,yBAAW,EAAC,KAAK,EAAE,cAAc,CAAC,IACtB,CAChB,CACF,CAAC;AAEF,SAAS,cAAc,CAAC,QAAmB,EAAE,KAAe;IAC1D,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;QACpB,OAAO,IAAI,CAAC;KACb;IAED,wGAAwG;IACxG,MAAM,aAAa,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,MAAM,CAAC;IAEvE,OAAO,CACL,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,uFAAuF,EACvF,aAAa,CACd,YAEA,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,6BAAa,CAAC,CAAC,CAAC,CAAC,IAAI,GACjD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
|
-
export declare function renderImage(image?: Picture,
|
|
3
|
+
export declare function renderImage(image?: Picture, directionRight?: boolean): JSX.Element | null;
|
|
@@ -2,11 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.renderImage = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
5
|
-
|
|
5
|
+
const style_1 = require("../../utils/style");
|
|
6
|
+
function renderImage(image, directionRight) {
|
|
6
7
|
if (!image?.src) {
|
|
7
8
|
return null;
|
|
8
9
|
}
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(Img_1.Img, { className:
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: (0, style_1.style)('absolute', directionRight ? 'right-0' : 'left-0', 'bottom-0'), image: image }));
|
|
10
11
|
}
|
|
11
12
|
exports.renderImage = renderImage;
|
|
12
13
|
//# sourceMappingURL=renderImage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderImage.js","sourceRoot":"","sources":["../../../src/components/ProductTile/renderImage.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;
|
|
1
|
+
{"version":3,"file":"renderImage.js","sourceRoot":"","sources":["../../../src/components/ProductTile/renderImage.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;AAC3C,6CAA0C;AAE1C,SAAgB,WAAW,CAAC,KAAe,EAAE,cAAwB;IACnE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE;QACf,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,uBAAC,SAAG,IACF,SAAS,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,EAC/E,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC;AAXD,kCAWC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
|
|
2
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
+
export interface RepresentativeOfficeInfoProps extends RepresentativeOfficeInfoContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const RepresentativeOfficeInfo: import("@redneckz/uni-jsx").UNIComponent<RepresentativeOfficeInfoProps, any, any>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.RepresentativeOfficeInfo = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
+
const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
|
|
7
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
8
|
+
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
9
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
10
|
+
const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
11
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
12
|
+
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
13
|
+
const style_1 = require("../../utils/style");
|
|
14
|
+
exports.RepresentativeOfficeInfo = (0, uni_jsx_1.JSX)(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('box-border text-left p-9', className), version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-full flex justify-between", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h4", as: "h3", className: "mb-6", title: title }) : null, renderIconBlock(icon)] }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock('Адрес', address, 'GeolocationIcon'), renderBlock('Телефон', telephone, 'PhoneIcon'), renderBlock('E-mail', email, 'MailIcon'), button?.text
|
|
15
|
+
? (0, renderButtonsSection_1.renderButtonsSection)([button], {
|
|
16
|
+
className: 'mb-6',
|
|
17
|
+
})
|
|
18
|
+
: null] })] })));
|
|
19
|
+
const renderIconBlock = (icon) => ((0, jsx_runtime_1.jsxs)("div", { className: "self-end", children: [icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), asSVG: true }) : null] }));
|
|
20
|
+
const renderDescriptionBlock = (__html) => ((0, jsx_runtime_1.jsx)("div", { className: "border-b border-main-divider pb-5 my-5", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) }));
|
|
21
|
+
const renderBlock = (blockName, data, iconName) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex mb-4", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "pr-4", iconVersion: "black", name: iconName, width: "24", height: "24", asSVG: true }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col first:pb-1", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m-light", children: blockName }), data ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", color: "text-green", children: data })) : null] })] }));
|
|
22
|
+
//# sourceMappingURL=RepresentativeOfficeInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepresentativeOfficeInfo.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAKxC,4DAAyD;AACzD,uEAAoE;AACpE,0DAAuD;AACvD,iDAA8C;AAC9C,8CAA2C;AAC3C,6DAA0D;AAC1D,iDAA8C;AAC9C,mFAAgF;AAChF,6CAA0C;AAM7B,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EACC,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,EACN,SAA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AAE,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,IAC/D,CACP,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAAC,MAAe,EAAE,EAAE,CAAC,CAClD,gCAAK,SAAS,EAAC,wCAAwC,YACrD,uBAAC,mBAAQ,IAAC,MAAM,EAAE,MAAM,GAAI,GACxB,CACP,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,SAAiB,EAAE,IAAa,EAAE,QAA+B,EAAE,EAAE,CAAC,CACzF,iCAAK,SAAS,EAAC,WAAW,aACxB,uBAAC,WAAI,IAAC,SAAS,EAAC,MAAM,EAAC,WAAW,EAAC,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,EAC1F,iCAAK,SAAS,EAAC,0BAA0B,aACvC,uBAAC,WAAI,IAAC,IAAI,EAAC,cAAc,YAAE,SAAS,GAAQ,EAC3C,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,YAAY,YACpC,IAAI,GACA,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
2
|
+
import type { IconProps } from '../../model/Picture';
|
|
3
|
+
import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
4
|
+
import type { TitleProps } from '../../model/HeadlineType';
|
|
5
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
6
|
+
/**
|
|
7
|
+
* @title Блок с информацией о представительстве
|
|
8
|
+
*/
|
|
9
|
+
export declare type RepresentativeOfficeInfoContent = UniBlockContent & TitleProps & RichTextProps & IconProps & {
|
|
10
|
+
/** @title Адрес */
|
|
11
|
+
address?: string;
|
|
12
|
+
/** @title Телефон (факс) */
|
|
13
|
+
telephone?: string;
|
|
14
|
+
/** @title E-mail */
|
|
15
|
+
email?: string;
|
|
16
|
+
/** @title Кнопка */
|
|
17
|
+
button?: ButtonWithIconProps;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepresentativeOfficeInfoContent.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts"],"names":[],"mappings":""}
|
|
@@ -5,7 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
6
|
const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
7
7
|
exports.RichTextBlock = (0, uni_jsx_1.JSX)((props) => {
|
|
8
|
-
const { __html, ...rest } = props;
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { ...rest, children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) }));
|
|
8
|
+
const { __html, richVersion, ...rest } = props;
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { ...rest, children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html, richVersion: richVersion }) }));
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=RichTextBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextBlock.js","sourceRoot":"","sources":["../../../src/components/RichTextBlock/RichTextBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6DAA0D;AAK7C,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,KAAK,EAAE,EAAE;IAC7D,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"RichTextBlock.js","sourceRoot":"","sources":["../../../src/components/RichTextBlock/RichTextBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6DAA0D;AAK7C,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,KAAK,EAAE,EAAE;IAC7D,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE/C,OAAO,CACL,uBAAC,2BAAY,OAAK,IAAI,YACpB,uBAAC,mBAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAI,GACzC,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -6,9 +6,7 @@ const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection
|
|
|
6
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
7
|
const InnerTableButton_1 = require("../../ui-kit/InnerTable/InnerTableButton");
|
|
8
8
|
const List_1 = require("../../ui-kit/List/List");
|
|
9
|
-
const renderButtonsCellData = ({ buttons }) => (0, renderButtonsSection_1.renderButtonsSection)(buttons
|
|
10
|
-
buttonClassName: 'w-12 h-12',
|
|
11
|
-
});
|
|
9
|
+
const renderButtonsCellData = ({ buttons }) => (0, renderButtonsSection_1.renderButtonsSection)(buttons);
|
|
12
10
|
const renderLabelDescriptionCellData = ({ label, description }) => {
|
|
13
11
|
const labelClassName = `text-h6 m-0 ${description ? 'mb-1' : ''}`;
|
|
14
12
|
return ((0, jsx_runtime_1.jsxs)("div", { children: [label ? (0, jsx_runtime_1.jsx)("div", { className: labelClassName, children: label }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "text-secondary-text text-l-light", children: description }) : null] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddableCellData.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/EmbeddableCellData.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mFAAgF;AAChF,8CAA2C;AAE3C,+EAGkD;AAElD,iDAA8C;AAgB9C,MAAM,qBAAqB,GAAG,CAAC,EA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AM,EAAE,MAAM,EAAE,EAAE,EAAE,CACvD,SAAS,CAAC,CAAC,CAAC,CACV,uBAAC,mCAAgB,IACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,GAAG,EAAE;QACZ,YAAY,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;IACpC,CAAC,GACD,CACH,CAAC,CAAC,CAAC,IAAI,CACX,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,qBAAqB;IAC9B,GAAG,EAAE,iBAAiB;IACtB,IAAI,EAAE,kBAAkB;IACxB,gBAAgB,EAAE,8BAA8B;IAChD,KAAK,EAAE,mBAAmB;CAC3B,CAAC"}
|
|
@@ -12,8 +12,9 @@ const Tags_1 = require("../../ui-kit/Tags/Tags");
|
|
|
12
12
|
const BaseTile_1 = require("../BaseTile/BaseTile");
|
|
13
13
|
const getTileMinHeight_1 = require("../BaseTile/getTileMinHeight");
|
|
14
14
|
const getTileRightPadding_1 = require("../BaseTile/getTileRightPadding");
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
const style_1 = require("../../utils/style");
|
|
16
|
+
exports.Tile = (0, uni_jsx_1.JSX)(({ title, headingType = 'h3', __html, items, buttons, image, isDotted = true, listItemSize = 'M', className = '', tags, children, directionRight = true, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex grow justify-between items-stretch h-full p-9 pr-3 box-border', (0, getTileRightPadding_1.getTileRightPadding)(className), (0, getTileMinHeight_1.getTileMinHeight)(className), className), ...rest, children: [image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: (0, style_1.style)('mt-auto ml-7', directionRight ? 'order-2' : ''), image: image })) : null, (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons, {
|
|
17
|
+
className: 'mt-8',
|
|
18
|
+
buttonClassName: 'min-w-[158px]',
|
|
19
|
+
}), children: (0, jsx_runtime_1.jsxs)("div", { children: [__html ? ((0, jsx_runtime_1.jsx)("div", { className: "max-w-[600px] mt-2.5", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) })) : null, children, (0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-2.5", itemClassName: "mb-1.5", items: items, isDotted: isDotted, listItemSize: listItemSize }), tags?.length ? (0, jsx_runtime_1.jsx)(Tags_1.Tags, { tags: tags, className: "mt-5" }) : null] }) })] })));
|
|
19
20
|
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,6DAA0D;AAC1D,iDAA8C;AAC9C,mDAAgD;AAChD,mEAAgE;AAChE,yEAAsE;
|
|
1
|
+
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,6DAA0D;AAC1D,iDAA8C;AAC9C,mDAAgD;AAChD,mEAAgE;AAChE,yEAAsE;AAEtE,6CAA0C;AAI7B,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EACC,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,MAAM,EACN,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,YAAY,GAAG,GAAG,EAClB,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,QAAQ,EACR,cAAc,G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ACG,IACE,CAChB,CACF,CAAC"}
|
|
@@ -12,4 +12,6 @@ import type { TagsContent } from '../../ui-kit/Tags/TagsContent';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare type TileContent = UniBlockContent & HeadingCommonProps & RichTextProps & ListContent & ButtonContent & TagsContent & ImageContent & BulletsProps & {
|
|
14
14
|
listItemSize?: ListItemSize;
|
|
15
|
+
/** @title Картинка справа/текст слева */
|
|
16
|
+
directionRight?: boolean;
|
|
15
17
|
};
|
|
@@ -3,7 +3,7 @@ exports.getRegularButtonClasses = void 0;
|
|
|
3
3
|
const buttonClassNameConstants_1 = require("./buttonClassNameConstants");
|
|
4
4
|
const getRegularButtonClasses = ({ className, rounded, version, }) => [
|
|
5
5
|
buttonClassNameConstants_1.buttonStyle,
|
|
6
|
-
'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border',
|
|
6
|
+
'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit',
|
|
7
7
|
version ? buttonClassNameConstants_1.buttonStyleMap[version] : '',
|
|
8
8
|
rounded ? 'rounded-full' : 'rounded-md',
|
|
9
9
|
className,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRegularButtonClasses.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/getRegularButtonClasses.ts"],"names":[],"mappings":";;AAAA,yEAAyE;AAGlE,MAAM,uBAAuB,GAAG,CAAC,EACtC,SAAS,EACT,OAAO,EACP,OAAO,GACc,EAAU,EAAE,CACjC;IACE,sCAAW;IACX,
|
|
1
|
+
{"version":3,"file":"getRegularButtonClasses.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/getRegularButtonClasses.ts"],"names":[],"mappings":";;AAAA,yEAAyE;AAGlE,MAAM,uBAAuB,GAAG,CAAC,EACtC,SAAS,EACT,OAAO,EACP,OAAO,GACc,EAAU,EAAE,CACjC;IACE,sCAAW;IACX,iHAAiH;IACjH,OAAO,CAAC,CAAC,CAAC,yCAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;IACtC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY;IACvC,SAAS;CACV,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAXD,QAAA,uBAAuB,2BAWtB"}
|
|
@@ -4,12 +4,12 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const style_1 = require("../../utils/style");
|
|
5
5
|
const Img_1 = require("../Img/Img");
|
|
6
6
|
const Button_1 = require("./Button");
|
|
7
|
-
const renderButtonsSection = (buttons, { className = '', buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text) ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex', isVertical ? 'flex-col gap-2' : 'gap-4', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
|
|
7
|
+
const renderButtonsSection = (buttons, { className = '', buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex', isVertical ? 'flex-col gap-2' : 'gap-4', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
|
|
8
8
|
exports.renderButtonsSection = renderButtonsSection;
|
|
9
9
|
const renderButton = (buttonClassName = '') => (button, index) => {
|
|
10
10
|
const { text, icon, iconRight, version, ...rest } = button || {};
|
|
11
11
|
const iconVersion = version === 'secondary' ? 'color' : 'white';
|
|
12
|
-
return text ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: buttonClassName, appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
12
|
+
return text || icon?.icon ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: buttonClassName, appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
13
13
|
};
|
|
14
14
|
const DEFAULT_ICON_W = 24;
|
|
15
15
|
const renderButtonIcon = (icon) => icon?.icon || icon?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W), asSVG: true })) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderButtonsSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/renderButtonsSection.tsx"],"names":[],"mappings":";;;AACA,6CAA0C;AAC1C,oCAAiC;AACjC,qCAAkC;AAS3B,MAAM,oBAAoB,GAAG,CAClC,OAA6C,EAC7C,EAAE,SAAS,GAAG,EAAE,EAAE,eAAe,EAAE,UAAU,KAA4B,EAAE,EAC3E,EAAE,CACF,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"renderButtonsSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/renderButtonsSection.tsx"],"names":[],"mappings":";;;AACA,6CAA0C;AAC1C,oCAAiC;AACjC,qCAAkC;AAS3B,MAAM,oBAAoB,GAAG,CAClC,OAA6C,EAC7C,EAAE,SAAS,GAAG,EAAE,EAAE,eAAe,EAAE,UAAU,KAA4B,EAAE,EAC3E,EAAE,CACF,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CACjE,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,YAC9E,OAAO,CAAC,GAAG,CAAC,YAAY,CAA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
@@ -2,8 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.RichText = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const style_1 = require("../../utils/style");
|
|
5
6
|
exports.RichText = (0, uni_jsx_1.JSX)((props) => {
|
|
6
|
-
const { __html = '' } = props;
|
|
7
|
-
return (0, jsx_runtime_1.jsx)("div", { className:
|
|
7
|
+
const { __html = '', richVersion = '' } = props;
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } }));
|
|
8
9
|
});
|
|
9
10
|
//# sourceMappingURL=RichText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.js","sourceRoot":"","sources":["../../../src/ui-kit/RichText/RichText.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"RichText.js","sourceRoot":"","sources":["../../../src/ui-kit/RichText/RichText.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAG7B,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,KAAK,EAAE,EAAE;IACnD,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,WAAW,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAEhD,OAAO,CACL,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,WAAW,EAAE,cAAc,CAAC,EAAE,uBAAuB,EAAE,EAAE,MAAM,EAAE,GAAI,CAC5F,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -4,8 +4,8 @@ export interface RichTextProps {
|
|
|
4
4
|
__html?: HTML;
|
|
5
5
|
/**
|
|
6
6
|
* @title Стиль форматированного текста
|
|
7
|
-
* @enumNames ["по умолчанию", "
|
|
7
|
+
* @enumNames ["по умолчанию", "Строки разного цвета", "Горизонтальные разделители"]
|
|
8
8
|
*/
|
|
9
|
-
richVersion?: '' | 'striped';
|
|
9
|
+
richVersion?: '' | 'striped' | 'horizontal-separator';
|
|
10
10
|
}
|
|
11
11
|
export {};
|
|
@@ -10,5 +10,7 @@ export declare type SelectProps = LabelProps & {
|
|
|
10
10
|
options: OptionProps[];
|
|
11
11
|
isBorder?: boolean;
|
|
12
12
|
placeholder?: string;
|
|
13
|
+
valid?: boolean;
|
|
14
|
+
onValidate?: (value: string) => void;
|
|
13
15
|
};
|
|
14
16
|
export declare const Select: import("@redneckz/uni-jsx").UNIComponent<SelectProps, any, any>;
|
|
@@ -6,7 +6,7 @@ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
|
6
6
|
const useOutsideClick_1 = require("../../hooks/useOutsideClick");
|
|
7
7
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
8
8
|
const Icon_1 = require("../Icon/Icon");
|
|
9
|
-
exports.Select = (0, uni_jsx_1.JSX)(({ className = '', isBorder = true, label, options = [], value, onChange, placeholder = '' }) => {
|
|
9
|
+
exports.Select = (0, uni_jsx_1.JSX)(({ className = '', isBorder = true, label, options = [], value, onChange, placeholder = '', valid = true, onValidate, }) => {
|
|
10
10
|
const [selectedItem, setSelectedItem] = (0, hooks_1.useState)(options[0] || { key: '', text: '' });
|
|
11
11
|
const [isOpen, setIsOpen] = (0, hooks_1.useState)(false);
|
|
12
12
|
const handleClickOutside = (0, hooks_1.useCallback)(() => setIsOpen(false), []);
|
|
@@ -15,13 +15,14 @@ exports.Select = (0, uni_jsx_1.JSX)(({ className = '', isBorder = true, label, o
|
|
|
15
15
|
setSelectedItem(option);
|
|
16
16
|
setIsOpen(false);
|
|
17
17
|
onChange(option);
|
|
18
|
+
onValidate && onValidate(option.text);
|
|
18
19
|
};
|
|
19
20
|
const isSelected = (option) => Boolean(option.key === selectedItem.key);
|
|
20
21
|
(0, hooks_1.useEffect)(() => {
|
|
21
22
|
setSelectedItem(value || { key: '', text: '' });
|
|
22
23
|
}, [value]);
|
|
23
24
|
return ((0, jsx_runtime_1.jsxs)("div", { className: `${className}`, ref: wrapperRef, children: [label ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-2", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label }) })) : null, (0, jsx_runtime_1.jsxs)("div", { className: `relative ${isOpen ? 'z-20' : 'z-10'}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: `text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer
|
|
24
|
-
${getBorderStyle(isBorder)}`, onClick: () => setIsOpen(!isOpen), children: [(0, jsx_runtime_1.jsx)("p", { className: "p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap", children: selectedItem?.text || placeholder }), (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "ArrowUpIcon", width: "16", height: "16", className: `absolute right-3 ${isOpen ? '' : 'rotate-180'}` })] }), options?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `h-0 ${renderOptionsStyle(isOpen)}`, children: (0, jsx_runtime_1.jsx)("div", { className: `bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]`, children: options.map(renderOption(choiceOption, isOpen, isSelected)) }) })) : null] })] }));
|
|
25
|
+
${getBorderStyle(isBorder, valid)}`, onClick: () => setIsOpen(!isOpen), children: [(0, jsx_runtime_1.jsx)("p", { className: "p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap", children: selectedItem?.text || placeholder }), (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "ArrowUpIcon", width: "16", height: "16", className: `absolute right-3 ${isOpen ? '' : 'rotate-180'}` })] }), options?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `h-0 ${renderOptionsStyle(isOpen)}`, children: (0, jsx_runtime_1.jsx)("div", { className: `bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]`, children: options.map(renderOption(choiceOption, isOpen, isSelected)) }) })) : null] })] }));
|
|
25
26
|
});
|
|
26
27
|
const renderOptionsStyle = (isOpen) => (isOpen ? '' : 'overflow-hidden');
|
|
27
28
|
const renderOption = (choiceOption, isOpen, isSelected) => (option, i) => {
|
|
@@ -29,5 +30,6 @@ const renderOption = (choiceOption, isOpen, isSelected) => (option, i) => {
|
|
|
29
30
|
choiceOption(option);
|
|
30
31
|
}, className: "flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative", children: [(0, jsx_runtime_1.jsx)("span", { className: "min-h-6", children: option.text }), (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: ['absolute right-4 pt-0.5', isSelected(option) && isOpen ? '' : 'hidden'].join(' ') })] }, String(i)));
|
|
31
32
|
};
|
|
32
|
-
const getBorderStyle = (isBorder) =>
|
|
33
|
+
const getBorderStyle = (isBorder, valid) => `
|
|
34
|
+
${isBorder ? 'border rounded-md hover:border-primary-hover' : ''} ${valid ? ' border-gray' : 'border-error'} `;
|
|
33
35
|
//# sourceMappingURL=Select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA+E;AAC/E,iEAA8D;AAE9D,iDAA8C;AAC9C,uCAAoC;
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA+E;AAC/E,iEAA8D;AAE9D,iDAA8C;AAC9C,uCAAoC;AAkBvB,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,QAAQ,GAAG,IAAI,EACf,KAAK,EACL,OAAO,GAAG,EAAE,EACZ,KA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