@rarui/components 1.24.2-rc.4 → 1.24.2-rc.5

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,5 +1,5 @@
1
1
  {
2
- "version": "1.24.2-rc.4",
2
+ "version": "1.24.2-rc.5",
3
3
  "tags": [
4
4
  {
5
5
  "name": "rarui-avatar",
@@ -2633,11 +2633,26 @@
2633
2633
  "type": "boolean",
2634
2634
  "default": false
2635
2635
  },
2636
+ {
2637
+ "name": "label",
2638
+ "description": "The label of the checkbox for form submission.",
2639
+ "type": "string"
2640
+ },
2636
2641
  {
2637
2642
  "name": "name",
2638
2643
  "description": "The name of the checkbox for form submission.",
2639
2644
  "type": "string"
2640
2645
  },
2646
+ {
2647
+ "name": "disabled",
2648
+ "description": "The name of the checkbox for form submission.",
2649
+ "type": "boolean"
2650
+ },
2651
+ {
2652
+ "name": "id",
2653
+ "description": "The id of the checkbox for form submission.\n\n(Required)",
2654
+ "type": "string"
2655
+ },
2641
2656
  {
2642
2657
  "name": "value",
2643
2658
  "description": "The value of the checkbox when checked for form submission.",
package/dist/index.d.ts CHANGED
@@ -18782,10 +18782,22 @@ type CheckboxManifestProperties = Pick<CheckboxProps, "error" | "size" | "indete
18782
18782
  * @default false
18783
18783
  */
18784
18784
  readonly?: boolean;
18785
+ /**
18786
+ * The label of the checkbox for form submission.
18787
+ */
18788
+ label?: string;
18785
18789
  /**
18786
18790
  * The name of the checkbox for form submission.
18787
18791
  */
18788
18792
  name?: string;
18793
+ /**
18794
+ * The name of the checkbox for form submission.
18795
+ */
18796
+ disabled?: boolean;
18797
+ /**
18798
+ * The id of the checkbox for form submission.
18799
+ */
18800
+ id: string;
18789
18801
  /**
18790
18802
  * The value of the checkbox when checked for form submission.
18791
18803
  */
package/dist/index.js CHANGED
@@ -388,11 +388,6 @@ const bo=Symbol.for(""),xo=r=>{if(r?.r===bo)return r?._$litStatic$},go=r=>({_$li
388
388
  name=${gr(this.name)}
389
389
  value=${gr(this.value)}
390
390
  form=${gr(this.form)}
391
- aria-label=${gr(this.getAttribute("aria-label"))}
392
- aria-labelledby=${gr(this.getAttribute("aria-labelledby"))}
393
- aria-describedby=${gr(this.getAttribute("aria-describedby"))}
394
- aria-pressed=${gr(this.getAttribute("aria-pressed"))}
395
- aria-expanded=${gr(this.getAttribute("aria-expanded"))}
396
391
  @click=${this._handleClick}
397
392
  >
398
393
  <slot></slot>
@@ -408,7 +403,7 @@ const bo=Symbol.for(""),xo=r=>{if(r?.r===bo)return r?._$litStatic$},go=r=>({_$li
408
403
  :host([full]) {
409
404
  width: 100%;
410
405
  }
411
- `,r([fr({type:String})],Ea.prototype,"type",void 0),r([fr({type:String})],Ea.prototype,"size",void 0),r([fr({type:String})],Ea.prototype,"variant",void 0),r([fr({type:String})],Ea.prototype,"appearance",void 0),r([fr({type:Boolean,converter:r=>"false"!==r})],Ea.prototype,"disabled",void 0),r([fr({type:Boolean,converter:r=>"false"!==r})],Ea.prototype,"full",void 0),r([fr({type:String})],Ea.prototype,"name",void 0),r([fr({type:String})],Ea.prototype,"value",void 0),r([fr({type:String})],Ea.prototype,"form",void 0),Ea=r([_r("rarui-button")],Ea);let Pa=class extends er{constructor(){super(),this.size="medium",this.error=!1,this.indeterminate=!1,this.disabled=!1,this.checked=!1,this.readonly=!1,this.required=!1,this._hasCheckedAttribute=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._hasCheckedAttribute=this.hasAttribute("checked"),document.addEventListener("rarui-label-click",this._handleLabelClick.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("rarui-label-click",this._handleLabelClick.bind(this))}attributeChangedCallback(r,i,o){super.attributeChangedCallback(r,i,o),"checked"===r&&(this._hasCheckedAttribute=null!==o)}updated(r){super.updated(r),r.has("checked")&&this.input&&this._hasCheckedAttribute&&(this.input.checked=this.checked)}render(){return N`
406
+ `,r([fr({type:String})],Ea.prototype,"type",void 0),r([fr({type:String})],Ea.prototype,"size",void 0),r([fr({type:String})],Ea.prototype,"variant",void 0),r([fr({type:String})],Ea.prototype,"appearance",void 0),r([fr({type:Boolean,converter:r=>"false"!==r})],Ea.prototype,"disabled",void 0),r([fr({type:Boolean,converter:r=>"false"!==r})],Ea.prototype,"full",void 0),r([fr({type:String})],Ea.prototype,"name",void 0),r([fr({type:String})],Ea.prototype,"value",void 0),r([fr({type:String})],Ea.prototype,"form",void 0),Ea=r([_r("rarui-button")],Ea);let Pa=class extends er{constructor(){super(),this.size="medium",this.error=!1,this.indeterminate=!1,this.disabled=!1,this.checked=!1,this.readonly=!1,this.required=!1,this._hasCheckedAttribute=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._hasCheckedAttribute=this.hasAttribute("checked"),document.addEventListener("rarui-label-click",this._handleLabelClick.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("rarui-label-click",this._handleLabelClick.bind(this))}attributeChangedCallback(r,i,o){super.attributeChangedCallback(r,i,o),"checked"===r&&(this._hasCheckedAttribute=null!==o)}updated(r){super.updated(r),r.has("checked")&&this.input&&this._hasCheckedAttribute&&(this.input.checked=this.checked)}render(){return console.log("lanel render",this.label),N`
412
407
  <label
413
408
  for="${this.readonly?"":this.id??""}"
414
409
  class="${Dr.classnames.label({error:this.error})}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rarui/components",
3
- "version": "1.24.2-rc.4",
3
+ "version": "1.24.2-rc.5",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",