@commercelayer/app-elements 0.0.62 → 0.0.64
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-a3c36998.js → Async-554d9dca.js} +3 -3
- package/dist/{InputDateComponent-cfeab38d.js → InputDateComponent-2629a1f2.js} +2 -2
- package/dist/{Select-6ab4a5f9.js → Select-eed4dfa7.js} +3 -3
- package/dist/{main-20708d88.js → main-3a7d5b89.js} +2386 -2362
- package/dist/main.js +1 -1
- package/dist/{overrides-7d4dd01a.js → overrides-29a940c6.js} +65 -65
- package/dist/ui/atoms/Container.d.ts +7 -5
- package/dist/ui/atoms/Tag.d.ts +3 -2
- package/dist/ui/atoms/Text.d.ts +1 -1
- package/dist/ui/composite/PageLayout.d.ts +4 -3
- package/dist/ui/lists/ListDetailsItem.d.ts +4 -4
- package/dist/ui/resources/ResourceTags.d.ts +1 -0
- package/dist/{unsupportedIterableToArray-7a1e16b1.js → unsupportedIterableToArray-15d32bef.js} +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ag as o, aS as n, ah as i, ai as l, aj as u, ak as b, al as g, am as d, an as p, aT as m, ao as c, aU as S, ap as T, a9 as I, aM as D, aN as k, aO as y, aq as C, ac as P, ar as h, as as B, at as R, au as A, a$ as v, b0 as O, b1 as L, b2 as f, b4 as F, b5 as x, b6 as N, b7 as w, b8 as M, b9 as V, ba as E, bb as G, bc as H, bi as J, bj as j, bk as q, bl as z, bm as Q, av as U, bp as W, bq as X, br as Y, bs as Z, bt as $, bu as K, ad as _, bv as aa, bw as ea, aw as sa, aV as ta, ax as ra, aW as oa, aX as na, ay as ia, az as la, aA as ua, bn as ba, bx as ga, aY as da, by as pa, bz as ma, aZ as ca, bA as Sa, aB as Ta, aC as Ia, aD as Da, aF as ka, aG as ya, aH as Ca, aI as Pa, bB as ha, bC as Ba, aJ as Ra, aK as Aa, aP as va, aL as Oa, aQ as La, a_ as fa, bo as Fa, ae as xa, aR as Na, W as wa, V as Ma, bd as Va, b3 as Ea, R as Ga, X as Ha, Y as Ja, Z as ja, be as qa, S as za, T as Qa, bD as Ua, bE as Wa, bF as Xa, bG as Ya, bH as Za, bI as $a, $ as Ka, a0 as _a, a1 as ae, a2 as ee, M as se, a3 as te, a4 as re, O as oe, bf as ne, bg as ie, bh as le, N as ue, Q as be, U as ge, a5 as de, aa as pe, ab as me, a6 as ce, a7 as Se, a8 as Te, af as Ie, aE as De } from "./main-
|
|
1
|
+
import { ag as o, aS as n, ah as i, ai as l, aj as u, ak as b, al as g, am as d, an as p, aT as m, ao as c, aU as S, ap as T, a9 as I, aM as D, aN as k, aO as y, aq as C, ac as P, ar as h, as as B, at as R, au as A, a$ as v, b0 as O, b1 as L, b2 as f, b4 as F, b5 as x, b6 as N, b7 as w, b8 as M, b9 as V, ba as E, bb as G, bc as H, bi as J, bj as j, bk as q, bl as z, bm as Q, av as U, bp as W, bq as X, br as Y, bs as Z, bt as $, bu as K, ad as _, bv as aa, bw as ea, aw as sa, aV as ta, ax as ra, aW as oa, aX as na, ay as ia, az as la, aA as ua, bn as ba, bx as ga, aY as da, by as pa, bz as ma, aZ as ca, bA as Sa, aB as Ta, aC as Ia, aD as Da, aF as ka, aG as ya, aH as Ca, aI as Pa, bB as ha, bC as Ba, aJ as Ra, aK as Aa, aP as va, aL as Oa, aQ as La, a_ as fa, bo as Fa, ae as xa, aR as Na, W as wa, V as Ma, bd as Va, b3 as Ea, R as Ga, X as Ha, Y as Ja, Z as ja, be as qa, S as za, T as Qa, bD as Ua, bE as Wa, bF as Xa, bG as Ya, bH as Za, bI as $a, $ as Ka, a0 as _a, a1 as ae, a2 as ee, M as se, a3 as te, a4 as re, O as oe, bf as ne, bg as ie, bh as le, N as ue, Q as be, U as ge, a5 as de, aa as pe, ab as me, a6 as ce, a7 as Se, a8 as Te, af as Ie, aE as De } from "./main-3a7d5b89.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
import "@commercelayer/sdk";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as Se, g as gr, _ as In, a as br, b as pr, c as fr, f as mr } from "./unsupportedIterableToArray-
|
|
1
|
+
import { d as Se, g as gr, _ as In, a as br, b as pr, c as fr, f as mr } from "./unsupportedIterableToArray-15d32bef.js";
|
|
2
2
|
import * as B from "react";
|
|
3
|
-
import { useLayoutEffect as vn, forwardRef as Ir, useContext as Te, createElement as me, Fragment as Be, createContext as Ct, useRef as
|
|
4
|
-
import { _ as hr, H as
|
|
3
|
+
import { useLayoutEffect as vn, forwardRef as Ir, useContext as Te, createElement as me, Fragment as Be, createContext as Ct, useRef as se, useState as Ie, useMemo as Ce, useCallback as Y, Component as vr, useEffect as hn } from "react";
|
|
4
|
+
import { _ as hr, H as te, K as Cn } from "./main-3a7d5b89.js";
|
|
5
5
|
import { createPortal as Cr } from "react-dom";
|
|
6
6
|
function V() {
|
|
7
7
|
return V = Object.assign ? Object.assign.bind() : function(t) {
|
|
@@ -116,7 +116,7 @@ function O(t, e) {
|
|
|
116
116
|
function Ne(t, e, r) {
|
|
117
117
|
return t.slice(e, r);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function oe(t) {
|
|
120
120
|
return t.length;
|
|
121
121
|
}
|
|
122
122
|
function Et(t) {
|
|
@@ -186,7 +186,7 @@ function we(t) {
|
|
|
186
186
|
return 0;
|
|
187
187
|
}
|
|
188
188
|
function Gn(t) {
|
|
189
|
-
return tt = xe = 1, En =
|
|
189
|
+
return tt = xe = 1, En = oe(Ee = t), J = 0, [];
|
|
190
190
|
}
|
|
191
191
|
function Fn(t) {
|
|
192
192
|
return Ee = "", t;
|
|
@@ -269,7 +269,7 @@ function Je(t, e, r, i, n, a, o, u, s) {
|
|
|
269
269
|
}
|
|
270
270
|
break;
|
|
271
271
|
case 123 * m:
|
|
272
|
-
u[c++] =
|
|
272
|
+
u[c++] = oe(E) * f;
|
|
273
273
|
case 125 * m:
|
|
274
274
|
case 59:
|
|
275
275
|
case 0:
|
|
@@ -278,7 +278,7 @@ function Je(t, e, r, i, n, a, o, u, s) {
|
|
|
278
278
|
case 125:
|
|
279
279
|
I = 0;
|
|
280
280
|
case 59 + l:
|
|
281
|
-
v > 0 &&
|
|
281
|
+
v > 0 && oe(E) - d && De(v > 32 ? Xt(E + ";", i, r, d - 1) : Xt(W(E, " ", "") + ";", i, r, d - 2), s);
|
|
282
282
|
break;
|
|
283
283
|
case 59:
|
|
284
284
|
E += ";";
|
|
@@ -300,7 +300,7 @@ function Je(t, e, r, i, n, a, o, u, s) {
|
|
|
300
300
|
c = l = v = 0, m = f = 1, h = E = "", d = o;
|
|
301
301
|
break;
|
|
302
302
|
case 58:
|
|
303
|
-
d = 1 +
|
|
303
|
+
d = 1 + oe(E), v = p;
|
|
304
304
|
default:
|
|
305
305
|
if (m < 1) {
|
|
306
306
|
if (A == 123)
|
|
@@ -313,13 +313,13 @@ function Je(t, e, r, i, n, a, o, u, s) {
|
|
|
313
313
|
f = l > 0 ? 1 : (E += "\f", -1);
|
|
314
314
|
break;
|
|
315
315
|
case 44:
|
|
316
|
-
u[c++] = (
|
|
316
|
+
u[c++] = (oe(E) - 1) * f, f = 1;
|
|
317
317
|
break;
|
|
318
318
|
case 64:
|
|
319
|
-
le() === 45 && (E += ze(Q())), g = le(), l = d =
|
|
319
|
+
le() === 45 && (E += ze(Q())), g = le(), l = d = oe(h = E += Dr(Ye())), A++;
|
|
320
320
|
break;
|
|
321
321
|
case 45:
|
|
322
|
-
p === 45 &&
|
|
322
|
+
p === 45 && oe(E) == 2 && (m = 0);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
return a;
|
|
@@ -353,7 +353,7 @@ function Hr(t, e, r, i) {
|
|
|
353
353
|
case yt:
|
|
354
354
|
t.value = t.props.join(",");
|
|
355
355
|
}
|
|
356
|
-
return
|
|
356
|
+
return oe(r = Ae(t.children, i)) ? t.return = t.value + "{" + r + "}" : "";
|
|
357
357
|
}
|
|
358
358
|
function Mr(t) {
|
|
359
359
|
var e = Et(t);
|
|
@@ -538,7 +538,7 @@ function Sn(t, e) {
|
|
|
538
538
|
case 5789:
|
|
539
539
|
case 5021:
|
|
540
540
|
case 4765:
|
|
541
|
-
if (
|
|
541
|
+
if (oe(t) - 1 - e > 6)
|
|
542
542
|
switch (O(t, e + 1)) {
|
|
543
543
|
case 109:
|
|
544
544
|
if (O(t, e + 4) !== 45)
|
|
@@ -553,7 +553,7 @@ function Sn(t, e) {
|
|
|
553
553
|
if (O(t, e + 1) !== 115)
|
|
554
554
|
break;
|
|
555
555
|
case 6444:
|
|
556
|
-
switch (O(t,
|
|
556
|
+
switch (O(t, oe(t) - 3 - (~pt(t, "!important") && 10))) {
|
|
557
557
|
case 107:
|
|
558
558
|
return W(t, ":", ":" + N) + t;
|
|
559
559
|
case 101:
|
|
@@ -794,10 +794,10 @@ function ai() {
|
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
var b = s, y = c, E = u, S = o, T = e, z = l, _ = i, H = p, $ = v, X = r, P = a, j = n, K = d, U = !1;
|
|
797
|
-
function
|
|
798
|
-
return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
797
|
+
function ie(x) {
|
|
798
|
+
return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ne(x) || C(x) === s;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function ne(x) {
|
|
801
801
|
return C(x) === c;
|
|
802
802
|
}
|
|
803
803
|
function de(x) {
|
|
@@ -809,10 +809,10 @@ function ai() {
|
|
|
809
809
|
function M(x) {
|
|
810
810
|
return typeof x == "object" && x !== null && x.$$typeof === e;
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function ae(x) {
|
|
813
813
|
return C(x) === l;
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function ue(x) {
|
|
816
816
|
return C(x) === i;
|
|
817
817
|
}
|
|
818
818
|
function q(x) {
|
|
@@ -833,7 +833,7 @@ function ai() {
|
|
|
833
833
|
function Xe(x) {
|
|
834
834
|
return C(x) === d;
|
|
835
835
|
}
|
|
836
|
-
R.AsyncMode = b, R.ConcurrentMode = y, R.ContextConsumer = E, R.ContextProvider = S, R.Element = T, R.ForwardRef = z, R.Fragment = _, R.Lazy = H, R.Memo = $, R.Portal = X, R.Profiler = P, R.StrictMode = j, R.Suspense = K, R.isAsyncMode =
|
|
836
|
+
R.AsyncMode = b, R.ConcurrentMode = y, R.ContextConsumer = E, R.ContextProvider = S, R.Element = T, R.ForwardRef = z, R.Fragment = _, R.Lazy = H, R.Memo = $, R.Portal = X, R.Profiler = P, R.StrictMode = j, R.Suspense = K, R.isAsyncMode = ie, R.isConcurrentMode = ne, R.isContextConsumer = de, R.isContextProvider = L, R.isElement = M, R.isForwardRef = ae, R.isFragment = ue, R.isLazy = q, R.isMemo = ee, R.isPortal = pe, R.isProfiler = ve, R.isStrictMode = ut, R.isSuspense = Xe, R.isValidElementType = h, R.typeOf = C;
|
|
837
837
|
}()), R;
|
|
838
838
|
}
|
|
839
839
|
var Ht;
|
|
@@ -966,10 +966,10 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
966
966
|
case "animationName":
|
|
967
967
|
if (typeof r == "string")
|
|
968
968
|
return r.replace(Rn, function(i, n, a) {
|
|
969
|
-
return
|
|
969
|
+
return re = {
|
|
970
970
|
name: n,
|
|
971
971
|
styles: a,
|
|
972
|
-
next:
|
|
972
|
+
next: re
|
|
973
973
|
}, n;
|
|
974
974
|
});
|
|
975
975
|
}
|
|
@@ -1000,19 +1000,19 @@ function Re(t, e, r) {
|
|
|
1000
1000
|
return "";
|
|
1001
1001
|
case "object": {
|
|
1002
1002
|
if (r.anim === 1)
|
|
1003
|
-
return
|
|
1003
|
+
return re = {
|
|
1004
1004
|
name: r.name,
|
|
1005
1005
|
styles: r.styles,
|
|
1006
|
-
next:
|
|
1006
|
+
next: re
|
|
1007
1007
|
}, r.name;
|
|
1008
1008
|
if (r.styles !== void 0) {
|
|
1009
1009
|
var i = r.next;
|
|
1010
1010
|
if (i !== void 0)
|
|
1011
1011
|
for (; i !== void 0; )
|
|
1012
|
-
|
|
1012
|
+
re = {
|
|
1013
1013
|
name: i.name,
|
|
1014
1014
|
styles: i.styles,
|
|
1015
|
-
next:
|
|
1015
|
+
next: re
|
|
1016
1016
|
}, i = i.next;
|
|
1017
1017
|
var n = r.styles + ";";
|
|
1018
1018
|
return process.env.NODE_ENV !== "production" && r.map !== void 0 && (n += r.map), n;
|
|
@@ -1021,8 +1021,8 @@ function Re(t, e, r) {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
case "function": {
|
|
1023
1023
|
if (t !== void 0) {
|
|
1024
|
-
var a =
|
|
1025
|
-
return
|
|
1024
|
+
var a = re, o = r(t);
|
|
1025
|
+
return re = a, Re(t, e, o);
|
|
1026
1026
|
} else
|
|
1027
1027
|
process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
|
|
1028
1028
|
break;
|
|
@@ -1081,11 +1081,11 @@ function Ci(t, e, r) {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
var zt = /label:\s*([^\s;\n{]+)\s*(;|$)/g, Tn;
|
|
1083
1083
|
process.env.NODE_ENV !== "production" && (Tn = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
|
|
1084
|
-
var
|
|
1084
|
+
var re, We = function(e, r, i) {
|
|
1085
1085
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1086
1086
|
return e[0];
|
|
1087
1087
|
var n = !0, a = "";
|
|
1088
|
-
|
|
1088
|
+
re = void 0;
|
|
1089
1089
|
var o = e[0];
|
|
1090
1090
|
o == null || o.raw === void 0 ? (n = !1, a += Re(i, r, o)) : (process.env.NODE_ENV !== "production" && o[0] === void 0 && console.error(Mt), a += o[0]);
|
|
1091
1091
|
for (var u = 1; u < e.length; u++)
|
|
@@ -1102,14 +1102,14 @@ var ne, We = function(e, r, i) {
|
|
|
1102
1102
|
name: d,
|
|
1103
1103
|
styles: a,
|
|
1104
1104
|
map: s,
|
|
1105
|
-
next:
|
|
1105
|
+
next: re,
|
|
1106
1106
|
toString: function() {
|
|
1107
1107
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
1108
1108
|
}
|
|
1109
1109
|
} : {
|
|
1110
1110
|
name: d,
|
|
1111
1111
|
styles: a,
|
|
1112
|
-
next:
|
|
1112
|
+
next: re
|
|
1113
1113
|
};
|
|
1114
1114
|
}, Ai = function(e) {
|
|
1115
1115
|
return e();
|
|
@@ -1323,7 +1323,7 @@ var Si = {
|
|
|
1323
1323
|
// means it will be turned into a className prop
|
|
1324
1324
|
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
|
|
1325
1325
|
(t.className || t.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), Ut = !0);
|
|
1326
|
-
var r = t.styles, i = We([r], void 0, Te(rt)), n =
|
|
1326
|
+
var r = t.styles, i = We([r], void 0, Te(rt)), n = se();
|
|
1327
1327
|
return Jt(function() {
|
|
1328
1328
|
var a = e.key + "-global", o = new e.sheet.constructor({
|
|
1329
1329
|
key: a,
|
|
@@ -1841,7 +1841,7 @@ var Un = function(e) {
|
|
|
1841
1841
|
marginTop: u.menuGutter
|
|
1842
1842
|
});
|
|
1843
1843
|
}, Qn = /* @__PURE__ */ Ct(null), pa = function(e) {
|
|
1844
|
-
var r = e.children, i = e.minMenuHeight, n = e.maxMenuHeight, a = e.menuPlacement, o = e.menuPosition, u = e.menuShouldScrollIntoView, s = e.theme, c = Te(Qn) || {}, l = c.setPortalPlacement, d =
|
|
1844
|
+
var r = e.children, i = e.minMenuHeight, n = e.maxMenuHeight, a = e.menuPlacement, o = e.menuPosition, u = e.menuShouldScrollIntoView, s = e.theme, c = Te(Qn) || {}, l = c.setPortalPlacement, d = se(null), g = Ie(n), v = ge(g, 2), p = v[0], m = v[1], I = Ie(null), f = ge(I, 2), A = f[0], h = f[1], C = s.spacing.controlHeight;
|
|
1845
1845
|
return vt(function() {
|
|
1846
1846
|
var b = d.current;
|
|
1847
1847
|
if (b) {
|
|
@@ -1926,7 +1926,7 @@ var Un = function(e) {
|
|
|
1926
1926
|
zIndex: 1
|
|
1927
1927
|
};
|
|
1928
1928
|
}, Ea = function(e) {
|
|
1929
|
-
var r = e.appendTo, i = e.children, n = e.controlElement, a = e.innerProps, o = e.menuPlacement, u = e.menuPosition, s =
|
|
1929
|
+
var r = e.appendTo, i = e.children, n = e.controlElement, a = e.innerProps, o = e.menuPlacement, u = e.menuPosition, s = se(null), c = se(null), l = Ie(Un(o)), d = ge(l, 2), g = d[0], v = d[1], p = Ce(function() {
|
|
1930
1930
|
return {
|
|
1931
1931
|
setPortalPlacement: v
|
|
1932
1932
|
};
|
|
@@ -2536,16 +2536,16 @@ var Vu = process.env.NODE_ENV === "production" ? {
|
|
|
2536
2536
|
}, [l]), E = Ce(function() {
|
|
2537
2537
|
var X = "";
|
|
2538
2538
|
if (r && y.onChange) {
|
|
2539
|
-
var P = r.option, j = r.options, K = r.removedValue, U = r.removedValues,
|
|
2539
|
+
var P = r.option, j = r.options, K = r.removedValue, U = r.removedValues, ie = r.value, ne = function(ee) {
|
|
2540
2540
|
return Array.isArray(ee) ? null : ee;
|
|
2541
|
-
}, de = K || P ||
|
|
2541
|
+
}, de = K || P || ne(ie), L = de ? d(de) : "", M = j || U || void 0, ae = M ? M.map(d) : [], ue = G({
|
|
2542
2542
|
// multiSelected items are usually items that have already been selected
|
|
2543
2543
|
// or set by the user as a default value so we assume they are not disabled
|
|
2544
2544
|
isDisabled: de && p(de, u),
|
|
2545
2545
|
label: L,
|
|
2546
|
-
labels:
|
|
2546
|
+
labels: ae
|
|
2547
2547
|
}, r);
|
|
2548
|
-
X = y.onChange(
|
|
2548
|
+
X = y.onChange(ue);
|
|
2549
2549
|
}
|
|
2550
2550
|
return X;
|
|
2551
2551
|
}, [r, y, p, u, d]), S = Ce(function() {
|
|
@@ -2913,7 +2913,7 @@ var Du = function(e) {
|
|
|
2913
2913
|
e.preventDefault(), e.stopPropagation();
|
|
2914
2914
|
};
|
|
2915
2915
|
function Lu(t) {
|
|
2916
|
-
var e = t.isEnabled, r = t.onBottomArrive, i = t.onBottomLeave, n = t.onTopArrive, a = t.onTopLeave, o =
|
|
2916
|
+
var e = t.isEnabled, r = t.onBottomArrive, i = t.onBottomLeave, n = t.onTopArrive, a = t.onTopLeave, o = se(!1), u = se(!1), s = se(0), c = se(null), l = Y(function(I, f) {
|
|
2917
2917
|
if (c.current !== null) {
|
|
2918
2918
|
var A = c.current, h = A.scrollTop, C = A.scrollHeight, b = A.clientHeight, y = c.current, E = f > 0, S = C - b - h, T = !1;
|
|
2919
2919
|
S > f && o.current && (i && i(I), o.current = !1), E && u.current && (a && a(I), u.current = !1), E && f > S ? (r && !o.current && r(I), y.scrollTop = C, T = !0, o.current = !0) : !E && -f > h && (n && !u.current && n(I), y.scrollTop = 0, T = !0, u.current = !0), T && Du(I);
|
|
@@ -2971,7 +2971,7 @@ var pn = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
2971
2971
|
passive: !1
|
|
2972
2972
|
};
|
|
2973
2973
|
function Ou(t) {
|
|
2974
|
-
var e = t.isEnabled, r = t.accountForScrollbars, i = r === void 0 ? !0 : r, n =
|
|
2974
|
+
var e = t.isEnabled, r = t.accountForScrollbars, i = r === void 0 ? !0 : r, n = se({}), a = se(null), o = Y(function(s) {
|
|
2975
2975
|
if (pn) {
|
|
2976
2976
|
var c = document.body, l = c && c.style;
|
|
2977
2977
|
if (i && sn.forEach(function(p) {
|
|
@@ -3940,12 +3940,12 @@ var dr = function(e) {
|
|
|
3940
3940
|
var n = this, a = this.getComponents(), o = a.Group, u = a.GroupHeading, s = a.Menu, c = a.MenuList, l = a.MenuPortal, d = a.LoadingMessage, g = a.NoOptionsMessage, v = a.Option, p = this.commonProps, m = this.state.focusedOption, I = this.props, f = I.captureMenuScroll, A = I.inputValue, h = I.isLoading, C = I.loadingMessage, b = I.minMenuHeight, y = I.maxMenuHeight, E = I.menuIsOpen, S = I.menuPlacement, T = I.menuPosition, z = I.menuPortalTarget, _ = I.menuShouldBlockScroll, H = I.menuShouldScrollIntoView, $ = I.noOptionsMessage, X = I.onMenuScrollToTop, P = I.onMenuScrollToBottom;
|
|
3941
3941
|
if (!E)
|
|
3942
3942
|
return null;
|
|
3943
|
-
var j = function(M,
|
|
3944
|
-
var
|
|
3943
|
+
var j = function(M, ae) {
|
|
3944
|
+
var ue = M.type, q = M.data, ee = M.isDisabled, pe = M.isSelected, ve = M.label, ut = M.value, Xe = m === q, x = ee ? void 0 : function() {
|
|
3945
3945
|
return n.onOptionHover(q);
|
|
3946
3946
|
}, Ge = ee ? void 0 : function() {
|
|
3947
3947
|
return n.selectOption(q);
|
|
3948
|
-
}, fe = "".concat(n.getElementId("option"), "-").concat(
|
|
3948
|
+
}, fe = "".concat(n.getElementId("option"), "-").concat(ae), Pe = {
|
|
3949
3949
|
id: fe,
|
|
3950
3950
|
onClick: Ge,
|
|
3951
3951
|
onMouseMove: x,
|
|
@@ -3959,7 +3959,7 @@ var dr = function(e) {
|
|
|
3959
3959
|
isSelected: pe,
|
|
3960
3960
|
key: fe,
|
|
3961
3961
|
label: ve,
|
|
3962
|
-
type:
|
|
3962
|
+
type: ue,
|
|
3963
3963
|
value: ut,
|
|
3964
3964
|
isFocused: Xe,
|
|
3965
3965
|
innerRef: Xe ? n.getFocusedOptionRef : void 0
|
|
@@ -3968,11 +3968,11 @@ var dr = function(e) {
|
|
|
3968
3968
|
if (this.hasOptions())
|
|
3969
3969
|
K = this.getCategorizedOptions().map(function(L) {
|
|
3970
3970
|
if (L.type === "group") {
|
|
3971
|
-
var M = L.data,
|
|
3971
|
+
var M = L.data, ae = L.options, ue = L.index, q = "".concat(n.getElementId("group"), "-").concat(ue), ee = "".concat(q, "-heading");
|
|
3972
3972
|
return /* @__PURE__ */ B.createElement(o, V({}, p, {
|
|
3973
3973
|
key: q,
|
|
3974
3974
|
data: M,
|
|
3975
|
-
options:
|
|
3975
|
+
options: ae,
|
|
3976
3976
|
Heading: u,
|
|
3977
3977
|
headingProps: {
|
|
3978
3978
|
id: ee,
|
|
@@ -3980,7 +3980,7 @@ var dr = function(e) {
|
|
|
3980
3980
|
},
|
|
3981
3981
|
label: n.formatGroupLabel(L.data)
|
|
3982
3982
|
}), L.options.map(function(pe) {
|
|
3983
|
-
return j(pe, "".concat(
|
|
3983
|
+
return j(pe, "".concat(ue, "-").concat(pe.index));
|
|
3984
3984
|
}));
|
|
3985
3985
|
} else if (L.type === "option")
|
|
3986
3986
|
return j(L, "".concat(L.index));
|
|
@@ -3993,22 +3993,22 @@ var dr = function(e) {
|
|
|
3993
3993
|
return null;
|
|
3994
3994
|
K = /* @__PURE__ */ B.createElement(d, p, U);
|
|
3995
3995
|
} else {
|
|
3996
|
-
var
|
|
3996
|
+
var ie = $({
|
|
3997
3997
|
inputValue: A
|
|
3998
3998
|
});
|
|
3999
|
-
if (
|
|
3999
|
+
if (ie === null)
|
|
4000
4000
|
return null;
|
|
4001
|
-
K = /* @__PURE__ */ B.createElement(g, p,
|
|
4001
|
+
K = /* @__PURE__ */ B.createElement(g, p, ie);
|
|
4002
4002
|
}
|
|
4003
|
-
var
|
|
4003
|
+
var ne = {
|
|
4004
4004
|
minMenuHeight: b,
|
|
4005
4005
|
maxMenuHeight: y,
|
|
4006
4006
|
menuPlacement: S,
|
|
4007
4007
|
menuPosition: T,
|
|
4008
4008
|
menuShouldScrollIntoView: H
|
|
4009
|
-
}, de = /* @__PURE__ */ B.createElement(pa, V({}, p,
|
|
4010
|
-
var M = L.ref,
|
|
4011
|
-
return /* @__PURE__ */ B.createElement(s, V({}, p,
|
|
4009
|
+
}, de = /* @__PURE__ */ B.createElement(pa, V({}, p, ne), function(L) {
|
|
4010
|
+
var M = L.ref, ae = L.placerProps, ue = ae.placement, q = ae.maxHeight;
|
|
4011
|
+
return /* @__PURE__ */ B.createElement(s, V({}, p, ne, {
|
|
4012
4012
|
innerRef: M,
|
|
4013
4013
|
innerProps: {
|
|
4014
4014
|
onMouseDown: n.onMenuMouseDown,
|
|
@@ -4016,7 +4016,7 @@ var dr = function(e) {
|
|
|
4016
4016
|
id: n.getElementId("listbox")
|
|
4017
4017
|
},
|
|
4018
4018
|
isLoading: h,
|
|
4019
|
-
placement:
|
|
4019
|
+
placement: ue
|
|
4020
4020
|
}), /* @__PURE__ */ B.createElement(Yu, {
|
|
4021
4021
|
captureEnabled: f,
|
|
4022
4022
|
onTopArrive: X,
|
|
@@ -4157,11 +4157,11 @@ var dr = function(e) {
|
|
|
4157
4157
|
lo.defaultProps = ao;
|
|
4158
4158
|
var go = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
4159
4159
|
function Ao(t) {
|
|
4160
|
-
var e = t.defaultInputValue, r = e === void 0 ? "" : e, i = t.defaultMenuIsOpen, n = i === void 0 ? !1 : i, a = t.defaultValue, o = a === void 0 ? null : a, u = t.inputValue, s = t.menuIsOpen, c = t.onChange, l = t.onInputChange, d = t.onMenuClose, g = t.onMenuOpen, v = t.value, p = be(t, go), m = Ie(u !== void 0 ? u : r), I = ge(m, 2), f = I[0], A = I[1], h = Ie(s !== void 0 ? s : n), C = ge(h, 2), b = C[0], y = C[1], E = Ie(v !== void 0 ? v : o), S = ge(E, 2), T = S[0], z = S[1], _ = Y(function(U,
|
|
4161
|
-
typeof c == "function" && c(U,
|
|
4162
|
-
}, [c]), H = Y(function(U,
|
|
4163
|
-
var
|
|
4164
|
-
typeof l == "function" && (
|
|
4160
|
+
var e = t.defaultInputValue, r = e === void 0 ? "" : e, i = t.defaultMenuIsOpen, n = i === void 0 ? !1 : i, a = t.defaultValue, o = a === void 0 ? null : a, u = t.inputValue, s = t.menuIsOpen, c = t.onChange, l = t.onInputChange, d = t.onMenuClose, g = t.onMenuOpen, v = t.value, p = be(t, go), m = Ie(u !== void 0 ? u : r), I = ge(m, 2), f = I[0], A = I[1], h = Ie(s !== void 0 ? s : n), C = ge(h, 2), b = C[0], y = C[1], E = Ie(v !== void 0 ? v : o), S = ge(E, 2), T = S[0], z = S[1], _ = Y(function(U, ie) {
|
|
4161
|
+
typeof c == "function" && c(U, ie), z(U);
|
|
4162
|
+
}, [c]), H = Y(function(U, ie) {
|
|
4163
|
+
var ne;
|
|
4164
|
+
typeof l == "function" && (ne = l(U, ie)), A(ne !== void 0 ? ne : U);
|
|
4165
4165
|
}, [l]), $ = Y(function() {
|
|
4166
4166
|
typeof g == "function" && g(), y(!0);
|
|
4167
4167
|
}, [g]), X = Y(function() {
|
|
@@ -4178,14 +4178,14 @@ function Ao(t) {
|
|
|
4178
4178
|
});
|
|
4179
4179
|
}
|
|
4180
4180
|
function bo(t) {
|
|
4181
|
-
return /* @__PURE__ */
|
|
4181
|
+
return t.isMulti ? /* @__PURE__ */ te.jsx(te.Fragment, {}) : /* @__PURE__ */ te.jsx(at.DropdownIndicator, { ...t, className: "p-0", children: /* @__PURE__ */ te.jsx("button", { type: "button", className: "px-2 cursor-pointer", children: /* @__PURE__ */ te.jsx(
|
|
4182
4182
|
"svg",
|
|
4183
4183
|
{
|
|
4184
4184
|
width: "16",
|
|
4185
4185
|
height: "14",
|
|
4186
4186
|
fill: "none",
|
|
4187
4187
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4188
|
-
children: /* @__PURE__ */
|
|
4188
|
+
children: /* @__PURE__ */ te.jsx(
|
|
4189
4189
|
"path",
|
|
4190
4190
|
{
|
|
4191
4191
|
fillRule: "evenodd",
|
|
@@ -4202,10 +4202,10 @@ function bo(t) {
|
|
|
4202
4202
|
) }) });
|
|
4203
4203
|
}
|
|
4204
4204
|
function po(t) {
|
|
4205
|
-
return /* @__PURE__ */
|
|
4205
|
+
return /* @__PURE__ */ te.jsx(at.ClearIndicator, { ...t, className: "p-0", children: /* @__PURE__ */ te.jsx("button", { type: "button", className: "px-2 cursor-pointer", children: /* @__PURE__ */ te.jsx(Cn, {}) }) });
|
|
4206
4206
|
}
|
|
4207
4207
|
function fo(t) {
|
|
4208
|
-
return /* @__PURE__ */
|
|
4208
|
+
return /* @__PURE__ */ te.jsx(at.MultiValueRemove, { ...t, children: /* @__PURE__ */ te.jsx("button", { type: "button", className: "cursor-pointer", children: /* @__PURE__ */ te.jsx(Cn, { weight: "bold" }) }) });
|
|
4209
4209
|
}
|
|
4210
4210
|
const yo = {
|
|
4211
4211
|
DropdownIndicator: bo,
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
interface
|
|
2
|
-
/**
|
|
3
|
-
* css class name
|
|
4
|
-
*/
|
|
5
|
-
className?: string;
|
|
1
|
+
export interface ContainerProps {
|
|
6
2
|
/**
|
|
7
3
|
* set min height as screen size. Default is `true`.
|
|
8
4
|
*/
|
|
9
5
|
minHeight?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface Props extends ContainerProps {
|
|
8
|
+
/**
|
|
9
|
+
* css class name
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
10
12
|
/**
|
|
11
13
|
* content to be rendered inside the container
|
|
12
14
|
*/
|
package/dist/ui/atoms/Tag.d.ts
CHANGED
|
@@ -16,7 +16,8 @@ export type TagProps = Props & (({
|
|
|
16
16
|
/**
|
|
17
17
|
* HTML tag to render
|
|
18
18
|
*/
|
|
19
|
-
tag: '
|
|
20
|
-
|
|
19
|
+
tag: 'button';
|
|
20
|
+
buttonStyle: 'anchor' | 'button';
|
|
21
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>));
|
|
21
22
|
declare const Tag: FC<TagProps>;
|
|
22
23
|
export { Tag };
|
package/dist/ui/atoms/Text.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
export type TextVariant = 'danger' | 'success' | 'primary' | 'warning' | 'info' | 'plain';
|
|
2
|
+
export type TextVariant = 'danger' | 'success' | 'primary' | 'warning' | 'info' | 'plain' | 'disabled';
|
|
3
3
|
export type TextSize = 'small' | 'regular' | 'large' | 'inherit';
|
|
4
4
|
export type TextWeight = 'regular' | 'medium' | 'semibold' | 'bold' | 'inherit';
|
|
5
5
|
export type TextAlignment = 'center' | 'left' | 'right' | 'inherit';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ContainerProps } from '../atoms/Container';
|
|
2
2
|
import { type PageHeadingProps } from '../atoms/PageHeading';
|
|
3
|
-
|
|
3
|
+
import { type ReactNode } from 'react';
|
|
4
|
+
export interface PageLayoutProps extends Pick<PageHeadingProps, 'title' | 'description' | 'onGoBack' | 'actionButton' | 'gap'>, Pick<ContainerProps, 'minHeight'> {
|
|
4
5
|
/**
|
|
5
6
|
* Page content
|
|
6
7
|
*/
|
|
@@ -10,7 +11,7 @@ export interface PageLayoutProps extends Pick<PageHeadingProps, 'title' | 'descr
|
|
|
10
11
|
*/
|
|
11
12
|
mode?: 'test' | 'live';
|
|
12
13
|
}
|
|
13
|
-
declare function PageLayout({ title, description, onGoBack, children, actionButton, mode, gap, ...rest }: PageLayoutProps): JSX.Element;
|
|
14
|
+
declare function PageLayout({ title, description, onGoBack, children, actionButton, mode, gap, minHeight, ...rest }: PageLayoutProps): JSX.Element;
|
|
14
15
|
declare namespace PageLayout {
|
|
15
16
|
var displayName: string;
|
|
16
17
|
}
|
|
@@ -9,7 +9,7 @@ interface ListDetailsItemProps {
|
|
|
9
9
|
* It represent the value.
|
|
10
10
|
* Most of the type it should be a `<CopyToClipboard>` component
|
|
11
11
|
*/
|
|
12
|
-
children
|
|
12
|
+
children?: ReactNode;
|
|
13
13
|
/**
|
|
14
14
|
* To show the skeleton item while `children` ar not yet. Label is always rendered
|
|
15
15
|
*/
|
|
@@ -27,8 +27,8 @@ interface ListDetailsItemProps {
|
|
|
27
27
|
*/
|
|
28
28
|
gutter?: 'none';
|
|
29
29
|
}
|
|
30
|
-
declare function ListDetailsItem({ label, children, isLoading, border, gutter, childrenAlign, ...rest }: ListDetailsItemProps): JSX.Element;
|
|
31
|
-
declare namespace ListDetailsItem {
|
|
30
|
+
export declare function ListDetailsItem({ label, children, isLoading, border, gutter, childrenAlign, ...rest }: ListDetailsItemProps): JSX.Element;
|
|
31
|
+
export declare namespace ListDetailsItem {
|
|
32
32
|
var displayName: string;
|
|
33
33
|
}
|
|
34
|
-
export {
|
|
34
|
+
export {};
|
|
@@ -8,6 +8,7 @@ export declare const ResourceTags: import('../atoms/SkeletonTemplate').SkeletonT
|
|
|
8
8
|
resourceType: TaggableResource;
|
|
9
9
|
resourceId: string;
|
|
10
10
|
overlay: TagsOverlay;
|
|
11
|
+
onTagClick?: ((tagId: string) => void) | undefined;
|
|
11
12
|
delayMs?: number | undefined;
|
|
12
13
|
isLoading?: boolean | undefined;
|
|
13
14
|
}>;
|