@celestia-island/hikari 0.55.462 → 0.55.464

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.
@@ -6,52 +6,61 @@ import "./HkMasterDetail.scss";
6
6
  * whatever row the roster drew), never this component's.
7
7
  */
8
8
  export type HkMasterDetailSlots = SlotsType<{
9
- /** The roster: typically an `HkAdminTablePage` / `HkTable`, a card list
10
- * or any scrolling list. Required in practice — an empty list slot
11
- * leaves the left column blank. */
9
+ /** The roster column's content — typically a flex-none head row (title,
10
+ * count, tools) over a scrolling list (HkScrollContainer / HkTable).
11
+ * Required in practice — an empty list slot leaves the column blank. */
12
12
  list?: () => VNode[];
13
13
  /** The selected item's body. Rendered only while `detailOpen`; closed,
14
- * the pane shows the empty state instead. */
14
+ * the pane shows the empty state instead. A canvas child (a 3D scene)
15
+ * fills the region with `flex: 1; min-height: 0` of its own. */
15
16
  detail?: () => VNode[];
16
17
  /** Trailing header actions inside the detail pane (refresh, copy, a
17
18
  * "open full page" link…) — rendered BEFORE the close affordance. */
18
19
  actions?: () => VNode[];
19
20
  }>;
20
21
  /**
21
- * HkMasterDetail — the family's standard two-pane roster+detail surface
22
- * (mail inbox, ticket queue, audit log: any host list that picks one row
23
- * and shows it beside the list).
24
- *
25
- * Layout: one CSS grid, `[list][detail]` with the family's `--space-12`
26
- * gutter; the detail pane is a CARD (HkCard's chrome: the surface blend,
27
- * `border-subtle`, `--radius-lg`, `--shadow-elevated`) that STICKS while
28
- * the roster scrolls — `sticky: false` for hosts that embed the pane in a
29
- * container that is already shorter than the viewport. The column tracks
30
- * come from `listWidth` / `detailWidth` (host-tunable through
31
- * `--hk-master-detail-list-w` / `-detail-w`, which the props write).
22
+ * The roster track takes a plain CSS WIDTH. The retired grammar was a grid
23
+ * track (`minmax(360px, 1fr)`), which is INVALID as a width: the browser
24
+ * drops the declaration, the column falls back to content width and the
25
+ * hairline stops lining up with the pane. A host still passing a track
26
+ * therefore gets the documented default plus one dev warning, instead of a
27
+ * silently collapsed column.
28
+ */
29
+ export declare function resolveListWidth(width: string): string;
30
+ /**
31
+ * HkMasterDetail — the family's standard two-pane roster+detail console
32
+ * (mail inbox, replay browser, mod roster, audit log: any host list that
33
+ * picks one row and shows it beside the list).
32
34
  *
33
- * Narrow viewports (`splitAt`, default 1100px, driven by the shared
34
- * `useBreakpoint` width): ONE column — the roster keeps the full width and
35
- * the detail pane becomes an OVERLAY DRAWER from the right over a scrim.
36
- * The drawer mounts only while a detail is open (nothing to show behind a
37
- * closed one) and closes through the same `close` emit the header
38
- * affordance uses: Escape anywhere on the drawer face, a tap on the scrim,
39
- * or the labelled close button. Escape's precedence follows HkDrawer /
40
- * HkModal — a nested control that already consumed the key owns it.
35
+ * Geometry — the WoWSP replay/resources contract (2026-11-23 user
36
+ * direction: the detail is a LAYOUT REGION, not a floating card): one
37
+ * full-height flex row the HOST bounds (`height: 100%` on the root; the
38
+ * host hands it a definite height — a stage-mode shell content box, or a
39
+ * page wrapper with a definite height). The roster column is a fixed
40
+ * flush sidebar (`listWidth`, 1px separator, the surface tint IS the
41
+ * page); the detail region takes the remaining width, scrolls
42
+ * internally, and carries NO card chrome — no radius, no shadow, no
43
+ * gutter. Each column owns its own scroll; the page never scrolls.
41
44
  *
42
- * The head band (`.hk-master-detail-detail-head`) carries the drawer-form
43
- * title, the `actions` slot and the close affordance; it renders only when
44
- * it has at least one of those. A wide, closed, action-less pane therefore
45
- * shows just the empty state — a band holding nothing would be blank
46
- * chrome above a placeholder.
45
+ * Narrow viewports (`splitAt`, default 768 — the family phone
46
+ * breakpoint) have two forms, and which one applies is about DISMISSAL,
47
+ * not width:
48
+ * - a host that binds `close` can deselect, so the detail rides HkModal —
49
+ * the family window (bottom sheet on phones). The modal stays MOUNTED
50
+ * and is driven by `detailOpen`, so closing runs the window's own exit
51
+ * motion and focus restore; unmounting it mid-close would strand
52
+ * keyboard focus on `<body>` and skip the animation.
53
+ * - a host that binds no `close` cannot deselect, and a modal would trap
54
+ * the user behind its scrim, focus trap and body-scroll lock. It gets
55
+ * the detail as the whole column instead — host-owned navigation, no
56
+ * overlay at all (the same refusal the wide layout applies to the
57
+ * close affordance).
47
58
  *
48
- * NOT a focus-trapping window: the drawer is a page region laid OVER the
49
- * roster (fixed position, dialog-sized), not a teleported overlay. It
50
- * paints in the page-chrome band (`--hk-z-sidebar`), so a host popup or
51
- * window teleported to `#hk-overlay-root` (--hk-z-float and up) covers it
52
- * by design. Hosts that need capture semantics (focus trap, body scroll
53
- * lock, back-gesture handling) mount HkDrawer themselves; this component
54
- * deliberately does not re-implement that surface family.
59
+ * The head band (`.hk-master-detail-detail-head`) carries the host's
60
+ * `actions` slot and the close affordance; it renders only when it has at
61
+ * least one of those (plus the overlay-scrollbar rail, which the
62
+ * component attaches to the pane over its own scroll region — native
63
+ * MECHANICS, the library's chrome).
55
64
  *
56
65
  * Emits `close` when the user dismisses the selection. The close
57
66
  * affordance renders only when a listener is bound (`@close` /
@@ -64,19 +73,19 @@ export type HkMasterDetailSlots = SlotsType<{
64
73
  * emptyTitle={t("inbox.pickOne", "Pick a message")}
65
74
  * onClose={() => (selected.value = null)}
66
75
  * >
67
- * {{ list: () => <InboxTable … />, detail: () => <MessageBody … /> }}
76
+ * {{ list: () => <InboxRoster … />, detail: () => <MessageBody … /> }}
68
77
  * </HkMasterDetail>
69
78
  * ```
70
79
  */
