@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.
- package/dist/Filter/Filter.cjs.js +1 -1
- package/dist/Filter/Filter.esm.js +1 -1
- package/dist/ImpactCard/ImpactCard.cjs.js +41 -0
- package/dist/ImpactCard/ImpactCard.esm.js +33 -0
- package/dist/ImpactCard/package.json +7 -0
- package/dist/InformationCard/InformationCard.cjs.js +6 -3
- package/dist/InformationCard/InformationCard.esm.js +8 -5
- package/dist/MediaCard/MediaCard.cjs.js +7 -5
- package/dist/MediaCard/MediaCard.esm.js +9 -7
- package/dist/Select/Select.cjs.js +1 -1
- package/dist/Select/Select.esm.js +1 -1
- package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +2 -1
- package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +2 -1
- package/dist/TextArea/TextArea.cjs.js +8 -6
- package/dist/TextArea/TextArea.esm.js +8 -6
- package/dist/TypographyCard/TypographyCard.cjs.js +9 -7
- package/dist/TypographyCard/TypographyCard.esm.js +10 -8
- package/dist/_shared/cjs/{CardFooter-4a68a862.js → CardFooter-ff015d7d.js} +9 -7
- package/dist/_shared/cjs/{Filter-1bde635c.js → Filter-f4b73f5d.js} +16 -12
- package/dist/_shared/cjs/{SiteHeaderV2-301c765c.js → SiteHeaderV2-e0735a9d.js} +42 -32
- package/dist/_shared/esm/{CardFooter-a08b70ee.js → CardFooter-e13f77b0.js} +9 -7
- package/dist/_shared/esm/{Filter-58a42358.js → Filter-ad254e3d.js} +16 -12
- package/dist/_shared/esm/{SiteHeaderV2-0096e25b.js → SiteHeaderV2-c74b811b.js} +43 -33
- package/dist/index.es.js +112 -68
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +112 -67
- package/dist/index.js.map +1 -1
- package/dist/styles.css +4 -4
- package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +1 -0
- package/dist/types/components/ImpactCard/ImpactCard.d.ts +52 -0
- package/dist/types/components/ImpactCard/index.d.ts +1 -0
- package/dist/types/components/InformationCard/InformationCard.d.ts +4 -0
- package/dist/types/components/MediaCard/MediaCard.d.ts +4 -0
- package/dist/types/components/SiteHeaderV2/SiteHeaderV2.d.ts +5 -0
- package/dist/types/components/TypographyCard/TypographyCard.d.ts +4 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/private-components/CardFooter/CardFooter.d.ts +1 -1
- package/dist/types/styles.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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 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";
|
package/dist/types/styles.d.ts
CHANGED
|
@@ -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";
|