@redneckz/wildless-cms-uni-blocks 0.12.4 → 0.12.6
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.12.3.js +2 -0
- package/bin/migration-scripts/0.9.10.js +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +99 -171
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/bundle/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +4 -0
- package/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/bundle/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/bundle/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
- package/bundle/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/bundle/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/bundle/components/StepsBlock/StepsBlock.mobile.d.ts +2 -2
- package/bundle/components/Tabs/tabItemClasses.d.ts +2 -3
- package/bundle/icons/IconName.d.ts +4 -2
- package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/bundle/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/bundle/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/bundle/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/bundle/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/bundle/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/bundle/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/bundle/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/bundle/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/bundle/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/bundle/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/bundle/ui-kit/Text/TextProps.d.ts +1 -1
- package/cosmos-static/icons/BelarusianFlag.svg +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +4 -6
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js +4 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
- package/dist/components/Blocks.mobile.js +6 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +4 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +4 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js +4 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js +4 -0
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +11 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +20 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +4 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +8 -0
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -0
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/dist/components/CarouselCatalogCard/CatalogCard.js +20 -0
- package/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.js +5 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.mobile.js +5 -0
- package/dist/components/CarouselProgramsCard/programCardStyles.mobile.js.map +1 -0
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +1 -1
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +3 -17
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.d.ts +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js +16 -16
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/Tabs/LinkTab.js +2 -1
- package/dist/components/Tabs/LinkTab.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +3 -2
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/renderGroupTab.js +7 -13
- package/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/dist/components/Tabs/tabItemClasses.d.ts +2 -3
- package/dist/components/Tabs/tabItemClasses.js +10 -46
- package/dist/components/Tabs/tabItemClasses.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +0 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/Tile/Tile.js +1 -1
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +3 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/dist/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/dist/ui-kit/BenefitItem/BenefitItem.js +3 -11
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/dist/ui-kit/BenefitItem/renderBenefitDescription.js +7 -0
- package/dist/ui-kit/BenefitItem/renderBenefitDescription.js.map +1 -0
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.js +10 -0
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -0
- package/dist/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/dist/ui-kit/BenefitItem/renderBenefitLabel.js +7 -0
- package/dist/ui-kit/BenefitItem/renderBenefitLabel.js.map +1 -0
- package/dist/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/dist/ui-kit/BenefitItem/renderBenefitText.js +12 -0
- package/dist/ui-kit/BenefitItem/renderBenefitText.js.map +1 -0
- package/dist/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/dist/ui-kit/BenefitsList/BenefitsList.js +3 -9
- package/dist/ui-kit/BenefitsList/BenefitsList.js.map +1 -1
- package/dist/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/dist/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/dist/ui-kit/BenefitsList/BenefitsListProps.js +2 -0
- package/dist/ui-kit/BenefitsList/BenefitsListProps.js.map +1 -0
- package/dist/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/dist/ui-kit/BenefitsList/DefaultBenefitsList.js +14 -0
- package/dist/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -0
- package/dist/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/dist/ui-kit/BenefitsList/TabularBenefitsList.js +8 -0
- package/dist/ui-kit/BenefitsList/TabularBenefitsList.js.map +1 -0
- package/dist/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/dist/ui-kit/CookiePopup/CookiePopup.js +13 -7
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/dist/ui-kit/Dialog/Dialog.js +1 -1
- package/dist/ui-kit/Dialog/Dialog.js.map +1 -1
- package/dist/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/dist/ui-kit/Dialog/useDialogProps.js +9 -7
- package/dist/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/dist/ui-kit/Paragraph/Paragraph.js +2 -1
- package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/dist/ui-kit/PhoneInput/PhoneInput.js +1 -1
- package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/dist/ui-kit/Text/Text.js +2 -1
- package/dist/ui-kit/Text/Text.js.map +1 -1
- package/dist/ui-kit/Text/TextProps.d.ts +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/lib/{ui-kit/Heading/Heading.fixture.mobile.d.ts → components/BenefitsBlock/BenefitsBlock.fixture.mobile.d.ts} +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +4 -6
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js +2 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
- package/lib/components/Blocks.mobile.js +6 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.d.ts +7 -0
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +2 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +2 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js +2 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js +2 -0
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +8 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +17 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +3 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +5 -0
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +0 -11
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.d.ts +6 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/lib/components/CarouselCatalogCard/CatalogCard.js +18 -0
- package/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +0 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.d.ts +7 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.js +3 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +2 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.mobile.js +3 -0
- package/lib/components/CarouselProgramsCard/programCardStyles.mobile.js.map +1 -0
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/PictureText/PictureText.js +1 -1
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +4 -18
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.d.ts +6 -0
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.d.ts +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js +16 -16
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tabs/LinkTab.js +3 -2
- package/lib/components/Tabs/LinkTab.js.map +1 -1
- package/lib/components/Tabs/Tabs.fixture.mobile.d.ts +8 -0
- package/lib/components/Tabs/Tabs.js +3 -2
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/renderGroupTab.d.ts +0 -1
- package/lib/components/Tabs/renderGroupTab.js +9 -15
- package/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/lib/components/Tabs/renderTab.d.ts +0 -1
- package/lib/components/Tabs/tabItemClasses.d.ts +2 -3
- package/lib/components/Tabs/tabItemClasses.js +8 -43
- package/lib/components/Tabs/tabItemClasses.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +0 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.js +1 -1
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +3 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/lib/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/lib/ui-kit/BenefitItem/BenefitItem.js +3 -11
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BenefitItem/renderBenefitDescription.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitDescription.js +4 -0
- package/lib/ui-kit/BenefitItem/renderBenefitDescription.js.map +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.d.ts +3 -0
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.js +7 -0
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitLabel.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitLabel.js +4 -0
- package/lib/ui-kit/BenefitItem/renderBenefitLabel.js.map +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitText.d.ts +2 -0
- package/lib/ui-kit/BenefitItem/renderBenefitText.js +9 -0
- package/lib/ui-kit/BenefitItem/renderBenefitText.js.map +1 -0
- package/lib/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/lib/ui-kit/BenefitsList/BenefitsList.js +3 -9
- package/lib/ui-kit/BenefitsList/BenefitsList.js.map +1 -1
- package/lib/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/lib/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/lib/ui-kit/BenefitsList/BenefitsListProps.js +2 -0
- package/lib/ui-kit/BenefitsList/BenefitsListProps.js.map +1 -0
- package/lib/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/lib/ui-kit/BenefitsList/DefaultBenefitsList.js +12 -0
- package/lib/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -0
- package/lib/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/lib/ui-kit/BenefitsList/TabularBenefitsList.js +6 -0
- package/lib/ui-kit/BenefitsList/TabularBenefitsList.js.map +1 -0
- package/lib/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/lib/ui-kit/CookiePopup/CookiePopup.js +12 -6
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/lib/ui-kit/Dialog/Dialog.js +1 -1
- package/lib/ui-kit/Dialog/Dialog.js.map +1 -1
- package/lib/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/lib/ui-kit/Dialog/useDialogProps.js +9 -7
- package/lib/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/lib/ui-kit/Paragraph/Paragraph.js +2 -1
- package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/lib/ui-kit/PhoneInput/PhoneInput.js +1 -1
- package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/lib/ui-kit/Text/Text.js +2 -1
- package/lib/ui-kit/Text/Text.js.map +1 -1
- package/lib/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +547 -361
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/mobile/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/mobile/bundle/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/mobile/bundle/components/StepsBlock/StepsBlock.d.ts +2 -2
- package/mobile/bundle/components/Tabs/tabItemClasses.d.ts +2 -3
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/mobile/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/mobile/bundle/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/mobile/bundle/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/mobile/bundle/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/mobile/bundle/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/mobile/bundle/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/mobile/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/mobile/bundle/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/mobile/bundle/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +4 -6
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/mobile/dist/components/Blocks.js +6 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +4 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js +4 -0
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +11 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +8 -0
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js +20 -0
- package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/mobile/dist/components/CarouselProgramsCard/programCardStyles.js +5 -0
- package/mobile/dist/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureText.js +1 -1
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +3 -17
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.d.ts +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js +16 -16
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/LinkTab.js +2 -1
- package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.js +3 -2
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/renderGroupTab.js +7 -13
- package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/dist/components/Tabs/tabItemClasses.d.ts +2 -3
- package/mobile/dist/components/Tabs/tabItemClasses.js +10 -46
- package/mobile/dist/components/Tabs/tabItemClasses.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +0 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +1 -1
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +3 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +3 -11
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitDescription.js +7 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitDescription.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js +10 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitLabel.js +7 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitLabel.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.js +12 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/mobile/dist/ui-kit/BenefitsList/BenefitsList.js +3 -9
- package/mobile/dist/ui-kit/BenefitsList/BenefitsList.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListProps.js +2 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListProps.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitsList/DefaultBenefitsList.js +14 -0
- package/mobile/dist/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitsList/TabularBenefitsList.js +8 -0
- package/mobile/dist/ui-kit/BenefitsList/TabularBenefitsList.js.map +1 -0
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +13 -7
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/dist/ui-kit/Dialog/Dialog.js +1 -1
- package/mobile/dist/ui-kit/Dialog/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/mobile/dist/ui-kit/Dialog/useDialogProps.js +9 -7
- package/mobile/dist/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js +2 -1
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +1 -1
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/mobile/dist/ui-kit/Text/Text.js +2 -1
- package/mobile/dist/ui-kit/Text/Text.js.map +1 -1
- package/mobile/dist/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +4 -6
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/mobile/lib/components/Blocks.js +6 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +4 -18
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +2 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js +2 -0
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js.map +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +3 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +8 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +4 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +5 -0
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -0
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CatalogCard.d.ts +9 -0
- package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js +18 -0
- package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -0
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +5 -2
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/programCardStyles.d.ts +2 -0
- package/mobile/lib/components/CarouselProgramsCard/programCardStyles.js +3 -0
- package/mobile/lib/components/CarouselProgramsCard/programCardStyles.js.map +1 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureText.js +1 -1
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +4 -18
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -2
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.d.ts +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js +16 -16
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/LinkTab.js +3 -2
- package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.js +3 -2
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/renderGroupTab.js +9 -15
- package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/lib/components/Tabs/tabItemClasses.d.ts +2 -3
- package/mobile/lib/components/Tabs/tabItemClasses.js +8 -43
- package/mobile/lib/components/Tabs/tabItemClasses.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +0 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +1 -1
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +3 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +3 -11
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitDescription.js +4 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitDescription.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js +7 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitLabel.js +4 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitLabel.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.js +9 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/mobile/lib/ui-kit/BenefitsList/BenefitsList.js +3 -9
- package/mobile/lib/ui-kit/BenefitsList/BenefitsList.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListProps.js +2 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListProps.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitsList/DefaultBenefitsList.js +12 -0
- package/mobile/lib/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitsList/TabularBenefitsList.js +6 -0
- package/mobile/lib/ui-kit/BenefitsList/TabularBenefitsList.js.map +1 -0
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +12 -6
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/lib/ui-kit/Dialog/Dialog.js +1 -1
- package/mobile/lib/ui-kit/Dialog/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/mobile/lib/ui-kit/Dialog/useDialogProps.js +9 -7
- package/mobile/lib/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js +2 -1
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +1 -1
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
- package/mobile/lib/ui-kit/Text/Text.js +2 -1
- package/mobile/lib/ui-kit/Text/Text.js.map +1 -1
- package/mobile/lib/ui-kit/Text/TextProps.d.ts +1 -1
- package/mobile/src/common.css +3 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +37 -34
- package/mobile/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
- package/mobile/src/components/Blocks.ts +6 -0
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +13 -49
- package/mobile/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +1 -0
- package/mobile/src/components/BonusBenefitsBlock/bonusBenefitStyles.ts +1 -0
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +29 -0
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +14 -0
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +3 -3
- package/mobile/src/components/CarouselCatalogCard/CatalogCard.ts +22 -0
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -11
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +2 -2
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -11
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +21 -11
- package/mobile/src/components/CarouselProgramsCard/programCardStyles.ts +2 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -12
- package/mobile/src/components/ErrorBlock/ErrorBlock.example.json +1 -11
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +1 -11
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/mobile/src/components/PictureText/PictureText.example.json +8 -13
- package/mobile/src/components/PictureText/PictureText.tsx +14 -3
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +5 -13
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +20 -16
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +19 -17
- package/mobile/src/components/ProductTile/ProductTile.example.json +7 -12
- package/mobile/src/components/ProductTile/ProductTile.tsx +23 -58
- package/mobile/src/components/ProductTile/ProductTileContent.ts +4 -35
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +3 -3
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +50 -49
- package/mobile/src/components/Tabs/LinkTab.tsx +19 -8
- package/mobile/src/components/Tabs/Tabs.tsx +7 -4
- package/mobile/src/components/Tabs/renderGroupTab.tsx +21 -33
- package/mobile/src/components/Tabs/tabItemClasses.ts +12 -45
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +0 -1
- package/mobile/src/components/Tile/Tile.example.json +7 -13
- package/mobile/src/components/Tile/Tile.tsx +4 -3
- package/mobile/src/icons/BelarusianFlag.svg +4 -0
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +19 -6
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -1
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +17 -49
- package/mobile/src/ui-kit/BenefitItem/renderBenefitDescription.tsx +13 -0
- package/mobile/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +24 -0
- package/mobile/src/ui-kit/BenefitItem/renderBenefitLabel.tsx +12 -0
- package/mobile/src/ui-kit/BenefitItem/renderBenefitText.tsx +14 -0
- package/mobile/src/ui-kit/BenefitsList/BenefitsList.tsx +5 -32
- package/mobile/src/ui-kit/BenefitsList/BenefitsListContent.ts +3 -1
- package/mobile/src/ui-kit/BenefitsList/BenefitsListProps.ts +5 -0
- package/mobile/src/ui-kit/BenefitsList/DefaultBenefitsList.tsx +33 -0
- package/mobile/src/ui-kit/BenefitsList/TabularBenefitsList.tsx +17 -0
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +17 -9
- package/mobile/src/ui-kit/Dialog/Dialog.tsx +1 -1
- package/mobile/src/ui-kit/Dialog/useDialogProps.ts +11 -9
- package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +3 -2
- package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +5 -1
- package/mobile/src/ui-kit/Text/Text.tsx +3 -2
- package/mobile/src/ui-kit/Text/TextProps.ts +0 -2
- package/package.json +1 -1
- package/src/common.css +3 -0
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +43 -0
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +0 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +37 -34
- package/src/components/BenefitsBlock/benefitImageStyles.mobile.tsx +1 -0
- package/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
- package/src/components/Blocks.mobile.ts +6 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.tsx +67 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +13 -49
- package/src/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.ts +1 -0
- package/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +1 -0
- package/src/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.ts +1 -0
- package/src/components/BonusBenefitsBlock/bonusBenefitStyles.ts +1 -0
- package/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +29 -0
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.mobile.tsx +14 -0
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +27 -0
- package/src/components/Carousel/Carousel.fixture.tsx +13 -2
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.tsx +23 -0
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +3 -25
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +3 -3
- package/src/components/CarouselCatalogCard/CatalogCard.ts +22 -0
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -11
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +2 -2
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -11
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.mobile.tsx +34 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -7
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +21 -11
- package/src/components/CarouselProgramsCard/programCardStyles.mobile.ts +2 -0
- package/src/components/CarouselProgramsCard/programCardStyles.ts +2 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -12
- package/src/components/ErrorBlock/ErrorBlock.example.json +1 -11
- package/src/components/MobileAppTile/MobileAppTile.example.json +1 -11
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/PictureText/PictureText.example.json +8 -13
- package/src/components/PictureText/PictureText.fixture.mobile.tsx +0 -6
- package/src/components/PictureText/PictureText.fixture.tsx +0 -6
- package/src/components/PictureText/PictureText.tsx +14 -3
- package/src/components/ProductBlock/ProductBlock.example.json +5 -13
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +0 -6
- package/src/components/ProductBlock/ProductBlock.tsx +20 -16
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +19 -17
- package/src/components/ProductGallery/ProductGallery.tsx +2 -1
- package/src/components/ProductTile/ProductTile.example.json +7 -12
- package/src/components/ProductTile/ProductTile.fixture.tsx +13 -14
- package/src/components/ProductTile/ProductTile.tsx +23 -58
- package/src/components/ProductTile/ProductTileContent.ts +4 -35
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.tsx +47 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +18 -9
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +3 -3
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +16 -8
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +50 -49
- package/src/components/Tabs/LinkTab.tsx +19 -8
- package/src/components/Tabs/Tabs.fixture.mobile.tsx +55 -0
- package/src/components/Tabs/Tabs.fixture.tsx +8 -17
- package/src/components/Tabs/Tabs.tsx +7 -4
- package/src/components/Tabs/renderGroupTab.tsx +21 -33
- package/src/components/Tabs/tabItemClasses.ts +12 -45
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +0 -1
- package/src/components/Tile/Tile.example.json +7 -13
- package/src/components/Tile/Tile.fixture.tsx +1 -1
- package/src/components/Tile/Tile.tsx +4 -3
- package/src/icons/BelarusianFlag.svg +4 -0
- package/src/icons/IconName.ts +5 -5
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +19 -6
- package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -1
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +17 -49
- package/src/ui-kit/BenefitItem/renderBenefitDescription.tsx +13 -0
- package/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +24 -0
- package/src/ui-kit/BenefitItem/renderBenefitLabel.tsx +12 -0
- package/src/ui-kit/BenefitItem/renderBenefitText.tsx +14 -0
- package/src/ui-kit/BenefitsList/BenefitsList.tsx +5 -32
- package/src/ui-kit/BenefitsList/BenefitsListContent.ts +3 -1
- package/src/ui-kit/BenefitsList/BenefitsListProps.ts +5 -0
- package/src/ui-kit/BenefitsList/DefaultBenefitsList.tsx +33 -0
- package/src/ui-kit/BenefitsList/TabularBenefitsList.tsx +17 -0
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +17 -9
- package/src/ui-kit/Dialog/Dialog.tsx +1 -1
- package/src/ui-kit/Dialog/useDialogProps.ts +11 -9
- package/src/ui-kit/Paragraph/Paragraph.tsx +3 -2
- package/src/ui-kit/PhoneInput/PhoneInput.tsx +5 -1
- package/src/ui-kit/Text/Text.tsx +3 -2
- package/src/ui-kit/Text/TextProps.ts +0 -2
- package/tailwind.config.cjs +12 -15
- package/bundle/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/bundle/components/ProductTile/renderBenefit.d.ts +0 -3
- package/bundle/components/ProductTile/renderImage.d.ts +0 -3
- package/bundle/ui-kit/BenefitItem/borderRadius.mobile.d.ts +0 -1
- package/bundle/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/bundle/ui-kit/BenefitItem/labelSize.mobile.d.ts +0 -1
- package/bundle/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/dist/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/dist/components/MobileAppTile/renderButtonSection.js +0 -1
- package/dist/components/MobileAppTile/renderButtonSection.js.map +0 -1
- package/dist/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/dist/components/ProductTile/renderAdditionalDescription.js +0 -14
- package/dist/components/ProductTile/renderAdditionalDescription.js.map +0 -1
- package/dist/components/ProductTile/renderBenefit.d.ts +0 -3
- package/dist/components/ProductTile/renderBenefit.js +0 -29
- package/dist/components/ProductTile/renderBenefit.js.map +0 -1
- package/dist/components/ProductTile/renderImage.d.ts +0 -3
- package/dist/components/ProductTile/renderImage.js +0 -13
- package/dist/components/ProductTile/renderImage.js.map +0 -1
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.d.ts +0 -1
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.js +0 -4
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.js.map +0 -1
- package/dist/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/dist/ui-kit/BenefitItem/labelSize.js +0 -4
- package/dist/ui-kit/BenefitItem/labelSize.js.map +0 -1
- package/dist/ui-kit/BenefitItem/labelSize.mobile.d.ts +0 -1
- package/dist/ui-kit/BenefitItem/labelSize.mobile.js +0 -4
- package/dist/ui-kit/BenefitItem/labelSize.mobile.js.map +0 -1
- package/dist/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/dist/ui-kit/BenefitsList/renderBenefit.js +0 -13
- package/dist/ui-kit/BenefitsList/renderBenefit.js.map +0 -1
- package/lib/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/lib/components/MobileAppTile/renderButtonSection.js +0 -1
- package/lib/components/MobileAppTile/renderButtonSection.js.map +0 -1
- package/lib/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/lib/components/ProductTile/renderAdditionalDescription.js +0 -11
- package/lib/components/ProductTile/renderAdditionalDescription.js.map +0 -1
- package/lib/components/ProductTile/renderBenefit.d.ts +0 -2
- package/lib/components/ProductTile/renderBenefit.js +0 -26
- package/lib/components/ProductTile/renderBenefit.js.map +0 -1
- package/lib/components/ProductTile/renderImage.d.ts +0 -3
- package/lib/components/ProductTile/renderImage.js +0 -10
- package/lib/components/ProductTile/renderImage.js.map +0 -1
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.d.ts +0 -1
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.js +0 -2
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.js.map +0 -1
- package/lib/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/lib/ui-kit/BenefitItem/labelSize.js +0 -2
- package/lib/ui-kit/BenefitItem/labelSize.js.map +0 -1
- package/lib/ui-kit/BenefitItem/labelSize.mobile.d.ts +0 -1
- package/lib/ui-kit/BenefitItem/labelSize.mobile.js +0 -2
- package/lib/ui-kit/BenefitItem/labelSize.mobile.js.map +0 -1
- package/lib/ui-kit/BenefitsList/renderBenefit.d.ts +0 -3
- package/lib/ui-kit/BenefitsList/renderBenefit.js +0 -10
- package/lib/ui-kit/BenefitsList/renderBenefit.js.map +0 -1
- package/mobile/bundle/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/mobile/bundle/components/ProductTile/renderBenefit.d.ts +0 -3
- package/mobile/bundle/components/ProductTile/renderImage.d.ts +0 -3
- package/mobile/bundle/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/mobile/bundle/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/mobile/dist/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/mobile/dist/components/MobileAppTile/renderButtonSection.js +0 -1
- package/mobile/dist/components/MobileAppTile/renderButtonSection.js.map +0 -1
- package/mobile/dist/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/mobile/dist/components/ProductTile/renderAdditionalDescription.js +0 -14
- package/mobile/dist/components/ProductTile/renderAdditionalDescription.js.map +0 -1
- package/mobile/dist/components/ProductTile/renderBenefit.d.ts +0 -3
- package/mobile/dist/components/ProductTile/renderBenefit.js +0 -29
- package/mobile/dist/components/ProductTile/renderBenefit.js.map +0 -1
- package/mobile/dist/components/ProductTile/renderImage.d.ts +0 -3
- package/mobile/dist/components/ProductTile/renderImage.js +0 -13
- package/mobile/dist/components/ProductTile/renderImage.js.map +0 -1
- package/mobile/dist/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/mobile/dist/ui-kit/BenefitItem/labelSize.js +0 -4
- package/mobile/dist/ui-kit/BenefitItem/labelSize.js.map +0 -1
- package/mobile/dist/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/mobile/dist/ui-kit/BenefitsList/renderBenefit.js +0 -13
- package/mobile/dist/ui-kit/BenefitsList/renderBenefit.js.map +0 -1
- package/mobile/lib/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/mobile/lib/components/MobileAppTile/renderButtonSection.js +0 -1
- package/mobile/lib/components/MobileAppTile/renderButtonSection.js.map +0 -1
- package/mobile/lib/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/mobile/lib/components/ProductTile/renderAdditionalDescription.js +0 -11
- package/mobile/lib/components/ProductTile/renderAdditionalDescription.js.map +0 -1
- package/mobile/lib/components/ProductTile/renderBenefit.d.ts +0 -3
- package/mobile/lib/components/ProductTile/renderBenefit.js +0 -26
- package/mobile/lib/components/ProductTile/renderBenefit.js.map +0 -1
- package/mobile/lib/components/ProductTile/renderImage.d.ts +0 -3
- package/mobile/lib/components/ProductTile/renderImage.js +0 -10
- package/mobile/lib/components/ProductTile/renderImage.js.map +0 -1
- package/mobile/lib/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/mobile/lib/ui-kit/BenefitItem/labelSize.js +0 -2
- package/mobile/lib/ui-kit/BenefitItem/labelSize.js.map +0 -1
- package/mobile/lib/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/mobile/lib/ui-kit/BenefitsList/renderBenefit.js +0 -10
- package/mobile/lib/ui-kit/BenefitsList/renderBenefit.js.map +0 -1
- package/mobile/src/components/MobileAppTile/renderButtonSection.tsx +0 -0
- package/mobile/src/components/ProductTile/renderAdditionalDescription.tsx +0 -19
- package/mobile/src/components/ProductTile/renderBenefit.tsx +0 -41
- package/mobile/src/components/ProductTile/renderImage.tsx +0 -16
- package/mobile/src/ui-kit/BenefitItem/labelSize.tsx +0 -1
- package/mobile/src/ui-kit/BenefitsList/renderBenefit.tsx +0 -14
- package/src/components/MobileAppTile/renderButtonSection.tsx +0 -0
- package/src/components/ProductTile/renderAdditionalDescription.tsx +0 -19
- package/src/components/ProductTile/renderBenefit.tsx +0 -41
- package/src/components/ProductTile/renderImage.tsx +0 -16
- package/src/ui-kit/BenefitItem/borderRadius.mobile.tsx +0 -1
- package/src/ui-kit/BenefitItem/labelSize.mobile.tsx +0 -1
- package/src/ui-kit/BenefitItem/labelSize.tsx +0 -1
- package/src/ui-kit/BenefitsList/renderBenefit.tsx +0 -14
- package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +0 -30
|
@@ -5,11 +5,12 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
6
|
const defaultEventBus_1 = require("../../EventBus/defaultEventBus");
|
|
7
7
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
8
|
+
const style_1 = require("../../utils/style");
|
|
8
9
|
const CenteredTabs_1 = require("./CenteredTabs");
|
|
9
10
|
const renderTab_1 = require("./renderTab");
|
|
10
11
|
const ScrollableTabs_1 = require("./ScrollableTabs");
|
|
11
12
|
exports.Tabs = (0, uni_jsx_1.JSX)((props) => {
|
|
12
|
-
const { className = '',
|
|
13
|
+
const { className = '', isSticky, tabs, ...rest } = props;
|
|
13
14
|
const [currentTab, setCurrentTab] = (0, hooks_1.useState)(tabs ? tabs[0] : undefined);
|
|
14
15
|
(0, hooks_1.useEffect)(() => {
|
|
15
16
|
if (!tabs || !tabs[0]) {
|
|
@@ -26,7 +27,7 @@ exports.Tabs = (0, uni_jsx_1.JSX)((props) => {
|
|
|
26
27
|
fireTabEvent(selectedTab);
|
|
27
28
|
setCurrentTab(selectedTab);
|
|
28
29
|
}, []);
|
|
29
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className:
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative box-border flex gap-x-1 w-full overflow-x-auto no-scrollbar', isSticky ? 'sticky top-1 z-20' : '', className), defaultPadding: "p-0", role: "tablist", ...rest, children: renderTabs({ tabs, onClick: handleClick, currentTab, ...rest }) }));
|
|
30
31
|
});
|
|
31
32
|
const renderTabs = ({ tabsMode, tabs, ...rest }) => {
|
|
32
33
|
switch (tabsMode) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA+E;AAC/E,oEAAiE;AAEjE,4DAAyD;AACzD,iDAA8C;AAC9C,2CAAwC;AACxC,qDAAkD;AAUrC,QAAA,IAAI,GAAG,IAAA,aAAG,EAAiB,CAAC,KAAK,EAAE,EAAE;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA+E;AAC/E,oEAAiE;AAEjE,4DAAyD;AACzD,6CAA0C;AAC1C,iDAA8C;AAC9C,2CAAwC;AACxC,qDAAkD;AAUrC,QAAA,IAAI,GAAG,IAAA,aAAG,EAAiB,CAAC,KAAK,EAAE,EAAE;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE1D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;YACrB,OAAO;SACR;QAED,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,UAAU,EAAE,IAAI,KAAK,OAAO,EAAE;YAChC,iCAAe,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,UAAU,CAAC,GAAG,EAAE,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,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;KACjE;IACD,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,EAAE;QACvB,iCAAe,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;KAClE;AACH,CAAC,CAAC"}
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.renderGroupTab = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const style_1 = require("../../utils/style");
|
|
4
5
|
const tabItemClasses_1 = require("./tabItemClasses");
|
|
5
|
-
const BADGE_CLASSES = 'min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center';
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const BADGE_CLASSES = 'bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center';
|
|
7
|
+
const LIGHT_BADGE_CLASSES = 'bg-white/30 text-white';
|
|
8
|
+
const DARK_BADGE_CLASSES = 'text-secondary-text group-hover/btn:text-primary-main';
|
|
8
9
|
const renderGroupTab = ({ page, currentTab, showCounter, onClick, tabsMode }) => (tab, i) => {
|
|
9
10
|
const active = currentTab === tab;
|
|
10
11
|
const count = tab.ref && page?.blocks
|
|
11
12
|
? page.blocks.filter((block) => block?.labels?.includes(tab.ref)).length
|
|
12
13
|
: 0;
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: (0, tabItemClasses_1.
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, tabItemClasses_1.getTabClassName)('block', active, tabsMode), role: "tab", "aria-selected": active, onClick: () => onClick(tab), children: (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-1 items-center justify-center h-full', (0, tabItemClasses_1.getTabClassName)('text', active, tabsMode)), children: [(0, jsx_runtime_1.jsx)("span", { children: tab.title }), showCounter && count ? renderCount(tabsMode, count, active) : null] }) }, `group-${String(i)}`));
|
|
14
15
|
};
|
|
15
16
|
exports.renderGroupTab = renderGroupTab;
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
const titleClassName = tabsMode === 'scrollable'
|
|
19
|
-
? `${tabItemClasses_1.TEXT_CLASSES} ${activeClassName}`
|
|
20
|
-
: `${tabItemClasses_1.TEXT_CLASSES} ${active ? tabItemClasses_1.ACTIVE_TEXT_CLASSES : tabItemClasses_1.INACTIVE_TEXT_CLASSES}`;
|
|
21
|
-
return title ? (0, jsx_runtime_1.jsx)("h3", { className: titleClassName, children: title }) : null;
|
|
22
|
-
};
|
|
23
|
-
const renderCount = (showCounter, count, active) => {
|
|
24
|
-
return showCounter && count ? ((0, jsx_runtime_1.jsx)("div", { className: `${BADGE_CLASSES} ${active ? ACTIVE_BADGE_CLASSES : INACTIVE_BADGE_CLASSES}`, children: count })) : null;
|
|
17
|
+
const renderCount = (tabsMode, count, active) => {
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)(BADGE_CLASSES, active && tabsMode !== 'scrollable' ? LIGHT_BADGE_CLASSES : DARK_BADGE_CLASSES), children: count }));
|
|
25
19
|
};
|
|
26
20
|
//# sourceMappingURL=renderGroupTab.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderGroupTab.js","sourceRoot":"","sources":["../../../src/components/Tabs/renderGroupTab.tsx"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"renderGroupTab.js","sourceRoot":"","sources":["../../../src/components/Tabs/renderGroupTab.tsx"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,qDAAmD;AAGnD,MAAM,aAAa,GACjB,kGAAkG,CAAC;AACrG,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K,EACd,aAAa,EACb,MAAM,IAAI,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,kBAAkB,CAC/E,YAEA,KAAK,GACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -6,7 +6,6 @@ export declare const SCROLLABLE_ACTIVE_LINK_CLASSES = "bg-white text-primary-mai
|
|
|
6
6
|
export declare const WIDESCREEN_ACTIVE_LINK_CLASSES = "bg-primary-main text-white";
|
|
7
7
|
export declare const TEXT_CLASSES = "font-sans text-m text-center";
|
|
8
8
|
export declare const ACTIVE_TEXT_CLASSES = "text-white";
|
|
9
|
-
export declare const INACTIVE_TEXT_CLASSES = "text-secondary-text group-hover/btn:text-primary-main";
|
|
9
|
+
export declare const INACTIVE_TEXT_CLASSES = "text-secondary-text sm:group-hover/btn:text-primary-main";
|
|
10
10
|
export declare const WHITE_ACTIVE_TEXT_CLASSES = "text-primary-main";
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const getLinkTabClassName: (type: string, active: boolean, tabsMode?: TabsMode) => any;
|
|
11
|
+
export declare const getTabClassName: (type: string, active: boolean, tabsMode?: TabsMode) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.
|
|
2
|
+
exports.getTabClassName = exports.WHITE_ACTIVE_TEXT_CLASSES = exports.INACTIVE_TEXT_CLASSES = exports.ACTIVE_TEXT_CLASSES = exports.TEXT_CLASSES = exports.WIDESCREEN_ACTIVE_LINK_CLASSES = exports.SCROLLABLE_ACTIVE_LINK_CLASSES = exports.INACTIVE_LINK_CLASSES = exports.ACTIVE_LINK_CLASSES = exports.LINK_CLASSES = void 0;
|
|
3
3
|
exports.LINK_CLASSES = 'h-12 flex-1 flex items-center justify-center cursor-pointer';
|
|
4
4
|
exports.ACTIVE_LINK_CLASSES = 'bg-primary-main';
|
|
5
5
|
exports.INACTIVE_LINK_CLASSES = 'group/btn bg-white';
|
|
@@ -7,10 +7,10 @@ exports.SCROLLABLE_ACTIVE_LINK_CLASSES = 'bg-white text-primary-main';
|
|
|
7
7
|
exports.WIDESCREEN_ACTIVE_LINK_CLASSES = 'bg-primary-main text-white';
|
|
8
8
|
exports.TEXT_CLASSES = 'font-sans text-m text-center';
|
|
9
9
|
exports.ACTIVE_TEXT_CLASSES = 'text-white';
|
|
10
|
-
exports.INACTIVE_TEXT_CLASSES = 'text-secondary-text group-hover/btn:text-primary-main';
|
|
10
|
+
exports.INACTIVE_TEXT_CLASSES = 'text-secondary-text sm:group-hover/btn:text-primary-main';
|
|
11
11
|
exports.WHITE_ACTIVE_TEXT_CLASSES = 'text-primary-main';
|
|
12
|
-
const
|
|
13
|
-
|
|
12
|
+
const TAB_CLASSES = {
|
|
13
|
+
block: {
|
|
14
14
|
scrollable: {
|
|
15
15
|
active: `inline-flex px-4 grow whitespace-nowrap ${exports.LINK_CLASSES} ${exports.SCROLLABLE_ACTIVE_LINK_CLASSES}`,
|
|
16
16
|
default: `inline-flex px-4 grow whitespace-nowrap ${exports.LINK_CLASSES} ${exports.INACTIVE_LINK_CLASSES}`,
|
|
@@ -26,37 +26,7 @@ const GROUP_TAB_CLASSES = {
|
|
|
26
26
|
},
|
|
27
27
|
text: {
|
|
28
28
|
scrollable: {
|
|
29
|
-
active:
|
|
30
|
-
default: ``,
|
|
31
|
-
},
|
|
32
|
-
centered: {
|
|
33
|
-
active: '',
|
|
34
|
-
default: '',
|
|
35
|
-
},
|
|
36
|
-
wideScreen: {
|
|
37
|
-
active: '',
|
|
38
|
-
default: '',
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const LINK_TAB_CLASSES = {
|
|
43
|
-
link: {
|
|
44
|
-
scrollable: {
|
|
45
|
-
active: `inline-flex px-4 grow whitespace-nowrap ${exports.LINK_CLASSES} ${exports.SCROLLABLE_ACTIVE_LINK_CLASSES}`,
|
|
46
|
-
default: `inline-flex px-4 grow whitespace-nowrap ${exports.LINK_CLASSES} ${exports.INACTIVE_LINK_CLASSES}`,
|
|
47
|
-
},
|
|
48
|
-
centered: {
|
|
49
|
-
active: `px-4 rounded-md ${exports.LINK_CLASSES} ${exports.WIDESCREEN_ACTIVE_LINK_CLASSES} whitespace-nowrap`,
|
|
50
|
-
default: `px-4 rounded-md ${exports.LINK_CLASSES} group/btn bg-transparent whitespace-nowrap`,
|
|
51
|
-
},
|
|
52
|
-
wideScreen: {
|
|
53
|
-
active: `${exports.LINK_CLASSES} ${exports.WIDESCREEN_ACTIVE_LINK_CLASSES}`,
|
|
54
|
-
default: `${exports.LINK_CLASSES} ${exports.INACTIVE_LINK_CLASSES}`,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
text: {
|
|
58
|
-
scrollable: {
|
|
59
|
-
active: `${exports.TEXT_CLASSES} flex items-center h-full border-0 border-b-2 ${exports.WHITE_ACTIVE_TEXT_CLASSES}`,
|
|
29
|
+
active: `${exports.TEXT_CLASSES} flex items-center h-full border-0 border-b-2`,
|
|
60
30
|
default: `${exports.TEXT_CLASSES} ${exports.INACTIVE_TEXT_CLASSES}`,
|
|
61
31
|
},
|
|
62
32
|
centered: {
|
|
@@ -64,21 +34,15 @@ const LINK_TAB_CLASSES = {
|
|
|
64
34
|
default: `${exports.TEXT_CLASSES} ${exports.INACTIVE_TEXT_CLASSES}`,
|
|
65
35
|
},
|
|
66
36
|
wideScreen: {
|
|
67
|
-
active: `${exports.TEXT_CLASSES} ${exports.ACTIVE_TEXT_CLASSES}`,
|
|
68
|
-
default: `${exports.TEXT_CLASSES} ${exports.INACTIVE_TEXT_CLASSES}`,
|
|
37
|
+
active: `${exports.TEXT_CLASSES} ${exports.ACTIVE_TEXT_CLASSES} text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,
|
|
38
|
+
default: `${exports.TEXT_CLASSES} ${exports.INACTIVE_TEXT_CLASSES} px-2.5 bg-white`,
|
|
69
39
|
},
|
|
70
40
|
},
|
|
71
41
|
};
|
|
72
|
-
const
|
|
73
|
-
const styleActive = active ? 'active' : 'default';
|
|
74
|
-
const mode = tabsMode || 'wideScreen';
|
|
75
|
-
return GROUP_TAB_CLASSES[type][mode][styleActive];
|
|
76
|
-
};
|
|
77
|
-
exports.getGroupTabClassName = getGroupTabClassName;
|
|
78
|
-
const getLinkTabClassName = (type, active, tabsMode) => {
|
|
42
|
+
const getTabClassName = (type, active, tabsMode) => {
|
|
79
43
|
const styleActive = active ? 'active' : 'default';
|
|
80
44
|
const mode = tabsMode || 'wideScreen';
|
|
81
|
-
return
|
|
45
|
+
return TAB_CLASSES[type][mode][styleActive];
|
|
82
46
|
};
|
|
83
|
-
exports.
|
|
47
|
+
exports.getTabClassName = getTabClassName;
|
|
84
48
|
//# sourceMappingURL=tabItemClasses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabItemClasses.js","sourceRoot":"","sources":["../../../src/components/Tabs/tabItemClasses.ts"],"names":[],"mappings":";;AAEa,QAAA,YAAY,GAAG,6DAA6D,CAAC;AAC7E,QAAA,mBAAmB,GAAG,iBAAiB,CAAC;AACxC,QAAA,qBAAqB,GAAG,oBAAoB,CAAC;AAE7C,QAAA,8BAA8B,GAAG,4BAA4B,CAAC;AAC9D,QAAA,8BAA8B,GAAG,4BAA4B,CAAC;AAE9D,QAAA,YAAY,GAAG,8BAA8B,CAAC;AAC9C,QAAA,mBAAmB,GAAG,YAAY,CAAC;AACnC,QAAA,qBAAqB,GAAG,
|
|
1
|
+
{"version":3,"file":"tabItemClasses.js","sourceRoot":"","sources":["../../../src/components/Tabs/tabItemClasses.ts"],"names":[],"mappings":";;AAEa,QAAA,YAAY,GAAG,6DAA6D,CAAC;AAC7E,QAAA,mBAAmB,GAAG,iBAAiB,CAAC;AACxC,QAAA,qBAAqB,GAAG,oBAAoB,CAAC;AAE7C,QAAA,8BAA8B,GAAG,4BAA4B,CAAC;AAC9D,QAAA,8BAA8B,GAAG,4BAA4B,CAAC;AAE9D,Q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AC,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC;AAC9C,CAAC,CAAC;AATW,QAAA,eAAe,mBAS1B"}
|
|
@@ -8,7 +8,6 @@ const TariffsTableVertical_1 = require("./TariffsTableVertical");
|
|
|
8
8
|
exports.TariffsTable = (0, uni_jsx_1.JSX)(({ className, title, description, tariffsColumns: columns, rowHeaders, orientation = 'vertical', ...rest }) => {
|
|
9
9
|
const colData = getColData(columns);
|
|
10
10
|
const tiles = getTiles(rowHeaders, colData);
|
|
11
|
-
const headingMargin = description ? 'mb-2' : 'mb-8';
|
|
12
11
|
return ((0, jsx_runtime_1.jsxs)("section", { className: `p-default bg-white font-sans text-primary-text overflow-x-hidden ${className}`, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "M", align: "text-left", isPadding: false, className: "mb-8" }), orientation === 'vertical' ? ((0, jsx_runtime_1.jsx)(TariffsTableVertical_1.TariffsTableVertical, { tiles: tiles, ...rest })) : ((0, jsx_runtime_1.jsx)(TariffsTableHorizontal_1.TariffsTableHorizontal, { tiles: tiles, ...rest }))] }));
|
|
13
12
|
});
|
|
14
13
|
const getColData = (columns) => columns?.[0]?.data ? columns[0].data : [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTable.mobile.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mDAAgD;AAOhD,qEAAkE;AAClE,iEAA8D;AAIjD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EACC,SAAS,EACT,KAAK,EACL,WAAW,EACX,cAAc,EAAE,OAAO,EACvB,UAAU,EACV,WAAW,GAAG,UAAU,EACxB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"TariffsTable.mobile.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mDAAgD;AAOhD,qEAAkE;AAClE,iEAA8D;AAIjD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EACC,SAAS,EACT,KAAK,EACL,WAAW,EACX,cAAc,EAAE,OAAO,EACvB,UAAU,EACV,WAAW,GAAG,UAAU,EACxB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAE5C,OAAO,CACL,qCACE,SAAS,EAAE,oEAAoE,SAAS,EAAE,aAE1F,uBAAC,mBAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,KAAK,EAAC,WAAW,EACjB,SAAS,EAAE,KAAK,EAChB,SAAS,EAAC,MAAM,GAChB,EACD,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,CAC5B,uBAAC,2CAAoB,IAAC,KAAK,EAAE,KAAK,KAAM,IAAI,GAAI,CACjD,CAAC,CAAC,CAAC,CACF,uBAAC,+CAAsB,IAAC,KAAK,EAAE,KAAK,KAAM,IAAI,GAAI,CACnD,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAyC,EAAE,EAAE,CAC/D,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AAE5C,MAAM,QAAQ,GAAG,CAAC,UAA+C,EAAE,OAAoB,EAAE,EAAE,CACzF,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9B,MAAM;IACN,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;CAC3B,CAAC,CAAC,CAAC"}
|
|
@@ -4,5 +4,5 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const BaseProductTile_1 = require("../../ui-kit/BaseProductTile/BaseProductTile");
|
|
6
6
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
|
-
exports.Tile = (0, uni_jsx_1.JSX)(({ className, headlineVersion = 'S', listItemSize = 'M', ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: className, ...rest, children: (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { className: "h-full",
|
|
7
|
+
exports.Tile = (0, uni_jsx_1.JSX)(({ className, padding, headlineVersion = 'S', listItemSize = 'M', ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: className, padding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { className: "h-full", defaultPadding: "p-m", padding: padding, headlineVersion: headlineVersion, listItemSize: listItemSize, ...rest }) })));
|
|
8
8
|
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAA+E;AAC/E,4DAAyD;AAK5C,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EAAE,SAAS,EAAE,eAAe,GAAG,GAAG,EAAE,YAAY,GAAG,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAA+E;AAC/E,4DAAyD;AAK5C,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,GAAG,EAAE,YAAY,GAAG,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC9E,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,KAAK,IAAI,YACxD,uBAAC,iCAAe,IACd,SAAS,EAAC,QAAQ,EAClB,cAAc,EAAC,KAAK,EACpB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,KACtB,IAAI,GACR,GACW,CAChB,CACF,CAAC"}
|
package/dist/icons/IconName.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare enum IconMap {
|
|
|
13
13
|
AtmIcon = "AtmIcon",
|
|
14
14
|
BagIcon = "BagIcon",
|
|
15
15
|
BankIcon = "BankIcon",
|
|
16
|
+
BelarusianFlag = "BelarusianFlag",
|
|
16
17
|
BriefcaseIcon = "BriefcaseIcon",
|
|
17
18
|
BuildingIcon = "BuildingIcon",
|
|
18
19
|
BurgerIcon = "BurgerIcon",
|
|
@@ -126,6 +127,7 @@ export declare enum IconTitleMap {
|
|
|
126
127
|
AtmIcon = "\u0411\u0430\u043D\u043A\u043E\u043C\u0430\u0442",
|
|
127
128
|
BagIcon = "\u0421\u0443\u043C\u043A\u0430",
|
|
128
129
|
BankIcon = "\u0411\u0430\u043D\u043A",
|
|
130
|
+
BelarusianFlag = "\u0411\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u043A\u0438\u0439 \u0444\u043B\u0430\u0433",
|
|
129
131
|
BriefcaseIcon = "BriefcaseIcon",
|
|
130
132
|
BuildingIcon = "\u0417\u0434\u0430\u043D\u0438\u0435 \u0441 \u0434\u0435\u0440\u0435\u0432\u043E\u043C",
|
|
131
133
|
BurgerIcon = "\u0411\u0443\u0440\u0433\u0435\u0440",
|
|
@@ -230,7 +232,7 @@ export declare enum IconTitleMap {
|
|
|
230
232
|
* @title Иконка
|
|
231
233
|
* @enumNames [
|
|
232
234
|
* "",
|
|
233
|
-
* 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'BriefcaseIcon', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Стрелка \'Вправо\'', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»'
|
|
235
|
+
* 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'Белорусский флаг', 'BriefcaseIcon', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Стрелка \'Вправо\'', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»'
|
|
234
236
|
* ]
|
|
235
237
|
*/
|
|
236
|
-
export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlaneIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownSolidIcon' | 'ArrowLeftIcon' | 'ArrowRightIcon' | 'ArrowTopRightIcon' | 'ArrowUpIcon' | 'ArrowUpSolidIcon' | 'AtmIcon' | 'BagIcon' | 'BankIcon' | 'BriefcaseIcon' | 'BuildingIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'Car2Icon' | 'CardIcon' | 'CardPosIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartSquareIcon' | 'ChevronLeft' | 'CinemaIcon' | 'ClientIcon' | 'ClockIcon' | 'CloseIcon' | 'ComfortableCompIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocDownloadIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentText2Icon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'DoneSimpleIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'FullScreenIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HuaweiIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'LogoIcon' | 'LoupeIcon' | 'MailIcon' | 'MapMarkerClusterIcon' | 'MapMarkerSingleIcon' | 'MasterCardIcon' | 'MetroIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MoneysIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'OfficeIcon' | 'OkIcon' | 'PackA4Icon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PercentIcon' | 'PersonalCardIcon' | 'PhoneIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'ResponceFailIcon' | 'ResponceOKIcon' | 'RoundRubleIcon' | 'SafeIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'StrongBoxIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserGeoLocationIcon' | 'UserSquareIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCanIcon' | 'YoutubeIcon';
|
|
238
|
+
export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlaneIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownSolidIcon' | 'ArrowLeftIcon' | 'ArrowRightIcon' | 'ArrowTopRightIcon' | 'ArrowUpIcon' | 'ArrowUpSolidIcon' | 'AtmIcon' | 'BagIcon' | 'BankIcon' | 'BelarusianFlag' | 'BriefcaseIcon' | 'BuildingIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'Car2Icon' | 'CardIcon' | 'CardPosIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartSquareIcon' | 'ChevronLeft' | 'CinemaIcon' | 'ClientIcon' | 'ClockIcon' | 'CloseIcon' | 'ComfortableCompIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocDownloadIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentText2Icon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'DoneSimpleIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'FullScreenIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HuaweiIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'LogoIcon' | 'LoupeIcon' | 'MailIcon' | 'MapMarkerClusterIcon' | 'MapMarkerSingleIcon' | 'MasterCardIcon' | 'MetroIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MoneysIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'OfficeIcon' | 'OkIcon' | 'PackA4Icon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PercentIcon' | 'PersonalCardIcon' | 'PhoneIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'ResponceFailIcon' | 'ResponceOKIcon' | 'RoundRubleIcon' | 'SafeIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'StrongBoxIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserGeoLocationIcon' | 'UserSquareIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCanIcon' | 'YoutubeIcon';
|
package/dist/icons/IconName.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.IconTitleMap = exports.IconMap = exports.IconsWithoutInversion = void 0;
|
|
5
5
|
exports.IconsWithoutInversion = new Set([
|
|
6
|
-
'ActualBalanceIcon', 'AirPlaneIcon', 'BagIcon', 'BriefcaseIcon', 'CardWithGemIcon', 'CarIcon', 'ChevronLeft', 'CinemaIcon', 'ClientIcon', 'ClockIcon', 'ComfortableCompIcon', 'CreditCardsIcon', 'DocsIcon', 'DollarIcon', 'DoneIcon', 'EarthIcon', 'EuroIcon', 'FullScreenIcon', 'GlassIcon', 'HeadphonesIcon', 'HeartIcon', 'HuaweiIcon', 'InterestGrowthIcon', 'JCBIcon', 'MailIcon', 'MapMarkerClusterIcon', 'MapMarkerSingleIcon', 'MasterCardIcon', 'MirIcon', 'MoneyInsuranceIcon', 'NewDocIcon', 'OfficeIcon', 'PackA4Icon', 'PassSendIcon', 'PercentIcon', 'PhoneIcon', 'PowerIcon', 'PumpkinIcon', 'ResponceFailIcon', 'ResponceOKIcon', 'SignDocsIcon', 'SoundIcon', 'UnionPayIcon', 'UserGeoLocationIcon', 'VisaIcon', 'WateringCanIcon'
|
|
6
|
+
'ActualBalanceIcon', 'AirPlaneIcon', 'BagIcon', 'BelarusianFlag', 'BriefcaseIcon', 'CardWithGemIcon', 'CarIcon', 'ChevronLeft', 'CinemaIcon', 'ClientIcon', 'ClockIcon', 'ComfortableCompIcon', 'CreditCardsIcon', 'DocsIcon', 'DollarIcon', 'DoneIcon', 'EarthIcon', 'EuroIcon', 'FullScreenIcon', 'GlassIcon', 'HeadphonesIcon', 'HeartIcon', 'HuaweiIcon', 'InterestGrowthIcon', 'JCBIcon', 'MailIcon', 'MapMarkerClusterIcon', 'MapMarkerSingleIcon', 'MasterCardIcon', 'MirIcon', 'MoneyInsuranceIcon', 'NewDocIcon', 'OfficeIcon', 'PackA4Icon', 'PassSendIcon', 'PercentIcon', 'PhoneIcon', 'PowerIcon', 'PumpkinIcon', 'ResponceFailIcon', 'ResponceOKIcon', 'SignDocsIcon', 'SoundIcon', 'UnionPayIcon', 'UserGeoLocationIcon', 'VisaIcon', 'WateringCanIcon'
|
|
7
7
|
]);
|
|
8
8
|
var IconMap;
|
|
9
9
|
(function (IconMap) {
|
|
@@ -20,6 +20,7 @@ var IconMap;
|
|
|
20
20
|
IconMap["AtmIcon"] = "AtmIcon";
|
|
21
21
|
IconMap["BagIcon"] = "BagIcon";
|
|
22
22
|
IconMap["BankIcon"] = "BankIcon";
|
|
23
|
+
IconMap["BelarusianFlag"] = "BelarusianFlag";
|
|
23
24
|
IconMap["BriefcaseIcon"] = "BriefcaseIcon";
|
|
24
25
|
IconMap["BuildingIcon"] = "BuildingIcon";
|
|
25
26
|
IconMap["BurgerIcon"] = "BurgerIcon";
|
|
@@ -134,6 +135,7 @@ var IconTitleMap;
|
|
|
134
135
|
IconTitleMap["AtmIcon"] = "\u0411\u0430\u043D\u043A\u043E\u043C\u0430\u0442";
|
|
135
136
|
IconTitleMap["BagIcon"] = "\u0421\u0443\u043C\u043A\u0430";
|
|
136
137
|
IconTitleMap["BankIcon"] = "\u0411\u0430\u043D\u043A";
|
|
138
|
+
IconTitleMap["BelarusianFlag"] = "\u0411\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u043A\u0438\u0439 \u0444\u043B\u0430\u0433";
|
|
137
139
|
IconTitleMap["BriefcaseIcon"] = "BriefcaseIcon";
|
|
138
140
|
IconTitleMap["BuildingIcon"] = "\u0417\u0434\u0430\u043D\u0438\u0435 \u0441 \u0434\u0435\u0440\u0435\u0432\u043E\u043C";
|
|
139
141
|
IconTitleMap["BurgerIcon"] = "\u0411\u0443\u0440\u0433\u0435\u0440";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconName.js","sourceRoot":"","sources":["../../src/icons/IconName.ts"],"names":[],"mappings":"AACA,0BAA0B;AAC1B,uCAAuC;;;AAE1B,QAAA,qBAAqB,GAAG,IAAI,GAAG,CAAC;IAC3C,mBAAmB,EAA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type { UniBlockProps } from '../../model/JSXBlock';
|
|
1
2
|
import type { BaseProductTileContent } from './BaseProductTileContent';
|
|
2
|
-
interface BaseProductTileProps extends BaseProductTileContent {
|
|
3
|
-
className?: string;
|
|
3
|
+
interface BaseProductTileProps extends UniBlockProps, BaseProductTileContent {
|
|
4
4
|
isInsetTitle?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const BaseProductTile: import("@redneckz/uni-jsx").UNIComponent<BaseProductTileProps, any, any>;
|
|
@@ -10,9 +10,10 @@ const Img_1 = require("../Img/Img");
|
|
|
10
10
|
const List_1 = require("../List/List");
|
|
11
11
|
const RichText_1 = require("../RichText/RichText");
|
|
12
12
|
const Tags_1 = require("../Tags/Tags");
|
|
13
|
-
exports.BaseProductTile = (0, uni_jsx_1.JSX)(({ className, title, description, headlineVersion = 'L', align = 'text-left', isInsetTitle = true,
|
|
13
|
+
exports.BaseProductTile = (0, uni_jsx_1.JSX)(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', isInsetTitle = true, benefitsVersion, isTabularBenefits, benefits, __html, items, isDotted = true, listItemSize, tags, buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground } = {}, children, }) => {
|
|
14
14
|
const img = image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null;
|
|
15
15
|
const headline = ((0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isPadding: false }));
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: className, ...(isInsetTitle ? { insetTitle: headline } : { title: headline }), ...(
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isInsetTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-m", children: [(0, jsx_runtime_1.jsx)(BenefitsList_1.BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: benefits }), __html ? (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, tags?.length ? (0, jsx_runtime_1.jsx)(Tags_1.Tags, { tags: tags }) : null] }) }));
|
|
17
17
|
});
|
|
18
|
+
const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
18
19
|
//# sourceMappingURL=BaseProductTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;
|
|
1
|
+
{"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;AAG9D,mDAAgD;AAChD,+DAA4D;AAC5D,yEAAsE;AACtE,oCAAiC;AACjC,uCAAoC;AACpC,mDAAgD;AAChD,uCAAoC;AAOvB,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EACC,SAAS,EACT,OAAO,EACP,cAAc,EACd,KAAK,EACL,WAAW,EACX,eAAe,GAAG,GAAG,EACrB,KAAK,GAAG,WAAW,EACnB,YAAY,GAAG,IAAI,EACnB,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,YAAY,EACZ,IAAI,EACJ,OAAO,EACP,KAAK,EACL,YAAY,EAAE,EAAE,UAAU,GAAG,KAAK,EAAE,cAAc,GAAG,IAAI,EAAE,YAAY,EAAE,GAAG,EAA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CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,IACvC,GACG,CACZ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,GAAU,EAAE,cAAuB,EAAE,EAAE,CAC/D,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -8,15 +8,16 @@ import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
|
8
8
|
import type { TagsContent } from '../../ui-kit/Tags/TagsContent';
|
|
9
9
|
import type { BenefitsListContent } from '../BenefitsList/BenefitsListContent';
|
|
10
10
|
/** @title Доп. настройки картинки */
|
|
11
|
-
interface TileImageOptions {
|
|
11
|
+
export interface TileImageOptions {
|
|
12
12
|
/** @title Картинка справа/текст слева */
|
|
13
13
|
directionRight?: boolean;
|
|
14
14
|
/** @title Выравнивание изображения */
|
|
15
15
|
imageAlign?: Align;
|
|
16
|
+
/** @title Фоновое изображение */
|
|
17
|
+
isBackground?: boolean;
|
|
16
18
|
}
|
|
17
19
|
export declare type BaseProductTileContent = HeadlineProps & BenefitsListContent & RichTextProps & ListContent & BulletsProps & TagsContent & ButtonContent & ImageContent & {
|
|
18
20
|
/** @title Лейбл (моб.) */
|
|
19
21
|
label?: string;
|
|
20
22
|
imageOptions?: TileImageOptions;
|
|
21
23
|
};
|
|
22
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IconVersion } from '../../model/IconVersion';
|
|
2
|
-
import type {
|
|
3
|
-
export
|
|
2
|
+
import type { ComplexBenefitContent } from './BenefitItemContent';
|
|
3
|
+
export declare type BenefitItemProps = ComplexBenefitContent & {
|
|
4
4
|
className?: string;
|
|
5
5
|
benefitsVersion?: IconVersion;
|
|
6
|
-
}
|
|
7
|
-
export declare const BenefitItem: import("@redneckz/uni-jsx").UNIComponent<
|
|
6
|
+
};
|
|
7
|
+
export declare const BenefitItem: import("@redneckz/uni-jsx").UNIComponent<BenefitItemProps, any, any>;
|
|
@@ -3,15 +3,7 @@ exports.BenefitItem = 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
5
|
const style_1 = require("../../utils/style");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
const labelSize_1 = require("./labelSize");
|
|
10
|
-
exports.BenefitItem = (0, uni_jsx_1.JSX)(({ className, icon, label, description, benefitsVersion = 'normal' }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex gap-s', description ? 'items-start' : 'items-center', className), children: [icon ? ((0, jsx_runtime_1.jsx)("div", { className: getBenefitIconBgStyle(benefitsVersion), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "gap-0.5", children: [label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-primary-text group-data-secondary:text-white", size: labelSize_1.labelSize, children: label })) : null, description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { font: "font-light", size: "text-m", color: "text-secondary-text group-data-secondary:text-white", children: description })) : null] })] })));
|
|
11
|
-
function getBenefitIconBgStyle(benefitsVersion) {
|
|
12
|
-
const bgColorStyle = benefitsVersion === 'normal'
|
|
13
|
-
? 'bg-secondary-light text-primary-main'
|
|
14
|
-
: 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black';
|
|
15
|
-
return (0, style_1.style)('w-12 h-12 min-w-12 p-2.5 box-border flex items-center justify-center rounded-icon', bgColorStyle);
|
|
16
|
-
}
|
|
6
|
+
const renderBenefitIcon_1 = require("./renderBenefitIcon");
|
|
7
|
+
const renderBenefitText_1 = require("./renderBenefitText");
|
|
8
|
+
exports.BenefitItem = (0, uni_jsx_1.JSX)(({ className, benefitsVersion, ..._ }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex gap-s', 'description' in _ && _.description ? 'items-start' : 'items-center', className), children: ['icon' in _ ? (0, renderBenefitIcon_1.renderBenefitIcon)(_.icon, benefitsVersion) : null, (0, jsx_runtime_1.jsx)("div", { children: (0, renderBenefitText_1.renderBenefitText)(_) })] })));
|
|
17
9
|
//# sourceMappingURL=BenefitItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BenefitItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/BenefitItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6CAA0C;
|
|
1
|
+
{"version":3,"file":"BenefitItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/BenefitItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6CAA0C;AAE1C,2DAAwD;AACxD,2DAAwD;AAO3C,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CACzF,iCACE,SAAS,EAAE,IAAA,aAAK,EACd,YAAY,EACZ,aAAa,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,EACpE,SAAS,CACV,aAEA,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,IAAA,qCAAiB,EAAC,CAAC,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,EAChE,0CAAM,IAAA,qCAAiB,EAAC,CAAC,CAAC,GAAO,IAC7B,CACP,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderBenefitDescription = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const Paragraph_1 = require("../Paragraph/Paragraph");
|
|
5
|
+
const renderBenefitDescription = (description, i) => description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { font: "font-light", size: "text-m", color: "text-secondary-text group-data-secondary:text-white", children: description }, `description-${i}`)) : null;
|
|
6
|
+
exports.renderBenefitDescription = renderBenefitDescription;
|
|
7
|
+
//# sourceMappingURL=renderBenefitDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderBenefitDescription.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/renderBenefitDescription.tsx"],"names":[],"mappings":";;;AAAA,sDAAmD;AAE5C,MAAM,wBAAwB,GAAG,CAAC,WAAoB,EAAE,CAAU,EAAE,EAAE,CAC3E,WAAW,CAAC,CAAC,CAAC,CACZ,uBAAC,qBAAS,IAER,IAAI,EAAC,YAAY,EACjB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,qDAAqD,YAE1D,WAAW,IALP,eAAe,CAAC,EAAE,CAMb,CACb,CAAC,CAAC,CAAC,IAAI,CAAC;AAVE,QAAA,wBAAwB,4BAU1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderBenefitIcon = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const style_1 = require("../../utils/style");
|
|
5
|
+
const Img_1 = require("../Img/Img");
|
|
6
|
+
const renderBenefitIcon = (icon, benefitsVersion = 'normal') => icon ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon', benefitsVersion === 'normal'
|
|
7
|
+
? 'bg-secondary-light text-primary-main'
|
|
8
|
+
: 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black'), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null;
|
|
9
|
+
exports.renderBenefitIcon = renderBenefitIcon;
|
|
10
|
+
//# sourceMappingURL=renderBenefitIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderBenefitIcon.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/renderBenefitIcon.tsx"],"names":[],"mappings":";;;AAEA,6CAA0C;AAC1C,oCAAiC;AAE1B,MAAM,iBAAiB,GAAG,CAC/B,IAAyB,EACzB,kBAA+B,QAAQ,EACvC,EAAE,CACF,IAAI,CAAC,CAAC,CAAC,CACL,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,6EAA6E,EAC7E,eAAe,KAAK,QAAQ;QAC1B,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,6FAA6F,CAClG,YAED,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,eAAe,EAAE,GACpE,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAlBE,QAAA,iBAAiB,qBAkBnB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderBenefitLabel = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const Text_1 = require("../Text/Text");
|
|
5
|
+
const renderBenefitLabel = (label, i) => label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-primary-text group-data-secondary:text-white", size: "text-h6", children: label }, `label-${i}`)) : null;
|
|
6
|
+
exports.renderBenefitLabel = renderBenefitLabel;
|
|
7
|
+
//# sourceMappingURL=renderBenefitLabel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderBenefitLabel.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/renderBenefitLabel.tsx"],"names":[],"mappings":";;;AAAA,uCAAoC;AAE7B,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAE,CAAU,EAAE,EAAE,CAC/D,KAAK,CAAC,CAAC,CAAC,CACN,uBAAC,WAAI,IAEH,KAAK,EAAC,mDAAmD,EACzD,IAAI,EAAC,SAAS,YAEb,KAAK,IAJD,SAAS,CAAC,EAAE,CAKZ,CACR,CAAC,CAAC,CAAC,IAAI,CAAC;AATE,QAAA,kBAAkB,sBASpB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderBenefitText = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const RichText_1 = require("../RichText/RichText");
|
|
5
|
+
const renderBenefitDescription_1 = require("./renderBenefitDescription");
|
|
6
|
+
const renderBenefitLabel_1 = require("./renderBenefitLabel");
|
|
7
|
+
const renderBenefitText = (_, i) => _.type === 'rte' && '__html' in _ && _.__html ? ((0, jsx_runtime_1.jsx)(RichText_1.RichText, { ..._ }, `rte-${i}`)) : ([
|
|
8
|
+
'label' in _ ? (0, renderBenefitLabel_1.renderBenefitLabel)(_.label, i) : null,
|
|
9
|
+
'description' in _ ? (0, renderBenefitDescription_1.renderBenefitDescription)(_.description, i) : null,
|
|
10
|
+
]);
|
|
11
|
+
exports.renderBenefitText = renderBenefitText;
|
|
12
|
+
//# sourceMappingURL=renderBenefitText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderBenefitText.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/renderBenefitText.tsx"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD,yEAAsE;AACtE,6DAA0D;AAEnD,MAAM,iBAAiB,GAAG,CAAC,CAAwB,EAAE,CAAU,EAAE,EAAE,CACxE,CAAC,CAAC,IAAI,KAAK,KAAK,IAAI,QAAQ,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAC9C,uBAAC,mBAAQ,OAAsB,CAAC,IAAjB,OAAO,CAAC,EAAE,CAAW,CACrC,CAAC,CAAC,CAAC,CACF;IACE,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,IAAA,uCAAkB,EAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;IACpD,aAAa,IAAI,CAAC,CAAC,CAAC,CAAC,IAAA,mDAAwB,EAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;CACvE,CACF,CAAC;AARS,QAAA,iBAAiB,qBAQ1B"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
interface BenefitsListProps extends BenefitsListContent {
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
1
|
+
import { BenefitsListProps } from './BenefitsListProps';
|
|
5
2
|
export declare const BenefitsList: import("@redneckz/uni-jsx").UNIComponent<BenefitsListProps, any, any>;
|
|
6
|
-
export {};
|
|
@@ -2,13 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.BenefitsList = 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
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const MAX_BENEFITS_LEN_DEVIATION = 16;
|
|
9
|
-
const benefitLength = (_) => _.type === 'rte'
|
|
10
|
-
? _.__html?.length || 0
|
|
11
|
-
: Math.max(_.label?.length || 0, _.description?.length || 0);
|
|
12
|
-
const isDistortedBenefits = (benefits) => (0, deviation_1.deviation)(benefits.map(benefitLength)) > MAX_BENEFITS_LEN_DEVIATION;
|
|
13
|
-
exports.BenefitsList = (0, uni_jsx_1.JSX)(({ className, benefitsVersion = 'normal', benefits }) => benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex gap-x-m gap-y-s', isDistortedBenefits(benefits) ? 'flex-col' : 'flex-wrap', className), children: benefits.map((0, renderBenefit_1.renderBenefit)(benefitsVersion)) })) : null);
|
|
5
|
+
const DefaultBenefitsList_1 = require("./DefaultBenefitsList");
|
|
6
|
+
const TabularBenefitsList_1 = require("./TabularBenefitsList");
|
|
7
|
+
exports.BenefitsList = (0, uni_jsx_1.JSX)(({ isTabularBenefits, ...rest }) => isTabularBenefits ? (0, jsx_runtime_1.jsx)(TabularBenefitsList_1.TabularBenefitsList, { ...rest }) : (0, jsx_runtime_1.jsx)(DefaultBenefitsList_1.DefaultBenefitsList, { ...rest }));
|
|
14
8
|
//# sourceMappingURL=BenefitsList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BenefitsList.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitsList/BenefitsList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"BenefitsList.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitsList/BenefitsList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,+DAA4D;AAC5D,+DAA4D;AAE/C,QAAA,YAAY,GAAG,IAAA,aAAG,EAAoB,CAAC,EAAE,iBAAiB,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CACpF,iBAAiB,CAAC,CAAC,CAAC,uBAAC,yCAAmB,OAAK,IAAI,GAAI,CAAC,CAAC,CAAC,uBAAC,yCAAmB,OAAK,IAAI,GAAI,CAC1F,CAAC"}
|
|
@@ -5,10 +5,12 @@ import type { ComplexBenefitContent } from '../BenefitItem/BenefitItemContent';
|
|
|
5
5
|
*/
|
|
6
6
|
export interface BenefitsListContent {
|
|
7
7
|
benefitsVersion?: IconVersion;
|
|
8
|
+
/** @title Табличный вид преимуществ */
|
|
9
|
+
isTabularBenefits?: boolean;
|
|
8
10
|
/**
|
|
9
11
|
* @title Список преимуществ
|
|
10
12
|
* @minItems 2
|
|
11
|
-
* @maxItems
|
|
13
|
+
* @maxItems 8
|
|
12
14
|
*/
|
|
13
15
|
benefits?: ComplexBenefitContent[];
|
|
14
16
|
}
|