@loworbitstudio/visor-theme-engine 0.42.0 → 0.43.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.
package/dist/adapters/index.js
CHANGED
|
@@ -1742,7 +1742,7 @@ var skeletonFamily = {
|
|
|
1742
1742
|
var spinnerFamily = {
|
|
1743
1743
|
family: "spinner",
|
|
1744
1744
|
prefix: "spinner",
|
|
1745
|
-
description: "Inline loading ring \u2014 track, leading edge, per-size geometry and
|
|
1745
|
+
description: "Inline loading ring \u2014 track, leading edge, per-size geometry, cycle length, the delayed fade-in and the visible words.",
|
|
1746
1746
|
tokens: [
|
|
1747
1747
|
{ key: "track-color", property: "border-color", description: "Ring track colour.", consumers: at(SPINNER, "var(--border-default, #e5e7eb)") },
|
|
1748
1748
|
{ key: "edge-color", property: "border-top-color", description: "Leading-edge colour (default tone).", consumers: at(SPINNER, "var(--text-tertiary, #6b7280)") },
|
|
@@ -1754,7 +1754,12 @@ var spinnerFamily = {
|
|
|
1754
1754
|
{ key: "sm-size", property: "width / height", description: "Small ring diameter.", consumers: at(SPINNER, "16px") },
|
|
1755
1755
|
{ key: "sm-border-width", property: "border-width", description: "Small ring stroke.", consumers: at(SPINNER, "var(--stroke-width-regular, 1.5px)") },
|
|
1756
1756
|
{ key: "md-size", property: "width / height", description: "Default ring diameter.", consumers: at(SPINNER, "24px") },
|
|
1757
|
-
{ key: "md-border-width", property: "border-width", description: "Default ring stroke.", consumers: at(SPINNER, "var(--stroke-width-medium, 2px)") }
|
|
1757
|
+
{ key: "md-border-width", property: "border-width", description: "Default ring stroke.", consumers: at(SPINNER, "var(--stroke-width-medium, 2px)") },
|
|
1758
|
+
{ key: "appear-duration", property: "animation-duration", description: "Fade-in length once a `delay` passes.", consumers: at(SPINNER, "var(--motion-duration-500, 500ms)") },
|
|
1759
|
+
{ key: "label-gap", property: "gap", description: "Space between the spinner and its visible words (`showLabel`).", consumers: at(SPINNER, "var(--spacing-2, 0.5rem)") },
|
|
1760
|
+
{ key: "label-font-size", property: "font-size", description: "Visible words size (`showLabel`).", consumers: at(SPINNER, "var(--font-size-sm, 0.875rem)") },
|
|
1761
|
+
{ key: "label-font-weight", property: "font-weight", description: "Visible words weight (`showLabel`).", consumers: at(SPINNER, "var(--font-weight-medium, 500)") },
|
|
1762
|
+
{ key: "label-color", property: "color", description: "Visible words colour (`showLabel`).", consumers: at(SPINNER, "var(--text-secondary, #4b5563)") }
|
|
1758
1763
|
]
|
|
1759
1764
|
};
|
|
1760
1765
|
var checkboxFamily = {
|
|
@@ -2025,6 +2030,21 @@ var buttonFamily = {
|
|
|
2025
2030
|
{ key: "md-height", property: "height", description: "`md` height. Bind `auto` with `md-padding` to let the padding set the height.", consumers: at(BUTTON, "var(--label-box-height)") },
|
|
2026
2031
|
{ key: "md-padding", property: "padding", description: "`md` padding.", consumers: at(BUTTON, "0 var(--spacing-4, 1rem)") },
|
|
2027
2032
|
{ key: "dlg-padding", property: "padding", description: "`dlg` padding.", consumers: at(BUTTON, "var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem)") },
|
|
2033
|
+
// VI-807: the pill hooks. With `radius` / `icon-radius` at `999px` they draw
|
|
2034
|
+
// the Honcho kit's pill: a taller `lg`, a lifted default face, a grow on
|
|
2035
|
+
// hover and a press. Unbound, every one renders as before.
|
|
2036
|
+
{ key: "lg-height", property: "height", description: "`lg` height (`54px` for the kit's pill).", consumers: at(BUTTON, "var(--label-box-height)") },
|
|
2037
|
+
{ key: "lg-padding", property: "padding", description: "`lg` padding.", consumers: at(BUTTON, "0 var(--spacing-6, 1.5rem)") },
|
|
2038
|
+
{ key: "default-shadow", property: "box-shadow", description: "`default` variant drop shadow. Unbound, no shadow is declared.", consumers: at(BUTTON, "revert-layer") },
|
|
2039
|
+
{ 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
|
+
{ key: "outline-text", property: "color", description: "`outline` variant ink.", consumers: at(BUTTON, "var(--text-primary, #111827)") },
|
|
2041
|
+
{ key: "outline-bg-hover", property: "background-color", description: "`outline` variant fill on hover.", consumers: at(BUTTON, "var(--surface-muted, #f3f4f6)") },
|
|
2042
|
+
{ 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
|
+
{ 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
|
+
{ key: "press-transform", property: "transform", description: "Press nudge. Bind `none` when `press-scale` carries the press.", consumers: at(BUTTON, "translateY(1px)") },
|
|
2045
|
+
{ key: "press-duration", property: "transition-duration", description: "How fast the press lands. Unbound, it is instant.", consumers: at(BUTTON, "0s") },
|
|
2046
|
+
{ key: "motion-duration", property: "transition-duration", description: "Duration of the fill, ink, grow, shadow and arrow-swap transitions.", consumers: at(BUTTON, "var(--motion-duration-150, 150ms)") },
|
|
2047
|
+
{ key: "motion-easing", property: "transition-timing-function", description: "Curve of the fill, ink, grow, shadow and arrow-swap transitions.", consumers: at(BUTTON, "var(--motion-easing-default, ease-in-out)") },
|
|
2028
2048
|
{
|
|
2029
2049
|
key: "text-transform",
|
|
2030
2050
|
property: "text-transform",
|
|
@@ -2258,6 +2278,27 @@ var inputAffixFamily = {
|
|
|
2258
2278
|
}
|
|
2259
2279
|
]
|
|
2260
2280
|
};
|
|
2281
|
+
var numberInputFamily = {
|
|
2282
|
+
family: "number-input",
|
|
2283
|
+
prefix: "number-input",
|
|
2284
|
+
description: "NumberInput \u2014 the field fill (resting and focused), edge colour, corner radius, height, the value's width, size and weight, and the \u2212 and + buttons' size, inset, corners, ink, hover fill and icon size. Under `data-glass=\"on\"` the field reads the glass layer's control values instead.",
|
|
2285
|
+
tokens: [
|
|
2286
|
+
{ key: "bg", property: "background-color", description: "Field fill.", consumers: at(NUMBER_INPUT, "var(--surface-interactive-default, #f9fafb)") },
|
|
2287
|
+
{ key: "bg-focus", property: "background-color", description: "Field fill while the value has focus. Unset, the resting fill.", consumers: at(NUMBER_INPUT, "var(--number-input-bg, var(--surface-interactive-default, #f9fafb))") },
|
|
2288
|
+
{ key: "border", property: "outline-color", description: "Resting edge colour. Unset, the shared `control` edge colour.", consumers: at(NUMBER_INPUT, "var(--control-edge-color, var(--border-default, #e5e7eb))") },
|
|
2289
|
+
{ key: "radius", property: "border-radius", description: "Field corner radius.", consumers: at(NUMBER_INPUT, "var(--radius-md, 0.375rem)") },
|
|
2290
|
+
{ key: "height", property: "height", description: "Field and value height.", consumers: at(NUMBER_INPUT, "2.25rem") },
|
|
2291
|
+
{ key: "value-width", property: "width", description: "Width of the value between the buttons.", consumers: at(NUMBER_INPUT, "4rem") },
|
|
2292
|
+
{ key: "value-font-size", property: "font-size", description: "Value size.", consumers: at(NUMBER_INPUT, "var(--font-size-sm, 0.875rem)") },
|
|
2293
|
+
{ key: "value-font-weight", property: "font-weight", description: "Value weight.", consumers: at(NUMBER_INPUT, "inherit") },
|
|
2294
|
+
{ key: "button-size", property: "width / height", description: "\u2212 and + button size.", consumers: at(NUMBER_INPUT, "2.25rem") },
|
|
2295
|
+
{ key: "button-inset", property: "margin-inline", description: "Space either side of each button, so a round button sits centred in a wider end column.", consumers: at(NUMBER_INPUT, "0") },
|
|
2296
|
+
{ key: "button-radius", property: "border-radius", description: "Button corner radius (`50%` for round buttons).", consumers: at(NUMBER_INPUT, "0") },
|
|
2297
|
+
{ key: "button-color", property: "color", description: "Button icon ink.", consumers: at(NUMBER_INPUT, "var(--text-secondary, #9ca3af)") },
|
|
2298
|
+
{ key: "button-hover-bg", property: "background-color", description: "Button fill on hover.", consumers: at(NUMBER_INPUT, "var(--surface-muted, #f3f4f6)") },
|
|
2299
|
+
{ key: "icon-size", property: "width / height", description: "Button icon size.", consumers: at(NUMBER_INPUT, "0.875rem") }
|
|
2300
|
+
]
|
|
2301
|
+
};
|
|
2261
2302
|
var separatorFamily = {
|
|
2262
2303
|
family: "separator",
|
|
2263
2304
|
prefix: "separator",
|
|
@@ -2586,6 +2627,7 @@ var COMPONENT_TOKEN_FAMILIES = [
|
|
|
2586
2627
|
tooltipFamily,
|
|
2587
2628
|
actionRowFamily,
|
|
2588
2629
|
inputAffixFamily,
|
|
2630
|
+
numberInputFamily,
|
|
2589
2631
|
separatorFamily,
|
|
2590
2632
|
alertFamily,
|
|
2591
2633
|
layerChartFamily,
|
package/dist/index.d.ts
CHANGED
|
@@ -1249,7 +1249,7 @@ var properties = {
|
|
|
1249
1249
|
},
|
|
1250
1250
|
spinner: {
|
|
1251
1251
|
type: "object",
|
|
1252
|
-
description: "Inline loading ring — track, leading edge, per-size geometry and
|
|
1252
|
+
description: "Inline loading ring — track, leading edge, per-size geometry, cycle length, the delayed fade-in and the visible words. Keys: track-color, edge-color, primary-edge-color, radius, duration, xs-size, xs-border-width, sm-size, sm-border-width, md-size, md-border-width, appear-duration, label-gap, label-font-size, label-font-weight, label-color.",
|
|
1253
1253
|
additionalProperties: {
|
|
1254
1254
|
$ref: "#/$defs/componentTokenBinding"
|
|
1255
1255
|
}
|
|
@@ -1333,7 +1333,7 @@ var properties = {
|
|
|
1333
1333
|
},
|
|
1334
1334
|
button: {
|
|
1335
1335
|
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, 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.",
|
|
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.",
|
|
1337
1337
|
additionalProperties: {
|
|
1338
1338
|
$ref: "#/$defs/componentTokenBinding"
|
|
1339
1339
|
}
|
|
@@ -1408,6 +1408,13 @@ var properties = {
|
|
|
1408
1408
|
$ref: "#/$defs/componentTokenBinding"
|
|
1409
1409
|
}
|
|
1410
1410
|
},
|
|
1411
|
+
"number-input": {
|
|
1412
|
+
type: "object",
|
|
1413
|
+
description: "NumberInput — the field fill (resting and focused), edge colour, corner radius, height, the value's width, size and weight, and the − and + buttons' size, inset, corners, ink, hover fill and icon size. Under `data-glass=\"on\"` the field reads the glass layer's control values instead. Keys: bg, bg-focus, border, radius, height, value-width, value-font-size, value-font-weight, button-size, button-inset, button-radius, button-color, button-hover-bg, icon-size.",
|
|
1414
|
+
additionalProperties: {
|
|
1415
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1411
1418
|
separator: {
|
|
1412
1419
|
type: "object",
|
|
1413
1420
|
description: "Separator rule colour, bare or either side of a label. Keys: color.",
|
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
rgbToOklch,
|
|
70
70
|
serializeColor,
|
|
71
71
|
validateComponentBindings
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-25CL4ADD.js";
|
|
73
73
|
|
|
74
74
|
// src/fonts/validate-coverage.ts
|
|
75
75
|
var FONT_VAR_RE = /--font-(heading|display|body|sans|mono)\s*:\s*([^;]+);/g;
|
|
@@ -1268,7 +1268,7 @@ var visor_theme_schema_default = {
|
|
|
1268
1268
|
},
|
|
1269
1269
|
spinner: {
|
|
1270
1270
|
type: "object",
|
|
1271
|
-
description: "Inline loading ring \u2014 track, leading edge, per-size geometry and
|
|
1271
|
+
description: "Inline loading ring \u2014 track, leading edge, per-size geometry, cycle length, the delayed fade-in and the visible words. Keys: track-color, edge-color, primary-edge-color, radius, duration, xs-size, xs-border-width, sm-size, sm-border-width, md-size, md-border-width, appear-duration, label-gap, label-font-size, label-font-weight, label-color.",
|
|
1272
1272
|
additionalProperties: {
|
|
1273
1273
|
$ref: "#/$defs/componentTokenBinding"
|
|
1274
1274
|
}
|
|
@@ -1352,7 +1352,7 @@ var visor_theme_schema_default = {
|
|
|
1352
1352
|
},
|
|
1353
1353
|
button: {
|
|
1354
1354
|
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, 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.",
|
|
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.",
|
|
1356
1356
|
additionalProperties: {
|
|
1357
1357
|
$ref: "#/$defs/componentTokenBinding"
|
|
1358
1358
|
}
|
|
@@ -1427,6 +1427,13 @@ var visor_theme_schema_default = {
|
|
|
1427
1427
|
$ref: "#/$defs/componentTokenBinding"
|
|
1428
1428
|
}
|
|
1429
1429
|
},
|
|
1430
|
+
"number-input": {
|
|
1431
|
+
type: "object",
|
|
1432
|
+
description: "NumberInput \u2014 the field fill (resting and focused), edge colour, corner radius, height, the value's width, size and weight, and the \u2212 and + buttons' size, inset, corners, ink, hover fill and icon size. Under `data-glass=\"on\"` the field reads the glass layer's control values instead. Keys: bg, bg-focus, border, radius, height, value-width, value-font-size, value-font-weight, button-size, button-inset, button-radius, button-color, button-hover-bg, icon-size.",
|
|
1433
|
+
additionalProperties: {
|
|
1434
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1435
|
+
}
|
|
1436
|
+
},
|
|
1430
1437
|
separator: {
|
|
1431
1438
|
type: "object",
|
|
1432
1439
|
description: "Separator rule colour, bare or either side of a label. Keys: color.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loworbitstudio/visor-theme-engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.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",
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
},
|
|
647
647
|
"spinner": {
|
|
648
648
|
"type": "object",
|
|
649
|
-
"description": "Inline loading ring — track, leading edge, per-size geometry and
|
|
649
|
+
"description": "Inline loading ring — track, leading edge, per-size geometry, cycle length, the delayed fade-in and the visible words. Keys: track-color, edge-color, primary-edge-color, radius, duration, xs-size, xs-border-width, sm-size, sm-border-width, md-size, md-border-width, appear-duration, label-gap, label-font-size, label-font-weight, label-color.",
|
|
650
650
|
"additionalProperties": {
|
|
651
651
|
"$ref": "#/$defs/componentTokenBinding"
|
|
652
652
|
}
|
|
@@ -730,7 +730,7 @@
|
|
|
730
730
|
},
|
|
731
731
|
"button": {
|
|
732
732
|
"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, 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.",
|
|
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.",
|
|
734
734
|
"additionalProperties": {
|
|
735
735
|
"$ref": "#/$defs/componentTokenBinding"
|
|
736
736
|
}
|
|
@@ -805,6 +805,13 @@
|
|
|
805
805
|
"$ref": "#/$defs/componentTokenBinding"
|
|
806
806
|
}
|
|
807
807
|
},
|
|
808
|
+
"number-input": {
|
|
809
|
+
"type": "object",
|
|
810
|
+
"description": "NumberInput \u2014 the field fill (resting and focused), edge colour, corner radius, height, the value's width, size and weight, and the \u2212 and + buttons' size, inset, corners, ink, hover fill and icon size. Under `data-glass=\"on\"` the field reads the glass layer's control values instead. Keys: bg, bg-focus, border, radius, height, value-width, value-font-size, value-font-weight, button-size, button-inset, button-radius, button-color, button-hover-bg, icon-size.",
|
|
811
|
+
"additionalProperties": {
|
|
812
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
808
815
|
"separator": {
|
|
809
816
|
"type": "object",
|
|
810
817
|
"description": "Separator rule colour, bare or either side of a label. Keys: color.",
|