@revotech-group/revotech-ui-kit 0.0.72 → 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 = {};
|
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}"
|
|
@@ -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