@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,22 @@
|
|
|
1
|
+
export function getValueTypographyProps(layoutType) {
|
|
2
|
+
switch (layoutType) {
|
|
3
|
+
case 'mobile':
|
|
4
|
+
case 'tablet':
|
|
5
|
+
return { purpose: 'display', size: 's' };
|
|
6
|
+
case 'desktop':
|
|
7
|
+
case 'desktopSmall':
|
|
8
|
+
default:
|
|
9
|
+
return { purpose: 'display', size: 'l' };
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export function getValueTypographySubtitleProps(layoutType) {
|
|
13
|
+
switch (layoutType) {
|
|
14
|
+
case 'mobile':
|
|
15
|
+
case 'tablet':
|
|
16
|
+
return { purpose: 'title', size: 'm' };
|
|
17
|
+
case 'desktop':
|
|
18
|
+
case 'desktopSmall':
|
|
19
|
+
default:
|
|
20
|
+
return { purpose: 'headline', size: 's' };
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from './styles.module.css';
|
|
3
|
+
export function CardClient({ img, alt }) {
|
|
4
|
+
return (_jsxs("div", { className: styles.cardClient, children: [_jsx("div", { className: styles.imageBackground }), _jsx("img", { className: styles.image, src: img, alt: alt })] }));
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardClient';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardClient';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.cardClient{
|
|
2
|
+
display:flex;
|
|
3
|
+
flex-direction:column;
|
|
4
|
+
justify-content:center;
|
|
5
|
+
align-items:center;
|
|
6
|
+
position:relative;
|
|
7
|
+
height:100px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.imageBackground{
|
|
11
|
+
position:absolute;
|
|
12
|
+
width:100%;
|
|
13
|
+
height:100%;
|
|
14
|
+
background-color:var(--sys-neutral-background, #eeeff3);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.image{
|
|
18
|
+
position:relative;
|
|
19
|
+
max-width:172px;
|
|
20
|
+
max-height:48px;
|
|
21
|
+
-o-object-fit:cover;
|
|
22
|
+
object-fit:cover;
|
|
23
|
+
pointer-events:none;
|
|
24
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { WithLayoutType } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { CardLeadingItem } from './types';
|
|
3
|
+
export type CardLeadingProps = WithLayoutType<CardLeadingItem>;
|
|
4
|
+
export declare function CardLeading({ layoutType, value, label, description, image, ...rest }: CardLeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { extractSupportProps } from '@sbercloud/uikit-product-utils';
|
|
14
|
+
import { Typography } from '@snack-uikit/typography';
|
|
15
|
+
import styles from './styles.module.css';
|
|
16
|
+
import { getLabelTypographyProps, getValueTypographyProps } from './utils';
|
|
17
|
+
export function CardLeading(_a) {
|
|
18
|
+
var { layoutType, value, label, description, image } = _a, rest = __rest(_a, ["layoutType", "value", "label", "description", "image"]);
|
|
19
|
+
return (_jsx("div", Object.assign({ className: styles.cardLeading }, extractSupportProps(rest), { children: _jsxs("div", { className: styles.wrapper, children: [_jsxs("div", { className: styles.header, children: [_jsx(Typography, Object.assign({ family: 'sans' }, getValueTypographyProps(layoutType), { className: styles.cardLeadingColor, children: value })), _jsx(Typography, Object.assign({ family: 'sans' }, getLabelTypographyProps(layoutType), { className: styles.cardLeadingColor, children: label }))] }), _jsx("img", { className: styles.illustration, src: image, alt: 'illustration' }), _jsx("div", { className: styles.footer, "data-layout-type": layoutType, children: _jsx(Typography.SansBodyL, { className: styles.cardLeadingColor, children: description }) })] }) })));
|
|
20
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.cardLeading{
|
|
2
|
+
overflow:hidden;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.wrapper{
|
|
6
|
+
display:flex;
|
|
7
|
+
flex-direction:column;
|
|
8
|
+
position:relative;
|
|
9
|
+
background-color:var(--sys-neutral-background, #eeeff3);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.header{
|
|
13
|
+
display:flex;
|
|
14
|
+
flex-direction:row;
|
|
15
|
+
align-items:center;
|
|
16
|
+
gap:var(--dimension-2m, 16px);
|
|
17
|
+
padding:var(--dimension-4m, 32px);
|
|
18
|
+
}
|
|
19
|
+
.header[data-layout-type=tablet], .header[data-layout-type=mobile]{
|
|
20
|
+
padding:var(--dimension-3m, 24px);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cardLeadingColor{
|
|
24
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.illustration{
|
|
28
|
+
pointer-events:none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.footer{
|
|
32
|
+
padding:var(--dimension-4m, 32px);
|
|
33
|
+
}
|
|
34
|
+
.footer[data-layout-type=tablet], .footer[data-layout-type=mobile]{
|
|
35
|
+
padding:var(--dimension-3m, 24px);
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
export type CardLeadingItem = WithSupportProps<{
|
|
3
|
+
/** Заголовок карточки, значение */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Подзаголовок карточки */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Описание карточки */
|
|
8
|
+
description: string;
|
|
9
|
+
/** Ссылка на картинку */
|
|
10
|
+
image: string;
|
|
11
|
+
}>;
|
|
@@ -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 getValueTypographyProps: (layoutType: LayoutType) => Pick<TypographyProps, "purpose" | "size">;
|
|
4
|
+
export declare const getLabelTypographyProps: (layoutType: LayoutType) => Pick<TypographyProps, "purpose" | "size">;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const getValueTypographyProps = (layoutType) => {
|
|
2
|
+
switch (layoutType) {
|
|
3
|
+
case 'mobile':
|
|
4
|
+
case 'tablet':
|
|
5
|
+
return { purpose: 'headline', size: 'l' };
|
|
6
|
+
case 'desktop':
|
|
7
|
+
case 'desktopSmall':
|
|
8
|
+
default:
|
|
9
|
+
return { purpose: 'display', size: 'l' };
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export const getLabelTypographyProps = (layoutType) => {
|
|
13
|
+
switch (layoutType) {
|
|
14
|
+
case 'mobile':
|
|
15
|
+
case 'tablet':
|
|
16
|
+
return { purpose: 'label', size: 'l' };
|
|
17
|
+
case 'desktop':
|
|
18
|
+
case 'desktopSmall':
|
|
19
|
+
default:
|
|
20
|
+
return { purpose: 'title', size: 'm' };
|
|
21
|
+
}
|
|
22
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, MouseEvent } from 'react';
|
|
2
|
+
import { IconProps } from '@sbercloud/uikit-product-site-cards';
|
|
3
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
4
|
+
export type CardSocialProps = WithSupportProps<WithLayoutType<{
|
|
5
|
+
/** Заголовок карточки*/
|
|
6
|
+
title: string;
|
|
7
|
+
/** Описание карточки */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Ссылка */
|
|
10
|
+
href: string;
|
|
11
|
+
/** HTML-аттрибут target */
|
|
12
|
+
target?: AnchorHTMLAttributes<HTMLAnchorElement>['target'];
|
|
13
|
+
/** Колбек клика*/
|
|
14
|
+
onClick?(e?: MouseEvent<HTMLDivElement | HTMLAnchorElement>): void;
|
|
15
|
+
/** Слот под иконку/кастомную ноду */
|
|
16
|
+
icon?: IconProps['icon'];
|
|
17
|
+
/**
|
|
18
|
+
* Является ли деактивированным
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** CSS-класс */
|
|
23
|
+
className?: string;
|
|
24
|
+
}>>;
|
|
25
|
+
export declare function CardSocial({ title, description, icon, href, target, onClick, disabled, className, layoutType, 'data-test-id': dataTestId, ...rest }: CardSocialProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { Icon, useCardInteractions } from '@sbercloud/uikit-product-site-cards';
|
|
15
|
+
import { extractSupportProps } from '@sbercloud/uikit-product-utils';
|
|
16
|
+
import { Card } from '@snack-uikit/card';
|
|
17
|
+
import { Typography } from '@snack-uikit/typography';
|
|
18
|
+
import styles from './styles.module.css';
|
|
19
|
+
import { getTypographySize } from './utils';
|
|
20
|
+
export function CardSocial(_a) {
|
|
21
|
+
var { title, description, icon, href, target = '_blank', onClick, disabled = false, className, layoutType, 'data-test-id': dataTestId = 'card-social' } = _a, rest = __rest(_a, ["title", "description", "icon", "href", "target", "onClick", "disabled", "className", "layoutType", 'data-test-id']);
|
|
22
|
+
const { anchorRef, handleCardKeyDown, handleCardClick, handleLinkClick } = useCardInteractions({
|
|
23
|
+
href,
|
|
24
|
+
onClick,
|
|
25
|
+
disabled,
|
|
26
|
+
});
|
|
27
|
+
return (_jsx(Card, Object.assign({}, extractSupportProps(rest), { size: 'm', className: cn(styles.card, className), disabled: disabled, onClick: handleCardClick, onKeyDown: handleCardKeyDown, "data-test-id": dataTestId, children: _jsxs("div", { "data-layout-type": layoutType, className: styles.wrapper, children: [icon && _jsx(Icon, { size: 'l', "data-test-id": `${dataTestId}__icon`, icon: icon }), _jsxs("div", { className: styles.content, children: [_jsx(Typography, { tag: 'h3', family: 'sans', purpose: 'title', size: getTypographySize(layoutType), className: styles.title, "data-test-id": `${dataTestId}__title`, children: _jsx("a", { tabIndex: -1, ref: anchorRef, href: href, target: target, onClick: handleLinkClick, "data-test-id": `${dataTestId}__title-link`, children: title }) }), description && (_jsx(Typography, { tag: 'h3', family: 'sans', purpose: 'body', size: getTypographySize(layoutType), className: styles.description, "data-test-id": `${dataTestId}__description`, children: description }))] })] }) })));
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardSocial';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardSocial';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.card{
|
|
2
|
+
position:relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.wrapper{
|
|
6
|
+
display:flex;
|
|
7
|
+
flex-direction:row;
|
|
8
|
+
align-items:flex-start;
|
|
9
|
+
gap:16px;
|
|
10
|
+
}
|
|
11
|
+
.wrapper[data-layout-type=mobile], .wrapper[data-layout-type=tablet]{
|
|
12
|
+
flex-direction:column;
|
|
13
|
+
gap:12px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.content{
|
|
17
|
+
display:flex;
|
|
18
|
+
flex-direction:column;
|
|
19
|
+
align-items:flex-start;
|
|
20
|
+
gap:4px;
|
|
21
|
+
width:100%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.title{
|
|
25
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
26
|
+
}
|
|
27
|
+
.title a{
|
|
28
|
+
color:inherit;
|
|
29
|
+
text-decoration:none;
|
|
30
|
+
}
|
|
31
|
+
.title a::before{
|
|
32
|
+
content:"";
|
|
33
|
+
position:absolute;
|
|
34
|
+
top:0;
|
|
35
|
+
left:0;
|
|
36
|
+
right:0;
|
|
37
|
+
bottom:0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.description{
|
|
41
|
+
color:var(--sys-neutral-text-support, #656774);
|
|
42
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExpertDetails } from '../../components/SectionExpertsCarousel/types';
|
|
2
|
+
export type ExpertProps = ExpertDetails & {
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function Expert({ image, name, surname, jobTitle, className }: ExpertProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import cn from 'classnames';
|
|
3
|
+
import { Typography } from '@snack-uikit/typography';
|
|
4
|
+
import styles from './styles.module.css';
|
|
5
|
+
export function Expert({ image, name, surname, jobTitle, className }) {
|
|
6
|
+
return (_jsxs("div", { className: cn(styles.expert, className), children: [_jsxs("div", { className: styles.imageWrapper, children: [_jsx("div", { className: styles.imageBackground }), _jsx("img", { src: image, alt: 'expert', className: styles.image })] }), _jsxs("div", { className: styles.personalDetails, children: [_jsx(Typography.SansTitleL, { className: styles.detailsColor, children: name }), _jsx(Typography.SansTitleL, { className: styles.detailsColor, children: surname })] }), _jsx("div", { className: styles.jobTitle, children: _jsx(Typography.SansBodyM, { className: styles.detailsColor, children: jobTitle }) })] }));
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Expert';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Expert';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.expert{
|
|
2
|
+
display:flex;
|
|
3
|
+
flex-direction:column;
|
|
4
|
+
gap:var(--dimension-1m, 8px);
|
|
5
|
+
overflow:hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.imageWrapper{
|
|
9
|
+
display:flex;
|
|
10
|
+
justify-content:center;
|
|
11
|
+
position:relative;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.imageBackground{
|
|
15
|
+
position:absolute;
|
|
16
|
+
width:100%;
|
|
17
|
+
height:100%;
|
|
18
|
+
background-color:var(--sys-neutral-accent-default, #787b8a);
|
|
19
|
+
opacity:0.08;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.personalDetails,
|
|
23
|
+
.jobTitle{
|
|
24
|
+
display:flex;
|
|
25
|
+
flex-direction:column;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.detailsColor{
|
|
29
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.image{
|
|
33
|
+
position:relative;
|
|
34
|
+
height:290px;
|
|
35
|
+
-o-object-fit:cover;
|
|
36
|
+
object-fit:cover;
|
|
37
|
+
pointer-events:none;
|
|
38
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WithLayoutType } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
export type PromoListProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
items: string[];
|
|
5
|
+
};
|
|
6
|
+
export declare function PromoList({ title, items, layoutType }: WithLayoutType<PromoListProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { DecorCheckedSVG } from '@sbercloud/uikit-product-icons';
|
|
3
|
+
import { RichText } from '@sbercloud/uikit-product-site-rich-text';
|
|
4
|
+
import styles from './styles.module.css';
|
|
5
|
+
export function PromoList({ title, items, layoutType }) {
|
|
6
|
+
return (_jsxs("div", { className: styles.promoList, "data-layout-type": layoutType, children: [_jsx("div", { className: styles.title, "data-layout-type": layoutType, "data-test-id": 'promo-list__card_title', children: _jsx(RichText, { richText: title }) }), _jsx("ul", { className: styles.list, children: items.map(item => (_jsxs("li", { className: styles.listItem, children: [_jsx(DecorCheckedSVG, { className: styles.listItemIcon }), _jsx(RichText, { richText: item })] }, item))) })] }));
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PromoList';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PromoList';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.promoList{
|
|
2
|
+
display:flex;
|
|
3
|
+
flex-direction:column;
|
|
4
|
+
gap:16px;
|
|
5
|
+
color:var(--sys-invert-neutral-text-main, #e6e8ef);
|
|
6
|
+
position:relative;
|
|
7
|
+
max-width:480px;
|
|
8
|
+
}
|
|
9
|
+
.promoList[data-layout-type=mobile]{
|
|
10
|
+
max-width:100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.title{
|
|
14
|
+
font-family:var(--sans-headline-s-font-family, SB Sans Interface);
|
|
15
|
+
font-weight:var(--sans-headline-s-font-weight, Semibold);
|
|
16
|
+
line-height:var(--sans-headline-s-line-height, 32px);
|
|
17
|
+
font-size:var(--sans-headline-s-font-size, 24px);
|
|
18
|
+
letter-spacing:var(--sans-headline-s-letter-spacing, -0.5px);
|
|
19
|
+
paragraph-spacing:var(--sans-headline-s-paragraph-spacing, 13.2px);
|
|
20
|
+
}
|
|
21
|
+
.title[data-layout-type=tablet], .title[data-layout-type=mobile]{
|
|
22
|
+
font-family:var(--sans-title-l-font-family, SB Sans Interface);
|
|
23
|
+
font-weight:var(--sans-title-l-font-weight, Semibold);
|
|
24
|
+
line-height:var(--sans-title-l-line-height, 28px);
|
|
25
|
+
font-size:var(--sans-title-l-font-size, 20px);
|
|
26
|
+
letter-spacing:var(--sans-title-l-letter-spacing, 0.15px);
|
|
27
|
+
paragraph-spacing:var(--sans-title-l-paragraph-spacing, 11px);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.list{
|
|
31
|
+
list-style:none;
|
|
32
|
+
padding:0;
|
|
33
|
+
margin:0;
|
|
34
|
+
display:flex;
|
|
35
|
+
flex-direction:column;
|
|
36
|
+
gap:16px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.listItem{
|
|
40
|
+
font-family:var(--sans-body-m-font-family, SB Sans Interface);
|
|
41
|
+
font-weight:var(--sans-body-m-font-weight, Regular);
|
|
42
|
+
line-height:var(--sans-body-m-line-height, 20px);
|
|
43
|
+
font-size:var(--sans-body-m-font-size, 14px);
|
|
44
|
+
letter-spacing:var(--sans-body-m-letter-spacing, 0.1px);
|
|
45
|
+
paragraph-spacing:var(--sans-body-m-paragraph-spacing, 7.7px);
|
|
46
|
+
display:flex;
|
|
47
|
+
gap:8px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.listItemIcon{
|
|
51
|
+
color:var(--sys-invert-neutral-accent-default, #cfd2dc);
|
|
52
|
+
flex-shrink:0;
|
|
53
|
+
}
|
|
@@ -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 } from "react/jsx-runtime";
|
|
13
|
+
import { ArrowLinksSVG } from '@sbercloud/uikit-product-icons';
|
|
14
|
+
import { ButtonFilled, ButtonOutline } from '@snack-uikit/button';
|
|
15
|
+
import { Link } from '@snack-uikit/link';
|
|
16
|
+
export function SectionButton(button) {
|
|
17
|
+
const { type } = button, buttonProps = __rest(button, ["type"]);
|
|
18
|
+
if (button.href) {
|
|
19
|
+
return _jsx(Link, Object.assign({}, buttonProps, { text: button.label, size: 'l', insideText: true }), button.label);
|
|
20
|
+
}
|
|
21
|
+
if (type === 'outline') {
|
|
22
|
+
return _jsx(ButtonOutline, Object.assign({ size: 'l', appearance: 'neutral', icon: _jsx(ArrowLinksSVG, {}) }, buttonProps), button.label);
|
|
23
|
+
}
|
|
24
|
+
return _jsx(ButtonFilled, Object.assign({ size: 'l' }, buttonProps), button.label);
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { SectionCarouselProps } from './types';
|
|
2
|
+
export declare function SectionCarousel({ id, title, titleTag, subtitle, subtitleTag, titleSectionSize, description, children, itemMinWidth, maxItemsPerPage, backgroundColor, className, layoutType, gap, moreButton, autoSwipe, infiniteScroll, ...rest }: SectionCarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 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 { SectionBasic } from '../../components';
|
|
18
|
+
import { SECTION_COLORS } from '../../constants';
|
|
19
|
+
import styles from './styles.module.css';
|
|
20
|
+
import { calculateAmountOfItemsPerPage } from './utils';
|
|
21
|
+
const MOBILE_LAYOUTS = ['tablet', 'mobile'];
|
|
22
|
+
export function SectionCarousel(_a) {
|
|
23
|
+
var { id, title, titleTag, subtitle, subtitleTag, titleSectionSize, description, children, itemMinWidth, maxItemsPerPage, backgroundColor = SECTION_COLORS.NeutralBackground1Level, className, layoutType, gap, moreButton, autoSwipe = 9, infiniteScroll = true } = _a, rest = __rest(_a, ["id", "title", "titleTag", "subtitle", "subtitleTag", "titleSectionSize", "description", "children", "itemMinWidth", "maxItemsPerPage", "backgroundColor", "className", "layoutType", "gap", "moreButton", "autoSwipe", "infiniteScroll"]);
|
|
24
|
+
const [currentPage, setCurrentPage] = useState(0);
|
|
25
|
+
const [itemsPerPageAmount, setItemsPerPageAmount] = useState(0);
|
|
26
|
+
const wrapperRef = useRef(null);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
const node = wrapperRef.current;
|
|
29
|
+
if (!node) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const calculateAmountOfItems = () => {
|
|
33
|
+
var _a;
|
|
34
|
+
const wrapperWidth = (_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth;
|
|
35
|
+
if (!wrapperWidth) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
setItemsPerPageAmount(calculateAmountOfItemsPerPage({
|
|
39
|
+
wrapperWidth,
|
|
40
|
+
itemMinWidth,
|
|
41
|
+
maxItemsPerPage,
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
const observer = new ResizeObserver(debounce(calculateAmountOfItems, 100));
|
|
45
|
+
observer.observe(node);
|
|
46
|
+
return () => observer.disconnect();
|
|
47
|
+
}, [itemMinWidth, maxItemsPerPage]);
|
|
48
|
+
const showArrows = useMemo(() => {
|
|
49
|
+
if (MOBILE_LAYOUTS.includes(layoutType)) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
return children.length > itemsPerPageAmount;
|
|
53
|
+
}, [children.length, itemsPerPageAmount, layoutType]);
|
|
54
|
+
return (_jsx(SectionBasic, Object.assign({ id: id, layoutType: layoutType, className: className, "data-section-background": backgroundColor, title: title, titleTag: titleTag, subtitle: subtitle, subtitleTag: subtitleTag, titleSectionSize: titleSectionSize, description: description, backgroundColor: backgroundColor, moreButton: moreButton }, extractSupportProps(rest), { children: _jsx("div", { ref: wrapperRef, className: styles.sectionCarousel, "data-layout-type": layoutType, children: itemsPerPageAmount > 0 && (_jsx(Carousel, { state: { page: currentPage, onChange: setCurrentPage }, arrows: showArrows, controlsVisibility: 'always', showItems: itemsPerPageAmount, pagination: children.length > itemsPerPageAmount, swipe: children.length > itemsPerPageAmount, gap: gap, autoSwipe: infiniteScroll ? autoSwipe : undefined, infiniteScroll: infiniteScroll, children: children })) }) })));
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SectionCarousel';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { WithLayoutType, WithSupportProps } from '@sbercloud/uikit-product-utils';
|
|
3
|
+
import { CarouselProps } from '@snack-uikit/carousel';
|
|
4
|
+
import { SectionBasicProps } from '../../components';
|
|
5
|
+
import { SectionColor } from '../../types';
|
|
6
|
+
import { SectionTitleProps } from '../SectionTitle';
|
|
7
|
+
type CarouselSlideConfig = {
|
|
8
|
+
/** Массив повторяющихся айтмов, из которых состоят слайды карусели */
|
|
9
|
+
children: ReactElement[];
|
|
10
|
+
/** Минимальная ширина айтема */
|
|
11
|
+
itemMinWidth: number;
|
|
12
|
+
/** Максимальное количество айтемов на слайде */
|
|
13
|
+
maxItemsPerPage: number;
|
|
14
|
+
};
|
|
15
|
+
export type SectionCarouselProps = WithSupportProps<WithLayoutType<SectionTitleProps & CarouselSlideConfig & {
|
|
16
|
+
/** id секции */
|
|
17
|
+
id?: string;
|
|
18
|
+
/** Цвет фона */
|
|
19
|
+
backgroundColor?: SectionColor;
|
|
20
|
+
/** CSS - класснейм */
|
|
21
|
+
className?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Автоматическое переключение слайдов в секундах
|
|
24
|
+
* @default 9
|
|
25
|
+
*/
|
|
26
|
+
autoSwipe?: number;
|
|
27
|
+
} & Pick<CarouselProps, 'gap' | 'autoSwipe' | 'infiniteScroll'> & Pick<SectionBasicProps, 'moreButton'>>>;
|
|
28
|
+
export type LimitedSectionCarouselProps<T extends object> = Omit<SectionCarouselProps, keyof CarouselSlideConfig> & {
|
|
29
|
+
/** Массив айтемов */
|
|
30
|
+
items: T[];
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SectionCarouselProps } from './types';
|
|
2
|
+
type Props = Pick<SectionCarouselProps, 'itemMinWidth' | 'maxItemsPerPage'> & {
|
|
3
|
+
wrapperWidth: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const calculateAmountOfItemsPerPage: ({ wrapperWidth, itemMinWidth, maxItemsPerPage }: Props) => number;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WithLayoutType } from '@sbercloud/uikit-product-utils';
|
|
2
|
+
import { ButtonFunctionProps } from '@snack-uikit/button';
|
|
3
|
+
type FooterItem = {
|
|
4
|
+
label: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
onClick?: ButtonFunctionProps['onClick'];
|
|
7
|
+
};
|
|
8
|
+
export type SectionCatalogFooterProps = WithLayoutType<{
|
|
9
|
+
items: FooterItem[];
|
|
10
|
+
}>;
|
|
11
|
+
export declare function SectionCatalogFooter({ items, layoutType }: SectionCatalogFooterProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export {};
|