@sdxc/kit 2026.10.29 → 2026.10.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.jsonl CHANGED
@@ -1500,3 +1500,7 @@
1500
1500
  {"release":"2026.10.29","package":"@sdxc/x402","type":"feat","breaking":false,"title":"Add Remix seller middleware for the x402 payment protocol","body":"Install with `npm add @sdxc/x402`. Mount `x402({ facilitator, payTo,\nnetwork, asset })` on a Remix router, then guard a route with\n`requirePayment({ amount, description })`. Unpaid requests answer HTTP\n402 with `PAYMENT-REQUIRED`; a settled `PAYMENT-SIGNATURE` continues\nand attaches `PAYMENT-RESPONSE`. Use `MemoryFacilitator` and\n`@sdxc/x402/testing` in Vitest; point `HTTPFacilitator` at a real\nfacilitator URL in production."}
1501
1501
  {"release":"2026.10.29","package":"@sdxc/x402","type":"docs","breaking":false,"title":"Document API exports and Patterns in the package README","body":"Expand the npm landing page to the package-documentation structure:\nUsage examples, every public export under API, and Patterns for catalog\npricing, lazy-route guards, MCP header charging, facilitator config,\nVitest payment assertions, and PaymentReceiptKey. No runtime change."}
1502
1502
  {"release":"2026.10.29","package":"@sdxc/x402","type":"feat","breaking":false,"title":"Stamp Bazaar discovery and forward facilitator auth headers","body":"Sellers can attach `extensions.bazaar` on a 402 so facilitators that index\nBazaar catalog the resource after settle. `HTTPFacilitator` accepts optional\n`headers` (for example a CDP `Authorization` bearer) on every `/verify` and\n`/settle` call.\n\n```typescript\nimport { bazaarHttpPost, HTTPFacilitator } from \"@sdxc/x402\";\nimport { requirePayment } from \"@sdxc/x402/middleware\";\n\nnew HTTPFacilitator({\n url: \"https://api.cdp.coinbase.com/platform/v2/x402\",\n headers: { Authorization: `Bearer ${token}` },\n});\n\nrequirePayment({\n amount: \"1000\",\n description: \"Encode a QR\",\n extensions: {\n bazaar: bazaarHttpPost(\n { text: \"https://sdxc.dev\" },\n { type: \"json\", example: { svgPath: \"M…\" } },\n ),\n },\n});\n```"}
