@sdxc/kit 2026.10.30 → 2026.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/changelog.jsonl +89 -0
  2. package/dist/make/declare.js +32 -11
  3. package/package.json +2 -2
  4. package/registry/ui/accordion.json +2 -2
  5. package/registry/ui/alert-dialog.json +2 -2
  6. package/registry/ui/alert.json +2 -2
  7. package/registry/ui/aspect-ratio.json +2 -2
  8. package/registry/ui/avatar.json +6 -3
  9. package/registry/ui/badge.json +2 -2
  10. package/registry/ui/breadcrumbs.json +2 -2
  11. package/registry/ui/button.json +5 -3
  12. package/registry/ui/calendar.json +2 -2
  13. package/registry/ui/card.json +2 -2
  14. package/registry/ui/carousel.json +2 -2
  15. package/registry/ui/checkbox-group.json +2 -2
  16. package/registry/ui/checkbox.json +2 -2
  17. package/registry/ui/combobox.json +2 -2
  18. package/registry/ui/command.json +2 -2
  19. package/registry/ui/cta-group.json +2 -2
  20. package/registry/ui/date-field.json +2 -2
  21. package/registry/ui/date-picker.json +2 -2
  22. package/registry/ui/date-range-picker.json +2 -2
  23. package/registry/ui/description.json +2 -2
  24. package/registry/ui/dialog-dismiss.json +13 -0
  25. package/registry/ui/dialog.json +2 -2
  26. package/registry/ui/disclosure.json +2 -2
  27. package/registry/ui/drawer.json +2 -2
  28. package/registry/ui/field-error.json +2 -2
  29. package/registry/ui/form.json +2 -2
  30. package/registry/ui/group.json +2 -2
  31. package/registry/ui/header.json +2 -2
  32. package/registry/ui/heading-scope.json +2 -2
  33. package/registry/ui/heading.json +3 -3
  34. package/registry/ui/highlight.json +3 -3
  35. package/registry/ui/hover-card.json +2 -2
  36. package/registry/ui/image-placeholder.json +2 -2
  37. package/registry/ui/input.json +2 -2
  38. package/registry/ui/item.json +2 -2
  39. package/registry/ui/keyboard.json +2 -2
  40. package/registry/ui/label.json +2 -2
  41. package/registry/ui/link-button.json +5 -3
  42. package/registry/ui/link.json +2 -2
  43. package/registry/ui/listbox.json +2 -2
  44. package/registry/ui/menu.json +2 -2
  45. package/registry/ui/meter.json +2 -2
  46. package/registry/ui/modal.json +2 -2
  47. package/registry/ui/nav-link.json +2 -2
  48. package/registry/ui/navigation-menu.json +2 -2
  49. package/registry/ui/number-field.json +2 -2
  50. package/registry/ui/otp-field.json +2 -2
  51. package/registry/ui/overlay-arrow.json +2 -2
  52. package/registry/ui/pagination.json +2 -2
  53. package/registry/ui/popover.json +2 -2
  54. package/registry/ui/progress-bar.json +2 -2
  55. package/registry/ui/radio-group.json +2 -2
  56. package/registry/ui/range-calendar.json +2 -2
  57. package/registry/ui/scroll-area.json +2 -2
  58. package/registry/ui/search-field.json +2 -2
  59. package/registry/ui/section.json +2 -2
  60. package/registry/ui/select.json +2 -2
  61. package/registry/ui/selection-indicator.json +2 -2
  62. package/registry/ui/sentinel-row.json +2 -2
  63. package/registry/ui/separator.json +2 -2
  64. package/registry/ui/shared-element.json +2 -2
  65. package/registry/ui/sheet.json +2 -2
  66. package/registry/ui/sidebar.json +2 -2
  67. package/registry/ui/slider.json +2 -2
  68. package/registry/ui/spinner.json +2 -2
  69. package/registry/ui/switch.json +2 -2
  70. package/registry/ui/tabs.json +2 -2
  71. package/registry/ui/tag-group.json +2 -2
  72. package/registry/ui/text-field.json +2 -2
  73. package/registry/ui/text.json +2 -2
  74. package/registry/ui/textarea.json +2 -2
  75. package/registry/ui/time-field.json +2 -2
  76. package/registry/ui/toggle-button.json +2 -2
  77. package/registry/ui/tooltip.json +2 -2
  78. package/registry/ui/typeset.json +2 -2
  79. package/registry/ui/youtube-embed.json +2 -2
  80. package/stubs/scaffold.controller.index.stub +1 -1
  81. package/registry/ui/attachment.json +0 -15
  82. package/registry/ui/bubble.json +0 -13
  83. package/registry/ui/chart.json +0 -13
  84. package/registry/ui/color-area.json +0 -13
  85. package/registry/ui/color-field.json +0 -20
  86. package/registry/ui/color-picker.json +0 -17
  87. package/registry/ui/color-slider.json +0 -13
  88. package/registry/ui/color-swatch-picker.json +0 -15
  89. package/registry/ui/color-swatch.json +0 -13
  90. package/registry/ui/color-wheel.json +0 -13
  91. package/registry/ui/context-menu.json +0 -16
  92. package/registry/ui/drop-indicator.json +0 -13
  93. package/registry/ui/drop-zone.json +0 -13
  94. package/registry/ui/empty.json +0 -15
  95. package/registry/ui/feature.json +0 -18
  96. package/registry/ui/file-trigger.json +0 -13
  97. package/registry/ui/grid-list.json +0 -18
  98. package/registry/ui/logo-cloud.json +0 -16
  99. package/registry/ui/marker.json +0 -13
  100. package/registry/ui/marketing-header.json +0 -18
  101. package/registry/ui/marketing-section.json +0 -16
  102. package/registry/ui/menubar.json +0 -13
  103. package/registry/ui/message-scroller.json +0 -16
  104. package/registry/ui/message.json +0 -13
  105. package/registry/ui/resizable.json +0 -13
  106. package/registry/ui/shortcut-list.json +0 -18
  107. package/registry/ui/skeleton.json +0 -13
  108. package/registry/ui/split.json +0 -16
  109. package/registry/ui/stat-strip.json +0 -16
  110. package/registry/ui/table.json +0 -16
  111. package/registry/ui/toast.json +0 -16
  112. package/registry/ui/toolbar.json +0 -13
  113. package/registry/ui/tree.json +0 -18
package/changelog.jsonl CHANGED
@@ -1504,3 +1504,92 @@
1504
1504
  {"release":"2026.10.30","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Let marketing grids respond to their own container width","body":"StatStrip, Split, Bento, StepList and FaqBand declared a named container\non the same host that carried the `@container` column tracks, so the\nquery never matched and every layout stayed stacked. Move the tracks\nonto an inner wrapper (or a sizing wrapper around StepList's `<ol>`) so\nthe query styles a descendant of the sizing container.\n\n```tsx\n<StatStrip>\n <StatStrip.Item label=\"Packages\">141</StatStrip.Item>\n</StatStrip>\n```\n\nAbove `lg` the strip opens to five columns again; Split, Bento and the\nrest regain their wide tracks the same way."}
1505
1505
  {"release":"2026.10.30","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Restore marketing layout breakpoints to the landing thresholds","body":"When the site adapters moved onto @sdxc/ui container queries, Split and\nStatStrip opened their wide tracks at `lg` (48rem) and Feature.Grid at\n`md` (36rem). The landing originally used 64rem and 48rem viewport media\nqueries, so mid-width viewports got cramped five-up stats and side-by-side\nsplits too early. Map those tracks to `xl` / `lg` so the columns match the\npre-migration thresholds.\n\n```tsx\n// StatStrip / Split open wide tracks above xl (64rem)\n// Feature.Grid / frame rails open above lg (48rem)\n```\n\nNo consumer action needed; published marketing layouts regain the wider\nstacking range the landing was designed around."}
1506
1506
  {"release":"2026.10.30","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep framed MarketingSection rails the full band height","body":"Before, framed bands put block padding on the `<section>` while the\ndashed rails lived on the shorter measured column, so the side lines\nstopped above and below the content. Padding now shares the rail\ncolumn (with `flush` for strips that want zero gap), matching the\npre-migration framed band.\n\n```tsx\n<MarketingSection variant=\"frame\" spacing=\"hero\" ruled>\n {children}\n</MarketingSection>\n<MarketingSection variant=\"frame\" flush ruled>\n <StatStrip />\n</MarketingSection>\n```"}
