@loworbitstudio/visor-theme-engine 0.35.0 → 0.38.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.
@@ -1,4 +1,4 @@
1
- import { k as GeneratedPrimitives, s as SemanticTokens, R as ResolvedThemeConfig } from '../types-BzMsNXmX.js';
1
+ import { k as GeneratedPrimitives, s as SemanticTokens, R as ResolvedThemeConfig } from '../types-Cz2u5kQs.js';
2
2
 
3
3
  /**
4
4
  * Adapter types for the Visor theme engine.
@@ -29,7 +29,7 @@ import {
29
29
  resolveThemeBrand,
30
30
  resolveThemeFonts,
31
31
  sectionComment
32
- } from "../chunk-WK6TF5EZ.js";
32
+ } from "../chunk-4NNPEFHG.js";
33
33
 
34
34
  // src/adapters/brand-passthrough.ts
35
35
  var SENTINEL_COLOR = "#ff00ff";
@@ -1275,12 +1275,15 @@ var TEXT = "components/ui/text/text.module.css";
1275
1275
  var INLINE_EDIT = "components/ui/inline-edit/inline-edit.module.css";
1276
1276
  var SAVE_STATUS = "components/ui/save-status/save-status.module.css";
1277
1277
  var SEGMENTED_CONTROL = "components/ui/segmented-control/segmented-control.module.css";
1278
+ var LAYER_CHART = "components/ui/layer-chart/layer-chart.module.css";
1279
+ var PROPORTION_BAR = "components/ui/proportion-bar/proportion-bar.module.css";
1278
1280
  var TOGGLE_GROUP = "components/ui/toggle-group/toggle-group.module.css";
1279
1281
  var RADIO_GROUP = "components/ui/radio-group/radio-group.module.css";
1280
1282
  var TOOLTIP = "components/ui/tooltip/tooltip.module.css";
1281
1283
  var ACTION_ROW = "components/ui/action-row/action-row.module.css";
1282
1284
  var DIALOG_FIELD = "blocks/dialog-field/dialog-field.module.css";
1283
1285
  var ADMIN_SHELL = "blocks/admin-shell/admin-shell.module.css";
1286
+ var BILLING_SLIDER = "components/ui/billing-slider/billing-slider.module.css";
1284
1287
  function at(file, fallback) {
1285
1288
  return [{ file, fallback }];
1286
1289
  }
@@ -1565,15 +1568,22 @@ var bannerFamily = {
1565
1568
  { key: "info-bg", property: "background-color", description: "Info-intent fill.", consumers: at(BANNER, "var(--surface-info-subtle, transparent)") },
1566
1569
  { key: "info-text-color", property: "color", description: "Info-intent text colour.", consumers: at(BANNER, "var(--text-info, currentColor)") },
1567
1570
  { key: "info-border-color", property: "border-color", description: "Info-intent rule colour.", consumers: at(BANNER, "var(--border-info, currentColor)") },
1571
+ { key: "info-description-color", property: "color", description: "Info-intent description colour.", consumers: at(BANNER, "color-mix(in srgb, var(--text-info, currentColor) 90%, transparent)") },
1568
1572
  { key: "warning-bg", property: "background-color", description: "Warning-intent fill.", consumers: at(BANNER, "var(--surface-warning-subtle, transparent)") },
1569
1573
  { key: "warning-text-color", property: "color", description: "Warning-intent text colour.", consumers: at(BANNER, "var(--text-warning, currentColor)") },
1570
1574
  { key: "warning-border-color", property: "border-color", description: "Warning-intent rule colour.", consumers: at(BANNER, "var(--border-warning, currentColor)") },
1575
+ { key: "warning-description-color", property: "color", description: "Warning-intent description colour.", consumers: at(BANNER, "color-mix(in srgb, var(--text-warning, currentColor) 90%, transparent)") },
1571
1576
  { key: "error-bg", property: "background-color", description: "Error-intent fill.", consumers: at(BANNER, "var(--surface-error-subtle, transparent)") },
1572
1577
  { key: "error-text-color", property: "color", description: "Error-intent text colour.", consumers: at(BANNER, "var(--text-error, currentColor)") },
1573
1578
  { key: "error-border-color", property: "border-color", description: "Error-intent rule colour.", consumers: at(BANNER, "var(--border-error, currentColor)") },
1579
+ { key: "error-description-color", property: "color", description: "Error-intent description colour.", consumers: at(BANNER, "color-mix(in srgb, var(--text-error, currentColor) 90%, transparent)") },
1574
1580
  { key: "success-bg", property: "background-color", description: "Success-intent fill.", consumers: at(BANNER, "var(--surface-success-subtle, transparent)") },
1575
1581
  { key: "success-text-color", property: "color", description: "Success-intent text colour.", consumers: at(BANNER, "var(--text-success, currentColor)") },
1576
- { key: "success-border-color", property: "border-color", description: "Success-intent rule colour.", consumers: at(BANNER, "var(--border-success, currentColor)") }
1582
+ { key: "success-border-color", property: "border-color", description: "Success-intent rule colour.", consumers: at(BANNER, "var(--border-success, currentColor)") },
1583
+ { key: "success-description-color", property: "color", description: "Success-intent description colour.", consumers: at(BANNER, "color-mix(in srgb, var(--text-success, currentColor) 90%, transparent)") },
1584
+ { key: "neutral-bg", property: "background-color", description: "Neutral-intent (ink) fill.", consumers: at(BANNER, "var(--text-primary, currentColor)") },
1585
+ { key: "neutral-text-color", property: "color", description: "Neutral-intent text colour, the page colour on the ink ground.", consumers: at(BANNER, "var(--surface-page, #fff)") },
1586
+ { key: "neutral-description-color", property: "color", description: "Neutral-intent description colour.", consumers: at(BANNER, "color-mix(in srgb, var(--banner-neutral-text-color, var(--surface-page, #fff)) 86%, transparent)") }
1577
1587
  ]
1578
1588
  };
1579
1589
  var sidebarFamily = {
@@ -1616,7 +1626,21 @@ var adminShellFamily = {
1616
1626
  { key: "sidebar-header-border", property: "border-bottom", description: "Rule under the sidebar header.", consumers: at(ADMIN_SHELL, "1px solid var(--border-muted, #e5e7eb)") },
1617
1627
  { key: "sidebar-footer-border", property: "border-top", description: "Rule above the sidebar footer.", consumers: at(ADMIN_SHELL, "1px solid var(--border-muted, #e5e7eb)") },
1618
1628
  { key: "topbar-bg", property: "background", description: "Topbar fill.", consumers: at(ADMIN_SHELL, "var(--surface-card, #ffffff)") },
1619
- { key: "topbar-border", property: "border-bottom", description: "Rule under the topbar.", consumers: at(ADMIN_SHELL, "1px solid var(--border-default, #e5e7eb)") }
1629
+ { key: "topbar-border", property: "border-bottom", description: "Rule under the topbar.", consumers: at(ADMIN_SHELL, "1px solid var(--border-default, #e5e7eb)") },
1630
+ { key: "rail-width", property: "width", description: "Sidebar width when a collapsible shell folds to its icon rail.", consumers: at(ADMIN_SHELL, "4.25rem") },
1631
+ { key: "rail-duration", property: "transition-duration", description: "How long the sidebar takes to fold to the rail and back.", consumers: at(ADMIN_SHELL, "var(--motion-duration-slow, 500ms)") },
1632
+ { key: "rail-easing", property: "transition-timing-function", description: "Easing of the fold to the rail and back.", consumers: at(ADMIN_SHELL, "var(--motion-easing-default, ease)") }
1633
+ ]
1634
+ };
1635
+ var billingSliderFamily = {
1636
+ family: "billing-slider",
1637
+ prefix: "billing-slider",
1638
+ description: "BillingSlider \u2014 the empty track, the thumb's pill and grip lines, and the striped money-at-stake gap between the thumb and the evidence tick.",
1639
+ tokens: [
1640
+ { key: "track-bg", property: "background", description: "The empty track.", consumers: at(BILLING_SLIDER, "color-mix(in srgb, var(--text-primary, #111827) 7%, transparent)") },
1641
+ { key: "thumb-bg", property: "background", description: "The thumb's pill.", consumers: at(BILLING_SLIDER, "var(--surface-popover, #ffffff)") },
1642
+ { key: "thumb-grip", property: "background", description: "The two grip lines down the pill.", consumers: at(BILLING_SLIDER, "color-mix(in srgb, var(--_ink) 45%, transparent)") },
1643
+ { key: "gap-color", property: "background (striped band)", description: "The gap's stripes: undecided, and worked past what it bills (money at stake).", consumers: at(BILLING_SLIDER, "var(--color-success-600, #16a34a)") }
1620
1644
  ]
1621
1645
  };
1622
1646
  var tabsFamily = {
@@ -2254,6 +2278,24 @@ var hairlineFamily = {
2254
2278
  }
2255
2279
  ]
2256
2280
  };
2281
+ var proportionBarFamily = {
2282
+ family: "proportion-bar",
2283
+ prefix: "proportion-bar",
2284
+ description: "ProportionBar \u2014 the default part fills by position, the built-in hatched, striped and alert fills, the alert's legend text and the empty track.",
2285
+ tokens: [
2286
+ { key: "fill-1", property: "background", description: "First part's fill when it sets none (then every fourth).", consumers: at(PROPORTION_BAR, "var(--chart-1, #2563eb)") },
2287
+ { key: "fill-2", property: "background", description: "Second part's default fill.", consumers: at(PROPORTION_BAR, "var(--chart-2, #16a34a)") },
2288
+ { key: "fill-3", property: "background", description: "Third part's default fill.", consumers: at(PROPORTION_BAR, "var(--chart-3, #d97706)") },
2289
+ { key: "fill-4", property: "background", description: "Fourth part's default fill.", consumers: at(PROPORTION_BAR, "var(--chart-4, #0891b2)") },
2290
+ { key: "hatch-color", property: "background (hatched stroke)", description: "Stroke of the `hatched` fill (not billable, written off).", consumers: at(PROPORTION_BAR, "var(--text-tertiary, #9ca3af)") },
2291
+ { key: "hatch-gap", property: "background (hatched gap)", description: "Ground between the hatch strokes.", consumers: at(PROPORTION_BAR, "color-mix(in srgb, var(--surface-card, #ffffff) 70%, transparent)") },
2292
+ { key: "stripe-a", property: "background (striped band)", description: "First band of the `striped` fill (earned, not yet collected).", consumers: at(PROPORTION_BAR, "var(--color-success-500, #22c55e)") },
2293
+ { key: "stripe-b", property: "background (striped band)", description: "Second band of the `striped` fill.", consumers: at(PROPORTION_BAR, "var(--color-success-600, #16a34a)") },
2294
+ { key: "alert-bg", property: "background", description: "The `alert` fill: the one part that needs a decision.", consumers: at(PROPORTION_BAR, "var(--interactive-destructive-bg, #dc2626)") },
2295
+ { key: "alert-text", property: "color", description: "The alert part's legend label and value.", consumers: at(PROPORTION_BAR, "var(--text-error, #b91c1c)") },
2296
+ { key: "track-bg", property: "background", description: "The one neutral track drawn when nothing is measured.", consumers: at(PROPORTION_BAR, "var(--surface-muted, #e5e7eb)") }
2297
+ ]
2298
+ };
2257
2299
  var segmentedControlFamily = {
2258
2300
  family: "segmented-control",
2259
2301
  prefix: "segmented-control",
@@ -2329,6 +2371,22 @@ var adminUiFamily = {
2329
2371
  }
2330
2372
  ]
2331
2373
  };
2374
+ var layerChartFamily = {
2375
+ family: "layer-chart",
2376
+ prefix: "layer-chart",
2377
+ description: 'LayerChart and SpanStrip \u2014 the investment hue (`hue="tide"`), the unresolved fill and its ink, the opening motion, and the ground between blocks.',
2378
+ tokens: [
2379
+ { key: "investment-fill", property: "background (palest layer)", description: "The investment hue's pale fill: its deepest blocks and its band.", consumers: at(LAYER_CHART, "var(--surface-muted, #f3f4f6)") },
2380
+ { key: "investment-fill-strong", property: "background (top layer)", description: "The investment hue's strong fill: its top-level block.", consumers: at(LAYER_CHART, "var(--surface-interactive-active, #e5e7eb)") },
2381
+ { key: "investment-ink", property: "color", description: "Text on the investment hue's fills, and a call in its span strip.", consumers: at(LAYER_CHART, "var(--text-primary, #111827)") },
2382
+ { key: "investment-solid", property: "background (span cells)", description: "The investment hue's solid, mixed into its span cells.", consumers: at(LAYER_CHART, "var(--text-secondary, #4b5563)") },
2383
+ { key: "alert-fill", property: "background", description: "An unresolved block: the chart's only coral.", consumers: at(LAYER_CHART, "color-mix(in srgb, var(--color-error-500, #ef4444) 35%, var(--surface-page, #ffffff))") },
2384
+ { key: "alert-text", property: "color", description: "Text on an unresolved block.", consumers: at(LAYER_CHART, "var(--text-error, #b91c1c)") },
2385
+ { key: "duration", property: "transition-duration", description: "How long a block takes to open (none under reduced motion).", consumers: at(LAYER_CHART, "480ms") },
2386
+ { key: "easing", property: "transition-timing-function", description: "The opening ease.", consumers: at(LAYER_CHART, "cubic-bezier(0.2, 0.8, 0.2, 1)") },
2387
+ { 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)") }
2388
+ ]
2389
+ };
2332
2390
  var COMPONENT_TOKEN_FAMILIES = [
2333
2391
  tableFamily,
2334
2392
  dataTableFamily,
@@ -2341,6 +2399,7 @@ var COMPONENT_TOKEN_FAMILIES = [
2341
2399
  bannerFamily,
2342
2400
  sidebarFamily,
2343
2401
  adminShellFamily,
2402
+ billingSliderFamily,
2344
2403
  tabsFamily,
2345
2404
  skeletonFamily,
2346
2405
  spinnerFamily,
@@ -2356,6 +2415,7 @@ var COMPONENT_TOKEN_FAMILIES = [
2356
2415
  textFamily,
2357
2416
  switchFamily,
2358
2417
  saveStatusFamily,
2418
+ proportionBarFamily,
2359
2419
  segmentedControlFamily,
2360
2420
  toggleGroupFamily,
2361
2421
  radioCardFamily,
@@ -2364,6 +2424,7 @@ var COMPONENT_TOKEN_FAMILIES = [
2364
2424
  inputAffixFamily,
2365
2425
  separatorFamily,
2366
2426
  alertFamily,
2427
+ layerChartFamily,
2367
2428
  adminUiFamily
2368
2429
  ];
2369
2430
  var COMPONENT_TOKEN_FAMILY_BY_NAME = new Map(
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FontResolveOptions, a as FontResolution, V as VisorTypography, b as FontDisplayStrategy, T as ThemeFontResult, G as GoogleFontEntry, c as VisorBrand, B as BrandSlot, d as BrandSource, e as BrandResolution, C as ColorScheme, f as ThemeBrandResult, g as BrandStrategy, h as BrandStrategyContext, i as BrandStrategyIssue, j as BrandStrategyValidationResult, S as SerializedBrandStrategy, R as ResolvedThemeConfig, k as GeneratedPrimitives, l as ThemeOutput, m as ThemeData, n as VisorThemeConfig, o as FullShadeScale, p as ColorRole, q as SelectiveShadeScale, r as RGB, P as ParsedColor, O as OKLCH, s as SemanticTokens, t as ShadeStep } from './types-BzMsNXmX.js';
2
- export { u as BRAND_VARIANTS, v as BRAND_VISIBILITIES, w as BrandAccessibility, x as BrandArchetype, y as BrandBoilerplate, z as BrandColorPairing, A as BrandColorUsage, D as BrandContrastTarget, E as BrandGoverns, H as BrandLexiconEntry, I as BrandMessaging, J as BrandPersonalityTrait, K as BrandPillar, L as BrandPositioning, M as BrandStrategyIssueSeverity, N as BrandToneEntry, Q as BrandVariant, U as BrandVisibility, W as BrandVoice, X as BrandVoiceTrait, Y as COMPONENT_TOKEN_FAMILIES, Z as COMPONENT_TOKEN_FAMILY_BY_NAME, _ as ColorFormat, $ as ComponentTokenBinding, a0 as ComponentTokenBindings, a1 as ComponentTokenConsumer, a2 as ComponentTokenFamily, a3 as ComponentTokenSpec, a4 as DEFAULT_BRAND_STRATEGY_SURFACES, a5 as DEFAULT_BRAND_STRATEGY_TONE_STATES, a6 as FontSource, a7 as GOVERNS_WILDCARD, a8 as RGBA, a9 as ResolvedComponentTokens, aa as SemanticTokenValue, ab as allComponentTokenNames, ac as componentTokenName, ad as hasComponentBindings, ae as resolveComponentBindings, af as validateComponentBindings } from './types-BzMsNXmX.js';
1
+ import { F as FontResolveOptions, a as FontResolution, V as VisorTypography, b as FontDisplayStrategy, T as ThemeFontResult, G as GoogleFontEntry, c as VisorBrand, B as BrandSlot, d as BrandSource, e as BrandResolution, C as ColorScheme, f as ThemeBrandResult, g as BrandStrategy, h as BrandStrategyContext, i as BrandStrategyIssue, j as BrandStrategyValidationResult, S as SerializedBrandStrategy, R as ResolvedThemeConfig, k as GeneratedPrimitives, l as ThemeOutput, m as ThemeData, n as VisorThemeConfig, o as FullShadeScale, p as ColorRole, q as SelectiveShadeScale, r as RGB, P as ParsedColor, O as OKLCH, s as SemanticTokens, t as ShadeStep } from './types-Cz2u5kQs.js';
2
+ export { u as BRAND_VARIANTS, v as BRAND_VISIBILITIES, w as BrandAccessibility, x as BrandArchetype, y as BrandBoilerplate, z as BrandColorPairing, A as BrandColorUsage, D as BrandContrastTarget, E as BrandGoverns, H as BrandLexiconEntry, I as BrandMessaging, J as BrandPersonalityTrait, K as BrandPillar, L as BrandPositioning, M as BrandStrategyIssueSeverity, N as BrandToneEntry, Q as BrandVariant, U as BrandVisibility, W as BrandVoice, X as BrandVoiceTrait, Y as COMPONENT_TOKEN_FAMILIES, Z as COMPONENT_TOKEN_FAMILY_BY_NAME, _ as ColorFormat, $ as ComponentTokenBinding, a0 as ComponentTokenBindings, a1 as ComponentTokenConsumer, a2 as ComponentTokenFamily, a3 as ComponentTokenSpec, a4 as DEFAULT_BRAND_STRATEGY_SURFACES, a5 as DEFAULT_BRAND_STRATEGY_TONE_STATES, a6 as FontSource, a7 as GOVERNS_WILDCARD, a8 as RGBA, a9 as ResolvedComponentTokens, aa as SemanticTokenValue, ab as allComponentTokenNames, ac as componentTokenName, ad as hasComponentBindings, ae as resolveComponentBindings, af as validateComponentBindings } from './types-Cz2u5kQs.js';
3
3
 
4
4
  /**
5
5
  * Font resolver — maps font family names to loadable font resources.
@@ -1149,7 +1149,7 @@ var properties = {
1149
1149
  },
1150
1150
  banner: {
1151
1151
  type: "object",
1152
- description: "Full-width notice bar. The retro found six separate banner systems across ~180 instances in one app; binding this family collapses them to one. Keys: padding, gap, font-size, radius, border-width, shadow, title-font-weight, description-font-size, info-bg, info-text-color, info-border-color, warning-bg, warning-text-color, warning-border-color, error-bg, error-text-color, error-border-color, success-bg, success-text-color, success-border-color.",
1152
+ description: "Full-width notice bar. The retro found six separate banner systems across ~180 instances in one app; binding this family collapses them to one. Keys: padding, gap, font-size, radius, border-width, shadow, title-font-weight, description-font-size, info-bg, info-text-color, info-border-color, info-description-color, warning-bg, warning-text-color, warning-border-color, warning-description-color, error-bg, error-text-color, error-border-color, error-description-color, success-bg, success-text-color, success-border-color, success-description-color, neutral-bg, neutral-text-color, neutral-description-color.",
1153
1153
  additionalProperties: {
1154
1154
  $ref: "#/$defs/componentTokenBinding"
1155
1155
  }
@@ -1163,7 +1163,14 @@ var properties = {
1163
1163
  },
1164
1164
  "admin-shell": {
1165
1165
  type: "object",
1166
- description: "AdminShell block chrome. Every rule the shell draws is a token, so a theme that separates surfaces by tone (Paper) sets them to `none` and gets a borderless shell. Keys: sidebar-border, sidebar-header-border, sidebar-footer-border, topbar-bg, topbar-border.",
1166
+ description: "AdminShell block chrome. Every rule the shell draws is a token, so a theme that separates surfaces by tone (Paper) sets them to `none` and gets a borderless shell. Keys: sidebar-border, sidebar-header-border, sidebar-footer-border, topbar-bg, topbar-border, rail-width, rail-duration, rail-easing.",
1167
+ additionalProperties: {
1168
+ $ref: "#/$defs/componentTokenBinding"
1169
+ }
1170
+ },
1171
+ "billing-slider": {
1172
+ type: "object",
1173
+ description: "BillingSlider — the empty track, the thumb's pill and grip lines, and the striped money-at-stake gap between the thumb and the evidence tick. Keys: track-bg, thumb-bg, thumb-grip, gap-color.",
1167
1174
  additionalProperties: {
1168
1175
  $ref: "#/$defs/componentTokenBinding"
1169
1176
  }
@@ -1203,6 +1210,13 @@ var properties = {
1203
1210
  $ref: "#/$defs/componentTokenBinding"
1204
1211
  }
1205
1212
  },
1213
+ "layer-chart": {
1214
+ type: "object",
1215
+ description: "LayerChart and SpanStrip — the investment hue (`hue=\"tide\"`), the unresolved fill and its ink, the opening motion, and the ground between blocks. Keys: investment-fill, investment-fill-strong, investment-ink, investment-solid, alert-fill, alert-text, duration, easing, ground.",
1216
+ additionalProperties: {
1217
+ $ref: "#/$defs/componentTokenBinding"
1218
+ }
1219
+ },
1206
1220
  textarea: {
1207
1221
  type: "object",
1208
1222
  description: "Textarea shape at the default `md` size. Keys: padding, radius.",
@@ -1280,6 +1294,13 @@ var properties = {
1280
1294
  $ref: "#/$defs/componentTokenBinding"
1281
1295
  }
1282
1296
  },
1297
+ "proportion-bar": {
1298
+ type: "object",
1299
+ description: "ProportionBar — the default part fills by position, the built-in hatched, striped and alert fills, the alert's legend text and the empty track. Keys: fill-1, fill-2, fill-3, fill-4, hatch-color, hatch-gap, stripe-a, stripe-b, alert-bg, alert-text, track-bg.",
1300
+ additionalProperties: {
1301
+ $ref: "#/$defs/componentTokenBinding"
1302
+ }
1303
+ },
1283
1304
  "segmented-control": {
1284
1305
  type: "object",
1285
1306
  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.",
package/dist/index.js CHANGED
@@ -68,7 +68,7 @@ import {
68
68
  rgbToOklch,
69
69
  serializeColor,
70
70
  validateComponentBindings
71
- } from "./chunk-WK6TF5EZ.js";
71
+ } from "./chunk-4NNPEFHG.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;
@@ -1170,7 +1170,7 @@ var visor_theme_schema_default = {
1170
1170
  },
1171
1171
  banner: {
1172
1172
  type: "object",
1173
- description: "Full-width notice bar. The retro found six separate banner systems across ~180 instances in one app; binding this family collapses them to one. Keys: padding, gap, font-size, radius, border-width, shadow, title-font-weight, description-font-size, info-bg, info-text-color, info-border-color, warning-bg, warning-text-color, warning-border-color, error-bg, error-text-color, error-border-color, success-bg, success-text-color, success-border-color.",
1173
+ description: "Full-width notice bar. The retro found six separate banner systems across ~180 instances in one app; binding this family collapses them to one. Keys: padding, gap, font-size, radius, border-width, shadow, title-font-weight, description-font-size, info-bg, info-text-color, info-border-color, info-description-color, warning-bg, warning-text-color, warning-border-color, warning-description-color, error-bg, error-text-color, error-border-color, error-description-color, success-bg, success-text-color, success-border-color, success-description-color, neutral-bg, neutral-text-color, neutral-description-color.",
1174
1174
  additionalProperties: {
1175
1175
  $ref: "#/$defs/componentTokenBinding"
1176
1176
  }
@@ -1184,7 +1184,14 @@ var visor_theme_schema_default = {
1184
1184
  },
1185
1185
  "admin-shell": {
1186
1186
  type: "object",
1187
- description: "AdminShell block chrome. Every rule the shell draws is a token, so a theme that separates surfaces by tone (Paper) sets them to `none` and gets a borderless shell. Keys: sidebar-border, sidebar-header-border, sidebar-footer-border, topbar-bg, topbar-border.",
1187
+ description: "AdminShell block chrome. Every rule the shell draws is a token, so a theme that separates surfaces by tone (Paper) sets them to `none` and gets a borderless shell. Keys: sidebar-border, sidebar-header-border, sidebar-footer-border, topbar-bg, topbar-border, rail-width, rail-duration, rail-easing.",
1188
+ additionalProperties: {
1189
+ $ref: "#/$defs/componentTokenBinding"
1190
+ }
1191
+ },
1192
+ "billing-slider": {
1193
+ type: "object",
1194
+ description: "BillingSlider \u2014 the empty track, the thumb's pill and grip lines, and the striped money-at-stake gap between the thumb and the evidence tick. Keys: track-bg, thumb-bg, thumb-grip, gap-color.",
1188
1195
  additionalProperties: {
1189
1196
  $ref: "#/$defs/componentTokenBinding"
1190
1197
  }
@@ -1224,6 +1231,13 @@ var visor_theme_schema_default = {
1224
1231
  $ref: "#/$defs/componentTokenBinding"
1225
1232
  }
1226
1233
  },
1234
+ "layer-chart": {
1235
+ type: "object",
1236
+ description: 'LayerChart and SpanStrip \u2014 the investment hue (`hue="tide"`), the unresolved fill and its ink, the opening motion, and the ground between blocks. Keys: investment-fill, investment-fill-strong, investment-ink, investment-solid, alert-fill, alert-text, duration, easing, ground.',
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.",
@@ -1301,6 +1315,13 @@ var visor_theme_schema_default = {
1301
1315
  $ref: "#/$defs/componentTokenBinding"
1302
1316
  }
1303
1317
  },
1318
+ "proportion-bar": {
1319
+ type: "object",
1320
+ description: "ProportionBar \u2014 the default part fills by position, the built-in hatched, striped and alert fills, the alert's legend text and the empty track. Keys: fill-1, fill-2, fill-3, fill-4, hatch-color, hatch-gap, stripe-a, stripe-b, alert-bg, alert-text, track-bg.",
1321
+ additionalProperties: {
1322
+ $ref: "#/$defs/componentTokenBinding"
1323
+ }
1324
+ },
1304
1325
  "segmented-control": {
1305
1326
  type: "object",
1306
1327
  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.",
@@ -553,13 +553,6 @@ interface ComponentTokenFamily {
553
553
  }
554
554
  /** Emitted custom-property name (without the leading `--`) for a family key. */
