@loworbitstudio/visor-theme-engine 0.43.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,7 @@ import {
4
4
  FULL_SHADE_STEPS,
5
5
  MATERIAL_TEXT_SLOTS,
6
6
  SELECTIVE_SHADE_STEPS,
7
+ SQUIRCLE_FALLBACK,
7
8
  VISOR_CORE_DARK_SEMANTIC_ALIASES,
8
9
  VISOR_CORE_SEMANTIC_ALIASES_DARK_HOST,
9
10
  aliasFamily,
@@ -33,7 +34,7 @@ import {
33
34
  resolveThemeBrand,
34
35
  resolveThemeFonts,
35
36
  sectionComment
36
- } from "../chunk-25CL4ADD.js";
37
+ } from "../chunk-FN6RU72C.js";
37
38
 
38
39
  // src/adapters/brand-passthrough.ts
39
40
  var SENTINEL_COLOR = "#ff00ff";
@@ -237,6 +238,8 @@ function nextjsAdapter(input, options) {
237
238
  baseLines.push("");
238
239
  baseLines.push(sectionComment("Base: corner shape"));
239
240
  baseLines.push(CORNER_SHAPE_BINDING);
241
+ baseLines.push("");
242
+ baseLines.push(SQUIRCLE_FALLBACK);
240
243
  }
241
244
  lines.push(wrapInLayer("visor-base", baseLines.join("\n").trim()));
242
245
  lines.push("");
@@ -972,7 +975,9 @@ ${inner.split("\n").map((l) => ` ${l}`).join("\n")}
972
975
  const brandLayer = wrapInLayer("visor-brand", brandLayerBody);
973
976
  const head = fontLines.length > 0 ? fontLines.join("\n") + "\n" : "";
