@taprootio/espalier 7.0.0 → 7.1.1

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.
@@ -1,4 +1,4 @@
1
- var i=function(h,t,r,o){var l=arguments.length,n=l<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,t,r,o);else for(var p=h.length-1;p>=0;p--)(d=h[p])&&(n=(l<3?d(n):l>3?d(t,r,n):d(t,r))||n);return l>3&&n&&Object.defineProperty(t,r,n),n};import{css as g,html as c,nothing as s}from"lit";import{customElement as v,eventOptions as y,property as a,state as w}from"lit/decorators.js";import{classMap as b}from"lit/directives/class-map.js";import{EspalierElementBase as f}from"../shared/esp-element-base.js";import{ESP_EVENTS as x}from"../shared/events.js";import{ref as T}from"lit/directives/ref.js";import{getIconHrefForHost as k}from"../shared/intent-values.js";import{SlottedIconController as $}from"../shared/slotted-icon-controller.js";import{renderSpriteIcon as S}from"../shared/svgs/render-sprite-icon.js";import{DEFAULT_NEW_TAB_LABEL as E,newTabSuffix as C,renderNewTabCue as z}from"../shared/new-tab-cue.js";import{srOnly as N}from"../shared/style-fragments.js";import{BUTTON_INTERACTION_LIGHTNESS_FACTOR as B}from"./action-state-lightness.js";const m=g`var(--esp-button-padding, var(--_esp-button-default-padding, var(--esp-size-padding)))`,_=c`<svg
1
+ var i=function(h,t,r,o){var l=arguments.length,n=l<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,t,r,o);else for(var p=h.length-1;p>=0;p--)(d=h[p])&&(n=(l<3?d(n):l>3?d(t,r,n):d(t,r))||n);return l>3&&n&&Object.defineProperty(t,r,n),n};import{css as g,html as c,nothing as s}from"lit";import{customElement as v,eventOptions as y,property as a,state as w}from"lit/decorators.js";import{classMap as b}from"lit/directives/class-map.js";import{EspalierElementBase as f}from"../shared/esp-element-base.js";import{ESP_EVENTS as x}from"../shared/events.js";import{ref as T}from"lit/directives/ref.js";import{getIconHrefForHost as k}from"../shared/intent-values.js";import{SlottedIconController as $}from"../shared/slotted-icon-controller.js";import{renderSpriteIcon as S}from"../shared/svgs/render-sprite-icon.js";import{DEFAULT_NEW_TAB_LABEL as E,newTabSuffix as C,renderNewTabCue as z}from"../shared/new-tab-cue.js";import{srOnly as N}from"../shared/style-fragments.js";import{BUTTON_INTERACTION_LIGHTNESS_FACTOR as _}from"./action-state-lightness.js";const m=g`var(--esp-button-padding, var(--_esp-button-default-padding, var(--esp-size-padding)))`,B=c`<svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
3
  viewBox="0 0 24 24"
4
4
  fill="none"
