@arc-ui/components 11.21.0 → 11.22.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.
Files changed (39) hide show
  1. package/dist/Filter/Filter.cjs.js +1 -1
  2. package/dist/Filter/Filter.esm.js +1 -1
  3. package/dist/ImpactCard/ImpactCard.cjs.js +41 -0
  4. package/dist/ImpactCard/ImpactCard.esm.js +33 -0
  5. package/dist/ImpactCard/package.json +7 -0
  6. package/dist/InformationCard/InformationCard.cjs.js +6 -3
  7. package/dist/InformationCard/InformationCard.esm.js +8 -5
  8. package/dist/MediaCard/MediaCard.cjs.js +7 -5
  9. package/dist/MediaCard/MediaCard.esm.js +9 -7
  10. package/dist/Select/Select.cjs.js +1 -1
  11. package/dist/Select/Select.esm.js +1 -1
  12. package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +2 -1
  13. package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +2 -1
  14. package/dist/TextArea/TextArea.cjs.js +8 -6
  15. package/dist/TextArea/TextArea.esm.js +8 -6
  16. package/dist/TypographyCard/TypographyCard.cjs.js +9 -7
  17. package/dist/TypographyCard/TypographyCard.esm.js +10 -8
  18. package/dist/_shared/cjs/{CardFooter-4a68a862.js → CardFooter-ff015d7d.js} +9 -7
  19. package/dist/_shared/cjs/{Filter-1bde635c.js → Filter-f4b73f5d.js} +16 -12
  20. package/dist/_shared/cjs/{SiteHeaderV2-301c765c.js → SiteHeaderV2-e0735a9d.js} +42 -32
  21. package/dist/_shared/esm/{CardFooter-a08b70ee.js → CardFooter-e13f77b0.js} +9 -7
  22. package/dist/_shared/esm/{Filter-58a42358.js → Filter-ad254e3d.js} +16 -12
  23. package/dist/_shared/esm/{SiteHeaderV2-0096e25b.js → SiteHeaderV2-c74b811b.js} +43 -33
  24. package/dist/index.es.js +112 -68
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/index.js +112 -67
  27. package/dist/index.js.map +1 -1
  28. package/dist/styles.css +4 -4
  29. package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +1 -0
  30. package/dist/types/components/ImpactCard/ImpactCard.d.ts +52 -0
  31. package/dist/types/components/ImpactCard/index.d.ts +1 -0
  32. package/dist/types/components/InformationCard/InformationCard.d.ts +4 -0
  33. package/dist/types/components/MediaCard/MediaCard.d.ts +4 -0
  34. package/dist/types/components/SiteHeaderV2/SiteHeaderV2.d.ts +5 -0
  35. package/dist/types/components/TypographyCard/TypographyCard.d.ts +4 -0
  36. package/dist/types/components/index.d.ts +1 -0
  37. package/dist/types/private-components/CardFooter/CardFooter.d.ts +1 -1
  38. package/dist/types/styles.d.ts +1 -0
  39. package/package.json +1 -1