1503
+ {"release":"2026.10.30","package":"@sdxc/ui","type":"fix","breaking":false,"title":"Let Feature.Grid respond to its own container width","body":"The column tracks lived on the same host that declared the named\ncontainer, so the `@container` query could never match and the grid\nstayed one column at every width. Move the tracks onto an inner wrapper\nso the query styles a descendant of the sizing container."}
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
+ {"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
+ {"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```"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdxc/kit",
3
- "version": "2026.10.29",
3
+ "version": "2026.10.30",
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": "35512fbdbf4ecc8c8fba95d5f6c8c63f4c026cfe",
32
+ "gitHead": "b76637cea65a8310f966862a15bcaeb5a657d7b0",
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feature",
3
- "changedIn": "2026.10.29",
3
+ "changedIn": "2026.10.30",
4
4
  "dependencies": [
5
5
  "heading-scope"
6
6
  ],
@@ -9,10 +9,10 @@
9
9
  ],
10
10
  "source": {
11
11
  "path": "feature.tsx",
12
- "content": "/**\n * One marketing claim cell — icon, title, description, optional link chrome —\n * and an optional {@link Feature.Grid} that lays cells as a hairline-ruled\n * track via container queries. Default chrome stays light; pass\n * `variant=\"panel\"` only when a filled panel is the right container for the\n * interaction.\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, border, fg } from \"@sdxc/u/color\";\nimport { rounded } from \"@sdxc/u/effects\";\nimport { raw } from \"@sdxc/u/general\";\nimport {\n\tcenter,\n\tcontainer,\n\tgap,\n\tgrid,\n\tgridTemplate,\n\thstack,\n\tinlineFlex,\n\trepeat,\n\tvstack,\n} from \"@sdxc/u/layout\";\nimport { overflow } from \"@sdxc/u/overflow\";\nimport { at } from \"@sdxc/u/responsive\";\nimport { bs, is, m, mbs, p } from \"@sdxc/u/size\";\nimport { when } from \"@sdxc/u/state\";\nimport { leading, pretty, text, tracking, weight } from \"@sdxc/u/typography\";\n\nimport { resolveHeadingLevel, TAG_BY_LEVEL } from \"@sdxc/ui/heading-scope\";\n\n/** Cell chrome {@link Feature} applies when `variant` is omitted. */\nconst DEFAULT_VARIANT: Feature.Variant = \"plain\";\n\n/** How many cells a wide {@link Feature.Grid} puts on one row. */\nconst DEFAULT_COLUMNS: Feature.Columns = 2;\n\n/**\n * Prop types for {@link Feature} and its compound parts.\n */\nexport namespace Feature {\n\t/**\n\t * Cell chrome: a light claim with no fill, or a panel when the cell itself\n\t * is the interaction surface.\n\t */\n\texport type Variant = \"plain\" | \"panel\";\n\n\t/**\n\t * How many cells a wide {@link Feature.Grid} puts on one row.\n\t */\n\texport type Columns = 2 | 3;\n\n\t/**\n\t * Props accepted by {@link Feature}.\n\t */\n\texport interface Props extends TagProps<\"div\"> {\n\t\t/** Cell chrome. Defaults to {@link DEFAULT_VARIANT}. */\n\t\tvariant?: Variant;\n\t\t/**\n\t\t * Optional destination for the claim. When set with a trailing action\n\t\t * child, the cell can surface link chrome; the href itself is left for\n\t\t * the consumer's {@link LinkButton} or anchor.\n\t\t */\n\t\thref?: string;\n\t\t/**\n\t\t * Compound parts: {@link Feature.Icon}, {@link Feature.Title},\n\t\t * {@link Feature.Description}, {@link Feature.Action}, or other content.\n\t\t */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Feature.Icon}.\n\t */\n\texport interface IconProps extends TagProps<\"span\"> {\n\t\t/** Glyph rendered inside the tinted icon well. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Feature.Title}. The rendered tag follows the\n\t * nearest ambient heading level.\n\t */\n\texport interface TitleProps extends TagProps<\"h1\"> {\n\t\t/** Title copy for the claim. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Feature.Description}.\n\t */\n\texport interface DescriptionProps extends TagProps<\"div\"> {\n\t\t/** Supporting copy for the claim. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Feature.Action}.\n\t */\n\texport interface ActionProps extends TagProps<\"div\"> {\n\t\t/** Trailing link or button chrome for the claim. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Feature.Grid}.\n\t */\n\texport interface GridProps extends TagProps<\"div\"> {\n\t\t/** Columns above the stack breakpoint. Defaults to {@link DEFAULT_COLUMNS}. */\n\t\tcolumns?: Columns;\n\t\t/** {@link Feature} cells to lay out. */\n\t\tchildren: RemixNode;\n\t}\n}\n\n/**\n * Renders one claim cell. Compose {@link Feature.Icon}, {@link Feature.Title},\n * {@link Feature.Description}, and {@link Feature.Action} inside it.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the cell's markup.\n * @example\n * <Feature>\n * \t<Feature.Icon><ZapIcon size={18} aria-hidden=\"true\" /></Feature.Icon>\n * \t<Feature.Title>{t(\"feature.title\")}</Feature.Title>\n * \t<Feature.Description>{t(\"feature.body\")}</Feature.Description>\n * </Feature>\n */\nexport function Feature(handle: Handle<Feature.Props>) {\n\treturn () => {\n\t\tlet { href, mix, variant, ...rest } = handle.props;\n\t\tlet resolvedVariant = variant ?? DEFAULT_VARIANT;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\t{...rest}\n\t\t\t\tdata-variant={resolvedVariant}\n\t\t\t\tdata-href={href || undefined}\n\t\t\t\tdata-slot=\"feature\"\n\t\t\t\tmix={[\n\t\t\t\t\tvstack({ gap: 4, align: \"stretch\" }),\n\t\t\t\t\tbg(),\n\t\t\t\t\tp(8, 6),\n\t\t\t\t\tat(\"md\", p(10, 10)),\n\t\t\t\t\twhen('&[data-variant=\"panel\"]', [\n\t\t\t\t\t\tbg(\"neutral.tint\"),\n\t\t\t\t\t\tborder({ color: \"neutral\", width: 1, style: \"solid\" }),\n\t\t\t\t\t\trounded(\"xl\"),\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 * Tinted rounded well that holds the claim's glyph.\n *\n * @param handle Runtime handle carrying the host `<span>`'s props.\n * @returns The render function producing the icon well.\n */\nFeature.Icon = function FeatureIcon(handle: Handle<Feature.IconProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<span\n\t\t\t\t{...rest}\n\t\t\t\tdata-slot=\"feature-icon\"\n\t\t\t\tmix={[\n\t\t\t\t\tinlineFlex(),\n\t\t\t\t\tcenter(),\n\t\t\t\t\tis(10),\n\t\t\t\t\tbs(10),\n\t\t\t\t\trounded(\"lg\"),\n\t\t\t\t\tbg(\"brand.tint\"),\n\t\t\t\t\tfg(\"brand\"),\n\t\t\t\t\tborder({ color: \"brand\", width: 1, style: \"solid\" }),\n\t\t\t\t\tmix,\n\t\t\t\t]}\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Claim title at the ambient heading depth, sized for a feature cell.\n *\n * @param handle Runtime handle carrying the host heading's props.\n * @returns The render function producing the title.\n */\nFeature.Title = function FeatureTitle(handle: Handle<Feature.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=\"feature-title\"\n\t\t\t\tdata-heading-level={resolved}\n\t\t\t\tmix={[m(0), text(\"xl\"), weight(\"medium\"), tracking(\"tight\"), fg(\"neutral.emphasis\"), mix]}\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Supporting copy under the claim title.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the description.\n */\nFeature.Description = function FeatureDescription(handle: Handle<Feature.DescriptionProps>) {\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=\"feature-description\"\n\t\t\t\tmix={[vstack({ gap: 2 }), text(\"base\"), leading(\"relaxed\"), pretty(), fg(\"neutral\"), mix]}\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Trailing action slot for a link or button under the claim body.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the action slot.\n */\nFeature.Action = function FeatureAction(handle: Handle<Feature.ActionProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn <div {...rest} data-slot=\"feature-action\" mix={[mbs(2), hstack({ gap: 2 }), mix]} />;\n\t};\n};\n\n/**\n * Hairline-ruled grid of {@link Feature} cells. Collapses to one column below\n * `md` on its own named container; above it, `columns` caps the row width and\n * a lone trailing cell spans the remaining tracks.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the grid.\n * @example\n * <Feature.Grid columns={3}>\n * \t<Feature>...</Feature>\n * \t<Feature>...</Feature>\n * \t<Feature>...</Feature>\n * </Feature.Grid>\n */\nFeature.Grid = function FeatureGrid(handle: Handle<Feature.GridProps>) {\n\treturn () => {\n\t\tlet { columns, mix, ...rest } = handle.props;\n\t\tlet resolvedColumns = columns ?? DEFAULT_COLUMNS;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\t{...rest}\n\t\t\t\tdata-columns={String(resolvedColumns)}\n\t\t\t\tdata-slot=\"feature-grid\"\n\t\t\t\tmix={[\n\t\t\t\t\tcontainer(\"ui-marketing-feature-grid\"),\n\t\t\t\t\tgrid(),\n\t\t\t\t\tgap(\"1px\"),\n\t\t\t\t\trounded(\"xl\"),\n\t\t\t\t\toverflow(\"hidden\"),\n\t\t\t\t\tborder({ color: \"neutral\", width: 1, style: \"solid\" }),\n\t\t\t\t\traw({\n\t\t\t\t\t\tbackgroundColor: \"var(--ui-neutral-border)\",\n\t\t\t\t\t\ttextAlign: \"start\",\n\t\t\t\t\t}),\n\t\t\t\t\tgridTemplate({ columns: \"minmax(0, 1fr)\" }),\n\t\t\t\t\tat(\"md\", \"ui-marketing-feature-grid\", [\n\t\t\t\t\t\tgridTemplate({\n\t\t\t\t\t\t\tcolumns: repeat(resolvedColumns, \"minmax(0, 1fr)\"),\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tresolvedColumns === 2\n\t\t\t\t\t\t\t? when(\"& > :last-child:nth-child(odd)\", raw({ gridColumn: \"1 / -1\" }))\n\t\t\t\t\t\t\t: [\n\t\t\t\t\t\t\t\t\twhen(\"& > :last-child:nth-child(3n + 1)\", raw({ gridColumn: \"1 / -1\" })),\n\t\t\t\t\t\t\t\t\twhen(\"& > :last-child:nth-child(3n + 2)\", raw({ gridColumn: \"span 2\" })),\n\t\t\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"
12
+ "content": "/**\n * One marketing claim cell — icon, title, description, optional link chrome —\n * and an optional {@link Feature.Grid} that lays cells as a hairline-ruled\n * track via container queries. Default chrome stays light; pass\n * `variant=\"panel\"` only when a filled panel is the right container for the\n * interaction.\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, border, fg } from \"@sdxc/u/color\";\nimport { rounded } from \"@sdxc/u/effects\";\nimport { raw } from \"@sdxc/u/general\";\nimport {\n\tcenter,\n\tcontainer,\n\tgap,\n\tgrid,\n\tgridTemplate,\n\thstack,\n\tinlineFlex,\n\trepeat,\n\tvstack,\n} from \"@sdxc/u/layout\";\nimport { overflow } from \"@sdxc/u/overflow\";\nimport { at } from \"@sdxc/u/responsive\";\nimport { bs, is, m, mbs, p } from \"@sdxc/u/size\";\nimport { when } from \"@sdxc/u/state\";\nimport { leading, pretty, text, tracking, weight } from \"@sdxc/u/typography\";\n\nimport { resolveHeadingLevel, TAG_BY_LEVEL } from \"@sdxc/ui/heading-scope\";\n\n/** Cell chrome {@link Feature} applies when `variant` is omitted. */\nconst DEFAULT_VARIANT: Feature.Variant = \"plain\";\n\n/** How many cells a wide {@link Feature.Grid} puts on one row. */\nconst DEFAULT_COLUMNS: Feature.Columns = 2;\n\n/**\n * Prop types for {@link Feature} and its compound parts.\n */\nexport namespace Feature {\n\t/**\n\t * Cell chrome: a light claim with no fill, or a panel when the cell itself\n\t * is the interaction surface.\n\t */\n\texport type Variant = \"plain\" | \"panel\";\n\n\t/**\n\t * How many cells a wide {@link Feature.Grid} puts on one row.\n\t */\n\texport type Columns = 2 | 3;\n\n\t/**\n\t * Props accepted by {@link Feature}.\n\t */\n\texport interface Props extends TagProps<\"div\"> {\n\t\t/** Cell chrome. Defaults to {@link DEFAULT_VARIANT}. */\n\t\tvariant?: Variant;\n\t\t/**\n\t\t * Optional destination for the claim. When set with a trailing action\n\t\t * child, the cell can surface link chrome; the href itself is left for\n\t\t * the consumer's {@link LinkButton} or anchor.\n\t\t */\n\t\thref?: string;\n\t\t/**\n\t\t * Compound parts: {@link Feature.Icon}, {@link Feature.Title},\n\t\t * {@link Feature.Description}, {@link Feature.Action}, or other content.\n\t\t */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Feature.Icon}.\n\t */\n\texport interface IconProps extends TagProps<\"span\"> {\n\t\t/** Glyph rendered inside the tinted icon well. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Feature.Title}. The rendered tag follows the\n\t * nearest ambient heading level.\n\t */\n\texport interface TitleProps extends TagProps<\"h1\"> {\n\t\t/** Title copy for the claim. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Feature.Description}.\n\t */\n\texport interface DescriptionProps extends TagProps<\"div\"> {\n\t\t/** Supporting copy for the claim. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Feature.Action}.\n\t */\n\texport interface ActionProps extends TagProps<\"div\"> {\n\t\t/** Trailing link or button chrome for the claim. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Feature.Grid}.\n\t */\n\texport interface GridProps extends TagProps<\"div\"> {\n\t\t/** Columns above the stack breakpoint. Defaults to {@link DEFAULT_COLUMNS}. */\n\t\tcolumns?: Columns;\n\t\t/** {@link Feature} cells to lay out. */\n\t\tchildren: RemixNode;\n\t}\n}\n\n/**\n * Renders one claim cell. Compose {@link Feature.Icon}, {@link Feature.Title},\n * {@link Feature.Description}, and {@link Feature.Action} inside it.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the cell's markup.\n * @example\n * <Feature>\n * \t<Feature.Icon><ZapIcon size={18} aria-hidden=\"true\" /></Feature.Icon>\n * \t<Feature.Title>{t(\"feature.title\")}</Feature.Title>\n * \t<Feature.Description>{t(\"feature.body\")}</Feature.Description>\n * </Feature>\n */\nexport function Feature(handle: Handle<Feature.Props>) {\n\treturn () => {\n\t\tlet { href, mix, variant, ...rest } = handle.props;\n\t\tlet resolvedVariant = variant ?? DEFAULT_VARIANT;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\t{...rest}\n\t\t\t\tdata-variant={resolvedVariant}\n\t\t\t\tdata-href={href || undefined}\n\t\t\t\tdata-slot=\"feature\"\n\t\t\t\tmix={[\n\t\t\t\t\tvstack({ gap: 4, align: \"stretch\" }),\n\t\t\t\t\tbg(),\n\t\t\t\t\tp(8, 6),\n\t\t\t\t\tat(\"lg\", p(10, 10)),\n\t\t\t\t\twhen('&[data-variant=\"panel\"]', [\n\t\t\t\t\t\tbg(\"neutral.tint\"),\n\t\t\t\t\t\tborder({ color: \"neutral\", width: 1, style: \"solid\" }),\n\t\t\t\t\t\trounded(\"xl\"),\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 * Tinted rounded well that holds the claim's glyph.\n *\n * @param handle Runtime handle carrying the host `<span>`'s props.\n * @returns The render function producing the icon well.\n */\nFeature.Icon = function FeatureIcon(handle: Handle<Feature.IconProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<span\n\t\t\t\t{...rest}\n\t\t\t\tdata-slot=\"feature-icon\"\n\t\t\t\tmix={[\n\t\t\t\t\tinlineFlex(),\n\t\t\t\t\tcenter(),\n\t\t\t\t\tis(10),\n\t\t\t\t\tbs(10),\n\t\t\t\t\trounded(\"lg\"),\n\t\t\t\t\tbg(\"brand.tint\"),\n\t\t\t\t\tfg(\"brand\"),\n\t\t\t\t\tborder({ color: \"brand\", width: 1, style: \"solid\" }),\n\t\t\t\t\tmix,\n\t\t\t\t]}\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Claim title at the ambient heading depth, sized for a feature cell.\n *\n * @param handle Runtime handle carrying the host heading's props.\n * @returns The render function producing the title.\n */\nFeature.Title = function FeatureTitle(handle: Handle<Feature.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=\"feature-title\"\n\t\t\t\tdata-heading-level={resolved}\n\t\t\t\tmix={[m(0), text(\"xl\"), weight(\"medium\"), tracking(\"tight\"), fg(\"neutral.emphasis\"), mix]}\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Supporting copy under the claim title.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the description.\n */\nFeature.Description = function FeatureDescription(handle: Handle<Feature.DescriptionProps>) {\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=\"feature-description\"\n\t\t\t\tmix={[vstack({ gap: 2 }), text(\"base\"), leading(\"relaxed\"), pretty(), fg(\"neutral\"), mix]}\n\t\t\t/>\n\t\t);\n\t};\n};\n\n/**\n * Trailing action slot for a link or button under the claim body.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the action slot.\n */\nFeature.Action = function FeatureAction(handle: Handle<Feature.ActionProps>) {\n\treturn () => {\n\t\tlet { mix, ...rest } = handle.props;\n\n\t\treturn <div {...rest} data-slot=\"feature-action\" mix={[mbs(2), hstack({ gap: 2 }), mix]} />;\n\t};\n};\n\n/**\n * Hairline-ruled grid of {@link Feature} cells. The host is the named sizing\n * container; an inner wrapper holds the grid and `@container` column tracks so\n * the query can restyle a descendant. Collapses to one column below `lg`\n * (48rem), matching the landing's original viewport threshold.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the grid.\n * @example\n * <Feature.Grid columns={3}>\n * \t<Feature>...</Feature>\n * \t<Feature>...</Feature>\n * \t<Feature>...</Feature>\n * </Feature.Grid>\n */\nFeature.Grid = function FeatureGrid(handle: Handle<Feature.GridProps>) {\n\treturn () => {\n\t\tlet { children, columns, mix, ...rest } = handle.props;\n\t\tlet resolvedColumns = columns ?? DEFAULT_COLUMNS;\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\t{...rest}\n\t\t\t\tdata-columns={String(resolvedColumns)}\n\t\t\t\tdata-slot=\"feature-grid\"\n\t\t\t\tmix={[container(\"ui-marketing-feature-grid\"), mix]}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tmix={[\n\t\t\t\t\t\tgrid(),\n\t\t\t\t\t\tgap(\"1px\"),\n\t\t\t\t\t\trounded(\"xl\"),\n\t\t\t\t\t\toverflow(\"hidden\"),\n\t\t\t\t\t\tborder({ color: \"neutral\", width: 1, style: \"solid\" }),\n\t\t\t\t\t\traw({\n\t\t\t\t\t\t\tbackgroundColor: \"var(--ui-neutral-border)\",\n\t\t\t\t\t\t\ttextAlign: \"start\",\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tgridTemplate({ columns: \"minmax(0, 1fr)\" }),\n\t\t\t\t\t\tat(\"lg\", \"ui-marketing-feature-grid\", [\n\t\t\t\t\t\t\tgridTemplate({\n\t\t\t\t\t\t\t\tcolumns: repeat(resolvedColumns, \"minmax(0, 1fr)\"),\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tresolvedColumns === 2\n\t\t\t\t\t\t\t\t? when(\"& > :last-child:nth-child(odd)\", raw({ gridColumn: \"1 / -1\" }))\n\t\t\t\t\t\t\t\t: [\n\t\t\t\t\t\t\t\t\t\twhen(\"& > :last-child:nth-child(3n + 1)\", raw({ gridColumn: \"1 / -1\" })),\n\t\t\t\t\t\t\t\t\t\twhen(\"& > :last-child:nth-child(3n + 2)\", raw({ gridColumn: \"span 2\" })),\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t]),\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t};\n};\n"
13
13
  },
14
14
  "test": {
15
15
  "path": "feature.test.tsx",
16
- "content": "/**\n * Covers {@link Feature} compound parts and {@link Feature.Grid} column\n * tracks.\n *\n * @author [Sergio Xalambrí](https://sergiodxa.com)\n * @copyright Sergio Xalambrí 2026\n */\n\nimport { renderToString } from \"remix/component/server\";\nimport { describe, expect, test } from \"vitest\";\n\nimport { Feature } from \"@sdxc/ui/feature\";\n\ndescribe(\"Feature\", () => {\n\ttest(\"composes icon, title, description, and action parts\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<Feature>\n\t\t\t\t<Feature.Icon>★</Feature.Icon>\n\t\t\t\t<Feature.Title>Fast checks</Feature.Title>\n\t\t\t\t<Feature.Description>Probe from the edge.</Feature.Description>\n\t\t\t\t<Feature.Action>\n\t\t\t\t\t<a href=\"/docs\">Read more</a>\n\t\t\t\t</Feature.Action>\n\t\t\t</Feature>,\n\t\t);\n\n\t\texpect(html).toContain('data-slot=\"feature\"');\n\t\texpect(html).toContain('data-slot=\"feature-icon\"');\n\t\texpect(html).toContain(\"Fast checks\");\n\t\texpect(html).toContain(\"Probe from the edge.\");\n\t\texpect(html).toContain(\"Read more\");\n\t});\n\n\ttest(\"lays cells in a hairline grid with column spanning for a lone last cell\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<Feature.Grid columns={3}>\n\t\t\t\t<Feature>\n\t\t\t\t\t<Feature.Title>One</Feature.Title>\n\t\t\t\t</Feature>\n\t\t\t\t<Feature>\n\t\t\t\t\t<Feature.Title>Two</Feature.Title>\n\t\t\t\t</Feature>\n\t\t\t\t<Feature>\n\t\t\t\t\t<Feature.Title>Three</Feature.Title>\n\t\t\t\t</Feature>\n\t\t\t</Feature.Grid>,\n\t\t);\n\n\t\texpect(html).toContain('data-columns=\"3\"');\n\t\texpect(html).toContain(\"container: ui-marketing-feature-grid / inline-size\");\n\t\texpect(html).toContain(\"repeat(3, minmax(0, 1fr))\");\n\t\texpect(html).toContain(\"var(--ui-neutral-border)\");\n\t});\n\n\ttest(\"adds panel chrome when variant is panel\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<Feature variant=\"panel\">\n\t\t\t\t<Feature.Title>Panel claim</Feature.Title>\n\t\t\t</Feature>,\n\t\t);\n\n\t\texpect(html).toContain('data-variant=\"panel\"');\n\t});\n});\n"
16
+ "content": "/**\n * Covers {@link Feature} compound parts and {@link Feature.Grid} column\n * tracks.\n *\n * @author [Sergio Xalambrí](https://sergiodxa.com)\n * @copyright Sergio Xalambrí 2026\n */\n\nimport { renderToString } from \"remix/component/server\";\nimport { describe, expect, test } from \"vitest\";\n\nimport { Feature } from \"@sdxc/ui/feature\";\n\ndescribe(\"Feature\", () => {\n\ttest(\"composes icon, title, description, and action parts\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<Feature>\n\t\t\t\t<Feature.Icon>★</Feature.Icon>\n\t\t\t\t<Feature.Title>Fast checks</Feature.Title>\n\t\t\t\t<Feature.Description>Probe from the edge.</Feature.Description>\n\t\t\t\t<Feature.Action>\n\t\t\t\t\t<a href=\"/docs\">Read more</a>\n\t\t\t\t</Feature.Action>\n\t\t\t</Feature>,\n\t\t);\n\n\t\texpect(html).toContain('data-slot=\"feature\"');\n\t\texpect(html).toContain('data-slot=\"feature-icon\"');\n\t\texpect(html).toContain(\"Fast checks\");\n\t\texpect(html).toContain(\"Probe from the edge.\");\n\t\texpect(html).toContain(\"Read more\");\n\t});\n\n\ttest(\"lays cells in a hairline grid with column spanning for a lone last cell\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<Feature.Grid columns={3}>\n\t\t\t\t<Feature>\n\t\t\t\t\t<Feature.Title>One</Feature.Title>\n\t\t\t\t</Feature>\n\t\t\t\t<Feature>\n\t\t\t\t\t<Feature.Title>Two</Feature.Title>\n\t\t\t\t</Feature>\n\t\t\t\t<Feature>\n\t\t\t\t\t<Feature.Title>Three</Feature.Title>\n\t\t\t\t</Feature>\n\t\t\t</Feature.Grid>,\n\t\t);\n\n\t\texpect(html).toContain('data-columns=\"3\"');\n\t\texpect(html).toContain(\"container: ui-marketing-feature-grid / inline-size\");\n\t\texpect(html).toContain(\"repeat(3, minmax(0, 1fr))\");\n\t\texpect(html).toContain(\"var(--ui-neutral-border)\");\n\t});\n\n\ttest(\"keeps the named container on the host and the column tracks on an inner wrapper\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<Feature.Grid columns={2}>\n\t\t\t\t<Feature>\n\t\t\t\t\t<Feature.Title>One</Feature.Title>\n\t\t\t\t</Feature>\n\t\t\t\t<Feature>\n\t\t\t\t\t<Feature.Title>Two</Feature.Title>\n\t\t\t\t</Feature>\n\t\t\t</Feature.Grid>,\n\t\t);\n\n\t\texpect(html).toMatch(/data-slot=\"feature-grid\"[^>]*>\\s*<div\\b/);\n\t\texpect(html).toContain(\"container: ui-marketing-feature-grid / inline-size\");\n\t\texpect(html).toContain(\"@container ui-marketing-feature-grid (min-width: 48rem)\");\n\n\t\tlet hostClasses = new Set(\n\t\t\t(html.match(/data-slot=\"feature-grid\"[^>]*class=\"([^\"]+)\"/)?.[1] ?? \"\")\n\t\t\t\t.split(/\\s+/)\n\t\t\t\t.filter(Boolean),\n\t\t);\n\t\tlet tracksMatch = html.match(\n\t\t\t/@container ui-marketing-feature-grid \\(min-width:[^)]+\\)\\s*\\{\\s*\\.([a-z0-9-]+)\\s*\\{/,\n\t\t);\n\t\texpect(tracksMatch?.[1]).toBeTruthy();\n\t\texpect(hostClasses.has(tracksMatch![1]!)).toBe(false);\n\t});\n\n\ttest(\"adds panel chrome when variant is panel\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<Feature variant=\"panel\">\n\t\t\t\t<Feature.Title>Panel claim</Feature.Title>\n\t\t\t</Feature>,\n\t\t);\n\n\t\texpect(html).toContain('data-variant=\"panel\"');\n\t});\n});\n"
17
17
  }
18
18
  }
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "marketing-section",
3
- "changedIn": "2026.10.29",
3
+ "changedIn": "2026.10.30",
4
4
  "dependencies": [],