71
80
  export declare const HkMasterDetail: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
72
81
  /** Whether a detail is selected. Closed, the detail pane renders the
73
- * empty state (two-pane) or nothing at all (drawer form). */
82
+ * empty state (two-pane) or nothing at all (narrow form). */
74
83
  detailOpen: {
75
84
  type: BooleanConstructor;
76
85
  default: boolean;
77
86
  };
78
- /** Accessible name of the detail region — and, in the drawer form,
79
- * the visible header title. */
87
+ /** Accessible name of the detail region — and, in the narrow window
88
+ * form, the window's visible title. */
80
89
  detailTitle: {
81
90
  type: StringConstructor;
82
91
  required: true;
@@ -97,31 +106,19 @@ export declare const HkMasterDetail: import("vue").DefineComponent<import("vue")
97
106
  type: PropType<Component>;
98
107
  default: undefined;
99
108
  };
100
- /** Roster column track. */
109
+ /** Roster column width (a CSS width). The detail takes the rest. */
101
110
  listWidth: {
102
111
  type: StringConstructor;
103
112
  default: string;
104
113
  };
105
- /** Detail column track. */
106
- detailWidth: {
107
- type: StringConstructor;
108
- default: string;
109
- };
110
- /** Stick the detail pane while the roster scrolls. Hosts embedding
111
- * the pane in an already-bounded container pass false — a sticky
112
- * child inside a short box just scrolls with it. */
113
- sticky: {
114
- type: BooleanConstructor;
115
- default: boolean;
116
- };
117
- /** Viewport width (px) below which the two panes collapse into one
118
- * column with the detail in the overlay drawer. */
114
+ /** Viewport width (px) below which the narrow forms apply. */
119
115
  splitAt: {
120
116
  type: NumberConstructor;
121
117
  default: number;
122
118
  };
