@revotech-group/revotech-ui-kit 0.1.34 → 0.1.35

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.
@@ -12464,13 +12464,16 @@ let er = class extends h {
12464
12464
  aria-selected=${this.defaultValue === this.value ? "true" : "false"}
12465
12465
  aria-controls=${this.value}
12466
12466
  data-state=${this.defaultValue === this.value ? "active" : "inactive"}
12467
- class="rtg-w-full rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-px-3 rtg-py-1.5 rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-all focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-pointer-events-none disabled:rtg-opacity-50 data-[state=active]:rtg-bg-background data-[state=active]:rtg-text-foreground data-[state=active]:rtg-shadow-sm"
12467
+ class=${g(
12468
+ "rtg-w-full rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-px-3 rtg-py-1.5 rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-all focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-pointer-events-none disabled:rtg-opacity-50 data-[state=active]:rtg-bg-background data-[state=active]:rtg-text-foreground data-[state=active]:rtg-shadow-sm",
12469
+ t
12470
+ )}
12471
+ style="${e}"
12468
12472
  tabindex="-1"
12469
12473
  data-orientation=${this.orientation}
12470
12474
  data-radix-collection-item=""
12471
12475
  @click=${this.handleClick}
12472
12476
  >
12473
- <slot></slot>
12474
12477
  </button>
12475
12478
  </div>
12476
12479
  `;
@@ -4409,13 +4409,13 @@ body {
4409
4409
  aria-selected=${this.defaultValue===this.value?"true":"false"}
4410
4410
  aria-controls=${this.value}
4411
4411
  data-state=${this.defaultValue===this.value?"active":"inactive"}
4412
- class="rtg-w-full rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-px-3 rtg-py-1.5 rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-all focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-pointer-events-none disabled:rtg-opacity-50 data-[state=active]:rtg-bg-background data-[state=active]:rtg-text-foreground data-[state=active]:rtg-shadow-sm"
4412
+ class=${p("rtg-w-full rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-px-3 rtg-py-1.5 rtg-text-sm rtg-font-medium rtg-ring-offset-background rtg-transition-all focus-visible:rtg-outline-none focus-visible:rtg-ring-2 focus-visible:rtg-ring-ring focus-visible:rtg-ring-offset-2 disabled:rtg-pointer-events-none disabled:rtg-opacity-50 data-[state=active]:rtg-bg-background data-[state=active]:rtg-text-foreground data-[state=active]:rtg-shadow-sm",r)}
4413
+ style="${e}"
4413
4414
  tabindex="-1"
4414
4415
  data-orientation=${this.orientation}
4415
4416
  data-radix-collection-item=""
4416
4417
  @click=${this.handleClick}
4417
4418
  >
4418
- <slot></slot>
4419
4419
  </button>
4420
4420
  </div>
4421
4421
  `}},gt([l.property({type:String})],o.TabsTrigger.prototype,"defaultValue",2),gt([l.property({type:String})],o.TabsTrigger.prototype,"value",2),gt([l.property({type:Function})],o.TabsTrigger.prototype,"onClickCallback",2),o.TabsTrigger=gt([l.customElement("rtg-tab-trigger")],o.TabsTrigger);var dd=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,Qt=(i,e,r,n)=>{for(var t=n>1?void 0:n?ud(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&&dd(e,r,t),t};o.TabContent=class extends h{constructor(){super(...arguments),this.value="",this.selectedValue=""}get _tab(){let e=this.parentElement;for(;e&&!(e instanceof o.Tab);)e=e.parentElement;return e}get _containerElement(){return this.querySelector("div[part=tab-content]")}updated(e){super.updated(e)}connectedCallback(){var e;super.connectedCallback(),(e=this._tab)==null||e.addEventListener("tab-change",r=>{this.selectedValue=r.detail.selectedValue,this.requestUpdate()})}disconnectedCallback(){super.disconnectedCallback(),this._tab&&this._tab.removeEventListener("tab-change",()=>{})}createRenderRoot(){return this}firstUpdated(e){this.observeStyleAndClassSync(this._containerElement),this.moveLightDomChildrenInto(this._containerElement)}getAttributesToExclude(){return["data-testid"]}getAttributesToRemoveFromParent(){return["class","style","data-testid"]}render(){const e=this.customStyle||"",r=this.customClass||"",n=this._tab&&this._tab.defaultValue.toLocaleLowerCase()===this.value.toLocaleLowerCase(),t=p(n?"rtg-block":"rtg-hidden",r,this.customClass);return Ce.html`
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.34",
6
+ "version": "0.1.35",
7
7
  "type": "module",
8
8
  "main": "dist/rtg-ui-kit.umd.cjs",
9
9
  "module": "./dist/rtg-ui-kit.js",