555
555
  declare function componentTokenName(family: ComponentTokenFamily, key: string): string;
556
- /**
557
- * The full contract, in the D2 priority order the retro measured.
558
- *
559
- * Adding a family here is the ONLY registration step: the schema validator, the
560
- * CSS emitter, the docs page test and the fallback-parity test all read this
561
- * array.
562
- */
563
556
  declare const COMPONENT_TOKEN_FAMILIES: readonly ComponentTokenFamily[];
564
557
  /** Family lookup by `.visor.yaml` key. */
565
558
  declare const COMPONENT_TOKEN_FAMILY_BY_NAME: ReadonlyMap<string, ComponentTokenFamily>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loworbitstudio/visor-theme-engine",
3
- "version": "0.35.0",
3
+ "version": "0.38.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",
@@ -549,7 +549,7 @@
549
549
  },
550
550
  "banner": {
551
551
  "type": "object",
552
- "description": "Full-width notice bar. The retro found six separate banner systems across ~180 instances in one app; binding this family collapses them to one. Keys: padding, gap, font-size, radius, border-width, shadow, title-font-weight, description-font-size, info-bg, info-text-color, info-border-color, warning-bg, warning-text-color, warning-border-color, error-bg, error-text-color, error-border-color, success-bg, success-text-color, success-border-color.",
552
+ "description": "Full-width notice bar. The retro found six separate banner systems across ~180 instances in one app; binding this family collapses them to one. Keys: padding, gap, font-size, radius, border-width, shadow, title-font-weight, description-font-size, info-bg, info-text-color, info-border-color, info-description-color, warning-bg, warning-text-color, warning-border-color, warning-description-color, error-bg, error-text-color, error-border-color, error-description-color, success-bg, success-text-color, success-border-color, success-description-color, neutral-bg, neutral-text-color, neutral-description-color.",
553
553
  "additionalProperties": {
554
554
  "$ref": "#/$defs/componentTokenBinding"
555
555
  }
@@ -563,7 +563,14 @@
563
563
  },
