@atomic-ui/ui 0.12.0 → 0.13.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 +39 -1
- package/dist/base/FieldElement.d.ts +20 -2
- package/dist/{chunk-2WHOBIOY.js → chunk-2BGOBD6Y.js} +2 -2
- package/dist/{chunk-FLAUZU7Y.js → chunk-2RC3QKYA.js} +84 -27
- package/dist/chunk-2RC3QKYA.js.map +1 -0
- package/dist/{chunk-UYTIJCCW.js → chunk-B2GWXXIW.js} +2 -2
- package/dist/{chunk-CFCFKLTN.js → chunk-EA3M6KPB.js} +11 -1
- package/dist/chunk-EA3M6KPB.js.map +1 -0
- package/dist/{chunk-R6YMSJR7.js → chunk-EFP7PJ6C.js} +68 -25
- package/dist/chunk-EFP7PJ6C.js.map +1 -0
- package/dist/{chunk-5IGBH4GL.js → chunk-EUOBFMWC.js} +2 -2
- package/dist/{chunk-FZWUQC42.js → chunk-F2MFV7RM.js} +2 -2
- package/dist/{chunk-3GPGDERO.js → chunk-G7CVRNY5.js} +2 -2
- package/dist/{chunk-2TNF7O43.js → chunk-LSEK5MEZ.js} +2 -2
- package/dist/{chunk-DXLEYNID.js → chunk-LVBYNQ45.js} +5 -3
- package/dist/chunk-LVBYNQ45.js.map +1 -0
- package/dist/{chunk-BAITBJUC.js → chunk-MGDX7Z74.js} +50 -18
- package/dist/chunk-MGDX7Z74.js.map +1 -0
- package/dist/{chunk-5HCWL2YD.js → chunk-P5FAKEFK.js} +2 -2
- package/dist/{chunk-HSXLSJVG.js → chunk-PII4SJL5.js} +32 -16
- package/dist/chunk-PII4SJL5.js.map +1 -0
- package/dist/{chunk-ALFE35FS.js → chunk-QJBRENLI.js} +3 -3
- package/dist/{chunk-ALFE35FS.js.map → chunk-QJBRENLI.js.map} +1 -1
- package/dist/{chunk-LXVPWTSY.js → chunk-RCZPRFHQ.js} +37 -21
- package/dist/chunk-RCZPRFHQ.js.map +1 -0
- package/dist/{chunk-3KAFK24X.js → chunk-RNFGIXJ7.js} +2 -2
- package/dist/{chunk-SOYKSPPX.js → chunk-SY7NTW3U.js} +2 -2
- package/dist/{chunk-P3BPW446.js → chunk-UBNCJROR.js} +3 -3
- package/dist/{chunk-P3BPW446.js.map → chunk-UBNCJROR.js.map} +1 -1
- package/dist/{chunk-F3NHPQU5.js → chunk-WEX5RKVC.js} +37 -7
- package/dist/chunk-WEX5RKVC.js.map +1 -0
- package/dist/{chunk-CQT3VPYK.js → chunk-WT7MHYJR.js} +2 -2
- package/dist/components/accordion.js +1 -1
- package/dist/components/app-bar.js +3 -3
- package/dist/components/app-ui.js +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.js +2 -2
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip-group.js +2 -2
- package/dist/components/date-input.js +2 -2
- package/dist/components/dialog.js +1 -1
- package/dist/components/journey.js +2 -2
- package/dist/components/layout.js +1 -1
- package/dist/components/navigation.js +1 -1
- package/dist/components/page.js +1 -1
- package/dist/components/radio-group.js +2 -2
- package/dist/components/rows.js +1 -1
- package/dist/components/select.d.ts +6 -0
- package/dist/components/select.js +2 -2
- package/dist/components/switch.js +2 -2
- package/dist/components/text-input.js +2 -2
- package/dist/components/textarea.js +2 -2
- package/dist/index.js +20 -20
- package/dist/server.d.ts +42 -0
- package/dist/server.js +26 -0
- package/dist/server.js.map +1 -0
- package/dist/standalone/atomic-ui.js +880 -775
- package/dist/standalone/atomic-ui.js.map +3 -3
- package/package.json +6 -2
- package/dist/chunk-BAITBJUC.js.map +0 -1
- package/dist/chunk-CFCFKLTN.js.map +0 -1
- package/dist/chunk-DXLEYNID.js.map +0 -1
- package/dist/chunk-F3NHPQU5.js.map +0 -1
- package/dist/chunk-FLAUZU7Y.js.map +0 -1
- package/dist/chunk-HSXLSJVG.js.map +0 -1
- package/dist/chunk-LXVPWTSY.js.map +0 -1
- package/dist/chunk-R6YMSJR7.js.map +0 -1
- /package/dist/{chunk-2WHOBIOY.js.map → chunk-2BGOBD6Y.js.map} +0 -0
- /package/dist/{chunk-UYTIJCCW.js.map → chunk-B2GWXXIW.js.map} +0 -0
- /package/dist/{chunk-5IGBH4GL.js.map → chunk-EUOBFMWC.js.map} +0 -0
- /package/dist/{chunk-FZWUQC42.js.map → chunk-F2MFV7RM.js.map} +0 -0
- /package/dist/{chunk-3GPGDERO.js.map → chunk-G7CVRNY5.js.map} +0 -0
- /package/dist/{chunk-2TNF7O43.js.map → chunk-LSEK5MEZ.js.map} +0 -0
- /package/dist/{chunk-5HCWL2YD.js.map → chunk-P5FAKEFK.js.map} +0 -0
- /package/dist/{chunk-3KAFK24X.js.map → chunk-RNFGIXJ7.js.map} +0 -0
- /package/dist/{chunk-SOYKSPPX.js.map → chunk-SY7NTW3U.js.map} +0 -0
- /package/dist/{chunk-CQT3VPYK.js.map → chunk-WT7MHYJR.js.map} +0 -0
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/* @atomic-ui/ui version 0.
|
|
2
|
-
var
|
|
3
|
-
\f\r]`,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),mi=/'/g,gi=/"/g,$i=/^(?:script|style|textarea|title)$/i,Yt=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),s=Yt(1),y=Yt(2),Mr=Yt(3),_=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),bi=new WeakMap,W=V.createTreeWalker(V,129);function xi(n,e){if(!Gt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return pi!==void 0?pi.createHTML(e):e}var yi=(n,e)=>{let i=n.length-1,a=[],o,d=e===2?"<svg>":e===3?"<math>":"",c=te;for(let $=0;$<i;$++){let g=n[$],v,L,E=-1,O=0;for(;O<g.length&&(c.lastIndex=O,L=c.exec(g),L!==null);)O=c.lastIndex,c===te?L[1]==="!--"?c=hi:L[1]!==void 0?c=ui:L[2]!==void 0?($i.test(L[2])&&(o=RegExp("</"+L[2],"g")),c=U):L[3]!==void 0&&(c=U):c===U?L[0]===">"?(c=o??te,E=-1):L[1]===void 0?E=-2:(E=c.lastIndex-L[2].length,v=L[1],c=L[3]===void 0?U:L[3]==='"'?gi:mi):c===gi||c===mi?c=U:c===hi||c===ui?c=te:(c=U,o=void 0);let q=c===U&&n[$+1].startsWith("/>")?" ":"";d+=c===te?g+Wi:E>=0?(a.push(v),g.slice(0,E)+Vt+g.slice(E)+P+q):g+P+(E===-2?$:q)}return[xi(n,d+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),a]},ae=class n{constructor({strings:e,_$litType$:i},a){let o;this.parts=[];let d=0,c=0,$=e.length-1,g=this.parts,[v,L]=yi(e,i);if(this.el=n.createElement(v,a),W.currentNode=this.el.content,i===2||i===3){let E=this.el.content.firstChild;E.replaceWith(...E.childNodes)}for(;(o=W.nextNode())!==null&&g.length<$;){if(o.nodeType===1){if(o.hasAttributes())for(let E of o.getAttributeNames())if(E.endsWith(Vt)){let O=L[c++],q=o.getAttribute(E).split(P),fe=/([.?@])?(.*)/.exec(O);g.push({type:1,index:d,name:fe[2],strings:q,ctor:fe[1]==="."?ye:fe[1]==="?"?ke:fe[1]==="@"?ve:G}),o.removeAttribute(E)}else E.startsWith(P)&&(g.push({type:6,index:d}),o.removeAttribute(E));if($i.test(o.tagName)){let E=o.textContent.split(P),O=E.length-1;if(O>0){o.textContent=$e?$e.emptyScript:"";for(let q=0;q<O;q++)o.append(E[q],ie()),W.nextNode(),g.push({type:2,index:++d});o.append(E[O],ie())}}}else if(o.nodeType===8)if(o.data===Kt)g.push({type:2,index:d});else{let E=-1;for(;(E=o.data.indexOf(P,E+1))!==-1;)g.push({type:7,index:d}),E+=P.length-1}d++}}static createElement(e,i){let a=V.createElement("template");return a.innerHTML=e,a}};function K(n,e,i=n,a){if(e===_)return e;let o=a!==void 0?i._$Co?.[a]:i._$Cl,d=re(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,a)),a!==void 0?(i._$Co??=[])[a]=o:i._$Cl=o),o!==void 0&&(e=K(n,o._$AS(n,e.values),o,a)),e}var xe=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:a}=this._$AD,o=(e?.creationScope??V).importNode(i,!0);W.currentNode=o;let d=W.nextNode(),c=0,$=0,g=a[0];for(;g!==void 0;){if(c===g.index){let v;g.type===2?v=new Z(d,d.nextSibling,this,e):g.type===1?v=new g.ctor(d,g.name,g.strings,this,e):g.type===6&&(v=new we(d,this,e)),this._$AV.push(v),g=a[++$]}c!==g?.index&&(d=W.nextNode(),c++)}return W.currentNode=V,o}p(e){let i=0;for(let a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(e,a,i),i+=a.strings.length-2):a._$AI(e[i])),i++}},Z=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,a,o){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=a,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),re(e)?e===l||e==null||e===""?(this._$AH!==l&&this._$AR(),this._$AH=l):e!==this._$AH&&e!==_&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):fi(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&&re(this._$AH)?this._$AA.nextSibling.data=e:this.T(V.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:a}=e,o=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=ae.createElement(xi(a.h,a.h[0]),this.options)),a);if(this._$AH?._$AD===o)this._$AH.p(i);else{let d=new xe(o,this),c=d.u(this.options);d.p(i),this.T(c),this._$AH=d}}_$AC(e){let i=bi.get(e.strings);return i===void 0&&bi.set(e.strings,i=new ae(e)),i}k(e){Gt(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,a,o=0;for(let d of e)o===i.length?i.push(a=new n(this.O(ie()),this.O(ie()),this,this.options)):a=i[o],a._$AI(d),o++;o<i.length&&(this._$AR(a&&a._$AB.nextSibling,o),i.length=o)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let a=ci(e).nextSibling;ci(e).remove(),e=a}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},G=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,a,o,d){this.type=1,this._$AH=l,this._$AN=void 0,this.element=e,this.name=i,this._$AM=o,this.options=d,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=l}_$AI(e,i=this,a,o){let d=this.strings,c=!1;if(d===void 0)e=K(this,e,i,0),c=!re(e)||e!==this._$AH&&e!==_,c&&(this._$AH=e);else{let $=e,g,v;for(e=d[0],g=0;g<d.length-1;g++)v=K(this,$[a+g],i,g),v===_&&(v=this._$AH[g]),c||=!re(v)||v!==this._$AH[g],v===l?e=l:e!==l&&(e+=(v??"")+d[g+1]),this._$AH[g]=v}c&&!o&&this.j(e)}j(e){e===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ye=class extends G{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===l?void 0:e}},ke=class extends G{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==l)}},ve=class extends G{constructor(e,i,a,o,d){super(e,i,a,o,d),this.type=5}_$AI(e,i=this){if((e=K(this,e,i,0)??l)===_)return;let a=this._$AH,o=e===l&&a!==l||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,d=e!==l&&(a===l||o);o&&this.element.removeEventListener(this.name,this,a),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)}},we=class{constructor(e,i,a){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(e){K(this,e)}},R={M:Vt,P,A:Kt,C:1,L:yi,R:xe,D:fi,V:K,I:Z,H:G,N:ke,U:ve,B:ye,F:we},Vi=Wt.litHtmlPolyfillSupport;Vi?.(ae,Z),(Wt.litHtmlVersions??=[]).push("3.3.3");var se=(n,e,i)=>{let a=i?.renderBefore??e,o=a._$litPart$;if(o===void 0){let d=i?.renderBefore??null;a._$litPart$=o=new Z(e.insertBefore(ie(),d),d,void 0,i??{})}return o._$AI(n),o};var Xt=null,ki={boundAttributeSuffix:R.M,marker:R.P,markerMatch:R.A,HTML_RESULT:R.C,getTemplateHtml:R.L,overrideDirectiveResolve:(n,e)=>class extends n{_$AS(i,a){return e(this,a)}},patchDirectiveResolve:(n,e)=>{if(n.prototype._$AS.name!==e.name){Xt??=n.prototype._$AS.name;for(let i=n.prototype;i!==Object.prototype;i=Object.getPrototypeOf(i))if(i.hasOwnProperty(Xt))return void(i[Xt]=e);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(n,e){n._$litDirective$=e},getAttributePartCommittedValue:(n,e,i)=>{let a=_;return n.j=o=>a=o,n._$AI(e,n,i),a},connectedDisconnectable:n=>({...n,_$AU:!0}),resolveDirective:R.V,AttributePart:R.H,PropertyPart:R.B,BooleanAttributePart:R.N,EventPart:R.U,ElementPart:R.F,TemplateInstance:R.R,isIterable:R.D,ChildPart:R.I};var J={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};var{I:_r}=R;var vi=n=>n===null||typeof n!="object"&&typeof n!="function";var wi=(n,e)=>e===void 0?n?._$litType$!==void 0:n?._$litType$===e,Ti=n=>n?._$litType$?.h!=null;var Si=n=>n.strings===void 0;var{TemplateInstance:Ki,isIterable:Gi,resolveDirective:Mi,ChildPart:oe,ElementPart:Yi}=ki,Ei=(n,e,i={})=>{if(e._$litPart$!==void 0)throw Error("container already contains a live render");let a,o,d,c=[],$=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),g;for(;(g=$.nextNode())!==null;){let v=g.data;if(v.startsWith("lit-part")){if(c.length===0&&a!==void 0)throw Error(`There must be only one root part per container. Found a part marker (${g}) when we already have a root part marker (${o})`);d=Xi(n,g,c,i),a===void 0&&(a=d),o??=g}else if(v.startsWith("lit-node"))Ji(g,c,i);else if(v.startsWith("/lit-part")){if(c.length===1&&d!==a)throw Error("internal error");d=Zi(g,d,c)}}if(a===void 0){let v=e instanceof ShadowRoot?"{container.host.localName}'s shadow root":e instanceof DocumentFragment?"DocumentFragment":e.localName;console.error(`There should be exactly one root part in a render container, but we didn't find any in ${v}.`)}e._$litPart$=a},Xi=(n,e,i,a)=>{let o,d;if(i.length===0)d=new oe(e,null,void 0,a),o=n;else{let c=i[i.length-1];if(c.type==="template-instance")d=new oe(e,null,c.instance,a),c.instance._$AV.push(d),o=c.result.values[c.instancePartIndex++],c.templatePartIndex++;else if(c.type==="iterable"){d=new oe(e,null,c.part,a);let $=c.iterator.next();if($.done)throw o=void 0,c.done=!0,Error("Unhandled shorter than expected iterable");o=$.value,c.part._$AH.push(d)}else d=new oe(e,null,c.part,a)}if(o=Mi(d,o),o===_)i.push({part:d,type:"leaf"});else if(vi(o))i.push({part:d,type:"leaf"}),d._$AH=o;else if(wi(o)){if(Ti(o))throw Error("compiled templates are not supported");let c="lit-part "+Qi(o);if(e.data!==c)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{let $=oe.prototype._$AC(o),g=new Ki($,d);i.push({type:"template-instance",instance:g,part:d,templatePartIndex:0,instancePartIndex:0,result:o}),d._$AH=g}}else Gi(o)?(i.push({part:d,type:"iterable",value:o,iterator:o[Symbol.iterator](),done:!1}),d._$AH=[]):(i.push({part:d,type:"leaf"}),d._$AH=o??"");return d},Zi=(n,e,i)=>{if(e===void 0)throw Error("unbalanced part marker");e._$AB=n;let a=i.pop();if(a.type==="iterable"&&!a.iterator.next().done)throw Error("unexpected longer than expected iterable");if(i.length>0)return i[i.length-1].part},Ji=(n,e,i)=>{let a=/lit-node (\d+)/.exec(n.data),o=parseInt(a[1]),d=n.nextElementSibling;if(d===null)throw Error("could not find node for attribute parts");d.removeAttribute("defer-hydration");let c=e[e.length-1];if(c.type!=="template-instance")throw Error("Hydration value mismatch: Primitive found where TemplateResult expected. This usually occurs due to conditional rendering that resulted in a different value or template being rendered between the server and client.");{let $=c.instance;for(;;){let g=$._$AD.parts[c.templatePartIndex];if(g===void 0||g.type!==J.ATTRIBUTE&&g.type!==J.ELEMENT||g.index!==o)break;if(g.type===J.ATTRIBUTE){let v=new g.ctor(d,g.name,g.strings,c.instance,i),L=Si(v)?c.result.values[c.instancePartIndex]:c.result.values,E=!(v.type===J.EVENT||v.type===J.PROPERTY);v._$AI(L,v,c.instancePartIndex,E),c.instancePartIndex+=g.strings.length-1,$._$AV.push(v)}else{let v=new Yi(d,c.instance,i);Mi(v,c.result.values[c.instancePartIndex++]),$._$AV.push(v)}c.templatePartIndex++}}},zi=new WeakMap,Qi=n=>{let e=zi.get(n.strings);if(e!==void 0)return e;let i=new Uint32Array(2).fill(5381);for(let o of n.strings)for(let d=0;d<o.length;d++)i[d%2]=33*i[d%2]^o.charCodeAt(d);let a=String.fromCharCode(...new Uint8Array(i.buffer));return e=btoa(a),zi.set(n.strings,e),e};globalThis.litElementHydrateSupport=({LitElement:n})=>{let e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"observedAttributes").get;Object.defineProperty(n,"observedAttributes",{get(){return[...e.call(this),"defer-hydration"]}});let i=n.prototype.attributeChangedCallback;n.prototype.attributeChangedCallback=function(c,$,g){c==="defer-hydration"&&g===null&&a.call(this),i.call(this,c,$,g)};let a=n.prototype.connectedCallback;n.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||a.call(this)};let o=n.prototype.createRenderRoot;n.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):o.call(this)};let d=Object.getPrototypeOf(n.prototype).update;n.prototype.update=function(c){let $=this.render();if(d.call(this,c),this._$AG){this._$AG=!1;for(let g of this.getAttributeNames())if(g.startsWith("hydrate-internals-")){let v=g.slice(18);this.removeAttribute(v),this.removeAttribute(g)}Ei($,this.renderRoot,this.renderOptions)}else se($,this.renderRoot,this.renderOptions)}};var Te=globalThis,Se=Te.ShadowRoot&&(Te.ShadyCSS===void 0||Te.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zt=Symbol(),Ai=new WeakMap,ne=class{constructor(e,i,a){if(this._$cssResult$=!0,a!==Zt)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(Se&&e===void 0){let a=i!==void 0&&i.length===1;a&&(e=Ai.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),a&&Ai.set(i,e))}return e}toString(){return this.cssText}},C=n=>new ne(typeof n=="string"?n:n+"",void 0,Zt),h=(n,...e)=>{let i=n.length===1?n[0]:e.reduce((a,o,d)=>a+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[d+1],n[0]);return new ne(i,n,Zt)},Ci=(n,e)=>{if(Se)n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let a=document.createElement("style"),o=Te.litNonce;o!==void 0&&a.setAttribute("nonce",o),a.textContent=i.cssText,n.appendChild(a)}},Jt=Se?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(let a of e.cssRules)i+=a.cssText;return C(i)})(n):n;var{is:er,defineProperty:tr,getOwnPropertyDescriptor:ir,getOwnPropertyNames:rr,getOwnPropertySymbols:ar,getPrototypeOf:sr}=Object,ze=globalThis,Li=ze.trustedTypes,or=Li?Li.emptyScript:"",nr=ze.reactiveElementPolyfillSupport,le=(n,e)=>n,Qt={toAttribute(n,e){switch(e){case Boolean:n=n?or: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}},Ii=(n,e)=>!er(n,e),Ri={attribute:!0,type:String,converter:Qt,reflect:!1,useDefault:!1,hasChanged:Ii};Symbol.metadata??=Symbol("metadata"),ze.litPropertyMetadata??=new WeakMap;var D=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=Ri){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 a=Symbol(),o=this.getPropertyDescriptor(e,a,i);o!==void 0&&tr(this.prototype,e,o)}}static getPropertyDescriptor(e,i,a){let{get:o,set:d}=ir(this.prototype,e)??{get(){return this[i]},set(c){this[i]=c}};return{get:o,set(c){let $=o?.call(this);d?.call(this,c),this.requestUpdate(e,$,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ri}static _$Ei(){if(this.hasOwnProperty(le("elementProperties")))return;let e=sr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(le("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(le("properties"))){let i=this.properties,a=[...rr(i),...ar(i)];for(let o of a)this.createProperty(o,i[o])}let e=this[Symbol.metadata];if(e!==null){let i=litPropertyMetadata.get(e);if(i!==void 0)for(let[a,o]of i)this.elementProperties.set(a,o)}this._$Eh=new Map;for(let[i,a]of this.elementProperties){let o=this._$Eu(i,a);o!==void 0&&this._$Eh.set(o,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let i=[];if(Array.isArray(e)){let a=new Set(e.flat(1/0).reverse());for(let o of a)i.unshift(Jt(o))}else e!==void 0&&i.push(Jt(e));return i}static _$Eu(e,i){let a=i.attribute;return a===!1?void 0:typeof a=="string"?a: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 a of i.keys())this.hasOwnProperty(a)&&(e.set(a,this[a]),delete this[a]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ci(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,a){this._$AK(e,a)}_$ET(e,i){let a=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,a);if(o!==void 0&&a.reflect===!0){let d=(a.converter?.toAttribute!==void 0?a.converter:Qt).toAttribute(i,a.type);this._$Em=e,d==null?this.removeAttribute(o):this.setAttribute(o,d),this._$Em=null}}_$AK(e,i){let a=this.constructor,o=a._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let d=a.getPropertyOptions(o),c=typeof d.converter=="function"?{fromAttribute:d.converter}:d.converter?.fromAttribute!==void 0?d.converter:Qt;this._$Em=o;let $=c.fromAttribute(i,d.type);this[o]=$??this._$Ej?.get(o)??$,this._$Em=null}}requestUpdate(e,i,a,o=!1,d){if(e!==void 0){let c=this.constructor;if(o===!1&&(d=this[e]),a??=c.getPropertyOptions(e),!((a.hasChanged??Ii)(d,i)||a.useDefault&&a.reflect&&d===this._$Ej?.get(e)&&!this.hasAttribute(c._$Eu(e,a))))return;this.C(e,i,a)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:a,reflect:o,wrapped:d},c){a&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,c??i??this[e]),d!==!0||c!==void 0)||(this._$AL.has(e)||(this.hasUpdated||a||(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 a=this.constructor.elementProperties;if(a.size>0)for(let[o,d]of a){let{wrapped:c}=d,$=this[o];c!==!0||this._$AL.has(o)||$===void 0||this.C(o,void 0,d,$)}}let e=!1,i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach(a=>a.hostUpdate?.()),this.update(i)):this._$EM()}catch(a){throw e=!1,this._$EM(),a}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){}};D.elementStyles=[],D.shadowRootOptions={mode:"open"},D[le("elementProperties")]=new Map,D[le("finalized")]=new Map,nr?.({ReactiveElement:D}),(ze.reactiveElementVersions??=[]).push("2.1.2");var ei=globalThis,F=class extends D{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=se(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _}};F._$litElement$=!0,F.finalized=!0,ei.litElementHydrateSupport?.({LitElement:F});var lr=ei.litElementPolyfillSupport;lr?.({LitElement:F});(ei.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")},w=n=>C(`font-size: var(--impakt-font-size-${n}, 1rem); line-height: var(--impakt-font-leading-${n}, 1.5);`),r=n=>u(`space.${String(n).replace(".","-")}`,`${n*4}px`),b=n=>u(`font.size.${n}`,"1rem"),H=n=>u(`font.line-height.${n}`,"1.5"),m=n=>u(`font.weight.${n}`,"400"),I=h`
|
|
5
|
-
:host([space-above='sm']) { margin-block-start: ${
|
|
6
|
-
:host([space-above='md']) { margin-block-start: ${
|
|
7
|
-
:host([space-above='lg']) { margin-block-start: ${
|
|
8
|
-
:host([space-above='xl']) { margin-block-start: ${
|
|
9
|
-
:host([space-above='2xl']) { margin-block-start: clamp(${
|
|
10
|
-
:host([space-below='sm']) { margin-block-end: ${
|
|
11
|
-
:host([space-below='md']) { margin-block-end: ${
|
|
12
|
-
:host([space-below='lg']) { margin-block-end: ${
|
|
13
|
-
:host([space-below='xl']) { margin-block-end: ${
|
|
14
|
-
:host([space-below='2xl']) { margin-block-end: clamp(${
|
|
15
|
-
`;var k=
|
|
1
|
+
/* @atomic-ui/ui version 0.13.0, standalone. */
|
|
2
|
+
var Yt=globalThis,gi=n=>n,we=Yt.trustedTypes,bi=we?we.createPolicy("lit-html",{createHTML:n=>n}):void 0,Jt="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,Zt="?"+j,Ji=`<${Zt}>`,J=document,ne=()=>J.createComment(""),le=n=>n===null||typeof n!="object"&&typeof n!="function",Qt=Array.isArray,vi=n=>Qt(n)||typeof n?.[Symbol.iterator]=="function",Xt=`[
|
|
3
|
+
\f\r]`,se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fi=/-->/g,$i=/>/g,X=RegExp(`>|${Xt}(?:([^\\s"'>=/]+)(${Xt}*=${Xt}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),xi=/'/g,yi=/"/g,wi=/^(?:script|style|textarea|title)$/i,ei=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),o=ei(1),y=ei(2),Br=ei(3),O=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),ki=new WeakMap,Y=J.createTreeWalker(J,129);function Si(n,e){if(!Qt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return bi!==void 0?bi.createHTML(e):e}var Ti=(n,e)=>{let i=n.length-1,r=[],s,c=e===2?"<svg>":e===3?"<math>":"",p=se;for(let $=0;$<i;$++){let g=n[$],v,_,A=-1,F=0;for(;F<g.length&&(p.lastIndex=F,_=p.exec(g),_!==null);)F=p.lastIndex,p===se?_[1]==="!--"?p=fi:_[1]!==void 0?p=$i:_[2]!==void 0?(wi.test(_[2])&&(s=RegExp("</"+_[2],"g")),p=X):_[3]!==void 0&&(p=X):p===X?_[0]===">"?(p=s??se,A=-1):_[1]===void 0?A=-2:(A=p.lastIndex-_[2].length,v=_[1],p=_[3]===void 0?X:_[3]==='"'?yi:xi):p===yi||p===xi?p=X:p===fi||p===$i?p=se:(p=X,s=void 0);let K=p===X&&n[$+1].startsWith("/>")?" ":"";c+=p===se?g+Ji:A>=0?(r.push(v),g.slice(0,A)+Jt+g.slice(A)+j+K):g+j+(A===-2?$:K)}return[Si(n,c+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},de=class n{constructor({strings:e,_$litType$:i},r){let s;this.parts=[];let c=0,p=0,$=e.length-1,g=this.parts,[v,_]=Ti(e,i);if(this.el=n.createElement(v,r),Y.currentNode=this.el.content,i===2||i===3){let A=this.el.content.firstChild;A.replaceWith(...A.childNodes)}for(;(s=Y.nextNode())!==null&&g.length<$;){if(s.nodeType===1){if(s.hasAttributes())for(let A of s.getAttributeNames())if(A.endsWith(Jt)){let F=_[p++],K=s.getAttribute(A).split(j),ve=/([.?@])?(.*)/.exec(F);g.push({type:1,index:c,name:ve[2],strings:K,ctor:ve[1]==="."?Te:ve[1]==="?"?ze:ve[1]==="@"?Me:Q}),s.removeAttribute(A)}else A.startsWith(j)&&(g.push({type:6,index:c}),s.removeAttribute(A));if(wi.test(s.tagName)){let A=s.textContent.split(j),F=A.length-1;if(F>0){s.textContent=we?we.emptyScript:"";for(let K=0;K<F;K++)s.append(A[K],ne()),Y.nextNode(),g.push({type:2,index:++c});s.append(A[F],ne())}}}else if(s.nodeType===8)if(s.data===Zt)g.push({type:2,index:c});else{let A=-1;for(;(A=s.data.indexOf(j,A+1))!==-1;)g.push({type:7,index:c}),A+=j.length-1}c++}}static createElement(e,i){let r=J.createElement("template");return r.innerHTML=e,r}};function Z(n,e,i=n,r){if(e===O)return e;let s=r!==void 0?i._$Co?.[r]:i._$Cl,c=le(e)?void 0:e._$litDirective$;return s?.constructor!==c&&(s?._$AO?.(!1),c===void 0?s=void 0:(s=new c(n),s._$AT(n,i,r)),r!==void 0?(i._$Co??=[])[r]=s:i._$Cl=s),s!==void 0&&(e=Z(n,s._$AS(n,e.values),s,r)),e}var Se=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,s=(e?.creationScope??J).importNode(i,!0);Y.currentNode=s;let c=Y.nextNode(),p=0,$=0,g=r[0];for(;g!==void 0;){if(p===g.index){let v;g.type===2?v=new ie(c,c.nextSibling,this,e):g.type===1?v=new g.ctor(c,g.name,g.strings,this,e):g.type===6&&(v=new Ee(c,this,e)),this._$AV.push(v),g=r[++$]}p!==g?.index&&(c=Y.nextNode(),p++)}return Y.currentNode=J,s}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++}},ie=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,s){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=s,this._$Cv=s?.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=Z(this,e,i),le(e)?e===l||e==null||e===""?(this._$AH!==l&&this._$AR(),this._$AH=l):e!==this._$AH&&e!==O&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):vi(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&&le(this._$AH)?this._$AA.nextSibling.data=e:this.T(J.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=de.createElement(Si(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===s)this._$AH.p(i);else{let c=new Se(s,this),p=c.u(this.options);c.p(i),this.T(p),this._$AH=c}}_$AC(e){let i=ki.get(e.strings);return i===void 0&&ki.set(e.strings,i=new de(e)),i}k(e){Qt(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,s=0;for(let c of e)s===i.length?i.push(r=new n(this.O(ne()),this.O(ne()),this,this.options)):r=i[s],r._$AI(c),s++;s<i.length&&(this._$AR(r&&r._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=gi(e).nextSibling;gi(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,s,c){this.type=1,this._$AH=l,this._$AN=void 0,this.element=e,this.name=i,this._$AM=s,this.options=c,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,s){let c=this.strings,p=!1;if(c===void 0)e=Z(this,e,i,0),p=!le(e)||e!==this._$AH&&e!==O,p&&(this._$AH=e);else{let $=e,g,v;for(e=c[0],g=0;g<c.length-1;g++)v=Z(this,$[r+g],i,g),v===O&&(v=this._$AH[g]),p||=!le(v)||v!==this._$AH[g],v===l?e=l:e!==l&&(e+=(v??"")+c[g+1]),this._$AH[g]=v}p&&!s&&this.j(e)}j(e){e===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Te=class extends Q{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===l?void 0:e}},ze=class extends Q{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==l)}},Me=class extends Q{constructor(e,i,r,s,c){super(e,i,r,s,c),this.type=5}_$AI(e,i=this){if((e=Z(this,e,i,0)??l)===O)return;let r=this._$AH,s=e===l&&r!==l||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,c=e!==l&&(r===l||s);s&&this.element.removeEventListener(this.name,this,r),c&&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)}},Ee=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){Z(this,e)}},B={M:Jt,P:j,A:Zt,C:1,L:Ti,R:Se,D:vi,V:Z,I:ie,H:Q,N:ze,U:Me,B:Te,F:Ee},Zi=Yt.litHtmlPolyfillSupport;Zi?.(de,ie),(Yt.litHtmlVersions??=[]).push("3.3.3");var ce=(n,e,i)=>{let r=i?.renderBefore??e,s=r._$litPart$;if(s===void 0){let c=i?.renderBefore??null;r._$litPart$=s=new ie(e.insertBefore(ne(),c),c,void 0,i??{})}return s._$AI(n),s};var ti=null,zi={boundAttributeSuffix:B.M,marker:B.P,markerMatch:B.A,HTML_RESULT:B.C,getTemplateHtml:B.L,overrideDirectiveResolve:(n,e)=>class extends n{_$AS(i,r){return e(this,r)}},patchDirectiveResolve:(n,e)=>{if(n.prototype._$AS.name!==e.name){ti??=n.prototype._$AS.name;for(let i=n.prototype;i!==Object.prototype;i=Object.getPrototypeOf(i))if(i.hasOwnProperty(ti))return void(i[ti]=e);throw Error("Internal error: It is possible that both dev mode and production mode Lit was mixed together during SSR. Please comment on the issue: https://github.com/lit/lit/issues/4527")}},setDirectiveClass(n,e){n._$litDirective$=e},getAttributePartCommittedValue:(n,e,i)=>{let r=O;return n.j=s=>r=s,n._$AI(e,n,i),r},connectedDisconnectable:n=>({...n,_$AU:!0}),resolveDirective:B.V,AttributePart:B.H,PropertyPart:B.B,BooleanAttributePart:B.N,EventPart:B.U,ElementPart:B.F,TemplateInstance:B.R,isIterable:B.D,ChildPart:B.I};var re={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};var{I:jr}=B;var Mi=n=>n===null||typeof n!="object"&&typeof n!="function";var Ei=(n,e)=>e===void 0?n?._$litType$!==void 0:n?._$litType$===e,Ai=n=>n?._$litType$?.h!=null;var Ci=n=>n.strings===void 0;var{TemplateInstance:Qi,isIterable:er,resolveDirective:Ii,ChildPart:pe,ElementPart:tr}=zi,Ri=(n,e,i={})=>{if(e._$litPart$!==void 0)throw Error("container already contains a live render");let r,s,c,p=[],$=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),g;for(;(g=$.nextNode())!==null;){let v=g.data;if(v.startsWith("lit-part")){if(p.length===0&&r!==void 0)throw Error(`There must be only one root part per container. Found a part marker (${g}) when we already have a root part marker (${s})`);c=ir(n,g,p,i),r===void 0&&(r=c),s??=g}else if(v.startsWith("lit-node"))ar(g,p,i);else if(v.startsWith("/lit-part")){if(p.length===1&&c!==r)throw Error("internal error");c=rr(g,c,p)}}if(r===void 0){let v=e instanceof ShadowRoot?"{container.host.localName}'s shadow root":e instanceof DocumentFragment?"DocumentFragment":e.localName;console.error(`There should be exactly one root part in a render container, but we didn't find any in ${v}.`)}e._$litPart$=r},ir=(n,e,i,r)=>{let s,c;if(i.length===0)c=new pe(e,null,void 0,r),s=n;else{let p=i[i.length-1];if(p.type==="template-instance")c=new pe(e,null,p.instance,r),p.instance._$AV.push(c),s=p.result.values[p.instancePartIndex++],p.templatePartIndex++;else if(p.type==="iterable"){c=new pe(e,null,p.part,r);let $=p.iterator.next();if($.done)throw s=void 0,p.done=!0,Error("Unhandled shorter than expected iterable");s=$.value,p.part._$AH.push(c)}else c=new pe(e,null,p.part,r)}if(s=Ii(c,s),s===O)i.push({part:c,type:"leaf"});else if(Mi(s))i.push({part:c,type:"leaf"}),c._$AH=s;else if(Ei(s)){if(Ai(s))throw Error("compiled templates are not supported");let p="lit-part "+or(s);if(e.data!==p)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{let $=pe.prototype._$AC(s),g=new Qi($,c);i.push({type:"template-instance",instance:g,part:c,templatePartIndex:0,instancePartIndex:0,result:s}),c._$AH=g}}else er(s)?(i.push({part:c,type:"iterable",value:s,iterator:s[Symbol.iterator](),done:!1}),c._$AH=[]):(i.push({part:c,type:"leaf"}),c._$AH=s??"");return c},rr=(n,e,i)=>{if(e===void 0)throw Error("unbalanced part marker");e._$AB=n;let r=i.pop();if(r.type==="iterable"&&!r.iterator.next().done)throw Error("unexpected longer than expected iterable");if(i.length>0)return i[i.length-1].part},ar=(n,e,i)=>{let r=/lit-node (\d+)/.exec(n.data),s=parseInt(r[1]),c=n.nextElementSibling;if(c===null)throw Error("could not find node for attribute parts");c.removeAttribute("defer-hydration");let p=e[e.length-1];if(p.type!=="template-instance")throw Error("Hydration value mismatch: Primitive found where TemplateResult expected. This usually occurs due to conditional rendering that resulted in a different value or template being rendered between the server and client.");{let $=p.instance;for(;;){let g=$._$AD.parts[p.templatePartIndex];if(g===void 0||g.type!==re.ATTRIBUTE&&g.type!==re.ELEMENT||g.index!==s)break;if(g.type===re.ATTRIBUTE){let v=new g.ctor(c,g.name,g.strings,p.instance,i),_=Ci(v)?p.result.values[p.instancePartIndex]:p.result.values,A=!(v.type===re.EVENT||v.type===re.PROPERTY);v._$AI(_,v,p.instancePartIndex,A),p.instancePartIndex+=g.strings.length-1,$._$AV.push(v)}else{let v=new tr(c,p.instance,i);Ii(v,p.result.values[p.instancePartIndex++]),$._$AV.push(v)}p.templatePartIndex++}}},Li=new WeakMap,or=n=>{let e=Li.get(n.strings);if(e!==void 0)return e;let i=new Uint32Array(2).fill(5381);for(let s of n.strings)for(let c=0;c<s.length;c++)i[c%2]=33*i[c%2]^s.charCodeAt(c);let r=String.fromCharCode(...new Uint8Array(i.buffer));return e=btoa(r),Li.set(n.strings,e),e};globalThis.litElementHydrateSupport=({LitElement:n})=>{let e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"observedAttributes").get;Object.defineProperty(n,"observedAttributes",{get(){return[...e.call(this),"defer-hydration"]}});let i=n.prototype.attributeChangedCallback;n.prototype.attributeChangedCallback=function(p,$,g){p==="defer-hydration"&&g===null&&r.call(this),i.call(this,p,$,g)};let r=n.prototype.connectedCallback;n.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||r.call(this)};let s=n.prototype.createRenderRoot;n.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):s.call(this)};let c=Object.getPrototypeOf(n.prototype).update;n.prototype.update=function(p){let $=this.render();if(c.call(this,p),this._$AG){this._$AG=!1;for(let g of this.getAttributeNames())if(g.startsWith("hydrate-internals-")){let v=g.slice(18);this.removeAttribute(v),this.removeAttribute(g)}Ri($,this.renderRoot,this.renderOptions)}else ce($,this.renderRoot,this.renderOptions)}};var Ae=globalThis,Ce=Ae.ShadowRoot&&(Ae.ShadyCSS===void 0||Ae.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ii=Symbol(),_i=new WeakMap,he=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==ii)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(Ce&&e===void 0){let r=i!==void 0&&i.length===1;r&&(e=_i.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&_i.set(i,e))}return e}toString(){return this.cssText}},L=n=>new he(typeof n=="string"?n:n+"",void 0,ii),u=(n,...e)=>{let i=n.length===1?n[0]:e.reduce((r,s,c)=>r+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[c+1],n[0]);return new he(i,n,ii)},Hi=(n,e)=>{if(Ce)n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(let i of e){let r=document.createElement("style"),s=Ae.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=i.cssText,n.appendChild(r)}},ri=Ce?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(let r of e.cssRules)i+=r.cssText;return L(i)})(n):n;var{is:sr,defineProperty:nr,getOwnPropertyDescriptor:lr,getOwnPropertyNames:dr,getOwnPropertySymbols:cr,getPrototypeOf:pr}=Object,Le=globalThis,Bi=Le.trustedTypes,hr=Bi?Bi.emptyScript:"",ur=Le.reactiveElementPolyfillSupport,ue=(n,e)=>n,ai={toAttribute(n,e){switch(e){case Boolean:n=n?hr: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}},Oi=(n,e)=>!sr(n,e),Ni={attribute:!0,type:String,converter:ai,reflect:!1,useDefault:!1,hasChanged:Oi};Symbol.metadata??=Symbol("metadata"),Le.litPropertyMetadata??=new WeakMap;var U=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=Ni){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(),s=this.getPropertyDescriptor(e,r,i);s!==void 0&&nr(this.prototype,e,s)}}static getPropertyDescriptor(e,i,r){let{get:s,set:c}=lr(this.prototype,e)??{get(){return this[i]},set(p){this[i]=p}};return{get:s,set(p){let $=s?.call(this);c?.call(this,p),this.requestUpdate(e,$,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ni}static _$Ei(){if(this.hasOwnProperty(ue("elementProperties")))return;let e=pr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ue("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ue("properties"))){let i=this.properties,r=[...dr(i),...cr(i)];for(let s of r)this.createProperty(s,i[s])}let e=this[Symbol.metadata];if(e!==null){let i=litPropertyMetadata.get(e);if(i!==void 0)for(let[r,s]of i)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[i,r]of this.elementProperties){let s=this._$Eu(i,r);s!==void 0&&this._$Eh.set(s,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 s of r)i.unshift(ri(s))}else e!==void 0&&i.push(ri(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 Hi(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),s=this.constructor._$Eu(e,r);if(s!==void 0&&r.reflect===!0){let c=(r.converter?.toAttribute!==void 0?r.converter:ai).toAttribute(i,r.type);this._$Em=e,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(e,i){let r=this.constructor,s=r._$Eh.get(e);if(s!==void 0&&this._$Em!==s){let c=r.getPropertyOptions(s),p=typeof c.converter=="function"?{fromAttribute:c.converter}:c.converter?.fromAttribute!==void 0?c.converter:ai;this._$Em=s;let $=p.fromAttribute(i,c.type);this[s]=$??this._$Ej?.get(s)??$,this._$Em=null}}requestUpdate(e,i,r,s=!1,c){if(e!==void 0){let p=this.constructor;if(s===!1&&(c=this[e]),r??=p.getPropertyOptions(e),!((r.hasChanged??Oi)(c,i)||r.useDefault&&r.reflect&&c===this._$Ej?.get(e)&&!this.hasAttribute(p._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:s,wrapped:c},p){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,p??i??this[e]),c!==!0||p!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),s===!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[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[s,c]of r){let{wrapped:p}=c,$=this[s];p!==!0||this._$AL.has(s)||$===void 0||this.C(s,void 0,c,$)}}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){}};U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[ue("elementProperties")]=new Map,U[ue("finalized")]=new Map,ur?.({ReactiveElement:U}),(Le.reactiveElementVersions??=[]).push("2.1.2");var oi=globalThis,W=class extends U{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=ce(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return O}};W._$litElement$=!0,W.finalized=!0,oi.litElementHydrateSupport?.({LitElement:W});var mr=oi.litElementPolyfillSupport;mr?.({LitElement:W});(oi.litElementVersions??=[]).push("4.2.2");var d=(n,e)=>L(`var(--impakt-${n.replace(/\./g,"-")}, ${e})`),t={brand:d("color.brand.default","#1f4ed8"),brandHover:d("color.brand.hover","#1b45be"),brandActive:d("color.brand.active","#183ba4"),brandSubtle:d("color.brand.subtle","#e4eafa"),onBrand:d("color.text.on-brand","#ffffff"),surfaceCard:d("color.surface.card","#ffffff"),surfaceInset:d("color.surface.inset","#f4f4f4"),surfaceSubtle:d("color.surface.subtle","#e4eafa"),text:d("color.text.default","#1a1a1a"),textMuted:d("color.text.muted","#717171"),textPlaceholder:d("color.text.placeholder","#767676"),textHeading:d("color.text.heading","#1f4ed8"),link:d("color.text.link","#1f4ed8"),linkHover:d("color.text.link-hover","#193ead"),border:d("color.border.default","#929292"),borderStrong:d("color.border.strong","#818181"),danger:d("color.status.danger.default","#c8102e"),dangerText:d("color.status.danger.text","#c8102e"),dangerSubtle:d("color.status.danger.subtle","#f8e2e6"),warning:d("color.status.warning.default","#b45309"),warningText:d("color.status.warning.text","#b45309"),warningSubtle:d("color.status.warning.subtle","#f6eae1"),success:d("color.status.success.default","#047857"),successText:d("color.status.success.text","#047857"),successSubtle:d("color.status.success.subtle","#e0f0ea"),info:d("color.status.info.default","#1f4ed8"),infoText:d("color.status.info.text","#1f4ed8"),infoSubtle:d("color.status.info.subtle","#e4eafa"),fontBody:d("font.family.body","system-ui, sans-serif"),fontHeading:d("font.family.heading","system-ui, sans-serif"),fontMono:d("font.family.mono","ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"),fontEyebrow:d("font.family.eyebrow","inherit"),focusShadow:d("focus.ring.shadow","0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a"),focusOffset:d("focus.ring.offset","2px"),targetMin:d("target.min","24px"),radiusSm:d("radius.sm","2px"),radius:d("radius.md","4px"),radiusLg:d("radius.lg","8px"),borderThin:d("border.width.thin","1px"),borderThick:d("border.width.thick","2px"),radiusXs:d("radius.xs","2px"),radiusXl:d("radius.xl","12px"),radius2xl:d("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:d("shadow.xs","0 1px 2px 0 rgb(0 0 0 / 0.05)"),shadowSm:d("shadow.sm","0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"),shadowMd:d("shadow.md","0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"),shadowLg:d("shadow.lg","0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"),shadowXl:d("shadow.xl","0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"),trackingTight:d("font.tracking.tight","-0.02em"),trackingWide:d("font.tracking.wide","0.06em")},w=n=>L(`font-size: var(--impakt-font-size-${n}, 1rem); line-height: var(--impakt-font-leading-${n}, 1.5);`),a=n=>d(`space.${String(n).replace(".","-")}`,`${n*4}px`),b=n=>d(`font.size.${n}`,"1rem"),P=n=>d(`font.line-height.${n}`,"1.5"),m=n=>d(`font.weight.${n}`,"400"),N=u`
|
|
5
|
+
:host([space-above='sm']) { margin-block-start: ${a(2)}; }
|
|
6
|
+
:host([space-above='md']) { margin-block-start: ${a(4)}; }
|
|
7
|
+
:host([space-above='lg']) { margin-block-start: ${a(6)}; }
|
|
8
|
+
:host([space-above='xl']) { margin-block-start: ${a(8)}; }
|
|
9
|
+
:host([space-above='2xl']) { margin-block-start: clamp(${a(14)}, 8vw, ${a(28)}); }
|
|
10
|
+
:host([space-below='sm']) { margin-block-end: ${a(2)}; }
|
|
11
|
+
:host([space-below='md']) { margin-block-end: ${a(4)}; }
|
|
12
|
+
:host([space-below='lg']) { margin-block-end: ${a(6)}; }
|
|
13
|
+
:host([space-below='xl']) { margin-block-end: ${a(8)}; }
|
|
14
|
+
:host([space-below='2xl']) { margin-block-end: clamp(${a(14)}, 8vw, ${a(28)}); }
|
|
15
|
+
`;var k=u`
|
|
16
16
|
:host(:focus-visible),
|
|
17
17
|
:host(:not([disabled])) :focus-visible {
|
|
18
18
|
outline: 2px solid transparent;
|
|
19
19
|
outline-offset: ${t.focusOffset};
|
|
20
20
|
box-shadow: ${t.focusShadow};
|
|
21
21
|
}
|
|
22
|
-
`,z=
|
|
22
|
+
`,z=u`
|
|
23
23
|
min-block-size: ${t.targetMin};
|
|
24
24
|
min-inline-size: ${t.targetMin};
|
|
25
|
-
`,
|
|
25
|
+
`,T=u`
|
|
26
26
|
position: absolute;
|
|
27
27
|
inline-size: 1px;
|
|
28
28
|
block-size: 1px;
|
|
@@ -32,7 +32,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
32
32
|
clip-path: inset(50%);
|
|
33
33
|
white-space: nowrap;
|
|
34
34
|
border: 0;
|
|
35
|
-
`,
|
|
35
|
+
`,Pi=u`
|
|
36
36
|
@media (prefers-reduced-motion: reduce) {
|
|
37
37
|
:host,
|
|
38
38
|
:host *,
|
|
@@ -44,7 +44,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
44
44
|
scroll-behavior: auto !important;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,qi=u`
|
|
48
48
|
:host {
|
|
49
49
|
box-sizing: border-box;
|
|
50
50
|
font-family: ${t.fontBody};
|
|
@@ -58,15 +58,15 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
58
58
|
*::after {
|
|
59
59
|
box-sizing: inherit;
|
|
60
60
|
}
|
|
61
|
-
`,
|
|
61
|
+
`,C=n=>L(`@media (pointer: coarse) { :host :is(${n}) { min-block-size: 44px; min-inline-size: 44px; } }`),Di=u`
|
|
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
|
-
`;var
|
|
64
|
+
`;var gr=Symbol.for("strata.wording");function S(n,e){let r=globalThis[gr]?.words?.[n],s=typeof r=="string"&&r.trim()?r:n;return e?s.replace(/\{(\w+)\}/g,(c,p)=>p in e?String(e[p]):c):s}var br=0,h=class extends W{constructor(){super(...arguments);this.uid=`impakt-${br+=1}`}static{this.styles=[qi,Pi,u``]}id_(i){return`${this.uid}-${i}`}connectedCallback(){super.connectedCallback(),this.sayDefaults()}sayDefaults(){let i=this.constructor.elementProperties,r=this;for(let s of i.keys()){let c=r[s];if(typeof c!="string"||!c)continue;let p=S(c);p!==c&&(r[s]=p)}}};var si={"arrow-right":y`<path d="M5 12h14M13 6l6 6-6 6"/>`,"arrow-left":y`<path d="M19 12H5M11 6l-6 6 6 6"/>`,"chevron-right":y`<path d="M9 6l6 6-6 6"/>`,"chevron-down":y`<path d="M6 9l6 6 6-6"/>`,check:y`<path d="M5 12.5l4.5 4.5L19 7"/>`,close:y`<path d="M6 6l12 12M18 6L6 18"/>`,menu:y`<path d="M4 7h16M4 12h16M4 17h16"/>`,"menu-two":y`<path d="M5 9.5h14M5 14.5h14"/>`,plus:y`<path d="M12 5v14M5 12h14"/>`,minus:y`<path d="M5 12h14"/>`,search:y`<circle cx="11" cy="11" r="6.5"/><path d="M16 16l4 4"/>`,external:y`<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:y`<path d="M12 4v11M7 10l5 5 5-5M5 20h14"/>`,home:y`<path d="M4 11l8-7 8 7M6 9.5V20h12V9.5"/><path d="M10 20v-6h4v6"/>`,phone:y`<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:y`<rect x="3.5" y="5.5" width="17" height="13" rx="1.5"/><path d="M4 7l8 6 8-6"/>`,"map-pin":y`<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:y`<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:y`<circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/>`,user:y`<circle cx="12" cy="8.5" r="3.5"/><path d="M5 20a7 7 0 0 1 14 0"/>`,star:y`<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:y`<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:y`<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:y`<path d="M5 19c0-8 5-13 14-14 0 9-5 14-13 14z"/><path d="M5 19l7-7"/>`,sun:y`<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:y`<path d="M13 3L5 13.5h6L10 21l8-10.5h-6z"/>`,key:y`<circle cx="8" cy="15" r="3.5"/><path d="M10.5 12.5L19 4M16 7l2.5 2.5M14 9l2 2"/>`,info:y`<circle cx="12" cy="12" r="8.5"/><path d="M12 11v5.5M12 7.5v.5"/>`,warning:y`<path d="M12 4l9 15.5H3z"/><path d="M12 10v4M12 16.5v.5"/>`,document:y`<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:y`<path d="M16 6.5a3.5 3.5 0 0 0-6.5 1.8V20M7 13h7M7 20h10"/>`,chat:y`<path d="M4.5 5.5h15v10h-9l-4 3.5v-3.5h-2z"/>`,grid:y`<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:y`<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":y`<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:y`<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:y`<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:y`<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":y`<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9"/>`,"arrow-up-right":y`<path d="M7 7h10v10M7 17L17 7"/>`,more:y`<circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/>`,upload:y`<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"/>`,image:y`<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:y`<rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>`,eye:y`<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:y`<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:y`<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":y`<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:y`<rect x="2" y="7" width="16" height="10" rx="2"/><path d="M22 11v2M6 11v2M10 11v2"/>`},fr=Object.keys(si);function M(n,e="1.25em"){let i=n?si[n]:void 0;return i?o`<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 Ie=class extends h{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=[...h.styles,u`
|
|
65
65
|
:host { display: inline-flex; vertical-align: middle; line-height: 0; }
|
|
66
66
|
:host([tone='brand']) { color: ${t.brand}; }
|
|
67
67
|
:host([tone='muted']) { color: ${t.textMuted}; }
|
|
68
68
|
@media (forced-colors: active) { :host { color: CanvasText; } }
|
|
69
|
-
`]}render(){let e={sm:"16px",md:"24px",lg:"32px",xl:"48px"}[this.size]??"24px",i=M(this.name,e);return this.label?
|
|
69
|
+
`]}render(){let e={sm:"16px",md:"24px",lg:"32px",xl:"48px"}[this.size]??"24px",i=M(this.name,e);return this.label?o`<span role="img" aria-label=${this.label}>${i}</span>`:o`${i}`}};customElements.define("impakt-icon",Ie);var ni=d("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),E={height:d("button.height","40px"),paddingBlock:d("button.padding-block","8px"),paddingInline:d("button.padding-inline","16px"),gap:d("button.gap","8px"),fontSize:d("button.font-size","0.875rem"),lineHeight:d("button.line-height","1.429"),weight:d("button.weight","600"),smPaddingBlock:d("button.sm.padding-block","4px"),smHeight:d("button.sm.height","32px"),smPaddingInline:d("button.sm.padding-inline","12px"),smFontSize:d("button.sm.font-size","0.875rem"),smLineHeight:d("button.sm.line-height","1.429"),smGap:d("button.sm.gap","6px"),solidEdge:d("button.solid-edge-width","1px"),arrowIcon:d("button.arrow-icon","inline-block"),arrowGlyph:d("button.arrow-glyph","none"),lgHeight:d("button.lg.height","48px"),lgPaddingBlock:d("button.lg.padding-block","12px"),lgFontSize:d("button.lg.font-size","1rem"),lgLineHeight:d("button.lg.line-height","1.5"),iconSize:d("button.icon-size","40px"),lgIconSize:d("button.lg.icon-size","48px"),fullJustify:d("button.full.justify","center"),fullAlign:d("button.full.align","center"),highlight:d("button.highlight","inset 0 1px 0 0 rgb(255 255 255 / 0.12)"),edge:d("button.edge","15%")},$r=y`<svg class="glyph" viewBox="0 0 15 10" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="butt" stroke-linejoin="miter" aria-hidden="true" focusable="false"><path d="M0 5h14" /><path d="M9.75 0.75 14 5l-4.25 4.25" /></svg>`,Re=class extends h{constructor(){super();this.internals=null;this.hideOn="never",this.variant="primary",this.type="button",this.disabled=!1,this.busy=!1,this.busyLabel="Working",this.full=!1,this.fullOnPhone=!1,this.size="md",this.iconBefore="none",this.iconAfter="none",this.href="",this.icon="none",this.label="",this.spread=!1,this.centred=!1;try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={hideOn:{type:String,reflect:!0,attribute:"hide-on"},variant:{type:String,reflect:!0},type:{type:String},disabled:{type:Boolean,reflect:!0},busy:{type:Boolean,reflect:!0},busyLabel:{type:String,attribute:"busy-label"},full:{type:Boolean,reflect:!0},fullOnPhone:{type:Boolean,attribute:"full-on-phone",reflect:!0},size:{type:String,reflect:!0},iconBefore:{type:String,attribute:"icon-before"},iconAfter:{type:String,attribute:"icon-after"},href:{type:String},icon:{type:String},label:{type:String},spread:{type:Boolean,reflect:!0},centred:{type:Boolean,reflect:!0}}}static{this.styles=[...h.styles,k,C("button, a"),u`
|
|
70
70
|
@media (max-width: 40rem) { :host([hide-on='phone']) { display: none; } }
|
|
71
71
|
:host {
|
|
72
72
|
display: inline-block;
|
|
@@ -82,24 +82,26 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
82
82
|
display: inline-flex;
|
|
83
83
|
align-items: center;
|
|
84
84
|
justify-content: center;
|
|
85
|
-
gap: ${
|
|
85
|
+
gap: ${E.gap};
|
|
86
86
|
inline-size: 100%;
|
|
87
|
-
/*
|
|
88
|
-
min-block-size:
|
|
89
|
-
padding:
|
|
87
|
+
/* The brand's button shape: 40px in the small type in semibold, or under Noire (G2) Archivo Medium 16, 14 by 20, about 47px tall. */
|
|
88
|
+
min-block-size: ${E.height};
|
|
89
|
+
padding: ${E.paddingBlock} ${E.paddingInline};
|
|
90
90
|
font-family: inherit;
|
|
91
|
-
font-size: ${
|
|
92
|
-
line-height:
|
|
93
|
-
font-weight: ${
|
|
91
|
+
font-size: ${E.fontSize};
|
|
92
|
+
line-height: ${E.lineHeight};
|
|
93
|
+
font-weight: ${E.weight};
|
|
94
94
|
border-radius: ${t.radiusLg};
|
|
95
95
|
border: ${t.borderThin} solid transparent;
|
|
96
96
|
cursor: pointer;
|
|
97
97
|
transition: background-color 120ms ease-in-out, border-color 120ms ease-in-out, box-shadow 120ms ease-in-out;
|
|
98
98
|
}
|
|
99
|
-
:host([size='sm']) :is(button, a) { min-block-size:
|
|
100
|
-
:host([size='lg']) :is(button, a) { min-block-size:
|
|
101
|
-
/*
|
|
102
|
-
:host([
|
|
99
|
+
:host([size='sm']) :is(button, a) { min-block-size: ${E.smHeight}; padding: ${E.smPaddingBlock} ${E.smPaddingInline}; font-size: ${E.smFontSize}; line-height: ${E.smLineHeight}; gap: ${E.smGap}; }
|
|
100
|
+
:host([size='lg']) :is(button, a) { min-block-size: ${E.lgHeight}; padding: ${E.lgPaddingBlock} ${a(6)}; font-size: ${E.lgFontSize}; line-height: ${E.lgLineHeight}; }
|
|
101
|
+
/* A full-width button keeps its words in the middle, or spreads them where the brand does, as Noire does unless it is centred. */
|
|
102
|
+
:host([full]:not([centred]):not([spread])) :is(button, a) { justify-content: ${E.fullJustify}; text-align: ${E.fullAlign}; }
|
|
103
|
+
/* Spread: the words at the start, the trailing icon at the far end. */
|
|
104
|
+
:host([spread]) :is(button, a) { justify-content: space-between; text-align: start; }
|
|
103
105
|
.icon { flex: none; inline-size: 1.15em; block-size: 1.15em; }
|
|
104
106
|
/* The cursor is the only thing that changes while busy. Moving or
|
|
105
107
|
recolouring a control the moment it is pressed is how a user loses it. */
|
|
@@ -115,24 +117,39 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
115
117
|
.primary {
|
|
116
118
|
background: var(--impakt-button-primary, ${t.brand});
|
|
117
119
|
color: var(--impakt-button-on-primary, ${t.onBrand});
|
|
120
|
+
/* A hairline highlight along the top edge, where the brand draws one. Noire is flat. */
|
|
121
|
+
box-shadow: ${t.shadowXs}, ${E.highlight};
|
|
118
122
|
}
|
|
119
123
|
.primary:hover:not([aria-disabled='true']) {
|
|
120
124
|
background: var(--impakt-button-primary-hover, var(--impakt-color-action-hover, ${t.brandHover}));
|
|
121
125
|
color: var(--impakt-button-on-primary, var(--impakt-color-action-on-hover, ${t.onBrand}));
|
|
122
126
|
}
|
|
123
127
|
/* A brand whose buttons turn on hover lifts the trailing arrow a quarter-turn. */
|
|
124
|
-
|
|
128
|
+
/* The trailing icon sits in a box as tall as the icon, so it never makes the line taller than the label's (#50). */
|
|
129
|
+
.after { display: inline-flex; align-items: center; flex: none; transition: transform 160ms ease-out; }
|
|
130
|
+
.after.arrow .icon { display: ${E.arrowIcon}; }
|
|
131
|
+
/* The "→" of the G2 button, drawn so it does not depend on the font file holding it: as long as the label is high, with a thin stroke and a small head. */
|
|
132
|
+
.after .glyph { display: ${E.arrowGlyph}; inline-size: 0.9375em; block-size: 0.625em; overflow: visible; }
|
|
125
133
|
:is(button, a):hover:not([aria-disabled='true']) .after { transform: rotate(var(--impakt-motion-button-turn, 0deg)); }
|
|
126
134
|
@media (prefers-reduced-motion: reduce) { .after { transition: none; } }
|
|
127
135
|
.primary:active:not([aria-disabled='true']) {
|
|
128
136
|
background: var(--impakt-button-primary-hover, ${t.brandActive});
|
|
129
137
|
}
|
|
130
138
|
|
|
139
|
+
/*
|
|
140
|
+
* A filled button draws no edge where the brand says so, as Noire does: the G2 button is 14px, the label's 19.2px
|
|
141
|
+
* line and 14px, so 47px tall, and only an outlined one adds its 1px edge, to 49px (#50). Forced colours keep the
|
|
142
|
+
* edge, since there the fill is gone.
|
|
143
|
+
*/
|
|
144
|
+
:is(.primary, .dark, .subtle, .accent, .danger, .ghost) { border-width: ${E.solidEdge}; }
|
|
145
|
+
@media (forced-colors: active) { :is(.primary, .dark, .subtle, .accent, .danger, .ghost) { border-width: 1px; } }
|
|
146
|
+
|
|
131
147
|
/* Outline: the card, a hairline border and the text colour, for the second choice. */
|
|
132
148
|
.secondary {
|
|
133
149
|
background: ${t.surfaceCard};
|
|
134
150
|
color: ${t.text};
|
|
135
|
-
border-color: ${t.text};
|
|
151
|
+
border-color: color-mix(in srgb, ${t.text} ${E.edge}, transparent);
|
|
152
|
+
box-shadow: ${t.shadowXs};
|
|
136
153
|
}
|
|
137
154
|
.secondary:hover:not([aria-disabled='true']) {
|
|
138
155
|
background: color-mix(in srgb, ${t.surfaceCard}, ${t.text} 4%);
|
|
@@ -157,13 +174,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
157
174
|
*/
|
|
158
175
|
.dark {
|
|
159
176
|
background: ${t.text};
|
|
160
|
-
color: ${
|
|
177
|
+
color: ${ni};
|
|
161
178
|
}
|
|
162
179
|
.dark:hover:not([aria-disabled='true']) {
|
|
163
|
-
background: color-mix(in srgb, ${t.text}, ${
|
|
180
|
+
background: color-mix(in srgb, ${t.text}, ${ni} 14%);
|
|
164
181
|
}
|
|
165
182
|
.dark:active:not([aria-disabled='true']) {
|
|
166
|
-
background: color-mix(in srgb, ${t.text}, ${
|
|
183
|
+
background: color-mix(in srgb, ${t.text}, ${ni} 24%);
|
|
167
184
|
}
|
|
168
185
|
|
|
169
186
|
/* Outline: transparent, a 1px border and words in the text colour, the design's "Ghost". On an ink band both are the paper. */
|
|
@@ -193,14 +210,14 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
193
210
|
|
|
194
211
|
/* 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. */
|
|
195
212
|
.accent {
|
|
196
|
-
background: ${
|
|
197
|
-
color: ${
|
|
213
|
+
background: ${d("color.accent.default","#ffd43b")};
|
|
214
|
+
color: ${d("color.accent.on","#1a1a1a")};
|
|
198
215
|
}
|
|
199
216
|
.accent:hover:not([aria-disabled='true']) {
|
|
200
|
-
background: ${
|
|
217
|
+
background: ${d("color.accent.hover","#e0bb34")};
|
|
201
218
|
}
|
|
202
219
|
.accent:active:not([aria-disabled='true']) {
|
|
203
|
-
background: color-mix(in srgb, ${
|
|
220
|
+
background: color-mix(in srgb, ${d("color.accent.hover","#e0bb34")}, ${d("color.accent.on","#1a1a1a")} 10%);
|
|
204
221
|
}
|
|
205
222
|
|
|
206
223
|
/* Danger: the danger text colour as a fill, so white words on it keep 4.5:1. */
|
|
@@ -217,18 +234,18 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
217
234
|
|
|
218
235
|
/* Icon only: as tall as it is wide, round where the brand rounds its corners and square under Noire. */
|
|
219
236
|
.icon-only {
|
|
220
|
-
inline-size:
|
|
221
|
-
min-inline-size:
|
|
222
|
-
block-size:
|
|
223
|
-
min-block-size:
|
|
237
|
+
inline-size: ${E.iconSize};
|
|
238
|
+
min-inline-size: ${E.iconSize};
|
|
239
|
+
block-size: ${E.iconSize};
|
|
240
|
+
min-block-size: ${E.iconSize};
|
|
224
241
|
padding: 0;
|
|
225
242
|
border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
|
|
226
243
|
}
|
|
227
244
|
:host([size='sm']) .icon-only { inline-size: 32px; min-inline-size: 32px; block-size: 32px; min-block-size: 32px; padding: 0; }
|
|
228
|
-
:host([size='lg']) .icon-only { inline-size:
|
|
245
|
+
:host([size='lg']) .icon-only { inline-size: ${E.lgIconSize}; min-inline-size: ${E.lgIconSize}; block-size: ${E.lgIconSize}; min-block-size: ${E.lgIconSize}; padding: 0; }
|
|
229
246
|
|
|
230
247
|
.sr-only {
|
|
231
|
-
${
|
|
248
|
+
${T}
|
|
232
249
|
}
|
|
233
250
|
|
|
234
251
|
/* Windows High Contrast Mode drops background and border colours, so a
|
|
@@ -239,9 +256,9 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
239
256
|
border-color: ButtonBorder;
|
|
240
257
|
}
|
|
241
258
|
}
|
|
242
|
-
`]}onClick(i){if(this.disabled||this.busy){i.preventDefault(),i.stopImmediatePropagation();return}this.type==="submit"&&this.internals?.form?.requestSubmit(),this.type==="reset"&&this.internals?.form?.reset()}render(){let i=!!(this.icon&&this.icon!=="none"&&this.label),
|
|
259
|
+
`]}onClick(i){if(this.disabled||this.busy){i.preventDefault(),i.stopImmediatePropagation();return}this.type==="submit"&&this.internals?.form?.requestSubmit(),this.type==="reset"&&this.internals?.form?.reset()}render(){let i=!!(this.icon&&this.icon!=="none"&&this.label),r=i?`${this.variant} icon-only`:this.variant;if(i){let c=M(this.icon);return this.href&&!this.disabled?o`<a class=${r} href=${this.href} part="button" aria-label=${this.label}>${c}</a>`:o`
|
|
243
260
|
<button
|
|
244
|
-
class=${
|
|
261
|
+
class=${r}
|
|
245
262
|
type="button"
|
|
246
263
|
part="button"
|
|
247
264
|
aria-label=${this.label}
|
|
@@ -250,10 +267,10 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
250
267
|
aria-busy=${this.busy?"true":l}
|
|
251
268
|
@click=${this.onClick}
|
|
252
269
|
>
|
|
253
|
-
${
|
|
254
|
-
${this.busy?
|
|
270
|
+
${c}
|
|
271
|
+
${this.busy?o`<span class="sr-only">${this.busyLabel}</span>`:l}
|
|
255
272
|
</button>
|
|
256
|
-
`}let o
|
|
273
|
+
`}let s=o`${M(this.iconBefore)}<slot></slot>${this.iconAfter&&this.iconAfter!=="none"?o`<span class=${this.iconAfter==="arrow-right"?"after arrow":"after"} aria-hidden="true">${M(this.iconAfter)}${this.iconAfter==="arrow-right"?$r:l}</span>`:l}`;return this.href&&!this.disabled?o`<a class=${this.variant} href=${this.href} part="button">${s}</a>`:o`
|
|
257
274
|
<button
|
|
258
275
|
class=${this.variant}
|
|
259
276
|
type="button"
|
|
@@ -263,33 +280,37 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
263
280
|
aria-busy=${this.busy?"true":l}
|
|
264
281
|
@click=${this.onClick}
|
|
265
282
|
>
|
|
266
|
-
${
|
|
267
|
-
${this.busy?
|
|
283
|
+
${s}
|
|
284
|
+
${this.busy?o`<span class="sr-only">${this.busyLabel}</span>`:l}
|
|
268
285
|
</button>
|
|
269
|
-
`}};customElements.define("impakt-button",
|
|
286
|
+
`}};customElements.define("impakt-button",Re);var D=u`
|
|
270
287
|
:host { --impakt-field-width: 100%; }
|
|
271
288
|
:host([width='xs']) { --impakt-field-width: 8ch; }
|
|
272
289
|
:host([width='sm']) { --impakt-field-width: 14ch; }
|
|
273
290
|
:host([width='md']) { --impakt-field-width: 24ch; }
|
|
274
291
|
:host([width='lg']) { --impakt-field-width: 40ch; }
|
|
275
|
-
`,
|
|
292
|
+
`,V={height:d("field.height","44px"),paddingBlock:d("field.padding-block","10px"),paddingInline:d("field.padding-inline","12px"),lineHeight:d("field.line-height","normal"),radius:d("field.radius","8px"),edge:d("field.edge","0%"),focusEdge:d("field.focus-edge","0%"),focusHalo:d("field.focus-halo","6px")},ae=n=>{let e=L(n);return u`
|
|
276
293
|
${e} {
|
|
277
294
|
inline-size: min(100%, var(--impakt-field-width));
|
|
278
|
-
min-block-size:
|
|
279
|
-
padding:
|
|
295
|
+
min-block-size: ${V.height};
|
|
296
|
+
padding: ${V.paddingBlock} ${V.paddingInline};
|
|
280
297
|
font-family: inherit;
|
|
281
298
|
font-size: ${b("md")};
|
|
282
|
-
line-height:
|
|
299
|
+
line-height: ${V.lineHeight};
|
|
283
300
|
color: ${t.text};
|
|
284
301
|
background: var(--impakt-color-field-surface, ${t.surfaceCard});
|
|
285
|
-
border: ${t.borderThin} solid var(--impakt-color-field-border, ${t.text});
|
|
286
|
-
border-radius: ${
|
|
287
|
-
box-shadow: var(--impakt-shadow-field,
|
|
302
|
+
border: ${t.borderThin} solid var(--impakt-color-field-border, color-mix(in srgb, ${t.text} ${V.edge}, ${t.border}));
|
|
303
|
+
border-radius: ${V.radius};
|
|
304
|
+
box-shadow: var(--impakt-shadow-field, ${t.shadowXs});
|
|
288
305
|
transition: border-color 120ms ease-in-out, box-shadow 120ms ease-in-out;
|
|
289
306
|
}
|
|
307
|
+
${e}:hover:not(:disabled) {
|
|
308
|
+
border-color: var(--impakt-color-field-border, color-mix(in srgb, ${t.text} ${V.edge}, ${t.borderStrong}));
|
|
309
|
+
}
|
|
310
|
+
/* The focus ring, and the brand's halo round it where the brand draws one, so the field being typed in is plain at a glance. */
|
|
290
311
|
${e}:focus-visible {
|
|
291
|
-
border-color: ${t.text};
|
|
292
|
-
box-shadow: ${t.focusShadow};
|
|
312
|
+
border-color: color-mix(in srgb, ${t.text} ${V.focusEdge}, ${t.brand});
|
|
313
|
+
box-shadow: ${t.focusShadow}, 0 0 0 ${V.focusHalo} ${t.brandHalo};
|
|
293
314
|
}
|
|
294
315
|
${e}::placeholder {
|
|
295
316
|
color: ${t.textPlaceholder};
|
|
@@ -303,25 +324,26 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
303
324
|
border-color: ${t.danger};
|
|
304
325
|
border-width: ${t.borderThick};
|
|
305
326
|
}
|
|
306
|
-
`},x=class extends
|
|
327
|
+
`},x=class extends h{constructor(){super();this.internals=null;this.label="",this.name="",this.value="",this.description="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this.requiredText="required";try{this.internals=this.attachInternals()}catch{this.internals=null}}static{this.formAssociated=!0}static{this.properties={label:{type:String},name:{type:String},value:{type:String},description:{type:String},error:{type:String},required:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},readonly:{type:Boolean,reflect:!0},requiredText:{type:String,attribute:"required-text"}}}static{this.styles=[...h.styles,k,u`
|
|
307
328
|
:host {
|
|
308
329
|
display: block;
|
|
309
|
-
margin-block-end: ${
|
|
330
|
+
margin-block-end: ${a(4)};
|
|
310
331
|
}
|
|
311
332
|
/*
|
|
312
|
-
* The question, in the
|
|
313
|
-
*
|
|
314
|
-
*
|
|
333
|
+
* The question, at 14px in the ink: semibold in the body face, or under Noire in the code
|
|
334
|
+
* face (G2). The brand sets the face and weight (field.label.*); a page can set it
|
|
335
|
+
* another way through these properties, such as the site's contact form, which sets its
|
|
336
|
+
* labels in capitals at 11px (frame 20:1157).
|
|
315
337
|
*/
|
|
316
338
|
.label {
|
|
317
339
|
display: block;
|
|
318
|
-
font-family: var(--impakt-field-label-font, ${t.
|
|
340
|
+
font-family: var(--impakt-field-label-font, ${t.fontBody});
|
|
319
341
|
font-size: var(--impakt-field-label-size, ${b("sm")});
|
|
320
|
-
font-weight: var(--impakt-field-label-weight, ${m("
|
|
342
|
+
font-weight: var(--impakt-field-label-weight, ${m("semibold")});
|
|
321
343
|
letter-spacing: var(--impakt-field-label-tracking, normal);
|
|
322
344
|
text-transform: var(--impakt-field-label-transform, none);
|
|
323
|
-
line-height: ${
|
|
324
|
-
margin-block-end: ${
|
|
345
|
+
line-height: ${P("normal")};
|
|
346
|
+
margin-block-end: var(--impakt-field-label-space, ${a(1)});
|
|
325
347
|
color: ${t.text};
|
|
326
348
|
}
|
|
327
349
|
.required {
|
|
@@ -330,23 +352,23 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
330
352
|
}
|
|
331
353
|
.description {
|
|
332
354
|
font-size: ${b("sm")};
|
|
333
|
-
line-height: ${
|
|
355
|
+
line-height: ${P("normal")};
|
|
334
356
|
color: ${t.textMuted};
|
|
335
|
-
margin-block-end: ${
|
|
357
|
+
margin-block-end: ${a(2)};
|
|
336
358
|
}
|
|
337
359
|
.error {
|
|
338
360
|
font-size: ${b("sm")};
|
|
339
|
-
line-height: ${
|
|
361
|
+
line-height: ${P("normal")};
|
|
340
362
|
color: ${t.dangerText};
|
|
341
|
-
margin-block-start: ${
|
|
363
|
+
margin-block-start: ${a(1)};
|
|
342
364
|
display: flex;
|
|
343
|
-
gap: ${
|
|
365
|
+
gap: ${a(1)};
|
|
344
366
|
}
|
|
345
367
|
.error:empty {
|
|
346
368
|
display: none;
|
|
347
369
|
}
|
|
348
370
|
.visually-hidden {
|
|
349
|
-
${
|
|
371
|
+
${T}
|
|
350
372
|
}
|
|
351
373
|
/*
|
|
352
374
|
* Only the control is dimmed. Dimming the whole host took the question,
|
|
@@ -358,13 +380,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
358
380
|
opacity: 0.6;
|
|
359
381
|
cursor: not-allowed;
|
|
360
382
|
}
|
|
361
|
-
`]}get controlId(){return this.id_("control")}get describedBy(){let i=[this.description?this.id_("description"):"",this.error?this.id_("error"):""].filter(Boolean);return i.length?i.join(" "):l}focus(i){let
|
|
383
|
+
`]}get controlId(){return this.id_("control")}get describedBy(){let i=[this.description?this.id_("description"):"",this.error?this.id_("error"):""].filter(Boolean);return i.length?i.join(" "):l}focus(i){let r=this.renderRoot?.querySelector(`#${this.controlId}`)??this.renderRoot?.querySelector("input, select, textarea, button");r?r.focus(i):super.focus(i)}renderLabel(){return o`
|
|
362
384
|
<label class="label" for=${this.controlId} part="label">
|
|
363
|
-
${this.label}${this.required?
|
|
385
|
+
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
364
386
|
</label>
|
|
365
|
-
`}render(){return
|
|
387
|
+
`}render(){return o`
|
|
366
388
|
${this.renderLabel()}
|
|
367
|
-
${this.description?
|
|
389
|
+
${this.description?o`<div class="description" id=${this.id_("description")} part="description">
|
|
368
390
|
${this.description}
|
|
369
391
|
</div>`:l}
|
|
370
392
|
${this.renderControl()}
|
|
@@ -383,7 +405,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
383
405
|
>
|
|
384
406
|
${this.error||l}
|
|
385
407
|
</div>
|
|
386
|
-
`}setFormValue(i){this.value=i,this.internals?.setFormValue(i),this.dispatchEvent(new CustomEvent("impakt-change",{detail:this.changeDetail(i),bubbles:!0,composed:!0}))}changeDetail(i){return{value:i}}};var
|
|
408
|
+
`}setFormValue(i){this.value=i,this.internals?.setFormValue(i),this.dispatchEvent(new CustomEvent("impakt-change",{detail:this.changeDetail(i),bubbles:!0,composed:!0}))}changeDetail(i){return{value:i}}};var _e=class extends x{static{this.properties={...x.properties,width:{type:String,reflect:!0},type:{type:String},placeholder:{type:String},autocomplete:{type:String},inputmode:{type:String},maxlength:{type:Number},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0}}}constructor(){super(),this.width="full",this.type="text",this.placeholder="",this.autocomplete="",this.inputmode="",this.maxlength=void 0,this.hideLabel=!1}static{this.styles=[...x.styles,D,ae("input"),u`
|
|
387
409
|
:host([hide-label]) .label {
|
|
388
410
|
position: absolute;
|
|
389
411
|
inline-size: 1px;
|
|
@@ -399,19 +421,19 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
399
421
|
}
|
|
400
422
|
.search input {
|
|
401
423
|
inline-size: 100%;
|
|
402
|
-
padding-inline-start: ${
|
|
424
|
+
padding-inline-start: ${a(10)};
|
|
403
425
|
/* A pill where the brand rounds its corners, square under Noire. */
|
|
404
426
|
border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
|
|
405
427
|
}
|
|
406
428
|
.search .icon {
|
|
407
429
|
position: absolute;
|
|
408
|
-
inset-inline-start: ${
|
|
430
|
+
inset-inline-start: ${a(3.5)};
|
|
409
431
|
inset-block-start: 50%;
|
|
410
432
|
transform: translateY(-50%);
|
|
411
433
|
color: ${t.textMuted};
|
|
412
434
|
pointer-events: none;
|
|
413
435
|
}
|
|
414
|
-
`]}renderControl(){let e=this.renderInput();return this.type==="search"?
|
|
436
|
+
`]}renderControl(){let e=this.renderInput();return this.type==="search"?o`<span class="search" part="search">${M("search","20px")}${e}</span>`:e}renderInput(){return o`
|
|
415
437
|
<input
|
|
416
438
|
id=${this.controlId}
|
|
417
439
|
part="input"
|
|
@@ -429,17 +451,45 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
429
451
|
aria-invalid=${this.error?"true":l}
|
|
430
452
|
@input=${e=>this.setFormValue(e.target.value)}
|
|
431
453
|
/>
|
|
432
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-text-input",
|
|
454
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-text-input",_e);var He=class extends x{static{this.properties={...x.properties,width:{type:String,reflect:!0},options:{type:Array},placeholder:{type:String},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.width="full",this.options=[],this.placeholder="Choose an option",this.hideLabel=!1,this.size="md"}static{this.styles=[...x.styles,D,ae("select"),u`
|
|
433
455
|
:host([hide-label]) .label {
|
|
434
|
-
${
|
|
456
|
+
${T}
|
|
435
457
|
}
|
|
436
|
-
/*
|
|
458
|
+
/* A compact box sits inline, in a toolbar, so it has none of a form field's spacing under it. */
|
|
459
|
+
:host([size='sm']) {
|
|
460
|
+
margin-block-end: 0;
|
|
461
|
+
}
|
|
462
|
+
/* A compact box is as wide as its longest option, as a filter in a toolbar is. */
|
|
463
|
+
:host([size='sm']) .box {
|
|
464
|
+
inline-size: max-content;
|
|
465
|
+
max-inline-size: 100%;
|
|
466
|
+
}
|
|
467
|
+
:host([size='sm']) select {
|
|
468
|
+
inline-size: auto;
|
|
469
|
+
min-block-size: 32px;
|
|
470
|
+
padding-block: 4px;
|
|
471
|
+
padding-inline-start: 10px;
|
|
472
|
+
font-size: 14px;
|
|
473
|
+
}
|
|
474
|
+
/* Nothing under a compact box until there is an error to show, so it lines up with the chips beside it. */
|
|
475
|
+
:host([size='sm']) .error:empty {
|
|
476
|
+
margin: 0;
|
|
477
|
+
}
|
|
478
|
+
:host([size='sm']) .caret {
|
|
479
|
+
inset-inline-end: 10px;
|
|
480
|
+
font-size: 12px;
|
|
481
|
+
}
|
|
482
|
+
/*
|
|
483
|
+
* The marker. Most brands keep the browser's own arrow. Where the brand says so, as Noire does
|
|
484
|
+
* (select.appearance and select.caret), it is replaced by a small "▾", drawn beside the box's
|
|
485
|
+
* end and hidden from screen readers.
|
|
486
|
+
*/
|
|
437
487
|
.box { position: relative; display: block; inline-size: min(100%, var(--impakt-field-width)); }
|
|
438
|
-
select { inline-size: 100%; appearance:
|
|
439
|
-
.caret { position: absolute; inset-inline-end: ${
|
|
488
|
+
select { inline-size: 100%; appearance: var(--impakt-select-appearance, auto); -webkit-appearance: var(--impakt-select-appearance, auto); padding-inline-end: var(--impakt-select-padding-end, ${a(3)}); cursor: pointer; }
|
|
489
|
+
.caret { display: var(--impakt-select-caret, none); position: absolute; inset-inline-end: ${a(3.5)}; inset-block-start: 50%; transform: translateY(-50%); font-size: ${b("sm")}; line-height: 1; color: ${t.text}; pointer-events: none; }
|
|
440
490
|
/* A forced colours mode draws the box in the system colours; the caret takes the text colour. */
|
|
441
491
|
@media (forced-colors: active) { .caret { color: CanvasText; } }
|
|
442
|
-
`]}renderControl(){return
|
|
492
|
+
`]}renderControl(){return o`
|
|
443
493
|
<span class="box" part="box"><select
|
|
444
494
|
id=${this.controlId}
|
|
445
495
|
part="select"
|
|
@@ -451,13 +501,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
451
501
|
@change=${e=>this.setFormValue(e.target.value)}
|
|
452
502
|
>
|
|
453
503
|
<option value="" ?selected=${!this.value}>${this.placeholder}</option>
|
|
454
|
-
${this.options.map(e=>
|
|
455
|
-
</select><span class="caret" aria-hidden="true">▾</span></span>
|
|
456
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-select",
|
|
504
|
+
${this.options.map(e=>o`<option value=${e.value} ?selected=${this.value===e.value}>${e.label}</option>`)}
|
|
505
|
+
</select><span class="caret" part="caret" aria-hidden="true">▾</span></span>
|
|
506
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-select",He);var Be=class extends x{static{this.properties={...x.properties,checked:{type:Boolean,reflect:!0}}}constructor(){super(),this.checked=!1}static{this.styles=[...x.styles,C(".row"),u`
|
|
457
507
|
.row {
|
|
458
508
|
display: flex;
|
|
459
509
|
align-items: flex-start;
|
|
460
|
-
gap: ${
|
|
510
|
+
gap: ${a(3)};
|
|
461
511
|
cursor: pointer;
|
|
462
512
|
}
|
|
463
513
|
input {
|
|
@@ -474,7 +524,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
474
524
|
:host([invalid]) .row {
|
|
475
525
|
color: ${t.dangerText};
|
|
476
526
|
}
|
|
477
|
-
`]}renderControl(){return
|
|
527
|
+
`]}renderControl(){return o`
|
|
478
528
|
<label class="row" part="row" for=${this.controlId}>
|
|
479
529
|
<input
|
|
480
530
|
type="checkbox"
|
|
@@ -489,20 +539,20 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
489
539
|
@change=${e=>{this.checked=e.target.checked,this.setFormValue(this.checked?"on":"")}}
|
|
490
540
|
/>
|
|
491
541
|
<span class="text">
|
|
492
|
-
${this.label}${this.required?
|
|
542
|
+
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
493
543
|
</span>
|
|
494
544
|
</label>
|
|
495
|
-
`}renderLabel(){return
|
|
496
|
-
:host { display: flex; flex-direction: column; gap: ${
|
|
497
|
-
.card { padding: ${
|
|
498
|
-
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${
|
|
545
|
+
`}renderLabel(){return o`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox",Be);var xr=L("48rem");function Fi(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 li(n,e){let i=Fi(n);if(!i)return!1;let r=Fi(e||(typeof location>"u"?"":location.pathname));return r?i===r?!0:i!=="/"&&r.startsWith(`${i}/`):!1}function me(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 Ne=class extends h{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=[...h.styles,k,u`
|
|
546
|
+
:host { display: flex; flex-direction: column; gap: ${a(5)}; block-size: 100%; }
|
|
547
|
+
.card { padding: ${a(2)}; border-radius: ${t.radiusXl}; background: ${t.surfaceCard}; }
|
|
548
|
+
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${a(.5)}; }
|
|
499
549
|
a {
|
|
500
550
|
${z}
|
|
501
551
|
display: flex;
|
|
502
552
|
align-items: center;
|
|
503
|
-
gap: ${
|
|
553
|
+
gap: ${a(3)};
|
|
504
554
|
min-block-size: 44px;
|
|
505
|
-
padding: 0 ${
|
|
555
|
+
padding: 0 ${a(3.5)};
|
|
506
556
|
border-radius: ${t.radiusLg};
|
|
507
557
|
color: ${t.text};
|
|
508
558
|
font-size: ${b("md")};
|
|
@@ -517,35 +567,35 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
517
567
|
.footer.empty { display: none; }
|
|
518
568
|
@media (prefers-reduced-motion: reduce) { a { transition: none; } }
|
|
519
569
|
@media (forced-colors: active) { a[aria-current='page'] { border: 2px solid Highlight; } }
|
|
520
|
-
`]}onFooter(i){let
|
|
570
|
+
`]}onFooter(i){let r=i.target;this.footerFilled=r.assignedNodes({flatten:!0}).some(s=>s.nodeType===Node.ELEMENT_NODE||(s.textContent??"").trim()!==""),this.requestUpdate()}render(){return o`
|
|
521
571
|
<nav class="card" aria-label=${this.label} part="nav">
|
|
522
572
|
<ul part="list">
|
|
523
|
-
${this.items.map(i=>
|
|
573
|
+
${this.items.map(i=>o`
|
|
524
574
|
<li>
|
|
525
575
|
<a
|
|
526
576
|
href=${i.href}
|
|
527
577
|
part="link"
|
|
528
|
-
aria-current=${
|
|
529
|
-
@click=${
|
|
578
|
+
aria-current=${li(i.href,this.current)?"page":l}
|
|
579
|
+
@click=${r=>me(this,r,i)}
|
|
530
580
|
>${M(i.icon,"20px")}<span>${i.label}</span></a>
|
|
531
581
|
</li>
|
|
532
582
|
`)}
|
|
533
583
|
</ul>
|
|
534
584
|
</nav>
|
|
535
585
|
<div class="card footer ${this.footerFilled?"":"empty"}" part="footer"><slot name="footer" @slotchange=${this.onFooter}></slot></div>
|
|
536
|
-
`}},
|
|
586
|
+
`}},Oe=class extends h{static{this.properties={items:{type:Array},label:{type:String},current:{type:String}}}constructor(){super(),this.items=[],this.label="Main",this.current=""}static{this.styles=[...h.styles,k,u`
|
|
537
587
|
:host { display: block; }
|
|
538
|
-
nav { padding: ${
|
|
539
|
-
ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${
|
|
588
|
+
nav { padding: ${a(1.5)}; border-radius: ${t.radiusXl}; background: ${t.text}; box-shadow: ${t.shadowLg}; }
|
|
589
|
+
ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${a(1)}; }
|
|
540
590
|
li { flex: 1 1 0; min-inline-size: 0; }
|
|
541
591
|
a {
|
|
542
592
|
display: flex;
|
|
543
593
|
flex-direction: column;
|
|
544
594
|
align-items: center;
|
|
545
595
|
justify-content: center;
|
|
546
|
-
gap: ${
|
|
596
|
+
gap: ${a(1)};
|
|
547
597
|
min-block-size: 50px;
|
|
548
|
-
padding: ${
|
|
598
|
+
padding: ${a(1)};
|
|
549
599
|
border-radius: ${t.radiusLg};
|
|
550
600
|
/* The resting items are a blend of the card and text colours that keeps 4.5:1 on the bar. */
|
|
551
601
|
color: color-mix(in srgb, ${t.surfaceCard} 74%, ${t.text});
|
|
@@ -559,22 +609,22 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
559
609
|
a[aria-current='page'] { background: color-mix(in srgb, ${t.text}, ${t.surfaceCard} 16%); color: ${t.surfaceCard}; }
|
|
560
610
|
span.word { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
561
611
|
@media (forced-colors: active) { a[aria-current='page'] { border: 2px solid Highlight; } }
|
|
562
|
-
`]}render(){return
|
|
612
|
+
`]}render(){return o`
|
|
563
613
|
<nav aria-label=${this.label} part="nav">
|
|
564
614
|
<ul part="list">
|
|
565
|
-
${this.items.map(e=>
|
|
615
|
+
${this.items.map(e=>o`
|
|
566
616
|
<li>
|
|
567
617
|
<a
|
|
568
618
|
href=${e.href}
|
|
569
619
|
part="link"
|
|
570
|
-
aria-current=${
|
|
571
|
-
@click=${i=>
|
|
620
|
+
aria-current=${li(e.href,this.current)?"page":l}
|
|
621
|
+
@click=${i=>me(this,i,e)}
|
|
572
622
|
>${M(e.icon,"22px")}<span class="word">${e.label}</span></a>
|
|
573
623
|
</li>
|
|
574
624
|
`)}
|
|
575
625
|
</ul>
|
|
576
626
|
</nav>
|
|
577
|
-
`}},
|
|
627
|
+
`}},Pe=class extends h{static{this.properties={skipText:{type:String,attribute:"skip-text"},topBarLabel:{type:String,attribute:"top-bar-label"}}}constructor(){super(),this.skipText="Skip to content",this.topBarLabel=""}static{this.styles=[...h.styles,k,u`
|
|
578
628
|
:host {
|
|
579
629
|
display: block;
|
|
580
630
|
min-block-size: 100svh;
|
|
@@ -591,30 +641,30 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
591
641
|
grid-template-columns: var(--impakt-shell-side, 190px) minmax(0, 1fr);
|
|
592
642
|
grid-template-rows: auto 1fr;
|
|
593
643
|
grid-template-areas: 'brand top' 'side main';
|
|
594
|
-
gap: ${
|
|
595
|
-
min-block-size: calc(100svh - 2 * ${
|
|
596
|
-
margin: ${
|
|
597
|
-
padding: ${
|
|
644
|
+
gap: ${a(5)};
|
|
645
|
+
min-block-size: calc(100svh - 2 * ${a(5)});
|
|
646
|
+
margin: ${a(5)};
|
|
647
|
+
padding: ${a(5)};
|
|
598
648
|
border-radius: var(--impakt-shell-radius, 36px);
|
|
599
|
-
background: ${
|
|
649
|
+
background: ${d("color.surface.page","#f2f5f4")};
|
|
600
650
|
}
|
|
601
651
|
.brand { grid-area: brand; display: flex; align-items: center; min-block-size: 52px; }
|
|
602
652
|
.side { grid-area: side; display: flex; flex-direction: column; min-block-size: 0; }
|
|
603
653
|
.side ::slotted(*) { flex: 1; }
|
|
604
|
-
header { grid-area: top; display: flex; align-items: center; gap: ${
|
|
654
|
+
header { grid-area: top; display: flex; align-items: center; gap: ${a(5)}; min-inline-size: 0; }
|
|
605
655
|
.workspace { flex: none; }
|
|
606
656
|
.search { flex: 1 1 auto; display: flex; justify-content: center; min-inline-size: 0; }
|
|
607
657
|
.search ::slotted(*) { inline-size: min(100%, 420px); }
|
|
608
|
-
.actions { flex: none; display: flex; align-items: center; gap: ${
|
|
658
|
+
.actions { flex: none; display: flex; align-items: center; gap: ${a(3)}; }
|
|
609
659
|
main { grid-area: main; min-inline-size: 0; }
|
|
610
660
|
main:focus { outline: none; }
|
|
611
661
|
.phone-header, .tab-bar { display: none; }
|
|
612
662
|
.skip {
|
|
613
663
|
position: absolute;
|
|
614
|
-
inset-inline-start: ${
|
|
615
|
-
inset-block-start: ${
|
|
664
|
+
inset-inline-start: ${a(2)};
|
|
665
|
+
inset-block-start: ${a(2)};
|
|
616
666
|
z-index: 20;
|
|
617
|
-
padding: ${
|
|
667
|
+
padding: ${a(2)} ${a(4)};
|
|
618
668
|
background: ${t.surfaceCard};
|
|
619
669
|
color: ${t.link};
|
|
620
670
|
border-radius: ${t.radius};
|
|
@@ -623,7 +673,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
623
673
|
.skip:not(:focus) { clip-path: inset(50%); }
|
|
624
674
|
.skip:focus { transform: none; }
|
|
625
675
|
|
|
626
|
-
@media (max-width: ${
|
|
676
|
+
@media (max-width: ${xr}) {
|
|
627
677
|
:host { background: ${t.text}; }
|
|
628
678
|
.frame {
|
|
629
679
|
display: flex;
|
|
@@ -641,7 +691,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
641
691
|
reads light without being told. */
|
|
642
692
|
.phone-header {
|
|
643
693
|
display: block;
|
|
644
|
-
padding: calc(${
|
|
694
|
+
padding: calc(${a(4)} + env(safe-area-inset-top)) ${a(5)} ${a(10)};
|
|
645
695
|
color: var(--impakt-shell-paper);
|
|
646
696
|
--impakt-color-text-default: var(--impakt-shell-paper);
|
|
647
697
|
--impakt-color-text-heading: var(--impakt-shell-paper);
|
|
@@ -651,21 +701,21 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
651
701
|
main {
|
|
652
702
|
position: relative;
|
|
653
703
|
flex: 1;
|
|
654
|
-
margin-block-start: calc(-1 * ${
|
|
704
|
+
margin-block-start: calc(-1 * ${a(6)});
|
|
655
705
|
/* Room for the floating tab bar, so the last of the content can scroll clear of it. */
|
|
656
|
-
padding: ${
|
|
706
|
+
padding: ${a(4)} ${a(4)} calc(96px + env(safe-area-inset-bottom));
|
|
657
707
|
border-radius: 28px 28px 0 0;
|
|
658
|
-
background: ${
|
|
708
|
+
background: ${d("color.surface.page","#f2f5f4")};
|
|
659
709
|
}
|
|
660
710
|
.tab-bar {
|
|
661
711
|
display: block;
|
|
662
712
|
position: fixed;
|
|
663
713
|
z-index: 10;
|
|
664
|
-
inset-inline: ${
|
|
665
|
-
inset-block-end: calc(${
|
|
714
|
+
inset-inline: ${a(4)};
|
|
715
|
+
inset-block-end: calc(${a(3)} + env(safe-area-inset-bottom));
|
|
666
716
|
}
|
|
667
717
|
}
|
|
668
|
-
`]}skip(e){e.preventDefault();let i=this.renderRoot.querySelector("main");i?.focus(),i?.scrollIntoView()}render(){return
|
|
718
|
+
`]}skip(e){e.preventDefault();let i=this.renderRoot.querySelector("main");i?.focus(),i?.scrollIntoView()}render(){return o`
|
|
669
719
|
<div class="frame" part="frame">
|
|
670
720
|
<a class="skip" href="#content" part="skip" @click=${this.skip}>${this.skipText}</a>
|
|
671
721
|
<div class="brand" part="brand"><slot name="brand"></slot></div>
|
|
@@ -679,7 +729,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
679
729
|
<main id="content" tabindex="-1" part="main"><slot></slot></main>
|
|
680
730
|
<div class="tab-bar" part="tab-bar"><slot name="tab-bar"></slot></div>
|
|
681
731
|
</div>
|
|
682
|
-
`}};customElements.define("impakt-side-nav",
|
|
732
|
+
`}};customElements.define("impakt-side-nav",Ne);customElements.define("impakt-tab-bar",Oe);customElements.define("impakt-app-shell",Pe);function q(n){let e=n?.closest?.("[lang]")?.getAttribute("lang"),i=!e&&n?n.getRootNode?.()?.host?.closest?.("[lang]")?.getAttribute("lang")??"":"",r=typeof document<"u"?document.documentElement?.lang??"":"",s=(e||i||r||"").trim();return!s||s.toLowerCase()==="en"?"en-GB":s}var f={lineSoft:d("color.line.soft","light-dark(#CFCCC5, #2E2E2E)"),ok:d("color.status.ok-mark","#137A52"),bad:d("color.status.bad-mark","light-dark(#B23A2E, #F0978F)"),accent:d("color.accent.default","#FFD43B"),onOk:d("color.status.on-ok","#FFFFFF"),codeSurface:d("color.code.surface","#111111"),codeText:d("color.code.text","#FFFFFF"),codeMuted:d("color.code.muted","#A8A8A6"),inverse:t.text,onInverse:t.surfaceCard,small:d("font.size.sm","0.875rem"),tiny:d("font.size.2xs","0.6875rem"),medium:d("font.weight.medium","500"),regular:d("font.weight.regular","400")};var qe=class extends h{static{this.properties={tone:{type:String,reflect:!0},label:{type:String},size:{type:String,reflect:!0},live:{type:Boolean,reflect:!0}}}constructor(){super(),this.tone="neutral",this.label="",this.size="tool",this.live=!1}static{this.styles=[...h.styles,u`
|
|
683
733
|
/* A short pill stays on one line; a long one wraps inside its border rather than pushing the page sideways at 320 (1.4.10). */
|
|
684
734
|
:host {
|
|
685
735
|
display: inline-flex;
|
|
@@ -691,8 +741,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
691
741
|
.pill {
|
|
692
742
|
display: inline-flex;
|
|
693
743
|
align-items: center;
|
|
694
|
-
gap: ${
|
|
695
|
-
padding: 3px ${
|
|
744
|
+
gap: ${a(1.5)};
|
|
745
|
+
padding: 3px ${a(2)};
|
|
696
746
|
font-family: ${t.fontMono};
|
|
697
747
|
font-size: ${f.small};
|
|
698
748
|
font-weight: ${f.medium};
|
|
@@ -739,47 +789,49 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
739
789
|
border-color: CanvasText;
|
|
740
790
|
}
|
|
741
791
|
}
|
|
742
|
-
`]}get hasDot(){return this.tone==="ok"||this.tone==="bad"||this.tone==="warn"||this.tone==="info"}render(){return
|
|
743
|
-
>${this.hasDot?
|
|
744
|
-
>`}};customElements.define("impakt-status",
|
|
792
|
+
`]}get hasDot(){return this.tone==="ok"||this.tone==="bad"||this.tone==="warn"||this.tone==="info"}render(){return o`<span class="pill" part="pill" role=${this.live?"status":l}
|
|
793
|
+
>${this.hasDot?o`<span class="dot" part="dot" aria-hidden="true"></span>`:l}<span class="text"><slot>${this.label}</slot></span></span
|
|
794
|
+
>`}};customElements.define("impakt-status",qe);var yr=["ok","bad","warn","info","neutral","solid"],De=u`
|
|
745
795
|
.status-pill {
|
|
746
796
|
flex: none;
|
|
747
797
|
inline-size: fit-content;
|
|
748
798
|
}
|
|
749
|
-
`,
|
|
799
|
+
`,oe=(n,e,i="status")=>{if(!n)return l;let r=yr.includes(e)?e:"neutral";return o`<impakt-status class="status-pill" part=${i} tone=${r} label=${n}></impakt-status>`};var ge=d("color.text.inverse","var(--impakt-solid-card, var(--impakt-color-surface-card, #ffffff))"),I={padding:d("tile.padding","12px 16px"),gap:d("tile.gap","4px"),minHeight:d("tile.min-height","84px"),align:d("tile.align","stretch"),edgeWidth:d("tile.edge-width","0px"),radius:d("tile.radius","8px"),fill:d("tile.fill","0%"),hover:d("tile.hover","5%"),labelFont:d("tile.label.font","var(--impakt-font-family-body, system-ui, sans-serif)"),labelSize:d("tile.label.size","11px"),labelWeight:d("tile.label.weight","500"),labelTracking:d("tile.label.tracking","0.06em"),labelTransform:d("tile.label.transform","uppercase"),valueSize:d("tile.value.size","34px"),valueStat:d("tile.value.stat","0"),valueLineHeight:d("tile.value.line-height","1.1"),valueTracking:d("tile.value.tracking","0em"),valueWeight:d("tile.value.weight","300"),valueSpace:d("tile.value.space","auto"),lgRadius:d("tile.lg.radius","12px"),lgLabelSize:d("tile.lg.label.size","0.875rem"),lgLabelTracking:d("tile.lg.label.tracking","0em"),lgLabelTransform:d("tile.lg.label.transform","none")},kr=L(`calc(var(--impakt-type-stat-size, 3.25rem) * ${I.valueStat} + ${I.valueSize} * (1 - ${I.valueStat}))`),vr=L(`calc(2.5rem * ${I.valueStat} + ${I.valueSize} * (1 - ${I.valueStat}))`),ji=L(`color-mix(in srgb, ${t.surfaceCard} ${I.fill}, ${t.surfaceInset})`),wr=d("font.weight.light","300"),Fe=class extends h{static{this.properties={label:{type:String},value:{type:String},caption:{type:String},href:{type:String},tone:{type:String,reflect:!0},size:{type:String,reflect:!0},status:{type:String},statusTone:{type:String,attribute:"status-tone"}}}constructor(){super(),this.label="",this.value="",this.caption="",this.href="",this.tone="plain",this.size="md",this.status="",this.statusTone="neutral"}static{this.styles=[...h.styles,k,De,u`
|
|
750
800
|
:host { display: block; }
|
|
751
801
|
.tile {
|
|
752
802
|
box-sizing: border-box;
|
|
753
803
|
display: flex;
|
|
754
804
|
flex-direction: column;
|
|
755
|
-
align-items:
|
|
756
|
-
gap: ${
|
|
805
|
+
align-items: ${I.align};
|
|
806
|
+
gap: ${I.gap};
|
|
757
807
|
block-size: 100%;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
border
|
|
761
|
-
|
|
808
|
+
min-block-size: ${I.minHeight};
|
|
809
|
+
padding: ${I.padding};
|
|
810
|
+
border: ${I.edgeWidth} solid ${t.text};
|
|
811
|
+
border-radius: ${I.radius};
|
|
812
|
+
background: ${ji};
|
|
762
813
|
color: ${t.text};
|
|
763
814
|
text-decoration: none;
|
|
764
815
|
}
|
|
765
|
-
a.tile:hover { background: color-mix(in srgb, ${
|
|
766
|
-
.label { font-family: ${
|
|
767
|
-
/*
|
|
768
|
-
.value {
|
|
816
|
+
a.tile:hover { background: color-mix(in srgb, ${ji}, ${t.text} ${I.hover}); }
|
|
817
|
+
.label { font-family: ${I.labelFont}; font-size: ${I.labelSize}; font-weight: ${I.labelWeight}; letter-spacing: ${I.labelTracking}; text-transform: ${I.labelTransform}; color: ${t.textMuted}; }
|
|
818
|
+
/* The figure: light at 34px where the brand derives it, or under Noire (G2) Archivo SemiBold 52/1.04, -4%. A word fits as well as a number. */
|
|
819
|
+
.value { margin-block-start: ${I.valueSpace}; font-size: ${kr}; line-height: ${I.valueLineHeight}; letter-spacing: ${I.valueTracking}; font-weight: ${I.valueWeight}; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
769
820
|
.caption { font-size: ${b("sm")}; line-height: 1.45; color: ${t.textMuted}; }
|
|
770
|
-
:host([size='lg']) .tile { min-block-size: 200px; padding: ${
|
|
771
|
-
:host([size='lg']) .
|
|
821
|
+
:host([size='lg']) .tile { min-block-size: 200px; padding: ${a(6)}; border-radius: ${I.lgRadius}; }
|
|
822
|
+
:host([size='lg']) .label { font-size: ${I.lgLabelSize}; letter-spacing: ${I.lgLabelTracking}; text-transform: ${I.lgLabelTransform}; }
|
|
823
|
+
:host([size='lg']) .value { margin-block-start: auto; font-size: 64px; line-height: 1; font-weight: ${wr}; }
|
|
772
824
|
:host([tone='brand']) .tile { background: ${t.brand}; color: ${t.onBrand}; border-color: ${t.brand}; }
|
|
773
825
|
:host([tone='brand']) a.tile:hover { background: ${t.brandHover}; }
|
|
774
826
|
:host([tone='brand']) .label, :host([tone='brand']) .caption { color: ${t.onBrand}; }
|
|
775
|
-
@media (max-width: 40rem) { .value { font-size:
|
|
827
|
+
@media (max-width: 40rem) { .value { font-size: ${vr}; } }
|
|
776
828
|
@media (forced-colors: active) { .tile { border: 1px solid CanvasText; } }
|
|
777
|
-
`]}render(){let e=
|
|
829
|
+
`]}render(){let e=o`
|
|
778
830
|
<span class="label" part="label">${this.label}</span>
|
|
779
831
|
<span class="value" part="value">${this.value}</span>
|
|
780
|
-
${this.caption?
|
|
781
|
-
${
|
|
782
|
-
`;return this.href?
|
|
832
|
+
${this.caption?o`<span class="caption" part="caption">${this.caption}</span>`:l}
|
|
833
|
+
${oe(this.status,this.statusTone)}
|
|
834
|
+
`;return this.href?o`<a class="tile" href=${this.href} part="tile">${e}</a>`:o`<div class="tile" part="tile">${e}</div>`}},je=class extends h{static{this.properties={date:{type:String},tone:{type:String,reflect:!0}}}constructor(){super(),this.date="",this.tone="brand"}static{this.styles=[...h.styles,u`
|
|
783
835
|
:host { display: inline-block; flex: none; }
|
|
784
836
|
time {
|
|
785
837
|
position: relative;
|
|
@@ -797,18 +849,18 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
797
849
|
}
|
|
798
850
|
:host([tone='plain']) time { background: ${t.surfaceInset}; color: ${t.text}; }
|
|
799
851
|
.month { font-size: 10px; font-weight: ${m("medium")}; letter-spacing: ${t.trackingWide}; text-transform: uppercase; }
|
|
800
|
-
.day { margin-block-start: ${
|
|
801
|
-
.sr-only { ${
|
|
852
|
+
.day { margin-block-start: ${a(1)}; font-size: 20px; font-weight: ${m("medium")}; font-variant-numeric: tabular-nums; }
|
|
853
|
+
.sr-only { ${T} }
|
|
802
854
|
@media (forced-colors: active) { time { border: 1px solid CanvasText; } }
|
|
803
|
-
`]}parts(){let e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(this.date??"");if(!e)return null;let i=new Date(Date.UTC(Number(e[1]),Number(e[2])-1,Number(e[3]),12));if(Number.isNaN(i.getTime()))return null;let
|
|
855
|
+
`]}parts(){let e=/^(\d{4})-(\d{2})-(\d{2})$/.exec(this.date??"");if(!e)return null;let i=new Date(Date.UTC(Number(e[1]),Number(e[2])-1,Number(e[3]),12));if(Number.isNaN(i.getTime()))return null;let r=q(this),s=c=>new Intl.DateTimeFormat(r,{...c,timeZone:"UTC"}).format(i);return{month:s({month:"short"}).replace(".",""),day:s({day:"numeric"}),full:s({day:"numeric",month:"long",year:"numeric"})}}render(){let e=this.parts();return e?o`<time datetime=${this.date} part="tile">
|
|
804
856
|
<span class="month" aria-hidden="true">${e.month}</span>
|
|
805
857
|
<span class="day" aria-hidden="true">${e.day}</span>
|
|
806
858
|
<span class="sr-only">${e.full}</span>
|
|
807
|
-
</time>`:
|
|
859
|
+
</time>`:o`${l}`}},Ue=class extends h{constructor(){super();this.filled={start:!1,end:!1};this.selected=!1,this.heading="",this.meta="",this.href="",this.divided=!1,this.muted=!1}static{this.properties={heading:{type:String},meta:{type:String},href:{type:String},divided:{type:Boolean,reflect:!0},muted:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0}}}static{this.styles=[...h.styles,k,u`
|
|
808
860
|
:host { display: block; }
|
|
809
861
|
:host([divided]) .row { border-block-start: ${t.borderThin} solid ${t.hairline}; }
|
|
810
|
-
.row { position: relative; display: flex; align-items: center; gap: ${
|
|
811
|
-
.text { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: ${
|
|
862
|
+
.row { position: relative; display: flex; align-items: center; gap: ${a(3)}; padding-block: ${a(3)}; }
|
|
863
|
+
.text { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: ${a(.5)}; }
|
|
812
864
|
.title { font-size: ${b("md")}; font-weight: ${m("medium")}; color: ${t.text}; }
|
|
813
865
|
:host([muted]) .title { color: ${t.textMuted}; font-weight: ${m("regular")}; }
|
|
814
866
|
/* The meta is a label: the code face where the brand sets its labels in one, as G2 does (36:452, 37:646). */
|
|
@@ -819,21 +871,21 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
819
871
|
a:focus-visible { outline: none; }
|
|
820
872
|
a:focus-visible::after { box-shadow: ${t.focusShadow}; }
|
|
821
873
|
.row:has(a):hover .title { text-decoration: underline; text-underline-offset: 0.2em; }
|
|
822
|
-
.start, .end { flex: none; display: flex; align-items: center; gap: ${
|
|
874
|
+
.start, .end { flex: none; display: flex; align-items: center; gap: ${a(2)}; }
|
|
823
875
|
.start.empty, .end.empty { display: none; }
|
|
824
876
|
/* Controls at the end stay pressable above the stretched link. */
|
|
825
877
|
.end { position: relative; z-index: 1; }
|
|
826
878
|
.chevron { flex: none; color: ${t.textMuted}; }
|
|
827
|
-
:host([selected]) .row { padding-inline: ${
|
|
828
|
-
:host([selected]) :is(.title, .meta, .chevron) { color: ${
|
|
829
|
-
:host([selected]) .meta, :host([selected]) .chevron { color: color-mix(in srgb, ${
|
|
879
|
+
:host([selected]) .row { padding-inline: ${a(4)}; background: ${t.text}; --impakt-color-text-default: ${ge}; --impakt-color-text-muted: color-mix(in srgb, ${ge} 72%, ${t.text}); --impakt-color-text-inverse: ${t.text}; }
|
|
880
|
+
:host([selected]) :is(.title, .meta, .chevron) { color: ${ge}; }
|
|
881
|
+
:host([selected]) .meta, :host([selected]) .chevron { color: color-mix(in srgb, ${ge} 72%, ${t.text}); }
|
|
830
882
|
@media (forced-colors: active) { :host([selected]) .row { outline: 2px solid Highlight; } }
|
|
831
|
-
`]}onSlot(i){let
|
|
883
|
+
`]}onSlot(i){let r=i.target,s=r.name;this.filled={...this.filled,[s]:r.assignedNodes({flatten:!0}).some(c=>c.nodeType===Node.ELEMENT_NODE||(c.textContent??"").trim()!=="")},this.requestUpdate()}render(){let i=this.href?o`<a class="title" href=${this.href} part="link">${this.heading}</a>`:o`<span class="title" part="title">${this.heading}</span>`;return o`<div class="row" part="row" aria-current=${this.selected?"true":l}>
|
|
832
884
|
<div class="start ${this.filled.start?"":"empty"}"><slot name="start" @slotchange=${this.onSlot}></slot></div>
|
|
833
|
-
<div class="text">${i}${this.meta?
|
|
885
|
+
<div class="text">${i}${this.meta?o`<span class="meta" part="meta">${this.meta}</span>`:l}</div>
|
|
834
886
|
<div class="end ${this.filled.end?"":"empty"}"><slot name="end" @slotchange=${this.onSlot}></slot></div>
|
|
835
|
-
${this.href?
|
|
836
|
-
</div>`}},
|
|
887
|
+
${this.href&&!this.selected?o`<span class="chevron" aria-hidden="true">${M("chevron-right","20px")}</span>`:l}
|
|
888
|
+
</div>`}},We=class extends h{static{this.properties={label:{type:String},count:{type:Number},countLabel:{type:String,attribute:"count-label"},pressed:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0}}}constructor(){super(),this.label="",this.count=void 0,this.countLabel="",this.pressed=!1,this.disabled=!1}static{this.styles=[...h.styles,k,C("button"),u`
|
|
837
889
|
:host { display: inline-block; }
|
|
838
890
|
/* The containing block for the words kept for screen readers, so a control scrolled out of a row cannot widen the page. */
|
|
839
891
|
button {
|
|
@@ -841,35 +893,36 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
841
893
|
position: relative;
|
|
842
894
|
display: inline-flex;
|
|
843
895
|
align-items: center;
|
|
844
|
-
gap: ${
|
|
845
|
-
|
|
846
|
-
|
|
896
|
+
gap: ${a(2)};
|
|
897
|
+
/* 36px with a hairline edge and medium words, or under Noire 35px with an ink edge (filter-chip.* tokens). */
|
|
898
|
+
min-block-size: ${d("filter-chip.height","36px")};
|
|
899
|
+
padding: 0 ${a(3.5)};
|
|
847
900
|
font: inherit;
|
|
848
901
|
font-size: ${b("sm")};
|
|
849
|
-
font-weight: ${
|
|
902
|
+
font-weight: ${d("filter-chip.weight","500")};
|
|
850
903
|
color: ${t.text};
|
|
851
904
|
background: ${t.surfaceCard};
|
|
852
|
-
border: ${t.borderThin} solid ${t.text};
|
|
905
|
+
border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${d("filter-chip.edge","10%")}, transparent);
|
|
853
906
|
border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
|
|
854
907
|
cursor: pointer;
|
|
855
908
|
white-space: nowrap;
|
|
856
909
|
}
|
|
857
910
|
button:hover:not(:disabled) { background: ${t.surfaceInset}; }
|
|
858
|
-
button[aria-pressed='true'] { background: ${t.text}; color: ${
|
|
911
|
+
button[aria-pressed='true'] { background: ${t.text}; color: ${ge}; border-color: ${t.text}; }
|
|
859
912
|
button:disabled { cursor: not-allowed; opacity: 0.5; }
|
|
860
913
|
.count { font-variant-numeric: tabular-nums; color: ${t.textMuted}; }
|
|
861
914
|
button[aria-pressed='true'] .count { color: inherit; opacity: 0.8; }
|
|
862
|
-
.sr-only { ${
|
|
915
|
+
.sr-only { ${T} }
|
|
863
916
|
@media (forced-colors: active) { button[aria-pressed='true'] { border: 2px solid Highlight; } }
|
|
864
|
-
`]}toggle(){this.disabled||(this.pressed=!this.pressed,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{pressed:this.pressed},bubbles:!0,composed:!0})))}render(){let e=typeof this.count=="number"&&!Number.isNaN(this.count);return
|
|
917
|
+
`]}toggle(){this.disabled||(this.pressed=!this.pressed,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{pressed:this.pressed},bubbles:!0,composed:!0})))}render(){let e=typeof this.count=="number"&&!Number.isNaN(this.count);return o`<button type="button" part="button" aria-pressed=${this.pressed?"true":"false"} ?disabled=${this.disabled} @click=${this.toggle}>
|
|
865
918
|
<span>${this.label}</span>
|
|
866
|
-
${e?this.countLabel?
|
|
867
|
-
</button>`}};customElements.define("impakt-stat-tile",
|
|
919
|
+
${e?this.countLabel?o`<span class="count" aria-hidden="true">${this.count}</span><span class="sr-only">${this.countLabel}</span>`:o`<span class="count">${this.count}</span>`:l}
|
|
920
|
+
</button>`}};customElements.define("impakt-stat-tile",Fe);customElements.define("impakt-date-tile",je);customElements.define("impakt-row",Ue);customElements.define("impakt-filter-chip",We);var Ve=class extends x{static{this.properties={...x.properties,checked:{type:Boolean,reflect:!0},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0}}}constructor(){super(),this.checked=!1,this.hideLabel=!1}static{this.styles=[...x.styles,C(".row"),u`
|
|
868
921
|
.row {
|
|
869
922
|
display: flex;
|
|
870
923
|
align-items: center;
|
|
871
924
|
justify-content: space-between;
|
|
872
|
-
gap: ${
|
|
925
|
+
gap: ${a(3)};
|
|
873
926
|
cursor: pointer;
|
|
874
927
|
}
|
|
875
928
|
.text {
|
|
@@ -879,7 +932,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
879
932
|
justify-content: flex-start;
|
|
880
933
|
}
|
|
881
934
|
:host([hide-label]) .text {
|
|
882
|
-
${
|
|
935
|
+
${T}
|
|
883
936
|
}
|
|
884
937
|
.control {
|
|
885
938
|
position: relative;
|
|
@@ -942,10 +995,10 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
942
995
|
.knob { background: CanvasText; }
|
|
943
996
|
:host([checked]) .track { background: Highlight; }
|
|
944
997
|
}
|
|
945
|
-
`]}renderControl(){return
|
|
998
|
+
`]}renderControl(){return o`
|
|
946
999
|
<label class="row" part="row" for=${this.controlId}>
|
|
947
1000
|
<span class="text">
|
|
948
|
-
${this.label}${this.required?
|
|
1001
|
+
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
949
1002
|
</span>
|
|
950
1003
|
<span class="control">
|
|
951
1004
|
<input
|
|
@@ -965,7 +1018,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
965
1018
|
<span class="track" part="track"><span class="knob" part="knob"></span></span>
|
|
966
1019
|
</span>
|
|
967
1020
|
</label>
|
|
968
|
-
`}changeDetail(e){return{value:e,checked:this.checked}}renderLabel(){return
|
|
1021
|
+
`}changeDetail(e){return{value:e,checked:this.checked}}renderLabel(){return o`${l}`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Ke=class extends x{static{this.properties={...x.properties,options:{type:Array},hideLabel:{type:Boolean,attribute:"hide-label",reflect:!0},full:{type:Boolean,reflect:!0}}}constructor(){super(),this.options=[],this.hideLabel=!1,this.full=!1}static{this.styles=[...x.styles,u`
|
|
969
1022
|
fieldset {
|
|
970
1023
|
border: 0;
|
|
971
1024
|
margin: 0;
|
|
@@ -976,12 +1029,12 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
976
1029
|
padding: 0;
|
|
977
1030
|
}
|
|
978
1031
|
:host([hide-label]) legend {
|
|
979
|
-
${
|
|
1032
|
+
${T}
|
|
980
1033
|
}
|
|
981
1034
|
.segments {
|
|
982
1035
|
display: inline-flex;
|
|
983
|
-
gap: ${
|
|
984
|
-
padding: ${
|
|
1036
|
+
gap: ${a(1)};
|
|
1037
|
+
padding: ${a(1)};
|
|
985
1038
|
border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
|
|
986
1039
|
background: ${t.surfaceInset};
|
|
987
1040
|
}
|
|
@@ -1011,7 +1064,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1011
1064
|
justify-content: center;
|
|
1012
1065
|
inline-size: 100%;
|
|
1013
1066
|
min-block-size: 32px;
|
|
1014
|
-
padding: ${
|
|
1067
|
+
padding: ${a(1.5)} ${a(4)};
|
|
1015
1068
|
border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
|
|
1016
1069
|
font-size: ${b("sm")};
|
|
1017
1070
|
font-weight: ${m("medium")};
|
|
@@ -1043,15 +1096,15 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1043
1096
|
.segments { border: 1px solid CanvasText; }
|
|
1044
1097
|
input:checked + .face { border: 2px solid Highlight; }
|
|
1045
1098
|
}
|
|
1046
|
-
`]}renderLabel(){return
|
|
1047
|
-
${this.label}${this.required?
|
|
1048
|
-
</legend>`}renderControl(){return
|
|
1099
|
+
`]}renderLabel(){return o`<legend class="label" part="label">
|
|
1100
|
+
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
1101
|
+
</legend>`}renderControl(){return o`
|
|
1049
1102
|
<div class="segments" part="segments">
|
|
1050
|
-
${this.options.map((e,i)=>{let
|
|
1051
|
-
<label class="segment" part="segment" for=${
|
|
1103
|
+
${this.options.map((e,i)=>{let r=this.id_(`seg-${i}`);return o`
|
|
1104
|
+
<label class="segment" part="segment" for=${r}>
|
|
1052
1105
|
<input
|
|
1053
1106
|
type="radio"
|
|
1054
|
-
id=${
|
|
1107
|
+
id=${r}
|
|
1055
1108
|
name=${this.uid}
|
|
1056
1109
|
value=${e.value}
|
|
1057
1110
|
.checked=${this.value===e.value}
|
|
@@ -1063,18 +1116,18 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1063
1116
|
</label>
|
|
1064
1117
|
`})}
|
|
1065
1118
|
</div>
|
|
1066
|
-
`}render(){return
|
|
1119
|
+
`}render(){return o`
|
|
1067
1120
|
<fieldset
|
|
1068
1121
|
part="fieldset"
|
|
1069
1122
|
aria-describedby=${this.describedBy}
|
|
1070
1123
|
aria-invalid=${this.error?"true":l}
|
|
1071
1124
|
>
|
|
1072
1125
|
${this.renderLabel()}
|
|
1073
|
-
${this.description?
|
|
1126
|
+
${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
|
|
1074
1127
|
${this.renderControl()}
|
|
1075
1128
|
<div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
|
|
1076
1129
|
</fieldset>
|
|
1077
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-switch",
|
|
1130
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-switch",Ve);customElements.define("impakt-segmented-control",Ke);var Ge=class extends x{static{this.properties={...x.properties,options:{type:Array}}}constructor(){super(),this.options=[]}static{this.styles=[...x.styles,u`
|
|
1078
1131
|
fieldset {
|
|
1079
1132
|
border: 0;
|
|
1080
1133
|
margin: 0;
|
|
@@ -1087,11 +1140,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1087
1140
|
.option {
|
|
1088
1141
|
display: flex;
|
|
1089
1142
|
align-items: flex-start;
|
|
1090
|
-
gap: ${
|
|
1091
|
-
padding: ${
|
|
1143
|
+
gap: ${a(3)};
|
|
1144
|
+
padding: ${a(3)};
|
|
1092
1145
|
border: ${t.borderThin} solid ${t.border};
|
|
1093
1146
|
border-radius: ${t.radius};
|
|
1094
|
-
margin-block-end: ${
|
|
1147
|
+
margin-block-end: ${a(2)};
|
|
1095
1148
|
cursor: pointer;
|
|
1096
1149
|
}
|
|
1097
1150
|
.option:hover {
|
|
@@ -1115,41 +1168,41 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1115
1168
|
display: block;
|
|
1116
1169
|
font-size: ${b("sm")};
|
|
1117
1170
|
color: ${t.textMuted};
|
|
1118
|
-
margin-block-start: ${
|
|
1171
|
+
margin-block-start: ${a(1)};
|
|
1119
1172
|
}
|
|
1120
1173
|
:host([invalid]) .option {
|
|
1121
1174
|
border-color: ${t.danger};
|
|
1122
1175
|
}
|
|
1123
|
-
`]}renderLabel(){return
|
|
1124
|
-
${this.label}${this.required?
|
|
1125
|
-
</legend>`}renderControl(){return
|
|
1126
|
-
${this.options.map((e,i)=>{let
|
|
1127
|
-
<label class="option" part="option" for=${
|
|
1176
|
+
`]}renderLabel(){return o`<legend class="label" part="label">
|
|
1177
|
+
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
1178
|
+
</legend>`}renderControl(){return o`
|
|
1179
|
+
${this.options.map((e,i)=>{let r=this.id_(`opt-${i}`),s=e.description?this.id_(`opt-${i}-desc`):void 0;return o`
|
|
1180
|
+
<label class="option" part="option" for=${r}>
|
|
1128
1181
|
<input
|
|
1129
1182
|
type="radio"
|
|
1130
|
-
id=${
|
|
1183
|
+
id=${r}
|
|
1131
1184
|
name=${this.uid}
|
|
1132
1185
|
value=${e.value}
|
|
1133
1186
|
.checked=${this.value===e.value}
|
|
1134
1187
|
?disabled=${this.disabled}
|
|
1135
1188
|
?required=${this.required&&i===0}
|
|
1136
|
-
aria-describedby=${
|
|
1189
|
+
aria-describedby=${s??l}
|
|
1137
1190
|
@change=${()=>this.setFormValue(e.value)}
|
|
1138
1191
|
/>
|
|
1139
1192
|
<span>
|
|
1140
1193
|
<span class="option-text">${e.label}</span>
|
|
1141
|
-
${e.description?
|
|
1194
|
+
${e.description?o`<span class="option-description" id=${s}>${e.description}</span>`:l}
|
|
1142
1195
|
</span>
|
|
1143
1196
|
</label>
|
|
1144
1197
|
`})}
|
|
1145
|
-
`}render(){return
|
|
1198
|
+
`}render(){return o`
|
|
1146
1199
|
<fieldset
|
|
1147
1200
|
part="fieldset"
|
|
1148
1201
|
aria-describedby=${this.describedBy}
|
|
1149
1202
|
aria-invalid=${this.error?"true":l}
|
|
1150
1203
|
>
|
|
1151
1204
|
${this.renderLabel()}
|
|
1152
|
-
${this.description?
|
|
1205
|
+
${this.description?o`<div class="description" id=${this.id_("description")} part="description">
|
|
1153
1206
|
${this.description}
|
|
1154
1207
|
</div>`:l}
|
|
1155
1208
|
${this.renderControl()}
|
|
@@ -1157,13 +1210,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1157
1210
|
${this.error||l}
|
|
1158
1211
|
</div>
|
|
1159
1212
|
</fieldset>
|
|
1160
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-radio-group",
|
|
1213
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-radio-group",Ge);var Xe=class n extends h{constructor(){super();this.hasActions=!1;this.tone="info",this.heading="",this.toneLabel="",this.label="",this.noLabel=!1}static{this.properties={tone:{type:String,reflect:!0},heading:{type:String},toneLabel:{type:String,attribute:"tone-label"},label:{type:String},noLabel:{type:Boolean,attribute:"no-label"}}}static{this.TONE_WORDS={info:"Information",success:"Success",warning:"Warning",danger:"Error",attention:"Warning"}}static{this.styles=[...h.styles,u`
|
|
1161
1214
|
:host {
|
|
1162
1215
|
display: block;
|
|
1163
|
-
margin-block-end: ${
|
|
1216
|
+
margin-block-end: ${a(4)};
|
|
1164
1217
|
}
|
|
1165
1218
|
.alert {
|
|
1166
|
-
padding: ${
|
|
1219
|
+
padding: ${a(4)} ${a(5)};
|
|
1167
1220
|
border-radius: ${t.radiusLg};
|
|
1168
1221
|
border-inline-start: 4px solid;
|
|
1169
1222
|
box-shadow: inset 0 0 0 1px ${t.hairline};
|
|
@@ -1172,7 +1225,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1172
1225
|
}
|
|
1173
1226
|
.heading {
|
|
1174
1227
|
font-weight: ${m("semibold")};
|
|
1175
|
-
margin-block-end: ${
|
|
1228
|
+
margin-block-end: ${a(1)};
|
|
1176
1229
|
}
|
|
1177
1230
|
:host([tone='info']) .alert {
|
|
1178
1231
|
background: ${t.infoSubtle};
|
|
@@ -1199,27 +1252,27 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1199
1252
|
display: flex;
|
|
1200
1253
|
flex-wrap: wrap;
|
|
1201
1254
|
align-items: center;
|
|
1202
|
-
gap: ${
|
|
1203
|
-
padding: ${
|
|
1204
|
-
border: ${t.borderThin} solid ${
|
|
1255
|
+
gap: ${a(3)};
|
|
1256
|
+
padding: ${a(3.5)} ${a(4)};
|
|
1257
|
+
border: ${t.borderThin} solid ${d("color.accent.on","#111111")};
|
|
1205
1258
|
border-radius: ${t.radius};
|
|
1206
1259
|
box-shadow: none;
|
|
1207
|
-
background: ${
|
|
1208
|
-
color: ${
|
|
1260
|
+
background: ${d("color.accent.default","#ffd43b")};
|
|
1261
|
+
color: ${d("color.accent.on","#111111")};
|
|
1209
1262
|
font-size: ${b("md")};
|
|
1210
1263
|
line-height: 1.4;
|
|
1211
1264
|
/* What sits on the yellow is drawn in the ink, whatever the band round it says. */
|
|
1212
|
-
--impakt-color-text-default: ${
|
|
1213
|
-
--impakt-color-text-inverse: ${
|
|
1265
|
+
--impakt-color-text-default: ${d("color.accent.on","#111111")};
|
|
1266
|
+
--impakt-color-text-inverse: ${d("color.accent.default","#ffd43b")};
|
|
1214
1267
|
}
|
|
1215
1268
|
.tag {
|
|
1216
1269
|
flex: none;
|
|
1217
|
-
padding: 3px ${
|
|
1270
|
+
padding: 3px ${a(2)};
|
|
1218
1271
|
font-family: ${t.fontMono};
|
|
1219
1272
|
font-size: ${b("sm")};
|
|
1220
1273
|
line-height: 1.3;
|
|
1221
|
-
background: ${
|
|
1222
|
-
color: ${
|
|
1274
|
+
background: ${d("color.accent.on","#111111")};
|
|
1275
|
+
color: ${d("color.accent.default","#ffd43b")};
|
|
1223
1276
|
}
|
|
1224
1277
|
.words {
|
|
1225
1278
|
flex: 1 1 16rem;
|
|
@@ -1229,7 +1282,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1229
1282
|
flex: none;
|
|
1230
1283
|
display: flex;
|
|
1231
1284
|
flex-wrap: wrap;
|
|
1232
|
-
gap: ${
|
|
1285
|
+
gap: ${a(2)};
|
|
1233
1286
|
margin-inline-start: auto;
|
|
1234
1287
|
}
|
|
1235
1288
|
.actions.empty {
|
|
@@ -1244,34 +1297,34 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1244
1297
|
border-inline-start-width: 4px;
|
|
1245
1298
|
}
|
|
1246
1299
|
}
|
|
1247
|
-
`]}onActions(i){let
|
|
1300
|
+
`]}onActions(i){let r=i.target;this.hasActions=r.assignedElements({flatten:!0}).length>0,this.requestUpdate()}render(){if(this.tone==="attention"){let r=this.label||S("Check");return o`
|
|
1248
1301
|
<div class="alert" part="alert" role="status">
|
|
1249
|
-
${this.noLabel?l:
|
|
1302
|
+
${this.noLabel?l:o`<span class="tag" part="label">${r}</span>`}
|
|
1250
1303
|
<div class="words" part="body">
|
|
1251
|
-
${this.heading?
|
|
1304
|
+
${this.heading?o`<div class="heading" part="heading">${this.heading}</div>`:l}
|
|
1252
1305
|
<slot></slot>
|
|
1253
1306
|
</div>
|
|
1254
1307
|
<div class="actions ${this.hasActions?"":"empty"}" part="actions"><slot name="actions" @slotchange=${this.onActions}></slot></div>
|
|
1255
1308
|
</div>
|
|
1256
|
-
`}let i=this.toneLabel||
|
|
1309
|
+
`}let i=this.toneLabel||S(n.TONE_WORDS[this.tone]);return o`
|
|
1257
1310
|
<div
|
|
1258
1311
|
class="alert"
|
|
1259
1312
|
part="alert"
|
|
1260
1313
|
role=${this.tone==="danger"?"alert":"status"}
|
|
1261
1314
|
aria-label=${this.heading?l:i}
|
|
1262
1315
|
>
|
|
1263
|
-
${this.heading?
|
|
1316
|
+
${this.heading?o`<div class="heading" part="heading">
|
|
1264
1317
|
<span class="tone-word">${i}:</span> ${this.heading}
|
|
1265
1318
|
</div>`:l}
|
|
1266
1319
|
<slot></slot>
|
|
1267
1320
|
</div>
|
|
1268
|
-
`}};customElements.define("impakt-alert",
|
|
1321
|
+
`}};customElements.define("impakt-alert",Xe);var Ye=class extends h{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=[...h.styles,N,u`
|
|
1269
1322
|
:host {
|
|
1270
1323
|
display: flex;
|
|
1271
1324
|
flex-direction: column;
|
|
1272
1325
|
}
|
|
1273
1326
|
:host([gap='none']) { gap: 0; }
|
|
1274
|
-
:host([gap='xs']) { gap: ${
|
|
1327
|
+
:host([gap='xs']) { gap: ${a(1)}; }
|
|
1275
1328
|
:host([align='start']) { align-items: flex-start; }
|
|
1276
1329
|
:host([align='center']) { align-items: center; text-align: center; }
|
|
1277
1330
|
:host([align='end']) { align-items: flex-end; }
|
|
@@ -1282,18 +1335,19 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1282
1335
|
:host([justify='center']) { justify-content: center; }
|
|
1283
1336
|
:host([justify='end']) { justify-content: flex-end; }
|
|
1284
1337
|
:host([justify='between']) { justify-content: space-between; }
|
|
1285
|
-
:host([gap='sm']) { gap: ${
|
|
1286
|
-
:host([gap='md']) { gap: ${
|
|
1287
|
-
:host([gap='lg']) { gap: ${
|
|
1288
|
-
:host([gap='xl']) { gap: ${
|
|
1289
|
-
`]}render(){return
|
|
1338
|
+
:host([gap='sm']) { gap: ${a(2)}; }
|
|
1339
|
+
:host([gap='md']) { gap: ${a(4)}; }
|
|
1340
|
+
:host([gap='lg']) { gap: ${a(6)}; }
|
|
1341
|
+
:host([gap='xl']) { gap: ${a(8)}; }
|
|
1342
|
+
`]}render(){return o`<slot></slot>`}},Je=class extends h{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=[...h.styles,N,u`
|
|
1290
1343
|
:host {
|
|
1291
1344
|
display: flex;
|
|
1292
1345
|
flex-direction: column;
|
|
1293
1346
|
background: ${t.surfaceCard};
|
|
1294
|
-
|
|
1347
|
+
/* A hairline edge and a soft shadow, or under Noire an ink edge and none (card.edge, shadow.sm). The edge is mixed here, so a band that repaints the text repaints it. */
|
|
1348
|
+
border: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${d("card.edge","10%")}, transparent);
|
|
1295
1349
|
border-radius: ${t.radiusXl};
|
|
1296
|
-
box-shadow:
|
|
1350
|
+
box-shadow: ${t.shadowSm};
|
|
1297
1351
|
overflow: hidden;
|
|
1298
1352
|
--ratio: 16 / 9;
|
|
1299
1353
|
}
|
|
@@ -1309,22 +1363,22 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1309
1363
|
:host([ratio='4:3']) { --ratio: 4 / 3; }
|
|
1310
1364
|
:host([ratio='3:2']) { --ratio: 3 / 2; }
|
|
1311
1365
|
:host([ratio='1:1']) { --ratio: 1 / 1; }
|
|
1312
|
-
.body { padding: ${
|
|
1366
|
+
.body { padding: ${a(6)}; flex: 1; display: flex; flex-direction: column; }
|
|
1313
1367
|
:host([padding='none']) .body { padding: 0; }
|
|
1314
|
-
:host([padding='sm']) .body { padding: ${
|
|
1315
|
-
:host([padding='md']) .body { padding: ${
|
|
1368
|
+
:host([padding='sm']) .body { padding: ${a(3)}; }
|
|
1369
|
+
:host([padding='md']) .body { padding: ${a(4)}; }
|
|
1316
1370
|
:host([tone='plain']) .body { padding-inline: 0; }
|
|
1317
1371
|
img { display: block; inline-size: 100%; aspect-ratio: var(--ratio); object-fit: cover; }
|
|
1318
1372
|
.picture { position: relative; }
|
|
1319
|
-
.tag { position: absolute; inset-block-start: ${
|
|
1373
|
+
.tag { position: absolute; inset-block-start: ${a(4)}; inset-inline-start: ${a(4)}; padding: ${a(1.5)} ${a(3)}; font-size: ${b("sm")}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); }
|
|
1320
1374
|
@media (forced-colors: active) { :host { border-color: CanvasText; } }
|
|
1321
|
-
`]}render(){return
|
|
1375
|
+
`]}render(){return o`${this.imageSrc?o`<div class="picture"><img src=${this.imageSrc} alt=${this.imageAlt} part="image" />${this.badge?o`<span class="tag">${this.badge}</span>`:l}</div>`:l}<div class="body" part="body"><slot></slot></div>`}},Ze=class extends h{static{this.properties={level:{type:Number,reflect:!0},size:{type:String,reflect:!0},eyebrow:{type:String,reflect:!0},align:{type:String,reflect:!0},screenReaderOnly:{type:Boolean,reflect:!0,attribute:"screen-reader-only"}}}constructor(){super(),this.level=2,this.size="xl",this.eyebrow="",this.align="start",this.screenReaderOnly=!1}static{this.styles=[...h.styles,u`
|
|
1322
1376
|
:host {
|
|
1323
1377
|
display: block;
|
|
1324
1378
|
color: ${t.textHeading};
|
|
1325
1379
|
font-family: ${t.fontHeading};
|
|
1326
1380
|
font-weight: ${m("bold")};
|
|
1327
|
-
line-height: ${
|
|
1381
|
+
line-height: ${P("tight")};
|
|
1328
1382
|
}
|
|
1329
1383
|
:host([size='5xl']) { ${w("5xl")} letter-spacing: ${t.trackingTight}; }
|
|
1330
1384
|
:host([size='4xl']) { ${w("4xl")} letter-spacing: ${t.trackingTight}; }
|
|
@@ -1342,11 +1396,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1342
1396
|
}
|
|
1343
1397
|
:host([align='center']) { text-align: center; }
|
|
1344
1398
|
/* Only the words go: an eyebrow over a heading drawn as a picture still shows. */
|
|
1345
|
-
:host([screen-reader-only]) .words { ${
|
|
1346
|
-
:host([screen-reader-only]:not([eyebrow])) { ${
|
|
1399
|
+
:host([screen-reader-only]) .words { ${T} }
|
|
1400
|
+
:host([screen-reader-only]:not([eyebrow])) { ${T} }
|
|
1347
1401
|
.eyebrow {
|
|
1348
1402
|
display: block;
|
|
1349
|
-
margin-block-end: ${
|
|
1403
|
+
margin-block-end: ${a(2)};
|
|
1350
1404
|
color: var(--impakt-eyebrow, var(--impakt-color-text-eyebrow, ${t.brand}));
|
|
1351
1405
|
font-family: var(--impakt-font-family-eyebrow, ${t.fontBody});
|
|
1352
1406
|
font-size: var(--impakt-font-size-eyebrow, ${b("sm")});
|
|
@@ -1354,14 +1408,14 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1354
1408
|
letter-spacing: 0.06em;
|
|
1355
1409
|
text-transform: uppercase;
|
|
1356
1410
|
}
|
|
1357
|
-
`]}render(){return
|
|
1358
|
-
${this.eyebrow?
|
|
1359
|
-
</div>`}},
|
|
1411
|
+
`]}render(){return o`<div class="h" role="heading" aria-level=${this.level} part="heading">
|
|
1412
|
+
${this.eyebrow?o`<span class="eyebrow" part="eyebrow">${this.eyebrow}<span style="position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)">: </span></span>`:l}<span class="words"><slot></slot></span>
|
|
1413
|
+
</div>`}},Qe=class extends h{static{this.properties={size:{type:String,reflect:!0},tone:{type:String,reflect:!0},align:{type:String,reflect:!0},look:{type:String,reflect:!0}}}constructor(){super(),this.size="md",this.tone="default",this.align="start",this.look="prose"}static{this.styles=[...h.styles,u`
|
|
1360
1414
|
:host {
|
|
1361
1415
|
display: block;
|
|
1362
1416
|
/* 1.4.8 asks for 1.5 within a paragraph, and it is the default here
|
|
1363
1417
|
rather than an option, because body text is what it is about. */
|
|
1364
|
-
line-height: ${
|
|
1418
|
+
line-height: ${P("normal")};
|
|
1365
1419
|
/* 1.4.12 Text Spacing: a user stylesheet must be able to widen this
|
|
1366
1420
|
without clipping, which a max-width in ch units survives and a
|
|
1367
1421
|
fixed pixel height does not. */
|
|
@@ -1374,11 +1428,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1374
1428
|
p { text-wrap: pretty; }
|
|
1375
1429
|
:host([tone='muted']) { color: ${t.textMuted}; }
|
|
1376
1430
|
:host([align='center']) { text-align: center; margin-inline: auto; }
|
|
1377
|
-
:host([look='code']) { font-family: ${t.fontMono}; ${w("sm")} padding: ${
|
|
1431
|
+
:host([look='code']) { font-family: ${t.fontMono}; ${w("sm")} padding: ${a(2)} ${a(3)}; border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 6%, transparent); max-inline-size: none; }
|
|
1378
1432
|
p {
|
|
1379
1433
|
margin: 0;
|
|
1380
1434
|
}
|
|
1381
|
-
`]}render(){return
|
|
1435
|
+
`]}render(){return o`<p part="text"><slot></slot></p>`}};customElements.define("impakt-stack",Ye);customElements.define("impakt-card",Je);customElements.define("impakt-heading",Ze);customElements.define("impakt-text",Qe);var et=class extends h{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=[...h.styles,k,u`
|
|
1382
1436
|
:host {
|
|
1383
1437
|
display: inline;
|
|
1384
1438
|
}
|
|
@@ -1392,22 +1446,22 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1392
1446
|
color: ${t.linkHover};
|
|
1393
1447
|
}
|
|
1394
1448
|
:host([variant='standalone']) { display: inline-block; }
|
|
1395
|
-
:host([variant='standalone']) a { display: inline-flex; align-items: center; gap: ${
|
|
1449
|
+
:host([variant='standalone']) a { display: inline-flex; align-items: center; gap: ${a(1)}; font-weight: ${m("semibold")}; text-decoration-thickness: 1px; }
|
|
1396
1450
|
:host([variant='standalone']) a:hover .icon { transform: translateX(2px); }
|
|
1397
1451
|
.icon { flex: none; transition: transform 120ms ease-in-out; }
|
|
1398
1452
|
.sr-only {
|
|
1399
|
-
${
|
|
1453
|
+
${T}
|
|
1400
1454
|
}
|
|
1401
|
-
`]}render(){return
|
|
1455
|
+
`]}render(){return o`
|
|
1402
1456
|
<a
|
|
1403
1457
|
part="link"
|
|
1404
1458
|
href=${this.href||l}
|
|
1405
1459
|
target=${this.external?"_blank":l}
|
|
1406
1460
|
rel=${this.external?"noopener noreferrer":l}
|
|
1407
1461
|
>
|
|
1408
|
-
<slot></slot>${M(this.icon!=="none"?this.icon:this.variant==="standalone"?this.external?"external":"arrow-right":void 0,"1em")}${this.external?
|
|
1462
|
+
<slot></slot>${M(this.icon!=="none"?this.icon:this.variant==="standalone"?this.external?"external":"arrow-right":void 0,"1em")}${this.external?o`<span class="sr-only"> (${this.externalText})</span>`:l}
|
|
1409
1463
|
</a>
|
|
1410
|
-
`}};customElements.define("impakt-link",
|
|
1464
|
+
`}};customElements.define("impakt-link",et);var tt=class extends h{static{this.properties={src:{type:String},alt:{type:String},decorative:{type:Boolean,reflect:!0},width:{type:Number},height:{type:Number},focalX:{type:Number,attribute:"focal-x"},focalY:{type:Number,attribute:"focal-y"},loading:{type:String},ratio:{type:String,reflect:!0},rounded:{type:String,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}constructor(){super(),this.hideOn="never",this.ratio="natural",this.rounded="none",this.src="",this.alt="",this.decorative=!1,this.width=void 0,this.height=void 0,this.focalX=.5,this.focalY=.5,this.loading="lazy"}static{this.styles=[...h.styles,u`
|
|
1411
1465
|
@media (max-width: 40rem) { :host([hide-on='phone']) { display: none; } }
|
|
1412
1466
|
@media (min-width: 40.0625rem) { :host([hide-on='wide']) { display: none; } }
|
|
1413
1467
|
:host {
|
|
@@ -1427,7 +1481,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1427
1481
|
:host([rounded='sm']) img { border-radius: ${t.radius}; }
|
|
1428
1482
|
:host([rounded='lg']) img { border-radius: ${t.radiusLg}; }
|
|
1429
1483
|
:host([rounded='full']) img { border-radius: 50%; }
|
|
1430
|
-
`]}render(){return
|
|
1484
|
+
`]}render(){return o`
|
|
1431
1485
|
<img
|
|
1432
1486
|
part="image"
|
|
1433
1487
|
src=${this.src}
|
|
@@ -1438,7 +1492,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1438
1492
|
loading=${this.loading}
|
|
1439
1493
|
style="object-position: ${this.focalX*100}% ${this.focalY*100}%"
|
|
1440
1494
|
/>
|
|
1441
|
-
`}},
|
|
1495
|
+
`}},it=class extends h{static{this.properties={src:{type:String},srcDark:{type:String,attribute:"src-dark"},alt:{type:String},onDark:{type:Boolean,attribute:"on-dark",reflect:!0},height:{type:Number}}}constructor(){super(),this.src="",this.srcDark="",this.alt="",this.onDark=!1,this.height=32}static{this.styles=[...h.styles,u`
|
|
1442
1496
|
:host {
|
|
1443
1497
|
display: inline-block;
|
|
1444
1498
|
}
|
|
@@ -1446,7 +1500,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1446
1500
|
display: block;
|
|
1447
1501
|
inline-size: auto;
|
|
1448
1502
|
}
|
|
1449
|
-
`]}render(){let e=this.onDark&&this.srcDark?this.srcDark:this.src;return
|
|
1503
|
+
`]}render(){let e=this.onDark&&this.srcDark?this.srcDark:this.src;return o`<img part="logo" src=${e} alt=${this.alt} style="height: ${this.height}px" />`}},rt=class extends h{static{this.properties={href:{type:String},label:{type:String},fileType:{type:String,attribute:"file-type"},byteSize:{type:Number,attribute:"byte-size"}}}constructor(){super(),this.href="",this.label="",this.fileType="",this.byteSize=void 0}static{this.styles=[...h.styles,u`
|
|
1450
1504
|
:host {
|
|
1451
1505
|
display: block;
|
|
1452
1506
|
}
|
|
@@ -1462,15 +1516,15 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1462
1516
|
.meta {
|
|
1463
1517
|
color: ${t.textMuted};
|
|
1464
1518
|
}
|
|
1465
|
-
`]}get size(){if(!this.byteSize)return"";let e=this.byteSize/1024;return e>=1024?`${(e/1024).toFixed(1)} MB`:`${Math.round(e)} KB`}render(){let e=[this.fileType,this.size].filter(Boolean).join(", ");return
|
|
1519
|
+
`]}get size(){if(!this.byteSize)return"";let e=this.byteSize/1024;return e>=1024?`${(e/1024).toFixed(1)} MB`:`${Math.round(e)} KB`}render(){let e=[this.fileType,this.size].filter(Boolean).join(", ");return o`
|
|
1466
1520
|
<a part="link" href=${this.href||l} download>
|
|
1467
|
-
<span>${this.label}</span>${e?
|
|
1521
|
+
<span>${this.label}</span>${e?o`<span class="meta">(${e})</span>`:l}
|
|
1468
1522
|
</a>
|
|
1469
|
-
`}};customElements.define("impakt-image",
|
|
1523
|
+
`}};customElements.define("impakt-image",tt);customElements.define("impakt-logo",it);customElements.define("impakt-document-link",rt);var at=class extends h{static{this.properties={amount:{type:Number},currency:{type:String},locale:{type:String},prefix:{type:String},period:{type:String},size:{type:String,reflect:!0},pending:{type:String}}}constructor(){super(),this.amount=void 0,this.currency="GBP",this.locale="",this.prefix="",this.period="",this.size="xl",this.pending="\u2014"}static{this.styles=[...h.styles,u`
|
|
1470
1524
|
:host {
|
|
1471
1525
|
display: inline-flex;
|
|
1472
1526
|
align-items: baseline;
|
|
1473
|
-
gap: ${
|
|
1527
|
+
gap: ${a(1)};
|
|
1474
1528
|
color: ${t.text};
|
|
1475
1529
|
}
|
|
1476
1530
|
.amount {
|
|
@@ -1487,11 +1541,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1487
1541
|
font-size: ${b("sm")};
|
|
1488
1542
|
color: ${t.textMuted};
|
|
1489
1543
|
}
|
|
1490
|
-
`]}get formatted(){if(this.amount===void 0||Number.isNaN(this.amount))return this.pending;try{return new Intl.NumberFormat(this.locale||
|
|
1491
|
-
${this.prefix?
|
|
1544
|
+
`]}get formatted(){if(this.amount===void 0||Number.isNaN(this.amount))return this.pending;try{return new Intl.NumberFormat(this.locale||q(this),{style:"currency",currency:this.currency,...this.amount>=1e5&&this.amount%100===0?{minimumFractionDigits:0,maximumFractionDigits:0}:{}}).format(this.amount/100)}catch{return(this.amount/100).toFixed(2)}}render(){return o`
|
|
1545
|
+
${this.prefix?o`<span class="period" part="prefix">${this.prefix}</span>`:l}
|
|
1492
1546
|
<span class="amount" part="amount">${this.formatted}</span>
|
|
1493
|
-
${this.period?
|
|
1494
|
-
`}};customElements.define("impakt-price",
|
|
1547
|
+
${this.period?o`<span class="period" part="period">${this.period}</span>`:l}
|
|
1548
|
+
`}};customElements.define("impakt-price",at);var ot=class extends h{static{this.properties={rows:{type:Array},changeText:{type:String,attribute:"change-text"}}}constructor(){super(),this.rows=[],this.changeText="Change"}static{this.styles=[...h.styles,k,C("dd a"),u`
|
|
1495
1549
|
:host {
|
|
1496
1550
|
display: block;
|
|
1497
1551
|
}
|
|
@@ -1509,7 +1563,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1509
1563
|
}
|
|
1510
1564
|
dt,
|
|
1511
1565
|
dd {
|
|
1512
|
-
padding: ${
|
|
1566
|
+
padding: ${a(3)} 0;
|
|
1513
1567
|
border-block-end: ${t.borderThin} solid ${t.rule};
|
|
1514
1568
|
}
|
|
1515
1569
|
dt {
|
|
@@ -1521,7 +1575,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1521
1575
|
display: flex;
|
|
1522
1576
|
align-items: baseline;
|
|
1523
1577
|
justify-content: space-between;
|
|
1524
|
-
gap: ${
|
|
1578
|
+
gap: ${a(3)};
|
|
1525
1579
|
}
|
|
1526
1580
|
dd a {
|
|
1527
1581
|
flex: none;
|
|
@@ -1556,21 +1610,21 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1556
1610
|
padding-block-start: 0;
|
|
1557
1611
|
}
|
|
1558
1612
|
}
|
|
1559
|
-
`]}render(){return
|
|
1613
|
+
`]}render(){return o`
|
|
1560
1614
|
<dl part="list">
|
|
1561
|
-
${this.rows.map(e=>
|
|
1615
|
+
${this.rows.map(e=>o`
|
|
1562
1616
|
<div class="row" part="row">
|
|
1563
1617
|
<dt part="key">${e.key}</dt>
|
|
1564
1618
|
<dd part="value">
|
|
1565
1619
|
<span>${e.value}</span>
|
|
1566
|
-
${e.changeHref?
|
|
1620
|
+
${e.changeHref?o`<a href=${e.changeHref} part="action"
|
|
1567
1621
|
>${this.changeText}<span class="sr-only"> ${e.key}</span></a
|
|
1568
1622
|
>`:l}
|
|
1569
1623
|
</dd>
|
|
1570
1624
|
</div>
|
|
1571
1625
|
`)}
|
|
1572
1626
|
</dl>
|
|
1573
|
-
`}};customElements.define("impakt-summary-list",
|
|
1627
|
+
`}};customElements.define("impakt-summary-list",ot);var st=class extends h{static{this.properties={caption:{type:String},captionHidden:{type:Boolean,reflect:!0,attribute:"caption-hidden"},columns:{type:Array},rows:{type:Array},sortKey:{type:String,attribute:"sort-key",reflect:!0},sortDirection:{type:String,attribute:"sort-direction",reflect:!0},manualSort:{type:Boolean,attribute:"manual-sort"},selectable:{type:Boolean,reflect:!0},selected:{type:Array},rowKey:{type:String,attribute:"row-key"},stack:{type:Boolean,reflect:!0},emptyText:{type:String,attribute:"empty-text"},selectAllText:{type:String,attribute:"select-all-text"},selectRowText:{type:String,attribute:"select-row-text"},look:{type:String,reflect:!0}}}constructor(){super(),this.caption="",this.captionHidden=!1,this.columns=[],this.rows=[],this.sortKey="",this.sortDirection="ascending",this.manualSort=!1,this.selectable=!1,this.selected=[],this.rowKey="id",this.stack=!1,this.emptyText="Nothing to show",this.selectAllText="Select all rows",this.selectRowText="Select {row}",this.look="plain"}static{this.styles=[...h.styles,k,C(".sort, .pick label"),u`
|
|
1574
1628
|
:host {
|
|
1575
1629
|
display: block;
|
|
1576
1630
|
}
|
|
@@ -1588,12 +1642,12 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1588
1642
|
caption {
|
|
1589
1643
|
text-align: start;
|
|
1590
1644
|
font-weight: ${m("semibold")};
|
|
1591
|
-
padding-block-end: ${
|
|
1645
|
+
padding-block-end: ${a(2)};
|
|
1592
1646
|
}
|
|
1593
1647
|
th,
|
|
1594
1648
|
td {
|
|
1595
1649
|
text-align: start;
|
|
1596
|
-
padding: ${
|
|
1650
|
+
padding: ${a(3)};
|
|
1597
1651
|
border-block-end: ${t.borderThin} solid ${t.rule};
|
|
1598
1652
|
}
|
|
1599
1653
|
thead th {
|
|
@@ -1609,7 +1663,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1609
1663
|
border: ${t.borderThin} solid ${t.text};
|
|
1610
1664
|
}
|
|
1611
1665
|
:host([look='boxed']) caption {
|
|
1612
|
-
padding: ${
|
|
1666
|
+
padding: ${a(4)} ${a(4)} ${a(2)};
|
|
1613
1667
|
}
|
|
1614
1668
|
/* The caption still names the table for a screen reader when the design shows none. */
|
|
1615
1669
|
:host([caption-hidden]) caption {
|
|
@@ -1637,7 +1691,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1637
1691
|
border-block-end-color: ${t.text};
|
|
1638
1692
|
}
|
|
1639
1693
|
:host([look='boxed']) :is(th, td) {
|
|
1640
|
-
padding-inline: ${
|
|
1694
|
+
padding-inline: ${a(4)};
|
|
1641
1695
|
border-block-end-color: var(--impakt-color-line-soft, #dcdcd8);
|
|
1642
1696
|
}
|
|
1643
1697
|
:host([look='boxed']) tbody tr:last-child > * {
|
|
@@ -1650,14 +1704,14 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1650
1704
|
font-variant-numeric: tabular-nums;
|
|
1651
1705
|
}
|
|
1652
1706
|
th.sortable {
|
|
1653
|
-
padding: ${
|
|
1707
|
+
padding: ${a(1)};
|
|
1654
1708
|
}
|
|
1655
1709
|
.sort {
|
|
1656
1710
|
display: inline-flex;
|
|
1657
1711
|
align-items: center;
|
|
1658
|
-
gap: ${
|
|
1712
|
+
gap: ${a(1)};
|
|
1659
1713
|
min-block-size: ${t.targetMin};
|
|
1660
|
-
padding: ${
|
|
1714
|
+
padding: ${a(2)};
|
|
1661
1715
|
font: inherit;
|
|
1662
1716
|
color: inherit;
|
|
1663
1717
|
background: none;
|
|
@@ -1709,7 +1763,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1709
1763
|
background: ${t.brandSubtle};
|
|
1710
1764
|
}
|
|
1711
1765
|
.empty {
|
|
1712
|
-
padding-block: ${
|
|
1766
|
+
padding-block: ${a(6)};
|
|
1713
1767
|
text-align: center;
|
|
1714
1768
|
color: ${t.textMuted};
|
|
1715
1769
|
}
|
|
@@ -1717,7 +1771,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1717
1771
|
display: none;
|
|
1718
1772
|
}
|
|
1719
1773
|
.visually-hidden {
|
|
1720
|
-
${
|
|
1774
|
+
${T}
|
|
1721
1775
|
}
|
|
1722
1776
|
/* Stacked: each row a card, each value under its column's name. */
|
|
1723
1777
|
@container (max-width: 36rem) {
|
|
@@ -1728,8 +1782,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1728
1782
|
display: flex;
|
|
1729
1783
|
flex-wrap: wrap;
|
|
1730
1784
|
align-items: center;
|
|
1731
|
-
gap: ${
|
|
1732
|
-
margin-block-end: ${
|
|
1785
|
+
gap: ${a(1)};
|
|
1786
|
+
margin-block-end: ${a(3)};
|
|
1733
1787
|
}
|
|
1734
1788
|
thead th {
|
|
1735
1789
|
display: none;
|
|
@@ -1744,13 +1798,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1744
1798
|
thead .sort {
|
|
1745
1799
|
border: ${t.borderThin} solid ${t.rule};
|
|
1746
1800
|
border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999));
|
|
1747
|
-
padding-inline: ${
|
|
1801
|
+
padding-inline: ${a(3)};
|
|
1748
1802
|
background: ${t.surfaceCard};
|
|
1749
1803
|
}
|
|
1750
1804
|
tbody tr {
|
|
1751
1805
|
position: relative;
|
|
1752
|
-
margin-block-end: ${
|
|
1753
|
-
padding: ${
|
|
1806
|
+
margin-block-end: ${a(3)};
|
|
1807
|
+
padding: ${a(3)} ${a(4)};
|
|
1754
1808
|
border: ${t.borderThin} solid ${t.rule};
|
|
1755
1809
|
border-radius: ${t.radiusXl};
|
|
1756
1810
|
background: ${t.surfaceCard};
|
|
@@ -1764,8 +1818,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1764
1818
|
tbody th, tbody td {
|
|
1765
1819
|
display: grid;
|
|
1766
1820
|
grid-template-columns: minmax(6rem, 38%) minmax(0, 1fr);
|
|
1767
|
-
gap: ${
|
|
1768
|
-
padding: ${
|
|
1821
|
+
gap: ${a(3)};
|
|
1822
|
+
padding: ${a(1.5)} 0;
|
|
1769
1823
|
border: 0;
|
|
1770
1824
|
text-align: start;
|
|
1771
1825
|
white-space: normal;
|
|
@@ -1776,13 +1830,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1776
1830
|
tbody .pick {
|
|
1777
1831
|
display: block;
|
|
1778
1832
|
position: absolute;
|
|
1779
|
-
inset-block-start: ${
|
|
1780
|
-
inset-inline-end: ${
|
|
1833
|
+
inset-block-start: ${a(1)};
|
|
1834
|
+
inset-inline-end: ${a(1)};
|
|
1781
1835
|
inline-size: auto;
|
|
1782
1836
|
padding: 0;
|
|
1783
1837
|
}
|
|
1784
1838
|
tbody tr:has(.pick) > th {
|
|
1785
|
-
padding-inline-end: ${
|
|
1839
|
+
padding-inline-end: ${a(10)};
|
|
1786
1840
|
}
|
|
1787
1841
|
.label {
|
|
1788
1842
|
display: block;
|
|
@@ -1795,44 +1849,48 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1795
1849
|
border: 0;
|
|
1796
1850
|
}
|
|
1797
1851
|
}
|
|
1798
|
-
`]}keyOf(e,i){let
|
|
1852
|
+
`]}keyOf(e,i){let r=e?.[this.rowKey];return r==null||r===""?String(i):String(r)}ordered(){let e=(this.rows??[]).map((p,$)=>({row:p,key:this.keyOf(p,$)})),i=(this.columns??[]).find(p=>p.key===this.sortKey&&p.sortable);if(!i||this.manualSort)return e;let r=this.sortDirection==="descending"?-1:1,s=q(this),c=p=>Number(String(p??"").replace(/[^\d.-]/g,""))||0;return e.sort((p,$)=>{let g=p.row[i.key]??"",v=$.row[i.key]??"";return(i.numeric?c(g)-c(v):String(g).localeCompare(String(v),s,{numeric:!0,sensitivity:"base"}))*r})}sortBy(e){let i=this.sortKey===e&&this.sortDirection==="ascending"?"descending":"ascending";this.sortKey=e,this.sortDirection=i,this.dispatchEvent(new CustomEvent("impakt-sort",{detail:{key:e,direction:i},bubbles:!0,composed:!0}))}choose(e,i){let r=new Set(this.selected??[]);for(let s of e)i?r.add(s):r.delete(s);this.selected=[...r],this.dispatchEvent(new CustomEvent("impakt-selection",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}heading(e){let i=e.sortable&&e.key===this.sortKey,r=[e.numeric?"numeric":"",e.sortable?"sortable":""].filter(Boolean).join(" ");return e.sortable?o`<th scope="col" role="columnheader" class=${r} aria-sort=${i?this.sortDirection:l}>
|
|
1799
1853
|
<button class="sort" type="button" part="sort" @click=${()=>this.sortBy(e.key)}>${e.label}<span class="arrow" aria-hidden="true">${M("chevron-down","16px")}</span></button>
|
|
1800
|
-
</th>`:
|
|
1854
|
+
</th>`:o`<th scope="col" role="columnheader" class=${r}>${e.label}</th>`}render(){let e=this.columns??[],i=this.ordered(),r=new Set(this.selected??[]),s=i.length>0&&i.every(p=>r.has(p.key)),c=!s&&i.some(p=>r.has(p.key));return o`
|
|
1801
1855
|
<div class="scroller" part="scroller" tabindex="0" role="region" aria-label=${this.caption||l}>
|
|
1802
1856
|
<table part="table" role="table">
|
|
1803
|
-
${this.caption?
|
|
1857
|
+
${this.caption?o`<caption part="caption">${this.caption}</caption>`:l}
|
|
1804
1858
|
<thead role="rowgroup">
|
|
1805
1859
|
<tr role="row">
|
|
1806
|
-
${this.selectable?
|
|
1807
|
-
@change=${
|
|
1808
|
-
${e.map(
|
|
1860
|
+
${this.selectable?o`<th scope="col" role="columnheader" class="pick"><label><input type="checkbox" aria-label=${this.selectAllText} .checked=${s} .indeterminate=${c} ?disabled=${!i.length}
|
|
1861
|
+
@change=${p=>this.choose(i.map($=>$.key),p.target.checked)} /></label></th>`:l}
|
|
1862
|
+
${e.map(p=>this.heading(p))}
|
|
1809
1863
|
</tr>
|
|
1810
1864
|
</thead>
|
|
1811
1865
|
<tbody role="rowgroup">
|
|
1812
|
-
${i.length?i.map(({row:
|
|
1813
|
-
<tr role="row" class=${
|
|
1814
|
-
${this.selectable?
|
|
1866
|
+
${i.length?i.map(({row:p,key:$},g)=>o`
|
|
1867
|
+
<tr role="row" class=${r.has($)?"chosen":""} part="row">
|
|
1868
|
+
${this.selectable?o`<td role="cell" class="pick"><label><input type="checkbox" aria-label=${this.selectRowText.replace("{row}",String(p[e[0]?.key??""]??$))} .checked=${r.has($)}
|
|
1815
1869
|
@change=${v=>this.choose([$],v.target.checked)} /></label></td>`:l}
|
|
1816
|
-
${e.map((v,
|
|
1870
|
+
${e.map((v,_)=>{let A=o`<span class="label" aria-hidden="true">${v.label}</span><span class="value"><slot name=${`cell:${$}:${v.key}`}>${p[v.key]??""}</slot></span>`;return _===0?o`<th scope="row" role="rowheader" class=${v.mono?"mono":""} id=${`${this.uid}-r${g}`}>${A}</th>`:o`<td role="cell" class=${[v.numeric?"numeric":"",v.mono?"mono":""].join(" ").trim()}>${A}</td>`})}
|
|
1817
1871
|
</tr>
|
|
1818
|
-
`):
|
|
1872
|
+
`):o`<tr role="row"><td role="cell" class="empty" colspan=${e.length+(this.selectable?1:0)||1}><slot name="empty">${this.emptyText}</slot></td></tr>`}
|
|
1819
1873
|
</tbody>
|
|
1820
1874
|
</table>
|
|
1821
1875
|
</div>
|
|
1822
|
-
`}};customElements.define("impakt-table",
|
|
1876
|
+
`}};customElements.define("impakt-table",st);var nt=typeof HTMLElement>"u"||!("children"in HTMLElement.prototype);var R={edge:d("accordion.edge","15%"),topEdgeWidth:d("accordion.top-edge-width","0px"),questionSize:d("accordion.question.size","1rem"),questionLineHeight:d("accordion.question.line-height","1.5"),questionTracking:d("accordion.question.tracking","0em"),questionPadding:d("accordion.question.padding","12px"),hoverInk:d("accordion.hover-ink","0%"),hoverLine:d("accordion.hover-line","none"),plus:d("accordion.plus","none"),chevron:d("accordion.chevron","inline-block"),markerSize:d("accordion.marker.size","18px"),markerStroke:d("accordion.marker.stroke","2px"),answerSpace:d("accordion.answer.space","16px"),answerPull:d("accordion.answer.pull","0px"),answerInk:d("accordion.answer.ink","100%"),answerLineHeight:d("accordion.answer.line-height","1.5"),answerWidth:d("accordion.answer.width","none")},Ui=L("var(--impakt-color-line-soft, #dcdcd8)"),lt=class extends h{static{this.properties={items:{type:Array},headingLevel:{type:Number,attribute:"heading-level"},open:{type:Array},multiple:{type:Boolean},look:{type:String,reflect:!0},enhanced:{state:!0}}}constructor(){super(),this.items=[],this.headingLevel=3,this.open=[],this.multiple=!0,this.look="plain",this.enhanced=!1}connectedCallback(){!nt&&!this.shadowRoot&&(this.enhanced=!0),super.connectedCallback()}firstUpdated(){this.enhanced=!0}static{this.styles=[...h.styles,k,De,u`
|
|
1823
1877
|
:host {
|
|
1824
1878
|
display: block;
|
|
1825
|
-
border-block-start: ${
|
|
1879
|
+
border-block-start: ${R.topEdgeWidth} solid ${t.text};
|
|
1826
1880
|
}
|
|
1881
|
+
/* Rows with a faint rule, or under Noire an ink one (accordion.edge), mixed here so a band that repaints the text repaints it. */
|
|
1827
1882
|
.item {
|
|
1828
|
-
border-block-end: ${t.borderThin} solid ${t.text};
|
|
1883
|
+
border-block-end: ${t.borderThin} solid color-mix(in srgb, ${t.text} ${R.edge}, transparent);
|
|
1829
1884
|
}
|
|
1830
1885
|
/* The heading row. The button is stretched over it, so the whole row opens the panel, the status included. */
|
|
1831
1886
|
.head {
|
|
1887
|
+
/* The question's padding and size, read by the button and by the marker beside it, so the marker sits on the question's first line. */
|
|
1888
|
+
--q-pad: ${R.questionPadding};
|
|
1889
|
+
--q-size: ${R.questionSize};
|
|
1832
1890
|
position: relative;
|
|
1833
1891
|
display: flex;
|
|
1834
1892
|
align-items: center;
|
|
1835
|
-
gap: ${
|
|
1893
|
+
gap: ${a(4)};
|
|
1836
1894
|
}
|
|
1837
1895
|
.h {
|
|
1838
1896
|
flex: 1;
|
|
@@ -1844,17 +1902,17 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1844
1902
|
display: flex;
|
|
1845
1903
|
align-items: baseline;
|
|
1846
1904
|
flex-wrap: wrap;
|
|
1847
|
-
column-gap: ${
|
|
1848
|
-
row-gap: ${
|
|
1905
|
+
column-gap: ${a(4)};
|
|
1906
|
+
row-gap: ${a(1)};
|
|
1849
1907
|
inline-size: 100%;
|
|
1850
|
-
padding:
|
|
1908
|
+
padding: var(--q-pad) 0;
|
|
1851
1909
|
background: none;
|
|
1852
1910
|
border: 0;
|
|
1853
1911
|
font: inherit;
|
|
1854
|
-
/* G2 heading S: 24/1.15, -2.5%, semibold. */
|
|
1855
|
-
font-size: var(--
|
|
1856
|
-
line-height:
|
|
1857
|
-
letter-spacing:
|
|
1912
|
+
/* The question in body type, or under Noire (G2) heading S: 24/1.15, -2.5%, semibold. */
|
|
1913
|
+
font-size: var(--q-size);
|
|
1914
|
+
line-height: ${R.questionLineHeight};
|
|
1915
|
+
letter-spacing: ${R.questionTracking};
|
|
1858
1916
|
font-weight: ${m("semibold")};
|
|
1859
1917
|
color: ${t.text};
|
|
1860
1918
|
text-align: start;
|
|
@@ -1871,8 +1929,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1871
1929
|
button:focus-visible::after {
|
|
1872
1930
|
box-shadow: ${t.focusShadow};
|
|
1873
1931
|
}
|
|
1932
|
+
button:hover {
|
|
1933
|
+
color: color-mix(in srgb, ${t.text} ${R.hoverInk}, ${t.link});
|
|
1934
|
+
}
|
|
1874
1935
|
button:hover .q {
|
|
1875
|
-
text-decoration:
|
|
1936
|
+
text-decoration-line: ${R.hoverLine};
|
|
1876
1937
|
text-decoration-thickness: 1px;
|
|
1877
1938
|
text-underline-offset: 0.15em;
|
|
1878
1939
|
}
|
|
@@ -1890,18 +1951,25 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1890
1951
|
display: flex;
|
|
1891
1952
|
flex-wrap: wrap;
|
|
1892
1953
|
justify-content: flex-end;
|
|
1893
|
-
gap: ${
|
|
1954
|
+
gap: ${a(2)};
|
|
1894
1955
|
max-inline-size: 50%;
|
|
1895
1956
|
}
|
|
1896
1957
|
/* A plus that turns to a minus: two bars, the upright one hidden when open. Drawn, not typed, so it is the same in every face. */
|
|
1897
1958
|
.marker {
|
|
1898
1959
|
position: relative;
|
|
1899
1960
|
flex: none;
|
|
1900
|
-
inline-size:
|
|
1901
|
-
block-size:
|
|
1902
|
-
/* Centred on the question's first line,
|
|
1961
|
+
inline-size: ${R.markerSize};
|
|
1962
|
+
block-size: ${R.markerSize};
|
|
1963
|
+
/* Centred on the question's first line (#51): below the button's padding, in the middle of the question's line box. */
|
|
1964
|
+
font-size: var(--q-size);
|
|
1965
|
+
line-height: ${R.questionLineHeight};
|
|
1903
1966
|
align-self: flex-start;
|
|
1904
|
-
margin-block-start: calc((1lh -
|
|
1967
|
+
margin-block-start: calc(var(--q-pad) + (1lh - ${R.markerSize}) / 2);
|
|
1968
|
+
}
|
|
1969
|
+
/* In the issues look the marker is inside the button, on the button's own line. */
|
|
1970
|
+
:host([look='issues']) .marker {
|
|
1971
|
+
align-self: center;
|
|
1972
|
+
margin-block-start: 0;
|
|
1905
1973
|
}
|
|
1906
1974
|
.marker::before,
|
|
1907
1975
|
.marker::after {
|
|
@@ -1911,18 +1979,41 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1911
1979
|
}
|
|
1912
1980
|
.marker::before {
|
|
1913
1981
|
inset-inline: 0;
|
|
1914
|
-
inset-block-start: calc(50% -
|
|
1915
|
-
block-size:
|
|
1982
|
+
inset-block-start: calc(50% - ${R.markerStroke} / 2);
|
|
1983
|
+
block-size: ${R.markerStroke};
|
|
1916
1984
|
}
|
|
1917
1985
|
.marker::after {
|
|
1918
1986
|
inset-block: 0;
|
|
1919
|
-
inset-inline-start: calc(50% -
|
|
1920
|
-
inline-size:
|
|
1987
|
+
inset-inline-start: calc(50% - ${R.markerStroke} / 2);
|
|
1988
|
+
inline-size: ${R.markerStroke};
|
|
1921
1989
|
transition: transform 120ms ease-in-out;
|
|
1922
1990
|
}
|
|
1923
1991
|
.item.open .marker::after {
|
|
1924
1992
|
transform: scaleY(0);
|
|
1925
1993
|
}
|
|
1994
|
+
/* The brand's marker: a "+" (accordion.plus) or a chevron that turns to point down when open (accordion.chevron). */
|
|
1995
|
+
.marker::before,
|
|
1996
|
+
.marker::after {
|
|
1997
|
+
display: ${R.plus};
|
|
1998
|
+
}
|
|
1999
|
+
.chev {
|
|
2000
|
+
display: ${R.chevron};
|
|
2001
|
+
position: absolute;
|
|
2002
|
+
inset: 0;
|
|
2003
|
+
line-height: 18px;
|
|
2004
|
+
text-align: center;
|
|
2005
|
+
transition: transform 120ms ease-in-out;
|
|
2006
|
+
}
|
|
2007
|
+
.item.open .chev {
|
|
2008
|
+
transform: rotate(90deg);
|
|
2009
|
+
}
|
|
2010
|
+
:host([look='issues']) .marker::before,
|
|
2011
|
+
:host([look='issues']) .marker::after {
|
|
2012
|
+
display: block;
|
|
2013
|
+
}
|
|
2014
|
+
:host([look='issues']) .chev {
|
|
2015
|
+
display: none;
|
|
2016
|
+
}
|
|
1926
2017
|
@media (forced-colors: active) {
|
|
1927
2018
|
.marker::before,
|
|
1928
2019
|
.marker::after {
|
|
@@ -1938,12 +2029,12 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1938
2029
|
display: none;
|
|
1939
2030
|
}
|
|
1940
2031
|
.panel {
|
|
1941
|
-
max-inline-size:
|
|
1942
|
-
margin-block-start:
|
|
1943
|
-
padding-block-end: ${
|
|
2032
|
+
max-inline-size: ${R.answerWidth};
|
|
2033
|
+
margin-block-start: ${R.answerPull};
|
|
2034
|
+
padding-block-end: ${R.answerSpace};
|
|
1944
2035
|
font-size: ${b("md")};
|
|
1945
|
-
line-height:
|
|
1946
|
-
color: ${t.textMuted};
|
|
2036
|
+
line-height: ${R.answerLineHeight};
|
|
2037
|
+
color: color-mix(in srgb, ${t.text} ${R.answerInk}, ${t.textMuted});
|
|
1947
2038
|
}
|
|
1948
2039
|
/*
|
|
1949
2040
|
* Issues (frames 36:716, 36:430): rows divided by soft rules, each a code, a small "+" and the finding in
|
|
@@ -1954,12 +2045,12 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1954
2045
|
border-block-start: 0;
|
|
1955
2046
|
}
|
|
1956
2047
|
:host([look='issues']) .item {
|
|
1957
|
-
border-block-end: ${t.borderThin} solid ${
|
|
2048
|
+
border-block-end: ${t.borderThin} solid ${Ui};
|
|
1958
2049
|
}
|
|
1959
2050
|
/* The finding keeps at least 16rem; on a narrow screen the status wraps under it, at the end, rather than squeezing it. */
|
|
1960
2051
|
:host([look='issues']) .head {
|
|
1961
2052
|
flex-wrap: wrap;
|
|
1962
|
-
gap: ${
|
|
2053
|
+
gap: ${a(2)} ${a(4)};
|
|
1963
2054
|
}
|
|
1964
2055
|
:host([look='issues']) .h {
|
|
1965
2056
|
flex: 1 1 16rem;
|
|
@@ -1969,15 +2060,15 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1969
2060
|
}
|
|
1970
2061
|
:host([look='issues']) button {
|
|
1971
2062
|
align-items: center;
|
|
1972
|
-
column-gap: ${
|
|
1973
|
-
padding-block: ${
|
|
2063
|
+
column-gap: ${a(3)};
|
|
2064
|
+
padding-block: ${a(5)};
|
|
1974
2065
|
font-size: 1.25rem;
|
|
1975
2066
|
line-height: 1.2;
|
|
1976
2067
|
letter-spacing: -0.01em;
|
|
1977
2068
|
font-weight: ${m("regular")};
|
|
1978
2069
|
}
|
|
1979
2070
|
:host([look='issues']) .meta {
|
|
1980
|
-
margin-inline-end: ${
|
|
2071
|
+
margin-inline-end: ${a(1)};
|
|
1981
2072
|
}
|
|
1982
2073
|
:host([look='issues']) .marker {
|
|
1983
2074
|
inline-size: 12px;
|
|
@@ -1992,8 +2083,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
1992
2083
|
inline-size: 1.5px;
|
|
1993
2084
|
}
|
|
1994
2085
|
:host([look='issues']) .item.open {
|
|
1995
|
-
margin-block: ${
|
|
1996
|
-
padding: ${
|
|
2086
|
+
margin-block: ${a(4)};
|
|
2087
|
+
padding: ${a(6)};
|
|
1997
2088
|
background: ${t.surfaceSubtle};
|
|
1998
2089
|
border: ${t.borderThin} solid ${t.text};
|
|
1999
2090
|
}
|
|
@@ -2003,7 +2094,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2003
2094
|
:host([look='issues']) .item.open button {
|
|
2004
2095
|
flex-direction: column;
|
|
2005
2096
|
align-items: flex-start;
|
|
2006
|
-
row-gap: ${
|
|
2097
|
+
row-gap: ${a(2)};
|
|
2007
2098
|
padding-block: 0;
|
|
2008
2099
|
font-size: var(--impakt-type-heading-s-size, 1.5rem);
|
|
2009
2100
|
line-height: 1.15;
|
|
@@ -2019,7 +2110,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2019
2110
|
}
|
|
2020
2111
|
:host([look='issues']) .panel {
|
|
2021
2112
|
max-inline-size: none;
|
|
2022
|
-
margin: ${
|
|
2113
|
+
margin: ${a(4)} 0 0;
|
|
2023
2114
|
padding: 0;
|
|
2024
2115
|
color: ${t.text};
|
|
2025
2116
|
}
|
|
@@ -2029,71 +2120,71 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2029
2120
|
/* Without script every finding is open and has no marker; it reads as a list, not as boxes. */
|
|
2030
2121
|
:host([look='issues']:not(:defined)) .item.open {
|
|
2031
2122
|
margin: 0;
|
|
2032
|
-
padding: ${
|
|
2123
|
+
padding: ${a(5)} 0;
|
|
2033
2124
|
background: none;
|
|
2034
2125
|
border: 0;
|
|
2035
|
-
border-block-end: ${t.borderThin} solid ${
|
|
2126
|
+
border-block-end: ${t.borderThin} solid ${Ui};
|
|
2036
2127
|
}
|
|
2037
2128
|
@media (max-width: 40rem) {
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2129
|
+
.head {
|
|
2130
|
+
--q-pad: min(${R.questionPadding}, ${a(6)});
|
|
2131
|
+
--q-size: min(${R.questionSize}, 1.25rem);
|
|
2041
2132
|
}
|
|
2042
2133
|
:host([look='issues']) button {
|
|
2043
|
-
padding-block: ${
|
|
2134
|
+
padding-block: ${a(4)};
|
|
2044
2135
|
font-size: 1.125rem;
|
|
2045
2136
|
}
|
|
2046
2137
|
:host([look='issues']) .item.open {
|
|
2047
|
-
padding: ${
|
|
2138
|
+
padding: ${a(4)};
|
|
2048
2139
|
}
|
|
2049
2140
|
:host([look='issues']) .item.open button {
|
|
2050
2141
|
padding-block: 0;
|
|
2051
2142
|
font-size: 1.25rem;
|
|
2052
2143
|
}
|
|
2053
2144
|
}
|
|
2054
|
-
`]}toggle(e){this.open.includes(e)?this.open=this.open.filter(
|
|
2055
|
-
${this.items.map(i=>{let
|
|
2056
|
-
<div class="item ${
|
|
2145
|
+
`]}toggle(e){this.open.includes(e)?this.open=this.open.filter(r=>r!==e):this.open=this.multiple?[...this.open,e]:[e]}render(){let e=this.look==="issues";return o`
|
|
2146
|
+
${this.items.map(i=>{let r=!this.enhanced||this.open.includes(i.id),s=this.id_(`panel-${i.id}`),c=this.id_(`button-${i.id}`);return o`
|
|
2147
|
+
<div class="item ${r?"open":""}" part="item">
|
|
2057
2148
|
<div class="head" part="head">
|
|
2058
2149
|
<div class="h" role="heading" aria-level=${this.headingLevel}>
|
|
2059
2150
|
<button
|
|
2060
|
-
id=${
|
|
2151
|
+
id=${c}
|
|
2061
2152
|
part="header"
|
|
2062
2153
|
type="button"
|
|
2063
|
-
aria-expanded=${
|
|
2064
|
-
aria-controls=${
|
|
2154
|
+
aria-expanded=${r?"true":"false"}
|
|
2155
|
+
aria-controls=${s}
|
|
2065
2156
|
@click=${()=>this.toggle(i.id)}
|
|
2066
2157
|
>
|
|
2067
|
-
${i.meta?
|
|
2068
|
-
${e?
|
|
2158
|
+
${i.meta?o`<span class="meta" part="meta">${i.meta}</span>`:l}
|
|
2159
|
+
${e?o`<span class="marker" aria-hidden="true"></span>`:l}
|
|
2069
2160
|
<span class="q">${i.heading}</span>
|
|
2070
2161
|
</button>
|
|
2071
2162
|
</div>
|
|
2072
|
-
${i.tags?.length?
|
|
2073
|
-
${
|
|
2074
|
-
</span>`:
|
|
2075
|
-
${e?l:
|
|
2163
|
+
${i.tags?.length?o`<span class="pills" part="pills">
|
|
2164
|
+
${oe(i.status,i.statusTone)}${i.tags.map(p=>oe(p.label,p.tone??"neutral","tag"))}
|
|
2165
|
+
</span>`:oe(i.status,i.statusTone)}
|
|
2166
|
+
${e?l:o`<span class="marker" aria-hidden="true"><span class="chev">›</span></span>`}
|
|
2076
2167
|
</div>
|
|
2077
2168
|
<div
|
|
2078
|
-
id=${
|
|
2169
|
+
id=${s}
|
|
2079
2170
|
class="panel"
|
|
2080
2171
|
part="panel"
|
|
2081
2172
|
role="region"
|
|
2082
|
-
aria-labelledby=${
|
|
2083
|
-
?hidden=${!
|
|
2173
|
+
aria-labelledby=${c}
|
|
2174
|
+
?hidden=${!r}
|
|
2084
2175
|
>
|
|
2085
2176
|
<slot name=${`panel-${i.id}`}>${i.body}</slot>
|
|
2086
2177
|
</div>
|
|
2087
2178
|
</div>
|
|
2088
2179
|
`})}
|
|
2089
|
-
`}};customElements.define("impakt-accordion",
|
|
2180
|
+
`}};customElements.define("impakt-accordion",lt);var Sr=L("var(--impakt-color-line-soft, #dcdcd8)"),dt=class extends h{static{this.properties={steps:{type:Array},current:{type:String},label:{type:String},look:{type:String,reflect:!0},hideLabels:{type:Boolean,attribute:"hide-labels",reflect:!0},doneText:{type:String,attribute:"done-text"}}}constructor(){super(),this.steps=[],this.current="",this.label="Progress",this.look="steps",this.hideLabels=!1,this.doneText=""}static{this.styles=[...h.styles,k,u`
|
|
2090
2181
|
:host {
|
|
2091
2182
|
display: block;
|
|
2092
|
-
margin-block-end: ${
|
|
2183
|
+
margin-block-end: ${a(5)};
|
|
2093
2184
|
}
|
|
2094
2185
|
ol {
|
|
2095
2186
|
display: flex;
|
|
2096
|
-
gap: ${
|
|
2187
|
+
gap: ${a(2)};
|
|
2097
2188
|
list-style: none;
|
|
2098
2189
|
margin: 0;
|
|
2099
2190
|
padding: 0;
|
|
@@ -2102,7 +2193,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2102
2193
|
flex: 1;
|
|
2103
2194
|
font-size: ${b("sm")};
|
|
2104
2195
|
color: ${t.textMuted};
|
|
2105
|
-
padding-block-start: ${
|
|
2196
|
+
padding-block-start: ${a(2)};
|
|
2106
2197
|
border-block-start: 4px solid ${t.border};
|
|
2107
2198
|
}
|
|
2108
2199
|
li[data-state='done'] {
|
|
@@ -2115,17 +2206,17 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2115
2206
|
border-block-start-color: ${t.brand};
|
|
2116
2207
|
}
|
|
2117
2208
|
.sr-only {
|
|
2118
|
-
${
|
|
2209
|
+
${T}
|
|
2119
2210
|
}
|
|
2120
2211
|
:host([look='bars']) {
|
|
2121
2212
|
margin-block-end: 0;
|
|
2122
2213
|
}
|
|
2123
2214
|
:host([look='bars']) ol {
|
|
2124
|
-
gap: ${
|
|
2215
|
+
gap: ${a(1.5)};
|
|
2125
2216
|
}
|
|
2126
2217
|
:host([look='bars']) li {
|
|
2127
2218
|
position: relative;
|
|
2128
|
-
padding-block-start: ${
|
|
2219
|
+
padding-block-start: ${a(3)};
|
|
2129
2220
|
border: 0;
|
|
2130
2221
|
font-size: 12px;
|
|
2131
2222
|
min-inline-size: 0;
|
|
@@ -2153,7 +2244,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2153
2244
|
:host([look='bars']) li[data-state='done']::before, :host([look='bars']) li[data-state='current']::before { background: CanvasText; }
|
|
2154
2245
|
}
|
|
2155
2246
|
:host([hide-labels]) .name {
|
|
2156
|
-
${
|
|
2247
|
+
${T}
|
|
2157
2248
|
}
|
|
2158
2249
|
/* Stages: numbered names on a soft rule, the current one underlined in the ink. */
|
|
2159
2250
|
:host([look='stages']) nav {
|
|
@@ -2161,10 +2252,10 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2161
2252
|
scrollbar-width: thin;
|
|
2162
2253
|
}
|
|
2163
2254
|
:host([look='stages']) ol {
|
|
2164
|
-
gap: ${
|
|
2255
|
+
gap: ${a(8)};
|
|
2165
2256
|
inline-size: max-content;
|
|
2166
2257
|
min-inline-size: 100%;
|
|
2167
|
-
box-shadow: inset 0 -1px 0 ${
|
|
2258
|
+
box-shadow: inset 0 -1px 0 ${Sr};
|
|
2168
2259
|
}
|
|
2169
2260
|
:host([look='stages']) li {
|
|
2170
2261
|
flex: none;
|
|
@@ -2178,9 +2269,9 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2178
2269
|
:host([look='stages']) .stage {
|
|
2179
2270
|
display: inline-flex;
|
|
2180
2271
|
align-items: baseline;
|
|
2181
|
-
gap: ${
|
|
2272
|
+
gap: ${a(2)};
|
|
2182
2273
|
min-block-size: 24px;
|
|
2183
|
-
padding-block: ${
|
|
2274
|
+
padding-block: ${a(3)};
|
|
2184
2275
|
border-block-end: 3px solid transparent;
|
|
2185
2276
|
color: inherit;
|
|
2186
2277
|
text-decoration: none;
|
|
@@ -2210,52 +2301,52 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2210
2301
|
step's name. */
|
|
2211
2302
|
@media (max-width: 30rem) {
|
|
2212
2303
|
:host(:not([look='stages'])) li:not([data-state='current']) .name {
|
|
2213
|
-
${
|
|
2304
|
+
${T}
|
|
2214
2305
|
}
|
|
2215
2306
|
}
|
|
2216
|
-
`]}renderStages(e){let i=this.doneText||
|
|
2217
|
-
<nav part="nav" aria-label=${this.label} tabindex=${
|
|
2307
|
+
`]}renderStages(e){let i=this.doneText||S("done"),r=this.steps.some(s=>s.href);return o`
|
|
2308
|
+
<nav part="nav" aria-label=${this.label} tabindex=${r?l:"0"}>
|
|
2218
2309
|
<ol part="list">
|
|
2219
|
-
${this.steps.map((
|
|
2220
|
-
<span class="name" part="step-label">${
|
|
2221
|
-
<li part="step step-${
|
|
2222
|
-
${
|
|
2310
|
+
${this.steps.map((s,c)=>{let p=c<e?"done":c===e?"current":"todo",$=String(c+1).padStart(2,"0"),g=o`<span class="num" part="step-number">${p==="done"?o`<span aria-hidden="true">✓ </span>`:l}${$}</span>
|
|
2311
|
+
<span class="name" part="step-label">${s.label}</span>${p==="done"?o`<span class="sr-only">, ${i}</span>`:l}`;return o`
|
|
2312
|
+
<li part="step step-${p}" data-state=${p}>
|
|
2313
|
+
${s.href?o`<a class="stage" href=${s.href} aria-current=${p==="current"?"step":l}>${g}</a>`:o`<span class="stage" aria-current=${p==="current"?"step":l}>${g}</span>`}
|
|
2223
2314
|
</li>
|
|
2224
2315
|
`})}
|
|
2225
2316
|
</ol>
|
|
2226
2317
|
</nav>
|
|
2227
|
-
`}render(){let e=this.steps.findIndex(i=>i.id===this.current);return this.look==="stages"?this.renderStages(e):
|
|
2318
|
+
`}render(){let e=this.steps.findIndex(i=>i.id===this.current);return this.look==="stages"?this.renderStages(e):o`
|
|
2228
2319
|
<nav part="nav" aria-label=${this.label}>
|
|
2229
2320
|
<ol part="list">
|
|
2230
|
-
${this.steps.map((i,
|
|
2231
|
-
<li part="step step-${
|
|
2232
|
-
${
|
|
2321
|
+
${this.steps.map((i,r)=>{let s=r<e?"done":r===e?"current":"todo";return o`
|
|
2322
|
+
<li part="step step-${s}" data-state=${s} aria-current=${s==="current"?"step":l}>
|
|
2323
|
+
${s==="current"?o`<span class="sr-only">${S("Step {step} of {steps}:",{step:r+1,steps:this.steps.length})} </span>`:l}
|
|
2233
2324
|
<span class="name" part="step-label">${i.label}</span>
|
|
2234
2325
|
</li>
|
|
2235
2326
|
`})}
|
|
2236
2327
|
</ol>
|
|
2237
2328
|
</nav>
|
|
2238
|
-
`}};customElements.define("impakt-progress",
|
|
2329
|
+
`}};customElements.define("impakt-progress",dt);var be={brand:"var(--impakt-color-brand-default, #1f4ed8)",accent:"var(--impakt-color-accent-default, #c8a15a)",info:"var(--impakt-color-status-info-default, #1f4ed8)",success:"var(--impakt-color-status-success-default, #047857)",warning:"var(--impakt-color-status-warning-default, #b45309)",danger:"var(--impakt-color-status-danger-default, #c8102e)"},fe=["success","info","warning","accent","danger","brand"],di=(n,e)=>typeof n=="number"?`var(--impakt-color-chart-${n}, ${be[fe[(n-1)%fe.length]]})`:n&&n in be?be[n]:`var(--impakt-color-chart-${e%5+1}, ${be[fe[e%fe.length]]})`;var Wi=t.fontMono,ct=class extends h{static{this.properties={label:{type:String},meta:{type:String},icon:{type:String,reflect:!0},tone:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0},hideOn:{type:String,reflect:!0,attribute:"hide-on"}}}constructor(){super(),this.label="",this.meta="",this.icon="none",this.tone="success",this.look="filled",this.size="md",this.hideOn="never"}static{this.styles=[...h.styles,Di,u`
|
|
2239
2330
|
:host { display: inline-flex; flex: none; }
|
|
2240
|
-
span.chip { display: inline-flex; align-items: center; gap: ${
|
|
2331
|
+
span.chip { display: inline-flex; align-items: center; gap: ${a(1.5)}; padding: 3px ${a(2.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-family: ${Wi}; font-size: ${b("xs")}; line-height: 1.2; white-space: nowrap; }
|
|
2241
2332
|
:host([look='filled']) span.chip { border-radius: ${t.radius}; background: color-mix(in srgb, currentColor 7%, transparent); }
|
|
2242
2333
|
:host([look='outlined']) span.chip { border: ${t.borderThin} solid ${t.text}; background: ${t.surfaceCard}; }
|
|
2243
2334
|
:host([size='marketing']) span.chip { font-size: 11px; font-weight: ${m("medium")}; text-transform: uppercase; letter-spacing: 0.06em; }
|
|
2244
2335
|
/* Body: a 35px square box in the body face, for a row of tags such as a stack (G2 case study, 21:1493). */
|
|
2245
|
-
:host([size='body']) span.chip { box-sizing: border-box; min-block-size: 35px; padding: ${
|
|
2246
|
-
:host([size='lg']) span.chip { box-sizing: border-box; min-block-size: 49px; gap: ${
|
|
2247
|
-
:host([size='lg']) .meta { font-family: ${
|
|
2336
|
+
:host([size='body']) span.chip { box-sizing: border-box; min-block-size: 35px; padding: ${a(1.5)} ${a(3)}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; font-family: ${t.fontBody}; font-size: 14px; line-height: 1.2; }
|
|
2337
|
+
:host([size='lg']) span.chip { box-sizing: border-box; min-block-size: 49px; gap: ${a(3)}; padding: ${a(2)} ${a(4)}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radius}; font-family: ${t.fontBody}; font-size: 20px; line-height: 1.2; }
|
|
2338
|
+
:host([size='lg']) .meta { font-family: ${Wi}; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 1; color: ${t.textMuted}; }
|
|
2248
2339
|
:host([look='plain']) span.chip { padding: 0; }
|
|
2249
2340
|
.dot { flex: none; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--tone); }
|
|
2250
2341
|
/* Yellow means "needs your attention": the accent, with an ink stroke so it shows on white. */
|
|
2251
|
-
.dot.warn { background: ${
|
|
2342
|
+
.dot.warn { background: ${d("color.accent.default","#ffd43b")}; box-shadow: 0 0 0 1px ${t.text}; }
|
|
2252
2343
|
@media (forced-colors: active) { .dot, .dot.warn { background: CanvasText; } }
|
|
2253
2344
|
svg { inline-size: 12px; block-size: 12px; }
|
|
2254
2345
|
.meta { opacity: 0.72; text-transform: none; }
|
|
2255
2346
|
:host([look='plain']) .label { opacity: 0.72; }
|
|
2256
|
-
`]}render(){let e=this.icon==="dot"?
|
|
2347
|
+
`]}render(){let e=this.icon==="dot"?o`<span class="dot ${this.tone==="warning"?"warn":""}" aria-hidden="true"></span>`:this.icon==="branch"?o`<svg viewBox="0 0 14 14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="3.5" cy="3" r="1.5"/><circle cx="3.5" cy="11" r="1.5"/><circle cx="10.5" cy="4.5" r="1.5"/><path d="M3.5 4.5v5M10.5 6c0 2.5-3 2.5-6 4"/></svg>`:l;return o`<span class="chip" part="chip" style=${`--tone:${di(this.tone,0)}`}>${e}<span class="label">${this.label}</span>${this.meta?o` <span class="meta">${this.meta}</span>`:l}</span>`}};customElements.define("impakt-chip",ct);var pt=class extends h{static{this.properties={tone:{type:String,reflect:!0},icon:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.tone="neutral",this.icon="none",this.look="filled",this.size="md"}static{this.styles=[...h.styles,u`
|
|
2257
2348
|
:host { display: inline-flex; }
|
|
2258
|
-
span { display: inline-flex; align-items: center; gap: ${
|
|
2349
|
+
span { display: inline-flex; align-items: center; gap: ${a(1)}; padding: ${a(.5)} ${a(2)}; border-radius: ${t.radius}; ${w("sm")} font-weight: ${m("medium")}; background: ${t.surfaceInset}; color: ${t.text}; box-shadow: inset 0 0 0 1px ${t.hairline}; }
|
|
2259
2350
|
:host([tone='brand']) span { background: ${t.brandSubtle}; color: ${t.brand}; }
|
|
2260
2351
|
:host([tone='success']) span { background: ${t.successSubtle}; color: ${t.successText}; }
|
|
2261
2352
|
:host([tone='warning']) span { background: ${t.warningSubtle}; color: ${t.warningText}; }
|
|
@@ -2264,18 +2355,18 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2264
2355
|
:host([tone='inverse']) span { background: ${t.text}; color: ${t.surfaceCard}; box-shadow: none; }
|
|
2265
2356
|
:host([tone='solid']) span { background: ${t.brand}; color: ${t.onBrand}; box-shadow: none; }
|
|
2266
2357
|
/* Accent: the yellow with ink words, for the label that needs attention. */
|
|
2267
|
-
:host([tone='accent']) span { background: ${
|
|
2358
|
+
:host([tone='accent']) span { background: ${d("color.accent.default","#ffd43b")}; color: ${d("color.accent.on","#111111")}; box-shadow: none; }
|
|
2268
2359
|
:host([look='outline']) span { background: transparent; color: ${t.text}; box-shadow: inset 0 0 0 1px ${t.text}; }
|
|
2269
|
-
:host([look='outline'][tone='accent']) span { background: ${
|
|
2270
|
-
:host([size='marketing']) span { padding: 3px ${
|
|
2360
|
+
:host([look='outline'][tone='accent']) span { background: ${d("color.accent.default","#ffd43b")}; color: ${d("color.accent.on","#111111")}; box-shadow: inset 0 0 0 1px ${d("color.accent.on","#111111")}; }
|
|
2361
|
+
:host([size='marketing']) span { padding: 3px ${a(2)}; font-family: ${t.fontMono}; font-size: 11px; line-height: 1.4; font-weight: ${m("medium")}; letter-spacing: 0.06em; text-transform: uppercase; }
|
|
2271
2362
|
@media (forced-colors: active) { span { border-color: CanvasText; } }
|
|
2272
|
-
`]}render(){return
|
|
2363
|
+
`]}render(){return o`<span part="badge">${M(this.icon,"1em")}<slot></slot></span>`}};customElements.define("impakt-badge",pt);var ht=class extends x{constructor(){super();this.filled=!1;this.filledText="";this.width="full",this.rows=4,this.maxlength=void 0,this.fillFrom="none",this.placeholder=""}static{this.properties={...x.properties,width:{type:String,reflect:!0},rows:{type:Number},maxlength:{type:Number},fillFrom:{type:String,attribute:"fill-from"},placeholder:{type:String}}}static{this.styles=[...x.styles,D,ae("textarea"),u`
|
|
2273
2364
|
textarea {
|
|
2274
2365
|
/* Resizing is left on deliberately. 1.4.4 and 1.4.12 both assume text
|
|
2275
2366
|
can be made bigger, and a fixed box is where that stops working. */
|
|
2276
2367
|
resize: vertical;
|
|
2277
2368
|
}
|
|
2278
|
-
`]}willUpdate(i){super.willUpdate?.(i),this.filledText&&i.has("value")&&!this.value&&(this.value=this.filledText)}fill(){if(this.filled||this.fillFrom!=="estimate"||(this.filled=!0,this.value))return;let i=null;try{i=sessionStorage.getItem("impakt.estimate")}catch{i=null}i&&(this.filledText=i,this.setFormValue(i))}renderControl(){return
|
|
2369
|
+
`]}willUpdate(i){super.willUpdate?.(i),this.filledText&&i.has("value")&&!this.value&&(this.value=this.filledText)}fill(){if(this.filled||this.fillFrom!=="estimate"||(this.filled=!0,this.value))return;let i=null;try{i=sessionStorage.getItem("impakt.estimate")}catch{i=null}i&&(this.filledText=i,this.setFormValue(i))}renderControl(){return o`
|
|
2279
2370
|
<textarea
|
|
2280
2371
|
id=${this.controlId}
|
|
2281
2372
|
part="textarea"
|
|
@@ -2291,7 +2382,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2291
2382
|
.value=${this.value}
|
|
2292
2383
|
@input=${i=>{this.filledText="",this.setFormValue(i.target.value)}}
|
|
2293
2384
|
></textarea>
|
|
2294
|
-
`}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error),this.fill()}};customElements.define("impakt-textarea",
|
|
2385
|
+
`}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error),this.fill()}};customElements.define("impakt-textarea",ht);var ut=class extends x{static{this.properties={...x.properties,options:{type:Array},values:{type:Array}}}constructor(){super(),this.options=[],this.values=[]}static{this.styles=[...x.styles,u`
|
|
2295
2386
|
fieldset {
|
|
2296
2387
|
border: 0;
|
|
2297
2388
|
margin: 0;
|
|
@@ -2304,11 +2395,11 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2304
2395
|
.option {
|
|
2305
2396
|
display: flex;
|
|
2306
2397
|
align-items: flex-start;
|
|
2307
|
-
gap: ${
|
|
2308
|
-
padding: ${
|
|
2398
|
+
gap: ${a(3)};
|
|
2399
|
+
padding: ${a(3)};
|
|
2309
2400
|
border: ${t.borderThin} solid ${t.border};
|
|
2310
2401
|
border-radius: ${t.radius};
|
|
2311
|
-
margin-block-end: ${
|
|
2402
|
+
margin-block-end: ${a(2)};
|
|
2312
2403
|
cursor: pointer;
|
|
2313
2404
|
}
|
|
2314
2405
|
.option:hover {
|
|
@@ -2330,39 +2421,39 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2330
2421
|
display: block;
|
|
2331
2422
|
font-size: ${b("sm")};
|
|
2332
2423
|
color: ${t.textMuted};
|
|
2333
|
-
margin-block-start: ${
|
|
2424
|
+
margin-block-start: ${a(1)};
|
|
2334
2425
|
}
|
|
2335
2426
|
:host([invalid]) .option {
|
|
2336
2427
|
border-color: ${t.danger};
|
|
2337
2428
|
}
|
|
2338
|
-
`]}renderLabel(){return
|
|
2339
|
-
${this.label}${this.required?
|
|
2340
|
-
</legend>`}onToggle(e,i){this.values=i?[...this.values,e]:this.values.filter(
|
|
2341
|
-
${this.options.map((e,i)=>{let
|
|
2342
|
-
<label class="option" part="option" for=${
|
|
2429
|
+
`]}renderLabel(){return o`<legend class="label" part="label">
|
|
2430
|
+
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
2431
|
+
</legend>`}onToggle(e,i){this.values=i?[...this.values,e]:this.values.filter(r=>r!==e),this.setFormValue(this.options.filter(r=>this.values.includes(r.value)).map(r=>r.value).join(","))}renderControl(){return o`
|
|
2432
|
+
${this.options.map((e,i)=>{let r=this.id_(`opt-${i}`),s=e.description?this.id_(`opt-${i}-desc`):void 0;return o`
|
|
2433
|
+
<label class="option" part="option" for=${r}>
|
|
2343
2434
|
<input
|
|
2344
2435
|
type="checkbox"
|
|
2345
|
-
id=${
|
|
2436
|
+
id=${r}
|
|
2346
2437
|
value=${e.value}
|
|
2347
2438
|
.checked=${this.values.includes(e.value)}
|
|
2348
2439
|
?disabled=${this.disabled}
|
|
2349
|
-
aria-describedby=${
|
|
2350
|
-
@change=${
|
|
2440
|
+
aria-describedby=${s??l}
|
|
2441
|
+
@change=${c=>this.onToggle(e.value,c.target.checked)}
|
|
2351
2442
|
/>
|
|
2352
2443
|
<span>
|
|
2353
2444
|
<span class="option-text">${e.label}</span>
|
|
2354
|
-
${e.description?
|
|
2445
|
+
${e.description?o`<span class="option-description" id=${s}>${e.description}</span>`:l}
|
|
2355
2446
|
</span>
|
|
2356
2447
|
</label>
|
|
2357
2448
|
`})}
|
|
2358
|
-
`}render(){return
|
|
2449
|
+
`}render(){return o`
|
|
2359
2450
|
<fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
|
|
2360
2451
|
${this.renderLabel()}
|
|
2361
|
-
${this.description?
|
|
2452
|
+
${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
|
|
2362
2453
|
${this.renderControl()}
|
|
2363
2454
|
<div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
|
|
2364
2455
|
</fieldset>
|
|
2365
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox-group",
|
|
2456
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-checkbox-group",ut);var mt=class extends x{static{this.properties={...x.properties,day:{type:String},month:{type:String},year:{type:String},autocompleteSection:{type:String,attribute:"autocomplete-section"}}}constructor(){super(),this.day="",this.month="",this.year="",this.autocompleteSection="bday"}static{this.styles=[...x.styles,u`
|
|
2366
2457
|
fieldset {
|
|
2367
2458
|
border: 0;
|
|
2368
2459
|
margin: 0;
|
|
@@ -2374,12 +2465,12 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2374
2465
|
}
|
|
2375
2466
|
.parts {
|
|
2376
2467
|
display: flex;
|
|
2377
|
-
gap: ${
|
|
2468
|
+
gap: ${a(3)};
|
|
2378
2469
|
}
|
|
2379
2470
|
.part {
|
|
2380
2471
|
display: flex;
|
|
2381
2472
|
flex-direction: column;
|
|
2382
|
-
gap: ${
|
|
2473
|
+
gap: ${a(1)};
|
|
2383
2474
|
}
|
|
2384
2475
|
.part label {
|
|
2385
2476
|
font-size: ${b("sm")};
|
|
@@ -2387,7 +2478,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2387
2478
|
}
|
|
2388
2479
|
input {
|
|
2389
2480
|
min-block-size: 44px;
|
|
2390
|
-
padding: ${
|
|
2481
|
+
padding: ${a(3)};
|
|
2391
2482
|
font-family: inherit;
|
|
2392
2483
|
font-size: ${b("md")};
|
|
2393
2484
|
color: ${t.text};
|
|
@@ -2395,61 +2486,63 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2395
2486
|
border: ${t.borderThin} solid ${t.border};
|
|
2396
2487
|
border-radius: ${t.radius};
|
|
2397
2488
|
/* Room for the digits plus the padding and border, so the box is never narrower than a finger. */
|
|
2398
|
-
inline-size: calc(3ch + ${
|
|
2489
|
+
inline-size: calc(3ch + ${a(6)} + 2px);
|
|
2399
2490
|
}
|
|
2400
2491
|
.year input {
|
|
2401
|
-
inline-size: calc(5ch + ${
|
|
2492
|
+
inline-size: calc(5ch + ${a(6)} + 2px);
|
|
2402
2493
|
}
|
|
2403
2494
|
:host([invalid]) input {
|
|
2404
2495
|
border-color: ${t.danger};
|
|
2405
2496
|
border-width: ${t.borderThick};
|
|
2406
2497
|
}
|
|
2407
|
-
`]}renderLabel(){return
|
|
2408
|
-
${this.label}${this.required?
|
|
2409
|
-
</legend>`}datePart(e,i,
|
|
2498
|
+
`]}renderLabel(){return o`<legend class="label" part="label">
|
|
2499
|
+
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
2500
|
+
</legend>`}datePart(e,i,r,s){let c=this.id_(e);return o`
|
|
2410
2501
|
<div class="part ${e}">
|
|
2411
|
-
<label for=${
|
|
2502
|
+
<label for=${c}>${i}</label>
|
|
2412
2503
|
<input
|
|
2413
|
-
id=${
|
|
2504
|
+
id=${c}
|
|
2414
2505
|
type="text"
|
|
2415
2506
|
inputmode="numeric"
|
|
2416
|
-
maxlength=${
|
|
2507
|
+
maxlength=${r}
|
|
2417
2508
|
.value=${this[e]}
|
|
2418
|
-
autocomplete=${this.autocompleteSection?`${this.autocompleteSection}-${
|
|
2509
|
+
autocomplete=${this.autocompleteSection?`${this.autocompleteSection}-${s}`:l}
|
|
2419
2510
|
?disabled=${this.disabled}
|
|
2420
|
-
@input=${
|
|
2511
|
+
@input=${p=>{this[e]=p.target.value,this.emit()}}
|
|
2421
2512
|
/>
|
|
2422
2513
|
</div>
|
|
2423
|
-
`}emit(){let i=this.day&&this.month&&this.year.length===4?`${this.year}-${this.month.padStart(2,"0")}-${this.day.padStart(2,"0")}`:"";this.setFormValue(i)}renderControl(){return
|
|
2514
|
+
`}emit(){let i=this.day&&this.month&&this.year.length===4?`${this.year}-${this.month.padStart(2,"0")}-${this.day.padStart(2,"0")}`:"";this.setFormValue(i)}renderControl(){return o`
|
|
2424
2515
|
<div class="parts" part="parts">
|
|
2425
|
-
${this.datePart("day",
|
|
2426
|
-
${this.datePart("month",
|
|
2427
|
-
${this.datePart("year",
|
|
2516
|
+
${this.datePart("day",S("Day"),2,"day")}
|
|
2517
|
+
${this.datePart("month",S("Month"),2,"month")}
|
|
2518
|
+
${this.datePart("year",S("Year"),4,"year")}
|
|
2428
2519
|
</div>
|
|
2429
|
-
`}render(){return
|
|
2520
|
+
`}render(){return o`
|
|
2430
2521
|
<fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
|
|
2431
2522
|
${this.renderLabel()}
|
|
2432
|
-
${this.description?
|
|
2523
|
+
${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
|
|
2433
2524
|
${this.renderControl()}
|
|
2434
2525
|
<div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
|
|
2435
2526
|
</fieldset>
|
|
2436
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-date-input",
|
|
2527
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-date-input",mt);var xe=new Set,$e=null;function ye(n){if(typeof document>"u"||xe.has(n)||(xe.add(n),xe.size>1))return;let e=document.documentElement,i=window.innerWidth-e.clientWidth;$e={overflow:e.style.overflow,paddingRight:e.style.paddingRight},e.style.overflow="hidden",i>0&&(e.style.paddingRight=`${i}px`)}function ee(n){if(typeof document>"u"||!xe.delete(n)||xe.size>0||!$e)return;let e=document.documentElement;e.style.overflow=$e.overflow,e.style.paddingRight=$e.paddingRight,$e=null}var H={edgeWidth:d("dialog.edge-width","0px"),backdrop:d("dialog.backdrop","color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 30%, transparent)"),backdropBlur:d("dialog.backdrop-blur","2px"),padding:d("dialog.padding","20px"),phonePadding:L(`min(${d("dialog.padding","20px")}, 20px)`),headingSize:d("dialog.heading.size","1.25rem"),headingLineHeight:d("dialog.heading.line-height","normal"),headingTracking:d("dialog.heading.tracking","0em"),headingWeight:d("dialog.heading.weight","700")},gt=class extends h{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.closeLabel="Close",this.dismissible=!0,this.phoneFullScreen=!1,this.size="md",this.eyebrow=""}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},closeLabel:{type:String,attribute:"close-label"},dismissible:{type:Boolean},phoneFullScreen:{type:Boolean,reflect:!0,attribute:"phone-full-screen"},size:{type:String,reflect:!0},eyebrow:{type:String}}}static{this.styles=[...h.styles,k,C(".close"),u`
|
|
2437
2528
|
dialog {
|
|
2438
2529
|
padding: 0;
|
|
2439
|
-
|
|
2530
|
+
/* No edge and a lifted shadow, or under Noire an ink edge and no shadow (dialog.edge-width, shadow.dialog). */
|
|
2531
|
+
border: ${H.edgeWidth} solid ${t.text};
|
|
2440
2532
|
border-radius: ${t.radius2xl};
|
|
2441
2533
|
background: ${t.surfaceCard};
|
|
2442
2534
|
color: ${t.text};
|
|
2443
|
-
box-shadow: var(--impakt-shadow-dialog,
|
|
2535
|
+
box-shadow: var(--impakt-shadow-dialog, ${t.shadowXl}, 0 0 0 1px ${t.hairline});
|
|
2444
2536
|
max-inline-size: min(32rem, calc(100vw - 2rem));
|
|
2445
2537
|
/* 1.4.10 Reflow: a dialog taller than the viewport must scroll inside
|
|
2446
2538
|
itself rather than clipping, at 320px and at 400% zoom alike. */
|
|
2447
2539
|
max-block-size: calc(100vh - 2rem);
|
|
2448
2540
|
overflow: auto;
|
|
2449
2541
|
}
|
|
2542
|
+
/* The page behind, dimmed with the text colour and blurred, or under Noire the ink at half strength (dialog.backdrop). */
|
|
2450
2543
|
dialog::backdrop {
|
|
2451
|
-
|
|
2452
|
-
|
|
2544
|
+
background: ${H.backdrop};
|
|
2545
|
+
backdrop-filter: blur(${H.backdropBlur});
|
|
2453
2546
|
}
|
|
2454
2547
|
:host([size='lg']) dialog {
|
|
2455
2548
|
inline-size: 720px;
|
|
@@ -2458,7 +2551,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2458
2551
|
.titles {
|
|
2459
2552
|
display: flex;
|
|
2460
2553
|
flex-direction: column;
|
|
2461
|
-
gap: ${
|
|
2554
|
+
gap: ${a(2)};
|
|
2462
2555
|
min-inline-size: 0;
|
|
2463
2556
|
}
|
|
2464
2557
|
.eyebrow {
|
|
@@ -2471,8 +2564,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2471
2564
|
display: flex;
|
|
2472
2565
|
flex-wrap: wrap;
|
|
2473
2566
|
justify-content: flex-end;
|
|
2474
|
-
gap: ${
|
|
2475
|
-
padding: ${r(5)} ${r(6)};
|
|
2567
|
+
gap: ${a(3)};
|
|
2476
2568
|
border-block-start: ${t.borderThin} solid var(--impakt-color-line-soft, #dcdcd8);
|
|
2477
2569
|
}
|
|
2478
2570
|
.foot.empty {
|
|
@@ -2482,27 +2574,30 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2482
2574
|
display: flex;
|
|
2483
2575
|
align-items: flex-start;
|
|
2484
2576
|
justify-content: space-between;
|
|
2485
|
-
gap: ${
|
|
2486
|
-
padding: ${
|
|
2577
|
+
gap: ${a(3)};
|
|
2578
|
+
padding: ${H.padding} ${H.padding} 0;
|
|
2487
2579
|
}
|
|
2488
|
-
/*
|
|
2580
|
+
/* The heading: bold in the xl size, or under Noire (G2) about 32px, semibold and tight (dialog.heading.*). */
|
|
2489
2581
|
.heading {
|
|
2490
2582
|
margin: 0;
|
|
2491
2583
|
font-family: ${t.fontHeading};
|
|
2492
|
-
font-size:
|
|
2493
|
-
line-height:
|
|
2494
|
-
letter-spacing:
|
|
2495
|
-
font-weight: ${
|
|
2584
|
+
font-size: ${H.headingSize};
|
|
2585
|
+
line-height: ${H.headingLineHeight};
|
|
2586
|
+
letter-spacing: ${H.headingTracking};
|
|
2587
|
+
font-weight: ${H.headingWeight};
|
|
2496
2588
|
color: ${t.textHeading};
|
|
2497
2589
|
}
|
|
2498
2590
|
.body {
|
|
2499
|
-
padding: ${
|
|
2591
|
+
padding: ${a(4)} ${H.padding} ${H.padding};
|
|
2592
|
+
}
|
|
2593
|
+
.foot {
|
|
2594
|
+
padding: ${a(5)} ${H.padding};
|
|
2500
2595
|
}
|
|
2501
2596
|
@media (max-width: 40rem) {
|
|
2502
|
-
.heading { font-size: 1.5rem; }
|
|
2503
|
-
.head { padding: ${
|
|
2504
|
-
.body { padding: ${
|
|
2505
|
-
.foot { padding: ${
|
|
2597
|
+
.heading { font-size: min(${H.headingSize}, 1.5rem); }
|
|
2598
|
+
.head { padding: ${H.phonePadding} ${H.phonePadding} 0; }
|
|
2599
|
+
.body { padding: ${a(4)} ${H.phonePadding} ${H.phonePadding}; }
|
|
2600
|
+
.foot { padding: ${a(4)} ${H.phonePadding}; }
|
|
2506
2601
|
}
|
|
2507
2602
|
@media (max-width: 40rem) {
|
|
2508
2603
|
:host([phone-full-screen]) dialog {
|
|
@@ -2528,19 +2623,19 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2528
2623
|
color: ${t.text};
|
|
2529
2624
|
cursor: pointer;
|
|
2530
2625
|
}
|
|
2531
|
-
`]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let
|
|
2626
|
+
`]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let r=this.dialog;r&&(this.open?(typeof r.showModal=="function"?r.showModal():r.setAttribute("open",""),ye(this)):(typeof r.close=="function"&&r.open?r.close():r.removeAttribute("open"),ee(this)))}disconnectedCallback(){super.disconnectedCallback(),ee(this)}onFooter(){let r=Array.from(this.renderRoot.querySelectorAll('slot[name="footer"], slot[name="actions"]')).some(s=>s.assignedElements({flatten:!0}).length>0);r!==this.hasFooter&&(this.hasFooter=r,this.requestUpdate())}close(){this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0}))}render(){return o`
|
|
2532
2627
|
<dialog
|
|
2533
2628
|
part="dialog"
|
|
2534
2629
|
aria-labelledby=${this.heading?this.id_("heading"):l}
|
|
2535
2630
|
@cancel=${i=>{this.dismissible?this.close():i.preventDefault()}}
|
|
2536
2631
|
@close=${()=>{this.open&&this.close()}}
|
|
2537
2632
|
>
|
|
2538
|
-
<div class="head">
|
|
2633
|
+
<div class="head" part="head">
|
|
2539
2634
|
<div class="titles">
|
|
2540
|
-
${this.eyebrow?
|
|
2541
|
-
${this.heading?
|
|
2635
|
+
${this.eyebrow?o`<p class="eyebrow" part="eyebrow">${this.eyebrow}</p>`:l}
|
|
2636
|
+
${this.heading?o`<h2 class="heading" id=${this.id_("heading")} part="heading">${this.heading}</h2>`:l}
|
|
2542
2637
|
</div>
|
|
2543
|
-
${this.dismissible?
|
|
2638
|
+
${this.dismissible?o`<button class="close" part="close" type="button" @click=${this.close}>
|
|
2544
2639
|
<span aria-hidden="true">×</span>
|
|
2545
2640
|
<span class="sr-only" style="position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)">${this.closeLabel}</span>
|
|
2546
2641
|
</button>`:l}
|
|
@@ -2550,23 +2645,23 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2550
2645
|
<slot name="footer" @slotchange=${this.onFooter}></slot><slot name="actions" @slotchange=${this.onFooter}></slot>
|
|
2551
2646
|
</div>
|
|
2552
2647
|
</dialog>
|
|
2553
|
-
`}};customElements.define("impakt-dialog",
|
|
2648
|
+
`}};customElements.define("impakt-dialog",gt);var bt=class extends h{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=[...h.styles,N,u`
|
|
2554
2649
|
:host { display: block; }
|
|
2555
|
-
ul, ol { list-style: none; margin: 0; padding: 0; display: grid; gap: ${
|
|
2556
|
-
li { position: relative; padding-inline-start: ${
|
|
2650
|
+
ul, ol { list-style: none; margin: 0; padding: 0; display: grid; gap: ${a(3)}; counter-reset: point; }
|
|
2651
|
+
li { position: relative; padding-inline-start: ${a(7)}; ${w("md")} text-wrap: pretty; counter-increment: point; }
|
|
2557
2652
|
:host([size='sm']) li { ${w("sm")} }
|
|
2558
2653
|
:host([size='lg']) li { ${w("lg")} }
|
|
2559
2654
|
li::before { content: ''; position: absolute; inset-inline-start: 4px; inset-block-start: 0.6em; inline-size: 7px; block-size: 7px; border-radius: 2px; background: ${t.brand}; }
|
|
2560
2655
|
: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")}; }
|
|
2561
2656
|
: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}; }
|
|
2562
2657
|
@media (forced-colors: active) { li::before { background: CanvasText; } :host([look='check']) li::before, :host([look='number']) li::before { background: none; color: CanvasText; } }
|
|
2563
|
-
`]}render(){let e=(this.items??[]).map(i=>
|
|
2658
|
+
`]}render(){let e=(this.items??[]).map(i=>o`<li part="item">${i}</li>`);return this.look==="number"?o`<ol part="list">${e}</ol>`:o`<ul part="list" role="list">${e}</ul>`}};customElements.define("impakt-list",bt);var Tr={"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"},ft=class extends h{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=[...h.styles,N,u`
|
|
2564
2659
|
:host { display: block; min-inline-size: 0; container-type: inline-size; }
|
|
2565
|
-
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${
|
|
2660
|
+
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${d("layout.gutter.md","16px")}; align-items: stretch; }
|
|
2566
2661
|
:host([gap='none']) .columns { gap: 0; }
|
|
2567
|
-
:host([gap='sm']) .columns { gap: ${
|
|
2568
|
-
:host([gap='lg']) .columns { gap: ${
|
|
2569
|
-
:host([gap='xl']) .columns { gap: ${
|
|
2662
|
+
:host([gap='sm']) .columns { gap: ${d("layout.gutter.sm","8px")}; }
|
|
2663
|
+
:host([gap='lg']) .columns { gap: ${d("layout.gutter.lg","32px")}; }
|
|
2664
|
+
:host([gap='xl']) .columns { gap: ${d("layout.gutter.xl","48px")}; }
|
|
2570
2665
|
:host([align='start']) .columns { align-items: start; }
|
|
2571
2666
|
:host([align='center']) .columns { align-items: center; }
|
|
2572
2667
|
:host([align='end']) .columns { align-items: end; }
|
|
@@ -2579,7 +2674,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2579
2674
|
::slotted(*) { max-inline-size: 100%; }
|
|
2580
2675
|
@container (max-width: 40rem) { :host(:not([stack-on='never'])) .columns { grid-template-columns: minmax(0, 1fr) !important; } }
|
|
2581
2676
|
@container (max-width: 64rem) { :host([stack-on='tablet']) .columns { grid-template-columns: minmax(0, 1fr) !important; } }
|
|
2582
|
-
`]}render(){let e=this.columns==="one"?1:this.columns==="three"?3:this.columns==="four"?4:2,i=
|
|
2677
|
+
`]}render(){let e=this.columns==="one"?1:this.columns==="three"?3:this.columns==="four"?4:2,i=Tr[this.widths]?.split(" "),r=i&&i.length===e?i.map(s=>`minmax(0, ${s})`).join(" "):"";return o`<div class="columns" part="row" style=${r?`grid-template-columns: ${r}`:""}>${Array.from({length:e},(s,c)=>o`<div class="column" part="column"><slot name=${`column-${c+1}`}></slot></div>`)}</div>`}};customElements.define("impakt-grid",ft);var $t=class extends h{static{this.properties={mechanismId:{type:String,attribute:"mechanism-id"},kind:{type:String,reflect:!0},href:{type:String},label:{type:String},detail:{type:String}}}constructor(){super(),this.kind="link",this.href="",this.label="",this.detail=""}static{this.styles=[...h.styles,k,u`
|
|
2583
2678
|
:host { display: block; }
|
|
2584
2679
|
a { display: inline-flex; align-items: center; min-height: ${t.targetMin}; min-width: ${t.targetMin};
|
|
2585
2680
|
color: ${t.link}; text-decoration: underline; overflow-wrap: anywhere; max-width: 100%; }
|
|
@@ -2589,48 +2684,48 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2589
2684
|
/* An address is written one line at a time, and opening hours are often one
|
|
2590
2685
|
day to a line. Long unbroken values still wrap at 320px (1.4.10). */
|
|
2591
2686
|
.detail { white-space: pre-line; overflow-wrap: anywhere; }
|
|
2592
|
-
`]}render(){switch(this.kind){case"phone":case"email":case"address":case"hours":return this.renderContact();default:return this.renderLink()}}renderLink(){return
|
|
2593
|
-
><span class="detail" part="detail" id=${
|
|
2594
|
-
:host { --impakt-page-inner: ${
|
|
2687
|
+
`]}render(){switch(this.kind){case"phone":case"email":case"address":case"hours":return this.renderContact();default:return this.renderLink()}}renderLink(){return ci(this.label)?o`<a part="link" href=${this.href}>${this.label}</a>`:l}renderContact(){let e=ci(this.detail);if(!e)return l;let i=ci(this.label),r=zr(this.kind,e),s=this.id_("caption"),c=this.id_("detail"),p=i?o`<span class="caption" part="label" id=${s}>${i}</span>`:l,$=r?o`<a part="link" href=${r} aria-labelledby=${i?`${s} ${c}`:l}
|
|
2688
|
+
><span class="detail" part="detail" id=${c}>${e}</span></a>`:o`<span class="detail" part="detail">${e}</span>`;return o`<p class="contact" part="contact">${p}${$}</p>`}};function ci(n){return typeof n=="string"?n.trim():""}function zr(n,e){if(n==="phone"){let i=e.replace(/\(0\)/g,"").replace(/[^\d+]/g,"").replace(/(?!^)\+/g,"");return/\d/.test(i)?`tel:${i}`:""}return n==="email"&&/^[^\s@]+@[^\s@]+$/.test(e)?`mailto:${e}`:""}customElements.define("impakt-help",$t);var Vi=u`
|
|
2689
|
+
:host { --impakt-page-inner: ${d("layout.page-width","1200px")}; }
|
|
2595
2690
|
:host([width='narrow']) { --impakt-page-inner: 760px; }
|
|
2596
2691
|
:host([width='wide']) { --impakt-page-inner: 1440px; }
|
|
2597
2692
|
:host([width='content']) { --impakt-page-inner: 1080px; }
|
|
2598
|
-
|
|
2599
|
-
:host { --impakt-page-margin: ${
|
|
2600
|
-
@container impakt-page (min-width: 40rem) { .frame { --impakt-page-margin: ${
|
|
2601
|
-
@container impakt-page (min-width: 64rem) { .frame { --impakt-page-margin: ${
|
|
2602
|
-
`,
|
|
2693
|
+
`,Mr=u`
|
|
2694
|
+
:host { --impakt-page-margin: ${d("layout.margin.phone","16px")}; }
|
|
2695
|
+
@container impakt-page (min-width: 40rem) { .frame { --impakt-page-margin: ${d("layout.margin.tablet","32px")}; } }
|
|
2696
|
+
@container impakt-page (min-width: 64rem) { .frame { --impakt-page-margin: ${d("layout.margin.desktop","64px")}; } }
|
|
2697
|
+
`,xt=class extends h{constructor(){super();this.place=()=>{let i=this.querySelector('impakt-hero[treatment="cover"]'),r=getComputedStyle(this).getPropertyValue("--impakt-bleed").trim()==="0",s=!!i&&!r&&this.opensOn(i);if(this.toggleAttribute("floating",s),!s)return;let c=this.renderRoot.querySelector(".frame");c&&this.style.setProperty("--impakt-header-top",`${Math.round(i.getBoundingClientRect().top-c.getBoundingClientRect().top)}px`)};this.width="standard",this.stickyHeader=!1,this.skipText="Skip to content",this.noHeader=!1,this.noFooter=!1}static{this.properties={width:{type:String,reflect:!0},stickyHeader:{type:Boolean,reflect:!0,attribute:"sticky-header"},skipText:{type:String,attribute:"skip-text"},noHeader:{type:Boolean,reflect:!0,attribute:"no-header"},noFooter:{type:Boolean,reflect:!0,attribute:"no-footer"}}}static{this.styles=[...h.styles,k,Vi,Mr,u`
|
|
2603
2698
|
:host { display: block; container: impakt-page / inline-size; }
|
|
2604
2699
|
.frame { position: relative; display: flex; flex-direction: column; min-block-size: 100%; overflow-x: clip; }
|
|
2605
2700
|
.inner { box-sizing: border-box; inline-size: 100%; max-inline-size: calc(var(--impakt-page-inner) + 2 * var(--impakt-page-margin)); margin-inline: auto; padding-inline: var(--impakt-page-margin); }
|
|
2606
|
-
header { background: ${
|
|
2701
|
+
header { background: ${d("color.surface.header","transparent")}; color: ${d("color.text.on-header","inherit")}; padding-block: ${a(4)}; }
|
|
2607
2702
|
/* What sits in the header and footer takes their text colour, so words on a dark footer stay readable. */
|
|
2608
|
-
header { --impakt-color-text-default: ${
|
|
2609
|
-
footer { --impakt-color-text-default: ${
|
|
2703
|
+
header { --impakt-color-text-default: ${d("color.text.on-header","inherit")}; --impakt-color-text-heading: ${d("color.text.on-header","inherit")}; --impakt-color-text-link: ${d("color.text.on-header","inherit")}; --impakt-color-text-link-hover: ${d("color.text.on-header","inherit")}; }
|
|
2704
|
+
footer { --impakt-color-text-default: ${d("color.text.on-footer","inherit")}; --impakt-color-text-heading: ${d("color.text.on-footer","inherit")}; --impakt-color-text-muted: ${d("color.text.on-footer","inherit")}; --impakt-color-text-link: ${d("color.text.on-footer","inherit")}; --impakt-color-text-link-hover: ${d("color.text.on-footer","inherit")}; }
|
|
2610
2705
|
:host([sticky-header]) header { position: sticky; inset-block-start: 0; z-index: 10; }
|
|
2611
|
-
main { flex: 1; padding-block: ${
|
|
2706
|
+
main { flex: 1; padding-block: ${a(6)} ${a(10)}; }
|
|
2612
2707
|
main:focus { outline: none; }
|
|
2613
2708
|
/* A page that opens on a full-picture hero: the header floats over it as a rounded bar. */
|
|
2614
|
-
:host([floating]) header { position: absolute; z-index: 20; inset-inline: 0; inset-block-start: var(--impakt-header-top, 0px); padding-block: ${
|
|
2615
|
-
:host([floating]) header .inner { inline-size: calc(100% - 2 * var(--impakt-page-margin)); max-inline-size: var(--impakt-page-inner); padding: ${
|
|
2709
|
+
:host([floating]) header { position: absolute; z-index: 20; inset-inline: 0; inset-block-start: var(--impakt-header-top, 0px); padding-block: ${a(6)} 0; background: transparent; border: 0; }
|
|
2710
|
+
:host([floating]) header .inner { inline-size: calc(100% - 2 * var(--impakt-page-margin)); max-inline-size: var(--impakt-page-inner); padding: ${a(3)} ${a(4)} ${a(3)} ${a(6)}; background: ${d("color.surface.header","#fff")}; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowLg}; }
|
|
2616
2711
|
:host([floating]) main { padding-block-start: 0; }
|
|
2617
|
-
footer { background: ${
|
|
2618
|
-
.skip { position: absolute; inset-inline-start: ${
|
|
2712
|
+
footer { background: ${d("color.surface.footer","transparent")}; color: ${d("color.text.on-footer","inherit")}; padding-block: ${a(8)}; border-block-start: ${t.borderThin} solid ${d("color.border.subtle","transparent")}; }
|
|
2713
|
+
.skip { position: absolute; inset-inline-start: ${a(2)}; inset-block-start: ${a(2)}; z-index: 20; padding: ${a(2)} ${a(4)}; background: ${t.surfaceCard}; color: ${t.link}; border-radius: ${t.radius}; transform: translateY(-200%); }
|
|
2619
2714
|
.skip:not(:focus) { clip-path: inset(50%); }
|
|
2620
2715
|
.skip:focus { transform: none; }
|
|
2621
2716
|
.empty { display: none; }
|
|
2622
|
-
`]}hasSlot(i){return(i==="header"?this.noHeader:this.noFooter)?!1:
|
|
2717
|
+
`]}hasSlot(i){return(i==="header"?this.noHeader:this.noFooter)?!1:nt?!0:Array.from(this.children).some(r=>r.getAttribute("slot")===i)}skip(i){i.preventDefault();let r=this.renderRoot.querySelector("main");r?.focus(),r?.scrollIntoView()}render(){let i=this.hasSlot("header"),r=this.hasSlot("footer");return o`<div class="frame" part="frame">
|
|
2623
2718
|
<a class="skip" href="#content" part="skip" @click=${this.skip}>${this.skipText}</a>
|
|
2624
|
-
${i?
|
|
2719
|
+
${i?o`<header part="header"><div class="inner"><slot name="header"></slot></div></header>`:l}
|
|
2625
2720
|
<main id="content" tabindex="-1" part="main"><div class="inner"><slot></slot></div></main>
|
|
2626
|
-
${
|
|
2627
|
-
</div>`}opensOn(i){for(let
|
|
2721
|
+
${r?o`<footer part="footer"><div class="inner"><slot name="footer"></slot></div></footer>`:l}
|
|
2722
|
+
</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()}},yt=class extends h{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=[...h.styles,N,Vi,u`
|
|
2628
2723
|
:host { display: block; --impakt-page-margin: inherit; }
|
|
2629
2724
|
/* What a solid card on a brand band goes back to, since the band repaints these for its own text. */
|
|
2630
2725
|
: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}; }
|
|
2631
2726
|
.band { box-sizing: border-box; border-radius: ${t.radiusLg}; }
|
|
2632
2727
|
/* --impakt-bleed is 0 while editing, so a full-width block stays inside the box it is being edited in. */
|
|
2633
|
-
:host([bleed]) .band { border-radius: 0; margin-inline: calc(var(--impakt-bleed, 1) * (50% - 50vw)); padding-inline: max(${
|
|
2728
|
+
:host([bleed]) .band { border-radius: 0; margin-inline: calc(var(--impakt-bleed, 1) * (50% - 50vw)); padding-inline: max(${d("section.gutter","16px")}, calc(var(--impakt-bleed, 1) * (50vw - 50%))); }
|
|
2634
2729
|
:host([tone='subtle']) .band { background: ${t.surfaceSubtle}; }
|
|
2635
2730
|
:host([tone='inset']) .band { background: ${t.surfaceInset}; }
|
|
2636
2731
|
:host([tone='card']) .band { background: ${t.surfaceCard}; }
|
|
@@ -2647,7 +2742,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2647
2742
|
: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}; }
|
|
2648
2743
|
/* Ink and accent bands take their colours from the host, because the band repaints the text colour for what is inside it. */
|
|
2649
2744
|
: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}; }
|
|
2650
|
-
:host([tone='accent']) { --impakt-band: ${
|
|
2745
|
+
:host([tone='accent']) { --impakt-band: ${d("color.accent.default","#ffd43b")}; --impakt-band-on: ${d("color.accent.on","#1a1a1a")}; --impakt-band-muted: ${d("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}; }
|
|
2651
2746
|
: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); }
|
|
2652
2747
|
/* On ink the cards are the raised ink with a darker rule (G2 ink-raised and line-inverse), not a wash. */
|
|
2653
2748
|
:host([tone='ink']) .band {
|
|
@@ -2669,46 +2764,46 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2669
2764
|
:host([pattern='columns']) .band { background-image: linear-gradient(to right, var(--impakt-pattern-line) 1px, transparent 1px); background-size: 5.625rem 100%; }
|
|
2670
2765
|
:host([pattern='ruled']) .band { background-image: linear-gradient(to bottom, var(--impakt-pattern-line) 1px, transparent 1px); background-size: 100% 2.5rem; }
|
|
2671
2766
|
@media (forced-colors: active) { .band { background-image: none !important; } }
|
|
2672
|
-
:host(:not([bleed]):not([tone='none'])) .band { padding-inline: ${
|
|
2673
|
-
:host([padding='sm']) .band { padding-block: ${
|
|
2674
|
-
:host([padding='md']) .band { padding-block: ${
|
|
2675
|
-
:host([padding='lg']) .band { padding-block: ${
|
|
2676
|
-
:host([padding='xl']) .band { padding-block: ${
|
|
2677
|
-
:host([padding='2xl']) .band { padding-block:
|
|
2678
|
-
:host([padding='3xl']) .band { padding-block: clamp(${
|
|
2767
|
+
:host(:not([bleed]):not([tone='none'])) .band { padding-inline: ${a(6)}; }
|
|
2768
|
+
:host([padding='sm']) .band { padding-block: ${a(4)}; }
|
|
2769
|
+
:host([padding='md']) .band { padding-block: ${a(8)}; }
|
|
2770
|
+
:host([padding='lg']) .band { padding-block: ${a(12)}; }
|
|
2771
|
+
:host([padding='xl']) .band { padding-block: ${a(16)}; }
|
|
2772
|
+
:host([padding='2xl']) .band { padding-block: ${d("section.padding-2xl","clamp(56px, 8vw, 112px)")}; }
|
|
2773
|
+
:host([padding='3xl']) .band { padding-block: clamp(${a(16)}, 10vw, ${a(30)}); }
|
|
2679
2774
|
.content { max-inline-size: var(--impakt-page-inner); margin-inline: auto; }
|
|
2680
|
-
`]}render(){return
|
|
2775
|
+
`]}render(){return o`<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",xt);customElements.define("impakt-section",yt);function Ki(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 kt=class extends h{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",this.fold="measure",this.actionText="",this.actionHref="",this.look="links",this.current=""}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},fold:{type:String,reflect:!0},actionText:{type:String,attribute:"action-text"},actionHref:{type:String,attribute:"action-href"},look:{type:String,reflect:!0},current:{type:String}}}get open(){return this.menuOpen}set open(i){this.menuOpen=i,this.requestUpdate()}static{this.styles=[...h.styles,k,u`
|
|
2681
2776
|
/* It grows to fill a row it sits in, because it measures itself to decide when to fold. */
|
|
2682
2777
|
:host { display: block; flex: 1 1 8rem; min-inline-size: 0; }
|
|
2683
2778
|
nav { display: flex; flex-direction: column; position: relative; }
|
|
2684
2779
|
li { flex: none; }
|
|
2685
|
-
ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${
|
|
2780
|
+
ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${a(1)} ${a(6)}; align-items: center; justify-content: flex-end; }
|
|
2686
2781
|
:host([align='start']) ul { justify-content: flex-start; }
|
|
2687
2782
|
:host([align='center']) ul { justify-content: center; }
|
|
2688
|
-
a { ${z} display: inline-flex; align-items: center; padding: ${
|
|
2783
|
+
a { ${z} display: inline-flex; align-items: center; padding: ${a(2)} ${a(1)}; color: inherit; font-weight: ${m("semibold")}; text-decoration: none; border-radius: ${t.radiusSm}; }
|
|
2689
2784
|
a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
|
|
2690
2785
|
a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
|
|
2691
|
-
.toggle { display: none; ${z} align-items: center; gap: ${
|
|
2786
|
+
.toggle { display: none; ${z} align-items: center; gap: ${a(2)}; align-self: flex-end; padding: ${a(2)} ${a(3)}; font: inherit; font-weight: ${m("semibold")}; color: inherit; background: transparent; border: ${t.borderThin} solid currentColor; border-radius: ${t.radius}; cursor: pointer; }
|
|
2692
2787
|
/* When they do not fit, the links fold behind a Menu button and open as a panel under it. */
|
|
2693
2788
|
:host([folded]) { flex: 0 0 auto; }
|
|
2694
2789
|
:host([folded]) .toggle { display: inline-flex; }
|
|
2695
2790
|
:host([menu-look='icon']) .toggle { inline-size: 44px; block-size: 44px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: ${t.brand}; color: ${t.onBrand}; }
|
|
2696
2791
|
:host([menu-look='icon']) .toggle .words { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
2697
|
-
:host([size='sm']) ul { column-gap: ${
|
|
2792
|
+
:host([size='sm']) ul { column-gap: ${a(6)}; }
|
|
2698
2793
|
:host([size='sm']) a { padding-inline: 0; font-size: ${b("sm")}; font-weight: ${m("medium")}; }
|
|
2699
|
-
:host([size='sm'][folded]) a { padding-inline: ${
|
|
2700
|
-
:host([folded]) ul { display: none; position: absolute; inset-block-start: calc(100% + ${
|
|
2794
|
+
:host([size='sm'][folded]) a { padding-inline: ${a(3)}; }
|
|
2795
|
+
:host([folded]) ul { display: none; position: absolute; inset-block-start: calc(100% + ${a(2)}); inset-inline-end: 0; z-index: 30; flex-direction: column; align-items: stretch; gap: 0; min-inline-size: 14rem; padding: ${a(2)}; background: ${t.surfaceCard}; color: ${t.text}; border: ${t.borderThin} solid ${t.border}; border-radius: ${t.radiusLg}; box-shadow: 0 8px 24px rgb(0 0 0 / 14%); }
|
|
2701
2796
|
:host([folded]) ul.open { display: flex; }
|
|
2702
2797
|
:host([folded]) li { text-align: start; }
|
|
2703
|
-
:host([folded]) a { display: flex; padding: ${
|
|
2798
|
+
:host([folded]) a { display: flex; padding: ${a(3)} ${a(3)}; }
|
|
2704
2799
|
/* Tabs: a bordered group on the soft surface; the current tab is white with a dot before it. */
|
|
2705
2800
|
:host([look='tabs']) ul { gap: 0; padding: 3px; background: ${t.surfaceSubtle}; border: ${t.borderThin} solid var(--impakt-color-line-soft, #dcdcd8); }
|
|
2706
|
-
:host([look='tabs']) a { min-block-size: 42px; gap: ${
|
|
2801
|
+
:host([look='tabs']) a { min-block-size: 42px; gap: ${a(2)}; padding: 0 ${a(4)}; font-size: ${b("sm")}; font-weight: ${m("regular")}; border-radius: 0; }
|
|
2707
2802
|
:host([look='tabs']) a:hover { text-decoration: none; background: ${t.wash}; }
|
|
2708
2803
|
:host([look='tabs']) a[aria-current] { text-decoration: none; background: ${t.surfaceCard}; box-shadow: inset 0 0 0 1px var(--impakt-color-line-soft, #dcdcd8); }
|
|
2709
2804
|
:host([look='tabs']) a[aria-current]::before { content: ''; flex: none; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; }
|
|
2710
2805
|
@media (forced-colors: active) { :host([look='tabs']) a[aria-current] { outline: 1px solid CanvasText; } }
|
|
2711
|
-
:host([look='tabs'][folded]) ul { padding: ${
|
|
2806
|
+
:host([look='tabs'][folded]) ul { padding: ${a(2)}; }
|
|
2712
2807
|
/* With no script the element is never defined, so it cannot measure itself and fold. The links
|
|
2713
2808
|
wrap onto more lines instead, so they are never cut off or drawn over what is beside them. */
|
|
2714
2809
|
:host(:not(:defined)) ul { flex-wrap: wrap; row-gap: 0; }
|
|
@@ -2724,33 +2819,43 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2724
2819
|
:host([fold='narrow']) { flex: 0 0 auto; }
|
|
2725
2820
|
:host([fold='narrow']) .toggle { display: inline-flex; }
|
|
2726
2821
|
:host([fold='narrow']) .panel { display: none; }
|
|
2727
|
-
:host([fold='narrow']) .panel:popover-open { display: flex; flex-direction: column; gap: ${
|
|
2728
|
-
:host([fold='narrow']) .close { display: inline-flex; ${z} align-items: center; gap: ${
|
|
2822
|
+
:host([fold='narrow']) .panel:popover-open { display: flex; flex-direction: column; gap: ${a(6)}; position: fixed; inset: 0; box-sizing: border-box; inline-size: 100%; block-size: 100%; max-inline-size: none; max-block-size: none; margin: 0; padding: ${a(3)} ${a(4)} calc(${a(6)} + env(safe-area-inset-bottom)); border: 0; overflow: auto; overscroll-behavior: contain; background: ${t.text}; color: ${t.surfaceCard}; }
|
|
2823
|
+
:host([fold='narrow']) .close { display: inline-flex; ${z} align-items: center; gap: ${a(2)}; align-self: flex-end; padding: ${a(2)} ${a(3)}; font: inherit; font-weight: ${m("semibold")}; color: inherit; background: transparent; border: ${t.borderThin} solid currentColor; border-radius: ${t.radius}; cursor: pointer; }
|
|
2729
2824
|
:host([fold='narrow']) ul { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
|
|
2730
2825
|
:host([fold='narrow']) li { border-block-end: ${t.borderThin} solid color-mix(in srgb, currentColor 22%, transparent); }
|
|
2731
|
-
:host([fold='narrow']) li a { display: flex; padding: ${
|
|
2732
|
-
:host([fold='narrow']) .action { display: flex; ${z} align-items: center; justify-content: center; margin-block-start: auto; padding: ${
|
|
2826
|
+
:host([fold='narrow']) li a { display: flex; padding: ${a(4)} 0; font-family: ${t.fontHeading}; font-size: ${b("2xl")}; font-weight: ${m("semibold")}; letter-spacing: -0.02em; }
|
|
2827
|
+
:host([fold='narrow']) .action { display: flex; ${z} align-items: center; justify-content: center; margin-block-start: auto; padding: ${a(3)} ${a(4)}; background: ${t.surfaceCard}; color: ${t.text}; font-weight: ${m("semibold")}; text-decoration: none; border-radius: ${t.radius}; }
|
|
2733
2828
|
:host([fold='narrow']) .action:hover { text-decoration: underline; }
|
|
2829
|
+
/*
|
|
2830
|
+
* The tabs look, folded: the whole-screen menu is ink, so the tab track's paper and the current tab's white box
|
|
2831
|
+
* are left off, and the tabs are drawn as the menu's large links. The current page keeps its dot and is
|
|
2832
|
+
* underlined, so it is marked by more than colour (1.4.1).
|
|
2833
|
+
*/
|
|
2834
|
+
:host([fold='narrow'][look='tabs']) ul { padding: 0; background: transparent; border: 0; }
|
|
2835
|
+
:host([fold='narrow'][look='tabs']) li a { min-block-size: 0; gap: ${a(3)}; align-items: center; padding: ${a(4)} 0; color: inherit; background: transparent; box-shadow: none; }
|
|
2836
|
+
:host([fold='narrow'][look='tabs']) li a:hover { background: transparent; text-decoration: underline; text-underline-offset: 0.25em; }
|
|
2837
|
+
:host([fold='narrow'][look='tabs']) li a[aria-current] { background: transparent; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
|
|
2838
|
+
:host([fold='narrow'][look='tabs']) li a[aria-current]::before { inline-size: 8px; block-size: 8px; }
|
|
2734
2839
|
}
|
|
2735
|
-
`]}fit(){if(this.fold==="narrow"){this.removeAttribute("folded");return}if(!this.hasUpdated)return;let i=this.getBoundingClientRect().width;if(i<=0)return;if(!this.needs){this.removeAttribute("folded");let
|
|
2840
|
+
`]}fit(){if(this.fold==="narrow"){this.removeAttribute("folded");return}if(!this.hasUpdated)return;let i=this.getBoundingClientRect().width;if(i<=0)return;if(!this.needs){this.removeAttribute("folded");let s=Array.from(this.renderRoot.querySelectorAll("li")),c=Number.parseFloat(getComputedStyle(this.renderRoot.querySelector("ul")).columnGap)||0;this.needs=s.reduce((p,$)=>p+$.getBoundingClientRect().width,0)+c*Math.max(0,s.length-1)}let r=this.needs>i;this.toggleAttribute("folded",r),!r&&this.menuOpen&&(this.open=!1)}updated(i){(i.has("links")||i.has("fold"))&&(this.needs=0,this.fit())}connectedCallback(){super.connectedCallback(),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(()=>this.fit()),this.resize.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resize?.disconnect()}toggle(){this.open=!this.open}onKey(i){i.key!=="Escape"||!this.open||(this.open=!1,this.renderRoot.querySelector(".toggle")?.focus())}renderNarrow(){let i=this.id_("panel");return o`<nav aria-label=${this.label||l} part="nav">
|
|
2736
2841
|
<button class="toggle" type="button" popovertarget=${i}>${M(this.menuLook==="icon"?"menu-two":"menu")}<span class="words">${this.menuText}</span></button>
|
|
2737
2842
|
<div id=${i} class="panel" popover="auto" part="panel">
|
|
2738
|
-
<button class="close" type="button" popovertarget=${i} popovertargetaction="hide">${M("close")}<span>${
|
|
2843
|
+
<button class="close" type="button" popovertarget=${i} popovertargetaction="hide">${M("close")}<span>${S("Close")}</span></button>
|
|
2739
2844
|
<ul part="list">
|
|
2740
|
-
${(this.links??[]).map(
|
|
2845
|
+
${(this.links??[]).map(r=>{let s=this.current?r.href===this.current?"page":null:Ki(r.href);return o`<li><a href=${r.href} aria-current=${s==="page"?"page":s==="section"?"true":l} part="link">${r.label}</a></li>`})}
|
|
2741
2846
|
</ul>
|
|
2742
|
-
${this.actionText?
|
|
2847
|
+
${this.actionText?o`<a class="action" href=${this.actionHref||"#"} part="action">${this.actionText}</a>`:l}
|
|
2743
2848
|
</div>
|
|
2744
|
-
</nav>`}render(){if(this.fold==="narrow")return this.renderNarrow();let i=this.id_("links");return
|
|
2849
|
+
</nav>`}render(){if(this.fold==="narrow")return this.renderNarrow();let i=this.id_("links");return o`<nav aria-label=${this.label||l} part="nav" @keydown=${this.onKey}>
|
|
2745
2850
|
<button class="toggle" type="button" aria-expanded=${this.open?"true":"false"} aria-controls=${i} @click=${this.toggle}>${M(this.open?"close":this.menuLook==="icon"?"menu-two":"menu")}<span class="words">${this.menuText}</span></button>
|
|
2746
2851
|
<ul id=${i} class=${this.open?"open":""} part="list">
|
|
2747
|
-
${(this.links??[]).map(
|
|
2852
|
+
${(this.links??[]).map(r=>{let s=this.current?r.href===this.current?"page":null:Ki(r.href);return o`<li><a href=${r.href} aria-current=${s==="page"?"page":s==="section"?"true":l} part="link">${r.label}</a></li>`})}
|
|
2748
2853
|
</ul>
|
|
2749
|
-
</nav>`}},
|
|
2854
|
+
</nav>`}},vt=class extends h{static{this.properties={items:{type:Array},label:{type:String},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.label="Breadcrumb",this.look="default"}static{this.styles=[...h.styles,k,u`
|
|
2750
2855
|
:host { display: block; font-size: ${b("sm")}; }
|
|
2751
|
-
ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: ${
|
|
2752
|
-
li { display: inline-flex; align-items: center; gap: ${
|
|
2753
|
-
li + li::before { content: ''; inline-size: 0.45em; block-size: 0.45em; border-block-start: 1.5px solid ${t.textMuted}; border-inline-end: 1.5px solid ${t.textMuted}; transform: rotate(45deg); margin-inline: ${
|
|
2856
|
+
ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: ${a(1)}; }
|
|
2857
|
+
li { display: inline-flex; align-items: center; gap: ${a(1)}; }
|
|
2858
|
+
li + li::before { content: ''; inline-size: 0.45em; block-size: 0.45em; border-block-start: 1.5px solid ${t.textMuted}; border-inline-end: 1.5px solid ${t.textMuted}; transform: rotate(45deg); margin-inline: ${a(1)} ${a(2)}; }
|
|
2754
2859
|
a { color: ${t.link}; text-decoration: underline; text-underline-offset: 0.2em; border-radius: ${t.radiusSm}; }
|
|
2755
2860
|
a:hover { color: ${t.linkHover}; }
|
|
2756
2861
|
[aria-current] { color: ${t.textMuted}; }
|
|
@@ -2759,79 +2864,79 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2759
2864
|
:host([look='mono']) a { color: ${t.textMuted}; text-decoration: none; }
|
|
2760
2865
|
:host([look='mono']) a:hover { color: ${t.text}; text-decoration: underline; text-decoration-thickness: 1px; }
|
|
2761
2866
|
:host([look='mono']) [aria-current] { color: ${t.text}; }
|
|
2762
|
-
:host([look='mono']) li + li::before { content: '/'; inline-size: auto; block-size: auto; border: 0; transform: none; margin-inline: ${
|
|
2763
|
-
.sr-only { ${
|
|
2764
|
-
`]}render(){let e=this.items??[];return
|
|
2765
|
-
${e.map((i,
|
|
2766
|
-
</ol></nav>`}};customElements.define("impakt-nav",
|
|
2867
|
+
:host([look='mono']) li + li::before { content: '/'; inline-size: auto; block-size: auto; border: 0; transform: none; margin-inline: ${a(1)}; color: ${t.textMuted}; }
|
|
2868
|
+
.sr-only { ${T} }
|
|
2869
|
+
`]}render(){let e=this.items??[];return o`<nav aria-label=${this.label} part="nav"><ol>
|
|
2870
|
+
${e.map((i,r)=>o`<li>${r===e.length-1?o`<span aria-current="page">${i.label}</span>`:o`<a href=${i.href} part="link">${i.label}</a>`}</li>`)}
|
|
2871
|
+
</ol></nav>`}};customElements.define("impakt-nav",kt);customElements.define("impakt-breadcrumbs",vt);var wt=class extends h{static{this.properties={spacing:{type:String,reflect:!0},tone:{type:String,reflect:!0}}}constructor(){super(),this.spacing="md",this.tone="subtle"}static{this.styles=[...h.styles,u`
|
|
2767
2872
|
:host { display: block; }
|
|
2768
|
-
hr { margin: ${
|
|
2873
|
+
hr { margin: ${a(4)} 0; border: 0; border-block-start: ${t.borderThin} solid ${t.border}; opacity: 0.5; }
|
|
2769
2874
|
:host([tone='strong']) hr { opacity: 1; border-block-start-width: ${t.borderThick}; }
|
|
2770
|
-
:host([spacing='sm']) hr { margin-block: ${
|
|
2771
|
-
:host([spacing='lg']) hr { margin-block: ${
|
|
2772
|
-
:host([spacing='xl']) hr { margin-block: ${
|
|
2773
|
-
`]}render(){return
|
|
2774
|
-
:host { display: block; block-size: ${
|
|
2775
|
-
:host([size='sm']) { block-size: ${
|
|
2776
|
-
:host([size='lg']) { block-size: ${
|
|
2777
|
-
:host([size='xl']) { block-size: ${
|
|
2778
|
-
:host([size='2xl']) { block-size: ${
|
|
2779
|
-
`]}render(){return
|
|
2875
|
+
:host([spacing='sm']) hr { margin-block: ${a(2)}; }
|
|
2876
|
+
:host([spacing='lg']) hr { margin-block: ${a(8)}; }
|
|
2877
|
+
:host([spacing='xl']) hr { margin-block: ${a(12)}; }
|
|
2878
|
+
`]}render(){return o`<hr aria-hidden="true" part="line" />`}},St=class extends h{static{this.properties={size:{type:String,reflect:!0}}}constructor(){super(),this.size="md"}static{this.styles=[...h.styles,u`
|
|
2879
|
+
:host { display: block; block-size: ${a(4)}; }
|
|
2880
|
+
:host([size='sm']) { block-size: ${a(2)}; }
|
|
2881
|
+
:host([size='lg']) { block-size: ${a(8)}; }
|
|
2882
|
+
:host([size='xl']) { block-size: ${a(12)}; }
|
|
2883
|
+
:host([size='2xl']) { block-size: ${a(16)}; }
|
|
2884
|
+
`]}render(){return o``}},Tt=class extends h{static{this.styles=[...h.styles,u`:host { ${T} }`]}render(){return o`<slot></slot>`}},zt=class extends h{static{this.properties={items:{type:Array},selected:{type:String,reflect:!0},label:{type:String},twoRows:{type:Boolean,reflect:!0,attribute:"two-rows"},look:{type:String,reflect:!0}}}constructor(){super(),this.items=[],this.selected="",this.label="",this.twoRows=!1,this.look="line"}static{this.styles=[...h.styles,k,C("[role='tab']"),u`
|
|
2780
2885
|
/* Only the two-row layout needs a size container. Making every tab set one
|
|
2781
2886
|
would take its width from its parent alone, so in a flex row, with no
|
|
2782
2887
|
width given, it would shrink to nothing. In a row it may still shrink
|
|
2783
2888
|
below its tabs, which then scroll, rather than widen the page. */
|
|
2784
2889
|
:host { display: block; min-inline-size: 0; }
|
|
2785
2890
|
:host([two-rows]) { container-type: inline-size; }
|
|
2786
|
-
[role='tablist'] { display: flex; gap: ${
|
|
2787
|
-
[role='tab'] { ${z} position: relative; flex: none; padding: ${
|
|
2891
|
+
[role='tablist'] { display: flex; gap: ${a(1)}; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border-block-end: ${t.borderThin} solid ${t.border}; }
|
|
2892
|
+
[role='tab'] { ${z} position: relative; flex: none; padding: ${a(3)} ${a(4)}; font: inherit; font-weight: ${m("semibold")}; white-space: nowrap; color: ${t.textMuted}; background: transparent; border: 0; border-block-end: 3px solid transparent; margin-block-end: -1px; cursor: pointer; border-radius: ${t.radius} ${t.radius} 0 0; }
|
|
2788
2893
|
/* Inside a box that scrolls the ring would be clipped, so it is drawn inside the tab. */
|
|
2789
2894
|
[role='tab']:focus-visible { box-shadow: inset 0 0 0 2px ${t.text}, inset 0 0 0 4px ${t.surfaceCard}; }
|
|
2790
2895
|
[role='tab']:hover { color: ${t.text}; background: ${t.surfaceInset}; }
|
|
2791
2896
|
[role='tab'][aria-selected='true'] { color: ${t.link}; border-block-end-color: currentColor; }
|
|
2792
|
-
[role='tabpanel'] { padding-block: ${
|
|
2897
|
+
[role='tabpanel'] { padding-block: ${a(5)}; line-height: ${P("normal")}; }
|
|
2793
2898
|
.body { white-space: pre-line; }
|
|
2794
2899
|
@container (max-width: 40rem) {
|
|
2795
|
-
:host([two-rows]) [role='tablist'].many { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); overflow: visible; border-block-end: 0; gap: ${
|
|
2796
|
-
:host([two-rows]) .many [role='tab'] { white-space: normal; padding-inline: ${
|
|
2900
|
+
:host([two-rows]) [role='tablist'].many { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); overflow: visible; border-block-end: 0; gap: ${a(1)}; }
|
|
2901
|
+
:host([two-rows]) .many [role='tab'] { white-space: normal; padding-inline: ${a(2)}; margin: 0; border-block-end-width: 3px; border-block-end-color: ${t.rule}; border-radius: ${t.radius}; }
|
|
2797
2902
|
:host([two-rows]) .many [role='tab'][aria-selected='true'] { border-block-end-color: currentColor; background: ${t.brandSubtle}; }
|
|
2798
2903
|
}
|
|
2799
2904
|
@media (forced-colors: active) { [role='tab'][aria-selected='true'] { border-block-end-color: Highlight; } }
|
|
2800
|
-
.count { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 20px; block-size: 20px; margin-inline-start: ${
|
|
2801
|
-
.sr-only { ${
|
|
2905
|
+
.count { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 20px; block-size: 20px; margin-inline-start: ${a(2)}; padding: 0 ${a(1.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-size: 12px; font-weight: ${m("semibold")}; background: ${t.brand}; color: ${t.onBrand}; font-variant-numeric: tabular-nums; }
|
|
2906
|
+
.sr-only { ${T} }
|
|
2802
2907
|
/* Links drawn as tabs. */
|
|
2803
|
-
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${
|
|
2804
|
-
nav a { ${z} position: relative; display: inline-flex; align-items: center; flex: none; padding: ${
|
|
2908
|
+
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: ${a(1)}; overflow-x: auto; scrollbar-width: thin; border-block-end: ${t.borderThin} solid ${t.border}; }
|
|
2909
|
+
nav a { ${z} position: relative; display: inline-flex; align-items: center; flex: none; padding: ${a(3)} ${a(4)}; font-weight: ${m("semibold")}; white-space: nowrap; color: ${t.textMuted}; text-decoration: none; border-block-end: 3px solid transparent; margin-block-end: -1px; border-radius: ${t.radius} ${t.radius} 0 0; }
|
|
2805
2910
|
nav a:hover { color: ${t.text}; background: ${t.surfaceInset}; }
|
|
2806
2911
|
nav a[aria-current='page'] { color: ${t.link}; border-block-end-color: currentColor; }
|
|
2807
2912
|
nav a:focus-visible { box-shadow: inset 0 0 0 2px ${t.text}, inset 0 0 0 4px ${t.surfaceCard}; outline: none; }
|
|
2808
2913
|
/* The pill look, for either kind. Its corners come from the brand's radius, so it is square under Noire. */
|
|
2809
|
-
:host([look='pill']) :is([role='tablist'], nav ul) { padding: ${
|
|
2810
|
-
:host([look='pill']) :is([role='tab'], nav a) { padding: ${
|
|
2914
|
+
:host([look='pill']) :is([role='tablist'], nav ul) { padding: ${a(1)}; border: 0; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); background: ${t.surfaceCard}; gap: ${a(.5)}; }
|
|
2915
|
+
:host([look='pill']) :is([role='tab'], nav a) { padding: ${a(2)} ${a(4)}; margin: 0; border: 0; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); font-weight: ${m("medium")}; color: ${t.text}; }
|
|
2811
2916
|
:host([look='pill']) :is([role='tab'], nav a):hover { background: ${t.surfaceInset}; }
|
|
2812
2917
|
:host([look='pill']) :is([role='tab'][aria-selected='true'], nav a[aria-current='page']) { background: ${t.text}; color: var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})); }
|
|
2813
2918
|
@media (forced-colors: active) { :host([look='pill']) :is([role='tab'][aria-selected='true'], nav a[aria-current='page']) { border: 2px solid Highlight; } }
|
|
2814
|
-
`]}countOf(e){return typeof e.count!="number"?l:e.countLabel?
|
|
2815
|
-
${e.map(o
|
|
2816
|
-
</ul></nav>`;let
|
|
2817
|
-
${e.map(o
|
|
2919
|
+
`]}countOf(e){return typeof e.count!="number"?l:e.countLabel?o`<span class="count" aria-hidden="true">${e.count}</span><span class="sr-only">, ${e.countLabel}</span>`:o`<span class="count">${e.count}</span>`}get linked(){let e=this.items??[];return e.length>0&&e.every(i=>!!i.href)}current(){let e=this.items??[];return e.some(i=>i.id===this.selected)?this.selected:e[0]?.id??""}choose(e,i){e!==this.current()&&(this.selected=e,this.dispatchEvent(new CustomEvent("impakt-change",{detail:{value:e},bubbles:!0,composed:!0})),i&&this.updateComplete.then(()=>this.renderRoot.querySelector(`#${this.id_(`tab-${e}`)}`)?.focus({preventScroll:!0})))}onKey(e){let i=this.items??[],r=i.findIndex(c=>c.id===this.current()),s={ArrowRight:r+1,ArrowLeft:r-1,Home:0,End:i.length-1}[e.key];s===void 0||!i.length||(e.preventDefault(),this.choose(i[(s+i.length)%i.length].id,!0))}reveal(){let e=this.renderRoot.querySelector("[role='tablist']"),i=this.renderRoot.querySelector("[role='tab'][aria-selected='true']");if(!e||!i||e.scrollWidth<=e.clientWidth)return;let r=i.offsetLeft-e.offsetLeft,s=r+i.offsetWidth;r<e.scrollLeft?e.scrollLeft=r-16:s>e.scrollLeft+e.clientWidth&&(e.scrollLeft=s-e.clientWidth+16)}updated(e){(e.has("selected")||e.has("items"))&&this.reveal()}render(){let e=this.items??[],i=this.current();if(this.linked)return o`<nav aria-label=${this.label||l} part="tabs"><ul>
|
|
2920
|
+
${e.map(s=>o`<li><a href=${s.href} part="tab" aria-current=${s.id===i?"page":l} @click=${c=>me(this,c,{href:s.href,id:s.id})}>${s.label}${this.countOf(s)}</a></li>`)}
|
|
2921
|
+
</ul></nav>`;let r=e.length>4;return o`<div role="tablist" aria-label=${this.label||l} part="tabs" class=${r?"many":""} style=${r?`--columns:${Math.ceil(e.length/2)}`:l} @keydown=${this.onKey}>
|
|
2922
|
+
${e.map(s=>o`<button role="tab" type="button" id=${this.id_(`tab-${s.id}`)} aria-selected=${s.id===i?"true":"false"} aria-controls=${this.id_(`panel-${s.id}`)} tabindex=${s.id===i?"0":"-1"} @click=${()=>this.choose(s.id,!1)}>${s.label}${this.countOf(s)}</button>`)}
|
|
2818
2923
|
</div>
|
|
2819
|
-
${e.map(o
|
|
2820
|
-
:host { display: block; margin-block-end: ${
|
|
2924
|
+
${e.map(s=>o`<div role="tabpanel" id=${this.id_(`panel-${s.id}`)} aria-labelledby=${this.id_(`tab-${s.id}`)} tabindex="0" ?hidden=${s.id!==i} part="panel"><slot name=${s.id}><span class="body">${s.body??""}</span></slot></div>`)}`}};customElements.define("impakt-divider",wt);customElements.define("impakt-spacer",St);customElements.define("impakt-visually-hidden",Tt);customElements.define("impakt-tabs",zt);var Mt=class extends h{static{this.properties={legend:{type:String},description:{type:String},error:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.legend="",this.description="",this.error="",this.size="md"}static{this.styles=[...h.styles,u`
|
|
2925
|
+
:host { display: block; margin-block-end: ${a(6)}; }
|
|
2821
2926
|
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
|
|
2822
|
-
legend { padding: 0; margin-block-end: ${
|
|
2927
|
+
legend { padding: 0; margin-block-end: ${a(2)}; font-size: ${b("md")}; font-weight: ${m("bold")}; line-height: ${P("tight")}; color: ${t.text}; }
|
|
2823
2928
|
:host([size='lg']) legend { font-size: ${b("xl")}; font-family: ${t.fontHeading}; color: ${t.textHeading}; }
|
|
2824
2929
|
:host([size='xl']) legend { font-size: ${b("2xl")}; font-family: ${t.fontHeading}; color: ${t.textHeading}; }
|
|
2825
|
-
.description { margin-block-end: ${
|
|
2826
|
-
.error { margin-block-end: ${
|
|
2930
|
+
.description { margin-block-end: ${a(3)}; font-size: ${b("sm")}; color: ${t.textMuted}; line-height: ${P("normal")}; }
|
|
2931
|
+
.error { margin-block-end: ${a(3)}; font-size: ${b("sm")}; color: ${t.dangerText}; font-weight: ${m("semibold")}; }
|
|
2827
2932
|
.error:empty { display: none; }
|
|
2828
|
-
:host([error]:not([error=''])) .fields { padding-inline-start: ${
|
|
2829
|
-
`]}render(){let e=[this.description?this.id_("description"):"",this.error?this.id_("error"):""].filter(Boolean).join(" ");return
|
|
2933
|
+
:host([error]:not([error=''])) .fields { padding-inline-start: ${a(4)}; border-inline-start: 4px solid ${t.danger}; }
|
|
2934
|
+
`]}render(){let e=[this.description?this.id_("description"):"",this.error?this.id_("error"):""].filter(Boolean).join(" ");return o`<fieldset part="fieldset" aria-describedby=${e||l}>
|
|
2830
2935
|
<legend part="legend">${this.legend}</legend>
|
|
2831
|
-
${this.description?
|
|
2936
|
+
${this.description?o`<div class="description" id=${this.id_("description")}>${this.description}</div>`:l}
|
|
2832
2937
|
<div class="error" id=${this.id_("error")} aria-live="polite">${this.error||l}</div>
|
|
2833
2938
|
<div class="fields" part="fields"><slot></slot></div>
|
|
2834
|
-
</fieldset>`}};customElements.define("impakt-fieldset",
|
|
2939
|
+
</fieldset>`}};customElements.define("impakt-fieldset",Mt);var Et=class extends h{constructor(){super();this.hasFooter=!1;this.open=!1,this.heading="",this.side="right",this.closeLabel="Close"}static{this.properties={open:{type:Boolean,reflect:!0},heading:{type:String},side:{type:String,reflect:!0},closeLabel:{type:String,attribute:"close-label"}}}static{this.styles=[...h.styles,k,C(".close"),u`
|
|
2835
2940
|
dialog { box-sizing: border-box; display: none; flex-direction: column; inline-size: min(28rem, 100vw); max-inline-size: 100vw; block-size: 100dvh; max-block-size: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; color: ${t.text}; background: ${t.surfaceCard}; box-shadow: ${t.shadowXl}; animation: from-right 240ms cubic-bezier(0.16, 1, 0.3, 1); }
|
|
2836
2941
|
dialog[open] { display: flex; }
|
|
2837
2942
|
:host([side='left']) dialog { margin: 0 auto 0 0; animation-name: from-left; }
|
|
@@ -2843,66 +2948,66 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2843
2948
|
dialog::backdrop { background: color-mix(in srgb, ${t.text} 30%, transparent); backdrop-filter: blur(2px); }
|
|
2844
2949
|
@keyframes from-right { from { transform: translateX(100%); } }
|
|
2845
2950
|
@keyframes from-left { from { transform: translateX(-100%); } }
|
|
2846
|
-
.head { display: flex; align-items: center; justify-content: space-between; gap: ${
|
|
2951
|
+
.head { display: flex; align-items: center; justify-content: space-between; gap: ${a(3)}; padding: ${a(4)} ${a(5)}; box-shadow: 0 1px 0 color-mix(in srgb, ${t.text} 8%, transparent); }
|
|
2847
2952
|
h2 { margin: 0; font-family: ${t.fontHeading}; ${w("xl")} font-weight: ${m("bold")}; color: ${t.textHeading}; }
|
|
2848
2953
|
.close { ${z} display: inline-flex; align-items: center; justify-content: center; padding: 0; color: ${t.text}; background: none; border: 0; border-radius: ${t.radius}; cursor: pointer; }
|
|
2849
2954
|
.close:hover { background: ${t.surfaceSubtle}; }
|
|
2850
|
-
.body { flex: 1; overflow: auto; padding: ${
|
|
2851
|
-
.foot { display: flex; gap: ${
|
|
2955
|
+
.body { flex: 1; overflow: auto; padding: ${a(5)}; }
|
|
2956
|
+
.foot { display: flex; gap: ${a(3)}; justify-content: flex-end; padding: ${a(4)} ${a(5)}; box-shadow: 0 -1px 0 color-mix(in srgb, ${t.text} 8%, transparent); }
|
|
2852
2957
|
.foot[hidden] { display: none; }
|
|
2853
|
-
`]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let
|
|
2958
|
+
`]}get dialog(){return this.renderRoot.querySelector("dialog")}updated(i){if(!i.has("open"))return;let r=this.dialog;r&&(this.open?(typeof r.showModal=="function"?r.showModal():r.setAttribute("open",""),ye(this)):(typeof r.close=="function"&&r.open?r.close():r.removeAttribute("open"),ee(this)))}disconnectedCallback(){super.disconnectedCallback(),ee(this)}close(){this.open=!1,this.dispatchEvent(new CustomEvent("impakt-close",{bubbles:!0,composed:!0}))}footerChanged(i){this.hasFooter=i.target.assignedNodes().length>0,this.requestUpdate()}render(){return o`<dialog part="dialog" aria-labelledby=${this.heading?this.id_("heading"):l}
|
|
2854
2959
|
@cancel=${()=>this.close()}
|
|
2855
2960
|
@close=${()=>{this.open&&this.close()}}
|
|
2856
2961
|
@click=${i=>{i.target===this.dialog&&this.close()}}>
|
|
2857
2962
|
<div class="head">
|
|
2858
|
-
${this.heading?
|
|
2963
|
+
${this.heading?o`<h2 id=${this.id_("heading")}>${this.heading}</h2>`:o`<span></span>`}
|
|
2859
2964
|
<button class="close" type="button" aria-label=${this.closeLabel} @click=${this.close}>${M("close","20px")}</button>
|
|
2860
2965
|
</div>
|
|
2861
2966
|
<div class="body" part="body"><slot></slot></div>
|
|
2862
2967
|
<div class="foot" part="footer" ?hidden=${!this.hasFooter}><slot name="footer" @slotchange=${this.footerChanged}></slot></div>
|
|
2863
|
-
</dialog>`}},
|
|
2864
|
-
.region { position: fixed; inset-block-end: calc(${
|
|
2865
|
-
@media (max-width: 40rem) { .region { inset-inline: ${
|
|
2866
|
-
.toast { pointer-events: auto; max-block-size: 40vh; overflow: auto; display: flex; align-items: flex-start; gap: ${
|
|
2968
|
+
</dialog>`}},Er={neutral:"info",success:"check",warning:"warning",danger:"warning"},At=class extends h{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=[...h.styles,k,u`
|
|
2969
|
+
.region { position: fixed; inset-block-end: calc(${a(4)} + env(safe-area-inset-bottom, 0px) + var(--impakt-bottom-bar, 0px)); inset-inline-end: ${a(4)}; z-index: 1000; inline-size: min(24rem, calc(100vw - ${a(8)})); pointer-events: none; }
|
|
2970
|
+
@media (max-width: 40rem) { .region { inset-inline: ${a(3)}; inline-size: auto; inset-block-end: calc(${a(3)} + env(safe-area-inset-bottom, 0px) + var(--impakt-bottom-bar, 0px)); } }
|
|
2971
|
+
.toast { pointer-events: auto; max-block-size: 40vh; overflow: auto; display: flex; align-items: flex-start; gap: ${a(3)}; padding: ${a(3)} ${a(3)} ${a(3)} ${a(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); }
|
|
2867
2972
|
/* It rises without fading in, so its words are at full contrast from the first frame they are read in (1.4.3). */
|
|
2868
|
-
@keyframes rise { from { transform: translateY(${
|
|
2869
|
-
.mark { display: inline-flex; flex: none; margin-block-start: ${
|
|
2973
|
+
@keyframes rise { from { transform: translateY(${a(3)}); } }
|
|
2974
|
+
.mark { display: inline-flex; flex: none; margin-block-start: ${a(.5)}; color: ${t.info}; }
|
|
2870
2975
|
:host([tone='success']) .mark { color: ${t.success}; }
|
|
2871
2976
|
:host([tone='warning']) .mark { color: ${t.warning}; }
|
|
2872
2977
|
:host([tone='danger']) .mark { color: ${t.danger}; }
|
|
2873
2978
|
.message { flex: 1; align-self: center; margin: 0; ${w("sm")} font-weight: ${m("medium")}; }
|
|
2874
|
-
.action, .close { ${z} padding: 0 ${
|
|
2979
|
+
.action, .close { ${z} padding: 0 ${a(2)}; font: inherit; ${w("sm")} font-weight: ${m("semibold")}; color: ${t.link}; background: none; border: 0; border-radius: ${t.radius}; cursor: pointer; }
|
|
2875
2980
|
.close { display: inline-flex; align-items: center; justify-content: center; color: ${t.textMuted}; }
|
|
2876
2981
|
.action:hover, .close:hover { background: ${t.surfaceSubtle}; }
|
|
2877
|
-
`,
|
|
2878
|
-
${this.open?
|
|
2982
|
+
`,C(".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 o`<div class="region" role="status" aria-live="polite">
|
|
2983
|
+
${this.open?o`<div class="toast" part="toast" @mouseenter=${this.stop} @mouseleave=${this.start} @focusin=${this.stop} @focusout=${this.start}
|
|
2879
2984
|
@keydown=${e=>{e.key==="Escape"&&(e.preventDefault(),this.close())}}>
|
|
2880
|
-
<span class="mark">${M(
|
|
2985
|
+
<span class="mark">${M(Er[this.tone]??"info","20px")}</span>
|
|
2881
2986
|
<p class="message">${this.message}</p>
|
|
2882
|
-
${this.actionText?
|
|
2987
|
+
${this.actionText?o`<button class="action" type="button" @click=${this.action}>${this.actionText}</button>`:l}
|
|
2883
2988
|
<button class="close" type="button" aria-label=${this.closeLabel} @click=${this.close}>${M("close","16px")}</button>
|
|
2884
2989
|
</div>`:l}
|
|
2885
|
-
</div>`}},
|
|
2990
|
+
</div>`}},Ar=L("var(--impakt-color-line-soft, #dcdcd8)"),Ct=class extends h{constructor(){super();this.outside=i=>{i.composedPath().includes(this)||this.toggle(!1)};this.label="Menu",this.icon="",this.items=[],this.edge="start",this.open=!1,this.triggerLook="button"}static{this.properties={label:{type:String},icon:{type:String},items:{type:Array},edge:{type:String,reflect:!0},open:{type:Boolean,reflect:!0},triggerLook:{type:String,reflect:!0,attribute:"trigger-look"}}}static{this.styles=[...h.styles,k,C(".trigger, .item"),u`
|
|
2886
2991
|
:host { position: relative; display: inline-block; }
|
|
2887
|
-
.trigger { ${z} display: inline-flex; align-items: center; gap: ${
|
|
2888
|
-
:host([trigger-look='text']) .trigger { padding: ${
|
|
2992
|
+
.trigger { ${z} display: inline-flex; align-items: center; gap: ${a(2)}; padding: ${a(2)} ${a(3.5)}; font: inherit; ${w("sm")} font-weight: ${m("medium")}; color: ${t.text}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusLg}; cursor: pointer; }
|
|
2993
|
+
:host([trigger-look='text']) .trigger { padding: ${a(1)} ${a(1)}; font-size: 1rem; line-height: 1.25; background: transparent; border-color: transparent; }
|
|
2889
2994
|
:host([trigger-look='text']) .trigger:hover { background: transparent; text-decoration: underline; text-underline-offset: 0.2em; }
|
|
2890
2995
|
.caret { font-size: 0.75em; line-height: 1; }
|
|
2891
2996
|
.trigger:hover { background: ${t.surfaceSubtle}; }
|
|
2892
2997
|
.chev { display: inline-flex; color: ${t.textMuted}; transition: transform 120ms ease-in-out; }
|
|
2893
2998
|
:host([open]) .chev { transform: rotate(180deg); }
|
|
2894
2999
|
/* G2: a 1px ink border and the one shadow the design allows, the open menu's. */
|
|
2895
|
-
.panel { position: absolute; z-index: 100; inset-block-start: calc(100% + ${
|
|
3000
|
+
.panel { position: absolute; z-index: 100; inset-block-start: calc(100% + ${a(1.5)}); inset-inline-start: 0; box-sizing: border-box; min-inline-size: 13rem; max-inline-size: min(24rem, 90vw); padding: ${a(2)} 0; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.text}; border-radius: ${t.radiusXl}; box-shadow: var(--impakt-shadow-overlay, 0 16px 32px rgb(0 0 0 / 0.2)); animation: pop 120ms ease-out; }
|
|
2896
3001
|
.list, .group { margin: 0; padding: 0; list-style: none; }
|
|
2897
|
-
.grouped + .grouped, .grouped:not(:first-child) { margin-block-start: ${
|
|
2898
|
-
.group-label { display: block; padding: ${
|
|
2899
|
-
.header { padding: ${
|
|
3002
|
+
.grouped + .grouped, .grouped:not(:first-child) { margin-block-start: ${a(2)}; padding-block-start: ${a(2)}; border-block-start: ${t.borderThin} solid ${Ar}; }
|
|
3003
|
+
.group-label { display: block; padding: ${a(2)} 18px ${a(1)}; font-family: ${t.fontMono}; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }
|
|
3004
|
+
.header { padding: ${a(2)} ${a(2.5)} ${a(2.5)}; margin-block-end: ${a(1.5)}; border-block-end: ${t.borderThin} solid ${t.border}; ${w("sm")} color: ${t.textMuted}; overflow-wrap: anywhere; }
|
|
2900
3005
|
:host([edge='end']) .panel, .panel.flip-end { inset-inline: auto 0; }
|
|
2901
3006
|
:host([edge='end']) .panel.flip-start { inset-inline: 0 auto; }
|
|
2902
|
-
@keyframes pop { from { opacity: 0; transform: translateY(-${
|
|
2903
|
-
.item { ${z} box-sizing: border-box; display: flex; align-items: center; gap: ${
|
|
3007
|
+
@keyframes pop { from { opacity: 0; transform: translateY(-${a(1)}); } }
|
|
3008
|
+
.item { ${z} box-sizing: border-box; display: flex; align-items: center; gap: ${a(2.5)}; inline-size: 100%; padding: ${a(3)} 18px; font: inherit; font-size: 1rem; line-height: 1.25; font-weight: ${m("medium")}; text-align: start; color: ${t.text}; text-decoration: none; background: none; border: 0; border-radius: 0; cursor: pointer; }
|
|
2904
3009
|
.item:hover, .item:focus { background: ${t.surfaceSubtle}; }
|
|
2905
|
-
.item .meta { margin-inline-start: auto; padding-inline-start: ${
|
|
3010
|
+
.item .meta { margin-inline-start: auto; padding-inline-start: ${a(4)}; font-family: ${t.fontMono}; font-size: 0.875rem; font-weight: ${m("regular")}; color: ${t.textMuted}; white-space: nowrap; }
|
|
2906
3011
|
.item[aria-current] { background: ${t.text}; color: var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})); }
|
|
2907
3012
|
.item[aria-current] .meta { color: color-mix(in srgb, var(--impakt-color-text-inverse, var(--impakt-solid-card, ${t.surfaceCard})) 66%, ${t.text}); }
|
|
2908
3013
|
.item[aria-disabled='true'] { color: ${t.textMuted}; cursor: not-allowed; }
|
|
@@ -2911,27 +3016,27 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2911
3016
|
@media (forced-colors: active) { .panel { border-color: CanvasText; } .item[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; } .item[aria-disabled='true'] { color: GrayText; } }
|
|
2912
3017
|
.item.danger { color: ${t.dangerText}; }
|
|
2913
3018
|
.item svg { flex: none; }
|
|
2914
|
-
`]}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.outside)}get entries(){return Array.from(this.renderRoot.querySelectorAll(".item"))}get trigger(){return this.renderRoot.querySelector(".trigger")}toggle(i,
|
|
2915
|
-
@click=${()=>this.toggle(!this.open)} @keydown=${this.triggerKey}><slot name="trigger">${M(this.icon,"18px")}${this.label}</slot>${i?
|
|
2916
|
-
${this.open?
|
|
2917
|
-
${
|
|
2918
|
-
</ul></div>`:l}`}};function
|
|
3019
|
+
`]}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.outside)}get entries(){return Array.from(this.renderRoot.querySelectorAll(".item"))}get trigger(){return this.renderRoot.querySelector(".trigger")}toggle(i,r){this.open=i,i?(document.addEventListener("click",this.outside),this.updateComplete.then(()=>{this.keepOnScreen(),this.entries[r==="last"?this.entries.length-1:0]?.focus()})):document.removeEventListener("click",this.outside)}keepOnScreen(){let i=this.renderRoot.querySelector(".panel");if(!i)return;i.classList.remove("flip-start","flip-end");let r=i.getBoundingClientRect(),s=document.documentElement.clientWidth;r.right>s-8?i.classList.add("flip-end"):r.left<8&&i.classList.add("flip-start")}triggerKey(i){(i.key==="ArrowDown"||i.key==="ArrowUp")&&(i.preventDefault(),this.toggle(!0,i.key==="ArrowUp"?"last":"first"))}listKey(i){let r=this.entries,s=r.indexOf(this.renderRoot.activeElement),c={ArrowDown:(s+1)%r.length,ArrowUp:(s-1+r.length)%r.length,Home:0,End:r.length-1};if(i.key in c)i.preventDefault(),r[c[i.key]]?.focus();else if(i.key.length===1&&/\S/.test(i.key)&&!i.ctrlKey&&!i.metaKey&&!i.altKey){let p=i.key.toLowerCase();[...r.slice(s+1),...r.slice(0,s+1)].find(g=>(g.textContent??"").trim().toLowerCase().startsWith(p))?.focus()}else i.key==="Escape"?(i.preventDefault(),this.toggle(!1),this.trigger?.focus()):i.key==="Tab"&&this.toggle(!1)}choose(i,r){if(i.disabled){r?.preventDefault();return}this.toggle(!1),this.trigger?.focus(),i.href||this.dispatchEvent(new CustomEvent("impakt-select",{detail:{value:i.value??i.text},bubbles:!0,composed:!0}))}renderItem(i){let r=i.meta||(i.current?S("You are here"):""),s=o`${M(i.icon,"18px")}<span class="text">${i.text}</span>${r?o`<span class="meta">${r}</span>`:l}`,c=`item ${i.tone==="danger"?"danger":""}`,p=i.current?"page":l,$=i.disabled?"true":l;return o`<li role="none">${i.href&&!i.disabled?o`<a class=${c} role="menuitem" tabindex="-1" href=${i.href} aria-current=${p} @click=${g=>this.choose(i,g)}>${s}</a>`:o`<button class=${c} role="menuitem" tabindex="-1" type="button" aria-current=${p} aria-disabled=${$} @click=${g=>this.choose(i,g)}>${s}</button>`}</li>`}get runs(){let i=[];for(let r of this.items??[]){let s=r.group??"",c=i[i.length-1],p=s?i.find($=>$.group===s):void 0;p?p.items.push(r):c&&!s&&!c.group?c.items.push(r):i.push({group:s,items:[r]})}return i}render(){let i=this.triggerLook==="text",r=this.runs,s=r.some(c=>c.group);return o`<button class="trigger" part="trigger" type="button" aria-haspopup="menu" aria-expanded=${String(this.open)} aria-controls=${this.id_("list")}
|
|
3020
|
+
@click=${()=>this.toggle(!this.open)} @keydown=${this.triggerKey}><slot name="trigger">${M(this.icon,"18px")}${this.label}</slot>${i?o`<span class="caret" part="chevron" aria-hidden="true">${this.open?"\u25B4":"\u25BE"}</span>`:o`<span class="chev" part="chevron">${M("chevron-down","16px")}</span>`}</button>
|
|
3021
|
+
${this.open?o`<div class="panel" part="panel">${this.querySelector?.(':scope > [slot="header"]')?o`<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}>
|
|
3022
|
+
${s?r.map((c,p)=>{let $=this.id_(`group-${p}`);return o`<li role="none" class="grouped">${c.group?o`<span class="group-label" id=${$} part="group-label">${c.group}</span>`:l}<ul class="group" role="group" aria-labelledby=${c.group?$:l}>${c.items.map(g=>this.renderItem(g))}</ul></li>`}):(this.items??[]).map(c=>this.renderItem(c))}
|
|
3023
|
+
</ul></div>`:l}`}};function Cr(n,e){let i=[...new Set([1,n-1,n,n+1,e])].filter(r=>r>=1&&r<=e).sort((r,s)=>r-s);return i.flatMap((r,s)=>{let c=i[s-1];return c===void 0||r===c+1?[r]:r===c+2?[c+1,r]:["gap",r]})}var Lt=class extends h{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=[...h.styles,k,C(".n, .step"),u`
|
|
2919
3024
|
:host { display: block; container-type: inline-size; }
|
|
2920
|
-
nav { display: flex; align-items: center; justify-content: space-between; gap: ${
|
|
2921
|
-
ul { display: flex; align-items: center; gap: ${
|
|
2922
|
-
.n, .step { ${z} box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: ${
|
|
3025
|
+
nav { display: flex; align-items: center; justify-content: space-between; gap: ${a(2)}; }
|
|
3026
|
+
ul { display: flex; align-items: center; gap: ${a(1)}; margin: 0; padding: 0; list-style: none; }
|
|
3027
|
+
.n, .step { ${z} box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: ${a(1.5)}; min-inline-size: 44px; padding: 0 ${a(2.5)}; font: inherit; ${w("sm")} font-weight: ${m("medium")}; color: ${t.text}; text-decoration: none; background: none; border: 0; border-radius: ${t.radiusLg}; cursor: pointer; }
|
|
2923
3028
|
.n:hover, .step:hover { background: ${t.surfaceSubtle}; }
|
|
2924
3029
|
.n[aria-current] { color: ${t.onBrand}; background: ${t.brand}; font-weight: ${m("semibold")}; }
|
|
2925
3030
|
.step[aria-disabled='true'] { color: ${t.textMuted}; opacity: 0.55; background: none; cursor: not-allowed; }
|
|
2926
|
-
.gap { color: ${t.textMuted}; padding: 0 ${
|
|
3031
|
+
.gap { color: ${t.textMuted}; padding: 0 ${a(1)}; }
|
|
2927
3032
|
.count { display: none; ${w("sm")} color: ${t.textMuted}; }
|
|
2928
3033
|
@container (max-width: 34rem) { ul { display: none; } .count { display: block; } }
|
|
2929
|
-
`]}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,
|
|
3034
|
+
`]}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,s,c){return this.hrefPattern?o`<a class=${i} href=${this.hrefPattern.replace("{page}",String(e))} aria-label=${s} aria-current=${c?"page":l}>${r}</a>`:o`<button class=${i} type="button" aria-label=${s} aria-current=${c?"page":l} @click=${p=>this.go(e,p)}>${r}</button>`}step(e,i,r,s){let c=r==="arrow-left"?o`${M(r,"16px")}${i}`:o`${i}${M(r,"16px")}`;return s?o`<span class="step" aria-disabled="true">${c}</span>`:this.link(e,"step",c,i,!1)}render(){let e=Math.min(Math.max(this.page,1),Math.max(this.pages,1));return o`<nav aria-label=${this.label} part="nav">
|
|
2930
3035
|
${this.step(e-1,this.previousText,"arrow-left",e<=1)}
|
|
2931
|
-
<ul>${
|
|
2932
|
-
<span class="count">${
|
|
3036
|
+
<ul>${Cr(e,this.pages).map(i=>o`<li>${i==="gap"?o`<span class="gap" aria-hidden="true">…</span>`:this.link(i,"n",i,S("Page {page}",{page:i}),i===e)}</li>`)}</ul>
|
|
3037
|
+
<span class="count">${S("Page {page} of {pages}",{page:e,pages:this.pages})}</span>
|
|
2933
3038
|
${this.step(e+1,this.nextText,"arrow-right",e>=this.pages)}
|
|
2934
|
-
</nav>`}},
|
|
3039
|
+
</nav>`}},Lr=n=>{let e=n.trim().split(/\s+/).filter(Boolean);return((e[0]?.[0]??"")+(e.length>1?e[e.length-1][0]:"")).toUpperCase()},It=class extends h{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=[...h.styles,u`
|
|
2935
3040
|
:host { --size: 40px; display: inline-block; inline-size: var(--size); block-size: var(--size); vertical-align: middle; }
|
|
2936
3041
|
:host([size='xs']) { --size: 22px; }
|
|
2937
3042
|
:host([size='sm']) { --size: 32px; }
|
|
@@ -2939,69 +3044,69 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
2939
3044
|
:host([size='xl']) { --size: 80px; }
|
|
2940
3045
|
.face { display: flex; align-items: center; justify-content: center; inline-size: 100%; block-size: 100%; overflow: hidden; color: ${t.brand}; background: ${t.brandSubtle}; border-radius: 50%; font-size: calc(var(--size) * 0.38); font-weight: ${m("semibold")}; }
|
|
2941
3046
|
img { inline-size: 100%; block-size: 100%; object-fit: cover; }
|
|
2942
|
-
`]}willUpdate(i){i.has("src")&&(this.failed=!1)}render(){return this.src&&!this.failed?
|
|
3047
|
+
`]}willUpdate(i){i.has("src")&&(this.failed=!1)}render(){return this.src&&!this.failed?o`<div class="face"><img src=${this.src} alt=${this.fullName} @error=${()=>{this.failed=!0,this.requestUpdate()}} /></div>`:o`<div class="face" role="img" aria-label=${this.fullName||S("Person")}>${Lr(this.fullName)||M("user","55%")}</div>`}},Rt=class extends h{static{this.properties={items:{type:Array},max:{type:Number},size:{type:String,reflect:!0},moreLabel:{type:String,attribute:"more-label"}}}constructor(){super(),this.items=[],this.max=4,this.size="md",this.moreLabel="more people"}static{this.styles=[...h.styles,u`
|
|
2943
3048
|
ul { display: flex; margin: 0; padding: 0; list-style: none; }
|
|
2944
|
-
li { margin-inline-start: -${
|
|
3049
|
+
li { margin-inline-start: -${a(2.5)}; border-radius: 50%; box-shadow: 0 0 0 2px ${t.surfaceCard}; line-height: 0; }
|
|
2945
3050
|
li:first-child { margin-inline-start: 0; }
|
|
2946
3051
|
.more { display: flex; align-items: center; justify-content: center; inline-size: 40px; block-size: 40px; ${w("xs")} line-height: 1; font-weight: ${m("semibold")}; color: ${t.text}; background: ${t.surfaceSubtle}; border-radius: 50%; }
|
|
2947
3052
|
:host([size='sm']) .more { inline-size: 32px; block-size: 32px; }
|
|
2948
|
-
:host([size='xs']) li { margin-inline-start: -${
|
|
3053
|
+
:host([size='xs']) li { margin-inline-start: -${a(1)}; box-shadow: 0 0 0 1px ${t.text}; }
|
|
2949
3054
|
:host([size='xs']) li:first-child { margin-inline-start: 0; }
|
|
2950
3055
|
:host([size='xs']) .more { inline-size: 22px; block-size: 22px; font-size: 10px; }
|
|
2951
3056
|
:host([size='lg']) .more { inline-size: 56px; block-size: 56px; }
|
|
2952
|
-
.sr { ${
|
|
2953
|
-
`]}render(){let e=this.items.slice(0,this.max),i=this.items.length-e.length;return
|
|
2954
|
-
${e.map(
|
|
2955
|
-
${i>0?
|
|
2956
|
-
</ul>`}},
|
|
2957
|
-
.wrap { display: flex; flex-direction: column; align-items: center; gap: ${
|
|
3057
|
+
.sr { ${T} }
|
|
3058
|
+
`]}render(){let e=this.items.slice(0,this.max),i=this.items.length-e.length;return o`<ul part="list">
|
|
3059
|
+
${e.map(r=>o`<li><impakt-avatar full-name=${r.name} src=${r.src??""} size=${this.size}></impakt-avatar></li>`)}
|
|
3060
|
+
${i>0?o`<li><span class="more"><span aria-hidden="true">+${i}</span><span class="sr">${i} ${this.moreLabel}</span></span></li>`:l}
|
|
3061
|
+
</ul>`}},_t=class extends h{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=[...h.styles,N,u`
|
|
3062
|
+
.wrap { display: flex; flex-direction: column; align-items: center; gap: ${a(2)}; padding: ${a(12)} ${a(6)}; text-align: center; }
|
|
2958
3063
|
:host([framed]) .wrap { border: ${t.borderThin} dashed ${t.border}; border-radius: ${t.radiusXl}; }
|
|
2959
|
-
.mark { display: inline-flex; align-items: center; justify-content: center; inline-size: 56px; block-size: 56px; margin-block-end: ${
|
|
3064
|
+
.mark { display: inline-flex; align-items: center; justify-content: center; inline-size: 56px; block-size: 56px; margin-block-end: ${a(2)}; color: ${t.brand}; background: ${t.brandSubtle}; border-radius: 50%; }
|
|
2960
3065
|
.h { margin: 0; font-family: ${t.fontHeading}; ${w("xl")} font-weight: ${m("bold")}; color: ${t.textHeading}; }
|
|
2961
3066
|
p { margin: 0; max-inline-size: 42ch; color: ${t.textMuted}; text-wrap: pretty; }
|
|
2962
|
-
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: ${
|
|
2963
|
-
`]}render(){return
|
|
3067
|
+
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: ${a(3)}; margin-block-start: ${a(3)}; }
|
|
3068
|
+
`]}render(){return o`<div class="wrap" part="wrap">
|
|
2964
3069
|
<span class="mark">${M(this.icon,"26px")}</span>
|
|
2965
|
-
${this.heading?
|
|
2966
|
-
${this.lead?
|
|
3070
|
+
${this.heading?o`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:l}
|
|
3071
|
+
${this.lead?o`<p>${this.lead}</p>`:l}
|
|
2967
3072
|
<div class="actions"><slot name="actions"></slot></div>
|
|
2968
|
-
</div>`}},
|
|
3073
|
+
</div>`}},Ir=n=>String(n?.times??"").split(",").map(e=>e.trim()).filter(Boolean);function Rr(n){let e=new Date(`${n}T00:00:00Z`);if(Number.isNaN(e.getTime()))return{weekday:"",day:n,month:""};let i=q(),r=s=>new Intl.DateTimeFormat(i,{timeZone:"UTC",...s}).format(e);return{weekday:r({weekday:"short"}),day:r({day:"numeric"}),month:r({month:"short"})}}var Ht=class extends x{constructor(){super();this.day="";this.days=[],this.dayLabel="Day",this.timeLabel="Time",this.emptyText="No times are available at the moment."}static{this.properties={...x.properties,days:{type:Array},dayLabel:{type:String,attribute:"day-label"},timeLabel:{type:String,attribute:"time-label"},emptyText:{type:String,attribute:"empty-text"}}}static{this.styles=[...x.styles,u`
|
|
2969
3074
|
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
|
|
2970
3075
|
legend { padding: 0; }
|
|
2971
|
-
.row-label { ${w("sm")} color: ${t.textMuted}; margin-block: ${
|
|
2972
|
-
.days { display: flex; gap: ${
|
|
2973
|
-
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: ${
|
|
3076
|
+
.row-label { ${w("sm")} color: ${t.textMuted}; margin-block: ${a(2)}; }
|
|
3077
|
+
.days { display: flex; gap: ${a(2)}; overflow-x: auto; padding: ${a(1)}; margin: -${a(1)}; scrollbar-width: thin; }
|
|
3078
|
+
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: ${a(2)}; }
|
|
2974
3079
|
label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; min-block-size: 44px; color: ${t.text}; background: ${t.surfaceCard}; border-radius: ${t.radiusLg}; box-shadow: inset 0 0 0 1px ${t.border}; cursor: pointer; transition: background-color 120ms ease-in-out; }
|
|
2975
3080
|
label:hover { background: ${t.surfaceSubtle}; }
|
|
2976
3081
|
label:has(input:checked) { color: ${t.onBrand}; background: ${t.brand}; box-shadow: none; }
|
|
2977
3082
|
label:has(input:focus-visible) { box-shadow: ${t.focusShadow}; }
|
|
2978
3083
|
input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
|
|
2979
|
-
.day { flex: none; inline-size: 4.5rem; padding-block: ${
|
|
3084
|
+
.day { flex: none; inline-size: 4.5rem; padding-block: ${a(2.5)}; }
|
|
2980
3085
|
.weekday, .month { ${w("xs")} }
|
|
2981
3086
|
.num { ${w("xl")} font-weight: ${m("semibold")}; }
|
|
2982
|
-
.time { padding: ${
|
|
3087
|
+
.time { padding: ${a(2)}; ${w("sm")} font-weight: ${m("medium")}; }
|
|
2983
3088
|
.empty { margin: 0; color: ${t.textMuted}; }
|
|
2984
3089
|
:host([invalid]) .days label, :host([invalid]) .times label { box-shadow: inset 0 0 0 1px ${t.danger}; }
|
|
2985
|
-
`]}get currentDay(){let i=this.day||this.value.split("T")[0];return this.days.find(
|
|
3090
|
+
`]}get currentDay(){let i=this.day||this.value.split("T")[0];return this.days.find(r=>r.date===i)??this.days[0]}chooseDay(i){this.day=i,this.value&&!this.value.startsWith(`${i}T`)&&this.setFormValue(""),this.requestUpdate()}renderLabel(){return o`<legend class="label" part="label">${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}</legend>`}renderControl(){let i=this.currentDay;return i?o`
|
|
2986
3091
|
<div class="row-label" id=${this.id_("days")}>${this.dayLabel}</div>
|
|
2987
3092
|
<div class="days" part="days" role="radiogroup" aria-labelledby=${this.id_("days")}>
|
|
2988
|
-
${this.days.map(
|
|
2989
|
-
<span class="weekday">${
|
|
3093
|
+
${this.days.map(r=>{let s=Rr(r.date);return o`<label class="day"><input type="radio" name=${`${this.uid}-day`} .checked=${r.date===i.date} ?disabled=${this.disabled} @change=${()=>this.chooseDay(r.date)} />
|
|
3094
|
+
<span class="weekday">${s.weekday}</span><span class="num">${s.day}</span><span class="month">${s.month}</span></label>`})}
|
|
2990
3095
|
</div>
|
|
2991
3096
|
<div class="row-label" id=${this.id_("times")}>${this.timeLabel}</div>
|
|
2992
3097
|
<div class="times" part="times" role="radiogroup" aria-labelledby=${this.id_("times")}>
|
|
2993
|
-
${
|
|
2994
|
-
</div>`:
|
|
3098
|
+
${Ir(i).map((r,s)=>{let c=`${i.date}T${r}`;return o`<label class="time"><input type="radio" name=${`${this.uid}-time`} .checked=${this.value===c} ?required=${this.required&&s===0} ?disabled=${this.disabled} @change=${()=>this.setFormValue(c)} />${r}</label>`})}
|
|
3099
|
+
</div>`:o`<p class="empty">${this.emptyText}</p>`}render(){return o`<fieldset part="fieldset" ?disabled=${this.disabled} aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
|
|
2995
3100
|
${this.renderLabel()}
|
|
2996
|
-
${this.description?
|
|
3101
|
+
${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
|
|
2997
3102
|
${this.renderControl()}
|
|
2998
3103
|
<div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
|
|
2999
|
-
</fieldset>`}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-drawer",
|
|
3104
|
+
</fieldset>`}updated(i){i.has("error")&&this.toggleAttribute("invalid",!!this.error)}};customElements.define("impakt-drawer",Et);customElements.define("impakt-toast",At);customElements.define("impakt-menu",Ct);customElements.define("impakt-pagination",Lt);customElements.define("impakt-avatar",It);customElements.define("impakt-avatar-group",Rt);customElements.define("impakt-empty-state",_t);customElements.define("impakt-slot-picker",Ht);var ui=u`
|
|
3000
3105
|
input, select {
|
|
3001
3106
|
box-sizing: border-box;
|
|
3002
3107
|
inline-size: min(100%, var(--impakt-field-width));
|
|
3003
3108
|
min-block-size: 44px;
|
|
3004
|
-
padding: ${
|
|
3109
|
+
padding: ${a(2.5)} ${a(3)};
|
|
3005
3110
|
font: inherit;
|
|
3006
3111
|
/* 16px whatever the page around it sets, so a phone does not zoom in on focus. */
|
|
3007
3112
|
font-size: max(${b("md")}, 16px);
|
|
@@ -3014,7 +3119,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3014
3119
|
:host([invalid]) input, :host([invalid]) select { border-color: ${t.danger}; border-width: ${t.borderThick}; }
|
|
3015
3120
|
.btn {
|
|
3016
3121
|
min-block-size: 44px;
|
|
3017
|
-
padding: ${
|
|
3122
|
+
padding: ${a(2.5)} ${a(4)};
|
|
3018
3123
|
font: inherit;
|
|
3019
3124
|
font-weight: ${m("semibold")};
|
|
3020
3125
|
color: ${t.onBrand};
|
|
@@ -3025,25 +3130,25 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3025
3130
|
}
|
|
3026
3131
|
.btn:hover { background: ${t.brandHover}; }
|
|
3027
3132
|
.quiet { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; padding: 0; font: inherit; color: ${t.link}; text-decoration: underline; text-underline-offset: 0.2em; background: none; border: 0; cursor: pointer; }
|
|
3028
|
-
.visually-hidden { ${
|
|
3029
|
-
`,
|
|
3030
|
-
.row { display: flex; flex-wrap: wrap; gap: ${
|
|
3031
|
-
.row label { display: block; ${w("sm")} font-weight: ${m("semibold")}; margin-block-end: ${
|
|
3133
|
+
.visually-hidden { ${T} }
|
|
3134
|
+
`,G=class extends x{static{this.properties={...x.properties,postcodeLabel:{type:String,attribute:"postcode-label"},findText:{type:String,attribute:"find-text"},chooseLabel:{type:String,attribute:"choose-label"},manualText:{type:String,attribute:"manual-text"},notFoundText:{type:String,attribute:"not-found-text"},lookupUrl:{type:String,attribute:"lookup-url"},addresses:{type:Array}}}constructor(){super(),this.label="Your address",this.postcodeLabel="Postcode",this.findText="Find address",this.chooseLabel="Choose your address",this.manualText="Enter the address yourself",this.notFoundText="No addresses found for that postcode. Check it, or enter the address yourself.",this.lookupUrl="",this.addresses=[],this.manual=!1,this.postcode="",this.searched=!1,this.busy=!1}static{this.styles=[...x.styles,D,ui,u`
|
|
3135
|
+
.row { display: flex; flex-wrap: wrap; gap: ${a(2)}; align-items: flex-end; }
|
|
3136
|
+
.row label { display: block; ${w("sm")} font-weight: ${m("semibold")}; margin-block-end: ${a(1)}; }
|
|
3032
3137
|
.postcode input { inline-size: 12ch; text-transform: uppercase; }
|
|
3033
|
-
.choose { margin-block-start: ${
|
|
3138
|
+
.choose { margin-block-start: ${a(4)}; }
|
|
3034
3139
|
.choose select { inline-size: 100%; }
|
|
3035
|
-
.manual { display: grid; gap: ${
|
|
3036
|
-
.manual label { display: block; ${w("sm")} margin-block-end: ${
|
|
3140
|
+
.manual { display: grid; gap: ${a(3)}; margin-block-start: ${a(3)}; }
|
|
3141
|
+
.manual label { display: block; ${w("sm")} margin-block-end: ${a(1)}; }
|
|
3037
3142
|
.manual input { inline-size: 100%; }
|
|
3038
|
-
.note { ${w("sm")} color: ${t.textMuted}; margin: ${
|
|
3039
|
-
.switch { margin-block-start: ${
|
|
3040
|
-
`]}async find(){let e=this.postcode.trim().toUpperCase();if(e){if(this.dispatchEvent(new CustomEvent("impakt-lookup",{detail:{postcode:e},bubbles:!0,composed:!0})),!this.lookupUrl){this.searched=!0;return}this.busy=!0;try{let i=new URL(this.lookupUrl,globalThis.location?.href);i.searchParams.set("postcode",e);let
|
|
3041
|
-
${e("line1",
|
|
3042
|
-
${e("line2",
|
|
3043
|
-
${e("town",
|
|
3044
|
-
${e("mpostcode",
|
|
3045
|
-
<button class="quiet switch" type="button" @click=${()=>{this.manual=!1}}>${
|
|
3046
|
-
</div>`}return
|
|
3143
|
+
.note { ${w("sm")} color: ${t.textMuted}; margin: ${a(2)} 0 0; }
|
|
3144
|
+
.switch { margin-block-start: ${a(3)}; }
|
|
3145
|
+
`]}async find(){let e=this.postcode.trim().toUpperCase();if(e){if(this.dispatchEvent(new CustomEvent("impakt-lookup",{detail:{postcode:e},bubbles:!0,composed:!0})),!this.lookupUrl){this.searched=!0;return}this.busy=!0;try{let i=new URL(this.lookupUrl,globalThis.location?.href);i.searchParams.set("postcode",e);let r=await(await fetch(i)).json();this.addresses=Array.isArray(r)?r:[]}catch{this.addresses=[]}finally{this.busy=!1,this.searched=!0}}}manualLine(){return["line1","line2","town","mpostcode"].map(i=>(this.renderRoot.querySelector(`#${this.id_(i)}`)?.value??"").trim()).filter(Boolean).join(", ")}renderControl(){if(this.manual){let e=(i,r,s)=>o`<div><label for=${this.id_(i)}>${r}</label><input id=${this.id_(i)} autocomplete=${s} @input=${()=>this.setFormValue(this.manualLine())} /></div>`;return o`<div class="manual" role="group" aria-label=${this.label}>
|
|
3146
|
+
${e("line1",S("Building and street"),"address-line1")}
|
|
3147
|
+
${e("line2",S("Second line (optional)"),"address-line2")}
|
|
3148
|
+
${e("town",S("Town or city"),"address-level2")}
|
|
3149
|
+
${e("mpostcode",S("Postcode"),"postal-code")}
|
|
3150
|
+
<button class="quiet switch" type="button" @click=${()=>{this.manual=!1}}>${S("Find the address from the postcode")}</button>
|
|
3151
|
+
</div>`}return o`
|
|
3047
3152
|
<div class="row">
|
|
3048
3153
|
<div class="postcode"><label for=${this.controlId}>${this.postcodeLabel}</label>
|
|
3049
3154
|
<input id=${this.controlId} autocomplete="postal-code" .value=${this.postcode} aria-describedby=${this.describedBy}
|
|
@@ -3051,24 +3156,24 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3051
3156
|
@keydown=${e=>{e.key==="Enter"&&(e.preventDefault(),this.find())}} /></div>
|
|
3052
3157
|
<button class="btn" type="button" ?disabled=${this.busy} @click=${()=>this.find()}>${this.busy?"Finding\u2026":this.findText}</button>
|
|
3053
3158
|
</div>
|
|
3054
|
-
${this.addresses.length?
|
|
3159
|
+
${this.addresses.length?o`<div class="choose"><label class="label" for=${this.id_("choose")}>${this.chooseLabel}</label>
|
|
3055
3160
|
<select id=${this.id_("choose")} @change=${e=>this.setFormValue(e.target.value)}>
|
|
3056
3161
|
<option value="">${this.addresses.length} ${this.addresses.length===1?"address":"addresses"} found</option>
|
|
3057
|
-
${this.addresses.map(e=>
|
|
3058
|
-
</select></div>`:this.searched&&!this.busy?
|
|
3162
|
+
${this.addresses.map(e=>o`<option value=${e.line} ?selected=${e.line===this.value}>${e.line}</option>`)}
|
|
3163
|
+
</select></div>`:this.searched&&!this.busy?o`<p class="note" role="status">${this.notFoundText}</p>`:l}
|
|
3059
3164
|
<button class="quiet switch" type="button" @click=${()=>{this.manual=!0}}>${this.manualText}</button>
|
|
3060
|
-
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},
|
|
3165
|
+
`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Bt=class extends h{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=[...h.styles,k,N,C("a"),u`
|
|
3061
3166
|
:host { display: block; }
|
|
3062
|
-
.box { padding: ${
|
|
3167
|
+
.box { padding: ${a(5)}; border: ${t.borderThick} solid ${t.danger}; border-inline-start-width: 6px; border-radius: ${t.radiusLg}; background: ${t.surfaceCard}; }
|
|
3063
3168
|
.box:focus { outline: 3px solid ${t.danger}; outline-offset: 2px; }
|
|
3064
|
-
h2 { margin: 0 0 ${
|
|
3065
|
-
ul { margin: 0; padding: 0; list-style: none; display: grid; gap: ${
|
|
3169
|
+
h2 { margin: 0 0 ${a(3)}; ${w("lg")} font-weight: ${m("bold")}; color: ${t.text}; }
|
|
3170
|
+
ul { margin: 0; padding: 0; list-style: none; display: grid; gap: ${a(2)}; }
|
|
3066
3171
|
a { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; color: ${t.dangerText}; font-weight: ${m("semibold")}; text-underline-offset: 0.2em; }
|
|
3067
|
-
`]}go(e,i){let
|
|
3172
|
+
`]}go(e,i){let r=i.replace(/^#/,""),c=this.getRootNode().querySelector?.(`#${CSS.escape(r)}`)??document.getElementById(r);c&&(e.preventDefault(),c.scrollIntoView({block:"center"}),c.focus())}updated(e){let i=e.get("items");e.has("items")&&this.items.length&&!i?.length&&this.renderRoot.querySelector(".box")?.focus()}render(){return this.items.length?o`<div class="box" role="alert" tabindex="-1" aria-labelledby=${this.id_("h")} part="box">
|
|
3068
3173
|
<h2 id=${this.id_("h")}>${this.heading}</h2>
|
|
3069
|
-
<ul>${this.items.map(e=>
|
|
3070
|
-
</div>`:l}},
|
|
3071
|
-
.zone { display: flex; flex-wrap: wrap; align-items: center; gap: ${
|
|
3174
|
+
<ul>${this.items.map(e=>o`<li><a href=${e.href} @click=${i=>this.go(i,e.href)}>${e.text}</a></li>`)}</ul>
|
|
3175
|
+
</div>`:l}},_r=n=>n>=1048576?S("{size} MB",{size:(n/1048576).toFixed(1)}):S("{size} KB",{size:Math.max(1,Math.round(n/1024))}),te=class extends x{static{this.properties={...x.properties,accept:{type:String},manyFiles:{type:Boolean,attribute:"many-files"},maxSizeMb:{type:Number,attribute:"max-size-mb"},chooseText:{type:String,attribute:"choose-text"},dropText:{type:String,attribute:"drop-text"}}}constructor(){super(),this.label="Upload a file",this.accept=".pdf,.jpg,.jpeg,.png",this.manyFiles=!1,this.maxSizeMb=10,this.chooseText="Choose file",this.dropText="or drop it here",this.files=[],this.over=!1,this.said=""}static{this.styles=[...x.styles,ui,z,C("label.btn, .quiet"),u`
|
|
3176
|
+
.zone { display: flex; flex-wrap: wrap; align-items: center; gap: ${a(3)}; padding: ${a(5)}; border: 2px dashed ${t.border}; border-radius: ${t.radiusLg}; background: ${t.surfaceCard}; }
|
|
3072
3177
|
.zone.over { border-color: ${t.brand}; background: ${t.brandSubtle}; }
|
|
3073
3178
|
:host([invalid]) .zone { border-color: ${t.danger}; border-style: solid; }
|
|
3074
3179
|
:host([disabled]) label.btn { cursor: not-allowed; }
|
|
@@ -3076,10 +3181,10 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3076
3181
|
input[type='file'] { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
|
|
3077
3182
|
label.btn { display: inline-flex; align-items: center; }
|
|
3078
3183
|
input[type='file']:focus-visible + label.btn { box-shadow: ${t.focusShadow}; }
|
|
3079
|
-
ul { margin: ${
|
|
3080
|
-
li { display: flex; justify-content: space-between; gap: ${
|
|
3184
|
+
ul { margin: ${a(3)} 0 0; padding: 0; list-style: none; display: grid; gap: ${a(2)}; }
|
|
3185
|
+
li { display: flex; justify-content: space-between; gap: ${a(3)}; align-items: center; padding: ${a(2)} ${a(3)}; border-radius: ${t.radius}; background: ${t.surfaceInset}; }
|
|
3081
3186
|
.size { color: ${t.textMuted}; ${w("sm")} }
|
|
3082
|
-
`]}fits(e){if(this.maxSizeMb&&e.size>this.maxSizeMb*1048576)return
|
|
3187
|
+
`]}fits(e){if(this.maxSizeMb&&e.size>this.maxSizeMb*1048576)return S("{file} is bigger than {size} MB",{file:e.name,size:this.maxSizeMb});let i=this.accept.split(",").map(r=>r.trim().toLowerCase()).filter(Boolean);return i.length&&!i.some(r=>r.startsWith(".")?e.name.toLowerCase().endsWith(r):e.type===r||r.endsWith("/*")&&e.type.startsWith(r.slice(0,-1)))?S("{file} must be {kinds}",{file:e.name,kinds:i.map(r=>r.replace(".","").toUpperCase()).join(", ")}):null}add(e){let i=Array.from(e),r=i.map(p=>this.fits(p)).filter(p=>!!p),s=i.filter(p=>!this.fits(p)),c=this.manyFiles?s:s.slice(0,1);this.files=this.manyFiles?[...this.files,...s]:c.length?c:this.files,this.error=r.join(". "),this.said=c.map(p=>S("{file} added",{file:p.name})).join(". "),this.sync()}removeFile(e){let i=this.files[e];this.files=this.files.filter((r,s)=>s!==e),this.said=i?S("{file} removed",{file:i.name}):"",this.sync(),this.updateComplete.then(()=>this.renderRoot.querySelector('input[type="file"]')?.focus())}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}sync(){this.setFormValue(this.files.map(e=>e.name).join(", ")),this.dispatchEvent(new CustomEvent("impakt-files",{detail:{files:this.files},bubbles:!0,composed:!0}))}renderControl(){return o`
|
|
3083
3188
|
<div class="zone ${this.over?"over":""}"
|
|
3084
3189
|
@dragover=${e=>{e.preventDefault(),this.over=!0}}
|
|
3085
3190
|
@dragleave=${()=>{this.over=!1}}
|
|
@@ -3090,51 +3195,51 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3090
3195
|
<span class="drop">${this.dropText}</span>
|
|
3091
3196
|
</div>
|
|
3092
3197
|
<p class="visually-hidden" role="status">${this.said}</p>
|
|
3093
|
-
${this.files.length?
|
|
3094
|
-
`}};function
|
|
3198
|
+
${this.files.length?o`<ul aria-label=${S("Files added")}>${this.files.map((e,i)=>o`<li><span>${e.name} <span class="size">${_r(e.size)}</span></span><button class="quiet" type="button" @click=${()=>this.removeFile(i)}>${S("Remove")}<span class="visually-hidden"> ${e.name}</span></button></li>`)}</ul>`:l}
|
|
3199
|
+
`}};function pi(n){try{return new Intl.NumberFormat(q(),{style:"currency",currency:n,maximumFractionDigits:0}).formatToParts(0).find(e=>e.type==="currency")?.value??""}catch{return""}}function hi(n){let e=n.replace(/[^\d.]/g,"");if(!e)return"";let[i,r]=e.split(".");return`${Number(i).toLocaleString("en-GB")}${r!==void 0?`.${r.slice(0,2)}`:""}`}var ke=class extends x{static{this.properties={...x.properties,currency:{type:String},lowest:{type:Number},highest:{type:Number},pence:{type:Boolean},width:{type:String,reflect:!0}}}constructor(){super(),this.currency="GBP",this.lowest=void 0,this.highest=void 0,this.pence=!1,this.width="md",this.shown=""}static{this.styles=[...x.styles,D,ui,u`
|
|
3095
3200
|
.wrap { display: flex; align-items: stretch; inline-size: min(100%, var(--impakt-field-width)); }
|
|
3096
|
-
.sign { display: flex; align-items: center; padding: 0 ${
|
|
3201
|
+
.sign { display: flex; align-items: center; padding: 0 ${a(3)}; font-weight: ${m("semibold")}; background: ${t.surfaceInset}; border: ${t.borderThin} solid ${t.border}; border-inline-end: 0; border-radius: ${t.radiusLg} 0 0 ${t.radiusLg}; }
|
|
3097
3202
|
.wrap input { inline-size: 100%; border-radius: 0 ${t.radiusLg} ${t.radiusLg} 0; }
|
|
3098
|
-
`]}willUpdate(e){e.has("value")&&this.value!==this.shown.replace(/,/g,"")&&(this.shown=
|
|
3099
|
-
<span class="sign" id=${this.id_("sign")}>${
|
|
3203
|
+
`]}willUpdate(e){e.has("value")&&this.value!==this.shown.replace(/,/g,"")&&(this.shown=hi(this.value))}typed(e){let i=e.replace(/[^\d.]/g,""),r=this.pence?i:i.split(".")[0];this.shown=e,this.setFormValue(r)}check(){this.shown=hi(this.value);let e=Number(this.value);if(!this.value)return;let i=r=>`${pi(this.currency)}${r.toLocaleString("en-GB")}`;this.lowest!==void 0&&e<this.lowest?this.error=S("Enter an amount of {amount} or more",{amount:i(this.lowest)}):this.highest!==void 0&&e>this.highest?this.error=S("Enter an amount of {amount} or less",{amount:i(this.highest)}):(this.error===S("Enter an amount of {amount} or more",{amount:i(this.lowest??0)})||this.error===S("Enter an amount of {amount} or less",{amount:i(this.highest??0)}))&&(this.error="")}get describedBy(){let e=[pi(this.currency)?this.id_("sign"):"",super.describedBy===l?"":String(super.describedBy)].filter(Boolean);return e.length?e.join(" "):l}renderControl(){return o`<div class="wrap">
|
|
3204
|
+
<span class="sign" id=${this.id_("sign")}>${pi(this.currency)}</span>
|
|
3100
3205
|
<input id=${this.controlId} inputmode=${this.pence?"decimal":"numeric"} .value=${this.shown} ?disabled=${this.disabled} ?readonly=${this.readonly} ?required=${this.required}
|
|
3101
3206
|
aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}
|
|
3102
3207
|
@input=${e=>this.typed(e.target.value)} @blur=${()=>this.check()} />
|
|
3103
|
-
</div>`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},
|
|
3104
|
-
.top { display: flex; justify-content: space-between; gap: ${
|
|
3208
|
+
</div>`}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error)}},Nt=class extends x{static{this.properties={...x.properties,lowest:{type:Number},highest:{type:Number},step:{type:Number},currency:{type:String},unit:{type:String}}}constructor(){super(),this.label="How much",this.lowest=0,this.highest=100,this.step=1,this.currency="",this.unit="",this.value="50"}static{this.styles=[...x.styles,u`
|
|
3209
|
+
.top { display: flex; justify-content: space-between; gap: ${a(3)}; }
|
|
3105
3210
|
output { font-weight: ${m("semibold")}; color: ${t.text}; }
|
|
3106
3211
|
input { inline-size: 100%; min-block-size: 32px; margin: 0; accent-color: ${t.brand}; }
|
|
3107
3212
|
.ends { display: flex; justify-content: space-between; ${w("sm")} color: ${t.textMuted}; }
|
|
3108
|
-
`]}shownAs(e){let i=
|
|
3109
|
-
<div class="top"><label class="label" for=${this.controlId}>${this.label}${this.required?
|
|
3213
|
+
`]}shownAs(e){let i=q(this),r=e.toLocaleString(i);if(this.currency)try{r=new Intl.NumberFormat(i,{style:"currency",currency:this.currency,maximumFractionDigits:0}).format(e)}catch{}return this.unit?`${r} ${this.unit}`:r}render(){let e=Number(this.value)||0;return o`
|
|
3214
|
+
<div class="top"><label class="label" for=${this.controlId}>${this.label}${this.required?o` <span class="required">(${this.requiredText})</span>`:l}</label>
|
|
3110
3215
|
<output for=${this.controlId}>${this.shownAs(e)}</output></div>
|
|
3111
|
-
${this.description?
|
|
3216
|
+
${this.description?o`<div class="description" id=${this.id_("description")}>${this.description}</div>`:l}
|
|
3112
3217
|
${this.renderControl()}
|
|
3113
3218
|
<div class="ends" aria-hidden="true"><span>${this.shownAs(this.lowest)}</span><span>${this.shownAs(this.highest)}</span></div>
|
|
3114
3219
|
<div class="error" id=${this.id_("error")} aria-live="polite">${this.error||l}</div>
|
|
3115
|
-
`}renderControl(){return
|
|
3220
|
+
`}renderControl(){return o`<input id=${this.controlId} type="range" min=${this.lowest} max=${this.highest} step=${this.step} .value=${this.value} ?disabled=${this.disabled}
|
|
3116
3221
|
aria-valuetext=${this.shownAs(Number(this.value)||0)} aria-describedby=${this.describedBy}
|
|
3117
|
-
@input=${e=>this.setFormValue(e.target.value)} />`}},
|
|
3222
|
+
@input=${e=>this.setFormValue(e.target.value)} />`}},Gi={done:"Completed","in-progress":"In progress","not-started":"Not started","cannot-start":"Cannot start yet"},Ot=class extends h{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=[...h.styles,k,N,C("a"),u`
|
|
3118
3223
|
:host { display: block; }
|
|
3119
|
-
.h { margin: 0 0 ${
|
|
3120
|
-
.count { margin: 0 0 ${
|
|
3224
|
+
.h { margin: 0 0 ${a(2)}; ${w("xl")} font-weight: ${m("bold")}; color: ${t.textHeading}; }
|
|
3225
|
+
.count { margin: 0 0 ${a(4)}; color: ${t.textMuted}; }
|
|
3121
3226
|
ul { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid ${t.rule}; }
|
|
3122
|
-
li { display: flex; justify-content: space-between; align-items: center; gap: ${
|
|
3227
|
+
li { display: flex; justify-content: space-between; align-items: center; gap: ${a(4)}; padding: ${a(4)} 0; border-block-end: 1px solid ${t.rule}; }
|
|
3123
3228
|
a { display: inline-flex; align-items: center; min-block-size: ${t.targetMin}; color: ${t.link}; font-weight: ${m("semibold")}; text-underline-offset: 0.2em; }
|
|
3124
3229
|
.title { font-weight: ${m("semibold")}; }
|
|
3125
3230
|
.hint { display: block; ${w("sm")} color: ${t.textMuted}; }
|
|
3126
|
-
.tag { flex-shrink: 0; padding: ${
|
|
3231
|
+
.tag { flex-shrink: 0; padding: ${a(1)} ${a(2.5)}; border-radius: var(--impakt-radius-pill, calc(${t.radius} * 9999)); ${w("sm")} font-weight: ${m("semibold")}; background: ${t.surfaceInset}; color: ${t.text}; }
|
|
3127
3232
|
.tag[data-status='done'] { background: ${t.successSubtle}; color: ${t.successText}; }
|
|
3128
3233
|
.tag[data-status='in-progress'] { background: ${t.brandSubtle}; color: ${t.link}; }
|
|
3129
3234
|
.tag[data-status='cannot-start'] { background: transparent; color: ${t.textMuted}; }
|
|
3130
|
-
`]}render(){let e=this.items.filter(i=>i.status==="done").length;return
|
|
3131
|
-
${this.heading?
|
|
3132
|
-
${this.items.length?
|
|
3133
|
-
<ul>${this.items.map(i=>
|
|
3134
|
-
<span>${i.href&&i.status!=="cannot-start"?
|
|
3135
|
-
${i.hint?
|
|
3136
|
-
<span class="tag" data-status=${i.status} id=${this.id_(`s-${i.id}`)}>${
|
|
3137
|
-
</li>`)}</ul>`}};
|
|
3235
|
+
`]}render(){let e=this.items.filter(i=>i.status==="done").length;return o`
|
|
3236
|
+
${this.heading?o`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>`:l}
|
|
3237
|
+
${this.items.length?o`<p class="count">${S(this.items.length===1?"You have completed {done} of {total} part.":"You have completed {done} of {total} parts.",{done:e,total:this.items.length})}</p>`:l}
|
|
3238
|
+
<ul>${this.items.map(i=>o`<li>
|
|
3239
|
+
<span>${i.href&&i.status!=="cannot-start"?o`<a href=${i.href} aria-describedby=${this.id_(`s-${i.id}`)}>${i.title}</a>`:o`<span class="title">${i.title}</span>`}
|
|
3240
|
+
${i.hint?o`<span class="hint">${i.hint}</span>`:l}</span>
|
|
3241
|
+
<span class="tag" data-status=${i.status} id=${this.id_(`s-${i.id}`)}>${Gi[i.status]?S(Gi[i.status]):i.status}</span>
|
|
3242
|
+
</li>`)}</ul>`}};G.createProperty("manual",{state:!0});G.createProperty("postcode",{state:!0});G.createProperty("searched",{state:!0});G.createProperty("busy",{state:!0});te.createProperty("files",{state:!0});te.createProperty("over",{state:!0});te.createProperty("said",{state:!0});ke.createProperty("shown",{state:!0});customElements.define("impakt-address-lookup",G);customElements.define("impakt-error-summary",Bt);customElements.define("impakt-file-upload",te);customElements.define("impakt-money-input",ke);customElements.define("impakt-range-input",Nt);customElements.define("impakt-task-list",Ot);var Pt=class extends h{static{this.properties={label:{type:String},description:{type:String},href:{type:String},kind:{type:String,reflect:!0},look:{type:String,reflect:!0}}}constructor(){super(),this.label="",this.description="",this.href="",this.kind="static",this.look="default"}static{this.styles=[...h.styles,k,u`
|
|
3138
3243
|
:host {
|
|
3139
3244
|
display: inline-flex;
|
|
3140
3245
|
flex: none;
|
|
@@ -3175,14 +3280,14 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3175
3280
|
border-color: #ffffff;
|
|
3176
3281
|
}
|
|
3177
3282
|
.visually-hidden {
|
|
3178
|
-
${
|
|
3283
|
+
${T}
|
|
3179
3284
|
}
|
|
3180
3285
|
@media (forced-colors: active) {
|
|
3181
3286
|
.chip {
|
|
3182
3287
|
border-color: CanvasText;
|
|
3183
3288
|
}
|
|
3184
3289
|
}
|
|
3185
|
-
`]}press(){this.dispatchEvent(new CustomEvent("impakt-source",{detail:{label:this.label,description:this.description},bubbles:!0,composed:!0}))}render(){let e=this.description?this.description.includes(this.label)?this.description:`${this.label}: ${this.description}`:"",i=e||l;return this.href?
|
|
3290
|
+
`]}press(){this.dispatchEvent(new CustomEvent("impakt-source",{detail:{label:this.label,description:this.description},bubbles:!0,composed:!0}))}render(){let e=this.description?this.description.includes(this.label)?this.description:`${this.label}: ${this.description}`:"",i=e||l;return this.href?o`<a class="chip" part="chip" href=${this.href} aria-label=${i}>${this.label}</a>`:this.kind==="button"?o`<button class="chip" part="chip" type="button" aria-label=${i} @click=${this.press}>${this.label}</button>`:e?o`<span class="chip" part="chip"><span aria-hidden="true">${this.label}</span><span class="visually-hidden">${e}</span></span>`:o`<span class="chip" part="chip">${this.label}</span>`}};customElements.define("impakt-source",Pt);var qt=class extends h{static{this.properties={state:{type:String,reflect:!0},label:{type:String},look:{type:String,reflect:!0},size:{type:String,reflect:!0},verifiedText:{type:String,attribute:"verified-text"},unverifiedText:{type:String,attribute:"unverified-text"}}}constructor(){super(),this.state="verified",this.label="",this.look="default",this.size="tool",this.verifiedText="Checked by code",this.unverifiedText="Not verified \xB7 a person must check"}static{this.styles=[...h.styles,u`
|
|
3186
3291
|
/* It keeps its size in a row, but never grows past its container: at 320 the words wrap inside the mark (1.4.10). */
|
|
3187
3292
|
:host {
|
|
3188
3293
|
display: inline-flex;
|
|
@@ -3194,7 +3299,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3194
3299
|
.label {
|
|
3195
3300
|
display: inline-flex;
|
|
3196
3301
|
align-items: center;
|
|
3197
|
-
gap: ${
|
|
3302
|
+
gap: ${a(2)};
|
|
3198
3303
|
padding: 3px 8px;
|
|
3199
3304
|
font-family: ${t.fontMono};
|
|
3200
3305
|
font-size: ${f.small};
|
|
@@ -3259,13 +3364,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3259
3364
|
stroke: CanvasText;
|
|
3260
3365
|
}
|
|
3261
3366
|
}
|
|
3262
|
-
`]}render(){let e=this.state!=="unverified",i=e?
|
|
3367
|
+
`]}render(){let e=this.state!=="unverified",i=e?o`<svg class="mark" part="mark" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
|
|
3263
3368
|
<rect class="box" width="14" height="14"></rect>
|
|
3264
3369
|
<path class="tick" d="M3 7.5 6 10.5 11 3.5" fill="none" stroke-width="1.5"></path>
|
|
3265
|
-
</svg>`:
|
|
3370
|
+
</svg>`:o`<svg class="mark" part="mark" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
|
|
3266
3371
|
<rect class="box" x="0.5" y="0.5" width="13" height="13" stroke-width="1"></rect>
|
|
3267
3372
|
<path class="tick" d="M3.5 3.5 10.5 10.5M10.5 3.5 3.5 10.5" fill="none" stroke-width="1.5"></path>
|
|
3268
|
-
</svg>`,
|
|
3373
|
+
</svg>`,r=this.label||(e?this.verifiedText:this.unverifiedText);return o`<span class="label" part="label">${i}<span class="text"><slot>${r}</slot></span></span>`}};customElements.define("impakt-checked",qt);var Dt=class extends h{static{this.properties={tool:{type:String},home:{type:String},brand:{type:String},links:{type:Array},pagesLabel:{type:String,attribute:"pages-label"},switcher:{type:Array},switcherLabel:{type:String,attribute:"switcher-label"},toolsHref:{type:String,attribute:"tools-href"},organisation:{type:String},organisationItems:{type:Array,attribute:"organisation-items"},organisationHref:{type:String,attribute:"organisation-href"},signedOut:{type:Boolean,reflect:!0,attribute:"signed-out"},signInHref:{type:String,attribute:"sign-in-href"},signInText:{type:String,attribute:"sign-in-text"}}}constructor(){super(),this.tool="",this.home="/",this.brand="impakt",this.links=[],this.pagesLabel="Tool pages",this.switcher=[],this.switcherLabel="All tools",this.toolsHref="",this.organisation="Your organisation",this.organisationItems=[],this.organisationHref="",this.signedOut=!1,this.signInHref="/sign-in",this.signInText="Sign in"}static{this.styles=[...h.styles,k,C(".home, .pages a, .sign-in, a.org, .all"),u`
|
|
3269
3374
|
:host {
|
|
3270
3375
|
display: block;
|
|
3271
3376
|
container-type: inline-size;
|
|
@@ -3277,24 +3382,24 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3277
3382
|
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
3278
3383
|
grid-template-areas: 'start pages end';
|
|
3279
3384
|
align-items: center;
|
|
3280
|
-
gap: ${
|
|
3385
|
+
gap: ${a(2)} ${a(4)};
|
|
3281
3386
|
min-block-size: 56px;
|
|
3282
|
-
padding: ${
|
|
3387
|
+
padding: ${a(2)} ${a(4)};
|
|
3283
3388
|
color: ${t.text};
|
|
3284
3389
|
background: ${t.surfaceCard};
|
|
3285
|
-
border-block-end: 1px solid ${
|
|
3390
|
+
border-block-end: 1px solid ${d("color.line.grid","light-dark(#DCDCD8, #1F1F1F)")};
|
|
3286
3391
|
}
|
|
3287
3392
|
.start {
|
|
3288
3393
|
grid-area: start;
|
|
3289
3394
|
display: flex;
|
|
3290
3395
|
align-items: center;
|
|
3291
|
-
gap: ${
|
|
3396
|
+
gap: ${a(2.5)};
|
|
3292
3397
|
min-inline-size: 0;
|
|
3293
3398
|
}
|
|
3294
3399
|
.home {
|
|
3295
3400
|
display: inline-flex;
|
|
3296
3401
|
align-items: center;
|
|
3297
|
-
gap: ${
|
|
3402
|
+
gap: ${a(2.5)};
|
|
3298
3403
|
min-block-size: ${t.targetMin};
|
|
3299
3404
|
color: inherit;
|
|
3300
3405
|
text-decoration: none;
|
|
@@ -3340,9 +3445,9 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3340
3445
|
.pages a {
|
|
3341
3446
|
display: inline-flex;
|
|
3342
3447
|
align-items: center;
|
|
3343
|
-
gap: ${
|
|
3448
|
+
gap: ${a(1.5)};
|
|
3344
3449
|
min-block-size: 28px;
|
|
3345
|
-
padding: 0 ${
|
|
3450
|
+
padding: 0 ${a(2.5)};
|
|
3346
3451
|
font-weight: ${f.regular};
|
|
3347
3452
|
color: ${t.textMuted};
|
|
3348
3453
|
text-decoration: none;
|
|
@@ -3369,7 +3474,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3369
3474
|
flex-wrap: wrap;
|
|
3370
3475
|
align-items: center;
|
|
3371
3476
|
justify-content: flex-end;
|
|
3372
|
-
gap: ${
|
|
3477
|
+
gap: ${a(2)} ${a(3)};
|
|
3373
3478
|
min-inline-size: 0;
|
|
3374
3479
|
}
|
|
3375
3480
|
.all {
|
|
@@ -3384,7 +3489,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3384
3489
|
text-decoration: underline;
|
|
3385
3490
|
}
|
|
3386
3491
|
impakt-menu.switcher::part(trigger) {
|
|
3387
|
-
padding: ${
|
|
3492
|
+
padding: ${a(1)} ${a(1)};
|
|
3388
3493
|
font-family: ${t.fontBody};
|
|
3389
3494
|
font-size: ${f.small};
|
|
3390
3495
|
font-weight: ${f.regular};
|
|
@@ -3402,14 +3507,14 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3402
3507
|
}
|
|
3403
3508
|
/* The switcher's panel is 320 wide (53:960), so "Your account" and its note sit on one line. */
|
|
3404
3509
|
impakt-menu.switcher::part(panel) {
|
|
3405
|
-
min-inline-size: min(20rem, calc(100vw - 2 * ${
|
|
3510
|
+
min-inline-size: min(20rem, calc(100vw - 2 * ${a(4)}));
|
|
3406
3511
|
}
|
|
3407
3512
|
impakt-menu.org::part(trigger),
|
|
3408
3513
|
a.org,
|
|
3409
3514
|
.sign-in {
|
|
3410
3515
|
display: inline-flex;
|
|
3411
3516
|
align-items: center;
|
|
3412
|
-
gap: ${
|
|
3517
|
+
gap: ${a(2)};
|
|
3413
3518
|
padding: 9px 14px;
|
|
3414
3519
|
font-family: ${t.fontBody};
|
|
3415
3520
|
font-size: ${f.small};
|
|
@@ -3430,14 +3535,14 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3430
3535
|
.bar {
|
|
3431
3536
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
3432
3537
|
grid-template-areas: 'start end' 'pages pages';
|
|
3433
|
-
padding-block: ${
|
|
3538
|
+
padding-block: ${a(2)};
|
|
3434
3539
|
}
|
|
3435
3540
|
}
|
|
3436
3541
|
@container (max-width: 30rem) {
|
|
3437
3542
|
.bar {
|
|
3438
3543
|
grid-template-columns: minmax(0, 1fr);
|
|
3439
3544
|
grid-template-areas: 'start' 'end' 'pages';
|
|
3440
|
-
padding-inline: ${
|
|
3545
|
+
padding-inline: ${a(4)};
|
|
3441
3546
|
}
|
|
3442
3547
|
.end {
|
|
3443
3548
|
justify-content: flex-start;
|
|
@@ -3451,18 +3556,18 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3451
3556
|
border: 1px solid CanvasText;
|
|
3452
3557
|
}
|
|
3453
3558
|
}
|
|
3454
|
-
`]}renderPages(){return this.links.length?
|
|
3559
|
+
`]}renderPages(){return this.links.length?o`<nav class="pages" part="pages" aria-label=${this.pagesLabel}>
|
|
3455
3560
|
<ul>
|
|
3456
|
-
${this.links.map(e=>
|
|
3561
|
+
${this.links.map(e=>o`<li>
|
|
3457
3562
|
<a href=${e.href} aria-current=${e.current?"page":l}
|
|
3458
|
-
>${e.current?
|
|
3563
|
+
>${e.current?o`<span class="dot" aria-hidden="true"></span>`:l}${e.label}</a
|
|
3459
3564
|
>
|
|
3460
3565
|
</li>`)}
|
|
3461
3566
|
</ul>
|
|
3462
|
-
</nav>`:l}renderSwitcher(){return this.switcher.length?
|
|
3567
|
+
</nav>`:l}renderSwitcher(){return this.switcher.length?o`<impakt-menu class="switcher" edge="end" trigger-look="text" .label=${this.switcherLabel} .items=${this.switcher}></impakt-menu>`:this.toolsHref?o`<a class="all" href=${this.toolsHref}>${this.switcherLabel}</a>`:l}renderAccount(){return this.signedOut?o`<a class="sign-in" part="sign-in" href=${this.signInHref}>${this.signInText}</a>`:this.organisationItems.length?o`<impakt-menu class="org" edge="end" trigger-look="text" .label=${this.organisation} .items=${this.organisationItems}></impakt-menu>`:this.organisationHref?o`<a class="org" href=${this.organisationHref}>${this.organisation}</a>`:l}render(){return o`<header class="bar" part="bar">
|
|
3463
3568
|
<div class="start">
|
|
3464
3569
|
<a class="home" part="home" href=${this.home}><span class="mark" aria-hidden="true">i</span><span class="word">${this.brand}</span></a>
|
|
3465
|
-
${this.tool?
|
|
3570
|
+
${this.tool?o`<span class="sep" aria-hidden="true">/</span><span class="tool">${this.tool}</span>`:l}
|
|
3466
3571
|
</div>
|
|
3467
3572
|
${this.renderPages()}
|
|
3468
3573
|
<div class="end">
|
|
@@ -3470,13 +3575,13 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3470
3575
|
<slot name="tools">${this.renderSwitcher()}</slot>
|
|
3471
3576
|
${this.renderAccount()}
|
|
3472
3577
|
</div>
|
|
3473
|
-
</header>`}};customElements.define("impakt-app-bar",
|
|
3578
|
+
</header>`}};customElements.define("impakt-app-bar",Dt);var Hr=[{lang:"en",label:"EN",name:"English",href:"?lang=en"},{lang:"el",label:"EL",name:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",href:"?lang=el"},{lang:"ru",label:"RU",name:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",href:"?lang=ru"}],Ft=class extends h{static{this.properties={items:{type:Array},current:{type:String,reflect:!0},label:{type:String}}}constructor(){super(),this.items=Hr,this.current="en",this.label="Language"}static{this.styles=[...h.styles,k,C("a"),u`
|
|
3474
3579
|
:host {
|
|
3475
3580
|
display: inline-flex;
|
|
3476
3581
|
}
|
|
3477
3582
|
ul {
|
|
3478
3583
|
display: flex;
|
|
3479
|
-
gap: ${
|
|
3584
|
+
gap: ${a(1)};
|
|
3480
3585
|
margin: 0;
|
|
3481
3586
|
padding: 0;
|
|
3482
3587
|
list-style: none;
|
|
@@ -3489,7 +3594,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3489
3594
|
/* 48 by 34, as in the short-let bar (39:468). */
|
|
3490
3595
|
min-inline-size: 48px;
|
|
3491
3596
|
min-block-size: 34px;
|
|
3492
|
-
padding: 0 ${
|
|
3597
|
+
padding: 0 ${a(3)};
|
|
3493
3598
|
font-family: ${t.fontBody};
|
|
3494
3599
|
font-size: ${f.small};
|
|
3495
3600
|
font-weight: ${f.medium};
|
|
@@ -3507,7 +3612,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3507
3612
|
background: ${f.inverse};
|
|
3508
3613
|
}
|
|
3509
3614
|
.visually-hidden {
|
|
3510
|
-
${
|
|
3615
|
+
${T}
|
|
3511
3616
|
}
|
|
3512
3617
|
@media (forced-colors: active) {
|
|
3513
3618
|
a {
|
|
@@ -3517,20 +3622,20 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3517
3622
|
border-width: 3px;
|
|
3518
3623
|
}
|
|
3519
3624
|
}
|
|
3520
|
-
`]}render(){return
|
|
3625
|
+
`]}render(){return o`<nav part="nav" aria-label=${this.label}>
|
|
3521
3626
|
<ul>
|
|
3522
|
-
${this.items.map(e=>
|
|
3627
|
+
${this.items.map(e=>o`<li>
|
|
3523
3628
|
<a
|
|
3524
3629
|
part="link"
|
|
3525
3630
|
href=${e.href}
|
|
3526
3631
|
hreflang=${e.lang}
|
|
3527
3632
|
lang=${e.lang}
|
|
3528
3633
|
aria-current=${e.lang===this.current?"true":l}
|
|
3529
|
-
>${e.label}${e.name?
|
|
3634
|
+
>${e.label}${e.name?o`<span class="visually-hidden"> ${e.name}</span>`:l}</a
|
|
3530
3635
|
>
|
|
3531
3636
|
</li>`)}
|
|
3532
3637
|
</ul>
|
|
3533
|
-
</nav>`}};customElements.define("impakt-language-switch",
|
|
3638
|
+
</nav>`}};customElements.define("impakt-language-switch",Ft);var mi=(n,e,i)=>Math.min(i,Math.max(e,n)),Xi=(n,e,i)=>i>e?(mi(n,e,i)-e)/(i-e)*100:0,Yi=u`
|
|
3534
3639
|
.track {
|
|
3535
3640
|
position: relative;
|
|
3536
3641
|
display: block;
|
|
@@ -3560,7 +3665,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3560
3665
|
forced-color-adjust: none;
|
|
3561
3666
|
}
|
|
3562
3667
|
}
|
|
3563
|
-
`,
|
|
3668
|
+
`,jt=class extends h{static{this.properties={label:{type:String},value:{type:Number},min:{type:Number},max:{type:Number},valueText:{type:String,attribute:"value-text"},showValue:{type:Boolean,attribute:"show-value",reflect:!0}}}constructor(){super(),this.label="",this.value=0,this.min=0,this.max=100,this.valueText="",this.showValue=!1}static{this.styles=[...h.styles,Yi,u`
|
|
3564
3669
|
:host {
|
|
3565
3670
|
display: block;
|
|
3566
3671
|
}
|
|
@@ -3568,25 +3673,25 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3568
3673
|
display: flex;
|
|
3569
3674
|
flex-wrap: wrap;
|
|
3570
3675
|
justify-content: space-between;
|
|
3571
|
-
gap: ${
|
|
3572
|
-
margin-block-end: ${
|
|
3676
|
+
gap: ${a(1)} ${a(3)};
|
|
3677
|
+
margin-block-end: ${a(2)};
|
|
3573
3678
|
font-size: ${f.small};
|
|
3574
3679
|
}
|
|
3575
3680
|
.head:empty {
|
|
3576
3681
|
display: none;
|
|
3577
3682
|
}
|
|
3578
|
-
`]}render(){let e=
|
|
3683
|
+
`]}render(){let e=mi(this.value,this.min,this.max);return o`<div class="head">${this.label?o`<span class="label" id=${this.id_("label")}>${this.label}</span>`:l}${this.showValue?o`<span class="figure" aria-hidden="true">${this.valueText||e}</span>`:l}</div><span
|
|
3579
3684
|
class="track"
|
|
3580
3685
|
part="track"
|
|
3581
3686
|
role="meter"
|
|
3582
3687
|
aria-labelledby=${this.label?this.id_("label"):l}
|
|
3583
|
-
aria-label=${this.label?l:
|
|
3688
|
+
aria-label=${this.label?l:S("Meter")}
|
|
3584
3689
|
aria-valuemin=${this.min}
|
|
3585
3690
|
aria-valuemax=${this.max}
|
|
3586
3691
|
aria-valuenow=${e}
|
|
3587
3692
|
aria-valuetext=${this.valueText||l}
|
|
3588
|
-
><span class="fill" part="fill" style=${`inline-size:${
|
|
3589
|
-
></span>`}},
|
|
3693
|
+
><span class="fill" part="fill" style=${`inline-size:${Xi(e,this.min,this.max)}%`}></span
|
|
3694
|
+
></span>`}},Ut=class extends h{static{this.properties={label:{type:String},items:{type:Array},max:{type:Number}}}constructor(){super(),this.label="Scores",this.items=[],this.max=100}static{this.styles=[...h.styles,Yi,u`
|
|
3590
3695
|
:host {
|
|
3591
3696
|
display: block;
|
|
3592
3697
|
container-type: inline-size;
|
|
@@ -3600,8 +3705,8 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3600
3705
|
display: grid;
|
|
3601
3706
|
grid-template-columns: minmax(8rem, 12rem) minmax(4rem, 1fr) 3ch minmax(0, 7rem);
|
|
3602
3707
|
align-items: center;
|
|
3603
|
-
gap: ${
|
|
3604
|
-
padding-block: ${
|
|
3708
|
+
gap: ${a(2)} ${a(4)};
|
|
3709
|
+
padding-block: ${a(3)};
|
|
3605
3710
|
font-size: ${f.small};
|
|
3606
3711
|
}
|
|
3607
3712
|
.figure {
|
|
@@ -3618,22 +3723,22 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3618
3723
|
grid-column: 1 / -1;
|
|
3619
3724
|
}
|
|
3620
3725
|
}
|
|
3621
|
-
`]}render(){return
|
|
3622
|
-
${this.items.map((e,i)=>{let
|
|
3623
|
-
<span class="name" id=${
|
|
3624
|
-
<span class="track" part="track" role="meter" aria-labelledby=${
|
|
3625
|
-
><span class="fill" part="fill" style=${`inline-size:${
|
|
3726
|
+
`]}render(){return o`<ul part="list" role="list" aria-label=${this.label}>
|
|
3727
|
+
${this.items.map((e,i)=>{let r=e.max??this.max,s=mi(e.value,0,r),c=this.id_(`score-${i}`);return o`<li part="row">
|
|
3728
|
+
<span class="name" id=${c}>${e.label}</span>
|
|
3729
|
+
<span class="track" part="track" role="meter" aria-labelledby=${c} aria-valuemin="0" aria-valuemax=${r} aria-valuenow=${s}
|
|
3730
|
+
><span class="fill" part="fill" style=${`inline-size:${Xi(s,0,r)}%`}></span
|
|
3626
3731
|
></span>
|
|
3627
|
-
<span class="figure" aria-hidden="true">${
|
|
3628
|
-
<span class="pill">${e.status?
|
|
3732
|
+
<span class="figure" aria-hidden="true">${s}</span>
|
|
3733
|
+
<span class="pill">${e.status?o`<impakt-status tone=${e.tone??"warn"}>${e.status}</impakt-status>`:l}</span>
|
|
3629
3734
|
</li>`})}
|
|
3630
|
-
</ul>`}};customElements.define("impakt-meter",
|
|
3735
|
+
</ul>`}};customElements.define("impakt-meter",jt);customElements.define("impakt-score-bars",Ut);var Wt=class extends h{static{this.properties={removed:{type:String},added:{type:String},lines:{type:Array},label:{type:String},removedText:{type:String,attribute:"removed-text"},addedText:{type:String,attribute:"added-text"}}}constructor(){super(),this.removed="",this.added="",this.lines=[],this.label="Code change",this.removedText="Removed",this.addedText="Added"}static{this.styles=[...h.styles,k,u`
|
|
3631
3736
|
:host {
|
|
3632
3737
|
display: block;
|
|
3633
3738
|
}
|
|
3634
3739
|
.block {
|
|
3635
3740
|
overflow-x: auto;
|
|
3636
|
-
padding: ${
|
|
3741
|
+
padding: ${a(4)} ${a(4)};
|
|
3637
3742
|
color: ${f.codeText};
|
|
3638
3743
|
background: ${f.codeSurface};
|
|
3639
3744
|
border-radius: 0;
|
|
@@ -3663,15 +3768,15 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3663
3768
|
color: ${f.codeText};
|
|
3664
3769
|
}
|
|
3665
3770
|
.visually-hidden {
|
|
3666
|
-
${
|
|
3771
|
+
${T}
|
|
3667
3772
|
}
|
|
3668
3773
|
@media (forced-colors: active) {
|
|
3669
3774
|
.block {
|
|
3670
3775
|
border: 1px solid CanvasText;
|
|
3671
3776
|
}
|
|
3672
3777
|
}
|
|
3673
|
-
`]}get allLines(){if(this.lines.length)return this.lines;let e=(i,
|
|
3674
|
-
`).map(
|
|
3778
|
+
`]}get allLines(){if(this.lines.length)return this.lines;let e=(i,r)=>i?i.split(`
|
|
3779
|
+
`).map(s=>({kind:r,text:s})):[];return[...e(this.removed,"removed"),...e(this.added,"added")]}render(){let e={removed:"\u2212",added:"+",context:" "},i={removed:this.removedText,added:this.addedText,context:""};return o`<div class="block" part="block" role="region" aria-label=${this.label} tabindex="0"><pre part="code"><code>${this.allLines.map(r=>o`<span class="line ${r.kind}"><span class="sign" aria-hidden="true">${e[r.kind]}</span>${i[r.kind]?o`<span class="visually-hidden">${i[r.kind]}: </span>`:l}${r.text}</span>`)}</code></pre></div>`}};customElements.define("impakt-code-diff",Wt);var Vt=class extends x{static{this.properties={...x.properties,options:{type:Array},values:{type:Array},multiple:{type:Boolean,reflect:!0},look:{type:String,reflect:!0},missingText:{type:String,attribute:"missing-text"}}}constructor(){super(),this.options=[],this.values=[],this.multiple=!1,this.look="default",this.missingText="Choose an option"}static{this.styles=[...x.styles,u`
|
|
3675
3780
|
fieldset {
|
|
3676
3781
|
border: 0;
|
|
3677
3782
|
margin: 0;
|
|
@@ -3687,19 +3792,19 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3687
3792
|
font-weight: ${f.medium};
|
|
3688
3793
|
text-transform: uppercase;
|
|
3689
3794
|
letter-spacing: 0.06em;
|
|
3690
|
-
margin-block-end: ${
|
|
3795
|
+
margin-block-end: ${a(2)};
|
|
3691
3796
|
}
|
|
3692
3797
|
.chips {
|
|
3693
3798
|
display: flex;
|
|
3694
3799
|
flex-wrap: wrap;
|
|
3695
|
-
gap: ${
|
|
3800
|
+
gap: ${a(1.5)};
|
|
3696
3801
|
}
|
|
3697
3802
|
.chip {
|
|
3698
3803
|
position: relative;
|
|
3699
3804
|
display: inline-flex;
|
|
3700
3805
|
align-items: center;
|
|
3701
3806
|
min-block-size: 35px;
|
|
3702
|
-
padding: 0 ${
|
|
3807
|
+
padding: 0 ${a(3)};
|
|
3703
3808
|
font-family: ${t.fontBody};
|
|
3704
3809
|
font-size: ${f.small};
|
|
3705
3810
|
color: ${t.text};
|
|
@@ -3755,29 +3860,29 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3755
3860
|
outline-color: Highlight;
|
|
3756
3861
|
}
|
|
3757
3862
|
}
|
|
3758
|
-
`]}renderLabel(){return
|
|
3759
|
-
${this.label}${this.required?
|
|
3760
|
-
</legend>`}chosen(e){return this.multiple?this.values.includes(e):this.value===e}choose(e,i){if(this.multiple){let
|
|
3761
|
-
${this.options.map((i,
|
|
3863
|
+
`]}renderLabel(){return o`<legend class="label" part="label">
|
|
3864
|
+
${this.label}${this.required?o`<span class="required"> (${this.requiredText})</span>`:l}
|
|
3865
|
+
</legend>`}chosen(e){return this.multiple?this.values.includes(e):this.value===e}choose(e,i){if(this.multiple){let r=i?[...this.values,e]:this.values.filter(s=>s!==e);this.values=this.options.filter(s=>r.includes(s.value)).map(s=>s.value),this.setFormValue(this.values.join(","))}else this.setFormValue(e);this.syncValidity()}syncValidity(){let e=this.multiple?this.values.length===0:!this.value;try{if(this.required&&e){let i=this.renderRoot?.querySelector?.("input")??void 0;this.internals?.setValidity({valueMissing:!0},this.missingText,i)}else this.internals?.setValidity({})}catch{}}renderControl(){let e=this.multiple?"checkbox":"radio";return o`<div class="chips">
|
|
3866
|
+
${this.options.map((i,r)=>{let s=this.chosen(i.value);return o`<label class="chip ${s?"on":""}" part="chip">
|
|
3762
3867
|
<input
|
|
3763
3868
|
type=${e}
|
|
3764
|
-
id=${
|
|
3869
|
+
id=${r===0?this.controlId:this.id_(`opt-${r}`)}
|
|
3765
3870
|
name=${this.uid}
|
|
3766
3871
|
value=${i.value}
|
|
3767
|
-
.checked=${
|
|
3872
|
+
.checked=${s}
|
|
3768
3873
|
?disabled=${this.disabled}
|
|
3769
|
-
?required=${!this.multiple&&this.required&&
|
|
3770
|
-
@change=${
|
|
3874
|
+
?required=${!this.multiple&&this.required&&r===0}
|
|
3875
|
+
@change=${c=>this.choose(i.value,c.target.checked)}
|
|
3771
3876
|
/><span>${i.label}</span>
|
|
3772
3877
|
</label>`})}
|
|
3773
|
-
</div>`}render(){return
|
|
3878
|
+
</div>`}render(){return o`
|
|
3774
3879
|
<fieldset part="fieldset" aria-describedby=${this.describedBy} aria-invalid=${this.error?"true":l}>
|
|
3775
3880
|
${this.renderLabel()}
|
|
3776
|
-
${this.description?
|
|
3881
|
+
${this.description?o`<div class="description" id=${this.id_("description")} part="description">${this.description}</div>`:l}
|
|
3777
3882
|
${this.renderControl()}
|
|
3778
3883
|
<div class="error" id=${this.id_("error")} part="error" aria-live="polite">${this.error||l}</div>
|
|
3779
3884
|
</fieldset>
|
|
3780
|
-
`}firstUpdated(){let e=this.multiple?this.values.join(","):this.value;this.internals?.setFormValue(e||null),this.syncValidity()}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error),(e.has("required")||e.has("multiple"))&&this.syncValidity()}formResetCallback(){this.value="",this.values=[],this.internals?.setFormValue(null),this.syncValidity()}};customElements.define("impakt-chip-group",
|
|
3885
|
+
`}firstUpdated(){let e=this.multiple?this.values.join(","):this.value;this.internals?.setFormValue(e||null),this.syncValidity()}updated(e){e.has("error")&&this.toggleAttribute("invalid",!!this.error),(e.has("required")||e.has("multiple"))&&this.syncValidity()}formResetCallback(){this.value="",this.values=[],this.internals?.setFormValue(null),this.syncValidity()}};customElements.define("impakt-chip-group",Vt);var Kt=class extends h{static{this.properties={label:{type:String},look:{type:String,reflect:!0},redactedText:{type:String,attribute:"redacted-text"}}}constructor(){super(),this.label="",this.look="solid",this.redactedText="Redacted"}static{this.styles=[...h.styles,u`
|
|
3781
3886
|
:host {
|
|
3782
3887
|
display: inline;
|
|
3783
3888
|
}
|
|
@@ -3802,23 +3907,23 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3802
3907
|
border-color: ${t.text};
|
|
3803
3908
|
}
|
|
3804
3909
|
.visually-hidden {
|
|
3805
|
-
${
|
|
3910
|
+
${T}
|
|
3806
3911
|
}
|
|
3807
3912
|
@media (forced-colors: active) {
|
|
3808
3913
|
.tag {
|
|
3809
3914
|
border-color: CanvasText;
|
|
3810
3915
|
}
|
|
3811
3916
|
}
|
|
3812
|
-
`]}render(){return
|
|
3917
|
+
`]}render(){return o`<span class="tag" part="tag"><span class="visually-hidden">${this.redactedText}: </span>${this.label}</span>`}};customElements.define("impakt-redaction",Kt);var Gt=class extends h{static{this.properties={name:{type:String},description:{type:String},status:{type:String},statusTone:{type:String,attribute:"status-tone"},note:{type:String},href:{type:String},actionLabel:{type:String,attribute:"action-label"},owned:{type:Boolean,reflect:!0},state:{type:String,reflect:!0},headingLevel:{type:Number,attribute:"heading-level"},comingSoonText:{type:String,attribute:"coming-soon-text"},notOpenText:{type:String,attribute:"not-open-text"}}}constructor(){super(),this.name="",this.description="",this.status="",this.statusTone="ok",this.note="",this.href="",this.actionLabel="",this.owned=!1,this.state="open",this.headingLevel=3,this.comingSoonText="Coming soon",this.notOpenText="Not open yet."}static{this.styles=[...h.styles,k,u`
|
|
3813
3918
|
:host {
|
|
3814
3919
|
display: block;
|
|
3815
3920
|
}
|
|
3816
3921
|
.card {
|
|
3817
3922
|
display: flex;
|
|
3818
3923
|
flex-direction: column;
|
|
3819
|
-
gap: ${
|
|
3924
|
+
gap: ${a(4)};
|
|
3820
3925
|
block-size: 100%;
|
|
3821
|
-
padding: ${
|
|
3926
|
+
padding: ${a(6)};
|
|
3822
3927
|
background: ${t.surfaceCard};
|
|
3823
3928
|
border: 1px solid ${t.text};
|
|
3824
3929
|
border-radius: 0;
|
|
@@ -3847,7 +3952,7 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3847
3952
|
display: flex;
|
|
3848
3953
|
flex-wrap: wrap;
|
|
3849
3954
|
align-items: center;
|
|
3850
|
-
gap: ${
|
|
3955
|
+
gap: ${a(2)} ${a(2.5)};
|
|
3851
3956
|
}
|
|
3852
3957
|
.note {
|
|
3853
3958
|
font-family: ${t.fontMono};
|
|
@@ -3863,12 +3968,12 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3863
3968
|
display: flex;
|
|
3864
3969
|
align-items: center;
|
|
3865
3970
|
justify-content: space-between;
|
|
3866
|
-
gap: ${
|
|
3971
|
+
gap: ${a(3)};
|
|
3867
3972
|
min-block-size: 46px;
|
|
3868
3973
|
margin-block-start: auto;
|
|
3869
|
-
padding: ${
|
|
3974
|
+
padding: ${a(2.5)} ${a(5)};
|
|
3870
3975
|
font-family: ${t.fontBody};
|
|
3871
|
-
font-size: ${
|
|
3976
|
+
font-size: ${d("font.size.md","1rem")};
|
|
3872
3977
|
color: ${t.text};
|
|
3873
3978
|
background: ${t.surfaceCard};
|
|
3874
3979
|
border: 1px solid ${t.text};
|
|
@@ -3895,16 +4000,16 @@ var Wt=globalThis,ci=n=>n,$e=Wt.trustedTypes,pi=$e?$e.createPolicy("lit-html",{c
|
|
|
3895
4000
|
border-color: CanvasText;
|
|
3896
4001
|
}
|
|
3897
4002
|
}
|
|
3898
|
-
`]}renderStatus(){return this.state==="coming-soon"?
|
|
3899
|
-
<p class="muted">${this.notOpenText}</p>`:!this.status&&!this.note?l:
|
|
3900
|
-
${this.status?
|
|
3901
|
-
${this.note?
|
|
3902
|
-
</div>`}render(){let e=Math.min(6,Math.max(2,Number(this.headingLevel)||3)),i=this.actionLabel||`Open ${this.name}`;return
|
|
4003
|
+
`]}renderStatus(){return this.state==="coming-soon"?o`<div class="status"><impakt-status tone="neutral">${this.comingSoonText}</impakt-status></div>
|
|
4004
|
+
<p class="muted">${this.notOpenText}</p>`:!this.status&&!this.note?l:o`<div class="status">
|
|
4005
|
+
${this.status?o`<impakt-status tone=${this.statusTone}>${this.status}</impakt-status>`:l}
|
|
4006
|
+
${this.note?o`<span class="note">${this.note}</span>`:l}
|
|
4007
|
+
</div>`}render(){let e=Math.min(6,Math.max(2,Number(this.headingLevel)||3)),i=this.actionLabel||`Open ${this.name}`;return o`<article class="card" part="card" aria-labelledby=${this.id_("name")}>
|
|
3903
4008
|
<div class="name" role="heading" aria-level=${e} id=${this.id_("name")}>${this.name}</div>
|
|
3904
|
-
${this.description?
|
|
4009
|
+
${this.description?o`<p class="description">${this.description}</p>`:l}
|
|
3905
4010
|
${this.renderStatus()}
|
|
3906
|
-
${this.state!=="coming-soon"&&this.href?
|
|
3907
|
-
</article>`}};customElements.define("impakt-tool-card",
|
|
4011
|
+
${this.state!=="coming-soon"&&this.href?o`<a class="action" part="action" href=${this.href}><span>${i}</span><span class="arrow" aria-hidden="true">→</span></a>`:l}
|
|
4012
|
+
</article>`}};customElements.define("impakt-tool-card",Gt);export{fe as CYCLE,x as FieldElement,si as ICONS,fr as ICON_NAMES,lt as ImpaktAccordion,G as ImpaktAddressLookup,Xe as ImpaktAlert,Dt as ImpaktAppBar,Pe as ImpaktAppShell,It as ImpaktAvatar,Rt as ImpaktAvatarGroup,pt as ImpaktBadge,vt as ImpaktBreadcrumbs,Re as ImpaktButton,Je as ImpaktCard,Be as ImpaktCheckbox,ut as ImpaktCheckboxGroup,qt as ImpaktChecked,ct as ImpaktChip,Vt as ImpaktChipGroup,Wt as ImpaktCodeDiff,mt as ImpaktDateInput,je as ImpaktDateTile,gt as ImpaktDialog,wt as ImpaktDivider,rt as ImpaktDocumentLink,Et as ImpaktDrawer,h as ImpaktElement,_t as ImpaktEmptyState,Bt as ImpaktErrorSummary,Mt as ImpaktFieldset,te as ImpaktFileUpload,We as ImpaktFilterChip,ft as ImpaktGrid,Ze as ImpaktHeading,$t as ImpaktHelp,Ie as ImpaktIcon,tt as ImpaktImage,Ft as ImpaktLanguageSwitch,et as ImpaktLink,bt as ImpaktList,it as ImpaktLogo,Ct as ImpaktMenu,jt as ImpaktMeter,ke as ImpaktMoneyInput,kt as ImpaktNav,xt as ImpaktPage,Lt as ImpaktPagination,at as ImpaktPrice,dt as ImpaktProgress,Ge as ImpaktRadioGroup,Nt as ImpaktRangeInput,Kt as ImpaktRedaction,Ue as ImpaktRow,Ut as ImpaktScoreBars,yt as ImpaktSection,Ke as ImpaktSegmentedControl,He as ImpaktSelect,Ne as ImpaktSideNav,Ht as ImpaktSlotPicker,Pt as ImpaktSource,St as ImpaktSpacer,Ye as ImpaktStack,Fe as ImpaktStatTile,qe as ImpaktStatus,ot as ImpaktSummaryList,Ve as ImpaktSwitch,Oe as ImpaktTabBar,st as ImpaktTable,zt as ImpaktTabs,Ot as ImpaktTaskList,Qe as ImpaktText,_e as ImpaktTextInput,ht as ImpaktTextarea,At as ImpaktToast,Gt as ImpaktToolCard,Tt as ImpaktVisuallyHidden,W as LitElement,be as TONE,me as announceNavigate,qi as base,u as css,D as fieldWidths,k as focusRing,b as fontSize,m as fontWeight,hi as groupDigits,Di as hideOn,o as html,M as iconSvg,li as isCurrent,P as lineHeight,ye as lockScroll,O as noChange,l as nothing,q as pageLocale,Pi as reducedMotion,ce as render,S as say,a as space,N as spaceAround,y as svg,t,z as targetSize,d as token,di as toneOf,C as touchTarget,w as type,ee as unlockScroll,L as unsafeCSS,T as visuallyHidden};
|
|
3908
4013
|
/*! Bundled license information:
|
|
3909
4014
|
|
|
3910
4015
|
lit-html/lit-html.js:
|