@@ -5,6 +5,7 @@ export interface FilterItemsProps {
5
5
  * Render children of `<Filter.Items />`. This should only use `<Filter.Item />`
6
6
  */
7
7
  children: ReactNode;
8
+ error: ReactNode;
8
9
  /**
9
10
  * Determine the display style of `<Filter.Item />`
10
11
  */
@@ -0,0 +1,52 @@
1
+ import React, { FC } from "react";
2
+ import { HeadingLevel } from "../Heading/Heading";
3
+ import { ImageProps } from "../Image/Image";
4
+ import { CardFooterProps } from "../../private-components/CardFooter/CardFooter";
5
+ export declare const ImpactCard: FC<ImpactCardProps>;
6
+ type ImpactCardPathway = "light" | "dark";
7
+ export interface ImpactCardProps {
8
+ /**
9
+ * Heading for the ImpactCard.
10
+ */
11
+ heading: string;
12
+ /**
13
+ * Url for the ImpactCard. Makes the whole card a link
14
+ */
15
+ url: string;
16
+ /**
17
+ * Sets a dark or light background for the ImpactCard.
18
+ */
19
+ pathway?: ImpactCardPathway;
20
+ /**
21
+ * Heading level for the ImpactCard heading.
22
+ */
23
+ headingLevel?: HeadingLevel;
24
+ /**
25
+ * Uppercase label for the ImpactCard.
26
+ */
27
+ label?: string;
28
+ /**
29
+ * Sets a minimum height for the ImpactCard.
30
+ */
31
+ minHeight?: number;
32
+ /**
33
+ * Click handler for the ImpactCard.
34
+ */
35
+ onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
36
+ /**
37
+ * Object of `data-` attributes to render on internal anchor element, e.g.
38
+ * `{ data-analytics-link: "My link"}` => `<a data-analytics-link="My link">`.
39
+ */
40
+ linkData?: {
41
+ [key: string]: string;
42
+ };
43
+ /**
44
+ * Image props for the ImpactCard. Consider avoiding alt if the image is for decorative purposes only.
45
+ */
46
+ img: Pick<ImageProps, "src" | "alt" | "loading" | "sizes" | "srcSet" | "anchor">;
47
+ /**
48
+ * Icon for the ImpactCard CTA button
49
+ */
50
+ buttonIcon?: CardFooterProps["buttonIcon"];
51
+ }
52
+ export {};
@@ -0,0 +1 @@
1
+ export { ImpactCard } from "./ImpactCard";
@@ -43,6 +43,10 @@ export interface InformationCardProps {
43
43
  * Header icon for the InformationCard.
44
44
  */
45
45
  icon?: ArcIcon;
46
+ /**
47
+ * Sets a minimum height for the InformationCard.
48
+ */
49
+ minHeight?: number;
46
50
  /**
47
51
  * Tags for the InformationCard.
48
52
  */
@@ -43,6 +43,10 @@ export interface MediaCardProps {
43
43
  * Icon for the MediaCard Cta button
44
44
  */
45
45
  buttonIcon?: MediaCardIcon;
46
+ /**
47
+ * Sets a minimum height for the MediaCard.
48
+ */
49
+ minHeight?: number;
46
50
  /**
47
51
  * Click handler for the MediaCard. Only applied when a url is provided.
48
52
  */
@@ -9,6 +9,7 @@ import { SubNavItem } from "./components/SubNavItem";
9
9
  import { VerticalDivider } from "./components/VerticalDivider";
10
10
  declare const Context: React.Context<{
11
11
  transparent: boolean;
12
+ menubarRef: React.MutableRefObject<HTMLUListElement> | null;
12
13
  }>;
13
14
  /**
14
15
  * Use `SiteHeaderV2` to display brand logo and navigation at the top of a page.
@@ -23,6 +24,10 @@ export declare const SiteHeaderV2: FC<SiteHeaderV2Props> & {
23
24
  SubNavItem: typeof SubNavItem;
24
25
  VerticalDivider: typeof VerticalDivider;
25
26
  };
27
+ export declare function useHeaderV2Context(): {
28
+ transparent: boolean;
29
+ menubarRef: React.MutableRefObject<HTMLUListElement> | null;
30
+ };
26
31
  export interface SiteHeaderV2Props {
27
32
  /**
28
33
  * Contents of the SiteHeaderV2. Must be SiteHeaderV2.NavItem or
@@ -37,6 +37,10 @@ export interface TypographyCardProps {
37
37
  * Text to show adjacent to the cta
38
38
  */
39
39
  metaText?: string;
40
+ /**
41
+ * Sets a minimum height for the TypographyCard.
42
+ */
43
+ minHeight?: number;
40
44
  /**
41
45
  * Object of `data-` attributes to render on internal anchor element, e.g.
42
46
  * `{ data-analytics-link: "My link"}` => `<a data-analytics-link="My link">`.
@@ -23,6 +23,7 @@ export { Heading } from "./Heading";
23
23
  export { Icon } from "./Icon";
24
24
  export { InformationCard } from "./InformationCard";
25
25
  export { Image } from "./Image";
26
+ export { ImpactCard } from "./ImpactCard";
26
27
  export { Markup } from "./Markup";
27
28
  export { MediaCard } from "./MediaCard";
28
29
  export { Modal } from "./Modal";
@@ -5,7 +5,7 @@ export interface CardFooterProps {
5
5
  metaText?: string;
6
6
  isDarkPathway?: boolean;
7
7
  buttonIcon?: CardFooterIcon;
8
- showFilledIcon?: boolean;
9
8
  showButton?: boolean;
9
+ isHovered?: boolean;
10
10
  }
11
11
  export {};
@@ -19,6 +19,7 @@ import "./components/FormControl/FormControl.css";
19
19
  import "./components/Group/Group.css";
20
20
  import "./components/Heading/Heading.css";
21
21
  import "./components/Icon/Icon.css";
22
+ import "./components/ImpactCard/ImpactCard.css";
22
23
  import "./components/Image/Image.css";
23
24
  import "./components/Markup/Markup.css";
24
25
  import "./components/MediaCard/MediaCard.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arc-ui/components",
3
- "version": "11.21.0",
3
+ "version": "11.22.0",
4
4
  "homepage": "https://ui.digital-ent-int.bt.com",
5
5
  "author": "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
6
6
  "main": "./dist/index.js",