@loworbitstudio/visor-theme-engine 0.29.0 → 0.31.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
|
@@ -1262,6 +1262,7 @@ var SPINNER = "components/ui/spinner/spinner.module.css";
|
|
|
1262
1262
|
var CHECKBOX = "components/ui/checkbox/checkbox.module.css";
|
|
1263
1263
|
var INPUT = "components/ui/input/input.module.css";
|
|
1264
1264
|
var SEPARATOR = "components/ui/separator/separator.module.css";
|
|
1265
|
+
var ALERT = "components/ui/alert/alert.module.css";
|
|
1265
1266
|
var NUMBER_INPUT = "components/ui/number-input/number-input.module.css";
|
|
1266
1267
|
var TEXTAREA = "components/ui/textarea/textarea.module.css";
|
|
1267
1268
|
var SELECT = "components/ui/select/select.module.css";
|
|
@@ -1274,6 +1275,7 @@ var TEXT = "components/ui/text/text.module.css";
|
|
|
1274
1275
|
var INLINE_EDIT = "components/ui/inline-edit/inline-edit.module.css";
|
|
1275
1276
|
var SAVE_STATUS = "components/ui/save-status/save-status.module.css";
|
|
1276
1277
|
var SEGMENTED_CONTROL = "components/ui/segmented-control/segmented-control.module.css";
|
|
1278
|
+
var TOGGLE_GROUP = "components/ui/toggle-group/toggle-group.module.css";
|
|
1277
1279
|
var TOOLTIP = "components/ui/tooltip/tooltip.module.css";
|
|
1278
1280
|
var ACTION_ROW = "components/ui/action-row/action-row.module.css";
|
|
1279
1281
|
var DIALOG_FIELD = "blocks/dialog-field/dialog-field.module.css";
|
|
@@ -2126,6 +2128,20 @@ var separatorFamily = {
|
|
|
2126
2128
|
}
|
|
2127
2129
|
]
|
|
2128
2130
|
};
|
|
2131
|
+
var alertFamily = {
|
|
2132
|
+
family: "alert",
|
|
2133
|
+
prefix: "alert",
|
|
2134
|
+
description: "Alert's soft appearance: the inline alert under a control or in a dialog \u2014 icon size, inset, gap, rounding and type.",
|
|
2135
|
+
tokens: [
|
|
2136
|
+
{ key: "icon-size", property: "width / height / min-height", description: "Soft icon size for the destructive, warning and success tones; the content is at least this tall.", consumers: at(ALERT, "2rem") },
|
|
2137
|
+
{ key: "icon-size-note", property: "width / height / min-height", description: "Soft icon size for the neutral note (`default` and `info`).", consumers: at(ALERT, "1.5rem") },
|
|
2138
|
+
{ key: "soft-padding", property: "padding", description: "Soft alert inset.", consumers: at(ALERT, "var(--spacing-3, 0.75rem) calc(var(--spacing-3, 0.75rem) + var(--spacing-1, 0.25rem) / 2)") },
|
|
2139
|
+
{ key: "gap", property: "gap", description: "Gap between the soft icon and its text.", consumers: at(ALERT, "var(--spacing-3, 0.75rem)") },
|
|
2140
|
+
{ key: "radius", property: "border-radius", description: "Soft alert corner rounding.", consumers: at(ALERT, "var(--radius-lg, 0.5rem)") },
|
|
2141
|
+
{ key: "font-size", property: "font-size", description: "Soft alert type size.", consumers: at(ALERT, "var(--font-size-sm, 0.875rem)") },
|
|
2142
|
+
{ key: "lead-font-weight", property: "font-weight", description: "Weight of the inline `AlertLead` sentence.", consumers: at(ALERT, "var(--font-weight-bold, 700)") }
|
|
2143
|
+
]
|
|
2144
|
+
};
|
|
2129
2145
|
var HAIRLINE_PX = [
|
|
2130
2146
|
"components/ui/bulk-action-bar/bulk-action-bar.module.css",
|
|
2131
2147
|
"components/ui/dialog/dialog.module.css",
|
|
@@ -2188,6 +2204,26 @@ var segmentedControlFamily = {
|
|
|
2188
2204
|
{ key: "active-weight", property: "font-weight", description: "Active segment label weight.", consumers: at(SEGMENTED_CONTROL, "var(--font-weight-medium, 500)") }
|
|
2189
2205
|
]
|
|
2190
2206
|
};
|
|
2207
|
+
var toggleGroupFamily = {
|
|
2208
|
+
family: "toggle-group",
|
|
2209
|
+
prefix: "toggle-group",
|
|
2210
|
+
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.",
|
|
2211
|
+
tokens: [
|
|
2212
|
+
{ 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") },
|
|
2213
|
+
{
|
|
2214
|
+
key: "selected-bg",
|
|
2215
|
+
property: "background-color",
|
|
2216
|
+
description: "The selected option's fill: the sliding indicator (outline, single) and the item itself (default, and outline multiple).",
|
|
2217
|
+
consumers: each([TOGGLE_GROUP, TOGGLE_GROUP, TOGGLE_GROUP], "var(--interactive-primary-bg, var(--primary, #111827))")
|
|
2218
|
+
},
|
|
2219
|
+
{ key: "selected-text", property: "color", description: "The selected option's label ink.", consumers: at(TOGGLE_GROUP, "var(--interactive-primary-text, #f9fafb)") },
|
|
2220
|
+
{ key: "unselected-text", property: "color", description: "Every option that is not selected.", consumers: at(TOGGLE_GROUP, "var(--text-primary, #111827)") },
|
|
2221
|
+
{ key: "xs-font-size", property: "font-size", description: "Compact (`xs`) label size.", consumers: at(TOGGLE_GROUP, "var(--font-size-xs, 0.75rem)") },
|
|
2222
|
+
{ key: "xs-padding-x", property: "padding-inline", description: "Compact (`xs`) option sides.", consumers: at(TOGGLE_GROUP, "var(--spacing-2, 0.5rem)") },
|
|
2223
|
+
{ key: "xs-track-radius", property: "border-radius", description: "Compact (`xs`) outline track corner radius.", consumers: at(TOGGLE_GROUP, "var(--radius-md, 0.375rem)") },
|
|
2224
|
+
{ 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)") }
|
|
2225
|
+
]
|
|
2226
|
+
};
|
|
2191
2227
|
var adminUiFamily = {
|
|
2192
2228
|
family: "admin-ui",
|
|
2193
2229
|
prefix: "admin-ui",
|
|
@@ -2228,10 +2264,12 @@ var COMPONENT_TOKEN_FAMILIES = [
|
|
|
2228
2264
|
switchFamily,
|
|
2229
2265
|
saveStatusFamily,
|
|
2230
2266
|
segmentedControlFamily,
|
|
2267
|
+
toggleGroupFamily,
|
|
2231
2268
|
tooltipFamily,
|
|
2232
2269
|
actionRowFamily,
|
|
2233
2270
|
inputAffixFamily,
|
|
2234
2271
|
separatorFamily,
|
|
2272
|
+
alertFamily,
|
|
2235
2273
|
adminUiFamily
|
|
2236
2274
|
];
|
|
2237
2275
|
var COMPONENT_TOKEN_FAMILY_BY_NAME = new Map(
|
package/dist/index.d.ts
CHANGED
|
@@ -1275,6 +1275,13 @@ var properties = {
|
|
|
1275
1275
|
$ref: "#/$defs/componentTokenBinding"
|
|
1276
1276
|
}
|
|
1277
1277
|
},
|
|
1278
|
+
"toggle-group": {
|
|
1279
|
+
type: "object",
|
|
1280
|
+
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.",
|
|
1281
|
+
additionalProperties: {
|
|
1282
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1278
1285
|
tooltip: {
|
|
1279
1286
|
type: "object",
|
|
1280
1287
|
description: "Tooltip ground and ink, so a dark theme can keep the label legible without retuning the shared inverse pair other components read. Keys: bg, text.",
|
|
@@ -1303,6 +1310,13 @@ var properties = {
|
|
|
1303
1310
|
$ref: "#/$defs/componentTokenBinding"
|
|
1304
1311
|
}
|
|
1305
1312
|
},
|
|
1313
|
+
alert: {
|
|
1314
|
+
type: "object",
|
|
1315
|
+
description: "Alert's soft appearance: the inline alert under a control or in a dialog — icon size, inset, gap, rounding and type. Keys: icon-size, icon-size-note, soft-padding, gap, radius, font-size, lead-font-weight.",
|
|
1316
|
+
additionalProperties: {
|
|
1317
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1306
1320
|
"admin-ui": {
|
|
1307
1321
|
type: "object",
|
|
1308
1322
|
description: "Structural roles the admin-ui pattern owns. `marquee-family` is the display face for KPI hero figures and marquee page titles — the role the admin-ui portability audit named as the one piece of ENTR brand coupling a new theme must rebind. Keys: marquee-family.",
|
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-NJLYCTHR.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;
|
|
@@ -1296,6 +1296,13 @@ var visor_theme_schema_default = {
|
|
|
1296
1296
|
$ref: "#/$defs/componentTokenBinding"
|
|
1297
1297
|
}
|
|
1298
1298
|
},
|
|
1299
|
+
"toggle-group": {
|
|
1300
|
+
type: "object",
|
|
1301
|
+
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.",
|
|
1302
|
+
additionalProperties: {
|
|
1303
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1304
|
+
}
|
|
1305
|
+
},
|
|
1299
1306
|
tooltip: {
|
|
1300
1307
|
type: "object",
|
|
1301
1308
|
description: "Tooltip ground and ink, so a dark theme can keep the label legible without retuning the shared inverse pair other components read. Keys: bg, text.",
|
|
@@ -1324,6 +1331,13 @@ var visor_theme_schema_default = {
|
|
|
1324
1331
|
$ref: "#/$defs/componentTokenBinding"
|
|
1325
1332
|
}
|
|
1326
1333
|
},
|
|
1334
|
+
alert: {
|
|
1335
|
+
type: "object",
|
|
1336
|
+
description: "Alert's soft appearance: the inline alert under a control or in a dialog \u2014 icon size, inset, gap, rounding and type. Keys: icon-size, icon-size-note, soft-padding, gap, radius, font-size, lead-font-weight.",
|
|
1337
|
+
additionalProperties: {
|
|
1338
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1327
1341
|
"admin-ui": {
|
|
1328
1342
|
type: "object",
|
|
1329
1343
|
description: "Structural roles the admin-ui pattern owns. `marquee-family` is the display face for KPI hero figures and marquee page titles \u2014 the role the admin-ui portability audit named as the one piece of ENTR brand coupling a new theme must rebind. Keys: marquee-family.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loworbitstudio/visor-theme-engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.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",
|
|
@@ -675,6 +675,13 @@
|
|
|
675
675
|
"$ref": "#/$defs/componentTokenBinding"
|
|
676
676
|
}
|
|
677
677
|
},
|
|
678
|
+
"toggle-group": {
|
|
679
|
+
"type": "object",
|
|
680
|
+
"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.",
|
|
681
|
+
"additionalProperties": {
|
|
682
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
683
|
+
}
|
|
684
|
+
},
|
|
678
685
|
"tooltip": {
|
|
679
686
|
"type": "object",
|
|
680
687
|
"description": "Tooltip ground and ink, so a dark theme can keep the label legible without retuning the shared inverse pair other components read. Keys: bg, text.",
|
|
@@ -703,6 +710,13 @@
|
|
|
703
710
|
"$ref": "#/$defs/componentTokenBinding"
|
|
704
711
|
}
|
|
705
712
|
},
|
|
713
|
+
"alert": {
|
|
714
|
+
"type": "object",
|
|
715
|
+
"description": "Alert's soft appearance: the inline alert under a control or in a dialog — icon size, inset, gap, rounding and type. Keys: icon-size, icon-size-note, soft-padding, gap, radius, font-size, lead-font-weight.",
|
|
716
|
+
"additionalProperties": {
|
|
717
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
718
|
+
}
|
|
719
|
+
},
|
|
706
720
|
"admin-ui": {
|
|
707
721
|
"type": "object",
|
|
708
722
|
"description": "Structural roles the admin-ui pattern owns. `marquee-family` is the display face for KPI hero figures and marquee page titles — the role the admin-ui portability audit named as the one piece of ENTR brand coupling a new theme must rebind. Keys: marquee-family.",
|