5
5
  "exports": [
6
6
  "MarketingSection"
7
7
  ],
8
8
  "source": {
9
9
  "path": "marketing-section.tsx",
10
- "content": "/**\n * A landing-page band: a `<section>` host that applies marketing tone, spacing,\n * and content measure so pages share one rhythm. Distinct from the listbox\n * {@link Section}, which groups menu items.\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 { borderEdge } from \"@sdxc/u/color\";\nimport { raw } from \"@sdxc/u/general\";\nimport { container, relative, vstack } from \"@sdxc/u/layout\";\nimport { at } from \"@sdxc/u/responsive\";\nimport { is } from \"@sdxc/u/size\";\nimport { after, before } from \"@sdxc/u/state\";\nimport { textAlign } from \"@sdxc/u/typography\";\n\nimport type { MarketingBandTone, MarketingSectionSpacing } from \"@sdxc/ui/styles\";\n\nimport {\n\tmarketingBandTone,\n\tmarketingContainer,\n\tmarketingHairline,\n\tmarketingSectionSpace,\n} from \"@sdxc/ui/styles\";\n\n/** Band fill {@link MarketingSection} applies when `tone` is omitted. */\nconst DEFAULT_TONE: MarketingSection.Tone = \"plain\";\n\n/** Block padding {@link MarketingSection} applies when `spacing` is omitted. */\nconst DEFAULT_SPACING: MarketingSection.Spacing = \"normal\";\n\n/** Content alignment {@link MarketingSection} applies when `align` is omitted. */\nconst DEFAULT_ALIGN: MarketingSection.Align = \"start\";\n\n/** Chrome {@link MarketingSection} applies when `variant` is omitted. */\nconst DEFAULT_VARIANT: MarketingSection.Variant = \"default\";\n\n/**\n * Prop types for {@link MarketingSection}.\n */\nexport namespace MarketingSection {\n\t/**\n\t * What sits behind the band: nothing, a quiet tint, a faded grid, or an\n\t * inverted solid for a closing call-to-action.\n\t */\n\texport type Tone = MarketingBandTone;\n\n\t/**\n\t * How much block padding the band leaves around its content.\n\t */\n\texport type Spacing = MarketingSectionSpacing;\n\n\t/**\n\t * Whether the inner column stretches start-aligned or centers as one\n\t * statement.\n\t */\n\texport type Align = \"start\" | \"center\";\n\n\t/**\n\t * Outer chrome: a plain band, or a framed column with dashed rails and\n\t * corner markers where a top rule meets them.\n\t */\n\texport type Variant = \"default\" | \"frame\";\n\n\t/**\n\t * Per-part styling for the elements the band renders besides its host.\n\t */\n\texport interface PartsProps {\n\t\t/** Styling for the measured content column inside the band. */\n\t\tcontainer?: TagProps<\"div\">[\"mix\"];\n\t}\n\n\t/**\n\t * Props accepted by {@link MarketingSection}.\n\t */\n\texport interface Props extends TagProps<\"section\"> {\n\t\t/** Band fill. Defaults to {@link DEFAULT_TONE}. */\n\t\ttone?: Tone;\n\t\t/** Block padding step. Defaults to {@link DEFAULT_SPACING}. */\n\t\tspacing?: Spacing;\n\t\t/** Content alignment. Defaults to {@link DEFAULT_ALIGN}. */\n\t\talign?: Align;\n\t\t/**\n\t\t * Draws a low-contrast 1px rule along the block-start edge so stacked\n\t\t * bands separate cleanly.\n\t\t */\n\t\truled?: boolean;\n\t\t/** Outer chrome. Defaults to {@link DEFAULT_VARIANT}. */\n\t\tvariant?: Variant;\n\t\t/** Per-part styling for the measured inner column. */\n\t\tparts?: PartsProps;\n\t\t/** Band content — headers, splits, feature grids, and so on. */\n\t\tchildren: RemixNode;\n\t}\n}\n\n/**\n * Renders a marketing band: tone and spacing on the `<section>`, a named\n * container for descendant queries, and a measured inner column from the\n * marketing gutters. Pair the host with `viewReveal()` from the animations\n * entry when the band should enter on scroll.\n *\n * @param handle Runtime handle carrying the host `<section>`'s props.\n * @returns The render function producing the band's markup.\n * @example\n * <MarketingSection tone=\"tinted\" spacing=\"normal\" ruled>\n * \t{children}\n * </MarketingSection>\n * @example\n * <MarketingSection tone=\"grid\" spacing=\"hero\" align=\"center\" variant=\"frame\">\n * \t{children}\n * </MarketingSection>\n */\nexport function MarketingSection(handle: Handle<MarketingSection.Props>) {\n\treturn () => {\n\t\tlet { align, children, mix, parts, ruled, spacing, tone, variant, ...rest } = handle.props;\n\t\tlet resolvedTone = tone ?? DEFAULT_TONE;\n\t\tlet resolvedSpacing = spacing ?? DEFAULT_SPACING;\n\t\tlet resolvedAlign = align ?? DEFAULT_ALIGN;\n\t\tlet resolvedVariant = variant ?? DEFAULT_VARIANT;\n\t\tlet isCenter = resolvedAlign === \"center\";\n\t\tlet isFrame = resolvedVariant === \"frame\";\n\n\t\treturn (\n\t\t\t<section\n\t\t\t\t{...rest}\n\t\t\t\tdata-tone={resolvedTone}\n\t\t\t\tdata-spacing={resolvedSpacing}\n\t\t\t\tdata-align={resolvedAlign}\n\t\t\t\tdata-variant={resolvedVariant}\n\t\t\t\tmix={[\n\t\t\t\t\tcontainer(\"ui-marketing-section\"),\n\t\t\t\t\trelative(),\n\t\t\t\t\tvstack({ align: \"center\" }),\n\t\t\t\t\tis(\"100%\"),\n\t\t\t\t\traw({ isolation: \"isolate\" }),\n\t\t\t\t\tmarketingBandTone(resolvedTone),\n\t\t\t\t\tmarketingSectionSpace(resolvedSpacing),\n\t\t\t\t\truled ? marketingHairline() : [],\n\t\t\t\t\tmix,\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tmix={[\n\t\t\t\t\t\tmarketingContainer(),\n\t\t\t\t\t\tvstack({\n\t\t\t\t\t\t\talign: isCenter ? \"center\" : \"stretch\",\n\t\t\t\t\t\t\tgap: 0,\n\t\t\t\t\t\t}),\n\t\t\t\t\t\trelative(),\n\t\t\t\t\t\tis(\"100%\"),\n\t\t\t\t\t\tisCenter ? textAlign(\"center\") : [],\n\t\t\t\t\t\tisFrame\n\t\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t\tat(\"md\", \"ui-marketing-section\", [\n\t\t\t\t\t\t\t\t\t\tborderEdge(\"inline-start\", {\n\t\t\t\t\t\t\t\t\t\t\tcolor: \"neutral\",\n\t\t\t\t\t\t\t\t\t\t\twidth: 1,\n\t\t\t\t\t\t\t\t\t\t\tstyle: \"dashed\",\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tborderEdge(\"inline-end\", {\n\t\t\t\t\t\t\t\t\t\t\tcolor: \"neutral\",\n\t\t\t\t\t\t\t\t\t\t\twidth: 1,\n\t\t\t\t\t\t\t\t\t\t\tstyle: \"dashed\",\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\truled\n\t\t\t\t\t\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t\t\t\t\t\tbefore(frameMarker({ insetInlineStart: \"-4px\" })),\n\t\t\t\t\t\t\t\t\t\t\t\t\tafter(frameMarker({ insetInlineEnd: \"-4px\" })),\n\t\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t\t: [],\n\t\t\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t: [],\n\t\t\t\t\t\tparts?.container,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</section>\n\t\t);\n\t};\n}\n\n/**\n * The square drawn where a framed band's top rule crosses a rail, so the rails\n * read as a frame the rule is fixed to.\n */\nfunction frameMarker(edge: { insetInlineStart: string } | { insetInlineEnd: string }) {\n\treturn raw({\n\t\tcontent: '\"\"',\n\t\tposition: \"absolute\",\n\t\tinsetBlockStart: \"-4px\",\n\t\t...edge,\n\t\tinlineSize: \"7px\",\n\t\tblockSize: \"7px\",\n\t\tbackgroundColor: \"var(--ui-brand-bg-solid)\",\n\t});\n}\n"
10
+ "content": "/**\n * A landing-page band: a `<section>` host that applies marketing tone, spacing,\n * and content measure so pages share one rhythm. Distinct from the listbox\n * {@link Section}, which groups menu items.\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 { borderEdge } from \"@sdxc/u/color\";\nimport { raw } from \"@sdxc/u/general\";\nimport { container, relative, vstack } from \"@sdxc/u/layout\";\nimport { at } from \"@sdxc/u/responsive\";\nimport { is, maxIs, mi, pi } from \"@sdxc/u/size\";\nimport { after, before } from \"@sdxc/u/state\";\nimport { textAlign } from \"@sdxc/u/typography\";\n\nimport type { MarketingBandTone, MarketingSectionSpacing } from \"@sdxc/ui/styles\";\n\nimport {\n\tmarketingBandTone,\n\tmarketingContainer,\n\tmarketingHairline,\n\tmarketingSectionSpace,\n} from \"@sdxc/ui/styles\";\n\n/** Band fill {@link MarketingSection} applies when `tone` is omitted. */\nconst DEFAULT_TONE: MarketingSection.Tone = \"plain\";\n\n/** Block padding {@link MarketingSection} applies when `spacing` is omitted. */\nconst DEFAULT_SPACING: MarketingSection.Spacing = \"normal\";\n\n/** Content alignment {@link MarketingSection} applies when `align` is omitted. */\nconst DEFAULT_ALIGN: MarketingSection.Align = \"start\";\n\n/** Chrome {@link MarketingSection} applies when `variant` is omitted. */\nconst DEFAULT_VARIANT: MarketingSection.Variant = \"default\";\n\n/**\n * Prop types for {@link MarketingSection}.\n */\nexport namespace MarketingSection {\n\t/**\n\t * What sits behind the band: nothing, a quiet tint, a faded grid, or an\n\t * inverted solid for a closing call-to-action.\n\t */\n\texport type Tone = MarketingBandTone;\n\n\t/**\n\t * How much block padding the band leaves around its content.\n\t */\n\texport type Spacing = MarketingSectionSpacing;\n\n\t/**\n\t * Whether the inner column stretches start-aligned or centers as one\n\t * statement.\n\t */\n\texport type Align = \"start\" | \"center\";\n\n\t/**\n\t * Outer chrome: a plain band, or a framed column with dashed rails and\n\t * corner markers where a top rule meets them.\n\t */\n\texport type Variant = \"default\" | \"frame\";\n\n\t/**\n\t * Per-part styling for the elements the band renders besides its host.\n\t */\n\texport interface PartsProps {\n\t\t/** Styling for the measured content column inside the band. */\n\t\tcontainer?: TagProps<\"div\">[\"mix\"];\n\t}\n\n\t/**\n\t * Props accepted by {@link MarketingSection}.\n\t */\n\texport interface Props extends TagProps<\"section\"> {\n\t\t/** Band fill. Defaults to {@link DEFAULT_TONE}. */\n\t\ttone?: Tone;\n\t\t/** Block padding step. Defaults to {@link DEFAULT_SPACING}. */\n\t\tspacing?: Spacing;\n\t\t/** Content alignment. Defaults to {@link DEFAULT_ALIGN}. */\n\t\talign?: Align;\n\t\t/**\n\t\t * Draws a low-contrast 1px rule along the block-start edge so stacked\n\t\t * bands separate cleanly.\n\t\t */\n\t\truled?: boolean;\n\t\t/** Outer chrome. Defaults to {@link DEFAULT_VARIANT}. */\n\t\tvariant?: Variant;\n\t\t/**\n\t\t * Zeroes block padding on a framed column so a flush strip (stats) keeps\n\t\t * full-height rails without the section gap. Ignored when `variant` is\n\t\t * not `\"frame\"`.\n\t\t */\n\t\tflush?: boolean;\n\t\t/** Per-part styling for the measured inner column. */\n\t\tparts?: PartsProps;\n\t\t/** Band content — headers, splits, feature grids, and so on. */\n\t\tchildren: RemixNode;\n\t}\n}\n\n/**\n * Renders a marketing band: tone on the `<section>`, a named container for\n * descendant queries, and a measured inner column. When `variant=\"frame\"`,\n * block padding lives on that column with the dashed rails so the rails run\n * the full band height instead of stopping at the content box.\n *\n * @param handle Runtime handle carrying the host `<section>`'s props.\n * @returns The render function producing the band's markup.\n * @example\n * <MarketingSection tone=\"tinted\" spacing=\"normal\" ruled>\n * \t{children}\n * </MarketingSection>\n * @example\n * <MarketingSection tone=\"grid\" spacing=\"hero\" align=\"center\" variant=\"frame\">\n * \t{children}\n * </MarketingSection>\n */\nexport function MarketingSection(handle: Handle<MarketingSection.Props>) {\n\treturn () => {\n\t\tlet { align, children, flush, mix, parts, ruled, spacing, tone, variant, ...rest } =\n\t\t\thandle.props;\n\t\tlet resolvedTone = tone ?? DEFAULT_TONE;\n\t\tlet resolvedSpacing = spacing ?? DEFAULT_SPACING;\n\t\tlet resolvedAlign = align ?? DEFAULT_ALIGN;\n\t\tlet resolvedVariant = variant ?? DEFAULT_VARIANT;\n\t\tlet isCenter = resolvedAlign === \"center\";\n\t\tlet isFrame = resolvedVariant === \"frame\";\n\t\tlet isFlushFrame = isFrame && Boolean(flush);\n\n\t\treturn (\n\t\t\t<section\n\t\t\t\t{...rest}\n\t\t\t\tdata-tone={resolvedTone}\n\t\t\t\tdata-spacing={resolvedSpacing}\n\t\t\t\tdata-align={resolvedAlign}\n\t\t\t\tdata-variant={resolvedVariant}\n\t\t\t\tdata-flush={isFlushFrame ? \"true\" : undefined}\n\t\t\t\tmix={[\n\t\t\t\t\tcontainer(\"ui-marketing-section\"),\n\t\t\t\t\trelative(),\n\t\t\t\t\tvstack({ align: \"center\" }),\n\t\t\t\t\tis(\"100%\"),\n\t\t\t\t\traw({ isolation: \"isolate\" }),\n\t\t\t\t\tmarketingBandTone(resolvedTone),\n\t\t\t\t\t/**\n\t\t\t\t\t * Framed bands keep block padding on the measured column so the\n\t\t\t\t\t * dashed rails share that box and run the full band height.\n\t\t\t\t\t */\n\t\t\t\t\tisFrame ? [] : marketingSectionSpace(resolvedSpacing),\n\t\t\t\t\truled ? marketingHairline() : [],\n\t\t\t\t\tmix,\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tmix={[\n\t\t\t\t\t\tisFrame\n\t\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t\tmaxIs(\"var(--ui-marketing-measure, 72rem)\"),\n\t\t\t\t\t\t\t\t\tmi(\"auto\"),\n\t\t\t\t\t\t\t\t\tis(\"100%\"),\n\t\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t\t * Match the pre-migration framed band: quiet gutters that\n\t\t\t\t\t\t\t\t\t * open to 3rem above `lg`, so copy clears the rails.\n\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\t\tpi(5),\n\t\t\t\t\t\t\t\t\tisFlushFrame ? [] : marketingSectionSpace(resolvedSpacing),\n\t\t\t\t\t\t\t\t\tat(\"lg\", \"ui-marketing-section\", [\n\t\t\t\t\t\t\t\t\t\tpi(12),\n\t\t\t\t\t\t\t\t\t\tborderEdge(\"inline-start\", {\n\t\t\t\t\t\t\t\t\t\t\tcolor: \"neutral\",\n\t\t\t\t\t\t\t\t\t\t\twidth: 1,\n\t\t\t\t\t\t\t\t\t\t\tstyle: \"dashed\",\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tborderEdge(\"inline-end\", {\n\t\t\t\t\t\t\t\t\t\t\tcolor: \"neutral\",\n\t\t\t\t\t\t\t\t\t\t\twidth: 1,\n\t\t\t\t\t\t\t\t\t\t\tstyle: \"dashed\",\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\truled\n\t\t\t\t\t\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t\t\t\t\t\tbefore(frameMarker({ insetInlineStart: \"-4px\" })),\n\t\t\t\t\t\t\t\t\t\t\t\t\tafter(frameMarker({ insetInlineEnd: \"-4px\" })),\n\t\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t\t: [],\n\t\t\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t: marketingContainer(),\n\t\t\t\t\t\tvstack({\n\t\t\t\t\t\t\talign: isCenter ? \"center\" : \"stretch\",\n\t\t\t\t\t\t\tgap: 0,\n\t\t\t\t\t\t}),\n\t\t\t\t\t\trelative(),\n\t\t\t\t\t\tis(\"100%\"),\n\t\t\t\t\t\tisCenter ? textAlign(\"center\") : [],\n\t\t\t\t\t\tparts?.container,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</section>\n\t\t);\n\t};\n}\n\n/**\n * The square drawn where a framed band's top rule crosses a rail, so the rails\n * read as a frame the rule is fixed to.\n */\nfunction frameMarker(edge: { insetInlineStart: string } | { insetInlineEnd: string }) {\n\treturn raw({\n\t\tcontent: '\"\"',\n\t\tposition: \"absolute\",\n\t\tinsetBlockStart: \"-4px\",\n\t\t...edge,\n\t\tinlineSize: \"7px\",\n\t\tblockSize: \"7px\",\n\t\tbackgroundColor: \"var(--ui-brand-bg-solid)\",\n\t});\n}\n"
11
11
  },
