lucent-ui 0.35.0 → 0.37.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/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 C, useRef as ue, useCallback as O, useEffect as N, useMemo as me, createContext as be } from "react";
3
- import { createPortal as ve } from "react-dom";
4
- import { _ as ye, $ as S, T as h, C as E, B as M, e as _, I as he, a0 as xe, a1 as Se, z as ke, K as we, M as Ce, m as ze, F as Be, u as Te, Y as Me, x as Fe, a as B, a2 as Re, a3 as ne, g as De, a4 as Oe, S as Le, d as oe, p as Pe, h as Ee, f as Ie, b as Ae } from "./LucentProvider-BoiXYqA4.js";
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, o] = C({}), s = ue(n);
7
- s.current = n;
8
- const i = O((f, d) => {
9
- document.documentElement.style.setProperty(S(f), d), o((b) => ({ ...b, [f]: d }));
10
- }, []), l = O((f) => {
11
- document.documentElement.style.removeProperty(S(f)), o((d) => {
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
- }, []), u = O(() => {
16
- for (const f of Object.keys(s.current))
15
+ }, []), g = L(() => {
16
+ for (const f of Object.keys(l.current))
17
17
  document.documentElement.style.removeProperty(S(f));
18
- o({});
18
+ a({});
19
19
  }, []);
20
20
  return {
21
21
  tokens: e,
22
22
  overrides: n,
23
23
  overrideCount: Object.keys(n).length,
24
- setOverride: i,
25
- removeOverride: l,
26
- resetAll: u
24
+ setOverride: s,
25
+ removeOverride: i,
26
+ resetAll: g
27
27
  };
28
28
  }
29
- function y(e) {
29
+ function u(e) {
30
30
  return { key: e, controlType: "color" };
31
31
  }
32
- function m(e, n, o, s, i) {
33
- return { key: e, controlType: "slider", sliderConfig: { min: n, max: o, step: s, unit: i } };
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 re = [
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: [y("bgBase"), y("bgSubtle"), y("bgOverlay")]
49
+ tokens: [u("bgBase"), u("bgSubtle"), u("bgOverlay")]
46
50
  },
47
51
  {
48
52
  label: "Surface",
49
53
  tokens: [
50
- y("surface"),
51
- y("surfaceSecondary"),
52
- y("surfaceRaised"),
53
- y("surfaceOverlay"),
54
- y("surfaceTint")
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: [y("borderDefault"), y("borderSubtle"), y("borderStrong"), y("controlTrack")]
63
+ tokens: [u("borderDefault"), u("borderSubtle"), u("borderStrong"), u("controlTrack")]
60
64
  },
61
65
  {
62
66
  label: "Text",
63
- tokens: [y("textPrimary"), y("textSecondary"), y("textDisabled"), y("textInverse")]
67
+ tokens: [u("textPrimary"), u("textSecondary"), u("textDisabled"), u("textInverse")]
64
68
  },
65
69
  {
66
70
  label: "Accent",
67
- tokens: [y("accentDefault"), y("accentHover"), y("accentSubtle"), y("accentBorder"), y("accentFg")]
71
+ tokens: [u("accentDefault"), u("accentHover"), u("accentSubtle"), u("accentBorder"), u("accentFg")]
68
72
  },
69
73
  {
70
74
  label: "Success",
71
- tokens: [y("successDefault"), y("successSubtle"), y("successText")]
75
+ tokens: [u("successDefault"), u("successSubtle"), u("successText")]
72
76
  },
73
77
  {
74
78
  label: "Warning",
75
- tokens: [y("warningDefault"), y("warningSubtle"), y("warningText")]
79
+ tokens: [u("warningDefault"), u("warningSubtle"), u("warningText")]
76
80
  },
77
81
  {
78
82
  label: "Danger",
79
- tokens: [y("dangerDefault"), y("dangerHover"), y("dangerSubtle"), y("dangerText")]
83
+ tokens: [u("dangerDefault"), u("dangerHover"), u("dangerSubtle"), u("dangerText")]
80
84
  },
81
85
  {
82
86
  label: "Info",
83
- tokens: [y("infoDefault"), y("infoSubtle"), y("infoText")]
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(([o, s]) => ` ${o}: '${s}'`).join(`,
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 je(e) {
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 _e({ label: e, value: n, isOverridden: o, onChange: s, onReset: i }) {
181
- return /* @__PURE__ */ c("div", { style: We, children: [
182
- /* @__PURE__ */ t(h, { as: "code", size: "xs", family: "mono", color: "secondary", style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", marginRight: 8 }, children: e }),
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
- E,
189
+ P,
186
190
  {
187
191
  value: n,
188
- onChange: s,
192
+ onChange: l,
189
193
  size: "sm"
190
194
  }
191
195
  ),
192
- o && /* @__PURE__ */ t(M, { variant: "ghost", size: "2xs", onClick: i, "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" }) }) })
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 We = {
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 Ne({
207
+ function We({
204
208
  label: e,
205
209
  value: n,
206
- isOverridden: o,
207
- min: s,
208
- max: i,
209
- step: l,
210
- unit: u,
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(h, { as: "code", size: "xs", family: "mono", color: "secondary", style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", marginRight: 8 }, children: e }),
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: s,
222
- max: i,
223
- step: l,
225
+ min: l,
226
+ max: s,
227
+ step: i,
224
228
  value: b,
225
- onChange: (v) => f(`${v}${u}`),
229
+ onChange: (v) => f(`${v}${g}`),
226
230
  size: "sm",
227
231
  style: { width: 80 }
228
232
  }
229
233
  ),
230
- /* @__PURE__ */ t(h, { as: "code", size: "xs", family: "mono", color: "onAccent", style: { width: 52, textAlign: "right", flexShrink: 0, color: "var(--lucent-accent-default)" }, children: n }),
231
- o && /* @__PURE__ */ t(M, { 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" }) }) })
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: o, onChange: s, onReset: i }) {
243
- return /* @__PURE__ */ c("div", { style: He, children: [
244
- /* @__PURE__ */ t(h, { as: "code", size: "xs", family: "mono", color: "secondary", style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", marginRight: 8 }, children: e }),
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
- he,
251
+ ge,
248
252
  {
249
253
  size: "sm",
250
254
  value: n,
251
- onChange: (l) => s(l.target.value),
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
- o && /* @__PURE__ */ t(M, { variant: "ghost", size: "2xs", onClick: i, "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" }) }) })
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 He = {
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 H(e, n) {
268
- const o = De(e), s = Oe(e, o), i = n === "light", l = B(s, i ? 0.05 : -0.07), u = B(s, i ? 0.85 : -0.6), f = B(s, i ? -0.15 : 0.15);
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: s,
271
- accentFg: o,
272
- accentHover: l,
273
- accentSubtle: u,
274
+ accentDefault: l,
275
+ accentFg: a,
276
+ accentHover: i,
277
+ accentSubtle: g,
274
278
  accentBorder: f
275
279
  };
276
280
  }
277
- function J(e, n) {
278
- const o = n === "light", s = B(e, o ? -0.02 : 0.02), i = B(e, o ? -0.04 : 0.03), [l, u, f] = Re(e), d = o ? ne(l, u * 0.3, Math.min(1, f + (1 - f) * 0.85)) : ne(l, u, Math.min(0.25, f + 0.04)), b = B(d, o ? -0.04 : 0.03), v = B(d, o ? 0 : 0.06), x = B(d, o ? 0 : 0.06);
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: s,
282
- surfaceTint: i,
283
- surface: d,
284
- surfaceSecondary: b,
285
- surfaceRaised: v,
286
- surfaceOverlay: x
285
+ bgSubtle: l,
286
+ surfaceTint: s
287
287
  };
288
288
  }
289
- function X(e, n) {
290
- const o = n === "light";
289
+ function q(e, n) {
290
+ const a = n === "light";
291
291
  return {
292
292
  borderDefault: e,
293
- borderSubtle: B(e, o ? 0.05 : -0.02),
294
- borderStrong: B(e, o ? -0.27 : 0.19)
293
+ borderSubtle: M(e, a ? 0.05 : -0.02),
294
+ borderStrong: M(e, a ? -0.27 : 0.19)
295
295
  };
296
296
  }
297
- function q(e, n) {
298
- const o = n === "light";
297
+ function X(e, n) {
298
+ const a = n === "light";
299
299
  return {
300
300
  surface: e,
301
- surfaceSecondary: B(e, o ? -0.04 : 0.03),
302
- surfaceRaised: B(e, o ? 0 : 0.06),
303
- surfaceOverlay: B(e, o ? 0 : 0.06)
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 Je = [
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 o = {};
317
- for (const { key: s, step: i } of Je) {
318
- const l = e * Math.pow(n, i), u = Math.round(l * 1e3) / 1e3;
319
- o[s] = `${u}rem`;
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 o;
321
+ return a;
322
322
  }
323
- const Xe = [
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
- ], qe = [
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 ae(e) {
345
+ function re(e) {
346
346
  const n = {};
347
- for (const { key: o, rem: s } of qe) {
348
- if (s === 0) {
349
- n[o] = "0px";
347
+ for (const { key: a, rem: l } of Xe) {
348
+ if (l === 0) {
349
+ n[a] = "0px";
350
350
  continue;
351
351
  }
352
- const i = Math.round(s * e * 1e3) / 1e3;
353
- n[o] = `${i}rem`;
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: o, sharp: s, rounded: i, pill: l } of Ve) {
366
- let u;
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
- u = s + (i - s) * d;
369
+ g = l + (s - l) * d;
370
370
  } else {
371
371
  const d = (e - 0.5) / 0.5;
372
- u = i + (l - i) * d;
372
+ g = s + (i - s) * d;
373
373
  }
374
- const f = Math.round(u * 1e3) / 1e3;
375
- n[o] = `${f}rem`;
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: Fe,
380
+ flat: Re,
381
381
  subtle: Me,
382
382
  elevated: Te,
383
- liquidGlass: Be,
384
- brutalist: ze,
385
- neumorphic: Ce,
386
- natural: we,
387
- glow: ke
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" ? xe : Se;
402
- const o = Ye[e];
403
- return n === "dark" ? o.dark : o.light;
401
+ return n === "dark" ? Se : ke;
402
+ const a = Ye[e];
403
+ return n === "dark" ? a.dark : a.light;
404
404
  }
405
- const se = /* @__PURE__ */ new Set(), Qe = {
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 W(e) {
422
- var l;
423
- const n = e.match(/"([^"]+)"/), o = n ? n[1] : (l = e.split(",")[0]) == null ? void 0 : l.trim();
424
- if (!o || se.has(o)) return;
425
- const s = Qe[o];
426
- if (!s) return;
427
- se.add(o);
428
- const i = document.createElement("link");
429
- i.rel = "stylesheet", i.href = `https://fonts.googleapis.com/css2?family=${s}&display=swap`, document.head.appendChild(i);
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', ot = '"JetBrains Mono", "Fira Code", "Cascadia Code", monospace', rt = '"Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif', ie = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', at = '"Outfit", -apple-system, BlinkMacSystemFont, sans-serif', lt = '"Sora", -apple-system, BlinkMacSystemFont, sans-serif', st = '"Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif', ce = [
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: "#f7f8f9", surface: "#ffffff", border: "#e5e7eb" }, dark: { accent: "#f9fafb", bg: "#0c0d12", surface: "#1c1e28", border: "#2e3039" } }
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.5,
446
- density: 1,
447
- shadow: "subtle",
445
+ roundness: 0.75,
446
+ density: 0.99,
447
+ shadow: "liquidGlass",
448
448
  typeBase: 1,
449
- typeRatio: 1.2,
449
+ typeRatio: 1.25,
450
450
  fontFamily: tt,
451
- colors: { light: { accent: "#6366f1", bg: "#f8f7fc", surface: "#ffffff", border: "#e0dde9" }, dark: { accent: "#818cf8", bg: "#0d0c18", surface: "#1e1c30", border: "#302e42" } }
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: ie,
462
- colors: { light: { accent: "#0ea5e9", bg: "#f5f9fc", surface: "#ffffff", border: "#d9e4ec" }, dark: { accent: "#38bdf8", bg: "#0a0e16", surface: "#16202e", border: "#243240" } }
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: "#f5faf8", surface: "#ffffff", border: "#d4e5e0" }, dark: { accent: "#2dd4bf", bg: "#0a110f", surface: "#162824", border: "#263e38" } }
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: rt,
482
- colors: { light: { accent: "#ef4444", bg: "#faf6f5", surface: "#ffffff", border: "#e9ddd8" }, dark: { accent: "#f87171", bg: "#140c0a", surface: "#2c1e1a", border: "#42322c" } }
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: "glow",
489
- typeBase: 0.9375,
488
+ shadow: "flat",
489
+ typeBase: 0.875,
490
490
  typeRatio: 1.125,
491
- fontFamily: ot,
492
- colors: { light: { accent: "#10b981", bg: "#f5faf7", surface: "#ffffff", border: "#dbe8df" }, dark: { accent: "#34d399", bg: "#0a120c", surface: "#16281e", border: "#263e30" } }
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: at,
502
- colors: { light: { accent: "#8b5cf6", bg: "#f8f6fc", surface: "#ffffff", border: "#e2dce9" }, dark: { accent: "#a78bfa", bg: "#100c1a", surface: "#221e34", border: "#362e48" } }
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: "#faf6f8", surface: "#ffffff", border: "#ecdde1" }, dark: { accent: "#f0abfc", bg: "#140a10", surface: "#2c1a24", border: "#422a36" } }
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: st,
522
- colors: { light: { accent: "#475569", bg: "#f4f5f7", surface: "#ffffff", border: "#dde1e6" }, dark: { accent: "#94a3b8", bg: "#0c0e12", surface: "#1c2028", border: "#2e3440" } }
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: ie,
532
- colors: { light: { accent: "#475569", bg: "#f4f5f7", surface: "#ffffff", border: "#dde1e6" }, dark: { accent: "#94a3b8", bg: "#0c0e12", surface: "#1c2028", border: "#2e3440" } }
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
- ], it = [
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", "#fafafa", "#f9fafb", "#f5f5f4", "#fef7ee", "#faf5ff", "#f0f9ff", "#f0fdf4", "#fefce8", "#fff1f2"]
546
+ colors: ["#ffffff", "#fdfcff", "#fbfdff", "#fbfefc", "#fffcfb", "#fafbfd", "#fffbfd", "#fdfbff", "#fafafa", "#f9fafb"]
547
547
  },
