formica-ui-lib 1.0.267 → 1.0.268
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/templates/customeraccount/orderdetail/CustomerAccountOrderDetailTemplateProps.d.ts +58 -0
- package/dist/componentProps/templates/customeraccount/orderhistory/CustomerAccountOrderHistoryTemplateProps.d.ts +5 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +379 -92
- package/dist/stories/templates/customeraccount/orderdetail/CustomerAccountOrderDetailTemplate.d.ts +4 -0
- package/package.json +1 -1
|
@@ -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
|
}
|