@revotech-group/revotech-ui-kit 0.0.71 → 0.0.73
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
CHANGED
|
@@ -5270,7 +5270,7 @@ rn.styles = ie`
|
|
|
5270
5270
|
`;
|
|
5271
5271
|
let Qr = rn;
|
|
5272
5272
|
customElements.define("shadow-wrapper", Qr);
|
|
5273
|
-
const ya = "rtg-flex rtg-h-
|
|
5273
|
+
const ya = "rtg-flex rtg-h-9 rtg-w-full rtg-rounded-md rtg-border rtg-border-input rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-opacity-50 input-base";
|
|
5274
5274
|
class To extends Ni {
|
|
5275
5275
|
constructor() {
|
|
5276
5276
|
super(...arguments), this.prevData = {};
|
|
@@ -5881,7 +5881,7 @@ const Wa = dt(
|
|
|
5881
5881
|
}
|
|
5882
5882
|
}
|
|
5883
5883
|
), Xa = dt(
|
|
5884
|
-
"rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-
|
|
5884
|
+
"rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-md rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",
|
|
5885
5885
|
{
|
|
5886
5886
|
variants: {
|
|
5887
5887
|
variant: {
|
|
@@ -5893,9 +5893,9 @@ const Wa = dt(
|
|
|
5893
5893
|
link: "rtg-text-primary rtg-underline-offset-4 hover:rtg-underline"
|
|
5894
5894
|
},
|
|
5895
5895
|
size: {
|
|
5896
|
-
default: "rtg-h-8 rtg-px-4 rtg-py-2",
|
|
5896
|
+
default: "rtg-h-8 rtg-rounded-md rtg-px-4 rtg-py-2",
|
|
5897
5897
|
sm: "rtg-h-7 rtg-rounded-sm rtg-px-3 rtg-text-xs",
|
|
5898
|
-
lg: "rtg-h-9 rtg-rounded-
|
|
5898
|
+
lg: "rtg-h-9 rtg-rounded-md rtg-px-8",
|
|
5899
5899
|
icon: "rtg-h-8 rtg-w-8"
|
|
5900
5900
|
}
|
|
5901
5901
|
},
|
package/dist/rtg-ui-kit.umd.cjs
CHANGED
|
@@ -2859,7 +2859,7 @@ body {
|
|
|
2859
2859
|
.wrapper {
|
|
2860
2860
|
display: block;
|
|
2861
2861
|
}
|
|
2862
|
-
`;let St=nr;customElements.define("shadow-wrapper",St);const vo="rtg-flex rtg-h-
|
|
2862
|
+
`;let St=nr;customElements.define("shadow-wrapper",St);const vo="rtg-flex rtg-h-9 rtg-w-full rtg-rounded-md rtg-border rtg-border-input rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-opacity-50 input-base";class br extends An.AsyncDirective{constructor(){super(...arguments),this.prevData={}}render(e){return Tn.nothing}update(e,[r]){var n;this.element!==e.element&&(this.element=e.element),this.host=((n=e.options)===null||n===void 0?void 0:n.host)||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(e){if(!e)return;const{prevData:r,element:n}=this;for(const t in e){const a=e[t];a!==r[t]&&(n[t]=a)}}groom(e){const{prevData:r,element:n}=this;if(r)for(const t in r)(!e||!(t in e)&&n[t]===r[t])&&(n[t]=void 0)}}Ct.directive(br);class yr extends br{constructor(){super(...arguments),this.eventData={}}apply(e){if(e)for(const r in e){const n=e[r];n!==this.eventData[r]&&this.applyEvent(r,n)}}applyEvent(e,r){const{prevData:n,element:t}=this;this.eventData[e]=r,n[e]&&t.removeEventListener(e,this,r),t.addEventListener(e,this,r)}groom(e){const{prevData:r,element:n}=this;if(r)for(const t in r)(!e||!(t in e)&&n[t]===r[t])&&this.groomEvent(t,r[t])}groomEvent(e,r){const{element:n}=this;delete this.eventData[e],n.removeEventListener(e,this,r)}handleEvent(e){const r=this.eventData[e.type];typeof r=="function"?r.call(this.host,e):r.handleEvent(e)}disconnected(){const{eventData:e,element:r}=this;for(const n in e){const t=n.slice(1),a=e[n];r.removeEventListener(t,this,a)}}reconnected(){const{eventData:e,element:r}=this;for(const n in e){const t=n.slice(1),a=e[n];r.addEventListener(t,this,a)}}}Ct.directive(yr);class bo extends yr{apply(e){if(!e)return;const{prevData:r,element:n}=this;for(const t in e){const a=e[t];if(a===r[t])continue;const s=t.slice(1);switch(t[0]){case"@":this.eventData[s]=a,this.applyEvent(s,a);break;case".":n[s]=a;break;case"?":a?n.setAttribute(s,""):n.removeAttribute(s);break;default:a!=null?n.setAttribute(t,String(a)):n.removeAttribute(t);break}}}groom(e){const{prevData:r,element:n}=this;if(r)for(const t in r){const a=t.slice(1);if(!e||!(t in e)&&n[a]===r[t])switch(t[0]){case"@":this.groomEvent(a,r[t]);break;case".":n[a]=void 0;break;case"?":n.removeAttribute(a);break;default:n.removeAttribute(t);break}}}}const H=Ct.directive(bo);var yo=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,Te=(i,e,r,n)=>{for(var t=n>1?void 0:n?wo(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&&yo(e,r,t),t};o.RtgInput=class extends h{constructor(){super(),this.disabled=!1,this.type="text",this.placeholder="",this.defaultValue="",this.value="",this.value=this.value||this.defaultValue}firstUpdated(e){this.removeParentAttributes();const r=["--input-border-radius","--input-padding"];this.applyCustomClass(r,"input","input-base"),this.type!=="file"&&this.defaultValue&&(this.value=this.defaultValue)}handleInputChange(e){const r=e.target;r.type==="file"?this.value=r.files?r.files[0].name:"":this.value=r.value}getAttributesToExclude(){return["disabled","type","placeholder","value","data-testid"]}getAttributesToRemoveFromParent(){return["class"]}createRenderRoot(){return this}render(){const e=this.getFilteredAttributes();return d.html`
|
|
2863
2863
|
<input
|
|
2864
2864
|
part="input"
|
|
2865
2865
|
type="${this.type}"
|
|
@@ -2967,7 +2967,7 @@ body {
|
|
|
2967
2967
|
</div>`:""}
|
|
2968
2968
|
${this.message?d.html`<div part="alert-description">${this.message}</div>`:""}
|
|
2969
2969
|
</div>
|
|
2970
|
-
`}},o.Alert.alertVariants=Er,Ke([l.property({type:String})],o.Alert.prototype,"title",2),Ke([l.property({type:String})],o.Alert.prototype,"message",2),Ke([l.property({type:String})],o.Alert.prototype,"variant",2),Ke([l.property({type:String})],o.Alert.prototype,"size",2),o.Alert=Ke([l.customElement("rtg-alert")],o.Alert);const Ho=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{outline:"rtg-border rtg-border-input rtg-bg-transparent rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{default:"rtg-h-7 rtg-w-7 rtg-p-0"}},defaultVariants:{variant:"outline",size:"default"}}),Yo=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-
|
|
2970
|
+
`}},o.Alert.alertVariants=Er,Ke([l.property({type:String})],o.Alert.prototype,"title",2),Ke([l.property({type:String})],o.Alert.prototype,"message",2),Ke([l.property({type:String})],o.Alert.prototype,"variant",2),Ke([l.property({type:String})],o.Alert.prototype,"size",2),o.Alert=Ke([l.customElement("rtg-alert")],o.Alert);const Ho=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{outline:"rtg-border rtg-border-input rtg-bg-transparent rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{default:"rtg-h-7 rtg-w-7 rtg-p-0"}},defaultVariants:{variant:"outline",size:"default"}}),Yo=Z("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-md rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{default:"rtg-bg-primary rtg-text-primary-foreground rtg-shadow hover:rtg-bg-primary/90",destructive:"rtg-bg-destructive rtg-text-destructive-foreground rtg-shadow-sm hover:rtg-bg-destructive/90",outline:"rtg-border rtg-border-input rtg-bg-background rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground",secondary:"rtg-bg-secondary rtg-text-secondary-foreground rtg-shadow-sm hover:rtg-bg-secondary/80",ghost:"hover:rtg-bg-accent hover:rtg-text-accent-foreground",link:"rtg-text-primary rtg-underline-offset-4 hover:rtg-underline"},size:{default:"rtg-h-8 rtg-rounded-md rtg-px-4 rtg-py-2",sm:"rtg-h-7 rtg-rounded-sm rtg-px-3 rtg-text-xs",lg:"rtg-h-9 rtg-rounded-md rtg-px-8",icon:"rtg-h-8 rtg-w-8"}},defaultVariants:{variant:"default",size:"default"}});var jo=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,_e=(i,e,r,n)=>{for(var t=n>1?void 0:n?Wo(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&&jo(e,r,t),t};o.Button=class extends h{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.type="button",this.variant="default",this.size="default"}handleClick(){this.disabled||this.click()}createRenderRoot(){return this}getAttributesToExclude(){return["click","disabled","type","variant","size","data-testid"]}getAttributesToRemoveFromParent(){return["class"]}firstUpdated(){this.moveLightDomChildrenInto(this.buttonElement),this.removeParentAttributes()}render(){const e=this.getFilteredAttributes();return d.html`
|
|
2971
2971
|
<button
|
|
2972
2972
|
part="button"
|
|
2973
2973
|
type="${this.type}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const inputStyles = "rtg-flex rtg-h-
|
|
1
|
+
export declare const inputStyles = "rtg-flex rtg-h-9 rtg-w-full rtg-rounded-md rtg-border rtg-border-input rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-opacity-50 input-base";
|
package/package.json
CHANGED