@taprootio/espalier 7.3.0 → 7.6.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/custom-elements.json +323 -15
  3. package/dist/badge/esp-badge.d.ts +39 -0
  4. package/dist/badge/esp-badge.js +35 -6
  5. package/dist/box/esp-box.d.ts +4 -2
  6. package/dist/box/esp-box.js +6 -6
  7. package/dist/breadcrumbs/esp-breadcrumb.d.ts +1 -0
  8. package/dist/breadcrumbs/esp-breadcrumb.js +11 -3
  9. package/dist/breadcrumbs/esp-breadcrumbs.js +6 -6
  10. package/dist/button/esp-button-group.js +8 -3
  11. package/dist/button/esp-button.d.ts +3 -0
  12. package/dist/button/esp-button.js +47 -13
  13. package/dist/cli/theme-check.js +2 -2
  14. package/dist/footer/esp-footer-link-group.js +11 -8
  15. package/dist/footer/esp-footer.d.ts +5 -3
  16. package/dist/footer/esp-footer.js +25 -10
  17. package/dist/footer/paint-registration.js +1 -1
  18. package/dist/menu/paint-registration.js +1 -1
  19. package/dist/root/esp-root.d.ts +13 -0
  20. package/dist/root/esp-root.js +69 -10
  21. package/dist/root/helpers/compute-semantic-properties.js +1 -1
  22. package/dist/root/helpers/compute-theme-properties.js +1 -1
  23. package/dist/section/esp-section.d.ts +5 -4
  24. package/dist/section/esp-section.js +1 -1
  25. package/dist/shared/blockquote-styles.d.ts +5 -1
  26. package/dist/shared/blockquote-styles.js +8 -4
  27. package/dist/shared/color-engine.js +1 -1
  28. package/dist/shared/component-property-compiler.js +1 -1
  29. package/dist/shared/component-property-diagnostics.js +1 -1
  30. package/dist/shared/component-property-normalizer.js +1 -1
  31. package/dist/shared/esp-element-base.js +2 -2
  32. package/dist/shared/footer-ink-styles.js +18 -0
  33. package/dist/shared/footer-ink.js +1 -0
  34. package/dist/shared/paint-catalog.js +1 -1
  35. package/dist/shared/paint-fit.js +1 -1
  36. package/dist/shared/paint-types.d.ts +9 -0
  37. package/dist/shared/public-token-catalog.generated.js +1 -1
  38. package/dist/shared/scale-engine.js +1 -1
  39. package/dist/shared/semantic-color-names.js +1 -1
  40. package/dist/shared/settable-component-properties.js +1 -1
  41. package/dist/shared/theme-fit-report.d.ts +6 -4
  42. package/dist/shared/theme-fit-report.js +1 -1
  43. package/dist/testing/observe-paint.iife.js +2 -2
  44. package/dist/testing/observe-paint.js +3 -3
  45. package/espalier.css-data.json +139 -7
  46. package/espalier.token-manifest.json +1038 -62
  47. package/package.json +1 -1
@@ -69,33 +69,85 @@
69
69
  "name": "--esp-badge-color",
70
70
  "description": "Text color of a neutral badge. Defaults to `var(--esp-color-text)`. The theme fits it against the neutral badge background at APCA Lc 75 when either property is set in the theme."
71
71
  },
72
+ {
73
+ "name": "--esp-badge-link-background",
74
+ "description": "Resting fill of a linked badge. Defaults to `var(--esp-color-background)`."
75
+ },
76
+ {
77
+ "name": "--esp-badge-link-border-color",
78
+ "description": "Resting border of a linked badge. Defaults to `var(--esp-color-link)`."
79
+ },
80
+ {
81
+ "name": "--esp-badge-link-color",
82
+ "description": "Resting ink of a linked badge. Defaults to `var(--esp-color-link)`. The theme fits this ink against the resting fill at APCA Lc 75 when either property is set."
83
+ },
84
+ {
85
+ "name": "--esp-badge-link-focus-background",
86
+ "description": "Focus fill of a linked badge. Defaults to `var(--esp-color-link-hover-bg)`."
87
+ },
88
+ {
89
+ "name": "--esp-badge-link-focus-border-color",
90
+ "description": "Focus border of a linked badge. Defaults to `var(--esp-color-link-hover)`."
91
+ },
92
+ {
93
+ "name": "--esp-badge-link-focus-color",
94
+ "description": "Keyboard focus ink of a linked badge inside the light DOM of `esp-root`. Defaults to `var(--esp-color-link-hover)`. The theme fits this ink against the focus fill at APCA Lc 75 when either property is set."
95
+ },
96
+ {
97
+ "name": "--esp-badge-link-focus-ring-color",
98
+ "description": "Color of the outer keyboard focus ring on a badge inside a light-DOM anchor marked `data-esp-badge-link`. Defaults to `var(--esp-color-link)`. Choose a color with at least 3:1 contrast against the surface surrounding the badge."
99
+ },
100
+ {
101
+ "name": "--esp-badge-link-hover-background",
102
+ "description": "Hover fill of a linked badge. Defaults to `var(--esp-color-link-hover-bg)`."
103
+ },
104
+ {
105
+ "name": "--esp-badge-link-hover-border-color",
106
+ "description": "Hover border of a linked badge. Defaults to `var(--esp-color-link-hover)`."
107
+ },
108
+ {
109
+ "name": "--esp-badge-link-hover-color",
110
+ "description": "Hover ink of a linked badge. Defaults to `var(--esp-color-link-hover)`. The theme fits this ink against the hover fill at APCA Lc 75 when either property is set."
111
+ },
72
112
  {
73
113
  "name": "--esp-blockquote-bar-color",
74
114
  "description": "Color of the quote's inline-start border. Defaults to `var(--esp-color-border)`."
75
115
  },
