@arc-ui/community-components 3.6.0 → 3.7.1

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.
Files changed (96) hide show
  1. package/.turbo/turbo-build.log +9 -127
  2. package/CHANGELOG.md +18 -0
  3. package/lib/Accordion/Accordion.cjs +2 -2
  4. package/lib/Accordion/Accordion.mjs +2 -2
  5. package/lib/ActionTile/ActionTile.cjs +1 -1
  6. package/lib/ActionTile/ActionTile.mjs +1 -1
  7. package/lib/ArticleCarousel/ArticleCarousel.cjs +729 -0
  8. package/lib/ArticleCarousel/ArticleCarousel.mjs +727 -0
  9. package/lib/ArticleCarousel/styles.css +1 -0
  10. package/lib/ArticleSidebar/ArticleSidebar.cjs +1 -1
  11. package/lib/ArticleSidebar/ArticleSidebar.mjs +1 -1
  12. package/lib/BannerWithTabs/BannerWithTabs.cjs +2 -2
  13. package/lib/BannerWithTabs/BannerWithTabs.mjs +2 -2
  14. package/lib/BusinessSegmentSwitcher/styles.css +1 -1
  15. package/lib/CopyLead/CopyLead.cjs +4 -4
  16. package/lib/CopyLead/CopyLead.mjs +4 -4
  17. package/lib/DownloadList/DownloadList.cjs +2 -2
  18. package/lib/DownloadList/DownloadList.mjs +2 -2
  19. package/lib/FAQs/FAQs.cjs +3 -3
  20. package/lib/FAQs/FAQs.mjs +3 -3
  21. package/lib/FeaturePost/FeaturePost.cjs +2 -2
  22. package/lib/FeaturePost/FeaturePost.mjs +2 -2
  23. package/lib/Highlights/Highlights.cjs +2 -2
  24. package/lib/Highlights/Highlights.mjs +2 -2
  25. package/lib/LinkTile/LinkTile.cjs +1 -1
  26. package/lib/LinkTile/LinkTile.mjs +1 -1
  27. package/lib/ProductNavigation/ProductNavigation.cjs +3 -3
  28. package/lib/ProductNavigation/ProductNavigation.mjs +3 -3
  29. package/lib/PromoListing/PromoListing.cjs +3 -3
  30. package/lib/PromoListing/PromoListing.mjs +3 -3
  31. package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +3 -3
  32. package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +3 -3
  33. package/lib/Quote/Quote.cjs +1 -1
  34. package/lib/Quote/Quote.mjs +1 -1
  35. package/lib/SectionHeading/SectionHeading.cjs +2 -2
  36. package/lib/SectionHeading/SectionHeading.mjs +2 -2
  37. package/lib/SectionHeading/styles.css +1 -1
  38. package/lib/Statistics/Statistics.cjs +2 -2
  39. package/lib/Statistics/Statistics.mjs +2 -2
  40. package/lib/Summary/Summary.cjs +1 -1
  41. package/lib/Summary/Summary.mjs +1 -1
  42. package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +2 -2
  43. package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +2 -2
  44. package/lib/VideoHeroCard/VideoHeroCard.cjs +2 -2
  45. package/lib/VideoHeroCard/VideoHeroCard.mjs +2 -2
  46. package/lib/VideoPortraitCard/VideoPortraitCard.cjs +2 -2
  47. package/lib/VideoPortraitCard/VideoPortraitCard.mjs +2 -2
  48. package/lib/_shared/cjs/{Accordion-DfNGOjTm.cjs → Accordion-B-BRosyE.cjs} +1 -1
  49. package/lib/_shared/cjs/{SectionHeading-DeSFM0HV.cjs → SectionHeading-DtYzFetD.cjs} +4 -3
  50. package/lib/_shared/cjs/{ThumbnailSignpost-GkOiwt-Z.cjs → ThumbnailSignpost-ja1yxriK.cjs} +1 -1
  51. package/lib/_shared/cjs/{VideoCardThumbnail-N5iC-cAU.cjs → VideoCardThumbnail-BM3GwyWR.cjs} +11 -10
  52. package/lib/_shared/{esm/index-BfTCfPZ1.mjs → cjs/index-B7Z7sgRq.cjs} +7 -1
  53. package/lib/_shared/cjs/{index-oGP6D6gL.cjs → index-BGNF6yCj.cjs} +1 -0
  54. package/lib/_shared/cjs/{index.es-B0J3cvrY.cjs → index.es-Dg_lyAyh.cjs} +5 -1
  55. package/lib/_shared/cjs/{react-caXJFZ8W.cjs → react-8_kK_34Q.cjs} +1 -0
  56. package/lib/_shared/cjs/{react-DxToimBj.cjs → react-BVW2E3Ju.cjs} +1 -0
  57. package/lib/_shared/cjs/{react-CEvhi3LL.cjs → react-C95IDXkb.cjs} +1 -0
  58. package/lib/_shared/cjs/{react-fep2ei7j.cjs → react-DEb3W7_U.cjs} +1 -0
  59. package/lib/_shared/cjs/{react-JTfV8OSA.cjs → react-DRXlSgKY.cjs} +1 -0
  60. package/lib/_shared/cjs/{react-Dri2yjKm.cjs → react-Dd-Q2uS-.cjs} +1 -0
  61. package/lib/_shared/cjs/{react-CqsEClV0.cjs → react-ECcHB5Kq.cjs} +1 -0
  62. package/lib/_shared/cjs/{react-DE6M3seI.cjs → react-vuFaIB1V.cjs} +1 -0
  63. package/lib/_shared/esm/{Accordion-DSRlkcXi.mjs → Accordion-CKN8n0ky.mjs} +1 -1
  64. package/lib/_shared/esm/{SectionHeading-DSwsdNSp.mjs → SectionHeading-RLfs7ete.mjs} +4 -3
  65. package/lib/_shared/esm/{ThumbnailSignpost-BtaHAB0h.mjs → ThumbnailSignpost-Cc21FjUJ.mjs} +1 -1
  66. package/lib/_shared/esm/{VideoCardThumbnail-Tbh7Xi-X.mjs → VideoCardThumbnail-K6eHIeAM.mjs} +11 -10
  67. package/lib/_shared/esm/{index-CrcIrdjn.mjs → index-B2vIgafu.mjs} +1 -0
  68. package/lib/_shared/{cjs/index-Bp6Dd2i1.cjs → esm/index-BSO2EFem.mjs} +2 -2
  69. package/lib/_shared/esm/{index.es-DraZ-qKh.mjs → index.es-DtCgfyRV.mjs} +4 -2
  70. package/lib/_shared/esm/{react-BHT4t_eQ.mjs → react-BO_cEkGE.mjs} +1 -0
  71. package/lib/_shared/esm/{react-WW_9iHcl.mjs → react-BTJe4u4H.mjs} +1 -0
  72. package/lib/_shared/esm/{react-CSr43fZV.mjs → react-BwRGWqib.mjs} +1 -0
  73. package/lib/_shared/esm/{react-DZyqy7W7.mjs → react-CTKNh9bz.mjs} +1 -0
  74. package/lib/_shared/esm/{react-DG070IvZ.mjs → react-CscJmqQg.mjs} +1 -0
  75. package/lib/_shared/esm/{react-BGimq-TB.mjs → react-DHSUdG2R.mjs} +1 -0
  76. package/lib/_shared/esm/{react-BSd0sGcO.mjs → react-XaxcR2wG.mjs} +1 -0
  77. package/lib/_shared/esm/{react-Ca6E7Fr-.mjs → react-eIcgqtF9.mjs} +1 -0
  78. package/lib/index.cjs +774 -56
  79. package/lib/index.cjs.map +1 -1
  80. package/lib/index.d.cts +65 -35
  81. package/lib/index.d.mts +65 -35
  82. package/lib/index.mjs +775 -58
  83. package/lib/index.mjs.map +1 -1
  84. package/lib/styles.css +1 -1
  85. package/package.json +17 -14
  86. package/rollup.config.js +13 -0
  87. package/src/components/ArticleCarousel/ArticleCarousel.module.css +65 -0
  88. package/src/components/ArticleCarousel/ArticleCarousel.tsx +134 -0
  89. package/src/components/ArticleCarousel/index.ts +1 -0
  90. package/src/components/BusinessSegmentSwitcher/BusinessSegmentSwitcher.module.css +1 -1
  91. package/src/components/CopyLead/templates/Media/Media.tsx +7 -1
  92. package/src/components/SectionHeading/SectionHeading.module.css +4 -0
  93. package/src/components/SectionHeading/SectionHeading.tsx +6 -0
  94. package/src/components/index.ts +1 -0
  95. package/src/helpers/arc-breakpoints.ts +37 -0
  96. package/versions.json +1 -1