@@ -10,7 +10,7 @@ var i=function(h,t,r,o){var l=arguments.length,n=l<3?t:o===null?o=Object.getOwnP
10
10
  >
11
11
  <path stroke="none" d="M0 0h24v24H0z" fill="none" />
12
12
  <path d="M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5" />
13
- </svg>`;let e=class extends f{constructor(){super(...arguments),this.iconSlot=new $(this),this.innerTabindex=null,this.neutralizingTabindex=!1,this.buttonType="button",this.collapsed=!1,this.disabled=!1,this.href="",this.current=!1,this.iconOnly=!1,this.incognito=!1,this.icon="",this.iconPosition="right",this.label="",this.loading=!1,this.target="",this.rel="",this.newTabLabel=E,this.formNoValidate=!1,this.buildIcon=(t,r=!1)=>this.loading&&!r?c` <span>${_}</span> `:c`
13
+ </svg>`;let e=class extends f{constructor(){super(...arguments),this.iconSlot=new $(this),this.innerTabindex=null,this.neutralizingTabindex=!1,this.buttonType="button",this.collapsed=!1,this.disabled=!1,this.href="",this.current=!1,this.iconOnly=!1,this.incognito=!1,this.icon="",this.iconPosition="right",this.label="",this.loading=!1,this.target="",this.rel="",this.newTabLabel=E,this.formNoValidate=!1,this.buildIcon=(t,r=!1)=>this.loading&&!r?c` <span>${B}</span> `:c`
14
14
  <span>
15
15
  <slot ${T(this.iconSlot.slotRef)} @slotchange=${this.iconSlot.handleSlotChange}></slot>
16
16
  ${!this.iconSlot.hasSlottedIcon(":scope > :not(slot)")&&t?S(t):s}
@@ -60,7 +60,10 @@ var i=function(h,t,r,o){var l=arguments.length,n=l<3?t:o===null?o=Object.getOwnP
60
60
  }
61
61
 
62
62
  :host([scheme="dark"]) {
63
- --esp-color-shadow: oklch(from var(--esp-color-primary) var(--esp-l-ink) c h);
63
+ --esp-color-shadow: var(
64
+ --_esp-context-shadow,
65
+ oklch(from var(--esp-color-primary) var(--esp-l-ink) c h)
66
+ );
64
67
  }
65
68
 
66
69
 
@@ -184,7 +187,7 @@ var i=function(h,t,r,o){var l=arguments.length,n=l<3?t:o===null?o=Object.getOwnP
184
187
  &:hover,
185
188
  &:focus-within {
186
189
  background-color: oklch(
187
- from var(--esp-color-action-background) calc(l * ${B})
190
+ from var(--esp-color-action-background) calc(l * ${_})
188
191
  c h
189
192
  );
190
193
  }
@@ -1,3 +1,4 @@
1
+ import { type FooterPlacement, type FooterTextAlign } from "../shared/footer-alignment.js";
1
2
  import { EspalierElementBase } from "../shared/esp-element-base.js";
2
3
  /**
3
4
  * A layout-only column for creator-controlled link-group stacking inside
@@ -26,10 +27,20 @@ import { EspalierElementBase } from "../shared/esp-element-base.js";
26
27
  * slotted order of its child groups and uses `--esp-footer-row-gap`, defaulting
27
28
  * to `var(--esp-size-big)`, for its vertical rhythm.
28
29
  *
30
+ * Set inline-align, block-align or text-align for a local override, adding
31
+ * -wrapped or -stacked for narrower profiles. Unset values inherit footer
32
+ * context; a nested group can override its column without changing its tracks.
33
+ * See [footer reference](/components/footer/) for sparse inheritance,
34
+ * logical placement and caller-owned content hooks.
35
+ *
29
36
  * @customElement esp-footer-column
30
37
  * @slot - Ordered `esp-footer-link-group` children belonging to this column.
31
38
  * @cssprop --esp-footer-row-gap - Vertical gap between footer rows and
32
39
  * link groups stacked in `esp-footer-column`. Defaults to `var(--esp-size-big)`.
40
+ * @cssprop --esp-footer-current-inline-align - Current logical inline placement for caller-owned content. Derived output, unset in the unauthored Default state; use a layout-specific fallback.
41
+ * @cssprop --esp-footer-current-block-align - Current logical block placement for caller-owned content. Derived output, unset in Default and always unset in the bottom region; use a layout-specific fallback.
42
+ * @cssprop --esp-footer-current-text-align - Current non-prose text alignment for caller-owned headings, labels and controls. Derived output; unset in Default so inherited text remains available.
43
+ * @cssprop --esp-footer-current-prose-align - Current paragraph alignment, including justify with an ordinary last line. Derived output; unset in Default so inherited text remains available.
33
44
  * @docPageTitle Footer Column
34
45
  * @docUrl /components/footer/column
35
46
  * @menuGroup Structure
@@ -37,6 +48,33 @@ import { EspalierElementBase } from "../shared/esp-element-base.js";
37
48
  * @menuIcon columns
38
49
  */
39
50
  export declare class EspalierFooterColumn extends EspalierElementBase {
51
+ /** Logical inline placement in the wide layout; unset inherits. */
52
+ get inlineAlign(): FooterPlacement | undefined;
53
+ set inlineAlign(value: FooterPlacement | undefined);
54
+ /** Logical inline placement in the wrapped layout; unset inherits. */
55
+ get inlineAlignWrapped(): FooterPlacement | undefined;
56
+ set inlineAlignWrapped(value: FooterPlacement | undefined);
57
+ /** Logical inline placement in the stacked layout; unset inherits. */
58
+ get inlineAlignStacked(): FooterPlacement | undefined;
59
+ set inlineAlignStacked(value: FooterPlacement | undefined);
60
+ /** Logical block placement in the wide layout; unset inherits. */
61
+ get blockAlign(): FooterPlacement | undefined;
62
+ set blockAlign(value: FooterPlacement | undefined);
63
+ /** Logical block placement in the wrapped layout; unset inherits. */
64
+ get blockAlignWrapped(): FooterPlacement | undefined;
65
+ set blockAlignWrapped(value: FooterPlacement | undefined);
66
+ /** Logical block placement in the stacked layout; unset inherits. */
67
+ get blockAlignStacked(): FooterPlacement | undefined;
68
+ set blockAlignStacked(value: FooterPlacement | undefined);
69
+ /** Text alignment in the wide layout; unset inherits. */
70
+ get textAlign(): FooterTextAlign | undefined;
71
+ set textAlign(value: FooterTextAlign | undefined);
72
+ /** Text alignment in the wrapped layout; unset inherits. */
73
+ get textAlignWrapped(): FooterTextAlign | undefined;
74
+ set textAlignWrapped(value: FooterTextAlign | undefined);
75
+ /** Text alignment in the stacked layout; unset inherits. */
76
+ get textAlignStacked(): FooterTextAlign | undefined;
77
+ set textAlignStacked(value: FooterTextAlign | undefined);
40
78
  /** Tracks occupied in the footer row (1–2); invalid values read as 1. Ignored when stacked.
41
79
  * @default 1
42
80
  */
@@ -1,8 +1,26 @@
1
- var a=function(n,e,r,o){var p=arguments.length,t=p<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(i=n[l])&&(t=(p<3?i(t):p>3?i(e,r,t):i(e,r))||t);return p>3&&t&&Object.defineProperty(e,r,t),t};import{css as m,html as f}from"lit";import{customElement as u,property as h}from"lit/decorators.js";import{syncNormalizedAttribute as d}from"../shared/attribute-helpers.js";import{EspalierElementBase as c}from"../shared/esp-element-base.js";let s=class extends c{constructor(){super(...arguments),this.spanBacker=1}get span(){return this.spanBacker}set span(e){const r=this.spanBacker;this.spanBacker=Number.isInteger(e)&&e>=1&&e<=2?e:1,this.requestUpdate("span",this.hasAttribute("span")?r:void 0),d(this,"span",String(this.spanBacker))}render(){return f`<slot></slot>`}};s.styles=[...c.styles,m`
1
+ var n=function(a,e,r,s){var p=arguments.length,l=p<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,r):s,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(a,e,r,s);else for(var o=a.length-1;o>=0;o--)(g=a[o])&&(l=(p<3?g(l):p>3?g(e,r,l):g(e,r))||l);return p>3&&l&&Object.defineProperty(e,r,l),l};import{FooterAlignmentController as d,footerAlignmentStyles as m,footerAlignmentHostStyles as u}from"../shared/footer-alignment.js";import{css as f,html as k}from"lit";import{customElement as A,property as i}from"lit/decorators.js";import{syncNormalizedAttribute as h}from"../shared/attribute-helpers.js";import{EspalierElementBase as c}from"../shared/esp-element-base.js";let t=class extends c{constructor(){super(...arguments),this.alignment=new d(this,"column"),this.spanBacker=1}get inlineAlign(){return this.alignment.get("inline-align")}set inlineAlign(e){this.alignment.set("inlineAlign","inline-align",e,"placement")}get inlineAlignWrapped(){return this.alignment.get("inline-align-wrapped")}set inlineAlignWrapped(e){this.alignment.set("inlineAlignWrapped","inline-align-wrapped",e,"placement")}get inlineAlignStacked(){return this.alignment.get("inline-align-stacked")}set inlineAlignStacked(e){this.alignment.set("inlineAlignStacked","inline-align-stacked",e,"placement")}get blockAlign(){return this.alignment.get("block-align")}set blockAlign(e){this.alignment.set("blockAlign","block-align",e,"placement")}get blockAlignWrapped(){return this.alignment.get("block-align-wrapped")}set blockAlignWrapped(e){this.alignment.set("blockAlignWrapped","block-align-wrapped",e,"placement")}get blockAlignStacked(){return this.alignment.get("block-align-stacked")}set blockAlignStacked(e){this.alignment.set("blockAlignStacked","block-align-stacked",e,"placement")}get textAlign(){return this.alignment.get("text-align")}set textAlign(e){this.alignment.set("textAlign","text-align",e,"text")}get textAlignWrapped(){return this.alignment.get("text-align-wrapped")}set textAlignWrapped(e){this.alignment.set("textAlignWrapped","text-align-wrapped",e,"text")}get textAlignStacked(){return this.alignment.get("text-align-stacked")}set textAlignStacked(e){this.alignment.set("textAlignStacked","text-align-stacked",e,"text")}get span(){return this.spanBacker}set span(e){const r=this.spanBacker;this.spanBacker=Number.isInteger(e)&&e>=1&&e<=2?e:1,this.requestUpdate("span",this.hasAttribute("span")?r:void 0),h(this,"span",String(this.spanBacker))}render(){return k`<div class="alignment-scope">
2
+ <div class="alignment-content"><slot></slot></div>
3
+ </div>`}};t.styles=[...c.styles,m,u,f`
4
+ .alignment-scope {
5
+ display: var(--_esp-footer-wrapper-display, flex);
6
+ flex-direction: column;
7
+ gap: inherit;
8
+ min-inline-size: 0;
9
+ }
10
+ .alignment-content {
11
+ display: var(--_esp-footer-wrapper-display, flex);
12
+ flex-direction: column;
13
+ min-inline-size: 0;
14
+ gap: inherit;
15
+ inline-size: var(--_esp-footer-content-width, auto);
16
+ max-inline-size: 100%;
17
+ align-self: var(--_esp-footer-content-self, auto);
18
+ text-align: var(--_esp-footer-text-css, inherit);
19
+ }
2
20
  :host {
3
21
  display: flex;
4
22
  flex-direction: column;
5
23
  gap: var(--esp-footer-row-gap, var(--esp-size-big));
6
24
  min-inline-size: 0;
7
25
  }
8
- `],a([h({type:Number,reflect:!0})],s.prototype,"span",null),s=a([u("esp-footer-column")],s);export{s as EspalierFooterColumn};
26
+ `],n([i({attribute:"inline-align",reflect:!0})],t.prototype,"inlineAlign",null),n([i({attribute:"inline-align-wrapped",reflect:!0})],t.prototype,"inlineAlignWrapped",null),n([i({attribute:"inline-align-stacked",reflect:!0})],t.prototype,"inlineAlignStacked",null),n([i({attribute:"block-align",reflect:!0})],t.prototype,"blockAlign",null),n([i({attribute:"block-align-wrapped",reflect:!0})],t.prototype,"blockAlignWrapped",null),n([i({attribute:"block-align-stacked",reflect:!0})],t.prototype,"blockAlignStacked",null),n([i({attribute:"text-align",reflect:!0})],t.prototype,"textAlign",null),n([i({attribute:"text-align-wrapped",reflect:!0})],t.prototype,"textAlignWrapped",null),n([i({attribute:"text-align-stacked",reflect:!0})],t.prototype,"textAlignStacked",null),n([i({type:Number,reflect:!0})],t.prototype,"span",null),t=n([A("esp-footer-column")],t);export{t as EspalierFooterColumn};
@@ -1,3 +1,4 @@
1
+ import { type FooterPlacement, type FooterTextAlign } from "../shared/footer-alignment.js";
1
2
  import { EspalierElementBase } from "../shared/esp-element-base.js";
2
3
  /**
3
4
  * A labelled group of related links inside [`<esp-footer>`](/components/footer/).
@@ -12,18 +13,55 @@ import { EspalierElementBase } from "../shared/esp-element-base.js";
12
13
  * </esp-footer-link-group>
13
14
  * ```
14
15
  *
16
+ * Set inline-align, block-align or text-align for a local override, adding
17
+ * -wrapped or -stacked for narrower profiles. Unset values inherit footer
18
+ * context; a nested group can override its column without changing its tracks.
19
+ * See [footer reference](/components/footer/) for sparse inheritance,
20
+ * logical placement and caller-owned content hooks.
21
+ *
15
22
  * @customElement esp-footer-link-group
16
23
  * @slot - Links belonging to the group. Native anchors are preferred because
17
24
  * footer links do not need application-menu disclosure or drawer behavior.
18
25
  * @csspart nav - The group's navigation landmark.
19
26
  * @csspart heading - The visible heading used to label the navigation landmark.
20
27
  * @csspart links - The link-list container.
28
+ * @cssprop --esp-footer-current-inline-align - Current logical inline placement for caller-owned content. Derived output, unset in the unauthored Default state; use a layout-specific fallback.
29
+ * @cssprop --esp-footer-current-block-align - Current logical block placement for caller-owned content. Derived output, unset in Default and always unset in the bottom region; use a layout-specific fallback.
30
+ * @cssprop --esp-footer-current-text-align - Current non-prose text alignment for caller-owned headings, labels and controls. Derived output; unset in Default so inherited text remains available.
31
+ * @cssprop --esp-footer-current-prose-align - Current paragraph alignment, including justify with an ordinary last line. Derived output; unset in Default so inherited text remains available.
21
32
  * @docPageTitle Footer Link Group
22
33
  * @docUrl /components/footer/link-group
23
34
  * @menuGroup Navigation
24
35
  * @menuIcon list-details
25
36
  */
26
37
  export declare class EspalierFooterLinkGroup extends EspalierElementBase {
38
+ /** Logical inline placement in the wide layout; unset inherits. */
39
+ get inlineAlign(): FooterPlacement | undefined;
40
+ set inlineAlign(value: FooterPlacement | undefined);
41
+ /** Logical inline placement in the wrapped layout; unset inherits. */
42
+ get inlineAlignWrapped(): FooterPlacement | undefined;
43
+ set inlineAlignWrapped(value: FooterPlacement | undefined);
44
+ /** Logical inline placement in the stacked layout; unset inherits. */
45
+ get inlineAlignStacked(): FooterPlacement | undefined;
46
+ set inlineAlignStacked(value: FooterPlacement | undefined);
47
+ /** Logical block placement in the wide layout; unset inherits. */
48
+ get blockAlign(): FooterPlacement | undefined;
49
+ set blockAlign(value: FooterPlacement | undefined);
50
+ /** Logical block placement in the wrapped layout; unset inherits. */
51
+ get blockAlignWrapped(): FooterPlacement | undefined;
52
+ set blockAlignWrapped(value: FooterPlacement | undefined);
53
+ /** Logical block placement in the stacked layout; unset inherits. */
54
+ get blockAlignStacked(): FooterPlacement | undefined;
55
+ set blockAlignStacked(value: FooterPlacement | undefined);
56
+ /** Text alignment in the wide layout; unset inherits. */
57
+ get textAlign(): FooterTextAlign | undefined;
58
+ set textAlign(value: FooterTextAlign | undefined);
59
+ /** Text alignment in the wrapped layout; unset inherits. */
60
+ get textAlignWrapped(): FooterTextAlign | undefined;
61
+ set textAlignWrapped(value: FooterTextAlign | undefined);
62
+ /** Text alignment in the stacked layout; unset inherits. */
63
+ get textAlignStacked(): FooterTextAlign | undefined;
64
+ set textAlignStacked(value: FooterTextAlign | undefined);
27
65
  /**
28
66
  * Visible heading for the link group. It also labels the navigation
29
67
  * landmark. When omitted, the landmark receives the fallback label
@@ -1,19 +1,31 @@
1
- var f=function(t,o,r,n){var s=arguments.length,e=s<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(t,o,r,n);else for(var a=t.length-1;a>=0;a--)(l=t[a])&&(e=(s<3?l(e):s>3?l(o,r,e):l(o,r))||e);return s>3&&e&&Object.defineProperty(o,r,e),e};import{css as h,html as d,nothing as p}from"lit";import{customElement as g,property as u}from"lit/decorators.js";import{EspalierElementBase as v}from"../shared/esp-element-base.js";const c="esp-footer-link-group-heading";let i=class extends v{constructor(){super(...arguments),this.heading=""}render(){return d`
2
- <nav
3
- part="nav"
4
- aria-labelledby=${this.heading?c:p}
5
- aria-label=${this.heading?p:"Footer links"}
6
- >
7
- ${this.heading?d`<h2 part="heading" id=${c}>${this.heading}</h2>`:p}
8
- <div part="links" class="links"><slot></slot></div>
9
- </nav>
10
- `}};i.styles=[...v.styles,h`
1
+ var n=function(a,e,r,o){var s=arguments.length,l=s<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(a,e,r,o);else for(var g=a.length-1;g>=0;g--)(p=a[g])&&(l=(s<3?p(l):s>3?p(e,r,l):p(e,r))||l);return s>3&&l&&Object.defineProperty(e,r,l),l};import{FooterAlignmentController as h,footerAlignmentStyles as m,footerAlignmentHostStyles as k}from"../shared/footer-alignment.js";import{css as v,html as d,nothing as c}from"lit";import{customElement as b,property as i}from"lit/decorators.js";import{EspalierElementBase as f}from"../shared/esp-element-base.js";const u="esp-footer-link-group-heading";let t=class extends f{constructor(){super(...arguments),this.alignment=new h(this,"group"),this.heading=""}get inlineAlign(){return this.alignment.get("inline-align")}set inlineAlign(e){this.alignment.set("inlineAlign","inline-align",e,"placement")}get inlineAlignWrapped(){return this.alignment.get("inline-align-wrapped")}set inlineAlignWrapped(e){this.alignment.set("inlineAlignWrapped","inline-align-wrapped",e,"placement")}get inlineAlignStacked(){return this.alignment.get("inline-align-stacked")}set inlineAlignStacked(e){this.alignment.set("inlineAlignStacked","inline-align-stacked",e,"placement")}get blockAlign(){return this.alignment.get("block-align")}set blockAlign(e){this.alignment.set("blockAlign","block-align",e,"placement")}get blockAlignWrapped(){return this.alignment.get("block-align-wrapped")}set blockAlignWrapped(e){this.alignment.set("blockAlignWrapped","block-align-wrapped",e,"placement")}get blockAlignStacked(){return this.alignment.get("block-align-stacked")}set blockAlignStacked(e){this.alignment.set("blockAlignStacked","block-align-stacked",e,"placement")}get textAlign(){return this.alignment.get("text-align")}set textAlign(e){this.alignment.set("textAlign","text-align",e,"text")}get textAlignWrapped(){return this.alignment.get("text-align-wrapped")}set textAlignWrapped(e){this.alignment.set("textAlignWrapped","text-align-wrapped",e,"text")}get textAlignStacked(){return this.alignment.get("text-align-stacked")}set textAlignStacked(e){this.alignment.set("textAlignStacked","text-align-stacked",e,"text")}render(){return d`
2
+ <div class="alignment-scope">
3
+ <nav
4
+ class="alignment-content"
5
+ part="nav"
6
+ aria-labelledby=${this.heading?u:c}
7
+ aria-label=${this.heading?c:"Footer links"}
8
+ >
9
+ ${this.heading?d`<h2 part="heading" id=${u}>${this.heading}</h2>`:c}
10
+ <div part="links" class="links"><slot></slot></div>
11
+ </nav>
12
+ </div>
13
+ `}};t.styles=[...f.styles,m,k,v`
11
14
  :host {
12
15
  display: block;
13
16
  min-inline-size: 0;
14
17
  }
15
18
 
19
+ .alignment-scope {
20
+ display: var(--_esp-footer-wrapper-display, flex);
21
+ flex-direction: column;
22
+ min-inline-size: 0;
23
+ }
16
24
  nav {
25
+ inline-size: var(--_esp-footer-content-width, auto);
26
+ max-inline-size: 100%;
27
+ align-self: var(--_esp-footer-content-self, auto);
28
+ text-align: var(--_esp-footer-text-css, inherit);
17
29
  display: grid;
18
30
  gap: var(--esp-footer-link-group-gap, var(--esp-size-small));
19
31
  min-inline-size: 0;
@@ -37,12 +49,14 @@ var f=function(t,o,r,n){var s=arguments.length,e=s<3?o:n===null?n=Object.getOwnP
37
49
  }
38
50
 
39
51
  .links {
52
+ justify-items: var(--_esp-footer-text-css, normal);
40
53
  display: grid;
41
54
  gap: var(--esp-size-tiny);
42
55
  min-inline-size: 0;
43
56
  }
44
57
 
45
58
  ::slotted(a) {
59
+ text-align: var(--_esp-footer-text-css, inherit);
46
60
  inline-size: fit-content;
47
61
  max-inline-size: 100%;
48
62
  color: var(--esp-footer-link-color, var(--esp-color-link));
@@ -64,4 +78,4 @@ var f=function(t,o,r,n){var s=arguments.length,e=s<3?o:n===null?n=Object.getOwnP
64
78
  );
65
79
  outline-offset: 3px;
66
80
  }
67
- `],f([u({type:String})],i.prototype,"heading",void 0),i=f([g("esp-footer-link-group")],i);export{i as EspalierFooterLinkGroup};
81
+ `],n([i({attribute:"inline-align",reflect:!0})],t.prototype,"inlineAlign",null),n([i({attribute:"inline-align-wrapped",reflect:!0})],t.prototype,"inlineAlignWrapped",null),n([i({attribute:"inline-align-stacked",reflect:!0})],t.prototype,"inlineAlignStacked",null),n([i({attribute:"block-align",reflect:!0})],t.prototype,"blockAlign",null),n([i({attribute:"block-align-wrapped",reflect:!0})],t.prototype,"blockAlignWrapped",null),n([i({attribute:"block-align-stacked",reflect:!0})],t.prototype,"blockAlignStacked",null),n([i({attribute:"text-align",reflect:!0})],t.prototype,"textAlign",null),n([i({attribute:"text-align-wrapped",reflect:!0})],t.prototype,"textAlignWrapped",null),n([i({attribute:"text-align-stacked",reflect:!0})],t.prototype,"textAlignStacked",null),n([i({type:String})],t.prototype,"heading",void 0),t=n([b("esp-footer-link-group")],t);export{t as EspalierFooterLinkGroup};
@@ -1,3 +1,5 @@
1
+ import { type FooterPlacement, type FooterTextAlign, type FooterLayout, type FooterLayoutChangedDetail } from "../shared/footer-alignment.js";
2
+ import { type FooterLogoSizing } from "../shared/footer-logo-geometry.js";
1
3
  import { type PropertyValues } from "lit";
2
4
  import { EspalierElementBase } from "../shared/esp-element-base.js";
3
5
  import "./esp-footer-column.js";
@@ -19,6 +21,27 @@ import "./esp-footer-link-group.js";
19
21
  * brand takes its own row. At 48rem and below, every column and bare group
20
22
  * stacks full width, spans have no effect, and compact brand tokens apply.
21
23
  *
24
+ * Configure placement independently from text: `brand-block-align="start"`
25
+ * moves the lockup and its painted image to the top; `brand-inline-align-wrapped="center"`
26
+ * centers the brand in its own row; `inline-align-stacked="center"` centers
27
+ * stacked content. Start/end follow the writing direction. Unset inputs inherit
28
+ * this profile's footer defaults, then the previous wider profile's intent.
29
+ * With no authored intent, existing placement and inherited text are preserved.
30
+ * `text-align="auto"` follows current inline placement; `justify` is for prose
31
+ * paragraphs, while headings and menu labels follow inline placement.
32
+ *
33
+ * `brand-logo-sizing="natural"` removes the fixed-height whitespace around a
34
+ * width-capped logo. Loaded intrinsic proportions win; scheme-specific ratio
35
+ * hints reserve pending or failed images. Transparent padding in the asset is
36
+ * retained. Fixed sizing remains the default.
37
+ *
38
+ * Use the inherited `--esp-footer-current-*` context outputs for caller-owned
39
+ * paragraphs, CTA/social rows and custom brand layouts; see
40
+ * [footer reference](/components/footer/). Inputs use camelCase properties,
41
+ * for example `brandInlineAlignWrapped`; clearing one with undefined restores
42
+ * inheritance. Read `layout` or listen for `esp-layout-changed` when composing
43
+ * a responsive preview instead of repeating the footer's breakpoints.
44
+ *
22
45
  * A field fills one layer above the surface it sits on.
23
46
  * Use `surface-layer="1|2|3|4"` to select the default painted layer.
24
47
  *
@@ -218,6 +241,13 @@ import "./esp-footer-link-group.js";
218
241
  * @cssprop --esp-footer-background-blend-mode - Decorative layer blend mode. Defaults to `normal`.
219
242
  * @cssprop --esp-footer-content-max-width - Surface-alignment cap published by `esp-page`. Defaults to `100%`.
220
243
  * @cssprop --esp-footer-content-lead - Fraction of surplus placed before content (`0`, `0.5`, or `1`). Defaults to `0`.
244
+ * @fires {CustomEvent<FooterLayoutChangedDetail>} esp-layout-changed - The CSS-selected layout changed; detail.layout is wide, wrapped or stacked. Bubbles and crosses shadow roots.
245
+ * @cssprop --esp-footer-current-inline-align - Current logical inline placement for caller-owned content. Derived output, unset in the unauthored Default state; use a layout-specific fallback.
246
+ * @cssprop --esp-footer-current-block-align - Current logical block placement for caller-owned content. Derived output, unset in Default and always unset in the bottom region; use a layout-specific fallback.
247
+ * @cssprop --esp-footer-current-text-align - Current non-prose text alignment for caller-owned headings, labels and controls. Derived output; unset in Default so inherited text remains available.
248
+ * @cssprop --esp-footer-current-prose-align - Current paragraph alignment, including justify with an ordinary last line. Derived output; unset in Default so inherited text remains available.
249
+ * @cssprop --esp-footer-light-brand-logo-aspect-ratio - Pending or failed natural logo ratio in the light scheme; validated hint, then the generic ratio, then 3 / 1. Loaded intrinsic dimensions win.
250
+ * @cssprop --esp-footer-dark-brand-logo-aspect-ratio - Pending or failed natural logo ratio in the dark scheme; validated hint, then the generic ratio, then 3 / 1. Loaded intrinsic dimensions win.
221
251
  * @docPageTitle Footer
222
252
  * @docUrl /components/footer
223
253
  * @menuGroup Structure
@@ -225,6 +255,113 @@ import "./esp-footer-link-group.js";
225
255
  * @menuIcon layout
226
256
  */
227
257
  export declare class EspalierFooter extends EspalierElementBase {
258
+ /** Current CSS-selected content layout. Read-only; changes emit esp-layout-changed. */
259
+ get layout(): FooterLayout;
260
+ constructor();
261
+ /** Logical inline placement in the wide layout; unset inherits. */
262
+ get inlineAlign(): FooterPlacement | undefined;
263
+ set inlineAlign(value: FooterPlacement | undefined);
264
+ /** Logical inline placement in the wrapped layout; unset inherits. */
265
+ get inlineAlignWrapped(): FooterPlacement | undefined;
266
+ set inlineAlignWrapped(value: FooterPlacement | undefined);
267
+ /** Logical inline placement in the stacked layout; unset inherits. */
268
+ get inlineAlignStacked(): FooterPlacement | undefined;
269
+ set inlineAlignStacked(value: FooterPlacement | undefined);
270
+ /** Logical block placement in the wide layout; unset inherits. */
271
+ get blockAlign(): FooterPlacement | undefined;
272
+ set blockAlign(value: FooterPlacement | undefined);
273
+ /** Logical block placement in the wrapped layout; unset inherits. */
274
+ get blockAlignWrapped(): FooterPlacement | undefined;
275
+ set blockAlignWrapped(value: FooterPlacement | undefined);
276
+ /** Logical block placement in the stacked layout; unset inherits. */
277
+ get blockAlignStacked(): FooterPlacement | undefined;
278
+ set blockAlignStacked(value: FooterPlacement | undefined);
279
+ /** Text alignment in the wide layout; unset inherits. */
280
+ get textAlign(): FooterTextAlign | undefined;
281
+ set textAlign(value: FooterTextAlign | undefined);
282
+ /** Text alignment in the wrapped layout; unset inherits. */
283
+ get textAlignWrapped(): FooterTextAlign | undefined;
284
+ set textAlignWrapped(value: FooterTextAlign | undefined);
285
+ /** Text alignment in the stacked layout; unset inherits. */
286
+ get textAlignStacked(): FooterTextAlign | undefined;
287
+ set textAlignStacked(value: FooterTextAlign | undefined);
288
+ /** Logical inline placement in the wide layout; unset inherits. */
289
+ get brandInlineAlign(): FooterPlacement | undefined;
290
+ set brandInlineAlign(value: FooterPlacement | undefined);
291
+ /** Logical inline placement in the wrapped layout; unset inherits. */
292
+ get brandInlineAlignWrapped(): FooterPlacement | undefined;
293
+ set brandInlineAlignWrapped(value: FooterPlacement | undefined);
294
+ /** Logical inline placement in the stacked layout; unset inherits. */
295
+ get brandInlineAlignStacked(): FooterPlacement | undefined;
296
+ set brandInlineAlignStacked(value: FooterPlacement | undefined);
297
+ /** Logical block placement in the wide layout; unset inherits. */
298
+ get brandBlockAlign(): FooterPlacement | undefined;
299
+ set brandBlockAlign(value: FooterPlacement | undefined);
300
+ /** Logical block placement in the wrapped layout; unset inherits. */
301
+ get brandBlockAlignWrapped(): FooterPlacement | undefined;
302
+ set brandBlockAlignWrapped(value: FooterPlacement | undefined);
303
+ /** Logical block placement in the stacked layout; unset inherits. */
304
+ get brandBlockAlignStacked(): FooterPlacement | undefined;
305
+ set brandBlockAlignStacked(value: FooterPlacement | undefined);
306
+ /** Text alignment in the wide layout; unset inherits. */
307
+ get brandTextAlign(): FooterTextAlign | undefined;
308
+ set brandTextAlign(value: FooterTextAlign | undefined);
309
+ /** Text alignment in the wrapped layout; unset inherits. */
310
+ get brandTextAlignWrapped(): FooterTextAlign | undefined;
311
+ set brandTextAlignWrapped(value: FooterTextAlign | undefined);
312
+ /** Text alignment in the stacked layout; unset inherits. */
313
+ get brandTextAlignStacked(): FooterTextAlign | undefined;
314
+ set brandTextAlignStacked(value: FooterTextAlign | undefined);
315
+ /** Logical inline placement in the wide layout; unset inherits. */
316
+ get asideInlineAlign(): FooterPlacement | undefined;
317
+ set asideInlineAlign(value: FooterPlacement | undefined);
318
+ /** Logical inline placement in the wrapped layout; unset inherits. */
319
+ get asideInlineAlignWrapped(): FooterPlacement | undefined;
320
+ set asideInlineAlignWrapped(value: FooterPlacement | undefined);
321
+ /** Logical inline placement in the stacked layout; unset inherits. */
322
+ get asideInlineAlignStacked(): FooterPlacement | undefined;
323
+ set asideInlineAlignStacked(value: FooterPlacement | undefined);
324
+ /** Logical block placement in the wide layout; unset inherits. */
325
+ get asideBlockAlign(): FooterPlacement | undefined;
326
+ set asideBlockAlign(value: FooterPlacement | undefined);
327
+ /** Logical block placement in the wrapped layout; unset inherits. */
328
+ get asideBlockAlignWrapped(): FooterPlacement | undefined;
329
+ set asideBlockAlignWrapped(value: FooterPlacement | undefined);
330
+ /** Logical block placement in the stacked layout; unset inherits. */
331
+ get asideBlockAlignStacked(): FooterPlacement | undefined;
332
+ set asideBlockAlignStacked(value: FooterPlacement | undefined);
333
+ /** Text alignment in the wide layout; unset inherits. */
334
+ get asideTextAlign(): FooterTextAlign | undefined;
335
+ set asideTextAlign(value: FooterTextAlign | undefined);
336
+ /** Text alignment in the wrapped layout; unset inherits. */
337
+ get asideTextAlignWrapped(): FooterTextAlign | undefined;
338
+ set asideTextAlignWrapped(value: FooterTextAlign | undefined);
339
+ /** Text alignment in the stacked layout; unset inherits. */
340
+ get asideTextAlignStacked(): FooterTextAlign | undefined;
341
+ set asideTextAlignStacked(value: FooterTextAlign | undefined);
342
+ /** Logical inline placement in the wide layout; unset inherits. */
343
+ get bottomInlineAlign(): FooterPlacement | undefined;
344
+ set bottomInlineAlign(value: FooterPlacement | undefined);
345
+ /** Logical inline placement in the wrapped layout; unset inherits. */
346
+ get bottomInlineAlignWrapped(): FooterPlacement | undefined;
347
+ set bottomInlineAlignWrapped(value: FooterPlacement | undefined);
348
+ /** Logical inline placement in the stacked layout; unset inherits. */
349
+ get bottomInlineAlignStacked(): FooterPlacement | undefined;
350
+ set bottomInlineAlignStacked(value: FooterPlacement | undefined);
351
+ /** Text alignment in the wide layout; unset inherits. */
352
+ get bottomTextAlign(): FooterTextAlign | undefined;
353
+ set bottomTextAlign(value: FooterTextAlign | undefined);
354
+ /** Text alignment in the wrapped layout; unset inherits. */
355
+ get bottomTextAlignWrapped(): FooterTextAlign | undefined;
356
+ set bottomTextAlignWrapped(value: FooterTextAlign | undefined);
357
+ /** Text alignment in the stacked layout; unset inherits. */
358
+ get bottomTextAlignStacked(): FooterTextAlign | undefined;
359
+ set bottomTextAlignStacked(value: FooterTextAlign | undefined);
360
+ /** Configured logo box sizing. Fixed preserves its scaled height; natural fits its constrained artwork ratio.
361
+ * @default fixed
362
+ */
363
+ get brandLogoSizing(): FooterLogoSizing;
364
+ set brandLogoSizing(value: FooterLogoSizing);
228
365
  /** Configured brand text used when the `brand` slot is empty. */
229
366
  brandText: string;
230
367
  /** Configured brand logo URL used when the `brand` slot is empty. */
@@ -286,4 +423,7 @@ declare global {
286
423
  interface HTMLElementTagNameMap {
287
424
  "esp-footer": EspalierFooter;
288
425
  }
426
+ interface HTMLElementEventMap {
427
+ "esp-layout-changed": CustomEvent<FooterLayoutChangedDetail>;
428
+ }
289
429
  }