@revotech-group/revotech-ui-kit 0.1.24 → 0.1.25
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/dist/rtg-ui-kit.js +11 -5
- package/dist/rtg-ui-kit.umd.cjs +11 -5
- package/package.json +1 -1
package/dist/rtg-ui-kit.js
CHANGED
|
@@ -6465,11 +6465,11 @@ let Xe = class extends h {
|
|
|
6465
6465
|
this.removeParentAttributes(), this.observeStyleAndClassSync(this._containerElement);
|
|
6466
6466
|
}
|
|
6467
6467
|
render() {
|
|
6468
|
-
const e = this.
|
|
6468
|
+
const e = this.customStyle || "", t = this.customClass || "";
|
|
6469
6469
|
return d`
|
|
6470
6470
|
<div
|
|
6471
|
-
class="${p(this.alertClasses, this.className,
|
|
6472
|
-
style="${
|
|
6471
|
+
class="${p(this.alertClasses, this.className, t)}"
|
|
6472
|
+
style="${e}"
|
|
6473
6473
|
role="alert"
|
|
6474
6474
|
>
|
|
6475
6475
|
${this.title ? d`<div class="rtg-mb-2 rtg-font-bold" part="alert-title">
|
|
@@ -14922,7 +14922,7 @@ let Nr = class extends h {
|
|
|
14922
14922
|
@input=${(e) => this.btnClass = e.target.value}
|
|
14923
14923
|
></textarea>
|
|
14924
14924
|
<rtg-alert style=${this.btnClass} message=${"hey"}></rtg-alert> -->
|
|
14925
|
-
<rtg-input
|
|
14925
|
+
<!-- <rtg-input
|
|
14926
14926
|
id="email"
|
|
14927
14927
|
type="tel"
|
|
14928
14928
|
.value=${this.inputValue}
|
|
@@ -14930,7 +14930,13 @@ let Nr = class extends h {
|
|
|
14930
14930
|
console.log(e.detail, this.inputValue), e.detail.value && (this.inputValue = e.detail.value);
|
|
14931
14931
|
}}
|
|
14932
14932
|
customClass="rtg-mt-2"
|
|
14933
|
-
></rtg-input>
|
|
14933
|
+
></rtg-input> -->
|
|
14934
|
+
|
|
14935
|
+
<rtg-alert
|
|
14936
|
+
variant="error"
|
|
14937
|
+
customStyle=${this.btnClass}
|
|
14938
|
+
message="hert"
|
|
14939
|
+
></rtg-alert>
|
|
14934
14940
|
</div>
|
|
14935
14941
|
`;
|
|
14936
14942
|
}
|
package/dist/rtg-ui-kit.umd.cjs
CHANGED
|
@@ -2990,10 +2990,10 @@ body {
|
|
|
2990
2990
|
>
|
|
2991
2991
|
${this._children}
|
|
2992
2992
|
</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.
|
|
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.customStyle||"",r=this.customClass||"";return d.html`
|
|
2994
2994
|
<div
|
|
2995
|
-
class="${p(this.alertClasses,this.className,
|
|
2996
|
-
style="${
|
|
2995
|
+
class="${p(this.alertClasses,this.className,r)}"
|
|
2996
|
+
style="${e}"
|
|
2997
2997
|
role="alert"
|
|
2998
2998
|
>
|
|
2999
2999
|
${this.title?d.html`<div class="rtg-mb-2 rtg-font-bold" part="alert-title">
|
|
@@ -4914,13 +4914,19 @@ body {
|
|
|
4914
4914
|
@input=${e=>this.btnClass=e.target.value}
|
|
4915
4915
|
></textarea>
|
|
4916
4916
|
<rtg-alert style=${this.btnClass} message=${"hey"}></rtg-alert> -->
|
|
4917
|
-
<rtg-input
|
|
4917
|
+
<!-- <rtg-input
|
|
4918
4918
|
id="email"
|
|
4919
4919
|
type="tel"
|
|
4920
4920
|
.value=${this.inputValue}
|
|
4921
4921
|
@input=${e=>{console.log(e.detail,this.inputValue),e.detail.value&&(this.inputValue=e.detail.value)}}
|
|
4922
4922
|
customClass="rtg-mt-2"
|
|
4923
|
-
></rtg-input>
|
|
4923
|
+
></rtg-input> -->
|
|
4924
|
+
|
|
4925
|
+
<rtg-alert
|
|
4926
|
+
variant="error"
|
|
4927
|
+
customStyle=${this.btnClass}
|
|
4928
|
+
message="hert"
|
|
4929
|
+
></rtg-alert>
|
|
4924
4930
|
</div>
|
|
4925
4931
|
`}},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
4932
|
* @license
|
package/package.json
CHANGED