@segmentify/ui 0.0.56 → 0.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/segmentify-ui.cjs +1 -1
- package/dist/segmentify-ui.js +52 -48
- package/package.json +1 -1
package/dist/segmentify-ui.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as b, Fragment as Vn, jsxs as ie } from "react/jsx-runtime";
|
|
2
2
|
import * as y from "react";
|
|
3
|
-
import u, { useState as pt, useLayoutEffect as Du, createContext as zu, useContext as Bs, useCallback as Qe, useRef as
|
|
3
|
+
import u, { useState as pt, useLayoutEffect as Du, createContext as zu, useContext as Bs, useCallback as Qe, useRef as Mt, useEffect as Jn, useMemo as rn, isValidElement as CT, PureComponent as Ff, forwardRef as Hs, useImperativeHandle as ST, cloneElement as IT, createElement as M5, Component as AT, Fragment as Pd } from "react";
|
|
4
4
|
import * as Ei from "react-dom";
|
|
5
5
|
import MT, { createPortal as $T } from "react-dom";
|
|
6
6
|
import { ChevronDownIcon as Vs, Loader2 as T3, MoreHorizontal as RT, ChevronRight as NE, ChevronLeftIcon as PE, ChevronRightIcon as F3, ArrowRight as NT, ArrowLeft as PT, CheckIcon as Gs, XIcon as _f, SearchIcon as OT, PlusCircle as TT, CircleX as FT, Calendar as _T, CircleIcon as OE, Info as js, ChevronUpIcon as DT, CalendarIcon as zT, Upload as kT, FileText as LT, X as BT, EyeOff as HT, Eye as VT, ChevronsUpDown as GT, ChevronUp as jT, ChevronDown as WT, MoreHorizontalIcon as qT, PanelLeftIcon as UT, Loader2Icon as TE, OctagonXIcon as YT, TriangleAlertIcon as XT, InfoIcon as ZT, CircleCheckIcon as KT, Clock as JT, CircleMinus as QT, CirclePlus as eF, Columns2 as tF, ChevronLeft as nF, MoreVertical as rF } from "lucide-react";
|
|
@@ -4230,7 +4230,7 @@ function X3(e, t) {
|
|
|
4230
4230
|
const n = Rt(e, t?.in), r = +fa(n, t) - +xD(n, t);
|
|
4231
4231
|
return Math.round(r / px) + 1;
|
|
4232
4232
|
}
|
|
4233
|
-
function
|
|
4233
|
+
function $t(e, t) {
|
|
4234
4234
|
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
4235
4235
|
return n + r;
|
|
4236
4236
|
}
|
|
@@ -4238,16 +4238,16 @@ const po = {
|
|
|
4238
4238
|
// Year
|
|
4239
4239
|
y(e, t) {
|
|
4240
4240
|
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
4241
|
-
return
|
|
4241
|
+
return $t(t === "yy" ? r % 100 : r, t.length);
|
|
4242
4242
|
},
|
|
4243
4243
|
// Month
|
|
4244
4244
|
M(e, t) {
|
|
4245
4245
|
const n = e.getMonth();
|
|
4246
|
-
return t === "M" ? String(n + 1) :
|
|
4246
|
+
return t === "M" ? String(n + 1) : $t(n + 1, 2);
|
|
4247
4247
|
},
|
|
4248
4248
|
// Day of the month
|
|
4249
4249
|
d(e, t) {
|
|
4250
|
-
return
|
|
4250
|
+
return $t(e.getDate(), t.length);
|
|
4251
4251
|
},
|
|
4252
4252
|
// AM or PM
|
|
4253
4253
|
a(e, t) {
|
|
@@ -4266,26 +4266,26 @@ const po = {
|
|
|
4266
4266
|
},
|
|
4267
4267
|
// Hour [1-12]
|
|
4268
4268
|
h(e, t) {
|
|
4269
|
-
return
|
|
4269
|
+
return $t(e.getHours() % 12 || 12, t.length);
|
|
4270
4270
|
},
|
|
4271
4271
|
// Hour [0-23]
|
|
4272
4272
|
H(e, t) {
|
|
4273
|
-
return
|
|
4273
|
+
return $t(e.getHours(), t.length);
|
|
4274
4274
|
},
|
|
4275
4275
|
// Minute
|
|
4276
4276
|
m(e, t) {
|
|
4277
|
-
return
|
|
4277
|
+
return $t(e.getMinutes(), t.length);
|
|
4278
4278
|
},
|
|
4279
4279
|
// Second
|
|
4280
4280
|
s(e, t) {
|
|
4281
|
-
return
|
|
4281
|
+
return $t(e.getSeconds(), t.length);
|
|
4282
4282
|
},
|
|
4283
4283
|
// Fraction of second
|
|
4284
4284
|
S(e, t) {
|
|
4285
4285
|
const n = t.length, r = e.getMilliseconds(), i = Math.trunc(
|
|
4286
4286
|
r * Math.pow(10, n - 3)
|
|
4287
4287
|
);
|
|
4288
|
-
return
|
|
4288
|
+
return $t(i, t.length);
|
|
4289
4289
|
}
|
|
4290
4290
|
}, Ua = {
|
|
4291
4291
|
midnight: "midnight",
|
|
@@ -4324,14 +4324,14 @@ const po = {
|
|
|
4324
4324
|
const i = Cx(e, r), o = i > 0 ? i : 1 - i;
|
|
4325
4325
|
if (t === "YY") {
|
|
4326
4326
|
const a = o % 100;
|
|
4327
|
-
return
|
|
4327
|
+
return $t(a, 2);
|
|
4328
4328
|
}
|
|
4329
|
-
return t === "Yo" ? n.ordinalNumber(o, { unit: "year" }) :
|
|
4329
|
+
return t === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : $t(o, t.length);
|
|
4330
4330
|
},
|
|
4331
4331
|
// ISO week-numbering year
|
|
4332
4332
|
R: function(e, t) {
|
|
4333
4333
|
const n = mx(e);
|
|
4334
|
-
return
|
|
4334
|
+
return $t(n, t.length);
|
|
4335
4335
|
},
|
|
4336
4336
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
4337
4337
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -4344,7 +4344,7 @@ const po = {
|
|
|
4344
4344
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
4345
4345
|
u: function(e, t) {
|
|
4346
4346
|
const n = e.getFullYear();
|
|
4347
|
-
return
|
|
4347
|
+
return $t(n, t.length);
|
|
4348
4348
|
},
|
|
4349
4349
|
// Quarter
|
|
4350
4350
|
Q: function(e, t, n) {
|
|
@@ -4355,7 +4355,7 @@ const po = {
|
|
|
4355
4355
|
return String(r);
|
|
4356
4356
|
// 01, 02, 03, 04
|
|
4357
4357
|
case "QQ":
|
|
4358
|
-
return
|
|
4358
|
+
return $t(r, 2);
|
|
4359
4359
|
// 1st, 2nd, 3rd, 4th
|
|
4360
4360
|
case "Qo":
|
|
4361
4361
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
@@ -4387,7 +4387,7 @@ const po = {
|
|
|
4387
4387
|
return String(r);
|
|
4388
4388
|
// 01, 02, 03, 04
|
|
4389
4389
|
case "qq":
|
|
4390
|
-
return
|
|
4390
|
+
return $t(r, 2);
|
|
4391
4391
|
// 1st, 2nd, 3rd, 4th
|
|
4392
4392
|
case "qo":
|
|
4393
4393
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
@@ -4445,7 +4445,7 @@ const po = {
|
|
|
4445
4445
|
return String(r + 1);
|
|
4446
4446
|
// 01, 02, ..., 12
|
|
4447
4447
|
case "LL":
|
|
4448
|
-
return
|
|
4448
|
+
return $t(r + 1, 2);
|
|
4449
4449
|
// 1st, 2nd, ..., 12th
|
|
4450
4450
|
case "Lo":
|
|
4451
4451
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
@@ -4468,12 +4468,12 @@ const po = {
|
|
|
4468
4468
|
// Local week of year
|
|
4469
4469
|
w: function(e, t, n, r) {
|
|
4470
4470
|
const i = X3(e, r);
|
|
4471
|
-
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) :
|
|
4471
|
+
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : $t(i, t.length);
|
|
4472
4472
|
},
|
|
4473
4473
|
// ISO week of year
|
|
4474
4474
|
I: function(e, t, n) {
|
|
4475
4475
|
const r = Y3(e);
|
|
4476
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
4476
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : $t(r, t.length);
|
|
4477
4477
|
},
|
|
4478
4478
|
// Day of the month
|
|
4479
4479
|
d: function(e, t, n) {
|
|
@@ -4482,7 +4482,7 @@ const po = {
|
|
|
4482
4482
|
// Day of year
|
|
4483
4483
|
D: function(e, t, n) {
|
|
4484
4484
|
const r = ED(e);
|
|
4485
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
4485
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : $t(r, t.length);
|
|
4486
4486
|
},
|
|
4487
4487
|
// Day of week
|
|
4488
4488
|
E: function(e, t, n) {
|
|
@@ -4524,7 +4524,7 @@ const po = {
|
|
|
4524
4524
|
return String(o);
|
|
4525
4525
|
// Padded numerical value
|
|
4526
4526
|
case "ee":
|
|
4527
|
-
return
|
|
4527
|
+
return $t(o, 2);
|
|
4528
4528
|
// 1st, 2nd, ..., 7th
|
|
4529
4529
|
case "eo":
|
|
4530
4530
|
return n.ordinalNumber(o, { unit: "day" });
|
|
@@ -4561,7 +4561,7 @@ const po = {
|
|
|
4561
4561
|
return String(o);
|
|
4562
4562
|
// Padded numerical value
|
|
4563
4563
|
case "cc":
|
|
4564
|
-
return
|
|
4564
|
+
return $t(o, t.length);
|
|
4565
4565
|
// 1st, 2nd, ..., 7th
|
|
4566
4566
|
case "co":
|
|
4567
4567
|
return n.ordinalNumber(o, { unit: "day" });
|
|
@@ -4598,7 +4598,7 @@ const po = {
|
|
|
4598
4598
|
return String(i);
|
|
4599
4599
|
// 02
|
|
4600
4600
|
case "ii":
|
|
4601
|
-
return
|
|
4601
|
+
return $t(i, t.length);
|
|
4602
4602
|
// 2nd
|
|
4603
4603
|
case "io":
|
|
4604
4604
|
return n.ordinalNumber(i, { unit: "day" });
|
|
@@ -4721,12 +4721,12 @@ const po = {
|
|
|
4721
4721
|
// Hour [0-11]
|
|
4722
4722
|
K: function(e, t, n) {
|
|
4723
4723
|
const r = e.getHours() % 12;
|
|
4724
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
4724
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : $t(r, t.length);
|
|
4725
4725
|
},
|
|
4726
4726
|
// Hour [1-24]
|
|
4727
4727
|
k: function(e, t, n) {
|
|
4728
4728
|
let r = e.getHours();
|
|
4729
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
4729
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : $t(r, t.length);
|
|
4730
4730
|
},
|
|
4731
4731
|
// Minute
|
|
4732
4732
|
m: function(e, t, n) {
|
|
@@ -4807,22 +4807,22 @@ const po = {
|
|
|
4807
4807
|
// Seconds timestamp
|
|
4808
4808
|
t: function(e, t, n) {
|
|
4809
4809
|
const r = Math.trunc(+e / 1e3);
|
|
4810
|
-
return
|
|
4810
|
+
return $t(r, t.length);
|
|
4811
4811
|
},
|
|
4812
4812
|
// Milliseconds timestamp
|
|
4813
4813
|
T: function(e, t, n) {
|
|
4814
|
-
return
|
|
4814
|
+
return $t(+e, t.length);
|
|
4815
4815
|
}
|
|
4816
4816
|
};
|
|
4817
4817
|
function B5(e, t = "") {
|
|
4818
4818
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), o = r % 60;
|
|
4819
|
-
return o === 0 ? n + String(i) : n + String(i) + t +
|
|
4819
|
+
return o === 0 ? n + String(i) : n + String(i) + t + $t(o, 2);
|
|
4820
4820
|
}
|
|
4821
4821
|
function H5(e, t) {
|
|
4822
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
4822
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + $t(Math.abs(e) / 60, 2) : sa(e, t);
|
|
4823
4823
|
}
|
|
4824
4824
|
function sa(e, t = "") {
|
|
4825
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), i =
|
|
4825
|
+
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = $t(Math.trunc(r / 60), 2), o = $t(r % 60, 2);
|
|
4826
4826
|
return n + i + t + o;
|
|
4827
4827
|
}
|
|
4828
4828
|
const V5 = (e, t) => {
|
|
@@ -13413,7 +13413,7 @@ const rc = (e) => e instanceof HTMLElement ? e : null, I0 = (e) => [
|
|
|
13413
13413
|
...e.querySelectorAll("[data-animated-month]") ?? []
|
|
13414
13414
|
], CW = (e) => rc(e.querySelector("[data-animated-month]")), A0 = (e) => rc(e.querySelector("[data-animated-caption]")), M0 = (e) => rc(e.querySelector("[data-animated-weeks]")), SW = (e) => rc(e.querySelector("[data-animated-nav]")), IW = (e) => rc(e.querySelector("[data-animated-weekdays]"));
|
|
13415
13415
|
function AW(e, t, { classNames: n, months: r, focused: i, dateLib: o }) {
|
|
13416
|
-
const a =
|
|
13416
|
+
const a = Mt(null), s = Mt(r), l = Mt(!1);
|
|
13417
13417
|
Du(() => {
|
|
13418
13418
|
const c = s.current;
|
|
13419
13419
|
if (s.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
|
|
@@ -13903,7 +13903,7 @@ function qW(e) {
|
|
|
13903
13903
|
}, [a, Q]), { className: Et, style: Dt } = rn(() => ({
|
|
13904
13904
|
className: [l[Be.Root], t.className].filter(Boolean).join(" "),
|
|
13905
13905
|
style: { ...M?.[Be.Root], ...t.style }
|
|
13906
|
-
}), [l, t.className, t.style, M]), Wt = rW(t), ot =
|
|
13906
|
+
}), [l, t.className, t.style, M]), Wt = rW(t), ot = Mt(null);
|
|
13907
13907
|
AW(ot, !!t.animate, {
|
|
13908
13908
|
classNames: l,
|
|
13909
13909
|
months: T,
|
|
@@ -15438,7 +15438,7 @@ function Zd(e, t, n) {
|
|
|
15438
15438
|
}
|
|
15439
15439
|
Zd.globalOptions = void 0;
|
|
15440
15440
|
function Bv(e = {}, t = []) {
|
|
15441
|
-
const n =
|
|
15441
|
+
const n = Mt(e), r = Mt(t), [i, o] = pt(), [a, s] = pt(), l = Qe(() => {
|
|
15442
15442
|
i && i.reInit(n.current, r.current);
|
|
15443
15443
|
}, [i]);
|
|
15444
15444
|
return Jn(() => {
|
|
@@ -19743,7 +19743,7 @@ var eK = /* @__PURE__ */ Hs(function(e, t) {
|
|
|
19743
19743
|
var n = e.aspect, r = e.initialDimension, i = r === void 0 ? {
|
|
19744
19744
|
width: -1,
|
|
19745
19745
|
height: -1
|
|
19746
|
-
} : r, o = e.width, a = o === void 0 ? "100%" : o, s = e.height, l = s === void 0 ? "100%" : s, c = e.minWidth, d = c === void 0 ? 0 : c, f = e.minHeight, h = e.maxHeight, p = e.children, m = e.debounce, v = m === void 0 ? 0 : m, g = e.id, w = e.className, E = e.onResize, x = e.style, C = x === void 0 ? {} : x, S =
|
|
19746
|
+
} : r, o = e.width, a = o === void 0 ? "100%" : o, s = e.height, l = s === void 0 ? "100%" : s, c = e.minWidth, d = c === void 0 ? 0 : c, f = e.minHeight, h = e.maxHeight, p = e.children, m = e.debounce, v = m === void 0 ? 0 : m, g = e.id, w = e.className, E = e.onResize, x = e.style, C = x === void 0 ? {} : x, S = Mt(null), M = Mt();
|
|
19747
19747
|
M.current = E, ST(t, function() {
|
|
19748
19748
|
return Object.defineProperty(S.current, "current", {
|
|
19749
19749
|
get: function() {
|
|
@@ -27744,7 +27744,7 @@ const Ate = ({
|
|
|
27744
27744
|
] });
|
|
27745
27745
|
};
|
|
27746
27746
|
function Mte({ value: e, onChange: t, className: n, inputClassName: r, name: i, placeholder: o, label: a }) {
|
|
27747
|
-
const [s, l] = pt(e), c =
|
|
27747
|
+
const [s, l] = pt(e), c = Mt(null), d = Mt(t);
|
|
27748
27748
|
Jn(() => {
|
|
27749
27749
|
d.current = t;
|
|
27750
27750
|
}, [t]);
|
|
@@ -29625,13 +29625,15 @@ const pne = ({ hasFormControlWrapper: e = !1, children: t }) => e ? /* @__PURE__
|
|
|
29625
29625
|
showErrorPlaceholder: i,
|
|
29626
29626
|
step: o = 60
|
|
29627
29627
|
}) => {
|
|
29628
|
-
const { control: a } = or()
|
|
29628
|
+
const { control: a } = or(), s = Mt(null), l = () => {
|
|
29629
|
+
s.current?.showPicker();
|
|
29630
|
+
};
|
|
29629
29631
|
return /* @__PURE__ */ b(
|
|
29630
29632
|
Un,
|
|
29631
29633
|
{
|
|
29632
29634
|
control: a,
|
|
29633
29635
|
name: e,
|
|
29634
|
-
render: ({ field:
|
|
29636
|
+
render: ({ field: c }) => /* @__PURE__ */ ie(_n, { className: L("ui:flex ui:flex-col ui:gap-2 ui:w-full ui:space-y-0", r), children: [
|
|
29635
29637
|
t && /* @__PURE__ */ b($r, { children: t }),
|
|
29636
29638
|
/* @__PURE__ */ b(rr, { children: /* @__PURE__ */ b(
|
|
29637
29639
|
Da,
|
|
@@ -29639,7 +29641,9 @@ const pne = ({ hasFormControlWrapper: e = !1, children: t }) => e ? /* @__PURE__
|
|
|
29639
29641
|
type: "time",
|
|
29640
29642
|
step: o,
|
|
29641
29643
|
className: "ui:bg-background ui:appearance-none [&::-webkit-calendar-picker-indicator]:ui:hidden [&::-webkit-calendar-picker-indicator]:ui:appearance-none",
|
|
29642
|
-
|
|
29644
|
+
ref: s,
|
|
29645
|
+
...c,
|
|
29646
|
+
onClick: l
|
|
29643
29647
|
}
|
|
29644
29648
|
) }),
|
|
29645
29649
|
n && /* @__PURE__ */ b(Nr, { children: n }),
|
|
@@ -29751,7 +29755,7 @@ const pne = ({ hasFormControlWrapper: e = !1, children: t }) => e ? /* @__PURE__
|
|
|
29751
29755
|
const m = or(), v = t ?? m?.control;
|
|
29752
29756
|
if (!v)
|
|
29753
29757
|
throw new Error("FormFileUpload must be used within a FormProvider or receive a control prop");
|
|
29754
|
-
const g =
|
|
29758
|
+
const g = Mt(null), [w, E] = pt(!1), x = async (S, M, A) => {
|
|
29755
29759
|
const R = S.target.files;
|
|
29756
29760
|
if (R?.length) {
|
|
29757
29761
|
E(!0);
|
|
@@ -30173,7 +30177,7 @@ const JEe = ({
|
|
|
30173
30177
|
const w = or(), E = t ?? w?.control;
|
|
30174
30178
|
if (!E)
|
|
30175
30179
|
throw new Error("FormSlider must be used within a FormProvider or receive a control prop");
|
|
30176
|
-
const x =
|
|
30180
|
+
const x = Mt(!1), C = oF({
|
|
30177
30181
|
control: E,
|
|
30178
30182
|
name: e
|
|
30179
30183
|
});
|
|
@@ -30612,7 +30616,7 @@ function Yne(e, t) {
|
|
|
30612
30616
|
return n;
|
|
30613
30617
|
}
|
|
30614
30618
|
function Xne(e) {
|
|
30615
|
-
var t = e.ref, n = e.parse, r = e.format, i = e.value, o = e.defaultValue, a = e.controlled, s = a === void 0 ? !0 : a, l = e.onChange, c = e.onKeyDown, d = Une(e, Wne), f =
|
|
30619
|
+
var t = e.ref, n = e.parse, r = e.format, i = e.value, o = e.defaultValue, a = e.controlled, s = a === void 0 ? !0 : a, l = e.onChange, c = e.onKeyDown, d = Une(e, Wne), f = Mt(), h = Qe(function(g) {
|
|
30616
30620
|
f.current = g, t && (typeof t == "function" ? t(g) : t.current = g);
|
|
30617
30621
|
}, [t]), p = Qe(function(g) {
|
|
30618
30622
|
return Vne(g, f.current, n, r, l);
|
|
@@ -42489,7 +42493,7 @@ function cxe({
|
|
|
42489
42493
|
showErrorPlaceholder: f = !1,
|
|
42490
42494
|
error: h = ""
|
|
42491
42495
|
}) {
|
|
42492
|
-
const [p, m] = pt(!1), [v, g] = pt(n), w =
|
|
42496
|
+
const [p, m] = pt(!1), [v, g] = pt(n), w = Mt(null), E = (M) => {
|
|
42493
42497
|
typeof r == "function" && r(M);
|
|
42494
42498
|
}, x = (M) => {
|
|
42495
42499
|
let A = [...v || []];
|
|
@@ -44143,7 +44147,7 @@ var VP = function(t) {
|
|
|
44143
44147
|
marginTop: s.menuGutter
|
|
44144
44148
|
});
|
|
44145
44149
|
}, GP = /* @__PURE__ */ zu(null), Pge = function(t) {
|
|
44146
|
-
var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, s = t.menuShouldScrollIntoView, l = t.theme, c = Bs(GP) || {}, d = c.setPortalPlacement, f =
|
|
44150
|
+
var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, s = t.menuShouldScrollIntoView, l = t.theme, c = Bs(GP) || {}, d = c.setPortalPlacement, f = Mt(null), h = pt(i), p = qi(h, 2), m = p[0], v = p[1], g = pt(null), w = qi(g, 2), E = w[0], x = w[1], C = l.spacing.controlHeight;
|
|
44147
44151
|
return u3(function() {
|
|
44148
44152
|
var S = f.current;
|
|
44149
44153
|
if (S) {
|
|
@@ -44228,7 +44232,7 @@ var VP = function(t) {
|
|
|
44228
44232
|
zIndex: 1
|
|
44229
44233
|
};
|
|
44230
44234
|
}, Hge = function(t) {
|
|
44231
|
-
var n = t.appendTo, r = t.children, i = t.controlElement, o = t.innerProps, a = t.menuPlacement, s = t.menuPosition, l =
|
|
44235
|
+
var n = t.appendTo, r = t.children, i = t.controlElement, o = t.innerProps, a = t.menuPlacement, s = t.menuPosition, l = Mt(null), c = Mt(null), d = pt(VP(a)), f = qi(d, 2), h = f[0], p = f[1], m = rn(function() {
|
|
44232
44236
|
return {
|
|
44233
44237
|
setPortalPlacement: p
|
|
44234
44238
|
};
|
|
@@ -45222,7 +45226,7 @@ var nve = function(t) {
|
|
|
45222
45226
|
t.cancelable && t.preventDefault(), t.stopPropagation();
|
|
45223
45227
|
};
|
|
45224
45228
|
function rve(e) {
|
|
45225
|
-
var t = e.isEnabled, n = e.onBottomArrive, r = e.onBottomLeave, i = e.onTopArrive, o = e.onTopLeave, a =
|
|
45229
|
+
var t = e.isEnabled, n = e.onBottomArrive, r = e.onBottomLeave, i = e.onTopArrive, o = e.onTopLeave, a = Mt(!1), s = Mt(!1), l = Mt(0), c = Mt(null), d = Qe(function(g, w) {
|
|
45226
45230
|
if (c.current !== null) {
|
|
45227
45231
|
var E = c.current, x = E.scrollTop, C = E.scrollHeight, S = E.clientHeight, M = c.current, A = w > 0, R = C - S - x, P = !1;
|
|
45228
45232
|
R > w && a.current && (r && r(g), a.current = !1), A && s.current && (o && o(g), s.current = !1), A && w > R ? (n && !a.current && n(g), M.scrollTop = C, P = !0, a.current = !0) : !A && -w > x && (i && !s.current && i(g), M.scrollTop = 0, P = !0, s.current = !0), P && nve(g);
|
|
@@ -45280,7 +45284,7 @@ var mw = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
45280
45284
|
passive: !1
|
|
45281
45285
|
};
|
|
45282
45286
|
function ive(e) {
|
|
45283
|
-
var t = e.isEnabled, n = e.accountForScrollbars, r = n === void 0 ? !0 : n, i =
|
|
45287
|
+
var t = e.isEnabled, n = e.accountForScrollbars, r = n === void 0 ? !0 : n, i = Mt({}), o = Mt(null), a = Qe(function(l) {
|
|
45284
45288
|
if (mw) {
|
|
45285
45289
|
var c = document.body, d = c && c.style;
|
|
45286
45290
|
if (r && uw.forEach(function(m) {
|
|
@@ -47512,7 +47516,7 @@ const d3 = [
|
|
|
47512
47516
|
), s4e = {
|
|
47513
47517
|
PRODUCT: "PRODUCT"
|
|
47514
47518
|
}, l4e = ({ fields: e, swap: t }) => {
|
|
47515
|
-
const n =
|
|
47519
|
+
const n = Mt(!1);
|
|
47516
47520
|
return Jn(() => {
|
|
47517
47521
|
if (n.current || e.length === 0) return;
|
|
47518
47522
|
const r = e.findIndex((i) => i?.staticType === s4e.PRODUCT);
|
|
@@ -55211,7 +55215,7 @@ he.register({
|
|
|
55211
55215
|
}, !0);
|
|
55212
55216
|
const d8e = Hs(
|
|
55213
55217
|
({ readOnly: e, defaultValue: t, onTextChange: n, onSelectionChange: r, theme: i = "snow" }, o) => {
|
|
55214
|
-
const a =
|
|
55218
|
+
const a = Mt(null), s = Mt(t), l = Mt(n), c = Mt(r), d = Mt(null);
|
|
55215
55219
|
return Du(() => {
|
|
55216
55220
|
l.current = n, c.current = r;
|
|
55217
55221
|
}), Jn(() => {
|