formica-ui-lib 1.0.215 → 1.0.217
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/locationcard/LocationCardProps.d.ts +3 -0
- package/dist/componentProps/molecules/cards/textcard/TextCardProps.d.ts +3 -1
- package/dist/componentProps/molecules/cards/warrantycard/WarrantyCardProps.d.ts +2 -0
- package/dist/componentProps/organisms/collections/locationcardcollection/LocationCardCollectionProps.d.ts +1 -0
- package/dist/componentProps/templates/proresourcetemplate/ProResourceTemplateProps.d.ts +2 -0
- package/dist/componentProps/templates/wheretobuytemplate/WhereToBuyTemplateProps.d.ts +1 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +2 -0
- package/dist/index.js +327 -232
- package/dist/stories/molecules/cards/warrantycard/WarrantyCard.d.ts +4 -0
- package/dist/stories/molecules/cards/warrantycard/WarrantyCard.test.d.ts +1 -0
- package/dist/tailwind.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type WhereToBuyLocationType = "distributor" | "sales-rep" | "retailer";
|
|
2
|
+
export type WhereToBuyDealerType = WhereToBuyLocationType | "postformer-fabricator" | "trespa-toplab-fabricator";
|
|
2
3
|
export type WhereToBuyLocationAddress = {
|
|
3
4
|
lines: string[];
|
|
4
5
|
city: string;
|
|
@@ -22,6 +23,7 @@ export type WhereToBuyStockedProduct = {
|
|
|
22
23
|
export type WhereToBuyLocation = {
|
|
23
24
|
id: string;
|
|
24
25
|
externalId?: string;
|
|
26
|
+
dealerType?: WhereToBuyDealerType;
|
|
25
27
|
type: WhereToBuyLocationType;
|
|
26
28
|
name: string;
|
|
27
29
|
address: WhereToBuyLocationAddress;
|
|
@@ -46,6 +48,7 @@ export type LocationCardProps = {
|
|
|
46
48
|
preferredLabel?: string;
|
|
47
49
|
websiteLabel?: string;
|
|
48
50
|
directionsLabel?: string;
|
|
51
|
+
emailLabel?: string;
|
|
49
52
|
onWebsiteClick?: (payload: LocationCardActionPayload) => void;
|
|
50
53
|
onDirectionsClick?: (payload: LocationCardActionPayload) => void;
|
|
51
54
|
onPhoneClick?: (payload: LocationCardActionPayload) => void;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
export type HeadingSize = "small" | "large";
|
|
1
|
+
export type HeadingSize = "small" | "medium" | "large";
|
|
2
2
|
export type TextCardAlign = "left" | "center" | "right";
|
|
3
3
|
export type TextCardHeadingLevel = "h1" | "h2";
|
|
4
4
|
export interface TextCardProps {
|
|
5
5
|
heading?: string;
|
|
6
6
|
headingLevel?: TextCardHeadingLevel;
|
|
7
7
|
headingSize?: HeadingSize;
|
|
8
|
+
headingAlign?: TextCardAlign;
|
|
8
9
|
align?: TextCardAlign;
|
|
9
10
|
subheading?: string;
|
|
10
11
|
datetimeStamp?: string;
|
|
11
12
|
body?: string;
|
|
13
|
+
addTopMargin?: boolean;
|
|
12
14
|
}
|
|
@@ -9,6 +9,7 @@ export type LocationCardCollectionProps = {
|
|
|
9
9
|
preferredLabel?: string;
|
|
10
10
|
websiteLabel?: string;
|
|
11
11
|
directionsLabel?: string;
|
|
12
|
+
emailLabel?: string;
|
|
12
13
|
onWebsiteClick?: (payload: LocationCardActionPayload) => void;
|
|
13
14
|
onDirectionsClick?: (payload: LocationCardActionPayload) => void;
|
|
14
15
|
onPhoneClick?: (payload: LocationCardActionPayload) => void;
|
|
@@ -3,9 +3,11 @@ import type { MultiButtonBarProps } from "../../molecules/selectors/multibuttonb
|
|
|
3
3
|
import type { DocumentLinkCollectionProps } from "../../organisms/collections/documentlinkcollection/DocumentLinkCollectionProps";
|
|
4
4
|
import type { InfoCardProps } from "../../molecules/cards/infocard/InfoCardProps";
|
|
5
5
|
import type { FaqCardCollectionProps } from "../../organisms/collections/faqcardcollection/FaqCardCollectionProps";
|
|
6
|
+
import type { WarrantyCardProps } from "../../molecules/cards/warrantycard/WarrantyCardProps";
|
|
6
7
|
export type ProResourceTemplateProps = {
|
|
7
8
|
standardCopyHeroProps: StandardCopyHeroProps;
|
|
8
9
|
multiButtonBarProps: MultiButtonBarProps;
|
|
10
|
+
warrantyCardProps: WarrantyCardProps;
|
|
9
11
|
documentLinkCollectionProps: DocumentLinkCollectionProps;
|
|
10
12
|
infoCardProps: InfoCardProps;
|
|
11
13
|
faqCardCollectionProps: FaqCardCollectionProps;
|