@loworbitstudio/visor-theme-engine 0.42.0 → 0.45.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 +7 -2
- package/dist/{chunk-C6RLV7WM.js → chunk-M3HY5JXM.js} +221 -19
- package/dist/index.d.ts +46 -4
- package/dist/index.js +47 -5
- package/package.json +1 -1
- package/src/visor-theme.schema.json +46 -4
package/dist/adapters/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
FULL_SHADE_STEPS,
|
|
5
5
|
MATERIAL_TEXT_SLOTS,
|
|
6
6
|
SELECTIVE_SHADE_STEPS,
|
|
7
|
+
SQUIRCLE_FALLBACK,
|
|
7
8
|
VISOR_CORE_DARK_SEMANTIC_ALIASES,
|
|
8
9
|
VISOR_CORE_SEMANTIC_ALIASES_DARK_HOST,
|
|
9
10
|
aliasFamily,
|
|
@@ -33,7 +34,7 @@ import {
|
|
|
33
34
|
resolveThemeBrand,
|
|
34
35
|
resolveThemeFonts,
|
|
35
36
|
sectionComment
|
|
36
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-M3HY5JXM.js";
|
|
37
38
|
|
|
38
39
|
// src/adapters/brand-passthrough.ts
|
|
39
40
|
var SENTINEL_COLOR = "#ff00ff";
|
|
@@ -237,6 +238,8 @@ function nextjsAdapter(input, options) {
|
|
|
237
238
|
baseLines.push("");
|
|
238
239
|
baseLines.push(sectionComment("Base: corner shape"));
|
|
239
240
|
baseLines.push(CORNER_SHAPE_BINDING);
|
|
241
|
+
baseLines.push("");
|
|
242
|
+
baseLines.push(SQUIRCLE_FALLBACK);
|
|
240
243
|
}
|
|
241
244
|
lines.push(wrapInLayer("visor-base", baseLines.join("\n").trim()));
|
|
242
245
|
lines.push("");
|
|
@@ -972,7 +975,9 @@ ${inner.split("\n").map((l) => ` ${l}`).join("\n")}
|
|
|
972
975
|
const brandLayer = wrapInLayer("visor-brand", brandLayerBody);
|
|
973
976
|
const head = fontLines.length > 0 ? fontLines.join("\n") + "\n" : "";
|
|
974
977
|
const baseLayer = input.config.corners === "squircle" ? wrapInLayer("visor-base", `${sectionComment2("Base: corner shape")}
|
|
975
|
-
${CORNER_SHAPE_BINDING}
|
|
978
|
+
${CORNER_SHAPE_BINDING}
|
|
979
|
+
|
|
980
|
+
${SQUIRCLE_FALLBACK}`) : "";
|
|
976
981
|
const layerBlocks = [baseLayer, semanticLayer, brandLayer, adaptiveLayer].filter(Boolean);
|
|
977
982
|
return head + LAYER_ORDER + "\n\n" + layerBlocks.join("\n\n") + "\n";
|
|
978
983
|
}
|
|
@@ -1249,6 +1249,8 @@ function componentTokenName(family, key) {
|
|
|
1249
1249
|
var TABLE = "components/ui/table/table.module.css";
|
|
1250
1250
|
var DATA_TABLE = "components/ui/data-table/data-table.module.css";
|
|
1251
1251
|
var CHIP = "components/ui/chip/chip.module.css";
|
|
1252
|
+
var STATUS_DOT = "components/ui/status-dot/status-dot.module.css";
|
|
1253
|
+
var OFFLINE_BANNER = "components/ui/offline-banner/offline-banner.module.css";
|
|
1252
1254
|
var BADGE = "components/ui/badge/badge.module.css";
|
|
1253
1255
|
var STATUS_BADGE = "components/ui/status-badge/status-badge.module.css";
|
|
1254
1256
|
var FILTER_BAR = "components/ui/filter-bar/filter-bar.module.css";
|
|
@@ -1279,6 +1281,7 @@ var LAYER_CHART = "components/ui/layer-chart/layer-chart.module.css";
|
|
|
1279
1281
|
var PROPORTION_BAR = "components/ui/proportion-bar/proportion-bar.module.css";
|
|
1280
1282
|
var TOGGLE_GROUP = "components/ui/toggle-group/toggle-group.module.css";
|
|
1281
1283
|
var RADIO_GROUP = "components/ui/radio-group/radio-group.module.css";
|
|
1284
|
+
var REACH_RINGS = "components/ui/reach-rings/reach-rings.module.css";
|
|
1282
1285
|
var TOOLTIP = "components/ui/tooltip/tooltip.module.css";
|
|
1283
1286
|
var ACTION_ROW = "components/ui/action-row/action-row.module.css";
|
|
1284
1287
|
var DIALOG_FIELD = "blocks/dialog-field/dialog-field.module.css";
|
|
@@ -1287,6 +1290,7 @@ var BILLING_SLIDER = "components/ui/billing-slider/billing-slider.module.css";
|
|
|
1287
1290
|
var RESIZABLE_SPLIT = "components/ui/resizable-split/resizable-split.module.css";
|
|
1288
1291
|
var DIALOG = "components/ui/dialog/dialog.module.css";
|
|
1289
1292
|
var STAT_CARD = "components/ui/stat-card/stat-card.module.css";
|
|
1293
|
+
var KEY_VALUE_LIST = "components/ui/key-value-list/key-value-list.module.css";
|
|
1290
1294
|
function at(file, fallback) {
|
|
1291
1295
|
return [{ file, fallback }];
|
|
1292
1296
|
}
|
|
@@ -1379,8 +1383,14 @@ var chipFamily = {
|
|
|
1379
1383
|
description: "Outlined-chip edge colour. Width and style come from the shared `control` edge, so `control.edge-width: 0` turns it off.",
|
|
1380
1384
|
consumers: at(CHIP, "var(--control-edge-color, var(--border-default, #e5e7eb))")
|
|
1381
1385
|
},
|
|
1382
|
-
|
|
1383
|
-
{
|
|
1386
|
+
// VI-801: the default variant reads these too, over the muted fill it drew before.
|
|
1387
|
+
{
|
|
1388
|
+
key: "bg",
|
|
1389
|
+
property: "background-color",
|
|
1390
|
+
description: "Resting chip fill, on the base chip and the default variant.",
|
|
1391
|
+
consumers: [...at(CHIP, "var(--surface-card, #ffffff)"), ...at(CHIP, "var(--surface-muted, #f3f4f6)")]
|
|
1392
|
+
},
|
|
1393
|
+
{ key: "text-color", property: "color", description: "Chip label colour.", consumers: each([CHIP, CHIP], "var(--text-primary, #111827)") },
|
|
1384
1394
|
{ key: "font-family", property: "font-family", description: "Chip label family \u2014 bind a mono face for token/ID chips.", consumers: at(CHIP, "var(--font-body, inherit)") },
|
|
1385
1395
|
{ key: "font-weight", property: "font-weight", description: "Chip label weight.", consumers: at(CHIP, "var(--font-weight-medium, 500)") },
|
|
1386
1396
|
{ key: "letter-spacing", property: "letter-spacing", description: "Chip label tracking.", consumers: at(CHIP, "inherit") },
|
|
@@ -1399,6 +1409,30 @@ var chipFamily = {
|
|
|
1399
1409
|
{ key: "selected-text-color", property: "color", description: "Selected chip label colour.", consumers: at(CHIP, "var(--text-link, #2563eb)") }
|
|
1400
1410
|
]
|
|
1401
1411
|
};
|
|
1412
|
+
var statusDotFamily = {
|
|
1413
|
+
family: "status-dot",
|
|
1414
|
+
prefix: "status-dot",
|
|
1415
|
+
description: "StatusDot size. A caller sets `--status-dot-color` on a dot for a colour outside its five tones.",
|
|
1416
|
+
tokens: [{ key: "size", property: "width / height", description: "Dot diameter.", consumers: at(STATUS_DOT, "6px") }]
|
|
1417
|
+
};
|
|
1418
|
+
var offlineBannerFamily = {
|
|
1419
|
+
family: "offline-banner",
|
|
1420
|
+
prefix: "offline-banner",
|
|
1421
|
+
description: "OfflineBanner's pill variant \u2014 height, padding, gap, type size, label and detail weight, detail opacity, icon size, fill, ink and edge. Under `data-glass=\"on\"` the pill reads the glass layer's control values instead.",
|
|
1422
|
+
tokens: [
|
|
1423
|
+
{ key: "pill-height", property: "height", description: "Pill height.", consumers: at(OFFLINE_BANNER, "2.5rem") },
|
|
1424
|
+
{ key: "pill-padding-x", property: "padding", description: "Pill horizontal padding.", consumers: at(OFFLINE_BANNER, "var(--spacing-4, 1rem)") },
|
|
1425
|
+
{ key: "pill-gap", property: "gap", description: "Space between the icon, label and detail.", consumers: at(OFFLINE_BANNER, "var(--spacing-2, 0.5rem)") },
|
|
1426
|
+
{ key: "pill-font-size", property: "font-size", description: "Pill type size.", consumers: at(OFFLINE_BANNER, "var(--font-size-sm, 0.875rem)") },
|
|
1427
|
+
{ key: "pill-font-weight", property: "font-weight", description: "Label weight.", consumers: at(OFFLINE_BANNER, "var(--font-weight-semibold, 600)") },
|
|
1428
|
+
{ key: "pill-detail-font-weight", property: "font-weight", description: "Detail weight.", consumers: at(OFFLINE_BANNER, "var(--font-weight-medium, 500)") },
|
|
1429
|
+
{ key: "pill-detail-opacity", property: "opacity", description: "Detail opacity, so it reads quieter than the label in any ink.", consumers: at(OFFLINE_BANNER, "var(--opacity-80, 0.8)") },
|
|
1430
|
+
{ key: "pill-icon-size", property: "width / height", description: "Icon size.", consumers: at(OFFLINE_BANNER, "1.125rem") },
|
|
1431
|
+
{ key: "pill-bg", property: "background-color", description: "Solid pill fill.", consumers: at(OFFLINE_BANNER, "var(--surface-muted, #f3f4f6)") },
|
|
1432
|
+
{ key: "pill-text-color", property: "color", description: "Pill ink: label, detail and icon.", consumers: at(OFFLINE_BANNER, "var(--text-primary, #111827)") },
|
|
1433
|
+
{ key: "pill-border", property: "box-shadow (inset edge)", description: "Solid pill edge colour.", consumers: at(OFFLINE_BANNER, "var(--border-default, #e5e7eb)") }
|
|
1434
|
+
]
|
|
1435
|
+
};
|
|
1402
1436
|
var badgeFamily = {
|
|
1403
1437
|
family: "badge",
|
|
1404
1438
|
prefix: "badge",
|
|
@@ -1700,7 +1734,7 @@ var tabsFamily = {
|
|
|
1700
1734
|
{ key: "list-color", property: "color", description: "Tab-rail base text colour.", consumers: at(TABS, "var(--text-secondary, #6b7280)") },
|
|
1701
1735
|
{ key: "list-bg", property: "background-color", description: "Segmented-variant rail fill.", consumers: at(TABS, "var(--surface-muted, #f3f4f6)") },
|
|
1702
1736
|
{ key: "line-border-bottom", property: "border-bottom", description: "Underlined-variant rail rule (width, style and colour). Unbound, the rail rule is painted at `--hairline-width`; binding this draws your border instead.", consumers: at(TABS, "1px solid transparent") },
|
|
1703
|
-
{ key: "trigger-radius", property: "border-radius", description: "Trigger corner rounding.", consumers: at(TABS, "var(--radius
|
|
1737
|
+
{ key: "trigger-radius", property: "border-radius", description: "Trigger corner rounding. Leave unset: derived from the rail (rail radius minus rail padding minus the 1px trigger inset), so the corners stay concentric (VI-837); the line variant falls back to `--radius-md`. Bound, an explicit override.", consumers: at(TABS, "var(--_inner-radius)") },
|
|
1704
1738
|
{ key: "trigger-padding", property: "padding", description: "Trigger inset.", consumers: at(TABS, "var(--spacing-1, 0.25rem) var(--spacing-2, 0.5rem)") },
|
|
1705
1739
|
{ key: "trigger-font-size", property: "font-size", description: "Trigger type size.", consumers: at(TABS, "var(--font-size-sm, 0.875rem)") },
|
|
1706
1740
|
{ key: "trigger-font-weight", property: "font-weight", description: "Trigger weight.", consumers: at(TABS, "var(--font-weight-medium, 500)") },
|
|
@@ -1742,7 +1776,7 @@ var skeletonFamily = {
|
|
|
1742
1776
|
var spinnerFamily = {
|
|
1743
1777
|
family: "spinner",
|
|
1744
1778
|
prefix: "spinner",
|
|
1745
|
-
description: "Inline loading ring \u2014 track, leading edge, per-size geometry and
|
|
1779
|
+
description: "Inline loading ring \u2014 track, leading edge, per-size geometry, cycle length, the delayed fade-in and the visible words.",
|
|
1746
1780
|
tokens: [
|
|
1747
1781
|
{ key: "track-color", property: "border-color", description: "Ring track colour.", consumers: at(SPINNER, "var(--border-default, #e5e7eb)") },
|
|
1748
1782
|
{ key: "edge-color", property: "border-top-color", description: "Leading-edge colour (default tone).", consumers: at(SPINNER, "var(--text-tertiary, #6b7280)") },
|
|
@@ -1754,7 +1788,12 @@ var spinnerFamily = {
|
|
|
1754
1788
|
{ key: "sm-size", property: "width / height", description: "Small ring diameter.", consumers: at(SPINNER, "16px") },
|
|
1755
1789
|
{ key: "sm-border-width", property: "border-width", description: "Small ring stroke.", consumers: at(SPINNER, "var(--stroke-width-regular, 1.5px)") },
|
|
1756
1790
|
{ 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)") }
|
|
1791
|
+
{ key: "md-border-width", property: "border-width", description: "Default ring stroke.", consumers: at(SPINNER, "var(--stroke-width-medium, 2px)") },
|
|
1792
|
+
{ key: "appear-duration", property: "animation-duration", description: "Fade-in length once a `delay` passes.", consumers: at(SPINNER, "var(--motion-duration-500, 500ms)") },
|
|
1793
|
+
{ key: "label-gap", property: "gap", description: "Space between the spinner and its visible words (`showLabel`).", consumers: at(SPINNER, "var(--spacing-2, 0.5rem)") },
|
|
1794
|
+
{ key: "label-font-size", property: "font-size", description: "Visible words size (`showLabel`).", consumers: at(SPINNER, "var(--font-size-sm, 0.875rem)") },
|
|
1795
|
+
{ key: "label-font-weight", property: "font-weight", description: "Visible words weight (`showLabel`).", consumers: at(SPINNER, "var(--font-weight-medium, 500)") },
|
|
1796
|
+
{ key: "label-color", property: "color", description: "Visible words colour (`showLabel`).", consumers: at(SPINNER, "var(--text-secondary, #4b5563)") }
|
|
1758
1797
|
]
|
|
1759
1798
|
};
|
|
1760
1799
|
var checkboxFamily = {
|
|
@@ -2025,6 +2064,27 @@ var buttonFamily = {
|
|
|
2025
2064
|
{ 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
2065
|
{ key: "md-padding", property: "padding", description: "`md` padding.", consumers: at(BUTTON, "0 var(--spacing-4, 1rem)") },
|
|
2027
2066
|
{ key: "dlg-padding", property: "padding", description: "`dlg` padding.", consumers: at(BUTTON, "var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem)") },
|
|
2067
|
+
// VI-807: the pill hooks. With `radius` / `icon-radius` at `999px` they draw
|
|
2068
|
+
// the Honcho kit's pill: a taller `lg`, a lifted default face, a grow on
|
|
2069
|
+
// hover and a press. Unbound, every one renders as before.
|
|
2070
|
+
{ key: "lg-height", property: "height", description: "`lg` height (`54px` for the kit's pill).", consumers: at(BUTTON, "var(--label-box-height)") },
|
|
2071
|
+
{ key: "lg-padding", property: "padding", description: "`lg` padding.", consumers: at(BUTTON, "0 var(--spacing-6, 1.5rem)") },
|
|
2072
|
+
{ key: "default-shadow", property: "box-shadow", description: "`default` variant drop shadow. Unbound, no shadow is declared.", consumers: at(BUTTON, "revert-layer") },
|
|
2073
|
+
{ 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)") },
|
|
2074
|
+
{ key: "outline-text", property: "color", description: "`outline` variant ink.", consumers: at(BUTTON, "var(--text-primary, #111827)") },
|
|
2075
|
+
{ key: "outline-bg-hover", property: "background-color", description: "`outline` variant fill on hover.", consumers: at(BUTTON, "var(--surface-muted, #f3f4f6)") },
|
|
2076
|
+
// VI-824: the kit's outline squircle button ('Not Now'): 0 26px, 520, a 24% ink ring.
|
|
2077
|
+
{ key: "outline-bg", property: "background-color", description: "`outline` variant fill at rest. Unbound, it is transparent.", consumers: at(BUTTON, "transparent") },
|
|
2078
|
+
{ key: "outline-padding", property: "padding", description: "`outline` variant padding on every labelled size, over the size's own padding (`0 26px` for the kit). Unbound, each size keeps its padding.", consumers: at(BUTTON, null) },
|
|
2079
|
+
{ key: "outline-font-weight", property: "font-weight", description: "`outline` variant weight on every size, over the size and family weights (`520` for the kit). Unbound, each size keeps its weight.", consumers: at(BUTTON, null) },
|
|
2080
|
+
{ key: "outline-ring-color", property: "outline-color", description: "`outline` variant ring colour, apart from the shared `--control-edge-color`.", consumers: at(BUTTON, "var(--control-edge-color, var(--border-strong, #e5e7eb))") },
|
|
2081
|
+
{ key: "outline-backdrop-filter", property: "backdrop-filter", description: "`outline` variant backdrop filter, so it can frost over a photo like the glass icon button. Unbound, none.", consumers: at(BUTTON, "none") },
|
|
2082
|
+
{ 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") },
|
|
2083
|
+
{ 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") },
|
|
2084
|
+
{ key: "press-transform", property: "transform", description: "Press nudge. Bind `none` when `press-scale` carries the press.", consumers: at(BUTTON, "translateY(1px)") },
|
|
2085
|
+
{ key: "press-duration", property: "transition-duration", description: "How fast the press lands. Unbound, it is instant.", consumers: at(BUTTON, "0s") },
|
|
2086
|
+
{ 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)") },
|
|
2087
|
+
{ 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
2088
|
{
|
|
2029
2089
|
key: "text-transform",
|
|
2030
2090
|
property: "text-transform",
|
|
@@ -2123,11 +2183,20 @@ var TEXT_SIZES = [
|
|
|
2123
2183
|
var textFamily = {
|
|
2124
2184
|
family: "text",
|
|
2125
2185
|
prefix: "text",
|
|
2126
|
-
description: "Text type treatment, per size \u2014 set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. Every key begins with a size.",
|
|
2186
|
+
description: "Text type treatment, per size \u2014 set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. `eyebrow` also takes a weight, colour and gap. Every key begins with a size.",
|
|
2127
2187
|
tokens: TEXT_SIZES.flatMap(({ size, fontSize }) => [
|
|
2128
2188
|
{ key: `${size}-font-size`, property: "font-size", description: `\`${size}\` type size.`, consumers: at(TEXT, fontSize) },
|
|
2129
2189
|
{ key: `${size}-text-transform`, property: "text-transform", description: `\`${size}\` casing.`, consumers: at(TEXT, "revert-layer") },
|
|
2130
2190
|
{ key: `${size}-letter-spacing`, property: "letter-spacing", description: `\`${size}\` tracking.`, consumers: at(TEXT, "revert-layer") }
|
|
2191
|
+
]).concat([
|
|
2192
|
+
// VI-801: the eyebrow, an all-caps label above a section. It drops Text's default
|
|
2193
|
+
// weight and colour classes, so its own weight, colour and gap keys set them.
|
|
2194
|
+
{ key: "eyebrow-font-size", property: "font-size", description: "`eyebrow` type size.", consumers: at(TEXT, "var(--font-size-xs, 0.75rem)") },
|
|
2195
|
+
{ key: "eyebrow-text-transform", property: "text-transform", description: "`eyebrow` casing.", consumers: at(TEXT, "uppercase") },
|
|
2196
|
+
{ key: "eyebrow-letter-spacing", property: "letter-spacing", description: "`eyebrow` tracking.", consumers: at(TEXT, "var(--letter-spacing-wide, 0.05em)") },
|
|
2197
|
+
{ key: "eyebrow-font-weight", property: "font-weight", description: "`eyebrow` weight, unless the caller passes `weight`.", consumers: at(TEXT, "var(--font-weight-semibold, 600)") },
|
|
2198
|
+
{ key: "eyebrow-color", property: "color", description: "`eyebrow` colour, unless the caller passes `color`.", consumers: at(TEXT, "var(--text-secondary, #6b7280)") },
|
|
2199
|
+
{ key: "eyebrow-gap", property: "gap", description: "Space between an `eyebrow` and a leading dot or icon.", consumers: at(TEXT, "var(--spacing-2, 0.5rem)") }
|
|
2131
2200
|
])
|
|
2132
2201
|
};
|
|
2133
2202
|
var switchFamily = {
|
|
@@ -2258,6 +2327,27 @@ var inputAffixFamily = {
|
|
|
2258
2327
|
}
|
|
2259
2328
|
]
|
|
2260
2329
|
};
|
|
2330
|
+
var numberInputFamily = {
|
|
2331
|
+
family: "number-input",
|
|
2332
|
+
prefix: "number-input",
|
|
2333
|
+
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.",
|
|
2334
|
+
tokens: [
|
|
2335
|
+
{ key: "bg", property: "background-color", description: "Field fill.", consumers: at(NUMBER_INPUT, "var(--surface-interactive-default, #f9fafb)") },
|
|
2336
|
+
{ 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))") },
|
|
2337
|
+
{ 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))") },
|
|
2338
|
+
{ key: "radius", property: "border-radius", description: "Field corner radius.", consumers: at(NUMBER_INPUT, "var(--radius-md, 0.375rem)") },
|
|
2339
|
+
{ key: "height", property: "height", description: "Field and value height.", consumers: at(NUMBER_INPUT, "2.25rem") },
|
|
2340
|
+
{ key: "value-width", property: "width", description: "Width of the value between the buttons.", consumers: at(NUMBER_INPUT, "4rem") },
|
|
2341
|
+
{ key: "value-font-size", property: "font-size", description: "Value size.", consumers: at(NUMBER_INPUT, "var(--font-size-sm, 0.875rem)") },
|
|
2342
|
+
{ key: "value-font-weight", property: "font-weight", description: "Value weight.", consumers: at(NUMBER_INPUT, "inherit") },
|
|
2343
|
+
{ key: "button-size", property: "width / height", description: "\u2212 and + button size.", consumers: at(NUMBER_INPUT, "2.25rem") },
|
|
2344
|
+
{ 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") },
|
|
2345
|
+
{ key: "button-radius", property: "border-radius", description: "Button corner radius (`50%` for round buttons).", consumers: at(NUMBER_INPUT, "0") },
|
|
2346
|
+
{ key: "button-color", property: "color", description: "Button icon ink.", consumers: at(NUMBER_INPUT, "var(--text-secondary, #9ca3af)") },
|
|
2347
|
+
{ key: "button-hover-bg", property: "background-color", description: "Button fill on hover.", consumers: at(NUMBER_INPUT, "var(--surface-muted, #f3f4f6)") },
|
|
2348
|
+
{ key: "icon-size", property: "width / height", description: "Button icon size.", consumers: at(NUMBER_INPUT, "0.875rem") }
|
|
2349
|
+
]
|
|
2350
|
+
};
|
|
2261
2351
|
var separatorFamily = {
|
|
2262
2352
|
family: "separator",
|
|
2263
2353
|
prefix: "separator",
|
|
@@ -2345,9 +2435,9 @@ var proportionBarFamily = {
|
|
|
2345
2435
|
var segmentedControlFamily = {
|
|
2346
2436
|
family: "segmented-control",
|
|
2347
2437
|
prefix: "segmented-control",
|
|
2348
|
-
description:
|
|
2438
|
+
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. Under `data-glass="on"` the well blurs the photo and, unbound, takes the glass layer\'s control fill.',
|
|
2349
2439
|
tokens: [
|
|
2350
|
-
{ 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))") },
|
|
2440
|
+
{ 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; under glass, the glass layer's control fill.", consumers: at(SEGMENTED_CONTROL, "var(--glass-on-control-fill, color-mix(in srgb, var(--text-primary, #111827) 12%, var(--surface-page, #ffffff)))") },
|
|
2351
2441
|
{
|
|
2352
2442
|
key: "radius",
|
|
2353
2443
|
property: "border-radius",
|
|
@@ -2405,23 +2495,19 @@ var segmentedControlFamily = {
|
|
|
2405
2495
|
{
|
|
2406
2496
|
key: "item-radius",
|
|
2407
2497
|
property: "border-radius",
|
|
2408
|
-
description: "Segment corners: the hover fill and the focus ring.
|
|
2498
|
+
description: "Segment corners: the hover fill and the focus ring. Leave unset: derived from the track (track radius minus track padding minus its 1px border), so the corners stay concentric (VI-837). Bound, an explicit override (xs reads `toggle-group.xs-item-radius` first).",
|
|
2409
2499
|
consumers: [
|
|
2410
|
-
{ file: SEGMENTED_CONTROL, fallback: "var(--
|
|
2411
|
-
{ file: SEGMENTED_CONTROL, fallback: "var(--radius
|
|
2412
|
-
{ file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
|
|
2413
|
-
{ file: SEGMENTED_CONTROL, fallback: "var(--radius-lg, 0.5rem)" }
|
|
2500
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--_inner-radius)" },
|
|
2501
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-item-radius, var(--_inner-radius))" }
|
|
2414
2502
|
]
|
|
2415
2503
|
},
|
|
2416
2504
|
{
|
|
2417
2505
|
key: "indicator-radius",
|
|
2418
2506
|
property: "border-radius",
|
|
2419
|
-
description: "Sliding pill corners.
|
|
2507
|
+
description: "Sliding pill corners. Leave unset: derived from the track, so binding `radius: 999px` alone gives a fully round switch (VI-837). Bound, an explicit override (xs reads `toggle-group.xs-item-radius` first).",
|
|
2420
2508
|
consumers: [
|
|
2421
|
-
{ file: SEGMENTED_CONTROL, fallback: "var(--
|
|
2422
|
-
{ file: SEGMENTED_CONTROL, fallback: "var(--radius
|
|
2423
|
-
{ file: SEGMENTED_CONTROL, fallback: "var(--radius-md, 0.375rem)" },
|
|
2424
|
-
{ file: SEGMENTED_CONTROL, fallback: "var(--radius-lg, 0.5rem)" }
|
|
2509
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--_inner-radius)" },
|
|
2510
|
+
{ file: SEGMENTED_CONTROL, fallback: "var(--toggle-group-xs-item-radius, var(--_inner-radius))" }
|
|
2425
2511
|
]
|
|
2426
2512
|
},
|
|
2427
2513
|
{ 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))") },
|
|
@@ -2448,7 +2534,16 @@ var toggleGroupFamily = {
|
|
|
2448
2534
|
{ key: "xs-font-size", property: "font-size", description: "Compact (`xs`) label size.", consumers: at(TOGGLE_GROUP, "var(--font-size-xs, 0.75rem)") },
|
|
2449
2535
|
{ key: "xs-padding-x", property: "padding-inline", description: "Compact (`xs`) option sides.", consumers: at(TOGGLE_GROUP, "var(--spacing-2, 0.5rem)") },
|
|
2450
2536
|
{ key: "xs-track-radius", property: "border-radius", description: "Compact (`xs`) outline track corner radius.", consumers: at(TOGGLE_GROUP, "var(--radius-md, 0.375rem)") },
|
|
2451
|
-
{
|
|
2537
|
+
{
|
|
2538
|
+
key: "xs-item-radius",
|
|
2539
|
+
property: "border-radius",
|
|
2540
|
+
description: "Compact (`xs`) option and indicator corner radius. Leave unset: in the outline track it is derived from the track (track radius minus padding minus its 1px border), so the corners stay concentric (VI-837). Bound, an explicit override. The default variant has no track and falls back to `--radius-sm`.",
|
|
2541
|
+
consumers: [
|
|
2542
|
+
{ file: TOGGLE_GROUP, fallback: "var(--radius-sm, 0.25rem)" },
|
|
2543
|
+
{ file: TOGGLE_GROUP, fallback: "var(--_inner-radius)" },
|
|
2544
|
+
{ file: TOGGLE_GROUP, fallback: "var(--_inner-radius)" }
|
|
2545
|
+
]
|
|
2546
|
+
},
|
|
2452
2547
|
{ key: "option-gap", property: "gap", description: "Option variant (VI-787): the space between rows.", consumers: at(TOGGLE_GROUP, "var(--spacing-2, 0.5rem)") },
|
|
2453
2548
|
{ 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)") },
|
|
2454
2549
|
{ key: "option-min-height", property: "min-height", description: "Option row height; a wrapped label grows past it.", consumers: at(TOGGLE_GROUP, "3.375rem") },
|
|
@@ -2493,6 +2588,31 @@ var radioCardFamily = {
|
|
|
2493
2588
|
{ key: "dot", property: "background-color", description: "The dot inside the chosen card.", consumers: at(RADIO_GROUP, "var(--interactive-primary-bg, var(--primary, #111827))") }
|
|
2494
2589
|
]
|
|
2495
2590
|
};
|
|
2591
|
+
var radioStepFamily = {
|
|
2592
|
+
family: "radio-step",
|
|
2593
|
+
prefix: "radio-step",
|
|
2594
|
+
description: 'RadioGroup `variant="stepped"` \u2014 the key colour, the well and its radius, the resting ink, the icon size, and the chosen tile\'s fill and hairline.',
|
|
2595
|
+
tokens: [
|
|
2596
|
+
{ key: "key", property: "background-color", description: "The key colour: the chosen tile's fill tint, hairline and icon, and the focus ring.", consumers: at(RADIO_GROUP, "var(--interactive-primary-bg, var(--primary, #111827))") },
|
|
2597
|
+
{ key: "well", property: "background-color", description: "The well the tiles sit in. Default is the page nudged 12% toward the ink; a dark app binds it darker than its plane (Blacklight: `rgb(0 0 0 / 0.65)`).", consumers: at(RADIO_GROUP, "color-mix(in srgb, var(--text-primary, #111827) 12%, var(--surface-page, #ffffff))") },
|
|
2598
|
+
{ key: "well-radius", property: "border-radius", description: "Well corner radius. The tiles take it minus the well padding, so the corners stay concentric.", consumers: at(RADIO_GROUP, "var(--radius-xl, 0.75rem)") },
|
|
2599
|
+
{ key: "ink", property: "color", description: "Icon and label ink on a tile that is not chosen.", consumers: at(RADIO_GROUP, "var(--text-tertiary, #9ca3af)") },
|
|
2600
|
+
{ key: "icon-size", property: "font-size", description: "Tile icon size.", consumers: at(RADIO_GROUP, "1.25rem") },
|
|
2601
|
+
{ key: "selected-bg", property: "background-color", description: "Chosen tile fill. Default is 12% key over `--surface-elev-2`.", consumers: at(RADIO_GROUP, "color-mix(in srgb, var(--_key) 12%, var(--surface-elev-2, #f3f4f6))") },
|
|
2602
|
+
{ key: "selected-border", property: "box-shadow", description: "Chosen tile hairline. Default is 35% key.", consumers: at(RADIO_GROUP, "color-mix(in srgb, var(--_key) 35%, transparent)") }
|
|
2603
|
+
]
|
|
2604
|
+
};
|
|
2605
|
+
var reachRingsFamily = {
|
|
2606
|
+
family: "reach-rings",
|
|
2607
|
+
prefix: "reach-rings",
|
|
2608
|
+
description: "ReachRings \u2014 the key colour of lit rings and the core, the unlit ring stroke, and the core icon lit and unlit.",
|
|
2609
|
+
tokens: [
|
|
2610
|
+
{ key: "key", property: "background-color", description: "The key colour: a lit ring's stroke, halo and wash, and the filled core.", consumers: at(REACH_RINGS, "var(--interactive-primary-bg, var(--primary, #111827))") },
|
|
2611
|
+
{ key: "ring", property: "box-shadow", description: "An unlit ring's stroke.", consumers: at(REACH_RINGS, "color-mix(in srgb, var(--text-primary, #111827) 12%, transparent)") },
|
|
2612
|
+
{ key: "glyph", property: "color", description: "The core icon while the core is unlit.", consumers: at(REACH_RINGS, "color-mix(in srgb, var(--text-primary, #111827) 50%, transparent)") },
|
|
2613
|
+
{ key: "core-ink", property: "color", description: "The core icon on the lit core.", consumers: at(REACH_RINGS, "var(--interactive-primary-text, #f9fafb)") }
|
|
2614
|
+
]
|
|
2615
|
+
};
|
|
2496
2616
|
var adminUiFamily = {
|
|
2497
2617
|
family: "admin-ui",
|
|
2498
2618
|
prefix: "admin-ui",
|
|
@@ -2548,10 +2668,42 @@ var statCardFamily = {
|
|
|
2548
2668
|
{ key: "label-color", property: "color", description: "Label colour.", consumers: at(STAT_CARD, "var(--text-tertiary, #6b7280)") }
|
|
2549
2669
|
]
|
|
2550
2670
|
};
|
|
2671
|
+
var keyValueListFamily = {
|
|
2672
|
+
family: "key-value-list",
|
|
2673
|
+
prefix: "key-value-list",
|
|
2674
|
+
description: 'KeyValueList \u2014 label and value type and ink, the horizontal columns, item gap and alignment, row spacing, padding and divider, and the `surface="panel"` fill, edge colour, corners and inset. Under `data-glass="on"` the panel reads the glass layer instead.',
|
|
2675
|
+
tokens: [
|
|
2676
|
+
{ key: "label-font-size", property: "font-size", description: "Label type size.", consumers: at(KEY_VALUE_LIST, "var(--font-size-xs, 0.6875rem)") },
|
|
2677
|
+
{ key: "label-font-weight", property: "font-weight", description: "Label weight.", consumers: at(KEY_VALUE_LIST, "var(--font-weight-medium, 500)") },
|
|
2678
|
+
{ key: "label-line-height", property: "line-height", description: "Label line height.", consumers: at(KEY_VALUE_LIST, "1.4") },
|
|
2679
|
+
{ key: "label-letter-spacing", property: "letter-spacing", description: "Label tracking, stacked and horizontal.", consumers: [{ file: KEY_VALUE_LIST, fallback: "0.12em" }, { file: KEY_VALUE_LIST, fallback: "0.06em" }] },
|
|
2680
|
+
{ key: "label-text-transform", property: "text-transform", description: "Label case (`none` for sentence-case labels).", consumers: at(KEY_VALUE_LIST, "uppercase") },
|
|
2681
|
+
{ key: "label-color", property: "color", description: "Label ink.", consumers: at(KEY_VALUE_LIST, "var(--text-tertiary, #6b7280)") },
|
|
2682
|
+
{ key: "label-padding-top", property: "padding-top", description: "Nudge the label down against a larger value.", consumers: at(KEY_VALUE_LIST, "0") },
|
|
2683
|
+
{ key: "value-font-size", property: "font-size", description: "Value type size, in every density.", consumers: [{ file: KEY_VALUE_LIST, fallback: "var(--font-size-lg, 1.125rem)" }, { file: KEY_VALUE_LIST, fallback: "var(--font-size-base, 1rem)" }, { file: KEY_VALUE_LIST, fallback: "var(--font-size-sm, 0.8125rem)" }] },
|
|
2684
|
+
{ key: "value-font-weight", property: "font-weight", description: "Value weight.", consumers: at(KEY_VALUE_LIST, "inherit") },
|
|
2685
|
+
{ key: "value-line-height", property: "line-height", description: "Value line height.", consumers: at(KEY_VALUE_LIST, "inherit") },
|
|
2686
|
+
{ key: "value-color", property: "color", description: "Value ink.", consumers: at(KEY_VALUE_LIST, "var(--text-primary, #111827)") },
|
|
2687
|
+
{ key: "value-text-wrap", property: "text-wrap", description: "Value line breaking, e.g. `pretty`.", consumers: at(KEY_VALUE_LIST, "inherit") },
|
|
2688
|
+
{ key: "value-overflow-wrap", property: "overflow-wrap", description: "`anywhere` breaks a long name or email rather than widening the list.", consumers: at(KEY_VALUE_LIST, "inherit") },
|
|
2689
|
+
{ key: "value-font-variant-numeric", property: "font-variant-numeric", description: "Value figures (`normal` for proportional).", consumers: at(KEY_VALUE_LIST, "tabular-nums") },
|
|
2690
|
+
{ key: "columns", property: "grid-template-columns", description: "Horizontal label and value columns.", consumers: at(KEY_VALUE_LIST, "minmax(7rem, 0.4fr) 1fr") },
|
|
2691
|
+
{ key: "item-gap", property: "gap", description: "Horizontal gap between label and value.", consumers: at(KEY_VALUE_LIST, "var(--spacing-4, 1rem)") },
|
|
2692
|
+
{ key: "item-align", property: "align-items", description: "Horizontal label and value alignment.", consumers: at(KEY_VALUE_LIST, "baseline") },
|
|
2693
|
+
{ key: "item-padding", property: "padding", description: "Inset of each row.", consumers: at(KEY_VALUE_LIST, "0") },
|
|
2694
|
+
{ key: "row-gap", property: "row-gap", description: "Space between rows, in every density.", consumers: [{ file: KEY_VALUE_LIST, fallback: "var(--spacing-6, 1.5rem)" }, { file: KEY_VALUE_LIST, fallback: "var(--spacing-4, 1rem)" }, { file: KEY_VALUE_LIST, fallback: "var(--spacing-3, 0.75rem)" }] },
|
|
2695
|
+
{ key: "divider", property: "border-top", description: "Rule between rows of a one-column list, e.g. `1px solid var(--border-default)`.", consumers: at(KEY_VALUE_LIST, "0") },
|
|
2696
|
+
{ key: "panel-bg", property: "background", description: '`surface="panel"` fill off glass.', consumers: at(KEY_VALUE_LIST, "var(--surface-card, #ffffff)") },
|
|
2697
|
+
{ key: "panel-border-color", property: "border-color", description: '`surface="panel"` edge colour off glass.', consumers: at(KEY_VALUE_LIST, "var(--border-default, #e5e7eb)") },
|
|
2698
|
+
{ key: "panel-radius", property: "border-radius", description: '`surface="panel"` corner radius.', consumers: at(KEY_VALUE_LIST, "var(--radius-lg, 0.5rem)") },
|
|
2699
|
+
{ key: "panel-padding", property: "padding", description: '`surface="panel"` inset.', consumers: at(KEY_VALUE_LIST, "var(--spacing-2, 0.5rem) var(--spacing-6, 1.5rem)") }
|
|
2700
|
+
]
|
|
2701
|
+
};
|
|
2551
2702
|
var COMPONENT_TOKEN_FAMILIES = [
|
|
2552
2703
|
tableFamily,
|
|
2553
2704
|
dataTableFamily,
|
|
2554
2705
|
chipFamily,
|
|
2706
|
+
statusDotFamily,
|
|
2555
2707
|
badgeFamily,
|
|
2556
2708
|
statusBadgeFamily,
|
|
2557
2709
|
filterBarFamily,
|
|
@@ -2583,13 +2735,18 @@ var COMPONENT_TOKEN_FAMILIES = [
|
|
|
2583
2735
|
segmentedControlFamily,
|
|
2584
2736
|
toggleGroupFamily,
|
|
2585
2737
|
radioCardFamily,
|
|
2738
|
+
radioStepFamily,
|
|
2739
|
+
reachRingsFamily,
|
|
2586
2740
|
tooltipFamily,
|
|
2587
2741
|
actionRowFamily,
|
|
2588
2742
|
inputAffixFamily,
|
|
2743
|
+
numberInputFamily,
|
|
2744
|
+
offlineBannerFamily,
|
|
2589
2745
|
separatorFamily,
|
|
2590
2746
|
alertFamily,
|
|
2591
2747
|
layerChartFamily,
|
|
2592
2748
|
statCardFamily,
|
|
2749
|
+
keyValueListFamily,
|
|
2593
2750
|
adminUiFamily
|
|
2594
2751
|
];
|
|
2595
2752
|
var COMPONENT_TOKEN_FAMILY_BY_NAME = new Map(
|
|
@@ -3109,6 +3266,50 @@ function generateCornerShapeDecls(config) {
|
|
|
3109
3266
|
return config.corners === "squircle" ? ["--corner-shape: squircle;"] : [];
|
|
3110
3267
|
}
|
|
3111
3268
|
var CORNER_SHAPE_BINDING = "*, *::before, *::after {\n corner-shape: var(--corner-shape);\n}";
|
|
3269
|
+
var SQUIRCLE_FALLBACK = [
|
|
3270
|
+
'@property --squircle-r {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}',
|
|
3271
|
+
"",
|
|
3272
|
+
'@property --squircle-edge {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}',
|
|
3273
|
+
"",
|
|
3274
|
+
"@supports not (corner-shape: squircle) {",
|
|
3275
|
+
" @container style(--corner-shape: squircle) {",
|
|
3276
|
+
" *, *::before, *::after {",
|
|
3277
|
+
" --squircle-radius: calc(var(--squircle-r) * 0.54);",
|
|
3278
|
+
` --squircle-clip: ${squircleClip("var(--squircle-r)", "var(--squircle-radius)")};`,
|
|
3279
|
+
" --squircle-ring-paint: calc(var(--squircle-edge) + var(--squircle-r) * 0.2);",
|
|
3280
|
+
" --squircle-ring-radius: 0px;",
|
|
3281
|
+
" --squircle-edge-off: transparent;",
|
|
3282
|
+
` --squircle-ring: shape(evenodd ${squirclePath("var(--squircle-r)", "0px").replace(/^move to /, "from ")}, ${squirclePath("calc(var(--squircle-r) - var(--squircle-edge))", "var(--squircle-edge)")});`,
|
|
3283
|
+
" }",
|
|
3284
|
+
" }",
|
|
3285
|
+
"}"
|
|
3286
|
+
].join("\n");
|
|
3287
|
+
function squirclePath(r, i) {
|
|
3288
|
+
const h = `${r} * 0.082`;
|
|
3289
|
+
const lo = (v) => `calc(${i} + ${v})`;
|
|
3290
|
+
const hi = (v) => `calc(100% - ${i} - ${v})`;
|
|
3291
|
+
const top = i, left = i, right = `calc(100% - ${i})`, bottom = `calc(100% - ${i})`;
|
|
3292
|
+
return [
|
|
3293
|
+
`move to ${lo(r)} ${top}, hline to ${hi(r)}, curve to ${right} ${lo(r)} with ${hi(h)} ${top} / ${right} ${lo(h)}`,
|
|
3294
|
+
`vline to ${hi(r)}, curve to ${hi(r)} ${bottom} with ${right} ${hi(h)} / ${hi(h)} ${bottom}`,
|
|
3295
|
+
`hline to ${lo(r)}, curve to ${left} ${hi(r)} with ${lo(h)} ${bottom} / ${left} ${hi(h)}`,
|
|
3296
|
+
`vline to ${lo(r)}, curve to ${lo(r)} ${top} with ${left} ${lo(h)} / ${lo(h)} ${top}, close`
|
|
3297
|
+
].join(", ");
|
|
3298
|
+
}
|
|
3299
|
+
function squircleClip(r, c) {
|
|
3300
|
+
const g = "0.25px";
|
|
3301
|
+
const C = `calc(${c} + ${g})`;
|
|
3302
|
+
const o = `calc(-1 * ${g})`, O = `calc(100% + ${g})`;
|
|
3303
|
+
return [
|
|
3304
|
+
"shape(nonzero from -100vmax -100vmax",
|
|
3305
|
+
"hline to calc(100% + 100vmax), vline to calc(100% + 100vmax), hline to -100vmax, close",
|
|
3306
|
+
`move to ${c} ${o}, arc to ${o} ${c} of ${C} ccw`,
|
|
3307
|
+
`vline to calc(100% - ${c}), arc to ${c} ${O} of ${C} ccw`,
|
|
3308
|
+
`hline to calc(100% - ${c}), arc to ${O} calc(100% - ${c}) of ${C} ccw`,
|
|
3309
|
+
`vline to ${c}, arc to calc(100% - ${c}) ${o} of ${C} ccw, close`,
|
|
3310
|
+
`${squirclePath(r, "0px")})`
|
|
3311
|
+
].join(", ");
|
|
3312
|
+
}
|
|
3112
3313
|
var DEFAULT_EASING_OUT = "cubic-bezier(0, 0, 0.2, 1)";
|
|
3113
3314
|
function generateOptInMotionDurationDecls(config) {
|
|
3114
3315
|
return OPT_IN_MOTION_DURATION_KEYS.filter((key) => config.motion[key] !== void 0).map(
|
|
@@ -3682,6 +3883,7 @@ export {
|
|
|
3682
3883
|
block2 as block,
|
|
3683
3884
|
generateCornerShapeDecls,
|
|
3684
3885
|
CORNER_SHAPE_BINDING,
|
|
3886
|
+
SQUIRCLE_FALLBACK,
|
|
3685
3887
|
DEFAULT_EASING_OUT,
|
|
3686
3888
|
generateOptInMotionDurationDecls,
|
|
3687
3889
|
generateFontSizeDecls,
|
package/dist/index.d.ts
CHANGED
|
@@ -1156,6 +1156,13 @@ var properties = {
|
|
|
1156
1156
|
$ref: "#/$defs/componentTokenBinding"
|
|
1157
1157
|
}
|
|
1158
1158
|
},
|
|
1159
|
+
"status-dot": {
|
|
1160
|
+
type: "object",
|
|
1161
|
+
description: "StatusDot size. A caller sets `--status-dot-color` on a dot for a colour outside its five tones. Keys: size.",
|
|
1162
|
+
additionalProperties: {
|
|
1163
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1159
1166
|
"status-badge": {
|
|
1160
1167
|
type: "object",
|
|
1161
1168
|
description: "Status-badge indicator dot and the mono readout label. Chrome is inherited from the Badge family. Keys: dot-size, dot-radius, mono-font-family, mono-font-size, mono-letter-spacing.",
|
|
@@ -1249,7 +1256,7 @@ var properties = {
|
|
|
1249
1256
|
},
|
|
1250
1257
|
spinner: {
|
|
1251
1258
|
type: "object",
|
|
1252
|
-
description: "Inline loading ring — track, leading edge, per-size geometry and
|
|
1259
|
+
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
1260
|
additionalProperties: {
|
|
1254
1261
|
$ref: "#/$defs/componentTokenBinding"
|
|
1255
1262
|
}
|
|
@@ -1282,6 +1289,13 @@ var properties = {
|
|
|
1282
1289
|
$ref: "#/$defs/componentTokenBinding"
|
|
1283
1290
|
}
|
|
1284
1291
|
},
|
|
1292
|
+
"key-value-list": {
|
|
1293
|
+
type: "object",
|
|
1294
|
+
description: "KeyValueList — label and value type and ink, the horizontal columns, item gap and alignment, row spacing, padding and divider, and the `surface=\"panel\"` fill, edge colour, corners and inset. Under `data-glass=\"on\"` the panel reads the glass layer instead. Keys: label-font-size, label-font-weight, label-line-height, label-letter-spacing, label-text-transform, label-color, label-padding-top, value-font-size, value-font-weight, value-line-height, value-color, value-text-wrap, value-overflow-wrap, value-font-variant-numeric, columns, item-gap, item-align, item-padding, row-gap, divider, panel-bg, panel-border-color, panel-radius, panel-padding.",
|
|
1295
|
+
additionalProperties: {
|
|
1296
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1285
1299
|
textarea: {
|
|
1286
1300
|
type: "object",
|
|
1287
1301
|
description: "Textarea shape at the default `md` size. Keys: padding, radius.",
|
|
@@ -1333,14 +1347,14 @@ var properties = {
|
|
|
1333
1347
|
},
|
|
1334
1348
|
button: {
|
|
1335
1349
|
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.",
|
|
1350
|
+
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, outline-bg, outline-padding, outline-font-weight, outline-ring-color, outline-backdrop-filter, 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
1351
|
additionalProperties: {
|
|
1338
1352
|
$ref: "#/$defs/componentTokenBinding"
|
|
1339
1353
|
}
|
|
1340
1354
|
},
|
|
1341
1355
|
text: {
|
|
1342
1356
|
type: "object",
|
|
1343
|
-
description: "Text type treatment, per size — set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. Every key begins with a size. Keys: xs-font-size, xs-text-transform, xs-letter-spacing, sm-font-size, sm-text-transform, sm-letter-spacing, md-font-size, md-text-transform, md-letter-spacing, lg-font-size, lg-text-transform, lg-letter-spacing, xl-font-size, xl-text-transform, xl-letter-spacing.",
|
|
1357
|
+
description: "Text type treatment, per size — set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. `eyebrow` also takes a weight, colour and gap. Every key begins with a size. Keys: xs-font-size, xs-text-transform, xs-letter-spacing, sm-font-size, sm-text-transform, sm-letter-spacing, md-font-size, md-text-transform, md-letter-spacing, lg-font-size, lg-text-transform, lg-letter-spacing, xl-font-size, xl-text-transform, xl-letter-spacing, eyebrow-font-size, eyebrow-text-transform, eyebrow-letter-spacing, eyebrow-font-weight, eyebrow-color, eyebrow-gap.",
|
|
1344
1358
|
additionalProperties: {
|
|
1345
1359
|
$ref: "#/$defs/componentTokenBinding"
|
|
1346
1360
|
}
|
|
@@ -1368,7 +1382,7 @@ var properties = {
|
|
|
1368
1382
|
},
|
|
1369
1383
|
"segmented-control": {
|
|
1370
1384
|
type: "object",
|
|
1371
|
-
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.",
|
|
1385
|
+
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. Under `data-glass=\"on\"` the well blurs the photo and, unbound, takes the glass layer's control fill. 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.",
|
|
1372
1386
|
additionalProperties: {
|
|
1373
1387
|
$ref: "#/$defs/componentTokenBinding"
|
|
1374
1388
|
}
|
|
@@ -1387,6 +1401,20 @@ var properties = {
|
|
|
1387
1401
|
$ref: "#/$defs/componentTokenBinding"
|
|
1388
1402
|
}
|
|
1389
1403
|
},
|
|
1404
|
+
"radio-step": {
|
|
1405
|
+
type: "object",
|
|
1406
|
+
description: "RadioGroup `variant=\"stepped\"` — the key colour, the well and its radius, the resting ink, the icon size, and the chosen tile's fill and hairline. Keys: key, well, well-radius, ink, icon-size, selected-bg, selected-border.",
|
|
1407
|
+
additionalProperties: {
|
|
1408
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
"reach-rings": {
|
|
1412
|
+
type: "object",
|
|
1413
|
+
description: "ReachRings — the key colour of lit rings and the core, the unlit ring stroke, and the core icon lit and unlit. Keys: key, ring, glyph, core-ink.",
|
|
1414
|
+
additionalProperties: {
|
|
1415
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1390
1418
|
tooltip: {
|
|
1391
1419
|
type: "object",
|
|
1392
1420
|
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.",
|
|
@@ -1408,6 +1436,20 @@ var properties = {
|
|
|
1408
1436
|
$ref: "#/$defs/componentTokenBinding"
|
|
1409
1437
|
}
|
|
1410
1438
|
},
|
|
1439
|
+
"number-input": {
|
|
1440
|
+
type: "object",
|
|
1441
|
+
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.",
|
|
1442
|
+
additionalProperties: {
|
|
1443
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
"offline-banner": {
|
|
1447
|
+
type: "object",
|
|
1448
|
+
description: "OfflineBanner's pill variant — height, padding, gap, type size, label and detail weight, detail opacity, icon size, fill, ink and edge. Under `data-glass=\"on\"` the pill reads the glass layer's control values instead. Keys: pill-height, pill-padding-x, pill-gap, pill-font-size, pill-font-weight, pill-detail-font-weight, pill-detail-opacity, pill-icon-size, pill-bg, pill-text-color, pill-border.",
|
|
1449
|
+
additionalProperties: {
|
|
1450
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1411
1453
|
separator: {
|
|
1412
1454
|
type: "object",
|
|
1413
1455
|
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-M3HY5JXM.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;
|
|
@@ -1175,6 +1175,13 @@ var visor_theme_schema_default = {
|
|
|
1175
1175
|
$ref: "#/$defs/componentTokenBinding"
|
|
1176
1176
|
}
|
|
1177
1177
|
},
|
|
1178
|
+
"status-dot": {
|
|
1179
|
+
type: "object",
|
|
1180
|
+
description: "StatusDot size. A caller sets `--status-dot-color` on a dot for a colour outside its five tones. Keys: size.",
|
|
1181
|
+
additionalProperties: {
|
|
1182
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1183
|
+
}
|
|
1184
|
+
},
|
|
1178
1185
|
"status-badge": {
|
|
1179
1186
|
type: "object",
|
|
1180
1187
|
description: "Status-badge indicator dot and the mono readout label. Chrome is inherited from the Badge family. Keys: dot-size, dot-radius, mono-font-family, mono-font-size, mono-letter-spacing.",
|
|
@@ -1268,7 +1275,7 @@ var visor_theme_schema_default = {
|
|
|
1268
1275
|
},
|
|
1269
1276
|
spinner: {
|
|
1270
1277
|
type: "object",
|
|
1271
|
-
description: "Inline loading ring \u2014 track, leading edge, per-size geometry and
|
|
1278
|
+
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
1279
|
additionalProperties: {
|
|
1273
1280
|
$ref: "#/$defs/componentTokenBinding"
|
|
1274
1281
|
}
|
|
@@ -1301,6 +1308,13 @@ var visor_theme_schema_default = {
|
|
|
1301
1308
|
$ref: "#/$defs/componentTokenBinding"
|
|
1302
1309
|
}
|
|
1303
1310
|
},
|
|
1311
|
+
"key-value-list": {
|
|
1312
|
+
type: "object",
|
|
1313
|
+
description: 'KeyValueList \u2014 label and value type and ink, the horizontal columns, item gap and alignment, row spacing, padding and divider, and the `surface="panel"` fill, edge colour, corners and inset. Under `data-glass="on"` the panel reads the glass layer instead. Keys: label-font-size, label-font-weight, label-line-height, label-letter-spacing, label-text-transform, label-color, label-padding-top, value-font-size, value-font-weight, value-line-height, value-color, value-text-wrap, value-overflow-wrap, value-font-variant-numeric, columns, item-gap, item-align, item-padding, row-gap, divider, panel-bg, panel-border-color, panel-radius, panel-padding.',
|
|
1314
|
+
additionalProperties: {
|
|
1315
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1316
|
+
}
|
|
1317
|
+
},
|
|
1304
1318
|
textarea: {
|
|
1305
1319
|
type: "object",
|
|
1306
1320
|
description: "Textarea shape at the default `md` size. Keys: padding, radius.",
|
|
@@ -1352,14 +1366,14 @@ var visor_theme_schema_default = {
|
|
|
1352
1366
|
},
|
|
1353
1367
|
button: {
|
|
1354
1368
|
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.",
|
|
1369
|
+
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, outline-bg, outline-padding, outline-font-weight, outline-ring-color, outline-backdrop-filter, 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
1370
|
additionalProperties: {
|
|
1357
1371
|
$ref: "#/$defs/componentTokenBinding"
|
|
1358
1372
|
}
|
|
1359
1373
|
},
|
|
1360
1374
|
text: {
|
|
1361
1375
|
type: "object",
|
|
1362
|
-
description: "Text type treatment, per size \u2014 set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. Every key begins with a size. Keys: xs-font-size, xs-text-transform, xs-letter-spacing, sm-font-size, sm-text-transform, sm-letter-spacing, md-font-size, md-text-transform, md-letter-spacing, lg-font-size, lg-text-transform, lg-letter-spacing, xl-font-size, xl-text-transform, xl-letter-spacing.",
|
|
1376
|
+
description: "Text type treatment, per size \u2014 set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. `eyebrow` also takes a weight, colour and gap. Every key begins with a size. Keys: xs-font-size, xs-text-transform, xs-letter-spacing, sm-font-size, sm-text-transform, sm-letter-spacing, md-font-size, md-text-transform, md-letter-spacing, lg-font-size, lg-text-transform, lg-letter-spacing, xl-font-size, xl-text-transform, xl-letter-spacing, eyebrow-font-size, eyebrow-text-transform, eyebrow-letter-spacing, eyebrow-font-weight, eyebrow-color, eyebrow-gap.",
|
|
1363
1377
|
additionalProperties: {
|
|
1364
1378
|
$ref: "#/$defs/componentTokenBinding"
|
|
1365
1379
|
}
|
|
@@ -1387,7 +1401,7 @@ var visor_theme_schema_default = {
|
|
|
1387
1401
|
},
|
|
1388
1402
|
"segmented-control": {
|
|
1389
1403
|
type: "object",
|
|
1390
|
-
description:
|
|
1404
|
+
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. Under `data-glass="on"` the well blurs the photo and, unbound, takes the glass layer\'s control fill. 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.',
|
|
1391
1405
|
additionalProperties: {
|
|
1392
1406
|
$ref: "#/$defs/componentTokenBinding"
|
|
1393
1407
|
}
|
|
@@ -1406,6 +1420,20 @@ var visor_theme_schema_default = {
|
|
|
1406
1420
|
$ref: "#/$defs/componentTokenBinding"
|
|
1407
1421
|
}
|
|
1408
1422
|
},
|
|
1423
|
+
"radio-step": {
|
|
1424
|
+
type: "object",
|
|
1425
|
+
description: 'RadioGroup `variant="stepped"` \u2014 the key colour, the well and its radius, the resting ink, the icon size, and the chosen tile\'s fill and hairline. Keys: key, well, well-radius, ink, icon-size, selected-bg, selected-border.',
|
|
1426
|
+
additionalProperties: {
|
|
1427
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1428
|
+
}
|
|
1429
|
+
},
|
|
1430
|
+
"reach-rings": {
|
|
1431
|
+
type: "object",
|
|
1432
|
+
description: "ReachRings \u2014 the key colour of lit rings and the core, the unlit ring stroke, and the core icon lit and unlit. Keys: key, ring, glyph, core-ink.",
|
|
1433
|
+
additionalProperties: {
|
|
1434
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1435
|
+
}
|
|
1436
|
+
},
|
|
1409
1437
|
tooltip: {
|
|
1410
1438
|
type: "object",
|
|
1411
1439
|
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.",
|
|
@@ -1427,6 +1455,20 @@ var visor_theme_schema_default = {
|
|
|
1427
1455
|
$ref: "#/$defs/componentTokenBinding"
|
|
1428
1456
|
}
|
|
1429
1457
|
},
|
|
1458
|
+
"number-input": {
|
|
1459
|
+
type: "object",
|
|
1460
|
+
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.",
|
|
1461
|
+
additionalProperties: {
|
|
1462
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
"offline-banner": {
|
|
1466
|
+
type: "object",
|
|
1467
|
+
description: "OfflineBanner's pill variant \u2014 height, padding, gap, type size, label and detail weight, detail opacity, icon size, fill, ink and edge. Under `data-glass=\"on\"` the pill reads the glass layer's control values instead. Keys: pill-height, pill-padding-x, pill-gap, pill-font-size, pill-font-weight, pill-detail-font-weight, pill-detail-opacity, pill-icon-size, pill-bg, pill-text-color, pill-border.",
|
|
1468
|
+
additionalProperties: {
|
|
1469
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1470
|
+
}
|
|
1471
|
+
},
|
|
1430
1472
|
separator: {
|
|
1431
1473
|
type: "object",
|
|
1432
1474
|
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.45.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",
|
|
@@ -553,6 +553,13 @@
|
|
|
553
553
|
"$ref": "#/$defs/componentTokenBinding"
|
|
554
554
|
}
|
|
555
555
|
},
|
|
556
|
+
"status-dot": {
|
|
557
|
+
"type": "object",
|
|
558
|
+
"description": "StatusDot size. A caller sets `--status-dot-color` on a dot for a colour outside its five tones. Keys: size.",
|
|
559
|
+
"additionalProperties": {
|
|
560
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
561
|
+
}
|
|
562
|
+
},
|
|
556
563
|
"status-badge": {
|
|
557
564
|
"type": "object",
|
|
558
565
|
"description": "Status-badge indicator dot and the mono readout label. Chrome is inherited from the Badge family. Keys: dot-size, dot-radius, mono-font-family, mono-font-size, mono-letter-spacing.",
|
|
@@ -646,7 +653,7 @@
|
|
|
646
653
|
},
|
|
647
654
|
"spinner": {
|
|
648
655
|
"type": "object",
|
|
649
|
-
"description": "Inline loading ring — track, leading edge, per-size geometry and
|
|
656
|
+
"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
657
|
"additionalProperties": {
|
|
651
658
|
"$ref": "#/$defs/componentTokenBinding"
|
|
652
659
|
}
|
|
@@ -679,6 +686,13 @@
|
|
|
679
686
|
"$ref": "#/$defs/componentTokenBinding"
|
|
680
687
|
}
|
|
681
688
|
},
|
|
689
|
+
"key-value-list": {
|
|
690
|
+
"type": "object",
|
|
691
|
+
"description": "KeyValueList \u2014 label and value type and ink, the horizontal columns, item gap and alignment, row spacing, padding and divider, and the `surface=\"panel\"` fill, edge colour, corners and inset. Under `data-glass=\"on\"` the panel reads the glass layer instead. Keys: label-font-size, label-font-weight, label-line-height, label-letter-spacing, label-text-transform, label-color, label-padding-top, value-font-size, value-font-weight, value-line-height, value-color, value-text-wrap, value-overflow-wrap, value-font-variant-numeric, columns, item-gap, item-align, item-padding, row-gap, divider, panel-bg, panel-border-color, panel-radius, panel-padding.",
|
|
692
|
+
"additionalProperties": {
|
|
693
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
694
|
+
}
|
|
695
|
+
},
|
|
682
696
|
"textarea": {
|
|
683
697
|
"type": "object",
|
|
684
698
|
"description": "Textarea shape at the default `md` size. Keys: padding, radius.",
|
|
@@ -730,14 +744,14 @@
|
|
|
730
744
|
},
|
|
731
745
|
"button": {
|
|
732
746
|
"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.",
|
|
747
|
+
"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, outline-bg, outline-padding, outline-font-weight, outline-ring-color, outline-backdrop-filter, 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
748
|
"additionalProperties": {
|
|
735
749
|
"$ref": "#/$defs/componentTokenBinding"
|
|
736
750
|
}
|
|
737
751
|
},
|
|
738
752
|
"text": {
|
|
739
753
|
"type": "object",
|
|
740
|
-
"description": "Text type treatment, per size — set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. Every key begins with a size. Keys: xs-font-size, xs-text-transform, xs-letter-spacing, sm-font-size, sm-text-transform, sm-letter-spacing, md-font-size, md-text-transform, md-letter-spacing, lg-font-size, lg-text-transform, lg-letter-spacing, xl-font-size, xl-text-transform, xl-letter-spacing.",
|
|
754
|
+
"description": "Text type treatment, per size — set `sm-font-size: 13px` for a 13px step, or caps and tracking on `xs` for a state tag. `eyebrow` also takes a weight, colour and gap. Every key begins with a size. Keys: xs-font-size, xs-text-transform, xs-letter-spacing, sm-font-size, sm-text-transform, sm-letter-spacing, md-font-size, md-text-transform, md-letter-spacing, lg-font-size, lg-text-transform, lg-letter-spacing, xl-font-size, xl-text-transform, xl-letter-spacing, eyebrow-font-size, eyebrow-text-transform, eyebrow-letter-spacing, eyebrow-font-weight, eyebrow-color, eyebrow-gap.",
|
|
741
755
|
"additionalProperties": {
|
|
742
756
|
"$ref": "#/$defs/componentTokenBinding"
|
|
743
757
|
}
|
|
@@ -765,7 +779,7 @@
|
|
|
765
779
|
},
|
|
766
780
|
"segmented-control": {
|
|
767
781
|
"type": "object",
|
|
768
|
-
"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.",
|
|
782
|
+
"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. Under `data-glass=\"on\"` the well blurs the photo and, unbound, takes the glass layer's control fill. 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.",
|
|
769
783
|
"additionalProperties": {
|
|
770
784
|
"$ref": "#/$defs/componentTokenBinding"
|
|
771
785
|
}
|
|
@@ -784,6 +798,20 @@
|
|
|
784
798
|
"$ref": "#/$defs/componentTokenBinding"
|
|
785
799
|
}
|
|
786
800
|
},
|
|
801
|
+
"radio-step": {
|
|
802
|
+
"type": "object",
|
|
803
|
+
"description": "RadioGroup `variant=\"stepped\"` \u2014 the key colour, the well and its radius, the resting ink, the icon size, and the chosen tile's fill and hairline. Keys: key, well, well-radius, ink, icon-size, selected-bg, selected-border.",
|
|
804
|
+
"additionalProperties": {
|
|
805
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"reach-rings": {
|
|
809
|
+
"type": "object",
|
|
810
|
+
"description": "ReachRings \u2014 the key colour of lit rings and the core, the unlit ring stroke, and the core icon lit and unlit. Keys: key, ring, glyph, core-ink.",
|
|
811
|
+
"additionalProperties": {
|
|
812
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
787
815
|
"tooltip": {
|
|
788
816
|
"type": "object",
|
|
789
817
|
"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.",
|
|
@@ -805,6 +833,20 @@
|
|
|
805
833
|
"$ref": "#/$defs/componentTokenBinding"
|
|
806
834
|
}
|
|
807
835
|
},
|
|
836
|
+
"number-input": {
|
|
837
|
+
"type": "object",
|
|
838
|
+
"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.",
|
|
839
|
+
"additionalProperties": {
|
|
840
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
"offline-banner": {
|
|
844
|
+
"type": "object",
|
|
845
|
+
"description": "OfflineBanner's pill variant \u2014 height, padding, gap, type size, label and detail weight, detail opacity, icon size, fill, ink and edge. Under `data-glass=\"on\"` the pill reads the glass layer's control values instead. Keys: pill-height, pill-padding-x, pill-gap, pill-font-size, pill-font-weight, pill-detail-font-weight, pill-detail-opacity, pill-icon-size, pill-bg, pill-text-color, pill-border.",
|
|
846
|
+
"additionalProperties": {
|
|
847
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
848
|
+
}
|
|
849
|
+
},
|
|
808
850
|
"separator": {
|
|
809
851
|
"type": "object",
|
|
810
852
|
"description": "Separator rule colour, bare or either side of a label. Keys: color.",
|