@hanzo/dev 4.2.0 → 4.2.1
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/{BinaryViewer-CmFUK4zZ.js → BinaryViewer-BCDMNW2g.js} +19 -19
- package/dist/{ChatMarkdown-nvEI7iCv.js → ChatMarkdown-BUidXqSs.js} +2460 -2460
- package/dist/{DevicePanel-v5e3sEIf.js → DevicePanel-D-pksK3r.js} +532 -532
- package/dist/{DeviceStreamView-CCIfmbxH.js → DeviceStreamView-DsCoOzDV.js} +377 -377
- package/dist/{DiffCommentAnnotation-BPTN_2a6.js → DiffCommentAnnotation-2HD5qiyt.js} +227 -227
- package/dist/{DiffFileTree-B_br90vY.js → DiffFileTree-CuWvI5hS.js} +13 -13
- package/dist/{DiffPanel-V5R5TPuK.js → DiffPanel-Z2QVmBzu.js} +328 -328
- package/dist/{DiffWorkerPoolProvider-BwFR-Fc9.js → DiffWorkerPoolProvider-CEfiCIGR.js} +3 -3
- package/dist/{DocumentPages-VSn83vty.js → DocumentPages-glImt2JO.js} +3 -3
- package/dist/{ExpandedImageDialog-CAorLacL.js → ExpandedImageDialog-iqO3LiIj.js} +404 -404
- package/dist/{FileExplorerPane-CeHulcPz.js → FileExplorerPane-GwnRmXEh.js} +4 -4
- package/dist/{FilePreviewPanel-BVNLvWOc.js → FilePreviewPanel-CXWpTlfI.js} +1089 -1089
- package/dist/{FontFilePreview-Dj8Blcay.js → FontFilePreview-CDydHOXg.js} +2 -2
- package/dist/{FontViewer-CLDdwhSr.js → FontViewer-DDt9C5Cb.js} +5 -5
- package/dist/{HanzoConnectAccountPages-BEzYfu2l.js → HanzoConnectAccountPages-_sfrtw9j.js} +357 -357
- package/dist/{HanzoConnectSidebarSignIn-BhD6-Up5.js → HanzoConnectSidebarSignIn-coFQvyRw.js} +3 -3
- package/dist/{Icons-CvSmt8vD.js → Icons-CdegMw5l.js} +1 -1
- package/dist/{LargeTextViewer-DfFnYGCw.js → LargeTextViewer-D3RklYQB.js} +8 -8
- package/dist/{MermaidDiagram-CTolIzQD.js → MermaidDiagram-sVLnox7j.js} +8 -8
- package/dist/{MermaidFilePreview-CP2zP4FU.js → MermaidFilePreview-BmPdNxW5.js} +2 -2
- package/dist/{MermaidViewer-BDfYkS9E.js → MermaidViewer-BlKTevTF.js} +3 -3
- package/dist/{NotebookPreview-Cybs5uM0.js → NotebookPreview-C0gSEyeO.js} +10 -10
- package/dist/{OfficeFilePreview-7JsmSoKU.js → OfficeFilePreview-Ago_DWEt.js} +2 -2
- package/dist/{OfficeViewer-CJoojlJK.js → OfficeViewer-DBRqtLet.js} +10 -10
- package/dist/{OpenInPicker-BIMWUxBP.js → OpenInPicker-DD_h7VLv.js} +287 -287
- package/dist/{OpenXmlOfficeViewer-C24Kj8DM.js → OpenXmlOfficeViewer-B4dxjpba.js} +4 -4
- package/dist/{PdfViewer-Cf1iD759.js → PdfViewer-BanXvPmz.js} +16 -16
- package/dist/{PreviewFaviconIcon-zFOuzIxe.js → PreviewFaviconIcon-BwYKB-3e.js} +892 -892
- package/dist/{PreviewImage-oY5YnuTr.js → PreviewImage-6UU-M6_B.js} +3 -3
- package/dist/{PreviewImageContent-n6eLzY99.js → PreviewImageContent-D-00K-A9.js} +3 -3
- package/dist/{PreviewPanel-Bo4Lt02m.js → PreviewPanel-CiuHdDv8.js} +489 -489
- package/dist/{PreviewPanelShell-DhXLeN5j.js → PreviewPanelShell-Dezxjg0T.js} +71 -71
- package/dist/{ProjectIconPickerDialog-D0kFzt8f.js → ProjectIconPickerDialog-LomrzROv.js} +29 -29
- package/dist/{ProjectMonogram-D35xrrXQ.js → ProjectMonogram-D21--FQY.js} +1 -1
- package/dist/{ProviderAuthTerminal-DfsXnu7A.js → ProviderAuthTerminal-pQXIfodT.js} +3 -3
- package/dist/{PullRequestCodeTab-Dv_0kVad.js → PullRequestCodeTab-Cqfh5eN2.js} +476 -476
- package/dist/{PullRequestReviewAnnotation-LeuwO-iH.js → PullRequestReviewAnnotation-B4Lp8Ktf.js} +334 -334
- package/dist/{ReadOnlySourcePreview-D__IA5g1.js → ReadOnlySourcePreview-7xXUUySV.js} +5 -5
- package/dist/{RelativeTime-BMRprQS8.js → RelativeTime-B_yprjav.js} +2 -2
- package/dist/{RightPanelResizeHandle-BLbSz-gk.js → RightPanelResizeHandle-PumvYb9P.js} +2 -2
- package/dist/{ThemeEditorPanel-CUDdsRsE.js → ThemeEditorPanel-BmXXpaCI.js} +196 -196
- package/dist/{ThreadTerminalDrawer-BF3Ix0q_.js → ThreadTerminalDrawer-DCgE3ojz.js} +461 -461
- package/dist/{VirtualTablePreview-dajviAfu.js → VirtualTablePreview-mA6DOFwb.js} +1 -1
- package/dist/{anchoredCopyToast-DnUtg1n_.js → anchoredCopyToast-BVa_dlBU.js} +2 -2
- package/dist/{assetUrls-DkY7vXfM.js → assetUrls-D8lRk7Xd.js} +45 -45
- package/dist/{browserLinkTarget-CA46wnQC.js → browserLinkTarget-BbVlDQYx.js} +18 -18
- package/dist/builder/api/models.d.ts +2 -0
- package/dist/builder/api/models.js +6 -1
- package/dist/builder/api/sandbox.d.ts +2 -0
- package/dist/builder/api/sandbox.js +3 -1
- package/dist/builder/desk.d.ts +6 -0
- package/dist/builder/desk.js +79 -14
- package/dist/builder/mind.d.ts +5 -5
- package/dist/builder/mind.js +35 -14
- package/dist/builder/pane.d.ts +1 -1
- package/dist/builder/pane.js +1 -1
- package/dist/builder/panel.js +5 -5
- package/dist/builder/preview-fallback.d.ts +47 -0
- package/dist/builder/preview-fallback.js +341 -0
- package/dist/{changedFileKind-D6QYvIez.js → changedFileKind-DrjqPCpz.js} +5 -5
- package/dist/{collapsible-DFT41MdC.js → collapsible-CDT6JKbk.js} +1 -1
- package/dist/{color-picker-CshqBbpY.js → color-picker-kSVcH92L.js} +16 -16
- package/dist/core.js +1 -1
- package/dist/{decodeImagePreview-DnfFEjhw.js → decodeImagePreview-ZtWU3urU.js} +2 -2
- package/dist/{delimitedPreview-BiEpdYOj.js → delimitedPreview-DbbXcqOT.js} +1 -1
- package/dist/{dialog-DhQtWGRa.js → dialog-EmpqFZiK.js} +40 -40
- package/dist/{embed-c030vUqM.js → embed-CPWZKyIW.js} +36098 -35677
- package/dist/{empty-Bm5EzcG8.js → empty-ChM6gdzn.js} +1 -1
- package/dist/{errors-DrFQSJW3.js → errors-D8_Zn8KN.js} +2 -2
- package/dist/{fileContextMenu-BBo91omq.js → fileContextMenu-DW94DZj4.js} +54 -54
- package/dist/{fileExplorerLabel-AikEChiS.js → fileExplorerLabel-Cfz-3q1U.js} +507 -507
- package/dist/{fileSurfaceChrome-Cqkvn8RQ.js → fileSurfaceChrome-BDyKklTq.js} +26 -26
- package/dist/{hanzoWebAnalytics-CCxpTzcI.js → hanzoWebAnalytics-B1eETW-7.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/{input-group-DEJEuwc9.js → input-group-BZ_QN-y7.js} +1 -1
- package/dist/{keybindings-C5tK_GAk.js → keybindings-D0pBlT1k.js} +7812 -7806
- package/dist/keymap.js +1 -1
- package/dist/{lucideIconByName-DUaXKH0V.js → lucideIconByName-CXY44V8P.js} +6835 -6848
- package/dist/{mediaReference-Bt_mh-ag.js → mediaReference-3wc4ZfY8.js} +95 -95
- package/dist/mediaSource-jW5c7b4r.js +70 -0
- package/dist/{modelPickerVisibility-Jue3CLfc.js → modelPickerVisibility-DBTc5r1G.js} +1 -1
- package/dist/{network-BbwqRm8c.js → network-wuXD7-is.js} +1 -1
- package/dist/{popover-anNQdce7.js → popover-BAyP2Tdr.js} +1 -1
- package/dist/{presentation-D9mVPBHm.js → presentation-68y8EAuH.js} +299 -299
- package/dist/{previewFailureMessages-BKpsSGX5.js → previewFailureMessages-CFguipaK.js} +3 -3
- package/dist/query-BPk2W3QN.js +63 -0
- package/dist/{readBinaryPreview-BAQ4fFjm.js → readBinaryPreview-CjZdBNVR.js} +2 -2
- package/dist/{refresh-icon-BYx64to1.js → refresh-icon-Vo5ImiQL.js} +1 -1
- package/dist/{scroll-area-ChvX8uOh.js → scroll-area-CEoyjC7h.js} +1 -1
- package/dist/{select-DumYjny_.js → select-DLFnkZsI.js} +2 -2
- package/dist/{session-_kmiSv2A.js → session-Decc4Fo5.js} +1063 -1063
- package/dist/{skeleton-CJqwfMSF.js → skeleton-BOKpAZv6.js} +1 -1
- package/dist/{switch-COwevwaq.js → switch-DjpPjtQN.js} +2 -2
- package/dist/{themePalette-Dl_7omVL.js → themePalette-C-GtwwqV.js} +977 -977
- package/dist/{threadSearch-BHyWwcV3.js → threadSearch-CrtCof6n.js} +162 -162
- package/dist/{toggle-CEO6qTxB.js → toggle-B4F0EEtI.js} +1 -1
- package/dist/{toggle-group-BHovdMDl.js → toggle-group-l8hRPswr.js} +2 -2
- package/dist/{use-atom-command-ByoYq_K6.js → use-atom-command-XemtT1Gv.js} +1 -1
- package/dist/{useAriaLabelledBy-DPSISlnL.js → useAriaLabelledBy-CibvSz-b.js} +1 -1
- package/dist/{useFileMetadata-e7zsixVX.js → useFileMetadata-PesehDX0.js} +33 -33
- package/dist/{useFloatingRootContext-CJ9stHca.js → useFloatingRootContext-ppoGvqar.js} +1 -1
- package/dist/{useLiveRefresh-BkKJKXhH.js → useLiveRefresh-aHkPuz6N.js} +172 -172
- package/dist/{useNextRenderData-CyUmSAgz.js → useNextRenderData-CNhjWfP0.js} +1 -1
- package/dist/{useSettings-DYG9Dmro.js → useSettings-B_MtcTyD.js} +139 -139
- package/dist/{useTextFieldSpeech-COa9XcRx.js → useTextFieldSpeech-B1wCgLPO.js} +1404 -1404
- package/dist/{useTheme-D2ZM1gvV.js → useTheme-WlXpQRKG.js} +4 -4
- package/dist/{utils-515nQ17G.js → utils-DtKQl-D3.js} +6184 -6172
- package/dist/{wizard-i86ViMRc.js → wizard-DjD4UNew.js} +3 -3
- package/dist/{workspaceFocus-BV1_9KiH.js → workspaceFocus-MR1plm6A.js} +144 -144
- package/dist/{zap-e0OsRjBR.js → zap-iwsUKtvA.js} +30 -17
- package/package.json +1 -1
- package/dist/mediaSource-zI7JWid4.js +0 -70
- package/dist/query-BxrrBAp6.js +0 -63
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { c as e, n as t } from "./messages-yqmY7G5x.js";
|
|
2
|
-
import {
|
|
3
|
-
import { C as f, D as p, G as ee, Jt as m, K as h, O as g, W as _, _ as v, d as y, g as b, j as x, m as S, p as C, q as w, s as T, y as E } from "./themePalette-
|
|
4
|
-
import { a as D } from "./network-
|
|
2
|
+
import { C_ as n, Jr as r, S_ as i, b_ as a, ci as o, gr as s, hr as c, t as l, x_ as u, yr as d } from "./utils-DtKQl-D3.js";
|
|
3
|
+
import { C as f, D as p, G as ee, Jt as m, K as h, O as g, W as _, _ as v, d as y, g as b, j as x, m as S, p as C, q as w, s as T, y as E } from "./themePalette-C-GtwwqV.js";
|
|
4
|
+
import { a as D } from "./network-wuXD7-is.js";
|
|
5
5
|
import { i as te } from "./search-3oqTSaO6.js";
|
|
6
6
|
import { n as ne, t as O } from "./chevron-up-B5PN0DAN.js";
|
|
7
7
|
import { t as k } from "./mouse-pointer-2-DfAsE-c4.js";
|
|
8
8
|
import { t as A } from "./paintbrush-ebM0tdEx.js";
|
|
9
9
|
import { t as j } from "./plus-CewHlT33.js";
|
|
10
10
|
import { t as M } from "./x-Bjr9Dwvl.js";
|
|
11
|
-
import { i as N, o as P, t as F } from "./popover-
|
|
12
|
-
import "./errors-
|
|
13
|
-
import { n as re, t as ie } from "./toggle-group-
|
|
14
|
-
import { t as ae } from "./switch-
|
|
15
|
-
import { i as I, n as L, r as R, t as z } from "./color-picker-
|
|
11
|
+
import { i as N, o as P, t as F } from "./popover-BAyP2Tdr.js";
|
|
12
|
+
import "./errors-D8_Zn8KN.js";
|
|
13
|
+
import { n as re, t as ie } from "./toggle-group-l8hRPswr.js";
|
|
14
|
+
import { t as ae } from "./switch-DjpPjtQN.js";
|
|
15
|
+
import { i as I, n as L, r as R, t as z } from "./color-picker-kSVcH92L.js";
|
|
16
16
|
import { memo as oe, useEffect as B, useId as V, useRef as H, useState as U, useSyncExternalStore as W } from "react";
|
|
17
17
|
import { c as se } from "react/compiler-runtime";
|
|
18
18
|
import { Fragment as ce, jsx as G, jsxs as K } from "react/jsx-runtime";
|
|
@@ -87,43 +87,43 @@ function ve() {
|
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
function ye(e) {
|
|
90
|
-
let t = se(92), { label:
|
|
91
|
-
t[0] === i ?
|
|
92
|
-
let
|
|
93
|
-
t[2] ===
|
|
94
|
-
let [p, ee] = U(f), [m, h] = U(
|
|
95
|
-
t[4] ===
|
|
96
|
-
let [_, v] = U(g), [y, b] = U(!1), [x, S] = U(
|
|
90
|
+
let t = se(92), { label: r, value: i, committer: o, onChange: s } = e, c = n(), l;
|
|
91
|
+
t[0] === i ? l = t[1] : (l = me(i), t[0] = i, t[1] = l);
|
|
92
|
+
let u = l, d = pe(i), f;
|
|
93
|
+
t[2] === u ? f = t[3] : (f = () => R(u), t[2] = u, t[3] = f);
|
|
94
|
+
let [p, ee] = U(f), [m, h] = U(u), g;
|
|
95
|
+
t[4] === u ? g = t[5] : (g = () => _e(u), t[4] = u, t[5] = g);
|
|
96
|
+
let [_, v] = U(g), [y, b] = U(!1), [x, S] = U(u), C, w;
|
|
97
97
|
t[6] !== p.h || t[7] !== p.s || t[8] !== p.v ? (C = I(p.h, p.s, p.v), w = _e(C), t[6] = p.h, t[7] = p.s, t[8] = p.v, t[9] = C, t[10] = w) : (C = t[9], w = t[10]);
|
|
98
98
|
let T = w;
|
|
99
|
-
x !==
|
|
99
|
+
x !== u && (S(u), y || (h(u), v(_e(u))), C !== u && ee(R(u)));
|
|
100
100
|
let E;
|
|
101
|
-
t[11] !== d || t[12] !==
|
|
101
|
+
t[11] !== d || t[12] !== o || t[13] !== s ? (E = (e) => {
|
|
102
102
|
ee(e);
|
|
103
103
|
let t = I(e.h, e.s, e.v);
|
|
104
|
-
h(t), v(_e(t)),
|
|
105
|
-
}, t[11] = d, t[12] =
|
|
104
|
+
h(t), v(_e(t)), o.schedule(t + d, s);
|
|
105
|
+
}, t[11] = d, t[12] = o, t[13] = s, t[14] = E) : E = t[14];
|
|
106
106
|
let D = E, te;
|
|
107
|
-
t[15] !== d || t[16] !==
|
|
107
|
+
t[15] !== d || t[16] !== s ? (te = (e) => {
|
|
108
108
|
if (h(e), !/^#[0-9a-f]{6}$/i.test(e)) return;
|
|
109
109
|
let t = R(e);
|
|
110
|
-
ee(t), v(_e(e)),
|
|
111
|
-
}, t[15] = d, t[16] =
|
|
110
|
+
ee(t), v(_e(e)), s(e.toLowerCase() + d);
|
|
111
|
+
}, t[15] = d, t[16] = s, t[17] = te) : te = t[17];
|
|
112
112
|
let ne = te, O;
|
|
113
|
-
t[18] !== d || t[19] !==
|
|
113
|
+
t[18] !== d || t[19] !== s ? (O = (e) => {
|
|
114
114
|
v(e);
|
|
115
115
|
let t = ge(e);
|
|
116
|
-
t && (ee(R(t)), h(t),
|
|
117
|
-
}, t[18] = d, t[19] =
|
|
116
|
+
t && (ee(R(t)), h(t), s(t + d));
|
|
117
|
+
}, t[18] = d, t[19] = s, t[20] = O) : O = t[20];
|
|
118
118
|
let k = O, A;
|
|
119
|
-
t[21] ===
|
|
119
|
+
t[21] === r ? A = t[22] : (A = /* @__PURE__ */ G("p", {
|
|
120
120
|
className: "truncate text-xs font-semibold text-foreground",
|
|
121
|
-
children:
|
|
122
|
-
}), t[21] =
|
|
121
|
+
children: r
|
|
122
|
+
}), t[21] = r, t[22] = A);
|
|
123
123
|
let j;
|
|
124
124
|
t[23] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ G("p", {
|
|
125
125
|
className: "text-2xs text-muted-foreground",
|
|
126
|
-
children: /* @__PURE__ */ G(
|
|
126
|
+
children: /* @__PURE__ */ G(a, { children: "Choose a color" })
|
|
127
127
|
}), t[23] = j) : j = t[23];
|
|
128
128
|
let M;
|
|
129
129
|
t[24] === A ? M = t[25] : (M = /* @__PURE__ */ K("div", {
|
|
@@ -141,26 +141,26 @@ function ye(e) {
|
|
|
141
141
|
children: [M, N]
|
|
142
142
|
}), t[28] = M, t[29] = N, t[30] = P) : P = t[30];
|
|
143
143
|
let F;
|
|
144
|
-
t[31] !== D || t[32] !==
|
|
145
|
-
label:
|
|
144
|
+
t[31] !== D || t[32] !== o.flush || t[33] !== p || t[34] !== r ? (F = /* @__PURE__ */ G(L, {
|
|
145
|
+
label: r,
|
|
146
146
|
value: p,
|
|
147
147
|
onChange: D,
|
|
148
|
-
onInteractionEnd:
|
|
149
|
-
}), t[31] = D, t[32] =
|
|
148
|
+
onInteractionEnd: o.flush
|
|
149
|
+
}), t[31] = D, t[32] = o.flush, t[33] = p, t[34] = r, t[35] = F) : F = t[35];
|
|
150
150
|
let re;
|
|
151
|
-
t[36] !==
|
|
151
|
+
t[36] !== c || t[37] !== r ? (re = c("{label} hue", { label: r }), t[36] = c, t[37] = r, t[38] = re) : re = t[38];
|
|
152
152
|
let ie;
|
|
153
153
|
t[39] !== D || t[40] !== p ? (ie = (e) => D({
|
|
154
154
|
...p,
|
|
155
155
|
h: e
|
|
156
156
|
}), t[39] = D, t[40] = p, t[41] = ie) : ie = t[41];
|
|
157
157
|
let ae;
|
|
158
|
-
t[42] !==
|
|
158
|
+
t[42] !== o.flush || t[43] !== p.h || t[44] !== re || t[45] !== ie ? (ae = /* @__PURE__ */ G(z, {
|
|
159
159
|
label: re,
|
|
160
160
|
value: p.h,
|
|
161
161
|
onChange: ie,
|
|
162
|
-
onInteractionEnd:
|
|
163
|
-
}), t[42] =
|
|
162
|
+
onInteractionEnd: o.flush
|
|
163
|
+
}), t[42] = o.flush, t[43] = p.h, t[44] = re, t[45] = ie, t[46] = ae) : ae = t[46];
|
|
164
164
|
let oe;
|
|
165
165
|
t[47] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ G("span", {
|
|
166
166
|
className: "px-1 text-3xs font-semibold uppercase tracking-widest text-muted-foreground",
|
|
@@ -172,7 +172,7 @@ function ye(e) {
|
|
|
172
172
|
style: { backgroundColor: C }
|
|
173
173
|
}), t[48] = C, t[49] = B);
|
|
174
174
|
let V;
|
|
175
|
-
t[50] !==
|
|
175
|
+
t[50] !== c || t[51] !== r ? (V = c("{label} picker hex value", { label: r }), t[50] = c, t[51] = r, t[52] = V) : V = t[52];
|
|
176
176
|
let H;
|
|
177
177
|
t[53] !== C || t[54] !== T ? (H = () => {
|
|
178
178
|
b(!1), h(C), v(T);
|
|
@@ -207,7 +207,7 @@ function ye(e) {
|
|
|
207
207
|
children: "RGB"
|
|
208
208
|
}), t[67] = J) : J = t[67];
|
|
209
209
|
let ue;
|
|
210
|
-
t[68] !==
|
|
210
|
+
t[68] !== c || t[69] !== r ? (ue = c("{label} picker RGB value", { label: r }), t[68] = c, t[69] = r, t[70] = ue) : ue = t[70];
|
|
211
211
|
let de;
|
|
212
212
|
t[71] !== C || t[72] !== T ? (de = () => {
|
|
213
213
|
b(!1), h(C), v(T);
|
|
@@ -255,16 +255,16 @@ function ye(e) {
|
|
|
255
255
|
}), t[89] = P, t[90] = be, t[91] = xe) : xe = t[91], xe;
|
|
256
256
|
}
|
|
257
257
|
function be(e) {
|
|
258
|
-
let t = se(36), { label:
|
|
258
|
+
let t = se(36), { label: r, value: i, onChange: a, onEditStart: o, onEditCancel: l, onInteract: u } = e, f = n(), [p] = U(ve), ee = H(!1), m;
|
|
259
259
|
t[0] === p.flush ? m = t[1] : (m = () => p.flush, t[0] = p.flush, t[1] = m);
|
|
260
260
|
let h;
|
|
261
261
|
t[2] === p ? h = t[3] : (h = [p], t[2] = p, t[3] = h), B(m, h);
|
|
262
262
|
let g;
|
|
263
|
-
t[4] !== p || t[5] !== l || t[6] !==
|
|
264
|
-
ee.current = !e && t.reason === "escape-key", e ?
|
|
265
|
-
}, t[4] = p, t[5] = l, t[6] =
|
|
263
|
+
t[4] !== p || t[5] !== l || t[6] !== o ? (g = (e, t) => {
|
|
264
|
+
ee.current = !e && t.reason === "escape-key", e ? o?.() : (p.flush(), ee.current && l?.());
|
|
265
|
+
}, t[4] = p, t[5] = l, t[6] = o, t[7] = g) : g = t[7];
|
|
266
266
|
let _;
|
|
267
|
-
t[8] !== f || t[9] !==
|
|
267
|
+
t[8] !== f || t[9] !== r ? (_ = f("Choose {label} color", { label: r }), t[8] = f, t[9] = r, t[10] = _) : _ = t[10];
|
|
268
268
|
let v;
|
|
269
269
|
t[11] === i ? v = t[12] : (v = /* @__PURE__ */ G("span", {
|
|
270
270
|
className: "absolute inset-0 rounded-full shadow-sm",
|
|
@@ -280,20 +280,20 @@ function be(e) {
|
|
|
280
280
|
children: v
|
|
281
281
|
}) }) }), t[13] = u, t[14] = _, t[15] = v, t[16] = y) : y = t[16];
|
|
282
282
|
let b;
|
|
283
|
-
t[17] !== f || t[18] !==
|
|
283
|
+
t[17] !== f || t[18] !== r ? (b = f("Choose {label} color", { label: r }), t[17] = f, t[18] = r, t[19] = b) : b = t[19];
|
|
284
284
|
let x;
|
|
285
|
-
t[20] === b ? x = t[21] : (x = /* @__PURE__ */ G(
|
|
285
|
+
t[20] === b ? x = t[21] : (x = /* @__PURE__ */ G(s, {
|
|
286
286
|
side: "top",
|
|
287
287
|
children: b
|
|
288
288
|
}), t[20] = b, t[21] = x);
|
|
289
289
|
let S;
|
|
290
|
-
t[22] !== y || t[23] !== x ? (S = /* @__PURE__ */ K(
|
|
290
|
+
t[22] !== y || t[23] !== x ? (S = /* @__PURE__ */ K(c, { children: [y, x] }), t[22] = y, t[23] = x, t[24] = S) : S = t[24];
|
|
291
291
|
let C;
|
|
292
292
|
t[25] === a ? C = t[26] : (C = (e) => {
|
|
293
293
|
ee.current || a(e);
|
|
294
294
|
}, t[25] = a, t[26] = C);
|
|
295
295
|
let w;
|
|
296
|
-
t[27] !== p || t[28] !==
|
|
296
|
+
t[27] !== p || t[28] !== r || t[29] !== C || t[30] !== i ? (w = /* @__PURE__ */ G(N, {
|
|
297
297
|
align: "end",
|
|
298
298
|
padding: "none",
|
|
299
299
|
"data-theme-editor-panel": "",
|
|
@@ -301,11 +301,11 @@ function be(e) {
|
|
|
301
301
|
sideOffset: 10,
|
|
302
302
|
children: /* @__PURE__ */ G(ye, {
|
|
303
303
|
committer: p,
|
|
304
|
-
label:
|
|
304
|
+
label: r,
|
|
305
305
|
onChange: C,
|
|
306
306
|
value: i
|
|
307
307
|
})
|
|
308
|
-
}), t[27] = p, t[28] =
|
|
308
|
+
}), t[27] = p, t[28] = r, t[29] = C, t[30] = i, t[31] = w) : w = t[31];
|
|
309
309
|
let T;
|
|
310
310
|
return t[32] !== w || t[33] !== g || t[34] !== S ? (T = /* @__PURE__ */ K(F, {
|
|
311
311
|
onOpenChange: g,
|
|
@@ -313,18 +313,18 @@ function be(e) {
|
|
|
313
313
|
}), t[32] = w, t[33] = g, t[34] = S, t[35] = T) : T = t[35], T;
|
|
314
314
|
}
|
|
315
315
|
var xe = oe(function(e) {
|
|
316
|
-
let t = se(78), { role:
|
|
317
|
-
t[0] !== v || t[1] !== x || t[2] !==
|
|
316
|
+
let t = se(78), { role: a, value: o, onChange: u, onEditStart: f, onEditCancel: ee, onSelect: m, onToggleSelected: h, selected: g, label: v } = e, y = g !== void 0 && g, b = n(), x = i(), S;
|
|
317
|
+
t[0] !== v || t[1] !== x || t[2] !== a ? (S = v ?? fe(a, x), t[0] = v, t[1] = x, t[2] = a, t[3] = S) : S = t[3];
|
|
318
318
|
let C = S, w;
|
|
319
|
-
t[4] ===
|
|
320
|
-
let T = w, E = T ?
|
|
321
|
-
t[6] ===
|
|
319
|
+
t[4] === o ? w = t[5] : (w = p(o), t[4] = o, t[5] = w);
|
|
320
|
+
let T = w, E = T ? o : "#000000", D;
|
|
321
|
+
t[6] === o ? D = t[7] : (D = o.trim().toLowerCase().startsWith("oklch(") ? _(o) ?? o : o, t[6] = o, t[7] = D);
|
|
322
322
|
let te = D, ne = y && "bg-accent/60 inset-ring inset-ring-ring", O;
|
|
323
|
-
t[8] === ne ? O = t[9] : (O =
|
|
323
|
+
t[8] === ne ? O = t[9] : (O = l("flex min-h-11 min-w-0 items-center gap-2 rounded-lg px-2 py-1.5 transition-[background-color,box-shadow]", ne), t[8] = ne, t[9] = O);
|
|
324
324
|
let k;
|
|
325
325
|
t[10] !== b || t[11] !== C || t[12] !== y ? (k = b(y ? "Hide {label} usage" : "Show {label} usage", { label: C }), t[10] = b, t[11] = C, t[12] = y, t[13] = k) : k = t[13];
|
|
326
326
|
let A;
|
|
327
|
-
t[14] !== h || t[15] !==
|
|
327
|
+
t[14] !== h || t[15] !== a ? (A = () => h?.(a), t[14] = h, t[15] = a, t[16] = A) : A = t[16];
|
|
328
328
|
let j;
|
|
329
329
|
t[17] === C ? j = t[18] : (j = /* @__PURE__ */ G("span", {
|
|
330
330
|
className: "min-w-0 flex-1 truncate",
|
|
@@ -342,20 +342,20 @@ var xe = oe(function(e) {
|
|
|
342
342
|
let N;
|
|
343
343
|
t[24] !== b || t[25] !== C || t[26] !== y ? (N = b(y ? "Hide where {label} is used" : "Show where {label} is used", { label: C }), t[24] = b, t[25] = C, t[26] = y, t[27] = N) : N = t[27];
|
|
344
344
|
let P;
|
|
345
|
-
t[28] === N ? P = t[29] : (P = /* @__PURE__ */ G(
|
|
345
|
+
t[28] === N ? P = t[29] : (P = /* @__PURE__ */ G(s, {
|
|
346
346
|
side: "top",
|
|
347
347
|
children: N
|
|
348
348
|
}), t[28] = N, t[29] = P);
|
|
349
349
|
let F;
|
|
350
|
-
t[30] !== M || t[31] !== P ? (F = /* @__PURE__ */ K(
|
|
350
|
+
t[30] !== M || t[31] !== P ? (F = /* @__PURE__ */ K(c, { children: [M, P] }), t[30] = M, t[31] = P, t[32] = F) : F = t[32];
|
|
351
351
|
let re;
|
|
352
|
-
t[33] !== u || t[34] !==
|
|
352
|
+
t[33] !== u || t[34] !== a ? (re = (e) => u(a, e), t[33] = u, t[34] = a, t[35] = re) : re = t[35];
|
|
353
353
|
let ie;
|
|
354
|
-
t[36] !== ee || t[37] !==
|
|
354
|
+
t[36] !== ee || t[37] !== a ? (ie = () => ee?.(a), t[36] = ee, t[37] = a, t[38] = ie) : ie = t[38];
|
|
355
355
|
let ae;
|
|
356
|
-
t[39] !== f || t[40] !==
|
|
356
|
+
t[39] !== f || t[40] !== a ? (ae = () => f?.(a), t[39] = f, t[40] = a, t[41] = ae) : ae = t[41];
|
|
357
357
|
let I;
|
|
358
|
-
t[42] !== m || t[43] !==
|
|
358
|
+
t[42] !== m || t[43] !== a ? (I = () => m?.(a), t[42] = m, t[43] = a, t[44] = I) : I = t[44];
|
|
359
359
|
let L;
|
|
360
360
|
t[45] !== C || t[46] !== E || t[47] !== re || t[48] !== ie || t[49] !== ae || t[50] !== I ? (L = /* @__PURE__ */ G(be, {
|
|
361
361
|
label: C,
|
|
@@ -367,12 +367,12 @@ var xe = oe(function(e) {
|
|
|
367
367
|
}), t[45] = C, t[46] = E, t[47] = re, t[48] = ie, t[49] = ae, t[50] = I, t[51] = L) : L = t[51];
|
|
368
368
|
let R = !T, z;
|
|
369
369
|
t[52] !== b || t[53] !== C ? (z = b("{label} hex value", { label: C }), t[52] = b, t[53] = C, t[54] = z) : z = t[54];
|
|
370
|
-
let oe = `${
|
|
371
|
-
t[55] !== u || t[56] !==
|
|
370
|
+
let oe = `${a}-hex`, B;
|
|
371
|
+
t[55] !== u || t[56] !== a ? (B = (e) => u(a, e.currentTarget.value), t[55] = u, t[56] = a, t[57] = B) : B = t[57];
|
|
372
372
|
let V, H;
|
|
373
|
-
t[58] !== m || t[59] !==
|
|
373
|
+
t[58] !== m || t[59] !== a ? (V = () => m?.(a), H = () => m?.(a), t[58] = m, t[59] = a, t[60] = V, t[61] = H) : (V = t[60], H = t[61]);
|
|
374
374
|
let U;
|
|
375
|
-
t[62] !== te || t[63] !== R || t[64] !== z || t[65] !== oe || t[66] !== B || t[67] !== V || t[68] !== H ? (U = /* @__PURE__ */ G(
|
|
375
|
+
t[62] !== te || t[63] !== R || t[64] !== z || t[65] !== oe || t[66] !== B || t[67] !== V || t[68] !== H ? (U = /* @__PURE__ */ G(r, {
|
|
376
376
|
"aria-invalid": R,
|
|
377
377
|
"aria-label": z,
|
|
378
378
|
className: "w-28 shrink-0",
|
|
@@ -391,15 +391,15 @@ var xe = oe(function(e) {
|
|
|
391
391
|
children: [L, U]
|
|
392
392
|
}), t[70] = L, t[71] = U, t[72] = W) : W = t[72];
|
|
393
393
|
let ce;
|
|
394
|
-
return t[73] !==
|
|
394
|
+
return t[73] !== a || t[74] !== F || t[75] !== W || t[76] !== O ? (ce = /* @__PURE__ */ K("div", {
|
|
395
395
|
className: O,
|
|
396
|
-
"data-theme-color-role":
|
|
396
|
+
"data-theme-color-role": a,
|
|
397
397
|
children: [F, W]
|
|
398
|
-
}), t[73] =
|
|
398
|
+
}), t[73] = a, t[74] = F, t[75] = W, t[76] = O, t[77] = ce) : ce = t[77], ce;
|
|
399
399
|
});
|
|
400
400
|
// src/components/settings/ThemeCssEditor.tsx
|
|
401
401
|
function Se(e) {
|
|
402
|
-
let t = se(48), { value:
|
|
402
|
+
let t = se(48), { value: r, onChange: i } = e, s = n(), c = V(), l;
|
|
403
403
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
404
404
|
line: 1,
|
|
405
405
|
column: 1
|
|
@@ -413,9 +413,9 @@ function Se(e) {
|
|
|
413
413
|
});
|
|
414
414
|
}, t[1] = m) : m = t[1];
|
|
415
415
|
let h = m, g;
|
|
416
|
-
t[2] ===
|
|
417
|
-
document.execCommand("insertText", !1, t) || e.setRangeText(t, e.selectionStart, e.selectionEnd, "end"),
|
|
418
|
-
}, t[2] =
|
|
416
|
+
t[2] === i ? g = t[3] : (g = function(e, t) {
|
|
417
|
+
document.execCommand("insertText", !1, t) || e.setRangeText(t, e.selectionStart, e.selectionEnd, "end"), i(e.value), h(e);
|
|
418
|
+
}, t[2] = i, t[3] = g);
|
|
419
419
|
let _ = g, v;
|
|
420
420
|
t[4] !== _ || t[5] !== p ? (v = function(e) {
|
|
421
421
|
if (e.nativeEvent.isComposing || e.ctrlKey || e.metaKey || e.altKey) return;
|
|
@@ -444,13 +444,13 @@ function Se(e) {
|
|
|
444
444
|
let x;
|
|
445
445
|
t[9] === Symbol.for("react.memo_cache_sentinel") ? (x = () => ee(!0), t[9] = x) : x = t[9];
|
|
446
446
|
let S;
|
|
447
|
-
t[10] ===
|
|
448
|
-
|
|
449
|
-
}, t[10] =
|
|
447
|
+
t[10] === i ? S = t[11] : (S = (e) => {
|
|
448
|
+
i(e.currentTarget.value), h(e.currentTarget);
|
|
449
|
+
}, t[10] = i, t[11] = S);
|
|
450
450
|
let C;
|
|
451
451
|
t[12] === Symbol.for("react.memo_cache_sentinel") ? (C = (e) => h(e.currentTarget), t[12] = C) : C = t[12];
|
|
452
452
|
let w;
|
|
453
|
-
t[13] !== y || t[14] !== c || t[15] !== b || t[16] !== S || t[17] !==
|
|
453
|
+
t[13] !== y || t[14] !== c || t[15] !== b || t[16] !== S || t[17] !== r ? (w = /* @__PURE__ */ G("textarea", {
|
|
454
454
|
"aria-label": b,
|
|
455
455
|
"aria-describedby": c,
|
|
456
456
|
autoCapitalize: "off",
|
|
@@ -459,22 +459,22 @@ function Se(e) {
|
|
|
459
459
|
spellCheck: !1,
|
|
460
460
|
wrap: "off",
|
|
461
461
|
className: "block h-52 w-full resize-none bg-transparent p-3 font-mono text-xs leading-5 outline-none",
|
|
462
|
-
value:
|
|
462
|
+
value: r,
|
|
463
463
|
onFocus: x,
|
|
464
464
|
onChange: S,
|
|
465
465
|
onSelect: C,
|
|
466
466
|
onKeyDown: y
|
|
467
|
-
}), t[13] = y, t[14] = c, t[15] = b, t[16] = S, t[17] =
|
|
467
|
+
}), t[13] = y, t[14] = c, t[15] = b, t[16] = S, t[17] = r, t[18] = w) : w = t[18];
|
|
468
468
|
let T;
|
|
469
469
|
t[19] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ G("span", { children: "CSS" }), t[19] = T) : T = t[19];
|
|
470
470
|
let E;
|
|
471
|
-
t[20] === d.line ? E = t[21] : (E = /* @__PURE__ */ G(
|
|
471
|
+
t[20] === d.line ? E = t[21] : (E = /* @__PURE__ */ G(u, { children: d.line }), t[20] = d.line, t[21] = E);
|
|
472
472
|
let D;
|
|
473
|
-
t[22] === d.column ? D = t[23] : (D = /* @__PURE__ */ G(
|
|
473
|
+
t[22] === d.column ? D = t[23] : (D = /* @__PURE__ */ G(u, { children: d.column }), t[22] = d.column, t[23] = D);
|
|
474
474
|
let te;
|
|
475
475
|
t[24] !== E || t[25] !== D ? (te = /* @__PURE__ */ K("div", {
|
|
476
476
|
className: "flex items-center justify-between border-t border-input px-3 py-1 font-mono text-xs",
|
|
477
|
-
children: [T, /* @__PURE__ */ G("span", { children: /* @__PURE__ */ K(
|
|
477
|
+
children: [T, /* @__PURE__ */ G("span", { children: /* @__PURE__ */ K(a, { children: [
|
|
478
478
|
"Ln ",
|
|
479
479
|
E,
|
|
480
480
|
", Col ",
|
|
@@ -494,17 +494,17 @@ function Se(e) {
|
|
|
494
494
|
className: "text-xs text-muted-foreground",
|
|
495
495
|
children: O
|
|
496
496
|
}), t[33] = c, t[34] = O, t[35] = k) : k = t[35];
|
|
497
|
-
let A = !
|
|
498
|
-
t[36] ===
|
|
499
|
-
|
|
497
|
+
let A = !r, j;
|
|
498
|
+
t[36] === i ? j = t[37] : (j = () => {
|
|
499
|
+
i(""), f({
|
|
500
500
|
line: 1,
|
|
501
501
|
column: 1
|
|
502
502
|
});
|
|
503
|
-
}, t[36] =
|
|
503
|
+
}, t[36] = i, t[37] = j);
|
|
504
504
|
let M;
|
|
505
|
-
t[38] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ G(
|
|
505
|
+
t[38] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ G(a, { children: "Clear CSS" }), t[38] = M) : M = t[38];
|
|
506
506
|
let N;
|
|
507
|
-
t[39] !== A || t[40] !== j ? (N = /* @__PURE__ */ G(
|
|
507
|
+
t[39] !== A || t[40] !== j ? (N = /* @__PURE__ */ G(o, {
|
|
508
508
|
size: "xs",
|
|
509
509
|
variant: "ghost",
|
|
510
510
|
disabled: A,
|
|
@@ -1087,11 +1087,11 @@ function ft(e, t) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
function pt(e) {
|
|
1090
|
-
let
|
|
1091
|
-
|
|
1090
|
+
let u = se(168), { open: p, onOpenChange: _, onSaved: y, editingTheme: b, initialAppearance: S, seedTheme: N, seedName: P, restoreTheme: F } = e, I = i(), L = n(), R = b !== null, [z, oe] = U(""), [V, W] = U(S), [q, le] = U(!1), [J, de] = U(gt), pe;
|
|
1091
|
+
u[0] === Symbol.for("react.memo_cache_sentinel") ? (pe = {
|
|
1092
1092
|
light: !1,
|
|
1093
1093
|
dark: !1
|
|
1094
|
-
},
|
|
1094
|
+
}, u[0] = pe) : pe = u[0];
|
|
1095
1095
|
let [me, he] = U(pe), [ge, _e] = U(!1), [ve, ye] = U(""), [be, Ce] = U(!1), [we, Te] = U(null), [Y, Ee] = U(!1), [De, Oe] = U(""), [X, ke] = U(!1), [Z, Ae] = U(null), [je, Me] = U(null), [Q, Fe] = U(null), [Le, ze] = U(null), Be = H(null), Ve = H(null), He = H(null), Ue = H(null), [We, Ge] = U(!1);
|
|
1096
1096
|
if (We !== p && (Ge(p), p)) {
|
|
1097
1097
|
let e = b ?? N ?? null, t = it(), n = e ? v(e, S) ? S : e.appearance : S;
|
|
@@ -1108,9 +1108,9 @@ function pt(e) {
|
|
|
1108
1108
|
}), _e(e !== null && e.managed !== !0), de(t), ye(e?.css ?? ""), Ce(!!e?.css), Ae(null), Me(null), ke(!1), Te(null);
|
|
1109
1109
|
}
|
|
1110
1110
|
let Ke;
|
|
1111
|
-
|
|
1111
|
+
u[1] === z ? Ke = u[2] : (Ke = ee(z), u[1] = z, u[2] = Ke);
|
|
1112
1112
|
let qe = Ke, Je;
|
|
1113
|
-
|
|
1113
|
+
u[3] === z ? Je = u[4] : (Je = z.trim().toLowerCase(), u[3] = z, u[4] = Je);
|
|
1114
1114
|
let et = Je, $ = et === "" ? null : C().find((e) => e.id !== b?.id && (e.id === qe || e.label.trim().toLowerCase() === et)) ?? null, rt = $ ? E($) : [], pt = ve.trim() ? ve : $?.css ?? "", _t = b ? E(b) : null, vt = (e) => _t && !_t.includes(e) ? L(e === "light" ? "“{label}” has no light palette. Create a theme with the same name to add one." : "“{label}” has no dark palette. Create a theme with the same name to add one.", { label: b?.label }) : !R && rt.includes(e) ? L(e === "light" ? "“{label}” already has a light palette." : "“{label}” already has a dark palette.", { label: $?.label }) : null, yt = R || $ === null ? null : `${$.id}:${rt.join(",")}`, [bt, xt] = U(null);
|
|
1115
1115
|
bt !== yt && (xt(yt), yt !== null && rt.length === 1 && rt.includes(V) && W(rt[0] === "light" ? "dark" : "light")), B(() => {
|
|
1116
1116
|
p && T(J[V], V, pt);
|
|
@@ -1121,13 +1121,13 @@ function pt(e) {
|
|
|
1121
1121
|
p
|
|
1122
1122
|
]);
|
|
1123
1123
|
let St, Ct;
|
|
1124
|
-
|
|
1124
|
+
u[5] !== p || u[6] !== F ? (St = () => {
|
|
1125
1125
|
if (p) return () => {
|
|
1126
1126
|
F();
|
|
1127
1127
|
};
|
|
1128
|
-
}, Ct = [p, F],
|
|
1128
|
+
}, Ct = [p, F], u[5] = p, u[6] = F, u[7] = St, u[8] = Ct) : (St = u[7], Ct = u[8]), B(St, Ct);
|
|
1129
1129
|
let wt;
|
|
1130
|
-
|
|
1130
|
+
u[9] !== V || u[10] !== q ? (wt = (e, t) => {
|
|
1131
1131
|
de((n) => {
|
|
1132
1132
|
let r = {
|
|
1133
1133
|
...n[V],
|
|
@@ -1141,22 +1141,22 @@ function pt(e) {
|
|
|
1141
1141
|
...e,
|
|
1142
1142
|
[V]: !0
|
|
1143
1143
|
})), q && _e(!0);
|
|
1144
|
-
},
|
|
1144
|
+
}, u[9] = V, u[10] = q, u[11] = wt) : wt = u[11];
|
|
1145
1145
|
let Tt = wt, Et;
|
|
1146
|
-
|
|
1146
|
+
u[12] !== J || u[13] !== ge || u[14] !== me ? (Et = () => {
|
|
1147
1147
|
Ve.current = {
|
|
1148
1148
|
colorsByAppearance: J,
|
|
1149
1149
|
simpleColorsDirtyByAppearance: me,
|
|
1150
1150
|
shouldRegenerateGuidedColors: ge
|
|
1151
1151
|
};
|
|
1152
|
-
},
|
|
1152
|
+
}, u[12] = J, u[13] = ge, u[14] = me, u[15] = Et) : Et = u[15];
|
|
1153
1153
|
let Dt = Et, Ot;
|
|
1154
|
-
|
|
1154
|
+
u[16] === Symbol.for("react.memo_cache_sentinel") ? (Ot = () => {
|
|
1155
1155
|
let e = Ve.current;
|
|
1156
1156
|
Ve.current = null, e && (de(e.colorsByAppearance), he(e.simpleColorsDirtyByAppearance), _e(e.shouldRegenerateGuidedColors));
|
|
1157
|
-
},
|
|
1157
|
+
}, u[16] = Ot) : Ot = u[16];
|
|
1158
1158
|
let kt = Ot, At;
|
|
1159
|
-
|
|
1159
|
+
u[17] === Symbol.for("react.memo_cache_sentinel") ? (At = (e, t) => {
|
|
1160
1160
|
let n = t !== void 0 && t, r = tt(e)?.role ?? e;
|
|
1161
1161
|
Ae(r), Qe.includes(r) || (le(!0), Oe("")), n && requestAnimationFrame(() => {
|
|
1162
1162
|
Be.current?.querySelector(`[data-theme-color-role="${r}"]`)?.scrollIntoView({
|
|
@@ -1164,19 +1164,19 @@ function pt(e) {
|
|
|
1164
1164
|
block: "nearest"
|
|
1165
1165
|
});
|
|
1166
1166
|
});
|
|
1167
|
-
},
|
|
1167
|
+
}, u[17] = At) : At = u[17];
|
|
1168
1168
|
let jt = At, Mt;
|
|
1169
|
-
|
|
1169
|
+
u[18] === Symbol.for("react.memo_cache_sentinel") ? (Mt = (e) => {
|
|
1170
1170
|
Ae((t) => t === e ? null : e);
|
|
1171
|
-
},
|
|
1171
|
+
}, u[18] = Mt) : Mt = u[18];
|
|
1172
1172
|
let Nt = Mt, Pt;
|
|
1173
|
-
|
|
1173
|
+
u[19] === Symbol.for("react.memo_cache_sentinel") ? (Pt = () => {
|
|
1174
1174
|
Ae(null), Me(null), ke(!1);
|
|
1175
|
-
},
|
|
1175
|
+
}, u[19] = Pt) : Pt = u[19];
|
|
1176
1176
|
let Ft = Pt, It;
|
|
1177
|
-
|
|
1177
|
+
u[20] !== V || u[21] !== J || u[22] !== q || u[23] !== Z ? (It = (Z ? q ? tt(Z)?.roles ?? [Z] : Qe.includes(Z) ? m.filter((e) => J[V][e].trim().toLowerCase() === J[V][Z].trim().toLowerCase()) : [Z] : []).join(","), u[20] = V, u[21] = J, u[22] = q, u[23] = Z, u[24] = It) : It = u[24];
|
|
1178
1178
|
let Lt = It, Rt, zt;
|
|
1179
|
-
|
|
1179
|
+
u[25] !== X || u[26] !== p || u[27] !== Lt || u[28] !== Z ? (Rt = () => {
|
|
1180
1180
|
if (Ne(), !p || Z === null || X) return;
|
|
1181
1181
|
let e = Lt.split(","), t = () => Me(Xe(e));
|
|
1182
1182
|
t();
|
|
@@ -1206,9 +1206,9 @@ function pt(e) {
|
|
|
1206
1206
|
p,
|
|
1207
1207
|
Lt,
|
|
1208
1208
|
Z
|
|
1209
|
-
],
|
|
1209
|
+
], u[25] = X, u[26] = p, u[27] = Lt, u[28] = Z, u[29] = Rt, u[30] = zt) : (Rt = u[29], zt = u[30]), B(Rt, zt);
|
|
1210
1210
|
let Bt, Vt;
|
|
1211
|
-
|
|
1211
|
+
u[31] !== X || u[32] !== p ? (Bt = () => {
|
|
1212
1212
|
if (!p || !X) {
|
|
1213
1213
|
Pe();
|
|
1214
1214
|
return;
|
|
@@ -1258,9 +1258,9 @@ function pt(e) {
|
|
|
1258
1258
|
X,
|
|
1259
1259
|
p,
|
|
1260
1260
|
jt
|
|
1261
|
-
],
|
|
1261
|
+
], u[31] = X, u[32] = p, u[33] = Bt, u[34] = Vt) : (Bt = u[33], Vt = u[34]), B(Bt, Vt);
|
|
1262
1262
|
let Ht;
|
|
1263
|
-
|
|
1263
|
+
u[35] !== V || u[36] !== b || u[37] !== Z || u[38] !== ge ? (Ht = (e) => {
|
|
1264
1264
|
if (le(e), e || (Z && !Qe.includes(Z) && Ae(null), !ge)) return;
|
|
1265
1265
|
let t = b && E(b).length > 1 ? ["light", "dark"] : [V];
|
|
1266
1266
|
he((e) => {
|
|
@@ -1272,7 +1272,7 @@ function pt(e) {
|
|
|
1272
1272
|
for (let r of t) n[r] = ot(r, e[r]);
|
|
1273
1273
|
return n;
|
|
1274
1274
|
}), _e(!1);
|
|
1275
|
-
},
|
|
1275
|
+
}, u[35] = V, u[36] = b, u[37] = Z, u[38] = ge, u[39] = Ht) : Ht = u[39];
|
|
1276
1276
|
let Ut = Ht, Wt = () => {
|
|
1277
1277
|
if (!z.trim()) Te(L("Name your theme first."));
|
|
1278
1278
|
else if ($?.css && ve.trim() && $.css !== ve) Te(L("“{label}” has different custom CSS. Use the same CSS or pick another name.", { label: $.label }));
|
|
@@ -1366,12 +1366,12 @@ function pt(e) {
|
|
|
1366
1366
|
Te(n instanceof Error ? D(n, t) ?? n.message : L(R ? "Could not save the theme." : "Could not create the theme."));
|
|
1367
1367
|
}
|
|
1368
1368
|
}, Gt;
|
|
1369
|
-
|
|
1369
|
+
u[40] !== L || u[41] !== R || u[42] !== z ? (Gt = () => /* @__PURE__ */ K("label", {
|
|
1370
1370
|
className: "grid grid-cols-[minmax(0,1fr)_minmax(0,2fr)] items-center gap-3",
|
|
1371
1371
|
children: [/* @__PURE__ */ G("span", {
|
|
1372
1372
|
className: "text-sm font-medium",
|
|
1373
|
-
children: /* @__PURE__ */ G(
|
|
1374
|
-
}), /* @__PURE__ */ G(
|
|
1373
|
+
children: /* @__PURE__ */ G(a, { children: "Theme name" })
|
|
1374
|
+
}), /* @__PURE__ */ G(r, {
|
|
1375
1375
|
autoFocus: !0,
|
|
1376
1376
|
size: "sm",
|
|
1377
1377
|
onChange: (e) => {
|
|
@@ -1380,19 +1380,19 @@ function pt(e) {
|
|
|
1380
1380
|
placeholder: L(R ? "Theme name" : "e.g. Aurora"),
|
|
1381
1381
|
value: z
|
|
1382
1382
|
})]
|
|
1383
|
-
}),
|
|
1383
|
+
}), u[40] = L, u[41] = R, u[42] = z, u[43] = Gt) : Gt = u[43];
|
|
1384
1384
|
let Kt = Gt, qt = (e) => {
|
|
1385
1385
|
let t = vt(e), n = /* @__PURE__ */ G(ie, {
|
|
1386
1386
|
"aria-disabled": t !== null,
|
|
1387
1387
|
value: e,
|
|
1388
1388
|
children: L(e === "light" ? "Light" : "Dark")
|
|
1389
1389
|
});
|
|
1390
|
-
return t === null ? n : /* @__PURE__ */ K(
|
|
1390
|
+
return t === null ? n : /* @__PURE__ */ K(c, { children: [/* @__PURE__ */ G(d, { render: n }), /* @__PURE__ */ G(s, { children: t })] });
|
|
1391
1391
|
}, Jt = () => /* @__PURE__ */ K("div", {
|
|
1392
1392
|
className: "grid grid-cols-[minmax(0,1fr)_minmax(0,2fr)] items-center gap-3",
|
|
1393
1393
|
children: [/* @__PURE__ */ G("span", {
|
|
1394
1394
|
className: "text-sm font-medium",
|
|
1395
|
-
children: /* @__PURE__ */ G(
|
|
1395
|
+
children: /* @__PURE__ */ G(a, { children: "Appearance" })
|
|
1396
1396
|
}), /* @__PURE__ */ K(re, {
|
|
1397
1397
|
"aria-label": L("Theme appearance"),
|
|
1398
1398
|
variant: "segmented",
|
|
@@ -1404,17 +1404,17 @@ function pt(e) {
|
|
|
1404
1404
|
children: [qt("light"), qt("dark")]
|
|
1405
1405
|
})]
|
|
1406
1406
|
}), Yt;
|
|
1407
|
-
|
|
1407
|
+
u[44] !== L || u[45] !== Ut || u[46] !== q || u[47] !== De ? (Yt = () => /* @__PURE__ */ K("div", {
|
|
1408
1408
|
className: "grid grid-cols-[minmax(0,1fr)_minmax(0,2fr)] items-start gap-3",
|
|
1409
1409
|
children: [/* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G("h3", {
|
|
1410
1410
|
className: "text-sm font-medium",
|
|
1411
|
-
children: /* @__PURE__ */ G(
|
|
1411
|
+
children: /* @__PURE__ */ G(a, { children: "Colors" })
|
|
1412
1412
|
}), q ? null : /* @__PURE__ */ G("p", {
|
|
1413
1413
|
className: "text-xs text-muted-foreground",
|
|
1414
|
-
children: /* @__PURE__ */ G(
|
|
1414
|
+
children: /* @__PURE__ */ G(a, { children: "Two colors, rest derived" })
|
|
1415
1415
|
})] }), /* @__PURE__ */ K("div", {
|
|
1416
1416
|
className: "flex min-w-0 items-start gap-3",
|
|
1417
|
-
children: [q ? /* @__PURE__ */ G(
|
|
1417
|
+
children: [q ? /* @__PURE__ */ G(r, {
|
|
1418
1418
|
"aria-label": L("Filter colors"),
|
|
1419
1419
|
className: "min-w-0 flex-1",
|
|
1420
1420
|
onChange: (e) => Oe(e.currentTarget.value),
|
|
@@ -1423,16 +1423,16 @@ function pt(e) {
|
|
|
1423
1423
|
value: De
|
|
1424
1424
|
}) : null, /* @__PURE__ */ K("label", {
|
|
1425
1425
|
className: "ml-auto flex shrink-0 cursor-pointer items-center gap-2 pt-0.5 text-sm font-medium",
|
|
1426
|
-
children: [/* @__PURE__ */ G("span", { children: /* @__PURE__ */ G(
|
|
1426
|
+
children: [/* @__PURE__ */ G("span", { children: /* @__PURE__ */ G(a, { children: "Advanced" }) }), /* @__PURE__ */ G(ae, {
|
|
1427
1427
|
"aria-label": L("Use advanced theme colors"),
|
|
1428
1428
|
checked: q,
|
|
1429
1429
|
onCheckedChange: (e) => Ut(!!e)
|
|
1430
1430
|
})]
|
|
1431
1431
|
})]
|
|
1432
1432
|
})]
|
|
1433
|
-
}),
|
|
1433
|
+
}), u[44] = L, u[45] = Ut, u[46] = q, u[47] = De, u[48] = Yt) : Yt = u[48];
|
|
1434
1434
|
let Xt = Yt, Zt;
|
|
1435
|
-
|
|
1435
|
+
u[49] !== V || u[50] !== J || u[51] !== I || u[52] !== Z || u[53] !== Dt || u[54] !== Tt ? (Zt = (e, t) => /* @__PURE__ */ G("div", {
|
|
1436
1436
|
className: t === void 0 ? "grid gap-2 sm:grid-cols-2" : t,
|
|
1437
1437
|
children: e.map((e) => /* @__PURE__ */ G(xe, {
|
|
1438
1438
|
label: I(e.label),
|
|
@@ -1445,9 +1445,9 @@ function pt(e) {
|
|
|
1445
1445
|
selected: Z === e.role,
|
|
1446
1446
|
value: J[V][e.role]
|
|
1447
1447
|
}, e.id))
|
|
1448
|
-
}),
|
|
1448
|
+
}), u[49] = V, u[50] = J, u[51] = I, u[52] = Z, u[53] = Dt, u[54] = Tt, u[55] = Zt) : Zt = u[55];
|
|
1449
1449
|
let Qt = Zt, $t;
|
|
1450
|
-
|
|
1450
|
+
u[56] !== V || u[57] !== J || u[58] !== L || u[59] !== q || u[60] !== I || u[61] !== Qt || u[62] !== De || u[63] !== Z || u[64] !== Dt || u[65] !== Tt ? ($t = () => {
|
|
1451
1451
|
let e = De.trim().toLowerCase(), t = $e.map((t) => ({
|
|
1452
1452
|
...t,
|
|
1453
1453
|
families: t.families.filter((t) => !e || [I(t.label), ...t.roles.map((e) => fe(e, I))].join(" ").toLowerCase().includes(e))
|
|
@@ -1462,7 +1462,7 @@ function pt(e) {
|
|
|
1462
1462
|
}), Qt(e.families, "grid gap-1")]
|
|
1463
1463
|
}, e.id)), t.length === 0 ? /* @__PURE__ */ G("p", {
|
|
1464
1464
|
className: "text-xs text-muted-foreground",
|
|
1465
|
-
children: /* @__PURE__ */ G(
|
|
1465
|
+
children: /* @__PURE__ */ G(a, { children: "No matches." })
|
|
1466
1466
|
}) : null]
|
|
1467
1467
|
}) : /* @__PURE__ */ G("div", {
|
|
1468
1468
|
className: "grid gap-1",
|
|
@@ -1478,16 +1478,16 @@ function pt(e) {
|
|
|
1478
1478
|
value: J[V][e]
|
|
1479
1479
|
}, e))
|
|
1480
1480
|
});
|
|
1481
|
-
},
|
|
1481
|
+
}, u[56] = V, u[57] = J, u[58] = L, u[59] = q, u[60] = I, u[61] = Qt, u[62] = De, u[63] = Z, u[64] = Dt, u[65] = Tt, u[66] = $t) : $t = u[66];
|
|
1482
1482
|
let en = $t, tn = ue(), nn;
|
|
1483
|
-
|
|
1483
|
+
u[67] !== Le || u[68] !== tn ? (nn = Le && {
|
|
1484
1484
|
width: Math.max(ct, Math.min(Le.width, tn.width - 16)),
|
|
1485
1485
|
height: Math.max(lt, Math.min(Le.height, tn.height - 16))
|
|
1486
|
-
},
|
|
1486
|
+
}, u[67] = Le, u[68] = tn, u[69] = nn) : nn = u[69];
|
|
1487
1487
|
let rn = nn, an;
|
|
1488
|
-
|
|
1488
|
+
u[70] !== Q || u[71] !== rn?.width || u[72] !== tn ? (an = Q && ut(tn, Q.x, Q.y, rn?.width ?? Q.width), u[70] = Q, u[71] = rn?.width, u[72] = tn, u[73] = an) : an = u[73];
|
|
1489
1489
|
let on = an, sn;
|
|
1490
|
-
|
|
1490
|
+
u[74] === Symbol.for("react.memo_cache_sentinel") ? (sn = (e) => {
|
|
1491
1491
|
if (e.target.closest("button, input, a")) return;
|
|
1492
1492
|
let t = Be.current?.getBoundingClientRect();
|
|
1493
1493
|
t && (He.current = {
|
|
@@ -1495,9 +1495,9 @@ function pt(e) {
|
|
|
1495
1495
|
dy: e.clientY - t.y,
|
|
1496
1496
|
width: t.width
|
|
1497
1497
|
}, e.currentTarget.setPointerCapture(e.pointerId));
|
|
1498
|
-
},
|
|
1498
|
+
}, u[74] = sn) : sn = u[74];
|
|
1499
1499
|
let cn = sn, ln;
|
|
1500
|
-
|
|
1500
|
+
u[75] === Symbol.for("react.memo_cache_sentinel") ? (ln = (e) => {
|
|
1501
1501
|
let t = He.current;
|
|
1502
1502
|
if (!t) return;
|
|
1503
1503
|
let n = ut(dt(), e.clientX - t.dx, e.clientY - t.dy, t.width);
|
|
@@ -1505,13 +1505,13 @@ function pt(e) {
|
|
|
1505
1505
|
...n,
|
|
1506
1506
|
width: t.width
|
|
1507
1507
|
});
|
|
1508
|
-
},
|
|
1508
|
+
}, u[75] = ln) : ln = u[75];
|
|
1509
1509
|
let un = ln, dn;
|
|
1510
|
-
|
|
1510
|
+
u[76] === Symbol.for("react.memo_cache_sentinel") ? (dn = () => {
|
|
1511
1511
|
He.current = null;
|
|
1512
|
-
},
|
|
1512
|
+
}, u[76] = dn) : dn = u[76];
|
|
1513
1513
|
let fn = dn, pn;
|
|
1514
|
-
|
|
1514
|
+
u[77] === Symbol.for("react.memo_cache_sentinel") ? (pn = (e) => {
|
|
1515
1515
|
let t = Be.current?.getBoundingClientRect();
|
|
1516
1516
|
if (!t) return;
|
|
1517
1517
|
e.preventDefault();
|
|
@@ -1527,9 +1527,9 @@ function pt(e) {
|
|
|
1527
1527
|
width: t.width,
|
|
1528
1528
|
height: t.height
|
|
1529
1529
|
}, e.currentTarget.setPointerCapture(e.pointerId);
|
|
1530
|
-
},
|
|
1530
|
+
}, u[77] = pn) : pn = u[77];
|
|
1531
1531
|
let mn = pn, hn;
|
|
1532
|
-
|
|
1532
|
+
u[78] === Symbol.for("react.memo_cache_sentinel") ? (hn = (e) => {
|
|
1533
1533
|
let t = Ue.current;
|
|
1534
1534
|
if (!t) return;
|
|
1535
1535
|
let n = Math.max(ct, window.innerWidth - st - t.left), r = Math.max(lt, window.innerHeight - st - t.top);
|
|
@@ -1537,113 +1537,113 @@ function pt(e) {
|
|
|
1537
1537
|
width: Math.min(Math.max(t.width + e.clientX - t.pointerX, ct), n),
|
|
1538
1538
|
height: Math.min(Math.max(t.height + e.clientY - t.pointerY, lt), r)
|
|
1539
1539
|
});
|
|
1540
|
-
},
|
|
1540
|
+
}, u[78] = hn) : hn = u[78];
|
|
1541
1541
|
let gn = hn, _n;
|
|
1542
|
-
|
|
1542
|
+
u[79] === Symbol.for("react.memo_cache_sentinel") ? (_n = () => {
|
|
1543
1543
|
Ue.current = null;
|
|
1544
|
-
},
|
|
1544
|
+
}, u[79] = _n) : _n = u[79];
|
|
1545
1545
|
let vn = _n, yn;
|
|
1546
|
-
|
|
1546
|
+
u[80] !== L || u[81] !== R ? (yn = L(R ? "Edit theme" : "Create theme"), u[80] = L, u[81] = R, u[82] = yn) : yn = u[82];
|
|
1547
1547
|
let bn = Q === null && "bottom-4 right-4", xn = Y && "max-h-none", Sn;
|
|
1548
|
-
|
|
1548
|
+
u[83] !== bn || u[84] !== xn ? (Sn = l("dialog-glass fixed z-[110] flex max-h-[min(42rem,calc(100dvh-6rem))] w-[min(26rem,calc(100vw-2rem))] flex-col overflow-hidden rounded-xl border text-popover-foreground", bn, xn), u[83] = bn, u[84] = xn, u[85] = Sn) : Sn = u[85];
|
|
1549
1549
|
let Cn;
|
|
1550
|
-
|
|
1550
|
+
u[86] === _ ? Cn = u[87] : (Cn = (e) => {
|
|
1551
1551
|
e.key !== "Escape" || e.defaultPrevented || e.currentTarget.contains(e.target) && (e.stopPropagation(), _(!1));
|
|
1552
|
-
},
|
|
1552
|
+
}, u[86] = _, u[87] = Cn);
|
|
1553
1553
|
let wn;
|
|
1554
|
-
|
|
1554
|
+
u[88] === on ? wn = u[89] : (wn = on ? {
|
|
1555
1555
|
left: on.x,
|
|
1556
1556
|
top: on.y
|
|
1557
|
-
} : {},
|
|
1557
|
+
} : {}, u[88] = on, u[89] = wn);
|
|
1558
1558
|
let Tn;
|
|
1559
|
-
|
|
1559
|
+
u[90] === rn ? Tn = u[91] : (Tn = rn ? { width: rn.width } : {}, u[90] = rn, u[91] = Tn);
|
|
1560
1560
|
let En;
|
|
1561
|
-
|
|
1561
|
+
u[92] !== Y || u[93] !== rn ? (En = rn && !Y ? {
|
|
1562
1562
|
height: rn.height,
|
|
1563
1563
|
maxHeight: "calc(100dvh - 1rem)"
|
|
1564
|
-
} : {},
|
|
1564
|
+
} : {}, u[92] = Y, u[93] = rn, u[94] = En) : En = u[94];
|
|
1565
1565
|
let Dn;
|
|
1566
|
-
|
|
1566
|
+
u[95] !== wn || u[96] !== Tn || u[97] !== En ? (Dn = {
|
|
1567
1567
|
...wn,
|
|
1568
1568
|
...Tn,
|
|
1569
1569
|
...En
|
|
1570
|
-
},
|
|
1570
|
+
}, u[95] = wn, u[96] = Tn, u[97] = En, u[98] = Dn) : Dn = u[98];
|
|
1571
1571
|
let On;
|
|
1572
|
-
|
|
1572
|
+
u[99] !== L || u[100] !== R ? (On = L(R ? "Edit theme" : "Create theme"), u[99] = L, u[100] = R, u[101] = On) : On = u[101];
|
|
1573
1573
|
let kn;
|
|
1574
|
-
|
|
1574
|
+
u[102] === On ? kn = u[103] : (kn = /* @__PURE__ */ G("h2", {
|
|
1575
1575
|
className: "shrink-0 truncate text-sm font-medium",
|
|
1576
1576
|
children: On
|
|
1577
|
-
}),
|
|
1577
|
+
}), u[102] = On, u[103] = kn);
|
|
1578
1578
|
let An;
|
|
1579
|
-
|
|
1579
|
+
u[104] !== L || u[105] !== q || u[106] !== X || u[107] !== Y || u[108] !== I || u[109] !== Z || u[110] !== je ? (An = Y ? null : /* @__PURE__ */ G("p", {
|
|
1580
1580
|
className: "truncate text-xs text-muted-foreground",
|
|
1581
1581
|
children: X ? L("Select an element · Esc to cancel") : Z ? L("{label} · {count, plural, one {{count} use} other {{count} uses}}", {
|
|
1582
1582
|
label: q ? nt(Z, I) : fe(Z, I),
|
|
1583
1583
|
count: je ?? 0
|
|
1584
1584
|
}) : L("Select a color below")
|
|
1585
|
-
}),
|
|
1585
|
+
}), u[104] = L, u[105] = q, u[106] = X, u[107] = Y, u[108] = I, u[109] = Z, u[110] = je, u[111] = An) : An = u[111];
|
|
1586
1586
|
let jn;
|
|
1587
|
-
|
|
1587
|
+
u[112] !== kn || u[113] !== An ? (jn = /* @__PURE__ */ K("div", {
|
|
1588
1588
|
className: "flex min-w-0 flex-1 items-baseline gap-2",
|
|
1589
1589
|
children: [kn, An]
|
|
1590
|
-
}),
|
|
1590
|
+
}), u[112] = kn, u[113] = An, u[114] = jn) : jn = u[114];
|
|
1591
1591
|
let Mn;
|
|
1592
|
-
|
|
1592
|
+
u[115] !== L || u[116] !== X ? (Mn = L(X ? "Cancel inspecting app colors" : "Inspect app colors"), u[115] = L, u[116] = X, u[117] = Mn) : Mn = u[117];
|
|
1593
1593
|
let Nn = X ? "secondary" : "ghost", Pn;
|
|
1594
|
-
|
|
1594
|
+
u[118] === X ? Pn = u[119] : (Pn = () => {
|
|
1595
1595
|
X ? Ft() : ke(!0);
|
|
1596
|
-
},
|
|
1596
|
+
}, u[118] = X, u[119] = Pn);
|
|
1597
1597
|
let Fn;
|
|
1598
|
-
|
|
1598
|
+
u[120] === Symbol.for("react.memo_cache_sentinel") ? (Fn = /* @__PURE__ */ G(k, {}), u[120] = Fn) : Fn = u[120];
|
|
1599
1599
|
let In;
|
|
1600
|
-
|
|
1600
|
+
u[121] !== L || u[122] !== X ? (In = L(X ? "Cancel" : "Inspect"), u[121] = L, u[122] = X, u[123] = In) : In = u[123];
|
|
1601
1601
|
let Ln;
|
|
1602
|
-
|
|
1602
|
+
u[124] !== X || u[125] !== Mn || u[126] !== Nn || u[127] !== Pn || u[128] !== In ? (Ln = /* @__PURE__ */ G(d, { render: /* @__PURE__ */ K(o, {
|
|
1603
1603
|
"aria-label": Mn,
|
|
1604
1604
|
"aria-pressed": X,
|
|
1605
1605
|
size: "xs",
|
|
1606
1606
|
variant: Nn,
|
|
1607
1607
|
onClick: Pn,
|
|
1608
1608
|
children: [Fn, In]
|
|
1609
|
-
}) }),
|
|
1609
|
+
}) }), u[124] = X, u[125] = Mn, u[126] = Nn, u[127] = Pn, u[128] = In, u[129] = Ln) : Ln = u[129];
|
|
1610
1610
|
let Rn;
|
|
1611
|
-
|
|
1611
|
+
u[130] !== L || u[131] !== X ? (Rn = L(X ? "Cancel and clear the selection" : "Pick a color from the app"), u[130] = L, u[131] = X, u[132] = Rn) : Rn = u[132];
|
|
1612
1612
|
let zn;
|
|
1613
|
-
|
|
1613
|
+
u[133] === Rn ? zn = u[134] : (zn = /* @__PURE__ */ G(s, {
|
|
1614
1614
|
"data-theme-editor-panel": "",
|
|
1615
1615
|
children: Rn
|
|
1616
|
-
}),
|
|
1616
|
+
}), u[133] = Rn, u[134] = zn);
|
|
1617
1617
|
let Bn;
|
|
1618
|
-
|
|
1618
|
+
u[135] !== Ln || u[136] !== zn ? (Bn = /* @__PURE__ */ K(c, { children: [Ln, zn] }), u[135] = Ln, u[136] = zn, u[137] = Bn) : Bn = u[137];
|
|
1619
1619
|
let Vn;
|
|
1620
|
-
|
|
1620
|
+
u[138] !== L || u[139] !== Y ? (Vn = L(Y ? "Expand the theme editor" : "Minimize the theme editor"), u[138] = L, u[139] = Y, u[140] = Vn) : Vn = u[140];
|
|
1621
1621
|
let Hn, Un;
|
|
1622
|
-
|
|
1622
|
+
u[141] === Y ? (Hn = u[142], Un = u[143]) : (Hn = () => Ee(!Y), Un = G(Y ? O : ne, {}), u[141] = Y, u[142] = Hn, u[143] = Un);
|
|
1623
1623
|
let Wn;
|
|
1624
|
-
|
|
1624
|
+
u[144] !== Vn || u[145] !== Hn || u[146] !== Un ? (Wn = /* @__PURE__ */ G(o, {
|
|
1625
1625
|
"aria-label": Vn,
|
|
1626
1626
|
size: "icon-xs",
|
|
1627
1627
|
variant: "ghost",
|
|
1628
1628
|
onClick: Hn,
|
|
1629
1629
|
children: Un
|
|
1630
|
-
}),
|
|
1630
|
+
}), u[144] = Vn, u[145] = Hn, u[146] = Un, u[147] = Wn) : Wn = u[147];
|
|
1631
1631
|
let Gn;
|
|
1632
|
-
|
|
1632
|
+
u[148] === L ? Gn = u[149] : (Gn = L("Close the theme editor"), u[148] = L, u[149] = Gn);
|
|
1633
1633
|
let Kn;
|
|
1634
|
-
|
|
1634
|
+
u[150] === _ ? Kn = u[151] : (Kn = () => _(!1), u[150] = _, u[151] = Kn);
|
|
1635
1635
|
let qn;
|
|
1636
|
-
|
|
1636
|
+
u[152] === Symbol.for("react.memo_cache_sentinel") ? (qn = /* @__PURE__ */ G(M, {}), u[152] = qn) : qn = u[152];
|
|
1637
1637
|
let Jn;
|
|
1638
|
-
|
|
1638
|
+
u[153] !== Gn || u[154] !== Kn ? (Jn = /* @__PURE__ */ G(o, {
|
|
1639
1639
|
"aria-label": Gn,
|
|
1640
1640
|
size: "icon-xs",
|
|
1641
1641
|
variant: "ghost",
|
|
1642
1642
|
onClick: Kn,
|
|
1643
1643
|
children: qn
|
|
1644
|
-
}),
|
|
1644
|
+
}), u[153] = Gn, u[154] = Kn, u[155] = Jn) : Jn = u[155];
|
|
1645
1645
|
let Yn;
|
|
1646
|
-
|
|
1646
|
+
u[156] !== jn || u[157] !== Bn || u[158] !== Wn || u[159] !== Jn ? (Yn = /* @__PURE__ */ K("div", {
|
|
1647
1647
|
className: "flex cursor-grab touch-none select-none items-center gap-1 border-b border-border/70 px-3 py-2 active:cursor-grabbing",
|
|
1648
1648
|
onPointerCancel: fn,
|
|
1649
1649
|
onPointerDown: cn,
|
|
@@ -1655,7 +1655,7 @@ function pt(e) {
|
|
|
1655
1655
|
Wn,
|
|
1656
1656
|
Jn
|
|
1657
1657
|
]
|
|
1658
|
-
}),
|
|
1658
|
+
}), u[156] = jn, u[157] = Bn, u[158] = Wn, u[159] = Jn, u[160] = Yn) : Yn = u[160];
|
|
1659
1659
|
let Xn = Y ? null : /* @__PURE__ */ K(ce, { children: [
|
|
1660
1660
|
/* @__PURE__ */ K("div", {
|
|
1661
1661
|
className: "min-h-0 flex-1 space-y-3 overflow-y-auto py-3 pl-3 pr-1.5",
|
|
@@ -1673,15 +1673,15 @@ function pt(e) {
|
|
|
1673
1673
|
}),
|
|
1674
1674
|
/* @__PURE__ */ K("div", {
|
|
1675
1675
|
className: "space-y-2",
|
|
1676
|
-
children: [/* @__PURE__ */ K(
|
|
1676
|
+
children: [/* @__PURE__ */ K(o, {
|
|
1677
1677
|
"aria-expanded": be,
|
|
1678
1678
|
size: "xs",
|
|
1679
1679
|
variant: "ghost",
|
|
1680
1680
|
onClick: () => Ce(!be),
|
|
1681
|
-
children: [G(be ? ne : te, {}), /* @__PURE__ */ G(
|
|
1681
|
+
children: [G(be ? ne : te, {}), /* @__PURE__ */ G(a, { children: "Custom CSS" })]
|
|
1682
1682
|
}), be ? /* @__PURE__ */ K(ce, { children: [/* @__PURE__ */ G("p", {
|
|
1683
1683
|
className: "text-xs text-muted-foreground",
|
|
1684
|
-
children: /* @__PURE__ */ G(
|
|
1684
|
+
children: /* @__PURE__ */ G(a, { children: "Saved with this theme and included when you export it. Web and desktop only. Rules that load remote files are ignored." })
|
|
1685
1685
|
}), /* @__PURE__ */ G(Se, {
|
|
1686
1686
|
value: ve,
|
|
1687
1687
|
onChange: ye
|
|
@@ -1691,16 +1691,16 @@ function pt(e) {
|
|
|
1691
1691
|
}),
|
|
1692
1692
|
/* @__PURE__ */ K("div", {
|
|
1693
1693
|
className: "flex items-center justify-end gap-2 border-t border-border/70 px-3 py-2",
|
|
1694
|
-
children: [/* @__PURE__ */ G(
|
|
1694
|
+
children: [/* @__PURE__ */ G(o, {
|
|
1695
1695
|
size: "sm",
|
|
1696
1696
|
variant: "ghost",
|
|
1697
1697
|
onClick: () => _(!1),
|
|
1698
|
-
children: /* @__PURE__ */ G(
|
|
1699
|
-
}), /* @__PURE__ */ G(
|
|
1698
|
+
children: /* @__PURE__ */ G(a, { children: "Cancel" })
|
|
1699
|
+
}), /* @__PURE__ */ G(o, {
|
|
1700
1700
|
disabled: !z.trim(),
|
|
1701
1701
|
size: "sm",
|
|
1702
1702
|
onClick: Wt,
|
|
1703
|
-
children: R ? $ ? L("Merge into “{label}”", { label: $.label }) : L("Save changes") : $ ? /* @__PURE__ */ K(ce, { children: [/* @__PURE__ */ G(j, {}), L(V === "light" ? "Add light palette" : "Add dark palette")] }) : /* @__PURE__ */ K(ce, { children: [/* @__PURE__ */ G(A, {}), /* @__PURE__ */ G(
|
|
1703
|
+
children: R ? $ ? L("Merge into “{label}”", { label: $.label }) : L("Save changes") : $ ? /* @__PURE__ */ K(ce, { children: [/* @__PURE__ */ G(j, {}), L(V === "light" ? "Add light palette" : "Add dark palette")] }) : /* @__PURE__ */ K(ce, { children: [/* @__PURE__ */ G(A, {}), /* @__PURE__ */ G(a, { children: "Create theme" })] })
|
|
1704
1704
|
})]
|
|
1705
1705
|
}),
|
|
1706
1706
|
/* @__PURE__ */ G("div", {
|
|
@@ -1721,7 +1721,7 @@ function pt(e) {
|
|
|
1721
1721
|
})
|
|
1722
1722
|
})
|
|
1723
1723
|
] }), Zn;
|
|
1724
|
-
return
|
|
1724
|
+
return u[161] !== yn || u[162] !== Sn || u[163] !== Cn || u[164] !== Dn || u[165] !== Yn || u[166] !== Xn ? (Zn = /* @__PURE__ */ K("div", {
|
|
1725
1725
|
"aria-label": yn,
|
|
1726
1726
|
className: Sn,
|
|
1727
1727
|
"data-theme-editor-panel": !0,
|
|
@@ -1730,7 +1730,7 @@ function pt(e) {
|
|
|
1730
1730
|
role: "dialog",
|
|
1731
1731
|
style: Dn,
|
|
1732
1732
|
children: [Yn, Xn]
|
|
1733
|
-
}),
|
|
1733
|
+
}), u[161] = yn, u[162] = Sn, u[163] = Cn, u[164] = Dn, u[165] = Yn, u[166] = Xn, u[167] = Zn) : Zn = u[167], Zn;
|
|
1734
1734
|
}
|
|
1735
1735
|
function mt(e) {
|
|
1736
1736
|
return e.families.length > 0;
|