@florid-kit/components 0.8.29 → 0.8.30

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.
@@ -6,7 +6,7 @@ export declare class OccitaneFilterChip extends buttonBaseClass {
6
6
  name: string;
7
7
  value: string;
8
8
  type: string;
9
- datahref: string;
9
+ dataHref: string;
10
10
  text: string;
11
11
  selected: boolean;
12
12
  disabled: boolean;
package/index.js CHANGED
@@ -1951,8 +1951,8 @@
1951
1951
  flex-wrap: wrap;
1952
1952
  gap: var(--spacing-s);
1953
1953
  }
1954
- `;Ut([a({reflect:!0})],ct.prototype,"name",2);Ut([a({reflect:!0})],ct.prototype,"value",2);ct=Ut([x("o-chipset")],ct);var No=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,H=(o,t,e,r)=>{for(var i=r>1?void 0:r?Fo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&No(t,e,i),i};const Ro=Bt(u);let E=class extends Ro{constructor(){super(...arguments),this.name="",this.value="",this.type="",this.datahref="",this.text="",this.selected=!1,this.disabled=!1,this.fullwidth=!1,this.crossIconName="cross",this.strikethroughImgName="strikeDiagonal"}handleClick(o){if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;this.selected=!this.selected;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}crossIcon(){const o=W[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${S(o)}</span>`}strikeThroughImg(){const o=Je[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return S(o)}render(){const o=this.text;return l`${this.type==="link"?l`
1955
- <a role="button" tabindex="0" class="button" href=${this.datahref} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
1954
+ `;Ut([a({reflect:!0})],ct.prototype,"name",2);Ut([a({reflect:!0})],ct.prototype,"value",2);ct=Ut([x("o-chipset")],ct);var No=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,H=(o,t,e,r)=>{for(var i=r>1?void 0:r?Fo(t,e):t,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(t,e,i):s(i))||i);return r&&i&&No(t,e,i),i};const Ro=Bt(u);let E=class extends Ro{constructor(){super(...arguments),this.name="",this.value="",this.type="",this.dataHref="",this.text="",this.selected=!1,this.disabled=!1,this.fullwidth=!1,this.crossIconName="cross",this.strikethroughImgName="strikeDiagonal"}handleClick(o){if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;this.selected=!this.selected;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}crossIcon(){const o=W[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${S(o)}</span>`}strikeThroughImg(){const o=Je[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return S(o)}render(){const o=this.text;return l`${this.type==="link"?l`
1955
+ <a role="button" tabindex="0" class="button" href=${this.dataHref} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
1956
1956
  aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
1957
1957
  ${o?l`
1958
1958
  ${this.text?l`<span class="text">${this.text}</span>`:d}
@@ -2092,4 +2092,4 @@
2092
2092
  stroke-linecap: round;
2093
2093
  }
2094
2094
  }
2095
- `;H([a({reflect:!0})],E.prototype,"name",2);H([a({reflect:!0})],E.prototype,"value",2);H([a({type:String,reflect:!0})],E.prototype,"type",2);H([a({type:String,reflect:!0})],E.prototype,"datahref",2);H([a({type:String})],E.prototype,"text",2);H([a({type:Boolean,reflect:!0})],E.prototype,"selected",2);H([a({type:Boolean,reflect:!0})],E.prototype,"disabled",2);H([a({type:Boolean,reflect:!0})],E.prototype,"fullwidth",2);E=H([x("o-filter-chip")],E);
2095
+ `;H([a({reflect:!0})],E.prototype,"name",2);H([a({reflect:!0})],E.prototype,"value",2);H([a({type:String,reflect:!0})],E.prototype,"type",2);H([a({type:String,reflect:!0,attribute:"data-href"})],E.prototype,"dataHref",2);H([a({type:String})],E.prototype,"text",2);H([a({type:Boolean,reflect:!0})],E.prototype,"selected",2);H([a({type:Boolean,reflect:!0})],E.prototype,"disabled",2);H([a({type:Boolean,reflect:!0})],E.prototype,"fullwidth",2);E=H([x("o-filter-chip")],E);
package/index.mjs CHANGED
@@ -3697,7 +3697,7 @@ var No = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, H = (o, t,
3697
3697
  const Ro = Bt(u);
3698
3698
  let E = class extends Ro {
3699
3699
  constructor() {
3700
- super(...arguments), this.name = "", this.value = "", this.type = "", this.datahref = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
3700
+ super(...arguments), this.name = "", this.value = "", this.type = "", this.dataHref = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
3701
3701
  }
3702
3702
  handleClick(o) {
3703
3703
  if (o instanceof KeyboardEvent && o.key !== "Enter" && o.key !== " ")
@@ -3723,7 +3723,7 @@ let E = class extends Ro {
3723
3723
  render() {
3724
3724
  const o = this.text;
3725
3725
  return l`${this.type === "link" ? l`
3726
- <a role="button" tabindex="0" class="button" href=${this.datahref} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
3726
+ <a role="button" tabindex="0" class="button" href=${this.dataHref} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
3727
3727
  aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
3728
3728
  ${o ? l`
3729
3729
  ${this.text ? l`<span class="text">${this.text}</span>` : d}
@@ -3877,8 +3877,8 @@ H([
3877
3877
  a({ type: String, reflect: !0 })
3878
3878
  ], E.prototype, "type", 2);
3879
3879
  H([
3880
- a({ type: String, reflect: !0 })
3881
- ], E.prototype, "datahref", 2);
3880
+ a({ type: String, reflect: !0, attribute: "data-href" })
3881
+ ], E.prototype, "dataHref", 2);
3882
3882
  H([
3883
3883
  a({ type: String })
3884
3884
  ], E.prototype, "text", 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "0.8.29",
3
+ "version": "0.8.30",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",