@loworbitstudio/visor-theme-engine 0.40.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.
package/dist/adapters/index.js
CHANGED
|
@@ -1286,6 +1286,7 @@ 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
1288
|
var DIALOG = "components/ui/dialog/dialog.module.css";
|
|
1289
|
+
var STAT_CARD = "components/ui/stat-card/stat-card.module.css";
|
|
1289
1290
|
function at(file, fallback) {
|
|
1290
1291
|
return [{ file, fallback }];
|
|
1291
1292
|
}
|
|
@@ -2503,6 +2504,32 @@ var layerChartFamily = {
|
|
|
2503
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)") }
|
|
2504
2505
|
]
|
|
2505
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
|
+
};
|
|
2506
2533
|
var COMPONENT_TOKEN_FAMILIES = [
|
|
2507
2534
|
tableFamily,
|
|
2508
2535
|
dataTableFamily,
|
|
@@ -2543,6 +2570,7 @@ var COMPONENT_TOKEN_FAMILIES = [
|
|
|
2543
2570
|
separatorFamily,
|
|
2544
2571
|
alertFamily,
|
|
2545
2572
|
layerChartFamily,
|
|
2573
|
+
statCardFamily,
|
|
2546
2574
|
adminUiFamily
|
|
2547
2575
|
];
|
|
2548
2576
|
var COMPONENT_TOKEN_FAMILY_BY_NAME = new Map(
|
package/dist/index.d.ts
CHANGED
|
@@ -1231,6 +1231,13 @@ var properties = {
|
|
|
1231
1231
|
$ref: "#/$defs/componentTokenBinding"
|
|
1232
1232
|
}
|
|
1233
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
|
+
},
|
|
1234
1241
|
textarea: {
|
|
1235
1242
|
type: "object",
|
|
1236
1243
|
description: "Textarea shape at the default `md` size. Keys: padding, radius.",
|
package/dist/index.js
CHANGED
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
rgbToOklch,
|
|
69
69
|
serializeColor,
|
|
70
70
|
validateComponentBindings
|
|
71
|
-
} from "./chunk-
|
|
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;
|
|
@@ -1252,6 +1252,13 @@ var visor_theme_schema_default = {
|
|
|
1252
1252
|
$ref: "#/$defs/componentTokenBinding"
|
|
1253
1253
|
}
|
|
1254
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
|
+
},
|
|
1255
1262
|
textarea: {
|
|
1256
1263
|
type: "object",
|
|
1257
1264
|
description: "Textarea shape at the default `md` size. Keys: padding, radius.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loworbitstudio/visor-theme-engine",
|
|
3
|
-
"version": "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",
|
|
@@ -631,6 +631,13 @@
|
|
|
631
631
|
"$ref": "#/$defs/componentTokenBinding"
|
|
632
632
|
}
|
|
633
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
|
+
},
|
|
634
641
|
"textarea": {
|
|
635
642
|
"type": "object",
|
|
636
643
|
"description": "Textarea shape at the default `md` size. Keys: padding, radius.",
|