116
+ {
117
+ "name": "--esp-blockquote-bar-width",
118
+ "description": "Width of the quote's inline-start border, from `0` to `1em`. Defaults to `0.3em`."
119
+ },
120
+ {
121
+ "name": "--esp-blockquote-font-family",
122
+ "description": "The quote's font family: `body`, `heading` or `monospace`. Unset by default, so the quote keeps the surrounding text's family. Takes effect only through a theme's `componentProperties`, which maps the keyword; a raw CSS declaration alone does nothing."
123
+ },
76
124
  {
77
125
  "name": "--esp-blockquote-glyph-color",
78
126
  "description": "Ink of the opening quote mark. Defaults to `var(--esp-blockquote-bar-color, var(--esp-color-border))`."
79
127
  },
128
+ {
129
+ "name": "--esp-blockquote-shadow",
130
+ "description": "The quote's shadow: `none`, `1`, `2` or `3` as a theme elevation step. Defaults to `none`."
131
+ },
80
132
  {
81
133
  "name": "--esp-box-background",
82
134
  "description": "Adds a layer in the background of the box. Intended for background images or gradients."
83
135
  },
84
136
  {
85
137
  "name": "--esp-box-background-image",
86
- "description": ""
138
+ "description": "The theme's box background image, painted when `--esp-box-background` is unset. Defaults to `none`."
87
139
  },
88
140
  {
89
141
  "name": "--esp-box-background-image-opacity",
90
- "description": ""
142
+ "description": "The theme's opacity for that image. Defaults to `1`."
91
143
  },
92
144
  {
93
145
  "name": "--esp-box-background-opacity",
94
- "description": "The opacity of the background layer."
146
+ "description": "The opacity of the background layer. Defaults to `--esp-box-background-image-opacity`, then `1`."
95
147
  },
96
148
  {
97
149
  "name": "--esp-box-shadow",
98
- "description": "The box's drop shadow. Defaults to the theme's `--esp-shadow-1` elevation."
150
+ "description": "The box's drop shadow: `none`, `1`, `2` or `3` as a theme elevation step. Defaults to `1`."
99
151
  },
100
152
  {
101
153
  "name": "--esp-breadcrumb-color",
@@ -121,6 +173,14 @@
121
173
  "name": "--esp-breadcrumb-separator-size",
122
174
  "description": "Width and height of a separator icon. Defaults to `var(--esp-size-normal-to-medium)`. The settable range is 0.5rem to 2rem."
123
175
  },
176
+ {
177
+ "name": "--esp-breadcrumb-separator-stroke-width",
178
+ "description": "Built-in line mark weight, from 0.5 to 6 in SVG units. Defaults to `2`."
179
+ },
180
+ {
181
+ "name": "--esp-button-border-width",
182
+ "description": "The button's border width, from `0` to `0.5rem`. Defaults to `--esp-field-border-width`, then `1px`."
183
+ },
124
184
  {
125
185
  "name": "--esp-button-group-divider",
126
186
  "description": "The border style between grouped buttons. Defaults to `1px dotted var(--esp-color-border)`."
@@ -133,6 +193,14 @@
133
193
  "name": "--esp-button-padding",
134
194
  "description": "The padding inside the button label and icon areas."
135
195
  },
