elements-kit 0.4.1 → 0.5.1

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.
@@ -178,8 +178,8 @@ function classifyStatic(list) {
178
178
  if (c instanceof Node) kind &= 1;
179
179
  else if (typeof c === "string" || typeof c === "number") kind &= 2;
180
180
  else return 0;
181
- if (kind === 0) return 3;
182
181
  }
182
+ if (kind === 0) return 3;
183
183
  return kind === 3 ? 2 : kind;
184
184
  }
185
185
  function mountStatic(el, list, kind) {
package/dist/for.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { c as effectScope, g as untracked, h as trigger, m as signal, p as onCleanup, s as effect } from "./lib-CVfOddra.mjs";
2
2
  import "./signals/index.mjs";
3
- import { n as disposeElement } from "./element-Cbzkm_B5.mjs";
3
+ import { n as disposeElement } from "./element-obPs4k23.mjs";
4
4
  //#region src/for.ts
5
5
  /**
6
6
  * Keyed list renderer. See {@link ForProps} for prop details.
@@ -1,4 +1,4 @@
1
- import { r as mountChild, t as createElement } from "../element-Cbzkm_B5.mjs";
1
+ import { r as mountChild, t as createElement } from "../element-obPs4k23.mjs";
2
2
  //#region src/jsx-runtime/fragment.ts
3
3
  /**
4
4
  * Used by the JSX transform for `<>...</>` fragments.
@@ -0,0 +1,88 @@
1
+ .x-badge {
2
+ white-space: nowrap;
3
+ font-family: var(--default-font-family);
4
+ font-weight: var(--font-weight-medium);
5
+ flex-shrink: 0;
6
+ align-items: center;
7
+ height: fit-content;
8
+ font-style: normal;
9
+ line-height: 1;
10
+ display: inline-flex;
11
+ }
12
+
13
+ .x-badge:where([data-size="1"]) {
14
+ font-size: var(--font-size-1);
15
+ line-height: var(--line-height-1);
16
+ letter-spacing: var(--letter-spacing-1);
17
+ padding: calc(var(--space-1) * .5) calc(var(--space-1) * 1.5);
18
+ gap: calc(var(--space-1) * 1.5);
19
+ border-radius: max(var(--radius-1), var(--radius-full));
20
+ }
21
+
22
+ .x-badge:where([data-size="2"]) {
23
+ font-size: var(--font-size-1);
24
+ line-height: var(--line-height-1);
25
+ letter-spacing: var(--letter-spacing-1);
26
+ padding: var(--space-1) var(--space-2);
27
+ gap: calc(var(--space-1) * 1.5);
28
+ border-radius: max(var(--radius-2), var(--radius-full));
29
+ }
30
+
31
+ .x-badge:where([data-size="3"]) {
32
+ font-size: var(--font-size-2);
33
+ line-height: var(--line-height-2);
34
+ letter-spacing: var(--letter-spacing-2);
35
+ padding: var(--space-1) calc(var(--space-2) * 1.25);
36
+ gap: var(--space-2);
37
+ border-radius: max(var(--radius-2), var(--radius-full));
38
+ }
39
+
40
+ .x-badge:where([data-variant="solid"]) {
41
+ background-color: var(--accent-9);
42
+ color: var(--accent-contrast);
43
+ }
44
+
45
+ .x-badge:where([data-variant="solid"])::selection {
46
+ background-color: var(--accent-7);
47
+ color: var(--accent-12);
48
+ }
49
+
50
+ .x-badge:where([data-variant="solid"]):where([data-high-contrast]) {
51
+ background-color: var(--accent-12);
52
+ color: var(--accent-1);
53
+ }
54
+
55
+ .x-badge:where([data-variant="solid"]):where([data-high-contrast])::selection {
56
+ background-color: var(--accent-a11);
57
+ color: var(--accent-1);
58
+ }
59
+
60
+ .x-badge:where([data-variant="surface"]) {
61
+ background-color: var(--accent-surface);
62
+ box-shadow: inset 0 0 0 1px var(--accent-a6);
63
+ color: var(--accent-a11);
64
+ }
65
+
66
+ .x-badge:where([data-variant="surface"]):where([data-high-contrast]) {
67
+ color: var(--accent-12);
68
+ }
69
+
70
+ .x-badge:where([data-variant="soft"]) {
71
+ background-color: var(--accent-a3);
72
+ color: var(--accent-a11);
73
+ }
74
+
75
+ .x-badge:where([data-variant="soft"]):where([data-high-contrast]) {
76
+ color: var(--accent-12);
77
+ }
78
+
79
+ .x-badge:where([data-variant="outline"]) {
80
+ box-shadow: inset 0 0 0 1px var(--accent-a8);
81
+ color: var(--accent-a11);
82
+ }
83
+
84
+ .x-badge:where([data-variant="outline"]):where([data-high-contrast]) {
85
+ box-shadow: inset 0 0 0 1px var(--accent-a7),
86
+ inset 0 0 0 1px var(--gray-a11);
87
+ color: var(--accent-12);
88
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elements-kit",
3
3
  "type": "module",
4
- "version": "0.4.1",
4
+ "version": "0.5.1",
5
5
  "description": "A lightweight reactive UI library that transforms native HTMLElements into reactive components with signals. Ideal for framework-agnostic applications and web components.",
6
6
  "keywords": [
7
7
  "webcomponents",