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

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(
@@ -5922,7 +5921,15 @@ let pt = class extends h {
5922
5921
  return this;
5923
5922
  }
5924
5923
  getAttributesToExclude() {
5925
- return ["click", "disabled", "type", "variant", "size", "data-testid"];
5924
+ return [
5925
+ "click",
5926
+ "disabled",
5927
+ "type",
5928
+ "variant",
5929
+ "size",
5930
+ "data-testid",
5931
+ "custom-class"
5932
+ ];
5926
5933
  }
5927
5934
  getAttributesToRemoveFromParent() {
5928
5935
  return ["class"];
@@ -5942,7 +5949,8 @@ let pt = class extends h {
5942
5949
  pt.buttonVariants({
5943
5950
  variant: this.variant,
5944
5951
  size: this.size,
5945
- className: this.className
5952
+ className: this.customClass
5953
+ // Use customClass from BaseElement
5946
5954
  })
5947
5955
  )}"
5948
5956
  @click="${this.handleClick}"