@cloud-ru/uikit-product-site-section 0.23.3 → 0.23.5
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/CHANGELOG.md +29 -0
- package/dist/cjs/components/SectionAccordion/SectionAccordion.d.ts +28 -0
- package/dist/cjs/components/SectionAccordion/SectionAccordion.js +29 -0
- package/dist/cjs/components/SectionAccordion/index.d.ts +1 -0
- package/dist/cjs/components/SectionAccordion/index.js +17 -0
- package/dist/cjs/components/SectionAccordion/styles.module.css +11 -0
- package/dist/cjs/components/SectionAccordion/types.d.ts +9 -0
- package/dist/cjs/components/SectionAccordion/types.js +2 -0
- package/dist/cjs/components/SectionAccordion/utils.d.ts +4 -0
- package/dist/cjs/components/SectionAccordion/utils.js +29 -0
- package/dist/cjs/components/SectionBasic/SectionBasic.d.ts +38 -0
- package/dist/cjs/components/SectionBasic/SectionBasic.js +45 -0
- package/dist/cjs/components/SectionBasic/index.d.ts +1 -0
- package/dist/cjs/components/SectionBasic/index.js +17 -0
- package/dist/cjs/components/SectionBasic/styles.module.css +73 -0
- package/dist/cjs/components/SectionBenefits/SectionBenefits.d.ts +33 -0
- package/dist/cjs/components/SectionBenefits/SectionBenefits.js +56 -0
- package/dist/cjs/components/SectionBenefits/components/CardNumeric/CardNumeric.d.ts +6 -0
- package/dist/cjs/components/SectionBenefits/components/CardNumeric/CardNumeric.js +25 -0
- package/dist/cjs/components/SectionBenefits/components/CardNumeric/index.d.ts +1 -0
- package/dist/cjs/components/SectionBenefits/components/CardNumeric/index.js +17 -0
- package/dist/cjs/components/SectionBenefits/components/CardNumeric/styles.module.css +4 -0
- package/dist/cjs/components/SectionBenefits/components/index.d.ts +1 -0
- package/dist/cjs/components/SectionBenefits/components/index.js +17 -0
- package/dist/cjs/components/SectionBenefits/index.d.ts +1 -0
- package/dist/cjs/components/SectionBenefits/index.js +17 -0
- package/dist/cjs/components/SectionBenefits/styles.module.css +12 -0
- package/dist/cjs/components/SectionBenefits/types.d.ts +69 -0
- package/dist/cjs/components/SectionBenefits/types.js +2 -0
- package/dist/cjs/components/SectionBenefitsBanner/SectionBenefitsBanner.d.ts +19 -0
- package/dist/cjs/components/SectionBenefitsBanner/SectionBenefitsBanner.js +31 -0
- package/dist/cjs/components/SectionBenefitsBanner/index.d.ts +1 -0
- package/dist/cjs/components/SectionBenefitsBanner/index.js +17 -0
- package/dist/cjs/components/SectionBenefitsBanner/styles.module.css +91 -0
- package/dist/cjs/components/SectionBenefitsBanner/types.d.ts +34 -0
- package/dist/cjs/components/SectionBenefitsBanner/types.js +14 -0
- package/dist/cjs/components/SectionBenefitsBanner/utils.d.ts +3 -0
- package/dist/cjs/components/SectionBenefitsBanner/utils.js +14 -0
- package/dist/cjs/components/SectionBlogCarousel/SectionBlogCarousel.d.ts +5 -0
- package/dist/cjs/components/SectionBlogCarousel/SectionBlogCarousel.js +24 -0
- package/dist/cjs/components/SectionBlogCarousel/index.d.ts +1 -0
- package/dist/cjs/components/SectionBlogCarousel/index.js +17 -0
- package/dist/cjs/components/SectionBlogCarousel/utils.d.ts +3 -0
- package/dist/cjs/components/SectionBlogCarousel/utils.js +25 -0
- package/dist/cjs/components/SectionCaseCarousel/SectionCaseCarousel.d.ts +5 -0
- package/dist/cjs/components/SectionCaseCarousel/SectionCaseCarousel.js +24 -0
- package/dist/cjs/components/SectionCaseCarousel/index.d.ts +1 -0
- package/dist/cjs/components/SectionCaseCarousel/index.js +17 -0
- package/dist/cjs/components/SectionCaseCarousel/styles.module.css +3 -0
- package/dist/cjs/components/SectionCaseCarousel/utils.d.ts +3 -0
- package/dist/cjs/components/SectionCaseCarousel/utils.js +21 -0
- package/dist/cjs/components/SectionCatalog/SectionCatalog.d.ts +29 -0
- package/dist/cjs/components/SectionCatalog/SectionCatalog.js +35 -0
- package/dist/cjs/components/SectionCatalog/constants.d.ts +14 -0
- package/dist/cjs/components/SectionCatalog/constants.js +8 -0
- package/dist/cjs/components/SectionCatalog/index.d.ts +1 -0
- package/dist/cjs/components/SectionCatalog/index.js +17 -0
- package/dist/cjs/components/SectionCatalog/styles.module.css +43 -0
- package/dist/cjs/components/SectionClientsCarousel/SectionClientsCarousel.d.ts +3 -0
- package/dist/cjs/components/SectionClientsCarousel/SectionClientsCarousel.js +24 -0
- package/dist/cjs/components/SectionClientsCarousel/index.d.ts +1 -0
- package/dist/cjs/components/SectionClientsCarousel/index.js +17 -0
- package/dist/cjs/components/SectionClientsCarousel/utils.d.ts +3 -0
- package/dist/cjs/components/SectionClientsCarousel/utils.js +25 -0
- package/dist/cjs/components/SectionContent/SectionContent.d.ts +21 -0
- package/dist/cjs/components/SectionContent/SectionContent.js +31 -0
- package/dist/cjs/components/SectionContent/index.d.ts +1 -0
- package/dist/cjs/components/SectionContent/index.js +17 -0
- package/dist/cjs/components/SectionContent/styles.module.css +59 -0
- package/dist/cjs/components/SectionContentList/SectionContentList.d.ts +26 -0
- package/dist/cjs/components/SectionContentList/SectionContentList.js +27 -0
- package/dist/cjs/components/SectionContentList/index.d.ts +1 -0
- package/dist/cjs/components/SectionContentList/index.js +17 -0
- package/dist/cjs/components/SectionContentList/styles.module.css +49 -0
- package/dist/cjs/components/SectionContentTabs/SectionContentTabs.d.ts +36 -0
- package/dist/cjs/components/SectionContentTabs/SectionContentTabs.js +43 -0
- package/dist/cjs/components/SectionContentTabs/index.d.ts +1 -0
- package/dist/cjs/components/SectionContentTabs/index.js +17 -0
- package/dist/cjs/components/SectionContentTabs/styles.module.css +76 -0
- package/dist/cjs/components/SectionExpertsCarousel/SectionExpertsCarousel.d.ts +4 -0
- package/dist/cjs/components/SectionExpertsCarousel/SectionExpertsCarousel.js +21 -0
- package/dist/cjs/components/SectionExpertsCarousel/constants.d.ts +2 -0
- package/dist/cjs/components/SectionExpertsCarousel/constants.js +5 -0
- package/dist/cjs/components/SectionExpertsCarousel/index.d.ts +1 -0
- package/dist/cjs/components/SectionExpertsCarousel/index.js +17 -0
- package/dist/cjs/components/SectionExpertsCarousel/types.d.ts +6 -0
- package/dist/cjs/components/SectionExpertsCarousel/types.js +2 -0
- package/dist/cjs/components/SectionLeading/SectionLeading.d.ts +15 -0
- package/dist/cjs/components/SectionLeading/SectionLeading.js +57 -0
- package/dist/cjs/components/SectionLeading/index.d.ts +1 -0
- package/dist/cjs/components/SectionLeading/index.js +17 -0
- package/dist/cjs/components/SectionLeading/styles.module.css +23 -0
- package/dist/cjs/components/SectionLeading/utils.d.ts +1 -0
- package/dist/cjs/components/SectionLeading/utils.js +13 -0
- package/dist/cjs/components/SectionMarketplaceCarousel/SectionMarketplaceCarousel.d.ts +4 -0
- package/dist/cjs/components/SectionMarketplaceCarousel/SectionMarketplaceCarousel.js +24 -0
- package/dist/cjs/components/SectionMarketplaceCarousel/index.d.ts +1 -0
- package/dist/cjs/components/SectionMarketplaceCarousel/index.js +17 -0
- package/dist/cjs/components/SectionMarketplaceCarousel/utils.d.ts +3 -0
- package/dist/cjs/components/SectionMarketplaceCarousel/utils.js +29 -0
- package/dist/cjs/components/SectionMedia/SectionMedia.d.ts +5 -0
- package/dist/cjs/components/SectionMedia/SectionMedia.js +26 -0
- package/dist/cjs/components/SectionMedia/index.d.ts +1 -0
- package/dist/cjs/components/SectionMedia/index.js +17 -0
- package/dist/cjs/components/SectionMedia/styles.module.css +10 -0
- package/dist/cjs/components/SectionPersonalManager/SectionPersonalManager.d.ts +24 -0
- package/dist/cjs/components/SectionPersonalManager/SectionPersonalManager.js +53 -0
- package/dist/cjs/components/SectionPersonalManager/index.d.ts +1 -0
- package/dist/cjs/components/SectionPersonalManager/index.js +17 -0
- package/dist/cjs/components/SectionPersonalManager/styles.module.css +122 -0
- package/dist/cjs/components/SectionPersonalManager/utils.d.ts +3 -0
- package/dist/cjs/components/SectionPersonalManager/utils.js +15 -0
- package/dist/cjs/components/SectionPromoList/SectionPromoList.d.ts +19 -0
- package/dist/cjs/components/SectionPromoList/SectionPromoList.js +27 -0
- package/dist/cjs/components/SectionPromoList/index.d.ts +1 -0
- package/dist/cjs/components/SectionPromoList/index.js +17 -0
- package/dist/cjs/components/SectionPromoList/styles.module.css +43 -0
- package/dist/cjs/components/SectionSocial/SectionSocial.d.ts +19 -0
- package/dist/cjs/components/SectionSocial/SectionSocial.js +33 -0
- package/dist/cjs/components/SectionSocial/constants.d.ts +14 -0
- package/dist/cjs/components/SectionSocial/constants.js +8 -0
- package/dist/cjs/components/SectionSocial/index.d.ts +1 -0
- package/dist/cjs/components/SectionSocial/index.js +17 -0
- package/dist/cjs/components/SectionSocial/styles.module.css +4 -0
- package/dist/cjs/components/SectionTable/SectionTable.d.ts +15 -0
- package/dist/cjs/components/SectionTable/SectionTable.js +28 -0
- package/dist/cjs/components/SectionTable/index.d.ts +1 -0
- package/dist/cjs/components/SectionTable/index.js +17 -0
- package/dist/cjs/components/SectionTable/styles.module.css +25 -0
- package/dist/cjs/components/index.d.ts +19 -0
- package/dist/cjs/components/index.js +35 -0
- package/dist/cjs/constants.d.ts +4 -0
- package/dist/cjs/constants.js +7 -0
- package/dist/cjs/helperComponents/BenefitItem/BenefitItem.d.ts +8 -0
- package/dist/cjs/helperComponents/BenefitItem/BenefitItem.js +15 -0
- package/dist/cjs/helperComponents/BenefitItem/index.d.ts +1 -0
- package/dist/cjs/helperComponents/BenefitItem/index.js +17 -0
- package/dist/cjs/helperComponents/BenefitItem/styles.module.css +27 -0
- package/dist/cjs/helperComponents/BenefitItem/utils.d.ts +4 -0
- package/dist/cjs/helperComponents/BenefitItem/utils.js +26 -0
- package/dist/cjs/helperComponents/CardClient/CardClient.d.ts +5 -0
- package/dist/cjs/helperComponents/CardClient/CardClient.js +11 -0
- package/dist/cjs/helperComponents/CardClient/index.d.ts +1 -0
- package/dist/cjs/helperComponents/CardClient/index.js +17 -0
- package/dist/cjs/helperComponents/CardClient/styles.module.css +24 -0
- package/dist/cjs/helperComponents/CardLeading/CardLeading.d.ts +4 -0
- package/dist/cjs/helperComponents/CardLeading/CardLeading.js +26 -0
- package/dist/cjs/helperComponents/CardLeading/index.d.ts +2 -0
- package/dist/cjs/helperComponents/CardLeading/index.js +18 -0
- package/dist/cjs/helperComponents/CardLeading/styles.module.css +36 -0
- package/dist/cjs/helperComponents/CardLeading/types.d.ts +11 -0
- package/dist/cjs/helperComponents/CardLeading/types.js +2 -0
- package/dist/cjs/helperComponents/CardLeading/utils.d.ts +4 -0
- package/dist/cjs/helperComponents/CardLeading/utils.js +27 -0
- package/dist/cjs/helperComponents/CardSocial/CardSocial.d.ts +25 -0
- package/dist/cjs/helperComponents/CardSocial/CardSocial.js +34 -0
- package/dist/cjs/helperComponents/CardSocial/index.d.ts +1 -0
- package/dist/cjs/helperComponents/CardSocial/index.js +17 -0
- package/dist/cjs/helperComponents/CardSocial/styles.module.css +42 -0
- package/dist/cjs/helperComponents/CardSocial/utils.d.ts +3 -0
- package/dist/cjs/helperComponents/CardSocial/utils.js +13 -0
- package/dist/cjs/helperComponents/Expert/Expert.d.ts +5 -0
- package/dist/cjs/helperComponents/Expert/Expert.js +13 -0
- package/dist/cjs/helperComponents/Expert/index.d.ts +1 -0
- package/dist/cjs/helperComponents/Expert/index.js +17 -0
- package/dist/cjs/helperComponents/Expert/styles.module.css +38 -0
- package/dist/cjs/helperComponents/PromoList/PromoList.d.ts +6 -0
- package/dist/cjs/helperComponents/PromoList/PromoList.js +13 -0
- package/dist/cjs/helperComponents/PromoList/index.d.ts +1 -0
- package/dist/cjs/helperComponents/PromoList/index.js +17 -0
- package/dist/cjs/helperComponents/PromoList/styles.module.css +53 -0
- package/dist/cjs/helperComponents/SectionButton/SectionButton.d.ts +2 -0
- package/dist/cjs/helperComponents/SectionButton/SectionButton.js +28 -0
- package/dist/cjs/helperComponents/SectionButton/index.d.ts +1 -0
- package/dist/cjs/helperComponents/SectionButton/index.js +17 -0
- package/dist/cjs/helperComponents/SectionButton/types.d.ts +8 -0
- package/dist/cjs/helperComponents/SectionButton/types.js +2 -0
- package/dist/cjs/helperComponents/SectionCarousel/SectionCarousel.d.ts +2 -0
- package/dist/cjs/helperComponents/SectionCarousel/SectionCarousel.js +61 -0
- package/dist/cjs/helperComponents/SectionCarousel/index.d.ts +2 -0
- package/dist/cjs/helperComponents/SectionCarousel/index.js +17 -0
- package/dist/cjs/helperComponents/SectionCarousel/styles.module.css +5 -0
- package/dist/cjs/helperComponents/SectionCarousel/types.d.ts +32 -0
- package/dist/cjs/helperComponents/SectionCarousel/types.js +2 -0
- package/dist/cjs/helperComponents/SectionCarousel/utils.d.ts +6 -0
- package/dist/cjs/helperComponents/SectionCarousel/utils.js +8 -0
- package/dist/cjs/helperComponents/SectionCatalogFooter/SectionCatalogFooter.d.ts +12 -0
- package/dist/cjs/helperComponents/SectionCatalogFooter/SectionCatalogFooter.js +16 -0
- package/dist/cjs/helperComponents/SectionCatalogFooter/index.d.ts +1 -0
- package/dist/cjs/helperComponents/SectionCatalogFooter/index.js +17 -0
- package/dist/cjs/helperComponents/SectionCatalogFooter/styles.module.css +8 -0
- package/dist/cjs/helperComponents/SectionTitle/SectionTitle.d.ts +22 -0
- package/dist/cjs/helperComponents/SectionTitle/SectionTitle.js +17 -0
- package/dist/cjs/helperComponents/SectionTitle/constants.d.ts +5 -0
- package/dist/cjs/helperComponents/SectionTitle/constants.js +8 -0
- package/dist/cjs/helperComponents/SectionTitle/index.d.ts +1 -0
- package/dist/cjs/helperComponents/SectionTitle/index.js +17 -0
- package/dist/cjs/helperComponents/SectionTitle/styles.module.css +31 -0
- package/dist/cjs/helperComponents/SectionTitle/types.d.ts +5 -0
- package/dist/cjs/helperComponents/SectionTitle/types.js +2 -0
- package/dist/cjs/helperComponents/SectionTitle/utils.d.ts +8 -0
- package/dist/cjs/helperComponents/SectionTitle/utils.js +67 -0
- package/dist/cjs/helperComponents/index.d.ts +10 -0
- package/dist/cjs/helperComponents/index.js +26 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +18 -0
- package/dist/cjs/types.d.ts +19 -0
- package/dist/cjs/types.js +2 -0
- package/dist/esm/components/SectionAccordion/SectionAccordion.d.ts +28 -0
- package/dist/esm/components/SectionAccordion/SectionAccordion.js +23 -0
- package/dist/esm/components/SectionAccordion/index.d.ts +1 -0
- package/dist/esm/components/SectionAccordion/index.js +1 -0
- package/dist/esm/components/SectionAccordion/styles.module.css +11 -0
- package/dist/esm/components/SectionAccordion/types.d.ts +9 -0
- package/dist/esm/components/SectionAccordion/types.js +1 -0
- package/dist/esm/components/SectionAccordion/utils.d.ts +4 -0
- package/dist/esm/components/SectionAccordion/utils.js +24 -0
- package/dist/esm/components/SectionBasic/SectionBasic.d.ts +38 -0
- package/dist/esm/components/SectionBasic/SectionBasic.js +39 -0
- package/dist/esm/components/SectionBasic/index.d.ts +1 -0
- package/dist/esm/components/SectionBasic/index.js +1 -0
- package/dist/esm/components/SectionBasic/styles.module.css +73 -0
- package/dist/esm/components/SectionBenefits/SectionBenefits.d.ts +33 -0
- package/dist/esm/components/SectionBenefits/SectionBenefits.js +50 -0
- package/dist/esm/components/SectionBenefits/components/CardNumeric/CardNumeric.d.ts +6 -0
- package/dist/esm/components/SectionBenefits/components/CardNumeric/CardNumeric.js +19 -0
- package/dist/esm/components/SectionBenefits/components/CardNumeric/index.d.ts +1 -0
- package/dist/esm/components/SectionBenefits/components/CardNumeric/index.js +1 -0
- package/dist/esm/components/SectionBenefits/components/CardNumeric/styles.module.css +4 -0
- package/dist/esm/components/SectionBenefits/components/index.d.ts +1 -0
- package/dist/esm/components/SectionBenefits/components/index.js +1 -0
- package/dist/esm/components/SectionBenefits/index.d.ts +1 -0
- package/dist/esm/components/SectionBenefits/index.js +1 -0
- package/dist/esm/components/SectionBenefits/styles.module.css +12 -0
- package/dist/esm/components/SectionBenefits/types.d.ts +69 -0
- package/dist/esm/components/SectionBenefits/types.js +1 -0
- package/dist/esm/components/SectionBenefitsBanner/SectionBenefitsBanner.d.ts +19 -0
- package/dist/esm/components/SectionBenefitsBanner/SectionBenefitsBanner.js +25 -0
- package/dist/esm/components/SectionBenefitsBanner/index.d.ts +1 -0
- package/dist/esm/components/SectionBenefitsBanner/index.js +1 -0
- package/dist/esm/components/SectionBenefitsBanner/styles.module.css +91 -0
- package/dist/esm/components/SectionBenefitsBanner/types.d.ts +34 -0
- package/dist/esm/components/SectionBenefitsBanner/types.js +11 -0
- package/dist/esm/components/SectionBenefitsBanner/utils.d.ts +3 -0
- package/dist/esm/components/SectionBenefitsBanner/utils.js +11 -0
- package/dist/esm/components/SectionBlogCarousel/SectionBlogCarousel.d.ts +5 -0
- package/dist/esm/components/SectionBlogCarousel/SectionBlogCarousel.js +21 -0
- package/dist/esm/components/SectionBlogCarousel/index.d.ts +1 -0
- package/dist/esm/components/SectionBlogCarousel/index.js +1 -0
- package/dist/esm/components/SectionBlogCarousel/utils.d.ts +3 -0
- package/dist/esm/components/SectionBlogCarousel/utils.js +21 -0
- package/dist/esm/components/SectionCaseCarousel/SectionCaseCarousel.d.ts +5 -0
- package/dist/esm/components/SectionCaseCarousel/SectionCaseCarousel.js +21 -0
- package/dist/esm/components/SectionCaseCarousel/index.d.ts +1 -0
- package/dist/esm/components/SectionCaseCarousel/index.js +1 -0
- package/dist/esm/components/SectionCaseCarousel/styles.module.css +3 -0
- package/dist/esm/components/SectionCaseCarousel/utils.d.ts +3 -0
- package/dist/esm/components/SectionCaseCarousel/utils.js +17 -0
- package/dist/esm/components/SectionCatalog/SectionCatalog.d.ts +29 -0
- package/dist/esm/components/SectionCatalog/SectionCatalog.js +29 -0
- package/dist/esm/components/SectionCatalog/constants.d.ts +14 -0
- package/dist/esm/components/SectionCatalog/constants.js +5 -0
- package/dist/esm/components/SectionCatalog/index.d.ts +1 -0
- package/dist/esm/components/SectionCatalog/index.js +1 -0
- package/dist/esm/components/SectionCatalog/styles.module.css +43 -0
- package/dist/esm/components/SectionClientsCarousel/SectionClientsCarousel.d.ts +3 -0
- package/dist/esm/components/SectionClientsCarousel/SectionClientsCarousel.js +21 -0
- package/dist/esm/components/SectionClientsCarousel/index.d.ts +1 -0
- package/dist/esm/components/SectionClientsCarousel/index.js +1 -0
- package/dist/esm/components/SectionClientsCarousel/utils.d.ts +3 -0
- package/dist/esm/components/SectionClientsCarousel/utils.js +21 -0
- package/dist/esm/components/SectionContent/SectionContent.d.ts +21 -0
- package/dist/esm/components/SectionContent/SectionContent.js +25 -0
- package/dist/esm/components/SectionContent/index.d.ts +1 -0
- package/dist/esm/components/SectionContent/index.js +1 -0
- package/dist/esm/components/SectionContent/styles.module.css +59 -0
- package/dist/esm/components/SectionContentList/SectionContentList.d.ts +26 -0
- package/dist/esm/components/SectionContentList/SectionContentList.js +21 -0
- package/dist/esm/components/SectionContentList/index.d.ts +1 -0
- package/dist/esm/components/SectionContentList/index.js +1 -0
- package/dist/esm/components/SectionContentList/styles.module.css +49 -0
- package/dist/esm/components/SectionContentTabs/SectionContentTabs.d.ts +36 -0
- package/dist/esm/components/SectionContentTabs/SectionContentTabs.js +37 -0
- package/dist/esm/components/SectionContentTabs/index.d.ts +1 -0
- package/dist/esm/components/SectionContentTabs/index.js +1 -0
- package/dist/esm/components/SectionContentTabs/styles.module.css +76 -0
- package/dist/esm/components/SectionExpertsCarousel/SectionExpertsCarousel.d.ts +4 -0
- package/dist/esm/components/SectionExpertsCarousel/SectionExpertsCarousel.js +18 -0
- package/dist/esm/components/SectionExpertsCarousel/constants.d.ts +2 -0
- package/dist/esm/components/SectionExpertsCarousel/constants.js +2 -0
- package/dist/esm/components/SectionExpertsCarousel/index.d.ts +1 -0
- package/dist/esm/components/SectionExpertsCarousel/index.js +1 -0
- package/dist/esm/components/SectionExpertsCarousel/types.d.ts +6 -0
- package/dist/esm/components/SectionExpertsCarousel/types.js +1 -0
- package/dist/esm/components/SectionLeading/SectionLeading.d.ts +15 -0
- package/dist/esm/components/SectionLeading/SectionLeading.js +51 -0
- package/dist/esm/components/SectionLeading/index.d.ts +1 -0
- package/dist/esm/components/SectionLeading/index.js +1 -0
- package/dist/esm/components/SectionLeading/styles.module.css +23 -0
- package/dist/esm/components/SectionLeading/utils.d.ts +1 -0
- package/dist/esm/components/SectionLeading/utils.js +9 -0
- package/dist/esm/components/SectionMarketplaceCarousel/SectionMarketplaceCarousel.d.ts +4 -0
- package/dist/esm/components/SectionMarketplaceCarousel/SectionMarketplaceCarousel.js +21 -0
- package/dist/esm/components/SectionMarketplaceCarousel/index.d.ts +1 -0
- package/dist/esm/components/SectionMarketplaceCarousel/index.js +1 -0
- package/dist/esm/components/SectionMarketplaceCarousel/utils.d.ts +3 -0
- package/dist/esm/components/SectionMarketplaceCarousel/utils.js +25 -0
- package/dist/esm/components/SectionMedia/SectionMedia.d.ts +5 -0
- package/dist/esm/components/SectionMedia/SectionMedia.js +20 -0
- package/dist/esm/components/SectionMedia/index.d.ts +1 -0
- package/dist/esm/components/SectionMedia/index.js +1 -0
- package/dist/esm/components/SectionMedia/styles.module.css +10 -0
- package/dist/esm/components/SectionPersonalManager/SectionPersonalManager.d.ts +24 -0
- package/dist/esm/components/SectionPersonalManager/SectionPersonalManager.js +47 -0
- package/dist/esm/components/SectionPersonalManager/index.d.ts +1 -0
- package/dist/esm/components/SectionPersonalManager/index.js +1 -0
- package/dist/esm/components/SectionPersonalManager/styles.module.css +122 -0
- package/dist/esm/components/SectionPersonalManager/utils.d.ts +3 -0
- package/dist/esm/components/SectionPersonalManager/utils.js +11 -0
- package/dist/esm/components/SectionPromoList/SectionPromoList.d.ts +19 -0
- package/dist/esm/components/SectionPromoList/SectionPromoList.js +21 -0
- package/dist/esm/components/SectionPromoList/index.d.ts +1 -0
- package/dist/esm/components/SectionPromoList/index.js +1 -0
- package/dist/esm/components/SectionPromoList/styles.module.css +43 -0
- package/dist/esm/components/SectionSocial/SectionSocial.d.ts +19 -0
- package/dist/esm/components/SectionSocial/SectionSocial.js +27 -0
- package/dist/esm/components/SectionSocial/constants.d.ts +14 -0
- package/dist/esm/components/SectionSocial/constants.js +5 -0
- package/dist/esm/components/SectionSocial/index.d.ts +1 -0
- package/dist/esm/components/SectionSocial/index.js +1 -0
- package/dist/esm/components/SectionSocial/styles.module.css +4 -0
- package/dist/esm/components/SectionTable/SectionTable.d.ts +15 -0
- package/dist/esm/components/SectionTable/SectionTable.js +22 -0
- package/dist/esm/components/SectionTable/index.d.ts +1 -0
- package/dist/esm/components/SectionTable/index.js +1 -0
- package/dist/esm/components/SectionTable/styles.module.css +25 -0
- package/dist/esm/components/index.d.ts +19 -0
- package/dist/esm/components/index.js +19 -0
- package/dist/esm/constants.d.ts +4 -0
- package/dist/esm/constants.js +4 -0
- package/dist/esm/helperComponents/BenefitItem/BenefitItem.d.ts +8 -0
- package/dist/esm/helperComponents/BenefitItem/BenefitItem.js +9 -0
- package/dist/esm/helperComponents/BenefitItem/index.d.ts +1 -0
- package/dist/esm/helperComponents/BenefitItem/index.js +1 -0
- package/dist/esm/helperComponents/BenefitItem/styles.module.css +27 -0
- package/dist/esm/helperComponents/BenefitItem/utils.d.ts +4 -0
- package/dist/esm/helperComponents/BenefitItem/utils.js +22 -0
- package/dist/esm/helperComponents/CardClient/CardClient.d.ts +5 -0
- package/dist/esm/helperComponents/CardClient/CardClient.js +5 -0
- package/dist/esm/helperComponents/CardClient/index.d.ts +1 -0
- package/dist/esm/helperComponents/CardClient/index.js +1 -0
- package/dist/esm/helperComponents/CardClient/styles.module.css +24 -0
- package/dist/esm/helperComponents/CardLeading/CardLeading.d.ts +4 -0
- package/dist/esm/helperComponents/CardLeading/CardLeading.js +20 -0
- package/dist/esm/helperComponents/CardLeading/index.d.ts +2 -0
- package/dist/esm/helperComponents/CardLeading/index.js +2 -0
- package/dist/esm/helperComponents/CardLeading/styles.module.css +36 -0
- package/dist/esm/helperComponents/CardLeading/types.d.ts +11 -0
- package/dist/esm/helperComponents/CardLeading/types.js +1 -0
- package/dist/esm/helperComponents/CardLeading/utils.d.ts +4 -0
- package/dist/esm/helperComponents/CardLeading/utils.js +22 -0
- package/dist/esm/helperComponents/CardSocial/CardSocial.d.ts +25 -0
- package/dist/esm/helperComponents/CardSocial/CardSocial.js +28 -0
- package/dist/esm/helperComponents/CardSocial/index.d.ts +1 -0
- package/dist/esm/helperComponents/CardSocial/index.js +1 -0
- package/dist/esm/helperComponents/CardSocial/styles.module.css +42 -0
- package/dist/esm/helperComponents/CardSocial/utils.d.ts +3 -0
- package/dist/esm/helperComponents/CardSocial/utils.js +9 -0
- package/dist/esm/helperComponents/Expert/Expert.d.ts +5 -0
- package/dist/esm/helperComponents/Expert/Expert.js +7 -0
- package/dist/esm/helperComponents/Expert/index.d.ts +1 -0
- package/dist/esm/helperComponents/Expert/index.js +1 -0
- package/dist/esm/helperComponents/Expert/styles.module.css +38 -0
- package/dist/esm/helperComponents/PromoList/PromoList.d.ts +6 -0
- package/dist/esm/helperComponents/PromoList/PromoList.js +7 -0
- package/dist/esm/helperComponents/PromoList/index.d.ts +1 -0
- package/dist/esm/helperComponents/PromoList/index.js +1 -0
- package/dist/esm/helperComponents/PromoList/styles.module.css +53 -0
- package/dist/esm/helperComponents/SectionButton/SectionButton.d.ts +2 -0
- package/dist/esm/helperComponents/SectionButton/SectionButton.js +25 -0
- package/dist/esm/helperComponents/SectionButton/index.d.ts +1 -0
- package/dist/esm/helperComponents/SectionButton/index.js +1 -0
- package/dist/esm/helperComponents/SectionButton/types.d.ts +8 -0
- package/dist/esm/helperComponents/SectionButton/types.js +1 -0
- package/dist/esm/helperComponents/SectionCarousel/SectionCarousel.d.ts +2 -0
- package/dist/esm/helperComponents/SectionCarousel/SectionCarousel.js +55 -0
- package/dist/esm/helperComponents/SectionCarousel/index.d.ts +2 -0
- package/dist/esm/helperComponents/SectionCarousel/index.js +1 -0
- package/dist/esm/helperComponents/SectionCarousel/styles.module.css +5 -0
- package/dist/esm/helperComponents/SectionCarousel/types.d.ts +32 -0
- package/dist/esm/helperComponents/SectionCarousel/types.js +1 -0
- package/dist/esm/helperComponents/SectionCarousel/utils.d.ts +6 -0
- package/dist/esm/helperComponents/SectionCarousel/utils.js +4 -0
- package/dist/esm/helperComponents/SectionCatalogFooter/SectionCatalogFooter.d.ts +12 -0
- package/dist/esm/helperComponents/SectionCatalogFooter/SectionCatalogFooter.js +10 -0
- package/dist/esm/helperComponents/SectionCatalogFooter/index.d.ts +1 -0
- package/dist/esm/helperComponents/SectionCatalogFooter/index.js +1 -0
- package/dist/esm/helperComponents/SectionCatalogFooter/styles.module.css +8 -0
- package/dist/esm/helperComponents/SectionTitle/SectionTitle.d.ts +22 -0
- package/dist/esm/helperComponents/SectionTitle/SectionTitle.js +11 -0
- package/dist/esm/helperComponents/SectionTitle/constants.d.ts +5 -0
- package/dist/esm/helperComponents/SectionTitle/constants.js +5 -0
- package/dist/esm/helperComponents/SectionTitle/index.d.ts +1 -0
- package/dist/esm/helperComponents/SectionTitle/index.js +1 -0
- package/dist/esm/helperComponents/SectionTitle/styles.module.css +31 -0
- package/dist/esm/helperComponents/SectionTitle/types.d.ts +5 -0
- package/dist/esm/helperComponents/SectionTitle/types.js +1 -0
- package/dist/esm/helperComponents/SectionTitle/utils.d.ts +8 -0
- package/dist/esm/helperComponents/SectionTitle/utils.js +63 -0
- package/dist/esm/helperComponents/index.d.ts +10 -0
- package/dist/esm/helperComponents/index.js +10 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/types.d.ts +19 -0
- package/dist/esm/types.js +1 -0
- package/package.json +13 -12
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { ButtonFilledProps } from '@snack-uikit/button';
|
|
3
|
+
import { SectionTitleProps } from '../../helperComponents';
|
|
4
|
+
import { MediaContentProps, SectionColor } from '../../types';
|
|
5
|
+
export type SectionContentProps = WithSupportProps<WithLayoutType<{
|
|
6
|
+
/** id секции */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** CSS-класс */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Заголовок */
|
|
11
|
+
title?: string;
|
|
12
|
+
/** Описание */
|
|
13
|
+
description?: string;
|
|
14
|
+
/** Кнопка действия */
|
|
15
|
+
button?: Omit<ButtonFilledProps, 'fullWidth' | 'size'>;
|
|
16
|
+
/** Цвет фона */
|
|
17
|
+
backgroundColor?: SectionColor;
|
|
18
|
+
/** Местоположение контента в секции */
|
|
19
|
+
contentPosition: 'left' | 'right';
|
|
20
|
+
} & MediaContentProps & Pick<SectionTitleProps, 'titleTag'>>>;
|
|
21
|
+
export declare function SectionContent({ id, title, description, button, className, layoutType, backgroundColor, contentPosition, image, video, onPlay, titleTag, 'data-test-id': dataTestId, ...rest }: SectionContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import cn from 'classnames';
|
|
14
|
+
import { Layout } from '@sbercloud/uikit-product-site-layout';
|
|
15
|
+
import { SiteVideo } from '@sbercloud/uikit-product-site-media';
|
|
16
|
+
import { extractSupportProps } from '@sbercloud/uikit-product-utils';
|
|
17
|
+
import { ButtonFilled } from '@snack-uikit/button';
|
|
18
|
+
import { SECTION_COLORS } from '../../constants';
|
|
19
|
+
import { SectionTitle } from '../../helperComponents';
|
|
20
|
+
import styles from './styles.module.css';
|
|
21
|
+
export function SectionContent(_a) {
|
|
22
|
+
var { id, title, description, button, className, layoutType, backgroundColor = SECTION_COLORS.NeutralBackground1Level, contentPosition = 'left', image, video, onPlay, titleTag, 'data-test-id': dataTestId = 'section-content' } = _a, rest = __rest(_a, ["id", "title", "description", "button", "className", "layoutType", "backgroundColor", "contentPosition", "image", "video", "onPlay", "titleTag", 'data-test-id']);
|
|
23
|
+
const isDesktop = ['desktop', 'desktopSmall'].includes(layoutType);
|
|
24
|
+
return (_jsx(Layout.SectionWrapper, Object.assign({ id: id, layoutType: layoutType, className: cn(className, styles.wrapper), "data-section-background": backgroundColor, "data-test-id": dataTestId }, extractSupportProps(rest), { children: _jsxs("div", { className: styles.sectionContent, "data-layout-type": layoutType, "data-content-position": contentPosition, children: [Boolean(title || description || button) && (_jsxs("div", { className: styles.content, children: [Boolean(title || description) && (_jsx(SectionTitle, { layoutType: layoutType, title: title, description: description, titleSectionSize: 'm', titleTag: titleTag })), Boolean(button) && (_jsx(ButtonFilled, Object.assign({}, button, { fullWidth: !isDesktop, size: 'l', "data-test-id": `${dataTestId}__button` })))] })), _jsxs("div", { className: styles.mediaWrapper, children: [image && (_jsx("img", { className: styles.image, src: image.src, alt: image.alt || title || 'section-content-image', "data-test-id": `${dataTestId}__image` })), video && (_jsx(SiteVideo, { video: video, onPlay: onPlay, layoutType: layoutType, "data-test-id": `${dataTestId}__video` }))] })] }) })));
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionContent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionContent';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.wrapper[data-section-background=neutral-background1-level]{
|
|
2
|
+
background-color:var(--sys-neutral-background1-level, #fdfdfd);
|
|
3
|
+
}
|
|
4
|
+
.wrapper[data-section-background=neutral-background]{
|
|
5
|
+
background-color:var(--sys-neutral-background, #eeeff3);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.sectionContent{
|
|
9
|
+
display:flex;
|
|
10
|
+
flex-direction:row;
|
|
11
|
+
align-items:flex-start;
|
|
12
|
+
gap:var(--dimension-4m, 32px);
|
|
13
|
+
padding:var(--dimension-7m, 56px) 0;
|
|
14
|
+
}
|
|
15
|
+
.sectionContent[data-content-position=right]{
|
|
16
|
+
flex-direction:row-reverse;
|
|
17
|
+
}
|
|
18
|
+
.sectionContent[data-layout-type=tablet]{
|
|
19
|
+
flex-direction:column;
|
|
20
|
+
padding:var(--dimension-5m, 40px) 0;
|
|
21
|
+
align-items:center;
|
|
22
|
+
}
|
|
23
|
+
.sectionContent[data-layout-type=mobile]{
|
|
24
|
+
gap:var(--dimension-3m, 24px);
|
|
25
|
+
padding:var(--dimension-4m, 32px) 0;
|
|
26
|
+
flex-direction:column;
|
|
27
|
+
align-items:center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.content{
|
|
31
|
+
display:flex;
|
|
32
|
+
flex-direction:column;
|
|
33
|
+
gap:var(--dimension-4m, 32px);
|
|
34
|
+
width:384px;
|
|
35
|
+
flex-shrink:0;
|
|
36
|
+
}
|
|
37
|
+
[data-layout-type=tablet] .content, [data-layout-type=mobile] .content{
|
|
38
|
+
width:100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.mediaWrapper{
|
|
42
|
+
flex-grow:1;
|
|
43
|
+
}
|
|
44
|
+
[data-layout-type=tablet] .mediaWrapper{
|
|
45
|
+
width:100%;
|
|
46
|
+
max-width:704px;
|
|
47
|
+
}
|
|
48
|
+
[data-layout-type=mobile] .mediaWrapper{
|
|
49
|
+
width:100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.image{
|
|
53
|
+
width:100%;
|
|
54
|
+
height:100%;
|
|
55
|
+
-o-object-fit:contain;
|
|
56
|
+
object-fit:contain;
|
|
57
|
+
-o-object-position:top left;
|
|
58
|
+
object-position:top left;
|
|
59
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { SectionTitleProps } from '../../helperComponents';
|
|
3
|
+
import { MediaContentProps, SectionColor } from '../../types';
|
|
4
|
+
import { SectionBasicProps } from '../SectionBasic';
|
|
5
|
+
type Item = {
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
} & Pick<SectionTitleProps, 'titleLink'>;
|
|
9
|
+
export type SectionContentListProps = WithSupportProps<WithLayoutType<{
|
|
10
|
+
/** id секции */
|
|
11
|
+
id?: string;
|
|
12
|
+
/** CSS-класс */
|
|
13
|
+
className?: string;
|
|
14
|
+
/** Заголовок */
|
|
15
|
+
title?: string;
|
|
16
|
+
/** Описание */
|
|
17
|
+
description?: string;
|
|
18
|
+
/** Список элементов */
|
|
19
|
+
items?: Item[];
|
|
20
|
+
/** Цвет фона */
|
|
21
|
+
backgroundColor?: SectionColor;
|
|
22
|
+
/** Местоположение контента в секции */
|
|
23
|
+
contentPosition: 'left' | 'right';
|
|
24
|
+
} & MediaContentProps & Pick<SectionBasicProps, 'titleTag'>>>;
|
|
25
|
+
export declare function SectionContentList({ id, title, description, items, className, layoutType, backgroundColor, contentPosition, image, video, onPlay, titleTag, 'data-test-id': dataTestId, ...rest }: SectionContentListProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { SiteVideo } from '@sbercloud/uikit-product-site-media';
|
|
14
|
+
import { extractSupportProps } from '@sbercloud/uikit-product-utils';
|
|
15
|
+
import { SectionTitle } from '../../helperComponents';
|
|
16
|
+
import { SectionBasic } from '../SectionBasic';
|
|
17
|
+
import styles from './styles.module.css';
|
|
18
|
+
export function SectionContentList(_a) {
|
|
19
|
+
var { id, title, description, items, className, layoutType, backgroundColor, contentPosition = 'left', image, video, onPlay, titleTag, 'data-test-id': dataTestId = 'section-content-list' } = _a, rest = __rest(_a, ["id", "title", "description", "items", "className", "layoutType", "backgroundColor", "contentPosition", "image", "video", "onPlay", "titleTag", 'data-test-id']);
|
|
20
|
+
return (_jsx(SectionBasic, Object.assign({ id: id, layoutType: layoutType, title: title, description: description, className: className, backgroundColor: backgroundColor, "data-test-id": dataTestId, titleTag: titleTag }, extractSupportProps(rest), { children: _jsxs("div", { className: styles.sectionContent, "data-layout-type": layoutType, "data-content-position": contentPosition, children: [_jsxs("div", { className: styles.mediaWrapper, children: [image && (_jsx("img", { className: styles.image, src: image.src, alt: image.alt || title || 'section-content-image', "data-test-id": `${dataTestId}__image` })), video && (_jsx(SiteVideo, { video: video, onPlay: onPlay, layoutType: layoutType, "data-test-id": `${dataTestId}__video` }))] }), items && items.length > 0 && (_jsx("ul", { className: styles.list, children: items.map((item, index) => (_jsx("li", { className: styles.item, children: _jsx(SectionTitle, { layoutType: layoutType, title: item.title, titleLink: item.titleLink, description: item.description, titleSectionSize: 's', titleTag: 'h3' }) }, `${title}__${index}`))) }))] }) })));
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionContentList';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionContentList';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.sectionContent{
|
|
2
|
+
display:flex;
|
|
3
|
+
flex-direction:row;
|
|
4
|
+
align-items:flex-start;
|
|
5
|
+
gap:var(--dimension-4m, 32px);
|
|
6
|
+
}
|
|
7
|
+
.sectionContent[data-content-position=left]{
|
|
8
|
+
flex-direction:row-reverse;
|
|
9
|
+
}
|
|
10
|
+
.sectionContent[data-layout-type=tablet]{
|
|
11
|
+
flex-direction:column;
|
|
12
|
+
}
|
|
13
|
+
.sectionContent[data-layout-type=mobile]{
|
|
14
|
+
flex-direction:column;
|
|
15
|
+
gap:var(--dimension-3m, 24px);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.mediaWrapper{
|
|
19
|
+
width:50%;
|
|
20
|
+
}
|
|
21
|
+
[data-layout-type=tablet] .mediaWrapper, [data-layout-type=mobile] .mediaWrapper{
|
|
22
|
+
width:100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.image{
|
|
26
|
+
width:100%;
|
|
27
|
+
height:100%;
|
|
28
|
+
-o-object-fit:contain;
|
|
29
|
+
object-fit:contain;
|
|
30
|
+
-o-object-position:top left;
|
|
31
|
+
object-position:top left;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.list{
|
|
35
|
+
display:flex;
|
|
36
|
+
flex-direction:column;
|
|
37
|
+
flex-grow:1;
|
|
38
|
+
margin:0;
|
|
39
|
+
padding:0;
|
|
40
|
+
gap:var(--dimension-3m, 24px);
|
|
41
|
+
width:50%;
|
|
42
|
+
}
|
|
43
|
+
[data-layout-type=tablet] .list, [data-layout-type=mobile] .list{
|
|
44
|
+
width:100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.item{
|
|
48
|
+
list-style:none;
|
|
49
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
3
|
+
import { ButtonFilledProps } from '@snack-uikit/button';
|
|
4
|
+
import { MediaContentProps, SectionColor } from '../../types';
|
|
5
|
+
import { SectionBasicProps } from '../SectionBasic';
|
|
6
|
+
type TabItem = {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
mediaTitle?: string;
|
|
10
|
+
mediaSubtitle?: string;
|
|
11
|
+
mediaDescription?: string;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
href?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
icon?: string | ReactNode;
|
|
16
|
+
} & MediaContentProps;
|
|
17
|
+
export type SectionContentTabsProps = WithSupportProps<WithLayoutType<{
|
|
18
|
+
/** id секции */
|
|
19
|
+
id?: string;
|
|
20
|
+
/** CSS-класс */
|
|
21
|
+
className?: string;
|
|
22
|
+
/** Заголовок */
|
|
23
|
+
title?: string;
|
|
24
|
+
/** Список вкладок */
|
|
25
|
+
tabs: TabItem[];
|
|
26
|
+
/** Выбранная вкладок */
|
|
27
|
+
activeTab?: string;
|
|
28
|
+
/** колбэк на смену вкладки */
|
|
29
|
+
onActiveTabChange?: () => void;
|
|
30
|
+
/** Кнопка действия */
|
|
31
|
+
button?: Omit<ButtonFilledProps, 'fullWidth' | 'size'>;
|
|
32
|
+
/** Цвет фона */
|
|
33
|
+
backgroundColor?: SectionColor;
|
|
34
|
+
} & Pick<SectionBasicProps, 'titleTag'>>>;
|
|
35
|
+
export declare function SectionContentTabs({ id, title, tabs, activeTab: activeTabProp, onActiveTabChange, button, className, layoutType, backgroundColor, titleTag, 'data-test-id': dataTestId, ...rest }: SectionContentTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import cn from 'classnames';
|
|
14
|
+
import { useUncontrolledProp } from 'uncontrollable';
|
|
15
|
+
import { SiteVideo } from '@sbercloud/uikit-product-site-media';
|
|
16
|
+
import { RichText } from '@sbercloud/uikit-product-site-rich-text';
|
|
17
|
+
import { extractSupportProps } from '@sbercloud/uikit-product-utils';
|
|
18
|
+
import { ButtonFilled } from '@snack-uikit/button';
|
|
19
|
+
import { Tabs } from '@snack-uikit/tabs';
|
|
20
|
+
import { SectionTitle } from '../../helperComponents';
|
|
21
|
+
import { SectionBasic } from '../SectionBasic';
|
|
22
|
+
import styles from './styles.module.css';
|
|
23
|
+
function TabIcon({ icon }) {
|
|
24
|
+
if (icon && typeof icon === 'string') {
|
|
25
|
+
return _jsx("img", { src: icon, alt: '', className: styles.tabIconImage });
|
|
26
|
+
}
|
|
27
|
+
return icon;
|
|
28
|
+
}
|
|
29
|
+
export function SectionContentTabs(_a) {
|
|
30
|
+
var { id, title, tabs, activeTab: activeTabProp, onActiveTabChange, button, className, layoutType, backgroundColor, titleTag, 'data-test-id': dataTestId = 'section-content-tabs' } = _a, rest = __rest(_a, ["id", "title", "tabs", "activeTab", "onActiveTabChange", "button", "className", "layoutType", "backgroundColor", "titleTag", 'data-test-id']);
|
|
31
|
+
const [activeTab, setActiveTab] = useUncontrolledProp(activeTabProp, tabs[0].id, onActiveTabChange);
|
|
32
|
+
const isDesktop = ['desktop', 'desktopSmall'].includes(layoutType);
|
|
33
|
+
return (_jsx(SectionBasic, Object.assign({ id: id, layoutType: layoutType, title: title, className: className, backgroundColor: backgroundColor, "data-test-id": dataTestId, titleTag: titleTag }, extractSupportProps(rest), { children: _jsx(Tabs, { value: activeTab, onChange: setActiveTab, children: _jsxs("div", { className: styles.sectionContent, "data-layout-type": layoutType, children: [_jsxs("div", { className: cn(styles.tabsWrapper, { [styles.desktopTabsWrapper]: isDesktop }), children: [_jsx(Tabs.TabBar, { orientation: isDesktop ? 'vertical' : 'horizontal', markerPosition: isDesktop ? 'before' : 'after', className: cn({ [styles.desktopTabs]: isDesktop }), children: tabs.map(({ id, title, disabled, icon }) => (_jsx(Tabs.Tab, { value: id,
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
label: _jsxs(_Fragment, { children: [_jsx(RichText, { richText: title }), _jsx(TabIcon, { icon: icon })] }), disabled: disabled }, id))) }), Boolean(button) && (_jsx(ButtonFilled, Object.assign({}, button, { fullWidth: !isDesktop, size: 'l', "data-test-id": `${dataTestId}__button` })))] }), tabs.map(({ id, mediaTitle, mediaSubtitle, mediaDescription, image, video, onPlay }) => (_jsxs(Tabs.TabContent, { value: id, className: styles.mediaWrapper, children: [image && (_jsx("div", { className: styles.imageWrapper, children: _jsx("img", { className: styles.image, src: image.src, alt: image.alt || title || 'section-content-image', "data-test-id": `${dataTestId}__image` }) })), video && (_jsx(SiteVideo, { video: video, onPlay: onPlay, layoutType: layoutType, "data-test-id": `${dataTestId}__video` })), (mediaTitle || mediaSubtitle) && (_jsx(SectionTitle, { titleSectionSize: 's', layoutType: layoutType, title: mediaTitle, description: mediaSubtitle })), mediaDescription && _jsx(SectionTitle, { layoutType: layoutType, description: mediaDescription })] }, id)))] }) }) })));
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionContentTabs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionContentTabs';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
.sectionContent{
|
|
2
|
+
display:flex;
|
|
3
|
+
flex-direction:row;
|
|
4
|
+
align-items:flex-start;
|
|
5
|
+
gap:var(--dimension-4m, 32px);
|
|
6
|
+
}
|
|
7
|
+
.sectionContent[data-layout-type=tablet]{
|
|
8
|
+
flex-direction:column;
|
|
9
|
+
}
|
|
10
|
+
.sectionContent[data-layout-type=mobile]{
|
|
11
|
+
flex-direction:column;
|
|
12
|
+
gap:var(--dimension-3m, 24px);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.tabsWrapper{
|
|
16
|
+
display:flex;
|
|
17
|
+
flex-direction:column;
|
|
18
|
+
gap:var(--dimension-4m, 32px);
|
|
19
|
+
width:280px;
|
|
20
|
+
flex-shrink:0;
|
|
21
|
+
}
|
|
22
|
+
[data-layout-type=tablet] .tabsWrapper, [data-layout-type=mobile] .tabsWrapper{
|
|
23
|
+
width:100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.desktopTabs button{
|
|
27
|
+
text-wrap:auto;
|
|
28
|
+
text-align:left;
|
|
29
|
+
box-sizing:border-box;
|
|
30
|
+
padding-top:12px;
|
|
31
|
+
padding-bottom:12px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.desktopTabsWrapper,
|
|
35
|
+
.desktopTabs,
|
|
36
|
+
.desktopTabs button{
|
|
37
|
+
max-width:280px;
|
|
38
|
+
flex-shrink:0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.mediaWrapper{
|
|
42
|
+
display:flex;
|
|
43
|
+
flex-direction:column;
|
|
44
|
+
flex-grow:1;
|
|
45
|
+
gap:var(--dimension-4m, 32px);
|
|
46
|
+
}
|
|
47
|
+
[data-layout-type=tablet] .mediaWrapper, [data-layout-type=mobile] .mediaWrapper{
|
|
48
|
+
width:100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.imageWrapper{
|
|
52
|
+
box-sizing:border-box;
|
|
53
|
+
position:relative;
|
|
54
|
+
width:100%;
|
|
55
|
+
height:100%;
|
|
56
|
+
display:flex;
|
|
57
|
+
padding-bottom:56.5%;
|
|
58
|
+
border:0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.image{
|
|
62
|
+
position:absolute;
|
|
63
|
+
top:0;
|
|
64
|
+
left:0;
|
|
65
|
+
height:100%;
|
|
66
|
+
width:100%;
|
|
67
|
+
border:0;
|
|
68
|
+
background-color:var(--sys-neutral-background, #eeeff3);
|
|
69
|
+
-o-object-fit:contain;
|
|
70
|
+
object-fit:contain;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tabIconImage{
|
|
74
|
+
width:20px;
|
|
75
|
+
height:20px;
|
|
76
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LimitedSectionCarouselProps } from '../../helperComponents';
|
|
2
|
+
import { ExpertDetails } from './types';
|
|
3
|
+
export type SectionExpertsCarouselProps = Omit<LimitedSectionCarouselProps<ExpertDetails>, 'description' | 'gap' | 'titleLink'>;
|
|
4
|
+
export declare function SectionExpertsCarousel({ items, ...props }: SectionExpertsCarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { Expert, SectionCarousel } from '../../helperComponents';
|
|
14
|
+
import { EXPERT_MINIMAL_WIDTH, MAX_PER_PAGE } from './constants';
|
|
15
|
+
export function SectionExpertsCarousel(_a) {
|
|
16
|
+
var { items } = _a, props = __rest(_a, ["items"]);
|
|
17
|
+
return (_jsx(SectionCarousel, Object.assign({}, props, { itemMinWidth: EXPERT_MINIMAL_WIDTH, maxItemsPerPage: MAX_PER_PAGE, children: items.map(item => (_jsx(Expert, Object.assign({}, item), item.name))) })));
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionExpertsCarousel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionExpertsCarousel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { CarouselProps } from '@snack-uikit/carousel';
|
|
3
|
+
import { CardLeadingItem } from '../../helperComponents';
|
|
4
|
+
import { SectionBasicProps } from '../SectionBasic';
|
|
5
|
+
export type SectionLeadingProps = WithSupportProps<WithLayoutType<Pick<SectionBasicProps, 'title' | 'description' | 'titleSectionSize' | 'titleTag' | 'backgroundColor'> & Pick<CarouselProps, 'autoSwipe'> & {
|
|
6
|
+
/** id секции */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** Массив айтемов */
|
|
9
|
+
items: CardLeadingItem[];
|
|
10
|
+
/** Описание секции */
|
|
11
|
+
footerDescription?: string;
|
|
12
|
+
/** CSS - класснейм */
|
|
13
|
+
className?: string;
|
|
14
|
+
}>>;
|
|
15
|
+
export declare function SectionLeading({ id, title, description, titleSectionSize, titleTag, items, footerDescription, backgroundColor, className, layoutType, autoSwipe, ...rest }: SectionLeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import debounce from 'lodash.debounce';
|
|
14
|
+
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
15
|
+
import { extractSupportProps } from '@sbercloud/uikit-product-utils';
|
|
16
|
+
import { Carousel } from '@snack-uikit/carousel';
|
|
17
|
+
import { Typography } from '@snack-uikit/typography';
|
|
18
|
+
import { CardLeading } from '../../helperComponents';
|
|
19
|
+
import { SectionBasic } from '../SectionBasic';
|
|
20
|
+
import styles from './styles.module.css';
|
|
21
|
+
import { calculateAmountOfItemsPerPage } from './utils';
|
|
22
|
+
const MOBILE_LAYOUTS = ['tablet', 'mobile'];
|
|
23
|
+
export function SectionLeading(_a) {
|
|
24
|
+
var { id, title, description, titleSectionSize = 'm', titleTag, items, footerDescription, backgroundColor, className, layoutType, autoSwipe = 9 } = _a, rest = __rest(_a, ["id", "title", "description", "titleSectionSize", "titleTag", "items", "footerDescription", "backgroundColor", "className", "layoutType", "autoSwipe"]);
|
|
25
|
+
const [currentPage, setCurrentPage] = useState(0);
|
|
26
|
+
const [itemsPerPageAmount, setItemsPerPageAmount] = useState(0);
|
|
27
|
+
const wrapperRef = useRef(null);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
const node = wrapperRef.current;
|
|
30
|
+
if (!node) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const calculateAmountOfItems = () => {
|
|
34
|
+
const wrapperWidth = node.offsetWidth;
|
|
35
|
+
if (!wrapperWidth) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
setItemsPerPageAmount(calculateAmountOfItemsPerPage(wrapperWidth));
|
|
39
|
+
};
|
|
40
|
+
const observer = new ResizeObserver(debounce(calculateAmountOfItems, 100));
|
|
41
|
+
observer.observe(node);
|
|
42
|
+
return () => observer.disconnect();
|
|
43
|
+
}, []);
|
|
44
|
+
const showArrows = useMemo(() => {
|
|
45
|
+
if (MOBILE_LAYOUTS.includes(layoutType)) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
return items.length > itemsPerPageAmount;
|
|
49
|
+
}, [items.length, itemsPerPageAmount, layoutType]);
|
|
50
|
+
return (_jsx(SectionBasic, Object.assign({ id: id, layoutType: layoutType, className: className, backgroundColor: backgroundColor, title: title, description: description, titleSectionSize: titleSectionSize, titleTag: titleTag }, extractSupportProps(rest), { children: _jsxs("div", { ref: wrapperRef, className: styles.leadingSection, "data-layout-type": layoutType, children: [itemsPerPageAmount > 0 && (_jsx(Carousel, { state: { page: currentPage, onChange: setCurrentPage }, arrows: showArrows, controlsVisibility: 'always', showItems: itemsPerPageAmount, pagination: items.length > itemsPerPageAmount, swipe: items.length > itemsPerPageAmount, autoSwipe: autoSwipe, infiniteScroll: true, children: items.map(item => (_jsx(CardLeading, Object.assign({}, item, { layoutType: layoutType, "data-test-id": item['data-test-id'] }), item.label))) })), footerDescription && (_jsx("div", { className: styles.footerDescription, "data-layout-type": layoutType, children: _jsx(Typography.SansBodyL, { className: styles.footerDescriptionText, children: footerDescription }) }))] }) })));
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionLeading';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionLeading';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.leadingSection{
|
|
2
|
+
width:100%;
|
|
3
|
+
display:flex;
|
|
4
|
+
flex-direction:column;
|
|
5
|
+
gap:var(--dimension-5m, 40px) 0;
|
|
6
|
+
}
|
|
7
|
+
.leadingSection[data-layout-type=tablet]{
|
|
8
|
+
gap:var(--dimension-4m, 32px) 0;
|
|
9
|
+
}
|
|
10
|
+
.leadingSection[data-layout-type=mobile]{
|
|
11
|
+
gap:var(--dimension-3m, 24px) 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.footerDescription{
|
|
15
|
+
max-width:704px;
|
|
16
|
+
}
|
|
17
|
+
.footerDescription[data-layout-type=tablet], .footerDescription[data-layout-type=mobile]{
|
|
18
|
+
max-width:unset;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.footerDescriptionText{
|
|
22
|
+
color:var(--sys-neutral-text-support, #6d707f);
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const calculateAmountOfItemsPerPage: (wrapperWidth: number) => number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const CARD_LEADING_MINIMAL_WIDTH = 328;
|
|
2
|
+
const MAX_PER_PAGE = 3;
|
|
3
|
+
export const calculateAmountOfItemsPerPage = (wrapperWidth) => {
|
|
4
|
+
const amount = Math.floor(wrapperWidth / CARD_LEADING_MINIMAL_WIDTH);
|
|
5
|
+
if (amount < 1) {
|
|
6
|
+
return 1;
|
|
7
|
+
}
|
|
8
|
+
return amount > MAX_PER_PAGE ? MAX_PER_PAGE : amount;
|
|
9
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CardMarketplaceProps } from '@sbercloud/uikit-product-site-cards';
|
|
2
|
+
import { LimitedSectionCarouselProps } from '../../helperComponents';
|
|
3
|
+
export type SectionMarketplaceCarouselProps = Omit<LimitedSectionCarouselProps<CardMarketplaceProps>, 'gap' | 'titleLink'>;
|
|
4
|
+
export declare function SectionMarketplaceCarousel({ items, ...props }: SectionMarketplaceCarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { useMemo } from 'react';
|
|
14
|
+
import { CardMarketplace } from '@sbercloud/uikit-product-site-cards';
|
|
15
|
+
import { SectionCarousel } from '../../helperComponents';
|
|
16
|
+
import { getCarouselProps } from './utils';
|
|
17
|
+
export function SectionMarketplaceCarousel(_a) {
|
|
18
|
+
var { items } = _a, props = __rest(_a, ["items"]);
|
|
19
|
+
const carouselProps = useMemo(() => getCarouselProps(props.layoutType), [props]);
|
|
20
|
+
return (_jsx(SectionCarousel, Object.assign({}, props, carouselProps, { children: items.map(item => (_jsx(CardMarketplace, Object.assign({}, item), item.title))) })));
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionMarketplaceCarousel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionMarketplaceCarousel';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { themeVars } from '@sbercloud/figma-tokens-cloud-platform';
|
|
2
|
+
export const getCarouselProps = (layoutType) => {
|
|
3
|
+
switch (layoutType) {
|
|
4
|
+
case 'mobile':
|
|
5
|
+
return {
|
|
6
|
+
itemMinWidth: 270,
|
|
7
|
+
maxItemsPerPage: 1,
|
|
8
|
+
gap: themeVars.dimension['2m'],
|
|
9
|
+
};
|
|
10
|
+
case 'tablet':
|
|
11
|
+
return {
|
|
12
|
+
itemMinWidth: 270,
|
|
13
|
+
maxItemsPerPage: 2,
|
|
14
|
+
gap: themeVars.dimension['2m'],
|
|
15
|
+
};
|
|
16
|
+
case 'desktop':
|
|
17
|
+
case 'desktopSmall':
|
|
18
|
+
default:
|
|
19
|
+
return {
|
|
20
|
+
itemMinWidth: 380,
|
|
21
|
+
maxItemsPerPage: 3,
|
|
22
|
+
gap: themeVars.dimension['3m'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { MediaContentProps } from '../../types';
|
|
3
|
+
import { SectionBasicProps } from '../SectionBasic';
|
|
4
|
+
export type SectionMediaProps = WithLayoutType<WithSupportProps<Pick<SectionBasicProps, 'id' | 'title' | 'titleTag' | 'description'> & MediaContentProps>>;
|
|
5
|
+
export declare function SectionMedia({ id, title, titleTag, layoutType, description, video, onPlay, onError, image, 'data-test-id': dataTestId, ...rest }: SectionMediaProps): import("react/jsx-runtime").JSX.Element;
|