123
119
  /** Accessible label of the close affordance (defaults to the
124
- * localized "Close"). */
120
+ * localized "Close"). Forwarded to the narrow window's own close
121
+ * button as well, so a host's label reads the same in both forms. */
125
122
  closeLabel: {
126
123
  type: StringConstructor;
127
124
  default: undefined;
@@ -130,13 +127,13 @@ export declare const HkMasterDetail: import("vue").DefineComponent<import("vue")
130
127
  close: () => true;
131
128
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
132
129
  /** Whether a detail is selected. Closed, the detail pane renders the
133
- * empty state (two-pane) or nothing at all (drawer form). */
130
+ * empty state (two-pane) or nothing at all (narrow form). */
134
131
  detailOpen: {
135
132
  type: BooleanConstructor;
136
133
  default: boolean;
137
134
  };
138
- /** Accessible name of the detail region — and, in the drawer form,
139
- * the visible header title. */
135
+ /** Accessible name of the detail region — and, in the narrow window
136
+ * form, the window's visible title. */
140
137
  detailTitle: {
141
138
  type: StringConstructor;
142
139
  required: true;
@@ -157,31 +154,19 @@ export declare const HkMasterDetail: import("vue").DefineComponent<import("vue")
157
154
  type: PropType<Component>;
158
155
  default: undefined;
159
156
  };
160
- /** Roster column track. */
157
+ /** Roster column width (a CSS width). The detail takes the rest. */
161
158
  listWidth: {
162
159
  type: StringConstructor;
163
160
  default: string;
164
161
  };
165
- /** Detail column track. */
166
- detailWidth: {
167
- type: StringConstructor;
168
- default: string;
169
- };
170
- /** Stick the detail pane while the roster scrolls. Hosts embedding
171
- * the pane in an already-bounded container pass false — a sticky
172
- * child inside a short box just scrolls with it. */
173
- sticky: {
174
- type: BooleanConstructor;
175
- default: boolean;
176
- };
177
- /** Viewport width (px) below which the two panes collapse into one
178
- * column with the detail in the overlay drawer. */
162
+ /** Viewport width (px) below which the narrow forms apply. */
179
163
  splitAt: {
180
164
  type: NumberConstructor;
181
165
  default: number;
182
166
  };
183
167
  /** Accessible label of the close affordance (defaults to the
184
- * localized "Close"). */
168
+ * localized "Close"). Forwarded to the narrow window's own close
169
+ * button as well, so a host's label reads the same in both forms. */
185
170
  closeLabel: {
186
171
  type: StringConstructor;
187
172
  default: undefined;
@@ -189,13 +174,11 @@ export declare const HkMasterDetail: import("vue").DefineComponent<import("vue")
189
174
  }>> & Readonly<{
190
175
  onClose?: (() => any) | undefined;
191
176
  }>, {
192
- sticky: boolean;
193
177
  closeLabel: string;
194
178
  emptyTitle: string;
195
179
  emptyDescription: string;
196
180
  detailOpen: boolean;
197
181
  emptyIcon: Component;
198
182
  listWidth: string;
199
- detailWidth: string;
200
183
  splitAt: number;
201
184
  }, HkMasterDetailSlots, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -97,6 +97,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
97
97
  type: StringConstructor;
98
98
  default: undefined;
99
99
  };
100
+ /** Accessible label of the header close affordance. Unset keeps the
101
+ * localized default; a host whose own wording is more specific
102
+ * ("Dismiss message") passes it so the window's X reads the same as
103
+ * the rest of its surface. */
104
+ closeLabel: {
105
+ type: StringConstructor;
106
+ default: undefined;
107
+ };
100
108
  footerActions: {
101
109
  type: PropType<ModalAction[]>;
102
110
  default: undefined;
@@ -185,6 +193,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
185
193
  type: StringConstructor;
186
194
  default: undefined;
187
195
  };