12
12
  "test": {
13
13
  "path": "marketing-section.test.tsx",
14
- "content": "/**\n * Covers {@link MarketingSection} tone, spacing, ruled hairline, and frame\n * chrome so the band host keeps the marketing factory contract.\n *\n * @author [Sergio Xalambrí](https://sergiodxa.com)\n * @copyright Sergio Xalambrí 2026\n */\n\nimport { renderToString } from \"remix/component/server\";\nimport { describe, expect, test } from \"vitest\";\n\nimport { MarketingSection } from \"@sdxc/ui/marketing-section\";\n\ndescribe(\"MarketingSection\", () => {\n\ttest(\"marks tone, spacing, and the named marketing container\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<MarketingSection tone=\"tinted\" spacing=\"hero\" id=\"proof\">\n\t\t\t\tContent\n\t\t\t</MarketingSection>,\n\t\t);\n\n\t\texpect(html).toContain('id=\"proof\"');\n\t\texpect(html).toContain('data-tone=\"tinted\"');\n\t\texpect(html).toContain('data-spacing=\"hero\"');\n\t\texpect(html).toContain(\"container: ui-marketing-section / inline-size\");\n\t\texpect(html).toContain(\"var(--ui-marketing-section-space-hero\");\n\t});\n\n\ttest(\"draws a hairline when ruled and frame rails when variant is frame\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<MarketingSection ruled variant=\"frame\">\n\t\t\t\tFramed\n\t\t\t</MarketingSection>,\n\t\t);\n\n\t\texpect(html).toContain('data-variant=\"frame\"');\n\t\texpect(html).toContain(\"border-block-start\");\n\t\texpect(html).toContain(\"border-inline-start\");\n\t});\n});\n"
14
+ "content": "/**\n * Covers {@link MarketingSection} tone, spacing, ruled hairline, and frame\n * chrome so the band host keeps the marketing factory contract.\n *\n * @author [Sergio Xalambrí](https://sergiodxa.com)\n * @copyright Sergio Xalambrí 2026\n */\n\nimport { renderToString } from \"remix/component/server\";\nimport { describe, expect, test } from \"vitest\";\n\nimport { MarketingSection } from \"@sdxc/ui/marketing-section\";\n\ndescribe(\"MarketingSection\", () => {\n\ttest(\"marks tone, spacing, and the named marketing container\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<MarketingSection tone=\"tinted\" spacing=\"hero\" id=\"proof\">\n\t\t\t\tContent\n\t\t\t</MarketingSection>,\n\t\t);\n\n\t\texpect(html).toContain('id=\"proof\"');\n\t\texpect(html).toContain('data-tone=\"tinted\"');\n\t\texpect(html).toContain('data-spacing=\"hero\"');\n\t\texpect(html).toContain(\"container: ui-marketing-section / inline-size\");\n\t\texpect(html).toContain(\"var(--ui-marketing-section-space-hero\");\n\t});\n\n\ttest(\"draws a hairline when ruled and frame rails when variant is frame\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<MarketingSection ruled variant=\"frame\">\n\t\t\t\tFramed\n\t\t\t</MarketingSection>,\n\t\t);\n\n\t\texpect(html).toContain('data-variant=\"frame\"');\n\t\texpect(html).toContain(\"border-block-start\");\n\t\texpect(html).toContain(\"border-inline-start\");\n\t\texpect(html).toContain(\"var(--ui-marketing-section-space\");\n\t});\n\n\ttest(\"puts framed block padding on the rail column so rails run the full band height\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<MarketingSection ruled variant=\"frame\" spacing=\"hero\">\n\t\t\t\tFramed\n\t\t\t</MarketingSection>,\n\t\t);\n\n\t\tlet spaceClass = html.match(\n\t\t\t/\\.([a-z0-9-]+) \\{\\s*padding-block: var\\(--ui-marketing-section-space-hero/,\n\t\t)?.[1];\n\t\tlet sectionClasses = html.match(/<section[^>]*data-variant=\"frame\"[^>]*class=\"([^\"]*)\"/)?.[1];\n\n\t\texpect(spaceClass).toBeTruthy();\n\t\texpect(sectionClasses).toBeTruthy();\n\t\texpect(sectionClasses).not.toContain(spaceClass!);\n\t\texpect(html).toMatch(new RegExp(`<div class=\"[^\"]*${spaceClass}`));\n\t\texpect(html).toContain(\"border-inline-start\");\n\t\texpect(html).toContain(\"padding-inline\");\n\t});\n\n\ttest(\"flush framed bands keep rails without section block padding\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<MarketingSection ruled variant=\"frame\" spacing=\"compact\" flush>\n\t\t\t\tStrip\n\t\t\t</MarketingSection>,\n\t\t);\n\n\t\texpect(html).toContain('data-flush=\"true\"');\n\t\texpect(html).toContain(\"border-inline-start\");\n\t\texpect(html).not.toContain(\"var(--ui-marketing-section-space-compact\");\n\t});\n});\n"
15
15
  }
