formica-ui-lib 1.0.221 → 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.
- package/dist/componentProps/molecules/cards/infocard/InfoCardProps.d.ts +2 -0
- package/dist/componentProps/molecules/navigation/footerimagelink/FooterImageLinkProps.d.ts +2 -1
- package/dist/componentProps/molecules/navigation/footerlinkitem/FooterLinkItemProps.d.ts +2 -1
- package/dist/componentProps/molecules/selectors/radiobuttons/RadioButtonsProps.d.ts +2 -0
- package/dist/componentProps/molecules/selectors/segmentedcontrol/SegmentedControlProps.d.ts +2 -0
- package/dist/componentProps/organisms/navigation/BrandNavBarProps.d.ts +3 -2
- package/dist/componentProps/organisms/navigation/footer/FooterProps.d.ts +16 -15
- package/dist/componentProps/organisms/navigation/footerlogosbar/FooterLogosBarProps.d.ts +2 -1
- package/dist/componentProps/shared/GeneralLinkProps.d.ts +17 -0
- package/dist/componentProps/templates/logintemplate/LoginTemplateProps.d.ts +5 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1337 -1263
- package/dist/tailwind.css +1 -1
- package/dist/utils/generalLink.d.ts +5 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
5
|
+
variant?: FooterLinkItemVariant;
|
|
5
6
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SegmentedControlVisualVariant } from "../segmentedcontrol/SegmentedControlProps";
|
|
1
2
|
export type RadioButtonsOption = string;
|
|
2
3
|
export interface RadioButtonsProps {
|
|
3
4
|
options: RadioButtonsOption[];
|
|
@@ -9,4 +10,5 @@ export interface RadioButtonsProps {
|
|
|
9
10
|
className?: string;
|
|
10
11
|
containerClassName?: string;
|
|
11
12
|
buttonClassName?: string;
|
|
13
|
+
visualVariant?: SegmentedControlVisualVariant;
|
|
12
14
|
}
|
|
@@ -4,11 +4,13 @@ export type SegmentedControlItem = {
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
};
|
|
6
6
|
export type SegmentedControlLayoutVariant = "content" | "equalWidth";
|
|
7
|
+
export type SegmentedControlVisualVariant = "default" | "brandBar";
|
|
7
8
|
export type SegmentedControlProps = {
|
|
8
9
|
items: SegmentedControlItem[];
|
|
9
10
|
selectedId?: string;
|
|
10
11
|
onSelect?: (id: string) => void;
|
|
11
12
|
layoutVariant?: SegmentedControlLayoutVariant;
|
|
13
|
+
visualVariant?: SegmentedControlVisualVariant;
|
|
12
14
|
className?: string;
|
|
13
15
|
buttonClassName?: string;
|
|
14
16
|
disabled?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { NavigationLinkValue, NavigationTextValue } from "../../shared/GeneralLinkProps";
|
|
1
2
|
export type BrandNavItem = {
|
|
2
|
-
label:
|
|
3
|
-
href:
|
|
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:
|
|
4
|
-
href?:
|
|
5
|
-
target?:
|
|
4
|
+
label: NavigationTextValue;
|
|
5
|
+
href?: NavigationLinkValue;
|
|
6
|
+
target?: string;
|
|
6
7
|
rel?: string;
|
|
7
8
|
};
|
|
8
9
|
export type FooterColumnProps = {
|
|
9
|
-
heading:
|
|
10
|
+
heading: NavigationTextValue;
|
|
10
11
|
links: FooterLinkProps[];
|
|
11
12
|
};
|
|
12
13
|
export type FooterImageProps = {
|
|
13
|
-
src:
|
|
14
|
-
alt:
|
|
15
|
-
label?:
|
|
16
|
-
href?:
|
|
17
|
-
target?:
|
|
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:
|
|
22
|
-
href:
|
|
22
|
+
label: NavigationTextValue;
|
|
23
|
+
href: NavigationLinkValue;
|
|
23
24
|
faIcon?: IconDefinition;
|
|
24
|
-
iconSrc?:
|
|
25
|
+
iconSrc?: NavigationTextValue;
|
|
25
26
|
};
|
|
26
27
|
export type FooterBrandBlock = {
|
|
27
28
|
primaryLogo: FooterImageProps;
|
|
28
|
-
phoneLine?:
|
|
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?:
|
|
36
|
-
copyrightLine?:
|
|
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?:
|
|
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;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { AccountAccessPanelData, AccountAccessPanelErrors, AccountAccessPanelMode, AccountAccessPanelProps, AccountAccessPanelUserTypeOption, AccountAccessPanelUserTypeValue } from "../../organisms/account/AccountAccessPanelProps";
|
|
2
|
+
import type { ImageProps } from "../../atoms/image/ImageProps";
|
|
2
3
|
export type LoginTemplateMode = AccountAccessPanelMode;
|
|
3
4
|
export type LoginTemplateUserTypeValue = AccountAccessPanelUserTypeValue;
|
|
4
5
|
export type LoginTemplateUserTypeOption = AccountAccessPanelUserTypeOption;
|
|
5
6
|
export type LoginTemplateErrors = AccountAccessPanelErrors;
|
|
6
7
|
export type LoginTemplateData = AccountAccessPanelData;
|
|
8
|
+
export type LoginTemplateImage = Pick<ImageProps, "src" | "alt" | "fit" | "useNetlifyImages"> & {
|
|
9
|
+
quality?: ImageProps["quality"];
|
|
10
|
+
};
|
|
7
11
|
export type LoginTemplateProps = Omit<AccountAccessPanelProps, "actionLabels" | "onSecondaryClick"> & {
|
|
12
|
+
loginImage?: LoginTemplateImage;
|
|
8
13
|
onCancelClick?: () => void;
|
|
9
14
|
};
|