@taprootio/espalier 4.3.0 → 4.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 (61) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/css/fonts/font-fallback-profiles.json +1 -0
  3. package/custom-elements.json +2338 -1491
  4. package/dist/action-menu/esp-action-menu-item.js +7 -4
  5. package/dist/avatar/esp-avatar.js +14 -8
  6. package/dist/avatar/esp-profile-chip.js +4 -1
  7. package/dist/badge/esp-badge.js +7 -4
  8. package/dist/box/esp-box.d.ts +1 -1
  9. package/dist/checkbox/esp-checkbox.js +6 -3
  10. package/dist/color-picker/esp-color-picker.js +1 -1
  11. package/dist/data-cell/esp-data-cell.js +6 -3
  12. package/dist/date-picker/helpers/styles.js +10 -4
  13. package/dist/details/esp-details.d.ts +4 -4
  14. package/dist/details/esp-details.js +11 -5
  15. package/dist/empty-state/esp-empty-state.js +16 -7
  16. package/dist/flyout/esp-flyout.js +5 -2
  17. package/dist/font-picker/esp-font-picker.d.ts +1 -0
  18. package/dist/font-picker/esp-font-picker.js +4 -4
  19. package/dist/footer/esp-footer-link-group.js +12 -6
  20. package/dist/footer/esp-footer.js +21 -6
  21. package/dist/form-item/esp-form-item.js +4 -1
  22. package/dist/header/esp-header.d.ts +2 -1
  23. package/dist/header/esp-header.js +24 -6
  24. package/dist/help/esp-help-button.d.ts +1 -1
  25. package/dist/help/help-document.js +4 -4
  26. package/dist/index.d.ts +2 -1
  27. package/dist/index.js +1 -1
  28. package/dist/lightbox/esp-lightbox.d.ts +1 -1
  29. package/dist/page/esp-page.d.ts +1 -0
  30. package/dist/page/esp-page.js +40 -783
  31. package/dist/page/esp-page.styles.js +748 -0
  32. package/dist/page/workspace-geometry.js +1 -0
  33. package/dist/page/workspace-resize-session.js +1 -0
  34. package/dist/page/workspace-width.js +1 -1
  35. package/dist/pickers/esp-picker-menu.js +6 -6
  36. package/dist/progress/esp-progress.js +11 -5
  37. package/dist/radio-button/esp-radio-button.js +6 -3
  38. package/dist/root/esp-root.d.ts +8 -0
  39. package/dist/root/esp-root.js +13 -7
  40. package/dist/root/helpers/compute-theme-properties.js +1 -1
  41. package/dist/search/esp-search.js +10 -4
  42. package/dist/shared/esp-element-base.js +20 -4
  43. package/dist/shared/font-helpers.d.ts +26 -0
  44. package/dist/shared/font-helpers.js +1 -1
  45. package/dist/shared/font-plan.d.ts +90 -0
  46. package/dist/shared/font-plan.js +5 -0
  47. package/dist/shared/scale-engine.js +1 -1
  48. package/dist/shared/theme.d.ts +28 -4
  49. package/dist/shared/theme.js +1 -1
  50. package/dist/slider/esp-slider.js +8 -5
  51. package/dist/status-indicator/esp-status-indicator.d.ts +1 -1
  52. package/dist/switch/esp-switch.js +11 -5
  53. package/dist/tabs/esp-tab-group.js +6 -3
  54. package/dist/tabs/esp-tab.js +6 -3
  55. package/dist/tree/esp-tree.js +4 -1
  56. package/espalier.css-data.json +9 -5
  57. package/espalier.token-manifest.json +13 -5
  58. package/licenses/ASSET_PROVENANCE.md +2 -1
  59. package/licenses/THIRD_PARTY_NOTICES.md +35 -0
  60. package/licenses/asset-provenance.json +26 -2
  61. package/package.json +16 -2
