@celestia-island/hikari 0.55.391 → 0.55.393

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 (29) hide show
  1. package/package.json +1 -1
  2. package/src/components/HkModalBreadcrumb.motion.contract.test.ts +85 -15
  3. package/src/components/HkModalBreadcrumb.overflow.contract.test.ts +3 -2
  4. package/src/components/HkModalBreadcrumb.scss +18 -6
  5. package/src/components/HkNotificationBell.barrel.test.ts +27 -0
  6. package/src/components/HkNotificationBell.contract.test.ts +66 -0
  7. package/src/components/HkNotificationBell.scss +199 -0
  8. package/src/components/HkNotificationBell.test.tsx +240 -0
  9. package/src/components/HkNotificationBell.tsx +212 -0
  10. package/src/i18n/locales/ar/components.json +7 -1
  11. package/src/i18n/locales/de/components.json +7 -1
  12. package/src/i18n/locales/en/components.json +7 -1
  13. package/src/i18n/locales/es/components.json +7 -1
  14. package/src/i18n/locales/fr/components.json +7 -1
  15. package/src/i18n/locales/ja/components.json +7 -1
  16. package/src/i18n/locales/ko/components.json +7 -1
  17. package/src/i18n/locales/pt/components.json +7 -1
  18. package/src/i18n/locales/ru/components.json +7 -1
  19. package/src/i18n/locales/zh-Hans/components.json +7 -1
  20. package/src/i18n/locales/zh-Hant/components.json +7 -1
  21. package/src/index.ts +14 -0
  22. package/src/runtime/emergencyJournal.test.ts +144 -0
  23. package/src/runtime/index.ts +14 -0
  24. package/src/runtime/notificationCenter.test.ts +229 -0
  25. package/src/runtime/notificationCenter.ts +367 -0
  26. package/src/runtime/toastJournal.test.ts +145 -0
  27. package/src/runtime/useBlockingToast.ts +32 -1
  28. package/src/runtime/useEmergencyAlert.ts +47 -3
  29. package/src/runtime/useToast.ts +74 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celestia-island/hikari",
