@revotech-group/revotech-ui-kit 0.0.73 → 0.0.75

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.
@@ -2289,14 +2289,19 @@ var ba = Object.defineProperty, wa = (t, e, n, s) => {
2289
2289
  };
2290
2290
  class h extends z {
2291
2291
  constructor() {
2292
- super(), this.shadow = !1;
2292
+ super(), this.customClass = "";
2293
2293
  }
2294
2294
  getAttributesToExclude() {
2295
2295
  return [];
2296
2296
  }
2297
- // New method to specify attributes to remove from parent when passed to child
2298
2297
  getAttributesToRemoveFromParent() {
2299
- return [];
2298
+ return ["class"];
2299
+ }
2300
+ // Modified to capture class before removal
2301
+ removeParentAttributes() {
2302
+ this.getAttributesToRemoveFromParent().forEach((n) => {
2303
+ n === "class" && this.hasAttribute("class") && (this.customClass = this.getAttribute("class") || ""), this.hasAttribute(n) && this.removeAttribute(n);
2304
+ });
2300
2305
  }
2301
2306
  // Helper method to filter attributes based on exclusion rules
2302
2307
  getFilteredAttributes() {
@@ -2305,12 +2310,6 @@ class h extends z {
2305
2310
  this.getAttributesToExclude().includes(n.name) || (e[n.name] = n.value ?? "");
2306
2311
  }), e;
2307
2312
  }
2308
- // New method to remove specified attributes from the parent element
2309
- removeParentAttributes() {
2310
- this.getAttributesToRemoveFromParent().forEach((n) => {
2311
- this.hasAttribute(n) && this.removeAttribute(n);
2312
- });
2313
- }
2314
2313
  isCustomPropertySet(e) {
2315
2314
  const n = getComputedStyle(this).getPropertyValue(e).trim();
2316
2315
  return n !== "inherit" && n.length > 0;
@@ -2378,8 +2377,8 @@ class h extends z {
2378
2377
  }
2379
2378
  }
2380
2379
  wa([
2381
- l({ type: Boolean })
2382
- ], h.prototype, "shadow");
2380
+ l({ type: String, reflect: !0 })
2381
+ ], h.prototype, "customClass");
2383
2382
  function Ds() {
2384
2383
  const t = (/* @__PURE__ */ new Date()).getTime();
2385
2384
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
@@ -5413,7 +5412,14 @@ let Gt = class extends h {
5413
5412
  e.type === "file" ? this.value = e.files ? e.files[0].name : "" : this.value = e.value;
5414
5413
  }
5415
5414
  getAttributesToExclude() {
5416
- return ["disabled", "type", "placeholder", "value", "data-testid"];
5415
+ return [
5416
+ "disabled",
5417
+ "type",
5418
+ "placeholder",
5419
+ "value",
5420
+ "data-testid",
5421
+ "custom-class"
5422
+ ];
5417
5423
  }
5418
5424
  getAttributesToRemoveFromParent() {
5419
5425
  return ["class"];
@@ -5432,7 +5438,7 @@ let Gt = class extends h {
5432
5438
  .value=${this.type !== "file" ? this.value : ""}
5433
5439
  @change="${this.handleInputChange}"
5434
5440
  ${G(t)}
5435
- class="${p(ya, this.className)}"
5441
+ class="${p(ya, this.customClass)}"
5436
5442
  />
5437
5443
  `;
5438
5444
  }
@@ -5922,7 +5928,15 @@ let pt = class extends h {
5922
5928
  return this;
5923
5929
  }
5924
5930
  getAttributesToExclude() {
5925
- return ["click", "disabled", "type", "variant", "size", "data-testid"];
5931
+ return [
5932
+ "click",
5933
+ "disabled",
5934
+ "type",
5935
+ "variant",
5936
+ "size",
5937
+ "data-testid",
5938
+ "custom-class"
5939
+ ];
5926
5940
  }
5927
5941
  getAttributesToRemoveFromParent() {
5928
5942
  return ["class"];
@@ -5942,7 +5956,8 @@ let pt = class extends h {
5942
5956
  pt.buttonVariants({
5943
5957
  variant: this.variant,
5944
5958
  size: this.size,
5945
- className: this.className
5959
+ className: this.customClass
5960
+ // Use customClass from BaseElement
5946
5961
  })
5947
5962
  )}"
5948
5963
  @click="${this.handleClick}"