@codbex/harmonia 1.10.1 → 1.10.2

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/harmonia.js CHANGED
@@ -3418,7 +3418,9 @@
3418
3418
  "has-[>[data-slot=chip-close]]:pr-0",
3419
3419
  "has-[>[data-slot=spinner]]:px-2",
3420
3420
  "text-secondary-foreground",
3421
- "border"
3421
+ "border",
3422
+ "[&>:is(div,span:not([data-slot=chip-close]),p)]:py-1",
3423
+ "[&>:is(div,span:not([data-slot=chip-close]),p)]:truncate"
3422
3424
  );
3423
3425
  if (!el.hasAttribute("type")) {
3424
3426
  el.setAttribute("type", "button");
@@ -3491,8 +3493,8 @@
3491
3493
  });
3492
3494
  });
3493
3495
  Alpine.directive("h-chip-close", (el, { original }, { effect, cleanup }) => {
3494
- if (el.tagName === "BUTTON") {
3495
- throw new Error(`${original} must NOT be a button element`);
3496
+ if (el.tagName !== "SPAN") {
3497
+ throw new Error(`${original} must be a span element`);
3496
3498
  }
3497
3499
  const chip = Alpine.findClosest(el.parentElement, (parent) => Object.prototype.hasOwnProperty.call(parent, "_h_chip"));
3498
3500
  el.classList.add(
@@ -11572,7 +11574,7 @@
11572
11574
  }
11573
11575
 
11574
11576
  // package.json
11575
- var version = "1.10.1";
11577
+ var version = "1.10.2";
11576
11578
 
11577
11579
  // src/index.js
11578
11580
  window.Harmonia = { getBreakpointListener, addColorSchemeListener, getColorScheme, removeColorSchemeListener, setColorScheme, getSystemColorScheme, version };