@xola/ui-kit 2.1.36 → 2.1.37
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 +75 -79
- package/build/ui-kit.umd.js +9 -9
- package/package.json +1 -1
package/build/ui-kit.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Transition as
|
|
1
|
+
import { Transition as ye, 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 Me, 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
|
+
ye,
|
|
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
|
+
ye,
|
|
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
|
+
ye,
|
|
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(ye.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
|
+
ye.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
|
+
ye.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 = {}, ke = ({ className: e, children: t, skidding: o = 0, distance: a = 10, ...r }) => {
|
|
823
|
+
const i = ja(t, ke.Content), l = Se.toArray(t).filter((s) => s.type !== ke.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
|
+
ke.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
|
+
ke.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
|
+
ke.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
|
+
ke,
|
|
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(ye, { 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
|
+
ye.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
|
+
ye.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 = Me(() => ({ 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,19 +1500,15 @@ 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,
|
|
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
|
-
};
|
|
1503
|
+
}, er = wt(), Ze = ({ children: e, className: t, currency: o, ...a }) => /* @__PURE__ */ n.createElement(er.Provider, { value: o }, /* @__PURE__ */ n.createElement("table", { className: C("ui-breakdown", "w-full", t), ...a }, /* @__PURE__ */ n.createElement("tbody", null, e)));
|
|
1507
1504
|
Ze.propTypes = {
|
|
1508
1505
|
children: c.node,
|
|
1509
1506
|
className: c.string,
|
|
1510
|
-
currency: c.string.isRequired
|
|
1511
|
-
locale: c.string
|
|
1507
|
+
currency: c.string.isRequired
|
|
1512
1508
|
};
|
|
1513
1509
|
const Qo = ({ children: e, info: t, methodIcon: o, secondary: a, value: r, className: i, color: l = "default", ...s }) => {
|
|
1514
|
-
const
|
|
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
|
|
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)));
|
|
1516
1512
|
};
|
|
1517
1513
|
Qo.propTypes = {
|
|
1518
1514
|
children: c.node,
|
|
@@ -1526,8 +1522,8 @@ Qo.propTypes = {
|
|
|
1526
1522
|
Ze.Item = Qo;
|
|
1527
1523
|
Ze.Item.displayName = "Breakdown.Item";
|
|
1528
1524
|
const _o = ({ children: e, info: t, value: o, className: a, color: r = "black", ...i }) => {
|
|
1529
|
-
const
|
|
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
|
|
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)));
|
|
1531
1527
|
};
|
|
1532
1528
|
_o.propTypes = {
|
|
1533
1529
|
children: c.node,
|
|
@@ -1836,7 +1832,7 @@ function w0() {
|
|
|
1836
1832
|
function fe() {
|
|
1837
1833
|
return se = he < n1 ? ce(nt, he++) : 0, et++, se === 10 && (et = 1, en++), se;
|
|
1838
1834
|
}
|
|
1839
|
-
function
|
|
1835
|
+
function Ie() {
|
|
1840
1836
|
return ce(nt, he);
|
|
1841
1837
|
}
|
|
1842
1838
|
function Mt() {
|
|
@@ -1887,14 +1883,14 @@ function Nt(e) {
|
|
|
1887
1883
|
return t1(Et(he - 1, Ln(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1888
1884
|
}
|
|
1889
1885
|
function x0(e) {
|
|
1890
|
-
for (; (se =
|
|
1886
|
+
for (; (se = Ie()) && se < 33; )
|
|
1891
1887
|
fe();
|
|
1892
1888
|
return gt(e) > 2 || gt(se) > 3 ? "" : " ";
|
|
1893
1889
|
}
|
|
1894
1890
|
function E0(e, t) {
|
|
1895
1891
|
for (; --t && fe() && !(se < 48 || se > 102 || se > 57 && se < 65 || se > 70 && se < 97); )
|
|
1896
1892
|
;
|
|
1897
|
-
return Et(e, Mt() + (t < 6 &&
|
|
1893
|
+
return Et(e, Mt() + (t < 6 && Ie() == 32 && fe() == 32));
|
|
1898
1894
|
}
|
|
1899
1895
|
function Ln(e) {
|
|
1900
1896
|
for (; fe(); )
|
|
@@ -1916,12 +1912,12 @@ function Ln(e) {
|
|
|
1916
1912
|
}
|
|
1917
1913
|
function C0(e, t) {
|
|
1918
1914
|
for (; fe() && e + se !== 47 + 10; )
|
|
1919
|
-
if (e + se === 42 + 42 &&
|
|
1915
|
+
if (e + se === 42 + 42 && Ie() === 47)
|
|
1920
1916
|
break;
|
|
1921
1917
|
return "/*" + Et(t, he - 1) + "*" + $t(e === 47 ? e : fe());
|
|
1922
1918
|
}
|
|
1923
1919
|
function y0(e) {
|
|
1924
|
-
for (; !gt(
|
|
1920
|
+
for (; !gt(Ie()); )
|
|
1925
1921
|
fe();
|
|
1926
1922
|
return Et(e, he);
|
|
1927
1923
|
}
|
|
@@ -1951,7 +1947,7 @@ function Bt(e, t, o, a, r, i, l, s, u) {
|
|
|
1951
1947
|
I += E0(Mt() - 1, 7);
|
|
1952
1948
|
continue;
|
|
1953
1949
|
case 47:
|
|
1954
|
-
switch (
|
|
1950
|
+
switch (Ie()) {
|
|
1955
1951
|
case 42:
|
|
1956
1952
|
case 47:
|
|
1957
1953
|
yt(k0(C0(fe(), Mt()), t, o), u);
|
|
@@ -2008,7 +2004,7 @@ function Bt(e, t, o, a, r, i, l, s, u) {
|
|
|
2008
2004
|
s[d++] = (Ee(I) - 1) * v, v = 1;
|
|
2009
2005
|
break;
|
|
2010
2006
|
case 64:
|
|
2011
|
-
|
|
2007
|
+
Ie() === 45 && (I += Nt(fe())), b = Ie(), m = h = Ee(L = I += y0(Mt())), A++;
|
|
2012
2008
|
break;
|
|
2013
2009
|
case 45:
|
|
2014
2010
|
w === 45 && Ee(I) == 2 && (g = 0);
|
|
@@ -2067,7 +2063,7 @@ function N0(e) {
|
|
|
2067
2063
|
};
|
|
2068
2064
|
}
|
|
2069
2065
|
var B0 = function(t, o, a) {
|
|
2070
|
-
for (var r = 0, i = 0; r = i, i =
|
|
2066
|
+
for (var r = 0, i = 0; r = i, i = Ie(), r === 38 && i === 12 && (o[a] = 1), !gt(i); )
|
|
2071
2067
|
fe();
|
|
2072
2068
|
return Et(t, he);
|
|
2073
2069
|
}, F0 = function(t, o) {
|
|
@@ -2075,14 +2071,14 @@ var B0 = function(t, o, a) {
|
|
|
2075
2071
|
do
|
|
2076
2072
|
switch (gt(r)) {
|
|
2077
2073
|
case 0:
|
|
2078
|
-
r === 38 &&
|
|
2074
|
+
r === 38 && Ie() === 12 && (o[a] = 1), t[a] += B0(he - 1, o, a);
|
|
2079
2075
|
break;
|
|
2080
2076
|
case 2:
|
|
2081
2077
|
t[a] += Nt(r);
|
|
2082
2078
|
break;
|
|
2083
2079
|
case 4:
|
|
2084
2080
|
if (r === 44) {
|
|
2085
|
-
t[++a] =
|
|
2081
|
+
t[++a] = Ie() === 58 ? "&\f" : "", o[a] = t[a].length;
|
|
2086
2082
|
break;
|
|
2087
2083
|
}
|
|
2088
2084
|
default:
|
|
@@ -2445,8 +2441,8 @@ function Z0() {
|
|
|
2445
2441
|
}
|
|
2446
2442
|
function k(N) {
|
|
2447
2443
|
if (typeof N == "object" && N !== null) {
|
|
2448
|
-
var
|
|
2449
|
-
switch (
|
|
2444
|
+
var Le = N.$$typeof;
|
|
2445
|
+
switch (Le) {
|
|
2450
2446
|
case t:
|
|
2451
2447
|
var we = N.type;
|
|
2452
2448
|
switch (we) {
|
|
@@ -2467,11 +2463,11 @@ function Z0() {
|
|
|
2467
2463
|
case l:
|
|
2468
2464
|
return Fe;
|
|
2469
2465
|
default:
|
|
2470
|
-
return
|
|
2466
|
+
return Le;
|
|
2471
2467
|
}
|
|
2472
2468
|
}
|
|
2473
2469
|
case o:
|
|
2474
|
-
return
|
|
2470
|
+
return Le;
|
|
2475
2471
|
}
|
|
2476
2472
|
}
|
|
2477
2473
|
}
|
|
@@ -2512,10 +2508,10 @@ function Z0() {
|
|
|
2512
2508
|
function Ge(N) {
|
|
2513
2509
|
return k(N) === r;
|
|
2514
2510
|
}
|
|
2515
|
-
function
|
|
2511
|
+
function Ae(N) {
|
|
2516
2512
|
return k(N) === h;
|
|
2517
2513
|
}
|
|
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 =
|
|
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 = Ae, Y.isValidElementType = L, Y.typeOf = k;
|
|
2519
2515
|
}()), Y;
|
|
2520
2516
|
}
|
|
2521
2517
|
(function(e) {
|
|
@@ -3584,7 +3580,7 @@ var Ks = function(t) {
|
|
|
3584
3580
|
zIndex: 1
|
|
3585
3581
|
};
|
|
3586
3582
|
}, $s = function(t) {
|
|
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 =
|
|
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 = Me(function() {
|
|
3588
3584
|
return {
|
|
3589
3585
|
setPortalPlacement: y
|
|
3590
3586
|
};
|
|
@@ -4185,9 +4181,9 @@ var Ul = process.env.NODE_ENV === "production" ? {
|
|
|
4185
4181
|
return "".concat(a).concat(o ? " for search term " + o : "", ".");
|
|
4186
4182
|
}
|
|
4187
4183
|
}, _l = function(t) {
|
|
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 =
|
|
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 = Me(function() {
|
|
4189
4185
|
return V(V({}, Ql), m || {});
|
|
4190
|
-
}, [m]), I =
|
|
4186
|
+
}, [m]), I = Me(function() {
|
|
4191
4187
|
var z = "";
|
|
4192
4188
|
if (o && x.onChange) {
|
|
4193
4189
|
var D = o.option, K = o.options, $ = o.removedValue, ee = o.removedValues, q = o.value, te = function(ne) {
|
|
@@ -4200,7 +4196,7 @@ var Ul = process.env.NODE_ENV === "production" ? {
|
|
|
4200
4196
|
z = x.onChange(R);
|
|
4201
4197
|
}
|
|
4202
4198
|
return z;
|
|
4203
|
-
}, [o, x, w, s, h]), M =
|
|
4199
|
+
}, [o, x, w, s, h]), M = Me(function() {
|
|
4204
4200
|
var z = "", D = a || r, K = !!(a && s && s.includes(a));
|
|
4205
4201
|
if (D && x.onFocus) {
|
|
4206
4202
|
var $ = {
|
|
@@ -4215,7 +4211,7 @@ var Ul = process.env.NODE_ENV === "production" ? {
|
|
|
4215
4211
|
z = x.onFocus($);
|
|
4216
4212
|
}
|
|
4217
4213
|
return z;
|
|
4218
|
-
}, [a, r, h, w, x, i, s]), T =
|
|
4214
|
+
}, [a, r, h, w, x, i, s]), T = Me(function() {
|
|
4219
4215
|
var z = "";
|
|
4220
4216
|
if (f && v.length && x.onFilter) {
|
|
4221
4217
|
var D = A({
|
|
@@ -4227,7 +4223,7 @@ var Ul = process.env.NODE_ENV === "production" ? {
|
|
|
4227
4223
|
});
|
|
4228
4224
|
}
|
|
4229
4225
|
return z;
|
|
4230
|
-
}, [i, b, f, x, v, A]), P =
|
|
4226
|
+
}, [i, b, f, x, v, A]), P = Me(function() {
|
|
4231
4227
|
var z = "";
|
|
4232
4228
|
if (x.guidance) {
|
|
4233
4229
|
var D = r ? "value" : f ? "menu" : "input";
|
|
@@ -5552,13 +5548,13 @@ var U1 = function(t) {
|
|
|
5552
5548
|
if (!I)
|
|
5553
5549
|
return null;
|
|
5554
5550
|
var K = function(H, oe) {
|
|
5555
|
-
var R = H.type, j = H.data, ne = H.isDisabled, le = H.isSelected, ve = H.label, Ge = H.value,
|
|
5551
|
+
var R = H.type, j = H.data, ne = H.isDisabled, le = H.isSelected, ve = H.label, Ge = H.value, Ae = g === j, N = ne ? void 0 : function() {
|
|
5556
5552
|
return r.onOptionHover(j);
|
|
5557
|
-
},
|
|
5553
|
+
}, Le = ne ? void 0 : function() {
|
|
5558
5554
|
return r.selectOption(j);
|
|
5559
5555
|
}, we = "".concat(r.getElementId("option"), "-").concat(oe), Fe = {
|
|
5560
5556
|
id: we,
|
|
5561
|
-
onClick:
|
|
5557
|
+
onClick: Le,
|
|
5562
5558
|
onMouseMove: N,
|
|
5563
5559
|
onMouseOver: N,
|
|
5564
5560
|
tabIndex: -1
|
|
@@ -5572,8 +5568,8 @@ var U1 = function(t) {
|
|
|
5572
5568
|
label: ve,
|
|
5573
5569
|
type: R,
|
|
5574
5570
|
value: Ge,
|
|
5575
|
-
isFocused:
|
|
5576
|
-
innerRef:
|
|
5571
|
+
isFocused: Ae,
|
|
5572
|
+
innerRef: Ae ? r.getFocusedOptionRef : void 0
|
|
5577
5573
|
}), r.formatOptionLabel(H.data, "menu"));
|
|
5578
5574
|
}, $;
|
|
5579
5575
|
if (this.hasOptions())
|
|
@@ -5812,12 +5808,12 @@ var Mc = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
5812
5808
|
}
|
|
5813
5809
|
};
|
|
5814
5810
|
function Nc(e) {
|
|
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 =
|
|
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 = Me(function() {
|
|
5816
5812
|
return u(k, Wt(I), y, {
|
|
5817
5813
|
getOptionValue: v,
|
|
5818
5814
|
getOptionLabel: L
|
|
5819
5815
|
}) ? m(k, l(k)) : void 0;
|
|
5820
|
-
}, [l, m, L, v, k, u, y, I]), P =
|
|
5816
|
+
}, [l, m, L, v, k, u, y, I]), P = Me(function() {
|
|
5821
5817
|
return (o || !E) && T ? r === "first" ? [T].concat(ut(y)) : [].concat(ut(y), [T]) : y;
|
|
5822
5818
|
}, [o, r, E, T, y]), O = ue(function(G, U) {
|
|
5823
5819
|
if (U.action !== "select-option")
|
|
@@ -6940,10 +6936,10 @@ var aa = { exports: {} };
|
|
|
6940
6936
|
try {
|
|
6941
6937
|
if (["x", "X"].indexOf($) > -1)
|
|
6942
6938
|
return new Date(($ === "X" ? 1e3 : 1) * K);
|
|
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(),
|
|
6944
|
-
te && !ie || (
|
|
6945
|
-
var N = H || 0,
|
|
6946
|
-
return ne ? new Date(Date.UTC(Ge,
|
|
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(), Ae = 0;
|
|
6940
|
+
te && !ie || (Ae = ie > 0 ? ie - 1 : le.getMonth());
|
|
6941
|
+
var N = H || 0, Le = oe || 0, we = R || 0, Fe = j || 0;
|
|
6942
|
+
return ne ? new Date(Date.UTC(Ge, Ae, ve, N, Le, we, Fe + 60 * ne.offset * 1e3)) : ee ? new Date(Date.UTC(Ge, Ae, ve, N, Le, we, Fe)) : new Date(Ge, Ae, ve, N, Le, we, Fe);
|
|
6947
6943
|
} catch {
|
|
6948
6944
|
return new Date("");
|
|
6949
6945
|
}
|
|
@@ -7024,7 +7020,7 @@ const Xc = (e, t = "YYYY-MM-DD") => B(e).format(t), e4 = (e, t = "h:mm a") => {
|
|
|
7024
7020
|
return Te(() => {
|
|
7025
7021
|
y(e);
|
|
7026
7022
|
}, [e]), /* @__PURE__ */ n.createElement(
|
|
7027
|
-
|
|
7023
|
+
ke,
|
|
7028
7024
|
{
|
|
7029
7025
|
visible: w,
|
|
7030
7026
|
maxWidth: 900,
|
|
@@ -7045,7 +7041,7 @@ const Xc = (e, t = "YYYY-MM-DD") => B(e).format(t), e4 = (e, t = "h:mm a") => {
|
|
|
7045
7041
|
onClick: f
|
|
7046
7042
|
}
|
|
7047
7043
|
),
|
|
7048
|
-
/* @__PURE__ */ n.createElement(
|
|
7044
|
+
/* @__PURE__ */ n.createElement(ke.Content, { className: "pr-1" }, w && /* @__PURE__ */ n.createElement(
|
|
7049
7045
|
hr,
|
|
7050
7046
|
{
|
|
7051
7047
|
variant: t,
|
|
@@ -7087,7 +7083,7 @@ const Jc = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
|
|
|
7087
7083
|
(b = d == null ? void 0 : d.current.querySelector("select,textarea,input")) == null || b.focus();
|
|
7088
7084
|
}, 0), a == null || a(h);
|
|
7089
7085
|
};
|
|
7090
|
-
return /* @__PURE__ */ n.createElement(
|
|
7086
|
+
return /* @__PURE__ */ n.createElement(ke, { visible: t, onClickOutside: r, ...u }, /* @__PURE__ */ n.createElement(
|
|
7091
7087
|
"span",
|
|
7092
7088
|
{
|
|
7093
7089
|
className: C(
|
|
@@ -7099,7 +7095,7 @@ const Jc = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
|
|
|
7099
7095
|
},
|
|
7100
7096
|
/* @__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 })),
|
|
7101
7097
|
o && /* @__PURE__ */ n.createElement(fr, { size: "medium" })
|
|
7102
|
-
), /* @__PURE__ */ n.createElement(
|
|
7098
|
+
), /* @__PURE__ */ n.createElement(ke.Content, null, /* @__PURE__ */ n.createElement("div", { ref: d, className: C("p-2", i == null ? void 0 : i.children) }, l)));
|
|
7103
7099
|
}, Uc = ({
|
|
7104
7100
|
src: e,
|
|
7105
7101
|
size: t = "large",
|
|
@@ -7474,7 +7470,7 @@ const r4 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7474
7470
|
container(e, t, o, a) {
|
|
7475
7471
|
const r = (i) => o(i, a);
|
|
7476
7472
|
return /* @__PURE__ */ n.createElement(
|
|
7477
|
-
|
|
7473
|
+
ye,
|
|
7478
7474
|
{
|
|
7479
7475
|
appear: !0,
|
|
7480
7476
|
as: be,
|
|
@@ -7499,7 +7495,7 @@ const r4 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7499
7495
|
dismiss(e) {
|
|
7500
7496
|
xr.dismiss(e);
|
|
7501
7497
|
}
|
|
7502
|
-
},
|
|
7498
|
+
}, Ce = {
|
|
7503
7499
|
colors: {
|
|
7504
7500
|
transparent: "transparent",
|
|
7505
7501
|
current: "currentColor",
|
|
@@ -7854,13 +7850,13 @@ const r4 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7854
7850
|
"7.5": "30px"
|
|
7855
7851
|
}
|
|
7856
7852
|
}
|
|
7857
|
-
}, { colors: me } =
|
|
7853
|
+
}, { colors: me } = Ce, ze = {
|
|
7858
7854
|
color: me.gray.darker,
|
|
7859
|
-
fontSize:
|
|
7855
|
+
fontSize: Ce.fontSize.sm,
|
|
7860
7856
|
fontWeight: 400,
|
|
7861
7857
|
cursor: "pointer",
|
|
7862
7858
|
textOverflow: "ellipsis",
|
|
7863
|
-
fontFamily:
|
|
7859
|
+
fontFamily: Ce.extend.fontFamily.sans
|
|
7864
7860
|
}, la = {
|
|
7865
7861
|
global: {
|
|
7866
7862
|
useUTC: !1
|
|
@@ -7945,14 +7941,14 @@ const r4 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7945
7941
|
type: "datetime",
|
|
7946
7942
|
step: 1,
|
|
7947
7943
|
minTickInterval: 24 * 3600 * 1e3,
|
|
7948
|
-
lineColor:
|
|
7944
|
+
lineColor: Ce.colors.gray.darker,
|
|
7949
7945
|
lineWidth: 1,
|
|
7950
7946
|
gridLineWidth: "1",
|
|
7951
7947
|
gridLineColor: "#DEDEDE",
|
|
7952
7948
|
gridLineDashStyle: "dot"
|
|
7953
7949
|
},
|
|
7954
7950
|
yAxis: {
|
|
7955
|
-
lineColor:
|
|
7951
|
+
lineColor: Ce.colors.gray.darker,
|
|
7956
7952
|
lineWidth: 1,
|
|
7957
7953
|
gridLineWidth: "1",
|
|
7958
7954
|
gridLineColor: "#DEDEDE",
|
|
@@ -7980,7 +7976,7 @@ const r4 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7980
7976
|
fontSize: "14px",
|
|
7981
7977
|
color: "#666666",
|
|
7982
7978
|
textTransform: "capitalize",
|
|
7983
|
-
fontFamily:
|
|
7979
|
+
fontFamily: Ce.extend.fontFamily.sans
|
|
7984
7980
|
},
|
|
7985
7981
|
itemMarginBottom: 5,
|
|
7986
7982
|
align: "center",
|
|
@@ -8012,15 +8008,15 @@ const r4 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
8012
8008
|
maxHeight: 120,
|
|
8013
8009
|
width: 220,
|
|
8014
8010
|
navigation: {
|
|
8015
|
-
activeColor:
|
|
8011
|
+
activeColor: Ce.colors.gray.darker,
|
|
8016
8012
|
animation: "true",
|
|
8017
|
-
style:
|
|
8013
|
+
style: Ce.extend.fontFamily.sans
|
|
8018
8014
|
},
|
|
8019
8015
|
padding: 5,
|
|
8020
|
-
backgroundColor:
|
|
8016
|
+
backgroundColor: Ce.colors.white,
|
|
8021
8017
|
itemMarginTop: 1,
|
|
8022
8018
|
itemMarginBottom: 3,
|
|
8023
|
-
itemStyle:
|
|
8019
|
+
itemStyle: Ce.extend.fontFamily.sans,
|
|
8024
8020
|
style: { overflow: "hidden" },
|
|
8025
8021
|
align: "left",
|
|
8026
8022
|
layout: "horizontal",
|
|
@@ -11271,7 +11267,7 @@ export {
|
|
|
11271
11267
|
Pu as PlayIcon,
|
|
11272
11268
|
Zu as PlusIcon,
|
|
11273
11269
|
Xu as PolicyIcon,
|
|
11274
|
-
|
|
11270
|
+
ke as Popover,
|
|
11275
11271
|
Tt as PopoverList,
|
|
11276
11272
|
U4 as PrintIcon,
|
|
11277
11273
|
Yu as ProductsIcon,
|
|
@@ -11366,5 +11362,5 @@ export {
|
|
|
11366
11362
|
Kn as isZeroDecimal,
|
|
11367
11363
|
$n as numberFormat,
|
|
11368
11364
|
Jo as roundNumber,
|
|
11369
|
-
|
|
11365
|
+
Ce as theme
|
|
11370
11366
|
};
|