@celestia-island/hikari 0.55.421 → 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.421",
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",
@@ -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
+ }