lldlab-ui 0.3.0 → 0.4.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/index.js CHANGED
@@ -102,6 +102,8 @@ var COL_SPAN = {
102
102
  lg: { 1: "lg:col-span-1", 2: "lg:col-span-2", 3: "lg:col-span-3", 4: "lg:col-span-4", 5: "lg:col-span-5", 6: "lg:col-span-6" },
103
103
  xl: { 1: "xl:col-span-1", 2: "xl:col-span-2", 3: "xl:col-span-3", 4: "xl:col-span-4", 5: "xl:col-span-5", 6: "xl:col-span-6" }
104
104
  };
105
+ var FILL = "h-full min-h-0";
106
+ var GROW = "min-h-0 flex-1";
105
107
 
106
108
  // src/primitives/Box.tsx
107
109
  import { jsx as jsx2 } from "react/jsx-runtime";
@@ -116,7 +118,8 @@ var SURFACE_TONE = {
116
118
  var RADIUS = { none: "", sm: "rounded", md: "rounded-lg", lg: "rounded-xl" };
117
119
  var BORDER = { none: "", subtle: "border border-border-subtle", strong: "border border-border-strong" };
118
120
  var SHADOW = { none: "", sm: "shadow-sm", md: "shadow-md" };
119
- function Box({ as, padding, radius = "none", tone, border = "none", shadow = "none", dimmed, ...rest }) {
121
+ var HEIGHT = { sm: "h-[20rem]", md: "h-[28rem]", lg: "h-[32rem]", xl: "h-[40rem]" };
122
+ function Box({ as, padding, radius = "none", tone, border = "none", shadow = "none", dimmed, height, fill, grow, ...rest }) {
120
123
  const C = as ?? "div";
121
124
  return /* @__PURE__ */ jsx2(
122
125
  C,
@@ -131,7 +134,10 @@ function Box({ as, padding, radius = "none", tone, border = "none", shadow = "no
131
134
  RADIUS[radius],
132
135
  BORDER[border],
133
136
  SHADOW[shadow],
134
- dimmed && "pointer-events-none select-none opacity-40"
137
+ dimmed && "pointer-events-none select-none opacity-40",
138
+ height && HEIGHT[height],
139
+ fill && FILL,
140
+ grow && GROW
135
141
  )
136
142
  }
137
143
  );
@@ -139,7 +145,7 @@ function Box({ as, padding, radius = "none", tone, border = "none", shadow = "no
139
145
 
140
146
  // src/primitives/Stack.tsx
141
147
  import { jsx as jsx3 } from "react/jsx-runtime";
142
- function Stack({ as, direction = "column", gap = "md", align, justify, wrap, ...rest }) {
148
+ function Stack({ as, direction = "column", gap = "md", align, justify, wrap, fill, grow, ...rest }) {
143
149
  const C = as ?? "div";
144
150
  return /* @__PURE__ */ jsx3(
145
151
  C,
@@ -151,7 +157,9 @@ function Stack({ as, direction = "column", gap = "md", align, justify, wrap, ...
151
157
  responsive(GAP, gap),
152
158
  responsive(ALIGN, align),
153
159
  responsive(JUSTIFY, justify),
154
- wrap && "flex-wrap"
160
+ wrap && "flex-wrap",
161
+ fill && FILL,
162
+ grow && GROW
155
163
  )
156
164
  }
157
165
  );
@@ -171,7 +179,7 @@ function GridItem({ as, span, ...rest }) {
171
179
 
172
180
  // src/primitives/Container.tsx
173
181
  import { jsx as jsx5 } from "react/jsx-runtime";
174
- var SIZE = { md: "max-w-3xl", lg: "max-w-5xl", xl: "max-w-7xl" };
182
+ var SIZE = { md: "max-w-3xl", lg: "max-w-5xl", xl: "max-w-7xl", full: "max-w-none" };
175
183
  function Container({ as, size = "xl", ...rest }) {
176
184
  const C = as ?? "div";
177
185
  return /* @__PURE__ */ jsx5(C, { ...rest, className: cx("mx-auto w-full min-w-0 px-gutter-fluid", SIZE[size]) });
@@ -768,7 +776,7 @@ var BAR_TONE = { default: "bg-surface-subtle", slate: "bg-brand-slate", none: ""
768
776
  var BAR_DENSITY = { md: "px-space-lg py-space-sm", sm: "px-space-md py-space-sm" };
769
777
  var PATTERN2 = { none: "", dots: "bg-pattern-dots", grid: "bg-pattern-grid" };
770
778
  var ASPECT = { video: "aspect-video", wide: "aspect-[21/9]", square: "aspect-square" };
771
- var HEIGHT = { sm: "h-30", md: "h-35" };
779
+ var HEIGHT2 = { sm: "h-30", md: "h-35" };
772
780
  var INVERSE_BAR = "group-data-[tone=inverse]/card:border-white/10 group-data-[tone=inverse]/card:bg-brand-slate";
773
781
  function CardHeader({ start, end, children, divider = false, density = "md", tone = "default", ...rest }) {
774
782
  return /* @__PURE__ */ jsxs13(
@@ -788,7 +796,7 @@ function CardMedia({ pattern = "dots", aspect = "video", height, caption, childr
788
796
  "div",
789
797
  {
790
798
  ...rest,
791
- className: cx("relative flex min-w-0 items-center justify-center border-b border-border-subtle bg-surface-subtle", INVERSE_BAR, PATTERN2[pattern], height ? HEIGHT[height] : ASPECT[aspect]),
799
+ className: cx("relative flex min-w-0 items-center justify-center border-b border-border-subtle bg-surface-subtle", INVERSE_BAR, PATTERN2[pattern], height ? HEIGHT2[height] : ASPECT[aspect]),
792
800
  children: [
793
801
  caption && /* @__PURE__ */ jsx27("span", { className: "absolute left-space-sm top-space-sm font-label-mono text-[10px] uppercase tracking-wider text-on-surface-variant", children: caption }),
794
802
  children
@@ -806,7 +814,7 @@ function CardFooter({ children, divider = false, density = "md", tone = "default
806
814
  }
807
815
  );
808
816
  }
809
- function CardRoot({ as, padding = "lg", interactive, tone = "default", pattern = "none", shadow = "sm", outlined, gap = "sm", children, ...rest }) {
817
+ function CardRoot({ as, padding = "lg", interactive, tone = "default", pattern = "none", shadow = "sm", outlined, gap = "sm", fill, children, ...rest }) {
810
818
  const C = as ?? "div";
811
819
  const parts = Children.toArray(children);
812
820
  const isType = (t) => (p) => isValidElement(p) && p.type === t;
@@ -820,11 +828,11 @@ function CardRoot({ as, padding = "lg", interactive, tone = "default", pattern =
820
828
  ...rest,
821
829
  "data-tone": tone,
822
830
  "data-theme": tone === "inverse" ? "dark" : void 0,
823
- className: cx("group/card flex min-w-0 flex-col overflow-hidden rounded-xl", TONE9[tone], SHADOW2[shadow], outlined && "border border-border-subtle", PATTERN2[pattern], interactive && cx("transition-shadow hover:shadow-md", FOCUS_RING)),
831
+ className: cx("group/card flex min-w-0 flex-col overflow-hidden rounded-xl", TONE9[tone], SHADOW2[shadow], outlined && "border border-border-subtle", PATTERN2[pattern], fill && "h-full", interactive && cx("transition-shadow hover:shadow-md", FOCUS_RING)),
824
832
  children: [
825
833
  header,
826
834
  media,
827
- /* @__PURE__ */ jsx27("div", { className: cx("flex min-w-0 flex-1 flex-col", responsive(GAP, gap), responsive(PADDING, padding)), children: body }),
835
+ /* @__PURE__ */ jsx27("div", { className: cx("flex min-w-0 flex-1 flex-col", fill && "min-h-0", responsive(GAP, gap), responsive(PADDING, padding)), children: body }),
828
836
  footer
829
837
  ]
830
838
  }
@@ -2097,8 +2105,36 @@ function Drawer({ open, onClose, title, side = "left", size = "sm", children, ..
2097
2105
  );
2098
2106
  }
2099
2107
 
2108
+ // src/components/FullScreen.tsx
2109
+ import { useRef as useRef10 } from "react";
2110
+ import { createPortal as createPortal3 } from "react-dom";
2111
+ import { jsx as jsx46 } from "react/jsx-runtime";
2112
+ function FullScreen({ open, onClose, label, initialFocusRef, children, ...rest }) {
2113
+ const panelRef = useRef10(null);
2114
+ const theme = useThemeTone();
2115
+ useModal({ open, onClose, panelRef, initialFocusRef });
2116
+ if (!open || typeof document === "undefined") return null;
2117
+ return createPortal3(
2118
+ /* @__PURE__ */ jsx46(
2119
+ "div",
2120
+ {
2121
+ ...rest,
2122
+ ref: panelRef,
2123
+ role: "dialog",
2124
+ "aria-modal": "true",
2125
+ "aria-label": label,
2126
+ tabIndex: -1,
2127
+ "data-theme": theme,
2128
+ className: "fixed inset-0 z-50 flex min-w-0 flex-col bg-surface text-on-surface outline-none",
2129
+ children
2130
+ }
2131
+ ),
2132
+ document.body
2133
+ );
2134
+ }
2135
+
2100
2136
  // src/components/TextLink.tsx
2101
- import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
2137
+ import { jsx as jsx47, jsxs as jsxs31 } from "react/jsx-runtime";
2102
2138
  var TONE13 = {
2103
2139
  brand: "text-fg-brand hover:text-fg-brand-hover",
2104
2140
  default: "text-on-surface hover:text-ink",
@@ -2117,16 +2153,16 @@ function TextLink({ as, tone = "brand", size = "md", icon, iconRight, underline
2117
2153
  ...rest,
2118
2154
  className: cx("inline-flex max-w-full items-center gap-space-2xs rounded font-medium wrap-break-word transition-colors", TONE13[tone], SIZE14[size], UNDERLINE[underline], FOCUS_RING),
2119
2155
  children: [
2120
- icon && /* @__PURE__ */ jsx46(Icon, { name: icon, size: "sm" }),
2121
- /* @__PURE__ */ jsx46("span", { className: "min-w-0", children }),
2122
- iconRight && /* @__PURE__ */ jsx46(Icon, { name: iconRight, size: "sm" })
2156
+ icon && /* @__PURE__ */ jsx47(Icon, { name: icon, size: "sm" }),
2157
+ /* @__PURE__ */ jsx47("span", { className: "min-w-0", children }),
2158
+ iconRight && /* @__PURE__ */ jsx47(Icon, { name: iconRight, size: "sm" })
2123
2159
  ]
2124
2160
  }
2125
2161
  );
2126
2162
  }
2127
2163
 
2128
2164
  // src/components/Divider.tsx
2129
- import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
2165
+ import { jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
2130
2166
  var SPACE_Y = {
2131
2167
  none: "",
2132
2168
  "2xs": "my-space-2xs",
@@ -2149,27 +2185,27 @@ var SPACE_X = {
2149
2185
  };
2150
2186
  function Divider({ orientation = "horizontal", label, spacing = "none", ...rest }) {
2151
2187
  if (orientation === "vertical") {
2152
- return /* @__PURE__ */ jsx47("div", { ...rest, role: "separator", "aria-orientation": "vertical", className: cx("min-h-4 w-px shrink-0 self-stretch bg-border-subtle", SPACE_X[spacing]) });
2188
+ return /* @__PURE__ */ jsx48("div", { ...rest, role: "separator", "aria-orientation": "vertical", className: cx("min-h-4 w-px shrink-0 self-stretch bg-border-subtle", SPACE_X[spacing]) });
2153
2189
  }
2154
2190
  if (label) {
2155
2191
  return /* @__PURE__ */ jsxs32("div", { ...rest, role: "separator", "aria-orientation": "horizontal", className: cx("flex w-full min-w-0 items-center gap-space-sm", SPACE_Y[spacing]), children: [
2156
- /* @__PURE__ */ jsx47("span", { className: "h-px flex-1 bg-border-subtle" }),
2157
- /* @__PURE__ */ jsx47("span", { className: "shrink-0 font-label-mono text-label-mono uppercase text-on-surface-variant", children: label }),
2158
- /* @__PURE__ */ jsx47("span", { className: "h-px flex-1 bg-border-subtle" })
2192
+ /* @__PURE__ */ jsx48("span", { className: "h-px flex-1 bg-border-subtle" }),
2193
+ /* @__PURE__ */ jsx48("span", { className: "shrink-0 font-label-mono text-label-mono uppercase text-on-surface-variant", children: label }),
2194
+ /* @__PURE__ */ jsx48("span", { className: "h-px flex-1 bg-border-subtle" })
2159
2195
  ] });
2160
2196
  }
2161
- return /* @__PURE__ */ jsx47("div", { ...rest, role: "separator", "aria-orientation": "horizontal", className: cx("h-px w-full shrink-0 bg-border-subtle", SPACE_Y[spacing]) });
2197
+ return /* @__PURE__ */ jsx48("div", { ...rest, role: "separator", "aria-orientation": "horizontal", className: cx("h-px w-full shrink-0 bg-border-subtle", SPACE_Y[spacing]) });
2162
2198
  }
2163
2199
 
2164
2200
  // src/ide/AvatarGroup.tsx
2165
2201
  import { Children as Children2, cloneElement, isValidElement as isValidElement2 } from "react";
2166
- import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
2202
+ import { jsx as jsx49, jsxs as jsxs33 } from "react/jsx-runtime";
2167
2203
  function AvatarGroup({ children, max, size = "md", label, ...rest }) {
2168
2204
  const all = Children2.toArray(children);
2169
2205
  const shown = max !== void 0 ? all.slice(0, Math.max(0, max)) : all;
2170
2206
  const extra = all.length - shown.length;
2171
2207
  return /* @__PURE__ */ jsxs33("div", { ...rest, role: "group", "aria-label": label, className: "flex items-center -space-x-2", children: [
2172
- shown.map((child, i) => /* @__PURE__ */ jsx48("span", { className: "inline-flex rounded-full ring-2 ring-surface-elevated", children: isValidElement2(child) ? cloneElement(child, { size }) : child }, i)),
2208
+ shown.map((child, i) => /* @__PURE__ */ jsx49("span", { className: "inline-flex rounded-full ring-2 ring-surface-elevated", children: isValidElement2(child) ? cloneElement(child, { size }) : child }, i)),
2173
2209
  extra > 0 && /* @__PURE__ */ jsxs33("span", { className: cx("inline-flex items-center justify-center rounded-full bg-surface-muted font-label-mono text-on-surface-variant ring-2 ring-surface-elevated", AVATAR_SIZE[size]), children: [
2174
2210
  "+",
2175
2211
  extra
@@ -2178,20 +2214,20 @@ function AvatarGroup({ children, max, size = "md", label, ...rest }) {
2178
2214
  }
2179
2215
 
2180
2216
  // src/primitives/AppBar.tsx
2181
- import { jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
2217
+ import { jsx as jsx50, jsxs as jsxs34 } from "react/jsx-runtime";
2182
2218
  var POSITION = { sticky: "sticky top-0", fixed: "fixed inset-x-0 top-0", static: "relative" };
2183
- var HEIGHT2 = { sm: "h-12", md: "h-16" };
2219
+ var HEIGHT3 = { sm: "h-12", md: "h-16" };
2184
2220
  var DIVIDER = { shadow: "shadow-appbar", border: "border-b border-border-subtle" };
2185
2221
  function AppBar({ position = "sticky", start, center, end, blur = true, height = "md", contained = true, divider = "shadow", ...rest }) {
2186
- return /* @__PURE__ */ jsx49("header", { ...rest, className: cx("z-40 w-full min-w-0", DIVIDER[divider], POSITION[position], blur ? "bg-surface-elevated/95 backdrop-blur-md" : "bg-surface-elevated"), children: /* @__PURE__ */ jsxs34("div", { className: cx("flex min-w-0 items-center gap-space-md px-gutter-fluid", HEIGHT2[height], contained && "mx-auto max-w-7xl"), children: [
2187
- /* @__PURE__ */ jsx49("div", { className: "flex min-w-0 shrink-0 items-center gap-space-sm", children: start }),
2188
- /* @__PURE__ */ jsx49("div", { className: "flex min-w-0 flex-1 items-center justify-center", children: center }),
2189
- /* @__PURE__ */ jsx49("div", { className: "flex shrink-0 items-center gap-space-xs", children: end })
2222
+ return /* @__PURE__ */ jsx50("header", { ...rest, className: cx("z-40 w-full min-w-0", DIVIDER[divider], POSITION[position], blur ? "bg-surface-elevated/95 backdrop-blur-md" : "bg-surface-elevated"), children: /* @__PURE__ */ jsxs34("div", { className: cx("flex min-w-0 items-center gap-space-md px-gutter-fluid", HEIGHT3[height], contained && "mx-auto max-w-7xl"), children: [
2223
+ /* @__PURE__ */ jsx50("div", { className: "flex min-w-0 shrink-0 items-center gap-space-sm", children: start }),
2224
+ /* @__PURE__ */ jsx50("div", { className: "flex min-w-0 flex-1 items-center justify-center", children: center }),
2225
+ /* @__PURE__ */ jsx50("div", { className: "flex shrink-0 items-center gap-space-xs", children: end })
2190
2226
  ] }) });
2191
2227
  }
2192
2228
 
2193
2229
  // src/components/NavList.tsx
2194
- import { jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
2230
+ import { jsx as jsx51, jsxs as jsxs35 } from "react/jsx-runtime";
2195
2231
  var VARIANT11 = {
2196
2232
  sidebar: {
2197
2233
  item: "rounded-lg px-space-sm py-space-xs font-body-md text-body-md",
@@ -2207,11 +2243,11 @@ var VARIANT11 = {
2207
2243
  function NavList({ label, items, current, heading, variant = "sidebar", ...rest }) {
2208
2244
  const v = VARIANT11[variant];
2209
2245
  return /* @__PURE__ */ jsxs35("nav", { ...rest, "aria-label": label, className: "min-w-0", children: [
2210
- heading && /* @__PURE__ */ jsx50("p", { className: "px-space-sm pb-space-xs font-label-mono text-label-mono uppercase text-on-surface-variant", children: heading }),
2211
- /* @__PURE__ */ jsx50("ul", { className: "flex min-w-0 flex-col gap-space-2xs", children: items.map((item) => {
2246
+ heading && /* @__PURE__ */ jsx51("p", { className: "px-space-sm pb-space-xs font-label-mono text-label-mono uppercase text-on-surface-variant", children: heading }),
2247
+ /* @__PURE__ */ jsx51("ul", { className: "flex min-w-0 flex-col gap-space-2xs", children: items.map((item) => {
2212
2248
  const active = item.id === current;
2213
2249
  const C = item.href ? item.as ?? "a" : "button";
2214
- return /* @__PURE__ */ jsx50("li", { className: "min-w-0", children: /* @__PURE__ */ jsxs35(
2250
+ return /* @__PURE__ */ jsx51("li", { className: "min-w-0", children: /* @__PURE__ */ jsxs35(
2215
2251
  C,
2216
2252
  {
2217
2253
  ...item.href ? { href: item.href } : { type: "button" },
@@ -2219,9 +2255,9 @@ function NavList({ label, items, current, heading, variant = "sidebar", ...rest
2219
2255
  onClick: item.onSelect,
2220
2256
  className: cx("flex w-full min-w-0 items-center gap-space-sm text-left transition-colors", v.item, active ? v.active : v.idle, FOCUS_RING, TOUCH),
2221
2257
  children: [
2222
- item.icon && /* @__PURE__ */ jsx50(Icon, { name: item.icon, size: "sm" }),
2223
- /* @__PURE__ */ jsx50("span", { className: "min-w-0 flex-1 truncate", children: item.label }),
2224
- item.count !== void 0 && /* @__PURE__ */ jsx50("span", { className: cx("shrink-0 font-label-mono text-label-mono", active ? "text-ink" : "text-on-surface-variant"), children: item.count })
2258
+ item.icon && /* @__PURE__ */ jsx51(Icon, { name: item.icon, size: "sm" }),
2259
+ /* @__PURE__ */ jsx51("span", { className: "min-w-0 flex-1 truncate", children: item.label }),
2260
+ item.count !== void 0 && /* @__PURE__ */ jsx51("span", { className: cx("shrink-0 font-label-mono text-label-mono", active ? "text-ink" : "text-on-surface-variant"), children: item.count })
2225
2261
  ]
2226
2262
  }
2227
2263
  ) }, item.id);
@@ -2230,7 +2266,7 @@ function NavList({ label, items, current, heading, variant = "sidebar", ...rest
2230
2266
  }
2231
2267
 
2232
2268
  // src/components/Pagination.tsx
2233
- import { jsx as jsx51, jsxs as jsxs36 } from "react/jsx-runtime";
2269
+ import { jsx as jsx52, jsxs as jsxs36 } from "react/jsx-runtime";
2234
2270
  var range = (a, b) => Array.from({ length: Math.max(0, b - a + 1) }, (_, i) => a + i);
2235
2271
  function pageRange(page, pageCount, siblingCount = 1) {
2236
2272
  if (pageCount <= 0) return [];
@@ -2249,11 +2285,11 @@ function Pagination({ page, pageCount, onChange, siblingCount = 1, summary, labe
2249
2285
  if (pageCount <= 1) return null;
2250
2286
  const p = Math.min(Math.max(1, Math.trunc(page)), pageCount);
2251
2287
  return /* @__PURE__ */ jsxs36("nav", { ...rest, "aria-label": label, className: "flex min-w-0 flex-wrap items-center justify-between gap-space-sm", children: [
2252
- summary && /* @__PURE__ */ jsx51("p", { className: "font-body-sm text-body-sm text-on-surface-variant", children: summary }),
2288
+ summary && /* @__PURE__ */ jsx52("p", { className: "font-body-sm text-body-sm text-on-surface-variant", children: summary }),
2253
2289
  /* @__PURE__ */ jsxs36("ul", { className: "flex items-center gap-space-2xs", children: [
2254
- /* @__PURE__ */ jsx51("li", { children: /* @__PURE__ */ jsx51(IconButton, { icon: "chevron_left", label: "Previous page", variant: "secondary", size: "sm", disabled: p <= 1, onClick: () => onChange(p - 1) }) }),
2290
+ /* @__PURE__ */ jsx52("li", { children: /* @__PURE__ */ jsx52(IconButton, { icon: "chevron_left", label: "Previous page", variant: "secondary", size: "sm", disabled: p <= 1, onClick: () => onChange(p - 1) }) }),
2255
2291
  pageRange(p, pageCount, siblingCount).map(
2256
- (item, i) => item === "gap" ? /* @__PURE__ */ jsx51("li", { "aria-hidden": "true", className: "px-space-2xs text-on-surface-variant max-md:hidden", children: "\u2026" }, `gap-${i}`) : /* @__PURE__ */ jsx51("li", { className: item === p ? "" : "max-md:hidden", children: /* @__PURE__ */ jsx51(
2292
+ (item, i) => item === "gap" ? /* @__PURE__ */ jsx52("li", { "aria-hidden": "true", className: "px-space-2xs text-on-surface-variant max-md:hidden", children: "\u2026" }, `gap-${i}`) : /* @__PURE__ */ jsx52("li", { className: item === p ? "" : "max-md:hidden", children: /* @__PURE__ */ jsx52(
2257
2293
  "button",
2258
2294
  {
2259
2295
  type: "button",
@@ -2274,18 +2310,18 @@ function Pagination({ page, pageCount, onChange, siblingCount = 1, summary, labe
2274
2310
  "/ ",
2275
2311
  pageCount
2276
2312
  ] }),
2277
- /* @__PURE__ */ jsx51("li", { children: /* @__PURE__ */ jsx51(IconButton, { icon: "chevron_right", label: "Next page", variant: "secondary", size: "sm", disabled: p >= pageCount, onClick: () => onChange(p + 1) }) })
2313
+ /* @__PURE__ */ jsx52("li", { children: /* @__PURE__ */ jsx52(IconButton, { icon: "chevron_right", label: "Next page", variant: "secondary", size: "sm", disabled: p >= pageCount, onClick: () => onChange(p + 1) }) })
2278
2314
  ] })
2279
2315
  ] });
2280
2316
  }
2281
2317
 
2282
2318
  // src/components/Table.tsx
2283
- import { jsx as jsx52, jsxs as jsxs37 } from "react/jsx-runtime";
2319
+ import { jsx as jsx53, jsxs as jsxs37 } from "react/jsx-runtime";
2284
2320
  var PAD = { compact: "px-space-sm py-space-xs", normal: "px-space-md py-space-sm" };
2285
2321
  var ALIGN4 = { start: "text-start", end: "text-end" };
2286
2322
  var WIDTH2 = { auto: "", min: "w-px whitespace-nowrap" };
2287
2323
  function Table({ caption, showCaption, columns, rows, rowKey, density = "normal", empty, ...rest }) {
2288
- return /* @__PURE__ */ jsx52(
2324
+ return /* @__PURE__ */ jsx53(
2289
2325
  "div",
2290
2326
  {
2291
2327
  ...rest,
@@ -2294,29 +2330,29 @@ function Table({ caption, showCaption, columns, rows, rowKey, density = "normal"
2294
2330
  tabIndex: 0,
2295
2331
  className: "min-w-0 max-w-full overflow-x-auto rounded-xl border border-border-subtle focus-visible:outline-2 focus-visible:outline-brand-cobalt",
2296
2332
  children: /* @__PURE__ */ jsxs37("table", { className: "w-full border-collapse font-body-sm text-body-sm text-on-surface", children: [
2297
- /* @__PURE__ */ jsx52("caption", { className: showCaption ? "caption-top px-space-md py-space-sm text-start font-label-mono text-label-mono uppercase text-on-surface-variant" : "sr-only", children: caption }),
2298
- /* @__PURE__ */ jsx52("thead", { className: "bg-surface-subtle", children: /* @__PURE__ */ jsx52("tr", { children: columns.map((c) => /* @__PURE__ */ jsx52("th", { scope: "col", className: cx("border-b border-border-subtle font-label-mono text-label-mono uppercase text-on-surface-variant", PAD[density], ALIGN4[c.align ?? "start"], WIDTH2[c.width ?? "auto"]), children: c.header }, c.key)) }) }),
2299
- /* @__PURE__ */ jsx52("tbody", { className: "divide-y divide-border-subtle", children: rows.length ? rows.map((row, i) => /* @__PURE__ */ jsx52("tr", { children: columns.map((c) => /* @__PURE__ */ jsx52("td", { className: cx("align-top wrap-break-word", PAD[density], ALIGN4[c.align ?? "start"], WIDTH2[c.width ?? "auto"], c.mono && "font-code-inline text-code-inline"), children: row[c.key] }, c.key)) }, rowKey ? rowKey(row, i) : i)) : /* @__PURE__ */ jsx52("tr", { children: /* @__PURE__ */ jsx52("td", { colSpan: columns.length, className: "px-space-md py-space-lg text-center text-on-surface-variant", children: empty ?? "No rows" }) }) })
2333
+ /* @__PURE__ */ jsx53("caption", { className: showCaption ? "caption-top px-space-md py-space-sm text-start font-label-mono text-label-mono uppercase text-on-surface-variant" : "sr-only", children: caption }),
2334
+ /* @__PURE__ */ jsx53("thead", { className: "bg-surface-subtle", children: /* @__PURE__ */ jsx53("tr", { children: columns.map((c) => /* @__PURE__ */ jsx53("th", { scope: "col", className: cx("border-b border-border-subtle font-label-mono text-label-mono uppercase text-on-surface-variant", PAD[density], ALIGN4[c.align ?? "start"], WIDTH2[c.width ?? "auto"]), children: c.header }, c.key)) }) }),
2335
+ /* @__PURE__ */ jsx53("tbody", { className: "divide-y divide-border-subtle", children: rows.length ? rows.map((row, i) => /* @__PURE__ */ jsx53("tr", { children: columns.map((c) => /* @__PURE__ */ jsx53("td", { className: cx("align-top wrap-break-word", PAD[density], ALIGN4[c.align ?? "start"], WIDTH2[c.width ?? "auto"], c.mono && "font-code-inline text-code-inline"), children: row[c.key] }, c.key)) }, rowKey ? rowKey(row, i) : i)) : /* @__PURE__ */ jsx53("tr", { children: /* @__PURE__ */ jsx53("td", { colSpan: columns.length, className: "px-space-md py-space-lg text-center text-on-surface-variant", children: empty ?? "No rows" }) }) })
2300
2336
  ] })
2301
2337
  }
2302
2338
  );
2303
2339
  }
2304
2340
 
2305
2341
  // src/components/DescriptionList.tsx
2306
- import { jsx as jsx53, jsxs as jsxs38 } from "react/jsx-runtime";
2342
+ import { jsx as jsx54, jsxs as jsxs38 } from "react/jsx-runtime";
2307
2343
  var LAYOUT = {
2308
2344
  stacked: "flex flex-col gap-space-sm",
2309
2345
  inline: "grid grid-cols-1 gap-x-space-md gap-y-space-xs sm:grid-cols-[minmax(0,auto)_minmax(0,1fr)]"
2310
2346
  };
2311
2347
  function DescriptionList({ items, layout = "stacked", mono, ...rest }) {
2312
- return /* @__PURE__ */ jsx53("dl", { ...rest, className: cx("min-w-0", LAYOUT[layout]), children: items.map((item, i) => /* @__PURE__ */ jsxs38("div", { className: cx("min-w-0", layout === "inline" && "sm:contents"), children: [
2313
- /* @__PURE__ */ jsx53("dt", { className: "font-label-mono text-label-mono uppercase text-on-surface-variant", children: item.term }),
2314
- /* @__PURE__ */ jsx53("dd", { className: cx("min-w-0 text-on-surface wrap-break-word", mono ? "font-code-inline text-code-inline" : "font-body-md text-body-md"), children: item.detail })
2348
+ return /* @__PURE__ */ jsx54("dl", { ...rest, className: cx("min-w-0", LAYOUT[layout]), children: items.map((item, i) => /* @__PURE__ */ jsxs38("div", { className: cx("min-w-0", layout === "inline" && "sm:contents"), children: [
2349
+ /* @__PURE__ */ jsx54("dt", { className: "font-label-mono text-label-mono uppercase text-on-surface-variant", children: item.term }),
2350
+ /* @__PURE__ */ jsx54("dd", { className: cx("min-w-0 text-on-surface wrap-break-word", mono ? "font-code-inline text-code-inline" : "font-body-md text-body-md"), children: item.detail })
2315
2351
  ] }, i)) });
2316
2352
  }
2317
2353
 
2318
2354
  // src/components/Timeline.tsx
2319
- import { jsx as jsx54, jsxs as jsxs39 } from "react/jsx-runtime";
2355
+ import { jsx as jsx55, jsxs as jsxs39 } from "react/jsx-runtime";
2320
2356
  var STATUS2 = {
2321
2357
  done: { icon: "check", marker: "bg-badge-beginner-text text-badge-beginner-bg", text: "Completed" },
2322
2358
  current: { icon: "radio_button_checked", marker: "bg-badge-intermediate-text text-badge-intermediate-bg ring-4 ring-badge-intermediate-bg", text: "Current" },
@@ -2327,11 +2363,11 @@ var STATUS2 = {
2327
2363
  pending: { icon: "schedule", marker: "bg-surface-muted text-on-surface-variant", text: "Pending" }
2328
2364
  };
2329
2365
  function Timeline({ label, items, ...rest }) {
2330
- return /* @__PURE__ */ jsx54("ol", { ...rest, "aria-label": label, className: "flex min-w-0 flex-col", children: items.map((item, i) => {
2366
+ return /* @__PURE__ */ jsx55("ol", { ...rest, "aria-label": label, className: "flex min-w-0 flex-col", children: items.map((item, i) => {
2331
2367
  const s = STATUS2[item.status];
2332
2368
  return /* @__PURE__ */ jsxs39("li", { "aria-current": item.status === "current" ? "step" : void 0, className: "relative flex min-w-0 gap-space-sm pb-space-md last:pb-0", children: [
2333
- i < items.length - 1 && /* @__PURE__ */ jsx54("span", { "aria-hidden": "true", className: "absolute bottom-0 left-3 top-7 w-px -translate-x-1/2 bg-border-subtle" }),
2334
- /* @__PURE__ */ jsx54("span", { "aria-hidden": "true", className: cx("relative inline-flex size-6 shrink-0 items-center justify-center rounded-full", s.marker), children: /* @__PURE__ */ jsx54(Icon, { name: s.icon, size: "sm" }) }),
2369
+ i < items.length - 1 && /* @__PURE__ */ jsx55("span", { "aria-hidden": "true", className: "absolute bottom-0 left-3 top-7 w-px -translate-x-1/2 bg-border-subtle" }),
2370
+ /* @__PURE__ */ jsx55("span", { "aria-hidden": "true", className: cx("relative inline-flex size-6 shrink-0 items-center justify-center rounded-full", s.marker), children: /* @__PURE__ */ jsx55(Icon, { name: s.icon, size: "sm" }) }),
2335
2371
  /* @__PURE__ */ jsxs39("div", { className: "min-w-0 flex-1 pt-0.5", children: [
2336
2372
  /* @__PURE__ */ jsxs39("div", { className: "flex min-w-0 flex-wrap items-center gap-space-xs", children: [
2337
2373
  /* @__PURE__ */ jsxs39("p", { className: "font-body-md text-body-md font-medium text-on-surface wrap-break-word", children: [
@@ -2343,8 +2379,8 @@ function Timeline({ label, items, ...rest }) {
2343
2379
  ] }),
2344
2380
  item.badge
2345
2381
  ] }),
2346
- item.description && /* @__PURE__ */ jsx54("p", { className: "font-body-sm text-body-sm text-on-surface-variant wrap-break-word", children: item.description }),
2347
- item.meta && /* @__PURE__ */ jsx54("p", { className: "font-label-mono text-label-mono text-on-surface-variant", children: item.meta })
2382
+ item.description && /* @__PURE__ */ jsx55("p", { className: "font-body-sm text-body-sm text-on-surface-variant wrap-break-word", children: item.description }),
2383
+ item.meta && /* @__PURE__ */ jsx55("p", { className: "font-label-mono text-label-mono text-on-surface-variant", children: item.meta })
2348
2384
  ] })
2349
2385
  ] }, item.id);
2350
2386
  }) });
@@ -2352,7 +2388,7 @@ function Timeline({ label, items, ...rest }) {
2352
2388
 
2353
2389
  // src/components/Disclosure.tsx
2354
2390
  import { useId as useId10, useState as useState7 } from "react";
2355
- import { jsx as jsx55, jsxs as jsxs40 } from "react/jsx-runtime";
2391
+ import { jsx as jsx56, jsxs as jsxs40 } from "react/jsx-runtime";
2356
2392
  function Disclosure({ summary, children, open, defaultOpen = false, onOpenChange, selected, variant = "plain", ...rest }) {
2357
2393
  const id = useId10();
2358
2394
  const [inner, setInner] = useState7(defaultOpen);
@@ -2374,31 +2410,31 @@ function Disclosure({ summary, children, open, defaultOpen = false, onOpenChange
2374
2410
  onClick: toggle,
2375
2411
  className: cx("flex w-full min-w-0 items-center gap-space-sm text-left", row ? "px-space-sm py-space-sm hover:bg-surface-subtle" : "py-space-xs", FOCUS_RING, TOUCH),
2376
2412
  children: [
2377
- /* @__PURE__ */ jsx55("span", { className: "min-w-0 flex-1", children: summary }),
2378
- /* @__PURE__ */ jsx55(Icon, { name: isOpen ? "expand_less" : "expand_more", size: "sm", tone: "muted" })
2413
+ /* @__PURE__ */ jsx56("span", { className: "min-w-0 flex-1", children: summary }),
2414
+ /* @__PURE__ */ jsx56(Icon, { name: isOpen ? "expand_less" : "expand_more", size: "sm", tone: "muted" })
2379
2415
  ]
2380
2416
  }
2381
2417
  ),
2382
- /* @__PURE__ */ jsx55("div", { id: `${id}-panel`, role: "region", "aria-labelledby": `${id}-button`, hidden: !isOpen, className: cx("min-w-0", row ? "px-space-sm pb-space-sm" : "pb-space-xs"), children })
2418
+ /* @__PURE__ */ jsx56("div", { id: `${id}-panel`, role: "region", "aria-labelledby": `${id}-button`, hidden: !isOpen, className: cx("min-w-0", row ? "px-space-sm pb-space-sm" : "pb-space-xs"), children })
2383
2419
  ] });
2384
2420
  }
2385
2421
 
2386
2422
  // src/components/Skeleton.tsx
2387
- import { jsx as jsx56 } from "react/jsx-runtime";
2423
+ import { jsx as jsx57 } from "react/jsx-runtime";
2388
2424
  var SHAPE4 = { line: "rounded", pill: "rounded-full", rect: "rounded-xl", circle: "rounded-full aspect-square" };
2389
2425
  var WIDTH3 = { full: "w-full", "3/4": "w-3/4", "1/2": "w-1/2", "1/3": "w-1/3", "1/4": "w-1/4" };
2390
- var HEIGHT3 = { xs: "h-2", sm: "h-3", md: "h-4", lg: "h-8", xl: "h-24" };
2426
+ var HEIGHT4 = { xs: "h-2", sm: "h-3", md: "h-4", lg: "h-8", xl: "h-24" };
2391
2427
  var DEFAULT_HEIGHT = { line: "sm", pill: "lg", rect: "xl", circle: "lg" };
2392
2428
  function Skeleton({ shape = "line", width = "full", height, lines, ...rest }) {
2393
- const h = HEIGHT3[height ?? DEFAULT_HEIGHT[shape]];
2429
+ const h = HEIGHT4[height ?? DEFAULT_HEIGHT[shape]];
2394
2430
  if (lines && lines > 1) {
2395
- return /* @__PURE__ */ jsx56("div", { ...rest, "aria-hidden": "true", className: "flex w-full min-w-0 flex-col gap-space-xs", children: Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsx56("div", { className: cx("skeleton-shimmer rounded", h, i === lines - 1 ? "w-3/4" : "w-full") }, i)) });
2431
+ return /* @__PURE__ */ jsx57("div", { ...rest, "aria-hidden": "true", className: "flex w-full min-w-0 flex-col gap-space-xs", children: Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsx57("div", { className: cx("skeleton-shimmer rounded", h, i === lines - 1 ? "w-3/4" : "w-full") }, i)) });
2396
2432
  }
2397
- return /* @__PURE__ */ jsx56("div", { ...rest, "aria-hidden": "true", className: cx("skeleton-shimmer shrink-0", SHAPE4[shape], h, shape !== "circle" && WIDTH3[width]) });
2433
+ return /* @__PURE__ */ jsx57("div", { ...rest, "aria-hidden": "true", className: cx("skeleton-shimmer shrink-0", SHAPE4[shape], h, shape !== "circle" && WIDTH3[width]) });
2398
2434
  }
2399
2435
 
2400
2436
  // src/components/TerminalOutput.tsx
2401
- import { jsx as jsx57, jsxs as jsxs41 } from "react/jsx-runtime";
2437
+ import { jsx as jsx58, jsxs as jsxs41 } from "react/jsx-runtime";
2402
2438
  var KIND = {
2403
2439
  command: "text-slate-100",
2404
2440
  plain: "text-slate-300",
@@ -2411,10 +2447,10 @@ var MAX = { sm: "max-h-40", md: "max-h-72", lg: "max-h-[32rem]", none: "" };
2411
2447
  function TerminalOutput({ lines, title, status, maxHeight = "md", ...rest }) {
2412
2448
  return /* @__PURE__ */ jsxs41("figure", { ...rest, className: "min-w-0 max-w-full overflow-hidden rounded-xl bg-brand-obsidian", children: [
2413
2449
  (title || status) && /* @__PURE__ */ jsxs41("figcaption", { className: "flex min-w-0 items-center justify-between gap-space-sm border-b border-white/10 px-space-md py-space-xs font-label-mono text-label-mono uppercase text-slate-300", children: [
2414
- /* @__PURE__ */ jsx57("span", { className: "truncate", children: title }),
2450
+ /* @__PURE__ */ jsx58("span", { className: "truncate", children: title }),
2415
2451
  status
2416
2452
  ] }),
2417
- /* @__PURE__ */ jsx57(
2453
+ /* @__PURE__ */ jsx58(
2418
2454
  "div",
2419
2455
  {
2420
2456
  role: "log",
@@ -2426,7 +2462,7 @@ function TerminalOutput({ lines, title, status, maxHeight = "md", ...rest }) {
2426
2462
  "$",
2427
2463
  " "
2428
2464
  ] }),
2429
- /* @__PURE__ */ jsx57("span", { children: line.text })
2465
+ /* @__PURE__ */ jsx58("span", { children: line.text })
2430
2466
  ] }, i))
2431
2467
  }
2432
2468
  )
@@ -2434,40 +2470,40 @@ function TerminalOutput({ lines, title, status, maxHeight = "md", ...rest }) {
2434
2470
  }
2435
2471
 
2436
2472
  // src/components/VerdictBanner.tsx
2437
- import { jsx as jsx58, jsxs as jsxs42 } from "react/jsx-runtime";
2473
+ import { jsx as jsx59, jsxs as jsxs42 } from "react/jsx-runtime";
2438
2474
  var TITLE = { success: "text-fg-success", danger: "text-fg-danger", warning: "text-fg-warning" };
2439
2475
  function VerdictBanner({ tone, icon, title, badge, meta, actions, ...rest }) {
2440
2476
  return /* @__PURE__ */ jsxs42("section", { ...rest, className: "flex min-w-0 flex-col gap-space-md rounded-xl border border-border-subtle bg-surface-elevated p-space-lg md:flex-row md:items-center", children: [
2441
- /* @__PURE__ */ jsx58(IconTile, { icon, tone, size: "xl", shape: "circle", filled: true }),
2477
+ /* @__PURE__ */ jsx59(IconTile, { icon, tone, size: "xl", shape: "circle", filled: true }),
2442
2478
  /* @__PURE__ */ jsxs42("div", { className: "min-w-0 flex-1", children: [
2443
2479
  /* @__PURE__ */ jsxs42("div", { className: "flex min-w-0 flex-wrap items-center gap-space-sm", children: [
2444
- /* @__PURE__ */ jsx58("h2", { className: cx("min-w-0 font-display text-headline-xl wrap-break-word", TITLE[tone]), children: title }),
2480
+ /* @__PURE__ */ jsx59("h2", { className: cx("min-w-0 font-display text-headline-xl wrap-break-word", TITLE[tone]), children: title }),
2445
2481
  badge
2446
2482
  ] }),
2447
- meta && meta.length > 0 && /* @__PURE__ */ jsx58("ul", { className: "mt-space-xs flex min-w-0 flex-wrap items-center gap-x-space-sm gap-y-space-2xs font-body-sm text-body-sm text-on-surface-variant", children: meta.map((m, i) => /* @__PURE__ */ jsxs42("li", { className: "flex items-center gap-space-sm", children: [
2448
- i > 0 && /* @__PURE__ */ jsx58("span", { "aria-hidden": "true", className: "h-3 w-px bg-border-strong" }),
2483
+ meta && meta.length > 0 && /* @__PURE__ */ jsx59("ul", { className: "mt-space-xs flex min-w-0 flex-wrap items-center gap-x-space-sm gap-y-space-2xs font-body-sm text-body-sm text-on-surface-variant", children: meta.map((m, i) => /* @__PURE__ */ jsxs42("li", { className: "flex items-center gap-space-sm", children: [
2484
+ i > 0 && /* @__PURE__ */ jsx59("span", { "aria-hidden": "true", className: "h-3 w-px bg-border-strong" }),
2449
2485
  m
2450
2486
  ] }, i)) })
2451
2487
  ] }),
2452
- actions && /* @__PURE__ */ jsx58("div", { className: "flex shrink-0 flex-wrap items-center gap-space-sm", children: actions })
2488
+ actions && /* @__PURE__ */ jsx59("div", { className: "flex shrink-0 flex-wrap items-center gap-space-sm", children: actions })
2453
2489
  ] });
2454
2490
  }
2455
2491
 
2456
2492
  // src/components/Checkbox.tsx
2457
- import { useEffect as useEffect5, useId as useId11, useRef as useRef10 } from "react";
2458
- import { jsx as jsx59, jsxs as jsxs43 } from "react/jsx-runtime";
2493
+ import { useEffect as useEffect5, useId as useId11, useRef as useRef11 } from "react";
2494
+ import { jsx as jsx60, jsxs as jsxs43 } from "react/jsx-runtime";
2459
2495
  function Checkbox({ label, description, strikeWhenChecked, indeterminate, size = "md", id, ...rest }) {
2460
2496
  const generated = useId11();
2461
2497
  const inputId = id ?? generated;
2462
2498
  const descId = `${inputId}-desc`;
2463
- const ref = useRef10(null);
2499
+ const ref = useRef11(null);
2464
2500
  useEffect5(() => {
2465
2501
  if (ref.current) ref.current.indeterminate = Boolean(indeterminate);
2466
2502
  }, [indeterminate]);
2467
2503
  return /* @__PURE__ */ jsxs43("div", { className: "min-w-0", children: [
2468
2504
  /* @__PURE__ */ jsxs43("label", { htmlFor: inputId, className: cx("group flex min-w-0 cursor-pointer items-start gap-space-sm", TOUCH), children: [
2469
2505
  /* @__PURE__ */ jsxs43("span", { className: "relative mt-0.5 inline-flex size-4 shrink-0", children: [
2470
- /* @__PURE__ */ jsx59(
2506
+ /* @__PURE__ */ jsx60(
2471
2507
  "input",
2472
2508
  {
2473
2509
  ...rest,
@@ -2481,18 +2517,18 @@ function Checkbox({ label, description, strikeWhenChecked, indeterminate, size =
2481
2517
  )
2482
2518
  }
2483
2519
  ),
2484
- /* @__PURE__ */ jsx59("span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 hidden items-center justify-center text-white peer-checked:flex", children: /* @__PURE__ */ jsx59(Icon, { name: "check", size: "sm" }) }),
2485
- /* @__PURE__ */ jsx59("span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 hidden items-center justify-center text-white peer-indeterminate:flex", children: /* @__PURE__ */ jsx59(Icon, { name: "remove", size: "sm" }) })
2520
+ /* @__PURE__ */ jsx60("span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 hidden items-center justify-center text-white peer-checked:flex", children: /* @__PURE__ */ jsx60(Icon, { name: "check", size: "sm" }) }),
2521
+ /* @__PURE__ */ jsx60("span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 hidden items-center justify-center text-white peer-indeterminate:flex", children: /* @__PURE__ */ jsx60(Icon, { name: "remove", size: "sm" }) })
2486
2522
  ] }),
2487
- /* @__PURE__ */ jsx59("span", { className: cx("min-w-0 text-on-surface wrap-break-word", size === "sm" ? "font-body-sm text-body-sm" : "font-body-md text-body-md", strikeWhenChecked && "group-has-checked:text-on-surface-variant group-has-checked:line-through"), children: label })
2523
+ /* @__PURE__ */ jsx60("span", { className: cx("min-w-0 text-on-surface wrap-break-word", size === "sm" ? "font-body-sm text-body-sm" : "font-body-md text-body-md", strikeWhenChecked && "group-has-checked:text-on-surface-variant group-has-checked:line-through"), children: label })
2488
2524
  ] }),
2489
- description && /* @__PURE__ */ jsx59("p", { id: descId, className: "pl-6 font-body-sm text-body-sm text-on-surface-variant wrap-break-word", children: description })
2525
+ description && /* @__PURE__ */ jsx60("p", { id: descId, className: "pl-6 font-body-sm text-body-sm text-on-surface-variant wrap-break-word", children: description })
2490
2526
  ] });
2491
2527
  }
2492
2528
 
2493
2529
  // src/components/Switch.tsx
2494
2530
  import { useId as useId12 } from "react";
2495
- import { jsx as jsx60, jsxs as jsxs44 } from "react/jsx-runtime";
2531
+ import { jsx as jsx61, jsxs as jsxs44 } from "react/jsx-runtime";
2496
2532
  function Switch({ label, checked, onChange, description, ...rest }) {
2497
2533
  const id = useId12();
2498
2534
  const buttonId = rest.id ?? `${id}-switch`;
@@ -2500,10 +2536,10 @@ function Switch({ label, checked, onChange, description, ...rest }) {
2500
2536
  // The row is a <label> for the button, so tapping the text toggles it and the target is the full row.
2501
2537
  /* @__PURE__ */ jsxs44("label", { htmlFor: buttonId, className: cx("flex min-w-0 cursor-pointer items-start justify-between gap-space-md", TOUCH), children: [
2502
2538
  /* @__PURE__ */ jsxs44("span", { className: "min-w-0", children: [
2503
- /* @__PURE__ */ jsx60("span", { id: `${id}-label`, className: "font-body-md text-body-md text-on-surface", children: label }),
2504
- description && /* @__PURE__ */ jsx60("span", { id: `${id}-desc`, className: "block font-body-sm text-body-sm text-on-surface-variant wrap-break-word", children: description })
2539
+ /* @__PURE__ */ jsx61("span", { id: `${id}-label`, className: "font-body-md text-body-md text-on-surface", children: label }),
2540
+ description && /* @__PURE__ */ jsx61("span", { id: `${id}-desc`, className: "block font-body-sm text-body-sm text-on-surface-variant wrap-break-word", children: description })
2505
2541
  ] }),
2506
- /* @__PURE__ */ jsx60(
2542
+ /* @__PURE__ */ jsx61(
2507
2543
  "button",
2508
2544
  {
2509
2545
  ...rest,
@@ -2515,7 +2551,7 @@ function Switch({ label, checked, onChange, description, ...rest }) {
2515
2551
  "aria-describedby": description ? `${id}-desc` : void 0,
2516
2552
  onClick: () => onChange(!checked),
2517
2553
  className: cx("relative inline-flex h-6 w-11 shrink-0 items-center rounded-full transition-colors disabled:pointer-events-none disabled:opacity-50", checked ? "bg-brand-cobalt" : "bg-border-strong", FOCUS_RING),
2518
- children: /* @__PURE__ */ jsx60("span", { "aria-hidden": "true", className: cx("inline-block size-5 rounded-full bg-white shadow-sm transition-transform", checked ? "translate-x-5.5" : "translate-x-0.5") })
2554
+ children: /* @__PURE__ */ jsx61("span", { "aria-hidden": "true", className: cx("inline-block size-5 rounded-full bg-white shadow-sm transition-transform", checked ? "translate-x-5.5" : "translate-x-0.5") })
2519
2555
  }
2520
2556
  )
2521
2557
  ] })
@@ -2523,17 +2559,17 @@ function Switch({ label, checked, onChange, description, ...rest }) {
2523
2559
  }
2524
2560
 
2525
2561
  // src/components/Overlay.tsx
2526
- import { jsx as jsx61, jsxs as jsxs45 } from "react/jsx-runtime";
2562
+ import { jsx as jsx62, jsxs as jsxs45 } from "react/jsx-runtime";
2527
2563
  function Overlay({ children, overlay, blur = true, ...rest }) {
2528
2564
  return /* @__PURE__ */ jsxs45("div", { ...rest, className: "relative min-w-0 overflow-hidden rounded-xl", children: [
2529
- /* @__PURE__ */ jsx61("div", { inert: true, "aria-hidden": "true", className: cx("pointer-events-none select-none", blur && "blur-sm"), children }),
2530
- /* @__PURE__ */ jsx61("div", { className: "absolute inset-0 flex items-center justify-center bg-surface/70 p-space-md", children: overlay })
2565
+ /* @__PURE__ */ jsx62("div", { inert: true, "aria-hidden": "true", className: cx("pointer-events-none select-none", blur && "blur-sm"), children }),
2566
+ /* @__PURE__ */ jsx62("div", { className: "absolute inset-0 flex items-center justify-center bg-surface/70 p-space-md", children: overlay })
2531
2567
  ] });
2532
2568
  }
2533
2569
 
2534
2570
  // src/components/CopyButton.tsx
2535
2571
  import { useEffect as useEffect6, useState as useState8 } from "react";
2536
- import { jsx as jsx62 } from "react/jsx-runtime";
2572
+ import { jsx as jsx63 } from "react/jsx-runtime";
2537
2573
  function CopyButton({ value, label = "Copy", copiedLabel = "Copied", size = "sm", variant = "secondary", ...rest }) {
2538
2574
  const [state, setState] = useState8("idle");
2539
2575
  useEffect6(() => {
@@ -2549,7 +2585,7 @@ function CopyButton({ value, label = "Copy", copiedLabel = "Copied", size = "sm"
2549
2585
  setState("failed");
2550
2586
  }
2551
2587
  };
2552
- return /* @__PURE__ */ jsx62(Button, { ...rest, variant, size, icon: state === "copied" ? "check" : state === "failed" ? "error" : "content_copy", onClick: copy, "aria-live": "polite", children: state === "copied" ? copiedLabel : state === "failed" ? "Copy failed" : label });
2588
+ return /* @__PURE__ */ jsx63(Button, { ...rest, variant, size, icon: state === "copied" ? "check" : state === "failed" ? "error" : "content_copy", onClick: copy, "aria-live": "polite", children: state === "copied" ? copiedLabel : state === "failed" ? "Copy failed" : label });
2553
2589
  }
2554
2590
 
2555
2591
  // src/internal/diff.ts
@@ -2597,41 +2633,41 @@ function splitRows(lines) {
2597
2633
  }
2598
2634
 
2599
2635
  // src/components/DiffViewer.tsx
2600
- import { jsx as jsx63, jsxs as jsxs46 } from "react/jsx-runtime";
2636
+ import { jsx as jsx64, jsxs as jsxs46 } from "react/jsx-runtime";
2601
2637
  var KIND2 = { same: "text-code-plain", add: "bg-diff-add-bg text-diff-add-fg", del: "bg-diff-del-bg text-diff-del-fg" };
2602
2638
  var SIGN = { same: " ", add: "+", del: "\u2212" };
2603
2639
  var SPOKEN = { same: "", add: "added:", del: "removed:" };
2604
2640
  var PRE = "overflow-x-auto py-space-sm font-code-inline text-code-inline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-brand-cobalt";
2605
2641
  function Row({ line, gutters }) {
2606
- if (!line) return /* @__PURE__ */ jsx63("div", { className: "min-h-5 bg-white/5" });
2642
+ if (!line) return /* @__PURE__ */ jsx64("div", { className: "min-h-5 bg-white/5" });
2607
2643
  return /* @__PURE__ */ jsxs46("div", { className: cx("flex min-w-0 px-space-sm", KIND2[line.kind]), children: [
2608
- gutters !== "new" && /* @__PURE__ */ jsx63("span", { "aria-hidden": "true", className: "w-8 shrink-0 select-none pr-space-xs text-right text-code-comment", children: line.oldNo ?? "" }),
2609
- gutters !== "old" && /* @__PURE__ */ jsx63("span", { "aria-hidden": "true", className: "w-8 shrink-0 select-none pr-space-xs text-right text-code-comment", children: line.newNo ?? "" }),
2610
- /* @__PURE__ */ jsx63("span", { "aria-hidden": "true", className: "w-4 shrink-0 select-none", children: SIGN[line.kind] }),
2611
- SPOKEN[line.kind] && /* @__PURE__ */ jsx63("span", { className: "sr-only", children: SPOKEN[line.kind] }),
2612
- /* @__PURE__ */ jsx63("span", { className: "min-w-0 whitespace-pre-wrap wrap-break-word", children: line.text || " " })
2644
+ gutters !== "new" && /* @__PURE__ */ jsx64("span", { "aria-hidden": "true", className: "w-8 shrink-0 select-none pr-space-xs text-right text-code-comment", children: line.oldNo ?? "" }),
2645
+ gutters !== "old" && /* @__PURE__ */ jsx64("span", { "aria-hidden": "true", className: "w-8 shrink-0 select-none pr-space-xs text-right text-code-comment", children: line.newNo ?? "" }),
2646
+ /* @__PURE__ */ jsx64("span", { "aria-hidden": "true", className: "w-4 shrink-0 select-none", children: SIGN[line.kind] }),
2647
+ SPOKEN[line.kind] && /* @__PURE__ */ jsx64("span", { className: "sr-only", children: SPOKEN[line.kind] }),
2648
+ /* @__PURE__ */ jsx64("span", { className: "min-w-0 whitespace-pre-wrap wrap-break-word", children: line.text || " " })
2613
2649
  ] });
2614
2650
  }
2615
2651
  function DiffViewer({ oldValue, newValue, oldTitle, newTitle, mode = "unified", ...rest }) {
2616
2652
  const lines = diffLines(oldValue, newValue);
2617
- const unified = /* @__PURE__ */ jsx63("pre", { tabIndex: 0, className: cx(PRE, mode === "split" && "lg:hidden"), children: lines.map((l, i) => /* @__PURE__ */ jsx63(Row, { line: l, gutters: "both" }, i)) });
2653
+ const unified = /* @__PURE__ */ jsx64("pre", { tabIndex: 0, className: cx(PRE, mode === "split" && "lg:hidden"), children: lines.map((l, i) => /* @__PURE__ */ jsx64(Row, { line: l, gutters: "both" }, i)) });
2618
2654
  return /* @__PURE__ */ jsxs46("figure", { ...rest, className: "min-w-0 max-w-full overflow-hidden rounded-xl bg-brand-obsidian", children: [
2619
2655
  (oldTitle || newTitle) && /* @__PURE__ */ jsxs46("figcaption", { className: "flex min-w-0 flex-wrap items-center gap-space-xs border-b border-white/10 px-space-md py-space-xs font-label-mono text-label-mono text-slate-300", children: [
2620
- oldTitle && /* @__PURE__ */ jsx63("span", { className: "truncate", children: oldTitle }),
2621
- oldTitle && newTitle && /* @__PURE__ */ jsx63("span", { "aria-hidden": "true", children: "\u2192" }),
2622
- newTitle && /* @__PURE__ */ jsx63("span", { className: "truncate", children: newTitle })
2656
+ oldTitle && /* @__PURE__ */ jsx64("span", { className: "truncate", children: oldTitle }),
2657
+ oldTitle && newTitle && /* @__PURE__ */ jsx64("span", { "aria-hidden": "true", children: "\u2192" }),
2658
+ newTitle && /* @__PURE__ */ jsx64("span", { className: "truncate", children: newTitle })
2623
2659
  ] }),
2624
2660
  unified,
2625
- mode === "split" && /* @__PURE__ */ jsx63("pre", { tabIndex: 0, className: cx(PRE, "hidden grid-cols-2 lg:grid"), children: splitRows(lines).map((r, i) => /* @__PURE__ */ jsxs46("div", { className: "contents", children: [
2626
- /* @__PURE__ */ jsx63(Row, { line: r.left, gutters: "old" }),
2627
- /* @__PURE__ */ jsx63(Row, { line: r.right, gutters: "new" })
2661
+ mode === "split" && /* @__PURE__ */ jsx64("pre", { tabIndex: 0, className: cx(PRE, "hidden grid-cols-2 lg:grid"), children: splitRows(lines).map((r, i) => /* @__PURE__ */ jsxs46("div", { className: "contents", children: [
2662
+ /* @__PURE__ */ jsx64(Row, { line: r.left, gutters: "old" }),
2663
+ /* @__PURE__ */ jsx64(Row, { line: r.right, gutters: "new" })
2628
2664
  ] }, i)) })
2629
2665
  ] });
2630
2666
  }
2631
2667
 
2632
2668
  // src/components/BarChart.tsx
2633
- import { jsx as jsx64, jsxs as jsxs47 } from "react/jsx-runtime";
2634
- var HEIGHT4 = { sm: "h-16", md: "h-28" };
2669
+ import { jsx as jsx65, jsxs as jsxs47 } from "react/jsx-runtime";
2670
+ var HEIGHT5 = { sm: "h-16", md: "h-28" };
2635
2671
  var TONE14 = { brand: "bg-brand-cobalt", success: "bg-brand-emerald" };
2636
2672
  function BarChart({ label, bars, highlight, highlightLabel, axis, height = "md", tone = "brand", ...rest }) {
2637
2673
  const max = Math.max(0, ...bars.map((b) => b.value));
@@ -2639,31 +2675,31 @@ function BarChart({ label, bars, highlight, highlightLabel, axis, height = "md",
2639
2675
  const hl = highlight !== void 0 && bars[highlight] ? `; highlighted ${name(highlight)} = ${bars[highlight].value}` : "";
2640
2676
  const summary = `${label}: ${bars.length} bars, highest ${max}${hl}`;
2641
2677
  return /* @__PURE__ */ jsxs47("figure", { ...rest, className: "flex min-w-0 flex-col gap-space-xs", children: [
2642
- /* @__PURE__ */ jsx64("div", { role: "img", "aria-label": summary, className: cx("flex items-end gap-1", HEIGHT4[height], highlightLabel && "pt-space-lg"), children: bars.map((b, i) => {
2678
+ /* @__PURE__ */ jsx65("div", { role: "img", "aria-label": summary, className: cx("flex items-end gap-1", HEIGHT5[height], highlightLabel && "pt-space-lg"), children: bars.map((b, i) => {
2643
2679
  const pct = max > 0 ? Math.max(2, Math.round(Math.max(0, b.value) / max * 100)) : 2;
2644
2680
  const strong = highlight === void 0 || i === highlight;
2645
2681
  return /* @__PURE__ */ jsxs47("div", { className: "relative flex h-full min-w-0 flex-1 items-end", children: [
2646
- i === highlight && highlightLabel && /* @__PURE__ */ jsx64("span", { className: "absolute -top-space-lg left-1/2 -translate-x-1/2 whitespace-nowrap font-label-mono text-[10px] text-fg-brand", children: highlightLabel }),
2647
- /* @__PURE__ */ jsx64("div", { "data-bar": "", className: cx("w-full rounded-t", strong ? TONE14[tone] : "bg-surface-container-high"), style: { height: `${pct}%` } })
2682
+ i === highlight && highlightLabel && /* @__PURE__ */ jsx65("span", { className: "absolute -top-space-lg left-1/2 -translate-x-1/2 whitespace-nowrap font-label-mono text-[10px] text-fg-brand", children: highlightLabel }),
2683
+ /* @__PURE__ */ jsx65("div", { "data-bar": "", className: cx("w-full rounded-t", strong ? TONE14[tone] : "bg-surface-container-high"), style: { height: `${pct}%` } })
2648
2684
  ] }, i);
2649
2685
  }) }),
2650
2686
  axis && /* @__PURE__ */ jsxs47("div", { "aria-hidden": "true", className: "flex justify-between font-label-mono text-[10px] text-on-surface-variant", children: [
2651
- /* @__PURE__ */ jsx64("span", { children: axis[0] }),
2652
- /* @__PURE__ */ jsx64("span", { children: axis[1] }),
2653
- /* @__PURE__ */ jsx64("span", { children: axis[2] })
2687
+ /* @__PURE__ */ jsx65("span", { children: axis[0] }),
2688
+ /* @__PURE__ */ jsx65("span", { children: axis[1] }),
2689
+ /* @__PURE__ */ jsx65("span", { children: axis[2] })
2654
2690
  ] }),
2655
2691
  /* @__PURE__ */ jsxs47("table", { className: "sr-only", children: [
2656
- /* @__PURE__ */ jsx64("caption", { children: label }),
2657
- /* @__PURE__ */ jsx64("tbody", { children: bars.map((b, i) => /* @__PURE__ */ jsxs47("tr", { children: [
2658
- /* @__PURE__ */ jsx64("th", { scope: "row", children: name(i) }),
2659
- /* @__PURE__ */ jsx64("td", { children: b.value })
2692
+ /* @__PURE__ */ jsx65("caption", { children: label }),
2693
+ /* @__PURE__ */ jsx65("tbody", { children: bars.map((b, i) => /* @__PURE__ */ jsxs47("tr", { children: [
2694
+ /* @__PURE__ */ jsx65("th", { scope: "row", children: name(i) }),
2695
+ /* @__PURE__ */ jsx65("td", { children: b.value })
2660
2696
  ] }, i)) })
2661
2697
  ] })
2662
2698
  ] });
2663
2699
  }
2664
2700
 
2665
2701
  // src/ide/UmlClass.tsx
2666
- import { jsx as jsx65, jsxs as jsxs48 } from "react/jsx-runtime";
2702
+ import { jsx as jsx66, jsxs as jsxs48 } from "react/jsx-runtime";
2667
2703
  var EMPHASIS = { default: "border border-border-strong", brand: "border-2 border-brand-cobalt", strong: "border-2 border-ink" };
2668
2704
  var SIZE15 = { sm: { text: "text-[11px] leading-4", pad: "px-space-xs py-space-2xs" }, md: { text: "text-code-inline", pad: "px-space-sm py-space-xs" } };
2669
2705
  var HEADER_TONE = { container: "bg-surface-container", info: "bg-badge-intermediate-bg", strong: "bg-surface-container-high" };
@@ -2679,12 +2715,12 @@ function UmlClass({ name, stereotype, attributes = [], methods = [], tag, emphas
2679
2715
  stereotype,
2680
2716
  "\xBB"
2681
2717
  ] }),
2682
- /* @__PURE__ */ jsx65("span", { className: "truncate font-headline-sm text-headline-sm text-ink", children: name }),
2718
+ /* @__PURE__ */ jsx66("span", { className: "truncate font-headline-sm text-headline-sm text-ink", children: name }),
2683
2719
  tag
2684
2720
  ] }),
2685
2721
  attributes.length + methods.length > 0 && /* @__PURE__ */ jsxs48("ul", { className: cx("grid min-w-0 gap-space-2xs p-space-2xs font-code-inline text-code-inline", columns === 2 ? "grid-cols-2" : "grid-cols-1"), children: [
2686
- attributes.map((a, i) => /* @__PURE__ */ jsx65("li", { className: "min-w-0 truncate text-on-surface-variant", children: a }, `a${i}`)),
2687
- methods.map((m, i) => /* @__PURE__ */ jsx65("li", { className: cx("min-w-0 truncate text-fg-brand", columns === 2 && "col-span-2"), children: m }, `m${i}`))
2722
+ attributes.map((a, i) => /* @__PURE__ */ jsx66("li", { className: "min-w-0 truncate text-on-surface-variant", children: a }, `a${i}`)),
2723
+ methods.map((m, i) => /* @__PURE__ */ jsx66("li", { className: cx("min-w-0 truncate text-fg-brand", columns === 2 && "col-span-2"), children: m }, `m${i}`))
2688
2724
  ] })
2689
2725
  ] });
2690
2726
  }
@@ -2695,17 +2731,17 @@ function UmlClass({ name, stereotype, attributes = [], methods = [], tag, emphas
2695
2731
  stereotype,
2696
2732
  "\xBB"
2697
2733
  ] }),
2698
- /* @__PURE__ */ jsx65("span", { className: "font-semibold text-ink", children: name }),
2734
+ /* @__PURE__ */ jsx66("span", { className: "font-semibold text-ink", children: name }),
2699
2735
  tag
2700
2736
  ] }),
2701
- attributes.length > 0 && /* @__PURE__ */ jsx65("ul", { className: cx("border-t border-border-subtle", s.pad), children: attributes.map((a, i) => /* @__PURE__ */ jsx65("li", { className: "whitespace-nowrap", children: a }, i)) }),
2702
- methods.length > 0 && /* @__PURE__ */ jsx65("ul", { className: cx("border-t border-border-subtle", s.pad), children: methods.map((m, i) => /* @__PURE__ */ jsx65("li", { className: "whitespace-nowrap", children: m }, i)) })
2737
+ attributes.length > 0 && /* @__PURE__ */ jsx66("ul", { className: cx("border-t border-border-subtle", s.pad), children: attributes.map((a, i) => /* @__PURE__ */ jsx66("li", { className: "whitespace-nowrap", children: a }, i)) }),
2738
+ methods.length > 0 && /* @__PURE__ */ jsx66("ul", { className: cx("border-t border-border-subtle", s.pad), children: methods.map((m, i) => /* @__PURE__ */ jsx66("li", { className: "whitespace-nowrap", children: m }, i)) })
2703
2739
  ] });
2704
2740
  }
2705
2741
 
2706
2742
  // src/ide/UmlDiagram.tsx
2707
- import { useEffect as useEffect7, useId as useId13, useRef as useRef11, useState as useState9 } from "react";
2708
- import { jsx as jsx66, jsxs as jsxs49 } from "react/jsx-runtime";
2743
+ import { useEffect as useEffect7, useId as useId13, useRef as useRef12, useState as useState9 } from "react";
2744
+ import { jsx as jsx67, jsxs as jsxs49 } from "react/jsx-runtime";
2709
2745
  var VERB = {
2710
2746
  association: "is associated with",
2711
2747
  dependency: "depends on",
@@ -2734,14 +2770,14 @@ function edgeStyle(kind, id) {
2734
2770
  }
2735
2771
  function UmlDiagram({ label, nodes, edges, direction = "TB", zoomable = true, compact, pattern = "dots", ...rest }) {
2736
2772
  const id = useId13().replace(/[^a-zA-Z0-9_-]/g, "");
2737
- const nodeRefs = useRef11(/* @__PURE__ */ new Map());
2738
- const viewportRef = useRef11(null);
2773
+ const nodeRefs = useRef12(/* @__PURE__ */ new Map());
2774
+ const viewportRef = useRef12(null);
2739
2775
  const [layout, setLayout] = useState9(null);
2740
2776
  const [zoom, setZoom] = useState9(1);
2741
2777
  const [fit, setFit] = useState9(1);
2742
2778
  const contentKey = JSON.stringify({ n: nodes.map((n) => [n.id, n.name, n.stereotype, n.attributes, n.methods]), e: edges.map((e) => [e.from, e.to, e.kind]), direction, compact });
2743
2779
  const [sizeTick, setSizeTick] = useState9(0);
2744
- const sizes = useRef11(/* @__PURE__ */ new Map());
2780
+ const sizes = useRef12(/* @__PURE__ */ new Map());
2745
2781
  const key = `${contentKey}#${sizeTick}`;
2746
2782
  useEffect7(() => {
2747
2783
  if (typeof ResizeObserver === "undefined") return;
@@ -2805,17 +2841,17 @@ function UmlDiagram({ label, nodes, edges, direction = "TB", zoomable = true, co
2805
2841
  const scale = compact ? fit : zoom;
2806
2842
  const descId = `${id}-desc`;
2807
2843
  return /* @__PURE__ */ jsxs49("figure", { ...rest, className: "relative min-w-0 max-w-full overflow-hidden rounded-xl border border-border-subtle bg-surface-subtle", children: [
2808
- /* @__PURE__ */ jsx66("figcaption", { id: descId, className: "sr-only", children: describeDiagram(label, nodes, edges) }),
2844
+ /* @__PURE__ */ jsx67("figcaption", { id: descId, className: "sr-only", children: describeDiagram(label, nodes, edges) }),
2809
2845
  zoomable && !compact && /* @__PURE__ */ jsxs49("div", { className: "absolute right-space-sm top-space-sm z-10 flex items-center gap-space-2xs rounded-lg bg-surface-elevated/90 p-space-2xs shadow-sm", children: [
2810
- /* @__PURE__ */ jsx66(IconButton, { icon: "zoom_out", label: "Zoom out", size: "xs", variant: "secondary", disabled: zoom <= ZOOM_MIN, onClick: () => setZoom((z) => Math.max(ZOOM_MIN, z - ZOOM_STEP)) }),
2846
+ /* @__PURE__ */ jsx67(IconButton, { icon: "zoom_out", label: "Zoom out", size: "xs", variant: "secondary", disabled: zoom <= ZOOM_MIN, onClick: () => setZoom((z) => Math.max(ZOOM_MIN, z - ZOOM_STEP)) }),
2811
2847
  /* @__PURE__ */ jsxs49("span", { "aria-live": "polite", className: "w-10 text-center font-label-mono text-[11px] text-on-surface-variant", children: [
2812
2848
  Math.round(zoom * 100),
2813
2849
  "%"
2814
2850
  ] }),
2815
- /* @__PURE__ */ jsx66(IconButton, { icon: "zoom_in", label: "Zoom in", size: "xs", variant: "secondary", disabled: zoom >= ZOOM_MAX, onClick: () => setZoom((z) => Math.min(ZOOM_MAX, z + ZOOM_STEP)) }),
2816
- /* @__PURE__ */ jsx66(IconButton, { icon: "fit_screen", label: "Reset zoom", size: "xs", variant: "secondary", onClick: () => setZoom(1) })
2851
+ /* @__PURE__ */ jsx67(IconButton, { icon: "zoom_in", label: "Zoom in", size: "xs", variant: "secondary", disabled: zoom >= ZOOM_MAX, onClick: () => setZoom((z) => Math.min(ZOOM_MAX, z + ZOOM_STEP)) }),
2852
+ /* @__PURE__ */ jsx67(IconButton, { icon: "fit_screen", label: "Reset zoom", size: "xs", variant: "secondary", onClick: () => setZoom(1) })
2817
2853
  ] }),
2818
- /* @__PURE__ */ jsx66(
2854
+ /* @__PURE__ */ jsx67(
2819
2855
  "div",
2820
2856
  {
2821
2857
  ref: viewportRef,
@@ -2834,10 +2870,10 @@ function UmlDiagram({ label, nodes, edges, direction = "TB", zoomable = true, co
2834
2870
  children: [
2835
2871
  layout && /* @__PURE__ */ jsxs49("svg", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 overflow-visible text-on-surface-variant", width: layout.width, height: layout.height, children: [
2836
2872
  /* @__PURE__ */ jsxs49("defs", { children: [
2837
- /* @__PURE__ */ jsx66("marker", { id: `${id}-arrow`, viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "10", markerHeight: "10", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx66("path", { d: "M0,0 L10,5 L0,10", fill: "none", stroke: "currentColor", strokeWidth: "1.5" }) }),
2838
- /* @__PURE__ */ jsx66("marker", { id: `${id}-triangle`, viewBox: "0 0 12 12", refX: "12", refY: "6", markerWidth: "12", markerHeight: "12", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx66("path", { d: "M0,0 L12,6 L0,12 z", fill: "var(--color-surface-elevated)", stroke: "currentColor", strokeWidth: "1.5" }) }),
2839
- /* @__PURE__ */ jsx66("marker", { id: `${id}-diamond-hollow`, viewBox: "0 0 14 8", refX: "14", refY: "4", markerWidth: "14", markerHeight: "8", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx66("path", { d: "M0,4 L7,0 L14,4 L7,8 z", fill: "var(--color-surface-elevated)", stroke: "currentColor", strokeWidth: "1.5" }) }),
2840
- /* @__PURE__ */ jsx66("marker", { id: `${id}-diamond-filled`, viewBox: "0 0 14 8", refX: "14", refY: "4", markerWidth: "14", markerHeight: "8", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx66("path", { d: "M0,4 L7,0 L14,4 L7,8 z", fill: "currentColor", stroke: "currentColor", strokeWidth: "1.5" }) })
2873
+ /* @__PURE__ */ jsx67("marker", { id: `${id}-arrow`, viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "10", markerHeight: "10", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx67("path", { d: "M0,0 L10,5 L0,10", fill: "none", stroke: "currentColor", strokeWidth: "1.5" }) }),
2874
+ /* @__PURE__ */ jsx67("marker", { id: `${id}-triangle`, viewBox: "0 0 12 12", refX: "12", refY: "6", markerWidth: "12", markerHeight: "12", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx67("path", { d: "M0,0 L12,6 L0,12 z", fill: "var(--color-surface-elevated)", stroke: "currentColor", strokeWidth: "1.5" }) }),
2875
+ /* @__PURE__ */ jsx67("marker", { id: `${id}-diamond-hollow`, viewBox: "0 0 14 8", refX: "14", refY: "4", markerWidth: "14", markerHeight: "8", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx67("path", { d: "M0,4 L7,0 L14,4 L7,8 z", fill: "var(--color-surface-elevated)", stroke: "currentColor", strokeWidth: "1.5" }) }),
2876
+ /* @__PURE__ */ jsx67("marker", { id: `${id}-diamond-filled`, viewBox: "0 0 14 8", refX: "14", refY: "4", markerWidth: "14", markerHeight: "8", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx67("path", { d: "M0,4 L7,0 L14,4 L7,8 z", fill: "currentColor", stroke: "currentColor", strokeWidth: "1.5" }) })
2841
2877
  ] }),
2842
2878
  edges.map((e, i) => {
2843
2879
  const pts = layout.edges[i];
@@ -2846,7 +2882,7 @@ function UmlDiagram({ label, nodes, edges, direction = "TB", zoomable = true, co
2846
2882
  const d = pts.map((p, k) => `${k === 0 ? "M" : "L"}${p.x},${p.y}`).join(" ");
2847
2883
  const mid = pts[Math.floor(pts.length / 2)];
2848
2884
  return /* @__PURE__ */ jsxs49("g", { children: [
2849
- /* @__PURE__ */ jsx66(
2885
+ /* @__PURE__ */ jsx67(
2850
2886
  "path",
2851
2887
  {
2852
2888
  "data-edge": "",
@@ -2859,13 +2895,13 @@ function UmlDiagram({ label, nodes, edges, direction = "TB", zoomable = true, co
2859
2895
  markerStart: s.start
2860
2896
  }
2861
2897
  ),
2862
- e.label && /* @__PURE__ */ jsx66("text", { x: mid.x + 6, y: mid.y - 6, className: "fill-on-surface-variant font-code-inline text-[10px]", children: e.label }),
2863
- e.fromMultiplicity && /* @__PURE__ */ jsx66("text", { x: pts[0].x + 6, y: pts[0].y + 14, className: "fill-on-surface-variant font-code-inline text-[10px]", children: e.fromMultiplicity }),
2864
- e.toMultiplicity && /* @__PURE__ */ jsx66("text", { x: pts[pts.length - 1].x + 6, y: pts[pts.length - 1].y - 6, className: "fill-on-surface-variant font-code-inline text-[10px]", children: e.toMultiplicity })
2898
+ e.label && /* @__PURE__ */ jsx67("text", { x: mid.x + 6, y: mid.y - 6, className: "fill-on-surface-variant font-code-inline text-[10px]", children: e.label }),
2899
+ e.fromMultiplicity && /* @__PURE__ */ jsx67("text", { x: pts[0].x + 6, y: pts[0].y + 14, className: "fill-on-surface-variant font-code-inline text-[10px]", children: e.fromMultiplicity }),
2900
+ e.toMultiplicity && /* @__PURE__ */ jsx67("text", { x: pts[pts.length - 1].x + 6, y: pts[pts.length - 1].y - 6, className: "fill-on-surface-variant font-code-inline text-[10px]", children: e.toMultiplicity })
2865
2901
  ] }, i);
2866
2902
  })
2867
2903
  ] }),
2868
- nodes.map((n) => /* @__PURE__ */ jsx66(
2904
+ nodes.map((n) => /* @__PURE__ */ jsx67(
2869
2905
  "div",
2870
2906
  {
2871
2907
  "data-node": "",
@@ -2875,7 +2911,7 @@ function UmlDiagram({ label, nodes, edges, direction = "TB", zoomable = true, co
2875
2911
  },
2876
2912
  className: layout ? "absolute" : void 0,
2877
2913
  style: layout?.nodes[n.id] ? { left: layout.nodes[n.id].x, top: layout.nodes[n.id].y } : void 0,
2878
- children: /* @__PURE__ */ jsx66(UmlClass, { name: n.name, stereotype: n.stereotype, attributes: n.attributes, methods: n.methods, tag: n.tag, emphasis: n.emphasis, dashed: n.dashed, size: compact ? "sm" : "md" })
2914
+ children: /* @__PURE__ */ jsx67(UmlClass, { name: n.name, stereotype: n.stereotype, attributes: n.attributes, methods: n.methods, tag: n.tag, emphasis: n.emphasis, dashed: n.dashed, size: compact ? "sm" : "md" })
2879
2915
  },
2880
2916
  n.id
2881
2917
  ))
@@ -2893,20 +2929,20 @@ import {
2893
2929
  useEffect as useEffect8,
2894
2930
  useId as useId14,
2895
2931
  useLayoutEffect,
2896
- useRef as useRef12,
2932
+ useRef as useRef13,
2897
2933
  useState as useState10
2898
2934
  } from "react";
2899
- import { createPortal as createPortal3 } from "react-dom";
2900
- import { Fragment as Fragment6, jsx as jsx67, jsxs as jsxs50 } from "react/jsx-runtime";
2935
+ import { createPortal as createPortal4 } from "react-dom";
2936
+ import { Fragment as Fragment6, jsx as jsx68, jsxs as jsxs50 } from "react/jsx-runtime";
2901
2937
  var GAP2 = 8;
2902
2938
  function Tooltip({ content, children, side = "top", delay = 400 }) {
2903
2939
  const id = useId14();
2904
2940
  const theme = useThemeTone();
2905
2941
  const [open, setOpen] = useState10(false);
2906
2942
  const [pos, setPos] = useState10(null);
2907
- const triggerRef = useRef12(null);
2908
- const tipRef = useRef12(null);
2909
- const timer = useRef12(void 0);
2943
+ const triggerRef = useRef13(null);
2944
+ const tipRef = useRef13(null);
2945
+ const timer = useRef13(void 0);
2910
2946
  const show = () => {
2911
2947
  clearTimeout(timer.current);
2912
2948
  timer.current = setTimeout(() => setOpen(true), delay);
@@ -2970,8 +3006,8 @@ function Tooltip({ content, children, side = "top", delay = 400 }) {
2970
3006
  });
2971
3007
  return /* @__PURE__ */ jsxs50(Fragment6, { children: [
2972
3008
  trigger,
2973
- open && typeof document !== "undefined" && createPortal3(
2974
- /* @__PURE__ */ jsx67(
3009
+ open && typeof document !== "undefined" && createPortal4(
3010
+ /* @__PURE__ */ jsx68(
2975
3011
  "div",
2976
3012
  {
2977
3013
  ref: tipRef,
@@ -2990,7 +3026,7 @@ function Tooltip({ content, children, side = "top", delay = 400 }) {
2990
3026
 
2991
3027
  // src/components/Toast.tsx
2992
3028
  import { useEffect as useEffect9, useState as useState11, useSyncExternalStore } from "react";
2993
- import { jsx as jsx68, jsxs as jsxs51 } from "react/jsx-runtime";
3029
+ import { jsx as jsx69, jsxs as jsxs51 } from "react/jsx-runtime";
2994
3030
  var toasts = [];
2995
3031
  var nextId = 1;
2996
3032
  var listeners = /* @__PURE__ */ new Set();
@@ -3040,29 +3076,29 @@ function ToastItem({ toast }) {
3040
3076
  className: cx("pointer-events-auto flex min-w-0 items-start gap-space-sm rounded-lg border border-l-4 border-border-subtle bg-surface-elevated p-space-sm text-on-surface shadow-md", TONE15[toast.tone]),
3041
3077
  children: [
3042
3078
  /* @__PURE__ */ jsxs51("div", { className: "min-w-0 flex-1", children: [
3043
- /* @__PURE__ */ jsx68("p", { className: "font-body-md text-body-md font-semibold wrap-break-word", children: toast.title }),
3044
- toast.description && /* @__PURE__ */ jsx68("p", { className: "font-body-sm text-body-sm text-on-surface-variant wrap-break-word", children: toast.description }),
3045
- toast.action && /* @__PURE__ */ jsx68("div", { className: "mt-space-xs", children: toast.action })
3079
+ /* @__PURE__ */ jsx69("p", { className: "font-body-md text-body-md font-semibold wrap-break-word", children: toast.title }),
3080
+ toast.description && /* @__PURE__ */ jsx69("p", { className: "font-body-sm text-body-sm text-on-surface-variant wrap-break-word", children: toast.description }),
3081
+ toast.action && /* @__PURE__ */ jsx69("div", { className: "mt-space-xs", children: toast.action })
3046
3082
  ] }),
3047
- /* @__PURE__ */ jsx68(IconButton, { icon: "close", label: "Dismiss notification", size: "xs", onClick: () => toastStore.dismiss(toast.id) })
3083
+ /* @__PURE__ */ jsx69(IconButton, { icon: "close", label: "Dismiss notification", size: "xs", onClick: () => toastStore.dismiss(toast.id) })
3048
3084
  ]
3049
3085
  }
3050
3086
  );
3051
3087
  }
3052
3088
  function Toaster({ label = "Notifications" }) {
3053
3089
  const list = useSyncExternalStore(toastStore.subscribe, toastStore.get, () => EMPTY);
3054
- return /* @__PURE__ */ jsx68("section", { "aria-label": label, className: "pointer-events-none fixed inset-x-0 bottom-0 z-50 p-space-md md:inset-x-auto md:right-0 md:w-96", children: /* @__PURE__ */ jsx68("div", { "aria-live": "polite", "aria-relevant": "additions", children: /* @__PURE__ */ jsx68("ol", { className: "flex flex-col gap-space-xs", children: list.map((t) => /* @__PURE__ */ jsx68(ToastItem, { toast: t }, t.id)) }) }) });
3090
+ return /* @__PURE__ */ jsx69("section", { "aria-label": label, className: "pointer-events-none fixed inset-x-0 bottom-0 z-50 p-space-md md:inset-x-auto md:right-0 md:w-96", children: /* @__PURE__ */ jsx69("div", { "aria-live": "polite", "aria-relevant": "additions", children: /* @__PURE__ */ jsx69("ol", { className: "flex flex-col gap-space-xs", children: list.map((t) => /* @__PURE__ */ jsx69(ToastItem, { toast: t }, t.id)) }) }) });
3055
3091
  }
3056
3092
 
3057
3093
  // src/components/CommandPalette.tsx
3058
- import { useEffect as useEffect10, useId as useId15, useRef as useRef13, useState as useState12 } from "react";
3059
- import { createPortal as createPortal4 } from "react-dom";
3060
- import { jsx as jsx69, jsxs as jsxs52 } from "react/jsx-runtime";
3094
+ import { useEffect as useEffect10, useId as useId15, useRef as useRef14, useState as useState12 } from "react";
3095
+ import { createPortal as createPortal5 } from "react-dom";
3096
+ import { jsx as jsx70, jsxs as jsxs52 } from "react/jsx-runtime";
3061
3097
  function CommandPalette({ open, onClose, query, onQueryChange, groups, placeholder = "Search\u2026", emptyText = "No results", label = "Command palette", ...rest }) {
3062
3098
  const base = useId15();
3063
3099
  const theme = useThemeTone();
3064
- const panelRef = useRef13(null);
3065
- const inputRef = useRef13(null);
3100
+ const panelRef = useRef14(null);
3101
+ const inputRef = useRef14(null);
3066
3102
  const [activeId, setActiveId] = useState12(null);
3067
3103
  useModal({ open, onClose, panelRef, initialFocusRef: inputRef });
3068
3104
  const flat = groups.flatMap((g) => g.items);
@@ -3089,8 +3125,8 @@ function CommandPalette({ open, onClose, query, onQueryChange, groups, placehold
3089
3125
  };
3090
3126
  if (!open || typeof document === "undefined") return null;
3091
3127
  const listId = `${base}-list`;
3092
- return createPortal4(
3093
- /* @__PURE__ */ jsx69(
3128
+ return createPortal5(
3129
+ /* @__PURE__ */ jsx70(
3094
3130
  "div",
3095
3131
  {
3096
3132
  "data-theme": theme,
@@ -3110,8 +3146,8 @@ function CommandPalette({ open, onClose, query, onQueryChange, groups, placehold
3110
3146
  className: "flex max-h-[80vh] w-full min-w-0 max-w-xl flex-col overflow-hidden rounded-xl border border-border-subtle bg-surface-elevated text-on-surface shadow-md outline-none",
3111
3147
  children: [
3112
3148
  /* @__PURE__ */ jsxs52("div", { className: "flex items-center gap-space-sm border-b border-border-subtle px-space-md", children: [
3113
- /* @__PURE__ */ jsx69(Icon, { name: "search", tone: "muted" }),
3114
- /* @__PURE__ */ jsx69(
3149
+ /* @__PURE__ */ jsx70(Icon, { name: "search", tone: "muted" }),
3150
+ /* @__PURE__ */ jsx70(
3115
3151
  "input",
3116
3152
  {
3117
3153
  ref: inputRef,
@@ -3133,9 +3169,9 @@ function CommandPalette({ open, onClose, query, onQueryChange, groups, placehold
3133
3169
  )
3134
3170
  ] }),
3135
3171
  /* @__PURE__ */ jsxs52("div", { id: listId, role: "listbox", "aria-label": label, className: "min-h-0 flex-1 overflow-y-auto p-space-2xs", children: [
3136
- flat.length === 0 && /* @__PURE__ */ jsx69("p", { className: "px-space-sm py-space-md text-center font-body-sm text-body-sm text-on-surface-variant", children: emptyText }),
3172
+ flat.length === 0 && /* @__PURE__ */ jsx70("p", { className: "px-space-sm py-space-md text-center font-body-sm text-body-sm text-on-surface-variant", children: emptyText }),
3137
3173
  groups.map((g, gi) => /* @__PURE__ */ jsxs52("div", { role: "group", "aria-labelledby": `${base}-g${gi}`, children: [
3138
- /* @__PURE__ */ jsx69("p", { id: `${base}-g${gi}`, className: "px-space-sm pb-space-2xs pt-space-sm font-label-mono text-label-mono uppercase text-on-surface-variant", children: g.label }),
3174
+ /* @__PURE__ */ jsx70("p", { id: `${base}-g${gi}`, className: "px-space-sm pb-space-2xs pt-space-sm font-label-mono text-label-mono uppercase text-on-surface-variant", children: g.label }),
3139
3175
  g.items.map((item) => {
3140
3176
  const isActive = item === active;
3141
3177
  return /* @__PURE__ */ jsxs52(
@@ -3149,9 +3185,9 @@ function CommandPalette({ open, onClose, query, onQueryChange, groups, placehold
3149
3185
  onClick: () => select(item),
3150
3186
  className: cx("flex min-w-0 cursor-pointer items-center gap-space-sm rounded-lg px-space-sm py-space-xs font-body-md text-body-md max-md:min-h-11", isActive ? "bg-surface-muted text-ink" : "text-on-surface"),
3151
3187
  children: [
3152
- item.icon && /* @__PURE__ */ jsx69(Icon, { name: item.icon, size: "sm", tone: "muted" }),
3153
- /* @__PURE__ */ jsx69("span", { className: "min-w-0 flex-1 truncate", children: item.label }),
3154
- item.meta && /* @__PURE__ */ jsx69("span", { className: "shrink-0 font-label-mono text-label-mono text-on-surface-variant", children: item.meta })
3188
+ item.icon && /* @__PURE__ */ jsx70(Icon, { name: item.icon, size: "sm", tone: "muted" }),
3189
+ /* @__PURE__ */ jsx70("span", { className: "min-w-0 flex-1 truncate", children: item.label }),
3190
+ item.meta && /* @__PURE__ */ jsx70("span", { className: "shrink-0 font-label-mono text-label-mono text-on-surface-variant", children: item.meta })
3155
3191
  ]
3156
3192
  },
3157
3193
  item.id
@@ -3169,11 +3205,11 @@ function CommandPalette({ open, onClose, query, onQueryChange, groups, placehold
3169
3205
  }
3170
3206
 
3171
3207
  // src/primitives/Show.tsx
3172
- import { jsx as jsx70 } from "react/jsx-runtime";
3208
+ import { jsx as jsx71 } from "react/jsx-runtime";
3173
3209
  var ABOVE = { sm: "hidden sm:contents", md: "hidden md:contents", lg: "hidden lg:contents", xl: "hidden xl:contents", "2xl": "hidden 2xl:contents" };
3174
3210
  var BELOW = { sm: "contents sm:hidden", md: "contents md:hidden", lg: "contents lg:hidden", xl: "contents xl:hidden", "2xl": "contents 2xl:hidden" };
3175
3211
  function Show({ above, below, children, ...rest }) {
3176
- return /* @__PURE__ */ jsx70("div", { ...rest, className: cx(above && ABOVE[above], below && BELOW[below]), children });
3212
+ return /* @__PURE__ */ jsx71("div", { ...rest, className: cx(above && ABOVE[above], below && BELOW[below]), children });
3177
3213
  }
3178
3214
  export {
3179
3215
  AppBar,
@@ -3209,6 +3245,7 @@ export {
3209
3245
  EmptyState,
3210
3246
  Eyebrow,
3211
3247
  FileTree,
3248
+ FullScreen,
3212
3249
  Grid,
3213
3250
  GridItem,
3214
3251
  Heading,