package/lib/index.d.cts CHANGED
@@ -2,13 +2,13 @@ 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';
5
+ import { MediaCardProps } from '@arc-ui/components/MediaCard';
5
6
  import { AvatarProps } from '@arc-ui/components/Avatar';
6
7
  import { VideoPlayerProps } from '@arc-ui/components/VideoPlayer';
7
8
  import { ButtonProps } from '@arc-ui/components/Button';
8
9
  import { DownloadProps } from '@arc-ui/components/Download';
9
10
  import { AppButtonProps } from '@arc-ui/components/AppButton';
10
11
  import { ButtonV2Props } from '@arc-ui/components/ButtonV2';
11
- import { MediaCardProps } from '@arc-ui/components/MediaCard';
12
12
  import { ImpactCardProps } from '@arc-ui/components/ImpactCard';
13
13
  import { InformationCardProps } from '@arc-ui/components/InformationCard';
14
14
  import { TypographyCardProps } from '@arc-ui/components/TypographyCard';
@@ -63,6 +63,68 @@ declare const Accordion: React$1.FC<AccordionProps>;
63
63
  interface AccordionProps extends Omit<AccordionHeadingProps, "isPadded">, AccordionDisclosureListProps {
64
64
  }
65
65
 
66
+ declare const SectionHeading: React$1.FC<SectionHeadingProps>;
67
+ interface SectionHeadingProps {
68
+ /**
69
+ * heading for `SectionHeading`.
70
+ */
71
+ heading: string;
72
+ /**
73
+ * Adds padding to `SectionHeading`.
74
+ */
75
+ isPadded?: boolean;
76
+ /**
77
+ * Determine a heading level for `SectionHeading`.
78
+ */
79
+ headingLevel?: HeadingLevel;
80
+ /**
81
+ * Word wrap behavior for the heading
82
+ */
83
+ isHeadingWordWrap?: boolean;
84
+ /**
85
+ * Text content for `SectionHeading`.
86
+ */
87
+ content?: string | ReactNode;
88
+ /**
89
+ * Id content for `SectionHeading`.
90
+ */
91
+ id?: string;
92
+ /**
93
+ * Header image for the `SectionHeading`.
94
+ */
95
+ image?: ImageProps;
96
+ /**
97
+ * Is Heading centered. Only intended to be used when no content is provided and the heading is alone.
98
+ */
99
+ isCentered?: boolean;
100
+ }
101
+
102
+ /**
103
+ * Use `ArticleCarousel` to give supporting information about a page or proposition in the form of the `Carousel` containing only `MediaCard` components.
104
+ */
105
+ declare const ArticleCarousel: React$1.FC<ArticleCarouselProps>;
106
+ interface ArticleCarouselProps extends SectionHeadingProps {
107
+ /**
108
+ * Cards object of MediaCards for Carousel to display.
109
+ */
110
+ cards: MediaCardProps[];
111
+ /**
112
+ * Determine if MediaCards are displayed in their contained or uncontained styles.
113
+ */
114
+ cardsContained?: boolean;
115
+ /**
116
+ * Determine minimum height of cards per breakpoint.
117
+ */
118
+ minHeights?: {
119
+ xxl?: number;
120
+ xl?: number;
121
+ l?: number;
122
+ m?: number;
123
+ s?: number;
124
+ xs?: number;
125
+ };
126
+ }
127
+
66
128
  declare const Author: React$1.FC<AuthorProps>;
