@arc-ui/community-components 2.0.0 → 3.0.0
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/.turbo/turbo-build.log +40 -10
- package/CHANGELOG.md +19 -0
- package/{dist/Accordion/Accordion.cjs.js → lib/Accordion/Accordion.cjs} +4 -4
- package/lib/Accordion/Accordion.mjs +10 -0
- package/{dist/ArticleSidebar/ArticleSidebar.cjs.js → lib/ArticleSidebar/ArticleSidebar.cjs} +3 -3
- package/{dist/ArticleSidebar/ArticleSidebar.esm.js → lib/ArticleSidebar/ArticleSidebar.mjs} +3 -3
- package/{dist/Author/Author.cjs.js → lib/Author/Author.cjs} +3 -3
- package/lib/Author/Author.mjs +8 -0
- package/{dist/BannerWithTabs/BannerWithTabs.cjs.js → lib/BannerWithTabs/BannerWithTabs.cjs} +4 -4
- package/{dist/BannerWithTabs/BannerWithTabs.esm.js → lib/BannerWithTabs/BannerWithTabs.mjs} +4 -4
- package/{dist/CopyLead/CopyLead.cjs.js → lib/CopyLead/CopyLead.cjs} +16 -9
- package/{dist/CopyLead/CopyLead.esm.js → lib/CopyLead/CopyLead.mjs} +16 -9
- package/{dist/DownloadList/DownloadList.cjs.js → lib/DownloadList/DownloadList.cjs} +4 -4
- package/{dist/DownloadList/DownloadList.esm.js → lib/DownloadList/DownloadList.mjs} +4 -4
- package/{dist/FAQs/FAQs.cjs.js → lib/FAQs/FAQs.cjs} +17 -12
- package/{dist/FAQs/FAQs.esm.js → lib/FAQs/FAQs.mjs} +17 -12
- package/lib/FAQs/styles.css +1 -0
- package/{dist/FeaturePost/FeaturePost.cjs.js → lib/FeaturePost/FeaturePost.cjs} +5 -5
- package/{dist/FeaturePost/FeaturePost.esm.js → lib/FeaturePost/FeaturePost.mjs} +5 -5
- package/{dist/Highlights/Highlights.cjs.js → lib/Highlights/Highlights.cjs} +37 -12
- package/{dist/Highlights/Highlights.esm.js → lib/Highlights/Highlights.mjs} +37 -12
- package/{dist/ProductNavigation/ProductNavigation.cjs.js → lib/ProductNavigation/ProductNavigation.cjs} +5 -5
- package/{dist/ProductNavigation/ProductNavigation.esm.js → lib/ProductNavigation/ProductNavigation.mjs} +5 -5
- package/lib/PromoListing/PromoListing.cjs +65 -0
- package/lib/PromoListing/PromoListing.mjs +63 -0
- package/lib/PromoListing/styles.css +1 -0
- package/{dist/Quote/Quote.cjs.js → lib/Quote/Quote.cjs} +4 -4
- package/{dist/Quote/Quote.esm.js → lib/Quote/Quote.mjs} +4 -4
- package/{dist/SectionHeading/SectionHeading.cjs.js → lib/SectionHeading/SectionHeading.cjs} +4 -4
- package/{dist/SectionHeading/SectionHeading.esm.js → lib/SectionHeading/SectionHeading.mjs} +4 -4
- package/{dist/Statistics/Statistics.cjs.js → lib/Statistics/Statistics.cjs} +4 -4
- package/{dist/Statistics/Statistics.esm.js → lib/Statistics/Statistics.mjs} +4 -4
- package/{dist/Summary/Summary.cjs.js → lib/Summary/Summary.cjs} +2 -2
- package/{dist/Summary/Summary.esm.js → lib/Summary/Summary.mjs} +2 -2
- package/{dist/_shared/cjs/Accordion-Bme0aSPi.js → lib/_shared/cjs/Accordion-C4XdbGCu.cjs} +5 -5
- package/{dist/_shared/cjs/Author-DltMey-3.js → lib/_shared/cjs/Author-X47pv31V.cjs} +2 -2
- package/{dist/_shared/cjs/SectionHeading-gjCR1F6E.js → lib/_shared/cjs/SectionHeading-DepTV4JA.cjs} +3 -3
- package/{dist/_shared/cjs/index.es-BVxxpECB.js → lib/_shared/cjs/index.es-D11PdokQ.cjs} +1 -1
- package/{dist/_shared/esm/Accordion-Brmx6oxT.js → lib/_shared/esm/Accordion-Ct7RuUbx.mjs} +5 -5
- package/{dist/_shared/esm/Author-DpT2Pcq_.js → lib/_shared/esm/Author-CydDYCma.mjs} +2 -2
- package/{dist/_shared/esm/SectionHeading-DVLKN_jI.js → lib/_shared/esm/SectionHeading-BayinGP_.mjs} +3 -3
- package/{dist/_shared/esm/index.es-CbCdNYwG.js → lib/_shared/esm/index.es-C4PyYMjI.mjs} +1 -1
- package/{dist/index.js → lib/index.cjs} +92 -42
- package/lib/index.cjs.map +1 -0
- package/lib/index.d.cts +528 -0
- package/lib/index.d.mts +528 -0
- package/{dist/index.es.js → lib/index.mjs} +92 -42
- package/lib/index.mjs.map +1 -0
- package/lib/styles.css +1 -0
- package/package.json +28 -28
- package/rollup.config.js +34 -50
- package/src/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.tsx +4 -0
- package/src/components/CopyLead/components/IconList/IconList.tsx +4 -2
- package/src/components/CopyLead/templates/Content/Content.tsx +13 -2
- package/src/components/CopyLead/templates/Media/Media.tsx +5 -1
- package/src/components/CopyLead/utils/getListHeadingLevel.ts +6 -0
- package/src/components/FAQs/FAQs.module.css +4 -4
- package/src/components/FAQs/FAQs.tsx +12 -6
- package/src/components/Highlights/Highlights.tsx +65 -7
- package/src/components/Highlights/components/HighlightItem/HighlightItem.tsx +7 -2
- package/src/components/Highlights/components/HighlightList/HighlightList.tsx +4 -0
- package/src/components/Highlights/utils/getListHeadingLevel.ts +6 -0
- package/src/components/PromoListing/PromoListing.module.css +36 -55
- package/src/components/PromoListing/PromoListing.tsx +72 -50
- package/versions.json +1 -1
- package/dist/Accordion/Accordion.esm.js +0 -10
- package/dist/Author/Author.esm.js +0 -8
- package/dist/FAQs/styles.css +0 -1
- package/dist/PromoListing/PromoListing.cjs.js +0 -51
- package/dist/PromoListing/PromoListing.esm.js +0 -49
- package/dist/PromoListing/styles.css +0 -1
- package/dist/index.es.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/styles.css +0 -1
- package/dist/types/cjs/components/Accordion/Accordion.d.ts +0 -9
- package/dist/types/cjs/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.d.ts +0 -11
- package/dist/types/cjs/components/Accordion/components/AccordionHeading/AccordionHeading.d.ts +0 -34
- package/dist/types/cjs/components/Accordion/components/AccordionHeading/index.d.ts +0 -1
- package/dist/types/cjs/components/Accordion/index.d.ts +0 -1
- package/dist/types/cjs/components/ArticleSidebar/ArticleSidebar.d.ts +0 -36
- package/dist/types/cjs/components/ArticleSidebar/index.d.ts +0 -1
- package/dist/types/cjs/components/ArticleSidebar/types/link-section.d.ts +0 -11
- package/dist/types/cjs/components/ArticleSidebar/types/share-button.d.ts +0 -7
- package/dist/types/cjs/components/ArticleSidebar/types/share.d.ts +0 -8
- package/dist/types/cjs/components/ArticleSidebar/types/sidebar-author.d.ts +0 -4
- package/dist/types/cjs/components/ArticleSidebar/types/text-section.d.ts +0 -6
- package/dist/types/cjs/components/ArticleSidebar/types/topic.d.ts +0 -7
- package/dist/types/cjs/components/Author/Author.d.ts +0 -17
- package/dist/types/cjs/components/Author/index.d.ts +0 -1
- package/dist/types/cjs/components/BannerWithTabs/BannerWithTabs.d.ts +0 -38
- package/dist/types/cjs/components/BannerWithTabs/index.d.ts +0 -1
- package/dist/types/cjs/components/ContentInfoWidget/ContentInfoWidget.d.ts +0 -6
- package/dist/types/cjs/components/ContentInfoWidget/index.d.ts +0 -1
- package/dist/types/cjs/components/CopyLead/CopyLead.d.ts +0 -42
- package/dist/types/cjs/components/CopyLead/components/Button/Button.d.ts +0 -3
- package/dist/types/cjs/components/CopyLead/components/Button/index.d.ts +0 -1
- package/dist/types/cjs/components/CopyLead/components/Column/Column.d.ts +0 -6
- package/dist/types/cjs/components/CopyLead/components/Column/index.d.ts +0 -1
- package/dist/types/cjs/components/CopyLead/components/Container/Container.d.ts +0 -9
- package/dist/types/cjs/components/CopyLead/components/Container/index.d.ts +0 -1
- package/dist/types/cjs/components/CopyLead/components/IconList/IconList.d.ts +0 -8
- package/dist/types/cjs/components/CopyLead/components/IconList/index.d.ts +0 -1
- package/dist/types/cjs/components/CopyLead/components/Image/Image.d.ts +0 -3
- package/dist/types/cjs/components/CopyLead/components/Image/index.d.ts +0 -1
- package/dist/types/cjs/components/CopyLead/components/MediaContent/MediaContent.d.ts +0 -9
- package/dist/types/cjs/components/CopyLead/components/MediaContent/index.d.ts +0 -1
- package/dist/types/cjs/components/CopyLead/index.d.ts +0 -1
- package/dist/types/cjs/components/CopyLead/templates/Content/Content.d.ts +0 -10
- package/dist/types/cjs/components/CopyLead/templates/Content/index.d.ts +0 -1
- package/dist/types/cjs/components/CopyLead/templates/Media/Media.d.ts +0 -16
- package/dist/types/cjs/components/CopyLead/templates/Media/index.d.ts +0 -1
- package/dist/types/cjs/components/CopyLead/types/copy-lead-button.d.ts +0 -2
- package/dist/types/cjs/components/CopyLead/types/copy-lead-image.d.ts +0 -4
- package/dist/types/cjs/components/CopyLead/types/copy-lead-list-item.d.ts +0 -5
- package/dist/types/cjs/components/CopyLead/types/copy-lead-transcript-link.d.ts +0 -6
- package/dist/types/cjs/components/CopyLead/types/index.d.ts +0 -4
- package/dist/types/cjs/components/DownloadList/DownloadList.d.ts +0 -7
- package/dist/types/cjs/components/DownloadList/index.d.ts +0 -1
- package/dist/types/cjs/components/FAQs/FAQs.d.ts +0 -13
- package/dist/types/cjs/components/FAQs/index.d.ts +0 -1
- package/dist/types/cjs/components/FeaturePost/FeaturePost.d.ts +0 -45
- package/dist/types/cjs/components/FeaturePost/components/Image/Image.d.ts +0 -3
- package/dist/types/cjs/components/FeaturePost/components/Image/index.d.ts +0 -1
- package/dist/types/cjs/components/FeaturePost/components/MediaContent/MediaContent.d.ts +0 -15
- package/dist/types/cjs/components/FeaturePost/index.d.ts +0 -1
- package/dist/types/cjs/components/FeaturePost/types/feature-post-app-button-footer.d.ts +0 -6
- package/dist/types/cjs/components/FeaturePost/types/feature-post-cta-footer.d.ts +0 -7
- package/dist/types/cjs/components/FeaturePost/types/feature-post-image.d.ts +0 -4
- package/dist/types/cjs/components/FeaturePost/types/index.d.ts +0 -3
- package/dist/types/cjs/components/Highlights/Highlights.d.ts +0 -17
- package/dist/types/cjs/components/Highlights/components/HighlightItem/HighlightItem.d.ts +0 -11
- package/dist/types/cjs/components/Highlights/components/HighlightList/HighlightList.d.ts +0 -9
- package/dist/types/cjs/components/Highlights/index.d.ts +0 -1
- package/dist/types/cjs/components/Highlights/types/highlight-link.d.ts +0 -5
- package/dist/types/cjs/components/Highlights/types/highlight-list-item.d.ts +0 -7
- package/dist/types/cjs/components/Highlights/types/index.d.ts +0 -2
- package/dist/types/cjs/components/ProductNavigation/ProductNavigation.d.ts +0 -49
- package/dist/types/cjs/components/ProductNavigation/index.d.ts +0 -2
- package/dist/types/cjs/components/ProductNavigation/types/index.d.ts +0 -1
- package/dist/types/cjs/components/ProductNavigation/types/product-list.d.ts +0 -6
- package/dist/types/cjs/components/PromoListing/PromoListing.d.ts +0 -38
- package/dist/types/cjs/components/PromoListing/index.d.ts +0 -1
- package/dist/types/cjs/components/Quote/Quote.d.ts +0 -11
- package/dist/types/cjs/components/Quote/index.d.ts +0 -1
- package/dist/types/cjs/components/SectionHeading/SectionHeading.d.ts +0 -30
- package/dist/types/cjs/components/SectionHeading/index.d.ts +0 -1
- package/dist/types/cjs/components/Statistics/Statistics.d.ts +0 -7
- package/dist/types/cjs/components/Statistics/helpers/get-link-props.d.ts +0 -2
- package/dist/types/cjs/components/Statistics/index.d.ts +0 -1
- package/dist/types/cjs/components/Statistics/types/statistic-link.d.ts +0 -6
- package/dist/types/cjs/components/Statistics/types/statistic.d.ts +0 -8
- package/dist/types/cjs/components/Summary/Summary.d.ts +0 -19
- package/dist/types/cjs/components/Summary/index.d.ts +0 -1
- package/dist/types/cjs/components/index.d.ts +0 -16
- package/dist/types/cjs/index.d.ts +0 -1
- package/dist/types/esm/components/Accordion/Accordion.d.ts +0 -9
- package/dist/types/esm/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.d.ts +0 -11
- package/dist/types/esm/components/Accordion/components/AccordionHeading/AccordionHeading.d.ts +0 -34
- package/dist/types/esm/components/Accordion/components/AccordionHeading/index.d.ts +0 -1
- package/dist/types/esm/components/Accordion/index.d.ts +0 -1
- package/dist/types/esm/components/ArticleSidebar/ArticleSidebar.d.ts +0 -36
- package/dist/types/esm/components/ArticleSidebar/index.d.ts +0 -1
- package/dist/types/esm/components/ArticleSidebar/types/link-section.d.ts +0 -11
- package/dist/types/esm/components/ArticleSidebar/types/share-button.d.ts +0 -7
- package/dist/types/esm/components/ArticleSidebar/types/share.d.ts +0 -8
- package/dist/types/esm/components/ArticleSidebar/types/sidebar-author.d.ts +0 -4
- package/dist/types/esm/components/ArticleSidebar/types/text-section.d.ts +0 -6
- package/dist/types/esm/components/ArticleSidebar/types/topic.d.ts +0 -7
- package/dist/types/esm/components/Author/Author.d.ts +0 -17
- package/dist/types/esm/components/Author/index.d.ts +0 -1
- package/dist/types/esm/components/BannerWithTabs/BannerWithTabs.d.ts +0 -38
- package/dist/types/esm/components/BannerWithTabs/index.d.ts +0 -1
- package/dist/types/esm/components/ContentInfoWidget/ContentInfoWidget.d.ts +0 -6
- package/dist/types/esm/components/ContentInfoWidget/index.d.ts +0 -1
- package/dist/types/esm/components/CopyLead/CopyLead.d.ts +0 -42
- package/dist/types/esm/components/CopyLead/components/Button/Button.d.ts +0 -3
- package/dist/types/esm/components/CopyLead/components/Button/index.d.ts +0 -1
- package/dist/types/esm/components/CopyLead/components/Column/Column.d.ts +0 -6
- package/dist/types/esm/components/CopyLead/components/Column/index.d.ts +0 -1
- package/dist/types/esm/components/CopyLead/components/Container/Container.d.ts +0 -9
- package/dist/types/esm/components/CopyLead/components/Container/index.d.ts +0 -1
- package/dist/types/esm/components/CopyLead/components/IconList/IconList.d.ts +0 -8
- package/dist/types/esm/components/CopyLead/components/IconList/index.d.ts +0 -1
- package/dist/types/esm/components/CopyLead/components/Image/Image.d.ts +0 -3
- package/dist/types/esm/components/CopyLead/components/Image/index.d.ts +0 -1
- package/dist/types/esm/components/CopyLead/components/MediaContent/MediaContent.d.ts +0 -9
- package/dist/types/esm/components/CopyLead/components/MediaContent/index.d.ts +0 -1
- package/dist/types/esm/components/CopyLead/index.d.ts +0 -1
- package/dist/types/esm/components/CopyLead/templates/Content/Content.d.ts +0 -10
- package/dist/types/esm/components/CopyLead/templates/Content/index.d.ts +0 -1
- package/dist/types/esm/components/CopyLead/templates/Media/Media.d.ts +0 -16
- package/dist/types/esm/components/CopyLead/templates/Media/index.d.ts +0 -1
- package/dist/types/esm/components/CopyLead/types/copy-lead-button.d.ts +0 -2
- package/dist/types/esm/components/CopyLead/types/copy-lead-image.d.ts +0 -4
- package/dist/types/esm/components/CopyLead/types/copy-lead-list-item.d.ts +0 -5
- package/dist/types/esm/components/CopyLead/types/copy-lead-transcript-link.d.ts +0 -6
- package/dist/types/esm/components/CopyLead/types/index.d.ts +0 -4
- package/dist/types/esm/components/DownloadList/DownloadList.d.ts +0 -7
- package/dist/types/esm/components/DownloadList/index.d.ts +0 -1
- package/dist/types/esm/components/FAQs/FAQs.d.ts +0 -13
- package/dist/types/esm/components/FAQs/index.d.ts +0 -1
- package/dist/types/esm/components/FeaturePost/FeaturePost.d.ts +0 -45
- package/dist/types/esm/components/FeaturePost/components/Image/Image.d.ts +0 -3
- package/dist/types/esm/components/FeaturePost/components/Image/index.d.ts +0 -1
- package/dist/types/esm/components/FeaturePost/components/MediaContent/MediaContent.d.ts +0 -15
- package/dist/types/esm/components/FeaturePost/index.d.ts +0 -1
- package/dist/types/esm/components/FeaturePost/types/feature-post-app-button-footer.d.ts +0 -6
- package/dist/types/esm/components/FeaturePost/types/feature-post-cta-footer.d.ts +0 -7
- package/dist/types/esm/components/FeaturePost/types/feature-post-image.d.ts +0 -4
- package/dist/types/esm/components/FeaturePost/types/index.d.ts +0 -3
- package/dist/types/esm/components/Highlights/Highlights.d.ts +0 -17
- package/dist/types/esm/components/Highlights/components/HighlightItem/HighlightItem.d.ts +0 -11
- package/dist/types/esm/components/Highlights/components/HighlightList/HighlightList.d.ts +0 -9
- package/dist/types/esm/components/Highlights/index.d.ts +0 -1
- package/dist/types/esm/components/Highlights/types/highlight-link.d.ts +0 -5
- package/dist/types/esm/components/Highlights/types/highlight-list-item.d.ts +0 -7
- package/dist/types/esm/components/Highlights/types/index.d.ts +0 -2
- package/dist/types/esm/components/ProductNavigation/ProductNavigation.d.ts +0 -49
- package/dist/types/esm/components/ProductNavigation/index.d.ts +0 -2
- package/dist/types/esm/components/ProductNavigation/types/index.d.ts +0 -1
- package/dist/types/esm/components/ProductNavigation/types/product-list.d.ts +0 -6
- package/dist/types/esm/components/PromoListing/PromoListing.d.ts +0 -38
- package/dist/types/esm/components/PromoListing/index.d.ts +0 -1
- package/dist/types/esm/components/Quote/Quote.d.ts +0 -11
- package/dist/types/esm/components/Quote/index.d.ts +0 -1
- package/dist/types/esm/components/SectionHeading/SectionHeading.d.ts +0 -30
- package/dist/types/esm/components/SectionHeading/index.d.ts +0 -1
- package/dist/types/esm/components/Statistics/Statistics.d.ts +0 -7
- package/dist/types/esm/components/Statistics/helpers/get-link-props.d.ts +0 -2
- package/dist/types/esm/components/Statistics/index.d.ts +0 -1
- package/dist/types/esm/components/Statistics/types/statistic-link.d.ts +0 -6
- package/dist/types/esm/components/Statistics/types/statistic.d.ts +0 -8
- package/dist/types/esm/components/Summary/Summary.d.ts +0 -19
- package/dist/types/esm/components/Summary/index.d.ts +0 -1
- package/dist/types/esm/components/index.d.ts +0 -16
- package/dist/types/esm/index.d.ts +0 -1
- /package/{dist → lib}/ArticleSidebar/styles.css +0 -0
- /package/{dist → lib}/Author/styles.css +0 -0
- /package/{dist → lib}/BannerWithTabs/styles.css +0 -0
- /package/{dist/ContentInfoWidget/ContentInfoWidget.cjs.js → lib/ContentInfoWidget/ContentInfoWidget.cjs} +0 -0
- /package/{dist/ContentInfoWidget/ContentInfoWidget.esm.js → lib/ContentInfoWidget/ContentInfoWidget.mjs} +0 -0
- /package/{dist → lib}/ContentInfoWidget/styles.css +0 -0
- /package/{dist → lib}/CopyLead/styles.css +0 -0
- /package/{dist → lib}/DownloadList/styles.css +0 -0
- /package/{dist → lib}/FeaturePost/styles.css +0 -0
- /package/{dist → lib}/Highlights/styles.css +0 -0
- /package/{dist → lib}/ProductNavigation/styles.css +0 -0
- /package/{dist → lib}/Quote/styles.css +0 -0
- /package/{dist → lib}/SectionHeading/styles.css +0 -0
- /package/{dist → lib}/Statistics/styles.css +0 -0
- /package/{dist → lib}/Summary/styles.css +0 -0
- /package/{dist/_shared/cjs/filter-data-attrs-ajtUvDAC.js → lib/_shared/cjs/filter-data-attrs-ajtUvDAC.cjs} +0 -0
- /package/{dist/_shared/cjs/index-Bp6Dd2i1.js → lib/_shared/cjs/index-Bp6Dd2i1.cjs} +0 -0
- /package/{dist/_shared/cjs/tslib.es6-BxB9I209.js → lib/_shared/cjs/tslib.es6-BxB9I209.cjs} +0 -0
- /package/{dist/_shared/esm/filter-data-attrs-V7cbJuwS.js → lib/_shared/esm/filter-data-attrs-V7cbJuwS.mjs} +0 -0
- /package/{dist/_shared/esm/index-BfTCfPZ1.js → lib/_shared/esm/index-BfTCfPZ1.mjs} +0 -0
- /package/{dist/_shared/esm/tslib.es6-D6Wu-xwB.js → lib/_shared/esm/tslib.es6-D6Wu-xwB.mjs} +0 -0
package/lib/styles.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.AccordionHeading-module_accordion-header__8s12f{padding-bottom:40px;width:auto}.AccordionHeading-module_accordion-header--hasImage__wbDjW{display:flex;flex-direction:column;gap:16px}@media (min-width:636px){.AccordionHeading-module_accordion-header--padded__me1JY{min-width:588px;width:auto}.AccordionHeading-module_accordion-header--hasImage__wbDjW{align-items:center;flex-direction:row;gap:32px}}@media (min-width:768px){.AccordionHeading-module_accordion-header--padded__me1JY{min-width:720px;padding:0 186px 40px 0}}@media (min-width:1024px){.AccordionHeading-module_accordion-header--padded__me1JY{min-width:960px;padding:0 246px 40px 0}}@media (min-width:1280px){.AccordionHeading-module_accordion-header--padded__me1JY{min-width:1216px;padding:0 312px 40px 0}}.AccordionHeading-module_accordion-header--headingSizeM__amLfy{padding-bottom:24px;width:auto}.AccordionDisclosureList-module_AccordionDisclosureListItem__p8LIT.AccordionDisclosureList-module_AccordionDisclosureListItem__p8LIT:not(:first-child)>*>summary{border-top:0;line-height:29px}.Author-module_authorContent__TBY7b{padding-left:var(--sem-space-padding-70)}.Author-module_largeAvatar__Vco03{margin-bottom:var(--sem-space-gap-5)}.CopyLead-module_buttonContainer__3OaRG{margin:var(--sem-space-padding-150) auto 0;width:100%}.CopyLead-module_col__0Da5H{flex:1 1 auto;width:100%}.CopyLead-module_container__I91ym{align-items:flex-start;display:flex;gap:var(--sem-space-padding-150)}.CopyLead-module_container--content__e8LxG{flex-direction:column}.CopyLead-module_container--media__QcMWi{flex-direction:column-reverse}.CopyLead-module_container--align-center__Fh1Sd{align-items:center}.CopyLead-module_container--align-top__UIXOZ{align-items:flex-start}.CopyLead-module_list__arnJd{list-style:none;margin:0;max-width:480px;padding:0}.CopyLead-module_listItem__NscHE{display:flex}.CopyLead-module_listItem__NscHE:nth-of-type(n+2){margin-top:var(--sem-space-padding-150)}.CopyLead-module_listItemCentered__Kwdab{align-items:center}.CopyLead-module_listItemIconContainer__dgnhJ{flex:0 0 auto}.CopyLead-module_listItemTextContainer__Dl9lw{flex:1 1 auto;padding:0 0 0 var(--sem-space-padding-80)}.CopyLead-module_imgWrapper__HYP3w{border-radius:var(--sem-border-radius-s);overflow:hidden}.CopyLead-module_mediaContainer__PxTnm{margin-bottom:var(--sem-space-padding-150)}.CopyLead-module_content__Bja1D{max-width:715px}@media (min-width:636px){.CopyLead-module_buttonContainer__3OaRG{width:-moz-max-content;width:max-content}}@media (min-width:768px){.CopyLead-module_container__I91ym{gap:var(--sem-space-padding-110)}.CopyLead-module_container--content__e8LxG,.CopyLead-module_container--media__QcMWi{flex-direction:row}.CopyLead-module_container--reverse__Gq9u8{flex-direction:row-reverse}.CopyLead-module_buttonContainer__3OaRG{margin:var(--sem-space-padding-150) 0 0}.CopyLead-module_col__0Da5H{width:50%}.CopyLead-module_list__arnJd{max-width:100%}.CopyLead-module_listItemTextContainer__Dl9lw{padding:0 var(--sem-space-padding-80)}}@media (min-width:1024px){.CopyLead-module_listItemTextContainer__Dl9lw{padding:0 var(--sem-space-padding-110)}}@media (min-width:1280px){.CopyLead-module_container__I91ym{gap:var(--sem-space-padding-130)}.CopyLead-module_listItemTextContainer__Dl9lw{padding:0 var(--sem-space-padding-130)}}.SectionHeading-module_section-header__iB07I{padding-bottom:40px;width:auto}.SectionHeading-module_section-header--hasImage__Ka3T7{display:flex;flex-direction:column;gap:16px}@media (min-width:636px){.SectionHeading-module_section-header--padded__0FXP2{min-width:588px;width:auto}.SectionHeading-module_section-header--hasImage__Ka3T7{align-items:center;flex-direction:row;gap:32px}}@media (min-width:768px){.SectionHeading-module_section-header--padded__0FXP2{min-width:720px;padding:0 186px 40px 0}}@media (min-width:1024px){.SectionHeading-module_section-header--padded__0FXP2{min-width:960px;padding:0 246px 40px 0}}@media (min-width:1280px){.SectionHeading-module_section-header--padded__0FXP2{min-width:1216px;padding:0 312px 40px 0}}@media (min-width:768px){.DownloadList-module_headingContainer__PNio8{max-width:75%}}html{scroll-behavior:smooth}.FAQs-module_FAQs__FtQr4 li,.FAQs-module_FAQs__FtQr4 ul{list-style:none;margin:0;padding:0}.FAQs-module_linkListSection__RdQkU{display:flex;flex-direction:column;margin-bottom:40px}.FAQs-module_linkListTitle__RVni3{margin-bottom:8px}.FAQs-module_linkList__dPyXj{display:flex;flex-wrap:wrap;row-gap:8px}.FAQs-module_linkListSection__RdQkU .FAQs-module_linkListItem__S83CL:after{color:#d9d9d9;content:"|";padding:0 8px}.FAQs-module_linkListSection__RdQkU .FAQs-module_linkListItem__S83CL:last-child:after{content:""}@media (--arc-custom-media-min-width-s-px ){.FAQs-module_linkList--padded__8Paxc{min-width:588px;width:auto}}@media (--arc-custom-media-min-width-m-px ){.FAQs-module_linkList--padded__8Paxc{min-width:720px;padding-right:186px}}@media (--arc-custom-media-min-width-l-px ){.FAQs-module_linkList--padded__8Paxc{min-width:960px;padding-right:246px}}@media (--arc-custom-media-min-width-xl-px ){.FAQs-module_linkList--padded__8Paxc{min-width:1216px;padding-right:312px}}.FeaturePost-module_labelDate__NXOgY{padding-top:var(--sem-space-padding-20);text-transform:uppercase}.FeaturePost-module_authorContent__FEuRO{padding-left:var(--sem-space-padding-70)}.FeaturePost-module_googlePlayButtonWrapper__GI-ag{padding:var(--sem-space-padding-70) 0 0}.FeaturePost-module_imgWrapper__r6omd{border-radius:var(--sem-border-radius-s);overflow:hidden}@media (min-width:636px){.FeaturePost-module_googlePlayButtonWrapper__GI-ag{padding:0 0 0 var(--sem-space-padding-70)}}@media (min-width:768px){.FeaturePost-module_featurePost__9jY21{display:flex;gap:24px}.FeaturePost-module_featurePostReversed__WQRXm{flex-direction:row-reverse}.FeaturePost-module_contentContainer__kdus7{padding:0 var(--sem-space-padding-110) 0 0}.FeaturePost-module_col__eW8gY{flex:0 1 auto;width:50%}.FeaturePost-module_labelDate__NXOgY{padding-left:var(--sem-space-padding-70)}}@media (min-width:1280px){.FeaturePost-module_featurePost__9jY21{gap:32px}.FeaturePost-module_contentContainer__kdus7{padding:0 var(--sem-space-padding-130) 0 0}}.Highlights-module_highlights__Hf7Zq{grid-gap:48px 24px;display:grid;gap:48px 24px;grid-template-columns:1fr}.Highlights-module_highlightItem__-N6le{max-width:480px;width:auto}@media (min-width:636px){.Highlights-module_highlights__Hf7Zq{grid-template-columns:1fr 1fr}.Highlights-module_highlightItem__-N6le{min-width:282px;padding-right:0}}@media (min-width:768px){.Highlights-module_highlights2Column__6qIuI{grid-template-columns:1fr 1fr}.Highlights-module_highlights2Column__6qIuI .Highlights-module_highlightItem__-N6le{max-width:-moz-max-content;max-width:max-content;min-width:348px;padding-right:62px}.Highlights-module_highlights3Column__qsCMP{grid-template-columns:1fr 1fr 1fr}.Highlights-module_highlights3Column__qsCMP .Highlights-module_highlightItem__-N6le{min-width:224px}}@media (min-width:1024px){.Highlights-module_highlights2Column__6qIuI{grid-template-columns:1fr 1fr}.Highlights-module_highlights2Column__6qIuI .Highlights-module_highlightItem__-N6le{min-width:468px;padding-right:82px}.Highlights-module_highlights3Column__qsCMP{grid-template-columns:1fr 1fr 1fr}.Highlights-module_highlights3Column__qsCMP .Highlights-module_highlightItem__-N6le{min-width:304px}}@media (min-width:1280px){.Highlights-module_highlights__Hf7Zq{gap:48px 32px}.Highlights-module_highlights2Column__6qIuI{grid-template-columns:1fr 1fr}.Highlights-module_highlights2Column__6qIuI .Highlights-module_highlightItem__-N6le{min-width:592px;padding-right:104px}.Highlights-module_highlights3Column__qsCMP{grid-template-columns:1fr 1fr 1fr}.Highlights-module_highlights3Column__qsCMP .Highlights-module_highlightItem__-N6le{min-width:384px}}.PromoListing-module_PromoListing__6ensv{max-width:1280px}.PromoListing-module_carouselSlide__AMTPF{height:100%;padding:6px}.PromoListing-module_cardGrid__llf73{grid-gap:16px;display:grid;gap:16px;grid-auto-rows:1fr;grid-template-columns:repeat(1,1fr);list-style:none;margin:0;padding:0}.PromoListing-module_cardWrapper__I4iwh,.PromoListing-module_cardWrapper__I4iwh>*{height:100%}.PromoListing-module_cardWrapperCarousel__t-2qM{height:100%;margin-right:16px;width:288px}.PromoListing-module_cardWrapperCarousel__t-2qM>*{height:100%}@media (min-width:636px){.PromoListing-module_cardWrapperCarousel__t-2qM{margin-right:24px}.PromoListing-module_cardGrid__llf73{gap:24px}.PromoListing-module_cardGrid__llf73.PromoListing-module_columns-2__GRFxb,.PromoListing-module_cardGrid__llf73.PromoListing-module_columns-3__y6jWS{grid-template-columns:repeat(2,1fr)}}@media (min-width:768px){.PromoListing-module_cardWrapperCarousel__t-2qM{width:348px}}@media (min-width:1024px){.PromoListing-module_cardGrid__llf73.PromoListing-module_columns-3__y6jWS{grid-template-columns:repeat(3,1fr)}.PromoListing-module_cardGrid__llf73.PromoListing-module_columns-2__GRFxb{grid-template-columns:repeat(2,1fr)}}@media (min-width:1280px){.PromoListing-module_cardGrid__llf73{gap:32px}}.Quote-module_blockQuote__STj-z{font-size:36px;font-style:normal;font-weight:500;margin:0}.Quote-module_quoteContent__kWc51{line-height:44px;margin:0;padding-bottom:32px;padding-top:32px}.Quote-module_quoteDefault__tU5db{fill:#5514b4;color:#5514b4}.Quote-module_quoteSecondary__3Rk3f{fill:#434343;color:#434343}.Quote-module_quoteIcon__HK1TV{height:76.471px;width:100px}svg{padding:0}@media (min-width:768px){.Quote-module_blockQuote__STj-z{font-size:40px}.Quote-module_quoteContent__kWc51{line-height:48px}}@media (min-width:1024px){.Quote-module_quoteIcon__HK1TV{height:95.588px;width:125px}}@media (min-width:1280px){.Quote-module_blockQuote__STj-z{font-size:56px}.Quote-module_quoteContent__kWc51{line-height:64px}}.Summary-module_ruleContainer__ydWlG{flex:0 1 auto;padding:24px}.Summary-module_ruleContainer__ydWlG .arc-Rule{margin:0}@media (min-width:768px){.Summary-module_row__SKV--{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr)}}@media (min-width:1024px){.Summary-module_ruleContainer__ydWlG{padding:12px 48px}.Summary-module_row__SKV--{padding:0 24px}}.Statistics-module_list__BI-eQ{list-style:none;margin:0;padding:0}.Statistics-module_mutedText__MR1JM,.arc a.Statistics-module_mutedText__MR1JM{color:var(--sem-color-text-primary-light-subtle)}.Statistics-module_statWrapper__83OnM{margin-bottom:-12px}@media (min-width:636px){.Statistics-module_statWrapper__83OnM{margin-bottom:0}}.BannerWithTabs-module_contentSwitcherWrapper__xvz39{display:none}.BannerWithTabs-module_contentSwitcherDropdownWrapper__eT5zq{display:block}@media (min-width:636px){.BannerWithTabs-module_contentSwitcherWrapper__xvz39{display:block}.BannerWithTabs-module_contentSwitcherDropdownWrapper__eT5zq{display:none}}.BannerWithTabs-module_bannerWithTabsHeadingCentered__upqEO{text-align:center}@media (min-width:636px){.BannerWithTabs-module_bannerWithTabsHeadingCentered__upqEO{padding-left:62px;padding-right:62px}}@media (min-width:768px){.BannerWithTabs-module_bannerWithTabsHeadingCentered__upqEO{padding-left:86px;padding-right:86px}}@media (min-width:1024px){.BannerWithTabs-module_bannerWithTabsHeadingCentered__upqEO{padding-left:104px;padding-right:104px}}.ArticleSidebar-module_tagGroup__rIPQc{display:flex;flex-wrap:wrap;gap:16px}.ArticleSidebar-module_textContent__3nCfG{padding-right:16px}.ArticleSidebar-module_shareButtonContainer__iAfHL{display:flex;gap:8px}.arc a.ArticleSidebar-module_shareButton__rb-1E{background:var(--sem-color-bg-secondary-light-default);border:1px solid var(--sem-color-border-secondary-light-subtle);border-radius:50%;color:var(--sem-color-fg-secondary-light-default);cursor:pointer;display:block;padding:12px;transition:color .4s ease,border-color .4s ease}.arc a.ArticleSidebar-module_shareButton__rb-1E:hover{border-color:var(--sem-color-bg-primary-light-strong);color:var(--sem-color-bg-primary-light-strong)}.ProductNavigation-module_product-navigation-grid__RzFq8{grid-gap:24px;display:grid;grid-auto-rows:1fr;grid-template-columns:repeat(1,1fr);list-style:none;margin:0;max-width:1216px;padding:0}@media (min-width:636px){.ProductNavigation-module_product-navigation-grid__RzFq8{grid-template-columns:repeat(2,1fr)}}@media (min-width:1024px){.ProductNavigation-module_product-navigation-grid__RzFq8{grid-template-columns:repeat(3,1fr)}}@media (min-width:1280px){.ProductNavigation-module_product-navigation-grid__RzFq8{grid-gap:32px}}.ProductNavigation-module_productNavigation-skipLink__fy8ZJ{margin-top:56px;position:absolute;scale:0;width:calc(100% - 32px)}@media (min-width:768px){.ProductNavigation-module_productNavigation-skipLink__fy8ZJ{margin-left:12px;margin-top:0;position:static;scale:0;width:auto}}.ProductNavigation-module_productNavigation-skipLink__fy8ZJ[focus-within]{scale:1}.ProductNavigation-module_productNavigation-skipLink__fy8ZJ:focus-within{scale:1}.ContentInfoWidget-module_container__yaS-8{align-items:center;display:flex;flex-direction:row;max-width:250px;overflow-x:hidden;white-space:nowrap}.ContentInfoWidget-module_text__O1BdZ{padding-left:8px}.ContentInfoWidget-module_icon__LEww1{color:var(--sem-color-fg-secondary-light-subtle)}
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arc-ui/community-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://ui.digital-ent-int.bt.com",
|
|
6
6
|
"author": "BT Business Digital UI Team <ui-digital-ent-int@bt.com>",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": {
|
|
10
|
-
"types": "./
|
|
11
|
-
"default": "./
|
|
10
|
+
"types": "./lib/index.d.mts",
|
|
11
|
+
"default": "./lib/index.mjs"
|
|
12
12
|
},
|
|
13
13
|
"require": {
|
|
14
|
-
"types": "./
|
|
15
|
-
"default": "./
|
|
14
|
+
"types": "./lib/index.d.cts",
|
|
15
|
+
"default": "./lib/index.cjs"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"./src": "./src/index.ts",
|
|
19
19
|
"./versions": "./versions.json",
|
|
20
|
-
"./styles.css": "./
|
|
21
|
-
"
|
|
20
|
+
"./lib/styles.css": "./lib/styles.css",
|
|
21
|
+
"./lib/*/styles.css": "./lib/*/styles.css",
|
|
22
22
|
"./*": {
|
|
23
23
|
"import": {
|
|
24
|
-
"types": "./
|
|
25
|
-
"default": "./
|
|
24
|
+
"types": "./lib/index.d.mts",
|
|
25
|
+
"default": "./lib/*/*.mjs"
|
|
26
26
|
},
|
|
27
27
|
"require": {
|
|
28
|
-
"types": "./
|
|
29
|
-
"default": "./
|
|
28
|
+
"types": "./lib/index.d.cts",
|
|
29
|
+
"default": "./lib/*/*.cjs"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
},
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@arc-ui/components": "13.
|
|
38
|
-
"@arc-ui/themes": "13.
|
|
37
|
+
"@arc-ui/components": "13.3.0",
|
|
38
|
+
"@arc-ui/themes": "13.3.0",
|
|
39
39
|
"react": "^19.2.3",
|
|
40
40
|
"react-dom": "^19.2.3"
|
|
41
41
|
},
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@arc-ui/components": "13.
|
|
49
|
-
"@arc-ui/gradients": "13.
|
|
50
|
-
"@arc-ui/icons": "13.
|
|
51
|
-
"@arc-ui/themes": "13.
|
|
52
|
-
"@arc-ui/tokens-arc": "13.
|
|
53
|
-
"@arc-ui/tokens-bt-business": "13.
|
|
54
|
-
"@arc-ui/tokens-bt-enterprise": "13.
|
|
55
|
-
"@arc-ui/tokens-ee": "13.
|
|
48
|
+
"@arc-ui/components": "13.3.0",
|
|
49
|
+
"@arc-ui/gradients": "13.3.0",
|
|
50
|
+
"@arc-ui/icons": "13.3.0",
|
|
51
|
+
"@arc-ui/themes": "13.3.0",
|
|
52
|
+
"@arc-ui/tokens-arc": "13.3.0",
|
|
53
|
+
"@arc-ui/tokens-bt-business": "13.3.0",
|
|
54
|
+
"@arc-ui/tokens-bt-enterprise": "13.3.0",
|
|
55
|
+
"@arc-ui/tokens-ee": "13.3.0",
|
|
56
56
|
"@rollup/plugin-commonjs": "^28.0.1",
|
|
57
57
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
58
58
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
@@ -66,8 +66,7 @@
|
|
|
66
66
|
"react-dom": "^19.2.3",
|
|
67
67
|
"rimraf": "^6.0.1",
|
|
68
68
|
"rollup": "^4.27.3",
|
|
69
|
-
"rollup-plugin-
|
|
70
|
-
"rollup-plugin-delete": "^2.0.0",
|
|
69
|
+
"rollup-plugin-dts": "^6.3.0",
|
|
71
70
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
72
71
|
"rollup-plugin-postcss": "^4.0.0",
|
|
73
72
|
"semver": "^7.6.3",
|
|
@@ -75,10 +74,10 @@
|
|
|
75
74
|
"tslib": "^2.8.1",
|
|
76
75
|
"typescript": "^5.6.3",
|
|
77
76
|
"@arc-ui/community-build-utils": "^0.1.0",
|
|
78
|
-
"@arc-ui/community-
|
|
79
|
-
"@arc-ui/community-
|
|
80
|
-
"@arc-ui/community-
|
|
81
|
-
"@arc-ui/community-
|
|
77
|
+
"@arc-ui/community-css-config": "^0.1.1",
|
|
78
|
+
"@arc-ui/community-eslint-config": "^0.1.1",
|
|
79
|
+
"@arc-ui/community-utils": "^0.1.0",
|
|
80
|
+
"@arc-ui/community-typescript-config": "^0.1.0"
|
|
82
81
|
},
|
|
83
82
|
"browserslist": [
|
|
84
83
|
"defaults",
|
|
@@ -103,7 +102,8 @@
|
|
|
103
102
|
"lint:ts": "eslint .",
|
|
104
103
|
"lint:css": "stylelint '**/*.css'",
|
|
105
104
|
"ts:check": "tsc --noEmit",
|
|
106
|
-
"build": "rimraf dist && rollup -c && generate-subpath-css",
|
|
105
|
+
"build": "rimraf lib dist && rollup -c && generate-subpath-css && pnpm run build:clean",
|
|
106
|
+
"build:clean": "rimraf ./lib/types ./lib/styles.js ./lib/index.js ./lib/index.js.map",
|
|
107
107
|
"generate:versions:json": "node ./generate-versions.js"
|
|
108
108
|
}
|
|
109
109
|
}
|
package/rollup.config.js
CHANGED
|
@@ -3,8 +3,7 @@ import commonjs from "@rollup/plugin-commonjs";
|
|
|
3
3
|
import resolve from "@rollup/plugin-node-resolve";
|
|
4
4
|
import external from "rollup-plugin-peer-deps-external";
|
|
5
5
|
import postcss from "rollup-plugin-postcss";
|
|
6
|
-
import
|
|
7
|
-
import copy from "rollup-plugin-copy";
|
|
6
|
+
import dts from "rollup-plugin-dts";
|
|
8
7
|
|
|
9
8
|
import { getDirectories } from "@arc-ui/community-build-utils/get-directories";
|
|
10
9
|
import { getSubPathFileMap } from "@arc-ui/community-build-utils/get-subpath-file-map";
|
|
@@ -19,26 +18,30 @@ const basePlugins = [external(), resolve(), commonjs()];
|
|
|
19
18
|
* We have multiple output configs to support CommonJS and ES modules.
|
|
20
19
|
*/
|
|
21
20
|
export default [
|
|
22
|
-
//
|
|
21
|
+
// Main bundles (CJS + ESM) with declarations
|
|
23
22
|
{
|
|
24
23
|
input: "src/index.ts",
|
|
25
|
-
output:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
output: [
|
|
25
|
+
{
|
|
26
|
+
file: "lib/index.cjs",
|
|
27
|
+
format: "cjs",
|
|
28
|
+
exports: "named",
|
|
29
|
+
sourcemap: true,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
file: "lib/index.mjs",
|
|
33
|
+
format: "esm",
|
|
34
|
+
exports: "named",
|
|
35
|
+
sourcemap: true,
|
|
36
|
+
},
|
|
37
|
+
],
|
|
31
38
|
plugins: [
|
|
32
39
|
...basePlugins,
|
|
33
|
-
del({
|
|
34
|
-
targets: ["dist/styles.js"],
|
|
35
|
-
}), // Remove empty files
|
|
36
|
-
// We do this here because we are able to use `dir` for cjs, and
|
|
37
|
-
// declaration exports require use of a dir. ES modules require a
|
|
38
|
-
// file so that we can specify standard .es.js file extension.
|
|
39
40
|
typescript({
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
compilerOptions: {
|
|
42
|
+
declaration: true,
|
|
43
|
+
declarationDir: "lib/types",
|
|
44
|
+
},
|
|
42
45
|
exclude: [
|
|
43
46
|
"**/__mocks__/**/*.ts",
|
|
44
47
|
"**/__tests__/**/*.tsx",
|
|
@@ -48,45 +51,26 @@ export default [
|
|
|
48
51
|
}),
|
|
49
52
|
postcss(postcssConfig),
|
|
50
53
|
],
|
|
54
|
+
external: ["react", "react-dom"],
|
|
51
55
|
},
|
|
52
|
-
//
|
|
56
|
+
// Bundle dts files
|
|
53
57
|
{
|
|
54
|
-
input: "
|
|
58
|
+
input: "./lib/types/index.d.ts",
|
|
55
59
|
output: [
|
|
56
|
-
{
|
|
57
|
-
|
|
58
|
-
format: "esm",
|
|
59
|
-
exports: "named",
|
|
60
|
-
sourcemap: true,
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
plugins: [
|
|
64
|
-
...basePlugins,
|
|
65
|
-
typescript(),
|
|
66
|
-
postcss({ ...postcssConfig, extract: false }),
|
|
67
|
-
copy({
|
|
68
|
-
targets: [
|
|
69
|
-
// TypeScript requires 2 distinct files for ESM and CJS types. See:
|
|
70
|
-
// https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/
|
|
71
|
-
// https://github.com/gxmari007/vite-plugin-eslint/pull/60
|
|
72
|
-
// Copy for CJS types is made in ES bundle to ensure the declaration file generated in
|
|
73
|
-
// the previous bundle exists.
|
|
74
|
-
{
|
|
75
|
-
src: "dist/types/cjs/*",
|
|
76
|
-
dest: "dist/types/esm",
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
}),
|
|
60
|
+
{ file: "lib/index.d.mts", format: "es" },
|
|
61
|
+
{ file: "lib/index.d.cts", format: "cjs" },
|
|
80
62
|
],
|
|
63
|
+
plugins: [dts()],
|
|
81
64
|
},
|
|
82
65
|
// Sub path esm
|
|
83
66
|
{
|
|
84
|
-
input: getSubPathFileMap(directories
|
|
67
|
+
input: getSubPathFileMap(directories),
|
|
85
68
|
output: {
|
|
86
|
-
dir: "
|
|
69
|
+
dir: "lib",
|
|
87
70
|
exports: "named",
|
|
88
71
|
format: "esm",
|
|
89
|
-
|
|
72
|
+
entryFileNames: "[name].mjs",
|
|
73
|
+
chunkFileNames: "_shared/esm/[name]-[hash].mjs",
|
|
90
74
|
},
|
|
91
75
|
plugins: [
|
|
92
76
|
...basePlugins,
|
|
@@ -97,13 +81,13 @@ export default [
|
|
|
97
81
|
},
|
|
98
82
|
// Sub path cjs
|
|
99
83
|
{
|
|
100
|
-
input: getSubPathFileMap(directories
|
|
84
|
+
input: getSubPathFileMap(directories),
|
|
101
85
|
output: {
|
|
102
|
-
dir: "
|
|
86
|
+
dir: "lib",
|
|
103
87
|
exports: "named",
|
|
104
88
|
format: "cjs",
|
|
105
|
-
|
|
106
|
-
chunkFileNames: "_shared/cjs/[name]-[hash].
|
|
89
|
+
entryFileNames: "[name].cjs",
|
|
90
|
+
chunkFileNames: "_shared/cjs/[name]-[hash].cjs",
|
|
107
91
|
},
|
|
108
92
|
plugins: [
|
|
109
93
|
...basePlugins,
|
package/src/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.tsx
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
+
import { filterDataAttrs } from "@arc-ui/community-utils/filter-data-attrs";
|
|
4
|
+
|
|
3
5
|
import {
|
|
4
6
|
type DisclosureProps,
|
|
5
7
|
Disclosure,
|
|
@@ -20,6 +22,7 @@ export const AccordionDisclosureList: React.FC<
|
|
|
20
22
|
indentDetails = false,
|
|
21
23
|
headingLevel,
|
|
22
24
|
id,
|
|
25
|
+
...props
|
|
23
26
|
}) => (
|
|
24
27
|
<li key={id} className={styles.AccordionDisclosureListItem}>
|
|
25
28
|
<Disclosure
|
|
@@ -27,6 +30,7 @@ export const AccordionDisclosureList: React.FC<
|
|
|
27
30
|
isOpen={isOpen}
|
|
28
31
|
indentDetails={indentDetails}
|
|
29
32
|
headingLevel={headingLevel}
|
|
33
|
+
{...filterDataAttrs(props)}
|
|
30
34
|
>
|
|
31
35
|
{children}
|
|
32
36
|
</Disclosure>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import { Heading } from "@arc-ui/components/Heading";
|
|
3
|
+
import { Heading, HeadingLevel } from "@arc-ui/components/Heading";
|
|
4
4
|
import { Icon } from "@arc-ui/components/Icon";
|
|
5
5
|
import { Text } from "@arc-ui/components/Text";
|
|
6
6
|
import { VerticalSpace } from "@arc-ui/components/VerticalSpace";
|
|
@@ -13,6 +13,7 @@ import classNames from "classnames";
|
|
|
13
13
|
export const IconList: React.FC<IconListProps> = ({
|
|
14
14
|
listItems,
|
|
15
15
|
isLgScreen,
|
|
16
|
+
headingLevel = "3",
|
|
16
17
|
}) => (
|
|
17
18
|
<ul className={styles.list}>
|
|
18
19
|
{listItems.map(({ icon, heading, text }) => (
|
|
@@ -26,7 +27,7 @@ export const IconList: React.FC<IconListProps> = ({
|
|
|
26
27
|
<Icon color="brand" icon={icon} size={isLgScreen ? 64 : 48} />
|
|
27
28
|
</div>
|
|
28
29
|
<div className={styles.listItemTextContainer}>
|
|
29
|
-
<Heading level=
|
|
30
|
+
<Heading level={headingLevel} size="s">
|
|
30
31
|
{heading}
|
|
31
32
|
</Heading>
|
|
32
33
|
|
|
@@ -46,4 +47,5 @@ export const IconList: React.FC<IconListProps> = ({
|
|
|
46
47
|
interface IconListProps {
|
|
47
48
|
isLgScreen: boolean;
|
|
48
49
|
listItems: CopyLeadListItem[];
|
|
50
|
+
headingLevel?: HeadingLevel;
|
|
49
51
|
}
|
|
@@ -2,7 +2,10 @@ import React, { ReactNode } from "react";
|
|
|
2
2
|
|
|
3
3
|
import { ArcSizeBreakpointsL, ArcSizeBreakpointsM } from "@arc-ui/tokens-arc";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
HeadingLevel,
|
|
7
|
+
useMediaQuery,
|
|
8
|
+
} from "@arc-ui/components/use-media-query";
|
|
6
9
|
|
|
7
10
|
import {
|
|
8
11
|
SectionHeading,
|
|
@@ -15,6 +18,7 @@ import { IconList } from "../../components/IconList";
|
|
|
15
18
|
import { Button } from "../../components/Button/Button";
|
|
16
19
|
import { Container } from "../../components/Container";
|
|
17
20
|
import { Column } from "../../components/Column";
|
|
21
|
+
import { getListHeadingLevel } from "../../utils/getListHeadingLevel";
|
|
18
22
|
|
|
19
23
|
export const ContentTemplate: React.FC<ContentTemplateProps> = ({
|
|
20
24
|
button,
|
|
@@ -31,6 +35,8 @@ export const ContentTemplate: React.FC<ContentTemplateProps> = ({
|
|
|
31
35
|
`(min-width: ${ArcSizeBreakpointsL})`,
|
|
32
36
|
);
|
|
33
37
|
|
|
38
|
+
const listHeadingLevel = getListHeadingLevel(headingLevel);
|
|
39
|
+
|
|
34
40
|
return (
|
|
35
41
|
<Container type="content" alignment="top">
|
|
36
42
|
<Column>
|
|
@@ -43,7 +49,11 @@ export const ContentTemplate: React.FC<ContentTemplateProps> = ({
|
|
|
43
49
|
{button && isMinWidthArcBreakpointM && <Button {...button} />}
|
|
44
50
|
</Column>
|
|
45
51
|
<Column>
|
|
46
|
-
<IconList
|
|
52
|
+
<IconList
|
|
53
|
+
listItems={listItems}
|
|
54
|
+
isLgScreen={isMinWidthArcBreakpointL}
|
|
55
|
+
headingLevel={listHeadingLevel}
|
|
56
|
+
/>
|
|
47
57
|
|
|
48
58
|
{button && !isMinWidthArcBreakpointM && <Button {...button} />}
|
|
49
59
|
</Column>
|
|
@@ -55,4 +65,5 @@ interface ContentTemplateProps extends SectionHeadingProps {
|
|
|
55
65
|
content: string | ReactNode;
|
|
56
66
|
listItems: CopyLeadListItem[];
|
|
57
67
|
button?: CopyLeadButton;
|
|
68
|
+
headingLevel: HeadingLevel;
|
|
58
69
|
}
|
|
@@ -20,6 +20,7 @@ import { IconList } from "../../components/IconList";
|
|
|
20
20
|
import { Button } from "../../components/Button/Button";
|
|
21
21
|
import { Container } from "../../components/Container";
|
|
22
22
|
import { Column } from "../../components/Column";
|
|
23
|
+
import { getListHeadingLevel } from "../../utils/getListHeadingLevel";
|
|
23
24
|
|
|
24
25
|
const VideoPlayer = React.lazy(() =>
|
|
25
26
|
import("@arc-ui/components/VideoPlayer").then(({ VideoPlayer }) => ({
|
|
@@ -47,6 +48,8 @@ export const MediaTemplate: React.FC<MediaTemplateProps> = ({
|
|
|
47
48
|
`(min-width: ${ArcSizeBreakpointsXl})`,
|
|
48
49
|
);
|
|
49
50
|
|
|
51
|
+
const listHeadingLevel = getListHeadingLevel(headingLevel);
|
|
52
|
+
|
|
50
53
|
useEffect(() => {
|
|
51
54
|
setIsClient(true);
|
|
52
55
|
}, []);
|
|
@@ -75,6 +78,7 @@ export const MediaTemplate: React.FC<MediaTemplateProps> = ({
|
|
|
75
78
|
<IconList
|
|
76
79
|
listItems={listItems}
|
|
77
80
|
isLgScreen={isMinWidthArcBreakpointL}
|
|
81
|
+
headingLevel={listHeadingLevel}
|
|
78
82
|
/>
|
|
79
83
|
|
|
80
84
|
{button && <Button {...button} />}
|
|
@@ -94,7 +98,7 @@ export const MediaTemplate: React.FC<MediaTemplateProps> = ({
|
|
|
94
98
|
|
|
95
99
|
interface MediaTemplateProps {
|
|
96
100
|
heading: string;
|
|
97
|
-
headingLevel
|
|
101
|
+
headingLevel: HeadingLevel;
|
|
98
102
|
listItems: CopyLeadListItem[];
|
|
99
103
|
content?: string | ReactNode;
|
|
100
104
|
isReverseOrder?: boolean;
|
|
@@ -2,8 +2,8 @@ html {
|
|
|
2
2
|
scroll-behavior: smooth;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
ul,
|
|
6
|
-
li {
|
|
5
|
+
.FAQs ul,
|
|
6
|
+
.FAQs li {
|
|
7
7
|
list-style: none;
|
|
8
8
|
margin: 0;
|
|
9
9
|
padding: 0;
|
|
@@ -25,13 +25,13 @@ li {
|
|
|
25
25
|
row-gap: 8px;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.linkListItem::after {
|
|
28
|
+
.linkListSection .linkListItem::after {
|
|
29
29
|
content: "|";
|
|
30
30
|
padding: 0 8px;
|
|
31
31
|
color: #d9d9d9;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.linkListItem:last-child::after {
|
|
34
|
+
.linkListSection .linkListItem:last-child::after {
|
|
35
35
|
content: "";
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -23,7 +23,7 @@ export const FAQs: React.FC<FAQsProps> = ({
|
|
|
23
23
|
accordionData,
|
|
24
24
|
...props
|
|
25
25
|
}) => (
|
|
26
|
-
<div {...filterDataAttrs(props)}>
|
|
26
|
+
<div className={styles.FAQs} {...filterDataAttrs(props)}>
|
|
27
27
|
<SectionHeading
|
|
28
28
|
heading={heading}
|
|
29
29
|
content={content}
|
|
@@ -38,7 +38,7 @@ export const FAQs: React.FC<FAQsProps> = ({
|
|
|
38
38
|
</div>
|
|
39
39
|
<ul
|
|
40
40
|
className={classNames({
|
|
41
|
-
[styles
|
|
41
|
+
[styles.linkList]: true,
|
|
42
42
|
[styles["linkList--padded"]]: isPadded,
|
|
43
43
|
})}
|
|
44
44
|
>
|
|
@@ -47,8 +47,14 @@ export const FAQs: React.FC<FAQsProps> = ({
|
|
|
47
47
|
<Link
|
|
48
48
|
title={item.heading}
|
|
49
49
|
href={`#${item.id}`}
|
|
50
|
-
onClick={() => {
|
|
51
|
-
|
|
50
|
+
onClick={(e) => {
|
|
51
|
+
e.preventDefault();
|
|
52
|
+
if (item.id) {
|
|
53
|
+
const element = document.getElementById(item.id);
|
|
54
|
+
if (element) {
|
|
55
|
+
element.scrollIntoView({ behavior: "smooth" });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
52
58
|
}}
|
|
53
59
|
>
|
|
54
60
|
{item.altLinkTitle ?? item.heading}
|
|
@@ -59,9 +65,9 @@ export const FAQs: React.FC<FAQsProps> = ({
|
|
|
59
65
|
</div>
|
|
60
66
|
)}
|
|
61
67
|
{type !== "tabs" && accordionData && (
|
|
62
|
-
<ul>
|
|
68
|
+
<ul className={styles.accordionList}>
|
|
63
69
|
{accordionData.map((item: ExtendedAccordionProps) => (
|
|
64
|
-
<li key={item.id}>
|
|
70
|
+
<li className={styles.accordionListItem} key={item.id}>
|
|
65
71
|
<Accordion
|
|
66
72
|
id={item.id}
|
|
67
73
|
heading={item.heading}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
2
|
import { useMediaQuery } from "@arc-ui/components/use-media-query";
|
|
3
|
+
import { ButtonV2, type ButtonV2Props } from "@arc-ui/components/ButtonV2";
|
|
4
|
+
import { VerticalSpace } from "@arc-ui/components/VerticalSpace";
|
|
5
|
+
import { BtIconArrowRightFill } from "@arc-ui/icons/BtIconArrowRightFill";
|
|
4
6
|
|
|
5
7
|
import { SectionHeading, type SectionHeadingProps } from "../SectionHeading";
|
|
6
|
-
|
|
7
8
|
import { HighlightList } from "./components/HighlightList/HighlightList";
|
|
8
|
-
|
|
9
9
|
import { type HighlightListItem } from "./types";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Use `Highlights` to give supporting information about a page or proposition.
|
|
12
|
+
* Use `Highlights` to give supporting information about a page or proposition. I
|
|
13
|
+
* t can be used to call out key benefits in bullet points, or link.
|
|
14
|
+
* Both two and three column options are available.
|
|
13
15
|
*/
|
|
14
16
|
export const Highlights: React.FC<HighlightsProps> = ({
|
|
15
17
|
heading,
|
|
@@ -17,8 +19,9 @@ export const Highlights: React.FC<HighlightsProps> = ({
|
|
|
17
19
|
content,
|
|
18
20
|
listItems,
|
|
19
21
|
columns = "2",
|
|
22
|
+
cta,
|
|
20
23
|
}) => {
|
|
21
|
-
const isMaxWidthArcBreakpointXs = useMediaQuery(
|
|
24
|
+
const isMaxWidthArcBreakpointXs = useMediaQuery("(max-width: 767px)");
|
|
22
25
|
|
|
23
26
|
return (
|
|
24
27
|
<div>
|
|
@@ -35,19 +38,74 @@ export const Highlights: React.FC<HighlightsProps> = ({
|
|
|
35
38
|
listItems={listItems}
|
|
36
39
|
columns={columns}
|
|
37
40
|
isSmallIcon={isMaxWidthArcBreakpointXs}
|
|
41
|
+
headingLevel={headingLevel}
|
|
38
42
|
/>
|
|
43
|
+
|
|
44
|
+
{cta && (
|
|
45
|
+
<>
|
|
46
|
+
<VerticalSpace size="24" />
|
|
47
|
+
<ButtonV2
|
|
48
|
+
label={cta.label}
|
|
49
|
+
href={cta.href}
|
|
50
|
+
onClick={cta.onClick}
|
|
51
|
+
size="m"
|
|
52
|
+
buttonStyle={cta.buttonStyle}
|
|
53
|
+
icon={
|
|
54
|
+
cta.buttonStyle === "compact"
|
|
55
|
+
? (cta.icon ?? BtIconArrowRightFill)
|
|
56
|
+
: undefined
|
|
57
|
+
}
|
|
58
|
+
iconActive={
|
|
59
|
+
cta.buttonStyle === "compact"
|
|
60
|
+
? (cta.iconActive ?? BtIconArrowRightFill)
|
|
61
|
+
: undefined
|
|
62
|
+
}
|
|
63
|
+
iconPosition={cta.iconPosition ?? "beforeText"}
|
|
64
|
+
/>
|
|
65
|
+
</>
|
|
66
|
+
)}
|
|
39
67
|
</div>
|
|
40
68
|
);
|
|
41
69
|
};
|
|
42
70
|
|
|
43
71
|
export interface HighlightsProps extends Omit<SectionHeadingProps, "isPadded"> {
|
|
44
72
|
/**
|
|
45
|
-
* List items for `Highlights`.
|
|
73
|
+
* List items for `Highlights`.
|
|
74
|
+
* List length should be a minimum of 2 and a maximum of 6.
|
|
46
75
|
*/
|
|
47
76
|
listItems: HighlightListItem[];
|
|
48
77
|
|
|
49
78
|
/**
|
|
50
|
-
* Number of columns for option desktop
|
|
79
|
+
* Number of columns for option desktop & tablet breakpoints only.
|
|
51
80
|
*/
|
|
52
81
|
columns?: "2" | "3";
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Optional CTA rendered at the end of Highlights.
|
|
85
|
+
* Only ONE CTA is allowed.
|
|
86
|
+
*/
|
|
87
|
+
cta?: HighlightsCTAProps;
|
|
53
88
|
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* CTA configuration for Highlights
|
|
92
|
+
*/
|
|
93
|
+
export type HighlightsCTAProps = Pick<
|
|
94
|
+
ButtonV2Props,
|
|
95
|
+
"label" | "href" | "onClick" | "iconPosition"
|
|
96
|
+
> & {
|
|
97
|
+
/**
|
|
98
|
+
* Allowed button styles only.
|
|
99
|
+
* Primary is intentionally NOT supported.
|
|
100
|
+
*/
|
|
101
|
+
buttonStyle: "secondary" | "compact";
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Icon override & Active icon override
|
|
105
|
+
* - undefined → uses default BtIconArrowRightFill for compact style
|
|
106
|
+
* - null → icon disabled
|
|
107
|
+
* - string → custom icon
|
|
108
|
+
*/
|
|
109
|
+
icon?: string | null;
|
|
110
|
+
iconActive?: string | null;
|
|
111
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
|
|
3
|
-
import { Heading } from "@arc-ui/components/Heading";
|
|
3
|
+
import { Heading, HeadingLevel } from "@arc-ui/components/Heading";
|
|
4
4
|
import { Icon } from "@arc-ui/components/Icon";
|
|
5
5
|
import { Text } from "@arc-ui/components/Text";
|
|
6
6
|
import { Link } from "@arc-ui/components/Link";
|
|
@@ -9,6 +9,7 @@ import { VerticalSpace } from "@arc-ui/components/VerticalSpace";
|
|
|
9
9
|
import { type HighlightLink } from "../../types";
|
|
10
10
|
|
|
11
11
|
import styles from "../../Highlights.module.css";
|
|
12
|
+
import { getListHeadingLevel } from "../../utils/getListHeadingLevel";
|
|
12
13
|
|
|
13
14
|
export const HighlightItem: React.FC<HighlightItemProps> = ({
|
|
14
15
|
icon,
|
|
@@ -16,7 +17,10 @@ export const HighlightItem: React.FC<HighlightItemProps> = ({
|
|
|
16
17
|
text,
|
|
17
18
|
link,
|
|
18
19
|
isSmallIcon,
|
|
20
|
+
headingLevel,
|
|
19
21
|
}) => {
|
|
22
|
+
const listHeadingLevel = getListHeadingLevel(headingLevel || "2");
|
|
23
|
+
|
|
20
24
|
return (
|
|
21
25
|
<div
|
|
22
26
|
data-testid="highlight-item-container"
|
|
@@ -33,7 +37,7 @@ export const HighlightItem: React.FC<HighlightItemProps> = ({
|
|
|
33
37
|
</div>
|
|
34
38
|
)}
|
|
35
39
|
<VerticalSpace size="16" />
|
|
36
|
-
<Heading level=
|
|
40
|
+
<Heading level={listHeadingLevel} size="m">
|
|
37
41
|
{heading}
|
|
38
42
|
</Heading>
|
|
39
43
|
<VerticalSpace size="16" />
|
|
@@ -63,4 +67,5 @@ interface HighlightItemProps {
|
|
|
63
67
|
text?: string | ReactNode;
|
|
64
68
|
link?: HighlightLink;
|
|
65
69
|
isSmallIcon: boolean;
|
|
70
|
+
headingLevel?: HeadingLevel;
|
|
66
71
|
}
|
|
@@ -3,6 +3,7 @@ import classNames from "classnames";
|
|
|
3
3
|
|
|
4
4
|
import { type HighlightListItem } from "../../types/highlight-list-item";
|
|
5
5
|
import { HighlightItem } from "../HighlightItem/HighlightItem";
|
|
6
|
+
import { HeadingLevel } from "@arc-ui/components/Heading";
|
|
6
7
|
|
|
7
8
|
import styles from "../../Highlights.module.css";
|
|
8
9
|
|
|
@@ -10,6 +11,7 @@ export const HighlightList: React.FC<HighlightListProps> = ({
|
|
|
10
11
|
listItems,
|
|
11
12
|
columns,
|
|
12
13
|
isSmallIcon,
|
|
14
|
+
headingLevel,
|
|
13
15
|
}) => {
|
|
14
16
|
const id = useId();
|
|
15
17
|
|
|
@@ -29,6 +31,7 @@ export const HighlightList: React.FC<HighlightListProps> = ({
|
|
|
29
31
|
text={text}
|
|
30
32
|
link={link}
|
|
31
33
|
isSmallIcon={isSmallIcon}
|
|
34
|
+
headingLevel={headingLevel}
|
|
32
35
|
/>
|
|
33
36
|
))}
|
|
34
37
|
</div>
|
|
@@ -39,4 +42,5 @@ interface HighlightListProps {
|
|
|
39
42
|
listItems: HighlightListItem[];
|
|
40
43
|
columns: "2" | "3";
|
|
41
44
|
isSmallIcon: boolean;
|
|
45
|
+
headingLevel?: HeadingLevel;
|
|
42
46
|
}
|