@celestia-island/hikari 0.55.415 → 0.55.416

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.
Files changed (69) hide show
  1. package/package.json +1 -1
  2. package/src/components/HkAffixPicker.scss +2 -2
  3. package/src/components/HkAlert.scss +12 -12
  4. package/src/components/HkAuthSubmitButton.scss +1 -1
  5. package/src/components/HkBlockingToast.scss +7 -7
  6. package/src/components/HkBreadcrumb.scss +3 -3
  7. package/src/components/HkCardList.scss +3 -3
  8. package/src/components/HkColorSchemeEditor.test.ts +179 -0
  9. package/src/components/HkColorSchemeEditor.tsx +57 -2
  10. package/src/components/HkCookieConsent.scss +1 -1
  11. package/src/components/HkCurrencySelect.scss +2 -2
  12. package/src/components/HkDiffViewer.scss +5 -5
  13. package/src/components/HkEditableTable.scss +1 -1
  14. package/src/components/HkEmergencySnoozeTray.scss +2 -2
  15. package/src/components/HkFileBrowserDialog.scss +2 -2
  16. package/src/components/HkFileField.scss +3 -3
  17. package/src/components/HkFilePickerField.scss +2 -2
  18. package/src/components/HkFilterPanel.scss +1 -1
  19. package/src/components/HkIcon.scss +3 -3
  20. package/src/components/HkIconButtonGroup.scss +1 -1
  21. package/src/components/HkIconChip.scss +4 -4
  22. package/src/components/HkInput.scss +3 -3
  23. package/src/components/HkLogWindow.scss +2 -2
  24. package/src/components/HkMenu.scss +1 -1
  25. package/src/components/HkMessageBox.scss +2 -2
  26. package/src/components/HkMoneyInput.scss +2 -2
  27. package/src/components/HkNotificationBell.scss +3 -3
  28. package/src/components/HkOtpInput.scss +2 -2
  29. package/src/components/HkPasswordSurface.scss +12 -12
  30. package/src/components/HkPersistentToast.scss +3 -3
  31. package/src/components/HkPillToggleGroup.scss +6 -6
  32. package/src/components/HkPillToggleGroup.test.tsx +12 -7
  33. package/src/components/HkPopupSelect.scss +3 -3
  34. package/src/components/HkProgressBar.scss +1 -1
  35. package/src/components/HkProgressBar.styles.test.ts +1 -1
  36. package/src/components/HkProgressRing.scss +2 -2
  37. package/src/components/HkQuote.scss +3 -3
  38. package/src/components/HkRangeRibbon.scss +1 -1
  39. package/src/components/HkSecretRevealModal.scss +1 -1
  40. package/src/components/HkSelect.scss +3 -3
  41. package/src/components/HkSelectionGrid.scss +4 -4
  42. package/src/components/HkSelectionGrid.test.tsx +183 -54
  43. package/src/components/HkSelectionWaterfall.scss +4 -4
  44. package/src/components/HkStatCard.scss +4 -4
  45. package/src/components/HkStatusBar.tsx +9 -9
  46. package/src/components/HkStatusRow.scss +3 -3
  47. package/src/components/HkStepGuide.scss +2 -2
  48. package/src/components/HkSwitch.scss +1 -1
  49. package/src/components/HkTag.scss +12 -12
  50. package/src/components/HkTemplateField.scss +1 -1
  51. package/src/components/HkTextarea.scss +1 -1
  52. package/src/components/HkToast.scss +5 -5
  53. package/src/components/HkTree.scss +2 -2
  54. package/src/components/_menu-item.scss +4 -4
  55. package/src/plugins/boot-recovery.details.test.ts +1 -1
  56. package/src/plugins/boot-recovery.diagnostics.test.ts +1 -1
  57. package/src/plugins/boot-recovery.error-context.test.ts +1 -1
  58. package/src/plugins/boot-recovery.locales.test.ts +1 -1
  59. package/src/plugins/bootLandingCss.js +1 -1
  60. package/src/plugins/bootLandingDetailsCss.js +1 -1
  61. package/src/styles/admin-tokens.scss +16 -16
  62. package/src/styles/theme/channels.scss +23 -13
  63. package/src/styles/theme/scrollbar.scss +3 -3
  64. package/src/styles/tokenInventory.test.ts +19 -0
  65. package/src/theme/_field.scss +3 -3
  66. package/src/theme/index.ts +1 -1
  67. package/src/theme/presets.ts +72 -8
  68. package/src/theme/solidInk.contract.test.ts +65 -6
  69. package/src/tokens.scss +23 -13
