@noxickon/onyx 4.0.6 → 4.0.8
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/chunks/{ui-BNL6qb8f.js → ui-BTr-wu1B.js} +108 -110
- package/dist/chunks/{ui-CuqXG0dT.js → ui-sjbZNsCv.js} +1 -1
- package/dist/contexts/contexts.cjs.js +1 -1
- package/dist/contexts/contexts.es.js +1 -1
- package/dist/layouts/layouts.cjs.js +1 -1
- package/dist/layouts/layouts.es.js +1 -1
- package/dist/legacy/legacy.cjs.js +1 -1
- package/dist/legacy/legacy.es.js +1 -1
- package/dist/onyx.cjs.js +1 -1
- package/dist/onyx.es.js +1 -1
- package/dist/pages/pages.cjs.js +1 -1
- package/dist/pages/pages.es.js +1 -1
- package/dist/utils/utils.cjs.js +1 -1
- package/dist/utils/utils.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as gc, i as bc, s as vc, p as xc, c as Do, a as yc, b as wc, d as z, g as Cc, u as Oc, m as kc, e as ir, f as ms, h as Sc, j as Fn, k as Nc, l as Jt, n as Dc, q as Ec, r as Pc, t as Tc, v as Rc, w as Ac, x as Mc, y as Ic } from "./hooks-6tQOArBm.js";
|
|
2
2
|
import { jsx as C, jsxs as K, Fragment as qe } from "react/jsx-runtime";
|
|
3
3
|
import * as ue from "react";
|
|
4
|
-
import Re, { isValidElement as Qe, createContext as he, useState as te, useContext as fe, useRef as re, useLayoutEffect as
|
|
4
|
+
import Re, { isValidElement as Qe, createContext as he, useState as te, useContext as fe, useRef as re, useLayoutEffect as At, useEffect as ce, useReducer as Ti, Children as Ue, Fragment as Ri, cloneElement as Zt, createElement as Ai, useSyncExternalStore as _c, useMemo as De, useCallback as Ae, memo as $c, forwardRef as Mi, useId as Ke } from "react";
|
|
5
5
|
import { Coffee as Lc, Bell as Eo, Info as Ii, TriangleAlert as zc, CircleCheck as _i, CircleAlert as $i, ChevronDown as Po, ImageOff as Li, MoreHorizontal as zi, ChevronRight as To, ChevronLeft as Fi, LoaderCircle as Vi, Check as Er, Copy as Fc, GripVertical as Ro, X as Pr, AlertCircle as Vc, WifiOff as jc, PackageOpen as Bc, Minus as ji, CloudUpload as Wc, Upload as Yc, Calendar as Hc, Plus as qc, EyeOff as Gc, Eye as Uc, Sun as Kc, Moon as Xc, Circle as Qc } from "lucide-react";
|
|
6
6
|
import * as Jc from "react-dom";
|
|
7
7
|
import { createPortal as Vn, unstable_batchedUpdates as Qn, flushSync as Bi } from "react-dom";
|
|
@@ -318,7 +318,7 @@ const Zc = (t, e) => {
|
|
|
318
318
|
}, yd = [], Ve = (t) => {
|
|
319
319
|
const e = (n) => n[t] || yd;
|
|
320
320
|
return e.isThemeGetter = !0, e;
|
|
321
|
-
}, Ki = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Xi = /^\((?:(\w[\w-]*):)?(.+)\)$/i, wd = /^\d+\/\d+$/, Cd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Od = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, kd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Sd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Nd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tn = (t) => wd.test(t), ve = (t) => !!t && !Number.isNaN(Number(t)), Vt = (t) => !!t && Number.isInteger(Number(t)), Gr = (t) => t.endsWith("%") && ve(t.slice(0, -1)),
|
|
321
|
+
}, Ki = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Xi = /^\((?:(\w[\w-]*):)?(.+)\)$/i, wd = /^\d+\/\d+$/, Cd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Od = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, kd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Sd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Nd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tn = (t) => wd.test(t), ve = (t) => !!t && !Number.isNaN(Number(t)), Vt = (t) => !!t && Number.isInteger(Number(t)), Gr = (t) => t.endsWith("%") && ve(t.slice(0, -1)), Rt = (t) => Cd.test(t), Dd = () => !0, Ed = (t) => (
|
|
322
322
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
323
323
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
324
324
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
@@ -377,22 +377,22 @@ const Zc = (t, e) => {
|
|
|
377
377
|
theme: {
|
|
378
378
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
379
379
|
aspect: ["video"],
|
|
380
|
-
blur: [
|
|
381
|
-
breakpoint: [
|
|
380
|
+
blur: [Rt],
|
|
381
|
+
breakpoint: [Rt],
|
|
382
382
|
color: [Dd],
|
|
383
|
-
container: [
|
|
384
|
-
"drop-shadow": [
|
|
383
|
+
container: [Rt],
|
|
384
|
+
"drop-shadow": [Rt],
|
|
385
385
|
ease: ["in", "out", "in-out"],
|
|
386
386
|
font: [Rd],
|
|
387
387
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
388
|
-
"inset-shadow": [
|
|
388
|
+
"inset-shadow": [Rt],
|
|
389
389
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
390
390
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
391
|
-
radius: [
|
|
392
|
-
shadow: [
|
|
391
|
+
radius: [Rt],
|
|
392
|
+
shadow: [Rt],
|
|
393
393
|
spacing: ["px", ve],
|
|
394
|
-
text: [
|
|
395
|
-
"text-shadow": [
|
|
394
|
+
text: [Rt],
|
|
395
|
+
"text-shadow": [Rt],
|
|
396
396
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
397
397
|
},
|
|
398
398
|
classGroups: {
|
|
@@ -3155,7 +3155,7 @@ const go = {
|
|
|
3155
3155
|
}
|
|
3156
3156
|
}, e[4] = s, e[5] = c) : c = e[5];
|
|
3157
3157
|
let d;
|
|
3158
|
-
e[6] !== n || e[7] !== s ? (d = [s, n], e[6] = n, e[7] = s, e[8] = d) : d = e[8],
|
|
3158
|
+
e[6] !== n || e[7] !== s ? (d = [s, n], e[6] = n, e[7] = s, e[8] = d) : d = e[8], At(c, d);
|
|
3159
3159
|
const u = `${l}px`;
|
|
3160
3160
|
let f;
|
|
3161
3161
|
e[9] !== u ? (f = {
|
|
@@ -4931,7 +4931,7 @@ const pu = /* @__PURE__ */ Cc(hu), gu = {
|
|
|
4931
4931
|
e[4] !== r ? (s = $("inline-flex items-center gap-1.5", r), e[4] = r, e[5] = s) : s = e[5];
|
|
4932
4932
|
let i;
|
|
4933
4933
|
return e[6] !== n || e[7] !== o || e[8] !== s ? (i = /* @__PURE__ */ C("li", { className: s, ...o, "data-ox-slot": "breadcrumb-item", children: n }), e[6] = n, e[7] = o, e[8] = s, e[9] = i) : i = e[9], i;
|
|
4934
|
-
},
|
|
4934
|
+
}, Dt = (t, e) => {
|
|
4935
4935
|
const n = (r) => {
|
|
4936
4936
|
const {
|
|
4937
4937
|
children: o,
|
|
@@ -4991,7 +4991,7 @@ const ml = (t) => {
|
|
|
4991
4991
|
e[4] !== r ? (s = $("font-normal text-foreground", r), e[4] = r, e[5] = s) : s = e[5];
|
|
4992
4992
|
let i;
|
|
4993
4993
|
return e[6] !== n || e[7] !== o || e[8] !== s ? (i = /* @__PURE__ */ C("span", { "aria-current": "page", "aria-disabled": "true", className: s, role: "link", ...o, "data-ox-slot": "breadcrumb-page", children: n }), e[6] = n, e[7] = o, e[8] = s, e[9] = i) : i = e[9], i;
|
|
4994
|
-
}, Ku =
|
|
4994
|
+
}, Ku = Dt("OxBreadcrumbLink", "a"), Xu = (t) => {
|
|
4995
4995
|
const e = z.c(23);
|
|
4996
4996
|
let n, r, o, s, i, l;
|
|
4997
4997
|
e[0] !== t ? ({
|
|
@@ -5052,7 +5052,7 @@ const ml = (t) => {
|
|
|
5052
5052
|
} = t, o = _c(ef, Ju, tf), s = r || (o ? globalThis?.document?.body : null);
|
|
5053
5053
|
let i;
|
|
5054
5054
|
return e[0] !== n || e[1] !== s ? (i = s ? Vn(n, s) : null, e[0] = n, e[1] = s, e[2] = i) : i = e[2], i;
|
|
5055
|
-
}, nf =
|
|
5055
|
+
}, nf = Dt("OxButton", "button"), ht = (t) => {
|
|
5056
5056
|
const e = z.c(30);
|
|
5057
5057
|
let n, r, o, s, i, l, a, c, d, u;
|
|
5058
5058
|
e[0] !== t ? ({
|
|
@@ -8301,7 +8301,7 @@ function Pl(t) {
|
|
|
8301
8301
|
function pn(t) {
|
|
8302
8302
|
return t ? hn(t) ? t.document : Vo(t) ? jo(t) ? t : jn(t) || Pl(t) ? t.ownerDocument : document : document : document;
|
|
8303
8303
|
}
|
|
8304
|
-
const bt = Tr ?
|
|
8304
|
+
const bt = Tr ? At : ce;
|
|
8305
8305
|
function Rr(t) {
|
|
8306
8306
|
const e = re(t);
|
|
8307
8307
|
return bt(() => {
|
|
@@ -10410,7 +10410,7 @@ const $r = /* @__PURE__ */ $c(function(e) {
|
|
|
10410
10410
|
droppableRects: j,
|
|
10411
10411
|
droppableContainers: F,
|
|
10412
10412
|
pointerCoordinates: be
|
|
10413
|
-
}) : null,
|
|
10413
|
+
}) : null, Pt = Il(dt, "id"), [Xe, Gt] = te(null), Ee = me ? le : on(le, tt), Ce = Vm(Ee, (s = Xe?.rect) != null ? s : null, G), $e = re(null), Oe = Ae(
|
|
10414
10414
|
(He, ot) => {
|
|
10415
10415
|
let {
|
|
10416
10416
|
sensor: st,
|
|
@@ -10434,15 +10434,15 @@ const $r = /* @__PURE__ */ $c(function(e) {
|
|
|
10434
10434
|
return;
|
|
10435
10435
|
const {
|
|
10436
10436
|
onDragAbort: wt
|
|
10437
|
-
} = V.current,
|
|
10437
|
+
} = V.current, Tt = {
|
|
10438
10438
|
id: Ye
|
|
10439
10439
|
};
|
|
10440
|
-
wt?.(
|
|
10440
|
+
wt?.(Tt), v({
|
|
10441
10441
|
type: "onDragAbort",
|
|
10442
|
-
event:
|
|
10442
|
+
event: Tt
|
|
10443
10443
|
});
|
|
10444
10444
|
},
|
|
10445
|
-
onPending(Ye, zt, wt,
|
|
10445
|
+
onPending(Ye, zt, wt, Tt) {
|
|
10446
10446
|
if (!k.get(Ye))
|
|
10447
10447
|
return;
|
|
10448
10448
|
const {
|
|
@@ -10451,7 +10451,7 @@ const $r = /* @__PURE__ */ $c(function(e) {
|
|
|
10451
10451
|
id: Ye,
|
|
10452
10452
|
constraint: zt,
|
|
10453
10453
|
initialCoordinates: wt,
|
|
10454
|
-
offset:
|
|
10454
|
+
offset: Tt
|
|
10455
10455
|
};
|
|
10456
10456
|
Cn?.(Ft), v({
|
|
10457
10457
|
type: "onDragPending",
|
|
@@ -10466,7 +10466,7 @@ const $r = /* @__PURE__ */ $c(function(e) {
|
|
|
10466
10466
|
if (!wt)
|
|
10467
10467
|
return;
|
|
10468
10468
|
const {
|
|
10469
|
-
onDragStart:
|
|
10469
|
+
onDragStart: Tt
|
|
10470
10470
|
} = V.current, wn = {
|
|
10471
10471
|
activatorEvent: it,
|
|
10472
10472
|
active: {
|
|
@@ -10476,7 +10476,7 @@ const $r = /* @__PURE__ */ $c(function(e) {
|
|
|
10476
10476
|
}
|
|
10477
10477
|
};
|
|
10478
10478
|
Qn(() => {
|
|
10479
|
-
|
|
10479
|
+
Tt?.(wn), w(Wt.Initializing), b({
|
|
10480
10480
|
type: je.DragStart,
|
|
10481
10481
|
initialCoordinates: Ye,
|
|
10482
10482
|
active: zt
|
|
@@ -10500,7 +10500,7 @@ const $r = /* @__PURE__ */ $c(function(e) {
|
|
|
10500
10500
|
return async function() {
|
|
10501
10501
|
const {
|
|
10502
10502
|
active: wt,
|
|
10503
|
-
collisions:
|
|
10503
|
+
collisions: Tt,
|
|
10504
10504
|
over: wn,
|
|
10505
10505
|
scrollAdjustedTranslate: Cn
|
|
10506
10506
|
} = H.current;
|
|
@@ -10512,7 +10512,7 @@ const $r = /* @__PURE__ */ $c(function(e) {
|
|
|
10512
10512
|
Ft = {
|
|
10513
10513
|
activatorEvent: it,
|
|
10514
10514
|
active: wt,
|
|
10515
|
-
collisions:
|
|
10515
|
+
collisions: Tt,
|
|
10516
10516
|
delta: Cn,
|
|
10517
10517
|
over: wn
|
|
10518
10518
|
}, Ye === je.DragEnd && typeof On == "function" && await Promise.resolve(On(Ft)) && (Ye = je.DragCancel);
|
|
@@ -10597,7 +10597,7 @@ const $r = /* @__PURE__ */ $c(function(e) {
|
|
|
10597
10597
|
return;
|
|
10598
10598
|
const {
|
|
10599
10599
|
onDragOver: it
|
|
10600
|
-
} = V.current, yt = Lt.get(
|
|
10600
|
+
} = V.current, yt = Lt.get(Pt), en = yt && yt.rect.current ? {
|
|
10601
10601
|
id: yt.id,
|
|
10602
10602
|
rect: yt.rect.current,
|
|
10603
10603
|
data: yt.data,
|
|
@@ -10620,7 +10620,7 @@ const $r = /* @__PURE__ */ $c(function(e) {
|
|
|
10620
10620
|
});
|
|
10621
10621
|
},
|
|
10622
10622
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
10623
|
-
[
|
|
10623
|
+
[Pt]
|
|
10624
10624
|
), bt(() => {
|
|
10625
10625
|
H.current = {
|
|
10626
10626
|
activatorEvent: _,
|
|
@@ -11430,7 +11430,7 @@ const Gh = /* @__PURE__ */ Re.memo((t) => {
|
|
|
11430
11430
|
if (!t)
|
|
11431
11431
|
throw new Error("usePopperContentContext must be used within OxPopper.Content");
|
|
11432
11432
|
return t;
|
|
11433
|
-
}, ap =
|
|
11433
|
+
}, ap = Dt("OxPopperAnchor", "div"), cp = (t) => {
|
|
11434
11434
|
const e = z.c(19);
|
|
11435
11435
|
let n, r, o, s;
|
|
11436
11436
|
e[0] !== t ? ({
|
|
@@ -11467,7 +11467,7 @@ function at(t) {
|
|
|
11467
11467
|
var e;
|
|
11468
11468
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
11469
11469
|
}
|
|
11470
|
-
function
|
|
11470
|
+
function Et(t) {
|
|
11471
11471
|
var e;
|
|
11472
11472
|
return (e = (ia(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
11473
11473
|
}
|
|
@@ -11477,7 +11477,7 @@ function ia(t) {
|
|
|
11477
11477
|
function Ge(t) {
|
|
11478
11478
|
return Lr() ? t instanceof Element || t instanceof at(t).Element : !1;
|
|
11479
11479
|
}
|
|
11480
|
-
function
|
|
11480
|
+
function Nt(t) {
|
|
11481
11481
|
return Lr() ? t instanceof HTMLElement || t instanceof at(t).HTMLElement : !1;
|
|
11482
11482
|
}
|
|
11483
11483
|
function ni(t) {
|
|
@@ -11514,7 +11514,7 @@ function Go(t) {
|
|
|
11514
11514
|
}
|
|
11515
11515
|
function bp(t) {
|
|
11516
11516
|
let e = Yt(t);
|
|
11517
|
-
for (;
|
|
11517
|
+
for (; Nt(e) && !cn(e); ) {
|
|
11518
11518
|
if (Go(e))
|
|
11519
11519
|
return e;
|
|
11520
11520
|
if (zr(e))
|
|
@@ -11550,13 +11550,13 @@ function Yt(t) {
|
|
|
11550
11550
|
t.assignedSlot || // DOM Element detected.
|
|
11551
11551
|
t.parentNode || // ShadowRoot detected.
|
|
11552
11552
|
ni(t) && t.host || // Fallback.
|
|
11553
|
-
|
|
11553
|
+
Et(t)
|
|
11554
11554
|
);
|
|
11555
11555
|
return ni(e) ? e.host : e;
|
|
11556
11556
|
}
|
|
11557
11557
|
function la(t) {
|
|
11558
11558
|
const e = Yt(t);
|
|
11559
|
-
return cn(e) ? t.ownerDocument ? t.ownerDocument.body : t.body :
|
|
11559
|
+
return cn(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Nt(e) && Gn(e) ? e : la(e);
|
|
11560
11560
|
}
|
|
11561
11561
|
function In(t, e, n) {
|
|
11562
11562
|
var r;
|
|
@@ -11678,7 +11678,7 @@ function wr(t) {
|
|
|
11678
11678
|
};
|
|
11679
11679
|
}
|
|
11680
11680
|
var Tp = typeof document < "u", Rp = function() {
|
|
11681
|
-
}, Cr = Tp ?
|
|
11681
|
+
}, Cr = Tp ? At : Rp;
|
|
11682
11682
|
const Ap = {
|
|
11683
11683
|
...ue
|
|
11684
11684
|
}, Mp = Ap.useInsertionEffect, Ip = Mp || ((t) => t());
|
|
@@ -12212,7 +12212,7 @@ const jp = function(t) {
|
|
|
12212
12212
|
function da(t) {
|
|
12213
12213
|
const e = pt(t);
|
|
12214
12214
|
let n = parseFloat(e.width) || 0, r = parseFloat(e.height) || 0;
|
|
12215
|
-
const o =
|
|
12215
|
+
const o = Nt(t), s = o ? t.offsetWidth : n, i = o ? t.offsetHeight : r, l = xr(n) !== s || xr(r) !== i;
|
|
12216
12216
|
return l && (n = s, r = i), {
|
|
12217
12217
|
width: n,
|
|
12218
12218
|
height: r,
|
|
@@ -12224,7 +12224,7 @@ function Jo(t) {
|
|
|
12224
12224
|
}
|
|
12225
12225
|
function sn(t) {
|
|
12226
12226
|
const e = Jo(t);
|
|
12227
|
-
if (!
|
|
12227
|
+
if (!Nt(e))
|
|
12228
12228
|
return St(1);
|
|
12229
12229
|
const n = e.getBoundingClientRect(), {
|
|
12230
12230
|
width: r,
|
|
@@ -12272,7 +12272,7 @@ function Qt(t, e, n, r) {
|
|
|
12272
12272
|
}
|
|
12273
12273
|
function Vr(t, e) {
|
|
12274
12274
|
const n = Fr(t).scrollLeft;
|
|
12275
|
-
return e ? e.left + n : Qt(
|
|
12275
|
+
return e ? e.left + n : Qt(Et(t)).left + n;
|
|
12276
12276
|
}
|
|
12277
12277
|
function fa(t, e) {
|
|
12278
12278
|
const n = t.getBoundingClientRect(), r = n.left + e.scrollLeft - Vr(t, n), o = n.top + e.scrollTop;
|
|
@@ -12288,15 +12288,15 @@ function Gp(t) {
|
|
|
12288
12288
|
offsetParent: r,
|
|
12289
12289
|
strategy: o
|
|
12290
12290
|
} = t;
|
|
12291
|
-
const s = o === "fixed", i =
|
|
12291
|
+
const s = o === "fixed", i = Et(r), l = e ? zr(e.floating) : !1;
|
|
12292
12292
|
if (r === i || l && s)
|
|
12293
12293
|
return n;
|
|
12294
12294
|
let a = {
|
|
12295
12295
|
scrollLeft: 0,
|
|
12296
12296
|
scrollTop: 0
|
|
12297
12297
|
}, c = St(1);
|
|
12298
|
-
const d = St(0), u =
|
|
12299
|
-
if ((u || !u && !s) && ((bn(r) !== "body" || Gn(i)) && (a = Fr(r)),
|
|
12298
|
+
const d = St(0), u = Nt(r);
|
|
12299
|
+
if ((u || !u && !s) && ((bn(r) !== "body" || Gn(i)) && (a = Fr(r)), Nt(r))) {
|
|
12300
12300
|
const m = Qt(r);
|
|
12301
12301
|
c = sn(r), d.x = m.x + r.clientLeft, d.y = m.y + r.clientTop;
|
|
12302
12302
|
}
|
|
@@ -12312,7 +12312,7 @@ function Up(t) {
|
|
|
12312
12312
|
return Array.from(t.getClientRects());
|
|
12313
12313
|
}
|
|
12314
12314
|
function Kp(t) {
|
|
12315
|
-
const e =
|
|
12315
|
+
const e = Et(t), n = Fr(t), r = t.ownerDocument.body, o = lt(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), s = lt(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
|
|
12316
12316
|
let i = -n.scrollLeft + Vr(t);
|
|
12317
12317
|
const l = -n.scrollTop;
|
|
12318
12318
|
return pt(r).direction === "rtl" && (i += lt(e.clientWidth, r.clientWidth) - o), {
|
|
@@ -12324,7 +12324,7 @@ function Kp(t) {
|
|
|
12324
12324
|
}
|
|
12325
12325
|
const ai = 25;
|
|
12326
12326
|
function Xp(t, e) {
|
|
12327
|
-
const n = at(t), r =
|
|
12327
|
+
const n = at(t), r = Et(t), o = n.visualViewport;
|
|
12328
12328
|
let s = r.clientWidth, i = r.clientHeight, l = 0, a = 0;
|
|
12329
12329
|
if (o) {
|
|
12330
12330
|
s = o.width, i = o.height;
|
|
@@ -12345,7 +12345,7 @@ function Xp(t, e) {
|
|
|
12345
12345
|
}
|
|
12346
12346
|
const Qp = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
12347
12347
|
function Jp(t, e) {
|
|
12348
|
-
const n = Qt(t, !0, e === "fixed"), r = n.top + t.clientTop, o = n.left + t.clientLeft, s =
|
|
12348
|
+
const n = Qt(t, !0, e === "fixed"), r = n.top + t.clientTop, o = n.left + t.clientLeft, s = Nt(t) ? sn(t) : St(1), i = t.clientWidth * s.x, l = t.clientHeight * s.y, a = o * s.x, c = r * s.y;
|
|
12349
12349
|
return {
|
|
12350
12350
|
width: i,
|
|
12351
12351
|
height: l,
|
|
@@ -12358,7 +12358,7 @@ function ci(t, e, n) {
|
|
|
12358
12358
|
if (e === "viewport")
|
|
12359
12359
|
r = Xp(t, n);
|
|
12360
12360
|
else if (e === "document")
|
|
12361
|
-
r = Kp(
|
|
12361
|
+
r = Kp(Et(t));
|
|
12362
12362
|
else if (Ge(e))
|
|
12363
12363
|
r = Jp(e, n);
|
|
12364
12364
|
else {
|
|
@@ -12418,7 +12418,7 @@ function tg(t) {
|
|
|
12418
12418
|
};
|
|
12419
12419
|
}
|
|
12420
12420
|
function ng(t, e, n) {
|
|
12421
|
-
const r =
|
|
12421
|
+
const r = Nt(e), o = Et(e), s = n === "fixed", i = Qt(t, !0, s, e);
|
|
12422
12422
|
let l = {
|
|
12423
12423
|
scrollLeft: 0,
|
|
12424
12424
|
scrollTop: 0
|
|
@@ -12445,18 +12445,18 @@ function uo(t) {
|
|
|
12445
12445
|
return pt(t).position === "static";
|
|
12446
12446
|
}
|
|
12447
12447
|
function di(t, e) {
|
|
12448
|
-
if (!
|
|
12448
|
+
if (!Nt(t) || pt(t).position === "fixed")
|
|
12449
12449
|
return null;
|
|
12450
12450
|
if (e)
|
|
12451
12451
|
return e(t);
|
|
12452
12452
|
let n = t.offsetParent;
|
|
12453
|
-
return
|
|
12453
|
+
return Et(t) === n && (n = n.ownerDocument.body), n;
|
|
12454
12454
|
}
|
|
12455
12455
|
function ha(t, e) {
|
|
12456
12456
|
const n = at(t);
|
|
12457
12457
|
if (zr(t))
|
|
12458
12458
|
return n;
|
|
12459
|
-
if (!
|
|
12459
|
+
if (!Nt(t)) {
|
|
12460
12460
|
let o = Yt(t);
|
|
12461
12461
|
for (; o && !cn(o); ) {
|
|
12462
12462
|
if (Ge(o) && !uo(o))
|
|
@@ -12487,7 +12487,7 @@ function og(t) {
|
|
|
12487
12487
|
}
|
|
12488
12488
|
const sg = {
|
|
12489
12489
|
convertOffsetParentRelativeRectToViewportRelativeRect: Gp,
|
|
12490
|
-
getDocumentElement:
|
|
12490
|
+
getDocumentElement: Et,
|
|
12491
12491
|
getClippingRect: eg,
|
|
12492
12492
|
getOffsetParent: ha,
|
|
12493
12493
|
getElementRects: rg,
|
|
@@ -12502,7 +12502,7 @@ function pa(t, e) {
|
|
|
12502
12502
|
}
|
|
12503
12503
|
function ig(t, e) {
|
|
12504
12504
|
let n = null, r;
|
|
12505
|
-
const o =
|
|
12505
|
+
const o = Et(t);
|
|
12506
12506
|
function s() {
|
|
12507
12507
|
var l;
|
|
12508
12508
|
clearTimeout(r), (l = n) == null || l.disconnect(), n = null;
|
|
@@ -12596,7 +12596,7 @@ const ag = jp, cg = Bp, dg = zp, ug = Yp, fg = Fp, ui = Lp, mg = Wp, hg = (t, e,
|
|
|
12596
12596
|
});
|
|
12597
12597
|
};
|
|
12598
12598
|
var pg = typeof document < "u", gg = function() {
|
|
12599
|
-
}, cr = pg ?
|
|
12599
|
+
}, cr = pg ? At : gg;
|
|
12600
12600
|
function Or(t, e) {
|
|
12601
12601
|
if (t === e)
|
|
12602
12602
|
return !0;
|
|
@@ -13079,20 +13079,20 @@ const jg = (t) => ({
|
|
|
13079
13079
|
style: u,
|
|
13080
13080
|
...f
|
|
13081
13081
|
}, m) => {
|
|
13082
|
-
const p = sa(), [h, g] = te(null),
|
|
13083
|
-
context:
|
|
13084
|
-
floatingStyles:
|
|
13085
|
-
isPositioned:
|
|
13086
|
-
middlewareData:
|
|
13087
|
-
placement:
|
|
13088
|
-
refs:
|
|
13082
|
+
const p = sa(), [h, g] = te(null), b = Sc(h), v = b?.width ?? 0, x = b?.height ?? 0, y = a + (t !== "center" ? "-" + t : ""), {
|
|
13083
|
+
context: w,
|
|
13084
|
+
floatingStyles: O,
|
|
13085
|
+
isPositioned: S,
|
|
13086
|
+
middlewareData: k,
|
|
13087
|
+
placement: N,
|
|
13088
|
+
refs: D
|
|
13089
13089
|
} = Fg({
|
|
13090
13090
|
elements: {
|
|
13091
13091
|
reference: p.anchor
|
|
13092
13092
|
},
|
|
13093
13093
|
middleware: [xg({
|
|
13094
13094
|
alignmentAxis: e,
|
|
13095
|
-
mainAxis: c +
|
|
13095
|
+
mainAxis: c + x
|
|
13096
13096
|
}), r && yg({
|
|
13097
13097
|
crossAxis: !1,
|
|
13098
13098
|
limiter: d === "partial" ? wg() : void 0,
|
|
@@ -13102,62 +13102,60 @@ const jg = (t) => ({
|
|
|
13102
13102
|
padding: s
|
|
13103
13103
|
}), Og({
|
|
13104
13104
|
apply: ({
|
|
13105
|
-
availableHeight:
|
|
13106
|
-
availableWidth:
|
|
13107
|
-
elements:
|
|
13108
|
-
rects:
|
|
13105
|
+
availableHeight: L,
|
|
13106
|
+
availableWidth: M,
|
|
13107
|
+
elements: _,
|
|
13108
|
+
rects: A
|
|
13109
13109
|
}) => {
|
|
13110
13110
|
const {
|
|
13111
|
-
height:
|
|
13112
|
-
width:
|
|
13113
|
-
} =
|
|
13114
|
-
|
|
13111
|
+
height: V,
|
|
13112
|
+
width: I
|
|
13113
|
+
} = A.reference, F = _.floating.style;
|
|
13114
|
+
F.setProperty("--ox-popper-available-width", `${M}px`), F.setProperty("--ox-popper-available-height", `${L}px`), F.setProperty("--ox-popper-anchor-width", `${I}px`), F.setProperty("--ox-popper-anchor-height", `${V}px`);
|
|
13115
13115
|
},
|
|
13116
13116
|
padding: s
|
|
13117
|
-
}),
|
|
13118
|
-
element:
|
|
13117
|
+
}), h && Sg({
|
|
13118
|
+
element: h,
|
|
13119
13119
|
padding: n
|
|
13120
13120
|
}), jg({
|
|
13121
|
-
arrowHeight:
|
|
13122
|
-
arrowWidth:
|
|
13121
|
+
arrowHeight: x,
|
|
13122
|
+
arrowWidth: v
|
|
13123
13123
|
}), i && kg({
|
|
13124
13124
|
strategy: "referenceHidden"
|
|
13125
13125
|
})].filter(Boolean),
|
|
13126
|
-
placement:
|
|
13126
|
+
placement: y,
|
|
13127
13127
|
strategy: "fixed",
|
|
13128
|
-
whileElementsMounted: (...
|
|
13128
|
+
whileElementsMounted: (...L) => lg(...L, {
|
|
13129
13129
|
animationFrame: !1
|
|
13130
13130
|
})
|
|
13131
|
-
}), [
|
|
13132
|
-
|
|
13131
|
+
}), [E, P] = va(N), T = k.transformOrigin, R = Ae((L) => {
|
|
13132
|
+
typeof m == "function" ? m(L) : m && (m.current = L);
|
|
13133
13133
|
}, [m]);
|
|
13134
|
-
return
|
|
13135
|
-
|
|
13136
|
-
}, [
|
|
13137
|
-
N && l?.();
|
|
13138
|
-
}, [N, l]), /* @__PURE__ */ C(
|
|
13134
|
+
return At(() => {
|
|
13135
|
+
S && l?.();
|
|
13136
|
+
}, [S, l]), /* @__PURE__ */ C(
|
|
13139
13137
|
"div",
|
|
13140
13138
|
{
|
|
13139
|
+
className: "z-50",
|
|
13141
13140
|
"data-ox-popper-content-wrapper": "",
|
|
13142
|
-
ref:
|
|
13141
|
+
ref: D.setFloating,
|
|
13143
13142
|
style: {
|
|
13144
|
-
...
|
|
13143
|
+
...O,
|
|
13145
13144
|
minWidth: "max-content",
|
|
13146
|
-
transform:
|
|
13147
|
-
|
|
13148
|
-
|
|
13149
|
-
...D.hide?.referenceHidden && {
|
|
13145
|
+
transform: S ? O.transform : "translate(0, -200%)",
|
|
13146
|
+
"--ox-popper-transform-origin": T ? `${T.x} ${T.y}` : void 0,
|
|
13147
|
+
...k.hide?.referenceHidden && {
|
|
13150
13148
|
pointerEvents: "none",
|
|
13151
13149
|
visibility: "hidden"
|
|
13152
13150
|
}
|
|
13153
13151
|
},
|
|
13154
13152
|
children: /* @__PURE__ */ C(oa.Provider, { value: {
|
|
13155
|
-
floatingContext:
|
|
13156
|
-
onArrowChange:
|
|
13157
|
-
placedSide:
|
|
13158
|
-
}, children: /* @__PURE__ */ C("div", { "data-align":
|
|
13153
|
+
floatingContext: w,
|
|
13154
|
+
onArrowChange: g,
|
|
13155
|
+
placedSide: E
|
|
13156
|
+
}, children: /* @__PURE__ */ C("div", { "data-align": P, "data-ox-side": E, "data-side": E, ref: R, ...f, style: {
|
|
13159
13157
|
...u,
|
|
13160
|
-
animation:
|
|
13158
|
+
animation: S ? void 0 : "none",
|
|
13161
13159
|
position: "relative"
|
|
13162
13160
|
}, children: o }) })
|
|
13163
13161
|
}
|
|
@@ -13372,7 +13370,7 @@ const Hg = (t) => {
|
|
|
13372
13370
|
e[4] !== r ? (s = $("ml-auto text-xs tracking-widest text-muted-foreground", r), e[4] = r, e[5] = s) : s = e[5];
|
|
13373
13371
|
let i;
|
|
13374
13372
|
return e[6] !== n || e[7] !== o || e[8] !== s ? (i = /* @__PURE__ */ C("span", { className: s, ...o, "data-ox-slot": "dropdown-shortcut", children: n }), e[6] = n, e[7] = o, e[8] = s, e[9] = i) : i = e[9], i;
|
|
13375
|
-
}, tb =
|
|
13373
|
+
}, tb = Dt("OxDropdownTrigger", "button"), nb = (t) => {
|
|
13376
13374
|
const e = z.c(37);
|
|
13377
13375
|
let n, r, o, s, i, l, a, c, d, u;
|
|
13378
13376
|
e[0] !== t ? ({
|
|
@@ -14301,7 +14299,7 @@ const Cb = ({
|
|
|
14301
14299
|
w,
|
|
14302
14300
|
n
|
|
14303
14301
|
] }) }), e[16] = c, e[17] = n, e[18] = o, e[19] = g, e[20] = v, e[21] = m, e[22] = x, e[23] = y, e[24] = O) : O = e[24], O;
|
|
14304
|
-
}, Nb =
|
|
14302
|
+
}, Nb = Dt("OxHoverCardTrigger", "div"), Db = (t) => {
|
|
14305
14303
|
const e = z.c(27);
|
|
14306
14304
|
let n, r, o, s, i, l;
|
|
14307
14305
|
e[0] !== t ? ({
|
|
@@ -15448,7 +15446,7 @@ const Ta = he(null), Hb = () => {
|
|
|
15448
15446
|
Column: Xb,
|
|
15449
15447
|
ColumnFooter: Ia,
|
|
15450
15448
|
ColumnHeader: _a
|
|
15451
|
-
}), Qb =
|
|
15449
|
+
}), Qb = Dt("OxLink", "a"), mx = (t) => {
|
|
15452
15450
|
const e = z.c(26);
|
|
15453
15451
|
let n, r, o, s, i, l, a, c;
|
|
15454
15452
|
e[0] !== t ? ({
|
|
@@ -16120,7 +16118,7 @@ const m0 = (t) => {
|
|
|
16120
16118
|
let m, p;
|
|
16121
16119
|
e[5] !== l ? (m = () => {
|
|
16122
16120
|
a.current && l(a.current);
|
|
16123
|
-
}, p = [l], e[5] = l, e[6] = m, e[7] = p) : (m = e[6], p = e[7]),
|
|
16121
|
+
}, p = [l], e[5] = l, e[6] = m, e[7] = p) : (m = e[6], p = e[7]), At(m, p);
|
|
16124
16122
|
let h, g;
|
|
16125
16123
|
e[8] !== s || e[9] !== i ? (h = () => {
|
|
16126
16124
|
if (f.current === s)
|
|
@@ -16148,7 +16146,7 @@ const m0 = (t) => {
|
|
|
16148
16146
|
opacity: 1,
|
|
16149
16147
|
top: O.top - w.top
|
|
16150
16148
|
});
|
|
16151
|
-
}, g = [s, i], e[8] = s, e[9] = i, e[10] = h, e[11] = g) : (h = e[10], g = e[11]),
|
|
16149
|
+
}, g = [s, i], e[8] = s, e[9] = i, e[10] = h, e[11] = g) : (h = e[10], g = e[11]), At(h, g);
|
|
16152
16150
|
let b;
|
|
16153
16151
|
e[12] !== r ? (b = $("relative border-l border-border", r), e[12] = r, e[13] = b) : b = e[13];
|
|
16154
16152
|
let v;
|
|
@@ -16256,7 +16254,7 @@ const m0 = (t) => {
|
|
|
16256
16254
|
e[4] !== r ? (s = $(r), e[4] = r, e[5] = s) : s = e[5];
|
|
16257
16255
|
let i;
|
|
16258
16256
|
return e[6] !== n || e[7] !== o || e[8] !== s ? (i = /* @__PURE__ */ C("li", { className: s, ...o, "data-ox-slot": "pagination-item", children: n }), e[6] = n, e[7] = o, e[8] = s, e[9] = i) : i = e[9], i;
|
|
16259
|
-
}, y0 =
|
|
16257
|
+
}, y0 = Dt("OxPaginationLink", "a"), w0 = (t) => {
|
|
16260
16258
|
const e = z.c(27);
|
|
16261
16259
|
let n, r, o, s, i, l, a;
|
|
16262
16260
|
e[0] !== t ? ({
|
|
@@ -16302,7 +16300,7 @@ const m0 = (t) => {
|
|
|
16302
16300
|
}
|
|
16303
16301
|
let y;
|
|
16304
16302
|
return e[24] !== n || e[25] !== x ? (y = /* @__PURE__ */ C("a", { ...x, children: n }), e[24] = n, e[25] = x, e[26] = y) : y = e[26], y;
|
|
16305
|
-
}, C0 =
|
|
16303
|
+
}, C0 = Dt("OxPaginationNext", "a"), O0 = (t) => {
|
|
16306
16304
|
const e = z.c(25);
|
|
16307
16305
|
let n, r, o, s, i, l;
|
|
16308
16306
|
e[0] !== t ? ({
|
|
@@ -16352,7 +16350,7 @@ const m0 = (t) => {
|
|
|
16352
16350
|
}
|
|
16353
16351
|
let w;
|
|
16354
16352
|
return e[22] !== m || e[23] !== y ? (w = /* @__PURE__ */ C("a", { ...y, children: m }), e[22] = m, e[23] = y, e[24] = w) : w = e[24], w;
|
|
16355
|
-
}, k0 =
|
|
16353
|
+
}, k0 = Dt("OxPaginationPrevious", "a"), S0 = (t) => {
|
|
16356
16354
|
const e = z.c(25);
|
|
16357
16355
|
let n, r, o, s, i, l;
|
|
16358
16356
|
e[0] !== t ? ({
|
|
@@ -16492,7 +16490,7 @@ const m0 = (t) => {
|
|
|
16492
16490
|
p,
|
|
16493
16491
|
g
|
|
16494
16492
|
] }) }), e[15] = l, e[16] = o, e[17] = u, e[18] = f, e[19] = m, e[20] = p, e[21] = g, e[22] = b) : b = e[22], b;
|
|
16495
|
-
}, E0 =
|
|
16493
|
+
}, E0 = Dt("OxPopoverTrigger", "button"), P0 = (t) => {
|
|
16496
16494
|
const e = z.c(19);
|
|
16497
16495
|
let n, r, o, s, i;
|
|
16498
16496
|
e[0] !== t ? ({
|
|
@@ -16800,20 +16798,20 @@ const m0 = (t) => {
|
|
|
16800
16798
|
nt,
|
|
16801
16799
|
rt
|
|
16802
16800
|
] }), e[102] = q, e[103] = ne, e[104] = ge, e[105] = nt, e[106] = rt, e[107] = dt) : dt = e[107];
|
|
16803
|
-
let
|
|
16804
|
-
e[108] !== E || e[109] !== v || e[110] !== J || e[111] !== x || e[112] !== G || e[113] !== w ? (
|
|
16801
|
+
let Pt;
|
|
16802
|
+
e[108] !== E || e[109] !== v || e[110] !== J || e[111] !== x || e[112] !== G || e[113] !== w ? (Pt = w && /* @__PURE__ */ K("div", { className: $("mt-2 flex justify-between text-xs text-muted-foreground"), children: [
|
|
16805
16803
|
/* @__PURE__ */ C("span", { children: E ? `${G} - ${J}` : G }),
|
|
16806
16804
|
/* @__PURE__ */ K("span", { children: [
|
|
16807
16805
|
x,
|
|
16808
16806
|
" - ",
|
|
16809
16807
|
v
|
|
16810
16808
|
] })
|
|
16811
|
-
] }), e[108] = E, e[109] = v, e[110] = J, e[111] = x, e[112] = G, e[113] = w, e[114] =
|
|
16809
|
+
] }), e[108] = E, e[109] = v, e[110] = J, e[111] = x, e[112] = G, e[113] = w, e[114] = Pt) : Pt = e[114];
|
|
16812
16810
|
let Xe;
|
|
16813
|
-
e[115] !== dt || e[116] !==
|
|
16811
|
+
e[115] !== dt || e[116] !== Pt ? (Xe = /* @__PURE__ */ K("div", { className: "relative py-3", children: [
|
|
16814
16812
|
dt,
|
|
16815
|
-
|
|
16816
|
-
] }), e[115] = dt, e[116] =
|
|
16813
|
+
Pt
|
|
16814
|
+
] }), e[115] = dt, e[116] = Pt, e[117] = Xe) : Xe = e[117];
|
|
16817
16815
|
let Gt;
|
|
16818
16816
|
return e[118] !== i || e[119] !== ee || e[120] !== Xe ? (Gt = /* @__PURE__ */ C("div", { className: ee, "data-ox-slot": "slider", ...i, children: Xe }), e[118] = i, e[119] = ee, e[120] = Xe, e[121] = Gt) : Gt = e[121], Gt;
|
|
16819
16817
|
}, Ya = he(null), Ha = he(null), I0 = () => {
|
|
@@ -19468,7 +19466,7 @@ const Q2 = (t) => {
|
|
|
19468
19466
|
const v = s.current.offsetWidth;
|
|
19469
19467
|
d.current.style.width = `${v}px`;
|
|
19470
19468
|
}
|
|
19471
|
-
}, f = [s, l], e[4] = s, e[5] = l, e[6] = u, e[7] = f) : (u = e[6], f = e[7]),
|
|
19469
|
+
}, f = [s, l], e[4] = s, e[5] = l, e[6] = u, e[7] = f) : (u = e[6], f = e[7]), At(u, f), !l)
|
|
19472
19470
|
return null;
|
|
19473
19471
|
const m = i ? "closing" : "open", p = `${c}-listbox`;
|
|
19474
19472
|
let h;
|
|
@@ -19561,7 +19559,7 @@ const Q2 = (t) => {
|
|
|
19561
19559
|
S();
|
|
19562
19560
|
}, e[22] = S, e[23] = J) : J = e[23];
|
|
19563
19561
|
let H;
|
|
19564
|
-
if (e[24] !== S || e[25] !== Y ? (H = [Y, S], e[24] = S, e[25] = Y, e[26] = H) : H = e[26],
|
|
19562
|
+
if (e[24] !== S || e[25] !== Y ? (H = [Y, S], e[24] = S, e[25] = Y, e[26] = H) : H = e[26], At(J, H), v) {
|
|
19565
19563
|
let le;
|
|
19566
19564
|
e[27] !== r ? (le = $("flex w-full flex-col", r), e[27] = r, e[28] = le) : le = e[28];
|
|
19567
19565
|
const be = !E;
|
|
@@ -20488,7 +20486,7 @@ export {
|
|
|
20488
20486
|
Ox as ae,
|
|
20489
20487
|
$ as af,
|
|
20490
20488
|
s0 as ag,
|
|
20491
|
-
|
|
20489
|
+
Dt as ah,
|
|
20492
20490
|
xu as ai,
|
|
20493
20491
|
Bv as aj,
|
|
20494
20492
|
Wv as ak,
|