@taprootio/espalier 7.2.0 → 7.5.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 (71) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/custom-elements.json +36241 -46953
  3. package/dist/badge/esp-badge.d.ts +46 -0
  4. package/dist/badge/esp-badge.js +41 -6
  5. package/dist/breadcrumbs/breadcrumb-separators.d.ts +4 -0
  6. package/dist/breadcrumbs/breadcrumb-separators.js +1 -0
  7. package/dist/breadcrumbs/esp-breadcrumb.d.ts +14 -14
  8. package/dist/breadcrumbs/esp-breadcrumb.js +14 -7
  9. package/dist/breadcrumbs/esp-breadcrumbs.d.ts +16 -9
  10. package/dist/breadcrumbs/esp-breadcrumbs.js +9 -6
  11. package/dist/cli/theme-check.js +2 -2
  12. package/dist/font-picker/esp-font-picker.d.ts +11 -14
  13. package/dist/font-picker/esp-font-picker.js +5 -5
  14. package/dist/footer/esp-footer-link-group.js +12 -9
  15. package/dist/footer/esp-footer.d.ts +8 -3
  16. package/dist/footer/esp-footer.js +20 -12
  17. package/dist/footer/paint-registration.js +1 -1
  18. package/dist/header/esp-header-button.js +3 -3
  19. package/dist/header/esp-header.js +9 -9
  20. package/dist/index.d.ts +3 -2
  21. package/dist/index.js +1 -1
  22. package/dist/pickers/esp-picker-item.js +1 -1
  23. package/dist/root/esp-root.d.ts +8 -1
  24. package/dist/root/esp-root.js +80 -13
  25. package/dist/root/helpers/compute-semantic-properties.js +1 -1
  26. package/dist/root/helpers/compute-theme-properties.js +1 -1
  27. package/dist/root/helpers/data-companion-properties.js +1 -1
  28. package/dist/root/helpers/lightness-ramp-properties.js +1 -1
  29. package/dist/shared/blockquote-styles.d.ts +3 -0
  30. package/dist/shared/blockquote-styles.js +4 -4
  31. package/dist/shared/color-engine.js +1 -1
  32. package/dist/shared/component-property-compiler.js +1 -0
  33. package/dist/shared/component-property-diagnostics.js +1 -0
  34. package/dist/shared/component-property-normalizer.js +1 -0
  35. package/dist/shared/component-property-resets.js +1 -0
  36. package/dist/shared/document-sprite.js +1 -1
  37. package/dist/shared/esp-element-base.d.ts +3 -0
  38. package/dist/shared/esp-element-base.js +3 -3
  39. package/dist/shared/font-helpers.d.ts +3 -3
  40. package/dist/shared/font-helpers.js +1 -1
  41. package/dist/shared/font-plan.d.ts +1 -1
  42. package/dist/shared/footer-ink-styles.js +18 -0
  43. package/dist/shared/footer-ink.js +1 -0
  44. package/dist/shared/governing-root.d.ts +24 -0
  45. package/dist/shared/governing-root.js +1 -0
  46. package/dist/shared/intent-values.js +1 -1
  47. package/dist/shared/paint-catalog.js +1 -1
  48. package/dist/shared/paint-fit.js +1 -1
  49. package/dist/shared/public-token-catalog.generated.js +1 -0
  50. package/dist/shared/root-event-subscription.d.ts +11 -0
  51. package/dist/shared/scoped-style-declarations.js +1 -0
  52. package/dist/shared/semantic-color-names.d.ts +16 -0
  53. package/dist/shared/semantic-color-names.js +1 -0
  54. package/dist/shared/settable-component-properties.js +1 -0
  55. package/dist/shared/theme-core.d.ts +808 -0
  56. package/dist/shared/theme-core.js +1 -0
  57. package/dist/shared/theme-fit-report.d.ts +34 -6
  58. package/dist/shared/theme-fit-report.js +1 -1
  59. package/dist/shared/theme-mapping-grammar.d.ts +16 -0
  60. package/dist/shared/theme-mapping-grammar.js +1 -0
  61. package/dist/shared/theme-properties.d.ts +3 -1
  62. package/dist/shared/theme-properties.js +1 -1
  63. package/dist/shared/theme-validation.d.ts +52 -0
  64. package/dist/shared/theme-validation.js +1 -0
  65. package/dist/shared/theme.d.ts +4 -876
  66. package/dist/shared/theme.js +1 -1
  67. package/dist/shared/token-pairings.d.ts +1 -1
  68. package/dist/testing/observe-paint.iife.js +2 -2
  69. package/espalier.css-data.json +109 -5
  70. package/espalier.token-manifest.json +5914 -32
  71. package/package.json +5 -1
