formica-ui-lib 1.0.282 → 1.0.284

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.
@@ -19,6 +19,10 @@ export type CartItemCardProps = {
19
19
  status?: CartItemStatus;
20
20
  minQuantity?: number;
21
21
  maxQuantity?: number;
22
+ freeLabel?: string;
23
+ removeItemLabel?: string;
24
+ decreaseQuantityLabel?: string;
25
+ increaseQuantityLabel?: string;
22
26
  onQuantityChange?: (quantity: number) => void;
23
27
  onRemoveItem?: () => void;
24
28
  };
@@ -25,6 +25,9 @@ export interface QuantityCheckoutCardProps {
25
25
  minQuantity?: number;
26
26
  maxQuantity?: number;
27
27
  isReadOnly?: boolean;
28
+ removeItemLabel?: string;
29
+ decreaseQuantityLabel?: string;
30
+ increaseQuantityLabel?: string;
28
31
  onQuantityChange?: (quantity: number) => void;
29
32
  onRemoveItem?: () => void;
30
33
  }
@@ -32,9 +32,36 @@ export type AccountAccessPanelActionLabels = {
32
32
  createAccountPrimary?: string;
33
33
  secondary?: string;
34
34
  };
35
+ export type AccountAccessPanelLabels = {
36
+ modeAriaLabel?: string;
37
+ createAccountMode?: string;
38
+ signInMode?: string;
39
+ firstName?: string;
40
+ firstNamePlaceholder?: string;
41
+ lastName?: string;
42
+ lastNamePlaceholder?: string;
43
+ email?: string;
44
+ emailPlaceholder?: string;
45
+ phoneNumber?: string;
46
+ phoneNumberPlaceholder?: string;
47
+ userType?: string;
48
+ userTypePlaceholder?: string;
49
+ password?: string;
50
+ passwordPlaceholder?: string;
51
+ forgotPassword?: string;
52
+ confirmPassword?: string;
53
+ confirmPasswordPlaceholder?: string;
54
+ marketingOptIn?: string;
55
+ termsConsentAriaLabel?: string;
56
+ termsConsentPrefix?: string;
57
+ termsOfUse?: string;
58
+ termsConsentJoin?: string;
59
+ privacyPolicy?: string;
60
+ };
35
61
  export type AccountAccessPanelProps = {
36
62
  data: AccountAccessPanelData;
37
63
  actionLabels?: AccountAccessPanelActionLabels;
64
+ labels?: AccountAccessPanelLabels;
38
65
  onModeChange?: (mode: AccountAccessPanelMode) => void;
39
66
  onEmailChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
40
67
  onPasswordChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
@@ -7,6 +7,17 @@ export type CartFlyoutProps = {
7
7
  isOpen: boolean;
8
8
  title?: string;
9
9
  projectName?: string;
10
+ projectNamePlaceholder?: string;
11
+ emptyCartText?: string;
12
+ goToCartLabel?: string;
13
+ clearCartLabel?: string;
14
+ freeLabel?: string;
15
+ closeOverlayLabel?: string;
16
+ closeCartLabel?: string;
17
+ flyoutAriaLabel?: string;
18
+ removeItemLabel?: string;
19
+ decreaseQuantityLabel?: string;
20
+ increaseQuantityLabel?: string;
10
21
  items?: ShoppingCartFlyoutItem[];
11
22
  className?: string;
12
23
  onClose?: () => void;
@@ -22,6 +22,13 @@ export interface CartSummaryProps {
22
22
  subtotal: number;
23
23
  shippingCost: number;
24
24
  items: CartSummaryItem[];
25
+ title?: string;
26
+ totalLabel?: string;
27
+ locale?: string;
28
+ currency?: string;
29
+ removeItemLabel?: string;
30
+ decreaseQuantityLabel?: string;
31
+ increaseQuantityLabel?: string;
25
32
  onQuantityChange?: (itemId: string, quantity: number) => void;
26
33
  onRemoveItem?: (itemId: string) => void;
27
34
  }
@@ -15,6 +15,9 @@ export interface CartTotalsPanelProps {
15
15
  shipping?: string;
16
16
  total?: string;
17
17
  continueLabel?: string;
18
+ discountCodePlaceholder?: string;
19
+ applyDiscountLabel?: string;
20
+ notCalculatedLabel?: string;
18
21
  showDiscountCode?: boolean;
19
22
  onDiscountCodeChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
20
23
  onApplyDiscount?: () => void;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { AccountAccessPanelMode, AccountAccessPanelUserTypeValue } from "../../account/AccountAccessPanelProps";
2
+ import type { AccountAccessPanelActionLabels, AccountAccessPanelLabels, AccountAccessPanelMode, AccountAccessPanelUserTypeValue } from "../../account/AccountAccessPanelProps";
3
3
  export interface CheckoutAccountStepProps {
4
4
  currentStep?: number;
5
5
  steps?: string[];
@@ -28,6 +28,8 @@ export interface CheckoutAccountStepProps {
28
28
  userTypeHasError?: boolean;
29
29
  confirmPasswordHasError?: boolean;
30
30
  termsAcceptedHasError?: boolean;
31
+ actionLabels?: AccountAccessPanelActionLabels;
32
+ labels?: AccountAccessPanelLabels;
31
33
  onModeChange?: (mode: AccountAccessPanelMode) => void;
32
34
  onEmailChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
33
35
  onPasswordChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;