@taprootio/espalier 7.5.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.
@@ -6750,15 +6750,23 @@
6750
6750
  "name": "--esp-box-background"
6751
6751
  },
6752
6752
  {
6753
- "description": "The opacity of the background layer.",
6753
+ "description": "The opacity of the background layer. Defaults to `--esp-box-background-image-opacity`, then `1`.",
6754
6754
  "name": "--esp-box-background-opacity"
6755
6755
  },
6756
+ {
6757
+ "description": "The theme's box background image, painted when `--esp-box-background` is unset. Defaults to `none`.",
6758
+ "name": "--esp-box-background-image"
6759
+ },
6760
+ {
6761
+ "description": "The theme's opacity for that image. Defaults to `1`.",
6762
+ "name": "--esp-box-background-image-opacity"
6763
+ },
6756
6764
  {
6757
6765
  "description": "The padding inside the box.",
6758
6766
  "name": "--esp-size-box-padding"
6759
6767
  },
6760
6768
  {
6761
- "description": "The box's drop shadow. Defaults to the theme's `--esp-shadow-1` elevation. ```html <style> esp-root[scheme=\"light\"] { esp-box.box-with-bg { --esp-box-background: url(/assets/espalier-paper-texture.png) repeat; --esp-box-background-opacity: .5; } } esp-root[scheme=\"dark\"] { esp-box.box-with-bg { --esp-box-background: url(/assets/espalier-geometric-texture.png) repeat; --esp-box-background-opacity: .5; } } </style> <esp-box class=\"box-with-bg\"> <h2>Box with background image</h2> <p>I have a different generated background texture in dark mode than light mode.</p> </esp-box> ```",
6769
+ "description": "The box's drop shadow: `none`, `1`, `2` or `3` as a theme elevation step. Defaults to `1`. ```html <style> esp-root[scheme=\"light\"] { esp-box.box-with-bg { --esp-box-background: url(/assets/espalier-paper-texture.png) repeat; --esp-box-background-opacity: .5; } } esp-root[scheme=\"dark\"] { esp-box.box-with-bg { --esp-box-background: url(/assets/espalier-geometric-texture.png) repeat; --esp-box-background-opacity: .5; } } </style> <esp-box class=\"box-with-bg\"> <h2>Box with background image</h2> <p>I have a different generated background texture in dark mode than light mode.</p> </esp-box> ```",
6762
6770
  "name": "--esp-box-shadow"
6763
6771
  },
6764
6772
  {
@@ -8714,6 +8722,13 @@
8714
8722
  ],
8715
8723
  "description": "A button is usable as a tab stop only when it is neither disabled nor\nloading. `esp-button` disables its inner control while loading, so a\nloading button must be skipped just like a disabled one."
8716
8724
  },
8725
+ {
8726
+ "kind": "field",
8727
+ "name": "groupedButtons",
8728
+ "privacy": "private",
8729
+ "default": "new Set<HTMLElement>()",
8730
+ "description": "Buttons given the private zero border, so ones that leave can be cleared."
8731
+ },
8717
8732
  {
8718
8733
  "kind": "method",
8719
8734
  "name": "handleSlotChange",
@@ -8914,6 +8929,18 @@
8914
8929
  "description": "The padding for the incognito button style.",
8915
8930
  "name": "--esp-button-incognito-padding"
8916
8931
  },
8932
+ {
8933
+ "description": "The button's border width, from `0` to `0.5rem`. Defaults to `--esp-field-border-width`, then `1px`.",
8934
+ "name": "--esp-button-border-width"
8935
+ },
8936
+ {
8937
+ "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`.",
8938
+ "name": "--esp-button-shadow"
8939
+ },
8940
+ {
8941
+ "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`.",
8942
+ "name": "--esp-button-press-offset"
8943
+ },
8917
8944
  {
8918
8945
  "description": "Background color of the shared field shell. Defaults to one layer above the nearest declared surface, capped at `var(--esp-color-layer-4)`, or `var(--esp-color-layer-2)` without a declared surface. An explicit override wins.",
8919
8946
  "name": "--esp-field-background",
@@ -17631,6 +17658,231 @@
17631
17658
  }
17632
17659
  ]
17633
17660
  },
17661
+ {
17662
+ "kind": "javascript-module",
17663
+ "path": "dist/dialog/esp-dialog.js",
17664
+ "declarations": [
17665
+ {
17666
+ "kind": "class",
17667
+ "description": "Shows content in a modal dialog. By default, on large screens the\ndialog content is centered horizontally near the top of the\nscreen. On small screens, the content always tries to take up\nthe full screen width.\n\nA field fills one layer above the surface it sits on.\nUse `surface-layer=\"1|2|3|4\"` to select the default painted layer.\n\nWhen opened, the dialog:\n- Moves focus to the first `[autofocus]` element inside the slotted\n content, then the first focusable element (or the dialog container\n itself if none is found).\n- Traps focus so that `Tab` and `Shift+Tab` cycle only through\n elements inside the dialog.\n- Closes when the user presses `Escape`.\n- Marks all sibling content as `inert` to prevent screen reader\n and keyboard access to the page behind the overlay.\n- Restores focus to the element that was focused before the\n dialog was opened.\n\n### Bounded dialog\n\nA dialog covers the whole viewport by default. Set the four inset custom\nproperties on the `esp-dialog` host to confine it to a rectangle and leave\nthe rest of the page visible, for example to keep a header or a live preview\non screen while a full-screen editor is open. The vellum (the dialog's\nscrolling surface) and its backdrop paint only inside the rectangle, and a\nslotted `esp-box full-screen` fills exactly that rectangle.\n\nThe insets are lengths (`0px`, `4rem`, `var(--header-height)`), not unitless\nnumbers, and they are measured from the viewport edges. They are logical, so\n\"inline start\" is the left edge in left-to-right text and the right edge in\nright-to-left text. Because custom properties inherit, a dialog nested inside\na bounded dialog's markup is bounded the same way unless it sets its own\ninsets.\n\nBounds change only where the dialog paints. What stays reachable is decided\nby the same rules as an unbounded dialog:\n\n- The dialog has no click-outside dismissal, bounded or not. It closes on\n `Escape`, an `esp-form-dialog-close-requested` event, or `toggleOpen()`, so\n a click on the uncovered region never counts as an \"outside\" click.\n- The dialog marks `inert` the siblings of its anchor element, not the\n regions its bounds leave uncovered. The anchor is `esp-page`'s dialog drop\n zone when the dialog sits in the page's markup, so there the page's\n internal tracks (header, menus, preview, help, footer) are inert and not\n clickable even where the dialog does not cover them. A dialog that is a\n direct child of another component's shadow root is anchored on the nearest\n ancestor host that has a light-DOM parent, and only that host's siblings\n go inert; the page around it stays live. A dialog wrapped in an element\n inside that shadow root is anchored on itself, so its siblings in the\n wrapper go inert instead.\n- A region that is not inert receives clicks and keyboard focus. The focus\n trap wraps `Tab` and `Shift+Tab` at the dialog's first and last focusable\n elements, and `Escape` is handled on the dialog, both only while focus is\n inside it. A click on an uncovered control moves focus there, and from then\n on `Tab` continues through the page and `Escape` no longer closes the\n dialog. Set `inert` on the uncovered regions that must not be reachable\n while the dialog is open (an inert region is also skipped by screen\n readers).\n- Bounds assume a horizontal writing mode: the insets are logical, but the\n dialog's width and height are physical.\n\n```html\n<style>\n esp-dialog.bounded {\n --esp-dialog-inset-block-start: 6rem;\n --esp-dialog-inset-inline-start: 3rem;\n --esp-dialog-inset-inline-end: 3rem;\n --esp-dialog-inset-block-end: 2rem;\n }\n</style>\n<esp-dialog class=\"bounded\" full-screen>\n <esp-box full-screen>\n <h2>Bounded dialog</h2>\n <p>The page above and around this box stays visible.</p>\n <esp-button intent=\"danger\" label=\"Close\"></esp-button>\n </esp-box>\n</esp-dialog>\n<esp-button label=\"Show Dialog\"></esp-button>\n<script>\n const theDialog = findByTagName(\"esp-dialog\")[0];\n const buttons = findByTagName(\"esp-button\");\n buttons[0].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n buttons[1].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n</script>\n```",
17668
+ "name": "EspalierDialog",
17669
+ "cssProperties": [
17670
+ {
17671
+ "description": "The background color of the dialog overlay.",
17672
+ "name": "--esp-color-dialog-bg"
17673
+ },
17674
+ {
17675
+ "description": "The opacity of the dialog overlay background.",
17676
+ "name": "--esp-dialog-bg-opacity"
17677
+ },
17678
+ {
17679
+ "description": "The top edge of the area the dialog covers, as a length from the viewport top. Defaults to `0px`.",
17680
+ "name": "--esp-dialog-inset-block-start"
17681
+ },
17682
+ {
17683
+ "description": "The leading edge (left in left-to-right text) of the area the dialog covers, as a length from the viewport edge. Defaults to `0px`.",
17684
+ "name": "--esp-dialog-inset-inline-start"
17685
+ },
17686
+ {
17687
+ "description": "The trailing edge (right in left-to-right text) of the area the dialog covers, as a length from the viewport edge. Defaults to `0px`.",
17688
+ "name": "--esp-dialog-inset-inline-end"
17689
+ },
17690
+ {
17691
+ "description": "The bottom edge of the area the dialog covers, as a length from the viewport bottom. Defaults to `0px`.",
17692
+ "name": "--esp-dialog-inset-block-end"
17693
+ }
17694
+ ],
17695
+ "slots": [
17696
+ {
17697
+ "description": "Place content to show modally in the default slot. ```html <esp-dialog> <esp-box> <h2>Showing something</h2> <p>There could be controls or a confirmation or anything here.</p> <esp-button intent=\"danger\" label=\"Close\"></esp-button> </esp-box> </esp-dialog> <esp-button label=\"Show Dialog\"></esp-button> <script> const theDialog = findByTagName(\"esp-dialog\")[0]; const buttons = findByTagName(\"esp-button\"); buttons[0].addEventListener(\"esp-clicked\", () => { theDialog.toggleOpen(); }); buttons[1].addEventListener(\"esp-clicked\", () => { theDialog.toggleOpen(); }); </script> ``` Dialogs work well as containers for complex forms. Picker menus, inputs, and other interactive controls render correctly inside the dialog overlay. ```html <esp-dialog> <esp-box> <h2>Add Item</h2> <esp-form-item label=\"Name\" autofocus> <esp-input placeholder=\"Enter a name\"></esp-input> </esp-form-item> <esp-form-item label=\"Category\"> <esp-pick-one placeholder=\"Choose a category\"> <esp-picker-item text=\"Electronics\" value=\"electronics\"></esp-picker-item> <esp-picker-item text=\"Clothing\" value=\"clothing\"></esp-picker-item> <esp-picker-item text=\"Books\" value=\"books\"></esp-picker-item> <esp-picker-item text=\"Home & Garden\" value=\"home-garden\"></esp-picker-item> </esp-pick-one> </esp-form-item> <esp-form-item label=\"Notes\"> <esp-textarea placeholder=\"Optional notes\"></esp-textarea> </esp-form-item> <esp-button intent=\"success\" label=\"Save\"></esp-button> <esp-button intent=\"danger\" label=\"Cancel\"></esp-button> </esp-box> </esp-dialog> <esp-button label=\"Open Form\"></esp-button> <script> const dialog = findByTagName(\"esp-dialog\")[0]; const buttons = findByTagName(\"esp-button\"); const openBtn = buttons[buttons.length - 1]; const cancelBtn = buttons[1]; openBtn.addEventListener(\"esp-clicked\", () => { dialog.toggleOpen(); }); cancelBtn.addEventListener(\"esp-clicked\", () => { dialog.toggleOpen(); }); </script> ```",
17698
+ "name": ""
17699
+ }
17700
+ ],
17701
+ "members": [
17702
+ {
17703
+ "kind": "field",
17704
+ "name": "dialogSlot",
17705
+ "privacy": "private"
17706
+ },
17707
+ {
17708
+ "kind": "field",
17709
+ "name": "vellumRef",
17710
+ "privacy": "private"
17711
+ },
17712
+ {
17713
+ "kind": "field",
17714
+ "name": "isOpen",
17715
+ "type": {
17716
+ "text": "boolean"
17717
+ },
17718
+ "privacy": "private",
17719
+ "default": "false"
17720
+ },
17721
+ {
17722
+ "kind": "field",
17723
+ "name": "_overlay",
17724
+ "privacy": "private",
17725
+ "default": "new OverlayController({ host: this, getFocusTrapContainer: () => this.vellumRef.value ?? null, getFocusFallback: () => this.vellumRef.value ?? null, })"
17726
+ },
17727
+ {
17728
+ "kind": "field",
17729
+ "name": "_closeReason",
17730
+ "type": {
17731
+ "text": "\"escape\" | \"close-dialog\" | \"api\""
17732
+ },
17733
+ "privacy": "private",
17734
+ "default": "\"api\"",
17735
+ "description": "Tracks why the dialog is closing so lifecycle events can\nreport it. Reset to `\"api\"` after each close cycle."
17736
+ },
17737
+ {
17738
+ "kind": "field",
17739
+ "name": "_lifecycleToken",
17740
+ "type": {
17741
+ "text": "number"
17742
+ },
17743
+ "privacy": "private",
17744
+ "default": "0",
17745
+ "description": "Monotonic token used to invalidate async open/close lifecycle\ncallbacks from earlier toggle cycles."
17746
+ },
17747
+ {
17748
+ "kind": "field",
17749
+ "name": "fullScreen",
17750
+ "type": {
17751
+ "text": "boolean"
17752
+ },
17753
+ "privacy": "public",
17754
+ "default": "false",
17755
+ "description": "If true, the dialog will take up the full screen. On\nsmall screens, the dialog will always be full screen.\n\n```html\n<esp-dialog full-screen>\n <esp-box full-screen>\n <h2>Full screen dialog</h2>\n <p>There could be controls or a confirmation or anything here.</p>\n <esp-button intent=\"danger\" label=\"Close\"></esp-button>\n </esp-box>\n</esp-dialog>\n<esp-button label=\"Show Dialog\"></esp-button>\n<script>\n const theDialog = findByTagName(\"esp-dialog\")[0];\n const buttons = findByTagName(\"esp-button\");\n buttons[0].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n buttons[1].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n</script>\n```",
17756
+ "attribute": "full-screen"
17757
+ },
17758
+ {
17759
+ "kind": "method",
17760
+ "name": "toggleOpen",
17761
+ "privacy": "public",
17762
+ "description": "Show or hide the dialog content. When opening, focus moves\ninto the dialog and sibling content is marked `inert`. When\nclosing, focus is restored to the element that was focused\nbefore the dialog opened.\n\nDispatches lifecycle events:\n- `esp-dialog-opened` after the dialog is fully rendered and\n focus has moved in.\n- `esp-dialog-closing` (cancelable) before the close begins.\n- `esp-dialog-closed` after the close completes."
17763
+ },
17764
+ {
17765
+ "kind": "method",
17766
+ "name": "_handleKeyDown",
17767
+ "privacy": "private",
17768
+ "return": {
17769
+ "type": {
17770
+ "text": "void"
17771
+ }
17772
+ },
17773
+ "parameters": [
17774
+ {
17775
+ "name": "ev",
17776
+ "type": {
17777
+ "text": "KeyboardEvent"
17778
+ }
17779
+ }
17780
+ ]
17781
+ },
17782
+ {
17783
+ "kind": "method",
17784
+ "name": "_moveFocusIntoDialog",
17785
+ "privacy": "private",
17786
+ "return": {
17787
+ "type": {
17788
+ "text": "void"
17789
+ }
17790
+ },
17791
+ "description": "Move focus to the first autofocus element inside the slotted\ncontent, then the first focusable element. If no focusable\nelement is found, focus the vellum container itself (which has\n`tabindex=\"-1\"`)."
17792
+ }
17793
+ ],
17794
+ "events": [
17795
+ {
17796
+ "type": {
17797
+ "text": "CustomEvent<{}>"
17798
+ },
17799
+ "description": "Fired after the dialog has been promoted to its final DOM position, rendered, and focus has moved in. Safe to initialize third-party widgets (e.g. Stripe Elements) or measure layout at this point.",
17800
+ "name": "esp-dialog-opened"
17801
+ },
17802
+ {
17803
+ "type": {
17804
+ "text": "CustomEvent<{ reason: \"escape\" | \"close-dialog\" | \"api\" }>"
17805
+ },
17806
+ "description": "Fired before the dialog begins closing. Call `event.preventDefault()` to cancel the close (e.g. for unsaved-changes confirmation). The `reason` indicates what triggered the close: `\"escape\"` for the Escape key, `\"close-dialog\"` for a `esp-form-dialog-close-requested` event from slotted content (typically `<esp-form method=\"dialog\">`), or `\"api\"` for a direct `toggleOpen()` call.",
17807
+ "name": "esp-dialog-closing"
17808
+ },
17809
+ {
17810
+ "type": {
17811
+ "text": "CustomEvent<{ reason: \"escape\" | \"close-dialog\" | \"api\" }>"
17812
+ },
17813
+ "description": "Fired after the dialog has fully closed, inert state has been restored, and focus has returned to the previously focused element. Safe to tear down resources.",
17814
+ "name": "esp-dialog-closed"
17815
+ }
17816
+ ],
17817
+ "attributes": [
17818
+ {
17819
+ "type": {
17820
+ "text": "\"1\"|\"2\"|\"3\"|\"4\""
17821
+ },
17822
+ "description": "Declares the painted surface depth; defaults to layer 3.",
17823
+ "name": "surface-layer"
17824
+ },
17825
+ {
17826
+ "name": "full-screen",
17827
+ "type": {
17828
+ "text": "boolean"
17829
+ },
17830
+ "default": "false",
17831
+ "description": "If true, the dialog will take up the full screen. On\nsmall screens, the dialog will always be full screen.\n\n```html\n<esp-dialog full-screen>\n <esp-box full-screen>\n <h2>Full screen dialog</h2>\n <p>There could be controls or a confirmation or anything here.</p>\n <esp-button intent=\"danger\" label=\"Close\"></esp-button>\n </esp-box>\n</esp-dialog>\n<esp-button label=\"Show Dialog\"></esp-button>\n<script>\n const theDialog = findByTagName(\"esp-dialog\")[0];\n const buttons = findByTagName(\"esp-button\");\n buttons[0].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n buttons[1].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n</script>\n```",
17832
+ "fieldName": "fullScreen"
17833
+ }
17834
+ ],
17835
+ "superclass": {
17836
+ "name": "LitElement",
17837
+ "package": "lit"
17838
+ },
17839
+ "tagName": "esp-dialog",
17840
+ "customElement": true,
17841
+ "docPageTitle": {
17842
+ "name": "Dialog",
17843
+ "description": ""
17844
+ },
17845
+ "docUrl": {
17846
+ "name": "/components/dialog",
17847
+ "description": ""
17848
+ },
17849
+ "menuGroup": {
17850
+ "name": "Structure",
17851
+ "description": ""
17852
+ },
17853
+ "menuOrder": {
17854
+ "name": "6",
17855
+ "description": ""
17856
+ },
17857
+ "menuLabel": {
17858
+ "name": "Dialog",
17859
+ "description": ""
17860
+ },
17861
+ "menuIcon": {
17862
+ "name": "focus-centered",
17863
+ "description": ""
17864
+ }
17865
+ }
17866
+ ],
17867
+ "exports": [
17868
+ {
17869
+ "kind": "js",
17870
+ "name": "EspalierDialog",
17871
+ "declaration": {
17872
+ "name": "EspalierDialog",
17873
+ "module": "dist/dialog/esp-dialog.js"
17874
+ }
17875
+ },
17876
+ {
17877
+ "kind": "custom-element-definition",
17878
+ "name": "esp-dialog",
17879
+ "declaration": {
17880
+ "name": "EspalierDialog",
17881
+ "module": "dist/dialog/esp-dialog.js"
17882
+ }
17883
+ }
17884
+ ]
17885
+ },
17634
17886
  {
17635
17887
  "kind": "javascript-module",
17636
17888
  "path": "dist/empty-state/esp-empty-state.js",
@@ -18400,111 +18652,206 @@
18400
18652
  },
