formica-ui-lib 1.0.159 → 1.0.161
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/banner/articlebannercontent/ArticleBannerContentProps.d.ts +6 -0
- package/dist/componentProps/molecules/banner/calltoactionherocontent/CallToActionHeroContentProps.d.ts +8 -0
- package/dist/componentProps/molecules/banner/featuredarticlebannercontent/FeaturedArticleBannerContentProps.d.ts +5 -0
- package/dist/componentProps/molecules/banner/standardcopybannercontent/StandardCopyBannerContentProps.d.ts +7 -0
- package/dist/componentProps/molecules/card/faqcard/FaqCardProps.d.ts +5 -0
- package/dist/componentProps/organisms/banner/featuredarticlebanner/FeaturedArticleBannerProps.d.ts +7 -0
- package/dist/componentProps/organisms/banner/herobanner/CallToActionHeroProps.d.ts +1 -1
- package/dist/componentProps/organisms/banner/standardbannercontainer/StandardBannerContainerProps.d.ts +11 -0
- package/dist/componentProps/organisms/cart/cartpaymentpanel/CartPaymentPanelProps.d.ts +0 -58
- package/dist/componentProps/organisms/cart/carttotalspanel/CartTotalsPanelProps.d.ts +2 -0
- package/dist/componentProps/organisms/cart/purchasepanel/PurchasePanelProps.d.ts +2 -0
- package/dist/componentProps/organisms/cart/shippingaddressform/ShippingAddressFormProps.d.ts +1 -0
- package/dist/componentProps/organisms/faqcardcollection/FaqCardCollectionProps.d.ts +8 -0
- package/dist/componentProps/scene/articlelanding/ArticleLandingSceneProps.d.ts +14 -0
- package/dist/componentProps/templates/cartconfirmationtemplate/CartConfirmationTemplateProps.d.ts +0 -1
- package/dist/componentProps/templates/cartshippingtemplate/CartShippingTemplateProps.d.ts +6 -0
- package/dist/componentProps/templates/productdetailpagetemplate/ProductDetailPageTemplateProps.d.ts +1 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1920 -1892
- package/dist/stories/molecules/banner/articlebannercontent/ArticleBannerContent.d.ts +4 -0
- package/dist/stories/molecules/banner/calltoactionherocontent/CallToActionHeroContent.d.ts +4 -0
- package/dist/stories/molecules/banner/featuredarticlebannercontent/FeaturedArticleBannerContent.d.ts +4 -0
- package/dist/stories/molecules/banner/standardcopybannercontent/StandardCopyBannerContent.d.ts +4 -0
- package/dist/stories/molecules/card/faqcard/FaqCard.d.ts +4 -0
- package/dist/stories/organisms/banner/featuredarticlebanner/FeaturedArticleBanner.d.ts +4 -0
- package/dist/stories/organisms/banner/standardbannercontainer/StandardBannerContainer.d.ts +4 -0
- package/dist/stories/organisms/faqcardcollection/FaqCardCollection.d.ts +4 -0
- package/dist/stories/scenes/articlelanding/ArticleLandingScene.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CallToActionHeroCta } from "../../../organisms/banner/herobanner/CallToActionHeroProps";
|
|
2
|
+
export interface CallToActionHeroContentProps {
|
|
3
|
+
heading: string;
|
|
4
|
+
subheading?: string;
|
|
5
|
+
body?: string;
|
|
6
|
+
eyebrow?: string;
|
|
7
|
+
ctas?: CallToActionHeroCta[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
export interface StandardBannerContainerProps {
|
|
3
|
+
imageSrc: string;
|
|
4
|
+
imageAlt?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
sectionClassName?: string;
|
|
7
|
+
bannerClassName?: string;
|
|
8
|
+
imageClassName?: string;
|
|
9
|
+
overlayClassName?: string;
|
|
10
|
+
imageQuality?: number;
|
|
11
|
+
}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { RadioOptionSelectorProps } from "../../selectors/radiooptionselector/RadioOptionSelectorProps";
|
|
3
|
-
import { DropdownOption } from "../../../atoms/dropdown/DropdownProps";
|
|
4
|
-
import { CheckboxChangePayload } from "../../../atoms/checkbox/CheckboxProps";
|
|
5
3
|
export interface CartPaymentPanelErrors {
|
|
6
4
|
cardNumber?: string;
|
|
7
5
|
expirationDate?: string;
|
|
8
6
|
securityCode?: string;
|
|
9
|
-
billingFirstName?: string;
|
|
10
|
-
billingLastName?: string;
|
|
11
|
-
billingEmail?: string;
|
|
12
|
-
billingPhoneNumber?: string;
|
|
13
|
-
billingCompanyName?: string;
|
|
14
|
-
billingAddress?: string;
|
|
15
|
-
billingApartment?: string;
|
|
16
|
-
billingPostalCode?: string;
|
|
17
|
-
billingCity?: string;
|
|
18
|
-
billingCountry?: string;
|
|
19
|
-
billingStateProvince?: string;
|
|
20
7
|
}
|
|
21
8
|
export interface CartPaymentPanelProps {
|
|
22
9
|
paymentTypeTitle?: string;
|
|
@@ -24,58 +11,13 @@ export interface CartPaymentPanelProps {
|
|
|
24
11
|
cardNumber?: string;
|
|
25
12
|
expirationDate?: string;
|
|
26
13
|
securityCode?: string;
|
|
27
|
-
sameAsShipping?: boolean;
|
|
28
|
-
billingSummaryTitle?: string;
|
|
29
|
-
billingName?: string;
|
|
30
|
-
billingCompanyName?: string;
|
|
31
|
-
billingPhone?: string;
|
|
32
|
-
billingAddressLine1?: string;
|
|
33
|
-
billingAddressLine2?: string;
|
|
34
|
-
billingAddressLine3?: string;
|
|
35
|
-
isEditingBillingAddress?: boolean;
|
|
36
|
-
billingFirstName?: string;
|
|
37
|
-
billingLastName?: string;
|
|
38
|
-
billingEmail?: string;
|
|
39
|
-
billingPhoneNumber?: string;
|
|
40
|
-
billingAddress?: string;
|
|
41
|
-
billingApartment?: string;
|
|
42
|
-
billingPostalCode?: string;
|
|
43
|
-
billingCity?: string;
|
|
44
|
-
billingCountry?: string;
|
|
45
|
-
billingStateProvince?: string;
|
|
46
|
-
billingCountryOptions?: DropdownOption[];
|
|
47
|
-
billingStateProvinceOptions?: DropdownOption[];
|
|
48
14
|
submitError?: string;
|
|
49
15
|
isSubmitting?: boolean;
|
|
50
16
|
onCardNumberChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
51
17
|
onExpirationDateChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
52
18
|
onSecurityCodeChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
53
|
-
onSameAsShippingChange?: (payload: CheckboxChangePayload) => void;
|
|
54
|
-
onEditBilling?: () => void;
|
|
55
19
|
onCardNumberBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
56
20
|
onExpirationDateBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
57
21
|
onSecurityCodeBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
58
|
-
onBillingFirstNameChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
59
|
-
onBillingLastNameChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
60
|
-
onBillingEmailChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
61
|
-
onBillingPhoneNumberChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
62
|
-
onBillingCompanyNameChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
63
|
-
onBillingAddressChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
64
|
-
onBillingApartmentChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
65
|
-
onBillingPostalCodeChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
66
|
-
onBillingCityChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
67
|
-
onBillingCountryChange?: (event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
68
|
-
onBillingStateProvinceChange?: (event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
69
|
-
onBillingFirstNameBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
70
|
-
onBillingLastNameBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
71
|
-
onBillingEmailBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
72
|
-
onBillingPhoneNumberBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
73
|
-
onBillingCompanyNameBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
74
|
-
onBillingAddressBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
75
|
-
onBillingApartmentBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
76
|
-
onBillingPostalCodeBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
77
|
-
onBillingCityBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
78
|
-
onBillingCountryBlur?: (event: React.FocusEvent<HTMLSelectElement>) => void;
|
|
79
|
-
onBillingStateProvinceBlur?: (event: React.FocusEvent<HTMLSelectElement>) => void;
|
|
80
22
|
errors?: CartPaymentPanelErrors;
|
|
81
23
|
}
|
|
@@ -2,10 +2,12 @@ import React from "react";
|
|
|
2
2
|
export interface CartTotalsPanelProps {
|
|
3
3
|
discountCode?: string;
|
|
4
4
|
subtotalLabel?: string;
|
|
5
|
+
discountLabel?: string;
|
|
5
6
|
taxLabel?: string;
|
|
6
7
|
shippingLabel?: string;
|
|
7
8
|
totalLabel?: string;
|
|
8
9
|
subtotal?: string;
|
|
10
|
+
discount?: string;
|
|
9
11
|
tax?: string;
|
|
10
12
|
shipping?: string;
|
|
11
13
|
total?: string;
|
|
@@ -28,6 +28,7 @@ export type CartOrderProps = {
|
|
|
28
28
|
priceValue?: number;
|
|
29
29
|
priceLabel?: string;
|
|
30
30
|
currency?: string;
|
|
31
|
+
bigCommerceProductId?: string | number;
|
|
31
32
|
};
|
|
32
33
|
export type PurchasePanelTabOptionGroups = {
|
|
33
34
|
productOptions?: PurchasePanelOptionProps[];
|
|
@@ -48,6 +49,7 @@ export type ProductVariantProps = {
|
|
|
48
49
|
value?: number;
|
|
49
50
|
label?: string;
|
|
50
51
|
};
|
|
52
|
+
bigCommerceProductId?: string | number;
|
|
51
53
|
finish?: string;
|
|
52
54
|
grade?: string;
|
|
53
55
|
isWebEnabled?: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { StandardCopyHeroProps } from "../../organisms/banner/standardcopyhero/StandardCopyHeroProps";
|
|
2
|
+
import type { MultiButtonBarProps } from "../../molecules/selectors/multibuttonbar/MultiButtonBarProps";
|
|
3
|
+
import type { FilterBarProps } from "../../molecules/selectors/filterbar/FilterBarProps";
|
|
4
|
+
import type { DropdownFilterProps } from "../../molecules/selectors/filterbar/DropdownFilterProps";
|
|
5
|
+
import type { FeaturedArticleBannerProps } from "../../organisms/banner/featuredarticlebanner/FeaturedArticleBannerProps";
|
|
6
|
+
import type { FeatureCardCollectionProps } from "../../organisms/featurecards/featurecardscollection/FeatureCardCollectionProps";
|
|
7
|
+
export type ArticleLandingSceneProps = {
|
|
8
|
+
standardCopyHeroProps: StandardCopyHeroProps;
|
|
9
|
+
multiButtonBarProps: MultiButtonBarProps;
|
|
10
|
+
filterBarProps: FilterBarProps;
|
|
11
|
+
dropdownFilterProps: DropdownFilterProps;
|
|
12
|
+
featuredArticleBannerProps: FeaturedArticleBannerProps;
|
|
13
|
+
featureCardCollectionProps: FeatureCardCollectionProps;
|
|
14
|
+
};
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import type { ShippingAddressFormProps } from "../../organisms/cart/shippingaddressform/ShippingAddressFormProps";
|
|
2
2
|
import type { CheckoutProgressIndicatorProps } from "../../molecules/selectors/progressindicator/CheckoutProgressIndicatorProps";
|
|
3
3
|
import type { CartTotalsPanelProps } from "../../organisms/cart/carttotalspanel/CartTotalsPanelProps";
|
|
4
|
+
import type { CheckboxChangePayload } from "../../atoms/checkbox/CheckboxProps";
|
|
4
5
|
export interface CartShippingTemplateProps {
|
|
5
6
|
shippingAddressFormProps: ShippingAddressFormProps;
|
|
7
|
+
billingAddressFormProps?: ShippingAddressFormProps;
|
|
6
8
|
checkoutProgressIndicatorProps: CheckoutProgressIndicatorProps;
|
|
7
9
|
cartTotalsPanelProps: CartTotalsPanelProps;
|
|
10
|
+
billingSectionTitle?: string;
|
|
11
|
+
sameAsShipping?: boolean;
|
|
12
|
+
sameAsShippingLabel?: string;
|
|
13
|
+
onSameAsShippingChange?: (payload: CheckboxChangePayload) => void;
|
|
8
14
|
className?: string;
|
|
9
15
|
}
|
package/dist/componentProps/templates/productdetailpagetemplate/ProductDetailPageTemplateProps.d.ts
CHANGED
|
@@ -216,6 +216,7 @@ export type ProductDetailOrder = {
|
|
|
216
216
|
priceValue?: number;
|
|
217
217
|
priceLabel?: string;
|
|
218
218
|
currency?: string;
|
|
219
|
+
bigCommerceProductId?: string | number;
|
|
219
220
|
};
|
|
220
221
|
export type ProductDetailCartFlyoutProps = Omit<CartFlyoutProps, "isOpen" | "onClose">;
|
|
221
222
|
export type ProductDetailPageTemplateProps = {
|