@cloud-ru/uikit-product-site-section 0.23.3 → 0.23.4
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 +11 -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,31 @@
|
|
|
1
|
+
.sectionTitle,
|
|
2
|
+
.titlesWrapper{
|
|
3
|
+
display:flex;
|
|
4
|
+
gap:var(--dimension-1m, 8px);
|
|
5
|
+
text-align:left;
|
|
6
|
+
}
|
|
7
|
+
.sectionTitle[data-align=center],
|
|
8
|
+
.titlesWrapper[data-align=center]{
|
|
9
|
+
text-align:center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sectionTitle{
|
|
13
|
+
flex-direction:column;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.titlesWrapper{
|
|
17
|
+
flex-direction:column-reverse;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.title{
|
|
21
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
22
|
+
white-space:pre-line;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.subtitle{
|
|
26
|
+
color:var(--sys-neutral-text-light, #8b8e9b);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.description{
|
|
30
|
+
color:var(--sys-neutral-text-support, #6d707f);
|
|
31
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WithLayoutType } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { TypographyProps } from '@snack-uikit/typography';
|
|
3
|
+
import { Size } from './types';
|
|
4
|
+
type Props = WithLayoutType<{
|
|
5
|
+
titleSectionSize: Size;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const getTitleTypographyProps: ({ layoutType, titleSectionSize, }: Props) => Pick<TypographyProps, "size" | "purpose">;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTitleTypographyProps = void 0;
|
|
4
|
+
const getTitleTypographyProps = ({ layoutType, titleSectionSize, }) => {
|
|
5
|
+
switch (layoutType) {
|
|
6
|
+
case 'tablet':
|
|
7
|
+
switch (titleSectionSize) {
|
|
8
|
+
case 'l':
|
|
9
|
+
return {
|
|
10
|
+
purpose: 'headline',
|
|
11
|
+
size: 'l',
|
|
12
|
+
};
|
|
13
|
+
case 's':
|
|
14
|
+
return {
|
|
15
|
+
purpose: 'title',
|
|
16
|
+
size: 'l',
|
|
17
|
+
};
|
|
18
|
+
case 'm':
|
|
19
|
+
default:
|
|
20
|
+
return {
|
|
21
|
+
purpose: 'headline',
|
|
22
|
+
size: 'm',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
case 'mobile':
|
|
26
|
+
switch (titleSectionSize) {
|
|
27
|
+
case 'l':
|
|
28
|
+
return {
|
|
29
|
+
purpose: 'headline',
|
|
30
|
+
size: 'm',
|
|
31
|
+
};
|
|
32
|
+
case 's':
|
|
33
|
+
return {
|
|
34
|
+
purpose: 'title',
|
|
35
|
+
size: 'm',
|
|
36
|
+
};
|
|
37
|
+
case 'm':
|
|
38
|
+
default:
|
|
39
|
+
return {
|
|
40
|
+
purpose: 'headline',
|
|
41
|
+
size: 's',
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
case 'desktop':
|
|
45
|
+
case 'desktopSmall':
|
|
46
|
+
default:
|
|
47
|
+
switch (titleSectionSize) {
|
|
48
|
+
case 'l':
|
|
49
|
+
return {
|
|
50
|
+
purpose: 'display',
|
|
51
|
+
size: 'm',
|
|
52
|
+
};
|
|
53
|
+
case 's':
|
|
54
|
+
return {
|
|
55
|
+
purpose: 'headline',
|
|
56
|
+
size: 's',
|
|
57
|
+
};
|
|
58
|
+
case 'm':
|
|
59
|
+
default:
|
|
60
|
+
return {
|
|
61
|
+
purpose: 'headline',
|
|
62
|
+
size: 'l',
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
exports.getTitleTypographyProps = getTitleTypographyProps;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './CardLeading';
|
|
2
|
+
export * from './CardSocial';
|
|
3
|
+
export * from './Expert';
|
|
4
|
+
export * from './PromoList';
|
|
5
|
+
export * from './SectionCatalogFooter';
|
|
6
|
+
export * from './SectionTitle';
|
|
7
|
+
export * from './SectionCarousel';
|
|
8
|
+
export * from './CardClient';
|
|
9
|
+
export * from './BenefitItem';
|
|
10
|
+
export * from './SectionButton';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CardLeading"), exports);
|
|
18
|
+
__exportStar(require("./CardSocial"), exports);
|
|
19
|
+
__exportStar(require("./Expert"), exports);
|
|
20
|
+
__exportStar(require("./PromoList"), exports);
|
|
21
|
+
__exportStar(require("./SectionCatalogFooter"), exports);
|
|
22
|
+
__exportStar(require("./SectionTitle"), exports);
|
|
23
|
+
__exportStar(require("./SectionCarousel"), exports);
|
|
24
|
+
__exportStar(require("./CardClient"), exports);
|
|
25
|
+
__exportStar(require("./BenefitItem"), exports);
|
|
26
|
+
__exportStar(require("./SectionButton"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./components"), exports);
|
|
18
|
+
__exportStar(require("./helperComponents/SectionCarousel"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SiteVideoProps } from '@sbercloud/uikit-product-site-media';
|
|
2
|
+
import { ValueOf } from '@snack-uikit/utils';
|
|
3
|
+
import { SECTION_COLORS } from './constants';
|
|
4
|
+
export type SectionColor = ValueOf<typeof SECTION_COLORS>;
|
|
5
|
+
type MediaVideoProps = Pick<SiteVideoProps, 'video' | 'onPlay' | 'onError'> & {
|
|
6
|
+
image?: never;
|
|
7
|
+
};
|
|
8
|
+
type MediaImageProps = {
|
|
9
|
+
video?: never;
|
|
10
|
+
onPlay?: never;
|
|
11
|
+
onError?: never;
|
|
12
|
+
/** Ссылка на изображение */
|
|
13
|
+
image: {
|
|
14
|
+
src: string;
|
|
15
|
+
alt?: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type MediaContentProps = MediaImageProps | MediaVideoProps;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { SectionColor } from '../../types';
|
|
3
|
+
import { AccordionItem } from './types';
|
|
4
|
+
type AccordionPropsCopy = {
|
|
5
|
+
selectionMode: 'single';
|
|
6
|
+
expandedDefault?: string;
|
|
7
|
+
onExpandedChange?(value?: string): void;
|
|
8
|
+
} | {
|
|
9
|
+
selectionMode: 'multiple';
|
|
10
|
+
expandedDefault?: string[];
|
|
11
|
+
onExpandedChange?(value?: string[]): void;
|
|
12
|
+
};
|
|
13
|
+
export type SectionAccordionProps = WithSupportProps<AccordionPropsCopy & WithLayoutType<{
|
|
14
|
+
/** id секции */
|
|
15
|
+
id?: string;
|
|
16
|
+
/** Название секции */
|
|
17
|
+
title: string;
|
|
18
|
+
/** Массив айтемов */
|
|
19
|
+
items: AccordionItem[];
|
|
20
|
+
/** Цвет фона */
|
|
21
|
+
backgroundColor?: SectionColor;
|
|
22
|
+
/** Внешний бордер для блоков */
|
|
23
|
+
outline?: boolean;
|
|
24
|
+
/** CSS-класс */
|
|
25
|
+
className?: string;
|
|
26
|
+
}>>;
|
|
27
|
+
export declare function SectionAccordion({ id, title, items, selectionMode, layoutType, backgroundColor, outline, onExpandedChange, expandedDefault, className, ...rest }: SectionAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { RichText } from '@sbercloud/uikit-product-site-rich-text';
|
|
14
|
+
import { extractSupportProps } from '@sbercloud/uikit-product-utils';
|
|
15
|
+
import { AccordionPrimary } from '@snack-uikit/accordion';
|
|
16
|
+
import { Typography } from '@snack-uikit/typography';
|
|
17
|
+
import { SectionBasic } from '../SectionBasic';
|
|
18
|
+
import styles from './styles.module.css';
|
|
19
|
+
import { getBlockDescriptionSize, getBlockTitleProps } from './utils';
|
|
20
|
+
export function SectionAccordion(_a) {
|
|
21
|
+
var { id, title, items, selectionMode = 'multiple', layoutType, backgroundColor, outline, onExpandedChange, expandedDefault, className } = _a, rest = __rest(_a, ["id", "title", "items", "selectionMode", "layoutType", "backgroundColor", "outline", "onExpandedChange", "expandedDefault", "className"]);
|
|
22
|
+
return (_jsx(SectionBasic, Object.assign({ id: id, title: title, layoutType: layoutType, backgroundColor: backgroundColor }, extractSupportProps(rest), { children: _jsx(AccordionPrimary, { selectionMode: selectionMode, expandedDefault: expandedDefault, onExpandedChange: onExpandedChange, className: styles.accordion, children: items.map(({ title, description, onClick }, index) => (_jsx(AccordionPrimary.CollapseBlock, { id: index.toString(), header: _jsx(Typography, Object.assign({ family: 'sans' }, getBlockTitleProps(layoutType), { className: styles.title, children: _jsx(RichText, { richText: title }) })), className: className, removeContentFromDOM: false, outline: outline, onClick: onClick, children: _jsx(Typography, { family: 'sans', purpose: 'body', tag: 'div', size: getBlockDescriptionSize(layoutType), className: styles.description, children: _jsx(RichText, { richText: description }) }) }, index))) }) })));
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionAccordion';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionAccordion';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CollapseBlockPrimaryProps } from '@snack-uikit/accordion';
|
|
3
|
+
/** Элемент аккордиона */
|
|
4
|
+
export type AccordionItem = Pick<CollapseBlockPrimaryProps, 'onClick'> & {
|
|
5
|
+
/** Заголовок блока */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Описание блока (rich text) */
|
|
8
|
+
description: string | ReactNode;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LayoutType } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { TypographyProps } from '@snack-uikit/typography';
|
|
3
|
+
export declare const getBlockTitleProps: (layoutType: LayoutType) => Pick<TypographyProps, "purpose" | "size">;
|
|
4
|
+
export declare const getBlockDescriptionSize: (layoutType: LayoutType) => TypographyProps["size"];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const getBlockTitleProps = (layoutType) => {
|
|
2
|
+
switch (layoutType) {
|
|
3
|
+
case 'tablet':
|
|
4
|
+
case 'mobile':
|
|
5
|
+
return {
|
|
6
|
+
purpose: 'title',
|
|
7
|
+
size: 'm',
|
|
8
|
+
};
|
|
9
|
+
default:
|
|
10
|
+
return {
|
|
11
|
+
purpose: 'headline',
|
|
12
|
+
size: 's',
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export const getBlockDescriptionSize = (layoutType) => {
|
|
17
|
+
switch (layoutType) {
|
|
18
|
+
case 'tablet':
|
|
19
|
+
case 'mobile':
|
|
20
|
+
return 'm';
|
|
21
|
+
default:
|
|
22
|
+
return 'l';
|
|
23
|
+
}
|
|
24
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MouseEvent, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { FieldSelectProps } from '@sbercloud/uikit-product-mobile-fields';
|
|
3
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
4
|
+
import { PaginationProps } from '@snack-uikit/pagination';
|
|
5
|
+
import { SectionTitleProps } from '../../helperComponents';
|
|
6
|
+
import { SectionColor } from '../../types';
|
|
7
|
+
type TabBarItem = WithSupportProps<{
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
counter?: number;
|
|
13
|
+
onClick?(event: MouseEvent<HTMLButtonElement>): void;
|
|
14
|
+
}>;
|
|
15
|
+
export type SectionBasicProps = WithLayoutType<WithSupportProps<Pick<SectionTitleProps, 'title' | 'subtitle' | 'description' | 'titleSectionSize' | 'titleTag' | 'subtitleTag' | 'titleAlign'> & {
|
|
16
|
+
/** id секции */
|
|
17
|
+
id?: string;
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
/** Массив табов */
|
|
20
|
+
tabBarItems?: TabBarItem[];
|
|
21
|
+
/** Массив фильтров */
|
|
22
|
+
filterItems?: FieldSelectProps[];
|
|
23
|
+
/** Настройки пагинации */
|
|
24
|
+
pagination?: PaginationProps;
|
|
25
|
+
/** Цвет фона */
|
|
26
|
+
backgroundColor?: SectionColor;
|
|
27
|
+
/** CSS-класс */
|
|
28
|
+
className?: string;
|
|
29
|
+
/** Кнопка внизу секции */
|
|
30
|
+
moreButton?: {
|
|
31
|
+
label?: string;
|
|
32
|
+
href?: string;
|
|
33
|
+
onClick: MouseEventHandler<HTMLElement>;
|
|
34
|
+
'data-test-id'?: string;
|
|
35
|
+
};
|
|
36
|
+
}>>;
|
|
37
|
+
export declare function SectionBasic({ id, children, title, subtitle, description, titleSectionSize, titleTag, subtitleTag, tabBarItems, filterItems, moreButton, className, pagination, backgroundColor, layoutType, titleAlign, ...rest }: SectionBasicProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { useState } from 'react';
|
|
15
|
+
import { useLocale } from '@sbercloud/uikit-product-locale';
|
|
16
|
+
import { AdaptiveFieldSelect } from '@sbercloud/uikit-product-mobile-fields';
|
|
17
|
+
import { Layout } from '@sbercloud/uikit-product-site-layout';
|
|
18
|
+
import { extractSupportProps } from '@sbercloud/uikit-product-utils';
|
|
19
|
+
import { ButtonOutline } from '@snack-uikit/button';
|
|
20
|
+
import { Pagination } from '@snack-uikit/pagination';
|
|
21
|
+
import { Tabs } from '@snack-uikit/tabs';
|
|
22
|
+
import { SECTION_COLORS } from '../../constants';
|
|
23
|
+
import { SectionTitle } from '../../helperComponents';
|
|
24
|
+
import styles from './styles.module.css';
|
|
25
|
+
const getInitialTab = (tabBarItems) => {
|
|
26
|
+
if (!tabBarItems || tabBarItems.length < 1) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
const [firstTab] = tabBarItems;
|
|
30
|
+
return firstTab.value;
|
|
31
|
+
};
|
|
32
|
+
export function SectionBasic(_a) {
|
|
33
|
+
var _b, _c;
|
|
34
|
+
var { id, children, title, subtitle, description, titleSectionSize = 'm', titleTag, subtitleTag, tabBarItems, filterItems, moreButton, className, pagination, backgroundColor = SECTION_COLORS.NeutralBackground1Level, layoutType, titleAlign } = _a, rest = __rest(_a, ["id", "children", "title", "subtitle", "description", "titleSectionSize", "titleTag", "subtitleTag", "tabBarItems", "filterItems", "moreButton", "className", "pagination", "backgroundColor", "layoutType", "titleAlign"]);
|
|
35
|
+
const [currentTab, setCurrentTab] = useState(getInitialTab(tabBarItems));
|
|
36
|
+
const { t } = useLocale('SiteSection');
|
|
37
|
+
const showFooter = Boolean(pagination || moreButton);
|
|
38
|
+
return (_jsx(Layout.SectionWrapper, Object.assign({ id: id, layoutType: layoutType, className: cn(className, styles.wrapper), "data-section-background": backgroundColor }, extractSupportProps(rest), { children: _jsxs("div", { className: styles.sectionBasic, "data-layout-type": layoutType, children: [_jsx(SectionTitle, { layoutType: layoutType, title: title, description: description, titleSectionSize: titleSectionSize, titleTag: titleTag, titleAlign: titleAlign, subtitle: subtitle, subtitleTag: subtitleTag }), (tabBarItems === null || tabBarItems === void 0 ? void 0 : tabBarItems.length) && (_jsx("div", { className: styles.sectionTabs, children: _jsx(Tabs, { value: currentTab, onChange: setCurrentTab, children: _jsx(Tabs.TabBar, { children: tabBarItems.map(tabProps => (_jsx(Tabs.Tab, Object.assign({}, tabProps), tabProps.value))) }) }) })), (filterItems === null || filterItems === void 0 ? void 0 : filterItems.length) && (_jsx("div", { className: styles.sectionFilters, "data-layout-type": layoutType, children: filterItems.map(filterProps => (_jsx(AdaptiveFieldSelect, Object.assign({}, filterProps, { className: cn(filterProps.className, styles.filter), layoutType: layoutType, size: 'l' }), filterProps.id))) })), children, showFooter && (_jsxs("div", { className: styles.footer, "data-layout-type": layoutType, children: [pagination && _jsx(Pagination, Object.assign({}, pagination)), moreButton && (_jsx(ButtonOutline, { className: styles.showMoreButton, label: (_b = moreButton.label) !== null && _b !== void 0 ? _b : t('Basic.showMore'), onClick: moreButton.onClick, href: moreButton.href, "data-test-id": (_c = moreButton['data-test-id']) !== null && _c !== void 0 ? _c : 'section__more-btn', appearance: 'neutral', size: 'l', type: 'button', "data-layout-type": layoutType }))] }))] }) })));
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionBasic';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionBasic';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.sectionBasic{
|
|
2
|
+
display:flex;
|
|
3
|
+
flex-direction:column;
|
|
4
|
+
gap:var(--dimension-5m, 40px);
|
|
5
|
+
padding:var(--dimension-7m, 56px) 0;
|
|
6
|
+
}
|
|
7
|
+
.sectionBasic[data-layout-type=tablet]{
|
|
8
|
+
gap:var(--dimension-4m, 32px);
|
|
9
|
+
padding:var(--dimension-5m, 40px) 0;
|
|
10
|
+
}
|
|
11
|
+
.sectionBasic[data-layout-type=mobile]{
|
|
12
|
+
gap:var(--dimension-3m, 24px);
|
|
13
|
+
padding:var(--dimension-4m, 32px) 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.wrapper[data-section-background=neutral-background1-level]{
|
|
17
|
+
background-color:var(--sys-neutral-background1-level, #fdfdfd);
|
|
18
|
+
}
|
|
19
|
+
.wrapper[data-section-background=neutral-background]{
|
|
20
|
+
background-color:var(--sys-neutral-background, #eeeff3);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sectionTitle{
|
|
24
|
+
display:flex;
|
|
25
|
+
flex-direction:column;
|
|
26
|
+
gap:var(--dimension-1m, 8px);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.title{
|
|
30
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.description{
|
|
34
|
+
color:var(--sys-neutral-text-support, #6d707f);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.sectionTabs{
|
|
38
|
+
display:flex;
|
|
39
|
+
flex-direction:column;
|
|
40
|
+
gap:var(--dimension-4m, 32px);
|
|
41
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.sectionFilters{
|
|
45
|
+
display:grid;
|
|
46
|
+
grid-template-columns:repeat(3, 1fr);
|
|
47
|
+
gap:var(--dimension-4m, 32px);
|
|
48
|
+
}
|
|
49
|
+
.sectionFilters[data-layout-type=tablet]{
|
|
50
|
+
grid-template-columns:repeat(2, 1fr);
|
|
51
|
+
gap:var(--dimension-2m, 16px);
|
|
52
|
+
}
|
|
53
|
+
.sectionFilters[data-layout-type=mobile]{
|
|
54
|
+
grid-template-columns:repeat(1, 1fr);
|
|
55
|
+
gap:var(--dimension-3m, 24px);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.footer{
|
|
59
|
+
display:flex;
|
|
60
|
+
flex-direction:column;
|
|
61
|
+
align-items:center;
|
|
62
|
+
gap:var(--dimension-5m, 40px);
|
|
63
|
+
}
|
|
64
|
+
.footer[data-layout-type=tablet]{
|
|
65
|
+
gap:var(--dimension-4m, 32px);
|
|
66
|
+
}
|
|
67
|
+
.footer[data-layout-type=mobile]{
|
|
68
|
+
gap:var(--dimension-3m, 24px);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.showMoreButton[data-layout-type=mobile]{
|
|
72
|
+
width:100%;
|
|
73
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { GridProps } from '@sbercloud/uikit-product-site-grid';
|
|
2
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
3
|
+
import { SectionTitleProps } from '../../helperComponents';
|
|
4
|
+
import { SectionButtonProps } from '../../helperComponents/SectionButton/types';
|
|
5
|
+
import { SectionColor } from '../../types';
|
|
6
|
+
import { ContentBasic, ContentInfo, ContentNumeric, ContentProduct } from './types';
|
|
7
|
+
export type SectionBenefitsProps = WithSupportProps<WithLayoutType<{
|
|
8
|
+
/** id секции */
|
|
9
|
+
id?: string;
|
|
10
|
+
/** Название секции */
|
|
11
|
+
title?: string;
|
|
12
|
+
/** Название подзаголовка секции */
|
|
13
|
+
subtitle?: string;
|
|
14
|
+
/** Цвет фона секции */
|
|
15
|
+
backgroundColor?: SectionColor;
|
|
16
|
+
/** Тег заголовка */
|
|
17
|
+
titleTag?: SectionTitleProps['titleTag'];
|
|
18
|
+
/** Тег заголовка */
|
|
19
|
+
subtitleTag?: SectionTitleProps['subtitleTag'];
|
|
20
|
+
/** Описание секции */
|
|
21
|
+
description?: string;
|
|
22
|
+
/** Конфигурация настройки колонок для разных layoutType */
|
|
23
|
+
columnsConfig: GridProps['columnsConfig'];
|
|
24
|
+
/** Текст нижней сноски */
|
|
25
|
+
note?: string;
|
|
26
|
+
buttons?: SectionButtonProps[];
|
|
27
|
+
/**
|
|
28
|
+
* Выравнивание кнопок по горизонтали
|
|
29
|
+
* @default 'left'
|
|
30
|
+
*/
|
|
31
|
+
buttonsAlign?: 'left' | 'center';
|
|
32
|
+
}>> & (ContentBasic | ContentInfo | ContentNumeric | ContentProduct);
|
|
33
|
+
export declare function SectionBenefits({ id, title, titleTag, subtitle, subtitleTag, description, type, content, tabBarItems, columnsConfig, layoutType, buttons, note, backgroundColor, buttonsAlign, ...rest }: SectionBenefitsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { useMemo, useState } from 'react';
|
|
14
|
+
import { CardBasic, CardInfo, CardProduct } from '@sbercloud/uikit-product-site-cards';
|
|
15
|
+
import { Grid } from '@sbercloud/uikit-product-site-grid';
|
|
16
|
+
import { extractSupportProps } from '@sbercloud/uikit-product-utils';
|
|
17
|
+
import { Typography } from '@snack-uikit/typography';
|
|
18
|
+
import { SectionButton } from '../../helperComponents';
|
|
19
|
+
import { SectionBasic } from '../SectionBasic';
|
|
20
|
+
import { CardNumeric } from './components';
|
|
21
|
+
import styles from './styles.module.css';
|
|
22
|
+
export function SectionBenefits(_a) {
|
|
23
|
+
var { id, title, titleTag, subtitle, subtitleTag, description, type, content, tabBarItems, columnsConfig, layoutType, buttons, note, backgroundColor, buttonsAlign = 'left' } = _a, rest = __rest(_a, ["id", "title", "titleTag", "subtitle", "subtitleTag", "description", "type", "content", "tabBarItems", "columnsConfig", "layoutType", "buttons", "note", "backgroundColor", "buttonsAlign"]);
|
|
24
|
+
const [activeTab, setActiveTab] = useState(tabBarItems && tabBarItems[0].value);
|
|
25
|
+
const tabs = useMemo(() => tabBarItems === null || tabBarItems === void 0 ? void 0 : tabBarItems.map(tab => (Object.assign(Object.assign({}, tab), { onClick: (e) => {
|
|
26
|
+
var _a;
|
|
27
|
+
setActiveTab(tab.value);
|
|
28
|
+
(_a = tab.onClick) === null || _a === void 0 ? void 0 : _a.call(tab, e);
|
|
29
|
+
} }))), [tabBarItems]);
|
|
30
|
+
const outline = rest.outline;
|
|
31
|
+
const gap = type === 'basic' ? 'l' : 's';
|
|
32
|
+
const backgroundColorSection = type === 'basic' || outline ? 'neutral-background1-level' : 'neutral-background';
|
|
33
|
+
return (_jsxs(SectionBasic, Object.assign({ id: id, title: title, titleTag: titleTag, subtitle: subtitle, subtitleTag: subtitleTag, description: description, layoutType: layoutType, backgroundColor: backgroundColor || backgroundColorSection, tabBarItems: tabs }, extractSupportProps(rest), { children: [!tabBarItems && (_jsxs(Grid, { layoutType: layoutType, columnsConfig: columnsConfig, gap: gap, children: [type === 'info' &&
|
|
34
|
+
content.map((item, index) => _jsx(CardInfo, Object.assign({}, item, { outline: outline, layoutType: layoutType }), index)), type === 'numeric' &&
|
|
35
|
+
content.map((item, index) => (_jsx(CardNumeric, Object.assign({}, item, { number: index + 1, layoutType: layoutType }), index))), type === 'product' &&
|
|
36
|
+
content.map((item, index) => _jsx(CardProduct, Object.assign({}, item, { layoutType: layoutType }), index)), type === 'basic' &&
|
|
37
|
+
content.map((item, index) => _jsx(CardBasic, Object.assign({}, item, { layoutType: layoutType }), index))] })), tabBarItems && (_jsxs(Grid, { layoutType: layoutType, columnsConfig: columnsConfig, gap: gap, children: [type === 'info' &&
|
|
38
|
+
content
|
|
39
|
+
.filter(({ tabValue }) => tabValue === activeTab)
|
|
40
|
+
.map(({ cards }) => cards.map((card, index) => (_jsx(CardInfo, Object.assign({ layoutType: layoutType }, card, { outline: outline }), index)))), type === 'numeric' &&
|
|
41
|
+
content
|
|
42
|
+
.filter(({ tabValue }) => tabValue === activeTab)
|
|
43
|
+
.map(({ cards }) => cards.map((card, index) => (_jsx(CardNumeric, Object.assign({ layoutType: layoutType }, card, { number: index + 1 }), index)))), type === 'product' &&
|
|
44
|
+
content
|
|
45
|
+
.filter(({ tabValue }) => tabValue === activeTab)
|
|
46
|
+
.map(({ cards }) => cards.map((card, index) => _jsx(CardProduct, Object.assign({ layoutType: layoutType }, card), index))), type === 'basic' &&
|
|
47
|
+
content
|
|
48
|
+
.filter(({ tabValue }) => tabValue === activeTab)
|
|
49
|
+
.map(({ cards }) => cards.map((card, index) => _jsx(CardBasic, Object.assign({ layoutType: layoutType }, card), index)))] })), note && (_jsx(Typography.SansBodyM, { className: styles.note, children: _jsx("span", { dangerouslySetInnerHTML: { __html: note } }) })), buttons && (_jsx("div", { className: styles.buttons, "data-buttons-align": buttonsAlign, children: buttons.map(button => SectionButton(button)) }))] })));
|
|
50
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CardInfoProps } from '@sbercloud/uikit-product-site-cards';
|
|
2
|
+
type CardNumericProps = Omit<CardInfoProps, 'icon'> & {
|
|
3
|
+
number: number;
|
|
4
|
+
};
|
|
5
|
+
export declare function CardNumeric({ number, ...props }: CardNumericProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { CardInfo } from '@sbercloud/uikit-product-site-cards';
|
|
14
|
+
import { Typography } from '@snack-uikit/typography';
|
|
15
|
+
import styles from './styles.module.css';
|
|
16
|
+
export function CardNumeric(_a) {
|
|
17
|
+
var { number } = _a, props = __rest(_a, ["number"]);
|
|
18
|
+
return (_jsx(CardInfo, Object.assign({}, props, { icon: _jsx(Typography.SansHeadlineM, { className: styles.number, children: number }) })));
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardNumeric';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardNumeric';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardNumeric';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardNumeric';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionBenefits';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionBenefits';
|