3
- "version": "0.55.391",
3
+ "version": "0.55.393",
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",
@@ -99,6 +99,11 @@ const reducedBreadcrumb = topBlock(breadcrumb, "@media (prefers-reduced-motion:
99
99
  const reducedList = topBlock(list, "@media (prefers-reduced-motion: reduce)");
100
100
 
101
101
  const MODAL_POSE = "translateY(10px) scale(0.97)";
102
+ /** The strip's own ride legs — px only; the centering sits on the
103
+ * `translate` longhand (see the carrier test below). */
104
+ const POSE_FROM = "translateY(-10px) scale(0.97)";
105
+ const POSE_TO = "translateY(0) scale(1)";
106
+ const CENTERING = "-50% -50%";
102
107
  const EASE_OUT = "cubic-bezier(0.33, 1, 0.68, 1)";
103
108
  const EASE_IN = "cubic-bezier(0.45, 0, 0.55, 1)";
104
109
 
@@ -121,10 +126,10 @@ describe("strip surface enter/leave (window choreography)", () => {
121
126
  expect(enter).toContain(`transform var(--duration-normal, 0.3s) ${EASE_OUT}`);
122
127
  const from = rule(breadcrumb, ".hk-modal-breadcrumb-enter-from");
123
128
  expect(from).toContain("opacity: 0");
124
- expect(from).toContain("translate(-50%, calc(-50% - 10px)) scale(0.97)");
129
+ expect(from).toContain(`transform: ${POSE_FROM}`);
125
130
  const to = rule(breadcrumb, ".hk-modal-breadcrumb-enter-to");
126
131
  expect(to).toContain("opacity: 1");
127
- expect(to).toContain("translate(-50%, -50%) scale(1)");
132
+ expect(to).toContain(`transform: ${POSE_TO}`);
128
133
  });
129
134
 
130
135
  it("leaves as the true reverse, quicker than the windows it names", () => {
@@ -133,21 +138,86 @@ describe("strip surface enter/leave (window choreography)", () => {
133
138
  expect(leave).toContain(`transform var(--duration-short, 0.15s) ${EASE_IN}`);
134
139
  const to = rule(breadcrumb, ".hk-modal-breadcrumb-leave-to");
135
140
  expect(to).toContain("opacity: 0");
136
- expect(to).toContain("translate(-50%, calc(-50% - 10px)) scale(0.97)");
141
+ expect(to).toContain(`transform: ${POSE_FROM}`);
137
142
  });
138
143
 
139
- it("keeps the centering prefix in every animated state", () => {
140
- // The resting rule's transform is byte-identical to the enter-to /
141
- // leave-from state — a re-seated mid-flight frame would drift the
142
- // strip off its measured `top` line (the modal frame keeps the same
143
- // contract for its dragged-shift vars).
144
- const resting = rule(breadcrumb, ".hk-modal-breadcrumb")
145
- .match(/transform:\s*([^;]+);/)?.[1]
146
- ?.trim();
147
- expect(resting).toBe("translate(-50%, -50%)");
148
- expect(rule(breadcrumb, ".hk-modal-breadcrumb-enter-to")).toContain(
149
- `transform: ${resting} scale(1)`,
150
- );
144
+ it("carries the centring on the translate longhand, never in an animated transform", () => {
145
+ // The strip's box changes WHILE it is up (the keyed crumb list folds its
146
+ // tail, a late webfont reflows the labels, a crumb is re-inserted), and
147
+ // those changes land mid-entrance. A -50% inside the transitioned
148
+ // `transform` freezes its composited matrix against the mount-time box,
149
+ // re-seating the strip against a stale height — the modal-frame defect
150
+ // family hikari #1325 removed. The centring therefore rides the
151
+ // individual `translate` longhand, which re-resolves every frame.
152
+ //
153
+ // BOTH carriers are guarded, because the defect can return through
154
+ // either one: a `translate: none` (or a re-created `translate`) on a ride
155
+ // rule un-centres / double-centres the strip for the whole ride, and a
156
+ // `-50%` re-appended to a ride transform restores the frozen matrix. The
157
+ // first revision of this test swept only `transform:` and let both
158
+ // `translate:` variants pass green (R2 mutation, 2026-11-15). Comments are
159
+ // stripped before matching: sass keeps loud `/* */` comments in expanded
160
+ // output, and a regex would otherwise read a comment's prose as a
161
+ // declaration.
162
+ const stripComments = (text: string): string => text.replace(/\/\*[\s\S]*?\*\//g, " ");
163
+ // EVERY declaration of a property, case-insensitively. Both halves are
164
+ // load-bearing: CSS property names are case-insensitive (`Translate:` is
165
+ // the same property), and a duplicate declaration is last-wins — a second
166
+ // `translate: none` appended to the base rule paints un-centred while a
167
+ // first-match-only reader still sees the good pair (independent delta
168
+ // round, 2026-11-15: both bypasses survived the first-match sweep).
169
+ // Split on `;` and test each segment: a boundary-consuming regex cannot
170
+ // see two consecutive declarations of the same property (the match eats
171
+ // the preceding `;`, so the second segment starts without a boundary and
172
+ // only the LAST one is found — measured, 2026-11-15).
173
+ const decls = (body: string, prop: string): string[] => {
174
+ // Vendor prefixes are the same painting: `-webkit-transform` would
175
+ // otherwise slip past an exact-name anchor (closure round, 2026-11-15).
176
+ const re = new RegExp(`^\\s*(?:-webkit-|-moz-|-ms-)?${prop}\\s*:\\s*([\\s\\S]*)$`, "i");
177
+ return body
178
+ .split(";")
179
+ .map((segment) => segment.match(re))
180
+ .filter((m): m is RegExpMatchArray => m !== null)
181
+ .map((m) => m[1].trim().replace(/\s+/g, " "));
182
+ };
183
+
184
+ const offenders: string[] = [];
185
+ /** The FIRST base-matching frame in source order — the top-level rule
186
+ * (sass emits media blocks after it). Only its declarations decide
187
+ * whether the strip is centred everywhere: parking the pair solely in
188
+ * an @media override would leave every wider viewport un-centred. */
189
+ let topLevelBaseTranslate: string[] | null = null;
190
+ for (const frame of frames(breadcrumb)) {
191
+ const body = stripComments(frame.body);
192
+ const label = frame.selectors.join(", ");
193
+ const isBase = frame.selectors.includes(".hk-modal-breadcrumb");
194
+ const translates = decls(body, "translate");
195
+ if (isBase && topLevelBaseTranslate === null) topLevelBaseTranslate = translates;
196
+ for (const transform of decls(body, "transform")) {
197
+ if (transform !== "none" && transform.includes("%")) {
198
+ offenders.push(`${label} { transform: ${transform} }`);
199
+ }
200
+ }
201
+ for (const translate of translates) {
202
+ if (!isBase) {
203
+ offenders.push(`${label} { translate: ${translate} } (only the base rule may set the centring longhand)`);
204
+ } else if (translate !== CENTERING) {
205
+ offenders.push(`${label} { translate: ${translate} }`);
206
+ }
207
+ }
208
+ }
209
+ expect(offenders, "the centring carrier must stay the base rule's translate longhand").toEqual([]);
210
+ expect(topLevelBaseTranslate, "the top-level base rule must exist").not.toBeNull();
211
+ expect(topLevelBaseTranslate, "the top-level base rule must declare exactly the centring pair").toEqual([
212
+ CENTERING,
213
+ ]);
214
+
215
+ // Known-positive probe: the sweep is worthless if it matches no rule at
216
+ // all (hikari #1325's first sweep shipped vacuous exactly that way), so
217
+ // assert the ride rules really are in the compiled sheet.
218
+ for (const sel of [".hk-modal-breadcrumb-enter-from", ".hk-modal-breadcrumb-leave-to"]) {
219
+ expect(rule(breadcrumb, sel)).toContain("transform:");
220
+ }
151
221
  });
152
222
 
153
223
  it("has no keyframe animation on the base class (no double entrance)", () => {
@@ -27,8 +27,9 @@ function rule(selector: string): string {
27
27
  describe("HkModalBreadcrumb overflow fence", () => {
28
28
  it("fences the strip against the viewport, not against its content", () => {
29
29
  const block = rule(".hk-modal-breadcrumb");
30
- // The strip is centred with translate(-50%) and lives outside the page
31
- // flow: without a viewport-derived cap its width IS its content width.
30
+ // The strip is centred on the individual `translate` longhand (see the
31
+ // motion contract) and lives outside the page flow: without a
32
+ // viewport-derived cap its width IS its content width.
32
33
  expect(block).toContain("max-width: calc(100vw - 2 * var(--viewport-gutter");
33
34
  expect(block).toContain("box-sizing: border-box");
34
35
  // Last-resort clip: the script folds the leading layers, this keeps a
@@ -3,7 +3,17 @@
3
3
  .hk-modal-breadcrumb {
4
4
  position: fixed;
5
5
  left: 50%;
6
- transform: translate(-50%, -50%);
6
+ /* The centering pair lives on the individual `translate` property —
7
+ NEVER inside the animated `transform` (see the choreography block
8
+ below). The strip's box changes while it is up: the keyed crumb list
9
+ folds its tail, labels wrap when a late webfont lands, and the script
10
+ side re-inserts a crumb — all mid-flight during an entrance. A -50%
11
+ frozen inside a running ride's matrices would then re-seat the strip
12
+ against its mount-time height, the exact defect family hikari #1325
13
+ removed from the modal frame; the longhand re-resolves against the
14
+ live box on every frame. `translate` composes before `transform`, so
15
+ the painted order (centre, then the ride legs) is unchanged. */
16
+ translate: -50% -50%;
7
17
  /* Above every popup band's scrim (modal 1000+, dropdown 2000+; in-band
8
18
  steps of 2 keep real stacks far below this) so multi-layer windows
9
19
  never bury the strip; still below tooltip (3000) / toast (4000). */
@@ -48,9 +58,11 @@
48
58
  (opacity + transform only; nothing layout ever animates — the
49
59
  backdrop-filtered layer never re-rasters mid-motion).
50
60
 
51
- The centering translate is the PERMANENT transform prefix in every
52
- state (byte-identical between resting and animated), exactly the
53
- contract the modal frame keeps for its dragged-shift vars.
61
+ The centering pair rides the individual `translate` property only;
62
+ the ride states below animate px legs (translateY + scale) and carry
63
+ no percentage at all, so a mid-flight box change can never freeze a
64
+ stale -50% into the strip's composited matrices (the carrier split
65
+ the modal frame adopted in hikari #1325).
54
66
 
55
67
  Vue drives these classes (<Transition name="hk-modal-breadcrumb"
56
68
  appear> in the tsx); there is no keyframe animation on the base class —
@@ -73,13 +85,13 @@
73
85
  .hk-modal-breadcrumb-enter-from,
74
86
  .hk-modal-breadcrumb-leave-to {
75
87
  opacity: 0;
76
- transform: translate(-50%, calc(-50% - 10px)) scale(0.97);
88
+ transform: translateY(-10px) scale(0.97);
77
89
  }
78
90
 
79
91
  .hk-modal-breadcrumb-enter-to,
80
92
  .hk-modal-breadcrumb-leave-from {
81
93
  opacity: 1;
82
- transform: translate(-50%, -50%) scale(1);
94
+ transform: translateY(0) scale(1);
83
95
  }
84
96
 
85
97
  /* ── The keyed crumb list ────────────────────────────────────────────
@@ -0,0 +1,27 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import * as barrel from "../index";
3
+ import { asIndexable } from "../utils/typing";
4
+
5
+ /**
6
+ * The public barrel guard (HkAddTile.barrel.test.ts shape): deleting
7
+ * the export lines from index.ts kept the ENTIRE suite green while the
8
+ * component's own tests reach the module through "./HkNotificationBell"
9
+ * — only an external consumer would have noticed.
10
+ */
11
+ describe("the public barrel", () => {
12
+ it("exports the bell under both family names", () => {
13
+ const hk = asIndexable(barrel.HkNotificationBell);
14
+ expect(hk, "HkNotificationBell must be re-exported").toBeTruthy();
15
+ expect(hk.name).toBe("HkNotificationBell");
16
+ // The H- alias rides the HCard/HkCard family convention: consumers
17
+ // import either name, one component underneath.
18
+ expect(barrel.HNotificationBell).toBe(barrel.HkNotificationBell);
19
+ });
20
+
21
+ it("exports the journal context surface", () => {
22
+ expect(typeof (barrel as Record<string, unknown>).useNotificationCenter).toBe("function");
23
+ expect(typeof (barrel as Record<string, unknown>).recordNotification).toBe("function");
24
+ expect(typeof (barrel as Record<string, unknown>).markAllNotificationsRead).toBe("function");
25
+ expect((barrel as Record<string, unknown>).MAX_NOTIFICATION_ENTRIES).toBe(100);
26
+ });
27
+ });
@@ -0,0 +1,66 @@
1
+ import { describe, expect, it } from "vitest";
2
+
3
+ import componentSource from "./HkNotificationBell.tsx?raw";
4
+
5
+ /**
6
+ * Composition contract for the notification bell (the
7
+ * HEmergencySnoozeTray.contract.test.ts shape): read the component's
8
+ * own source and pin the structural decisions that make the bell ONE
9
+ * grammar with the rest of the chrome — deviations here are exactly
10
+ * how a second notification UI grows next to the first one.
11
+ */
12
+ function body(): string {
13
+ // Strip comments so prose can never satisfy a contract.
14
+ return componentSource.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/.*$/gm, "");
15
+ }
16
+
17
+ describe("HkNotificationBell composition contract", () => {
18
+ it("the surface IS HkPopover with sheetOnMobile — no bespoke popup markup", () => {
19
+ const src = body();
20
+ expect(src).toContain("HkPopover");
21
+ expect(src).toContain("sheetOnMobile");
22
+ // No hand-rolled overlay/teleport/scrim in this component.
23
+ expect(src).not.toContain("Teleport");
24
+ expect(src).not.toContain("ensureOverlayRoot");
25
+ expect(src).not.toContain("scrim");
26
+ });
27
+
28
+ it("the trigger IS HkIconButton on the chrome ladder", () => {
29
+ const src = body();
30
+ expect(src).toContain("HkIconButton");
31
+ expect(src).toContain("useChromeActionSize");
32
+ // The unread mark is the button's OWN dot (2026-10-28 ruling), not
33
+ // a wrapper badge around the trigger.
34
+ expect(src).toContain("dot=");
35
+ expect(src).toContain("dotLabel");
36
+ expect(src).not.toContain("HkCornerBadge");
37
+ });
38
+
39
+ it("open IS the read receipt — markAllRead rides the open flag", () => {
40
+ const src = body();
41
+ expect(src).toContain("markAllRead");
42
+ expect(src).toContain("watch(open");
43
+ });
44
+
45
+ it("restore is REPLAY-FREE except the entry's own resummon path", () => {
46
+ const src = body();
47
+ // The only action a row may fire is the journal-carried callback,
48
+ // gated on the SNOOZED state (an on-screen band has nothing to
49
+ // restore — R2 finding, PR #1322).
50
+ expect(src).toContain("onResummon?.()");
51
+ expect(src).toContain('entry.state === "snoozed"');
52
+ // No direct emergency/toast import here — resummon must ride the
53
+ // journal entry, or replay semantics would fork.
54
+ expect(src).not.toContain("useEmergencyAlert");
55
+ expect(src).not.toContain("unsnoozeEmergencyAlert");
56
+ expect(src).not.toContain("useToast");
57
+ });
58
+
59
+ it("the journal is the ONLY data source", () => {
60
+ const src = body();
61
+ expect(src).toContain("useNotificationCenter");
62
+ // No private storage reading — persistence belongs to the context.
63
+ expect(src).not.toContain("sessionStorage");
64
+ expect(src).not.toContain("localStorage");
65
+ });
66
+ });
@@ -0,0 +1,199 @@
1
+ /**
2
+ * HkNotificationBell chrome: the bell wrapper and the notification-
3
+ * center panel body. Tone colors reuse the badge/status channels the
4
+ * toast family already speaks (HkToast's --hi-color-* family) so a
5
+ * journal row reads as the same grammar as the surface it records;
6
+ * layout is deliberately plain flex/flow — the popup chrome (glass,
7
+ * scroll, sheet band) is HkPopover's job, not ours.
8
+ */
9
+
10
+ .hk-notification-bell {
11
+ position: relative;
12
+ display: inline-flex;
13
+ align-items: center;
14
+ }
15
+
16
+ /* Panel body: the list is the popup's ONE scroll surface (the
17
+ * single-scroll contract — never a nested pane inside it). */
18
+ .hk-notification-center {
19
+ display: flex;
20
+ flex-direction: column;
21
+ width: min(22rem, 100%);
22
+ }
23
+
24
+ .hk-notification-center__list {
25
+ list-style: none;
26
+ margin: 0;
27
+ padding: 0;
28
+ max-height: min(24rem, 55vh);
29
+ overflow-y: auto;
30
+ overscroll-behavior: contain;
31
+ /* Native-scrollbar invariant (nativeScrollbar.contract.test.ts): the
32
+ list keeps native overflow mechanics, the platform bar never
33
+ paints — overlay scrollbars ride the popup chrome instead. */
34
+ scrollbar-width: none;
35
+
36
+ &::-webkit-scrollbar {
37
+ display: none;
38
+ }
39
+
40
+ /* Mobile sheet branch (R2 finding, PR #1322): HkPopover's own sheet
41
+ panel is the scroller there, so the list must NOT become a second,
42
+ contained scroll surface — a drag inside the list would never hand
43
+ off to the sheet, stranding the Clear-all foot on short viewports.
44
+ The sheet shows the whole list; its panel scrolls. */
45
+ .hk-is-sheet & {
46
+ max-height: none;
47
+ overflow-y: visible;
48
+ }
49
+ }
50
+
51
+ .hk-notification-center__empty {
52
+ margin: 0;
53
+ padding: var(--space-12, 0.75rem) var(--space-8, 0.5rem);
54
+ color: rgb(var(--color-text) / 55%);
55
+ font-size: 0.8125rem;
56
+ text-align: center;
57
+ }
58
+
59
+ .hk-notification-center__foot {
60
+ display: flex;
61
+ justify-content: flex-end;
62
+ padding-top: var(--space-8, 0.5rem);
63
+ border-top: 1px solid rgb(var(--color-border) / 10%);
64
+ margin-top: var(--space-8, 0.5rem);
65
+ }
66
+
67
+ .hk-notification-center__clear {
68
+ appearance: none;
69
+ background: none;
70
+ border: none;
71
+ padding: 0 var(--space-4, 0.25rem);
72
+ color: rgb(var(--color-text) / 55%);
73
+ font-size: 0.75rem;
74
+ cursor: pointer;
75
+
76
+ &:hover {
77
+ color: rgb(var(--color-text) / 85%);
78
+ text-decoration: underline;
79
+ }
80
+ }
81
+
82
+ /* ── rows ─────────────────────────────────────────────────────────── */
83
+
84
+ .hk-notification-row {
85
+ display: flex;
86
+ gap: var(--space-8, 0.5rem);
87
+ padding: var(--space-8, 0.5rem) var(--space-8, 0.5rem);
88
+ border-bottom: 1px solid rgb(var(--color-border) / 6%);
89
+
90
+ &:last-child {
91
+ border-bottom: none;
92
+ }
93
+ }
94
+
95
+ .hk-notification-row__icon {
96
+ flex: none;
97
+ display: inline-flex;
98
+ align-items: center;
99
+ padding-top: 2px;
100
+ /* Tone ink follows the row's tone class (rules below). */
101
+ color: rgb(var(--color-text) / 65%);
102
+ }
103
+
104
+ /* Tone ink on the glyph (the toast family's own --hi-color-<tone>
105
+ channels, theme-following; fallbacks are the tokenInventory-canonical
106
+ literals, NOT the toast family's sheet-local ones). */
107
+ .hk-notification-row.is-error .hk-notification-row__icon {
108
+ color: var(--hi-color-danger, #f7768e);
109
+ }
110
+
111
+ .hk-notification-row.is-warning .hk-notification-row__icon {
112
+ color: var(--hi-color-warning, #eed677);
113
+ }
114
+
115
+ .hk-notification-row.is-success .hk-notification-row__icon {
116
+ color: var(--hi-color-success, #0eb840);
117
+ }
118
+
119
+ .hk-notification-row.is-info .hk-notification-row__icon,
120
+ .hk-notification-row.is-loading .hk-notification-row__icon {
121
+ color: rgb(var(--color-text) / 65%);
122
+ }
123
+
124
+ .hk-notification-row__body {
125
+ flex: 1 1 auto;
126
+ min-width: 0;
127
+ }
128
+
129
+ .hk-notification-row__top {
130
+ display: flex;
131
+ align-items: baseline;
132
+ gap: var(--space-8, 0.5rem);
133
+ }
134
+
135
+ .hk-notification-row__title {
136
+ flex: 1 1 auto;
137
+ min-width: 0;
138
+ overflow: hidden;
139
+ text-overflow: ellipsis;
140
+ white-space: nowrap;
141
+ font-size: 0.8125rem;
142
+ color: rgb(var(--color-text) / 92%);
143
+ }
144
+
145
+ .hk-notification-row__time {
146
+ flex: none;
147
+ font-size: 0.6875rem;
148
+ font-variant-numeric: tabular-nums;
149
+ color: rgb(var(--color-text) / 45%);
150
+ }
151
+
152
+ .hk-notification-row__detail {
153
+ margin: 2px 0 0;
154
+ display: flex;
155
+ align-items: center;
156
+ gap: var(--space-4, 0.25rem);
157
+ overflow: hidden;
158
+ white-space: nowrap;
159
+ font-size: 0.75rem;
160
+ color: rgb(var(--color-text) / 55%);
161
+ }
162
+
163
+ .hk-notification-row__detail-text {
164
+ overflow: hidden;
165
+ text-overflow: ellipsis;
166
+ }
167
+
168
+ .hk-notification-row__code {
169
+ flex: none;
170
+ font-family: var(--font-mono, ui-monospace, monospace);
171
+ font-size: 0.6875rem;
172
+ padding: 0 4px;
173
+ border: 1px solid rgb(var(--color-border) / 25%);
174
+ border-radius: 4px;
175
+ }
176
+
177
+ .hk-notification-row__meta {
178
+ display: flex;
179
+ align-items: center;
180
+ gap: var(--space-8, 0.5rem);
181
+ margin-top: 2px;
182
+ }
183
+
184
+ .hk-notification-row__state {
185
+ font-size: 0.6875rem;
186
+ color: rgb(var(--color-text) / 45%);
187
+ }
188
+
189
+ .hk-notification-row__restore {
190
+ appearance: none;
191
+ background: none;
192
+ border: none;
193
+ padding: 0;
194
+ font-size: 0.75rem;
195
+ color: rgb(var(--color-primary, var(--color-text)) / 90%);
196
+ cursor: pointer;
197
+ text-decoration: underline;
198
+ text-underline-offset: 2px;
199
+ }