formica-ui-lib 1.0.274 → 1.0.276
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/molecules/cards/orderdetailheadercard/OrderDetailHeaderCardProps.d.ts +10 -0
- package/dist/componentProps/molecules/cards/orderitemdetailcard/OrderItemDetailCardProps.d.ts +26 -0
- package/dist/componentProps/templates/admin/marketreadinessbrowse/MarketReadinessBrowseTemplateProps.d.ts +5 -0
- package/dist/componentProps/templates/customeraccount/orderdetail/CustomerAccountOrderDetailTemplateProps.d.ts +14 -22
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +966 -921
- package/dist/stories/molecules/cards/orderdetailheadercard/OrderDetailHeaderCard.d.ts +4 -0
- package/dist/stories/molecules/cards/orderitemdetailcard/OrderItemDetailCard.d.ts +4 -0
- package/dist/tailwind.css +1 -1
- package/package.json +1 -1
package/dist/componentProps/molecules/cards/orderdetailheadercard/OrderDetailHeaderCardProps.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type CustomerAccountOrderStatusTone = "neutral" | "accent" | "success";
|
|
2
|
+
export interface OrderDetailHeaderCardProps {
|
|
3
|
+
orderNumber: string;
|
|
4
|
+
orderDate: string;
|
|
5
|
+
status: string;
|
|
6
|
+
statusTone?: CustomerAccountOrderStatusTone;
|
|
7
|
+
projectName?: string;
|
|
8
|
+
invoiceLabel?: string;
|
|
9
|
+
onInvoiceClick?: () => void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CustomerAccountOrderStatusTone } from "../orderdetailheadercard/OrderDetailHeaderCardProps";
|
|
2
|
+
export interface CustomerAccountOrderDetailItem {
|
|
3
|
+
id: string;
|
|
4
|
+
sku: string;
|
|
5
|
+
imageSrc: string;
|
|
6
|
+
imageAlt: string;
|
|
7
|
+
title: string;
|
|
8
|
+
brand?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
quantity: number;
|
|
11
|
+
quantityUnit?: string;
|
|
12
|
+
unitPrice: string;
|
|
13
|
+
total: string;
|
|
14
|
+
status: string;
|
|
15
|
+
statusTone?: CustomerAccountOrderStatusTone;
|
|
16
|
+
statusDetail?: string;
|
|
17
|
+
trackingNumber?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface CustomerAccountOrderItemActionPayload {
|
|
20
|
+
item: CustomerAccountOrderDetailItem;
|
|
21
|
+
}
|
|
22
|
+
export interface OrderItemDetailCardProps {
|
|
23
|
+
item: CustomerAccountOrderDetailItem;
|
|
24
|
+
onProductClick?: (payload: CustomerAccountOrderItemActionPayload) => void;
|
|
25
|
+
onTrackingClick?: (payload: CustomerAccountOrderItemActionPayload) => void;
|
|
26
|
+
}
|
|
@@ -10,6 +10,9 @@ export interface MarketReadinessBrowseSearchPayload {
|
|
|
10
10
|
export interface MarketReadinessBrowseRegionChangePayload {
|
|
11
11
|
region: string;
|
|
12
12
|
}
|
|
13
|
+
export interface MarketReadinessBrowseAddDecorPayload {
|
|
14
|
+
rangeId: string;
|
|
15
|
+
}
|
|
13
16
|
export interface MarketReadinessBrowseTemplateProps {
|
|
14
17
|
pageTitle: string;
|
|
15
18
|
pageDescription?: string;
|
|
@@ -32,6 +35,7 @@ export interface MarketReadinessBrowseTemplateProps {
|
|
|
32
35
|
rangePromptMessage?: string;
|
|
33
36
|
resultCount: number;
|
|
34
37
|
resultLabel?: string;
|
|
38
|
+
addDecorLabel?: string;
|
|
35
39
|
groups: DecorSummaryCollectionGroup[];
|
|
36
40
|
status?: AdminTemplateStatus;
|
|
37
41
|
hasMore?: boolean;
|
|
@@ -42,6 +46,7 @@ export interface MarketReadinessBrowseTemplateProps {
|
|
|
42
46
|
onSearchChange: (payload: MarketReadinessBrowseSearchPayload) => void;
|
|
43
47
|
onSearchSubmit?: (payload: MarketReadinessBrowseSearchPayload) => void;
|
|
44
48
|
onRangeSelect: (payload: MarketReadinessRangeSelectPayload) => void;
|
|
49
|
+
onAddDecorClick?: (payload: MarketReadinessBrowseAddDecorPayload) => void;
|
|
45
50
|
onDecorClick?: (payload: DecorSummaryCardClickPayload) => void;
|
|
46
51
|
onLoadMore?: () => void;
|
|
47
52
|
onRetryClick?: () => void;
|
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
import type { CustomerAccountShellProps } from "../../../organisms/account/customeraccountshell/CustomerAccountShellProps";
|
|
2
|
-
|
|
2
|
+
import type { CustomerAccountOrderDetailItem, CustomerAccountOrderItemActionPayload } from "../../../molecules/cards/orderitemdetailcard/OrderItemDetailCardProps";
|
|
3
|
+
import type { CustomerAccountOrderStatusTone } from "../../../molecules/cards/orderdetailheadercard/OrderDetailHeaderCardProps";
|
|
4
|
+
export type { CustomerAccountOrderDetailItem, CustomerAccountOrderItemActionPayload, } from "../../../molecules/cards/orderitemdetailcard/OrderItemDetailCardProps";
|
|
5
|
+
export type { CustomerAccountOrderStatusTone } from "../../../molecules/cards/orderdetailheadercard/OrderDetailHeaderCardProps";
|
|
3
6
|
export interface CustomerAccountOrderAddress {
|
|
4
7
|
name: string;
|
|
5
8
|
lines: string[];
|
|
6
9
|
}
|
|
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
10
|
export interface CustomerAccountOrderSummaryRow {
|
|
25
11
|
label: string;
|
|
26
12
|
value: string;
|
|
@@ -31,8 +17,15 @@ export interface CustomerAccountOrderShippingMethod {
|
|
|
31
17
|
name: string;
|
|
32
18
|
estimatedDelivery?: string;
|
|
33
19
|
}
|
|
34
|
-
export
|
|
35
|
-
|
|
20
|
+
export type CustomerAccountOrderFulfillmentType = "samples" | "sheets";
|
|
21
|
+
export interface CustomerAccountOrderFulfillmentGroup {
|
|
22
|
+
id: string;
|
|
23
|
+
type: CustomerAccountOrderFulfillmentType;
|
|
24
|
+
title: string;
|
|
25
|
+
items: CustomerAccountOrderDetailItem[];
|
|
26
|
+
facility?: string;
|
|
27
|
+
shippingMethod: CustomerAccountOrderShippingMethod;
|
|
28
|
+
shippingCost: string;
|
|
36
29
|
}
|
|
37
30
|
export interface CustomerAccountOrderDetailTemplateProps {
|
|
38
31
|
shellProps: Omit<CustomerAccountShellProps, "children" | "activeTabId">;
|
|
@@ -41,10 +34,9 @@ export interface CustomerAccountOrderDetailTemplateProps {
|
|
|
41
34
|
status: string;
|
|
42
35
|
statusTone?: CustomerAccountOrderStatusTone;
|
|
43
36
|
projectName?: string;
|
|
44
|
-
|
|
37
|
+
fulfillmentGroups: CustomerAccountOrderFulfillmentGroup[];
|
|
45
38
|
shippingAddress: CustomerAccountOrderAddress;
|
|
46
39
|
billingAddress?: CustomerAccountOrderAddress;
|
|
47
|
-
shippingMethod?: CustomerAccountOrderShippingMethod;
|
|
48
40
|
paymentMethod?: string;
|
|
49
41
|
summaryRows: CustomerAccountOrderSummaryRow[];
|
|
50
42
|
backLabel?: string;
|