@@ -1,4 +1,4 @@
1
- var l=function(s,e,o,r){var p=arguments.length,a=p<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,o):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(s,e,o,r);else for(var d=s.length-1;d>=0;d--)(n=s[d])&&(a=(p<3?n(a):p>3?n(e,o,a):n(e,o))||a);return p>3&&a&&Object.defineProperty(e,o,a),a};import{css as f,html as u}from"lit";import{customElement as c,property as i}from"lit/decorators.js";import{EspalierElementBase as b}from"../shared/esp-element-base.js";let t=class extends b{constructor(){super(...arguments),this.label="",this.active=!1,this.disabled=!1,this.panelId="",this.ariaLabelledBy=""}updated(e){super.updated(e),(e.has("label")||e.has("active")||e.has("disabled"))&&this.dispatchEvent(new CustomEvent("esp-internal-tab-updated",{bubbles:!0,composed:!0}))}render(){return u`
1
+ var l=function(i,e,o,r){var p=arguments.length,a=p<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,o):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,e,o,r);else for(var d=i.length-1;d>=0;d--)(n=i[d])&&(a=(p<3?n(a):p>3?n(e,o,a):n(e,o))||a);return p>3&&a&&Object.defineProperty(e,o,a),a};import{css as f,html as c}from"lit";import{customElement as v,property as s}from"lit/decorators.js";import{EspalierElementBase as b}from"../shared/esp-element-base.js";let t=class extends b{constructor(){super(...arguments),this.label="",this.active=!1,this.disabled=!1,this.panelId="",this.ariaLabelledBy=""}updated(e){super.updated(e),(e.has("label")||e.has("active")||e.has("disabled"))&&this.dispatchEvent(new CustomEvent("esp-internal-tab-updated",{bubbles:!0,composed:!0}))}render(){return c`
2
2
  <div
3
3
  part="panel"
4
4
  role="tabpanel"
@@ -19,9 +19,12 @@ var l=function(s,e,o,r){var p=arguments.length,a=p<3?e:r===null?r=Object.getOwnP
19
19
 
20
20
  [part="panel"] {
21
21
  padding: var(--esp-tab-size-padding, var(--esp-size-padding));
22
- font-family: var(--esp-font-body);
22
+ font-family: var(
23
+ --_esp-font-body-effective,
24
+ var(--esp-font-body, var(--_esp-font-body-fallback))
25
+ );
23
26
  font-size: var(--esp-size-font);
24
27
  color: var(--esp-color-text);
25
28
  outline: none;
26
29
  }
27
- `],l([i({type:String})],t.prototype,"label",void 0),l([i({type:Boolean,reflect:!0})],t.prototype,"active",void 0),l([i({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0),l([i({attribute:!1})],t.prototype,"panelId",void 0),l([i({attribute:!1})],t.prototype,"ariaLabelledBy",void 0),t=l([c("esp-tab")],t);export{t as EspalierTab};
30
+ `],l([s({type:String})],t.prototype,"label",void 0),l([s({type:Boolean,reflect:!0})],t.prototype,"active",void 0),l([s({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0),l([s({attribute:!1})],t.prototype,"panelId",void 0),l([s({attribute:!1})],t.prototype,"ariaLabelledBy",void 0),t=l([v("esp-tab")],t);export{t as EspalierTab};
@@ -264,7 +264,10 @@ var d=function(c,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnP
264
264
  }
265
265
 
266
266
  .tree {
267
- font-family: var(--esp-font-body);
267
+ font-family: var(
268
+ --_esp-font-body-effective,
269
+ var(--esp-font-body, var(--_esp-font-body-fallback))
270
+ );
268
271
  font-size: var(--esp-size-font);
269
272
  color: var(--esp-color-text);
270
273
  display: grid;
@@ -543,19 +543,19 @@
543
543
  },
544
544
  {
545
545
  "name": "--esp-font-body",
546
- "description": ""
546
+ "description": "Always-emitted family for body and UI text. Defaults to `system-ui, sans-serif` when `fontBody` is omitted or empty."
547
547
  },
548
548
  {
549
549
  "name": "--esp-font-brand",
550
- "description": ""
550
+ "description": "Consumer-authored brand family. Emitted only when configured; brand recipes otherwise fall back through headings to `--esp-font-body`."
551
551
  },
552
552
  {
553
553
  "name": "--esp-font-headings",
554
- "description": ""
554
+ "description": "Consumer-authored heading family. Emitted only when configured; heading recipes otherwise fall back to `--esp-font-body`."
555
555
  },
556
556
  {
557
557
  "name": "--esp-font-monospace",
558
- "description": ""
558
+ "description": "Family for code and monospace text. Defaults to `monospace`."
559
559
  },
560
560
  {
561
561
  "name": "--esp-font-weight-body",
@@ -807,7 +807,7 @@
807
807
  },
808
808
  {
809
809
  "name": "--esp-header-brand-font-family",
810
- "description": "The configured brand font family. Defaults to `var(--esp-font-brand, var(--esp-font-headings))`."
810
+ "description": "The configured brand font family. Defaults through `--esp-font-brand` and `--esp-font-headings` to `--esp-font-body`."
811
811
  },
812
812
  {
813
813
  "name": "--esp-header-brand-font-size",
@@ -833,6 +833,10 @@
833
833
  "name": "--esp-header-brand-hover-decoration",
834
834
  "description": "The configured brand hover text decoration. Defaults to `none`."
835
835
  },
836
+ {
837
+ "name": "--esp-header-brand-hover-transform",
838
+ "description": "The configured brand hover transform. Defaults to `none`."
839
+ },
836
840
  {
837
841
  "name": "--esp-header-brand-inline-placement",
838
842
  "description": "The CSS `justify-content` value for the brand container. Defaults to `start`."
@@ -737,22 +737,24 @@
737
737
  {
738
738
  "name": "--esp-font-body",
739
739
  "category": "root-theme",
740
- "description": ""
740
+ "description": "Always-emitted family for body and UI text. Defaults to `system-ui, sans-serif` when `fontBody` is omitted or empty.",
741
+ "default": "system-ui, sans-serif"
741
742
  },
742
743
  {
743
744
  "name": "--esp-font-brand",
744
745
  "category": "root-theme",
745
- "description": ""
746
+ "description": "Consumer-authored brand family. Emitted only when configured; brand recipes otherwise fall back through headings to `--esp-font-body`."
746
747
  },
747
748
  {
748
749
  "name": "--esp-font-headings",
749
750
  "category": "root-theme",
750
- "description": ""
751
+ "description": "Consumer-authored heading family. Emitted only when configured; heading recipes otherwise fall back to `--esp-font-body`."
751
752
  },
752
753
  {
753
754
  "name": "--esp-font-monospace",
754
755
  "category": "root-theme",
755
- "description": ""
756
+ "description": "Family for code and monospace text. Defaults to `monospace`.",
757
+ "default": "monospace"
756
758
  },
757
759
  {
758
760
  "name": "--esp-font-weight-body",
@@ -1126,7 +1128,7 @@
1126
1128
  "name": "--esp-header-brand-font-family",
1127
1129
  "category": "component",
1128
1130
  "component": "esp-header",
1129
- "description": "The configured brand font family. Defaults to `var(--esp-font-brand, var(--esp-font-headings))`."
1131
+ "description": "The configured brand font family. Defaults through `--esp-font-brand` and `--esp-font-headings` to `--esp-font-body`."
1130
1132
  },
1131
1133
  {
1132
1134
  "name": "--esp-header-brand-font-size",
@@ -1164,6 +1166,12 @@
1164
1166
  "component": "esp-header",
1165
1167
  "description": "The configured brand hover text decoration. Defaults to `none`."
1166
1168
  },
1169
+ {
1170
+ "name": "--esp-header-brand-hover-transform",
1171
+ "category": "component",
1172
+ "component": "esp-header",
1173
+ "description": "The configured brand hover transform. Defaults to `none`."
1174
+ },
1167
1175
  {
1168
1176
  "name": "--esp-header-brand-inline-placement",
1169
1177
  "category": "component",
@@ -8,7 +8,8 @@ removing, or replacing non-code assets.
8
8
 
9
9
  | Asset area | Provenance | Notice |
10
10
  |------------|------------|--------|
11
- | `css/fonts/**` | Generated Google Fonts preview CSS with per-family notices generated from upstream Google Fonts metadata links. | `licenses/GOOGLE_FONTS_NOTICES.md` |
11
+ | `css/fonts/*.css`, `css/fonts/font-definitions.json` | Generated Google Fonts preview CSS and catalog with per-family notices generated from upstream Google Fonts metadata links. | `licenses/GOOGLE_FONTS_NOTICES.md` |
12
+ | `css/fonts/font-fallback-profiles.json` | Variant metrics derived from `@capsizecss/metrics` with `@capsizecss/core`, serialized by Taproot's deterministic maintainer generator. | `licenses/THIRD_PARTY_NOTICES.md` |
12
13
  | `assets/shell-fonts.css`, `assets/shell-fonts/**` | Docs-only self-hosted Quicksand, Oswald, and Sometype Mono WOFF2 subsets under OFL 1.1, downloaded once from the Google Fonts css2 endpoint and checked in so the documentation shell never calls Google at runtime. | `licenses/THIRD_PARTY_NOTICES.md` |
13
14
  | `assets/icons.svg` | Tabler-derived SVG symbols plus Taproot-owned logo symbol. | `licenses/THIRD_PARTY_NOTICES.md` |
14
15
  | `*.ts` | Inline Tabler-style SVG templates and Taproot rendering helpers. | `licenses/THIRD_PARTY_NOTICES.md` |
@@ -76,6 +76,41 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
76
76
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
77
77
  SOFTWARE.
78
78
 
79
+ ## Capsize Font Metrics
80
+
81
+ `css/fonts/font-fallback-profiles.json` is generated from the Google and system
82
+ font metrics distributed by `@capsizecss/metrics`, using the calculations in
83
+ `@capsizecss/core`. The packages are maintainer-only dependencies; their
84
+ derived variant metrics are included in the published profile catalog.
85
+
86
+ - Project: Capsize
87
+ - Upstream: https://github.com/seek-oss/capsize
88
+ - Packages: `@capsizecss/metrics` 4.2.0 and `@capsizecss/core` 4.1.3
89
+ - License: MIT License
90
+ - Copyright: Copyright (c) 2021 SEEK
91
+
92
+ MIT License
93
+
94
+ Copyright (c) 2021 SEEK
95
+
96
+ Permission is hereby granted, free of charge, to any person obtaining a copy
97
+ of this software and associated documentation files (the "Software"), to deal
98
+ in the Software without restriction, including without limitation the rights
99
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
100
+ copies of the Software, and to permit persons to whom the Software is
101
+ furnished to do so, subject to the following conditions:
102
+
103
+ The above copyright notice and this permission notice shall be included in all
104
+ copies or substantial portions of the Software.
105
+
106
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
107
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
108
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
109
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
110
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
111
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
112
+ SOFTWARE.
113
+
79
114
  ## Documentation Shell Fonts
80
115
 
81
116
  The Espalier documentation site self-hosts the three faces its theme names, so
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "updatedAt": "2026-08-22",
3
+ "updatedAt": "2026-08-28",
4
4
  "entries": [
5
5
  {
6
6
  "id": "google-font-preview-assets",
7
7
  "paths": [
8
- "css/fonts/**"
8
+ "css/fonts/*.css",
9
+ "css/fonts/font-definitions.json"
9
10
  ],
10
11
  "assetType": "generated font preview assets",
11
12
  "classification": "third-party-generated",
@@ -25,6 +26,29 @@
25
26
  ],
26
27
  "reviewStatus": "manifest-gated"
27
28
  },
29
+ {
30
+ "id": "capsize-font-fallback-profiles",
31
+ "paths": [
32
+ "css/fonts/font-fallback-profiles.json"
33
+ ],
34
+ "assetType": "generated font metric profile catalog",
35
+ "classification": "third-party-derived",
36
+ "owner": "SEEK for Capsize metrics and calculations; Taproot for catalog serialization",
37
+ "source": "@capsizecss/metrics 4.2.0 and @capsizecss/core 4.1.3",
38
+ "license": "MIT License",
39
+ "transformations": [
40
+ "Join the committed Google Fonts catalog to Capsize family, variant, and system fallback metrics",
41
+ "Calculate subset-specific size-adjust and vertical metric overrides",
42
+ "Encode the selected fallback variants and bounded-precision percentages as deterministic JSON"
43
+ ],
44
+ "packageInclusion": "included in npm package for host build tooling; never required by the browser runtime",
45
+ "docsInclusion": "documented as the build-time source for site-specific inline font plans",
46
+ "noticeRequirement": "required",
47
+ "noticePaths": [
48
+ "licenses/THIRD_PARTY_NOTICES.md"
49
+ ],
50
+ "reviewStatus": "manifest-gated"
51
+ },
28
52
  {
29
53
  "id": "tabler-svg-sprite",
30
54
  "paths": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taprootio/espalier",
3
- "version": "4.3.0",
3
+ "version": "4.5.0",
4
4
  "packageManager": "bun@1.3.12",
5
5
  "description": "Espalier — a themeable, accessible, framework-agnostic, enterprise-grade design system built on web standards and love.",
6
6
  "customElements": "custom-elements.json",
@@ -313,6 +313,10 @@
313
313
  "types": "./dist/shared/font-helpers.d.ts",
314
314
  "import": "./dist/shared/font-helpers.js"
315
315
  },
316
+ "./shared/font-plan": {
317
+ "types": "./dist/shared/font-plan.d.ts",
318
+ "import": "./dist/shared/font-plan.js"
319
+ },
316
320
  "./shared/cursor-pagination": {
317
321
  "types": "./dist/shared/cursor-pagination.d.ts",
318
322
  "import": "./dist/shared/cursor-pagination.js"
@@ -337,7 +341,17 @@
337
341
  "types": "./dist/shared/bus-events.d.ts",
338
342
  "import": "./dist/shared/bus-events.js"
339
343
  },
344
+ "./shared/events": {
345
+ "types": "./dist/shared/events.d.ts",
346
+ "import": "./dist/shared/events.js"
347
+ },
348
+ "./shared/toast-events": {
349
+ "types": "./dist/shared/toast-events.d.ts",
350
+ "import": "./dist/shared/toast-events.js"
351
+ },
340
352
  "./espalier.token-manifest.json": "./espalier.token-manifest.json",
353
+ "./css/fonts/font-definitions.json": "./css/fonts/font-definitions.json",
354
+ "./css/fonts/font-fallback-profiles.json": "./css/fonts/font-fallback-profiles.json",
341
355
  "./textures/banner-textures.css": "./css/textures/banner-textures.css",
342
356
  "./textures/espalier-paper.png": "./css/textures/espalier-paper.png",
343
357
  "./textures/espalier-grain.png": "./css/textures/espalier-grain.png",
@@ -345,7 +359,6 @@
345
359
  "./custom-elements.json": "./custom-elements.json",
346
360
  "./espalier.css-data.json": "./espalier.css-data.json",
347
361
  "./css/esp-reset.css": "./css/esp-reset.css",
348
- "./css/fonts/font-definitions.json": "./css/fonts/font-definitions.json",
349
362
  "./css/fonts/*.css": "./css/fonts/*.css"
350
363
  },
351
364
  "sideEffects": [
@@ -362,6 +375,7 @@
362
375
  "css/esp-reset.css",
363
376
  "css/fonts/**/*.css",
364
377
  "css/fonts/font-definitions.json",
378
+ "css/fonts/font-fallback-profiles.json",
365
379
  "css/textures/banner-textures.css",
366
380
  "css/textures/*.png",
367
381
  "custom-elements.json",