@arc-ui/community-components 12.0.0-beta.5 → 12.0.0-beta7

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 (69) hide show
  1. package/dist/Accordion/Accordion.cjs.js +48 -0
  2. package/dist/Accordion/Accordion.esm.js +40 -0
  3. package/dist/Accordion/package.json +7 -0
  4. package/dist/Accordion/styles.css +1 -0
  5. package/dist/Author/Author.cjs.js +16 -0
  6. package/dist/Author/Author.esm.js +8 -0
  7. package/dist/Author/package.json +7 -0
  8. package/dist/Author/styles.css +1 -0
  9. package/dist/CopyLead/CopyLead.cjs.js +39 -46
  10. package/dist/CopyLead/CopyLead.esm.js +26 -33
  11. package/dist/CopyLead/styles.css +1 -0
  12. package/dist/FeaturePost/FeaturePost.cjs.js +2220 -26
  13. package/dist/FeaturePost/FeaturePost.esm.js +2213 -19
  14. package/dist/FeaturePost/styles.css +1 -0
  15. package/dist/Highlights/Highlights.cjs.js +64 -0
  16. package/dist/Highlights/Highlights.esm.js +56 -0
  17. package/dist/Highlights/package.json +7 -0
  18. package/dist/Highlights/styles.css +1 -0
  19. package/dist/PromoListing/PromoListing.cjs.js +66 -0
  20. package/dist/PromoListing/PromoListing.esm.js +58 -0
  21. package/dist/PromoListing/package.json +7 -0
  22. package/dist/PromoListing/styles.css +1 -0
  23. package/dist/Quote/Quote.cjs.js +33 -0
  24. package/dist/Quote/Quote.esm.js +25 -0
  25. package/dist/Quote/package.json +7 -0
  26. package/dist/Quote/styles.css +1 -0
  27. package/dist/_shared/cjs/Author-cd166353.js +30 -0
  28. package/dist/_shared/cjs/index-9947ac13.js +64 -0
  29. package/dist/_shared/cjs/index.es-875b2756.js +13 -0
  30. package/dist/_shared/cjs/index.es-a9e01247.js +129 -0
  31. package/dist/_shared/cjs/tslib.es6-ec509cfc.js +46 -0
  32. package/dist/_shared/esm/Author-9c7cb4f2.js +24 -0
  33. package/dist/_shared/esm/index-2e73c2e9.js +62 -0
  34. package/dist/_shared/esm/index.es-33860780.js +127 -0
  35. package/dist/_shared/esm/index.es-a1591fd3.js +9 -0
  36. package/dist/_shared/esm/tslib.es6-2bdcff75.js +44 -0
  37. package/dist/index.es.js +2528 -63
  38. package/dist/index.es.js.map +1 -1
  39. package/dist/index.js +2532 -62
  40. package/dist/index.js.map +1 -1
  41. package/dist/styles.css +1 -1
  42. package/dist/types/components/Accordion/Accordion.d.ts +10 -0
  43. package/dist/types/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.d.ts +9 -0
  44. package/dist/types/components/Accordion/components/AccordionHeader/AccordionHeader.d.ts +20 -0
  45. package/dist/types/components/Accordion/index.d.ts +1 -0
  46. package/dist/types/components/Author/Author.d.ts +17 -0
  47. package/dist/types/components/Author/index.d.ts +1 -0
  48. package/dist/types/components/CopyLead/CopyLead.d.ts +8 -3
  49. package/dist/types/components/CopyLead/components/MediaContent/MediaContent.d.ts +2 -0
  50. package/dist/types/components/CopyLead/templates/Content/Content.d.ts +3 -1
  51. package/dist/types/components/CopyLead/templates/Media/Media.d.ts +4 -2
  52. package/dist/types/components/FeaturePost/FeaturePost.d.ts +27 -1
  53. package/dist/types/components/FeaturePost/types/feature-post-cta-footer.d.ts +2 -6
  54. package/dist/types/components/Highlights/Highlights.d.ts +30 -0
  55. package/dist/types/components/Highlights/components/HighlightHeader/HighlightHeader.d.ts +21 -0
  56. package/dist/types/components/Highlights/components/HighlightItem/HighlightItem.d.ts +14 -0
  57. package/dist/types/components/Highlights/components/HighlightList/HighlightList.d.ts +9 -0
  58. package/dist/types/components/Highlights/index.d.ts +1 -0
  59. package/dist/types/components/Highlights/types/highlight-list-item.d.ts +10 -0
  60. package/dist/types/components/Highlights/types/index.d.ts +1 -0
  61. package/dist/types/components/PromoListing/PromoListing.d.ts +38 -0
  62. package/dist/types/components/PromoListing/components/PromoListingHeader/PromoListingHeader.d.ts +17 -0
  63. package/dist/types/components/PromoListing/index.d.ts +1 -0
  64. package/dist/types/components/Quote/Quote.d.ts +11 -0
  65. package/dist/types/components/Quote/index.d.ts +1 -0
  66. package/dist/types/components/index.d.ts +5 -0
  67. package/package.json +20 -16
  68. package/dist/_shared/cjs/index-0524fde2.js +0 -119
  69. package/dist/_shared/esm/index-8c73b64b.js +0 -113
