@commercelayer/app-elements 1.7.1 → 1.8.0
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-ed463f1b.js → InputDateComponent-2f1ab98b.js} +1 -1
- package/dist/dictionaries/shipments.d.ts +11 -0
- package/dist/{main-b52943eb.js → main-45beb1e7.js} +12944 -24161
- package/dist/main.d.ts +3 -0
- package/dist/main.js +124 -119
- package/dist/mocks/data/countries.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/ui/atoms/AvatarLetter/AvatarLetter.d.ts +6 -1
- package/dist/ui/atoms/Icon/icons.d.ts +8 -1
- package/dist/ui/composite/OrganizationMenu.d.ts +21 -0
- package/dist/ui/composite/OrganizationMenu.test.d.ts +1 -0
- package/dist/ui/composite/SwitchMode.d.ts +6 -0
- package/dist/ui/composite/SwitchMode.test.d.ts +1 -0
- package/dist/ui/resources/ResourceLineItems/ResourceLineItems.d.ts +3 -2
- package/dist/ui/resources/ResourceLineItems/ResourceLineItems.mocks.d.ts +53 -0
- package/dist/ui/resources/ResourceLineItems/types.d.ts +4 -0
- package/dist/ui/resources/ResourceListItem/ResourceListItem.mocks.d.ts +115 -0
- package/dist/ui/resources/ResourceListItem/common.d.ts +1 -1
- package/dist/ui/resources/ResourceListItem/transformers/index.d.ts +1 -0
- package/dist/ui/resources/ResourceListItem/transformers/shipments.d.ts +3 -0
- package/dist/ui/resources/ResourceListItem/types.d.ts +2 -2
- package/package.json +1 -2
|
@@ -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-45beb1e7.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";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type IconProps } from '../ui/atoms/Icon';
|
|
2
|
+
import type { Shipment } from '@commercelayer/sdk';
|
|
3
|
+
import type { DisplayStatus } from './types';
|
|
4
|
+
export interface ShipmentDisplayStatus extends DisplayStatus {
|
|
5
|
+
label: string;
|
|
6
|
+
icon: IconProps['name'];
|
|
7
|
+
color: IconProps['background'];
|
|
8
|
+
task?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function getShipmentDisplayStatus(shipment: Shipment, awaitingStockTransfer?: boolean): ShipmentDisplayStatus;
|
|
11
|
+
export declare function getShipmentStatusName(status: Shipment['status']): string;
|