@commercelayer/app-elements 0.0.41 → 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-5be35984.js → Async-61b1e52e.js} +2 -2
- package/dist/{InputDateComponent-b532f2f6.js → InputDateComponent-dba74b7e.js} +1 -1
- package/dist/{Select-b113c4d2.js → Select-d24338e7.js} +2 -2
- package/dist/dictionaries/orders.d.ts +19 -0
- package/dist/{main-aa47b0fe.js → main-fdd6500d.js} +3629 -3334
- package/dist/main.d.ts +4 -0
- package/dist/main.js +86 -77
- package/dist/{overrides-000f7185.js → overrides-b5181bd5.js} +1 -1
- package/dist/ui/atoms/Progress.d.ts +21 -0
- package/dist/ui/composite/ActionButtons.d.ts +13 -7
- package/dist/ui/resources/ListItemOrder.d.ts +7 -0
- package/dist/ui/resources/OrderSummary.d.ts +13 -0
- package/dist/utils/tracking.d.ts +2 -2
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export { Legend } from './ui/atoms/Legend';
|
|
|
28
28
|
export { Overlay } from './ui/atoms/Overlay';
|
|
29
29
|
export { PageHeading } from './ui/atoms/PageHeading';
|
|
30
30
|
export { Pagination } from './ui/atoms/Pagination';
|
|
31
|
+
export { Progress } from './ui/atoms/Progress';
|
|
31
32
|
export { RadialProgress } from './ui/atoms/RadialProgress';
|
|
32
33
|
export { Skeleton } from './ui/atoms/Skeleton';
|
|
33
34
|
export { SkeletonTemplate, withSkeletonTemplate } from './ui/atoms/SkeletonTemplate';
|
|
@@ -38,6 +39,7 @@ export { Tab, Tabs } from './ui/atoms/Tabs';
|
|
|
38
39
|
export { Text } from './ui/atoms/Text';
|
|
39
40
|
export { DropdownMenu, DropdownMenuDivider, DropdownMenuItem } from './ui/atoms/dropdown';
|
|
40
41
|
export { Td, Th, Tr } from './ui/atoms/tables';
|
|
42
|
+
export { ActionButtons } from './ui/composite/ActionButtons';
|
|
41
43
|
export { CardDialog } from './ui/composite/CardDialog';
|
|
42
44
|
export { ContextMenu } from './ui/composite/ContextMenu';
|
|
43
45
|
export { PageError } from './ui/composite/PageError';
|
|
@@ -67,9 +69,11 @@ export { List } from './ui/lists/List';
|
|
|
67
69
|
export { ListDetails } from './ui/lists/ListDetails';
|
|
68
70
|
export { ListDetailsItem } from './ui/lists/ListDetailsItem';
|
|
69
71
|
export { ListItem } from './ui/lists/ListItem';
|
|
72
|
+
export { ListItemOrder } from './ui/resources/ListItemOrder';
|
|
70
73
|
export { OrderSummary } from './ui/resources/OrderSummary';
|
|
71
74
|
export { RelationshipSelector } from './ui/resources/RelationshipSelector';
|
|
72
75
|
export { ResourceList } from './ui/resources/ResourceList';
|
|
73
76
|
export { ShipmentParcels } from './ui/resources/ShipmentParcels';
|
|
74
77
|
export { Table } from './ui/tables/Table';
|
|
75
78
|
export { TableData } from './ui/tables/TableData';
|
|
79
|
+
export { getOrderDisplayStatus, getOrderFulfillmentStatusName, getOrderPaymentStatusName, getOrderStatusName, getOrderTransactionPastTense, getOrderTriggerAttributeName } from './dictionaries/orders';
|
package/dist/main.js
CHANGED
|
@@ -1,94 +1,103 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as o, ax as n, $ as i, a0 as l, a1 as u, a2 as d, a3 as g, a4 as p, a5 as m, ay as b, a6 as S, az as T, a7 as D, T as I, ar as c, as as y, at as C, a8 as P, W as k, a9 as B, aa as L, ab as O, aG as v, aH as A, aI as f, aK as R, aL as N, aM as h, aN as x, aO as F, aP as w, aQ as M, aU as E, aV as V, aW as J, aX as H, ac as G, a_ as K, a$ as Q, b0 as U, b1 as W, b2 as X, Z as Y, b3 as Z, ad as _, aA as $, ae as j, aB as q, aC as z, af as aa, ag as ea, ah as sa, aY as ta, b4 as ra, aD as oa, b5 as na, aE as ia, b6 as la, ai as ua, aj as da, al as ga, am as pa, an as ma, ao as ba, b7 as Sa, b8 as Ta, ap as Da, au as Ia, aq as ca, av as ya, aF as Ca, aZ as Pa, X as ka, aw as Ba, N as La, aR as Oa, aJ as va, J as Aa, O as fa, Q as Ra, aS as Na, K as ha, L as xa, b9 as Fa, ba as wa, bb as Ma, bc as Ea, bd as Va, be as Ja, aT as Ha, M as Ga, V as Ka, U as Qa, R as Ua, S as Wa, Y as Xa, ak as Ya } from "./main-fdd6500d.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
import "@commercelayer/sdk";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
n as
|
|
8
|
-
i as
|
|
9
|
-
l as
|
|
10
|
-
u as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
m as
|
|
6
|
+
o as A,
|
|
7
|
+
n as ActionButtons,
|
|
8
|
+
i as Avatar,
|
|
9
|
+
l as AvatarLetter,
|
|
10
|
+
u as Badge,
|
|
11
|
+
d as BlockCode,
|
|
12
|
+
g as Button,
|
|
13
|
+
p as ButtonFilter,
|
|
14
|
+
m as Card,
|
|
15
|
+
b as CardDialog,
|
|
15
16
|
S as Container,
|
|
16
17
|
T as ContextMenu,
|
|
17
18
|
D as CopyToClipboard,
|
|
18
19
|
I as CoreSdkProvider,
|
|
19
20
|
c as DropdownMenu,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
y as DropdownMenuDivider,
|
|
22
|
+
C as DropdownMenuItem,
|
|
23
|
+
P as EmptyState,
|
|
23
24
|
k as ErrorBoundary,
|
|
24
25
|
B as Grid,
|
|
25
26
|
L as Hint,
|
|
26
|
-
|
|
27
|
+
O as Icon,
|
|
27
28
|
v as Input,
|
|
28
|
-
|
|
29
|
+
A as InputCheckbox,
|
|
29
30
|
f as InputCurrency,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
R as InputDate,
|
|
32
|
+
N as InputDateRange,
|
|
33
|
+
h as InputFeedback,
|
|
34
|
+
x as InputFile,
|
|
34
35
|
F as InputJson,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
sa as
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
oa as
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
Sa as
|
|
70
|
-
Ta as
|
|
71
|
-
Da as
|
|
72
|
-
Ia as
|
|
73
|
-
ca as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
ka as
|
|
78
|
-
Ba as
|
|
79
|
-
La as
|
|
80
|
-
|
|
81
|
-
va as
|
|
36
|
+
w as InputReadonly,
|
|
37
|
+
M as InputSelect,
|
|
38
|
+
E as InputTextArea,
|
|
39
|
+
V as InputToggleBox,
|
|
40
|
+
J as InputToggleListBox,
|
|
41
|
+
H as Label,
|
|
42
|
+
G as Legend,
|
|
43
|
+
K as List,
|
|
44
|
+
Q as ListDetails,
|
|
45
|
+
U as ListDetailsItem,
|
|
46
|
+
W as ListItem,
|
|
47
|
+
X as ListItemOrder,
|
|
48
|
+
Y as MetaTags,
|
|
49
|
+
Z as OrderSummary,
|
|
50
|
+
_ as Overlay,
|
|
51
|
+
$ as PageError,
|
|
52
|
+
j as PageHeading,
|
|
53
|
+
q as PageLayout,
|
|
54
|
+
z as PageSkeleton,
|
|
55
|
+
aa as Pagination,
|
|
56
|
+
ea as Progress,
|
|
57
|
+
sa as RadialProgress,
|
|
58
|
+
ta as RadioButtons,
|
|
59
|
+
ra as RelationshipSelector,
|
|
60
|
+
oa as Report,
|
|
61
|
+
na as ResourceList,
|
|
62
|
+
ia as SearchBar,
|
|
63
|
+
la as ShipmentParcels,
|
|
64
|
+
ua as Skeleton,
|
|
65
|
+
da as SkeletonTemplate,
|
|
66
|
+
ga as Spacer,
|
|
67
|
+
pa as Stack,
|
|
68
|
+
ma as StatusDot,
|
|
69
|
+
ba as Tab,
|
|
70
|
+
Sa as Table,
|
|
71
|
+
Ta as TableData,
|
|
72
|
+
Da as Tabs,
|
|
73
|
+
Ia as Td,
|
|
74
|
+
ca as Text,
|
|
75
|
+
ya as Th,
|
|
76
|
+
Ca as Timeline,
|
|
77
|
+
Pa as ToggleButtons,
|
|
78
|
+
ka as TokenProvider,
|
|
79
|
+
Ba as Tr,
|
|
80
|
+
La as downloadJsonAsFile,
|
|
81
|
+
Oa as flatSelectValues,
|
|
82
|
+
va as formatCentsToCurrency,
|
|
83
|
+
Aa as formatDate,
|
|
84
|
+
fa as formatDisplayName,
|
|
82
85
|
Ra as formatResourceName,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
wa as
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
Na as getDefaultValueFromFlatten,
|
|
87
|
+
ha as getIsoDateAtDayEdge,
|
|
88
|
+
xa as getIsoDateAtDaysBefore,
|
|
89
|
+
Fa as getOrderDisplayStatus,
|
|
90
|
+
wa as getOrderFulfillmentStatusName,
|
|
91
|
+
Ma as getOrderPaymentStatusName,
|
|
92
|
+
Ea as getOrderStatusName,
|
|
93
|
+
Va as getOrderTransactionPastTense,
|
|
94
|
+
Ja as getOrderTriggerAttributeName,
|
|
95
|
+
Ha as isSingleValueSelected,
|
|
96
|
+
Ga as timeSeparator,
|
|
97
|
+
Ka as useCoreApi,
|
|
98
|
+
Qa as useCoreSdkProvider,
|
|
99
|
+
Ua as useDelayShow,
|
|
100
|
+
Wa as useOverlayNavigation,
|
|
101
|
+
Xa as useTokenProvider,
|
|
102
|
+
Ya as withSkeletonTemplate
|
|
94
103
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as V from "react";
|
|
2
2
|
import fe, { useLayoutEffect as yn, createContext as Et, forwardRef as Cr, useContext as Te, createElement as pe, Fragment as Ne, useRef as ue, useState as me, useMemo as Ce, useCallback as Y, Component as Ar, useEffect as En } from "react";
|
|
3
|
-
import { H as yr } from "./main-
|
|
3
|
+
import { H as yr } from "./main-fdd6500d.js";
|
|
4
4
|
import { createPortal as Er } from "react-dom";
|
|
5
5
|
var Ue = {}, xr = {
|
|
6
6
|
get exports() {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface ProgressProps {
|
|
2
|
+
/**
|
|
3
|
+
* This attribute describes how much work the task indicated by the `progress` element requires.
|
|
4
|
+
* The `max` attribute, if present, must have a value greater than `0` and be a valid floating point number.
|
|
5
|
+
* @default 1
|
|
6
|
+
*/
|
|
7
|
+
max?: number;
|
|
8
|
+
/**
|
|
9
|
+
* This attribute specifies how much of the task that has been completed.
|
|
10
|
+
* It must be a valid floating point number between `0` and `max`.
|
|
11
|
+
* If there is no `value` attribute, the progress bar is indeterminate;
|
|
12
|
+
* this indicates that an activity is ongoing with no indication of how long it is expected to take.
|
|
13
|
+
*/
|
|
14
|
+
value?: number;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
declare function Progress({ max, value, children }: ProgressProps): JSX.Element;
|
|
18
|
+
declare namespace Progress {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
export { Progress };
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { type ButtonVariant } from '../atoms/Button';
|
|
2
2
|
import { type MouseEventHandler } from 'react';
|
|
3
|
-
interface
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export interface ActionButtonsProps {
|
|
4
|
+
actions: Array<{
|
|
5
|
+
label: string;
|
|
6
|
+
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
variant?: ButtonVariant;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}>;
|
|
8
10
|
}
|
|
9
11
|
export declare const ActionButtons: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
10
|
-
actions:
|
|
12
|
+
actions: Array<{
|
|
13
|
+
label: string;
|
|
14
|
+
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
15
|
+
variant?: ButtonVariant;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}>;
|
|
11
18
|
delayMs?: number | undefined;
|
|
12
19
|
isLoading?: boolean | undefined;
|
|
13
20
|
}>;
|
|
14
|
-
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Order } from '@commercelayer/sdk';
|
|
2
|
+
export declare const ListItemOrder: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
3
|
+
order: Order;
|
|
4
|
+
tag?: "a" | "div" | undefined;
|
|
5
|
+
delayMs?: number | undefined;
|
|
6
|
+
isLoading?: boolean | undefined;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Order } from '@commercelayer/sdk';
|
|
2
|
+
declare const OrderSummary: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
|
|
3
|
+
order: Order;
|
|
4
|
+
footerActions?: {
|
|
5
|
+
label: string;
|
|
6
|
+
onClick: import("react").MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
variant?: import("../atoms/Button").ButtonVariant | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
}[] | undefined;
|
|
10
|
+
delayMs?: number | undefined;
|
|
11
|
+
isLoading?: boolean | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export { OrderSummary };
|
package/dist/utils/tracking.d.ts
CHANGED
|
@@ -58,9 +58,9 @@ declare const trackingDetailSchema: z.ZodObject<{
|
|
|
58
58
|
carrier_code: z.ZodNullable<z.ZodString>;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
object: "TrackingDetail";
|
|
61
|
+
status: string | null;
|
|
61
62
|
source: string | null;
|
|
62
63
|
description: string | null;
|
|
63
|
-
status: string | null;
|
|
64
64
|
message: string | null;
|
|
65
65
|
status_detail: string | null;
|
|
66
66
|
datetime: string | null;
|
|
@@ -74,9 +74,9 @@ declare const trackingDetailSchema: z.ZodObject<{
|
|
|
74
74
|
carrier_code: string | null;
|
|
75
75
|
}, {
|
|
76
76
|
object: "TrackingDetail";
|
|
77
|
+
status: string | null;
|
|
77
78
|
source: string | null;
|
|
78
79
|
description: string | null;
|
|
79
|
-
status: string | null;
|
|
80
80
|
message: string | null;
|
|
81
81
|
status_detail: string | null;
|
|
82
82
|
datetime: string | null;
|