1507
+ {"release":"2026.11.1","package":"@sdxc/get-client-ip","type":"feat","breaking":false,"title":"Read the client IP from any platform's header","body":"Groundwork for automatic client IP discovery on every platform, described in\nthe next `@sdxc/get-client-ip` note. No consumer action needed.","correctedIn":"2026.11.1"}
1508
+ {"release":"2026.11.1","package":"@sdxc/get-client-ip","type":"feat","breaking":false,"title":"Discover the client IP header on any platform","body":"`getClientIP(request)` and the `getClientIP()` middleware now find the client's\naddress on any platform with nothing to configure, and also accept a bare\n`Headers`:\n\n import { getClientIP } from \"@sdxc/get-client-ip\";\n\n let ip = getClientIP(request); // IP | null\n let same = getClientIP(request.headers);\n\nDiscovery lets a forged header cost a client its own address, never choose one:\n\n- On Cloudflare Workers, whose runtime marks the request with `cf`, only\n `CF-Connecting-IP` is read, as before.\n- Elsewhere, every single-address header the request carries must name the same\n address: `CF-Connecting-IP`, `Fly-Client-IP`, `Fastly-Client-IP`,\n `True-Client-IP`, `X-Azure-ClientIP`, `DO-Connecting-IP`, `Oxygen-Buyer-IP`,\n `X-Nf-Client-Connection-IP`, `X-AppEngine-User-IP`,\n `CloudFront-Viewer-Address` (its port dropped), `X-Envoy-External-Address`,\n `X-Real-IP`, `X-Client-IP` and `X-Cluster-Client-IP`. Disagreeing or\n malformed values read `null`.\n- Without any of those, the last entry of `Forwarded`, `X-Forwarded-For` or\n `X-Vercel-Forwarded-For` answers, which is the entry your proxy appended; the\n entries a client wrote on the left are ignored.\n\n`CLIENT_IP_HEADERS` and `FORWARDED_HEADERS` export both lists. Code running on\nCloudflare Workers needs no change. A test that builds a plain `Request` without\n`cf` and sets `X-Forwarded-For` now reads an address from it."}
1509
+ {"release":"2026.11.1","package":"@sdxc/highlight","type":"fix","breaking":false,"title":"Raise the light theme's keyword, orange and green tokens to 4.5:1","body":"The default light palette in `@sdxc/highlight/styles.css` painted three token roles below\nWCAG AA on a typical light code-block fill (`#f6f8fa`):\n\n- `--highlight-keyword` (and `operator`, which reads it): `#d73a49` → `#cf222e`\n- `--highlight-regex` (and `variable`): `#e36209` → `#bc4c00`\n- `--highlight-inserted`: `#22863a` → `#116329`\n\nEvery colour the stylesheet declares now reads at 4.5:1 or more on light and dark code\nblocks. The dark palette is unchanged. Consumers that override these properties are not\naffected; consumers on the defaults get the darker colours with no action needed."}
1510
+ {"release":"2026.11.1","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Map a new controller on a router built with typed createRouter","body":"`sdxc make controller` looked for the router initializer by matching a bare `createRouter(` call,\nso a router written as `createRouter<AppContext>({ … })` went unnoticed. The kit then fell back to\nthe first initializer that merely imports the route contract (for example an auth initializer\nthat reads `routes.callback`), failed to place the mapping there, and printed the declaration and\nmapping for you to add by hand in the wrong file.\n\nBefore: in an app whose router initializer calls `createRouter<AppContext>(…)`, `make controller`\nprinted \"Declare and map it by hand\" and pointed at an unrelated initializer.\n\nAfter: the kit recognizes `createRouter` with or without type arguments, prefers an initializer\nthat already calls `router.map(routes.…)` over one that only imports the contract, and declares\nand maps the route itself in the router initializer.\n\nA route whose pattern ends in a file name, such as `--path /robots.txt` or `/feed.xml`, now gets\n`false` as its sitemap decision instead of `true`, since crawlers read it by name rather than as a\npage. No action is needed; rerun `sdxc make controller` for routes you mapped by hand before."}
1511
+ {"release":"2026.11.1","package":"@sdxc/kit","type":"fix","breaking":false,"title":"Import Table from @sdxc/ui/app in the scaffold's index page","body":"`sdxc make scaffold` wrote an index page importing `Table` from `@sdxc/ui/table`, which no\nlonger exists now that `Table` ships from the `@sdxc/ui/app` namespace. The generated page now\nimports it from `@sdxc/ui/app/table`, so a new scaffold type checks against the current\n`@sdxc/ui`. A page generated earlier needs the same one-line change:"}
1512
+ {"release":"2026.11.1","package":"@sdxc/mail","type":"chore","breaking":false,"title":"Import Empty from @sdxc/ui/app in the email previews","body":"The email preview index imports `Empty` from the `@sdxc/ui/app` namespace it now ships from.\nNo change for users of `@sdxc/mail`."}
1513
+ {"release":"2026.11.1","package":"@sdxc/u","type":"feat","breaking":false,"title":"Lift dark tints, separate body from muted text and quiet dark borders","body":"In dark mode the neutral tokens now give three distinct levels instead of collapsing onto the page:\n\n- `--ui-neutral-fg` moves from neutral-400 to neutral-300, so body copy reads brighter than `--ui-neutral-fg-muted` (still neutral-400), where both were identical before.\n- `--ui-neutral-bg-tint` moves from neutral-950 (the page colour) to a 50/50 mix of neutral-950 and neutral-900, so a tinted surface (code block, card, panel) sits one step above the page.\n- `--ui-neutral-border` moves from the opaque neutral-700 to `color-mix(in oklch, white 10%, transparent)`, a hairline that takes the tone of whatever sits behind it instead of a bright grey line.\n- `--ui-bg` is now pinned to neutral-950 in both dark blocks, so the page background does not move with the tint.\n\nLight mode is unchanged. No action is needed: an app that defines the standard `--ui-color-neutral-*` palette picks this up as is. An app that compared `--ui-neutral-bg-tint` against text as \"the page colour\" in dark should read `--ui-bg` instead."}
1514
+ {"release":"2026.11.1","package":"@sdxc/u","type":"fix","breaking":false,"title":"Raise muted text to 4.5:1 on white and tinted surfaces","body":"`--ui-neutral-fg-muted` pointed at the 500 step, which reads at about 3.5:1 on white\nand lower on a tinted band, so eyebrows, notes, captions and meta lines failed WCAG AA.\nIn light it is now `color-mix(in oklch, var(--ui-color-neutral-600) 85%,\nvar(--ui-color-neutral-500))`: about 5:1 on white and 4.7:1 on the 100 step, still a\nshade lighter than `--ui-neutral-fg`. Dark mode keeps the 400 step.\n\nNo action needed; an app that re-declares `--ui-neutral-fg-muted` keeps its own value."}
1515
+ {"release":"2026.11.1","package":"@sdxc/u","type":"feat","breaking":false,"title":"Add mergeMix so a caller's mix overrides a component's own utilities","body":"`mergeMix(base, mix)` applies a caller's `mix` on top of a component's own\nmixins. Classes from separate utilities on one element resolve by the order\nthe page first uses each class, so a caller's `text(\"xs\")` could lose to a\ncomponent's `text(\"sm\")` depending on what else the page rendered. mergeMix\nrenders the utilities of both as one class, with the caller's in a later\ncascade sublayer, so the caller's value wins on any property both set,\nwhatever selector the component nests its own rule under. Other mixins\n(`css()`, `attrs()`, event and behavior mixins) apply unchanged, and when\n`mix` carries no utility, `base` renders exactly as it would alone.\n\nUse it in a component that forwards its caller's `mix`:\n\n import { mergeMix } from \"@sdxc/u/general\";\n import { fg } from \"@sdxc/u/color\";\n import { text } from \"@sdxc/u/typography\";\n\n function Caption(handle: Handle<TagProps<\"span\">>) {\n return () => {\n let { mix, ...rest } = handle.props;\n return <span {...rest} mix={mergeMix([fg(\"neutral\"), text(\"sm\")], mix)} />;\n };\n }\n\n <Caption mix={text(\"xs\")}>…</Caption> // renders extra-small text\n\n`combine` remains exported from `@sdxc/u` and `@sdxc/u/general`."}
1516
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep marketing bands legible and laid out inside centered bands","body":"Four layout fixes for the marketing primitives and landing patterns.\nNo consumer action is needed; existing markup renders correctly.\n\n- `StatStrip` inside `ProofStrip` collapsed to zero width, so every\n figure and label drew on top of each other. The strip now fills its\n parent's inline size, and `ProofStrip`'s column fills the band, so\n the cells get real tracks.\n- The eyebrow on `MarketingHeader` and `LandingHero` stretched across\n the whole column when start-aligned. It now keeps its own width.\n- `marketingBandTone(\"inverse\")` (the default for `ClosingCta`) painted\n a dark fill but left headings and lead copy on the dark neutral text\n tokens, so the title was invisible. The inverse band now re-points\n `--ui-neutral-fg-emphasis`, `--ui-neutral-fg`, `--ui-neutral-fg-muted`,\n `--ui-neutral-border` and `--ui-neutral-bg-tint` at the on-solid\n foreground, so anything placed in it stays readable.\n- A two-column `FaqBand` stacked on a narrow band left a 2rem gap\n between the columns; stacked columns now read as one list, and the\n column gap still applies side by side."}
1517
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Make data-not-typeset opt a subtree out of every Typeset style","body":"Before, an element marked `data-not-typeset` inside `Typeset` still got\nmost of the prose styles: links stayed brand-colored and underlined,\nlists kept their prose indent, headings their prose sizes. The opt-out\nreset only the rules it shared a cascade layer with, and each Typeset\nrule renders in a layer of its own.\n\nEvery Typeset rule now skips elements inside a `data-not-typeset`\nsubtree, so an embedded widget, demo or frame draws exactly as it does\noutside the article:\n\n```tsx\n<Typeset>\n\t<p>{t(\"docs.intro\")}</p>\n\t<div data-not-typeset>\n\t\t<EmbeddedWidget />\n\t</div>\n</Typeset>\n```\n\nNo consumer action is needed; markup that already uses the attribute\nnow gets the behavior it was documented to have."}
1518
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":true,"title":"Raise marketing bands to production landing quality","body":"Landing bands now follow the type, spacing, surface and CTA conventions of production landing templates. Several defaults and props change.\n\nNew:\n- Fluid tokens: headline `clamp(2.625rem, …, var(--ui-marketing-display-max, 4.5rem))` with leading tied to size, chapter `clamp(1.75rem, …, 3rem)` (always 2/3 of the headline), section spacing `normal` 5→7.5rem, `compact` 3→4.5rem, `hero` 3.5→8rem, and a new `cta` step 5→7rem, all fluid in the band's width (`cqi`).\n- Surfaces: `--ui-surface-raised`, `--ui-shadow-surface`, `--ui-shadow-stage`, `--ui-shadow-control`, `--ui-marketing-radius-surface`, `--ui-marketing-hairline`, and `marketingSurface()` / `marketingEmphasis()` from `@sdxc/ui/styles`. A `<strong>` inside a lead or description draws in the heading ink.\n- `Button` / `LinkButton` `variant=\"surface\"`; `CtaGroup size` (md, 40px, handed to buttons without a size) and `stack=\"phone\"`.\n- `MarketingSection` tones `brand` and `gradient` (`--ui-marketing-band-gradient`), `inset`, `spacing=\"cta\"`.\n- `MarketingHeader` / `LandingHero` `eyebrowHref`, `eyebrowIndex`; `LandingHero` `note`, `proof`, `backdrop`; `marketingSlowSpin()`.\n- `ProductFrame` `stage`, `shadow=\"tinted\"`, `footer`, `lights=\"color\"`; `Split.Media bleed=\"end\"`; `AccentText variant=\"swash\" | \"highlight\"`; `CodeStage variant=\"slab\"`, `lineNumbers`.\n- `Bento` / `Feature.Grid` `variant=\"cards\" | \"mosaic\"`, `Bento.Media`, `Feature.Media`, `Bento.Title size=\"lg\"`; `IconWell` / `Feature.Icon` `tone`.\n- `LogoCloud layout=\"row\" | \"spread\" | \"grid\"` and `label`.\n- `TabbedStage orientation=\"vertical\"`, `StepList variant=\"timeline\"` (`meta`, `media`), `FeatureBand layout=\"stage\" | \"timeline\"`.\n\n <FeatureBand layout=\"stage\" id=\"how\" title=\"From probe to page\">\n <TabbedStage.Item value=\"probe\" label=\"Probe\" description=\"…\" defaultChecked>{shot}</TabbedStage.Item>\n </FeatureBand>\n\nFixed:\n- A CTA's `--ui-marketing-cta-radius` lost to the button's own radius depending on stylesheet order; `Button` and `LinkButton` now read `--ui-button-radius`, which `marketingCtaChrome()` sets.\n- `StatStrip` left an odd last figure alone on a row; it now spans the row on phones and sets every figure on one row from the `lg` container.\n- `marketingLead()` used the muted ink (about 3.5:1); it now uses `--ui-neutral-fg` (about 5.3:1) on a 2rem line.\n- On a dark page an `inverse` band painted a near-white slab; it now renders as a raised surface with hairlines.\n\nBreaking — migrate as follows:\n- `MarketingHeader eyebrowVariant=\"chip\"` is removed; the looks are `mono` (default, was `pill`), `quiet`, `soft`, `pill`, `numbered`. Before: `<MarketingHeader eyebrow=\"Beta\" eyebrowVariant=\"chip\">`. After: `<MarketingHeader eyebrow=\"Beta\" eyebrowVariant=\"pill\">`. Pass `eyebrowVariant=\"pill\"` to keep the old default.\n- `LandingHero` defaults to `mediaPlacement=\"below\"` (was `\"end\"`) and `eyebrowVariant=\"quiet\"` (was `\"pill\"`). Before: `<LandingHero media={shot} />` rendered beside the copy. After: pass `mediaPlacement=\"end\"` to keep it there.\n- `AnnouncementChip variant=\"rim\"` is removed; variants are the eyebrow looks plus `special`, default `quiet`. Before: `<AnnouncementChip>`. After: `<AnnouncementChip variant=\"pill\">` for the old brand look.\n- `Bento` and `Feature.Grid` default to separate cards; pass `variant=\"mosaic\"` for the hairline grid. `IconWell` and `Feature.Icon` default to a quiet tile; pass `tone=\"brand\"` for the brand well.\n- `LogoCloud` marks are 1.75rem (2.25rem from `lg`) at full ink with no opacity; set `--ui-marketing-logo-height` to keep them smaller.\n- `ProductFrame lights` dots are neutral; pass `lights=\"color\"` for red, amber and green.\n- `Split` goes two-column at the `lg` container (48rem, was `xl`).\n- Neutral outline and ghost buttons draw their label in `--ui-neutral-fg-emphasis`.\n- Token renames: `--ui-marketing-display-leading` no longer has a theme value (leading is computed from size); `--ui-marketing-chapter-size`, `--ui-marketing-section-space*` and `--ui-marketing-logo-height` have new defaults. An app overriding them keeps its values."}
1519
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add PricingBand and TestimonialBand landing patterns","body":"Two new bands in `@sdxc/ui/patterns` for the pricing and social-proof sections most landings carry.\n\n`PricingBand` lays `PricingBand.Plan` cards one, two, then `columns` (2 or 3) across. A plan takes `name`, `price`, `period`, `description`, `features` (`CheckRow` items), `action`, `badge` and `featured`; the featured plan inverts, carries a lift, and moves first on phones. Actions line up at the foot of every card.\n\n <PricingBand title=\"Priced by monitor, not seat\">\n <PricingBand.Plan name=\"Team\" price=\"$29\" period=\"/month\" featured\n features={<><CheckRow>50 monitors</CheckRow><CheckRow>30-second checks</CheckRow></>}\n action={<LinkButton href=\"/signup?plan=team\" color=\"brand\">Start trial</LinkButton>} />\n </PricingBand>\n\n`TestimonialBand` sets `TestimonialBand.Quote` cards (`name`, `jobTitle`, `avatar`, quote as children) in masonry columns: one, two, then `columns` (default 3)."}
1520
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Highlight CodeStage code, add file tabs and keep tab indentation with line numbers","body":"`CodeStage` takes a `language` prop and highlights string content with\n`@sdxc/highlight`, which `@sdxc/ui` now depends on. Tokens render as\n`<span class=\"token keyword\">…`, the same class contract the\n`@sdxc/highlight/styles.css` stylesheet colors, and each one also carries\n`var(--highlight-<type>)` with a light/dark fallback, so code reads in color\non a page that never loaded that stylesheet. The terminal and slab panels\nre-point the token properties at the palette that reads on them.\n\n <CodeStage title=\"track-usage.ts\" language=\"ts\" lineNumbers>\n {source}\n </CodeStage>\n\nA `tabs` prop shows several files behind header tabs, switched by a radio\ngroup with no JavaScript. The first file is selected, panels share one grid\ncell so the stage keeps the tallest file's height, and `name` sets the radio\ngroup name (an id unique to the stage by default).\n\n <CodeStage\n lineNumbers\n tabs={[\n { label: \"worker.ts\", content: worker, language: \"ts\" },\n { label: \"wrangler.jsonc\", content: config, language: \"jsonc\" },\n ]}\n />\n\n`children` is optional now, since a tabbed stage has none.\n\nFixes, with no action needed from consumers:\n\n- A tab-led line with `lineNumbers` indented about 4px; it now indents a\n full tab width (`tab-size: 4`) from the code column.\n- Gutter numbers drew at 40% ink; they now draw at 60% (4.5:1 or better on\n every variant, light and dark), right-aligned behind a hairline, with one\n width for every line once the stage reaches 10 lines.\n- The header is 40px in every variant with the title (now 12px) centred and\n starting on the code's column, gutter included. Code is set at 13px/1.6;\n the slab keeps 13px on 24px.\n- A long line scrolls inside the stage at any width instead of widening a\n grid column or the page.\n- The stage takes its content's height, so beside taller copy in a split\n row it sits at the top instead of stretching to fill the row."}
1521
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":true,"title":"Give composed landing pages one h1, h2 bands and h3 cards","body":"Composing `LandingHero`, the band patterns and hand-built `MarketingSection` bands now\nyields a sequential outline with no `HeadingScope` placed by hand: the hero renders the\npage's `<h1>`, every band titles at `<h2>`, and cards inside a band (`Feature.Grid`,\n`Bento`, `StepList`, `PricingBand` plans) at `<h3>`.\n\nBefore, the outline depended on how many scopes a page wrapped around its bands: none\ngave every band an `<h1>`, two demoted the hero to `<h2>`, and `Bento` cells ranked equal\nto their band title.\n\n- `MarketingSection` takes `level` and otherwise titles one below the enclosing band, else\n one below the ambient `HeadingScope`, else `2`.\n- `LandingHero` takes `level` and otherwise titles at the ambient scope's level, else `1`.\n- `Feature.Grid`, `Bento` and `StepList` render their cell titles one level below their\n surroundings.\n\nMigration: remove any `HeadingScope` you placed directly inside a `MarketingSection`, and\nthe inner one of two nested page-level scopes.\n\nBefore:\n\n <HeadingScope>\n \t<LandingHero title=\"…\" />\n \t<HeadingScope>\n \t\t<MarketingSection>\n \t\t\t<HeadingScope><MarketingHeader>Platform</MarketingHeader></HeadingScope>\n \t\t</MarketingSection>\n \t</HeadingScope>\n </HeadingScope>\n\nAfter:\n\n <LandingHero title=\"…\" />\n <MarketingSection>\n \t<MarketingHeader>Platform</MarketingHeader>\n </MarketingSection>\n\nA landing nested under an existing heading wraps itself in one `HeadingScope` at that\nheading's level (`<HeadingScope level={3}>`), and every heading shifts with it. Sizes are\nunchanged."}
1522
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add a SiteHeader pattern with mega panels and a phone sheet","body":"`SiteHeader` from `@sdxc/ui/patterns` is the sticky top bar of a marketing site.\nIt is transparent at the top of the page and fills with a blurred page color and\na hairline once the page scrolls under it. `variant=\"floating\"` holds it off the\nedges as a rounded bar that gains a shadow instead.\n\nLinks are data, so the header draws each one twice. A plain link sits in the bar\non wide screens. A group with `columns` opens a full-width mega panel through the\nPopover API, anchored under the bar, with titled columns of links, optional icons\nand descriptions, and a closing link. Below `collapseAt` (`\"xl\"` by default, or\n`\"lg\"`) everything moves into a full-screen `<dialog>` behind a menu button. Groups\nbecome disclosures, every row is at least 44px tall, and `actions` and `cta` repeat\nas full-width buttons at its foot. The primary `cta` stays in the bar at every\nwidth. Panels and the sheet open and close with invoker commands and no script.\n\n <SiteHeader\n \tbrand={<a href=\"/\" aria-label=\"Beacon home\"><BeaconLogo /></a>}\n \titems={[\n \t\t{ label: \"Product\", columns: [{ title: \"Monitor\", links: [{ label: \"Uptime\", href: \"/uptime\" }] }] },\n \t\t{ label: \"Pricing\", href: \"/pricing\" },\n \t]}\n \tactions={[{ label: \"Log in\", href: \"/login\" }]}\n \tcta={{ label: \"Start free\", href: \"/signup\" }}\n />\n\nOn a one-page site whose links are in-page anchors, pass a client island through\n`sheet` that closes the dialog when a link is followed."}
1523
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add a SiteFooter pattern with columns, newsletter, social and legal rows","body":"`SiteFooter` from `@sdxc/ui/patterns` closes a marketing page. It has a brand block\nwith a short tagline, titled link columns, an optional newsletter slot, a bottom row\nwith legal text and social icons, and an optional full-width brand wordmark that sits\non the page edge.\n\nThe footer picks its columns per row from the number of columns at each container\nstep, so 2 to 6 columns never leave a short last row. Links have no underline at\nrest. Tap targets are 44px on phones, and column titles nest one level under a\nvisually hidden \"Footer\" heading.\n\n <SiteFooter\n \tbrand={<a href=\"/\" aria-label=\"Keel home\"><KeelLogo /></a>}\n \ttagline=\"Usage-based billing for API companies.\"\n \tcolumns={[{ title: \"Product\", links: [{ label: \"Pricing\", href: \"/pricing\" }] }]}\n \tnewsletter={<NewsletterForm />}\n \tsocial={<a href=\"/rss.xml\" aria-label=\"RSS\"><RssIcon /></a>}\n \tlegal={<p>© 2026 Keel, Inc.</p>}\n \twordmark={<KeelWordmark />}\n />\n\n`newsletterPlacement=\"band\"` moves the newsletter into a band above the columns."}
1524
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add Marquee, RotatingText, MotionLoop and the entrance() animation","body":"Four motion pieces for landing pages. Each runs only when the visitor allows\nmotion, and every loop carries a pause toggle that works without script.\n\n- `Marquee` (`@sdxc/ui/patterns`) scrolls its children endlessly under edge-fade\n masks. It stops on hover, focus or its pause toggle. Under reduced motion it\n becomes a still, centered row that wraps. Image and SVG children take the\n marketing logo height.\n- `RotatingText` cycles a word inside a headline. Its box is as wide as the widest\n word, so the line never reflows. It settles on the first word after\n `iterations` passes (2 by default), and screen readers hear every alternative.\n- `MotionLoop` wraps any loop longer than five seconds and adds a corner toggle\n that pauses every animation inside it, pseudo-elements included.\n- `entrance({ order, kind })` (`@sdxc/ui/animations`) is a one-time load\n animation for hero parts. Copy rises 8px in 70ms steps; media settles from 98%\n scale 200ms later."}
1525
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add SponsorWall, AuthorBand and Curriculum patterns","body":"Three proof-and-people bands for `@sdxc/ui/patterns`.\n\n- `SponsorWall` stacks `SponsorWall.Tier`s (`size` `\"xl\"` to `\"sm\"`), each a mono\n label over a ruled grid whose cells and logos shrink per tier. Columns follow the\n mark count, so the last row always reaches both edges. `SponsorWall.Individuals`\n adds a cloud of `SponsorWall.Person` avatars, grayscale until hover or focus, and\n `actions` closes the wall.\n- `AuthorBand` sets a 3:4 portrait beside the author's statement. It can add\n credentials, 44px social links, a signature, and an intro-video card with the\n runtime in its caption.\n- `Curriculum` lists `Curriculum.Part`s of `Curriculum.Lesson`s. Each lesson is a\n `<details>` row with a mono number, a title, meta at the inline end, and an\n optional badge such as \"Free\". A `summary` slot above the parts holds totals.\n `layout=\"stack\"` puts long courses in one column.\n\n <SponsorWall actions={<LinkButton href=\"/sponsor\">Become a sponsor</LinkButton>}>\n \t<SponsorWall.Tier label=\"Gold partners\" size=\"xl\">{gold}</SponsorWall.Tier>\n \t<SponsorWall.Individuals label=\"Individual backers\">{people}</SponsorWall.Individuals>\n </SponsorWall>\n\n <AuthorBand portrait={<img src={portrait} alt=\"Odile Varga\" />} title=\"Written by a type designer\" name=\"Odile Varga\" jobTitle=\"Type designer\" />"}
1526
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add ChangelogStrip, Rails, Crosshair and SegmentedStage patterns","body":"Four signature modules for `@sdxc/ui/patterns`. This release also exports every new\nlanding pattern from `@sdxc/ui/patterns`: `SiteHeader`, `SiteFooter`, `Marquee`,\n`RotatingText`, `MotionLoop`, `SponsorWall`, `AuthorBand` and `Curriculum`.\n\n- `ChangelogStrip` lists recent releases on one ruled line. Each\n `ChangelogStrip.Entry` has a dot on the rule, a mono date, a title and a\n two-line body, and can be a link. The entry count picks the columns; on\n phones the strip scrolls and snaps inside itself.\n- `Rails` frames the content column with hairline rails from the `md` container\n up. Its copy stays aligned with neighbouring `MarketingSection` bands, and\n `marks=\"corners\"` places `Crosshair` \"+\" marks where the rule meets the rails.\n- `Crosshair` draws one 11px or 21px \"+\" centered on a logical corner, so it\n mirrors on right-to-left pages.\n- `SegmentedStage` puts a pill switcher over a stage of panels, switched by native\n radios with no script. It holds the tallest panel's height, so the page never\n jumps. Use it as `LandingHero` media to show several product views.\n\n <ChangelogStrip title=\"Changelog\" action={<a href=\"/changelog\">View all →</a>}>\n \t<ChangelogStrip.Entry dateTime=\"2026-10-28\" date=\"Oct 28, 2026\" title=\"Custom domains\" href=\"/changelog/domains\">\n \t\tPoint status.yourcompany.com at your status page.\n \t</ChangelogStrip.Entry>\n </ChangelogStrip>"}
1527
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep a TabbedStage at one height on every tab","body":"Before, a TabbedStage laid out only the selected panel, so switching tabs\nchanged the stage's height and moved everything below it (up to 170px on a\nphone). Now every panel shares one stage cell and unselected panels are\nhidden with `visibility: hidden`, so the stage always takes the tallest\npanel's height. Hidden panels stay out of focus order and the accessibility\ntree.\n\n- Horizontal stages keep their wrapping pill row; the panels share one line\n under it.\n- Vertical stages keep the rail beside a sticky stage from the `lg`\n container up. Below it, the stage now sits under the whole rail instead of\n under the selected item, so selecting an item only toggles its\n description.\n\nNo action needed. A shorter panel now shows empty space under it, at the\nbottom of the stage; give panels similar heights if that gap matters."}
1528
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Crop or scale a ProductFrame's desktop UI on phones","body":"A ProductFrame can now keep a desktop composition on a narrow screen instead\nof reflowing and truncating it. Pass `designWidth` with the narrowest width\nthe framed UI lays out at; a narrower body crops the UI at its end edge\nunder a 2rem fade, or with `fit=\"scale\"` zooms it down to fit.\n\n <ProductFrame stage=\"backdrop\" lights title=\"Revenue\" designWidth=\"56rem\">\n <RevenueBoard />\n </ProductFrame>\n\n <ProductFrame designWidth=\"48rem\" fit=\"scale\">{dashboard}</ProductFrame>\n\nTwo fixes ship with it, with no action needed:\n\n- The chrome bar truncated the URL even with room to spare, because the\n title group and the URL shrank together. The title group now takes the\n remaining space and the URL keeps its full width up to half the bar.\n- Below the `md` container, a staged frame now fills the stage width\n (instead of 86%) on a 0.75rem pad, so a phone spends its width on the\n product."}
1529
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep LandingHero's stacked copy and media inside the band","body":"Before, wide media under the hero's copy could push both the copy and the\nmedia wider than the band on a phone: the columns took the media's\nmin-content width, so the lead and the CTAs were cut off at both edges and\nthe band scrolled sideways. The stacked copy and media columns now fill the\nband and shrink with it, so wide media stays inside the gutter and clips or\ncrops inside its own frame.\n\nThe note under the actions also wraps with `text-wrap: pretty`, so it no\nlonger ends on a single word.\n\nNo action needed."}
1530
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep band copy legible in dark and align inset bands to the content frame","body":"Brand and inverse bands, eyebrows and inset panels now hold contrast and edges at every\nwidth and in both schemes.\n\n- Brand bands paint the 700 step (override with `--ui-marketing-brand-band`) and set\n their lead and labels at 92% and 78% of the on-solid ink, so both clear 4.5:1. Before,\n white at 80% and 66% on the 600 step measured 3.8–4.4:1 in light.\n- In dark, a brand band's tokens apply to its whole subtree. Before, the dark theme's\n per-element tokens replaced them and the lead fell to about 2.8:1.\n- Brand and inverse bands re-point `--ui-marketing-eyebrow-color` at their own muted ink,\n so a page's brand eyebrow colour no longer lands on a dark fill (3.2:1 before).\n- New `themeScope()` mixin: put it on the element that re-declares a\n `--ui-color-neutral-*` scale so raised surfaces and hairlines take that palette's hue\n in dark: `<div style={palette} mix={[themeScope()]}>…</div>`.\n- Inset bands cap at the content measure plus 4rem a side and centre, and their copy\n starts on the same edge as the bands around them at every width (8px off before).\n- Band block padding rounds to whole pixels, so hairlines stay crisp.\n- Pill eyebrows and AnnouncementChip round at 1rem, so a label that wraps on a phone\n reads as a soft card rather than a lozenge; the numbered eyebrow draws its index at\n full ink.\n- `marketingCtaChrome()` transitions only `background-color, box-shadow, color`.\n\nNo action needed. Pages that set `--ui-marketing-eyebrow-color` keep it outside solid\nbands."}
1531
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Set the hero lead at 17px on phones and 20px wide","body":"`LandingHero`'s lead read at 20/32px on a phone and 24/32px wide, a step larger than\nreference landings (16–18px), so a three-sentence lead ran five lines on a 375px screen\nand pushed the actions below the fold. `--ui-marketing-hero-lead-size` is now\n`clamp(1.0625rem, 0.98rem + 0.4cqi, 1.25rem)`, and the hero lead takes a proportional\n`--ui-marketing-hero-lead-leading` (1.55): about 17/26px on a phone and 20/31px wide.\nBand leads are unchanged.\n\nNo action needed; set either token to keep the previous size."}
1532
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep StatStrip labels on the same edge as their figures","body":"Inside a centred band (ProofStrip, or a MarketingSection with\n`align=\"center\"`), a StatStrip label that wrapped used to centre its\nlines under a left-aligned figure. Each cell now sets its own text\nalignment, so the figure and every line of its label share one edge,\nwhatever alignment the band sets.\n\nThe new `align` prop picks that edge: `\"start\"` (the default) or\n`\"center\"`, which centres the figure and label together.\n\n <ProofStrip>\n <StatStrip align=\"center\">\n <StatStrip.Item label=\"Readers since the first edition\">18,400</StatStrip.Item>\n </StatStrip>\n </ProofStrip>\n\nFigures now always use tabular digits. A new `size=\"display\"` draws\nthem as a fluid headline numeral, from 2.5rem to 4.5rem with the\nstrip's width, for a strip that leads its band:\n\n <StatStrip size=\"display\">…</StatStrip>\n\nNo action is needed: existing strips keep their start edge, and their\nwrapped labels now line up under the figure."}
1533
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Put a split FeatureBand's header beside its media and centre the columns","body":"A `FeatureBand layout=\"split\"` with media drew its header across the full band and the\nsplit under it, so a short copy column sat top-aligned beside tall media with a large\ngap under it, and the header, copy and media edges matched nothing. The header now\nopens the copy column, so heading, lead, copy and media share one two-column grid on\nthe content frame. `Split` centres its columns on each other from the `lg` container,\nso a short column sits level with a tall one. On phones the order stays header, copy,\nthen media. Heading levels are unchanged.\n\nNo action needed. A band that wants a full-width header over two columns composes\n`MarketingSection`, `MarketingHeader` and `Split` itself."}
1534
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Let a page restyle CTAs, eyebrows, tints, frames and accents with tokens","body":"A landing can now change every look a designer varies by setting custom properties once\non its root, with no component props:\n\n <main style={{\n \"--ui-marketing-cta-radius\": \"2px\",\n \"--ui-marketing-cta-height\": \"48px\",\n \"--ui-marketing-eyebrow-font\": \"var(--ui-font-display)\",\n \"--ui-marketing-eyebrow-transform\": \"none\",\n \"--ui-marketing-band-tint\": \"oklch(0.97 0.02 80)\",\n \"--ui-marketing-band-glow\": \"none\",\n \"--ui-marketing-radius-frame\": \"4px\",\n \"--ui-marketing-accent-color\": \"var(--ui-color-danger-600)\",\n }}>\n\nNew tokens:\n- `--ui-marketing-cta-height`: minimum height of every `marketingCtaChrome()` control.\n- `--ui-marketing-eyebrow-font`, `-weight`, `-transform` and `-tracking`: face, weight,\n case and tracking of the mono eyebrow, alongside the existing `-color`.\n- `--ui-marketing-band-tint`, `-tint-dark` and `--ui-marketing-band-glow`: a tinted band's\n fill in each scheme and its corner glow (`none` drops it).\n- `--ui-marketing-radius-frame`: corner radius of ProductFrame windows, CodeStage panels\n and TabbedStage pill panels.\n- `--ui-marketing-accent-color`: ink of `AccentText`.\n\nDefaults match the previous look, so no action is needed."}
1535
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep marketing CTAs at their button size when no CTA height is set","body":"`marketingCtaChrome()` set `min-block-size: 0` when `--ui-marketing-cta-height` was unset,\nwhich removed the button's own minimum and drew a 40px CTA at 38px. The token now\ndrives `block-size` with an `auto` fallback, so an unset token keeps each size's height\nand a set one raises every CTA to it. No action needed."}
1536
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Leave no orphaned card, stray line or ragged row in landing grids","body":"Every card grid now fills its rows or centres a short last row, and cards in a row line\nup:\n\n- `TestimonialBand` lays quotes in a grid instead of CSS columns. Before, a card's edge\n fragment showed as a hairline under columns one and two, columns ended at different\n heights, and the grid stopped short of the content width. Rows now share one height,\n captions sit at each card's foot, and the grid spans the header's width.\n- `LogoCloud`, `PricingBand` and `TestimonialBand` pick their column count per container\n width so rows stay even (6 items in up to 4 columns run 3 + 3) and centre any short last\n row: 3 plans no longer leave one alone in a 2-column row, and 5 or 6 logos no longer\n hang under the first columns.\n- `Bento` cells are subgrids, so titles and bodies line up across a row; `Bento.Title`\n defaults one step larger (1.25rem rising to 1.5rem, weight 500).\n- Feature, Bento, StepList and plan titles balance their lines.\n- `PricingBand` plan actions take the marketing CTA radius, weight and edge at the 40px\n default size; pass `size=\"md\"` or nothing instead of `size=\"lg\"`.\n- `IconWell` defaults to 40px, matching `Feature.Icon`.\n\nNo action needed beyond dropping `size=\"lg\"` from plan actions if you want them to match\nyour other CTAs.","correctedIn":"2026.11.1"}
1537
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep two-letter initials readable in an overlapping avatar stack","body":"`Avatar.Group` overlapped each avatar by 0.75rem (over a third of a small avatar), so\nthe second letter of initials like \"TS\" sat under the next avatar, and the separating\nring used a tint that showed as a halo on a dark page. The overlap is now about a fifth\nof the avatar (0.375rem small, 0.5rem medium, 0.625rem large), and the ring draws in\n`--ui-avatar-group-ring`, falling back to the page background. No action needed.","correctedIn":"2026.11.1"}
1538
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add tiles, ruled and marquee logo walls and a LogoSentence pattern","body":"`LogoCloud` gains three layouts:\n\n- `layout=\"tiles\"` sets each mark on its own tinted 3:2 tile, in even rows with no\n short last row. Restyle the fill with `--ui-marketing-logo-tile` and the corners\n with `--ui-marketing-tile-radius`.\n- `layout=\"ruled\"` is the ruled `grid` closed by an outer hairline frame.\n- `layout=\"marquee\"` scrolls the marks endlessly through `Marquee`, with its pause\n toggle and reduced-motion fallback.\n\nEvery layout reads a `--logo-scale` style on a mark (default 1), so a square glyph\ncan stand taller than a wordmark.\n\nThe new `LogoSentence` (`@sdxc/ui/patterns`) sets marks inline in a large, muted\nline of prose, sized to 0.8em of the text.\n\n <LogoCloud layout=\"tiles\" label=\"Trusted by on-call teams at\">{marks}</LogoCloud>\n <LogoCloud layout=\"marquee\" muted>{marks}</LogoCloud>\n <LogoSentence>\n \tTrusted by <img src={acme} alt=\"Acme\" /> and 2,000 teams.\n </LogoSentence>\n\nExisting `row`, `spread` and `grid` walls render as before."}
1539
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add sheen, pill and chip display treatments to AccentText","body":"`AccentText` gains three treatments for one word or phrase in a display headline:\n\n- `variant=\"sheen\"` paints the glyphs with a gradient that fades the inherited ink\n to half strength toward the end. Under forced colors it falls back to solid ink.\n- `variant=\"pill\"` sets the word uppercase at half the heading size, in a capsule\n outlined in the text color.\n- `variant=\"chip\"` sets the word in the accent color on a brand tint, led by a\n small dot.\n\n <Heading size=\"display\">Email for <AccentText variant=\"sheen\">developers</AccentText></Heading>\n <Heading size=\"display\">The <AccentText variant=\"pill\">AI</AccentText> gateway</Heading>\n <Heading size=\"display\">Docs <AccentText variant=\"chip\">for teams</AccentText></Heading>\n\nThe existing `color`, `swash` and `highlight` treatments are unchanged."}
1540
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add a release pin and an opt-in load entrance to LandingHero","body":"`LandingHero` takes two new props:\n\n- `release` pins a version line under the actions in mono type on a brand-tinted\n chip. Pass a link to make the whole pin clickable.\n- `entrance` plays the load animation from `entrance()` in `@sdxc/ui/animations`.\n The eyebrow, title, lead, actions, release, note and proof rise in turn, 70ms\n apart, and the media settles last. Visitors who ask for reduced motion see the\n hero at rest.\n\n <LandingHero\n \tentrance\n \ttitle=\"Build the whole app in one framework\"\n \tactions={actions}\n \trelease={<a href=\"/changelog/8-1\">v8.1 — released Oct 28, 2026 →</a>}\n />\n\nHeroes without these props render as before."}
1541
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add split, statement, subtitle and action chapter headers","body":"`MarketingHeader` gains four options for opening a band:\n\n- `layout=\"split\"` puts the lead beside the title from the band's `lg` width,\n aligned to the title's last line, with the eyebrow over the title. Narrower\n bands keep the stack.\n- `tone=\"statement\"` sets the title in the muted ink and its `<strong>` phrase in\n the heading ink, so one heading reads as a claim and its support.\n- `subtitle` adds a second line at the title's size in the muted ink, inside the\n heading.\n- `action` places a control such as \"See all\" at the end of the header row, on\n the title's last line. It wraps under the title when the row runs out of room.\n\n <MarketingHeader layout=\"split\" eyebrow=\"Observability\" description={lead}>\n \tKnow what every function did, and why\n </MarketingHeader>\n <MarketingHeader tone=\"statement\" subtitle=\"Every page in under a second.\">\n \t<strong>Status pages that load first.</strong> Even when your app is down.\n </MarketingHeader>\n <MarketingHeader action={<LinkButton href=\"/courses\" variant=\"ghost\">See all</LinkButton>}>\n \tFlagship training\n </MarketingHeader>\n\nA split or an action aligns the header to the start. Existing headers render as\nbefore."}
1542
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add an un-carded icon list and mixed spans to feature grids","body":"`Feature.Grid variant=\"list\"` lays claims out without card chrome. Each cell sets\nits icon beside the title and copy, on wide gaps, and drops `Feature.Media`.\n`FeatureBand layout=\"grid\"` takes the same choice through `gridVariant`.\n\n`Feature span={2 | 3}` widens a cell across that many tracks at the grid's widest\nstep, and across the whole row where the grid has fewer tracks. A grid whose\ncells set spans keeps the layout the page gave it. Name its rounded outer corners\nwith `data-corner` on the cells that hold them.\n\n <Feature.Grid variant=\"list\" columns={3}>\n \t<Feature>\n \t\t<Feature.Icon><GaugeIcon aria-hidden=\"true\" /></Feature.Icon>\n \t\t<Feature.Title>Probes from 12 regions</Feature.Title>\n \t\t<Feature.Description>A failure pages only once two regions agree.</Feature.Description>\n \t</Feature>\n </Feature.Grid>\n\n <Feature.Grid columns={3}>\n \t<Feature span={2}>…</Feature>\n \t<Feature>…</Feature>\n </Feature.Grid>\n\nCard and mosaic grids without spans render as before."}
1543
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add a featured quote, story links and a carousel to TestimonialBand","body":"`TestimonialBand` and `TestimonialBand.Quote` gain four options:\n\n- `featured` on the band sets one quote full width above the rest.\n- `variant=\"featured\"` on a quote inverts the card and sets the quote large, at\n weight 500. Its optional `logo` leads the card.\n- `href` on a quote closes the card with a \"Read the story →\" link. Change the\n text with `linkLabel`.\n- `layout=\"carousel\"` on the band sets the quotes in one row that scrolls and snaps\n sideways inside the band. Each card is `min(22rem, 85%)` wide, so a phone shows\n the next card's edge. The row is a focusable region named by `carouselLabel`.\n\n <TestimonialBand\n \ttitle=\"Teams that sleep through the night\"\n \tlayout=\"carousel\"\n \tfeatured={\n \t\t<TestimonialBand.Quote variant=\"featured\" logo={<img src={acme} alt=\"Acme\" />} name=\"Ana Ruiz\" href=\"/customers/acme\">\n \t\t\tAlert noise fell <strong>by 83%</strong> in the first month.\n \t\t</TestimonialBand.Quote>\n \t}\n >\n \t{quotes}\n </TestimonialBand>\n\nBands without these props render as before."}
1544
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Give every closed Accordion row the same height","body":"The first `Accordion.Item` used to draw the list's top rule as its own block-start border,\nso it was 1px taller than every other closed row (57px against 58px in a `FaqBand`), and the\nrows stepped unevenly down the column.\n\n`Accordion` now draws the top rule on its root, and every item draws only the divider below\nit. Closed rows of the same content are now the same height, the first included, and the list\nlooks the same. No action is needed unless a page styled the first item's block-start border\nthrough `mix`; move that styling to the `Accordion` root."}
1545
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Let a page round the corners neighbouring cards share","body":"Card grids (Bento, Feature grids and every pattern built on them) now read the radius of the corners two cards share from `--ui-marketing-card-radius-inner`. It defaults to 0.5rem, so nothing changes until a page sets it. Set it to the same value as `--ui-marketing-card-radius-outer` for cards that are rounded alike on every corner:"}
1546
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Let a page square and flatten PricingBand plans with tokens","body":"`PricingBand` plans now read their corner radius and the featured plan's lift from two\ncustom properties, so a page that draws square, flat cards can bring its pricing along\nwithout restyling the band.\n\n- `--ui-marketing-plan-radius` sets every plan's corner radius (default `1.5rem`).\n- `--ui-marketing-plan-lift` sets the featured plan's shadow (default: the current lift).\n Set it to `0 0 #0000` for a plan that sits flat; in dark mode the featured plan keeps\n its brand ring either way.\n\n```tsx\n<div style={{ \"--ui-marketing-plan-radius\": \"0\", \"--ui-marketing-plan-lift\": \"0 0 #0000\" }}>\n\t<PricingBand title=\"Pricing\">…</PricingBand>\n</div>\n```\n\nPages that set neither token look exactly as before; no action is needed."}
1547
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Let a SegmentedStage put its control on the start edge","body":"`SegmentedStage` takes an `align` prop. The default, `\"center\"`, keeps the control centred over the stage as before. `\"start\"` puts it flush with the stage's start edge, so it lines up with the copy of a start-aligned hero.\n\n```tsx\n<LandingHero\n align=\"start\"\n mediaPlacement=\"below\"\n media={\n <SegmentedStage name=\"hero-views\" aria-label=\"Product views\" align=\"start\">\n …\n </SegmentedStage>\n }\n/>\n```\n\nExisting stages render unchanged; no action is needed."}
1548
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Round SiteHeader's menu button like the page's buttons","body":"Before, SiteHeader's menu and close buttons always had 10px corners, so on a page with pill buttons the menu button sat as a rounded square beside a pill call to action. They now read `--ui-button-radius`, the same token `Button`, `LinkButton` and `marketingCtaChrome()` use, and fall back to 10px when a page does not set it. No action is needed; a page that already sets `--ui-button-radius` gets matching menu buttons."}
1549
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep SiteHeader's menu button hidden on a wide bar","body":"Before: on a page where another element first used the same container-query rule, or whose styles loaded in a different order, `SiteHeader` showed its phone menu button next to the inline navigation on a wide bar, because the button's base `display` and its hide rule lived in two classes and the later one won."}
1550
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Start a gap StatStrip's figures on the band's copy edge","body":"Before: every cell of a `StatStrip variant=\"gap\"` carried 1.25rem (2rem from the `lg` container) of inline padding, so the first figure sat inset from the heading and lead above it, with no rule to pad away from."}
1551
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Draw Rails only when the page is wider than the column","body":"Before: `Rails` drew its hairlines from the `md` container up. Between about 576px and 1184px the column is full-bleed, so the rails sat on the viewport edges and the `marks=\"corners\"` crosshairs hung half past them, scrolling the page sideways by 10px."}
1552
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Leave no plan alone on a PricingBand row at tablet widths","body":"Before: between the 36rem and 48rem containers (a 768px window) a `PricingBand` with three plans paired the first two and centred the third alone on its own row.\n\nAfter: in that range an even number of plans still pairs up, and an odd number stacks one plan a row at the full width until the `lg` container sets them side by side, so no row is ever short. A phone still stacks with the featured plan first; at the stacked tablet step plans keep their source order. No action is needed.\n\n`balancedGrid` steps also take an optional `columnsFor(count)` that overrides the even split for a run of exactly that many items:\n\n```ts\nbalancedGrid(\"ui-plans\", [\n { query: \"(36rem <= width < 48rem)\", columns: 2, columnsFor: (count) => (count % 2 === 0 ? 2 : 1) },\n]);\n```"}
1553
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Pin feature actions to the cell foot and add a quiet Feature.Link","body":"Before, `Feature.Action` followed the description directly, so in a\n`Feature.Grid` row where one cell's copy wrapped to more lines its action sat\nlower than its neighbour's. Now the action slot is pushed to the foot of the\ncell, so the actions of cells sharing a row line up whatever the copy length.\nThe minimum space above an action is unchanged. No action is needed.\n\nNew: `Feature.Link`, a quiet brand-coloured text link with a trailing arrow\nfor the action slot. The whole cell becomes its hit target, links inside the\ndescription stay clickable above it, and the arrow nudges forward on hover\nunless the visitor prefers reduced motion.\n\n <Feature href=\"/docs/versioning\">\n <Feature.Title>Versioning</Feature.Title>\n <Feature.Description>How the number is assigned.</Feature.Description>\n <Feature.Action>\n <Feature.Link href=\"/docs/versioning\">How versioning works</Feature.Link>\n </Feature.Action>\n </Feature>\n\nEvery `Feature` cell is now `position: relative` so the link can cover it."}
1554
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Let SiteHeader and SiteFooter prefetch their links","body":"`SiteHeader` and `SiteFooter` take a `prefetch` prop with the same modes every\nother `@sdxc/ui` link accepts. With `prefetch=\"intent\"`, a destination starts\nloading as soon as the visitor hovers or focuses its link, so the page behind a\nheader or footer link opens without a wait.\n\n <SiteHeader prefetch=\"intent\" brand={brand} items={items} cta={cta} />\n <SiteFooter prefetch=\"intent\" columns={columns} />\n\nOn the header the mode reaches every link it draws: bar links, mega-panel links\nand their footer link, phone-sheet rows, the actions and the call to action. On\nthe footer it reaches the column links; the legal and social slots are your own\nmarkup and keep whatever attributes you give them.\n\nThe default stays `\"none\"`, so existing headers and footers render exactly as\nbefore and need no change."}
1555
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Render the same SiteHeader markup on every request when it has an id","body":"Before, `SiteHeader` named its phone sheet, its mega panels and the bar's\nanchor from an id generated per render, so the same page produced different\nHTML on every request. A link prefetch and the navigation after it never\nmatched byte for byte, and a cached page differed from a fresh one.\n\nNow, when you give the header an `id`, those inner ids derive from it:\n\n <SiteHeader id=\"site-header\" brand={brand} items={items} />\n\nrenders `site-header-sheet`, `site-header-panel-0` and `--site-header-bar` on\nevery request. A header without an `id` behaves as before; pass one if your\npages need deterministic markup."}
1556
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add FlowDiagram and DialogDismiss for landing pages","body":"Two landing pieces join the library, and every existing import keeps working.\n\n`FlowDiagram` (from `@sdxc/ui/patterns`) animates one automated run: a trigger fires, each\nstep passes in turn along a rail, and the outcome appears before the loop restarts. It sits\nin a `MotionLoop` with a pause toggle, and without motion it shows the finished run.\n\n import { FlowDiagram } from \"@sdxc/ui/patterns\";\n\n <FlowDiagram\n aria-label=\"A deploy, step by step\"\n pauseLabel=\"Pause the animation\"\n trigger={{ icon: <GitBranchIcon size={14} />, title: \"A push starts a deploy\" }}\n steps={[\n { title: \"Check\", code: \"bun check\" },\n { title: \"Ship\", detail: \"To production\" },\n ]}\n outcome=\"Deployed\"\n footnote=\"A failed step pages the on-call\"\n />\n\n`DialogDismiss` (from `@sdxc/ui`) is a client island that closes the modal `<dialog>` it\nsits in when the visitor presses the backdrop or follows a link inside it. A same-page link\nsuch as `/#pricing` leaves a navigation sheet open otherwise. Pass it through `SiteHeader`'s\n`sheet` slot, or drop it into any dialog, and map its subpath in your browser entry, since\nthe renderer names the island by its bare specifier:\n\n <SiteHeader brand={brand} items={items} sheet={<DialogDismiss />} />\n\n // bootstrap/browser.ts\n const PACKAGE_MODULES = {\n \"@sdxc/ui/dialog-dismiss\": () => import(\"@sdxc/ui/dialog-dismiss\"),\n };\n run({\n async loadModule(url, name) {\n let mod = await (PACKAGE_MODULES[url]?.() ?? import(url));\n return mod[name];\n },\n });\n\nThe behavior is also available as the `dialogDismiss()` mixin from `@sdxc/ui/mixins`, for an\nisland of your own."}
1557
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Let a @sdxc/u utility in mix override the component's own styles","body":"Before, a `@sdxc/u` utility passed in a component's `mix` was added beside\nthe component's own utilities as a separate class, and which one applied\ndepended on the order the page first used each class: `<Text mix={text(\"xs\")}>`\nrendered small text, not extra-small, on any page that had already used\n`text(\"xs\")` elsewhere. Every component now applies its caller's `mix` with\n`mergeMix` from `@sdxc/u/general`, so a utility in `mix` wins over the\ncomponent's own utility for the same property on every page, including a\nproperty the component sets under a state or `data-*` selector:\n\n <Text mix={text(\"xs\")}>Caption</Text>\n <ScrollArea.Viewport mix={overflow(\"visible\")}>…</ScrollArea.Viewport>\n\nNo action is needed. A page whose `mix` utility was losing to a component's\nown style by accident now gets the value it asked for, so review any `mix`\nthat sets a property the component also sets. Other mixins in `mix` (`css()`,\n`attrs()`, event and behavior mixins) apply as before."}
1558
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add five animated diagrams for landing claims that are not a linear run","body":"`@sdxc/ui/patterns` gains five animated visuals, so a landing can match each claim's shape instead of playing `FlowDiagram` everywhere. Every one is CSS-only (no hydration), loops inside `MotionLoop` with a pause toggle, shows its finished state under `prefers-reduced-motion`, takes every string as a prop, requires an `aria-label`, and fits a 280px column.\n\n- `SequenceDiagram`: two to four actors on lifelines, with messages drawn between them in order. Arrows mirror on right-to-left pages.\n- `FanOutDiagram`: one source reaching every target in turn, or many feeding one with `direction=\"in\"`.\n- `EventTicker`: rows arriving newest first, each with a status chip; `flipTo` changes a row's status partway through.\n- `TypedTerminal`: input lines typing themselves out in terminal chrome, then their output lines.\n- `DrawnChart`: a metric counting up to its real value over horizontal bars or a line that draws in.\n\n```tsx\nimport { DrawnChart, EventTicker, FanOutDiagram, SequenceDiagram, TypedTerminal } from \"@sdxc/ui/patterns\";\n\n<SequenceDiagram\n\taria-label=\"A PKCE sign-in\"\n\tactors={[{ name: \"Browser\" }, { name: \"Your app\" }, { name: \"Authorization Server\" }]}\n\tmessages={[\n\t\t{ from: 0, to: 1, label: \"Open the sign-in page\", code: \"GET /login\" },\n\t\t{ from: 1, to: 2, label: \"Trade code and verifier\", code: \"POST /token\" },\n\t]}\n\toutcome=\"Signed in\"\n/>\n\n<FanOutDiagram\n\taria-label=\"One fetch reaches every reader\"\n\tsource={{ title: \"Feed fetched once\", detail: \"GET /feed.xml\" }}\n\ttargets={[{ title: \"Ana\", detail: \"+3 posts\" }, { title: \"Ben\", detail: \"+3 posts\" }]}\n/>\n\n<EventTicker\n\taria-label=\"Recent checks\"\n\tstatusLabels={{ ok: \"Passed\", warn: \"Slow\", fail: \"Failed\", pending: \"Running\" }}\n\trows={[{ time: \"09:35\", label: \"Checkout failed at Pay\", status: \"fail\", code: \"POST /api/pay → 502\" }]}\n/>\n\n<TypedTerminal\n\taria-label=\"A sign-in spec and its run\"\n\ttitle=\"specs/sign-in.spec\"\n\tlines={[{ kind: \"input\", text: 'visit \"/login\"' }, { kind: \"output\", text: \"✓ 4 steps · 2.1s\", status: \"ok\" }]}\n/>\n\n<DrawnChart\n\taria-label=\"Checks by posting rate\"\n\tmetric={{ value: 96, label: \"fetches a day\" }}\n\tseries={[{ label: \"10+ posts a day\", value: 96, display: \"15 min\" }, { label: \"Daily\", value: 1, display: \"1 day\" }]}\n\thighlight={0}\n/>\n```\n\nNo existing component changed, so consumers need do nothing."}
1559
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Publish the style helpers and Eyebrow that components import","body":"Several components imported helpers that no published entry point exported, so `sdxc ui add`\ncould not copy Button, LinkButton, Feature, LogoCloud or MarketingHeader: their sources pointed at\nfiles that only exist inside the package.\n\n`@sdxc/ui/styles` now exports `surfaceControl` and the card-grid helpers (`cardGrid`,\n`balancedGrid`, `balancedColumns`, `byChildCount`, `cardPadding`, `cardMedia`, `iconTile`,\n`ICON_TILE_SIDE`), and `@sdxc/ui/utils` exports `Eyebrow`:\n\n import { surfaceControl, cardGrid } from \"@sdxc/ui/styles\";\n import { Eyebrow } from \"@sdxc/ui/utils\";\n\nNothing existing changed; consumers need no action."}
1560
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep SequenceDiagram arrows whole as they reset, and seat TypedTerminal's pause in its title bar","body":"Two visual fixes to animated patterns in `@sdxc/ui/patterns`:\n\n- `SequenceDiagram`: before, at the end of each loop every shaft shrank back toward its sender while its arrowhead stayed in place, so for a moment every arrow looked broken off short of its head. Now each arrow fades out whole, shaft and head together, and the next loop draws it from the sender again.\n- `TypedTerminal`: before, the pause toggle was pinned to the panel's corner and hung over the title bar's bottom border. Now it sits inside the title bar, centred against the title.\n\nConsumers need not change anything."}
1561
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Size TypedTerminal's pause toggle as title-bar chrome","body":"Before, `TypedTerminal`'s pause toggle in the title bar was the standard 2rem disc on the page colour: it filled most of the 2.5rem bar, sat against the bar's end edge, and read as a white button stuck onto a dark panel. Now it is a 1.5rem control ringed and inked in the panel's own colour, inset from the end as far as the title is from the start. Consumers need not change anything."}
1562
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep Highlight's match tint inside its own letters","body":"Before, a `Highlight` match pulled its tint 0.1em outside the matched text with a negative\nmargin, so the tint painted over the letter before it, and the palette's lightest tint step\nwas hard to see on a white or near-black page. Now the tint stays inside the match, with a\nlittle inline padding, and is the color role's ink mixed at 20%, which reads in light and\ndark themes alike. Search results and filtered lists that render `Highlight` pick this up\nwith no change."}
1563
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add DocsTree with findNeighbours for docs sidebars and pagers","body":"`@sdxc/ui/utils` now exports `DocsTree`, the shape of a docs sidebar (sections of pages and\ntitled groups of pages), with two helpers that walk it in reading order:\n`flattenDocsTree(tree)` and `findNeighbours(tree, path, { boundary })`. `DocsNav` draws a\ntree and `DocsPager` steps through the same one, so the sidebar and the pager always agree.\n\n import { findNeighbours } from \"@sdxc/ui/utils\";\n\n let tree = { label: \"Docs\", sections: [{ title: \"Start\", items: [{ title: \"Install\", href: \"/docs/install\" }, { title: \"Configure\", href: \"/docs/configure\" }] }] };\n let { previous, next } = findNeighbours(tree, \"/docs/install\", { boundary: \"section\" });\n\n`boundary: \"section\"` keeps the pager inside the section being read."}
1564
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add Callout for notes, tips, warnings and dangers in docs","body":"`Callout` is a static aside for docs pages, in four kinds: `note`, `tip`, `warning` and\n`danger`. Each one is tinted lightly in its color and named by the translated `label` you\npass, so screen readers announce it as an aside, never as an alert or a live region.\n\n import { Callout } from \"@sdxc/ui\";\n\n <Callout kind=\"warning\" label=\"Warning\" title=\"Rotate the key first\">\n Deploy the new key before you revoke the old one.\n </Callout>\n\nGitHub-style alerts map as note → note, tip → tip, warning → warning, caution → danger, and\nimportant → note with your own \"Important\" label."}
1565
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add Steps for numbered procedures in docs","body":"`Steps` numbers a procedure with a counter circle and a thin rail running to the next step,\nin plain CSS. Each step's `title` is a real heading, one level under the surrounding\n`HeadingScope` (h2 on a page without one), and takes an optional `id` so a table of contents\ncan link it.\n\n import { Steps } from \"@sdxc/ui\";"}
1566
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add FileTree to show a project's layout in docs","body":"`FileTree` draws a project layout. Directories are native `<details>` that fold without\nJavaScript, files get an icon for their type, the file a page is about can be highlighted,\na muted comment can sit beside any entry, and `\"…\"` stands for files left out.\n\n import { FileTree } from \"@sdxc/ui\";"}
1567
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add UiLabel and UiPath to name a product's controls in help docs","body":"Help docs name the buttons a reader presses. `UiLabel` sets one control's name as a small\nsans chip that never breaks across lines, and `UiPath` joins a click path into chips with\narrows, wrapping only between steps.\n\n import { UiLabel, UiPath } from \"@sdxc/ui\";\n\n Press <UiLabel>Add monitor</UiLabel>, or open <UiPath items={[\"Settings\", \"Notifications\", \"Add channel\"]} />.\n\n`separator` replaces the default `→`."}
1568
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add PlanNotice for plan and role requirements in help docs","body":"`PlanNotice` is the quiet one-sentence box under a help page's title that says who can use\nthe feature, with links allowed inside.\n\n import { PlanNotice } from \"@sdxc/ui\";"}
1569
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add CodeBlock, a titled code card with marked lines and copy","body":"`CodeBlock` renders highlighted code in a card titled with its file (an icon by extension)\nor \"Terminal\". `highlight`, `add` and `remove` mark lines across the full scroll width\nwithout moving the text, and `lineNumbers` adds a gutter. Its copy button is the only part\nthat hydrates: it copies without shell prompts, command output or removed lines, swaps its\nicon to a check, and announces the copied label.\n\n import { CodeBlock } from \"@sdxc/ui\";\n\n <CodeBlock title=\"vite.config.ts\" language=\"ts\" code={source} highlight={[4]} labels={{ copy: \"Copy code\", copied: \"Copied\" }} />\n\nAdd `\"@sdxc/ui/copy-button\": () => import(\"@sdxc/ui/copy-button\")` to the package modules\nyour browser entry resolves islands from. Also new: the `copyFeedback(copiedLabel)` mixin,\nand `copyToClipboard()` now leaves out elements marked `data-copy-exclude`; targets without\nthat attribute copy exactly as before."}
1570
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add CodeTabs and InstallCommand with tabs synced and remembered","body":"`CodeTabs` switches between versions of the same code (package manager, framework,\nlanguage) with radios and CSS, so it works without JavaScript. Give several sets the same\n`syncKey` and they switch together; `persist` remembers the choice in `localStorage`\n(`\"local\"`, the default) or a cookie (`\"cookie\"`), which the server reads with\n`readCodeTabsCookie(cookieHeader, syncKey)` to render the reader's choice from the start.\n\n import { CodeTabs, InstallCommand } from \"@sdxc/ui\";\n\n <CodeTabs aria-label=\"Language\" syncKey=\"api-language\" tabs={[{ label: \"cURL\", value: \"curl\", children: curlBlock }, { label: \"JavaScript\", value: \"js\", children: jsBlock }]} />\n <InstallCommand aria-label=\"Package manager\" packages={[\"@sdxc/ui\"]} labels={{ copy: \"Copy\", copied: \"Copied\" }} />\n\n`InstallCommand` spells `packages` (and `dev`) for npm, pnpm, yarn and bun, synced on\n`package-manager`. Add `\"@sdxc/ui/code-tabs-sync\"` to your browser entry's package modules."}
1571
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add PropsTable for options and API fields in docs","body":"`PropsTable` is a reference table with Name, Type, Default, Required and Description\ncolumns, every header a label you pass. A row with `children` expands its nested fields in\nplace behind a native `<details>`, and in a narrow column the rows stack into cards.\n\n import { PropsTable } from \"@sdxc/ui\";"}
1572
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add TableOfContents, an \"On this page\" list that follows the reader","body":"`TableOfContents` lists a page's headings as plain anchors, as a rail beside the prose or a\nsticky disclosure bar on a phone. Once it loads, a marker slides over every section on\nscreen, the last section is marked when the page reaches its end, the current item stays in\nview inside a long rail, and the bar names the section being read beside a progress ring.\nPages with fewer than `minItems` headings (2 by default) render nothing.\n\n import { TableOfContents } from \"@sdxc/ui\";\n\n <TableOfContents label=\"On this page\" items={[{ id: \"install\", text: \"Install\", level: 2 }, { id: \"configure\", text: \"Configure\", level: 2 }]} />\n <TableOfContents label=\"On this page\" items={items} layout=\"bar\" />\n\nAdd `\"@sdxc/ui/table-of-contents\"` to your browser entry's package modules. The behavior is\nalso the `tocSpy()` mixin in `@sdxc/ui/mixins`."}
1573
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add DocsNav, a docs sidebar that opens at the current page","body":"`DocsNav` draws a `DocsTree` as a sidebar: sections under plain labels, pages and folding\ngroups of pages, badges, and the current page marked `aria-current=\"page\"`. Once its island\nloads, the sidebar scrolls to the current page (again each time a drawer holding it opens),\nand an optional `filter` field narrows it by title, keeping each match's group open and\nsaying when nothing matches. `footer` holds links such as \"Contact support\".\n\n import { DocsNav } from \"@sdxc/ui\";\n\n <DocsNav tree={tree} activePath={url.pathname} collapseGroups filter={{ label: \"Filter pages\", placeholder: \"Filter\", noResults: \"No page matches\" }} />\n\nAdd `\"@sdxc/ui/docs-nav-tools\"` to your browser entry's package modules."}
1574
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add DocsPager, previous and next pages as whole-card links","body":"`DocsPager` closes a docs page with its neighbours. Each side is one link card (`rel=\"prev\"`\nor `\"next\"`) showing the destination's title, and its section when the reader would cross\ninto another; the arrow nudges on hover, the cards stack in a narrow column, and a missing\nside is left out.\n\n import { DocsPager } from \"@sdxc/ui\";\n import { findNeighbours } from \"@sdxc/ui/utils\";"}
1575
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add NextSteps for a hand-written \"where to go next\" in docs","body":"`NextSteps` ends a guide with two to four destinations, each a whole-card or whole-row link\nwith a line saying why to go there. Its title is a real heading with an optional `id`, so a\ntable of contents can link it.\n\n import { NextSteps } from \"@sdxc/ui\";\n\n <NextSteps title=\"Next steps\" id=\"next-steps\" items={[{ title: \"Choose who gets alerted\", href: \"/docs/alerts\", description: \"Route failures to a person or a rotation.\" }]} />\n\n`variant=\"list\"` draws rows instead of cards."}
1576
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add DocsPageHeader so every docs page opens the same way","body":"`DocsPageHeader` sets a docs page's opening: a breadcrumb, the `<h1>`, a lead, an optional\nplan notice, and a meta row with the last-updated date (a `<time>`) and page actions.\n\n import { DocsPageHeader } from \"@sdxc/ui\";"}
1577
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add PageActions, a \"Copy page\" button with a menu of page links","body":"`PageActions` is a split button for docs pages. The main button fetches the page's Markdown\ntwin and copies it, swapping its label to \"Copied\" and announcing it; the chevron opens a\nnative popover menu of `links` such as View as Markdown, Open in Claude or Edit on GitHub,\nwhich works without JavaScript.\n\n import { PageActions } from \"@sdxc/ui\";\n\n <PageActions markdownHref=\"/docs/install.md\" labels={{ copy: \"Copy page\", copied: \"Copied\", failed: \"Copy failed\", more: \"More actions\" }} links={[{ label: \"View as Markdown\", href: \"/docs/install.md\" }]} />\n\nAdd `\"@sdxc/ui/page-actions\"` to your browser entry's package modules. Also new: the\n`copyFromUrl(href, failedLabel?)` mixin, which copies a fetched document."}
1578
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add DocsFeedback, a \"Was this helpful?\" form that works without JavaScript","body":"`DocsFeedback` asks a quiet question at the end of a docs page. Choosing yes or no reveals an\noptional note and a send button through CSS, and the form posts `helpful`, `page` and `note`\nto your `action`; render it with `state=\"sent\"` to show the thank-you instead.\n\n import { DocsFeedback } from \"@sdxc/ui\";\n\n <DocsFeedback action=\"/docs/feedback\" page=\"/docs/install\" labels={{ question: \"Was this page helpful?\", yes: \"Yes\", no: \"No\", note: \"What could be better?\", send: \"Send\", thanks: \"Thanks for the feedback\" }} />\n\nThe field names are exported as `DOCS_FEEDBACK_VOTE_FIELD`, `DOCS_FEEDBACK_NOTE_FIELD` and\n`DOCS_FEEDBACK_PAGE_FIELD` for the handler that reads them."}
1579
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add AnchorHeading, a heading with a link to itself","body":"`AnchorHeading` renders a heading with an `id` and a `#` link that shows on hover and on\nfocus (always on touch screens). A jump to it stops below sticky chrome at\n`--ui-docs-scroll-margin`, and the heading flashes briefly as the target when motion is\nallowed. It takes its size and weight from the surrounding prose.\n\n import { AnchorHeading } from \"@sdxc/ui\";"}
1580
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add DocsLayout, the shell a docs page composes into","body":"`DocsLayout` in `@sdxc/ui/patterns` lays out a docs page: the sidebar docked on the left,\nthe article in a reading measure, and the page's headings in a rail from 75rem. Below the\ndock width the sidebar opens in a drawer with a visible close button, and the headings fold\ninto a sticky bar under the site header. Headings jumped to stop clear of that chrome, and\nwide code or tables scroll inside their own box, so nothing scrolls sideways at 320px.\n\n import { DocsNav } from \"@sdxc/ui\";\n import { DocsLayout } from \"@sdxc/ui/patterns\";\n\n <DocsLayout sidebar={<DocsNav tree={tree} activePath={path} />} toc={anchors} tocLabel=\"On this page\" menuLabel=\"Menu\" drawerLabel=\"Documentation\" closeLabel=\"Close menu\" stickyTop=\"4rem\">\n {article}\n </DocsLayout>\n\n`dock` docks at 48rem (`\"md\"`) or 64rem (`\"lg\"`, the default), `header` draws a sticky site\nheader, and `main={false}` leaves the `<main>` landmark to your own layout."}
1581
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add DocsHub, a docs home that routes readers by task","body":"`DocsHub` in `@sdxc/ui/patterns` opens a docs site: a title and lead, an optional search\nslot and topic chips, a \"Start here\" row of larger cards, the sections as cards with page\ncounts, and popular articles. Every card is one link, and the grids fill a wide column and\nstack on a phone.\n\n import { DocsHub } from \"@sdxc/ui/patterns\";"}
1582
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Add DocsNotFound, a docs 404 that searches for the missing page","body":"`DocsNotFound` in `@sdxc/ui/patterns` is the body of a docs 404 inside your docs shell: the\nmissing path, your search field, and a short list of places to start.\n`searchQueryFromPath(path)` turns the missing path into the query to pre-fill, so\n`/docs/guides/web-hooks` searches for \"web hooks\".\n\n import { DocsNotFound, searchQueryFromPath } from \"@sdxc/ui/patterns\";"}
1583
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Draw no empty last line in a CodeBlock whose painted tokens end in a newline","body":"Before, a `CodeBlock` given pre-painted `tokens` whose last run ended in a newline (what\nmost highlighters return for a fenced block) drew an extra blank line at the bottom of the\ncard. Now the card draws exactly the lines of `code`, with or without a trailing newline.\nConsumers need not change anything."}
1584
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Leave out PropsTable's Default column when no row has a default","body":"Before, `PropsTable` always drew a Default column, so a table built from data without\ndefaults showed a column of dashes on every row. Now each level of the table draws the\nDefault column only when at least one of its rows sets `default`; a nested level decides\nfor itself. Consumers need not change anything; pass `default` on a row to bring the\ncolumn back."}
1585
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Fill the parent's width with DocsLayout inside a centred flex parent","body":"Before, a `DocsLayout` placed directly in a flex column that centres its children (a\n`<body>` laid out as `display: flex; flex-direction: column; align-items: center`, common\nfor a sticky footer) shrank to its content, so the article stopped well short of its\n`measure` (about 560px at any desktop width). Now the layout always takes its parent's\nfull width, up to `maxWidth`, and the article reaches its `measure`. Consumers need not\nchange anything."}
1586
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep Typeset's prose styles off CodeBlock and FileTree","body":"Before, a `CodeBlock` or `FileTree` rendered inside a `Typeset` could pick up the prose\nstyles meant for plain markdown: an extra border, padding and a larger font on the code,\nor list padding on the tree, depending on the order the page's stylesheets loaded. Now\nboth opt out of `Typeset` (`data-not-typeset` on the code's `<pre>` and the tree's list),\nso they look the same inside and outside prose, while keeping the space `Typeset` puts\nbetween blocks. Consumers need not change anything."}
1587
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Cap DocsLayout's running text at a prose measure while wide blocks fill the column","body":"A docs article now reads at a comfortable line length without squeezing code. `DocsLayout`\nstops paragraphs, lists, headings, quotes, callouts and the page header at a new\n`proseMeasure` (default `66ch`, inside the 60–75ch readable range), while code blocks,\nimages, tables, charts and disclosures keep growing to the column's `measure`.\n\n <DocsLayout proseMeasure=\"70ch\" measure=\"72rem\" …>\n\n`measure`'s default widens from `48rem` to `64rem`, so wide blocks use more of the column\non large screens; text still stops at `proseMeasure`. Pass `measure=\"48rem\"` to keep the\nold column width. Elements a component draws (`data-slot`) keep their own width unless\nthey are running text, so a file tree or props table inside a list still fills the column."}
1588
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep TableOfContents following the page after a client-side navigation","body":"Before, `TableOfContents` (and the `tocSpy()` mixin behind it) read the page's headings once,\nwhen it first loaded. After a client-side navigation to another docs page the list was reused\nin place, so it kept measuring the previous page's detached headings: the marker stayed hidden,\nno section was marked, and the phone bar's progress ring and section name stayed on the old\npage. A first page with no headings never started following at all.\n\nNow it reads the list's links and their headings on every recount, and recounts when the\nlist's links change and when a navigation succeeds, so the new page is followed from its first\nscroll. Apps pick this up through the `@sdxc/ui/table-of-contents` island; no change needed."}
1589
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Draw PageActions' copy button and chevron as one filled split button","body":"Before, `PageActions` drew its two buttons as outlines with no fill, the copy button kept\nall four corners rounded and the chevron had none, so the pair did not read as one control.\nNow both halves share the filled `surface` look, the copy button is rounded only on its\nouter (start) corners and the chevron only on its outer (end) corners, mirrored in\nright-to-left text, with the seam drawn once. The menu now renders beside the button group\nrather than inside it, so it no longer counts as part of the group. A `PageActions` with no\n`links` keeps a fully rounded copy button. Consumers need not change anything."}
1590
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Leave room between DocsFeedback's question and its votes when they wrap","body":"Before, on a narrow screen where \"Was this page helpful?\" wrapped above the Yes and No\nbuttons, the two sat 8px apart, as close as the buttons sit to each other. Now a wrapped\nquestion has 1rem below it, so it reads as the heading of its answers; on one line the\nspacing is unchanged. Consumers need not change anything."}
1591
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Keep DocsFeedback's question on the same line as its votes in Safari","body":"Before, the question was a floated `legend` inside a flex `fieldset`. Chromium laid it out as\nan item of the row, but WebKit drew it above the row, so in Safari \"Was this page helpful?\"\nsat on its own line and out of line with the Yes and No pills. Now the question is an\nordinary flex item, centred on the votes' line in every engine, and the votes are a\n`role=\"radiogroup\"` named by it, so screen readers still announce the question with each\nchoice. The markup changes from `fieldset > legend` to `[role=radiogroup] >\n[data-slot=\"docs-feedback-question\"]`; consumers need to change nothing unless they styled\nthe old `legend` or `fieldset` directly."}
1592
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":false,"title":"Pin the docs sidebar full height and close docs pages with a compact DocsFooter","body":"From the dock width, `DocsLayout` now pins the sidebar from under `stickyTop` to the bottom\nof the viewport, at a fixed height that scrolls on its own, so it never ends partway down\nthe page. A new `footer` slot draws the page's footer across the article and the \"On this\npage\" rail only, never under the sidebar; below the dock width it follows the article.\n\n`DocsFooter` is the piece to pass there: the page's closing pieces (a byline, feedback, an\nedit link) over one row with a legal line and site links, every string a prop.\n\n <DocsLayout\n stickyTop=\"calc(4rem + 1px)\"\n footer={\n <DocsFooter legal=\"© 2026 Acme\" links={[{ label: \"Privacy\", href: \"/privacy\" }]} linksLabel=\"Legal\">\n <p>Written by the Acme team.</p>\n </DocsFooter>\n }\n …\n />\n\nA docs page using `footer` should drop any full-width site footer drawn after the layout,\nsince the sidebar now runs to the viewport's bottom beside the page's own footer. Pass the\nreal height of your sticky header as `stickyTop`, border included, so the sidebar ends\nexactly at the bottom of the viewport. Pages without `footer` keep working as before."}
1593
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Let a lone DocsPager card sit alone instead of beside an empty column","body":"Before, on a page with only a previous or only a next neighbour, the pager kept its\ntwo-column grid, so the one card sat in half the row beside an empty column that read as a\nblank card. Now the grid has two columns only when both neighbours exist, and a lone card\nfills the row. Consumers need to change nothing."}
1594
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"feat","breaking":true,"title":"Ship general components at the root and the landing, docs, chat, color and app kits as namespaces","body":"`@sdxc/ui` now keeps only general components, usable on any page, at its root. Each domain kit\nis a namespace you import as a barrel or per module:\n\n| Import | Holds |\n| --- | --- |\n| `@sdxc/ui`, `@sdxc/ui/<name>` | General components (forms, overlays, navigation, typography, `Sidebar`, `CtaGroup`, …) |\n| `@sdxc/ui/landing`, `@sdxc/ui/landing/<name>` | Landing bands, composition craft and animated visuals |\n| `@sdxc/ui/docs`, `@sdxc/ui/docs/<name>` | The docs shell, navigation and content blocks |\n| `@sdxc/ui/chat`, `@sdxc/ui/chat/<name>` | `Message`, `MessageScroller`, `Bubble`, `Marker`, `Attachment` |\n| `@sdxc/ui/color`, `@sdxc/ui/color/<name>` | The colour fields, pickers, sliders, swatches, area and wheel |\n| `@sdxc/ui/app`, `@sdxc/ui/app/<name>` | `Chart`, `Table`, `GridList`, `Tree`, `Toast`, `Empty`, `Skeleton`, `Toolbar`, `Menubar`, `ContextMenu`, `Resizable`, `DropIndicator`, `ShortcutList`, `DropZone`, `FileTrigger` |\n\nA namespace also exports the mixins, behaviors and styles only its components use. The landing\nkit's \"marketing\" names are now \"landing\" names.\n\nMigration:\n\n1. Replace `@sdxc/ui/patterns` with `@sdxc/ui/landing`, except `DocsLayout`, `DocsHub`,\n `DocsNotFound` and `searchQueryFromPath`, which come from `@sdxc/ui/docs`:\n\n // before\n import { LandingHero, DocsLayout } from \"@sdxc/ui/patterns\";\n // after\n import { LandingHero } from \"@sdxc/ui/landing\";\n import { DocsLayout } from \"@sdxc/ui/docs\";\n\n2. Import these from `@sdxc/ui/landing` instead of `@sdxc/ui`: `Feature`, `LogoCloud`, `Split`,\n `StatStrip`, and `MarketingHeader` / `MarketingSection`, renamed `LandingHeader` /\n `LandingSection`:\n\n // before\n import { MarketingSection, Feature } from \"@sdxc/ui\";\n // after\n import { Feature, LandingSection } from \"@sdxc/ui/landing\";\n\n3. Import the docs components from `@sdxc/ui/docs` instead of `@sdxc/ui`: `AnchorHeading`,\n `Callout`, `CodeBlock`, `CodeTabs`, `CodeTabsSync`, `CopyButton`, `DocsFeedback`, `DocsFooter`,\n `DocsNav`, `DocsNavTools`, `DocsPageHeader`, `DocsPager`, `FileTree`, `InstallCommand`,\n `NextSteps`, `PageActions`, `PlanNotice`, `PropsTable`, `Steps`, `TableOfContents`, `UiLabel`,\n `UiPath`. `DocsTree`, `flattenDocsTree` and `findNeighbours` move from `@sdxc/ui/utils` to\n `@sdxc/ui/docs`, and `tocSpy`, `docsNavTools`, `codeTabsSync`, `copyFeedback` and\n `copyFromUrl` from `@sdxc/ui/mixins` to `@sdxc/ui/docs`.\n\n4. Import the chat components (and `messageFollow`, `attachmentTrigger`, `ScrollFollowModel`)\n from `@sdxc/ui/chat`; the colour components (and `colorAreaDrag`, `colorChannelSync`,\n `colorPreview`, `colorWheelDrag`, `rtlAwareGradientDirection`, `HUE_GRADIENT_STOPS`) from\n `@sdxc/ui/color`; and the app components listed above (and `chartTooltip`, `contextMenu`,\n `dragReorder`, `dropZone`, `gridListKeys`, `menubarKeys`, `resizeHandle`, `treeKeys`,\n `SelectionModel`, `DragSession`, `ResizeSession`, `Toaster`, `chartPalette`, `legendToggle`,\n `graphicHostStyle`, the chart scales and paths) from `@sdxc/ui/app`:\n\n // before\n import { Chart, Toast, Button } from \"@sdxc/ui\";\n import { Toaster } from \"@sdxc/ui/behaviors\";\n // after\n import { Button } from \"@sdxc/ui\";\n import { Chart, Toast, Toaster } from \"@sdxc/ui/app\";\n\n5. Rename the landing style helpers in `@sdxc/ui/styles`: `marketingContainer` →\n `landingContainer`, `marketingCtaChrome` → `landingCtaChrome`, `marketingSectionSpace` →\n `landingSectionSpace`, `marketingBandTone` → `landingBandTone`, `marketingLead` →\n `landingLead`, `marketingEmphasis` → `landingEmphasis`, `marketingHairline` →\n `landingHairline`, `marketingSurface` → `landingSurface`, `marketingSlowSpin` →\n `landingSlowSpin`, and the `Marketing*` types to `Landing*`.\n\n6. Rename every `--ui-marketing-*` custom property you set to `--ui-landing-*`:\n\n /* before */ --ui-marketing-measure: 76rem;\n /* after */ --ui-landing-measure: 76rem;\n\n7. Point island specifiers in your browser entry at their namespace:\n `@sdxc/ui/table-of-contents` → `@sdxc/ui/docs/table-of-contents`, and likewise\n `docs-nav-tools`, `copy-button`, `code-tabs-sync` and `page-actions` under `@sdxc/ui/docs/`.\n\n`semanticColorPanelStyle` is removed from `@sdxc/ui/utils`; use `semanticColorPanel()` from\n`@sdxc/ui/styles`. `sdxc ui add` copies the general components; a namespace's components install\nwith the package."}
1595
+ {"release":"2026.11.1","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Line up PropsTable's stacked cards and keep Typeset's table rules off it","body":"Before, a `PropsTable` stacked into cards in a narrow column kept the wide table's width cap on\nits Type cell, so that cell was narrower than the others and its label column did not line up\nwith the rows around it; and inside `Typeset` the prose table rules (cell padding, borders)\nalso styled its own table. Now stacked cells drop the wide layout's width limits, so every\nlabel and value lines up, and the table opts out of `Typeset`, so it looks the same inside and\noutside prose. Apps that worked around either can remove those overrides."}
@@ -12,6 +12,7 @@
12
12
  import { readdir, readFile } from "node:fs/promises";
