@xola/ui-kit 2.1.34 → 2.1.36
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/build/ui-kit.mjs +79 -75
- package/build/ui-kit.umd.js +9 -9
- package/index.d.ts +3 -0
- package/package.json +1 -1
package/build/ui-kit.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Transition as
|
|
1
|
+
import { Transition as Ie, Dialog as Ke, Switch as Rn } from "@headlessui/react";
|
|
2
2
|
import c from "prop-types";
|
|
3
3
|
import * as W from "react";
|
|
4
|
-
import n, { useState as re, useEffect as Te, cloneElement as bt, Fragment as be, Children as Se, createContext as wt, useRef as ge, useCallback as ue, useMemo as
|
|
4
|
+
import n, { useState as re, useEffect as Te, cloneElement as bt, Fragment as be, Children as Se, createContext as wt, useRef as ge, useCallback as ue, useMemo as Ce, useContext as Ve, useLayoutEffect as vo, forwardRef as Gn, createElement as je, Component as pa } from "react";
|
|
5
5
|
import C from "clsx";
|
|
6
6
|
import { range as ga, round as ot, isNumber as ha, isString as vr, isEmpty as br, isFunction as fn, isArray as vn, merge as _e } from "lodash";
|
|
7
7
|
import zn from "@tippyjs/react";
|
|
@@ -27,7 +27,7 @@ const xa = ({
|
|
|
27
27
|
children: s,
|
|
28
28
|
...u
|
|
29
29
|
}) => /* @__PURE__ */ n.createElement(
|
|
30
|
-
|
|
30
|
+
Ie,
|
|
31
31
|
{
|
|
32
32
|
show: e,
|
|
33
33
|
appear: t,
|
|
@@ -51,7 +51,7 @@ xa.propTypes = {
|
|
|
51
51
|
children: c.node
|
|
52
52
|
};
|
|
53
53
|
const Ea = ({ isOpen: e, children: t }) => /* @__PURE__ */ n.createElement("div", { className: "overflow-hidden" }, /* @__PURE__ */ n.createElement(
|
|
54
|
-
|
|
54
|
+
Ie,
|
|
55
55
|
{
|
|
56
56
|
show: e,
|
|
57
57
|
appear: e,
|
|
@@ -228,7 +228,7 @@ const ka = {
|
|
|
228
228
|
)
|
|
229
229
|
},
|
|
230
230
|
m && /* @__PURE__ */ n.createElement(
|
|
231
|
-
|
|
231
|
+
Ie,
|
|
232
232
|
{
|
|
233
233
|
appear: !0,
|
|
234
234
|
as: "span",
|
|
@@ -471,7 +471,7 @@ const Va = {
|
|
|
471
471
|
onClose: r,
|
|
472
472
|
classNames: i = {},
|
|
473
473
|
position: l = "right"
|
|
474
|
-
}) => /* @__PURE__ */ n.createElement(
|
|
474
|
+
}) => /* @__PURE__ */ n.createElement(Ie.Root, { show: e, as: be }, /* @__PURE__ */ n.createElement(
|
|
475
475
|
Ke,
|
|
476
476
|
{
|
|
477
477
|
as: "div",
|
|
@@ -480,7 +480,7 @@ const Va = {
|
|
|
480
480
|
onClose: r
|
|
481
481
|
},
|
|
482
482
|
/* @__PURE__ */ n.createElement("div", { className: "flex h-screen w-full" }, /* @__PURE__ */ n.createElement(
|
|
483
|
-
|
|
483
|
+
Ie.Child,
|
|
484
484
|
{
|
|
485
485
|
as: be,
|
|
486
486
|
enter: "ease-in-out duration-500",
|
|
@@ -501,7 +501,7 @@ const Va = {
|
|
|
501
501
|
)
|
|
502
502
|
},
|
|
503
503
|
/* @__PURE__ */ n.createElement(
|
|
504
|
-
|
|
504
|
+
Ie.Child,
|
|
505
505
|
{
|
|
506
506
|
as: be,
|
|
507
507
|
enter: "transform transition ease-in-out duration-500 sm:duration-700",
|
|
@@ -819,8 +819,8 @@ mt.propTypes = {
|
|
|
819
819
|
};
|
|
820
820
|
const ja = (e, t) => Se.toArray(e).filter((o) => o.type === t), Wa = "_main_jm0tk_1", Pa = {
|
|
821
821
|
main: Wa
|
|
822
|
-
}, To = {},
|
|
823
|
-
const i = ja(t,
|
|
822
|
+
}, To = {}, Ae = ({ className: e, children: t, skidding: o = 0, distance: a = 10, ...r }) => {
|
|
823
|
+
const i = ja(t, Ae.Content), l = Se.toArray(t).filter((s) => s.type !== Ae.Content);
|
|
824
824
|
return /* @__PURE__ */ n.createElement(
|
|
825
825
|
zn,
|
|
826
826
|
{
|
|
@@ -841,7 +841,7 @@ const ja = (e, t) => Se.toArray(e).filter((o) => o.type === t), Wa = "_main_jm0t
|
|
|
841
841
|
/* @__PURE__ */ n.createElement("span", null, l)
|
|
842
842
|
);
|
|
843
843
|
};
|
|
844
|
-
|
|
844
|
+
Ae.propTypes = {
|
|
845
845
|
className: c.string,
|
|
846
846
|
skidding: c.number,
|
|
847
847
|
distance: c.number,
|
|
@@ -853,17 +853,17 @@ Xn.propTypes = {
|
|
|
853
853
|
className: c.string,
|
|
854
854
|
children: c.node.isRequired
|
|
855
855
|
};
|
|
856
|
-
|
|
856
|
+
Ae.Content = Xn;
|
|
857
857
|
const Tt = ({ placement: e = "bottom", className: t, children: o, ...a }) => {
|
|
858
858
|
const r = Se.toArray(o), i = r.filter((d) => d.type !== Tt.Item), l = r.length - i.length, s = r.map((d, m) => d.type === Tt.Item ? n.cloneElement(d, { position: m, total: l }) : null), u = /* @__PURE__ */ n.createElement(
|
|
859
|
-
|
|
859
|
+
Ae.Content,
|
|
860
860
|
{
|
|
861
861
|
className: C(To, "ui-popover-list-content divide-y divide-solid divide-gray-lighter p-0 ")
|
|
862
862
|
},
|
|
863
863
|
s
|
|
864
864
|
);
|
|
865
865
|
return /* @__PURE__ */ n.createElement(
|
|
866
|
-
|
|
866
|
+
Ae,
|
|
867
867
|
{
|
|
868
868
|
content: u,
|
|
869
869
|
placement: e,
|
|
@@ -964,8 +964,8 @@ const Vo = {
|
|
|
964
964
|
const s = () => {
|
|
965
965
|
a && r();
|
|
966
966
|
};
|
|
967
|
-
return /* @__PURE__ */ n.createElement(
|
|
968
|
-
|
|
967
|
+
return /* @__PURE__ */ n.createElement(Ie, { appear: !0, show: o, as: be }, /* @__PURE__ */ n.createElement(Ke, { as: "div", className: "ui-modal fixed inset-0 z-30 overflow-y-auto", onClose: s }, /* @__PURE__ */ n.createElement("div", { className: "min-h-screen px-4 text-center" }, /* @__PURE__ */ n.createElement(
|
|
968
|
+
Ie.Child,
|
|
969
969
|
{
|
|
970
970
|
as: be,
|
|
971
971
|
enter: "ease-out duration-300",
|
|
@@ -977,7 +977,7 @@ const Vo = {
|
|
|
977
977
|
},
|
|
978
978
|
/* @__PURE__ */ n.createElement(Ke.Overlay, { className: "ui-modal-overlay fixed inset-0 bg-gray-dark bg-opacity-75 transition-opacity" })
|
|
979
979
|
), t === "center" && /* @__PURE__ */ n.createElement("span", { className: "inline-block h-screen align-middle", "aria-hidden": "true" }, "\u200B"), /* @__PURE__ */ n.createElement(
|
|
980
|
-
|
|
980
|
+
Ie.Child,
|
|
981
981
|
{
|
|
982
982
|
as: be,
|
|
983
983
|
enter: C("ease-out duration-300"),
|
|
@@ -1255,7 +1255,7 @@ const Wo = wt({
|
|
|
1255
1255
|
"Please wrap your app with `<Provider />` component from `@xola/ui-kit`. Otherwise your app will not work with SSR frameworks."
|
|
1256
1256
|
), Zi++)
|
|
1257
1257
|
}), $3 = ({ children: e }) => {
|
|
1258
|
-
const t = ge(1), o = ue(() => t.current++, [t]), a =
|
|
1258
|
+
const t = ge(1), o = ue(() => t.current++, [t]), a = Ce(() => ({ generateId: o }), [o]);
|
|
1259
1259
|
return /* @__PURE__ */ n.createElement(Wo.Provider, { value: a }, e);
|
|
1260
1260
|
}, Cn = (e) => {
|
|
1261
1261
|
const { generateId: t } = Ve(Wo), [o] = re(() => `${e}-${t()}`);
|
|
@@ -1500,15 +1500,19 @@ const Kt = {
|
|
|
1500
1500
|
success: "text-success",
|
|
1501
1501
|
danger: "text-danger",
|
|
1502
1502
|
caution: "text-caution"
|
|
1503
|
-
}, er = wt(), Ze = ({ children: e, className: t, currency: o,
|
|
1503
|
+
}, er = wt(), Ze = ({ children: e, className: t, currency: o, locale: a, ...r }) => {
|
|
1504
|
+
const i = Ce(() => ({ currency: o, locale: a }), [o, a]);
|
|
1505
|
+
return /* @__PURE__ */ n.createElement(er.Provider, { value: i }, /* @__PURE__ */ n.createElement("table", { className: C("ui-breakdown", "w-full", t), ...r }, /* @__PURE__ */ n.createElement("tbody", null, e)));
|
|
1506
|
+
};
|
|
1504
1507
|
Ze.propTypes = {
|
|
1505
1508
|
children: c.node,
|
|
1506
1509
|
className: c.string,
|
|
1507
|
-
currency: c.string.isRequired
|
|
1510
|
+
currency: c.string.isRequired,
|
|
1511
|
+
locale: c.string
|
|
1508
1512
|
};
|
|
1509
1513
|
const Qo = ({ children: e, info: t, methodIcon: o, secondary: a, value: r, className: i, color: l = "default", ...s }) => {
|
|
1510
|
-
const u = Ve(er);
|
|
1511
|
-
return /* @__PURE__ */ n.createElement("tr", { className: C("ui-breakdown-item", Kt[l], i), ...s }, /* @__PURE__ */ n.createElement("td", { colSpan: 2, className: "break-all text-left leading-none" }, /* @__PURE__ */ n.createElement("span", { className: "mr-0.5" }, o), /* @__PURE__ */ n.createElement("span", null, e), /* @__PURE__ */ n.createElement("span", { className: "ml-1 text-sm" }, t && /* @__PURE__ */ n.createElement("span", { className: "mr-2 rounded bg-white p-1 uppercase text-black empty:hidden" }, t), a && /* @__PURE__ */ n.createElement("span", { className: "empty:hidden" }, a))), /* @__PURE__ */ n.createElement("td", { className: "w-[1%] whitespace-nowrap pl-4 text-right" }, ha(r) ? /* @__PURE__ */ n.createElement(Pe, { shouldRemoveTrailingZeroes: !1, currency: u }, r) : /* @__PURE__ */ n.createElement("span", null, r)));
|
|
1514
|
+
const { currency: u, locale: d } = Ve(er);
|
|
1515
|
+
return /* @__PURE__ */ n.createElement("tr", { className: C("ui-breakdown-item", Kt[l], i), ...s }, /* @__PURE__ */ n.createElement("td", { colSpan: 2, className: "break-all text-left leading-none" }, /* @__PURE__ */ n.createElement("span", { className: "mr-0.5" }, o), /* @__PURE__ */ n.createElement("span", null, e), /* @__PURE__ */ n.createElement("span", { className: "ml-1 text-sm" }, t && /* @__PURE__ */ n.createElement("span", { className: "mr-2 rounded bg-white p-1 uppercase text-black empty:hidden" }, t), a && /* @__PURE__ */ n.createElement("span", { className: "empty:hidden" }, a))), /* @__PURE__ */ n.createElement("td", { className: "w-[1%] whitespace-nowrap pl-4 text-right" }, ha(r) ? /* @__PURE__ */ n.createElement(Pe, { shouldRemoveTrailingZeroes: !1, currency: u, locale: d }, r) : /* @__PURE__ */ n.createElement("span", null, r)));
|
|
1512
1516
|
};
|
|
1513
1517
|
Qo.propTypes = {
|
|
1514
1518
|
children: c.node,
|
|
@@ -1522,8 +1526,8 @@ Qo.propTypes = {
|
|
|
1522
1526
|
Ze.Item = Qo;
|
|
1523
1527
|
Ze.Item.displayName = "Breakdown.Item";
|
|
1524
1528
|
const _o = ({ children: e, info: t, value: o, className: a, color: r = "black", ...i }) => {
|
|
1525
|
-
const l = Ve(er);
|
|
1526
|
-
return /* @__PURE__ */ n.createElement("tr", { className: C("ui-breakdown-subtotal-item", "font-bold", Kt[r], a), ...i }, /* @__PURE__ */ n.createElement("td", { className: "pt-1 pb-4 text-left" }, e), /* @__PURE__ */ n.createElement("td", { className: "whitespace-nowrap pt-1 pb-4 text-right" }, t), /* @__PURE__ */ n.createElement("td", { className: "w-[1%] whitespace-nowrap pt-1 pb-4 pl-4 text-right" }, /* @__PURE__ */ n.createElement(Pe, { shouldRemoveTrailingZeroes: !1, currency: l }, o)));
|
|
1529
|
+
const { currency: l, locale: s } = Ve(er);
|
|
1530
|
+
return /* @__PURE__ */ n.createElement("tr", { className: C("ui-breakdown-subtotal-item", "font-bold", Kt[r], a), ...i }, /* @__PURE__ */ n.createElement("td", { className: "pt-1 pb-4 text-left" }, e), /* @__PURE__ */ n.createElement("td", { className: "whitespace-nowrap pt-1 pb-4 text-right" }, t), /* @__PURE__ */ n.createElement("td", { className: "w-[1%] whitespace-nowrap pt-1 pb-4 pl-4 text-right" }, /* @__PURE__ */ n.createElement(Pe, { shouldRemoveTrailingZeroes: !1, currency: l, locale: s }, o)));
|
|
1527
1531
|
};
|
|
1528
1532
|
_o.propTypes = {
|
|
1529
1533
|
children: c.node,
|
|
@@ -1832,7 +1836,7 @@ function w0() {
|
|
|
1832
1836
|
function fe() {
|
|
1833
1837
|
return se = he < n1 ? ce(nt, he++) : 0, et++, se === 10 && (et = 1, en++), se;
|
|
1834
1838
|
}
|
|
1835
|
-
function
|
|
1839
|
+
function ke() {
|
|
1836
1840
|
return ce(nt, he);
|
|
1837
1841
|
}
|
|
1838
1842
|
function Mt() {
|
|
@@ -1883,14 +1887,14 @@ function Nt(e) {
|
|
|
1883
1887
|
return t1(Et(he - 1, Ln(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1884
1888
|
}
|
|
1885
1889
|
function x0(e) {
|
|
1886
|
-
for (; (se =
|
|
1890
|
+
for (; (se = ke()) && se < 33; )
|
|
1887
1891
|
fe();
|
|
1888
1892
|
return gt(e) > 2 || gt(se) > 3 ? "" : " ";
|
|
1889
1893
|
}
|
|
1890
1894
|
function E0(e, t) {
|
|
1891
1895
|
for (; --t && fe() && !(se < 48 || se > 102 || se > 57 && se < 65 || se > 70 && se < 97); )
|
|
1892
1896
|
;
|
|
1893
|
-
return Et(e, Mt() + (t < 6 &&
|
|
1897
|
+
return Et(e, Mt() + (t < 6 && ke() == 32 && fe() == 32));
|
|
1894
1898
|
}
|
|
1895
1899
|
function Ln(e) {
|
|
1896
1900
|
for (; fe(); )
|
|
@@ -1912,12 +1916,12 @@ function Ln(e) {
|
|
|
1912
1916
|
}
|
|
1913
1917
|
function C0(e, t) {
|
|
1914
1918
|
for (; fe() && e + se !== 47 + 10; )
|
|
1915
|
-
if (e + se === 42 + 42 &&
|
|
1919
|
+
if (e + se === 42 + 42 && ke() === 47)
|
|
1916
1920
|
break;
|
|
1917
1921
|
return "/*" + Et(t, he - 1) + "*" + $t(e === 47 ? e : fe());
|
|
1918
1922
|
}
|
|
1919
1923
|
function y0(e) {
|
|
1920
|
-
for (; !gt(
|
|
1924
|
+
for (; !gt(ke()); )
|
|
1921
1925
|
fe();
|
|
1922
1926
|
return Et(e, he);
|
|
1923
1927
|
}
|
|
@@ -1947,7 +1951,7 @@ function Bt(e, t, o, a, r, i, l, s, u) {
|
|
|
1947
1951
|
I += E0(Mt() - 1, 7);
|
|
1948
1952
|
continue;
|
|
1949
1953
|
case 47:
|
|
1950
|
-
switch (
|
|
1954
|
+
switch (ke()) {
|
|
1951
1955
|
case 42:
|
|
1952
1956
|
case 47:
|
|
1953
1957
|
yt(k0(C0(fe(), Mt()), t, o), u);
|
|
@@ -2004,7 +2008,7 @@ function Bt(e, t, o, a, r, i, l, s, u) {
|
|
|
2004
2008
|
s[d++] = (Ee(I) - 1) * v, v = 1;
|
|
2005
2009
|
break;
|
|
2006
2010
|
case 64:
|
|
2007
|
-
|
|
2011
|
+
ke() === 45 && (I += Nt(fe())), b = ke(), m = h = Ee(L = I += y0(Mt())), A++;
|
|
2008
2012
|
break;
|
|
2009
2013
|
case 45:
|
|
2010
2014
|
w === 45 && Ee(I) == 2 && (g = 0);
|
|
@@ -2063,7 +2067,7 @@ function N0(e) {
|
|
|
2063
2067
|
};
|
|
2064
2068
|
}
|
|
2065
2069
|
var B0 = function(t, o, a) {
|
|
2066
|
-
for (var r = 0, i = 0; r = i, i =
|
|
2070
|
+
for (var r = 0, i = 0; r = i, i = ke(), r === 38 && i === 12 && (o[a] = 1), !gt(i); )
|
|
2067
2071
|
fe();
|
|
2068
2072
|
return Et(t, he);
|
|
2069
2073
|
}, F0 = function(t, o) {
|
|
@@ -2071,14 +2075,14 @@ var B0 = function(t, o, a) {
|
|
|
2071
2075
|
do
|
|
2072
2076
|
switch (gt(r)) {
|
|
2073
2077
|
case 0:
|
|
2074
|
-
r === 38 &&
|
|
2078
|
+
r === 38 && ke() === 12 && (o[a] = 1), t[a] += B0(he - 1, o, a);
|
|
2075
2079
|
break;
|
|
2076
2080
|
case 2:
|
|
2077
2081
|
t[a] += Nt(r);
|
|
2078
2082
|
break;
|
|
2079
2083
|
case 4:
|
|
2080
2084
|
if (r === 44) {
|
|
2081
|
-
t[++a] =
|
|
2085
|
+
t[++a] = ke() === 58 ? "&\f" : "", o[a] = t[a].length;
|
|
2082
2086
|
break;
|
|
2083
2087
|
}
|
|
2084
2088
|
default:
|
|
@@ -2441,8 +2445,8 @@ function Z0() {
|
|
|
2441
2445
|
}
|
|
2442
2446
|
function k(N) {
|
|
2443
2447
|
if (typeof N == "object" && N !== null) {
|
|
2444
|
-
var
|
|
2445
|
-
switch (
|
|
2448
|
+
var Me = N.$$typeof;
|
|
2449
|
+
switch (Me) {
|
|
2446
2450
|
case t:
|
|
2447
2451
|
var we = N.type;
|
|
2448
2452
|
switch (we) {
|
|
@@ -2463,11 +2467,11 @@ function Z0() {
|
|
|
2463
2467
|
case l:
|
|
2464
2468
|
return Fe;
|
|
2465
2469
|
default:
|
|
2466
|
-
return
|
|
2470
|
+
return Me;
|
|
2467
2471
|
}
|
|
2468
2472
|
}
|
|
2469
2473
|
case o:
|
|
2470
|
-
return
|
|
2474
|
+
return Me;
|
|
2471
2475
|
}
|
|
2472
2476
|
}
|
|
2473
2477
|
}
|
|
@@ -2508,10 +2512,10 @@ function Z0() {
|
|
|
2508
2512
|
function Ge(N) {
|
|
2509
2513
|
return k(N) === r;
|
|
2510
2514
|
}
|
|
2511
|
-
function
|
|
2515
|
+
function Le(N) {
|
|
2512
2516
|
return k(N) === h;
|
|
2513
2517
|
}
|
|
2514
|
-
Y.AsyncMode = E, Y.ConcurrentMode = x, Y.ContextConsumer = I, Y.ContextProvider = M, Y.Element = T, Y.ForwardRef = P, Y.Fragment = O, Y.Lazy = G, Y.Memo = U, Y.Portal = z, Y.Profiler = D, Y.StrictMode = K, Y.Suspense = $, Y.isAsyncMode = q, Y.isConcurrentMode = te, Y.isContextConsumer = ie, Y.isContextProvider = _, Y.isElement = H, Y.isForwardRef = oe, Y.isFragment = R, Y.isLazy = j, Y.isMemo = ne, Y.isPortal = le, Y.isProfiler = ve, Y.isStrictMode = Ge, Y.isSuspense =
|
|
2518
|
+
Y.AsyncMode = E, Y.ConcurrentMode = x, Y.ContextConsumer = I, Y.ContextProvider = M, Y.Element = T, Y.ForwardRef = P, Y.Fragment = O, Y.Lazy = G, Y.Memo = U, Y.Portal = z, Y.Profiler = D, Y.StrictMode = K, Y.Suspense = $, Y.isAsyncMode = q, Y.isConcurrentMode = te, Y.isContextConsumer = ie, Y.isContextProvider = _, Y.isElement = H, Y.isForwardRef = oe, Y.isFragment = R, Y.isLazy = j, Y.isMemo = ne, Y.isPortal = le, Y.isProfiler = ve, Y.isStrictMode = Ge, Y.isSuspense = Le, Y.isValidElementType = L, Y.typeOf = k;
|
|
2515
2519
|
}()), Y;
|
|
2516
2520
|
}
|
|
2517
2521
|
(function(e) {
|
|
@@ -3580,7 +3584,7 @@ var Ks = function(t) {
|
|
|
3580
3584
|
zIndex: 1
|
|
3581
3585
|
};
|
|
3582
3586
|
}, $s = function(t) {
|
|
3583
|
-
var o = t.appendTo, a = t.children, r = t.controlElement, i = t.innerProps, l = t.menuPlacement, s = t.menuPosition, u = ge(null), d = ge(null), m = re(A1(l)), h = Ne(m, 2), b = h[0], y = h[1], w =
|
|
3587
|
+
var o = t.appendTo, a = t.children, r = t.controlElement, i = t.innerProps, l = t.menuPlacement, s = t.menuPosition, u = ge(null), d = ge(null), m = re(A1(l)), h = Ne(m, 2), b = h[0], y = h[1], w = Ce(function() {
|
|
3584
3588
|
return {
|
|
3585
3589
|
setPortalPlacement: y
|
|
3586
3590
|
};
|
|
@@ -4181,9 +4185,9 @@ var Ul = process.env.NODE_ENV === "production" ? {
|
|
|
4181
4185
|
return "".concat(a).concat(o ? " for search term " + o : "", ".");
|
|
4182
4186
|
}
|
|
4183
4187
|
}, _l = function(t) {
|
|
4184
|
-
var o = t.ariaSelection, a = t.focusedOption, r = t.focusedValue, i = t.focusableOptions, l = t.isFocused, s = t.selectValue, u = t.selectProps, d = t.id, m = u.ariaLiveMessages, h = u.getOptionLabel, b = u.inputValue, y = u.isMulti, w = u.isOptionDisabled, g = u.isSearchable, f = u.menuIsOpen, v = u.options, A = u.screenReaderStatus, L = u.tabSelectsValue, k = u["aria-label"], E = u["aria-live"], x =
|
|
4188
|
+
var o = t.ariaSelection, a = t.focusedOption, r = t.focusedValue, i = t.focusableOptions, l = t.isFocused, s = t.selectValue, u = t.selectProps, d = t.id, m = u.ariaLiveMessages, h = u.getOptionLabel, b = u.inputValue, y = u.isMulti, w = u.isOptionDisabled, g = u.isSearchable, f = u.menuIsOpen, v = u.options, A = u.screenReaderStatus, L = u.tabSelectsValue, k = u["aria-label"], E = u["aria-live"], x = Ce(function() {
|
|
4185
4189
|
return V(V({}, Ql), m || {});
|
|
4186
|
-
}, [m]), I =
|
|
4190
|
+
}, [m]), I = Ce(function() {
|
|
4187
4191
|
var z = "";
|
|
4188
4192
|
if (o && x.onChange) {
|
|
4189
4193
|
var D = o.option, K = o.options, $ = o.removedValue, ee = o.removedValues, q = o.value, te = function(ne) {
|
|
@@ -4196,7 +4200,7 @@ var Ul = process.env.NODE_ENV === "production" ? {
|
|
|
4196
4200
|
z = x.onChange(R);
|
|
4197
4201
|
}
|
|
4198
4202
|
return z;
|
|
4199
|
-
}, [o, x, w, s, h]), M =
|
|
4203
|
+
}, [o, x, w, s, h]), M = Ce(function() {
|
|
4200
4204
|
var z = "", D = a || r, K = !!(a && s && s.includes(a));
|
|
4201
4205
|
if (D && x.onFocus) {
|
|
4202
4206
|
var $ = {
|
|
@@ -4211,7 +4215,7 @@ var Ul = process.env.NODE_ENV === "production" ? {
|
|
|
4211
4215
|
z = x.onFocus($);
|
|
4212
4216
|
}
|
|
4213
4217
|
return z;
|
|
4214
|
-
}, [a, r, h, w, x, i, s]), T =
|
|
4218
|
+
}, [a, r, h, w, x, i, s]), T = Ce(function() {
|
|
4215
4219
|
var z = "";
|
|
4216
4220
|
if (f && v.length && x.onFilter) {
|
|
4217
4221
|
var D = A({
|
|
@@ -4223,7 +4227,7 @@ var Ul = process.env.NODE_ENV === "production" ? {
|
|
|
4223
4227
|
});
|
|
4224
4228
|
}
|
|
4225
4229
|
return z;
|
|
4226
|
-
}, [i, b, f, x, v, A]), P =
|
|
4230
|
+
}, [i, b, f, x, v, A]), P = Ce(function() {
|
|
4227
4231
|
var z = "";
|
|
4228
4232
|
if (x.guidance) {
|
|
4229
4233
|
var D = r ? "value" : f ? "menu" : "input";
|
|
@@ -5548,13 +5552,13 @@ var U1 = function(t) {
|
|
|
5548
5552
|
if (!I)
|
|
5549
5553
|
return null;
|
|
5550
5554
|
var K = function(H, oe) {
|
|
5551
|
-
var R = H.type, j = H.data, ne = H.isDisabled, le = H.isSelected, ve = H.label, Ge = H.value,
|
|
5555
|
+
var R = H.type, j = H.data, ne = H.isDisabled, le = H.isSelected, ve = H.label, Ge = H.value, Le = g === j, N = ne ? void 0 : function() {
|
|
5552
5556
|
return r.onOptionHover(j);
|
|
5553
|
-
},
|
|
5557
|
+
}, Me = ne ? void 0 : function() {
|
|
5554
5558
|
return r.selectOption(j);
|
|
5555
5559
|
}, we = "".concat(r.getElementId("option"), "-").concat(oe), Fe = {
|
|
5556
5560
|
id: we,
|
|
5557
|
-
onClick:
|
|
5561
|
+
onClick: Me,
|
|
5558
5562
|
onMouseMove: N,
|
|
5559
5563
|
onMouseOver: N,
|
|
5560
5564
|
tabIndex: -1
|
|
@@ -5568,8 +5572,8 @@ var U1 = function(t) {
|
|
|
5568
5572
|
label: ve,
|
|
5569
5573
|
type: R,
|
|
5570
5574
|
value: Ge,
|
|
5571
|
-
isFocused:
|
|
5572
|
-
innerRef:
|
|
5575
|
+
isFocused: Le,
|
|
5576
|
+
innerRef: Le ? r.getFocusedOptionRef : void 0
|
|
5573
5577
|
}), r.formatOptionLabel(H.data, "menu"));
|
|
5574
5578
|
}, $;
|
|
5575
5579
|
if (this.hasOptions())
|
|
@@ -5808,12 +5812,12 @@ var Mc = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
5808
5812
|
}
|
|
5809
5813
|
};
|
|
5810
5814
|
function Nc(e) {
|
|
5811
|
-
var t = e.allowCreateWhileLoading, o = t === void 0 ? !1 : t, a = e.createOptionPosition, r = a === void 0 ? "last" : a, i = e.formatCreateLabel, l = i === void 0 ? pn.formatCreateLabel : i, s = e.isValidNewOption, u = s === void 0 ? pn.isValidNewOption : s, d = e.getNewOptionData, m = d === void 0 ? pn.getNewOptionData : d, h = e.onCreateOption, b = e.options, y = b === void 0 ? [] : b, w = e.onChange, g = Ye(e, Mc), f = g.getOptionValue, v = f === void 0 ? O1 : f, A = g.getOptionLabel, L = A === void 0 ? H1 : A, k = g.inputValue, E = g.isLoading, x = g.isMulti, I = g.value, M = g.name, T =
|
|
5815
|
+
var t = e.allowCreateWhileLoading, o = t === void 0 ? !1 : t, a = e.createOptionPosition, r = a === void 0 ? "last" : a, i = e.formatCreateLabel, l = i === void 0 ? pn.formatCreateLabel : i, s = e.isValidNewOption, u = s === void 0 ? pn.isValidNewOption : s, d = e.getNewOptionData, m = d === void 0 ? pn.getNewOptionData : d, h = e.onCreateOption, b = e.options, y = b === void 0 ? [] : b, w = e.onChange, g = Ye(e, Mc), f = g.getOptionValue, v = f === void 0 ? O1 : f, A = g.getOptionLabel, L = A === void 0 ? H1 : A, k = g.inputValue, E = g.isLoading, x = g.isMulti, I = g.value, M = g.name, T = Ce(function() {
|
|
5812
5816
|
return u(k, Wt(I), y, {
|
|
5813
5817
|
getOptionValue: v,
|
|
5814
5818
|
getOptionLabel: L
|
|
5815
5819
|
}) ? m(k, l(k)) : void 0;
|
|
5816
|
-
}, [l, m, L, v, k, u, y, I]), P =
|
|
5820
|
+
}, [l, m, L, v, k, u, y, I]), P = Ce(function() {
|
|
5817
5821
|
return (o || !E) && T ? r === "first" ? [T].concat(ut(y)) : [].concat(ut(y), [T]) : y;
|
|
5818
5822
|
}, [o, r, E, T, y]), O = ue(function(G, U) {
|
|
5819
5823
|
if (U.action !== "select-option")
|
|
@@ -6936,10 +6940,10 @@ var aa = { exports: {} };
|
|
|
6936
6940
|
try {
|
|
6937
6941
|
if (["x", "X"].indexOf($) > -1)
|
|
6938
6942
|
return new Date(($ === "X" ? 1e3 : 1) * K);
|
|
6939
|
-
var q = w($)(K), te = q.year, ie = q.month, _ = q.day, H = q.hours, oe = q.minutes, R = q.seconds, j = q.milliseconds, ne = q.zone, le = new Date(), ve = _ || (te || ie ? 1 : le.getDate()), Ge = te || le.getFullYear(),
|
|
6940
|
-
te && !ie || (
|
|
6941
|
-
var N = H || 0,
|
|
6942
|
-
return ne ? new Date(Date.UTC(Ge,
|
|
6943
|
+
var q = w($)(K), te = q.year, ie = q.month, _ = q.day, H = q.hours, oe = q.minutes, R = q.seconds, j = q.milliseconds, ne = q.zone, le = new Date(), ve = _ || (te || ie ? 1 : le.getDate()), Ge = te || le.getFullYear(), Le = 0;
|
|
6944
|
+
te && !ie || (Le = ie > 0 ? ie - 1 : le.getMonth());
|
|
6945
|
+
var N = H || 0, Me = oe || 0, we = R || 0, Fe = j || 0;
|
|
6946
|
+
return ne ? new Date(Date.UTC(Ge, Le, ve, N, Me, we, Fe + 60 * ne.offset * 1e3)) : ee ? new Date(Date.UTC(Ge, Le, ve, N, Me, we, Fe)) : new Date(Ge, Le, ve, N, Me, we, Fe);
|
|
6943
6947
|
} catch {
|
|
6944
6948
|
return new Date("");
|
|
6945
6949
|
}
|
|
@@ -7020,7 +7024,7 @@ const Xc = (e, t = "YYYY-MM-DD") => B(e).format(t), e4 = (e, t = "h:mm a") => {
|
|
|
7020
7024
|
return Te(() => {
|
|
7021
7025
|
y(e);
|
|
7022
7026
|
}, [e]), /* @__PURE__ */ n.createElement(
|
|
7023
|
-
|
|
7027
|
+
Ae,
|
|
7024
7028
|
{
|
|
7025
7029
|
visible: w,
|
|
7026
7030
|
maxWidth: 900,
|
|
@@ -7041,7 +7045,7 @@ const Xc = (e, t = "YYYY-MM-DD") => B(e).format(t), e4 = (e, t = "h:mm a") => {
|
|
|
7041
7045
|
onClick: f
|
|
7042
7046
|
}
|
|
7043
7047
|
),
|
|
7044
|
-
/* @__PURE__ */ n.createElement(
|
|
7048
|
+
/* @__PURE__ */ n.createElement(Ae.Content, { className: "pr-1" }, w && /* @__PURE__ */ n.createElement(
|
|
7045
7049
|
hr,
|
|
7046
7050
|
{
|
|
7047
7051
|
variant: t,
|
|
@@ -7083,7 +7087,7 @@ const Jc = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
|
|
|
7083
7087
|
(b = d == null ? void 0 : d.current.querySelector("select,textarea,input")) == null || b.focus();
|
|
7084
7088
|
}, 0), a == null || a(h);
|
|
7085
7089
|
};
|
|
7086
|
-
return /* @__PURE__ */ n.createElement(
|
|
7090
|
+
return /* @__PURE__ */ n.createElement(Ae, { visible: t, onClickOutside: r, ...u }, /* @__PURE__ */ n.createElement(
|
|
7087
7091
|
"span",
|
|
7088
7092
|
{
|
|
7089
7093
|
className: C(
|
|
@@ -7095,7 +7099,7 @@ const Jc = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
|
|
|
7095
7099
|
},
|
|
7096
7100
|
/* @__PURE__ */ n.createElement("span", { className: C("border-b border-b-black font-bold text-black", i == null ? void 0 : i.textField) }, /* @__PURE__ */ n.createElement(Jc, { value: e, error: s })),
|
|
7097
7101
|
o && /* @__PURE__ */ n.createElement(fr, { size: "medium" })
|
|
7098
|
-
), /* @__PURE__ */ n.createElement(
|
|
7102
|
+
), /* @__PURE__ */ n.createElement(Ae.Content, null, /* @__PURE__ */ n.createElement("div", { ref: d, className: C("p-2", i == null ? void 0 : i.children) }, l)));
|
|
7099
7103
|
}, Uc = ({
|
|
7100
7104
|
src: e,
|
|
7101
7105
|
size: t = "large",
|
|
@@ -7470,7 +7474,7 @@ const r4 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7470
7474
|
container(e, t, o, a) {
|
|
7471
7475
|
const r = (i) => o(i, a);
|
|
7472
7476
|
return /* @__PURE__ */ n.createElement(
|
|
7473
|
-
|
|
7477
|
+
Ie,
|
|
7474
7478
|
{
|
|
7475
7479
|
appear: !0,
|
|
7476
7480
|
as: be,
|
|
@@ -7495,7 +7499,7 @@ const r4 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7495
7499
|
dismiss(e) {
|
|
7496
7500
|
xr.dismiss(e);
|
|
7497
7501
|
}
|
|
7498
|
-
},
|
|
7502
|
+
}, ye = {
|
|
7499
7503
|
colors: {
|
|
7500
7504
|
transparent: "transparent",
|
|
7501
7505
|
current: "currentColor",
|
|
@@ -7850,13 +7854,13 @@ const r4 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7850
7854
|
"7.5": "30px"
|
|
7851
7855
|
}
|
|
7852
7856
|
}
|
|
7853
|
-
}, { colors: me } =
|
|
7857
|
+
}, { colors: me } = ye, ze = {
|
|
7854
7858
|
color: me.gray.darker,
|
|
7855
|
-
fontSize:
|
|
7859
|
+
fontSize: ye.fontSize.sm,
|
|
7856
7860
|
fontWeight: 400,
|
|
7857
7861
|
cursor: "pointer",
|
|
7858
7862
|
textOverflow: "ellipsis",
|
|
7859
|
-
fontFamily:
|
|
7863
|
+
fontFamily: ye.extend.fontFamily.sans
|
|
7860
7864
|
}, la = {
|
|
7861
7865
|
global: {
|
|
7862
7866
|
useUTC: !1
|
|
@@ -7941,14 +7945,14 @@ const r4 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7941
7945
|
type: "datetime",
|
|
7942
7946
|
step: 1,
|
|
7943
7947
|
minTickInterval: 24 * 3600 * 1e3,
|
|
7944
|
-
lineColor:
|
|
7948
|
+
lineColor: ye.colors.gray.darker,
|
|
7945
7949
|
lineWidth: 1,
|
|
7946
7950
|
gridLineWidth: "1",
|
|
7947
7951
|
gridLineColor: "#DEDEDE",
|
|
7948
7952
|
gridLineDashStyle: "dot"
|
|
7949
7953
|
},
|
|
7950
7954
|
yAxis: {
|
|
7951
|
-
lineColor:
|
|
7955
|
+
lineColor: ye.colors.gray.darker,
|
|
7952
7956
|
lineWidth: 1,
|
|
7953
7957
|
gridLineWidth: "1",
|
|
7954
7958
|
gridLineColor: "#DEDEDE",
|
|
@@ -7976,7 +7980,7 @@ const r4 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7976
7980
|
fontSize: "14px",
|
|
7977
7981
|
color: "#666666",
|
|
7978
7982
|
textTransform: "capitalize",
|
|
7979
|
-
fontFamily:
|
|
7983
|
+
fontFamily: ye.extend.fontFamily.sans
|
|
7980
7984
|
},
|
|
7981
7985
|
itemMarginBottom: 5,
|
|
7982
7986
|
align: "center",
|
|
@@ -8008,15 +8012,15 @@ const r4 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
8008
8012
|
maxHeight: 120,
|
|
8009
8013
|
width: 220,
|
|
8010
8014
|
navigation: {
|
|
8011
|
-
activeColor:
|
|
8015
|
+
activeColor: ye.colors.gray.darker,
|
|
8012
8016
|
animation: "true",
|
|
8013
|
-
style:
|
|
8017
|
+
style: ye.extend.fontFamily.sans
|
|
8014
8018
|
},
|
|
8015
8019
|
padding: 5,
|
|
8016
|
-
backgroundColor:
|
|
8020
|
+
backgroundColor: ye.colors.white,
|
|
8017
8021
|
itemMarginTop: 1,
|
|
8018
8022
|
itemMarginBottom: 3,
|
|
8019
|
-
itemStyle:
|
|
8023
|
+
itemStyle: ye.extend.fontFamily.sans,
|
|
8020
8024
|
style: { overflow: "hidden" },
|
|
8021
8025
|
align: "left",
|
|
8022
8026
|
layout: "horizontal",
|
|
@@ -11267,7 +11271,7 @@ export {
|
|
|
11267
11271
|
Pu as PlayIcon,
|
|
11268
11272
|
Zu as PlusIcon,
|
|
11269
11273
|
Xu as PolicyIcon,
|
|
11270
|
-
|
|
11274
|
+
Ae as Popover,
|
|
11271
11275
|
Tt as PopoverList,
|
|
11272
11276
|
U4 as PrintIcon,
|
|
11273
11277
|
Yu as ProductsIcon,
|
|
@@ -11362,5 +11366,5 @@ export {
|
|
|
11362
11366
|
Kn as isZeroDecimal,
|
|
11363
11367
|
$n as numberFormat,
|
|
11364
11368
|
Jo as roundNumber,
|
|
11365
|
-
|
|
11369
|
+
ye as theme
|
|
11366
11370
|
};
|