@arc-ui/community-components 0.1.0 → 1.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 +127 -7
- package/CHANGELOG.md +22 -0
- package/dist/Accordion/Accordion.cjs.js +9 -9
- package/dist/Accordion/Accordion.esm.js +7 -7
- package/dist/ArticleSidebar/ArticleSidebar.cjs.js +185 -0
- package/dist/ArticleSidebar/ArticleSidebar.esm.js +183 -0
- package/dist/ArticleSidebar/styles.css +1 -0
- package/dist/Author/Author.cjs.js +6 -7
- package/dist/Author/Author.esm.js +6 -7
- package/dist/BannerWithTabs/BannerWithTabs.cjs.js +15 -25
- package/dist/BannerWithTabs/BannerWithTabs.esm.js +16 -26
- package/dist/BannerWithTabs/styles.css +1 -1
- package/dist/CopyLead/CopyLead.cjs.js +25 -27
- package/dist/CopyLead/CopyLead.esm.js +15 -17
- package/dist/DownloadList/DownloadList.cjs.js +10 -9
- package/dist/DownloadList/DownloadList.esm.js +9 -8
- package/dist/FeaturePost/FeaturePost.cjs.js +28 -31
- package/dist/FeaturePost/FeaturePost.esm.js +21 -24
- package/dist/Highlights/Highlights.cjs.js +10 -10
- package/dist/Highlights/Highlights.esm.js +10 -10
- package/dist/ProductNavigation/ProductNavigation.cjs.js +86 -0
- package/dist/ProductNavigation/ProductNavigation.esm.js +84 -0
- package/dist/ProductNavigation/styles.css +1 -0
- package/dist/PromoListing/PromoListing.cjs.js +17 -17
- package/dist/PromoListing/PromoListing.esm.js +13 -13
- package/dist/Quote/Quote.cjs.js +8 -9
- package/dist/Quote/Quote.esm.js +6 -7
- package/dist/SectionHeading/SectionHeading.cjs.js +6 -6
- package/dist/SectionHeading/SectionHeading.esm.js +6 -6
- package/dist/SectionHeading/styles.css +1 -1
- package/dist/Statistics/Statistics.cjs.js +14 -14
- package/dist/Statistics/Statistics.esm.js +13 -13
- package/dist/Summary/Summary.cjs.js +7 -7
- package/dist/Summary/Summary.esm.js +7 -7
- package/dist/_shared/cjs/{Author-CAo-qryZ.js → Author-BXxxwh6E.js} +11 -12
- package/dist/_shared/cjs/SectionHeading-7IxNz67p.js +29 -0
- package/dist/_shared/cjs/filter-data-attrs-DlS_Fyr9.js +112 -0
- package/dist/_shared/cjs/{index.es-X428Cm3N.js → index.es-HAMLJhPd.js} +1 -1
- package/dist/_shared/esm/{Author-Bx-cE9Pz.js → Author-B8tJxqB8.js} +8 -9
- package/dist/_shared/esm/SectionHeading-Dz0GfXsP.js +27 -0
- package/dist/_shared/esm/filter-data-attrs-DAx-HNG5.js +106 -0
- package/dist/_shared/esm/{index.es-BzmvPxje.js → index.es-BI7la-9v.js} +2 -2
- package/dist/index.es.js +399 -127
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +400 -125
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/{components → cjs/components}/Accordion/Accordion.d.ts +1 -1
- package/dist/types/{components → cjs/components}/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.d.ts +1 -1
- package/dist/types/cjs/components/ArticleSidebar/ArticleSidebar.d.ts +36 -0
- package/dist/types/cjs/components/ArticleSidebar/index.d.ts +1 -0
- package/dist/types/cjs/components/ArticleSidebar/types/link-section.d.ts +11 -0
- package/dist/types/cjs/components/ArticleSidebar/types/share-button.d.ts +8 -0
- package/dist/types/cjs/components/ArticleSidebar/types/share.d.ts +8 -0
- package/dist/types/cjs/components/ArticleSidebar/types/sidebar-author.d.ts +4 -0
- package/dist/types/cjs/components/ArticleSidebar/types/text-section.d.ts +6 -0
- package/dist/types/cjs/components/ArticleSidebar/types/topic.d.ts +7 -0
- package/dist/types/{components → cjs/components}/Author/Author.d.ts +1 -1
- package/dist/types/cjs/components/BannerWithTabs/BannerWithTabs.d.ts +42 -0
- package/dist/types/{components → cjs/components}/CopyLead/components/MediaContent/MediaContent.d.ts +1 -1
- package/dist/types/{components → cjs/components}/CopyLead/templates/Media/Media.d.ts +2 -2
- package/dist/types/cjs/components/CopyLead/types/copy-lead-list-item.d.ts +6 -0
- package/dist/types/cjs/components/DownloadList/DownloadList.d.ts +7 -0
- package/dist/types/{components → cjs/components}/FeaturePost/FeaturePost.d.ts +2 -2
- package/dist/types/{components → cjs/components}/FeaturePost/components/MediaContent/MediaContent.d.ts +1 -1
- package/dist/types/{components → cjs/components}/Highlights/Highlights.d.ts +1 -1
- package/dist/types/{components → cjs/components}/Highlights/components/HighlightItem/HighlightItem.d.ts +3 -5
- package/dist/types/cjs/components/Highlights/types/highlight-link.d.ts +5 -0
- package/dist/types/cjs/components/Highlights/types/highlight-list-item.d.ts +8 -0
- package/dist/types/{components → cjs/components}/Highlights/types/index.d.ts +1 -0
- package/dist/types/cjs/components/ProductNavigation/ProductNavigation.d.ts +49 -0
- package/dist/types/cjs/components/ProductNavigation/index.d.ts +2 -0
- package/dist/types/cjs/components/ProductNavigation/types/index.d.ts +1 -0
- package/dist/types/cjs/components/ProductNavigation/types/product-list.d.ts +6 -0
- package/dist/types/{components → cjs/components}/PromoListing/PromoListing.d.ts +5 -5
- package/dist/types/{components → cjs/components}/SectionHeading/SectionHeading.d.ts +6 -1
- package/dist/types/{components → cjs/components}/Summary/Summary.d.ts +1 -1
- package/dist/types/cjs/components/index.d.ts +14 -0
- package/dist/types/cjs/types/arc-icon.d.ts +2 -0
- package/dist/types/esm/components/Accordion/Accordion.d.ts +9 -0
- package/dist/types/esm/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.d.ts +9 -0
- package/dist/types/esm/components/Accordion/index.d.ts +1 -0
- package/dist/types/esm/components/ArticleSidebar/ArticleSidebar.d.ts +36 -0
- package/dist/types/esm/components/ArticleSidebar/index.d.ts +1 -0
- package/dist/types/esm/components/ArticleSidebar/types/link-section.d.ts +11 -0
- package/dist/types/esm/components/ArticleSidebar/types/share-button.d.ts +8 -0
- package/dist/types/esm/components/ArticleSidebar/types/share.d.ts +8 -0
- package/dist/types/esm/components/ArticleSidebar/types/sidebar-author.d.ts +4 -0
- package/dist/types/esm/components/ArticleSidebar/types/text-section.d.ts +6 -0
- package/dist/types/esm/components/ArticleSidebar/types/topic.d.ts +7 -0
- package/dist/types/esm/components/Author/Author.d.ts +17 -0
- package/dist/types/esm/components/Author/index.d.ts +1 -0
- package/dist/types/esm/components/BannerWithTabs/BannerWithTabs.d.ts +42 -0
- package/dist/types/esm/components/BannerWithTabs/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/CopyLead.d.ts +42 -0
- package/dist/types/esm/components/CopyLead/components/Button/Button.d.ts +3 -0
- package/dist/types/esm/components/CopyLead/components/Button/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/components/Column/Column.d.ts +6 -0
- package/dist/types/esm/components/CopyLead/components/Column/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/components/Container/Container.d.ts +9 -0
- package/dist/types/esm/components/CopyLead/components/Container/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/components/IconList/IconList.d.ts +8 -0
- package/dist/types/esm/components/CopyLead/components/IconList/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/components/Image/Image.d.ts +3 -0
- package/dist/types/esm/components/CopyLead/components/Image/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/components/MediaContent/MediaContent.d.ts +9 -0
- package/dist/types/esm/components/CopyLead/components/MediaContent/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/templates/Content/Content.d.ts +10 -0
- package/dist/types/esm/components/CopyLead/templates/Content/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/templates/Media/Media.d.ts +16 -0
- package/dist/types/esm/components/CopyLead/templates/Media/index.d.ts +1 -0
- package/dist/types/esm/components/CopyLead/types/copy-lead-button.d.ts +2 -0
- package/dist/types/esm/components/CopyLead/types/copy-lead-image.d.ts +4 -0
- package/dist/types/esm/components/CopyLead/types/copy-lead-list-item.d.ts +6 -0
- package/dist/types/esm/components/CopyLead/types/copy-lead-transcript-link.d.ts +6 -0
- package/dist/types/esm/components/CopyLead/types/index.d.ts +4 -0
- package/dist/types/esm/components/DownloadList/DownloadList.d.ts +7 -0
- package/dist/types/esm/components/DownloadList/index.d.ts +1 -0
- package/dist/types/esm/components/FeaturePost/FeaturePost.d.ts +45 -0
- package/dist/types/esm/components/FeaturePost/components/Image/Image.d.ts +3 -0
- package/dist/types/esm/components/FeaturePost/components/Image/index.d.ts +1 -0
- package/dist/types/esm/components/FeaturePost/components/MediaContent/MediaContent.d.ts +15 -0
- package/dist/types/esm/components/FeaturePost/index.d.ts +1 -0
- package/dist/types/esm/components/FeaturePost/types/feature-post-app-button-footer.d.ts +6 -0
- package/dist/types/esm/components/FeaturePost/types/feature-post-cta-footer.d.ts +7 -0
- package/dist/types/esm/components/FeaturePost/types/feature-post-image.d.ts +4 -0
- package/dist/types/esm/components/FeaturePost/types/index.d.ts +3 -0
- package/dist/types/esm/components/Highlights/Highlights.d.ts +17 -0
- package/dist/types/esm/components/Highlights/components/HighlightItem/HighlightItem.d.ts +12 -0
- package/dist/types/esm/components/Highlights/components/HighlightList/HighlightList.d.ts +9 -0
- package/dist/types/esm/components/Highlights/index.d.ts +1 -0
- package/dist/types/esm/components/Highlights/types/highlight-link.d.ts +5 -0
- package/dist/types/esm/components/Highlights/types/highlight-list-item.d.ts +8 -0
- package/dist/types/esm/components/Highlights/types/index.d.ts +2 -0
- package/dist/types/esm/components/ProductNavigation/ProductNavigation.d.ts +49 -0
- package/dist/types/esm/components/ProductNavigation/index.d.ts +2 -0
- package/dist/types/esm/components/ProductNavigation/types/index.d.ts +1 -0
- package/dist/types/esm/components/ProductNavigation/types/product-list.d.ts +6 -0
- package/dist/types/esm/components/PromoListing/PromoListing.d.ts +38 -0
- package/dist/types/esm/components/PromoListing/index.d.ts +1 -0
- package/dist/types/esm/components/Quote/Quote.d.ts +11 -0
- package/dist/types/esm/components/Quote/index.d.ts +1 -0
- package/dist/types/esm/components/SectionHeading/SectionHeading.d.ts +30 -0
- package/dist/types/esm/components/SectionHeading/index.d.ts +1 -0
- package/dist/types/esm/components/Statistics/Statistics.d.ts +7 -0
- package/dist/types/esm/components/Statistics/helpers/get-link-props.d.ts +2 -0
- package/dist/types/esm/components/Statistics/index.d.ts +1 -0
- package/dist/types/esm/components/Statistics/types/statistic-link.d.ts +6 -0
- package/dist/types/esm/components/Statistics/types/statistic.d.ts +8 -0
- package/dist/types/esm/components/Summary/Summary.d.ts +18 -0
- package/dist/types/esm/components/Summary/index.d.ts +1 -0
- package/dist/types/esm/components/index.d.ts +14 -0
- package/dist/types/esm/index.d.ts +1 -0
- package/dist/types/esm/types/arc-icon.d.ts +2 -0
- package/generate-versions.js +19 -0
- package/package.json +37 -34
- package/rollup.config.js +15 -1
- package/src/components/Accordion/Accordion.tsx +1 -1
- package/src/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.tsx +1 -1
- package/src/components/ArticleSidebar/ArticleSidebar.module.css +35 -0
- package/src/components/ArticleSidebar/ArticleSidebar.tsx +219 -0
- package/src/components/ArticleSidebar/index.ts +1 -0
- package/src/components/ArticleSidebar/types/link-section.ts +12 -0
- package/src/components/ArticleSidebar/types/share-button.ts +9 -0
- package/src/components/ArticleSidebar/types/share.ts +9 -0
- package/src/components/ArticleSidebar/types/sidebar-author.ts +5 -0
- package/src/components/ArticleSidebar/types/text-section.ts +7 -0
- package/src/components/ArticleSidebar/types/topic.ts +8 -0
- package/src/components/Author/Author.tsx +10 -10
- package/src/components/BannerWithTabs/BannerWithTabs.module.css +22 -0
- package/src/components/BannerWithTabs/BannerWithTabs.tsx +65 -51
- package/src/components/CopyLead/CopyLead.tsx +1 -1
- package/src/components/CopyLead/components/Button/Button.tsx +1 -1
- package/src/components/CopyLead/components/IconList/IconList.tsx +4 -4
- package/src/components/CopyLead/components/Image/Image.tsx +2 -4
- package/src/components/CopyLead/components/MediaContent/MediaContent.tsx +3 -3
- package/src/components/CopyLead/templates/Content/Content.tsx +1 -1
- package/src/components/CopyLead/templates/Media/Media.tsx +7 -7
- package/src/components/CopyLead/types/copy-lead-list-item.ts +2 -2
- package/src/components/DownloadList/DownloadList.tsx +10 -13
- package/src/components/FeaturePost/FeaturePost.tsx +20 -20
- package/src/components/FeaturePost/components/Image/Image.tsx +2 -4
- package/src/components/FeaturePost/components/MediaContent/MediaContent.tsx +2 -2
- package/src/components/Highlights/Highlights.tsx +2 -2
- package/src/components/Highlights/components/HighlightItem/HighlightItem.tsx +11 -11
- package/src/components/Highlights/types/highlight-link.ts +5 -0
- package/src/components/Highlights/types/highlight-list-item.ts +3 -5
- package/src/components/Highlights/types/index.ts +1 -0
- package/src/components/ProductNavigation/ProductNavigation.module.css +51 -0
- package/src/components/ProductNavigation/ProductNavigation.tsx +200 -0
- package/src/components/ProductNavigation/index.ts +5 -0
- package/src/components/ProductNavigation/types/index.ts +1 -0
- package/src/components/ProductNavigation/types/product-list.ts +10 -0
- package/src/components/PromoListing/PromoListing.tsx +8 -10
- package/src/components/SectionHeading/SectionHeading.module.css +13 -1
- package/src/components/SectionHeading/SectionHeading.tsx +24 -7
- package/src/components/Statistics/Statistics.tsx +14 -14
- package/src/components/Summary/Summary.tsx +6 -6
- package/src/components/index.ts +14 -11
- package/src/types/arc-icon.ts +2 -0
- package/versions.json +1 -0
- package/dist/_shared/cjs/SectionHeading-L2EpTQ79.js +0 -25
- package/dist/_shared/cjs/filter-data-attrs-ajtUvDAC.js +0 -15
- package/dist/_shared/cjs/tslib.es6-DBA0GFPJ.js +0 -48
- package/dist/_shared/esm/SectionHeading-C70XNhqJ.js +0 -23
- package/dist/_shared/esm/filter-data-attrs-V7cbJuwS.js +0 -13
- package/dist/_shared/esm/tslib.es6-Cv15O4Nx.js +0 -46
- package/dist/types/components/BannerWithTabs/BannerWithTabs.d.ts +0 -17
- package/dist/types/components/CopyLead/types/copy-lead-list-item.d.ts +0 -6
- package/dist/types/components/DownloadList/DownloadList.d.ts +0 -10
- package/dist/types/components/Highlights/types/highlight-list-item.d.ts +0 -10
- package/dist/types/components/index.d.ts +0 -11
- /package/dist/types/{components → cjs/components}/Accordion/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Author/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/BannerWithTabs/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/CopyLead.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Button/Button.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Button/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Column/Column.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Column/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Container/Container.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Container/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/IconList/IconList.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/IconList/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Image/Image.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/Image/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/components/MediaContent/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/templates/Content/Content.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/templates/Content/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/templates/Media/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/types/copy-lead-button.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/types/copy-lead-image.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/types/copy-lead-transcript-link.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/CopyLead/types/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/DownloadList/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/components/Image/Image.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/components/Image/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/types/feature-post-app-button-footer.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/types/feature-post-cta-footer.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/types/feature-post-image.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/FeaturePost/types/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Highlights/components/HighlightList/HighlightList.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Highlights/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/PromoListing/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Quote/Quote.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Quote/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/SectionHeading/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Statistics/Statistics.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Statistics/helpers/get-link-props.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Statistics/index.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Statistics/types/statistic-link.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Statistics/types/statistic.d.ts +0 -0
- /package/dist/types/{components → cjs/components}/Summary/index.d.ts +0 -0
- /package/dist/types/{index.d.ts → cjs/index.d.ts} +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import React, { useState, useEffect, Suspense, useId } from 'react';
|
|
2
|
-
import { Heading } from '@arc-ui/components/
|
|
3
|
-
import { Text } from '@arc-ui/components/
|
|
4
|
-
import { VerticalSpace } from '@arc-ui/components/
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { Icon } from '@arc-ui/components/
|
|
12
|
-
import { ButtonV2 } from '@arc-ui/components/
|
|
13
|
-
import { Download } from '@arc-ui/components/
|
|
14
|
-
import { AppButton } from '@arc-ui/components/
|
|
15
|
-
import { Link } from '@arc-ui/components/
|
|
16
|
-
import { Carousel } from '@arc-ui/components/
|
|
17
|
-
import { MediaCard } from '@arc-ui/components/
|
|
18
|
-
import { ImpactCard } from '@arc-ui/components/
|
|
19
|
-
import { InformationCard } from '@arc-ui/components/
|
|
20
|
-
import { TypographyCard } from '@arc-ui/components/
|
|
21
|
-
import { Box } from '@arc-ui/components/
|
|
22
|
-
import { Rule } from '@arc-ui/components/
|
|
23
|
-
import { Align } from '@arc-ui/components/
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
1
|
+
import React, { useState, useEffect, Suspense, useId, useRef } from 'react';
|
|
2
|
+
import { Heading } from '@arc-ui/components/Heading';
|
|
3
|
+
import { Text } from '@arc-ui/components/Text';
|
|
4
|
+
import { VerticalSpace } from '@arc-ui/components/VerticalSpace';
|
|
5
|
+
import { Image as Image$2 } from '@arc-ui/components/Image';
|
|
6
|
+
import { Disclosure } from '@arc-ui/components/Disclosure';
|
|
7
|
+
import { Grid, GridRow, GridCol } from '@arc-ui/components/Grid';
|
|
8
|
+
import { Avatar } from '@arc-ui/components/Avatar';
|
|
9
|
+
import { Columns, ColumnsCol } from '@arc-ui/components/Columns';
|
|
10
|
+
import { useMediaQuery } from '@arc-ui/components/use-media-query';
|
|
11
|
+
import { Icon } from '@arc-ui/components/Icon';
|
|
12
|
+
import { ButtonV2 } from '@arc-ui/components/ButtonV2';
|
|
13
|
+
import { Download } from '@arc-ui/components/Download';
|
|
14
|
+
import { AppButton } from '@arc-ui/components/AppButton';
|
|
15
|
+
import { Link } from '@arc-ui/components/Link';
|
|
16
|
+
import { Carousel } from '@arc-ui/components/Carousel';
|
|
17
|
+
import { MediaCard } from '@arc-ui/components/MediaCard';
|
|
18
|
+
import { ImpactCard } from '@arc-ui/components/ImpactCard';
|
|
19
|
+
import { InformationCard } from '@arc-ui/components/InformationCard';
|
|
20
|
+
import { TypographyCard } from '@arc-ui/components/TypographyCard';
|
|
21
|
+
import { Box } from '@arc-ui/components/Box';
|
|
22
|
+
import { Rule } from '@arc-ui/components/Rule';
|
|
23
|
+
import { Align } from '@arc-ui/components/Align';
|
|
24
|
+
import { TabbedBanner, InformationCard as InformationCard$1, VerticalSpace as VerticalSpace$1, ButtonV2 as ButtonV2$1, VisuallyHidden } from '@arc-ui/components';
|
|
25
|
+
import { Tag } from '@arc-ui/components/Tag';
|
|
26
|
+
import { Toast, ToastNotification } from '@arc-ui/components/Toast';
|
|
27
27
|
|
|
28
28
|
/******************************************************************************
|
|
29
29
|
Copyright (c) Microsoft Corporation.
|
|
@@ -65,6 +65,54 @@ function __rest(s, e) {
|
|
|
65
65
|
return t;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
69
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
70
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
71
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
72
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
73
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
74
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function __generator(thisArg, body) {
|
|
79
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
80
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
81
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
82
|
+
function step(op) {
|
|
83
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
84
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
85
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
86
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
87
|
+
switch (op[0]) {
|
|
88
|
+
case 0: case 1: t = op; break;
|
|
89
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
90
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
91
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
92
|
+
default:
|
|
93
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
94
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
95
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
96
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
97
|
+
if (t[2]) _.ops.pop();
|
|
98
|
+
_.trys.pop(); continue;
|
|
99
|
+
}
|
|
100
|
+
op = body.call(thisArg, _);
|
|
101
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
102
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function __spreadArray(to, from, pack) {
|
|
107
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
108
|
+
if (ar || !(i in from)) {
|
|
109
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
110
|
+
ar[i] = from[i];
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
114
|
+
}
|
|
115
|
+
|
|
68
116
|
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
69
117
|
var e = new Error(message);
|
|
70
118
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
@@ -173,15 +221,19 @@ function requireClassnames () {
|
|
|
173
221
|
var classnamesExports = requireClassnames();
|
|
174
222
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
175
223
|
|
|
176
|
-
var styles$
|
|
224
|
+
var styles$c = {"section-header":"SectionHeading-module_section-header__iB07I","section-header--hasImage":"SectionHeading-module_section-header--hasImage__Ka3T7","section-header--padded":"SectionHeading-module_section-header--padded__0FXP2"};
|
|
177
225
|
|
|
178
226
|
var SectionHeading = function (_a) {
|
|
179
|
-
var _b;
|
|
180
|
-
var heading = _a.heading, content = _a.content, id = _a.id,
|
|
227
|
+
var _b, _c;
|
|
228
|
+
var heading = _a.heading, content = _a.content, id = _a.id, _d = _a.isPadded, isPadded = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, image = _a.image, props = __rest(_a, ["heading", "content", "id", "isPadded", "headingLevel", "image"]);
|
|
181
229
|
return (React.createElement("div", __assign({ className: classNames((_b = {},
|
|
182
|
-
_b[styles$
|
|
230
|
+
_b[styles$c["section-header"]] = true,
|
|
231
|
+
_b[styles$c["section-header--padded"]] = isPadded,
|
|
183
232
|
_b)) }, filterDataAttrs(props)),
|
|
184
|
-
React.createElement(
|
|
233
|
+
React.createElement("div", { className: classNames((_c = {}, _c[styles$c["section-header--hasImage"]] = image, _c)) },
|
|
234
|
+
image && (React.createElement("div", null,
|
|
235
|
+
React.createElement(Image$2, __assign({}, image, { width: 68, fit: "cover" })))),
|
|
236
|
+
React.createElement(Heading, { level: headingLevel, id: id, size: "xl" }, heading)),
|
|
185
237
|
content && (React.createElement(React.Fragment, null,
|
|
186
238
|
React.createElement(VerticalSpace, { size: "24" }),
|
|
187
239
|
React.createElement(Text, { size: "l", elementType: "p" }, content)))));
|
|
@@ -205,7 +257,7 @@ var Accordion = function (_a) {
|
|
|
205
257
|
React.createElement(AccordionDisclosureList, { disclosureList: disclosureList })));
|
|
206
258
|
};
|
|
207
259
|
|
|
208
|
-
var styles$
|
|
260
|
+
var styles$b = {"authorContent":"Author-module_authorContent__TBY7b","largeAvatar":"Author-module_largeAvatar__Vco03"};
|
|
209
261
|
|
|
210
262
|
var Author = function (_a) {
|
|
211
263
|
var name = _a.name, title = _a.title, _b = _a.avatar, avatar = _b === void 0 ? {} : _b, props = __rest(_a, ["name", "title", "avatar"]);
|
|
@@ -214,54 +266,54 @@ var Author = function (_a) {
|
|
|
214
266
|
var isLargeAvatar = avatar.size === "l" || avatar.size === "xl";
|
|
215
267
|
return (React.createElement("div", __assign({}, filterDataAttrs(props)),
|
|
216
268
|
React.createElement(Grid, { isFluid: true, isGutterless: true },
|
|
217
|
-
React.createElement(
|
|
218
|
-
React.createElement(
|
|
219
|
-
React.createElement("div", { className: isLargeAvatar ? styles$
|
|
269
|
+
React.createElement(GridRow, { align: "center" },
|
|
270
|
+
React.createElement(GridCol, { xs: isLargeAvatar ? 12 : "auto" },
|
|
271
|
+
React.createElement("div", { className: isLargeAvatar ? styles$b.largeAvatar : undefined },
|
|
220
272
|
React.createElement(Avatar, __assign({}, avatar)))),
|
|
221
|
-
React.createElement(
|
|
222
|
-
React.createElement("div", { className: "".concat(!isLargeAvatar && styles$
|
|
273
|
+
React.createElement(GridCol, null,
|
|
274
|
+
React.createElement("div", { className: "".concat(!isLargeAvatar && styles$b.authorContent), "data-testid": "authorContent" },
|
|
223
275
|
React.createElement(Heading, { size: "xs" }, name),
|
|
224
276
|
React.createElement(Text, { size: "s" }, title)))))));
|
|
225
277
|
};
|
|
226
278
|
|
|
227
279
|
/**
|
|
228
280
|
* Do not edit directly
|
|
229
|
-
* Generated on
|
|
281
|
+
* Generated on Thu, 06 Mar 2025 14:17:53 GMT
|
|
230
282
|
*/
|
|
231
283
|
var ArcSizeBreakpointsS = "636px";
|
|
232
284
|
var ArcSizeBreakpointsM = "768px";
|
|
233
285
|
var ArcSizeBreakpointsL = "1024px";
|
|
234
286
|
var ArcSizeBreakpointsXl = "1280px";
|
|
235
287
|
|
|
236
|
-
var styles$
|
|
288
|
+
var styles$a = {"buttonContainer":"CopyLead-module_buttonContainer__3OaRG","col":"CopyLead-module_col__0Da5H","container":"CopyLead-module_container__I91ym","container--content":"CopyLead-module_container--content__e8LxG","container--media":"CopyLead-module_container--media__QcMWi","container--align-center":"CopyLead-module_container--align-center__Fh1Sd","container--align-top":"CopyLead-module_container--align-top__UIXOZ","list":"CopyLead-module_list__arnJd","listItem":"CopyLead-module_listItem__NscHE","listItemCentered":"CopyLead-module_listItemCentered__Kwdab","listItemIconContainer":"CopyLead-module_listItemIconContainer__dgnhJ","listItemTextContainer":"CopyLead-module_listItemTextContainer__Dl9lw","imgWrapper":"CopyLead-module_imgWrapper__HYP3w","mediaContainer":"CopyLead-module_mediaContainer__PxTnm","content":"CopyLead-module_content__Bja1D","container--reverse":"CopyLead-module_container--reverse__Gq9u8"};
|
|
237
289
|
|
|
238
290
|
var MediaContent$1 = function (_a) {
|
|
239
291
|
var heading = _a.heading, headingLevel = _a.headingLevel, children = _a.children;
|
|
240
|
-
return (React.createElement("div", { className: styles$
|
|
292
|
+
return (React.createElement("div", { className: styles$a.mediaContainer },
|
|
241
293
|
React.createElement(Heading, { level: headingLevel, size: "xl" }, heading),
|
|
242
|
-
children && (React.createElement("div", { className: styles$
|
|
294
|
+
children && (React.createElement("div", { className: styles$a.content },
|
|
243
295
|
React.createElement(VerticalSpace, { size: "24" }),
|
|
244
296
|
React.createElement(Text, { size: "l" }, children)))));
|
|
245
297
|
};
|
|
246
298
|
|
|
247
299
|
var Image$1 = function (_a) {
|
|
248
300
|
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
249
|
-
return (React.createElement("div", { className: styles$
|
|
301
|
+
return (React.createElement("div", { className: styles$a.imgWrapper },
|
|
250
302
|
React.createElement(Image$2, __assign({ fadeOnLoad: true }, props), sources &&
|
|
251
|
-
sources.map(function (source) { return
|
|
303
|
+
sources.map(function (source) { return React.createElement("source", __assign({ key: source.srcSet }, source)); }))));
|
|
252
304
|
};
|
|
253
305
|
|
|
254
306
|
var IconList = function (_a) {
|
|
255
307
|
var listItems = _a.listItems, isLgScreen = _a.isLgScreen;
|
|
256
|
-
return (React.createElement("ul", { className: styles$
|
|
308
|
+
return (React.createElement("ul", { className: styles$a.list }, listItems.map(function (_a) {
|
|
257
309
|
var _b;
|
|
258
310
|
var icon = _a.icon, heading = _a.heading, text = _a.text;
|
|
259
|
-
return (React.createElement("li", { key: heading, className: classNames(styles$
|
|
260
|
-
_b[styles$
|
|
311
|
+
return (React.createElement("li", { key: heading, className: classNames(styles$a.listItem, (_b = {},
|
|
312
|
+
_b[styles$a.listItemCentered] = !text,
|
|
261
313
|
_b)) },
|
|
262
|
-
React.createElement("div", { className: styles$
|
|
314
|
+
React.createElement("div", { className: styles$a.listItemIconContainer },
|
|
263
315
|
React.createElement(Icon, { color: "brand", icon: icon, size: isLgScreen ? 64 : 48 })),
|
|
264
|
-
React.createElement("div", { className: styles$
|
|
316
|
+
React.createElement("div", { className: styles$a.listItemTextContainer },
|
|
265
317
|
React.createElement(Heading, { level: "3", size: "s" }, heading),
|
|
266
318
|
text && (React.createElement(React.Fragment, null,
|
|
267
319
|
React.createElement(VerticalSpace, { size: "8", sizeL: "16" }),
|
|
@@ -269,24 +321,24 @@ var IconList = function (_a) {
|
|
|
269
321
|
})));
|
|
270
322
|
};
|
|
271
323
|
|
|
272
|
-
var Button = function (props) { return (React.createElement("div", { className: styles$
|
|
324
|
+
var Button = function (props) { return (React.createElement("div", { className: styles$a.buttonContainer },
|
|
273
325
|
React.createElement(ButtonV2, __assign({ isFullWidth: true, buttonStyle: "secondary" }, props)))); };
|
|
274
326
|
|
|
275
327
|
var Container = function (_a) {
|
|
276
328
|
var _b;
|
|
277
329
|
var children = _a.children, isReverseOrder = _a.isReverseOrder, type = _a.type, alignment = _a.alignment;
|
|
278
|
-
return (React.createElement("div", { "data-testid": "copy-lead-container", className: classNames(styles$
|
|
279
|
-
_b[styles$
|
|
330
|
+
return (React.createElement("div", { "data-testid": "copy-lead-container", className: classNames(styles$a.container, styles$a["container--".concat(type)], styles$a["container--align-".concat(alignment)], (_b = {},
|
|
331
|
+
_b[styles$a["container--reverse"]] = isReverseOrder,
|
|
280
332
|
_b)) }, children));
|
|
281
333
|
};
|
|
282
334
|
|
|
283
335
|
var Column = function (_a) {
|
|
284
336
|
var children = _a.children;
|
|
285
|
-
return (React.createElement("div", { className: styles$
|
|
337
|
+
return (React.createElement("div", { className: styles$a.col }, children));
|
|
286
338
|
};
|
|
287
339
|
|
|
288
340
|
var VideoPlayer$1 = React.lazy(function () {
|
|
289
|
-
return import('@arc-ui/components/
|
|
341
|
+
return import('@arc-ui/components/VideoPlayer').then(function (_a) {
|
|
290
342
|
var VideoPlayer = _a.VideoPlayer;
|
|
291
343
|
return ({
|
|
292
344
|
default: VideoPlayer,
|
|
@@ -303,7 +355,7 @@ var MediaTemplate = function (_a) {
|
|
|
303
355
|
}, []);
|
|
304
356
|
return (React.createElement("div", null,
|
|
305
357
|
!isMinWidthArcBreakpointXl && (React.createElement(Columns, null,
|
|
306
|
-
React.createElement(
|
|
358
|
+
React.createElement(ColumnsCol, { span: 12, spanM: 9 },
|
|
307
359
|
React.createElement(MediaContent$1, { heading: heading, headingLevel: headingLevel }, content)))),
|
|
308
360
|
React.createElement(Container, { type: "media", isReverseOrder: isReverseOrder, alignment: !isMinWidthArcBreakpointXl ? "top" : "center" },
|
|
309
361
|
React.createElement(Column, null,
|
|
@@ -334,25 +386,22 @@ var ContentTemplate = function (_a) {
|
|
|
334
386
|
*/
|
|
335
387
|
var CopyLead = function (_a) {
|
|
336
388
|
var button = _a.button, heading = _a.heading, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, listItems = _a.listItems, video = _a.video, image = _a.image, content = _a.content, _c = _a.isReverseOrder, isReverseOrder = _c === void 0 ? false : _c, props = __rest(_a, ["button", "heading", "headingLevel", "listItems", "video", "image", "content", "isReverseOrder"]);
|
|
337
|
-
console.log(video);
|
|
338
389
|
if (video || image) {
|
|
339
390
|
return (React.createElement(MediaTemplate, __assign({ content: content, video: video, image: image, listItems: listItems, heading: heading, headingLevel: headingLevel, button: button, isReverseOrder: isReverseOrder }, filterDataAttrs(props))));
|
|
340
391
|
}
|
|
341
392
|
if (content) {
|
|
342
|
-
return (React.createElement(ContentTemplate, { listItems: listItems, heading: heading, headingLevel: headingLevel, button: button, content: content }));
|
|
393
|
+
return (React.createElement(ContentTemplate, __assign({ listItems: listItems, heading: heading, headingLevel: headingLevel, button: button, content: content }, filterDataAttrs(props))));
|
|
343
394
|
}
|
|
344
395
|
return null;
|
|
345
396
|
};
|
|
346
397
|
|
|
347
|
-
var styles$
|
|
398
|
+
var styles$9 = {"headingContainer":"DownloadList-module_headingContainer__PNio8"};
|
|
348
399
|
|
|
349
400
|
var DownloadList = function (_a) {
|
|
350
401
|
var heading = _a.heading, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, content = _a.content, downloads = _a.downloads;
|
|
351
402
|
return (React.createElement(React.Fragment, null,
|
|
352
|
-
React.createElement("div", { className: styles$
|
|
353
|
-
React.createElement(
|
|
354
|
-
React.createElement(VerticalSpace, { size: "24" }),
|
|
355
|
-
React.createElement(Text, { size: "l" }, content)),
|
|
403
|
+
React.createElement("div", { className: styles$9.headingContainer },
|
|
404
|
+
React.createElement(SectionHeading, { heading: heading, headingLevel: headingLevel, content: content })),
|
|
356
405
|
React.createElement(VerticalSpace, { size: "40" }),
|
|
357
406
|
downloads.map(function (props, i) { return (React.createElement(React.Fragment, null,
|
|
358
407
|
React.createElement(Download, __assign({}, props)),
|
|
@@ -813,8 +862,6 @@ var formatters$1 = {
|
|
|
813
862
|
};
|
|
814
863
|
|
|
815
864
|
var dayPeriodEnum = {
|
|
816
|
-
am: 'am',
|
|
817
|
-
pm: 'pm',
|
|
818
865
|
midnight: 'midnight',
|
|
819
866
|
noon: 'noon',
|
|
820
867
|
morning: 'morning',
|
|
@@ -2547,17 +2594,17 @@ function cleanEscapedString(input) {
|
|
|
2547
2594
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
2548
2595
|
}
|
|
2549
2596
|
|
|
2550
|
-
var styles$
|
|
2597
|
+
var styles$8 = {"labelDate":"FeaturePost-module_labelDate__NXOgY","googlePlayButtonWrapper":"FeaturePost-module_googlePlayButtonWrapper__GI-ag","imgWrapper":"FeaturePost-module_imgWrapper__r6omd","featurePost":"FeaturePost-module_featurePost__9jY21","featurePostReversed":"FeaturePost-module_featurePostReversed__WQRXm","contentContainer":"FeaturePost-module_contentContainer__kdus7","col":"FeaturePost-module_col__eW8gY"};
|
|
2551
2598
|
|
|
2552
2599
|
var Image = function (_a) {
|
|
2553
2600
|
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
2554
|
-
return (React.createElement("div", { className: styles$
|
|
2601
|
+
return (React.createElement("div", { className: styles$8.imgWrapper },
|
|
2555
2602
|
React.createElement(Image$2, __assign({ fadeOnLoad: true }, props), sources &&
|
|
2556
|
-
sources.map(function (source) { return
|
|
2603
|
+
sources.map(function (source) { return React.createElement("source", __assign({ key: source.srcSet }, source)); }))));
|
|
2557
2604
|
};
|
|
2558
2605
|
|
|
2559
2606
|
var VideoPlayer = React.lazy(function () {
|
|
2560
|
-
return import('@arc-ui/components/
|
|
2607
|
+
return import('@arc-ui/components/VideoPlayer').then(function (_a) {
|
|
2561
2608
|
var VideoPlayer = _a.VideoPlayer;
|
|
2562
2609
|
return ({
|
|
2563
2610
|
default: VideoPlayer,
|
|
@@ -2583,17 +2630,17 @@ var FeaturePost = function (_a) {
|
|
|
2583
2630
|
var _b;
|
|
2584
2631
|
var heading = _a.heading, _c = _a.headingLevel, headingLevel = _c === void 0 ? "2" : _c, label = _a.label, image = _a.image, content = _a.content, footer = _a.footer, video = _a.video, _d = _a.isReverseOrder, isReverseOrder = _d === void 0 ? false : _d, props = __rest(_a, ["heading", "headingLevel", "label", "image", "content", "footer", "video", "isReverseOrder"]);
|
|
2585
2632
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2586
|
-
return (React.createElement("div", __assign({ "data-testid": "feature-post", className: classNames(styles$
|
|
2587
|
-
_b[styles$
|
|
2633
|
+
return (React.createElement("div", __assign({ "data-testid": "feature-post", className: classNames(styles$8.featurePost, (_b = {},
|
|
2634
|
+
_b[styles$8.featurePostReversed] = isReverseOrder,
|
|
2588
2635
|
_b)) }, filterDataAttrs(props)),
|
|
2589
|
-
React.createElement("div", { className: styles$
|
|
2590
|
-
React.createElement("div", { className: styles$
|
|
2636
|
+
React.createElement("div", { className: styles$8.col },
|
|
2637
|
+
React.createElement("div", { className: styles$8.contentContainer },
|
|
2591
2638
|
label && (React.createElement(Grid, { isGutterless: true, isFluid: true },
|
|
2592
|
-
React.createElement(
|
|
2593
|
-
React.createElement(
|
|
2639
|
+
React.createElement(GridRow, { align: "baseline" },
|
|
2640
|
+
React.createElement(GridCol, { xs: 12, m: "auto" },
|
|
2594
2641
|
React.createElement(Heading, { size: "xxs" }, label.text.toUpperCase())),
|
|
2595
|
-
React.createElement(
|
|
2596
|
-
React.createElement("div", { className: styles$
|
|
2642
|
+
React.createElement(GridCol, { xs: 12, m: "auto" },
|
|
2643
|
+
React.createElement("div", { className: styles$8.labelDate },
|
|
2597
2644
|
React.createElement(Text, { size: "xs", tone: "muted" }, isDate(label.date) ? (React.createElement("time", { dateTime: format(label.date, "yyyy-MM-dd") }, format(label.date, "LLLL d, yyyy"))) : (React.createElement("span", null, label.date)))))),
|
|
2598
2645
|
React.createElement(VerticalSpace, { size: "24" }))),
|
|
2599
2646
|
React.createElement(Heading, { level: headingLevel, size: "xl" }, heading),
|
|
@@ -2611,36 +2658,36 @@ var FeaturePost = function (_a) {
|
|
|
2611
2658
|
(footer === null || footer === void 0 ? void 0 : footer.type) === "appButton" && (React.createElement(React.Fragment, null,
|
|
2612
2659
|
React.createElement(VerticalSpace, { size: "40" }),
|
|
2613
2660
|
React.createElement(Grid, { isGutterless: true, isFluid: true },
|
|
2614
|
-
React.createElement(
|
|
2615
|
-
footer.appStore && (React.createElement(
|
|
2661
|
+
React.createElement(GridRow, null,
|
|
2662
|
+
footer.appStore && (React.createElement(GridCol, { xs: 12, s: "auto" },
|
|
2616
2663
|
React.createElement(AppButton, { type: "apple-app-store", screenReaderText: footer.appStore.screenReaderText, url: footer.appStore.url }))),
|
|
2617
|
-
footer.googlePlay && (React.createElement(
|
|
2618
|
-
React.createElement("div", { className: styles$
|
|
2664
|
+
footer.googlePlay && (React.createElement(GridCol, { xs: 12, s: "auto" },
|
|
2665
|
+
React.createElement("div", { className: styles$8.googlePlayButtonWrapper },
|
|
2619
2666
|
React.createElement(AppButton, { type: "google-play", screenReaderText: footer.googlePlay.screenReaderText, url: footer.googlePlay.url })))))))))),
|
|
2620
|
-
isMinWidthArcBreakpointM && (React.createElement("div", { className: styles$
|
|
2621
|
-
React.createElement("div", { "data-testid": "desktop-img", className: styles$
|
|
2667
|
+
isMinWidthArcBreakpointM && (React.createElement("div", { className: styles$8.col },
|
|
2668
|
+
React.createElement("div", { "data-testid": "desktop-img", className: styles$8.imgContainer },
|
|
2622
2669
|
React.createElement(MediaContent, { image: image, video: video }))))));
|
|
2623
2670
|
};
|
|
2624
2671
|
|
|
2625
|
-
var styles$
|
|
2672
|
+
var styles$7 = {"highlights":"Highlights-module_highlights__Hf7Zq","highlightItem":"Highlights-module_highlightItem__-N6le","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
2626
2673
|
|
|
2627
2674
|
var HighlightItem = function (_a) {
|
|
2628
2675
|
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon;
|
|
2629
|
-
return (React.createElement("div", { "data-testid": "highlight-item-container", className: styles$
|
|
2630
|
-
icon && (React.createElement("div", { className: styles$
|
|
2676
|
+
return (React.createElement("div", { "data-testid": "highlight-item-container", className: styles$7.highlightItem },
|
|
2677
|
+
icon && (React.createElement("div", { className: styles$7.Icon },
|
|
2631
2678
|
React.createElement(Icon, { "data-testid": "highlight-icon", color: "brand", icon: icon, size: isSmallIcon ? 64 : 76 }))),
|
|
2632
2679
|
React.createElement(VerticalSpace, { size: "16" }),
|
|
2633
2680
|
React.createElement(Heading, { level: "3", size: "m" }, heading),
|
|
2634
2681
|
React.createElement(VerticalSpace, { size: "16" }),
|
|
2635
2682
|
React.createElement(Text, null, text),
|
|
2636
2683
|
React.createElement(VerticalSpace, { size: "16" }),
|
|
2637
|
-
link && (React.createElement(Link, { href: link.url, id: link.url, onClick:
|
|
2684
|
+
link && (React.createElement(Link, { href: link.url, id: link.url, onClick: link.onClick, rel: "", size: "m", target: "_self", title: link.textLink }, link.textLink))));
|
|
2638
2685
|
};
|
|
2639
2686
|
|
|
2640
2687
|
var HighlightList = function (_a) {
|
|
2641
2688
|
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon;
|
|
2642
2689
|
var id = useId();
|
|
2643
|
-
return (React.createElement("div", { "data-testid": "highlights-list", className: classNames(styles$
|
|
2690
|
+
return (React.createElement("div", { "data-testid": "highlights-list", className: classNames(styles$7.highlights, styles$7["highlights".concat(columns, "Column")]) }, listItems.map(function (_a, i) {
|
|
2644
2691
|
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link;
|
|
2645
2692
|
return (React.createElement(HighlightItem, { key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon }));
|
|
2646
2693
|
})));
|
|
@@ -2657,7 +2704,7 @@ var Highlights = function (_a) {
|
|
|
2657
2704
|
React.createElement(HighlightList, { "data-testid": "highlights-list-container", listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs })));
|
|
2658
2705
|
};
|
|
2659
2706
|
|
|
2660
|
-
var styles$
|
|
2707
|
+
var styles$6 = {"PromoListing":"PromoListing-module_PromoListing__6ensv","promoListingContainer":"PromoListing-module_promoListingContainer__vwez-","cardGrid":"PromoListing-module_cardGrid__llf73","carouselSlide":"PromoListing-module_carouselSlide__AMTPF","cardGrid2Columns":"PromoListing-module_cardGrid2Columns__qPLQk","cardGrid3Cards":"PromoListing-module_cardGrid3Cards__VKWMs","cardGrid5Cards":"PromoListing-module_cardGrid5Cards__ywl5k","cardGrid3Columns":"PromoListing-module_cardGrid3Columns__g0Xru","cardGrid4Cards":"PromoListing-module_cardGrid4Cards__5Bv5u","cardGrid2Cards":"PromoListing-module_cardGrid2Cards__wDc4S"};
|
|
2661
2708
|
|
|
2662
2709
|
/**
|
|
2663
2710
|
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
@@ -2672,7 +2719,7 @@ var PromoListing = function (_a) {
|
|
|
2672
2719
|
card.type === "impact-card" && React.createElement(ImpactCard, __assign({}, card)),
|
|
2673
2720
|
card.type === "information-card" && React.createElement(InformationCard, __assign({}, card)),
|
|
2674
2721
|
card.type === "typography-card" && React.createElement(TypographyCard, __assign({}, card)))); };
|
|
2675
|
-
return (React.createElement("div", { className: styles$
|
|
2722
|
+
return (React.createElement("div", { className: styles$6.PromoListing },
|
|
2676
2723
|
React.createElement(SectionHeading, { isPadded: true, "data-testid": "PromoListing-header", heading: heading, headingLevel: headingLevel, content: content }),
|
|
2677
2724
|
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement(Carousel, { itemsPerSlide: 1, responsive: {
|
|
2678
2725
|
s: {
|
|
@@ -2685,42 +2732,42 @@ var PromoListing = function (_a) {
|
|
|
2685
2732
|
isPartialVisible: true,
|
|
2686
2733
|
itemsPerSlide: 2,
|
|
2687
2734
|
},
|
|
2688
|
-
} }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, i) { return (React.createElement("div", { key: "card-".concat(id, "-").concat(i), className: styles$
|
|
2735
|
+
} }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, i) { return (React.createElement("div", { key: "card-".concat(id, "-").concat(i), className: styles$6.carouselSlide }, getCard(card))); }))) : (React.createElement("div", { className: classNames(styles$6.cardGrid, styles$6["cardGrid".concat(columnCount, "Columns")], styles$6["cardGrid".concat(cards.length, "Cards")]) }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, index) { return (React.createElement("div", { "data-testid": "promoList-card".concat(index), className: classNames(styles$6.promoListingContainer), key: index }, getCard(card))); })))));
|
|
2689
2736
|
};
|
|
2690
2737
|
|
|
2691
|
-
var styles$
|
|
2738
|
+
var styles$5 = {"blockQuote":"Quote-module_blockQuote__STj-z","quoteContent":"Quote-module_quoteContent__kWc51","quoteDefault":"Quote-module_quoteDefault__tU5db","quoteSecondary":"Quote-module_quoteSecondary__3Rk3f","quoteIcon":"Quote-module_quoteIcon__HK1TV"};
|
|
2692
2739
|
|
|
2693
2740
|
/**
|
|
2694
2741
|
* Use `Quote` where a quote or testimonial from an existing customer or stakeholder would help build trust and credibility with potential new customers. It's commonly used on product pages where customers would learn about a product or service that we offer.*/
|
|
2695
2742
|
var Quote = function (_a) {
|
|
2696
2743
|
var author = _a.author, _b = _a.styling, styling = _b === void 0 ? "Default" : _b, content = _a.content, citeUrl = _a.citeUrl, props = __rest(_a, ["author", "styling", "content", "citeUrl"]);
|
|
2697
2744
|
return (React.createElement("div", __assign({ className: "community-component--quote", "data-testid": "quote-test" }, filterDataAttrs(props)),
|
|
2698
|
-
React.createElement("blockquote", { "data-testid": "style-test", className: classNames(styles$
|
|
2699
|
-
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles$
|
|
2745
|
+
React.createElement("blockquote", { "data-testid": "style-test", className: classNames(styles$5.blockQuote, styles$5["quote".concat(styling)]), cite: citeUrl },
|
|
2746
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles$5.quoteIcon, "aria-hidden": "true" },
|
|
2700
2747
|
React.createElement("path", { d: "M21.8085 76.4706C15.9574 76.4706 10.8156 74.2732 6.38298 69.8783C2.12766 65.4834 0 58.979 0 50.3651C0 40.5206 3.10284 31.1156 9.30851 22.1501C15.6915 13.1846 25.3546 5.80122 38.2979 0L44.1489 11.3387C37.4113 14.3272 31.7376 18.0189 27.1277 22.4138C22.5177 26.6329 19.6809 31.4672 18.617 36.9168C19.8582 36.741 21.0106 36.6531 22.0745 36.6531C27.7482 36.6531 32.4468 38.499 36.1702 42.1907C40.0709 45.8824 42.0213 50.7167 42.0213 56.6937C42.0213 62.4949 39.9823 67.2414 35.9043 70.9331C32.0035 74.6247 27.305 76.4706 21.8085 76.4706ZM77.6596 76.4706C71.8085 76.4706 66.6667 74.2732 62.234 69.8783C57.9787 65.4834 55.8511 58.979 55.8511 50.3651C55.8511 40.5206 58.9539 31.1156 65.1596 22.1501C71.5425 13.1846 81.2057 5.80122 94.1489 0L100 11.3387C93.2624 14.3272 87.5886 18.0189 82.9787 22.4138C78.3688 26.6329 75.5319 31.4672 74.4681 36.9168C75.7092 36.741 76.8617 36.6531 77.9255 36.6531C83.5993 36.6531 88.2979 38.499 92.0213 42.1907C95.922 45.8824 97.8723 50.7167 97.8723 56.6937C97.8723 62.4949 95.8333 67.2414 91.7553 70.9331C87.8546 74.6247 83.156 76.4706 77.6596 76.4706Z" })),
|
|
2701
|
-
React.createElement("p", { className: styles$
|
|
2748
|
+
React.createElement("p", { className: styles$5.quoteContent }, content)),
|
|
2702
2749
|
author && (React.createElement(Author, { name: author.name, title: author.title, avatar: author.avatar }))));
|
|
2703
2750
|
};
|
|
2704
2751
|
|
|
2705
|
-
var styles$
|
|
2752
|
+
var styles$4 = {"ruleContainer":"Summary-module_ruleContainer__ydWlG","row":"Summary-module_row__SKV--"};
|
|
2706
2753
|
|
|
2707
2754
|
var Summary = function (_a) {
|
|
2708
2755
|
var content = _a.content, _b = _a.headingLevel, headingLevel = _b === void 0 ? "3" : _b;
|
|
2709
2756
|
var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
|
|
2710
2757
|
return (React.createElement(Box, { isBorderRadius: true, borderWidth: "thin", padding: "24" },
|
|
2711
|
-
React.createElement("div", { className: styles$
|
|
2758
|
+
React.createElement("div", { className: styles$4.row }, content.map(function (_a, i) {
|
|
2712
2759
|
var heading = _a.heading, text = _a.text;
|
|
2713
2760
|
return (React.createElement(React.Fragment, null,
|
|
2714
|
-
React.createElement("div", { className: styles$
|
|
2761
|
+
React.createElement("div", { className: styles$4.col },
|
|
2715
2762
|
React.createElement(Heading, { size: "s", level: headingLevel }, heading),
|
|
2716
2763
|
React.createElement(VerticalSpace, { size: "8" }),
|
|
2717
2764
|
React.createElement(Text, { size: "s" }, text)),
|
|
2718
|
-
i !== content.length - 1 && (React.createElement("div", { className: styles$
|
|
2765
|
+
i !== content.length - 1 && (React.createElement("div", { className: styles$4.ruleContainer },
|
|
2719
2766
|
React.createElement(Rule, { orientation: isMinWidthArcBreakpointS ? "vertical" : "horizontal" })))));
|
|
2720
2767
|
}))));
|
|
2721
2768
|
};
|
|
2722
2769
|
|
|
2723
|
-
var styles$
|
|
2770
|
+
var styles$3 = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM","statWrapper":"Statistics-module_statWrapper__83OnM"};
|
|
2724
2771
|
|
|
2725
2772
|
var getLinkProps = function (link) {
|
|
2726
2773
|
return link.openInNewTab
|
|
@@ -2735,11 +2782,11 @@ var Statistics = function (_a) {
|
|
|
2735
2782
|
var headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
2736
2783
|
var id = useId();
|
|
2737
2784
|
return (React.createElement(Columns, null,
|
|
2738
|
-
React.createElement(
|
|
2785
|
+
React.createElement(ColumnsCol, { spanM: 9 },
|
|
2739
2786
|
React.createElement(SectionHeading, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
2740
2787
|
React.createElement(VerticalSpace, { size: "16" })),
|
|
2741
|
-
React.createElement(
|
|
2742
|
-
React.createElement("ul", { className: styles$
|
|
2788
|
+
React.createElement(ColumnsCol, { spanL: 9 },
|
|
2789
|
+
React.createElement("ul", { className: styles$3.list }, statistics.map(function (_a, i) {
|
|
2743
2790
|
var stat = _a.stat, copy = _a.copy, link = _a.link, source = _a.source, sourceUrl = _a.sourceUrl;
|
|
2744
2791
|
return (React.createElement("li", { key: "statistic-".concat(id, "-").concat(i) },
|
|
2745
2792
|
i !== 0 && (React.createElement(React.Fragment, null,
|
|
@@ -2747,11 +2794,11 @@ var Statistics = function (_a) {
|
|
|
2747
2794
|
React.createElement(Rule, null),
|
|
2748
2795
|
React.createElement(VerticalSpace, { size: "24", sizeS: "32", sizeXL: "40" }))),
|
|
2749
2796
|
React.createElement(Columns, null,
|
|
2750
|
-
React.createElement(
|
|
2797
|
+
React.createElement(ColumnsCol, { spanS: 6, spanM: 8 },
|
|
2751
2798
|
React.createElement(Align, { vertical: "center" },
|
|
2752
|
-
React.createElement("div", { className: styles$
|
|
2799
|
+
React.createElement("div", { className: styles$3.statWrapper },
|
|
2753
2800
|
React.createElement(Heading, { color: "brand", size: "xxl" }, stat)))),
|
|
2754
|
-
React.createElement(
|
|
2801
|
+
React.createElement(ColumnsCol, { spanS: 6, spanM: 4 },
|
|
2755
2802
|
React.createElement(Text, null, copy),
|
|
2756
2803
|
link && (React.createElement(React.Fragment, null,
|
|
2757
2804
|
React.createElement(VerticalSpace, { size: "12" }),
|
|
@@ -2759,38 +2806,263 @@ var Statistics = function (_a) {
|
|
|
2759
2806
|
source && (React.createElement(React.Fragment, null,
|
|
2760
2807
|
React.createElement(VerticalSpace, { size: "12" }),
|
|
2761
2808
|
React.createElement(Text, { size: "xs" },
|
|
2762
|
-
React.createElement("span", { className: styles$
|
|
2809
|
+
React.createElement("span", { className: styles$3.mutedText }, source)))),
|
|
2763
2810
|
sourceUrl && (React.createElement(Text, { size: "xs" },
|
|
2764
|
-
React.createElement("a", { className: styles$
|
|
2811
|
+
React.createElement("a", { className: styles$3.mutedText, href: sourceUrl }, sourceUrl)))))));
|
|
2765
2812
|
})))));
|
|
2766
2813
|
};
|
|
2767
2814
|
|
|
2768
|
-
var styles = {"
|
|
2815
|
+
var styles$2 = {"bannerWithTabsHeadingCentered":"BannerWithTabs-module_bannerWithTabsHeadingCentered__upqEO"};
|
|
2769
2816
|
|
|
2770
2817
|
var BannerWithTabs = function (_a) {
|
|
2771
2818
|
var _b;
|
|
2772
|
-
var tabs = _a.tabs, defaultValue = _a.defaultValue;
|
|
2773
|
-
|
|
2774
|
-
|
|
2819
|
+
var tabs = _a.tabs, defaultValue = _a.defaultValue, heading = _a.heading, content = _a.content, _c = _a.alignTypography, alignTypography = _c === void 0 ? "left" : _c, _d = _a.isInverted, isInverted = _d === void 0 ? false : _d, minHeight = _a.minHeight, minHeightM = _a.minHeightM;
|
|
2820
|
+
return (React.createElement(React.Fragment, null,
|
|
2821
|
+
React.createElement("div", { className: classNames(styles$2.bannerWithTabsHeading, (_b = {},
|
|
2822
|
+
_b[styles$2.bannerWithTabsHeadingCentered] = alignTypography === "center",
|
|
2823
|
+
_b)), style: { color: isInverted ? "white" : "black" } },
|
|
2824
|
+
React.createElement(SectionHeading, { heading: heading, content: content, isPadded: alignTypography === "left" ? true : false })),
|
|
2825
|
+
React.createElement(TabbedBanner, { minHeight: minHeight, minHeightM: minHeightM, tabs: tabs, defaultValue: defaultValue })));
|
|
2826
|
+
};
|
|
2827
|
+
|
|
2828
|
+
const ArcIconSocialLinkedin = (props) =>
|
|
2829
|
+
/*#__PURE__*/ React.createElement(
|
|
2830
|
+
"svg",
|
|
2831
|
+
Object.assign(
|
|
2832
|
+
{
|
|
2833
|
+
viewBox: "0 0 32 32",
|
|
2834
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2835
|
+
},
|
|
2836
|
+
props,
|
|
2837
|
+
),
|
|
2838
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
2839
|
+
d: "M25.856 25.86H21.71v-6.496c0-1.55-.032-3.544-2.161-3.544-2.162 0-2.492 1.686-2.492 3.43v6.61H12.91V12.5h3.983v1.821h.053c.557-1.05 1.91-2.158 3.932-2.158 4.201 0 4.978 2.765 4.978 6.364v7.334zM8.226 10.673a2.406 2.406 0 01-2.406-2.41 2.408 2.408 0 112.407 2.41zm2.08 15.189H6.148V12.5h4.158v13.36zM27.929 2H4.066C2.924 2 2 2.903 2 4.017v23.966C2 29.098 2.924 30 4.066 30h23.86c1.14 0 2.074-.902 2.074-2.017V4.017C30 2.903 29.067 2 27.926 2h.003z",
|
|
2840
|
+
fill: "currentColor",
|
|
2841
|
+
}),
|
|
2842
|
+
);
|
|
2843
|
+
|
|
2844
|
+
const ArcIconSocialX = (props) =>
|
|
2845
|
+
/*#__PURE__*/ React.createElement(
|
|
2846
|
+
"svg",
|
|
2847
|
+
Object.assign(
|
|
2848
|
+
{
|
|
2849
|
+
viewBox: "0 0 32 32",
|
|
2850
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2851
|
+
},
|
|
2852
|
+
props,
|
|
2853
|
+
),
|
|
2854
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
2855
|
+
d: "M24.0342 3H28.3116L18.9688 13.6389L30 28.1034H21.3608L14.5789 19.3354L6.8402 28.1034H2.56281L12.5809 16.7385L2 3H10.8643L16.9709 11.0141L24.0342 3ZM22.5427 25.5624H24.9065L9.56985 5.40144H7.00905L22.5427 25.5624Z",
|
|
2856
|
+
fill: "currentColor",
|
|
2857
|
+
}),
|
|
2858
|
+
);
|
|
2859
|
+
|
|
2860
|
+
const BtIconLink = (props) =>
|
|
2861
|
+
/*#__PURE__*/ React.createElement(
|
|
2862
|
+
"svg",
|
|
2863
|
+
Object.assign(
|
|
2864
|
+
{
|
|
2865
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2866
|
+
viewBox: "0 0 32 32",
|
|
2867
|
+
},
|
|
2868
|
+
props,
|
|
2869
|
+
),
|
|
2870
|
+
/*#__PURE__*/ React.createElement("defs", null),
|
|
2871
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
2872
|
+
d: "M9.959,10.0127h2.417a5.99044,5.99044,0,0,1,5.22558,8.91552.5.5,0,1,0,.87207.48926A6.99034,6.99034,0,0,0,12.376,9.0127H9.959a6.98853,6.98853,0,0,0,0,13.97705h1.54a.5.5,0,1,0,0-1H9.959a5.98853,5.98853,0,0,1,0-11.977Z",
|
|
2873
|
+
fill: "currentColor",
|
|
2874
|
+
}),
|
|
2875
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
2876
|
+
d: "M22.0625,9.0127h-1.54a.5.5,0,0,0,0,1h1.54a5.98853,5.98853,0,0,1,0,11.97705h-2.417a5.99145,5.99145,0,0,1-5.22656-8.915.49955.49955,0,1,0-.8711-.48926,6.99,6.99,0,0,0,6.09766,10.4043h2.417a6.98853,6.98853,0,0,0,0-13.977Z",
|
|
2877
|
+
fill: "currentColor",
|
|
2878
|
+
}),
|
|
2879
|
+
);
|
|
2880
|
+
|
|
2881
|
+
const BtIconEmailUnread = (props) =>
|
|
2882
|
+
/*#__PURE__*/ React.createElement(
|
|
2883
|
+
"svg",
|
|
2884
|
+
Object.assign(
|
|
2885
|
+
{
|
|
2886
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2887
|
+
viewBox: "0 0 32 32",
|
|
2888
|
+
},
|
|
2889
|
+
props,
|
|
2890
|
+
),
|
|
2891
|
+
/*#__PURE__*/ React.createElement("defs", null),
|
|
2892
|
+
/*#__PURE__*/ React.createElement("path", {
|
|
2893
|
+
d: "M29,6H3A1,1,0,0,0,2,7V25a1,1,0,0,0,1,1H29a1,1,0,0,0,1-1V7A1,1,0,0,0,29,6Zm0,1V8.71649L18.00049,16.33154a3.5158,3.5158,0,0,1-3.98438,0L3,8.70532V7Zm0,2.93292V22.08368l-8.77545-6.07544Zm-17.20819,6.0752L3,22.09485V9.92175ZM3,25V23.31128l9.67035-6.695.77643.53754a4.52223,4.52223,0,0,0,5.123,0l.77619-.53735L29,23.30011V25Z",
|
|
2894
|
+
fill: "currentColor",
|
|
2895
|
+
}),
|
|
2896
|
+
);
|
|
2897
|
+
|
|
2898
|
+
var styles$1 = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent":"ArticleSidebar-module_textContent__3nCfG","shareButtonContainer":"ArticleSidebar-module_shareButtonContainer__iAfHL","shareButton":"ArticleSidebar-module_shareButton__rb-1E"};
|
|
2899
|
+
|
|
2900
|
+
/**
|
|
2901
|
+
* Use `ArticleSidebar` to provide additional information about the article.
|
|
2902
|
+
*/
|
|
2903
|
+
var ArticleSidebar = function (_a) {
|
|
2904
|
+
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection;
|
|
2905
|
+
var id = useId();
|
|
2906
|
+
var _b = useState(false), showToast = _b[0], setShowToast = _b[1];
|
|
2907
|
+
var url = location.href;
|
|
2908
|
+
var copyTextToClipBoard = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
2909
|
+
return __generator(this, function (_a) {
|
|
2910
|
+
switch (_a.label) {
|
|
2911
|
+
case 0: return [4 /*yield*/, navigator.clipboard.writeText(url)];
|
|
2912
|
+
case 1:
|
|
2913
|
+
_a.sent();
|
|
2914
|
+
setShowToast(true);
|
|
2915
|
+
return [2 /*return*/];
|
|
2916
|
+
}
|
|
2917
|
+
});
|
|
2918
|
+
}); };
|
|
2919
|
+
var shareButtons = __spreadArray(__spreadArray([
|
|
2920
|
+
{
|
|
2921
|
+
isButton: true,
|
|
2922
|
+
label: "Copy url to clipboard",
|
|
2923
|
+
onClick: copyTextToClipBoard,
|
|
2924
|
+
icon: BtIconLink,
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
label: "Share by email",
|
|
2928
|
+
href: "mailto:?subject=".concat(share.articleTitle, "&body=").concat(url),
|
|
2929
|
+
icon: BtIconEmailUnread,
|
|
2930
|
+
}
|
|
2931
|
+
], (share.linkedin
|
|
2932
|
+
? [
|
|
2933
|
+
{
|
|
2934
|
+
label: "Share on LinkedIn",
|
|
2935
|
+
href: "https://www.linkedin.com/sharing/share-offsite/?url=".concat(url),
|
|
2936
|
+
icon: ArcIconSocialLinkedin,
|
|
2937
|
+
},
|
|
2938
|
+
]
|
|
2939
|
+
: []), true), (share.x
|
|
2940
|
+
? [
|
|
2941
|
+
{
|
|
2942
|
+
label: "Share on x",
|
|
2943
|
+
href: "https://twitter.com/intent/tweet?url=".concat(url),
|
|
2944
|
+
icon: ArcIconSocialX,
|
|
2945
|
+
},
|
|
2946
|
+
]
|
|
2947
|
+
: []), true);
|
|
2775
2948
|
return (React.createElement(React.Fragment, null,
|
|
2776
|
-
React.createElement("div", { className: styles.
|
|
2777
|
-
React.createElement(
|
|
2778
|
-
React.createElement(
|
|
2779
|
-
|
|
2780
|
-
|
|
2949
|
+
React.createElement("div", { className: styles$1.textContent },
|
|
2950
|
+
author && (React.createElement(React.Fragment, null,
|
|
2951
|
+
React.createElement(Author, __assign({}, author, { avatar: __assign(__assign({}, author.avatar), { size: "xl" }) })))),
|
|
2952
|
+
aboutSection && (React.createElement(React.Fragment, null,
|
|
2953
|
+
React.createElement(VerticalSpace, { size: "32" }),
|
|
2954
|
+
React.createElement(Heading, { level: aboutSection.headingLevel }, aboutSection.heading),
|
|
2955
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
2956
|
+
React.createElement(Text, { size: "s" }, aboutSection.content))),
|
|
2957
|
+
additionalContent &&
|
|
2958
|
+
additionalContent.map(function (_a) {
|
|
2959
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
2960
|
+
return (React.createElement(React.Fragment, null,
|
|
2961
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
2962
|
+
React.createElement(Heading, { level: headingLevel, size: "xxs" }, heading),
|
|
2963
|
+
React.createElement(Text, { size: "s" }, content)));
|
|
2781
2964
|
})),
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2965
|
+
(author || aboutSection || additionalContent) && (React.createElement("div", { "data-testid": "content-rule" },
|
|
2966
|
+
React.createElement(VerticalSpace, { size: "32" }),
|
|
2967
|
+
React.createElement(Rule, null),
|
|
2968
|
+
React.createElement(VerticalSpace, { size: "32" }))),
|
|
2969
|
+
React.createElement(Heading, { level: linkSection.headingLevel }, linkSection.heading),
|
|
2970
|
+
linkSection.links.map(function (_a) {
|
|
2971
|
+
var text = _a.text, url = _a.url;
|
|
2972
|
+
return (React.createElement(React.Fragment, null,
|
|
2973
|
+
React.createElement(VerticalSpace, { size: "8" }),
|
|
2974
|
+
React.createElement("div", { key: "".concat(id, "-").concat(url) },
|
|
2975
|
+
React.createElement(Link, { size: "s", href: url }, text))));
|
|
2976
|
+
}),
|
|
2977
|
+
React.createElement(VerticalSpace, { size: "32" }),
|
|
2978
|
+
topics && (React.createElement(React.Fragment, null,
|
|
2979
|
+
React.createElement(Heading, { level: topics.headingLevel }, topics.heading),
|
|
2980
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
2981
|
+
React.createElement("div", { className: styles$1.tagGroup }, topics.tags.map(function (tag) { return (React.createElement(Tag, __assign({ key: "".concat(id, "-").concat(tag.title) }, tag))); })),
|
|
2982
|
+
React.createElement(VerticalSpace, { size: "32" }))),
|
|
2983
|
+
React.createElement(Rule, null),
|
|
2984
|
+
React.createElement(VerticalSpace, { size: "32" }),
|
|
2985
|
+
React.createElement(Heading, { level: share.headingLevel }, share.heading),
|
|
2986
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
2987
|
+
React.createElement("div", { className: styles$1.shareButtonContainer }, shareButtons.map(function (_a) {
|
|
2988
|
+
var isButton = _a.isButton, label = _a.label, href = _a.href, icon = _a.icon, onClick = _a.onClick;
|
|
2989
|
+
return (React.createElement("a", { key: "".concat(id, "-").concat(label), role: isButton ? "button" : undefined, target: "_blank", rel: "noreferrer", className: styles$1.shareButton, "aria-label": label, href: href, onClick: onClick },
|
|
2990
|
+
React.createElement(Icon, { icon: icon, size: 24 })));
|
|
2991
|
+
})),
|
|
2992
|
+
React.createElement(Toast, null,
|
|
2993
|
+
React.createElement(ToastNotification, { status: "success", title: "Copied to clipboard", isOpen: showToast, onOpenChange: function () { return setShowToast(false); } }))));
|
|
2994
|
+
};
|
|
2995
|
+
|
|
2996
|
+
var styles = {"product-navigation-grid":"ProductNavigation-module_product-navigation-grid__RzFq8","productNavigation-skipLink":"ProductNavigation-module_productNavigation-skipLink__fy8ZJ"};
|
|
2997
|
+
|
|
2998
|
+
/**
|
|
2999
|
+
* Use `ProductNavigation` to give a collection of product information cards collected within a grid that has optional show/hide capability
|
|
3000
|
+
*/
|
|
3001
|
+
var ProductNavigation = function (_a) {
|
|
3002
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content, _b = _a.hideButton, hideButton = _b === void 0 ? false : _b, productList = _a.productList, _c = _a.defaultExpanded, defaultExpanded = _c === void 0 ? false : _c, minHeight = _a.minHeight, _d = _a.cardsToDisplay, cardsToDisplay = _d === void 0 ? 3 : _d, _e = _a.listIncrement, listIncrement = _e === void 0 ? 6 : _e, onClickMore = _a.onClickMore, onClickLess = _a.onClickLess, _f = _a.hideShowLess, hideShowLess = _f === void 0 ? false : _f, isLoading = _a.isLoading, image = _a.image, props = __rest(_a, ["heading", "headingLevel", "content", "hideButton", "productList", "defaultExpanded", "minHeight", "cardsToDisplay", "listIncrement", "onClickMore", "onClickLess", "hideShowLess", "isLoading", "image"]);
|
|
3003
|
+
var _g = useState(false), hideLessButton = _g[0], setHideLessButton = _g[1];
|
|
3004
|
+
var _h = useState(cardsToDisplay), skipLinkCard = _h[0], setSkipLinkCard = _h[1];
|
|
3005
|
+
var _j = useState(productList.slice(0, cardsToDisplay)), displayList = _j[0], setDisplayList = _j[1];
|
|
3006
|
+
var cardRef = useRef(null);
|
|
3007
|
+
useEffect(function () {
|
|
3008
|
+
if (defaultExpanded) {
|
|
3009
|
+
setDisplayList(productList);
|
|
3010
|
+
}
|
|
3011
|
+
}, []);
|
|
3012
|
+
var moveFocus = function () {
|
|
3013
|
+
var _a;
|
|
3014
|
+
(_a = cardRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
3015
|
+
};
|
|
3016
|
+
var clickController = function () {
|
|
3017
|
+
// show more / current list length + increment
|
|
3018
|
+
if (displayList.length < productList.length) {
|
|
3019
|
+
if (onClickMore)
|
|
3020
|
+
onClickMore();
|
|
3021
|
+
setSkipLinkCard(displayList.length);
|
|
3022
|
+
setDisplayList(productList.slice(0, displayList.length + listIncrement));
|
|
3023
|
+
}
|
|
3024
|
+
// show less / reset to original list length
|
|
3025
|
+
else {
|
|
3026
|
+
if (onClickLess)
|
|
3027
|
+
onClickLess();
|
|
3028
|
+
setSkipLinkCard(cardsToDisplay);
|
|
3029
|
+
setDisplayList(productList.slice(0, cardsToDisplay));
|
|
3030
|
+
}
|
|
3031
|
+
// hide "show less" button option when fully expanded
|
|
3032
|
+
if (hideShowLess &&
|
|
3033
|
+
displayList.length + listIncrement >= productList.length) {
|
|
3034
|
+
setHideLessButton(true);
|
|
3035
|
+
}
|
|
3036
|
+
};
|
|
3037
|
+
var isMinWidthArcBreakpointS = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsS, ")"));
|
|
3038
|
+
return (React.createElement("div", __assign({}, filterDataAttrs(props)),
|
|
3039
|
+
React.createElement(SectionHeading, { isPadded: true, "data-testid": "ProductNavigation-header", heading: heading, headingLevel: headingLevel, content: content, image: image }),
|
|
3040
|
+
React.createElement("ul", { className: classNames(styles["product-navigation-grid"]) }, displayList === null || displayList === void 0 ? void 0 : displayList.map(function (_a, i) {
|
|
3041
|
+
var label = _a.label, href = _a.href, heading = _a.heading, text = _a.text;
|
|
3042
|
+
return (React.createElement("li", { key: "displayList-".concat(i), tabIndex: -1, ref: i === skipLinkCard ? cardRef : undefined, "data-cy": "list-item-".concat(i) },
|
|
3043
|
+
React.createElement(InformationCard$1, { button: {
|
|
3044
|
+
label: label,
|
|
3045
|
+
href: href,
|
|
3046
|
+
}, minHeight: minHeight, heading: heading, headingLevel: "2", text: text })));
|
|
3047
|
+
})),
|
|
3048
|
+
React.createElement(VerticalSpace$1, { size: "40" }),
|
|
3049
|
+
React.createElement("div", { style: { display: "flex" } },
|
|
3050
|
+
!hideButton && !hideLessButton && (React.createElement(ButtonV2$1, { label: displayList.length < productList.length
|
|
3051
|
+
? "Show more"
|
|
3052
|
+
: "Show less", buttonStyle: "secondary", onClick: clickController, isFullWidth: isMinWidthArcBreakpointS ? false : true, isLoading: isLoading })),
|
|
3053
|
+
displayList.length > cardsToDisplay && (React.createElement(React.Fragment, null,
|
|
3054
|
+
React.createElement("div", { id: "skip-link", className: classNames(styles["productNavigation-skipLink"]), tabIndex: -1 },
|
|
3055
|
+
React.createElement(ButtonV2$1, { label: "Move to first new card", buttonStyle: "primary", onClick: moveFocus, isFullWidth: isMinWidthArcBreakpointS ? false : true })))),
|
|
3056
|
+
React.createElement(VisuallyHidden, null,
|
|
3057
|
+
React.createElement("div", { "aria-live": "polite", id: "aria-live-region", "aria-atomic": true },
|
|
3058
|
+
React.createElement("p", null,
|
|
3059
|
+
"Total products listed ",
|
|
3060
|
+
displayList.length,
|
|
3061
|
+
". Total products hidden",
|
|
3062
|
+
" ",
|
|
3063
|
+
productList.length - displayList.length,
|
|
3064
|
+
"."))))));
|
|
2793
3065
|
};
|
|
2794
3066
|
|
|
2795
|
-
export { Accordion, Author, BannerWithTabs, CopyLead, DownloadList, FeaturePost, Highlights, PromoListing, Quote, Statistics, Summary };
|
|
3067
|
+
export { Accordion, ArticleSidebar, Author, BannerWithTabs, CopyLead, DownloadList, FeaturePost, Highlights, ProductNavigation, PromoListing, Quote, SectionHeading, Statistics, Summary };
|
|
2796
3068
|
//# sourceMappingURL=index.es.js.map
|