16
16
  }
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "split",
3
- "changedIn": "2026.10.29",
3
+ "changedIn": "2026.10.30",
4
4
  "dependencies": [],
5
5
  "exports": [
6
6
  "Split"
7
7
  ],
8
8
  "source": {
9
9
  "path": "split.tsx",
10
- "content": "/**\n * Two-column marketing band content: prose on one side and the media it\n * describes on the other. Stacks to a single column under the nearest\n * container; `lean` hands the wider track to copy or media.\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 { fg } from \"@sdxc/u/color\";\nimport { raw } from \"@sdxc/u/general\";\nimport { container, gap, grid, gridTemplate, items, vstack } from \"@sdxc/u/layout\";\nimport { at } from \"@sdxc/u/responsive\";\nimport { minIs } from \"@sdxc/u/size\";\nimport { when } from \"@sdxc/u/state\";\nimport { leading, text } from \"@sdxc/u/typography\";\n\n/** Which column gets the wider track when `lean` is omitted. */\nconst DEFAULT_LEAN: Split.Lean = \"media\";\n\n/** The check each claim list item is marked with, drawn as a brand-filled mask. */\nconst CHECK_MASK = `url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E\") center / contain no-repeat`;\n\n/**\n * Prop types for {@link Split} and its compound parts.\n */\nexport namespace Split {\n\t/**\n\t * Which column receives the wider track above the stack breakpoint.\n\t */\n\texport type Lean = \"copy\" | \"media\";\n\n\t/**\n\t * Props accepted by {@link Split}.\n\t */\n\texport interface Props extends TagProps<\"div\"> {\n\t\t/**\n\t\t * Which column is wider. Defaults to {@link DEFAULT_LEAN} so media\n\t\t * usually leads the layout.\n\t\t */\n\t\tlean?: Lean;\n\t\t/** {@link Split.Copy} and {@link Split.Media} columns. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Split.Copy}.\n\t */\n\texport interface CopyProps extends TagProps<\"div\"> {\n\t\t/**\n\t\t * When set, unordered lists inside the copy render as checked claims\n\t\t * rather than bullets.\n\t\t */\n\t\tchecks?: boolean;\n\t\t/** Prose, claims, and supporting copy for the column. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Split.Media}.\n\t */\n\texport interface MediaProps extends TagProps<\"div\"> {\n\t\t/** Media, samples, or staged UI for the column. */\n\t\tchildren: RemixNode;\n\t}\n}\n\n/**\n * Lays {@link Split.Copy} and {@link Split.Media} as a two-track grid that\n * collapses to one column below `lg` on its own named container.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the split's markup.\n * @example\n * <Split lean=\"copy\">\n * \t<Split.Copy checks>{claims}</Split.Copy>\n * \t<Split.Media>{shot}</Split.Media>\n * </Split>\n */\nexport function Split(handle: Handle<Split.Props>) {\n\treturn () => {\n\t\tlet { lean, mix, ...rest } = handle.props;\n\t\tlet resolvedLean = lean ?? DEFAULT_LEAN;\n\t\tlet columns =\n\t\t\tresolvedLean === \"copy\"\n\t\t\t\t? \"minmax(0, 1.15fr) minmax(0, 0.85fr)\"\n\t\t\t\t: \"minmax(0, 0.85fr) minmax(0, 1.15fr)\";\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\t{...rest}\n\t\t\t\tdata-lean={resolvedLean}\n\t\t\t\tdata-slot=\"split\"\n\t\t\t\tmix={[\n\t\t\t\t\tcontainer(\"ui-marketing-split\"),\n\t\t\t\t\tgrid(),\n\t\t\t\t\tgap(12),\n\t\t\t\t\titems(\"start\"),\n\t\t\t\t\tgridTemplate({ columns: \"minmax(0, 1fr)\" }),\n\t\t\t\t\tat(\"lg\", \"ui-marketing-split\", gridTemplate({ columns })),\n\t\t\t\t\tmix,\n\t\t\t\t]}\n\t\t\t/>\n\t\t);\n\t};\n}\n\n/**\n * The prose column of a {@link Split}. Pass `checks` so nested unordered\n * lists read as claim rows with brand check marks.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the copy column.\n * @example\n * <Split.Copy checks>\n * \t<ul><li>{t(\"claim.one\")}</li></ul>\n * </Split.Copy>\n */\nSplit.Copy = function SplitCopy(handle: Handle<Split.CopyProps>) {\n\treturn () => {\n\t\tlet { checks, 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=\"split-copy\"\n\t\t\t\tdata-checks={checks ? \"true\" : undefined}\n\t\t\t\tmix={[\n\t\t\t\t\tvstack({ gap: 6, align: \"stretch\" }),\n\t\t\t\t\ttext(\"lg\"),\n\t\t\t\t\tleading(\"relaxed\"),\n\t\t\t\t\tfg(\"neutral\"),\n\t\t\t\t\tchecks\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\twhen(\n\t\t\t\t\t\t\t\t\t\"& ul\",\n\t\t\t\t\t\t\t\t\traw({\n\t\t\t\t\t\t\t\t\t\tlistStyle: \"none\",\n\t\t\t\t\t\t\t\t\t\tpadding: \"0\",\n\t\t\t\t\t\t\t\t\t\tmargin: \"0\",\n\t\t\t\t\t\t\t\t\t\tdisplay: \"grid\",\n\t\t\t\t\t\t\t\t\t\tgap: \"0.625rem\",\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\twhen(\n\t\t\t\t\t\t\t\t\t\"& li\",\n\t\t\t\t\t\t\t\t\traw({\n\t\t\t\t\t\t\t\t\t\tposition: \"relative\",\n\t\t\t\t\t\t\t\t\t\tpaddingInlineStart: \"1.75rem\",\n\t\t\t\t\t\t\t\t\t\tfontSize: \"1rem\",\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\twhen(\n\t\t\t\t\t\t\t\t\t\"& li::before\",\n\t\t\t\t\t\t\t\t\traw({\n\t\t\t\t\t\t\t\t\t\tcontent: '\"\"',\n\t\t\t\t\t\t\t\t\t\tposition: \"absolute\",\n\t\t\t\t\t\t\t\t\t\tinsetInlineStart: \"0\",\n\t\t\t\t\t\t\t\t\t\tinsetBlockStart: \"0.3em\",\n\t\t\t\t\t\t\t\t\t\tinlineSize: \"1rem\",\n\t\t\t\t\t\t\t\t\t\tblockSize: \"1rem\",\n\t\t\t\t\t\t\t\t\t\tbackgroundColor: \"var(--ui-brand-fg)\",\n\t\t\t\t\t\t\t\t\t\tmask: CHECK_MASK,\n\t\t\t\t\t\t\t\t\t\tWebkitMask: CHECK_MASK,\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t]\n\t\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 * The media column of a {@link Split}, sized to the track rather than its\n * content so a long sample does not tower over the copy beside it.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the media column.\n * @example\n * <Split.Media>\n * \t<img src={shot} alt={alt} />\n * </Split.Media>\n */\nSplit.Media = function SplitMedia(handle: Handle<Split.MediaProps>) {\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=\"split-media\"\n\t\t\t\tmix={[\n\t\t\t\t\tvstack({ gap: 4, align: \"stretch\" }),\n\t\t\t\t\tminIs(0),\n\t\t\t\t\ttext(\"base\"),\n\t\t\t\t\twhen(\"& pre\", raw({ maxBlockSize: \"22rem\", overflowY: \"auto\" })),\n\t\t\t\t\tmix,\n\t\t\t\t]}\n\t\t\t/>\n\t\t);\n\t};\n};\n"
10
+ "content": "/**\n * Two-column marketing band content: prose on one side and the media it\n * describes on the other. Stacks to a single column under the nearest\n * container; `lean` hands the wider track to copy or media.\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 { fg } from \"@sdxc/u/color\";\nimport { raw } from \"@sdxc/u/general\";\nimport { container, gap, grid, gridTemplate, items, vstack } from \"@sdxc/u/layout\";\nimport { at } from \"@sdxc/u/responsive\";\nimport { minIs } from \"@sdxc/u/size\";\nimport { when } from \"@sdxc/u/state\";\nimport { leading, text } from \"@sdxc/u/typography\";\n\n/** Which column gets the wider track when `lean` is omitted. */\nconst DEFAULT_LEAN: Split.Lean = \"media\";\n\n/** The check each claim list item is marked with, drawn as a brand-filled mask. */\nconst CHECK_MASK = `url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E\") center / contain no-repeat`;\n\n/**\n * Prop types for {@link Split} and its compound parts.\n */\nexport namespace Split {\n\t/**\n\t * Which column receives the wider track above the stack breakpoint.\n\t */\n\texport type Lean = \"copy\" | \"media\";\n\n\t/**\n\t * Props accepted by {@link Split}.\n\t */\n\texport interface Props extends TagProps<\"div\"> {\n\t\t/**\n\t\t * Which column is wider. Defaults to {@link DEFAULT_LEAN} so media\n\t\t * usually leads the layout.\n\t\t */\n\t\tlean?: Lean;\n\t\t/** {@link Split.Copy} and {@link Split.Media} columns. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Split.Copy}.\n\t */\n\texport interface CopyProps extends TagProps<\"div\"> {\n\t\t/**\n\t\t * When set, unordered lists inside the copy render as checked claims\n\t\t * rather than bullets.\n\t\t */\n\t\tchecks?: boolean;\n\t\t/** Prose, claims, and supporting copy for the column. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link Split.Media}.\n\t */\n\texport interface MediaProps extends TagProps<\"div\"> {\n\t\t/** Media, samples, or staged UI for the column. */\n\t\tchildren: RemixNode;\n\t}\n}\n\n/**\n * Lays {@link Split.Copy} and {@link Split.Media} as a two-track grid. The host\n * is the named sizing container; an inner wrapper holds the tracks and\n * `@container` column rules so the query can restyle a descendant. Collapses\n * to one column below `xl` (64rem), matching the landing's original viewport\n * threshold so copy and media do not squeeze side-by-side too early.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the split's markup.\n * @example\n * <Split lean=\"copy\">\n * \t<Split.Copy checks>{claims}</Split.Copy>\n * \t<Split.Media>{shot}</Split.Media>\n * </Split>\n */\nexport function Split(handle: Handle<Split.Props>) {\n\treturn () => {\n\t\tlet { children, lean, mix, ...rest } = handle.props;\n\t\tlet resolvedLean = lean ?? DEFAULT_LEAN;\n\t\tlet columns =\n\t\t\tresolvedLean === \"copy\"\n\t\t\t\t? \"minmax(0, 1.15fr) minmax(0, 0.85fr)\"\n\t\t\t\t: \"minmax(0, 0.85fr) minmax(0, 1.15fr)\";\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\t{...rest}\n\t\t\t\tdata-lean={resolvedLean}\n\t\t\t\tdata-slot=\"split\"\n\t\t\t\tmix={[container(\"ui-marketing-split\"), mix]}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tmix={[\n\t\t\t\t\t\tgrid(),\n\t\t\t\t\t\tgap(12),\n\t\t\t\t\t\titems(\"start\"),\n\t\t\t\t\t\tgridTemplate({ columns: \"minmax(0, 1fr)\" }),\n\t\t\t\t\t\tat(\"xl\", \"ui-marketing-split\", gridTemplate({ columns })),\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t};\n}\n\n/**\n * The prose column of a {@link Split}. Pass `checks` so nested unordered\n * lists read as claim rows with brand check marks.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the copy column.\n * @example\n * <Split.Copy checks>\n * \t<ul><li>{t(\"claim.one\")}</li></ul>\n * </Split.Copy>\n */\nSplit.Copy = function SplitCopy(handle: Handle<Split.CopyProps>) {\n\treturn () => {\n\t\tlet { checks, 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=\"split-copy\"\n\t\t\t\tdata-checks={checks ? \"true\" : undefined}\n\t\t\t\tmix={[\n\t\t\t\t\tvstack({ gap: 6, align: \"stretch\" }),\n\t\t\t\t\ttext(\"lg\"),\n\t\t\t\t\tleading(\"relaxed\"),\n\t\t\t\t\tfg(\"neutral\"),\n\t\t\t\t\tchecks\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\twhen(\n\t\t\t\t\t\t\t\t\t\"& ul\",\n\t\t\t\t\t\t\t\t\traw({\n\t\t\t\t\t\t\t\t\t\tlistStyle: \"none\",\n\t\t\t\t\t\t\t\t\t\tpadding: \"0\",\n\t\t\t\t\t\t\t\t\t\tmargin: \"0\",\n\t\t\t\t\t\t\t\t\t\tdisplay: \"grid\",\n\t\t\t\t\t\t\t\t\t\tgap: \"0.625rem\",\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\twhen(\n\t\t\t\t\t\t\t\t\t\"& li\",\n\t\t\t\t\t\t\t\t\traw({\n\t\t\t\t\t\t\t\t\t\tposition: \"relative\",\n\t\t\t\t\t\t\t\t\t\tpaddingInlineStart: \"1.75rem\",\n\t\t\t\t\t\t\t\t\t\tfontSize: \"1rem\",\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\twhen(\n\t\t\t\t\t\t\t\t\t\"& li::before\",\n\t\t\t\t\t\t\t\t\traw({\n\t\t\t\t\t\t\t\t\t\tcontent: '\"\"',\n\t\t\t\t\t\t\t\t\t\tposition: \"absolute\",\n\t\t\t\t\t\t\t\t\t\tinsetInlineStart: \"0\",\n\t\t\t\t\t\t\t\t\t\tinsetBlockStart: \"0.3em\",\n\t\t\t\t\t\t\t\t\t\tinlineSize: \"1rem\",\n\t\t\t\t\t\t\t\t\t\tblockSize: \"1rem\",\n\t\t\t\t\t\t\t\t\t\tbackgroundColor: \"var(--ui-brand-fg)\",\n\t\t\t\t\t\t\t\t\t\tmask: CHECK_MASK,\n\t\t\t\t\t\t\t\t\t\tWebkitMask: CHECK_MASK,\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t]\n\t\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 * The media column of a {@link Split}, sized to the track rather than its\n * content so a long sample does not tower over the copy beside it.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the media column.\n * @example\n * <Split.Media>\n * \t<img src={shot} alt={alt} />\n * </Split.Media>\n */\nSplit.Media = function SplitMedia(handle: Handle<Split.MediaProps>) {\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=\"split-media\"\n\t\t\t\tmix={[\n\t\t\t\t\tvstack({ gap: 4, align: \"stretch\" }),\n\t\t\t\t\tminIs(0),\n\t\t\t\t\ttext(\"base\"),\n\t\t\t\t\twhen(\"& pre\", raw({ maxBlockSize: \"22rem\", overflowY: \"auto\" })),\n\t\t\t\t\tmix,\n\t\t\t\t]}\n\t\t\t/>\n\t\t);\n\t};\n};\n"
11
11
  },