564
564
  "admin-shell": {
565
565
  "type": "object",
566
- "description": "AdminShell block chrome. Every rule the shell draws is a token, so a theme that separates surfaces by tone (Paper) sets them to `none` and gets a borderless shell. Keys: sidebar-border, sidebar-header-border, sidebar-footer-border, topbar-bg, topbar-border.",
566
+ "description": "AdminShell block chrome. Every rule the shell draws is a token, so a theme that separates surfaces by tone (Paper) sets them to `none` and gets a borderless shell. Keys: sidebar-border, sidebar-header-border, sidebar-footer-border, topbar-bg, topbar-border, rail-width, rail-duration, rail-easing.",
567
+ "additionalProperties": {
568
+ "$ref": "#/$defs/componentTokenBinding"
569
+ }
570
+ },
571
+ "billing-slider": {
572
+ "type": "object",
573
+ "description": "BillingSlider — the empty track, the thumb's pill and grip lines, and the striped money-at-stake gap between the thumb and the evidence tick. Keys: track-bg, thumb-bg, thumb-grip, gap-color.",
567
574
  "additionalProperties": {
568
575
  "$ref": "#/$defs/componentTokenBinding"
569
576
  }
@@ -603,6 +610,13 @@
603
610
  "$ref": "#/$defs/componentTokenBinding"
604
611
  }