13
13
  import { dirname, join, posix } from "node:path";
14
14
  import { addElement, addProperty, findModuleReferences, insertAfterLast } from "@sdxc/codemod";
15
+ import { iife } from "@sdxc/iife";
15
16
  import { failure, isFailure, isSuccess, success, wrap } from "@sdxc/result";
16
17
  import { literal, memberAccess } from "./generate.js";
17
18
  import { ensureImport, ensureTypeImport, resolvesTo, specifierFor } from "./imports.js";
@@ -194,13 +195,19 @@ async function declareController(request, root) {
194
195
  return { kind: "edits", path: path.join("."), edits };
195
196
  }
196
197
  /**
197
- * The sitemap decision a new page starts with: listed, or an empty list of pages when its pattern
198
- * has required params, so it is in the sitemap until the developer changes it. A `form` route
199
- * decides its page under `index`.
198
+ * The sitemap decision a new page starts with: listed, an empty list of pages when its pattern
199
+ * has required params, or left out when its last segment names a file (`/robots.txt`), which
200
+ * serves a document a crawler reads by name. A `form` route decides its page under `index`.
200
201
  */
201
202
  function sitemapDecision(helper, pattern) {
202
- let required = /[:*][A-Za-z_$]/.test(pattern.replace(/\([^)]*\)/g, ""));
203
- let page = required ? "[]" : "true";
203
+ let path = pattern.replace(/\([^)]*\)/g, "");
204
+ let required = /[:*][A-Za-z_$]/.test(path);
205
+ let file = /\.[A-Za-z0-9]+$/.test(path);
206
+ let page = iife(() => {
207
+ if (file)
208
+ return "false";
209
+ return required ? "[]" : "true";
210
+ });
204
211
  return helper === "form" ? `{ index: ${page} }` : page;