196
+ {
197
+ "name": "--esp-button-press-offset",
198
+ "description": "How far the button moves down and right while pressed, from `0` to `0.5rem`, with its shadow dropped. Reduced motion skips the move. Defaults to `0`."
199
+ },
200
+ {
201
+ "name": "--esp-button-shadow",
202
+ "description": "The button's resting shadow, drawn as a drop shadow. Set `none`, `1`, `2` or `3` in `componentProperties`, or raw CSS: `none` or `<x> <y> <blur> <color>` with no spread. Defaults to `none`."
203
+ },
136
204
  {
137
205
  "name": "--esp-card-min",
138
206
  "description": ""
@@ -149,6 +217,18 @@
149
217
  "name": "--esp-checkbox-size",
150
218
  "description": "The width and height of the checkbox icon. Defaults to `var(--esp-size-normal-to-medium)`."
151
219
  },
220
+ {
221
+ "name": "--esp-code-background",
222
+ "description": "Background of inline code. Defaults to `var(--esp-color-layer-1)`."
223
+ },
224
+ {
225
+ "name": "--esp-code-border-color",
226
+ "description": "Border color of inline code and `pre` blocks. Defaults to `var(--esp-color-border)`."
227
+ },
228
+ {
229
+ "name": "--esp-code-border-style",
230
+ "description": "Border style of inline code and `pre` blocks: `dotted`, `dashed`, `solid` or `none`. Defaults to `dotted`."
231
+ },
152
232
  {
153
233
  "name": "--esp-color-action-background",
154
234
  "description": ""
@@ -665,6 +745,14 @@
665
745
  "name": "--esp-footer-border",
666
746
  "description": "Block-start footer border. Defaults to `1px solid var(--esp-color-border)`."
667
747
  },
748
+ {
749
+ "name": "--esp-footer-brand-hover-background",
750
+ "description": "Hovered configured-brand background. Defaults to `--esp-footer-link-hover-bg`, so other footer links are unaffected."
751
+ },
752
+ {
753
+ "name": "--esp-footer-brand-hover-transform",
754
+ "description": "Hovered configured-brand transform, animated like the header brand and dropped under reduced motion. Defaults to `none`. A hook, not a settable property: Taproot drives it from its footer `brandHoverGrow` setting, like the header hook."
755
+ },
668
756
  {
669
757
  "name": "--esp-footer-brand-logo-aspect-ratio",
670
758
  "description": "The ratio the configured logo's box is reserved at while the image is still loading or has failed, so alt text never decides the brand region's width. A logo that loads is always laid out at its own ratio, whatever this is set to. Defaults to `3 / 1`."
@@ -731,11 +819,11 @@
731
819
  },
732
820
  {
733
821
  "name": "--esp-footer-focus-outline",
734
- "description": "Focus-visible outline for footer links. Defaults to `2px solid var(--esp-footer-link-color, var(--esp-color-link))`."
822
+ "description": "Focus-visible outline for footer links. Defaults to a 2px solid outline in the footer link color."
735
823
  },
736
824
  {
737
825
  "name": "--esp-footer-heading-color",
738
- "description": "Heading and configured-brand color. Defaults to `var(--esp-color-headings)`."
826
+ "description": "Heading and configured-brand color. The theme fits its headings color to the default footer surface."
739
827
  },
740
828
  {
741
829
  "name": "--esp-footer-heading-font-size",
@@ -751,7 +839,7 @@
751
839
  },
752
840
  {
753
841
  "name": "--esp-footer-link-color",
754
- "description": "Link color. Defaults to `var(--esp-color-link)`."
842
+ "description": "Link color. The theme fits its link color to the default footer surface."
755
843
  },
756
844
  {
757
845
  "name": "--esp-footer-link-decoration",
@@ -1101,18 +1189,38 @@
1101
1189
  "name": "--esp-heading-1-color",
1102
1190
  "description": "Color of native light-DOM h1 headings. Defaults to `var(--esp-color-headings)`."
1103
1191
  },
1192
+ {
1193
+ "name": "--esp-heading-1-mark-color",
1194
+ "description": "Color of a text-decoration mark beneath native light-DOM h1 headings. Unset by default, which paints no mark. Takes effect only through a theme's `componentProperties`, which sets the enable toggle; a raw CSS declaration alone paints nothing."
1195
+ },
1104
1196
  {
1105
1197
  "name": "--esp-heading-2-color",
1106
1198
  "description": "Color of native light-DOM h2 headings. Defaults to `var(--esp-color-headings)`."
1107
1199
  },
1200
+ {
1201
+ "name": "--esp-heading-2-mark-color",
1202
+ "description": "Color of a text-decoration mark beneath native light-DOM h2 headings. Unset by default. Theme `componentProperties` only; a raw CSS declaration paints nothing."
1203
+ },
1108
1204
  {
1109
1205
  "name": "--esp-heading-3-color",
1110
1206
  "description": "Color of native light-DOM h3 headings. Defaults to `var(--esp-color-headings)`."
1111
1207
  },