12
12
  "test": {
13
13
  "path": "split.test.tsx",
14
- "content": "/**\n * Covers {@link Split} lean tracks, check-styled copy lists, and media column\n * sizing.\n *\n * @author [Sergio Xalambrí](https://sergiodxa.com)\n * @copyright Sergio Xalambrí 2026\n */\n\nimport { renderToString } from \"remix/component/server\";\nimport { describe, expect, test } from \"vitest\";\n\nimport { Split } from \"@sdxc/ui/split\";\n\ndescribe(\"Split\", () => {\n\ttest(\"leans the wider track toward copy when requested\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<Split lean=\"copy\">\n\t\t\t\t<Split.Copy>Claims</Split.Copy>\n\t\t\t\t<Split.Media>Shot</Split.Media>\n\t\t\t</Split>,\n\t\t);\n\n\t\texpect(html).toContain('data-lean=\"copy\"');\n\t\texpect(html).toContain(\"container: ui-marketing-split / inline-size\");\n\t\texpect(html).toContain(\"1.15fr\");\n\t\texpect(html).toContain(\"0.85fr\");\n\t\texpect(html).toContain('data-slot=\"split-copy\"');\n\t\texpect(html).toContain('data-slot=\"split-media\"');\n\t});\n\n\ttest(\"marks checked claim lists when checks is set\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<Split.Copy checks>\n\t\t\t\t<ul>\n\t\t\t\t\t<li>Claim one</li>\n\t\t\t\t</ul>\n\t\t\t</Split.Copy>,\n\t\t);\n\n\t\texpect(html).toContain('data-checks=\"true\"');\n\t\texpect(html).toContain(\"list-style: none\");\n\t\texpect(html).toContain(\"-webkit-mask:\");\n\t});\n});\n"
14
+ "content": "/**\n * Covers {@link Split} lean tracks, check-styled copy lists, and media column\n * sizing.\n *\n * @author [Sergio Xalambrí](https://sergiodxa.com)\n * @copyright Sergio Xalambrí 2026\n */\n\nimport { renderToString } from \"remix/component/server\";\nimport { describe, expect, test } from \"vitest\";\n\nimport { Split } from \"@sdxc/ui/split\";\n\ndescribe(\"Split\", () => {\n\ttest(\"leans the wider track toward copy when requested\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<Split lean=\"copy\">\n\t\t\t\t<Split.Copy>Claims</Split.Copy>\n\t\t\t\t<Split.Media>Shot</Split.Media>\n\t\t\t</Split>,\n\t\t);\n\n\t\texpect(html).toContain('data-lean=\"copy\"');\n\t\texpect(html).toContain(\"container: ui-marketing-split / inline-size\");\n\t\texpect(html).toContain(\"1.15fr\");\n\t\texpect(html).toContain(\"0.85fr\");\n\t\texpect(html).toContain('data-slot=\"split-copy\"');\n\t\texpect(html).toContain('data-slot=\"split-media\"');\n\t});\n\n\ttest(\"marks checked claim lists when checks is set\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<Split.Copy checks>\n\t\t\t\t<ul>\n\t\t\t\t\t<li>Claim one</li>\n\t\t\t\t</ul>\n\t\t\t</Split.Copy>,\n\t\t);\n\n\t\texpect(html).toContain('data-checks=\"true\"');\n\t\texpect(html).toContain(\"list-style: none\");\n\t\texpect(html).toContain(\"-webkit-mask:\");\n\t});\n\n\ttest(\"keeps the named container on the host and the column tracks on an inner wrapper\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<Split lean=\"media\">\n\t\t\t\t<Split.Copy>Claims</Split.Copy>\n\t\t\t\t<Split.Media>Shot</Split.Media>\n\t\t\t</Split>,\n\t\t);\n\n\t\texpect(html).toMatch(/data-slot=\"split\"[^>]*>\\s*<div\\b/);\n\t\texpect(html).toContain(\"container: ui-marketing-split / inline-size\");\n\t\texpect(html).toContain(\"@container ui-marketing-split (min-width: 64rem)\");\n\n\t\tlet hostClasses = new Set(\n\t\t\t(html.match(/data-slot=\"split\"[^>]*class=\"([^\"]+)\"/)?.[1] ?? \"\").split(/\\s+/).filter(Boolean),\n\t\t);\n\t\tlet tracksMatch = html.match(\n\t\t\t/@container ui-marketing-split \\(min-width:[^)]+\\)\\s*\\{\\s*\\.([a-z0-9-]+)\\s*\\{/,\n\t\t);\n\t\texpect(tracksMatch?.[1]).toBeTruthy();\n\t\texpect(hostClasses.has(tracksMatch![1]!)).toBe(false);\n\t});\n});\n"
15
15
  }