196
+ /** Accessible label of the header close affordance. Unset keeps the
197
+ * localized default; a host whose own wording is more specific
198
+ * ("Dismiss message") passes it so the window's X reads the same as
199
+ * the rest of its surface. */
200
+ closeLabel: {
201
+ type: StringConstructor;
202
+ default: undefined;
203
+ };
188
204
  footerActions: {
189
205
  type: PropType<ModalAction[]>;
190
206
  default: undefined;
@@ -235,6 +251,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
235
251
  backGuard: boolean;
236
252
  contentClass: string;
237
253
  surfaceTitle: string;
254
+ closeLabel: string;
238
255
  footerActions: ModalAction[];
239
256
  windowed: boolean;
240
257
  overscanScreens: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celestia-island/hikari",
3
- "version": "0.55.462",
3
+ "version": "0.55.464",
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",
@@ -157,11 +157,3 @@ registerCssAnimation("hk-edge-glow-breathe", { infinite: true });
157
157
  // band and drops the loops (house pattern, see HkSkeleton).
158
158
  registerCssAnimation("hk-emergency-breathe", { infinite: true });
159
159
  registerCssAnimation("hk-emergency-signal", { infinite: true });
160
-
161
- // components/HkMasterDetail.scss — the drawer form's entry (two one-shots):
162
- // the detail pane slides in from the right edge and its veil fades in. Both
163
- // play once (the pane unmounts on close, so no leave keyframe); the host's
164
- // global animation switch and reduced motion clamp them (the component's
165
- // own sheet carries both opt-outs).
166
- registerCssAnimation("hk-master-detail-drawer-in");
167
- registerCssAnimation("hk-master-detail-scrim-in");
@@ -1,77 +1,74 @@
1
- // HkMasterDetail — the standard two-pane roster+detail surface.
1
+ // HkMasterDetail — the standard two-pane roster+detail console.
2
2
  //
3
- // One grid, two modes:
4
- // wide (data-split="two"): [list][detail] in the tracks the props write
5
- // narrow (data-split="single"): one full-width column; the detail pane
6
- // becomes an overlay drawer over a scrim
3
+ // Two modes, one full-height flex row the HOST bounds (height: 100% on
4
+ // the root — the wowsp replay/resources contract, 2026-11-23 user
5
+ // direction: the detail is a LAYOUT REGION, not a floating card):
6
+ // wide (data-split="two"): [roster column][detail region]
7
+ // narrow (data-split="single"): the roster takes the whole width; the
8
+ // detail rides HkModal (bottom sheet on
9
+ // phones) — no styles needed here, the
10
+ // family window owns that surface.
7
11
  //
8
- // The surface declarations on the detail pane MIRROR HkCard's (surface
9
- // blend + --border-subtle + --radius-lg + --shadow-elevated) rather than
10
- // reusing its class: the pane is a column of a grid track that has to keep
11
- // a rail-host box (position: relative) around its OWN scroll region, and
12
- // .hk-card's single body slot cannot express that. Same chrome, one
13
- // structure deeper, so the declarations are copied with the host hatch
14
- // (--hk-card-blur) intact.
12
+ // The roster column is a flush sidebar: fixed track, 1px separator, the
13
+ // surface tint IS the page (no card chrome anywhere). The detail region
14
+ // takes the remaining width and scrolls internally.
15
15
 
16
16
  @use "../styles/polyfill" as *;
17
17
 
18
18
  .hk-master-detail {
19
- display: grid;
20
- // The props write the two custom properties (listWidth / detailWidth);
21
- // the fallbacks are the component's documented defaults, so a host that
22
- // prefers pure CSS can drive the tracks through the same hooks.
23
- grid-template-columns:
24
- var(--hk-master-detail-list-w, minmax(360px, 1fr))
25
- var(--hk-master-detail-detail-w, minmax(0, 1.15fr));
26
- gap: var(--space-12, 0.75rem);
27
- align-items: start;
19
+ display: flex;
20
+ height: 100%;
21
+ min-height: 0;
28
22
  min-width: 0;
29
23
  }
30
24
 
31
- // Below `splitAt` the component lifts the detail into its own layer; the
32
- // roster takes the whole row. `align-items: start` keeps a short roster
33
- // from stretching and gives the sticky pane the slack it needs to stick.
34
- .hk-master-detail[data-split="single"] {
35
- grid-template-columns: minmax(0, 1fr);
36
- }
37
-
25
+ // The roster column: a flush secondary sidebar (the replay list's shape).
26
+ // The SLOT owns its internals — a flex-none head row over its own
27
+ // scroller — so the column shell only bounds: track width, the separator
28
+ // hairline, the surface tint and the clip.
38
29
  .hk-master-detail-list {
39
- // Grid children default to min-content width: a table inside the roster
40
- // would refuse to shrink below its widest cell. The track owns the
41
- // width, the pane may overflow-scroll inside it.
30
+ width: var(--hk-master-detail-list-w, 20rem);
31
+ flex: none;
32
+ display: flex;
33
+ flex-direction: column;
42
34
  min-width: 0;
35
+ min-height: 0;
36
+ border-inline-end: 1px solid rgb(var(--color-border) / 20%);
37
+ // The tint IS the page surface; hosts that retune it (a translucent
38
+ // concierge, a wallpaper legibility wash) set the hook. No calc()/
39
+ // color-mix() in the fallback: a var() fallback holding one resolves to
40
+ // UNSET on engines without it (IACVT) and the column would paint
41
+ // transparent, and a percentage-valued retune of a calc-based blend is
42
+ // an invalid-at-computed-value-time type error with the same result.
43
+ background: var(--hk-master-detail-list-bg, rgb(var(--color-surface)));
44
+ overflow: hidden;
45
+ }
46
+
47
+ // Narrow form: the roster is the whole page — no separator against
48
+ // nothing, no fixed track (the sheet owns the detail surface).
49
+ .hk-master-detail[data-split="single"] .hk-master-detail-list {
50
+ width: auto;
51
+ flex: 1;
52
+ border-inline-end: none;
43
53
  }
44
54
 
55
+ // …and the narrow IN-FLOW form (a host with no close channel renders the
56
+ // detail as the column itself — no roster, no overlay).
57
+ .hk-master-detail-detail--column {
58
+ flex: 1;
59
+ }
60
+
61
+ // The detail region: flush, chrome-less — NO border, NO radius, NO
62
+ // shadow, NO gutter (the 2026-11-23 direction). It is the overlay
63
+ // scrollbar RAIL's host (tracks are absolute children, so they must not
64
+ // live inside the scroller) and it bounds its own scroll region.
45
65
  .hk-master-detail-detail {
46
- // The card, positioned: it is the overlay scrollbar RAIL's host (tracks
47
- // are absolute children, so they must not live inside the scroller) and
48
- // it clips its own rounded corners.
49
66
  position: relative;
67
+ flex: 1;
68
+ min-width: 0;
69
+ min-height: 0;
50
70
  display: flex;
51
71
  flex-direction: column;
52
- align-self: start;
53
- min-width: 0;
54
- overflow: hidden;
55
- // Opaque base first: color-mix() inside a var() fallback is VALID at
56
- // parse time but resolves to unset (IACVT) on engines without it, so
57
- // the tint must sit behind a feature query (the HkScrollPin lesson)
58
- // rather than in a cascade that would keep a transparent background.
59
- background: var(--hk-master-detail-bg, rgb(var(--color-surface) / 70%));
60
- @include backdrop-filter(var(--hk-card-blur, blur(var(--blur-md))));
61
- border: 1px solid var(--border-subtle);
62
- border-radius: var(--radius-lg, 12px);
63
- box-shadow: var(--shadow-elevated);
64
- }
65
-
66
- @supports (background: color-mix(in srgb, white 70%, transparent)) {
67
- .hk-master-detail-detail {
68
- // The SAME hook as the base rule: a host that retunes the tint keeps
69
- // it on both sides of the feature query instead of silently reverting.
70
- background: var(
71
- --hk-master-detail-bg,
72
- color-mix(in srgb, rgb(var(--color-surface)) 70%, transparent)
73
- );
74
- }
75
72
  }
76
73
 
77
74
  // The pane's own scroll region (native MECHANICS, the library's overlay
@@ -92,22 +89,9 @@
92
89
  }