@@ -19,7 +19,7 @@
19
19
 
20
20
  .hk-input-required {
21
21
  margin-inline-start: var(--space-2);
22
- color: rgb(var(--color-error));
22
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
23
23
  }
24
24
 
25
25
  .hk-input-box {
@@ -58,7 +58,7 @@
58
58
  }
59
59
 
60
60
  .hk-input-box-error:focus-within {
61
- border-color: rgb(var(--color-error));
61
+ border-color: var(--hi-color-danger-fg, rgb(var(--color-error)));
62
62
  box-shadow: var(--shadow-focus-error);
63
63
  }
64
64
 
@@ -280,7 +280,7 @@
280
280
  .hk-input-error-msg {
281
281
  margin-top: var(--space-4);
282
282
  font-size: var(--text-xs);
283
- color: rgb(var(--color-error));
283
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
284
284
  }
285
285
 
286
286
  .hk-input-hint {
@@ -133,11 +133,11 @@
133
133
  }
134
134
 
135
135
  .s-log-entry-error {
136
- color: rgb(var(--color-error));
136
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
137
137
  }
138
138
 
139
139
  .s-log-entry-warn {
140
- color: rgb(var(--color-warning));
140
+ color: var(--hi-color-warning-fg, rgb(var(--color-warning)));
141
141
  }
142
142
 
