@commercelayer/app-elements 1.3.0 → 1.4.1
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/{InputDateComponent-7f0144bf.js → InputDateComponent-3bc64876.js} +1 -1
- package/dist/{main-dc5c490a.js → main-e4917e40.js} +4183 -4079
- package/dist/main.d.ts +1 -0
- package/dist/main.js +145 -144
- package/dist/style.css +1 -1
- package/dist/ui/atoms/Alert.d.ts +10 -0
- package/dist/ui/atoms/Alert.test.d.ts +1 -0
- package/dist/ui/resources/ResourceOrderSummary/utils.d.ts +4 -2
- package/package.json +1 -1
|
@@ -3,12 +3,14 @@ import type { LineItem, Order } from '@commercelayer/sdk';
|
|
|
3
3
|
interface TotalRowProps {
|
|
4
4
|
/** Displayed label */
|
|
5
5
|
label: string;
|
|
6
|
+
/** Amount cents */
|
|
7
|
+
amountCents: number | undefined | null;
|
|
6
8
|
/** Formatted amount */
|
|
7
9
|
formattedAmount: string | undefined | null;
|
|
8
10
|
/** Set font-weight to bold */
|
|
9
11
|
bold?: boolean;
|
|
10
12
|
/**
|
|
11
|
-
* When `true` the row will be always
|
|
13
|
+
* When `true` the row will be always printed even if the `amountCents` is equal to 0.
|
|
12
14
|
* @default false
|
|
13
15
|
*/
|
|
14
16
|
force?: boolean;
|
|
@@ -18,7 +20,7 @@ export declare function renderTotalRow({ label, value, bold }: {
|
|
|
18
20
|
value: React.ReactNode;
|
|
19
21
|
bold?: boolean;
|
|
20
22
|
}): JSX.Element;
|
|
21
|
-
export declare function renderTotalRowAmount({ label, formattedAmount, force, bold }: TotalRowProps): JSX.Element | null;
|
|
23
|
+
export declare function renderTotalRowAmount({ label, amountCents, formattedAmount, force, bold }: TotalRowProps): JSX.Element | null;
|
|
22
24
|
export declare function renderDiscounts(order: Order): JSX.Element | null;
|
|
23
25
|
export declare const manualAdjustmentReferenceOrigin = "app-orders--manual-adjustment";
|
|
24
26
|
export declare function getManualAdjustment(order: Order): LineItem | undefined;
|