formica-ui-lib 1.0.222 → 1.0.223

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.
@@ -1,5 +1,6 @@
1
1
  import type { ButtonVariant, ButtonIntent, ButtonSize } from "../../../atoms/buttons/button/ButtonProps";
2
2
  export type InfoCardAlign = "left" | "right";
3
+ export type InfoCardLayoutVariant = "default" | "underBanner";
3
4
  export type InfoCardButton = {
4
5
  buttonLabel: string;
5
6
  buttonHref?: string;
@@ -19,5 +20,6 @@ export interface InfoCardProps {
19
20
  body: string;
20
21
  buttons?: InfoCardButton[];
21
22
  align?: InfoCardAlign;
23
+ layoutVariant?: InfoCardLayoutVariant;
22
24
  onButtonClick?: (payload: InfoCardButtonClickPayload) => void;
23
25
  }
@@ -1,5 +1,6 @@
1
1
  import type { FooterImageProps } from "../../../organisms/navigation/footer/FooterProps";
2
+ export type FooterImageLinkSize = "default" | "primary" | "parent" | "affiliate";
2
3
  export type FooterImageLinkProps = {
3
4
  img: FooterImageProps;
4
- className?: string;
5
+ size?: FooterImageLinkSize;
5
6
  };
@@ -1,5 +1,6 @@
1
1
  import type { FooterLinkProps } from "../../../organisms/navigation/footer/FooterProps";
2
+ export type FooterLinkItemVariant = "default" | "mobile" | "legal";
2
3
  export type FooterLinkItemProps = {
3
4
  item: FooterLinkProps;
4
- className?: string;
5
+ variant?: FooterLinkItemVariant;
5
6
  };
@@ -1,6 +1,7 @@
1
+ import type { NavigationLinkValue, NavigationTextValue } from "../../shared/GeneralLinkProps";
1
2
  export type BrandNavItem = {
2
- label: string;
3
- href: string;
3
+ label: NavigationTextValue;
4
+ href: NavigationLinkValue;
4
5
  };
5
6
  export type CustomerTypeOption = "Commercial" | "Residential";
6
7
  export type BrandNavBarProps = {
@@ -1,39 +1,40 @@
1
1
  import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
2
+ import type { NavigationLinkValue, NavigationTextValue } from "../../../shared/GeneralLinkProps";
2
3
  export type FooterLinkProps = {
3
- label: string;
4
- href?: string;
5
- target?: "_self" | "_blank";
4
+ label: NavigationTextValue;
5
+ href?: NavigationLinkValue;
6
+ target?: string;
6
7
  rel?: string;
7
8
  };
8
9
  export type FooterColumnProps = {
9
- heading: string;
10
+ heading: NavigationTextValue;
10
11
  links: FooterLinkProps[];
11
12
  };
12
13
  export type FooterImageProps = {
13
- src: string;
14
- alt: string;
15
- label?: string;
16
- href?: string;
17
- target?: "_self" | "_blank";
14
+ src: NavigationTextValue;
15
+ alt: NavigationTextValue;
16
+ label?: NavigationTextValue;
17
+ href?: NavigationLinkValue;
18
+ target?: string;
18
19
  rel?: string;
19
20
  };
20
21
  export type FooterSocialLinkProps = {
21
- label: string;
22
- href: string;
22
+ label: NavigationTextValue;
23
+ href: NavigationLinkValue;
23
24
  faIcon?: IconDefinition;
24
- iconSrc?: string;
25
+ iconSrc?: NavigationTextValue;
25
26
  };
26
27
  export type FooterBrandBlock = {
27
28
  primaryLogo: FooterImageProps;
28
- phoneLine?: string;
29
+ phoneLine?: NavigationTextValue;
29
30
  socials?: FooterSocialLinkProps[];
30
31
  affiliateLogos?: FooterImageProps[];
31
32
  };
32
33
  export type FooterLegalBlock = {
33
34
  links?: FooterLinkProps[];
34
35
  utilityLink?: FooterLinkProps;
35
- disclaimerLines?: string[];
36
- copyrightLine?: string;
36
+ disclaimerLines?: NavigationTextValue[];
37
+ copyrightLine?: NavigationTextValue;
37
38
  };
38
39
  export type FooterProps = {
39
40
  brand: FooterBrandBlock;
@@ -1,6 +1,7 @@
1
1
  import type { FooterImageProps } from "../footer/FooterProps";
2
+ import type { NavigationTextValue } from "../../../shared/GeneralLinkProps";
2
3
  export type FooterLogosBarProps = {
3
4
  affiliateLogos?: FooterImageProps[];
4
5
  parentLogo?: FooterImageProps;
5
- phoneLine?: string;
6
+ phoneLine?: NavigationTextValue;
6
7
  };
@@ -0,0 +1,17 @@
1
+ export type GeneralLinkValue = {
2
+ href?: string;
3
+ url?: string;
4
+ text?: string;
5
+ title?: string;
6
+ label?: string;
7
+ target?: string;
8
+ rel?: string;
9
+ querystring?: string;
10
+ anchor?: string;
11
+ };
12
+ export type GeneralLinkField = {
13
+ value?: string | GeneralLinkValue;
14
+ jsonValue?: string | GeneralLinkValue;
15
+ };
16
+ export type NavigationLinkValue = string | GeneralLinkValue | GeneralLinkField;
17
+ export type NavigationTextValue = string | GeneralLinkValue | GeneralLinkField;