formica-ui-lib 1.0.333 → 1.0.334

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.
@@ -11,6 +11,8 @@ export type CartItemCardProps = {
11
11
  brand?: string;
12
12
  decorNumber?: string;
13
13
  quantity: number;
14
+ /** App-provided validation error for this item. */
15
+ errorMessage?: string;
14
16
  imageSrc: string;
15
17
  imageAlt: string;
16
18
  price: CartItemCardPrice;
@@ -9,6 +9,8 @@ export interface QuantityCheckoutCardProps {
9
9
  finish?: string;
10
10
  size?: string;
11
11
  quantity: number;
12
+ /** App-provided validation error for this item. */
13
+ errorMessage?: string;
12
14
  price?: {
13
15
  label: string;
14
16
  value: number;
@@ -1,4 +1,6 @@
1
1
  export type CartActionsProps = {
2
+ /** App-provided validation error for the purchase quantity or selected item. */
3
+ errorMessage?: string;
2
4
  initialQuantity?: number;
3
5
  minQuantity?: number;
4
6
  maxQuantity?: number;
@@ -10,6 +10,8 @@ export interface CartSummaryItem {
10
10
  decorNumber?: string;
11
11
  productType?: string;
12
12
  quantity: number;
13
+ /** App-provided validation error for this item. */
14
+ errorMessage?: string;
13
15
  price?: {
14
16
  value: number;
15
17
  currency: string;
@@ -48,6 +48,8 @@ export type PurchasePanelLeftPanelProps = {
48
48
  returnPolicyLabel?: string;
49
49
  onPurchaseInfoLinkClick?: (href: string, meta?: SwatchPurchasePanelLeftPanelNavigateMeta) => void;
50
50
  priceLabel?: string;
51
+ /** App-provided validation error for the purchase quantity or selected item. */
52
+ errorMessage?: string;
51
53
  initialQuantity?: number;
52
54
  minQuantity?: number;
53
55
  maxQuantity?: number;
@@ -108,6 +108,8 @@ export type PurchasePanelProps = {
108
108
  priceLabel?: string;
109
109
  priceValue?: number;
110
110
  currency?: string;
111
+ /** App-provided validation error for the purchase quantity or selected item. */
112
+ errorMessage?: string;
111
113
  initialQuantity?: number;
112
114
  minQuantity?: number;
113
115
  maxQuantity?: number;
@@ -248,6 +248,8 @@ export type ProductDetailCartFlyoutProps = CartFlyoutProps;
248
248
  export type ProductDetailPageTemplateProps = {
249
249
  breadcrumbsProps?: BreadcrumbsProps;
250
250
  productData: ProductDetailData;
251
+ /** App-provided validation error displayed above the purchase quantity controls. */
252
+ errorMessage?: string;
251
253
  showFavorites?: boolean;
252
254
  onDownloadSwatch?: (productData: ProductDetailData) => void;
253
255
  onDownloadFullSheet?: (productData: ProductDetailData) => void;