@atomic-ui/ui 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /* @atomic-ui/ui version 0.10.0, standalone. */
1
+ /* @atomic-ui/ui version 0.10.1, standalone. */
2
2
  var At=globalThis,Vt=a=>a,me=At.trustedTypes,Kt=me?me.createPolicy("lit-html",{createHTML:a=>a}):void 0,Ct="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,_t="?"+O,vr=`<${_t}>`,W=document,Q=()=>W.createComment(""),ee=a=>a===null||typeof a!="object"&&typeof a!="function",Rt=Array.isArray,Qt=a=>Rt(a)||typeof a?.[Symbol.iterator]=="function",Mt=`[
3
3
  \f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xt=/-->/g,Gt=/>/g,U=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
4
4
  \f\r"'\`<>=]|("|')|))|$)`,"g"),Yt=/'/g,Zt=/"/g,er=/^(?:script|style|textarea|title)$/i,Lt=a=>(e,...r)=>({_$litType$:a,strings:e,values:r}),n=Lt(1),y=Lt(2),ri=Lt(3),L=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),Jt=new WeakMap,j=W.createTreeWalker(W,129);function tr(a,e){if(!Rt(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Kt!==void 0?Kt.createHTML(e):e}var rr=(a,e)=>{let r=a.length-1,i=[],o,d=e===2?"<svg>":e===3?"<math>":"",c=J;for(let $=0;$<r;$++){let g=a[$],k,A,E=-1,N=0;for(;N<g.length&&(c.lastIndex=N,A=c.exec(g),A!==null);)N=c.lastIndex,c===J?A[1]==="!--"?c=Xt:A[1]!==void 0?c=Gt:A[2]!==void 0?(er.test(A[2])&&(o=RegExp("</"+A[2],"g")),c=U):A[3]!==void 0&&(c=U):c===U?A[0]===">"?(c=o??J,E=-1):A[1]===void 0?E=-2:(E=c.lastIndex-A[2].length,k=A[1],c=A[3]===void 0?U:A[3]==='"'?Zt:Yt):c===Zt||c===Yt?c=U:c===Xt||c===Gt?c=J:(c=U,o=void 0);let q=c===U&&a[$+1].startsWith("/>")?" ":"";d+=c===J?g+vr:E>=0?(i.push(k),g.slice(0,E)+Ct+g.slice(E)+O+q):g+O+(E===-2?$:q)}return[tr(a,d+(a[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},te=class a{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let d=0,c=0,$=e.length-1,g=this.parts,[k,A]=rr(e,r);if(this.el=a.createElement(k,i),j.currentNode=this.el.content,r===2||r===3){let E=this.el.content.firstChild;E.replaceWith(...E.childNodes)}for(;(o=j.nextNode())!==null&&g.length<$;){if(o.nodeType===1){if(o.hasAttributes())for(let E of o.getAttributeNames())if(E.endsWith(Ct)){let N=A[c++],q=o.getAttribute(E).split(O),ue=/([.?@])?(.*)/.exec(N);g.push({type:1,index:d,name:ue[2],strings:q,ctor:ue[1]==="."?be:ue[1]==="?"?fe:ue[1]==="@"?$e:K}),o.removeAttribute(E)}else E.startsWith(O)&&(g.push({type:6,index:d}),o.removeAttribute(E));if(er.test(o.tagName)){let E=o.textContent.split(O),N=E.length-1;if(N>0){o.textContent=me?me.emptyScript:"";for(let q=0;q<N;q++)o.append(E[q],Q()),j.nextNode(),g.push({type:2,index:++d});o.append(E[N],Q())}}}else if(o.nodeType===8)if(o.data===_t)g.push({type:2,index:d});else{let E=-1;for(;(E=o.data.indexOf(O,E+1))!==-1;)g.push({type:7,index:d}),E+=O.length-1}d++}}static createElement(e,r){let i=W.createElement("template");return i.innerHTML=e,i}};function V(a,e,r=a,i){if(e===L)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,d=ee(e)?void 0:e._$litDirective$;return o?.constructor!==d&&(o?._$AO?.(!1),d===void 0?o=void 0:(o=new d(a),o._$AT(a,r,i)),i!==void 0?(r._$Co??=[])[i]=o:r._$Cl=o),o!==void 0&&(e=V(a,o._$AS(a,e.values),o,i)),e}var ge=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,o=(e?.creationScope??W).importNode(r,!0);j.currentNode=o;let d=j.nextNode(),c=0,$=0,g=i[0];for(;g!==void 0;){if(c===g.index){let k;g.type===2?k=new Y(d,d.nextSibling,this,e):g.type===1?k=new g.ctor(d,g.name,g.strings,this,e):g.type===6&&(k=new ye(d,this,e)),this._$AV.push(k),g=i[++$]}c!==g?.index&&(d=j.nextNode(),c++)}return j.currentNode=W,o}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Y=class a{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,o){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=V(this,e,r),ee(e)?e===l||e==null||e===""?(this._$AH!==l&&this._$AR(),this._$AH=l):e!==this._$AH&&e!==L&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Qt(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&&ee(this._$AH)?this._$AA.nextSibling.data=e:this.T(W.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=te.createElement(tr(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let d=new ge(o,this),c=d.u(this.options);d.p(r),this.T(c),this._$AH=d}}_$AC(e){let r=Jt.get(e.strings);return r===void 0&&Jt.set(e.strings,r=new te(e)),r}k(e){Rt(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,o=0;for(let d of e)o===r.length?r.push(i=new a(this.O(Q()),this.O(Q()),this,this.options)):i=r[o],i._$AI(d),o++;o<r.length&&(this._$AR(i&&i._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Vt(e).nextSibling;Vt(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},K=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,d){this.type=1,this._$AH=l,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=d,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=l}_$AI(e,r=this,i,o){let d=this.strings,c=!1;if(d===void 0)e=V(this,e,r,0),c=!ee(e)||e!==this._$AH&&e!==L,c&&(this._$AH=e);else{let $=e,g,k;for(e=d[0],g=0;g<d.length-1;g++)k=V(this,$[i+g],r,g),k===L&&(k=this._$AH[g]),c||=!ee(k)||k!==this._$AH[g],k===l?e=l:e!==l&&(e+=(k??"")+d[g+1]),this._$AH[g]=k}c&&!o&&this.j(e)}j(e){e===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},be=class extends K{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===l?void 0:e}},fe=class extends K{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==l)}},$e=class extends K{constructor(e,r,i,o,d){super(e,r,i,o,d),this.type=5}_$AI(e,r=this){if((e=V(this,e,r,0)??l)===L)return;let i=this._$AH,o=e===l&&i!==l||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,d=e!==l&&(i===l||o);o&&this.element.removeEventListener(this.name,this,i),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)}},ye=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){V(this,e)}},C={M:Ct,P:O,A:_t,C:1,L:rr,R:ge,D:Qt,V,I:Y,H:K,N:fe,U:$e,B:be,F:ye},wr=At.litHtmlPolyfillSupport;wr?.(te,Y),(At.litHtmlVersions??=[]).push("3.3.3");var re=(a,e,r)=>{let i=r?.renderBefore??e,o=i._$litPart$;if(o===void 0){let d=r?.renderBefore??null;i._$litPart$=o=new Y(e.insertBefore(Q(),d),d,void 0,r??{})}return o._$AI(a),o};var It=null,ir={boundAttributeSuffix:C.M,marker:C.P,markerMatch:C.A,HTML_RESULT:C.C,getTemplateHtml:C.L,overrideDirectiveResolve:(a,e)=>class extends a{_$AS(r,i){return e(this,i)}},patchDirectiveResolve:(a,e)=>{if(a.prototype._$AS.name!==e.name){It??=a.prototype._$AS.name;for(let r=a.prototype;r!==Object.prototype;r=Object.getPrototypeOf(r))if(r.hasOwnProperty(It))return void(r[It]=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(a,e){a._$litDirective$=e},getAttributePartCommittedValue:(a,e,r)=>{let i=L;return a.j=o=>i=o,a._$AI(e,a,r),i},connectedDisconnectable:a=>({...a,_$AU:!0}),resolveDirective:C.V,AttributePart:C.H,PropertyPart:C.B,BooleanAttributePart:C.N,EventPart:C.U,ElementPart:C.F,TemplateInstance:C.R,isIterable:C.D,ChildPart:C.I};var Z={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6};var{I:di}=C;var sr=a=>a===null||typeof a!="object"&&typeof a!="function";var ar=(a,e)=>e===void 0?a?._$litType$!==void 0:a?._$litType$===e,or=a=>a?._$litType$?.h!=null;var nr=a=>a.strings===void 0;var{TemplateInstance:Sr,isIterable:Tr,resolveDirective:dr,ChildPart:ie,ElementPart:zr}=ir,cr=(a,e,r={})=>{if(e._$litPart$!==void 0)throw Error("container already contains a live render");let i,o,d,c=[],$=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),g;for(;(g=$.nextNode())!==null;){let k=g.data;if(k.startsWith("lit-part")){if(c.length===0&&i!==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=Er(a,g,c,r),i===void 0&&(i=d),o??=g}else if(k.startsWith("lit-node"))Ar(g,c,r);else if(k.startsWith("/lit-part")){if(c.length===1&&d!==i)throw Error("internal error");d=Mr(g,d,c)}}if(i===void 0){let k=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 ${k}.`)}e._$litPart$=i},Er=(a,e,r,i)=>{let o,d;if(r.length===0)d=new ie(e,null,void 0,i),o=a;else{let c=r[r.length-1];if(c.type==="template-instance")d=new ie(e,null,c.instance,i),c.instance._$AV.push(d),o=c.result.values[c.instancePartIndex++],c.templatePartIndex++;else if(c.type==="iterable"){d=new ie(e,null,c.part,i);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 ie(e,null,c.part,i)}if(o=dr(d,o),o===L)r.push({part:d,type:"leaf"});else if(sr(o))r.push({part:d,type:"leaf"}),d._$AH=o;else if(ar(o)){if(or(o))throw Error("compiled templates are not supported");let c="lit-part "+Cr(o);if(e.data!==c)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{let $=ie.prototype._$AC(o),g=new Sr($,d);r.push({type:"template-instance",instance:g,part:d,templatePartIndex:0,instancePartIndex:0,result:o}),d._$AH=g}}else Tr(o)?(r.push({part:d,type:"iterable",value:o,iterator:o[Symbol.iterator](),done:!1}),d._$AH=[]):(r.push({part:d,type:"leaf"}),d._$AH=o??"");return d},Mr=(a,e,r)=>{if(e===void 0)throw Error("unbalanced part marker");e._$AB=a;let i=r.pop();if(i.type==="iterable"&&!i.iterator.next().done)throw Error("unexpected longer than expected iterable");if(r.length>0)return r[r.length-1].part},Ar=(a,e,r)=>{let i=/lit-node (\d+)/.exec(a.data),o=parseInt(i[1]),d=a.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!==Z.ATTRIBUTE&&g.type!==Z.ELEMENT||g.index!==o)break;if(g.type===Z.ATTRIBUTE){let k=new g.ctor(d,g.name,g.strings,c.instance,r),A=nr(k)?c.result.values[c.instancePartIndex]:c.result.values,E=!(k.type===Z.EVENT||k.type===Z.PROPERTY);k._$AI(A,k,c.instancePartIndex,E),c.instancePartIndex+=g.strings.length-1,$._$AV.push(k)}else{let k=new zr(d,c.instance,r);dr(k,c.result.values[c.instancePartIndex++]),$._$AV.push(k)}c.templatePartIndex++}}},lr=new WeakMap,Cr=a=>{let e=lr.get(a.strings);if(e!==void 0)return e;let r=new Uint32Array(2).fill(5381);for(let o of a.strings)for(let d=0;d<o.length;d++)r[d%2]=33*r[d%2]^o.charCodeAt(d);let i=String.fromCharCode(...new Uint8Array(r.buffer));return e=btoa(i),lr.set(a.strings,e),e};globalThis.litElementHydrateSupport=({LitElement:a})=>{let e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"observedAttributes").get;Object.defineProperty(a,"observedAttributes",{get(){return[...e.call(this),"defer-hydration"]}});let r=a.prototype.attributeChangedCallback;a.prototype.attributeChangedCallback=function(c,$,g){c==="defer-hydration"&&g===null&&i.call(this),r.call(this,c,$,g)};let i=a.prototype.connectedCallback;a.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||i.call(this)};let o=a.prototype.createRenderRoot;a.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):o.call(this)};let d=Object.getPrototypeOf(a.prototype).update;a.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 k=g.slice(18);this.removeAttribute(k),this.removeAttribute(g)}cr($,this.renderRoot,this.renderOptions)}else re($,this.renderRoot,this.renderOptions)}};var xe=globalThis,ke=xe.ShadowRoot&&(xe.ShadyCSS===void 0||xe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ht=Symbol(),pr=new WeakMap,se=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Ht)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(ke&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=pr.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&pr.set(r,e))}return e}toString(){return this.cssText}},_=a=>new se(typeof a=="string"?a:a+"",void 0,Ht),h=(a,...e)=>{let r=a.length===1?a[0]:e.reduce((i,o,d)=>i+(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)+a[d+1],a[0]);return new se(r,a,Ht)},hr=(a,e)=>{if(ke)a.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),o=xe.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,a.appendChild(i)}},Bt=ke?a=>a:a=>a instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return _(r)})(a):a;var{is:_r,defineProperty:Rr,getOwnPropertyDescriptor:Lr,getOwnPropertyNames:Ir,getOwnPropertySymbols:Hr,getPrototypeOf:Br}=Object,ve=globalThis,ur=ve.trustedTypes,Nr=ur?ur.emptyScript:"",Or=ve.reactiveElementPolyfillSupport,ae=(a,e)=>a,Nt={toAttribute(a,e){switch(e){case Boolean:a=a?Nr:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,e){let r=a;switch(e){case Boolean:r=a!==null;break;case Number:r=a===null?null:Number(a);break;case Object:case Array:try{r=JSON.parse(a)}catch{r=null}}return r}},gr=(a,e)=>!_r(a,e),mr={attribute:!0,type:String,converter:Nt,reflect:!1,useDefault:!1,hasChanged:gr};Symbol.metadata??=Symbol("metadata"),ve.litPropertyMetadata??=new WeakMap;var P=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,r=mr){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),o=this.getPropertyDescriptor(e,i,r);o!==void 0&&Rr(this.prototype,e,o)}}static getPropertyDescriptor(e,r,i){let{get:o,set:d}=Lr(this.prototype,e)??{get(){return this[r]},set(c){this[r]=c}};return{get:o,set(c){let $=o?.call(this);d?.call(this,c),this.requestUpdate(e,$,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??mr}static _$Ei(){if(this.hasOwnProperty(ae("elementProperties")))return;let e=Br(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ae("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ae("properties"))){let r=this.properties,i=[...Ir(r),...Hr(r)];for(let o of i)this.createProperty(o,r[o])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,o]of r)this.elementProperties.set(i,o)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let o=this._$Eu(r,i);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let o of i)r.unshift(Bt(o))}else e!==void 0&&r.push(Bt(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i: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,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return hr(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,r,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){let d=(i.converter?.toAttribute!==void 0?i.converter:Nt).toAttribute(r,i.type);this._$Em=e,d==null?this.removeAttribute(o):this.setAttribute(o,d),this._$Em=null}}_$AK(e,r){let i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let d=i.getPropertyOptions(o),c=typeof d.converter=="function"?{fromAttribute:d.converter}:d.converter?.fromAttribute!==void 0?d.converter:Nt;this._$Em=o;let $=c.fromAttribute(r,d.type);this[o]=$??this._$Ej?.get(o)??$,this._$Em=null}}requestUpdate(e,r,i,o=!1,d){if(e!==void 0){let c=this.constructor;if(o===!1&&(d=this[e]),i??=c.getPropertyOptions(e),!((i.hasChanged??gr)(d,r)||i.useDefault&&i.reflect&&d===this._$Ej?.get(e)&&!this.hasAttribute(c._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:o,wrapped:d},c){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,c??r??this[e]),d!==!0||c!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}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 i=this.constructor.elementProperties;if(i.size>0)for(let[o,d]of i){let{wrapped:c}=d,$=this[o];c!==!0||this._$AL.has(o)||$===void 0||this.C(o,void 0,d,$)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.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(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};P.elementStyles=[],P.shadowRootOptions={mode:"open"},P[ae("elementProperties")]=new Map,P[ae("finalized")]=new Map,Or?.({ReactiveElement:P}),(ve.reactiveElementVersions??=[]).push("2.1.2");var Ot=globalThis,D=class extends P{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 r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=re(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return L}};D._$litElement$=!0,D.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:D});var Pr=Ot.litElementPolyfillSupport;Pr?.({LitElement:D});(Ot.litElementVersions??=[]).push("4.2.2");var u=(a,e)=>_(`var(--impakt-${a.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:_("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 10%, transparent)"),rule:_("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 15%, transparent)"),wash:_("color-mix(in srgb, var(--impakt-color-text-default, #1a1a1a) 5%, transparent)"),brandHalo:_("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")},x=a=>_(`font-size: var(--impakt-font-size-${a}, 1rem); line-height: var(--impakt-font-leading-${a}, 1.5);`),s=a=>u(`space.${String(a).replace(".","-")}`,`${a*4}px`),b=a=>u(`font.size.${a}`,"1rem"),I=a=>u(`font.line-height.${a}`,"1.5"),m=a=>u(`font.weight.${a}`,"400"),R=h`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomic-ui/ui",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "The Impakt component library: standard custom elements, styled only from design tokens, built to WCAG 2.2 AA.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "lit": "^3.3.3",
34
- "@atomic-ui/design-tokens": "^0.10.0"
34
+ "@atomic-ui/design-tokens": "^0.10.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@custom-elements-manifest/analyzer": "^0.11.0",