@leonardaustin/ui 0.5.0 → 0.6.0
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/components/ui/Dialog.d.ts +7 -1
- package/dist/components/ui/Dialog.d.ts.map +1 -1
- package/dist/components/ui/SideSheet.d.ts.map +1 -1
- package/dist/index.js +286 -205
- package/dist/lib/dialogDrag.d.ts +21 -0
- package/dist/lib/dialogDrag.d.ts.map +1 -0
- package/dist/styles.css +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -6805,11 +6805,97 @@ function ta({ open: e, onClose: t, title: n, children: r, className: i, resizabl
|
|
|
6805
6805
|
})
|
|
6806
6806
|
});
|
|
6807
6807
|
}
|
|
6808
|
+
function na(e, t, [n, r], [i, a], [o, s], c) {
|
|
6809
|
+
let [l, u] = r - n <= s - o - c * 2 ? [n, r] : [i, a], d = t + (o + c - l), f = t + (s - c - u);
|
|
6810
|
+
return f < d && (f = d), d = Math.min(d, 0), f = Math.max(f, 0), Math.min(f, Math.max(d, e));
|
|
6811
|
+
}
|
|
6812
|
+
function ra(e, t, n, r, i, a = 8) {
|
|
6813
|
+
return {
|
|
6814
|
+
x: na(e.x, t.x, [n.left, n.right], [r.left, r.right], [i.left, i.right], a),
|
|
6815
|
+
y: na(e.y, t.y, [n.top, n.bottom], [r.top, r.bottom], [i.top, i.bottom], a)
|
|
6816
|
+
};
|
|
6817
|
+
}
|
|
6818
|
+
function ia({ x: e, y: t }) {
|
|
6819
|
+
return e === 0 && t === 0 ? "" : `${e}px ${t}px`;
|
|
6820
|
+
}
|
|
6808
6821
|
//#endregion
|
|
6809
6822
|
//#region src/components/ui/Dialog.tsx
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6823
|
+
var aa = "(min-width: 48rem)", oa = "a[href], button, input, select, textarea, label, summary, [contenteditable]:not([contenteditable=\"false\"]), [role=\"button\"], [role=\"link\"], [tabindex]:not([tabindex=\"-1\"])", sa = {
|
|
6824
|
+
x: 0,
|
|
6825
|
+
y: 0
|
|
6826
|
+
};
|
|
6827
|
+
function ca(e) {
|
|
6828
|
+
let t = e.getBoundingClientRect();
|
|
6829
|
+
return {
|
|
6830
|
+
left: t.left,
|
|
6831
|
+
top: t.top,
|
|
6832
|
+
right: t.left + e.clientWidth,
|
|
6833
|
+
bottom: t.top + e.clientHeight
|
|
6834
|
+
};
|
|
6835
|
+
}
|
|
6836
|
+
function la(e) {
|
|
6837
|
+
return e.ownerDocument.defaultView?.matchMedia(aa).matches ?? !1;
|
|
6838
|
+
}
|
|
6839
|
+
function ua(e, t, n) {
|
|
6840
|
+
let r = f(sa), i = f(null);
|
|
6841
|
+
c(() => {
|
|
6842
|
+
let a = t.current, o = n.current, s = a?.ownerDocument.defaultView;
|
|
6843
|
+
if (!e || !a || !o || !s) return;
|
|
6844
|
+
let c = (e) => {
|
|
6845
|
+
r.current = e, a.style.translate = ia(e);
|
|
6846
|
+
}, l = () => {
|
|
6847
|
+
if (!la(a)) {
|
|
6848
|
+
i.current = null, c(sa);
|
|
6849
|
+
return;
|
|
6850
|
+
}
|
|
6851
|
+
let e = r.current, t = a.parentElement;
|
|
6852
|
+
e.x === 0 && e.y === 0 || !t || c(ra(e, e, a.getBoundingClientRect(), o.getBoundingClientRect(), ca(t)));
|
|
6853
|
+
};
|
|
6854
|
+
return s.addEventListener("resize", l), () => {
|
|
6855
|
+
s.removeEventListener("resize", l), i.current = null, r.current = sa, a.style.translate = "";
|
|
6856
|
+
};
|
|
6857
|
+
}, [
|
|
6858
|
+
e,
|
|
6859
|
+
t,
|
|
6860
|
+
n
|
|
6861
|
+
]);
|
|
6862
|
+
let a = (e) => {
|
|
6863
|
+
let n = t.current, a = e.currentTarget, o = n?.parentElement;
|
|
6864
|
+
if (!n || !o || e.button !== 0 || !e.isPrimary) return;
|
|
6865
|
+
let s = e.target.closest(oa);
|
|
6866
|
+
s && a.contains(s) || !la(n) || (e.preventDefault(), a.setPointerCapture(e.pointerId), i.current = {
|
|
6867
|
+
pointerId: e.pointerId,
|
|
6868
|
+
startX: e.clientX,
|
|
6869
|
+
startY: e.clientY,
|
|
6870
|
+
origin: r.current,
|
|
6871
|
+
dialog: n.getBoundingClientRect(),
|
|
6872
|
+
handle: a.getBoundingClientRect(),
|
|
6873
|
+
bounds: ca(o)
|
|
6874
|
+
});
|
|
6875
|
+
}, o = (e) => {
|
|
6876
|
+
let n = i.current, a = t.current;
|
|
6877
|
+
if (!n || n.pointerId !== e.pointerId || !a) return;
|
|
6878
|
+
let o = ra({
|
|
6879
|
+
x: n.origin.x + e.clientX - n.startX,
|
|
6880
|
+
y: n.origin.y + e.clientY - n.startY
|
|
6881
|
+
}, n.origin, n.dialog, n.handle, n.bounds);
|
|
6882
|
+
r.current = o, a.style.translate = ia(o);
|
|
6883
|
+
}, s = (e) => {
|
|
6884
|
+
i.current?.pointerId === e.pointerId && (i.current = null);
|
|
6885
|
+
};
|
|
6886
|
+
if (e) return {
|
|
6887
|
+
onPointerDown: a,
|
|
6888
|
+
onPointerMove: o,
|
|
6889
|
+
onPointerUp: s,
|
|
6890
|
+
onPointerCancel: s,
|
|
6891
|
+
onLostPointerCapture: s
|
|
6892
|
+
};
|
|
6893
|
+
}
|
|
6894
|
+
function da({ open: e, onClose: t, title: n, children: r, footer: i, className: a, draggable: o = !1 }) {
|
|
6895
|
+
let s = f(null), u = f(null), d = l();
|
|
6896
|
+
ft(s, e);
|
|
6897
|
+
let p = ua(e && o, s, u);
|
|
6898
|
+
return c(() => {
|
|
6813
6899
|
if (!e) return;
|
|
6814
6900
|
let n = (e) => {
|
|
6815
6901
|
e.key === "Escape" && t();
|
|
@@ -6823,17 +6909,19 @@ function na({ open: e, onClose: t, title: n, children: r, footer: i, className:
|
|
|
6823
6909
|
className: "bg-bg-overlay fixed inset-0",
|
|
6824
6910
|
onClick: t
|
|
6825
6911
|
}), /* @__PURE__ */ g("div", {
|
|
6826
|
-
ref:
|
|
6912
|
+
ref: s,
|
|
6827
6913
|
className: V("relative z-50 mx-4 mb-8 w-full max-w-[400px] p-6", "bg-bg-secondary border-border rounded-lg border", "animate-scale-in shadow-lg", a),
|
|
6828
6914
|
role: "dialog",
|
|
6829
6915
|
"aria-modal": "true",
|
|
6830
|
-
"aria-labelledby": n ?
|
|
6916
|
+
"aria-labelledby": n ? d : void 0,
|
|
6831
6917
|
"aria-label": n ? void 0 : "Dialog",
|
|
6832
6918
|
children: [
|
|
6833
6919
|
/* @__PURE__ */ g("div", {
|
|
6834
|
-
|
|
6920
|
+
ref: u,
|
|
6921
|
+
className: V("mb-4 flex items-center justify-between", o && "md:cursor-grab md:touch-none md:select-none md:active:cursor-grabbing"),
|
|
6922
|
+
...p,
|
|
6835
6923
|
children: [n && /* @__PURE__ */ h("h3", {
|
|
6836
|
-
id:
|
|
6924
|
+
id: d,
|
|
6837
6925
|
className: "text-text-primary text-sm font-semibold",
|
|
6838
6926
|
children: n
|
|
6839
6927
|
}), /* @__PURE__ */ h("button", {
|
|
@@ -6851,7 +6939,7 @@ function na({ open: e, onClose: t, title: n, children: r, footer: i, className:
|
|
|
6851
6939
|
}
|
|
6852
6940
|
//#endregion
|
|
6853
6941
|
//#region src/components/ui/DialogActions.tsx
|
|
6854
|
-
function
|
|
6942
|
+
function fa({ onCancel: e, onConfirm: t, cancelLabel: n = "Cancel", confirmLabel: r = "Confirm", confirmVariant: i = "primary", className: a }) {
|
|
6855
6943
|
return /* @__PURE__ */ g("div", {
|
|
6856
6944
|
className: V("flex justify-end gap-2", a),
|
|
6857
6945
|
children: [/* @__PURE__ */ h(un, {
|
|
@@ -6869,7 +6957,7 @@ function ra({ onCancel: e, onConfirm: t, cancelLabel: n = "Cancel", confirmLabel
|
|
|
6869
6957
|
}
|
|
6870
6958
|
//#endregion
|
|
6871
6959
|
//#region src/components/ui/DividerLabel.tsx
|
|
6872
|
-
function
|
|
6960
|
+
function pa({ children: e, className: t }) {
|
|
6873
6961
|
return /* @__PURE__ */ g("div", {
|
|
6874
6962
|
className: V("my-6 flex items-center gap-3", t),
|
|
6875
6963
|
children: [
|
|
@@ -6884,7 +6972,7 @@ function ia({ children: e, className: t }) {
|
|
|
6884
6972
|
}
|
|
6885
6973
|
//#endregion
|
|
6886
6974
|
//#region src/components/ui/DropdownMenu.tsx
|
|
6887
|
-
function
|
|
6975
|
+
function ma({ trigger: e, items: t, align: n = "right" }) {
|
|
6888
6976
|
let [r, i] = p(!1), [a, s] = p({
|
|
6889
6977
|
top: 0,
|
|
6890
6978
|
left: 0,
|
|
@@ -6965,7 +7053,7 @@ function aa({ trigger: e, items: t, align: n = "right" }) {
|
|
|
6965
7053
|
}
|
|
6966
7054
|
//#endregion
|
|
6967
7055
|
//#region src/components/ui/EmptyState.tsx
|
|
6968
|
-
function
|
|
7056
|
+
function ha({ icon: e, title: t, description: n, action: r, className: i }) {
|
|
6969
7057
|
return /* @__PURE__ */ g("div", {
|
|
6970
7058
|
className: V("flex flex-col items-center justify-center px-4 py-12", i),
|
|
6971
7059
|
children: [
|
|
@@ -6990,7 +7078,7 @@ function oa({ icon: e, title: t, description: n, action: r, className: i }) {
|
|
|
6990
7078
|
}
|
|
6991
7079
|
//#endregion
|
|
6992
7080
|
//#region src/components/ui/ErrorBoundary.tsx
|
|
6993
|
-
var
|
|
7081
|
+
var ga = class extends e {
|
|
6994
7082
|
state = {
|
|
6995
7083
|
hasError: !1,
|
|
6996
7084
|
error: null
|
|
@@ -7032,8 +7120,8 @@ var sa = class extends e {
|
|
|
7032
7120
|
};
|
|
7033
7121
|
//#endregion
|
|
7034
7122
|
//#region src/components/ui/FilterDropdown.tsx
|
|
7035
|
-
function
|
|
7036
|
-
return /* @__PURE__ */ h(
|
|
7123
|
+
function _a({ icon: e, children: t, items: n, align: r, className: i }) {
|
|
7124
|
+
return /* @__PURE__ */ h(ma, {
|
|
7037
7125
|
align: r,
|
|
7038
7126
|
trigger: /* @__PURE__ */ h(An, {
|
|
7039
7127
|
icon: e,
|
|
@@ -7045,7 +7133,7 @@ function ca({ icon: e, children: t, items: n, align: r, className: i }) {
|
|
|
7045
7133
|
}
|
|
7046
7134
|
//#endregion
|
|
7047
7135
|
//#region src/components/ui/Kbd.tsx
|
|
7048
|
-
function
|
|
7136
|
+
function va({ children: e, className: t }) {
|
|
7049
7137
|
return /* @__PURE__ */ h("kbd", {
|
|
7050
7138
|
className: V("text-2xs inline-flex items-center px-1.5 py-0.5 font-mono font-medium", "bg-bg-tertiary text-text-secondary border-border rounded border", t),
|
|
7051
7139
|
children: e
|
|
@@ -7053,20 +7141,20 @@ function la({ children: e, className: t }) {
|
|
|
7053
7141
|
}
|
|
7054
7142
|
//#endregion
|
|
7055
7143
|
//#region src/components/ui/LoadingSpinner.tsx
|
|
7056
|
-
var
|
|
7144
|
+
var ya = {
|
|
7057
7145
|
sm: "w-4 h-4",
|
|
7058
7146
|
md: "w-6 h-6",
|
|
7059
7147
|
lg: "w-8 h-8"
|
|
7060
7148
|
};
|
|
7061
|
-
function
|
|
7149
|
+
function ba({ className: e, size: t = "md" }) {
|
|
7062
7150
|
return /* @__PURE__ */ h("div", {
|
|
7063
7151
|
className: V("flex min-h-[200px] items-center justify-center", e),
|
|
7064
|
-
children: /* @__PURE__ */ h(F, { className: V("text-accent animate-spin",
|
|
7152
|
+
children: /* @__PURE__ */ h(F, { className: V("text-accent animate-spin", ya[t]) })
|
|
7065
7153
|
});
|
|
7066
7154
|
}
|
|
7067
7155
|
//#endregion
|
|
7068
7156
|
//#region src/components/ui/MetadataGrid.tsx
|
|
7069
|
-
function
|
|
7157
|
+
function xa({ items: e, labelWidth: n = "100px", className: r }) {
|
|
7070
7158
|
return /* @__PURE__ */ h("div", {
|
|
7071
7159
|
className: V("gap-x-3 gap-y-2 text-xs", r),
|
|
7072
7160
|
style: {
|
|
@@ -7084,7 +7172,7 @@ function fa({ items: e, labelWidth: n = "100px", className: r }) {
|
|
|
7084
7172
|
}
|
|
7085
7173
|
//#endregion
|
|
7086
7174
|
//#region src/components/ui/MetricCard.tsx
|
|
7087
|
-
function
|
|
7175
|
+
function Sa({ label: e, value: t, sub: n, trend: r, bar: i, icon: a, iconColor: o, className: s }) {
|
|
7088
7176
|
let c = r?.tone === "positive" ? "text-green" : r?.tone === "negative" ? "text-red" : "text-text-tertiary";
|
|
7089
7177
|
return /* @__PURE__ */ g("div", {
|
|
7090
7178
|
className: V("bg-bg-secondary border-border relative overflow-hidden rounded-md border p-3", s),
|
|
@@ -7124,7 +7212,7 @@ function pa({ label: e, value: t, sub: n, trend: r, bar: i, icon: a, iconColor:
|
|
|
7124
7212
|
}
|
|
7125
7213
|
//#endregion
|
|
7126
7214
|
//#region src/components/ui/OAuthButton.tsx
|
|
7127
|
-
function
|
|
7215
|
+
function Ca() {
|
|
7128
7216
|
return /* @__PURE__ */ g("svg", {
|
|
7129
7217
|
className: "h-3.5 w-3.5",
|
|
7130
7218
|
viewBox: "0 0 24 24",
|
|
@@ -7149,7 +7237,7 @@ function ma() {
|
|
|
7149
7237
|
]
|
|
7150
7238
|
});
|
|
7151
7239
|
}
|
|
7152
|
-
function
|
|
7240
|
+
function wa() {
|
|
7153
7241
|
return /* @__PURE__ */ h("svg", {
|
|
7154
7242
|
className: "h-3.5 w-3.5",
|
|
7155
7243
|
viewBox: "0 0 24 24",
|
|
@@ -7158,25 +7246,25 @@ function ha() {
|
|
|
7158
7246
|
children: /* @__PURE__ */ h("path", { d: "M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" })
|
|
7159
7247
|
});
|
|
7160
7248
|
}
|
|
7161
|
-
var
|
|
7249
|
+
var Ta = {
|
|
7162
7250
|
github: "GitHub",
|
|
7163
7251
|
google: "Google"
|
|
7164
|
-
},
|
|
7165
|
-
github:
|
|
7166
|
-
google:
|
|
7252
|
+
}, Ea = {
|
|
7253
|
+
github: wa,
|
|
7254
|
+
google: Ca
|
|
7167
7255
|
};
|
|
7168
|
-
function
|
|
7169
|
-
let r =
|
|
7256
|
+
function Da({ provider: e, children: t, ...n }) {
|
|
7257
|
+
let r = Ea[e];
|
|
7170
7258
|
return /* @__PURE__ */ g(un, {
|
|
7171
7259
|
variant: "secondary",
|
|
7172
7260
|
size: "md",
|
|
7173
7261
|
...n,
|
|
7174
|
-
children: [/* @__PURE__ */ h(r, {}), t ??
|
|
7262
|
+
children: [/* @__PURE__ */ h(r, {}), t ?? Ta[e]]
|
|
7175
7263
|
});
|
|
7176
7264
|
}
|
|
7177
7265
|
//#endregion
|
|
7178
7266
|
//#region src/components/ui/PageHeader.tsx
|
|
7179
|
-
function
|
|
7267
|
+
function Oa({ title: e, subtitle: t, actions: n, className: r }) {
|
|
7180
7268
|
return /* @__PURE__ */ g("div", {
|
|
7181
7269
|
className: V("flex items-center justify-between", r),
|
|
7182
7270
|
children: [/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("h1", {
|
|
@@ -7193,7 +7281,7 @@ function ya({ title: e, subtitle: t, actions: n, className: r }) {
|
|
|
7193
7281
|
}
|
|
7194
7282
|
//#endregion
|
|
7195
7283
|
//#region src/components/ui/PageSection.tsx
|
|
7196
|
-
function
|
|
7284
|
+
function ka({ title: e, description: t, actions: n, children: r, as: i = "h2", className: a, headerClassName: o, contentClassName: s }) {
|
|
7197
7285
|
return /* @__PURE__ */ g("section", {
|
|
7198
7286
|
className: V("space-y-4", a),
|
|
7199
7287
|
children: [(e || t || n) && /* @__PURE__ */ g("div", {
|
|
@@ -7219,7 +7307,7 @@ function ba({ title: e, description: t, actions: n, children: r, as: i = "h2", c
|
|
|
7219
7307
|
}
|
|
7220
7308
|
//#endregion
|
|
7221
7309
|
//#region src/components/ui/PaginationBar.tsx
|
|
7222
|
-
var
|
|
7310
|
+
var Aa = [
|
|
7223
7311
|
{
|
|
7224
7312
|
value: "10",
|
|
7225
7313
|
label: "10 per page"
|
|
@@ -7233,7 +7321,7 @@ var xa = [
|
|
|
7233
7321
|
label: "50 per page"
|
|
7234
7322
|
}
|
|
7235
7323
|
];
|
|
7236
|
-
function
|
|
7324
|
+
function ja({ page: e, pageSize: t, total: n, pageSizeOptions: r = Aa, onPageChange: i, onPageSizeChange: a, className: o }) {
|
|
7237
7325
|
let s = Math.ceil(n / t), c = Math.min((e - 1) * t + 1, n), l = Math.min(e * t, n);
|
|
7238
7326
|
return /* @__PURE__ */ g("div", {
|
|
7239
7327
|
className: V("flex items-center justify-between", o),
|
|
@@ -7264,7 +7352,7 @@ function Sa({ page: e, pageSize: t, total: n, pageSizeOptions: r = xa, onPageCha
|
|
|
7264
7352
|
}
|
|
7265
7353
|
//#endregion
|
|
7266
7354
|
//#region src/components/ui/PasswordInput.tsx
|
|
7267
|
-
var
|
|
7355
|
+
var Ma = i(({ label: e, error: t, className: n, id: r, ...i }, a) => {
|
|
7268
7356
|
let o = r || e?.toLowerCase().replace(/\s+/g, "-"), [s, c] = p(!1);
|
|
7269
7357
|
return /* @__PURE__ */ g("div", {
|
|
7270
7358
|
className: "flex flex-col gap-1.5",
|
|
@@ -7296,8 +7384,8 @@ var Ca = i(({ label: e, error: t, className: n, id: r, ...i }, a) => {
|
|
|
7296
7384
|
})]
|
|
7297
7385
|
});
|
|
7298
7386
|
});
|
|
7299
|
-
|
|
7300
|
-
var
|
|
7387
|
+
Ma.displayName = "PasswordInput";
|
|
7388
|
+
var Na = Object.freeze([
|
|
7301
7389
|
{
|
|
7302
7390
|
label: "At least 8 characters",
|
|
7303
7391
|
test: (e) => e.length >= 8
|
|
@@ -7315,12 +7403,12 @@ var wa = Object.freeze([
|
|
|
7315
7403
|
test: (e) => /\d/.test(e)
|
|
7316
7404
|
}
|
|
7317
7405
|
]);
|
|
7318
|
-
function
|
|
7406
|
+
function Pa(e, t = Na) {
|
|
7319
7407
|
return t.every((t) => t.test(e));
|
|
7320
7408
|
}
|
|
7321
7409
|
//#endregion
|
|
7322
7410
|
//#region src/components/ui/PasswordRequirements.tsx
|
|
7323
|
-
function
|
|
7411
|
+
function Fa({ password: e, requirements: t = Na, showWhenEmpty: n = !1, className: r }) {
|
|
7324
7412
|
return !n && e.length === 0 ? null : /* @__PURE__ */ h("ul", {
|
|
7325
7413
|
"aria-label": "Password requirements",
|
|
7326
7414
|
className: V("space-y-1", r),
|
|
@@ -7347,7 +7435,7 @@ function Ea({ password: e, requirements: t = wa, showWhenEmpty: n = !1, classNam
|
|
|
7347
7435
|
}
|
|
7348
7436
|
//#endregion
|
|
7349
7437
|
//#region src/components/ui/ProfileHeader.tsx
|
|
7350
|
-
function
|
|
7438
|
+
function Ia({ name: e, subtitle: t, badge: n, meta: r, action: i, className: a }) {
|
|
7351
7439
|
return /* @__PURE__ */ g("div", {
|
|
7352
7440
|
className: V("flex items-start gap-4", a),
|
|
7353
7441
|
children: [
|
|
@@ -7395,7 +7483,7 @@ function Da({ name: e, subtitle: t, badge: n, meta: r, action: i, className: a }
|
|
|
7395
7483
|
}
|
|
7396
7484
|
//#endregion
|
|
7397
7485
|
//#region src/components/ui/ProseContent.tsx
|
|
7398
|
-
function
|
|
7486
|
+
function La({ children: e, className: t }) {
|
|
7399
7487
|
return /* @__PURE__ */ h("div", {
|
|
7400
7488
|
className: V("ui-prose", t),
|
|
7401
7489
|
children: e
|
|
@@ -7403,21 +7491,21 @@ function Oa({ children: e, className: t }) {
|
|
|
7403
7491
|
}
|
|
7404
7492
|
//#endregion
|
|
7405
7493
|
//#region src/lib/qrCode.ts
|
|
7406
|
-
var
|
|
7494
|
+
var Ra = class extends RangeError {
|
|
7407
7495
|
constructor() {
|
|
7408
7496
|
super("Text is too long to encode as a QR code"), this.name = "QrCapacityError";
|
|
7409
7497
|
}
|
|
7410
|
-
},
|
|
7498
|
+
}, za = {
|
|
7411
7499
|
L: 0,
|
|
7412
7500
|
M: 1,
|
|
7413
7501
|
Q: 2,
|
|
7414
7502
|
H: 3
|
|
7415
|
-
},
|
|
7503
|
+
}, Ba = {
|
|
7416
7504
|
L: 1,
|
|
7417
7505
|
M: 0,
|
|
7418
7506
|
Q: 3,
|
|
7419
7507
|
H: 2
|
|
7420
|
-
},
|
|
7508
|
+
}, Va = [
|
|
7421
7509
|
[
|
|
7422
7510
|
-1,
|
|
7423
7511
|
7,
|
|
@@ -7590,7 +7678,7 @@ var ka = class extends RangeError {
|
|
|
7590
7678
|
30,
|
|
7591
7679
|
30
|
|
7592
7680
|
]
|
|
7593
|
-
],
|
|
7681
|
+
], Ha = [
|
|
7594
7682
|
[
|
|
7595
7683
|
-1,
|
|
7596
7684
|
1,
|
|
@@ -7764,7 +7852,7 @@ var ka = class extends RangeError {
|
|
|
7764
7852
|
81
|
|
7765
7853
|
]
|
|
7766
7854
|
];
|
|
7767
|
-
function
|
|
7855
|
+
function Ua(e) {
|
|
7768
7856
|
let t = (16 * e + 128) * e + 64;
|
|
7769
7857
|
if (e >= 2) {
|
|
7770
7858
|
let n = Math.floor(e / 7) + 2;
|
|
@@ -7772,43 +7860,43 @@ function Pa(e) {
|
|
|
7772
7860
|
}
|
|
7773
7861
|
return t;
|
|
7774
7862
|
}
|
|
7775
|
-
function
|
|
7776
|
-
let n =
|
|
7777
|
-
return Math.floor(
|
|
7863
|
+
function Wa(e, t) {
|
|
7864
|
+
let n = za[t];
|
|
7865
|
+
return Math.floor(Ua(e) / 8) - Va[n][e] * Ha[n][e];
|
|
7778
7866
|
}
|
|
7779
|
-
function
|
|
7867
|
+
function Ga(e) {
|
|
7780
7868
|
if (e === 1) return [];
|
|
7781
7869
|
let t = Math.floor(e / 7) + 2, n = Math.floor((e * 8 + t * 3 + 5) / (t * 4 - 4)) * 2, r = [6];
|
|
7782
7870
|
for (let i = e * 4 + 17 - 7; r.length < t; i -= n) r.splice(1, 0, i);
|
|
7783
7871
|
return r;
|
|
7784
7872
|
}
|
|
7785
|
-
function
|
|
7873
|
+
function Ka(e, t) {
|
|
7786
7874
|
let n = 0;
|
|
7787
7875
|
for (let r = 7; r >= 0; r--) n = n << 1 ^ (n >>> 7) * 285, n ^= (t >>> r & 1) * e;
|
|
7788
7876
|
return n;
|
|
7789
7877
|
}
|
|
7790
|
-
function
|
|
7878
|
+
function qa(e) {
|
|
7791
7879
|
let t = Array(e).fill(0);
|
|
7792
7880
|
t[e - 1] = 1;
|
|
7793
7881
|
let n = 1;
|
|
7794
7882
|
for (let r = 0; r < e; r++) {
|
|
7795
|
-
for (let e = 0; e < t.length; e++) t[e] =
|
|
7796
|
-
n =
|
|
7883
|
+
for (let e = 0; e < t.length; e++) t[e] = Ka(t[e], n), e + 1 < t.length && (t[e] ^= t[e + 1]);
|
|
7884
|
+
n = Ka(n, 2);
|
|
7797
7885
|
}
|
|
7798
7886
|
return t;
|
|
7799
7887
|
}
|
|
7800
|
-
function
|
|
7888
|
+
function Ja(e, t) {
|
|
7801
7889
|
let n = Array(t.length).fill(0);
|
|
7802
7890
|
for (let r of e) {
|
|
7803
7891
|
let e = r ^ n.shift();
|
|
7804
7892
|
n.push(0), t.forEach((t, r) => {
|
|
7805
|
-
n[r] ^=
|
|
7893
|
+
n[r] ^= Ka(t, e);
|
|
7806
7894
|
});
|
|
7807
7895
|
}
|
|
7808
7896
|
return n;
|
|
7809
7897
|
}
|
|
7810
|
-
function
|
|
7811
|
-
let r =
|
|
7898
|
+
function Ya(e, t, n) {
|
|
7899
|
+
let r = Wa(t, n) * 8, i = [], a = (e, t) => {
|
|
7812
7900
|
for (let n = t - 1; n >= 0; n--) i.push(e >>> n & 1);
|
|
7813
7901
|
};
|
|
7814
7902
|
a(4, 4), a(e.length, t <= 9 ? 8 : 16);
|
|
@@ -7819,12 +7907,12 @@ function Ba(e, t, n) {
|
|
|
7819
7907
|
for (let e = 0; e < i.length; e += 8) o.push(i.slice(e, e + 8).reduce((e, t) => e << 1 | t));
|
|
7820
7908
|
return o;
|
|
7821
7909
|
}
|
|
7822
|
-
function
|
|
7823
|
-
let r =
|
|
7910
|
+
function Xa(e, t, n) {
|
|
7911
|
+
let r = za[n], i = Ha[r][t], a = Va[r][t], o = Math.floor(Ua(t) / 8), s = i - o % i, c = Math.floor(o / i), l = qa(a), u = [];
|
|
7824
7912
|
for (let t = 0, n = 0; t < i; t++) {
|
|
7825
7913
|
let r = c - a + (t < s ? 0 : 1), i = e.slice(n, n + r);
|
|
7826
7914
|
n += r;
|
|
7827
|
-
let o =
|
|
7915
|
+
let o = Ja(i, l);
|
|
7828
7916
|
t < s && i.push(0), u.push(i.concat(o));
|
|
7829
7917
|
}
|
|
7830
7918
|
let d = [];
|
|
@@ -7833,7 +7921,7 @@ function Va(e, t, n) {
|
|
|
7833
7921
|
});
|
|
7834
7922
|
return d;
|
|
7835
7923
|
}
|
|
7836
|
-
var
|
|
7924
|
+
var Za = class {
|
|
7837
7925
|
size;
|
|
7838
7926
|
modules;
|
|
7839
7927
|
isFunction;
|
|
@@ -7844,7 +7932,7 @@ var Ha = class {
|
|
|
7844
7932
|
this.modules[t][e] = n, this.isFunction[t][e] = !0;
|
|
7845
7933
|
}
|
|
7846
7934
|
};
|
|
7847
|
-
function
|
|
7935
|
+
function Qa(e, t) {
|
|
7848
7936
|
let { size: n } = e;
|
|
7849
7937
|
for (let t = 0; t < n; t++) e.setFunction(6, t, t % 2 == 0), e.setFunction(t, 6, t % 2 == 0);
|
|
7850
7938
|
for (let [t, r] of [
|
|
@@ -7857,15 +7945,15 @@ function Ua(e, t) {
|
|
|
7857
7945
|
let c = Math.max(Math.abs(a), Math.abs(i));
|
|
7858
7946
|
e.setFunction(o, s, c !== 2 && c !== 4);
|
|
7859
7947
|
}
|
|
7860
|
-
let r =
|
|
7948
|
+
let r = Ga(t), i = r.length - 1;
|
|
7861
7949
|
r.forEach((t, n) => {
|
|
7862
7950
|
r.forEach((r, a) => {
|
|
7863
7951
|
if (!(n === 0 && a === 0 || n === 0 && a === i || n === i && a === 0)) for (let n = -2; n <= 2; n++) for (let i = -2; i <= 2; i++) e.setFunction(t + i, r + n, Math.max(Math.abs(i), Math.abs(n)) !== 1);
|
|
7864
7952
|
});
|
|
7865
|
-
}),
|
|
7953
|
+
}), $a(e, "M", 0), eo(e, t);
|
|
7866
7954
|
}
|
|
7867
|
-
function
|
|
7868
|
-
let r =
|
|
7955
|
+
function $a(e, t, n) {
|
|
7956
|
+
let r = Ba[t] << 3 | n, i = r;
|
|
7869
7957
|
for (let e = 0; e < 10; e++) i = i << 1 ^ (i >>> 9) * 1335;
|
|
7870
7958
|
let a = (r << 10 | i) ^ 21522, o = (e) => (a >>> e & 1) != 0, { size: s } = e;
|
|
7871
7959
|
for (let t = 0; t <= 5; t++) e.setFunction(8, t, o(t));
|
|
@@ -7875,7 +7963,7 @@ function Wa(e, t, n) {
|
|
|
7875
7963
|
for (let t = 8; t < 15; t++) e.setFunction(8, s - 15 + t, o(t));
|
|
7876
7964
|
e.setFunction(8, s - 8, !0);
|
|
7877
7965
|
}
|
|
7878
|
-
function
|
|
7966
|
+
function eo(e, t) {
|
|
7879
7967
|
if (t < 7) return;
|
|
7880
7968
|
let n = t;
|
|
7881
7969
|
for (let e = 0; e < 12; e++) n = n << 1 ^ (n >>> 11) * 7973;
|
|
@@ -7885,7 +7973,7 @@ function Ga(e, t) {
|
|
|
7885
7973
|
e.setFunction(i, a, n), e.setFunction(a, i, n);
|
|
7886
7974
|
}
|
|
7887
7975
|
}
|
|
7888
|
-
function
|
|
7976
|
+
function to(e, t) {
|
|
7889
7977
|
let { size: n } = e, r = 0;
|
|
7890
7978
|
for (let i = n - 1; i >= 1; i -= 2) {
|
|
7891
7979
|
i === 6 && (i = 5);
|
|
@@ -7899,7 +7987,7 @@ function Ka(e, t) {
|
|
|
7899
7987
|
}
|
|
7900
7988
|
}
|
|
7901
7989
|
}
|
|
7902
|
-
var
|
|
7990
|
+
var no = [
|
|
7903
7991
|
(e, t) => (e + t) % 2 == 0,
|
|
7904
7992
|
(e, t) => t % 2 == 0,
|
|
7905
7993
|
(e) => e % 3 == 0,
|
|
@@ -7909,10 +7997,10 @@ var qa = [
|
|
|
7909
7997
|
(e, t) => (e * t % 2 + e * t % 3) % 2 == 0,
|
|
7910
7998
|
(e, t) => ((e + t) % 2 + e * t % 3) % 2 == 0
|
|
7911
7999
|
];
|
|
7912
|
-
function
|
|
7913
|
-
for (let n = 0; n < e.size; n++) for (let r = 0; r < e.size; r++) !e.isFunction[n][r] &&
|
|
8000
|
+
function ro(e, t) {
|
|
8001
|
+
for (let n = 0; n < e.size; n++) for (let r = 0; r < e.size; r++) !e.isFunction[n][r] && no[t](r, n) && (e.modules[n][r] = !e.modules[n][r]);
|
|
7914
8002
|
}
|
|
7915
|
-
var
|
|
8003
|
+
var io = [[
|
|
7916
8004
|
!0,
|
|
7917
8005
|
!1,
|
|
7918
8006
|
!0,
|
|
@@ -7937,12 +8025,12 @@ var Ya = [[
|
|
|
7937
8025
|
!1,
|
|
7938
8026
|
!0
|
|
7939
8027
|
]];
|
|
7940
|
-
function
|
|
8028
|
+
function ao(e) {
|
|
7941
8029
|
let t = e.length, n = (t, n, r) => r ? e[t][n] : e[n][t], r = 0;
|
|
7942
8030
|
for (let e of [!1, !0]) for (let i = 0; i < t; i++) {
|
|
7943
8031
|
let a = 1;
|
|
7944
8032
|
for (let o = 1; o <= t; o++) o < t && n(o, i, e) === n(o - 1, i, e) ? a++ : (a >= 5 && (r += 3 + (a - 5)), a = 1);
|
|
7945
|
-
for (let a = 0; a + 11 <= t; a++) for (let t of
|
|
8033
|
+
for (let a = 0; a + 11 <= t; a++) for (let t of io) t.every((t, r) => n(a + r, i, e) === t) && (r += 40);
|
|
7946
8034
|
}
|
|
7947
8035
|
for (let n = 0; n < t - 1; n++) for (let i = 0; i < t - 1; i++) {
|
|
7948
8036
|
let t = e[n][i];
|
|
@@ -7951,20 +8039,20 @@ function Xa(e) {
|
|
|
7951
8039
|
let i = e.reduce((e, t) => e + t.filter(Boolean).length, 0) * 100 / (t * t);
|
|
7952
8040
|
return r += Math.floor(Math.abs(i - 50) / 5) * 10, r;
|
|
7953
8041
|
}
|
|
7954
|
-
function
|
|
7955
|
-
if (!Object.hasOwn(
|
|
8042
|
+
function oo(e, t = "M") {
|
|
8043
|
+
if (!Object.hasOwn(za, t)) throw RangeError(`Invalid QR error correction level "${t}"; expected L, M, Q or H`);
|
|
7956
8044
|
let n = new TextEncoder().encode(e), r = 1;
|
|
7957
|
-
for (; r <= 40 && !(4 + (r <= 9 ? 8 : 16) + n.length * 8 <=
|
|
7958
|
-
if (r > 40) throw new
|
|
7959
|
-
let i =
|
|
7960
|
-
|
|
8045
|
+
for (; r <= 40 && !(4 + (r <= 9 ? 8 : 16) + n.length * 8 <= Wa(r, t) * 8); r++);
|
|
8046
|
+
if (r > 40) throw new Ra();
|
|
8047
|
+
let i = Xa(Ya(n, r, t), r, t), a = new Za(r * 4 + 17);
|
|
8048
|
+
Qa(a, r), to(a, i);
|
|
7961
8049
|
let o = 0, s = Infinity;
|
|
7962
8050
|
for (let e = 0; e < 8; e++) {
|
|
7963
|
-
|
|
7964
|
-
let n =
|
|
7965
|
-
n < s && (s = n, o = e),
|
|
8051
|
+
ro(a, e), $a(a, t, e);
|
|
8052
|
+
let n = ao(a.modules);
|
|
8053
|
+
n < s && (s = n, o = e), ro(a, e);
|
|
7966
8054
|
}
|
|
7967
|
-
return
|
|
8055
|
+
return ro(a, o), $a(a, t, o), {
|
|
7968
8056
|
size: a.size,
|
|
7969
8057
|
version: r,
|
|
7970
8058
|
modules: a.modules
|
|
@@ -7972,13 +8060,13 @@ function Za(e, t = "M") {
|
|
|
7972
8060
|
}
|
|
7973
8061
|
//#endregion
|
|
7974
8062
|
//#region src/components/ui/QrCode.tsx
|
|
7975
|
-
function
|
|
8063
|
+
function so({ value: e, errorCorrection: t = "M", size: n = 160, margin: r = 4, "aria-label": i = "QR code", fallback: a = null, className: o }) {
|
|
7976
8064
|
let s = d(() => {
|
|
7977
8065
|
if (!e) return null;
|
|
7978
8066
|
try {
|
|
7979
|
-
return
|
|
8067
|
+
return oo(e, t);
|
|
7980
8068
|
} catch (e) {
|
|
7981
|
-
if (e instanceof
|
|
8069
|
+
if (e instanceof Ra) return "too-long";
|
|
7982
8070
|
throw e;
|
|
7983
8071
|
}
|
|
7984
8072
|
}, [e, t]);
|
|
@@ -8012,7 +8100,7 @@ function Qa({ value: e, errorCorrection: t = "M", size: n = 160, margin: r = 4,
|
|
|
8012
8100
|
}
|
|
8013
8101
|
//#endregion
|
|
8014
8102
|
//#region src/components/ui/SearchInput.tsx
|
|
8015
|
-
function
|
|
8103
|
+
function co({ value: e, onChange: t, placeholder: n = "Search...", className: r }) {
|
|
8016
8104
|
return /* @__PURE__ */ g("div", {
|
|
8017
8105
|
className: V("relative", r),
|
|
8018
8106
|
children: [/* @__PURE__ */ h(z, { className: "text-text-tertiary absolute top-1/2 left-2 h-3.5 w-3.5 -translate-y-1/2" }), /* @__PURE__ */ h("input", {
|
|
@@ -8026,7 +8114,7 @@ function $a({ value: e, onChange: t, placeholder: n = "Search...", className: r
|
|
|
8026
8114
|
}
|
|
8027
8115
|
//#endregion
|
|
8028
8116
|
//#region src/components/ui/Select.tsx
|
|
8029
|
-
var
|
|
8117
|
+
var lo = i(({ label: e, error: t, options: n, className: r, id: i, ...a }, o) => {
|
|
8030
8118
|
let s = i || e?.toLowerCase().replace(/\s+/g, "-");
|
|
8031
8119
|
return /* @__PURE__ */ g("div", {
|
|
8032
8120
|
className: "flex flex-col gap-1.5",
|
|
@@ -8055,10 +8143,10 @@ var eo = i(({ label: e, error: t, options: n, className: r, id: i, ...a }, o) =>
|
|
|
8055
8143
|
})]
|
|
8056
8144
|
});
|
|
8057
8145
|
});
|
|
8058
|
-
|
|
8146
|
+
lo.displayName = "Select";
|
|
8059
8147
|
//#endregion
|
|
8060
8148
|
//#region src/components/ui/SettingRow.tsx
|
|
8061
|
-
function
|
|
8149
|
+
function uo({ label: e, description: t, action: n, className: r }) {
|
|
8062
8150
|
return /* @__PURE__ */ g("div", {
|
|
8063
8151
|
className: V("border-border flex items-center justify-between border-b py-3", r),
|
|
8064
8152
|
children: [/* @__PURE__ */ g("div", {
|
|
@@ -8078,7 +8166,7 @@ function to({ label: e, description: t, action: n, className: r }) {
|
|
|
8078
8166
|
}
|
|
8079
8167
|
//#endregion
|
|
8080
8168
|
//#region src/components/ui/SideSheet.tsx
|
|
8081
|
-
function
|
|
8169
|
+
function fo({ open: e, onClose: t, title: n, children: r, footer: i, side: a = "right", widthClassName: o = "w-[360px]", className: s, contentClassName: l }) {
|
|
8082
8170
|
let u = f(null);
|
|
8083
8171
|
return ft(u, e), c(() => {
|
|
8084
8172
|
if (!e) return;
|
|
@@ -8089,86 +8177,79 @@ function no({ open: e, onClose: t, title: n, children: r, footer: i, side: a = "
|
|
|
8089
8177
|
document.removeEventListener("keydown", n), document.body.style.overflow = "";
|
|
8090
8178
|
};
|
|
8091
8179
|
}, [e, t]), e ? ue(/* @__PURE__ */ g("div", {
|
|
8092
|
-
className: "fixed inset-0 z-50
|
|
8093
|
-
children: [
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
/* @__PURE__ */
|
|
8107
|
-
className: "
|
|
8108
|
-
children:
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
i
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
]
|
|
8127
|
-
}),
|
|
8128
|
-
a === "left" && /* @__PURE__ */ h("div", {
|
|
8129
|
-
className: "bg-bg-overlay animate-fade-in flex-1",
|
|
8130
|
-
onClick: t
|
|
8131
|
-
})
|
|
8132
|
-
]
|
|
8180
|
+
className: "fixed inset-0 z-50",
|
|
8181
|
+
children: [/* @__PURE__ */ h("div", {
|
|
8182
|
+
className: "bg-bg-overlay animate-fade-in absolute inset-0",
|
|
8183
|
+
onClick: t
|
|
8184
|
+
}), /* @__PURE__ */ g("div", {
|
|
8185
|
+
ref: u,
|
|
8186
|
+
className: V("bg-bg-secondary border-border absolute inset-y-0 flex flex-col shadow-lg", o, a === "right" ? "animate-slide-in-right right-0 border-l" : "animate-slide-in-left left-0 border-r", s),
|
|
8187
|
+
style: { maxWidth: "calc(100vw - 2rem)" },
|
|
8188
|
+
role: "dialog",
|
|
8189
|
+
"aria-modal": "true",
|
|
8190
|
+
"aria-label": typeof n == "string" ? n : "Panel",
|
|
8191
|
+
children: [
|
|
8192
|
+
/* @__PURE__ */ g("div", {
|
|
8193
|
+
className: "border-border flex h-10 shrink-0 items-center justify-between border-b px-3",
|
|
8194
|
+
children: [n && /* @__PURE__ */ h("h3", {
|
|
8195
|
+
className: "text-text-primary truncate text-xs font-semibold",
|
|
8196
|
+
children: n
|
|
8197
|
+
}), /* @__PURE__ */ h("button", {
|
|
8198
|
+
onClick: t,
|
|
8199
|
+
className: "text-text-tertiary hover:text-text-primary hover:bg-bg-hover ml-auto flex h-6 w-6 cursor-pointer items-center justify-center rounded",
|
|
8200
|
+
"aria-label": "Close",
|
|
8201
|
+
children: /* @__PURE__ */ h(B, { className: "h-3.5 w-3.5" })
|
|
8202
|
+
})]
|
|
8203
|
+
}),
|
|
8204
|
+
/* @__PURE__ */ h("div", {
|
|
8205
|
+
className: V("flex-1 overflow-y-auto p-3", l),
|
|
8206
|
+
children: r
|
|
8207
|
+
}),
|
|
8208
|
+
i && /* @__PURE__ */ h("div", {
|
|
8209
|
+
className: "border-border flex gap-2 border-t p-3",
|
|
8210
|
+
children: i
|
|
8211
|
+
})
|
|
8212
|
+
]
|
|
8213
|
+
})]
|
|
8133
8214
|
}), document.body) : null;
|
|
8134
8215
|
}
|
|
8135
8216
|
//#endregion
|
|
8136
8217
|
//#region src/components/ui/SplitPaneLayout.tsx
|
|
8137
|
-
function
|
|
8218
|
+
function po({ children: e, direction: t = "row", className: n }) {
|
|
8138
8219
|
return /* @__PURE__ */ h("div", {
|
|
8139
8220
|
className: V("-m-4 md:-m-6", "flex h-[calc(100vh-var(--topbar-height)-var(--bottomnav-height))] gap-0 md:h-[calc(100vh-var(--topbar-height))]", t === "column" && "flex-col", n),
|
|
8140
8221
|
children: e
|
|
8141
8222
|
});
|
|
8142
8223
|
}
|
|
8143
|
-
function
|
|
8224
|
+
function mo({ children: e, className: t }) {
|
|
8144
8225
|
return /* @__PURE__ */ h("div", {
|
|
8145
8226
|
className: V("flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden", t),
|
|
8146
8227
|
children: e
|
|
8147
8228
|
});
|
|
8148
8229
|
}
|
|
8149
|
-
var
|
|
8230
|
+
var ho = Object.assign(po, { Main: mo }), go = {
|
|
8150
8231
|
active: "bg-green",
|
|
8151
8232
|
inactive: "bg-text-tertiary",
|
|
8152
8233
|
pending: "bg-yellow animate-pulse-subtle",
|
|
8153
8234
|
error: "bg-red"
|
|
8154
|
-
},
|
|
8235
|
+
}, _o = {
|
|
8155
8236
|
active: "text-green",
|
|
8156
8237
|
inactive: "text-text-tertiary",
|
|
8157
8238
|
pending: "text-yellow",
|
|
8158
8239
|
error: "text-red"
|
|
8159
8240
|
};
|
|
8160
|
-
function
|
|
8241
|
+
function vo({ status: e, label: t, className: n }) {
|
|
8161
8242
|
return /* @__PURE__ */ g("span", {
|
|
8162
8243
|
className: V("inline-flex items-center gap-1.5", n),
|
|
8163
|
-
children: [/* @__PURE__ */ h("span", { className: V("h-2 w-2 rounded-full",
|
|
8164
|
-
className: V("text-xs",
|
|
8244
|
+
children: [/* @__PURE__ */ h("span", { className: V("h-2 w-2 rounded-full", go[e]) }), t && /* @__PURE__ */ h("span", {
|
|
8245
|
+
className: V("text-xs", _o[e]),
|
|
8165
8246
|
children: t
|
|
8166
8247
|
})]
|
|
8167
8248
|
});
|
|
8168
8249
|
}
|
|
8169
8250
|
//#endregion
|
|
8170
8251
|
//#region src/components/ui/StepProgress.tsx
|
|
8171
|
-
function
|
|
8252
|
+
function yo({ steps: e, currentStep: t, className: n }) {
|
|
8172
8253
|
return /* @__PURE__ */ h("div", {
|
|
8173
8254
|
className: V("flex items-center justify-between", n),
|
|
8174
8255
|
children: e.map((n, r) => /* @__PURE__ */ g("div", {
|
|
@@ -8195,7 +8276,7 @@ function lo({ steps: e, currentStep: t, className: n }) {
|
|
|
8195
8276
|
}
|
|
8196
8277
|
//#endregion
|
|
8197
8278
|
//#region src/components/ui/Tabs.tsx
|
|
8198
|
-
function
|
|
8279
|
+
function bo({ tabs: e, defaultTab: t, value: n, onChange: r, className: i }) {
|
|
8199
8280
|
let [a, o] = p(t || e[0]?.key), s = n ?? a, c = e.some((e) => e.key === s) ? s : e[0]?.key, u = e.find((e) => e.key === c);
|
|
8200
8281
|
function d(e) {
|
|
8201
8282
|
n === void 0 && o(e), r?.(e);
|
|
@@ -8233,7 +8314,7 @@ function uo({ tabs: e, defaultTab: t, value: n, onChange: r, className: i }) {
|
|
|
8233
8314
|
}
|
|
8234
8315
|
//#endregion
|
|
8235
8316
|
//#region src/components/ui/Textarea.tsx
|
|
8236
|
-
var
|
|
8317
|
+
var xo = i(({ label: e, error: t, showCount: n, maxLength: r, value: i, className: a, id: o, ...s }, c) => {
|
|
8237
8318
|
let l = o || e?.toLowerCase().replace(/\s+/g, "-"), u = typeof i == "string" ? i.length : 0;
|
|
8238
8319
|
return /* @__PURE__ */ g("div", {
|
|
8239
8320
|
className: "flex flex-col gap-1.5",
|
|
@@ -8268,10 +8349,10 @@ var fo = i(({ label: e, error: t, showCount: n, maxLength: r, value: i, classNam
|
|
|
8268
8349
|
]
|
|
8269
8350
|
});
|
|
8270
8351
|
});
|
|
8271
|
-
|
|
8352
|
+
xo.displayName = "Textarea";
|
|
8272
8353
|
//#endregion
|
|
8273
8354
|
//#region src/components/ui/TextInput.tsx
|
|
8274
|
-
var
|
|
8355
|
+
var So = i(({ label: e, error: t, icon: n, className: r, id: i, readOnly: a, "aria-describedby": o, ...s }, c) => {
|
|
8275
8356
|
let l = i || e?.toLowerCase().replace(/\s+/g, "-"), u = t && l ? `${l}-error` : void 0, d = [o, u].filter(Boolean).join(" ");
|
|
8276
8357
|
return /* @__PURE__ */ g("div", {
|
|
8277
8358
|
className: "flex flex-col gap-1.5",
|
|
@@ -8302,10 +8383,10 @@ var po = i(({ label: e, error: t, icon: n, className: r, id: i, readOnly: a, "ar
|
|
|
8302
8383
|
})]
|
|
8303
8384
|
});
|
|
8304
8385
|
});
|
|
8305
|
-
|
|
8386
|
+
So.displayName = "TextInput";
|
|
8306
8387
|
//#endregion
|
|
8307
8388
|
//#region src/components/ui/Timeline.tsx
|
|
8308
|
-
function
|
|
8389
|
+
function Co({ items: e, className: t }) {
|
|
8309
8390
|
return /* @__PURE__ */ h("div", {
|
|
8310
8391
|
className: V("space-y-0", t),
|
|
8311
8392
|
children: e.map((t, n) => /* @__PURE__ */ g("div", {
|
|
@@ -8328,16 +8409,16 @@ function mo({ items: e, className: t }) {
|
|
|
8328
8409
|
}
|
|
8329
8410
|
//#endregion
|
|
8330
8411
|
//#region src/components/ui/Tooltip.tsx
|
|
8331
|
-
var
|
|
8412
|
+
var wo = {
|
|
8332
8413
|
top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
|
|
8333
8414
|
bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
|
|
8334
8415
|
left: "right-full top-1/2 -translate-y-1/2 mr-2",
|
|
8335
8416
|
right: "left-full top-1/2 -translate-y-1/2 ml-2"
|
|
8336
8417
|
};
|
|
8337
|
-
function
|
|
8418
|
+
function To(e, t) {
|
|
8338
8419
|
return e ? `${e} ${t}` : t;
|
|
8339
8420
|
}
|
|
8340
|
-
function
|
|
8421
|
+
function Eo({ content: e, placement: t = "top", children: r }) {
|
|
8341
8422
|
let [i, o] = p(!1), s = l();
|
|
8342
8423
|
return /* @__PURE__ */ g("div", {
|
|
8343
8424
|
className: "relative inline-flex",
|
|
@@ -8345,9 +8426,9 @@ function _o({ content: e, placement: t = "top", children: r }) {
|
|
|
8345
8426
|
onMouseLeave: () => o(!1),
|
|
8346
8427
|
onFocus: () => o(!0),
|
|
8347
8428
|
onBlur: () => o(!1),
|
|
8348
|
-
children: [a(r) ? n(r, { "aria-describedby":
|
|
8429
|
+
children: [a(r) ? n(r, { "aria-describedby": To(r.props["aria-describedby"], s) }) : r, i && /* @__PURE__ */ h("div", {
|
|
8349
8430
|
id: s,
|
|
8350
|
-
className: V("text-2xs absolute z-50 px-2 py-1 font-medium whitespace-nowrap", "bg-bg-tertiary text-text-primary border-border rounded border shadow-md", "animate-fade-in pointer-events-none",
|
|
8431
|
+
className: V("text-2xs absolute z-50 px-2 py-1 font-medium whitespace-nowrap", "bg-bg-tertiary text-text-primary border-border rounded border shadow-md", "animate-fade-in pointer-events-none", wo[t]),
|
|
8351
8432
|
role: "tooltip",
|
|
8352
8433
|
children: e
|
|
8353
8434
|
})]
|
|
@@ -8355,7 +8436,7 @@ function _o({ content: e, placement: t = "top", children: r }) {
|
|
|
8355
8436
|
}
|
|
8356
8437
|
//#endregion
|
|
8357
8438
|
//#region src/components/ui/Toolbar.tsx
|
|
8358
|
-
function
|
|
8439
|
+
function Do({ start: e, end: t, children: n, className: r, startClassName: i, endClassName: a }) {
|
|
8359
8440
|
return /* @__PURE__ */ g("div", {
|
|
8360
8441
|
className: V("flex items-center justify-between gap-3", r),
|
|
8361
8442
|
children: [/* @__PURE__ */ h("div", {
|
|
@@ -8369,7 +8450,7 @@ function vo({ start: e, end: t, children: n, className: r, startClassName: i, en
|
|
|
8369
8450
|
}
|
|
8370
8451
|
//#endregion
|
|
8371
8452
|
//#region src/components/ui/UploadDropzone.tsx
|
|
8372
|
-
function
|
|
8453
|
+
function Oo({ title: e = "Drag and drop files here, or click to browse", description: t, icon: n, accept: r, multiple: i, disabled: a, onChange: o, className: s }) {
|
|
8373
8454
|
return /* @__PURE__ */ g("label", {
|
|
8374
8455
|
className: V("border-border hover:border-border-strong block rounded-md border-2 border-dashed p-8 text-center transition-colors duration-[100ms]", a ? "cursor-not-allowed opacity-60" : "cursor-pointer hover:bg-bg-hover", s),
|
|
8375
8456
|
children: [
|
|
@@ -8398,15 +8479,15 @@ function yo({ title: e = "Drag and drop files here, or click to browse", descrip
|
|
|
8398
8479
|
}
|
|
8399
8480
|
//#endregion
|
|
8400
8481
|
//#region src/providers/ThemeContext.ts
|
|
8401
|
-
var
|
|
8482
|
+
var ko = r({ theme: "dark" });
|
|
8402
8483
|
//#endregion
|
|
8403
8484
|
//#region src/hooks/useTheme.ts
|
|
8404
|
-
function
|
|
8405
|
-
return s(
|
|
8485
|
+
function Ao() {
|
|
8486
|
+
return s(ko);
|
|
8406
8487
|
}
|
|
8407
8488
|
//#endregion
|
|
8408
8489
|
//#region src/lib/formatDate.ts
|
|
8409
|
-
var
|
|
8490
|
+
var jo = [
|
|
8410
8491
|
"Jan",
|
|
8411
8492
|
"Feb",
|
|
8412
8493
|
"Mar",
|
|
@@ -8420,21 +8501,21 @@ var So = [
|
|
|
8420
8501
|
"Nov",
|
|
8421
8502
|
"Dec"
|
|
8422
8503
|
];
|
|
8423
|
-
function
|
|
8504
|
+
function Mo(e) {
|
|
8424
8505
|
return (/* @__PURE__ */ new Date(e + "T00:00:00")).toLocaleDateString("en-US", {
|
|
8425
8506
|
month: "short",
|
|
8426
8507
|
day: "numeric",
|
|
8427
8508
|
year: "numeric"
|
|
8428
8509
|
});
|
|
8429
8510
|
}
|
|
8430
|
-
function
|
|
8511
|
+
function No(e) {
|
|
8431
8512
|
return (/* @__PURE__ */ new Date(e + "T00:00:00")).toLocaleDateString("en-US", {
|
|
8432
8513
|
month: "long",
|
|
8433
8514
|
day: "numeric",
|
|
8434
8515
|
year: "numeric"
|
|
8435
8516
|
});
|
|
8436
8517
|
}
|
|
8437
|
-
function
|
|
8518
|
+
function Po(e, t = /* @__PURE__ */ new Date()) {
|
|
8438
8519
|
let n = t.getTime() - e.getTime(), r = Math.floor(n / 1e3);
|
|
8439
8520
|
if (r < 60) return "just now";
|
|
8440
8521
|
let i = Math.floor(r / 60);
|
|
@@ -8442,18 +8523,18 @@ function To(e, t = /* @__PURE__ */ new Date()) {
|
|
|
8442
8523
|
let a = Math.floor(i / 60);
|
|
8443
8524
|
if (a < 24) return `${a}h ago`;
|
|
8444
8525
|
if (Math.floor(a / 24) === 1) return "yesterday";
|
|
8445
|
-
let o = `${
|
|
8526
|
+
let o = `${jo[e.getMonth()]} ${e.getDate()}`;
|
|
8446
8527
|
return e.getFullYear() === t.getFullYear() ? o : `${o}, ${e.getFullYear()}`;
|
|
8447
8528
|
}
|
|
8448
8529
|
//#endregion
|
|
8449
8530
|
//#region src/providers/SettingsProvider.tsx
|
|
8450
|
-
var
|
|
8531
|
+
var Fo = {
|
|
8451
8532
|
"archivo-expanded": "\"Archivo\", \"Arial Black\", \"Avenir Next Condensed\", \"HelveticaNeue-CondensedBold\", system-ui, sans-serif",
|
|
8452
8533
|
inter: "\"Inter\", system-ui, -apple-system, BlinkMacSystemFont, sans-serif",
|
|
8453
8534
|
"jetbrains-mono": "\"JetBrains Mono\", Menlo, Monaco, Consolas, monospace",
|
|
8454
8535
|
"pt-serif": "\"PT Serif\", Georgia, ui-serif, Cambria, \"Times New Roman\", Times, serif",
|
|
8455
8536
|
system: "system-ui, -apple-system, BlinkMacSystemFont, sans-serif"
|
|
8456
|
-
},
|
|
8537
|
+
}, Io = {
|
|
8457
8538
|
purple: {
|
|
8458
8539
|
base: "#7C5CFC",
|
|
8459
8540
|
hover: "#6B4AEB",
|
|
@@ -8510,43 +8591,43 @@ var Eo = {
|
|
|
8510
8591
|
muted: "rgba(99,102,241,0.15)",
|
|
8511
8592
|
subtle: "rgba(99,102,241,0.08)"
|
|
8512
8593
|
}
|
|
8513
|
-
},
|
|
8594
|
+
}, Lo = "leonardaustin-ui-settings", Ro = new Set(Object.keys(Io)), zo = new Set(Object.keys(Ot)), Bo = new Set(Object.keys(Fo)), Vo = new Set([
|
|
8514
8595
|
"light",
|
|
8515
8596
|
"dark",
|
|
8516
8597
|
"system"
|
|
8517
8598
|
]);
|
|
8518
|
-
function
|
|
8599
|
+
function Ho(e, t, n, r) {
|
|
8519
8600
|
return typeof e != "number" || !isFinite(e) ? r : Math.min(n, Math.max(t, e));
|
|
8520
8601
|
}
|
|
8521
|
-
function
|
|
8602
|
+
function Uo(e) {
|
|
8522
8603
|
let t = {};
|
|
8523
|
-
if (
|
|
8604
|
+
if (Ro.has(e.accentColor) && (t.accentColor = e.accentColor), Vo.has(e.colorMode) && (t.colorMode = e.colorMode), zo.has(e.preferredDarkTheme) && !Ct(e.preferredDarkTheme) && (t.preferredDarkTheme = e.preferredDarkTheme), zo.has(e.preferredLightTheme) && Ct(e.preferredLightTheme) && (t.preferredLightTheme = e.preferredLightTheme), typeof e.sidebarCollapsed == "boolean" && (t.sidebarCollapsed = e.sidebarCollapsed), typeof e.reducedMotion == "boolean" && (t.reducedMotion = e.reducedMotion), typeof e.sidebarWidth == "number" && (t.sidebarWidth = Ho(e.sidebarWidth, 160, 400, 220)), e.themeOverrides && typeof e.themeOverrides == "object") {
|
|
8524
8605
|
let n = {};
|
|
8525
8606
|
for (let [t, r] of Object.entries(e.themeOverrides)) {
|
|
8526
|
-
if (!
|
|
8607
|
+
if (!zo.has(t) || !r || typeof r != "object") continue;
|
|
8527
8608
|
let e = r, i = Ot[t];
|
|
8528
8609
|
n[t] = {
|
|
8529
|
-
uiFont:
|
|
8530
|
-
headingFont:
|
|
8531
|
-
proseFont:
|
|
8532
|
-
controlFont:
|
|
8533
|
-
labelFont:
|
|
8534
|
-
navigationFont:
|
|
8535
|
-
dataFont:
|
|
8536
|
-
codeFont:
|
|
8537
|
-
fontSize:
|
|
8538
|
-
borderRadius:
|
|
8539
|
-
borderWidth:
|
|
8540
|
-
tracking:
|
|
8541
|
-
lineHeight:
|
|
8542
|
-
density:
|
|
8610
|
+
uiFont: Bo.has(e.uiFont) ? e.uiFont : i.uiFont,
|
|
8611
|
+
headingFont: Bo.has(e.headingFont) ? e.headingFont : i.headingFont,
|
|
8612
|
+
proseFont: Bo.has(e.proseFont) ? e.proseFont : i.proseFont,
|
|
8613
|
+
controlFont: Bo.has(e.controlFont) ? e.controlFont : i.controlFont,
|
|
8614
|
+
labelFont: Bo.has(e.labelFont) ? e.labelFont : i.labelFont,
|
|
8615
|
+
navigationFont: Bo.has(e.navigationFont) ? e.navigationFont : i.navigationFont,
|
|
8616
|
+
dataFont: Bo.has(e.dataFont) ? e.dataFont : i.dataFont,
|
|
8617
|
+
codeFont: Bo.has(e.codeFont) ? e.codeFont : i.codeFont,
|
|
8618
|
+
fontSize: Ho(e.fontSize, 11, 18, i.fontSize),
|
|
8619
|
+
borderRadius: Ho(e.borderRadius, 0, 16, i.borderRadius),
|
|
8620
|
+
borderWidth: Ho(e.borderWidth, 1, 3, i.borderWidth),
|
|
8621
|
+
tracking: Ho(e.tracking, 0, .3, i.tracking),
|
|
8622
|
+
lineHeight: Ho(e.lineHeight, 1.2, 2, i.lineHeight),
|
|
8623
|
+
density: Ho(e.density, .18, .32, i.density)
|
|
8543
8624
|
};
|
|
8544
8625
|
}
|
|
8545
8626
|
t.themeOverrides = n;
|
|
8546
8627
|
}
|
|
8547
8628
|
return t;
|
|
8548
8629
|
}
|
|
8549
|
-
var
|
|
8630
|
+
var Wo = {
|
|
8550
8631
|
accentColor: "purple",
|
|
8551
8632
|
sidebarCollapsed: !1,
|
|
8552
8633
|
sidebarWidth: 220,
|
|
@@ -8556,31 +8637,31 @@ var Fo = {
|
|
|
8556
8637
|
preferredLightTheme: "light",
|
|
8557
8638
|
themeOverrides: {}
|
|
8558
8639
|
};
|
|
8559
|
-
function
|
|
8560
|
-
if (typeof localStorage > "u") return
|
|
8640
|
+
function Go(e) {
|
|
8641
|
+
if (typeof localStorage > "u") return Wo;
|
|
8561
8642
|
try {
|
|
8562
8643
|
let t = localStorage.getItem(e);
|
|
8563
8644
|
if (t) return {
|
|
8564
|
-
...
|
|
8565
|
-
...
|
|
8645
|
+
...Wo,
|
|
8646
|
+
...Uo(JSON.parse(t))
|
|
8566
8647
|
};
|
|
8567
8648
|
} catch (e) {
|
|
8568
8649
|
console.warn("[SettingsProvider] Failed to load settings:", e);
|
|
8569
8650
|
}
|
|
8570
|
-
return
|
|
8651
|
+
return Wo;
|
|
8571
8652
|
}
|
|
8572
|
-
function
|
|
8653
|
+
function Ko(e, t) {
|
|
8573
8654
|
let n = Ot[e] ?? Ot.dark;
|
|
8574
8655
|
return t[e] ? {
|
|
8575
8656
|
...n,
|
|
8576
8657
|
...t[e]
|
|
8577
8658
|
} : n;
|
|
8578
8659
|
}
|
|
8579
|
-
function
|
|
8660
|
+
function qo(e, t) {
|
|
8580
8661
|
return e.uiFont === t.uiFont && e.headingFont === t.headingFont && e.proseFont === t.proseFont && e.controlFont === t.controlFont && e.labelFont === t.labelFont && e.navigationFont === t.navigationFont && e.dataFont === t.dataFont && e.codeFont === t.codeFont && e.fontSize === t.fontSize && e.borderRadius === t.borderRadius && e.borderWidth === t.borderWidth && e.tracking === t.tracking && e.lineHeight === t.lineHeight && e.density === t.density;
|
|
8581
8662
|
}
|
|
8582
|
-
function
|
|
8583
|
-
let [n, r] = p(() =>
|
|
8663
|
+
function Jo({ children: e, storageKey: t = Lo }) {
|
|
8664
|
+
let [n, r] = p(() => Go(t)), [i, a] = p(() => typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").matches);
|
|
8584
8665
|
c(() => {
|
|
8585
8666
|
if (typeof window > "u") return;
|
|
8586
8667
|
let e = window.matchMedia("(prefers-color-scheme: dark)"), t = (e) => a(e.matches);
|
|
@@ -8591,9 +8672,9 @@ function zo({ children: e, storageKey: t = Oo }) {
|
|
|
8591
8672
|
n.preferredDarkTheme,
|
|
8592
8673
|
n.preferredLightTheme,
|
|
8593
8674
|
i
|
|
8594
|
-
]), [l, u] = p(() =>
|
|
8675
|
+
]), [l, u] = p(() => Ko(s, n.themeOverrides));
|
|
8595
8676
|
c(() => {
|
|
8596
|
-
u(
|
|
8677
|
+
u(Ko(s, n.themeOverrides));
|
|
8597
8678
|
}, [s]);
|
|
8598
8679
|
let f = o((e) => {
|
|
8599
8680
|
r((n) => {
|
|
@@ -8610,15 +8691,15 @@ function zo({ children: e, storageKey: t = Oo }) {
|
|
|
8610
8691
|
});
|
|
8611
8692
|
}, [t]);
|
|
8612
8693
|
c(() => {
|
|
8613
|
-
let e = document.documentElement, t =
|
|
8694
|
+
let e = document.documentElement, t = Io[n.accentColor];
|
|
8614
8695
|
e.style.setProperty("--accent", t.base), e.style.setProperty("--accent-hover", t.hover), e.style.setProperty("--accent-active", t.active), e.style.setProperty("--accent-muted", t.muted), e.style.setProperty("--accent-subtle", t.subtle);
|
|
8615
8696
|
}, [n.accentColor]), c(() => {
|
|
8616
8697
|
document.documentElement.classList.toggle("reduced-motion", n.reducedMotion);
|
|
8617
8698
|
}, [n.reducedMotion]), c(() => {
|
|
8618
8699
|
let e = document.documentElement, t = l.borderRadius;
|
|
8619
|
-
e.style.fontSize = `${l.fontSize / 13 * 100}%`, e.style.setProperty("--font-ui",
|
|
8700
|
+
e.style.fontSize = `${l.fontSize / 13 * 100}%`, e.style.setProperty("--font-ui", Fo[l.uiFont]), e.style.setProperty("--font-heading", Fo[l.headingFont]), e.style.setProperty("--font-prose", Fo[l.proseFont]), e.style.setProperty("--font-control", Fo[l.controlFont]), e.style.setProperty("--font-label", Fo[l.labelFont]), e.style.setProperty("--font-navigation", Fo[l.navigationFont]), e.style.setProperty("--font-data", Fo[l.dataFont]), e.style.setProperty("--font-code", Fo[l.codeFont]), e.style.setProperty("--ui-radius", t === 0 ? "0" : `${Math.round(t * 2 / 3)}px`), e.style.setProperty("--ui-radius-md", t === 0 ? "0" : `${t}px`), e.style.setProperty("--ui-radius-lg", t === 0 ? "0" : `${Math.round(t * 4 / 3)}px`), e.style.setProperty("--ui-radius-xl", t === 0 ? "0" : `${t * 2}px`), e.style.setProperty("--ui-border-width", `${l.borderWidth}px`), e.style.setProperty("--ui-tracking", `${l.tracking}em`), e.style.setProperty("--ui-line-height", String(l.lineHeight)), e.style.setProperty("--ui-density", `${l.density}rem`);
|
|
8620
8701
|
}, [l]);
|
|
8621
|
-
let m = d(() =>
|
|
8702
|
+
let m = d(() => Ko(s, n.themeOverrides), [s, n.themeOverrides]), g = s in n.themeOverrides, _ = !qo(l, m), v = o(() => {
|
|
8622
8703
|
f({ themeOverrides: {
|
|
8623
8704
|
...n.themeOverrides,
|
|
8624
8705
|
[s]: { ...l }
|
|
@@ -8742,7 +8823,7 @@ function zo({ children: e, storageKey: t = Oo }) {
|
|
|
8742
8823
|
}
|
|
8743
8824
|
//#endregion
|
|
8744
8825
|
//#region src/providers/ThemeProvider.tsx
|
|
8745
|
-
var
|
|
8826
|
+
var Yo = {
|
|
8746
8827
|
dark: "",
|
|
8747
8828
|
light: "theme-light",
|
|
8748
8829
|
monokai: "theme-monokai",
|
|
@@ -8751,19 +8832,19 @@ var Bo = {
|
|
|
8751
8832
|
cyberBrutalLight: "theme-cyber-brutal-light",
|
|
8752
8833
|
hashiTheme: "theme-hashi"
|
|
8753
8834
|
};
|
|
8754
|
-
function
|
|
8835
|
+
function Xo({ children: e }) {
|
|
8755
8836
|
let { resolvedTheme: t } = s(Mt);
|
|
8756
8837
|
return c(() => {
|
|
8757
8838
|
let e = document.documentElement;
|
|
8758
|
-
Object.values(
|
|
8839
|
+
Object.values(Yo).forEach((t) => {
|
|
8759
8840
|
t && e.classList.remove(t);
|
|
8760
8841
|
});
|
|
8761
|
-
let n =
|
|
8842
|
+
let n = Yo[t];
|
|
8762
8843
|
n && e.classList.add(n);
|
|
8763
|
-
}, [t]), /* @__PURE__ */ h(
|
|
8844
|
+
}, [t]), /* @__PURE__ */ h(ko.Provider, {
|
|
8764
8845
|
value: { theme: t },
|
|
8765
8846
|
children: e
|
|
8766
8847
|
});
|
|
8767
8848
|
}
|
|
8768
8849
|
//#endregion
|
|
8769
|
-
export { In as Alert, En as AppShell, He as AreaChart, Ln as AuthCard, Dn as AuthLayout, Rn as AuthorByline, Lt as Avatar, On as BackLink, Vn as Badge, Ge as BarChart, ut as BottomNav, tn as Breadcrumbs, un as Button, pt as COMMAND_PALETTE_EVENT, Ci as Calendar, Ai as CalendarGrid, ji as Card, kn as Checkbox, Li as CodeInput, jn as ColumnPicker, Ri as Combobox, vt as CommandPalette, mi as DEFAULT_CALENDAR_LABELS, mt as DEFAULT_COMMAND_PALETTE_SHORTCUT, zi as DangerZone, Vi as DatePicker, Gi as DateRangePicker, Zi as DateTimePicker, ta as DetailPanel,
|
|
8850
|
+
export { In as Alert, En as AppShell, He as AreaChart, Ln as AuthCard, Dn as AuthLayout, Rn as AuthorByline, Lt as Avatar, On as BackLink, Vn as Badge, Ge as BarChart, ut as BottomNav, tn as Breadcrumbs, un as Button, pt as COMMAND_PALETTE_EVENT, Ci as Calendar, Ai as CalendarGrid, ji as Card, kn as Checkbox, Li as CodeInput, jn as ColumnPicker, Ri as Combobox, vt as CommandPalette, mi as DEFAULT_CALENDAR_LABELS, mt as DEFAULT_COMMAND_PALETTE_SHORTCUT, zi as DangerZone, Vi as DatePicker, Gi as DateRangePicker, Zi as DateTimePicker, ta as DetailPanel, da as Dialog, fa as DialogActions, pa as DividerLabel, qe as DonutChart, ma as DropdownMenu, ha as EmptyState, ga as ErrorBoundary, An as FilterButton, _a as FilterDropdown, va as Kbd, ba as LoadingSpinner, xa as MetadataGrid, Sa as MetricCard, bt as MobileDrawer, Da as OAuthButton, Oa as PageHeader, ka as PageSection, Mn as Pagination, ja as PaginationBar, Ma as PasswordInput, Fa as PasswordRequirements, Ia as ProfileHeader, La as ProseContent, Ra as QrCapacityError, so as QrCode, Je as RadarChart, Ye as RadialBarChart, hi as RadioPill, Pn as ResourceTable, co as SearchInput, dn as SectionHeader, lo as Select, pn as SelectDropdown, uo as SettingRow, Mt as SettingsContext, Jo as SettingsProvider, fo as SideSheet, $t as Sidebar, mn as Slider, Xe as SparkLine, ho as SplitPaneLayout, rt as StackedBarChart, vo as StatusDot, yo as StepProgress, _n as THEME_MENU_EVENT, bo as Tabs, So as TextInput, xo as Textarea, ko as ThemeContext, bn as ThemeMenu, hn as ThemePreview, Xo as ThemeProvider, Co as Timeline, Bt as ToastProvider, gn as Toggle, Do as Toolbar, Eo as Tooltip, wn as TopBar, Oo as UploadDropzone, ot as VerticalBarChart, At as accentItems, Y as addDays, Kn as addMinutes, qn as addMonths, V as cn, Tt as darkThemes, Z as dateAtMinutes, Na as defaultPasswordRequirements, Zn as differenceInDays, oo as encodeQrCode, Er as expandAvailabilityRules, kt as fontOptions, No as formatDateLong, Mo as formatDateShort, hr as formatRangeTitle, Po as formatRelative, dr as formatTime, er as formatTimeOfDay, fr as formatTimeRange, tr as fromDateKey, Tr as getActiveResourceIds, sr as getViewRange, ar as getVisibleDays, ct as handleAppShellNavigate, Nr as isAllDayLike, st as isAppShellPathActive, Ct as isLightTheme, Xn as isSameDay, ir as isTimeGridView, br as layoutOverlaps, wt as lightThemes, gt as matchesCommandPaletteShortcut, Pa as meetsPasswordRequirements, X as minutesOfDay, lt as navigateToPath, ht as openCommandPalette, vn as openThemeMenu, $n as parseTime, gr as rangesOverlap, cr as shiftDate, rr as snapDate, nr as snapMinutes, Nn as sortRows, Gn as startOfDay, Yn as startOfMonth, Jn as startOfWeek, Ot as themeDefaults, xt as themeItems, Q as toDateKey, nn as useApplyTheme, jt as useDismiss, ft as useFocusTrap, Nt as useSettings, Ao as useTheme, zt as useToast };
|