93
90
  }
94
91
 
95
- // Sticky is the HOST's declaration (data-sticky), the two-pane mode is
96
- // where it applies: a fixed-position drawer is already out of the flow.
97
- // --hk-master-detail-sticky-top lets a host with its own pinned chrome
98
- // park the pane below it.
99
- .hk-master-detail[data-split="two"] .hk-master-detail-detail[data-sticky] {
100
- position: sticky;
101
- top: var(--hk-master-detail-sticky-top, 0px);
102
- // vh first, dvh where supported (the family's mobile-chrome rule): the
103
- // pane must never exceed the viewport the browser shows.
104
- max-height: var(--hk-master-detail-max-h, calc(100vh - var(--space-32, 2rem)));
105
- max-height: var(--hk-master-detail-max-h, calc(100dvh - var(--space-32, 2rem)));
106
- }
107
-
108
- // The head band: title (drawer form), the host's header actions and the
109
- // close affordance. Sticky INSIDE the pane's own scroll region, so a long
110
- // detail never hides the way to dismiss it.
92
+ // The head band: the host's header actions and the close affordance.
93
+ // Sticky INSIDE the pane's own scroll region, so a long detail never
94
+ // hides the way to dismiss it.
111
95
  .hk-master-detail-detail-head {
112
96
  position: sticky;
113
97
  top: 0;
@@ -125,25 +109,13 @@
125
109
  @include backdrop-filter(blur(var(--blur-sm, 8px)));
126
110
  }
