@commercelayer/app-elements 1.8.1 → 1.8.3
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-2f1ab98b.js → InputDateComponent-e17b215b.js} +1 -1
- package/dist/dictionaries/orders.d.ts +3 -3
- package/dist/dictionaries/returns.d.ts +3 -3
- package/dist/dictionaries/shipments.d.ts +3 -3
- package/dist/dictionaries/stockTransfers.d.ts +3 -3
- package/dist/dictionaries/types.d.ts +3 -3
- package/dist/{main-45beb1e7.js → main-33ca6087.js} +8281 -8197
- package/dist/main.d.ts +1 -0
- package/dist/main.js +69 -68
- package/dist/ui/atoms/Badge/Badge.d.ts +2 -0
- package/dist/ui/atoms/ButtonFilter.d.ts +2 -2
- package/dist/ui/atoms/EmptyState.d.ts +2 -2
- package/dist/ui/atoms/Icon/Icon.d.ts +2 -9
- package/dist/ui/atoms/Icon/icons.d.ts +3 -0
- package/dist/ui/atoms/RadialProgress.d.ts +2 -2
- package/dist/ui/atoms/StatusIcon.d.ts +17 -0
- package/dist/ui/atoms/StatusIcon.test.d.ts +1 -0
- package/dist/ui/atoms/Tag.d.ts +1 -1
- package/dist/ui/composite/ListItem.d.ts +1 -1
- package/dist/ui/resources/ResourceListItem/common.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as xa, r as O, a as Ln, t as F, b as Ct, c as Te, d as T, g as Mr, _ as Kt, s as He, e as lr, f as Sa, h as Y, i as R, j as N, k, l as C, m as I, n as Oa, o as dr, p as Fn, q as Ta, u as Ea, v as _a, w as Zr, x as Pa, y as zr, z as Na, A as Ia, B as Ya, C as Hn, D as ae, E as nt, F as Ft, G as fr, H as xr, I as Ra, J as Xr, K as Aa, L as La, M as Fa, N as Ht, O as qe, Q as Ha, R as Ba, X as ja } from "./main-
|
|
1
|
+
import { P as xa, r as O, a as Ln, t as F, b as Ct, c as Te, d as T, g as Mr, _ as Kt, s as He, e as lr, f as Sa, h as Y, i as R, j as N, k, l as C, m as I, n as Oa, o as dr, p as Fn, q as Ta, u as Ea, v as _a, w as Zr, x as Pa, y as zr, z as Na, A as Ia, B as Ya, C as Hn, D as ae, E as nt, F as Ft, G as fr, H as xr, I as Ra, J as Xr, K as Aa, L as La, M as Fa, N as Ht, O as qe, Q as Ha, R as Ba, X as ja } from "./main-33ca6087.js";
|
|
2
2
|
import * as U from "react";
|
|
3
3
|
import h, { forwardRef as Bn, createElement as Ua, Component as Va, createRef as Wa } from "react";
|
|
4
4
|
import * as Qa from "react-dom";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { TriggerAttribute } from '../helpers/resources';
|
|
2
|
-
import type {
|
|
2
|
+
import type { StatusIconProps } from '../ui/atoms/StatusIcon';
|
|
3
3
|
import type { Order, OrderUpdate } from '@commercelayer/sdk';
|
|
4
4
|
import type { DisplayStatus } from './types';
|
|
5
5
|
type UITriggerAttributes = Extract<TriggerAttribute<OrderUpdate>, '_approve' | '_cancel' | '_capture' | '_refund' | '_archive' | '_unarchive'> | '_return';
|
|
6
6
|
export interface OrderDisplayStatus extends DisplayStatus {
|
|
7
7
|
label: string;
|
|
8
|
-
icon:
|
|
9
|
-
color:
|
|
8
|
+
icon: StatusIconProps['name'];
|
|
9
|
+
color: StatusIconProps['background'];
|
|
10
10
|
task?: string;
|
|
11
11
|
triggerAttributes: UITriggerAttributes[];
|
|
12
12
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type StatusIconProps } from '../ui/atoms/StatusIcon';
|
|
2
2
|
import type { Return } from '@commercelayer/sdk';
|
|
3
3
|
import type { DisplayStatus } from './types';
|
|
4
4
|
export interface ReturnDisplayStatus extends DisplayStatus {
|
|
5
5
|
label: string;
|
|
6
|
-
icon:
|
|
7
|
-
color:
|
|
6
|
+
icon: StatusIconProps['name'];
|
|
7
|
+
color: StatusIconProps['background'];
|
|
8
8
|
task?: string;
|
|
9
9
|
}
|
|
10
10
|
export declare function getReturnDisplayStatus(returnObj: Return): ReturnDisplayStatus;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type StatusIconProps } from '../ui/atoms/StatusIcon';
|
|
2
2
|
import type { Shipment } from '@commercelayer/sdk';
|
|
3
3
|
import type { DisplayStatus } from './types';
|
|
4
4
|
export interface ShipmentDisplayStatus extends DisplayStatus {
|
|
5
5
|
label: string;
|
|
6
|
-
icon:
|
|
7
|
-
color:
|
|
6
|
+
icon: StatusIconProps['name'];
|
|
7
|
+
color: StatusIconProps['background'];
|
|
8
8
|
task?: string;
|
|
9
9
|
}
|
|
10
10
|
export declare function getShipmentDisplayStatus(shipment: Shipment, awaitingStockTransfer?: boolean): ShipmentDisplayStatus;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type StatusIconProps } from '../ui/atoms/StatusIcon';
|
|
2
2
|
import type { StockTransfer } from '@commercelayer/sdk';
|
|
3
3
|
import type { DisplayStatus } from './types';
|
|
4
4
|
export interface StockTransferDisplayStatus extends DisplayStatus {
|
|
5
5
|
label: string;
|
|
6
|
-
icon:
|
|
7
|
-
color:
|
|
6
|
+
icon: StatusIconProps['name'];
|
|
7
|
+
color: StatusIconProps['background'];
|
|
8
8
|
task?: string;
|
|
9
9
|
}
|
|
10
10
|
export declare function getStockTransferDisplayStatus(stockTransfer: StockTransfer): StockTransferDisplayStatus;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type StatusIconProps } from '../ui/atoms/StatusIcon';
|
|
2
2
|
export interface DisplayStatus {
|
|
3
3
|
label: string;
|
|
4
|
-
icon:
|
|
5
|
-
color:
|
|
4
|
+
icon: StatusIconProps['name'];
|
|
5
|
+
color: StatusIconProps['background'];
|
|
6
6
|
task?: string;
|
|
7
7
|
}
|