67
129
  interface AuthorProps {
68
130
  /**
@@ -138,38 +200,6 @@ interface CopyLeadProps {
138
200
  listItems: CopyLeadListItem[];
139
201
  }
140
202
 
141
- declare const SectionHeading: React$1.FC<SectionHeadingProps>;
142
- interface SectionHeadingProps {
143
- /**
144
- * heading for `SectionHeading`.
145
- */
146
- heading: string;
147
- /**
148
- * Adds padding to `SectionHeading`.
149
- */
150
- isPadded?: boolean;
151
- /**
152
- * Determine a heading level for `SectionHeading`.
153
- */
154
- headingLevel?: HeadingLevel;
155
- /**
156
- * Word wrap behavior for the heading
157
- */
158
- isHeadingWordWrap?: boolean;
159
- /**
160
- * Text content for `SectionHeading`.
161
- */
162
- content?: string | ReactNode;
163
- /**
164
- * Id content for `SectionHeading`.
165
- */
166
- id?: string;
167
- /**
168
- * Header image for the `SectionHeading`.
169
- */
170
- image?: ImageProps;
171
- }
172
-
173
203
  declare const DownloadList: React$1.FC<DownloadListProps>;
174
204
  interface DownloadListProps extends Omit<SectionHeadingProps, "isPadded"> {
175
205
  downloads: DownloadProps[];
@@ -764,5 +794,5 @@ interface BusinessSegmentSwitcherProps {
764
794
  }[];
765
795
  }
