@celestia-island/hikari 0.55.400 → 0.55.402

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 (40) hide show
  1. package/package.json +1 -1
  2. package/src/components/HkDockBar.scss +112 -28
  3. package/src/components/HkDockBar.styles.test.ts +341 -0
  4. package/src/components/HkDockBar.test.tsx +97 -12
  5. package/src/components/HkDockBar.tsx +50 -10
  6. package/src/components/HkRemoteInputDock.barrel.test.ts +29 -0
  7. package/src/components/HkRemoteInputDock.scss +125 -0
  8. package/src/components/HkRemoteInputDock.test.tsx +271 -0
  9. package/src/components/HkRemoteInputDock.tsx +252 -0
  10. package/src/components/HkScrollContainer.tsx +5 -1
  11. package/src/components/HkVirtualCursor.scss +93 -0
  12. package/src/components/HkVirtualCursor.test.tsx +146 -0
  13. package/src/components/HkVirtualCursor.tsx +133 -0
  14. package/src/components/remoteInputTypes.test.ts +47 -0
  15. package/src/components/remoteInputTypes.ts +95 -0
  16. package/src/composables/useOrientationLock.test.ts +39 -0
  17. package/src/composables/useOrientationLock.ts +39 -0
  18. package/src/composables/useRemoteTouchGestures.test.ts +180 -0
  19. package/src/composables/useRemoteTouchGestures.ts +251 -0
  20. package/src/composables/useVirtualPointer.test.ts +128 -0
  21. package/src/composables/useVirtualPointer.ts +151 -0
  22. package/src/i18n/locales/ar/components.json +58 -47
  23. package/src/i18n/locales/de/components.json +58 -47
  24. package/src/i18n/locales/en/components.json +58 -47
  25. package/src/i18n/locales/es/components.json +58 -47
  26. package/src/i18n/locales/fr/components.json +58 -47
  27. package/src/i18n/locales/ja/components.json +58 -47
  28. package/src/i18n/locales/ko/components.json +58 -47
  29. package/src/i18n/locales/pt/components.json +58 -47
  30. package/src/i18n/locales/ru/components.json +58 -47
  31. package/src/i18n/locales/zh-Hans/components.json +62 -51
  32. package/src/i18n/locales/zh-Hant/components.json +62 -51
  33. package/src/i18n/usageSurface.test.ts +4 -0
  34. package/src/index.ts +25 -0
  35. package/src/plugins/boot-recovery.details.test.ts +1 -1
  36. package/src/plugins/boot-recovery.diagnostics.test.ts +1 -1
  37. package/src/plugins/boot-recovery.locales.test.ts +1 -1
  38. package/src/plugins/bootLandingCss.js +1 -1
  39. package/src/scale.scss +11 -0
  40. package/src/styles/theme/scale.scss +11 -0
@@ -83,6 +83,17 @@ describe("HkDockBar", () => {
83
83
  expect(style.getPropertyValue("--dock-padding")).toBe("4px 6px");
84
84
  });
85
85
 