@@ -53,10 +53,70 @@
53
53
  "name": "--esp-avatar-size",
54
54
  "description": "Width and height of the avatar. Automatically set by the `size` attribute."
55
55
  },
56
+ {
57
+ "name": "--esp-badge-background",
58
+ "description": "Background of a neutral badge. Defaults to `var(--esp-color-layer-2)`."
59
+ },
60
+ {
61
+ "name": "--esp-badge-border-color",
62
+ "description": "Border color of a neutral badge. Defaults to `var(--esp-color-border)`."
63
+ },
56
64
  {
57
65
  "name": "--esp-badge-border-radius",
58
66
  "description": "Border radius of the badge shell. Defaults to `999px`."
59
67
  },
68
+ {
69
+ "name": "--esp-badge-color",
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
+ },
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
+ },
112
+ {
113
+ "name": "--esp-blockquote-bar-color",
114
+ "description": "Color of the quote's inline-start border. Defaults to `var(--esp-color-border)`."
115
+ },
116
+ {
117
+ "name": "--esp-blockquote-glyph-color",
118
+ "description": "Ink of the opening quote mark. Defaults to `var(--esp-blockquote-bar-color, var(--esp-color-border))`."
119
+ },
60
120
  {
61
121
  "name": "--esp-box-background",
62
122
  "description": "Adds a layer in the background of the box. Intended for background images or gradients."
@@ -83,7 +143,7 @@
83
143
  },
84
144
  {
85
145
  "name": "--esp-breadcrumb-current-color",
86
- "description": "The text color of the current-page crumb, which is not a link. Defaults to `--esp-breadcrumb-color` when that is set, then to `var(--esp-color-headings)`, keeping the current page distinct from the links beside it."
146
+ "description": "The text color of the current-page crumb, which is not a link. Defaults to `var(--esp-breadcrumb-color, var(--esp-color-headings))`, keeping the current page distinct from the links beside it."
87
147
  },
88
148
  {
89
149
  "name": "--esp-breadcrumb-hover-background",
@@ -95,7 +155,15 @@
95
155
  },
96
156
  {
97
157
  "name": "--esp-breadcrumb-separator-color",
98
- "description": "The color of the separator icons. Defaults to `oklch(from var(--esp-color-link) l c calc(h + 90))`, an accent that takes the link ink's scheme-adapted lightness and chroma at a different hue, so the arrows are their own color rather than the heading color. Set it on `esp-breadcrumbs` to recolor a whole trail, or on one `esp-breadcrumb` to recolor a single arrow."
158
+ "description": "The color of the separator icons. Defaults to `color-mix(in oklch, var(--esp-breadcrumb-color, var(--esp-color-link)) 70%, transparent)`. Set it on `esp-breadcrumbs` to recolor a whole trail or on one `esp-breadcrumb` to recolor a single icon."
159
+ },
160
+ {
161
+ "name": "--esp-breadcrumb-separator-size",
162
+ "description": "Width and height of a separator icon. Defaults to `var(--esp-size-normal-to-medium)`. The settable range is 0.5rem to 2rem."
163
+ },
164
+ {
165
+ "name": "--esp-breadcrumb-separator-stroke-width",
166
+ "description": "Built-in line mark weight, from 0.5 to 6 in SVG units. Defaults to `2`."
99
167
  },