16
16
  }
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "stat-strip",
3
- "changedIn": "2026.10.29",
3
+ "changedIn": "2026.10.30",
4
4
  "dependencies": [],
5
5
  "exports": [
6
6
  "StatStrip"
7
7
  ],
8
8
  "source": {
9
9
  "path": "stat-strip.tsx",
10
- "content": "/**\n * A numeric proof strip for marketing bands: each cell carries a value and a\n * label supplied by the page, laid out as a responsive grid with ruled or\n * gapped seams.\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 { borderEdge, fg } from \"@sdxc/u/color\";\nimport { container, gap, grid, gridTemplate, repeat, vstack } from \"@sdxc/u/layout\";\nimport { at } from \"@sdxc/u/responsive\";\nimport { p } from \"@sdxc/u/size\";\nimport { when } from \"@sdxc/u/state\";\nimport { balance, leading, text, tracking, weight } from \"@sdxc/u/typography\";\n\n/** Seam treatment {@link StatStrip} applies when `variant` is omitted. */\nconst DEFAULT_VARIANT: StatStrip.Variant = \"ruled\";\n\n/**\n * Prop types for {@link StatStrip} and its compound parts.\n */\nexport namespace StatStrip {\n\t/**\n\t * How cells meet: a hairline between them, or a gap with no rule.\n\t */\n\texport type Variant = \"ruled\" | \"gap\";\n\n\t/**\n\t * Props accepted by {@link StatStrip}.\n\t */\n\texport interface Props extends TagProps<\"div\"> {\n\t\t/** Seam treatment. Defaults to {@link DEFAULT_VARIANT}. */\n\t\tvariant?: Variant;\n\t\t/** One or more {@link StatStrip.Item} cells. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link StatStrip.Item}.\n\t */\n\texport interface ItemProps extends TagProps<\"div\"> {\n\t\t/** What the number counts — always supplied by the page. */\n\t\tlabel: RemixNode;\n\t\t/** The figure itself. */\n\t\tchildren: RemixNode;\n\t}\n}\n\n/**\n * Lays {@link StatStrip.Item} children in a responsive grid that starts at two\n * columns and opens to as many as five above `lg` on its own named container.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the strip's markup.\n * @example\n * <StatStrip>\n * \t<StatStrip.Item label={t(\"stats.packages\")}>42</StatStrip.Item>\n * \t<StatStrip.Item label={t(\"stats.apps\")}>12</StatStrip.Item>\n * </StatStrip>\n */\nexport function StatStrip(handle: Handle<StatStrip.Props>) {\n\treturn () => {\n\t\tlet { mix, variant, ...rest } = handle.props;\n\t\tlet resolvedVariant = variant ?? DEFAULT_VARIANT;\n\t\tlet isRuled = resolvedVariant === \"ruled\";\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\t{...rest}\n\t\t\t\tdata-variant={resolvedVariant}\n\t\t\t\tdata-slot=\"stat-strip\"\n\t\t\t\tmix={[\n\t\t\t\t\tcontainer(\"ui-marketing-stat-strip\"),\n\t\t\t\t\tgrid(),\n\t\t\t\t\tisRuled ? gap(0) : gap(6),\n\t\t\t\t\tgridTemplate({ columns: repeat(2, \"minmax(0, 1fr)\") }),\n\t\t\t\t\tat(\n\t\t\t\t\t\t\"lg\",\n\t\t\t\t\t\t\"ui-marketing-stat-strip\",\n\t\t\t\t\t\tgridTemplate({ columns: repeat(5, \"minmax(0, 1fr)\") }),\n\t\t\t\t\t),\n\t\t\t\t\twhen(\"& > *\", [p(6, 5), at(\"md\", \"ui-marketing-stat-strip\", p(8, 8))]),\n\t\t\t\t\tisRuled\n\t\t\t\t\t\t? when(\n\t\t\t\t\t\t\t\t\"& > * + *\",\n\t\t\t\t\t\t\t\tat(\n\t\t\t\t\t\t\t\t\t\"lg\",\n\t\t\t\t\t\t\t\t\t\"ui-marketing-stat-strip\",\n\t\t\t\t\t\t\t\t\tborderEdge(\"inline-start\", {\n\t\t\t\t\t\t\t\t\t\tcolor: \"neutral\",\n\t\t\t\t\t\t\t\t\t\twidth: 1,\n\t\t\t\t\t\t\t\t\t\tstyle: \"solid\",\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t)\n\t\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 * One proof cell: the figure as `children`, and what it counts as `label`.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the cell's markup.\n * @example\n * <StatStrip.Item label={t(\"stats.uptime\")}>99.99%</StatStrip.Item>\n */\nStatStrip.Item = function StatStripItem(handle: Handle<StatStrip.ItemProps>) {\n\treturn () => {\n\t\tlet { children, label, mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<div {...rest} data-slot=\"stat-strip-item\" mix={[vstack({ gap: 1, align: \"start\" }), mix]}>\n\t\t\t\t<span\n\t\t\t\t\tmix={[\n\t\t\t\t\t\ttext(\"3xl\"),\n\t\t\t\t\t\tweight(\"medium\"),\n\t\t\t\t\t\ttracking(\"tight\"),\n\t\t\t\t\t\tleading(\"none\"),\n\t\t\t\t\t\tfg(\"neutral.emphasis\"),\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</span>\n\t\t\t\t<span mix={[text(\"sm\"), leading(\"snug\"), balance(), fg(\"neutral\")]}>{label}</span>\n\t\t\t</div>\n\t\t);\n\t};\n};\n"
10
+ "content": "/**\n * A numeric proof strip for marketing bands: each cell carries a value and a\n * label supplied by the page, laid out as a responsive grid with ruled or\n * gapped seams.\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 { borderEdge, fg } from \"@sdxc/u/color\";\nimport { container, gap, grid, gridTemplate, repeat, vstack } from \"@sdxc/u/layout\";\nimport { at } from \"@sdxc/u/responsive\";\nimport { p } from \"@sdxc/u/size\";\nimport { when } from \"@sdxc/u/state\";\nimport { balance, leading, text, tracking, weight } from \"@sdxc/u/typography\";\n\n/** Seam treatment {@link StatStrip} applies when `variant` is omitted. */\nconst DEFAULT_VARIANT: StatStrip.Variant = \"ruled\";\n\n/**\n * Prop types for {@link StatStrip} and its compound parts.\n */\nexport namespace StatStrip {\n\t/**\n\t * How cells meet: a hairline between them, or a gap with no rule.\n\t */\n\texport type Variant = \"ruled\" | \"gap\";\n\n\t/**\n\t * Props accepted by {@link StatStrip}.\n\t */\n\texport interface Props extends TagProps<\"div\"> {\n\t\t/** Seam treatment. Defaults to {@link DEFAULT_VARIANT}. */\n\t\tvariant?: Variant;\n\t\t/** One or more {@link StatStrip.Item} cells. */\n\t\tchildren: RemixNode;\n\t}\n\n\t/**\n\t * Props accepted by {@link StatStrip.Item}.\n\t */\n\texport interface ItemProps extends TagProps<\"div\"> {\n\t\t/** What the number counts — always supplied by the page. */\n\t\tlabel: RemixNode;\n\t\t/** The figure itself. */\n\t\tchildren: RemixNode;\n\t}\n}\n\n/**\n * Lays {@link StatStrip.Item} children in a responsive grid. The host is the\n * named sizing container; an inner wrapper holds the tracks and `@container`\n * column / seam rules so the query can restyle a descendant. Starts at two\n * columns and opens to five above `xl` (64rem), matching the landing's original\n * viewport threshold so mid-width viewports stay a readable pair.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the strip's markup.\n * @example\n * <StatStrip>\n * \t<StatStrip.Item label={t(\"stats.packages\")}>42</StatStrip.Item>\n * \t<StatStrip.Item label={t(\"stats.apps\")}>12</StatStrip.Item>\n * </StatStrip>\n */\nexport function StatStrip(handle: Handle<StatStrip.Props>) {\n\treturn () => {\n\t\tlet { children, mix, variant, ...rest } = handle.props;\n\t\tlet resolvedVariant = variant ?? DEFAULT_VARIANT;\n\t\tlet isRuled = resolvedVariant === \"ruled\";\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\t{...rest}\n\t\t\t\tdata-variant={resolvedVariant}\n\t\t\t\tdata-slot=\"stat-strip\"\n\t\t\t\tmix={[container(\"ui-marketing-stat-strip\"), mix]}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tmix={[\n\t\t\t\t\t\tgrid(),\n\t\t\t\t\t\tisRuled ? gap(0) : gap(6),\n\t\t\t\t\t\tgridTemplate({ columns: repeat(2, \"minmax(0, 1fr)\") }),\n\t\t\t\t\t\tat(\n\t\t\t\t\t\t\t\"xl\",\n\t\t\t\t\t\t\t\"ui-marketing-stat-strip\",\n\t\t\t\t\t\t\tgridTemplate({ columns: repeat(5, \"minmax(0, 1fr)\") }),\n\t\t\t\t\t\t),\n\t\t\t\t\t\twhen(\"& > *\", [p(6, 5), at(\"lg\", \"ui-marketing-stat-strip\", p(8, 8))]),\n\t\t\t\t\t\tisRuled\n\t\t\t\t\t\t\t? when(\n\t\t\t\t\t\t\t\t\t\"& > * + *\",\n\t\t\t\t\t\t\t\t\tat(\n\t\t\t\t\t\t\t\t\t\t\"xl\",\n\t\t\t\t\t\t\t\t\t\t\"ui-marketing-stat-strip\",\n\t\t\t\t\t\t\t\t\t\tborderEdge(\"inline-start\", {\n\t\t\t\t\t\t\t\t\t\t\tcolor: \"neutral\",\n\t\t\t\t\t\t\t\t\t\t\twidth: 1,\n\t\t\t\t\t\t\t\t\t\t\tstyle: \"solid\",\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t: [],\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t};\n}\n\n/**\n * One proof cell: the figure as `children`, and what it counts as `label`.\n *\n * @param handle Runtime handle carrying the host `<div>`'s props.\n * @returns The render function producing the cell's markup.\n * @example\n * <StatStrip.Item label={t(\"stats.uptime\")}>99.99%</StatStrip.Item>\n */\nStatStrip.Item = function StatStripItem(handle: Handle<StatStrip.ItemProps>) {\n\treturn () => {\n\t\tlet { children, label, mix, ...rest } = handle.props;\n\n\t\treturn (\n\t\t\t<div {...rest} data-slot=\"stat-strip-item\" mix={[vstack({ gap: 1, align: \"start\" }), mix]}>\n\t\t\t\t<span\n\t\t\t\t\tmix={[\n\t\t\t\t\t\ttext(\"3xl\"),\n\t\t\t\t\t\tweight(\"medium\"),\n\t\t\t\t\t\ttracking(\"tight\"),\n\t\t\t\t\t\tleading(\"none\"),\n\t\t\t\t\t\tfg(\"neutral.emphasis\"),\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</span>\n\t\t\t\t<span mix={[text(\"sm\"), leading(\"snug\"), balance(), fg(\"neutral\")]}>{label}</span>\n\t\t\t</div>\n\t\t);\n\t};\n};\n"
11
11
  },