605
612
  },
613
+ "layer-chart": {
614
+ "type": "object",
615
+ "description": "LayerChart and SpanStrip \u2014 the investment hue (`hue=\"tide\"`), the unresolved fill and its ink, the opening motion, and the ground between blocks. Keys: investment-fill, investment-fill-strong, investment-ink, investment-solid, alert-fill, alert-text, duration, easing, ground.",
616
+ "additionalProperties": {
617
+ "$ref": "#/$defs/componentTokenBinding"
618
+ }
619
+ },
606
620
  "textarea": {
607
621
  "type": "object",
608
622
  "description": "Textarea shape at the default `md` size. Keys: padding, radius.",
@@ -680,6 +694,13 @@
680
694
  "$ref": "#/$defs/componentTokenBinding"
681
695
  }
682
696
  },
697
+ "proportion-bar": {
698
+ "type": "object",
699
+ "description": "ProportionBar \u2014 the default part fills by position, the built-in hatched, striped and alert fills, the alert's legend text and the empty track. Keys: fill-1, fill-2, fill-3, fill-4, hatch-color, hatch-gap, stripe-a, stripe-b, alert-bg, alert-text, track-bg.",
700
+ "additionalProperties": {
701
+ "$ref": "#/$defs/componentTokenBinding"
702
+ }
703
+ },
683
704
  "segmented-control": {
684
705
  "type": "object",
685
706
  "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.",