@loworbitstudio/visor-theme-engine 0.45.0 → 0.47.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 +1 -1
- package/dist/{chunk-M3HY5JXM.js → chunk-JEGHNZOT.js} +116 -8
- package/dist/index.d.ts +49 -4
- package/dist/index.js +41 -4
- package/package.json +1 -1
- package/src/visor-theme.schema.json +38 -3
package/dist/adapters/index.js
CHANGED
|
@@ -1261,6 +1261,7 @@ var SIDEBAR = "components/ui/sidebar/sidebar.module.css";
|
|
|
1261
1261
|
var TABS = "components/ui/tabs/tabs.module.css";
|
|
1262
1262
|
var SKELETON = "components/ui/skeleton/skeleton.module.css";
|
|
1263
1263
|
var SPINNER = "components/ui/spinner/spinner.module.css";
|
|
1264
|
+
var STEPPER = "components/ui/stepper/stepper.module.css";
|
|
1264
1265
|
var CHECKBOX = "components/ui/checkbox/checkbox.module.css";
|
|
1265
1266
|
var INPUT = "components/ui/input/input.module.css";
|
|
1266
1267
|
var SEPARATOR = "components/ui/separator/separator.module.css";
|
|
@@ -1288,9 +1289,13 @@ var DIALOG_FIELD = "blocks/dialog-field/dialog-field.module.css";
|
|
|
1288
1289
|
var ADMIN_SHELL = "blocks/admin-shell/admin-shell.module.css";
|
|
1289
1290
|
var BILLING_SLIDER = "components/ui/billing-slider/billing-slider.module.css";
|
|
1290
1291
|
var RESIZABLE_SPLIT = "components/ui/resizable-split/resizable-split.module.css";
|
|
1292
|
+
var SCROLL_HINT = "components/ui/scroll-hint/scroll-hint.module.css";
|
|
1291
1293
|
var DIALOG = "components/ui/dialog/dialog.module.css";
|
|
1294
|
+
var POPOVER = "components/ui/popover/popover.module.css";
|
|
1292
1295
|
var STAT_CARD = "components/ui/stat-card/stat-card.module.css";
|
|
1293
1296
|
var KEY_VALUE_LIST = "components/ui/key-value-list/key-value-list.module.css";
|
|
1297
|
+
var CARD = "components/ui/card/card.module.css";
|
|
1298
|
+
var RICH_TEXT = "components/ui/rich-text/rich-text.module.css";
|
|
1294
1299
|
function at(file, fallback) {
|
|
1295
1300
|
return [{ file, fallback }];
|
|
1296
1301
|
}
|
|
@@ -1705,10 +1710,26 @@ var dialogFamily = {
|
|
|
1705
1710
|
{ 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" }] }
|
|
1706
1711
|
]
|
|
1707
1712
|
};
|
|
1713
|
+
var popoverFamily = {
|
|
1714
|
+
family: "popover",
|
|
1715
|
+
prefix: "popover",
|
|
1716
|
+
description: "Popover's panel \u2014 corners, inset, fill and shadow \u2014 and the stay-mounted (`forceMount`) fade's timing, curve and rise. Under `data-glass=\"on\"` the panel reads the glass layer's fill, blur, shadow and ink; a bound `bg` or `shadow` wins in every look.",
|
|
1717
|
+
tokens: [
|
|
1718
|
+
{ key: "radius", property: "border-radius", description: "Panel corners.", consumers: at(POPOVER, "var(--radius-lg, 0.5rem)") },
|
|
1719
|
+
{ key: "padding", property: "padding", description: "Panel inset, one length. PopoverFooter's rule spans it.", consumers: [{ file: POPOVER, fallback: "var(--spacing-4, 1rem)" }, { file: POPOVER, fallback: "var(--spacing-4, 1rem)" }, { file: POPOVER, fallback: "var(--spacing-4, 1rem)" }] },
|
|
1720
|
+
{ key: "bg", property: "background", description: "Panel fill, in every look. Unset, the glass layer's fill over a photo and `--surface-popover` elsewhere.", consumers: at(POPOVER, "var(--glass-on-fill, var(--surface-popover, var(--surface-card, #ffffff)))") },
|
|
1721
|
+
{ key: "shadow", property: "box-shadow", description: "Panel shadow (and any inset ring), in every look. Unset, the glass layer's shadow over a photo and `--shadow-lg` elsewhere.", consumers: at(POPOVER, "var(--glass-on-shadow, var(--shadow-lg))") },
|
|
1722
|
+
{ key: "duration", property: "transition-duration", description: "Stay-mounted fade length.", consumers: each([POPOVER, POPOVER, POPOVER], "var(--motion-duration-normal, 200ms)") },
|
|
1723
|
+
{ key: "easing", property: "transition-timing-function", description: "Stay-mounted fade curve.", consumers: each([POPOVER, POPOVER], "var(--motion-easing-enter, ease-out)") },
|
|
1724
|
+
{ key: "rise", property: "translate", description: "How far the stay-mounted panel rises as it fades in. None under reduced motion.", consumers: at(POPOVER, "6px") },
|
|
1725
|
+
{ key: "item-bg", property: "background-color", description: "Menu row fill (a ghost Button in a stay-mounted panel). Unset, the glass layer's control fill over a photo and a faint ink tint elsewhere.", consumers: at(POPOVER, "var(--glass-on-control-fill, color-mix(in srgb, var(--text-primary, #111827) 5%, transparent))") },
|
|
1726
|
+
{ key: "item-bg-hover", property: "background-color", description: "Menu row fill on hover. Unset, the glass layer's control hover fill over a photo and a stronger ink tint elsewhere.", consumers: at(POPOVER, "var(--glass-on-control-hover-fill, color-mix(in srgb, var(--text-primary, #111827) 10%, transparent))") }
|
|
1727
|
+
]
|
|
1728
|
+
};
|
|
1708
1729
|
var glassFamily = {
|
|
1709
1730
|
family: "glass",
|
|
1710
1731
|
prefix: "glass",
|
|
1711
|
-
description: 'The glass layer over a photo: surface fill, blur, edge, lift, shadow
|
|
1732
|
+
description: 'The glass layer over a photo: surface fill, blur, edge, lift, shadow, on-photo ink, the scrim under white labels with its ink and shadow, plus the glass values controls read. Draws only inside `data-glass="on"`; elsewhere components keep their solid surface and border.',
|
|
1712
1733
|
tokens: [
|
|
1713
1734
|
{ key: "fill", property: "background", description: "Glass surface fill, see-through.", consumers: [], recommended: "color-mix(in srgb, var(--text-primary) 5%, transparent)" },
|
|
1714
1735
|
{ key: "blur", property: "backdrop-filter", description: "Filter on the photo behind a glass surface.", consumers: [], recommended: "blur(32px) saturate(110%)" },
|
|
@@ -1716,6 +1737,11 @@ var glassFamily = {
|
|
|
1716
1737
|
{ key: "lift", property: "background", description: "White lift laid over the fill, e.g. `rgb(255 255 255 / 0.45)` in light.", consumers: [], recommended: "transparent" },
|
|
1717
1738
|
{ key: "shadow", property: "box-shadow", description: "Glass surface shadow.", consumers: [], recommended: "var(--shadow-xl)" },
|
|
1718
1739
|
{ key: "ink", property: "color", description: "Text colour on glass over a photo.", consumers: [], recommended: "var(--text-primary)" },
|
|
1740
|
+
// VI-810: a dark scrim under white labels in the dark photo look: at 55% black, white clears 4.5:1 (4.95:1)
|
|
1741
|
+
// even over pure white, so over any photo; and FormDeck's label shadow. Light + Photo keeps the light glass and its ink.
|
|
1742
|
+
{ key: "scrim", property: "background", description: "Dark glass laid under white labels on a photo in dark mode (e.g. Stepper's rail panel in Dark + Photo), dark enough that white clears 4.5:1 on a bright photo.", consumers: [], recommended: "rgb(0 0 0 / 0.55)" },
|
|
1743
|
+
{ key: "scrim-ink", property: "color", description: "Label colour on the scrim, in dark mode over a photo.", consumers: [], recommended: "#ffffff" },
|
|
1744
|
+
{ key: "ink-shadow", property: "text-shadow", description: "Shadow under the scrim ink in dark mode over a photo, seating the labels.", consumers: [], recommended: "0 0 10px rgb(0 0 0 / 0.55), 0 1px 3px rgb(0 0 0 / 0.5)" },
|
|
1719
1745
|
{ key: "control-fill", property: "background", description: "Glass control fill (icon buttons, toggles).", consumers: [], recommended: "color-mix(in srgb, var(--text-primary) 14%, transparent)" },
|
|
1720
1746
|
{ key: "control-hover-fill", property: "background", description: "Glass control fill on hover.", consumers: [], recommended: "color-mix(in srgb, var(--text-primary) 24%, transparent)" },
|
|
1721
1747
|
{ key: "control-ring", property: "box-shadow (inset ring)", description: "Glass control ring colour.", consumers: [], recommended: "color-mix(in srgb, var(--text-primary) 16%, transparent)" },
|
|
@@ -1723,10 +1749,22 @@ var glassFamily = {
|
|
|
1723
1749
|
{ key: "control-blur", property: "backdrop-filter", description: "Filter on the photo behind a glass control.", consumers: [], recommended: "blur(16px)" }
|
|
1724
1750
|
]
|
|
1725
1751
|
};
|
|
1752
|
+
var scrollHintFamily = {
|
|
1753
|
+
family: "scroll-hint",
|
|
1754
|
+
prefix: "scroll-hint",
|
|
1755
|
+
description: `ScrollHint \u2014 the "More Below" pill pinned to a scroll box's bottom edge: the solid chip's fill, edge and ink, the fill it takes over a photo, and the gap it undoes.`,
|
|
1756
|
+
tokens: [
|
|
1757
|
+
{ key: "bg", property: "background", description: "The chip's fill, glass off.", consumers: at(SCROLL_HINT, "var(--surface-card, #ffffff)") },
|
|
1758
|
+
{ key: "border", property: "box-shadow (inset ring)", description: "The chip's edge, glass off. Over a photo the pill has no edge.", consumers: at(SCROLL_HINT, "var(--border-default, #e5e7eb)") },
|
|
1759
|
+
{ key: "color", property: "color", description: "The pill's words and caret.", consumers: at(SCROLL_HINT, "var(--text-secondary, #4b5563)") },
|
|
1760
|
+
{ key: "glass-bg", property: "background", description: "The pill's fill inside `data-glass=\"on\"`, blurred with the glass layer's control blur.", consumers: at(SCROLL_HINT, "color-mix(in srgb, var(--surface-page, #ffffff) 70%, transparent)") },
|
|
1761
|
+
{ key: "gap", property: "margin-top (negated)", description: "The scroll box's row gap, which the zero-height hint row undoes so it adds no space.", consumers: at(SCROLL_HINT, "0px") }
|
|
1762
|
+
]
|
|
1763
|
+
};
|
|
1726
1764
|
var tabsFamily = {
|
|
1727
1765
|
family: "tabs",
|
|
1728
1766
|
prefix: "tabs",
|
|
1729
|
-
description: "Tab rail and trigger treatment, for
|
|
1767
|
+
description: "Tab rail and trigger treatment, for the segmented (`default`), underlined (`line`) and sliding-highlight (`keyed`) variants.",
|
|
1730
1768
|
tokens: [
|
|
1731
1769
|
{ key: "list-radius", property: "border-radius", description: "Tab-rail corner rounding.", consumers: at(TABS, "var(--radius-full, 9999px)") },
|
|
1732
1770
|
{ key: "list-height", property: "height", description: "Tab-rail height.", consumers: at(TABS, "2.25rem") },
|
|
@@ -1745,7 +1783,11 @@ var tabsFamily = {
|
|
|
1745
1783
|
{ key: "trigger-active-color", property: "color", description: "Active trigger colour.", consumers: at(TABS, "var(--text-primary, #111827)") },
|
|
1746
1784
|
{ key: "trigger-active-shadow", property: "box-shadow", description: "Active trigger elevation.", consumers: at(TABS, "var(--shadow-sm)") },
|
|
1747
1785
|
{ key: "indicator-height", property: "height", description: "Underline indicator thickness.", consumers: at(TABS, "2px") },
|
|
1748
|
-
{ key: "indicator-color", property: "background-color", description: "Underline indicator colour.", consumers: at(TABS, "var(--text-primary, #111827)") }
|
|
1786
|
+
{ key: "indicator-color", property: "background-color", description: "Underline indicator colour.", consumers: at(TABS, "var(--text-primary, #111827)") },
|
|
1787
|
+
{ key: "keyed-key", property: "border-color, color", description: "Keyed variant key colour: the sliding highlight's 1px edge and the active tab's icon.", consumers: at(TABS, "var(--surface-accent-default)") },
|
|
1788
|
+
{ key: "keyed-fill", property: "background-color", description: "Keyed variant highlight fill. Unbound, the key colour at 10%.", consumers: at(TABS, "color-mix(in srgb, var(--_keyed-key) 10%, transparent)") },
|
|
1789
|
+
{ key: "keyed-ink", property: "color", description: "Keyed variant label ink: full on the active tab, 80% on hover, 55% at rest.", consumers: at(TABS, "var(--text-primary)") },
|
|
1790
|
+
{ key: "keyed-radius", property: "border-radius", description: "Keyed variant tab and highlight corners.", consumers: at(TABS, "var(--radius-md, 0.375rem)") }
|
|
1749
1791
|
]
|
|
1750
1792
|
};
|
|
1751
1793
|
var skeletonFamily = {
|
|
@@ -1796,6 +1838,21 @@ var spinnerFamily = {
|
|
|
1796
1838
|
{ key: "label-color", property: "color", description: "Visible words colour (`showLabel`).", consumers: at(SPINNER, "var(--text-secondary, #4b5563)") }
|
|
1797
1839
|
]
|
|
1798
1840
|
};
|
|
1841
|
+
var stepperFamily = {
|
|
1842
|
+
family: "stepper",
|
|
1843
|
+
prefix: "stepper",
|
|
1844
|
+
description: "Stepper's `rail` variant \u2014 row gap and inset, the space between mark and label, label size, weight and tracking, and the dot mark's size and current width.",
|
|
1845
|
+
tokens: [
|
|
1846
|
+
{ key: "rail-gap", property: "gap", description: "Space between rail rows.", consumers: at(STEPPER, "0") },
|
|
1847
|
+
{ key: "rail-padding", property: "padding", description: "Rail row inset.", consumers: at(STEPPER, "var(--spacing-2, 0.5rem) var(--spacing-1, 0.25rem)") },
|
|
1848
|
+
{ key: "rail-mark-gap", property: "gap", description: "Space between the mark and the label.", consumers: at(STEPPER, "var(--spacing-3, 0.75rem)") },
|
|
1849
|
+
{ key: "rail-font-size", property: "font-size", description: "Rail label size.", consumers: at(STEPPER, "var(--font-size-sm, 0.875rem)") },
|
|
1850
|
+
{ key: "rail-font-weight", property: "font-weight", description: "Rail label weight.", consumers: at(STEPPER, "var(--font-weight-medium, 500)") },
|
|
1851
|
+
{ key: "rail-letter-spacing", property: "letter-spacing", description: "Rail label tracking.", consumers: at(STEPPER, "normal") },
|
|
1852
|
+
{ key: "rail-mark-size", property: "width / height", description: "Dot mark diameter.", consumers: at(STEPPER, "calc(var(--spacing-1, 0.25rem) * 1.5)") },
|
|
1853
|
+
{ key: "rail-mark-active-width", property: "width", description: "The current row's mark, stretched to a pill.", consumers: at(STEPPER, "var(--spacing-5, 1.25rem)") }
|
|
1854
|
+
]
|
|
1855
|
+
};
|
|
1799
1856
|
var checkboxFamily = {
|
|
1800
1857
|
family: "checkbox",
|
|
1801
1858
|
prefix: "checkbox",
|
|
@@ -2520,7 +2577,7 @@ var segmentedControlFamily = {
|
|
|
2520
2577
|
var toggleGroupFamily = {
|
|
2521
2578
|
family: "toggle-group",
|
|
2522
2579
|
prefix: "toggle-group",
|
|
2523
|
-
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
|
|
2580
|
+
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, description line, check box and round mark.",
|
|
2524
2581
|
tokens: [
|
|
2525
2582
|
{ 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") },
|
|
2526
2583
|
{
|
|
@@ -2553,18 +2610,19 @@ var toggleGroupFamily = {
|
|
|
2553
2610
|
{ 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)") },
|
|
2554
2611
|
{ 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)") },
|
|
2555
2612
|
{ 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)") },
|
|
2556
|
-
{ key: "option-blur", property: "backdrop-filter", description: "Option row backdrop blur radius (a length, e.g. `24px`).", consumers: at(TOGGLE_GROUP, "24px") },
|
|
2557
2613
|
{ key: "option-text", property: "color", description: "Option label ink.", consumers: at(TOGGLE_GROUP, "var(--text-primary, #111827)") },
|
|
2558
2614
|
{ key: "option-font-size", property: "font-size", description: "Option label size.", consumers: at(TOGGLE_GROUP, "var(--font-size-base, 1rem)") },
|
|
2559
2615
|
{ key: "option-font-weight", property: "font-weight", description: "Option label weight.", consumers: at(TOGGLE_GROUP, "var(--font-weight-medium, 500)") },
|
|
2616
|
+
{ key: "option-description-text", property: "color", description: "Option row description line ink (VI-806).", consumers: at(TOGGLE_GROUP, "var(--text-secondary, #4b5563)") },
|
|
2617
|
+
{ key: "option-description-font-size", property: "font-size", description: "Option row description line size.", consumers: at(TOGGLE_GROUP, "var(--font-size-sm, 0.875rem)") },
|
|
2560
2618
|
{ key: "option-key-size", property: "width / height", description: "Letter key badge size.", consumers: at(TOGGLE_GROUP, "1.75rem") },
|
|
2561
2619
|
{ key: "option-key-radius", property: "border-radius", description: "Letter key badge corner radius.", consumers: at(TOGGLE_GROUP, "var(--radius-md, 0.375rem)") },
|
|
2562
2620
|
{ 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)") },
|
|
2563
2621
|
{ key: "option-key-text", property: "color", description: "Letter key ink while not picked.", consumers: at(TOGGLE_GROUP, "var(--text-secondary, #4b5563)") },
|
|
2564
2622
|
{ key: "option-key-font-size", property: "font-size", description: "Letter key size.", consumers: at(TOGGLE_GROUP, "var(--font-size-xs, 0.75rem)") },
|
|
2565
|
-
{ key: "option-mark-bg", property: "background-color", description: "Picked fill of the letter key
|
|
2566
|
-
{ 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)") },
|
|
2567
|
-
{ key: "option-check-size", property: "width / height", description: "
|
|
2623
|
+
{ key: "option-mark-bg", property: "background-color", description: "Picked fill of the letter key, the check box and the round single-choice mark (the theme's key colour).", consumers: at(TOGGLE_GROUP, "var(--interactive-primary-bg, var(--primary, #111827))") },
|
|
2624
|
+
{ key: "option-mark-text", property: "color", description: "Picked ink of the letter key and of the check glyph in the box and the round mark.", consumers: at(TOGGLE_GROUP, "var(--interactive-primary-text, #f9fafb)") },
|
|
2625
|
+
{ key: "option-check-size", property: "width / height", description: "Size of the multiple-mode check box and of the single-mode round mark.", consumers: at(TOGGLE_GROUP, "1.25rem") },
|
|
2568
2626
|
{ key: "option-check-radius", property: "border-radius", description: "Check box corner radius.", consumers: at(TOGGLE_GROUP, "var(--radius-sm, 0.25rem)") },
|
|
2569
2627
|
{ key: "option-check-border", property: "box-shadow", description: "Check box's inset edge while not picked.", consumers: at(TOGGLE_GROUP, "var(--border-strong, #d1d5db)") }
|
|
2570
2628
|
]
|
|
@@ -2642,6 +2700,31 @@ var layerChartFamily = {
|
|
|
2642
2700
|
{ key: "ground", property: "background (mixes)", description: "The ground blocks are mixed toward (covered, today, the palest layer) and the span lanes' track.", consumers: at(LAYER_CHART, "var(--surface-page, #ffffff)") }
|
|
2643
2701
|
]
|
|
2644
2702
|
};
|
|
2703
|
+
var cardFamily = {
|
|
2704
|
+
family: "card",
|
|
2705
|
+
prefix: "card",
|
|
2706
|
+
description: "Card \u2014 the corner radius, the glass variant's fill, blur, shadow and layers, and the editable state's hover fill and shadow and its pen's size and inset.",
|
|
2707
|
+
tokens: [
|
|
2708
|
+
{ key: "radius", property: "border-radius", description: "Card corner radius.", consumers: at(CARD, "var(--radius-xl, 1rem)") },
|
|
2709
|
+
{ key: "glass-bg", property: "background", description: "Glass layer fill. Unset, the glass switch's lift over its fill, or the card surface where glass is off.", consumers: at(CARD, "linear-gradient(var(--glass-on-lift, transparent) 0 0), var(--glass-on-fill, var(--surface-card, #ffffff))") },
|
|
2710
|
+
{ key: "glass-filter", property: "backdrop-filter", description: "Filter on the photo behind the glass layer. Unset, the glass switch's blur; none where glass is off. A bound value applies with glass off too.", consumers: at(CARD, "var(--glass-on-blur, none)") },
|
|
2711
|
+
{ key: "glass-shadow", property: "box-shadow", description: "Glass layer shadow. Unset, the glass switch's shadow, or Card's own where glass is off.", consumers: at(CARD, "var(--glass-on-shadow, var(--shadow-sm))") },
|
|
2712
|
+
{ key: "glass-display", property: "display", description: "`none` drops the glass layer and its edge.", consumers: at(CARD, "block") },
|
|
2713
|
+
{ key: "edge-display", property: "display", description: "`none` drops the edge layer only (a surface that draws its own edge).", consumers: at(CARD, "var(--card-glass-display, block)") },
|
|
2714
|
+
{
|
|
2715
|
+
key: "editable-hover-bg",
|
|
2716
|
+
property: "background",
|
|
2717
|
+
description: "Editable card fill on hover. Unset, the interactive hover surface; on glass, the fill moved 40% toward the card surface.",
|
|
2718
|
+
consumers: [
|
|
2719
|
+
{ file: CARD, fallback: "var(--surface-interactive-hover, #f3f4f6)" },
|
|
2720
|
+
{ file: CARD, fallback: "linear-gradient(var(--glass-on-lift, transparent) 0 0), color-mix(in srgb, var(--glass-on-fill, var(--surface-interactive-hover, #f3f4f6)), var(--surface-card, #ffffff) 40%)" }
|
|
2721
|
+
]
|
|
2722
|
+
},
|
|
2723
|
+
{ key: "editable-hover-shadow", property: "box-shadow", description: "Editable card shadow on hover.", consumers: at(CARD, "var(--shadow-lg)") },
|
|
2724
|
+
{ key: "pen-size", property: "width / height", description: "Pen badge size.", consumers: at(CARD, "var(--spacing-8, 2rem)") },
|
|
2725
|
+
{ key: "pen-inset", property: "top / right", description: "Pen distance from the top and right edges.", consumers: at(CARD, "var(--spacing-4, 1rem)") }
|
|
2726
|
+
]
|
|
2727
|
+
};
|
|
2645
2728
|
var statCardFamily = {
|
|
2646
2729
|
family: "stat-card",
|
|
2647
2730
|
prefix: "stat-card",
|
|
@@ -2699,6 +2782,19 @@ var keyValueListFamily = {
|
|
|
2699
2782
|
{ 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
2783
|
]
|
|
2701
2784
|
};
|
|
2785
|
+
var richTextFamily = {
|
|
2786
|
+
family: "rich-text",
|
|
2787
|
+
prefix: "rich-text",
|
|
2788
|
+
description: "RichText link underline colour. Link text inherits the surrounding ink.",
|
|
2789
|
+
tokens: [
|
|
2790
|
+
{
|
|
2791
|
+
key: "link-underline",
|
|
2792
|
+
property: "text-decoration-color",
|
|
2793
|
+
description: "Link underline colour at rest; on hover it turns the link's own ink.",
|
|
2794
|
+
consumers: at(RICH_TEXT, "color-mix(in srgb, currentColor 40%, transparent)")
|
|
2795
|
+
}
|
|
2796
|
+
]
|
|
2797
|
+
};
|
|
2702
2798
|
var COMPONENT_TOKEN_FAMILIES = [
|
|
2703
2799
|
tableFamily,
|
|
2704
2800
|
dataTableFamily,
|
|
@@ -2715,10 +2811,13 @@ var COMPONENT_TOKEN_FAMILIES = [
|
|
|
2715
2811
|
billingSliderFamily,
|
|
2716
2812
|
resizableSplitFamily,
|
|
2717
2813
|
dialogFamily,
|
|
2814
|
+
popoverFamily,
|
|
2718
2815
|
glassFamily,
|
|
2816
|
+
scrollHintFamily,
|
|
2719
2817
|
tabsFamily,
|
|
2720
2818
|
skeletonFamily,
|
|
2721
2819
|
spinnerFamily,
|
|
2820
|
+
stepperFamily,
|
|
2722
2821
|
checkboxFamily,
|
|
2723
2822
|
inputFamily,
|
|
2724
2823
|
textareaFamily,
|
|
@@ -2747,6 +2846,8 @@ var COMPONENT_TOKEN_FAMILIES = [
|
|
|
2747
2846
|
layerChartFamily,
|
|
2748
2847
|
statCardFamily,
|
|
2749
2848
|
keyValueListFamily,
|
|
2849
|
+
cardFamily,
|
|
2850
|
+
richTextFamily,
|
|
2750
2851
|
adminUiFamily
|
|
2751
2852
|
];
|
|
2752
2853
|
var COMPONENT_TOKEN_FAMILY_BY_NAME = new Map(
|
|
@@ -3284,6 +3385,12 @@ var SQUIRCLE_FALLBACK = [
|
|
|
3284
3385
|
" }",
|
|
3285
3386
|
"}"
|
|
3286
3387
|
].join("\n");
|
|
3388
|
+
function forceSquircleFallback(css) {
|
|
3389
|
+
const gate = /@supports\s+not\s*\(\s*corner-shape\s*:\s*squircle\s*\)/g;
|
|
3390
|
+
return `${css.replace(gate, "@media all")}
|
|
3391
|
+
*, *::before, *::after { corner-shape: round !important; }
|
|
3392
|
+
`;
|
|
3393
|
+
}
|
|
3287
3394
|
function squirclePath(r, i) {
|
|
3288
3395
|
const h = `${r} * 0.082`;
|
|
3289
3396
|
const lo = (v) => `calc(${i} + ${v})`;
|
|
@@ -3884,6 +3991,7 @@ export {
|
|
|
3884
3991
|
generateCornerShapeDecls,
|
|
3885
3992
|
CORNER_SHAPE_BINDING,
|
|
3886
3993
|
SQUIRCLE_FALLBACK,
|
|
3994
|
+
forceSquircleFallback,
|
|
3887
3995
|
DEFAULT_EASING_OUT,
|
|
3888
3996
|
generateOptInMotionDurationDecls,
|
|
3889
3997
|
generateFontSizeDecls,
|
package/dist/index.d.ts
CHANGED
|
@@ -1226,6 +1226,13 @@ var properties = {
|
|
|
1226
1226
|
$ref: "#/$defs/componentTokenBinding"
|
|
1227
1227
|
}
|
|
1228
1228
|
},
|
|
1229
|
+
"scroll-hint": {
|
|
1230
|
+
type: "object",
|
|
1231
|
+
description: "ScrollHint — the \"More Below\" pill pinned to a scroll box's bottom edge: the solid chip's fill, edge and ink, the fill it takes over a photo, and the gap it undoes. Keys: bg, border, color, glass-bg, gap.",
|
|
1232
|
+
additionalProperties: {
|
|
1233
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1229
1236
|
dialog: {
|
|
1230
1237
|
type: "object",
|
|
1231
1238
|
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.",
|
|
@@ -1233,16 +1240,23 @@ var properties = {
|
|
|
1233
1240
|
$ref: "#/$defs/componentTokenBinding"
|
|
1234
1241
|
}
|
|
1235
1242
|
},
|
|
1243
|
+
popover: {
|
|
1244
|
+
type: "object",
|
|
1245
|
+
description: "Popover's panel — corners, inset, fill and shadow — and the stay-mounted (`forceMount`) fade's timing, curve and rise. Under `data-glass=\"on\"` the panel reads the glass layer's fill, blur, shadow and ink; a bound `bg` or `shadow` wins in every look. Keys: radius, padding, bg, shadow, duration, easing, rise, item-bg, item-bg-hover.",
|
|
1246
|
+
additionalProperties: {
|
|
1247
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1236
1250
|
glass: {
|
|
1237
1251
|
type: "object",
|
|
1238
|
-
description: "The glass layer over a photo: surface fill, blur, edge, lift, shadow
|
|
1252
|
+
description: "The glass layer over a photo: surface fill, blur, edge, lift, shadow, on-photo ink, the scrim under white labels with its ink and shadow, plus the glass values controls read. Draws only inside `data-glass=\"on\"`; elsewhere components keep their solid surface and border. Keys: fill, blur, edge, lift, shadow, ink, scrim, scrim-ink, ink-shadow, control-fill, control-hover-fill, control-ring, control-ink, control-blur.",
|
|
1239
1253
|
additionalProperties: {
|
|
1240
1254
|
$ref: "#/$defs/componentTokenBinding"
|
|
1241
1255
|
}
|
|
1242
1256
|
},
|
|
1243
1257
|
tabs: {
|
|
1244
1258
|
type: "object",
|
|
1245
|
-
description: "Tab rail and trigger treatment, for
|
|
1259
|
+
description: "Tab rail and trigger treatment, for the segmented (`default`), underlined (`line`) and sliding-highlight (`keyed`) 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, keyed-key, keyed-fill, keyed-ink, keyed-radius.",
|
|
1246
1260
|
additionalProperties: {
|
|
1247
1261
|
$ref: "#/$defs/componentTokenBinding"
|
|
1248
1262
|
}
|
|
@@ -1261,6 +1275,13 @@ var properties = {
|
|
|
1261
1275
|
$ref: "#/$defs/componentTokenBinding"
|
|
1262
1276
|
}
|
|
1263
1277
|
},
|
|
1278
|
+
stepper: {
|
|
1279
|
+
type: "object",
|
|
1280
|
+
description: "Stepper's `rail` variant — row gap and inset, the space between mark and label, label size, weight and tracking, and the dot mark's size and current width. Keys: rail-gap, rail-padding, rail-mark-gap, rail-font-size, rail-font-weight, rail-letter-spacing, rail-mark-size, rail-mark-active-width.",
|
|
1281
|
+
additionalProperties: {
|
|
1282
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1264
1285
|
checkbox: {
|
|
1265
1286
|
type: "object",
|
|
1266
1287
|
description: "Control sizing — the D3 Tier-2 `--checkbox-size` / `-radius` / `-bg` / `-border` set, promoted from the admin-ui audit to a bindable contract. Keys: size, radius, bg, border, edgeless-bg, bg-checked, border-checked.",
|
|
@@ -1282,6 +1303,13 @@ var properties = {
|
|
|
1282
1303
|
$ref: "#/$defs/componentTokenBinding"
|
|
1283
1304
|
}
|
|
1284
1305
|
},
|
|
1306
|
+
card: {
|
|
1307
|
+
type: "object",
|
|
1308
|
+
description: "Card — the corner radius, the glass variant's fill, blur, shadow and layers, and the editable state's hover fill and shadow and its pen's size and inset. Keys: radius, glass-bg, glass-filter, glass-shadow, glass-display, edge-display, editable-hover-bg, editable-hover-shadow, pen-size, pen-inset.",
|
|
1309
|
+
additionalProperties: {
|
|
1310
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1311
|
+
}
|
|
1312
|
+
},
|
|
1285
1313
|
"stat-card": {
|
|
1286
1314
|
type: "object",
|
|
1287
1315
|
description: "StatCard — the card's edge, corners, elevation and inset, the rule above the footer, and the label, value and footer type. Keys: border, radius, shadow, padding, footer-border, footer-font-size, footer-font-weight, footer-line-height, footer-color, value-font-family, value-font-size, value-font-weight, value-line-height, value-letter-spacing, label-font-size, label-font-weight, label-line-height, label-letter-spacing, label-color.",
|
|
@@ -1296,6 +1324,13 @@ var properties = {
|
|
|
1296
1324
|
$ref: "#/$defs/componentTokenBinding"
|
|
1297
1325
|
}
|
|
1298
1326
|
},
|
|
1327
|
+
"rich-text": {
|
|
1328
|
+
type: "object",
|
|
1329
|
+
description: "RichText link underline colour. Link text inherits the surrounding ink. Keys: link-underline.",
|
|
1330
|
+
additionalProperties: {
|
|
1331
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1332
|
+
}
|
|
1333
|
+
},
|
|
1299
1334
|
textarea: {
|
|
1300
1335
|
type: "object",
|
|
1301
1336
|
description: "Textarea shape at the default `md` size. Keys: padding, radius.",
|
|
@@ -1389,7 +1424,7 @@ var properties = {
|
|
|
1389
1424
|
},
|
|
1390
1425
|
"toggle-group": {
|
|
1391
1426
|
type: "object",
|
|
1392
|
-
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
|
|
1427
|
+
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, description line, check box and round mark. 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-text, option-font-size, option-font-weight, option-description-text, option-description-font-size, 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.",
|
|
1393
1428
|
additionalProperties: {
|
|
1394
1429
|
$ref: "#/$defs/componentTokenBinding"
|
|
1395
1430
|
}
|
|
@@ -2350,6 +2385,16 @@ type AliasedFamilies = ReadonlyMap<string, string>;
|
|
|
2350
2385
|
* packages/tokens/src/generate/generate-css.ts output format.
|
|
2351
2386
|
*/
|
|
2352
2387
|
|
|
2388
|
+
/**
|
|
2389
|
+
* VI-841: test-only. `css` with the squircle fallback forced on, so a test can
|
|
2390
|
+
* draw it in an engine that has `corner-shape` (Chromium, newer Playwright
|
|
2391
|
+
* WebKit builds). Every `@supports not (corner-shape: squircle)` gate, the
|
|
2392
|
+
* theme's and each component's, becomes `@media all`, and a trailing rule turns
|
|
2393
|
+
* native `corner-shape` off. The `--corner-shape` style-query gate stays, so
|
|
2394
|
+
* round themes and round subtrees are still untouched. Nothing calls it on
|
|
2395
|
+
* production output: a test passes each stylesheet through it.
|
|
2396
|
+
*/
|
|
2397
|
+
declare function forceSquircleFallback(css: string): string;
|
|
2353
2398
|
declare function generatePrimitivesCss(primitives: GeneratedPrimitives, config: ResolvedThemeConfig, options?: {
|
|
2354
2399
|
aliasedFamilies?: AliasedFamilies;
|
|
2355
2400
|
scopePrefix?: string;
|
|
@@ -2601,4 +2646,4 @@ declare const FONT_VERTICAL_METRICS: Record<string, FontVerticalMetrics>;
|
|
|
2601
2646
|
/** The `--font-ascent` / `--font-descent` declarations for a body family, or none when the face is unmeasured. */
|
|
2602
2647
|
declare function generateFontMetricDecls(family: string): string[];
|
|
2603
2648
|
|
|
2604
|
-
export { type BrandPassthrough, BrandResolution, BrandSlot, BrandSource, BrandStrategy, BrandStrategyContext, BrandStrategyIssue, BrandStrategyValidationResult, type CSSFile, ColorRole, type Confidence, DEFAULT_VISOR_BRAND, type ExtractedToken, type ExtractionResult, FONT_VERTICAL_METRICS, FONT_WEIGHT_ALIASES, type FontCoverageError, type FontCoverageResult, FontDisplayStrategy, type FontFaceDeclaration, FontResolution, FontResolveOptions, type FontVerticalMetrics, FullShadeScale, GeneratedPrimitives, GoogleFontEntry, MODE_DEPENDENT_SEMANTIC_ALIASES, OKLCH, ParsedColor, RGB, ResolvedThemeConfig, type ResolvedWeightRamp, SEMANTIC_MAP, SelectiveShadeScale, SemanticTokens, SerializedBrandStrategy, ShadeStep, TAILWIND_GRAY, ThemeBrandResult, ThemeData, ThemeFontResult, ThemeOutput, type ThemeValidationResult, VISOR_BRANDS_CDN, VISOR_CORE_DARK_SEMANTIC_ALIASES, VISOR_CORE_SEMANTIC_ALIASES, VISOR_DEFAULT_BRAND_PATH, VISOR_FONTS_CDN, type ValidateOptions, type ValidationIssue, type ValidationSeverity, VisorBrand, VisorThemeConfig, VisorTypography, WEIGHT_RAMP_TARGETS, applyOverrides, assignSemanticTokens, buildVisorBrandUrl, buildVisorFontUrl, checkBrandStrategyCoherence, checkBrandStrategyStructure, clampToSrgb, cleanFontValue, collectBrandPassthrough, collectDeclaredProperties, compositeOverBackground, declaresWeights, exportTheme, extractFromCSS, formatFontCoverageError, generateDarkCss, generateFontMetricDecls, generateFontWeightDecls, generateFullBundleCss, generateLightCss, generatePreloadLinks, generatePrimitives, generatePrimitivesCss, generateSemanticAliasDecls, generateSemanticCss, generateShadeScale, generateStylesheetLinks, generateTheme, generateThemeData, generateThemeDataFromConfig, generateThemeFromConfig, getContrastRatio, getKnownTokenRefs, getLuminance, googleFontsCatalog, hasBrandPassthrough, hexToOklch, hexToRgb, isValidColor, isValidHex, isVisorThemeConfig, loadedWeights, lookupFontWeightAlias, lookupGoogleFont, matchLoadedWeight, normalizeHex, oklchToHex, parseCSSDeclarations, parseColor, parseConfig, parseFontFaceDeclarations, parseHex, parseHsla, parseOklch, parseRgba, resolveBrandSlot, resolveBrandSource, resolveConfig, resolveFont, resolveRoleWeight, resolveThemeBrand, resolveThemeFonts, resolveWeightRamp, rgbToHex, serializeBrandStrategy, serializeColor, validate, validateBrandStrategy, validateConfig, validateFontCoverage, visorTheme_schema as visorThemeSchema };
|
|
2649
|
+
export { type BrandPassthrough, BrandResolution, BrandSlot, BrandSource, BrandStrategy, BrandStrategyContext, BrandStrategyIssue, BrandStrategyValidationResult, type CSSFile, ColorRole, type Confidence, DEFAULT_VISOR_BRAND, type ExtractedToken, type ExtractionResult, FONT_VERTICAL_METRICS, FONT_WEIGHT_ALIASES, type FontCoverageError, type FontCoverageResult, FontDisplayStrategy, type FontFaceDeclaration, FontResolution, FontResolveOptions, type FontVerticalMetrics, FullShadeScale, GeneratedPrimitives, GoogleFontEntry, MODE_DEPENDENT_SEMANTIC_ALIASES, OKLCH, ParsedColor, RGB, ResolvedThemeConfig, type ResolvedWeightRamp, SEMANTIC_MAP, SelectiveShadeScale, SemanticTokens, SerializedBrandStrategy, ShadeStep, TAILWIND_GRAY, ThemeBrandResult, ThemeData, ThemeFontResult, ThemeOutput, type ThemeValidationResult, VISOR_BRANDS_CDN, VISOR_CORE_DARK_SEMANTIC_ALIASES, VISOR_CORE_SEMANTIC_ALIASES, VISOR_DEFAULT_BRAND_PATH, VISOR_FONTS_CDN, type ValidateOptions, type ValidationIssue, type ValidationSeverity, VisorBrand, VisorThemeConfig, VisorTypography, WEIGHT_RAMP_TARGETS, applyOverrides, assignSemanticTokens, buildVisorBrandUrl, buildVisorFontUrl, checkBrandStrategyCoherence, checkBrandStrategyStructure, clampToSrgb, cleanFontValue, collectBrandPassthrough, collectDeclaredProperties, compositeOverBackground, declaresWeights, exportTheme, extractFromCSS, forceSquircleFallback, formatFontCoverageError, generateDarkCss, generateFontMetricDecls, generateFontWeightDecls, generateFullBundleCss, generateLightCss, generatePreloadLinks, generatePrimitives, generatePrimitivesCss, generateSemanticAliasDecls, generateSemanticCss, generateShadeScale, generateStylesheetLinks, generateTheme, generateThemeData, generateThemeDataFromConfig, generateThemeFromConfig, getContrastRatio, getKnownTokenRefs, getLuminance, googleFontsCatalog, hasBrandPassthrough, hexToOklch, hexToRgb, isValidColor, isValidHex, isVisorThemeConfig, loadedWeights, lookupFontWeightAlias, lookupGoogleFont, matchLoadedWeight, normalizeHex, oklchToHex, parseCSSDeclarations, parseColor, parseConfig, parseFontFaceDeclarations, parseHex, parseHsla, parseOklch, parseRgba, resolveBrandSlot, resolveBrandSource, resolveConfig, resolveFont, resolveRoleWeight, resolveThemeBrand, resolveThemeFonts, resolveWeightRamp, rgbToHex, serializeBrandStrategy, serializeColor, validate, validateBrandStrategy, validateConfig, validateFontCoverage, visorTheme_schema as visorThemeSchema };
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
componentTokenName,
|
|
27
27
|
compositeOverBackground,
|
|
28
28
|
declaresWeights,
|
|
29
|
+
forceSquircleFallback,
|
|
29
30
|
generateDarkCss,
|
|
30
31
|
generateFontMetricDecls,
|
|
31
32
|
generateFontWeightDecls,
|
|
@@ -69,7 +70,7 @@ import {
|
|
|
69
70
|
rgbToOklch,
|
|
70
71
|
serializeColor,
|
|
71
72
|
validateComponentBindings
|
|
72
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-JEGHNZOT.js";
|
|
73
74
|
|
|
74
75
|
// src/fonts/validate-coverage.ts
|
|
75
76
|
var FONT_VAR_RE = /--font-(heading|display|body|sans|mono)\s*:\s*([^;]+);/g;
|
|
@@ -1245,6 +1246,13 @@ var visor_theme_schema_default = {
|
|
|
1245
1246
|
$ref: "#/$defs/componentTokenBinding"
|
|
1246
1247
|
}
|
|
1247
1248
|
},
|
|
1249
|
+
"scroll-hint": {
|
|
1250
|
+
type: "object",
|
|
1251
|
+
description: `ScrollHint \u2014 the "More Below" pill pinned to a scroll box's bottom edge: the solid chip's fill, edge and ink, the fill it takes over a photo, and the gap it undoes. Keys: bg, border, color, glass-bg, gap.`,
|
|
1252
|
+
additionalProperties: {
|
|
1253
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1254
|
+
}
|
|
1255
|
+
},
|
|
1248
1256
|
dialog: {
|
|
1249
1257
|
type: "object",
|
|
1250
1258
|
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.",
|
|
@@ -1252,16 +1260,23 @@ var visor_theme_schema_default = {
|
|
|
1252
1260
|
$ref: "#/$defs/componentTokenBinding"
|
|
1253
1261
|
}
|
|
1254
1262
|
},
|
|
1263
|
+
popover: {
|
|
1264
|
+
type: "object",
|
|
1265
|
+
description: "Popover's panel \u2014 corners, inset, fill and shadow \u2014 and the stay-mounted (`forceMount`) fade's timing, curve and rise. Under `data-glass=\"on\"` the panel reads the glass layer's fill, blur, shadow and ink; a bound `bg` or `shadow` wins in every look. Keys: radius, padding, bg, shadow, duration, easing, rise, item-bg, item-bg-hover.",
|
|
1266
|
+
additionalProperties: {
|
|
1267
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1268
|
+
}
|
|
1269
|
+
},
|
|
1255
1270
|
glass: {
|
|
1256
1271
|
type: "object",
|
|
1257
|
-
description: 'The glass layer over a photo: surface fill, blur, edge, lift, shadow
|
|
1272
|
+
description: 'The glass layer over a photo: surface fill, blur, edge, lift, shadow, on-photo ink, the scrim under white labels with its ink and shadow, plus the glass values controls read. Draws only inside `data-glass="on"`; elsewhere components keep their solid surface and border. Keys: fill, blur, edge, lift, shadow, ink, scrim, scrim-ink, ink-shadow, control-fill, control-hover-fill, control-ring, control-ink, control-blur.',
|
|
1258
1273
|
additionalProperties: {
|
|
1259
1274
|
$ref: "#/$defs/componentTokenBinding"
|
|
1260
1275
|
}
|
|
1261
1276
|
},
|
|
1262
1277
|
tabs: {
|
|
1263
1278
|
type: "object",
|
|
1264
|
-
description: "Tab rail and trigger treatment, for
|
|
1279
|
+
description: "Tab rail and trigger treatment, for the segmented (`default`), underlined (`line`) and sliding-highlight (`keyed`) 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, keyed-key, keyed-fill, keyed-ink, keyed-radius.",
|
|
1265
1280
|
additionalProperties: {
|
|
1266
1281
|
$ref: "#/$defs/componentTokenBinding"
|
|
1267
1282
|
}
|
|
@@ -1280,6 +1295,13 @@ var visor_theme_schema_default = {
|
|
|
1280
1295
|
$ref: "#/$defs/componentTokenBinding"
|
|
1281
1296
|
}
|
|
1282
1297
|
},
|
|
1298
|
+
stepper: {
|
|
1299
|
+
type: "object",
|
|
1300
|
+
description: "Stepper's `rail` variant \u2014 row gap and inset, the space between mark and label, label size, weight and tracking, and the dot mark's size and current width. Keys: rail-gap, rail-padding, rail-mark-gap, rail-font-size, rail-font-weight, rail-letter-spacing, rail-mark-size, rail-mark-active-width.",
|
|
1301
|
+
additionalProperties: {
|
|
1302
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1283
1305
|
checkbox: {
|
|
1284
1306
|
type: "object",
|
|
1285
1307
|
description: "Control sizing \u2014 the D3 Tier-2 `--checkbox-size` / `-radius` / `-bg` / `-border` set, promoted from the admin-ui audit to a bindable contract. Keys: size, radius, bg, border, edgeless-bg, bg-checked, border-checked.",
|
|
@@ -1301,6 +1323,13 @@ var visor_theme_schema_default = {
|
|
|
1301
1323
|
$ref: "#/$defs/componentTokenBinding"
|
|
1302
1324
|
}
|
|
1303
1325
|
},
|
|
1326
|
+
card: {
|
|
1327
|
+
type: "object",
|
|
1328
|
+
description: "Card \u2014 the corner radius, the glass variant's fill, blur, shadow and layers, and the editable state's hover fill and shadow and its pen's size and inset. Keys: radius, glass-bg, glass-filter, glass-shadow, glass-display, edge-display, editable-hover-bg, editable-hover-shadow, pen-size, pen-inset.",
|
|
1329
|
+
additionalProperties: {
|
|
1330
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1331
|
+
}
|
|
1332
|
+
},
|
|
1304
1333
|
"stat-card": {
|
|
1305
1334
|
type: "object",
|
|
1306
1335
|
description: "StatCard \u2014 the card's edge, corners, elevation and inset, the rule above the footer, and the label, value and footer type. Keys: border, radius, shadow, padding, footer-border, footer-font-size, footer-font-weight, footer-line-height, footer-color, value-font-family, value-font-size, value-font-weight, value-line-height, value-letter-spacing, label-font-size, label-font-weight, label-line-height, label-letter-spacing, label-color.",
|
|
@@ -1315,6 +1344,13 @@ var visor_theme_schema_default = {
|
|
|
1315
1344
|
$ref: "#/$defs/componentTokenBinding"
|
|
1316
1345
|
}
|
|
1317
1346
|
},
|
|
1347
|
+
"rich-text": {
|
|
1348
|
+
type: "object",
|
|
1349
|
+
description: "RichText link underline colour. Link text inherits the surrounding ink. Keys: link-underline.",
|
|
1350
|
+
additionalProperties: {
|
|
1351
|
+
$ref: "#/$defs/componentTokenBinding"
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1318
1354
|
textarea: {
|
|
1319
1355
|
type: "object",
|
|
1320
1356
|
description: "Textarea shape at the default `md` size. Keys: padding, radius.",
|
|
@@ -1408,7 +1444,7 @@ var visor_theme_schema_default = {
|
|
|
1408
1444
|
},
|
|
1409
1445
|
"toggle-group": {
|
|
1410
1446
|
type: "object",
|
|
1411
|
-
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
|
|
1447
|
+
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, description line, check box and round mark. 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-text, option-font-size, option-font-weight, option-description-text, option-description-font-size, 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.",
|
|
1412
1448
|
additionalProperties: {
|
|
1413
1449
|
$ref: "#/$defs/componentTokenBinding"
|
|
1414
1450
|
}
|
|
@@ -4653,6 +4689,7 @@ export {
|
|
|
4653
4689
|
declaresWeights,
|
|
4654
4690
|
exportTheme,
|
|
4655
4691
|
extractFromCSS,
|
|
4692
|
+
forceSquircleFallback,
|
|
4656
4693
|
formatFontCoverageError,
|
|
4657
4694
|
generateDarkCss,
|
|
4658
4695
|
generateFontMetricDecls,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loworbitstudio/visor-theme-engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.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",
|
|
@@ -623,6 +623,13 @@
|
|
|
623
623
|
"$ref": "#/$defs/componentTokenBinding"
|
|
624
624
|
}
|
|
625
625
|
},
|
|
626
|
+
"scroll-hint": {
|
|
627
|
+
"type": "object",
|
|
628
|
+
"description": "ScrollHint — the \"More Below\" pill pinned to a scroll box's bottom edge: the solid chip's fill, edge and ink, the fill it takes over a photo, and the gap it undoes. Keys: bg, border, color, glass-bg, gap.",
|
|
629
|
+
"additionalProperties": {
|
|
630
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
631
|
+
}
|
|
632
|
+
},
|
|
626
633
|
"dialog": {
|
|
627
634
|
"type": "object",
|
|
628
635
|
"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.",
|
|
@@ -630,16 +637,23 @@
|
|
|
630
637
|
"$ref": "#/$defs/componentTokenBinding"
|
|
631
638
|
}
|
|
632
639
|
},
|
|
640
|
+
"popover": {
|
|
641
|
+
"type": "object",
|
|
642
|
+
"description": "Popover's panel — corners, inset, fill and shadow — and the stay-mounted (`forceMount`) fade's timing, curve and rise. Under `data-glass=\"on\"` the panel reads the glass layer's fill, blur, shadow and ink; a bound `bg` or `shadow` wins in every look. Keys: radius, padding, bg, shadow, duration, easing, rise, item-bg, item-bg-hover.",
|
|
643
|
+
"additionalProperties": {
|
|
644
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
645
|
+
}
|
|
646
|
+
},
|
|
633
647
|
"glass": {
|
|
634
648
|
"type": "object",
|
|
635
|
-
"description": "The glass layer over a photo: surface fill, blur, edge, lift, shadow
|
|
649
|
+
"description": "The glass layer over a photo: surface fill, blur, edge, lift, shadow, on-photo ink, the scrim under white labels with its ink and shadow, plus the glass values controls read. Draws only inside `data-glass=\"on\"`; elsewhere components keep their solid surface and border. Keys: fill, blur, edge, lift, shadow, ink, scrim, scrim-ink, ink-shadow, control-fill, control-hover-fill, control-ring, control-ink, control-blur.",
|
|
636
650
|
"additionalProperties": {
|
|
637
651
|
"$ref": "#/$defs/componentTokenBinding"
|
|
638
652
|
}
|
|
639
653
|
},
|
|
640
654
|
"tabs": {
|
|
641
655
|
"type": "object",
|
|
642
|
-
"description": "Tab rail and trigger treatment, for
|
|
656
|
+
"description": "Tab rail and trigger treatment, for the segmented (`default`), underlined (`line`) and sliding-highlight (`keyed`) 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, keyed-key, keyed-fill, keyed-ink, keyed-radius.",
|
|
643
657
|
"additionalProperties": {
|
|
644
658
|
"$ref": "#/$defs/componentTokenBinding"
|
|
645
659
|
}
|
|
@@ -658,6 +672,13 @@
|
|
|
658
672
|
"$ref": "#/$defs/componentTokenBinding"
|
|
659
673
|
}
|
|
660
674
|
},
|
|
675
|
+
"stepper": {
|
|
676
|
+
"type": "object",
|
|
677
|
+
"description": "Stepper's `rail` variant — row gap and inset, the space between mark and label, label size, weight and tracking, and the dot mark's size and current width. Keys: rail-gap, rail-padding, rail-mark-gap, rail-font-size, rail-font-weight, rail-letter-spacing, rail-mark-size, rail-mark-active-width.",
|
|
678
|
+
"additionalProperties": {
|
|
679
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
680
|
+
}
|
|
681
|
+
},
|
|
661
682
|
"checkbox": {
|
|
662
683
|
"type": "object",
|
|
663
684
|
"description": "Control sizing — the D3 Tier-2 `--checkbox-size` / `-radius` / `-bg` / `-border` set, promoted from the admin-ui audit to a bindable contract. Keys: size, radius, bg, border, edgeless-bg, bg-checked, border-checked.",
|
|
@@ -679,6 +700,13 @@
|
|
|
679
700
|
"$ref": "#/$defs/componentTokenBinding"
|
|
680
701
|
}
|
|
681
702
|
},
|
|
703
|
+
"card": {
|
|
704
|
+
"type": "object",
|
|
705
|
+
"description": "Card \u2014 the corner radius, the glass variant's fill, blur, shadow and layers, and the editable state's hover fill and shadow and its pen's size and inset. Keys: radius, glass-bg, glass-filter, glass-shadow, glass-display, edge-display, editable-hover-bg, editable-hover-shadow, pen-size, pen-inset.",
|
|
706
|
+
"additionalProperties": {
|
|
707
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
682
710
|
"stat-card": {
|
|
683
711
|
"type": "object",
|
|
684
712
|
"description": "StatCard \u2014 the card's edge, corners, elevation and inset, the rule above the footer, and the label, value and footer type. Keys: border, radius, shadow, padding, footer-border, footer-font-size, footer-font-weight, footer-line-height, footer-color, value-font-family, value-font-size, value-font-weight, value-line-height, value-letter-spacing, label-font-size, label-font-weight, label-line-height, label-letter-spacing, label-color.",
|
|
@@ -693,6 +721,13 @@
|
|
|
693
721
|
"$ref": "#/$defs/componentTokenBinding"
|
|
694
722
|
}
|
|
695
723
|
},
|
|
724
|
+
"rich-text": {
|
|
725
|
+
"type": "object",
|
|
726
|
+
"description": "RichText link underline colour. Link text inherits the surrounding ink. Keys: link-underline.",
|
|
727
|
+
"additionalProperties": {
|
|
728
|
+
"$ref": "#/$defs/componentTokenBinding"
|
|
729
|
+
}
|
|
730
|
+
},
|
|
696
731
|
"textarea": {
|
|
697
732
|
"type": "object",
|
|
698
733
|
"description": "Textarea shape at the default `md` size. Keys: padding, radius.",
|
|
@@ -786,7 +821,7 @@
|
|
|
786
821
|
},
|
|
787
822
|
"toggle-group": {
|
|
788
823
|
"type": "object",
|
|
789
|
-
"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
|
|
824
|
+
"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, description line, check box and round mark. 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-text, option-font-size, option-font-weight, option-description-text, option-description-font-size, 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.",
|
|
790
825
|
"additionalProperties": {
|
|
791
826
|
"$ref": "#/$defs/componentTokenBinding"
|
|
792
827
|
}
|