@theroutingcompany/components 0.0.2 → 0.0.4
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/trc-components.es.js +840 -796
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +78 -73
- package/dist/trc-components.umd.js.map +1 -1
- package/package.json +3 -1
- package/types/components/Breadcrumbs/Breadcrumbs.d.ts +8 -7
- package/types/components/Button/Button.d.ts +3 -3
- package/types/components/IconButton/IconButton.d.ts +1 -1
- package/types/components/Tooltip/Tooltip.d.ts +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as q from "react";
|
|
2
|
+
import $e, { createContext as lt, useMemo as le, createElement as _, useContext as Te, useCallback as B, useLayoutEffect as Vt, useRef as I, useEffect as W, useState as H, forwardRef as R, Children as He, isValidElement as dt, cloneElement as pt, Fragment as nt, useReducer as $l } from "react";
|
|
3
3
|
import * as gl from "react-dom";
|
|
4
4
|
import hl, { flushSync as fa, createPortal as Lr } from "react-dom";
|
|
5
5
|
import k, { keyframes as Kt } from "styled-components";
|
|
6
6
|
import { isFragment as vl } from "react-is";
|
|
7
7
|
import { Error as _n, Help as _l, KeyboardArrowUp as yl, KeyboardArrowDown as xl, Warning as wl, Close as Pl, ArrowDropDown as yo, ArrowDropUp as Tl } from "@material-ui/icons";
|
|
8
|
-
function
|
|
9
|
-
return
|
|
8
|
+
function O() {
|
|
9
|
+
return O = Object.assign ? Object.assign.bind() : function(e) {
|
|
10
10
|
for (var t = 1; t < arguments.length; t++) {
|
|
11
11
|
var n = arguments[t];
|
|
12
12
|
for (var r in n)
|
|
13
13
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
14
14
|
}
|
|
15
15
|
return e;
|
|
16
|
-
},
|
|
16
|
+
}, O.apply(this, arguments);
|
|
17
17
|
}
|
|
18
18
|
function Cl(e, t) {
|
|
19
19
|
const n = /* @__PURE__ */ lt(t);
|
|
@@ -48,7 +48,7 @@ function we(e, t = []) {
|
|
|
48
48
|
i
|
|
49
49
|
];
|
|
50
50
|
function u(f) {
|
|
51
|
-
const { scope:
|
|
51
|
+
const { scope: $, children: p, ...g } = f, b = ($ == null ? void 0 : $[e][l]) || s, h = le(
|
|
52
52
|
() => g,
|
|
53
53
|
Object.values(g)
|
|
54
54
|
);
|
|
@@ -56,8 +56,8 @@ function we(e, t = []) {
|
|
|
56
56
|
value: h
|
|
57
57
|
}, p);
|
|
58
58
|
}
|
|
59
|
-
function d(f,
|
|
60
|
-
const p = (
|
|
59
|
+
function d(f, $) {
|
|
60
|
+
const p = ($ == null ? void 0 : $[e][l]) || s, g = Te(p);
|
|
61
61
|
if (g)
|
|
62
62
|
return g;
|
|
63
63
|
if (i !== void 0)
|
|
@@ -141,11 +141,11 @@ function V(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
const he = Boolean(globalThis == null ? void 0 : globalThis.document) ? Vt : () => {
|
|
144
|
-
}, kl =
|
|
144
|
+
}, kl = q["useId".toString()] || (() => {
|
|
145
145
|
});
|
|
146
146
|
let Rl = 0;
|
|
147
147
|
function Ke(e) {
|
|
148
|
-
const [t, n] =
|
|
148
|
+
const [t, n] = q.useState(kl());
|
|
149
149
|
return he(() => {
|
|
150
150
|
e || n(
|
|
151
151
|
(r) => r != null ? r : String(Rl++)
|
|
@@ -198,20 +198,20 @@ function Ol({ defaultProp: e, onChange: t }) {
|
|
|
198
198
|
a
|
|
199
199
|
]), n;
|
|
200
200
|
}
|
|
201
|
-
const ut = /* @__PURE__ */
|
|
201
|
+
const ut = /* @__PURE__ */ R((e, t) => {
|
|
202
202
|
const { children: n, ...r } = e, o = He.toArray(n), a = o.find(Dl);
|
|
203
203
|
if (a) {
|
|
204
204
|
const i = a.props.children, s = o.map((l) => l === a ? He.count(i) > 1 ? He.only(null) : /* @__PURE__ */ dt(i) ? i.props.children : null : l);
|
|
205
|
-
return /* @__PURE__ */ _(lr,
|
|
205
|
+
return /* @__PURE__ */ _(lr, O({}, r, {
|
|
206
206
|
ref: t
|
|
207
207
|
}), /* @__PURE__ */ dt(i) ? /* @__PURE__ */ pt(i, void 0, s) : null);
|
|
208
208
|
}
|
|
209
|
-
return /* @__PURE__ */ _(lr,
|
|
209
|
+
return /* @__PURE__ */ _(lr, O({}, r, {
|
|
210
210
|
ref: t
|
|
211
211
|
}), n);
|
|
212
212
|
});
|
|
213
213
|
ut.displayName = "Slot";
|
|
214
|
-
const lr = /* @__PURE__ */
|
|
214
|
+
const lr = /* @__PURE__ */ R((e, t) => {
|
|
215
215
|
const { children: n, ...r } = e;
|
|
216
216
|
return /* @__PURE__ */ dt(n) ? /* @__PURE__ */ pt(n, {
|
|
217
217
|
...Il(r, n.props),
|
|
@@ -260,11 +260,11 @@ const Al = [
|
|
|
260
260
|
"svg",
|
|
261
261
|
"ul"
|
|
262
262
|
], U = Al.reduce((e, t) => {
|
|
263
|
-
const n = /* @__PURE__ */
|
|
263
|
+
const n = /* @__PURE__ */ R((r, o) => {
|
|
264
264
|
const { asChild: a, ...i } = r, s = a ? ut : t;
|
|
265
265
|
return W(() => {
|
|
266
266
|
window[Symbol.for("radix-ui")] = !0;
|
|
267
|
-
}, []), /* @__PURE__ */ _(s,
|
|
267
|
+
}, []), /* @__PURE__ */ _(s, O({}, i, {
|
|
268
268
|
ref: o
|
|
269
269
|
}));
|
|
270
270
|
});
|
|
@@ -292,18 +292,18 @@ function Ll(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
292
292
|
}
|
|
293
293
|
const dr = "dismissableLayer.update", Fl = "dismissableLayer.pointerDownOutside", Nl = "dismissableLayer.focusOutside";
|
|
294
294
|
let xo;
|
|
295
|
-
const
|
|
295
|
+
const ma = /* @__PURE__ */ lt({
|
|
296
296
|
layers: /* @__PURE__ */ new Set(),
|
|
297
297
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
298
298
|
branches: /* @__PURE__ */ new Set()
|
|
299
|
-
}), Ut = /* @__PURE__ */
|
|
299
|
+
}), Ut = /* @__PURE__ */ R((e, t) => {
|
|
300
300
|
var n;
|
|
301
|
-
const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: o, onPointerDownOutside: a, onFocusOutside: i, onInteractOutside: s, onDismiss: l, ...u } = e, d = Te(
|
|
301
|
+
const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: o, onPointerDownOutside: a, onFocusOutside: i, onInteractOutside: s, onDismiss: l, ...u } = e, d = Te(ma), [f, $] = H(null), p = (n = f == null ? void 0 : f.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, g] = H({}), b = ne(
|
|
302
302
|
t,
|
|
303
|
-
(A) =>
|
|
303
|
+
(A) => $(A)
|
|
304
304
|
), h = Array.from(d.layers), [y] = [
|
|
305
305
|
...d.layersWithOutsidePointerEventsDisabled
|
|
306
|
-
].slice(-1), v = h.indexOf(y), w = f ? h.indexOf(f) : -1,
|
|
306
|
+
].slice(-1), v = h.indexOf(y), w = f ? h.indexOf(f) : -1, m = d.layersWithOutsidePointerEventsDisabled.size > 0, D = w >= v, L = zl((A) => {
|
|
307
307
|
const N = A.target, j = [
|
|
308
308
|
...d.branches
|
|
309
309
|
].some(
|
|
@@ -338,18 +338,18 @@ const $a = /* @__PURE__ */ lt({
|
|
|
338
338
|
]), W(() => {
|
|
339
339
|
const A = () => g({});
|
|
340
340
|
return document.addEventListener(dr, A), () => document.removeEventListener(dr, A);
|
|
341
|
-
}, []), /* @__PURE__ */ _(U.div,
|
|
341
|
+
}, []), /* @__PURE__ */ _(U.div, O({}, u, {
|
|
342
342
|
ref: b,
|
|
343
343
|
style: {
|
|
344
|
-
pointerEvents:
|
|
344
|
+
pointerEvents: m ? D ? "auto" : "none" : void 0,
|
|
345
345
|
...e.style
|
|
346
346
|
},
|
|
347
347
|
onFocusCapture: V(e.onFocusCapture, C.onFocusCapture),
|
|
348
348
|
onBlurCapture: V(e.onBlurCapture, C.onBlurCapture),
|
|
349
349
|
onPointerDownCapture: V(e.onPointerDownCapture, L.onPointerDownCapture)
|
|
350
350
|
}));
|
|
351
|
-
}), Ml = /* @__PURE__ */
|
|
352
|
-
const n = Te(
|
|
351
|
+
}), Ml = /* @__PURE__ */ R((e, t) => {
|
|
352
|
+
const n = Te(ma), r = I(null), o = ne(t, r);
|
|
353
353
|
return W(() => {
|
|
354
354
|
const a = r.current;
|
|
355
355
|
if (a)
|
|
@@ -358,7 +358,7 @@ const $a = /* @__PURE__ */ lt({
|
|
|
358
358
|
};
|
|
359
359
|
}, [
|
|
360
360
|
n.branches
|
|
361
|
-
]), /* @__PURE__ */ _(U.div,
|
|
361
|
+
]), /* @__PURE__ */ _(U.div, O({}, e, {
|
|
362
362
|
ref: o
|
|
363
363
|
}));
|
|
364
364
|
});
|
|
@@ -369,7 +369,7 @@ function zl(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
369
369
|
const a = (s) => {
|
|
370
370
|
if (s.target && !r.current) {
|
|
371
371
|
let u = function() {
|
|
372
|
-
|
|
372
|
+
$a(Fl, n, l, {
|
|
373
373
|
discrete: !0
|
|
374
374
|
});
|
|
375
375
|
};
|
|
@@ -398,7 +398,7 @@ function Bl(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
398
398
|
const n = xe(e), r = I(!1);
|
|
399
399
|
return W(() => {
|
|
400
400
|
const o = (a) => {
|
|
401
|
-
a.target && !r.current &&
|
|
401
|
+
a.target && !r.current && $a(Nl, n, {
|
|
402
402
|
originalEvent: a
|
|
403
403
|
}, {
|
|
404
404
|
discrete: !1
|
|
@@ -417,7 +417,7 @@ function wo() {
|
|
|
417
417
|
const e = new CustomEvent(dr);
|
|
418
418
|
document.dispatchEvent(e);
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function $a(e, t, n, { discrete: r }) {
|
|
421
421
|
const o = n.originalEvent.target, a = new CustomEvent(e, {
|
|
422
422
|
bubbles: !1,
|
|
423
423
|
cancelable: !0,
|
|
@@ -430,8 +430,8 @@ function ma(e, t, n, { discrete: r }) {
|
|
|
430
430
|
const Vl = Ut, Wl = Ml, Gn = "focusScope.autoFocusOnMount", Yn = "focusScope.autoFocusOnUnmount", Po = {
|
|
431
431
|
bubbles: !1,
|
|
432
432
|
cancelable: !0
|
|
433
|
-
}, Nr = /* @__PURE__ */
|
|
434
|
-
const { loop: n = !1, trapped: r = !1, onMountAutoFocus: o, onUnmountAutoFocus: a, ...i } = e, [s, l] = H(null), u = xe(o), d = xe(a), f = I(null),
|
|
433
|
+
}, Nr = /* @__PURE__ */ R((e, t) => {
|
|
434
|
+
const { loop: n = !1, trapped: r = !1, onMountAutoFocus: o, onUnmountAutoFocus: a, ...i } = e, [s, l] = H(null), u = xe(o), d = xe(a), f = I(null), $ = ne(
|
|
435
435
|
t,
|
|
436
436
|
(b) => l(b)
|
|
437
437
|
), p = I({
|
|
@@ -495,10 +495,10 @@ const Vl = Ut, Wl = Ml, Gn = "focusScope.autoFocusOnMount", Yn = "focusScope.aut
|
|
|
495
495
|
return;
|
|
496
496
|
const h = b.key === "Tab" && !b.altKey && !b.ctrlKey && !b.metaKey, y = document.activeElement;
|
|
497
497
|
if (h && y) {
|
|
498
|
-
const v = b.currentTarget, [w,
|
|
499
|
-
w &&
|
|
498
|
+
const v = b.currentTarget, [w, m] = Kl(v);
|
|
499
|
+
w && m ? !b.shiftKey && y === m ? (b.preventDefault(), n && it(w, {
|
|
500
500
|
select: !0
|
|
501
|
-
})) : b.shiftKey && y === w && (b.preventDefault(), n && it(
|
|
501
|
+
})) : b.shiftKey && y === w && (b.preventDefault(), n && it(m, {
|
|
502
502
|
select: !0
|
|
503
503
|
})) : y === v && b.preventDefault();
|
|
504
504
|
}
|
|
@@ -507,10 +507,10 @@ const Vl = Ut, Wl = Ml, Gn = "focusScope.autoFocusOnMount", Yn = "focusScope.aut
|
|
|
507
507
|
r,
|
|
508
508
|
p.paused
|
|
509
509
|
]);
|
|
510
|
-
return /* @__PURE__ */ _(U.div,
|
|
510
|
+
return /* @__PURE__ */ _(U.div, O({
|
|
511
511
|
tabIndex: -1
|
|
512
512
|
}, i, {
|
|
513
|
-
ref:
|
|
513
|
+
ref: $,
|
|
514
514
|
onKeyDown: g
|
|
515
515
|
}));
|
|
516
516
|
});
|
|
@@ -595,15 +595,15 @@ function Yl(e) {
|
|
|
595
595
|
(t) => t.tagName !== "A"
|
|
596
596
|
);
|
|
597
597
|
}
|
|
598
|
-
const jt = /* @__PURE__ */
|
|
598
|
+
const jt = /* @__PURE__ */ R((e, t) => {
|
|
599
599
|
var n;
|
|
600
600
|
const { container: r = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...o } = e;
|
|
601
|
-
return r ? /* @__PURE__ */ hl.createPortal(/* @__PURE__ */ _(U.div,
|
|
601
|
+
return r ? /* @__PURE__ */ hl.createPortal(/* @__PURE__ */ _(U.div, O({}, o, {
|
|
602
602
|
ref: t
|
|
603
603
|
})), r) : null;
|
|
604
604
|
});
|
|
605
605
|
function ql(e, t) {
|
|
606
|
-
return
|
|
606
|
+
return $l((n, r) => {
|
|
607
607
|
const o = t[n][r];
|
|
608
608
|
return o != null ? o : n;
|
|
609
609
|
}, e);
|
|
@@ -639,8 +639,8 @@ function Xl(e) {
|
|
|
639
639
|
]), he(() => {
|
|
640
640
|
const u = r.current, d = o.current;
|
|
641
641
|
if (d !== e) {
|
|
642
|
-
const
|
|
643
|
-
e ? l("MOUNT") : p === "none" || (u == null ? void 0 : u.display) === "none" ? l("UNMOUNT") : l(d &&
|
|
642
|
+
const $ = a.current, p = Jt(u);
|
|
643
|
+
e ? l("MOUNT") : p === "none" || (u == null ? void 0 : u.display) === "none" ? l("UNMOUNT") : l(d && $ !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
644
644
|
}
|
|
645
645
|
}, [
|
|
646
646
|
e,
|
|
@@ -760,21 +760,21 @@ function rd() {
|
|
|
760
760
|
if (ko)
|
|
761
761
|
return vt;
|
|
762
762
|
ko = 1;
|
|
763
|
-
var e =
|
|
763
|
+
var e = $e, t = 60103;
|
|
764
764
|
if (vt.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
|
|
765
765
|
var n = Symbol.for;
|
|
766
766
|
t = n("react.element"), vt.Fragment = n("react.fragment");
|
|
767
767
|
}
|
|
768
768
|
var r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = Object.prototype.hasOwnProperty, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
769
769
|
function i(s, l, u) {
|
|
770
|
-
var d, f = {},
|
|
771
|
-
u !== void 0 && (
|
|
770
|
+
var d, f = {}, $ = null, p = null;
|
|
771
|
+
u !== void 0 && ($ = "" + u), l.key !== void 0 && ($ = "" + l.key), l.ref !== void 0 && (p = l.ref);
|
|
772
772
|
for (d in l)
|
|
773
773
|
o.call(l, d) && !a.hasOwnProperty(d) && (f[d] = l[d]);
|
|
774
774
|
if (s && s.defaultProps)
|
|
775
775
|
for (d in l = s.defaultProps, l)
|
|
776
776
|
f[d] === void 0 && (f[d] = l[d]);
|
|
777
|
-
return { $$typeof: t, type: s, key:
|
|
777
|
+
return { $$typeof: t, type: s, key: $, ref: p, props: f, _owner: r.current };
|
|
778
778
|
}
|
|
779
779
|
return vt.jsx = i, vt.jsxs = i, vt;
|
|
780
780
|
}
|
|
@@ -791,18 +791,18 @@ var Ro;
|
|
|
791
791
|
function od() {
|
|
792
792
|
return Ro || (Ro = 1, function(e) {
|
|
793
793
|
process.env.NODE_ENV !== "production" && function() {
|
|
794
|
-
var t =
|
|
794
|
+
var t = $e, n = 60103, r = 60106;
|
|
795
795
|
e.Fragment = 60107;
|
|
796
|
-
var o = 60108, a = 60114, i = 60109, s = 60110, l = 60112, u = 60113, d = 60120, f = 60115,
|
|
796
|
+
var o = 60108, a = 60114, i = 60109, s = 60110, l = 60112, u = 60113, d = 60120, f = 60115, $ = 60116, p = 60121, g = 60122, b = 60117, h = 60129, y = 60131;
|
|
797
797
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
798
798
|
var v = Symbol.for;
|
|
799
|
-
n = v("react.element"), r = v("react.portal"), e.Fragment = v("react.fragment"), o = v("react.strict_mode"), a = v("react.profiler"), i = v("react.provider"), s = v("react.context"), l = v("react.forward_ref"), u = v("react.suspense"), d = v("react.suspense_list"), f = v("react.memo"),
|
|
799
|
+
n = v("react.element"), r = v("react.portal"), e.Fragment = v("react.fragment"), o = v("react.strict_mode"), a = v("react.profiler"), i = v("react.provider"), s = v("react.context"), l = v("react.forward_ref"), u = v("react.suspense"), d = v("react.suspense_list"), f = v("react.memo"), $ = v("react.lazy"), p = v("react.block"), g = v("react.server.block"), b = v("react.fundamental"), v("react.scope"), v("react.opaque.id"), h = v("react.debug_trace_mode"), v("react.offscreen"), y = v("react.legacy_hidden");
|
|
800
800
|
}
|
|
801
|
-
var w = typeof Symbol == "function" && Symbol.iterator,
|
|
801
|
+
var w = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
802
802
|
function D(x) {
|
|
803
803
|
if (x === null || typeof x != "object")
|
|
804
804
|
return null;
|
|
805
|
-
var F = w && x[w] || x[
|
|
805
|
+
var F = w && x[w] || x[m];
|
|
806
806
|
return typeof F == "function" ? F : null;
|
|
807
807
|
}
|
|
808
808
|
var L = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -829,7 +829,7 @@ function od() {
|
|
|
829
829
|
}
|
|
830
830
|
var N = !1;
|
|
831
831
|
function j(x) {
|
|
832
|
-
return !!(typeof x == "string" || typeof x == "function" || x === e.Fragment || x === a || x === h || x === o || x === u || x === d || x === y || N || typeof x == "object" && x !== null && (x.$$typeof ===
|
|
832
|
+
return !!(typeof x == "string" || typeof x == "function" || x === e.Fragment || x === a || x === h || x === o || x === u || x === d || x === y || N || typeof x == "object" && x !== null && (x.$$typeof === $ || x.$$typeof === f || x.$$typeof === i || x.$$typeof === s || x.$$typeof === l || x.$$typeof === b || x.$$typeof === p || x[0] === g));
|
|
833
833
|
}
|
|
834
834
|
var T = /^(.*)[\\\/]/;
|
|
835
835
|
function K(x, F, M) {
|
|
@@ -856,7 +856,7 @@ function od() {
|
|
|
856
856
|
function P(x) {
|
|
857
857
|
return x._status === S ? x._result : null;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function X(x, F, M) {
|
|
860
860
|
var Q = F.displayName || F.name || "";
|
|
861
861
|
return x.displayName || (Q !== "" ? M + "(" + Q + ")" : M);
|
|
862
862
|
}
|
|
@@ -888,12 +888,12 @@ function od() {
|
|
|
888
888
|
case i:
|
|
889
889
|
return "Context.Provider";
|
|
890
890
|
case l:
|
|
891
|
-
return
|
|
891
|
+
return X(x, x.render, "ForwardRef");
|
|
892
892
|
case f:
|
|
893
893
|
return J(x.type);
|
|
894
894
|
case p:
|
|
895
895
|
return J(x.render);
|
|
896
|
-
case
|
|
896
|
+
case $: {
|
|
897
897
|
var F = x, M = P(F);
|
|
898
898
|
if (M)
|
|
899
899
|
return J(M);
|
|
@@ -934,7 +934,7 @@ function od() {
|
|
|
934
934
|
__source: !0
|
|
935
935
|
}, te, ie, fe;
|
|
936
936
|
fe = {};
|
|
937
|
-
function
|
|
937
|
+
function me(x) {
|
|
938
938
|
if (re.call(x, "ref")) {
|
|
939
939
|
var F = Object.getOwnPropertyDescriptor(x, "ref").get;
|
|
940
940
|
if (F && F.isReactWarning)
|
|
@@ -1007,7 +1007,7 @@ function od() {
|
|
|
1007
1007
|
function ot(x, F, M, Q, se) {
|
|
1008
1008
|
{
|
|
1009
1009
|
var ce, ae = {}, ee = null, ve = null;
|
|
1010
|
-
M !== void 0 && (ee = "" + M), ge(F) && (ee = "" + F.key),
|
|
1010
|
+
M !== void 0 && (ee = "" + M), ge(F) && (ee = "" + F.key), me(F) && (ve = F.ref, ze(F, se));
|
|
1011
1011
|
for (ce in F)
|
|
1012
1012
|
re.call(F, ce) && !Z.hasOwnProperty(ce) && (ae[ce] = F[ce]);
|
|
1013
1013
|
if (x && x.defaultProps) {
|
|
@@ -1259,12 +1259,12 @@ function cd(e, t) {
|
|
|
1259
1259
|
return e.useMedium(t), va;
|
|
1260
1260
|
}
|
|
1261
1261
|
var _a = sd(), Zn = function() {
|
|
1262
|
-
}, xn =
|
|
1263
|
-
var n =
|
|
1262
|
+
}, xn = q.forwardRef(function(e, t) {
|
|
1263
|
+
var n = q.useRef(null), r = q.useState({
|
|
1264
1264
|
onScrollCapture: Zn,
|
|
1265
1265
|
onWheelCapture: Zn,
|
|
1266
1266
|
onTouchMoveCapture: Zn
|
|
1267
|
-
}), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards,
|
|
1267
|
+
}), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, $ = e.sideCar, p = e.noIsolation, g = e.inert, b = e.allowPinchZoom, h = e.as, y = h === void 0 ? "div" : h, v = ha(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), w = $, m = nd([n, t]), D = Le(Le({}, v), o);
|
|
1268
1268
|
return /* @__PURE__ */ oe(zr, {
|
|
1269
1269
|
children: [d && /* @__PURE__ */ E(w, {
|
|
1270
1270
|
sideCar: _a,
|
|
@@ -1275,12 +1275,12 @@ var _a = sd(), Zn = function() {
|
|
|
1275
1275
|
setCallbacks: a,
|
|
1276
1276
|
allowPinchZoom: !!b,
|
|
1277
1277
|
lockRef: n
|
|
1278
|
-
}), i ?
|
|
1279
|
-
ref:
|
|
1278
|
+
}), i ? q.cloneElement(q.Children.only(s), Le(Le({}, D), {
|
|
1279
|
+
ref: m
|
|
1280
1280
|
})) : /* @__PURE__ */ E(y, {
|
|
1281
1281
|
...Le({}, D, {
|
|
1282
1282
|
className: l,
|
|
1283
|
-
ref:
|
|
1283
|
+
ref: m
|
|
1284
1284
|
}),
|
|
1285
1285
|
children: s
|
|
1286
1286
|
})]
|
|
@@ -1327,7 +1327,7 @@ var pd = function() {
|
|
|
1327
1327
|
}, bd = function() {
|
|
1328
1328
|
var e = pd();
|
|
1329
1329
|
return function(t, n) {
|
|
1330
|
-
|
|
1330
|
+
q.useEffect(function() {
|
|
1331
1331
|
return e.add(t), function() {
|
|
1332
1332
|
e.remove();
|
|
1333
1333
|
};
|
|
@@ -1339,20 +1339,20 @@ var pd = function() {
|
|
|
1339
1339
|
return e(r, o), null;
|
|
1340
1340
|
};
|
|
1341
1341
|
return t;
|
|
1342
|
-
},
|
|
1342
|
+
}, md = {
|
|
1343
1343
|
left: 0,
|
|
1344
1344
|
top: 0,
|
|
1345
1345
|
right: 0,
|
|
1346
1346
|
gap: 0
|
|
1347
1347
|
}, Jn = function(e) {
|
|
1348
1348
|
return parseInt(e || "", 10) || 0;
|
|
1349
|
-
},
|
|
1349
|
+
}, $d = function(e) {
|
|
1350
1350
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
1351
1351
|
return [Jn(n), Jn(r), Jn(o)];
|
|
1352
1352
|
}, gd = function(e) {
|
|
1353
1353
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
1354
|
-
return
|
|
1355
|
-
var t =
|
|
1354
|
+
return md;
|
|
1355
|
+
var t = $d(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
1356
1356
|
return {
|
|
1357
1357
|
left: t[0],
|
|
1358
1358
|
top: t[1],
|
|
@@ -1400,7 +1400,7 @@ var pd = function() {
|
|
|
1400
1400
|
}
|
|
1401
1401
|
`);
|
|
1402
1402
|
}, _d = function(e) {
|
|
1403
|
-
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r, a =
|
|
1403
|
+
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r, a = q.useMemo(function() {
|
|
1404
1404
|
return gd(o);
|
|
1405
1405
|
}, [o]);
|
|
1406
1406
|
return /* @__PURE__ */ E(hd, {
|
|
@@ -1461,12 +1461,12 @@ var _t = ur ? { passive: !1 } : !1, yd = function(e) {
|
|
|
1461
1461
|
}, Cd = function(e, t) {
|
|
1462
1462
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
1463
1463
|
}, Ed = function(e, t, n, r, o) {
|
|
1464
|
-
var a = Cd(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), u = !1, d = i > 0, f = 0,
|
|
1464
|
+
var a = Cd(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), u = !1, d = i > 0, f = 0, $ = 0;
|
|
1465
1465
|
do {
|
|
1466
1466
|
var p = Pa(e, s), g = p[0], b = p[1], h = p[2], y = b - h - a * g;
|
|
1467
|
-
(g || y) && wa(e, s) && (f += y,
|
|
1467
|
+
(g || y) && wa(e, s) && (f += y, $ += g), s = s.parentNode;
|
|
1468
1468
|
} while (!l && s !== document.body || l && (t.contains(s) || t === s));
|
|
1469
|
-
return (d && (o && f === 0 || !o && i > f) || !d && (o &&
|
|
1469
|
+
return (d && (o && f === 0 || !o && i > f) || !d && (o && $ === 0 || !o && -i > $)) && (u = !0), u;
|
|
1470
1470
|
}, en = function(e) {
|
|
1471
1471
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
1472
1472
|
}, Do = function(e) {
|
|
@@ -1482,12 +1482,12 @@ var _t = ur ? { passive: !1 } : !1, yd = function(e) {
|
|
|
1482
1482
|
`);
|
|
1483
1483
|
}, Rd = 0, yt = [];
|
|
1484
1484
|
function Od(e) {
|
|
1485
|
-
var t =
|
|
1485
|
+
var t = q.useRef([]), n = q.useRef([0, 0]), r = q.useRef(), o = q.useState(Rd++)[0], a = q.useState(function() {
|
|
1486
1486
|
return ya();
|
|
1487
|
-
})[0], i =
|
|
1488
|
-
|
|
1487
|
+
})[0], i = q.useRef(e);
|
|
1488
|
+
q.useEffect(function() {
|
|
1489
1489
|
i.current = e;
|
|
1490
|
-
}, [e]),
|
|
1490
|
+
}, [e]), q.useEffect(function() {
|
|
1491
1491
|
if (e.inert) {
|
|
1492
1492
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
1493
1493
|
var b = Zl([e.lockRef.current], (e.shards || []).map(Io), !0).filter(Boolean);
|
|
@@ -1500,10 +1500,10 @@ function Od(e) {
|
|
|
1500
1500
|
};
|
|
1501
1501
|
}
|
|
1502
1502
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
1503
|
-
var s =
|
|
1503
|
+
var s = q.useCallback(function(b, h) {
|
|
1504
1504
|
if ("touches" in b && b.touches.length === 2)
|
|
1505
1505
|
return !i.current.allowPinchZoom;
|
|
1506
|
-
var y = en(b), v = n.current, w = "deltaX" in b ? b.deltaX : v[0] - y[0],
|
|
1506
|
+
var y = en(b), v = n.current, w = "deltaX" in b ? b.deltaX : v[0] - y[0], m = "deltaY" in b ? b.deltaY : v[1] - y[1], D, L = b.target, C = Math.abs(w) > Math.abs(m) ? "h" : "v";
|
|
1507
1507
|
if ("touches" in b && C === "h" && L.type === "range")
|
|
1508
1508
|
return !1;
|
|
1509
1509
|
var A = Oo(C, L);
|
|
@@ -1511,11 +1511,11 @@ function Od(e) {
|
|
|
1511
1511
|
return !0;
|
|
1512
1512
|
if (A ? D = C : (D = C === "v" ? "h" : "v", A = Oo(C, L)), !A)
|
|
1513
1513
|
return !1;
|
|
1514
|
-
if (!r.current && "changedTouches" in b && (w ||
|
|
1514
|
+
if (!r.current && "changedTouches" in b && (w || m) && (r.current = D), !D)
|
|
1515
1515
|
return !0;
|
|
1516
1516
|
var N = r.current || D;
|
|
1517
|
-
return Ed(N, h, b, N === "h" ? w :
|
|
1518
|
-
}, []), l =
|
|
1517
|
+
return Ed(N, h, b, N === "h" ? w : m, !0);
|
|
1518
|
+
}, []), l = q.useCallback(function(b) {
|
|
1519
1519
|
var h = b;
|
|
1520
1520
|
if (!(!yt.length || yt[yt.length - 1] !== a)) {
|
|
1521
1521
|
var y = "deltaY" in h ? Do(h) : en(h), v = t.current.filter(function(D) {
|
|
@@ -1528,11 +1528,11 @@ function Od(e) {
|
|
|
1528
1528
|
if (!v) {
|
|
1529
1529
|
var w = (i.current.shards || []).map(Io).filter(Boolean).filter(function(D) {
|
|
1530
1530
|
return D.contains(h.target);
|
|
1531
|
-
}),
|
|
1532
|
-
|
|
1531
|
+
}), m = w.length > 0 ? s(h, w[0]) : !i.current.noIsolation;
|
|
1532
|
+
m && h.cancelable && h.preventDefault();
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
|
-
}, []), u =
|
|
1535
|
+
}, []), u = q.useCallback(function(b, h, y, v) {
|
|
1536
1536
|
var w = {
|
|
1537
1537
|
name: b,
|
|
1538
1538
|
delta: h,
|
|
@@ -1540,22 +1540,22 @@ function Od(e) {
|
|
|
1540
1540
|
should: v
|
|
1541
1541
|
};
|
|
1542
1542
|
t.current.push(w), setTimeout(function() {
|
|
1543
|
-
t.current = t.current.filter(function(
|
|
1544
|
-
return
|
|
1543
|
+
t.current = t.current.filter(function(m) {
|
|
1544
|
+
return m !== w;
|
|
1545
1545
|
});
|
|
1546
1546
|
}, 1);
|
|
1547
|
-
}, []), d =
|
|
1547
|
+
}, []), d = q.useCallback(function(b) {
|
|
1548
1548
|
n.current = en(b), r.current = void 0;
|
|
1549
|
-
}, []), f =
|
|
1549
|
+
}, []), f = q.useCallback(function(b) {
|
|
1550
1550
|
u(b.type, Do(b), b.target, s(b, e.lockRef.current));
|
|
1551
|
-
}, []),
|
|
1551
|
+
}, []), $ = q.useCallback(function(b) {
|
|
1552
1552
|
u(b.type, en(b), b.target, s(b, e.lockRef.current));
|
|
1553
1553
|
}, []);
|
|
1554
|
-
|
|
1554
|
+
q.useEffect(function() {
|
|
1555
1555
|
return yt.push(a), e.setCallbacks({
|
|
1556
1556
|
onScrollCapture: f,
|
|
1557
1557
|
onWheelCapture: f,
|
|
1558
|
-
onTouchMoveCapture:
|
|
1558
|
+
onTouchMoveCapture: $
|
|
1559
1559
|
}), document.addEventListener("wheel", l, _t), document.addEventListener("touchmove", l, _t), document.addEventListener("touchstart", d, _t), function() {
|
|
1560
1560
|
yt = yt.filter(function(b) {
|
|
1561
1561
|
return b !== a;
|
|
@@ -1572,7 +1572,7 @@ function Od(e) {
|
|
|
1572
1572
|
});
|
|
1573
1573
|
}
|
|
1574
1574
|
const Dd = cd(_a, Od);
|
|
1575
|
-
var Ta =
|
|
1575
|
+
var Ta = q.forwardRef(function(e, t) {
|
|
1576
1576
|
return /* @__PURE__ */ E(xn, {
|
|
1577
1577
|
...Le({}, e, {
|
|
1578
1578
|
ref: t,
|
|
@@ -1606,19 +1606,19 @@ var Id = function(e) {
|
|
|
1606
1606
|
};
|
|
1607
1607
|
o.forEach(u);
|
|
1608
1608
|
var d = function(f) {
|
|
1609
|
-
!f || l.has(f) || Array.prototype.forEach.call(f.children, function(
|
|
1610
|
-
if (s.has(
|
|
1611
|
-
d(
|
|
1609
|
+
!f || l.has(f) || Array.prototype.forEach.call(f.children, function($) {
|
|
1610
|
+
if (s.has($))
|
|
1611
|
+
d($);
|
|
1612
1612
|
else {
|
|
1613
|
-
var p =
|
|
1614
|
-
xt.set(
|
|
1613
|
+
var p = $.getAttribute(r), g = p !== null && p !== "false", b = (xt.get($) || 0) + 1, h = (a.get($) || 0) + 1;
|
|
1614
|
+
xt.set($, b), a.set($, h), i.push($), b === 1 && g && tn.set($, !0), h === 1 && $.setAttribute(n, "true"), g || $.setAttribute(r, "true");
|
|
1615
1615
|
}
|
|
1616
1616
|
});
|
|
1617
1617
|
};
|
|
1618
1618
|
return d(t), s.clear(), Qn++, function() {
|
|
1619
1619
|
i.forEach(function(f) {
|
|
1620
|
-
var
|
|
1621
|
-
xt.set(f,
|
|
1620
|
+
var $ = xt.get(f) - 1, p = a.get(f) - 1;
|
|
1621
|
+
xt.set(f, $), a.set(f, p), $ || (tn.has(f) || f.removeAttribute(r), tn.delete(f)), p || f.removeAttribute(n);
|
|
1622
1622
|
}), Qn--, Qn || (xt = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), nn = {});
|
|
1623
1623
|
};
|
|
1624
1624
|
}, Vr = function(e, t, n) {
|
|
@@ -1653,9 +1653,9 @@ const Ea = "Dialog", [Sa, ka] = we(Ea), [Fd, ke] = Sa(Ea), Nd = (e) => {
|
|
|
1653
1653
|
),
|
|
1654
1654
|
modal: i
|
|
1655
1655
|
}, n);
|
|
1656
|
-
}, Md = "DialogTrigger", zd = /* @__PURE__ */
|
|
1656
|
+
}, Md = "DialogTrigger", zd = /* @__PURE__ */ R((e, t) => {
|
|
1657
1657
|
const { __scopeDialog: n, ...r } = e, o = ke(Md, n), a = ne(t, o.triggerRef);
|
|
1658
|
-
return /* @__PURE__ */ _(U.button,
|
|
1658
|
+
return /* @__PURE__ */ _(U.button, O({
|
|
1659
1659
|
type: "button",
|
|
1660
1660
|
"aria-haspopup": "dialog",
|
|
1661
1661
|
"aria-expanded": o.open,
|
|
@@ -1681,14 +1681,14 @@ const Ea = "Dialog", [Sa, ka] = we(Ea), [Fd, ke] = Sa(Ea), Nd = (e) => {
|
|
|
1681
1681
|
container: o
|
|
1682
1682
|
}, i))
|
|
1683
1683
|
));
|
|
1684
|
-
}, fr = "DialogOverlay", Wd = /* @__PURE__ */
|
|
1684
|
+
}, fr = "DialogOverlay", Wd = /* @__PURE__ */ R((e, t) => {
|
|
1685
1685
|
const n = Oa(fr, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = ke(fr, e.__scopeDialog);
|
|
1686
1686
|
return a.modal ? /* @__PURE__ */ _(Se, {
|
|
1687
1687
|
present: r || a.open
|
|
1688
|
-
}, /* @__PURE__ */ _(Hd,
|
|
1688
|
+
}, /* @__PURE__ */ _(Hd, O({}, o, {
|
|
1689
1689
|
ref: t
|
|
1690
1690
|
}))) : null;
|
|
1691
|
-
}), Hd = /* @__PURE__ */
|
|
1691
|
+
}), Hd = /* @__PURE__ */ R((e, t) => {
|
|
1692
1692
|
const { __scopeDialog: n, ...r } = e, o = ke(fr, n);
|
|
1693
1693
|
return /* @__PURE__ */ _(Br, {
|
|
1694
1694
|
as: ut,
|
|
@@ -1696,7 +1696,7 @@ const Ea = "Dialog", [Sa, ka] = we(Ea), [Fd, ke] = Sa(Ea), Nd = (e) => {
|
|
|
1696
1696
|
shards: [
|
|
1697
1697
|
o.contentRef
|
|
1698
1698
|
]
|
|
1699
|
-
}, /* @__PURE__ */ _(U.div,
|
|
1699
|
+
}, /* @__PURE__ */ _(U.div, O({
|
|
1700
1700
|
"data-state": Wr(o.open)
|
|
1701
1701
|
}, r, {
|
|
1702
1702
|
ref: t,
|
|
@@ -1705,22 +1705,22 @@ const Ea = "Dialog", [Sa, ka] = we(Ea), [Fd, ke] = Sa(Ea), Nd = (e) => {
|
|
|
1705
1705
|
...r.style
|
|
1706
1706
|
}
|
|
1707
1707
|
})));
|
|
1708
|
-
}), St = "DialogContent", Kd = /* @__PURE__ */
|
|
1708
|
+
}), St = "DialogContent", Kd = /* @__PURE__ */ R((e, t) => {
|
|
1709
1709
|
const n = Oa(St, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = ke(St, e.__scopeDialog);
|
|
1710
1710
|
return /* @__PURE__ */ _(Se, {
|
|
1711
1711
|
present: r || a.open
|
|
1712
|
-
}, a.modal ? /* @__PURE__ */ _(Ud,
|
|
1712
|
+
}, a.modal ? /* @__PURE__ */ _(Ud, O({}, o, {
|
|
1713
1713
|
ref: t
|
|
1714
|
-
})) : /* @__PURE__ */ _(jd,
|
|
1714
|
+
})) : /* @__PURE__ */ _(jd, O({}, o, {
|
|
1715
1715
|
ref: t
|
|
1716
1716
|
})));
|
|
1717
|
-
}), Ud = /* @__PURE__ */
|
|
1717
|
+
}), Ud = /* @__PURE__ */ R((e, t) => {
|
|
1718
1718
|
const n = ke(St, e.__scopeDialog), r = I(null), o = ne(t, n.contentRef, r);
|
|
1719
1719
|
return W(() => {
|
|
1720
1720
|
const a = r.current;
|
|
1721
1721
|
if (a)
|
|
1722
1722
|
return Vr(a);
|
|
1723
|
-
}, []), /* @__PURE__ */ _(Da,
|
|
1723
|
+
}, []), /* @__PURE__ */ _(Da, O({}, e, {
|
|
1724
1724
|
ref: o,
|
|
1725
1725
|
trapFocus: n.open,
|
|
1726
1726
|
disableOutsidePointerEvents: !0,
|
|
@@ -1737,9 +1737,9 @@ const Ea = "Dialog", [Sa, ka] = we(Ea), [Fd, ke] = Sa(Ea), Nd = (e) => {
|
|
|
1737
1737
|
(a) => a.preventDefault()
|
|
1738
1738
|
)
|
|
1739
1739
|
}));
|
|
1740
|
-
}), jd = /* @__PURE__ */
|
|
1740
|
+
}), jd = /* @__PURE__ */ R((e, t) => {
|
|
1741
1741
|
const n = ke(St, e.__scopeDialog), r = I(!1);
|
|
1742
|
-
return /* @__PURE__ */ _(Da,
|
|
1742
|
+
return /* @__PURE__ */ _(Da, O({}, e, {
|
|
1743
1743
|
ref: t,
|
|
1744
1744
|
trapFocus: !1,
|
|
1745
1745
|
disableOutsidePointerEvents: !1,
|
|
@@ -1758,7 +1758,7 @@ const Ea = "Dialog", [Sa, ka] = we(Ea), [Fd, ke] = Sa(Ea), Nd = (e) => {
|
|
|
1758
1758
|
((i = n.triggerRef.current) === null || i === void 0 ? void 0 : i.contains(s)) && o.preventDefault();
|
|
1759
1759
|
}
|
|
1760
1760
|
}));
|
|
1761
|
-
}), Da = /* @__PURE__ */
|
|
1761
|
+
}), Da = /* @__PURE__ */ R((e, t) => {
|
|
1762
1762
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, s = ke(St, n), l = I(null), u = ne(t, l);
|
|
1763
1763
|
return Mr(), /* @__PURE__ */ _(nt, null, /* @__PURE__ */ _(Nr, {
|
|
1764
1764
|
asChild: !0,
|
|
@@ -1766,7 +1766,7 @@ const Ea = "Dialog", [Sa, ka] = we(Ea), [Fd, ke] = Sa(Ea), Nd = (e) => {
|
|
|
1766
1766
|
trapped: r,
|
|
1767
1767
|
onMountAutoFocus: o,
|
|
1768
1768
|
onUnmountAutoFocus: a
|
|
1769
|
-
}, /* @__PURE__ */ _(Ut,
|
|
1769
|
+
}, /* @__PURE__ */ _(Ut, O({
|
|
1770
1770
|
role: "dialog",
|
|
1771
1771
|
id: s.contentId,
|
|
1772
1772
|
"aria-describedby": s.descriptionId,
|
|
@@ -1776,23 +1776,23 @@ const Ea = "Dialog", [Sa, ka] = we(Ea), [Fd, ke] = Sa(Ea), Nd = (e) => {
|
|
|
1776
1776
|
ref: u,
|
|
1777
1777
|
onDismiss: () => s.onOpenChange(!1)
|
|
1778
1778
|
}))), !1);
|
|
1779
|
-
}), Ia = "DialogTitle", Gd = /* @__PURE__ */
|
|
1779
|
+
}), Ia = "DialogTitle", Gd = /* @__PURE__ */ R((e, t) => {
|
|
1780
1780
|
const { __scopeDialog: n, ...r } = e, o = ke(Ia, n);
|
|
1781
|
-
return /* @__PURE__ */ _(U.h2,
|
|
1781
|
+
return /* @__PURE__ */ _(U.h2, O({
|
|
1782
1782
|
id: o.titleId
|
|
1783
1783
|
}, r, {
|
|
1784
1784
|
ref: t
|
|
1785
1785
|
}));
|
|
1786
|
-
}), Yd = "DialogDescription", qd = /* @__PURE__ */
|
|
1786
|
+
}), Yd = "DialogDescription", qd = /* @__PURE__ */ R((e, t) => {
|
|
1787
1787
|
const { __scopeDialog: n, ...r } = e, o = ke(Yd, n);
|
|
1788
|
-
return /* @__PURE__ */ _(U.p,
|
|
1788
|
+
return /* @__PURE__ */ _(U.p, O({
|
|
1789
1789
|
id: o.descriptionId
|
|
1790
1790
|
}, r, {
|
|
1791
1791
|
ref: t
|
|
1792
1792
|
}));
|
|
1793
|
-
}), Xd = "DialogClose", Zd = /* @__PURE__ */
|
|
1793
|
+
}), Xd = "DialogClose", Zd = /* @__PURE__ */ R((e, t) => {
|
|
1794
1794
|
const { __scopeDialog: n, ...r } = e, o = ke(Xd, n);
|
|
1795
|
-
return /* @__PURE__ */ _(U.button,
|
|
1795
|
+
return /* @__PURE__ */ _(U.button, O({
|
|
1796
1796
|
type: "button"
|
|
1797
1797
|
}, r, {
|
|
1798
1798
|
ref: t,
|
|
@@ -1813,23 +1813,23 @@ const Jd = "DialogTitleWarning", [Qd, Eh] = Cl(Jd, {
|
|
|
1813
1813
|
ka
|
|
1814
1814
|
]), Ge = ka(), nu = (e) => {
|
|
1815
1815
|
const { __scopeAlertDialog: t, ...n } = e, r = Ge(t);
|
|
1816
|
-
return /* @__PURE__ */ _(Aa,
|
|
1816
|
+
return /* @__PURE__ */ _(Aa, O({}, r, n, {
|
|
1817
1817
|
modal: !0
|
|
1818
1818
|
}));
|
|
1819
|
-
}, ru = /* @__PURE__ */
|
|
1819
|
+
}, ru = /* @__PURE__ */ R((e, t) => {
|
|
1820
1820
|
const { __scopeAlertDialog: n, ...r } = e, o = Ge(n);
|
|
1821
|
-
return /* @__PURE__ */ _(La,
|
|
1821
|
+
return /* @__PURE__ */ _(La, O({}, o, r, {
|
|
1822
1822
|
ref: t
|
|
1823
1823
|
}));
|
|
1824
1824
|
}), ou = (e) => {
|
|
1825
1825
|
const { __scopeAlertDialog: t, ...n } = e, r = Ge(t);
|
|
1826
|
-
return /* @__PURE__ */ _(Fa,
|
|
1827
|
-
}, au = /* @__PURE__ */
|
|
1826
|
+
return /* @__PURE__ */ _(Fa, O({}, r, n));
|
|
1827
|
+
}, au = /* @__PURE__ */ R((e, t) => {
|
|
1828
1828
|
const { __scopeAlertDialog: n, ...r } = e, o = Ge(n);
|
|
1829
|
-
return /* @__PURE__ */ _(Na,
|
|
1829
|
+
return /* @__PURE__ */ _(Na, O({}, o, r, {
|
|
1830
1830
|
ref: t
|
|
1831
1831
|
}));
|
|
1832
|
-
}), Va = "AlertDialogContent", [iu, su] = tu(Va), cu = /* @__PURE__ */
|
|
1832
|
+
}), Va = "AlertDialogContent", [iu, su] = tu(Va), cu = /* @__PURE__ */ R((e, t) => {
|
|
1833
1833
|
const { __scopeAlertDialog: n, children: r, ...o } = e, a = Ge(n), i = I(null), s = ne(t, i), l = I(null);
|
|
1834
1834
|
return /* @__PURE__ */ _(Qd, {
|
|
1835
1835
|
contentName: Va,
|
|
@@ -1838,7 +1838,7 @@ const Jd = "DialogTitleWarning", [Qd, Eh] = Cl(Jd, {
|
|
|
1838
1838
|
}, /* @__PURE__ */ _(iu, {
|
|
1839
1839
|
scope: n,
|
|
1840
1840
|
cancelRef: l
|
|
1841
|
-
}, /* @__PURE__ */ _(Ma,
|
|
1841
|
+
}, /* @__PURE__ */ _(Ma, O({
|
|
1842
1842
|
role: "alertdialog"
|
|
1843
1843
|
}, a, o, {
|
|
1844
1844
|
ref: s,
|
|
@@ -1851,27 +1851,27 @@ const Jd = "DialogTitleWarning", [Qd, Eh] = Cl(Jd, {
|
|
|
1851
1851
|
onPointerDownOutside: (u) => u.preventDefault(),
|
|
1852
1852
|
onInteractOutside: (u) => u.preventDefault()
|
|
1853
1853
|
}), /* @__PURE__ */ _(Fr, null, r), !1)));
|
|
1854
|
-
}), lu = "AlertDialogTitle", du = /* @__PURE__ */
|
|
1854
|
+
}), lu = "AlertDialogTitle", du = /* @__PURE__ */ R((e, t) => {
|
|
1855
1855
|
const { __scopeAlertDialog: n, ...r } = e, o = Ge(n);
|
|
1856
|
-
return /* @__PURE__ */ _(za,
|
|
1856
|
+
return /* @__PURE__ */ _(za, O({}, o, r, {
|
|
1857
1857
|
ref: t
|
|
1858
1858
|
}));
|
|
1859
|
-
}), uu = /* @__PURE__ */
|
|
1859
|
+
}), uu = /* @__PURE__ */ R((e, t) => {
|
|
1860
1860
|
const { __scopeAlertDialog: n, ...r } = e, o = Ge(n);
|
|
1861
|
-
return /* @__PURE__ */ _(Ba,
|
|
1861
|
+
return /* @__PURE__ */ _(Ba, O({}, o, r, {
|
|
1862
1862
|
ref: t
|
|
1863
1863
|
}));
|
|
1864
|
-
}), fu = /* @__PURE__ */
|
|
1864
|
+
}), fu = /* @__PURE__ */ R((e, t) => {
|
|
1865
1865
|
const { __scopeAlertDialog: n, ...r } = e, o = Ge(n);
|
|
1866
|
-
return /* @__PURE__ */ _(Hr,
|
|
1866
|
+
return /* @__PURE__ */ _(Hr, O({}, o, r, {
|
|
1867
1867
|
ref: t
|
|
1868
1868
|
}));
|
|
1869
|
-
}), pu = "AlertDialogCancel", bu = /* @__PURE__ */
|
|
1869
|
+
}), pu = "AlertDialogCancel", bu = /* @__PURE__ */ R((e, t) => {
|
|
1870
1870
|
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: o } = su(pu, n), a = Ge(n), i = ne(t, o);
|
|
1871
|
-
return /* @__PURE__ */ _(Hr,
|
|
1871
|
+
return /* @__PURE__ */ _(Hr, O({}, a, r, {
|
|
1872
1872
|
ref: i
|
|
1873
1873
|
}));
|
|
1874
|
-
}),
|
|
1874
|
+
}), mu = nu, $u = ru, gu = ou, hu = au, vu = cu, _u = fu, yu = bu, xu = du, wu = uu, c = {
|
|
1875
1875
|
border_radius_0: "0",
|
|
1876
1876
|
border_radius_100: "1px",
|
|
1877
1877
|
border_radius_200: "2px",
|
|
@@ -2233,7 +2233,18 @@ const Rh = k(za)`
|
|
|
2233
2233
|
3%
|
|
2234
2234
|
); /* Interactive / Overlay / Secondary / Hover */
|
|
2235
2235
|
}
|
|
2236
|
-
`, Ah = Aa, Lh =
|
|
2236
|
+
`, Ah = Aa, Lh = q.forwardRef((e, t) => {
|
|
2237
|
+
const {
|
|
2238
|
+
children: n,
|
|
2239
|
+
...r
|
|
2240
|
+
} = e;
|
|
2241
|
+
return /* @__PURE__ */ E(La, {
|
|
2242
|
+
ref: t,
|
|
2243
|
+
type: "button",
|
|
2244
|
+
...r,
|
|
2245
|
+
children: n
|
|
2246
|
+
});
|
|
2247
|
+
}), Fh = Hr, Cu = k(hu)`
|
|
2237
2248
|
--overlay-opacity: 0.8;
|
|
2238
2249
|
background-color: dimgray; // TODO
|
|
2239
2250
|
opacity: var(--overlay-opacity);
|
|
@@ -2292,7 +2303,18 @@ const Mh = k(xu)`
|
|
|
2292
2303
|
display: flex;
|
|
2293
2304
|
justify-content: end;
|
|
2294
2305
|
gap: ${c.sizing_200};
|
|
2295
|
-
`, Vh =
|
|
2306
|
+
`, Vh = mu, Wh = q.forwardRef((e, t) => {
|
|
2307
|
+
const {
|
|
2308
|
+
children: n,
|
|
2309
|
+
...r
|
|
2310
|
+
} = e;
|
|
2311
|
+
return /* @__PURE__ */ E($u, {
|
|
2312
|
+
ref: t,
|
|
2313
|
+
type: "button",
|
|
2314
|
+
...r,
|
|
2315
|
+
children: n
|
|
2316
|
+
});
|
|
2317
|
+
}), Hh = _u, Kh = yu, wn = /* @__PURE__ */ R((e, t) => /* @__PURE__ */ _(U.span, O({}, e, {
|
|
2296
2318
|
ref: t,
|
|
2297
2319
|
style: {
|
|
2298
2320
|
position: "absolute",
|
|
@@ -2327,13 +2349,13 @@ function Ru(e, t, n) {
|
|
|
2327
2349
|
let [r, o] = H(e || t), a = I(e !== void 0), i = a.current, s = e !== void 0, l = I(r);
|
|
2328
2350
|
i !== s && console.warn(`WARN: A component changed from ${i ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}.`), a.current = s;
|
|
2329
2351
|
let u = B((d, ...f) => {
|
|
2330
|
-
let
|
|
2352
|
+
let $ = (p, ...g) => {
|
|
2331
2353
|
n && (Object.is(l.current, p) || n(p, ...g)), s || (l.current = p);
|
|
2332
2354
|
};
|
|
2333
2355
|
typeof d == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), o((g, ...b) => {
|
|
2334
2356
|
let h = d(s ? l.current : g, ...b);
|
|
2335
|
-
return
|
|
2336
|
-
})) : (s || o(d),
|
|
2357
|
+
return $(h, ...f), s ? g : h;
|
|
2358
|
+
})) : (s || o(d), $(d, ...f));
|
|
2337
2359
|
}, [
|
|
2338
2360
|
s,
|
|
2339
2361
|
n
|
|
@@ -2359,7 +2381,7 @@ function at(e, t, n, r) {
|
|
|
2359
2381
|
const Ur = {
|
|
2360
2382
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
2361
2383
|
current: 0
|
|
2362
|
-
}, ja = /* @__PURE__ */
|
|
2384
|
+
}, ja = /* @__PURE__ */ $e.createContext(Ur);
|
|
2363
2385
|
let Du = Boolean(typeof window < "u" && window.document && window.document.createElement);
|
|
2364
2386
|
function Iu(e) {
|
|
2365
2387
|
let t = Te(ja);
|
|
@@ -2391,7 +2413,7 @@ function Lu() {
|
|
|
2391
2413
|
(e = arguments[n++]) && (t = Ga(e)) && (r && (r += " "), r += t);
|
|
2392
2414
|
return r;
|
|
2393
2415
|
}
|
|
2394
|
-
const kt = typeof window < "u" ?
|
|
2416
|
+
const kt = typeof window < "u" ? $e.useLayoutEffect : () => {
|
|
2395
2417
|
};
|
|
2396
2418
|
function Fu(e) {
|
|
2397
2419
|
let [t, n] = H(e), r = I(t), o = I(null);
|
|
@@ -2667,7 +2689,7 @@ function br(e) {
|
|
|
2667
2689
|
function qu(e) {
|
|
2668
2690
|
return e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
|
|
2669
2691
|
}
|
|
2670
|
-
function
|
|
2692
|
+
function mr(e, t, n) {
|
|
2671
2693
|
return t in e ? Object.defineProperty(e, t, {
|
|
2672
2694
|
value: n,
|
|
2673
2695
|
enumerable: !0,
|
|
@@ -2675,9 +2697,9 @@ function $r(e, t, n) {
|
|
|
2675
2697
|
writable: !0
|
|
2676
2698
|
}) : e[t] = n, e;
|
|
2677
2699
|
}
|
|
2678
|
-
let Et = "default",
|
|
2700
|
+
let Et = "default", $r = "", un = /* @__PURE__ */ new WeakMap();
|
|
2679
2701
|
function Fo(e) {
|
|
2680
|
-
Gr() ? (Et === "default" && (
|
|
2702
|
+
Gr() ? (Et === "default" && ($r = document.documentElement.style.webkitUserSelect, document.documentElement.style.webkitUserSelect = "none"), Et = "disabled") : (e instanceof HTMLElement || e instanceof SVGElement) && (un.set(e, e.style.userSelect), e.style.userSelect = "none");
|
|
2681
2703
|
}
|
|
2682
2704
|
function on(e) {
|
|
2683
2705
|
if (Gr()) {
|
|
@@ -2685,7 +2707,7 @@ function on(e) {
|
|
|
2685
2707
|
return;
|
|
2686
2708
|
Et = "restoring", setTimeout(() => {
|
|
2687
2709
|
Ya(() => {
|
|
2688
|
-
Et === "restoring" && (document.documentElement.style.webkitUserSelect === "none" && (document.documentElement.style.webkitUserSelect =
|
|
2710
|
+
Et === "restoring" && (document.documentElement.style.webkitUserSelect === "none" && (document.documentElement.style.webkitUserSelect = $r || ""), $r = "", Et = "default");
|
|
2689
2711
|
});
|
|
2690
2712
|
}, 300);
|
|
2691
2713
|
} else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && un.has(e)) {
|
|
@@ -2693,7 +2715,7 @@ function on(e) {
|
|
|
2693
2715
|
e.style.userSelect === "none" && (e.style.userSelect = t), e.getAttribute("style") === "" && e.removeAttribute("style"), un.delete(e);
|
|
2694
2716
|
}
|
|
2695
2717
|
}
|
|
2696
|
-
const ei =
|
|
2718
|
+
const ei = $e.createContext(null);
|
|
2697
2719
|
ei.displayName = "PressResponderContext";
|
|
2698
2720
|
function Xu(e) {
|
|
2699
2721
|
let t = Te(ei);
|
|
@@ -2716,7 +2738,7 @@ function Yr(e) {
|
|
|
2716
2738
|
shouldCancelOnPointerExit: u,
|
|
2717
2739
|
allowTextSelectionOnPress: d,
|
|
2718
2740
|
ref: f,
|
|
2719
|
-
|
|
2741
|
+
...$
|
|
2720
2742
|
} = Xu(e), p = I(null);
|
|
2721
2743
|
p.current = {
|
|
2722
2744
|
onPress: t,
|
|
@@ -2737,9 +2759,9 @@ function Yr(e) {
|
|
|
2737
2759
|
isOverTarget: !1,
|
|
2738
2760
|
pointerType: null
|
|
2739
2761
|
}), { addGlobalListener: y, removeAllGlobalListeners: v } = qa(), w = le(() => {
|
|
2740
|
-
let
|
|
2741
|
-
let { onPressStart: S, onPressChange: P, isDisabled:
|
|
2742
|
-
|
|
2762
|
+
let m = h.current, D = (T, K) => {
|
|
2763
|
+
let { onPressStart: S, onPressChange: P, isDisabled: X } = p.current;
|
|
2764
|
+
X || m.didFirePressStart || (S && S({
|
|
2743
2765
|
type: "pressstart",
|
|
2744
2766
|
pointerType: K,
|
|
2745
2767
|
target: T.currentTarget,
|
|
@@ -2747,10 +2769,10 @@ function Yr(e) {
|
|
|
2747
2769
|
metaKey: T.metaKey,
|
|
2748
2770
|
ctrlKey: T.ctrlKey,
|
|
2749
2771
|
altKey: T.altKey
|
|
2750
|
-
}), P && P(!0),
|
|
2772
|
+
}), P && P(!0), m.didFirePressStart = !0, b(!0));
|
|
2751
2773
|
}, L = (T, K, S = !0) => {
|
|
2752
|
-
let { onPressEnd: P, onPressChange:
|
|
2753
|
-
|
|
2774
|
+
let { onPressEnd: P, onPressChange: X, onPress: J, isDisabled: de } = p.current;
|
|
2775
|
+
!m.didFirePressStart || (m.ignoreClickAfterPress = !0, m.didFirePressStart = !1, P && P({
|
|
2754
2776
|
type: "pressend",
|
|
2755
2777
|
pointerType: K,
|
|
2756
2778
|
target: T.currentTarget,
|
|
@@ -2758,7 +2780,7 @@ function Yr(e) {
|
|
|
2758
2780
|
metaKey: T.metaKey,
|
|
2759
2781
|
ctrlKey: T.ctrlKey,
|
|
2760
2782
|
altKey: T.altKey
|
|
2761
|
-
}),
|
|
2783
|
+
}), X && X(!1), b(!1), J && S && !de && J({
|
|
2762
2784
|
type: "press",
|
|
2763
2785
|
pointerType: K,
|
|
2764
2786
|
target: T.currentTarget,
|
|
@@ -2779,42 +2801,42 @@ function Yr(e) {
|
|
|
2779
2801
|
altKey: T.altKey
|
|
2780
2802
|
});
|
|
2781
2803
|
}, A = (T) => {
|
|
2782
|
-
|
|
2804
|
+
m.isPressed && (m.isOverTarget && L(We(m.target, T), m.pointerType, !1), m.isPressed = !1, m.isOverTarget = !1, m.activePointerId = null, m.pointerType = null, v(), d || on(m.target));
|
|
2783
2805
|
}, N = {
|
|
2784
2806
|
onKeyDown(T) {
|
|
2785
|
-
er(T.nativeEvent, T.currentTarget) && T.currentTarget.contains(T.target) ? (Mo(T.target, T.key) && T.preventDefault(), T.stopPropagation(),
|
|
2807
|
+
er(T.nativeEvent, T.currentTarget) && T.currentTarget.contains(T.target) ? (Mo(T.target, T.key) && T.preventDefault(), T.stopPropagation(), !m.isPressed && !T.repeat && (m.target = T.currentTarget, m.isPressed = !0, D(T, "keyboard"), y(document, "keyup", j, !1))) : T.key === "Enter" && gr(T.currentTarget) && T.stopPropagation();
|
|
2786
2808
|
},
|
|
2787
2809
|
onKeyUp(T) {
|
|
2788
|
-
er(T.nativeEvent, T.currentTarget) && !T.repeat && T.currentTarget.contains(T.target) && C(We(
|
|
2810
|
+
er(T.nativeEvent, T.currentTarget) && !T.repeat && T.currentTarget.contains(T.target) && C(We(m.target, T), "keyboard");
|
|
2789
2811
|
},
|
|
2790
2812
|
onClick(T) {
|
|
2791
|
-
T && !T.currentTarget.contains(T.target) || T && T.button === 0 && (T.stopPropagation(), i && T.preventDefault(),
|
|
2813
|
+
T && !T.currentTarget.contains(T.target) || T && T.button === 0 && (T.stopPropagation(), i && T.preventDefault(), !m.ignoreClickAfterPress && !m.ignoreEmulatedMouseEvents && (m.pointerType === "virtual" || br(T.nativeEvent)) && (!i && !l && Ct(T.currentTarget), D(T, "virtual"), C(T, "virtual"), L(T, "virtual")), m.ignoreEmulatedMouseEvents = !1, m.ignoreClickAfterPress = !1);
|
|
2792
2814
|
}
|
|
2793
2815
|
}, j = (T) => {
|
|
2794
|
-
if (
|
|
2795
|
-
Mo(T.target, T.key) && T.preventDefault(), T.stopPropagation(),
|
|
2816
|
+
if (m.isPressed && er(T, m.target)) {
|
|
2817
|
+
Mo(T.target, T.key) && T.preventDefault(), T.stopPropagation(), m.isPressed = !1;
|
|
2796
2818
|
let K = T.target;
|
|
2797
|
-
L(We(
|
|
2819
|
+
L(We(m.target, T), "keyboard", m.target.contains(K)), v(), m.target instanceof HTMLElement && m.target.contains(K) && (gr(m.target) || m.target.getAttribute("role") === "link") && m.target.click();
|
|
2798
2820
|
}
|
|
2799
2821
|
};
|
|
2800
2822
|
if (typeof PointerEvent < "u") {
|
|
2801
2823
|
N.onPointerDown = (P) => {
|
|
2802
2824
|
if (!(P.button !== 0 || !P.currentTarget.contains(P.target))) {
|
|
2803
2825
|
if (qu(P.nativeEvent)) {
|
|
2804
|
-
|
|
2826
|
+
m.pointerType = "virtual";
|
|
2805
2827
|
return;
|
|
2806
2828
|
}
|
|
2807
|
-
tr(P.currentTarget) && P.preventDefault(),
|
|
2829
|
+
tr(P.currentTarget) && P.preventDefault(), m.pointerType = P.pointerType, P.stopPropagation(), m.isPressed || (m.isPressed = !0, m.isOverTarget = !0, m.activePointerId = P.pointerId, m.target = P.currentTarget, !i && !l && Ct(P.currentTarget), d || Fo(m.target), D(P, m.pointerType), y(document, "pointermove", T, !1), y(document, "pointerup", K, !1), y(document, "pointercancel", S, !1));
|
|
2808
2830
|
}
|
|
2809
2831
|
}, N.onMouseDown = (P) => {
|
|
2810
2832
|
!P.currentTarget.contains(P.target) || P.button === 0 && (tr(P.currentTarget) && P.preventDefault(), P.stopPropagation());
|
|
2811
2833
|
}, N.onPointerUp = (P) => {
|
|
2812
|
-
!P.currentTarget.contains(P.target) ||
|
|
2834
|
+
!P.currentTarget.contains(P.target) || m.pointerType === "virtual" || P.button === 0 && wt(P, P.currentTarget) && C(P, m.pointerType || P.pointerType);
|
|
2813
2835
|
};
|
|
2814
2836
|
let T = (P) => {
|
|
2815
|
-
P.pointerId ===
|
|
2837
|
+
P.pointerId === m.activePointerId && (wt(P, m.target) ? m.isOverTarget || (m.isOverTarget = !0, D(We(m.target, P), m.pointerType)) : m.isOverTarget && (m.isOverTarget = !1, L(We(m.target, P), m.pointerType, !1), p.current.shouldCancelOnPointerExit && A(P)));
|
|
2816
2838
|
}, K = (P) => {
|
|
2817
|
-
P.pointerId ===
|
|
2839
|
+
P.pointerId === m.activePointerId && m.isPressed && P.button === 0 && (wt(P, m.target) ? L(We(m.target, P), m.pointerType) : m.isOverTarget && L(We(m.target, P), m.pointerType, !1), m.isPressed = !1, m.isOverTarget = !1, m.activePointerId = null, m.pointerType = null, v(), d || on(m.target));
|
|
2818
2840
|
}, S = (P) => {
|
|
2819
2841
|
A(P);
|
|
2820
2842
|
};
|
|
@@ -2823,21 +2845,21 @@ function Yr(e) {
|
|
|
2823
2845
|
};
|
|
2824
2846
|
} else {
|
|
2825
2847
|
N.onMouseDown = (S) => {
|
|
2826
|
-
S.button !== 0 || !S.currentTarget.contains(S.target) || (tr(S.currentTarget) && S.preventDefault(), S.stopPropagation(),
|
|
2848
|
+
S.button !== 0 || !S.currentTarget.contains(S.target) || (tr(S.currentTarget) && S.preventDefault(), S.stopPropagation(), !m.ignoreEmulatedMouseEvents && (m.isPressed = !0, m.isOverTarget = !0, m.target = S.currentTarget, m.pointerType = br(S.nativeEvent) ? "virtual" : "mouse", !i && !l && Ct(S.currentTarget), D(S, m.pointerType), y(document, "mouseup", T, !1)));
|
|
2827
2849
|
}, N.onMouseEnter = (S) => {
|
|
2828
|
-
!S.currentTarget.contains(S.target) || (S.stopPropagation(),
|
|
2850
|
+
!S.currentTarget.contains(S.target) || (S.stopPropagation(), m.isPressed && !m.ignoreEmulatedMouseEvents && (m.isOverTarget = !0, D(S, m.pointerType)));
|
|
2829
2851
|
}, N.onMouseLeave = (S) => {
|
|
2830
|
-
!S.currentTarget.contains(S.target) || (S.stopPropagation(),
|
|
2852
|
+
!S.currentTarget.contains(S.target) || (S.stopPropagation(), m.isPressed && !m.ignoreEmulatedMouseEvents && (m.isOverTarget = !1, L(S, m.pointerType, !1), p.current.shouldCancelOnPointerExit && A(S)));
|
|
2831
2853
|
}, N.onMouseUp = (S) => {
|
|
2832
|
-
!S.currentTarget.contains(S.target) ||
|
|
2854
|
+
!S.currentTarget.contains(S.target) || !m.ignoreEmulatedMouseEvents && S.button === 0 && C(S, m.pointerType);
|
|
2833
2855
|
};
|
|
2834
2856
|
let T = (S) => {
|
|
2835
2857
|
if (S.button === 0) {
|
|
2836
|
-
if (
|
|
2837
|
-
|
|
2858
|
+
if (m.isPressed = !1, v(), m.ignoreEmulatedMouseEvents) {
|
|
2859
|
+
m.ignoreEmulatedMouseEvents = !1;
|
|
2838
2860
|
return;
|
|
2839
2861
|
}
|
|
2840
|
-
wt(S,
|
|
2862
|
+
wt(S, m.target) ? L(We(m.target, S), m.pointerType) : m.isOverTarget && L(We(m.target, S), m.pointerType, !1), m.isOverTarget = !1;
|
|
2841
2863
|
}
|
|
2842
2864
|
};
|
|
2843
2865
|
N.onTouchStart = (S) => {
|
|
@@ -2845,23 +2867,23 @@ function Yr(e) {
|
|
|
2845
2867
|
return;
|
|
2846
2868
|
S.stopPropagation();
|
|
2847
2869
|
let P = Zu(S.nativeEvent);
|
|
2848
|
-
!P || (
|
|
2870
|
+
!P || (m.activePointerId = P.identifier, m.ignoreEmulatedMouseEvents = !0, m.isOverTarget = !0, m.isPressed = !0, m.target = S.currentTarget, m.pointerType = "touch", !i && !l && Ct(S.currentTarget), d || Fo(m.target), D(S, m.pointerType), y(window, "scroll", K, !0));
|
|
2849
2871
|
}, N.onTouchMove = (S) => {
|
|
2850
|
-
if (!S.currentTarget.contains(S.target) || (S.stopPropagation(),
|
|
2872
|
+
if (!S.currentTarget.contains(S.target) || (S.stopPropagation(), !m.isPressed))
|
|
2851
2873
|
return;
|
|
2852
|
-
let P = No(S.nativeEvent,
|
|
2853
|
-
P && wt(P, S.currentTarget) ?
|
|
2874
|
+
let P = No(S.nativeEvent, m.activePointerId);
|
|
2875
|
+
P && wt(P, S.currentTarget) ? m.isOverTarget || (m.isOverTarget = !0, D(S, m.pointerType)) : m.isOverTarget && (m.isOverTarget = !1, L(S, m.pointerType, !1), p.current.shouldCancelOnPointerExit && A(S));
|
|
2854
2876
|
}, N.onTouchEnd = (S) => {
|
|
2855
|
-
if (!S.currentTarget.contains(S.target) || (S.stopPropagation(),
|
|
2877
|
+
if (!S.currentTarget.contains(S.target) || (S.stopPropagation(), !m.isPressed))
|
|
2856
2878
|
return;
|
|
2857
|
-
let P = No(S.nativeEvent,
|
|
2858
|
-
P && wt(P, S.currentTarget) ? (C(S,
|
|
2879
|
+
let P = No(S.nativeEvent, m.activePointerId);
|
|
2880
|
+
P && wt(P, S.currentTarget) ? (C(S, m.pointerType), L(S, m.pointerType)) : m.isOverTarget && L(S, m.pointerType, !1), m.isPressed = !1, m.activePointerId = null, m.isOverTarget = !1, m.ignoreEmulatedMouseEvents = !0, d || on(m.target), v();
|
|
2859
2881
|
}, N.onTouchCancel = (S) => {
|
|
2860
|
-
!S.currentTarget.contains(S.target) || (S.stopPropagation(),
|
|
2882
|
+
!S.currentTarget.contains(S.target) || (S.stopPropagation(), m.isPressed && A(S));
|
|
2861
2883
|
};
|
|
2862
2884
|
let K = (S) => {
|
|
2863
|
-
|
|
2864
|
-
currentTarget:
|
|
2885
|
+
m.isPressed && S.target.contains(m.target) && A({
|
|
2886
|
+
currentTarget: m.target,
|
|
2865
2887
|
shiftKey: !1,
|
|
2866
2888
|
ctrlKey: !1,
|
|
2867
2889
|
metaKey: !1,
|
|
@@ -2886,7 +2908,7 @@ function Yr(e) {
|
|
|
2886
2908
|
d
|
|
2887
2909
|
]), {
|
|
2888
2910
|
isPressed: s || g,
|
|
2889
|
-
pressProps: _e(
|
|
2911
|
+
pressProps: _e($, w)
|
|
2890
2912
|
};
|
|
2891
2913
|
}
|
|
2892
2914
|
function gr(e) {
|
|
@@ -3199,7 +3221,7 @@ class Zr {
|
|
|
3199
3221
|
return t;
|
|
3200
3222
|
}
|
|
3201
3223
|
constructor() {
|
|
3202
|
-
|
|
3224
|
+
mr(this, "fastMap", /* @__PURE__ */ new Map()), this.root = new Wo({
|
|
3203
3225
|
scopeRef: null
|
|
3204
3226
|
}), this.fastMap.set(null, this.root);
|
|
3205
3227
|
}
|
|
@@ -3212,7 +3234,7 @@ class Wo {
|
|
|
3212
3234
|
this.children.splice(this.children.indexOf(t), 1), t.parent = void 0;
|
|
3213
3235
|
}
|
|
3214
3236
|
constructor(t) {
|
|
3215
|
-
|
|
3237
|
+
mr(this, "children", []), mr(this, "contain", !1), this.scopeRef = t.scopeRef;
|
|
3216
3238
|
}
|
|
3217
3239
|
}
|
|
3218
3240
|
new Zr();
|
|
@@ -3233,25 +3255,25 @@ function Pn(e = {}) {
|
|
|
3233
3255
|
let { focusProps: f } = qr({
|
|
3234
3256
|
isDisabled: r,
|
|
3235
3257
|
onFocusChange: d
|
|
3236
|
-
}), { focusWithinProps:
|
|
3258
|
+
}), { focusWithinProps: $ } = oi({
|
|
3237
3259
|
isDisabled: !r,
|
|
3238
3260
|
onFocusWithinChange: d
|
|
3239
3261
|
});
|
|
3240
3262
|
return {
|
|
3241
3263
|
isFocused: a,
|
|
3242
3264
|
isFocusVisible: o.current.isFocused && s,
|
|
3243
|
-
focusProps: r ?
|
|
3265
|
+
focusProps: r ? $ : f
|
|
3244
3266
|
};
|
|
3245
3267
|
}
|
|
3246
|
-
let
|
|
3247
|
-
function
|
|
3248
|
-
let t = Te(
|
|
3268
|
+
let mf = /* @__PURE__ */ $e.createContext(null);
|
|
3269
|
+
function $f(e) {
|
|
3270
|
+
let t = Te(mf) || {};
|
|
3249
3271
|
Xa(t, e);
|
|
3250
3272
|
let { ref: n, ...r } = t;
|
|
3251
3273
|
return r;
|
|
3252
3274
|
}
|
|
3253
3275
|
function Jr(e, t) {
|
|
3254
|
-
let { focusProps: n } = qr(e), { keyboardProps: r } = uf(e), o = _e(n, r), a =
|
|
3276
|
+
let { focusProps: n } = qr(e), { keyboardProps: r } = uf(e), o = _e(n, r), a = $f(t), i = e.isDisabled ? {} : a, s = I(e.autoFocus);
|
|
3255
3277
|
return W(() => {
|
|
3256
3278
|
s.current && t.current && pf(t.current), s.current = !1;
|
|
3257
3279
|
}, [
|
|
@@ -3277,7 +3299,7 @@ function gf(e, t) {
|
|
|
3277
3299
|
role: "link",
|
|
3278
3300
|
tabIndex: s ? void 0 : 0
|
|
3279
3301
|
});
|
|
3280
|
-
let { focusableProps: d } = Jr(e, t), { pressProps: f, isPressed:
|
|
3302
|
+
let { focusableProps: d } = Jr(e, t), { pressProps: f, isPressed: $ } = Yr({
|
|
3281
3303
|
onPress: r,
|
|
3282
3304
|
onPressStart: o,
|
|
3283
3305
|
onPressEnd: a,
|
|
@@ -3287,7 +3309,7 @@ function gf(e, t) {
|
|
|
3287
3309
|
labelable: !0
|
|
3288
3310
|
}), g = _e(d, f);
|
|
3289
3311
|
return {
|
|
3290
|
-
isPressed:
|
|
3312
|
+
isPressed: $,
|
|
3291
3313
|
linkProps: _e(p, {
|
|
3292
3314
|
...g,
|
|
3293
3315
|
...u,
|
|
@@ -3547,8 +3569,8 @@ function Sf(e, t, n) {
|
|
|
3547
3569
|
var r, o, a, i;
|
|
3548
3570
|
let s = e.formatToParts(-10000.111), l = e.formatToParts(10000.111), u = e.formatToParts(1);
|
|
3549
3571
|
var d;
|
|
3550
|
-
let f = (d = (r = s.find((C) => C.type === "minusSign")) === null || r === void 0 ? void 0 : r.value) !== null && d !== void 0 ? d : "-",
|
|
3551
|
-
|
|
3572
|
+
let f = (d = (r = s.find((C) => C.type === "minusSign")) === null || r === void 0 ? void 0 : r.value) !== null && d !== void 0 ? d : "-", $ = (o = l.find((C) => C.type === "plusSign")) === null || o === void 0 ? void 0 : o.value;
|
|
3573
|
+
!$ && ((n == null ? void 0 : n.signDisplay) === "exceptZero" || (n == null ? void 0 : n.signDisplay) === "always") && ($ = "+");
|
|
3552
3574
|
let p = (a = s.find((C) => C.type === "decimal")) === null || a === void 0 ? void 0 : a.value, g = (i = s.find((C) => C.type === "group")) === null || i === void 0 ? void 0 : i.value, b = s.filter((C) => !Go.has(C.type)).map((C) => Yo(C.value)), h = u.filter((C) => !Go.has(C.type)).map((C) => Yo(C.value)), y = [
|
|
3553
3575
|
.../* @__PURE__ */ new Set([
|
|
3554
3576
|
...h,
|
|
@@ -3558,18 +3580,18 @@ function Sf(e, t, n) {
|
|
|
3558
3580
|
...new Intl.NumberFormat(t.locale, {
|
|
3559
3581
|
useGrouping: !1
|
|
3560
3582
|
}).format(9876543210)
|
|
3561
|
-
].reverse(),
|
|
3583
|
+
].reverse(), m = new Map(w.map((C, A) => [
|
|
3562
3584
|
C,
|
|
3563
3585
|
A
|
|
3564
3586
|
])), D = new RegExp(`[${w.join("")}]`, "g");
|
|
3565
3587
|
return {
|
|
3566
3588
|
minusSign: f,
|
|
3567
|
-
plusSign:
|
|
3589
|
+
plusSign: $,
|
|
3568
3590
|
decimal: p,
|
|
3569
3591
|
group: g,
|
|
3570
3592
|
literals: v,
|
|
3571
3593
|
numeral: D,
|
|
3572
|
-
index: (C) => String(
|
|
3594
|
+
index: (C) => String(m.get(C))
|
|
3573
3595
|
};
|
|
3574
3596
|
}
|
|
3575
3597
|
function an(e, t, n) {
|
|
@@ -3647,7 +3669,7 @@ function Df() {
|
|
|
3647
3669
|
direction: "ltr"
|
|
3648
3670
|
} : t;
|
|
3649
3671
|
}
|
|
3650
|
-
const If = /* @__PURE__ */
|
|
3672
|
+
const If = /* @__PURE__ */ $e.createContext(null);
|
|
3651
3673
|
function si() {
|
|
3652
3674
|
let e = Df();
|
|
3653
3675
|
return Te(If) || e;
|
|
@@ -3713,12 +3735,12 @@ var bi = {};
|
|
|
3713
3735
|
bi = {
|
|
3714
3736
|
breadcrumbs: "\u03A0\u03BB\u03BF\u03B7\u03B3\u03AE\u03C3\u03B5\u03B9\u03C2 breadcrumb"
|
|
3715
3737
|
};
|
|
3716
|
-
var $i = {};
|
|
3717
|
-
$i = {
|
|
3718
|
-
breadcrumbs: "Breadcrumbs"
|
|
3719
|
-
};
|
|
3720
3738
|
var mi = {};
|
|
3721
3739
|
mi = {
|
|
3740
|
+
breadcrumbs: "Breadcrumbs"
|
|
3741
|
+
};
|
|
3742
|
+
var $i = {};
|
|
3743
|
+
$i = {
|
|
3722
3744
|
breadcrumbs: "Migas de pan"
|
|
3723
3745
|
};
|
|
3724
3746
|
var gi = {};
|
|
@@ -3832,8 +3854,8 @@ ci = {
|
|
|
3832
3854
|
"da-DK": fi,
|
|
3833
3855
|
"de-DE": pi,
|
|
3834
3856
|
"el-GR": bi,
|
|
3835
|
-
"en-US":
|
|
3836
|
-
"es-ES":
|
|
3857
|
+
"en-US": mi,
|
|
3858
|
+
"es-ES": $i,
|
|
3837
3859
|
"et-EE": gi,
|
|
3838
3860
|
"fi-FI": hi,
|
|
3839
3861
|
"fr-FR": vi,
|
|
@@ -3890,47 +3912,47 @@ function Zo(e, t, n) {
|
|
|
3890
3912
|
floating: o
|
|
3891
3913
|
} = e;
|
|
3892
3914
|
const a = r.x + r.width / 2 - o.width / 2, i = r.y + r.height / 2 - o.height / 2, s = It(t), l = eo(s), u = r[l] / 2 - o[l] / 2, d = Dt(t), f = s === "x";
|
|
3893
|
-
let
|
|
3915
|
+
let $;
|
|
3894
3916
|
switch (d) {
|
|
3895
3917
|
case "top":
|
|
3896
|
-
|
|
3918
|
+
$ = {
|
|
3897
3919
|
x: a,
|
|
3898
3920
|
y: r.y - o.height
|
|
3899
3921
|
};
|
|
3900
3922
|
break;
|
|
3901
3923
|
case "bottom":
|
|
3902
|
-
|
|
3924
|
+
$ = {
|
|
3903
3925
|
x: a,
|
|
3904
3926
|
y: r.y + r.height
|
|
3905
3927
|
};
|
|
3906
3928
|
break;
|
|
3907
3929
|
case "right":
|
|
3908
|
-
|
|
3930
|
+
$ = {
|
|
3909
3931
|
x: r.x + r.width,
|
|
3910
3932
|
y: i
|
|
3911
3933
|
};
|
|
3912
3934
|
break;
|
|
3913
3935
|
case "left":
|
|
3914
|
-
|
|
3936
|
+
$ = {
|
|
3915
3937
|
x: r.x - o.width,
|
|
3916
3938
|
y: i
|
|
3917
3939
|
};
|
|
3918
3940
|
break;
|
|
3919
3941
|
default:
|
|
3920
|
-
|
|
3942
|
+
$ = {
|
|
3921
3943
|
x: r.x,
|
|
3922
3944
|
y: r.y
|
|
3923
3945
|
};
|
|
3924
3946
|
}
|
|
3925
3947
|
switch (Tn(t)) {
|
|
3926
3948
|
case "start":
|
|
3927
|
-
|
|
3949
|
+
$[s] -= u * (n && f ? -1 : 1);
|
|
3928
3950
|
break;
|
|
3929
3951
|
case "end":
|
|
3930
|
-
|
|
3952
|
+
$[s] += u * (n && f ? -1 : 1);
|
|
3931
3953
|
break;
|
|
3932
3954
|
}
|
|
3933
|
-
return
|
|
3955
|
+
return $;
|
|
3934
3956
|
}
|
|
3935
3957
|
const zf = async (e, t, n) => {
|
|
3936
3958
|
const {
|
|
@@ -3953,7 +3975,7 @@ const zf = async (e, t, n) => {
|
|
|
3953
3975
|
}), {
|
|
3954
3976
|
x: u,
|
|
3955
3977
|
y: d
|
|
3956
|
-
} = Zo(l, r, s), f = r,
|
|
3978
|
+
} = Zo(l, r, s), f = r, $ = {}, p = 0;
|
|
3957
3979
|
for (let g = 0; g < a.length; g++) {
|
|
3958
3980
|
const {
|
|
3959
3981
|
name: b,
|
|
@@ -3962,14 +3984,14 @@ const zf = async (e, t, n) => {
|
|
|
3962
3984
|
x: y,
|
|
3963
3985
|
y: v,
|
|
3964
3986
|
data: w,
|
|
3965
|
-
reset:
|
|
3987
|
+
reset: m
|
|
3966
3988
|
} = await h({
|
|
3967
3989
|
x: u,
|
|
3968
3990
|
y: d,
|
|
3969
3991
|
initialPlacement: r,
|
|
3970
3992
|
placement: f,
|
|
3971
3993
|
strategy: o,
|
|
3972
|
-
middlewareData:
|
|
3994
|
+
middlewareData: $,
|
|
3973
3995
|
rects: l,
|
|
3974
3996
|
platform: i,
|
|
3975
3997
|
elements: {
|
|
@@ -3977,18 +3999,18 @@ const zf = async (e, t, n) => {
|
|
|
3977
3999
|
floating: t
|
|
3978
4000
|
}
|
|
3979
4001
|
});
|
|
3980
|
-
if (u = y != null ? y : u, d = v != null ? v : d,
|
|
3981
|
-
|
|
4002
|
+
if (u = y != null ? y : u, d = v != null ? v : d, $ = {
|
|
4003
|
+
...$,
|
|
3982
4004
|
[b]: {
|
|
3983
|
-
|
|
4005
|
+
...$[b],
|
|
3984
4006
|
...w
|
|
3985
4007
|
}
|
|
3986
|
-
}, process.env.NODE_ENV !== "production" && p > 50 && console.warn(["Floating UI: The middleware lifecycle appears to be running in an", "infinite loop. This is usually caused by a `reset` continually", "being returned without a break condition."].join(" ")),
|
|
3987
|
-
p++, typeof
|
|
4008
|
+
}, process.env.NODE_ENV !== "production" && p > 50 && console.warn(["Floating UI: The middleware lifecycle appears to be running in an", "infinite loop. This is usually caused by a `reset` continually", "being returned without a break condition."].join(" ")), m && p <= 50) {
|
|
4009
|
+
p++, typeof m == "object" && (m.placement && (f = m.placement), m.rects && (l = m.rects === !0 ? await i.getElementRects({
|
|
3988
4010
|
reference: e,
|
|
3989
4011
|
floating: t,
|
|
3990
4012
|
strategy: o
|
|
3991
|
-
}) :
|
|
4013
|
+
}) : m.rects), {
|
|
3992
4014
|
x: u,
|
|
3993
4015
|
y: d
|
|
3994
4016
|
} = Zo(l, f, s)), g = -1;
|
|
@@ -4000,7 +4022,7 @@ const zf = async (e, t, n) => {
|
|
|
4000
4022
|
y: d,
|
|
4001
4023
|
placement: f,
|
|
4002
4024
|
strategy: o,
|
|
4003
|
-
middlewareData:
|
|
4025
|
+
middlewareData: $
|
|
4004
4026
|
};
|
|
4005
4027
|
};
|
|
4006
4028
|
function Bf(e) {
|
|
@@ -4029,7 +4051,7 @@ function bn(e) {
|
|
|
4029
4051
|
bottom: e.y + e.height
|
|
4030
4052
|
};
|
|
4031
4053
|
}
|
|
4032
|
-
async function
|
|
4054
|
+
async function mn(e, t) {
|
|
4033
4055
|
var n;
|
|
4034
4056
|
t === void 0 && (t = {});
|
|
4035
4057
|
const {
|
|
@@ -4043,9 +4065,9 @@ async function $n(e, t) {
|
|
|
4043
4065
|
boundary: u = "clippingAncestors",
|
|
4044
4066
|
rootBoundary: d = "viewport",
|
|
4045
4067
|
elementContext: f = "floating",
|
|
4046
|
-
altBoundary:
|
|
4068
|
+
altBoundary: $ = !1,
|
|
4047
4069
|
padding: p = 0
|
|
4048
|
-
} = t, g = Hi(p), h = s[
|
|
4070
|
+
} = t, g = Hi(p), h = s[$ ? f === "floating" ? "reference" : "floating" : f], y = bn(await a.getClippingRect({
|
|
4049
4071
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(h))) == null || n ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
4050
4072
|
boundary: u,
|
|
4051
4073
|
rootBoundary: d,
|
|
@@ -4089,10 +4111,10 @@ const Jo = (e) => ({
|
|
|
4089
4111
|
const u = Hi(r), d = {
|
|
4090
4112
|
x: o,
|
|
4091
4113
|
y: a
|
|
4092
|
-
}, f = It(i),
|
|
4093
|
-
let
|
|
4094
|
-
|
|
4095
|
-
const D = y / 2 - v / 2, L = u[b], C =
|
|
4114
|
+
}, f = It(i), $ = Tn(i), p = eo(f), g = await l.getDimensions(n), b = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", y = s.reference[p] + s.reference[f] - d[f] - s.floating[p], v = d[f] - s.reference[f], w = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(n));
|
|
4115
|
+
let m = w ? f === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0;
|
|
4116
|
+
m === 0 && (m = s.floating[p]);
|
|
4117
|
+
const D = y / 2 - v / 2, L = u[b], C = m - g[p] - u[h], A = m / 2 - g[p] / 2 + D, N = Pr(L, A, C), K = ($ === "start" ? u[b] : u[h]) > 0 && A !== N && s.reference[p] <= s.floating[p] ? A < L ? L - A : C - A : 0;
|
|
4096
4118
|
return {
|
|
4097
4119
|
[f]: d[f] - K,
|
|
4098
4120
|
data: {
|
|
@@ -4107,16 +4129,16 @@ const Jo = (e) => ({
|
|
|
4107
4129
|
bottom: "top",
|
|
4108
4130
|
top: "bottom"
|
|
4109
4131
|
};
|
|
4110
|
-
function
|
|
4132
|
+
function $n(e) {
|
|
4111
4133
|
return e.replace(/left|right|bottom|top/g, (t) => Hf[t]);
|
|
4112
4134
|
}
|
|
4113
4135
|
function Kf(e, t, n) {
|
|
4114
4136
|
n === void 0 && (n = !1);
|
|
4115
4137
|
const r = Tn(e), o = It(e), a = eo(o);
|
|
4116
4138
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4117
|
-
return t.reference[a] > t.floating[a] && (i =
|
|
4139
|
+
return t.reference[a] > t.floating[a] && (i = $n(i)), {
|
|
4118
4140
|
main: i,
|
|
4119
|
-
cross:
|
|
4141
|
+
cross: $n(i)
|
|
4120
4142
|
};
|
|
4121
4143
|
}
|
|
4122
4144
|
const Uf = {
|
|
@@ -4128,7 +4150,7 @@ function Qo(e) {
|
|
|
4128
4150
|
}
|
|
4129
4151
|
const jf = ["top", "right", "bottom", "left"];
|
|
4130
4152
|
function Gf(e) {
|
|
4131
|
-
const t =
|
|
4153
|
+
const t = $n(e);
|
|
4132
4154
|
return [Qo(e), t, Qo(t)];
|
|
4133
4155
|
}
|
|
4134
4156
|
const Yf = function(e) {
|
|
@@ -4148,22 +4170,22 @@ const Yf = function(e) {
|
|
|
4148
4170
|
mainAxis: u = !0,
|
|
4149
4171
|
crossAxis: d = !0,
|
|
4150
4172
|
fallbackPlacements: f,
|
|
4151
|
-
fallbackStrategy:
|
|
4173
|
+
fallbackStrategy: $ = "bestFit",
|
|
4152
4174
|
flipAlignment: p = !0,
|
|
4153
4175
|
...g
|
|
4154
|
-
} = e, b = Dt(r), y = f || (b === i || !p ? [
|
|
4176
|
+
} = e, b = Dt(r), y = f || (b === i || !p ? [$n(i)] : Gf(i)), v = [i, ...y], w = await mn(t, g), m = [];
|
|
4155
4177
|
let D = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
4156
|
-
if (u &&
|
|
4178
|
+
if (u && m.push(w[b]), d) {
|
|
4157
4179
|
const {
|
|
4158
4180
|
main: N,
|
|
4159
4181
|
cross: j
|
|
4160
4182
|
} = Kf(r, a, await (s.isRTL == null ? void 0 : s.isRTL(l.floating)));
|
|
4161
|
-
|
|
4183
|
+
m.push(w[N], w[j]);
|
|
4162
4184
|
}
|
|
4163
4185
|
if (D = [...D, {
|
|
4164
4186
|
placement: r,
|
|
4165
|
-
overflows:
|
|
4166
|
-
}],
|
|
4187
|
+
overflows: m
|
|
4188
|
+
}], !m.every((N) => N <= 0)) {
|
|
4167
4189
|
var L, C;
|
|
4168
4190
|
const N = ((L = (C = o.flip) == null ? void 0 : C.index) != null ? L : 0) + 1, j = v[N];
|
|
4169
4191
|
if (j)
|
|
@@ -4177,10 +4199,10 @@ const Yf = function(e) {
|
|
|
4177
4199
|
}
|
|
4178
4200
|
};
|
|
4179
4201
|
let T = "bottom";
|
|
4180
|
-
switch (
|
|
4202
|
+
switch ($) {
|
|
4181
4203
|
case "bestFit": {
|
|
4182
4204
|
var A;
|
|
4183
|
-
const K = (A = D.map((S) => [S, S.overflows.filter((P) => P > 0).reduce((P,
|
|
4205
|
+
const K = (A = D.map((S) => [S, S.overflows.filter((P) => P > 0).reduce((P, X) => P + X, 0)]).sort((S, P) => S[1] - P[1])[0]) == null ? void 0 : A[0].placement;
|
|
4184
4206
|
K && (T = K);
|
|
4185
4207
|
break;
|
|
4186
4208
|
}
|
|
@@ -4223,7 +4245,7 @@ const qf = function(e) {
|
|
|
4223
4245
|
} = r;
|
|
4224
4246
|
switch (t) {
|
|
4225
4247
|
case "referenceHidden": {
|
|
4226
|
-
const a = await
|
|
4248
|
+
const a = await mn(r, {
|
|
4227
4249
|
...n,
|
|
4228
4250
|
elementContext: "reference"
|
|
4229
4251
|
}), i = ea(a, o.reference);
|
|
@@ -4235,7 +4257,7 @@ const qf = function(e) {
|
|
|
4235
4257
|
};
|
|
4236
4258
|
}
|
|
4237
4259
|
case "escaped": {
|
|
4238
|
-
const a = await
|
|
4260
|
+
const a = await mn(r, {
|
|
4239
4261
|
...n,
|
|
4240
4262
|
altBoundary: !0
|
|
4241
4263
|
}), i = ea(a, o.floating);
|
|
@@ -4259,7 +4281,7 @@ async function Xf(e, t) {
|
|
|
4259
4281
|
elements: o
|
|
4260
4282
|
} = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Dt(n), s = Tn(n), l = It(n) === "x", u = ["left", "top"].includes(i) ? -1 : 1, d = a && l ? -1 : 1, f = typeof t == "function" ? t(e) : t;
|
|
4261
4283
|
let {
|
|
4262
|
-
mainAxis:
|
|
4284
|
+
mainAxis: $,
|
|
4263
4285
|
crossAxis: p,
|
|
4264
4286
|
alignmentAxis: g
|
|
4265
4287
|
} = typeof f == "number" ? {
|
|
@@ -4274,9 +4296,9 @@ async function Xf(e, t) {
|
|
|
4274
4296
|
};
|
|
4275
4297
|
return s && typeof g == "number" && (p = s === "end" ? g * -1 : g), l ? {
|
|
4276
4298
|
x: p * d,
|
|
4277
|
-
y:
|
|
4299
|
+
y: $ * u
|
|
4278
4300
|
} : {
|
|
4279
|
-
x:
|
|
4301
|
+
x: $ * u,
|
|
4280
4302
|
y: p * d
|
|
4281
4303
|
};
|
|
4282
4304
|
}
|
|
@@ -4328,20 +4350,20 @@ const Jf = function(e) {
|
|
|
4328
4350
|
} = e, u = {
|
|
4329
4351
|
x: n,
|
|
4330
4352
|
y: r
|
|
4331
|
-
}, d = await
|
|
4332
|
-
let p = u[f], g = u[
|
|
4353
|
+
}, d = await mn(t, l), f = It(Dt(o)), $ = Ki(f);
|
|
4354
|
+
let p = u[f], g = u[$];
|
|
4333
4355
|
if (a) {
|
|
4334
4356
|
const h = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", v = p + d[h], w = p - d[y];
|
|
4335
4357
|
p = Pr(v, p, w);
|
|
4336
4358
|
}
|
|
4337
4359
|
if (i) {
|
|
4338
|
-
const h =
|
|
4360
|
+
const h = $ === "y" ? "top" : "left", y = $ === "y" ? "bottom" : "right", v = g + d[h], w = g - d[y];
|
|
4339
4361
|
g = Pr(v, g, w);
|
|
4340
4362
|
}
|
|
4341
4363
|
const b = s.fn({
|
|
4342
4364
|
...t,
|
|
4343
4365
|
[f]: p,
|
|
4344
|
-
[
|
|
4366
|
+
[$]: g
|
|
4345
4367
|
});
|
|
4346
4368
|
return {
|
|
4347
4369
|
...b,
|
|
@@ -4369,8 +4391,8 @@ const Jf = function(e) {
|
|
|
4369
4391
|
} = e, d = {
|
|
4370
4392
|
x: n,
|
|
4371
4393
|
y: r
|
|
4372
|
-
}, f = It(o),
|
|
4373
|
-
let p = d[f], g = d[
|
|
4394
|
+
}, f = It(o), $ = Ki(f);
|
|
4395
|
+
let p = d[f], g = d[$];
|
|
4374
4396
|
const b = typeof s == "function" ? s({
|
|
4375
4397
|
...a,
|
|
4376
4398
|
placement: o
|
|
@@ -4387,13 +4409,13 @@ const Jf = function(e) {
|
|
|
4387
4409
|
p < L ? p = L : p > C && (p = C);
|
|
4388
4410
|
}
|
|
4389
4411
|
if (u) {
|
|
4390
|
-
var y, v, w,
|
|
4391
|
-
const D = f === "y" ? "width" : "height", L = ["top", "left"].includes(Dt(o)), C = a.reference[
|
|
4412
|
+
var y, v, w, m;
|
|
4413
|
+
const D = f === "y" ? "width" : "height", L = ["top", "left"].includes(Dt(o)), C = a.reference[$] - a.floating[D] + (L && (y = (v = i.offset) == null ? void 0 : v[$]) != null ? y : 0) + (L ? 0 : h.crossAxis), A = a.reference[$] + a.reference[D] + (L ? 0 : (w = (m = i.offset) == null ? void 0 : m[$]) != null ? w : 0) - (L ? h.crossAxis : 0);
|
|
4392
4414
|
g < C ? g = C : g > A && (g = A);
|
|
4393
4415
|
}
|
|
4394
4416
|
return {
|
|
4395
4417
|
[f]: p,
|
|
4396
|
-
[
|
|
4418
|
+
[$]: g
|
|
4397
4419
|
};
|
|
4398
4420
|
}
|
|
4399
4421
|
};
|
|
@@ -4460,15 +4482,15 @@ function je(e, t, n) {
|
|
|
4460
4482
|
const s = e.getBoundingClientRect();
|
|
4461
4483
|
let l = 1, u = 1;
|
|
4462
4484
|
t && Ne(e) && (l = e.offsetWidth > 0 && gn(s.width) / e.offsetWidth || 1, u = e.offsetHeight > 0 && gn(s.height) / e.offsetHeight || 1);
|
|
4463
|
-
const d = tt(e) ? Ye(e) : window, f = !Yi() && n,
|
|
4485
|
+
const d = tt(e) ? Ye(e) : window, f = !Yi() && n, $ = (s.left + (f && (r = (o = d.visualViewport) == null ? void 0 : o.offsetLeft) != null ? r : 0)) / l, p = (s.top + (f && (a = (i = d.visualViewport) == null ? void 0 : i.offsetTop) != null ? a : 0)) / u, g = s.width / l, b = s.height / u;
|
|
4464
4486
|
return {
|
|
4465
4487
|
width: g,
|
|
4466
4488
|
height: b,
|
|
4467
4489
|
top: p,
|
|
4468
|
-
right:
|
|
4490
|
+
right: $ + g,
|
|
4469
4491
|
bottom: p + b,
|
|
4470
|
-
left:
|
|
4471
|
-
x:
|
|
4492
|
+
left: $,
|
|
4493
|
+
x: $,
|
|
4472
4494
|
y: p
|
|
4473
4495
|
};
|
|
4474
4496
|
}
|
|
@@ -4713,17 +4735,17 @@ function pp(e, t, n, r) {
|
|
|
4713
4735
|
b || n(), b = !1;
|
|
4714
4736
|
}), tt(e) && !s && f.observe(e), f.observe(t);
|
|
4715
4737
|
}
|
|
4716
|
-
let
|
|
4738
|
+
let $, p = s ? je(e) : null;
|
|
4717
4739
|
s && g();
|
|
4718
4740
|
function g() {
|
|
4719
4741
|
const b = je(e);
|
|
4720
|
-
p && (b.x !== p.x || b.y !== p.y || b.width !== p.width || b.height !== p.height) && n(), p = b,
|
|
4742
|
+
p && (b.x !== p.x || b.y !== p.y || b.width !== p.width || b.height !== p.height) && n(), p = b, $ = requestAnimationFrame(g);
|
|
4721
4743
|
}
|
|
4722
4744
|
return n(), () => {
|
|
4723
4745
|
var b;
|
|
4724
4746
|
d.forEach((h) => {
|
|
4725
4747
|
l && h.removeEventListener("scroll", n), u && h.removeEventListener("resize", n);
|
|
4726
|
-
}), (b = f) == null || b.disconnect(), f = null, s && cancelAnimationFrame(
|
|
4748
|
+
}), (b = f) == null || b.disconnect(), f = null, s && cancelAnimationFrame($);
|
|
4727
4749
|
};
|
|
4728
4750
|
}
|
|
4729
4751
|
const bp = (e, t, n) => zf(e, t, {
|
|
@@ -4762,38 +4784,38 @@ function Er(e, t) {
|
|
|
4762
4784
|
}
|
|
4763
4785
|
return e !== e && t !== t;
|
|
4764
4786
|
}
|
|
4765
|
-
function
|
|
4766
|
-
const t =
|
|
4787
|
+
function mp(e) {
|
|
4788
|
+
const t = q.useRef(e);
|
|
4767
4789
|
return Cr(() => {
|
|
4768
4790
|
t.current = e;
|
|
4769
4791
|
}), t;
|
|
4770
4792
|
}
|
|
4771
|
-
function
|
|
4793
|
+
function $p(e) {
|
|
4772
4794
|
let {
|
|
4773
4795
|
middleware: t,
|
|
4774
4796
|
placement: n = "bottom",
|
|
4775
4797
|
strategy: r = "absolute",
|
|
4776
4798
|
whileElementsMounted: o
|
|
4777
4799
|
} = e === void 0 ? {} : e;
|
|
4778
|
-
const a =
|
|
4800
|
+
const a = q.useRef(null), i = q.useRef(null), s = mp(o), l = q.useRef(null), [u, d] = q.useState({
|
|
4779
4801
|
x: null,
|
|
4780
4802
|
y: null,
|
|
4781
4803
|
strategy: r,
|
|
4782
4804
|
placement: n,
|
|
4783
4805
|
middlewareData: {}
|
|
4784
|
-
}), [f,
|
|
4806
|
+
}), [f, $] = q.useState(t);
|
|
4785
4807
|
Er(f == null ? void 0 : f.map((w) => {
|
|
4786
4808
|
let {
|
|
4787
|
-
options:
|
|
4809
|
+
options: m
|
|
4788
4810
|
} = w;
|
|
4789
|
-
return
|
|
4811
|
+
return m;
|
|
4790
4812
|
}), t == null ? void 0 : t.map((w) => {
|
|
4791
4813
|
let {
|
|
4792
|
-
options:
|
|
4814
|
+
options: m
|
|
4793
4815
|
} = w;
|
|
4794
|
-
return
|
|
4795
|
-
})) ||
|
|
4796
|
-
const p =
|
|
4816
|
+
return m;
|
|
4817
|
+
})) || $(t);
|
|
4818
|
+
const p = q.useCallback(() => {
|
|
4797
4819
|
!a.current || !i.current || bp(a.current, i.current, {
|
|
4798
4820
|
middleware: f,
|
|
4799
4821
|
placement: n,
|
|
@@ -4807,26 +4829,26 @@ function mp(e) {
|
|
|
4807
4829
|
Cr(() => {
|
|
4808
4830
|
g.current && p();
|
|
4809
4831
|
}, [p]);
|
|
4810
|
-
const g =
|
|
4832
|
+
const g = q.useRef(!1);
|
|
4811
4833
|
Cr(() => (g.current = !0, () => {
|
|
4812
4834
|
g.current = !1;
|
|
4813
4835
|
}), []);
|
|
4814
|
-
const b =
|
|
4836
|
+
const b = q.useCallback(() => {
|
|
4815
4837
|
if (typeof l.current == "function" && (l.current(), l.current = null), a.current && i.current)
|
|
4816
4838
|
if (s.current) {
|
|
4817
4839
|
const w = s.current(a.current, i.current, p);
|
|
4818
4840
|
l.current = w;
|
|
4819
4841
|
} else
|
|
4820
4842
|
p();
|
|
4821
|
-
}, [p, s]), h =
|
|
4843
|
+
}, [p, s]), h = q.useCallback((w) => {
|
|
4822
4844
|
a.current = w, b();
|
|
4823
|
-
}, [b]), y =
|
|
4845
|
+
}, [b]), y = q.useCallback((w) => {
|
|
4824
4846
|
i.current = w, b();
|
|
4825
|
-
}, [b]), v =
|
|
4847
|
+
}, [b]), v = q.useMemo(() => ({
|
|
4826
4848
|
reference: a,
|
|
4827
4849
|
floating: i
|
|
4828
4850
|
}), []);
|
|
4829
|
-
return
|
|
4851
|
+
return q.useMemo(() => ({
|
|
4830
4852
|
...u,
|
|
4831
4853
|
update: p,
|
|
4832
4854
|
refs: v,
|
|
@@ -4855,9 +4877,9 @@ const gp = (e) => {
|
|
|
4855
4877
|
}).fn(o) : {};
|
|
4856
4878
|
}
|
|
4857
4879
|
};
|
|
4858
|
-
}, hp = /* @__PURE__ */
|
|
4880
|
+
}, hp = /* @__PURE__ */ R((e, t) => {
|
|
4859
4881
|
const { children: n, width: r = 10, height: o = 5, ...a } = e;
|
|
4860
|
-
return /* @__PURE__ */ _(U.svg,
|
|
4882
|
+
return /* @__PURE__ */ _(U.svg, O({}, a, {
|
|
4861
4883
|
ref: t,
|
|
4862
4884
|
width: r,
|
|
4863
4885
|
height: o,
|
|
@@ -4906,22 +4928,22 @@ const Ji = "Popper", [no, kn] = we(Ji), [_p, Qi] = no(Ji), yp = (e) => {
|
|
|
4906
4928
|
anchor: r,
|
|
4907
4929
|
onAnchorChange: o
|
|
4908
4930
|
}, n);
|
|
4909
|
-
}, xp = "PopperAnchor", wp = /* @__PURE__ */
|
|
4931
|
+
}, xp = "PopperAnchor", wp = /* @__PURE__ */ R((e, t) => {
|
|
4910
4932
|
const { __scopePopper: n, virtualRef: r, ...o } = e, a = Qi(xp, n), i = I(null), s = ne(t, i);
|
|
4911
4933
|
return W(() => {
|
|
4912
4934
|
a.onAnchorChange((r == null ? void 0 : r.current) || i.current);
|
|
4913
|
-
}), r ? null : /* @__PURE__ */ _(U.div,
|
|
4935
|
+
}), r ? null : /* @__PURE__ */ _(U.div, O({}, o, {
|
|
4914
4936
|
ref: s
|
|
4915
4937
|
}));
|
|
4916
4938
|
}), vn = "PopperContent", [Pp, Tp] = no(vn), [Cp, Ep] = no(vn, {
|
|
4917
4939
|
hasParent: !1,
|
|
4918
4940
|
positionUpdateFns: /* @__PURE__ */ new Set()
|
|
4919
|
-
}), Sp = /* @__PURE__ */
|
|
4941
|
+
}), Sp = /* @__PURE__ */ R((e, t) => {
|
|
4920
4942
|
var n, r, o, a, i, s, l, u;
|
|
4921
|
-
const { __scopePopper: d, side: f = "bottom", sideOffset:
|
|
4943
|
+
const { __scopePopper: d, side: f = "bottom", sideOffset: $ = 0, align: p = "center", alignOffset: g = 0, arrowPadding: b = 0, collisionBoundary: h = [], collisionPadding: y = 0, sticky: v = "partial", hideWhenDetached: w = !1, avoidCollisions: m = !0, ...D } = e, L = Qi(vn, d), [C, A] = H(null), N = ne(
|
|
4922
4944
|
t,
|
|
4923
4945
|
(Ee) => A(Ee)
|
|
4924
|
-
), [j, T] = H(null), K = Sn(j), S = (n = K == null ? void 0 : K.width) !== null && n !== void 0 ? n : 0, P = (r = K == null ? void 0 : K.height) !== null && r !== void 0 ? r : 0,
|
|
4946
|
+
), [j, T] = H(null), K = Sn(j), S = (n = K == null ? void 0 : K.width) !== null && n !== void 0 ? n : 0, P = (r = K == null ? void 0 : K.height) !== null && r !== void 0 ? r : 0, X = f + (p !== "center" ? "-" + p : ""), J = typeof y == "number" ? y : {
|
|
4925
4947
|
top: 0,
|
|
4926
4948
|
right: 0,
|
|
4927
4949
|
bottom: 0,
|
|
@@ -4933,16 +4955,16 @@ const Ji = "Popper", [no, kn] = we(Ji), [_p, Qi] = no(Ji), yp = (e) => {
|
|
|
4933
4955
|
padding: J,
|
|
4934
4956
|
boundary: de.filter(Ip),
|
|
4935
4957
|
altBoundary: ue
|
|
4936
|
-
}, { reference: z, floating: Y, strategy: re, x: Z, y: te, placement: ie, middlewareData: fe, update:
|
|
4958
|
+
}, { reference: z, floating: Y, strategy: re, x: Z, y: te, placement: ie, middlewareData: fe, update: me } = $p({
|
|
4937
4959
|
strategy: "fixed",
|
|
4938
|
-
placement:
|
|
4960
|
+
placement: X,
|
|
4939
4961
|
whileElementsMounted: pp,
|
|
4940
4962
|
middleware: [
|
|
4941
4963
|
Zf({
|
|
4942
|
-
mainAxis:
|
|
4964
|
+
mainAxis: $ + P,
|
|
4943
4965
|
alignmentAxis: g
|
|
4944
4966
|
}),
|
|
4945
|
-
|
|
4967
|
+
m ? Jf({
|
|
4946
4968
|
mainAxis: !0,
|
|
4947
4969
|
crossAxis: !1,
|
|
4948
4970
|
limiter: v === "partial" ? Qf() : void 0,
|
|
@@ -4952,7 +4974,7 @@ const Ji = "Popper", [no, kn] = we(Ji), [_p, Qi] = no(Ji), yp = (e) => {
|
|
|
4952
4974
|
element: j,
|
|
4953
4975
|
padding: b
|
|
4954
4976
|
}) : void 0,
|
|
4955
|
-
|
|
4977
|
+
m ? Yf({
|
|
4956
4978
|
...G
|
|
4957
4979
|
}) : void 0,
|
|
4958
4980
|
Ap({
|
|
@@ -4979,13 +5001,13 @@ const Ji = "Popper", [no, kn] = we(Ji), [_p, Qi] = no(Ji), yp = (e) => {
|
|
|
4979
5001
|
const { hasParent: Oe, positionUpdateFns: pe } = Ep(vn, d), be = !Oe;
|
|
4980
5002
|
Vt(() => {
|
|
4981
5003
|
if (!be)
|
|
4982
|
-
return pe.add(
|
|
4983
|
-
pe.delete(
|
|
5004
|
+
return pe.add(me), () => {
|
|
5005
|
+
pe.delete(me);
|
|
4984
5006
|
};
|
|
4985
5007
|
}, [
|
|
4986
5008
|
be,
|
|
4987
5009
|
pe,
|
|
4988
|
-
|
|
5010
|
+
me
|
|
4989
5011
|
]), Vt(() => {
|
|
4990
5012
|
be && ge && Array.from(pe).reverse().forEach(
|
|
4991
5013
|
(Ee) => requestAnimationFrame(Ee)
|
|
@@ -5038,7 +5060,7 @@ const Ji = "Popper", [no, kn] = we(Ji), [_p, Qi] = no(Ji), yp = (e) => {
|
|
|
5038
5060
|
right: "left",
|
|
5039
5061
|
bottom: "top",
|
|
5040
5062
|
left: "right"
|
|
5041
|
-
}, Op = /* @__PURE__ */
|
|
5063
|
+
}, Op = /* @__PURE__ */ R(function(t, n) {
|
|
5042
5064
|
const { __scopePopper: r, ...o } = t, a = Tp(kp, r), i = Rp[a.placedSide];
|
|
5043
5065
|
return /* @__PURE__ */ _("span", {
|
|
5044
5066
|
ref: a.onArrowChange,
|
|
@@ -5061,7 +5083,7 @@ const Ji = "Popper", [no, kn] = we(Ji), [_p, Qi] = no(Ji), yp = (e) => {
|
|
|
5061
5083
|
}[a.placedSide],
|
|
5062
5084
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
5063
5085
|
}
|
|
5064
|
-
}, /* @__PURE__ */ _(vp,
|
|
5086
|
+
}, /* @__PURE__ */ _(vp, O({}, o, {
|
|
5065
5087
|
ref: n,
|
|
5066
5088
|
style: {
|
|
5067
5089
|
...o.style,
|
|
@@ -5080,16 +5102,16 @@ const Ap = (e) => ({
|
|
|
5080
5102
|
options: e,
|
|
5081
5103
|
fn(t) {
|
|
5082
5104
|
var n, r, o, a, i;
|
|
5083
|
-
const { placement: s, rects: l, middlewareData: u } = t, f = ((n = u.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0,
|
|
5105
|
+
const { placement: s, rects: l, middlewareData: u } = t, f = ((n = u.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, $ = f ? 0 : e.arrowWidth, p = f ? 0 : e.arrowHeight, [g, b] = es(s), h = {
|
|
5084
5106
|
start: "0%",
|
|
5085
5107
|
center: "50%",
|
|
5086
5108
|
end: "100%"
|
|
5087
|
-
}[b], y = ((r = (o = u.arrow) === null || o === void 0 ? void 0 : o.x) !== null && r !== void 0 ? r : 0) +
|
|
5088
|
-
let w = "",
|
|
5089
|
-
return g === "bottom" ? (w = f ? h : `${y}px`,
|
|
5109
|
+
}[b], y = ((r = (o = u.arrow) === null || o === void 0 ? void 0 : o.x) !== null && r !== void 0 ? r : 0) + $ / 2, v = ((a = (i = u.arrow) === null || i === void 0 ? void 0 : i.y) !== null && a !== void 0 ? a : 0) + p / 2;
|
|
5110
|
+
let w = "", m = "";
|
|
5111
|
+
return g === "bottom" ? (w = f ? h : `${y}px`, m = `${-p}px`) : g === "top" ? (w = f ? h : `${y}px`, m = `${l.floating.height + p}px`) : g === "right" ? (w = `${-p}px`, m = f ? h : `${v}px`) : g === "left" && (w = `${l.floating.width + p}px`, m = f ? h : `${v}px`), {
|
|
5090
5112
|
data: {
|
|
5091
5113
|
x: w,
|
|
5092
|
-
y:
|
|
5114
|
+
y: m
|
|
5093
5115
|
}
|
|
5094
5116
|
};
|
|
5095
5117
|
}
|
|
@@ -5104,7 +5126,7 @@ function es(e) {
|
|
|
5104
5126
|
const ts = yp, ns = wp, rs = Sp, os = Op, as = "Popover", [is, Uh] = we(as, [
|
|
5105
5127
|
kn
|
|
5106
5128
|
]), Rn = kn(), [Lp, bt] = is(as), Fp = (e) => {
|
|
5107
|
-
const { __scopePopover: t, children: n, open: r, defaultOpen: o, onOpenChange: a, modal: i = !1 } = e, s = Rn(t), l = I(null), [u, d] = H(!1), [f = !1,
|
|
5129
|
+
const { __scopePopover: t, children: n, open: r, defaultOpen: o, onOpenChange: a, modal: i = !1 } = e, s = Rn(t), l = I(null), [u, d] = H(!1), [f = !1, $] = Fe({
|
|
5108
5130
|
prop: r,
|
|
5109
5131
|
defaultProp: o,
|
|
5110
5132
|
onChange: a
|
|
@@ -5114,13 +5136,13 @@ const ts = yp, ns = wp, rs = Sp, os = Op, as = "Popover", [is, Uh] = we(as, [
|
|
|
5114
5136
|
contentId: Ke(),
|
|
5115
5137
|
triggerRef: l,
|
|
5116
5138
|
open: f,
|
|
5117
|
-
onOpenChange:
|
|
5139
|
+
onOpenChange: $,
|
|
5118
5140
|
onOpenToggle: B(
|
|
5119
|
-
() =>
|
|
5141
|
+
() => $(
|
|
5120
5142
|
(p) => !p
|
|
5121
5143
|
),
|
|
5122
5144
|
[
|
|
5123
|
-
|
|
5145
|
+
$
|
|
5124
5146
|
]
|
|
5125
5147
|
),
|
|
5126
5148
|
hasCustomAnchor: u,
|
|
@@ -5134,8 +5156,8 @@ const ts = yp, ns = wp, rs = Sp, os = Op, as = "Popover", [is, Uh] = we(as, [
|
|
|
5134
5156
|
),
|
|
5135
5157
|
modal: i
|
|
5136
5158
|
}, n));
|
|
5137
|
-
}, Np = "PopoverTrigger", Mp = /* @__PURE__ */
|
|
5138
|
-
const { __scopePopover: n, ...r } = e, o = bt(Np, n), a = Rn(n), i = ne(t, o.triggerRef), s = /* @__PURE__ */ _(U.button,
|
|
5159
|
+
}, Np = "PopoverTrigger", Mp = /* @__PURE__ */ R((e, t) => {
|
|
5160
|
+
const { __scopePopover: n, ...r } = e, o = bt(Np, n), a = Rn(n), i = ne(t, o.triggerRef), s = /* @__PURE__ */ _(U.button, O({
|
|
5139
5161
|
type: "button",
|
|
5140
5162
|
"aria-haspopup": "dialog",
|
|
5141
5163
|
"aria-expanded": o.open,
|
|
@@ -5145,7 +5167,7 @@ const ts = yp, ns = wp, rs = Sp, os = Op, as = "Popover", [is, Uh] = we(as, [
|
|
|
5145
5167
|
ref: i,
|
|
5146
5168
|
onClick: V(e.onClick, o.onOpenToggle)
|
|
5147
5169
|
}));
|
|
5148
|
-
return o.hasCustomAnchor ? s : /* @__PURE__ */ _(ns,
|
|
5170
|
+
return o.hasCustomAnchor ? s : /* @__PURE__ */ _(ns, O({
|
|
5149
5171
|
asChild: !0
|
|
5150
5172
|
}, a), s);
|
|
5151
5173
|
}), ss = "PopoverPortal", [zp, Bp] = is(ss, {
|
|
@@ -5161,16 +5183,16 @@ const ts = yp, ns = wp, rs = Sp, os = Op, as = "Popover", [is, Uh] = we(as, [
|
|
|
5161
5183
|
asChild: !0,
|
|
5162
5184
|
container: o
|
|
5163
5185
|
}, r)));
|
|
5164
|
-
}, Wt = "PopoverContent", cs = /* @__PURE__ */
|
|
5186
|
+
}, Wt = "PopoverContent", cs = /* @__PURE__ */ R((e, t) => {
|
|
5165
5187
|
const n = Bp(Wt, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, a = bt(Wt, e.__scopePopover);
|
|
5166
5188
|
return /* @__PURE__ */ _(Se, {
|
|
5167
5189
|
present: r || a.open
|
|
5168
|
-
}, a.modal ? /* @__PURE__ */ _(Wp,
|
|
5190
|
+
}, a.modal ? /* @__PURE__ */ _(Wp, O({}, o, {
|
|
5169
5191
|
ref: t
|
|
5170
|
-
})) : /* @__PURE__ */ _(Hp,
|
|
5192
|
+
})) : /* @__PURE__ */ _(Hp, O({}, o, {
|
|
5171
5193
|
ref: t
|
|
5172
5194
|
})));
|
|
5173
|
-
}), Wp = /* @__PURE__ */
|
|
5195
|
+
}), Wp = /* @__PURE__ */ R((e, t) => {
|
|
5174
5196
|
const n = bt(Wt, e.__scopePopover), r = I(null), o = ne(t, r), a = I(!1);
|
|
5175
5197
|
return W(() => {
|
|
5176
5198
|
const i = r.current;
|
|
@@ -5179,7 +5201,7 @@ const ts = yp, ns = wp, rs = Sp, os = Op, as = "Popover", [is, Uh] = we(as, [
|
|
|
5179
5201
|
}, []), /* @__PURE__ */ _(Br, {
|
|
5180
5202
|
as: ut,
|
|
5181
5203
|
allowPinchZoom: !0
|
|
5182
|
-
}, /* @__PURE__ */ _(ls,
|
|
5204
|
+
}, /* @__PURE__ */ _(ls, O({}, e, {
|
|
5183
5205
|
ref: o,
|
|
5184
5206
|
trapFocus: n.open,
|
|
5185
5207
|
disableOutsidePointerEvents: !0,
|
|
@@ -5201,9 +5223,9 @@ const ts = yp, ns = wp, rs = Sp, os = Op, as = "Popover", [is, Uh] = we(as, [
|
|
|
5201
5223
|
}
|
|
5202
5224
|
)
|
|
5203
5225
|
})));
|
|
5204
|
-
}), Hp = /* @__PURE__ */
|
|
5226
|
+
}), Hp = /* @__PURE__ */ R((e, t) => {
|
|
5205
5227
|
const n = bt(Wt, e.__scopePopover), r = I(!1);
|
|
5206
|
-
return /* @__PURE__ */ _(ls,
|
|
5228
|
+
return /* @__PURE__ */ _(ls, O({}, e, {
|
|
5207
5229
|
ref: t,
|
|
5208
5230
|
trapFocus: !1,
|
|
5209
5231
|
disableOutsidePointerEvents: !1,
|
|
@@ -5222,8 +5244,8 @@ const ts = yp, ns = wp, rs = Sp, os = Op, as = "Popover", [is, Uh] = we(as, [
|
|
|
5222
5244
|
((i = n.triggerRef.current) === null || i === void 0 ? void 0 : i.contains(s)) && o.preventDefault();
|
|
5223
5245
|
}
|
|
5224
5246
|
}));
|
|
5225
|
-
}), ls = /* @__PURE__ */
|
|
5226
|
-
const { __scopePopover: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, disableOutsidePointerEvents: i, onEscapeKeyDown: s, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, ...f } = e,
|
|
5247
|
+
}), ls = /* @__PURE__ */ R((e, t) => {
|
|
5248
|
+
const { __scopePopover: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, disableOutsidePointerEvents: i, onEscapeKeyDown: s, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, ...f } = e, $ = bt(Wt, n), p = Rn(n);
|
|
5227
5249
|
return Mr(), /* @__PURE__ */ _(Nr, {
|
|
5228
5250
|
asChild: !0,
|
|
5229
5251
|
loop: !0,
|
|
@@ -5237,11 +5259,11 @@ const ts = yp, ns = wp, rs = Sp, os = Op, as = "Popover", [is, Uh] = we(as, [
|
|
|
5237
5259
|
onEscapeKeyDown: s,
|
|
5238
5260
|
onPointerDownOutside: l,
|
|
5239
5261
|
onFocusOutside: u,
|
|
5240
|
-
onDismiss: () =>
|
|
5241
|
-
}, /* @__PURE__ */ _(rs,
|
|
5242
|
-
"data-state": ds(
|
|
5262
|
+
onDismiss: () => $.onOpenChange(!1)
|
|
5263
|
+
}, /* @__PURE__ */ _(rs, O({
|
|
5264
|
+
"data-state": ds($.open),
|
|
5243
5265
|
role: "dialog",
|
|
5244
|
-
id:
|
|
5266
|
+
id: $.contentId
|
|
5245
5267
|
}, p, f, {
|
|
5246
5268
|
ref: t,
|
|
5247
5269
|
style: {
|
|
@@ -5249,9 +5271,9 @@ const ts = yp, ns = wp, rs = Sp, os = Op, as = "Popover", [is, Uh] = we(as, [
|
|
|
5249
5271
|
["--radix-popover-content-transform-origin"]: "var(--radix-popper-transform-origin)"
|
|
5250
5272
|
}
|
|
5251
5273
|
}))));
|
|
5252
|
-
}), Kp = "PopoverClose", Up = /* @__PURE__ */
|
|
5274
|
+
}), Kp = "PopoverClose", Up = /* @__PURE__ */ R((e, t) => {
|
|
5253
5275
|
const { __scopePopover: n, ...r } = e, o = bt(Kp, n);
|
|
5254
|
-
return /* @__PURE__ */ _(U.button,
|
|
5276
|
+
return /* @__PURE__ */ _(U.button, O({
|
|
5255
5277
|
type: "button"
|
|
5256
5278
|
}, r, {
|
|
5257
5279
|
ref: t,
|
|
@@ -5260,9 +5282,9 @@ const ts = yp, ns = wp, rs = Sp, os = Op, as = "Popover", [is, Uh] = we(as, [
|
|
|
5260
5282
|
() => o.onOpenChange(!1)
|
|
5261
5283
|
)
|
|
5262
5284
|
}));
|
|
5263
|
-
}), jp = /* @__PURE__ */
|
|
5285
|
+
}), jp = /* @__PURE__ */ R((e, t) => {
|
|
5264
5286
|
const { __scopePopover: n, ...r } = e, o = Rn(n);
|
|
5265
|
-
return /* @__PURE__ */ _(os,
|
|
5287
|
+
return /* @__PURE__ */ _(os, O({}, o, r, {
|
|
5266
5288
|
ref: t
|
|
5267
5289
|
}));
|
|
5268
5290
|
});
|
|
@@ -5303,7 +5325,18 @@ const nb = k(Zp)`
|
|
|
5303
5325
|
position: absolute;
|
|
5304
5326
|
top: 5px;
|
|
5305
5327
|
right: 5px;
|
|
5306
|
-
`, rb = Gp, ob =
|
|
5328
|
+
`, rb = Gp, ob = R((e, t) => {
|
|
5329
|
+
const {
|
|
5330
|
+
children: n,
|
|
5331
|
+
...r
|
|
5332
|
+
} = e;
|
|
5333
|
+
return /* @__PURE__ */ E(Yp, {
|
|
5334
|
+
ref: t,
|
|
5335
|
+
type: "button",
|
|
5336
|
+
...r,
|
|
5337
|
+
children: n
|
|
5338
|
+
});
|
|
5339
|
+
}), jh = tb, Gh = nb, ab = "data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGFyaWEtaGlkZGVuPSJ0cnVlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8cGF0aCBkPSIgTTE5IDE1bC02IDYtMS40Mi0xLjQyTDE1LjE3IDE2SDRWNGgydjEwaDkuMTdsLTMuNTktMy41OEwxMyA5bDYgNnoiIGZpbGw9ImhzbGEoMCwgMCUsIDAlLCAwLjEyKSI+PC9wYXRoPgo8L3N2Zz4=", ib = k(cs)`
|
|
5307
5340
|
margin-top: 22px;
|
|
5308
5341
|
isolation: isolate;
|
|
5309
5342
|
min-width: 210px;
|
|
@@ -5382,18 +5415,22 @@ const Sr = k.ol`
|
|
|
5382
5415
|
font-size: ${c.font_size_100};
|
|
5383
5416
|
line-height: ${c.line_height_114};
|
|
5384
5417
|
letter-spacing: ${c.letter_spacing_tight};
|
|
5385
|
-
cursor: pointer;
|
|
5386
5418
|
border-radius: ${c.border_radius_400};
|
|
5387
5419
|
padding: 2px 4px;
|
|
5388
|
-
|
|
5420
|
+
|
|
5389
5421
|
transition-property: ${c.transition_property_color};
|
|
5390
5422
|
transition-duration: ${c.transition_duration_100};
|
|
5423
|
+
cursor: default;
|
|
5424
|
+
|
|
5425
|
+
&[href] {
|
|
5426
|
+
cursor: pointer;
|
|
5427
|
+
}
|
|
5391
5428
|
|
|
5392
5429
|
&:hover {
|
|
5393
5430
|
background-color: ${c.color_overlay_secondary_hover}; /* Interactive / Overlay / Secondary / Hover */
|
|
5394
5431
|
}
|
|
5395
5432
|
|
|
5396
|
-
&[data-state~='pressed'] {
|
|
5433
|
+
&[href][data-state~='pressed'] {
|
|
5397
5434
|
background-color: ${c.color_overlay_secondary_pressed}; /* Interactive / Overlay / Secondary / Pressed */
|
|
5398
5435
|
}
|
|
5399
5436
|
|
|
@@ -5471,7 +5508,7 @@ function db({
|
|
|
5471
5508
|
})
|
|
5472
5509
|
});
|
|
5473
5510
|
}
|
|
5474
|
-
const ub =
|
|
5511
|
+
const ub = R(({
|
|
5475
5512
|
children: e,
|
|
5476
5513
|
...t
|
|
5477
5514
|
}, n) => {
|
|
@@ -5501,43 +5538,43 @@ const ub = O(({
|
|
|
5501
5538
|
});
|
|
5502
5539
|
});
|
|
5503
5540
|
ub.displayName = "Breadcrumbs";
|
|
5504
|
-
const fb =
|
|
5541
|
+
const fb = R((e, t) => {
|
|
5505
5542
|
const {
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
} = e, i = Rt(t), {
|
|
5543
|
+
LinkComponent: n = "a",
|
|
5544
|
+
disabled: r,
|
|
5545
|
+
...o
|
|
5546
|
+
} = e, a = Rt(t), i = typeof n == "string", {
|
|
5511
5547
|
children: s,
|
|
5512
5548
|
href: l,
|
|
5513
5549
|
isCurrent: u
|
|
5514
5550
|
} = e, {
|
|
5515
5551
|
itemProps: d
|
|
5516
5552
|
} = Nf({
|
|
5517
|
-
isDisabled:
|
|
5553
|
+
isDisabled: r,
|
|
5518
5554
|
isCurrent: u,
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
}, i), {
|
|
5555
|
+
elementType: i ? n : "a",
|
|
5556
|
+
...o
|
|
5557
|
+
}, a), {
|
|
5523
5558
|
isPressed: f,
|
|
5524
|
-
pressProps:
|
|
5559
|
+
pressProps: $
|
|
5525
5560
|
} = Yr({
|
|
5526
|
-
isDisabled:
|
|
5527
|
-
ref:
|
|
5561
|
+
isDisabled: r,
|
|
5562
|
+
ref: a
|
|
5528
5563
|
}), {
|
|
5529
5564
|
isFocusVisible: p,
|
|
5530
5565
|
focusProps: g
|
|
5531
|
-
} = Pn(), b = [f && "pressed",
|
|
5566
|
+
} = Pn(), b = [f && "pressed", r && "disabled", p && "focused"].filter(Boolean).join(" "), y = !u && !r && l, w = {
|
|
5567
|
+
[i ? "href" : "to"]: y
|
|
5568
|
+
};
|
|
5532
5569
|
return /* @__PURE__ */ E(us, {
|
|
5533
5570
|
children: /* @__PURE__ */ E(cb, {
|
|
5534
|
-
as:
|
|
5571
|
+
as: n,
|
|
5535
5572
|
...d,
|
|
5536
|
-
ref:
|
|
5537
|
-
href: l,
|
|
5573
|
+
ref: a,
|
|
5538
5574
|
"data-state": b,
|
|
5539
5575
|
...g,
|
|
5540
|
-
|
|
5576
|
+
...$,
|
|
5577
|
+
...w,
|
|
5541
5578
|
children: s
|
|
5542
5579
|
})
|
|
5543
5580
|
});
|
|
@@ -5555,7 +5592,7 @@ function ro(e, t) {
|
|
|
5555
5592
|
allowFocusWhenDisabled: u,
|
|
5556
5593
|
onClick: d,
|
|
5557
5594
|
href: f,
|
|
5558
|
-
target:
|
|
5595
|
+
target: $,
|
|
5559
5596
|
rel: p,
|
|
5560
5597
|
type: g = "button"
|
|
5561
5598
|
} = e, b;
|
|
@@ -5566,7 +5603,7 @@ function ro(e, t) {
|
|
|
5566
5603
|
role: "button",
|
|
5567
5604
|
tabIndex: r ? void 0 : 0,
|
|
5568
5605
|
href: n === "a" && r ? void 0 : f,
|
|
5569
|
-
target: n === "a" ?
|
|
5606
|
+
target: n === "a" ? $ : void 0,
|
|
5570
5607
|
type: n === "input" ? g : void 0,
|
|
5571
5608
|
disabled: n === "input" ? r : void 0,
|
|
5572
5609
|
"aria-disabled": !r || n === "input" ? void 0 : r,
|
|
@@ -5592,8 +5629,8 @@ function ro(e, t) {
|
|
|
5592
5629
|
"aria-expanded": e["aria-expanded"],
|
|
5593
5630
|
"aria-controls": e["aria-controls"],
|
|
5594
5631
|
"aria-pressed": e["aria-pressed"],
|
|
5595
|
-
onClick: (
|
|
5596
|
-
d && (d(
|
|
5632
|
+
onClick: (m) => {
|
|
5633
|
+
d && (d(m), console.warn("onClick is deprecated, please use onPress"));
|
|
5597
5634
|
}
|
|
5598
5635
|
})
|
|
5599
5636
|
};
|
|
@@ -5661,7 +5698,7 @@ const pb = {
|
|
|
5661
5698
|
color: ${c.color_fill_secondary_disabled};
|
|
5662
5699
|
border-color: ${c.color_outline_secondary_disabled};
|
|
5663
5700
|
}
|
|
5664
|
-
`,
|
|
5701
|
+
`, mb = k(Me)`
|
|
5665
5702
|
background: white;
|
|
5666
5703
|
color: ${c.color_fill_danger_enabled};
|
|
5667
5704
|
border: 1px solid ${c.color_outline_danger_enabled};
|
|
@@ -5679,7 +5716,7 @@ const pb = {
|
|
|
5679
5716
|
&:disabled {
|
|
5680
5717
|
color: ${c.color_fill_danger_disabled};
|
|
5681
5718
|
}
|
|
5682
|
-
`,
|
|
5719
|
+
`, $b = k(Me)`
|
|
5683
5720
|
background: ${c.color_overlay_inverse_enabled};
|
|
5684
5721
|
border-color: ${c.color_outline_inverse_enabled};
|
|
5685
5722
|
color: ${c.color_fill_inverse_enabled};
|
|
@@ -5709,8 +5746,8 @@ const pb = {
|
|
|
5709
5746
|
}
|
|
5710
5747
|
`, gb = {
|
|
5711
5748
|
primary: bb,
|
|
5712
|
-
danger:
|
|
5713
|
-
inverse:
|
|
5749
|
+
danger: mb,
|
|
5750
|
+
inverse: $b
|
|
5714
5751
|
}, hb = k(Me)`
|
|
5715
5752
|
background: hsla(
|
|
5716
5753
|
217.35,
|
|
@@ -5859,7 +5896,7 @@ const pb = {
|
|
|
5859
5896
|
low: yb,
|
|
5860
5897
|
medium: gb,
|
|
5861
5898
|
high: Cb
|
|
5862
|
-
}, Sb =
|
|
5899
|
+
}, Sb = R((e, t) => {
|
|
5863
5900
|
const {
|
|
5864
5901
|
size: n = "small",
|
|
5865
5902
|
variant: r = "primary",
|
|
@@ -5871,7 +5908,7 @@ const pb = {
|
|
|
5871
5908
|
...u
|
|
5872
5909
|
} = e, d = Rt(t), {
|
|
5873
5910
|
buttonProps: f,
|
|
5874
|
-
isPressed:
|
|
5911
|
+
isPressed: $
|
|
5875
5912
|
} = ro(
|
|
5876
5913
|
{
|
|
5877
5914
|
onPress: i,
|
|
@@ -5885,7 +5922,7 @@ const pb = {
|
|
|
5885
5922
|
focusProps: g
|
|
5886
5923
|
} = Pn({
|
|
5887
5924
|
autoFocus: s
|
|
5888
|
-
}), y = [p ? "focused" : void 0,
|
|
5925
|
+
}), y = [p ? "focused" : void 0, $ ? "pressed" : void 0].filter(Boolean).join(" "), w = Eb[o][r];
|
|
5889
5926
|
return /* @__PURE__ */ E(w, {
|
|
5890
5927
|
ref: d,
|
|
5891
5928
|
"data-state": y,
|
|
@@ -5906,10 +5943,10 @@ function On(e) {
|
|
|
5906
5943
|
e
|
|
5907
5944
|
]);
|
|
5908
5945
|
}
|
|
5909
|
-
const ps = "Checkbox", [kb, Yh] = we(ps), [Rb, Ob] = kb(ps), Db = /* @__PURE__ */
|
|
5910
|
-
const { __scopeCheckbox: n, name: r, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: u, ...d } = e, [f,
|
|
5946
|
+
const ps = "Checkbox", [kb, Yh] = we(ps), [Rb, Ob] = kb(ps), Db = /* @__PURE__ */ R((e, t) => {
|
|
5947
|
+
const { __scopeCheckbox: n, name: r, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: u, ...d } = e, [f, $] = H(null), p = ne(
|
|
5911
5948
|
t,
|
|
5912
|
-
(v) =>
|
|
5949
|
+
(v) => $(v)
|
|
5913
5950
|
), g = I(!1), b = f ? Boolean(f.closest("form")) : !0, [h = !1, y] = Fe({
|
|
5914
5951
|
prop: o,
|
|
5915
5952
|
defaultProp: a,
|
|
@@ -5919,7 +5956,7 @@ const ps = "Checkbox", [kb, Yh] = we(ps), [Rb, Ob] = kb(ps), Db = /* @__PURE__ *
|
|
|
5919
5956
|
scope: n,
|
|
5920
5957
|
state: h,
|
|
5921
5958
|
disabled: s
|
|
5922
|
-
}, /* @__PURE__ */ _(U.button,
|
|
5959
|
+
}, /* @__PURE__ */ _(U.button, O({
|
|
5923
5960
|
type: "button",
|
|
5924
5961
|
role: "checkbox",
|
|
5925
5962
|
"aria-checked": ct(h) ? "mixed" : h,
|
|
@@ -5950,11 +5987,11 @@ const ps = "Checkbox", [kb, Yh] = we(ps), [Rb, Ob] = kb(ps), Db = /* @__PURE__ *
|
|
|
5950
5987
|
transform: "translateX(-100%)"
|
|
5951
5988
|
}
|
|
5952
5989
|
}));
|
|
5953
|
-
}), Ib = "CheckboxIndicator", Ab = /* @__PURE__ */
|
|
5990
|
+
}), Ib = "CheckboxIndicator", Ab = /* @__PURE__ */ R((e, t) => {
|
|
5954
5991
|
const { __scopeCheckbox: n, forceMount: r, ...o } = e, a = Ob(Ib, n);
|
|
5955
5992
|
return /* @__PURE__ */ _(Se, {
|
|
5956
5993
|
present: r || ct(a.state) || a.state === !0
|
|
5957
|
-
}, /* @__PURE__ */ _(U.span,
|
|
5994
|
+
}, /* @__PURE__ */ _(U.span, O({
|
|
5958
5995
|
"data-state": bs(a.state),
|
|
5959
5996
|
"data-disabled": a.disabled ? "" : void 0
|
|
5960
5997
|
}, o, {
|
|
@@ -5969,16 +6006,16 @@ const ps = "Checkbox", [kb, Yh] = we(ps), [Rb, Ob] = kb(ps), Db = /* @__PURE__ *
|
|
|
5969
6006
|
return W(() => {
|
|
5970
6007
|
const l = a.current, u = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(u, "checked").set;
|
|
5971
6008
|
if (i !== n && f) {
|
|
5972
|
-
const
|
|
6009
|
+
const $ = new Event("click", {
|
|
5973
6010
|
bubbles: r
|
|
5974
6011
|
});
|
|
5975
|
-
l.indeterminate = ct(n), f.call(l, ct(n) ? !1 : n), l.dispatchEvent(
|
|
6012
|
+
l.indeterminate = ct(n), f.call(l, ct(n) ? !1 : n), l.dispatchEvent($);
|
|
5976
6013
|
}
|
|
5977
6014
|
}, [
|
|
5978
6015
|
i,
|
|
5979
6016
|
n,
|
|
5980
6017
|
r
|
|
5981
|
-
]), /* @__PURE__ */ _("input",
|
|
6018
|
+
]), /* @__PURE__ */ _("input", O({
|
|
5982
6019
|
type: "checkbox",
|
|
5983
6020
|
"aria-hidden": !0,
|
|
5984
6021
|
defaultChecked: ct(n) ? !1 : n
|
|
@@ -6012,7 +6049,7 @@ function qh({
|
|
|
6012
6049
|
disabled: t,
|
|
6013
6050
|
...n
|
|
6014
6051
|
}) {
|
|
6015
|
-
const o =
|
|
6052
|
+
const o = mt() || Boolean(t);
|
|
6016
6053
|
return /* @__PURE__ */ E(oo.Provider, {
|
|
6017
6054
|
value: o,
|
|
6018
6055
|
children: /* @__PURE__ */ E(Mb, {
|
|
@@ -6022,7 +6059,7 @@ function qh({
|
|
|
6022
6059
|
})
|
|
6023
6060
|
});
|
|
6024
6061
|
}
|
|
6025
|
-
function
|
|
6062
|
+
function mt() {
|
|
6026
6063
|
return Te(oo);
|
|
6027
6064
|
}
|
|
6028
6065
|
function zb(e) {
|
|
@@ -6043,7 +6080,7 @@ function zb(e) {
|
|
|
6043
6080
|
fieldProps: l
|
|
6044
6081
|
};
|
|
6045
6082
|
}
|
|
6046
|
-
function
|
|
6083
|
+
function ms(e) {
|
|
6047
6084
|
let { description: t, errorMessage: n, validationState: r } = e, { labelProps: o, fieldProps: a } = zb(e), i = Ao([
|
|
6048
6085
|
Boolean(t),
|
|
6049
6086
|
Boolean(n),
|
|
@@ -6072,7 +6109,7 @@ function $s(e) {
|
|
|
6072
6109
|
}
|
|
6073
6110
|
function ao(e, t) {
|
|
6074
6111
|
let { inputElementType: n = "input", isDisabled: r = !1, isRequired: o = !1, isReadOnly: a = !1, validationState: i, type: s = "text", onChange: l = () => {
|
|
6075
|
-
} } = e, { focusableProps: u } = Jr(e, t), { labelProps: d, fieldProps: f, descriptionProps:
|
|
6112
|
+
} } = e, { focusableProps: u } = Jr(e, t), { labelProps: d, fieldProps: f, descriptionProps: $, errorMessageProps: p } = ms(e), g = Gt(e, {
|
|
6076
6113
|
labelable: !0
|
|
6077
6114
|
});
|
|
6078
6115
|
const b = {
|
|
@@ -6111,7 +6148,7 @@ function ao(e, t) {
|
|
|
6111
6148
|
...u,
|
|
6112
6149
|
...f
|
|
6113
6150
|
}),
|
|
6114
|
-
descriptionProps:
|
|
6151
|
+
descriptionProps: $,
|
|
6115
6152
|
errorMessageProps: p
|
|
6116
6153
|
};
|
|
6117
6154
|
}
|
|
@@ -6123,9 +6160,9 @@ function Bb(e, t, n) {
|
|
|
6123
6160
|
r.current = t, W(() => {
|
|
6124
6161
|
if (!sa())
|
|
6125
6162
|
return;
|
|
6126
|
-
let d = n.current, f = (
|
|
6163
|
+
let d = n.current, f = ($) => {
|
|
6127
6164
|
let p = r.current, g;
|
|
6128
|
-
switch (
|
|
6165
|
+
switch ($.inputType) {
|
|
6129
6166
|
case "historyUndo":
|
|
6130
6167
|
case "historyRedo":
|
|
6131
6168
|
return;
|
|
@@ -6145,10 +6182,10 @@ function Bb(e, t, n) {
|
|
|
6145
6182
|
g = d.value.slice(d.selectionStart);
|
|
6146
6183
|
break;
|
|
6147
6184
|
default:
|
|
6148
|
-
|
|
6185
|
+
$.data != null && (g = d.value.slice(0, d.selectionStart) + $.data + d.value.slice(d.selectionEnd));
|
|
6149
6186
|
break;
|
|
6150
6187
|
}
|
|
6151
|
-
(g == null || !p.validate(g)) &&
|
|
6188
|
+
(g == null || !p.validate(g)) && $.preventDefault();
|
|
6152
6189
|
};
|
|
6153
6190
|
return d.addEventListener("beforeinput", f, !1), () => {
|
|
6154
6191
|
d.removeEventListener("beforeinput", f, !1);
|
|
@@ -6165,17 +6202,17 @@ function Bb(e, t, n) {
|
|
|
6165
6202
|
inputProps: _e(i, {
|
|
6166
6203
|
onBeforeInput: o,
|
|
6167
6204
|
onCompositionStart() {
|
|
6168
|
-
let { value: d, selectionStart: f, selectionEnd:
|
|
6205
|
+
let { value: d, selectionStart: f, selectionEnd: $ } = n.current;
|
|
6169
6206
|
u.current = {
|
|
6170
6207
|
value: d,
|
|
6171
6208
|
selectionStart: f,
|
|
6172
|
-
selectionEnd:
|
|
6209
|
+
selectionEnd: $
|
|
6173
6210
|
};
|
|
6174
6211
|
},
|
|
6175
6212
|
onCompositionEnd() {
|
|
6176
6213
|
if (!t.validate(n.current.value)) {
|
|
6177
|
-
let { value: d, selectionStart: f, selectionEnd:
|
|
6178
|
-
n.current.value = d, n.current.setSelectionRange(f,
|
|
6214
|
+
let { value: d, selectionStart: f, selectionEnd: $ } = u.current;
|
|
6215
|
+
n.current.value = d, n.current.setSelectionRange(f, $), t.setInputValue(d);
|
|
6179
6216
|
}
|
|
6180
6217
|
}
|
|
6181
6218
|
}),
|
|
@@ -6210,7 +6247,7 @@ const io = k.label`
|
|
|
6210
6247
|
medium: Hb,
|
|
6211
6248
|
large: Wb
|
|
6212
6249
|
};
|
|
6213
|
-
function
|
|
6250
|
+
function $t({
|
|
6214
6251
|
children: e,
|
|
6215
6252
|
bold: t,
|
|
6216
6253
|
size: n = "small",
|
|
@@ -6327,7 +6364,7 @@ k.div`
|
|
|
6327
6364
|
align-items: center;
|
|
6328
6365
|
pointer-events: none;
|
|
6329
6366
|
`;
|
|
6330
|
-
const
|
|
6367
|
+
const $s = R((e, t) => {
|
|
6331
6368
|
const {
|
|
6332
6369
|
errorMessage: n,
|
|
6333
6370
|
description: r,
|
|
@@ -6339,7 +6376,7 @@ const ms = O((e, t) => {
|
|
|
6339
6376
|
validationState: u,
|
|
6340
6377
|
placeholder: d = "Enter text...",
|
|
6341
6378
|
...f
|
|
6342
|
-
} = e,
|
|
6379
|
+
} = e, $ = Rt(t), p = mt(), g = o || p, {
|
|
6343
6380
|
labelProps: b,
|
|
6344
6381
|
descriptionProps: h,
|
|
6345
6382
|
inputProps: y,
|
|
@@ -6351,9 +6388,9 @@ const ms = O((e, t) => {
|
|
|
6351
6388
|
isRequired: i,
|
|
6352
6389
|
placeholder: d,
|
|
6353
6390
|
label: l
|
|
6354
|
-
},
|
|
6391
|
+
}, $);
|
|
6355
6392
|
let w = null;
|
|
6356
|
-
return typeof l == "string" ? w = /* @__PURE__ */ E(
|
|
6393
|
+
return typeof l == "string" ? w = /* @__PURE__ */ E($t, {
|
|
6357
6394
|
...b,
|
|
6358
6395
|
children: l
|
|
6359
6396
|
}) : dt(l) && (w = pt(l, {
|
|
@@ -6362,7 +6399,7 @@ const ms = O((e, t) => {
|
|
|
6362
6399
|
children: [w, /* @__PURE__ */ E(Dn, {
|
|
6363
6400
|
"data-state": u,
|
|
6364
6401
|
paddingSize: s,
|
|
6365
|
-
ref:
|
|
6402
|
+
ref: $,
|
|
6366
6403
|
placeholder: "Enter...",
|
|
6367
6404
|
type: "text",
|
|
6368
6405
|
...y
|
|
@@ -6375,7 +6412,7 @@ const ms = O((e, t) => {
|
|
|
6375
6412
|
})]
|
|
6376
6413
|
});
|
|
6377
6414
|
});
|
|
6378
|
-
|
|
6415
|
+
$s.displayName = "TextInput";
|
|
6379
6416
|
const [Fn, Xh] = we("Tooltip", [
|
|
6380
6417
|
kn
|
|
6381
6418
|
]), Nn = kn(), jb = "TooltipProvider", Gb = 700, kr = "tooltip.open", [Yb, so] = Fn(jb), qb = (e) => {
|
|
@@ -6405,7 +6442,7 @@ const [Fn, Xh] = we("Tooltip", [
|
|
|
6405
6442
|
disableHoverableContent: o
|
|
6406
6443
|
}, a);
|
|
6407
6444
|
}, co = "Tooltip", [Xb, qt] = Fn(co), Zb = (e) => {
|
|
6408
|
-
const { __scopeTooltip: t, children: n, open: r, defaultOpen: o = !1, onOpenChange: a, disableHoverableContent: i, delayDuration: s } = e, l = so(co, e.__scopeTooltip), u = Nn(t), [d, f] = H(null),
|
|
6445
|
+
const { __scopeTooltip: t, children: n, open: r, defaultOpen: o = !1, onOpenChange: a, disableHoverableContent: i, delayDuration: s } = e, l = so(co, e.__scopeTooltip), u = Nn(t), [d, f] = H(null), $ = Ke(), p = I(0), g = i != null ? i : l.disableHoverableContent, b = s != null ? s : l.delayDuration, h = I(!1), [y = !1, v] = Fe({
|
|
6409
6446
|
prop: r,
|
|
6410
6447
|
defaultProp: o,
|
|
6411
6448
|
onChange: (C) => {
|
|
@@ -6413,7 +6450,7 @@ const [Fn, Xh] = we("Tooltip", [
|
|
|
6413
6450
|
}
|
|
6414
6451
|
}), w = le(() => y ? h.current ? "delayed-open" : "instant-open" : "closed", [
|
|
6415
6452
|
y
|
|
6416
|
-
]),
|
|
6453
|
+
]), m = B(() => {
|
|
6417
6454
|
window.clearTimeout(p.current), h.current = !1, v(!0);
|
|
6418
6455
|
}, [
|
|
6419
6456
|
v
|
|
@@ -6431,17 +6468,17 @@ const [Fn, Xh] = we("Tooltip", [
|
|
|
6431
6468
|
]);
|
|
6432
6469
|
return W(() => () => window.clearTimeout(p.current), []), /* @__PURE__ */ _(ts, u, /* @__PURE__ */ _(Xb, {
|
|
6433
6470
|
scope: t,
|
|
6434
|
-
contentId:
|
|
6471
|
+
contentId: $,
|
|
6435
6472
|
open: y,
|
|
6436
6473
|
stateAttribute: w,
|
|
6437
6474
|
trigger: d,
|
|
6438
6475
|
onTriggerChange: f,
|
|
6439
6476
|
onTriggerEnter: B(() => {
|
|
6440
|
-
l.isOpenDelayed ? L() :
|
|
6477
|
+
l.isOpenDelayed ? L() : m();
|
|
6441
6478
|
}, [
|
|
6442
6479
|
l.isOpenDelayed,
|
|
6443
6480
|
L,
|
|
6444
|
-
|
|
6481
|
+
m
|
|
6445
6482
|
]),
|
|
6446
6483
|
onTriggerLeave: B(() => {
|
|
6447
6484
|
g ? D() : window.clearTimeout(p.current);
|
|
@@ -6449,26 +6486,26 @@ const [Fn, Xh] = we("Tooltip", [
|
|
|
6449
6486
|
D,
|
|
6450
6487
|
g
|
|
6451
6488
|
]),
|
|
6452
|
-
onOpen:
|
|
6489
|
+
onOpen: m,
|
|
6453
6490
|
onClose: D,
|
|
6454
6491
|
disableHoverableContent: g
|
|
6455
6492
|
}, n));
|
|
6456
|
-
}, ca = "TooltipTrigger", Jb = /* @__PURE__ */
|
|
6493
|
+
}, ca = "TooltipTrigger", Jb = /* @__PURE__ */ R((e, t) => {
|
|
6457
6494
|
const { __scopeTooltip: n, ...r } = e, o = qt(ca, n), a = so(ca, n), i = Nn(n), s = I(null), l = ne(t, s, o.onTriggerChange), u = I(!1), d = I(!1), f = B(
|
|
6458
6495
|
() => u.current = !1,
|
|
6459
6496
|
[]
|
|
6460
6497
|
);
|
|
6461
6498
|
return W(() => () => document.removeEventListener("pointerup", f), [
|
|
6462
6499
|
f
|
|
6463
|
-
]), /* @__PURE__ */ _(ns,
|
|
6500
|
+
]), /* @__PURE__ */ _(ns, O({
|
|
6464
6501
|
asChild: !0
|
|
6465
|
-
}, i), /* @__PURE__ */ _(U.button,
|
|
6502
|
+
}, i), /* @__PURE__ */ _(U.button, O({
|
|
6466
6503
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
6467
6504
|
"data-state": o.stateAttribute
|
|
6468
6505
|
}, r, {
|
|
6469
6506
|
ref: l,
|
|
6470
|
-
onPointerMove: V(e.onPointerMove, (
|
|
6471
|
-
|
|
6507
|
+
onPointerMove: V(e.onPointerMove, ($) => {
|
|
6508
|
+
$.pointerType !== "touch" && !d.current && !a.isPointerInTransitRef.current && (o.onTriggerEnter(), d.current = !0);
|
|
6472
6509
|
}),
|
|
6473
6510
|
onPointerLeave: V(e.onPointerLeave, () => {
|
|
6474
6511
|
o.onTriggerLeave(), d.current = !1;
|
|
@@ -6497,21 +6534,21 @@ const [Fn, Xh] = we("Tooltip", [
|
|
|
6497
6534
|
asChild: !0,
|
|
6498
6535
|
container: o
|
|
6499
6536
|
}, r)));
|
|
6500
|
-
}, Ht = "TooltipContent", n0 = /* @__PURE__ */
|
|
6537
|
+
}, Ht = "TooltipContent", n0 = /* @__PURE__ */ R((e, t) => {
|
|
6501
6538
|
const n = e0(Ht, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, i = qt(Ht, e.__scopeTooltip);
|
|
6502
6539
|
return /* @__PURE__ */ _(Se, {
|
|
6503
6540
|
present: r || i.open
|
|
6504
|
-
}, i.disableHoverableContent ? /* @__PURE__ */ _(hs,
|
|
6541
|
+
}, i.disableHoverableContent ? /* @__PURE__ */ _(hs, O({
|
|
6505
6542
|
side: o
|
|
6506
6543
|
}, a, {
|
|
6507
6544
|
ref: t
|
|
6508
|
-
})) : /* @__PURE__ */ _(r0,
|
|
6545
|
+
})) : /* @__PURE__ */ _(r0, O({
|
|
6509
6546
|
side: o
|
|
6510
6547
|
}, a, {
|
|
6511
6548
|
ref: t
|
|
6512
6549
|
})));
|
|
6513
|
-
}), r0 = /* @__PURE__ */
|
|
6514
|
-
const n = qt(Ht, e.__scopeTooltip), r = so(Ht, e.__scopeTooltip), o = I(null), a = ne(t, o), [i, s] = H(null), { trigger: l, onClose: u } = n, d = o.current, { onPointerInTransitChange: f } = r,
|
|
6550
|
+
}), r0 = /* @__PURE__ */ R((e, t) => {
|
|
6551
|
+
const n = qt(Ht, e.__scopeTooltip), r = so(Ht, e.__scopeTooltip), o = I(null), a = ne(t, o), [i, s] = H(null), { trigger: l, onClose: u } = n, d = o.current, { onPointerInTransitChange: f } = r, $ = B(() => {
|
|
6515
6552
|
s(null), f(!1);
|
|
6516
6553
|
}, [
|
|
6517
6554
|
f
|
|
@@ -6533,8 +6570,8 @@ const [Fn, Xh] = we("Tooltip", [
|
|
|
6533
6570
|
}, [
|
|
6534
6571
|
f
|
|
6535
6572
|
]);
|
|
6536
|
-
return W(() => () =>
|
|
6537
|
-
|
|
6573
|
+
return W(() => () => $(), [
|
|
6574
|
+
$
|
|
6538
6575
|
]), W(() => {
|
|
6539
6576
|
if (l && d) {
|
|
6540
6577
|
const g = (h) => p(h, d), b = (h) => p(h, l);
|
|
@@ -6546,7 +6583,7 @@ const [Fn, Xh] = we("Tooltip", [
|
|
|
6546
6583
|
l,
|
|
6547
6584
|
d,
|
|
6548
6585
|
p,
|
|
6549
|
-
|
|
6586
|
+
$
|
|
6550
6587
|
]), W(() => {
|
|
6551
6588
|
if (i) {
|
|
6552
6589
|
const g = (b) => {
|
|
@@ -6554,7 +6591,7 @@ const [Fn, Xh] = we("Tooltip", [
|
|
|
6554
6591
|
x: b.clientX,
|
|
6555
6592
|
y: b.clientY
|
|
6556
6593
|
}, v = (l == null ? void 0 : l.contains(h)) || (d == null ? void 0 : d.contains(h)), w = !d0(y, i);
|
|
6557
|
-
v ?
|
|
6594
|
+
v ? $() : w && ($(), u());
|
|
6558
6595
|
};
|
|
6559
6596
|
return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
|
|
6560
6597
|
}
|
|
@@ -6563,20 +6600,20 @@ const [Fn, Xh] = we("Tooltip", [
|
|
|
6563
6600
|
d,
|
|
6564
6601
|
i,
|
|
6565
6602
|
u,
|
|
6566
|
-
|
|
6567
|
-
]), /* @__PURE__ */ _(hs,
|
|
6603
|
+
$
|
|
6604
|
+
]), /* @__PURE__ */ _(hs, O({}, e, {
|
|
6568
6605
|
ref: a
|
|
6569
6606
|
}));
|
|
6570
6607
|
}), [o0, a0] = Fn(co, {
|
|
6571
6608
|
isInside: !1
|
|
6572
|
-
}), hs = /* @__PURE__ */
|
|
6609
|
+
}), hs = /* @__PURE__ */ R((e, t) => {
|
|
6573
6610
|
const { __scopeTooltip: n, children: r, "aria-label": o, onEscapeKeyDown: a, onPointerDownOutside: i, ...s } = e, l = qt(Ht, n), u = Nn(n), { onClose: d } = l;
|
|
6574
6611
|
return W(() => (document.addEventListener(kr, d), () => document.removeEventListener(kr, d)), [
|
|
6575
6612
|
d
|
|
6576
6613
|
]), W(() => {
|
|
6577
6614
|
if (l.trigger) {
|
|
6578
|
-
const f = (
|
|
6579
|
-
const p =
|
|
6615
|
+
const f = ($) => {
|
|
6616
|
+
const p = $.target;
|
|
6580
6617
|
p != null && p.contains(l.trigger) && d();
|
|
6581
6618
|
};
|
|
6582
6619
|
return window.addEventListener("scroll", f, {
|
|
@@ -6595,7 +6632,7 @@ const [Fn, Xh] = we("Tooltip", [
|
|
|
6595
6632
|
onPointerDownOutside: i,
|
|
6596
6633
|
onFocusOutside: (f) => f.preventDefault(),
|
|
6597
6634
|
onDismiss: d
|
|
6598
|
-
}, /* @__PURE__ */ _(rs,
|
|
6635
|
+
}, /* @__PURE__ */ _(rs, O({
|
|
6599
6636
|
"data-state": l.stateAttribute
|
|
6600
6637
|
}, u, s, {
|
|
6601
6638
|
ref: t,
|
|
@@ -6610,9 +6647,9 @@ const [Fn, Xh] = we("Tooltip", [
|
|
|
6610
6647
|
id: l.contentId,
|
|
6611
6648
|
role: "tooltip"
|
|
6612
6649
|
}, o || r))));
|
|
6613
|
-
}), i0 = "TooltipArrow", s0 = /* @__PURE__ */
|
|
6650
|
+
}), i0 = "TooltipArrow", s0 = /* @__PURE__ */ R((e, t) => {
|
|
6614
6651
|
const { __scopeTooltip: n, ...r } = e, o = Nn(n);
|
|
6615
|
-
return a0(i0, n).isInside ? null : /* @__PURE__ */ _(os,
|
|
6652
|
+
return a0(i0, n).isInside ? null : /* @__PURE__ */ _(os, O({}, o, r, {
|
|
6616
6653
|
ref: t
|
|
6617
6654
|
}));
|
|
6618
6655
|
});
|
|
@@ -6695,7 +6732,7 @@ function f0(e) {
|
|
|
6695
6732
|
}
|
|
6696
6733
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
6697
6734
|
}
|
|
6698
|
-
const p0 = qb, b0 = Zb,
|
|
6735
|
+
const p0 = qb, b0 = Zb, m0 = Jb, $0 = t0, g0 = n0, h0 = s0, v0 = k(g0)`
|
|
6699
6736
|
padding: ${c.sizing_200} ${c.sizing_200};
|
|
6700
6737
|
/* user-select: none; // TODO not sure about this */
|
|
6701
6738
|
background: ${c.color_background_black_standard};
|
|
@@ -6713,26 +6750,30 @@ function y0({
|
|
|
6713
6750
|
children: e,
|
|
6714
6751
|
...t
|
|
6715
6752
|
}) {
|
|
6716
|
-
return /* @__PURE__ */ E(
|
|
6753
|
+
return /* @__PURE__ */ E($0, {
|
|
6717
6754
|
children: /* @__PURE__ */ oe(v0, {
|
|
6718
6755
|
...t,
|
|
6719
6756
|
children: [e, /* @__PURE__ */ E(_0, {})]
|
|
6720
6757
|
})
|
|
6721
6758
|
});
|
|
6722
6759
|
}
|
|
6723
|
-
const x0 = k(
|
|
6760
|
+
const x0 = k(m0)`
|
|
6724
6761
|
appearance: none;
|
|
6725
6762
|
padding: 0;
|
|
6726
6763
|
border: none;
|
|
6727
6764
|
background-color: unset;
|
|
6728
6765
|
line-height: 0;
|
|
6729
|
-
`, w0 = ({
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6766
|
+
`, w0 = R((e, t) => {
|
|
6767
|
+
const {
|
|
6768
|
+
children: n,
|
|
6769
|
+
...r
|
|
6770
|
+
} = e;
|
|
6771
|
+
return /* @__PURE__ */ E(x0, {
|
|
6772
|
+
ref: t,
|
|
6773
|
+
type: "button",
|
|
6774
|
+
...r,
|
|
6775
|
+
children: n
|
|
6776
|
+
});
|
|
6736
6777
|
}), P0 = p0, T0 = b0, C0 = y0, E0 = k(w0)`
|
|
6737
6778
|
color: ${c.color_text_white_weak};
|
|
6738
6779
|
margin-block: auto;
|
|
@@ -6993,7 +7034,7 @@ _s = {
|
|
|
6993
7034
|
};
|
|
6994
7035
|
function O0(e) {
|
|
6995
7036
|
const t = I();
|
|
6996
|
-
let { value: n, textValue: r, minValue: o, maxValue: a, isDisabled: i, isReadOnly: s, isRequired: l, onIncrement: u, onIncrementPage: d, onDecrement: f, onDecrementPage:
|
|
7037
|
+
let { value: n, textValue: r, minValue: o, maxValue: a, isDisabled: i, isReadOnly: s, isRequired: l, onIncrement: u, onIncrementPage: d, onDecrement: f, onDecrementPage: $, onDecrementToMin: p, onIncrementToMax: g } = e;
|
|
6997
7038
|
const b = Qr(/* @__PURE__ */ R0(_s)), h = I(e);
|
|
6998
7039
|
h.current = e;
|
|
6999
7040
|
const y = () => clearTimeout(t.current);
|
|
@@ -7011,8 +7052,8 @@ function O0(e) {
|
|
|
7011
7052
|
u && (T.preventDefault(), u());
|
|
7012
7053
|
break;
|
|
7013
7054
|
case "PageDown":
|
|
7014
|
-
if (
|
|
7015
|
-
T.preventDefault(),
|
|
7055
|
+
if ($) {
|
|
7056
|
+
T.preventDefault(), $();
|
|
7016
7057
|
break;
|
|
7017
7058
|
}
|
|
7018
7059
|
case "ArrowDown":
|
|
@@ -7026,7 +7067,7 @@ function O0(e) {
|
|
|
7026
7067
|
g && (T.preventDefault(), g());
|
|
7027
7068
|
break;
|
|
7028
7069
|
}
|
|
7029
|
-
}, w = I(!1),
|
|
7070
|
+
}, w = I(!1), m = () => {
|
|
7030
7071
|
w.current = !0;
|
|
7031
7072
|
}, D = () => {
|
|
7032
7073
|
w.current = !1;
|
|
@@ -7073,7 +7114,7 @@ function O0(e) {
|
|
|
7073
7114
|
"aria-readonly": s || null,
|
|
7074
7115
|
"aria-required": l || null,
|
|
7075
7116
|
onKeyDown: v,
|
|
7076
|
-
onFocus:
|
|
7117
|
+
onFocus: m,
|
|
7077
7118
|
onBlur: D
|
|
7078
7119
|
},
|
|
7079
7120
|
incrementButtonProps: {
|
|
@@ -7083,7 +7124,7 @@ function O0(e) {
|
|
|
7083
7124
|
onPressEnd: () => {
|
|
7084
7125
|
y(), j();
|
|
7085
7126
|
},
|
|
7086
|
-
onFocus:
|
|
7127
|
+
onFocus: m,
|
|
7087
7128
|
onBlur: D
|
|
7088
7129
|
},
|
|
7089
7130
|
decrementButtonProps: {
|
|
@@ -7093,7 +7134,7 @@ function O0(e) {
|
|
|
7093
7134
|
onPressEnd: () => {
|
|
7094
7135
|
y(), j();
|
|
7095
7136
|
},
|
|
7096
|
-
onFocus:
|
|
7137
|
+
onFocus: m,
|
|
7097
7138
|
onBlur: D
|
|
7098
7139
|
}
|
|
7099
7140
|
};
|
|
@@ -7179,14 +7220,14 @@ bc = {
|
|
|
7179
7220
|
increase: (e) => `Pove\u0107aj ${e.fieldLabel}`,
|
|
7180
7221
|
numberField: "Polje broja"
|
|
7181
7222
|
};
|
|
7182
|
-
var
|
|
7183
|
-
|
|
7223
|
+
var mc = {};
|
|
7224
|
+
mc = {
|
|
7184
7225
|
decrease: (e) => `${e.fieldLabel} cs\xF6kkent\xE9se`,
|
|
7185
7226
|
increase: (e) => `${e.fieldLabel} n\xF6vel\xE9se`,
|
|
7186
7227
|
numberField: "Sz\xE1mmez\u0151"
|
|
7187
7228
|
};
|
|
7188
|
-
var
|
|
7189
|
-
|
|
7229
|
+
var $c = {};
|
|
7230
|
+
$c = {
|
|
7190
7231
|
decrease: (e) => `Riduci ${e.fieldLabel}`,
|
|
7191
7232
|
increase: (e) => `Aumenta ${e.fieldLabel}`,
|
|
7192
7233
|
numberField: "Campo numero"
|
|
@@ -7319,8 +7360,8 @@ tc = {
|
|
|
7319
7360
|
"fr-FR": fc,
|
|
7320
7361
|
"he-IL": pc,
|
|
7321
7362
|
"hr-HR": bc,
|
|
7322
|
-
"hu-HU":
|
|
7323
|
-
"it-IT":
|
|
7363
|
+
"hu-HU": mc,
|
|
7364
|
+
"it-IT": $c,
|
|
7324
7365
|
"ja-JP": gc,
|
|
7325
7366
|
"ko-KR": hc,
|
|
7326
7367
|
"lt-LT": vc,
|
|
@@ -7342,10 +7383,10 @@ tc = {
|
|
|
7342
7383
|
"zh-TW": Lc
|
|
7343
7384
|
};
|
|
7344
7385
|
function I0(e, t, n) {
|
|
7345
|
-
let { id: r, decrementAriaLabel: o, incrementAriaLabel: a, isDisabled: i, isReadOnly: s, isRequired: l, minValue: u, maxValue: d, autoFocus: f, validationState:
|
|
7346
|
-
}, onFocus: h, onFocusChange: y, onKeyDown: v, onKeyUp: w, description:
|
|
7386
|
+
let { id: r, decrementAriaLabel: o, incrementAriaLabel: a, isDisabled: i, isReadOnly: s, isRequired: l, minValue: u, maxValue: d, autoFocus: f, validationState: $, label: p, formatOptions: g, onBlur: b = () => {
|
|
7387
|
+
}, onFocus: h, onFocusChange: y, onKeyDown: v, onKeyUp: w, description: m, errorMessage: D, ...L } = e, { increment: C, incrementToMax: A, decrement: N, decrementToMin: j, numberValue: T, commit: K } = t;
|
|
7347
7388
|
const S = Qr(/* @__PURE__ */ D0(tc));
|
|
7348
|
-
let P = st(r), { focusProps:
|
|
7389
|
+
let P = st(r), { focusProps: X } = qr({
|
|
7349
7390
|
onBlur: () => {
|
|
7350
7391
|
K();
|
|
7351
7392
|
}
|
|
@@ -7376,8 +7417,8 @@ function I0(e, t, n) {
|
|
|
7376
7417
|
}, n);
|
|
7377
7418
|
let te = Lf(g), fe = le(() => te.resolvedOptions(), [
|
|
7378
7419
|
te
|
|
7379
|
-
]).maximumFractionDigits > 0,
|
|
7380
|
-
Ja() ?
|
|
7420
|
+
]).maximumFractionDigits > 0, me = isNaN(t.minValue) || t.minValue < 0, ge = "numeric";
|
|
7421
|
+
Ja() ? me ? ge = "text" : fe && (ge = "decimal") : Qa() && (me ? ge = "numeric" : fe && (ge = "decimal"));
|
|
7381
7422
|
let ze = (ye) => {
|
|
7382
7423
|
t.setInputValue(ye);
|
|
7383
7424
|
}, qe = Gt(e), { labelProps: Xe, inputProps: Ze, descriptionProps: ot, errorMessageProps: Re } = Bb({
|
|
@@ -7388,7 +7429,7 @@ function I0(e, t, n) {
|
|
|
7388
7429
|
isDisabled: i,
|
|
7389
7430
|
isReadOnly: s,
|
|
7390
7431
|
isRequired: l,
|
|
7391
|
-
validationState:
|
|
7432
|
+
validationState: $,
|
|
7392
7433
|
value: t.inputValue,
|
|
7393
7434
|
defaultValue: void 0,
|
|
7394
7435
|
autoComplete: "off",
|
|
@@ -7403,9 +7444,9 @@ function I0(e, t, n) {
|
|
|
7403
7444
|
onFocusChange: y,
|
|
7404
7445
|
onKeyDown: v,
|
|
7405
7446
|
onKeyUp: w,
|
|
7406
|
-
description:
|
|
7447
|
+
description: m,
|
|
7407
7448
|
errorMessage: D
|
|
7408
|
-
}, t, n), Pe = _e(J,
|
|
7449
|
+
}, t, n), Pe = _e(J, X, Ze, {
|
|
7409
7450
|
role: null,
|
|
7410
7451
|
"aria-roledescription": Gr() ? null : S.format("numberField"),
|
|
7411
7452
|
"aria-valuemax": null,
|
|
@@ -7447,7 +7488,7 @@ function I0(e, t, n) {
|
|
|
7447
7488
|
groupProps: {
|
|
7448
7489
|
role: "group",
|
|
7449
7490
|
"aria-disabled": i,
|
|
7450
|
-
"aria-invalid":
|
|
7491
|
+
"aria-invalid": $ === "invalid" ? "true" : void 0,
|
|
7451
7492
|
...Y
|
|
7452
7493
|
},
|
|
7453
7494
|
labelProps: Xe,
|
|
@@ -7459,7 +7500,7 @@ function I0(e, t, n) {
|
|
|
7459
7500
|
};
|
|
7460
7501
|
}
|
|
7461
7502
|
function A0(e) {
|
|
7462
|
-
let { minValue: t, maxValue: n, step: r, formatOptions: o, value: a, defaultValue: i, onChange: s, locale: l, isDisabled: u, isReadOnly: d } = e, [f,
|
|
7503
|
+
let { minValue: t, maxValue: n, step: r, formatOptions: o, value: a, defaultValue: i, onChange: s, locale: l, isDisabled: u, isReadOnly: d } = e, [f, $] = Ru(a, isNaN(i) ? NaN : i, s), [p, g] = H(() => isNaN(f) ? "" : new xr(l, o).format(f)), b = le(() => new Cf(l, o), [
|
|
7463
7504
|
l,
|
|
7464
7505
|
o
|
|
7465
7506
|
]), h = le(() => b.getNumberingSystem(p), [
|
|
@@ -7476,8 +7517,8 @@ function A0(e) {
|
|
|
7476
7517
|
y
|
|
7477
7518
|
]), w = B((G) => isNaN(G) || G === null ? "" : y.format(G), [
|
|
7478
7519
|
y
|
|
7479
|
-
]),
|
|
7480
|
-
v.style === "percent" && isNaN(r) && (
|
|
7520
|
+
]), m = isNaN(r) ? 1 : r;
|
|
7521
|
+
v.style === "percent" && isNaN(r) && (m = 0.01);
|
|
7481
7522
|
let D = I(f), L = I(l), C = I(o);
|
|
7482
7523
|
(!Object.is(f, D.current) || l !== L.current || o !== C.current) && (g(w(f)), D.current = f, L.current = l, C.current = o);
|
|
7483
7524
|
let A = le(() => b.parse(p), [
|
|
@@ -7487,7 +7528,7 @@ function A0(e) {
|
|
|
7487
7528
|
N.current = A;
|
|
7488
7529
|
let j = () => {
|
|
7489
7530
|
if (!p.length) {
|
|
7490
|
-
|
|
7531
|
+
$(NaN), g(a === void 0 ? "" : w(f));
|
|
7491
7532
|
return;
|
|
7492
7533
|
}
|
|
7493
7534
|
if (isNaN(N.current)) {
|
|
@@ -7495,39 +7536,39 @@ function A0(e) {
|
|
|
7495
7536
|
return;
|
|
7496
7537
|
}
|
|
7497
7538
|
let G;
|
|
7498
|
-
isNaN(r) ? G = Ou(N.current, t, n) : G = at(N.current, t, n, r), G = b.parse(w(G)),
|
|
7539
|
+
isNaN(r) ? G = Ou(N.current, t, n) : G = at(N.current, t, n, r), G = b.parse(w(G)), $(G), g(w(a === void 0 ? G : f));
|
|
7499
7540
|
}, T = (G, z) => {
|
|
7500
7541
|
let Y = N.current;
|
|
7501
7542
|
if (isNaN(Y)) {
|
|
7502
7543
|
let re = isNaN(z) ? 0 : z;
|
|
7503
|
-
return at(re, t, n,
|
|
7544
|
+
return at(re, t, n, m);
|
|
7504
7545
|
} else {
|
|
7505
|
-
let re = at(Y, t, n,
|
|
7506
|
-
return G === "+" && re > Y || G === "-" && re < Y ? re : at(ar(G, Y,
|
|
7546
|
+
let re = at(Y, t, n, m);
|
|
7547
|
+
return G === "+" && re > Y || G === "-" && re < Y ? re : at(ar(G, Y, m), t, n, m);
|
|
7507
7548
|
}
|
|
7508
7549
|
}, K = () => {
|
|
7509
7550
|
let G = T("+", t);
|
|
7510
|
-
G === f && g(w(G)),
|
|
7551
|
+
G === f && g(w(G)), $(G);
|
|
7511
7552
|
}, S = () => {
|
|
7512
7553
|
let G = T("-", n);
|
|
7513
|
-
G === f && g(w(G)),
|
|
7554
|
+
G === f && g(w(G)), $(G);
|
|
7514
7555
|
}, P = () => {
|
|
7515
|
-
n != null &&
|
|
7516
|
-
},
|
|
7517
|
-
t != null &&
|
|
7518
|
-
}, J = le(() => !u && !d && (isNaN(A) || isNaN(n) || at(A, t, n,
|
|
7556
|
+
n != null && $(at(n, t, n, m));
|
|
7557
|
+
}, X = () => {
|
|
7558
|
+
t != null && $(t);
|
|
7559
|
+
}, J = le(() => !u && !d && (isNaN(A) || isNaN(n) || at(A, t, n, m) > A || ar("+", A, m) <= n), [
|
|
7519
7560
|
u,
|
|
7520
7561
|
d,
|
|
7521
7562
|
t,
|
|
7522
7563
|
n,
|
|
7523
|
-
|
|
7564
|
+
m,
|
|
7524
7565
|
A
|
|
7525
|
-
]), de = le(() => !u && !d && (isNaN(A) || isNaN(t) || at(A, t, n,
|
|
7566
|
+
]), de = le(() => !u && !d && (isNaN(A) || isNaN(t) || at(A, t, n, m) < A || ar("-", A, m) >= t), [
|
|
7526
7567
|
u,
|
|
7527
7568
|
d,
|
|
7528
7569
|
t,
|
|
7529
7570
|
n,
|
|
7530
|
-
|
|
7571
|
+
m,
|
|
7531
7572
|
A
|
|
7532
7573
|
]);
|
|
7533
7574
|
return {
|
|
@@ -7535,7 +7576,7 @@ function A0(e) {
|
|
|
7535
7576
|
increment: K,
|
|
7536
7577
|
incrementToMax: P,
|
|
7537
7578
|
decrement: S,
|
|
7538
|
-
decrementToMin:
|
|
7579
|
+
decrementToMin: X,
|
|
7539
7580
|
canIncrement: J,
|
|
7540
7581
|
canDecrement: de,
|
|
7541
7582
|
minValue: t,
|
|
@@ -7658,7 +7699,7 @@ const F0 = k.div`
|
|
|
7658
7699
|
border-top-width: 0.5px;
|
|
7659
7700
|
margin-top: -0.5px;
|
|
7660
7701
|
grid-area: decrement;
|
|
7661
|
-
`, Nc =
|
|
7702
|
+
`, Nc = R((e, t) => {
|
|
7662
7703
|
const {
|
|
7663
7704
|
description: n,
|
|
7664
7705
|
disabled: r,
|
|
@@ -7670,21 +7711,21 @@ const F0 = k.div`
|
|
|
7670
7711
|
validationState: u,
|
|
7671
7712
|
placeholder: d = "Enter number...",
|
|
7672
7713
|
showStepper: f = !0,
|
|
7673
|
-
min:
|
|
7714
|
+
min: $,
|
|
7674
7715
|
max: p,
|
|
7675
7716
|
...g
|
|
7676
|
-
} = e, b =
|
|
7717
|
+
} = e, b = mt(), h = r || b, y = Rt(t), v = A0({
|
|
7677
7718
|
...g,
|
|
7678
7719
|
isDisabled: h,
|
|
7679
7720
|
isReadOnly: o,
|
|
7680
7721
|
isRequired: a,
|
|
7681
|
-
minValue:
|
|
7722
|
+
minValue: $,
|
|
7682
7723
|
maxValue: p,
|
|
7683
7724
|
placeholder: d,
|
|
7684
7725
|
locale: "en-US"
|
|
7685
7726
|
}), {
|
|
7686
7727
|
labelProps: w,
|
|
7687
|
-
groupProps:
|
|
7728
|
+
groupProps: m,
|
|
7688
7729
|
inputProps: D,
|
|
7689
7730
|
incrementButtonProps: L,
|
|
7690
7731
|
decrementButtonProps: C,
|
|
@@ -7695,20 +7736,20 @@ const F0 = k.div`
|
|
|
7695
7736
|
isDisabled: h,
|
|
7696
7737
|
isReadOnly: o,
|
|
7697
7738
|
isRequired: a,
|
|
7698
|
-
minValue:
|
|
7739
|
+
minValue: $,
|
|
7699
7740
|
maxValue: p,
|
|
7700
7741
|
placeholder: d,
|
|
7701
7742
|
label: s
|
|
7702
7743
|
}, v, y);
|
|
7703
7744
|
let j = null;
|
|
7704
|
-
return typeof s == "string" ? j = /* @__PURE__ */ E(
|
|
7745
|
+
return typeof s == "string" ? j = /* @__PURE__ */ E($t, {
|
|
7705
7746
|
...w,
|
|
7706
7747
|
children: s
|
|
7707
7748
|
}) : dt(s) && (j = pt(s, {
|
|
7708
7749
|
...w
|
|
7709
7750
|
})), /* @__PURE__ */ oe(In, {
|
|
7710
7751
|
children: [j, f ? /* @__PURE__ */ oe(F0, {
|
|
7711
|
-
|
|
7752
|
+
...m,
|
|
7712
7753
|
children: [/* @__PURE__ */ E(N0, {
|
|
7713
7754
|
...D,
|
|
7714
7755
|
paddingSize: i,
|
|
@@ -7736,7 +7777,7 @@ const F0 = k.div`
|
|
|
7736
7777
|
});
|
|
7737
7778
|
});
|
|
7738
7779
|
Nc.displayName = "NumberInput";
|
|
7739
|
-
const Mc =
|
|
7780
|
+
const Mc = R((e, t) => {
|
|
7740
7781
|
const {
|
|
7741
7782
|
errorMessage: n,
|
|
7742
7783
|
description: r,
|
|
@@ -7748,7 +7789,7 @@ const Mc = O((e, t) => {
|
|
|
7748
7789
|
validationState: u,
|
|
7749
7790
|
placeholder: d = "Enter text...",
|
|
7750
7791
|
...f
|
|
7751
|
-
} = e,
|
|
7792
|
+
} = e, $ = Rt(t), p = mt(), g = o || p, {
|
|
7752
7793
|
labelProps: b,
|
|
7753
7794
|
descriptionProps: h,
|
|
7754
7795
|
inputProps: y,
|
|
@@ -7761,9 +7802,9 @@ const Mc = O((e, t) => {
|
|
|
7761
7802
|
placeholder: d,
|
|
7762
7803
|
label: l,
|
|
7763
7804
|
inputElementType: "textarea"
|
|
7764
|
-
},
|
|
7805
|
+
}, $);
|
|
7765
7806
|
let w = null;
|
|
7766
|
-
return typeof l == "string" ? w = /* @__PURE__ */ E(
|
|
7807
|
+
return typeof l == "string" ? w = /* @__PURE__ */ E($t, {
|
|
7767
7808
|
...b,
|
|
7768
7809
|
children: l
|
|
7769
7810
|
}) : dt(l) && (w = pt(l, {
|
|
@@ -7773,7 +7814,7 @@ const Mc = O((e, t) => {
|
|
|
7773
7814
|
as: "textarea",
|
|
7774
7815
|
"data-state": u,
|
|
7775
7816
|
paddingSize: s,
|
|
7776
|
-
ref:
|
|
7817
|
+
ref: $,
|
|
7777
7818
|
placeholder: "Enter...",
|
|
7778
7819
|
...y
|
|
7779
7820
|
}), n && /* @__PURE__ */ oe(An, {
|
|
@@ -7806,8 +7847,8 @@ function Zh({
|
|
|
7806
7847
|
descriptionProps: u,
|
|
7807
7848
|
errorMessageProps: d,
|
|
7808
7849
|
fieldProps: f,
|
|
7809
|
-
labelProps:
|
|
7810
|
-
} =
|
|
7850
|
+
labelProps: $
|
|
7851
|
+
} = ms({
|
|
7811
7852
|
errorMessage: n,
|
|
7812
7853
|
label: t,
|
|
7813
7854
|
description: r,
|
|
@@ -7818,8 +7859,8 @@ function Zh({
|
|
|
7818
7859
|
return /* @__PURE__ */ E(lo.Provider, {
|
|
7819
7860
|
value: f,
|
|
7820
7861
|
children: /* @__PURE__ */ oe(In, {
|
|
7821
|
-
children: [/* @__PURE__ */ oe(
|
|
7822
|
-
|
|
7862
|
+
children: [/* @__PURE__ */ oe($t, {
|
|
7863
|
+
...$,
|
|
7823
7864
|
display: "flex",
|
|
7824
7865
|
children: [t, o ? /* @__PURE__ */ E(Mn, {
|
|
7825
7866
|
icon: a,
|
|
@@ -7835,7 +7876,7 @@ function Zh({
|
|
|
7835
7876
|
})
|
|
7836
7877
|
});
|
|
7837
7878
|
}
|
|
7838
|
-
const B0 =
|
|
7879
|
+
const B0 = R((e, t) => {
|
|
7839
7880
|
const {
|
|
7840
7881
|
label: n,
|
|
7841
7882
|
tooltipContent: r,
|
|
@@ -7843,9 +7884,9 @@ const B0 = O((e, t) => {
|
|
|
7843
7884
|
value: a,
|
|
7844
7885
|
...i
|
|
7845
7886
|
} = e;
|
|
7846
|
-
return /* @__PURE__ */ E(
|
|
7887
|
+
return /* @__PURE__ */ E($s, {
|
|
7847
7888
|
ref: t,
|
|
7848
|
-
label: /* @__PURE__ */ oe(
|
|
7889
|
+
label: /* @__PURE__ */ oe($t, {
|
|
7849
7890
|
children: [n, r ? /* @__PURE__ */ E(Mn, {
|
|
7850
7891
|
icon: o,
|
|
7851
7892
|
children: r
|
|
@@ -7855,7 +7896,7 @@ const B0 = O((e, t) => {
|
|
|
7855
7896
|
});
|
|
7856
7897
|
});
|
|
7857
7898
|
B0.displayName = "TextFormControl";
|
|
7858
|
-
const V0 =
|
|
7899
|
+
const V0 = R((e, t) => {
|
|
7859
7900
|
const {
|
|
7860
7901
|
label: n,
|
|
7861
7902
|
tooltipContent: r,
|
|
@@ -7864,7 +7905,7 @@ const V0 = O((e, t) => {
|
|
|
7864
7905
|
} = e;
|
|
7865
7906
|
return /* @__PURE__ */ E(Mc, {
|
|
7866
7907
|
ref: t,
|
|
7867
|
-
label: /* @__PURE__ */ oe(
|
|
7908
|
+
label: /* @__PURE__ */ oe($t, {
|
|
7868
7909
|
children: [n, r ? /* @__PURE__ */ E(Mn, {
|
|
7869
7910
|
icon: o,
|
|
7870
7911
|
children: r
|
|
@@ -7874,7 +7915,7 @@ const V0 = O((e, t) => {
|
|
|
7874
7915
|
});
|
|
7875
7916
|
});
|
|
7876
7917
|
V0.displayName = "TextAreaFormControl";
|
|
7877
|
-
const W0 =
|
|
7918
|
+
const W0 = R((e, t) => {
|
|
7878
7919
|
const {
|
|
7879
7920
|
label: n,
|
|
7880
7921
|
tooltipContent: r,
|
|
@@ -7883,7 +7924,7 @@ const W0 = O((e, t) => {
|
|
|
7883
7924
|
} = e;
|
|
7884
7925
|
return /* @__PURE__ */ E(Nc, {
|
|
7885
7926
|
ref: t,
|
|
7886
|
-
label: /* @__PURE__ */ oe(
|
|
7927
|
+
label: /* @__PURE__ */ oe($t, {
|
|
7887
7928
|
children: [n, r ? /* @__PURE__ */ E(Mn, {
|
|
7888
7929
|
icon: o,
|
|
7889
7930
|
children: r
|
|
@@ -7894,7 +7935,7 @@ const W0 = O((e, t) => {
|
|
|
7894
7935
|
});
|
|
7895
7936
|
W0.displayName = "NumberFormControl";
|
|
7896
7937
|
function zc(e) {
|
|
7897
|
-
const t =
|
|
7938
|
+
const t = mt(), n = e || t;
|
|
7898
7939
|
return {
|
|
7899
7940
|
...uo(),
|
|
7900
7941
|
disabled: n
|
|
@@ -8034,7 +8075,7 @@ const fo = k.h1`
|
|
|
8034
8075
|
small: q0,
|
|
8035
8076
|
medium: Y0,
|
|
8036
8077
|
large: G0
|
|
8037
|
-
}, Z0 =
|
|
8078
|
+
}, Z0 = R((e, t) => {
|
|
8038
8079
|
const {
|
|
8039
8080
|
children: n,
|
|
8040
8081
|
as: r,
|
|
@@ -8092,7 +8133,7 @@ const J0 = {
|
|
|
8092
8133
|
line-height: 0;
|
|
8093
8134
|
font-size: ${c.font_size_200};
|
|
8094
8135
|
}
|
|
8095
|
-
`,
|
|
8136
|
+
`, em = k(zn)`
|
|
8096
8137
|
background: ${c.color_fill_primary_enabled};
|
|
8097
8138
|
color: ${c.color_white};
|
|
8098
8139
|
|
|
@@ -8109,7 +8150,7 @@ const J0 = {
|
|
|
8109
8150
|
background: ${c.color_fill_primary_disabled};
|
|
8110
8151
|
color: ${c.color_fill_inverse_pressed};
|
|
8111
8152
|
}
|
|
8112
|
-
`,
|
|
8153
|
+
`, tm = k(zn)`
|
|
8113
8154
|
background: ${c.color_fill_secondary_enabled};
|
|
8114
8155
|
color: ${c.color_fill_primary_enabled};
|
|
8115
8156
|
|
|
@@ -8126,7 +8167,7 @@ const J0 = {
|
|
|
8126
8167
|
&:disabled {
|
|
8127
8168
|
background: ${c.color_fill_secondary_disabled};
|
|
8128
8169
|
}
|
|
8129
|
-
`,
|
|
8170
|
+
`, nm = k(zn)`
|
|
8130
8171
|
background: ${c.color_fill_danger_enabled};
|
|
8131
8172
|
color: ${c.color_white};
|
|
8132
8173
|
|
|
@@ -8143,7 +8184,7 @@ const J0 = {
|
|
|
8143
8184
|
&:disabled {
|
|
8144
8185
|
background: ${c.color_fill_danger_disabled};
|
|
8145
8186
|
}
|
|
8146
|
-
`,
|
|
8187
|
+
`, rm = k(zn)`
|
|
8147
8188
|
background: ${c.color_white};
|
|
8148
8189
|
|
|
8149
8190
|
&:hover {
|
|
@@ -8157,12 +8198,12 @@ const J0 = {
|
|
|
8157
8198
|
&:disabled {
|
|
8158
8199
|
background: ${c.color_fill_inverse_disabled};
|
|
8159
8200
|
}
|
|
8160
|
-
`,
|
|
8161
|
-
primary:
|
|
8162
|
-
secondary:
|
|
8163
|
-
danger:
|
|
8164
|
-
inverse:
|
|
8165
|
-
},
|
|
8201
|
+
`, om = {
|
|
8202
|
+
primary: em,
|
|
8203
|
+
secondary: tm,
|
|
8204
|
+
danger: nm,
|
|
8205
|
+
inverse: rm
|
|
8206
|
+
}, am = R((e, t) => {
|
|
8166
8207
|
const n = Rt(t), {
|
|
8167
8208
|
label: r,
|
|
8168
8209
|
size: o = "small",
|
|
@@ -8174,7 +8215,7 @@ const J0 = {
|
|
|
8174
8215
|
children: d,
|
|
8175
8216
|
...f
|
|
8176
8217
|
} = e, {
|
|
8177
|
-
buttonProps:
|
|
8218
|
+
buttonProps: $,
|
|
8178
8219
|
isPressed: p
|
|
8179
8220
|
} = ro(
|
|
8180
8221
|
{
|
|
@@ -8189,17 +8230,17 @@ const J0 = {
|
|
|
8189
8230
|
focusProps: b
|
|
8190
8231
|
} = Pn({
|
|
8191
8232
|
autoFocus: u
|
|
8192
|
-
}), v = [g ? "focused" : void 0, p ? "pressed" : void 0].filter(Boolean).join(" "), w =
|
|
8233
|
+
}), v = [g ? "focused" : void 0, p ? "pressed" : void 0].filter(Boolean).join(" "), w = om[a], m = Q0[i], D = J0[o];
|
|
8193
8234
|
return /* @__PURE__ */ E(w, {
|
|
8194
8235
|
ref: n,
|
|
8195
8236
|
"data-state": v,
|
|
8196
8237
|
shape: i,
|
|
8197
8238
|
size: o,
|
|
8198
|
-
|
|
8239
|
+
...$,
|
|
8199
8240
|
...b,
|
|
8200
8241
|
style: {
|
|
8201
8242
|
"--icon-button-size": D,
|
|
8202
|
-
"--icon-button-border-radius":
|
|
8243
|
+
"--icon-button-border-radius": m
|
|
8203
8244
|
},
|
|
8204
8245
|
children: /* @__PURE__ */ E(Kr, {
|
|
8205
8246
|
label: r,
|
|
@@ -8207,18 +8248,18 @@ const J0 = {
|
|
|
8207
8248
|
})
|
|
8208
8249
|
});
|
|
8209
8250
|
});
|
|
8210
|
-
|
|
8211
|
-
const Rr = "horizontal",
|
|
8251
|
+
am.displayName = "Button";
|
|
8252
|
+
const Rr = "horizontal", im = [
|
|
8212
8253
|
"horizontal",
|
|
8213
8254
|
"vertical"
|
|
8214
|
-
], Bc = /* @__PURE__ */
|
|
8255
|
+
], Bc = /* @__PURE__ */ R((e, t) => {
|
|
8215
8256
|
const { decorative: n, orientation: r = Rr, ...o } = e, a = Vc(r) ? r : Rr, s = n ? {
|
|
8216
8257
|
role: "none"
|
|
8217
8258
|
} : {
|
|
8218
8259
|
"aria-orientation": a === "vertical" ? a : void 0,
|
|
8219
8260
|
role: "separator"
|
|
8220
8261
|
};
|
|
8221
|
-
return /* @__PURE__ */ _(U.div,
|
|
8262
|
+
return /* @__PURE__ */ _(U.div, O({
|
|
8222
8263
|
"data-orientation": a
|
|
8223
8264
|
}, s, o, {
|
|
8224
8265
|
ref: t
|
|
@@ -8227,10 +8268,10 @@ const Rr = "horizontal", i$ = [
|
|
|
8227
8268
|
Bc.propTypes = {
|
|
8228
8269
|
orientation(e, t, n) {
|
|
8229
8270
|
const r = e[t], o = String(r);
|
|
8230
|
-
return r && !Vc(r) ? new Error(
|
|
8271
|
+
return r && !Vc(r) ? new Error(sm(o, n)) : null;
|
|
8231
8272
|
}
|
|
8232
8273
|
};
|
|
8233
|
-
function
|
|
8274
|
+
function sm(e, t) {
|
|
8234
8275
|
return `Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:
|
|
8235
8276
|
- horizontal
|
|
8236
8277
|
- vertical
|
|
@@ -8238,9 +8279,9 @@ function s$(e, t) {
|
|
|
8238
8279
|
Defaulting to \`${Rr}\`.`;
|
|
8239
8280
|
}
|
|
8240
8281
|
function Vc(e) {
|
|
8241
|
-
return
|
|
8282
|
+
return im.includes(e);
|
|
8242
8283
|
}
|
|
8243
|
-
const
|
|
8284
|
+
const cm = Bc;
|
|
8244
8285
|
function po(e) {
|
|
8245
8286
|
const t = e + "CollectionProvider", [n, r] = we(t), [o, a] = n(t, {
|
|
8246
8287
|
collectionRef: {
|
|
@@ -8248,36 +8289,36 @@ function po(e) {
|
|
|
8248
8289
|
},
|
|
8249
8290
|
itemMap: /* @__PURE__ */ new Map()
|
|
8250
8291
|
}), i = (p) => {
|
|
8251
|
-
const { scope: g, children: b } = p, h =
|
|
8252
|
-
return /* @__PURE__ */
|
|
8292
|
+
const { scope: g, children: b } = p, h = $e.useRef(null), y = $e.useRef(/* @__PURE__ */ new Map()).current;
|
|
8293
|
+
return /* @__PURE__ */ $e.createElement(o, {
|
|
8253
8294
|
scope: g,
|
|
8254
8295
|
itemMap: y,
|
|
8255
8296
|
collectionRef: h
|
|
8256
8297
|
}, b);
|
|
8257
|
-
}, s = e + "CollectionSlot", l = /* @__PURE__ */
|
|
8298
|
+
}, s = e + "CollectionSlot", l = /* @__PURE__ */ $e.forwardRef((p, g) => {
|
|
8258
8299
|
const { scope: b, children: h } = p, y = a(s, b), v = ne(g, y.collectionRef);
|
|
8259
|
-
return /* @__PURE__ */
|
|
8300
|
+
return /* @__PURE__ */ $e.createElement(ut, {
|
|
8260
8301
|
ref: v
|
|
8261
8302
|
}, h);
|
|
8262
|
-
}), u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = /* @__PURE__ */
|
|
8263
|
-
const { scope: b, children: h, ...y } = p, v =
|
|
8264
|
-
return
|
|
8303
|
+
}), u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = /* @__PURE__ */ $e.forwardRef((p, g) => {
|
|
8304
|
+
const { scope: b, children: h, ...y } = p, v = $e.useRef(null), w = ne(g, v), m = a(u, b);
|
|
8305
|
+
return $e.useEffect(() => (m.itemMap.set(v, {
|
|
8265
8306
|
ref: v,
|
|
8266
8307
|
...y
|
|
8267
|
-
}), () => void
|
|
8308
|
+
}), () => void m.itemMap.delete(v))), /* @__PURE__ */ $e.createElement(ut, {
|
|
8268
8309
|
[d]: "",
|
|
8269
8310
|
ref: w
|
|
8270
8311
|
}, h);
|
|
8271
8312
|
});
|
|
8272
|
-
function
|
|
8313
|
+
function $(p) {
|
|
8273
8314
|
const g = a(e + "CollectionConsumer", p);
|
|
8274
|
-
return
|
|
8315
|
+
return $e.useCallback(() => {
|
|
8275
8316
|
const h = g.collectionRef.current;
|
|
8276
8317
|
if (!h)
|
|
8277
8318
|
return [];
|
|
8278
8319
|
const y = Array.from(h.querySelectorAll(`[${d}]`));
|
|
8279
8320
|
return Array.from(g.itemMap.values()).sort(
|
|
8280
|
-
(
|
|
8321
|
+
(m, D) => y.indexOf(m.ref.current) - y.indexOf(D.ref.current)
|
|
8281
8322
|
);
|
|
8282
8323
|
}, [
|
|
8283
8324
|
g.collectionRef,
|
|
@@ -8290,17 +8331,17 @@ function po(e) {
|
|
|
8290
8331
|
Slot: l,
|
|
8291
8332
|
ItemSlot: f
|
|
8292
8333
|
},
|
|
8293
|
-
|
|
8334
|
+
$,
|
|
8294
8335
|
r
|
|
8295
8336
|
];
|
|
8296
8337
|
}
|
|
8297
|
-
const Wc = "ToastProvider", [bo,
|
|
8298
|
-
|
|
8299
|
-
]), [
|
|
8300
|
-
const { __scopeToast: t, label: n = "Notification", duration: r = 5e3, swipeDirection: o = "right", swipeThreshold: a = 50, children: i } = e, [s, l] = H(null), [u, d] = H(0), f = I(!1),
|
|
8338
|
+
const Wc = "ToastProvider", [bo, lm, dm] = po("Toast"), [Hc, Qh] = we("Toast", [
|
|
8339
|
+
dm
|
|
8340
|
+
]), [um, Bn] = Hc(Wc), Kc = (e) => {
|
|
8341
|
+
const { __scopeToast: t, label: n = "Notification", duration: r = 5e3, swipeDirection: o = "right", swipeThreshold: a = 50, children: i } = e, [s, l] = H(null), [u, d] = H(0), f = I(!1), $ = I(!1);
|
|
8301
8342
|
return /* @__PURE__ */ _(bo.Provider, {
|
|
8302
8343
|
scope: t
|
|
8303
|
-
}, /* @__PURE__ */ _(
|
|
8344
|
+
}, /* @__PURE__ */ _(um, {
|
|
8304
8345
|
scope: t,
|
|
8305
8346
|
label: n,
|
|
8306
8347
|
duration: r,
|
|
@@ -8322,7 +8363,7 @@ const Wc = "ToastProvider", [bo, l$, d$] = po("Toast"), [Hc, Qh] = we("Toast", [
|
|
|
8322
8363
|
[]
|
|
8323
8364
|
),
|
|
8324
8365
|
isFocusedToastEscapeKeyDownRef: f,
|
|
8325
|
-
isClosePausedRef:
|
|
8366
|
+
isClosePausedRef: $
|
|
8326
8367
|
}, i));
|
|
8327
8368
|
};
|
|
8328
8369
|
Kc.propTypes = {
|
|
@@ -8334,15 +8375,15 @@ Kc.propTypes = {
|
|
|
8334
8375
|
return null;
|
|
8335
8376
|
}
|
|
8336
8377
|
};
|
|
8337
|
-
const
|
|
8378
|
+
const fm = "ToastViewport", pm = [
|
|
8338
8379
|
"F8"
|
|
8339
|
-
], Or = "toast.viewportPause", Dr = "toast.viewportResume",
|
|
8340
|
-
const { __scopeToast: n, hotkey: r =
|
|
8380
|
+
], Or = "toast.viewportPause", Dr = "toast.viewportResume", bm = /* @__PURE__ */ R((e, t) => {
|
|
8381
|
+
const { __scopeToast: n, hotkey: r = pm, label: o = "Notifications ({hotkey})", ...a } = e, i = Bn(fm, n), s = lm(n), l = I(null), u = I(null), d = I(null), f = I(null), $ = ne(t, f, i.onViewportChange), p = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), g = i.toastCount > 0;
|
|
8341
8382
|
W(() => {
|
|
8342
8383
|
const h = (y) => {
|
|
8343
8384
|
var v;
|
|
8344
8385
|
r.every(
|
|
8345
|
-
(
|
|
8386
|
+
(m) => y[m] || y.code === m
|
|
8346
8387
|
) && ((v = f.current) === null || v === void 0 || v.focus());
|
|
8347
8388
|
};
|
|
8348
8389
|
return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
|
|
@@ -8361,13 +8402,13 @@ const f$ = "ToastViewport", p$ = [
|
|
|
8361
8402
|
const L = new CustomEvent(Dr);
|
|
8362
8403
|
y.dispatchEvent(L), i.isClosePausedRef.current = !1;
|
|
8363
8404
|
}
|
|
8364
|
-
},
|
|
8405
|
+
}, m = (L) => {
|
|
8365
8406
|
!h.contains(L.relatedTarget) && w();
|
|
8366
8407
|
}, D = () => {
|
|
8367
8408
|
h.contains(document.activeElement) || w();
|
|
8368
8409
|
};
|
|
8369
|
-
return h.addEventListener("focusin", v), h.addEventListener("focusout",
|
|
8370
|
-
h.removeEventListener("focusin", v), h.removeEventListener("focusout",
|
|
8410
|
+
return h.addEventListener("focusin", v), h.addEventListener("focusout", m), h.addEventListener("pointermove", v), h.addEventListener("pointerleave", D), window.addEventListener("blur", v), window.addEventListener("focus", w), () => {
|
|
8411
|
+
h.removeEventListener("focusin", v), h.removeEventListener("focusout", m), h.removeEventListener("pointermove", v), h.removeEventListener("pointerleave", D), window.removeEventListener("blur", v), window.removeEventListener("focus", w);
|
|
8371
8412
|
};
|
|
8372
8413
|
}
|
|
8373
8414
|
}, [
|
|
@@ -8376,9 +8417,9 @@ const f$ = "ToastViewport", p$ = [
|
|
|
8376
8417
|
]);
|
|
8377
8418
|
const b = B(({ tabbingDirection: h }) => {
|
|
8378
8419
|
const v = s().map((w) => {
|
|
8379
|
-
const
|
|
8380
|
-
|
|
8381
|
-
...
|
|
8420
|
+
const m = w.ref.current, D = [
|
|
8421
|
+
m,
|
|
8422
|
+
...km(m)
|
|
8382
8423
|
];
|
|
8383
8424
|
return h === "forwards" ? D : D.reverse();
|
|
8384
8425
|
});
|
|
@@ -8434,10 +8475,10 @@ const f$ = "ToastViewport", p$ = [
|
|
|
8434
8475
|
}
|
|
8435
8476
|
}), /* @__PURE__ */ _(bo.Slot, {
|
|
8436
8477
|
scope: n
|
|
8437
|
-
}, /* @__PURE__ */ _(U.ol,
|
|
8478
|
+
}, /* @__PURE__ */ _(U.ol, O({
|
|
8438
8479
|
tabIndex: -1
|
|
8439
8480
|
}, a, {
|
|
8440
|
-
ref:
|
|
8481
|
+
ref: $
|
|
8441
8482
|
}))), g && /* @__PURE__ */ _(la, {
|
|
8442
8483
|
ref: d,
|
|
8443
8484
|
onFocusFromOutsideViewport: () => {
|
|
@@ -8447,9 +8488,9 @@ const f$ = "ToastViewport", p$ = [
|
|
|
8447
8488
|
sr(h);
|
|
8448
8489
|
}
|
|
8449
8490
|
}));
|
|
8450
|
-
}),
|
|
8451
|
-
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, a = Bn(
|
|
8452
|
-
return /* @__PURE__ */ _(wn,
|
|
8491
|
+
}), mm = "ToastFocusProxy", la = /* @__PURE__ */ R((e, t) => {
|
|
8492
|
+
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, a = Bn(mm, n);
|
|
8493
|
+
return /* @__PURE__ */ _(wn, O({
|
|
8453
8494
|
"aria-hidden": !0,
|
|
8454
8495
|
tabIndex: 0
|
|
8455
8496
|
}, o, {
|
|
@@ -8463,7 +8504,7 @@ const f$ = "ToastViewport", p$ = [
|
|
|
8463
8504
|
!((s = a.viewport) !== null && s !== void 0 && s.contains(l)) && r();
|
|
8464
8505
|
}
|
|
8465
8506
|
}));
|
|
8466
|
-
}), Vn = "Toast", m
|
|
8507
|
+
}), Vn = "Toast", $m = "toast.swipeStart", gm = "toast.swipeMove", hm = "toast.swipeCancel", vm = "toast.swipeEnd", _m = /* @__PURE__ */ R((e, t) => {
|
|
8467
8508
|
const { forceMount: n, open: r, defaultOpen: o, onOpenChange: a, ...i } = e, [s = !0, l] = Fe({
|
|
8468
8509
|
prop: r,
|
|
8469
8510
|
defaultProp: o,
|
|
@@ -8471,7 +8512,7 @@ const f$ = "ToastViewport", p$ = [
|
|
|
8471
8512
|
});
|
|
8472
8513
|
return /* @__PURE__ */ _(Se, {
|
|
8473
8514
|
present: n || s
|
|
8474
|
-
}, /* @__PURE__ */ _(Uc,
|
|
8515
|
+
}, /* @__PURE__ */ _(Uc, O({
|
|
8475
8516
|
open: s
|
|
8476
8517
|
}, i, {
|
|
8477
8518
|
ref: t,
|
|
@@ -8493,14 +8534,14 @@ const f$ = "ToastViewport", p$ = [
|
|
|
8493
8534
|
u.currentTarget.setAttribute("data-swipe", "end"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), u.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${d}px`), u.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${f}px`), l(!1);
|
|
8494
8535
|
})
|
|
8495
8536
|
})));
|
|
8496
|
-
}), [
|
|
8537
|
+
}), [ym, xm] = Hc(Vn, {
|
|
8497
8538
|
onClose() {
|
|
8498
8539
|
}
|
|
8499
|
-
}), Uc = /* @__PURE__ */
|
|
8500
|
-
const { __scopeToast: n, type: r = "foreground", duration: o, open: a, onClose: i, onEscapeKeyDown: s, onPause: l, onResume: u, onSwipeStart: d, onSwipeMove: f, onSwipeCancel:
|
|
8540
|
+
}), Uc = /* @__PURE__ */ R((e, t) => {
|
|
8541
|
+
const { __scopeToast: n, type: r = "foreground", duration: o, open: a, onClose: i, onEscapeKeyDown: s, onPause: l, onResume: u, onSwipeStart: d, onSwipeMove: f, onSwipeCancel: $, onSwipeEnd: p, ...g } = e, b = Bn(Vn, n), [h, y] = H(null), v = ne(
|
|
8501
8542
|
t,
|
|
8502
8543
|
(P) => y(P)
|
|
8503
|
-
), w = I(null),
|
|
8544
|
+
), w = I(null), m = I(null), D = o || b.duration, L = I(0), C = I(D), A = I(0), { onToastAdd: N, onToastRemove: j } = b, T = xe(() => {
|
|
8504
8545
|
var P;
|
|
8505
8546
|
(h == null ? void 0 : h.contains(document.activeElement)) && ((P = b.viewport) === null || P === void 0 || P.focus()), i();
|
|
8506
8547
|
}), K = B((P) => {
|
|
@@ -8511,14 +8552,14 @@ const f$ = "ToastViewport", p$ = [
|
|
|
8511
8552
|
W(() => {
|
|
8512
8553
|
const P = b.viewport;
|
|
8513
8554
|
if (P) {
|
|
8514
|
-
const
|
|
8555
|
+
const X = () => {
|
|
8515
8556
|
K(C.current), u == null || u();
|
|
8516
8557
|
}, J = () => {
|
|
8517
8558
|
const de = new Date().getTime() - L.current;
|
|
8518
8559
|
C.current = C.current - de, window.clearTimeout(A.current), l == null || l();
|
|
8519
8560
|
};
|
|
8520
|
-
return P.addEventListener(Or, J), P.addEventListener(Dr,
|
|
8521
|
-
P.removeEventListener(Or, J), P.removeEventListener(Dr,
|
|
8561
|
+
return P.addEventListener(Or, J), P.addEventListener(Dr, X), () => {
|
|
8562
|
+
P.removeEventListener(Or, J), P.removeEventListener(Dr, X);
|
|
8522
8563
|
};
|
|
8523
8564
|
}
|
|
8524
8565
|
}, [
|
|
@@ -8541,12 +8582,12 @@ const f$ = "ToastViewport", p$ = [
|
|
|
8541
8582
|
const S = le(() => h ? qc(h) : null, [
|
|
8542
8583
|
h
|
|
8543
8584
|
]);
|
|
8544
|
-
return b.viewport ? /* @__PURE__ */ _(nt, null, S && /* @__PURE__ */ _(
|
|
8585
|
+
return b.viewport ? /* @__PURE__ */ _(nt, null, S && /* @__PURE__ */ _(wm, {
|
|
8545
8586
|
__scopeToast: n,
|
|
8546
8587
|
role: "status",
|
|
8547
8588
|
"aria-live": r === "foreground" ? "assertive" : "polite",
|
|
8548
8589
|
"aria-atomic": !0
|
|
8549
|
-
}, S), /* @__PURE__ */ _(
|
|
8590
|
+
}, S), /* @__PURE__ */ _(ym, {
|
|
8550
8591
|
scope: n,
|
|
8551
8592
|
onClose: T
|
|
8552
8593
|
}, /* @__PURE__ */ Lr(/* @__PURE__ */ _(bo.ItemSlot, {
|
|
@@ -8556,7 +8597,7 @@ const f$ = "ToastViewport", p$ = [
|
|
|
8556
8597
|
onEscapeKeyDown: V(s, () => {
|
|
8557
8598
|
b.isFocusedToastEscapeKeyDownRef.current || T(), b.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
8558
8599
|
})
|
|
8559
|
-
}, /* @__PURE__ */ _(U.li,
|
|
8600
|
+
}, /* @__PURE__ */ _(U.li, O({
|
|
8560
8601
|
role: "status",
|
|
8561
8602
|
"aria-live": "off",
|
|
8562
8603
|
"aria-atomic": !0,
|
|
@@ -8582,35 +8623,35 @@ const f$ = "ToastViewport", p$ = [
|
|
|
8582
8623
|
onPointerMove: V(e.onPointerMove, (P) => {
|
|
8583
8624
|
if (!w.current)
|
|
8584
8625
|
return;
|
|
8585
|
-
const
|
|
8626
|
+
const X = P.clientX - w.current.x, J = P.clientY - w.current.y, de = Boolean(m.current), ue = [
|
|
8586
8627
|
"left",
|
|
8587
8628
|
"right"
|
|
8588
8629
|
].includes(b.swipeDirection), G = [
|
|
8589
8630
|
"left",
|
|
8590
8631
|
"up"
|
|
8591
|
-
].includes(b.swipeDirection) ? Math.min : Math.max, z = ue ? G(0,
|
|
8632
|
+
].includes(b.swipeDirection) ? Math.min : Math.max, z = ue ? G(0, X) : 0, Y = ue ? 0 : G(0, J), re = P.pointerType === "touch" ? 10 : 2, Z = {
|
|
8592
8633
|
x: z,
|
|
8593
8634
|
y: Y
|
|
8594
8635
|
}, te = {
|
|
8595
8636
|
originalEvent: P,
|
|
8596
8637
|
delta: Z
|
|
8597
8638
|
};
|
|
8598
|
-
de ? (
|
|
8639
|
+
de ? (m.current = Z, sn(gm, f, te, {
|
|
8599
8640
|
discrete: !1
|
|
8600
|
-
})) : da(Z, b.swipeDirection, re) ? (
|
|
8641
|
+
})) : da(Z, b.swipeDirection, re) ? (m.current = Z, sn($m, d, te, {
|
|
8601
8642
|
discrete: !1
|
|
8602
|
-
}), P.target.setPointerCapture(P.pointerId)) : (Math.abs(
|
|
8643
|
+
}), P.target.setPointerCapture(P.pointerId)) : (Math.abs(X) > re || Math.abs(J) > re) && (w.current = null);
|
|
8603
8644
|
}),
|
|
8604
8645
|
onPointerUp: V(e.onPointerUp, (P) => {
|
|
8605
|
-
const
|
|
8606
|
-
if (J.hasPointerCapture(P.pointerId) && J.releasePointerCapture(P.pointerId),
|
|
8646
|
+
const X = m.current, J = P.target;
|
|
8647
|
+
if (J.hasPointerCapture(P.pointerId) && J.releasePointerCapture(P.pointerId), m.current = null, w.current = null, X) {
|
|
8607
8648
|
const de = P.currentTarget, ue = {
|
|
8608
8649
|
originalEvent: P,
|
|
8609
|
-
delta:
|
|
8650
|
+
delta: X
|
|
8610
8651
|
};
|
|
8611
|
-
da(
|
|
8652
|
+
da(X, b.swipeDirection, b.swipeThreshold) ? sn(vm, p, ue, {
|
|
8612
8653
|
discrete: !0
|
|
8613
|
-
}) : sn(
|
|
8654
|
+
}) : sn(hm, $, ue, {
|
|
8614
8655
|
discrete: !0
|
|
8615
8656
|
}), de.addEventListener(
|
|
8616
8657
|
"click",
|
|
@@ -8635,9 +8676,9 @@ Uc.propTypes = {
|
|
|
8635
8676
|
return null;
|
|
8636
8677
|
}
|
|
8637
8678
|
};
|
|
8638
|
-
const
|
|
8679
|
+
const wm = (e) => {
|
|
8639
8680
|
const { __scopeToast: t, children: n, ...r } = e, o = Bn(Vn, t), [a, i] = H(!1), [s, l] = H(!1);
|
|
8640
|
-
return
|
|
8681
|
+
return Em(
|
|
8641
8682
|
() => i(!0)
|
|
8642
8683
|
), W(() => {
|
|
8643
8684
|
const u = window.setTimeout(
|
|
@@ -8648,38 +8689,38 @@ const w$ = (e) => {
|
|
|
8648
8689
|
}, []), s ? null : /* @__PURE__ */ _(jt, {
|
|
8649
8690
|
asChild: !0
|
|
8650
8691
|
}, /* @__PURE__ */ _(wn, r, a && /* @__PURE__ */ _(nt, null, o.label, " ", n)));
|
|
8651
|
-
},
|
|
8692
|
+
}, Pm = /* @__PURE__ */ R((e, t) => {
|
|
8652
8693
|
const { __scopeToast: n, ...r } = e;
|
|
8653
|
-
return /* @__PURE__ */ _(U.div,
|
|
8694
|
+
return /* @__PURE__ */ _(U.div, O({}, r, {
|
|
8654
8695
|
ref: t
|
|
8655
8696
|
}));
|
|
8656
|
-
}),
|
|
8697
|
+
}), Tm = "ToastAction", jc = /* @__PURE__ */ R((e, t) => {
|
|
8657
8698
|
const { altText: n, ...r } = e;
|
|
8658
8699
|
return n ? /* @__PURE__ */ _(Yc, {
|
|
8659
8700
|
altText: n,
|
|
8660
8701
|
asChild: !0
|
|
8661
|
-
}, /* @__PURE__ */ _(Gc,
|
|
8702
|
+
}, /* @__PURE__ */ _(Gc, O({}, r, {
|
|
8662
8703
|
ref: t
|
|
8663
8704
|
}))) : null;
|
|
8664
8705
|
});
|
|
8665
8706
|
jc.propTypes = {
|
|
8666
8707
|
altText(e) {
|
|
8667
|
-
return e.altText ? null : new Error(`Missing prop \`altText\` expected on \`${
|
|
8708
|
+
return e.altText ? null : new Error(`Missing prop \`altText\` expected on \`${Tm}\``);
|
|
8668
8709
|
}
|
|
8669
8710
|
};
|
|
8670
|
-
const
|
|
8671
|
-
const { __scopeToast: n, ...r } = e, o =
|
|
8711
|
+
const Cm = "ToastClose", Gc = /* @__PURE__ */ R((e, t) => {
|
|
8712
|
+
const { __scopeToast: n, ...r } = e, o = xm(Cm, n);
|
|
8672
8713
|
return /* @__PURE__ */ _(Yc, {
|
|
8673
8714
|
asChild: !0
|
|
8674
|
-
}, /* @__PURE__ */ _(U.button,
|
|
8715
|
+
}, /* @__PURE__ */ _(U.button, O({
|
|
8675
8716
|
type: "button"
|
|
8676
8717
|
}, r, {
|
|
8677
8718
|
ref: t,
|
|
8678
8719
|
onClick: V(e.onClick, o.onClose)
|
|
8679
8720
|
})));
|
|
8680
|
-
}), Yc = /* @__PURE__ */
|
|
8721
|
+
}), Yc = /* @__PURE__ */ R((e, t) => {
|
|
8681
8722
|
const { __scopeToast: n, altText: r, ...o } = e;
|
|
8682
|
-
return /* @__PURE__ */ _(U.div,
|
|
8723
|
+
return /* @__PURE__ */ _(U.div, O({
|
|
8683
8724
|
"data-radix-toast-announce-exclude": "",
|
|
8684
8725
|
"data-radix-toast-announce-alt": r || void 0
|
|
8685
8726
|
}, o, {
|
|
@@ -8689,7 +8730,7 @@ const C$ = "ToastClose", Gc = /* @__PURE__ */ O((e, t) => {
|
|
|
8689
8730
|
function qc(e) {
|
|
8690
8731
|
const t = [];
|
|
8691
8732
|
return Array.from(e.childNodes).forEach((r) => {
|
|
8692
|
-
if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent),
|
|
8733
|
+
if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent), Sm(r)) {
|
|
8693
8734
|
const o = r.ariaHidden || r.hidden || r.style.display === "none", a = r.dataset.radixToastAnnounceExclude === "";
|
|
8694
8735
|
if (!o)
|
|
8695
8736
|
if (a) {
|
|
@@ -8714,7 +8755,7 @@ const da = (e, t, n = 0) => {
|
|
|
8714
8755
|
const r = Math.abs(e.x), o = Math.abs(e.y), a = r > o;
|
|
8715
8756
|
return t === "left" || t === "right" ? a && r > n : !a && o > n;
|
|
8716
8757
|
};
|
|
8717
|
-
function
|
|
8758
|
+
function Em(e = () => {
|
|
8718
8759
|
}) {
|
|
8719
8760
|
const t = xe(e);
|
|
8720
8761
|
he(() => {
|
|
@@ -8728,10 +8769,10 @@ function E$(e = () => {
|
|
|
8728
8769
|
t
|
|
8729
8770
|
]);
|
|
8730
8771
|
}
|
|
8731
|
-
function
|
|
8772
|
+
function Sm(e) {
|
|
8732
8773
|
return e.nodeType === e.ELEMENT_NODE;
|
|
8733
8774
|
}
|
|
8734
|
-
function
|
|
8775
|
+
function km(e) {
|
|
8735
8776
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
8736
8777
|
acceptNode: (r) => {
|
|
8737
8778
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -8746,7 +8787,7 @@ function sr(e) {
|
|
|
8746
8787
|
const t = document.activeElement;
|
|
8747
8788
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
8748
8789
|
}
|
|
8749
|
-
const
|
|
8790
|
+
const Rm = Kc, Om = bm, Dm = _m, Im = Pm, Am = jc, Lm = Gc, mo = 25, Fm = Kt`
|
|
8750
8791
|
0% {
|
|
8751
8792
|
opacity: 1
|
|
8752
8793
|
}
|
|
@@ -8754,22 +8795,22 @@ const R$ = Kc, O$ = b$, D$ = _$, I$ = P$, A$ = jc, L$ = Gc, $o = 25, F$ = Kt`
|
|
|
8754
8795
|
100% {
|
|
8755
8796
|
opacity: 0
|
|
8756
8797
|
}
|
|
8757
|
-
`,
|
|
8798
|
+
`, Nm = Kt`
|
|
8758
8799
|
from {
|
|
8759
|
-
transform: translateX(calc(100% + ${
|
|
8800
|
+
transform: translateX(calc(100% + ${mo}px));
|
|
8760
8801
|
}
|
|
8761
8802
|
|
|
8762
8803
|
to {
|
|
8763
8804
|
transform: translateX(0);
|
|
8764
8805
|
}
|
|
8765
|
-
`,
|
|
8806
|
+
`, Mm = Kt`
|
|
8766
8807
|
from {
|
|
8767
8808
|
transform: translateX(var(--radix-toast-swipe-end-x));
|
|
8768
8809
|
}
|
|
8769
8810
|
to {
|
|
8770
|
-
transform: translateX(calc(100% + ${
|
|
8811
|
+
transform: translateX(calc(100% + ${mo}px));
|
|
8771
8812
|
}
|
|
8772
|
-
`, ev = k(
|
|
8813
|
+
`, ev = k(Am)``, zm = k(Lm)`
|
|
8773
8814
|
all: unset;
|
|
8774
8815
|
display: grid;
|
|
8775
8816
|
width: ${c.sizing_500};
|
|
@@ -8786,7 +8827,7 @@ const R$ = Kc, O$ = b$, D$ = _$, I$ = P$, A$ = jc, L$ = Gc, $o = 25, F$ = Kt`
|
|
|
8786
8827
|
& > svg {
|
|
8787
8828
|
font-size: 0.95rem;
|
|
8788
8829
|
}
|
|
8789
|
-
`,
|
|
8830
|
+
`, Bm = k(Im)`
|
|
8790
8831
|
font-family: ${c.font_family_inter};
|
|
8791
8832
|
font-style: normal;
|
|
8792
8833
|
font-weight: 500;
|
|
@@ -8795,7 +8836,7 @@ const R$ = Kc, O$ = b$, D$ = _$, I$ = P$, A$ = jc, L$ = Gc, $o = 25, F$ = Kt`
|
|
|
8795
8836
|
letter-spacing: ${c.letter_spacing_tight};
|
|
8796
8837
|
display: flex;
|
|
8797
8838
|
align-items: center;
|
|
8798
|
-
`,
|
|
8839
|
+
`, Vm = k(cm)`
|
|
8799
8840
|
background-color: var(--color-separator);
|
|
8800
8841
|
|
|
8801
8842
|
&[data-orientation='horizontal'] {
|
|
@@ -8809,32 +8850,32 @@ const R$ = Kc, O$ = b$, D$ = _$, I$ = P$, A$ = jc, L$ = Gc, $o = 25, F$ = Kt`
|
|
|
8809
8850
|
height: 100%;
|
|
8810
8851
|
width: 1;
|
|
8811
8852
|
}
|
|
8812
|
-
`,
|
|
8853
|
+
`, Wm = {
|
|
8813
8854
|
info: c.color_background_white_standard,
|
|
8814
8855
|
inverse: c.color_background_sentiment_neutral,
|
|
8815
8856
|
negative: c.color_background_sentiment_negative
|
|
8816
|
-
},
|
|
8857
|
+
}, Hm = {
|
|
8817
8858
|
info: c.color_text_standard,
|
|
8818
8859
|
inverse: c.color_background_white_standard,
|
|
8819
8860
|
negative: c.color_background_white_standard
|
|
8820
|
-
},
|
|
8861
|
+
}, Km = {
|
|
8821
8862
|
info: c.color_divider_weak,
|
|
8822
8863
|
inverse: c.color_divider_inverse_weak,
|
|
8823
8864
|
negative: c.color_divider_inverse_weak
|
|
8824
|
-
}, tv = k(
|
|
8865
|
+
}, tv = k(Om)`
|
|
8825
8866
|
position: fixed;
|
|
8826
8867
|
bottom: 0;
|
|
8827
8868
|
right: 0;
|
|
8828
8869
|
display: flex;
|
|
8829
8870
|
flex-direction: column;
|
|
8830
|
-
padding: ${
|
|
8871
|
+
padding: ${mo}px;
|
|
8831
8872
|
gap: 10px;
|
|
8832
8873
|
max-width: 100vw;
|
|
8833
8874
|
margin: 0;
|
|
8834
8875
|
list-style: none;
|
|
8835
8876
|
z-index: 30;
|
|
8836
8877
|
outline: none;
|
|
8837
|
-
`,
|
|
8878
|
+
`, Um = k(Dm)`
|
|
8838
8879
|
display: flex;
|
|
8839
8880
|
flex-direction: row;
|
|
8840
8881
|
align-items: center;
|
|
@@ -8851,11 +8892,11 @@ const R$ = Kc, O$ = b$, D$ = _$, I$ = P$, A$ = jc, L$ = Gc, $o = 25, F$ = Kt`
|
|
|
8851
8892
|
}
|
|
8852
8893
|
|
|
8853
8894
|
&[data-state='open'] {
|
|
8854
|
-
animation: ${
|
|
8895
|
+
animation: ${Nm} 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
8855
8896
|
}
|
|
8856
8897
|
|
|
8857
8898
|
&[data-state='closed'] {
|
|
8858
|
-
animation: ${
|
|
8899
|
+
animation: ${Fm} 100ms ease-in;
|
|
8859
8900
|
}
|
|
8860
8901
|
|
|
8861
8902
|
&[data-swipe='move'] {
|
|
@@ -8866,14 +8907,14 @@ const R$ = Kc, O$ = b$, D$ = _$, I$ = P$, A$ = jc, L$ = Gc, $o = 25, F$ = Kt`
|
|
|
8866
8907
|
transition: transform 200ms ease-out;
|
|
8867
8908
|
}
|
|
8868
8909
|
&[data-swipe='end'] {
|
|
8869
|
-
animation: ${
|
|
8910
|
+
animation: ${Mm} 100ms ease-out;
|
|
8870
8911
|
}
|
|
8871
8912
|
`;
|
|
8872
8913
|
function nv({
|
|
8873
8914
|
children: e,
|
|
8874
8915
|
...t
|
|
8875
8916
|
}) {
|
|
8876
|
-
return /* @__PURE__ */ E(
|
|
8917
|
+
return /* @__PURE__ */ E(Rm, {
|
|
8877
8918
|
...t,
|
|
8878
8919
|
children: e
|
|
8879
8920
|
});
|
|
@@ -8885,8 +8926,8 @@ function rv({
|
|
|
8885
8926
|
onDismiss: r,
|
|
8886
8927
|
...o
|
|
8887
8928
|
}) {
|
|
8888
|
-
const a =
|
|
8889
|
-
return /* @__PURE__ */ oe(
|
|
8929
|
+
const a = Wm[n], i = Hm[n], s = Km[n];
|
|
8930
|
+
return /* @__PURE__ */ oe(Um, {
|
|
8890
8931
|
style: {
|
|
8891
8932
|
"--color-background-notification": a,
|
|
8892
8933
|
"--color-notification": i
|
|
@@ -8894,13 +8935,13 @@ function rv({
|
|
|
8894
8935
|
...o,
|
|
8895
8936
|
children: [n === "negative" ? /* @__PURE__ */ E(wl, {
|
|
8896
8937
|
height: 18
|
|
8897
|
-
}) : null, /* @__PURE__ */ E(
|
|
8938
|
+
}) : null, /* @__PURE__ */ E(Bm, {
|
|
8898
8939
|
children: e
|
|
8899
|
-
}), /* @__PURE__ */ E(
|
|
8940
|
+
}), /* @__PURE__ */ E(Vm, {
|
|
8900
8941
|
style: {
|
|
8901
8942
|
"--color-separator": s
|
|
8902
8943
|
}
|
|
8903
|
-
}), t, /* @__PURE__ */ E(
|
|
8944
|
+
}), t, /* @__PURE__ */ E(zm, {
|
|
8904
8945
|
onClick: r,
|
|
8905
8946
|
children: /* @__PURE__ */ E(Kr, {
|
|
8906
8947
|
label: "Dismiss notification",
|
|
@@ -8912,35 +8953,35 @@ function rv({
|
|
|
8912
8953
|
})]
|
|
8913
8954
|
});
|
|
8914
8955
|
}
|
|
8915
|
-
const
|
|
8916
|
-
function
|
|
8917
|
-
const t = Te(
|
|
8956
|
+
const jm = /* @__PURE__ */ lt(void 0);
|
|
8957
|
+
function $o(e) {
|
|
8958
|
+
const t = Te(jm);
|
|
8918
8959
|
return e || t || "ltr";
|
|
8919
8960
|
}
|
|
8920
|
-
const cr = "rovingFocusGroup.onEntryFocus",
|
|
8961
|
+
const cr = "rovingFocusGroup.onEntryFocus", Gm = {
|
|
8921
8962
|
bubbles: !1,
|
|
8922
8963
|
cancelable: !0
|
|
8923
|
-
}, go = "RovingFocusGroup", [Ir, Xc,
|
|
8924
|
-
|
|
8925
|
-
]), [
|
|
8964
|
+
}, go = "RovingFocusGroup", [Ir, Xc, Ym] = po(go), [qm, Zc] = we(go, [
|
|
8965
|
+
Ym
|
|
8966
|
+
]), [Xm, Zm] = qm(go), Jm = /* @__PURE__ */ R((e, t) => /* @__PURE__ */ _(Ir.Provider, {
|
|
8926
8967
|
scope: e.__scopeRovingFocusGroup
|
|
8927
8968
|
}, /* @__PURE__ */ _(Ir.Slot, {
|
|
8928
8969
|
scope: e.__scopeRovingFocusGroup
|
|
8929
|
-
}, /* @__PURE__ */ _(
|
|
8970
|
+
}, /* @__PURE__ */ _(Qm, O({}, e, {
|
|
8930
8971
|
ref: t
|
|
8931
|
-
}))))),
|
|
8932
|
-
const { __scopeRovingFocusGroup: n, orientation: r, loop: o = !1, dir: a, currentTabStopId: i, defaultCurrentTabStopId: s, onCurrentTabStopIdChange: l, onEntryFocus: u, ...d } = e, f = I(null),
|
|
8972
|
+
}))))), Qm = /* @__PURE__ */ R((e, t) => {
|
|
8973
|
+
const { __scopeRovingFocusGroup: n, orientation: r, loop: o = !1, dir: a, currentTabStopId: i, defaultCurrentTabStopId: s, onCurrentTabStopIdChange: l, onEntryFocus: u, ...d } = e, f = I(null), $ = ne(t, f), p = $o(a), [g = null, b] = Fe({
|
|
8933
8974
|
prop: i,
|
|
8934
8975
|
defaultProp: s,
|
|
8935
8976
|
onChange: l
|
|
8936
|
-
}), [h, y] = H(!1), v = xe(u), w = Xc(n),
|
|
8977
|
+
}), [h, y] = H(!1), v = xe(u), w = Xc(n), m = I(!1), [D, L] = H(0);
|
|
8937
8978
|
return W(() => {
|
|
8938
8979
|
const C = f.current;
|
|
8939
8980
|
if (C)
|
|
8940
8981
|
return C.addEventListener(cr, v), () => C.removeEventListener(cr, v);
|
|
8941
8982
|
}, [
|
|
8942
8983
|
v
|
|
8943
|
-
]), /* @__PURE__ */ _(
|
|
8984
|
+
]), /* @__PURE__ */ _(Xm, {
|
|
8944
8985
|
scope: n,
|
|
8945
8986
|
orientation: r,
|
|
8946
8987
|
dir: p,
|
|
@@ -8968,48 +9009,48 @@ const cr = "rovingFocusGroup.onEntryFocus", G$ = {
|
|
|
8968
9009
|
),
|
|
8969
9010
|
[]
|
|
8970
9011
|
)
|
|
8971
|
-
}, /* @__PURE__ */ _(U.div,
|
|
9012
|
+
}, /* @__PURE__ */ _(U.div, O({
|
|
8972
9013
|
tabIndex: h || D === 0 ? -1 : 0,
|
|
8973
9014
|
"data-orientation": r
|
|
8974
9015
|
}, d, {
|
|
8975
|
-
ref:
|
|
9016
|
+
ref: $,
|
|
8976
9017
|
style: {
|
|
8977
9018
|
outline: "none",
|
|
8978
9019
|
...e.style
|
|
8979
9020
|
},
|
|
8980
9021
|
onMouseDown: V(e.onMouseDown, () => {
|
|
8981
|
-
|
|
9022
|
+
m.current = !0;
|
|
8982
9023
|
}),
|
|
8983
9024
|
onFocus: V(e.onFocus, (C) => {
|
|
8984
|
-
const A =
|
|
9025
|
+
const A = !m.current;
|
|
8985
9026
|
if (C.target === C.currentTarget && A && !h) {
|
|
8986
|
-
const N = new CustomEvent(cr,
|
|
9027
|
+
const N = new CustomEvent(cr, Gm);
|
|
8987
9028
|
if (C.currentTarget.dispatchEvent(N), !N.defaultPrevented) {
|
|
8988
9029
|
const j = w().filter(
|
|
8989
|
-
(
|
|
9030
|
+
(X) => X.focusable
|
|
8990
9031
|
), T = j.find(
|
|
8991
|
-
(
|
|
9032
|
+
(X) => X.active
|
|
8992
9033
|
), K = j.find(
|
|
8993
|
-
(
|
|
9034
|
+
(X) => X.id === g
|
|
8994
9035
|
), P = [
|
|
8995
9036
|
T,
|
|
8996
9037
|
K,
|
|
8997
9038
|
...j
|
|
8998
9039
|
].filter(Boolean).map(
|
|
8999
|
-
(
|
|
9040
|
+
(X) => X.ref.current
|
|
9000
9041
|
);
|
|
9001
9042
|
Jc(P);
|
|
9002
9043
|
}
|
|
9003
9044
|
}
|
|
9004
|
-
|
|
9045
|
+
m.current = !1;
|
|
9005
9046
|
}),
|
|
9006
9047
|
onBlur: V(
|
|
9007
9048
|
e.onBlur,
|
|
9008
9049
|
() => y(!1)
|
|
9009
9050
|
)
|
|
9010
9051
|
})));
|
|
9011
|
-
}),
|
|
9012
|
-
const { __scopeRovingFocusGroup: n, focusable: r = !0, active: o = !1, ...a } = e, i = Ke(), s =
|
|
9052
|
+
}), e$ = "RovingFocusGroupItem", t$ = /* @__PURE__ */ R((e, t) => {
|
|
9053
|
+
const { __scopeRovingFocusGroup: n, focusable: r = !0, active: o = !1, ...a } = e, i = Ke(), s = Zm(e$, n), l = s.currentTabStopId === i, u = Xc(n), { onFocusableItemAdd: d, onFocusableItemRemove: f } = s;
|
|
9013
9054
|
return W(() => {
|
|
9014
9055
|
if (r)
|
|
9015
9056
|
return d(), () => f();
|
|
@@ -9022,28 +9063,28 @@ const cr = "rovingFocusGroup.onEntryFocus", G$ = {
|
|
|
9022
9063
|
id: i,
|
|
9023
9064
|
focusable: r,
|
|
9024
9065
|
active: o
|
|
9025
|
-
}, /* @__PURE__ */ _(U.span,
|
|
9066
|
+
}, /* @__PURE__ */ _(U.span, O({
|
|
9026
9067
|
tabIndex: l ? 0 : -1,
|
|
9027
9068
|
"data-orientation": s.orientation
|
|
9028
9069
|
}, a, {
|
|
9029
9070
|
ref: t,
|
|
9030
|
-
onMouseDown: V(e.onMouseDown, (
|
|
9031
|
-
r ? s.onItemFocus(i) :
|
|
9071
|
+
onMouseDown: V(e.onMouseDown, ($) => {
|
|
9072
|
+
r ? s.onItemFocus(i) : $.preventDefault();
|
|
9032
9073
|
}),
|
|
9033
9074
|
onFocus: V(
|
|
9034
9075
|
e.onFocus,
|
|
9035
9076
|
() => s.onItemFocus(i)
|
|
9036
9077
|
),
|
|
9037
|
-
onKeyDown: V(e.onKeyDown, (
|
|
9038
|
-
if (
|
|
9078
|
+
onKeyDown: V(e.onKeyDown, ($) => {
|
|
9079
|
+
if ($.key === "Tab" && $.shiftKey) {
|
|
9039
9080
|
s.onItemShiftTab();
|
|
9040
9081
|
return;
|
|
9041
9082
|
}
|
|
9042
|
-
if (
|
|
9083
|
+
if ($.target !== $.currentTarget)
|
|
9043
9084
|
return;
|
|
9044
|
-
const p =
|
|
9085
|
+
const p = o$($, s.orientation, s.dir);
|
|
9045
9086
|
if (p !== void 0) {
|
|
9046
|
-
|
|
9087
|
+
$.preventDefault();
|
|
9047
9088
|
let b = u().filter(
|
|
9048
9089
|
(h) => h.focusable
|
|
9049
9090
|
).map(
|
|
@@ -9053,8 +9094,8 @@ const cr = "rovingFocusGroup.onEntryFocus", G$ = {
|
|
|
9053
9094
|
b.reverse();
|
|
9054
9095
|
else if (p === "prev" || p === "next") {
|
|
9055
9096
|
p === "prev" && b.reverse();
|
|
9056
|
-
const h = b.indexOf(
|
|
9057
|
-
b = s.loop ?
|
|
9097
|
+
const h = b.indexOf($.currentTarget);
|
|
9098
|
+
b = s.loop ? a$(b, h + 1) : b.slice(h + 1);
|
|
9058
9099
|
}
|
|
9059
9100
|
setTimeout(
|
|
9060
9101
|
() => Jc(b)
|
|
@@ -9062,7 +9103,7 @@ const cr = "rovingFocusGroup.onEntryFocus", G$ = {
|
|
|
9062
9103
|
}
|
|
9063
9104
|
})
|
|
9064
9105
|
})));
|
|
9065
|
-
}),
|
|
9106
|
+
}), n$ = {
|
|
9066
9107
|
ArrowLeft: "prev",
|
|
9067
9108
|
ArrowUp: "prev",
|
|
9068
9109
|
ArrowRight: "next",
|
|
@@ -9072,11 +9113,11 @@ const cr = "rovingFocusGroup.onEntryFocus", G$ = {
|
|
|
9072
9113
|
PageDown: "last",
|
|
9073
9114
|
End: "last"
|
|
9074
9115
|
};
|
|
9075
|
-
function
|
|
9116
|
+
function r$(e, t) {
|
|
9076
9117
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
9077
9118
|
}
|
|
9078
|
-
function
|
|
9079
|
-
const r =
|
|
9119
|
+
function o$(e, t, n) {
|
|
9120
|
+
const r = r$(e.key, n);
|
|
9080
9121
|
if (!(t === "vertical" && [
|
|
9081
9122
|
"ArrowLeft",
|
|
9082
9123
|
"ArrowRight"
|
|
@@ -9084,7 +9125,7 @@ function om(e, t, n) {
|
|
|
9084
9125
|
"ArrowUp",
|
|
9085
9126
|
"ArrowDown"
|
|
9086
9127
|
].includes(r)))
|
|
9087
|
-
return
|
|
9128
|
+
return n$[r];
|
|
9088
9129
|
}
|
|
9089
9130
|
function Jc(e) {
|
|
9090
9131
|
const t = document.activeElement;
|
|
@@ -9092,21 +9133,21 @@ function Jc(e) {
|
|
|
9092
9133
|
if (n === t || (n.focus(), document.activeElement !== t))
|
|
9093
9134
|
return;
|
|
9094
9135
|
}
|
|
9095
|
-
function
|
|
9136
|
+
function a$(e, t) {
|
|
9096
9137
|
return e.map(
|
|
9097
9138
|
(n, r) => e[(t + r) % e.length]
|
|
9098
9139
|
);
|
|
9099
9140
|
}
|
|
9100
|
-
const
|
|
9101
|
-
const { __scopeRadio: n, name: r, checked: o = !1, required: a, disabled: i, value: s = "on", onCheck: l, ...u } = e, [d, f] = H(null),
|
|
9141
|
+
const i$ = Jm, s$ = t$, Qc = "Radio", [c$, el] = we(Qc), [l$, d$] = c$(Qc), u$ = /* @__PURE__ */ R((e, t) => {
|
|
9142
|
+
const { __scopeRadio: n, name: r, checked: o = !1, required: a, disabled: i, value: s = "on", onCheck: l, ...u } = e, [d, f] = H(null), $ = ne(
|
|
9102
9143
|
t,
|
|
9103
9144
|
(b) => f(b)
|
|
9104
9145
|
), p = I(!1), g = d ? Boolean(d.closest("form")) : !0;
|
|
9105
|
-
return /* @__PURE__ */ _(
|
|
9146
|
+
return /* @__PURE__ */ _(l$, {
|
|
9106
9147
|
scope: n,
|
|
9107
9148
|
checked: o,
|
|
9108
9149
|
disabled: i
|
|
9109
|
-
}, /* @__PURE__ */ _(U.button,
|
|
9150
|
+
}, /* @__PURE__ */ _(U.button, O({
|
|
9110
9151
|
type: "button",
|
|
9111
9152
|
role: "radio",
|
|
9112
9153
|
"aria-checked": o,
|
|
@@ -9115,11 +9156,11 @@ const im = J$, sm = tm, Qc = "Radio", [cm, el] = we(Qc), [lm, dm] = cm(Qc), um =
|
|
|
9115
9156
|
disabled: i,
|
|
9116
9157
|
value: s
|
|
9117
9158
|
}, u, {
|
|
9118
|
-
ref:
|
|
9159
|
+
ref: $,
|
|
9119
9160
|
onClick: V(e.onClick, (b) => {
|
|
9120
9161
|
o || l == null || l(), g && (p.current = b.isPropagationStopped(), p.current || b.stopPropagation());
|
|
9121
9162
|
})
|
|
9122
|
-
})), g && /* @__PURE__ */ _(
|
|
9163
|
+
})), g && /* @__PURE__ */ _(b$, {
|
|
9123
9164
|
control: d,
|
|
9124
9165
|
bubbles: !p.current,
|
|
9125
9166
|
name: r,
|
|
@@ -9131,31 +9172,31 @@ const im = J$, sm = tm, Qc = "Radio", [cm, el] = we(Qc), [lm, dm] = cm(Qc), um =
|
|
|
9131
9172
|
transform: "translateX(-100%)"
|
|
9132
9173
|
}
|
|
9133
9174
|
}));
|
|
9134
|
-
}),
|
|
9135
|
-
const { __scopeRadio: n, forceMount: r, ...o } = e, a =
|
|
9175
|
+
}), f$ = "RadioIndicator", p$ = /* @__PURE__ */ R((e, t) => {
|
|
9176
|
+
const { __scopeRadio: n, forceMount: r, ...o } = e, a = d$(f$, n);
|
|
9136
9177
|
return /* @__PURE__ */ _(Se, {
|
|
9137
9178
|
present: r || a.checked
|
|
9138
|
-
}, /* @__PURE__ */ _(U.span,
|
|
9179
|
+
}, /* @__PURE__ */ _(U.span, O({
|
|
9139
9180
|
"data-state": tl(a.checked),
|
|
9140
9181
|
"data-disabled": a.disabled ? "" : void 0
|
|
9141
9182
|
}, o, {
|
|
9142
9183
|
ref: t
|
|
9143
9184
|
})));
|
|
9144
|
-
}),
|
|
9185
|
+
}), b$ = (e) => {
|
|
9145
9186
|
const { control: t, checked: n, bubbles: r = !0, ...o } = e, a = I(null), i = On(n), s = Sn(t);
|
|
9146
9187
|
return W(() => {
|
|
9147
9188
|
const l = a.current, u = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(u, "checked").set;
|
|
9148
9189
|
if (i !== n && f) {
|
|
9149
|
-
const
|
|
9190
|
+
const $ = new Event("click", {
|
|
9150
9191
|
bubbles: r
|
|
9151
9192
|
});
|
|
9152
|
-
f.call(l, n), l.dispatchEvent(
|
|
9193
|
+
f.call(l, n), l.dispatchEvent($);
|
|
9153
9194
|
}
|
|
9154
9195
|
}, [
|
|
9155
9196
|
i,
|
|
9156
9197
|
n,
|
|
9157
9198
|
r
|
|
9158
|
-
]), /* @__PURE__ */ _("input",
|
|
9199
|
+
]), /* @__PURE__ */ _("input", O({
|
|
9159
9200
|
type: "radio",
|
|
9160
9201
|
"aria-hidden": !0,
|
|
9161
9202
|
defaultChecked: n
|
|
@@ -9175,57 +9216,57 @@ const im = J$, sm = tm, Qc = "Radio", [cm, el] = we(Qc), [lm, dm] = cm(Qc), um =
|
|
|
9175
9216
|
function tl(e) {
|
|
9176
9217
|
return e ? "checked" : "unchecked";
|
|
9177
9218
|
}
|
|
9178
|
-
const $
|
|
9219
|
+
const m$ = [
|
|
9179
9220
|
"ArrowUp",
|
|
9180
9221
|
"ArrowDown",
|
|
9181
9222
|
"ArrowLeft",
|
|
9182
9223
|
"ArrowRight"
|
|
9183
|
-
], nl = "RadioGroup", [
|
|
9224
|
+
], nl = "RadioGroup", [$$, ov] = we(nl, [
|
|
9184
9225
|
Zc,
|
|
9185
9226
|
el
|
|
9186
|
-
]), rl = Zc(), ol = el(), [
|
|
9187
|
-
const { __scopeRadioGroup: n, name: r, defaultValue: o, value: a, required: i = !1, disabled: s = !1, orientation: l, dir: u, loop: d = !0, onValueChange: f,
|
|
9227
|
+
]), rl = Zc(), ol = el(), [g$, h$] = $$(nl), v$ = /* @__PURE__ */ R((e, t) => {
|
|
9228
|
+
const { __scopeRadioGroup: n, name: r, defaultValue: o, value: a, required: i = !1, disabled: s = !1, orientation: l, dir: u, loop: d = !0, onValueChange: f, ...$ } = e, p = rl(n), g = $o(u), [b, h] = Fe({
|
|
9188
9229
|
prop: a,
|
|
9189
9230
|
defaultProp: o,
|
|
9190
9231
|
onChange: f
|
|
9191
9232
|
});
|
|
9192
|
-
return /* @__PURE__ */ _(
|
|
9233
|
+
return /* @__PURE__ */ _(g$, {
|
|
9193
9234
|
scope: n,
|
|
9194
9235
|
name: r,
|
|
9195
9236
|
required: i,
|
|
9196
9237
|
disabled: s,
|
|
9197
9238
|
value: b,
|
|
9198
9239
|
onValueChange: h
|
|
9199
|
-
}, /* @__PURE__ */ _(
|
|
9240
|
+
}, /* @__PURE__ */ _(i$, O({
|
|
9200
9241
|
asChild: !0
|
|
9201
9242
|
}, p, {
|
|
9202
9243
|
orientation: l,
|
|
9203
9244
|
dir: g,
|
|
9204
9245
|
loop: d
|
|
9205
|
-
}), /* @__PURE__ */ _(U.div,
|
|
9246
|
+
}), /* @__PURE__ */ _(U.div, O({
|
|
9206
9247
|
role: "radiogroup",
|
|
9207
9248
|
"aria-required": i,
|
|
9208
9249
|
"aria-orientation": l,
|
|
9209
9250
|
"data-disabled": s ? "" : void 0,
|
|
9210
9251
|
dir: g
|
|
9211
|
-
},
|
|
9252
|
+
}, $, {
|
|
9212
9253
|
ref: t
|
|
9213
9254
|
}))));
|
|
9214
|
-
}),
|
|
9215
|
-
const { __scopeRadioGroup: n, disabled: r, ...o } = e, a =
|
|
9255
|
+
}), _$ = "RadioGroupItem", y$ = /* @__PURE__ */ R((e, t) => {
|
|
9256
|
+
const { __scopeRadioGroup: n, disabled: r, ...o } = e, a = h$(_$, n), i = a.disabled || r, s = rl(n), l = ol(n), u = I(null), d = ne(t, u), f = a.value === o.value, $ = I(!1);
|
|
9216
9257
|
return W(() => {
|
|
9217
9258
|
const p = (b) => {
|
|
9218
|
-
|
|
9219
|
-
}, g = () =>
|
|
9259
|
+
m$.includes(b.key) && ($.current = !0);
|
|
9260
|
+
}, g = () => $.current = !1;
|
|
9220
9261
|
return document.addEventListener("keydown", p), document.addEventListener("keyup", g), () => {
|
|
9221
9262
|
document.removeEventListener("keydown", p), document.removeEventListener("keyup", g);
|
|
9222
9263
|
};
|
|
9223
|
-
}, []), /* @__PURE__ */ _(
|
|
9264
|
+
}, []), /* @__PURE__ */ _(s$, O({
|
|
9224
9265
|
asChild: !0
|
|
9225
9266
|
}, s, {
|
|
9226
9267
|
focusable: !i,
|
|
9227
9268
|
active: f
|
|
9228
|
-
}), /* @__PURE__ */ _(
|
|
9269
|
+
}), /* @__PURE__ */ _(u$, O({
|
|
9229
9270
|
disabled: i,
|
|
9230
9271
|
required: a.required,
|
|
9231
9272
|
checked: f
|
|
@@ -9238,15 +9279,15 @@ const $m = [
|
|
|
9238
9279
|
}),
|
|
9239
9280
|
onFocus: V(o.onFocus, () => {
|
|
9240
9281
|
var p;
|
|
9241
|
-
|
|
9282
|
+
$.current && ((p = u.current) === null || p === void 0 || p.click());
|
|
9242
9283
|
})
|
|
9243
9284
|
})));
|
|
9244
|
-
}),
|
|
9285
|
+
}), x$ = /* @__PURE__ */ R((e, t) => {
|
|
9245
9286
|
const { __scopeRadioGroup: n, ...r } = e, o = ol(n);
|
|
9246
|
-
return /* @__PURE__ */ _(
|
|
9287
|
+
return /* @__PURE__ */ _(p$, O({}, o, r, {
|
|
9247
9288
|
ref: t
|
|
9248
9289
|
}));
|
|
9249
|
-
}),
|
|
9290
|
+
}), w$ = v$, P$ = y$, T$ = x$, al = k(P$)`
|
|
9250
9291
|
all: unset;
|
|
9251
9292
|
--radio-width: ${c.sizing_600};
|
|
9252
9293
|
--inner-circle-color: ${c.color_white};
|
|
@@ -9302,7 +9343,7 @@ const $m = [
|
|
|
9302
9343
|
--inner-circle-color: ${c.color_fill_primary_disabled};
|
|
9303
9344
|
color: ${c.color_fill_primary_disabled};
|
|
9304
9345
|
}
|
|
9305
|
-
`,
|
|
9346
|
+
`, C$ = k(T$)`
|
|
9306
9347
|
display: grid;
|
|
9307
9348
|
place-items: center;
|
|
9308
9349
|
width: 100%;
|
|
@@ -9339,42 +9380,42 @@ function av({
|
|
|
9339
9380
|
disabled: t,
|
|
9340
9381
|
...n
|
|
9341
9382
|
}) {
|
|
9342
|
-
const r =
|
|
9343
|
-
return /* @__PURE__ */ E(
|
|
9383
|
+
const r = mt(), o = t || r, a = uo();
|
|
9384
|
+
return /* @__PURE__ */ E(w$, {
|
|
9344
9385
|
...n,
|
|
9345
9386
|
disabled: o,
|
|
9346
9387
|
...a,
|
|
9347
9388
|
children: e
|
|
9348
9389
|
});
|
|
9349
9390
|
}
|
|
9350
|
-
const iv = al,
|
|
9391
|
+
const iv = al, E$ = C$;
|
|
9351
9392
|
function sv({
|
|
9352
9393
|
disabled: e,
|
|
9353
9394
|
...t
|
|
9354
9395
|
}) {
|
|
9355
|
-
const n =
|
|
9396
|
+
const n = mt(), r = e || n, o = uo();
|
|
9356
9397
|
return /* @__PURE__ */ E(al, {
|
|
9357
9398
|
...t,
|
|
9358
9399
|
...o,
|
|
9359
9400
|
disabled: r,
|
|
9360
|
-
children: /* @__PURE__ */ E(
|
|
9401
|
+
children: /* @__PURE__ */ E(E$, {})
|
|
9361
9402
|
});
|
|
9362
9403
|
}
|
|
9363
9404
|
function ua(e, [t, n]) {
|
|
9364
9405
|
return Math.min(n, Math.max(t, e));
|
|
9365
9406
|
}
|
|
9366
|
-
const
|
|
9407
|
+
const S$ = [
|
|
9367
9408
|
" ",
|
|
9368
9409
|
"Enter",
|
|
9369
9410
|
"ArrowUp",
|
|
9370
9411
|
"ArrowDown"
|
|
9371
|
-
],
|
|
9412
|
+
], k$ = [
|
|
9372
9413
|
" ",
|
|
9373
9414
|
"Enter"
|
|
9374
|
-
], Wn = "Select", [Hn, ho,
|
|
9375
|
-
|
|
9376
|
-
]), [
|
|
9377
|
-
const { __scopeSelect: t, children: n, open: r, defaultOpen: o, onOpenChange: a, value: i, defaultValue: s, onValueChange: l, dir: u, name: d, autoComplete: f, disabled:
|
|
9415
|
+
], Wn = "Select", [Hn, ho, R$] = po(Wn), [Xt, cv] = we(Wn, [
|
|
9416
|
+
R$
|
|
9417
|
+
]), [O$, At] = Xt(Wn), [D$, I$] = Xt(Wn), A$ = (e) => {
|
|
9418
|
+
const { __scopeSelect: t, children: n, open: r, defaultOpen: o, onOpenChange: a, value: i, defaultValue: s, onValueChange: l, dir: u, name: d, autoComplete: f, disabled: $, required: p } = e, [g, b] = H(null), [h, y] = H(null), [v, w] = H(!1), m = $o(u), [D = !1, L] = Fe({
|
|
9378
9419
|
prop: r,
|
|
9379
9420
|
defaultProp: o,
|
|
9380
9421
|
onChange: a
|
|
@@ -9385,7 +9426,7 @@ const Sm = [
|
|
|
9385
9426
|
}), N = I(null), j = g ? Boolean(g.closest("form")) : !0, [T, K] = H(/* @__PURE__ */ new Set()), S = Array.from(T).map(
|
|
9386
9427
|
(P) => P.props.value
|
|
9387
9428
|
).join(";");
|
|
9388
|
-
return /* @__PURE__ */ _(
|
|
9429
|
+
return /* @__PURE__ */ _(O$, {
|
|
9389
9430
|
required: p,
|
|
9390
9431
|
scope: t,
|
|
9391
9432
|
trigger: g,
|
|
@@ -9399,21 +9440,21 @@ const Sm = [
|
|
|
9399
9440
|
onValueChange: A,
|
|
9400
9441
|
open: D,
|
|
9401
9442
|
onOpenChange: L,
|
|
9402
|
-
dir:
|
|
9443
|
+
dir: m,
|
|
9403
9444
|
triggerPointerDownPosRef: N,
|
|
9404
|
-
disabled:
|
|
9445
|
+
disabled: $
|
|
9405
9446
|
}, /* @__PURE__ */ _(Hn.Provider, {
|
|
9406
9447
|
scope: t
|
|
9407
|
-
}, /* @__PURE__ */ _(
|
|
9448
|
+
}, /* @__PURE__ */ _(D$, {
|
|
9408
9449
|
scope: e.__scopeSelect,
|
|
9409
9450
|
onNativeOptionAdd: B((P) => {
|
|
9410
9451
|
K(
|
|
9411
|
-
(
|
|
9452
|
+
(X) => new Set(X).add(P)
|
|
9412
9453
|
);
|
|
9413
9454
|
}, []),
|
|
9414
9455
|
onNativeOptionRemove: B((P) => {
|
|
9415
|
-
K((
|
|
9416
|
-
const J = new Set(
|
|
9456
|
+
K((X) => {
|
|
9457
|
+
const J = new Set(X);
|
|
9417
9458
|
return J.delete(P), J;
|
|
9418
9459
|
});
|
|
9419
9460
|
}, [])
|
|
@@ -9426,22 +9467,22 @@ const Sm = [
|
|
|
9426
9467
|
autoComplete: f,
|
|
9427
9468
|
value: C,
|
|
9428
9469
|
onChange: (P) => A(P.target.value),
|
|
9429
|
-
disabled:
|
|
9470
|
+
disabled: $
|
|
9430
9471
|
}, C === void 0 ? /* @__PURE__ */ _("option", {
|
|
9431
9472
|
value: ""
|
|
9432
9473
|
}) : null, Array.from(T)) : null);
|
|
9433
|
-
},
|
|
9434
|
-
const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = At(
|
|
9474
|
+
}, L$ = "SelectTrigger", F$ = /* @__PURE__ */ R((e, t) => {
|
|
9475
|
+
const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = At(L$, n), i = a.disabled || r, s = ne(t, a.onTriggerChange), l = ho(n), [u, d, f] = dl((p) => {
|
|
9435
9476
|
const g = l().filter(
|
|
9436
9477
|
(y) => !y.disabled
|
|
9437
9478
|
), b = g.find(
|
|
9438
9479
|
(y) => y.value === a.value
|
|
9439
9480
|
), h = ul(g, p, b);
|
|
9440
9481
|
h !== void 0 && a.onValueChange(h.value);
|
|
9441
|
-
}),
|
|
9482
|
+
}), $ = () => {
|
|
9442
9483
|
i || (a.onOpenChange(!0), f());
|
|
9443
9484
|
};
|
|
9444
|
-
return /* @__PURE__ */ _(U.button,
|
|
9485
|
+
return /* @__PURE__ */ _(U.button, O({
|
|
9445
9486
|
type: "button",
|
|
9446
9487
|
role: "combobox",
|
|
9447
9488
|
"aria-controls": a.contentId,
|
|
@@ -9460,54 +9501,54 @@ const Sm = [
|
|
|
9460
9501
|
}),
|
|
9461
9502
|
onPointerDown: V(o.onPointerDown, (p) => {
|
|
9462
9503
|
const g = p.target;
|
|
9463
|
-
g.hasPointerCapture(p.pointerId) && g.releasePointerCapture(p.pointerId), p.button === 0 && p.ctrlKey === !1 && (
|
|
9504
|
+
g.hasPointerCapture(p.pointerId) && g.releasePointerCapture(p.pointerId), p.button === 0 && p.ctrlKey === !1 && ($(), a.triggerPointerDownPosRef.current = {
|
|
9464
9505
|
x: Math.round(p.pageX),
|
|
9465
9506
|
y: Math.round(p.pageY)
|
|
9466
9507
|
}, p.preventDefault());
|
|
9467
9508
|
}),
|
|
9468
9509
|
onKeyDown: V(o.onKeyDown, (p) => {
|
|
9469
9510
|
const g = u.current !== "";
|
|
9470
|
-
!(p.ctrlKey || p.altKey || p.metaKey) && p.key.length === 1 && d(p.key), !(g && p.key === " ") &&
|
|
9511
|
+
!(p.ctrlKey || p.altKey || p.metaKey) && p.key.length === 1 && d(p.key), !(g && p.key === " ") && S$.includes(p.key) && ($(), p.preventDefault());
|
|
9471
9512
|
})
|
|
9472
9513
|
}));
|
|
9473
|
-
}),
|
|
9474
|
-
const { __scopeSelect: n, className: r, style: o, children: a, placeholder: i, ...s } = e, l = At(
|
|
9514
|
+
}), N$ = "SelectValue", M$ = /* @__PURE__ */ R((e, t) => {
|
|
9515
|
+
const { __scopeSelect: n, className: r, style: o, children: a, placeholder: i, ...s } = e, l = At(N$, n), { onValueNodeHasChildrenChange: u } = l, d = a !== void 0, f = ne(t, l.onValueNodeChange);
|
|
9475
9516
|
return he(() => {
|
|
9476
9517
|
u(d);
|
|
9477
9518
|
}, [
|
|
9478
9519
|
u,
|
|
9479
9520
|
d
|
|
9480
|
-
]), /* @__PURE__ */ _(U.span,
|
|
9521
|
+
]), /* @__PURE__ */ _(U.span, O({}, s, {
|
|
9481
9522
|
ref: f,
|
|
9482
9523
|
style: {
|
|
9483
9524
|
pointerEvents: "none"
|
|
9484
9525
|
}
|
|
9485
9526
|
}), l.value === void 0 && i !== void 0 ? i : a);
|
|
9486
|
-
}),
|
|
9527
|
+
}), z$ = /* @__PURE__ */ R((e, t) => {
|
|
9487
9528
|
const { __scopeSelect: n, children: r, ...o } = e;
|
|
9488
|
-
return /* @__PURE__ */ _(U.span,
|
|
9529
|
+
return /* @__PURE__ */ _(U.span, O({
|
|
9489
9530
|
"aria-hidden": !0
|
|
9490
9531
|
}, o, {
|
|
9491
9532
|
ref: t
|
|
9492
9533
|
}), r || "\u25BC");
|
|
9493
|
-
}),
|
|
9534
|
+
}), B$ = (e) => /* @__PURE__ */ _(jt, O({
|
|
9494
9535
|
asChild: !0
|
|
9495
|
-
}, e)), vo = "SelectContent",
|
|
9536
|
+
}, e)), vo = "SelectContent", V$ = /* @__PURE__ */ R((e, t) => {
|
|
9496
9537
|
const n = At(vo, e.__scopeSelect), [r, o] = H();
|
|
9497
9538
|
return he(() => {
|
|
9498
9539
|
o(new DocumentFragment());
|
|
9499
|
-
}, []), /* @__PURE__ */ _(nt, null, n.open ? /* @__PURE__ */ _(
|
|
9540
|
+
}, []), /* @__PURE__ */ _(nt, null, n.open ? /* @__PURE__ */ _(W$, O({}, e, {
|
|
9500
9541
|
ref: t
|
|
9501
9542
|
})) : r ? /* @__PURE__ */ Lr(/* @__PURE__ */ _(il, {
|
|
9502
9543
|
scope: e.__scopeSelect
|
|
9503
9544
|
}, /* @__PURE__ */ _(Hn.Slot, {
|
|
9504
9545
|
scope: e.__scopeSelect
|
|
9505
9546
|
}, /* @__PURE__ */ _("div", null, e.children))), r) : null);
|
|
9506
|
-
}), et = 10, [il, Lt] = Xt(vo),
|
|
9507
|
-
const { __scopeSelect: n, onCloseAutoFocus: r, ...o } = e, a = At(vo, n), [i, s] = H(null), [l, u] = H(null), [d, f] = H(null),
|
|
9547
|
+
}), et = 10, [il, Lt] = Xt(vo), W$ = /* @__PURE__ */ R((e, t) => {
|
|
9548
|
+
const { __scopeSelect: n, onCloseAutoFocus: r, ...o } = e, a = At(vo, n), [i, s] = H(null), [l, u] = H(null), [d, f] = H(null), $ = ne(
|
|
9508
9549
|
t,
|
|
9509
9550
|
(z) => u(z)
|
|
9510
|
-
), [p, g] = H(null), [b, h] = H(null), y = ho(n), [v, w] = H(!1),
|
|
9551
|
+
), [p, g] = H(null), [b, h] = H(null), y = ho(n), [v, w] = H(!1), m = I(!0), D = I(!1), L = I(!1);
|
|
9511
9552
|
W(() => {
|
|
9512
9553
|
if (l)
|
|
9513
9554
|
return Vr(l);
|
|
@@ -9548,7 +9589,7 @@ const Sm = [
|
|
|
9548
9589
|
]);
|
|
9549
9590
|
i.style.minWidth = Ve + "px", i.style.right = Mt + "px";
|
|
9550
9591
|
}
|
|
9551
|
-
const te = y(), ie = window.innerHeight - et * 2, fe = d.scrollHeight,
|
|
9592
|
+
const te = y(), ie = window.innerHeight - et * 2, fe = d.scrollHeight, me = window.getComputedStyle(l), ge = parseInt(me.borderTopWidth, 10), ze = parseInt(me.paddingTop, 10), qe = parseInt(me.borderBottomWidth, 10), Xe = parseInt(me.paddingBottom, 10), Ze = ge + ze + fe + Xe + qe, ot = Math.min(p.offsetHeight * 5, Ze), Re = window.getComputedStyle(d), Pe = parseInt(Re.paddingTop, 10), Oe = parseInt(Re.paddingBottom, 10), pe = z.top + z.height / 2 - et, be = ie - pe, Ce = p.offsetHeight / 2, Ee = p.offsetTop + Ce, Je = ge + ze + Ee, gt = Ze - Je;
|
|
9552
9593
|
if (Je <= pe) {
|
|
9553
9594
|
const Be = p === te[te.length - 1].ref.current;
|
|
9554
9595
|
i.style.bottom = "0px";
|
|
@@ -9599,7 +9640,7 @@ const Sm = [
|
|
|
9599
9640
|
T
|
|
9600
9641
|
]);
|
|
9601
9642
|
const K = B((z) => {
|
|
9602
|
-
z &&
|
|
9643
|
+
z && m.current === !0 && (j(), T(), m.current = !1);
|
|
9603
9644
|
}, [
|
|
9604
9645
|
j,
|
|
9605
9646
|
T
|
|
@@ -9611,10 +9652,10 @@ const Sm = [
|
|
|
9611
9652
|
y: 0
|
|
9612
9653
|
};
|
|
9613
9654
|
const Y = (Z) => {
|
|
9614
|
-
var te, ie, fe,
|
|
9655
|
+
var te, ie, fe, me;
|
|
9615
9656
|
z = {
|
|
9616
9657
|
x: Math.abs(Math.round(Z.pageX) - ((te = (ie = P.current) === null || ie === void 0 ? void 0 : ie.x) !== null && te !== void 0 ? te : 0)),
|
|
9617
|
-
y: Math.abs(Math.round(Z.pageY) - ((fe = (
|
|
9658
|
+
y: Math.abs(Math.round(Z.pageY) - ((fe = (me = P.current) === null || me === void 0 ? void 0 : me.y) !== null && fe !== void 0 ? fe : 0))
|
|
9618
9659
|
};
|
|
9619
9660
|
}, re = (Z) => {
|
|
9620
9661
|
z.x <= 10 && z.y <= 10 ? Z.preventDefault() : l.contains(Z.target) || S(!1), document.removeEventListener("pointermove", Y), P.current = null;
|
|
@@ -9640,7 +9681,7 @@ const Sm = [
|
|
|
9640
9681
|
}, [
|
|
9641
9682
|
S
|
|
9642
9683
|
]);
|
|
9643
|
-
const [
|
|
9684
|
+
const [X, J] = dl((z) => {
|
|
9644
9685
|
const Y = y().filter(
|
|
9645
9686
|
(te) => !te.disabled
|
|
9646
9687
|
), re = Y.find(
|
|
@@ -9679,7 +9720,7 @@ const Sm = [
|
|
|
9679
9720
|
onScrollButtonChange: K,
|
|
9680
9721
|
isPositioned: v,
|
|
9681
9722
|
shouldExpandOnScrollRef: D,
|
|
9682
|
-
searchRef:
|
|
9723
|
+
searchRef: X
|
|
9683
9724
|
}, /* @__PURE__ */ _(Br, {
|
|
9684
9725
|
as: ut,
|
|
9685
9726
|
allowPinchZoom: !0
|
|
@@ -9703,14 +9744,14 @@ const Sm = [
|
|
|
9703
9744
|
preventScroll: !0
|
|
9704
9745
|
}), z.preventDefault();
|
|
9705
9746
|
})
|
|
9706
|
-
}, /* @__PURE__ */ _(Ut,
|
|
9747
|
+
}, /* @__PURE__ */ _(Ut, O({
|
|
9707
9748
|
role: "listbox",
|
|
9708
9749
|
id: a.contentId,
|
|
9709
9750
|
"data-state": a.open ? "open" : "closed",
|
|
9710
9751
|
dir: a.dir,
|
|
9711
9752
|
onContextMenu: (z) => z.preventDefault()
|
|
9712
9753
|
}, o, {
|
|
9713
|
-
ref:
|
|
9754
|
+
ref: $,
|
|
9714
9755
|
style: {
|
|
9715
9756
|
display: "flex",
|
|
9716
9757
|
flexDirection: "column",
|
|
@@ -9751,15 +9792,15 @@ const Sm = [
|
|
|
9751
9792
|
}
|
|
9752
9793
|
})
|
|
9753
9794
|
}))))));
|
|
9754
|
-
}),
|
|
9755
|
-
const { __scopeSelect: n, ...r } = e, o = Lt(
|
|
9795
|
+
}), H$ = "SelectViewport", K$ = /* @__PURE__ */ R((e, t) => {
|
|
9796
|
+
const { __scopeSelect: n, ...r } = e, o = Lt(H$, n), a = ne(t, o.onViewportChange), i = I(0);
|
|
9756
9797
|
return /* @__PURE__ */ _(nt, null, /* @__PURE__ */ _("style", {
|
|
9757
9798
|
dangerouslySetInnerHTML: {
|
|
9758
9799
|
__html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
|
|
9759
9800
|
}
|
|
9760
9801
|
}), /* @__PURE__ */ _(Hn.Slot, {
|
|
9761
9802
|
scope: n
|
|
9762
|
-
}, /* @__PURE__ */ _(U.div,
|
|
9803
|
+
}, /* @__PURE__ */ _(U.div, O({
|
|
9763
9804
|
"data-radix-select-viewport": "",
|
|
9764
9805
|
role: "presentation"
|
|
9765
9806
|
}, r, {
|
|
@@ -9775,9 +9816,9 @@ const Sm = [
|
|
|
9775
9816
|
if (d != null && d.current && u) {
|
|
9776
9817
|
const f = Math.abs(i.current - l.scrollTop);
|
|
9777
9818
|
if (f > 0) {
|
|
9778
|
-
const
|
|
9779
|
-
if (b <
|
|
9780
|
-
const h = b + f, y = Math.min(
|
|
9819
|
+
const $ = window.innerHeight - et * 2, p = parseFloat(u.style.minHeight), g = parseFloat(u.style.height), b = Math.max(p, g);
|
|
9820
|
+
if (b < $) {
|
|
9821
|
+
const h = b + f, y = Math.min($, h), v = h - y;
|
|
9781
9822
|
u.style.height = y + "px", u.style.bottom === "0px" && (l.scrollTop = v > 0 ? v : 0, u.style.justifyContent = "flex-end");
|
|
9782
9823
|
}
|
|
9783
9824
|
}
|
|
@@ -9785,32 +9826,32 @@ const Sm = [
|
|
|
9785
9826
|
i.current = l.scrollTop;
|
|
9786
9827
|
})
|
|
9787
9828
|
}))));
|
|
9788
|
-
}),
|
|
9829
|
+
}), U$ = "SelectGroup", [j$, G$] = Xt(U$), Y$ = /* @__PURE__ */ R((e, t) => {
|
|
9789
9830
|
const { __scopeSelect: n, ...r } = e, o = Ke();
|
|
9790
|
-
return /* @__PURE__ */ _(
|
|
9831
|
+
return /* @__PURE__ */ _(j$, {
|
|
9791
9832
|
scope: n,
|
|
9792
9833
|
id: o
|
|
9793
|
-
}, /* @__PURE__ */ _(U.div,
|
|
9834
|
+
}, /* @__PURE__ */ _(U.div, O({
|
|
9794
9835
|
role: "group",
|
|
9795
9836
|
"aria-labelledby": o
|
|
9796
9837
|
}, r, {
|
|
9797
9838
|
ref: t
|
|
9798
9839
|
})));
|
|
9799
|
-
}),
|
|
9800
|
-
const { __scopeSelect: n, ...r } = e, o =
|
|
9801
|
-
return /* @__PURE__ */ _(U.div,
|
|
9840
|
+
}), q$ = "SelectLabel", X$ = /* @__PURE__ */ R((e, t) => {
|
|
9841
|
+
const { __scopeSelect: n, ...r } = e, o = G$(q$, n);
|
|
9842
|
+
return /* @__PURE__ */ _(U.div, O({
|
|
9802
9843
|
id: o.id
|
|
9803
9844
|
}, r, {
|
|
9804
9845
|
ref: t
|
|
9805
9846
|
}));
|
|
9806
|
-
}), Ar = "SelectItem", [
|
|
9807
|
-
const { __scopeSelect: n, value: r, disabled: o = !1, textValue: a, ...i } = e, s = At(Ar, n), l = Lt(Ar, n), u = s.value === r, [d, f] = H(a != null ? a : ""), [
|
|
9847
|
+
}), Ar = "SelectItem", [Z$, sl] = Xt(Ar), J$ = /* @__PURE__ */ R((e, t) => {
|
|
9848
|
+
const { __scopeSelect: n, value: r, disabled: o = !1, textValue: a, ...i } = e, s = At(Ar, n), l = Lt(Ar, n), u = s.value === r, [d, f] = H(a != null ? a : ""), [$, p] = H(!1), g = ne(t, (y) => {
|
|
9808
9849
|
var v;
|
|
9809
9850
|
return (v = l.itemRefCallback) === null || v === void 0 ? void 0 : v.call(l, y, r, o);
|
|
9810
9851
|
}), b = Ke(), h = () => {
|
|
9811
9852
|
o || (s.onValueChange(r), s.onOpenChange(!1));
|
|
9812
9853
|
};
|
|
9813
|
-
return /* @__PURE__ */ _(
|
|
9854
|
+
return /* @__PURE__ */ _(Z$, {
|
|
9814
9855
|
scope: n,
|
|
9815
9856
|
value: r,
|
|
9816
9857
|
disabled: o,
|
|
@@ -9827,11 +9868,11 @@ const Sm = [
|
|
|
9827
9868
|
value: r,
|
|
9828
9869
|
disabled: o,
|
|
9829
9870
|
textValue: d
|
|
9830
|
-
}, /* @__PURE__ */ _(U.div,
|
|
9871
|
+
}, /* @__PURE__ */ _(U.div, O({
|
|
9831
9872
|
role: "option",
|
|
9832
9873
|
"aria-labelledby": b,
|
|
9833
|
-
"data-highlighted":
|
|
9834
|
-
"aria-selected": u &&
|
|
9874
|
+
"data-highlighted": $ ? "" : void 0,
|
|
9875
|
+
"aria-selected": u && $,
|
|
9835
9876
|
"data-state": u ? "checked" : "unchecked",
|
|
9836
9877
|
"aria-disabled": o || void 0,
|
|
9837
9878
|
"data-disabled": o ? "" : void 0,
|
|
@@ -9864,11 +9905,11 @@ const Sm = [
|
|
|
9864
9905
|
}),
|
|
9865
9906
|
onKeyDown: V(i.onKeyDown, (y) => {
|
|
9866
9907
|
var v;
|
|
9867
|
-
((v = l.searchRef) === null || v === void 0 ? void 0 : v.current) !== "" && y.key === " " || (
|
|
9908
|
+
((v = l.searchRef) === null || v === void 0 ? void 0 : v.current) !== "" && y.key === " " || (k$.includes(y.key) && h(), y.key === " " && y.preventDefault());
|
|
9868
9909
|
})
|
|
9869
9910
|
}))));
|
|
9870
|
-
}), cn = "SelectItemText",
|
|
9871
|
-
const { __scopeSelect: n, className: r, style: o, ...a } = e, i = At(cn, n), s = Lt(cn, n), l = sl(cn, n), u =
|
|
9911
|
+
}), cn = "SelectItemText", Q$ = /* @__PURE__ */ R((e, t) => {
|
|
9912
|
+
const { __scopeSelect: n, className: r, style: o, ...a } = e, i = At(cn, n), s = Lt(cn, n), l = sl(cn, n), u = I$(cn, n), [d, f] = H(null), $ = ne(
|
|
9872
9913
|
t,
|
|
9873
9914
|
(y) => f(y),
|
|
9874
9915
|
l.onItemTextChange,
|
|
@@ -9892,19 +9933,19 @@ const Sm = [
|
|
|
9892
9933
|
b,
|
|
9893
9934
|
h,
|
|
9894
9935
|
g
|
|
9895
|
-
]), /* @__PURE__ */ _(nt, null, /* @__PURE__ */ _(U.span,
|
|
9936
|
+
]), /* @__PURE__ */ _(nt, null, /* @__PURE__ */ _(U.span, O({
|
|
9896
9937
|
id: l.textId
|
|
9897
9938
|
}, a, {
|
|
9898
|
-
ref:
|
|
9939
|
+
ref: $
|
|
9899
9940
|
})), l.isSelected && i.valueNode && !i.valueNodeHasChildren ? /* @__PURE__ */ Lr(a.children, i.valueNode) : null);
|
|
9900
|
-
}), eg = "SelectItemIndicator", tg = /* @__PURE__ */
|
|
9941
|
+
}), eg = "SelectItemIndicator", tg = /* @__PURE__ */ R((e, t) => {
|
|
9901
9942
|
const { __scopeSelect: n, ...r } = e;
|
|
9902
|
-
return sl(eg, n).isSelected ? /* @__PURE__ */ _(U.span,
|
|
9943
|
+
return sl(eg, n).isSelected ? /* @__PURE__ */ _(U.span, O({
|
|
9903
9944
|
"aria-hidden": !0
|
|
9904
9945
|
}, r, {
|
|
9905
9946
|
ref: t
|
|
9906
9947
|
})) : null;
|
|
9907
|
-
}), ng = "SelectScrollUpButton", rg = /* @__PURE__ */
|
|
9948
|
+
}), ng = "SelectScrollUpButton", rg = /* @__PURE__ */ R((e, t) => {
|
|
9908
9949
|
const n = Lt(ng, e.__scopeSelect), [r, o] = H(!1), a = ne(t, n.onScrollButtonChange);
|
|
9909
9950
|
return he(() => {
|
|
9910
9951
|
if (n.viewport && n.isPositioned) {
|
|
@@ -9918,14 +9959,14 @@ const Sm = [
|
|
|
9918
9959
|
}, [
|
|
9919
9960
|
n.viewport,
|
|
9920
9961
|
n.isPositioned
|
|
9921
|
-
]), r ? /* @__PURE__ */ _(cl,
|
|
9962
|
+
]), r ? /* @__PURE__ */ _(cl, O({}, e, {
|
|
9922
9963
|
ref: a,
|
|
9923
9964
|
onAutoScroll: () => {
|
|
9924
9965
|
const { viewport: i, selectedItem: s } = n;
|
|
9925
9966
|
i && s && (i.scrollTop = i.scrollTop - s.offsetHeight);
|
|
9926
9967
|
}
|
|
9927
9968
|
})) : null;
|
|
9928
|
-
}), og = "SelectScrollDownButton", ag = /* @__PURE__ */
|
|
9969
|
+
}), og = "SelectScrollDownButton", ag = /* @__PURE__ */ R((e, t) => {
|
|
9929
9970
|
const n = Lt(og, e.__scopeSelect), [r, o] = H(!1), a = ne(t, n.onScrollButtonChange);
|
|
9930
9971
|
return he(() => {
|
|
9931
9972
|
if (n.viewport && n.isPositioned) {
|
|
@@ -9939,14 +9980,14 @@ const Sm = [
|
|
|
9939
9980
|
}, [
|
|
9940
9981
|
n.viewport,
|
|
9941
9982
|
n.isPositioned
|
|
9942
|
-
]), r ? /* @__PURE__ */ _(cl,
|
|
9983
|
+
]), r ? /* @__PURE__ */ _(cl, O({}, e, {
|
|
9943
9984
|
ref: a,
|
|
9944
9985
|
onAutoScroll: () => {
|
|
9945
9986
|
const { viewport: i, selectedItem: s } = n;
|
|
9946
9987
|
i && s && (i.scrollTop = i.scrollTop + s.offsetHeight);
|
|
9947
9988
|
}
|
|
9948
9989
|
})) : null;
|
|
9949
|
-
}), cl = /* @__PURE__ */
|
|
9990
|
+
}), cl = /* @__PURE__ */ R((e, t) => {
|
|
9950
9991
|
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, a = Lt("SelectScrollButton", n), i = I(null), s = ho(n), l = B(() => {
|
|
9951
9992
|
i.current !== null && (window.clearInterval(i.current), i.current = null);
|
|
9952
9993
|
}, []);
|
|
@@ -9962,7 +10003,7 @@ const Sm = [
|
|
|
9962
10003
|
});
|
|
9963
10004
|
}, [
|
|
9964
10005
|
s
|
|
9965
|
-
]), /* @__PURE__ */ _(U.div,
|
|
10006
|
+
]), /* @__PURE__ */ _(U.div, O({
|
|
9966
10007
|
"aria-hidden": !0
|
|
9967
10008
|
}, o, {
|
|
9968
10009
|
ref: t,
|
|
@@ -9978,14 +10019,14 @@ const Sm = [
|
|
|
9978
10019
|
l();
|
|
9979
10020
|
})
|
|
9980
10021
|
}));
|
|
9981
|
-
}), ig = /* @__PURE__ */
|
|
10022
|
+
}), ig = /* @__PURE__ */ R((e, t) => {
|
|
9982
10023
|
const { __scopeSelect: n, ...r } = e;
|
|
9983
|
-
return /* @__PURE__ */ _(U.div,
|
|
10024
|
+
return /* @__PURE__ */ _(U.div, O({
|
|
9984
10025
|
"aria-hidden": !0
|
|
9985
10026
|
}, r, {
|
|
9986
10027
|
ref: t
|
|
9987
10028
|
}));
|
|
9988
|
-
}), ll = /* @__PURE__ */
|
|
10029
|
+
}), ll = /* @__PURE__ */ R((e, t) => {
|
|
9989
10030
|
const { value: n, ...r } = e, o = I(null), a = ne(t, o), i = On(n);
|
|
9990
10031
|
return W(() => {
|
|
9991
10032
|
const s = o.current, l = window.HTMLSelectElement.prototype, d = Object.getOwnPropertyDescriptor(l, "value").set;
|
|
@@ -10000,7 +10041,7 @@ const Sm = [
|
|
|
10000
10041
|
n
|
|
10001
10042
|
]), /* @__PURE__ */ _(wn, {
|
|
10002
10043
|
asChild: !0
|
|
10003
|
-
}, /* @__PURE__ */ _("select",
|
|
10044
|
+
}, /* @__PURE__ */ _("select", O({}, r, {
|
|
10004
10045
|
ref: a,
|
|
10005
10046
|
defaultValue: n
|
|
10006
10047
|
})));
|
|
@@ -10044,7 +10085,7 @@ function sg(e, t) {
|
|
|
10044
10085
|
(n, r) => e[(t + r) % e.length]
|
|
10045
10086
|
);
|
|
10046
10087
|
}
|
|
10047
|
-
const cg =
|
|
10088
|
+
const cg = A$, lg = M$, dg = B$, ug = V$, fg = K$, pg = Y$, bg = X$, mg = J$, $g = Q$, gg = tg, hg = rg, vg = ag, _g = ig, yg = k(F$)`
|
|
10048
10089
|
all: unset;
|
|
10049
10090
|
display: flex;
|
|
10050
10091
|
align-items: center;
|
|
@@ -10077,7 +10118,7 @@ const cg = Am, lg = Mm, dg = Bm, ug = Vm, fg = Km, pg = Ym, bg = Xm, $g = Jm, mg
|
|
|
10077
10118
|
color: ${c.color_fill_primary_disabled};
|
|
10078
10119
|
cursor: not-allowed;
|
|
10079
10120
|
}
|
|
10080
|
-
`, xg = k(
|
|
10121
|
+
`, xg = k(z$)`
|
|
10081
10122
|
color: ${c.color_fill_secondary_enabled};
|
|
10082
10123
|
`, wg = k(ug)`
|
|
10083
10124
|
font-family: 'Inter', sans-serif;
|
|
@@ -10101,7 +10142,7 @@ function Tg({
|
|
|
10101
10142
|
})
|
|
10102
10143
|
});
|
|
10103
10144
|
}
|
|
10104
|
-
const Cg = k(
|
|
10145
|
+
const Cg = k(mg)`
|
|
10105
10146
|
all: unset;
|
|
10106
10147
|
font-size: ${c.font_size_100};
|
|
10107
10148
|
line-height: ${c.line_height_129};
|
|
@@ -10159,7 +10200,7 @@ const Cg = k($g)`
|
|
|
10159
10200
|
${fl}
|
|
10160
10201
|
`, Og = k(vg)`
|
|
10161
10202
|
${fl}
|
|
10162
|
-
`, Dg = cg, Ig = yg, Ag = lg, Lg = xg, lv = Pg, dv = pg, Fg = Cg, Ng =
|
|
10203
|
+
`, Dg = cg, Ig = yg, Ag = lg, Lg = xg, lv = Pg, dv = pg, Fg = Cg, Ng = $g, uv = kg, fv = Eg, pv = Sg, Mg = Rg, zg = Og;
|
|
10163
10204
|
function bv({
|
|
10164
10205
|
items: e,
|
|
10165
10206
|
...t
|
|
@@ -10187,10 +10228,10 @@ function bv({
|
|
|
10187
10228
|
})]
|
|
10188
10229
|
});
|
|
10189
10230
|
}
|
|
10190
|
-
const pl = "Switch", [Bg,
|
|
10191
|
-
const { __scopeSwitch: n, name: r, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: u, ...d } = e, [f,
|
|
10231
|
+
const pl = "Switch", [Bg, mv] = we(pl), [Vg, Wg] = Bg(pl), Hg = /* @__PURE__ */ R((e, t) => {
|
|
10232
|
+
const { __scopeSwitch: n, name: r, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: u, ...d } = e, [f, $] = H(null), p = ne(
|
|
10192
10233
|
t,
|
|
10193
|
-
(v) =>
|
|
10234
|
+
(v) => $(v)
|
|
10194
10235
|
), g = I(!1), b = f ? Boolean(f.closest("form")) : !0, [h = !1, y] = Fe({
|
|
10195
10236
|
prop: o,
|
|
10196
10237
|
defaultProp: a,
|
|
@@ -10200,7 +10241,7 @@ const pl = "Switch", [Bg, $v] = we(pl), [Vg, Wg] = Bg(pl), Hg = /* @__PURE__ */
|
|
|
10200
10241
|
scope: n,
|
|
10201
10242
|
checked: h,
|
|
10202
10243
|
disabled: s
|
|
10203
|
-
}, /* @__PURE__ */ _(U.button,
|
|
10244
|
+
}, /* @__PURE__ */ _(U.button, O({
|
|
10204
10245
|
type: "button",
|
|
10205
10246
|
role: "switch",
|
|
10206
10247
|
"aria-checked": h,
|
|
@@ -10228,9 +10269,9 @@ const pl = "Switch", [Bg, $v] = we(pl), [Vg, Wg] = Bg(pl), Hg = /* @__PURE__ */
|
|
|
10228
10269
|
transform: "translateX(-100%)"
|
|
10229
10270
|
}
|
|
10230
10271
|
}));
|
|
10231
|
-
}), Kg = "SwitchThumb", Ug = /* @__PURE__ */
|
|
10272
|
+
}), Kg = "SwitchThumb", Ug = /* @__PURE__ */ R((e, t) => {
|
|
10232
10273
|
const { __scopeSwitch: n, ...r } = e, o = Wg(Kg, n);
|
|
10233
|
-
return /* @__PURE__ */ _(U.span,
|
|
10274
|
+
return /* @__PURE__ */ _(U.span, O({
|
|
10234
10275
|
"data-state": bl(o.checked),
|
|
10235
10276
|
"data-disabled": o.disabled ? "" : void 0
|
|
10236
10277
|
}, r, {
|
|
@@ -10241,16 +10282,16 @@ const pl = "Switch", [Bg, $v] = we(pl), [Vg, Wg] = Bg(pl), Hg = /* @__PURE__ */
|
|
|
10241
10282
|
return W(() => {
|
|
10242
10283
|
const l = a.current, u = window.HTMLInputElement.prototype, f = Object.getOwnPropertyDescriptor(u, "checked").set;
|
|
10243
10284
|
if (i !== n && f) {
|
|
10244
|
-
const
|
|
10285
|
+
const $ = new Event("click", {
|
|
10245
10286
|
bubbles: r
|
|
10246
10287
|
});
|
|
10247
|
-
f.call(l, n), l.dispatchEvent(
|
|
10288
|
+
f.call(l, n), l.dispatchEvent($);
|
|
10248
10289
|
}
|
|
10249
10290
|
}, [
|
|
10250
10291
|
i,
|
|
10251
10292
|
n,
|
|
10252
10293
|
r
|
|
10253
|
-
]), /* @__PURE__ */ _("input",
|
|
10294
|
+
]), /* @__PURE__ */ _("input", O({
|
|
10254
10295
|
type: "checkbox",
|
|
10255
10296
|
"aria-hidden": !0,
|
|
10256
10297
|
defaultChecked: n
|
|
@@ -10330,7 +10371,7 @@ const Gg = Hg, Yg = Ug, qg = k(Gg)`
|
|
|
10330
10371
|
&[data-state='checked'] {
|
|
10331
10372
|
transform: translateX(19px);
|
|
10332
10373
|
}
|
|
10333
|
-
`,
|
|
10374
|
+
`, $v = R((e, t) => {
|
|
10334
10375
|
const {
|
|
10335
10376
|
disabled: n,
|
|
10336
10377
|
...r
|
|
@@ -10391,7 +10432,7 @@ const Kn = k.p`
|
|
|
10391
10432
|
letter-spacing: ${c.letter_spacing_number_small};
|
|
10392
10433
|
line-height: ${c.line_height_number_small};
|
|
10393
10434
|
font-size: ${c.font_size_number_small};
|
|
10394
|
-
`,
|
|
10435
|
+
`, ml = k(Kn)`
|
|
10395
10436
|
letter-spacing: ${c.letter_spacing_number_medium};
|
|
10396
10437
|
line-height: ${c.line_height_number_medium};
|
|
10397
10438
|
font-size: ${c.font_size_number_medium};
|
|
@@ -10402,7 +10443,7 @@ const Kn = k.p`
|
|
|
10402
10443
|
`, ah = {
|
|
10403
10444
|
xsmall: nh,
|
|
10404
10445
|
small: rh,
|
|
10405
|
-
medium:
|
|
10446
|
+
medium: ml,
|
|
10406
10447
|
large: oh
|
|
10407
10448
|
};
|
|
10408
10449
|
function ih({
|
|
@@ -10442,7 +10483,7 @@ function fh({
|
|
|
10442
10483
|
bold: t,
|
|
10443
10484
|
...n
|
|
10444
10485
|
}) {
|
|
10445
|
-
const r = uh[e] ||
|
|
10486
|
+
const r = uh[e] || ml;
|
|
10446
10487
|
return /* @__PURE__ */ E(r, {
|
|
10447
10488
|
...n
|
|
10448
10489
|
});
|
|
@@ -10463,7 +10504,7 @@ const ph = {
|
|
|
10463
10504
|
notice: c.color_text_sentiment_notice,
|
|
10464
10505
|
neutral: c.color_text_sentiment_neutral
|
|
10465
10506
|
}
|
|
10466
|
-
},
|
|
10507
|
+
}, mh = R((e, t) => {
|
|
10467
10508
|
const {
|
|
10468
10509
|
type: n = "body",
|
|
10469
10510
|
textType: r = "normal",
|
|
@@ -10485,14 +10526,15 @@ const ph = {
|
|
|
10485
10526
|
}
|
|
10486
10527
|
);
|
|
10487
10528
|
});
|
|
10488
|
-
|
|
10529
|
+
mh.displayName = "Text";
|
|
10489
10530
|
const Un = k.h1`
|
|
10490
10531
|
font-family: ${c.font_family_inter_display};
|
|
10491
10532
|
font-style: normal;
|
|
10492
10533
|
font-weight: 500; // don't really see value of using tokens for font-weight
|
|
10493
10534
|
margin: 0;
|
|
10494
10535
|
padding-inline: 0;
|
|
10495
|
-
|
|
10536
|
+
color: ${c.color_text_strong};
|
|
10537
|
+
`, $h = k(Un)`
|
|
10496
10538
|
font-size: ${c.font_size_title_large};
|
|
10497
10539
|
letter-spacing: ${c.letter_spacing_title_large};
|
|
10498
10540
|
`, gh = k(Un)`
|
|
@@ -10508,8 +10550,8 @@ const Un = k.h1`
|
|
|
10508
10550
|
xsmall: vh,
|
|
10509
10551
|
small: hh,
|
|
10510
10552
|
medium: gh,
|
|
10511
|
-
large:
|
|
10512
|
-
}, yh =
|
|
10553
|
+
large: $h
|
|
10554
|
+
}, yh = R((e, t) => {
|
|
10513
10555
|
const {
|
|
10514
10556
|
children: n,
|
|
10515
10557
|
size: r,
|
|
@@ -10535,6 +10577,8 @@ export {
|
|
|
10535
10577
|
Mh as AlertDialogTitle,
|
|
10536
10578
|
Wh as AlertDialogTrigger,
|
|
10537
10579
|
fb as BreadcrumbItem,
|
|
10580
|
+
cb as BreadcrumbLink,
|
|
10581
|
+
us as BreadcrumbListItem,
|
|
10538
10582
|
ub as Breadcrumbs,
|
|
10539
10583
|
Sb as Button,
|
|
10540
10584
|
Jh as Checkbox,
|
|
@@ -10549,8 +10593,8 @@ export {
|
|
|
10549
10593
|
qh as Fieldset,
|
|
10550
10594
|
Zh as FormControl,
|
|
10551
10595
|
Z0 as Heading,
|
|
10552
|
-
|
|
10553
|
-
|
|
10596
|
+
am as IconButton,
|
|
10597
|
+
$t as Label,
|
|
10554
10598
|
W0 as NumberFormControl,
|
|
10555
10599
|
Nc as NumberInput,
|
|
10556
10600
|
rb as Popover,
|
|
@@ -10559,7 +10603,7 @@ export {
|
|
|
10559
10603
|
ob as PopoverTrigger,
|
|
10560
10604
|
sv as Radio,
|
|
10561
10605
|
av as RadioGroup,
|
|
10562
|
-
|
|
10606
|
+
E$ as RadioGroupIndicator,
|
|
10563
10607
|
iv as RadioGroupRadio,
|
|
10564
10608
|
Dg as Select,
|
|
10565
10609
|
Tg as SelectContent,
|
|
@@ -10578,17 +10622,17 @@ export {
|
|
|
10578
10622
|
bv as SingleSelect,
|
|
10579
10623
|
Mb as StyledFieldSet,
|
|
10580
10624
|
yg as StyledTrigger,
|
|
10581
|
-
|
|
10582
|
-
|
|
10625
|
+
$v as Switch,
|
|
10626
|
+
mh as Text,
|
|
10583
10627
|
V0 as TextAreaFormControl,
|
|
10584
10628
|
B0 as TextFormControl,
|
|
10585
|
-
|
|
10629
|
+
$s as TextInput,
|
|
10586
10630
|
yh as Title,
|
|
10587
10631
|
rv as Toast,
|
|
10588
10632
|
ev as ToastAction,
|
|
10589
|
-
|
|
10633
|
+
zm as ToastClose,
|
|
10590
10634
|
nv as ToastProvider,
|
|
10591
|
-
|
|
10635
|
+
Vm as ToastSeparator,
|
|
10592
10636
|
tv as ToastViewport,
|
|
10593
10637
|
T0 as Tooltip,
|
|
10594
10638
|
C0 as TooltipContent,
|
|
@@ -10598,6 +10642,6 @@ export {
|
|
|
10598
10642
|
Ka as dialogWidths,
|
|
10599
10643
|
Wa as overlayShow,
|
|
10600
10644
|
uo as useFieldProps,
|
|
10601
|
-
|
|
10645
|
+
mt as useFieldset
|
|
10602
10646
|
};
|
|
10603
10647
|
//# sourceMappingURL=trc-components.es.js.map
|