@loworbitstudio/visor-theme-engine 0.39.0 → 0.41.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.
@@ -29,7 +29,7 @@ import {
29
29
  resolveThemeBrand,
30
30
  resolveThemeFonts,
31
31
  sectionComment
32
- } from "../chunk-SNYZ4TA7.js";
32
+ } from "../chunk-KWNSKA6L.js";
33
33
 
34
34
  // src/adapters/brand-passthrough.ts
35
35
  var SENTINEL_COLOR = "#ff00ff";
@@ -1285,6 +1285,8 @@ var DIALOG_FIELD = "blocks/dialog-field/dialog-field.module.css";
1285
1285
  var ADMIN_SHELL = "blocks/admin-shell/admin-shell.module.css";
1286
1286
  var BILLING_SLIDER = "components/ui/billing-slider/billing-slider.module.css";
1287
1287
  var RESIZABLE_SPLIT = "components/ui/resizable-split/resizable-split.module.css";
1288
+ var DIALOG = "components/ui/dialog/dialog.module.css";
1289
+ var STAT_CARD = "components/ui/stat-card/stat-card.module.css";
1288
1290
  function at(file, fallback) {
1289
1291
  return [{ file, fallback }];
1290
1292
  }
@@ -1654,6 +1656,21 @@ var resizableSplitFamily = {
1654
1656
  { key: "divider-active-color", property: "background-color", description: "The divider's line while it is dragged.", consumers: at(RESIZABLE_SPLIT, "var(--interactive-primary-bg, #111827)") }
1655
1657
  ]
1656
1658
  };
