@xola/ui-kit 2.3.22 → 2.3.24
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 -85
- package/build/ui-kit.umd.js +8 -8
- package/package.json +1 -1
package/build/ui-kit.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Transition as
|
|
1
|
+
import { Transition as Te, Dialog as nt, Switch as Xn } from "@headlessui/react";
|
|
2
2
|
import c from "prop-types";
|
|
3
3
|
import * as _ from "react";
|
|
4
|
-
import n, { useState as ne, useEffect as
|
|
4
|
+
import n, { useState as ne, useEffect as Fe, cloneElement as Lt, forwardRef as je, Fragment as Le, Children as ze, createContext as Mt, useRef as we, useCallback as he, useMemo as Ae, useContext as Re, useLayoutEffect as H1, createElement as Xe, Component as Da } from "react";
|
|
5
5
|
import x from "clsx";
|
|
6
6
|
import { range as Ga, round as ut, isNumber as Oa, isString as Sr, isEmpty as Vr, kebabCase as za, isFunction as Mn, isArray as An, merge as et } from "lodash";
|
|
7
7
|
import rn from "@tippyjs/react";
|
|
@@ -44,7 +44,7 @@ const _a = ({
|
|
|
44
44
|
children: l,
|
|
45
45
|
...u
|
|
46
46
|
}) => /* @__PURE__ */ n.createElement(
|
|
47
|
-
|
|
47
|
+
Te,
|
|
48
48
|
{
|
|
49
49
|
show: e,
|
|
50
50
|
appear: t,
|
|
@@ -68,7 +68,7 @@ _a.propTypes = {
|
|
|
68
68
|
children: c.node
|
|
69
69
|
};
|
|
70
70
|
const Ja = ({ isOpen: e, children: t }) => /* @__PURE__ */ n.createElement("div", { className: "overflow-hidden" }, /* @__PURE__ */ n.createElement(
|
|
71
|
-
|
|
71
|
+
Te,
|
|
72
72
|
{
|
|
73
73
|
show: e,
|
|
74
74
|
appear: e,
|
|
@@ -3829,7 +3829,7 @@ const Hs = {
|
|
|
3829
3829
|
...l
|
|
3830
3830
|
}) => {
|
|
3831
3831
|
const [u, d] = ne(!1);
|
|
3832
|
-
|
|
3832
|
+
Fe(() => {
|
|
3833
3833
|
if (o && !t) {
|
|
3834
3834
|
d(!0);
|
|
3835
3835
|
const g = setTimeout(() => d(!1), 3e3);
|
|
@@ -3856,7 +3856,7 @@ const Hs = {
|
|
|
3856
3856
|
)
|
|
3857
3857
|
},
|
|
3858
3858
|
m && /* @__PURE__ */ n.createElement(
|
|
3859
|
-
|
|
3859
|
+
Te,
|
|
3860
3860
|
{
|
|
3861
3861
|
appear: !0,
|
|
3862
3862
|
as: "span",
|
|
@@ -4065,7 +4065,7 @@ const Dt = typeof window > "u" ? !1 : window.navigator.userAgent.includes("Macin
|
|
|
4065
4065
|
return t && o || a;
|
|
4066
4066
|
}, Ps = () => {
|
|
4067
4067
|
const [e, t] = ne(0);
|
|
4068
|
-
return
|
|
4068
|
+
return Fe(() => {
|
|
4069
4069
|
const o = () => {
|
|
4070
4070
|
t(window.innerHeight);
|
|
4071
4071
|
};
|
|
@@ -4082,7 +4082,7 @@ const Dt = typeof window > "u" ? !1 : window.navigator.userAgent.includes("Macin
|
|
|
4082
4082
|
}, Zt = je(
|
|
4083
4083
|
({ isOpen: e = !1, title: t, size: o = "medium", content: a, onClose: r, classNames: i = {}, position: s = "right" }, l) => {
|
|
4084
4084
|
const u = Ps(), d = Ws();
|
|
4085
|
-
return /* @__PURE__ */ n.createElement(
|
|
4085
|
+
return /* @__PURE__ */ n.createElement(Te.Root, { ref: l, show: e, as: Le }, /* @__PURE__ */ n.createElement(
|
|
4086
4086
|
nt,
|
|
4087
4087
|
{
|
|
4088
4088
|
as: "div",
|
|
@@ -4099,7 +4099,7 @@ const Dt = typeof window > "u" ? !1 : window.navigator.userAgent.includes("Macin
|
|
|
4099
4099
|
)
|
|
4100
4100
|
},
|
|
4101
4101
|
/* @__PURE__ */ n.createElement(
|
|
4102
|
-
|
|
4102
|
+
Te.Child,
|
|
4103
4103
|
{
|
|
4104
4104
|
as: Le,
|
|
4105
4105
|
enter: "ease-in-out duration-500",
|
|
@@ -4129,7 +4129,7 @@ const Dt = typeof window > "u" ? !1 : window.navigator.userAgent.includes("Macin
|
|
|
4129
4129
|
)
|
|
4130
4130
|
},
|
|
4131
4131
|
/* @__PURE__ */ n.createElement(
|
|
4132
|
-
|
|
4132
|
+
Te.Child,
|
|
4133
4133
|
{
|
|
4134
4134
|
as: Le,
|
|
4135
4135
|
enter: "transform transition ease-in-out duration-500 sm:duration-700",
|
|
@@ -4462,8 +4462,8 @@ At.propTypes = {
|
|
|
4462
4462
|
};
|
|
4463
4463
|
const qs = (e, t) => ze.toArray(e).filter((o) => o.type === t), Ks = "_main_jm0tk_1", $s = {
|
|
4464
4464
|
main: Ks
|
|
4465
|
-
}, no = {},
|
|
4466
|
-
const s = qs(r,
|
|
4465
|
+
}, no = {}, Ve = ({ isLazy: e = !0, skidding: t = 0, distance: o = 10, className: a, children: r, ...i }) => {
|
|
4466
|
+
const s = qs(r, Ve.Content), l = ze.toArray(r).filter((d) => d.type !== Ve.Content), u = e ? el : rn;
|
|
4467
4467
|
return /* @__PURE__ */ n.createElement(
|
|
4468
4468
|
u,
|
|
4469
4469
|
{
|
|
@@ -4484,7 +4484,7 @@ const qs = (e, t) => ze.toArray(e).filter((o) => o.type === t), Ks = "_main_jm0t
|
|
|
4484
4484
|
/* @__PURE__ */ n.createElement("span", null, l)
|
|
4485
4485
|
);
|
|
4486
4486
|
};
|
|
4487
|
-
|
|
4487
|
+
Ve.propTypes = {
|
|
4488
4488
|
isLazy: c.bool,
|
|
4489
4489
|
className: c.string,
|
|
4490
4490
|
skidding: c.number,
|
|
@@ -4497,7 +4497,7 @@ er.propTypes = {
|
|
|
4497
4497
|
className: c.string,
|
|
4498
4498
|
children: c.node.isRequired
|
|
4499
4499
|
};
|
|
4500
|
-
|
|
4500
|
+
Ve.Content = er;
|
|
4501
4501
|
const el = n.forwardRef((e, t) => {
|
|
4502
4502
|
const [o, a] = ne(!1), r = {
|
|
4503
4503
|
fn: () => ({
|
|
@@ -4508,14 +4508,14 @@ const el = n.forwardRef((e, t) => {
|
|
|
4508
4508
|
return i.plugins = [r, ...e.plugins || []], e.render ? i.render = (...s) => o ? e.render(...s) : "" : i.content = o ? e.content : "", /* @__PURE__ */ n.createElement(rn, { ...i, ref: t });
|
|
4509
4509
|
}), Xt = ({ placement: e = "bottom", className: t, children: o, ...a }) => {
|
|
4510
4510
|
const r = ze.toArray(o), i = r.filter((d) => d.type !== Xt.Item), s = r.length - i.length, l = r.map((d, m) => d.type === Xt.Item ? n.cloneElement(d, { position: m, total: s }) : null), u = /* @__PURE__ */ n.createElement(
|
|
4511
|
-
|
|
4511
|
+
Ve.Content,
|
|
4512
4512
|
{
|
|
4513
4513
|
className: x(no, "ui-popover-list-content divide-y divide-solid divide-gray-lighter p-0 ")
|
|
4514
4514
|
},
|
|
4515
4515
|
l
|
|
4516
4516
|
);
|
|
4517
4517
|
return /* @__PURE__ */ n.createElement(
|
|
4518
|
-
|
|
4518
|
+
Ve,
|
|
4519
4519
|
{
|
|
4520
4520
|
content: u,
|
|
4521
4521
|
placement: e,
|
|
@@ -4616,8 +4616,8 @@ const ro = {
|
|
|
4616
4616
|
const l = () => {
|
|
4617
4617
|
a && r();
|
|
4618
4618
|
};
|
|
4619
|
-
return /* @__PURE__ */ n.createElement(
|
|
4620
|
-
|
|
4619
|
+
return /* @__PURE__ */ n.createElement(Te, { appear: !0, show: o, as: Le }, /* @__PURE__ */ n.createElement(nt, { as: "div", className: "ui-modal fixed inset-0 z-30 overflow-y-auto", onClose: l }, /* @__PURE__ */ n.createElement("div", { className: "min-h-screen px-4 text-center" }, /* @__PURE__ */ n.createElement(
|
|
4620
|
+
Te.Child,
|
|
4621
4621
|
{
|
|
4622
4622
|
as: Le,
|
|
4623
4623
|
enter: "ease-out duration-300",
|
|
@@ -4629,7 +4629,7 @@ const ro = {
|
|
|
4629
4629
|
},
|
|
4630
4630
|
/* @__PURE__ */ n.createElement(nt.Overlay, { className: "ui-modal-overlay fixed inset-0 bg-black bg-opacity-80 transition-opacity" })
|
|
4631
4631
|
), t === "center" && /* @__PURE__ */ n.createElement("span", { className: "inline-block h-screen align-middle", "aria-hidden": "true" }, "\u200B"), /* @__PURE__ */ n.createElement(
|
|
4632
|
-
|
|
4632
|
+
Te.Child,
|
|
4633
4633
|
{
|
|
4634
4634
|
as: Le,
|
|
4635
4635
|
enter: x("ease-out duration-300"),
|
|
@@ -4915,7 +4915,7 @@ const cn = Mt({
|
|
|
4915
4915
|
return o;
|
|
4916
4916
|
}, t2 = () => {
|
|
4917
4917
|
const [e, t] = ne(!1);
|
|
4918
|
-
return
|
|
4918
|
+
return Fe(() => {
|
|
4919
4919
|
t(!0);
|
|
4920
4920
|
}, []), e;
|
|
4921
4921
|
}, Ze = ({ char: e, className: t, ...o }) => {
|
|
@@ -4981,7 +4981,7 @@ const r2 = $l((e, t) => e(t), 500), mo = ({
|
|
|
4981
4981
|
defaultHighlightedIndex: 0,
|
|
4982
4982
|
onSelectedItemChange: H
|
|
4983
4983
|
});
|
|
4984
|
-
|
|
4984
|
+
Fe(() => {
|
|
4985
4985
|
P ? k(!1) : setTimeout(() => k(!0), 1);
|
|
4986
4986
|
}, [P, k]);
|
|
4987
4987
|
const $ = () => {
|
|
@@ -5218,7 +5218,7 @@ const Eo = {
|
|
|
5218
5218
|
small: "px-3 py-1.5 text-sm leading-sm",
|
|
5219
5219
|
medium: "px-3 py-2.5 text-base leading-base",
|
|
5220
5220
|
large: "px-5 py-3.5 text-md leading-md"
|
|
5221
|
-
},
|
|
5221
|
+
}, He = je(
|
|
5222
5222
|
({ as: e, size: t = "medium", isError: o, className: a, isRequired: r, value: i, prefix: s, suffix: l, ...u }, d) => {
|
|
5223
5223
|
const m = () => {
|
|
5224
5224
|
if (!Sr(i))
|
|
@@ -5243,7 +5243,7 @@ const Eo = {
|
|
|
5243
5243
|
), r && g && /* @__PURE__ */ n.createElement(ot, { className: "absolute right-3", color: "danger" }));
|
|
5244
5244
|
}
|
|
5245
5245
|
);
|
|
5246
|
-
|
|
5246
|
+
He.propTypes = {
|
|
5247
5247
|
as: c.oneOfType([c.string, c.elementType]),
|
|
5248
5248
|
size: c.oneOf(Object.keys(Eo)),
|
|
5249
5249
|
className: c.string,
|
|
@@ -5253,24 +5253,24 @@ Fe.propTypes = {
|
|
|
5253
5253
|
prefix: c.string,
|
|
5254
5254
|
suffix: c.string
|
|
5255
5255
|
};
|
|
5256
|
-
|
|
5256
|
+
He.defaultProps = {
|
|
5257
5257
|
as: "input",
|
|
5258
5258
|
size: "medium",
|
|
5259
5259
|
className: "",
|
|
5260
5260
|
isError: !1,
|
|
5261
5261
|
isRequired: !1
|
|
5262
5262
|
};
|
|
5263
|
-
const Et = je(({ className: e, type: t = "text", value: o, ...a }, r) => /* @__PURE__ */ n.createElement(
|
|
5263
|
+
const Et = je(({ className: e, type: t = "text", value: o, ...a }, r) => /* @__PURE__ */ n.createElement(He, { ref: r, as: "input", className: x("ui-input", e), type: t, value: o, ...a }));
|
|
5264
5264
|
Et.propTypes = {
|
|
5265
|
-
...
|
|
5265
|
+
...He.propTypes,
|
|
5266
5266
|
type: c.string
|
|
5267
5267
|
};
|
|
5268
5268
|
Et.defaultProps = {
|
|
5269
|
-
...
|
|
5269
|
+
...He.defaultProps,
|
|
5270
5270
|
type: "text"
|
|
5271
5271
|
};
|
|
5272
5272
|
const Co = je(({ className: e, value: t, shouldAutoSize: o = !1, rows: a = 2, ...r }, i) => o ? /* @__PURE__ */ n.createElement(
|
|
5273
|
-
|
|
5273
|
+
He,
|
|
5274
5274
|
{
|
|
5275
5275
|
ref: i,
|
|
5276
5276
|
as: ja,
|
|
@@ -5280,7 +5280,7 @@ const Co = je(({ className: e, value: t, shouldAutoSize: o = !1, rows: a = 2, ..
|
|
|
5280
5280
|
...r
|
|
5281
5281
|
}
|
|
5282
5282
|
) : /* @__PURE__ */ n.createElement(
|
|
5283
|
-
|
|
5283
|
+
He,
|
|
5284
5284
|
{
|
|
5285
5285
|
ref: i,
|
|
5286
5286
|
as: "textarea",
|
|
@@ -5291,7 +5291,7 @@ const Co = je(({ className: e, value: t, shouldAutoSize: o = !1, rows: a = 2, ..
|
|
|
5291
5291
|
}
|
|
5292
5292
|
));
|
|
5293
5293
|
Co.propTypes = {
|
|
5294
|
-
...
|
|
5294
|
+
...He.propTypes,
|
|
5295
5295
|
rows: c.number,
|
|
5296
5296
|
shouldAutoSize: c.bool
|
|
5297
5297
|
};
|
|
@@ -5299,8 +5299,8 @@ Co.defaultProps = {
|
|
|
5299
5299
|
rows: 2,
|
|
5300
5300
|
shouldAutoSize: !1
|
|
5301
5301
|
};
|
|
5302
|
-
const _t = (e) => /* @__PURE__ */ n.createElement(
|
|
5303
|
-
_t.propTypes =
|
|
5302
|
+
const _t = (e) => /* @__PURE__ */ n.createElement(He, { as: "select", ...e });
|
|
5303
|
+
_t.propTypes = He.propTypes;
|
|
5304
5304
|
function D() {
|
|
5305
5305
|
return D = Object.assign ? Object.assign.bind() : function(e) {
|
|
5306
5306
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -5534,7 +5534,7 @@ function pe(e, t) {
|
|
|
5534
5534
|
function Ct(e, t, o) {
|
|
5535
5535
|
return e.slice(t, o);
|
|
5536
5536
|
}
|
|
5537
|
-
function
|
|
5537
|
+
function Ne(e) {
|
|
5538
5538
|
return e.length;
|
|
5539
5539
|
}
|
|
5540
5540
|
function pr(e) {
|
|
@@ -5562,7 +5562,7 @@ function A2() {
|
|
|
5562
5562
|
function ke() {
|
|
5563
5563
|
return le = xe < Mo ? pe(lt, xe++) : 0, at++, le === 10 && (at = 1, mn++), le;
|
|
5564
5564
|
}
|
|
5565
|
-
function
|
|
5565
|
+
function Se() {
|
|
5566
5566
|
return pe(lt, xe);
|
|
5567
5567
|
}
|
|
5568
5568
|
function Gt() {
|
|
@@ -5604,7 +5604,7 @@ function xt(e) {
|
|
|
5604
5604
|
return 0;
|
|
5605
5605
|
}
|
|
5606
5606
|
function Ao(e) {
|
|
5607
|
-
return mn = at = 1, Mo =
|
|
5607
|
+
return mn = at = 1, Mo = Ne(lt = e), xe = 0, [];
|
|
5608
5608
|
}
|
|
5609
5609
|
function No(e) {
|
|
5610
5610
|
return lt = "", e;
|
|
@@ -5613,14 +5613,14 @@ function Ot(e) {
|
|
|
5613
5613
|
return Lo(Bt(xe - 1, Rn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
5614
5614
|
}
|
|
5615
5615
|
function N2(e) {
|
|
5616
|
-
for (; (le =
|
|
5616
|
+
for (; (le = Se()) && le < 33; )
|
|
5617
5617
|
ke();
|
|
5618
5618
|
return xt(e) > 2 || xt(le) > 3 ? "" : " ";
|
|
5619
5619
|
}
|
|
5620
5620
|
function B2(e, t) {
|
|
5621
5621
|
for (; --t && ke() && !(le < 48 || le > 102 || le > 57 && le < 65 || le > 70 && le < 97); )
|
|
5622
5622
|
;
|
|
5623
|
-
return Bt(e, Gt() + (t < 6 &&
|
|
5623
|
+
return Bt(e, Gt() + (t < 6 && Se() == 32 && ke() == 32));
|
|
5624
5624
|
}
|
|
5625
5625
|
function Rn(e) {
|
|
5626
5626
|
for (; ke(); )
|
|
@@ -5642,12 +5642,12 @@ function Rn(e) {
|
|
|
5642
5642
|
}
|
|
5643
5643
|
function T2(e, t) {
|
|
5644
5644
|
for (; ke() && e + le !== 47 + 10; )
|
|
5645
|
-
if (e + le === 42 + 42 &&
|
|
5645
|
+
if (e + le === 42 + 42 && Se() === 47)
|
|
5646
5646
|
break;
|
|
5647
5647
|
return "/*" + Bt(t, xe - 1) + "*" + dn(e === 47 ? e : ke());
|
|
5648
5648
|
}
|
|
5649
5649
|
function S2(e) {
|
|
5650
|
-
for (; !xt(
|
|
5650
|
+
for (; !xt(Se()); )
|
|
5651
5651
|
ke();
|
|
5652
5652
|
return Bt(e, xe);
|
|
5653
5653
|
}
|
|
@@ -5677,7 +5677,7 @@ function zt(e, t, o, a, r, i, s, l, u) {
|
|
|
5677
5677
|
A += B2(Gt() - 1, 7);
|
|
5678
5678
|
continue;
|
|
5679
5679
|
case 47:
|
|
5680
|
-
switch (
|
|
5680
|
+
switch (Se()) {
|
|
5681
5681
|
case 42:
|
|
5682
5682
|
case 47:
|
|
5683
5683
|
St(H2(T2(ke(), Gt()), t, o), u);
|
|
@@ -5687,7 +5687,7 @@ function zt(e, t, o, a, r, i, s, l, u) {
|
|
|
5687
5687
|
}
|
|
5688
5688
|
break;
|
|
5689
5689
|
case 123 * p:
|
|
5690
|
-
l[d++] =
|
|
5690
|
+
l[d++] = Ne(A) * v;
|
|
5691
5691
|
case 125 * p:
|
|
5692
5692
|
case 59:
|
|
5693
5693
|
case 0:
|
|
@@ -5696,7 +5696,7 @@ function zt(e, t, o, a, r, i, s, l, u) {
|
|
|
5696
5696
|
case 125:
|
|
5697
5697
|
f = 0;
|
|
5698
5698
|
case 59 + m:
|
|
5699
|
-
E > 0 &&
|
|
5699
|
+
E > 0 && Ne(A) - g && St(E > 32 ? _r(A + ";", a, o, g - 1) : _r(q(A, " ", "") + ";", a, o, g - 2), u);
|
|
5700
5700
|
break;
|
|
5701
5701
|
case 59:
|
|
5702
5702
|
A += ";";
|
|
@@ -5718,7 +5718,7 @@ function zt(e, t, o, a, r, i, s, l, u) {
|
|
|
5718
5718
|
d = m = E = 0, p = v = 1, y = A = "", g = s;
|
|
5719
5719
|
break;
|
|
5720
5720
|
case 58:
|
|
5721
|
-
g = 1 +
|
|
5721
|
+
g = 1 + Ne(A), E = w;
|
|
5722
5722
|
default:
|
|
5723
5723
|
if (p < 1) {
|
|
5724
5724
|
if (I == 123)
|
|
@@ -5731,13 +5731,13 @@ function zt(e, t, o, a, r, i, s, l, u) {
|
|
|
5731
5731
|
v = m > 0 ? 1 : (A += "\f", -1);
|
|
5732
5732
|
break;
|
|
5733
5733
|
case 44:
|
|
5734
|
-
l[d++] = (
|
|
5734
|
+
l[d++] = (Ne(A) - 1) * v, v = 1;
|
|
5735
5735
|
break;
|
|
5736
5736
|
case 64:
|
|
5737
|
-
|
|
5737
|
+
Se() === 45 && (A += Ot(ke())), b = Se(), m = g = Ne(y = A += S2(Gt())), I++;
|
|
5738
5738
|
break;
|
|
5739
5739
|
case 45:
|
|
5740
|
-
w === 45 &&
|
|
5740
|
+
w === 45 && Ne(A) == 2 && (p = 0);
|
|
5741
5741
|
}
|
|
5742
5742
|
}
|
|
5743
5743
|
return i;
|
|
@@ -5771,7 +5771,7 @@ function F2(e, t, o, a) {
|
|
|
5771
5771
|
case dr:
|
|
5772
5772
|
e.value = e.props.join(",");
|
|
5773
5773
|
}
|
|
5774
|
-
return
|
|
5774
|
+
return Ne(o = rt(e.children, a)) ? e.return = e.value + "{" + o + "}" : "";
|
|
5775
5775
|
}
|
|
5776
5776
|
function R2(e) {
|
|
5777
5777
|
var t = pr(e);
|
|
@@ -5793,7 +5793,7 @@ function G2(e) {
|
|
|
5793
5793
|
};
|
|
5794
5794
|
}
|
|
5795
5795
|
var O2 = function(t, o, a) {
|
|
5796
|
-
for (var r = 0, i = 0; r = i, i =
|
|
5796
|
+
for (var r = 0, i = 0; r = i, i = Se(), r === 38 && i === 12 && (o[a] = 1), !xt(i); )
|
|
5797
5797
|
ke();
|
|
5798
5798
|
return Bt(t, xe);
|
|
5799
5799
|
}, z2 = function(t, o) {
|
|
@@ -5801,14 +5801,14 @@ var O2 = function(t, o, a) {
|
|
|
5801
5801
|
do
|
|
5802
5802
|
switch (xt(r)) {
|
|
5803
5803
|
case 0:
|
|
5804
|
-
r === 38 &&
|
|
5804
|
+
r === 38 && Se() === 12 && (o[a] = 1), t[a] += O2(xe - 1, o, a);
|
|
5805
5805
|
break;
|
|
5806
5806
|
case 2:
|
|
5807
5807
|
t[a] += Ot(r);
|
|
5808
5808
|
break;
|
|
5809
5809
|
case 4:
|
|
5810
5810
|
if (r === 44) {
|
|
5811
|
-
t[++a] =
|
|
5811
|
+
t[++a] = Se() === 58 ? "&\f" : "", o[a] = t[a].length;
|
|
5812
5812
|
break;
|
|
5813
5813
|
}
|
|
5814
5814
|
default:
|
|
@@ -5949,7 +5949,7 @@ function To(e, t) {
|
|
|
5949
5949
|
case 5789:
|
|
5950
5950
|
case 5021:
|
|
5951
5951
|
case 4765:
|
|
5952
|
-
if (
|
|
5952
|
+
if (Ne(e) - 1 - t > 6)
|
|
5953
5953
|
switch (pe(e, t + 1)) {
|
|
5954
5954
|
case 109:
|
|
5955
5955
|
if (pe(e, t + 4) !== 45)
|
|
@@ -5964,7 +5964,7 @@ function To(e, t) {
|
|
|
5964
5964
|
if (pe(e, t + 1) !== 115)
|
|
5965
5965
|
break;
|
|
5966
5966
|
case 6444:
|
|
5967
|
-
switch (pe(e,
|
|
5967
|
+
switch (pe(e, Ne(e) - 3 - (~Fn(e, "!important") && 10))) {
|
|
5968
5968
|
case 107:
|
|
5969
5969
|
return q(e, ":", ":" + J) + e;
|
|
5970
5970
|
case 101:
|
|
@@ -8314,7 +8314,7 @@ function p4(e) {
|
|
|
8314
8314
|
}, [E, b, g]), p = he(function(f) {
|
|
8315
8315
|
!f || (f.removeEventListener("wheel", g, !1), f.removeEventListener("touchstart", b, !1), f.removeEventListener("touchmove", E, !1));
|
|
8316
8316
|
}, [E, b, g]);
|
|
8317
|
-
return
|
|
8317
|
+
return Fe(function() {
|
|
8318
8318
|
if (!!t) {
|
|
8319
8319
|
var f = d.current;
|
|
8320
8320
|
return w(f), function() {
|
|
@@ -8373,7 +8373,7 @@ function h4(e) {
|
|
|
8373
8373
|
}), d && y1() && (d.removeEventListener("touchmove", E1, $e), u && (u.removeEventListener("touchstart", x1, $e), u.removeEventListener("touchmove", C1, $e)));
|
|
8374
8374
|
}
|
|
8375
8375
|
}, [a]);
|
|
8376
|
-
return
|
|
8376
|
+
return Fe(function() {
|
|
8377
8377
|
if (!!t) {
|
|
8378
8378
|
var u = i.current;
|
|
8379
8379
|
return s(u), function() {
|
|
@@ -9598,7 +9598,7 @@ const z4 = ({ isCreatable: e = !1, className: t, isError: o, ...a }) => {
|
|
|
9598
9598
|
);
|
|
9599
9599
|
}, { MultiValueLabel: j4 } = Pa, W4 = (e) => {
|
|
9600
9600
|
const t = we(null), [o, a] = ne(!0);
|
|
9601
|
-
return
|
|
9601
|
+
return Fe(() => {
|
|
9602
9602
|
if (t.current) {
|
|
9603
9603
|
const r = t.current.offsetWidth > t.current.offsetParent.offsetWidth;
|
|
9604
9604
|
a(!r);
|
|
@@ -10520,7 +10520,7 @@ const mu = Nr.exports, pu = /* @__PURE__ */ it({
|
|
|
10520
10520
|
}
|
|
10521
10521
|
}, Pn = je(({ className: e, ...t }, o) => {
|
|
10522
10522
|
const { locale: a } = Re(cn), [r, i] = ne({});
|
|
10523
|
-
return
|
|
10523
|
+
return Fe(() => {
|
|
10524
10524
|
i({});
|
|
10525
10525
|
const s = za(a).toLowerCase();
|
|
10526
10526
|
!s || s === "en" || s === "en-us" || gu(a).then(i);
|
|
@@ -10980,9 +10980,7 @@ const Wt = {
|
|
|
10980
10980
|
}) => {
|
|
10981
10981
|
var Ce, ye;
|
|
10982
10982
|
const { locale: y } = Re(cn), L = t ? e === Wt.single ? t : t.from : null, [C, k] = ne(L != null ? L : S(null, v).toDate()), [A, N] = ne(() => !t || !t.from ? new Date() : t.from), [H, W] = ne(() => !t || !t.to || !t.from ? S(null, v).add(1, "month").toDate() : Rt(S(t.to, v), S(t.from, v), "month") ? S(t.from, v).add(1, "month").toDate() : t.to), [P, T] = ne(""), O = e === Wt.range, z = t && t.from && t.to;
|
|
10983
|
-
|
|
10984
|
-
l == null || l(C);
|
|
10985
|
-
}, [C, l]), Ne(() => {
|
|
10983
|
+
Fe(() => {
|
|
10986
10984
|
v && !tu(v) && (console.log(`${v} is not a valid timezone. Using default timezone now`), X.tz.setDefault());
|
|
10987
10985
|
}, [v]);
|
|
10988
10986
|
const j = (R, Y, B) => {
|
|
@@ -11004,16 +11002,12 @@ const Wt = {
|
|
|
11004
11002
|
if (z)
|
|
11005
11003
|
s({ from: V(S(R, v)), to: null }, Y, B);
|
|
11006
11004
|
else if (t && (t.from || t.to) && (t.from || t.to).getTime() === R.getTime()) {
|
|
11007
|
-
const ce = V(S(R, v)
|
|
11005
|
+
const ce = V(S(R, v)), Ie = V(S(R, v).endOf("day"), !1);
|
|
11008
11006
|
s({ from: ce, to: Ie }, Y, B);
|
|
11009
11007
|
} else
|
|
11010
|
-
t.from && dt.isDayBefore(t.from, V(S(R, v))) ? s(
|
|
11011
|
-
dt.addDayToRange(V(S(R, v).endOf("day"), !1), t),
|
|
11012
|
-
Y,
|
|
11013
|
-
B
|
|
11014
|
-
) : t.from && (dt.isDayAfter(t.from, V(S(R, v))) || dt.isSameDay(t.from, V(S(R, v)))) ? s(
|
|
11008
|
+
t.from && dt.isDayBefore(t.from, V(S(R, v))) ? s(dt.addDayToRange(V(S(R, v), !1), t), Y, B) : t.from && (dt.isDayAfter(t.from, V(S(R, v))) || dt.isSameDay(t.from, V(S(R, v)))) ? s(
|
|
11015
11009
|
{
|
|
11016
|
-
from: V(S(R, v)
|
|
11010
|
+
from: V(S(R, v)),
|
|
11017
11011
|
to: V(S(t.from).endOf("day"), !1)
|
|
11018
11012
|
},
|
|
11019
11013
|
Y,
|
|
@@ -11161,10 +11155,10 @@ const Cu = ({
|
|
|
11161
11155
|
}, y = () => {
|
|
11162
11156
|
!(e != null && e.to) && t === "range" && r(g), f();
|
|
11163
11157
|
};
|
|
11164
|
-
return
|
|
11158
|
+
return Fe(() => {
|
|
11165
11159
|
E(e);
|
|
11166
11160
|
}, [e]), /* @__PURE__ */ n.createElement(
|
|
11167
|
-
|
|
11161
|
+
Ve,
|
|
11168
11162
|
{
|
|
11169
11163
|
visible: w,
|
|
11170
11164
|
maxWidth: 900,
|
|
@@ -11185,7 +11179,7 @@ const Cu = ({
|
|
|
11185
11179
|
onClick: f
|
|
11186
11180
|
}
|
|
11187
11181
|
),
|
|
11188
|
-
/* @__PURE__ */ n.createElement(
|
|
11182
|
+
/* @__PURE__ */ n.createElement(Ve.Content, { className: "pr-1" }, w && /* @__PURE__ */ n.createElement(
|
|
11189
11183
|
Tr,
|
|
11190
11184
|
{
|
|
11191
11185
|
variant: t,
|
|
@@ -11228,7 +11222,7 @@ const xu = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
|
|
|
11228
11222
|
!E || (E.focus(), a && E.select());
|
|
11229
11223
|
}, 0), r == null || r(b);
|
|
11230
11224
|
};
|
|
11231
|
-
return /* @__PURE__ */ n.createElement(
|
|
11225
|
+
return /* @__PURE__ */ n.createElement(Ve, { visible: t, onClickOutside: i, ...d }, /* @__PURE__ */ n.createElement(
|
|
11232
11226
|
"span",
|
|
11233
11227
|
{
|
|
11234
11228
|
className: x(
|
|
@@ -11240,7 +11234,7 @@ const xu = ({ value: e, error: t }) => /* @__PURE__ */ n.createElement("span", n
|
|
|
11240
11234
|
},
|
|
11241
11235
|
/* @__PURE__ */ n.createElement("span", { className: x("border-b border-b-black font-bold text-black", s == null ? void 0 : s.textField) }, /* @__PURE__ */ n.createElement(xu, { value: e, error: u })),
|
|
11242
11236
|
o && /* @__PURE__ */ n.createElement(Yn, { size: "medium" })
|
|
11243
|
-
), /* @__PURE__ */ n.createElement(
|
|
11237
|
+
), /* @__PURE__ */ n.createElement(Ve.Content, null, /* @__PURE__ */ n.createElement("div", { ref: m, className: x("p-2", s == null ? void 0 : s.children) }, l)));
|
|
11244
11238
|
}, yu = ({
|
|
11245
11239
|
src: e,
|
|
11246
11240
|
size: t = "large",
|
|
@@ -11409,7 +11403,7 @@ const Nu = {
|
|
|
11409
11403
|
container(e, t, o, a) {
|
|
11410
11404
|
const r = (i) => o(i, a);
|
|
11411
11405
|
return /* @__PURE__ */ n.createElement(
|
|
11412
|
-
|
|
11406
|
+
Te,
|
|
11413
11407
|
{
|
|
11414
11408
|
appear: !0,
|
|
11415
11409
|
as: Le,
|
|
@@ -11434,7 +11428,7 @@ const Nu = {
|
|
|
11434
11428
|
dismiss(e) {
|
|
11435
11429
|
Fr.dismiss(e);
|
|
11436
11430
|
}
|
|
11437
|
-
},
|
|
11431
|
+
}, Be = {
|
|
11438
11432
|
colors: {
|
|
11439
11433
|
transparent: "transparent",
|
|
11440
11434
|
current: "currentColor",
|
|
@@ -11789,13 +11783,13 @@ const Nu = {
|
|
|
11789
11783
|
"7.5": "30px"
|
|
11790
11784
|
}
|
|
11791
11785
|
}
|
|
11792
|
-
}, { colors: fe } =
|
|
11786
|
+
}, { colors: fe } = Be, Pe = {
|
|
11793
11787
|
color: fe.gray.darker,
|
|
11794
|
-
fontSize:
|
|
11788
|
+
fontSize: Be.fontSize.sm,
|
|
11795
11789
|
fontWeight: 400,
|
|
11796
11790
|
cursor: "pointer",
|
|
11797
11791
|
textOverflow: "ellipsis",
|
|
11798
|
-
fontFamily:
|
|
11792
|
+
fontFamily: Be.extend.fontFamily.sans
|
|
11799
11793
|
}, Ra = {
|
|
11800
11794
|
global: {
|
|
11801
11795
|
useUTC: !1
|
|
@@ -11880,14 +11874,14 @@ const Nu = {
|
|
|
11880
11874
|
type: "datetime",
|
|
11881
11875
|
step: 1,
|
|
11882
11876
|
minTickInterval: 24 * 3600 * 1e3,
|
|
11883
|
-
lineColor:
|
|
11877
|
+
lineColor: Be.colors.gray.darker,
|
|
11884
11878
|
lineWidth: 1,
|
|
11885
11879
|
gridLineWidth: "1",
|
|
11886
11880
|
gridLineColor: "#DEDEDE",
|
|
11887
11881
|
gridLineDashStyle: "dot"
|
|
11888
11882
|
},
|
|
11889
11883
|
yAxis: {
|
|
11890
|
-
lineColor:
|
|
11884
|
+
lineColor: Be.colors.gray.darker,
|
|
11891
11885
|
lineWidth: 1,
|
|
11892
11886
|
gridLineWidth: "1",
|
|
11893
11887
|
gridLineColor: "#DEDEDE",
|
|
@@ -11915,7 +11909,7 @@ const Nu = {
|
|
|
11915
11909
|
fontSize: "14px",
|
|
11916
11910
|
color: "#666666",
|
|
11917
11911
|
textTransform: "capitalize",
|
|
11918
|
-
fontFamily:
|
|
11912
|
+
fontFamily: Be.extend.fontFamily.sans
|
|
11919
11913
|
},
|
|
11920
11914
|
itemMarginBottom: 5,
|
|
11921
11915
|
align: "center",
|
|
@@ -11947,15 +11941,15 @@ const Nu = {
|
|
|
11947
11941
|
maxHeight: 120,
|
|
11948
11942
|
width: 220,
|
|
11949
11943
|
navigation: {
|
|
11950
|
-
activeColor:
|
|
11944
|
+
activeColor: Be.colors.gray.darker,
|
|
11951
11945
|
animation: "true",
|
|
11952
|
-
style:
|
|
11946
|
+
style: Be.extend.fontFamily.sans
|
|
11953
11947
|
},
|
|
11954
11948
|
padding: 5,
|
|
11955
|
-
backgroundColor:
|
|
11949
|
+
backgroundColor: Be.colors.white,
|
|
11956
11950
|
itemMarginTop: 1,
|
|
11957
11951
|
itemMarginBottom: 3,
|
|
11958
|
-
itemStyle:
|
|
11952
|
+
itemStyle: Be.extend.fontFamily.sans,
|
|
11959
11953
|
style: { overflow: "hidden" },
|
|
11960
11954
|
align: "left",
|
|
11961
11955
|
layout: "horizontal",
|
|
@@ -12150,7 +12144,7 @@ export {
|
|
|
12150
12144
|
O5 as PlayMarketBadge,
|
|
12151
12145
|
zi as PlusIcon,
|
|
12152
12146
|
ji as PolicyIcon,
|
|
12153
|
-
|
|
12147
|
+
Ve as Popover,
|
|
12154
12148
|
Xt as PopoverList,
|
|
12155
12149
|
z5 as PrintIcon,
|
|
12156
12150
|
Wi as ProductsIcon,
|
|
@@ -12250,5 +12244,5 @@ export {
|
|
|
12250
12244
|
ae as rangeLabels,
|
|
12251
12245
|
M as rangeOptions,
|
|
12252
12246
|
go as roundNumber,
|
|
12253
|
-
|
|
12247
|
+
Be as theme
|
|
12254
12248
|
};
|