86
+ it("writes the gap prop to the shared --hk-dock-gap token", async () => {
87
+ // One CSS length in, the foundation token out: every edge of this dock
88
+ // (resting inset, content band, surface cap) then resolves the override
89
+ // through the sheet's own chain, so a host never re-declares per-edge.
90
+ const root = await mountDock({ gap: "1.5rem" });
91
+ expect(root.style.getPropertyValue("--hk-dock-gap")).toBe("1.5rem");
92
+ // An unset prop must not emit an empty declaration.
93
+ const bare = await mountDock();
94
+ expect(bare.getAttribute("style") ?? "").not.toContain("--hk-dock-gap");
95
+ });
96
+
86
97
  it("drops the blur on the solid surface", async () => {
87
98
  const root = await mountDock({ surface: "solid" });
88
99
  expect(root.dataset.surface).toBe("solid");
@@ -93,8 +104,9 @@ describe("HkDockBar", () => {
93
104
  // SCSS source contract (house pattern, cf. HkButton icon-only contract):
94
105
  // happy-dom does not lay out, so each compass direction's geometry is
95
106
  // pinned textually against HkDockBar.scss. Dropping any one direction's
96
- // rule — or regressing its mapping (inset side / centering transform) —
97
- // turns the matching assertion red.
107
+ // rule — or regressing its mapping (inset side / centering transform /
108
+ // content band) — turns the matching assertion red. The COMPILED
109
+ // declarations are pinned separately in HkDockBar.styles.test.ts.
98
110
 
99
111
  const here = dirname(fileURLToPath(import.meta.url));
100
112
  const scss = readFileSync(join(here, "HkDockBar.scss"), "utf8");
@@ -105,8 +117,29 @@ function rulesFor(anchor: string): string {
105
117
  return scss.match(re)?.join("\n") ?? "";
106
118
  }
107
119
 
120
+ /** The private resolved gap one edge reads (declared once on the base). */
121
+ function gap(edge: string): string {
122
+ return `var(--_hk-dock-gap-${edge})`;
123
+ }
124
+
125
+ /** The resting inset of an anchored edge: the gap plus its safe-area. */
126
+ function inset(edge: string): string {
127
+ return `calc(${gap(edge)} + env(safe-area-inset-${edge}, 0px))`;
128
+ }
129
+
108
130
  describe("HkDockBar anchor geometry contract", () => {
109
- const INSET = "var(--hk-dock-inset, 12px)";
131
+ it("declares the four resolved edge gaps on the base class", () => {
132
+ const base = scss.match(/\.hk-dock-bar\s*\{[^}]*\}/)?.[0];
133
+ expect(base, "base dock rule must exist").toBeTruthy();
134
+ for (const edge of ["top", "right", "bottom", "left"]) {
135
+ // One chain per edge, written ONCE: per-edge public names are read-time
136
+ // fallbacks (a `:root` pre-declaration would freeze them against any
137
+ // descendant override).
138
+ expect(base).toContain(
139
+ `--_hk-dock-gap-${edge}: var(--hk-dock-gap-${edge}, var(--hk-dock-inset, var(--hk-dock-gap, var(--space-16, 1rem))))`,
140
+ );
141
+ }
142
+ });
110
143
 
111
144
  it.each(["page", "bottom"] as const)(
112
145
  "%s docks to the south edge, centered (the two spellings share geometry)",
@@ -115,8 +148,9 @@ describe("HkDockBar anchor geometry contract", () => {
115
148
  expect(rules, `${anchor} rules must exist`).toBeTruthy();
116
149
  expect(rules).toContain("position: absolute");
117
150
  expect(rules).toContain("left: 50%");
118
- expect(rules).toContain(`bottom: ${INSET}`);
151
+ expect(rules).toContain(`bottom: ${inset("bottom")}`);
119
152
  expect(rules).toContain("transform: translateX(-50%)");
153
+ expect(rules).toContain(`padding-block-start: ${gap("bottom")}`);
120
154
  },
121
155
  );
122
156
 
@@ -124,10 +158,11 @@ describe("HkDockBar anchor geometry contract", () => {
124
158
  const rules = rulesFor("top");
125
159
  expect(rules, "top rules must exist").toBeTruthy();
126
160
  expect(rules).toContain("position: absolute");
127
- expect(rules).toContain("top: " + INSET);
161
+ expect(rules).toContain("top: " + inset("top"));
128
162
  expect(rules).toContain("left: 50%");
129
163
  expect(rules).toContain("transform: translateX(-50%)");
130
- expect(rules).not.toContain(`bottom: ${INSET}`);
164
+ expect(rules).toContain(`padding-block-end: ${gap("top")}`);
165
+ expect(rules).not.toContain(`bottom: ${inset("bottom")}`);
131
166
  });
132
167
 
133
168
  it.each(["left", "right"] as const)(
@@ -137,7 +172,12 @@ describe("HkDockBar anchor geometry contract", () => {
137
172
  expect(rules, `${anchor} rules must exist`).toBeTruthy();
138
173
  expect(rules).toContain("position: absolute");
139
174
  expect(rules).toContain("top: 50%");
140
- expect(rules).toContain(`${anchor}: ${INSET}`);
175
+ expect(rules).toContain(`${anchor}: ${inset(anchor)}`);
176
+ // The anchor is a PHYSICAL edge, so the band is physical too: a logical
177
+ // longhand would flip under dir="rtl" onto the pinned side.
178
+ expect(rules).toContain(
179
+ `padding-${anchor === "left" ? "right" : "left"}: ${gap(anchor)}`,
180
+ );
141
181
  expect(rules).toContain("transform: translateY(-50%)");
142
182
  // A side dock must not pick up the horizontal-edge centering.
143
183
  expect(rules).not.toContain("transform: translateX(-50%)");
@@ -151,12 +191,18 @@ describe("HkDockBar anchor geometry contract", () => {
151
191
  ["bottom-left", "bottom", "left", "flex-start"],
152
192
  ["bottom-right", "bottom", "right", "flex-end"],
153
193
  ] as const,
154
- )("%s docks into its corner with both insets", (anchor, side1, side2, align) => {
194
+ )("%s docks into its corner with both insets and both bands", (anchor, side1, side2, align) => {
155
195
  const rules = rulesFor(anchor);
156
196
  expect(rules, `${anchor} rules must exist`).toBeTruthy();
157
197
  expect(rules).toContain("position: absolute");
158
- expect(rules).toContain(`${side1}: ${INSET}`);
159
- expect(rules).toContain(`${side2}: ${INSET}`);
198
+ expect(rules).toContain(`${side1}: ${inset(side1)}`);
199
+ expect(rules).toContain(`${side2}: ${inset(side2)}`);
200
+ expect(rules).toContain(
201
+ `padding-block-${side1 === "top" ? "end" : "start"}: ${gap(side1)}`,
202
+ );
203
+ expect(rules).toContain(
204
+ `padding-${side2 === "left" ? "right" : "left"}: ${gap(side2)}`,
205
+ );
160
206
  expect(rules).toContain(`align-items: ${align}`);
161
207
  });
162
208
 
@@ -166,6 +212,8 @@ describe("HkDockBar anchor geometry contract", () => {
166
212
  expect(page).toContain("position: absolute");
167
213
  expect(plane, "plane rule must exist").toBeTruthy();
168
214
  expect(plane).toContain("margin: 0 auto");
215
+ expect(plane).toContain(`margin: 0 auto ${inset("bottom")}`);
216
+ expect(plane).toContain(`padding-block-start: ${gap("bottom")}`);
169
217
  expect(plane).not.toContain("position: absolute");
170
218
  });
171
219
 
@@ -179,7 +227,10 @@ describe("HkDockBar anchor geometry contract", () => {
179
227
  const base = scss.match(/\.hk-dock-bar-surface\s*\{[^}]*\}/)?.[0];
180
228
  expect(base, "base surface rule must exist").toBeTruthy();
181
229
  expect(base).toContain("width: var(--dock-width, auto)");
182
- expect(base).toContain("max-width: var(--dock-max-width");
230
+ // The viewport cap reads the SAME edge gaps the anchoring rules read.
231
+ expect(base).toContain(
232
+ `max-width: var(--dock-max-width, calc(100vw - ${gap("left")} - ${gap("right")}))`,
233
+ );
183
234
  expect(base).toContain("max-height: var(--dock-max-height, none)");
184
235
  expect(base).toContain("padding: var(--dock-padding");
185
236
  });
@@ -189,7 +240,9 @@ describe("HkDockBar anchor geometry contract", () => {
189
240
  /\.hk-dock-bar\[data-anchor="left"\] \.hk-dock-bar-surface[^{]*\{[^}]*\}/,
190
241
  )?.[0];
191
242
  expect(sideCap, "side-anchor surface cap rule must exist").toBeTruthy();
192
- expect(sideCap).toContain("max-height: var(--dock-max-height");
243
+ expect(sideCap).toContain(
244
+ `max-height: var(--dock-max-height, calc(100dvh - ${gap("top")} - ${gap("bottom")}))`,
245
+ );
193
246
  expect(sideCap).toContain("100dvh");
194
247
  });
195
248
 
@@ -200,4 +253,36 @@ describe("HkDockBar anchor geometry contract", () => {
200
253
  expect(solid, "solid surface rule must exist").toBeTruthy();
201
254
  expect(solid).toContain("@include backdrop-filter(none)");
202
255
  });
256
+
257
+ it("keeps inline bands PHYSICAL so dir=rtl cannot flip them onto the pinned side", () => {
258
+ // The anchors are physical (`left:` / `right:` + `env(safe-area-inset-left/
259
+ // right)`), so an inline band must be physical too: `padding-inline-end` on
260
+ // a left-anchored dock resolves to the physical LEFT under `dir="rtl"` —
261
+ // the same side as the pinned edge (the surface pushed one extra gap in,
262
+ // reading `gap + gap` from the edge) while the content face stays bare, so
263
+ // content touches the surface again. Physical longhands are
264
+ // direction-independent, which is exactly what keeps the band on the
265
+ // content-facing face in both directions.
266
+ // Only declarations: the header prose explains the trap and names both
267
+ // logical longhands.
268
+ expect(scss.replace(/\/\*[\s\S]*?\*\//g, "")).not.toMatch(/padding-inline-(start|end)/);
269
+ for (const [anchor, band] of [
270
+ ["left", "padding-right"],
271
+ ["right", "padding-left"],
272
+ ] as const) {
273
+ expect(rulesFor(anchor)).toContain(`${band}: ${gap(anchor)}`);
274
+ }
275
+ });
276
+
277
+ it("reads the legacy single inset only inside the edge chain", () => {
278
+ // Wrapping-count guard: `--hk-dock-inset` may appear only as the second
279
+ // link of the four edge chains. A rule reading it directly would bypass
280
+ // the per-edge override and re-split the family into two mechanisms. The
281
+ // header comment quotes the chain, so only declarations are counted.
282
+ const code = scss.replace(/\/\*[\s\S]*?\*\//g, "");
283
+ const direct = code.match(/var\(--hk-dock-inset(?!, var\(--hk-dock-gap)/g) ?? [];
284
+ expect(direct).toHaveLength(0);
285
+ const chains = code.match(/var\(--hk-dock-inset, var\(--hk-dock-gap, /g) ?? [];
286
+ expect(chains).toHaveLength(4);
287
+ });
203
288
  });
@@ -23,22 +23,55 @@ export type HkDockBarSurface = "glass" | "solid";
23
23
  * (surface, blur, border, radius, reverse glow) means no dock surface
24
24
  * ever re-declares its own background or shadow again.
25
25
  *
26
+ * Edge gap contract (2026-11-15): a dock owns BOTH of its content-side
27
+ * distances, and reads both from one CSS token family — the resting
28
+ * inset from the viewport edge it hugs, and a transparent CONTENT BAND on
29
+ * the face that points at the content:
30
+ *
31
+ * G(edge) = var(--hk-dock-gap-<edge>,
32
+ * var(--hk-dock-inset, var(--hk-dock-gap, var(--space-16, 1rem))))
33
+ *
34
+ * `--hk-dock-gap` is declared once by the foundation layer (16px); a host
35
+ * overrides it through the `gap` prop (one CSS length, written inline as
36
+ * `--hk-dock-gap`), or per edge through `--hk-dock-gap-<edge>` /
37
+ * `--hk-dock-inset` on any ancestor. Every edge also adds its safe-area
38
+ * inset to the resting distance, so a notched device keeps the gap on top
39
+ * of the system inset while a desktop resolves it to 0.
40
+ *
41
+ * The band belongs to the DOCK, not to the view that hosts it, and that
42
+ * is what makes both placements self-consistent with no host recipe:
43
+ * - in a `HkScrollContainer` PIN slot the dock is a flex SIBLING of the
44
+ * scroll viewport, so the wrapper box (band + surface + inset) makes
45
+ * the viewport yield the band by layout: content ends `gap` above the
46
+ * surface with no view padding, so `min-height: 100%` content cannot
47
+ * resurrect the phantom-scroll trap;
48
+ * - a FLOATING dock (page / plane) is measured by its own
49
+ * getBoundingClientRect, which already includes padding — so the
50
+ * occupancy a host publishes to its content (the tail padding a
51
+ * consumer reads) automatically contains "surface + inset + band", and
52
+ * scrolling content stops `gap` short of the surface. Nothing in JS
53
+ * reads a CSS length.
54
+ *
26
55
  * Anchors — the full eight-way compass (4 edges + 4 corners):
27
56
  * - `page` (default) and `bottom`: absolute bottom-center of the
28
- * nearest positioned ancestor (the SOUTH edge), `--hk-dock-inset`
29
- * above its content floor. `page` is the 2026-09-02 spelling kept
30
- * for existing callers; `bottom` is its compass alias — identical
31
- * geometry, pick either.
32
- * - `top`: absolute top-center (north edge) with the same inset.
57
+ * nearest positioned ancestor (the SOUTH edge), one bottom gap above
58
+ * its content floor, with the band on the block-start side. `page` is
59
+ * the 2026-09-02 spelling kept for existing callers; `bottom` is its
60
+ * compass alias — identical geometry, pick either.
61
+ * - `top`: absolute top-center (north edge) with the top gap, band on
62
+ * the block-end side.
33
63
  * - `left` / `right`: absolute middle of the west / east edge — the
34
- * dock runs vertically and is centered with translateY; its surface
35
- * gets a viewport-aware default max-height.
64
+ * dock runs vertically and is centered with translateY; the band is
65
+ * on the inline content side and its surface gets a viewport-aware
66
+ * default max-height (both horizontal gaps subtracted).
36
67
  * - `top-left` / `top-right` / `bottom-left` / `bottom-right`:
37
- * absolute corner attachment with the same inset, for pagers,
38
- * toolbars and HUD panels that live off-center.
68
+ * absolute corner attachment with both edge gaps, for pagers,
69
+ * toolbars and HUD panels that live off-center; the band opens on
70
+ * both content-facing sides.
39
71
  * - `plane`: NOT a compass direction — in-flow; the host provides
40
72
  * the plane (e.g. a fixed footer band) and this container centers
41
- * the surface horizontally. Use it when the host owns positioning.
73
+ * the surface horizontally, lifts it by the bottom gap and opens the
74
+ * same gap above it. Use it when the host owns positioning.
42
75
  *
43
76
  * Relationship to HkScrollContainer: that component's dockTop /
44
77
  * dockBottom named slots are the contract for docks that live INSIDE a
@@ -95,6 +128,12 @@ const HkDockBar = defineComponent({
95
128
  maxHeight: { type: String, default: undefined },
96
129
  /** CSS padding override; defaults to the shared chrome rhythm. */
97
130
  padding: { type: String, default: undefined },
131
+ /** CSS length of this dock's edge gap (a larger-than-default dock
132
+ * passes e.g. `1.5rem`); inline `--hk-dock-gap`, which the sheet
133
+ * resolves per edge through `--hk-dock-gap-<edge>` →
134
+ * `--hk-dock-inset` → default. Leave unset to inherit the host's
135
+ * value (the foundation 16px when nothing overrides it). */
136
+ gap: { type: String, default: undefined },
98
137
  },
99
138
  setup(props, { slots }) {
100
139
  const style = computed(() => {
@@ -103,6 +142,7 @@ const HkDockBar = defineComponent({
103
142
  if (props.maxWidth) s["--dock-max-width"] = props.maxWidth;
104
143
  if (props.maxHeight) s["--dock-max-height"] = props.maxHeight;
105
144
  if (props.padding) s["--dock-padding"] = props.padding;
145
+ if (props.gap) s["--hk-dock-gap"] = props.gap;
106
146
  return s;
107
147
  });
108
148
 
@@ -0,0 +1,29 @@
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 (HkAdaptiveTabs.barrel.test.ts shape): the
7
+ * component's own tests reach it through "./HkRemoteInputDock" — only
8
+ * an external consumer would notice a dropped export line.
9
+ */
10
+ describe("the public barrel", () => {
11
+ it("exports the remote-input components under both family names", () => {
12
+ const dock = asIndexable(barrel.HkRemoteInputDock);
13
+ expect(dock, "HkRemoteInputDock must be re-exported").toBeTruthy();
14
+ expect(dock.name).toBe("HkRemoteInputDock");
15
+ expect(barrel.HRemoteInputDock).toBe(barrel.HkRemoteInputDock);
16
+
17
+ const cursor = asIndexable(barrel.HkVirtualCursor);
18
+ expect(cursor, "HkVirtualCursor must be re-exported").toBeTruthy();
19
+ expect(cursor.name).toBe("HkVirtualCursor");
20
+ expect(barrel.HVirtualCursor).toBe(barrel.HkVirtualCursor);
21
+ });
22
+
23
+ it("exports the composables and the mask vocabulary", () => {
24
+ expect(typeof barrel.useVirtualPointer).toBe("function");
25
+ expect(typeof barrel.useRemoteTouchGestures).toBe("function");
26
+ expect(typeof barrel.useOrientationLock).toBe("function");
27
+ expect([barrel.MASK_LEFT, barrel.MASK_MIDDLE, barrel.MASK_RIGHT]).toEqual([1, 2, 4]);
28
+ });
29
+ });
@@ -0,0 +1,125 @@
1
+ /* HkRemoteInputDock — the remote-control dial.
2
+ *
3
+ * A fixed-corner dial button that expands into the control card. The
4
+ * card speaks the panel grammar (sheet surface, fine radius) so it
5
+ * reads as a floating panel, not a popup menu. */
6
+
7
+ @use "../styles/polyfill" as *;
8
+
9
+ .hk-remote-input-dock {
10
+ position: absolute;
11
+ /* The dock-gap law (#1340): every dock's edge gap reads the shared
12
+ * override chain, never a private constant. */
13
+ right: var(--hk-dock-gap-right, var(--hk-dock-inset, var(--hk-dock-gap, var(--space-16, 1rem))));
14
+ bottom: var(--hk-dock-gap-bottom, var(--hk-dock-inset, var(--hk-dock-gap, var(--space-16, 1rem))));
15
+ z-index: 3; /* above the session surface + virtual cursor */
16
+ display: flex;
17
+ flex-direction: column;
18
+ align-items: flex-end;
19
+ gap: 0.5rem;
20
+ }
21
+
22
+ .hk-remote-input-dock__dial {
23
+ width: 44px;
24
+ height: 44px;
25
+ border-radius: 999px;
26
+ border: 1px solid rgb(var(--color-border));
27
+ background: rgb(var(--color-background) / 92%);
28
+ color: rgb(var(--color-text));
29
+ display: grid;
30
+ place-items: center;
31
+ cursor: pointer;
32
+ box-shadow: 0 4px 14px rgb(0 0 0 / 30%);
33
+ @include backdrop-filter(blur(6px));
34
+
35
+ &[data-open] {
36
+ background: rgb(var(--color-primary) / 90%);
37
+ color: rgb(var(--color-on-primary, 255 255 255));
38
+ border-color: rgb(var(--color-primary));
39
+ }
40
+
41
+ &:focus-visible {
42
+ outline: 2px solid rgb(var(--color-primary) / 70%);
43
+ outline-offset: 2px;
44
+ }
45
+ }
46
+
47
+ .hk-remote-input-dock__card {
48
+ width: 13rem;
49
+ padding: 0.6rem;
50
+ border-radius: var(--radius-md, 10px);
51
+ border: 1px solid rgb(var(--color-border));
52
+ background: rgb(var(--color-background) / 96%);
53
+ box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
54
+ @include backdrop-filter(blur(8px));
55
+ display: flex;
56
+ flex-direction: column;
57
+ gap: 0.5rem;
58
+ }
59
+
60
+ .hk-remote-input-dock__modes {
61
+ display: grid;
62
+ grid-template-columns: 1fr 1fr;
63
+ gap: 0.35rem;
64
+ }
65
+
66
+ .hk-remote-input-dock__mode {
67
+ padding: 0.35rem 0.4rem;
68
+ border-radius: var(--radius-sm, 6px);
69
+ border: 1px solid rgb(var(--color-border));
70
+ background: transparent;
71
+ color: rgb(var(--color-text));
72
+ font-size: 0.78rem;
73
+ cursor: pointer;
74
+
75
+ &[data-active] {
76
+ background: rgb(var(--color-primary) / 14%);
77
+ border-color: rgb(var(--color-primary) / 60%);
78
+ color: rgb(var(--color-primary));
79
+ }
80
+
81
+ &:focus-visible {
82
+ outline: 2px solid rgb(var(--color-primary) / 70%);
83
+ outline-offset: 1px;
84
+ }
85
+ }
86
+
87
+ .hk-remote-input-dock__pad {
88
+ display: grid;
89
+ grid-template-columns: repeat(5, 1fr);
90
+ gap: 0.3rem;
91
+ }
92
+
93
+ .hk-remote-input-dock__btn {
94
+ height: 2rem;
95
+ border-radius: var(--radius-sm, 6px);
96
+ border: 1px solid rgb(var(--color-border));
97
+ background: rgb(var(--color-surface, var(--color-background)));
98
+ color: rgb(var(--color-text));
99
+ font-size: 0.8rem;
100
+ cursor: pointer;
101
+ touch-action: none;
102
+ @include user-select(none);
103
+
104
+ &:active:not(:disabled) {
105
+ background: rgb(var(--color-primary) / 22%);
106
+ }
107
+
108
+ &:disabled {
109
+ opacity: 0.45;
110
+ cursor: default;
111
+ }
112
+
113
+ &:focus-visible {
114
+ outline: 2px solid rgb(var(--color-primary) / 70%);
115
+ outline-offset: 1px;
116
+ }
117
+ }
118
+
119
+ .hk-remote-input-dock__host {
120
+ display: flex;
121
+ flex-wrap: wrap;
122
+ gap: 0.35rem;
123
+ padding-top: 0.35rem;
124
+ border-top: 1px solid rgb(var(--color-border) / 60%);
125
+ }