@qtalo/qt-ui-library 0.1.24 → 0.1.25
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +206 -195
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -326,13 +326,13 @@ var html$1 = freeze(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.a
|
|
|
326
326
|
function createDOMPurify() {
|
|
327
327
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal(), t = (e) => createDOMPurify(e);
|
|
328
328
|
if (t.version = "3.3.1", t.removed = [], !e || !e.document || e.document.nodeType !== NODE_TYPE.document || !e.Element) return t.isSupported = !1, t;
|
|
329
|
-
let { document: n } = e, r = n, i = r.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: s, Element: c, NodeFilter: l, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: f, DOMParser: p, trustedTypes: h } = e,
|
|
329
|
+
let { document: n } = e, r = n, i = r.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: s, Element: c, NodeFilter: l, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: f, DOMParser: p, trustedTypes: h } = e, g = c.prototype, O = lookupGetter(g, "cloneNode"), A = lookupGetter(g, "remove"), Zo = lookupGetter(g, "nextSibling"), Qo = lookupGetter(g, "childNodes"), $o = lookupGetter(g, "parentNode");
|
|
330
330
|
if (typeof o == "function") {
|
|
331
331
|
let e = n.createElement("template");
|
|
332
332
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
333
333
|
}
|
|
334
|
-
let
|
|
335
|
-
t.isSupported = typeof entries == "function" && typeof
|
|
334
|
+
let R, B = "", { implementation: es, createNodeIterator: ts, createDocumentFragment: ns, getElementsByTagName: rs } = n, { importNode: is } = r, as = _createHooksMap();
|
|
335
|
+
t.isSupported = typeof entries == "function" && typeof $o == "function" && es && es.createHTMLDocument !== void 0;
|
|
336
336
|
let { MUSTACHE_EXPR: os, ERB_EXPR: ss, TMPLIT_EXPR: cs, DATA_ATTR: ls, ARIA_ATTR: us, IS_SCRIPT_OR_DATA: ds, ATTR_WHITESPACE: fs, CUSTOM_ELEMENT: ps } = EXPRESSIONS, { IS_ALLOWED_URI: ms } = EXPRESSIONS, V = null, hs = addToSet({}, [
|
|
337
337
|
...html$1,
|
|
338
338
|
...svg$1,
|
|
@@ -452,8 +452,8 @@ function createDOMPurify() {
|
|
|
452
452
|
]), V.table && (addToSet(V, ["tbody"]), delete vs.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
453
453
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
454
454
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
455
|
-
|
|
456
|
-
} else
|
|
455
|
+
R = e.TRUSTED_TYPES_POLICY, B = R.createHTML("");
|
|
456
|
+
} else R === void 0 && (R = _createTrustedTypesPolicy(h, i)), R !== null && typeof B == "string" && (B = R.createHTML(""));
|
|
457
457
|
freeze && freeze(e), nc = e;
|
|
458
458
|
}
|
|
459
459
|
}, oc = addToSet({}, [
|
|
@@ -461,7 +461,7 @@ function createDOMPurify() {
|
|
|
461
461
|
...svgFilters,
|
|
462
462
|
...svgDisallowed
|
|
463
463
|
]), sc = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), cc = function(e) {
|
|
464
|
-
let t =
|
|
464
|
+
let t = $o(e);
|
|
465
465
|
(!t || !t.tagName) && (t = {
|
|
466
466
|
namespaceURI: qs,
|
|
467
467
|
tagName: "template"
|
|
@@ -471,9 +471,9 @@ function createDOMPurify() {
|
|
|
471
471
|
}, lc = function(e) {
|
|
472
472
|
arrayPush(t.removed, { element: e });
|
|
473
473
|
try {
|
|
474
|
-
|
|
474
|
+
$o(e).removeChild(e);
|
|
475
475
|
} catch {
|
|
476
|
-
|
|
476
|
+
A(e);
|
|
477
477
|
}
|
|
478
478
|
}, uc = function(e, n) {
|
|
479
479
|
try {
|
|
@@ -501,20 +501,20 @@ function createDOMPurify() {
|
|
|
501
501
|
r = t && t[0];
|
|
502
502
|
}
|
|
503
503
|
ec === "application/xhtml+xml" && qs === Ks && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
504
|
-
let i =
|
|
504
|
+
let i = R ? R.createHTML(e) : e;
|
|
505
505
|
if (qs === Ks) try {
|
|
506
506
|
t = new p().parseFromString(i, ec);
|
|
507
507
|
} catch {}
|
|
508
508
|
if (!t || !t.documentElement) {
|
|
509
|
-
t =
|
|
509
|
+
t = es.createDocument(qs, "template", null);
|
|
510
510
|
try {
|
|
511
|
-
t.documentElement.innerHTML = Js ?
|
|
511
|
+
t.documentElement.innerHTML = Js ? B : i;
|
|
512
512
|
} catch {}
|
|
513
513
|
}
|
|
514
514
|
let a = t.body || t.documentElement;
|
|
515
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), qs === Ks ?
|
|
515
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), qs === Ks ? rs.call(t, Ds ? "html" : "body")[0] : Ds ? t.documentElement : a;
|
|
516
516
|
}, fc = function(e) {
|
|
517
|
-
return
|
|
517
|
+
return ts.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
|
|
518
518
|
}, pc = function(e) {
|
|
519
519
|
return e instanceof f && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof u) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
520
520
|
}, mc = function(e) {
|
|
@@ -527,21 +527,21 @@ function createDOMPurify() {
|
|
|
527
527
|
}
|
|
528
528
|
let gc = function(e) {
|
|
529
529
|
let n = null;
|
|
530
|
-
if (hc(
|
|
530
|
+
if (hc(as.beforeSanitizeElements, e, null), pc(e)) return lc(e), !0;
|
|
531
531
|
let r = Y(e.nodeName);
|
|
532
|
-
if (hc(
|
|
532
|
+
if (hc(as.uponSanitizeElement, e, {
|
|
533
533
|
tagName: r,
|
|
534
534
|
allowedTags: V
|
|
535
535
|
}), Es && e.hasChildNodes() && !mc(e.firstElementChild) && regExpTest(/<[/\w!]/g, e.innerHTML) && regExpTest(/<[/\w!]/g, e.textContent) || e.nodeType === NODE_TYPE.progressingInstruction || Es && e.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, e.data)) return lc(e), !0;
|
|
536
536
|
if (!(bs.tagCheck instanceof Function && bs.tagCheck(r)) && (!V[r] || vs[r])) {
|
|
537
537
|
if (!vs[r] && vc(r) && (H.tagNameCheck instanceof RegExp && regExpTest(H.tagNameCheck, r) || H.tagNameCheck instanceof Function && H.tagNameCheck(r))) return !1;
|
|
538
538
|
if (Fs && !Rs[r]) {
|
|
539
|
-
let t =
|
|
539
|
+
let t = $o(e) || e.parentNode, n = Qo(e) || e.childNodes;
|
|
540
540
|
if (n && t) {
|
|
541
541
|
let r = n.length;
|
|
542
542
|
for (let i = r - 1; i >= 0; --i) {
|
|
543
|
-
let r =
|
|
544
|
-
r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r,
|
|
543
|
+
let r = O(n[i], !0);
|
|
544
|
+
r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, Zo(e));
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
@@ -553,7 +553,7 @@ function createDOMPurify() {
|
|
|
553
553
|
cs
|
|
554
554
|
], (e) => {
|
|
555
555
|
n = stringReplace(n, e, " ");
|
|
556
|
-
}), e.textContent !== n && (arrayPush(t.removed, { element: e.cloneNode() }), e.textContent = n)), hc(
|
|
556
|
+
}), e.textContent !== n && (arrayPush(t.removed, { element: e.cloneNode() }), e.textContent = n)), hc(as.afterSanitizeElements, e, null), !1);
|
|
557
557
|
}, _c = function(e, t, r) {
|
|
558
558
|
if (Ns && (t === "id" || t === "name") && (r in n || r in rc)) return !1;
|
|
559
559
|
if (!(Ss && !ys[t] && regExpTest(ls, t)) && !(xs && regExpTest(us, t)) && !(bs.attributeCheck instanceof Function && bs.attributeCheck(t, e))) {
|
|
@@ -565,7 +565,7 @@ function createDOMPurify() {
|
|
|
565
565
|
}, vc = function(e) {
|
|
566
566
|
return e !== "annotation-xml" && stringMatch(e, ps);
|
|
567
567
|
}, yc = function(e) {
|
|
568
|
-
hc(
|
|
568
|
+
hc(as.beforeSanitizeAttributes, e, null);
|
|
569
569
|
let { attributes: n } = e;
|
|
570
570
|
if (!n || pc(e)) return;
|
|
571
571
|
let r = {
|
|
@@ -577,7 +577,7 @@ function createDOMPurify() {
|
|
|
577
577
|
}, i = n.length;
|
|
578
578
|
for (; i--;) {
|
|
579
579
|
let { name: a, namespaceURI: o, value: s } = n[i], c = Y(a), l = s, u = a === "value" ? l : stringTrim(l);
|
|
580
|
-
if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, hc(
|
|
580
|
+
if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, hc(as.uponSanitizeAttribute, e, r), u = r.attrValue, Ps && (c === "id" || c === "name") && (uc(a, e), u = "user-content-" + u), Es && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, u)) {
|
|
581
581
|
uc(a, e);
|
|
582
582
|
continue;
|
|
583
583
|
}
|
|
@@ -606,12 +606,12 @@ function createDOMPurify() {
|
|
|
606
606
|
uc(a, e);
|
|
607
607
|
continue;
|
|
608
608
|
}
|
|
609
|
-
if (
|
|
609
|
+
if (R && typeof h == "object" && typeof h.getAttributeType == "function" && !o) switch (h.getAttributeType(f, c)) {
|
|
610
610
|
case "TrustedHTML":
|
|
611
|
-
u =
|
|
611
|
+
u = R.createHTML(u);
|
|
612
612
|
break;
|
|
613
613
|
case "TrustedScriptURL":
|
|
614
|
-
u =
|
|
614
|
+
u = R.createScriptURL(u);
|
|
615
615
|
break;
|
|
616
616
|
}
|
|
617
617
|
if (u !== l) try {
|
|
@@ -620,11 +620,11 @@ function createDOMPurify() {
|
|
|
620
620
|
uc(a, e);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
hc(
|
|
623
|
+
hc(as.afterSanitizeAttributes, e, null);
|
|
624
624
|
}, bc = function e(t) {
|
|
625
625
|
let n = null, r = fc(t);
|
|
626
|
-
for (hc(
|
|
627
|
-
hc(
|
|
626
|
+
for (hc(as.beforeSanitizeShadowDOM, t, null); n = r.nextNode();) hc(as.uponSanitizeShadowNode, n, null), gc(n), yc(n), n.content instanceof a && e(n.content);
|
|
627
|
+
hc(as.afterSanitizeShadowDOM, t, null);
|
|
628
628
|
};
|
|
629
629
|
return t.sanitize = function(e) {
|
|
630
630
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, c = null, l = null;
|
|
@@ -639,17 +639,17 @@ function createDOMPurify() {
|
|
|
639
639
|
}
|
|
640
640
|
} else if (e instanceof s) i = dc("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === NODE_TYPE.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o);
|
|
641
641
|
else {
|
|
642
|
-
if (!As && !Ts && !Ds && e.indexOf("<") === -1) return
|
|
643
|
-
if (i = dc(e), !i) return As ? null : Ms ?
|
|
642
|
+
if (!As && !Ts && !Ds && e.indexOf("<") === -1) return R && Ms ? R.createHTML(e) : e;
|
|
643
|
+
if (i = dc(e), !i) return As ? null : Ms ? B : "";
|
|
644
644
|
}
|
|
645
645
|
i && ks && lc(i.firstChild);
|
|
646
646
|
let u = fc(Is ? e : i);
|
|
647
647
|
for (; c = u.nextNode();) gc(c), yc(c), c.content instanceof a && bc(c.content);
|
|
648
648
|
if (Is) return e;
|
|
649
649
|
if (As) {
|
|
650
|
-
if (js) for (l =
|
|
650
|
+
if (js) for (l = ns.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
|
|
651
651
|
else l = i;
|
|
652
|
-
return (gs.shadowroot || gs.shadowrootmode) && (l =
|
|
652
|
+
return (gs.shadowroot || gs.shadowrootmode) && (l = is.call(r, l, !0)), l;
|
|
653
653
|
}
|
|
654
654
|
let f = Ds ? i.outerHTML : i.innerHTML;
|
|
655
655
|
return Ds && V["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), Ts && arrayForEach([
|
|
@@ -658,7 +658,7 @@ function createDOMPurify() {
|
|
|
658
658
|
cs
|
|
659
659
|
], (e) => {
|
|
660
660
|
f = stringReplace(f, e, " ");
|
|
661
|
-
}),
|
|
661
|
+
}), R && Ms ? R.createHTML(f) : f;
|
|
662
662
|
}, t.setConfig = function() {
|
|
663
663
|
ac(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Os = !0;
|
|
664
664
|
}, t.clearConfig = function() {
|
|
@@ -666,17 +666,17 @@ function createDOMPurify() {
|
|
|
666
666
|
}, t.isValidAttribute = function(e, t, n) {
|
|
667
667
|
return nc || ac({}), _c(Y(e), Y(t), n);
|
|
668
668
|
}, t.addHook = function(e, t) {
|
|
669
|
-
typeof t == "function" && arrayPush(
|
|
669
|
+
typeof t == "function" && arrayPush(as[e], t);
|
|
670
670
|
}, t.removeHook = function(e, t) {
|
|
671
671
|
if (t !== void 0) {
|
|
672
|
-
let n = arrayLastIndexOf(
|
|
673
|
-
return n === -1 ? void 0 : arraySplice(
|
|
672
|
+
let n = arrayLastIndexOf(as[e], t);
|
|
673
|
+
return n === -1 ? void 0 : arraySplice(as[e], n, 1)[0];
|
|
674
674
|
}
|
|
675
|
-
return arrayPop(
|
|
675
|
+
return arrayPop(as[e]);
|
|
676
676
|
}, t.removeHooks = function(e) {
|
|
677
|
-
|
|
677
|
+
as[e] = [];
|
|
678
678
|
}, t.removeAllHooks = function() {
|
|
679
|
-
|
|
679
|
+
as = _createHooksMap();
|
|
680
680
|
}, t;
|
|
681
681
|
}
|
|
682
682
|
var purify = createDOMPurify();
|
|
@@ -21328,11 +21328,11 @@ function Button({ className: e, children: t, ...n }) {
|
|
|
21328
21328
|
});
|
|
21329
21329
|
}
|
|
21330
21330
|
function Checkbox({ checked: e, defaultChecked: t, icon: n, indeterminate: r, indeterminateIcon: i, onChange: a, disabled: o, children: s, className: c }) {
|
|
21331
|
-
let u = useRef(null), [f, p] = useState(t ?? !1),
|
|
21331
|
+
let u = useRef(null), [f, p] = useState(t ?? !1), O = e ?? f;
|
|
21332
21332
|
useEffect(() => {
|
|
21333
21333
|
u.current && (u.current.indeterminate = !!r);
|
|
21334
21334
|
}, [r]);
|
|
21335
|
-
function
|
|
21335
|
+
function A(t) {
|
|
21336
21336
|
let n = t.target.checked;
|
|
21337
21337
|
e === void 0 && p(n), a?.(n);
|
|
21338
21338
|
}
|
|
@@ -21344,17 +21344,17 @@ function Checkbox({ checked: e, defaultChecked: t, icon: n, indeterminate: r, in
|
|
|
21344
21344
|
type: "checkbox",
|
|
21345
21345
|
className: cn("p-0 absolute h-px w-px overflow-hidden whitespace-nowrap", "[clip-path:inset(50%)]", "border-0"),
|
|
21346
21346
|
disabled: o,
|
|
21347
|
-
onChange:
|
|
21347
|
+
onChange: A,
|
|
21348
21348
|
...e === void 0 ? { defaultChecked: t } : { checked: e }
|
|
21349
21349
|
}),
|
|
21350
21350
|
/* @__PURE__ */ jsx("span", {
|
|
21351
21351
|
role: "checkbox",
|
|
21352
|
-
"aria-checked": r ? "mixed" :
|
|
21352
|
+
"aria-checked": r ? "mixed" : O,
|
|
21353
21353
|
tabIndex: -1,
|
|
21354
|
-
"data-state": r ? "indeterminate" :
|
|
21354
|
+
"data-state": r ? "indeterminate" : O ? "checked" : "unchecked",
|
|
21355
21355
|
className: "checkbox-box inline-flex items-center justify-center",
|
|
21356
21356
|
children: /* @__PURE__ */ jsx("span", {
|
|
21357
|
-
className: cn("checkbox-icon", !(
|
|
21357
|
+
className: cn("checkbox-icon", !(O || r) && "opacity-0"),
|
|
21358
21358
|
children: r ? i ?? "—" : n ?? "✓"
|
|
21359
21359
|
})
|
|
21360
21360
|
}),
|
|
@@ -21372,18 +21372,18 @@ function useDropdown() {
|
|
|
21372
21372
|
return e;
|
|
21373
21373
|
}
|
|
21374
21374
|
function Dropdown({ trigger: e, children: t, align: n = "start", side: r = "bottom", offsetX: i = 0, offsetY: a = 0, disabled: o = !1, openOnHover: c = !0, open: u, onOpenChange: p }) {
|
|
21375
|
-
let
|
|
21376
|
-
e !==
|
|
21375
|
+
let O = u !== void 0, [A, R] = useState(!1), B = O ? u : A, es = useCallback((e) => {
|
|
21376
|
+
e !== B && (O || R(e), p?.(e));
|
|
21377
21377
|
}, [
|
|
21378
|
-
|
|
21379
|
-
|
|
21378
|
+
B,
|
|
21379
|
+
O,
|
|
21380
21380
|
p
|
|
21381
|
-
]),
|
|
21382
|
-
if (!
|
|
21383
|
-
let e =
|
|
21381
|
+
]), ts = useRef(null), ns = useRef(null), rs = useRef(null), [is, as] = useState(null), os = useCallback(() => {
|
|
21382
|
+
if (!ts.current || !ns.current) return;
|
|
21383
|
+
let e = ts.current.getBoundingClientRect(), t = ns.current.getBoundingClientRect(), o = e.left;
|
|
21384
21384
|
n === "end" ? o = e.right - t.width : n === "center" && (o = e.left + (e.width - t.width) / 2), o += i;
|
|
21385
21385
|
let s;
|
|
21386
|
-
s = r === "bottom" ? e.bottom + a : e.top - t.height + a, queueMicrotask(() =>
|
|
21386
|
+
s = r === "bottom" ? e.bottom + a : e.top - t.height + a, queueMicrotask(() => as({
|
|
21387
21387
|
top: s,
|
|
21388
21388
|
left: o
|
|
21389
21389
|
}));
|
|
@@ -21394,52 +21394,52 @@ function Dropdown({ trigger: e, children: t, align: n = "start", side: r = "bott
|
|
|
21394
21394
|
a
|
|
21395
21395
|
]);
|
|
21396
21396
|
useLayoutEffect(() => {
|
|
21397
|
-
|
|
21398
|
-
}, [
|
|
21399
|
-
if (!
|
|
21397
|
+
B && os();
|
|
21398
|
+
}, [B, os]), useEffect(() => {
|
|
21399
|
+
if (!B) return;
|
|
21400
21400
|
let e = () => os();
|
|
21401
21401
|
return window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
|
|
21402
21402
|
window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
|
|
21403
21403
|
};
|
|
21404
|
-
}, [
|
|
21404
|
+
}, [B, os]);
|
|
21405
21405
|
let ss = useCallback(() => {
|
|
21406
|
-
|
|
21407
|
-
}, [
|
|
21408
|
-
|
|
21409
|
-
|
|
21406
|
+
rs.current &&= (clearTimeout(rs.current), null), es(!0);
|
|
21407
|
+
}, [es]), cs = useCallback(() => {
|
|
21408
|
+
rs.current = window.setTimeout(() => {
|
|
21409
|
+
es(!1);
|
|
21410
21410
|
}, 120);
|
|
21411
|
-
}, [
|
|
21411
|
+
}, [es]);
|
|
21412
21412
|
return useEffect(() => {
|
|
21413
21413
|
function e(e) {
|
|
21414
21414
|
let t = e.target;
|
|
21415
|
-
|
|
21415
|
+
ts.current?.contains(t) || ns.current?.contains(t) || es(!1);
|
|
21416
21416
|
}
|
|
21417
21417
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
21418
|
-
}, [
|
|
21419
|
-
|
|
21418
|
+
}, [es]), useEffect(() => () => {
|
|
21419
|
+
rs.current && clearTimeout(rs.current);
|
|
21420
21420
|
}, []), /* @__PURE__ */ jsxs(DropdownContext.Provider, {
|
|
21421
21421
|
value: {
|
|
21422
|
-
close: () =>
|
|
21422
|
+
close: () => es(!1),
|
|
21423
21423
|
open: ss
|
|
21424
21424
|
},
|
|
21425
21425
|
children: [/* @__PURE__ */ jsx("div", {
|
|
21426
|
-
ref:
|
|
21426
|
+
ref: ts,
|
|
21427
21427
|
className: "inline-flex",
|
|
21428
21428
|
onMouseEnter: c ? ss : void 0,
|
|
21429
21429
|
onMouseLeave: c ? cs : void 0,
|
|
21430
|
-
onClick: () =>
|
|
21430
|
+
onClick: () => es(!B),
|
|
21431
21431
|
"aria-haspopup": "menu",
|
|
21432
|
-
"aria-expanded":
|
|
21432
|
+
"aria-expanded": B,
|
|
21433
21433
|
children: e
|
|
21434
|
-
}),
|
|
21435
|
-
ref:
|
|
21434
|
+
}), B && !o && createPortal(/* @__PURE__ */ jsx("div", {
|
|
21435
|
+
ref: ns,
|
|
21436
21436
|
onMouseEnter: c ? ss : void 0,
|
|
21437
21437
|
onMouseLeave: c ? cs : void 0,
|
|
21438
21438
|
style: {
|
|
21439
21439
|
position: "fixed",
|
|
21440
|
-
top:
|
|
21441
|
-
left:
|
|
21442
|
-
visibility:
|
|
21440
|
+
top: is?.top ?? 0,
|
|
21441
|
+
left: is?.left ?? 0,
|
|
21442
|
+
visibility: is ? "visible" : "hidden",
|
|
21443
21443
|
zIndex: 1e3
|
|
21444
21444
|
},
|
|
21445
21445
|
children: t
|
|
@@ -21452,7 +21452,7 @@ function Input({ type: e = "text", value: t, defaultValue: n, disabled: r = !1,
|
|
|
21452
21452
|
let t = e.target.value;
|
|
21453
21453
|
f || u(t), o?.(t);
|
|
21454
21454
|
}
|
|
21455
|
-
function
|
|
21455
|
+
function O(e) {
|
|
21456
21456
|
s?.(e);
|
|
21457
21457
|
}
|
|
21458
21458
|
return /* @__PURE__ */ jsx("input", {
|
|
@@ -21463,7 +21463,7 @@ function Input({ type: e = "text", value: t, defaultValue: n, disabled: r = !1,
|
|
|
21463
21463
|
"aria-disabled": r || void 0,
|
|
21464
21464
|
"aria-invalid": i || void 0,
|
|
21465
21465
|
onChange: h,
|
|
21466
|
-
onKeyDown:
|
|
21466
|
+
onKeyDown: O,
|
|
21467
21467
|
className: cn("bg-transparent outline-none", r && "pointer-events-none", c)
|
|
21468
21468
|
});
|
|
21469
21469
|
}
|
|
@@ -21501,17 +21501,17 @@ function getVerticalAlign(e, t, n) {
|
|
|
21501
21501
|
return n === "start" ? e.top : n === "end" ? e.bottom - t.height : e.top + e.height / 2 - t.height / 2;
|
|
21502
21502
|
}
|
|
21503
21503
|
function Tooltip({ children: e, content: t, position: n = "top", delay: r = 120, className: i }) {
|
|
21504
|
-
let a = useRef(null), o = useRef(null), s = useRef(null), [c, u] = useState(!1), [p,
|
|
21504
|
+
let a = useRef(null), o = useRef(null), s = useRef(null), [c, u] = useState(!1), [p, O] = useState(null), R = () => {
|
|
21505
21505
|
s.current &&= (clearTimeout(s.current), null), s.current = window.setTimeout(() => {
|
|
21506
21506
|
u(!0);
|
|
21507
21507
|
}, r);
|
|
21508
|
-
},
|
|
21508
|
+
}, B = () => {
|
|
21509
21509
|
s.current &&= (clearTimeout(s.current), null), u(!1);
|
|
21510
21510
|
};
|
|
21511
21511
|
return useLayoutEffect(() => {
|
|
21512
21512
|
if (!c || !a.current || !o.current) return;
|
|
21513
21513
|
let e = a.current.getBoundingClientRect(), t = o.current.getBoundingClientRect(), [r, i] = n.split("-"), s = i ?? "center", l = 0, u = 0;
|
|
21514
|
-
r === "top" || r === "bottom" ? (l = r === "top" ? e.top - t.height - 4 : e.bottom + 4, u = getHorizontalAlign(e, t, s)) : (u = r === "left" ? e.left - t.width - 4 : e.right + 4, l = getVerticalAlign(e, t, s)),
|
|
21514
|
+
r === "top" || r === "bottom" ? (l = r === "top" ? e.top - t.height - 4 : e.bottom + 4, u = getHorizontalAlign(e, t, s)) : (u = r === "left" ? e.left - t.width - 4 : e.right + 4, l = getVerticalAlign(e, t, s)), O((e) => e && e.top === l && e.left === u ? e : {
|
|
21515
21515
|
top: l,
|
|
21516
21516
|
left: u
|
|
21517
21517
|
});
|
|
@@ -21520,10 +21520,10 @@ function Tooltip({ children: e, content: t, position: n = "top", delay: r = 120,
|
|
|
21520
21520
|
}, []), /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
|
|
21521
21521
|
ref: a,
|
|
21522
21522
|
className: "inline-flex",
|
|
21523
|
-
onMouseEnter:
|
|
21524
|
-
onMouseLeave:
|
|
21525
|
-
onFocus:
|
|
21526
|
-
onBlur:
|
|
21523
|
+
onMouseEnter: R,
|
|
21524
|
+
onMouseLeave: B,
|
|
21525
|
+
onFocus: R,
|
|
21526
|
+
onBlur: B,
|
|
21527
21527
|
children: e
|
|
21528
21528
|
}), c && createPortal(/* @__PURE__ */ jsx("div", {
|
|
21529
21529
|
ref: o,
|
|
@@ -23005,36 +23005,36 @@ function OnboardingEngine({ steps: e, context: t, storageKey: n, isEnabled: r =
|
|
|
23005
23005
|
e,
|
|
23006
23006
|
o,
|
|
23007
23007
|
t
|
|
23008
|
-
]), h = u?.step ?? null,
|
|
23008
|
+
]), h = u?.step ?? null, O = u?.index ?? null, Qo = useCallback((e) => {
|
|
23009
23009
|
c((t) => {
|
|
23010
23010
|
if (t.has(e)) return t;
|
|
23011
23011
|
let n = new Set(t);
|
|
23012
23012
|
return n.add(e), n;
|
|
23013
23013
|
});
|
|
23014
|
-
}, []),
|
|
23014
|
+
}, []), $o = useCallback(() => {
|
|
23015
23015
|
c((n) => {
|
|
23016
23016
|
let r = findActiveStep(e, n, t);
|
|
23017
23017
|
if (r == null || n.has(r.step.id)) return n;
|
|
23018
23018
|
let i = new Set(n);
|
|
23019
23019
|
return i.add(r.step.id), i;
|
|
23020
23020
|
});
|
|
23021
|
-
}, [e, t]),
|
|
23021
|
+
}, [e, t]), R = useCallback(() => {
|
|
23022
23022
|
c(new Set(e.map((e) => e.id)));
|
|
23023
23023
|
}, [e]);
|
|
23024
23024
|
return /* @__PURE__ */ jsx(Fragment$1, { children: i({
|
|
23025
23025
|
context: t,
|
|
23026
23026
|
currentStep: h,
|
|
23027
|
-
currentStepIndex:
|
|
23027
|
+
currentStepIndex: O,
|
|
23028
23028
|
dismissedStepIds: o,
|
|
23029
23029
|
actions: useMemo(() => ({
|
|
23030
|
-
dismissCurrentStep:
|
|
23031
|
-
dismissStep:
|
|
23032
|
-
skipAll:
|
|
23033
|
-
close:
|
|
23030
|
+
dismissCurrentStep: $o,
|
|
23031
|
+
dismissStep: Qo,
|
|
23032
|
+
skipAll: R,
|
|
23033
|
+
close: R
|
|
23034
23034
|
}), [
|
|
23035
|
-
es,
|
|
23036
23035
|
$o,
|
|
23037
|
-
|
|
23036
|
+
Qo,
|
|
23037
|
+
R
|
|
23038
23038
|
])
|
|
23039
23039
|
}) });
|
|
23040
23040
|
}
|
|
@@ -23206,7 +23206,7 @@ function useToastTimers(e, t) {
|
|
|
23206
23206
|
isPaused: !0
|
|
23207
23207
|
});
|
|
23208
23208
|
}), a.current &&= (clearInterval(a.current), null);
|
|
23209
|
-
}, []),
|
|
23209
|
+
}, []), O = useCallback(() => {
|
|
23210
23210
|
o.current && (o.current = !1, i.current.forEach((t, n) => {
|
|
23211
23211
|
if (t.isPaused && t.remainingTime > 0) {
|
|
23212
23212
|
let r = e.find((e) => e.id === n);
|
|
@@ -23217,7 +23217,7 @@ function useToastTimers(e, t) {
|
|
|
23217
23217
|
e,
|
|
23218
23218
|
u,
|
|
23219
23219
|
f
|
|
23220
|
-
]),
|
|
23220
|
+
]), A = useCallback((e) => {
|
|
23221
23221
|
i.current.delete(e), r((t) => {
|
|
23222
23222
|
let n = new Map(t);
|
|
23223
23223
|
return n.delete(e), n;
|
|
@@ -23238,22 +23238,22 @@ function useToastTimers(e, t) {
|
|
|
23238
23238
|
}, []), {
|
|
23239
23239
|
remainingTimes: n,
|
|
23240
23240
|
pauseAll: p,
|
|
23241
|
-
resumeAll:
|
|
23242
|
-
cleanupTimer:
|
|
23241
|
+
resumeAll: O,
|
|
23242
|
+
cleanupTimer: A
|
|
23243
23243
|
};
|
|
23244
23244
|
}
|
|
23245
23245
|
function Toaster() {
|
|
23246
23246
|
let [e, t] = useState([]), [n, r] = useState([]), i = useRef(/* @__PURE__ */ new Set()), a = useRef(/* @__PURE__ */ new Map()), o = useRef([]), { remainingTimes: c, pauseAll: u, resumeAll: f, cleanupTimer: p } = useToastTimers(e, a);
|
|
23247
23247
|
useEffect(() => toastStore.subscribe(t), []);
|
|
23248
|
-
let
|
|
23248
|
+
let R = useSyncExternalStore(subscribeNoop$1, getClientSnapshot$1, getServerSnapshot$1), B = useCallback((e) => {
|
|
23249
23249
|
e.callbacks?.onOpen?.();
|
|
23250
|
-
}, []),
|
|
23250
|
+
}, []), es = useCallback((e, t) => {
|
|
23251
23251
|
t === "manual" ? e.callbacks?.onClose?.() : (t === "timeout" || t === "replaced") && e.callbacks?.onAutoClose?.(), e.callbacks?.onDismiss?.(t);
|
|
23252
23252
|
}, []);
|
|
23253
23253
|
useEffect(() => {
|
|
23254
23254
|
let t = new Set(e.map((e) => e.id)), n = new Map(e.map((e) => [e.id, e])), s = i.current;
|
|
23255
23255
|
o.current.filter((e) => !t.has(e.id) && e.animationState !== "exiting").forEach((e) => {
|
|
23256
|
-
|
|
23256
|
+
es(e, a.current.get(e.id) ?? toastStore.consumePendingDismissReason(e.id) ?? "timeout"), a.current.delete(e.id);
|
|
23257
23257
|
}), r((r) => {
|
|
23258
23258
|
let i = r.map((e) => {
|
|
23259
23259
|
let t = n.get(e.id);
|
|
@@ -23262,7 +23262,7 @@ function Toaster() {
|
|
|
23262
23262
|
content: t.content,
|
|
23263
23263
|
duration: t.duration
|
|
23264
23264
|
} : e;
|
|
23265
|
-
}).map((e) => markAsExiting(e, !t.has(e.id))).map(updateAnimationState), a = [...e.filter((e) => !s.has(e.id)).map((e) => (
|
|
23265
|
+
}).map((e) => markAsExiting(e, !t.has(e.id))).map(updateAnimationState), a = [...e.filter((e) => !s.has(e.id)).map((e) => (B(e), {
|
|
23266
23266
|
...e,
|
|
23267
23267
|
animationState: "entering"
|
|
23268
23268
|
})), ...i];
|
|
@@ -23270,20 +23270,20 @@ function Toaster() {
|
|
|
23270
23270
|
}), i.current = t;
|
|
23271
23271
|
}, [
|
|
23272
23272
|
e,
|
|
23273
|
-
|
|
23274
|
-
|
|
23273
|
+
B,
|
|
23274
|
+
es
|
|
23275
23275
|
]);
|
|
23276
|
-
let
|
|
23276
|
+
let ts = useCallback((e) => {
|
|
23277
23277
|
r((t) => {
|
|
23278
23278
|
let n = t.filter((t) => t.id !== e);
|
|
23279
23279
|
return o.current = n, n;
|
|
23280
23280
|
}), p(e), toastStore.cleanup(e);
|
|
23281
|
-
}, [p]),
|
|
23281
|
+
}, [p]), ns = useCallback((e) => {
|
|
23282
23282
|
a.current.set(e, "manual"), toastStore.remove(e);
|
|
23283
23283
|
}, []);
|
|
23284
|
-
if (!
|
|
23285
|
-
let
|
|
23286
|
-
return createPortal(/* @__PURE__ */ jsx(Fragment$1, { children: Object.entries(
|
|
23284
|
+
if (!R) return null;
|
|
23285
|
+
let rs = groupByPosition(n);
|
|
23286
|
+
return createPortal(/* @__PURE__ */ jsx(Fragment$1, { children: Object.entries(rs).map(([e, t]) => {
|
|
23287
23287
|
let n = t.filter((e) => e.singleSlot), r = t.filter((e) => !e.singleSlot), i = n.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
23288
23288
|
className: cn("isolate inline-grid max-w-[min(100vw,100%)] grid-cols-1 grid-rows-1", SINGLE_SLOT_PLACE[e]),
|
|
23289
23289
|
children: n.map((e, t) => /* @__PURE__ */ jsx("div", {
|
|
@@ -23292,8 +23292,8 @@ function Toaster() {
|
|
|
23292
23292
|
children: /* @__PURE__ */ jsx(ToastWrapper, {
|
|
23293
23293
|
toast: e,
|
|
23294
23294
|
remainingTime: c.get(e.id) ?? e.duration,
|
|
23295
|
-
onExitComplete:
|
|
23296
|
-
onClose:
|
|
23295
|
+
onExitComplete: ts,
|
|
23296
|
+
onClose: ns,
|
|
23297
23297
|
onHoverStart: u,
|
|
23298
23298
|
onHoverEnd: f
|
|
23299
23299
|
})
|
|
@@ -23301,8 +23301,8 @@ function Toaster() {
|
|
|
23301
23301
|
}) : null, a = r.map((e) => /* @__PURE__ */ jsx(ToastWrapper, {
|
|
23302
23302
|
toast: e,
|
|
23303
23303
|
remainingTime: c.get(e.id) ?? e.duration,
|
|
23304
|
-
onExitComplete:
|
|
23305
|
-
onClose:
|
|
23304
|
+
onExitComplete: ts,
|
|
23305
|
+
onClose: ns,
|
|
23306
23306
|
onHoverStart: u,
|
|
23307
23307
|
onHoverEnd: f
|
|
23308
23308
|
}, e.id));
|
|
@@ -23517,10 +23517,10 @@ function BulkActions({ totalItems: e = 0, selectedItems: t = 0, onSelectAll: n,
|
|
|
23517
23517
|
let s = e > 0, c = s && t === e, l = s && t > 0 && t < e, u = c ? `All (${e})` : l ? `${t}/${e} selected` : `Select all (${e})`, [f, p] = useState(i ?? "normal"), h = () => {
|
|
23518
23518
|
n(!c);
|
|
23519
23519
|
};
|
|
23520
|
-
function
|
|
23520
|
+
function O(e) {
|
|
23521
23521
|
p(e), a?.(e);
|
|
23522
23522
|
}
|
|
23523
|
-
let
|
|
23523
|
+
let $o = {
|
|
23524
23524
|
fire: [{
|
|
23525
23525
|
id: "fire",
|
|
23526
23526
|
tooltip: "Mark as fire",
|
|
@@ -23572,7 +23572,7 @@ function BulkActions({ totalItems: e = 0, selectedItems: t = 0, onSelectAll: n,
|
|
|
23572
23572
|
}),
|
|
23573
23573
|
onClick: r.read.off
|
|
23574
23574
|
}]
|
|
23575
|
-
},
|
|
23575
|
+
}, R = [{
|
|
23576
23576
|
value: "normal",
|
|
23577
23577
|
tooltip: "Normal density",
|
|
23578
23578
|
icon: /* @__PURE__ */ jsx(NormalDensityIcon, { size: 20 })
|
|
@@ -23601,7 +23601,7 @@ function BulkActions({ totalItems: e = 0, selectedItems: t = 0, onSelectAll: n,
|
|
|
23601
23601
|
}),
|
|
23602
23602
|
/* @__PURE__ */ jsx("div", {
|
|
23603
23603
|
className: "flex items-center divide-x divide-neutral-400-variant-1",
|
|
23604
|
-
children: t > 0 && /* @__PURE__ */ jsx(Fragment$1, { children: Object.entries(
|
|
23604
|
+
children: t > 0 && /* @__PURE__ */ jsx(Fragment$1, { children: Object.entries($o).map(([e, t]) => /* @__PURE__ */ jsx("div", {
|
|
23605
23605
|
className: "gap-2 px-1 flex items-center",
|
|
23606
23606
|
children: t.map((e) => /* @__PURE__ */ jsx(InfoTooltip, {
|
|
23607
23607
|
content: e.tooltip,
|
|
@@ -23616,13 +23616,13 @@ function BulkActions({ totalItems: e = 0, selectedItems: t = 0, onSelectAll: n,
|
|
|
23616
23616
|
}),
|
|
23617
23617
|
/* @__PURE__ */ jsx("div", {
|
|
23618
23618
|
className: "gap-2 flex items-center",
|
|
23619
|
-
children:
|
|
23619
|
+
children: R.map(({ value: e, tooltip: t, icon: n }) => {
|
|
23620
23620
|
let r = f === e;
|
|
23621
23621
|
return /* @__PURE__ */ jsx(InfoTooltip, {
|
|
23622
23622
|
content: t,
|
|
23623
23623
|
children: /* @__PURE__ */ jsx(IconButton, {
|
|
23624
23624
|
className: cn("h-7 w-7 p-0 text-neutral-900", r && "bg-white-variant-4"),
|
|
23625
|
-
onClick: () =>
|
|
23625
|
+
onClick: () => O(e),
|
|
23626
23626
|
icon: n,
|
|
23627
23627
|
"aria-pressed": r
|
|
23628
23628
|
})
|
|
@@ -23873,20 +23873,20 @@ function ToggleControlPortal({ isPressed: e, isPortalHovered: t, portalPosition:
|
|
|
23873
23873
|
})
|
|
23874
23874
|
}), document.body);
|
|
23875
23875
|
}
|
|
23876
|
-
function IconCountButton({ icon: e, label: t, count: n, variant: r = "primary", orientation: i = "vertical", status: a = "active", alwaysShowCount: o = !1, showToggleControl: s = !1, pressed: c, defaultPressed: l = !1, onPressedChange: u, classNames: p, ...
|
|
23877
|
-
let
|
|
23876
|
+
function IconCountButton({ icon: e, label: t, count: n, variant: r = "primary", orientation: i = "vertical", status: a = "active", alwaysShowCount: o = !1, showToggleControl: s = !1, pressed: c, defaultPressed: l = !1, onPressedChange: u, classNames: p, ...O }) {
|
|
23877
|
+
let A = iconCountButtonStyles({
|
|
23878
23878
|
variant: r,
|
|
23879
23879
|
orientation: i,
|
|
23880
23880
|
status: a
|
|
23881
|
-
}),
|
|
23881
|
+
}), $o = useRef(null), [R, B] = useState(!1), [es, ts] = useState(!1), [ns, rs] = useState(l), [is, as] = useState(null), os = c ?? ns, ss = s && (R || es || os), cs = typeof n == "number" && n > 0 && (o || a === "active");
|
|
23882
23882
|
function ls(e) {
|
|
23883
|
-
c === void 0 &&
|
|
23883
|
+
c === void 0 && rs(e), u?.(e);
|
|
23884
23884
|
}
|
|
23885
23885
|
return useLayoutEffect(() => {
|
|
23886
|
-
if (!ss ||
|
|
23886
|
+
if (!ss || !$o.current) return;
|
|
23887
23887
|
function e() {
|
|
23888
|
-
let e =
|
|
23889
|
-
e &&
|
|
23888
|
+
let e = $o.current?.getBoundingClientRect();
|
|
23889
|
+
e && as({
|
|
23890
23890
|
top: e.top - 8,
|
|
23891
23891
|
left: e.right - 12
|
|
23892
23892
|
});
|
|
@@ -23895,29 +23895,29 @@ function IconCountButton({ icon: e, label: t, count: n, variant: r = "primary",
|
|
|
23895
23895
|
window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
|
|
23896
23896
|
};
|
|
23897
23897
|
}, [ss]), /* @__PURE__ */ jsxs(Button, {
|
|
23898
|
-
...
|
|
23899
|
-
className: cn(
|
|
23900
|
-
onMouseEnter: () =>
|
|
23901
|
-
onMouseLeave: () =>
|
|
23898
|
+
...O,
|
|
23899
|
+
className: cn(A.root(), p?.root),
|
|
23900
|
+
onMouseEnter: () => B(!0),
|
|
23901
|
+
onMouseLeave: () => B(!1),
|
|
23902
23902
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
23903
23903
|
className: "relative",
|
|
23904
23904
|
children: [/* @__PURE__ */ jsx("div", {
|
|
23905
|
-
ref:
|
|
23906
|
-
className: cn(
|
|
23907
|
-
children: renderIcon(e,
|
|
23908
|
-
}), ss &&
|
|
23905
|
+
ref: $o,
|
|
23906
|
+
className: cn(A.bubble(), p?.bubble),
|
|
23907
|
+
children: renderIcon(e, A.icon())
|
|
23908
|
+
}), ss && is && typeof document < "u" && ToggleControlPortal({
|
|
23909
23909
|
isPressed: os,
|
|
23910
|
-
isPortalHovered:
|
|
23911
|
-
portalPosition:
|
|
23912
|
-
onMouseEnter: () =>
|
|
23913
|
-
onMouseLeave: () =>
|
|
23910
|
+
isPortalHovered: es,
|
|
23911
|
+
portalPosition: is,
|
|
23912
|
+
onMouseEnter: () => ts(!0),
|
|
23913
|
+
onMouseLeave: () => ts(!1),
|
|
23914
23914
|
onToggle: () => ls(!os)
|
|
23915
23915
|
})]
|
|
23916
23916
|
}), /* @__PURE__ */ jsxs("div", {
|
|
23917
|
-
className: cn(
|
|
23917
|
+
className: cn(A.label(), p?.label),
|
|
23918
23918
|
children: [/* @__PURE__ */ jsx("span", { children: t }), cs && /* @__PURE__ */ jsxs("span", {
|
|
23919
23919
|
"aria-label": `${n} items`,
|
|
23920
|
-
className: cn(
|
|
23920
|
+
className: cn(A.count(), p?.count),
|
|
23921
23921
|
children: [
|
|
23922
23922
|
"(",
|
|
23923
23923
|
formatCount(n),
|
|
@@ -23949,7 +23949,7 @@ function ActionMenu({ trigger: e, children: t, className: n, ...r }) {
|
|
|
23949
23949
|
});
|
|
23950
23950
|
}
|
|
23951
23951
|
function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelect: r, onRangeSelect: i }) {
|
|
23952
|
-
let { close: a } = useDropdown(), o = useMemo(() => /* @__PURE__ */ new Date(), []), [s, c] = useState(null), u = useRef(t), f = useRef(n), [
|
|
23952
|
+
let { close: a } = useDropdown(), o = useMemo(() => /* @__PURE__ */ new Date(), []), [s, c] = useState(null), u = useRef(t), f = useRef(n), [O, A] = useState(() => {
|
|
23953
23953
|
let r = e === "single" ? t ?? o : n.startDate ?? n.endDate ?? o;
|
|
23954
23954
|
return {
|
|
23955
23955
|
year: r.getFullYear(),
|
|
@@ -23958,13 +23958,13 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
23958
23958
|
});
|
|
23959
23959
|
useEffect(() => {
|
|
23960
23960
|
(e === "single" && t && (!u.current || t.getTime() !== u.current.getTime()) || e === "range" && (n.startDate?.getTime() !== f.current.startDate?.getTime() || n.endDate?.getTime() !== f.current.endDate?.getTime())) && queueMicrotask(() => {
|
|
23961
|
-
if (e === "single" && t)
|
|
23961
|
+
if (e === "single" && t) A({
|
|
23962
23962
|
year: t.getFullYear(),
|
|
23963
23963
|
month: t.getMonth()
|
|
23964
23964
|
});
|
|
23965
23965
|
else if (e === "range") {
|
|
23966
23966
|
let e = n.startDate ?? n.endDate;
|
|
23967
|
-
e &&
|
|
23967
|
+
e && A({
|
|
23968
23968
|
year: e.getFullYear(),
|
|
23969
23969
|
month: e.getMonth()
|
|
23970
23970
|
});
|
|
@@ -23975,10 +23975,10 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
23975
23975
|
t,
|
|
23976
23976
|
n
|
|
23977
23977
|
]);
|
|
23978
|
-
let
|
|
23979
|
-
function
|
|
23978
|
+
let $o = useMemo(() => generateCalendarDays(O.year, O.month), [O.year, O.month]);
|
|
23979
|
+
function R(t) {
|
|
23980
23980
|
let o = t.getMonth(), s = t.getFullYear();
|
|
23981
|
-
if ((o !==
|
|
23981
|
+
if ((o !== O.month || s !== O.year) && A({
|
|
23982
23982
|
year: s,
|
|
23983
23983
|
month: o
|
|
23984
23984
|
}), e === "single") r(t), a();
|
|
@@ -23993,8 +23993,8 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
23993
23993
|
}), a());
|
|
23994
23994
|
}
|
|
23995
23995
|
}
|
|
23996
|
-
function
|
|
23997
|
-
|
|
23996
|
+
function B() {
|
|
23997
|
+
A((e) => e.month === 0 ? {
|
|
23998
23998
|
year: e.year - 1,
|
|
23999
23999
|
month: 11
|
|
24000
24000
|
} : {
|
|
@@ -24002,8 +24002,8 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
24002
24002
|
month: e.month - 1
|
|
24003
24003
|
});
|
|
24004
24004
|
}
|
|
24005
|
-
function
|
|
24006
|
-
|
|
24005
|
+
function es() {
|
|
24006
|
+
A((e) => e.month === 11 ? {
|
|
24007
24007
|
year: e.year + 1,
|
|
24008
24008
|
month: 0
|
|
24009
24009
|
} : {
|
|
@@ -24011,7 +24011,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
24011
24011
|
month: e.month + 1
|
|
24012
24012
|
});
|
|
24013
24013
|
}
|
|
24014
|
-
let
|
|
24014
|
+
let ts = getWeekdays();
|
|
24015
24015
|
return /* @__PURE__ */ jsxs("div", {
|
|
24016
24016
|
className: "mt-1 rounded-lg p-2 shadow-lg w-fit border border-neutral-400 bg-white",
|
|
24017
24017
|
children: [
|
|
@@ -24023,16 +24023,16 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
24023
24023
|
direction: "left",
|
|
24024
24024
|
size: 20
|
|
24025
24025
|
}),
|
|
24026
|
-
onClick:
|
|
24026
|
+
onClick: B,
|
|
24027
24027
|
className: "hover:opacity-60",
|
|
24028
24028
|
"aria-label": "Previous month"
|
|
24029
24029
|
}),
|
|
24030
24030
|
/* @__PURE__ */ jsxs("div", {
|
|
24031
24031
|
className: "font-bold text-[10px] text-neutral-900",
|
|
24032
24032
|
children: [
|
|
24033
|
-
getMonthName(
|
|
24033
|
+
getMonthName(O.month),
|
|
24034
24034
|
" ",
|
|
24035
|
-
|
|
24035
|
+
O.year
|
|
24036
24036
|
]
|
|
24037
24037
|
}),
|
|
24038
24038
|
/* @__PURE__ */ jsx(IconButton, {
|
|
@@ -24040,7 +24040,7 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
24040
24040
|
direction: "right",
|
|
24041
24041
|
size: 20
|
|
24042
24042
|
}),
|
|
24043
|
-
onClick:
|
|
24043
|
+
onClick: es,
|
|
24044
24044
|
className: "hover:opacity-60",
|
|
24045
24045
|
"aria-label": "Next month"
|
|
24046
24046
|
})
|
|
@@ -24048,20 +24048,20 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
24048
24048
|
}),
|
|
24049
24049
|
/* @__PURE__ */ jsx("div", {
|
|
24050
24050
|
className: "mb-2 grid grid-cols-7",
|
|
24051
|
-
children:
|
|
24051
|
+
children: ts.map((e) => /* @__PURE__ */ jsx("div", {
|
|
24052
24052
|
className: "p-0.5 font-bold flex items-center justify-center text-[9px] text-neutral-900",
|
|
24053
24053
|
children: e
|
|
24054
24054
|
}, e))
|
|
24055
24055
|
}),
|
|
24056
24056
|
/* @__PURE__ */ jsx("div", {
|
|
24057
24057
|
className: "grid grid-cols-7",
|
|
24058
|
-
children:
|
|
24059
|
-
let o = isToday(i), l = e === "single" && t && isSameDay(i, t), { startDate: u, endDate: f } = n, p = u && isSameDay(i, u), h = f && isSameDay(i, f),
|
|
24060
|
-
e === "range" && u && !f && s && !isDateBefore(s, u) ? (
|
|
24061
|
-
let
|
|
24058
|
+
children: $o.map(({ day: r, date: i, isCurrentMonth: a }) => {
|
|
24059
|
+
let o = isToday(i), l = e === "single" && t && isSameDay(i, t), { startDate: u, endDate: f } = n, p = u && isSameDay(i, u), h = f && isSameDay(i, f), g = u, O = s;
|
|
24060
|
+
e === "range" && u && !f && s && !isDateBefore(s, u) ? (g = u, O = s) : (g = null, O = null);
|
|
24061
|
+
let A = e === "range" && (isDateInRange(i, u, f) || isDateInRange(i, g, O)), Qo = l || p || h;
|
|
24062
24062
|
return /* @__PURE__ */ jsx(Button, {
|
|
24063
24063
|
type: "button",
|
|
24064
|
-
onClick: () =>
|
|
24064
|
+
onClick: () => R(i),
|
|
24065
24065
|
onMouseEnter: () => {
|
|
24066
24066
|
e === "range" && u && !f && !isDateBefore(i, u) && c(i);
|
|
24067
24067
|
},
|
|
@@ -24070,9 +24070,9 @@ function CalendarPanel({ mode: e, selectedDate: t, selectedRange: n, onDateSelec
|
|
|
24070
24070
|
},
|
|
24071
24071
|
className: "p-0.5",
|
|
24072
24072
|
"aria-label": `Select ${formatDate(i)}`,
|
|
24073
|
-
"aria-selected":
|
|
24073
|
+
"aria-selected": Qo || void 0,
|
|
24074
24074
|
children: /* @__PURE__ */ jsx("div", {
|
|
24075
|
-
className: cn("rounded flex h-[26px] w-[26px] items-center justify-center text-[9px] transition-colors",
|
|
24075
|
+
className: cn("rounded flex h-[26px] w-[26px] items-center justify-center text-[9px] transition-colors", Qo && "font-semibold bg-primary-500 text-white-variant-1 hover:bg-primary-500", A && !Qo && "font-normal bg-primary-500/20 text-neutral-900 hover:bg-primary-500/30", o && !Qo && !A && "font-bold border border-primary-500 bg-primary-500/15 hover:bg-primary-500 hover:text-white", !Qo && !A && (a ? "text-neutral-900 hover:bg-neutral-300" : "text-neutral-600 hover:bg-neutral-200")),
|
|
24076
24076
|
children: r
|
|
24077
24077
|
})
|
|
24078
24078
|
}, `${i.getFullYear()}-${i.getMonth()}-${r}`);
|
|
@@ -24137,11 +24137,11 @@ function DatePicker({ mode: e = "single", value: t, defaultValue: n, onChange: r
|
|
|
24137
24137
|
function h(t) {
|
|
24138
24138
|
e === "single" && (u || s(t), r?.(t));
|
|
24139
24139
|
}
|
|
24140
|
-
function
|
|
24140
|
+
function O(t) {
|
|
24141
24141
|
e === "range" && (u || l(t), r?.(t));
|
|
24142
24142
|
}
|
|
24143
|
-
function
|
|
24144
|
-
e === "single" ? h(null) :
|
|
24143
|
+
function Qo() {
|
|
24144
|
+
e === "single" ? h(null) : O({
|
|
24145
24145
|
startDate: null,
|
|
24146
24146
|
endDate: null
|
|
24147
24147
|
});
|
|
@@ -24151,7 +24151,7 @@ function DatePicker({ mode: e = "single", value: t, defaultValue: n, onChange: r
|
|
|
24151
24151
|
displayText: e === "single" ? formatDate(f) : formatDateRange(p.startDate, p.endDate),
|
|
24152
24152
|
disabled: i,
|
|
24153
24153
|
className: a,
|
|
24154
|
-
onClear:
|
|
24154
|
+
onClear: Qo
|
|
24155
24155
|
}),
|
|
24156
24156
|
disabled: i,
|
|
24157
24157
|
children: /* @__PURE__ */ jsx(CalendarPanel, {
|
|
@@ -24159,7 +24159,7 @@ function DatePicker({ mode: e = "single", value: t, defaultValue: n, onChange: r
|
|
|
24159
24159
|
selectedDate: f,
|
|
24160
24160
|
selectedRange: p,
|
|
24161
24161
|
onDateSelect: h,
|
|
24162
|
-
onRangeSelect:
|
|
24162
|
+
onRangeSelect: O
|
|
24163
24163
|
})
|
|
24164
24164
|
}) });
|
|
24165
24165
|
}
|
|
@@ -24365,18 +24365,18 @@ function EventActionsList({ actions: e, className: t }) {
|
|
|
24365
24365
|
}) })
|
|
24366
24366
|
});
|
|
24367
24367
|
}
|
|
24368
|
-
function EventCard({ icon: e, service: t, sender: n, title: r, content: i, timestamp: a, timestampTooltip: o, workspace: s, read: c = !1, selected: l = !1, onSelect: u, checked: f = !1, onCheckedChange: p, statusBadges: h = {}, actions:
|
|
24368
|
+
function EventCard({ icon: e, service: t, sender: n, title: r, content: i, timestamp: a, timestampTooltip: o, workspace: s, read: c = !1, selected: l = !1, onSelect: u, checked: f = !1, onCheckedChange: p, statusBadges: h = {}, actions: g = {}, density: O = "normal", className: A, style: $o, isPriority: R, isDone: B }) {
|
|
24369
24369
|
return /* @__PURE__ */ jsx(Card, {
|
|
24370
24370
|
as: Pressable,
|
|
24371
24371
|
onPress: u,
|
|
24372
24372
|
className: cn(eventCardStyles({
|
|
24373
|
-
tone:
|
|
24373
|
+
tone: R ? "priority" : B ? "done" : "default",
|
|
24374
24374
|
state: l ? "selected" : c ? "read" : "unread",
|
|
24375
|
-
density:
|
|
24376
|
-
}),
|
|
24377
|
-
style:
|
|
24375
|
+
density: O
|
|
24376
|
+
}), A),
|
|
24377
|
+
style: $o,
|
|
24378
24378
|
"data-service": t,
|
|
24379
|
-
children:
|
|
24379
|
+
children: O === "normal" ? /* @__PURE__ */ jsxs(CardLayout, {
|
|
24380
24380
|
className: "gap-x-2 gap-y-1",
|
|
24381
24381
|
children: [
|
|
24382
24382
|
/* @__PURE__ */ jsx(CardSidebar, { children: /* @__PURE__ */ jsx(EventCheckbox, {
|
|
@@ -24412,7 +24412,7 @@ function EventCard({ icon: e, service: t, sender: n, title: r, content: i, times
|
|
|
24412
24412
|
/* @__PURE__ */ jsxs(CardFooter, {
|
|
24413
24413
|
className: "mt-3 gap-1 grid grid-cols-[minmax(0,1fr)_auto] items-center",
|
|
24414
24414
|
children: [/* @__PURE__ */ jsx(EventStatusesList, { statusBadges: h }), /* @__PURE__ */ jsx(EventActionsList, {
|
|
24415
|
-
actions:
|
|
24415
|
+
actions: g,
|
|
24416
24416
|
className: "col-start-2 justify-self-end"
|
|
24417
24417
|
})]
|
|
24418
24418
|
})
|
|
@@ -24431,7 +24431,7 @@ function EventCard({ icon: e, service: t, sender: n, title: r, content: i, times
|
|
|
24431
24431
|
e,
|
|
24432
24432
|
/* @__PURE__ */ jsx(EventStatusesList, {
|
|
24433
24433
|
statusBadges: h,
|
|
24434
|
-
density:
|
|
24434
|
+
density: O
|
|
24435
24435
|
}),
|
|
24436
24436
|
/* @__PURE__ */ jsxs("div", {
|
|
24437
24437
|
className: cn("min-w-0 gap-2 text-sm font-bold flex items-center whitespace-nowrap text-neutral-900", c && "font-medium"),
|
|
@@ -24451,7 +24451,7 @@ function EventCard({ icon: e, service: t, sender: n, title: r, content: i, times
|
|
|
24451
24451
|
]
|
|
24452
24452
|
}),
|
|
24453
24453
|
/* @__PURE__ */ jsx("div", { className: "flex-1" }),
|
|
24454
|
-
/* @__PURE__ */ jsx(EventActionsList, { actions:
|
|
24454
|
+
/* @__PURE__ */ jsx(EventActionsList, { actions: g }),
|
|
24455
24455
|
/* @__PURE__ */ jsx(InfoTooltip, {
|
|
24456
24456
|
content: o,
|
|
24457
24457
|
children: /* @__PURE__ */ jsx("span", {
|
|
@@ -24618,7 +24618,8 @@ var eventSummaryCardStyles = tv({
|
|
|
24618
24618
|
variants: {
|
|
24619
24619
|
tone: {
|
|
24620
24620
|
default: "hover:bg-primary-light",
|
|
24621
|
-
priority: "hover:bg-tertiary-500-variant-4"
|
|
24621
|
+
priority: "hover:bg-tertiary-500-variant-4",
|
|
24622
|
+
insight: "hover:bg-primary-light"
|
|
24622
24623
|
},
|
|
24623
24624
|
state: {
|
|
24624
24625
|
normal: "",
|
|
@@ -24634,7 +24635,7 @@ var eventSummaryCardStyles = tv({
|
|
|
24634
24635
|
{
|
|
24635
24636
|
tone: "default",
|
|
24636
24637
|
state: "selected",
|
|
24637
|
-
class: "border-
|
|
24638
|
+
class: "border-neutral-600 bg-primary-light"
|
|
24638
24639
|
},
|
|
24639
24640
|
{
|
|
24640
24641
|
tone: "priority",
|
|
@@ -24645,6 +24646,16 @@ var eventSummaryCardStyles = tv({
|
|
|
24645
24646
|
tone: "priority",
|
|
24646
24647
|
state: "selected",
|
|
24647
24648
|
class: "border-tertiary-500-variant-2 bg-tertiary-500-variant-4"
|
|
24649
|
+
},
|
|
24650
|
+
{
|
|
24651
|
+
tone: "insight",
|
|
24652
|
+
state: "normal",
|
|
24653
|
+
class: "border-primary-500/30"
|
|
24654
|
+
},
|
|
24655
|
+
{
|
|
24656
|
+
tone: "insight",
|
|
24657
|
+
state: "selected",
|
|
24658
|
+
class: "border-primary-500 bg-primary-light"
|
|
24648
24659
|
}
|
|
24649
24660
|
]
|
|
24650
24661
|
});
|
|
@@ -24685,11 +24696,11 @@ function EventSummaryFireButton({ active: e, onClick: t }) {
|
|
|
24685
24696
|
}) });
|
|
24686
24697
|
}
|
|
24687
24698
|
function EventSummaryCard({ icon: e, service: t, sender: n, title: r, content: i, timestamp: a, workspace: o, selected: s = !1, onSelect: c, actions: l, className: u }) {
|
|
24688
|
-
let { fire: f, insight: p, link: h } = l,
|
|
24699
|
+
let { fire: f, insight: p, link: h } = l, g = p?.label ?? null;
|
|
24689
24700
|
return /* @__PURE__ */ jsxs(Pressable, {
|
|
24690
24701
|
onPress: c,
|
|
24691
24702
|
className: cn(eventSummaryCardStyles({
|
|
24692
|
-
tone: f.active ? "priority" : "default",
|
|
24703
|
+
tone: f.active ? "priority" : insightLabelVisible(g) ? "insight" : "default",
|
|
24693
24704
|
state: s ? "selected" : "normal"
|
|
24694
24705
|
}), EVENT_SUMMARY_CARD_HEIGHT_SIZE.style, u),
|
|
24695
24706
|
"data-service": t,
|
|
@@ -24713,7 +24724,7 @@ function EventSummaryCard({ icon: e, service: t, sender: n, title: r, content: i
|
|
|
24713
24724
|
className: "text-xs leading-tight font-semibold tracking-wide flex-1 text-right whitespace-nowrap text-neutral-800",
|
|
24714
24725
|
children: a
|
|
24715
24726
|
}),
|
|
24716
|
-
insightLabelVisible(
|
|
24727
|
+
insightLabelVisible(g) && /* @__PURE__ */ jsx(EventSummaryInsightChip, { label: g }),
|
|
24717
24728
|
/* @__PURE__ */ jsx(EventSummaryFireButton, {
|
|
24718
24729
|
active: f.active,
|
|
24719
24730
|
onClick: f.onClick
|
|
@@ -24972,7 +24983,7 @@ function EventDetailContentMessage({ detail: { groups: e, summary: t, priorityTe
|
|
|
24972
24983
|
useEffect(() => {
|
|
24973
24984
|
e.length > 0 && !f.current && (f.current = !0, u.current?.scrollIntoView({ behavior: "smooth" }));
|
|
24974
24985
|
}, [e]);
|
|
24975
|
-
let p = o,
|
|
24986
|
+
let p = o, g = useCallback((t) => {
|
|
24976
24987
|
if (!c.current) return;
|
|
24977
24988
|
let n = Array.from(c.current.querySelectorAll("[data-group-id][class*=\"scroll-mt\"]")).filter((t) => {
|
|
24978
24989
|
let n = t.getAttribute("data-group-id");
|
|
@@ -24998,10 +25009,10 @@ function EventDetailContentMessage({ detail: { groups: e, summary: t, priorityTe
|
|
|
24998
25009
|
children: [e.map((e) => {
|
|
24999
25010
|
let t = e.isPriority ? p-- : 0, n = t ? () => {
|
|
25000
25011
|
let e = t + 1;
|
|
25001
|
-
e <= o &&
|
|
25012
|
+
e <= o && g(e);
|
|
25002
25013
|
} : void 0, r = t ? () => {
|
|
25003
25014
|
let e = t - 1;
|
|
25004
|
-
e >= 1 &&
|
|
25015
|
+
e >= 1 && g(e);
|
|
25005
25016
|
} : void 0;
|
|
25006
25017
|
return /* @__PURE__ */ jsx(MessageGroup, {
|
|
25007
25018
|
group: {
|
|
@@ -25071,13 +25082,13 @@ function EventDetailContentTicketDetails({ issue: e, notification: t, project: n
|
|
|
25071
25082
|
]
|
|
25072
25083
|
})] });
|
|
25073
25084
|
}
|
|
25074
|
-
function EventDetailContentTicket({ detail: { summary: e, body: t, priorityText: n, followUpTitle: r, followUpSubtitle: i, issue: a, notification: o, project: s, task: c, dueDate: l, startDate: u, assignees: f, reporter: p, team: h, location:
|
|
25085
|
+
function EventDetailContentTicket({ detail: { summary: e, body: t, priorityText: n, followUpTitle: r, followUpSubtitle: i, issue: a, notification: o, project: s, task: c, dueDate: l, startDate: u, assignees: f, reporter: p, team: h, location: g, related: O }, className: A }) {
|
|
25075
25086
|
return /* @__PURE__ */ jsxs(EventDetailContentHeader, {
|
|
25076
25087
|
summary: e,
|
|
25077
25088
|
priorityText: n,
|
|
25078
25089
|
followUpTitle: r,
|
|
25079
25090
|
followUpSubtitle: i,
|
|
25080
|
-
className:
|
|
25091
|
+
className: A,
|
|
25081
25092
|
children: [
|
|
25082
25093
|
/* @__PURE__ */ jsx(EventDetailContentTicketDetails, {
|
|
25083
25094
|
issue: a,
|
|
@@ -25089,8 +25100,8 @@ function EventDetailContentTicket({ detail: { summary: e, body: t, priorityText:
|
|
|
25089
25100
|
assignees: f,
|
|
25090
25101
|
reporter: p,
|
|
25091
25102
|
team: h,
|
|
25092
|
-
location:
|
|
25093
|
-
related:
|
|
25103
|
+
location: g,
|
|
25104
|
+
related: O
|
|
25094
25105
|
}),
|
|
25095
25106
|
/* @__PURE__ */ jsx("h2", {
|
|
25096
25107
|
className: "px-4 text-sm font-bold text-neutral-900",
|
|
@@ -25608,16 +25619,16 @@ function OnboardingCard({ stepLabel: e, title: t, description: n, titleAccessory
|
|
|
25608
25619
|
children: [i, a]
|
|
25609
25620
|
})
|
|
25610
25621
|
]
|
|
25611
|
-
}),
|
|
25622
|
+
}), g = wrapArrow(/* @__PURE__ */ jsx(OnboardingCardArrow, {
|
|
25612
25623
|
layout: o,
|
|
25613
25624
|
placement: s
|
|
25614
|
-
}), c, l),
|
|
25625
|
+
}), c, l), O = s === "before" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [g, h] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [h, g] });
|
|
25615
25626
|
return o === "horizontal" ? /* @__PURE__ */ jsx("div", {
|
|
25616
25627
|
className: cn("flex items-center", u),
|
|
25617
|
-
children:
|
|
25628
|
+
children: O
|
|
25618
25629
|
}) : /* @__PURE__ */ jsx("div", {
|
|
25619
25630
|
className: cn("flex flex-col items-center", u),
|
|
25620
|
-
children:
|
|
25631
|
+
children: O
|
|
25621
25632
|
});
|
|
25622
25633
|
}
|
|
25623
25634
|
var subscribeNoop = () => () => {}, getClientSnapshot = () => !0, getServerSnapshot = () => !1, PRIMARY_BTN = "rounded-lg bg-white px-4 py-1.5 text-xs font-semibold text-primary-500 transition-opacity hover:opacity-90", GHOST_BTN = "text-xs font-semibold text-white/70 transition-colors hover:text-white";
|
|
@@ -25665,7 +25676,7 @@ function OnboardingPortal({ currentStep: e, currentStepIndex: t, actions: n, ste
|
|
|
25665
25676
|
let p = e.layout === "vertical" && o.mode === "vertical" ? {
|
|
25666
25677
|
marginLeft: o.arrowMarginLeft,
|
|
25667
25678
|
...e.arrowWrapperStyle
|
|
25668
|
-
} : e.arrowWrapperStyle,
|
|
25679
|
+
} : e.arrowWrapperStyle, A = /* @__PURE__ */ jsx(OnboardingCard, {
|
|
25669
25680
|
stepLabel: e.stepLabel ?? (t == null ? void 0 : `${t + 1} / ${r.length}`),
|
|
25670
25681
|
title: e.title,
|
|
25671
25682
|
description: e.description,
|
|
@@ -25704,7 +25715,7 @@ function OnboardingPortal({ currentStep: e, currentStepIndex: t, actions: n, ste
|
|
|
25704
25715
|
left: o.left
|
|
25705
25716
|
}
|
|
25706
25717
|
},
|
|
25707
|
-
children:
|
|
25718
|
+
children: A
|
|
25708
25719
|
}), document.body);
|
|
25709
25720
|
}
|
|
25710
25721
|
function Onboarding({ steps: e, context: t, storageKey: n, onFinish: r, isEnabled: i = !0 }) {
|
|
@@ -25725,7 +25736,7 @@ function SearchInput({ value: e, defaultValue: t, placeholder: n = "Search...",
|
|
|
25725
25736
|
function h(e) {
|
|
25726
25737
|
u || l(e), r?.(e);
|
|
25727
25738
|
}
|
|
25728
|
-
function
|
|
25739
|
+
function O() {
|
|
25729
25740
|
u || l(""), r?.(""), a?.();
|
|
25730
25741
|
}
|
|
25731
25742
|
return /* @__PURE__ */ jsxs("fieldset", {
|
|
@@ -25751,7 +25762,7 @@ function SearchInput({ value: e, defaultValue: t, placeholder: n = "Search...",
|
|
|
25751
25762
|
size: 16,
|
|
25752
25763
|
className: "text-neutral-700"
|
|
25753
25764
|
}),
|
|
25754
|
-
onClick:
|
|
25765
|
+
onClick: O,
|
|
25755
25766
|
"aria-label": "Clear search",
|
|
25756
25767
|
className: "rounded p-0 transition-opacity hover:opacity-70"
|
|
25757
25768
|
})
|