formica-ui-lib 1.0.267 → 1.0.269

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.
@@ -0,0 +1,17 @@
1
+ export interface TopNavAccount {
2
+ loggedIn: boolean;
3
+ customerName?: string;
4
+ title?: string;
5
+ orderHistoryLabel?: string;
6
+ favoritesLabel?: string;
7
+ profileLabel?: string;
8
+ logoutLabel?: string;
9
+ }
10
+ export interface TopNavAccountDrawerProps extends TopNavAccount {
11
+ isOpen: boolean;
12
+ onClose: () => void;
13
+ onOrderHistoryClick?: () => void;
14
+ onFavoritesClick?: () => void;
15
+ onProfileClick?: () => void;
16
+ onLogoutClick?: () => void;
17
+ }
@@ -1,11 +1,13 @@
1
1
  import type { Country } from "../../molecules/selectors/countryselector/CountrySelectorProps";
2
2
  import type { TopNavLogin, TopNavCartSummary, TopNavSearchPayload } from "./TopNavBarProps";
3
3
  import type { TopNavSearchResultClickPayload, TopNavSearchResultItem } from "./TopNavSearchResultsProps";
4
+ import type { TopNavAccount } from "./TopNavAccountDrawerProps";
4
5
  export type TopNavActionsProps = {
5
6
  Countries?: Country[];
6
7
  countries?: Country[];
7
8
  selectedCountry?: Country | null;
8
9
  Login: TopNavLogin;
10
+ Account?: TopNavAccount;
9
11
  Cart?: TopNavCartSummary;
10
12
  showCart?: boolean;
11
13
  showFavorites?: boolean;
@@ -19,6 +21,7 @@ export type TopNavActionsProps = {
19
21
  onSearchViewAllClick?: (payload: TopNavSearchPayload) => void;
20
22
  onCartClick?: () => void;
21
23
  onLoginClick?: () => void;
24
+ onAccountClick?: () => void;
22
25
  onFavoritesClick?: () => void;
23
26
  onCountrySelect?: (country: Country) => void;
24
27
  };
@@ -1,5 +1,6 @@
1
1
  import { Country } from "../../molecules/selectors/countryselector/CountrySelectorProps";
2
2
  import type { TopNavSearchResultClickPayload, TopNavSearchResultItem } from "./TopNavSearchResultsProps";
3
+ import type { TopNavAccount } from "./TopNavAccountDrawerProps";
3
4
  export type NavLinkItem = {
4
5
  id: string;
5
6
  label: string;
@@ -47,6 +48,7 @@ export type TopNavBarProps = {
47
48
  countries?: Country[];
48
49
  selectedCountry?: Country | null;
49
50
  Login?: TopNavLogin;
51
+ Account?: TopNavAccount;
50
52
  Cart?: TopNavCartSummary;
51
53
  showCart?: boolean;
52
54
  showFavorites?: boolean;
@@ -64,6 +66,10 @@ export type TopNavBarProps = {
64
66
  onSearchViewAllClick?: (payload: TopNavSearchPayload) => void;
65
67
  onCartClick?: () => void;
66
68
  onLoginClick?: () => void;
69
+ onAccountClick?: () => void;
70
+ onOrderHistoryClick?: () => void;
71
+ onProfileClick?: () => void;
72
+ onLogoutClick?: () => void;
67
73
  onFavoritesClick?: () => void;
68
74
  onCountrySelect?: (country: Country) => void;
69
75
  };
@@ -106,7 +106,7 @@ export interface MarketReadinessSkuEditor {
106
106
  lastSavedLabel?: string;
107
107
  searchValue: string;
108
108
  selectedSkuId?: string;
109
- newSkuValue?: string;
109
+ newSkuValue: string;
110
110
  selectedGrade?: string;
111
111
  selectedFinish?: string;
112
112
  selectedSize?: string;
@@ -159,7 +159,7 @@ export interface MarketReadinessSampleEditor {
159
159
  lastSavedLabel?: string;
160
160
  searchValue: string;
161
161
  selectedSampleId?: string;
162
- newSkuValue?: string;
162
+ newSkuValue: string;
163
163
  selectedFinish?: string;
164
164
  selectedSize?: string;
165
165
  finishOptions: MarketReadinessSkuVariantOption[];
@@ -57,6 +57,14 @@ export interface MarketReadinessLandingTemplateProps {
57
57
  copyDecorLabel?: string;
58
58
  copyDecorHelpText?: string;
59
59
  copyDecorDisabled?: boolean;
60
+ deleteDecorTitle?: string;
61
+ deleteDecorDescription?: string;
62
+ deleteDecorCodeValue: string;
63
+ deleteDecorCodeLabel?: string;
64
+ deleteDecorCodePlaceholder?: string;
65
+ deleteDecorLabel?: string;
66
+ deleteDecorHelpText?: string;
67
+ deleteDecorDisabled?: boolean;
60
68
  retryLabel?: string;
61
69
  onDecorCodeChange: (payload: MarketReadinessLandingDecorCodeChangePayload) => void;
62
70
  onRegionChange: (payload: MarketReadinessLandingRegionChangePayload) => void;
@@ -66,5 +74,7 @@ export interface MarketReadinessLandingTemplateProps {
66
74
  onSourceDecorCodeOptionSelect?: (payload: SearchComboboxSelectPayload) => void;
67
75
  onNewDecorCodeChange: (payload: MarketReadinessLandingDecorCodeChangePayload) => void;
68
76
  onCopyDecorClick: (payload: MarketReadinessLandingCopyDecorActionPayload) => void;
77
+ onDeleteDecorCodeChange: (payload: MarketReadinessLandingDecorCodeChangePayload) => void;
78
+ onDeleteDecorClick: (payload: MarketReadinessLandingDecorActionPayload) => void;
69
79
  onRetryClick?: () => void;
70
80
  }
@@ -0,0 +1,58 @@
1
+ import type { CustomerAccountShellProps } from "../../../organisms/account/customeraccountshell/CustomerAccountShellProps";
2
+ export type CustomerAccountOrderStatusTone = "neutral" | "accent" | "success";
3
+ export interface CustomerAccountOrderAddress {
4
+ name: string;
5
+ lines: string[];
6
+ }
7
+ export interface CustomerAccountOrderDetailItem {
8
+ id: string;
9
+ sku: string;
10
+ imageSrc: string;
11
+ imageAlt: string;
12
+ title: string;
13
+ brand?: string;
14
+ description?: string;
15
+ quantity: number;
16
+ quantityUnit?: string;
17
+ unitPrice: string;
18
+ total: string;
19
+ status: string;
20
+ statusTone?: CustomerAccountOrderStatusTone;
21
+ statusDetail?: string;
22
+ trackingNumber?: string;
23
+ }
24
+ export interface CustomerAccountOrderSummaryRow {
25
+ label: string;
26
+ value: string;
27
+ isEmphasized?: boolean;
28
+ tone?: "default" | "accent";
29
+ }
30
+ export interface CustomerAccountOrderShippingMethod {
31
+ name: string;
32
+ estimatedDelivery?: string;
33
+ }
34
+ export interface CustomerAccountOrderItemActionPayload {
35
+ item: CustomerAccountOrderDetailItem;
36
+ }
37
+ export interface CustomerAccountOrderDetailTemplateProps {
38
+ shellProps: Omit<CustomerAccountShellProps, "children" | "activeTabId">;
39
+ orderNumber: string;
40
+ orderDate: string;
41
+ status: string;
42
+ statusTone?: CustomerAccountOrderStatusTone;
43
+ projectName?: string;
44
+ items: CustomerAccountOrderDetailItem[];
45
+ shippingAddress: CustomerAccountOrderAddress;
46
+ billingAddress?: CustomerAccountOrderAddress;
47
+ shippingMethod?: CustomerAccountOrderShippingMethod;
48
+ paymentMethod?: string;
49
+ summaryRows: CustomerAccountOrderSummaryRow[];
50
+ backLabel?: string;
51
+ invoiceLabel?: string;
52
+ helpLabel?: string;
53
+ onBackClick: () => void;
54
+ onInvoiceClick?: () => void;
55
+ onHelpClick?: () => void;
56
+ onProductClick?: (payload: CustomerAccountOrderItemActionPayload) => void;
57
+ onTrackingClick?: (payload: CustomerAccountOrderItemActionPayload) => void;
58
+ }
@@ -19,10 +19,15 @@ export interface CustomerAccountOrderHistoryTemplateProps {
19
19
  statusOptions: DropdownOption[];
20
20
  periodOptions: DropdownOption[];
21
21
  orders: CustomerAccountOrder[];
22
+ totalOrderCount?: number;
23
+ hasMoreOrders?: boolean;
24
+ isLoadingMore?: boolean;
25
+ seeMoreLabel?: string;
22
26
  searchDisabled?: boolean;
23
27
  emptyMessage?: string;
24
28
  onStatusChange: (event: ChangeEvent<HTMLSelectElement>) => void;
25
29
  onPeriodChange: (event: ChangeEvent<HTMLSelectElement>) => void;
26
30
  onSearchClick: () => void;
27
31
  onOrderClick: (payload: CustomerAccountOrderClickPayload) => void;
32
+ onSeeMoreClick?: () => void;
28
33
  }