127
111
 
128
- .hk-master-detail-detail-title {
129
- flex: 1 1 auto;
130
- min-width: 0;
131
- margin: 0;
132
- color: rgb(var(--color-text));
133
- font-size: var(--text-base, 0.875rem);
134
- font-weight: 600;
135
- white-space: nowrap;
136
- overflow: hidden;
137
- text-overflow: ellipsis;
138
- }
139
-
140
112
  .hk-master-detail-detail-actions {
141
113
  display: flex;
142
114
  flex: none;
143
115
  align-items: center;
144
116
  gap: var(--space-8, 0.5rem);
145
- // Without the drawer-form title the actions still ride the band's
146
- // trailing edge, beside the close affordance.
117
+ // Without a title the actions still ride the band's trailing edge,
118
+ // beside the close affordance.
147
119
  margin-inline-start: auto;
148
120
  }
149
121
 
@@ -151,96 +123,33 @@
151
123
  display: flex;
152
124
  flex-direction: column;
153
125
  gap: var(--space-12, 0.75rem);
126
+ flex: 1 1 auto;
154
127
  min-width: 0;
155
128
  // The pane owns its inset so a detail slot needs no wrapper of its own;
156
- // hosts that render a flush table set --hk-master-detail-detail-pad: 0.
129
+ // hosts that render a flush canvas set --hk-master-detail-detail-pad: 0.
157
130
  padding: var(--hk-master-detail-detail-pad, var(--space-16, 1rem));
158
131
  }
159
132
 
160
- // The empty state must not collapse the pane to a title-sized sliver: a
161
- // floor only while nothing is selected (a real detail keeps its own
162
- // height). Gallery-hall geometry, not a layout rule for content.
133
+ // The empty state must not collapse the pane to a sliver: a floor only
134
+ // while nothing is selected (a real detail keeps its own height).
135
+ // Gallery-hall geometry, not a layout rule for content.
163
136
  .hk-master-detail:not([data-open]) .hk-master-detail-detail-body {
164
137
  min-height: var(--hk-master-detail-empty-min-h, 14rem);
165
138
  }