100
168
  {
101
169
  "name": "--esp-button-group-divider",
@@ -707,11 +775,19 @@
707
775
  },
708
776
  {
709
777
  "name": "--esp-footer-focus-outline",
710
- "description": "Focus-visible outline for footer links. Defaults to `2px solid var(--esp-footer-link-color, var(--esp-color-link))`."
778
+ "description": "Focus-visible outline for footer links. Defaults to a 2px solid outline in the footer link color."
711
779
  },
712
780
  {
713
781
  "name": "--esp-footer-heading-color",
714
- "description": "Heading and configured-brand color. Defaults to `var(--esp-color-headings)`."
782
+ "description": "Heading and configured-brand color. The theme fits its headings color to the default footer surface."
783
+ },
784
+ {
785
+ "name": "--esp-footer-heading-font-size",
786
+ "description": "Font size derived from the authored heading step. Defaults to `var(--esp-type-normal)`."
787
+ },
788
+ {
789
+ "name": "--esp-footer-heading-size",
790
+ "description": "Size step for link-group headings and slotted `h2` headings: `small`, `normal`, `medium`, `big`, or `large`. Defaults to `normal`."
715
791
  },
716
792
  {
717
793
  "name": "--esp-footer-light-brand-logo-aspect-ratio",
@@ -719,7 +795,11 @@
719
795
  },
720
796
  {
721
797
  "name": "--esp-footer-link-color",
722
- "description": "Link color. Defaults to `var(--esp-color-link)`."
798
+ "description": "Link color. The theme fits its link color to the default footer surface."
799
+ },
800
+ {
801
+ "name": "--esp-footer-link-decoration",
802
+ "description": "Resting decoration of bare footer links and the configured brand link: `none` or `underline`. Bare links default to `underline` and the brand defaults to `none`. All supported links underline on hover."
723
803
  },
724
804
  {
725
805
  "name": "--esp-footer-link-group-gap",
@@ -733,6 +813,14 @@
733
813
  "name": "--esp-footer-link-hover-color",
734
814
  "description": "Hovered link color. Defaults to `var(--esp-color-link-hover)`."
735
815
  },
816
+ {
817
+ "name": "--esp-footer-link-underline-offset",
818
+ "description": "Underline offset of supported links, from `0em` to `0.5em`. Defaults to `0.18em` for group links and brand hover, and `auto` elsewhere."
819
+ },
820
+ {
821
+ "name": "--esp-footer-link-underline-thickness",
822
+ "description": "Underline thickness of supported links, from `0em` to `0.2em` or `auto`. Defaults to `auto`."
823
+ },
736
824
  {
737
825
  "name": "--esp-footer-padding-block",
738
826
  "description": "Content block padding. Defaults to `var(--esp-size-padding-page)`."
@@ -1053,6 +1141,22 @@
1053
1141
  "name": "--esp-header-z-index",
1054
1142
  "description": "The z-index of the header host. Defaults to `20`."
1055
1143
  },
1144
+ {
1145
+ "name": "--esp-heading-1-color",
1146
+ "description": "Color of native light-DOM h1 headings. Defaults to `var(--esp-color-headings)`."
1147
+ },
1148
+ {
1149
+ "name": "--esp-heading-2-color",
1150
+ "description": "Color of native light-DOM h2 headings. Defaults to `var(--esp-color-headings)`."
1151
+ },
1152
+ {
1153
+ "name": "--esp-heading-3-color",
1154
+ "description": "Color of native light-DOM h3 headings. Defaults to `var(--esp-color-headings)`."
1155
+ },
1156
+ {
1157
+ "name": "--esp-heading-4-color",
1158
+ "description": "Color of native light-DOM h4 headings. Defaults to `var(--esp-color-headings)`."
1159
+ },
1056
1160
  {
1057
1161
  "name": "--esp-image-banner-block-size",
1058
1162
  "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."