@ryanodd/design-system 0.1.0-dev2 → 0.1.0-dev3
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/cjs/index.js +8 -8
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +158 -158
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as p, jsxs as U, Fragment as Ce } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import ye, { forwardRef as H, useState as $i, useLayoutEffect as Bi } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as an from "react-dom";
|
|
5
5
|
import Wi from "react-dom";
|
|
6
6
|
const Hi = "_button_w6zk1_1", Vi = "_buttonNotificationDot_w6zk1_143", Fn = {
|
|
7
7
|
button: Hi,
|
|
@@ -114,7 +114,7 @@ const Hi = "_button_w6zk1_1", Vi = "_buttonNotificationDot_w6zk1_143", Fn = {
|
|
|
114
114
|
)
|
|
115
115
|
);
|
|
116
116
|
vo.displayName = "Spinner";
|
|
117
|
-
const
|
|
117
|
+
const cn = H(
|
|
118
118
|
({ className: e, notificationDotText: t, children: n, icon: o, trailingIcon: r, size: i = "medium", variant: a, loading: c, iconOnly: d, ...l }, u) => {
|
|
119
119
|
const f = o ? $n[o] : void 0, h = r ? $n[r] : void 0, v = i === "small" ? "sm" : i === "medium" ? "md" : "lg";
|
|
120
120
|
return /* @__PURE__ */ U(
|
|
@@ -137,13 +137,13 @@ const bt = H(
|
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
|
-
|
|
140
|
+
cn.displayName = "Button";
|
|
141
141
|
function Wn(e, t) {
|
|
142
142
|
if (typeof e == "function")
|
|
143
143
|
return e(t);
|
|
144
144
|
e != null && (e.current = t);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function bt(...e) {
|
|
147
147
|
return (t) => {
|
|
148
148
|
let n = !1;
|
|
149
149
|
const o = e.map((r) => {
|
|
@@ -160,7 +160,7 @@ function Ct(...e) {
|
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
function W(...e) {
|
|
163
|
-
return s.useCallback(
|
|
163
|
+
return s.useCallback(bt(...e), e);
|
|
164
164
|
}
|
|
165
165
|
function Ls(e, t) {
|
|
166
166
|
const n = s.createContext(t), o = (i) => {
|
|
@@ -386,7 +386,7 @@ function Gs(e) {
|
|
|
386
386
|
const { children: r, ...i } = n;
|
|
387
387
|
if (s.isValidElement(r)) {
|
|
388
388
|
const a = Xs(r), c = Ys(i, r.props);
|
|
389
|
-
return r.type !== s.Fragment && (c.ref = o ?
|
|
389
|
+
return r.type !== s.Fragment && (c.ref = o ? bt(o, a) : a), s.cloneElement(r, c);
|
|
390
390
|
}
|
|
391
391
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
392
392
|
});
|
|
@@ -442,9 +442,9 @@ var qs = [
|
|
|
442
442
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
443
443
|
}, {});
|
|
444
444
|
function ln(e, t) {
|
|
445
|
-
e &&
|
|
445
|
+
e && an.flushSync(() => e.dispatchEvent(t));
|
|
446
446
|
}
|
|
447
|
-
var
|
|
447
|
+
var Ct = "Checkbox", [Zs] = fe(Ct), [Qs, un] = Zs(Ct);
|
|
448
448
|
function Js(e) {
|
|
449
449
|
const {
|
|
450
450
|
__scopeCheckbox: t,
|
|
@@ -463,7 +463,7 @@ function Js(e) {
|
|
|
463
463
|
prop: n,
|
|
464
464
|
defaultProp: r ?? !1,
|
|
465
465
|
onChange: d,
|
|
466
|
-
caller:
|
|
466
|
+
caller: Ct
|
|
467
467
|
}), [w, m] = s.useState(null), [g, y] = s.useState(null), b = s.useRef(!1), C = w ? !!a || !!w.closest("form") : (
|
|
468
468
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
469
469
|
!0
|
|
@@ -582,7 +582,7 @@ var Co = s.forwardRef(
|
|
|
582
582
|
);
|
|
583
583
|
}
|
|
584
584
|
);
|
|
585
|
-
Co.displayName =
|
|
585
|
+
Co.displayName = Ct;
|
|
586
586
|
var Eo = "CheckboxIndicator", xo = s.forwardRef(
|
|
587
587
|
(e, t) => {
|
|
588
588
|
const { __scopeCheckbox: n, forceMount: o, ...r } = e, i = un(Eo, n);
|
|
@@ -718,7 +718,7 @@ function ca(e, t = globalThis?.document) {
|
|
|
718
718
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
719
719
|
}, [n, t]);
|
|
720
720
|
}
|
|
721
|
-
var la = "DismissableLayer",
|
|
721
|
+
var la = "DismissableLayer", jt = "dismissableLayer.update", ua = "dismissableLayer.pointerDownOutside", da = "dismissableLayer.focusOutside", Hn, Po = s.createContext({
|
|
722
722
|
layers: /* @__PURE__ */ new Set(),
|
|
723
723
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
724
724
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -750,7 +750,7 @@ var la = "DismissableLayer", Yt = "dismissableLayer.update", ua = "dismissableLa
|
|
|
750
750
|
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), Vn());
|
|
751
751
|
}, [u, l]), s.useEffect(() => {
|
|
752
752
|
const R = () => v({});
|
|
753
|
-
return document.addEventListener(
|
|
753
|
+
return document.addEventListener(jt, R), () => document.removeEventListener(jt, R);
|
|
754
754
|
}, []), /* @__PURE__ */ p(
|
|
755
755
|
I.div,
|
|
756
756
|
{
|
|
@@ -827,14 +827,14 @@ function ma(e, t = globalThis?.document) {
|
|
|
827
827
|
};
|
|
828
828
|
}
|
|
829
829
|
function Vn() {
|
|
830
|
-
const e = new CustomEvent(
|
|
830
|
+
const e = new CustomEvent(jt);
|
|
831
831
|
document.dispatchEvent(e);
|
|
832
832
|
}
|
|
833
833
|
function Mo(e, t, n, { discrete: o }) {
|
|
834
834
|
const r = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
835
835
|
t && r.addEventListener(e, t, { once: !0 }), o ? ln(r, i) : r.dispatchEvent(i);
|
|
836
836
|
}
|
|
837
|
-
var ha = ze, va = _o,
|
|
837
|
+
var ha = ze, va = _o, Lt = "focusScope.autoFocusOnMount", Ft = "focusScope.autoFocusOnUnmount", Kn = { bubbles: !1, cancelable: !0 }, ga = "FocusScope", dn = s.forwardRef((e, t) => {
|
|
838
838
|
const {
|
|
839
839
|
loop: n = !1,
|
|
840
840
|
trapped: o = !1,
|
|
@@ -876,13 +876,13 @@ var ha = ze, va = _o, Ft = "focusScope.autoFocusOnMount", $t = "focusScope.autoF
|
|
|
876
876
|
Gn.add(v);
|
|
877
877
|
const m = document.activeElement;
|
|
878
878
|
if (!c.contains(m)) {
|
|
879
|
-
const y = new CustomEvent(
|
|
880
|
-
c.addEventListener(
|
|
879
|
+
const y = new CustomEvent(Lt, Kn);
|
|
880
|
+
c.addEventListener(Lt, l), c.dispatchEvent(y), y.defaultPrevented || (wa(xa(Ao(c)), { select: !0 }), document.activeElement === m && me(c));
|
|
881
881
|
}
|
|
882
882
|
return () => {
|
|
883
|
-
c.removeEventListener(
|
|
884
|
-
const y = new CustomEvent(
|
|
885
|
-
c.addEventListener(
|
|
883
|
+
c.removeEventListener(Lt, l), setTimeout(() => {
|
|
884
|
+
const y = new CustomEvent(Ft, Kn);
|
|
885
|
+
c.addEventListener(Ft, u), c.dispatchEvent(y), y.defaultPrevented || me(m ?? document.body, { select: !0 }), c.removeEventListener(Ft, u), Gn.remove(v);
|
|
886
886
|
}, 0);
|
|
887
887
|
};
|
|
888
888
|
}
|
|
@@ -969,12 +969,12 @@ var Ra = "Portal", je = s.forwardRef((e, t) => {
|
|
|
969
969
|
return a ? Wi.createPortal(/* @__PURE__ */ p(I.div, { ...o, ref: t }), a) : null;
|
|
970
970
|
});
|
|
971
971
|
je.displayName = Ra;
|
|
972
|
-
var
|
|
972
|
+
var $t = 0;
|
|
973
973
|
function Oo() {
|
|
974
974
|
s.useEffect(() => {
|
|
975
975
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
976
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? jn()), document.body.insertAdjacentElement("beforeend", e[1] ?? jn()),
|
|
977
|
-
|
|
976
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? jn()), document.body.insertAdjacentElement("beforeend", e[1] ?? jn()), $t++, () => {
|
|
977
|
+
$t === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), $t--;
|
|
978
978
|
};
|
|
979
979
|
}, []);
|
|
980
980
|
}
|
|
@@ -1005,7 +1005,7 @@ function Ta(e, t, n) {
|
|
|
1005
1005
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
1006
1006
|
}
|
|
1007
1007
|
var ut = "right-scroll-bar-position", dt = "width-before-scroll-bar", Sa = "with-scroll-bars-hidden", Pa = "--removed-body-scroll-bar-size";
|
|
1008
|
-
function
|
|
1008
|
+
function Bt(e, t) {
|
|
1009
1009
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
1010
1010
|
}
|
|
1011
1011
|
function _a(e, t) {
|
|
@@ -1033,7 +1033,7 @@ var Ma = typeof window < "u" ? s.useLayoutEffect : s.useEffect, Yn = /* @__PURE_
|
|
|
1033
1033
|
function Aa(e, t) {
|
|
1034
1034
|
var n = _a(null, function(o) {
|
|
1035
1035
|
return e.forEach(function(r) {
|
|
1036
|
-
return
|
|
1036
|
+
return Bt(r, o);
|
|
1037
1037
|
});
|
|
1038
1038
|
});
|
|
1039
1039
|
return Ma(function() {
|
|
@@ -1041,9 +1041,9 @@ function Aa(e, t) {
|
|
|
1041
1041
|
if (o) {
|
|
1042
1042
|
var r = new Set(o), i = new Set(e), a = n.current;
|
|
1043
1043
|
r.forEach(function(c) {
|
|
1044
|
-
i.has(c) ||
|
|
1044
|
+
i.has(c) || Bt(c, null);
|
|
1045
1045
|
}), i.forEach(function(c) {
|
|
1046
|
-
r.has(c) ||
|
|
1046
|
+
r.has(c) || Bt(c, a);
|
|
1047
1047
|
});
|
|
1048
1048
|
}
|
|
1049
1049
|
Yn.set(n, e);
|
|
@@ -1125,12 +1125,12 @@ No.isSideCarExport = !0;
|
|
|
1125
1125
|
function Ia(e, t) {
|
|
1126
1126
|
return e.useMedium(t), No;
|
|
1127
1127
|
}
|
|
1128
|
-
var Io = Na(),
|
|
1129
|
-
},
|
|
1128
|
+
var Io = Na(), Wt = function() {
|
|
1129
|
+
}, Et = s.forwardRef(function(e, t) {
|
|
1130
1130
|
var n = s.useRef(null), o = s.useState({
|
|
1131
|
-
onScrollCapture:
|
|
1132
|
-
onWheelCapture:
|
|
1133
|
-
onTouchMoveCapture:
|
|
1131
|
+
onScrollCapture: Wt,
|
|
1132
|
+
onWheelCapture: Wt,
|
|
1133
|
+
onTouchMoveCapture: Wt
|
|
1134
1134
|
}), r = o[0], i = o[1], a = e.forwardProps, c = e.children, d = e.className, l = e.removeScrollBar, u = e.enabled, f = e.shards, h = e.sideCar, v = e.noRelative, w = e.noIsolation, m = e.inert, g = e.allowPinchZoom, y = e.as, b = y === void 0 ? "div" : y, C = e.gapMode, E = Do(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = h, T = Aa([n, t]), R = re(re({}, E), r);
|
|
1135
1135
|
return s.createElement(
|
|
1136
1136
|
s.Fragment,
|
|
@@ -1139,12 +1139,12 @@ var Io = Na(), Ht = function() {
|
|
|
1139
1139
|
a ? s.cloneElement(s.Children.only(c), re(re({}, R), { ref: T })) : s.createElement(b, re({}, R, { className: d, ref: T }), c)
|
|
1140
1140
|
);
|
|
1141
1141
|
});
|
|
1142
|
-
|
|
1142
|
+
Et.defaultProps = {
|
|
1143
1143
|
enabled: !0,
|
|
1144
1144
|
removeScrollBar: !0,
|
|
1145
1145
|
inert: !1
|
|
1146
1146
|
};
|
|
1147
|
-
|
|
1147
|
+
Et.classNames = {
|
|
1148
1148
|
fullWidth: dt,
|
|
1149
1149
|
zeroRight: ut
|
|
1150
1150
|
};
|
|
@@ -1197,11 +1197,11 @@ var Ba = function() {
|
|
|
1197
1197
|
top: 0,
|
|
1198
1198
|
right: 0,
|
|
1199
1199
|
gap: 0
|
|
1200
|
-
},
|
|
1200
|
+
}, Ht = function(e) {
|
|
1201
1201
|
return parseInt(e || "", 10) || 0;
|
|
1202
1202
|
}, Va = function(e) {
|
|
1203
1203
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
1204
|
-
return [
|
|
1204
|
+
return [Ht(n), Ht(o), Ht(r)];
|
|
1205
1205
|
}, Ka = function(e) {
|
|
1206
1206
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
1207
1207
|
return Ha;
|
|
@@ -1273,19 +1273,19 @@ var Ba = function() {
|
|
|
1273
1273
|
return Ka(r);
|
|
1274
1274
|
}, [r]);
|
|
1275
1275
|
return s.createElement(Ua, { styles: Ga(i, !t, r, n ? "" : "!important") });
|
|
1276
|
-
},
|
|
1276
|
+
}, Yt = !1;
|
|
1277
1277
|
if (typeof window < "u")
|
|
1278
1278
|
try {
|
|
1279
1279
|
var ot = Object.defineProperty({}, "passive", {
|
|
1280
1280
|
get: function() {
|
|
1281
|
-
return
|
|
1281
|
+
return Yt = !0, !0;
|
|
1282
1282
|
}
|
|
1283
1283
|
});
|
|
1284
1284
|
window.addEventListener("test", ot, ot), window.removeEventListener("test", ot, ot);
|
|
1285
1285
|
} catch {
|
|
1286
|
-
|
|
1286
|
+
Yt = !1;
|
|
1287
1287
|
}
|
|
1288
|
-
var Se =
|
|
1288
|
+
var Se = Yt ? { passive: !1 } : !1, Ya = function(e) {
|
|
1289
1289
|
return e.tagName === "TEXTAREA";
|
|
1290
1290
|
}, Lo = function(e, t) {
|
|
1291
1291
|
if (!(e instanceof Element))
|
|
@@ -1451,15 +1451,15 @@ function ic(e) {
|
|
|
1451
1451
|
}
|
|
1452
1452
|
const sc = Ia(Io, rc);
|
|
1453
1453
|
var fn = s.forwardRef(function(e, t) {
|
|
1454
|
-
return s.createElement(
|
|
1454
|
+
return s.createElement(Et, re({}, e, { ref: t, sideCar: sc }));
|
|
1455
1455
|
});
|
|
1456
|
-
fn.classNames =
|
|
1456
|
+
fn.classNames = Et.classNames;
|
|
1457
1457
|
var ac = function(e) {
|
|
1458
1458
|
if (typeof document > "u")
|
|
1459
1459
|
return null;
|
|
1460
1460
|
var t = Array.isArray(e) ? e[0] : e;
|
|
1461
1461
|
return t.ownerDocument.body;
|
|
1462
|
-
}, _e = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), st = {},
|
|
1462
|
+
}, _e = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), st = {}, Vt = 0, Bo = function(e) {
|
|
1463
1463
|
return e && (e.host || Bo(e.parentNode));
|
|
1464
1464
|
}, cc = function(e, t) {
|
|
1465
1465
|
return t.map(function(n) {
|
|
@@ -1490,11 +1490,11 @@ var ac = function(e) {
|
|
|
1490
1490
|
}
|
|
1491
1491
|
});
|
|
1492
1492
|
};
|
|
1493
|
-
return u(t), c.clear(),
|
|
1493
|
+
return u(t), c.clear(), Vt++, function() {
|
|
1494
1494
|
a.forEach(function(f) {
|
|
1495
1495
|
var h = _e.get(f) - 1, v = i.get(f) - 1;
|
|
1496
1496
|
_e.set(f, h), i.set(f, v), h || (it.has(f) || f.removeAttribute(o), it.delete(f)), v || f.removeAttribute(n);
|
|
1497
|
-
}),
|
|
1497
|
+
}), Vt--, Vt || (_e = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), st = {});
|
|
1498
1498
|
};
|
|
1499
1499
|
}, Wo = function(e, t, n) {
|
|
1500
1500
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -1502,7 +1502,7 @@ var ac = function(e) {
|
|
|
1502
1502
|
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), lc(o, r, n, "aria-hidden")) : function() {
|
|
1503
1503
|
return null;
|
|
1504
1504
|
};
|
|
1505
|
-
},
|
|
1505
|
+
}, xt = "Dialog", [Ho] = fe(xt), [uc, ne] = Ho(xt), Vo = (e) => {
|
|
1506
1506
|
const {
|
|
1507
1507
|
__scopeDialog: t,
|
|
1508
1508
|
children: n,
|
|
@@ -1514,7 +1514,7 @@ var ac = function(e) {
|
|
|
1514
1514
|
prop: o,
|
|
1515
1515
|
defaultProp: r ?? !1,
|
|
1516
1516
|
onChange: i,
|
|
1517
|
-
caller:
|
|
1517
|
+
caller: xt
|
|
1518
1518
|
});
|
|
1519
1519
|
return /* @__PURE__ */ p(
|
|
1520
1520
|
uc,
|
|
@@ -1533,7 +1533,7 @@ var ac = function(e) {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
);
|
|
1535
1535
|
};
|
|
1536
|
-
Vo.displayName =
|
|
1536
|
+
Vo.displayName = xt;
|
|
1537
1537
|
var Ko = "DialogTrigger", Uo = s.forwardRef(
|
|
1538
1538
|
(e, t) => {
|
|
1539
1539
|
const { __scopeDialog: n, ...o } = e, r = ne(Ko, n), i = W(t, r.triggerRef);
|
|
@@ -1742,7 +1742,7 @@ const Pc = "_dialogOverlay_1flkk_1", _c = "_dialogContent_1flkk_20", Mc = "_dial
|
|
|
1742
1742
|
},
|
|
1743
1743
|
"data-size": "md",
|
|
1744
1744
|
children: [
|
|
1745
|
-
/* @__PURE__ */ p(Sc, { asChild: !0, children: /* @__PURE__ */ p(
|
|
1745
|
+
/* @__PURE__ */ p(Sc, { asChild: !0, children: /* @__PURE__ */ p(cn, { className: `${at.dialogCloseButton}`, variant: "tertiary", iconOnly: !0, children: /* @__PURE__ */ p(ho, {}) }) }),
|
|
1746
1746
|
/* @__PURE__ */ p(Tc, { className: at.dialogTitle, children: n }),
|
|
1747
1747
|
t
|
|
1748
1748
|
]
|
|
@@ -1807,7 +1807,7 @@ const Dc = ["top", "right", "bottom", "left"], ve = Math.min, j = Math.max, mt =
|
|
|
1807
1807
|
start: "end",
|
|
1808
1808
|
end: "start"
|
|
1809
1809
|
};
|
|
1810
|
-
function
|
|
1810
|
+
function Xt(e, t, n) {
|
|
1811
1811
|
return j(e, ve(t, n));
|
|
1812
1812
|
}
|
|
1813
1813
|
function ue(e, t) {
|
|
@@ -1840,9 +1840,9 @@ function Lc(e, t, n) {
|
|
|
1840
1840
|
}
|
|
1841
1841
|
function Fc(e) {
|
|
1842
1842
|
const t = ht(e);
|
|
1843
|
-
return [
|
|
1843
|
+
return [qt(e), t, qt(t)];
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1845
|
+
function qt(e) {
|
|
1846
1846
|
return e.replace(/start|end/g, (t) => Ic[t]);
|
|
1847
1847
|
}
|
|
1848
1848
|
const Jn = ["left", "right"], eo = ["right", "left"], $c = ["top", "bottom"], Bc = ["bottom", "top"];
|
|
@@ -1861,7 +1861,7 @@ function Wc(e, t, n) {
|
|
|
1861
1861
|
function Hc(e, t, n, o) {
|
|
1862
1862
|
const r = ke(e);
|
|
1863
1863
|
let i = Wc(de(e), n === "start", o);
|
|
1864
|
-
return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(
|
|
1864
|
+
return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(qt)))), i;
|
|
1865
1865
|
}
|
|
1866
1866
|
function ht(e) {
|
|
1867
1867
|
return e.replace(/left|right|bottom|top/g, (t) => Nc[t]);
|
|
@@ -2079,7 +2079,7 @@ const Uc = (e) => ({
|
|
|
2079
2079
|
}, v = yn(r), w = wn(v), m = await a.getDimensions(l), g = v === "y", y = g ? "top" : "left", b = g ? "bottom" : "right", C = g ? "clientHeight" : "clientWidth", E = i.reference[w] + i.reference[v] - h[v] - i.floating[w], x = h[v] - i.reference[v], T = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
|
|
2080
2080
|
let R = T ? T[C] : 0;
|
|
2081
2081
|
(!R || !await (a.isElement == null ? void 0 : a.isElement(T))) && (R = c.floating[C] || i.floating[w]);
|
|
2082
|
-
const M = E / 2 - x / 2, N = R / 2 - m[w] / 2 - 1, D = ve(f[y], N), k = ve(f[b], N), B = D, L = R - m[w] - k, P = R / 2 - m[w] / 2 + M, F =
|
|
2082
|
+
const M = E / 2 - x / 2, N = R / 2 - m[w] / 2 - 1, D = ve(f[y], N), k = ve(f[b], N), B = D, L = R - m[w] - k, P = R / 2 - m[w] / 2 + M, F = Xt(B, P, L), O = !d.arrow && ke(r) != null && P !== F && i.reference[w] / 2 - (P < B ? D : k) - m[w] / 2 < 0, $ = O ? P < B ? P - B : P - L : 0;
|
|
2083
2083
|
return {
|
|
2084
2084
|
[v]: h[v] + $,
|
|
2085
2085
|
data: {
|
|
@@ -2308,11 +2308,11 @@ const Yc = function(e) {
|
|
|
2308
2308
|
let v = l[h], w = l[f];
|
|
2309
2309
|
if (i) {
|
|
2310
2310
|
const g = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", b = v + u[g], C = v - u[y];
|
|
2311
|
-
v =
|
|
2311
|
+
v = Xt(b, v, C);
|
|
2312
2312
|
}
|
|
2313
2313
|
if (a) {
|
|
2314
2314
|
const g = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", b = w + u[g], C = w - u[y];
|
|
2315
|
-
w =
|
|
2315
|
+
w = Xt(b, w, C);
|
|
2316
2316
|
}
|
|
2317
2317
|
const m = c.fn({
|
|
2318
2318
|
...t,
|
|
@@ -2415,7 +2415,7 @@ const Yc = function(e) {
|
|
|
2415
2415
|
}
|
|
2416
2416
|
};
|
|
2417
2417
|
};
|
|
2418
|
-
function
|
|
2418
|
+
function Rt() {
|
|
2419
2419
|
return typeof window < "u";
|
|
2420
2420
|
}
|
|
2421
2421
|
function Le(e) {
|
|
@@ -2430,16 +2430,16 @@ function ce(e) {
|
|
|
2430
2430
|
return (t = (ir(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
2431
2431
|
}
|
|
2432
2432
|
function ir(e) {
|
|
2433
|
-
return
|
|
2433
|
+
return Rt() ? e instanceof Node || e instanceof Y(e).Node : !1;
|
|
2434
2434
|
}
|
|
2435
2435
|
function ee(e) {
|
|
2436
|
-
return
|
|
2436
|
+
return Rt() ? e instanceof Element || e instanceof Y(e).Element : !1;
|
|
2437
2437
|
}
|
|
2438
2438
|
function ae(e) {
|
|
2439
|
-
return
|
|
2439
|
+
return Rt() ? e instanceof HTMLElement || e instanceof Y(e).HTMLElement : !1;
|
|
2440
2440
|
}
|
|
2441
2441
|
function ro(e) {
|
|
2442
|
-
return !
|
|
2442
|
+
return !Rt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
|
|
2443
2443
|
}
|
|
2444
2444
|
const Qc = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
2445
2445
|
function Ye(e) {
|
|
@@ -2456,7 +2456,7 @@ function el(e) {
|
|
|
2456
2456
|
return Jc.has(Le(e));
|
|
2457
2457
|
}
|
|
2458
2458
|
const tl = [":popover-open", ":modal"];
|
|
2459
|
-
function
|
|
2459
|
+
function Tt(e) {
|
|
2460
2460
|
return tl.some((t) => {
|
|
2461
2461
|
try {
|
|
2462
2462
|
return e.matches(t);
|
|
@@ -2475,7 +2475,7 @@ function il(e) {
|
|
|
2475
2475
|
for (; ae(t) && !De(t); ) {
|
|
2476
2476
|
if (bn(t))
|
|
2477
2477
|
return t;
|
|
2478
|
-
if (
|
|
2478
|
+
if (Tt(t))
|
|
2479
2479
|
return null;
|
|
2480
2480
|
t = ge(t);
|
|
2481
2481
|
}
|
|
@@ -2491,7 +2491,7 @@ function De(e) {
|
|
|
2491
2491
|
function te(e) {
|
|
2492
2492
|
return Y(e).getComputedStyle(e);
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2494
|
+
function St(e) {
|
|
2495
2495
|
return ee(e) ? {
|
|
2496
2496
|
scrollLeft: e.scrollLeft,
|
|
2497
2497
|
scrollTop: e.scrollTop
|
|
@@ -2521,12 +2521,12 @@ function Ve(e, t, n) {
|
|
|
2521
2521
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2522
2522
|
const r = sr(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = Y(r);
|
|
2523
2523
|
if (i) {
|
|
2524
|
-
const c =
|
|
2524
|
+
const c = Zt(a);
|
|
2525
2525
|
return t.concat(a, a.visualViewport || [], Ye(r) ? r : [], c && n ? Ve(c) : []);
|
|
2526
2526
|
}
|
|
2527
2527
|
return t.concat(r, Ve(r, [], n));
|
|
2528
2528
|
}
|
|
2529
|
-
function
|
|
2529
|
+
function Zt(e) {
|
|
2530
2530
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2531
2531
|
}
|
|
2532
2532
|
function ar(e) {
|
|
@@ -2577,10 +2577,10 @@ function xe(e, t, n, o) {
|
|
|
2577
2577
|
let d = (r.left + c.x) / a.x, l = (r.top + c.y) / a.y, u = r.width / a.x, f = r.height / a.y;
|
|
2578
2578
|
if (i) {
|
|
2579
2579
|
const h = Y(i), v = o && ee(o) ? Y(o) : o;
|
|
2580
|
-
let w = h, m =
|
|
2580
|
+
let w = h, m = Zt(w);
|
|
2581
2581
|
for (; m && o && v !== w; ) {
|
|
2582
2582
|
const g = Oe(m), y = m.getBoundingClientRect(), b = te(m), C = y.left + (m.clientLeft + parseFloat(b.paddingLeft)) * g.x, E = y.top + (m.clientTop + parseFloat(b.paddingTop)) * g.y;
|
|
2583
|
-
d *= g.x, l *= g.y, u *= g.x, f *= g.y, d += C, l += E, w = Y(m), m =
|
|
2583
|
+
d *= g.x, l *= g.y, u *= g.x, f *= g.y, d += C, l += E, w = Y(m), m = Zt(w);
|
|
2584
2584
|
}
|
|
2585
2585
|
}
|
|
2586
2586
|
return vt({
|
|
@@ -2590,12 +2590,12 @@ function xe(e, t, n, o) {
|
|
|
2590
2590
|
y: l
|
|
2591
2591
|
});
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2594
|
-
const n =
|
|
2593
|
+
function Pt(e, t) {
|
|
2594
|
+
const n = St(e).scrollLeft;
|
|
2595
2595
|
return t ? t.left + n : xe(ce(e)).left + n;
|
|
2596
2596
|
}
|
|
2597
2597
|
function lr(e, t) {
|
|
2598
|
-
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft -
|
|
2598
|
+
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Pt(e, n), r = n.top + t.scrollTop;
|
|
2599
2599
|
return {
|
|
2600
2600
|
x: o,
|
|
2601
2601
|
y: r
|
|
@@ -2608,7 +2608,7 @@ function ll(e) {
|
|
|
2608
2608
|
offsetParent: o,
|
|
2609
2609
|
strategy: r
|
|
2610
2610
|
} = e;
|
|
2611
|
-
const i = r === "fixed", a = ce(o), c = t ?
|
|
2611
|
+
const i = r === "fixed", a = ce(o), c = t ? Tt(t.floating) : !1;
|
|
2612
2612
|
if (o === a || c && i)
|
|
2613
2613
|
return n;
|
|
2614
2614
|
let d = {
|
|
@@ -2616,7 +2616,7 @@ function ll(e) {
|
|
|
2616
2616
|
scrollTop: 0
|
|
2617
2617
|
}, l = se(1);
|
|
2618
2618
|
const u = se(0), f = ae(o);
|
|
2619
|
-
if ((f || !f && !i) && ((Le(o) !== "body" || Ye(a)) && (d =
|
|
2619
|
+
if ((f || !f && !i) && ((Le(o) !== "body" || Ye(a)) && (d = St(o)), ae(o))) {
|
|
2620
2620
|
const v = xe(o);
|
|
2621
2621
|
l = Oe(o), u.x = v.x + o.clientLeft, u.y = v.y + o.clientTop;
|
|
2622
2622
|
}
|
|
@@ -2632,8 +2632,8 @@ function ul(e) {
|
|
|
2632
2632
|
return Array.from(e.getClientRects());
|
|
2633
2633
|
}
|
|
2634
2634
|
function dl(e) {
|
|
2635
|
-
const t = ce(e), n =
|
|
2636
|
-
let a = -n.scrollLeft +
|
|
2635
|
+
const t = ce(e), n = St(e), o = e.ownerDocument.body, r = j(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = j(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
2636
|
+
let a = -n.scrollLeft + Pt(e);
|
|
2637
2637
|
const c = -n.scrollTop;
|
|
2638
2638
|
return te(o).direction === "rtl" && (a += j(t.clientWidth, o.clientWidth) - r), {
|
|
2639
2639
|
width: r,
|
|
@@ -2651,7 +2651,7 @@ function fl(e, t) {
|
|
|
2651
2651
|
const u = Cn();
|
|
2652
2652
|
(!u || u && t === "fixed") && (c = r.offsetLeft, d = r.offsetTop);
|
|
2653
2653
|
}
|
|
2654
|
-
const l =
|
|
2654
|
+
const l = Pt(o);
|
|
2655
2655
|
if (l <= 0) {
|
|
2656
2656
|
const u = o.ownerDocument, f = u.body, h = getComputedStyle(f), v = u.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, w = Math.abs(o.clientWidth - f.clientWidth - v);
|
|
2657
2657
|
w <= io && (i -= w);
|
|
@@ -2716,7 +2716,7 @@ function vl(e) {
|
|
|
2716
2716
|
rootBoundary: o,
|
|
2717
2717
|
strategy: r
|
|
2718
2718
|
} = e;
|
|
2719
|
-
const a = [...n === "clippingAncestors" ?
|
|
2719
|
+
const a = [...n === "clippingAncestors" ? Tt(t) ? [] : hl(t, this._c) : [].concat(n), o], c = a[0], d = a.reduce((l, u) => {
|
|
2720
2720
|
const f = so(t, u, r);
|
|
2721
2721
|
return l.top = j(f.top, l.top), l.right = ve(f.right, l.right), l.bottom = ve(f.bottom, l.bottom), l.left = j(f.left, l.left), l;
|
|
2722
2722
|
}, so(t, c, r));
|
|
@@ -2745,10 +2745,10 @@ function wl(e, t, n) {
|
|
|
2745
2745
|
};
|
|
2746
2746
|
const d = se(0);
|
|
2747
2747
|
function l() {
|
|
2748
|
-
d.x =
|
|
2748
|
+
d.x = Pt(r);
|
|
2749
2749
|
}
|
|
2750
2750
|
if (o || !o && !i)
|
|
2751
|
-
if ((Le(t) !== "body" || Ye(r)) && (c =
|
|
2751
|
+
if ((Le(t) !== "body" || Ye(r)) && (c = St(t)), o) {
|
|
2752
2752
|
const v = xe(t, !0, i, t);
|
|
2753
2753
|
d.x = v.x + t.clientLeft, d.y = v.y + t.clientTop;
|
|
2754
2754
|
} else r && l();
|
|
@@ -2761,7 +2761,7 @@ function wl(e, t, n) {
|
|
|
2761
2761
|
height: a.height
|
|
2762
2762
|
};
|
|
2763
2763
|
}
|
|
2764
|
-
function
|
|
2764
|
+
function Kt(e) {
|
|
2765
2765
|
return te(e).position === "static";
|
|
2766
2766
|
}
|
|
2767
2767
|
function ao(e, t) {
|
|
@@ -2774,21 +2774,21 @@ function ao(e, t) {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
function dr(e, t) {
|
|
2776
2776
|
const n = Y(e);
|
|
2777
|
-
if (
|
|
2777
|
+
if (Tt(e))
|
|
2778
2778
|
return n;
|
|
2779
2779
|
if (!ae(e)) {
|
|
2780
2780
|
let r = ge(e);
|
|
2781
2781
|
for (; r && !De(r); ) {
|
|
2782
|
-
if (ee(r) && !
|
|
2782
|
+
if (ee(r) && !Kt(r))
|
|
2783
2783
|
return r;
|
|
2784
2784
|
r = ge(r);
|
|
2785
2785
|
}
|
|
2786
2786
|
return n;
|
|
2787
2787
|
}
|
|
2788
2788
|
let o = ao(e, t);
|
|
2789
|
-
for (; o && el(o) &&
|
|
2789
|
+
for (; o && el(o) && Kt(o); )
|
|
2790
2790
|
o = ao(o, t);
|
|
2791
|
-
return o && De(o) &&
|
|
2791
|
+
return o && De(o) && Kt(o) && !bn(o) ? n : o || il(e) || n;
|
|
2792
2792
|
}
|
|
2793
2793
|
const yl = async function(e) {
|
|
2794
2794
|
const t = this.getOffsetParent || dr, n = this.getDimensions, o = await n(e.floating);
|
|
@@ -2954,7 +2954,7 @@ function lo(e, t) {
|
|
|
2954
2954
|
const n = pr(e);
|
|
2955
2955
|
return Math.round(t * n) / n;
|
|
2956
2956
|
}
|
|
2957
|
-
function
|
|
2957
|
+
function Ut(e) {
|
|
2958
2958
|
const t = s.useRef(e);
|
|
2959
2959
|
return ft(() => {
|
|
2960
2960
|
t.current = e;
|
|
@@ -2987,7 +2987,7 @@ function Nl(e) {
|
|
|
2987
2987
|
A !== T.current && (T.current = A, m(A));
|
|
2988
2988
|
}, []), C = s.useCallback((A) => {
|
|
2989
2989
|
A !== R.current && (R.current = A, y(A));
|
|
2990
|
-
}, []), E = i || w, x = a || g, T = s.useRef(null), R = s.useRef(null), M = s.useRef(u), N = d != null, D =
|
|
2990
|
+
}, []), E = i || w, x = a || g, T = s.useRef(null), R = s.useRef(null), M = s.useRef(u), N = d != null, D = Ut(d), k = Ut(r), B = Ut(l), L = s.useCallback(() => {
|
|
2991
2991
|
if (!T.current || !R.current)
|
|
2992
2992
|
return;
|
|
2993
2993
|
const A = {
|
|
@@ -3004,7 +3004,7 @@ function Nl(e) {
|
|
|
3004
3004
|
// setting it to `true` when `open === false` (must be specified).
|
|
3005
3005
|
isPositioned: B.current !== !1
|
|
3006
3006
|
};
|
|
3007
|
-
P.current && !gt(M.current, V) && (M.current = V,
|
|
3007
|
+
P.current && !gt(M.current, V) && (M.current = V, an.flushSync(() => {
|
|
3008
3008
|
f(V);
|
|
3009
3009
|
}));
|
|
3010
3010
|
});
|
|
@@ -3121,7 +3121,7 @@ var Vl = "Arrow", mr = s.forwardRef((e, t) => {
|
|
|
3121
3121
|
);
|
|
3122
3122
|
});
|
|
3123
3123
|
mr.displayName = Vl;
|
|
3124
|
-
var Kl = mr, xn = "Popper", [hr,
|
|
3124
|
+
var Kl = mr, xn = "Popper", [hr, _t] = fe(xn), [Ul, vr] = hr(xn), gr = (e) => {
|
|
3125
3125
|
const { __scopePopper: t, children: n } = e, [o, r] = s.useState(null);
|
|
3126
3126
|
return /* @__PURE__ */ p(Ul, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
3127
3127
|
};
|
|
@@ -3317,11 +3317,11 @@ function xr(e) {
|
|
|
3317
3317
|
const [t, n = "center"] = e.split("-");
|
|
3318
3318
|
return [t, n];
|
|
3319
3319
|
}
|
|
3320
|
-
var Rr = gr, Tr = yr, Sr = br, Pr = Er,
|
|
3320
|
+
var Rr = gr, Tr = yr, Sr = br, Pr = Er, Gt = "rovingFocusGroup.onEntryFocus", ql = { bubbles: !1, cancelable: !0 }, Xe = "RovingFocusGroup", [Qt, _r, Zl] = vn(Xe), [Ql, Mr] = fe(
|
|
3321
3321
|
Xe,
|
|
3322
3322
|
[Zl]
|
|
3323
3323
|
), [Jl, eu] = Ql(Xe), Ar = s.forwardRef(
|
|
3324
|
-
(e, t) => /* @__PURE__ */ p(
|
|
3324
|
+
(e, t) => /* @__PURE__ */ p(Qt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Qt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(tu, { ...e, ref: t }) }) })
|
|
3325
3325
|
);
|
|
3326
3326
|
Ar.displayName = Xe;
|
|
3327
3327
|
var tu = s.forwardRef((e, t) => {
|
|
@@ -3345,7 +3345,7 @@ var tu = s.forwardRef((e, t) => {
|
|
|
3345
3345
|
return s.useEffect(() => {
|
|
3346
3346
|
const M = h.current;
|
|
3347
3347
|
if (M)
|
|
3348
|
-
return M.addEventListener(
|
|
3348
|
+
return M.addEventListener(Gt, C), () => M.removeEventListener(Gt, C);
|
|
3349
3349
|
}, [C]), /* @__PURE__ */ p(
|
|
3350
3350
|
Jl,
|
|
3351
3351
|
{
|
|
@@ -3381,7 +3381,7 @@ var tu = s.forwardRef((e, t) => {
|
|
|
3381
3381
|
onFocus: _(e.onFocus, (M) => {
|
|
3382
3382
|
const N = !x.current;
|
|
3383
3383
|
if (M.target === M.currentTarget && N && !y) {
|
|
3384
|
-
const D = new CustomEvent(
|
|
3384
|
+
const D = new CustomEvent(Gt, ql);
|
|
3385
3385
|
if (M.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
3386
3386
|
const k = E().filter((O) => O.focusable), B = k.find((O) => O.active), L = k.find((O) => O.id === m), F = [B, L, ...k].filter(
|
|
3387
3387
|
Boolean
|
|
@@ -3410,7 +3410,7 @@ var tu = s.forwardRef((e, t) => {
|
|
|
3410
3410
|
if (o)
|
|
3411
3411
|
return v(), () => w();
|
|
3412
3412
|
}, [o, v, w]), /* @__PURE__ */ p(
|
|
3413
|
-
|
|
3413
|
+
Qt.ItemSlot,
|
|
3414
3414
|
{
|
|
3415
3415
|
scope: n,
|
|
3416
3416
|
id: l,
|
|
@@ -3481,18 +3481,18 @@ function Nr(e, t = !1) {
|
|
|
3481
3481
|
function iu(e, t) {
|
|
3482
3482
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
3483
3483
|
}
|
|
3484
|
-
var su = Ar, au = Dr,
|
|
3485
|
-
ltr: [...
|
|
3486
|
-
rtl: [...
|
|
3484
|
+
var su = Ar, au = Dr, Jt = ["Enter", " "], cu = ["ArrowDown", "PageUp", "Home"], Ir = ["ArrowUp", "PageDown", "End"], lu = [...cu, ...Ir], uu = {
|
|
3485
|
+
ltr: [...Jt, "ArrowRight"],
|
|
3486
|
+
rtl: [...Jt, "ArrowLeft"]
|
|
3487
3487
|
}, du = {
|
|
3488
3488
|
ltr: ["ArrowLeft"],
|
|
3489
3489
|
rtl: ["ArrowRight"]
|
|
3490
3490
|
}, qe = "Menu", [Ke, fu, pu] = vn(qe), [Re, kr] = fe(qe, [
|
|
3491
3491
|
pu,
|
|
3492
|
-
|
|
3492
|
+
_t,
|
|
3493
3493
|
Mr
|
|
3494
|
-
]),
|
|
3495
|
-
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, c =
|
|
3494
|
+
]), Mt = _t(), Lr = Mr(), [mu, Te] = Re(qe), [hu, Ze] = Re(qe), Fr = (e) => {
|
|
3495
|
+
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, c = Mt(t), [d, l] = s.useState(null), u = s.useRef(!1), f = X(i), h = nr(r);
|
|
3496
3496
|
return s.useEffect(() => {
|
|
3497
3497
|
const v = () => {
|
|
3498
3498
|
u.current = !0, document.addEventListener("pointerdown", w, { capture: !0, once: !0 }), document.addEventListener("pointermove", w, { capture: !0, once: !0 });
|
|
@@ -3525,7 +3525,7 @@ var su = Ar, au = Dr, en = ["Enter", " "], cu = ["ArrowDown", "PageUp", "Home"],
|
|
|
3525
3525
|
Fr.displayName = qe;
|
|
3526
3526
|
var vu = "MenuAnchor", Tn = s.forwardRef(
|
|
3527
3527
|
(e, t) => {
|
|
3528
|
-
const { __scopeMenu: n, ...o } = e, r =
|
|
3528
|
+
const { __scopeMenu: n, ...o } = e, r = Mt(n);
|
|
3529
3529
|
return /* @__PURE__ */ p(Tr, { ...r, ...o, ref: t });
|
|
3530
3530
|
}
|
|
3531
3531
|
);
|
|
@@ -3595,7 +3595,7 @@ var Z = "MenuContent", [wu, Pn] = Re(Z), Wr = s.forwardRef(
|
|
|
3595
3595
|
onDismiss: v,
|
|
3596
3596
|
disableOutsideScroll: w,
|
|
3597
3597
|
...m
|
|
3598
|
-
} = e, g = Te(Z, n), y = Ze(Z, n), b =
|
|
3598
|
+
} = e, g = Te(Z, n), y = Ze(Z, n), b = Mt(n), C = Lr(n), E = fu(n), [x, T] = s.useState(null), R = s.useRef(null), M = W(t, R, g.onContentChange), N = s.useRef(0), D = s.useRef(""), k = s.useRef(0), B = s.useRef(null), L = s.useRef("right"), P = s.useRef(0), F = w ? fn : s.Fragment, O = w ? { as: Cu, allowPinchZoom: !0 } : void 0, $ = (S) => {
|
|
3599
3599
|
const V = D.current + S, q = E().filter((K) => !K.disabled), J = document.activeElement, oe = q.find((K) => K.ref.current === J)?.textValue, pe = q.map((K) => K.textValue), et = Nu(pe, V, oe), we = q.find((K) => K.textValue === et)?.ref.current;
|
|
3600
3600
|
(function K(Fe) {
|
|
3601
3601
|
D.current = Fe, window.clearTimeout(N.current), Fe !== "" && (N.current = window.setTimeout(() => K(""), 1e3));
|
|
@@ -3724,7 +3724,7 @@ var xu = "MenuLabel", Hr = s.forwardRef(
|
|
|
3724
3724
|
}
|
|
3725
3725
|
);
|
|
3726
3726
|
Hr.displayName = xu;
|
|
3727
|
-
var wt = "MenuItem", uo = "menu.itemSelect",
|
|
3727
|
+
var wt = "MenuItem", uo = "menu.itemSelect", At = s.forwardRef(
|
|
3728
3728
|
(e, t) => {
|
|
3729
3729
|
const { disabled: n = !1, onSelect: o, ...r } = e, i = s.useRef(null), a = Ze(wt, e.__scopeMenu), c = Pn(wt, e.__scopeMenu), d = W(t, i), l = s.useRef(!1), u = () => {
|
|
3730
3730
|
const f = i.current;
|
|
@@ -3748,13 +3748,13 @@ var wt = "MenuItem", uo = "menu.itemSelect", Ot = s.forwardRef(
|
|
|
3748
3748
|
}),
|
|
3749
3749
|
onKeyDown: _(e.onKeyDown, (f) => {
|
|
3750
3750
|
const h = c.searchRef.current !== "";
|
|
3751
|
-
n || h && f.key === " " ||
|
|
3751
|
+
n || h && f.key === " " || Jt.includes(f.key) && (f.currentTarget.click(), f.preventDefault());
|
|
3752
3752
|
})
|
|
3753
3753
|
}
|
|
3754
3754
|
);
|
|
3755
3755
|
}
|
|
3756
3756
|
);
|
|
3757
|
-
|
|
3757
|
+
At.displayName = wt;
|
|
3758
3758
|
var Vr = s.forwardRef(
|
|
3759
3759
|
(e, t) => {
|
|
3760
3760
|
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = Pn(wt, n), c = Lr(n), d = s.useRef(null), l = W(t, d), [u, f] = s.useState(!1), [h, v] = s.useState("");
|
|
@@ -3797,7 +3797,7 @@ var Vr = s.forwardRef(
|
|
|
3797
3797
|
(e, t) => {
|
|
3798
3798
|
const { checked: n = !1, onCheckedChange: o, ...r } = e;
|
|
3799
3799
|
return /* @__PURE__ */ p(Yr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p(
|
|
3800
|
-
|
|
3800
|
+
At,
|
|
3801
3801
|
{
|
|
3802
3802
|
role: "menuitemcheckbox",
|
|
3803
3803
|
"aria-checked": yt(n) ? "mixed" : n,
|
|
@@ -3829,7 +3829,7 @@ var zr = "MenuRadioItem", jr = s.forwardRef(
|
|
|
3829
3829
|
(e, t) => {
|
|
3830
3830
|
const { value: n, ...o } = e, r = Su(zr, e.__scopeMenu), i = n === r.value;
|
|
3831
3831
|
return /* @__PURE__ */ p(Yr, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ p(
|
|
3832
|
-
|
|
3832
|
+
At,
|
|
3833
3833
|
{
|
|
3834
3834
|
role: "menuitemradio",
|
|
3835
3835
|
"aria-checked": i,
|
|
@@ -3886,7 +3886,7 @@ var _u = "MenuSeparator", qr = s.forwardRef(
|
|
|
3886
3886
|
qr.displayName = _u;
|
|
3887
3887
|
var Mu = "MenuArrow", Zr = s.forwardRef(
|
|
3888
3888
|
(e, t) => {
|
|
3889
|
-
const { __scopeMenu: n, ...o } = e, r =
|
|
3889
|
+
const { __scopeMenu: n, ...o } = e, r = Mt(n);
|
|
3890
3890
|
return /* @__PURE__ */ p(Pr, { ...r, ...o, ref: t });
|
|
3891
3891
|
}
|
|
3892
3892
|
);
|
|
@@ -3910,7 +3910,7 @@ var Au = "MenuSub", [Wf, Qr] = Re(Au), Be = "MenuSubTrigger", Jr = s.forwardRef(
|
|
|
3910
3910
|
"aria-controls": r.contentId,
|
|
3911
3911
|
"data-state": ni(n.open),
|
|
3912
3912
|
...e,
|
|
3913
|
-
ref:
|
|
3913
|
+
ref: bt(t, r.onTriggerChange),
|
|
3914
3914
|
onClick: (f) => {
|
|
3915
3915
|
e.onClick?.(f), !(e.disabled || f.defaultPrevented) && (f.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
3916
3916
|
},
|
|
@@ -4036,10 +4036,10 @@ function ku(e, t) {
|
|
|
4036
4036
|
function Ue(e) {
|
|
4037
4037
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
4038
4038
|
}
|
|
4039
|
-
var Lu = Fr, Fu = Tn, $u = Br, Bu = Wr, Wu = Mn, Hu = Hr, Vu =
|
|
4040
|
-
|
|
4039
|
+
var Lu = Fr, Fu = Tn, $u = Br, Bu = Wr, Wu = Mn, Hu = Hr, Vu = At, Ku = Kr, Uu = Gr, Gu = jr, zu = Xr, ju = qr, Yu = Zr, Xu = Jr, qu = ti, Ot = "DropdownMenu", [Zu] = fe(
|
|
4040
|
+
Ot,
|
|
4041
4041
|
[kr]
|
|
4042
|
-
), z = kr(), [Qu, oi] = Zu(
|
|
4042
|
+
), z = kr(), [Qu, oi] = Zu(Ot), ri = (e) => {
|
|
4043
4043
|
const {
|
|
4044
4044
|
__scopeDropdownMenu: t,
|
|
4045
4045
|
children: n,
|
|
@@ -4052,7 +4052,7 @@ var Lu = Fr, Fu = Tn, $u = Br, Bu = Wr, Wu = Mn, Hu = Hr, Vu = Ot, Ku = Kr, Uu =
|
|
|
4052
4052
|
prop: r,
|
|
4053
4053
|
defaultProp: i ?? !1,
|
|
4054
4054
|
onChange: a,
|
|
4055
|
-
caller:
|
|
4055
|
+
caller: Ot
|
|
4056
4056
|
});
|
|
4057
4057
|
return /* @__PURE__ */ p(
|
|
4058
4058
|
Qu,
|
|
@@ -4069,7 +4069,7 @@ var Lu = Fr, Fu = Tn, $u = Br, Bu = Wr, Wu = Mn, Hu = Hr, Vu = Ot, Ku = Kr, Uu =
|
|
|
4069
4069
|
}
|
|
4070
4070
|
);
|
|
4071
4071
|
};
|
|
4072
|
-
ri.displayName =
|
|
4072
|
+
ri.displayName = Ot;
|
|
4073
4073
|
var ii = "DropdownMenuTrigger", si = s.forwardRef(
|
|
4074
4074
|
(e, t) => {
|
|
4075
4075
|
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = oi(ii, n), a = z(n);
|
|
@@ -4085,7 +4085,7 @@ var ii = "DropdownMenuTrigger", si = s.forwardRef(
|
|
|
4085
4085
|
"data-disabled": o ? "" : void 0,
|
|
4086
4086
|
disabled: o,
|
|
4087
4087
|
...r,
|
|
4088
|
-
ref:
|
|
4088
|
+
ref: bt(t, i.triggerRef),
|
|
4089
4089
|
onPointerDown: _(e.onPointerDown, (c) => {
|
|
4090
4090
|
!o && c.button === 0 && c.ctrlKey === !1 && (i.onOpenToggle(), i.open || c.preventDefault());
|
|
4091
4091
|
}),
|
|
@@ -4212,17 +4212,17 @@ var wd = "DropdownMenuSubContent", yd = s.forwardRef((e, t) => {
|
|
|
4212
4212
|
});
|
|
4213
4213
|
yd.displayName = wd;
|
|
4214
4214
|
var bd = ri, Cd = si, Ed = ai, xd = li, Rd = ui, Td = di;
|
|
4215
|
-
const Sd = "_menuButtonContent_boy14_1", Pd = "_menuButtonItem_boy14_10", _d = "_menuButtonArrow_boy14_42",
|
|
4215
|
+
const Sd = "_menuButtonContent_boy14_1", Pd = "_menuButtonItem_boy14_10", _d = "_menuButtonArrow_boy14_42", en = {
|
|
4216
4216
|
menuButtonContent: Sd,
|
|
4217
4217
|
menuButtonItem: Pd,
|
|
4218
4218
|
menuButtonArrow: _d
|
|
4219
|
-
}, Hf = ({ children: e,
|
|
4220
|
-
/* @__PURE__ */ p(Cd, { asChild: !0, children:
|
|
4221
|
-
/* @__PURE__ */ p(Ed, { children: /* @__PURE__ */ U(xd, { align: "end", className:
|
|
4219
|
+
}, Hf = ({ children: e, trigger: t, ...n }) => /* @__PURE__ */ U(bd, { modal: !1, ...n, children: [
|
|
4220
|
+
/* @__PURE__ */ p(Cd, { asChild: !0, children: t }),
|
|
4221
|
+
/* @__PURE__ */ p(Ed, { children: /* @__PURE__ */ U(xd, { align: "end", className: en.menuButtonContent, sideOffset: 5, children: [
|
|
4222
4222
|
e,
|
|
4223
|
-
/* @__PURE__ */ p(Td, { className:
|
|
4223
|
+
/* @__PURE__ */ p(Td, { className: en.menuButtonArrow })
|
|
4224
4224
|
] }) })
|
|
4225
|
-
] }), Vf = ({ children: e, ...t }) => /* @__PURE__ */ p(Rd, { className:
|
|
4225
|
+
] }), Vf = ({ children: e, ...t }) => /* @__PURE__ */ p(Rd, { className: en.menuButtonItem, ...t, children: e });
|
|
4226
4226
|
var Md = Object.freeze({
|
|
4227
4227
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
4228
4228
|
position: "absolute",
|
|
@@ -4235,7 +4235,7 @@ var Md = Object.freeze({
|
|
|
4235
4235
|
clip: "rect(0, 0, 0, 0)",
|
|
4236
4236
|
whiteSpace: "nowrap",
|
|
4237
4237
|
wordWrap: "normal"
|
|
4238
|
-
}), Ad = "VisuallyHidden",
|
|
4238
|
+
}), Ad = "VisuallyHidden", Dt = s.forwardRef(
|
|
4239
4239
|
(e, t) => /* @__PURE__ */ p(
|
|
4240
4240
|
I.span,
|
|
4241
4241
|
{
|
|
@@ -4245,8 +4245,8 @@ var Md = Object.freeze({
|
|
|
4245
4245
|
}
|
|
4246
4246
|
)
|
|
4247
4247
|
);
|
|
4248
|
-
|
|
4249
|
-
var Od =
|
|
4248
|
+
Dt.displayName = Ad;
|
|
4249
|
+
var Od = Dt, Dn = "ToastProvider", [Nn, Dd, Nd] = vn("Toast"), [fi] = fe("Toast", [Nd]), [Id, Nt] = fi(Dn), pi = (e) => {
|
|
4250
4250
|
const {
|
|
4251
4251
|
__scopeToast: t,
|
|
4252
4252
|
label: n = "Notification",
|
|
@@ -4277,14 +4277,14 @@ var Od = Nt, Dn = "ToastProvider", [Nn, Dd, Nd] = vn("Toast"), [fi] = fe("Toast"
|
|
|
4277
4277
|
) });
|
|
4278
4278
|
};
|
|
4279
4279
|
pi.displayName = Dn;
|
|
4280
|
-
var mi = "ToastViewport", kd = ["F8"],
|
|
4280
|
+
var mi = "ToastViewport", kd = ["F8"], tn = "toast.viewportPause", nn = "toast.viewportResume", hi = s.forwardRef(
|
|
4281
4281
|
(e, t) => {
|
|
4282
4282
|
const {
|
|
4283
4283
|
__scopeToast: n,
|
|
4284
4284
|
hotkey: o = kd,
|
|
4285
4285
|
label: r = "Notifications ({hotkey})",
|
|
4286
4286
|
...i
|
|
4287
|
-
} = e, a =
|
|
4287
|
+
} = e, a = Nt(mi, n), c = Dd(n), d = s.useRef(null), l = s.useRef(null), u = s.useRef(null), f = s.useRef(null), h = W(t, f, a.onViewportChange), v = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), w = a.toastCount > 0;
|
|
4288
4288
|
s.useEffect(() => {
|
|
4289
4289
|
const g = (y) => {
|
|
4290
4290
|
o.length !== 0 && o.every((C) => y[C] || y.code === C) && f.current?.focus();
|
|
@@ -4295,12 +4295,12 @@ var mi = "ToastViewport", kd = ["F8"], nn = "toast.viewportPause", on = "toast.v
|
|
|
4295
4295
|
if (w && g && y) {
|
|
4296
4296
|
const b = () => {
|
|
4297
4297
|
if (!a.isClosePausedRef.current) {
|
|
4298
|
-
const T = new CustomEvent(
|
|
4298
|
+
const T = new CustomEvent(tn);
|
|
4299
4299
|
y.dispatchEvent(T), a.isClosePausedRef.current = !0;
|
|
4300
4300
|
}
|
|
4301
4301
|
}, C = () => {
|
|
4302
4302
|
if (a.isClosePausedRef.current) {
|
|
4303
|
-
const T = new CustomEvent(
|
|
4303
|
+
const T = new CustomEvent(nn);
|
|
4304
4304
|
y.dispatchEvent(T), a.isClosePausedRef.current = !1;
|
|
4305
4305
|
}
|
|
4306
4306
|
}, E = (T) => {
|
|
@@ -4335,7 +4335,7 @@ var mi = "ToastViewport", kd = ["F8"], nn = "toast.viewportPause", on = "toast.v
|
|
|
4335
4335
|
return;
|
|
4336
4336
|
}
|
|
4337
4337
|
const N = m({ tabbingDirection: T ? "backwards" : "forwards" }), D = N.findIndex((k) => k === x);
|
|
4338
|
-
|
|
4338
|
+
zt(N.slice(D + 1)) ? b.preventDefault() : T ? l.current?.focus() : u.current?.focus();
|
|
4339
4339
|
}
|
|
4340
4340
|
};
|
|
4341
4341
|
return g.addEventListener("keydown", y), () => g.removeEventListener("keydown", y);
|
|
@@ -4350,27 +4350,27 @@ var mi = "ToastViewport", kd = ["F8"], nn = "toast.viewportPause", on = "toast.v
|
|
|
4350
4350
|
style: { pointerEvents: w ? void 0 : "none" },
|
|
4351
4351
|
children: [
|
|
4352
4352
|
w && /* @__PURE__ */ p(
|
|
4353
|
-
|
|
4353
|
+
on,
|
|
4354
4354
|
{
|
|
4355
4355
|
ref: l,
|
|
4356
4356
|
onFocusFromOutsideViewport: () => {
|
|
4357
4357
|
const g = m({
|
|
4358
4358
|
tabbingDirection: "forwards"
|
|
4359
4359
|
});
|
|
4360
|
-
|
|
4360
|
+
zt(g);
|
|
4361
4361
|
}
|
|
4362
4362
|
}
|
|
4363
4363
|
),
|
|
4364
4364
|
/* @__PURE__ */ p(Nn.Slot, { scope: n, children: /* @__PURE__ */ p(I.ol, { tabIndex: -1, ...i, ref: h }) }),
|
|
4365
4365
|
w && /* @__PURE__ */ p(
|
|
4366
|
-
|
|
4366
|
+
on,
|
|
4367
4367
|
{
|
|
4368
4368
|
ref: u,
|
|
4369
4369
|
onFocusFromOutsideViewport: () => {
|
|
4370
4370
|
const g = m({
|
|
4371
4371
|
tabbingDirection: "backwards"
|
|
4372
4372
|
});
|
|
4373
|
-
|
|
4373
|
+
zt(g);
|
|
4374
4374
|
}
|
|
4375
4375
|
}
|
|
4376
4376
|
)
|
|
@@ -4380,11 +4380,11 @@ var mi = "ToastViewport", kd = ["F8"], nn = "toast.viewportPause", on = "toast.v
|
|
|
4380
4380
|
}
|
|
4381
4381
|
);
|
|
4382
4382
|
hi.displayName = mi;
|
|
4383
|
-
var vi = "ToastFocusProxy",
|
|
4383
|
+
var vi = "ToastFocusProxy", on = s.forwardRef(
|
|
4384
4384
|
(e, t) => {
|
|
4385
|
-
const { __scopeToast: n, onFocusFromOutsideViewport: o, ...r } = e, i =
|
|
4385
|
+
const { __scopeToast: n, onFocusFromOutsideViewport: o, ...r } = e, i = Nt(vi, n);
|
|
4386
4386
|
return /* @__PURE__ */ p(
|
|
4387
|
-
|
|
4387
|
+
Dt,
|
|
4388
4388
|
{
|
|
4389
4389
|
tabIndex: 0,
|
|
4390
4390
|
...r,
|
|
@@ -4398,7 +4398,7 @@ var vi = "ToastFocusProxy", rn = s.forwardRef(
|
|
|
4398
4398
|
);
|
|
4399
4399
|
}
|
|
4400
4400
|
);
|
|
4401
|
-
|
|
4401
|
+
on.displayName = vi;
|
|
4402
4402
|
var Qe = "Toast", Ld = "toast.swipeStart", Fd = "toast.swipeMove", $d = "toast.swipeCancel", Bd = "toast.swipeEnd", gi = s.forwardRef(
|
|
4403
4403
|
(e, t) => {
|
|
4404
4404
|
const { forceMount: n, open: o, defaultOpen: r, onOpenChange: i, ...a } = e, [c, d] = Ie({
|
|
@@ -4454,7 +4454,7 @@ var [Wd, Hd] = fi(Qe, {
|
|
|
4454
4454
|
onSwipeCancel: h,
|
|
4455
4455
|
onSwipeEnd: v,
|
|
4456
4456
|
...w
|
|
4457
|
-
} = e, m =
|
|
4457
|
+
} = e, m = Nt(Qe, n), [g, y] = s.useState(null), b = W(t, (P) => y(P)), C = s.useRef(null), E = s.useRef(null), x = r || m.duration, T = s.useRef(0), R = s.useRef(x), M = s.useRef(0), { onToastAdd: N, onToastRemove: D } = m, k = X(() => {
|
|
4458
4458
|
g?.contains(document.activeElement) && m.viewport?.focus(), a();
|
|
4459
4459
|
}), B = s.useCallback(
|
|
4460
4460
|
(P) => {
|
|
@@ -4471,8 +4471,8 @@ var [Wd, Hd] = fi(Qe, {
|
|
|
4471
4471
|
const $ = (/* @__PURE__ */ new Date()).getTime() - T.current;
|
|
4472
4472
|
R.current = R.current - $, window.clearTimeout(M.current), d?.();
|
|
4473
4473
|
};
|
|
4474
|
-
return P.addEventListener(
|
|
4475
|
-
P.removeEventListener(
|
|
4474
|
+
return P.addEventListener(tn, O), P.addEventListener(nn, F), () => {
|
|
4475
|
+
P.removeEventListener(tn, O), P.removeEventListener(nn, F);
|
|
4476
4476
|
};
|
|
4477
4477
|
}
|
|
4478
4478
|
}, [m.viewport, x, d, l, B]), s.useEffect(() => {
|
|
@@ -4489,7 +4489,7 @@ var [Wd, Hd] = fi(Qe, {
|
|
|
4489
4489
|
children: L
|
|
4490
4490
|
}
|
|
4491
4491
|
),
|
|
4492
|
-
/* @__PURE__ */ p(Wd, { scope: n, onClose: k, children:
|
|
4492
|
+
/* @__PURE__ */ p(Wd, { scope: n, onClose: k, children: an.createPortal(
|
|
4493
4493
|
/* @__PURE__ */ p(Nn.ItemSlot, { scope: n, children: /* @__PURE__ */ p(
|
|
4494
4494
|
ha,
|
|
4495
4495
|
{
|
|
@@ -4548,11 +4548,11 @@ var [Wd, Hd] = fi(Qe, {
|
|
|
4548
4548
|
] }) : null;
|
|
4549
4549
|
}
|
|
4550
4550
|
), Kd = (e) => {
|
|
4551
|
-
const { __scopeToast: t, children: n, ...o } = e, r =
|
|
4551
|
+
const { __scopeToast: t, children: n, ...o } = e, r = Nt(Qe, t), [i, a] = s.useState(!1), [c, d] = s.useState(!1);
|
|
4552
4552
|
return zd(() => a(!0)), s.useEffect(() => {
|
|
4553
4553
|
const l = window.setTimeout(() => d(!0), 1e3);
|
|
4554
4554
|
return () => window.clearTimeout(l);
|
|
4555
|
-
}, []), c ? null : /* @__PURE__ */ p(je, { asChild: !0, children: /* @__PURE__ */ p(
|
|
4555
|
+
}, []), c ? null : /* @__PURE__ */ p(je, { asChild: !0, children: /* @__PURE__ */ p(Dt, { ...o, children: i && /* @__PURE__ */ U(Ce, { children: [
|
|
4556
4556
|
r.label,
|
|
4557
4557
|
" ",
|
|
4558
4558
|
n
|
|
@@ -4652,7 +4652,7 @@ function Yd(e) {
|
|
|
4652
4652
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
4653
4653
|
return t;
|
|
4654
4654
|
}
|
|
4655
|
-
function
|
|
4655
|
+
function zt(e) {
|
|
4656
4656
|
const t = document.activeElement;
|
|
4657
4657
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
4658
4658
|
}
|
|
@@ -4672,13 +4672,13 @@ const lf = H(
|
|
|
4672
4672
|
t && /* @__PURE__ */ p(Jd, { className: Me.toastDescription, children: t })
|
|
4673
4673
|
] }),
|
|
4674
4674
|
n && /* @__PURE__ */ p(ef, { className: Me.toastAction, asChild: !0, altText: "Toast action", children: n }),
|
|
4675
|
-
/* @__PURE__ */ p(tf, { asChild: !0, children: /* @__PURE__ */ p(
|
|
4675
|
+
/* @__PURE__ */ p(tf, { asChild: !0, children: /* @__PURE__ */ p(cn, { variant: "tertiary", iconOnly: !0, icon: "Close" }) })
|
|
4676
4676
|
] })
|
|
4677
4677
|
);
|
|
4678
4678
|
lf.displayName = "Toast";
|
|
4679
|
-
var [
|
|
4680
|
-
|
|
4681
|
-
]),
|
|
4679
|
+
var [It] = fe("Tooltip", [
|
|
4680
|
+
_t
|
|
4681
|
+
]), kt = _t(), Ti = "TooltipProvider", uf = 700, rn = "tooltip.open", [df, kn] = It(Ti), Si = (e) => {
|
|
4682
4682
|
const {
|
|
4683
4683
|
__scopeTooltip: t,
|
|
4684
4684
|
delayDuration: n = uf,
|
|
@@ -4714,7 +4714,7 @@ var [kt] = fe("Tooltip", [
|
|
|
4714
4714
|
);
|
|
4715
4715
|
};
|
|
4716
4716
|
Si.displayName = Ti;
|
|
4717
|
-
var Ge = "Tooltip", [ff, Je] =
|
|
4717
|
+
var Ge = "Tooltip", [ff, Je] = It(Ge), Pi = (e) => {
|
|
4718
4718
|
const {
|
|
4719
4719
|
__scopeTooltip: t,
|
|
4720
4720
|
children: n,
|
|
@@ -4723,11 +4723,11 @@ var Ge = "Tooltip", [ff, Je] = kt(Ge), Pi = (e) => {
|
|
|
4723
4723
|
onOpenChange: i,
|
|
4724
4724
|
disableHoverableContent: a,
|
|
4725
4725
|
delayDuration: c
|
|
4726
|
-
} = e, d = kn(Ge, e.__scopeTooltip), l =
|
|
4726
|
+
} = e, d = kn(Ge, e.__scopeTooltip), l = kt(t), [u, f] = s.useState(null), h = be(), v = s.useRef(0), w = a ?? d.disableHoverableContent, m = c ?? d.delayDuration, g = s.useRef(!1), [y, b] = Ie({
|
|
4727
4727
|
prop: o,
|
|
4728
4728
|
defaultProp: r ?? !1,
|
|
4729
4729
|
onChange: (R) => {
|
|
4730
|
-
R ? (d.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
4730
|
+
R ? (d.onOpen(), document.dispatchEvent(new CustomEvent(rn))) : d.onClose(), i?.(R);
|
|
4731
4731
|
},
|
|
4732
4732
|
caller: Ge
|
|
4733
4733
|
}), C = s.useMemo(() => y ? g.current ? "delayed-open" : "instant-open" : "closed", [y]), E = s.useCallback(() => {
|
|
@@ -4764,9 +4764,9 @@ var Ge = "Tooltip", [ff, Je] = kt(Ge), Pi = (e) => {
|
|
|
4764
4764
|
) });
|
|
4765
4765
|
};
|
|
4766
4766
|
Pi.displayName = Ge;
|
|
4767
|
-
var
|
|
4767
|
+
var sn = "TooltipTrigger", _i = s.forwardRef(
|
|
4768
4768
|
(e, t) => {
|
|
4769
|
-
const { __scopeTooltip: n, ...o } = e, r = Je(
|
|
4769
|
+
const { __scopeTooltip: n, ...o } = e, r = Je(sn, n), i = kn(sn, n), a = kt(n), c = s.useRef(null), d = W(t, c, r.onTriggerChange), l = s.useRef(!1), u = s.useRef(!1), f = s.useCallback(() => l.current = !1, []);
|
|
4770
4770
|
return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ p(Tr, { asChild: !0, ...a, children: /* @__PURE__ */ p(
|
|
4771
4771
|
I.button,
|
|
4772
4772
|
{
|
|
@@ -4792,8 +4792,8 @@ var an = "TooltipTrigger", _i = s.forwardRef(
|
|
|
4792
4792
|
) });
|
|
4793
4793
|
}
|
|
4794
4794
|
);
|
|
4795
|
-
_i.displayName =
|
|
4796
|
-
var Ln = "TooltipPortal", [pf, mf] =
|
|
4795
|
+
_i.displayName = sn;
|
|
4796
|
+
var Ln = "TooltipPortal", [pf, mf] = It(Ln, {
|
|
4797
4797
|
forceMount: void 0
|
|
4798
4798
|
}), Mi = (e) => {
|
|
4799
4799
|
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, i = Je(Ln, t);
|
|
@@ -4831,7 +4831,7 @@ var Ne = "TooltipContent", Ai = s.forwardRef(
|
|
|
4831
4831
|
return document.addEventListener("pointermove", w), () => document.removeEventListener("pointermove", w);
|
|
4832
4832
|
}
|
|
4833
4833
|
}, [d, u, a, l, h]), /* @__PURE__ */ p(Oi, { ...e, ref: i });
|
|
4834
|
-
}), [vf, gf] =
|
|
4834
|
+
}), [vf, gf] = It(Ge, { isInside: !1 }), wf = /* @__PURE__ */ zs("TooltipContent"), Oi = s.forwardRef(
|
|
4835
4835
|
(e, t) => {
|
|
4836
4836
|
const {
|
|
4837
4837
|
__scopeTooltip: n,
|
|
@@ -4840,8 +4840,8 @@ var Ne = "TooltipContent", Ai = s.forwardRef(
|
|
|
4840
4840
|
onEscapeKeyDown: i,
|
|
4841
4841
|
onPointerDownOutside: a,
|
|
4842
4842
|
...c
|
|
4843
|
-
} = e, d = Je(Ne, n), l =
|
|
4844
|
-
return s.useEffect(() => (document.addEventListener(
|
|
4843
|
+
} = e, d = Je(Ne, n), l = kt(n), { onClose: u } = d;
|
|
4844
|
+
return s.useEffect(() => (document.addEventListener(rn, u), () => document.removeEventListener(rn, u)), [u]), s.useEffect(() => {
|
|
4845
4845
|
if (d.trigger) {
|
|
4846
4846
|
const f = (h) => {
|
|
4847
4847
|
h.target?.contains(d.trigger) && u();
|
|
@@ -4885,7 +4885,7 @@ var Ne = "TooltipContent", Ai = s.forwardRef(
|
|
|
4885
4885
|
Ai.displayName = Ne;
|
|
4886
4886
|
var Di = "TooltipArrow", Ni = s.forwardRef(
|
|
4887
4887
|
(e, t) => {
|
|
4888
|
-
const { __scopeTooltip: n, ...o } = e, r =
|
|
4888
|
+
const { __scopeTooltip: n, ...o } = e, r = kt(n);
|
|
4889
4889
|
return gf(
|
|
4890
4890
|
Di,
|
|
4891
4891
|
n
|
|
@@ -5014,7 +5014,7 @@ function Gf({ children: e, content: t, open: n, defaultOpen: o, onOpenChange: r,
|
|
|
5014
5014
|
export {
|
|
5015
5015
|
Cs as ArrowLeft,
|
|
5016
5016
|
Es as ArrowRight,
|
|
5017
|
-
|
|
5017
|
+
cn as Button,
|
|
5018
5018
|
mo as Check,
|
|
5019
5019
|
Ff as Checkbox,
|
|
5020
5020
|
xs as Circle,
|