548
548
  {
549
549
  label: "Dark",
550
- colors: ["#09090b", "#0a0a0a", "#0c0c0e", "#111827", "#18181b", "#1c1917", "#1a1a2e", "#0f172a", "#171717", "#0d1117"]
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
- ], ft = [
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 ut({ state: e, theme: n }) {
572
- const [o, s] = C(1), [i, l] = C(0.5), [u, f] = C("default"), [d, b] = C(null), v = e.overrides.accentDefault ?? e.tokens.accentDefault, x = O((a) => {
573
- for (const [z, A] of Object.entries(a))
574
- e.setOverride(z, A);
575
- }, [e]), D = O((a) => {
576
- e.resetAll(), b(a.name), s(a.density), l(a.roundness), f(a.shadow);
577
- const z = a.colors[n], A = {
578
- ...H(z.accent, n),
579
- ...J(z.bg, n),
580
- ...q(z.surface, n),
581
- ...X(z.border, n),
582
- ...Z(a.typeBase, a.typeRatio),
583
- ...ae(a.density),
584
- ...le(a.roundness),
585
- ...V(a.shadow, n),
586
- fontFamilyBase: a.fontFamily
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
- W(a.fontFamily), requestAnimationFrame(() => {
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]), T = ue(n);
593
- N(() => {
594
- if (T.current === n || (T.current = n, !d)) return;
595
- const a = ce.find((G) => G.name === d);
596
- if (!a) return;
597
- const z = a.colors[n], A = {
598
- ...H(z.accent, n),
599
- ...J(z.bg, n),
600
- ...q(z.surface, n),
601
- ...X(z.border, n),
602
- ...V(u, n)
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, u, e]);
607
- const R = (a) => {
608
- L(), s(a), x(ae(a));
609
- }, F = (a) => {
610
- L(), l(a), x(le(a));
611
- }, I = (a) => {
612
- L(), f(a), x(V(a, n));
613
- }, r = (a) => {
614
- L(), /^#[0-9a-f]{6}$/i.test(a) ? x(H(a, n)) : e.setOverride("accentDefault", a);
615
- }, g = (a) => {
616
- L(), /^#[0-9a-f]{6}$/i.test(a) ? x(J(a, n)) : e.setOverride("bgBase", a);
617
- }, k = (a) => {
618
- L(), /^#[0-9a-f]{6}$/i.test(a) ? x(q(a, n)) : e.setOverride("surface", a);
619
- }, K = (a) => {
620
- L(), /^#[0-9a-f]{6}$/i.test(a) ? x(X(a, n)) : e.setOverride("borderDefault", a);
621
- }, Q = e.overrides.bgBase ?? e.tokens.bgBase, ee = e.overrides.surface ?? e.tokens.surface, te = e.overrides.borderDefault ?? e.tokens.borderDefault, ge = i < 0.2 ? "Sharp" : i < 0.4 ? "Subtle" : i < 0.6 ? "Rounded" : i < 0.8 ? "Soft" : "Pill", pe = o < 0.85 ? "Compact" : o < 0.95 ? "Snug" : o < 1.05 ? "Default" : o < 1.15 ? "Relaxed" : "Spacious", L = () => b(null);
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((a) => /* @__PURE__ */ c(
628
- M,
640
+ }, children: ce.map((o) => /* @__PURE__ */ c(
641
+ F,
629
642
  {
630
- variant: d === a.name ? "secondary" : "ghost",
631
- onClick: () => D(a),
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: a.roundness < 0.3 ? 3 : a.roundness < 0.7 ? 6 : 12,
645
- background: a.colors[n].accent,
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(h, { size: "xs", ...d !== a.name && { color: "secondary" }, weight: d === a.name ? "semibold" : "regular", style: { fontSize: 9, whiteSpace: "nowrap" }, children: a.name })
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
- a.name
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(E, { value: v, onChange: r, size: "sm", presetGroups: it }),
656
- /* @__PURE__ */ t(h, { size: "xs", color: "secondary", style: { flex: 1 }, children: "Accent" }),
657
- /* @__PURE__ */ t(h, { as: "code", size: "xs", family: "mono", style: { color: "var(--lucent-accent-default)" }, children: v })
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(E, { value: Q, onChange: g, size: "sm", presetGroups: ct }),
661
- /* @__PURE__ */ t(h, { size: "xs", color: "secondary", style: { flex: 1 }, children: "Background" }),
662
- /* @__PURE__ */ t(h, { as: "code", size: "xs", family: "mono", style: { color: "var(--lucent-accent-default)" }, children: Q })
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(E, { value: ee, onChange: k, size: "sm", presetGroups: dt }),
666
- /* @__PURE__ */ t(h, { size: "xs", color: "secondary", style: { flex: 1 }, children: "Surface" }),
667
- /* @__PURE__ */ t(h, { as: "code", size: "xs", family: "mono", style: { color: "var(--lucent-accent-default)" }, children: ee })
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(E, { value: te, onChange: K, size: "sm", presetGroups: ft }),
671
- /* @__PURE__ */ t(h, { size: "xs", color: "secondary", style: { flex: 1 }, children: "Border" }),
672
- /* @__PURE__ */ t(h, { as: "code", size: "xs", family: "mono", style: { color: "var(--lucent-accent-default)" }, children: te })
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(h, { size: "xs", family: "mono", color: "secondary", style: { width: 54, flexShrink: 0 }, children: "Compact" }),
678
- /* @__PURE__ */ t(_, { min: 0.7, max: 1.35, step: 0.01, value: o, onChange: (a) => R(parseFloat(a.target.value)), size: "sm", style: { flex: 1 } }),
679
- /* @__PURE__ */ t(h, { size: "xs", family: "mono", color: "secondary", style: { width: 54, textAlign: "right", flexShrink: 0 }, children: "Spacious" })
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(h, { size: "xs", style: { color: "var(--lucent-accent-default)" }, children: [
682
- pe,
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
- o.toFixed(2),
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(h, { size: "xs", family: "mono", color: "secondary", style: { width: 36, flexShrink: 0 }, children: "Sharp" }),
691
- /* @__PURE__ */ t(_, { min: 0, max: 1, step: 0.01, value: i, onChange: (a) => F(parseFloat(a.target.value)), size: "sm", style: { flex: 1 } }),
692
- /* @__PURE__ */ t(h, { size: "xs", family: "mono", color: "secondary", style: { width: 24, textAlign: "right", flexShrink: 0 }, children: "Pill" })
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((a) => /* @__PURE__ */ t("div", { style: {
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(i - a) < 0.05 ? "var(--lucent-accent-default)" : "var(--lucent-border-default)"}`,
699
- borderRadius: a === 0 ? 2 : a < 0.5 ? 4 : a < 0.8 ? 8 : 16,
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: () => F(a) }, a)) }),
703
- /* @__PURE__ */ t("div", { style: { textAlign: "center", marginTop: 4 }, children: /* @__PURE__ */ t(h, { size: "xs", style: { color: "var(--lucent-accent-default)" }, children: ge }) })
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: a, label: z }) => /* @__PURE__ */ t(
710
- M,
727
+ }, children: Ze.map(({ value: o, label: C }) => /* @__PURE__ */ t(
728
+ F,
711
729
  {
712
- variant: u === a ? "secondary" : "ghost",
730
+ variant: g === o ? "secondary" : "ghost",
713
731
  size: "2xs",
714
- onClick: () => I(a),
732
+ onClick: () => I(o),
715
733
  style: { justifyContent: "center" },
716
- children: z
734
+ children: C
717
735
  },
718
- a
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(h, { size: "xs", weight: "semibold", style: { marginBottom: 10, display: "block" }, children: e }),
747
+ /* @__PURE__ */ t(y, { size: "xs", weight: "semibold", style: { marginBottom: 10, display: "block" }, children: e }),
730
748
  n
731
749
  ] });
732
750
  }
733
- const P = [
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 yt({ state: e, theme: n }) {
750
- const o = e.overrides.fontSizeMd ?? e.tokens.fontSizeMd, s = parseFloat(o) || 1, [i, l] = C(s), [u, f] = C(() => {
751
- const r = e.overrides.fontSizeLg ?? e.tokens.fontSizeLg, g = parseFloat(r) || 1.125, k = parseFloat(o) || 1;
752
- return k > 0 ? Math.round(g / k * 1e3) / 1e3 : 1.125;
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
- N(() => {
755
- const r = parseFloat(e.overrides.fontSizeMd ?? e.tokens.fontSizeMd) || 1, g = parseFloat(e.overrides.fontSizeLg ?? e.tokens.fontSizeLg) || 1.125;
756
- l(r), r > 0 && f(Math.round(g / r * 1e3) / 1e3);
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] = C("all"), v = e.overrides.fontFamilyBase ?? e.tokens.fontFamilyBase, x = e.overrides.fontFamilyMono ?? e.tokens.fontFamilyMono, D = e.overrides.fontFamilyDisplay ?? e.tokens.fontFamilyDisplay, T = O((r) => {
759
- for (const [g, k] of Object.entries(r))
760
- e.setOverride(g, k);
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
- l(r), T(Z(r, u));
763
- }, F = (r) => {
764
- f(r), T(Z(i, r));
765
- }, I = d === "all" ? P : P.filter((r) => r.category === d);
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(j, { label: "Font Family", children: [
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 g = v.includes(r.label) || r.family === v;
803
+ const h = v.includes(r.label) || r.family === v;
786
804
  return /* @__PURE__ */ c(
787
- M,
805
+ F,
788
806
  {
789
- variant: g ? "secondary" : "ghost",
807
+ variant: h ? "secondary" : "ghost",
790
808
  onClick: () => {
791
- W(r.family), e.setOverride("fontFamilyBase", r.family);
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(h, { as: "span", size: "xs", color: "secondary", style: { textTransform: "capitalize" }, children: r.category })
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(h, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Custom" }),
826
+ /* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Custom" }),
809
827
  /* @__PURE__ */ t(
810
- he,
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(j, { label: "Code & Display Fonts", children: /* @__PURE__ */ c("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
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(h, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Monospace" }),
841
+ /* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Monospace" }),
824
842
  /* @__PURE__ */ t(
825
- oe,
843
+ ae,
826
844
  {
827
845
  size: "sm",
828
846
  value: x,
829
847
  onChange: (r) => {
830
- W(r.target.value), e.setOverride("fontFamilyMono", r.target.value);
848
+ N(r.target.value), e.setOverride("fontFamilyMono", r.target.value);
831
849
  },
832
850
  options: [
833
- ...P.filter((r) => r.category === "mono").map((r) => ({ value: r.family, label: r.label })),
834
- ...P.some((r) => r.family === x) ? [] : [{ value: x, label: "Custom" }]
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(h, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Display" }),
858
+ /* @__PURE__ */ t(y, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Display" }),
841
859
  /* @__PURE__ */ t(
842
- oe,
860
+ ae,
843
861
  {
844
862
  size: "sm",
845
863
  value: D,
846
864
  onChange: (r) => {
847
- W(r.target.value), e.setOverride("fontFamilyDisplay", r.target.value);
865
+ N(r.target.value), e.setOverride("fontFamilyDisplay", r.target.value);
848
866
  },
849
867
  options: [
850
- ...P.filter((r) => r.category === "display" || r.category === "sans").map((r) => ({ value: r.family, label: r.label })),
851
- ...P.some((r) => r.family === D) ? [] : [{ value: D, label: "Custom" }]
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(j, { label: "Type Scale", children: /* @__PURE__ */ c("div", { style: { display: "flex", flexDirection: "column", gap: 10 }, children: [
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(h, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Base Size" }),
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(_, { min: 0.75, max: 1.5, step: 0.0625, value: i, onChange: (r) => R(parseFloat(r.target.value)), size: "sm", style: { flex: 1 } }),
862
- /* @__PURE__ */ c(h, { as: "code", size: "xs", family: "mono", style: { width: 56, textAlign: "right", flexShrink: 0, color: "var(--lucent-accent-default)" }, children: [
863
- i,
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(h, { size: "xs", color: "secondary", style: { marginBottom: 4, display: "block" }, children: "Scale Ratio" }),
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(_, { min: 1, max: 1.618, step: 1e-3, value: u, onChange: (r) => F(parseFloat(r.target.value)), size: "sm", style: { flex: 1 } }),
872
- /* @__PURE__ */ t(h, { as: "code", size: "xs", family: "mono", style: { width: 56, textAlign: "right", flexShrink: 0, color: "var(--lucent-accent-default)" }, children: u.toFixed(3) })
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: Xe.map((r) => /* @__PURE__ */ t(
875
- M,
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(u - r.ratio) < 5e-3 ? "secondary" : "ghost",
895
+ variant: Math.abs(g - r.ratio) < 5e-3 ? "secondary" : "ghost",
878
896
  size: "2xs",
879
- onClick: () => F(r.ratio),
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(j, { label: "Text Colors", children: /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 6 }, children: ht.map(({ key: r, label: g }) => {
887
- const k = e.overrides[r] ?? e.tokens[r];
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
- E,
907
+ P,
890
908
  {
891
- label: g,
892
- value: k,
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(j, { label: "Preview", children: /* @__PURE__ */ t(
901
- gt,
918
+ /* @__PURE__ */ t(_, { label: "Preview", children: /* @__PURE__ */ t(
919
+ pt,
902
920
  {
903
921
  family: v,
904
- baseSize: i,
905
- ratio: u,
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 j({ label: e, children: n }) {
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(h, { size: "xs", weight: "semibold", style: { marginBottom: 10, display: "block" }, children: e }),
944
+ /* @__PURE__ */ t(y, { size: "xs", weight: "semibold", style: { marginBottom: 10, display: "block" }, children: e }),
927
945
  n
928
946
  ] });
929
947
  }
930
- function gt({ family: e, baseSize: n, ratio: o, textPrimary: s, textSecondary: i, bgBase: l }) {
931
- const u = n * Math.pow(o, 4), f = n * Math.pow(o, 2), d = n, b = n * Math.pow(o, -1);
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: l,
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: `${u}rem`,
958
+ fontSize: `${g}rem`,
941
959
  fontWeight: 700,
942
- color: s,
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: s,
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: s,
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: i,
979
+ color: s,
962
980
  lineHeight: 1.5
963
981
  }, children: "Secondary caption — smaller, muted for supplemental information." })
964
982
  ] });
965
983
  }
966
- const w = {
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
- }, pt = be(null);
975
- function mt({ children: e }) {
976
- const [n, o] = C(null), s = O((l) => {
977
- l && o(l);
978
- }, []), i = me(() => {
979
- const l = {};
980
- for (const [u, f] of Object.entries(Pe))
981
- l[S(u)] = f;
982
- return l[S("bgBase")] = w.bg, l[S("surface")] = w.surface, l[S("surfaceSecondary")] = w.inputBg, l[S("borderDefault")] = w.border, l[S("borderSubtle")] = w.border, l[S("textPrimary")] = w.text, l[S("textSecondary")] = w.textMuted, l[S("accentDefault")] = w.accent, l[S("accentFg")] = "#0a0a0a", l[S("accentSubtle")] = "rgba(233, 201, 107, 0.12)", l[S("accentHover")] = "#d4b55a", l[S("accentBorder")] = w.accent, l;
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: s, style: i, children: /* @__PURE__ */ t(pt.Provider, { value: n, children: e }) });
1002
+ return /* @__PURE__ */ t("div", { ref: l, style: s, children: /* @__PURE__ */ t(mt.Provider, { value: n, children: e }) });
985
1003
  }
986
- function bt({ state: e, theme: n, position: o, mode: s, onModeChange: i, onThemeChange: l, onClose: u }) {
987
- const [f, d] = C("design"), [b, v] = C(""), [x, D] = C(() => {
988
- const g = {};
989
- for (const k of re)
990
- g[k.label] = k.defaultExpanded ?? !1;
991
- return g;
992
- }), [T, R] = C(!1), F = (g) => {
993
- D((k) => ({ ...k, [g]: !k[g] }));
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 g = $e(e.overrides);
996
- await je(g) && (R(!0), setTimeout(() => R(!1), 2e3));
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(mt, { children: /* @__PURE__ */ c("div", { style: {
999
- ...xt,
1000
- [o]: 0,
1001
- borderLeft: o === "right" ? `1px solid ${w.border}` : void 0,
1002
- borderRight: o === "left" ? `1px solid ${w.border}` : void 0
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: St, children: [
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(h, { size: "sm", weight: "semibold", children: "Lucent DevTools" })
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
- l && /* @__PURE__ */ t(
1032
+ i && /* @__PURE__ */ t(
1015
1033
  Ee,
1016
1034
  {
1017
1035
  checked: n === "dark",
1018
- onChange: () => l(n === "light" ? "dark" : "light"),
1036
+ onChange: () => i(n === "light" ? "dark" : "light"),
1019
1037
  size: "sm"
1020
1038
  }
1021
1039
  ),
1022
1040
  /* @__PURE__ */ t(
1023
- M,
1041
+ F,
1024
1042
  {
1025
1043
  variant: "ghost",
1026
1044
  size: "2xs",
1027
- onClick: () => i(s === "overlay" ? "push" : "overlay"),
1028
- "aria-label": s === "overlay" ? "Push content" : "Overlay",
1029
- title: s === "overlay" ? "Push content" : "Overlay",
1030
- children: s === "overlay" ? /* @__PURE__ */ c("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", 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(M, { variant: "ghost", size: "2xs", onClick: u, "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" }) }) })
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: (g) => d(g),
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: (g) => v(g.target.value),
1062
- style: kt,
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: re.map((g) => /* @__PURE__ */ t(
1067
- vt,
1084
+ /* @__PURE__ */ t("div", { style: Y, children: oe.map((h) => /* @__PURE__ */ t(
1085
+ xt,
1068
1086
  {
1069
- group: g,
1087
+ group: h,
1070
1088
  state: e,
1071
1089
  filter: r,
1072
- expanded: x[g.label] ?? !1,
1073
- onToggle: () => F(g.label)
1090
+ expanded: x[h.label] ?? !1,
1091
+ onToggle: () => T(h.label)
1074
1092
  },
1075
- g.label
1093
+ h.label
1076
1094
  )) })
1077
1095
  ] }),
1078
- f === "design" && /* @__PURE__ */ t("div", { style: Y, children: /* @__PURE__ */ t(ut, { state: e, theme: n }) }),
1079
- f === "type" && /* @__PURE__ */ t("div", { style: Y, children: /* @__PURE__ */ t(yt, { state: e, theme: n }) }),
1080
- /* @__PURE__ */ c("div", { style: zt, children: [
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(M, { size: "xs", onClick: I, children: T ? "Copied!" : "Copy Config" }),
1083
- e.overrideCount > 0 && /* @__PURE__ */ t(M, { variant: "outline", size: "xs", onClick: e.resetAll, children: "Reset All" })
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 vt({ group: e, state: n, filter: o, expanded: s, onToggle: i }) {
1094
- const l = e.subgroups ? e.subgroups.flatMap((d) => d.tokens) : e.tokens ?? [];
1095
- if (!(o === "" || l.some((d) => d.key.toLowerCase().includes(o)))) return null;
1096
- const f = s || o !== "";
1097
- return /* @__PURE__ */ c("div", { style: { borderBottom: `1px solid ${w.border}` }, children: [
1098
- /* @__PURE__ */ c("button", { onClick: i, style: wt, children: [
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: w.textMuted, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" })
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(h, { size: "xs", weight: "semibold", children: e.label }),
1110
- /* @__PURE__ */ t(h, { size: "xs", color: "secondary", style: { marginLeft: "auto" }, children: l.length })
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 = o ? d.tokens.filter((v) => v.key.toLowerCase().includes(o)) : d.tokens;
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: Ct, children: d.label }),
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) => !o || d.key.toLowerCase().includes(o)).map((d) => /* @__PURE__ */ t(de, { meta: d, state: n }, d.key)) })
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 o = n.overrides[e.key] ?? n.tokens[e.key], s = e.key in n.overrides, i = (u) => n.setOverride(e.key, u), l = () => n.removeOverride(e.key);
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
- _e,
1144
+ je,
1127
1145
  {
1128
1146
  label: e.key,
1129
- value: o,
1130
- isOverridden: s,
1131
- onChange: i,
1132
- onReset: l
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
- Ne,
1155
+ We,
1138
1156
  {
1139
1157
  label: e.key,
1140
- value: o,
1141
- isOverridden: s,
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: i,
1147
- onReset: l
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: o,
1156
- isOverridden: s,
1157
- onChange: i,
1158
- onReset: l
1173
+ value: a,
1174
+ isOverridden: l,
1175
+ onChange: s,
1176
+ onReset: i
1159
1177
  }
1160
1178
  );
1161
1179
  }
1162
1180
  }
1163
- const xt = {
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
- }, St = {
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
- }, kt = {
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
- }, wt = {
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
- }, Ct = {
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
- }, zt = {
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 Bt(e) {
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 o = navigator.platform.toUpperCase().includes("MAC");
1237
- return (n.meta || n.ctrl ? o ? e.metaKey : e.ctrlKey : !e.ctrlKey && !e.metaKey) && n.shift === e.shiftKey && n.alt === e.altKey && e.key.toLowerCase() === n.key;
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 Lt({
1257
+ function Pt({
1240
1258
  shortcut: e = "meta+shift+d",
1241
1259
  position: n = "right",
1242
- defaultOpen: o = !1,
1243
- onThemeChange: s,
1244
- zIndex: i = 99999
1260
+ defaultOpen: a = !1,
1261
+ onThemeChange: l,
1262
+ zIndex: s = 99999
1245
1263
  }) {
1246
- const [l, u] = C(o), [f, d] = C("overlay"), { theme: b } = ye(), v = Ge(), x = O(() => u((T) => !T), []);
1247
- return N(() => {
1248
- if (!l || f !== "push") {
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
- }, [l, f, n]), N(() => {
1256
- const T = Bt(e), R = (F) => {
1257
- Tt(F, T) && (F.preventDefault(), x());
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]), ve(
1278
+ }, [e, x]), xe(
1261
1279
  /* @__PURE__ */ c(fe, { children: [
1262
- !l && /* @__PURE__ */ t("button", { onClick: x, style: { ...Mt, [n]: 16, zIndex: i }, title: "Open Lucent DevTools", children: /* @__PURE__ */ c("svg", { width: "20", height: "20", viewBox: "0 0 60 60", fill: "none", children: [
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
- l && /* @__PURE__ */ t("div", { style: { zIndex: i }, children: /* @__PURE__ */ t(
1268
- bt,
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
- ...s !== void 0 && { onThemeChange: s },
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: w.bg,
1290
- border: `1px solid ${w.border}`,
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
- Lt as LucentDevTools
1317
+ Pt as LucentDevTools
1300
1318
  };