highsoft-ui 1.0.6 → 1.0.7
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/README.md +2 -2
- package/dist/components/Button/index.js +30 -31
- package/dist/components/GPTInput/index.js +26 -26
- package/dist/components/Header/index.js +67 -67
- package/dist/components/Notification/index.js +15 -15
- package/dist/components/PrefPanel/index.js +91 -91
- package/dist/highsoft-ui.css +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.js +6 -5
- package/dist/php-client.d.ts +2 -0
- package/dist/php-client.js +38 -0
- package/dist/php.d.ts +0 -1
- package/dist/php.js +1356 -1391
- package/dist/scss/variables.scss +288 -0
- package/package.json +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as C, jsxs as J, Fragment as
|
|
1
|
+
import { jsx as C, jsxs as J, Fragment as Ut } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import { useState as
|
|
3
|
+
import { useState as zt, useLayoutEffect as Jn, useEffect as Yt } from "react";
|
|
4
4
|
import { z as er } from "../../index-CMegByeX.js";
|
|
5
5
|
import { _ as xe } from "../../extends-hS2Bh-Yp.js";
|
|
6
6
|
import { c as tr } from "../../clsx-OuTLNxxd.js";
|
|
@@ -500,7 +500,7 @@ function Gt(e, t, n, { discrete: r }) {
|
|
|
500
500
|
const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
501
501
|
t && o.addEventListener(e, t, { once: !0 }), r ? yr(o, i) : o.dispatchEvent(i);
|
|
502
502
|
}
|
|
503
|
-
var
|
|
503
|
+
var je = "focusScope.autoFocusOnMount", Ue = "focusScope.autoFocusOnUnmount", St = { bubbles: !1, cancelable: !0 }, Wr = "FocusScope", Qt = a.forwardRef((e, t) => {
|
|
504
504
|
const {
|
|
505
505
|
loop: n = !1,
|
|
506
506
|
trapped: r = !1,
|
|
@@ -542,13 +542,13 @@ var Ve = "focusScope.autoFocusOnMount", je = "focusScope.autoFocusOnUnmount", St
|
|
|
542
542
|
Ot.add(m);
|
|
543
543
|
const h = document.activeElement;
|
|
544
544
|
if (!c.contains(h)) {
|
|
545
|
-
const y = new CustomEvent(
|
|
546
|
-
c.addEventListener(
|
|
545
|
+
const y = new CustomEvent(je, St);
|
|
546
|
+
c.addEventListener(je, l), c.dispatchEvent(y), y.defaultPrevented || (Br(Ur(Jt(c)), { select: !0 }), document.activeElement === h && Q(c));
|
|
547
547
|
}
|
|
548
548
|
return () => {
|
|
549
|
-
c.removeEventListener(
|
|
550
|
-
const y = new CustomEvent(
|
|
551
|
-
c.addEventListener(
|
|
549
|
+
c.removeEventListener(je, l), setTimeout(() => {
|
|
550
|
+
const y = new CustomEvent(Ue, St);
|
|
551
|
+
c.addEventListener(Ue, f), c.dispatchEvent(y), y.defaultPrevented || Q(h ?? document.body, { select: !0 }), c.removeEventListener(Ue, f), Ot.remove(m);
|
|
552
552
|
}, 0);
|
|
553
553
|
};
|
|
554
554
|
}
|
|
@@ -599,17 +599,17 @@ function Hr(e, { upTo: t }) {
|
|
|
599
599
|
}
|
|
600
600
|
return !1;
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function Vr(e) {
|
|
603
603
|
return e instanceof HTMLInputElement && "select" in e;
|
|
604
604
|
}
|
|
605
605
|
function Q(e, { select: t = !1 } = {}) {
|
|
606
606
|
if (e && e.focus) {
|
|
607
607
|
const n = document.activeElement;
|
|
608
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
608
|
+
e.focus({ preventScroll: !0 }), e !== n && Vr(e) && t && e.select();
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
var Ot =
|
|
612
|
-
function
|
|
611
|
+
var Ot = jr();
|
|
612
|
+
function jr() {
|
|
613
613
|
let e = [];
|
|
614
614
|
return {
|
|
615
615
|
add(t) {
|
|
@@ -626,23 +626,23 @@ function Nt(e, t) {
|
|
|
626
626
|
const n = [...e], r = n.indexOf(t);
|
|
627
627
|
return r !== -1 && n.splice(r, 1), n;
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Ur(e) {
|
|
630
630
|
return e.filter((t) => t.tagName !== "A");
|
|
631
631
|
}
|
|
632
|
-
var
|
|
632
|
+
var zr = "Portal", en = a.forwardRef((e, t) => {
|
|
633
633
|
var c;
|
|
634
634
|
const { container: n, ...r } = e, [o, i] = a.useState(!1);
|
|
635
635
|
te(() => i(!0), []);
|
|
636
636
|
const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
|
|
637
637
|
return s ? ur.createPortal(/* @__PURE__ */ C(G.div, { ...r, ref: t }), s) : null;
|
|
638
638
|
});
|
|
639
|
-
en.displayName =
|
|
640
|
-
var
|
|
639
|
+
en.displayName = zr;
|
|
640
|
+
var ze = 0;
|
|
641
641
|
function Yr() {
|
|
642
642
|
a.useEffect(() => {
|
|
643
643
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
644
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Mt()), document.body.insertAdjacentElement("beforeend", e[1] ?? Mt()),
|
|
645
|
-
|
|
644
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Mt()), document.body.insertAdjacentElement("beforeend", e[1] ?? Mt()), ze++, () => {
|
|
645
|
+
ze === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ze--;
|
|
646
646
|
};
|
|
647
647
|
}, []);
|
|
648
648
|
}
|
|
@@ -650,14 +650,14 @@ function Mt() {
|
|
|
650
650
|
const e = document.createElement("span");
|
|
651
651
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
652
652
|
}
|
|
653
|
-
var
|
|
654
|
-
return
|
|
653
|
+
var j = function() {
|
|
654
|
+
return j = Object.assign || function(t) {
|
|
655
655
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
656
656
|
n = arguments[r];
|
|
657
657
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
658
658
|
}
|
|
659
659
|
return t;
|
|
660
|
-
},
|
|
660
|
+
}, j.apply(this, arguments);
|
|
661
661
|
};
|
|
662
662
|
function tn(e, t) {
|
|
663
663
|
var n = {};
|
|
@@ -677,7 +677,7 @@ function Ye(e, t) {
|
|
|
677
677
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
678
678
|
}
|
|
679
679
|
function qr(e, t) {
|
|
680
|
-
var n =
|
|
680
|
+
var n = zt(function() {
|
|
681
681
|
return {
|
|
682
682
|
// value
|
|
683
683
|
value: e,
|
|
@@ -778,7 +778,7 @@ function eo(e, t) {
|
|
|
778
778
|
function to(e) {
|
|
779
779
|
e === void 0 && (e = {});
|
|
780
780
|
var t = eo(null);
|
|
781
|
-
return t.options =
|
|
781
|
+
return t.options = j({ async: !0, ssr: !1 }, e), t;
|
|
782
782
|
}
|
|
783
783
|
var nn = function(e) {
|
|
784
784
|
var t = e.sideCar, n = tn(e, ["sideCar"]);
|
|
@@ -787,7 +787,7 @@ var nn = function(e) {
|
|
|
787
787
|
var r = t.read();
|
|
788
788
|
if (!r)
|
|
789
789
|
throw new Error("Sidecar medium not found");
|
|
790
|
-
return a.createElement(r,
|
|
790
|
+
return a.createElement(r, j({}, n));
|
|
791
791
|
};
|
|
792
792
|
nn.isSideCarExport = !0;
|
|
793
793
|
function no(e, t) {
|
|
@@ -799,12 +799,12 @@ var rn = to(), Xe = function() {
|
|
|
799
799
|
onScrollCapture: Xe,
|
|
800
800
|
onWheelCapture: Xe,
|
|
801
801
|
onTouchMoveCapture: Xe
|
|
802
|
-
}), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, m = e.noRelative, g = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, b = e.gapMode, w = tn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = p, A = Qr([n, t]), P =
|
|
802
|
+
}), o = r[0], i = r[1], s = e.forwardProps, c = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, m = e.noRelative, g = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, b = e.gapMode, w = tn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = p, A = Qr([n, t]), P = j(j({}, w), o);
|
|
803
803
|
return a.createElement(
|
|
804
804
|
a.Fragment,
|
|
805
805
|
null,
|
|
806
806
|
f && a.createElement(E, { sideCar: rn, removeScrollBar: l, shards: d, noRelative: m, noIsolation: g, inert: h, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
|
|
807
|
-
s ? a.cloneElement(a.Children.only(c),
|
|
807
|
+
s ? a.cloneElement(a.Children.only(c), j(j({}, P), { ref: A })) : a.createElement(x, j({}, P, { className: u, ref: A }), c)
|
|
808
808
|
);
|
|
809
809
|
});
|
|
810
810
|
We.defaultProps = {
|
|
@@ -1115,7 +1115,7 @@ function Oo(e) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
const No = no(rn, Ro);
|
|
1117
1117
|
var ln = a.forwardRef(function(e, t) {
|
|
1118
|
-
return a.createElement(We,
|
|
1118
|
+
return a.createElement(We, j({}, e, { ref: t, sideCar: No }));
|
|
1119
1119
|
});
|
|
1120
1120
|
ln.classNames = We.classNames;
|
|
1121
1121
|
var Mo = function(e) {
|
|
@@ -1189,7 +1189,7 @@ function Do(e) {
|
|
|
1189
1189
|
n(void 0);
|
|
1190
1190
|
}, [e]), t;
|
|
1191
1191
|
}
|
|
1192
|
-
const _o = ["top", "right", "bottom", "left"], ne = Math.min, B = Math.max, De = Math.round, Me = Math.floor,
|
|
1192
|
+
const _o = ["top", "right", "bottom", "left"], ne = Math.min, B = Math.max, De = Math.round, Me = Math.floor, U = (e) => ({
|
|
1193
1193
|
x: e,
|
|
1194
1194
|
y: e
|
|
1195
1195
|
}), Fo = {
|
|
@@ -1259,7 +1259,7 @@ function Ho(e, t, n, r) {
|
|
|
1259
1259
|
function _e(e) {
|
|
1260
1260
|
return e.replace(/left|right|bottom|top/g, (t) => Fo[t]);
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Vo(e) {
|
|
1263
1263
|
return {
|
|
1264
1264
|
top: 0,
|
|
1265
1265
|
right: 0,
|
|
@@ -1269,7 +1269,7 @@ function zo(e) {
|
|
|
1269
1269
|
};
|
|
1270
1270
|
}
|
|
1271
1271
|
function fn(e) {
|
|
1272
|
-
return typeof e != "number" ?
|
|
1272
|
+
return typeof e != "number" ? Vo(e) : {
|
|
1273
1273
|
top: e,
|
|
1274
1274
|
right: e,
|
|
1275
1275
|
bottom: e,
|
|
@@ -1342,7 +1342,7 @@ function Ft(e, t, n) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
return m;
|
|
1344
1344
|
}
|
|
1345
|
-
const
|
|
1345
|
+
const jo = async (e, t, n) => {
|
|
1346
1346
|
const {
|
|
1347
1347
|
placement: r = "bottom",
|
|
1348
1348
|
strategy: o = "absolute",
|
|
@@ -1448,7 +1448,7 @@ async function we(e, t) {
|
|
|
1448
1448
|
right: (E.right - y.right + g.right) / w.x
|
|
1449
1449
|
};
|
|
1450
1450
|
}
|
|
1451
|
-
const
|
|
1451
|
+
const Uo = (e) => ({
|
|
1452
1452
|
name: "arrow",
|
|
1453
1453
|
options: e,
|
|
1454
1454
|
async fn(t) {
|
|
@@ -1485,7 +1485,7 @@ const jo = (e) => ({
|
|
|
1485
1485
|
reset: L
|
|
1486
1486
|
};
|
|
1487
1487
|
}
|
|
1488
|
-
}),
|
|
1488
|
+
}), zo = function(e) {
|
|
1489
1489
|
return e === void 0 && (e = {}), {
|
|
1490
1490
|
name: "flip",
|
|
1491
1491
|
options: e,
|
|
@@ -1830,7 +1830,7 @@ function dn(e) {
|
|
|
1830
1830
|
function H(e) {
|
|
1831
1831
|
return Be() ? e instanceof Element || e instanceof $(e).Element : !1;
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function z(e) {
|
|
1834
1834
|
return Be() ? e instanceof HTMLElement || e instanceof $(e).HTMLElement : !1;
|
|
1835
1835
|
}
|
|
1836
1836
|
function Bt(e) {
|
|
@@ -1842,7 +1842,7 @@ function Ee(e) {
|
|
|
1842
1842
|
overflowX: n,
|
|
1843
1843
|
overflowY: r,
|
|
1844
1844
|
display: o
|
|
1845
|
-
} =
|
|
1845
|
+
} = V(e);
|
|
1846
1846
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
1847
1847
|
}
|
|
1848
1848
|
function Qo(e) {
|
|
@@ -1858,12 +1858,12 @@ function $e(e) {
|
|
|
1858
1858
|
});
|
|
1859
1859
|
}
|
|
1860
1860
|
function lt(e) {
|
|
1861
|
-
const t = ut(), n = H(e) ?
|
|
1861
|
+
const t = ut(), n = H(e) ? V(e) : e;
|
|
1862
1862
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
1863
1863
|
}
|
|
1864
1864
|
function Jo(e) {
|
|
1865
1865
|
let t = re(e);
|
|
1866
|
-
for (;
|
|
1866
|
+
for (; z(t) && !he(t); ) {
|
|
1867
1867
|
if (lt(t))
|
|
1868
1868
|
return t;
|
|
1869
1869
|
if ($e(t))
|
|
@@ -1878,7 +1878,7 @@ function ut() {
|
|
|
1878
1878
|
function he(e) {
|
|
1879
1879
|
return ["html", "body", "#document"].includes(ve(e));
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1881
|
+
function V(e) {
|
|
1882
1882
|
return $(e).getComputedStyle(e);
|
|
1883
1883
|
}
|
|
1884
1884
|
function He(e) {
|
|
@@ -1904,7 +1904,7 @@ function re(e) {
|
|
|
1904
1904
|
}
|
|
1905
1905
|
function hn(e) {
|
|
1906
1906
|
const t = re(e);
|
|
1907
|
-
return he(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
1907
|
+
return he(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : z(t) && Ee(t) ? t : hn(t);
|
|
1908
1908
|
}
|
|
1909
1909
|
function be(e, t, n) {
|
|
1910
1910
|
var r;
|
|
@@ -1920,9 +1920,9 @@ function rt(e) {
|
|
|
1920
1920
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1921
1921
|
}
|
|
1922
1922
|
function pn(e) {
|
|
1923
|
-
const t =
|
|
1923
|
+
const t = V(e);
|
|
1924
1924
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1925
|
-
const o =
|
|
1925
|
+
const o = z(e), i = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = De(n) !== i || De(r) !== s;
|
|
1926
1926
|
return c && (n = i, r = s), {
|
|
1927
1927
|
width: n,
|
|
1928
1928
|
height: r,
|
|
@@ -1934,8 +1934,8 @@ function ft(e) {
|
|
|
1934
1934
|
}
|
|
1935
1935
|
function fe(e) {
|
|
1936
1936
|
const t = ft(e);
|
|
1937
|
-
if (!
|
|
1938
|
-
return
|
|
1937
|
+
if (!z(t))
|
|
1938
|
+
return U(1);
|
|
1939
1939
|
const n = t.getBoundingClientRect(), {
|
|
1940
1940
|
width: r,
|
|
1941
1941
|
height: o,
|
|
@@ -1947,7 +1947,7 @@ function fe(e) {
|
|
|
1947
1947
|
y: c
|
|
1948
1948
|
};
|
|
1949
1949
|
}
|
|
1950
|
-
const ei = /* @__PURE__ */
|
|
1950
|
+
const ei = /* @__PURE__ */ U(0);
|
|
1951
1951
|
function mn(e) {
|
|
1952
1952
|
const t = $(e);
|
|
1953
1953
|
return !ut() || !t.visualViewport ? ei : {
|
|
@@ -1961,15 +1961,15 @@ function ti(e, t, n) {
|
|
|
1961
1961
|
function ie(e, t, n, r) {
|
|
1962
1962
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1963
1963
|
const o = e.getBoundingClientRect(), i = ft(e);
|
|
1964
|
-
let s =
|
|
1964
|
+
let s = U(1);
|
|
1965
1965
|
t && (r ? H(r) && (s = fe(r)) : s = fe(e));
|
|
1966
|
-
const c = ti(i, n, r) ? mn(i) :
|
|
1966
|
+
const c = ti(i, n, r) ? mn(i) : U(0);
|
|
1967
1967
|
let u = (o.left + c.x) / s.x, l = (o.top + c.y) / s.y, f = o.width / s.x, d = o.height / s.y;
|
|
1968
1968
|
if (i) {
|
|
1969
1969
|
const p = $(i), m = r && H(r) ? $(r) : r;
|
|
1970
1970
|
let g = p, h = rt(g);
|
|
1971
1971
|
for (; h && r && m !== g; ) {
|
|
1972
|
-
const v = fe(h), y = h.getBoundingClientRect(), x =
|
|
1972
|
+
const v = fe(h), y = h.getBoundingClientRect(), x = V(h), b = y.left + (h.clientLeft + parseFloat(x.paddingLeft)) * v.x, w = y.top + (h.clientTop + parseFloat(x.paddingTop)) * v.y;
|
|
1973
1973
|
u *= v.x, l *= v.y, f *= v.x, d *= v.y, u += b, l += w, g = $(h), h = rt(g);
|
|
1974
1974
|
}
|
|
1975
1975
|
}
|
|
@@ -2008,13 +2008,13 @@ function ni(e) {
|
|
|
2008
2008
|
let u = {
|
|
2009
2009
|
scrollLeft: 0,
|
|
2010
2010
|
scrollTop: 0
|
|
2011
|
-
}, l =
|
|
2012
|
-
const f =
|
|
2013
|
-
if ((d || !d && !i) && ((ve(r) !== "body" || Ee(s)) && (u = He(r)),
|
|
2011
|
+
}, l = U(1);
|
|
2012
|
+
const f = U(0), d = z(r);
|
|
2013
|
+
if ((d || !d && !i) && ((ve(r) !== "body" || Ee(s)) && (u = He(r)), z(r))) {
|
|
2014
2014
|
const m = ie(r);
|
|
2015
2015
|
l = fe(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop;
|
|
2016
2016
|
}
|
|
2017
|
-
const p = s && !d && !i ? vn(s, u, !0) :
|
|
2017
|
+
const p = s && !d && !i ? vn(s, u, !0) : U(0);
|
|
2018
2018
|
return {
|
|
2019
2019
|
width: n.width * l.x,
|
|
2020
2020
|
height: n.height * l.y,
|
|
@@ -2029,7 +2029,7 @@ function oi(e) {
|
|
|
2029
2029
|
const t = Y(e), n = He(e), r = e.ownerDocument.body, o = B(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = B(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
2030
2030
|
let s = -n.scrollLeft + dt(e);
|
|
2031
2031
|
const c = -n.scrollTop;
|
|
2032
|
-
return
|
|
2032
|
+
return V(r).direction === "rtl" && (s += B(t.clientWidth, r.clientWidth) - o), {
|
|
2033
2033
|
width: o,
|
|
2034
2034
|
height: i,
|
|
2035
2035
|
x: s,
|
|
@@ -2052,7 +2052,7 @@ function ii(e, t) {
|
|
|
2052
2052
|
};
|
|
2053
2053
|
}
|
|
2054
2054
|
function si(e, t) {
|
|
2055
|
-
const n = ie(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i =
|
|
2055
|
+
const n = ie(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = z(e) ? fe(e) : U(1), s = e.clientWidth * i.x, c = e.clientHeight * i.y, u = o * i.x, l = r * i.y;
|
|
2056
2056
|
return {
|
|
2057
2057
|
width: s,
|
|
2058
2058
|
height: c,
|
|
@@ -2081,17 +2081,17 @@ function $t(e, t, n) {
|
|
|
2081
2081
|
}
|
|
2082
2082
|
function gn(e, t) {
|
|
2083
2083
|
const n = re(e);
|
|
2084
|
-
return n === t || !H(n) || he(n) ? !1 :
|
|
2084
|
+
return n === t || !H(n) || he(n) ? !1 : V(n).position === "fixed" || gn(n, t);
|
|
2085
2085
|
}
|
|
2086
2086
|
function ci(e, t) {
|
|
2087
2087
|
const n = t.get(e);
|
|
2088
2088
|
if (n)
|
|
2089
2089
|
return n;
|
|
2090
2090
|
let r = be(e, [], !1).filter((c) => H(c) && ve(c) !== "body"), o = null;
|
|
2091
|
-
const i =
|
|
2091
|
+
const i = V(e).position === "fixed";
|
|
2092
2092
|
let s = i ? re(e) : e;
|
|
2093
2093
|
for (; H(s) && !he(s); ) {
|
|
2094
|
-
const c =
|
|
2094
|
+
const c = V(s), u = lt(s);
|
|
2095
2095
|
!u && c.position === "fixed" && (o = null), (i ? !u && !o : !u && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ee(s) && !u && gn(e, s)) ? r = r.filter((f) => f !== s) : o = c, s = re(s);
|
|
2096
2096
|
}
|
|
2097
2097
|
return t.set(e, r), r;
|
|
@@ -2125,12 +2125,12 @@ function li(e) {
|
|
|
2125
2125
|
};
|
|
2126
2126
|
}
|
|
2127
2127
|
function ui(e, t, n) {
|
|
2128
|
-
const r =
|
|
2128
|
+
const r = z(t), o = Y(t), i = n === "fixed", s = ie(e, !0, i, t);
|
|
2129
2129
|
let c = {
|
|
2130
2130
|
scrollLeft: 0,
|
|
2131
2131
|
scrollTop: 0
|
|
2132
2132
|
};
|
|
2133
|
-
const u =
|
|
2133
|
+
const u = U(0);
|
|
2134
2134
|
function l() {
|
|
2135
2135
|
u.x = dt(o);
|
|
2136
2136
|
}
|
|
@@ -2140,7 +2140,7 @@ function ui(e, t, n) {
|
|
|
2140
2140
|
u.x = m.x + t.clientLeft, u.y = m.y + t.clientTop;
|
|
2141
2141
|
} else o && l();
|
|
2142
2142
|
i && !r && o && l();
|
|
2143
|
-
const f = o && !r && !i ? vn(o, c) :
|
|
2143
|
+
const f = o && !r && !i ? vn(o, c) : U(0), d = s.left + c.scrollLeft - u.x - f.x, p = s.top + c.scrollTop - u.y - f.y;
|
|
2144
2144
|
return {
|
|
2145
2145
|
x: d,
|
|
2146
2146
|
y: p,
|
|
@@ -2149,10 +2149,10 @@ function ui(e, t, n) {
|
|
|
2149
2149
|
};
|
|
2150
2150
|
}
|
|
2151
2151
|
function qe(e) {
|
|
2152
|
-
return
|
|
2152
|
+
return V(e).position === "static";
|
|
2153
2153
|
}
|
|
2154
2154
|
function Ht(e, t) {
|
|
2155
|
-
if (!
|
|
2155
|
+
if (!z(e) || V(e).position === "fixed")
|
|
2156
2156
|
return null;
|
|
2157
2157
|
if (t)
|
|
2158
2158
|
return t(e);
|
|
@@ -2163,7 +2163,7 @@ function yn(e, t) {
|
|
|
2163
2163
|
const n = $(e);
|
|
2164
2164
|
if ($e(e))
|
|
2165
2165
|
return n;
|
|
2166
|
-
if (!
|
|
2166
|
+
if (!z(e)) {
|
|
2167
2167
|
let o = re(e);
|
|
2168
2168
|
for (; o && !he(o); ) {
|
|
2169
2169
|
if (H(o) && !qe(o))
|
|
@@ -2190,7 +2190,7 @@ const fi = async function(e) {
|
|
|
2190
2190
|
};
|
|
2191
2191
|
};
|
|
2192
2192
|
function di(e) {
|
|
2193
|
-
return
|
|
2193
|
+
return V(e).direction === "rtl";
|
|
2194
2194
|
}
|
|
2195
2195
|
const hi = {
|
|
2196
2196
|
convertOffsetParentRelativeRectToViewportRelativeRect: ni,
|
|
@@ -2289,7 +2289,7 @@ function mi(e, t, n, r) {
|
|
|
2289
2289
|
}), d == null || d(), (y = m) == null || y.disconnect(), m = null, u && cancelAnimationFrame(g);
|
|
2290
2290
|
};
|
|
2291
2291
|
}
|
|
2292
|
-
const vi = Ko, gi = Zo, yi =
|
|
2292
|
+
const vi = Ko, gi = Zo, yi = zo, wi = Go, bi = Yo, Vt = Uo, xi = qo, Ei = (e, t, n) => {
|
|
2293
2293
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
2294
2294
|
platform: hi,
|
|
2295
2295
|
...n
|
|
@@ -2297,7 +2297,7 @@ const vi = Ko, gi = Zo, yi = Uo, wi = Go, bi = Yo, zt = jo, xi = qo, Ei = (e, t,
|
|
|
2297
2297
|
...o.platform,
|
|
2298
2298
|
_c: r
|
|
2299
2299
|
};
|
|
2300
|
-
return
|
|
2300
|
+
return jo(e, t, {
|
|
2301
2301
|
...o,
|
|
2302
2302
|
platform: i
|
|
2303
2303
|
});
|
|
@@ -2336,7 +2336,7 @@ function Ie(e, t) {
|
|
|
2336
2336
|
function bn(e) {
|
|
2337
2337
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2338
2338
|
}
|
|
2339
|
-
function
|
|
2339
|
+
function jt(e, t) {
|
|
2340
2340
|
const n = bn(e);
|
|
2341
2341
|
return Math.round(t * n) / n;
|
|
2342
2342
|
}
|
|
@@ -2427,7 +2427,7 @@ function Ci(e) {
|
|
|
2427
2427
|
};
|
|
2428
2428
|
if (!L.floating)
|
|
2429
2429
|
return S;
|
|
2430
|
-
const T =
|
|
2430
|
+
const T = jt(L.floating, f.x), _ = jt(L.floating, f.y);
|
|
2431
2431
|
return c ? {
|
|
2432
2432
|
...S,
|
|
2433
2433
|
transform: "translate(" + T + "px, " + _ + "px)",
|
|
@@ -2460,10 +2460,10 @@ const Pi = (e) => {
|
|
|
2460
2460
|
element: r,
|
|
2461
2461
|
padding: o
|
|
2462
2462
|
} = typeof e == "function" ? e(n) : e;
|
|
2463
|
-
return r && t(r) ? r.current != null ?
|
|
2463
|
+
return r && t(r) ? r.current != null ? Vt({
|
|
2464
2464
|
element: r.current,
|
|
2465
2465
|
padding: o
|
|
2466
|
-
}).fn(n) : {} : r ?
|
|
2466
|
+
}).fn(n) : {} : r ? Vt({
|
|
2467
2467
|
element: r,
|
|
2468
2468
|
padding: o
|
|
2469
2469
|
}).fn(n) : {};
|
|
@@ -2578,7 +2578,7 @@ var pt = "PopperContent", [_i, Fi] = En(pt), On = a.forwardRef(
|
|
|
2578
2578
|
te(() => {
|
|
2579
2579
|
D && (se == null || se());
|
|
2580
2580
|
}, [D, se]);
|
|
2581
|
-
const
|
|
2581
|
+
const Un = (vt = S.arrow) == null ? void 0 : vt.x, zn = (gt = S.arrow) == null ? void 0 : gt.y, Yn = ((yt = S.arrow) == null ? void 0 : yt.centerOffset) !== 0, [Xn, Kn] = a.useState();
|
|
2582
2582
|
return te(() => {
|
|
2583
2583
|
y && Kn(window.getComputedStyle(y).zIndex);
|
|
2584
2584
|
}, [y]), /* @__PURE__ */ C(
|
|
@@ -2611,8 +2611,8 @@ var pt = "PopperContent", [_i, Fi] = En(pt), On = a.forwardRef(
|
|
|
2611
2611
|
scope: n,
|
|
2612
2612
|
placedSide: T,
|
|
2613
2613
|
onArrowChange: E,
|
|
2614
|
-
arrowX:
|
|
2615
|
-
arrowY:
|
|
2614
|
+
arrowX: Un,
|
|
2615
|
+
arrowY: zn,
|
|
2616
2616
|
shouldHideArrow: Yn,
|
|
2617
2617
|
children: /* @__PURE__ */ C(
|
|
2618
2618
|
G.div,
|
|
@@ -2704,9 +2704,9 @@ function Tn(e) {
|
|
|
2704
2704
|
const [t, n = "center"] = e.split("-");
|
|
2705
2705
|
return [t, n];
|
|
2706
2706
|
}
|
|
2707
|
-
var $i = An, kn = Rn, Hi = On,
|
|
2707
|
+
var $i = An, kn = Rn, Hi = On, Vi = Mn, Ve = "Popover", [Ln, ms] = Kt(Ve, [
|
|
2708
2708
|
Cn
|
|
2709
|
-
]), Ce = Cn(), [
|
|
2709
|
+
]), Ce = Cn(), [ji, oe] = Ln(Ve), Dn = (e) => {
|
|
2710
2710
|
const {
|
|
2711
2711
|
__scopePopover: t,
|
|
2712
2712
|
children: n,
|
|
@@ -2718,10 +2718,10 @@ var $i = An, kn = Rn, Hi = On, zi = Mn, ze = "Popover", [Ln, ms] = Kt(ze, [
|
|
|
2718
2718
|
prop: r,
|
|
2719
2719
|
defaultProp: o ?? !1,
|
|
2720
2720
|
onChange: i,
|
|
2721
|
-
caller:
|
|
2721
|
+
caller: Ve
|
|
2722
2722
|
});
|
|
2723
2723
|
return /* @__PURE__ */ C($i, { ...c, children: /* @__PURE__ */ C(
|
|
2724
|
-
|
|
2724
|
+
ji,
|
|
2725
2725
|
{
|
|
2726
2726
|
scope: t,
|
|
2727
2727
|
contentId: Nr(),
|
|
@@ -2737,7 +2737,7 @@ var $i = An, kn = Rn, Hi = On, zi = Mn, ze = "Popover", [Ln, ms] = Kt(ze, [
|
|
|
2737
2737
|
}
|
|
2738
2738
|
) });
|
|
2739
2739
|
};
|
|
2740
|
-
Dn.displayName =
|
|
2740
|
+
Dn.displayName = Ve;
|
|
2741
2741
|
var _n = "PopoverAnchor", Fn = a.forwardRef(
|
|
2742
2742
|
(e, t) => {
|
|
2743
2743
|
const { __scopePopover: n, ...r } = e, o = oe(_n, n), i = Ce(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = o;
|
|
@@ -2754,7 +2754,7 @@ var In = "PopoverTrigger", Wn = a.forwardRef(
|
|
|
2754
2754
|
"aria-haspopup": "dialog",
|
|
2755
2755
|
"aria-expanded": o.open,
|
|
2756
2756
|
"aria-controls": o.contentId,
|
|
2757
|
-
"data-state":
|
|
2757
|
+
"data-state": jn(o.open),
|
|
2758
2758
|
...r,
|
|
2759
2759
|
ref: s,
|
|
2760
2760
|
onClick: ee(e.onClick, o.onOpenToggle)
|
|
@@ -2764,16 +2764,16 @@ var In = "PopoverTrigger", Wn = a.forwardRef(
|
|
|
2764
2764
|
}
|
|
2765
2765
|
);
|
|
2766
2766
|
Wn.displayName = In;
|
|
2767
|
-
var mt = "PopoverPortal", [
|
|
2767
|
+
var mt = "PopoverPortal", [Ui, zi] = Ln(mt, {
|
|
2768
2768
|
forceMount: void 0
|
|
2769
2769
|
}), Bn = (e) => {
|
|
2770
2770
|
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = oe(mt, t);
|
|
2771
|
-
return /* @__PURE__ */ C(
|
|
2771
|
+
return /* @__PURE__ */ C(Ui, { scope: t, forceMount: n, children: /* @__PURE__ */ C(it, { present: n || i.open, children: /* @__PURE__ */ C(en, { asChild: !0, container: o, children: r }) }) });
|
|
2772
2772
|
};
|
|
2773
2773
|
Bn.displayName = mt;
|
|
2774
2774
|
var pe = "PopoverContent", $n = a.forwardRef(
|
|
2775
2775
|
(e, t) => {
|
|
2776
|
-
const n =
|
|
2776
|
+
const n = zi(pe, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = oe(pe, e.__scopePopover);
|
|
2777
2777
|
return /* @__PURE__ */ C(it, { present: r || i.open, children: i.modal ? /* @__PURE__ */ C(Xi, { ...o, ref: t }) : /* @__PURE__ */ C(Ki, { ...o, ref: t }) });
|
|
2778
2778
|
}
|
|
2779
2779
|
);
|
|
@@ -2869,7 +2869,7 @@ var Yi = /* @__PURE__ */ Xt("PopoverContent.RemoveScroll"), Xi = a.forwardRef(
|
|
|
2869
2869
|
children: /* @__PURE__ */ C(
|
|
2870
2870
|
Hi,
|
|
2871
2871
|
{
|
|
2872
|
-
"data-state":
|
|
2872
|
+
"data-state": jn(p.open),
|
|
2873
2873
|
role: "dialog",
|
|
2874
2874
|
id: p.contentId,
|
|
2875
2875
|
...m,
|
|
@@ -2890,9 +2890,9 @@ var Yi = /* @__PURE__ */ Xt("PopoverContent.RemoveScroll"), Xi = a.forwardRef(
|
|
|
2890
2890
|
}
|
|
2891
2891
|
);
|
|
2892
2892
|
}
|
|
2893
|
-
),
|
|
2893
|
+
), Vn = "PopoverClose", Zi = a.forwardRef(
|
|
2894
2894
|
(e, t) => {
|
|
2895
|
-
const { __scopePopover: n, ...r } = e, o = oe(
|
|
2895
|
+
const { __scopePopover: n, ...r } = e, o = oe(Vn, n);
|
|
2896
2896
|
return /* @__PURE__ */ C(
|
|
2897
2897
|
G.button,
|
|
2898
2898
|
{
|
|
@@ -2904,19 +2904,19 @@ var Yi = /* @__PURE__ */ Xt("PopoverContent.RemoveScroll"), Xi = a.forwardRef(
|
|
|
2904
2904
|
);
|
|
2905
2905
|
}
|
|
2906
2906
|
);
|
|
2907
|
-
Zi.displayName =
|
|
2907
|
+
Zi.displayName = Vn;
|
|
2908
2908
|
var qi = "PopoverArrow", Gi = a.forwardRef(
|
|
2909
2909
|
(e, t) => {
|
|
2910
2910
|
const { __scopePopover: n, ...r } = e, o = Ce(n);
|
|
2911
|
-
return /* @__PURE__ */ C(
|
|
2911
|
+
return /* @__PURE__ */ C(Vi, { ...o, ...r, ref: t });
|
|
2912
2912
|
}
|
|
2913
2913
|
);
|
|
2914
2914
|
Gi.displayName = qi;
|
|
2915
|
-
function
|
|
2915
|
+
function jn(e) {
|
|
2916
2916
|
return e ? "open" : "closed";
|
|
2917
2917
|
}
|
|
2918
2918
|
var Qi = Dn, Ji = Fn, es = Wn, ts = Bn, ns = $n;
|
|
2919
|
-
const rs = "
|
|
2919
|
+
const rs = "_anchor_1c40n_293", os = "_container_1c40n_298", is = "_radio_1c40n_315", ss = "_check_1c40n_327", cs = "_radioInput_1c40n_335", ye = {
|
|
2920
2920
|
anchor: rs,
|
|
2921
2921
|
container: os,
|
|
2922
2922
|
radio: is,
|
|
@@ -2924,7 +2924,7 @@ const rs = "_anchor_14hmz_17", os = "_container_14hmz_22", is = "_radio_14hmz_39
|
|
|
2924
2924
|
radioInput: cs
|
|
2925
2925
|
};
|
|
2926
2926
|
function Qe({ children: e, id: t, ...n }) {
|
|
2927
|
-
return /* @__PURE__ */ J(
|
|
2927
|
+
return /* @__PURE__ */ J(Ut, { children: [
|
|
2928
2928
|
/* @__PURE__ */ C(
|
|
2929
2929
|
"input",
|
|
2930
2930
|
{
|
|
@@ -2941,7 +2941,7 @@ function Qe({ children: e, id: t, ...n }) {
|
|
|
2941
2941
|
] });
|
|
2942
2942
|
}
|
|
2943
2943
|
function vs() {
|
|
2944
|
-
const { theme: e, systemTheme: t, setTheme: n } = er(), [r, o] =
|
|
2944
|
+
const { theme: e, systemTheme: t, setTheme: n } = er(), [r, o] = zt(!1);
|
|
2945
2945
|
return Yt(() => {
|
|
2946
2946
|
o(!0);
|
|
2947
2947
|
}, []), /* @__PURE__ */ J(Qi, { children: [
|
|
@@ -2949,7 +2949,7 @@ function vs() {
|
|
|
2949
2949
|
/* @__PURE__ */ C(ar, {}),
|
|
2950
2950
|
/* @__PURE__ */ C(Ji, { className: ye.anchor })
|
|
2951
2951
|
] }) }),
|
|
2952
|
-
/* @__PURE__ */ C(ts, { children: /* @__PURE__ */ C(ns, { sideOffset: 8, className: ye.container, children: r && /* @__PURE__ */ J(
|
|
2952
|
+
/* @__PURE__ */ C(ts, { children: /* @__PURE__ */ C(ns, { sideOffset: 8, className: ye.container, children: r && /* @__PURE__ */ J(Ut, { children: [
|
|
2953
2953
|
/* @__PURE__ */ C("span", { children: "Appearance" }),
|
|
2954
2954
|
/* @__PURE__ */ J(
|
|
2955
2955
|
Qe,
|