205
212
  }
206
213
  /**
@@ -744,9 +751,9 @@ function mapAfter(file, module, local, statement, call, factory) {
744
751
  return success(inserted.data.source);
745
752
  }
746
753
  /**
747
- * The initializer in `app/initializers/` that imports `module` and calls `factory`, else the
748
- * first that imports it, else (unless `importing` is required) one that calls `factory`; `null`
749
- * when none does. Test files are skipped.
754
+ * The initializer in `app/initializers/` that imports `module` and calls `factory`, else one that
755
+ * maps `module`'s entries, else the first that imports it, else (unless `importing` is required)
756
+ * one that calls `factory`; `null` when none does. Test files are skipped.
750
757
  */
751
758
  async function findInitializer(root, module, factory, importing = "preferred") {
752
759
  let folder = "app/initializers";
@@ -764,9 +771,11 @@ async function findInitializer(root, module, factory, importing = "preferred") {
764
771
  let aliased = await declaresAlias(root);
765
772
  for (let file of files)
766
773
  file.aliased = aliased;
767
- let calling = factory === null ? null : new RegExp(`\\b${factory}\\(`);
774
+ let calling = factory === null ? null : new RegExp(`\\b${callOf(factory)}`);
768
775
  let importers = files.filter((file) => file.references.some((reference) => reference.kind === "import" && resolvesTo(reference.specifier, file.path, module)));
769
- let found = importers.find((file) => calling?.test(file.source) ?? true) ?? importers[0];
776
+ let found = importers.find((file) => calling?.test(file.source) ?? true) ??
777
+ importers.find((file) => mapsFrom(file, module)) ??
778
+ importers[0];
770
779
  if (found !== undefined)
771
780
  return found;
772
781
  if (calling === null || importing === "required")
@@ -794,9 +803,21 @@ async function readSource(root, path) {
794
803
  }
795
804
  /** The variable the instance `factory` creates is bound to, such as `dispatcher` or `router`. */
796
805
  function instanceOf(file, factory) {
797
- let match = new RegExp(`(?:const|let|var)\\s+([A-Za-z_$][\\w$]*)\\s*=\\s*${factory}\\(`).exec(file.source);
806
+ let match = new RegExp(`(?:const|let|var)\\s+([A-Za-z_$][\\w$]*)\\s*=\\s*${callOf(factory)}`).exec(file.source);
798
807
  return match?.[1] ?? INSTANCE_NAMES[factory] ?? "dispatcher";
799
808
  }
809
+ /**
810
+ * The pattern of a call to `factory`, with or without type arguments, so a typed
811
+ * `createRouter<AppContext>(…)` is found like a plain `createRouter(…)`.
812
+ */
813
+ function callOf(factory) {
814
+ return `${factory}\\s*(?:<[^()]*>)?\\s*\\(`;
815
+ }
816
+ /** Whether `file` passes an entry of `module`'s default export to a `.map(…)` call. */
817
+ function mapsFrom(file, module) {
818
+ let local = defaultLocal(file, module);
819
+ return local !== null && new RegExp(`\\.map\\(\\s*${local}\\.`).test(file.source);
820
+ }
800
821
  /** The local name `file` binds the default export of `module` to, or `null`. */
801
822
  function defaultLocal(file, module) {
802
823
  for (let reference of file.references) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdxc/kit",
3
- "version": "2026.10.30",
3
+ "version": "2026.11.1",
4
4
  "description": "The sdxc command line: start a Remix v3 app, generate its files, copy UI components into it and upgrade it",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -29,7 +29,7 @@
29
29
  "peerDependencies": {
30
30
  "remix": "3.1.0"
31
31
  },
32
- "gitHead": "b76637cea65a8310f966862a15bcaeb5a657d7b0",
32
+ "gitHead": "f7be74972f816014332c35618b88f529c0bad397",
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accordion",
3
- "changedIn": "2026.10.29",
3
+ "changedIn": "2026.11.1",
4
4
  "dependencies": [
5
5
  "disclosure"
6
6
  ],
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "source": {
11
11
  "path": "accordion.tsx",
12
- "content": "/**\n * A set of expand/collapse sections built on {@link Disclosure}, stacked into\n * one divider-separated list. Each section holds its state on its native\n * `<details>` element; giving sibling {@link Accordion.Item}s the same `name`\n * makes the set exclusive through the platform's `<details name>` behavior,\n * closing whichever section was open as another opens.\n *\n * @author [Sergio Xalambrí](https://sergiodxa.com)\n * @copyright Sergio Xalambrí 2026\n */\n\nimport type { Handle, Props as TagProps, RemixNode } from \"remix/component\";\n\nimport { bg, borderEdge, fg } from \"@sdxc/u/color\";\nimport { opacity, rounded, transition, transitionDuration } from \"@sdxc/u/effects\";\nimport { justify, shrink } from \"@sdxc/u/layout\";\nimport { media } from \"@sdxc/u/responsive\";\nimport { bs, is, pb, pbe, pi } from \"@sdxc/u/size\";\nimport { hover, open, when } from \"@sdxc/u/state\";\nimport { rotate } from \"@sdxc/u/transform\";\nimport { pretty, text, textDecoration } from \"@sdxc/u/typography\";\n\nimport { Disclosure } from \"@sdxc/ui/disclosure\";\n\n/**\n * Prop types for {@link Accordion} and its compound parts.\n */\nexport namespace Accordion {\n\t/**\n\t * Props accepted by {@link Accordion}.\n\t */\n\texport interface Props extends TagProps<\"div\"> {\n\t\t/** One or more {@link Accordion.Item} sections to stack into a list. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Every prop {@link Disclosure.Props} accepts, unchanged: the section's\n\t * `open` state and, when set to the same value across siblings, the\n\t * `name` that makes the group exclusive.\n\t */\n\texport interface ItemProps extends Disclosure.Props {}\n\n\t/** Every prop {@link Disclosure.TriggerProps} accepts, unchanged. */\n\texport interface TriggerProps extends Disclosure.TriggerProps {}\n\n\t/** Every prop {@link Disclosure.PanelProps} accepts, unchanged. */\n\texport interface ContentProps extends Disclosure.PanelProps {}\n}\n\n/**\n * Renders the list's root host: a plain `<div>` that stacks\n * {@link Accordion.Item} sections in normal block flow, each drawing its own\n * divider so the whole list reads as one continuous group. A marketing FAQ\n * lays two of these in a container-query grid under a {@link MarketingHeader},\n * sharing one `name` across columns so only one item opens at a time.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the list's markup.\n * @example\n * <Accordion>\n * \t<Accordion.Item>\n * \t\t<Accordion.Trigger>\n * \t\t\t{t(\"faq.refunds.question\")}\n * \t\t\t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * \t\t</Accordion.Trigger>\n * \t\t<Accordion.Content>\n * \t\t\t<p>{t(\"faq.refunds.answer\")}</p>\n * \t\t</Accordion.Content>\n * \t</Accordion.Item>\n * \t<Accordion.Item>\n * \t\t<Accordion.Trigger>\n * \t\t\t{t(\"faq.shipping.question\")}\n * \t\t\t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * \t\t</Accordion.Trigger>\n * \t\t<Accordion.Content>\n * \t\t\t<p>{t(\"faq.shipping.answer\")}</p>\n * \t\t</Accordion.Content>\n * \t</Accordion.Item>\n * </Accordion>\n * @example\n * <Accordion>\n * \t<Accordion.Item name=\"faq\" open>\n * \t\t<Accordion.Trigger>\n * \t\t\t{t(\"faq.refunds.question\")}\n * \t\t\t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * \t\t</Accordion.Trigger>\n * \t\t<Accordion.Content>\n * \t\t\t<p>{t(\"faq.refunds.answer\")}</p>\n * \t\t</Accordion.Content>\n * \t</Accordion.Item>\n * \t<Accordion.Item name=\"faq\">\n * \t\t<Accordion.Trigger>\n * \t\t\t{t(\"faq.shipping.question\")}\n * \t\t\t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * \t\t</Accordion.Trigger>\n * \t\t<Accordion.Content>\n * \t\t\t<p>{t(\"faq.shipping.answer\")}</p>\n * \t\t</Accordion.Content>\n * \t</Accordion.Item>\n * </Accordion>\n */\nexport function Accordion(handle: Handle<Accordion.Props>) {\n\treturn () => {\n\t\tlet { children, mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<div {...rest} mix={[is(\"full\"), mix]}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t};\n}\n\n/**\n * Renders one section as {@link Disclosure} restyled into a flush list row:\n * only a shared block-end divider survives, restored block-start on the first\n * section. A trigger marked `aria-disabled=\"true\"` dims the whole section.\n *\n * @param handle Runtime handle carrying the host `<details>`'s props.\n * @returns The render function producing the section's markup.\n * @example\n * <Accordion.Item>\n * \t<Accordion.Trigger>\n * \t\t{t(\"faq.refunds.question\")}\n * \t\t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * \t</Accordion.Trigger>\n * \t<Accordion.Content>\n * \t\t<p>{t(\"faq.refunds.answer\")}</p>\n * \t</Accordion.Content>\n * </Accordion.Item>\n * @example\n * <Accordion.Item name=\"faq\" open>\n * \t<Accordion.Trigger>\n * \t\t{t(\"faq.refunds.question\")}\n * \t\t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * \t</Accordion.Trigger>\n * \t<Accordion.Content>\n * \t\t<p>{t(\"faq.refunds.answer\")}</p>\n * \t</Accordion.Content>\n * </Accordion.Item>\n */\nAccordion.Item = function AccordionItem(handle: Handle<Accordion.ItemProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<Disclosure\n\t\t\t\t{...rest}\n\t\t\t\tmix={[\n\t\t\t\t\trounded(\"none\"),\n\t\t\t\t\tborderEdge(\"inline-start\", { width: \"0\", noStyleDefault: true }),\n\t\t\t\t\tborderEdge(\"inline-end\", { width: \"0\", noStyleDefault: true }),\n\t\t\t\t\tborderEdge(\"block-start\", { width: \"0\", noStyleDefault: true }),\n\t\t\t\t\topen(when('& summary [data-slot=\"icon\"]', rotate(180))),\n\t\t\t\t\twhen(\"&:first-child\", borderEdge(\"block-start\", { width: 1 })),\n\t\t\t\t\twhen('&:has(> summary[aria-disabled=\"true\"])', opacity(50)),\n\t\t\t\t\tmix,\n\t\t\t\t]}\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Renders {@link Accordion.TriggerProps.children} as the section's label row,\n * spread to opposite ends and underlined on hover. An icon element carrying\n * `data-slot=\"icon\"` rotates 180 degrees while its section is open.\n *\n * @param handle Runtime handle carrying the host `<summary>`'s props.\n * @returns The render function producing the label row's markup.\n * @example\n * <Accordion.Trigger>\n * \t{t(\"faq.refunds.question\")}\n * \t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * </Accordion.Trigger>\n * @example\n * <Accordion.Trigger aria-disabled=\"true\">\n * \t{t(\"faq.archived.question\")}\n * \t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * </Accordion.Trigger>\n */\nAccordion.Trigger = function AccordionTrigger(handle: Handle<Accordion.TriggerProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<Disclosure.Trigger\n\t\t\t\t{...rest}\n\t\t\t\tmix={[\n\t\t\t\t\tjustify(\"between\"),\n\t\t\t\t\tpb(4),\n\t\t\t\t\tpi(0),\n\t\t\t\t\trounded(\"none\"),\n\t\t\t\t\thover([bg(\"transparent\"), textDecoration(\"underline\")]),\n\t\t\t\t\twhen('& [data-slot=\"icon\"]', [\n\t\t\t\t\t\tis(4),\n\t\t\t\t\t\tbs(4),\n\t\t\t\t\t\tshrink(),\n\t\t\t\t\t\ttransition(\"transform\", { duration: \"200ms\" }),\n\t\t\t\t\t]),\n\t\t\t\t\tmedia(\n\t\t\t\t\t\t\"(prefers-reduced-motion: reduce)\",\n\t\t\t\t\t\twhen('& [data-slot=\"icon\"]', transitionDuration(\"0s\")),\n\t\t\t\t\t),\n\t\t\t\t\tmix,\n\t\t\t\t]}\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Renders {@link Accordion.ContentProps.children} as the section's revealed body:\n * {@link Disclosure.Panel} running edge to edge like its trigger, with block-end\n * padding and small, muted text sized for supporting copy.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the body's markup.\n * @example\n * <Accordion.Content>\n * \t<p>{t(\"faq.refunds.answer\")}</p>\n * </Accordion.Content>\n */\nAccordion.Content = function AccordionContent(handle: Handle<Accordion.ContentProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<Disclosure.Panel {...rest} mix={[pi(0), pbe(4), fg(\"neutral\"), text(\"sm\"), pretty(), mix]} />\n\t\t);\n\t};\n};\n"
12
+ "content": "/**\n * A set of expand/collapse sections built on {@link Disclosure}, stacked into\n * one divider-separated list. Each section holds its state on its native\n * `<details>` element; giving sibling {@link Accordion.Item}s the same `name`\n * makes the set exclusive through the platform's `<details name>` behavior,\n * closing whichever section was open as another opens.\n *\n * @author [Sergio Xalambrí](https://sergiodxa.com)\n * @copyright Sergio Xalambrí 2026\n */\n\nimport type { Handle, Props as TagProps, RemixNode } from \"remix/component\";\n\nimport { bg, borderEdge, fg } from \"@sdxc/u/color\";\nimport { opacity, rounded, transition, transitionDuration } from \"@sdxc/u/effects\";\nimport { raw, mergeMix } from \"@sdxc/u/general\";\nimport { justify, shrink } from \"@sdxc/u/layout\";\nimport { media } from \"@sdxc/u/responsive\";\nimport { bs, is, pb, pbe, pi } from \"@sdxc/u/size\";\nimport { hover, open, when } from \"@sdxc/u/state\";\nimport { rotate } from \"@sdxc/u/transform\";\nimport { pretty, text, textDecoration } from \"@sdxc/u/typography\";\n\nimport { Disclosure } from \"@sdxc/ui/disclosure\";\n\n/**\n * Prop types for {@link Accordion} and its compound parts.\n */\nexport namespace Accordion {\n\t/**\n\t * Props accepted by {@link Accordion}.\n\t */\n\texport interface Props extends TagProps<\"div\"> {\n\t\t/** One or more {@link Accordion.Item} sections to stack into a list. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Every prop {@link Disclosure.Props} accepts, unchanged: the section's\n\t * `open` state and, when set to the same value across siblings, the\n\t * `name` that makes the group exclusive.\n\t */\n\texport interface ItemProps extends Disclosure.Props {}\n\n\t/** Every prop {@link Disclosure.TriggerProps} accepts, unchanged. */\n\texport interface TriggerProps extends Disclosure.TriggerProps {}\n\n\t/** Every prop {@link Disclosure.PanelProps} accepts, unchanged. */\n\texport interface ContentProps extends Disclosure.PanelProps {}\n}\n\n/**\n * Renders the list's root host: a plain `<div>` that stacks\n * {@link Accordion.Item} sections in normal block flow under one top rule, each\n * drawing the divider below it, so the list reads as one group. A landing FAQ\n * lays two of these in a container-query grid under a {@link LandingHeader},\n * sharing one `name` across columns so only one item opens at a time.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the list's markup.\n * @example\n * <Accordion>\n * \t<Accordion.Item>\n * \t\t<Accordion.Trigger>\n * \t\t\t{t(\"faq.refunds.question\")}\n * \t\t\t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * \t\t</Accordion.Trigger>\n * \t\t<Accordion.Content>\n * \t\t\t<p>{t(\"faq.refunds.answer\")}</p>\n * \t\t</Accordion.Content>\n * \t</Accordion.Item>\n * \t<Accordion.Item>\n * \t\t<Accordion.Trigger>\n * \t\t\t{t(\"faq.shipping.question\")}\n * \t\t\t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * \t\t</Accordion.Trigger>\n * \t\t<Accordion.Content>\n * \t\t\t<p>{t(\"faq.shipping.answer\")}</p>\n * \t\t</Accordion.Content>\n * \t</Accordion.Item>\n * </Accordion>\n * @example\n * <Accordion>\n * \t<Accordion.Item name=\"faq\" open>\n * \t\t<Accordion.Trigger>\n * \t\t\t{t(\"faq.refunds.question\")}\n * \t\t\t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * \t\t</Accordion.Trigger>\n * \t\t<Accordion.Content>\n * \t\t\t<p>{t(\"faq.refunds.answer\")}</p>\n * \t\t</Accordion.Content>\n * \t</Accordion.Item>\n * \t<Accordion.Item name=\"faq\">\n * \t\t<Accordion.Trigger>\n * \t\t\t{t(\"faq.shipping.question\")}\n * \t\t\t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * \t\t</Accordion.Trigger>\n * \t\t<Accordion.Content>\n * \t\t\t<p>{t(\"faq.shipping.answer\")}</p>\n * \t\t</Accordion.Content>\n * \t</Accordion.Item>\n * </Accordion>\n */\nexport function Accordion(handle: Handle<Accordion.Props>) {\n\treturn () => {\n\t\tlet { children, mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\t{...rest}\n\t\t\t\tmix={mergeMix(\n\t\t\t\t\t[is(\"full\"), borderEdge(\"block-start\", { color: \"neutral\", width: 1, style: \"solid\" })],\n\t\t\t\t\tmix,\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t};\n}\n\n/**\n * Renders one section as {@link Disclosure} restyled into a flush list row:\n * only a block-end divider survives, and {@link Accordion} draws the top rule, so\n * every closed section is the same height. A trigger marked `aria-disabled=\"true\"`\n * dims the whole section.\n *\n * @param handle Runtime handle carrying the host `<details>`'s props.\n * @returns The render function producing the section's markup.\n * @example\n * <Accordion.Item>\n * \t<Accordion.Trigger>\n * \t\t{t(\"faq.refunds.question\")}\n * \t\t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * \t</Accordion.Trigger>\n * \t<Accordion.Content>\n * \t\t<p>{t(\"faq.refunds.answer\")}</p>\n * \t</Accordion.Content>\n * </Accordion.Item>\n * @example\n * <Accordion.Item name=\"faq\" open>\n * \t<Accordion.Trigger>\n * \t\t{t(\"faq.refunds.question\")}\n * \t\t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * \t</Accordion.Trigger>\n * \t<Accordion.Content>\n * \t\t<p>{t(\"faq.refunds.answer\")}</p>\n * \t</Accordion.Content>\n * </Accordion.Item>\n */\nAccordion.Item = function AccordionItem(handle: Handle<Accordion.ItemProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<Disclosure\n\t\t\t\t{...rest}\n\t\t\t\tmix={mergeMix(\n\t\t\t\t\t[\n\t\t\t\t\t\trounded(\"none\"),\n\t\t\t\t\t\tborderEdge(\"inline-start\", { width: \"0\", noStyleDefault: true }),\n\t\t\t\t\t\tborderEdge(\"inline-end\", { width: \"0\", noStyleDefault: true }),\n\t\t\t\t\t\tborderEdge(\"block-start\", { width: \"0\", noStyleDefault: true }),\n\t\t\t\t\t\topen(when('& summary [data-slot=\"icon\"]', rotate(180))),\n\t\t\t\t\t\twhen('&:has(> summary[aria-disabled=\"true\"])', opacity(50)),\n\t\t\t\t\t],\n\t\t\t\t\tmix,\n\t\t\t\t)}\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Renders {@link Accordion.TriggerProps.children} as the section's label row,\n * spread to opposite ends and underlined on hover. An icon element carrying\n * `data-slot=\"icon\"` rotates 180 degrees while its section is open.\n *\n * @param handle Runtime handle carrying the host `<summary>`'s props.\n * @returns The render function producing the label row's markup.\n * @example\n * <Accordion.Trigger>\n * \t{t(\"faq.refunds.question\")}\n * \t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * </Accordion.Trigger>\n * @example\n * <Accordion.Trigger aria-disabled=\"true\">\n * \t{t(\"faq.archived.question\")}\n * \t<ChevronDownIcon data-slot=\"icon\" aria-hidden />\n * </Accordion.Trigger>\n */\nAccordion.Trigger = function AccordionTrigger(handle: Handle<Accordion.TriggerProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<Disclosure.Trigger\n\t\t\t\t{...rest}\n\t\t\t\tmix={mergeMix(\n\t\t\t\t\t[\n\t\t\t\t\t\tjustify(\"between\"),\n\t\t\t\t\t\tpb(4),\n\t\t\t\t\t\tpi(0),\n\t\t\t\t\t\trounded(\"sm\"),\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * The row runs flush to the column edge, so the focus ring is drawn inside it\n\t\t\t\t\t\t * where an outer offset would be clipped by the band.\n\t\t\t\t\t\t */\n\t\t\t\t\t\twhen(\"&:focus-visible\", raw({ outlineOffset: \"-2px\" })),\n\t\t\t\t\t\thover([bg(\"transparent\"), textDecoration(\"underline\")]),\n\t\t\t\t\t\twhen('& [data-slot=\"icon\"]', [\n\t\t\t\t\t\t\tis(4),\n\t\t\t\t\t\t\tbs(4),\n\t\t\t\t\t\t\tshrink(),\n\t\t\t\t\t\t\ttransition(\"transform\", { duration: \"200ms\" }),\n\t\t\t\t\t\t]),\n\t\t\t\t\t\tmedia(\n\t\t\t\t\t\t\t\"(prefers-reduced-motion: reduce)\",\n\t\t\t\t\t\t\twhen('& [data-slot=\"icon\"]', transitionDuration(\"0s\")),\n\t\t\t\t\t\t),\n\t\t\t\t\t],\n\t\t\t\t\tmix,\n\t\t\t\t)}\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Renders {@link Accordion.ContentProps.children} as the section's revealed body:\n * {@link Disclosure.Panel} running edge to edge like its trigger, with block-end\n * padding and small, muted text sized for supporting copy.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the body's markup.\n * @example\n * <Accordion.Content>\n * \t<p>{t(\"faq.refunds.answer\")}</p>\n * </Accordion.Content>\n */\nAccordion.Content = function AccordionContent(handle: Handle<Accordion.ContentProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<Disclosure.Panel\n\t\t\t\t{...rest}\n\t\t\t\tmix={mergeMix([pi(0), pbe(4), fg(\"neutral\"), text(\"sm\"), pretty()], mix)}\n\t\t\t/>\n\t\t);\n\t};\n};\n"
13
13
  },
14
14
  "test": null
15
15
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alert-dialog",
3
- "changedIn": "2026.10.20",
3
+ "changedIn": "2026.11.1",
4
4
  "dependencies": [
5
5
  "button",
6
6
  "dialog",
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "source": {
13
13
  "path": "alert-dialog.tsx",
14
- "content": "/**\n * An interruptive modal surface that demands an explicit response before a\n * page continues — confirming a destructive action, surfacing a blocking\n * error — built on the native `<dialog>` host of {@link Dialog}, widened for\n * its two-button layout and sealed against light dismiss. Its compound parts\n * cover a header, title, description, and a two-control footer.\n *\n * @author [Sergio Xalambrí](https://sergiodxa.com)\n * @copyright Sergio Xalambrí 2026\n */\n\nimport type { Handle, Props as TagProps } from \"remix/component\";\n\nimport { fg } from \"@sdxc/u/color\";\nimport { flex, gap, justify, vstack } from \"@sdxc/u/layout\";\nimport { mbs } from \"@sdxc/u/size\";\nimport { balance, pretty, text, weight } from \"@sdxc/u/typography\";\n\nimport { Button } from \"@sdxc/ui/button\";\nimport { Dialog } from \"@sdxc/ui/dialog\";\nimport { resolveHeadingLevel, TAG_BY_LEVEL } from \"@sdxc/ui/heading-scope\";\n\n/**\n * Invoker Commands verb {@link AlertDialog.Action} and\n * {@link AlertDialog.Cancel} fall back to when `command` is omitted,\n * dismissing the ancestor AlertDialog named by `commandfor`.\n */\nconst DEFAULT_COMMAND = \"close\";\n\n/**\n * Native `button` `type` {@link AlertDialog.Action} and\n * {@link AlertDialog.Cancel} always spell out, since the platform runs an\n * Invoker Command only from a button typed `\"button\"`, `<form>` or not.\n */\nconst DEFAULT_TYPE: NonNullable<Button.Props[\"type\"]> = \"button\";\n\n/** Semantic color role {@link AlertDialog.Action} falls back to when `color` is omitted. */\nconst DEFAULT_ACTION_COLOR: Button.Color = \"danger\";\n\n/** Visual weight {@link AlertDialog.Cancel} falls back to when `variant` is omitted. */\nconst DEFAULT_CANCEL_VARIANT: Button.Variant = \"outline\";\n\n/** Semantic color role {@link AlertDialog.Cancel} falls back to when `color` is omitted. */\nconst DEFAULT_CANCEL_COLOR: Button.Color = \"neutral\";\n\n/**\n * Prop types for {@link AlertDialog} and its compound parts.\n */\nexport namespace AlertDialog {\n\t/**\n\t * Every prop {@link Dialog} accepts, minus the ones this component fixes:\n\t * `role` is always `\"alertdialog\"` and `closedby`/`closedBy` always\n\t * `\"closerequest\"`, so the panel closes only on an explicit close request.\n\t */\n\texport interface Props extends Omit<Dialog.Props, \"role\" | \"closedby\" | \"closedBy\"> {}\n\n\t/**\n\t * Props accepted by {@link AlertDialog.Header}.\n\t */\n\texport interface HeaderProps extends TagProps<\"div\"> {}\n\n\t/**\n\t * Props accepted by {@link AlertDialog.Title}. Every native heading-element\n\t * attribute applies, since the rendered tag follows the nearest ambient\n\t * heading level, falling back to `<h1>`.\n\t */\n\texport interface TitleProps extends TagProps<\"h1\"> {}\n\n\t/**\n\t * Props accepted by {@link AlertDialog.Description}.\n\t */\n\texport interface DescriptionProps extends TagProps<\"p\"> {}\n\n\t/**\n\t * Props accepted by {@link AlertDialog.Footer}.\n\t */\n\texport interface FooterProps extends TagProps<\"div\"> {}\n\n\t/**\n\t * Props accepted by {@link AlertDialog.Action}: every {@link Button.Props}\n\t * field except `commandfor`/`command`, which this type narrows.\n\t */\n\texport interface ActionProps extends Omit<Button.Props, \"commandfor\" | \"command\"> {\n\t\t/**\n\t\t * `id` of the ancestor {@link AlertDialog} this action dismisses.\n\t\t * Required for the default `type=\"button\"` action; a `type=\"submit\"`\n\t\t * action ends the interruption by submitting its enclosing form.\n\t\t */\n\t\tcommandfor?: string;\n\t\t/**\n\t\t * Invoker Commands verb dispatched to the target AlertDialog. Defaults\n\t\t * to `\"close\"`, and is dropped for a `\"submit\"` or `\"reset\"` action,\n\t\t * which the platform drives as a form control instead of an invoker.\n\t\t */\n\t\tcommand?: \"close\";\n\t}\n\n\t/**\n\t * Props accepted by {@link AlertDialog.Cancel}: every {@link Button.Props}\n\t * field except `commandfor`/`command`/`type`, which this type narrows.\n\t */\n\texport interface CancelProps extends Omit<Button.Props, \"commandfor\" | \"command\" | \"type\"> {\n\t\t/** `id` of the ancestor {@link AlertDialog} this cancel control dismisses. */\n\t\tcommandfor: string;\n\t\t/** Invoker Commands verb dispatched to the target AlertDialog. Defaults to `\"close\"`. */\n\t\tcommand?: \"close\";\n\t\t/**\n\t\t * Narrowed to the only value a cancel control carries, and always\n\t\t * rendered, since the platform runs its close command only from a\n\t\t * button typed `\"button\"`, including inside a `<form>`.\n\t\t */\n\t\ttype?: \"button\";\n\t}\n}\n\n/**\n * Renders the alert panel through {@link Dialog}, widened to fit a two-button\n * footer, with `role` fixed to `\"alertdialog\"` and `closedby` to\n * `\"closerequest\"` so the interruption clears through an explicit response.\n *\n * @param handle Runtime handle carrying the host `<dialog>`'s props.\n * @returns The render function producing the panel's markup.\n * @example\n * <Button commandfor=\"delete-project\" command=\"show-modal\" color=\"danger\">{t(\"project.delete\")}</Button>\n * <AlertDialog id=\"delete-project\" aria-labelledby=\"delete-project-title\">\n * \t<AlertDialog.Header>\n * \t\t<AlertDialog.Title id=\"delete-project-title\">{t(\"project.deleteTitle\")}</AlertDialog.Title>\n * \t\t<AlertDialog.Description>{t(\"project.deleteDescription\")}</AlertDialog.Description>\n * \t</AlertDialog.Header>\n * \t<AlertDialog.Footer>\n * \t\t<AlertDialog.Cancel commandfor=\"delete-project\">{t(\"actions.cancel\")}</AlertDialog.Cancel>\n * \t\t<AlertDialog.Action commandfor=\"delete-project\">{t(\"actions.delete\")}</AlertDialog.Action>\n * \t</AlertDialog.Footer>\n * </AlertDialog>\n */\nexport function AlertDialog(handle: Handle<AlertDialog.Props>) {\n\treturn () => {\n\t\tlet { children, mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<Dialog {...rest} role=\"alertdialog\" closedby=\"closerequest\" mix={mix}>\n\t\t\t\t{children}\n\t\t\t</Dialog>\n\t\t);\n\t};\n}\n\n/**\n * Renders {@link AlertDialog.HeaderProps.children} as the panel's header\n * slot: a column stacking {@link AlertDialog.Title} and\n * {@link AlertDialog.Description} with a small gap between them.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the header slot's markup.\n * @example\n * <AlertDialog.Header>\n * \t<AlertDialog.Title>{t(\"project.deleteTitle\")}</AlertDialog.Title>\n * \t<AlertDialog.Description>{t(\"project.deleteDescription\")}</AlertDialog.Description>\n * </AlertDialog.Header>\n */\nAlertDialog.Header = function AlertDialogHeader(handle: Handle<AlertDialog.HeaderProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn <div {...rest} data-slot=\"header\" mix={[vstack({ gap: 2 }), mix]} />;\n\t};\n};\n\n/**\n * Renders {@link AlertDialog.TitleProps.children} as the panel's heading,\n * inside the native heading element matching the nearest ancestor\n * `HeadingScope`'s depth, or `<h1>` where no scope wraps it.\n *\n * @param handle Runtime handle carrying the host heading element's props.\n * @returns The render function producing the heading's markup.\n * @example\n * <AlertDialog.Title>{t(\"project.deleteTitle\")}</AlertDialog.Title>\n */\nAlertDialog.Title = function AlertDialogTitle(handle: Handle<AlertDialog.TitleProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\t\tlet resolved = resolveHeadingLevel(handle);\n\t\tlet Tag = TAG_BY_LEVEL[resolved];\n\n\t\treturn (\n\t\t\t<Tag\n\t\t\t\t{...rest}\n\t\t\t\tdata-slot=\"title\"\n\t\t\t\tmix={[fg(\"neutral.emphasis\"), weight(\"semibold\"), text(\"lg\"), balance(), mix]}\n\t\t\t>\n\t\t\t\t{rest.children}\n\t\t\t</Tag>\n\t\t);\n\t};\n};\n\n/**\n * Renders {@link AlertDialog.DescriptionProps.children} as the panel's\n * supporting copy, in a native `<p>` set to the panel's muted foreground\n * color so it reads as secondary to {@link AlertDialog.Title}.\n *\n * @param handle Runtime handle carrying the host `<p>`'s props.\n * @returns The render function producing the description's markup.\n * @example\n * <AlertDialog.Description>{t(\"project.deleteDescription\")}</AlertDialog.Description>\n */\nAlertDialog.Description = function AlertDialogDescription(\n\thandle: Handle<AlertDialog.DescriptionProps>,\n) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<p {...rest} data-slot=\"description\" mix={[fg(\"neutral.muted\"), text(\"sm\"), pretty(), mix]}>\n\t\t\t\t{rest.children}\n\t\t\t</p>\n\t\t);\n\t};\n};\n\n/**\n * Renders {@link AlertDialog.FooterProps.children} as an end-aligned action\n * row. Compose {@link AlertDialog.Cancel} before {@link AlertDialog.Action}\n * so the emphasized, potentially destructive control renders last.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the action row's markup.\n * @example\n * <AlertDialog.Footer>\n * \t<AlertDialog.Cancel commandfor=\"delete-project\">{t(\"actions.cancel\")}</AlertDialog.Cancel>\n * \t<AlertDialog.Action commandfor=\"delete-project\">{t(\"actions.delete\")}</AlertDialog.Action>\n * </AlertDialog.Footer>\n */\nAlertDialog.Footer = function AlertDialogFooter(handle: Handle<AlertDialog.FooterProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn <div {...rest} data-slot=\"footer\" mix={[gap(2), mbs(6), flex(), justify(\"end\"), mix]} />;\n\t};\n};\n\n/**\n * Renders the panel's emphasized action as a danger-toned {@link Button},\n * typed `\"button\"` so its `command=\"close\"` reaches the {@link AlertDialog}\n * named by `commandfor`; `type=\"submit\"` submits the enclosing form instead.\n *\n * @param handle Runtime handle carrying the host button's props.\n * @returns The render function producing the action's markup.\n * @example\n * <AlertDialog.Action commandfor=\"delete-project\">{t(\"actions.delete\")}</AlertDialog.Action>\n * @example\n * <AlertDialog.Action commandfor=\"publish-post\" color=\"brand\">{t(\"actions.publish\")}</AlertDialog.Action>\n * @example\n * <AlertDialog.Action type=\"submit\" name=\"intent\" value=\"delete\">{t(\"actions.delete\")}</AlertDialog.Action>\n */\nAlertDialog.Action = function AlertDialogAction(handle: Handle<AlertDialog.ActionProps>) {\n\treturn () => {\n\t\tlet { type, color, command, commandfor, ...rest } = handle.props;\n\t\tlet resolvedType = type ?? DEFAULT_TYPE;\n\t\tlet isInvoker = resolvedType === \"button\";\n\t\tlet resolvedColor = color ?? DEFAULT_ACTION_COLOR;\n\n\t\tif (import.meta.env?.DEV && isInvoker && !commandfor) {\n\t\t\tconsole.warn(\n\t\t\t\t'AlertDialog.Action: needs \"commandfor\" naming the panel it dismisses, or type=\"submit\" to submit its enclosing form instead — as rendered, pressing it does nothing.',\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Button\n\t\t\t\t{...rest}\n\t\t\t\ttype={resolvedType}\n\t\t\t\tcolor={resolvedColor}\n\t\t\t\tcommandfor={isInvoker ? commandfor : undefined}\n\t\t\t\tcommand={isInvoker ? (command ?? DEFAULT_COMMAND) : undefined}\n\t\t\t\tdata-slot=\"action\"\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Renders the panel's dismiss control as an outline, neutral {@link Button}\n * with `type` fixed to `\"button\"`, so its `command=\"close\"` reaches the\n * {@link AlertDialog} named by `commandfor` from inside a `<form>` too.\n *\n * @param handle Runtime handle carrying the host button's props.\n * @returns The render function producing the cancel control's markup.\n * @example\n * <AlertDialog.Cancel commandfor=\"delete-project\">{t(\"actions.cancel\")}</AlertDialog.Cancel>\n */\nAlertDialog.Cancel = function AlertDialogCancel(handle: Handle<AlertDialog.CancelProps>) {\n\treturn () => {\n\t\tlet { variant, color, command, ...rest } = handle.props;\n\t\tlet resolvedVariant = variant ?? DEFAULT_CANCEL_VARIANT;\n\t\tlet resolvedColor = color ?? DEFAULT_CANCEL_COLOR;\n\t\tlet resolvedCommand = command ?? DEFAULT_COMMAND;\n\n\t\treturn (\n\t\t\t<Button\n\t\t\t\t{...rest}\n\t\t\t\ttype={DEFAULT_TYPE}\n\t\t\t\tvariant={resolvedVariant}\n\t\t\t\tcolor={resolvedColor}\n\t\t\t\tcommand={resolvedCommand}\n\t\t\t\tdata-slot=\"cancel\"\n\t\t\t/>\n\t\t);\n\t};\n};\n"
14
+ "content": "/**\n * An interruptive modal surface that demands an explicit response before a\n * page continues — confirming a destructive action, surfacing a blocking\n * error — built on the native `<dialog>` host of {@link Dialog}, widened for\n * its two-button layout and sealed against light dismiss. Its compound parts\n * cover a header, title, description, and a two-control footer.\n *\n * @author [Sergio Xalambrí](https://sergiodxa.com)\n * @copyright Sergio Xalambrí 2026\n */\n\nimport type { Handle, Props as TagProps } from \"remix/component\";\n\nimport { fg } from \"@sdxc/u/color\";\nimport { mergeMix } from \"@sdxc/u/general\";\nimport { flex, gap, justify, vstack } from \"@sdxc/u/layout\";\nimport { mbs } from \"@sdxc/u/size\";\nimport { balance, pretty, text, weight } from \"@sdxc/u/typography\";\n\nimport { Button } from \"@sdxc/ui/button\";\nimport { Dialog } from \"@sdxc/ui/dialog\";\nimport { resolveHeadingLevel, TAG_BY_LEVEL } from \"@sdxc/ui/heading-scope\";\n\n/**\n * Invoker Commands verb {@link AlertDialog.Action} and\n * {@link AlertDialog.Cancel} fall back to when `command` is omitted,\n * dismissing the ancestor AlertDialog named by `commandfor`.\n */\nconst DEFAULT_COMMAND = \"close\";\n\n/**\n * Native `button` `type` {@link AlertDialog.Action} and\n * {@link AlertDialog.Cancel} always spell out, since the platform runs an\n * Invoker Command only from a button typed `\"button\"`, `<form>` or not.\n */\nconst DEFAULT_TYPE: NonNullable<Button.Props[\"type\"]> = \"button\";\n\n/** Semantic color role {@link AlertDialog.Action} falls back to when `color` is omitted. */\nconst DEFAULT_ACTION_COLOR: Button.Color = \"danger\";\n\n/** Visual weight {@link AlertDialog.Cancel} falls back to when `variant` is omitted. */\nconst DEFAULT_CANCEL_VARIANT: Button.Variant = \"outline\";\n\n/** Semantic color role {@link AlertDialog.Cancel} falls back to when `color` is omitted. */\nconst DEFAULT_CANCEL_COLOR: Button.Color = \"neutral\";\n\n/**\n * Prop types for {@link AlertDialog} and its compound parts.\n */\nexport namespace AlertDialog {\n\t/**\n\t * Every prop {@link Dialog} accepts, minus the ones this component fixes:\n\t * `role` is always `\"alertdialog\"` and `closedby`/`closedBy` always\n\t * `\"closerequest\"`, so the panel closes only on an explicit close request.\n\t */\n\texport interface Props extends Omit<Dialog.Props, \"role\" | \"closedby\" | \"closedBy\"> {}\n\n\t/**\n\t * Props accepted by {@link AlertDialog.Header}.\n\t */\n\texport interface HeaderProps extends TagProps<\"div\"> {}\n\n\t/**\n\t * Props accepted by {@link AlertDialog.Title}. Every native heading-element\n\t * attribute applies, since the rendered tag follows the nearest ambient\n\t * heading level, falling back to `<h1>`.\n\t */\n\texport interface TitleProps extends TagProps<\"h1\"> {}\n\n\t/**\n\t * Props accepted by {@link AlertDialog.Description}.\n\t */\n\texport interface DescriptionProps extends TagProps<\"p\"> {}\n\n\t/**\n\t * Props accepted by {@link AlertDialog.Footer}.\n\t */\n\texport interface FooterProps extends TagProps<\"div\"> {}\n\n\t/**\n\t * Props accepted by {@link AlertDialog.Action}: every {@link Button.Props}\n\t * field except `commandfor`/`command`, which this type narrows.\n\t */\n\texport interface ActionProps extends Omit<Button.Props, \"commandfor\" | \"command\"> {\n\t\t/**\n\t\t * `id` of the ancestor {@link AlertDialog} this action dismisses.\n\t\t * Required for the default `type=\"button\"` action; a `type=\"submit\"`\n\t\t * action ends the interruption by submitting its enclosing form.\n\t\t */\n\t\tcommandfor?: string;\n\t\t/**\n\t\t * Invoker Commands verb dispatched to the target AlertDialog. Defaults\n\t\t * to `\"close\"`, and is dropped for a `\"submit\"` or `\"reset\"` action,\n\t\t * which the platform drives as a form control instead of an invoker.\n\t\t */\n\t\tcommand?: \"close\";\n\t}\n\n\t/**\n\t * Props accepted by {@link AlertDialog.Cancel}: every {@link Button.Props}\n\t * field except `commandfor`/`command`/`type`, which this type narrows.\n\t */\n\texport interface CancelProps extends Omit<Button.Props, \"commandfor\" | \"command\" | \"type\"> {\n\t\t/** `id` of the ancestor {@link AlertDialog} this cancel control dismisses. */\n\t\tcommandfor: string;\n\t\t/** Invoker Commands verb dispatched to the target AlertDialog. Defaults to `\"close\"`. */\n\t\tcommand?: \"close\";\n\t\t/**\n\t\t * Narrowed to the only value a cancel control carries, and always\n\t\t * rendered, since the platform runs its close command only from a\n\t\t * button typed `\"button\"`, including inside a `<form>`.\n\t\t */\n\t\ttype?: \"button\";\n\t}\n}\n\n/**\n * Renders the alert panel through {@link Dialog}, widened to fit a two-button\n * footer, with `role` fixed to `\"alertdialog\"` and `closedby` to\n * `\"closerequest\"` so the interruption clears through an explicit response.\n *\n * @param handle Runtime handle carrying the host `<dialog>`'s props.\n * @returns The render function producing the panel's markup.\n * @example\n * <Button commandfor=\"delete-project\" command=\"show-modal\" color=\"danger\">{t(\"project.delete\")}</Button>\n * <AlertDialog id=\"delete-project\" aria-labelledby=\"delete-project-title\">\n * \t<AlertDialog.Header>\n * \t\t<AlertDialog.Title id=\"delete-project-title\">{t(\"project.deleteTitle\")}</AlertDialog.Title>\n * \t\t<AlertDialog.Description>{t(\"project.deleteDescription\")}</AlertDialog.Description>\n * \t</AlertDialog.Header>\n * \t<AlertDialog.Footer>\n * \t\t<AlertDialog.Cancel commandfor=\"delete-project\">{t(\"actions.cancel\")}</AlertDialog.Cancel>\n * \t\t<AlertDialog.Action commandfor=\"delete-project\">{t(\"actions.delete\")}</AlertDialog.Action>\n * \t</AlertDialog.Footer>\n * </AlertDialog>\n */\nexport function AlertDialog(handle: Handle<AlertDialog.Props>) {\n\treturn () => {\n\t\tlet { children, mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<Dialog {...rest} role=\"alertdialog\" closedby=\"closerequest\" mix={mix}>\n\t\t\t\t{children}\n\t\t\t</Dialog>\n\t\t);\n\t};\n}\n\n/**\n * Renders {@link AlertDialog.HeaderProps.children} as the panel's header\n * slot: a column stacking {@link AlertDialog.Title} and\n * {@link AlertDialog.Description} with a small gap between them.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the header slot's markup.\n * @example\n * <AlertDialog.Header>\n * \t<AlertDialog.Title>{t(\"project.deleteTitle\")}</AlertDialog.Title>\n * \t<AlertDialog.Description>{t(\"project.deleteDescription\")}</AlertDialog.Description>\n * </AlertDialog.Header>\n */\nAlertDialog.Header = function AlertDialogHeader(handle: Handle<AlertDialog.HeaderProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn <div {...rest} data-slot=\"header\" mix={mergeMix(vstack({ gap: 2 }), mix)} />;\n\t};\n};\n\n/**\n * Renders {@link AlertDialog.TitleProps.children} as the panel's heading,\n * inside the native heading element matching the nearest ancestor\n * `HeadingScope`'s depth, or `<h1>` where no scope wraps it.\n *\n * @param handle Runtime handle carrying the host heading element's props.\n * @returns The render function producing the heading's markup.\n * @example\n * <AlertDialog.Title>{t(\"project.deleteTitle\")}</AlertDialog.Title>\n */\nAlertDialog.Title = function AlertDialogTitle(handle: Handle<AlertDialog.TitleProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\t\tlet resolved = resolveHeadingLevel(handle);\n\t\tlet Tag = TAG_BY_LEVEL[resolved];\n\n\t\treturn (\n\t\t\t<Tag\n\t\t\t\t{...rest}\n\t\t\t\tdata-slot=\"title\"\n\t\t\t\tmix={mergeMix([fg(\"neutral.emphasis\"), weight(\"semibold\"), text(\"lg\"), balance()], mix)}\n\t\t\t>\n\t\t\t\t{rest.children}\n\t\t\t</Tag>\n\t\t);\n\t};\n};\n\n/**\n * Renders {@link AlertDialog.DescriptionProps.children} as the panel's\n * supporting copy, in a native `<p>` set to the panel's muted foreground\n * color so it reads as secondary to {@link AlertDialog.Title}.\n *\n * @param handle Runtime handle carrying the host `<p>`'s props.\n * @returns The render function producing the description's markup.\n * @example\n * <AlertDialog.Description>{t(\"project.deleteDescription\")}</AlertDialog.Description>\n */\nAlertDialog.Description = function AlertDialogDescription(\n\thandle: Handle<AlertDialog.DescriptionProps>,\n) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<p\n\t\t\t\t{...rest}\n\t\t\t\tdata-slot=\"description\"\n\t\t\t\tmix={mergeMix([fg(\"neutral.muted\"), text(\"sm\"), pretty()], mix)}\n\t\t\t>\n\t\t\t\t{rest.children}\n\t\t\t</p>\n\t\t);\n\t};\n};\n\n/**\n * Renders {@link AlertDialog.FooterProps.children} as an end-aligned action\n * row. Compose {@link AlertDialog.Cancel} before {@link AlertDialog.Action}\n * so the emphasized, potentially destructive control renders last.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the action row's markup.\n * @example\n * <AlertDialog.Footer>\n * \t<AlertDialog.Cancel commandfor=\"delete-project\">{t(\"actions.cancel\")}</AlertDialog.Cancel>\n * \t<AlertDialog.Action commandfor=\"delete-project\">{t(\"actions.delete\")}</AlertDialog.Action>\n * </AlertDialog.Footer>\n */\nAlertDialog.Footer = function AlertDialogFooter(handle: Handle<AlertDialog.FooterProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\t{...rest}\n\t\t\t\tdata-slot=\"footer\"\n\t\t\t\tmix={mergeMix([gap(2), mbs(6), flex(), justify(\"end\")], mix)}\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Renders the panel's emphasized action as a danger-toned {@link Button},\n * typed `\"button\"` so its `command=\"close\"` reaches the {@link AlertDialog}\n * named by `commandfor`; `type=\"submit\"` submits the enclosing form instead.\n *\n * @param handle Runtime handle carrying the host button's props.\n * @returns The render function producing the action's markup.\n * @example\n * <AlertDialog.Action commandfor=\"delete-project\">{t(\"actions.delete\")}</AlertDialog.Action>\n * @example\n * <AlertDialog.Action commandfor=\"publish-post\" color=\"brand\">{t(\"actions.publish\")}</AlertDialog.Action>\n * @example\n * <AlertDialog.Action type=\"submit\" name=\"intent\" value=\"delete\">{t(\"actions.delete\")}</AlertDialog.Action>\n */\nAlertDialog.Action = function AlertDialogAction(handle: Handle<AlertDialog.ActionProps>) {\n\treturn () => {\n\t\tlet { type, color, command, commandfor, ...rest } = handle.props;\n\t\tlet resolvedType = type ?? DEFAULT_TYPE;\n\t\tlet isInvoker = resolvedType === \"button\";\n\t\tlet resolvedColor = color ?? DEFAULT_ACTION_COLOR;\n\n\t\tif (import.meta.env?.DEV && isInvoker && !commandfor) {\n\t\t\tconsole.warn(\n\t\t\t\t'AlertDialog.Action: needs \"commandfor\" naming the panel it dismisses, or type=\"submit\" to submit its enclosing form instead — as rendered, pressing it does nothing.',\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<Button\n\t\t\t\t{...rest}\n\t\t\t\ttype={resolvedType}\n\t\t\t\tcolor={resolvedColor}\n\t\t\t\tcommandfor={isInvoker ? commandfor : undefined}\n\t\t\t\tcommand={isInvoker ? (command ?? DEFAULT_COMMAND) : undefined}\n\t\t\t\tdata-slot=\"action\"\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Renders the panel's dismiss control as an outline, neutral {@link Button}\n * with `type` fixed to `\"button\"`, so its `command=\"close\"` reaches the\n * {@link AlertDialog} named by `commandfor` from inside a `<form>` too.\n *\n * @param handle Runtime handle carrying the host button's props.\n * @returns The render function producing the cancel control's markup.\n * @example\n * <AlertDialog.Cancel commandfor=\"delete-project\">{t(\"actions.cancel\")}</AlertDialog.Cancel>\n */\nAlertDialog.Cancel = function AlertDialogCancel(handle: Handle<AlertDialog.CancelProps>) {\n\treturn () => {\n\t\tlet { variant, color, command, ...rest } = handle.props;\n\t\tlet resolvedVariant = variant ?? DEFAULT_CANCEL_VARIANT;\n\t\tlet resolvedColor = color ?? DEFAULT_CANCEL_COLOR;\n\t\tlet resolvedCommand = command ?? DEFAULT_COMMAND;\n\n\t\treturn (\n\t\t\t<Button\n\t\t\t\t{...rest}\n\t\t\t\ttype={DEFAULT_TYPE}\n\t\t\t\tvariant={resolvedVariant}\n\t\t\t\tcolor={resolvedColor}\n\t\t\t\tcommand={resolvedCommand}\n\t\t\t\tdata-slot=\"cancel\"\n\t\t\t/>\n\t\t);\n\t};\n};\n"
15
15
  },
16
16
  "test": {
17
17
  "path": "alert-dialog.test.tsx",