@arc-ui/community-components 3.2.0 → 3.3.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 +10 -10
- package/CHANGELOG.md +19 -0
- package/lib/Accordion/Accordion.cjs +2 -3
- package/lib/Accordion/Accordion.mjs +2 -3
- package/lib/ActionTile/ActionTile.cjs +4 -5
- package/lib/ActionTile/ActionTile.mjs +2 -3
- package/lib/ActionTile/styles.css +1 -1
- package/lib/ArticleSidebar/ArticleSidebar.cjs +9 -10
- package/lib/ArticleSidebar/ArticleSidebar.mjs +4 -5
- package/lib/Author/Author.cjs +2 -3
- package/lib/Author/Author.mjs +2 -3
- package/lib/BannerWithTabs/BannerWithTabs.cjs +4 -5
- package/lib/BannerWithTabs/BannerWithTabs.mjs +4 -5
- package/lib/ContentInfoWidget/ContentInfoWidget.cjs +3 -2
- package/lib/ContentInfoWidget/ContentInfoWidget.mjs +3 -2
- package/lib/CopyLead/CopyLead.cjs +14 -15
- package/lib/CopyLead/CopyLead.mjs +2 -3
- package/lib/DownloadList/DownloadList.cjs +6 -8
- package/lib/DownloadList/DownloadList.mjs +6 -8
- package/lib/FAQs/FAQs.cjs +5 -6
- package/lib/FAQs/FAQs.mjs +3 -4
- package/lib/FeaturePost/FeaturePost.cjs +13 -14
- package/lib/FeaturePost/FeaturePost.mjs +5 -6
- package/lib/Highlights/Highlights.cjs +11 -12
- package/lib/Highlights/Highlights.mjs +11 -12
- package/lib/InlineLinkGroup/InlineLinkGroup.cjs +25 -0
- package/lib/InlineLinkGroup/InlineLinkGroup.mjs +23 -0
- package/lib/InlineLinkGroup/styles.css +1 -0
- package/lib/LinkTile/LinkTile.cjs +6 -6
- package/lib/LinkTile/LinkTile.mjs +4 -4
- package/lib/LinkTile/styles.css +1 -1
- package/lib/ProductNavigation/ProductNavigation.cjs +5 -6
- package/lib/ProductNavigation/ProductNavigation.mjs +2 -3
- package/lib/PromoListing/PromoListing.cjs +6 -7
- package/lib/PromoListing/PromoListing.mjs +4 -5
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +6 -7
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +3 -4
- package/lib/Quote/Quote.cjs +5 -6
- package/lib/Quote/Quote.mjs +3 -4
- package/lib/SectionHeading/SectionHeading.cjs +2 -3
- package/lib/SectionHeading/SectionHeading.mjs +2 -3
- package/lib/Statistics/Statistics.cjs +21 -19
- package/lib/Statistics/Statistics.mjs +21 -19
- package/lib/Statistics/styles.css +1 -1
- package/lib/Summary/Summary.cjs +3 -3
- package/lib/Summary/Summary.mjs +3 -3
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +2 -3
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +2 -3
- package/lib/_shared/cjs/{Accordion-DfNGOjTm.cjs → Accordion-QqDoB3pY.cjs} +8 -9
- package/lib/_shared/cjs/{Author-D4dKNQem.cjs → Author-aL8YXi7C.cjs} +4 -5
- package/lib/_shared/cjs/{SectionHeading-DeSFM0HV.cjs → SectionHeading-Dj-dJfv3.cjs} +4 -5
- package/lib/_shared/cjs/{ThumbnailSignpost-GkOiwt-Z.cjs → ThumbnailSignpost-SBnrGooA.cjs} +4 -5
- package/lib/_shared/cjs/{tslib.es6-BxB9I209.cjs → filter-attrs-C26zOt4_.cjs} +25 -0
- package/lib/_shared/esm/{Accordion-cd1oYvBv.mjs → Accordion-DrOTh90S.mjs} +1 -2
- package/lib/_shared/esm/{Author-HnYsFTPT.mjs → Author-BVCRPgkl.mjs} +1 -2
- package/lib/_shared/esm/{SectionHeading-CpDLCndw.mjs → SectionHeading-DZOg_gYi.mjs} +1 -2
- package/lib/_shared/esm/{ThumbnailSignpost-BeRiXbUp.mjs → ThumbnailSignpost-DaZByYIH.mjs} +1 -2
- package/lib/_shared/esm/{tslib.es6-D6Wu-xwB.mjs → filter-attrs-D-1kWaCP.mjs} +25 -1
- package/lib/index.cjs +75 -83
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +24 -63
- package/lib/index.d.mts +24 -63
- package/lib/index.mjs +75 -83
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +4 -4
- package/src/components/ActionTile/ActionTile.module.css +56 -37
- package/src/components/ActionTile/ActionTile.tsx +1 -1
- package/src/components/ArticleSidebar/ArticleSidebar.tsx +4 -6
- package/src/components/Author/Author.tsx +0 -3
- package/src/components/BannerWithTabs/BannerWithTabs.tsx +4 -6
- package/src/components/ContentInfoWidget/ContentInfoWidget.tsx +3 -4
- package/src/components/DownloadList/DownloadList.tsx +8 -8
- package/src/components/FeaturePost/FeaturePost.tsx +3 -7
- package/src/components/Highlights/Highlights.tsx +3 -2
- package/src/components/Highlights/components/HighlightItem/HighlightItem.tsx +3 -2
- package/src/components/Highlights/components/HighlightList/HighlightList.tsx +5 -2
- package/src/components/InlineLinkGroup/InlineLinkGroup.module.css +81 -0
- package/src/components/InlineLinkGroup/InlineLinkGroup.tsx +67 -0
- package/src/components/InlineLinkGroup/index.ts +5 -0
- package/src/components/LinkTile/LinkTile.module.css +62 -26
- package/src/components/LinkTile/LinkTile.tsx +8 -1
- package/src/components/PromoListing/PromoListing.tsx +3 -11
- package/src/components/Quote/Quote.tsx +1 -7
- package/src/components/Statistics/Statistics.module.css +0 -10
- package/src/components/Statistics/Statistics.tsx +35 -32
- package/src/components/Summary/Summary.tsx +3 -1
- package/src/components/index.ts +1 -1
- package/versions.json +1 -1
- package/lib/HeroLink/HeroLink.cjs +0 -35
- package/lib/HeroLink/HeroLink.mjs +0 -33
- package/lib/HeroLink/styles.css +0 -1
- package/lib/_shared/cjs/filter-attrs-BizjMsy0.cjs +0 -27
- package/lib/_shared/esm/filter-attrs-DZ7RCEZm.mjs +0 -25
- package/src/components/HeroLink/HeroLink.module.css +0 -44
- package/src/components/HeroLink/HeroLink.tsx +0 -136
- package/src/components/HeroLink/index.ts +0 -2
package/lib/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { ReactNode, FC
|
|
1
|
+
import React$1, { ReactNode, FC } from 'react';
|
|
2
2
|
import { HeadingLevel } from '@arc-ui/components/Heading';
|
|
3
3
|
import { ImageProps, ImageSourceProps } from '@arc-ui/components/Image';
|
|
4
4
|
import { DisclosureProps } from '@arc-ui/components/Disclosure';
|
|
@@ -358,10 +358,6 @@ interface PromoListingButton extends Omit<ButtonV2Props, "buttonStyle" | "icon"
|
|
|
358
358
|
* Style variant for the button. Defaults to "secondary".
|
|
359
359
|
*/
|
|
360
360
|
buttonStyle?: "secondary" | "compact";
|
|
361
|
-
/**
|
|
362
|
-
* Optional prop to pass additional props to the button. Only data-* and aria-* will work.
|
|
363
|
-
*/
|
|
364
|
-
[key: string]: unknown;
|
|
365
361
|
}
|
|
366
362
|
|
|
367
363
|
/**
|
|
@@ -572,62 +568,6 @@ interface ContentInfoWidgetProps {
|
|
|
572
568
|
text: string;
|
|
573
569
|
}
|
|
574
570
|
|
|
575
|
-
type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
|
|
576
|
-
type ButtonRef = Ref<ElementUnion> | null;
|
|
577
|
-
/**
|
|
578
|
-
* Pill-style HeroLink component with default and hover states
|
|
579
|
-
*/
|
|
580
|
-
declare const HeroLink: ({ label, onClick, href, id, rel, target, ariaLabel, ref, ...props }: HeroLinkProps) => JSX.Element;
|
|
581
|
-
interface LinkElementProps {
|
|
582
|
-
/**
|
|
583
|
-
* URL to link to if `HeroButton` elementType is 'a'.
|
|
584
|
-
*/
|
|
585
|
-
href?: string;
|
|
586
|
-
/**
|
|
587
|
-
* Target window for the `HeroButton` href URL.
|
|
588
|
-
*/
|
|
589
|
-
target?: string;
|
|
590
|
-
/**
|
|
591
|
-
* Relationship between the Button href URL and the current page. See
|
|
592
|
-
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel).
|
|
593
|
-
*/
|
|
594
|
-
rel?: string;
|
|
595
|
-
}
|
|
596
|
-
interface HeroButtonElementProps {
|
|
597
|
-
/**
|
|
598
|
-
* Default behavior of the Button element. If not provided, 'submit' will
|
|
599
|
-
* be inferred. Type 'reset' deliberately excluded.
|
|
600
|
-
*/
|
|
601
|
-
type?: "button" | "submit";
|
|
602
|
-
/**
|
|
603
|
-
* Refers to the id of a form so it can be submitted if the button exists outside of it.
|
|
604
|
-
*/
|
|
605
|
-
form?: string;
|
|
606
|
-
}
|
|
607
|
-
interface HeroLinkProps extends HeroButtonElementProps, LinkElementProps {
|
|
608
|
-
/**
|
|
609
|
-
* Label for `HeroLink`
|
|
610
|
-
*/
|
|
611
|
-
label?: string;
|
|
612
|
-
/**
|
|
613
|
-
* Optional click handler for the `HeroLink`.
|
|
614
|
-
*/
|
|
615
|
-
onClick?: () => void;
|
|
616
|
-
/**
|
|
617
|
-
* Optional property to provide component Ref
|
|
618
|
-
*/
|
|
619
|
-
ref?: ButtonRef;
|
|
620
|
-
/**
|
|
621
|
-
* Text to override `label` with additional, more precise information
|
|
622
|
-
* specifically for screen reader users.
|
|
623
|
-
*/
|
|
624
|
-
ariaLabel?: string;
|
|
625
|
-
/**
|
|
626
|
-
* HTML ID for the `HeroLink`
|
|
627
|
-
*/
|
|
628
|
-
id?: string;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
571
|
declare const ActionTile: React$1.FC<ActionTileProps>;
|
|
632
572
|
interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
633
573
|
/**
|
|
@@ -650,11 +590,32 @@ interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
650
590
|
|
|
651
591
|
declare const LinkTile: React$1.FC<LinkTileProps>;
|
|
652
592
|
interface LinkTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
593
|
+
/** Display text for the tile */
|
|
653
594
|
text?: string;
|
|
595
|
+
/** URL the tile navigates to. Renders as an anchor tag when provided */
|
|
654
596
|
href?: string;
|
|
597
|
+
/** Whether to show the arrow icon. Defaults to true */
|
|
655
598
|
showIcon?: boolean;
|
|
656
599
|
}
|
|
657
600
|
|
|
601
|
+
declare const InlineLinkGroup: React$1.FC<InlineLinkGroupProps>;
|
|
602
|
+
interface InlineLinkGroupProps {
|
|
603
|
+
/** Optional overline label displayed above the link group */
|
|
604
|
+
label?: string;
|
|
605
|
+
/** Array of link items to display */
|
|
606
|
+
links: InlineLinkGroupItem[];
|
|
607
|
+
}
|
|
608
|
+
interface InlineLinkGroupItem {
|
|
609
|
+
/** Display text for the link */
|
|
610
|
+
label: string;
|
|
611
|
+
/** URL the link navigates to */
|
|
612
|
+
href: string;
|
|
613
|
+
/** Optional click handler for the link */
|
|
614
|
+
onClick?: () => void;
|
|
615
|
+
/** Optional accessible label for screen readers */
|
|
616
|
+
ariaLabel?: string;
|
|
617
|
+
}
|
|
618
|
+
|
|
658
619
|
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
659
620
|
declare const ThumbnailSignpost: ({ text, title, img, onClick, buttonLabel, ...props }: ThumbnailSignpostProps) => JSX.Element;
|
|
660
621
|
interface ThumbnailSignpostProps {
|
|
@@ -688,5 +649,5 @@ interface PromoListingThumbnailSignpostProps extends SectionHeadingProps {
|
|
|
688
649
|
thumbnailList: ThumbnailSignpostProps[];
|
|
689
650
|
}
|
|
690
651
|
|
|
691
|
-
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost,
|
|
692
|
-
export type { AccordionProps, ActionTileProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps,
|
|
652
|
+
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost };
|
|
653
|
+
export type { AccordionProps, ActionTileProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps };
|
package/lib/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { ReactNode, FC
|
|
1
|
+
import React$1, { ReactNode, FC } from 'react';
|
|
2
2
|
import { HeadingLevel } from '@arc-ui/components/Heading';
|
|
3
3
|
import { ImageProps, ImageSourceProps } from '@arc-ui/components/Image';
|
|
4
4
|
import { DisclosureProps } from '@arc-ui/components/Disclosure';
|
|
@@ -358,10 +358,6 @@ interface PromoListingButton extends Omit<ButtonV2Props, "buttonStyle" | "icon"
|
|
|
358
358
|
* Style variant for the button. Defaults to "secondary".
|
|
359
359
|
*/
|
|
360
360
|
buttonStyle?: "secondary" | "compact";
|
|
361
|
-
/**
|
|
362
|
-
* Optional prop to pass additional props to the button. Only data-* and aria-* will work.
|
|
363
|
-
*/
|
|
364
|
-
[key: string]: unknown;
|
|
365
361
|
}
|
|
366
362
|
|
|
367
363
|
/**
|
|
@@ -572,62 +568,6 @@ interface ContentInfoWidgetProps {
|
|
|
572
568
|
text: string;
|
|
573
569
|
}
|
|
574
570
|
|
|
575
|
-
type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
|
|
576
|
-
type ButtonRef = Ref<ElementUnion> | null;
|
|
577
|
-
/**
|
|
578
|
-
* Pill-style HeroLink component with default and hover states
|
|
579
|
-
*/
|
|
580
|
-
declare const HeroLink: ({ label, onClick, href, id, rel, target, ariaLabel, ref, ...props }: HeroLinkProps) => JSX.Element;
|
|
581
|
-
interface LinkElementProps {
|
|
582
|
-
/**
|
|
583
|
-
* URL to link to if `HeroButton` elementType is 'a'.
|
|
584
|
-
*/
|
|
585
|
-
href?: string;
|
|
586
|
-
/**
|
|
587
|
-
* Target window for the `HeroButton` href URL.
|
|
588
|
-
*/
|
|
589
|
-
target?: string;
|
|
590
|
-
/**
|
|
591
|
-
* Relationship between the Button href URL and the current page. See
|
|
592
|
-
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel).
|
|
593
|
-
*/
|
|
594
|
-
rel?: string;
|
|
595
|
-
}
|
|
596
|
-
interface HeroButtonElementProps {
|
|
597
|
-
/**
|
|
598
|
-
* Default behavior of the Button element. If not provided, 'submit' will
|
|
599
|
-
* be inferred. Type 'reset' deliberately excluded.
|
|
600
|
-
*/
|
|
601
|
-
type?: "button" | "submit";
|
|
602
|
-
/**
|
|
603
|
-
* Refers to the id of a form so it can be submitted if the button exists outside of it.
|
|
604
|
-
*/
|
|
605
|
-
form?: string;
|
|
606
|
-
}
|
|
607
|
-
interface HeroLinkProps extends HeroButtonElementProps, LinkElementProps {
|
|
608
|
-
/**
|
|
609
|
-
* Label for `HeroLink`
|
|
610
|
-
*/
|
|
611
|
-
label?: string;
|
|
612
|
-
/**
|
|
613
|
-
* Optional click handler for the `HeroLink`.
|
|
614
|
-
*/
|
|
615
|
-
onClick?: () => void;
|
|
616
|
-
/**
|
|
617
|
-
* Optional property to provide component Ref
|
|
618
|
-
*/
|
|
619
|
-
ref?: ButtonRef;
|
|
620
|
-
/**
|
|
621
|
-
* Text to override `label` with additional, more precise information
|
|
622
|
-
* specifically for screen reader users.
|
|
623
|
-
*/
|
|
624
|
-
ariaLabel?: string;
|
|
625
|
-
/**
|
|
626
|
-
* HTML ID for the `HeroLink`
|
|
627
|
-
*/
|
|
628
|
-
id?: string;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
571
|
declare const ActionTile: React$1.FC<ActionTileProps>;
|
|
632
572
|
interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
633
573
|
/**
|
|
@@ -650,11 +590,32 @@ interface ActionTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
650
590
|
|
|
651
591
|
declare const LinkTile: React$1.FC<LinkTileProps>;
|
|
652
592
|
interface LinkTileProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
593
|
+
/** Display text for the tile */
|
|
653
594
|
text?: string;
|
|
595
|
+
/** URL the tile navigates to. Renders as an anchor tag when provided */
|
|
654
596
|
href?: string;
|
|
597
|
+
/** Whether to show the arrow icon. Defaults to true */
|
|
655
598
|
showIcon?: boolean;
|
|
656
599
|
}
|
|
657
600
|
|
|
601
|
+
declare const InlineLinkGroup: React$1.FC<InlineLinkGroupProps>;
|
|
602
|
+
interface InlineLinkGroupProps {
|
|
603
|
+
/** Optional overline label displayed above the link group */
|
|
604
|
+
label?: string;
|
|
605
|
+
/** Array of link items to display */
|
|
606
|
+
links: InlineLinkGroupItem[];
|
|
607
|
+
}
|
|
608
|
+
interface InlineLinkGroupItem {
|
|
609
|
+
/** Display text for the link */
|
|
610
|
+
label: string;
|
|
611
|
+
/** URL the link navigates to */
|
|
612
|
+
href: string;
|
|
613
|
+
/** Optional click handler for the link */
|
|
614
|
+
onClick?: () => void;
|
|
615
|
+
/** Optional accessible label for screen readers */
|
|
616
|
+
ariaLabel?: string;
|
|
617
|
+
}
|
|
618
|
+
|
|
658
619
|
/** Use `ThumbnailSignpost` to highlight key information or navigation points with an accompanying thumbnail image or icon. */
|
|
659
620
|
declare const ThumbnailSignpost: ({ text, title, img, onClick, buttonLabel, ...props }: ThumbnailSignpostProps) => JSX.Element;
|
|
660
621
|
interface ThumbnailSignpostProps {
|
|
@@ -688,5 +649,5 @@ interface PromoListingThumbnailSignpostProps extends SectionHeadingProps {
|
|
|
688
649
|
thumbnailList: ThumbnailSignpostProps[];
|
|
689
650
|
}
|
|
690
651
|
|
|
691
|
-
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost,
|
|
692
|
-
export type { AccordionProps, ActionTileProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps,
|
|
652
|
+
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost };
|
|
653
|
+
export type { AccordionProps, ActionTileProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps };
|
package/lib/index.mjs
CHANGED
|
@@ -22,6 +22,7 @@ import { TypographyCard } from '@arc-ui/components/TypographyCard';
|
|
|
22
22
|
import { Box } from '@arc-ui/components/Box';
|
|
23
23
|
import { Rule } from '@arc-ui/components/Rule';
|
|
24
24
|
import { Align } from '@arc-ui/components/Align';
|
|
25
|
+
import { Hidden } from '@arc-ui/components/Hidden';
|
|
25
26
|
import { TabbedBanner } from '@arc-ui/components/TabbedBanner';
|
|
26
27
|
import { Tag } from '@arc-ui/components/Tag';
|
|
27
28
|
import { Toast, ToastNotification } from '@arc-ui/components/Toast';
|
|
@@ -443,14 +444,13 @@ var CopyLead = function (_a) {
|
|
|
443
444
|
var styles$g = {"headingContainer":"DownloadList-module_headingContainer__PNio8"};
|
|
444
445
|
|
|
445
446
|
var DownloadList = function (_a) {
|
|
446
|
-
var heading = _a.heading, id = _a.id, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, downloads = _a.downloads;
|
|
447
|
-
return (React.createElement(
|
|
447
|
+
var heading = _a.heading, id = _a.id, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, downloads = _a.downloads, props = __rest(_a, ["heading", "id", "headingLevel", "isHeadingWordWrap", "content", "downloads"]);
|
|
448
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
448
449
|
React.createElement("div", { className: styles$g.headingContainer },
|
|
449
450
|
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
450
451
|
React.createElement(VerticalSpace, { size: "40" }),
|
|
451
|
-
downloads.map(function (
|
|
452
|
-
React.createElement(Download, __assign({},
|
|
453
|
-
" ",
|
|
452
|
+
downloads.map(function (downloadProps, i) { return (React.createElement(React.Fragment, { key: "download-".concat(i) },
|
|
453
|
+
React.createElement(Download, __assign({}, downloadProps)),
|
|
454
454
|
i !== downloads.length - 1 && React.createElement(VerticalSpace, { size: "16" }))); })));
|
|
455
455
|
};
|
|
456
456
|
|
|
@@ -2741,12 +2741,12 @@ var FeaturePost = function (_a) {
|
|
|
2741
2741
|
!isMinWidthArcBreakpointM && (React.createElement("div", { "data-testid": "mobile-img" },
|
|
2742
2742
|
React.createElement(VerticalSpace, { size: "40" }),
|
|
2743
2743
|
React.createElement(MediaContent, { image: image, video: video }))),
|
|
2744
|
-
React.createElement(VerticalSpace, { size: "
|
|
2744
|
+
React.createElement(VerticalSpace, { size: "24" }),
|
|
2745
2745
|
typeof content === "string" ? (React.createElement(Text, { size: "l" }, content)) : (content),
|
|
2746
2746
|
(footer === null || footer === void 0 ? void 0 : footer.type) === "cta" && (React.createElement(React.Fragment, null,
|
|
2747
2747
|
footer.author && (React.createElement(React.Fragment, null,
|
|
2748
|
-
React.createElement(VerticalSpace, { size: "
|
|
2749
|
-
React.createElement(Author, {
|
|
2748
|
+
React.createElement(VerticalSpace, { size: "40" }),
|
|
2749
|
+
React.createElement(Author, __assign({}, footer.author)))),
|
|
2750
2750
|
React.createElement(VerticalSpace, { size: "40" }),
|
|
2751
2751
|
React.createElement(ButtonV2, __assign({ buttonStyle: "secondary" }, footer.button)))),
|
|
2752
2752
|
(footer === null || footer === void 0 ? void 0 : footer.type) === "appButton" && (React.createElement(React.Fragment, null,
|
|
@@ -2779,9 +2779,9 @@ var getListHeadingLevel = function (level) {
|
|
|
2779
2779
|
};
|
|
2780
2780
|
|
|
2781
2781
|
var HighlightItem = function (_a) {
|
|
2782
|
-
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel;
|
|
2782
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = __rest(_a, ["icon", "heading", "text", "link", "isSmallIcon", "headingLevel"]);
|
|
2783
2783
|
var listHeadingLevel = getListHeadingLevel(headingLevel || "2");
|
|
2784
|
-
return (React.createElement("div", { "data-testid": "highlight-item-container", className: styles$d.highlightItem },
|
|
2784
|
+
return (React.createElement("div", __assign({ "data-testid": "highlight-item-container", className: styles$d.highlightItem }, filterAttrs(props)),
|
|
2785
2785
|
icon && (React.createElement("div", { className: styles$d.Icon },
|
|
2786
2786
|
React.createElement(Icon, { "data-testid": "highlight-icon", color: "brand", icon: icon, size: isSmallIcon ? 64 : 76 }))),
|
|
2787
2787
|
React.createElement(VerticalSpace, { size: "16" }),
|
|
@@ -2793,11 +2793,11 @@ var HighlightItem = function (_a) {
|
|
|
2793
2793
|
};
|
|
2794
2794
|
|
|
2795
2795
|
var HighlightList = function (_a) {
|
|
2796
|
-
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel;
|
|
2796
|
+
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon, headingLevel = _a.headingLevel, props = __rest(_a, ["listItems", "columns", "isSmallIcon", "headingLevel"]);
|
|
2797
2797
|
var id = useId();
|
|
2798
|
-
return (React.createElement("div", { "data-testid": "highlights-list", className: classNames(styles$d.highlights, styles$d["highlights".concat(columns, "Column")]) }, listItems.map(function (_a, i) {
|
|
2799
|
-
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link;
|
|
2800
|
-
return (React.createElement(HighlightItem, { key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon, headingLevel: headingLevel }));
|
|
2798
|
+
return (React.createElement("div", __assign({ "data-testid": "highlights-list", className: classNames(styles$d.highlights, styles$d["highlights".concat(columns, "Column")]) }, filterAttrs(props)), listItems.map(function (_a, i) {
|
|
2799
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, itemProps = __rest(_a, ["icon", "heading", "text", "link"]);
|
|
2800
|
+
return (React.createElement(HighlightItem, __assign({ key: "highlight-".concat(id, "-").concat(i), icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon, headingLevel: headingLevel }, itemProps)));
|
|
2801
2801
|
})));
|
|
2802
2802
|
};
|
|
2803
2803
|
|
|
@@ -2808,11 +2808,11 @@ var HighlightList = function (_a) {
|
|
|
2808
2808
|
*/
|
|
2809
2809
|
var Highlights = function (_a) {
|
|
2810
2810
|
var _b, _c, _d;
|
|
2811
|
-
var heading = _a.heading, headingLevel = _a.headingLevel, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, listItems = _a.listItems, _e = _a.columns, columns = _e === void 0 ? "2" : _e, cta = _a.cta;
|
|
2811
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content, listItems = _a.listItems, _e = _a.columns, columns = _e === void 0 ? "2" : _e, cta = _a.cta, props = __rest(_a, ["heading", "headingLevel", "id", "isHeadingWordWrap", "content", "listItems", "columns", "cta"]);
|
|
2812
2812
|
var isMaxWidthArcBreakpointXs = useMediaQuery("(max-width: 767px)");
|
|
2813
|
-
return (React.createElement("div",
|
|
2813
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
2814
2814
|
React.createElement(SectionHeading, { isPadded: true, id: id, "data-testid": "highlights-header", heading: heading, headingLevel: headingLevel, isHeadingWordWrap: isHeadingWordWrap, content: content }),
|
|
2815
|
-
React.createElement(HighlightList, {
|
|
2815
|
+
React.createElement(HighlightList, { listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs, headingLevel: headingLevel }),
|
|
2816
2816
|
cta && (React.createElement(React.Fragment, null,
|
|
2817
2817
|
React.createElement(VerticalSpace, { size: "24" }),
|
|
2818
2818
|
React.createElement(ButtonV2, { label: cta.label, href: cta.href, onClick: cta.onClick, size: "m", ariaLabel: cta.ariaLabel, buttonStyle: cta.buttonStyle, icon: cta.buttonStyle === "compact"
|
|
@@ -2876,7 +2876,7 @@ const BtIconTickAlt2Px =
|
|
|
2876
2876
|
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
2877
2877
|
*/
|
|
2878
2878
|
var PromoListing = function (_a) {
|
|
2879
|
-
var heading = _a.heading, content = _a.content, id = _a.id, _b = _a.isCarousel, isCarousel = _b === void 0 ? false : _b, cards = _a.cards, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.columns, columns = _c === void 0 ? "2" : _c, _d = _a.button, button = _d === void 0 ? { buttonStyle: "secondary" } : _d, overlineHeadingLevel = _a.overlineHeadingLevel, overlineLabel = _a.overlineLabel;
|
|
2879
|
+
var heading = _a.heading, content = _a.content, id = _a.id, _b = _a.isCarousel, isCarousel = _b === void 0 ? false : _b, cards = _a.cards, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.columns, columns = _c === void 0 ? "2" : _c, _d = _a.button, button = _d === void 0 ? { buttonStyle: "secondary" } : _d, overlineHeadingLevel = _a.overlineHeadingLevel, overlineLabel = _a.overlineLabel, props = __rest(_a, ["heading", "content", "id", "isCarousel", "cards", "headingLevel", "isHeadingWordWrap", "columns", "button", "overlineHeadingLevel", "overlineLabel"]);
|
|
2880
2880
|
var componentId = useId();
|
|
2881
2881
|
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
2882
2882
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
@@ -2908,7 +2908,7 @@ var PromoListing = function (_a) {
|
|
|
2908
2908
|
var CardComponent = CARD_COMPONENTS[card.type];
|
|
2909
2909
|
return React.createElement(CardComponent, __assign({}, card, commonProps));
|
|
2910
2910
|
};
|
|
2911
|
-
return (React.createElement("div", { className: styles$c.PromoListing },
|
|
2911
|
+
return (React.createElement("div", __assign({ className: styles$c.PromoListing }, filterAttrs(props)),
|
|
2912
2912
|
overlineLabel && (React.createElement(React.Fragment, null,
|
|
2913
2913
|
React.createElement(Heading, { level: overlineHeadingLevel, fontStyle: "overline" }, overlineLabel),
|
|
2914
2914
|
React.createElement(VerticalSpace, { size: "12" }))),
|
|
@@ -2932,15 +2932,15 @@ var Quote = function (_a) {
|
|
|
2932
2932
|
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles$b.quoteIcon, "aria-hidden": "true" },
|
|
2933
2933
|
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" })),
|
|
2934
2934
|
React.createElement("p", { className: styles$b.quoteContent }, content)),
|
|
2935
|
-
author &&
|
|
2935
|
+
author && React.createElement(Author, __assign({}, author))));
|
|
2936
2936
|
};
|
|
2937
2937
|
|
|
2938
2938
|
var styles$a = {"ruleContainer":"Summary-module_ruleContainer__ydWlG","row":"Summary-module_row__SKV--"};
|
|
2939
2939
|
|
|
2940
2940
|
var Summary = function (_a) {
|
|
2941
|
-
var content = _a.content, _b = _a.noBorder, noBorder = _b === void 0 ? false : _b, _c = _a.headingLevel, headingLevel = _c === void 0 ? "3" : _c;
|
|
2941
|
+
var content = _a.content, _b = _a.noBorder, noBorder = _b === void 0 ? false : _b, _c = _a.headingLevel, headingLevel = _c === void 0 ? "3" : _c, props = __rest(_a, ["content", "noBorder", "headingLevel"]);
|
|
2942
2942
|
var isMinWidthArcBreakpointM = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
2943
|
-
return (React.createElement(Box, __assign({ isBorderRadius: true }, (!noBorder ? { borderWidth: "thin" } : { elevationLevel: "1" }), { padding: "24" }),
|
|
2943
|
+
return (React.createElement(Box, __assign({ isBorderRadius: true }, (!noBorder ? { borderWidth: "thin" } : { elevationLevel: "1" }), { padding: "24" }, filterAttrs(props)),
|
|
2944
2944
|
React.createElement("div", { className: styles$a.row }, content.map(function (_a, i) {
|
|
2945
2945
|
var heading = _a.heading, text = _a.text;
|
|
2946
2946
|
return (React.createElement(React.Fragment, null,
|
|
@@ -2953,7 +2953,7 @@ var Summary = function (_a) {
|
|
|
2953
2953
|
}))));
|
|
2954
2954
|
};
|
|
2955
2955
|
|
|
2956
|
-
var styles$9 = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM"
|
|
2956
|
+
var styles$9 = {"list":"Statistics-module_list__BI-eQ","mutedText":"Statistics-module_mutedText__MR1JM"};
|
|
2957
2957
|
|
|
2958
2958
|
var getLinkProps = function (link) {
|
|
2959
2959
|
return link.openInNewTab
|
|
@@ -2965,12 +2965,11 @@ var getLinkProps = function (link) {
|
|
|
2965
2965
|
};
|
|
2966
2966
|
|
|
2967
2967
|
var Statistics = function (_a) {
|
|
2968
|
-
var id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics;
|
|
2968
|
+
var id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, headingLevel = _a.headingLevel, heading = _a.heading, content = _a.content, statistics = _a.statistics, props = __rest(_a, ["id", "isHeadingWordWrap", "headingLevel", "heading", "content", "statistics"]);
|
|
2969
2969
|
var componentId = useId();
|
|
2970
|
-
return (React.createElement(Columns,
|
|
2970
|
+
return (React.createElement(Columns, __assign({ isGutterless: true }, filterAttrs(props)),
|
|
2971
2971
|
React.createElement(ColumnsCol, { spanM: 9 },
|
|
2972
|
-
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content }),
|
|
2973
|
-
React.createElement(VerticalSpace, { size: "16" })),
|
|
2972
|
+
React.createElement(SectionHeading, { id: id, heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content })),
|
|
2974
2973
|
React.createElement(ColumnsCol, { spanL: 9 },
|
|
2975
2974
|
React.createElement("ul", { className: styles$9.list }, statistics.map(function (_a, i) {
|
|
2976
2975
|
var stat = _a.stat, copy = _a.copy, link = _a.link, source = _a.source, sourceUrl = _a.sourceUrl;
|
|
@@ -2983,18 +2982,21 @@ var Statistics = function (_a) {
|
|
|
2983
2982
|
React.createElement(ColumnsCol, { spanS: 6, spanM: 8 },
|
|
2984
2983
|
React.createElement(Align, { vertical: "center" },
|
|
2985
2984
|
React.createElement("div", { className: styles$9.statWrapper },
|
|
2986
|
-
React.createElement(Heading, { color: "brand", size: "xxl" }, stat)
|
|
2985
|
+
React.createElement(Heading, { color: "brand", size: "xxl" }, stat),
|
|
2986
|
+
React.createElement(Hidden, { s: true, m: true, l: true, xl: true, xxl: true },
|
|
2987
|
+
React.createElement(VerticalSpace, { size: "12" }))))),
|
|
2987
2988
|
React.createElement(ColumnsCol, { spanS: 6, spanM: 4 },
|
|
2988
|
-
React.createElement(
|
|
2989
|
-
|
|
2990
|
-
React.createElement(
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
React.createElement(
|
|
2994
|
-
|
|
2995
|
-
React.createElement(
|
|
2996
|
-
|
|
2997
|
-
React.createElement(
|
|
2989
|
+
React.createElement(Align, { vertical: "center" },
|
|
2990
|
+
React.createElement(Text, null, copy),
|
|
2991
|
+
link && (React.createElement(React.Fragment, null,
|
|
2992
|
+
React.createElement(VerticalSpace, { size: "12" }),
|
|
2993
|
+
React.createElement("a", __assign({ href: link.href, "aria-label": link.ariaLabel }, getLinkProps(link)), link.text))),
|
|
2994
|
+
source && (React.createElement(React.Fragment, null,
|
|
2995
|
+
React.createElement(VerticalSpace, { size: "12" }),
|
|
2996
|
+
React.createElement(Text, { size: "xs" },
|
|
2997
|
+
React.createElement("span", { className: styles$9.mutedText }, source)))),
|
|
2998
|
+
sourceUrl && (React.createElement(Text, { size: "xs" },
|
|
2999
|
+
React.createElement("a", { className: styles$9.mutedText, href: sourceUrl }, sourceUrl))))))));
|
|
2998
3000
|
})))));
|
|
2999
3001
|
};
|
|
3000
3002
|
|
|
@@ -3002,8 +3004,8 @@ var styles$8 = {"bannerWithTabsHeadingCentered":"BannerWithTabs-module_bannerWit
|
|
|
3002
3004
|
|
|
3003
3005
|
var BannerWithTabs = function (_a) {
|
|
3004
3006
|
var _b;
|
|
3005
|
-
var tabs = _a.tabs, defaultValue = _a.defaultValue, heading = _a.heading, content = _a.content, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.alignTypography, alignTypography = _c === void 0 ? "left" : _c, minHeight = _a.minHeight, minHeightM = _a.minHeightM;
|
|
3006
|
-
return (React.createElement(
|
|
3007
|
+
var tabs = _a.tabs, defaultValue = _a.defaultValue, heading = _a.heading, content = _a.content, id = _a.id, isHeadingWordWrap = _a.isHeadingWordWrap, _c = _a.alignTypography, alignTypography = _c === void 0 ? "left" : _c, minHeight = _a.minHeight, minHeightM = _a.minHeightM, props = __rest(_a, ["tabs", "defaultValue", "heading", "content", "id", "isHeadingWordWrap", "alignTypography", "minHeight", "minHeightM"]);
|
|
3008
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
3007
3009
|
React.createElement("div", { className: classNames((_b = {},
|
|
3008
3010
|
_b[styles$8.bannerWithTabsHeadingCentered] = alignTypography === "center",
|
|
3009
3011
|
_b)) },
|
|
@@ -3018,7 +3020,7 @@ var styles$7 = {"tagGroup":"ArticleSidebar-module_tagGroup__rIPQc","textContent"
|
|
|
3018
3020
|
*/
|
|
3019
3021
|
var ArticleSidebar = function (_a) {
|
|
3020
3022
|
var _b;
|
|
3021
|
-
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection;
|
|
3023
|
+
var author = _a.author, aboutSection = _a.aboutSection, topics = _a.topics, share = _a.share, additionalContent = _a.additionalContent, linkSection = _a.linkSection, props = __rest(_a, ["author", "aboutSection", "topics", "share", "additionalContent", "linkSection"]);
|
|
3022
3024
|
var id = useId();
|
|
3023
3025
|
var _c = useState(false), showToast = _c[0], setShowToast = _c[1];
|
|
3024
3026
|
var url = location.href;
|
|
@@ -3065,7 +3067,7 @@ var ArticleSidebar = function (_a) {
|
|
|
3065
3067
|
: []), true) : [];
|
|
3066
3068
|
var hasTopContent = Boolean(author || aboutSection || additionalContent);
|
|
3067
3069
|
var hasBottomContent = Boolean(linkSection || topics || share);
|
|
3068
|
-
return (React.createElement(
|
|
3070
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
3069
3071
|
React.createElement("div", { className: classNames((_b = {},
|
|
3070
3072
|
_b[styles$7.textContent] = hasTopContent,
|
|
3071
3073
|
_b)) },
|
|
@@ -3189,67 +3191,57 @@ var ProductNavigation = function (_a) {
|
|
|
3189
3191
|
var styles$5 = {"container":"ContentInfoWidget-module_container__yaS-8","text":"ContentInfoWidget-module_text__O1BdZ","icon":"ContentInfoWidget-module_icon__LEww1"};
|
|
3190
3192
|
|
|
3191
3193
|
var ContentInfoWidget = function (_a) {
|
|
3192
|
-
var text = _a.text, icon = _a.icon;
|
|
3193
|
-
return (React.createElement("div", { className: styles$5.container },
|
|
3194
|
+
var text = _a.text, icon = _a.icon, props = __rest(_a, ["text", "icon"]);
|
|
3195
|
+
return (React.createElement("div", __assign({ className: styles$5.container }, filterAttrs(props)),
|
|
3194
3196
|
React.createElement("div", { className: styles$5.icon },
|
|
3195
3197
|
React.createElement(Icon, { size: 20, icon: icon })),
|
|
3196
3198
|
React.createElement("div", { className: styles$5.text },
|
|
3197
3199
|
React.createElement(Text, { size: "xs", tone: "muted" }, text))));
|
|
3198
3200
|
};
|
|
3199
3201
|
|
|
3200
|
-
var styles$4 = {"
|
|
3201
|
-
|
|
3202
|
-
/**
|
|
3203
|
-
* Pill-style HeroLink component with default and hover states
|
|
3204
|
-
*/
|
|
3205
|
-
var HeroLink = function (_a) {
|
|
3206
|
-
var _b;
|
|
3207
|
-
var label = _a.label, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, ariaLabel = _a.ariaLabel, ref = _a.ref, props = __rest(_a, ["label", "onClick", "href", "id", "rel", "target", "ariaLabel", "ref"]);
|
|
3208
|
-
var HeroLinkClasses = classNames(styles$4.heroLink, (_b = {},
|
|
3209
|
-
_b[styles$4["heroLink--emptyLabel"]] = !label,
|
|
3210
|
-
_b));
|
|
3211
|
-
var commonProps = __assign({ id: id, onClick: onClick, ref: ref }, props);
|
|
3212
|
-
if (href) {
|
|
3213
|
-
return (React.createElement("a", __assign({}, commonProps, { className: HeroLinkClasses, href: href, rel: rel, "aria-label": ariaLabel, target: target }),
|
|
3214
|
-
React.createElement("span", { className: styles$4["heroLink-inner"] },
|
|
3215
|
-
label && React.createElement("span", { className: styles$4["heroLink-label"] }, label),
|
|
3216
|
-
React.createElement("span", { className: styles$4["heroLink-icon"] },
|
|
3217
|
-
React.createElement(Icon, { testId: "hero-link-icon", size: 24, icon: BtIconArrowAltRight })))));
|
|
3218
|
-
}
|
|
3219
|
-
return (React.createElement("button", __assign({}, commonProps, { className: HeroLinkClasses, "aria-label": ariaLabel }),
|
|
3220
|
-
React.createElement("span", { className: styles$4["heroLink-inner"] },
|
|
3221
|
-
label && React.createElement("span", { className: styles$4["heroLink-label"] }, label),
|
|
3222
|
-
React.createElement("span", { className: styles$4["heroLink-icon"] },
|
|
3223
|
-
React.createElement(Icon, { testId: "hero-link-icon", size: 24, icon: BtIconArrowAltRight })))));
|
|
3224
|
-
};
|
|
3225
|
-
|
|
3226
|
-
var styles$3 = {"action-tile":"ActionTile-module_action-tile__JPwGb","action-tile-content":"ActionTile-module_action-tile-content__ZkgHc","action-tile-icon":"ActionTile-module_action-tile-icon__PY1EN","action-tile-heading":"ActionTile-module_action-tile-heading__Uxdu9","action-tile--active":"ActionTile-module_action-tile--active__-aWze","action-tile-tick":"ActionTile-module_action-tile-tick__vhsJE"};
|
|
3202
|
+
var styles$4 = {"action-tile":"ActionTile-module_action-tile__JPwGb","action-tile-content":"ActionTile-module_action-tile-content__ZkgHc","action-tile-icon":"ActionTile-module_action-tile-icon__PY1EN","action-tile-heading":"ActionTile-module_action-tile-heading__Uxdu9","action-tile--active":"ActionTile-module_action-tile--active__-aWze","action-tile-tick":"ActionTile-module_action-tile-tick__vhsJE"};
|
|
3227
3203
|
|
|
3228
3204
|
var ActionTile = function (_a) {
|
|
3229
3205
|
var _b;
|
|
3230
3206
|
var icon = _a.icon, heading = _a.heading, _c = _a.isActive, isActive = _c === void 0 ? false : _c, onClick = _a.onClick, className = _a.className, props = __rest(_a, ["icon", "heading", "isActive", "onClick", "className"]);
|
|
3231
|
-
var tileClasses = classNames(styles$
|
|
3232
|
-
_b[styles$
|
|
3207
|
+
var tileClasses = classNames(styles$4["action-tile"], (_b = {},
|
|
3208
|
+
_b[styles$4["action-tile--active"]] = isActive,
|
|
3233
3209
|
_b), className);
|
|
3234
3210
|
var content = (React.createElement(React.Fragment, null,
|
|
3235
|
-
React.createElement("div", { className: styles$
|
|
3236
|
-
icon && (React.createElement("div", { className: styles$
|
|
3211
|
+
React.createElement("div", { className: styles$4["action-tile-content"] },
|
|
3212
|
+
icon && (React.createElement("div", { className: styles$4["action-tile-icon"] },
|
|
3237
3213
|
React.createElement(Icon, { icon: icon, size: 48 }))),
|
|
3238
|
-
React.createElement("h3", { className: styles$
|
|
3239
|
-
isActive && (React.createElement("div", { className: styles$
|
|
3240
|
-
React.createElement(Icon, { icon: BtIconTickAlt2Px, size:
|
|
3214
|
+
React.createElement("h3", { className: styles$4["action-tile-heading"] }, heading)),
|
|
3215
|
+
isActive && (React.createElement("div", { className: styles$4["action-tile-tick"] },
|
|
3216
|
+
React.createElement(Icon, { icon: BtIconTickAlt2Px, size: 28 })))));
|
|
3241
3217
|
return (React.createElement("div", __assign({ className: tileClasses, onClick: onClick }, filterAttrs(props)), content));
|
|
3242
3218
|
};
|
|
3243
3219
|
|
|
3244
|
-
var styles$
|
|
3220
|
+
var styles$3 = {"link-tile":"LinkTile-module_link-tile__xVUP3","link-tile-content":"LinkTile-module_link-tile-content__H-QN8","link-tile-icon":"LinkTile-module_link-tile-icon__kTMfH","link-tile-text":"LinkTile-module_link-tile-text__0K6zf"};
|
|
3245
3221
|
|
|
3246
3222
|
var LinkTile = function (_a) {
|
|
3247
3223
|
var text = _a.text, href = _a.href, _b = _a.showIcon, showIcon = _b === void 0 ? true : _b, className = _a.className, props = __rest(_a, ["text", "href", "showIcon", "className"]);
|
|
3248
3224
|
var Component = href ? "a" : "div";
|
|
3249
3225
|
var linkProps = href ? { href: href } : {};
|
|
3250
|
-
return (React.createElement(Component, __assign({ className: classNames(styles$
|
|
3251
|
-
React.createElement("span", { className: styles$
|
|
3252
|
-
showIcon && React.createElement(
|
|
3226
|
+
return (React.createElement(Component, __assign({ className: classNames(styles$3["link-tile"], className) }, linkProps, filterAttrs(props)), text && (React.createElement("div", { className: styles$3["link-tile-content"] },
|
|
3227
|
+
React.createElement("span", { className: styles$3["link-tile-text"] }, text),
|
|
3228
|
+
showIcon && (React.createElement("span", { className: styles$3["link-tile-icon"] },
|
|
3229
|
+
React.createElement(Icon, { icon: BtIconArrowAltRight, size: 32 })))))));
|
|
3230
|
+
};
|
|
3231
|
+
|
|
3232
|
+
var styles$2 = {"quick-help":"InlineLinkGroup-module_quick-help__cMTpB","quick-help-label":"InlineLinkGroup-module_quick-help-label__VLKen","quick-help-container":"InlineLinkGroup-module_quick-help-container__IStTk","quick-help-item":"InlineLinkGroup-module_quick-help-item__QTIMl","quick-help-separator":"InlineLinkGroup-module_quick-help-separator__qJE0q","quick-help-separator-line":"InlineLinkGroup-module_quick-help-separator-line__VbCVI"};
|
|
3233
|
+
|
|
3234
|
+
var InlineLinkGroup = function (_a) {
|
|
3235
|
+
var label = _a.label, links = _a.links, props = __rest(_a, ["label", "links"]);
|
|
3236
|
+
return (React.createElement("div", __assign({ className: styles$2["quick-help"] }, filterAttrs(props)),
|
|
3237
|
+
label && (React.createElement("div", { className: styles$2["quick-help-label"] },
|
|
3238
|
+
React.createElement(Heading, { size: "xxs", fontStyle: "overline" }, label))),
|
|
3239
|
+
React.createElement("ul", { className: styles$2["quick-help-container"] }, links.map(function (link, index) { return (React.createElement(React.Fragment, { key: index },
|
|
3240
|
+
React.createElement("li", { className: styles$2["quick-help-item"] },
|
|
3241
|
+
React.createElement(Link, { href: link.href, onClick: link.onClick, "aria-label": link.ariaLabel }, link.label),
|
|
3242
|
+
React.createElement(Icon, { icon: BtIconArrowAltRight, size: 24, color: "brand" })),
|
|
3243
|
+
index < links.length - 1 && (React.createElement("li", { className: styles$2["quick-help-separator"], "aria-hidden": "true" },
|
|
3244
|
+
React.createElement("div", { className: styles$2["quick-help-separator-line"] }))))); }))));
|
|
3253
3245
|
};
|
|
3254
3246
|
|
|
3255
3247
|
var styles$1 = {"thumbnailSignpost":"ThumbnailSignpost-module_thumbnailSignpost__Yf26b","isLink":"ThumbnailSignpost-module_isLink__FucdG","content":"ThumbnailSignpost-module_content__XG9oj","heading":"ThumbnailSignpost-module_heading__mTrpJ","image":"ThumbnailSignpost-module_image__syGZj","thumbnailButton":"ThumbnailSignpost-module_thumbnailButton__Nn-NR","buttonIcon":"ThumbnailSignpost-module_buttonIcon__ydmza"};
|
|
@@ -3292,5 +3284,5 @@ var PromoListingThumbnailSignpost = function (_a) {
|
|
|
3292
3284
|
React.createElement(ThumbnailSignpost, __assign({}, thumbnail)))); }))));
|
|
3293
3285
|
};
|
|
3294
3286
|
|
|
3295
|
-
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost,
|
|
3287
|
+
export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost };
|
|
3296
3288
|
//# sourceMappingURL=index.mjs.map
|