974
977
  const baseLayer = input.config.corners === "squircle" ? wrapInLayer("visor-base", `${sectionComment2("Base: corner shape")}
975
- ${CORNER_SHAPE_BINDING}`) : "";
978
+ ${CORNER_SHAPE_BINDING}
979
+
980
+ ${SQUIRCLE_FALLBACK}`) : "";
976
981
  const layerBlocks = [baseLayer, semanticLayer, brandLayer, adaptiveLayer].filter(Boolean);
977
982
  return head + LAYER_ORDER + "\n\n" + layerBlocks.join("\n\n") + "\n";
978
983
  }
@@ -1249,6 +1249,8 @@ function componentTokenName(family, key) {
1249
1249
  var TABLE = "components/ui/table/table.module.css";
1250
1250
  var DATA_TABLE = "components/ui/data-table/data-table.module.css";
1251
1251
  var CHIP = "components/ui/chip/chip.module.css";
1252
+ var STATUS_DOT = "components/ui/status-dot/status-dot.module.css";
1253
+ var OFFLINE_BANNER = "components/ui/offline-banner/offline-banner.module.css";
1252
1254
  var BADGE = "components/ui/badge/badge.module.css";
1253
1255
  var STATUS_BADGE = "components/ui/status-badge/status-badge.module.css";
1254
1256
  var FILTER_BAR = "components/ui/filter-bar/filter-bar.module.css";
@@ -1279,6 +1281,7 @@ var LAYER_CHART = "components/ui/layer-chart/layer-chart.module.css";
1279
1281
  var PROPORTION_BAR = "components/ui/proportion-bar/proportion-bar.module.css";
1280
1282
  var TOGGLE_GROUP = "components/ui/toggle-group/toggle-group.module.css";
1281
1283
  var RADIO_GROUP = "components/ui/radio-group/radio-group.module.css";
1284
+ var REACH_RINGS = "components/ui/reach-rings/reach-rings.module.css";
1282
1285
  var TOOLTIP = "components/ui/tooltip/tooltip.module.css";
1283
1286
  var ACTION_ROW = "components/ui/action-row/action-row.module.css";
1284
1287
  var DIALOG_FIELD = "blocks/dialog-field/dialog-field.module.css";
@@ -1287,6 +1290,7 @@ var BILLING_SLIDER = "components/ui/billing-slider/billing-slider.module.css";
1287
1290
  var RESIZABLE_SPLIT = "components/ui/resizable-split/resizable-split.module.css";
1288
1291
  var DIALOG = "components/ui/dialog/dialog.module.css";
1289
1292
  var STAT_CARD = "components/ui/stat-card/stat-card.module.css";
1293
+ var KEY_VALUE_LIST = "components/ui/key-value-list/key-value-list.module.css";
1290
1294
  function at(file, fallback) {
1291
1295
  return [{ file, fallback }];
1292
1296
  }
@@ -1379,8 +1383,14 @@ var chipFamily = {
1379
1383
  description: "Outlined-chip edge colour. Width and style come from the shared `control` edge, so `control.edge-width: 0` turns it off.",
1380
1384
  consumers: at(CHIP, "var(--control-edge-color, var(--border-default, #e5e7eb))")
1381
1385
  },
1382
- { key: "bg", property: "background-color", description: "Resting chip fill.", consumers: at(CHIP, "var(--surface-card, #ffffff)") },
1383
- { key: "text-color", property: "color", description: "Chip label colour.", consumers: at(CHIP, "var(--text-primary, #111827)") },
1386
+ // VI-801: the default variant reads these too, over the muted fill it drew before.
1387
+ {
1388
+ key: "bg",
1389
+ property: "background-color",
1390
+ description: "Resting chip fill, on the base chip and the default variant.",
1391
+ consumers: [...at(CHIP, "var(--surface-card, #ffffff)"), ...at(CHIP, "var(--surface-muted, #f3f4f6)")]
1392
+ },
1393
+ { key: "text-color", property: "color", description: "Chip label colour.", consumers: each([CHIP, CHIP], "var(--text-primary, #111827)") },
1384
1394
  { key: "font-family", property: "font-family", description: "Chip label family \u2014 bind a mono face for token/ID chips.", consumers: at(CHIP, "var(--font-body, inherit)") },
1385
1395
  { key: "font-weight", property: "font-weight", description: "Chip label weight.", consumers: at(CHIP, "var(--font-weight-medium, 500)") },
1386
1396
  { key: "letter-spacing", property: "letter-spacing", description: "Chip label tracking.", consumers: at(CHIP, "inherit") },
@@ -1399,6 +1409,30 @@ var chipFamily = {
1399
1409
  { key: "selected-text-color", property: "color", description: "Selected chip label colour.", consumers: at(CHIP, "var(--text-link, #2563eb)") }
1400
1410
  ]
1401
1411
  };
1412
+ var statusDotFamily = {
1413
+ family: "status-dot",
1414
+ prefix: "status-dot",
1415
+ description: "StatusDot size. A caller sets `--status-dot-color` on a dot for a colour outside its five tones.",
1416
+ tokens: [{ key: "size", property: "width / height", description: "Dot diameter.", consumers: at(STATUS_DOT, "6px") }]
1417
+ };
1418
+ var offlineBannerFamily = {
1419
+ family: "offline-banner",
1420
+ prefix: "offline-banner",
1421
+ description: "OfflineBanner's pill variant \u2014 height, padding, gap, type size, label and detail weight, detail opacity, icon size, fill, ink and edge. Under `data-glass=\"on\"` the pill reads the glass layer's control values instead.",
1422
+ tokens: [
1423
+ { key: "pill-height", property: "height", description: "Pill height.", consumers: at(OFFLINE_BANNER, "2.5rem") },
1424
+ { key: "pill-padding-x", property: "padding", description: "Pill horizontal padding.", consumers: at(OFFLINE_BANNER, "var(--spacing-4, 1rem)") },
1425
+ { key: "pill-gap", property: "gap", description: "Space between the icon, label and detail.", consumers: at(OFFLINE_BANNER, "var(--spacing-2, 0.5rem)") },
1426
+ { key: "pill-font-size", property: "font-size", description: "Pill type size.", consumers: at(OFFLINE_BANNER, "var(--font-size-sm, 0.875rem)") },
1427
+ { key: "pill-font-weight", property: "font-weight", description: "Label weight.", consumers: at(OFFLINE_BANNER, "var(--font-weight-semibold, 600)") },
1428
+ { key: "pill-detail-font-weight", property: "font-weight", description: "Detail weight.", consumers: at(OFFLINE_BANNER, "var(--font-weight-medium, 500)") },
1429
+ { key: "pill-detail-opacity", property: "opacity", description: "Detail opacity, so it reads quieter than the label in any ink.", consumers: at(OFFLINE_BANNER, "var(--opacity-80, 0.8)") },
1430
+ { key: "pill-icon-size", property: "width / height", description: "Icon size.", consumers: at(OFFLINE_BANNER, "1.125rem") },
1431
+ { key: "pill-bg", property: "background-color", description: "Solid pill fill.", consumers: at(OFFLINE_BANNER, "var(--surface-muted, #f3f4f6)") },
1432
+ { key: "pill-text-color", property: "color", description: "Pill ink: label, detail and icon.", consumers: at(OFFLINE_BANNER, "var(--text-primary, #111827)") },
1433
+ { key: "pill-border", property: "box-shadow (inset edge)", description: "Solid pill edge colour.", consumers: at(OFFLINE_BANNER, "var(--border-default, #e5e7eb)") }
1434
+ ]
1435
+ };
1402
1436
  var badgeFamily = {
1403
1437
  family: "badge",
1404
1438
  prefix: "badge",
@@ -1700,7 +1734,7 @@ var tabsFamily = {
1700
1734
  { key: "list-color", property: "color", description: "Tab-rail base text colour.", consumers: at(TABS, "var(--text-secondary, #6b7280)") },
1701
1735
  { key: "list-bg", property: "background-color", description: "Segmented-variant rail fill.", consumers: at(TABS, "var(--surface-muted, #f3f4f6)") },
1702
1736
  { key: "line-border-bottom", property: "border-bottom", description: "Underlined-variant rail rule (width, style and colour). Unbound, the rail rule is painted at `--hairline-width`; binding this draws your border instead.", consumers: at(TABS, "1px solid transparent") },
1703
- { key: "trigger-radius", property: "border-radius", description: "Trigger corner rounding.", consumers: at(TABS, "var(--radius-md, 0.375rem)") },
1737
+ { key: "trigger-radius", property: "border-radius", description: "Trigger corner rounding. Leave unset: derived from the rail (rail radius minus rail padding minus the 1px trigger inset), so the corners stay concentric (VI-837); the line variant falls back to `--radius-md`. Bound, an explicit override.", consumers: at(TABS, "var(--_inner-radius)") },
1704
1738
  { key: "trigger-padding", property: "padding", description: "Trigger inset.", consumers: at(TABS, "var(--spacing-1, 0.25rem) var(--spacing-2, 0.5rem)") },
1705
1739
  { key: "trigger-font-size", property: "font-size", description: "Trigger type size.", consumers: at(TABS, "var(--font-size-sm, 0.875rem)") },
1706
1740
  { key: "trigger-font-weight", property: "font-weight", description: "Trigger weight.", consumers: at(TABS, "var(--font-weight-medium, 500)") },
@@ -2039,6 +2073,12 @@ var buttonFamily = {
2039
2073
  { key: "default-shadow-hover", property: "box-shadow", description: "`default` variant drop shadow on hover. Defaults to `default-shadow`.", consumers: at(BUTTON, "var(--button-default-shadow, revert-layer)") },
2040
2074
  { key: "outline-text", property: "color", description: "`outline` variant ink.", consumers: at(BUTTON, "var(--text-primary, #111827)") },
2041
2075
  { key: "outline-bg-hover", property: "background-color", description: "`outline` variant fill on hover.", consumers: at(BUTTON, "var(--surface-muted, #f3f4f6)") },
2076
+ // VI-824: the kit's outline squircle button ('Not Now'): 0 26px, 520, a 24% ink ring.
2077
+ { key: "outline-bg", property: "background-color", description: "`outline` variant fill at rest. Unbound, it is transparent.", consumers: at(BUTTON, "transparent") },
2078
+ { key: "outline-padding", property: "padding", description: "`outline` variant padding on every labelled size, over the size's own padding (`0 26px` for the kit). Unbound, each size keeps its padding.", consumers: at(BUTTON, null) },
2079
+ { key: "outline-font-weight", property: "font-weight", description: "`outline` variant weight on every size, over the size and family weights (`520` for the kit). Unbound, each size keeps its weight.", consumers: at(BUTTON, null) },
2080
+ { key: "outline-ring-color", property: "outline-color", description: "`outline` variant ring colour, apart from the shared `--control-edge-color`.", consumers: at(BUTTON, "var(--control-edge-color, var(--border-strong, #e5e7eb))") },
2081
+ { key: "outline-backdrop-filter", property: "backdrop-filter", description: "`outline` variant backdrop filter, so it can frost over a photo like the glass icon button. Unbound, none.", consumers: at(BUTTON, "none") },
2042
2082
  { key: "hover-scale", property: "scale", description: "Grow on hover, every variant (`1.06` for the kit). Off for disabled, gated and pending buttons.", consumers: at(BUTTON, "revert-layer") },
2043
2083
  { key: "press-scale", property: "scale", description: "Scale while pressed (`0.97` for the kit). Replaces the hover grow while held.", consumers: at(BUTTON, "revert-layer") },
2044
2084
  { key: "press-transform", property: "transform", description: "Press nudge. Bind `none` when `press-scale` carries the press.", consumers: at(BUTTON, "translateY(1px)") },
@@ -2143,11 +2183,20 @@ var TEXT_SIZES = [
2143
2183
  var textFamily = {
2144
2184
  family: "text",
2145
2185
  prefix: "text",
2146
- description: "Text type treatment, per size \u2014 set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. Every key begins with a size.",
2186
+ description: "Text type treatment, per size \u2014 set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. `eyebrow` also takes a weight, colour and gap. Every key begins with a size.",
2147
2187
  tokens: TEXT_SIZES.flatMap(({ size, fontSize }) => [
2148
2188
  { key: `${size}-font-size`, property: "font-size", description: `\`${size}\` type size.`, consumers: at(TEXT, fontSize) },
2149
2189
  { key: `${size}-text-transform`, property: "text-transform", description: `\`${size}\` casing.`, consumers: at(TEXT, "revert-layer") },
2150
2190
  { key: `${size}-letter-spacing`, property: "letter-spacing", description: `\`${size}\` tracking.`, consumers: at(TEXT, "revert-layer") }
2191
+ ]).concat([
2192
+ // VI-801: the eyebrow, an all-caps label above a section. It drops Text's default
2193
+ // weight and colour classes, so its own weight, colour and gap keys set them.
2194
+ { key: "eyebrow-font-size", property: "font-size", description: "`eyebrow` type size.", consumers: at(TEXT, "var(--font-size-xs, 0.75rem)") },
2195
+ { key: "eyebrow-text-transform", property: "text-transform", description: "`eyebrow` casing.", consumers: at(TEXT, "uppercase") },
2196
+ { key: "eyebrow-letter-spacing", property: "letter-spacing", description: "`eyebrow` tracking.", consumers: at(TEXT, "var(--letter-spacing-wide, 0.05em)") },
2197
+ { key: "eyebrow-font-weight", property: "font-weight", description: "`eyebrow` weight, unless the caller passes `weight`.", consumers: at(TEXT, "var(--font-weight-semibold, 600)") },
2198
+ { key: "eyebrow-color", property: "color", description: "`eyebrow` colour, unless the caller passes `color`.", consumers: at(TEXT, "var(--text-secondary, #6b7280)") },
2199
+ { key: "eyebrow-gap", property: "gap", description: "Space between an `eyebrow` and a leading dot or icon.", consumers: at(TEXT, "var(--spacing-2, 0.5rem)") }
2151
2200
  ])
2152
2201
  };
2153
2202
  var switchFamily = {
@@ -2386,9 +2435,9 @@ var proportionBarFamily = {
2386
2435
  var segmentedControlFamily = {
2387
2436
  family: "segmented-control",
2388
2437
  prefix: "segmented-control",
2389
- description: "SegmentedControl \u2014 the well, its corner radius and padding, the segment height, sides, label size and corners, the sliding pill and its corners, the ink and the state edge on it. The resting edge is the shared `control` edge.",
2438
+ description: 'SegmentedControl \u2014 the well, its corner radius and padding, the segment height, sides, label size and corners, the sliding pill and its corners, the ink and the state edge on it. The resting edge is the shared `control` edge. Under `data-glass="on"` the well blurs the photo and, unbound, takes the glass layer\'s control fill.',
2390
2439
  tokens: [
2391
- { key: "track-bg", property: "background-color", description: "The well the pill slides in. Default is the page nudged 12% toward the ink, so it reads as a well in light and dark.", consumers: at(SEGMENTED_CONTROL, "color-mix(in srgb, var(--text-primary, #111827) 12%, var(--surface-page, #ffffff))") },
2440
+ { key: "track-bg", property: "background-color", description: "The well the pill slides in. Default is the page nudged 12% toward the ink, so it reads as a well in light and dark; under glass, the glass layer's control fill.", consumers: at(SEGMENTED_CONTROL, "var(--glass-on-control-fill, color-mix(in srgb, var(--text-primary, #111827) 12%, var(--surface-page, #ffffff)))") },
2392
2441
  {
2393
2442
  key: "radius",
2394
2443
  property: "border-radius",
@@ -2446,23 +2495,19 @@ var segmentedControlFamily = {
2446
2495
  {
2447
2496
  key: "item-radius",
2448
2497
  property: "border-radius",
2449
- description: "Segment corners: the hover fill and the focus ring. Unset, each size keeps its ToggleGroup radius (xs reads `toggle-group.xs-item-radius`).",
2498
+ description: "Segment corners: the hover fill and the focus ring. Leave unset: derived from the track (track radius minus track padding minus its 1px border), so the corners stay concentric (VI-837). Bound, an explicit override (xs reads `toggle-group.xs-item-radius` first).",
2450
2499
  consumers: [
2451
- { file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-item-radius, var(--radius-sm, 0.25rem))" },
2452
- { file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
2453
- { file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
2454
- { file: SEGMENTED_CONTROL, fallback: "var(--radius-lg, 0.5rem)" }
2500
+ { file: SEGMENTED_CONTROL, fallback: "var(--_inner-radius)" },
2501
+ { file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-item-radius, var(--_inner-radius))" }
2455
2502
  ]
2456
2503
  },
2457
2504
  {
2458
2505
  key: "indicator-radius",
2459
2506
  property: "border-radius",
2460
- description: "Sliding pill corners. Bind `999px` with `radius` for a fully round switch. Unset, each size keeps its ToggleGroup radius (xs reads `toggle-group.xs-item-radius`).",
2507
+ description: "Sliding pill corners. Leave unset: derived from the track, so binding `radius: 999px` alone gives a fully round switch (VI-837). Bound, an explicit override (xs reads `toggle-group.xs-item-radius` first).",
2461
2508
  consumers: [
2462
- { file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-item-radius, var(--radius-sm, 0.25rem))" },
2463
- { file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
2464
- { file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
2465
- { file: SEGMENTED_CONTROL, fallback: "var(--radius-lg, 0.5rem)" }
2509
+ { file: SEGMENTED_CONTROL, fallback: "var(--_inner-radius)" },
2510
+ { file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-item-radius, var(--_inner-radius))" }
2466
2511
  ]
2467
2512
  },
2468
2513
  { key: "indicator-bg", property: "background-color", description: "Sliding active pill. Bind a lifted dark fill where the theme wants one.", consumers: at(SEGMENTED_CONTROL, "var(--interactive-primary-bg, var(--primary, #111827))") },
@@ -2489,7 +2534,16 @@ var toggleGroupFamily = {
2489
2534
  { key: "xs-font-size", property: "font-size", description: "Compact (`xs`) label size.", consumers: at(TOGGLE_GROUP, "var(--font-size-xs, 0.75rem)") },
2490
2535
  { key: "xs-padding-x", property: "padding-inline", description: "Compact (`xs`) option sides.", consumers: at(TOGGLE_GROUP, "var(--spacing-2, 0.5rem)") },
2491
2536
  { key: "xs-track-radius", property: "border-radius", description: "Compact (`xs`) outline track corner radius.", consumers: at(TOGGLE_GROUP, "var(--radius-md, 0.375rem)") },
2492
- { key: "xs-item-radius", property: "border-radius", description: "Compact (`xs`) option and indicator corner radius. Concentric with the track is the track radius minus its 2px inset.", consumers: at(TOGGLE_GROUP, "var(--radius-sm, 0.25rem)") },
2537
+ {
2538
+ key: "xs-item-radius",
2539
+ property: "border-radius",
2540
+ description: "Compact (`xs`) option and indicator corner radius. Leave unset: in the outline track it is derived from the track (track radius minus padding minus its 1px border), so the corners stay concentric (VI-837). Bound, an explicit override. The default variant has no track and falls back to `--radius-sm`.",
2541
+ consumers: [
2542
+ { file: TOGGLE_GROUP, fallback: "var(--radius-sm, 0.25rem)" },
2543
+ { file: TOGGLE_GROUP, fallback: "var(--_inner-radius)" },
2544
+ { file: TOGGLE_GROUP, fallback: "var(--_inner-radius)" }
2545
+ ]
2546
+ },
2493
2547
  { key: "option-gap", property: "gap", description: "Option variant (VI-787): the space between rows.", consumers: at(TOGGLE_GROUP, "var(--spacing-2, 0.5rem)") },
2494
2548
  { key: "option-inner-gap", property: "gap", description: "Option row: the space between key, label and check.", consumers: at(TOGGLE_GROUP, "var(--spacing-3_5, 0.875rem)") },
2495
2549
  { key: "option-min-height", property: "min-height", description: "Option row height; a wrapped label grows past it.", consumers: at(TOGGLE_GROUP, "3.375rem") },
@@ -2534,6 +2588,31 @@ var radioCardFamily = {
2534
2588
  { key: "dot", property: "background-color", description: "The dot inside the chosen card.", consumers: at(RADIO_GROUP, "var(--interactive-primary-bg, var(--primary, #111827))") }
2535
2589
  ]
2536
2590
  };
2591
+ var radioStepFamily = {
2592
+ family: "radio-step",
2593
+ prefix: "radio-step",
2594
+ description: 'RadioGroup `variant="stepped"` \u2014 the key colour, the well and its radius, the resting ink, the icon size, and the chosen tile\'s fill and hairline.',
2595
+ tokens: [
2596
+ { key: "key", property: "background-color", description: "The key colour: the chosen tile's fill tint, hairline and icon, and the focus ring.", consumers: at(RADIO_GROUP, "var(--interactive-primary-bg, var(--primary, #111827))") },
2597
+ { key: "well", property: "background-color", description: "The well the tiles sit in. Default is the page nudged 12% toward the ink; a dark app binds it darker than its plane (Blacklight: `rgb(0 0 0 / 0.65)`).", consumers: at(RADIO_GROUP, "color-mix(in srgb, var(--text-primary, #111827) 12%, var(--surface-page, #ffffff))") },
2598
+ { key: "well-radius", property: "border-radius", description: "Well corner radius. The tiles take it minus the well padding, so the corners stay concentric.", consumers: at(RADIO_GROUP, "var(--radius-xl, 0.75rem)") },
2599
+ { key: "ink", property: "color", description: "Icon and label ink on a tile that is not chosen.", consumers: at(RADIO_GROUP, "var(--text-tertiary, #9ca3af)") },
2600
+ { key: "icon-size", property: "font-size", description: "Tile icon size.", consumers: at(RADIO_GROUP, "1.25rem") },
2601
+ { key: "selected-bg", property: "background-color", description: "Chosen tile fill. Default is 12% key over `--surface-elev-2`.", consumers: at(RADIO_GROUP, "color-mix(in srgb, var(--_key) 12%, var(--surface-elev-2, #f3f4f6))") },
2602
+ { key: "selected-border", property: "box-shadow", description: "Chosen tile hairline. Default is 35% key.", consumers: at(RADIO_GROUP, "color-mix(in srgb, var(--_key) 35%, transparent)") }
2603
+ ]
2604
+ };
2605
+ var reachRingsFamily = {
2606
+ family: "reach-rings",
2607
+ prefix: "reach-rings",
2608
+ description: "ReachRings \u2014 the key colour of lit rings and the core, the unlit ring stroke, and the core icon lit and unlit.",
2609
+ tokens: [
2610
+ { key: "key", property: "background-color", description: "The key colour: a lit ring's stroke, halo and wash, and the filled core.", consumers: at(REACH_RINGS, "var(--interactive-primary-bg, var(--primary, #111827))") },
2611
+ { key: "ring", property: "box-shadow", description: "An unlit ring's stroke.", consumers: at(REACH_RINGS, "color-mix(in srgb, var(--text-primary, #111827) 12%, transparent)") },
2612
+ { key: "glyph", property: "color", description: "The core icon while the core is unlit.", consumers: at(REACH_RINGS, "color-mix(in srgb, var(--text-primary, #111827) 50%, transparent)") },
2613
+ { key: "core-ink", property: "color", description: "The core icon on the lit core.", consumers: at(REACH_RINGS, "var(--interactive-primary-text, #f9fafb)") }
2614
+ ]
2615
+ };
2537
2616
  var adminUiFamily = {
2538
2617
  family: "admin-ui",
2539
2618
  prefix: "admin-ui",
@@ -2589,10 +2668,42 @@ var statCardFamily = {
2589
2668
  { key: "label-color", property: "color", description: "Label colour.", consumers: at(STAT_CARD, "var(--text-tertiary, #6b7280)") }
2590
2669
  ]
2591
2670
  };
2671
+ var keyValueListFamily = {
2672
+ family: "key-value-list",
2673
+ prefix: "key-value-list",
2674
+ description: 'KeyValueList \u2014 label and value type and ink, the horizontal columns, item gap and alignment, row spacing, padding and divider, and the `surface="panel"` fill, edge colour, corners and inset. Under `data-glass="on"` the panel reads the glass layer instead.',
2675
+ tokens: [
2676
+ { key: "label-font-size", property: "font-size", description: "Label type size.", consumers: at(KEY_VALUE_LIST, "var(--font-size-xs, 0.6875rem)") },
2677
+ { key: "label-font-weight", property: "font-weight", description: "Label weight.", consumers: at(KEY_VALUE_LIST, "var(--font-weight-medium, 500)") },
2678
+ { key: "label-line-height", property: "line-height", description: "Label line height.", consumers: at(KEY_VALUE_LIST, "1.4") },
2679
+ { key: "label-letter-spacing", property: "letter-spacing", description: "Label tracking, stacked and horizontal.", consumers: [{ file: KEY_VALUE_LIST, fallback: "0.12em" }, { file: KEY_VALUE_LIST, fallback: "0.06em" }] },
2680
+ { key: "label-text-transform", property: "text-transform", description: "Label case (`none` for sentence-case labels).", consumers: at(KEY_VALUE_LIST, "uppercase") },
2681
+ { key: "label-color", property: "color", description: "Label ink.", consumers: at(KEY_VALUE_LIST, "var(--text-tertiary, #6b7280)") },
2682
+ { key: "label-padding-top", property: "padding-top", description: "Nudge the label down against a larger value.", consumers: at(KEY_VALUE_LIST, "0") },
2683
+ { key: "value-font-size", property: "font-size", description: "Value type size, in every density.", consumers: [{ file: KEY_VALUE_LIST, fallback: "var(--font-size-lg, 1.125rem)" }, { file: KEY_VALUE_LIST, fallback: "var(--font-size-base, 1rem)" }, { file: KEY_VALUE_LIST, fallback: "var(--font-size-sm, 0.8125rem)" }] },
2684
+ { key: "value-font-weight", property: "font-weight", description: "Value weight.", consumers: at(KEY_VALUE_LIST, "inherit") },
2685
+ { key: "value-line-height", property: "line-height", description: "Value line height.", consumers: at(KEY_VALUE_LIST, "inherit") },
2686
+ { key: "value-color", property: "color", description: "Value ink.", consumers: at(KEY_VALUE_LIST, "var(--text-primary, #111827)") },
2687
+ { key: "value-text-wrap", property: "text-wrap", description: "Value line breaking, e.g. `pretty`.", consumers: at(KEY_VALUE_LIST, "inherit") },
2688
+ { key: "value-overflow-wrap", property: "overflow-wrap", description: "`anywhere` breaks a long name or email rather than widening the list.", consumers: at(KEY_VALUE_LIST, "inherit") },
2689
+ { key: "value-font-variant-numeric", property: "font-variant-numeric", description: "Value figures (`normal` for proportional).", consumers: at(KEY_VALUE_LIST, "tabular-nums") },
2690
+ { key: "columns", property: "grid-template-columns", description: "Horizontal label and value columns.", consumers: at(KEY_VALUE_LIST, "minmax(7rem, 0.4fr) 1fr") },
2691
+ { key: "item-gap", property: "gap", description: "Horizontal gap between label and value.", consumers: at(KEY_VALUE_LIST, "var(--spacing-4, 1rem)") },
2692
+ { key: "item-align", property: "align-items", description: "Horizontal label and value alignment.", consumers: at(KEY_VALUE_LIST, "baseline") },
2693
+ { key: "item-padding", property: "padding", description: "Inset of each row.", consumers: at(KEY_VALUE_LIST, "0") },
2694
+ { key: "row-gap", property: "row-gap", description: "Space between rows, in every density.", consumers: [{ file: KEY_VALUE_LIST, fallback: "var(--spacing-6, 1.5rem)" }, { file: KEY_VALUE_LIST, fallback: "var(--spacing-4, 1rem)" }, { file: KEY_VALUE_LIST, fallback: "var(--spacing-3, 0.75rem)" }] },
2695
+ { key: "divider", property: "border-top", description: "Rule between rows of a one-column list, e.g. `1px solid var(--border-default)`.", consumers: at(KEY_VALUE_LIST, "0") },
2696
+ { key: "panel-bg", property: "background", description: '`surface="panel"` fill off glass.', consumers: at(KEY_VALUE_LIST, "var(--surface-card, #ffffff)") },
2697
+ { key: "panel-border-color", property: "border-color", description: '`surface="panel"` edge colour off glass.', consumers: at(KEY_VALUE_LIST, "var(--border-default, #e5e7eb)") },
2698
+ { key: "panel-radius", property: "border-radius", description: '`surface="panel"` corner radius.', consumers: at(KEY_VALUE_LIST, "var(--radius-lg, 0.5rem)") },
2699
+ { key: "panel-padding", property: "padding", description: '`surface="panel"` inset.', consumers: at(KEY_VALUE_LIST, "var(--spacing-2, 0.5rem) var(--spacing-6, 1.5rem)") }
2700
+ ]
2701
+ };
2592
2702
  var COMPONENT_TOKEN_FAMILIES = [
2593
2703
  tableFamily,
2594
2704
  dataTableFamily,
2595
2705
  chipFamily,
2706
+ statusDotFamily,
2596
2707
  badgeFamily,
2597
2708
  statusBadgeFamily,
2598
2709
  filterBarFamily,
@@ -2624,14 +2735,18 @@ var COMPONENT_TOKEN_FAMILIES = [
2624
2735
  segmentedControlFamily,
2625
2736
  toggleGroupFamily,
2626
2737
  radioCardFamily,
2738
+ radioStepFamily,
2739
+ reachRingsFamily,
2627
2740
  tooltipFamily,
2628
2741
  actionRowFamily,
2629
2742
  inputAffixFamily,
2630
2743
  numberInputFamily,
2744
+ offlineBannerFamily,
2631
2745
  separatorFamily,
2632
2746
  alertFamily,
2633
2747
  layerChartFamily,
2634
2748
  statCardFamily,
2749
+ keyValueListFamily,
2635
2750
  adminUiFamily
2636
2751
  ];
2637
2752
  var COMPONENT_TOKEN_FAMILY_BY_NAME = new Map(
@@ -3151,6 +3266,56 @@ function generateCornerShapeDecls(config) {
3151
3266
  return config.corners === "squircle" ? ["--corner-shape: squircle;"] : [];
3152
3267
  }
3153
3268
  var CORNER_SHAPE_BINDING = "*, *::before, *::after {\n corner-shape: var(--corner-shape);\n}";
3269
+ var SQUIRCLE_FALLBACK = [
3270
+ '@property --squircle-r {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}',
3271
+ "",
3272
+ '@property --squircle-edge {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}',
3273
+ "",
3274
+ "@supports not (corner-shape: squircle) {",
3275
+ " @container style(--corner-shape: squircle) {",
3276
+ " *, *::before, *::after {",
3277
+ " --squircle-radius: calc(var(--squircle-r) * 0.54);",
3278
+ ` --squircle-clip: ${squircleClip("var(--squircle-r)", "var(--squircle-radius)")};`,
3279
+ " --squircle-ring-paint: calc(var(--squircle-edge) + var(--squircle-r) * 0.2);",
3280
+ " --squircle-ring-radius: 0px;",
3281
+ " --squircle-edge-off: transparent;",
3282
+ ` --squircle-ring: shape(evenodd ${squirclePath("var(--squircle-r)", "0px").replace(/^move to /, "from ")}, ${squirclePath("calc(var(--squircle-r) - var(--squircle-edge))", "var(--squircle-edge)")});`,
3283
+ " }",
3284
+ " }",
3285
+ "}"
3286
+ ].join("\n");
3287
+ function forceSquircleFallback(css) {
3288
+ const gate = /@supports\s+not\s*\(\s*corner-shape\s*:\s*squircle\s*\)/g;
3289
+ return `${css.replace(gate, "@media all")}
3290
+ *, *::before, *::after { corner-shape: round !important; }
3291
+ `;
3292
+ }
3293
+ function squirclePath(r, i) {
3294
+ const h = `${r} * 0.082`;
3295
+ const lo = (v) => `calc(${i} + ${v})`;
3296
+ const hi = (v) => `calc(100% - ${i} - ${v})`;
3297
+ const top = i, left = i, right = `calc(100% - ${i})`, bottom = `calc(100% - ${i})`;
3298
+ return [
3299
+ `move to ${lo(r)} ${top}, hline to ${hi(r)}, curve to ${right} ${lo(r)} with ${hi(h)} ${top} / ${right} ${lo(h)}`,
3300
+ `vline to ${hi(r)}, curve to ${hi(r)} ${bottom} with ${right} ${hi(h)} / ${hi(h)} ${bottom}`,
3301
+ `hline to ${lo(r)}, curve to ${left} ${hi(r)} with ${lo(h)} ${bottom} / ${left} ${hi(h)}`,
3302
+ `vline to ${lo(r)}, curve to ${lo(r)} ${top} with ${left} ${lo(h)} / ${lo(h)} ${top}, close`
3303
+ ].join(", ");
3304
+ }
3305
+ function squircleClip(r, c) {
3306
+ const g = "0.25px";
3307
+ const C = `calc(${c} + ${g})`;
3308
+ const o = `calc(-1 * ${g})`, O = `calc(100% + ${g})`;
3309
+ return [
3310
+ "shape(nonzero from -100vmax -100vmax",
3311
+ "hline to calc(100% + 100vmax), vline to calc(100% + 100vmax), hline to -100vmax, close",
3312
+ `move to ${c} ${o}, arc to ${o} ${c} of ${C} ccw`,
3313
+ `vline to calc(100% - ${c}), arc to ${c} ${O} of ${C} ccw`,
3314
+ `hline to calc(100% - ${c}), arc to ${O} calc(100% - ${c}) of ${C} ccw`,
3315
+ `vline to ${c}, arc to calc(100% - ${c}) ${o} of ${C} ccw, close`,
3316
+ `${squirclePath(r, "0px")})`
3317
+ ].join(", ");
3318
+ }
3154
3319
  var DEFAULT_EASING_OUT = "cubic-bezier(0, 0, 0.2, 1)";
3155
3320
  function generateOptInMotionDurationDecls(config) {
3156
3321
  return OPT_IN_MOTION_DURATION_KEYS.filter((key) => config.motion[key] !== void 0).map(
@@ -3724,6 +3889,8 @@ export {
3724
3889
  block2 as block,
3725
3890
  generateCornerShapeDecls,
3726
3891
  CORNER_SHAPE_BINDING,
3892
+ SQUIRCLE_FALLBACK,
3893
+ forceSquircleFallback,
3727
3894
  DEFAULT_EASING_OUT,
3728
3895
  generateOptInMotionDurationDecls,
3729
3896
  generateFontSizeDecls,
package/dist/index.d.ts CHANGED
@@ -1156,6 +1156,13 @@ var properties = {
1156
1156
  $ref: "#/$defs/componentTokenBinding"
1157
1157
  }
1158
1158
  },
1159
+ "status-dot": {
1160
+ type: "object",
1161
+ description: "StatusDot size. A caller sets `--status-dot-color` on a dot for a colour outside its five tones. Keys: size.",
1162
+ additionalProperties: {
1163
+ $ref: "#/$defs/componentTokenBinding"
1164
+ }
1165
+ },
1159
1166
  "status-badge": {
1160
1167
  type: "object",
1161
1168
  description: "Status-badge indicator dot and the mono readout label. Chrome is inherited from the Badge family. Keys: dot-size, dot-radius, mono-font-family, mono-font-size, mono-letter-spacing.",
@@ -1282,6 +1289,13 @@ var properties = {
1282
1289
  $ref: "#/$defs/componentTokenBinding"
1283
1290
  }
1284
1291
  },
1292
+ "key-value-list": {
1293
+ type: "object",
1294
+ description: "KeyValueList — label and value type and ink, the horizontal columns, item gap and alignment, row spacing, padding and divider, and the `surface=\"panel\"` fill, edge colour, corners and inset. Under `data-glass=\"on\"` the panel reads the glass layer instead. Keys: label-font-size, label-font-weight, label-line-height, label-letter-spacing, label-text-transform, label-color, label-padding-top, value-font-size, value-font-weight, value-line-height, value-color, value-text-wrap, value-overflow-wrap, value-font-variant-numeric, columns, item-gap, item-align, item-padding, row-gap, divider, panel-bg, panel-border-color, panel-radius, panel-padding.",
1295
+ additionalProperties: {
1296
+ $ref: "#/$defs/componentTokenBinding"
1297
+ }
1298
+ },
1285
1299
  textarea: {
1286
1300
  type: "object",
1287
1301
  description: "Textarea shape at the default `md` size. Keys: padding, radius.",
@@ -1333,14 +1347,14 @@ var properties = {
1333
1347
  },
1334
1348
  button: {
1335
1349
  type: "object",
1336
- description: "Button type treatment and rounding. The unprefixed keys set every size at once; a size key (`dlg-radius`) overrides one size. Keys: icon-gap, default-bg, default-bg-hover, default-text, dlg-destructive-bg, dlg-destructive-bg-hover, dlg-destructive-text, hero-bg, hero-bg-hover, hero-text, ghost-text, ghost-text-hover, md-height, md-padding, dlg-padding, lg-height, lg-padding, default-shadow, default-shadow-hover, outline-text, outline-bg-hover, hover-scale, press-scale, press-transform, press-duration, motion-duration, motion-easing, text-transform, letter-spacing, font-weight, radius, sm-font-size, sm-font-weight, sm-text-transform, sm-letter-spacing, sm-radius, md-font-size, md-font-weight, md-text-transform, md-letter-spacing, md-radius, lg-font-size, lg-font-weight, lg-text-transform, lg-letter-spacing, lg-radius, dlg-font-size, dlg-font-weight, dlg-text-transform, dlg-letter-spacing, dlg-radius, icon-size, icon-pad, icon-radius, icon-ghost-color.",
1350
+ description: "Button type treatment and rounding. The unprefixed keys set every size at once; a size key (`dlg-radius`) overrides one size. Keys: icon-gap, default-bg, default-bg-hover, default-text, dlg-destructive-bg, dlg-destructive-bg-hover, dlg-destructive-text, hero-bg, hero-bg-hover, hero-text, ghost-text, ghost-text-hover, md-height, md-padding, dlg-padding, lg-height, lg-padding, default-shadow, default-shadow-hover, outline-text, outline-bg-hover, outline-bg, outline-padding, outline-font-weight, outline-ring-color, outline-backdrop-filter, hover-scale, press-scale, press-transform, press-duration, motion-duration, motion-easing, text-transform, letter-spacing, font-weight, radius, sm-font-size, sm-font-weight, sm-text-transform, sm-letter-spacing, sm-radius, md-font-size, md-font-weight, md-text-transform, md-letter-spacing, md-radius, lg-font-size, lg-font-weight, lg-text-transform, lg-letter-spacing, lg-radius, dlg-font-size, dlg-font-weight, dlg-text-transform, dlg-letter-spacing, dlg-radius, icon-size, icon-pad, icon-radius, icon-ghost-color.",
1337
1351
  additionalProperties: {
1338
1352
  $ref: "#/$defs/componentTokenBinding"
1339
1353
  }
1340
1354
  },
1341
1355
  text: {
1342
1356
  type: "object",
1343
- description: "Text type treatment, per size — set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. Every key begins with a size. Keys: xs-font-size, xs-text-transform, xs-letter-spacing, sm-font-size, sm-text-transform, sm-letter-spacing, md-font-size, md-text-transform, md-letter-spacing, lg-font-size, lg-text-transform, lg-letter-spacing, xl-font-size, xl-text-transform, xl-letter-spacing.",
1357
+ description: "Text type treatment, per size — set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. `eyebrow` also takes a weight, colour and gap. Every key begins with a size. Keys: xs-font-size, xs-text-transform, xs-letter-spacing, sm-font-size, sm-text-transform, sm-letter-spacing, md-font-size, md-text-transform, md-letter-spacing, lg-font-size, lg-text-transform, lg-letter-spacing, xl-font-size, xl-text-transform, xl-letter-spacing, eyebrow-font-size, eyebrow-text-transform, eyebrow-letter-spacing, eyebrow-font-weight, eyebrow-color, eyebrow-gap.",
1344
1358
  additionalProperties: {
1345
1359
  $ref: "#/$defs/componentTokenBinding"
1346
1360
  }
@@ -1368,7 +1382,7 @@ var properties = {
1368
1382
  },
1369
1383
  "segmented-control": {
1370
1384
  type: "object",
1371
- description: "SegmentedControl — the well, its corner radius and padding, the segment height, sides, label size and corners, the sliding pill and its corners, the ink and the state edge on it. The resting edge is the shared `control` edge. Keys: track-bg, radius, track-padding, item-height, item-padding-x, font-size, item-radius, indicator-radius, indicator-bg, indicator-text, indicator-edge, inactive-text, active-weight.",
1385
+ description: "SegmentedControl — the well, its corner radius and padding, the segment height, sides, label size and corners, the sliding pill and its corners, the ink and the state edge on it. The resting edge is the shared `control` edge. Under `data-glass=\"on\"` the well blurs the photo and, unbound, takes the glass layer's control fill. Keys: track-bg, radius, track-padding, item-height, item-padding-x, font-size, item-radius, indicator-radius, indicator-bg, indicator-text, indicator-edge, inactive-text, active-weight.",
1372
1386
  additionalProperties: {
1373
1387
  $ref: "#/$defs/componentTokenBinding"
1374
1388
  }
@@ -1387,6 +1401,20 @@ var properties = {
1387
1401
  $ref: "#/$defs/componentTokenBinding"
1388
1402
  }
1389
1403
  },
1404
+ "radio-step": {
1405
+ type: "object",
1406
+ description: "RadioGroup `variant=\"stepped\"` — the key colour, the well and its radius, the resting ink, the icon size, and the chosen tile's fill and hairline. Keys: key, well, well-radius, ink, icon-size, selected-bg, selected-border.",
1407
+ additionalProperties: {
1408
+ $ref: "#/$defs/componentTokenBinding"
1409
+ }
1410
+ },
1411
+ "reach-rings": {
1412
+ type: "object",
1413
+ description: "ReachRings — the key colour of lit rings and the core, the unlit ring stroke, and the core icon lit and unlit. Keys: key, ring, glyph, core-ink.",
1414
+ additionalProperties: {
1415
+ $ref: "#/$defs/componentTokenBinding"
1416
+ }
1417
+ },
1390
1418
  tooltip: {
1391
1419
  type: "object",
1392
1420
  description: "Tooltip ground and ink, so a dark theme can keep the label legible without retuning the shared inverse pair other components read. Keys: bg, text.",
@@ -1415,6 +1443,13 @@ var properties = {
1415
1443
  $ref: "#/$defs/componentTokenBinding"
1416
1444
  }
1417
1445
  },
1446
+ "offline-banner": {
1447
+ type: "object",
1448
+ description: "OfflineBanner's pill variant — height, padding, gap, type size, label and detail weight, detail opacity, icon size, fill, ink and edge. Under `data-glass=\"on\"` the pill reads the glass layer's control values instead. Keys: pill-height, pill-padding-x, pill-gap, pill-font-size, pill-font-weight, pill-detail-font-weight, pill-detail-opacity, pill-icon-size, pill-bg, pill-text-color, pill-border.",
1449
+ additionalProperties: {
1450
+ $ref: "#/$defs/componentTokenBinding"
1451
+ }
1452
+ },
1418
1453
  separator: {
1419
1454
  type: "object",
1420
1455
  description: "Separator rule colour, bare or either side of a label. Keys: color.",
@@ -2315,6 +2350,16 @@ type AliasedFamilies = ReadonlyMap<string, string>;
2315
2350
  * packages/tokens/src/generate/generate-css.ts output format.
2316
2351
  */
2317
2352
 
2353
+ /**
2354
+ * VI-841: test-only. `css` with the squircle fallback forced on, so a test can
2355
+ * draw it in an engine that has `corner-shape` (Chromium, newer Playwright
2356
+ * WebKit builds). Every `@supports not (corner-shape: squircle)` gate, the
2357
+ * theme's and each component's, becomes `@media all`, and a trailing rule turns
2358
+ * native `corner-shape` off. The `--corner-shape` style-query gate stays, so
2359
+ * round themes and round subtrees are still untouched. Nothing calls it on
2360
+ * production output: a test passes each stylesheet through it.
2361
+ */
2362
+ declare function forceSquircleFallback(css: string): string;
2318
2363
  declare function generatePrimitivesCss(primitives: GeneratedPrimitives, config: ResolvedThemeConfig, options?: {
2319
2364
  aliasedFamilies?: AliasedFamilies;
2320
2365
  scopePrefix?: string;
@@ -2566,4 +2611,4 @@ declare const FONT_VERTICAL_METRICS: Record<string, FontVerticalMetrics>;
2566
2611
  /** The `--font-ascent` / `--font-descent` declarations for a body family, or none when the face is unmeasured. */
2567
2612
  declare function generateFontMetricDecls(family: string): string[];
2568
2613
 
2569
- export { type BrandPassthrough, BrandResolution, BrandSlot, BrandSource, BrandStrategy, BrandStrategyContext, BrandStrategyIssue, BrandStrategyValidationResult, type CSSFile, ColorRole, type Confidence, DEFAULT_VISOR_BRAND, type ExtractedToken, type ExtractionResult, FONT_VERTICAL_METRICS, FONT_WEIGHT_ALIASES, type FontCoverageError, type FontCoverageResult, FontDisplayStrategy, type FontFaceDeclaration, FontResolution, FontResolveOptions, type FontVerticalMetrics, FullShadeScale, GeneratedPrimitives, GoogleFontEntry, MODE_DEPENDENT_SEMANTIC_ALIASES, OKLCH, ParsedColor, RGB, ResolvedThemeConfig, type ResolvedWeightRamp, SEMANTIC_MAP, SelectiveShadeScale, SemanticTokens, SerializedBrandStrategy, ShadeStep, TAILWIND_GRAY, ThemeBrandResult, ThemeData, ThemeFontResult, ThemeOutput, type ThemeValidationResult, VISOR_BRANDS_CDN, VISOR_CORE_DARK_SEMANTIC_ALIASES, VISOR_CORE_SEMANTIC_ALIASES, VISOR_DEFAULT_BRAND_PATH, VISOR_FONTS_CDN, type ValidateOptions, type ValidationIssue, type ValidationSeverity, VisorBrand, VisorThemeConfig, VisorTypography, WEIGHT_RAMP_TARGETS, applyOverrides, assignSemanticTokens, buildVisorBrandUrl, buildVisorFontUrl, checkBrandStrategyCoherence, checkBrandStrategyStructure, clampToSrgb, cleanFontValue, collectBrandPassthrough, collectDeclaredProperties, compositeOverBackground, declaresWeights, exportTheme, extractFromCSS, formatFontCoverageError, generateDarkCss, generateFontMetricDecls, generateFontWeightDecls, generateFullBundleCss, generateLightCss, generatePreloadLinks, generatePrimitives, generatePrimitivesCss, generateSemanticAliasDecls, generateSemanticCss, generateShadeScale, generateStylesheetLinks, generateTheme, generateThemeData, generateThemeDataFromConfig, generateThemeFromConfig, getContrastRatio, getKnownTokenRefs, getLuminance, googleFontsCatalog, hasBrandPassthrough, hexToOklch, hexToRgb, isValidColor, isValidHex, isVisorThemeConfig, loadedWeights, lookupFontWeightAlias, lookupGoogleFont, matchLoadedWeight, normalizeHex, oklchToHex, parseCSSDeclarations, parseColor, parseConfig, parseFontFaceDeclarations, parseHex, parseHsla, parseOklch, parseRgba, resolveBrandSlot, resolveBrandSource, resolveConfig, resolveFont, resolveRoleWeight, resolveThemeBrand, resolveThemeFonts, resolveWeightRamp, rgbToHex, serializeBrandStrategy, serializeColor, validate, validateBrandStrategy, validateConfig, validateFontCoverage, visorTheme_schema as visorThemeSchema };
2614
+ export { type BrandPassthrough, BrandResolution, BrandSlot, BrandSource, BrandStrategy, BrandStrategyContext, BrandStrategyIssue, BrandStrategyValidationResult, type CSSFile, ColorRole, type Confidence, DEFAULT_VISOR_BRAND, type ExtractedToken, type ExtractionResult, FONT_VERTICAL_METRICS, FONT_WEIGHT_ALIASES, type FontCoverageError, type FontCoverageResult, FontDisplayStrategy, type FontFaceDeclaration, FontResolution, FontResolveOptions, type FontVerticalMetrics, FullShadeScale, GeneratedPrimitives, GoogleFontEntry, MODE_DEPENDENT_SEMANTIC_ALIASES, OKLCH, ParsedColor, RGB, ResolvedThemeConfig, type ResolvedWeightRamp, SEMANTIC_MAP, SelectiveShadeScale, SemanticTokens, SerializedBrandStrategy, ShadeStep, TAILWIND_GRAY, ThemeBrandResult, ThemeData, ThemeFontResult, ThemeOutput, type ThemeValidationResult, VISOR_BRANDS_CDN, VISOR_CORE_DARK_SEMANTIC_ALIASES, VISOR_CORE_SEMANTIC_ALIASES, VISOR_DEFAULT_BRAND_PATH, VISOR_FONTS_CDN, type ValidateOptions, type ValidationIssue, type ValidationSeverity, VisorBrand, VisorThemeConfig, VisorTypography, WEIGHT_RAMP_TARGETS, applyOverrides, assignSemanticTokens, buildVisorBrandUrl, buildVisorFontUrl, checkBrandStrategyCoherence, checkBrandStrategyStructure, clampToSrgb, cleanFontValue, collectBrandPassthrough, collectDeclaredProperties, compositeOverBackground, declaresWeights, exportTheme, extractFromCSS, forceSquircleFallback, formatFontCoverageError, generateDarkCss, generateFontMetricDecls, generateFontWeightDecls, generateFullBundleCss, generateLightCss, generatePreloadLinks, generatePrimitives, generatePrimitivesCss, generateSemanticAliasDecls, generateSemanticCss, generateShadeScale, generateStylesheetLinks, generateTheme, generateThemeData, generateThemeDataFromConfig, generateThemeFromConfig, getContrastRatio, getKnownTokenRefs, getLuminance, googleFontsCatalog, hasBrandPassthrough, hexToOklch, hexToRgb, isValidColor, isValidHex, isVisorThemeConfig, loadedWeights, lookupFontWeightAlias, lookupGoogleFont, matchLoadedWeight, normalizeHex, oklchToHex, parseCSSDeclarations, parseColor, parseConfig, parseFontFaceDeclarations, parseHex, parseHsla, parseOklch, parseRgba, resolveBrandSlot, resolveBrandSource, resolveConfig, resolveFont, resolveRoleWeight, resolveThemeBrand, resolveThemeFonts, resolveWeightRamp, rgbToHex, serializeBrandStrategy, serializeColor, validate, validateBrandStrategy, validateConfig, validateFontCoverage, visorTheme_schema as visorThemeSchema };
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ import {
26
26
  componentTokenName,
27
27
  compositeOverBackground,
28
28
  declaresWeights,
29
+ forceSquircleFallback,
29
30
  generateDarkCss,
30
31
  generateFontMetricDecls,
31
32
  generateFontWeightDecls,
@@ -69,7 +70,7 @@ import {
69
70
  rgbToOklch,
70
71
  serializeColor,
71
72
  validateComponentBindings
72
- } from "./chunk-25CL4ADD.js";
73
+ } from "./chunk-FN6RU72C.js";
73
74
 
74
75
  // src/fonts/validate-coverage.ts
75
76
  var FONT_VAR_RE = /--font-(heading|display|body|sans|mono)\s*:\s*([^;]+);/g;
@@ -1175,6 +1176,13 @@ var visor_theme_schema_default = {
1175
1176
  $ref: "#/$defs/componentTokenBinding"
1176
1177
  }
1177
1178
  },
1179
+ "status-dot": {
1180
+ type: "object",
1181
+ description: "StatusDot size. A caller sets `--status-dot-color` on a dot for a colour outside its five tones. Keys: size.",
1182
+ additionalProperties: {
1183
+ $ref: "#/$defs/componentTokenBinding"
1184
+ }
1185
+ },
1178
1186
  "status-badge": {
1179
1187
  type: "object",
1180
1188
  description: "Status-badge indicator dot and the mono readout label. Chrome is inherited from the Badge family. Keys: dot-size, dot-radius, mono-font-family, mono-font-size, mono-letter-spacing.",
@@ -1301,6 +1309,13 @@ var visor_theme_schema_default = {
1301
1309
  $ref: "#/$defs/componentTokenBinding"
1302
1310
  }
1303
1311
  },
1312
+ "key-value-list": {
1313
+ type: "object",
1314
+ description: 'KeyValueList \u2014 label and value type and ink, the horizontal columns, item gap and alignment, row spacing, padding and divider, and the `surface="panel"` fill, edge colour, corners and inset. Under `data-glass="on"` the panel reads the glass layer instead. Keys: label-font-size, label-font-weight, label-line-height, label-letter-spacing, label-text-transform, label-color, label-padding-top, value-font-size, value-font-weight, value-line-height, value-color, value-text-wrap, value-overflow-wrap, value-font-variant-numeric, columns, item-gap, item-align, item-padding, row-gap, divider, panel-bg, panel-border-color, panel-radius, panel-padding.',
1315
+ additionalProperties: {
1316
+ $ref: "#/$defs/componentTokenBinding"
1317
+ }
1318
+ },
1304
1319
  textarea: {
1305
1320
  type: "object",
1306
1321
  description: "Textarea shape at the default `md` size. Keys: padding, radius.",
@@ -1352,14 +1367,14 @@ var visor_theme_schema_default = {
1352
1367
  },
1353
1368
  button: {
1354
1369
  type: "object",
1355
- description: "Button type treatment and rounding. The unprefixed keys set every size at once; a size key (`dlg-radius`) overrides one size. Keys: icon-gap, default-bg, default-bg-hover, default-text, dlg-destructive-bg, dlg-destructive-bg-hover, dlg-destructive-text, hero-bg, hero-bg-hover, hero-text, ghost-text, ghost-text-hover, md-height, md-padding, dlg-padding, lg-height, lg-padding, default-shadow, default-shadow-hover, outline-text, outline-bg-hover, hover-scale, press-scale, press-transform, press-duration, motion-duration, motion-easing, text-transform, letter-spacing, font-weight, radius, sm-font-size, sm-font-weight, sm-text-transform, sm-letter-spacing, sm-radius, md-font-size, md-font-weight, md-text-transform, md-letter-spacing, md-radius, lg-font-size, lg-font-weight, lg-text-transform, lg-letter-spacing, lg-radius, dlg-font-size, dlg-font-weight, dlg-text-transform, dlg-letter-spacing, dlg-radius, icon-size, icon-pad, icon-radius, icon-ghost-color.",
1370
+ description: "Button type treatment and rounding. The unprefixed keys set every size at once; a size key (`dlg-radius`) overrides one size. Keys: icon-gap, default-bg, default-bg-hover, default-text, dlg-destructive-bg, dlg-destructive-bg-hover, dlg-destructive-text, hero-bg, hero-bg-hover, hero-text, ghost-text, ghost-text-hover, md-height, md-padding, dlg-padding, lg-height, lg-padding, default-shadow, default-shadow-hover, outline-text, outline-bg-hover, outline-bg, outline-padding, outline-font-weight, outline-ring-color, outline-backdrop-filter, hover-scale, press-scale, press-transform, press-duration, motion-duration, motion-easing, text-transform, letter-spacing, font-weight, radius, sm-font-size, sm-font-weight, sm-text-transform, sm-letter-spacing, sm-radius, md-font-size, md-font-weight, md-text-transform, md-letter-spacing, md-radius, lg-font-size, lg-font-weight, lg-text-transform, lg-letter-spacing, lg-radius, dlg-font-size, dlg-font-weight, dlg-text-transform, dlg-letter-spacing, dlg-radius, icon-size, icon-pad, icon-radius, icon-ghost-color.",
1356
1371
  additionalProperties: {
1357
1372
  $ref: "#/$defs/componentTokenBinding"
1358
1373
  }
1359
1374
  },
1360
1375
  text: {
1361
1376
  type: "object",
1362
- description: "Text type treatment, per size \u2014 set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. Every key begins with a size. Keys: xs-font-size, xs-text-transform, xs-letter-spacing, sm-font-size, sm-text-transform, sm-letter-spacing, md-font-size, md-text-transform, md-letter-spacing, lg-font-size, lg-text-transform, lg-letter-spacing, xl-font-size, xl-text-transform, xl-letter-spacing.",
1377
+ description: "Text type treatment, per size \u2014 set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. `eyebrow` also takes a weight, colour and gap. Every key begins with a size. Keys: xs-font-size, xs-text-transform, xs-letter-spacing, sm-font-size, sm-text-transform, sm-letter-spacing, md-font-size, md-text-transform, md-letter-spacing, lg-font-size, lg-text-transform, lg-letter-spacing, xl-font-size, xl-text-transform, xl-letter-spacing, eyebrow-font-size, eyebrow-text-transform, eyebrow-letter-spacing, eyebrow-font-weight, eyebrow-color, eyebrow-gap.",
1363
1378
  additionalProperties: {
1364
1379
  $ref: "#/$defs/componentTokenBinding"
1365
1380
  }
@@ -1387,7 +1402,7 @@ var visor_theme_schema_default = {
1387
1402
  },
1388
1403
  "segmented-control": {
1389
1404
  type: "object",
1390
- description: "SegmentedControl \u2014 the well, its corner radius and padding, the segment height, sides, label size and corners, the sliding pill and its corners, the ink and the state edge on it. The resting edge is the shared `control` edge. Keys: track-bg, radius, track-padding, item-height, item-padding-x, font-size, item-radius, indicator-radius, indicator-bg, indicator-text, indicator-edge, inactive-text, active-weight.",
1405
+ description: 'SegmentedControl \u2014 the well, its corner radius and padding, the segment height, sides, label size and corners, the sliding pill and its corners, the ink and the state edge on it. The resting edge is the shared `control` edge. Under `data-glass="on"` the well blurs the photo and, unbound, takes the glass layer\'s control fill. Keys: track-bg, radius, track-padding, item-height, item-padding-x, font-size, item-radius, indicator-radius, indicator-bg, indicator-text, indicator-edge, inactive-text, active-weight.',
1391
1406
  additionalProperties: {
1392
1407
  $ref: "#/$defs/componentTokenBinding"
1393
1408
  }
@@ -1406,6 +1421,20 @@ var visor_theme_schema_default = {
1406
1421
  $ref: "#/$defs/componentTokenBinding"
1407
1422
  }
1408
1423
  },
1424
+ "radio-step": {
1425
+ type: "object",
1426
+ description: 'RadioGroup `variant="stepped"` \u2014 the key colour, the well and its radius, the resting ink, the icon size, and the chosen tile\'s fill and hairline. Keys: key, well, well-radius, ink, icon-size, selected-bg, selected-border.',
1427
+ additionalProperties: {
1428
+ $ref: "#/$defs/componentTokenBinding"
1429
+ }
1430
+ },
1431
+ "reach-rings": {
1432
+ type: "object",
1433
+ description: "ReachRings \u2014 the key colour of lit rings and the core, the unlit ring stroke, and the core icon lit and unlit. Keys: key, ring, glyph, core-ink.",
1434
+ additionalProperties: {
1435
+ $ref: "#/$defs/componentTokenBinding"
1436
+ }
1437
+ },
1409
1438
  tooltip: {
1410
1439
  type: "object",
1411
1440
  description: "Tooltip ground and ink, so a dark theme can keep the label legible without retuning the shared inverse pair other components read. Keys: bg, text.",
@@ -1434,6 +1463,13 @@ var visor_theme_schema_default = {
1434
1463
  $ref: "#/$defs/componentTokenBinding"
1435
1464
  }
1436
1465
  },
1466
+ "offline-banner": {
1467
+ type: "object",
1468
+ description: "OfflineBanner's pill variant \u2014 height, padding, gap, type size, label and detail weight, detail opacity, icon size, fill, ink and edge. Under `data-glass=\"on\"` the pill reads the glass layer's control values instead. Keys: pill-height, pill-padding-x, pill-gap, pill-font-size, pill-font-weight, pill-detail-font-weight, pill-detail-opacity, pill-icon-size, pill-bg, pill-text-color, pill-border.",
1469
+ additionalProperties: {
1470
+ $ref: "#/$defs/componentTokenBinding"
1471
+ }
1472
+ },
1437
1473
  separator: {
1438
1474
  type: "object",
1439
1475
  description: "Separator rule colour, bare or either side of a label. Keys: color.",
@@ -4618,6 +4654,7 @@ export {
4618
4654
  declaresWeights,
4619
4655
  exportTheme,
4620
4656
  extractFromCSS,
4657
+ forceSquircleFallback,
4621
4658
  formatFontCoverageError,
4622
4659
  generateDarkCss,
4623
4660
  generateFontMetricDecls,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loworbitstudio/visor-theme-engine",
3
- "version": "0.43.0",
3
+ "version": "0.46.0",
4
4
  "description": "Theme engine for the Visor design system — shade generation, token mapping, font resolution, and import/export for .visor.yaml themes.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -553,6 +553,13 @@
553
553
  "$ref": "#/$defs/componentTokenBinding"
554
554
  }
555
555
  },
556
+ "status-dot": {
557
+ "type": "object",
558
+ "description": "StatusDot size. A caller sets `--status-dot-color` on a dot for a colour outside its five tones. Keys: size.",
559
+ "additionalProperties": {
560
+ "$ref": "#/$defs/componentTokenBinding"
561
+ }
562
+ },
556
563
  "status-badge": {
557
564
  "type": "object",
558
565
  "description": "Status-badge indicator dot and the mono readout label. Chrome is inherited from the Badge family. Keys: dot-size, dot-radius, mono-font-family, mono-font-size, mono-letter-spacing.",
@@ -679,6 +686,13 @@
679
686
  "$ref": "#/$defs/componentTokenBinding"
680
687
  }
681
688
  },
689
+ "key-value-list": {
690
+ "type": "object",
691
+ "description": "KeyValueList \u2014 label and value type and ink, the horizontal columns, item gap and alignment, row spacing, padding and divider, and the `surface=\"panel\"` fill, edge colour, corners and inset. Under `data-glass=\"on\"` the panel reads the glass layer instead. Keys: label-font-size, label-font-weight, label-line-height, label-letter-spacing, label-text-transform, label-color, label-padding-top, value-font-size, value-font-weight, value-line-height, value-color, value-text-wrap, value-overflow-wrap, value-font-variant-numeric, columns, item-gap, item-align, item-padding, row-gap, divider, panel-bg, panel-border-color, panel-radius, panel-padding.",
692
+ "additionalProperties": {
693
+ "$ref": "#/$defs/componentTokenBinding"
694
+ }
695
+ },
682
696
  "textarea": {
683
697
  "type": "object",
684
698
  "description": "Textarea shape at the default `md` size. Keys: padding, radius.",
@@ -730,14 +744,14 @@
730
744
  },
731
745
  "button": {
732
746
  "type": "object",
733
- "description": "Button type treatment and rounding. The unprefixed keys set every size at once; a size key (`dlg-radius`) overrides one size. Keys: icon-gap, default-bg, default-bg-hover, default-text, dlg-destructive-bg, dlg-destructive-bg-hover, dlg-destructive-text, hero-bg, hero-bg-hover, hero-text, ghost-text, ghost-text-hover, md-height, md-padding, dlg-padding, lg-height, lg-padding, default-shadow, default-shadow-hover, outline-text, outline-bg-hover, hover-scale, press-scale, press-transform, press-duration, motion-duration, motion-easing, text-transform, letter-spacing, font-weight, radius, sm-font-size, sm-font-weight, sm-text-transform, sm-letter-spacing, sm-radius, md-font-size, md-font-weight, md-text-transform, md-letter-spacing, md-radius, lg-font-size, lg-font-weight, lg-text-transform, lg-letter-spacing, lg-radius, dlg-font-size, dlg-font-weight, dlg-text-transform, dlg-letter-spacing, dlg-radius, icon-size, icon-pad, icon-radius, icon-ghost-color.",
747
+ "description": "Button type treatment and rounding. The unprefixed keys set every size at once; a size key (`dlg-radius`) overrides one size. Keys: icon-gap, default-bg, default-bg-hover, default-text, dlg-destructive-bg, dlg-destructive-bg-hover, dlg-destructive-text, hero-bg, hero-bg-hover, hero-text, ghost-text, ghost-text-hover, md-height, md-padding, dlg-padding, lg-height, lg-padding, default-shadow, default-shadow-hover, outline-text, outline-bg-hover, outline-bg, outline-padding, outline-font-weight, outline-ring-color, outline-backdrop-filter, hover-scale, press-scale, press-transform, press-duration, motion-duration, motion-easing, text-transform, letter-spacing, font-weight, radius, sm-font-size, sm-font-weight, sm-text-transform, sm-letter-spacing, sm-radius, md-font-size, md-font-weight, md-text-transform, md-letter-spacing, md-radius, lg-font-size, lg-font-weight, lg-text-transform, lg-letter-spacing, lg-radius, dlg-font-size, dlg-font-weight, dlg-text-transform, dlg-letter-spacing, dlg-radius, icon-size, icon-pad, icon-radius, icon-ghost-color.",
734
748
  "additionalProperties": {
735
749
  "$ref": "#/$defs/componentTokenBinding"
736
750
  }
737
751
  },
738
752
  "text": {
739
753
  "type": "object",
740
- "description": "Text type treatment, per size — set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. Every key begins with a size. Keys: xs-font-size, xs-text-transform, xs-letter-spacing, sm-font-size, sm-text-transform, sm-letter-spacing, md-font-size, md-text-transform, md-letter-spacing, lg-font-size, lg-text-transform, lg-letter-spacing, xl-font-size, xl-text-transform, xl-letter-spacing.",
754
+ "description": "Text type treatment, per size — set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. `eyebrow` also takes a weight, colour and gap. Every key begins with a size. Keys: xs-font-size, xs-text-transform, xs-letter-spacing, sm-font-size, sm-text-transform, sm-letter-spacing, md-font-size, md-text-transform, md-letter-spacing, lg-font-size, lg-text-transform, lg-letter-spacing, xl-font-size, xl-text-transform, xl-letter-spacing, eyebrow-font-size, eyebrow-text-transform, eyebrow-letter-spacing, eyebrow-font-weight, eyebrow-color, eyebrow-gap.",
741
755
  "additionalProperties": {
742
756
  "$ref": "#/$defs/componentTokenBinding"
743
757
  }
@@ -765,7 +779,7 @@
765
779
  },
766
780
  "segmented-control": {
767
781
  "type": "object",
768
- "description": "SegmentedControl \u2014 the well, its corner radius and padding, the segment height, sides, label size and corners, the sliding pill and its corners, the ink and the state edge on it. The resting edge is the shared `control` edge. Keys: track-bg, radius, track-padding, item-height, item-padding-x, font-size, item-radius, indicator-radius, indicator-bg, indicator-text, indicator-edge, inactive-text, active-weight.",
782
+ "description": "SegmentedControl \u2014 the well, its corner radius and padding, the segment height, sides, label size and corners, the sliding pill and its corners, the ink and the state edge on it. The resting edge is the shared `control` edge. Under `data-glass=\"on\"` the well blurs the photo and, unbound, takes the glass layer's control fill. Keys: track-bg, radius, track-padding, item-height, item-padding-x, font-size, item-radius, indicator-radius, indicator-bg, indicator-text, indicator-edge, inactive-text, active-weight.",
769
783
  "additionalProperties": {
770
784
  "$ref": "#/$defs/componentTokenBinding"
771
785
  }
@@ -784,6 +798,20 @@
784
798
  "$ref": "#/$defs/componentTokenBinding"
785
799
  }
786
800
  },
801
+ "radio-step": {
802
+ "type": "object",
803
+ "description": "RadioGroup `variant=\"stepped\"` \u2014 the key colour, the well and its radius, the resting ink, the icon size, and the chosen tile's fill and hairline. Keys: key, well, well-radius, ink, icon-size, selected-bg, selected-border.",
804
+ "additionalProperties": {
805
+ "$ref": "#/$defs/componentTokenBinding"
806
+ }
807
+ },
808
+ "reach-rings": {
809
+ "type": "object",
810
+ "description": "ReachRings \u2014 the key colour of lit rings and the core, the unlit ring stroke, and the core icon lit and unlit. Keys: key, ring, glyph, core-ink.",
811
+ "additionalProperties": {
812
+ "$ref": "#/$defs/componentTokenBinding"
813
+ }
814
+ },
787
815
  "tooltip": {
788
816
  "type": "object",
789
817
  "description": "Tooltip ground and ink, so a dark theme can keep the label legible without retuning the shared inverse pair other components read. Keys: bg, text.",
@@ -812,6 +840,13 @@
812
840
  "$ref": "#/$defs/componentTokenBinding"
813
841
  }
814
842
  },
843
+ "offline-banner": {
844
+ "type": "object",
845
+ "description": "OfflineBanner's pill variant \u2014 height, padding, gap, type size, label and detail weight, detail opacity, icon size, fill, ink and edge. Under `data-glass=\"on\"` the pill reads the glass layer's control values instead. Keys: pill-height, pill-padding-x, pill-gap, pill-font-size, pill-font-weight, pill-detail-font-weight, pill-detail-opacity, pill-icon-size, pill-bg, pill-text-color, pill-border.",
846
+ "additionalProperties": {
847
+ "$ref": "#/$defs/componentTokenBinding"
848
+ }
849
+ },
815
850
  "separator": {
816
851
  "type": "object",
817
852
  "description": "Separator rule colour, bare or either side of a label. Keys: color.",