lucent-ui 0.35.0 → 0.36.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/{LucentProvider-BoiXYqA4.js → LucentProvider-F0EN_7TD.js} +292 -269
- package/dist/LucentProvider-LqNc0AxD.cjs +109 -0
- package/dist/devtools.cjs +3 -3
- package/dist/devtools.js +423 -405
- package/dist/index.cjs +6 -4
- package/dist/index.d.ts +11 -12
- package/dist/index.js +20 -11
- package/dist-server/src/components/molecules/Card/Card.manifest.js +1 -1
- package/dist-server/src/components/molecules/PageLayout/PageLayout.manifest.js +6 -5
- package/package.json +1 -1
- package/dist/LucentProvider-we0nRXn-.cjs +0 -109
package/dist/devtools.js
CHANGED
|
@@ -1,86 +1,90 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t, Fragment as fe } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { _ as ye, $ as S, T as
|
|
2
|
+
import { useState as z, useRef as ue, useCallback as L, useEffect as W, useMemo as be, createContext as ve } from "react";
|
|
3
|
+
import { createPortal as xe } from "react-dom";
|
|
4
|
+
import { _ as ye, $ as S, T as y, C as P, B as F, e as j, I as ge, a0 as Se, a1 as ke, z as we, K as Ce, M as ze, m as Be, F as Fe, u as Te, Y as Me, x as Re, a as M, g as De, a2 as Oe, S as Le, d as ae, p as Pe, h as Ee, f as Ie, b as Ae } from "./LucentProvider-F0EN_7TD.js";
|
|
5
5
|
function Ge() {
|
|
6
|
-
const { tokens: e } = ye(), [n,
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
document.documentElement.style.setProperty(S(f), d),
|
|
10
|
-
}, []),
|
|
11
|
-
document.documentElement.style.removeProperty(S(f)),
|
|
6
|
+
const { tokens: e } = ye(), [n, a] = z({}), l = ue(n);
|
|
7
|
+
l.current = n;
|
|
8
|
+
const s = L((f, d) => {
|
|
9
|
+
document.documentElement.style.setProperty(S(f), d), a((b) => ({ ...b, [f]: d }));
|
|
10
|
+
}, []), i = L((f) => {
|
|
11
|
+
document.documentElement.style.removeProperty(S(f)), a((d) => {
|
|
12
12
|
const b = { ...d };
|
|
13
13
|
return delete b[f], b;
|
|
14
14
|
});
|
|
15
|
-
}, []),
|
|
16
|
-
for (const f of Object.keys(
|
|
15
|
+
}, []), g = L(() => {
|
|
16
|
+
for (const f of Object.keys(l.current))
|
|
17
17
|
document.documentElement.style.removeProperty(S(f));
|
|
18
|
-
|
|
18
|
+
a({});
|
|
19
19
|
}, []);
|
|
20
20
|
return {
|
|
21
21
|
tokens: e,
|
|
22
22
|
overrides: n,
|
|
23
23
|
overrideCount: Object.keys(n).length,
|
|
24
|
-
setOverride:
|
|
25
|
-
removeOverride:
|
|
26
|
-
resetAll:
|
|
24
|
+
setOverride: s,
|
|
25
|
+
removeOverride: i,
|
|
26
|
+
resetAll: g
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function u(e) {
|
|
30
30
|
return { key: e, controlType: "color" };
|
|
31
31
|
}
|
|
32
|
-
function m(e, n,
|
|
33
|
-
return { key: e, controlType: "slider", sliderConfig: { min: n, max:
|
|
32
|
+
function m(e, n, a, l, s) {
|
|
33
|
+
return { key: e, controlType: "slider", sliderConfig: { min: n, max: a, step: l, unit: s } };
|
|
34
34
|
}
|
|
35
35
|
function p(e) {
|
|
36
36
|
return { key: e, controlType: "text" };
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const oe = [
|
|
39
39
|
{
|
|
40
40
|
label: "Colors",
|
|
41
41
|
defaultExpanded: !0,
|
|
42
42
|
subgroups: [
|
|
43
|
+
{
|
|
44
|
+
label: "Navigation",
|
|
45
|
+
tokens: [u("navigation")]
|
|
46
|
+
},
|
|
43
47
|
{
|
|
44
48
|
label: "Background",
|
|
45
|
-
tokens: [
|
|
49
|
+
tokens: [u("bgBase"), u("bgSubtle"), u("bgOverlay")]
|
|
46
50
|
},
|
|
47
51
|
{
|
|
48
52
|
label: "Surface",
|
|
49
53
|
tokens: [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
u("surface"),
|
|
55
|
+
u("surfaceSecondary"),
|
|
56
|
+
u("surfaceRaised"),
|
|
57
|
+
u("surfaceOverlay"),
|
|
58
|
+
u("surfaceTint")
|
|
55
59
|
]
|
|
56
60
|
},
|
|
57
61
|
{
|
|
58
62
|
label: "Border",
|
|
59
|
-
tokens: [
|
|
63
|
+
tokens: [u("borderDefault"), u("borderSubtle"), u("borderStrong"), u("controlTrack")]
|
|
60
64
|
},
|
|
61
65
|
{
|
|
62
66
|
label: "Text",
|
|
63
|
-
tokens: [
|
|
67
|
+
tokens: [u("textPrimary"), u("textSecondary"), u("textDisabled"), u("textInverse")]
|
|
64
68
|
},
|
|
65
69
|
{
|
|
66
70
|
label: "Accent",
|
|
67
|
-
tokens: [
|
|
71
|
+
tokens: [u("accentDefault"), u("accentHover"), u("accentSubtle"), u("accentBorder"), u("accentFg")]
|
|
68
72
|
},
|
|
69
73
|
{
|
|
70
74
|
label: "Success",
|
|
71
|
-
tokens: [
|
|
75
|
+
tokens: [u("successDefault"), u("successSubtle"), u("successText")]
|
|
72
76
|
},
|
|
73
77
|
{
|
|
74
78
|
label: "Warning",
|
|
75
|
-
tokens: [
|
|
79
|
+
tokens: [u("warningDefault"), u("warningSubtle"), u("warningText")]
|
|
76
80
|
},
|
|
77
81
|
{
|
|
78
82
|
label: "Danger",
|
|
79
|
-
tokens: [
|
|
83
|
+
tokens: [u("dangerDefault"), u("dangerHover"), u("dangerSubtle"), u("dangerText")]
|
|
80
84
|
},
|
|
81
85
|
{
|
|
82
86
|
label: "Info",
|
|
83
|
-
tokens: [
|
|
87
|
+
tokens: [u("infoDefault"), u("infoSubtle"), u("infoText")]
|
|
84
88
|
}
|
|
85
89
|
]
|
|
86
90
|
},
|
|
@@ -164,71 +168,71 @@ function $e(e) {
|
|
|
164
168
|
return Object.keys(e).length === 0 ? `<LucentProvider>
|
|
165
169
|
{children}
|
|
166
170
|
</LucentProvider>` : `<LucentProvider tokens={{
|
|
167
|
-
${Object.entries(e).map(([
|
|
171
|
+
${Object.entries(e).map(([a, l]) => ` ${a}: '${l}'`).join(`,
|
|
168
172
|
`)}
|
|
169
173
|
}}>
|
|
170
174
|
{children}
|
|
171
175
|
</LucentProvider>`;
|
|
172
176
|
}
|
|
173
|
-
async function
|
|
177
|
+
async function _e(e) {
|
|
174
178
|
try {
|
|
175
179
|
return await navigator.clipboard.writeText(e), !0;
|
|
176
180
|
} catch {
|
|
177
181
|
return !1;
|
|
178
182
|
}
|
|
179
183
|
}
|
|
180
|
-
function
|
|
181
|
-
return /* @__PURE__ */ c("div", { style:
|
|
182
|
-
/* @__PURE__ */ t(
|
|
184
|
+
function je({ label: e, value: n, isOverridden: a, onChange: l, onReset: s }) {
|
|
185
|
+
return /* @__PURE__ */ c("div", { style: Ne, children: [
|
|
186
|
+
/* @__PURE__ */ t(y, { as: "code", size: "xs", family: "mono", color: "secondary", style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", marginRight: 8 }, children: e }),
|
|
183
187
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
|
|
184
188
|
/* @__PURE__ */ t(
|
|
185
|
-
|
|
189
|
+
P,
|
|
186
190
|
{
|
|
187
191
|
value: n,
|
|
188
|
-
onChange:
|
|
192
|
+
onChange: l,
|
|
189
193
|
size: "sm"
|
|
190
194
|
}
|
|
191
195
|
),
|
|
192
|
-
|
|
196
|
+
a && /* @__PURE__ */ t(F, { variant: "ghost", size: "2xs", onClick: s, "aria-label": "Reset to default", children: /* @__PURE__ */ t("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ t("path", { d: "M1 1l8 8M9 1l-8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }) })
|
|
193
197
|
] })
|
|
194
198
|
] });
|
|
195
199
|
}
|
|
196
|
-
const
|
|
200
|
+
const Ne = {
|
|
197
201
|
display: "flex",
|
|
198
202
|
alignItems: "center",
|
|
199
203
|
justifyContent: "space-between",
|
|
200
204
|
padding: "4px 0",
|
|
201
205
|
minHeight: 28
|
|
202
206
|
};
|
|
203
|
-
function
|
|
207
|
+
function We({
|
|
204
208
|
label: e,
|
|
205
209
|
value: n,
|
|
206
|
-
isOverridden:
|
|
207
|
-
min:
|
|
208
|
-
max:
|
|
209
|
-
step:
|
|
210
|
-
unit:
|
|
210
|
+
isOverridden: a,
|
|
211
|
+
min: l,
|
|
212
|
+
max: s,
|
|
213
|
+
step: i,
|
|
214
|
+
unit: g,
|
|
211
215
|
onChange: f,
|
|
212
216
|
onReset: d
|
|
213
217
|
}) {
|
|
214
218
|
const b = parseFloat(n) || 0;
|
|
215
219
|
return /* @__PURE__ */ c("div", { style: Ke, children: [
|
|
216
|
-
/* @__PURE__ */ t(
|
|
220
|
+
/* @__PURE__ */ t(y, { as: "code", size: "xs", family: "mono", color: "secondary", style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", marginRight: 8 }, children: e }),
|
|
217
221
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
|
|
218
222
|
/* @__PURE__ */ t(
|
|
219
|
-
|
|
223
|
+
j,
|
|
220
224
|
{
|
|
221
|
-
min:
|
|
222
|
-
max:
|
|
223
|
-
step:
|
|
225
|
+
min: l,
|
|
226
|
+
max: s,
|
|
227
|
+
step: i,
|
|
224
228
|
value: b,
|
|
225
|
-
onChange: (v) => f(`${v}${
|
|
229
|
+
onChange: (v) => f(`${v}${g}`),
|
|
226
230
|
size: "sm",
|
|
227
231
|
style: { width: 80 }
|
|
228
232
|
}
|
|
229
233
|
),
|
|
230
|
-
/* @__PURE__ */ t(
|
|
231
|
-
|
|
234
|
+
/* @__PURE__ */ t(y, { as: "code", size: "xs", family: "mono", color: "onAccent", style: { width: 52, textAlign: "right", flexShrink: 0, color: "var(--lucent-accent-default)" }, children: n }),
|
|
235
|
+
a && /* @__PURE__ */ t(F, { variant: "ghost", size: "2xs", onClick: d, "aria-label": "Reset to default", children: /* @__PURE__ */ t("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ t("path", { d: "M1 1l8 8M9 1l-8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }) })
|
|
232
236
|
] })
|
|
233
237
|
] });
|
|
234
238
|
}
|
|
@@ -239,71 +243,67 @@ const Ke = {
|
|
|
239
243
|
padding: "4px 0",
|
|
240
244
|
minHeight: 28
|
|
241
245
|
};
|
|
242
|
-
function Ue({ label: e, value: n, isOverridden:
|
|
243
|
-
return /* @__PURE__ */ c("div", { style:
|
|
244
|
-
/* @__PURE__ */ t(
|
|
246
|
+
function Ue({ label: e, value: n, isOverridden: a, onChange: l, onReset: s }) {
|
|
247
|
+
return /* @__PURE__ */ c("div", { style: Je, children: [
|
|
248
|
+
/* @__PURE__ */ t(y, { as: "code", size: "xs", family: "mono", color: "secondary", style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", marginRight: 8 }, children: e }),
|
|
245
249
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
|
|
246
250
|
/* @__PURE__ */ t(
|
|
247
|
-
|
|
251
|
+
ge,
|
|
248
252
|
{
|
|
249
253
|
size: "sm",
|
|
250
254
|
value: n,
|
|
251
|
-
onChange: (
|
|
255
|
+
onChange: (i) => l(i.target.value),
|
|
252
256
|
style: { width: 140, fontFamily: "var(--lucent-font-family-mono)" },
|
|
253
257
|
spellCheck: !1
|
|
254
258
|
}
|
|
255
259
|
),
|
|
256
|
-
|
|
260
|
+
a && /* @__PURE__ */ t(F, { variant: "ghost", size: "2xs", onClick: s, "aria-label": "Reset to default", children: /* @__PURE__ */ t("svg", { width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ t("path", { d: "M1 1l8 8M9 1l-8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }) })
|
|
257
261
|
] })
|
|
258
262
|
] });
|
|
259
263
|
}
|
|
260
|
-
const
|
|
264
|
+
const Je = {
|
|
261
265
|
display: "flex",
|
|
262
266
|
alignItems: "center",
|
|
263
267
|
justifyContent: "space-between",
|
|
264
268
|
padding: "4px 0",
|
|
265
269
|
minHeight: 28
|
|
266
270
|
};
|
|
267
|
-
function
|
|
268
|
-
const
|
|
271
|
+
function J(e, n) {
|
|
272
|
+
const a = De(e), l = Oe(e, a), s = n === "light", i = M(l, s ? 0.05 : -0.07), g = M(l, s ? 0.85 : -0.6), f = M(l, s ? -0.15 : 0.15);
|
|
269
273
|
return {
|
|
270
|
-
accentDefault:
|
|
271
|
-
accentFg:
|
|
272
|
-
accentHover:
|
|
273
|
-
accentSubtle:
|
|
274
|
+
accentDefault: l,
|
|
275
|
+
accentFg: a,
|
|
276
|
+
accentHover: i,
|
|
277
|
+
accentSubtle: g,
|
|
274
278
|
accentBorder: f
|
|
275
279
|
};
|
|
276
280
|
}
|
|
277
|
-
function
|
|
278
|
-
const
|
|
281
|
+
function H(e, n) {
|
|
282
|
+
const a = n === "light", l = M(e, a ? -0.02 : 0.02), s = M(e, a ? -0.04 : 0.03);
|
|
279
283
|
return {
|
|
280
284
|
bgBase: e,
|
|
281
|
-
bgSubtle:
|
|
282
|
-
surfaceTint:
|
|
283
|
-
surface: d,
|
|
284
|
-
surfaceSecondary: b,
|
|
285
|
-
surfaceRaised: v,
|
|
286
|
-
surfaceOverlay: x
|
|
285
|
+
bgSubtle: l,
|
|
286
|
+
surfaceTint: s
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
const
|
|
289
|
+
function q(e, n) {
|
|
290
|
+
const a = n === "light";
|
|
291
291
|
return {
|
|
292
292
|
borderDefault: e,
|
|
293
|
-
borderSubtle:
|
|
294
|
-
borderStrong:
|
|
293
|
+
borderSubtle: M(e, a ? 0.05 : -0.02),
|
|
294
|
+
borderStrong: M(e, a ? -0.27 : 0.19)
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
const
|
|
297
|
+
function X(e, n) {
|
|
298
|
+
const a = n === "light";
|
|
299
299
|
return {
|
|
300
300
|
surface: e,
|
|
301
|
-
surfaceSecondary:
|
|
302
|
-
surfaceRaised:
|
|
303
|
-
surfaceOverlay:
|
|
301
|
+
surfaceSecondary: M(e, a ? -0.04 : 0.03),
|
|
302
|
+
surfaceRaised: M(e, a ? 0 : 0.06),
|
|
303
|
+
surfaceOverlay: M(e, a ? 0 : 0.06)
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
|
-
const
|
|
306
|
+
const He = [
|
|
307
307
|
{ key: "fontSizeXs", step: -2 },
|
|
308
308
|
{ key: "fontSizeSm", step: -1 },
|
|
309
309
|
{ key: "fontSizeMd", step: 0 },
|
|
@@ -313,21 +313,21 @@ const Je = [
|
|
|
313
313
|
{ key: "fontSize3xl", step: 4 }
|
|
314
314
|
];
|
|
315
315
|
function Z(e, n) {
|
|
316
|
-
const
|
|
317
|
-
for (const { key:
|
|
318
|
-
const
|
|
319
|
-
|
|
316
|
+
const a = {};
|
|
317
|
+
for (const { key: l, step: s } of He) {
|
|
318
|
+
const i = e * Math.pow(n, s), g = Math.round(i * 1e3) / 1e3;
|
|
319
|
+
a[l] = `${g}rem`;
|
|
320
320
|
}
|
|
321
|
-
return
|
|
321
|
+
return a;
|
|
322
322
|
}
|
|
323
|
-
const
|
|
323
|
+
const qe = [
|
|
324
324
|
{ label: "Minor Second", ratio: 1.067 },
|
|
325
325
|
{ label: "Major Second", ratio: 1.125 },
|
|
326
326
|
{ label: "Minor Third", ratio: 1.2 },
|
|
327
327
|
{ label: "Major Third", ratio: 1.25 },
|
|
328
328
|
{ label: "Perfect Fourth", ratio: 1.333 },
|
|
329
329
|
{ label: "Golden Ratio", ratio: 1.618 }
|
|
330
|
-
],
|
|
330
|
+
], Xe = [
|
|
331
331
|
{ key: "space0", rem: 0 },
|
|
332
332
|
{ key: "space1", rem: 0.25 },
|
|
333
333
|
{ key: "space2", rem: 0.5 },
|
|
@@ -342,15 +342,15 @@ const Xe = [
|
|
|
342
342
|
{ key: "space20", rem: 5 },
|
|
343
343
|
{ key: "space24", rem: 6 }
|
|
344
344
|
];
|
|
345
|
-
function
|
|
345
|
+
function re(e) {
|
|
346
346
|
const n = {};
|
|
347
|
-
for (const { key:
|
|
348
|
-
if (
|
|
349
|
-
n[
|
|
347
|
+
for (const { key: a, rem: l } of Xe) {
|
|
348
|
+
if (l === 0) {
|
|
349
|
+
n[a] = "0px";
|
|
350
350
|
continue;
|
|
351
351
|
}
|
|
352
|
-
const
|
|
353
|
-
n[
|
|
352
|
+
const s = Math.round(l * e * 1e3) / 1e3;
|
|
353
|
+
n[a] = `${s}rem`;
|
|
354
354
|
}
|
|
355
355
|
return n;
|
|
356
356
|
}
|
|
@@ -362,29 +362,29 @@ const Ve = [
|
|
|
362
362
|
];
|
|
363
363
|
function le(e) {
|
|
364
364
|
const n = {};
|
|
365
|
-
for (const { key:
|
|
366
|
-
let
|
|
365
|
+
for (const { key: a, sharp: l, rounded: s, pill: i } of Ve) {
|
|
366
|
+
let g;
|
|
367
367
|
if (e <= 0.5) {
|
|
368
368
|
const d = e / 0.5;
|
|
369
|
-
|
|
369
|
+
g = l + (s - l) * d;
|
|
370
370
|
} else {
|
|
371
371
|
const d = (e - 0.5) / 0.5;
|
|
372
|
-
|
|
372
|
+
g = s + (i - s) * d;
|
|
373
373
|
}
|
|
374
|
-
const f = Math.round(
|
|
375
|
-
n[
|
|
374
|
+
const f = Math.round(g * 1e3) / 1e3;
|
|
375
|
+
n[a] = `${f}rem`;
|
|
376
376
|
}
|
|
377
377
|
return n;
|
|
378
378
|
}
|
|
379
379
|
const Ye = {
|
|
380
|
-
flat:
|
|
380
|
+
flat: Re,
|
|
381
381
|
subtle: Me,
|
|
382
382
|
elevated: Te,
|
|
383
|
-
liquidGlass:
|
|
384
|
-
brutalist:
|
|
385
|
-
neumorphic:
|
|
386
|
-
natural:
|
|
387
|
-
glow:
|
|
383
|
+
liquidGlass: Fe,
|
|
384
|
+
brutalist: Be,
|
|
385
|
+
neumorphic: ze,
|
|
386
|
+
natural: Ce,
|
|
387
|
+
glow: we
|
|
388
388
|
}, Ze = [
|
|
389
389
|
{ value: "flat", label: "Flat" },
|
|
390
390
|
{ value: "default", label: "Default" },
|
|
@@ -398,11 +398,11 @@ const Ye = {
|
|
|
398
398
|
];
|
|
399
399
|
function V(e, n) {
|
|
400
400
|
if (e === "default")
|
|
401
|
-
return n === "dark" ?
|
|
402
|
-
const
|
|
403
|
-
return n === "dark" ?
|
|
401
|
+
return n === "dark" ? Se : ke;
|
|
402
|
+
const a = Ye[e];
|
|
403
|
+
return n === "dark" ? a.dark : a.light;
|
|
404
404
|
}
|
|
405
|
-
const
|
|
405
|
+
const ie = /* @__PURE__ */ new Set(), Qe = {
|
|
406
406
|
Inter: "Inter:wght@300;400;500;600;700",
|
|
407
407
|
Geist: "Geist:wght@300;400;500;600;700",
|
|
408
408
|
"Plus Jakarta Sans": "Plus+Jakarta+Sans:wght@300;400;500;600;700",
|
|
@@ -418,17 +418,17 @@ const se = /* @__PURE__ */ new Set(), Qe = {
|
|
|
418
418
|
"DM Mono": "DM+Mono:wght@400;500",
|
|
419
419
|
Georama: "Georama:wght@400;500;600;700"
|
|
420
420
|
};
|
|
421
|
-
function
|
|
422
|
-
var
|
|
423
|
-
const n = e.match(/"([^"]+)"/),
|
|
424
|
-
if (!
|
|
425
|
-
const
|
|
426
|
-
if (!
|
|
427
|
-
|
|
428
|
-
const
|
|
429
|
-
|
|
421
|
+
function N(e) {
|
|
422
|
+
var i;
|
|
423
|
+
const n = e.match(/"([^"]+)"/), a = n ? n[1] : (i = e.split(",")[0]) == null ? void 0 : i.trim();
|
|
424
|
+
if (!a || ie.has(a)) return;
|
|
425
|
+
const l = Qe[a];
|
|
426
|
+
if (!l) return;
|
|
427
|
+
ie.add(a);
|
|
428
|
+
const s = document.createElement("link");
|
|
429
|
+
s.rel = "stylesheet", s.href = `https://fonts.googleapis.com/css2?family=${l}&display=swap`, document.head.appendChild(s);
|
|
430
430
|
}
|
|
431
|
-
const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', tt = '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', nt = '"Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
431
|
+
const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', tt = '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', nt = '"Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', at = '"JetBrains Mono", "Fira Code", "Cascadia Code", monospace', ot = '"Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif', se = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', rt = '"Outfit", -apple-system, BlinkMacSystemFont, sans-serif', lt = '"Sora", -apple-system, BlinkMacSystemFont, sans-serif', it = '"Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif', ce = [
|
|
432
432
|
// ── Foundations ──
|
|
433
433
|
{
|
|
434
434
|
name: "Default",
|
|
@@ -438,17 +438,17 @@ const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sa
|
|
|
438
438
|
typeBase: 1,
|
|
439
439
|
typeRatio: 1.125,
|
|
440
440
|
fontFamily: et,
|
|
441
|
-
colors: { light: { accent: "#111827", bg: "#
|
|
441
|
+
colors: { light: { accent: "#111827", navigation: "#f4f6f8", bg: "#ffffff", surface: "#ffffff", border: "#e5e7eb" }, dark: { accent: "#f9fafb", navigation: "#0e1015", bg: "#111318", surface: "#191c22", border: "#252830" } }
|
|
442
442
|
},
|
|
443
443
|
{
|
|
444
444
|
name: "Modern",
|
|
445
|
-
roundness: 0.
|
|
446
|
-
density:
|
|
447
|
-
shadow: "
|
|
445
|
+
roundness: 0.75,
|
|
446
|
+
density: 0.99,
|
|
447
|
+
shadow: "liquidGlass",
|
|
448
448
|
typeBase: 1,
|
|
449
|
-
typeRatio: 1.
|
|
449
|
+
typeRatio: 1.25,
|
|
450
450
|
fontFamily: tt,
|
|
451
|
-
colors: { light: { accent: "#
|
|
451
|
+
colors: { light: { accent: "#978AE7", navigation: "#dbd8e9", bg: "#FFFFFF", surface: "#f7f7f7", border: "#e0e0e0" }, dark: { accent: "#b8aef0", navigation: "#110f1c", bg: "#131118", surface: "#1c1a24", border: "#2a2834" } }
|
|
452
452
|
},
|
|
453
453
|
// ── Design Personalities ──
|
|
454
454
|
{
|
|
@@ -458,8 +458,8 @@ const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sa
|
|
|
458
458
|
shadow: "liquidGlass",
|
|
459
459
|
typeBase: 1.0625,
|
|
460
460
|
typeRatio: 1.2,
|
|
461
|
-
fontFamily:
|
|
462
|
-
colors: { light: { accent: "#
|
|
461
|
+
fontFamily: se,
|
|
462
|
+
colors: { light: { accent: "#0c8fca", navigation: "#ebf1ff", bg: "#f1f4ff", surface: "#ffffff", border: "#d9e4ec" }, dark: { accent: "#38bdf8", navigation: "#0a0e16", bg: "#0e1420", surface: "#16202c", border: "#1e2c38" } }
|
|
463
463
|
},
|
|
464
464
|
{
|
|
465
465
|
name: "Bento",
|
|
@@ -469,7 +469,7 @@ const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sa
|
|
|
469
469
|
typeBase: 0.9375,
|
|
470
470
|
typeRatio: 1.2,
|
|
471
471
|
fontFamily: nt,
|
|
472
|
-
colors: { light: { accent: "#0d9488", bg: "#
|
|
472
|
+
colors: { light: { accent: "#0d9488", navigation: "#f9fbfc", bg: "#eef2f5", surface: "#ffffff", border: "#d4e5e0" }, dark: { accent: "#2dd4bf", navigation: "#0c1210", bg: "#101a16", surface: "#182822", border: "#263e36" } }
|
|
473
473
|
},
|
|
474
474
|
{
|
|
475
475
|
name: "Brutalist",
|
|
@@ -478,18 +478,18 @@ const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sa
|
|
|
478
478
|
shadow: "brutalist",
|
|
479
479
|
typeBase: 1.125,
|
|
480
480
|
typeRatio: 1.25,
|
|
481
|
-
fontFamily:
|
|
482
|
-
colors: { light: { accent: "#ef4444", bg: "#
|
|
481
|
+
fontFamily: ot,
|
|
482
|
+
colors: { light: { accent: "#ef4444", navigation: "#fff9f7", bg: "#f0ebe8", surface: "#ffffff", border: "#e9ddd8" }, dark: { accent: "#f87171", navigation: "#14100e", bg: "#1a1512", surface: "#26201c", border: "#3a302a" } }
|
|
483
483
|
},
|
|
484
484
|
{
|
|
485
485
|
name: "Terminal",
|
|
486
486
|
roundness: 0,
|
|
487
487
|
density: 0.8,
|
|
488
|
-
shadow: "
|
|
489
|
-
typeBase: 0.
|
|
488
|
+
shadow: "flat",
|
|
489
|
+
typeBase: 0.875,
|
|
490
490
|
typeRatio: 1.125,
|
|
491
|
-
fontFamily:
|
|
492
|
-
colors: { light: { accent: "#
|
|
491
|
+
fontFamily: at,
|
|
492
|
+
colors: { light: { accent: "#12d091", navigation: "#f8f8fa", bg: "#ffffff", surface: "#ffffff", border: "#dbe8df" }, dark: { accent: "#34d399", navigation: "#0e1012", bg: "#111318", surface: "#191c22", border: "#1e2e24" } }
|
|
493
493
|
},
|
|
494
494
|
{
|
|
495
495
|
name: "Soft UI",
|
|
@@ -498,8 +498,8 @@ const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sa
|
|
|
498
498
|
shadow: "neumorphic",
|
|
499
499
|
typeBase: 1,
|
|
500
500
|
typeRatio: 1.2,
|
|
501
|
-
fontFamily:
|
|
502
|
-
colors: { light: { accent: "#8b5cf6", bg: "#
|
|
501
|
+
fontFamily: rt,
|
|
502
|
+
colors: { light: { accent: "#8b5cf6", navigation: "#eee8fa", bg: "#f8f4ff", surface: "#ffffff", border: "#e2dce9" }, dark: { accent: "#a78bfa", navigation: "#120e1a", bg: "#141020", surface: "#1e1a2c", border: "#302a3e" } }
|
|
503
503
|
},
|
|
504
504
|
{
|
|
505
505
|
name: "Bloom",
|
|
@@ -509,7 +509,7 @@ const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sa
|
|
|
509
509
|
typeBase: 1.0625,
|
|
510
510
|
typeRatio: 1.25,
|
|
511
511
|
fontFamily: lt,
|
|
512
|
-
colors: { light: { accent: "#e879f9", bg: "#
|
|
512
|
+
colors: { light: { accent: "#e879f9", navigation: "#f5e8f0", bg: "#fff4f9", surface: "#ffffff", border: "#ecdde1" }, dark: { accent: "#f0abfc", navigation: "#160e14", bg: "#1a1018", surface: "#261c24", border: "#3a2c34" } }
|
|
513
513
|
},
|
|
514
514
|
{
|
|
515
515
|
name: "Minimal",
|
|
@@ -518,8 +518,8 @@ const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sa
|
|
|
518
518
|
shadow: "flat",
|
|
519
519
|
typeBase: 1,
|
|
520
520
|
typeRatio: 1.125,
|
|
521
|
-
fontFamily:
|
|
522
|
-
colors: { light: { accent: "#475569", bg: "#
|
|
521
|
+
fontFamily: it,
|
|
522
|
+
colors: { light: { accent: "#475569", navigation: "#eceef2", bg: "#f7f8fa", surface: "#ffffff", border: "#dde1e6" }, dark: { accent: "#94a3b8", navigation: "#0e1016", bg: "#11141a", surface: "#191e26", border: "#262c36" } }
|
|
523
523
|
},
|
|
524
524
|
{
|
|
525
525
|
name: "Enterprise",
|
|
@@ -528,10 +528,10 @@ const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sa
|
|
|
528
528
|
shadow: "flat",
|
|
529
529
|
typeBase: 0.9375,
|
|
530
530
|
typeRatio: 1.125,
|
|
531
|
-
fontFamily:
|
|
532
|
-
colors: { light: { accent: "#
|
|
531
|
+
fontFamily: se,
|
|
532
|
+
colors: { light: { accent: "#4182eb", navigation: "#ffffff", bg: "#f6f8fa", surface: "#ffffff", border: "#dde1e6" }, dark: { accent: "#6da6f0", navigation: "#0e1015", bg: "#111418", surface: "#181e26", border: "#262c36" } }
|
|
533
533
|
}
|
|
534
|
-
],
|
|
534
|
+
], st = [
|
|
535
535
|
{
|
|
536
536
|
label: "Brand",
|
|
537
537
|
colors: ["#111827", "#e9c96b", "#6366f1", "#8b5cf6", "#10b981", "#0d9488", "#f43f5e", "#e8624a", "#d97706", "#0ea5e9", "#475569", "#5f8c6e"]
|
|
@@ -543,13 +543,22 @@ const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sa
|
|
|
543
543
|
], ct = [
|
|
544
544
|
{
|
|
545
545
|
label: "Light",
|
|
546
|
-
colors: ["#ffffff", "#
|
|
546
|
+
colors: ["#ffffff", "#fdfcff", "#fbfdff", "#fbfefc", "#fffcfb", "#fafbfd", "#fffbfd", "#fdfbff", "#fafafa", "#f9fafb"]
|
|
547
547
|
},
|
|
548
548
|
{
|
|
549
549
|
label: "Dark",
|
|
550
|
-
colors: ["#
|
|
550
|
+
colors: ["#08090e", "#090814", "#060a12", "#060d0b", "#100806", "#060e08", "#0c0816", "#10060c", "#080a0e", "#0a0a0a"]
|
|
551
551
|
}
|
|
552
552
|
], dt = [
|
|
553
|
+
{
|
|
554
|
+
label: "Light",
|
|
555
|
+
colors: ["#f7f8f9", "#f9fafb", "#f8f7fc", "#f5f9fc", "#f5faf8", "#faf6f5", "#f5faf7", "#f8f6fc", "#f4f5f7", "#fafafa"]
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
label: "Dark",
|
|
559
|
+
colors: ["#0c0d12", "#0d0c18", "#0a0e16", "#0a110f", "#140c0a", "#0a120c", "#100c1a", "#140a10", "#0c0e12", "#0d1117"]
|
|
560
|
+
}
|
|
561
|
+
], ft = [
|
|
553
562
|
{
|
|
554
563
|
label: "Light",
|
|
555
564
|
colors: ["#ffffff", "#fafafa", "#f9fafb", "#f5f5f5", "#f3f4f6", "#f1f5f9", "#fef3c7", "#fce7f3", "#dbeafe", "#dcfce7"]
|
|
@@ -558,7 +567,7 @@ const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sa
|
|
|
558
567
|
label: "Dark",
|
|
559
568
|
colors: ["#111111", "#141414", "#1a1a1a", "#1e1e2e", "#1f2937", "#1e293b", "#18181b", "#16213e", "#1c1c1c", "#0f172a"]
|
|
560
569
|
}
|
|
561
|
-
],
|
|
570
|
+
], ut = [
|
|
562
571
|
{
|
|
563
572
|
label: "Light",
|
|
564
573
|
colors: ["#e5e7eb", "#d1d5db", "#e2e8f0", "#f3f4f6", "#d4d4d8", "#cbd5e1", "#e7e5e4", "#fde68a", "#c7d2fe", "#bbf7d0"]
|
|
@@ -568,67 +577,71 @@ const et = '"DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sa
|
|
|
568
577
|
colors: ["#27272a", "#374151", "#334155", "#3f3f46", "#1e293b", "#404040", "#44403c", "#1c1f2a", "#2d2d3f", "#1f2937"]
|
|
569
578
|
}
|
|
570
579
|
];
|
|
571
|
-
function
|
|
572
|
-
const [
|
|
573
|
-
for (const [
|
|
574
|
-
e.setOverride(
|
|
575
|
-
}, [e]), D =
|
|
576
|
-
e.resetAll(), b(
|
|
577
|
-
const
|
|
578
|
-
|
|
579
|
-
...J(
|
|
580
|
-
...
|
|
581
|
-
...X(
|
|
582
|
-
...
|
|
583
|
-
...
|
|
584
|
-
...
|
|
585
|
-
...
|
|
586
|
-
|
|
580
|
+
function yt({ state: e, theme: n }) {
|
|
581
|
+
const [a, l] = z(1), [s, i] = z(0.5), [g, f] = z("default"), [d, b] = z(null), v = e.overrides.accentDefault ?? e.tokens.accentDefault, x = L((o) => {
|
|
582
|
+
for (const [C, A] of Object.entries(o))
|
|
583
|
+
e.setOverride(C, A);
|
|
584
|
+
}, [e]), D = L((o) => {
|
|
585
|
+
e.resetAll(), b(o.name), l(o.density), i(o.roundness), f(o.shadow);
|
|
586
|
+
const C = o.colors[n], A = {
|
|
587
|
+
navigation: C.navigation,
|
|
588
|
+
...J(C.accent, n),
|
|
589
|
+
...H(C.bg, n),
|
|
590
|
+
...X(C.surface, n),
|
|
591
|
+
...q(C.border, n),
|
|
592
|
+
...Z(o.typeBase, o.typeRatio),
|
|
593
|
+
...re(o.density),
|
|
594
|
+
...le(o.roundness),
|
|
595
|
+
...V(o.shadow, n),
|
|
596
|
+
fontFamilyBase: o.fontFamily
|
|
587
597
|
};
|
|
588
|
-
|
|
598
|
+
N(o.fontFamily), requestAnimationFrame(() => {
|
|
589
599
|
for (const [G, U] of Object.entries(A))
|
|
590
600
|
e.setOverride(G, U);
|
|
591
601
|
});
|
|
592
|
-
}, [e, n]),
|
|
593
|
-
|
|
594
|
-
if (
|
|
595
|
-
const
|
|
596
|
-
if (!
|
|
597
|
-
const
|
|
598
|
-
|
|
599
|
-
...J(
|
|
600
|
-
...
|
|
601
|
-
...X(
|
|
602
|
-
...
|
|
602
|
+
}, [e, n]), B = ue(n);
|
|
603
|
+
W(() => {
|
|
604
|
+
if (B.current === n || (B.current = n, e.resetAll(), !d)) return;
|
|
605
|
+
const o = ce.find((G) => G.name === d);
|
|
606
|
+
if (!o) return;
|
|
607
|
+
const C = o.colors[n], A = {
|
|
608
|
+
navigation: C.navigation,
|
|
609
|
+
...J(C.accent, n),
|
|
610
|
+
...H(C.bg, n),
|
|
611
|
+
...X(C.surface, n),
|
|
612
|
+
...q(C.border, n),
|
|
613
|
+
...V(g, n)
|
|
603
614
|
};
|
|
604
615
|
for (const [G, U] of Object.entries(A))
|
|
605
616
|
e.setOverride(G, U);
|
|
606
|
-
}, [n, d,
|
|
607
|
-
const R = (
|
|
608
|
-
|
|
609
|
-
},
|
|
610
|
-
|
|
611
|
-
}, I = (
|
|
612
|
-
|
|
613
|
-
}, r = (
|
|
614
|
-
|
|
615
|
-
},
|
|
616
|
-
|
|
617
|
-
},
|
|
618
|
-
|
|
619
|
-
}, K = (
|
|
620
|
-
|
|
621
|
-
},
|
|
617
|
+
}, [n, d, g, e]);
|
|
618
|
+
const R = (o) => {
|
|
619
|
+
O(), l(o), x(re(o));
|
|
620
|
+
}, T = (o) => {
|
|
621
|
+
O(), i(o), x(le(o));
|
|
622
|
+
}, I = (o) => {
|
|
623
|
+
O(), f(o), x(V(o, n));
|
|
624
|
+
}, r = (o) => {
|
|
625
|
+
O(), /^#[0-9a-f]{6}$/i.test(o) ? x(J(o, n)) : e.setOverride("accentDefault", o);
|
|
626
|
+
}, h = (o) => {
|
|
627
|
+
O(), e.setOverride("navigation", o);
|
|
628
|
+
}, w = (o) => {
|
|
629
|
+
O(), /^#[0-9a-f]{6}$/i.test(o) ? x(H(o, n)) : e.setOverride("bgBase", o);
|
|
630
|
+
}, K = (o) => {
|
|
631
|
+
O(), /^#[0-9a-f]{6}$/i.test(o) ? x(X(o, n)) : e.setOverride("surface", o);
|
|
632
|
+
}, he = (o) => {
|
|
633
|
+
O(), /^#[0-9a-f]{6}$/i.test(o) ? x(q(o, n)) : e.setOverride("borderDefault", o);
|
|
634
|
+
}, Q = e.overrides.navigation ?? e.tokens.navigation, ee = e.overrides.bgBase ?? e.tokens.bgBase, te = e.overrides.surface ?? e.tokens.surface, ne = e.overrides.borderDefault ?? e.tokens.borderDefault, pe = s < 0.2 ? "Sharp" : s < 0.4 ? "Subtle" : s < 0.6 ? "Rounded" : s < 0.8 ? "Soft" : "Pill", me = a < 0.85 ? "Compact" : a < 0.95 ? "Snug" : a < 1.05 ? "Default" : a < 1.15 ? "Relaxed" : "Spacious", O = () => b(null);
|
|
622
635
|
return /* @__PURE__ */ c("div", { style: { padding: "4px 12px 12px", display: "flex", flexDirection: "column", gap: 16 }, children: [
|
|
623
636
|
/* @__PURE__ */ t($, { label: "Presets", children: /* @__PURE__ */ t("div", { style: {
|
|
624
637
|
display: "grid",
|
|
625
638
|
gridTemplateColumns: "repeat(5, 1fr)",
|
|
626
639
|
gap: 6
|
|
627
|
-
}, children: ce.map((
|
|
628
|
-
|
|
640
|
+
}, children: ce.map((o) => /* @__PURE__ */ c(
|
|
641
|
+
F,
|
|
629
642
|
{
|
|
630
|
-
variant: d ===
|
|
631
|
-
onClick: () => D(
|
|
643
|
+
variant: d === o.name ? "secondary" : "ghost",
|
|
644
|
+
onClick: () => D(o),
|
|
632
645
|
style: {
|
|
633
646
|
padding: "8px 4px 6px",
|
|
634
647
|
display: "flex",
|
|
@@ -641,81 +654,86 @@ function ut({ state: e, theme: n }) {
|
|
|
641
654
|
/* @__PURE__ */ t("div", { style: {
|
|
642
655
|
width: 24,
|
|
643
656
|
height: 24,
|
|
644
|
-
borderRadius:
|
|
645
|
-
background:
|
|
657
|
+
borderRadius: o.roundness < 0.3 ? 3 : o.roundness < 0.7 ? 6 : 12,
|
|
658
|
+
background: o.colors[n].accent,
|
|
646
659
|
border: "1px solid rgba(255,255,255,0.1)"
|
|
647
660
|
} }),
|
|
648
|
-
/* @__PURE__ */ t(
|
|
661
|
+
/* @__PURE__ */ t(y, { size: "xs", ...d !== o.name && { color: "secondary" }, weight: d === o.name ? "semibold" : "regular", style: { fontSize: 9, whiteSpace: "nowrap" }, children: o.name })
|
|
649
662
|
]
|
|
650
663
|
},
|
|
651
|
-
|
|
664
|
+
o.name
|
|
652
665
|
)) }) }),
|
|
653
666
|
/* @__PURE__ */ t($, { label: "Colors", children: /* @__PURE__ */ c("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
654
667
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
|
|
655
|
-
/* @__PURE__ */ t(
|
|
656
|
-
/* @__PURE__ */ t(
|
|
657
|
-
/* @__PURE__ */ t(
|
|
668
|
+
/* @__PURE__ */ t(P, { value: v, onChange: r, size: "sm", presetGroups: st }),
|
|
669
|
+
/* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { flex: 1 }, children: "Accent" }),
|
|
670
|
+
/* @__PURE__ */ t(y, { as: "code", size: "xs", family: "mono", style: { color: "var(--lucent-accent-default)" }, children: v })
|
|
658
671
|
] }),
|
|
659
672
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
|
|
660
|
-
/* @__PURE__ */ t(
|
|
661
|
-
/* @__PURE__ */ t(
|
|
662
|
-
/* @__PURE__ */ t(
|
|
673
|
+
/* @__PURE__ */ t(P, { value: Q, onChange: h, size: "sm", presetGroups: ct }),
|
|
674
|
+
/* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { flex: 1 }, children: "Navigation" }),
|
|
675
|
+
/* @__PURE__ */ t(y, { as: "code", size: "xs", family: "mono", style: { color: "var(--lucent-accent-default)" }, children: Q })
|
|
663
676
|
] }),
|
|
664
677
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
|
|
665
|
-
/* @__PURE__ */ t(
|
|
666
|
-
/* @__PURE__ */ t(
|
|
667
|
-
/* @__PURE__ */ t(
|
|
678
|
+
/* @__PURE__ */ t(P, { value: ee, onChange: w, size: "sm", presetGroups: dt }),
|
|
679
|
+
/* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { flex: 1 }, children: "Background" }),
|
|
680
|
+
/* @__PURE__ */ t(y, { as: "code", size: "xs", family: "mono", style: { color: "var(--lucent-accent-default)" }, children: ee })
|
|
668
681
|
] }),
|
|
669
682
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
|
|
670
|
-
/* @__PURE__ */ t(
|
|
671
|
-
/* @__PURE__ */ t(
|
|
672
|
-
/* @__PURE__ */ t(
|
|
683
|
+
/* @__PURE__ */ t(P, { value: te, onChange: K, size: "sm", presetGroups: ft }),
|
|
684
|
+
/* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { flex: 1 }, children: "Surface" }),
|
|
685
|
+
/* @__PURE__ */ t(y, { as: "code", size: "xs", family: "mono", style: { color: "var(--lucent-accent-default)" }, children: te })
|
|
686
|
+
] }),
|
|
687
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
|
|
688
|
+
/* @__PURE__ */ t(P, { value: ne, onChange: he, size: "sm", presetGroups: ut }),
|
|
689
|
+
/* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { flex: 1 }, children: "Border" }),
|
|
690
|
+
/* @__PURE__ */ t(y, { as: "code", size: "xs", family: "mono", style: { color: "var(--lucent-accent-default)" }, children: ne })
|
|
673
691
|
] })
|
|
674
692
|
] }) }),
|
|
675
693
|
/* @__PURE__ */ c($, { label: "Density", children: [
|
|
676
694
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
677
|
-
/* @__PURE__ */ t(
|
|
678
|
-
/* @__PURE__ */ t(
|
|
679
|
-
/* @__PURE__ */ t(
|
|
695
|
+
/* @__PURE__ */ t(y, { size: "xs", family: "mono", color: "secondary", style: { width: 54, flexShrink: 0 }, children: "Compact" }),
|
|
696
|
+
/* @__PURE__ */ t(j, { min: 0.7, max: 1.35, step: 0.01, value: a, onChange: (o) => R(parseFloat(o.target.value)), size: "sm", style: { flex: 1 } }),
|
|
697
|
+
/* @__PURE__ */ t(y, { size: "xs", family: "mono", color: "secondary", style: { width: 54, textAlign: "right", flexShrink: 0 }, children: "Spacious" })
|
|
680
698
|
] }),
|
|
681
|
-
/* @__PURE__ */ t("div", { style: { textAlign: "center", marginTop: 4 }, children: /* @__PURE__ */ c(
|
|
682
|
-
|
|
699
|
+
/* @__PURE__ */ t("div", { style: { textAlign: "center", marginTop: 4 }, children: /* @__PURE__ */ c(y, { size: "xs", style: { color: "var(--lucent-accent-default)" }, children: [
|
|
700
|
+
me,
|
|
683
701
|
" (",
|
|
684
|
-
|
|
702
|
+
a.toFixed(2),
|
|
685
703
|
"x)"
|
|
686
704
|
] }) })
|
|
687
705
|
] }),
|
|
688
706
|
/* @__PURE__ */ c($, { label: "Roundness", children: [
|
|
689
707
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
690
|
-
/* @__PURE__ */ t(
|
|
691
|
-
/* @__PURE__ */ t(
|
|
692
|
-
/* @__PURE__ */ t(
|
|
708
|
+
/* @__PURE__ */ t(y, { size: "xs", family: "mono", color: "secondary", style: { width: 36, flexShrink: 0 }, children: "Sharp" }),
|
|
709
|
+
/* @__PURE__ */ t(j, { min: 0, max: 1, step: 0.01, value: s, onChange: (o) => T(parseFloat(o.target.value)), size: "sm", style: { flex: 1 } }),
|
|
710
|
+
/* @__PURE__ */ t(y, { size: "xs", family: "mono", color: "secondary", style: { width: 24, textAlign: "right", flexShrink: 0 }, children: "Pill" })
|
|
693
711
|
] }),
|
|
694
|
-
/* @__PURE__ */ t("div", { style: { display: "flex", gap: 8, marginTop: 8, justifyContent: "center" }, children: [0, 0.25, 0.5, 0.75, 1].map((
|
|
712
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", gap: 8, marginTop: 8, justifyContent: "center" }, children: [0, 0.25, 0.5, 0.75, 1].map((o) => /* @__PURE__ */ t("div", { style: {
|
|
695
713
|
width: 32,
|
|
696
714
|
height: 32,
|
|
697
715
|
background: "var(--lucent-surface-secondary)",
|
|
698
|
-
border: `1.5px solid ${Math.abs(
|
|
699
|
-
borderRadius:
|
|
716
|
+
border: `1.5px solid ${Math.abs(s - o) < 0.05 ? "var(--lucent-accent-default)" : "var(--lucent-border-default)"}`,
|
|
717
|
+
borderRadius: o === 0 ? 2 : o < 0.5 ? 4 : o < 0.8 ? 8 : 16,
|
|
700
718
|
cursor: "pointer",
|
|
701
719
|
transition: "border-color 150ms"
|
|
702
|
-
}, onClick: () =>
|
|
703
|
-
/* @__PURE__ */ t("div", { style: { textAlign: "center", marginTop: 4 }, children: /* @__PURE__ */ t(
|
|
720
|
+
}, onClick: () => T(o) }, o)) }),
|
|
721
|
+
/* @__PURE__ */ t("div", { style: { textAlign: "center", marginTop: 4 }, children: /* @__PURE__ */ t(y, { size: "xs", style: { color: "var(--lucent-accent-default)" }, children: pe }) })
|
|
704
722
|
] }),
|
|
705
723
|
/* @__PURE__ */ t($, { label: "Shadow Style", children: /* @__PURE__ */ t("div", { style: {
|
|
706
724
|
display: "grid",
|
|
707
725
|
gridTemplateColumns: "repeat(3, 1fr)",
|
|
708
726
|
gap: 4
|
|
709
|
-
}, children: Ze.map(({ value:
|
|
710
|
-
|
|
727
|
+
}, children: Ze.map(({ value: o, label: C }) => /* @__PURE__ */ t(
|
|
728
|
+
F,
|
|
711
729
|
{
|
|
712
|
-
variant:
|
|
730
|
+
variant: g === o ? "secondary" : "ghost",
|
|
713
731
|
size: "2xs",
|
|
714
|
-
onClick: () => I(
|
|
732
|
+
onClick: () => I(o),
|
|
715
733
|
style: { justifyContent: "center" },
|
|
716
|
-
children:
|
|
734
|
+
children: C
|
|
717
735
|
},
|
|
718
|
-
|
|
736
|
+
o
|
|
719
737
|
)) }) })
|
|
720
738
|
] });
|
|
721
739
|
}
|
|
@@ -726,11 +744,11 @@ function $({ label: e, children: n }) {
|
|
|
726
744
|
padding: "10px 12px",
|
|
727
745
|
border: "1px solid var(--lucent-border-default)"
|
|
728
746
|
}, children: [
|
|
729
|
-
/* @__PURE__ */ t(
|
|
747
|
+
/* @__PURE__ */ t(y, { size: "xs", weight: "semibold", style: { marginBottom: 10, display: "block" }, children: e }),
|
|
730
748
|
n
|
|
731
749
|
] });
|
|
732
750
|
}
|
|
733
|
-
const
|
|
751
|
+
const E = [
|
|
734
752
|
{ label: "DM Sans", family: '"DM Sans", sans-serif', category: "sans" },
|
|
735
753
|
{ label: "Inter", family: '"Inter", sans-serif', category: "sans" },
|
|
736
754
|
{ label: "System UI", family: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', category: "sans" },
|
|
@@ -746,25 +764,25 @@ const P = [
|
|
|
746
764
|
{ label: "Sora", family: '"Sora", sans-serif', category: "display" },
|
|
747
765
|
{ label: "Georama", family: '"Georama", sans-serif', category: "display" }
|
|
748
766
|
];
|
|
749
|
-
function
|
|
750
|
-
const
|
|
751
|
-
const r = e.overrides.fontSizeLg ?? e.tokens.fontSizeLg,
|
|
752
|
-
return
|
|
767
|
+
function gt({ state: e, theme: n }) {
|
|
768
|
+
const a = e.overrides.fontSizeMd ?? e.tokens.fontSizeMd, l = parseFloat(a) || 1, [s, i] = z(l), [g, f] = z(() => {
|
|
769
|
+
const r = e.overrides.fontSizeLg ?? e.tokens.fontSizeLg, h = parseFloat(r) || 1.125, w = parseFloat(a) || 1;
|
|
770
|
+
return w > 0 ? Math.round(h / w * 1e3) / 1e3 : 1.125;
|
|
753
771
|
});
|
|
754
|
-
|
|
755
|
-
const r = parseFloat(e.overrides.fontSizeMd ?? e.tokens.fontSizeMd) || 1,
|
|
756
|
-
|
|
772
|
+
W(() => {
|
|
773
|
+
const r = parseFloat(e.overrides.fontSizeMd ?? e.tokens.fontSizeMd) || 1, h = parseFloat(e.overrides.fontSizeLg ?? e.tokens.fontSizeLg) || 1.125;
|
|
774
|
+
i(r), r > 0 && f(Math.round(h / r * 1e3) / 1e3);
|
|
757
775
|
}, [e.overrides.fontSizeMd, e.overrides.fontSizeLg, e.tokens.fontSizeMd, e.tokens.fontSizeLg]);
|
|
758
|
-
const [d, b] =
|
|
759
|
-
for (const [
|
|
760
|
-
e.setOverride(
|
|
776
|
+
const [d, b] = z("all"), v = e.overrides.fontFamilyBase ?? e.tokens.fontFamilyBase, x = e.overrides.fontFamilyMono ?? e.tokens.fontFamilyMono, D = e.overrides.fontFamilyDisplay ?? e.tokens.fontFamilyDisplay, B = L((r) => {
|
|
777
|
+
for (const [h, w] of Object.entries(r))
|
|
778
|
+
e.setOverride(h, w);
|
|
761
779
|
}, [e]), R = (r) => {
|
|
762
|
-
|
|
763
|
-
},
|
|
764
|
-
f(r),
|
|
765
|
-
}, I = d === "all" ?
|
|
780
|
+
i(r), B(Z(r, g));
|
|
781
|
+
}, T = (r) => {
|
|
782
|
+
f(r), B(Z(s, r));
|
|
783
|
+
}, I = d === "all" ? E : E.filter((r) => r.category === d);
|
|
766
784
|
return /* @__PURE__ */ c("div", { style: { padding: "4px 12px 12px", display: "flex", flexDirection: "column", gap: 16 }, children: [
|
|
767
|
-
/* @__PURE__ */ c(
|
|
785
|
+
/* @__PURE__ */ c(_, { label: "Font Family", children: [
|
|
768
786
|
/* @__PURE__ */ t("div", { style: { marginBottom: 8 }, children: /* @__PURE__ */ t(
|
|
769
787
|
Le,
|
|
770
788
|
{
|
|
@@ -782,13 +800,13 @@ function yt({ state: e, theme: n }) {
|
|
|
782
800
|
}
|
|
783
801
|
) }),
|
|
784
802
|
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: I.map((r) => {
|
|
785
|
-
const
|
|
803
|
+
const h = v.includes(r.label) || r.family === v;
|
|
786
804
|
return /* @__PURE__ */ c(
|
|
787
|
-
|
|
805
|
+
F,
|
|
788
806
|
{
|
|
789
|
-
variant:
|
|
807
|
+
variant: h ? "secondary" : "ghost",
|
|
790
808
|
onClick: () => {
|
|
791
|
-
|
|
809
|
+
N(r.family), e.setOverride("fontFamilyBase", r.family);
|
|
792
810
|
},
|
|
793
811
|
style: {
|
|
794
812
|
width: "100%",
|
|
@@ -798,16 +816,16 @@ function yt({ state: e, theme: n }) {
|
|
|
798
816
|
},
|
|
799
817
|
children: [
|
|
800
818
|
/* @__PURE__ */ t("span", { style: { fontFamily: r.family, fontSize: 14 }, children: r.label }),
|
|
801
|
-
/* @__PURE__ */ t(
|
|
819
|
+
/* @__PURE__ */ t(y, { as: "span", size: "xs", color: "secondary", style: { textTransform: "capitalize" }, children: r.category })
|
|
802
820
|
]
|
|
803
821
|
},
|
|
804
822
|
r.label
|
|
805
823
|
);
|
|
806
824
|
}) }),
|
|
807
825
|
/* @__PURE__ */ c("div", { style: { marginTop: 8 }, children: [
|
|
808
|
-
/* @__PURE__ */ t(
|
|
826
|
+
/* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Custom" }),
|
|
809
827
|
/* @__PURE__ */ t(
|
|
810
|
-
|
|
828
|
+
ge,
|
|
811
829
|
{
|
|
812
830
|
size: "sm",
|
|
813
831
|
value: v,
|
|
@@ -818,78 +836,78 @@ function yt({ state: e, theme: n }) {
|
|
|
818
836
|
)
|
|
819
837
|
] })
|
|
820
838
|
] }),
|
|
821
|
-
/* @__PURE__ */ t(
|
|
839
|
+
/* @__PURE__ */ t(_, { label: "Code & Display Fonts", children: /* @__PURE__ */ c("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
822
840
|
/* @__PURE__ */ c("div", { children: [
|
|
823
|
-
/* @__PURE__ */ t(
|
|
841
|
+
/* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Monospace" }),
|
|
824
842
|
/* @__PURE__ */ t(
|
|
825
|
-
|
|
843
|
+
ae,
|
|
826
844
|
{
|
|
827
845
|
size: "sm",
|
|
828
846
|
value: x,
|
|
829
847
|
onChange: (r) => {
|
|
830
|
-
|
|
848
|
+
N(r.target.value), e.setOverride("fontFamilyMono", r.target.value);
|
|
831
849
|
},
|
|
832
850
|
options: [
|
|
833
|
-
...
|
|
834
|
-
...
|
|
851
|
+
...E.filter((r) => r.category === "mono").map((r) => ({ value: r.family, label: r.label })),
|
|
852
|
+
...E.some((r) => r.family === x) ? [] : [{ value: x, label: "Custom" }]
|
|
835
853
|
]
|
|
836
854
|
}
|
|
837
855
|
)
|
|
838
856
|
] }),
|
|
839
857
|
/* @__PURE__ */ c("div", { children: [
|
|
840
|
-
/* @__PURE__ */ t(
|
|
858
|
+
/* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Display" }),
|
|
841
859
|
/* @__PURE__ */ t(
|
|
842
|
-
|
|
860
|
+
ae,
|
|
843
861
|
{
|
|
844
862
|
size: "sm",
|
|
845
863
|
value: D,
|
|
846
864
|
onChange: (r) => {
|
|
847
|
-
|
|
865
|
+
N(r.target.value), e.setOverride("fontFamilyDisplay", r.target.value);
|
|
848
866
|
},
|
|
849
867
|
options: [
|
|
850
|
-
...
|
|
851
|
-
...
|
|
868
|
+
...E.filter((r) => r.category === "display" || r.category === "sans").map((r) => ({ value: r.family, label: r.label })),
|
|
869
|
+
...E.some((r) => r.family === D) ? [] : [{ value: D, label: "Custom" }]
|
|
852
870
|
]
|
|
853
871
|
}
|
|
854
872
|
)
|
|
855
873
|
] })
|
|
856
874
|
] }) }),
|
|
857
|
-
/* @__PURE__ */ t(
|
|
875
|
+
/* @__PURE__ */ t(_, { label: "Type Scale", children: /* @__PURE__ */ c("div", { style: { display: "flex", flexDirection: "column", gap: 10 }, children: [
|
|
858
876
|
/* @__PURE__ */ c("div", { children: [
|
|
859
|
-
/* @__PURE__ */ t(
|
|
877
|
+
/* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Base Size" }),
|
|
860
878
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
861
|
-
/* @__PURE__ */ t(
|
|
862
|
-
/* @__PURE__ */ c(
|
|
863
|
-
|
|
879
|
+
/* @__PURE__ */ t(j, { min: 0.75, max: 1.5, step: 0.0625, value: s, onChange: (r) => R(parseFloat(r.target.value)), size: "sm", style: { flex: 1 } }),
|
|
880
|
+
/* @__PURE__ */ c(y, { as: "code", size: "xs", family: "mono", style: { width: 56, textAlign: "right", flexShrink: 0, color: "var(--lucent-accent-default)" }, children: [
|
|
881
|
+
s,
|
|
864
882
|
"rem"
|
|
865
883
|
] })
|
|
866
884
|
] })
|
|
867
885
|
] }),
|
|
868
886
|
/* @__PURE__ */ c("div", { children: [
|
|
869
|
-
/* @__PURE__ */ t(
|
|
887
|
+
/* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Scale Ratio" }),
|
|
870
888
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
871
|
-
/* @__PURE__ */ t(
|
|
872
|
-
/* @__PURE__ */ t(
|
|
889
|
+
/* @__PURE__ */ t(j, { min: 1, max: 1.618, step: 1e-3, value: g, onChange: (r) => T(parseFloat(r.target.value)), size: "sm", style: { flex: 1 } }),
|
|
890
|
+
/* @__PURE__ */ t(y, { as: "code", size: "xs", family: "mono", style: { width: 56, textAlign: "right", flexShrink: 0, color: "var(--lucent-accent-default)" }, children: g.toFixed(3) })
|
|
873
891
|
] }),
|
|
874
|
-
/* @__PURE__ */ t("div", { style: { display: "flex", flexWrap: "wrap", gap: 4, marginTop: 6 }, children:
|
|
875
|
-
|
|
892
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", flexWrap: "wrap", gap: 4, marginTop: 6 }, children: qe.map((r) => /* @__PURE__ */ t(
|
|
893
|
+
F,
|
|
876
894
|
{
|
|
877
|
-
variant: Math.abs(
|
|
895
|
+
variant: Math.abs(g - r.ratio) < 5e-3 ? "secondary" : "ghost",
|
|
878
896
|
size: "2xs",
|
|
879
|
-
onClick: () =>
|
|
897
|
+
onClick: () => T(r.ratio),
|
|
880
898
|
children: r.label
|
|
881
899
|
},
|
|
882
900
|
r.label
|
|
883
901
|
)) })
|
|
884
902
|
] })
|
|
885
903
|
] }) }),
|
|
886
|
-
/* @__PURE__ */ t(
|
|
887
|
-
const
|
|
904
|
+
/* @__PURE__ */ t(_, { label: "Text Colors", children: /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 6 }, children: ht.map(({ key: r, label: h }) => {
|
|
905
|
+
const w = e.overrides[r] ?? e.tokens[r];
|
|
888
906
|
return /* @__PURE__ */ t(
|
|
889
|
-
|
|
907
|
+
P,
|
|
890
908
|
{
|
|
891
|
-
label:
|
|
892
|
-
value:
|
|
909
|
+
label: h,
|
|
910
|
+
value: w,
|
|
893
911
|
onChange: (K) => e.setOverride(r, K),
|
|
894
912
|
size: "sm",
|
|
895
913
|
inline: !0
|
|
@@ -897,12 +915,12 @@ function yt({ state: e, theme: n }) {
|
|
|
897
915
|
r
|
|
898
916
|
);
|
|
899
917
|
}) }) }),
|
|
900
|
-
/* @__PURE__ */ t(
|
|
901
|
-
|
|
918
|
+
/* @__PURE__ */ t(_, { label: "Preview", children: /* @__PURE__ */ t(
|
|
919
|
+
pt,
|
|
902
920
|
{
|
|
903
921
|
family: v,
|
|
904
|
-
baseSize:
|
|
905
|
-
ratio:
|
|
922
|
+
baseSize: s,
|
|
923
|
+
ratio: g,
|
|
906
924
|
textPrimary: e.overrides.textPrimary ?? e.tokens.textPrimary,
|
|
907
925
|
textSecondary: e.overrides.textSecondary ?? e.tokens.textSecondary,
|
|
908
926
|
bgBase: e.overrides.bgBase ?? e.tokens.bgBase
|
|
@@ -916,54 +934,54 @@ const ht = [
|
|
|
916
934
|
{ key: "textDisabled", label: "Disabled" },
|
|
917
935
|
{ key: "textInverse", label: "Inverse" }
|
|
918
936
|
];
|
|
919
|
-
function
|
|
937
|
+
function _({ label: e, children: n }) {
|
|
920
938
|
return /* @__PURE__ */ c("div", { style: {
|
|
921
939
|
background: "var(--lucent-surface)",
|
|
922
940
|
borderRadius: "var(--lucent-radius-lg)",
|
|
923
941
|
padding: "10px 12px",
|
|
924
942
|
border: "1px solid var(--lucent-border-default)"
|
|
925
943
|
}, children: [
|
|
926
|
-
/* @__PURE__ */ t(
|
|
944
|
+
/* @__PURE__ */ t(y, { size: "xs", weight: "semibold", style: { marginBottom: 10, display: "block" }, children: e }),
|
|
927
945
|
n
|
|
928
946
|
] });
|
|
929
947
|
}
|
|
930
|
-
function
|
|
931
|
-
const
|
|
948
|
+
function pt({ family: e, baseSize: n, ratio: a, textPrimary: l, textSecondary: s, bgBase: i }) {
|
|
949
|
+
const g = n * Math.pow(a, 4), f = n * Math.pow(a, 2), d = n, b = n * Math.pow(a, -1);
|
|
932
950
|
return /* @__PURE__ */ c("div", { style: {
|
|
933
|
-
background:
|
|
951
|
+
background: i,
|
|
934
952
|
borderRadius: 6,
|
|
935
953
|
padding: "14px 12px",
|
|
936
954
|
fontFamily: e,
|
|
937
955
|
border: "1px solid var(--lucent-border-default)"
|
|
938
956
|
}, children: [
|
|
939
957
|
/* @__PURE__ */ t("div", { style: {
|
|
940
|
-
fontSize: `${
|
|
958
|
+
fontSize: `${g}rem`,
|
|
941
959
|
fontWeight: 700,
|
|
942
|
-
color:
|
|
960
|
+
color: l,
|
|
943
961
|
lineHeight: 1.2,
|
|
944
962
|
marginBottom: 6
|
|
945
963
|
}, children: "Heading" }),
|
|
946
964
|
/* @__PURE__ */ t("div", { style: {
|
|
947
965
|
fontSize: `${f}rem`,
|
|
948
966
|
fontWeight: 600,
|
|
949
|
-
color:
|
|
967
|
+
color: l,
|
|
950
968
|
lineHeight: 1.3,
|
|
951
969
|
marginBottom: 8
|
|
952
970
|
}, children: "Subheading text" }),
|
|
953
971
|
/* @__PURE__ */ t("div", { style: {
|
|
954
972
|
fontSize: `${d}rem`,
|
|
955
|
-
color:
|
|
973
|
+
color: l,
|
|
956
974
|
lineHeight: 1.5,
|
|
957
975
|
marginBottom: 6
|
|
958
976
|
}, children: "Body text looks like this. It should be comfortable to read at any size with good line height and spacing." }),
|
|
959
977
|
/* @__PURE__ */ t("div", { style: {
|
|
960
978
|
fontSize: `${b}rem`,
|
|
961
|
-
color:
|
|
979
|
+
color: s,
|
|
962
980
|
lineHeight: 1.5
|
|
963
981
|
}, children: "Secondary caption — smaller, muted for supplemental information." })
|
|
964
982
|
] });
|
|
965
983
|
}
|
|
966
|
-
const
|
|
984
|
+
const k = {
|
|
967
985
|
bg: "#0a0a0a",
|
|
968
986
|
surface: "#141414",
|
|
969
987
|
text: "#f0ead6",
|
|
@@ -971,63 +989,63 @@ const w = {
|
|
|
971
989
|
accent: "#e9c96b",
|
|
972
990
|
border: "rgba(233, 201, 107, 0.1)",
|
|
973
991
|
inputBg: "rgba(255, 255, 255, 0.05)"
|
|
974
|
-
},
|
|
975
|
-
function
|
|
976
|
-
const [n,
|
|
977
|
-
|
|
978
|
-
}, []),
|
|
979
|
-
const
|
|
980
|
-
for (const [
|
|
981
|
-
|
|
982
|
-
return
|
|
992
|
+
}, mt = ve(null);
|
|
993
|
+
function bt({ children: e }) {
|
|
994
|
+
const [n, a] = z(null), l = L((i) => {
|
|
995
|
+
i && a(i);
|
|
996
|
+
}, []), s = be(() => {
|
|
997
|
+
const i = {};
|
|
998
|
+
for (const [g, f] of Object.entries(Pe))
|
|
999
|
+
i[S(g)] = f;
|
|
1000
|
+
return i[S("navigation")] = k.bg, i[S("bgBase")] = k.bg, i[S("surface")] = k.surface, i[S("surfaceSecondary")] = k.inputBg, i[S("borderDefault")] = k.border, i[S("borderSubtle")] = k.border, i[S("textPrimary")] = k.text, i[S("textSecondary")] = k.textMuted, i[S("accentDefault")] = k.accent, i[S("accentFg")] = "#0a0a0a", i[S("accentSubtle")] = "rgba(233, 201, 107, 0.12)", i[S("accentHover")] = "#d4b55a", i[S("accentBorder")] = k.accent, i;
|
|
983
1001
|
}, []);
|
|
984
|
-
return /* @__PURE__ */ t("div", { ref:
|
|
1002
|
+
return /* @__PURE__ */ t("div", { ref: l, style: s, children: /* @__PURE__ */ t(mt.Provider, { value: n, children: e }) });
|
|
985
1003
|
}
|
|
986
|
-
function
|
|
987
|
-
const [f, d] =
|
|
988
|
-
const
|
|
989
|
-
for (const
|
|
990
|
-
|
|
991
|
-
return
|
|
992
|
-
}), [
|
|
993
|
-
D((
|
|
1004
|
+
function vt({ state: e, theme: n, position: a, mode: l, onModeChange: s, onThemeChange: i, onClose: g }) {
|
|
1005
|
+
const [f, d] = z("design"), [b, v] = z(""), [x, D] = z(() => {
|
|
1006
|
+
const h = {};
|
|
1007
|
+
for (const w of oe)
|
|
1008
|
+
h[w.label] = w.defaultExpanded ?? !1;
|
|
1009
|
+
return h;
|
|
1010
|
+
}), [B, R] = z(!1), T = (h) => {
|
|
1011
|
+
D((w) => ({ ...w, [h]: !w[h] }));
|
|
994
1012
|
}, I = async () => {
|
|
995
|
-
const
|
|
996
|
-
await
|
|
1013
|
+
const h = $e(e.overrides);
|
|
1014
|
+
await _e(h) && (R(!0), setTimeout(() => R(!1), 2e3));
|
|
997
1015
|
}, r = b.toLowerCase();
|
|
998
|
-
return /* @__PURE__ */ t(
|
|
999
|
-
...
|
|
1000
|
-
[
|
|
1001
|
-
borderLeft:
|
|
1002
|
-
borderRight:
|
|
1016
|
+
return /* @__PURE__ */ t(bt, { children: /* @__PURE__ */ c("div", { style: {
|
|
1017
|
+
...St,
|
|
1018
|
+
[a]: 0,
|
|
1019
|
+
borderLeft: a === "right" ? `1px solid ${k.border}` : void 0,
|
|
1020
|
+
borderRight: a === "left" ? `1px solid ${k.border}` : void 0
|
|
1003
1021
|
}, children: [
|
|
1004
|
-
/* @__PURE__ */ c("div", { style:
|
|
1022
|
+
/* @__PURE__ */ c("div", { style: kt, children: [
|
|
1005
1023
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1006
1024
|
/* @__PURE__ */ c("svg", { width: "16", height: "16", viewBox: "0 0 60 60", fill: "none", children: [
|
|
1007
1025
|
/* @__PURE__ */ t("rect", { x: "8", y: "8", width: "18", height: "22", rx: "2", fill: "#e9c96b", opacity: "0.92" }),
|
|
1008
1026
|
/* @__PURE__ */ t("rect", { x: "8", y: "40", width: "44", height: "12", rx: "2", fill: "#e9c96b", opacity: "0.92" }),
|
|
1009
1027
|
/* @__PURE__ */ t("rect", { x: "36", y: "8", width: "16", height: "28", rx: "2", fill: "#e9c96b", opacity: "0.08" })
|
|
1010
1028
|
] }),
|
|
1011
|
-
/* @__PURE__ */ t(
|
|
1029
|
+
/* @__PURE__ */ t(y, { size: "sm", weight: "semibold", children: "Lucent DevTools" })
|
|
1012
1030
|
] }),
|
|
1013
1031
|
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
1014
|
-
|
|
1032
|
+
i && /* @__PURE__ */ t(
|
|
1015
1033
|
Ee,
|
|
1016
1034
|
{
|
|
1017
1035
|
checked: n === "dark",
|
|
1018
|
-
onChange: () =>
|
|
1036
|
+
onChange: () => i(n === "light" ? "dark" : "light"),
|
|
1019
1037
|
size: "sm"
|
|
1020
1038
|
}
|
|
1021
1039
|
),
|
|
1022
1040
|
/* @__PURE__ */ t(
|
|
1023
|
-
|
|
1041
|
+
F,
|
|
1024
1042
|
{
|
|
1025
1043
|
variant: "ghost",
|
|
1026
1044
|
size: "2xs",
|
|
1027
|
-
onClick: () =>
|
|
1028
|
-
"aria-label":
|
|
1029
|
-
title:
|
|
1030
|
-
children:
|
|
1045
|
+
onClick: () => s(l === "overlay" ? "push" : "overlay"),
|
|
1046
|
+
"aria-label": l === "overlay" ? "Push content" : "Overlay",
|
|
1047
|
+
title: l === "overlay" ? "Push content" : "Overlay",
|
|
1048
|
+
children: l === "overlay" ? /* @__PURE__ */ c("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: [
|
|
1031
1049
|
/* @__PURE__ */ t("rect", { x: "1", y: "1", width: "8", height: "12", rx: "1", stroke: "currentColor", strokeWidth: "1.2" }),
|
|
1032
1050
|
/* @__PURE__ */ t("rect", { x: "10", y: "1", width: "3", height: "12", rx: "0.5", fill: "currentColor", opacity: "0.5" })
|
|
1033
1051
|
] }) : /* @__PURE__ */ c("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: [
|
|
@@ -1036,14 +1054,14 @@ function bt({ state: e, theme: n, position: o, mode: s, onModeChange: i, onTheme
|
|
|
1036
1054
|
] })
|
|
1037
1055
|
}
|
|
1038
1056
|
),
|
|
1039
|
-
/* @__PURE__ */ t(
|
|
1057
|
+
/* @__PURE__ */ t(F, { variant: "ghost", size: "2xs", onClick: g, "aria-label": "Close", children: /* @__PURE__ */ t("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ t("path", { d: "M2 2l10 10M12 2L2 12", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }) })
|
|
1040
1058
|
] })
|
|
1041
1059
|
] }),
|
|
1042
1060
|
/* @__PURE__ */ t("div", { style: { flexShrink: 0 }, children: /* @__PURE__ */ t(
|
|
1043
1061
|
Ie,
|
|
1044
1062
|
{
|
|
1045
1063
|
value: f,
|
|
1046
|
-
onChange: (
|
|
1064
|
+
onChange: (h) => d(h),
|
|
1047
1065
|
tabs: [
|
|
1048
1066
|
{ value: "design", label: "Design" },
|
|
1049
1067
|
{ value: "type", label: "Typography" },
|
|
@@ -1058,29 +1076,29 @@ function bt({ state: e, theme: n, position: o, mode: s, onModeChange: i, onTheme
|
|
|
1058
1076
|
type: "text",
|
|
1059
1077
|
placeholder: "Filter tokens...",
|
|
1060
1078
|
value: b,
|
|
1061
|
-
onChange: (
|
|
1062
|
-
style:
|
|
1079
|
+
onChange: (h) => v(h.target.value),
|
|
1080
|
+
style: wt,
|
|
1063
1081
|
spellCheck: !1
|
|
1064
1082
|
}
|
|
1065
1083
|
) }),
|
|
1066
|
-
/* @__PURE__ */ t("div", { style: Y, children:
|
|
1067
|
-
|
|
1084
|
+
/* @__PURE__ */ t("div", { style: Y, children: oe.map((h) => /* @__PURE__ */ t(
|
|
1085
|
+
xt,
|
|
1068
1086
|
{
|
|
1069
|
-
group:
|
|
1087
|
+
group: h,
|
|
1070
1088
|
state: e,
|
|
1071
1089
|
filter: r,
|
|
1072
|
-
expanded: x[
|
|
1073
|
-
onToggle: () =>
|
|
1090
|
+
expanded: x[h.label] ?? !1,
|
|
1091
|
+
onToggle: () => T(h.label)
|
|
1074
1092
|
},
|
|
1075
|
-
|
|
1093
|
+
h.label
|
|
1076
1094
|
)) })
|
|
1077
1095
|
] }),
|
|
1078
|
-
f === "design" && /* @__PURE__ */ t("div", { style: Y, children: /* @__PURE__ */ t(
|
|
1079
|
-
f === "type" && /* @__PURE__ */ t("div", { style: Y, children: /* @__PURE__ */ t(
|
|
1080
|
-
/* @__PURE__ */ c("div", { style:
|
|
1096
|
+
f === "design" && /* @__PURE__ */ t("div", { style: Y, children: /* @__PURE__ */ t(yt, { state: e, theme: n }) }),
|
|
1097
|
+
f === "type" && /* @__PURE__ */ t("div", { style: Y, children: /* @__PURE__ */ t(gt, { state: e, theme: n }) }),
|
|
1098
|
+
/* @__PURE__ */ c("div", { style: Bt, children: [
|
|
1081
1099
|
/* @__PURE__ */ c("div", { style: { display: "flex", gap: 6, flex: 1 }, children: [
|
|
1082
|
-
/* @__PURE__ */ t(
|
|
1083
|
-
e.overrideCount > 0 && /* @__PURE__ */ t(
|
|
1100
|
+
/* @__PURE__ */ t(F, { size: "xs", onClick: I, children: B ? "Copied!" : "Copy Config" }),
|
|
1101
|
+
e.overrideCount > 0 && /* @__PURE__ */ t(F, { variant: "outline", size: "xs", onClick: e.resetAll, children: "Reset All" })
|
|
1084
1102
|
] }),
|
|
1085
1103
|
e.overrideCount > 0 && /* @__PURE__ */ c(Ae, { variant: "accent", size: "sm", children: [
|
|
1086
1104
|
e.overrideCount,
|
|
@@ -1090,12 +1108,12 @@ function bt({ state: e, theme: n, position: o, mode: s, onModeChange: i, onTheme
|
|
|
1090
1108
|
] })
|
|
1091
1109
|
] }) });
|
|
1092
1110
|
}
|
|
1093
|
-
function
|
|
1094
|
-
const
|
|
1095
|
-
if (!(
|
|
1096
|
-
const f =
|
|
1097
|
-
return /* @__PURE__ */ c("div", { style: { borderBottom: `1px solid ${
|
|
1098
|
-
/* @__PURE__ */ c("button", { onClick:
|
|
1111
|
+
function xt({ group: e, state: n, filter: a, expanded: l, onToggle: s }) {
|
|
1112
|
+
const i = e.subgroups ? e.subgroups.flatMap((d) => d.tokens) : e.tokens ?? [];
|
|
1113
|
+
if (!(a === "" || i.some((d) => d.key.toLowerCase().includes(a)))) return null;
|
|
1114
|
+
const f = l || a !== "";
|
|
1115
|
+
return /* @__PURE__ */ c("div", { style: { borderBottom: `1px solid ${k.border}` }, children: [
|
|
1116
|
+
/* @__PURE__ */ c("button", { onClick: s, style: Ct, children: [
|
|
1099
1117
|
/* @__PURE__ */ t(
|
|
1100
1118
|
"svg",
|
|
1101
1119
|
{
|
|
@@ -1103,48 +1121,48 @@ function vt({ group: e, state: n, filter: o, expanded: s, onToggle: i }) {
|
|
|
1103
1121
|
height: "10",
|
|
1104
1122
|
viewBox: "0 0 10 10",
|
|
1105
1123
|
style: { transform: f ? "rotate(90deg)" : "none", transition: "transform 150ms" },
|
|
1106
|
-
children: /* @__PURE__ */ t("path", { d: "M3 1l4 4-4 4", stroke:
|
|
1124
|
+
children: /* @__PURE__ */ t("path", { d: "M3 1l4 4-4 4", stroke: k.textMuted, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" })
|
|
1107
1125
|
}
|
|
1108
1126
|
),
|
|
1109
|
-
/* @__PURE__ */ t(
|
|
1110
|
-
/* @__PURE__ */ t(
|
|
1127
|
+
/* @__PURE__ */ t(y, { size: "xs", weight: "semibold", children: e.label }),
|
|
1128
|
+
/* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { marginLeft: "auto" }, children: i.length })
|
|
1111
1129
|
] }),
|
|
1112
1130
|
f && /* @__PURE__ */ t("div", { style: { padding: "0 12px 8px" }, children: e.subgroups ? e.subgroups.map((d) => {
|
|
1113
|
-
const b =
|
|
1131
|
+
const b = a ? d.tokens.filter((v) => v.key.toLowerCase().includes(a)) : d.tokens;
|
|
1114
1132
|
return b.length === 0 ? null : /* @__PURE__ */ c("div", { style: { marginBottom: 8 }, children: [
|
|
1115
|
-
/* @__PURE__ */ t("div", { style:
|
|
1133
|
+
/* @__PURE__ */ t("div", { style: zt, children: d.label }),
|
|
1116
1134
|
b.map((v) => /* @__PURE__ */ t(de, { meta: v, state: n }, v.key))
|
|
1117
1135
|
] }, d.label);
|
|
1118
|
-
}) : (e.tokens ?? []).filter((d) => !
|
|
1136
|
+
}) : (e.tokens ?? []).filter((d) => !a || d.key.toLowerCase().includes(a)).map((d) => /* @__PURE__ */ t(de, { meta: d, state: n }, d.key)) })
|
|
1119
1137
|
] });
|
|
1120
1138
|
}
|
|
1121
1139
|
function de({ meta: e, state: n }) {
|
|
1122
|
-
const
|
|
1140
|
+
const a = n.overrides[e.key] ?? n.tokens[e.key], l = e.key in n.overrides, s = (g) => n.setOverride(e.key, g), i = () => n.removeOverride(e.key);
|
|
1123
1141
|
switch (e.controlType) {
|
|
1124
1142
|
case "color":
|
|
1125
1143
|
return /* @__PURE__ */ t(
|
|
1126
|
-
|
|
1144
|
+
je,
|
|
1127
1145
|
{
|
|
1128
1146
|
label: e.key,
|
|
1129
|
-
value:
|
|
1130
|
-
isOverridden:
|
|
1131
|
-
onChange:
|
|
1132
|
-
onReset:
|
|
1147
|
+
value: a,
|
|
1148
|
+
isOverridden: l,
|
|
1149
|
+
onChange: s,
|
|
1150
|
+
onReset: i
|
|
1133
1151
|
}
|
|
1134
1152
|
);
|
|
1135
1153
|
case "slider":
|
|
1136
1154
|
return /* @__PURE__ */ t(
|
|
1137
|
-
|
|
1155
|
+
We,
|
|
1138
1156
|
{
|
|
1139
1157
|
label: e.key,
|
|
1140
|
-
value:
|
|
1141
|
-
isOverridden:
|
|
1158
|
+
value: a,
|
|
1159
|
+
isOverridden: l,
|
|
1142
1160
|
min: e.sliderConfig.min,
|
|
1143
1161
|
max: e.sliderConfig.max,
|
|
1144
1162
|
step: e.sliderConfig.step,
|
|
1145
1163
|
unit: e.sliderConfig.unit,
|
|
1146
|
-
onChange:
|
|
1147
|
-
onReset:
|
|
1164
|
+
onChange: s,
|
|
1165
|
+
onReset: i
|
|
1148
1166
|
}
|
|
1149
1167
|
);
|
|
1150
1168
|
case "text":
|
|
@@ -1152,15 +1170,15 @@ function de({ meta: e, state: n }) {
|
|
|
1152
1170
|
Ue,
|
|
1153
1171
|
{
|
|
1154
1172
|
label: e.key,
|
|
1155
|
-
value:
|
|
1156
|
-
isOverridden:
|
|
1157
|
-
onChange:
|
|
1158
|
-
onReset:
|
|
1173
|
+
value: a,
|
|
1174
|
+
isOverridden: l,
|
|
1175
|
+
onChange: s,
|
|
1176
|
+
onReset: i
|
|
1159
1177
|
}
|
|
1160
1178
|
);
|
|
1161
1179
|
}
|
|
1162
1180
|
}
|
|
1163
|
-
const
|
|
1181
|
+
const St = {
|
|
1164
1182
|
position: "fixed",
|
|
1165
1183
|
top: 0,
|
|
1166
1184
|
bottom: 0,
|
|
@@ -1173,13 +1191,13 @@ const xt = {
|
|
|
1173
1191
|
flexDirection: "column",
|
|
1174
1192
|
zIndex: 99999,
|
|
1175
1193
|
boxShadow: "-4px 0 24px rgba(0, 0, 0, 0.3)"
|
|
1176
|
-
},
|
|
1194
|
+
}, kt = {
|
|
1177
1195
|
display: "flex",
|
|
1178
1196
|
alignItems: "center",
|
|
1179
1197
|
justifyContent: "space-between",
|
|
1180
1198
|
padding: "10px 12px",
|
|
1181
1199
|
flexShrink: 0
|
|
1182
|
-
},
|
|
1200
|
+
}, wt = {
|
|
1183
1201
|
width: "100%",
|
|
1184
1202
|
background: "var(--lucent-surface-secondary)",
|
|
1185
1203
|
color: "var(--lucent-text-primary)",
|
|
@@ -1194,7 +1212,7 @@ const xt = {
|
|
|
1194
1212
|
flex: 1,
|
|
1195
1213
|
overflowY: "auto",
|
|
1196
1214
|
minHeight: 0
|
|
1197
|
-
},
|
|
1215
|
+
}, Ct = {
|
|
1198
1216
|
display: "flex",
|
|
1199
1217
|
alignItems: "center",
|
|
1200
1218
|
gap: 8,
|
|
@@ -1206,7 +1224,7 @@ const xt = {
|
|
|
1206
1224
|
color: "inherit",
|
|
1207
1225
|
fontFamily: "inherit",
|
|
1208
1226
|
textAlign: "left"
|
|
1209
|
-
},
|
|
1227
|
+
}, zt = {
|
|
1210
1228
|
fontSize: 10,
|
|
1211
1229
|
fontWeight: 600,
|
|
1212
1230
|
textTransform: "uppercase",
|
|
@@ -1214,7 +1232,7 @@ const xt = {
|
|
|
1214
1232
|
color: "var(--lucent-text-secondary)",
|
|
1215
1233
|
marginBottom: 4,
|
|
1216
1234
|
marginTop: 4
|
|
1217
|
-
},
|
|
1235
|
+
}, Bt = {
|
|
1218
1236
|
display: "flex",
|
|
1219
1237
|
alignItems: "center",
|
|
1220
1238
|
gap: 8,
|
|
@@ -1222,7 +1240,7 @@ const xt = {
|
|
|
1222
1240
|
borderTop: "1px solid var(--lucent-border-default)",
|
|
1223
1241
|
flexShrink: 0
|
|
1224
1242
|
};
|
|
1225
|
-
function
|
|
1243
|
+
function Ft(e) {
|
|
1226
1244
|
const n = e.toLowerCase().split("+");
|
|
1227
1245
|
return {
|
|
1228
1246
|
ctrl: n.includes("ctrl"),
|
|
@@ -1233,46 +1251,46 @@ function Bt(e) {
|
|
|
1233
1251
|
};
|
|
1234
1252
|
}
|
|
1235
1253
|
function Tt(e, n) {
|
|
1236
|
-
const
|
|
1237
|
-
return (n.meta || n.ctrl ?
|
|
1254
|
+
const a = navigator.platform.toUpperCase().includes("MAC");
|
|
1255
|
+
return (n.meta || n.ctrl ? a ? e.metaKey : e.ctrlKey : !e.ctrlKey && !e.metaKey) && n.shift === e.shiftKey && n.alt === e.altKey && e.key.toLowerCase() === n.key;
|
|
1238
1256
|
}
|
|
1239
|
-
function
|
|
1257
|
+
function Pt({
|
|
1240
1258
|
shortcut: e = "meta+shift+d",
|
|
1241
1259
|
position: n = "right",
|
|
1242
|
-
defaultOpen:
|
|
1243
|
-
onThemeChange:
|
|
1244
|
-
zIndex:
|
|
1260
|
+
defaultOpen: a = !1,
|
|
1261
|
+
onThemeChange: l,
|
|
1262
|
+
zIndex: s = 99999
|
|
1245
1263
|
}) {
|
|
1246
|
-
const [
|
|
1247
|
-
return
|
|
1248
|
-
if (!
|
|
1264
|
+
const [i, g] = z(a), [f, d] = z("overlay"), { theme: b } = ye(), v = Ge(), x = L(() => g((B) => !B), []);
|
|
1265
|
+
return W(() => {
|
|
1266
|
+
if (!i || f !== "push") {
|
|
1249
1267
|
document.body.style.removeProperty(`margin-${n}`), document.body.style.removeProperty("transition");
|
|
1250
1268
|
return;
|
|
1251
1269
|
}
|
|
1252
1270
|
return document.body.style.transition = "margin 200ms ease", document.body.style[n === "right" ? "marginRight" : "marginLeft"] = "320px", () => {
|
|
1253
1271
|
document.body.style.removeProperty(`margin-${n}`), document.body.style.removeProperty("transition");
|
|
1254
1272
|
};
|
|
1255
|
-
}, [
|
|
1256
|
-
const
|
|
1257
|
-
Tt(
|
|
1273
|
+
}, [i, f, n]), W(() => {
|
|
1274
|
+
const B = Ft(e), R = (T) => {
|
|
1275
|
+
Tt(T, B) && (T.preventDefault(), x());
|
|
1258
1276
|
};
|
|
1259
1277
|
return document.addEventListener("keydown", R), () => document.removeEventListener("keydown", R);
|
|
1260
|
-
}, [e, x]),
|
|
1278
|
+
}, [e, x]), xe(
|
|
1261
1279
|
/* @__PURE__ */ c(fe, { children: [
|
|
1262
|
-
!
|
|
1280
|
+
!i && /* @__PURE__ */ t("button", { onClick: x, style: { ...Mt, [n]: 16, zIndex: s }, title: "Open Lucent DevTools", children: /* @__PURE__ */ c("svg", { width: "20", height: "20", viewBox: "0 0 60 60", fill: "none", children: [
|
|
1263
1281
|
/* @__PURE__ */ t("rect", { x: "8", y: "8", width: "18", height: "22", rx: "2", fill: "#e9c96b", opacity: "0.92" }),
|
|
1264
1282
|
/* @__PURE__ */ t("rect", { x: "8", y: "40", width: "44", height: "12", rx: "2", fill: "#e9c96b", opacity: "0.92" }),
|
|
1265
1283
|
/* @__PURE__ */ t("rect", { x: "36", y: "8", width: "16", height: "28", rx: "2", fill: "#e9c96b", opacity: "0.08" })
|
|
1266
1284
|
] }) }),
|
|
1267
|
-
|
|
1268
|
-
|
|
1285
|
+
i && /* @__PURE__ */ t("div", { style: { zIndex: s }, children: /* @__PURE__ */ t(
|
|
1286
|
+
vt,
|
|
1269
1287
|
{
|
|
1270
1288
|
state: v,
|
|
1271
1289
|
theme: b,
|
|
1272
1290
|
position: n,
|
|
1273
1291
|
mode: f,
|
|
1274
1292
|
onModeChange: d,
|
|
1275
|
-
...
|
|
1293
|
+
...l !== void 0 && { onThemeChange: l },
|
|
1276
1294
|
onClose: x
|
|
1277
1295
|
}
|
|
1278
1296
|
) })
|
|
@@ -1286,8 +1304,8 @@ const Mt = {
|
|
|
1286
1304
|
width: 40,
|
|
1287
1305
|
height: 40,
|
|
1288
1306
|
borderRadius: "50%",
|
|
1289
|
-
background:
|
|
1290
|
-
border: `1px solid ${
|
|
1307
|
+
background: k.bg,
|
|
1308
|
+
border: `1px solid ${k.border}`,
|
|
1291
1309
|
cursor: "pointer",
|
|
1292
1310
|
display: "flex",
|
|
1293
1311
|
alignItems: "center",
|
|
@@ -1296,5 +1314,5 @@ const Mt = {
|
|
|
1296
1314
|
transition: "transform 150ms ease, box-shadow 150ms ease"
|
|
1297
1315
|
};
|
|
1298
1316
|
export {
|
|
1299
|
-
|
|
1317
|
+
Pt as LucentDevTools
|
|
1300
1318
|
};
|