1659
+ var dialogFamily = {
1660
+ family: "dialog",
1661
+ prefix: "dialog",
1662
+ description: "Dialog's panel and page scrim \u2014 width, corners, fill, inset, shadow, a backdrop filter for glass, and the scrim's colour and blur. ConfirmDialog shares them.",
1663
+ tokens: [
1664
+ { key: "max-width", property: "max-width", description: "The centred panel's widest. The bottom sheet stays full width.", consumers: [{ file: DIALOG, fallback: "32rem" }, { file: DIALOG, fallback: "480px" }] },
1665
+ { key: "radius", property: "border-radius", description: "Panel corners; the bottom sheet's top corners.", consumers: [{ file: DIALOG, fallback: "var(--radius-lg, 0.5rem)" }, { file: DIALOG, fallback: "var(--radius-xl)" }] },
1666
+ { key: "bg", property: "background-color", description: "Panel fill. Translucent for glass, with `backdrop-filter`.", consumers: [{ file: DIALOG, fallback: "var(--surface-page, #ffffff)" }, { file: DIALOG, fallback: "var(--surface-popover, var(--surface-page, #ffffff))" }] },
1667
+ { key: "padding", property: "padding", description: "Panel inset. The bottom sheet keeps its own bottom inset over the safe area.", consumers: [{ file: DIALOG, fallback: "var(--spacing-6, 1.5rem)" }, { file: DIALOG, fallback: "var(--spacing-8)" }] },
1668
+ { key: "shadow", property: "box-shadow", description: "Panel shadow.", consumers: [{ file: DIALOG, fallback: "var(--shadow-xl)" }, { file: DIALOG, fallback: "var(--shadow-lg)" }] },
1669
+ { key: "backdrop-filter", property: "backdrop-filter", description: "Filter on what shows through the panel, e.g. `blur(32px) saturate(110%)` for glass.", consumers: at(DIALOG, "none") },
1670
+ { key: "overlay-bg", property: "background-color", description: "The page scrim's colour.", consumers: at(DIALOG, "var(--overlay-bg, rgba(0, 0, 0, 0.8))") },
1671
+ { key: "overlay-blur", property: "backdrop-filter: blur()", description: "How much the scrim blurs the page, a length.", consumers: [{ file: DIALOG, fallback: "4px" }, { file: DIALOG, fallback: "2px" }] }
1672
+ ]
1673
+ };
1657
1674
  var tabsFamily = {
1658
1675
  family: "tabs",
1659
1676
  prefix: "tabs",
@@ -2310,7 +2327,7 @@ var proportionBarFamily = {
2310
2327
  var segmentedControlFamily = {
2311
2328
  family: "segmented-control",
2312
2329
  prefix: "segmented-control",
2313
- description: "SegmentedControl \u2014 the well, its corner radius, the sliding pill, the ink and the state edge on it. The resting edge is the shared `control` edge.",
2330
+ 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.",
2314
2331
  tokens: [
2315
2332
  { 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))") },
2316
2333
  {
@@ -2323,6 +2340,72 @@ var segmentedControlFamily = {
2323
2340
  { file: SEGMENTED_CONTROL, fallback: "var(--radius-xl, 0.75rem)" }
2324
2341
  ]
2325
2342
  },
2343
+ // VI-785: the segment box. Each size falls back to its ToggleGroup value.
2344
+ {
2345
+ key: "track-padding",
2346
+ property: "padding",
2347
+ description: "Inset between the well's edge and the segments. Unset, xs keeps 2px and sm, md and lg `--spacing-1`.",
2348
+ consumers: [
2349
+ { file: SEGMENTED_CONTROL, fallback: "calc(var(--spacing-1, 0.25rem) / 2)" },
2350
+ { file: SEGMENTED_CONTROL, fallback: "var(--spacing-1, 0.25rem)" },
2351
+ { file: SEGMENTED_CONTROL, fallback: "var(--spacing-1, 0.25rem)" }
2352
+ ]
2353
+ },
2354
+ {
2355
+ key: "item-height",
2356
+ property: "height (via --label-box-height)",
2357
+ description: "Segment height, which the pill follows. Unset, xs 24px, sm 28px, md 36px, lg 44px.",
2358
+ consumers: [
2359
+ { file: SEGMENTED_CONTROL, fallback: "1.5rem" },
2360
+ { file: SEGMENTED_CONTROL, fallback: "1.75rem" },
2361
+ { file: SEGMENTED_CONTROL, fallback: "2.25rem" },
2362
+ { file: SEGMENTED_CONTROL, fallback: "2.75rem" }
2363
+ ]
2364
+ },
2365
+ {
2366
+ key: "item-padding-x",
2367
+ property: "padding-inline",
2368
+ description: "Segment sides. Unset, each size keeps its ToggleGroup padding (xs reads `toggle-group.xs-padding-x`).",
2369
+ consumers: [
2370
+ { file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-padding-x, var(--spacing-2, 0.5rem))" },
2371
+ { file: SEGMENTED_CONTROL, fallback: "var(--spacing-2, 0.5rem)" },
2372
+ { file: SEGMENTED_CONTROL, fallback: "var(--spacing-3, 0.75rem)" },
2373
+ { file: SEGMENTED_CONTROL, fallback: "var(--spacing-4, 1rem)" }
2374
+ ]
2375
+ },
2376
+ {
2377
+ key: "font-size",
2378
+ property: "font-size",
2379
+ description: "Segment label size. Unset, each size keeps its ToggleGroup size (xs reads `toggle-group.xs-font-size`).",
2380
+ consumers: [
2381
+ { file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-font-size, var(--font-size-xs, 0.75rem))" },
2382
+ { file: SEGMENTED_CONTROL, fallback: "var(--font-size-xs, 0.75rem)" },
2383
+ { file: SEGMENTED_CONTROL, fallback: "var(--font-size-sm, 0.875rem)" },
2384
+ { file: SEGMENTED_CONTROL, fallback: "var(--font-size-base, 1rem)" }
2385
+ ]
2386
+ },
2387
+ {
2388
+ key: "item-radius",
2389
+ property: "border-radius",
2390
+ description: "Segment corners: the hover fill and the focus ring. Unset, each size keeps its ToggleGroup radius (xs reads `toggle-group.xs-item-radius`).",
2391
+ consumers: [
2392
+ { file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-item-radius, var(--radius-sm, 0.25rem))" },
2393
+ { file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
2394
+ { file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
2395
+ { file: SEGMENTED_CONTROL, fallback: "var(--radius-lg, 0.5rem)" }
2396
+ ]
2397
+ },
2398
+ {
2399
+ key: "indicator-radius",
2400
+ property: "border-radius",
2401
+ 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`).",
2402
+ consumers: [
2403
+ { file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-item-radius, var(--radius-sm, 0.25rem))" },
2404
+ { file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
2405
+ { file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
2406
+ { file: SEGMENTED_CONTROL, fallback: "var(--radius-lg, 0.5rem)" }
2407
+ ]
2408
+ },
2326
2409
  { 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))") },
2327
2410
  { key: "indicator-text", property: "color", description: "Active segment label ink, on the pill.", consumers: at(SEGMENTED_CONTROL, "var(--interactive-primary-text, #f9fafb)") },
2328
2411
  { key: "indicator-edge", property: "box-shadow (inset, at --control-state-edge-width)", description: "Colour of the 1px state edge on the active pill. Set `transparent` where the fill already clears 3:1 against the well.", consumers: at(SEGMENTED_CONTROL, "var(--text-primary, #111827)") },
@@ -2333,7 +2416,7 @@ var segmentedControlFamily = {
2333
2416
  var toggleGroupFamily = {
2334
2417
  family: "toggle-group",
2335
2418
  prefix: "toggle-group",
2336
- description: "ToggleGroup \u2014 the outline track's fill, the selected option's fill and ink, the unselected ink, and the compact (`xs`) size: its label size, option sides and corners. SegmentedControl takes the `xs` option keys too.",
2419
+ description: "ToggleGroup \u2014 the outline track's fill, the selected option's fill and ink, the unselected ink, and the compact (`xs`) size: its label size, option sides and corners. SegmentedControl takes the `xs` option keys too. The `option-*` keys draw the option variant's rows, letter key and check.",
2337
2420
  tokens: [
2338
2421
  { key: "track-bg", property: "background-color", description: "The outline variant's track. Bind a well darker than its plane where the theme wants one.", consumers: at(TOGGLE_GROUP, "transparent") },
2339
2422
  {
@@ -2347,7 +2430,30 @@ var toggleGroupFamily = {
2347
2430
  { key: "xs-font-size", property: "font-size", description: "Compact (`xs`) label size.", consumers: at(TOGGLE_GROUP, "var(--font-size-xs, 0.75rem)") },
2348
2431
  { key: "xs-padding-x", property: "padding-inline", description: "Compact (`xs`) option sides.", consumers: at(TOGGLE_GROUP, "var(--spacing-2, 0.5rem)") },
2349
2432
  { key: "xs-track-radius", property: "border-radius", description: "Compact (`xs`) outline track corner radius.", consumers: at(TOGGLE_GROUP, "var(--radius-md, 0.375rem)") },
2350
- { 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)") }
2433
+ { 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)") },
2434
+ { key: "option-gap", property: "gap", description: "Option variant (VI-787): the space between rows.", consumers: at(TOGGLE_GROUP, "var(--spacing-2, 0.5rem)") },
2435
+ { 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)") },
2436
+ { key: "option-min-height", property: "min-height", description: "Option row height; a wrapped label grows past it.", consumers: at(TOGGLE_GROUP, "3.375rem") },
2437
+ { key: "option-padding", property: "padding", description: "Option row padding (top, end, bottom, start).", consumers: at(TOGGLE_GROUP, "var(--spacing-2, 0.5rem) var(--spacing-4_5, 1.125rem) var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem)") },
2438
+ { key: "option-radius", property: "border-radius", description: "Option row corner radius.", consumers: at(TOGGLE_GROUP, "var(--radius-lg, 0.5rem)") },
2439
+ { key: "option-bg", property: "background-color", description: "Option row fill at rest, a glass wash of the ink.", consumers: at(TOGGLE_GROUP, "color-mix(in srgb, var(--text-primary, #111827) 9%, transparent)") },
2440
+ { key: "option-hover-bg", property: "background-color", description: "Option row fill on hover, when not picked.", consumers: at(TOGGLE_GROUP, "color-mix(in srgb, var(--text-primary, #111827) 13%, transparent)") },
2441
+ { key: "option-selected-bg", property: "background-color", description: "Picked option row fill.", consumers: at(TOGGLE_GROUP, "color-mix(in srgb, var(--text-primary, #111827) 20%, transparent)") },
2442
+ { key: "option-selected-ring", property: "box-shadow", description: "Picked option row's 1px inset ring colour.", consumers: at(TOGGLE_GROUP, "color-mix(in srgb, var(--text-primary, #111827) 40%, transparent)") },
2443
+ { key: "option-blur", property: "backdrop-filter", description: "Option row backdrop blur radius (a length, e.g. `24px`).", consumers: at(TOGGLE_GROUP, "24px") },
2444
+ { key: "option-text", property: "color", description: "Option label ink.", consumers: at(TOGGLE_GROUP, "var(--text-primary, #111827)") },
2445
+ { key: "option-font-size", property: "font-size", description: "Option label size.", consumers: at(TOGGLE_GROUP, "var(--font-size-base, 1rem)") },
2446
+ { key: "option-font-weight", property: "font-weight", description: "Option label weight.", consumers: at(TOGGLE_GROUP, "var(--font-weight-medium, 500)") },
2447
+ { key: "option-key-size", property: "width / height", description: "Letter key badge size.", consumers: at(TOGGLE_GROUP, "1.75rem") },
2448
+ { key: "option-key-radius", property: "border-radius", description: "Letter key badge corner radius.", consumers: at(TOGGLE_GROUP, "var(--radius-md, 0.375rem)") },
2449
+ { key: "option-key-border", property: "box-shadow", description: "Letter key badge's inset edge while not picked.", consumers: at(TOGGLE_GROUP, "var(--border-default, #e5e7eb)") },
2450
+ { key: "option-key-text", property: "color", description: "Letter key ink while not picked.", consumers: at(TOGGLE_GROUP, "var(--text-secondary, #4b5563)") },
2451
+ { key: "option-key-font-size", property: "font-size", description: "Letter key size.", consumers: at(TOGGLE_GROUP, "var(--font-size-xs, 0.75rem)") },
2452
+ { key: "option-mark-bg", property: "background-color", description: "Picked fill of the letter key and the check box (the key colour).", consumers: at(TOGGLE_GROUP, "var(--interactive-primary-bg, var(--primary, #111827))") },
2453
+ { key: "option-mark-text", property: "color", description: "Picked ink of the letter key and the check glyph.", consumers: at(TOGGLE_GROUP, "var(--interactive-primary-text, #f9fafb)") },
2454
+ { key: "option-check-size", property: "width / height", description: "Multiple-mode check box size.", consumers: at(TOGGLE_GROUP, "1.25rem") },
2455
+ { key: "option-check-radius", property: "border-radius", description: "Check box corner radius.", consumers: at(TOGGLE_GROUP, "var(--radius-sm, 0.25rem)") },
2456
+ { key: "option-check-border", property: "box-shadow", description: "Check box's inset edge while not picked.", consumers: at(TOGGLE_GROUP, "var(--border-strong, #d1d5db)") }
2351
2457
  ]
2352
2458
  };
2353
2459
  var radioCardFamily = {
@@ -2398,6 +2504,32 @@ var layerChartFamily = {
2398
2504
  { key: "ground", property: "background (mixes)", description: "The ground blocks are mixed toward (covered, today, the palest layer) and the span lanes' track.", consumers: at(LAYER_CHART, "var(--surface-page, #ffffff)") }
2399
2505
  ]
2400
2506
  };
2507
+ var statCardFamily = {
2508
+ family: "stat-card",
2509
+ prefix: "stat-card",
2510
+ description: "StatCard \u2014 the card's edge, corners, elevation and inset, the rule above the footer, and the label, value and footer type.",
2511
+ tokens: [
2512
+ { key: "border", property: "border", description: "Card edge \u2014 `0` draws a borderless card.", consumers: at(STAT_CARD, "1px solid var(--border-default, #e5e7eb)") },
2513
+ { key: "radius", property: "border-radius", description: "Card corner rounding.", consumers: at(STAT_CARD, "var(--radius-lg, 0.75rem)") },
2514
+ { key: "shadow", property: "box-shadow", description: "Card elevation.", consumers: at(STAT_CARD, "var(--shadow-xs, 0 1px 2px 0 rgb(0 0 0 / 0.05))") },
2515
+ { key: "padding", property: "padding", description: "Card inset.", consumers: at(STAT_CARD, "var(--spacing-5, 1.25rem)") },
2516
+ { key: "footer-border", property: "border-top", description: "Rule above the footer \u2014 `0` drops it.", consumers: at(STAT_CARD, "1px solid var(--border-default, #e5e7eb)") },
2517
+ { key: "footer-font-size", property: "font-size", description: "Footer type size.", consumers: at(STAT_CARD, "var(--font-size-sm, 0.875rem)") },
2518
+ { key: "footer-font-weight", property: "font-weight", description: "Footer weight.", consumers: at(STAT_CARD, "inherit") },
2519
+ { key: "footer-line-height", property: "line-height", description: "Footer line height.", consumers: at(STAT_CARD, "var(--line-height-normal, 1.5)") },
2520
+ { key: "footer-color", property: "color", description: "Footer colour.", consumers: at(STAT_CARD, "var(--text-secondary, #6b7280)") },
2521
+ { key: "value-font-family", property: "font-family", description: "Value family.", consumers: at(STAT_CARD, "var(--font-family-heading, inherit)") },
2522
+ { key: "value-font-size", property: "font-size", description: "Value type size.", consumers: at(STAT_CARD, "var(--font-size-3xl, 1.875rem)") },
2523
+ { key: "value-font-weight", property: "font-weight", description: "Value weight.", consumers: at(STAT_CARD, "var(--font-weight-semibold, 600)") },
2524
+ { key: "value-line-height", property: "line-height", description: "Value line height.", consumers: at(STAT_CARD, "var(--line-height-tight, 1.1)") },
2525
+ { key: "value-letter-spacing", property: "letter-spacing", description: "Value tracking.", consumers: at(STAT_CARD, "var(--letter-spacing-tight, -0.02em)") },
2526
+ { key: "label-font-size", property: "font-size", description: "Label type size.", consumers: at(STAT_CARD, "var(--font-size-xs, 0.75rem)") },
2527
+ { key: "label-font-weight", property: "font-weight", description: "Label weight.", consumers: at(STAT_CARD, "var(--font-weight-semibold, 600)") },
2528
+ { key: "label-line-height", property: "line-height", description: "Label line height.", consumers: at(STAT_CARD, "var(--line-height-tight, 1.25)") },
2529
+ { key: "label-letter-spacing", property: "letter-spacing", description: "Label tracking.", consumers: at(STAT_CARD, "var(--letter-spacing-wide, 0.05em)") },
2530
+ { key: "label-color", property: "color", description: "Label colour.", consumers: at(STAT_CARD, "var(--text-tertiary, #6b7280)") }
2531
+ ]
2532
+ };
2401
2533
  var COMPONENT_TOKEN_FAMILIES = [
2402
2534
  tableFamily,
2403
2535
  dataTableFamily,
@@ -2412,6 +2544,7 @@ var COMPONENT_TOKEN_FAMILIES = [
2412
2544
  adminShellFamily,
2413
2545
  billingSliderFamily,
2414
2546
  resizableSplitFamily,
2547
+ dialogFamily,
2415
2548
  tabsFamily,
2416
2549
  skeletonFamily,
2417
2550
  spinnerFamily,
@@ -2437,6 +2570,7 @@ var COMPONENT_TOKEN_FAMILIES = [
2437
2570
  separatorFamily,
2438
2571
  alertFamily,
2439
2572
  layerChartFamily,
2573
+ statCardFamily,
2440
2574
  adminUiFamily
2441
2575
  ];
2442
2576
  var COMPONENT_TOKEN_FAMILY_BY_NAME = new Map(
package/dist/index.d.ts CHANGED
@@ -1182,6 +1182,13 @@ var properties = {
1182
1182
  $ref: "#/$defs/componentTokenBinding"
1183
1183
  }
1184
1184
  },
1185
+ dialog: {
1186
+ type: "object",
1187
+ description: "Dialog's panel and page scrim — width, corners, fill, inset, shadow, a backdrop filter for glass, and the scrim's colour and blur. ConfirmDialog shares them. Keys: max-width, radius, bg, padding, shadow, backdrop-filter, overlay-bg, overlay-blur.",
1188
+ additionalProperties: {
1189
+ $ref: "#/$defs/componentTokenBinding"
1190
+ }
1191
+ },
1185
1192
  tabs: {
1186
1193
  type: "object",
1187
1194
  description: "Tab rail and trigger treatment, for both the segmented (`default`) and underlined (`line`) variants. Keys: list-radius, list-height, list-padding, list-color, list-bg, line-border-bottom, trigger-radius, trigger-padding, trigger-font-size, trigger-font-weight, trigger-letter-spacing, trigger-text-transform, trigger-color, trigger-active-bg, trigger-active-color, trigger-active-shadow, indicator-height, indicator-color.",
@@ -1224,6 +1231,13 @@ var properties = {
1224
1231
  $ref: "#/$defs/componentTokenBinding"
1225
1232
  }
1226
1233
  },
1234
+ "stat-card": {
1235
+ type: "object",
1236
+ description: "StatCard — the card's edge, corners, elevation and inset, the rule above the footer, and the label, value and footer type. Keys: border, radius, shadow, padding, footer-border, footer-font-size, footer-font-weight, footer-line-height, footer-color, value-font-family, value-font-size, value-font-weight, value-line-height, value-letter-spacing, label-font-size, label-font-weight, label-line-height, label-letter-spacing, label-color.",
1237
+ additionalProperties: {
1238
+ $ref: "#/$defs/componentTokenBinding"
1239
+ }
1240
+ },
1227
1241
  textarea: {
1228
1242
  type: "object",
1229
1243
  description: "Textarea shape at the default `md` size. Keys: padding, radius.",
@@ -1310,14 +1324,14 @@ var properties = {
1310
1324
  },
1311
1325
  "segmented-control": {
1312
1326
  type: "object",
1313
- description: "SegmentedControl — the well, its corner radius, the sliding pill, the ink and the state edge on it. The resting edge is the shared `control` edge. Keys: track-bg, radius, indicator-bg, indicator-text, indicator-edge, inactive-text, active-weight.",
1327
+ 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.",
1314
1328
  additionalProperties: {
1315
1329
  $ref: "#/$defs/componentTokenBinding"
1316
1330
  }
1317
1331
  },
1318
1332
  "toggle-group": {
1319
1333
  type: "object",
1320
- description: "ToggleGroup — the outline track's fill, the selected option's fill and ink, the unselected ink, and the compact (`xs`) size: its label size, option sides and corners. SegmentedControl takes the `xs` option keys too. Keys: track-bg, selected-bg, selected-text, unselected-text, xs-font-size, xs-padding-x, xs-track-radius, xs-item-radius.",
1334
+ description: "ToggleGroup — the outline track's fill, the selected option's fill and ink, the unselected ink, and the compact (`xs`) size: its label size, option sides and corners. SegmentedControl takes the `xs` option keys too. The `option-*` keys draw the option variant's rows, letter key and check. Keys: track-bg, selected-bg, selected-text, unselected-text, xs-font-size, xs-padding-x, xs-track-radius, xs-item-radius, option-gap, option-inner-gap, option-min-height, option-padding, option-radius, option-bg, option-hover-bg, option-selected-bg, option-selected-ring, option-blur, option-text, option-font-size, option-font-weight, option-key-size, option-key-radius, option-key-border, option-key-text, option-key-font-size, option-mark-bg, option-mark-text, option-check-size, option-check-radius, option-check-border.",
1321
1335
  additionalProperties: {
1322
1336
  $ref: "#/$defs/componentTokenBinding"
1323
1337
  }
package/dist/index.js CHANGED
@@ -68,7 +68,7 @@ import {
68
68
  rgbToOklch,
69
69
  serializeColor,
70
70
  validateComponentBindings
71
- } from "./chunk-SNYZ4TA7.js";
71
+ } from "./chunk-KWNSKA6L.js";
72
72
 
73
73
  // src/fonts/validate-coverage.ts
74
74
  var FONT_VAR_RE = /--font-(heading|display|body|sans|mono)\s*:\s*([^;]+);/g;
@@ -1203,6 +1203,13 @@ var visor_theme_schema_default = {
1203
1203
  $ref: "#/$defs/componentTokenBinding"
1204
1204
  }
1205
1205
  },
1206
+ dialog: {
1207
+ type: "object",
1208
+ description: "Dialog's panel and page scrim \u2014 width, corners, fill, inset, shadow, a backdrop filter for glass, and the scrim's colour and blur. ConfirmDialog shares them. Keys: max-width, radius, bg, padding, shadow, backdrop-filter, overlay-bg, overlay-blur.",
1209
+ additionalProperties: {
1210
+ $ref: "#/$defs/componentTokenBinding"
1211
+ }
1212
+ },
1206
1213
  tabs: {
1207
1214
  type: "object",
1208
1215
  description: "Tab rail and trigger treatment, for both the segmented (`default`) and underlined (`line`) variants. Keys: list-radius, list-height, list-padding, list-color, list-bg, line-border-bottom, trigger-radius, trigger-padding, trigger-font-size, trigger-font-weight, trigger-letter-spacing, trigger-text-transform, trigger-color, trigger-active-bg, trigger-active-color, trigger-active-shadow, indicator-height, indicator-color.",
@@ -1245,6 +1252,13 @@ var visor_theme_schema_default = {
1245
1252
  $ref: "#/$defs/componentTokenBinding"
1246
1253
  }
1247
1254
  },
1255
+ "stat-card": {
1256
+ type: "object",
1257
+ description: "StatCard \u2014 the card's edge, corners, elevation and inset, the rule above the footer, and the label, value and footer type. Keys: border, radius, shadow, padding, footer-border, footer-font-size, footer-font-weight, footer-line-height, footer-color, value-font-family, value-font-size, value-font-weight, value-line-height, value-letter-spacing, label-font-size, label-font-weight, label-line-height, label-letter-spacing, label-color.",
1258
+ additionalProperties: {
1259
+ $ref: "#/$defs/componentTokenBinding"
1260
+ }
1261
+ },
1248
1262
  textarea: {
1249
1263
  type: "object",
1250
1264
  description: "Textarea shape at the default `md` size. Keys: padding, radius.",
@@ -1331,14 +1345,14 @@ var visor_theme_schema_default = {
1331
1345
  },
1332
1346
  "segmented-control": {
1333
1347
  type: "object",
1334
- description: "SegmentedControl \u2014 the well, its corner radius, the sliding pill, the ink and the state edge on it. The resting edge is the shared `control` edge. Keys: track-bg, radius, indicator-bg, indicator-text, indicator-edge, inactive-text, active-weight.",
1348
+ 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.",
1335
1349
  additionalProperties: {
1336
1350
  $ref: "#/$defs/componentTokenBinding"
1337
1351
  }
1338
1352
  },
1339
1353
  "toggle-group": {
1340
1354
  type: "object",
1341
- description: "ToggleGroup \u2014 the outline track's fill, the selected option's fill and ink, the unselected ink, and the compact (`xs`) size: its label size, option sides and corners. SegmentedControl takes the `xs` option keys too. Keys: track-bg, selected-bg, selected-text, unselected-text, xs-font-size, xs-padding-x, xs-track-radius, xs-item-radius.",
1355
+ description: "ToggleGroup \u2014 the outline track's fill, the selected option's fill and ink, the unselected ink, and the compact (`xs`) size: its label size, option sides and corners. SegmentedControl takes the `xs` option keys too. The `option-*` keys draw the option variant's rows, letter key and check. Keys: track-bg, selected-bg, selected-text, unselected-text, xs-font-size, xs-padding-x, xs-track-radius, xs-item-radius, option-gap, option-inner-gap, option-min-height, option-padding, option-radius, option-bg, option-hover-bg, option-selected-bg, option-selected-ring, option-blur, option-text, option-font-size, option-font-weight, option-key-size, option-key-radius, option-key-border, option-key-text, option-key-font-size, option-mark-bg, option-mark-text, option-check-size, option-check-radius, option-check-border.",
1342
1356
  additionalProperties: {
1343
1357
  $ref: "#/$defs/componentTokenBinding"
1344
1358
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loworbitstudio/visor-theme-engine",
3
- "version": "0.39.0",
3
+ "version": "0.41.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",
@@ -582,6 +582,13 @@
582
582
  "$ref": "#/$defs/componentTokenBinding"
583
583
  }
584
584
  },
585
+ "dialog": {
586
+ "type": "object",
587
+ "description": "Dialog's panel and page scrim — width, corners, fill, inset, shadow, a backdrop filter for glass, and the scrim's colour and blur. ConfirmDialog shares them. Keys: max-width, radius, bg, padding, shadow, backdrop-filter, overlay-bg, overlay-blur.",
588
+ "additionalProperties": {
589
+ "$ref": "#/$defs/componentTokenBinding"
590
+ }
591
+ },
585
592
  "tabs": {
586
593
  "type": "object",
587
594
  "description": "Tab rail and trigger treatment, for both the segmented (`default`) and underlined (`line`) variants. Keys: list-radius, list-height, list-padding, list-color, list-bg, line-border-bottom, trigger-radius, trigger-padding, trigger-font-size, trigger-font-weight, trigger-letter-spacing, trigger-text-transform, trigger-color, trigger-active-bg, trigger-active-color, trigger-active-shadow, indicator-height, indicator-color.",
@@ -624,6 +631,13 @@
624
631
  "$ref": "#/$defs/componentTokenBinding"
625
632
  }
626
633
  },
634
+ "stat-card": {
635
+ "type": "object",
636
+ "description": "StatCard \u2014 the card's edge, corners, elevation and inset, the rule above the footer, and the label, value and footer type. Keys: border, radius, shadow, padding, footer-border, footer-font-size, footer-font-weight, footer-line-height, footer-color, value-font-family, value-font-size, value-font-weight, value-line-height, value-letter-spacing, label-font-size, label-font-weight, label-line-height, label-letter-spacing, label-color.",
637
+ "additionalProperties": {
638
+ "$ref": "#/$defs/componentTokenBinding"
639
+ }
640
+ },
627
641
  "textarea": {
628
642
  "type": "object",
629
643
  "description": "Textarea shape at the default `md` size. Keys: padding, radius.",
@@ -710,14 +724,14 @@
710
724
  },
711
725
  "segmented-control": {
712
726
  "type": "object",
713
- "description": "SegmentedControl \u2014 the well, its corner radius, the sliding pill, the ink and the state edge on it. The resting edge is the shared `control` edge. Keys: track-bg, radius, indicator-bg, indicator-text, indicator-edge, inactive-text, active-weight.",
727
+ "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.",
714
728
  "additionalProperties": {
715
729
  "$ref": "#/$defs/componentTokenBinding"
716
730
  }
717
731
  },
718
732
  "toggle-group": {
719
733
  "type": "object",
720
- "description": "ToggleGroup \u2014 the outline track's fill, the selected option's fill and ink, the unselected ink, and the compact (`xs`) size: its label size, option sides and corners. SegmentedControl takes the `xs` option keys too. Keys: track-bg, selected-bg, selected-text, unselected-text, xs-font-size, xs-padding-x, xs-track-radius, xs-item-radius.",
734
+ "description": "ToggleGroup \u2014 the outline track's fill, the selected option's fill and ink, the unselected ink, and the compact (`xs`) size: its label size, option sides and corners. SegmentedControl takes the `xs` option keys too. The `option-*` keys draw the option variant's rows, letter key and check. Keys: track-bg, selected-bg, selected-text, unselected-text, xs-font-size, xs-padding-x, xs-track-radius, xs-item-radius, option-gap, option-inner-gap, option-min-height, option-padding, option-radius, option-bg, option-hover-bg, option-selected-bg, option-selected-ring, option-blur, option-text, option-font-size, option-font-weight, option-key-size, option-key-radius, option-key-border, option-key-text, option-key-font-size, option-mark-bg, option-mark-text, option-check-size, option-check-radius, option-check-border.",
721
735
  "additionalProperties": {
722
736
  "$ref": "#/$defs/componentTokenBinding"
723
737
  }