@revotech-group/revotech-ui-kit 0.1.24 → 0.1.26

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.
@@ -6200,15 +6200,14 @@ let Me = class extends U {
6200
6200
  ${this.checked || this.value === "on" ? d`<span data-state="checked" class="${Ra}"
6201
6201
  ><svg
6202
6202
  xmlns="http://www.w3.org/2000/svg"
6203
- width="24"
6204
- height="24"
6203
+ width="12"
6204
+ height="12"
6205
6205
  viewBox="0 0 24 24"
6206
6206
  fill="none"
6207
6207
  stroke="currentColor"
6208
6208
  stroke-width="3"
6209
6209
  stroke-linecap="round"
6210
6210
  stroke-linejoin="round"
6211
- class="rtg-h-4 rtg-w-4"
6212
6211
  >
6213
6212
  <polyline points="20 6 9 17 4 12"></polyline></svg
6214
6213
  ></span>` : Z}
@@ -6465,11 +6464,11 @@ let Xe = class extends h {
6465
6464
  this.removeParentAttributes(), this.observeStyleAndClassSync(this._containerElement);
6466
6465
  }
6467
6466
  render() {
6468
- const e = this.customClass || "", t = this.getAttribute("style") || "";
6467
+ const e = this.customStyle || "", t = this.customClass || "";
6469
6468
  return d`
6470
6469
  <div
6471
- class="${p(this.alertClasses, this.className, e)}"
6472
- style="${t}"
6470
+ class="${p(this.alertClasses, this.className, t)}"
6471
+ style="${e}"
6473
6472
  role="alert"
6474
6473
  >
6475
6474
  ${this.title ? d`<div class="rtg-mb-2 rtg-font-bold" part="alert-title">
@@ -14922,7 +14921,7 @@ let Nr = class extends h {
14922
14921
  @input=${(e) => this.btnClass = e.target.value}
14923
14922
  ></textarea>
14924
14923
  <rtg-alert style=${this.btnClass} message=${"hey"}></rtg-alert> -->
14925
- <rtg-input
14924
+ <!-- <rtg-input
14926
14925
  id="email"
14927
14926
  type="tel"
14928
14927
  .value=${this.inputValue}
@@ -14930,7 +14929,13 @@ let Nr = class extends h {
14930
14929
  console.log(e.detail, this.inputValue), e.detail.value && (this.inputValue = e.detail.value);
14931
14930
  }}
14932
14931
  customClass="rtg-mt-2"
14933
- ></rtg-input>
14932
+ ></rtg-input> -->
14933
+
14934
+ <rtg-alert
14935
+ variant="error"
14936
+ customStyle=${this.btnClass}
14937
+ message="hert"
14938
+ ></rtg-alert>
14934
14939
  </div>
14935
14940
  `;
14936
14941
  }
@@ -2936,15 +2936,14 @@ body {
2936
2936
  ${this.checked||this.value==="on"?d.html`<span data-state="checked" class="${Oo}"
2937
2937
  ><svg
2938
2938
  xmlns="http://www.w3.org/2000/svg"
2939
- width="24"
2940
- height="24"
2939
+ width="12"
2940
+ height="12"
2941
2941
  viewBox="0 0 24 24"
2942
2942
  fill="none"
2943
2943
  stroke="currentColor"
2944
2944
  stroke-width="3"
2945
2945
  stroke-linecap="round"
2946
2946
  stroke-linejoin="round"
2947
- class="rtg-h-4 rtg-w-4"
2948
2947
  >
2949
2948
  <polyline points="20 6 9 17 4 12"></polyline></svg
2950
2949
  ></span>`:d.nothing}
@@ -2990,10 +2989,10 @@ body {
2990
2989
  >
2991
2990
  ${this._children}
2992
2991
  </div>
2993
- `}},o.Badge.badgeVariants=Fo,Dt([l.property({type:String})],o.Badge.prototype,"variant",2),Dt([l.property({type:String})],o.Badge.prototype,"id",2),o.Badge=Dt([l.customElement("rtg-badge")],o.Badge);const Or=J("rtg-p-4 rtg-text-sm rtg-font-medium rtg-rounded-md rtg-border rtg-border-transparent",{variants:{variant:{success:"rtg-bg-green-100 rtg-text-green-800 rtg-border-green-200",error:"rtg-bg-red-100 rtg-text-red-800 rtg-border-red-200",warning:"rtg-bg-yellow-100 rtg-text-yellow-800 rtg-border-yellow-200",info:"rtg-bg-blue-100 rtg-text-blue-800 rtg-border-blue-200"},size:{small:"rtg-text-sm",default:"rtg-text-base",large:"rtg-text-xl"}},defaultVariants:{variant:"info",size:"default"}});var Ho=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,Xe=(i,e,r,n)=>{for(var t=n>1?void 0:n?Yo(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ho(e,r,t),t};o.Alert=class extends h{constructor(){super(...arguments),this.title="",this.message="",this.variant="info",this.size="default"}createRenderRoot(){return this}get _containerElement(){return this.querySelector("div[role=alert]")}get alertClasses(){return Or({variant:this.variant,size:this.size})}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(e){this.removeParentAttributes(),this.observeStyleAndClassSync(this._containerElement)}render(){const e=this.customClass||"",r=this.getAttribute("style")||"";return d.html`
2992
+ `}},o.Badge.badgeVariants=Fo,Dt([l.property({type:String})],o.Badge.prototype,"variant",2),Dt([l.property({type:String})],o.Badge.prototype,"id",2),o.Badge=Dt([l.customElement("rtg-badge")],o.Badge);const Or=J("rtg-p-4 rtg-text-sm rtg-font-medium rtg-rounded-md rtg-border rtg-border-transparent",{variants:{variant:{success:"rtg-bg-green-100 rtg-text-green-800 rtg-border-green-200",error:"rtg-bg-red-100 rtg-text-red-800 rtg-border-red-200",warning:"rtg-bg-yellow-100 rtg-text-yellow-800 rtg-border-yellow-200",info:"rtg-bg-blue-100 rtg-text-blue-800 rtg-border-blue-200"},size:{small:"rtg-text-sm",default:"rtg-text-base",large:"rtg-text-xl"}},defaultVariants:{variant:"info",size:"default"}});var Ho=Object.defineProperty,Yo=Object.getOwnPropertyDescriptor,Xe=(i,e,r,n)=>{for(var t=n>1?void 0:n?Yo(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Ho(e,r,t),t};o.Alert=class extends h{constructor(){super(...arguments),this.title="",this.message="",this.variant="info",this.size="default"}createRenderRoot(){return this}get _containerElement(){return this.querySelector("div[role=alert]")}get alertClasses(){return Or({variant:this.variant,size:this.size})}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(e){this.removeParentAttributes(),this.observeStyleAndClassSync(this._containerElement)}render(){const e=this.customStyle||"",r=this.customClass||"";return d.html`
2994
2993
  <div
2995
- class="${p(this.alertClasses,this.className,e)}"
2996
- style="${r}"
2994
+ class="${p(this.alertClasses,this.className,r)}"
2995
+ style="${e}"
2997
2996
  role="alert"
2998
2997
  >
2999
2998
  ${this.title?d.html`<div class="rtg-mb-2 rtg-font-bold" part="alert-title">
@@ -4914,13 +4913,19 @@ body {
4914
4913
  @input=${e=>this.btnClass=e.target.value}
4915
4914
  ></textarea>
4916
4915
  <rtg-alert style=${this.btnClass} message=${"hey"}></rtg-alert> -->
4917
- <rtg-input
4916
+ <!-- <rtg-input
4918
4917
  id="email"
4919
4918
  type="tel"
4920
4919
  .value=${this.inputValue}
4921
4920
  @input=${e=>{console.log(e.detail,this.inputValue),e.detail.value&&(this.inputValue=e.detail.value)}}
4922
4921
  customClass="rtg-mt-2"
4923
- ></rtg-input>
4922
+ ></rtg-input> -->
4923
+
4924
+ <rtg-alert
4925
+ variant="error"
4926
+ customStyle=${this.btnClass}
4927
+ message="hert"
4928
+ ></rtg-alert>
4924
4929
  </div>
4925
4930
  `}},nr([l.state()],o.LightSampleDemo.prototype,"btnClass",2),nr([l.state()],o.LightSampleDemo.prototype,"inputValue",2),o.LightSampleDemo=nr([l.customElement("light-sample-demo")],o.LightSampleDemo);/**
4926
4931
  * @license
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent wc-ui following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "wc-ui",
6
- "version": "0.1.24",
6
+ "version": "0.1.26",
7
7
  "type": "module",
8
8
  "main": "dist/rtg-ui-kit.umd.cjs",
9
9
  "module": "./dist/rtg-ui-kit.js",