formica-ui-lib 1.0.157 → 1.0.160

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.
@@ -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
  }
@@ -15,6 +15,7 @@ export interface ShippingAddressFormErrors {
15
15
  }
16
16
  export interface ShippingAddressFormProps {
17
17
  title?: string;
18
+ idPrefix?: string;
18
19
  firstName?: string;
19
20
  lastName?: string;
20
21
  email?: string;
@@ -1,7 +1,9 @@
1
1
  import type { CheckoutProgressIndicatorProps } from "../../molecules/selectors/progressindicator/CheckoutProgressIndicatorProps";
2
2
  import type { CartTotalsPanelProps } from "../../organisms/cart/carttotalspanel/CartTotalsPanelProps";
3
3
  import { CartPaymentPanelProps } from "../../organisms/cart/cartpaymentpanel/CartPaymentPanelProps";
4
+ import type { RadioOptionSelectorProps } from "../../organisms/selectors/radiooptionselector/RadioOptionSelectorProps";
4
5
  export interface CartPaymentTemplateProps {
6
+ shippingMethodSelectorProps: RadioOptionSelectorProps;
5
7
  cartPaymentPanelProps: CartPaymentPanelProps;
6
8
  checkoutProgressIndicatorProps: CheckoutProgressIndicatorProps;
7
9
  cartTotalsPanelProps: CartTotalsPanelProps;
@@ -1,11 +1,15 @@
1
1
  import type { ShippingAddressFormProps } from "../../organisms/cart/shippingaddressform/ShippingAddressFormProps";
2
- import type { RadioOptionSelectorProps } from "../../organisms/selectors/radiooptionselector/RadioOptionSelectorProps";
3
2
  import type { CheckoutProgressIndicatorProps } from "../../molecules/selectors/progressindicator/CheckoutProgressIndicatorProps";
4
3
  import type { CartTotalsPanelProps } from "../../organisms/cart/carttotalspanel/CartTotalsPanelProps";
4
+ import type { CheckboxChangePayload } from "../../atoms/checkbox/CheckboxProps";
5
5
  export interface CartShippingTemplateProps {
6
6
  shippingAddressFormProps: ShippingAddressFormProps;
7
- shippingMethodSelectorProps: RadioOptionSelectorProps;
7
+ billingAddressFormProps?: ShippingAddressFormProps;
8
8
  checkoutProgressIndicatorProps: CheckoutProgressIndicatorProps;
9
9
  cartTotalsPanelProps: CartTotalsPanelProps;
10
+ billingSectionTitle?: string;
11
+ sameAsShipping?: boolean;
12
+ sameAsShippingLabel?: string;
13
+ onSameAsShippingChange?: (payload: CheckboxChangePayload) => void;
10
14
  className?: string;
11
15
  }