1208
+ {
1209
+ "name": "--esp-heading-3-mark-color",
1210
+ "description": "Color of a text-decoration mark beneath native light-DOM h3 headings. Unset by default. Theme `componentProperties` only; a raw CSS declaration paints nothing."
1211
+ },
1112
1212
  {
1113
1213
  "name": "--esp-heading-4-color",
1114
1214
  "description": "Color of native light-DOM h4 headings. Defaults to `var(--esp-color-headings)`."
1115
1215
  },
1216
+ {
1217
+ "name": "--esp-heading-4-mark-color",
1218
+ "description": "Color of a text-decoration mark beneath native light-DOM h4 headings. Unset by default. Theme `componentProperties` only; a raw CSS declaration paints nothing."
1219
+ },
1220
+ {
1221
+ "name": "--esp-heading-mark-height",
1222
+ "description": "Thickness of the heading mark, from `0` (no visible mark) through thin underlines to `0.6em` (a highlighter). Defaults to `0.35em`."
1223
+ },
1116
1224
  {
1117
1225
  "name": "--esp-image-banner-block-size",
1118
1226
  "description": "A soft height target for a banner: it replaces the ratio as the banner height (viewport-fill banners), and copy that would not fit grows the banner past it. In the compact band it sizes only the image box. Unlike `block-size`, it never clips copy. Defaults to none."
@@ -1321,6 +1429,10 @@
1321
1429
  "name": "--esp-lightbox-bg-opacity",
1322
1430
  "description": "The opacity of the overlay background (falls through to --esp-vellum-opacity, default: 0.85)."
1323
1431
  },
1432
+ {
1433
+ "name": "--esp-list-marker-color",
1434
+ "description": "Color of list bullets and numbers. Defaults to the list item's text color."
1435
+ },
1324
1436
  {
1325
1437
  "name": "--esp-measure",
1326
1438
  "description": ""
@@ -1505,6 +1617,10 @@
1505
1617
  "name": "--esp-menu-top-offset",
1506
1618
  "description": "Top offset for drawers below fixed headers."
1507
1619
  },
1620
+ {
1621
+ "name": "--esp-ordered-list-marker-style",
1622
+ "description": "Numbering style of native light-DOM ordered lists: `decimal`, `decimal-leading-zero`, `lower-alpha`, `upper-alpha`, `lower-roman` or `upper-roman`. Defaults to `decimal`."
1623
+ },
1508
1624
  {
1509
1625
  "name": "--esp-page-background",
1510
1626
  "description": "The background color of the page. Fills both the surface and the canvas gutters; the canvas tokens paint over it in the gutters only. Defaults to `var(--esp-color-background)`."
@@ -1789,6 +1905,10 @@
1789
1905
  "name": "--esp-section-decoration-position",
1790
1906
  "description": "Mask position, including responsive or bleeding values. Defaults to `center`."
1791
1907
  },
1908
+ {
1909
+ "name": "--esp-section-decoration-repeat",
1910
+ "description": "Mask repeat: `no-repeat`, `repeat`, `repeat-x` or `repeat-y`. Defaults to `no-repeat`; the others tile a pattern mask across the band."
1911
+ },
1792
1912
  {
1793
1913
  "name": "--esp-section-decoration-size",
1794
1914
  "description": "Mask size. Defaults to `contain`."
@@ -1813,14 +1933,26 @@
1813
1933
  "name": "--esp-shadow-1",
1814
1934
  "description": ""
1815
1935
  },
1936
+ {
1937
+ "name": "--esp-shadow-1-geometry",
1938
+ "description": "Offsets and optional blur of the first elevation step, as `<inline> <block> [<blur>]` in `px`, `rem` or `em`. Defaults to `1px 1px 4px`."
1939
+ },
1816
1940
  {
1817
1941
  "name": "--esp-shadow-2",
1818
1942
  "description": ""
1819
1943
  },
1944
+ {
1945
+ "name": "--esp-shadow-2-geometry",
1946
+ "description": "Offsets and optional blur of the second elevation step. Defaults to `0 2px 8px`."
1947
+ },
1820
1948
  {
1821
1949
  "name": "--esp-shadow-3",
1822
1950
  "description": ""
1823
1951
  },
1952
+ {
1953
+ "name": "--esp-shadow-3-geometry",
1954
+ "description": "Offsets and optional blur of the third elevation step. Defaults to `0 6px 20px`."
1955
+ },
1824
1956
  {
1825
1957
  "name": "--esp-size-big",
1826
1958
  "description": ""