18401
18653
  {
18402
18654
  "kind": "javascript-module",
18403
- "path": "dist/dialog/esp-dialog.js",
18655
+ "path": "dist/file-upload/esp-file-upload.js",
18404
18656
  "declarations": [
18405
18657
  {
18406
18658
  "kind": "class",
18407
- "description": "Shows content in a modal dialog. By default, on large screens the\ndialog content is centered horizontally near the top of the\nscreen. On small screens, the content always tries to take up\nthe full screen width.\n\nA field fills one layer above the surface it sits on.\nUse `surface-layer=\"1|2|3|4\"` to select the default painted layer.\n\nWhen opened, the dialog:\n- Moves focus to the first `[autofocus]` element inside the slotted\n content, then the first focusable element (or the dialog container\n itself if none is found).\n- Traps focus so that `Tab` and `Shift+Tab` cycle only through\n elements inside the dialog.\n- Closes when the user presses `Escape`.\n- Marks all sibling content as `inert` to prevent screen reader\n and keyboard access to the page behind the overlay.\n- Restores focus to the element that was focused before the\n dialog was opened.\n\n### Bounded dialog\n\nA dialog covers the whole viewport by default. Set the four inset custom\nproperties on the `esp-dialog` host to confine it to a rectangle and leave\nthe rest of the page visible, for example to keep a header or a live preview\non screen while a full-screen editor is open. The vellum (the dialog's\nscrolling surface) and its backdrop paint only inside the rectangle, and a\nslotted `esp-box full-screen` fills exactly that rectangle.\n\nThe insets are lengths (`0px`, `4rem`, `var(--header-height)`), not unitless\nnumbers, and they are measured from the viewport edges. They are logical, so\n\"inline start\" is the left edge in left-to-right text and the right edge in\nright-to-left text. Because custom properties inherit, a dialog nested inside\na bounded dialog's markup is bounded the same way unless it sets its own\ninsets.\n\nBounds change only where the dialog paints. What stays reachable is decided\nby the same rules as an unbounded dialog:\n\n- The dialog has no click-outside dismissal, bounded or not. It closes on\n `Escape`, an `esp-form-dialog-close-requested` event, or `toggleOpen()`, so\n a click on the uncovered region never counts as an \"outside\" click.\n- The dialog marks `inert` the siblings of its anchor element, not the\n regions its bounds leave uncovered. The anchor is `esp-page`'s dialog drop\n zone when the dialog sits in the page's markup, so there the page's\n internal tracks (header, menus, preview, help, footer) are inert and not\n clickable even where the dialog does not cover them. A dialog that is a\n direct child of another component's shadow root is anchored on the nearest\n ancestor host that has a light-DOM parent, and only that host's siblings\n go inert; the page around it stays live. A dialog wrapped in an element\n inside that shadow root is anchored on itself, so its siblings in the\n wrapper go inert instead.\n- A region that is not inert receives clicks and keyboard focus. The focus\n trap wraps `Tab` and `Shift+Tab` at the dialog's first and last focusable\n elements, and `Escape` is handled on the dialog, both only while focus is\n inside it. A click on an uncovered control moves focus there, and from then\n on `Tab` continues through the page and `Escape` no longer closes the\n dialog. Set `inert` on the uncovered regions that must not be reachable\n while the dialog is open (an inert region is also skipped by screen\n readers).\n- Bounds assume a horizontal writing mode: the insets are logical, but the\n dialog's width and height are physical.\n\n```html\n<style>\n esp-dialog.bounded {\n --esp-dialog-inset-block-start: 6rem;\n --esp-dialog-inset-inline-start: 3rem;\n --esp-dialog-inset-inline-end: 3rem;\n --esp-dialog-inset-block-end: 2rem;\n }\n</style>\n<esp-dialog class=\"bounded\" full-screen>\n <esp-box full-screen>\n <h2>Bounded dialog</h2>\n <p>The page above and around this box stays visible.</p>\n <esp-button intent=\"danger\" label=\"Close\"></esp-button>\n </esp-box>\n</esp-dialog>\n<esp-button label=\"Show Dialog\"></esp-button>\n<script>\n const theDialog = findByTagName(\"esp-dialog\")[0];\n const buttons = findByTagName(\"esp-button\");\n buttons[0].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n buttons[1].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n</script>\n```",
18408
- "name": "EspalierDialog",
18409
- "cssProperties": [
18659
+ "description": "Used to upload files.\n\n```html\n<esp-file-upload choose-text=\"Upload Document\"></esp-file-upload>\n<script>\n const theFileUpload = findByTagName(\"esp-file-upload\")[0];\n theFileUpload.addEventListener(\"esp-file-upload-files-selected\", () => {\n showToast({\n message: `You selected a file!`,\n icon: \"info-i\",\n duration: 2,\n onClosed: () => {\n theFileUpload.finishedProcessingFiles();\n },\n });\n });\n</script>\n```",
18660
+ "name": "EspalierFileUpload",
18661
+ "members": [
18410
18662
  {
18411
- "description": "The background color of the dialog overlay.",
18412
- "name": "--esp-color-dialog-bg"
18663
+ "kind": "field",
18664
+ "name": "uploadInput",
18665
+ "privacy": "private"
18413
18666
  },
18414
18667
  {
18415
- "description": "The opacity of the dialog overlay background.",
18416
- "name": "--esp-dialog-bg-opacity"
18668
+ "kind": "field",
18669
+ "name": "processingFiles",
18670
+ "type": {
18671
+ "text": "boolean"
18672
+ },
18673
+ "privacy": "private",
18674
+ "default": "false"
18417
18675
  },
18418
18676
  {
18419
- "description": "The top edge of the area the dialog covers, as a length from the viewport top. Defaults to `0px`.",
18420
- "name": "--esp-dialog-inset-block-start"
18677
+ "kind": "field",
18678
+ "name": "accept",
18679
+ "type": {
18680
+ "text": "string"
18681
+ },
18682
+ "privacy": "public",
18683
+ "default": "\"*\"",
18684
+ "description": "The accepted file types. For example, to allow JPEG, PNG, and WebP images:\n\n`image/jpeg, image/png, image/webp`",
18685
+ "attribute": "accept"
18421
18686
  },
18422
18687
  {
18423
- "description": "The leading edge (left in left-to-right text) of the area the dialog covers, as a length from the viewport edge. Defaults to `0px`.",
18424
- "name": "--esp-dialog-inset-inline-start"
18688
+ "kind": "field",
18689
+ "name": "chooseText",
18690
+ "type": {
18691
+ "text": "string"
18692
+ },
18693
+ "privacy": "public",
18694
+ "default": "\"Choose File\"",
18695
+ "description": "The text to display on the button.",
18696
+ "attribute": "choose-text"
18425
18697
  },
18426
18698
  {
18427
- "description": "The trailing edge (right in left-to-right text) of the area the dialog covers, as a length from the viewport edge. Defaults to `0px`.",
18428
- "name": "--esp-dialog-inset-inline-end"
18699
+ "kind": "field",
18700
+ "name": "multiple",
18701
+ "type": {
18702
+ "text": "boolean"
18703
+ },
18704
+ "privacy": "public",
18705
+ "default": "false",
18706
+ "description": "Allow multiple files to be selected.",
18707
+ "attribute": "multiple"
18429
18708
  },
18430
- {
18431
- "description": "The bottom edge of the area the dialog covers, as a length from the viewport bottom. Defaults to `0px`.",
18432
- "name": "--esp-dialog-inset-block-end"
18433
- }
18434
- ],
18435
- "slots": [
18436
- {
18437
- "description": "Place content to show modally in the default slot. ```html <esp-dialog> <esp-box> <h2>Showing something</h2> <p>There could be controls or a confirmation or anything here.</p> <esp-button intent=\"danger\" label=\"Close\"></esp-button> </esp-box> </esp-dialog> <esp-button label=\"Show Dialog\"></esp-button> <script> const theDialog = findByTagName(\"esp-dialog\")[0]; const buttons = findByTagName(\"esp-button\"); buttons[0].addEventListener(\"esp-clicked\", () => { theDialog.toggleOpen(); }); buttons[1].addEventListener(\"esp-clicked\", () => { theDialog.toggleOpen(); }); </script> ``` Dialogs work well as containers for complex forms. Picker menus, inputs, and other interactive controls render correctly inside the dialog overlay. ```html <esp-dialog> <esp-box> <h2>Add Item</h2> <esp-form-item label=\"Name\" autofocus> <esp-input placeholder=\"Enter a name\"></esp-input> </esp-form-item> <esp-form-item label=\"Category\"> <esp-pick-one placeholder=\"Choose a category\"> <esp-picker-item text=\"Electronics\" value=\"electronics\"></esp-picker-item> <esp-picker-item text=\"Clothing\" value=\"clothing\"></esp-picker-item> <esp-picker-item text=\"Books\" value=\"books\"></esp-picker-item> <esp-picker-item text=\"Home & Garden\" value=\"home-garden\"></esp-picker-item> </esp-pick-one> </esp-form-item> <esp-form-item label=\"Notes\"> <esp-textarea placeholder=\"Optional notes\"></esp-textarea> </esp-form-item> <esp-button intent=\"success\" label=\"Save\"></esp-button> <esp-button intent=\"danger\" label=\"Cancel\"></esp-button> </esp-box> </esp-dialog> <esp-button label=\"Open Form\"></esp-button> <script> const dialog = findByTagName(\"esp-dialog\")[0]; const buttons = findByTagName(\"esp-button\"); const openBtn = buttons[buttons.length - 1]; const cancelBtn = buttons[1]; openBtn.addEventListener(\"esp-clicked\", () => { dialog.toggleOpen(); }); cancelBtn.addEventListener(\"esp-clicked\", () => { dialog.toggleOpen(); }); </script> ```",
18438
- "name": ""
18439
- }
18440
- ],
18441
- "members": [
18442
18709
  {
18443
18710
  "kind": "field",
18444
- "name": "dialogSlot",
18711
+ "name": "filesSelected",
18445
18712
  "privacy": "private"
18446
18713
  },
18447
18714
  {
18448
- "kind": "field",
18449
- "name": "vellumRef",
18450
- "privacy": "private"
18715
+ "kind": "method",
18716
+ "name": "finishedProcessingFiles",
18717
+ "privacy": "public",
18718
+ "description": "The `esp-file-upload-files-selected` event sets the file upload to a processing state.\nCall this method when you have finished processing the selected files\nto reset the file upload."
18451
18719
  },
18452
18720
  {
18453
18721
  "kind": "field",
18454
- "name": "isOpen",
18722
+ "name": "seedColorBacker",
18455
18723
  "type": {
18456
- "text": "boolean"
18724
+ "text": "string"
18457
18725
  },
18458
18726
  "privacy": "private",
18459
- "default": "false"
18727
+ "default": "\"oklch(0.7 0.125 216)\"",
18728
+ "inheritedFrom": {
18729
+ "name": "EspalierElementBase",
18730
+ "module": "dist/shared/esp-element-base.js"
18731
+ }
18460
18732
  },
18461
18733
  {
18462
18734
  "kind": "field",
18463
- "name": "_overlay",
18735
+ "name": "rootObserver",
18464
18736
  "privacy": "private",
18465
- "default": "new OverlayController({ host: this, getFocusTrapContainer: () => this.vellumRef.value ?? null, getFocusFallback: () => this.vellumRef.value ?? null, })"
18737
+ "readonly": true,
18738
+ "default": "new GoverningRootObserver(this, (root, previousRoot) => { if (root !== previousRoot) { this.scopedTokens.clear(); this.governingRootChanged(root); // Render the fallback sprite if re-slotting leaves this connected host without a root. if (this.isConnected) this.requestUpdate(); } if (root) { this.syncRootMetadata(root); this.rootObserver.whenReady(this.applyReadyRoot); } })",
18739
+ "inheritedFrom": {
18740
+ "name": "EspalierElementBase",
18741
+ "module": "dist/shared/esp-element-base.js"
18742
+ }
18466
18743
  },
18467
18744
  {
18468
18745
  "kind": "field",
18469
- "name": "_closeReason",
18746
+ "name": "espRoot",
18470
18747
  "type": {
18471
- "text": "\"escape\" | \"close-dialog\" | \"api\""
18748
+ "text": "EspalierRoot | null"
18472
18749
  },
18473
18750
  "privacy": "private",
18474
- "default": "\"api\"",
18475
- "description": "Tracks why the dialog is closing so lifecycle events can\nreport it. Reset to `\"api\"` after each close cycle."
18751
+ "readonly": true,
18752
+ "inheritedFrom": {
18753
+ "name": "EspalierElementBase",
18754
+ "module": "dist/shared/esp-element-base.js"
18755
+ }
18476
18756
  },
18477
18757
  {
18478
18758
  "kind": "field",
18479
- "name": "_lifecycleToken",
18759
+ "name": "contextBacker",
18480
18760
  "type": {
18481
- "text": "number"
18761
+ "text": "string"
18482
18762
  },
18483
18763
  "privacy": "private",
18484
- "default": "0",
18485
- "description": "Monotonic token used to invalidate async open/close lifecycle\ncallbacks from earlier toggle cycles."
18764
+ "default": "\"\"",
18765
+ "inheritedFrom": {
18766
+ "name": "EspalierElementBase",
18767
+ "module": "dist/shared/esp-element-base.js"
18768
+ }
18486
18769
  },
18487
18770
  {
18488
18771
  "kind": "field",
18489
- "name": "fullScreen",
18772
+ "name": "scopedTokens",
18773
+ "privacy": "private",
18774
+ "readonly": true,
18775
+ "default": "new ScopedStyleDeclarations(this)",
18776
+ "inheritedFrom": {
18777
+ "name": "EspalierElementBase",
18778
+ "module": "dist/shared/esp-element-base.js"
18779
+ }
18780
+ },
18781
+ {
18782
+ "kind": "field",
18783
+ "name": "warnedUnknownContexts",
18784
+ "privacy": "private",
18785
+ "readonly": true,
18786
+ "default": "new Set<string>()",
18787
+ "inheritedFrom": {
18788
+ "name": "EspalierElementBase",
18789
+ "module": "dist/shared/esp-element-base.js"
18790
+ }
18791
+ },
18792
+ {
18793
+ "kind": "field",
18794
+ "name": "intentBacker",
18795
+ "type": {
18796
+ "text": "EspalierIntentVariant"
18797
+ },
18798
+ "privacy": "protected",
18799
+ "default": "\"neutral\"",
18800
+ "inheritedFrom": {
18801
+ "name": "EspalierElementBase",
18802
+ "module": "dist/shared/esp-element-base.js"
18803
+ }
18804
+ },
18805
+ {
18806
+ "kind": "field",
18807
+ "name": "intentEmitsTokens",
18490
18808
  "type": {
18491
18809
  "text": "boolean"
18492
18810
  },
18811
+ "privacy": "protected",
18812
+ "default": "true",
18813
+ "description": "Whether a non-neutral intent emits its inline tokens\n(`--esp-color-primary` and the filled-action pair). Interactive\ncontrols need them; chrome whose intent treatment is class-based\n(badges, callouts, status pills — see `intentSurfaceTokens`) opts\nout so a decorative intent never rewrites inherited tokens for\nslotted content.",
18814
+ "inheritedFrom": {
18815
+ "name": "EspalierElementBase",
18816
+ "module": "dist/shared/esp-element-base.js"
18817
+ }
18818
+ },
18819
+ {
18820
+ "kind": "field",
18821
+ "name": "warnedUnknownIntents",
18822
+ "privacy": "private",
18823
+ "readonly": true,
18824
+ "default": "new Set<string>()",
18825
+ "inheritedFrom": {
18826
+ "name": "EspalierElementBase",
18827
+ "module": "dist/shared/esp-element-base.js"
18828
+ }
18829
+ },
18830
+ {
18831
+ "kind": "field",
18832
+ "name": "seedColor",
18833
+ "type": {
18834
+ "text": "string"
18835
+ },
18493
18836
  "privacy": "public",
18494
- "default": "false",
18495
- "description": "If true, the dialog will take up the full screen. On\nsmall screens, the dialog will always be full screen.\n\n```html\n<esp-dialog full-screen>\n <esp-box full-screen>\n <h2>Full screen dialog</h2>\n <p>There could be controls or a confirmation or anything here.</p>\n <esp-button intent=\"danger\" label=\"Close\"></esp-button>\n </esp-box>\n</esp-dialog>\n<esp-button label=\"Show Dialog\"></esp-button>\n<script>\n const theDialog = findByTagName(\"esp-dialog\")[0];\n const buttons = findByTagName(\"esp-button\");\n buttons[0].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n buttons[1].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n</script>\n```",
18496
- "attribute": "full-screen"
18837
+ "inheritedFrom": {
18838
+ "name": "EspalierElementBase",
18839
+ "module": "dist/shared/esp-element-base.js"
18840
+ }
18497
18841
  },
18498
18842
  {
18499
- "kind": "method",
18500
- "name": "toggleOpen",
18843
+ "kind": "field",
18844
+ "name": "correlationId",
18501
18845
  "privacy": "public",
18502
- "description": "Show or hide the dialog content. When opening, focus moves\ninto the dialog and sibling content is marked `inert`. When\nclosing, focus is restored to the element that was focused\nbefore the dialog opened.\n\nDispatches lifecycle events:\n- `esp-dialog-opened` after the dialog is fully rendered and\n focus has moved in.\n- `esp-dialog-closing` (cancelable) before the close begins.\n- `esp-dialog-closed` after the close completes."
18846
+ "inheritedFrom": {
18847
+ "name": "EspalierElementBase",
18848
+ "module": "dist/shared/esp-element-base.js"
18849
+ }
18503
18850
  },
18504
18851
  {
18505
18852
  "kind": "method",
18506
- "name": "_handleKeyDown",
18507
- "privacy": "private",
18853
+ "name": "focusResolvedElementAfterUpdate",
18854
+ "privacy": "protected",
18508
18855
  "return": {
18509
18856
  "type": {
18510
18857
  "text": "void"
@@ -18512,113 +18859,562 @@
18512
18859
  },
18513
18860
  "parameters": [
18514
18861
  {
18515
- "name": "ev",
18862
+ "name": "resolveTarget",
18516
18863
  "type": {
18517
- "text": "KeyboardEvent"
18864
+ "text": "() => HTMLElement | null | undefined"
18865
+ }
18866
+ },
18867
+ {
18868
+ "name": "options",
18869
+ "optional": true,
18870
+ "type": {
18871
+ "text": "FocusOptions"
18518
18872
  }
18519
18873
  }
18520
- ]
18874
+ ],
18875
+ "inheritedFrom": {
18876
+ "name": "EspalierElementBase",
18877
+ "module": "dist/shared/esp-element-base.js"
18878
+ }
18521
18879
  },
18522
18880
  {
18523
18881
  "kind": "method",
18524
- "name": "_moveFocusIntoDialog",
18525
- "privacy": "private",
18882
+ "name": "focusShadowElementAfterUpdate",
18883
+ "privacy": "protected",
18526
18884
  "return": {
18527
18885
  "type": {
18528
18886
  "text": "void"
18529
18887
  }
18530
18888
  },
18531
- "description": "Move focus to the first autofocus element inside the slotted\ncontent, then the first focusable element. If no focusable\nelement is found, focus the vellum container itself (which has\n`tabindex=\"-1\"`)."
18532
- }
18533
- ],
18534
- "events": [
18889
+ "parameters": [
18890
+ {
18891
+ "name": "selector",
18892
+ "type": {
18893
+ "text": "string"
18894
+ }
18895
+ },
18896
+ {
18897
+ "name": "options",
18898
+ "optional": true,
18899
+ "type": {
18900
+ "text": "FocusOptions"
18901
+ }
18902
+ }
18903
+ ],
18904
+ "inheritedFrom": {
18905
+ "name": "EspalierElementBase",
18906
+ "module": "dist/shared/esp-element-base.js"
18907
+ }
18908
+ },
18535
18909
  {
18536
- "type": {
18537
- "text": "CustomEvent<{}>"
18910
+ "kind": "method",
18911
+ "name": "emitValueChanged",
18912
+ "privacy": "protected",
18913
+ "return": {
18914
+ "type": {
18915
+ "text": "void"
18916
+ }
18538
18917
  },
18539
- "description": "Fired after the dialog has been promoted to its final DOM position, rendered, and focus has moved in. Safe to initialize third-party widgets (e.g. Stripe Elements) or measure layout at this point.",
18540
- "name": "esp-dialog-opened"
18918
+ "parameters": [
18919
+ {
18920
+ "name": "detail",
18921
+ "type": {
18922
+ "text": "T"
18923
+ }
18924
+ }
18925
+ ],
18926
+ "inheritedFrom": {
18927
+ "name": "EspalierElementBase",
18928
+ "module": "dist/shared/esp-element-base.js"
18929
+ }
18541
18930
  },
18542
18931
  {
18932
+ "kind": "field",
18933
+ "name": "scheme",
18543
18934
  "type": {
18544
- "text": "CustomEvent<{ reason: \"escape\" | \"close-dialog\" | \"api\" }>"
18935
+ "text": "\"dark\" | \"light\""
18545
18936
  },
18546
- "description": "Fired before the dialog begins closing. Call `event.preventDefault()` to cancel the close (e.g. for unsaved-changes confirmation). The `reason` indicates what triggered the close: `\"escape\"` for the Escape key, `\"close-dialog\"` for a `esp-form-dialog-close-requested` event from slotted content (typically `<esp-form method=\"dialog\">`), or `\"api\"` for a direct `toggleOpen()` call.",
18547
- "name": "esp-dialog-closing"
18937
+ "privacy": "public",
18938
+ "default": "\"light\"",
18939
+ "description": "The scheme to use for the component. This property is used internally\nto control the light/dark scheme so it matches the scheme of\n[esp-root](/components/root). It should not be set manually, it\nexists as an attribute for styling purposes.",
18940
+ "attribute": "scheme",
18941
+ "reflects": true,
18942
+ "inheritedFrom": {
18943
+ "name": "EspalierElementBase",
18944
+ "module": "dist/shared/esp-element-base.js"
18945
+ }
18548
18946
  },
18549
18947
  {
18948
+ "kind": "field",
18949
+ "name": "intent",
18550
18950
  "type": {
18551
- "text": "CustomEvent<{ reason: \"escape\" | \"close-dialog\" | \"api\" }>"
18951
+ "text": "EspalierIntentVariant"
18552
18952
  },
18553
- "description": "Fired after the dialog has fully closed, inert state has been restored, and focus has returned to the previously focused element. Safe to tear down resources.",
18554
- "name": "esp-dialog-closed"
18953
+ "privacy": "public",
18954
+ "description": "The element's [intent](/espalier-guides/) — its meaning: `neutral`\n(no pin), or `success`, `warning`, `danger`, `info` — each pinned\nto its fixed status family (blue for `info`), retunable per theme\nvia `intents`. On token-emitting controls a non-neutral intent pins the\nfilled-action pair to that family, derived over the governing\nzone's theme; class-styled chrome (badges, callouts, status pills)\nopts out of inline emission and renders its treatment from CSS\nclasses instead. An intent never repaints the surrounding zone,\nwhich is what contexts are for. Removing the attribute restores\nthe element's own default intent.",
18955
+ "attribute": "intent",
18956
+ "reflects": true,
18957
+ "inheritedFrom": {
18958
+ "name": "EspalierElementBase",
18959
+ "module": "dist/shared/esp-element-base.js"
18960
+ }
18961
+ },
18962
+ {
18963
+ "kind": "field",
18964
+ "name": "context",
18965
+ "type": {
18966
+ "text": "string"
18967
+ },
18968
+ "privacy": "public",
18969
+ "description": "A theme-defined color zone. The selected context rebinds designer-facing\nroles and emits a complete, contrast-enforced semantic token table on this\nhost for descendants to inherit.",
18970
+ "attribute": "context",
18971
+ "reflects": true,
18972
+ "inheritedFrom": {
18973
+ "name": "EspalierElementBase",
18974
+ "module": "dist/shared/esp-element-base.js"
18975
+ }
18976
+ },
18977
+ {
18978
+ "kind": "method",
18979
+ "name": "refreshDescendantIntentDerivations",
18980
+ "privacy": "private",
18981
+ "return": {
18982
+ "type": {
18983
+ "text": "void"
18984
+ }
18985
+ },
18986
+ "description": "A zone rebinding must reach descendants whose intent pairs derive\nover it. Root-level changes arrive over the bus, but the context\nattribute is plain DOM state with no bus event, so the zone host\nwalks its FLATTENED subtree — crossing open shadow roots and\nfollowing slot assignment, the tree its table cascades along — and\nlets each Espalier descendant re-apply against the current\nancestry. Idempotent for hosts this zone doesn't govern; the\nvisited set guards the slot/light diamond (a host's light children\nare also its slots' assigned elements).",
18987
+ "inheritedFrom": {
18988
+ "name": "EspalierElementBase",
18989
+ "module": "dist/shared/esp-element-base.js"
18990
+ }
18991
+ },
18992
+ {
18993
+ "kind": "method",
18994
+ "name": "resolveAncestorZoneTheme",
18995
+ "privacy": "private",
18996
+ "return": {
18997
+ "type": {
18998
+ "text": "EspalierTheme | null"
18999
+ }
19000
+ },
19001
+ "parameters": [
19002
+ {
19003
+ "name": "activeTheme",
19004
+ "type": {
19005
+ "text": "EspalierTheme"
19006
+ }
19007
+ }
19008
+ ],
19009
+ "description": "The nearest ancestor zone the active theme can actually compile,\nwalking the flattened tree — through assigned slots and out of\nshadow roots — because that is the tree the zone's emitted table\ncascades along: a consumer shell may declare its zone around a\n`<slot>` inside its own shadow. A zone host with an unresolvable\ncontext emits nothing and inherits the next zone out, so unknown\nnames are skipped rather than collapsed to the root theme. Bounded\nby this element's esp-root.",
19010
+ "inheritedFrom": {
19011
+ "name": "EspalierElementBase",
19012
+ "module": "dist/shared/esp-element-base.js"
19013
+ }
19014
+ },
19015
+ {
19016
+ "kind": "method",
19017
+ "name": "governingRootChanged",
19018
+ "privacy": "protected",
19019
+ "return": {
19020
+ "type": {
19021
+ "text": "void"
19022
+ }
19023
+ },
19024
+ "parameters": [
19025
+ {
19026
+ "name": "_root",
19027
+ "type": {
19028
+ "text": "EspalierRoot | null"
19029
+ }
19030
+ }
19031
+ ],
19032
+ "description": "Called when this host gains, loses or changes its nearest root.",
19033
+ "inheritedFrom": {
19034
+ "name": "EspalierElementBase",
19035
+ "module": "dist/shared/esp-element-base.js"
19036
+ }
19037
+ },
19038
+ {
19039
+ "kind": "method",
19040
+ "name": "syncRootMetadata",
19041
+ "privacy": "private",
19042
+ "return": {
19043
+ "type": {
19044
+ "text": "void"
19045
+ }
19046
+ },
19047
+ "parameters": [
19048
+ {
19049
+ "name": "root",
19050
+ "type": {
19051
+ "text": "EspalierRoot"
19052
+ }
19053
+ }
19054
+ ],
19055
+ "inheritedFrom": {
19056
+ "name": "EspalierElementBase",
19057
+ "module": "dist/shared/esp-element-base.js"
19058
+ }
19059
+ },
19060
+ {
19061
+ "kind": "field",
19062
+ "name": "applyReadyRoot",
19063
+ "privacy": "private",
19064
+ "readonly": true,
19065
+ "inheritedFrom": {
19066
+ "name": "EspalierElementBase",
19067
+ "module": "dist/shared/esp-element-base.js"
19068
+ }
19069
+ },
19070
+ {
19071
+ "kind": "method",
19072
+ "name": "applyTokensWhenRootReady",
19073
+ "privacy": "private",
19074
+ "return": {
19075
+ "type": {
19076
+ "text": "void"
19077
+ }
19078
+ },
19079
+ "inheritedFrom": {
19080
+ "name": "EspalierElementBase",
19081
+ "module": "dist/shared/esp-element-base.js"
19082
+ }
19083
+ },
19084
+ {
19085
+ "kind": "method",
19086
+ "name": "traverseToClosest",
19087
+ "privacy": "public",
19088
+ "return": {
19089
+ "type": {
19090
+ "text": ""
19091
+ }
19092
+ },
19093
+ "parameters": [
19094
+ {
19095
+ "name": "selector",
19096
+ "type": {
19097
+ "text": "string"
19098
+ },
19099
+ "description": "The selector of the element to look for"
19100
+ }
19101
+ ],
19102
+ "description": "Traverse up the DOM tree to find the closest element that\nmatches the selector. This method is aware of shadow DOM\nboundaries and will traverse through them to find the element.",
19103
+ "inheritedFrom": {
19104
+ "name": "EspalierElementBase",
19105
+ "module": "dist/shared/esp-element-base.js"
19106
+ }
19107
+ },
19108
+ {
19109
+ "kind": "field",
19110
+ "name": "intentColorSources",
19111
+ "type": {
19112
+ "text": "Readonly<\n Record<EspalierIntentVariant, ColorSource | \"\">\n >"
19113
+ },
19114
+ "privacy": "private",
19115
+ "static": true,
19116
+ "readonly": true,
19117
+ "default": "{ danger: \"danger\", info: \"info\", neutral: \"\", success: \"success\", warning: \"warning\", }",
19118
+ "description": "Intent color sources: the meaning-bearing families an intent pins\nthe filled-action pair to. `neutral` pins nothing; each other\nintent maps to its own fixed status family (ESP0172 gave `info` a\nreal blue family, replacing the complementary borrow the retired\nvariant system used), and a theme's `intents` field retunes the\nfamily colors themselves.",
19119
+ "inheritedFrom": {
19120
+ "name": "EspalierElementBase",
19121
+ "module": "dist/shared/esp-element-base.js"
19122
+ }
19123
+ },
19124
+ {
19125
+ "kind": "field",
19126
+ "name": "semanticActionTokens",
19127
+ "type": {
19128
+ "text": "ReadonlySet<SemanticColorName>"
19129
+ },
19130
+ "privacy": "private",
19131
+ "static": true,
19132
+ "readonly": true,
19133
+ "default": "new Set<SemanticColorName>([\"actionBackground\", \"actionText\"])",
19134
+ "description": "Semantic tokens that paint a control's filled action surface — the\npair an intent recolors. Everything else inherits the zone cascade,\nwhich is the ESP0166 fix: under the SHY fitted theme the retired\nvariant re-seeding painted a danger callout's *background* mint\ngreen; an intent leaves the zone's surfaces alone and pins only the\naction pair (plus `--esp-color-primary` for state derivations) to\nthe intent's own status family — fixed hues by default, retunable\nper theme via `intents`. Task 098's\nguarantee survives structurally: the\npin is by source, so no theme mapping can rotate a destructive /\nwarning / positive action off its semantic hue.",
19135
+ "inheritedFrom": {
19136
+ "name": "EspalierElementBase",
19137
+ "module": "dist/shared/esp-element-base.js"
19138
+ }
19139
+ },
19140
+ {
19141
+ "kind": "method",
19142
+ "name": "applyScopedColorTokens",
19143
+ "privacy": "protected",
19144
+ "return": {
19145
+ "type": {
19146
+ "text": "void"
19147
+ }
19148
+ },
19149
+ "description": "Compute and apply context- and intent-specific semantic color tokens.\n\nWith no context and a `neutral` intent, all semantic tokens cascade\nfrom `<esp-root>` and previous overrides are cleared. A context\nemits the zone's complete twenty-three-token table; a non-neutral intent\nthen overlays the filled-action pair, derived over the governing\nzone's theme — this host's own context, or the nearest ancestor\nzone's — so its APCA enforcement runs against the zone's actual\naction surface.",
19150
+ "inheritedFrom": {
19151
+ "name": "EspalierElementBase",
19152
+ "module": "dist/shared/esp-element-base.js"
19153
+ }
19154
+ },
19155
+ {
19156
+ "kind": "method",
19157
+ "name": "resolveContextTheme",
19158
+ "privacy": "private",
19159
+ "return": {
19160
+ "type": {
19161
+ "text": "{ applied: false; theme: EspalierTheme } | { applied: true; name: string; theme: EspalierTheme }"
19162
+ }
19163
+ },
19164
+ "parameters": [
19165
+ {
19166
+ "name": "theme",
19167
+ "type": {
19168
+ "text": "EspalierTheme"
19169
+ }
19170
+ }
19171
+ ],
19172
+ "description": "Resolve this host's own context name over the active root theme.",
19173
+ "inheritedFrom": {
19174
+ "name": "EspalierElementBase",
19175
+ "module": "dist/shared/esp-element-base.js"
19176
+ }
19177
+ },
19178
+ {
19179
+ "kind": "method",
19180
+ "name": "warnUnknownContextWhenSettled",
19181
+ "privacy": "private",
19182
+ "return": {
19183
+ "type": {
19184
+ "text": "void"
19185
+ }
19186
+ },
19187
+ "parameters": [
19188
+ {
19189
+ "name": "name",
19190
+ "type": {
19191
+ "text": "string"
19192
+ }
19193
+ }
19194
+ ],
19195
+ "description": "Warn about an unknown context only once the root's theme has\nsettled (ESP0177).\n\nA script-mounted theme lands after its descendants first render, so\na zone naming a context the theme *does* define would otherwise\nwarn about a state that was never rendered to anyone. Waiting for\nthe root to settle — an author theme resolved, or the pre-theme\nwindow closed with none — makes the warning describe the settled\ntheme instead of a transient one. It is deferred, never dropped: a\ngenuinely missing context still warns, just after the window.",
19196
+ "inheritedFrom": {
19197
+ "name": "EspalierElementBase",
19198
+ "module": "dist/shared/esp-element-base.js"
19199
+ }
19200
+ },
19201
+ {
19202
+ "kind": "method",
19203
+ "name": "resolveNamedContextTheme",
19204
+ "privacy": "private",
19205
+ "return": {
19206
+ "type": {
19207
+ "text": "EspalierTheme | null"
19208
+ }
19209
+ },
19210
+ "parameters": [
19211
+ {
19212
+ "name": "theme",
19213
+ "type": {
19214
+ "text": "EspalierTheme"
19215
+ }
19216
+ },
19217
+ {
19218
+ "name": "name",
19219
+ "type": {
19220
+ "text": "string"
19221
+ }
19222
+ }
19223
+ ],
19224
+ "description": "Compile a named context's theme, or null when the theme doesn't\ndefine it. Delegates to the exported compiler so a DOM-less consumer\n(the fit-report suite, a check script) inspects exactly the theme a\nzone host renders — the drift this shared path exists to prevent\n(ESP0175).",
19225
+ "inheritedFrom": {
19226
+ "name": "EspalierElementBase",
19227
+ "module": "dist/shared/esp-element-base.js"
19228
+ }
19229
+ }
19230
+ ],
19231
+ "events": [
19232
+ {
19233
+ "type": {
19234
+ "text": "CustomEvent<FileList>"
19235
+ },
19236
+ "description": "Fired after the user selects one or more files.",
19237
+ "name": "esp-file-upload-files-selected"
18555
19238
  }
18556
19239
  ],
18557
19240
  "attributes": [
18558
19241
  {
19242
+ "name": "accept",
18559
19243
  "type": {
18560
- "text": "\"1\"|\"2\"|\"3\"|\"4\""
19244
+ "text": "string"
18561
19245
  },
18562
- "description": "Declares the painted surface depth; defaults to layer 3.",
18563
- "name": "surface-layer"
19246
+ "default": "\"*\"",
19247
+ "description": "The accepted file types. For example, to allow JPEG, PNG, and WebP images:\n\n`image/jpeg, image/png, image/webp`",
19248
+ "fieldName": "accept"
18564
19249
  },
18565
19250
  {
18566
- "name": "full-screen",
19251
+ "name": "choose-text",
19252
+ "type": {
19253
+ "text": "string"
19254
+ },
19255
+ "default": "\"Choose File\"",
19256
+ "description": "The text to display on the button.",
19257
+ "fieldName": "chooseText"
19258
+ },
19259
+ {
19260
+ "name": "multiple",
18567
19261
  "type": {
18568
19262
  "text": "boolean"
18569
19263
  },
18570
19264
  "default": "false",
18571
- "description": "If true, the dialog will take up the full screen. On\nsmall screens, the dialog will always be full screen.\n\n```html\n<esp-dialog full-screen>\n <esp-box full-screen>\n <h2>Full screen dialog</h2>\n <p>There could be controls or a confirmation or anything here.</p>\n <esp-button intent=\"danger\" label=\"Close\"></esp-button>\n </esp-box>\n</esp-dialog>\n<esp-button label=\"Show Dialog\"></esp-button>\n<script>\n const theDialog = findByTagName(\"esp-dialog\")[0];\n const buttons = findByTagName(\"esp-button\");\n buttons[0].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n buttons[1].addEventListener(\"esp-clicked\", () => {\n theDialog.toggleOpen();\n });\n</script>\n```",
18572
- "fieldName": "fullScreen"
19265
+ "description": "Allow multiple files to be selected.",
19266
+ "fieldName": "multiple"
19267
+ },
19268
+ {
19269
+ "type": {
19270
+ "text": "\"1\"|\"2\"|\"3\"|\"4\""
19271
+ },
19272
+ "description": "Declares the painted surface depth. Fields use the next local layer, capped at layer 4.",
19273
+ "name": "surface-layer",
19274
+ "inheritedFrom": {
19275
+ "name": "EspalierElementBase",
19276
+ "module": "dist/shared/esp-element-base.js"
19277
+ }
19278
+ },
19279
+ {
19280
+ "name": "scheme",
19281
+ "type": {
19282
+ "text": "\"dark\" | \"light\""
19283
+ },
19284
+ "default": "\"light\"",
19285
+ "description": "The scheme to use for the component. This property is used internally\nto control the light/dark scheme so it matches the scheme of\n[esp-root](/components/root). It should not be set manually, it\nexists as an attribute for styling purposes.",
19286
+ "fieldName": "scheme",
19287
+ "inheritedFrom": {
19288
+ "name": "EspalierElementBase",
19289
+ "module": "dist/shared/esp-element-base.js"
19290
+ }
19291
+ },
19292
+ {
19293
+ "name": "intent",
19294
+ "type": {
19295
+ "text": "EspalierIntentVariant"
19296
+ },
19297
+ "description": "The element's [intent](/espalier-guides/) — its meaning: `neutral`\n(no pin), or `success`, `warning`, `danger`, `info` — each pinned\nto its fixed status family (blue for `info`), retunable per theme\nvia `intents`. On token-emitting controls a non-neutral intent pins the\nfilled-action pair to that family, derived over the governing\nzone's theme; class-styled chrome (badges, callouts, status pills)\nopts out of inline emission and renders its treatment from CSS\nclasses instead. An intent never repaints the surrounding zone,\nwhich is what contexts are for. Removing the attribute restores\nthe element's own default intent.",
19298
+ "fieldName": "intent",
19299
+ "inheritedFrom": {
19300
+ "name": "EspalierElementBase",
19301
+ "module": "dist/shared/esp-element-base.js"
19302
+ }
19303
+ },
19304
+ {
19305
+ "name": "context",
19306
+ "type": {
19307
+ "text": "string"
19308
+ },
19309
+ "description": "A theme-defined color zone. The selected context rebinds designer-facing\nroles and emits a complete, contrast-enforced semantic token table on this\nhost for descendants to inherit.",
19310
+ "fieldName": "context",
19311
+ "inheritedFrom": {
19312
+ "name": "EspalierElementBase",
19313
+ "module": "dist/shared/esp-element-base.js"
19314
+ }
18573
19315
  }
18574
19316
  ],
18575
19317
  "superclass": {
18576
- "name": "LitElement",
18577
- "package": "lit"
19318
+ "name": "EspalierElementBase",
19319
+ "module": "dist/shared/esp-element-base.js"
18578
19320
  },
18579
- "tagName": "esp-dialog",
19321
+ "tagName": "esp-file-upload",
18580
19322
  "customElement": true,
18581
19323
  "docPageTitle": {
18582
- "name": "Dialog",
18583
- "description": ""
19324
+ "name": "File",
19325
+ "description": "Upload"
18584
19326
  },
18585
19327
  "docUrl": {
18586
- "name": "/components/dialog",
19328
+ "name": "/components/file-upload",
18587
19329
  "description": ""
18588
19330
  },
18589
19331
  "menuGroup": {
18590
- "name": "Structure",
18591
- "description": ""
18592
- },
18593
- "menuOrder": {
18594
- "name": "6",
18595
- "description": ""
19332
+ "name": "Form",
19333
+ "description": "Controls"
18596
19334
  },
18597
19335
  "menuLabel": {
18598
- "name": "Dialog",
18599
- "description": ""
19336
+ "name": "File",
19337
+ "description": "Upload"
18600
19338
  },
18601
19339
  "menuIcon": {
18602
- "name": "focus-centered",
19340
+ "name": "upload",
18603
19341
  "description": ""
18604
- }
19342
+ },
19343
+ "cssProperties": [
19344
+ {
19345
+ "description": "Background color of the shared field shell. Defaults to one layer above the nearest declared surface, capped at `var(--esp-color-layer-4)`, or `var(--esp-color-layer-2)` without a declared surface. An explicit override wins.",
19346
+ "name": "--esp-field-background",
19347
+ "inheritedFrom": {
19348
+ "name": "EspalierElementBase",
19349
+ "module": "dist/shared/esp-element-base.js"
19350
+ }
19351
+ },
19352
+ {
19353
+ "description": "Border color of the shared field shell. Defaults to `var(--esp-color-border)`.",
19354
+ "name": "--esp-field-border-color",
19355
+ "inheritedFrom": {
19356
+ "name": "EspalierElementBase",
19357
+ "module": "dist/shared/esp-element-base.js"
19358
+ }
19359
+ },
19360
+ {
19361
+ "description": "Border width of the shared field shell. Defaults to `1px`.",
19362
+ "name": "--esp-field-border-width",
19363
+ "inheritedFrom": {
19364
+ "name": "EspalierElementBase",
19365
+ "module": "dist/shared/esp-element-base.js"
19366
+ }
19367
+ },
19368
+ {
19369
+ "description": "Text color used inside the shared field shell. Defaults to `var(--esp-color-text)`.",
19370
+ "name": "--esp-field-text-color",
19371
+ "inheritedFrom": {
19372
+ "name": "EspalierElementBase",
19373
+ "module": "dist/shared/esp-element-base.js"
19374
+ }
19375
+ },
19376
+ {
19377
+ "description": "Hover background color of the shared field shell. Derived from `--esp-field-background`.",
19378
+ "name": "--esp-field-hover-bg",
19379
+ "inheritedFrom": {
19380
+ "name": "EspalierElementBase",
19381
+ "module": "dist/shared/esp-element-base.js"
19382
+ }
19383
+ },
19384
+ {
19385
+ "description": "Focus background color of the shared field shell. Derived from `--esp-field-background`.",
19386
+ "name": "--esp-field-focus-bg",
19387
+ "inheritedFrom": {
19388
+ "name": "EspalierElementBase",
19389
+ "module": "dist/shared/esp-element-base.js"
19390
+ }
19391
+ },
19392
+ {
19393
+ "description": "Shadow color used for shared field focus treatment. Defaults to `var(--esp-color-shadow)`.",
19394
+ "name": "--esp-field-focus-shadow",
19395
+ "inheritedFrom": {
19396
+ "name": "EspalierElementBase",
19397
+ "module": "dist/shared/esp-element-base.js"
19398
+ }
19399
+ }
19400
+ ]
18605
19401
  }
18606
19402
  ],
18607
19403
  "exports": [
18608
19404
  {
18609
19405
  "kind": "js",
18610
- "name": "EspalierDialog",
19406
+ "name": "EspalierFileUpload",
18611
19407
  "declaration": {
18612
- "name": "EspalierDialog",
18613
- "module": "dist/dialog/esp-dialog.js"
19408
+ "name": "EspalierFileUpload",
19409
+ "module": "dist/file-upload/esp-file-upload.js"
18614
19410
  }
18615
19411
  },
18616
19412
  {
18617
19413
  "kind": "custom-element-definition",
18618
- "name": "esp-dialog",
19414
+ "name": "esp-file-upload",
18619
19415
  "declaration": {
18620
- "name": "EspalierDialog",
18621
- "module": "dist/dialog/esp-dialog.js"
19416
+ "name": "EspalierFileUpload",
19417
+ "module": "dist/file-upload/esp-file-upload.js"
18622
19418
  }
18623
19419
  }
18624
19420
  ]
@@ -19118,928 +19914,163 @@
19118
19914
  "privacy": "private",
19119
19915
  "return": {
19120
19916
  "type": {
19121
- "text": "void"
19122
- }
19123
- },
19124
- "parameters": [
19125
- {
19126
- "name": "ev",
19127
- "type": {
19128
- "text": "KeyboardEvent"
19129
- }
19130
- }
19131
- ]
19132
- },
19133
- {
19134
- "kind": "method",
19135
- "name": "focusIsInside",
19136
- "privacy": "private",
19137
- "return": {
19138
- "type": {
19139
- "text": "boolean"
19140
- }
19141
- }
19142
- },
19143
- {
19144
- "kind": "method",
19145
- "name": "syncAnchorGeometry",
19146
- "privacy": "private",
19147
- "return": {
19148
- "type": {
19149
- "text": "void"
19150
- }
19151
- },
19152
- "description": "Position an anchored in-grid flyout at the trigger. Content-height\npanels shift upward only when they would overflow; explicitly\nfull-height panels use the complete scrollport. The leading-edge\nmarker remains aligned with the trigger for contextual help and is\nomitted from the full-height reading surface."
19153
- },
19154
- {
19155
- "kind": "method",
19156
- "name": "getVisibleBlockBounds",
19157
- "privacy": "private",
19158
- "return": {
19159
- "type": {
19160
- "text": "{ top: number; bottom: number }"
19161
- }
19162
- },
19163
- "description": "Intersect the visual viewport with every scrolling ancestor. This\nkeeps the flyout usable both on the document and inside a bounded\nlive-example pane such as WTFM's demo container."
19164
- },
19165
- {
19166
- "kind": "method",
19167
- "name": "composedParent",
19168
- "privacy": "private",
19169
- "return": {
19170
- "type": {
19171
- "text": "Element | null"
19172
- }
19173
- },
19174
- "parameters": [
19175
- {
19176
- "name": "element",
19177
- "type": {
19178
- "text": "Element"
19179
- }
19180
- }
19181
- ]
19182
- },
19183
- {
19184
- "kind": "method",
19185
- "name": "setGeometryProperty",
19186
- "privacy": "private",
19187
- "return": {
19188
- "type": {
19189
- "text": "void"
19190
- }
19191
- },
19192
- "parameters": [
19193
- {
19194
- "name": "name",
19195
- "type": {
19196
- "text": "string"
19197
- }
19198
- },
19199
- {
19200
- "name": "value",
19201
- "type": {
19202
- "text": "string"
19203
- }
19204
- }
19205
- ]
19206
- },
19207
- {
19208
- "kind": "method",
19209
- "name": "clearAnchorGeometry",
19210
- "privacy": "private",
19211
- "return": {
19212
- "type": {
19213
- "text": "void"
19214
- }
19215
- }
19216
- },
19217
- {
19218
- "kind": "method",
19219
- "name": "clearAnchorPlacementGeometry",
19220
- "privacy": "private",
19221
- "return": {
19222
- "type": {
19223
- "text": "void"
19224
- }
19225
- }
19226
- },
19227
- {
19228
- "kind": "method",
19229
- "name": "scheduleAnchorGeometrySync",
19230
- "privacy": "private",
19231
- "return": {
19232
- "type": {
19233
- "text": "void"
19234
- }
19235
- }
19236
- },
19237
- {
19238
- "kind": "method",
19239
- "name": "syncAnchorTracking",
19240
- "privacy": "private",
19241
- "return": {
19242
- "type": {
19243
- "text": "void"
19244
- }
19245
- }
19246
- },
19247
- {
19248
- "kind": "method",
19249
- "name": "stopAnchorTracking",
19250
- "privacy": "private",
19251
- "return": {
19252
- "type": {
19253
- "text": "void"
19254
- }
19255
- }
19256
- },
19257
- {
19258
- "kind": "method",
19259
- "name": "syncOverlayModal",
19260
- "privacy": "private",
19261
- "return": {
19262
- "type": {
19263
- "text": "void"
19264
- }
19265
- },
19266
- "description": "Apply modal a11y exactly when the flyout is open **and** presenting\nas an overlay drawer, and remove it otherwise. Called on open/mode\nchanges and when the viewport crosses the overlay threshold.\n\nModal treatment = background inert, scroll lock, `role=\"dialog\"` +\n`aria-modal`, focus moved into the drawer and trapped, and focus\nrestored on teardown — all via the (non-promoting) Overlay\ncontroller, so the flyout never leaves its page slot. The in-grid\nmodes stay a non-modal `complementary` landmark with no focus\nmanagement."
19267
- },
19268
- {
19269
- "kind": "method",
19270
- "name": "updateGeneratedAriaLabel",
19271
- "privacy": "private",
19272
- "return": {
19273
- "type": {
19274
- "text": "void"
19275
- }
19276
- },
19277
- "description": "Mirror `heading` into `aria-label`, or apply a stable fallback\nwhile this is an overlay dialog, without clobbering a label the\nauthor controls (see lastGeneratedAriaLabel)."
19278
- },
19279
- {
19280
- "kind": "field",
19281
- "name": "seedColorBacker",
19282
- "type": {
19283
- "text": "string"
19284
- },
19285
- "privacy": "private",
19286
- "default": "\"oklch(0.7 0.125 216)\"",
19287
- "inheritedFrom": {
19288
- "name": "EspalierElementBase",
19289
- "module": "dist/shared/esp-element-base.js"
19290
- }
19291
- },
19292
- {
19293
- "kind": "field",
19294
- "name": "rootObserver",
19295
- "privacy": "private",
19296
- "readonly": true,
19297
- "default": "new GoverningRootObserver(this, (root, previousRoot) => { if (root !== previousRoot) { this.scopedTokens.clear(); this.governingRootChanged(root); // Render the fallback sprite if re-slotting leaves this connected host without a root. if (this.isConnected) this.requestUpdate(); } if (root) { this.syncRootMetadata(root); this.rootObserver.whenReady(this.applyReadyRoot); } })",
19298
- "inheritedFrom": {
19299
- "name": "EspalierElementBase",
19300
- "module": "dist/shared/esp-element-base.js"
19301
- }
19302
- },
19303
- {
19304
- "kind": "field",
19305
- "name": "espRoot",
19306
- "type": {
19307
- "text": "EspalierRoot | null"
19308
- },
19309
- "privacy": "private",
19310
- "readonly": true,
19311
- "inheritedFrom": {
19312
- "name": "EspalierElementBase",
19313
- "module": "dist/shared/esp-element-base.js"
19314
- }
19315
- },
19316
- {
19317
- "kind": "field",
19318
- "name": "contextBacker",
19319
- "type": {
19320
- "text": "string"
19321
- },
19322
- "privacy": "private",
19323
- "default": "\"\"",
19324
- "inheritedFrom": {
19325
- "name": "EspalierElementBase",
19326
- "module": "dist/shared/esp-element-base.js"
19327
- }
19328
- },
19329
- {
19330
- "kind": "field",
19331
- "name": "scopedTokens",
19332
- "privacy": "private",
19333
- "readonly": true,
19334
- "default": "new ScopedStyleDeclarations(this)",
19335
- "inheritedFrom": {
19336
- "name": "EspalierElementBase",
19337
- "module": "dist/shared/esp-element-base.js"
19338
- }
19339
- },
19340
- {
19341
- "kind": "field",
19342
- "name": "warnedUnknownContexts",
19343
- "privacy": "private",
19344
- "readonly": true,
19345
- "default": "new Set<string>()",
19346
- "inheritedFrom": {
19347
- "name": "EspalierElementBase",
19348
- "module": "dist/shared/esp-element-base.js"
19349
- }
19350
- },
19351
- {
19352
- "kind": "field",
19353
- "name": "intentBacker",
19354
- "type": {
19355
- "text": "EspalierIntentVariant"
19356
- },
19357
- "privacy": "protected",
19358
- "default": "\"neutral\"",
19359
- "inheritedFrom": {
19360
- "name": "EspalierElementBase",
19361
- "module": "dist/shared/esp-element-base.js"
19362
- }
19363
- },
19364
- {
19365
- "kind": "field",
19366
- "name": "intentEmitsTokens",
19367
- "type": {
19368
- "text": "boolean"
19369
- },
19370
- "privacy": "protected",
19371
- "default": "true",
19372
- "description": "Whether a non-neutral intent emits its inline tokens\n(`--esp-color-primary` and the filled-action pair). Interactive\ncontrols need them; chrome whose intent treatment is class-based\n(badges, callouts, status pills — see `intentSurfaceTokens`) opts\nout so a decorative intent never rewrites inherited tokens for\nslotted content.",
19373
- "inheritedFrom": {
19374
- "name": "EspalierElementBase",
19375
- "module": "dist/shared/esp-element-base.js"
19376
- }
19377
- },
19378
- {
19379
- "kind": "field",
19380
- "name": "warnedUnknownIntents",
19381
- "privacy": "private",
19382
- "readonly": true,
19383
- "default": "new Set<string>()",
19384
- "inheritedFrom": {
19385
- "name": "EspalierElementBase",
19386
- "module": "dist/shared/esp-element-base.js"
19387
- }
19388
- },
19389
- {
19390
- "kind": "field",
19391
- "name": "seedColor",
19392
- "type": {
19393
- "text": "string"
19394
- },
19395
- "privacy": "public",
19396
- "inheritedFrom": {
19397
- "name": "EspalierElementBase",
19398
- "module": "dist/shared/esp-element-base.js"
19399
- }
19400
- },
19401
- {
19402
- "kind": "field",
19403
- "name": "correlationId",
19404
- "privacy": "public",
19405
- "inheritedFrom": {
19406
- "name": "EspalierElementBase",
19407
- "module": "dist/shared/esp-element-base.js"
19408
- }
19409
- },
19410
- {
19411
- "kind": "method",
19412
- "name": "focusResolvedElementAfterUpdate",
19413
- "privacy": "protected",
19414
- "return": {
19415
- "type": {
19416
- "text": "void"
19417
- }
19418
- },
19419
- "parameters": [
19420
- {
19421
- "name": "resolveTarget",
19422
- "type": {
19423
- "text": "() => HTMLElement | null | undefined"
19424
- }
19425
- },
19426
- {
19427
- "name": "options",
19428
- "optional": true,
19429
- "type": {
19430
- "text": "FocusOptions"
19431
- }
19432
- }
19433
- ],
19434
- "inheritedFrom": {
19435
- "name": "EspalierElementBase",
19436
- "module": "dist/shared/esp-element-base.js"
19437
- }
19438
- },
19439
- {
19440
- "kind": "method",
19441
- "name": "focusShadowElementAfterUpdate",
19442
- "privacy": "protected",
19443
- "return": {
19444
- "type": {
19445
- "text": "void"
19446
- }
19447
- },
19448
- "parameters": [
19449
- {
19450
- "name": "selector",
19451
- "type": {
19452
- "text": "string"
19453
- }
19454
- },
19455
- {
19456
- "name": "options",
19457
- "optional": true,
19458
- "type": {
19459
- "text": "FocusOptions"
19460
- }
19461
- }
19462
- ],
19463
- "inheritedFrom": {
19464
- "name": "EspalierElementBase",
19465
- "module": "dist/shared/esp-element-base.js"
19466
- }
19467
- },
19468
- {
19469
- "kind": "method",
19470
- "name": "emitValueChanged",
19471
- "privacy": "protected",
19472
- "return": {
19473
- "type": {
19474
- "text": "void"
19475
- }
19476
- },
19477
- "parameters": [
19478
- {
19479
- "name": "detail",
19480
- "type": {
19481
- "text": "T"
19482
- }
19483
- }
19484
- ],
19485
- "inheritedFrom": {
19486
- "name": "EspalierElementBase",
19487
- "module": "dist/shared/esp-element-base.js"
19488
- }
19489
- },
19490
- {
19491
- "kind": "field",
19492
- "name": "scheme",
19493
- "type": {
19494
- "text": "\"dark\" | \"light\""
19495
- },
19496
- "privacy": "public",
19497
- "default": "\"light\"",
19498
- "description": "The scheme to use for the component. This property is used internally\nto control the light/dark scheme so it matches the scheme of\n[esp-root](/components/root). It should not be set manually, it\nexists as an attribute for styling purposes.",
19499
- "attribute": "scheme",
19500
- "reflects": true,
19501
- "inheritedFrom": {
19502
- "name": "EspalierElementBase",
19503
- "module": "dist/shared/esp-element-base.js"
19504
- }
19505
- },
19506
- {
19507
- "kind": "field",
19508
- "name": "intent",
19509
- "type": {
19510
- "text": "EspalierIntentVariant"
19511
- },
19512
- "privacy": "public",
19513
- "description": "The element's [intent](/espalier-guides/) — its meaning: `neutral`\n(no pin), or `success`, `warning`, `danger`, `info` — each pinned\nto its fixed status family (blue for `info`), retunable per theme\nvia `intents`. On token-emitting controls a non-neutral intent pins the\nfilled-action pair to that family, derived over the governing\nzone's theme; class-styled chrome (badges, callouts, status pills)\nopts out of inline emission and renders its treatment from CSS\nclasses instead. An intent never repaints the surrounding zone,\nwhich is what contexts are for. Removing the attribute restores\nthe element's own default intent.",
19514
- "attribute": "intent",
19515
- "reflects": true,
19516
- "inheritedFrom": {
19517
- "name": "EspalierElementBase",
19518
- "module": "dist/shared/esp-element-base.js"
19519
- }
19520
- },
19521
- {
19522
- "kind": "field",
19523
- "name": "context",
19524
- "type": {
19525
- "text": "string"
19526
- },
19527
- "privacy": "public",
19528
- "description": "A theme-defined color zone. The selected context rebinds designer-facing\nroles and emits a complete, contrast-enforced semantic token table on this\nhost for descendants to inherit.",
19529
- "attribute": "context",
19530
- "reflects": true,
19531
- "inheritedFrom": {
19532
- "name": "EspalierElementBase",
19533
- "module": "dist/shared/esp-element-base.js"
19534
- }
19535
- },
19536
- {
19537
- "kind": "method",
19538
- "name": "refreshDescendantIntentDerivations",
19539
- "privacy": "private",
19540
- "return": {
19541
- "type": {
19542
- "text": "void"
19543
- }
19544
- },
19545
- "description": "A zone rebinding must reach descendants whose intent pairs derive\nover it. Root-level changes arrive over the bus, but the context\nattribute is plain DOM state with no bus event, so the zone host\nwalks its FLATTENED subtree — crossing open shadow roots and\nfollowing slot assignment, the tree its table cascades along — and\nlets each Espalier descendant re-apply against the current\nancestry. Idempotent for hosts this zone doesn't govern; the\nvisited set guards the slot/light diamond (a host's light children\nare also its slots' assigned elements).",
19546
- "inheritedFrom": {
19547
- "name": "EspalierElementBase",
19548
- "module": "dist/shared/esp-element-base.js"
19549
- }
19550
- },
19551
- {
19552
- "kind": "method",
19553
- "name": "resolveAncestorZoneTheme",
19554
- "privacy": "private",
19555
- "return": {
19556
- "type": {
19557
- "text": "EspalierTheme | null"
19558
- }
19559
- },
19560
- "parameters": [
19561
- {
19562
- "name": "activeTheme",
19563
- "type": {
19564
- "text": "EspalierTheme"
19565
- }
19566
- }
19567
- ],
19568
- "description": "The nearest ancestor zone the active theme can actually compile,\nwalking the flattened tree — through assigned slots and out of\nshadow roots — because that is the tree the zone's emitted table\ncascades along: a consumer shell may declare its zone around a\n`<slot>` inside its own shadow. A zone host with an unresolvable\ncontext emits nothing and inherits the next zone out, so unknown\nnames are skipped rather than collapsed to the root theme. Bounded\nby this element's esp-root.",
19569
- "inheritedFrom": {
19570
- "name": "EspalierElementBase",
19571
- "module": "dist/shared/esp-element-base.js"
19572
- }
19573
- },
19574
- {
19575
- "kind": "method",
19576
- "name": "governingRootChanged",
19577
- "privacy": "protected",
19578
- "return": {
19579
- "type": {
19580
- "text": "void"
19581
- }
19582
- },
19583
- "parameters": [
19584
- {
19585
- "name": "_root",
19586
- "type": {
19587
- "text": "EspalierRoot | null"
19588
- }
19589
- }
19590
- ],
19591
- "description": "Called when this host gains, loses or changes its nearest root.",
19592
- "inheritedFrom": {
19593
- "name": "EspalierElementBase",
19594
- "module": "dist/shared/esp-element-base.js"
19595
- }
19596
- },
19597
- {
19598
- "kind": "method",
19599
- "name": "syncRootMetadata",
19600
- "privacy": "private",
19601
- "return": {
19602
- "type": {
19603
- "text": "void"
19604
- }
19605
- },
19606
- "parameters": [
19607
- {
19608
- "name": "root",
19609
- "type": {
19610
- "text": "EspalierRoot"
19611
- }
19612
- }
19613
- ],
19614
- "inheritedFrom": {
19615
- "name": "EspalierElementBase",
19616
- "module": "dist/shared/esp-element-base.js"
19617
- }
19618
- },
19619
- {
19620
- "kind": "field",
19621
- "name": "applyReadyRoot",
19622
- "privacy": "private",
19623
- "readonly": true,
19624
- "inheritedFrom": {
19625
- "name": "EspalierElementBase",
19626
- "module": "dist/shared/esp-element-base.js"
19627
- }
19628
- },
19629
- {
19630
- "kind": "method",
19631
- "name": "applyTokensWhenRootReady",
19632
- "privacy": "private",
19633
- "return": {
19634
- "type": {
19635
- "text": "void"
19636
- }
19637
- },
19638
- "inheritedFrom": {
19639
- "name": "EspalierElementBase",
19640
- "module": "dist/shared/esp-element-base.js"
19641
- }
19642
- },
19643
- {
19644
- "kind": "method",
19645
- "name": "traverseToClosest",
19646
- "privacy": "public",
19647
- "return": {
19648
- "type": {
19649
- "text": ""
19650
- }
19651
- },
19652
- "parameters": [
19653
- {
19654
- "name": "selector",
19655
- "type": {
19656
- "text": "string"
19657
- },
19658
- "description": "The selector of the element to look for"
19659
- }
19660
- ],
19661
- "description": "Traverse up the DOM tree to find the closest element that\nmatches the selector. This method is aware of shadow DOM\nboundaries and will traverse through them to find the element.",
19662
- "inheritedFrom": {
19663
- "name": "EspalierElementBase",
19664
- "module": "dist/shared/esp-element-base.js"
19665
- }
19666
- },
19667
- {
19668
- "kind": "field",
19669
- "name": "intentColorSources",
19670
- "type": {
19671
- "text": "Readonly<\n Record<EspalierIntentVariant, ColorSource | \"\">\n >"
19672
- },
19673
- "privacy": "private",
19674
- "static": true,
19675
- "readonly": true,
19676
- "default": "{ danger: \"danger\", info: \"info\", neutral: \"\", success: \"success\", warning: \"warning\", }",
19677
- "description": "Intent color sources: the meaning-bearing families an intent pins\nthe filled-action pair to. `neutral` pins nothing; each other\nintent maps to its own fixed status family (ESP0172 gave `info` a\nreal blue family, replacing the complementary borrow the retired\nvariant system used), and a theme's `intents` field retunes the\nfamily colors themselves.",
19678
- "inheritedFrom": {
19679
- "name": "EspalierElementBase",
19680
- "module": "dist/shared/esp-element-base.js"
19681
- }
19682
- },
19683
- {
19684
- "kind": "field",
19685
- "name": "semanticActionTokens",
19686
- "type": {
19687
- "text": "ReadonlySet<SemanticColorName>"
19688
- },
19689
- "privacy": "private",
19690
- "static": true,
19691
- "readonly": true,
19692
- "default": "new Set<SemanticColorName>([\"actionBackground\", \"actionText\"])",
19693
- "description": "Semantic tokens that paint a control's filled action surface — the\npair an intent recolors. Everything else inherits the zone cascade,\nwhich is the ESP0166 fix: under the SHY fitted theme the retired\nvariant re-seeding painted a danger callout's *background* mint\ngreen; an intent leaves the zone's surfaces alone and pins only the\naction pair (plus `--esp-color-primary` for state derivations) to\nthe intent's own status family — fixed hues by default, retunable\nper theme via `intents`. Task 098's\nguarantee survives structurally: the\npin is by source, so no theme mapping can rotate a destructive /\nwarning / positive action off its semantic hue.",
19694
- "inheritedFrom": {
19695
- "name": "EspalierElementBase",
19696
- "module": "dist/shared/esp-element-base.js"
19697
- }
19698
- },
19699
- {
19700
- "kind": "method",
19701
- "name": "applyScopedColorTokens",
19702
- "privacy": "protected",
19703
- "return": {
19704
- "type": {
19705
- "text": "void"
19706
- }
19707
- },
19708
- "description": "Compute and apply context- and intent-specific semantic color tokens.\n\nWith no context and a `neutral` intent, all semantic tokens cascade\nfrom `<esp-root>` and previous overrides are cleared. A context\nemits the zone's complete twenty-three-token table; a non-neutral intent\nthen overlays the filled-action pair, derived over the governing\nzone's theme — this host's own context, or the nearest ancestor\nzone's — so its APCA enforcement runs against the zone's actual\naction surface.",
19709
- "inheritedFrom": {
19710
- "name": "EspalierElementBase",
19711
- "module": "dist/shared/esp-element-base.js"
19712
- }
19713
- },
19714
- {
19715
- "kind": "method",
19716
- "name": "resolveContextTheme",
19717
- "privacy": "private",
19718
- "return": {
19719
- "type": {
19720
- "text": "{ applied: false; theme: EspalierTheme } | { applied: true; name: string; theme: EspalierTheme }"
19721
- }
19722
- },
19723
- "parameters": [
19724
- {
19725
- "name": "theme",
19726
- "type": {
19727
- "text": "EspalierTheme"
19728
- }
19729
- }
19730
- ],
19731
- "description": "Resolve this host's own context name over the active root theme.",
19732
- "inheritedFrom": {
19733
- "name": "EspalierElementBase",
19734
- "module": "dist/shared/esp-element-base.js"
19735
- }
19736
- },
19737
- {
19738
- "kind": "method",
19739
- "name": "warnUnknownContextWhenSettled",
19740
- "privacy": "private",
19741
- "return": {
19742
- "type": {
19743
- "text": "void"
19744
- }
19745
- },
19746
- "parameters": [
19747
- {
19748
- "name": "name",
19749
- "type": {
19750
- "text": "string"
19751
- }
19752
- }
19753
- ],
19754
- "description": "Warn about an unknown context only once the root's theme has\nsettled (ESP0177).\n\nA script-mounted theme lands after its descendants first render, so\na zone naming a context the theme *does* define would otherwise\nwarn about a state that was never rendered to anyone. Waiting for\nthe root to settle — an author theme resolved, or the pre-theme\nwindow closed with none — makes the warning describe the settled\ntheme instead of a transient one. It is deferred, never dropped: a\ngenuinely missing context still warns, just after the window.",
19755
- "inheritedFrom": {
19756
- "name": "EspalierElementBase",
19757
- "module": "dist/shared/esp-element-base.js"
19758
- }
19759
- },
19760
- {
19761
- "kind": "method",
19762
- "name": "resolveNamedContextTheme",
19763
- "privacy": "private",
19764
- "return": {
19765
- "type": {
19766
- "text": "EspalierTheme | null"
19767
- }
19768
- },
19769
- "parameters": [
19770
- {
19771
- "name": "theme",
19772
- "type": {
19773
- "text": "EspalierTheme"
19774
- }
19775
- },
19776
- {
19777
- "name": "name",
19778
- "type": {
19779
- "text": "string"
19780
- }
19781
- }
19782
- ],
19783
- "description": "Compile a named context's theme, or null when the theme doesn't\ndefine it. Delegates to the exported compiler so a DOM-less consumer\n(the fit-report suite, a check script) inspects exactly the theme a\nzone host renders — the drift this shared path exists to prevent\n(ESP0175).",
19784
- "inheritedFrom": {
19785
- "name": "EspalierElementBase",
19786
- "module": "dist/shared/esp-element-base.js"
19787
- }
19788
- }
19789
- ],
19790
- "events": [
19791
- {
19792
- "type": {
19793
- "text": "CustomEvent<{}>"
19794
- },
19795
- "description": "Fired by `show()` when the flyout opens.",
19796
- "name": "esp-flyout-opened"
19797
- },
19798
- {
19799
- "type": {
19800
- "text": "CustomEvent<{reason: FlyoutCloseReason}>"
19801
- },
19802
- "description": "Fired by `close()` when the flyout closes. `reason` is `\"escape\"`, `\"vellum\"`, `\"button\"`, or `\"programmatic\"`.",
19803
- "name": "esp-flyout-closed"
19804
- },
19805
- {
19806
- "type": {
19807
- "text": "CustomEvent<{}>"
19808
- },
19809
- "description": "Fired on every `open`, `mode`, or `anchor` change, including direct property assignment (not just `show()`/`close()`). `esp-page` uses it to keep its layout in sync; most consumers want `esp-flyout-opened`/`esp-flyout-closed` instead.",
19810
- "name": "esp-flyout-state-changed"
19811
- }
19812
- ],
19813
- "attributes": [
19814
- {
19815
- "name": "open",
19816
- "type": {
19817
- "text": "boolean"
19818
- },
19819
- "default": "false",
19820
- "description": "Whether the flyout is open. Reflected so the initial state can\nbe declared in markup; `esp-page` mirrors it (via the lifecycle\nevents and the slot) onto its own `flyout-open` attribute to\ndrive the grid.",
19821
- "fieldName": "open"
19822
- },
19823
- {
19824
- "name": "heading",
19825
- "type": {
19826
- "text": "string"
19827
- },
19828
- "default": "\"\"",
19829
- "description": "Heading text for the panel's header row. Also becomes the\nflyout's accessible name unless the author set an `aria-label`.\nAn open overlay without either uses the fallback name \"Flyout\" so\nits dialog is never exposed without an accessible name.",
19830
- "fieldName": "heading"
19831
- },
19832
- {
19833
- "name": "mode",
19834
- "type": {
19835
- "text": "\"auto\" | \"overlay\""
19917
+ "text": "void"
19918
+ }
19836
19919
  },
19837
- "default": "\"auto\"",
19838
- "description": "Placement behavior.\n\n- `\"auto\"` (default) — the page's placement ladder: gutter,\n docked sidebar, then overlay drawer when the complete in-grid\n minimums do not fit or below `COMPACT_VIEWPORT_MEDIA_QUERY`.\n- `\"overlay\"` — always the fixed overlay drawer, at any width.\n The page never reserves a grid track for an overlay-mode\n flyout.",
19839
- "fieldName": "mode"
19920
+ "parameters": [
19921
+ {
19922
+ "name": "ev",
19923
+ "type": {
19924
+ "text": "KeyboardEvent"
19925
+ }
19926
+ }
19927
+ ]
19840
19928
  },