12
12
  "test": {
13
13
  "path": "stat-strip.test.tsx",
14
- "content": "/**\n * Covers {@link StatStrip} ruled and gap variants plus item value/label slots.\n *\n * @author [Sergio Xalambrí](https://sergiodxa.com)\n * @copyright Sergio Xalambrí 2026\n */\n\nimport { renderToString } from \"remix/component/server\";\nimport { describe, expect, test } from \"vitest\";\n\nimport { StatStrip } from \"@sdxc/ui/stat-strip\";\n\ndescribe(\"StatStrip\", () => {\n\ttest(\"renders ruled cells with value and label\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<StatStrip>\n\t\t\t\t<StatStrip.Item label=\"Packages\">42</StatStrip.Item>\n\t\t\t\t<StatStrip.Item label=\"Apps\">12</StatStrip.Item>\n\t\t\t</StatStrip>,\n\t\t);\n\n\t\texpect(html).toContain('data-variant=\"ruled\"');\n\t\texpect(html).toContain(\"42\");\n\t\texpect(html).toContain(\"Packages\");\n\t\texpect(html).toContain(\"border-inline-start\");\n\t\texpect(html).toContain(\"container: ui-marketing-stat-strip / inline-size\");\n\t});\n\n\ttest(\"uses a gap seam when variant is gap\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<StatStrip variant=\"gap\">\n\t\t\t\t<StatStrip.Item label=\"Uptime\">99.99%</StatStrip.Item>\n\t\t\t</StatStrip>,\n\t\t);\n\n\t\texpect(html).toContain('data-variant=\"gap\"');\n\t\texpect(html).toContain(\"99.99%\");\n\t});\n});\n"
14
+ "content": "/**\n * Covers {@link StatStrip} ruled and gap variants plus item value/label slots.\n *\n * @author [Sergio Xalambrí](https://sergiodxa.com)\n * @copyright Sergio Xalambrí 2026\n */\n\nimport { renderToString } from \"remix/component/server\";\nimport { describe, expect, test } from \"vitest\";\n\nimport { StatStrip } from \"@sdxc/ui/stat-strip\";\n\ndescribe(\"StatStrip\", () => {\n\ttest(\"renders ruled cells with value and label\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<StatStrip>\n\t\t\t\t<StatStrip.Item label=\"Packages\">42</StatStrip.Item>\n\t\t\t\t<StatStrip.Item label=\"Apps\">12</StatStrip.Item>\n\t\t\t</StatStrip>,\n\t\t);\n\n\t\texpect(html).toContain('data-variant=\"ruled\"');\n\t\texpect(html).toContain(\"42\");\n\t\texpect(html).toContain(\"Packages\");\n\t\texpect(html).toContain(\"border-inline-start\");\n\t\texpect(html).toContain(\"container: ui-marketing-stat-strip / inline-size\");\n\t});\n\n\ttest(\"uses a gap seam when variant is gap\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<StatStrip variant=\"gap\">\n\t\t\t\t<StatStrip.Item label=\"Uptime\">99.99%</StatStrip.Item>\n\t\t\t</StatStrip>,\n\t\t);\n\n\t\texpect(html).toContain('data-variant=\"gap\"');\n\t\texpect(html).toContain(\"99.99%\");\n\t});\n\n\ttest(\"keeps the named container on the host and the column tracks on an inner wrapper\", async () => {\n\t\tlet html = await renderToString(\n\t\t\t<StatStrip>\n\t\t\t\t<StatStrip.Item label=\"Packages\">42</StatStrip.Item>\n\t\t\t\t<StatStrip.Item label=\"Apps\">12</StatStrip.Item>\n\t\t\t</StatStrip>,\n\t\t);\n\n\t\texpect(html).toMatch(/data-slot=\"stat-strip\"[^>]*>\\s*<div\\b/);\n\t\texpect(html).toContain(\"container: ui-marketing-stat-strip / inline-size\");\n\t\texpect(html).toContain(\"@container ui-marketing-stat-strip (min-width: 64rem)\");\n\t\texpect(html).toContain(\"repeat(5, minmax(0, 1fr))\");\n\n\t\tlet hostClasses = new Set(\n\t\t\t(html.match(/data-slot=\"stat-strip\"[^>]*class=\"([^\"]+)\"/)?.[1] ?? \"\")\n\t\t\t\t.split(/\\s+/)\n\t\t\t\t.filter(Boolean),\n\t\t);\n\t\tlet tracksMatch = html.match(\n\t\t\t/@container ui-marketing-stat-strip \\(min-width:[^)]+\\)\\s*\\{\\s*\\.([a-z0-9-]+)\\s*\\{/,\n\t\t);\n\t\texpect(tracksMatch?.[1]).toBeTruthy();\n\t\texpect(hostClasses.has(tracksMatch![1]!)).toBe(false);\n\t});\n});\n"
15
15
  }
16
16
  }