@atomic-ui/ui 0.7.2 → 0.8.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/custom-elements.json +27 -6
- package/dist/{chunk-HURHKQTJ.js → chunk-FAE6TGGT.js} +4 -2
- package/dist/chunk-FAE6TGGT.js.map +1 -0
- package/dist/{chunk-HA6OJRVI.js → chunk-OXDMAJMZ.js} +14 -1
- package/dist/chunk-OXDMAJMZ.js.map +1 -0
- package/dist/{chunk-VYYY5DDZ.js → chunk-UQY6IUMW.js} +14 -1
- package/dist/chunk-UQY6IUMW.js.map +1 -0
- package/dist/components/button.d.ts +4 -3
- package/dist/components/button.js +1 -1
- package/dist/components/navigation.js +1 -1
- package/dist/components/page.d.ts +12 -1
- package/dist/components/page.js +1 -1
- package/dist/index.js +3 -3
- package/dist/standalone/atomic-ui.js +43 -20
- package/dist/standalone/atomic-ui.js.map +3 -3
- package/package.json +2 -2
- package/dist/chunk-HA6OJRVI.js.map +0 -1
- package/dist/chunk-HURHKQTJ.js.map +0 -1
- package/dist/chunk-VYYY5DDZ.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* @atomic-ui/ui version 0.
|
|
2
|
-
var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$t=Symbol(),qt=new WeakMap,Y=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==$t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o,i=this.t;if(pe&&e===void 0){let r=i!==void 0&&i.length===1;r&&(e=qt.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&qt.set(i,e))}return e}toString(){return this.cssText}},
|
|
1
|
+
/* @atomic-ui/ui version 0.8.0, standalone. */
|
|
2
|
+
var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$t=Symbol(),qt=new WeakMap,Y=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==$t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o,i=this.t;if(pe&&e===void 0){let r=i!==void 0&&i.length===1;r&&(e=qt.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&qt.set(i,e))}return e}toString(){return this.cssText}},C=n=>new Y(typeof n=="string"?n:n+"",void 0,$t),p=(n,...e)=>{let i=n.length===1?n[0]:e.reduce((r,o,d)=>r+(h=>{if(h._$cssResult$===!0)return h.cssText;if(typeof h=="number")return h;throw Error("Value passed to 'css' function must be a 'css' function result: "+h+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[d+1],n[0]);return new Y(i,n,$t)},Pt=(n,e)=>{if(pe)n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let r=document.createElement("style"),o=ce.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=i.cssText,n.appendChild(r)}},yt=pe?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(let r of e.cssRules)i+=r.cssText;return C(i)})(n):n;var{is:ni,defineProperty:li,getOwnPropertyDescriptor:di,getOwnPropertyNames:ci,getOwnPropertySymbols:pi,getPrototypeOf:hi}=Object,he=globalThis,Dt=he.trustedTypes,ui=Dt?Dt.emptyScript:"",mi=he.reactiveElementPolyfillSupport,G=(n,e)=>n,xt={toAttribute(n,e){switch(e){case Boolean:n=n?ui:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},jt=(n,e)=>!ni(n,e),Ft={attribute:!0,type:String,converter:xt,reflect:!1,useDefault:!1,hasChanged:jt};Symbol.metadata??=Symbol("metadata"),he.litPropertyMetadata??=new WeakMap;var B=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=Ft){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(e,r,i);o!==void 0&&li(this.prototype,e,o)}}static getPropertyDescriptor(e,i,r){let{get:o,set:d}=di(this.prototype,e)??{get(){return this[i]},set(h){this[i]=h}};return{get:o,set(h){let k=o?.call(this);d?.call(this,h),this.requestUpdate(e,k,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ft}static _$Ei(){if(this.hasOwnProperty(G("elementProperties")))return;let e=hi(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(G("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(G("properties"))){let i=this.properties,r=[...ci(i),...pi(i)];for(let o of r)this.createProperty(o,i[o])}let e=this[Symbol.metadata];if(e!==null){let i=litPropertyMetadata.get(e);if(i!==void 0)for(let[r,o]of i)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[i,r]of this.elementProperties){let o=this._$Eu(i,r);o!==void 0&&this._$Eh.set(o,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let i=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)i.unshift(yt(o))}else e!==void 0&&i.push(yt(e));return i}static _$Eu(e,i){let r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,i=this.constructor.elementProperties;for(let r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Pt(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$ET(e,i){let r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){let d=(r.converter?.toAttribute!==void 0?r.converter:xt).toAttribute(i,r.type);this._$Em=e,d==null?this.removeAttribute(o):this.setAttribute(o,d),this._$Em=null}}_$AK(e,i){let r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let d=r.getPropertyOptions(o),h=typeof d.converter=="function"?{fromAttribute:d.converter}:d.converter?.fromAttribute!==void 0?d.converter:xt;this._$Em=o;let k=h.fromAttribute(i,d.type);this[o]=k??this._$Ej?.get(o)??k,this._$Em=null}}requestUpdate(e,i,r,o=!1,d){if(e!==void 0){let h=this.constructor;if(o===!1&&(d=this[e]),r??=h.getPropertyOptions(e),!((r.hasChanged??jt)(d,i)||r.useDefault&&r.reflect&&d===this._$Ej?.get(e)&&!this.hasAttribute(h._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:o,wrapped:d},h){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,h??i??this[e]),d!==!0||h!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,d]of this._$Ep)this[o]=d;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,d]of r){let{wrapped:h}=d,k=this[o];h!==!0||this._$AL.has(o)||k===void 0||this.C(o,void 0,d,k)}}let e=!1,i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(i)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach(i=>i.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(i=>this._$ET(i,this[i])),this._$EM()}updated(e){}firstUpdated(e){}};B.elementStyles=[],B.shadowRootOptions={mode:"open"},B[G("elementProperties")]=new Map,B[G("finalized")]=new Map,mi?.({ReactiveElement:B}),(he.reactiveElementVersions??=[]).push("2.1.2");var Mt=globalThis,Ut=n=>n,ue=Mt.trustedTypes,Wt=ue?ue.createPolicy("lit-html",{createHTML:n=>n}):void 0,Zt="$lit$",q=`lit$${Math.random().toFixed(9).slice(2)}$`,Jt="?"+q,gi=`<${Jt}>`,U=document,J=()=>U.createComment(""),Q=n=>n===null||typeof n!="object"&&typeof n!="function",Et=Array.isArray,bi=n=>Et(n)||typeof n?.[Symbol.iterator]=="function",kt=`[
|
|
3
3
|
\f\r]`,Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vt=/-->/g,Kt=/>/g,F=RegExp(`>|${kt}(?:([^\\s"'>=/]+)(${kt}*=${kt}*(?:[^
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xt=/'/g,Yt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,At=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),a=At(1),f=At(2),Pi=At(3),P=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),Gt=new WeakMap,j=U.createTreeWalker(U,129);function ei(n,e){if(!Et(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(e):e}var fi=(n,e)=>{let i=n.length-1,r=[],o,d=e===2?"<svg>":e===3?"<math>":"",h=Z;for(let k=0;k<i;k++){let y=n[k],z,A,M=-1,H=0;for(;H<y.length&&(h.lastIndex=H,A=h.exec(y),A!==null);)H=h.lastIndex,h===Z?A[1]==="!--"?h=Vt:A[1]!==void 0?h=Kt:A[2]!==void 0?(Qt.test(A[2])&&(o=RegExp("</"+A[2],"g")),h=F):A[3]!==void 0&&(h=F):h===F?A[0]===">"?(h=o??Z,M=-1):A[1]===void 0?M=-2:(M=h.lastIndex-A[2].length,z=A[1],h=A[3]===void 0?F:A[3]==='"'?Yt:Xt):h===Yt||h===Xt?h=F:h===Vt||h===Kt?h=Z:(h=F,o=void 0);let O=h===F&&n[k+1].startsWith("/>")?" ":"";d+=h===Z?y+gi:M>=0?(r.push(z),y.slice(0,M)+Zt+y.slice(M)+q+O):y+q+(M===-2?k:O)}return[ei(n,d+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},ee=class n{constructor({strings:e,_$litType$:i},r){let o;this.parts=[];let d=0,h=0,k=e.length-1,y=this.parts,[z,A]=fi(e,i);if(this.el=n.createElement(z,r),j.currentNode=this.el.content,i===2||i===3){let M=this.el.content.firstChild;M.replaceWith(...M.childNodes)}for(;(o=j.nextNode())!==null&&y.length<k;){if(o.nodeType===1){if(o.hasAttributes())for(let M of o.getAttributeNames())if(M.endsWith(Zt)){let H=A[h++],O=o.getAttribute(M).split(q),de=/([.?@])?(.*)/.exec(H);y.push({type:1,index:d,name:de[2],strings:O,ctor:de[1]==="."?wt:de[1]==="?"?St:de[1]==="@"?Tt:X}),o.removeAttribute(M)}else M.startsWith(q)&&(y.push({type:6,index:d}),o.removeAttribute(M));if(Qt.test(o.tagName)){let M=o.textContent.split(q),H=M.length-1;if(H>0){o.textContent=ue?ue.emptyScript:"";for(let O=0;O<H;O++)o.append(M[O],J()),j.nextNode(),y.push({type:2,index:++d});o.append(M[H],J())}}}else if(o.nodeType===8)if(o.data===Jt)y.push({type:2,index:d});else{let M=-1;for(;(M=o.data.indexOf(q,M+1))!==-1;)y.push({type:7,index:d}),M+=q.length-1}d++}}static createElement(e,i){let r=U.createElement("template");return r.innerHTML=e,r}};function K(n,e,i=n,r){if(e===P)return e;let o=r!==void 0?i._$Co?.[r]:i._$Cl,d=Q(e)?void 0:e._$litDirective$;return o?.constructor!==d&&(o?._$AO?.(!1),d===void 0?o=void 0:(o=new d(n),o._$AT(n,i,r)),r!==void 0?(i._$Co??=[])[r]=o:i._$Cl=o),o!==void 0&&(e=K(n,o._$AS(n,e.values),o,r)),e}var vt=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,o=(e?.creationScope??U).importNode(i,!0);j.currentNode=o;let d=j.nextNode(),h=0,k=0,y=r[0];for(;y!==void 0;){if(h===y.index){let z;y.type===2?z=new te(d,d.nextSibling,this,e):y.type===1?z=new y.ctor(d,y.name,y.strings,this,e):y.type===6&&(z=new zt(d,this,e)),this._$AV.push(z),y=r[++k]}h!==y?.index&&(d=j.nextNode(),h++)}return j.currentNode=U,o}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},te=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,o){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=K(this,e,i),Q(e)?e===l||e==null||e===""?(this._$AH!==l&&this._$AR(),this._$AH=l):e!==this._$AH&&e!==P&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):bi(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==l&&Q(this._$AH)?this._$AA.nextSibling.data=e:this.T(U.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=ee.createElement(ei(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(i);else{let d=new vt(o,this),h=d.u(this.options);d.p(i),this.T(h),this._$AH=d}}_$AC(e){let i=Gt.get(e.strings);return i===void 0&&Gt.set(e.strings,i=new ee(e)),i}k(e){Et(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,o=0;for(let d of e)o===i.length?i.push(r=new n(this.O(J()),this.O(J()),this,this.options)):r=i[o],r._$AI(d),o++;o<i.length&&(this._$AR(r&&r._$AB.nextSibling,o),i.length=o)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=Ut(e).nextSibling;Ut(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},X=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,o,d){this.type=1,this._$AH=l,this._$AN=void 0,this.element=e,this.name=i,this._$AM=o,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(e,i=this,r,o){let d=this.strings,h=!1;if(d===void 0)e=K(this,e,i,0),h=!Q(e)||e!==this._$AH&&e!==P,h&&(this._$AH=e);else{let k=e,y,z;for(e=d[0],y=0;y<d.length-1;y++)z=K(this,k[r+y],i,y),z===P&&(z=this._$AH[y]),h||=!Q(z)||z!==this._$AH[y],z===l?e=l:e!==l&&(e+=(z??"")+d[y+1]),this._$AH[y]=z}h&&!o&&this.j(e)}j(e){e===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},wt=class extends X{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===l?void 0:e}},St=class extends X{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==l)}},Tt=class extends X{constructor(e,i,r,o,d){super(e,i,r,o,d),this.type=5}_$AI(e,i=this){if((e=K(this,e,i,0)??l)===P)return;let r=this._$AH,o=e===l&&r!==l||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,d=e!==l&&(r===l||o);o&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},zt=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){K(this,e)}};var $i=Mt.litHtmlPolyfillSupport;$i?.(ee,te),(Mt.litHtmlVersions??=[]).push("3.3.3");var Lt=(n,e,i)=>{let r=i?.renderBefore??e,o=r._$litPart$;if(o===void 0){let d=i?.renderBefore??null;r._$litPart$=o=new te(e.insertBefore(J(),d),d,void 0,i??{})}return o._$AI(n),o};var Ct=globalThis,N=class extends B{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Lt(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return P}};N._$litElement$=!0,N.finalized=!0,Ct.litElementHydrateSupport?.({LitElement:N});var yi=Ct.litElementPolyfillSupport;yi?.({LitElement:N});(Ct.litElementVersions??=[]).push("4.2.2");var u=(n,e)=>L(`var(--impakt-${n.replace(/\./g,"-")}, ${e})`),t={brand:u("color.brand.default","#1f4ed8"),brandHover:u("color.brand.hover","#1b45be"),brandActive:u("color.brand.active","#183ba4"),brandSubtle:u("color.brand.subtle","#e4eafa"),onBrand:u("color.text.on-brand","#ffffff"),surfaceCard:u("color.surface.card","#ffffff"),surfaceInset:u("color.surface.inset","#f4f4f4"),surfaceSubtle:u("color.surface.subtle","#e4eafa"),text:u("color.text.default","#1a1a1a"),textMuted:u("color.text.muted","#717171"),textPlaceholder:u("color.text.placeholder","#767676"),textHeading:u("color.text.heading","#1f4ed8"),link:u("color.text.link","#1f4ed8"),linkHover:u("color.text.link-hover","#193ead"),border:u("color.border.default","#929292"),borderStrong:u("color.border.strong","#818181"),danger:u("color.status.danger.default","#c8102e"),dangerText:u("color.status.danger.text","#c8102e"),dangerSubtle:u("color.status.danger.subtle","#f8e2e6"),warning:u("color.status.warning.default","#b45309"),warningText:u("color.status.warning.text","#b45309"),warningSubtle:u("color.status.warning.subtle","#f6eae1"),success:u("color.status.success.default","#047857"),successText:u("color.status.success.text","#047857"),successSubtle:u("color.status.success.subtle","#e0f0ea"),info:u("color.status.info.default","#1f4ed8"),infoText:u("color.status.info.text","#1f4ed8"),infoSubtle:u("color.status.info.subtle","#e4eafa"),fontBody:u("font.family.body","system-ui, sans-serif"),fontHeading:u("font.family.heading","system-ui, sans-serif"),fontMono:u("font.family.mono","ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"),fontEyebrow:u("font.family.eyebrow","inherit"),focusShadow:u("focus.ring.shadow","0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a"),focusOffset:u("focus.ring.offset","2px"),targetMin:u("target.min","24px"),radiusSm:u("radius.sm","2px"),radius:u("radius.md","4px"),radiusLg:u("radius.lg","8px"),borderThin:u("border.width.thin","1px"),borderThick:u("border.width.thick","2px"),radiusXs:u("radius.xs","2px"),radiusXl:u("radius.xl","12px"),radius2xl:u("radius.2xl","16px"),hairline:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 10%, transparent)"),rule:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 15%, transparent)"),wash:L("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 5%, transparent)"),brandHalo:L("color-mix(in srgb, var(--impakt-color-brand-default, #1f4ed8) 22%, transparent)"),shadowXs:u("shadow.xs","0 1px 2px 0 rgb(0 0 0 / 0.05)"),shadowSm:u("shadow.sm","0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"),shadowMd:u("shadow.md","0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"),shadowLg:u("shadow.lg","0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"),shadowXl:u("shadow.xl","0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"),trackingTight:u("font.tracking.tight","-0.02em"),trackingWide:u("font.tracking.wide","0.06em")},$=n=>L(`font-size: var(--impakt-font-size-${n}, 1rem); line-height: var(--impakt-font-leading-${n}, 1.5);`),s=n=>u(`space.${String(n).replace(".","-")}`,`${n*4}px`),g=n=>u(`font.size.${n}`,"1rem"),R=n=>u(`font.line-height.${n}`,"1.5"),m=n=>u(`font.weight.${n}`,"400"),C=p`
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xt=/'/g,Yt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,At=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),a=At(1),f=At(2),Pi=At(3),P=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),Gt=new WeakMap,j=U.createTreeWalker(U,129);function ei(n,e){if(!Et(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(e):e}var fi=(n,e)=>{let i=n.length-1,r=[],o,d=e===2?"<svg>":e===3?"<math>":"",h=Z;for(let k=0;k<i;k++){let y=n[k],z,A,M=-1,H=0;for(;H<y.length&&(h.lastIndex=H,A=h.exec(y),A!==null);)H=h.lastIndex,h===Z?A[1]==="!--"?h=Vt:A[1]!==void 0?h=Kt:A[2]!==void 0?(Qt.test(A[2])&&(o=RegExp("</"+A[2],"g")),h=F):A[3]!==void 0&&(h=F):h===F?A[0]===">"?(h=o??Z,M=-1):A[1]===void 0?M=-2:(M=h.lastIndex-A[2].length,z=A[1],h=A[3]===void 0?F:A[3]==='"'?Yt:Xt):h===Yt||h===Xt?h=F:h===Vt||h===Kt?h=Z:(h=F,o=void 0);let O=h===F&&n[k+1].startsWith("/>")?" ":"";d+=h===Z?y+gi:M>=0?(r.push(z),y.slice(0,M)+Zt+y.slice(M)+q+O):y+q+(M===-2?k:O)}return[ei(n,d+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},ee=class n{constructor({strings:e,_$litType$:i},r){let o;this.parts=[];let d=0,h=0,k=e.length-1,y=this.parts,[z,A]=fi(e,i);if(this.el=n.createElement(z,r),j.currentNode=this.el.content,i===2||i===3){let M=this.el.content.firstChild;M.replaceWith(...M.childNodes)}for(;(o=j.nextNode())!==null&&y.length<k;){if(o.nodeType===1){if(o.hasAttributes())for(let M of o.getAttributeNames())if(M.endsWith(Zt)){let H=A[h++],O=o.getAttribute(M).split(q),de=/([.?@])?(.*)/.exec(H);y.push({type:1,index:d,name:de[2],strings:O,ctor:de[1]==="."?wt:de[1]==="?"?St:de[1]==="@"?Tt:X}),o.removeAttribute(M)}else M.startsWith(q)&&(y.push({type:6,index:d}),o.removeAttribute(M));if(Qt.test(o.tagName)){let M=o.textContent.split(q),H=M.length-1;if(H>0){o.textContent=ue?ue.emptyScript:"";for(let O=0;O<H;O++)o.append(M[O],J()),j.nextNode(),y.push({type:2,index:++d});o.append(M[H],J())}}}else if(o.nodeType===8)if(o.data===Jt)y.push({type:2,index:d});else{let M=-1;for(;(M=o.data.indexOf(q,M+1))!==-1;)y.push({type:7,index:d}),M+=q.length-1}d++}}static createElement(e,i){let r=U.createElement("template");return r.innerHTML=e,r}};function K(n,e,i=n,r){if(e===P)return e;let o=r!==void 0?i._$Co?.[r]:i._$Cl,d=Q(e)?void 0:e._$litDirective$;return o?.constructor!==d&&(o?._$AO?.(!1),d===void 0?o=void 0:(o=new d(n),o._$AT(n,i,r)),r!==void 0?(i._$Co??=[])[r]=o:i._$Cl=o),o!==void 0&&(e=K(n,o._$AS(n,e.values),o,r)),e}var vt=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,o=(e?.creationScope??U).importNode(i,!0);j.currentNode=o;let d=j.nextNode(),h=0,k=0,y=r[0];for(;y!==void 0;){if(h===y.index){let z;y.type===2?z=new te(d,d.nextSibling,this,e):y.type===1?z=new y.ctor(d,y.name,y.strings,this,e):y.type===6&&(z=new zt(d,this,e)),this._$AV.push(z),y=r[++k]}h!==y?.index&&(d=j.nextNode(),h++)}return j.currentNode=U,o}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},te=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,o){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=K(this,e,i),Q(e)?e===l||e==null||e===""?(this._$AH!==l&&this._$AR(),this._$AH=l):e!==this._$AH&&e!==P&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):bi(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==l&&Q(this._$AH)?this._$AA.nextSibling.data=e:this.T(U.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=ee.createElement(ei(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(i);else{let d=new vt(o,this),h=d.u(this.options);d.p(i),this.T(h),this._$AH=d}}_$AC(e){let i=Gt.get(e.strings);return i===void 0&&Gt.set(e.strings,i=new ee(e)),i}k(e){Et(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,o=0;for(let d of e)o===i.length?i.push(r=new n(this.O(J()),this.O(J()),this,this.options)):r=i[o],r._$AI(d),o++;o<i.length&&(this._$AR(r&&r._$AB.nextSibling,o),i.length=o)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=Ut(e).nextSibling;Ut(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},X=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,o,d){this.type=1,this._$AH=l,this._$AN=void 0,this.element=e,this.name=i,this._$AM=o,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(e,i=this,r,o){let d=this.strings,h=!1;if(d===void 0)e=K(this,e,i,0),h=!Q(e)||e!==this._$AH&&e!==P,h&&(this._$AH=e);else{let k=e,y,z;for(e=d[0],y=0;y<d.length-1;y++)z=K(this,k[r+y],i,y),z===P&&(z=this._$AH[y]),h||=!Q(z)||z!==this._$AH[y],z===l?e=l:e!==l&&(e+=(z??"")+d[y+1]),this._$AH[y]=z}h&&!o&&this.j(e)}j(e){e===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},wt=class extends X{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===l?void 0:e}},St=class extends X{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==l)}},Tt=class extends X{constructor(e,i,r,o,d){super(e,i,r,o,d),this.type=5}_$AI(e,i=this){if((e=K(this,e,i,0)??l)===P)return;let r=this._$AH,o=e===l&&r!==l||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,d=e!==l&&(r===l||o);o&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},zt=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){K(this,e)}};var $i=Mt.litHtmlPolyfillSupport;$i?.(ee,te),(Mt.litHtmlVersions??=[]).push("3.3.3");var Ct=(n,e,i)=>{let r=i?.renderBefore??e,o=r._$litPart$;if(o===void 0){let d=i?.renderBefore??null;r._$litPart$=o=new te(e.insertBefore(J(),d),d,void 0,i??{})}return o._$AI(n),o};var Lt=globalThis,N=class extends B{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ct(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return P}};N._$litElement$=!0,N.finalized=!0,Lt.litElementHydrateSupport?.({LitElement:N});var yi=Lt.litElementPolyfillSupport;yi?.({LitElement:N});(Lt.litElementVersions??=[]).push("4.2.2");var u=(n,e)=>C(`var(--impakt-${n.replace(/\./g,"-")}, ${e})`),t={brand:u("color.brand.default","#1f4ed8"),brandHover:u("color.brand.hover","#1b45be"),brandActive:u("color.brand.active","#183ba4"),brandSubtle:u("color.brand.subtle","#e4eafa"),onBrand:u("color.text.on-brand","#ffffff"),surfaceCard:u("color.surface.card","#ffffff"),surfaceInset:u("color.surface.inset","#f4f4f4"),surfaceSubtle:u("color.surface.subtle","#e4eafa"),text:u("color.text.default","#1a1a1a"),textMuted:u("color.text.muted","#717171"),textPlaceholder:u("color.text.placeholder","#767676"),textHeading:u("color.text.heading","#1f4ed8"),link:u("color.text.link","#1f4ed8"),linkHover:u("color.text.link-hover","#193ead"),border:u("color.border.default","#929292"),borderStrong:u("color.border.strong","#818181"),danger:u("color.status.danger.default","#c8102e"),dangerText:u("color.status.danger.text","#c8102e"),dangerSubtle:u("color.status.danger.subtle","#f8e2e6"),warning:u("color.status.warning.default","#b45309"),warningText:u("color.status.warning.text","#b45309"),warningSubtle:u("color.status.warning.subtle","#f6eae1"),success:u("color.status.success.default","#047857"),successText:u("color.status.success.text","#047857"),successSubtle:u("color.status.success.subtle","#e0f0ea"),info:u("color.status.info.default","#1f4ed8"),infoText:u("color.status.info.text","#1f4ed8"),infoSubtle:u("color.status.info.subtle","#e4eafa"),fontBody:u("font.family.body","system-ui, sans-serif"),fontHeading:u("font.family.heading","system-ui, sans-serif"),fontMono:u("font.family.mono","ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"),fontEyebrow:u("font.family.eyebrow","inherit"),focusShadow:u("focus.ring.shadow","0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a"),focusOffset:u("focus.ring.offset","2px"),targetMin:u("target.min","24px"),radiusSm:u("radius.sm","2px"),radius:u("radius.md","4px"),radiusLg:u("radius.lg","8px"),borderThin:u("border.width.thin","1px"),borderThick:u("border.width.thick","2px"),radiusXs:u("radius.xs","2px"),radiusXl:u("radius.xl","12px"),radius2xl:u("radius.2xl","16px"),hairline:C("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 10%, transparent)"),rule:C("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 15%, transparent)"),wash:C("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 5%, transparent)"),brandHalo:C("color-mix(in srgb, var(--impakt-color-brand-default, #1f4ed8) 22%, transparent)"),shadowXs:u("shadow.xs","0 1px 2px 0 rgb(0 0 0 / 0.05)"),shadowSm:u("shadow.sm","0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"),shadowMd:u("shadow.md","0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"),shadowLg:u("shadow.lg","0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"),shadowXl:u("shadow.xl","0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"),trackingTight:u("font.tracking.tight","-0.02em"),trackingWide:u("font.tracking.wide","0.06em")},$=n=>C(`font-size: var(--impakt-font-size-${n}, 1rem); line-height: var(--impakt-font-leading-${n}, 1.5);`),s=n=>u(`space.${String(n).replace(".","-")}`,`${n*4}px`),g=n=>u(`font.size.${n}`,"1rem"),R=n=>u(`font.line-height.${n}`,"1.5"),m=n=>u(`font.weight.${n}`,"400"),L=p`
|
|
5
5
|
:host([space-above='sm']) { margin-block-start: ${s(2)}; }
|
|
6
6
|
:host([space-above='md']) { margin-block-start: ${s(4)}; }
|
|
7
7
|
:host([space-above='lg']) { margin-block-start: ${s(6)}; }
|
|
@@ -58,7 +58,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
58
58
|
*::after {
|
|
59
59
|
box-sizing: inherit;
|
|
60
60
|
}
|
|
61
|
-
`,E=n=>
|
|
61
|
+
`,E=n=>C(`@media (pointer: coarse) { :host :is(${n}) { min-block-size: 44px; min-inline-size: 44px; } }`),ri=p`
|
|
62
62
|
@media (max-width: 40rem) { :host([hide-on='phone']) { display: none !important; } }
|
|
63
63
|
@media (min-width: 40.0625rem) { :host([hide-on='wide']) { display: none !important; } }
|
|
64
64
|
`;var xi=Symbol.for("strata.wording");function v(n,e){let r=globalThis[xi]?.words?.[n],o=typeof r=="string"&&r.trim()?r:n;return e?o.replace(/\{(\w+)\}/g,(d,h)=>h in e?String(e[h]):d):o}var ki=0,c=class extends N{constructor(){super(...arguments);this.uid=`impakt-${ki+=1}`}static{this.styles=[ii,ti,p``]}id_(i){return`${this.uid}-${i}`}connectedCallback(){super.connectedCallback(),this.sayDefaults()}sayDefaults(){let i=this.constructor.elementProperties,r=this;for(let o of i.keys()){let d=r[o];if(typeof d!="string"||!d)continue;let h=v(d);h!==d&&(r[o]=h)}}};var Rt={"arrow-right":f`<path d="M5 12h14M13 6l6 6-6 6"/>`,"arrow-left":f`<path d="M19 12H5M11 6l-6 6 6 6"/>`,"chevron-right":f`<path d="M9 6l6 6-6 6"/>`,"chevron-down":f`<path d="M6 9l6 6 6-6"/>`,check:f`<path d="M5 12.5l4.5 4.5L19 7"/>`,close:f`<path d="M6 6l12 12M18 6L6 18"/>`,menu:f`<path d="M4 7h16M4 12h16M4 17h16"/>`,"menu-two":f`<path d="M5 9.5h14M5 14.5h14"/>`,plus:f`<path d="M12 5v14M5 12h14"/>`,minus:f`<path d="M5 12h14"/>`,search:f`<circle cx="11" cy="11" r="6.5"/><path d="M16 16l4 4"/>`,external:f`<path d="M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/>`,download:f`<path d="M12 4v11M7 10l5 5 5-5M5 20h14"/>`,home:f`<path d="M4 11l8-7 8 7M6 9.5V20h12V9.5"/><path d="M10 20v-6h4v6"/>`,phone:f`<path d="M7 3.5h3l1.5 4-2 1.5a11 11 0 0 0 5.5 5.5l1.5-2 4 1.5v3a2 2 0 0 1-2 2A16 16 0 0 1 5 5.5a2 2 0 0 1 2-2z"/>`,mail:f`<rect x="3.5" y="5.5" width="17" height="13" rx="1.5"/><path d="M4 7l8 6 8-6"/>`,"map-pin":f`<path d="M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z"/><circle cx="12" cy="10" r="2.5"/>`,calendar:f`<rect x="4" y="5.5" width="16" height="14.5" rx="1.5"/><path d="M4 10h16M8.5 3.5v4M15.5 3.5v4"/>`,clock:f`<circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/>`,user:f`<circle cx="12" cy="8.5" r="3.5"/><path d="M5 20a7 7 0 0 1 14 0"/>`,star:f`<path d="M12 4l2.4 5 5.4.6-4 3.7 1.1 5.4L12 16l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6z"/>`,heart:f`<path d="M12 19.5s-7.5-4.6-7.5-10A4 4 0 0 1 12 7a4 4 0 0 1 7.5 2.5c0 5.4-7.5 10-7.5 10z"/>`,shield:f`<path d="M12 3.5l7 2.5v5.5c0 4.5-3 7.8-7 9-4-1.2-7-4.5-7-9V6z"/><path d="M9 12l2 2 4-4"/>`,leaf:f`<path d="M5 19c0-8 5-13 14-14 0 9-5 14-13 14z"/><path d="M5 19l7-7"/>`,sun:f`<circle cx="12" cy="12" r="3.5"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6L7 7M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4"/>`,bolt:f`<path d="M13 3L5 13.5h6L10 21l8-10.5h-6z"/>`,key:f`<circle cx="8" cy="15" r="3.5"/><path d="M10.5 12.5L19 4M16 7l2.5 2.5M14 9l2 2"/>`,info:f`<circle cx="12" cy="12" r="8.5"/><path d="M12 11v5.5M12 7.5v.5"/>`,warning:f`<path d="M12 4l9 15.5H3z"/><path d="M12 10v4M12 16.5v.5"/>`,document:f`<path d="M6 3.5h8l4 4V20a.5.5 0 0 1-.5.5h-11A.5.5 0 0 1 6 20z"/><path d="M14 3.5V8h4M9 13h6M9 16.5h6"/>`,pound:f`<path d="M16 6.5a3.5 3.5 0 0 0-6.5 1.8V20M7 13h7M7 20h10"/>`,chat:f`<path d="M4.5 5.5h15v10h-9l-4 3.5v-3.5h-2z"/>`,grid:f`<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/>`,clipboard:f`<rect x="8" y="2" width="8" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M12 11h4M12 16h4M8 11h.01M8 16h.01"/>`,"map-pinned":f`<path d="M18 8c0 3.6-3.9 7.4-5.4 8.8a1 1 0 0 1-1.2 0C9.9 15.4 6 11.6 6 8a6 6 0 0 1 12 0"/><circle cx="12" cy="8" r="2"/><path d="M8.7 14H5a1 1 0 0 0-.9.7l-2 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .9-1.3l-2-6a1 1 0 0 0-.9-.7h-3.7"/>`,users:f`<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8"/>`,radio:f`<path d="M4.9 19.1C1 15.2 1 8.8 4.9 4.9M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5M19.1 4.9C23 8.8 23 15.1 19.1 19"/><circle cx="12" cy="12" r="2"/>`,settings:f`<path d="M12.2 2h-.4a2 2 0 0 0-2 2v.2a2 2 0 0 1-1 1.7l-.4.3a2 2 0 0 1-2 0l-.2-.1a2 2 0 0 0-2.7.7l-.2.4a2 2 0 0 0 .7 2.7l.2.1a2 2 0 0 1 1 1.7v.5a2 2 0 0 1-1 1.8l-.2.1a2 2 0 0 0-.7 2.7l.2.4a2 2 0 0 0 2.7.7l.2-.1a2 2 0 0 1 2 0l.4.3a2 2 0 0 1 1 1.7v.2a2 2 0 0 0 2 2h.4a2 2 0 0 0 2-2v-.2a2 2 0 0 1 1-1.7l.4-.3a2 2 0 0 1 2 0l.2.1a2 2 0 0 0 2.7-.7l.2-.4a2 2 0 0 0-.7-2.7l-.2-.1a2 2 0 0 1-1-1.8v-.5a2 2 0 0 1 1-1.7l.2-.1a2 2 0 0 0 .7-2.7l-.2-.4a2 2 0 0 0-2.7-.7l-.2.1a2 2 0 0 1-2 0l-.4-.3a2 2 0 0 1-1-1.7V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>`,"log-out":f`<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9"/>`,"arrow-up-right":f`<path d="M7 7h10v10M7 17L17 7"/>`,more:f`<circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/>`,upload:f`<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"/>`,image:f`<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="M21 15l-3.1-3.1a2 2 0 0 0-2.8 0L6 21"/>`,lock:f`<rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>`,eye:f`<path d="M2.1 12.3a1 1 0 0 1 0-.7 10.8 10.8 0 0 1 19.8 0 1 1 0 0 1 0 .7 10.8 10.8 0 0 1-19.8 0"/><circle cx="12" cy="12" r="3"/>`,trash:f`<path d="M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2M10 11v6M14 11v6"/>`,pencil:f`<path d="M21.2 6.8a1 1 0 0 0-4-4L3.8 16.2a2 2 0 0 0-.5.8L2 21.4a.5.5 0 0 0 .6.6l4.4-1.3a2 2 0 0 0 .8-.5zM15 5l4 4"/>`,"qr-code":f`<rect x="3" y="3" width="5" height="5" rx="1"/><rect x="16" y="3" width="5" height="5" rx="1"/><rect x="3" y="16" width="5" height="5" rx="1"/><path d="M21 16h-3a2 2 0 0 0-2 2v3M21 21v.01M12 7v3a2 2 0 0 1-2 2H7M3 12h.01M12 3h.01M12 16v.01M16 12h1M21 12v.01M12 21v-1"/>`,battery:f`<rect x="2" y="7" width="16" height="10" rx="2"/><path d="M22 11v2M6 11v2M10 11v2"/>`},vi=Object.keys(Rt);function T(n,e="1.25em"){let i=n?Rt[n]:void 0;return i?a`<svg class="icon" viewBox="0 0 24 24" width=${e} height=${e} fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${i}</svg>`:l}var me=class extends c{static{this.properties={name:{type:String,reflect:!0},label:{type:String},size:{type:String,reflect:!0},tone:{type:String,reflect:!0}}}constructor(){super(),this.name="star",this.label="",this.size="md",this.tone="inherit"}static{this.styles=[...c.styles,p`
|
|
@@ -170,6 +170,18 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
170
170
|
background: color-mix(in srgb, ${t.surfaceInset}, ${t.text} 12%);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
/* Accent: the brand's second colour as a fill, for the one action a page is built around. The words on it are the colour the tokens measured against it. */
|
|
174
|
+
.accent {
|
|
175
|
+
background: ${u("color.accent.default","#e2cc40")};
|
|
176
|
+
color: ${u("color.accent.on","#1a1a1a")};
|
|
177
|
+
}
|
|
178
|
+
.accent:hover:not([aria-disabled='true']) {
|
|
179
|
+
background: ${u("color.accent.hover","#c7b438")};
|
|
180
|
+
}
|
|
181
|
+
.accent:active:not([aria-disabled='true']) {
|
|
182
|
+
background: color-mix(in srgb, ${u("color.accent.hover","#c7b438")}, ${u("color.accent.on","#1a1a1a")} 10%);
|
|
183
|
+
}
|
|
184
|
+
|
|
173
185
|
/* Danger: the danger text colour as a fill, so white words on it keep 4.5:1. */
|
|
174
186
|
.danger {
|
|
175
187
|
background: ${t.dangerText};
|
|
@@ -476,7 +488,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
476
488
|
${this.label}${this.required?a`<span class="required"> (${this.requiredText})</span>`:l}
|
|
477
489
|
</span>
|
|
478
490
|
</label>
|
|
479
|
-
`}renderLabel(){return a`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox",$e);var wi=
|
|
491
|
+
`}renderLabel(){return a`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox",$e);var wi=C("48rem");function si(n){if(!n||n.startsWith("#"))return null;try{let e=typeof location>"u"?"http://localhost/":location.href;return new URL(n,e).pathname.replace(/\/$/,"")||"/"}catch{return null}}function _t(n,e){let i=si(n);if(!i)return!1;let r=si(e||(typeof location>"u"?"":location.pathname));return r?i===r?!0:i!=="/"&&r.startsWith(`${i}/`):!1}function ie(n,e,i){if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let r=new CustomEvent("impakt-navigate",{detail:{href:i.href,id:i.id??i.href},bubbles:!0,composed:!0,cancelable:!0});n.dispatchEvent(r)||e.preventDefault()}var ye=class extends c{constructor(){super();this.footerFilled=!1;this.items=[],this.label="Main",this.current=""}static{this.properties={items:{type:Array},label:{type:String},current:{type:String}}}static{this.styles=[...c.styles,x,p`
|
|
480
492
|
:host { display: flex; flex-direction: column; gap: ${s(5)}; block-size: 100%; }
|
|
481
493
|
.card { padding: ${s(2)}; border-radius: ${t.radiusXl}; background: ${t.surfaceCard}; }
|
|
482
494
|
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${s(.5)}; }
|
|
@@ -1124,7 +1136,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
1124
1136
|
</div>`:l}
|
|
1125
1137
|
<slot></slot>
|
|
1126
1138
|
</div>
|
|
1127
|
-
`}};customElements.define("impakt-alert",Ae);var
|
|
1139
|
+
`}};customElements.define("impakt-alert",Ae);var Ce=class extends c{static{this.properties={gap:{type:String,reflect:!0},align:{type:String,reflect:!0},direction:{type:String,reflect:!0},justify:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.gap="md",this.align="stretch",this.direction="vertical",this.justify="start",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...c.styles,L,p`
|
|
1128
1140
|
:host {
|
|
1129
1141
|
display: flex;
|
|
1130
1142
|
flex-direction: column;
|
|
@@ -1145,7 +1157,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
1145
1157
|
:host([gap='md']) { gap: ${s(4)}; }
|
|
1146
1158
|
:host([gap='lg']) { gap: ${s(6)}; }
|
|
1147
1159
|
:host([gap='xl']) { gap: ${s(8)}; }
|
|
1148
|
-
`]}render(){return a`<slot></slot>`}},
|
|
1160
|
+
`]}render(){return a`<slot></slot>`}},Le=class extends c{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},imageSrc:{type:String,attribute:"image-src"},imageAlt:{type:String,attribute:"image-alt"},ratio:{type:String,reflect:!0},badge:{type:String},raised:{type:Boolean,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="default",this.padding="lg",this.imageSrc="",this.imageAlt="",this.ratio="16:9",this.badge="",this.raised=!1,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...c.styles,L,p`
|
|
1149
1161
|
:host {
|
|
1150
1162
|
display: flex;
|
|
1151
1163
|
flex-direction: column;
|
|
@@ -1233,7 +1245,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
1233
1245
|
p {
|
|
1234
1246
|
margin: 0;
|
|
1235
1247
|
}
|
|
1236
|
-
`]}render(){return a`<p part="text"><slot></slot></p>`}};customElements.define("impakt-stack",
|
|
1248
|
+
`]}render(){return a`<p part="text"><slot></slot></p>`}};customElements.define("impakt-stack",Ce);customElements.define("impakt-card",Le);customElements.define("impakt-heading",Re);customElements.define("impakt-text",_e);var Ie=class extends c{static{this.properties={href:{type:String},external:{type:Boolean,reflect:!0},externalText:{type:String,attribute:"external-text"},variant:{type:String,reflect:!0},icon:{type:String}}}constructor(){super(),this.href="",this.external=!1,this.externalText="opens in a new tab",this.variant="inline",this.icon="none"}static{this.styles=[...c.styles,x,p`
|
|
1237
1249
|
:host {
|
|
1238
1250
|
display: inline;
|
|
1239
1251
|
}
|
|
@@ -2068,7 +2080,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2068
2080
|
</div>
|
|
2069
2081
|
<div class="body" part="body"><slot></slot></div>
|
|
2070
2082
|
</dialog>
|
|
2071
|
-
`}};customElements.define("impakt-dialog",Xe);var Ye=class extends c{static{this.properties={items:{type:Array},look:{type:String,reflect:!0},size:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.look="bullet",this.size="md",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...c.styles,
|
|
2083
|
+
`}};customElements.define("impakt-dialog",Xe);var Ye=class extends c{static{this.properties={items:{type:Array},look:{type:String,reflect:!0},size:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.items=[],this.look="bullet",this.size="md",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...c.styles,L,p`
|
|
2072
2084
|
:host { display: block; }
|
|
2073
2085
|
ul, ol { list-style: none; margin: 0; padding: 0; display: grid; gap: ${s(3)}; counter-reset: point; }
|
|
2074
2086
|
li { position: relative; padding-inline-start: ${s(7)}; ${$("md")} text-wrap: pretty; counter-increment: point; }
|
|
@@ -2078,7 +2090,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2078
2090
|
:host([look='check']) li::before { content: '✓'; inset-inline-start: 0; inset-block-start: 0; inline-size: auto; block-size: auto; background: none; color: ${t.success}; font-weight: ${m("bold")}; }
|
|
2079
2091
|
:host([look='number']) li::before { content: counter(point, decimal-leading-zero); inset-inline-start: 0; inset-block-start: 0.2em; inline-size: auto; block-size: auto; background: none; font-family: ${t.fontMono}; font-size: 0.75em; color: ${t.textMuted}; }
|
|
2080
2092
|
@media (forced-colors: active) { li::before { background: CanvasText; } :host([look='check']) li::before, :host([look='number']) li::before { background: none; color: CanvasText; } }
|
|
2081
|
-
`]}render(){let e=(this.items??[]).map(i=>a`<li part="item">${i}</li>`);return this.look==="number"?a`<ol part="list">${e}</ol>`:a`<ul part="list" role="list">${e}</ul>`}};customElements.define("impakt-list",Ye);var zi={"2:1":"2fr 1fr","1:2":"1fr 2fr","3:1":"3fr 1fr","1:3":"1fr 3fr","1:2:1":"1fr 2fr 1fr","2:1:1":"2fr 1fr 1fr","1:1:2":"1fr 1fr 2fr"},Ge=class extends c{static{this.properties={columns:{type:String,reflect:!0},widths:{type:String,reflect:!0},gap:{type:String,reflect:!0},stackOn:{type:String,reflect:!0,attribute:"stack-on"},align:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.columns="two",this.widths="equal",this.gap="md",this.stackOn="phone",this.align="stretch",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...c.styles,
|
|
2093
|
+
`]}render(){let e=(this.items??[]).map(i=>a`<li part="item">${i}</li>`);return this.look==="number"?a`<ol part="list">${e}</ol>`:a`<ul part="list" role="list">${e}</ul>`}};customElements.define("impakt-list",Ye);var zi={"2:1":"2fr 1fr","1:2":"1fr 2fr","3:1":"3fr 1fr","1:3":"1fr 3fr","1:2:1":"1fr 2fr 1fr","2:1:1":"2fr 1fr 1fr","1:1:2":"1fr 1fr 2fr"},Ge=class extends c{static{this.properties={columns:{type:String,reflect:!0},widths:{type:String,reflect:!0},gap:{type:String,reflect:!0},stackOn:{type:String,reflect:!0,attribute:"stack-on"},align:{type:String,reflect:!0},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.columns="two",this.widths="equal",this.gap="md",this.stackOn="phone",this.align="stretch",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...c.styles,L,p`
|
|
2082
2094
|
:host { display: block; min-inline-size: 0; container-type: inline-size; }
|
|
2083
2095
|
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${u("layout.gutter.md","16px")}; align-items: stretch; }
|
|
2084
2096
|
:host([gap='none']) .columns { gap: 0; }
|
|
@@ -2141,7 +2153,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2141
2153
|
${i?a`<header part="header"><div class="inner"><slot name="header"></slot></div></header>`:l}
|
|
2142
2154
|
<main id="content" tabindex="-1" part="main"><div class="inner"><slot></slot></div></main>
|
|
2143
2155
|
${r?a`<footer part="footer"><div class="inner"><slot name="footer"></slot></div></footer>`:l}
|
|
2144
|
-
</div>`}opensOn(i){for(let r of Array.from(this.querySelectorAll("*"))){if(r===i)return!0;if(!r.closest('[slot="header"],[slot="footer"]')&&r.tagName.startsWith("IMPAKT-")&&!/^IMPAKT-(STACK|SECTION|GRID|ANNOUNCEMENT)$/.test(r.tagName))return!1}return!1}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>this.requestUpdate()),this.observer.observe(this,{childList:!0,attributes:!0,subtree:!1,attributeFilter:["slot"]}),this.watcher=new MutationObserver(this.place),this.watcher.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["treatment"]}),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(this.place),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect(),this.watcher?.disconnect(),this.resize?.disconnect()}firstUpdated(){this.place()}},Qe=class extends c{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},width:{type:String,reflect:!0},bleed:{type:Boolean,reflect:!0},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="none",this.padding="lg",this.width="standard",this.bleed=!0,this.label="",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...c.styles,
|
|
2156
|
+
</div>`}opensOn(i){for(let r of Array.from(this.querySelectorAll("*"))){if(r===i)return!0;if(!r.closest('[slot="header"],[slot="footer"]')&&r.tagName.startsWith("IMPAKT-")&&!/^IMPAKT-(STACK|SECTION|GRID|ANNOUNCEMENT)$/.test(r.tagName))return!1}return!1}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(()=>this.requestUpdate()),this.observer.observe(this,{childList:!0,attributes:!0,subtree:!1,attributeFilter:["slot"]}),this.watcher=new MutationObserver(this.place),this.watcher.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["treatment"]}),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(this.place),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect(),this.watcher?.disconnect(),this.resize?.disconnect()}firstUpdated(){this.place()}},Qe=class extends c{static{this.properties={tone:{type:String,reflect:!0},padding:{type:String,reflect:!0},width:{type:String,reflect:!0},bleed:{type:Boolean,reflect:!0},pattern:{type:String,reflect:!0},label:{type:String},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.tone="none",this.padding="lg",this.width="standard",this.bleed=!0,this.pattern="none",this.label="",this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...c.styles,L,ai,p`
|
|
2145
2157
|
:host { display: block; --impakt-page-margin: inherit; }
|
|
2146
2158
|
/* What a solid card on a brand band goes back to, since the band repaints these for its own text. */
|
|
2147
2159
|
:host([tone='brand']) { --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
|
|
@@ -2152,6 +2164,17 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2152
2164
|
:host([tone='inset']) .band { background: ${t.surfaceInset}; }
|
|
2153
2165
|
:host([tone='card']) .band { background: ${t.surfaceCard}; }
|
|
2154
2166
|
:host([tone='brand']) .band { background: ${t.brand}; color: ${t.onBrand}; --impakt-eyebrow: ${t.onBrand}; --impakt-color-surface-card: color-mix(in srgb, ${t.onBrand} 10%, transparent); --impakt-color-text-heading: ${t.onBrand}; --impakt-color-text-default: ${t.onBrand}; --impakt-color-text-muted: ${t.onBrand}; --impakt-color-text-link: ${t.onBrand}; --impakt-color-text-link-hover: ${t.onBrand}; }
|
|
2167
|
+
/* Ink and accent bands take their colours from the host, because the band repaints the text colour for what is inside it. */
|
|
2168
|
+
:host([tone='ink']) { --impakt-band: ${t.text}; --impakt-band-on: ${t.surfaceCard}; --impakt-band-muted: color-mix(in srgb, ${t.surfaceCard} 78%, ${t.text}); --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
|
|
2169
|
+
:host([tone='accent']) { --impakt-band: ${u("color.accent.default","#e2cc40")}; --impakt-band-on: ${u("color.accent.on","#1a1a1a")}; --impakt-band-muted: ${u("color.accent.on","#1a1a1a")}; --impakt-solid-card: ${t.surfaceCard}; --impakt-solid-text: ${t.text}; --impakt-solid-heading: var(--impakt-color-text-heading, ${t.text}); --impakt-solid-muted: ${t.textMuted}; }
|
|
2170
|
+
:host(:is([tone='ink'], [tone='accent'])) .band { background-color: var(--impakt-band); color: var(--impakt-band-on); --impakt-eyebrow: var(--impakt-band-muted); --impakt-color-surface-card: color-mix(in srgb, var(--impakt-band-on) 10%, transparent); --impakt-color-text-heading: var(--impakt-band-on); --impakt-color-text-default: var(--impakt-band-on); --impakt-color-text-muted: var(--impakt-band-muted); --impakt-color-text-link: var(--impakt-band-on); --impakt-color-text-link-hover: var(--impakt-band-on); }
|
|
2171
|
+
/* The lines are a tenth of the band's own text colour, so they suit any tone. They carry no meaning. */
|
|
2172
|
+
:host([pattern]:not([pattern='none'])) .band { --impakt-pattern-line: color-mix(in srgb, currentColor 10%, transparent); }
|
|
2173
|
+
:host(:is([pattern='grid'], [pattern='blueprint'])) .band { background-image: linear-gradient(to right, var(--impakt-pattern-line) 1px, transparent 1px), linear-gradient(to bottom, var(--impakt-pattern-line) 1px, transparent 1px); background-size: 7rem 7rem; }
|
|
2174
|
+
:host([pattern='blueprint']) .band { background-size: 1.75rem 1.75rem; }
|
|
2175
|
+
:host([pattern='columns']) .band { background-image: linear-gradient(to right, var(--impakt-pattern-line) 1px, transparent 1px); background-size: 5.625rem 100%; }
|
|
2176
|
+
:host([pattern='ruled']) .band { background-image: linear-gradient(to bottom, var(--impakt-pattern-line) 1px, transparent 1px); background-size: 100% 2.5rem; }
|
|
2177
|
+
@media (forced-colors: active) { .band { background-image: none !important; } }
|
|
2155
2178
|
:host(:not([bleed]):not([tone='none'])) .band { padding-inline: ${s(6)}; }
|
|
2156
2179
|
:host([padding='sm']) .band { padding-block: ${s(4)}; }
|
|
2157
2180
|
:host([padding='md']) .band { padding-block: ${s(8)}; }
|
|
@@ -2159,7 +2182,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2159
2182
|
:host([padding='xl']) .band { padding-block: ${s(16)}; }
|
|
2160
2183
|
:host([padding='2xl']) .band { padding-block: clamp(${s(14)}, 8vw, ${s(28)}); }
|
|
2161
2184
|
.content { max-inline-size: var(--impakt-page-inner); margin-inline: auto; }
|
|
2162
|
-
`]}render(){return a`<section class="band" part="band" aria-label=${this.label||l} role=${this.label?l:"presentation"}><div class="content" part="content"><slot></slot></div></section>`}};customElements.define("impakt-page",Je);customElements.define("impakt-section",Qe);function Ai(n){if(typeof location>"u"||!n||n.startsWith("#"))return null;let e;try{
|
|
2185
|
+
`]}render(){return a`<section class="band" part="band" aria-label=${this.label||l} role=${this.label?l:"presentation"}><div class="content" part="content"><slot></slot></div></section>`}};customElements.define("impakt-page",Je);customElements.define("impakt-section",Qe);function Ai(n){if(typeof location>"u"||!n||n.startsWith("#"))return null;let e;try{let r=new URL(n,location.href);if(r.origin!==location.origin)return null;e=r.pathname.replace(/\/$/,"")||"/"}catch{return null}let i=location.pathname.replace(/\/$/,"")||"/";return e===i?"page":e!=="/"&&i.startsWith(`${e}/`)?"section":null}var et=class extends c{constructor(){super();this.menuOpen=!1;this.needs=0;this.links=[],this.label="Main",this.menuText="Menu",this.menuLook="button",this.size="md",this.align="end"}static{this.properties={links:{type:Array},label:{type:String},menuText:{type:String,attribute:"menu-text"},menuLook:{type:String,reflect:!0,attribute:"menu-look"},size:{type:String,reflect:!0},align:{type:String,reflect:!0}}}get open(){return this.menuOpen}set open(i){this.menuOpen=i,this.requestUpdate()}static{this.styles=[...c.styles,x,p`
|
|
2163
2186
|
/* It grows to fill a row it sits in, because it measures itself to decide when to fold. */
|
|
2164
2187
|
:host { display: block; flex: 1 1 8rem; min-inline-size: 0; }
|
|
2165
2188
|
nav { display: flex; flex-direction: column; position: relative; }
|
|
@@ -2296,7 +2319,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2296
2319
|
</div>
|
|
2297
2320
|
<div class="body" part="body"><slot></slot></div>
|
|
2298
2321
|
<div class="foot" part="footer" ?hidden=${!this.hasFooter}><slot name="footer" @slotchange=${this.footerChanged}></slot></div>
|
|
2299
|
-
</dialog>`}},
|
|
2322
|
+
</dialog>`}},Ci={neutral:"info",success:"check",warning:"warning",danger:"warning"},lt=class extends c{static{this.properties={open:{type:Boolean,reflect:!0},message:{type:String},tone:{type:String,reflect:!0},duration:{type:Number},actionText:{type:String,attribute:"action-text"},closeLabel:{type:String,attribute:"close-label"}}}constructor(){super(),this.open=!1,this.message="",this.tone="neutral",this.duration=6,this.actionText="",this.closeLabel="Dismiss"}static{this.styles=[...c.styles,x,p`
|
|
2300
2323
|
.region { position: fixed; inset-block-end: calc(${s(4)} + env(safe-area-inset-bottom, 0px) + var(--impakt-bottom-bar, 0px)); inset-inline-end: ${s(4)}; z-index: 1000; inline-size: min(24rem, calc(100vw - ${s(8)})); pointer-events: none; }
|
|
2301
2324
|
@media (max-width: 40rem) { .region { inset-inline: ${s(3)}; inline-size: auto; inset-block-end: calc(${s(3)} + env(safe-area-inset-bottom, 0px) + var(--impakt-bottom-bar, 0px)); } }
|
|
2302
2325
|
.toast { pointer-events: auto; max-block-size: 40vh; overflow: auto; display: flex; align-items: flex-start; gap: ${s(3)}; padding: ${s(3)} ${s(3)} ${s(3)} ${s(4)}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: ${t.radiusXl}; box-shadow: ${t.shadowXl}, 0 0 0 1px color-mix(in srgb, ${t.text} 8%, transparent); animation: rise 220ms cubic-bezier(0.16, 1, 0.3, 1); }
|
|
@@ -2313,7 +2336,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2313
2336
|
`,E(".action, .close")]}disconnectedCallback(){super.disconnectedCallback(),this.stop()}updated(e){(e.has("open")||e.has("duration"))&&(this.stop(),this.open&&this.start())}start(){this.stop(),this.duration>0&&!this.actionText&&(this.timer=setTimeout(()=>this.close(),this.duration*1e3))}stop(){this.timer&&clearTimeout(this.timer),this.timer=void 0}close(){this.stop(),this.open&&(this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0})))}action(){this.dispatchEvent(new CustomEvent("impakt-action",{bubbles:!0,composed:!0})),this.close()}render(){return a`<div class="region" role="status" aria-live="polite">
|
|
2314
2337
|
${this.open?a`<div class="toast" part="toast" @mouseenter=${this.stop} @mouseleave=${this.start} @focusin=${this.stop} @focusout=${this.start}
|
|
2315
2338
|
@keydown=${e=>{e.key==="Escape"&&(e.preventDefault(),this.close())}}>
|
|
2316
|
-
<span class="mark">${T(
|
|
2339
|
+
<span class="mark">${T(Ci[this.tone]??"info","20px")}</span>
|
|
2317
2340
|
<p class="message">${this.message}</p>
|
|
2318
2341
|
${this.actionText?a`<button class="action" type="button" @click=${this.action}>${this.actionText}</button>`:l}
|
|
2319
2342
|
<button class="close" type="button" aria-label=${this.closeLabel} @click=${this.close}>${T("close","16px")}</button>
|
|
@@ -2338,7 +2361,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2338
2361
|
@click=${()=>this.toggle(!this.open)} @keydown=${this.triggerKey}><slot name="trigger">${T(this.icon,"18px")}${this.label}</slot><span class="chev" part="chevron">${T("chevron-down","16px")}</span></button>
|
|
2339
2362
|
${this.open?a`<div class="panel" part="panel">${this.querySelector(':scope > [slot="header"]')?a`<div class="header" part="header"><slot name="header"></slot></div>`:l}<ul class="list" part="list" id=${this.id_("list")} role="menu" aria-label=${this.label} @keydown=${this.listKey}>
|
|
2340
2363
|
${this.items.map(r=>a`<li role="none">${r.href?a`<a class="item ${r.tone==="danger"?"danger":""}" role="menuitem" tabindex="-1" href=${r.href} @click=${()=>this.choose(r)}>${i(r)}</a>`:a`<button class="item ${r.tone==="danger"?"danger":""}" role="menuitem" tabindex="-1" type="button" @click=${()=>this.choose(r)}>${i(r)}</button>`}</li>`)}
|
|
2341
|
-
</ul></div>`:l}`}};function
|
|
2364
|
+
</ul></div>`:l}`}};function Li(n,e){let i=[...new Set([1,n-1,n,n+1,e])].filter(r=>r>=1&&r<=e).sort((r,o)=>r-o);return i.flatMap((r,o)=>{let d=i[o-1];return d===void 0||r===d+1?[r]:r===d+2?[d+1,r]:["gap",r]})}var ct=class extends c{static{this.properties={page:{type:Number},pages:{type:Number},hrefPattern:{type:String,attribute:"href-pattern"},label:{type:String},previousText:{type:String,attribute:"previous-text"},nextText:{type:String,attribute:"next-text"}}}constructor(){super(),this.page=1,this.pages=1,this.hrefPattern="",this.label="Pages",this.previousText="Previous",this.nextText="Next"}static{this.styles=[...c.styles,x,E(".n, .step"),p`
|
|
2342
2365
|
:host { display: block; container-type: inline-size; }
|
|
2343
2366
|
nav { display: flex; align-items: center; justify-content: space-between; gap: ${s(2)}; }
|
|
2344
2367
|
ul { display: flex; align-items: center; gap: ${s(1)}; margin: 0; padding: 0; list-style: none; }
|
|
@@ -2351,7 +2374,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2351
2374
|
@container (max-width: 34rem) { ul { display: none; } .count { display: block; } }
|
|
2352
2375
|
`]}go(e,i){this.hrefPattern||(i.preventDefault(),this.page=e,this.dispatchEvent(new CustomEvent("impakt-page",{detail:{page:e},bubbles:!0,composed:!0})))}link(e,i,r,o,d){return this.hrefPattern?a`<a class=${i} href=${this.hrefPattern.replace("{page}",String(e))} aria-label=${o} aria-current=${d?"page":l}>${r}</a>`:a`<button class=${i} type="button" aria-label=${o} aria-current=${d?"page":l} @click=${h=>this.go(e,h)}>${r}</button>`}step(e,i,r,o){let d=r==="arrow-left"?a`${T(r,"16px")}${i}`:a`${i}${T(r,"16px")}`;return o?a`<span class="step" aria-disabled="true">${d}</span>`:this.link(e,"step",d,i,!1)}render(){let e=Math.min(Math.max(this.page,1),Math.max(this.pages,1));return a`<nav aria-label=${this.label} part="nav">
|
|
2353
2376
|
${this.step(e-1,this.previousText,"arrow-left",e<=1)}
|
|
2354
|
-
<ul>${
|
|
2377
|
+
<ul>${Li(e,this.pages).map(i=>a`<li>${i==="gap"?a`<span class="gap" aria-hidden="true">…</span>`:this.link(i,"n",i,v("Page {page}",{page:i}),i===e)}</li>`)}</ul>
|
|
2355
2378
|
<span class="count">${v("Page {page} of {pages}",{page:e,pages:this.pages})}</span>
|
|
2356
2379
|
${this.step(e+1,this.nextText,"arrow-right",e>=this.pages)}
|
|
2357
2380
|
</nav>`}},Ri=n=>{let e=n.trim().split(/\s+/).filter(Boolean);return((e[0]?.[0]??"")+(e.length>1?e[e.length-1][0]:"")).toUpperCase()},pt=class extends c{constructor(){super();this.failed=!1;this.fullName="",this.src="",this.size="md"}static{this.properties={fullName:{type:String,attribute:"full-name"},src:{type:String},size:{type:String,reflect:!0}}}static{this.styles=[...c.styles,p`
|
|
@@ -2372,7 +2395,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2372
2395
|
`]}render(){let e=this.items.slice(0,this.max),i=this.items.length-e.length;return a`<ul part="list">
|
|
2373
2396
|
${e.map(r=>a`<li><impakt-avatar full-name=${r.name} src=${r.src??""} size=${this.size}></impakt-avatar></li>`)}
|
|
2374
2397
|
${i>0?a`<li><span class="more"><span aria-hidden="true">+${i}</span><span class="sr">${i} ${this.moreLabel}</span></span></li>`:l}
|
|
2375
|
-
</ul>`}},ut=class extends c{static{this.properties={icon:{type:String},heading:{type:String},lead:{type:String},framed:{type:Boolean,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.icon="search",this.heading="",this.lead="",this.framed=!1,this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...c.styles,
|
|
2398
|
+
</ul>`}},ut=class extends c{static{this.properties={icon:{type:String},heading:{type:String},lead:{type:String},framed:{type:Boolean,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.icon="search",this.heading="",this.lead="",this.framed=!1,this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...c.styles,L,p`
|
|
2376
2399
|
.wrap { display: flex; flex-direction: column; align-items: center; gap: ${s(2)}; padding: ${s(12)} ${s(6)}; text-align: center; }
|
|
2377
2400
|
:host([framed]) .wrap { border: ${t.borderThin} dashed ${t.border}; border-radius: ${t.radiusXl}; }
|
|
2378
2401
|
.mark { display: inline-flex; align-items: center; justify-content: center; inline-size: 56px; block-size: 56px; margin-block-end: ${s(2)}; color: ${t.brand}; background: ${t.brandSubtle}; border-radius: 50%; }
|
|
@@ -2476,7 +2499,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2476
2499
|
${this.addresses.map(e=>a`<option value=${e.line} ?selected=${e.line===this.value}>${e.line}</option>`)}
|
|
2477
2500
|
</select></div>`:this.searched&&!this.busy?a`<p class="note" role="status">${this.notFoundText}</p>`:l}
|
|
2478
2501
|
<button class="quiet switch" type="button" @click=${()=>{this.manual=!0}}>${this.manualText}</button>
|
|
2479
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},gt=class extends c{static{this.properties={heading:{type:String},items:{type:Array},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="There is a problem",this.items=[],this.spaceAbove="none",this.spaceBelow="md"}static{this.styles=[...c.styles,x,
|
|
2502
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},gt=class extends c{static{this.properties={heading:{type:String},items:{type:Array},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="There is a problem",this.items=[],this.spaceAbove="none",this.spaceBelow="md"}static{this.styles=[...c.styles,x,L,E("a"),p`
|
|
2480
2503
|
:host { display: block; }
|
|
2481
2504
|
.box { padding: ${s(5)}; border: ${t.borderThick} solid ${t.danger}; border-inline-start-width: 6px; border-radius: ${t.radiusLg}; background: ${t.surfaceCard}; }
|
|
2482
2505
|
.box:focus { outline: 3px solid ${t.danger}; outline-offset: 2px; }
|
|
@@ -2533,7 +2556,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2533
2556
|
<div class="error" id=${this.id_("error")} aria-live="polite">${this.error||l}</div>
|
|
2534
2557
|
`}renderControl(){return a`<input id=${this.controlId} type="range" min=${this.lowest} max=${this.highest} step=${this.step} .value=${this.value} ?disabled=${this.disabled}
|
|
2535
2558
|
aria-valuetext=${this.shownAs(Number(this.value)||0)} aria-describedby=${this.describedBy}
|
|
2536
|
-
@input=${e=>this.setFormValue(e.target.value)} />`}},oi={done:"Completed","in-progress":"In progress","not-started":"Not started","cannot-start":"Cannot start yet"},ft=class extends c{static{this.properties={heading:{type:String},items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="Your application",this.items=[],this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...c.styles,x,
|
|
2559
|
+
@input=${e=>this.setFormValue(e.target.value)} />`}},oi={done:"Completed","in-progress":"In progress","not-started":"Not started","cannot-start":"Cannot start yet"},ft=class extends c{static{this.properties={heading:{type:String},items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},spaceAbove:{type:String,reflect:!0,attribute:"space-above"},spaceBelow:{type:String,reflect:!0,attribute:"space-below"}}}constructor(){super(),this.heading="Your application",this.items=[],this.headingLevel=2,this.spaceAbove="none",this.spaceBelow="none"}static{this.styles=[...c.styles,x,L,E("a"),p`
|
|
2537
2560
|
:host { display: block; }
|
|
2538
2561
|
.h { margin: 0 0 ${s(2)}; ${$("xl")} font-weight: ${m("bold")}; color: ${t.textHeading}; }
|
|
2539
2562
|
.count { margin: 0 0 ${s(4)}; color: ${t.textMuted}; }
|
|
@@ -2553,7 +2576,7 @@ var ce=globalThis,pe=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeSha
|
|
|
2553
2576
|
<span>${i.href&&i.status!=="cannot-start"?a`<a href=${i.href} aria-describedby=${this.id_(`s-${i.id}`)}>${i.title}</a>`:a`<span class="title">${i.title}</span>`}
|
|
2554
2577
|
${i.hint?a`<span class="hint">${i.hint}</span>`:l}</span>
|
|
2555
2578
|
<span class="tag" data-status=${i.status} id=${this.id_(`s-${i.id}`)}>${oi[i.status]?v(oi[i.status]):i.status}</span>
|
|
2556
|
-
</li>`)}</ul>`}};D.createProperty("manual",{state:!0});D.createProperty("postcode",{state:!0});D.createProperty("searched",{state:!0});D.createProperty("busy",{state:!0});V.createProperty("files",{state:!0});V.createProperty("over",{state:!0});V.createProperty("said",{state:!0});le.createProperty("shown",{state:!0});customElements.define("impakt-address-lookup",D);customElements.define("impakt-error-summary",gt);customElements.define("impakt-file-upload",V);customElements.define("impakt-money-input",le);customElements.define("impakt-range-input",bt);customElements.define("impakt-task-list",ft);export{se as CYCLE,b as FieldElement,Rt as ICONS,vi as ICON_NAMES,De as ImpaktAccordion,D as ImpaktAddressLookup,Ae as ImpaktAlert,ke as ImpaktAppShell,pt as ImpaktAvatar,ht as ImpaktAvatarGroup,Ue as ImpaktBadge,tt as ImpaktBreadcrumbs,ge as ImpaktButton,
|
|
2579
|
+
</li>`)}</ul>`}};D.createProperty("manual",{state:!0});D.createProperty("postcode",{state:!0});D.createProperty("searched",{state:!0});D.createProperty("busy",{state:!0});V.createProperty("files",{state:!0});V.createProperty("over",{state:!0});V.createProperty("said",{state:!0});le.createProperty("shown",{state:!0});customElements.define("impakt-address-lookup",D);customElements.define("impakt-error-summary",gt);customElements.define("impakt-file-upload",V);customElements.define("impakt-money-input",le);customElements.define("impakt-range-input",bt);customElements.define("impakt-task-list",ft);export{se as CYCLE,b as FieldElement,Rt as ICONS,vi as ICON_NAMES,De as ImpaktAccordion,D as ImpaktAddressLookup,Ae as ImpaktAlert,ke as ImpaktAppShell,pt as ImpaktAvatar,ht as ImpaktAvatarGroup,Ue as ImpaktBadge,tt as ImpaktBreadcrumbs,ge as ImpaktButton,Le as ImpaktCard,$e as ImpaktCheckbox,Ve as ImpaktCheckboxGroup,je as ImpaktChip,Ke as ImpaktDateInput,we as ImpaktDateTile,Xe as ImpaktDialog,it as ImpaktDivider,Ne as ImpaktDocumentLink,nt as ImpaktDrawer,c as ImpaktElement,ut as ImpaktEmptyState,gt as ImpaktErrorSummary,ot as ImpaktFieldset,V as ImpaktFileUpload,Te as ImpaktFilterChip,Ge as ImpaktGrid,Re as ImpaktHeading,Ze as ImpaktHelp,me as ImpaktIcon,He as ImpaktImage,Ie as ImpaktLink,Ye as ImpaktList,Be as ImpaktLogo,dt as ImpaktMenu,le as ImpaktMoneyInput,et as ImpaktNav,Je as ImpaktPage,ct as ImpaktPagination,Oe as ImpaktPrice,Fe as ImpaktProgress,Ee as ImpaktRadioGroup,bt as ImpaktRangeInput,Se as ImpaktRow,Qe as ImpaktSection,Me as ImpaktSegmentedControl,fe as ImpaktSelect,ye as ImpaktSideNav,mt as ImpaktSlotPicker,rt as ImpaktSpacer,Ce as ImpaktStack,ve as ImpaktStatTile,qe as ImpaktSummaryList,ze as ImpaktSwitch,xe as ImpaktTabBar,Pe as ImpaktTable,at as ImpaktTabs,ft as ImpaktTaskList,_e as ImpaktText,be as ImpaktTextInput,We as ImpaktTextarea,lt as ImpaktToast,st as ImpaktVisuallyHidden,N as LitElement,re as TONE,ie as announceNavigate,ii as base,p as css,I as fieldWidths,x as focusRing,g as fontSize,m as fontWeight,Nt as groupDigits,ri as hideOn,a as html,T as iconSvg,_t as isCurrent,R as lineHeight,ne as lockScroll,P as noChange,l as nothing,_ as pageLocale,ti as reducedMotion,Ct as render,v as say,s as space,L as spaceAround,f as svg,t,w as targetSize,u as token,It as toneOf,E as touchTarget,$ as type,W as unlockScroll,C as unsafeCSS,S as visuallyHidden};
|
|
2557
2580
|
/*! Bundled license information:
|
|
2558
2581
|
|
|
2559
2582
|
@lit/reactive-element/css-tag.js:
|