@uniweb/kit 0.10.4 → 0.10.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/kit",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -42,8 +42,8 @@
42
42
  "fuse.js": "^7.0.0",
43
43
  "shiki": "^3.0.0",
44
44
  "tailwind-merge": "^3.6.0",
45
- "@uniweb/semantic-parser": "1.2.0",
46
45
  "@uniweb/core": "0.8.0",
46
+ "@uniweb/semantic-parser": "1.2.0",
47
47
  "@uniweb/scene": "0.1.2"
48
48
  },
49
49
  "peerDependencies": {
@@ -6,10 +6,16 @@
6
6
  * @import "@uniweb/kit/callout-tokens.css";
7
7
  *
8
8
  * OPT-IN, and that is the point. kit's render engine emits a concept block as
9
- * a plain bordered box carrying `data-concept="<tag>"` and decides nothing
10
- * about how it looks, because what a callout looks like is a foundation's
11
- * design. This file is the answer for the foundations that do not want to make
12
- * that decision the common look, themed, in one import.
9
+ * a bare `<div data-concept="<tag>">` no classes, no box, nothing decided,
10
+ * because what a callout looks like is a foundation's design. Without an
11
+ * import like this one a concept block is unstyled and reads as plain prose,
12
+ * which is the correct default for a tag nobody has designed for yet.
13
+ *
14
+ * So this file supplies the WHOLE look, not just the colours: the frame, the
15
+ * padding and the spacing as well as the tint. An earlier version set only
16
+ * `border-color` and `background-color`, which on a bare div with no border
17
+ * width and no padding rendered as a tinted band running edge to edge — the
18
+ * right hue and nothing else.
13
19
  *
14
20
  * ── Why five names may live here when they may not live in a component ──
15
21
  *
@@ -38,13 +44,25 @@
38
44
  *
39
45
  * ── Tags with no rule ──
40
46
  *
41
- * A concept block whose tag is not one of the five keeps the engine's plain
42
- * bordered box. That is deliberate: an unrecognized concept should look
47
+ * A concept block whose tag is not one of the five gets the neutral frame
48
+ * above and no tint. That is deliberate: an unrecognized concept should look
43
49
  * unremarkable rather than borrow a severity it was never given.
44
50
  */
45
51
 
52
+ /*
53
+ * The frame. `--border` is the neutral fallback, so a tag with no rule of its
54
+ * own below still reads as a deliberate box rather than as loose prose.
55
+ *
56
+ * The margin is stated here because the engine emits an unclassed div: a prose
57
+ * container styles the elements it knows, and this is not one of them, so
58
+ * without this a callout would sit flush against the paragraph above it and
59
+ * against the next callout.
60
+ */
46
61
  [data-concept] {
62
+ border: 1px solid var(--border);
47
63
  border-radius: var(--radius, 0.5rem);
64
+ padding: 1rem 1.25rem;
65
+ margin: 1.5rem 0;
48
66
  }
49
67
 
50
68
  [data-concept="note"],