@xola/ui-kit 2.1.38 → 2.1.40
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 +81 -75
- 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 Ie, Dialog as Ke, Switch as Tn } 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 Se, cloneElement as bt, Fragment as be, Children as Fe, createContext as wt, useRef as he, useCallback as ue, useMemo as
|
|
4
|
+
import n, { useState as re, useEffect as Se, cloneElement as bt, Fragment as be, Children as Fe, createContext as wt, useRef as he, useCallback as ue, useMemo as Ee, useContext as He, useLayoutEffect as f1, forwardRef as Rn, createElement as je, Component as pa } from "react";
|
|
5
5
|
import E from "clsx";
|
|
6
6
|
import { range as ha, round as ot, isNumber as ga, isString as vr, isEmpty as br, isFunction as fn, isArray as vn, merge as _e } from "lodash";
|
|
7
7
|
import Gn from "@tippyjs/react";
|
|
@@ -27,7 +27,7 @@ const Ca = ({
|
|
|
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 @@ Ca.propTypes = {
|
|
|
51
51
|
children: c.node
|
|
52
52
|
};
|
|
53
53
|
const xa = ({ 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 Ha = {
|
|
|
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 Ha = {
|
|
|
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 Ha = {
|
|
|
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) => Fe.toArray(e).filter((o) => o.type === t), Wa = "_main_jm0tk_1", Za = {
|
|
821
821
|
main: Wa
|
|
822
|
-
}, F1 = {},
|
|
823
|
-
const i = ja(t,
|
|
822
|
+
}, F1 = {}, Le = ({ className: e, children: t, skidding: o = 0, distance: a = 10, ...r }) => {
|
|
823
|
+
const i = ja(t, Le.Content), l = Fe.toArray(t).filter((s) => s.type !== Le.Content);
|
|
824
824
|
return /* @__PURE__ */ n.createElement(
|
|
825
825
|
Gn,
|
|
826
826
|
{
|
|
@@ -841,7 +841,7 @@ const ja = (e, t) => Fe.toArray(e).filter((o) => o.type === t), Wa = "_main_jm0t
|
|
|
841
841
|
/* @__PURE__ */ n.createElement("span", null, l)
|
|
842
842
|
);
|
|
843
843
|
};
|
|
844
|
-
|
|
844
|
+
Le.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
|
+
Le.Content = Xn;
|
|
857
857
|
const St = ({ placement: e = "bottom", className: t, children: o, ...a }) => {
|
|
858
858
|
const r = Fe.toArray(o), i = r.filter((d) => d.type !== St.Item), l = r.length - i.length, s = r.map((d, m) => d.type === St.Item ? n.cloneElement(d, { position: m, total: l }) : null), u = /* @__PURE__ */ n.createElement(
|
|
859
|
-
|
|
859
|
+
Le.Content,
|
|
860
860
|
{
|
|
861
861
|
className: E(F1, "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
|
+
Le,
|
|
867
867
|
{
|
|
868
868
|
content: u,
|
|
869
869
|
placement: e,
|
|
@@ -964,8 +964,8 @@ const S1 = {
|
|
|
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 S1 = {
|
|
|
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: E("ease-out duration-300"),
|
|
@@ -1255,7 +1255,7 @@ const j1 = 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
|
), Z0++)
|
|
1257
1257
|
}), $3 = ({ children: e }) => {
|
|
1258
|
-
const t = he(1), o = ue(() => t.current++, [t]), a =
|
|
1258
|
+
const t = he(1), o = ue(() => t.current++, [t]), a = Ee(() => ({ generateId: o }), [o]);
|
|
1259
1259
|
return /* @__PURE__ */ n.createElement(j1.Provider, { value: a }, e);
|
|
1260
1260
|
}, En = (e) => {
|
|
1261
1261
|
const { generateId: t } = He(j1), [o] = re(() => `${e}-${t()}`);
|
|
@@ -1500,15 +1500,20 @@ const Kt = {
|
|
|
1500
1500
|
success: "text-success",
|
|
1501
1501
|
danger: "text-danger",
|
|
1502
1502
|
caution: "text-caution"
|
|
1503
|
-
}, er = wt(), Pe = ({ children: e, className: t, currency: o,
|
|
1503
|
+
}, er = wt(), Pe = ({ children: e, className: t, currency: o, locale: a, ...r }) => {
|
|
1504
|
+
const i = Ee(() => ({ currency: o, locale: a }), [o, a]);
|
|
1505
|
+
return /* @__PURE__ */ n.createElement(er.Provider, { value: i }, /* @__PURE__ */ n.createElement("table", { className: E("ui-breakdown", "w-full", t), ...r }, /* @__PURE__ */ n.createElement("tbody", null, e)));
|
|
1506
|
+
};
|
|
1504
1507
|
Pe.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 U1 = ({ children: e, info: t, methodIcon: o, secondary: a, value: r, className: i, color: l = "default", ...s }) => {
|
|
1510
|
-
|
|
1511
|
-
|
|
1514
|
+
var m;
|
|
1515
|
+
const { currency: u, locale: d } = (m = He(er)) != null ? m : {};
|
|
1516
|
+
return /* @__PURE__ */ n.createElement("tr", { className: E("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" }, ga(r) ? /* @__PURE__ */ n.createElement(Ze, { shouldRemoveTrailingZeroes: !1, currency: u, locale: d }, r) : /* @__PURE__ */ n.createElement("span", null, r)));
|
|
1512
1517
|
};
|
|
1513
1518
|
U1.propTypes = {
|
|
1514
1519
|
children: c.node,
|
|
@@ -1522,8 +1527,9 @@ U1.propTypes = {
|
|
|
1522
1527
|
Pe.Item = U1;
|
|
1523
1528
|
Pe.Item.displayName = "Breakdown.Item";
|
|
1524
1529
|
const Q1 = ({ children: e, info: t, value: o, className: a, color: r = "black", ...i }) => {
|
|
1525
|
-
|
|
1526
|
-
|
|
1530
|
+
var u;
|
|
1531
|
+
const { currency: l, locale: s } = (u = He(er)) != null ? u : {};
|
|
1532
|
+
return /* @__PURE__ */ n.createElement("tr", { className: E("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(Ze, { shouldRemoveTrailingZeroes: !1, currency: l, locale: s }, o)));
|
|
1527
1533
|
};
|
|
1528
1534
|
Q1.propTypes = {
|
|
1529
1535
|
children: c.node,
|
|
@@ -1832,7 +1838,7 @@ function wi() {
|
|
|
1832
1838
|
function fe() {
|
|
1833
1839
|
return se = ge < to ? ce(nt, ge++) : 0, et++, se === 10 && (et = 1, en++), se;
|
|
1834
1840
|
}
|
|
1835
|
-
function
|
|
1841
|
+
function ke() {
|
|
1836
1842
|
return ce(nt, ge);
|
|
1837
1843
|
}
|
|
1838
1844
|
function Mt() {
|
|
@@ -1883,14 +1889,14 @@ function Bt(e) {
|
|
|
1883
1889
|
return eo(xt(ge - 1, An(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1884
1890
|
}
|
|
1885
1891
|
function Ci(e) {
|
|
1886
|
-
for (; (se =
|
|
1892
|
+
for (; (se = ke()) && se < 33; )
|
|
1887
1893
|
fe();
|
|
1888
1894
|
return ht(e) > 2 || ht(se) > 3 ? "" : " ";
|
|
1889
1895
|
}
|
|
1890
1896
|
function xi(e, t) {
|
|
1891
1897
|
for (; --t && fe() && !(se < 48 || se > 102 || se > 57 && se < 65 || se > 70 && se < 97); )
|
|
1892
1898
|
;
|
|
1893
|
-
return xt(e, Mt() + (t < 6 &&
|
|
1899
|
+
return xt(e, Mt() + (t < 6 && ke() == 32 && fe() == 32));
|
|
1894
1900
|
}
|
|
1895
1901
|
function An(e) {
|
|
1896
1902
|
for (; fe(); )
|
|
@@ -1912,12 +1918,12 @@ function An(e) {
|
|
|
1912
1918
|
}
|
|
1913
1919
|
function Ei(e, t) {
|
|
1914
1920
|
for (; fe() && e + se !== 47 + 10; )
|
|
1915
|
-
if (e + se === 42 + 42 &&
|
|
1921
|
+
if (e + se === 42 + 42 && ke() === 47)
|
|
1916
1922
|
break;
|
|
1917
1923
|
return "/*" + xt(t, ge - 1) + "*" + $t(e === 47 ? e : fe());
|
|
1918
1924
|
}
|
|
1919
1925
|
function yi(e) {
|
|
1920
|
-
for (; !ht(
|
|
1926
|
+
for (; !ht(ke()); )
|
|
1921
1927
|
fe();
|
|
1922
1928
|
return xt(e, ge);
|
|
1923
1929
|
}
|
|
@@ -1947,7 +1953,7 @@ function Nt(e, t, o, a, r, i, l, s, u) {
|
|
|
1947
1953
|
I += xi(Mt() - 1, 7);
|
|
1948
1954
|
continue;
|
|
1949
1955
|
case 47:
|
|
1950
|
-
switch (
|
|
1956
|
+
switch (ke()) {
|
|
1951
1957
|
case 42:
|
|
1952
1958
|
case 47:
|
|
1953
1959
|
yt(ki(Ei(fe(), Mt()), t, o), u);
|
|
@@ -2004,7 +2010,7 @@ function Nt(e, t, o, a, r, i, l, s, u) {
|
|
|
2004
2010
|
s[d++] = (xe(I) - 1) * v, v = 1;
|
|
2005
2011
|
break;
|
|
2006
2012
|
case 64:
|
|
2007
|
-
|
|
2013
|
+
ke() === 45 && (I += Bt(fe())), b = ke(), m = g = xe(A = I += yi(Mt())), L++;
|
|
2008
2014
|
break;
|
|
2009
2015
|
case 45:
|
|
2010
2016
|
w === 45 && xe(I) == 2 && (h = 0);
|
|
@@ -2063,7 +2069,7 @@ function Bi(e) {
|
|
|
2063
2069
|
};
|
|
2064
2070
|
}
|
|
2065
2071
|
var Ni = function(t, o, a) {
|
|
2066
|
-
for (var r = 0, i = 0; r = i, i =
|
|
2072
|
+
for (var r = 0, i = 0; r = i, i = ke(), r === 38 && i === 12 && (o[a] = 1), !ht(i); )
|
|
2067
2073
|
fe();
|
|
2068
2074
|
return xt(t, ge);
|
|
2069
2075
|
}, Vi = function(t, o) {
|
|
@@ -2071,14 +2077,14 @@ var Ni = function(t, o, a) {
|
|
|
2071
2077
|
do
|
|
2072
2078
|
switch (ht(r)) {
|
|
2073
2079
|
case 0:
|
|
2074
|
-
r === 38 &&
|
|
2080
|
+
r === 38 && ke() === 12 && (o[a] = 1), t[a] += Ni(ge - 1, o, a);
|
|
2075
2081
|
break;
|
|
2076
2082
|
case 2:
|
|
2077
2083
|
t[a] += Bt(r);
|
|
2078
2084
|
break;
|
|
2079
2085
|
case 4:
|
|
2080
2086
|
if (r === 44) {
|
|
2081
|
-
t[++a] =
|
|
2087
|
+
t[++a] = ke() === 58 ? "&\f" : "", o[a] = t[a].length;
|
|
2082
2088
|
break;
|
|
2083
2089
|
}
|
|
2084
2090
|
default:
|
|
@@ -2441,8 +2447,8 @@ function Pi() {
|
|
|
2441
2447
|
}
|
|
2442
2448
|
function k(B) {
|
|
2443
2449
|
if (typeof B == "object" && B !== null) {
|
|
2444
|
-
var
|
|
2445
|
-
switch (
|
|
2450
|
+
var Me = B.$$typeof;
|
|
2451
|
+
switch (Me) {
|
|
2446
2452
|
case t:
|
|
2447
2453
|
var we = B.type;
|
|
2448
2454
|
switch (we) {
|
|
@@ -2463,11 +2469,11 @@ function Pi() {
|
|
|
2463
2469
|
case l:
|
|
2464
2470
|
return Ve;
|
|
2465
2471
|
default:
|
|
2466
|
-
return
|
|
2472
|
+
return Me;
|
|
2467
2473
|
}
|
|
2468
2474
|
}
|
|
2469
2475
|
case o:
|
|
2470
|
-
return
|
|
2476
|
+
return Me;
|
|
2471
2477
|
}
|
|
2472
2478
|
}
|
|
2473
2479
|
}
|
|
@@ -2508,10 +2514,10 @@ function Pi() {
|
|
|
2508
2514
|
function Re(B) {
|
|
2509
2515
|
return k(B) === r;
|
|
2510
2516
|
}
|
|
2511
|
-
function
|
|
2517
|
+
function Ae(B) {
|
|
2512
2518
|
return k(B) === g;
|
|
2513
2519
|
}
|
|
2514
|
-
Y.AsyncMode = x, Y.ConcurrentMode = C, Y.ContextConsumer = I, Y.ContextProvider = M, Y.Element = S, Y.ForwardRef = Z, Y.Fragment = O, Y.Lazy = R, Y.Memo = U, Y.Portal = G, Y.Profiler = z, Y.StrictMode = K, Y.Suspense = $, Y.isAsyncMode = q, Y.isConcurrentMode = te, Y.isContextConsumer = ie, Y.isContextProvider = _, Y.isElement = D, Y.isForwardRef = oe, Y.isFragment = T, Y.isLazy = j, Y.isMemo = ne, Y.isPortal = le, Y.isProfiler = ve, Y.isStrictMode = Re, Y.isSuspense =
|
|
2520
|
+
Y.AsyncMode = x, Y.ConcurrentMode = C, Y.ContextConsumer = I, Y.ContextProvider = M, Y.Element = S, Y.ForwardRef = Z, Y.Fragment = O, Y.Lazy = R, Y.Memo = U, Y.Portal = G, Y.Profiler = z, Y.StrictMode = K, Y.Suspense = $, Y.isAsyncMode = q, Y.isConcurrentMode = te, Y.isContextConsumer = ie, Y.isContextProvider = _, Y.isElement = D, Y.isForwardRef = oe, Y.isFragment = T, Y.isLazy = j, Y.isMemo = ne, Y.isPortal = le, Y.isProfiler = ve, Y.isStrictMode = Re, Y.isSuspense = Ae, Y.isValidElementType = A, Y.typeOf = k;
|
|
2515
2521
|
}()), Y;
|
|
2516
2522
|
}
|
|
2517
2523
|
(function(e) {
|
|
@@ -3580,7 +3586,7 @@ var Ks = function(t) {
|
|
|
3580
3586
|
zIndex: 1
|
|
3581
3587
|
};
|
|
3582
3588
|
}, $s = function(t) {
|
|
3583
|
-
var o = t.appendTo, a = t.children, r = t.controlElement, i = t.innerProps, l = t.menuPlacement, s = t.menuPosition, u = he(null), d = he(null), m = re(Lo(l)), g = Be(m, 2), b = g[0], y = g[1], w =
|
|
3589
|
+
var o = t.appendTo, a = t.children, r = t.controlElement, i = t.innerProps, l = t.menuPlacement, s = t.menuPosition, u = he(null), d = he(null), m = re(Lo(l)), g = Be(m, 2), b = g[0], y = g[1], w = Ee(function() {
|
|
3584
3590
|
return {
|
|
3585
3591
|
setPortalPlacement: y
|
|
3586
3592
|
};
|
|
@@ -4181,9 +4187,9 @@ var U2 = process.env.NODE_ENV === "production" ? {
|
|
|
4181
4187
|
return "".concat(a).concat(o ? " for search term " + o : "", ".");
|
|
4182
4188
|
}
|
|
4183
4189
|
}, _2 = 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, g = u.getOptionLabel, b = u.inputValue, y = u.isMulti, w = u.isOptionDisabled, h = u.isSearchable, f = u.menuIsOpen, v = u.options, L = u.screenReaderStatus, A = u.tabSelectsValue, k = u["aria-label"], x = u["aria-live"], C =
|
|
4190
|
+
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, g = u.getOptionLabel, b = u.inputValue, y = u.isMulti, w = u.isOptionDisabled, h = u.isSearchable, f = u.menuIsOpen, v = u.options, L = u.screenReaderStatus, A = u.tabSelectsValue, k = u["aria-label"], x = u["aria-live"], C = Ee(function() {
|
|
4185
4191
|
return H(H({}, Q2), m || {});
|
|
4186
|
-
}, [m]), I =
|
|
4192
|
+
}, [m]), I = Ee(function() {
|
|
4187
4193
|
var G = "";
|
|
4188
4194
|
if (o && C.onChange) {
|
|
4189
4195
|
var z = o.option, K = o.options, $ = o.removedValue, ee = o.removedValues, q = o.value, te = function(ne) {
|
|
@@ -4196,7 +4202,7 @@ var U2 = process.env.NODE_ENV === "production" ? {
|
|
|
4196
4202
|
G = C.onChange(T);
|
|
4197
4203
|
}
|
|
4198
4204
|
return G;
|
|
4199
|
-
}, [o, C, w, s, g]), M =
|
|
4205
|
+
}, [o, C, w, s, g]), M = Ee(function() {
|
|
4200
4206
|
var G = "", z = a || r, K = !!(a && s && s.includes(a));
|
|
4201
4207
|
if (z && C.onFocus) {
|
|
4202
4208
|
var $ = {
|
|
@@ -4211,7 +4217,7 @@ var U2 = process.env.NODE_ENV === "production" ? {
|
|
|
4211
4217
|
G = C.onFocus($);
|
|
4212
4218
|
}
|
|
4213
4219
|
return G;
|
|
4214
|
-
}, [a, r, g, w, C, i, s]), S =
|
|
4220
|
+
}, [a, r, g, w, C, i, s]), S = Ee(function() {
|
|
4215
4221
|
var G = "";
|
|
4216
4222
|
if (f && v.length && C.onFilter) {
|
|
4217
4223
|
var z = L({
|
|
@@ -4223,7 +4229,7 @@ var U2 = process.env.NODE_ENV === "production" ? {
|
|
|
4223
4229
|
});
|
|
4224
4230
|
}
|
|
4225
4231
|
return G;
|
|
4226
|
-
}, [i, b, f, C, v, L]), Z =
|
|
4232
|
+
}, [i, b, f, C, v, L]), Z = Ee(function() {
|
|
4227
4233
|
var G = "";
|
|
4228
4234
|
if (C.guidance) {
|
|
4229
4235
|
var z = r ? "value" : f ? "menu" : "input";
|
|
@@ -5548,13 +5554,13 @@ var Uo = function(t) {
|
|
|
5548
5554
|
if (!I)
|
|
5549
5555
|
return null;
|
|
5550
5556
|
var K = function(D, oe) {
|
|
5551
|
-
var T = D.type, j = D.data, ne = D.isDisabled, le = D.isSelected, ve = D.label, Re = D.value,
|
|
5557
|
+
var T = D.type, j = D.data, ne = D.isDisabled, le = D.isSelected, ve = D.label, Re = D.value, Ae = h === j, B = ne ? void 0 : function() {
|
|
5552
5558
|
return r.onOptionHover(j);
|
|
5553
|
-
},
|
|
5559
|
+
}, Me = ne ? void 0 : function() {
|
|
5554
5560
|
return r.selectOption(j);
|
|
5555
5561
|
}, we = "".concat(r.getElementId("option"), "-").concat(oe), Ve = {
|
|
5556
5562
|
id: we,
|
|
5557
|
-
onClick:
|
|
5563
|
+
onClick: Me,
|
|
5558
5564
|
onMouseMove: B,
|
|
5559
5565
|
onMouseOver: B,
|
|
5560
5566
|
tabIndex: -1
|
|
@@ -5568,8 +5574,8 @@ var Uo = function(t) {
|
|
|
5568
5574
|
label: ve,
|
|
5569
5575
|
type: T,
|
|
5570
5576
|
value: Re,
|
|
5571
|
-
isFocused:
|
|
5572
|
-
innerRef:
|
|
5577
|
+
isFocused: Ae,
|
|
5578
|
+
innerRef: Ae ? r.getFocusedOptionRef : void 0
|
|
5573
5579
|
}), r.formatOptionLabel(D.data, "menu"));
|
|
5574
5580
|
}, $;
|
|
5575
5581
|
if (this.hasOptions())
|
|
@@ -5808,12 +5814,12 @@ var Ml = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
5808
5814
|
}
|
|
5809
5815
|
};
|
|
5810
5816
|
function Bl(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, g = e.onCreateOption, b = e.options, y = b === void 0 ? [] : b, w = e.onChange, h = Ye(e, Ml), f = h.getOptionValue, v = f === void 0 ? Oo : f, L = h.getOptionLabel, A = L === void 0 ? Do : L, k = h.inputValue, x = h.isLoading, C = h.isMulti, I = h.value, M = h.name, S =
|
|
5817
|
+
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, g = e.onCreateOption, b = e.options, y = b === void 0 ? [] : b, w = e.onChange, h = Ye(e, Ml), f = h.getOptionValue, v = f === void 0 ? Oo : f, L = h.getOptionLabel, A = L === void 0 ? Do : L, k = h.inputValue, x = h.isLoading, C = h.isMulti, I = h.value, M = h.name, S = Ee(function() {
|
|
5812
5818
|
return u(k, Wt(I), y, {
|
|
5813
5819
|
getOptionValue: v,
|
|
5814
5820
|
getOptionLabel: A
|
|
5815
5821
|
}) ? m(k, l(k)) : void 0;
|
|
5816
|
-
}, [l, m, A, v, k, u, y, I]), Z =
|
|
5822
|
+
}, [l, m, A, v, k, u, y, I]), Z = Ee(function() {
|
|
5817
5823
|
return (o || !x) && S ? r === "first" ? [S].concat(ut(y)) : [].concat(ut(y), [S]) : y;
|
|
5818
5824
|
}, [o, r, x, S, y]), O = ue(function(R, U) {
|
|
5819
5825
|
if (U.action !== "select-option")
|
|
@@ -6936,10 +6942,10 @@ var aa = { exports: {} };
|
|
|
6936
6942
|
try {
|
|
6937
6943
|
if (["x", "X"].indexOf($) > -1)
|
|
6938
6944
|
return new Date(($ === "X" ? 1e3 : 1) * K);
|
|
6939
|
-
var q = w($)(K), te = q.year, ie = q.month, _ = q.day, D = q.hours, oe = q.minutes, T = q.seconds, j = q.milliseconds, ne = q.zone, le = new Date(), ve = _ || (te || ie ? 1 : le.getDate()), Re = te || le.getFullYear(),
|
|
6940
|
-
te && !ie || (
|
|
6941
|
-
var B = D || 0,
|
|
6942
|
-
return ne ? new Date(Date.UTC(Re,
|
|
6945
|
+
var q = w($)(K), te = q.year, ie = q.month, _ = q.day, D = q.hours, oe = q.minutes, T = q.seconds, j = q.milliseconds, ne = q.zone, le = new Date(), ve = _ || (te || ie ? 1 : le.getDate()), Re = te || le.getFullYear(), Ae = 0;
|
|
6946
|
+
te && !ie || (Ae = ie > 0 ? ie - 1 : le.getMonth());
|
|
6947
|
+
var B = D || 0, Me = oe || 0, we = T || 0, Ve = j || 0;
|
|
6948
|
+
return ne ? new Date(Date.UTC(Re, Ae, ve, B, Me, we, Ve + 60 * ne.offset * 1e3)) : ee ? new Date(Date.UTC(Re, Ae, ve, B, Me, we, Ve)) : new Date(Re, Ae, ve, B, Me, we, Ve);
|
|
6943
6949
|
} catch {
|
|
6944
6950
|
return new Date("");
|
|
6945
6951
|
}
|
|
@@ -7020,7 +7026,7 @@ const Xl = (e, t = "YYYY-MM-DD") => N(e).format(t), e5 = (e, t = "h:mm a") => {
|
|
|
7020
7026
|
return Se(() => {
|
|
7021
7027
|
y(e);
|
|
7022
7028
|
}, [e]), /* @__PURE__ */ n.createElement(
|
|
7023
|
-
|
|
7029
|
+
Le,
|
|
7024
7030
|
{
|
|
7025
7031
|
visible: w,
|
|
7026
7032
|
maxWidth: 900,
|
|
@@ -7041,7 +7047,7 @@ const Xl = (e, t = "YYYY-MM-DD") => N(e).format(t), e5 = (e, t = "h:mm a") => {
|
|
|
7041
7047
|
onClick: f
|
|
7042
7048
|
}
|
|
7043
7049
|
),
|
|
7044
|
-
/* @__PURE__ */ n.createElement(
|
|
7050
|
+
/* @__PURE__ */ n.createElement(Le.Content, { className: "pr-1" }, w && /* @__PURE__ */ n.createElement(
|
|
7045
7051
|
gr,
|
|
7046
7052
|
{
|
|
7047
7053
|
variant: t,
|
|
@@ -7083,7 +7089,7 @@ const Jl = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
|
|
|
7083
7089
|
(b = d == null ? void 0 : d.current.querySelector("select,textarea,input")) == null || b.focus();
|
|
7084
7090
|
}, 0), a == null || a(g);
|
|
7085
7091
|
};
|
|
7086
|
-
return /* @__PURE__ */ n.createElement(
|
|
7092
|
+
return /* @__PURE__ */ n.createElement(Le, { visible: t, onClickOutside: r, ...u }, /* @__PURE__ */ n.createElement(
|
|
7087
7093
|
"span",
|
|
7088
7094
|
{
|
|
7089
7095
|
className: E(
|
|
@@ -7095,7 +7101,7 @@ const Jl = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
|
|
|
7095
7101
|
},
|
|
7096
7102
|
/* @__PURE__ */ n.createElement("span", { className: E("border-b border-b-black font-bold text-black", i == null ? void 0 : i.textField) }, /* @__PURE__ */ n.createElement(Jl, { value: e, error: s })),
|
|
7097
7103
|
o && /* @__PURE__ */ n.createElement(fr, { size: "medium" })
|
|
7098
|
-
), /* @__PURE__ */ n.createElement(
|
|
7104
|
+
), /* @__PURE__ */ n.createElement(Le.Content, null, /* @__PURE__ */ n.createElement("div", { ref: d, className: E("p-2", i == null ? void 0 : i.children) }, l)));
|
|
7099
7105
|
}, Ul = ({
|
|
7100
7106
|
src: e,
|
|
7101
7107
|
size: t = "large",
|
|
@@ -7470,7 +7476,7 @@ const r5 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7470
7476
|
container(e, t, o, a) {
|
|
7471
7477
|
const r = (i) => o(i, a);
|
|
7472
7478
|
return /* @__PURE__ */ n.createElement(
|
|
7473
|
-
|
|
7479
|
+
Ie,
|
|
7474
7480
|
{
|
|
7475
7481
|
appear: !0,
|
|
7476
7482
|
as: be,
|
|
@@ -7495,7 +7501,7 @@ const r5 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7495
7501
|
dismiss(e) {
|
|
7496
7502
|
Cr.dismiss(e);
|
|
7497
7503
|
}
|
|
7498
|
-
},
|
|
7504
|
+
}, ye = {
|
|
7499
7505
|
colors: {
|
|
7500
7506
|
transparent: "transparent",
|
|
7501
7507
|
current: "currentColor",
|
|
@@ -7850,13 +7856,13 @@ const r5 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7850
7856
|
"7.5": "30px"
|
|
7851
7857
|
}
|
|
7852
7858
|
}
|
|
7853
|
-
}, { colors: me } =
|
|
7859
|
+
}, { colors: me } = ye, Ge = {
|
|
7854
7860
|
color: me.gray.darker,
|
|
7855
|
-
fontSize:
|
|
7861
|
+
fontSize: ye.fontSize.sm,
|
|
7856
7862
|
fontWeight: 400,
|
|
7857
7863
|
cursor: "pointer",
|
|
7858
7864
|
textOverflow: "ellipsis",
|
|
7859
|
-
fontFamily:
|
|
7865
|
+
fontFamily: ye.extend.fontFamily.sans
|
|
7860
7866
|
}, la = {
|
|
7861
7867
|
global: {
|
|
7862
7868
|
useUTC: !1
|
|
@@ -7941,14 +7947,14 @@ const r5 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7941
7947
|
type: "datetime",
|
|
7942
7948
|
step: 1,
|
|
7943
7949
|
minTickInterval: 24 * 3600 * 1e3,
|
|
7944
|
-
lineColor:
|
|
7950
|
+
lineColor: ye.colors.gray.darker,
|
|
7945
7951
|
lineWidth: 1,
|
|
7946
7952
|
gridLineWidth: "1",
|
|
7947
7953
|
gridLineColor: "#DEDEDE",
|
|
7948
7954
|
gridLineDashStyle: "dot"
|
|
7949
7955
|
},
|
|
7950
7956
|
yAxis: {
|
|
7951
|
-
lineColor:
|
|
7957
|
+
lineColor: ye.colors.gray.darker,
|
|
7952
7958
|
lineWidth: 1,
|
|
7953
7959
|
gridLineWidth: "1",
|
|
7954
7960
|
gridLineColor: "#DEDEDE",
|
|
@@ -7976,7 +7982,7 @@ const r5 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
7976
7982
|
fontSize: "14px",
|
|
7977
7983
|
color: "#666666",
|
|
7978
7984
|
textTransform: "capitalize",
|
|
7979
|
-
fontFamily:
|
|
7985
|
+
fontFamily: ye.extend.fontFamily.sans
|
|
7980
7986
|
},
|
|
7981
7987
|
itemMarginBottom: 5,
|
|
7982
7988
|
align: "center",
|
|
@@ -8008,15 +8014,15 @@ const r5 = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3
|
|
|
8008
8014
|
maxHeight: 120,
|
|
8009
8015
|
width: 220,
|
|
8010
8016
|
navigation: {
|
|
8011
|
-
activeColor:
|
|
8017
|
+
activeColor: ye.colors.gray.darker,
|
|
8012
8018
|
animation: "true",
|
|
8013
|
-
style:
|
|
8019
|
+
style: ye.extend.fontFamily.sans
|
|
8014
8020
|
},
|
|
8015
8021
|
padding: 5,
|
|
8016
|
-
backgroundColor:
|
|
8022
|
+
backgroundColor: ye.colors.white,
|
|
8017
8023
|
itemMarginTop: 1,
|
|
8018
8024
|
itemMarginBottom: 3,
|
|
8019
|
-
itemStyle:
|
|
8025
|
+
itemStyle: ye.extend.fontFamily.sans,
|
|
8020
8026
|
style: { overflow: "hidden" },
|
|
8021
8027
|
align: "left",
|
|
8022
8028
|
layout: "horizontal",
|
|
@@ -11517,7 +11523,7 @@ export {
|
|
|
11517
11523
|
Q5 as PlayMarketBadge,
|
|
11518
11524
|
P4 as PlusIcon,
|
|
11519
11525
|
X4 as PolicyIcon,
|
|
11520
|
-
|
|
11526
|
+
Le as Popover,
|
|
11521
11527
|
St as PopoverList,
|
|
11522
11528
|
_5 as PrintIcon,
|
|
11523
11529
|
Y4 as ProductsIcon,
|
|
@@ -11612,5 +11618,5 @@ export {
|
|
|
11612
11618
|
Kn as isZeroDecimal,
|
|
11613
11619
|
$n as numberFormat,
|
|
11614
11620
|
Y1 as roundNumber,
|
|
11615
|
-
|
|
11621
|
+
ye as theme
|
|
11616
11622
|
};
|