@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.
@@ -5324,7 +5324,9 @@ function chip_default(Alpine) {
5324
5324
  "has-[>[data-slot=chip-close]]:pr-0",
5325
5325
  "has-[>[data-slot=spinner]]:px-2",
5326
5326
  "text-secondary-foreground",
5327
- "border"
5327
+ "border",
5328
+ "[&>:is(div,span:not([data-slot=chip-close]),p)]:py-1",
5329
+ "[&>:is(div,span:not([data-slot=chip-close]),p)]:truncate"
5328
5330
  );
5329
5331
  if (!el.hasAttribute("type")) {
5330
5332
  el.setAttribute("type", "button");
@@ -5397,8 +5399,8 @@ function chip_default(Alpine) {
5397
5399
  });
5398
5400
  });
5399
5401
  Alpine.directive("h-chip-close", (el, { original }, { effect, cleanup }) => {
5400
- if (el.tagName === "BUTTON") {
5401
- throw new Error(`${original} must NOT be a button element`);
5402
+ if (el.tagName !== "SPAN") {
5403
+ throw new Error(`${original} must be a span element`);
5402
5404
  }
5403
5405
  const chip = Alpine.findClosest(el.parentElement, (parent) => Object.prototype.hasOwnProperty.call(parent, "_h_chip"));
5404
5406
  el.classList.add(
@@ -11434,7 +11436,7 @@ function tree_default(Alpine) {
11434
11436
  }
11435
11437
 
11436
11438
  // package.json
11437
- var version = "1.10.1";
11439
+ var version = "1.10.2";
11438
11440
 
11439
11441
  // src/utils/theme.js
11440
11442
  var colorSchemeKey = "codbex.harmonia.colorMode";