package/dist/styles.css CHANGED
@@ -1 +1 @@
1
- .MediaContent-module_container__zJvhV{margin-bottom:var(--sem-space-padding-150)}.MediaContent-module_content__3VTWr{max-width:715px}.Image-module_imgWrapper__8IEXh{border-radius:var(--sem-border-radius-xl);overflow:hidden}.IconList-module_list__J9ei6{list-style:none;margin:0;max-width:480px;padding:0}@media (min-width:768px){.IconList-module_list__J9ei6{max-width:100%}}.IconList-module_listItem__gNx5-{display:flex}.IconList-module_listItem__gNx5-:nth-of-type(n+2){margin-top:var(--sem-space-padding-150)}.IconList-module_listItemCentered__0HGoP{align-items:center}.IconList-module_listItemIconContainer__4SYoW{flex:0 0 auto}.IconList-module_listItemTextContainer__PfFZS{flex:1 1 auto;padding:0 0 0 var(--sem-space-padding-80)}@media (min-width:768px){.IconList-module_listItemTextContainer__PfFZS{padding:0 var(--sem-space-padding-80)}}@media (min-width:1024px){.IconList-module_listItemTextContainer__PfFZS{padding:0 var(--sem-space-padding-110)}}@media (min-width:1280px){.IconList-module_listItemTextContainer__PfFZS{padding:0 var(--sem-space-padding-130)}}.Button-module_buttonContainer__o8TSz{margin:var(--sem-space-padding-150) auto 0;width:100%}@media (min-width:636px){.Button-module_buttonContainer__o8TSz{width:-moz-max-content;width:max-content}}@media (min-width:768px){.Button-module_buttonContainer__o8TSz{margin:var(--sem-space-padding-150) 0 0}}.Container-module_container__JZgGy{align-items:flex-start;display:flex;gap:var(--sem-space-padding-150)}@media (min-width:768px){.Container-module_container__JZgGy{gap:var(--sem-space-padding-110)}}@media (min-width:1280px){.Container-module_container__JZgGy{gap:var(--sem-space-padding-130)}}.Container-module_container--content__ScwIb{flex-direction:column}@media (min-width:768px){.Container-module_container--content__ScwIb{flex-direction:row}}.Container-module_container--media__KIzMa{flex-direction:column-reverse}@media (min-width:768px){.Container-module_container--media__KIzMa{flex-direction:row}.Container-module_container--reverse__-B82g{flex-direction:row-reverse}}.Container-module_container--align-center__qneG2{align-items:center}.Container-module_container--align-top__TE6Ah{align-items:flex-start}.Column-module_col__9bKZy{flex:1 1 auto;width:100%}@media (min-width:768px){.Column-module_col__9bKZy{width:50%}}.Image-module_imgWrapper__flS1n{border-radius:var(--sem-border-radius-xl);overflow:hidden}@media (min-width:768px){.FeaturePost-module_featurePost__PDoVH{display:flex;gap:24px}}@media (min-width:1280px){.FeaturePost-module_featurePost__PDoVH{gap:32px}}@media (min-width:768px){.FeaturePost-module_featurePostReversed__tQZSX{flex-direction:row-reverse}.FeaturePost-module_col__x2s9L{flex:0 1 auto;width:50%}}.FeaturePost-module_labelDate__eiCmw{padding-top:var(--sem-space-padding-20)}@media (min-width:768px){.FeaturePost-module_labelDate__eiCmw{padding-left:var(--sem-space-padding-70)}.FeaturePost-module_contentContainer__dqJOS{padding:0 var(--sem-space-padding-110) 0 0}}@media (min-width:1280px){.FeaturePost-module_contentContainer__dqJOS{padding:0 var(--sem-space-padding-130) 0 0}}.FeaturePost-module_authorContent__QD4Nv{padding-left:var(--sem-space-padding-70)}.FeaturePost-module_googlePlayButtonWrapper__nGdyh{padding:var(--sem-space-padding-70) 0 0}@media (min-width:636px){.FeaturePost-module_googlePlayButtonWrapper__nGdyh{padding:0 0 0 var(--sem-space-padding-70)}}
1
+ .Accordion-module_header__WaTdJ{display:flex;flex-direction:column;padding-bottom:40px;width:auto}.Accordion-module_headerContent__pjddt{color:#2a2a2a;font-size:20px;line-height:28px;margin:0}@media (min-width:636px){.Accordion-module_header__WaTdJ{min-width:588px;width:auto}}@media (min-width:768px){.Accordion-module_header__WaTdJ{min-width:720px;padding:0 186px 40px 0}}@media (min-width:1024px){.Accordion-module_header__WaTdJ{min-width:960px;padding:0 246px 40px 0}}@media (min-width:1280px){.Accordion-module_header__WaTdJ{min-width:1216px;padding:0 312px 40px 0}}.Author-module_authorContent__TBY7b{padding-left:var(--sem-space-padding-70)}.CopyLead-module_buttonContainer__3OaRG{margin:var(--sem-space-padding-150) auto 0;width:100%}.CopyLead-module_col__0Da5H{flex:1 1 auto;width:100%}.CopyLead-module_container__I91ym{align-items:flex-start;display:flex;gap:var(--sem-space-padding-150)}.CopyLead-module_container--content__e8LxG{flex-direction:column}.CopyLead-module_container--media__QcMWi{flex-direction:column-reverse}.CopyLead-module_container--align-center__Fh1Sd{align-items:center}.CopyLead-module_container--align-top__UIXOZ{align-items:flex-start}.CopyLead-module_list__arnJd{list-style:none;margin:0;max-width:480px;padding:0}.CopyLead-module_listItem__NscHE{display:flex}.CopyLead-module_listItem__NscHE:nth-of-type(n+2){margin-top:var(--sem-space-padding-150)}.CopyLead-module_listItemCentered__Kwdab{align-items:center}.CopyLead-module_listItemIconContainer__dgnhJ{flex:0 0 auto}.CopyLead-module_listItemTextContainer__Dl9lw{flex:1 1 auto;padding:0 0 0 var(--sem-space-padding-80)}.CopyLead-module_imgWrapper__HYP3w{border-radius:var(--sem-border-radius-s);overflow:hidden}.CopyLead-module_mediaContainer__PxTnm{margin-bottom:var(--sem-space-padding-150)}.CopyLead-module_content__Bja1D{max-width:715px}@media (min-width:636px){.CopyLead-module_buttonContainer__3OaRG{width:-moz-max-content;width:max-content}}@media (min-width:768px){.CopyLead-module_container__I91ym{gap:var(--sem-space-padding-110)}.CopyLead-module_container--content__e8LxG,.CopyLead-module_container--media__QcMWi{flex-direction:row}.CopyLead-module_container--reverse__Gq9u8{flex-direction:row-reverse}.CopyLead-module_buttonContainer__3OaRG{margin:var(--sem-space-padding-150) 0 0}.CopyLead-module_col__0Da5H{width:50%}.CopyLead-module_list__arnJd{max-width:100%}.CopyLead-module_listItemTextContainer__Dl9lw{padding:0 var(--sem-space-padding-80)}}@media (min-width:1024px){.CopyLead-module_listItemTextContainer__Dl9lw{padding:0 var(--sem-space-padding-110)}}@media (min-width:1280px){.CopyLead-module_container__I91ym{gap:var(--sem-space-padding-130)}.CopyLead-module_listItemTextContainer__Dl9lw{padding:0 var(--sem-space-padding-130)}}.FeaturePost-module_labelDate__NXOgY{padding-top:var(--sem-space-padding-20)}.FeaturePost-module_authorContent__FEuRO{padding-left:var(--sem-space-padding-70)}.FeaturePost-module_googlePlayButtonWrapper__GI-ag{padding:var(--sem-space-padding-70) 0 0}.FeaturePost-module_imgWrapper__r6omd{border-radius:var(--sem-border-radius-s);overflow:hidden}@media (min-width:636px){.FeaturePost-module_googlePlayButtonWrapper__GI-ag{padding:0 0 0 var(--sem-space-padding-70)}}@media (min-width:768px){.FeaturePost-module_featurePost__9jY21{display:flex;gap:24px}.FeaturePost-module_featurePostReversed__WQRXm{flex-direction:row-reverse}.FeaturePost-module_contentContainer__kdus7{padding:0 var(--sem-space-padding-110) 0 0}.FeaturePost-module_col__eW8gY{flex:0 1 auto;width:50%}.FeaturePost-module_labelDate__NXOgY{padding-left:var(--sem-space-padding-70)}}@media (min-width:1280px){.FeaturePost-module_featurePost__9jY21{gap:32px}.FeaturePost-module_contentContainer__kdus7{padding:0 var(--sem-space-padding-130) 0 0}}.Highlights-module_highlights__Hf7Zq{grid-gap:48px 24px;display:grid;gap:48px 24px;grid-template-columns:1fr}.Highlights-module_header__hIdDj{display:flex;flex-direction:column;padding-bottom:40px;width:auto}.Highlights-module_highlightItem__-N6le{max-width:480px;width:auto}.Highlights-module_headerContent__rt-Oj{color:#2a2a2a;font-size:20px;line-height:28px;margin:0}@media (min-width:636px){.Highlights-module_header__hIdDj{min-width:588px;width:auto}.Highlights-module_highlights__Hf7Zq{grid-template-columns:1fr 1fr}.Highlights-module_highlightItem__-N6le{min-width:282px;padding-right:0}}@media (min-width:768px){.Highlights-module_header__hIdDj{min-width:720px;padding:0 186px 40px 0}.Highlights-module_highlights2Column__6qIuI{grid-template-columns:1fr 1fr}.Highlights-module_highlights2Column__6qIuI .Highlights-module_highlightItem__-N6le{max-width:-moz-max-content;max-width:max-content;min-width:348px;padding-right:62px}.Highlights-module_highlights3Column__qsCMP{grid-template-columns:1fr 1fr 1fr}.Highlights-module_highlights3Column__qsCMP .Highlights-module_highlightItem__-N6le{min-width:224px}}@media (min-width:1024px){.Highlights-module_header__hIdDj{min-width:960px;padding:0 246px 40px 0}.Highlights-module_highlights2Column__6qIuI{grid-template-columns:1fr 1fr}.Highlights-module_highlights2Column__6qIuI .Highlights-module_highlightItem__-N6le{min-width:468px;padding-right:82px}.Highlights-module_highlights3Column__qsCMP{grid-template-columns:1fr 1fr 1fr}.Highlights-module_highlights3Column__qsCMP .Highlights-module_highlightItem__-N6le{min-width:304px}}@media (min-width:1280px){.Highlights-module_header__hIdDj{min-width:1216px;padding:0 312px 40px 0}.Highlights-module_highlights__Hf7Zq{gap:48px 32px}.Highlights-module_highlights2Column__6qIuI{grid-template-columns:1fr 1fr}.Highlights-module_highlights2Column__6qIuI .Highlights-module_highlightItem__-N6le{min-width:592px;padding-right:104px}.Highlights-module_highlights3Column__qsCMP{grid-template-columns:1fr 1fr 1fr}.Highlights-module_highlights3Column__qsCMP .Highlights-module_highlightItem__-N6le{min-width:384px}}.PromoListing-module_PromoListing__6ensv{max-width:1280px}.PromoListing-module_headerContent__rMt1t{color:#2a2a2a;font-size:20px;line-height:28px;margin:0}.PromoListing-module_header__PDGdP{display:flex;flex-direction:column;padding-bottom:40px;width:auto}.PromoListing-module_promoListingContainer__vwez-{grid-column:span 2;height:100%;width:100%}.PromoListing-module_cardGrid__llf73{grid-gap:24px;display:grid;gap:24px;grid-template-columns:2fr}@media (min-width:320px){.PromoListing-module_cardGrid__llf73{grid-auto-rows:minmax(430px,1fr)}}@media (min-width:636px){.PromoListing-module_header__PDGdP{min-width:588px}.PromoListing-module_cardGrid2Columns__qPLQk{grid-auto-rows:minmax(430px,1fr);grid-template-columns:repeat(4,1fr)}.PromoListing-module_cardGrid2Columns__qPLQk.PromoListing-module_cardGrid3Cards__VKWMs .PromoListing-module_promoListingContainer__vwez-:last-child,.PromoListing-module_cardGrid2Columns__qPLQk.PromoListing-module_cardGrid5Cards__ywl5k .PromoListing-module_promoListingContainer__vwez-:last-child{grid-column-end:4}}@media (min-width:768px){.PromoListing-module_header__PDGdP{min-width:720px;padding:0 186px 40px 0}.PromoListing-module_cardGrid2Columns__qPLQk{grid-auto-rows:minmax(430px,1fr)}}@media (min-width:1024px){.PromoListing-module_header__PDGdP{min-width:960px;padding:0 246px 40px 0}.PromoListing-module_cardGrid2Columns__qPLQk{grid-auto-rows:minmax(468px,1fr)}.PromoListing-module_cardGrid3Columns__g0Xru{grid-auto-rows:minmax(437px,1fr);grid-template-columns:repeat(6,1fr)}.PromoListing-module_cardGrid3Columns__g0Xru.PromoListing-module_cardGrid4Cards__5Bv5u .PromoListing-module_promoListingContainer__vwez-:last-child{grid-column-end:5}.PromoListing-module_cardGrid3Columns__g0Xru.PromoListing-module_cardGrid2Cards__wDc4S .PromoListing-module_promoListingContainer__vwez-:last-child,.PromoListing-module_cardGrid3Columns__g0Xru.PromoListing-module_cardGrid5Cards__ywl5k .PromoListing-module_promoListingContainer__vwez-:last-child{grid-column-end:6}.PromoListing-module_cardGrid3Columns__g0Xru.PromoListing-module_cardGrid2Cards__wDc4S .PromoListing-module_promoListingContainer__vwez-:nth-last-child(2),.PromoListing-module_cardGrid3Columns__g0Xru.PromoListing-module_cardGrid5Cards__ywl5k .PromoListing-module_promoListingContainer__vwez-:nth-last-child(2){grid-column-end:4}}@media (min-width:1280px){.PromoListing-module_header__PDGdP{min-width:1216px;padding:0 312px 40px 0}.PromoListing-module_cardGrid2Columns__qPLQk{grid-auto-rows:minmax(592px,1fr)}.PromoListing-module_cardGrid3Columns__g0Xru{grid-auto-rows:minmax(523px,1fr)}.PromoListing-module_cardGrid__llf73{gap:32px}}.Quote-module_blockQuote__STj-z{font-size:36px;font-style:normal;font-weight:500;margin:0}.Quote-module_quoteContent__kWc51{line-height:44px;margin:0;padding-bottom:32px;padding-top:32px}.Quote-module_quoteDefault__tU5db{fill:#5514b4;color:#5514b4}.Quote-module_quoteSecondary__3Rk3f{fill:#434343;color:#434343}.Quote-module_quoteIcon__HK1TV{height:76.471px;width:100px}svg{padding:0}@media (min-width:768px){.Quote-module_blockQuote__STj-z{font-size:40px}.Quote-module_quoteContent__kWc51{line-height:48px}}@media (min-width:1024px){.Quote-module_quoteIcon__HK1TV{height:95.588px;width:125px}}@media (min-width:1280px){.Quote-module_blockQuote__STj-z{font-size:56px}.Quote-module_quoteContent__kWc51{line-height:64px}}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { AccordionHeaderProps } from "./components/AccordionHeader/AccordionHeader";
3
+ import { AccordionDisclosureListProps } from "./components/AccordionDisclosureList/AccordionDisclosureList";
4
+ /**
5
+ * Use the `Accordion` component to package together a title, content and a number of disclosure components into one section (maximum 10).
6
+ */
7
+ export declare const Accordion: React.FC<AccordionProps>;
8
+ interface AccordionProps extends AccordionHeaderProps, AccordionDisclosureListProps {
9
+ }
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { type DisclosureProps } from "@arc-ui/components/dist/Disclosure";
3
+ export declare const AccordionDisclosureList: React.FC<AccordionDisclosureListProps>;
4
+ export interface AccordionDisclosureListProps {
5
+ /**
6
+ * Array of `Disclosure` components. Maximum 10 in one `Accordion`.
7
+ */
8
+ disclosureList: DisclosureProps[];
9
+ }
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { type HeadingLevel } from "@arc-ui/components/dist/Heading";
3
+ /**
4
+ * Use `Accordion` to give supporting information about a page or proposition. It can be used to call out key benefits in bullet points, or link to a supporting explanatory video. An optional CTA can be used to link to further information or trigger a sales or enquiry journey.
5
+ */
6
+ export declare const AccordionHeader: React.FC<AccordionHeaderProps>;
7
+ export interface AccordionHeaderProps {
8
+ /**
9
+ * heading for `Accordion`.
10
+ */
11
+ heading: string;
12
+ /**
13
+ * heading level for `Accordion` heading.
14
+ */
15
+ headingLevel?: HeadingLevel;
16
+ /**
17
+ * Text content for `Accordion` header section.
18
+ */
19
+ content?: string;
20
+ }
@@ -0,0 +1 @@
1
+ export { Accordion } from "./Accordion";
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { type AvatarProps } from "@arc-ui/components/dist/Avatar";
3
+ export declare const Author: React.FC<AuthorProps>;
4
+ export interface AuthorProps {
5
+ /**
6
+ * Name of the Author.
7
+ */
8
+ name: string;
9
+ /**
10
+ * Job title of the Author.
11
+ */
12
+ title: string;
13
+ /**
14
+ * Optional Avatar for the Author.
15
+ */
16
+ avatar?: Omit<AvatarProps, "size">;
17
+ }
@@ -0,0 +1 @@
1
+ export { Author } from "./Author";
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
- import { type VideoPlayerProps } from "@arc-ui/components/dist/types/components/VideoPlayer/VideoPlayer";
2
+ import { type HeadingLevel } from "@arc-ui/components/dist/Heading";
3
+ import { type VideoPlayerProps } from "@arc-ui/components/dist/VideoPlayer";
3
4
  import { type CopyLeadButton, type CopyLeadImage, type CopyLeadListItem } from "./types";
4
5
  /**
5
6
  * Use `CopyLead` to give supporting information about a page or proposition. It can be used to call out key benefits in bullet points, or link to a supporting explanatory video. An optional CTA can be used to link to further information or trigger a sales or enquiry journey.
@@ -7,9 +8,13 @@ import { type CopyLeadButton, type CopyLeadImage, type CopyLeadListItem } from "
7
8
  export declare const CopyLead: React.FC<CopyLeadProps>;
8
9
  interface CopyLeadProps {
9
10
  /**
10
- * Title for `CopyLead`.
11
+ * heading for `CopyLead`.
11
12
  */
12
- title: string;
13
+ heading: string;
14
+ /**
15
+ * Determine a heading level for `<MediaTemplate />` and `<ContentTemplate />`
16
+ */
17
+ headingLevel?: HeadingLevel;
13
18
  /**
14
19
  * Reverse the columns so the image / video appears on the left. Doesn't affect mobile layouts, and is only applied if there is a video or an image.
15
20
  */
@@ -1,7 +1,9 @@
1
1
  import React from "react";
2
+ import { type HeadingLevel } from "@arc-ui/components/dist/Heading";
2
3
  export declare const MediaContent: React.FC<MediaContentProps>;
3
4
  interface MediaContentProps {
4
5
  heading: string;
6
+ headingLevel?: HeadingLevel;
5
7
  children?: string;
6
8
  }
7
9
  export {};
@@ -1,8 +1,10 @@
1
1
  import React from "react";
2
+ import { type HeadingLevel } from "@arc-ui/components/dist/Heading";
2
3
  import { type CopyLeadButton, type CopyLeadListItem } from "../../types";
3
4
  export declare const ContentTemplate: React.FC<ContentTemplateProps>;
4
5
  interface ContentTemplateProps {
5
- title: string;
6
+ heading: string;
7
+ headingLevel?: HeadingLevel;
6
8
  content: string;
7
9
  listItems: CopyLeadListItem[];
8
10
  button?: CopyLeadButton;
@@ -1,9 +1,11 @@
1
1
  import React from "react";
2
- import { type VideoPlayerProps } from "@arc-ui/components/dist/types/components/VideoPlayer/VideoPlayer";
2
+ import { type HeadingLevel } from "@arc-ui/components/dist/Heading";
3
+ import { type VideoPlayerProps } from "@arc-ui/components/dist/VideoPlayer";
3
4
  import { type CopyLeadButton, type CopyLeadImage, type CopyLeadListItem } from "../../types";
4
5
  export declare const MediaTemplate: React.FC<MediaTemplateProps>;
5
6
  interface MediaTemplateProps {
6
- title: string;
7
+ heading: string;
8
+ headingLevel?: HeadingLevel;
7
9
  listItems: CopyLeadListItem[];
8
10
  content?: string;
9
11
  isReverseOrder?: boolean;
@@ -1,15 +1,41 @@
1
1
  import React from "react";
2
+ import { type HeadingLevel } from "@arc-ui/components/dist/Heading";
2
3
  import { type FeaturePostAppButtonFooter, type FeaturePostCtaFooter, type FeaturePostImage } from "./types";
4
+ /**
5
+ * Use `FeaturePost` to direct traffic towards an article, case study, or product information page, or to a 3rd part App Store provider. Where the component links to an article page, the author attribution can be given here. The `FeaturePost` must be supported by an image, and in future, the component will support embedded video as well.
6
+ * */
3
7
  export declare const FeaturePost: React.FC<FeaturePostProps>;
4
8
  interface FeaturePostProps {
9
+ /**
10
+ * heading for `FeaturePost`.
11
+ */
5
12
  heading: string;
13
+ /**
14
+ * Determine a heading level for `<FeaturePost />`
15
+ */
16
+ headingLevel?: HeadingLevel;
17
+ /**
18
+ * Text content for `FeaturePost`.
19
+ */
6
20
  content: string;
21
+ /**
22
+ * Reverse the columns so the image / video appears on the left. Doesn't affect mobile layouts, and is only applied if there is a video or an image.
23
+ */
7
24
  isReverseOrder?: boolean;
25
+ /**
26
+ * Image for `FeaturePost`.
27
+ */
8
28
  image: FeaturePostImage;
29
+ /**
30
+ * Footer for `FeaturePost`. Types included are `cta` or `appButton`.
31
+ */
9
32
  footer?: FeaturePostCtaFooter | FeaturePostAppButtonFooter;
33
+ /**
34
+ * Label for `FeaturePost`.
35
+ */
10
36
  label?: {
11
37
  text: string;
12
- date: string;
38
+ date: string | Date;
13
39
  };
14
40
  }
15
41
  export {};
@@ -1,11 +1,7 @@
1
- import { type AvatarProps } from "@arc-ui/components/dist/types/components/Avatar/Avatar";
2
1
  import { type ButtonProps } from "@arc-ui/components/dist/types/components/Button/Button";
2
+ import { type AuthorProps } from "../../Author/Author";
3
3
  export interface FeaturePostCtaFooter {
4
4
  type: "cta";
5
- author?: {
6
- name: string;
7
- title: string;
8
- avatar?: Omit<AvatarProps, "size">;
9
- };
10
5
  button: Pick<ButtonProps, "label" | "onClick" | "href" | "target" | "ariaLabel">;
6
+ author?: AuthorProps;
11
7
  }
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import { type HeadingLevel } from "@arc-ui/components/dist/Heading";
3
+ import { type HighlightListItem } from "./types";
4
+ /**
5
+ * Use `Highlights` to give supporting information about a page or proposition. It can be used to call out key benefits in bullet points, or link. Both two and three column options are available.
6
+ */
7
+ export declare const Highlights: React.FC<HighlightsProps>;
8
+ interface HighlightsProps {
9
+ /**
10
+ * heading for `Highlights`.
11
+ */
12
+ heading: string;
13
+ /**
14
+ * Determine a heading level for `<HighlightHeader />`.
15
+ */
16
+ headingLevel?: HeadingLevel;
17
+ /**
18
+ * Text content for `Highlights`.
19
+ */
20
+ content?: string;
21
+ /**
22
+ * List items for `Highlights`. List length should be a minimum of 2 and a maximum of 6.
23
+ */
24
+ listItems: HighlightListItem[];
25
+ /**
26
+ * Number of columns for option desktop and tablet breakpoints only.
27
+ */
28
+ columns?: "2" | "3";
29
+ }
30
+ export {};
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import { type HeadingLevel } from "@arc-ui/components/dist/Heading";
3
+ /**
4
+ * Use `Highlights` to give supporting information about a page or proposition. It can be used to call out key benefits in bullet points, or link to a supporting explanatory video. An optional CTA can be used to link to further information or trigger a sales or enquiry journey.
5
+ */
6
+ export declare const HighlightHeader: React.FC<HighlightHeaderProps>;
7
+ interface HighlightHeaderProps {
8
+ /**
9
+ * Title for `Highlights`.
10
+ */
11
+ heading: string;
12
+ /**
13
+ * Determine a heading level for `<HighlightHeader />`.
14
+ */
15
+ headingLevel?: HeadingLevel;
16
+ /**
17
+ * Text content for `Highlights`.
18
+ */
19
+ content?: string;
20
+ }
21
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { type ArcIcon } from "@arc-ui/components/dist/types/types/arc-icon";
3
+ export declare const HighlightItem: React.FC<HighlightItemProps>;
4
+ interface HighlightItemProps {
5
+ icon?: ArcIcon;
6
+ heading: string;
7
+ text?: string;
8
+ link?: {
9
+ url: string;
10
+ textLink: string;
11
+ };
12
+ isSmallIcon: boolean;
13
+ }
14
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { type HighlightListItem } from "../../types/highlight-list-item";
3
+ export declare const HighlightList: React.FC<HighlightListProps>;
4
+ interface HighlightListProps {
5
+ listItems: HighlightListItem[];
6
+ columns: "2" | "3";
7
+ isSmallIcon: boolean;
8
+ }
9
+ export {};
@@ -0,0 +1 @@
1
+ export { Highlights } from "./Highlights";
@@ -0,0 +1,10 @@
1
+ import { type ArcIcon } from "@arc-ui/components/dist/types/types/arc-icon";
2
+ export interface HighlightListItem {
3
+ icon?: ArcIcon;
4
+ heading: string;
5
+ text?: string;
6
+ link?: {
7
+ url: string;
8
+ textLink: string;
9
+ };
10
+ }
@@ -0,0 +1 @@
1
+ export { type HighlightListItem } from "./highlight-list-item";
@@ -0,0 +1,38 @@
1
+ import React from "react";
2
+ import { type MediaCardProps } from "@arc-ui/components/dist/MediaCard";
3
+ import { type ImpactCardProps } from "@arc-ui/components/dist/ImpactCard";
4
+ import { type InformationCardProps } from "@arc-ui/components/dist/InformationCard";
5
+ import { type TypographyCardProps } from "@arc-ui/components/dist/TypographyCard";
6
+ import { type PromoListingHeaderProps } from "./components/PromoListingHeader/PromoListingHeader";
7
+ /**
8
+ * Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
9
+ */
10
+ export declare const PromoListing: React.FC<PromoListingProps>;
11
+ interface PromoListMediaCard extends MediaCardProps {
12
+ type: "media-card";
13
+ }
14
+ interface PromoListImpactCard extends ImpactCardProps {
15
+ type: "impact-card";
16
+ }
17
+ interface PromoListInformationCard extends InformationCardProps {
18
+ type: "information-card";
19
+ }
20
+ interface PromoListTypographyCard extends TypographyCardProps {
21
+ type: "typography-card";
22
+ }
23
+ type PromoListCard = PromoListMediaCard | PromoListInformationCard | PromoListTypographyCard | PromoListImpactCard;
24
+ export interface PromoListingProps extends PromoListingHeaderProps {
25
+ /**
26
+ * Cards for the PromoListing.
27
+ */
28
+ cards: PromoListCard[];
29
+ /**
30
+ * Shows cards in a carousel on devices below 1024px if true.
31
+ */
32
+ isCarousel?: true;
33
+ /**
34
+ * Number of columns for desktop breakpoints. "2" and "3" column options available.
35
+ */
36
+ columns?: "2" | "3";
37
+ }
38
+ export {};
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { type HeadingLevel } from "@arc-ui/components/dist/Heading";
3
+ export declare const PromoListingHeader: React.FC<PromoListingHeaderProps>;
4
+ export interface PromoListingHeaderProps {
5
+ /**
6
+ * heading for `PromoListingHeader`.
7
+ */
8
+ heading: string;
9
+ /**
10
+ * Determine a heading level for `<PromoListingHeader />`.
11
+ */
12
+ headingLevel?: HeadingLevel;
13
+ /**
14
+ * Text content for `PromoListingHeader`.
15
+ */
16
+ content?: string;
17
+ }
@@ -0,0 +1 @@
1
+ export { PromoListing } from "./PromoListing";
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { AuthorProps } from "../Author/Author";
3
+ /**
4
+ * 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.*/
5
+ export declare const Quote: React.FC<QuoteProps>;
6
+ export interface QuoteProps {
7
+ styling?: "Default" | "Secondary";
8
+ content: string;
9
+ author?: AuthorProps;
10
+ citeUrl?: string;
11
+ }
@@ -0,0 +1 @@
1
+ export { Quote } from "./Quote";
@@ -1,2 +1,7 @@
1
+ export { Accordion } from "./Accordion";
2
+ export { Author } from "./Author";
1
3
  export { CopyLead } from "./CopyLead";
2
4
  export { FeaturePost } from "./FeaturePost";
5
+ export { Highlights } from "./Highlights";
6
+ export { PromoListing } from "./PromoListing";
7
+ export { Quote } from "./Quote";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arc-ui/community-components",
3
- "version": "12.0.0-beta.5",
3
+ "version": "12.0.0-beta7",
4
4
  "homepage": "https://ui.digital-ent-int.bt.com",
5
5
  "author": "BT Business Digital UI Team <ui-digital-ent-int@bt.com>",
6
6
  "main": "./dist/index.js",
@@ -13,10 +13,10 @@
13
13
  "access": "public"
14
14
  },
15
15
  "peerDependencies": {
16
- "@arc-ui/components": "12.0.0-beta.5",
17
- "@arc-ui/theme-bt-enterprise": "12.0.0-beta.5",
18
- "@arc-ui/theme-bt-business": "12.0.0-beta.5",
19
- "@arc-ui/theme-ee": "12.0.0-beta.5",
16
+ "@arc-ui/components": "12.0.0-beta7",
17
+ "@arc-ui/theme-bt-business": "12.0.0-beta7",
18
+ "@arc-ui/theme-bt-enterprise": "12.0.0-beta7",
19
+ "@arc-ui/theme-ee": "12.0.0-beta7",
20
20
  "react": "^18.0.0",
21
21
  "react-dom": "^18.0.0"
22
22
  },
@@ -53,8 +53,8 @@
53
53
  "@types/react-dom": "18.2.7",
54
54
  "classnames": "^2.2.6",
55
55
  "cypress": "^13.3.0",
56
+ "date-fns": "2.30.0",
56
57
  "postcss": "^8.0.0",
57
- "postcss-preset-env": "^7.0.0",
58
58
  "react": "^18.0.0",
59
59
  "react-dom": "^18.0.0",
60
60
  "react-is": "^18.0.0",
@@ -71,24 +71,28 @@
71
71
  "typescript": "^4.9.5",
72
72
  "vite": "^4.4.5",
73
73
  "vite-plugin-istanbul": "^5.0.0",
74
- "@arc-ui/components": "^12.0.0-beta.5",
75
- "@arc-ui/theme-bt-business": "^12.0.0-beta.5",
76
- "@arc-ui/theme-bt-enterprise": "^12.0.0-beta.5",
77
- "@arc-ui/theme-ee": "^12.0.0-beta.5",
78
- "@arc-ui/tokens-arc": "^12.0.0-beta.5",
79
- "@arc-ui/tokens-bt-enterprise": "^12.0.0-beta.5",
80
- "@arc-ui/icons-bt": "^12.0.0-beta.5",
81
- "@arc-ui/icons-ee": "^12.0.0-beta.5"
74
+ "@arc-ui/build-utils": "^12.0.0-beta7",
75
+ "@arc-ui/components": "^12.0.0-beta7",
76
+ "@arc-ui/helpers": "^12.0.0-beta7",
77
+ "@arc-ui/icons-bt": "^12.0.0-beta7",
78
+ "@arc-ui/icons-ee": "^12.0.0-beta7",
79
+ "@arc-ui/theme-bt-business": "^12.0.0-beta7",
80
+ "@arc-ui/theme-bt-enterprise": "^12.0.0-beta7",
81
+ "@arc-ui/theme-ee": "^12.0.0-beta7",
82
+ "@arc-ui/tokens-arc": "^12.0.0-beta7",
83
+ "@arc-ui/tokens-bt-business": "^12.0.0-beta7",
84
+ "@arc-ui/tokens-bt-enterprise": "^12.0.0-beta7",
85
+ "@arc-ui/tokens-ee": "^12.0.0-beta7"
82
86
  },
83
87
  "scripts": {
84
- "build": "rimraf dist && rollup -c",
88
+ "build": "rimraf dist && rollup -c && generate-subpath-css --modules",
85
89
  "storybook": "storybook dev -p 6006",
86
90
  "storybook:build": "storybook build --quiet",
87
91
  "storybook:quiet": "pnpm run storybook --quiet",
88
92
  "build-storybook": "storybook build",
89
93
  "coverage:summary": "pnpm dlx nyc report --reporter=text-summary",
90
94
  "coverage:files": "pnpm dlx nyc report --reporter=text",
91
- "coverage:check": "pnpm dlx nyc report --check-coverage --lines 85 --functions 85 --branches 85 --statements 85",
95
+ "coverage:check": "pnpm dlx nyc report --check-coverage --lines 80 --functions 80 --branches 80 --statements 80",
92
96
  "test:components": "cypress open --component",
93
97
  "test:components:ci": "cypress run --component --browser chrome",
94
98
  "test:components:pipeline": "pnpm run test:components:ci && pnpm run coverage:check",
@@ -1,119 +0,0 @@
1
- 'use strict';
2
-
3
- /******************************************************************************
4
- Copyright (c) Microsoft Corporation.
5
-
6
- Permission to use, copy, modify, and/or distribute this software for any
7
- purpose with or without fee is hereby granted.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
- PERFORMANCE OF THIS SOFTWARE.
16
- ***************************************************************************** */
17
-
18
- exports.__assign = function() {
19
- exports.__assign = Object.assign || function __assign(t) {
20
- for (var s, i = 1, n = arguments.length; i < n; i++) {
21
- s = arguments[i];
22
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return exports.__assign.apply(this, arguments);
27
- };
28
-
29
- function __rest(s, e) {
30
- var t = {};
31
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
32
- t[p] = s[p];
33
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
34
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
35
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
36
- t[p[i]] = s[p[i]];
37
- }
38
- return t;
39
- }
40
-
41
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
42
- var e = new Error(message);
43
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
44
- };
45
-
46
- /**
47
- * Do not edit directly
48
- * Generated on Thu, 29 Aug 2024 08:40:27 GMT
49
- */
50
- var SemSizeBreakpointsM = "768px"; // Medium (MD) - 768px to 991px: This is commonly used for larger tablets and smaller desktop screens.
51
- var SemSizeBreakpointsL = "1024px"; // Large (LG) - 1024px - 1279px: This breakpoint is often applied to larger desktop screens and some laptops.
52
- var SemSizeBreakpointsXl = "1280px"; // Extra Large (XL) - 1280px and above: This breakpoint is used for very large desktop screens.
53
-
54
- var classnames = {exports: {}};
55
-
56
- /*!
57
- Copyright (c) 2018 Jed Watson.
58
- Licensed under the MIT License (MIT), see
59
- http://jedwatson.github.io/classnames
60
- */
61
-
62
- (function (module) {
63
- /* global define */
64
-
65
- (function () {
66
-
67
- var hasOwn = {}.hasOwnProperty;
68
-
69
- function classNames() {
70
- var classes = [];
71
-
72
- for (var i = 0; i < arguments.length; i++) {
73
- var arg = arguments[i];
74
- if (!arg) continue;
75
-
76
- var argType = typeof arg;
77
-
78
- if (argType === 'string' || argType === 'number') {
79
- classes.push(arg);
80
- } else if (Array.isArray(arg)) {
81
- if (arg.length) {
82
- var inner = classNames.apply(null, arg);
83
- if (inner) {
84
- classes.push(inner);
85
- }
86
- }
87
- } else if (argType === 'object') {
88
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
89
- classes.push(arg.toString());
90
- continue;
91
- }
92
-
93
- for (var key in arg) {
94
- if (hasOwn.call(arg, key) && arg[key]) {
95
- classes.push(key);
96
- }
97
- }
98
- }
99
- }
100
-
101
- return classes.join(' ');
102
- }
103
-
104
- if (module.exports) {
105
- classNames.default = classNames;
106
- module.exports = classNames;
107
- } else {
108
- window.classNames = classNames;
109
- }
110
- }());
111
- }(classnames));
112
-
113
- var classNames = classnames.exports;
114
-
115
- exports.SemSizeBreakpointsL = SemSizeBreakpointsL;
116
- exports.SemSizeBreakpointsM = SemSizeBreakpointsM;
117
- exports.SemSizeBreakpointsXl = SemSizeBreakpointsXl;
118
- exports.__rest = __rest;
119
- exports.classNames = classNames;