166
139
 
167
- // ------
168
- // Drawer form (single column): the SAME detail element, lifted out of the
169
- // grid into a fixed panel on the physical right edge.
170
- //
171
- // HkDrawer is not reused here on purpose: its header owns the close
172
- // affordance (closable is a single switch for both the button and
173
- // Escape), which would put a second, hardcoded-label close beside the
174
- // host's `closeLabel`/-detail-head close, and it teleports out of the
175
- // page. The dismissal paths this pane needs are three small additions
176
- // here, not a capture-semantics overlay: see the component doc.
177
- // ------
178
-
179
- .hk-master-detail-drawer {
180
- position: fixed;
181
- top: var(--hk-chrome-band-inset, 0px);
182
- right: 0;
183
- bottom: 0;
184
- width: min(var(--hk-master-detail-drawer-w, 28rem), 92vw);
185
- // Above the roster and its sticky chrome, below every teleported layer
186
- // (--hk-z-float and up): the drawer is page chrome, not a window.
187
- z-index: var(--hk-z-sidebar, 900);
188
- border-radius: var(--radius-lg, 12px) 0 0 var(--radius-lg, 12px);
189
- // Scope invalidation to the panel — the roster behind a phone drawer is
190
- // usually streaming, and containment keeps the two from cascading.
191
- contain: layout style;
192
- animation: hk-master-detail-drawer-in var(--duration-normal, 0.3s)
193
- var(--ease-out-expo, cubic-bezier(0.19, 1, 0.22, 1));
194
- }
195
-
196
- .hk-master-detail-scrim {
197
- position: fixed;
198
- top: var(--hk-chrome-band-inset, 0px);
199
- right: 0;
200
- bottom: 0;
201
- left: 0;
202
- // Same band as the panel: it paints first (DOM order), so the detail
203
- // stays above its own veil without a second z arithmetic.
204
- z-index: var(--hk-z-sidebar, 900);
205
- // The drawer family's veil, so a host that retunes HkDrawer's overlay
206
- // retunes this one too instead of inventing a second scrim colour.
207
- background: var(
208
- --hk-master-detail-scrim-bg,
209
- var(--hk-drawer-overlay-bg, rgb(0 0 0 / 45%))
210
- );
211
- animation: hk-master-detail-scrim-in var(--duration-normal, 0.3s)
212
- var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1));
213
- }
214
-
215
- @keyframes hk-master-detail-drawer-in {
216
- from {
217
- transform: translateX(100%);
218
- }
219
- to {
220
- transform: translateX(0);
221
- }
222
- }
140
+ // The narrow sheet's body shim: HkModal's body already insets; the
141
+ // actions row rides the top edge, flush right, and the detail content
142
+ // keeps the pane's own gap rhythm.
143
+ .hk-master-detail-sheet-body {
144
+ display: flex;
145
+ flex-direction: column;
146
+ gap: var(--space-12, 0.75rem);
147
+ min-width: 0;
223
148
 
224
- @keyframes hk-master-detail-scrim-in {
225
- from {
226
- opacity: 0;
227
- }
228
- to {
229
- opacity: 1;
149
+ .hk-master-detail-detail-actions {
150
+ // Inside the sheet the actions lead the body (no close sibling —
151
+ // the modal header owns that affordance there).
152
+ margin-inline-start: 0;
153
+ justify-content: flex-end;
230
154
  }
231
155
  }
232
-
233
- // Opt-outs: the host's global animation switch and the OS's reduced-motion
234
- // preference both apply — an inline-less rule can carry the media query
235
- // (the HkPaneHolder precedent), and neither may leave a panel mid-slide.
236
- html[data-css-animations="0"] .hk-master-detail-drawer,
237
- html[data-css-animations="0"] .hk-master-detail-scrim {
238
- animation: none;
239
- }
240
-
241
- @media (prefers-reduced-motion: reduce) {
242
- .hk-master-detail-drawer,
243
- .hk-master-detail-scrim {
244
- animation-duration: var(--duration-fast, 0.15s);
245
- }
246
- }