766
796
 
767
- export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, BusinessSegmentSwitcher, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
768
- export type { AccordionProps, ActionTileProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, BentoGridContent, BentoInformationCard, BentoMediaCard, BusinessSegmentSwitcherProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps, VideoHeroCardProps, VideoPortraitCardProps };
797
+ export { Accordion, ActionTile, ArticleCarousel, ArticleSidebar, Author, BannerWithTabs, BusinessSegmentSwitcher, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
798
+ export type { AccordionProps, ActionTileProps, ArticleCarouselProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, BentoGridContent, BentoInformationCard, BentoMediaCard, BusinessSegmentSwitcherProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps, VideoHeroCardProps, VideoPortraitCardProps };
package/lib/index.d.mts CHANGED
@@ -2,13 +2,13 @@ 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';
5
+ import { MediaCardProps } from '@arc-ui/components/MediaCard';
5
6
  import { AvatarProps } from '@arc-ui/components/Avatar';
6
7
  import { VideoPlayerProps } from '@arc-ui/components/VideoPlayer';
7
8
  import { ButtonProps } from '@arc-ui/components/Button';
8
9
  import { DownloadProps } from '@arc-ui/components/Download';
9
10
  import { AppButtonProps } from '@arc-ui/components/AppButton';
10
11
  import { ButtonV2Props } from '@arc-ui/components/ButtonV2';
11
- import { MediaCardProps } from '@arc-ui/components/MediaCard';
12
12
  import { ImpactCardProps } from '@arc-ui/components/ImpactCard';
13
13
  import { InformationCardProps } from '@arc-ui/components/InformationCard';
14
14
  import { TypographyCardProps } from '@arc-ui/components/TypographyCard';
@@ -63,6 +63,68 @@ declare const Accordion: React$1.FC<AccordionProps>;
63
63
  interface AccordionProps extends Omit<AccordionHeadingProps, "isPadded">, AccordionDisclosureListProps {
64
64
  }
65
65
 
66
+ declare const SectionHeading: React$1.FC<SectionHeadingProps>;
67
+ interface SectionHeadingProps {
68
+ /**
69
+ * heading for `SectionHeading`.
70
+ */
71
+ heading: string;
72
+ /**
73
+ * Adds padding to `SectionHeading`.
74
+ */
75
+ isPadded?: boolean;
76
+ /**
77
+ * Determine a heading level for `SectionHeading`.
78
+ */
79
+ headingLevel?: HeadingLevel;
80
+ /**
81
+ * Word wrap behavior for the heading
82
+ */
83
+ isHeadingWordWrap?: boolean;
84
+ /**
85
+ * Text content for `SectionHeading`.
86
+ */
87
+ content?: string | ReactNode;
88
+ /**
89
+ * Id content for `SectionHeading`.
90
+ */
91
+ id?: string;
92
+ /**
93
+ * Header image for the `SectionHeading`.
94
+ */
95
+ image?: ImageProps;
96
+ /**
97
+ * Is Heading centered. Only intended to be used when no content is provided and the heading is alone.
98
+ */
99
+ isCentered?: boolean;
100
+ }
101
+
102
+ /**
103
+ * Use `ArticleCarousel` to give supporting information about a page or proposition in the form of the `Carousel` containing only `MediaCard` components.
104
+ */
105
+ declare const ArticleCarousel: React$1.FC<ArticleCarouselProps>;
106
+ interface ArticleCarouselProps extends SectionHeadingProps {
107
+ /**
108
+ * Cards object of MediaCards for Carousel to display.
109
+ */
110
+ cards: MediaCardProps[];
111
+ /**
112
+ * Determine if MediaCards are displayed in their contained or uncontained styles.
113
+ */
114
+ cardsContained?: boolean;
115
+ /**
116
+ * Determine minimum height of cards per breakpoint.
117
+ */
118
+ minHeights?: {
119
+ xxl?: number;
120
+ xl?: number;
121
+ l?: number;
122
+ m?: number;
123
+ s?: number;
124
+ xs?: number;
125
+ };
126
+ }
127
+
66
128
  declare const Author: React$1.FC<AuthorProps>;
67
129
  interface AuthorProps {
68
130
  /**
@@ -138,38 +200,6 @@ interface CopyLeadProps {
138
200
  listItems: CopyLeadListItem[];
139
201
  }
140
202
 
141
- declare const SectionHeading: React$1.FC<SectionHeadingProps>;
142
- interface SectionHeadingProps {
143
- /**
144
- * heading for `SectionHeading`.
145
- */
146
- heading: string;
147
- /**
148
- * Adds padding to `SectionHeading`.
149
- */
150
- isPadded?: boolean;
151
- /**
152
- * Determine a heading level for `SectionHeading`.
153
- */
154
- headingLevel?: HeadingLevel;
155
- /**
156
- * Word wrap behavior for the heading
157
- */
158
- isHeadingWordWrap?: boolean;
159
- /**
160
- * Text content for `SectionHeading`.
161
- */
162
- content?: string | ReactNode;
163
- /**
164
- * Id content for `SectionHeading`.
165
- */
166
- id?: string;
167
- /**
168
- * Header image for the `SectionHeading`.
169
- */
170
- image?: ImageProps;
171
- }
172
-
173
203
  declare const DownloadList: React$1.FC<DownloadListProps>;
174
204
  interface DownloadListProps extends Omit<SectionHeadingProps, "isPadded"> {
175
205
  downloads: DownloadProps[];
@@ -764,5 +794,5 @@ interface BusinessSegmentSwitcherProps {
764
794
  }[];
765
795
  }
766
796
 
767
- export { Accordion, ActionTile, ArticleSidebar, Author, BannerWithTabs, BusinessSegmentSwitcher, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
768
- export type { AccordionProps, ActionTileProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, BentoGridContent, BentoInformationCard, BentoMediaCard, BusinessSegmentSwitcherProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps, VideoHeroCardProps, VideoPortraitCardProps };
797
+ export { Accordion, ActionTile, ArticleCarousel, ArticleSidebar, Author, BannerWithTabs, BusinessSegmentSwitcher, ContentInfoWidget, CopyLead, DownloadList, FAQs, FeaturePost, Highlights, InlineLinkGroup, LinkTile, ProductNavigation, PromoListing, PromoListingThumbnailSignpost, Quote, SectionHeading, Statistics, Summary, ThumbnailSignpost, VideoHeroCard, VideoPortraitCard };
798
+ export type { AccordionProps, ActionTileProps, ArticleCarouselProps, ArticleSidebarProps, AuthorProps, BannerWithTabsProps, BentoGridContent, BentoInformationCard, BentoMediaCard, BusinessSegmentSwitcherProps, ContentInfoWidgetProps, CopyLeadProps, DownloadListProps, FAQsProps, FeaturePostProps, HighlightsProps, InlineLinkGroupItem, InlineLinkGroupProps, LinkTileProps, ListProps, ProductNavigationProps, PromoListingProps, PromoListingThumbnailSignpostProps, QuoteProps, SectionHeadingProps, StatisticsProps, SummaryProps, ThumbnailSignpostProps, VideoHeroCardProps, VideoPortraitCardProps };