@florid-kit/components 0.10.31 → 0.10.32
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 +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2001,8 +2001,8 @@
|
|
|
2001
2001
|
overflow: hidden;
|
|
2002
2002
|
}
|
|
2003
2003
|
`;oe([a({type:Object,reflect:!0})],kt.prototype,"option",2);oe([a({type:Number,reflect:!0})],kt.prototype,"imageSize",2);kt=oe([y("o-reassurance")],kt);var vi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,X=(o,t,e,n)=>{for(var i=n>1?void 0:n?gi(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&&vi(t,e,i),i};const bi=Xt(u);let O=class extends bi{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`
|
|
2004
|
-
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":
|
|
2005
|
-
aria-
|
|
2004
|
+
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":d}"
|
|
2005
|
+
aria-current="${this.selected?"true":d}">
|
|
2006
2006
|
${o?this.text:l`<slot></slot>`}
|
|
2007
2007
|
</a>
|
|
2008
2008
|
`:l`
|
package/index.mjs
CHANGED
|
@@ -3901,8 +3901,8 @@ let O = class extends bi {
|
|
|
3901
3901
|
render() {
|
|
3902
3902
|
const o = this.text;
|
|
3903
3903
|
return this.link ? l`
|
|
3904
|
-
<a href="${this.link}" class="o-chip" tabindex="${this.inactive ? "-1" :
|
|
3905
|
-
aria-
|
|
3904
|
+
<a href="${this.link}" class="o-chip" tabindex="${this.inactive ? "-1" : d}"
|
|
3905
|
+
aria-current="${this.selected ? "true" : d}">
|
|
3906
3906
|
${o ? this.text : l`<slot></slot>`}
|
|
3907
3907
|
</a>
|
|
3908
3908
|
` : l`
|