19841
19929
  {
19842
- "name": "full-height",
19843
- "type": {
19844
- "text": "boolean"
19845
- },
19846
- "default": "false",
19847
- "description": "Fill the visible block-size in gutter and docked modes. The content\nregion scrolls independently. Overlay drawers already fill the viewport.",
19848
- "fieldName": "fullHeight"
19930
+ "kind": "method",
19931
+ "name": "focusIsInside",
19932
+ "privacy": "private",
19933
+ "return": {
19934
+ "type": {
19935
+ "text": "boolean"
19936
+ }
19937
+ }
19849
19938
  },
19850
19939
  {
19851
- "name": "match-surface",
19852
- "type": {
19853
- "text": "boolean"
19940
+ "kind": "method",
19941
+ "name": "syncAnchorGeometry",
19942
+ "privacy": "private",
19943
+ "return": {
19944
+ "type": {
19945
+ "text": "void"
19946
+ }
19854
19947
  },
19855
- "default": "false",
19856
- "description": "When set on a flyout slotted into an `esp-page`, the panel lifts\nits **trailing** edge with the page's surface edge shadow, so it\nreads as a raised peer of the content surface it flies out from\nrather than the shadowless tear-off. The **leading** edge keeps\nits dotted perforation and casts no shadow, so the panel stays\nattached at the tear line instead of floating over the content.\nThe trailing-corner radius is still `--esp-flyout-radius`. No\neffect on a standalone flyout — there is no page surface to match.",
19857
- "fieldName": "matchSurface"
19948
+ "description": "Position an anchored in-grid flyout at the trigger. Content-height\npanels shift upward only when they would overflow; explicitly\nfull-height panels use the complete scrollport. The leading-edge\nmarker remains aligned with the trigger for contextual help and is\nomitted from the full-height reading surface."
19858
19949
  },
19859
19950
  {
19860
- "name": "standalone",
19861
- "type": {
19862
- "text": "boolean"
19951
+ "kind": "method",
19952
+ "name": "getVisibleBlockBounds",
19953
+ "privacy": "private",
19954
+ "return": {
19955
+ "type": {
19956
+ "text": "{ top: number; bottom: number }"
19957
+ }
19863
19958
  },
19864
- "default": "false",
19865
- "description": "Whether this flyout ignores the shared `showFlyout()` /\n`closeFlyout()` bus and is driven only through its own\n`show()` / `close()` / `toggle()` API.\n\nBy default a flyout services the bus, so a single flyout in a\npage \"just works\" as the target of `showFlyout()` — the same\nzero-config model as `<esp-toaster>` and `showToast()`. Anchored\nrequests resolve to one page scope according to `scope`; set\n`standalone` on flyouts that should never answer the bus.",
19866
- "fieldName": "standalone"
19959
+ "description": "Intersect the visual viewport with every scrolling ancestor. This\nkeeps the flyout usable both on the document and inside a bounded\nlive-example pane such as WTFM's demo container."
19867
19960
  },
19868
19961
  {
19869
- "name": "scope",
19870
- "type": {
19871
- "text": "\"outermost\" | \"nearest\""
19962
+ "kind": "method",
19963
+ "name": "composedParent",
19964
+ "privacy": "private",
19965
+ "return": {
19966
+ "type": {
19967
+ "text": "Element | null"
19968
+ }
19872
19969
  },
19873
- "default": "\"outermost\"",
19874
- "description": "Which containing page owns anchored bus requests.\n\n- `\"outermost\"` (default) routes to the flyout in the outermost\n `esp-page` containing the request trigger.\n- `\"nearest\"` explicitly gives this flyout precedence for requests\n originating in its own page or nested descendants.\n\nA `scope=\"nearest\"` flyout must be a light-DOM descendant of the\n`esp-page` whose requests it owns so that page can discover it.\n\nRequests without an `anchor` or `returnFocusTo` have no local context,\nso only outermost page flyouts service them. Use the instance API for\na directly controlled nested flyout.",
19875
- "fieldName": "scope"
19970
+ "parameters": [
19971
+ {
19972
+ "name": "element",
19973
+ "type": {
19974
+ "text": "Element"
19975
+ }
19976
+ }
19977
+ ]
19876
19978
  },
19877
19979
  {
19878
- "type": {
19879
- "text": "\"1\"|\"2\"|\"3\"|\"4\""
19980
+ "kind": "method",
19981
+ "name": "setGeometryProperty",
19982
+ "privacy": "private",
19983
+ "return": {
19984
+ "type": {
19985
+ "text": "void"
19986
+ }
19880
19987
  },
19881
- "description": "Declares the painted surface depth. Fields use the next local layer, capped at layer 4.",
19882
- "name": "surface-layer",
19883
- "inheritedFrom": {
19884
- "name": "EspalierElementBase",
19885
- "module": "dist/shared/esp-element-base.js"
19886
- }
19988
+ "parameters": [
19989
+ {
19990
+ "name": "name",
19991
+ "type": {
19992
+ "text": "string"
19993
+ }
19994
+ },
19995
+ {
19996
+ "name": "value",
19997
+ "type": {
19998
+ "text": "string"
19999
+ }
20000
+ }
20001
+ ]
19887
20002
  },
19888
20003
  {
19889
- "name": "scheme",
19890
- "type": {
19891
- "text": "\"dark\" | \"light\""
19892
- },
19893
- "default": "\"light\"",
19894
- "description": "The scheme to use for the component. This property is used internally\nto control the light/dark scheme so it matches the scheme of\n[esp-root](/components/root). It should not be set manually, it\nexists as an attribute for styling purposes.",
19895
- "fieldName": "scheme",
19896
- "inheritedFrom": {
19897
- "name": "EspalierElementBase",
19898
- "module": "dist/shared/esp-element-base.js"
20004
+ "kind": "method",
20005
+ "name": "clearAnchorGeometry",
20006
+ "privacy": "private",
20007
+ "return": {
20008
+ "type": {
20009
+ "text": "void"
20010
+ }
19899
20011
  }
19900
20012
  },
19901
20013
  {
19902
- "name": "intent",
19903
- "type": {
19904
- "text": "EspalierIntentVariant"
19905
- },
19906
- "description": "The element's [intent](/espalier-guides/) — its meaning: `neutral`\n(no pin), or `success`, `warning`, `danger`, `info` — each pinned\nto its fixed status family (blue for `info`), retunable per theme\nvia `intents`. On token-emitting controls a non-neutral intent pins the\nfilled-action pair to that family, derived over the governing\nzone's theme; class-styled chrome (badges, callouts, status pills)\nopts out of inline emission and renders its treatment from CSS\nclasses instead. An intent never repaints the surrounding zone,\nwhich is what contexts are for. Removing the attribute restores\nthe element's own default intent.",
19907
- "fieldName": "intent",
19908
- "inheritedFrom": {
19909
- "name": "EspalierElementBase",
19910
- "module": "dist/shared/esp-element-base.js"
20014
+ "kind": "method",
20015
+ "name": "clearAnchorPlacementGeometry",
20016
+ "privacy": "private",
20017
+ "return": {
20018
+ "type": {
20019
+ "text": "void"
20020
+ }
19911
20021
  }
19912
20022
  },
19913
20023
  {
19914
- "name": "context",
19915
- "type": {
19916
- "text": "string"
19917
- },
19918
- "description": "A theme-defined color zone. The selected context rebinds designer-facing\nroles and emits a complete, contrast-enforced semantic token table on this\nhost for descendants to inherit.",
19919
- "fieldName": "context",
19920
- "inheritedFrom": {
19921
- "name": "EspalierElementBase",
19922
- "module": "dist/shared/esp-element-base.js"
20024
+ "kind": "method",
20025
+ "name": "scheduleAnchorGeometrySync",
20026
+ "privacy": "private",
20027
+ "return": {
20028
+ "type": {
20029
+ "text": "void"
20030
+ }
19923
20031
  }
19924
- }
19925
- ],
19926
- "superclass": {
19927
- "name": "EspalierElementBase",
19928
- "module": "dist/shared/esp-element-base.js"
19929
- },
19930
- "docPageTitle": {
19931
- "name": "Flyout",
19932
- "description": ""
19933
- },
19934
- "docUrl": {
19935
- "name": "/components/flyout",
19936
- "description": ""
19937
- },
19938
- "menuGroup": {
19939
- "name": "Structure",
19940
- "description": ""
19941
- },
19942
- "menuOrder": {
19943
- "name": "3",
19944
- "description": ""
19945
- },
19946
- "menuLabel": {
19947
- "name": "Flyout",
19948
- "description": ""
19949
- },
19950
- "menuIcon": {
19951
- "name": "layout",
19952
- "description": ""
19953
- },
19954
- "tagName": "esp-flyout",
19955
- "customElement": true
19956
- }
19957
- ],
19958
- "exports": [
19959
- {
19960
- "kind": "js",
19961
- "name": "EspalierFlyout",
19962
- "declaration": {
19963
- "name": "EspalierFlyout",
19964
- "module": "dist/flyout/esp-flyout.js"
19965
- }
19966
- },
19967
- {
19968
- "kind": "custom-element-definition",
19969
- "name": "esp-flyout",
19970
- "declaration": {
19971
- "name": "EspalierFlyout",
19972
- "module": "dist/flyout/esp-flyout.js"
19973
- }
19974
- }
19975
- ]
19976
- },
19977
- {
19978
- "kind": "javascript-module",
19979
- "path": "dist/file-upload/esp-file-upload.js",
19980
- "declarations": [
19981
- {
19982
- "kind": "class",
19983
- "description": "Used to upload files.\n\n```html\n<esp-file-upload choose-text=\"Upload Document\"></esp-file-upload>\n<script>\n const theFileUpload = findByTagName(\"esp-file-upload\")[0];\n theFileUpload.addEventListener(\"esp-file-upload-files-selected\", () => {\n showToast({\n message: `You selected a file!`,\n icon: \"info-i\",\n duration: 2,\n onClosed: () => {\n theFileUpload.finishedProcessingFiles();\n },\n });\n });\n</script>\n```",
19984
- "name": "EspalierFileUpload",
19985
- "members": [
19986
- {
19987
- "kind": "field",
19988
- "name": "uploadInput",
19989
- "privacy": "private"
19990
20032
  },
19991
20033
  {
19992
- "kind": "field",
19993
- "name": "processingFiles",
19994
- "type": {
19995
- "text": "boolean"
19996
- },
20034
+ "kind": "method",
20035
+ "name": "syncAnchorTracking",
19997
20036
  "privacy": "private",
19998
- "default": "false"
19999
- },
20000
- {
20001
- "kind": "field",
20002
- "name": "accept",
20003
- "type": {
20004
- "text": "string"
20005
- },
20006
- "privacy": "public",
20007
- "default": "\"*\"",
20008
- "description": "The accepted file types. For example, to allow JPEG, PNG, and WebP images:\n\n`image/jpeg, image/png, image/webp`",
20009
- "attribute": "accept"
20037
+ "return": {
20038
+ "type": {
20039
+ "text": "void"
20040
+ }
20041
+ }
20010
20042
  },
20011
20043
  {
20012
- "kind": "field",
20013
- "name": "chooseText",
20014
- "type": {
20015
- "text": "string"
20016
- },
20017
- "privacy": "public",
20018
- "default": "\"Choose File\"",
20019
- "description": "The text to display on the button.",
20020
- "attribute": "choose-text"
20044
+ "kind": "method",
20045
+ "name": "stopAnchorTracking",
20046
+ "privacy": "private",
20047
+ "return": {
20048
+ "type": {
20049
+ "text": "void"
20050
+ }
20051
+ }
20021
20052
  },
20022
20053
  {
20023
- "kind": "field",
20024
- "name": "multiple",
20025
- "type": {
20026
- "text": "boolean"
20054
+ "kind": "method",
20055
+ "name": "syncOverlayModal",
20056
+ "privacy": "private",
20057
+ "return": {
20058
+ "type": {
20059
+ "text": "void"
20060
+ }
20027
20061
  },
20028
- "privacy": "public",
20029
- "default": "false",
20030
- "description": "Allow multiple files to be selected.",
20031
- "attribute": "multiple"
20032
- },
20033
- {
20034
- "kind": "field",
20035
- "name": "filesSelected",
20036
- "privacy": "private"
20062
+ "description": "Apply modal a11y exactly when the flyout is open **and** presenting\nas an overlay drawer, and remove it otherwise. Called on open/mode\nchanges and when the viewport crosses the overlay threshold.\n\nModal treatment = background inert, scroll lock, `role=\"dialog\"` +\n`aria-modal`, focus moved into the drawer and trapped, and focus\nrestored on teardown — all via the (non-promoting) Overlay\ncontroller, so the flyout never leaves its page slot. The in-grid\nmodes stay a non-modal `complementary` landmark with no focus\nmanagement."
20037
20063
  },
20038
20064
  {
20039
20065
  "kind": "method",
20040
- "name": "finishedProcessingFiles",
20041
- "privacy": "public",
20042
- "description": "The `esp-file-upload-files-selected` event sets the file upload to a processing state.\nCall this method when you have finished processing the selected files\nto reset the file upload."
20066
+ "name": "updateGeneratedAriaLabel",
20067
+ "privacy": "private",
20068
+ "return": {
20069
+ "type": {
20070
+ "text": "void"
20071
+ }
20072
+ },
20073
+ "description": "Mirror `heading` into `aria-label`, or apply a stable fallback\nwhile this is an overlay dialog, without clobbering a label the\nauthor controls (see lastGeneratedAriaLabel)."
20043
20074
  },
20044
20075
  {
20045
20076
  "kind": "field",
@@ -20555,39 +20586,89 @@
20555
20586
  "events": [
20556
20587
  {
20557
20588
  "type": {
20558
- "text": "CustomEvent<FileList>"
20589
+ "text": "CustomEvent<{}>"
20559
20590
  },
20560
- "description": "Fired after the user selects one or more files.",
20561
- "name": "esp-file-upload-files-selected"
20591
+ "description": "Fired by `show()` when the flyout opens.",
20592
+ "name": "esp-flyout-opened"
20593
+ },
20594
+ {
20595
+ "type": {
20596
+ "text": "CustomEvent<{reason: FlyoutCloseReason}>"
20597
+ },
20598
+ "description": "Fired by `close()` when the flyout closes. `reason` is `\"escape\"`, `\"vellum\"`, `\"button\"`, or `\"programmatic\"`.",
20599
+ "name": "esp-flyout-closed"
20600
+ },
20601
+ {
20602
+ "type": {
20603
+ "text": "CustomEvent<{}>"
20604
+ },
20605
+ "description": "Fired on every `open`, `mode`, or `anchor` change, including direct property assignment (not just `show()`/`close()`). `esp-page` uses it to keep its layout in sync; most consumers want `esp-flyout-opened`/`esp-flyout-closed` instead.",
20606
+ "name": "esp-flyout-state-changed"
20562
20607
  }
20563
20608
  ],
20564
20609
  "attributes": [
20565
20610
  {
20566
- "name": "accept",
20611
+ "name": "open",
20567
20612
  "type": {
20568
- "text": "string"
20613
+ "text": "boolean"
20569
20614
  },
20570
- "default": "\"*\"",
20571
- "description": "The accepted file types. For example, to allow JPEG, PNG, and WebP images:\n\n`image/jpeg, image/png, image/webp`",
20572
- "fieldName": "accept"
20615
+ "default": "false",
20616
+ "description": "Whether the flyout is open. Reflected so the initial state can\nbe declared in markup; `esp-page` mirrors it (via the lifecycle\nevents and the slot) onto its own `flyout-open` attribute to\ndrive the grid.",
20617
+ "fieldName": "open"
20573
20618
  },
20574
20619
  {
20575
- "name": "choose-text",
20620
+ "name": "heading",
20576
20621
  "type": {
20577
20622
  "text": "string"
20578
20623
  },
20579
- "default": "\"Choose File\"",
20580
- "description": "The text to display on the button.",
20581
- "fieldName": "chooseText"
20624
+ "default": "\"\"",
20625
+ "description": "Heading text for the panel's header row. Also becomes the\nflyout's accessible name unless the author set an `aria-label`.\nAn open overlay without either uses the fallback name \"Flyout\" so\nits dialog is never exposed without an accessible name.",
20626
+ "fieldName": "heading"
20582
20627
  },
20583
20628
  {
20584
- "name": "multiple",
20629
+ "name": "mode",
20630
+ "type": {
20631
+ "text": "\"auto\" | \"overlay\""
20632
+ },
20633
+ "default": "\"auto\"",
20634
+ "description": "Placement behavior.\n\n- `\"auto\"` (default) — the page's placement ladder: gutter,\n docked sidebar, then overlay drawer when the complete in-grid\n minimums do not fit or below `COMPACT_VIEWPORT_MEDIA_QUERY`.\n- `\"overlay\"` — always the fixed overlay drawer, at any width.\n The page never reserves a grid track for an overlay-mode\n flyout.",
20635
+ "fieldName": "mode"
20636
+ },
20637
+ {
20638
+ "name": "full-height",
20585
20639
  "type": {
20586
20640
  "text": "boolean"
20587
20641
  },
20588
20642
  "default": "false",
20589
- "description": "Allow multiple files to be selected.",
20590
- "fieldName": "multiple"
20643
+ "description": "Fill the visible block-size in gutter and docked modes. The content\nregion scrolls independently. Overlay drawers already fill the viewport.",
20644
+ "fieldName": "fullHeight"
20645
+ },
20646
+ {
20647
+ "name": "match-surface",
20648
+ "type": {
20649
+ "text": "boolean"
20650
+ },
20651
+ "default": "false",
20652
+ "description": "When set on a flyout slotted into an `esp-page`, the panel lifts\nits **trailing** edge with the page's surface edge shadow, so it\nreads as a raised peer of the content surface it flies out from\nrather than the shadowless tear-off. The **leading** edge keeps\nits dotted perforation and casts no shadow, so the panel stays\nattached at the tear line instead of floating over the content.\nThe trailing-corner radius is still `--esp-flyout-radius`. No\neffect on a standalone flyout — there is no page surface to match.",
20653
+ "fieldName": "matchSurface"
20654
+ },
20655
+ {
20656
+ "name": "standalone",
20657
+ "type": {
20658
+ "text": "boolean"
20659
+ },
20660
+ "default": "false",
20661
+ "description": "Whether this flyout ignores the shared `showFlyout()` /\n`closeFlyout()` bus and is driven only through its own\n`show()` / `close()` / `toggle()` API.\n\nBy default a flyout services the bus, so a single flyout in a\npage \"just works\" as the target of `showFlyout()` — the same\nzero-config model as `<esp-toaster>` and `showToast()`. Anchored\nrequests resolve to one page scope according to `scope`; set\n`standalone` on flyouts that should never answer the bus.",
20662
+ "fieldName": "standalone"
20663
+ },
20664
+ {
20665
+ "name": "scope",
20666
+ "type": {
20667
+ "text": "\"outermost\" | \"nearest\""
20668
+ },
20669
+ "default": "\"outermost\"",
20670
+ "description": "Which containing page owns anchored bus requests.\n\n- `\"outermost\"` (default) routes to the flyout in the outermost\n `esp-page` containing the request trigger.\n- `\"nearest\"` explicitly gives this flyout precedence for requests\n originating in its own page or nested descendants.\n\nA `scope=\"nearest\"` flyout must be a light-DOM descendant of the\n`esp-page` whose requests it owns so that page can discover it.\n\nRequests without an `anchor` or `returnFocusTo` have no local context,\nso only outermost page flyouts service them. Use the instance API for\na directly controlled nested flyout.",
20671
+ "fieldName": "scope"
20591
20672
  },
20592
20673
  {
20593
20674
  "type": {
@@ -20642,103 +20723,49 @@
20642
20723
  "name": "EspalierElementBase",
20643
20724
  "module": "dist/shared/esp-element-base.js"
20644
20725
  },
20645
- "tagName": "esp-file-upload",
20646
- "customElement": true,
20647
20726
  "docPageTitle": {
20648
- "name": "File",
20649
- "description": "Upload"
20727
+ "name": "Flyout",
20728
+ "description": ""
20650
20729
  },
20651
20730
  "docUrl": {
20652
- "name": "/components/file-upload",
20731
+ "name": "/components/flyout",
20653
20732
  "description": ""
20654
20733
  },
20655
20734
  "menuGroup": {
20656
- "name": "Form",
20657
- "description": "Controls"
20735
+ "name": "Structure",
20736
+ "description": ""
20737
+ },
20738
+ "menuOrder": {
20739
+ "name": "3",
20740
+ "description": ""
20658
20741
  },
20659
20742
  "menuLabel": {
20660
- "name": "File",
20661
- "description": "Upload"
20743
+ "name": "Flyout",
20744
+ "description": ""
20662
20745
  },
20663
20746
  "menuIcon": {
20664
- "name": "upload",
20747
+ "name": "layout",
20665
20748
  "description": ""
20666
20749
  },
20667
- "cssProperties": [
20668
- {
20669
- "description": "Background color of the shared field shell. Defaults to one layer above the nearest declared surface, capped at `var(--esp-color-layer-4)`, or `var(--esp-color-layer-2)` without a declared surface. An explicit override wins.",
20670
- "name": "--esp-field-background",
20671
- "inheritedFrom": {
20672
- "name": "EspalierElementBase",
20673
- "module": "dist/shared/esp-element-base.js"
20674
- }
20675
- },
20676
- {
20677
- "description": "Border color of the shared field shell. Defaults to `var(--esp-color-border)`.",
20678
- "name": "--esp-field-border-color",
20679
- "inheritedFrom": {
20680
- "name": "EspalierElementBase",
20681
- "module": "dist/shared/esp-element-base.js"
20682
- }
20683
- },
20684
- {
20685
- "description": "Border width of the shared field shell. Defaults to `1px`.",
20686
- "name": "--esp-field-border-width",
20687
- "inheritedFrom": {
20688
- "name": "EspalierElementBase",
20689
- "module": "dist/shared/esp-element-base.js"
20690
- }
20691
- },
20692
- {
20693
- "description": "Text color used inside the shared field shell. Defaults to `var(--esp-color-text)`.",
20694
- "name": "--esp-field-text-color",
20695
- "inheritedFrom": {
20696
- "name": "EspalierElementBase",
20697
- "module": "dist/shared/esp-element-base.js"
20698
- }
20699
- },
20700
- {
20701
- "description": "Hover background color of the shared field shell. Derived from `--esp-field-background`.",
20702
- "name": "--esp-field-hover-bg",
20703
- "inheritedFrom": {
20704
- "name": "EspalierElementBase",
20705
- "module": "dist/shared/esp-element-base.js"
20706
- }
20707
- },
20708
- {
20709
- "description": "Focus background color of the shared field shell. Derived from `--esp-field-background`.",
20710
- "name": "--esp-field-focus-bg",
20711
- "inheritedFrom": {
20712
- "name": "EspalierElementBase",
20713
- "module": "dist/shared/esp-element-base.js"
20714
- }
20715
- },
20716
- {
20717
- "description": "Shadow color used for shared field focus treatment. Defaults to `var(--esp-color-shadow)`.",
20718
- "name": "--esp-field-focus-shadow",
20719
- "inheritedFrom": {
20720
- "name": "EspalierElementBase",
20721
- "module": "dist/shared/esp-element-base.js"
20722
- }
20723
- }
20724
- ]
20750
+ "tagName": "esp-flyout",
20751
+ "customElement": true
20725
20752
  }
20726
20753
  ],
20727
20754
  "exports": [
20728
20755
  {
20729
20756
  "kind": "js",
20730
- "name": "EspalierFileUpload",
20757
+ "name": "EspalierFlyout",
20731
20758
  "declaration": {
20732
- "name": "EspalierFileUpload",
20733
- "module": "dist/file-upload/esp-file-upload.js"
20759
+ "name": "EspalierFlyout",
20760
+ "module": "dist/flyout/esp-flyout.js"
20734
20761
  }
20735
20762
  },
20736
20763
  {
20737
20764
  "kind": "custom-element-definition",
20738
- "name": "esp-file-upload",
20765
+ "name": "esp-flyout",
20739
20766
  "declaration": {
20740
- "name": "EspalierFileUpload",
20741
- "module": "dist/file-upload/esp-file-upload.js"
20767
+ "name": "EspalierFlyout",
20768
+ "module": "dist/flyout/esp-flyout.js"
20742
20769
  }
20743
20770
  }
20744
20771
  ]
@@ -24818,6 +24845,14 @@
24818
24845
  "description": "Hovered link background. Defaults to `var(--esp-color-link-hover-bg)`.",
24819
24846
  "name": "--esp-footer-link-hover-bg"
24820
24847
  },
24848
+ {
24849
+ "description": "Hovered configured-brand background. Defaults to `--esp-footer-link-hover-bg`, so other footer links are unaffected.",
24850
+ "name": "--esp-footer-brand-hover-background"
24851
+ },
24852
+ {
24853
+ "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.",
24854
+ "name": "--esp-footer-brand-hover-transform"
24855
+ },
24821
24856
  {
24822
24857
  "description": "Focus-visible outline for footer links. Defaults to a 2px solid outline in the footer link color.",
24823
24858
  "name": "--esp-footer-focus-outline"
@@ -26737,7 +26772,7 @@
26737
26772
  "type": {
26738
26773
  "text": "PaintRegistration"
26739
26774
  },
26740
- "default": "{ derivations: { [FOOTER_HEADING_INK]: ({ readProperty, readColor }) => parsePaintColor( readProperty(\"--esp-footer-heading-color\") ?? (readProperty(FOOTER_INK_MODE) === \"semantic\" ? undefined : readProperty(FOOTER_INK_PROPERTIES.headings)) ?? readColor(\"headings\") ?? \"\", ), [FOOTER_LINK_INK]: ({ readProperty, readColor }) => parsePaintColor( readProperty(\"--esp-footer-link-color\") ?? (readProperty(FOOTER_INK_MODE) === \"semantic\" ? undefined : readProperty(FOOTER_INK_PROPERTIES.link)) ?? readColor(\"link\") ?? \"\", ), }, entriesByRole: { footer: [ { element: \"footer-heading\", foreground: FOOTER_HEADING_INK, background: \"layer2\", state: \"rest\", kind: \"text\", flags: [\"footerHeadings\"], }, { element: \"footer-body\", foreground: \"text\", background: \"layer2\", state: \"rest\", kind: \"text\", flags: [\"footerBody\"], }, ...PAINT_INTERACTIONS.flatMap((state): PaintEntry[] => { const hover = isPaintHover(state); const focus = isPaintFocus(state); const linkText = { foreground: hover ? \"linkHover\" : FOOTER_LINK_INK, background: hover ? footerLinkHoverBackground : \"layer2\", state, kind: \"text\" as const, }; const pairs: PaintEntry[] = [ { ...linkText, element: \"footer-link\", flags: [\"footerLinks\"] }, { ...linkText, element: \"brand-text\", foreground: hover ? \"linkHover\" : \"brand-color\", flags: state === \"rest\" ? [\"brandText\"] : [\"brandText\", \"brandLink\"], }, ]; if (focus) { for (const [element, flag] of [[\"footer-link\", \"footerLinks\"], [\"brand-link\", \"brandLink\"]]) { pairs.push({ element, foreground: FOOTER_LINK_INK, background: \"layer2\", state, kind: \"ring\", flags: [flag], }); } } return pairs; }), ], }, targets: { footer: [footerBrand, footerContent] }, }"
26775
+ "default": "{ derivations: { [linkHoverBackground]: ({ readProperty, readColor }) => parsePaintColor( readProperty(\"--esp-footer-link-hover-bg\") ?? readColor(TOKEN_PAIRINGS.linkHover.bg) ?? \"\", ), [brandHoverBackground]: ({ readProperty, readColor }) => parsePaintColor( readProperty(\"--esp-footer-brand-hover-background\") ?? readProperty(\"--esp-footer-link-hover-bg\") ?? readColor(TOKEN_PAIRINGS.linkHover.bg) ?? \"\", ), [FOOTER_HEADING_INK]: ({ readProperty, readColor }) => parsePaintColor( readProperty(\"--esp-footer-heading-color\") ?? (readProperty(FOOTER_INK_MODE) === \"semantic\" ? undefined : readProperty(FOOTER_INK_PROPERTIES.headings)) ?? readColor(\"headings\") ?? \"\", ), [FOOTER_LINK_INK]: ({ readProperty, readColor }) => parsePaintColor( readProperty(\"--esp-footer-link-color\") ?? (readProperty(FOOTER_INK_MODE) === \"semantic\" ? undefined : readProperty(FOOTER_INK_PROPERTIES.link)) ?? readColor(\"link\") ?? \"\", ), }, entriesByRole: { footer: [ { element: \"footer-heading\", foreground: FOOTER_HEADING_INK, background: \"layer2\", state: \"rest\", kind: \"text\", flags: [\"footerHeadings\"], }, { element: \"footer-body\", foreground: \"text\", background: \"layer2\", state: \"rest\", kind: \"text\", flags: [\"footerBody\"], }, ...PAINT_INTERACTIONS.flatMap((state): PaintEntry[] => { const hover = isPaintHover(state); const focus = isPaintFocus(state); const linkText = { foreground: hover ? \"linkHover\" : FOOTER_LINK_INK, background: hover ? linkHoverBackground : \"layer2\", state, kind: \"text\" as const, }; const pairs: PaintEntry[] = [ { ...linkText, element: \"footer-link\", flags: [\"footerLinks\"] }, { ...linkText, element: \"brand-text\", foreground: hover ? \"linkHover\" : \"brand-color\", background: hover ? brandHoverBackground : \"layer2\", flags: state === \"rest\" ? [\"brandText\"] : [\"brandText\", \"brandLink\"], }, ]; if (focus) { for (const [element, flag] of [[\"footer-link\", \"footerLinks\"], [\"brand-link\", \"brandLink\"]]) { pairs.push({ element, foreground: FOOTER_LINK_INK, background: \"layer2\", state, kind: \"ring\", flags: [flag], }); } } return pairs; }), ], }, targets: { footer: [footerBrand, footerContent] }, }"
26741
26776
  }
26742
26777
  ],
26743
26778
  "exports": [
@@ -49800,7 +49835,7 @@
49800
49835
  "type": {
49801
49836
  "text": "PaintRegistration"
49802
49837
  },
49803
- "default": "{ entriesByRole: { header: [ ...navigationPlacements.flatMap((placement) => [...itemEntries(placement), ...groupEntries(placement)]), ...PAINT_INTERACTIONS.flatMap((interaction): PaintEntry[] => { const state = navigationPaintState(\"full-screen\", interaction); const flags = navigationPaintFlags(\"full-screen\"); const focus = isPaintFocus(interaction); const hover = isPaintHover(interaction); const brandText: PaintEntry = { // The drawer's brand rule retains its configured ink, and the // inherited anchor hover rule supplies the link wash. element: \"drawer-brand-text\", foreground: \"brand-color\", background: hover ? linkHoverGround : \"layer1\", state, kind: \"text\", flags: [...flags, \"brandText\", ...(hover || focus ? [\"brandLink\"] : [])], }; return focus ? [brandText, { element: \"drawer-brand-link\", foreground: \"link\", background: \"layer1\", state, kind: \"ring\", flags: [...flags, \"brandLink\"], }] : [brandText]; }), ], }, targets: { header: [plainNavigationItem, navigationGroup, drawerBrand] }, }"
49838
+ "default": "{ derivations: { [hoverIndicatorInk]: ({ readProperty, readColor }) => parsePaintColor( readProperty(\"--esp-menu-item-hover-indicator-color\") ?? readProperty(\"--esp-menu-item-hover-color\") ?? readColor(\"headingsHover\") ?? \"\", ), [activeIndicatorInk]: ({ readProperty, readColor }) => parsePaintColor( readProperty(\"--esp-menu-item-active-indicator-color\") ?? readProperty(\"--esp-menu-item-active-color\") ?? readColor(\"link\") ?? \"\", ), }, entriesByRole: { header: [ ...navigationPlacements.flatMap((placement) => [...itemEntries(placement), ...groupEntries(placement)]), ...PAINT_INTERACTIONS.flatMap((interaction): PaintEntry[] => { const state = navigationPaintState(\"full-screen\", interaction); const flags = navigationPaintFlags(\"full-screen\"); const focus = isPaintFocus(interaction); const hover = isPaintHover(interaction); const brandText: PaintEntry = { // The drawer's brand rule retains its configured ink, and the // inherited anchor hover rule supplies the link wash. element: \"drawer-brand-text\", foreground: \"brand-color\", background: hover ? linkHoverGround : \"layer1\", state, kind: \"text\", flags: [...flags, \"brandText\", ...(hover || focus ? [\"brandLink\"] : [])], }; return focus ? [brandText, { element: \"drawer-brand-link\", foreground: \"link\", background: \"layer1\", state, kind: \"ring\", flags: [...flags, \"brandLink\"], }] : [brandText]; }), ], }, targets: { header: [plainNavigationItem, navigationGroup, drawerBrand] }, }"
49804
49839
  }
49805
49840
  ],
49806
49841
  "exports": [
@@ -66265,6 +66300,58 @@
66265
66300
  "description": "Color of native light-DOM h4 headings. Defaults to `var(--esp-color-headings)`.",
66266
66301
  "name": "--esp-heading-4-color"
66267
66302
  },
66303
+ {
66304
+ "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.",
66305
+ "name": "--esp-heading-1-mark-color"
66306
+ },
66307
+ {
66308
+ "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.",
66309
+ "name": "--esp-heading-2-mark-color"
66310
+ },
66311
+ {
66312
+ "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.",
66313
+ "name": "--esp-heading-3-mark-color"
66314
+ },
66315
+ {
66316
+ "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.",
66317
+ "name": "--esp-heading-4-mark-color"
66318
+ },
66319
+ {
66320
+ "description": "Thickness of the heading mark, from `0` (no visible mark) through thin underlines to `0.6em` (a highlighter). Defaults to `0.35em`.",
66321
+ "name": "--esp-heading-mark-height"
66322
+ },
66323
+ {
66324
+ "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`.",
66325
+ "name": "--esp-ordered-list-marker-style"
66326
+ },
66327
+ {
66328
+ "description": "Color of list bullets and numbers. Defaults to the list item's text color.",
66329
+ "name": "--esp-list-marker-color"
66330
+ },
66331
+ {
66332
+ "description": "Border style of inline code and `pre` blocks: `dotted`, `dashed`, `solid` or `none`. Defaults to `dotted`.",
66333
+ "name": "--esp-code-border-style"
66334
+ },
66335
+ {
66336
+ "description": "Border color of inline code and `pre` blocks. Defaults to `var(--esp-color-border)`.",
66337
+ "name": "--esp-code-border-color"
66338
+ },
66339
+ {
66340
+ "description": "Background of inline code. Defaults to `var(--esp-color-layer-1)`.",
66341
+ "name": "--esp-code-background"
66342
+ },
66343
+ {
66344
+ "description": "Offsets and optional blur of the first elevation step, as `<inline> <block> [<blur>]` in `px`, `rem` or `em`. Defaults to `1px 1px 4px`.",
66345
+ "name": "--esp-shadow-1-geometry"
66346
+ },
66347
+ {
66348
+ "description": "Offsets and optional blur of the second elevation step. Defaults to `0 2px 8px`.",
66349
+ "name": "--esp-shadow-2-geometry"
66350
+ },
66351
+ {
66352
+ "description": "Offsets and optional blur of the third elevation step. Defaults to `0 6px 20px`.",
66353
+ "name": "--esp-shadow-3-geometry"
66354
+ },
66268
66355
  {
66269
66356
  "description": "Consumer-authored brand family. Emitted only when configured; brand recipes otherwise fall back through headings to `--esp-font-body`.",
66270
66357
  "name": "--esp-font-brand"
@@ -67159,7 +67246,7 @@
67159
67246
  "kind": "field",
67160
67247
  "name": "lightDomStyles",
67161
67248
  "static": true,
67162
- "default": "` ${surfaceLayerAttributes(\"esp-root [surface-layer]\").cssText} /* ── Base typography ──────────────────────────────────── */ esp-root { font-family: var(--_esp-font-body-effective, var(--esp-font-body, system-ui, sans-serif)); font-weight: var(--esp-font-weight-body); line-height: 1.5; font-size: var(--esp-type-normal); color: var(--esp-color-text); } /* ── Lists ────────────────────────────────────────────── */ esp-root ul[role=\"list\"], esp-root ol[role=\"list\"] { list-style: none; } esp-root ul li::marker, esp-root ol li::marker { font-weight: bold; } /* ── Form controls ────────────────────────────────────── */ esp-root input, esp-root select, esp-root button { font-family: var(--_esp-font-body-effective, var(--esp-font-body, system-ui, sans-serif)); } /* ── Links ────────────────────────────────────────────── */ esp-root a:not([class]) { text-decoration-skip-ink: auto; font-weight: bold; color: var(--esp-color-link); } esp-root a { text-decoration: underline; text-decoration-skip-ink: auto; color: var(--esp-color-link); } esp-root a:hover { background-color: var(--esp-color-link-hover-bg); color: var(--esp-color-link-hover); text-decoration: none; } /* The anchor supplies focus feedback until the badge has its own ring. */ esp-root a[data-esp-badge-link]:has(> esp-badge[linked]:defined) { background-color: transparent; text-decoration: none; } esp-root a[data-esp-badge-link]:focus-visible:has(> esp-badge[linked]:defined) { outline: none; } esp-root a:focus-visible > esp-badge[linked]::part(badge) { background: var(--esp-badge-link-focus-background, var(--esp-color-link-hover-bg)); border-color: var(--esp-badge-link-focus-border-color, var(--esp-color-link-hover)); color: var(--esp-badge-link-focus-color, var(--esp-color-link-hover)); } esp-root a[data-esp-badge-link]:focus-visible > esp-badge[linked]:defined::part(badge) { outline: 2px solid var(--esp-badge-link-focus-ring-color, var(--esp-color-link)); outline-offset: 3px; } @media (forced-colors: active) { esp-root a[data-esp-badge-link]:focus-visible > esp-badge[linked]:defined::part(badge) { outline-color: Highlight; } } /* ── Inherited text styles ────────────────────────────── */ esp-root input, esp-root button, esp-root textarea, esp-root select, esp-root p, esp-root ul, esp-root li { font-family: var(--_esp-font-body-effective, var(--esp-font-body, system-ui, sans-serif)); color: var(--esp-color-text); font-size: inherit; } esp-root textarea:not([rows]) { min-height: 10em; } /* ── Headings ─────────────────────────────────────────── */ esp-root h1, esp-root h2, esp-root h3, esp-root h4, esp-root h5 { font-family: var( --_esp-font-headings-effective, var( --esp-font-headings, var(--_esp-font-body-effective, var(--esp-font-body, system-ui, sans-serif)) ) ); font-weight: var(--esp-font-weight-headings); margin: var(--esp-size-small-to-normal) 0 var(--esp-size-tiny-to-small); } esp-root h5 { font-size: var(--esp-type-small); line-height: 1.4; color: var(--esp-color-headings); } esp-root h4 { font-size: var(--esp-type-medium); line-height: 1.3; color: var(--esp-heading-4-color, var(--esp-color-headings)); } esp-root h3 { font-size: var(--esp-type-big); line-height: 1.2; color: var(--esp-heading-3-color, var(--esp-color-headings)); } esp-root h2 { font-size: var(--esp-type-large); line-height: 1.15; color: var(--esp-heading-2-color, var(--esp-color-headings)); } esp-root h1 { font-size: var(--esp-type-huge); line-height: 1.1; color: var(--esp-heading-1-color, var(--esp-color-headings)); } /* ── Code / Pre ───────────────────────────────────────── */ esp-root pre, esp-root code { font-family: var(--_esp-font-monospace-effective, var(--esp-font-monospace, monospace)); font-weight: var(--esp-font-weight-monospace); } esp-root code { font-size: var(--esp-type-small); background: var(--esp-color-layer-1); border-radius: var(--esp-size-border-radius); padding: 0 0.35em; display: inline-block; border: 1px dotted var(--esp-color-border); } esp-root pre { background-color: var(--esp-color-layer-1); border-radius: var(--esp-size-border-radius); border: 1px dotted var(--esp-color-border); } esp-root pre > code { font-size: var(--esp-type-tiny); display: block; background: none; border: none; hyphens: none; tab-size: 2; white-space: pre; padding: var(--esp-size-padding); overflow: auto; line-height: 1.8; } /* ── Images ────────────────────────────────────────────── */ esp-root img, esp-root picture { max-width: 100%; display: block; } /* ── Footer scope ─────────────────────────────────────── */ /* esp-footer documents --esp-footer-color and --esp-footer-link-color as its text and link colors, but the base rules above set paragraph and link colors directly and outrank the footer's own rules (a page-level rule even beats ::slotted). These restate them one element higher so the footer variables win (ESP0261). The :not([class]) rule is needed to outrank the bold-link rule above. Hover and focus come last because they tie with it at (0,1,3). */ esp-root esp-footer :is(p, ul, ol, li) { color: var(--esp-footer-color, var(--esp-color-text)); } esp-root esp-footer :is(h1, h2, h3, h4, h5, h6) { ${footerHeadingFit.cssText} color: var(--esp-footer-heading-color, var(--_esp-footer-local-fitted-heading-color, var(--esp-color-headings))); } esp-root esp-footer h2 { font-size: var(--esp-footer-heading-font-size, var(--esp-type-normal)); } esp-root esp-footer a, esp-root esp-footer a:not([class]) { ${footerLinkFit.cssText} color: var(--esp-footer-link-color, var(--_esp-footer-local-fitted-link-color, var(--esp-color-link))); } esp-root esp-footer a:not([class]) { text-decoration-line: var(--esp-footer-link-decoration, underline); text-underline-offset: var(--esp-footer-link-underline-offset, auto); text-decoration-thickness: var(--esp-footer-link-underline-thickness, auto); } esp-root esp-footer esp-footer-link-group a:not([class]) { text-underline-offset: var(--esp-footer-link-underline-offset, 0.18em); } esp-root esp-footer a:hover { color: var(--esp-footer-link-hover-color, var(--esp-color-link-hover)); background-color: var(--esp-footer-link-hover-bg, var(--esp-color-link-hover-bg)); } esp-root esp-footer a:not([class]):hover { text-decoration-line: underline; } esp-root esp-footer a:focus-visible { ${footerLinkFit.cssText} outline: var( --esp-footer-focus-outline, 2px solid var(--esp-footer-link-color, var(--_esp-footer-local-fitted-link-color, var(--esp-color-link))) ); outline-offset: 3px; } /* Only bare links take the ring's corner radius; a classed link keeps its own shape, such as a pill or button, while focused. */ esp-root esp-footer a:not([class]):focus-visible { border-radius: var(--esp-size-border-radius); } `",
67249
+ "default": "` ${surfaceLayerAttributes(\"esp-root [surface-layer]\").cssText} /* ── Base typography ──────────────────────────────────── */ esp-root { font-family: var(--_esp-font-body-effective, var(--esp-font-body, system-ui, sans-serif)); font-weight: var(--esp-font-weight-body); line-height: 1.5; font-size: var(--esp-type-normal); color: var(--esp-color-text); } /* ── Lists ────────────────────────────────────────────── */ esp-root ul[role=\"list\"], esp-root ol[role=\"list\"] { list-style: none; } esp-root ul li::marker, esp-root ol li::marker { font-weight: bold; } /* Zero specificity so a consumer's own li::marker color wins (ESP0273). */ :where(esp-root :is(ul, ol) li)::marker { color: var(--esp-list-marker-color, currentcolor); } /* The user agent already numbers an ol with decimal, so the fallback changes nothing. :where() and :not([type]) keep a class rule or a type attribute authoritative over the hook (ESP0273). Equal-specificity or layered consumer rules can lose to this one: see \"Review decisions\" in ESP0273. */ :where(esp-root ol:not([type], [role=\"list\"])) { list-style-type: var(--esp-ordered-list-marker-style, decimal); } /* ── Form controls ────────────────────────────────────── */ esp-root input, esp-root select, esp-root button { font-family: var(--_esp-font-body-effective, var(--esp-font-body, system-ui, sans-serif)); } /* ── Links ────────────────────────────────────────────── */ esp-root a:not([class]) { text-decoration-skip-ink: auto; font-weight: bold; color: var(--esp-color-link); } esp-root a { text-decoration: underline; text-decoration-skip-ink: auto; color: var(--esp-color-link); } esp-root a:hover { background-color: var(--esp-color-link-hover-bg); color: var(--esp-color-link-hover); text-decoration: none; } /* The anchor supplies focus feedback until the badge has its own ring. */ esp-root a[data-esp-badge-link]:has(> esp-badge[linked]:defined) { background-color: transparent; text-decoration: none; } esp-root a[data-esp-badge-link]:focus-visible:has(> esp-badge[linked]:defined) { outline: none; } esp-root a:focus-visible > esp-badge[linked]::part(badge) { background: var(--esp-badge-link-focus-background, var(--esp-color-link-hover-bg)); border-color: var(--esp-badge-link-focus-border-color, var(--esp-color-link-hover)); color: var(--esp-badge-link-focus-color, var(--esp-color-link-hover)); } esp-root a[data-esp-badge-link]:focus-visible > esp-badge[linked]:defined::part(badge) { outline: 2px solid var(--esp-badge-link-focus-ring-color, var(--esp-color-link)); outline-offset: 3px; } @media (forced-colors: active) { esp-root a[data-esp-badge-link]:focus-visible > esp-badge[linked]:defined::part(badge) { outline-color: Highlight; } } /* ── Inherited text styles ────────────────────────────── */ esp-root input, esp-root button, esp-root textarea, esp-root select, esp-root p, esp-root ul, esp-root li { font-family: var(--_esp-font-body-effective, var(--esp-font-body, system-ui, sans-serif)); color: var(--esp-color-text); font-size: inherit; } esp-root textarea:not([rows]) { min-height: 10em; } /* ── Headings ─────────────────────────────────────────── */ esp-root h1, esp-root h2, esp-root h3, esp-root h4, esp-root h5 { font-family: var( --_esp-font-headings-effective, var( --esp-font-headings, var(--_esp-font-body-effective, var(--esp-font-body, system-ui, sans-serif)) ) ); font-weight: var(--esp-font-weight-headings); margin: var(--esp-size-small-to-normal) 0 var(--esp-size-tiny-to-small); } esp-root h5 { font-size: var(--esp-type-small); line-height: 1.4; color: var(--esp-color-headings); } esp-root h4 { font-size: var(--esp-type-medium); line-height: 1.3; color: var(--esp-heading-4-color, var(--esp-color-headings)); } esp-root h3 { font-size: var(--esp-type-big); line-height: 1.2; color: var(--esp-heading-3-color, var(--esp-color-headings)); } esp-root h2 { font-size: var(--esp-type-large); line-height: 1.15; color: var(--esp-heading-2-color, var(--esp-color-headings)); } esp-root h1 { font-size: var(--esp-type-huge); line-height: 1.1; color: var(--esp-heading-1-color, var(--esp-color-headings)); } /* A heading mark is a text-decoration underline drawn beneath the glyphs, so it follows each wrapped line and changes no layout. Every declaration is gated on --_esp-heading-N-mark-on, which the theme compiler sets only when --esp-heading-N-mark-color is authored. Without it, var() is invalid at computed-value time and each property computes as if no rule existed, so an author's own heading underline is untouched and rendering is 7.5.0's (ESP0273). Once a mark is authored, it owns text-decoration on that heading level: Espalier's consumers (Taproot) set no heading underline, and a consumer that underlines headings must set its own decoration color. The descendant rule keeps inherited offset and skip-ink off underlined links. Equal-specificity or layered consumer rules can lose to these: see \"Review decisions\" in ESP0273. */ ${HEADING_MARKS.map(([tag, on, color]) => ` :where(esp-root ${tag}) { text-decoration-line: var(${on}) underline; text-decoration-color: var(${on}) var(${color}); text-decoration-thickness: var(${on}) var(--esp-heading-mark-height, 0.35em); text-underline-offset: var(${on}) calc(0.1em - var(--esp-heading-mark-height, 0.35em)); text-decoration-skip-ink: var(${on}) none; } :where(esp-root ${tag} *) { text-underline-offset: var(${on}) auto; text-decoration-skip-ink: var(${on}) auto; } @media (forced-colors: active) { :where(esp-root ${tag}) { text-decoration-line: var(${on}) none; } }`).join(\"\")} /* ── Code / Pre ───────────────────────────────────────── */ esp-root pre, esp-root code { font-family: var(--_esp-font-monospace-effective, var(--esp-font-monospace, monospace)); font-weight: var(--esp-font-weight-monospace); } esp-root code { font-size: var(--esp-type-small); background: var(--esp-code-background, var(--esp-color-layer-1)); border-radius: var(--esp-size-border-radius); padding: 0 0.35em; display: inline-block; border: 1px var(--esp-code-border-style, dotted) var(--esp-code-border-color, var(--esp-color-border)); } esp-root pre { background-color: var(--esp-color-layer-1); border-radius: var(--esp-size-border-radius); border: 1px var(--esp-code-border-style, dotted) var(--esp-code-border-color, var(--esp-color-border)); } esp-root pre > code { font-size: var(--esp-type-tiny); display: block; background: none; border: none; hyphens: none; tab-size: 2; white-space: pre; padding: var(--esp-size-padding); overflow: auto; line-height: 1.8; } /* ── Images ────────────────────────────────────────────── */ esp-root img, esp-root picture { max-width: 100%; display: block; } /* ── Footer scope ─────────────────────────────────────── */ /* esp-footer documents --esp-footer-color and --esp-footer-link-color as its text and link colors, but the base rules above set paragraph and link colors directly and outrank the footer's own rules (a page-level rule even beats ::slotted). These restate them one element higher so the footer variables win (ESP0261). The :not([class]) rule is needed to outrank the bold-link rule above. Hover and focus come last because they tie with it at (0,1,3). */ esp-root esp-footer :is(p, ul, ol, li) { color: var(--esp-footer-color, var(--esp-color-text)); } esp-root esp-footer :is(h1, h2, h3, h4, h5, h6) { ${footerHeadingFit.cssText} color: var(--esp-footer-heading-color, var(--_esp-footer-local-fitted-heading-color, var(--esp-color-headings))); } esp-root esp-footer h2 { font-size: var(--esp-footer-heading-font-size, var(--esp-type-normal)); } esp-root esp-footer a, esp-root esp-footer a:not([class]) { ${footerLinkFit.cssText} color: var(--esp-footer-link-color, var(--_esp-footer-local-fitted-link-color, var(--esp-color-link))); } esp-root esp-footer a:not([class]) { text-decoration-line: var(--esp-footer-link-decoration, underline); text-underline-offset: var(--esp-footer-link-underline-offset, auto); text-decoration-thickness: var(--esp-footer-link-underline-thickness, auto); } esp-root esp-footer esp-footer-link-group a:not([class]) { text-underline-offset: var(--esp-footer-link-underline-offset, 0.18em); } esp-root esp-footer a:hover { color: var(--esp-footer-link-hover-color, var(--esp-color-link-hover)); background-color: var(--esp-footer-link-hover-bg, var(--esp-color-link-hover-bg)); } esp-root esp-footer a:not([class]):hover { text-decoration-line: underline; } esp-root esp-footer a:focus-visible { ${footerLinkFit.cssText} outline: var( --esp-footer-focus-outline, 2px solid var(--esp-footer-link-color, var(--_esp-footer-local-fitted-link-color, var(--esp-color-link))) ); outline-offset: 3px; } /* Only bare links take the ring's corner radius; a classed link keeps its own shape, such as a pill or button, while focused. */ esp-root esp-footer a:not([class]):focus-visible { border-radius: var(--esp-size-border-radius); } `",
67163
67250
  "description": "Light-DOM styles injected into `document.head` so that\nslotted content (headings, links, code blocks, lists, etc.)\ninherits the design-system tokens defined on `:host`.\nSelectors are scoped to `esp-root` descendants to avoid\nleaking into content outside the root."
67164
67251
  }
67165
67252
  ],
@@ -69176,7 +69263,7 @@
69176
69263
  "declarations": [
69177
69264
  {
69178
69265
  "kind": "class",
69179
- "description": "A full-bleed page band with a centered content well — the natural host\nfor a theme zone.\n\n`esp-section` paints the local `--esp-color-background` edge to edge\nand centers its content in a capped well. It carries no card identity:\nno raised surface, no border radius, no shadow. Give it a `context`\n(see [theme overview](/espalier-guides/#foundations)) and\nthe band renders the zone's complete token table with nothing to\nneutralize:\n\n```html\n<esp-section context=\"inverted\">\n <h2>The reversed band</h2>\n <p>Everything in here renders on the zone's tokens, and the band\n spans its container edge to edge.</p>\n</esp-section>\n```\n\nInside `esp-page kind=\"site\"` sections stack full-width and their\nwells share the page's `--esp-page-well-max-width`, so section\ncontent, the header, and the footer all align on one column. Outside\na page the well defaults to the same width and the band fills\nwhatever container it is given.\n\nThe vertical rhythm defaults to the theme's fluid `--esp-size-section`\nstep. For edge-to-edge content (a full-bleed hero image) clear both\nthe well cap and the inline breathing room —\n`--esp-section-max-width: none; --esp-section-padding-inline: 0;` —\nand drop `--esp-section-padding-block` too when the media should\nmeet the band's edges; the band's zone behavior is unaffected.\n\nA section may also tint one raster alpha mask behind its content.\nThe component owns clipping, no-repeat mask behavior, stacking, and\ninteraction isolation; consumers opt in with the `decoration`\nattribute and supply only the image, semantic tint, position, size, and\nopacity:\n\n```html\n<esp-section\n decoration\n style=\"\n --esp-section-decoration-image: url('/assets/brand-mark.png');\n --esp-section-decoration-position: calc(100% + 2rem) -2rem;\n --esp-section-decoration-size: min(34rem, 62%);\n --esp-section-decoration-opacity: 0.09;\n \"\n>\n <h1>Rooted in warmth</h1>\n</esp-section>\n```\n\nWithout `decoration` the section renders no decorative layer at all, and\nthe `--esp-section-decoration-*` hooks have no effect. The attribute is\nwhat keeps an undecorated band free of painted planes: accessibility\nauditors such as axe-core and Lighthouse do not model `mask-image`, so a\ntinted plane hidden only by a mask is read as the background behind every\nword in the section. Set it together with the image, never on its own. A\ndecorated band is audited as though the tint covered it everywhere, so\ntext that passes an audit also reads where it crosses the mark.\n\nCSS image values are trusted stylesheet input. Products that accept image\nreferences from documents or users must enforce their own asset ownership\nand URL policy before mapping a value to this hook.",
69266
+ "description": "A full-bleed page band with a centered content well — the natural host\nfor a theme zone.\n\n`esp-section` paints the local `--esp-color-background` edge to edge\nand centers its content in a capped well. It carries no card identity:\nno raised surface, no border radius, no shadow. Give it a `context`\n(see [theme overview](/espalier-guides/#foundations)) and\nthe band renders the zone's complete token table with nothing to\nneutralize:\n\n```html\n<esp-section context=\"inverted\">\n <h2>The reversed band</h2>\n <p>Everything in here renders on the zone's tokens, and the band\n spans its container edge to edge.</p>\n</esp-section>\n```\n\nInside `esp-page kind=\"site\"` sections stack full-width and their\nwells share the page's `--esp-page-well-max-width`, so section\ncontent, the header, and the footer all align on one column. Outside\na page the well defaults to the same width and the band fills\nwhatever container it is given.\n\nThe vertical rhythm defaults to the theme's fluid `--esp-size-section`\nstep. For edge-to-edge content (a full-bleed hero image) clear both\nthe well cap and the inline breathing room —\n`--esp-section-max-width: none; --esp-section-padding-inline: 0;` —\nand drop `--esp-section-padding-block` too when the media should\nmeet the band's edges; the band's zone behavior is unaffected.\n\nA section may also tint one raster alpha mask behind its content.\nThe component owns clipping, stacking, and interaction isolation, and the\nmask does not repeat unless the consumer sets `--esp-section-decoration-repeat`.\nConsumers opt in with the `decoration` attribute and supply only the image,\nsemantic tint, position, size, repeat, and opacity:\n\n```html\n<esp-section\n decoration\n style=\"\n --esp-section-decoration-image: url('/assets/brand-mark.png');\n --esp-section-decoration-position: calc(100% + 2rem) -2rem;\n --esp-section-decoration-size: min(34rem, 62%);\n --esp-section-decoration-opacity: 0.09;\n \"\n>\n <h1>Rooted in warmth</h1>\n</esp-section>\n```\n\nWithout `decoration` the section renders no decorative layer at all, and\nthe `--esp-section-decoration-*` hooks have no effect. The attribute is\nwhat keeps an undecorated band free of painted planes: accessibility\nauditors such as axe-core and Lighthouse do not model `mask-image`, so a\ntinted plane hidden only by a mask is read as the background behind every\nword in the section. Set it together with the image, never on its own. A\ndecorated band is audited as though the tint covered it everywhere, so\ntext that passes an audit also reads where it crosses the mark.\n\nCSS image values are trusted stylesheet input. Products that accept image\nreferences from documents or users must enforce their own asset ownership\nand URL policy before mapping a value to this hook.",
69180
69267
  "name": "EspalierSection",
69181
69268
  "cssProperties": [
69182
69269
  {
@@ -69207,6 +69294,10 @@
69207
69294
  "description": "Mask position, including responsive or bleeding values. Defaults to `center`.",
69208
69295
  "name": "--esp-section-decoration-position"
69209
69296
  },
69297
+ {
69298
+ "description": "Mask repeat: `no-repeat`, `repeat`, `repeat-x` or `repeat-y`. Defaults to `no-repeat`; the others tile a pattern mask across the band.",
69299
+ "name": "--esp-section-decoration-repeat"
69300
+ },
69210
69301
  {
69211
69302
  "description": "Mask size. Defaults to `contain`.",
69212
69303
  "name": "--esp-section-decoration-size"
@@ -70090,7 +70181,7 @@
70090
70181
  }
70091
70182
  }
70092
70183
  ],
70093
- "description": "Style selected native blockquotes as themed panels with lead typography.\nUse the result in Lit's `static styles`, or emit its `.cssText` into a\ndocument stylesheet during server rendering. Importing this subpath needs\nno DOM and does not register any components.\n\nThe selector defaults to `blockquote` and is trimmed. Pass only trusted,\nstatic developer CSS: this helper is not a user-input sanitizer. Comma lists\nuse the browser's forgiving `:where()` parsing; invalid branches do not match.\nExplicitly empty quote or figure selectors throw `RangeError`.\n\nPass `options.figureSelector` to style native figures and their direct\ncaptions. This does not select their blockquotes. Attribution and safe URLs\nremain the consumer's responsibility; cite identifies a work, not a person.\nThe empty decorative opening mark uses a local SVG mask: a document CSP\nmust allow `img-src data:` (or the corresponding default-src fallback).\nA blocked/failed mask is transparent; forced colors hide the decoration.\n\nBase and child rules have zero specificity. A selected light-DOM paragraph\nreceives a color-only bridge over `esp-root`'s native paragraph ink. The\nconsumer keeps ownership of outer block rhythm, prose measure and font family."
70184
+ "description": "Style selected native blockquotes as themed panels with lead typography.\nUse the result in Lit's `static styles`, or emit its `.cssText` into a\ndocument stylesheet during server rendering. Importing this subpath needs\nno DOM and does not register any components.\n\nThe selector defaults to `blockquote` and is trimmed. Pass only trusted,\nstatic developer CSS: this helper is not a user-input sanitizer. Comma lists\nuse the browser's forgiving `:where()` parsing; invalid branches do not match.\nExplicitly empty quote or figure selectors throw `RangeError`.\n\nPass `options.figureSelector` to style native figures and their direct\ncaptions. This does not select their blockquotes. Attribution and safe URLs\nremain the consumer's responsibility; cite identifies a work, not a person.\nThe empty decorative opening mark uses a local SVG mask: a document CSP\nmust allow `img-src data:` (or the corresponding default-src fallback).\nA blocked/failed mask is transparent; forced colors hide the decoration.\n\nBase and child rules have zero specificity. A selected light-DOM paragraph\nreceives a color-only bridge over `esp-root`'s native paragraph ink. The\nconsumer keeps ownership of outer block rhythm and prose measure, and of the\nfont family unless `--esp-blockquote-font-family` is set."
70094
70185
  }
70095
70186
  ],
70096
70187
  "exports": [
@@ -77177,8 +77268,8 @@
77177
77268
  "type": {
77178
77269
  "text": "Readonly<Record<string, string>>"
77179
77270
  },
77180
- "default": "{ \"--esp-shadow-1\": \"1px 1px 4px var(--esp-color-shadow)\", \"--esp-shadow-2\": \"0 2px 8px var(--esp-color-shadow)\", \"--esp-shadow-3\": \"0 6px 20px var(--esp-color-shadow)\", }",
77181
- "description": "The elevation tokens, exported for zone re-emission. A custom\nproperty bakes its inner var() references against the element that\nDECLARES it, so the root's emission resolves --esp-color-shadow at\nthe root; a theme-zone host must re-declare these literals for the\nshadow color to resolve zone-locally — the same reason zones re-emit\nthe --esp-l-* ramp (ESP0174)."
77271
+ "default": "{ \"--esp-shadow-1\": \"var(--esp-shadow-1-geometry, 1px 1px 4px) var(--esp-color-shadow)\", \"--esp-shadow-2\": \"var(--esp-shadow-2-geometry, 0 2px 8px) var(--esp-color-shadow)\", \"--esp-shadow-3\": \"var(--esp-shadow-3-geometry, 0 6px 20px) var(--esp-color-shadow)\", }",
77272
+ "description": "The elevation tokens, exported for zone re-emission. A custom\nproperty bakes its inner var() references against the element that\nDECLARES it, so the root's emission resolves --esp-color-shadow at\nthe root; a theme-zone host must re-declare these literals for the\nshadow color to resolve zone-locally — the same reason zones re-emit\nthe --esp-l-* ramp (ESP0174). The same holds for the settable\n--esp-shadow-N-geometry hooks (ESP0273): a zone's own geometry applies\nonly where these literals are re-declared."
77182
77273
  },
77183
77274
  {
77184
77275
  "kind": "variable",
@@ -77455,6 +77546,13 @@
77455
77546
  "kind": "javascript-module",
77456
77547
  "path": "dist/shared/settable-component-properties.js",
77457
77548
  "declarations": [
77549
+ {
77550
+ "kind": "variable",
77551
+ "name": "ELEVATION_VALUES",
77552
+ "type": {
77553
+ "text": "readonly string[]"
77554
+ }
77555
+ },
77458
77556
  {
77459
77557
  "kind": "variable",
77460
77558
  "name": "SETTABLE_COMPONENT_PROPERTIES",
@@ -77521,6 +77619,14 @@
77521
77619
  }
77522
77620
  ],
77523
77621
  "exports": [
77622
+ {
77623
+ "kind": "js",
77624
+ "name": "ELEVATION_VALUES",
77625
+ "declaration": {
77626
+ "name": "ELEVATION_VALUES",
77627
+ "module": "dist/shared/settable-component-properties.js"
77628
+ }
77629
+ },
77524
77630
  {
77525
77631
  "kind": "js",
77526
77632
  "name": "SETTABLE_COMPONENT_PROPERTIES",