@florid-kit/components 0.10.16 → 0.10.17

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.
Files changed (3) hide show
  1. package/index.js +2 -1
  2. package/index.mjs +2 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1994,7 +1994,8 @@
1994
1994
  overflow: hidden;
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([g("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(p);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
- <a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}" aria-hidden="${this.inactive?"true":"false"}">
1997
+ <a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}"
1998
+ aria-hidden="${this.inactive?"true":"false"}" aria-current="${this.selected?"true":d}">
1998
1999
  ${o?this.text:l`<slot></slot>`}
1999
2000
  </a>
2000
2001
  `:l`
package/index.mjs CHANGED
@@ -3858,7 +3858,8 @@ let O = class extends gi {
3858
3858
  render() {
3859
3859
  const o = this.text;
3860
3860
  return this.link ? l`
3861
- <a href="${this.link}" class="o-chip" tabindex="${this.inactive ? "-1" : "0"}" aria-hidden="${this.inactive ? "true" : "false"}">
3861
+ <a href="${this.link}" class="o-chip" tabindex="${this.inactive ? "-1" : "0"}"
3862
+ aria-hidden="${this.inactive ? "true" : "false"}" aria-current="${this.selected ? "true" : d}">
3862
3863
  ${o ? this.text : l`<slot></slot>`}
3863
3864
  </a>
3864
3865
  ` : l`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "0.10.16",
3
+ "version": "0.10.17",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",