@taprootio/espalier 2.3.0 → 2.4.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.
- package/CHANGELOG.md +30 -0
- package/custom-elements.json +7707 -5044
- package/dist/breadcrumbs/esp-breadcrumbs.d.ts +1 -1
- package/dist/breadcrumbs/esp-breadcrumbs.js +6 -9
- package/dist/button/action-state-lightness.js +1 -0
- package/dist/button/esp-button.js +22 -10
- package/dist/data-cell/esp-data-cell.js +1 -1
- package/dist/footer/esp-footer-link-group.d.ts +40 -0
- package/dist/footer/esp-footer-link-group.js +57 -0
- package/dist/footer/esp-footer.d.ts +186 -0
- package/dist/footer/esp-footer.js +300 -0
- package/dist/footer/index.d.ts +2 -0
- package/dist/footer/index.js +1 -0
- package/dist/header/esp-header.js +10 -11
- package/dist/image/esp-image.js +8 -8
- package/dist/image/image-dimensions.js +1 -0
- package/dist/image-upload/esp-image-upload.js +20 -22
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/lightbox/esp-lightbox.d.ts +4 -3
- package/dist/lightbox/esp-lightbox.js +250 -235
- package/dist/menu/esp-menu.d.ts +14 -1
- package/dist/menu/esp-menu.js +3 -4
- package/dist/page/esp-page.d.ts +9 -6
- package/dist/page/esp-page.js +33 -11
- package/dist/progress/esp-progress.d.ts +2 -1
- package/dist/progress/esp-progress.js +13 -7
- package/dist/shared/configured-brand.js +4 -0
- package/dist/shared/slot-content.js +1 -0
- package/dist/slider/esp-slider.js +2 -2
- package/espalier.token-manifest.json +146 -2
- package/package.json +10 -1
package/dist/menu/esp-menu.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var n=function(
|
|
1
|
+
var n=function(d,e,r,o){var t=arguments.length,i=t<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(d,e,r,o);else for(var h=d.length-1;h>=0;h--)(s=d[h])&&(i=(t<3?s(i):t>3?s(e,r,i):s(e,r))||i);return t>3&&i&&Object.defineProperty(e,r,i),i};import{css as x,html as w,nothing as f}from"lit";import{customElement as E,property as l,state as g}from"lit/decorators.js";import{classMap as m}from"lit/directives/class-map.js";import{unsafeHTML as v}from"lit/directives/unsafe-html.js";import{createRef as p,ref as c}from"lit/directives/ref.js";import{EspalierElementBase as b}from"../shared/esp-element-base.js";import{getEspBus as D}from"../shared/bus-events.js";import{normalizePath as S,pathStartsWithSegment as y,pathsMatch as T}from"../shared/path-matching.js";import{SwipeRevealController as A}from"./swipe-reveal-controller.js";import"./esp-menu-item.js";import"./esp-menu-group.js";import{EspalierMenuItem as C}from"./esp-menu-item.js";import{EspalierMenuGroup as u}from"./esp-menu-group.js";const O="(max-width: 50em)";let a=class extends b{constructor(){super(),this.itemsSlot=p(),this.railRef=p(),this.scrimRef=p(),this.drawerRef=p(),this.bus=D(),this.closeTransitionTimer=null,this.drawerGroupOpenOverrides=new Map,this._sliding=!1,this._mobileCollapsed=!1,this.verticalDrawerQuery=null,this.onVerticalDrawerChange=e=>this.setMobileCollapsed(e.matches),this.mode="horizontal",this.overflow="auto",this.side="left",this.ariaLabel=null,this.autoExpand=!1,this.drawerOpen=!1,this.drawerTransitioning=!1,this.drawerTrigger=null,this.hasExternalDrawerControl=!1,this.getWidth=()=>{const e=this.railRef.value;return e?Math.max(e.scrollWidth,e.clientWidth):-1},this.onDrawerTransitionEnd=()=>{this.closeTransitionTimer&&(clearTimeout(this.closeTransitionTimer),this.closeTransitionTimer=null),this.drawerTransitioning=!1,this.drawerOpen||(this.hideDrawerPopover(),this.drawerGroupOpenOverrides.clear())},this.swipeController=new A(this,this.side),this.swipeController.enabled=!1}get sliding(){return this._sliding}set sliding(e){const r=this._sliding;this._sliding=e,this.syncSwipeEnabled(),this.propagateToItems(),this.requestUpdate("sliding",r)}get collapsed(){return this.drawerActive}set collapsed(e){e?this.mode="drawer":this.mode==="drawer"&&(this.mode="vertical")}get drawerSide(){return this.overflow==="right-drawer"?"right":this.overflow==="left-drawer"?"left":this.side}get drawerActive(){return this.mode==="drawer"||this._sliding||this.overflow==="left-drawer"||this.overflow==="right-drawer"||this.mode==="vertical"&&this._mobileCollapsed&&this.hasExternalDrawerControl}get railMode(){return this.mode==="horizontal"?"horizontal":"vertical"}connectedCallback(){super.connectedCallback(),this.getAttribute("slot")==="right"&&(this.side="right"),!this.verticalDrawerQuery&&typeof window<"u"&&"matchMedia"in window&&(this.verticalDrawerQuery=window.matchMedia(O),this._mobileCollapsed=this.verticalDrawerQuery.matches,this.verticalDrawerQuery.addEventListener("change",this.onVerticalDrawerChange)),this.syncSwipeEnabled()}disconnectedCallback(){this.verticalDrawerQuery?.removeEventListener("change",this.onVerticalDrawerChange),this.verticalDrawerQuery=null,super.disconnectedCallback()}setMobileCollapsed(e){e!==this._mobileCollapsed&&(this._mobileCollapsed=e,this.mode==="vertical"&&this.applyMobileCollapse())}applyMobileCollapse(){this.swipeController.direction=this.drawerSide,this.syncSwipeEnabled(),this.propagateToItems(),this.requestUpdate(),!this.drawerActive&&this.drawerOpen&&this.swipeController.close(!0)}firstUpdated(e){super.firstUpdated(e),this.propagateToItems()}updated(e){super.updated(e),(e.has("mode")||e.has("overflow")||e.has("side")||e.has("hasExternalDrawerControl"))&&(this.swipeController.direction=this.drawerSide,this.syncSwipeEnabled(),this.propagateToItems(),!this.drawerActive&&this.drawerOpen&&this.swipeController.close(!0)),this.autoExpand&&(e.has("autoExpand")||e.has("mode")&&this.mode!=="horizontal")?this.expandToCurrentPage():this.mode==="horizontal"&&e.has("mode")&&this.closeHorizontalTopLevelGroups()}openDrawer(e){this.drawerActive&&(e?this.drawerTrigger=e:this.drawerOpen||(this.drawerTrigger=null),this.swipeController.open())}closeDrawer(){this.swipeController.close(!0)}toggleDrawer(e){this.drawerOpen?this.closeDrawer():this.openDrawer(e)}toggleOpened(){this.toggleDrawer()}get isDrawerOpen(){return this.drawerOpen}syncSwipeEnabled(){this.swipeController.direction=this.drawerSide,this.swipeController.enabled=this.drawerActive}getAssignedChildren(){return this.itemsSlot.value?.assignedElements()??[]}propagateToItems(){const e=this.railMode;for(const r of this.getAssignedChildren())r instanceof C?(r.mode=e,r.depth=0,r.touchDevice=this.swipeController.isTouch):r instanceof u&&(r.mode=e,r.depth=0,r.touchDevice=this.swipeController.isTouch)}handleSlotChange(){this.propagateToItems()}onSwipeRevealChanged(e){e!==this.drawerOpen&&(this.drawerOpen=e,e?(this.drawerGroupOpenOverrides.clear(),this.bus.publish("close-popovers",{}),this.updateComplete.then(()=>this.showDrawerPopover())):(this.drawerTransitioning=!0,this.updateComplete.then(()=>this.startCloseTransition()),requestAnimationFrame(()=>this.restoreDrawerTriggerFocus())),this.dispatchEvent(new CustomEvent(e?"drawer-opened":"drawer-closed",{bubbles:!0,composed:!0})))}showDrawerPopover(){const e=this.scrimRef.value,r=this.drawerRef.value;if(!(!e||!r)){this.swipeController.drawerElement=r;try{e.showPopover(),r.showPopover()}catch{}r.getBoundingClientRect(),requestAnimationFrame(()=>{this.drawerTransitioning=!0,this.requestUpdate()})}}startCloseTransition(){if(!this.drawerRef.value){this.hideDrawerPopover();return}this.closeTransitionTimer&&clearTimeout(this.closeTransitionTimer),this.closeTransitionTimer=setTimeout(()=>{this.closeTransitionTimer=null,!this.drawerOpen&&this.drawerTransitioning&&this.onDrawerTransitionEnd()},400)}hideDrawerPopover(){const e=this.scrimRef.value,r=this.drawerRef.value;this.swipeController.drawerElement=null,r&&(r.style.cssText="");try{r?.hidePopover()}catch{}try{e?.hidePopover()}catch{}}restoreDrawerTriggerFocus(){const e=this.drawerTrigger;this.drawerTrigger=null,e?.isConnected&&e.focus({preventScroll:!0})}getAutoExpandedGroups(e=!0){const r=new Set;let o=null;for(const i of this.querySelectorAll("esp-menu-item")){const s=i.url||i.getAttribute("url");if(s&&T(s)){o=i;break}}if(!o)for(const i of this.querySelectorAll("esp-menu-group")){const s=i.url||i.getAttribute("url");if(s&&T(s)){o=i;break}}if(!o&&e){for(const i of this.querySelectorAll("esp-menu-group"))i.parentElement===this&&r.add(i);return r}if(!o)return r;o instanceof u&&r.add(o);let t=o.parentElement;for(;t&&t!==this;)t instanceof u&&r.add(t),t=t.parentElement;return r}isHorizontalTopLevelGroup(e){return e.mode==="horizontal"&&e.depth===0}groupUrlPrefixMatches(e){return y(location.pathname,e.urlPrefix)}groupPathMatches(e){if(this.groupUrlPrefixMatches(e))return!0;const r=e.url||e.getAttribute("url");return r?y(location.pathname,S(r)):!1}expandToCurrentPage(){const e=this.getAutoExpandedGroups(),r=this.querySelectorAll("esp-menu-group");for(const o of r)o.open=e.has(o)&&!this.isHorizontalTopLevelGroup(o)}closeHorizontalTopLevelGroups(){for(const e of this.querySelectorAll("esp-menu-group"))this.isHorizontalTopLevelGroup(e)&&(e.open=!1)}getDrawerAutoExpandedGroups(){return this.getAutoExpandedGroups(!1)}collectDrawerNodes(e,r=this.getDrawerAutoExpandedGroups()){const o=[];for(const t of e)if(t instanceof C){const i=t.querySelector(":scope > svg, :scope > img");o.push({kind:"item",label:t.label,url:t.url,open:!1,icon:t.icon,iconHtml:i?.outerHTML||"",children:[],originalItem:t,originalGroup:null})}else if(t instanceof u){const i=t.querySelector(':scope > [slot="icon"]'),s=r.has(t)||this.groupPathMatches(t),h=this.drawerGroupOpenOverrides.get(t)??(t.open||s);o.push({kind:"group",label:t.label,url:t.url||"",open:h,icon:t.icon,iconHtml:i?.outerHTML||"",children:this.collectDrawerNodes(Array.from(t.children),r),originalItem:null,originalGroup:t})}return o}renderDrawerNode(e){return e.kind==="item"?w`<esp-menu-item
|
|
2
2
|
label=${e.label}
|
|
3
3
|
.url=${e.url}
|
|
4
4
|
.icon=${e.icon}
|
|
@@ -79,9 +79,8 @@ var n=function(p,e,r,o){var t=arguments.length,i=t<3?e:o===null?o=Object.getOwnP
|
|
|
79
79
|
display: flex;
|
|
80
80
|
flex-direction: column;
|
|
81
81
|
width: min-content;
|
|
82
|
-
|
|
83
|
-
overflow-y:
|
|
84
|
-
scrollbar-width: thin;
|
|
82
|
+
|
|
83
|
+
overflow-y: visible;
|
|
85
84
|
background-color: var(--esp-menu-background, var(--esp-color-layer-1));
|
|
86
85
|
border-bottom: 1px solid var(--esp-menu-border-color, var(--esp-color-border));
|
|
87
86
|
box-shadow: 2px 0 6px -2px var(--esp-color-shadow);
|
package/dist/page/esp-page.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ type HeaderPosition = "normal" | "sticky" | "fixed";
|
|
|
25
25
|
* </esp-header>
|
|
26
26
|
* <esp-menu slot="sidebar" mode="drawer"></esp-menu>
|
|
27
27
|
* <div slot="right" style="background-color: purple;">right</div>
|
|
28
|
-
* <
|
|
28
|
+
* <esp-footer slot="footer" brand-text="Espalier"></esp-footer>
|
|
29
29
|
* <div style="background-color: black; overflow: hidden;">
|
|
30
30
|
* content
|
|
31
31
|
* </div>
|
|
@@ -43,7 +43,9 @@ type HeaderPosition = "normal" | "sticky" | "fixed";
|
|
|
43
43
|
* The persistent `right` aside and the transient flyout are
|
|
44
44
|
* complementary, not alternatives. A flyout opened with an `anchor`
|
|
45
45
|
* aligns to that trigger and stays in the same document scroll flow.
|
|
46
|
-
* @slot footer - Content to place in the footer.
|
|
46
|
+
* @slot footer - Content to place in the footer. Slot `esp-footer` directly
|
|
47
|
+
* to receive the page's surface-alignment custom-property contract. A wrapper
|
|
48
|
+
* can preserve landmark semantics but does not receive that direct contract.
|
|
47
49
|
* @slot - The main page content. The main content region applies
|
|
48
50
|
* `contain: inline-size` so child components cannot push the
|
|
49
51
|
* content well wider than its grid column. In `narrow` mode,
|
|
@@ -65,7 +67,7 @@ type HeaderPosition = "normal" | "sticky" | "fixed";
|
|
|
65
67
|
* </esp-menu>
|
|
66
68
|
* <esp-header-button slot="buttons" icon="cog" aria-label="Settings"></esp-header-button>
|
|
67
69
|
* </esp-header>
|
|
68
|
-
* <
|
|
70
|
+
* <esp-footer slot="footer" brand-text="Espalier"></esp-footer>
|
|
69
71
|
* <section style="overflow: hidden;">
|
|
70
72
|
* <h2>Long content</h2>
|
|
71
73
|
* <p populate-from="longParagraph"></p>
|
|
@@ -98,7 +100,7 @@ type HeaderPosition = "normal" | "sticky" | "fixed";
|
|
|
98
100
|
* <div slot="header" style="background-color: red;">header</div>
|
|
99
101
|
* <div slot="sidebar" style="background-color: green;">sidebar</div>
|
|
100
102
|
* <div slot="right" style="background-color: purple;">right</div>
|
|
101
|
-
* <
|
|
103
|
+
* <esp-footer slot="footer" brand-text="Espalier"></esp-footer>
|
|
102
104
|
* <div style="background-color: black; overflow: hidden;">
|
|
103
105
|
* content
|
|
104
106
|
* </div>
|
|
@@ -162,7 +164,7 @@ type HeaderPosition = "normal" | "sticky" | "fixed";
|
|
|
162
164
|
* <div slot="header" style="background-color: red;">header</div>
|
|
163
165
|
* <div slot="sidebar" style="background-color: green;">sidebar</div>
|
|
164
166
|
* <div slot="right" style="background-color: purple;">right</div>
|
|
165
|
-
* <
|
|
167
|
+
* <esp-footer slot="footer" brand-text="Espalier"></esp-footer>
|
|
166
168
|
* <div style="overflow: hidden;">
|
|
167
169
|
* <h2>With background image</h2>
|
|
168
170
|
* </div>
|
|
@@ -185,7 +187,7 @@ type HeaderPosition = "normal" | "sticky" | "fixed";
|
|
|
185
187
|
* <div slot="header" style="background-color: red;">header</div>
|
|
186
188
|
* <div slot="sidebar" style="background-color: green;">sidebar</div>
|
|
187
189
|
* <div slot="right" style="background-color: purple;">right</div>
|
|
188
|
-
* <
|
|
190
|
+
* <esp-footer slot="footer" brand-text="Espalier"></esp-footer>
|
|
189
191
|
* <div style="background-color: black; overflow: hidden;">
|
|
190
192
|
* content
|
|
191
193
|
* </div>
|
|
@@ -202,6 +204,7 @@ type HeaderPosition = "normal" | "sticky" | "fixed";
|
|
|
202
204
|
*/
|
|
203
205
|
export declare class EspalierPage extends EspalierElementBase {
|
|
204
206
|
constructor();
|
|
207
|
+
connectedCallback(): void;
|
|
205
208
|
/**
|
|
206
209
|
* The layout mode of the page.
|
|
207
210
|
*
|
package/dist/page/esp-page.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
<div part="wrapper" class="esp-page ${
|
|
1
|
+
var i=function(h,e,a,s){var d=arguments.length,o=d<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,a):s,t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(h,e,a,s);else for(var n=h.length-1;n>=0;n--)(t=h[n])&&(o=(d<3?t(o):d>3?t(e,a,o):t(e,a))||o);return d>3&&o&&Object.defineProperty(e,a,o),o};import{css as m,html as v,nothing as y}from"lit";import{customElement as w,property as l,state as b}from"lit/decorators.js";import{classMap as k}from"lit/directives/class-map.js";import{createRef as p,ref as c}from"lit/directives/ref.js";import{EspalierElementBase as g}from"../shared/esp-element-base.js";import{BiDirectionalStickyController as u}from"./bi-directional-sticky-controller.js";import{getEspBus as x}from"../shared/bus-events.js";import"../toaster/esp-toaster.js";const f='esp-footer, footer, [role~="contentinfo"]';let r=class extends g{constructor(){super(),this.dialogZone=p(),this.flyoutSlot=p(),this.footerSlot=p(),this.footerWrapperIsLandmark=!0,this.kind="wide",this.align="start",this.contained=!1,this.headerPosition="normal",this.fixedMenus=!1,new u(this,".esp-page-left > .sticky-wrapper"),new u(this,".esp-page-right > .sticky-wrapper"),new u(this,".esp-page-flyout > .sticky-wrapper"),this.addEventListener("flyout-state-changed",e=>this.syncFlyoutState(e))}connectedCallback(){const e=Array.from(this.children).filter(a=>a.getAttribute("slot")==="footer");this.footerWrapperIsLandmark=!e.some(a=>this.footerElementProvidesLandmark(a)),super.connectedCallback()}syncFlyoutState(e){if(e&&e.target?.closest?.("esp-page")!==this)return;const a=t=>{const n=t.mode;return(typeof n=="string"?n:t.getAttribute("mode"))==="overlay"},s=t=>{const n=t.open;return typeof n=="boolean"?n:t.hasAttribute("open")},d=t=>t.anchor!=null,o=(this.flyoutSlot.value?.assignedElements()??[]).filter(t=>t.tagName==="ESP-FLYOUT");this.toggleAttribute("flyout-open",o.some(t=>s(t)&&!a(t))),this.toggleAttribute("flyout-overlay-open",o.some(t=>s(t)&&a(t))),this.toggleAttribute("flyout-anchored",o.some(t=>s(t)&&d(t)))}footerElementProvidesLandmark(e){return e.matches(f)||e.querySelector(f)!==null}syncFooterLandmark(){const a=(this.footerSlot.value?.assignedElements({flatten:!0})??[]).some(s=>this.footerElementProvidesLandmark(s));this.footerWrapperIsLandmark=!a}AddDialog(e){this.dialogZone.value?.appendChild(e)}firstUpdated(e){super.firstUpdated(e),this.syncFlyoutState()}updated(e){super.updated(e),(e.has("fixedMenus")||e.has("headerPosition"))&&x().publish("fixed-menus-changed",{fixed:this.fixedMenus||this.headerPosition==="fixed"})}render(){const e=this.fixedMenus||this.headerPosition==="fixed",a=!e&&this.headerPosition==="sticky";return v`
|
|
2
|
+
<div part="wrapper" class="esp-page ${k({"fixed-menus":e,"fixed-header":e,"sticky-header":a})}">
|
|
3
3
|
<div part="canvas" class="esp-page-canvas esp-page-canvas--left" aria-hidden="true"></div>
|
|
4
4
|
<div part="canvas" class="esp-page-canvas esp-page-canvas--right" aria-hidden="true"></div>
|
|
5
5
|
<div part="surface" class="esp-page-surface" aria-hidden="true"></div>
|
|
@@ -23,18 +23,18 @@ var d=function(h,e,s,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnP
|
|
|
23
23
|
<div class="sticky-wrapper">
|
|
24
24
|
<slot
|
|
25
25
|
name="flyout"
|
|
26
|
-
${
|
|
26
|
+
${c(this.flyoutSlot)}
|
|
27
27
|
@slotchange=${()=>this.syncFlyoutState()}
|
|
28
28
|
></slot>
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
|
-
<footer>
|
|
32
|
-
<slot name="footer"></slot>
|
|
33
|
-
</
|
|
34
|
-
<div id="dialog-drop-zone" ${
|
|
31
|
+
<div class="esp-page-footer" role=${this.footerWrapperIsLandmark?"contentinfo":y}>
|
|
32
|
+
<slot name="footer" ${c(this.footerSlot)} @slotchange=${this.syncFooterLandmark}></slot>
|
|
33
|
+
</div>
|
|
34
|
+
<div id="dialog-drop-zone" ${c(this.dialogZone)}></div>
|
|
35
35
|
<esp-toaster></esp-toaster>
|
|
36
36
|
</div>
|
|
37
|
-
`}};
|
|
37
|
+
`}};r.styles=[...g.styles,m`
|
|
38
38
|
:host {
|
|
39
39
|
--_esp-page-resolved-max-width: var(--esp-page-max-width, 1536px);
|
|
40
40
|
|
|
@@ -130,8 +130,26 @@ var d=function(h,e,s,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnP
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
|
|
133
|
+
slot[name="footer"]::slotted(esp-footer) {
|
|
134
|
+
--esp-footer-content-max-width: var(--_esp-page-resolved-max-width);
|
|
135
|
+
--esp-footer-content-lead: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:host([align="center"]) slot[name="footer"]::slotted(esp-footer) {
|
|
139
|
+
--esp-footer-content-lead: 0.5;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host([align="end"]) slot[name="footer"]::slotted(esp-footer) {
|
|
143
|
+
--esp-footer-content-lead: 1;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host([kind="full"]) slot[name="footer"]::slotted(esp-footer) {
|
|
147
|
+
--esp-footer-content-max-width: 100%;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
133
151
|
:host([contained]) .esp-page > div.esp-page-top,
|
|
134
|
-
:host([contained]) .esp-page > footer {
|
|
152
|
+
:host([contained]) .esp-page > div.esp-page-footer {
|
|
135
153
|
grid-column: surface;
|
|
136
154
|
}
|
|
137
155
|
|
|
@@ -141,6 +159,10 @@ var d=function(h,e,s,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnP
|
|
|
141
159
|
--esp-header-shadow: none;
|
|
142
160
|
}
|
|
143
161
|
|
|
162
|
+
:host([contained]) slot[name="footer"]::slotted(esp-footer) {
|
|
163
|
+
--esp-footer-content-max-width: 100%;
|
|
164
|
+
}
|
|
165
|
+
|
|
144
166
|
:host([kind="narrow"]) .esp-page > div.esp-page-main {
|
|
145
167
|
|
|
146
168
|
> ::slotted(*) {
|
|
@@ -297,7 +319,7 @@ var d=function(h,e,s,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnP
|
|
|
297
319
|
top: 0;
|
|
298
320
|
}
|
|
299
321
|
|
|
300
|
-
> footer {
|
|
322
|
+
> div.esp-page-footer {
|
|
301
323
|
grid-column: full;
|
|
302
324
|
grid-row: footer;
|
|
303
325
|
z-index: 10;
|
|
@@ -372,4 +394,4 @@ var d=function(h,e,s,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnP
|
|
|
372
394
|
transition: none;
|
|
373
395
|
}
|
|
374
396
|
}
|
|
375
|
-
`],
|
|
397
|
+
`],i([b()],r.prototype,"footerWrapperIsLandmark",void 0),i([l({reflect:!0})],r.prototype,"kind",void 0),i([l({reflect:!0})],r.prototype,"align",void 0),i([l({type:Boolean,reflect:!0})],r.prototype,"contained",void 0),i([l({attribute:"header-position",reflect:!0})],r.prototype,"headerPosition",void 0),i([l({attribute:"fixed-menus",type:Boolean,reflect:!0})],r.prototype,"fixedMenus",void 0),r=i([w("esp-page")],r);export{r as EspalierPage};
|
|
@@ -172,7 +172,8 @@ import { EspalierElementBase } from "../shared/esp-element-base.js";
|
|
|
172
172
|
* progress ring in circle mode. Automatically set by the `size`
|
|
173
173
|
* attribute.
|
|
174
174
|
* @cssprop --esp-progress-fill-color - Color of the progress fill.
|
|
175
|
-
* Defaults to
|
|
175
|
+
* Defaults to the active action hue at the semantic muted lightness so the
|
|
176
|
+
* filled and unfilled portions remain distinguishable in light and dark themes.
|
|
176
177
|
* @cssprop --esp-progress-font-size - Font size for the value
|
|
177
178
|
* text. Defaults to `var(--esp-type-small)`.
|
|
178
179
|
* @cssprop --esp-progress-height - Height of the progress bar track.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var a=function(n,e,s,t){var o=arguments.length,i=o<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,s,t);else for(var h=n.length-1;h>=0;h--)(c=n[h])&&(i=(o<3?c(i):o>3?c(e,s,i):c(e,s))||i);return o>3&&i&&Object.defineProperty(e,s,i),i};import{css as x,html as m,nothing as p,svg as
|
|
1
|
+
var a=function(n,e,s,t){var o=arguments.length,i=o<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,s,t);else for(var h=n.length-1;h>=0;h--)(c=n[h])&&(i=(o<3?c(i):o>3?c(e,s,i):c(e,s))||i);return o>3&&i&&Object.defineProperty(e,s,i),i};import{css as x,html as m,nothing as p,svg as f}from"lit";import{customElement as y,property as l}from"lit/decorators.js";import{classMap as g}from"lit/directives/class-map.js";import{styleMap as b}from"lit/directives/style-map.js";import{EspalierElementBase as u}from"../shared/esp-element-base.js";const v=15.9155,d=2*Math.PI*v;let r=class extends u{constructor(){super(...arguments),this.value=null,this.max=100,this.label="",this.showValue=!1,this.size="medium",this.mode="bar"}get isIndeterminate(){return this.value===null||this.value===void 0}get clampedValue(){if(this.isIndeterminate)return 0;const e=Math.max(this.max,0);return Math.min(Math.max(this.value,0),e)}get percentage(){return this.isIndeterminate||this.max<=0?0:this.clampedValue/this.max*100}render(){return this.mode==="circle"?this.renderCircle():this.renderBar()}renderBar(){const e=this.isIndeterminate,s={track:!0,indeterminate:e},t=e?{}:{width:`${this.percentage}%`},o=this.showValue&&!e;return m`
|
|
2
2
|
<div
|
|
3
|
-
class=${
|
|
3
|
+
class=${g(s)}
|
|
4
4
|
role="progressbar"
|
|
5
5
|
aria-label=${this.label}
|
|
6
6
|
aria-valuemin="0"
|
|
@@ -11,7 +11,7 @@ var a=function(n,e,s,t){var o=arguments.length,i=o<3?e:t===null?t=Object.getOwnP
|
|
|
11
11
|
</div>
|
|
12
12
|
${o?m`<div class="value-text">${Math.round(this.percentage)}%</div>`:p}
|
|
13
13
|
`}renderCircle(){const e=this.isIndeterminate,s=e?d*.75:d-this.percentage/100*d,t=this.showValue&&!e;return m`
|
|
14
|
-
<div class=${
|
|
14
|
+
<div class=${g({"circle-container":!0,indeterminate:e})}>
|
|
15
15
|
<svg
|
|
16
16
|
viewBox="0 0 36 36"
|
|
17
17
|
class="circle-svg"
|
|
@@ -21,7 +21,7 @@ var a=function(n,e,s,t){var o=arguments.length,i=o<3?e:t===null?t=Object.getOwnP
|
|
|
21
21
|
aria-valuemax=${this.max}
|
|
22
22
|
aria-valuenow=${e?p:this.clampedValue}
|
|
23
23
|
>
|
|
24
|
-
${
|
|
24
|
+
${f`
|
|
25
25
|
<circle
|
|
26
26
|
class="circle-track"
|
|
27
27
|
cx="18" cy="18" r="${v}"
|
|
@@ -37,7 +37,7 @@ var a=function(n,e,s,t){var o=arguments.length,i=o<3?e:t===null?t=Object.getOwnP
|
|
|
37
37
|
stroke-dashoffset="${s}"
|
|
38
38
|
stroke-linecap="round"
|
|
39
39
|
/>
|
|
40
|
-
`} ${t?
|
|
40
|
+
`} ${t?f`
|
|
41
41
|
<text
|
|
42
42
|
x="18" y="18"
|
|
43
43
|
class="circle-text"
|
|
@@ -83,7 +83,10 @@ var a=function(n,e,s,t){var o=arguments.length,i=o<3?e:t===null?t=Object.getOwnP
|
|
|
83
83
|
|
|
84
84
|
.fill {
|
|
85
85
|
height: 100%;
|
|
86
|
-
background: var(
|
|
86
|
+
background: var(
|
|
87
|
+
--esp-progress-fill-color,
|
|
88
|
+
oklch(from var(--esp-color-action-background) var(--esp-l-muted) c h)
|
|
89
|
+
);
|
|
87
90
|
transition: width 0.3s ease;
|
|
88
91
|
min-width: 0;
|
|
89
92
|
}
|
|
@@ -132,7 +135,10 @@ var a=function(n,e,s,t){var o=arguments.length,i=o<3?e:t===null?t=Object.getOwnP
|
|
|
132
135
|
}
|
|
133
136
|
|
|
134
137
|
.circle-fill {
|
|
135
|
-
stroke: var(
|
|
138
|
+
stroke: var(
|
|
139
|
+
--esp-progress-fill-color,
|
|
140
|
+
oklch(from var(--esp-color-action-background) var(--esp-l-muted) c h)
|
|
141
|
+
);
|
|
136
142
|
transform: rotate(-90deg);
|
|
137
143
|
transform-origin: 50% 50%;
|
|
138
144
|
transition: stroke-dashoffset 0.3s ease;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{html as n,nothing as t}from"lit";function e({brandLogo:s,brandText:o,brandHref:l,brandAlt:c}){if(!s&&!o)return t;const r=n`
|
|
2
|
+
${s?n`<img class="brand-logo" src=${s} alt=${c||(o?"":"Site logo")} />`:t}
|
|
3
|
+
${o?n`<span class="brand-text">${o}</span>`:t}
|
|
4
|
+
`;return l?n`<a class="configured-brand" href=${l}>${r}</a>`:n`<span class="configured-brand">${r}</span>`}export{e as renderConfiguredBrand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function o(t){return t?.assignedNodes({flatten:!0}).some(e=>e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&!!e.textContent?.trim())??!1}export{o as slotHasContent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var o=function(d,t,e,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(d,t,e,i);else for(var h=d.length-1;h>=0;h--)(l=d[h])&&(r=(a<3?l(r):a>3?l(t,e,r):l(t,e))||r);return a>3&&r&&Object.defineProperty(t,e,r),r},p;import{css as v,html as c}from"lit";import{customElement as y,property as n,state as f}from"lit/decorators.js";import{createRef as m,ref as u}from"lit/directives/ref.js";import{classMap as w}from"lit/directives/class-map.js";import{styleMap as _}from"lit/directives/style-map.js";import{ifDefined as g}from"lit/directives/if-defined.js";import{EspalierElementBase as b}from"../shared/esp-element-base.js";import{FormFieldController as S}from"../shared/form-field-controller.js";import{FormFieldDescriptionController as
|
|
1
|
+
var o=function(d,t,e,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(d,t,e,i);else for(var h=d.length-1;h>=0;h--)(l=d[h])&&(r=(a<3?l(r):a>3?l(t,e,r):l(t,e))||r);return a>3&&r&&Object.defineProperty(t,e,r),r},p;import{css as v,html as c}from"lit";import{customElement as y,property as n,state as f}from"lit/decorators.js";import{createRef as m,ref as u}from"lit/directives/ref.js";import{classMap as w}from"lit/directives/class-map.js";import{styleMap as _}from"lit/directives/style-map.js";import{ifDefined as g}from"lit/directives/if-defined.js";import{EspalierElementBase as b}from"../shared/esp-element-base.js";import{FormFieldController as S}from"../shared/form-field-controller.js";import{FormFieldDescriptionController as k}from"../shared/form-field-description-controller.js";import{disabledControl as x,focusRing as C}from"../shared/style-fragments.js";import{slotHasContent as $}from"../shared/slot-content.js";let s=p=class extends b{constructor(){super(...arguments),this.internals=this.attachInternals(),this.formCtrl=new S({host:this,internals:this.internals,getFormValue:()=>this.value||null,getValidity:()=>null,onReset:()=>{this.value=String(this._low)},onRestore:t=>{this.value=t},onDisabled:t=>{this.disabled=t}}),this.formItemDescription=new k({host:this,getTarget:()=>this._thumbRef.value}),this.min=0,this.max=100,this.step=1,this.value="0",this.name="",this.disabled=!1,this.label="",this._dragging=!1,this._hasSlotContent=!1,this._trackRef=m(),this._thumbRef=m(),this._slotRef=m(),this._labelId=`esp-slider-label-${p._nextId++}`}get _safeStep(){return Number.isFinite(this.step)&&this.step>0?this.step:1}get _safeMin(){return Number.isFinite(this.min)?this.min:0}get _safeMax(){return Number.isFinite(this.max)?this.max:100}get _stepPrecision(){const t=String(this._safeStep),e=/^(\d+\.?(\d*))e-(\d+)$/.exec(t);if(e){const a=e[2].length,r=Number(e[3]);return a+r}const i=t.indexOf(".");return i===-1?0:t.length-i-1}get _low(){return Math.min(this._safeMin,this._safeMax)}get _high(){return Math.max(this._safeMin,this._safeMax)}_snapToStep(t){const e=this._safeStep,i=this._low,a=this._high,r=Math.round((t-i)/e)*e+i,l=Math.max(i,Math.min(a,r)),h=10**this._stepPrecision;return Math.round(l*h)/h}get numericValue(){const t=Number(this.value);return Number.isNaN(t)?this._snapToStep(this._low):this._snapToStep(t)}get percentage(){const t=this._high-this._low;return t<=0?0:(this.numericValue-this._low)/t*100}_normalizeValue(){const t=String(this.numericValue);t!==this.value&&(this.value=t),this.formCtrl.syncValueSilently()}willUpdate(t){super.willUpdate(t),(t.has("value")||t.has("min")||t.has("max")||t.has("step"))&&this._normalizeValue()}firstUpdated(t){super.firstUpdated(t),this._syncSlotContent()}focus(t){this.focusResolvedElementAfterUpdate(()=>this._thumbRef.value,t)}setFormItemDescription(t){this.formItemDescription.setDescription(t)}validate(){this.formCtrl.validate()}checkValidity(){return this.formCtrl.checkValidity()}_setValueAndNotify(t){const e=String(this._snapToStep(t));e!==this.value&&(this.value=e,this.formCtrl.syncValue(),this.emitValueChanged(e))}_handleKeyDown(t){if(this.disabled)return;const e=this._safeStep;let i=0;switch(t.key){case"ArrowRight":case"ArrowUp":i=e;break;case"ArrowLeft":case"ArrowDown":i=-e;break;case"Home":this._setValueAndNotify(this._low),t.preventDefault();return;case"End":this._setValueAndNotify(this._high),t.preventDefault();return;case"PageUp":i=e*10;break;case"PageDown":i=-e*10;break;default:return}t.preventDefault(),this._setValueAndNotify(this.numericValue+i)}_handlePointerDown(t){if(this.disabled)return;const e=this._thumbRef.value,i=this._trackRef.value;if(!e||!i)return;const a=t.composedPath().includes(e);t.pointerType==="touch"&&!a||(t.preventDefault(),this._dragging=!0,e.setPointerCapture(t.pointerId),e.focus({preventScroll:!0}),this._updateValueFromPointer(t))}_handlePointerMove(t){this._dragging&&this._updateValueFromPointer(t)}_handlePointerUp(){this._endDrag()}_handleLostPointerCapture(){this._endDrag()}_endDrag(){this._dragging&&(this._dragging=!1)}_updateValueFromPointer(t){const e=this._trackRef.value;if(!e)return;const i=e.getBoundingClientRect();if(i.width<=0)return;const a=Math.max(0,Math.min(1,(t.clientX-i.left)/i.width)),r=this._low+a*(this._high-this._low);this._setValueAndNotify(r)}_handleSlotChange(){this._syncSlotContent()}_syncSlotContent(){const t=this._slotRef.value;t&&(this._hasSlotContent=$(t))}formResetCallback(){this.formCtrl.handleFormReset()}formStateRestoreCallback(t){this.formCtrl.handleFormStateRestore(t)}formDisabledCallback(t){this.formCtrl.handleFormDisabled(t)}render(){const t=this.percentage,e=this._hasSlotContent?this._labelId:void 0,i=this._hasSlotContent?void 0:this.label||void 0;return c`
|
|
2
2
|
<div
|
|
3
3
|
class=${w({"slider-container":!0,dragging:this._dragging})}
|
|
4
4
|
@pointerdown=${this._handlePointerDown}
|
|
@@ -29,7 +29,7 @@ var o=function(d,t,e,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnP
|
|
|
29
29
|
${this._hasSlotContent?c`<span class="label" id=${this._labelId}>
|
|
30
30
|
<slot ${u(this._slotRef)} @slotchange=${this._handleSlotChange}></slot>
|
|
31
31
|
</span>`:c`<slot ${u(this._slotRef)} @slotchange=${this._handleSlotChange} hidden></slot>`}
|
|
32
|
-
`}};s.formAssociated=!0,s._nextId=0,s.styles=[...b.styles,C(".thumb:focus-visible","--esp-slider-focus-shadow","0 0 0 3px","var(--esp-slider-thumb-shadow, 0 1px 3px oklch(0 0 0 / 0.2)),"),
|
|
32
|
+
`}};s.formAssociated=!0,s._nextId=0,s.styles=[...b.styles,C(".thumb:focus-visible","--esp-slider-focus-shadow","0 0 0 3px","var(--esp-slider-thumb-shadow, 0 1px 3px oklch(0 0 0 / 0.2)),"),x(".slider-container"),v`
|
|
33
33
|
:host {
|
|
34
34
|
display: block;
|
|
35
35
|
}
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"name": "--esp-breadcrumb-separator-color",
|
|
124
124
|
"category": "component",
|
|
125
125
|
"component": "esp-breadcrumbs",
|
|
126
|
-
"description": "Set the color of the separator. It defaults to
|
|
126
|
+
"description": "Set the color of the separator. It defaults to the semantic heading color so navigation structure stays visible in light and dark themes."
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
"name": "--esp-button-group-divider",
|
|
@@ -536,6 +536,150 @@
|
|
|
536
536
|
"category": "root-theme",
|
|
537
537
|
"description": ""
|
|
538
538
|
},
|
|
539
|
+
{
|
|
540
|
+
"name": "--esp-footer-background",
|
|
541
|
+
"category": "component",
|
|
542
|
+
"component": "esp-footer",
|
|
543
|
+
"description": "Base footer color. Defaults to `var(--esp-color-layer-2)`."
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"name": "--esp-footer-background-blend-mode",
|
|
547
|
+
"category": "component",
|
|
548
|
+
"component": "esp-footer",
|
|
549
|
+
"description": "Decorative layer blend mode. Defaults to `normal`."
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"name": "--esp-footer-background-image",
|
|
553
|
+
"category": "component",
|
|
554
|
+
"component": "esp-footer",
|
|
555
|
+
"description": "Decorative image or gradient layer. Defaults to `none`."
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "--esp-footer-background-image-opacity",
|
|
559
|
+
"category": "component",
|
|
560
|
+
"component": "esp-footer",
|
|
561
|
+
"description": "Decorative layer opacity. Defaults to `1`."
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"name": "--esp-footer-background-position",
|
|
565
|
+
"category": "component",
|
|
566
|
+
"component": "esp-footer",
|
|
567
|
+
"description": "Decorative layer position. Defaults to `0 0`."
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"name": "--esp-footer-background-repeat",
|
|
571
|
+
"category": "component",
|
|
572
|
+
"component": "esp-footer",
|
|
573
|
+
"description": "Decorative layer repeat behavior. Defaults to `repeat`."
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "--esp-footer-background-size",
|
|
577
|
+
"category": "component",
|
|
578
|
+
"component": "esp-footer",
|
|
579
|
+
"description": "Decorative layer size. Defaults to `auto`."
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "--esp-footer-border",
|
|
583
|
+
"category": "component",
|
|
584
|
+
"component": "esp-footer",
|
|
585
|
+
"description": "Block-start footer border. Defaults to `1px solid var(--esp-color-border)`."
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"name": "--esp-footer-brand-logo-max-width",
|
|
589
|
+
"category": "component",
|
|
590
|
+
"component": "esp-footer",
|
|
591
|
+
"description": "Configured logo maximum inline size. Defaults to `12rem`."
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"name": "--esp-footer-brand-logo-size",
|
|
595
|
+
"category": "component",
|
|
596
|
+
"component": "esp-footer",
|
|
597
|
+
"description": "Configured logo block size. Defaults to `3rem`."
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"name": "--esp-footer-color",
|
|
601
|
+
"category": "component",
|
|
602
|
+
"component": "esp-footer",
|
|
603
|
+
"description": "Body text color. Defaults to `var(--esp-color-text)`."
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"name": "--esp-footer-column-gap",
|
|
607
|
+
"category": "component",
|
|
608
|
+
"component": "esp-footer",
|
|
609
|
+
"description": "Gap between link-group columns and major primary regions. Defaults to `var(--esp-size-padding-page)`."
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"name": "--esp-footer-content-lead",
|
|
613
|
+
"category": "component",
|
|
614
|
+
"component": "esp-footer",
|
|
615
|
+
"description": "Fraction of surplus placed before content (`0`, `0.5`, or `1`). Defaults to `0`."
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "--esp-footer-content-max-width",
|
|
619
|
+
"category": "component",
|
|
620
|
+
"component": "esp-footer",
|
|
621
|
+
"description": "Surface-alignment cap published by `esp-page`. Defaults to `100%`."
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"name": "--esp-footer-focus-outline",
|
|
625
|
+
"category": "component",
|
|
626
|
+
"component": "esp-footer",
|
|
627
|
+
"description": "Focus-visible outline. Defaults to `2px solid var(--esp-color-link)`."
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "--esp-footer-heading-color",
|
|
631
|
+
"category": "component",
|
|
632
|
+
"component": "esp-footer",
|
|
633
|
+
"description": "Heading and configured-brand color. Defaults to `var(--esp-color-headings)`."
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"name": "--esp-footer-link-color",
|
|
637
|
+
"category": "component",
|
|
638
|
+
"component": "esp-footer",
|
|
639
|
+
"description": "Link color. Defaults to `var(--esp-color-link)`."
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "--esp-footer-link-group-gap",
|
|
643
|
+
"category": "component",
|
|
644
|
+
"component": "esp-footer",
|
|
645
|
+
"description": "Space between a link-group heading and its links. Defaults to `var(--esp-size-small)`."
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "--esp-footer-link-group-min-width",
|
|
649
|
+
"category": "component",
|
|
650
|
+
"component": "esp-footer",
|
|
651
|
+
"description": "Intrinsic minimum link-group column width. Defaults to `10rem`."
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "--esp-footer-link-hover-color",
|
|
655
|
+
"category": "component",
|
|
656
|
+
"component": "esp-footer",
|
|
657
|
+
"description": "Hovered link color. Defaults to `var(--esp-color-link-hover)`."
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"name": "--esp-footer-padding-block",
|
|
661
|
+
"category": "component",
|
|
662
|
+
"component": "esp-footer",
|
|
663
|
+
"description": "Content block padding. Defaults to `var(--esp-size-padding-page)`."
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"name": "--esp-footer-padding-inline",
|
|
667
|
+
"category": "component",
|
|
668
|
+
"component": "esp-footer",
|
|
669
|
+
"description": "Content inline padding. Defaults to `var(--esp-size-padding-page)`."
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"name": "--esp-footer-row-gap",
|
|
673
|
+
"category": "component",
|
|
674
|
+
"component": "esp-footer",
|
|
675
|
+
"description": "Compact-layout row gap. Defaults to `var(--esp-size-big)`."
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "--esp-footer-section-gap",
|
|
679
|
+
"category": "component",
|
|
680
|
+
"component": "esp-footer",
|
|
681
|
+
"description": "Gap between media, primary, and bottom regions. Defaults to `var(--esp-size-big)`."
|
|
682
|
+
},
|
|
539
683
|
{
|
|
540
684
|
"name": "--esp-form-item-error-background",
|
|
541
685
|
"category": "component",
|
|
@@ -1379,7 +1523,7 @@
|
|
|
1379
1523
|
"name": "--esp-progress-fill-color",
|
|
1380
1524
|
"category": "component",
|
|
1381
1525
|
"component": "esp-progress",
|
|
1382
|
-
"description": "Color of the progress fill. Defaults to
|
|
1526
|
+
"description": "Color of the progress fill. Defaults to the active action hue at the semantic muted lightness so the filled and unfilled portions remain distinguishable in light and dark themes."
|
|
1383
1527
|
},
|
|
1384
1528
|
{
|
|
1385
1529
|
"name": "--esp-progress-font-size",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taprootio/espalier",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"packageManager": "bun@1.3.12",
|
|
5
5
|
"description": "Espalier — a themeable, accessible, framework-agnostic, enterprise-grade design system built on web standards and love.",
|
|
6
6
|
"customElements": "custom-elements.json",
|
|
@@ -98,6 +98,14 @@
|
|
|
98
98
|
"types": "./dist/font-picker/esp-font-picker.d.ts",
|
|
99
99
|
"import": "./dist/font-picker/esp-font-picker.js"
|
|
100
100
|
},
|
|
101
|
+
"./footer": {
|
|
102
|
+
"types": "./dist/footer/index.d.ts",
|
|
103
|
+
"import": "./dist/footer/index.js"
|
|
104
|
+
},
|
|
105
|
+
"./footer/link-group": {
|
|
106
|
+
"types": "./dist/footer/esp-footer-link-group.d.ts",
|
|
107
|
+
"import": "./dist/footer/esp-footer-link-group.js"
|
|
108
|
+
},
|
|
101
109
|
"./form": {
|
|
102
110
|
"types": "./dist/form/esp-form.d.ts",
|
|
103
111
|
"import": "./dist/form/esp-form.js"
|
|
@@ -272,6 +280,7 @@
|
|
|
272
280
|
"sideEffects": [
|
|
273
281
|
"dist/index.js",
|
|
274
282
|
"dist/*/esp-*.js",
|
|
283
|
+
"dist/footer/index.js",
|
|
275
284
|
"dist/header/index.js",
|
|
276
285
|
"dist/menu/index.js",
|
|
277
286
|
"dist/shared/virtualizer/lit-virtualizer.js"
|