@celestia-island/hikari 0.55.419 → 0.55.423

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": "@celestia-island/hikari",
3
- "version": "0.55.419",
3
+ "version": "0.55.423",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Hikari UI library, Vue 3 runtime — one design system for Vue 3 and Rust/WASM applications",
@@ -61,10 +61,24 @@
61
61
 
62
62
  .hk-list-row-trailing {
63
63
  margin-left: auto;
64
- flex-shrink: 0;
65
64
  display: flex;
66
65
  align-items: center;
67
66
  gap: var(--space-8, 0.5rem);
67
+
68
+ /* The lane must be able to SHRINK when the row runs out of room (chip
69
+ overflow, 2026-11-18): the old `flex-shrink: 0` plus the default
70
+ `min-width: auto` pinned the lane at its content width, so a wide
71
+ trailing cluster — chips, a picker, widget buttons — pushed PAST the
72
+ row's right edge. With `min-width: 0; flex-shrink: 1` a roomy row is
73
+ pixel-identical (zero deficit ⇒ none of this applies); an overfull
74
+ row distributes the deficit PRO RATA, so the lane starts shrinking
75
+ immediately and wraps the cluster (flex-wrap below) — chips stack
76
+ inside the card and the row may grow taller, instead of the cluster
77
+ spilling out of it. */
78
+ min-width: 0;
79
+ flex-shrink: 1;
80
+ flex-wrap: wrap;
81
+ justify-content: flex-end;
68
82
  }
69
83
 
70
84
  /* The touch action lane parks in the same flex line and owns the auto
@@ -0,0 +1,109 @@
1
+ // HkJsonTree EDITING surface — loaded only alongside the component (the
2
+ // tsx imports it), deliberately NOT part of HkJsonTree.scss: the boot
3
+ // error landing compiles that file into its checked-in sheet, and the
4
+ // editing chrome must never ride (or re-bloat) the boot-critical payload.
5
+ // Every rule here targets classes that only exist after a host opts in
6
+ // (`editable` prop → root class s-jt-editable + the editor DOM), so a
7
+ // read-only tree paints nothing from this sheet.
8
+
9
+ // Use theme variables with namespace to avoid conflicts
10
+ @use "./hikari-vars" as vars;
11
+ @use "../styles/polyfill" as *;
12
+
13
+ /* Rows answer right-click / long-press with the row menu: the cursor
14
+ * states the affordance without moving any spacing (the read-only tree's
15
+ * pinned geometry in HkJsonTree.scss stays untouched). */
16
+ .s-tool-json-tree.s-jt-editable .s-jt-row {
17
+ cursor: context-menu;
18
+ }
19
+
20
+ .s-jt-empty-row {
21
+ /* The open-empty container's inline affordance row. */
22
+ cursor: pointer;
23
+ }
24
+
25
+ .s-jt-empty-add {
26
+ display: inline-flex;
27
+ align-items: center;
28
+ gap: var(--space-4, 0.25rem);
29
+ font: inherit;
30
+ color: rgb(var(--color-muted));
31
+ background: none;
32
+ border: none;
33
+ padding: 0;
34
+ cursor: pointer;
35
+ }
36
+
37
+ .s-jt-empty-add:hover {
38
+ color: rgb(var(--color-primary));
39
+ }
40
+
41
+ /* Inline editor row: baseline-aligned like every row, but allowed to
42
+ * wrap — chips plus two inputs must degrade gracefully in a narrow pane
43
+ * instead of blowing past the tree's scroll edge. */
44
+ .s-jt-edit {
45
+ flex-wrap: wrap;
46
+ column-gap: var(--space-4, 0.25rem);
47
+ row-gap: var(--space-2, 0.125rem);
48
+ }
49
+
50
+ .s-jt-edit-value {
51
+ display: inline-flex;
52
+ align-items: baseline;
53
+ flex-wrap: wrap;
54
+ gap: var(--space-4, 0.25rem);
55
+ min-width: 0;
56
+ }
57
+
58
+ .s-jt-chips {
59
+ display: inline-flex;
60
+ align-items: center;
61
+ gap: var(--space-2, 0.125rem);
62
+ flex-shrink: 0;
63
+ }
64
+
65
+ .s-jt-chip {
66
+ font: inherit;
67
+ font-size: var(--text-3xs, 0.5rem);
68
+ line-height: 1.4;
69
+ color: rgb(var(--color-muted));
70
+ background: rgb(var(--color-surface) / 0.6);
71
+ border: 1px solid var(--border-faint, rgb(var(--color-border) / 10%));
72
+ border-radius: var(--radius-sm, 4px);
73
+ padding: 0 var(--space-4, 0.25rem);
74
+ cursor: pointer;
75
+ }
76
+
77
+ .s-jt-chip[data-on] {
78
+ color: rgb(var(--color-primary));
79
+ border-color: rgb(var(--color-primary) / 40%);
80
+ }
81
+
82
+ .s-jt-input {
83
+ font: inherit;
84
+ color: rgb(var(--color-text));
85
+ background: rgb(var(--color-surface) / 0.6);
86
+ border: 1px solid var(--border-faint, rgb(var(--color-border) / 10%));
87
+ border-radius: var(--radius-xs, 2px);
88
+ padding: 0 var(--space-4, 0.25rem);
89
+ min-width: 4ch;
90
+ width: 10em;
91
+ max-width: 100%;
92
+ }
93
+
94
+ .s-jt-input:focus {
95
+ outline: none;
96
+ border-color: rgb(var(--color-primary) / 60%);
97
+ }
98
+
99
+ /* Invalid number: the field carries the state visually and the hint names
100
+ * it; submission is blocked at the TS layer until the text parses. */
101
+ .s-jt-input[data-invalid] {
102
+ border-color: rgb(var(--color-error) / 60%);
103
+ }
104
+
105
+ .s-jt-invalid {
106
+ color: rgb(var(--color-error, 166 41 55));
107
+ font-size: var(--text-3xs, 0.5rem);
108
+ font-style: italic;
109
+ }