143
143
  .s-log-entry-debug {
@@ -150,7 +150,7 @@
150
150
  height: 18px;
151
151
  padding: 0 var(--space-4, 4px);
152
152
  border-radius: var(--radius-full, 9999px);
153
- background: rgb(var(--color-error, 247 118 142));
153
+ background: rgb(var(--color-error, 166 41 55));
154
154
  color: var(--hi-color-text-on-danger, #fff);
155
155
  font-size: var(--text-2xs, 10px);
156
156
  font-weight: 700;
@@ -17,12 +17,12 @@
17
17
  color: rgb(var(--color-primary));
18
18
 
19
19
  [data-tone="success"] & {
20
- color: rgb(var(--color-success, 90 180 110));
20
+ color: var(--hi-color-success-fg, rgb(var(--color-success)));
21
21
  }
22
22
 
23
23
  [data-tone="warning"] &,
24
24
  [data-tone="danger"] & {
25
- color: rgb(var(--color-error, 247 118 142));
25
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
26
26
  }
27
27
  }
28
28
 
@@ -32,7 +32,7 @@
32
32
 
33
33
  .hk-money-input-required {
34
34
  margin-inline-start: var(--space-2);
35
- color: rgb(var(--color-error));
35
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
36
36
  }
37
37
 
38
38
  .hk-money-input-box {
@@ -117,7 +117,7 @@
117
117
  .hk-money-input-error {
118
118
  margin-top: var(--space-4);
119
119
  font-size: var(--text-xs);
120
- color: rgb(var(--color-error));
120
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
121
121
  }
122
122
 
123
123
  /* ── size ladder ─────────────────────────────────────────────────── */
@@ -113,15 +113,15 @@
113
113
  channels, theme-following; fallbacks are the tokenInventory-canonical
114
114
  literals, NOT the toast family's sheet-local ones). */
115
115
  .hk-notification-row.is-error .hk-notification-row__icon {
116
- color: var(--hi-color-danger, #f7768e);
116
+ color: var(--hi-color-danger-fg, #a62937);
117
117
  }
118
118
 
119
119
  .hk-notification-row.is-warning .hk-notification-row__icon {
120
- color: var(--hi-color-warning, #eed677);
120
+ color: var(--hi-color-warning-fg, #894800);
121
121
  }
122
122
 
123
123
  .hk-notification-row.is-success .hk-notification-row__icon {
124
- color: var(--hi-color-success, #0eb840);
124
+ color: var(--hi-color-success-fg, #1f6530);
125
125
  }
126
126
 
127
127
  .hk-notification-row.is-info .hk-notification-row__icon,
@@ -187,14 +187,14 @@
187
187
  }
188
188
 
189
189
  .hk-otp-error .hk-otp-cell:focus {
190
- border-color: rgb(var(--color-error));
190
+ border-color: var(--hi-color-danger-fg, rgb(var(--color-error)));
191
191
  box-shadow: var(--shadow-focus-error);
192
192
  }
193
193
 
194
194
  .hk-otp-error-msg {
195
195
  margin: var(--space-6, 0.375rem) 0 0;
196
196
  font-size: var(--text-xs, 0.75rem);
197
- color: rgb(var(--color-error));
197
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
198
198
  /* The messages belong to the row's visual system, and the row centers
199
199
  * itself unconditionally (`.hk-otp` is a flex `justify-content: center`
200
200
  * line with no opt-out). A paragraph left at the page's default `start`
@@ -41,12 +41,12 @@
41
41
  }
42
42
 
43
43
  .hk-pwd-box[data-error] {
44
- border-color: var(--hi-color-danger, #f85149);
44
+ border-color: var(--hi-color-danger, #a62937);
45
45
  }
46
46
 
47
47
  .hk-pwd-box[data-error][data-focused] {
48
- border-color: var(--hi-color-danger, #f85149);
49
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--hi-color-danger, #f85149) 15%, transparent);
48
+ border-color: var(--hi-color-danger, #a62937);
49
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--hi-color-danger, #a62937) 15%, transparent);
50
50
  }
51
51
 
52
52
  .hk-pwd-box[data-disabled] {
@@ -55,7 +55,7 @@
55
55
  }
56
56
 
57
57
  .hk-pwd-box[data-fw] {
58
- border-color: var(--hi-color-warning, #eed677);
58
+ border-color: var(--hi-color-warning, #894800);
59
59
  }
60
60
 
61
61
  .hk-pwd-box[data-flash] {
@@ -243,18 +243,18 @@
243
243
  }
244
244
 
245
245
  .hk-pwd-strength[data-level="weak"] {
246
- background: var(--hi-color-danger, #f85149);
247
- box-shadow: 0 0 6px color-mix(in srgb, var(--hi-color-danger, #f85149) 60%, transparent);
246
+ background: var(--hi-color-danger, #a62937);
247
+ box-shadow: 0 0 6px color-mix(in srgb, var(--hi-color-danger, #a62937) 60%, transparent);
248
248
  }
249
249
 
250
250
  .hk-pwd-strength[data-level="fair"] {
251
- background: var(--hi-color-warning, #eed677);
252
- box-shadow: 0 0 6px color-mix(in srgb, var(--hi-color-warning, #eed677) 60%, transparent);
251
+ background: var(--hi-color-warning, #894800);
252
+ box-shadow: 0 0 6px color-mix(in srgb, var(--hi-color-warning, #894800) 60%, transparent);
253
253
  }
254
254
 
255
255
  .hk-pwd-strength[data-level="strong"] {
256
- background: var(--hi-color-success, #0eb840);
257
- box-shadow: 0 0 6px color-mix(in srgb, var(--hi-color-success, #0eb840) 60%, transparent);
256
+ background: var(--hi-color-success, #1f6530);
257
+ box-shadow: 0 0 6px color-mix(in srgb, var(--hi-color-success, #1f6530) 60%, transparent);
258
258
  }
259
259
 
260
260
  /* Reveal eye button — the right-edge affordance of the default
@@ -337,11 +337,11 @@
337
337
  }
338
338
 
339
339
  .hk-pwd-hint[data-variant="caps"] {
340
- color: var(--hi-color-warning, #eed677);
340
+ color: var(--hi-color-warning-fg, #894800);
341
341
  }
342
342
 
343
343
  .hk-pwd-hint[data-variant="fw"] {
344
- color: var(--hi-color-danger, #f85149);
344
+ color: var(--hi-color-danger-fg, #a62937);
345
345
  }
346
346
 
347
347
  .hk-pwd-box input:-webkit-autofill,
@@ -54,11 +54,11 @@ button.hk-persistent-toast {
54
54
  }
55
55
 
56
56
  .hk-persistent-toast--warning .hk-persistent-toast__icon {
57
- color: rgb(var(--color-warning));
57
+ color: var(--hi-color-warning-fg, rgb(var(--color-warning)));
58
58
  }
59
59
 
60
60
  .hk-persistent-toast--error .hk-persistent-toast__icon {
61
- color: rgb(var(--color-error));
61
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
62
62
  }
63
63
 
64
64
  .hk-persistent-toast--info .hk-persistent-toast__icon {
@@ -66,7 +66,7 @@ button.hk-persistent-toast {
66
66
  }
67
67
 
68
68
  .hk-persistent-toast--success .hk-persistent-toast__icon {
69
- color: rgb(var(--color-success));
69
+ color: var(--hi-color-success-fg, rgb(var(--color-success)));
70
70
  }
71
71
 
72
72
  .hk-persistent-toast__label {
@@ -105,8 +105,8 @@
105
105
  * independent; they are also written after the plain rule so the source
106
106
  * order agrees with what specificity already decides. */
107
107
  &[data-tone="success"][data-active] {
108
- color: rgb(var(--color-success, 14 184 64));
109
- background: rgb(var(--color-success, 14 184 64) / 16%);
108
+ color: var(--hi-color-success-fg, rgb(var(--color-success)));
109
+ background: rgb(var(--color-success, 31 101 48) / 16%);
110
110
  }
111
111
 
112
112
  &[data-tone="secondary"][data-active] {
@@ -115,13 +115,13 @@
115
115
  }
116
116
 
117
117
  &[data-tone="warning"][data-active] {
118
- color: rgb(var(--color-warning, 238 214 119));
119
- background: rgb(var(--color-warning, 238 214 119) / 16%);
118
+ color: var(--hi-color-warning-fg, rgb(var(--color-warning)));
119
+ background: rgb(var(--color-warning, 137 72 0) / 16%);
120
120
  }
121
121
 
122
122
  &[data-tone="error"][data-active] {
123
- color: rgb(var(--color-error, 247 118 142));
124
- background: rgb(var(--color-error, 247 118 142) / 16%);
123
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
124
+ background: rgb(var(--color-error, 166 41 55) / 16%);
125
125
  }
126
126
 
127
127
  &[data-tone="muted"][data-active] {
@@ -221,12 +221,13 @@ describe("HkPillToggleGroup tone channel", () => {
221
221
  const here = dirname(fileURLToPath(import.meta.url));
222
222
  const css = compile(join(here, "HkPillToggleGroup.scss"), { style: "expanded" }).css;
223
223
  const tones = ["success", "secondary", "warning", "error", "muted"] as const;
224
- // Same triplets styles/theme/channels.scss defines (light base).
224
+ // Same triplets styles/theme/channels.scss defines (light base) — the
225
+ // semantic trio is the shared canonical family now.
225
226
  const FALLBACKS: Record<(typeof tones)[number], string> = {
226
- success: "14 184 64",
227
+ success: "31 101 48",
227
228
  secondary: "81 154 115",
228
- warning: "238 214 119",
229
- error: "247 118 142",
229
+ warning: "137 72 0",
230
+ error: "166 41 55",
230
231
  muted: "108 108 108",
231
232
  };
232
233
  const plainActive = css.indexOf(".hk-pill-group-pill[data-active]");
@@ -255,9 +256,13 @@ describe("HkPillToggleGroup tone channel", () => {
255
256
  // so swapping one for another hue kept this green (R3 M9/M9b). Pin the
256
257
  // ink and the fill to their own channels — muted is the documented
257
258
  // exception (text ink, muted wash).
258
- expect(body, `${tone} INK uses its own channel`).toContain(
259
- `color: rgb(var(--color-${tone === "muted" ? "text" : tone}`,
260
- );
259
+ // The ink may be the raw fill channel or the fg variant (both valid).
260
+ // Muted and secondary are brand/muted slots — no fg variant exists.
261
+ // The error tone maps to the danger-fg token (danger→error channel).
262
+ const inkPat = ["muted", "secondary"].includes(tone)
263
+ ? `color: rgb(var(--color-${tone === "muted" ? "text" : tone}`
264
+ : `color: var(--hi-color-${tone === "error" ? "danger" : tone}-fg`;
265
+ expect(body, `${tone} INK uses its own channel`).toContain(inkPat);
261
266
  expect(body, `${tone} FILL uses its own channel`).toContain(
262
267
  `background: rgb(var(--color-${tone}`,
263
268
  );
@@ -21,7 +21,7 @@
21
21
 
22
22
  .hk-popup-select-required {
23
23
  margin-inline-start: var(--space-2);
24
- color: rgb(var(--color-error));
24
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
25
25
  }
26
26
 
27
27
  .hk-popup-select-trigger {
@@ -76,7 +76,7 @@
76
76
 
77
77
  .hk-popup-select-trigger[data-error]:focus,
78
78
  .hk-popup-select-trigger[data-error][data-state="open"] {
79
- border-color: rgb(var(--color-error));
79
+ border-color: var(--hi-color-danger-fg, rgb(var(--color-error)));
80
80
  box-shadow: var(--shadow-focus-error);
81
81
  }
82
82
 
@@ -192,7 +192,7 @@
192
192
  .hk-popup-select-error {
193
193
  margin-top: var(--space-4);
194
194
  font-size: var(--text-xs);
195
- color: rgb(var(--color-error));
195
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
196
196
  }
197
197
 
198
198
  // Mobile sheet form (HPopover sheetOnMobile): full-width option list with
@@ -158,7 +158,7 @@
158
158
  }
159
159
 
160
160
  &-danger {
161
- color: rgb(var(--color-error));
161
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
162
162
  }
163
163
  }
164
164
 
@@ -74,6 +74,6 @@ describe("HkProgressBar overspend sheet contract", () => {
74
74
  it("co-locates the caption with the value label row", () => {
75
75
  const rule = ruleBlock(".hk-progress-bar-overspend-label");
76
76
  expect(rule).toMatch(/margin-inline-start:\s*var\(--space-6\)/);
77
- expect(rule).toMatch(/&-danger\s*\{[^}]*color:\s*rgb\(var\(--color-error\)\)/);
77
+ expect(rule).toMatch(/&-danger\s*\{[^}]*color:\s*var\(--hi-color-danger-fg,/);
78
78
  });
79
79
  });
@@ -29,11 +29,11 @@
29
29
  }
30
30
 
31
31
  .hk-progress-ring-success .hk-progress-ring-fill {
32
- stroke: var(--hi-color-success, #0eb840);
32
+ stroke: var(--hi-color-success, #1f6530);
33
33
  }
34
34
 
35
35
  .hk-progress-ring-exception .hk-progress-ring-fill {
36
- stroke: var(--hi-color-danger, #f85149);
36
+ stroke: var(--hi-color-danger, #a62937);
37
37
  }
38
38
 
39
39
  .hk-progress-ring-label {
@@ -21,15 +21,15 @@
21
21
  }
22
22
 
23
23
  .hk-quote--danger {
24
- --hk-quote-bar: var(--hi-color-danger, #f7768e);
24
+ --hk-quote-bar: var(--hi-color-danger, #a62937);
25
25
  }
26
26
 
27
27
  .hk-quote--warning {
28
- --hk-quote-bar: var(--hi-color-warning, #eed677);
28
+ --hk-quote-bar: var(--hi-color-warning, #894800);
29
29
  }
30
30
 
31
31
  .hk-quote--success {
32
- --hk-quote-bar: var(--hi-color-success, #0eb840);
32
+ --hk-quote-bar: var(--hi-color-success, #1f6530);
33
33
  }
34
34
 
35
35
  /* fit="fill": the quote block centers itself inside its host (an empty
@@ -362,7 +362,7 @@
362
362
  // Status channels win over the tone channel: an errored row is an error
363
363
  // regardless of what tone it also carries.
364
364
  .hk-range-ribbon-segment[data-status="error"] {
365
- border-color: rgb(var(--color-error));
365
+ border-color: var(--hi-color-danger-fg, rgb(var(--color-error)));
366
366
  background: rgb(var(--color-error) / 32%);
367
367
  }
368
368
 
@@ -11,7 +11,7 @@
11
11
  padding: var(--space-8, 0.5rem) var(--space-12, 0.75rem);
12
12
  border-radius: var(--radius-md, 8px);
13
13
  background: rgb(var(--color-warning) / 12%);
14
- color: rgb(var(--color-warning));
14
+ color: var(--hi-color-warning-fg, rgb(var(--color-warning)));
15
15
  font-size: var(--text-xs, 0.75rem);
16
16
  }
17
17
 
@@ -23,7 +23,7 @@
23
23
 
24
24
  .hk-select-required {
25
25
  margin-inline-start: var(--space-2);
26
- color: rgb(var(--color-error));
26
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
27
27
  }
28
28
 
29
29
  .hk-select-trigger {
@@ -78,7 +78,7 @@
78
78
 
79
79
  .hk-select-trigger[data-error]:focus-visible,
80
80
  .hk-select-trigger[data-error][data-state="open"] {
81
- border-color: rgb(var(--color-error));
81
+ border-color: var(--hi-color-danger-fg, rgb(var(--color-error)));
82
82
  box-shadow: var(--shadow-focus-error);
83
83
  }
84
84
 
@@ -280,7 +280,7 @@
280
280
  .hk-select-error {
281
281
  margin-top: var(--space-4);
282
282
  font-size: var(--text-xs);
283
- color: rgb(var(--color-error));
283
+ color: var(--hi-color-danger-fg, rgb(var(--color-error)));
284
284
  }
285
285
 
286
286
  // ------
@@ -188,13 +188,13 @@
188
188
  }
189
189
 
190
190
  &[data-variant="success"] {
191
- background: color-mix(in srgb, var(--hi-color-success, #0eb840) 12%, transparent);
192
- color: var(--hi-color-success, #0eb840);
191
+ background: color-mix(in srgb, var(--hi-color-success, #1f6530) 12%, transparent);
192
+ color: var(--hi-color-success-fg, #1f6530);
193
193
  }
194
194
 
195
195
  &[data-variant="info"] {
196
- background: color-mix(in srgb, var(--hi-color-info, #6abed6) 12%, transparent);
197
- color: var(--hi-color-info, #6abed6);
196
+ background: color-mix(in srgb, var(--hi-color-info, #006274) 12%, transparent);
197
+ color: var(--hi-color-info-fg, #006274);
198
198
  }
199
199
  }
200
200