@codbex/harmonia 1.10.0 → 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
@@ -3405,6 +3405,10 @@
3405
3405
  "[&_svg:not([class*='size-'])]:size-4",
3406
3406
  "shrink-0",
3407
3407
  "[&_svg]:shrink-0",
3408
+ "aria-expanded:outline-[calc(var(--spacing)*0.75)]",
3409
+ "aria-expanded:outline",
3410
+ "focus:outline-[calc(var(--spacing)*0.75)]",
3411
+ "focus:outline",
3408
3412
  "focus-visible:outline-[calc(var(--spacing)*0.75)]",
3409
3413
  "focus-visible:outline",
3410
3414
  "h-7",
@@ -3414,8 +3418,9 @@
3414
3418
  "has-[>[data-slot=chip-close]]:pr-0",
3415
3419
  "has-[>[data-slot=spinner]]:px-2",
3416
3420
  "text-secondary-foreground",
3417
- "fill-secondary-foreground",
3418
- "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"
3419
3424
  );
3420
3425
  if (!el.hasAttribute("type")) {
3421
3426
  el.setAttribute("type", "button");
@@ -3426,7 +3431,7 @@
3426
3431
  primary: [
3427
3432
  "bg-primary/10",
3428
3433
  "border-primary/50",
3429
- "[&>svg]:fill-primary",
3434
+ "[&>svg]:text-primary",
3430
3435
  "[&:hover:not(:has([data-slot=chip-close]:hover)):not(:active)]:bg-primary/15",
3431
3436
  "[&:active:not(:has([data-slot=chip-close]:active))]:bg-primary/20",
3432
3437
  "outline-primary/50"
@@ -3434,7 +3439,7 @@
3434
3439
  positive: [
3435
3440
  "bg-positive/10",
3436
3441
  "border-positive/50",
3437
- "[&>svg]:fill-positive",
3442
+ "[&>svg]:text-positive",
3438
3443
  "[&:hover:not(:has([data-slot=chip-close]:hover)):not(:active)]:bg-positive/15",
3439
3444
  "[&:active:not(:has([data-slot=chip-close]:active))]:bg-positive/20",
3440
3445
  "outline-positive/50"
@@ -3442,7 +3447,7 @@
3442
3447
  negative: [
3443
3448
  "bg-negative/10",
3444
3449
  "border-negative/50",
3445
- "[&>svg]:fill-negative",
3450
+ "[&>svg]:text-negative",
3446
3451
  "[&:hover:not(:has([data-slot=chip-close]:hover)):not(:active)]:bg-negative/15",
3447
3452
  "[&:active:not(:has([data-slot=chip-close]:active))]:bg-negative/20",
3448
3453
  "outline-negative/50"
@@ -3450,7 +3455,7 @@
3450
3455
  warning: [
3451
3456
  "bg-warning/10",
3452
3457
  "border-warning/50",
3453
- "[&>svg]:fill-warning",
3458
+ "[&>svg]:text-warning",
3454
3459
  "[&:hover:not(:has([data-slot=chip-close]:hover)):not(:active)]:bg-warning/15",
3455
3460
  "[&:active:not(:has([data-slot=chip-close]:active))]:bg-warning/20",
3456
3461
  "outline-warning/50"
@@ -3458,14 +3463,14 @@
3458
3463
  information: [
3459
3464
  "bg-information/10",
3460
3465
  "border-information/50",
3461
- "[&>svg]:fill-information",
3466
+ "[&>svg]:text-information",
3462
3467
  "[&:hover:not(:has([data-slot=chip-close]:hover)):not(:active)]:bg-information/15",
3463
3468
  "[&:active:not(:has([data-slot=chip-close]:active))]:bg-information/20",
3464
3469
  "outline-information/50"
3465
3470
  ],
3466
3471
  outline: [
3467
3472
  "bg-background",
3468
- "[&>svg]:fill-secondary-foreground",
3473
+ "[&>svg]:text-secondary-foreground",
3469
3474
  "[&:hover:not(:has([data-slot=chip-close]:hover)):not(:active)]:bg-secondary-hover",
3470
3475
  "[&:active:not(:has([data-slot=chip-close]:active))]:bg-secondary-active",
3471
3476
  "outline-ring/50"
@@ -3488,8 +3493,8 @@
3488
3493
  });
3489
3494
  });
3490
3495
  Alpine.directive("h-chip-close", (el, { original }, { effect, cleanup }) => {
3491
- if (el.tagName === "BUTTON") {
3492
- 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`);
3493
3498
  }
3494
3499
  const chip = Alpine.findClosest(el.parentElement, (parent) => Object.prototype.hasOwnProperty.call(parent, "_h_chip"));
3495
3500
  el.classList.add(
@@ -11569,7 +11574,7 @@
11569
11574
  }
11570
11575
 
11571
11576
  // package.json
11572
- var version = "1.10.0";
11577
+ var version = "1.10.2";
11573
11578
 
11574
11579
  // src/index.js
11575
11580
  window.Harmonia = { getBreakpointListener, addColorSchemeListener, getColorScheme, removeColorSchemeListener, setColorScheme, getSystemColorScheme, version };