@commercelayer/app-elements 0.0.40 → 0.0.42
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/{Async-62e1f464.js → Async-61b1e52e.js} +2 -2
- package/dist/{InputDateComponent-654687ab.js → InputDateComponent-dba74b7e.js} +1 -1
- package/dist/{Select-bc3c1a8c.js → Select-d24338e7.js} +2 -2
- package/dist/dictionaries/orders.d.ts +19 -0
- package/dist/main-fdd6500d.js +19585 -0
- package/dist/main.d.ts +6 -0
- package/dist/main.js +93 -82
- package/dist/{overrides-b28bb177.js → overrides-b5181bd5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui/atoms/Avatar.d.ts +1 -10
- package/dist/ui/atoms/Avatar.presets.d.ts +13 -0
- package/dist/ui/atoms/Icon.d.ts +1 -0
- package/dist/ui/atoms/Progress.d.ts +21 -0
- package/dist/ui/composite/ActionButtons.d.ts +20 -0
- package/dist/ui/composite/CardDialog.d.ts +11 -0
- package/dist/ui/lists/ListDetailsItem.d.ts +13 -1
- package/dist/ui/lists/ListItem.d.ts +1 -1
- package/dist/ui/resources/ListItemOrder.d.ts +7 -0
- package/dist/ui/resources/OrderSummary.d.ts +6 -9
- package/dist/ui/resources/ShipmentParcels.d.ts +7 -0
- package/dist/utils/tracking.d.ts +153 -0
- package/package.json +3 -2
- package/dist/main-82eabb5a.js +0 -16221
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as de from "react";
|
|
2
2
|
import le, { useRef as W, useState as a, useEffect as z, useCallback as B, forwardRef as ce } from "react";
|
|
3
|
-
import { _ as ve, a as s, h as Oe, b as O, c as Se, u as _e, S as he, d as me, s as ge } from "./overrides-
|
|
3
|
+
import { _ as ve, a as s, h as Oe, b as O, c as Se, u as _e, S as he, d as me, s as ge } from "./overrides-b5181bd5.js";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./main-
|
|
5
|
+
import "./main-fdd6500d.js";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
7
7
|
var ye = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
|
8
8
|
function Ce(t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as A from "react";
|
|
2
2
|
import h, { forwardRef as ou, createElement as Qu, Component as Ku, createRef as zu } from "react";
|
|
3
|
-
import { P as Zu, r as D, a as au, t as $, b as yt, c as Oe, d as E, g as Lo, s as Ne, e as hn, f as Xu, h as yn, i as iu, j as Gu, k as Ju, l as es, m as ca, n as ts, o as la, p as rs, q as ns, u as os, v as ee, w as ze, x as mn, y as uu, z as as, A as is, B as fa, C as us, D as ss, E as cs, F as fr, I as ls, G as fs, H as ps } from "./main-
|
|
3
|
+
import { P as Zu, r as D, a as au, t as $, b as yt, c as Oe, d as E, g as Lo, s as Ne, e as hn, f as Xu, h as yn, i as iu, j as Gu, k as Ju, l as es, m as ca, n as ts, o as la, p as rs, q as ns, u as os, v as ee, w as ze, x as mn, y as uu, z as as, A as is, B as fa, C as us, D as ss, E as cs, F as fr, I as ls, G as fs, H as ps } from "./main-fdd6500d.js";
|
|
4
4
|
import * as ds from "react-dom";
|
|
5
5
|
import hs, { findDOMNode as ys } from "react-dom";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import a, { forwardRef as s } from "react";
|
|
3
|
-
import { u as m, S as p, d as c, s as i } from "./overrides-
|
|
3
|
+
import { u as m, S as p, d as c, s as i } from "./overrides-b5181bd5.js";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./main-
|
|
5
|
+
import "./main-fdd6500d.js";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
7
7
|
var l = /* @__PURE__ */ s(function(e, t) {
|
|
8
8
|
var o = m(e);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type IconProps } from '../ui/atoms/Icon';
|
|
2
|
+
import type { Order } from '@commercelayer/sdk';
|
|
3
|
+
type UITriggerAttributes = '_approve' | '_cancel' | '_capture' | '_refund' | '_return' | '_archive' | '_unarchive';
|
|
4
|
+
type UIStatus = 'placed' | 'approved' | 'in_progress' | 'paid' | 'fulfilled' | 'error' | 'cancelled' | 'refunded' | 'part_refunded' | 'not_handled';
|
|
5
|
+
interface OrderDisplayStatus {
|
|
6
|
+
status: UIStatus;
|
|
7
|
+
label: string;
|
|
8
|
+
icon: IconProps['name'];
|
|
9
|
+
color: IconProps['background'];
|
|
10
|
+
task?: string;
|
|
11
|
+
triggerAttributes: UITriggerAttributes[];
|
|
12
|
+
}
|
|
13
|
+
export declare function getOrderDisplayStatus(order: Order): OrderDisplayStatus;
|
|
14
|
+
export declare function getOrderTransactionPastTense(type: NonNullable<Order['transactions']>[number]['type']): string;
|
|
15
|
+
export declare function getOrderStatusName(status: Order['status']): string;
|
|
16
|
+
export declare function getOrderPaymentStatusName(status: Order['payment_status']): string;
|
|
17
|
+
export declare function getOrderFulfillmentStatusName(status: Order['fulfillment_status']): string;
|
|
18
|
+
export declare function getOrderTriggerAttributeName(triggerAttribute: UITriggerAttributes): string;
|
|
19
|
+
export {};
|