@loworbitstudio/visor-theme-engine 0.39.0 → 0.40.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
|
@@ -1285,6 +1285,7 @@ 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";
|
|
1288
1289
|
function at(file, fallback) {
|
|
1289
1290
|
return [{ file, fallback }];
|
|
1290
1291
|
}
|
|
@@ -1654,6 +1655,21 @@ var resizableSplitFamily = {
|
|
|
1654
1655
|
{ 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
1656
|
]
|
|
1656
1657
|
};
|
|
1658
|
+
var dialogFamily = {
|
|
1659
|
+
family: "dialog",
|
|
1660
|
+
prefix: "dialog",
|
|
1661
|
+
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.",
|
|
1662
|
+
tokens: [
|
|
1663
|
+
{ 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" }] },
|
|
1664
|
+
{ 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)" }] },
|
|
1665
|
+
{ 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))" }] },
|
|
1666
|
+
{ 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)" }] },
|
|
1667
|
+
{ key: "shadow", property: "box-shadow", description: "Panel shadow.", consumers: [{ file: DIALOG, fallback: "var(--shadow-xl)" }, { file: DIALOG, fallback: "var(--shadow-lg)" }] },
|
|
1668
|
+
{ 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") },
|
|
1669
|
+
{ key: "overlay-bg", property: "background-color", description: "The page scrim's colour.", consumers: at(DIALOG, "var(--overlay-bg, rgba(0, 0, 0, 0.8))") },
|
|
1670
|
+
{ 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" }] }
|
|
1671
|
+
]
|
|
1672
|
+
};
|
|
1657
1673
|
var tabsFamily = {
|
|
1658
1674
|
family: "tabs",
|
|
1659
1675
|
prefix: "tabs",
|
|
@@ -2310,7 +2326,7 @@ var proportionBarFamily = {
|
|
|
2310
2326
|
var segmentedControlFamily = {
|
|
2311
2327
|
family: "segmented-control",
|
|
2312
2328
|
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.",
|
|
2329
|
+
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
2330
|
tokens: [
|
|
2315
2331
|
{ 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
2332
|
{
|
|
@@ -2323,6 +2339,72 @@ var segmentedControlFamily = {
|
|
|
2323
2339
|
{ file: SEGMENTED_CONTROL, fallback: "var(--radius-xl, 0.75rem)" }
|
|
2324
2340
|
]
|
|
2325
2341
|
},
|
|
2342
|
+
// VI-785: the segment box. Each size falls back to its ToggleGroup value.
|
|
2343
|
+
{
|
|
2344
|
+
key: "track-padding",
|
|
2345
|
+
property: "padding",
|
|
2346
|
+
description: "Inset between the well's edge and the segments. Unset, xs keeps 2px and sm, md and lg `--spacing-1`.",
|
|
2347
|
+
consumers: [
|
|
2348
|
+
{ file: SEGMENTED_CONTROL, fallback: "calc(var(--spacing-1, 0.25rem) / 2)" },
|
|
2349
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--spacing-1, 0.25rem)" },
|
|
2350
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--spacing-1, 0.25rem)" }
|
|
2351
|
+
]
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
key: "item-height",
|
|
2355
|
+
property: "height (via --label-box-height)",
|
|
2356
|
+
description: "Segment height, which the pill follows. Unset, xs 24px, sm 28px, md 36px, lg 44px.",
|
|
2357
|
+
consumers: [
|
|
2358
|
+
{ file: SEGMENTED_CONTROL, fallback: "1.5rem" },
|
|
2359
|
+
{ file: SEGMENTED_CONTROL, fallback: "1.75rem" },
|
|
2360
|
+
{ file: SEGMENTED_CONTROL, fallback: "2.25rem" },
|
|
2361
|
+
{ file: SEGMENTED_CONTROL, fallback: "2.75rem" }
|
|
2362
|
+
]
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
key: "item-padding-x",
|
|
2366
|
+
property: "padding-inline",
|
|
2367
|
+
description: "Segment sides. Unset, each size keeps its ToggleGroup padding (xs reads `toggle-group.xs-padding-x`).",
|
|
2368
|
+
consumers: [
|
|
2369
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-padding-x, var(--spacing-2, 0.5rem))" },
|
|
2370
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--spacing-2, 0.5rem)" },
|
|
2371
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--spacing-3, 0.75rem)" },
|
|
2372
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--spacing-4, 1rem)" }
|
|
2373
|
+
]
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
key: "font-size",
|
|
2377
|
+
property: "font-size",
|
|
2378
|
+
description: "Segment label size. Unset, each size keeps its ToggleGroup size (xs reads `toggle-group.xs-font-size`).",
|
|
2379
|
+
consumers: [
|
|
2380
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-font-size, var(--font-size-xs, 0.75rem))" },
|
|
2381
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--font-size-xs, 0.75rem)" },
|
|
2382
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--font-size-sm, 0.875rem)" },
|
|
2383
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--font-size-base, 1rem)" }
|
|
2384
|
+
]
|
|
2385
|
+
},
|
|
2386
|
+
{
|
|
2387
|
+
key: "item-radius",
|
|
2388
|
+
property: "border-radius",
|
|
2389
|
+
description: "Segment corners: the hover fill and the focus ring. Unset, each size keeps its ToggleGroup radius (xs reads `toggle-group.xs-item-radius`).",
|
|
2390
|
+
consumers: [
|
|
2391
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-item-radius, var(--radius-sm, 0.25rem))" },
|
|
2392
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
|
|
2393
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
|
|
2394
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--radius-lg, 0.5rem)" }
|
|
2395
|
+
]
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
key: "indicator-radius",
|
|
2399
|
+
property: "border-radius",
|
|
2400
|
+
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`).",
|
|
2401
|
+
consumers: [
|
|
2402
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-item-radius, var(--radius-sm, 0.25rem))" },
|
|
2403
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
|
|
2404
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
|
|
2405
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--radius-lg, 0.5rem)" }
|
|
2406
|
+
]
|
|
2407
|
+
},
|
|
2326
2408
|
{ 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
2409
|
{ key: "indicator-text", property: "color", description: "Active segment label ink, on the pill.", consumers: at(SEGMENTED_CONTROL, "var(--interactive-primary-text, #f9fafb)") },
|
|
2328
2410
|
{ 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 +2415,7 @@ var segmentedControlFamily = {
|
|
|
2333
2415
|
var toggleGroupFamily = {
|
|
2334
2416
|
family: "toggle-group",
|
|
2335
2417
|
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.",
|
|
2418
|
+
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
2419
|
tokens: [
|
|
2338
2420
|
{ 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
2421
|
{
|
|
@@ -2347,7 +2429,30 @@ var toggleGroupFamily = {
|
|
|
2347
2429
|
{ key: "xs-font-size", property: "font-size", description: "Compact (`xs`) label size.", consumers: at(TOGGLE_GROUP, "var(--font-size-xs, 0.75rem)") },
|
|
2348
2430
|
{ key: "xs-padding-x", property: "padding-inline", description: "Compact (`xs`) option sides.", consumers: at(TOGGLE_GROUP, "var(--spacing-2, 0.5rem)") },
|
|
2349
2431
|
{ 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)") }
|
|
2432
|
+
{ 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: "option-gap", property: "gap", description: "Option variant (VI-787): the space between rows.", consumers: at(TOGGLE_GROUP, "var(--spacing-2, 0.5rem)") },
|
|
2434
|
+
{ 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)") },
|
|
2435
|
+
{ key: "option-min-height", property: "min-height", description: "Option row height; a wrapped label grows past it.", consumers: at(TOGGLE_GROUP, "3.375rem") },
|
|
2436
|
+
{ 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)") },
|
|
2437
|
+
{ key: "option-radius", property: "border-radius", description: "Option row corner radius.", consumers: at(TOGGLE_GROUP, "var(--radius-lg, 0.5rem)") },
|
|
2438
|
+
{ 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)") },
|
|
2439
|
+
{ 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)") },
|
|
2440
|
+
{ 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)") },
|
|
2441
|
+
{ 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)") },
|
|
2442
|
+
{ key: "option-blur", property: "backdrop-filter", description: "Option row backdrop blur radius (a length, e.g. `24px`).", consumers: at(TOGGLE_GROUP, "24px") },
|
|
2443
|
+
{ key: "option-text", property: "color", description: "Option label ink.", consumers: at(TOGGLE_GROUP, "var(--text-primary, #111827)") },
|
|
2444
|
+
{ key: "option-font-size", property: "font-size", description: "Option label size.", consumers: at(TOGGLE_GROUP, "var(--font-size-base, 1rem)") },
|
|
2445
|
+
{ key: "option-font-weight", property: "font-weight", description: "Option label weight.", consumers: at(TOGGLE_GROUP, "var(--font-weight-medium, 500)") },
|
|
2446
|
+
{ key: "option-key-size", property: "width / height", description: "Letter key badge size.", consumers: at(TOGGLE_GROUP, "1.75rem") },
|
|
2447
|
+
{ key: "option-key-radius", property: "border-radius", description: "Letter key badge corner radius.", consumers: at(TOGGLE_GROUP, "var(--radius-md, 0.375rem)") },
|
|
2448
|
+
{ 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)") },
|
|
2449
|
+
{ key: "option-key-text", property: "color", description: "Letter key ink while not picked.", consumers: at(TOGGLE_GROUP, "var(--text-secondary, #4b5563)") },
|
|
2450
|
+
{ key: "option-key-font-size", property: "font-size", description: "Letter key size.", consumers: at(TOGGLE_GROUP, "var(--font-size-xs, 0.75rem)") },
|
|
2451
|
+
{ 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))") },
|
|
2452
|
+
{ 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)") },
|
|
2453
|
+
{ key: "option-check-size", property: "width / height", description: "Multiple-mode check box size.", consumers: at(TOGGLE_GROUP, "1.25rem") },
|
|
2454
|
+
{ key: "option-check-radius", property: "border-radius", description: "Check box corner radius.", consumers: at(TOGGLE_GROUP, "var(--radius-sm, 0.25rem)") },
|
|
2455
|
+
{ 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
2456
|
]
|
|
2352
2457
|
};
|
|
2353
2458
|
var radioCardFamily = {
|
|
@@ -2412,6 +2517,7 @@ var COMPONENT_TOKEN_FAMILIES = [
|
|
|
2412
2517
|
adminShellFamily,
|
|
2413
2518
|
billingSliderFamily,
|
|
2414
2519
|
resizableSplitFamily,
|
|
2520
|
+
dialogFamily,
|
|
2415
2521
|
tabsFamily,
|
|
2416
2522
|
skeletonFamily,
|
|
2417
2523
|
spinnerFamily,
|
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.",
|
|
@@ -1310,14 +1317,14 @@ var properties = {
|
|
|
1310
1317
|
},
|
|
1311
1318
|
"segmented-control": {
|
|
1312
1319
|
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.",
|
|
1320
|
+
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
1321
|
additionalProperties: {
|
|
1315
1322
|
$ref: "#/$defs/componentTokenBinding"
|
|
1316
1323
|
}
|
|
1317
1324
|
},
|
|
1318
1325
|
"toggle-group": {
|
|
1319
1326
|
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.",
|
|
1327
|
+
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
1328
|
additionalProperties: {
|
|
1322
1329
|
$ref: "#/$defs/componentTokenBinding"
|
|
1323
1330
|
}
|
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-FJAD536B.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.",
|
|
@@ -1331,14 +1338,14 @@ var visor_theme_schema_default = {
|
|
|
1331
1338
|
},
|
|
1332
1339
|
"segmented-control": {
|
|
1333
1340
|
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.",
|
|
1341
|
+
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
1342
|
additionalProperties: {
|
|
1336
1343
|
$ref: "#/$defs/componentTokenBinding"
|
|
1337
1344
|
}
|
|
1338
1345
|
},
|
|
1339
1346
|
"toggle-group": {
|
|
1340
1347
|
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.",
|
|
1348
|
+
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
1349
|
additionalProperties: {
|
|
1343
1350
|
$ref: "#/$defs/componentTokenBinding"
|
|
1344
1351
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loworbitstudio/visor-theme-engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.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.",
|
|
@@ -710,14 +717,14 @@
|
|
|
710
717
|
},
|
|
711
718
|
"segmented-control": {
|
|
712
719
|
"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.",
|
|
720
|
+
"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
721
|
"additionalProperties": {
|
|
715
722
|
"$ref": "#/$defs/componentTokenBinding"
|
|
716
723
|
}
|
|
717
724
|
},
|
|
718
725
|
"toggle-group": {
|
|
719
726
|
"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.",
|
|
727
|
+
"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
728
|
"additionalProperties": {
|
|
722
729
|
"$ref": "#/$defs/componentTokenBinding"
|
|
723
730
|
}
|