@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.css +1 -1
- package/dist/harmonia.esm.js +16 -11
- package/dist/harmonia.esm.min.js +2 -2
- package/dist/harmonia.esm.min.js.map +2 -2
- package/dist/harmonia.js +16 -11
- package/dist/harmonia.min.js +2 -2
- package/dist/harmonia.min.js.map +2 -2
- package/package.json +1 -1
package/dist/harmonia.esm.js
CHANGED
|
@@ -5311,6 +5311,10 @@ function chip_default(Alpine) {
|
|
|
5311
5311
|
"[&_svg:not([class*='size-'])]:size-4",
|
|
5312
5312
|
"shrink-0",
|
|
5313
5313
|
"[&_svg]:shrink-0",
|
|
5314
|
+
"aria-expanded:outline-[calc(var(--spacing)*0.75)]",
|
|
5315
|
+
"aria-expanded:outline",
|
|
5316
|
+
"focus:outline-[calc(var(--spacing)*0.75)]",
|
|
5317
|
+
"focus:outline",
|
|
5314
5318
|
"focus-visible:outline-[calc(var(--spacing)*0.75)]",
|
|
5315
5319
|
"focus-visible:outline",
|
|
5316
5320
|
"h-7",
|
|
@@ -5320,8 +5324,9 @@ function chip_default(Alpine) {
|
|
|
5320
5324
|
"has-[>[data-slot=chip-close]]:pr-0",
|
|
5321
5325
|
"has-[>[data-slot=spinner]]:px-2",
|
|
5322
5326
|
"text-secondary-foreground",
|
|
5323
|
-
"
|
|
5324
|
-
"
|
|
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"
|
|
5325
5330
|
);
|
|
5326
5331
|
if (!el.hasAttribute("type")) {
|
|
5327
5332
|
el.setAttribute("type", "button");
|
|
@@ -5332,7 +5337,7 @@ function chip_default(Alpine) {
|
|
|
5332
5337
|
primary: [
|
|
5333
5338
|
"bg-primary/10",
|
|
5334
5339
|
"border-primary/50",
|
|
5335
|
-
"[&>svg]:
|
|
5340
|
+
"[&>svg]:text-primary",
|
|
5336
5341
|
"[&:hover:not(:has([data-slot=chip-close]:hover)):not(:active)]:bg-primary/15",
|
|
5337
5342
|
"[&:active:not(:has([data-slot=chip-close]:active))]:bg-primary/20",
|
|
5338
5343
|
"outline-primary/50"
|
|
@@ -5340,7 +5345,7 @@ function chip_default(Alpine) {
|
|
|
5340
5345
|
positive: [
|
|
5341
5346
|
"bg-positive/10",
|
|
5342
5347
|
"border-positive/50",
|
|
5343
|
-
"[&>svg]:
|
|
5348
|
+
"[&>svg]:text-positive",
|
|
5344
5349
|
"[&:hover:not(:has([data-slot=chip-close]:hover)):not(:active)]:bg-positive/15",
|
|
5345
5350
|
"[&:active:not(:has([data-slot=chip-close]:active))]:bg-positive/20",
|
|
5346
5351
|
"outline-positive/50"
|
|
@@ -5348,7 +5353,7 @@ function chip_default(Alpine) {
|
|
|
5348
5353
|
negative: [
|
|
5349
5354
|
"bg-negative/10",
|
|
5350
5355
|
"border-negative/50",
|
|
5351
|
-
"[&>svg]:
|
|
5356
|
+
"[&>svg]:text-negative",
|
|
5352
5357
|
"[&:hover:not(:has([data-slot=chip-close]:hover)):not(:active)]:bg-negative/15",
|
|
5353
5358
|
"[&:active:not(:has([data-slot=chip-close]:active))]:bg-negative/20",
|
|
5354
5359
|
"outline-negative/50"
|
|
@@ -5356,7 +5361,7 @@ function chip_default(Alpine) {
|
|
|
5356
5361
|
warning: [
|
|
5357
5362
|
"bg-warning/10",
|
|
5358
5363
|
"border-warning/50",
|
|
5359
|
-
"[&>svg]:
|
|
5364
|
+
"[&>svg]:text-warning",
|
|
5360
5365
|
"[&:hover:not(:has([data-slot=chip-close]:hover)):not(:active)]:bg-warning/15",
|
|
5361
5366
|
"[&:active:not(:has([data-slot=chip-close]:active))]:bg-warning/20",
|
|
5362
5367
|
"outline-warning/50"
|
|
@@ -5364,14 +5369,14 @@ function chip_default(Alpine) {
|
|
|
5364
5369
|
information: [
|
|
5365
5370
|
"bg-information/10",
|
|
5366
5371
|
"border-information/50",
|
|
5367
|
-
"[&>svg]:
|
|
5372
|
+
"[&>svg]:text-information",
|
|
5368
5373
|
"[&:hover:not(:has([data-slot=chip-close]:hover)):not(:active)]:bg-information/15",
|
|
5369
5374
|
"[&:active:not(:has([data-slot=chip-close]:active))]:bg-information/20",
|
|
5370
5375
|
"outline-information/50"
|
|
5371
5376
|
],
|
|
5372
5377
|
outline: [
|
|
5373
5378
|
"bg-background",
|
|
5374
|
-
"[&>svg]:
|
|
5379
|
+
"[&>svg]:text-secondary-foreground",
|
|
5375
5380
|
"[&:hover:not(:has([data-slot=chip-close]:hover)):not(:active)]:bg-secondary-hover",
|
|
5376
5381
|
"[&:active:not(:has([data-slot=chip-close]:active))]:bg-secondary-active",
|
|
5377
5382
|
"outline-ring/50"
|
|
@@ -5394,8 +5399,8 @@ function chip_default(Alpine) {
|
|
|
5394
5399
|
});
|
|
5395
5400
|
});
|
|
5396
5401
|
Alpine.directive("h-chip-close", (el, { original }, { effect, cleanup }) => {
|
|
5397
|
-
if (el.tagName
|
|
5398
|
-
throw new Error(`${original} must
|
|
5402
|
+
if (el.tagName !== "SPAN") {
|
|
5403
|
+
throw new Error(`${original} must be a span element`);
|
|
5399
5404
|
}
|
|
5400
5405
|
const chip = Alpine.findClosest(el.parentElement, (parent) => Object.prototype.hasOwnProperty.call(parent, "_h_chip"));
|
|
5401
5406
|
el.classList.add(
|
|
@@ -11431,7 +11436,7 @@ function tree_default(Alpine) {
|
|
|
11431
11436
|
}
|
|
11432
11437
|
|
|
11433
11438
|
// package.json
|
|
11434
|
-
var version = "1.10.
|
|
11439
|
+
var version = "1.10.2";
|
|
11435
11440
|
|
|
11436
11441
|
// src/utils/theme.js
|
|
11437
11442
|
var colorSchemeKey = "codbex.harmonia.colorMode";
|