@luci-dev/capture 0.5.4 → 0.5.6

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/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # @luci-dev/capture
2
+
3
+ The capture engine and toolbar behind Luci's Capture mode: reads components, text, colors and spacing from a live page and writes them as design files.
4
+
5
+ This package is a part of [Luci](https://github.com/waidesign/luci-by-pawprint.design#readme), design control for AI coding agents. You do not need to install it yourself: start with the CLI, which brings it in.
6
+
7
+ ```bash
8
+ npx @luci-dev/cli@latest init
9
+ ```
10
+
11
+ See [@luci-dev/cli](https://www.npmjs.com/package/@luci-dev/cli) for setup and updating.
12
+
13
+ MIT licensed. Runs on your machine: no telemetry, no account.
@@ -230,6 +230,7 @@ var LuciCapture = (() => {
230
230
  tokenOf: () => tokenOf,
231
231
  tokensOf: () => tokensOf,
232
232
  topLevelParts: () => topLevelParts,
233
+ touchScreen: () => touchScreen,
233
234
  triggerOf: () => triggerOf,
234
235
  typographySystem: () => typographySystem2,
235
236
  uniqueParts: () => uniqueParts,
@@ -4435,7 +4436,7 @@ ${content.join("\n")}
4435
4436
  const unrecKeys = /* @__PURE__ */ new Map();
4436
4437
  let unrecIssue;
4437
4438
  const keyIssues = /* @__PURE__ */ new Map();
4438
- const collect = (iss, side) => {
4439
+ const collect = (iss, side2) => {
4439
4440
  let keys;
4440
4441
  if (iss.code === "unrecognized_keys" && !iss.path?.length) {
4441
4442
  unrecIssue ?? (unrecIssue = iss);
@@ -4451,7 +4452,7 @@ ${content.join("\n")}
4451
4452
  for (const k6 of keys) {
4452
4453
  if (!unrecKeys.has(k6))
4453
4454
  unrecKeys.set(k6, {});
4454
- unrecKeys.get(k6)[side] = true;
4455
+ unrecKeys.get(k6)[side2] = true;
4455
4456
  }
4456
4457
  return true;
4457
4458
  };
@@ -20078,11 +20079,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
20078
20079
  }
20079
20080
 
20080
20081
  // node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/in-out.js
20081
- function withChecks(side, checks) {
20082
+ function withChecks(side2, checks) {
20082
20083
  if (!checks?.length)
20083
- return side;
20084
- const def = side._zod.def;
20085
- return clone(side, mergeDefs(def, { checks: [...def.checks ?? [], ...checks] }), { parent: true });
20084
+ return side2;
20085
+ const def = side2._zod.def;
20086
+ return clone(side2, mergeDefs(def, { checks: [...def.checks ?? [], ...checks] }), { parent: true });
20086
20087
  }
20087
20088
  function outSide(def) {
20088
20089
  return withChecks(def.out, def.checks);
@@ -25872,6 +25873,10 @@ ${external_exports.prettifyError(meta3.error)}`);
25872
25873
  // packages/format/dist/capture/compare.js
25873
25874
  var NONE2 = "not set";
25874
25875
  var shown = (v3) => v3.token ? `${v3.value} (${v3.token})` : v3.value;
25876
+ function side(meta3, instructions) {
25877
+ const note2 = instructions?.replace(/\s+/g, " ").trim();
25878
+ return { name: meta3.name, type: meta3.type, source: meta3.source, ...note2 ? { note: note2 } : {} };
25879
+ }
25875
25880
  var put = (out, what, property, v3) => {
25876
25881
  if (v3)
25877
25882
  out.set(what, { value: v3.computed, ...v3.token ? { token: v3.token } : {}, property });
@@ -25975,8 +25980,8 @@ ${external_exports.prettifyError(meta3.error)}`);
25975
25980
  function compareCaptures(a3, b2) {
25976
25981
  const fa = flattenCapture(a3), fb = flattenCapture(b2);
25977
25982
  const out = {
25978
- a: { name: a3.meta.name, type: a3.meta.type, source: a3.meta.source },
25979
- b: { name: b2.meta.name, type: b2.meta.type, source: b2.meta.source },
25983
+ a: side(a3.meta, a3.instructions),
25984
+ b: side(b2.meta, b2.instructions),
25980
25985
  same: [],
25981
25986
  differences: []
25982
25987
  };
@@ -25995,8 +26000,8 @@ ${external_exports.prettifyError(meta3.error)}`);
25995
26000
  const d3 = result.differences;
25996
26001
  const out = [
25997
26002
  `# Compare: ${names.a} and ${names.b}`,
25998
- `- A: ${result.a.name} (${result.a.type}), from ${result.a.source}`,
25999
- `- B: ${result.b.name} (${result.b.type}), from ${result.b.source}`,
26003
+ `- A: ${result.a.name} (${result.a.type}), from ${result.a.source}${result.a.note ? `. Your note: ${result.a.note}` : ""}`,
26004
+ `- B: ${result.b.name} (${result.b.type}), from ${result.b.source}${result.b.note ? `. Your note: ${result.b.note}` : ""}`,
26000
26005
  `- ${result.same.length} value${result.same.length === 1 ? " is" : "s are"} the same; ${d3.length} differ${d3.length === 1 ? "s" : ""}.`
26001
26006
  ];
26002
26007
  if (d3.length) {
@@ -27361,10 +27366,10 @@ module.exports = {
27361
27366
  };
27362
27367
  if (el.hasText) add("color", "text");
27363
27368
  add("background-color", "background");
27364
- for (const side of SIDES) {
27365
- const width = parseFloat(el.styles[`border-${side}-width`] ?? "0");
27366
- const style = el.styles[`border-${side}-style`] ?? "none";
27367
- if (width > 0 && style !== "none" && style !== "hidden") add(`border-${side}-color`, "border");
27369
+ for (const side2 of SIDES) {
27370
+ const width = parseFloat(el.styles[`border-${side2}-width`] ?? "0");
27371
+ const style = el.styles[`border-${side2}-style`] ?? "none";
27372
+ if (width > 0 && style !== "none" && style !== "hidden") add(`border-${side2}-color`, "border");
27368
27373
  }
27369
27374
  if (SVG_SHAPES.has(el.tag)) {
27370
27375
  add("fill", "text");
@@ -27676,12 +27681,12 @@ module.exports = {
27676
27681
  if (!short) return null;
27677
27682
  const value = style.getPropertyValue(short[0]).trim();
27678
27683
  if (value) {
27679
- const side2 = sideOf(topLevelParts(value), short[1], short[0] === "gap");
27680
- return side2 ? { value: side2, important: style.getPropertyPriority(short[0]) === "important" } : null;
27684
+ const side3 = sideOf(topLevelParts(value), short[1], short[0] === "gap");
27685
+ return side3 ? { value: side3, important: style.getPropertyPriority(short[0]) === "important" } : null;
27681
27686
  }
27682
- const side = /^border-(top|right|bottom|left)-color$/.exec(prop)?.[1];
27683
- if (side) {
27684
- for (const shorthand of [`border-${side}`, "border"]) {
27687
+ const side2 = /^border-(top|right|bottom|left)-color$/.exec(prop)?.[1];
27688
+ if (side2) {
27689
+ for (const shorthand of [`border-${side2}`, "border"]) {
27685
27690
  const v3 = style.getPropertyValue(shorthand).trim();
27686
27691
  const color = v3 ? borderColorPart(v3) : void 0;
27687
27692
  if (color) return { value: color, important: style.getPropertyPriority(shorthand) === "important" };
@@ -29089,8 +29094,8 @@ module.exports = {
29089
29094
  function diffComputed(part, rest, now, authored2 = {}) {
29090
29095
  const invisible = (p6) => {
29091
29096
  if (/^outline-/.test(p6) && p6 !== "outline-offset") return rest["outline-style"] === "none" && now["outline-style"] === "none";
29092
- const side = /^border-(\w+)-color$/.exec(p6)?.[1];
29093
- return side ? parseFloat(rest[`border-${side}-width`] ?? "0") === 0 && parseFloat(now[`border-${side}-width`] ?? "0") === 0 : false;
29097
+ const side2 = /^border-(\w+)-color$/.exec(p6)?.[1];
29098
+ return side2 ? parseFloat(rest[`border-${side2}-width`] ?? "0") === 0 && parseFloat(now[`border-${side2}-width`] ?? "0") === 0 : false;
29094
29099
  };
29095
29100
  const changed = STATE_PROPERTIES.filter((p6) => now[p6] !== void 0 && !same2(p6, rest[p6] ?? "", now[p6] ?? "") && !invisible(p6));
29096
29101
  const out = [];
@@ -30067,6 +30072,13 @@ module.exports = {
30067
30072
  const r4 = el.getBoundingClientRect();
30068
30073
  return `${el.tagName.toLowerCase()} ${Math.round(r4.width)} \xD7 ${Math.round(r4.height)}`;
30069
30074
  }
30075
+ function touchScreen(win) {
30076
+ try {
30077
+ return win.matchMedia("(hover: none)").matches;
30078
+ } catch {
30079
+ return false;
30080
+ }
30081
+ }
30070
30082
 
30071
30083
  // packages/capture/src/ui/basket.ts
30072
30084
  function memoryBasketStore(initial = []) {
@@ -30559,7 +30571,7 @@ module.exports = {
30559
30571
  "muzzle-800": "#3B3A39",
30560
30572
  "muzzle-900": "#2B2B2B"
30561
30573
  };
30562
- var TOKENS_CSS = '/* Generated by scripts/brand-sync.mjs from brand/. Do not edit: run `pnpm brand:sync`. */\n:host, :root {\n --luci-color-ginger-50: #FEF5E8;\n --luci-color-ginger-100: #FEEBD1;\n --luci-color-ginger-200: #FCD7AA;\n --luci-color-ginger-300: #FBBE7A;\n --luci-color-ginger-400: #F6A24F;\n --luci-color-ginger-500: #EC862B;\n --luci-color-ginger-600: #D86D1D;\n --luci-color-ginger-700: #AD4F1A;\n --luci-color-ginger-800: #893D1B;\n --luci-color-ginger-900: #652D18;\n --luci-color-ginger-950: #451F12;\n --luci-color-collar-lime-100: #EAF5C7;\n --luci-color-collar-lime-300: #CBE66D;\n --luci-color-collar-lime-500: #B4D43C;\n --luci-color-collar-lime-700: #547617;\n --luci-color-nose-pink-100: #FFE4E1;\n --luci-color-nose-pink-300: #F5B9B4;\n --luci-color-nose-pink-500: #E79993;\n --luci-color-nose-pink-700: #AB5050;\n --luci-color-iris-gold-100: #F7F0CA;\n --luci-color-iris-gold-300: #E6D17A;\n --luci-color-iris-gold-500: #CBB042;\n --luci-color-iris-gold-700: #7B6813;\n --luci-color-success-100: #DFF3D5;\n --luci-color-success-700: #3F7932;\n --luci-color-warning-100: #FEEDC9;\n --luci-color-warning-700: #975F03;\n --luci-color-danger-100: #FFE3DF;\n --luci-color-danger-700: #C5372F;\n --luci-color-info-100: #D9F0F3;\n --luci-color-info-700: #1E767F;\n --luci-color-muzzle-0: #FDF9F6;\n --luci-color-muzzle-50: #F5EFEA;\n --luci-color-muzzle-100: #EBE5E0;\n --luci-color-muzzle-200: #DBD4CF;\n --luci-color-muzzle-300: #C2BCB8;\n --luci-color-muzzle-400: #A29D99;\n --luci-color-muzzle-500: #837F7C;\n --luci-color-muzzle-600: #656360;\n --luci-color-muzzle-700: #4F4D4B;\n --luci-color-muzzle-800: #3B3A39;\n --luci-color-muzzle-900: #2B2B2B;\n --luci-radius-sm: 8px;\n --luci-radius-md: 12px;\n --luci-radius-lg: 16px;\n --luci-radius-xl: 24px;\n --luci-radius-full: 9999px;\n --luci-space-4: 4px;\n --luci-space-8: 8px;\n --luci-space-12: 12px;\n --luci-space-16: 16px;\n --luci-space-20: 20px;\n --luci-space-24: 24px;\n --luci-space-32: 32px;\n --luci-space-40: 40px;\n --luci-space-48: 48px;\n --luci-space-64: 64px;\n --luci-space-80: 80px;\n --luci-font-display: "Luci Fredoka", Fredoka, "Luci Inter", Inter, sans-serif;\n --luci-font-body: "Luci Inter", Inter, system-ui, sans-serif;\n --luci-font-code: "Luci JetBrains Mono", \'JetBrains Mono\', ui-monospace, monospace;\n --luci-type-display-size: 40px;\n --luci-type-display-line: 44px;\n --luci-type-display-weight: 600;\n --luci-type-title-size: 24px;\n --luci-type-title-line: 30px;\n --luci-type-title-weight: 600;\n --luci-type-heading-size: 17px;\n --luci-type-heading-line: 24px;\n --luci-type-heading-weight: 600;\n --luci-type-body-size: 15px;\n --luci-type-body-line: 22px;\n --luci-type-body-weight: 400;\n --luci-type-small-size: 13px;\n --luci-type-small-line: 18px;\n --luci-type-small-weight: 500;\n --luci-type-micro-size: 12px;\n --luci-type-micro-line: 16px;\n --luci-type-micro-weight: 600;\n --luci-type-code-size: 13px;\n --luci-type-code-line: 20px;\n --luci-type-code-weight: 500;\n --luci-shadow-float: 0 8px 24px rgba(43, 43, 43, 0.14);\n --luci-motion-fast: 150ms ease-out;\n --luci-motion-base: 200ms ease-out;\n --luci-motion-exit: 150ms ease-in;\n --luci-size-touch-target: 44px;\n --luci-size-toolbar-button: 48px;\n --luci-size-toolbar-icon: 22px;\n --luci-size-mascot-min: 96px;\n --luci-size-toast-face: 48px;\n --luci-color-surface: var(--luci-color-muzzle-50);\n --luci-color-surface-raised: var(--luci-color-muzzle-0);\n --luci-color-surface-sunken: var(--luci-color-muzzle-100);\n --luci-color-ink: var(--luci-color-muzzle-900);\n --luci-color-ink-secondary: var(--luci-color-muzzle-600);\n --luci-color-ink-disabled: var(--luci-color-muzzle-400);\n --luci-color-primary: var(--luci-color-ginger-500);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-600);\n --luci-color-primary-soft: var(--luci-color-ginger-100);\n --luci-color-link: var(--luci-color-ginger-700);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-100);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-900) 6%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-900) 12%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-200);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-900) 24%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-900);\n --luci-color-bar: var(--luci-color-muzzle-900);\n --luci-color-bar-ink: var(--luci-color-muzzle-50);\n --luci-color-bar-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-bar-hover: var(--luci-color-muzzle-700);\n --luci-color-bar-stroke: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-tool-active: var(--luci-color-ginger-400);\n --luci-color-on-tool-active: var(--luci-color-muzzle-900);\n --luci-color-pick: var(--luci-color-ginger-500);\n --luci-color-pick-fill: color-mix(in srgb, var(--luci-color-ginger-500) 14%, transparent);\n --luci-color-pick-blocked: var(--luci-color-danger-700);\n --luci-color-pick-blocked-fill: color-mix(in srgb, var(--luci-color-muzzle-500) 35%, transparent);\n --luci-color-pad-fill: color-mix(in srgb, var(--luci-color-collar-lime-500) 35%, transparent);\n --luci-color-margin-fill: color-mix(in srgb, var(--luci-color-ginger-300) 35%, transparent);\n --luci-color-insert: var(--luci-color-nose-pink-500);\n --luci-color-insert-fill: color-mix(in srgb, var(--luci-color-nose-pink-500) 16%, transparent);\n --luci-color-insert-ink: var(--luci-color-nose-pink-100);\n}\n@media (prefers-color-scheme: dark) {\n .luci-theme:not([data-theme="light"]) {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n }\n}\n.luci-theme[data-theme="dark"] {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n}\n';
30574
+ var TOKENS_CSS = '/* Generated by scripts/brand-sync.mjs from brand/. Do not edit: run `pnpm brand:sync`. */\n:host, :root {\n --luci-color-ginger-50: #FEF5E8;\n --luci-color-ginger-100: #FEEBD1;\n --luci-color-ginger-200: #FCD7AA;\n --luci-color-ginger-300: #FBBE7A;\n --luci-color-ginger-400: #F6A24F;\n --luci-color-ginger-500: #EC862B;\n --luci-color-ginger-600: #D86D1D;\n --luci-color-ginger-700: #AD4F1A;\n --luci-color-ginger-800: #893D1B;\n --luci-color-ginger-900: #652D18;\n --luci-color-ginger-950: #451F12;\n --luci-color-collar-lime-100: #EAF5C7;\n --luci-color-collar-lime-300: #CBE66D;\n --luci-color-collar-lime-500: #B4D43C;\n --luci-color-collar-lime-700: #547617;\n --luci-color-nose-pink-100: #FFE4E1;\n --luci-color-nose-pink-300: #F5B9B4;\n --luci-color-nose-pink-500: #E79993;\n --luci-color-nose-pink-700: #AB5050;\n --luci-color-iris-gold-100: #F7F0CA;\n --luci-color-iris-gold-300: #E6D17A;\n --luci-color-iris-gold-500: #CBB042;\n --luci-color-iris-gold-700: #7B6813;\n --luci-color-success-100: #DFF3D5;\n --luci-color-success-700: #3F7932;\n --luci-color-warning-100: #FEEDC9;\n --luci-color-warning-700: #975F03;\n --luci-color-danger-100: #FFE3DF;\n --luci-color-danger-700: #C5372F;\n --luci-color-info-100: #D9F0F3;\n --luci-color-info-700: #1E767F;\n --luci-color-muzzle-0: #FDF9F6;\n --luci-color-muzzle-50: #F5EFEA;\n --luci-color-muzzle-100: #EBE5E0;\n --luci-color-muzzle-200: #DBD4CF;\n --luci-color-muzzle-300: #C2BCB8;\n --luci-color-muzzle-400: #A29D99;\n --luci-color-muzzle-500: #837F7C;\n --luci-color-muzzle-600: #656360;\n --luci-color-muzzle-700: #4F4D4B;\n --luci-color-muzzle-800: #3B3A39;\n --luci-color-muzzle-900: #2B2B2B;\n --luci-radius-sm: 8px;\n --luci-radius-md: 12px;\n --luci-radius-lg: 16px;\n --luci-radius-xl: 24px;\n --luci-radius-full: 9999px;\n --luci-space-4: 4px;\n --luci-space-8: 8px;\n --luci-space-12: 12px;\n --luci-space-16: 16px;\n --luci-space-20: 20px;\n --luci-space-24: 24px;\n --luci-space-32: 32px;\n --luci-space-40: 40px;\n --luci-space-48: 48px;\n --luci-space-64: 64px;\n --luci-space-80: 80px;\n --luci-font-display: "Luci Fredoka", Fredoka, "Luci Inter", Inter, sans-serif;\n --luci-font-body: "Luci Inter", Inter, system-ui, sans-serif;\n --luci-font-code: "Luci JetBrains Mono", \'JetBrains Mono\', ui-monospace, monospace;\n --luci-type-display-size: 40px;\n --luci-type-display-line: 44px;\n --luci-type-display-weight: 600;\n --luci-type-title-size: 24px;\n --luci-type-title-line: 30px;\n --luci-type-title-weight: 600;\n --luci-type-heading-size: 17px;\n --luci-type-heading-line: 24px;\n --luci-type-heading-weight: 600;\n --luci-type-body-size: 15px;\n --luci-type-body-line: 22px;\n --luci-type-body-weight: 400;\n --luci-type-small-size: 13px;\n --luci-type-small-line: 18px;\n --luci-type-small-weight: 500;\n --luci-type-micro-size: 12px;\n --luci-type-micro-line: 16px;\n --luci-type-micro-weight: 600;\n --luci-type-code-size: 13px;\n --luci-type-code-line: 20px;\n --luci-type-code-weight: 500;\n --luci-shadow-float: 0 1px 2px rgba(0, 0, 0, 0.24), 0 8px 24px rgba(0, 0, 0, 0.28);\n --luci-shadow-edge: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.05);\n --luci-motion-fast: 150ms ease-out;\n --luci-motion-base: 200ms ease-out;\n --luci-motion-exit: 150ms ease-in;\n --luci-size-touch-target: 44px;\n --luci-size-toolbar-button: 48px;\n --luci-size-toolbar-icon: 22px;\n --luci-size-mascot-min: 96px;\n --luci-size-toast-face: 48px;\n --luci-color-surface: var(--luci-color-muzzle-50);\n --luci-color-surface-raised: var(--luci-color-muzzle-0);\n --luci-color-surface-sunken: var(--luci-color-muzzle-100);\n --luci-color-ink: var(--luci-color-muzzle-900);\n --luci-color-ink-secondary: var(--luci-color-muzzle-600);\n --luci-color-ink-disabled: var(--luci-color-muzzle-400);\n --luci-color-primary: var(--luci-color-ginger-500);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-600);\n --luci-color-primary-soft: var(--luci-color-ginger-100);\n --luci-color-link: var(--luci-color-ginger-700);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-100);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-900) 6%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-900) 12%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-200);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-900) 24%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-900);\n --luci-color-bar: var(--luci-color-muzzle-900);\n --luci-color-bar-ink: var(--luci-color-muzzle-50);\n --luci-color-bar-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-bar-hover: var(--luci-color-muzzle-700);\n --luci-color-bar-stroke: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-tool-active: var(--luci-color-ginger-400);\n --luci-color-on-tool-active: var(--luci-color-muzzle-900);\n --luci-color-pick: var(--luci-color-ginger-500);\n --luci-color-pick-fill: color-mix(in srgb, var(--luci-color-ginger-500) 14%, transparent);\n --luci-color-pick-blocked: var(--luci-color-danger-700);\n --luci-color-pick-blocked-fill: color-mix(in srgb, var(--luci-color-muzzle-500) 35%, transparent);\n --luci-color-pad-fill: color-mix(in srgb, var(--luci-color-collar-lime-500) 35%, transparent);\n --luci-color-margin-fill: color-mix(in srgb, var(--luci-color-ginger-300) 35%, transparent);\n --luci-color-insert: var(--luci-color-nose-pink-500);\n --luci-color-insert-fill: color-mix(in srgb, var(--luci-color-nose-pink-500) 16%, transparent);\n --luci-color-insert-ink: var(--luci-color-nose-pink-100);\n}\n@media (prefers-color-scheme: dark) {\n .luci-theme:not([data-theme="light"]) {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n }\n}\n.luci-theme[data-theme="dark"] {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n}\n';
30563
30575
 
30564
30576
  // packages/ui/dist/mascot/art.js
30565
30577
  var POSE_SVG = {
@@ -31212,7 +31224,7 @@ module.exports = {
31212
31224
  }
31213
31225
 
31214
31226
  // packages/ui/dist/about.js
31215
- var LUCI_VERSION = "0.5.3";
31227
+ var LUCI_VERSION = "0.5.6";
31216
31228
  var LUCI_REPO_URL = "https://github.com/waidesign/luci-by-pawprint.design";
31217
31229
 
31218
31230
  // packages/ui/dist/copy.js
@@ -31299,9 +31311,6 @@ module.exports = {
31299
31311
  function EmptyState(props) {
31300
31312
  return u2("div", { class: "empty", ...props.part ? { "data-part": props.part } : {}, children: [u2(Mascot, { pose: props.pose ?? "peek", size: props.size ?? 120 }), u2("p", { class: "t-title", children: props.title }), props.body && u2("p", { children: props.body }), props.children] });
31301
31313
  }
31302
- function Badge(props) {
31303
- return u2("span", { class: props.brand ? "badge brand" : "badge", children: props.children });
31304
- }
31305
31314
 
31306
31315
  // packages/ui/dist/styles.js
31307
31316
  var BASE_CSS = `
@@ -31318,6 +31327,13 @@ module.exports = {
31318
31327
  color: var(--luci-color-ink);
31319
31328
  -webkit-font-smoothing: antialiased;
31320
31329
  }
31330
+ /*
31331
+ * Elevation for cards floating over the page: the float shadow, plus the faint inner edge on Charcoal
31332
+ * (the dark theme's cards), so they stay apart from a dark host page of the same colour.
31333
+ */
31334
+ .luci-theme { --luci-elevation: var(--luci-shadow-float); --luci-elevation-bar: var(--luci-shadow-edge), var(--luci-shadow-float); }
31335
+ @media (prefers-color-scheme: dark) { .luci-theme:not([data-theme="light"]) { --luci-elevation: var(--luci-shadow-edge), var(--luci-shadow-float); } }
31336
+ .luci-theme[data-theme="dark"] { --luci-elevation: var(--luci-shadow-edge), var(--luci-shadow-float); }
31321
31337
  .luci-theme *, .luci-theme *::before, .luci-theme *::after { box-sizing: border-box; }
31322
31338
  .luci-theme :where(button, input, select, textarea) { font: inherit; color: inherit; }
31323
31339
  .luci-theme :where(code, kbd, pre, samp) { font-family: var(--luci-font-code); }
@@ -31439,7 +31455,7 @@ module.exports = {
31439
31455
  .status-msg .status-title { margin: 0; color: var(--status); font-size: var(--luci-type-heading-size); line-height: var(--luci-type-heading-line); font-weight: var(--luci-type-heading-weight); }
31440
31456
  .status-msg .status-detail { margin: 0; }
31441
31457
  .status-msg .mascot { width: 48px; }
31442
- .toast { position: fixed; z-index: 2147483647; box-shadow: var(--luci-shadow-float); }
31458
+ .toast { position: fixed; z-index: 2147483647; box-shadow: var(--luci-elevation); }
31443
31459
 
31444
31460
  /* Card and panel */
31445
31461
  .card { padding: var(--luci-space-24); border: 1px solid var(--luci-color-stroke-subtle); border-radius: var(--luci-radius-xl); background: var(--luci-color-surface-raised); }
@@ -31490,6 +31506,12 @@ module.exports = {
31490
31506
  .luci-theme [data-tip]:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(-50%, 0);
31491
31507
  transition: opacity var(--luci-motion-base) 300ms, transform var(--luci-motion-base) 300ms; }
31492
31508
 
31509
+ /*
31510
+ * Touch screens have no hover: a tapped button would keep its tooltip until the next tap elsewhere, over
31511
+ * the bar and its cards. There they show for keyboard focus only.
31512
+ */
31513
+ @media (hover: none) { .luci-theme [data-tip]:hover:not(:focus-visible)::after { opacity: 0; transition: none; } }
31514
+
31493
31515
  /* Left-aligned tooltips (first button in rows, cards, or explicit data-tip-align="left") open rightwards to prevent clipping inside cards/panels */
31494
31516
  .luci-theme [data-tip][data-tip-align="left"]::after,
31495
31517
  .luci-theme .panel .actions > [data-tip]:first-child::after,
@@ -31663,7 +31685,8 @@ ${UI_CSS}
31663
31685
  border-radius: 32px;
31664
31686
  background: var(--luci-color-bar);
31665
31687
  color: var(--luci-color-bar-ink);
31666
- box-shadow: var(--luci-shadow-float);
31688
+ /* Charcoal in both themes, so always with the inner edge: it stays apart from a dark page */
31689
+ box-shadow: var(--luci-elevation-bar);
31667
31690
  }
31668
31691
  /* Above the cards, so the tools' tooltips are never under a card */
31669
31692
  .shell > .bar { position: relative; z-index: 2; }
@@ -31708,6 +31731,7 @@ ${UI_CSS}
31708
31731
  .luci-theme .bar .basket-pill[aria-pressed="true"],
31709
31732
  .luci-theme .bar .basket-pill[aria-pressed="true"]:hover:not(:disabled),
31710
31733
  .luci-theme .bar button.basket-pill[aria-pressed="true"]:hover:not(:disabled) { background: var(--luci-color-collar-lime-300); color: var(--luci-color-on-accent); }
31734
+ .bar .basket-n { display: none; }
31711
31735
  .brand { display: inline-flex; align-items: center; gap: var(--luci-space-8); padding: 0 var(--luci-space-8) 0 0;
31712
31736
  font: var(--luci-type-display-weight) var(--luci-type-heading-size)/1 var(--luci-font-display); color: var(--luci-color-bar-ink); }
31713
31737
  /* The dev toolbar's mode switch, on Charcoal */
@@ -31722,7 +31746,8 @@ ${UI_CSS}
31722
31746
  * --luci-y its distances from that corner's edges (default bottom right, 12 px, by its button; the
31723
31747
  * person can drag it anywhere). Everything opens from the bar, on the side with room: cards just above
31724
31748
  * a bar in the bottom half, just below one in the top half, aligned to its side. A panel takes the
31725
- * hint's place while it is open. The extension sets none of this (its bar keeps its own place).
31749
+ * hint's place while it is open. --luci-bar-h is the bar's measured height (it can wrap), so a card
31750
+ * never opens under it. The extension sets none of this (its bar keeps its own place).
31726
31751
  */
31727
31752
  :host([data-h="right"]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { left: auto; right: var(--luci-x, 12px); }
31728
31753
  :host([data-h="left"]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { right: auto; left: var(--luci-x, 12px); }
@@ -31730,14 +31755,14 @@ ${UI_CSS}
31730
31755
  :host([data-h="left"]) .shell { align-items: flex-start; }
31731
31756
  :host([data-v="bottom"]) :is(.shell, .bar:not(.shell > .bar)) { top: auto; bottom: var(--luci-y, 12px); }
31732
31757
  :host([data-v="bottom"]) .shell { flex-direction: column-reverse; }
31733
- :host([data-v="bottom"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { top: auto; bottom: calc(var(--luci-y, 12px) + 72px); }
31734
- :host([data-v="bottom"]) .menu { top: auto; bottom: calc(var(--luci-y, 12px) + 64px); }
31758
+ :host([data-v="bottom"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { top: auto; bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 8px); }
31759
+ :host([data-v="bottom"]) .menu { top: auto; bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px)); }
31735
31760
  :host([data-v="top"]) :is(.shell, .bar:not(.shell > .bar)) { bottom: auto; top: var(--luci-y, 12px); }
31736
- :host([data-v="top"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { bottom: auto; top: calc(var(--luci-y, 12px) + 72px); }
31737
- :host([data-v="top"]) .menu { bottom: auto; top: calc(var(--luci-y, 12px) + 64px); }
31761
+ :host([data-v="top"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { bottom: auto; top: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 8px); }
31762
+ :host([data-v="top"]) .menu { bottom: auto; top: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px)); }
31738
31763
  :host([data-v]) .shell { max-height: calc(100vh - var(--luci-y, 12px) - 12px); }
31739
- :host([data-v]) .panel:not(.shell > .panel) { max-height: min(72vh, calc(100vh - var(--luci-y, 12px) - 96px)); }
31740
- :host([data-v]) .layout-panel:not(.shell > .panel) { max-height: min(80vh, calc(100vh - var(--luci-y, 12px) - 96px)); }
31764
+ :host([data-v]) .panel:not(.shell > .panel) { max-height: min(72vh, calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 32px)); }
31765
+ :host([data-v]) .layout-panel:not(.shell > .panel) { max-height: min(80vh, calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 32px)); }
31741
31766
  :host([data-v]) .luci-theme:has(> .panel) > .sub:not([role="alert"]) { display: none; }
31742
31767
  :host([data-v="bottom"]) :is(.sub, .panel, .menu) { animation: luci-rise var(--luci-motion-base, 200ms) both; }
31743
31768
  :host([data-v="top"]) :is(.sub, .panel, .menu) { animation: luci-drop var(--luci-motion-base, 200ms) both; }
@@ -31755,13 +31780,44 @@ ${UI_CSS}
31755
31780
  :host([data-v]) .bar button, :host([data-v]) .bar .menu-btn { cursor: pointer; }
31756
31781
  :host([data-moving]) .bar, :host([data-moving]) .bar * { cursor: grabbing; user-select: none; }
31757
31782
  /* New page's canvas covers the window: its tools and its panel keep clear of the bar */
31758
- :host([data-v="bottom"]) .wf { padding-bottom: calc(var(--luci-y, 12px) + 76px); }
31783
+ :host([data-v="bottom"]) .wf { padding-bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 12px); }
31759
31784
  :host([data-v="bottom"]) .wf-tools { padding-top: var(--luci-space-12); }
31760
- :host([data-v="top"]) .wf-tools { padding-top: calc(var(--luci-y, 12px) + 76px); }
31785
+ :host([data-v="top"]) .wf-tools { padding-top: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 12px); }
31761
31786
  :host([data-v="top"]) .panel[data-part="sketch-panel"]:not(.shell > .panel) { top: auto; bottom: var(--luci-space-12); }
31762
31787
 
31788
+ /*
31789
+ * Phones and narrow windows (dev toolbar): the bar spans the window's width in two planned rows instead
31790
+ * of wrapping wherever it runs out of room. Row 1: Luci, the mode switch, Close. Row 2: the mode's tools,
31791
+ * spread evenly at the 44 px touch target. The first separator is the line break. Cards open full width
31792
+ * from the bar, above it (or below a bar dragged to the top).
31793
+ */
31794
+ @media (max-width: 639px) {
31795
+ :host([data-v]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { left: 8px; right: 8px; }
31796
+ :host([data-v]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { width: auto; }
31797
+ :host([data-v]) .shell { align-items: stretch; max-width: none; }
31798
+ :host([data-v]) .shell > :is(.sub, .panel) { width: auto; }
31799
+ :host([data-v]) .bar { justify-content: space-between; row-gap: var(--luci-space-4); column-gap: 0; padding: 6px; border-radius: var(--luci-radius-xl); max-width: none; }
31800
+ :host([data-v]) .bar > * { order: 3; }
31801
+ :host([data-v]) .bar > :is(.menu-btn, .modes) { order: 0; }
31802
+ :host([data-v]) .bar > [data-action="close"] { order: 1; }
31803
+ :host([data-v]) .bar > .modes + .bar-sep { order: 2; flex-basis: 100%; width: 0; height: 0; margin: 0; background: none; }
31804
+ :host([data-v]) .bar > .bar-sep:not(.modes + .bar-sep) { display: none; }
31805
+ :host([data-v]) .bar .modes { flex: 1 1 auto; margin: 0 var(--luci-space-4); }
31806
+ :host([data-v]) .bar .modes button { flex: 1 1 0; padding-inline: var(--luci-space-8); }
31807
+ :host([data-v]) .luci-theme .bar :is(.tool, .split .caret) { --luci-btn-h: 44px; }
31808
+ /* Where notes go, as its dot only (the words stay as its label) */
31809
+ :host([data-v]) .bar .conn { width: 28px; height: 44px; justify-content: center; padding: 0; font-size: 0; }
31810
+ :host([data-v]) .bar .conn::before { width: 10px; height: 10px; }
31811
+ /* Layout's inspector leaves the top of the page in view, where the selected element can be */
31812
+ :host([data-v]) .layout-panel:not(.shell > .panel) { max-height: min(45vh, calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 32px)); }
31813
+ /* The basket as its icon and count (its label still says "Basket, n items") */
31814
+ :host([data-v]) .luci-theme .bar .basket-pill { gap: var(--luci-space-4); padding: 0 var(--luci-space-12) 0 var(--luci-space-8); }
31815
+ :host([data-v]) .bar .basket-full { display: none; }
31816
+ :host([data-v]) .bar .basket-n { display: inline; }
31817
+ }
31818
+
31763
31819
  /* Cards under the pill: the hint while picking, and every panel (radius-xl, float shadow, no stroke) */
31764
- .sub, .panel { background: var(--luci-color-surface); border-radius: var(--luci-radius-xl); box-shadow: var(--luci-shadow-float); }
31820
+ .sub, .panel { background: var(--luci-color-surface); border-radius: var(--luci-radius-xl); box-shadow: var(--luci-elevation); }
31765
31821
  .sub {
31766
31822
  position: fixed;
31767
31823
  top: 84px;
@@ -31823,6 +31879,8 @@ ${UI_CSS}
31823
31879
  /* The first-run greeting */
31824
31880
  .greet { flex-direction: row; align-items: center; gap: var(--luci-space-16); }
31825
31881
  .greet .t-title { margin: 0; }
31882
+ /* The words wrap beside Luci on a narrow window (panels keep their children's size otherwise) */
31883
+ .greet > .stack { flex-shrink: 1; min-width: 0; }
31826
31884
 
31827
31885
  /* Segmented control */
31828
31886
  .seg { display: inline-flex; align-self: flex-start; gap: var(--luci-space-4); padding: var(--luci-space-4); background: var(--luci-color-surface-sunken); border-radius: var(--luci-radius-full); }
@@ -31879,6 +31937,8 @@ label { display: inline-flex; gap: var(--luci-space-4); align-items: center; col
31879
31937
 
31880
31938
  /* Page overlays while picking: drawn over the host page, never part of it */
31881
31939
  .pick-layer, .pixel-layer { position: fixed; inset: 0; z-index: 2147483640; cursor: crosshair; background: transparent; touch-action: none; }
31940
+ /* Picking an element by touch takes taps, not drags: the page still scrolls and zooms under the finger */
31941
+ .pick-layer { touch-action: pan-x pan-y pinch-zoom; }
31882
31942
  .highlight { position: fixed; z-index: 2147483646; pointer-events: none; border: 2px solid var(--luci-color-pick); background: var(--luci-color-pick-fill); border-radius: 2px; }
31883
31943
  .highlight.locked { border-width: 2px; border-style: solid; }
31884
31944
  .highlight.blocked { border-color: var(--luci-color-pick-blocked); background: var(--luci-color-pick-blocked-fill); }
@@ -31887,7 +31947,7 @@ label { display: inline-flex; gap: var(--luci-space-4); align-items: center; col
31887
31947
  @media (prefers-reduced-motion: no-preference) { .highlight { transition: top 60ms, left 60ms, width 60ms, height 60ms; } }
31888
31948
  /* The label and the pixel swatch read like tooltips: Charcoal fill, Muzzle White text */
31889
31949
  .label, .swatch { position: fixed; z-index: 2147483647; pointer-events: none; padding: var(--luci-space-4) var(--luci-space-8); border-radius: var(--luci-radius-md);
31890
- background: var(--luci-color-muzzle-900); color: var(--luci-color-muzzle-50); box-shadow: var(--luci-shadow-float);
31950
+ background: var(--luci-color-muzzle-900); color: var(--luci-color-muzzle-50); box-shadow: var(--luci-elevation-bar);
31891
31951
  font: var(--luci-type-code-weight) 12px/1.4 var(--luci-font-code); }
31892
31952
  .label { max-width: 360px; white-space: pre-wrap; }
31893
31953
  .label .reason { display: block; color: var(--luci-color-nose-pink-300); font-family: var(--luci-font-body); }
@@ -32470,10 +32530,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
32470
32530
  const useDebugger = capSettings.useDebugger ?? true;
32471
32531
  return /* @__PURE__ */ u2("div", { class: "panel", role: "dialog", "aria-label": "Settings", "data-part": "settings", children: [
32472
32532
  /* @__PURE__ */ u2("div", { class: "settings-head", children: [
32473
- /* @__PURE__ */ u2("div", { class: "row", style: { alignItems: "center", gap: "8px" }, children: [
32474
- /* @__PURE__ */ u2("h2", { children: "Settings" }),
32475
- /* @__PURE__ */ u2(Badge, { brand: true, children: "Beta" })
32476
- ] }),
32533
+ /* @__PURE__ */ u2("div", { class: "row", style: { alignItems: "center", gap: "8px" }, children: /* @__PURE__ */ u2("h2", { children: "Settings" }) }),
32477
32534
  /* @__PURE__ */ u2(RepoButton, {})
32478
32535
  ] }),
32479
32536
  /* @__PURE__ */ u2("div", { class: "project-card", "data-part": "connected-project", children: [
@@ -33874,13 +33931,18 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
33874
33931
  area2.scrollBy(e6.deltaX, e6.deltaY);
33875
33932
  }
33876
33933
  };
33877
- const pickUp = (x3, y3) => {
33934
+ const pickUp = (x3, y3, touch = false) => {
33878
33935
  {
33879
33936
  const target = elementAt(doc, x3, y3);
33880
33937
  const start = drag.current;
33881
33938
  drag.current = null;
33882
33939
  if (!target || !start || !tool) return;
33883
33940
  const moved = Math.hypot(x3 - start.x, y3 - start.y) > DRAG_PX;
33941
+ if (touch && !moved && target !== candidateRef.current) {
33942
+ trail.current = [];
33943
+ aim(target);
33944
+ return;
33945
+ }
33884
33946
  if (tool === "spacing" && moved && target !== start.el) {
33885
33947
  const blocked = [start.el, target].map(eligibilityOf).find((x4) => x4.status !== "allowed");
33886
33948
  if (blocked) {
@@ -34543,7 +34605,8 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34543
34605
  onClick: toggleBasket,
34544
34606
  children: [
34545
34607
  /* @__PURE__ */ u2(Icon2, { icon: ShoppingBasket }),
34546
- COPY.capture.basket(basket.length)
34608
+ /* @__PURE__ */ u2("span", { class: "basket-full", children: COPY.capture.basket(basket.length) }),
34609
+ /* @__PURE__ */ u2("span", { class: "basket-n", children: basket.length })
34547
34610
  ]
34548
34611
  }
34549
34612
  ),
@@ -34583,7 +34646,6 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34583
34646
  /* @__PURE__ */ u2("div", { class: "brand-stack", children: [
34584
34647
  /* @__PURE__ */ u2("div", { class: "brand-title-line", children: [
34585
34648
  /* @__PURE__ */ u2("span", { class: "brand-title", "data-part": "brand-title", children: props.modes ? COPY.capture.devTitle : COPY.capture.title }),
34586
- /* @__PURE__ */ u2(Badge, { brand: true, children: "Beta" }),
34587
34649
  /* @__PURE__ */ u2("span", { class: "brand-sub", "data-part": "brand-sub", children: props.modes ? COPY.capture.devByline : COPY.capture.byline })
34588
34650
  ] }),
34589
34651
  /* @__PURE__ */ u2("p", { class: "brand-desc", children: props.modes ? COPY.capture.devDescription : COPY.capture.description }),
@@ -34755,10 +34817,12 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34755
34817
  comparison.result.a.name,
34756
34818
  " (",
34757
34819
  sourceLabel(comparison.items[0]),
34820
+ comparison.result.a.note ? `, your note: ${comparison.result.a.note}` : "",
34758
34821
  "). B: ",
34759
34822
  comparison.result.b.name,
34760
34823
  " (",
34761
34824
  sourceLabel(comparison.items[1]),
34825
+ comparison.result.b.note ? `, your note: ${comparison.result.b.note}` : "",
34762
34826
  "). ",
34763
34827
  comparison.result.same.length,
34764
34828
  " value",
@@ -34879,7 +34943,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34879
34943
  "data-item-send-project": true,
34880
34944
  title: activeProject?.name ? `Save this capture to ${activeProject.name}/.luci/design/` : "Save this capture to .luci/design/ in your project",
34881
34945
  onClick: () => void sendOneToProject(item),
34882
- children: itemSent[item.id]?.error ? "Failed" : itemSent[item.id] ? "Saved" : activeProject?.name ? `Send to ${activeProject.name}` : "Send"
34946
+ children: itemSent[item.id]?.error ? "Failed" : itemSent[item.id] ? "Saved" : "Send to project"
34883
34947
  }
34884
34948
  ),
34885
34949
  /* @__PURE__ */ u2("button", { class: "btn-danger", type: "button", "data-item-remove": true, "aria-label": `Remove ${item.name}`, onClick: () => saveBasket(removeFromBasket(basket, item.id)), children: "Remove" })
@@ -34944,7 +35008,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34944
35008
  children: basketSending ? /* @__PURE__ */ u2(S, { children: [
34945
35009
  /* @__PURE__ */ u2(ButtonSpinner, {}),
34946
35010
  "Sending\u2026"
34947
- ] }) : activeProject?.name ? `Send all to ${activeProject.name}` : "Send all to project"
35011
+ ] }) : "Send all to project"
34948
35012
  }
34949
35013
  ),
34950
35014
  basket.length > 0 && (confirmClear ? /* @__PURE__ */ u2("button", { type: "button", class: "btn-danger", "data-action": "clear-basket-confirm", onClick: () => {
@@ -35015,7 +35079,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
35015
35079
  ),
35016
35080
  /* @__PURE__ */ u2("button", { type: "button", class: "btn-secondary", "data-action": "choose-image", disabled: imageBusy, onClick: () => imageInput.current?.click(), children: "Choose an image" })
35017
35081
  ] }),
35018
- /* @__PURE__ */ u2("p", { class: "keys", children: pixelMode || imageMode ? "Esc: back to Element" : "\u2191 \u2193 after clicking: wider or narrower \xB7 Esc: stop" })
35082
+ /* @__PURE__ */ u2("p", { class: "keys", children: pixelMode || imageMode ? "Esc: back to Element" : touchScreen(win) ? "Tap once to see an element, again to take it" : "\u2191 \u2193 after clicking: wider or narrower \xB7 Esc: stop" })
35019
35083
  ] })
35020
35084
  ]
35021
35085
  }
@@ -35388,7 +35452,9 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
35388
35452
  {
35389
35453
  class: "pick-layer",
35390
35454
  "data-part": "pick-layer",
35391
- onPointerMove: (e6) => pickMove(e6.clientX, e6.clientY),
35455
+ onPointerMove: (e6) => {
35456
+ if (e6.pointerType !== "touch") pickMove(e6.clientX, e6.clientY);
35457
+ },
35392
35458
  onPointerDown: (e6) => {
35393
35459
  e6.preventDefault();
35394
35460
  e6.currentTarget.setPointerCapture?.(e6.pointerId);
@@ -35396,7 +35462,10 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
35396
35462
  },
35397
35463
  onPointerUp: (e6) => {
35398
35464
  e6.preventDefault();
35399
- pickUp(e6.clientX, e6.clientY);
35465
+ pickUp(e6.clientX, e6.clientY, e6.pointerType === "touch");
35466
+ },
35467
+ onPointerCancel: () => {
35468
+ drag.current = null;
35400
35469
  },
35401
35470
  onWheel: (e6) => pickWheel(e6),
35402
35471
  onContextMenu: (e6) => e6.preventDefault()
@@ -1 +1 @@
1
- {"version":3,"file":"devSettings.d.ts","sourceRoot":"","sources":["../../src/ui/devSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAgB,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAsB,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAG9D,eAAO,MAAM,qBAAqB,2BAA2B,CAAC;AAC9D,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAE5D,eAAO,MAAM,YAAY;aAAK,SAAS,EAAE,GAAG;aAAE,IAAI,EAAE,GAAG;aAAE,KAAK,EAAE,GAAG;aAAE,OAAO,EAAE,GAAG;aAAE,IAAI,EAAE,GAAG;aAAE,KAAK,EAAE,GAAG;aAAE,MAAM,EAAE,GAAG;aAAE,IAAI,EAAE,GAAG;CAAW,CAAC;AAE5I,eAAO,MAAM,aAAa,kEAMhB,CAAC;AAEX,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,yBAAyB,EAAE,gBAGvC,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAA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CAAC;IACjB,eAAe,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACnD,oCAAoC;IACpC,WAAW,CAAC,EAAE;QACZ,GAAG,EAAE,MAAM,OAAO,CAAC;YAAE,OAAO,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,GAAG,CAAC,EAAE,MAAM,CAAA;SAAE,GAAG,IAAI,CAAC,CAAC;QAC7E,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;KACzC,CAAC;IACF,wEAAwE;IACxE,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,0DAA0D;IAC1D,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,wBAAwB,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACzD,yDAAyD;IACzD,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,uBAAuB,CAAC,EAAE,CAAC,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;IACvD,+DAA+D;IAC/D,kBAAkB,CAAC,EAAE;QACnB,GAAG,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;IACF,mEAAmE;IACnE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;CACtC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,iBAgW5D"}
@@ -1,7 +1,7 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
2
2
  import { h } from 'preact';
3
3
  import { useEffect, useState } from 'preact/hooks';
4
- import { Badge, PALETTE, RepoButton, Select } from '@luci-dev/ui';
4
+ import { PALETTE, RepoButton, Select } from '@luci-dev/ui';
5
5
  import { DETAIL_LEVELS } from '@luci-dev/format/feedback';
6
6
  import { AppearanceControls } from './theme.js';
7
7
  import { TOOLS } from './tools.js';
@@ -86,7 +86,7 @@ export function DevSettingsPanel(props) {
86
86
  }
87
87
  }, []);
88
88
  const useDebugger = capSettings.useDebugger ?? true;
89
- return (_jsxs("div", { class: "panel", role: "dialog", "aria-label": "Settings", "data-part": "settings", children: [_jsxs("div", { class: "settings-head", children: [_jsxs("div", { class: "row", style: { alignItems: 'center', gap: '8px' }, children: [_jsx("h2", { children: "Settings" }), _jsx(Badge, { brand: true, children: "Beta" })] }), _jsx(RepoButton, {})] }), _jsxs("div", { class: "project-card", "data-part": "connected-project", children: [_jsxs("div", { class: "project-header", children: [_jsx("span", { class: `status-dot ${activeProject?.project ? 'online' : 'offline'}`, "aria-hidden": "true" }), _jsxs("div", { class: "project-info", children: [_jsx("span", { class: "project-name", children: activeProject?.name ? `Connected to ${activeProject.name}` : 'Not connected to a project' }), activeProject?.project && _jsx("span", { class: "project-path dim", title: activeProject.project, children: activeProject.project }), !activeProject?.project && _jsxs("span", { class: "project-hint dim", children: ["Run ", _jsx("code", { children: "luci serve" }), " in your project terminal"] })] })] }), props.projectInfo?.setUrl && (_jsxs("div", { class: "project-port-row", children: [_jsx("label", { class: "dim", for: "luci-bridge-url", children: "Bridge:" }), _jsx("input", { id: "luci-bridge-url", type: "text", class: "port-input", "data-part": "port-input", value: bridgePortInput, placeholder: "http://127.0.0.1:4545", onChange: (e) => {
89
+ return (_jsxs("div", { class: "panel", role: "dialog", "aria-label": "Settings", "data-part": "settings", children: [_jsxs("div", { class: "settings-head", children: [_jsx("div", { class: "row", style: { alignItems: 'center', gap: '8px' }, children: _jsx("h2", { children: "Settings" }) }), _jsx(RepoButton, {})] }), _jsxs("div", { class: "project-card", "data-part": "connected-project", children: [_jsxs("div", { class: "project-header", children: [_jsx("span", { class: `status-dot ${activeProject?.project ? 'online' : 'offline'}`, "aria-hidden": "true" }), _jsxs("div", { class: "project-info", children: [_jsx("span", { class: "project-name", children: activeProject?.name ? `Connected to ${activeProject.name}` : 'Not connected to a project' }), activeProject?.project && _jsx("span", { class: "project-path dim", title: activeProject.project, children: activeProject.project }), !activeProject?.project && _jsxs("span", { class: "project-hint dim", children: ["Run ", _jsx("code", { children: "luci serve" }), " in your project terminal"] })] })] }), props.projectInfo?.setUrl && (_jsxs("div", { class: "project-port-row", children: [_jsx("label", { class: "dim", for: "luci-bridge-url", children: "Bridge:" }), _jsx("input", { id: "luci-bridge-url", type: "text", class: "port-input", "data-part": "port-input", value: bridgePortInput, placeholder: "http://127.0.0.1:4545", onChange: (e) => {
90
90
  const val = e.currentTarget.value;
91
91
  setBridgePortInput(val);
92
92
  void props.projectInfo?.setUrl?.(val).then(refreshProject);
@@ -1 +1 @@
1
- {"version":3,"file":"devSettings.js","sourceRoot":"","sources":["../../src/ui/devSettings.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,aAAa,EAAoB,MAAM,2BAA2B,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAgB,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,MAAM,CAAC,MAAM,qBAAqB,GAAG,wBAAwB,CAAC;AAC9D,MAAM,CAAC,MAAM,oBAAoB,GAAG,uBAAuB,CAAC;AAE5D,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,E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C,KAAK,YAAE,YAAY,CAAC,IAAI,GAAO,IAAO,EACpG,eAAM,KAAK,EAAC,KAAK,kCAAyB,EAC1C,2BAAM,cAAK,KAAK,EAAC,KAAK,uBAAQ,OAAC,cAAK,KAAK,EAAC,KAAK,uBAAQ,IAAO,EAC9D,eAAM,KAAK,EAAC,KAAK,4CAAmC,EACpD,yBAAM,cAAK,KAAK,EAAC,KAAK,sBAAY,GAAO,EACzC,eAAM,KAAK,EAAC,KAAK,yCAAgC,EACjD,yBAAM,cAAK,KAAK,EAAC,KAAK,oBAAU,GAAO,EACvC,eAAM,KAAK,EAAC,KAAK,iDAAwC,IACrD,IACF,IACF,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
@@ -19,4 +19,9 @@ export declare function firstChildOf(el: Element): Element | null;
19
19
  export declare function eligibilityOf(el: Element): Eligibility;
20
20
  /** "h1 640 × 56" for the hover label. */
21
21
  export declare function hoverLabel(el: Element): string;
22
+ /**
23
+ * A touch screen: no hover, so nothing shows what a tap would pick. There picking takes two taps, one to
24
+ * show the element (outline and name) and one on the same element to pick it; the page still scrolls.
25
+ */
26
+ export declare function touchScreen(win: Window): boolean;
22
27
  //# sourceMappingURL=picker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"picker.d.ts","sourceRoot":"","sources":["../../src/ui/picker.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGlE,4FAA4F;AAC5F,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAKnD;AAED,kGAAkG;AAClG,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,GAAG,IAAI,CAKxD;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAa7E;AAED,sF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AAE,OAAO,GAAG,OAAO,GAAG,IAAI,CAExD;AAED,wCAAwC;AACxC,wBAAgB,aAAa,CAAC,EAAE,EAAE,OAAO,GAAG,WAAW,CAEtD;AAED,0CAA0C;AAC1C,wBAAgB,UAAU,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,CAG9C;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEhD"}
package/dist/ui/picker.js CHANGED
@@ -70,4 +70,16 @@ export function hoverLabel(el) {
70
70
  const r = el.getBoundingClientRect();
71
71
  return `${el.tagName.toLowerCase()} ${Math.round(r.width)} × ${Math.round(r.height)}`;
72
72
  }
73
+ /**
74
+ * A touch screen: no hover, so nothing shows what a tap would pick. There picking takes two taps, one to
75
+ * show the element (outline and name) and one on the same element to pick it; the page still scrolls.
76
+ */
77
+ export function touchScreen(win) {
78
+ try {
79
+ return win.matchMedia('(hover: none)').matches;
80
+ }
81
+ catch {
82
+ return false;
83
+ }
84
+ }
73
85
  //# sourceMappingURL=picker.js.map