@florid-kit/components 0.10.20 → 0.10.21
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/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1995,7 +1995,7 @@
|
|
|
1995
1995
|
}
|
|
1996
1996
|
`;oe([a({type:Object,reflect:!0})],kt.prototype,"option",2);oe([a({type:Number,reflect:!0})],kt.prototype,"imageSize",2);kt=oe([b("o-reassurance")],kt);var fi=Object.defineProperty,vi=Object.getOwnPropertyDescriptor,X=(o,t,e,n)=>{for(var i=n>1?void 0:n?vi(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&fi(t,e,i),i};const gi=Xt(u);let O=class extends gi{constructor(){super(...arguments),this.link="",this.name="",this.value="",this.text="",this.size="standard",this.selected=!1,this.fullwidth=!1,this.inactive=!1}handleClick(o){this.selected||(this.selected=!0);const t={selected:this.selected},e=new CustomEvent("selected",{detail:t,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e),e.defaultPrevented&&o.preventDefault(),this.selected=t.selected}render(){const o=this.text;return this.link?l`
|
|
1997
1997
|
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}"
|
|
1998
|
-
aria-hidden="${this.inactive?"true":
|
|
1998
|
+
aria-hidden="${this.inactive?"true":d}" aria-current="${this.selected?"true":d}">
|
|
1999
1999
|
${o?this.text:l`<slot></slot>`}
|
|
2000
2000
|
</a>
|
|
2001
2001
|
`:l`
|
package/index.mjs
CHANGED
|
@@ -3885,7 +3885,7 @@ let O = class extends gi {
|
|
|
3885
3885
|
const o = this.text;
|
|
3886
3886
|
return this.link ? l`
|
|
3887
3887
|
<a href="${this.link}" class="o-chip" tabindex="${this.inactive ? "-1" : "0"}"
|
|
3888
|
-
aria-hidden="${this.inactive ? "true" :
|
|
3888
|
+
aria-hidden="${this.inactive ? "true" : d}" aria-current="${this.selected ? "true" : d}">
|
|
3889
3889
|
${o ? this.text : l`<slot></slot>`}
|
|
3890
3890
|
</a>
|
|
3891
3891
|
` : l`
|