@hjmds/react 1.26.1 → 1.27.1

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 (273) hide show
  1. package/THIRD_PARTY_NOTICES.md +7 -0
  2. package/dist/advanced-display.d.ts +1 -0
  3. package/dist/advanced-display.d.ts.map +1 -1
  4. package/dist/advanced-display.js +3 -2
  5. package/dist/advanced-display.js.map +1 -1
  6. package/dist/agreement.d.ts.map +1 -1
  7. package/dist/agreement.js +2 -1
  8. package/dist/agreement.js.map +1 -1
  9. package/dist/bottom-cta.d.ts.map +1 -1
  10. package/dist/bottom-cta.js +5 -2
  11. package/dist/bottom-cta.js.map +1 -1
  12. package/dist/bottom-navigation.d.ts.map +1 -1
  13. package/dist/bottom-navigation.js +3 -0
  14. package/dist/bottom-navigation.js.map +1 -1
  15. package/dist/calendar.js +1 -1
  16. package/dist/calendar.js.map +1 -1
  17. package/dist/carousel-motion.d.ts.map +1 -1
  18. package/dist/carousel-motion.js +4 -3
  19. package/dist/carousel-motion.js.map +1 -1
  20. package/dist/carousel.d.ts.map +1 -1
  21. package/dist/carousel.js +3 -2
  22. package/dist/carousel.js.map +1 -1
  23. package/dist/chart.d.ts +3 -1
  24. package/dist/chart.d.ts.map +1 -1
  25. package/dist/chart.js +9 -4
  26. package/dist/chart.js.map +1 -1
  27. package/dist/clipboard.d.ts +27 -1
  28. package/dist/clipboard.d.ts.map +1 -1
  29. package/dist/clipboard.js +26 -12
  30. package/dist/clipboard.js.map +1 -1
  31. package/dist/collapsible.d.ts +9 -0
  32. package/dist/collapsible.d.ts.map +1 -1
  33. package/dist/collapsible.js +9 -2
  34. package/dist/collapsible.js.map +1 -1
  35. package/dist/collection-editing.d.ts.map +1 -1
  36. package/dist/collection-editing.js +15 -10
  37. package/dist/collection-editing.js.map +1 -1
  38. package/dist/collection-rail.d.ts.map +1 -1
  39. package/dist/collection-rail.js +3 -2
  40. package/dist/collection-rail.js.map +1 -1
  41. package/dist/communication.d.ts.map +1 -1
  42. package/dist/communication.js +5 -2
  43. package/dist/communication.js.map +1 -1
  44. package/dist/context-menu.d.ts +9 -1
  45. package/dist/context-menu.d.ts.map +1 -1
  46. package/dist/context-menu.js +1 -1
  47. package/dist/context-menu.js.map +1 -1
  48. package/dist/conversation-row.js +1 -1
  49. package/dist/conversation-row.js.map +1 -1
  50. package/dist/data-workflows.d.ts.map +1 -1
  51. package/dist/data-workflows.js +4 -3
  52. package/dist/data-workflows.js.map +1 -1
  53. package/dist/date-picker.d.ts.map +1 -1
  54. package/dist/date-picker.js +5 -3
  55. package/dist/date-picker.js.map +1 -1
  56. package/dist/design-profile.d.ts.map +1 -1
  57. package/dist/design-profile.js +4 -2
  58. package/dist/design-profile.js.map +1 -1
  59. package/dist/effect-surface.d.ts +9 -3
  60. package/dist/effect-surface.d.ts.map +1 -1
  61. package/dist/effect-surface.js +3 -2
  62. package/dist/effect-surface.js.map +1 -1
  63. package/dist/evidence.d.ts +1 -1
  64. package/dist/evidence.js +1 -1
  65. package/dist/evidence.js.map +1 -1
  66. package/dist/feedback.d.ts +8 -19
  67. package/dist/feedback.d.ts.map +1 -1
  68. package/dist/feedback.js +7 -3
  69. package/dist/feedback.js.map +1 -1
  70. package/dist/field-group.d.ts.map +1 -1
  71. package/dist/field-group.js +15 -8
  72. package/dist/field-group.js.map +1 -1
  73. package/dist/file-picker.d.ts +14 -2
  74. package/dist/file-picker.d.ts.map +1 -1
  75. package/dist/file-picker.js +5 -2
  76. package/dist/file-picker.js.map +1 -1
  77. package/dist/folder-preview.d.ts.map +1 -1
  78. package/dist/folder-preview.js +2 -2
  79. package/dist/folder-preview.js.map +1 -1
  80. package/dist/forms.d.ts.map +1 -1
  81. package/dist/forms.js +2 -1
  82. package/dist/forms.js.map +1 -1
  83. package/dist/image-choice.d.ts +30 -0
  84. package/dist/image-choice.d.ts.map +1 -0
  85. package/dist/image-choice.js +24 -0
  86. package/dist/image-choice.js.map +1 -0
  87. package/dist/image-comparison.d.ts.map +1 -1
  88. package/dist/image-comparison.js +2 -1
  89. package/dist/image-comparison.js.map +1 -1
  90. package/dist/index.d.ts +3 -3
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +2 -2
  93. package/dist/index.js.map +1 -1
  94. package/dist/internal/message-reactions.d.ts +28 -2
  95. package/dist/internal/message-reactions.d.ts.map +1 -1
  96. package/dist/internal/message-reactions.js +11 -4
  97. package/dist/internal/message-reactions.js.map +1 -1
  98. package/dist/internal/screen-exit.d.ts +11 -0
  99. package/dist/internal/screen-exit.d.ts.map +1 -0
  100. package/dist/internal/screen-exit.js +10 -0
  101. package/dist/internal/screen-exit.js.map +1 -0
  102. package/dist/internal/screen-footer.d.ts +7 -0
  103. package/dist/internal/screen-footer.d.ts.map +1 -0
  104. package/dist/internal/screen-footer.js +8 -0
  105. package/dist/internal/screen-footer.js.map +1 -0
  106. package/dist/layout.d.ts.map +1 -1
  107. package/dist/layout.js +8 -4
  108. package/dist/layout.js.map +1 -1
  109. package/dist/masonry.d.ts +5 -3
  110. package/dist/masonry.d.ts.map +1 -1
  111. package/dist/masonry.js +25 -3
  112. package/dist/masonry.js.map +1 -1
  113. package/dist/menu-morph.d.ts.map +1 -1
  114. package/dist/menu-morph.js +30 -7
  115. package/dist/menu-morph.js.map +1 -1
  116. package/dist/overlays.d.ts +2 -0
  117. package/dist/overlays.d.ts.map +1 -1
  118. package/dist/overlays.js +48 -11
  119. package/dist/overlays.js.map +1 -1
  120. package/dist/popover.d.ts +6 -0
  121. package/dist/popover.d.ts.map +1 -1
  122. package/dist/popover.js +3 -3
  123. package/dist/popover.js.map +1 -1
  124. package/dist/qr-code.js +1 -1
  125. package/dist/qr-code.js.map +1 -1
  126. package/dist/reaction-picker.d.ts.map +1 -1
  127. package/dist/reaction-picker.js +14 -1
  128. package/dist/reaction-picker.js.map +1 -1
  129. package/dist/saved-items.d.ts +8 -2
  130. package/dist/saved-items.d.ts.map +1 -1
  131. package/dist/saved-items.js +4 -4
  132. package/dist/saved-items.js.map +1 -1
  133. package/dist/screen-flows.d.ts +52 -6
  134. package/dist/screen-flows.d.ts.map +1 -1
  135. package/dist/screen-flows.js +48 -19
  136. package/dist/screen-flows.js.map +1 -1
  137. package/dist/screens.d.ts +56 -8
  138. package/dist/screens.d.ts.map +1 -1
  139. package/dist/screens.js +41 -15
  140. package/dist/screens.js.map +1 -1
  141. package/dist/selection.d.ts.map +1 -1
  142. package/dist/selection.js +4 -4
  143. package/dist/selection.js.map +1 -1
  144. package/dist/social-compositions.d.ts.map +1 -1
  145. package/dist/social-compositions.js +3 -2
  146. package/dist/social-compositions.js.map +1 -1
  147. package/dist/sortable.d.ts.map +1 -1
  148. package/dist/sortable.js +9 -3
  149. package/dist/sortable.js.map +1 -1
  150. package/dist/status-text.d.ts.map +1 -1
  151. package/dist/status-text.js +5 -2
  152. package/dist/status-text.js.map +1 -1
  153. package/dist/styles.css +221 -126
  154. package/dist/styles.layered.css +221 -126
  155. package/dist/table-family.d.ts +1 -1
  156. package/dist/table-family.d.ts.map +1 -1
  157. package/dist/table-family.js +24 -7
  158. package/dist/table-family.js.map +1 -1
  159. package/dist/task-controls.d.ts.map +1 -1
  160. package/dist/task-controls.js +9 -4
  161. package/dist/task-controls.js.map +1 -1
  162. package/dist/task-list.d.ts +1 -1
  163. package/dist/task-list.d.ts.map +1 -1
  164. package/dist/task-list.js +4 -3
  165. package/dist/task-list.js.map +1 -1
  166. package/dist/theme.d.ts.map +1 -1
  167. package/dist/theme.js +4 -0
  168. package/dist/theme.js.map +1 -1
  169. package/dist/top-bar.d.ts +5 -0
  170. package/dist/top-bar.d.ts.map +1 -1
  171. package/dist/top-bar.js +6 -1
  172. package/dist/top-bar.js.map +1 -1
  173. package/dist/transfer-list.d.ts.map +1 -1
  174. package/dist/transfer-list.js +13 -3
  175. package/dist/transfer-list.js.map +1 -1
  176. package/dist/upload-item.d.ts.map +1 -1
  177. package/dist/upload-item.js +3 -1
  178. package/dist/upload-item.js.map +1 -1
  179. package/fonts/pretendard/LICENSE.txt +94 -0
  180. package/fonts/pretendard/pretendard.css +927 -0
  181. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.0.woff2 +0 -0
  182. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.1.woff2 +0 -0
  183. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.10.woff2 +0 -0
  184. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.11.woff2 +0 -0
  185. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.12.woff2 +0 -0
  186. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.13.woff2 +0 -0
  187. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.14.woff2 +0 -0
  188. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.15.woff2 +0 -0
  189. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.16.woff2 +0 -0
  190. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.17.woff2 +0 -0
  191. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.18.woff2 +0 -0
  192. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.19.woff2 +0 -0
  193. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.2.woff2 +0 -0
  194. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.20.woff2 +0 -0
  195. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.21.woff2 +0 -0
  196. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.22.woff2 +0 -0
  197. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.23.woff2 +0 -0
  198. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.24.woff2 +0 -0
  199. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.25.woff2 +0 -0
  200. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.26.woff2 +0 -0
  201. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.27.woff2 +0 -0
  202. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.28.woff2 +0 -0
  203. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.29.woff2 +0 -0
  204. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.3.woff2 +0 -0
  205. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.30.woff2 +0 -0
  206. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.31.woff2 +0 -0
  207. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.32.woff2 +0 -0
  208. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.33.woff2 +0 -0
  209. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.34.woff2 +0 -0
  210. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.35.woff2 +0 -0
  211. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.36.woff2 +0 -0
  212. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.37.woff2 +0 -0
  213. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.38.woff2 +0 -0
  214. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.39.woff2 +0 -0
  215. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.4.woff2 +0 -0
  216. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.40.woff2 +0 -0
  217. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.41.woff2 +0 -0
  218. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.42.woff2 +0 -0
  219. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.43.woff2 +0 -0
  220. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.44.woff2 +0 -0
  221. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.45.woff2 +0 -0
  222. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.46.woff2 +0 -0
  223. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.47.woff2 +0 -0
  224. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.48.woff2 +0 -0
  225. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.49.woff2 +0 -0
  226. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.5.woff2 +0 -0
  227. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.50.woff2 +0 -0
  228. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.51.woff2 +0 -0
  229. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.52.woff2 +0 -0
  230. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.53.woff2 +0 -0
  231. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.54.woff2 +0 -0
  232. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.55.woff2 +0 -0
  233. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.56.woff2 +0 -0
  234. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.57.woff2 +0 -0
  235. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.58.woff2 +0 -0
  236. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.59.woff2 +0 -0
  237. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.6.woff2 +0 -0
  238. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.60.woff2 +0 -0
  239. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.61.woff2 +0 -0
  240. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.62.woff2 +0 -0
  241. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.63.woff2 +0 -0
  242. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.64.woff2 +0 -0
  243. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.65.woff2 +0 -0
  244. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.66.woff2 +0 -0
  245. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.67.woff2 +0 -0
  246. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.68.woff2 +0 -0
  247. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.69.woff2 +0 -0
  248. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.7.woff2 +0 -0
  249. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.70.woff2 +0 -0
  250. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.71.woff2 +0 -0
  251. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.72.woff2 +0 -0
  252. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.73.woff2 +0 -0
  253. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.74.woff2 +0 -0
  254. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.75.woff2 +0 -0
  255. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.76.woff2 +0 -0
  256. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.77.woff2 +0 -0
  257. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.78.woff2 +0 -0
  258. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.79.woff2 +0 -0
  259. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.8.woff2 +0 -0
  260. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.80.woff2 +0 -0
  261. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.81.woff2 +0 -0
  262. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.82.woff2 +0 -0
  263. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.83.woff2 +0 -0
  264. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.84.woff2 +0 -0
  265. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.85.woff2 +0 -0
  266. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.86.woff2 +0 -0
  267. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.87.woff2 +0 -0
  268. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.88.woff2 +0 -0
  269. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.89.woff2 +0 -0
  270. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.9.woff2 +0 -0
  271. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.90.woff2 +0 -0
  272. package/fonts/pretendard/woff2-dynamic-subset/PretendardVariable.subset.91.woff2 +0 -0
  273. package/package.json +10 -3
@@ -1,7 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
3
3
  import { CompositionLayout, ScreenLayout } from "./screens.js";
4
+ import { ScreenExitButton } from "./internal/screen-exit.js";
4
5
  import { Button, IconButton } from "./actions.js";
6
+ import { MessageReactions } from "./internal/message-reactions.js";
5
7
  import { Stack, Text, Grid, VisuallyHidden } from "./layout.js";
6
8
  import { SearchField } from "./forms.js";
7
9
  import { Chip, RadioGroup } from "./selection.js";
@@ -9,13 +11,14 @@ import { AlertDialog, Menu, Sheet } from "./overlays.js";
9
11
  import { UploadItem } from "./upload-item.js";
10
12
  import {} from "@hjmds/design-contracts/components/upload-item";
11
13
  import {} from "@hjmds/design-contracts/components/alert-dialog";
12
- import { validateCommentThread, resolvePermissionAction, resolveOnboardingStep, resolveSearchCommit, resolveSearchDebounceMs, resolveSearchEmptyCause, resolveSearchScreenPhase, resolveFocusAfterRemoval, screenPatternRecipe, profileSummaryRecipe, searchScreenRecipe } from "@hjmds/design-contracts/screen-patterns";
14
+ import { validateCommentThread, resolvePermissionAction, resolveOnboardingStep, resolveSearchCommit, resolveSearchDebounceMs, resolveSearchEmptyCause, resolveSearchScreenPhase, resolveFocusAfterRemoval, screenPatternRecipe, commentThreadRecipe, profileSummaryRecipe, searchScreenRecipe, resolveCommentMenuItems } from "@hjmds/design-contracts/screen-patterns";
13
15
  import { resolveWindowClass } from "@hjmds/design-contracts/responsive";
14
16
  import { containerRecipe } from "@hjmds/design-contracts/components/container";
15
17
  import { ListRow } from "./display.js";
16
18
  import { Heading } from "./heading.js";
17
19
  import { EmptyState, Skeleton } from "./feedback.js";
18
- function Action({ action, secondary = false, buttonRef }) { return _jsx(Button, { ref: buttonRef, tone: secondary ? "ghost" : "primary", disabled: !!(action.disabled || action.pending), loading: action.pending ?? false, onClick: action.onAction, children: action.label }); }
20
+ function Action({ action, secondary = false, buttonRef }) { if (action.icon)
21
+ return _jsx(IconButton, { ref: buttonRef, label: action.label, tone: "ghost", disabled: !!(action.disabled || action.pending), onClick: action.onAction, children: action.icon }); return _jsx(Button, { ref: buttonRef, tone: secondary ? "ghost" : "primary", disabled: !!(action.disabled || action.pending), loading: action.pending ?? false, onClick: action.onAction, children: action.label }); }
19
22
  /** Keep the list mounted so input and scroll survive a detail visit. Routers may instead restore host scroll state. */
20
23
  export function ListDetailScreen({ list, detail, back, refresh, loadMore, layoutStyle, ...screen }) {
21
24
  const open = !!detail;
@@ -39,7 +42,8 @@ export function ListDetailScreen({ list, detail, back, refresh, loadMore, layout
39
42
  wasOpen.current = open;
40
43
  }, [open]);
41
44
  // layoutStyle places the outer host that owns both panes, not the inner list ScreenLayout.
42
- return _jsxs("div", { style: { height: "100%", ...layoutStyle }, children: [_jsx("div", { ref: listHost, tabIndex: -1, hidden: open, style: { height: "100%" }, onFocusCapture: event => { returnFocus.current = event.target; }, children: _jsx(ScreenLayout, { ...screen, actions: refresh ? _jsx(Action, { action: refresh, secondary: true }) : screen.actions, footer: loadMore ? _jsx(Action, { action: loadMore, secondary: true }) : null, children: list }) }), detail ? _jsx("div", { ref: detailHost, style: { height: "100%" }, children: _jsx(ScreenLayout, { title: detail.title, ...(detail.titleVisibility === undefined ? {} : { titleVisibility: detail.titleVisibility }), ...(detail.headerAlignment === undefined ? {} : { headerAlignment: detail.headerAlignment }), ...(detail.state === undefined ? {} : { state: detail.state }), stateAction: detail.stateAction, notice: detail.notice, leading: _jsx(Action, { action: back, secondary: true }), children: detail.content }) }) : null] });
45
+ // "더 보기" ends the list inside the scroll body, centered like LoadMore; the fixed footer is the bottom CTA slot (2026-10-17 review).
46
+ return _jsxs("div", { style: { height: "100%", ...layoutStyle }, children: [_jsx("div", { ref: listHost, tabIndex: -1, hidden: open, style: { height: "100%" }, onFocusCapture: event => { returnFocus.current = event.target; }, children: _jsx(ScreenLayout, { ...screen, ...(refresh || screen.actions ? { actions: _jsxs(Stack, { axis: "inline", gap: "xs", align: "center", children: [screen.actions, refresh ? _jsx(Action, { action: refresh, secondary: true }) : null] }) } : {}), children: loadMore ? _jsxs("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 auto", minHeight: 0, gap: screenPatternRecipe.itemGap }, children: [list, _jsx("div", { style: { display: "flex", justifyContent: "center" }, children: _jsx(Action, { action: loadMore, secondary: true }) })] }) : list }) }), detail ? _jsx("div", { ref: detailHost, style: { height: "100%" }, children: _jsx(ScreenLayout, { title: detail.title, ...(detail.titleVisibility === undefined ? {} : { titleVisibility: detail.titleVisibility }), ...(detail.headerAlignment === undefined ? {} : { headerAlignment: detail.headerAlignment }), ...(detail.state === undefined ? {} : { state: detail.state }), stateAction: detail.stateAction, notice: detail.notice, exit: { kind: "back", label: back.label, onClick: back.onAction, disabled: !!(back.disabled || back.pending) }, children: detail.content }) }) : null] });
43
47
  }
44
48
  export function EditorScreen({ children, dirty, submitPlacement = "footer", submit, cancel, discard, draftStatus, ...screen }) {
45
49
  const [confirm, setConfirm] = useState(false);
@@ -52,11 +56,11 @@ export function EditorScreen({ children, dirty, submitPlacement = "footer", subm
52
56
  // Preserve an async host result so AlertDialog can retain failure and retry.
53
57
  const leave = () => { if (!cancelLocked)
54
58
  return cancel.onAction(); };
55
- return _jsxs(_Fragment, { children: [_jsx(ScreenLayout, { ...screen, leading: _jsx(Action, { action: { ...cancel, disabled: cancelLocked, onAction: () => { if (cancelLocked)
56
- return; if (dirty)
57
- setConfirm(true);
58
- else
59
- leave(); } }, secondary: true }), actions: submitPlacement === "header" ? _jsx(Action, { action: submitAction }) : screen.actions, footer: submitPlacement === "header" ? draftStatus : _jsxs(Stack, { gap: "sm", children: [draftStatus, _jsx(Action, { action: submitAction })] }), children: children }), _jsx(AlertDialog, { open: confirm && !cancelLocked, onOpenChange: setConfirm, request: { ...discard, mode: "confirm", onConfirm: leave } })] });
59
+ return _jsxs(_Fragment, { children: [_jsx(ScreenLayout, { ...screen, exit: { kind: "close", label: cancel.label, disabled: cancelLocked, onClick: () => { if (cancelLocked)
60
+ return; if (dirty)
61
+ setConfirm(true);
62
+ else
63
+ leave(); } }, actions: submitPlacement === "header" ? _jsx(Action, { action: submitAction }) : screen.actions, footer: submitPlacement === "header" ? draftStatus : _jsxs(Stack, { gap: "sm", children: [draftStatus, _jsx(Action, { action: submitAction })] }), children: children }), _jsx(AlertDialog, { open: confirm && !cancelLocked, onOpenChange: setConfirm, request: { ...discard, mode: "confirm", onConfirm: leave } })] });
60
64
  }
61
65
  export function ProfileScreen({ summary, edit, children, accountActions, ...screen }) { return _jsx(ScreenLayout, { ...screen, children: _jsxs(Stack, { gap: "xl", children: [_jsx(CompositionLayout, { footer: _jsx(Action, { action: edit, secondary: true }), children: summary }), children, accountActions] }) }); }
62
66
  export function ModerationScreen({ reasonPicker, reasons, reason, onReasonChange, reasonLabel, children, submit, block, ...screen }) {
@@ -66,7 +70,7 @@ export function ModerationScreen({ reasonPicker, reasons, reason, onReasonChange
66
70
  // a new explicit press even if the screen itself stays mounted.
67
71
  useEffect(() => { if (!hasBlock)
68
72
  setConfirm(false); }, [hasBlock]);
69
- return _jsxs(_Fragment, { children: [_jsx(ScreenLayout, { ...screen, footer: _jsxs(Stack, { gap: "sm", children: [_jsx(Action, { action: { ...submit, disabled: submit.disabled || !!screen.state && screen.state.kind !== "ready" || !reasons.some(item => item.value === reason) } }), block ? _jsx(Action, { action: { ...block.action, onAction: () => setConfirm(true) }, secondary: true }) : null] }), children: _jsxs(Stack, { gap: "lg", children: [reasonPicker ?? (reasons.length ? _jsx(RadioGroup, { accessibilityLabel: reasonLabel, orientation: "vertical", items: reasons, value: reason, onValueChange: value => { if (value)
73
+ return _jsxs(_Fragment, { children: [_jsx(ScreenLayout, { ...screen, footer: _jsxs(Stack, { gap: "xs", children: [_jsx(Action, { action: { ...submit, disabled: submit.disabled || !!screen.state && screen.state.kind !== "ready" || !reasons.some(item => item.value === reason) } }), block ? _jsx(Action, { action: { ...block.action, onAction: () => setConfirm(true) }, secondary: true }) : null] }), children: _jsxs(Stack, { gap: "lg", children: [reasonPicker ?? (reasons.length ? _jsx(RadioGroup, { accessibilityLabel: reasonLabel, orientation: "vertical", items: reasons, value: reason, onValueChange: value => { if (value)
70
74
  onReasonChange(value); } }) : null), children] }) }), block ? _jsx(AlertDialog, { open: confirm, onOpenChange: setConfirm, request: block.confirmation }) : null] });
71
75
  }
72
76
  export function PhotoSourceSheet({ open, onOpenChange, onSelect, labels, disabled = false, cameraAvailable = true }) {
@@ -74,7 +78,7 @@ export function PhotoSourceSheet({ open, onOpenChange, onSelect, labels, disable
74
78
  // sheet animation ends can cause browsers to reject camera/album selection.
75
79
  const select = (source) => { if (disabled)
76
80
  return; onOpenChange(false); onSelect(source); };
77
- return _jsx(Sheet, { open: open, onOpenChange: onOpenChange, title: labels.title, closeLabel: labels.cancel, children: _jsxs(Stack, { gap: "sm", children: [_jsx(Button, { tone: "secondary", disabled: disabled, onClick: () => select("library"), children: labels.library }), cameraAvailable ? _jsx(Button, { tone: "secondary", disabled: disabled, onClick: () => select("camera"), children: labels.camera }) : null] }) });
81
+ return _jsx(Sheet, { open: open, onOpenChange: onOpenChange, title: labels.title, closeLabel: labels.cancel, children: _jsxs(Stack, { gap: "xs", children: [_jsx(Button, { tone: "secondary", disabled: disabled, onClick: () => select("library"), children: labels.library }), cameraAvailable ? _jsx(Button, { tone: "secondary", disabled: disabled, onClick: () => select("camera"), children: labels.camera }) : null] }) });
78
82
  }
79
83
  /** A photo is the primary content; upload status stays below it instead of replacing the thumbnail. */
80
84
  export function MediaSelectionScreen({ library, selectionSummary, items, add, done, labels, actionLabels, removeLabel, moveUpLabel, moveDownLabel, onRemove, onMove, onRetry, onCancel, ...screen }) {
@@ -127,7 +131,7 @@ export function MediaSelectionScreen({ library, selectionSummary, items, add, do
127
131
  reveal(target);
128
132
  }
129
133
  });
130
- return _jsx(ScreenLayout, { ...screen, actions: _jsx(Action, { action: add, secondary: true, buttonRef: addButton }), footer: _jsxs(Stack, { gap: "sm", children: [selectionSummary, _jsx(Action, { action: done })] }), children: library ?? _jsx(Grid, { ref: grid, columns: { compact: 2, expanded: 3 }, gap: { compact: "md" }, onFocusCapture: event => {
134
+ return _jsx(ScreenLayout, { ...screen, ...(add || screen.actions ? { actions: _jsxs(Stack, { axis: "inline", gap: "xs", align: "center", children: [screen.actions, add ? _jsx(Action, { action: add, buttonRef: addButton }) : null] }) } : {}), footer: _jsxs(Stack, { gap: "sm", children: [selectionSummary, _jsx(Action, { action: done })] }), children: library ?? _jsx(Grid, { ref: grid, columns: { compact: 2, expanded: 3 }, gap: { compact: "md" }, onFocusCapture: event => {
131
135
  const node = event.target, row = node.closest("[data-hjm-media-item]");
132
136
  const id = row?.dataset.hjmMediaItem;
133
137
  if (id !== undefined)
@@ -292,9 +296,14 @@ export function SearchScreen({ query, queryLabel, queryField, queryClearLabel, o
292
296
  const body = phase === "idle" ? _jsxs(_Fragment, { children: [idle, committedQuery === undefined ? children : null] })
293
297
  : phase === "typing" ? (suggestions ? _jsx(SearchSuggestionList, { query: query, suggestions: suggestions, onCommit: pick }) : null)
294
298
  : _jsxs(_Fragment, { children: [_jsx(SearchResultsHeader, { summary: resultSummary, applied: appliedFilters, cause: cause, appliedHost: focus.appliedHost, onRemove: removeApplied, onClearAll: clearApplied, onSortChange: changeSort }), _jsx(SearchResultsBody, { summary: resultSummary, applied: appliedFilters, suggested: suggestedQueries, cause: cause, onCommit: pick, onClearAll: clearApplied, children: children })] });
295
- return _jsxs(_Fragment, { children: [_jsx(ScreenLayout, { ...screen, notice: _jsxs(Stack, { gap: "sm", ref: fieldHost, children: [queryField ?? _jsx(SearchField, { ...labelProps, clearLabel: queryClearLabel, value: query, onValueChange: onQueryChange, loading: searching ?? false, ...submitProps }), filterSlot, screen.notice] }), children: _jsxs(Stack, { gap: "lg", ref: bodyHost, className: "hjm-search-screen__results", tabIndex: -1, children: [suggestions || resultSummary || searchingLabel ? _jsx(SearchAnnouncement, { text: announcement }) : null, body] }) }), filterSheet ? _jsx(SearchFilterSheetView, { sheet: filterSheet }) : null] });
299
+ // Search-first routes have no visible heading: navigation and input share one row.
300
+ // Keep explicit host headers and described/titled screens in their existing layout.
301
+ const inlineNavigation = screen.titleVisibility === "hidden" && screen.header == null && !screen.description;
302
+ const searchInput = queryField ?? _jsx(SearchField, { ...labelProps, clearLabel: queryClearLabel, value: query, onValueChange: onQueryChange, loading: searching ?? false, ...submitProps });
303
+ const queryRow = inlineNavigation ? _jsxs(Stack, { axis: "inline", align: "center", gap: "sm", children: [screen.exit ? _jsx(ScreenExitButton, { ...screen.exit }) : null, _jsx("div", { style: { flex: 1, minWidth: 0 }, children: searchInput }), screen.actions] }) : searchInput;
304
+ return _jsxs(_Fragment, { children: [_jsx(ScreenLayout, { ...screen, ...(inlineNavigation ? { header: _jsx(_Fragment, {}) } : {}), notice: _jsxs(Stack, { gap: "sm", ref: fieldHost, children: [queryRow, filterSlot, screen.notice] }), children: _jsxs(Stack, { gap: "lg", ref: bodyHost, className: "hjm-search-screen__results", tabIndex: -1, children: [suggestions || resultSummary || searchingLabel ? _jsx(SearchAnnouncement, { text: announcement }) : null, body] }) }), filterSheet ? _jsx(SearchFilterSheetView, { sheet: filterSheet }) : null] });
296
305
  }
297
- export function PermissionScreen({ status, illustration, explanation, request, settings, continueAction, skip, ...screen }) { const kind = resolvePermissionAction(status); const primary = kind === "request" ? request : kind === "settings" ? settings : kind === "continue" ? continueAction : null; return _jsx(ScreenLayout, { ...screen, footer: _jsxs(Stack, { gap: "sm", children: [primary ? _jsx(Action, { action: primary }) : null, skip ? _jsx(Action, { action: skip, secondary: true }) : null] }), children: _jsxs(Stack, { gap: "xl", align: "center", children: [illustration, explanation] }) }); }
306
+ export function PermissionScreen({ status, illustration, explanation, request, settings, continueAction, skip, ...screen }) { const kind = resolvePermissionAction(status); const primary = kind === "request" ? request : kind === "settings" ? settings : kind === "continue" ? continueAction : null; return _jsx(ScreenLayout, { ...screen, footer: _jsxs(Stack, { gap: "xs", children: [primary ? _jsx(Action, { action: primary }) : null, skip ? _jsx(Action, { action: skip, secondary: true }) : null] }), children: _jsxs(Stack, { gap: "xl", align: "center", children: [illustration, explanation] }) }); }
298
307
  export function OnboardingScreen({ steps, index, onIndexChange, nextLabel, backLabel, complete, skip, progressLabel, layoutStyle }) {
299
308
  const position = resolveOnboardingStep(steps.length, index);
300
309
  const step = steps[index];
@@ -304,14 +313,34 @@ export function OnboardingScreen({ steps, index, onIndexChange, nextLabel, backL
304
313
  useLayoutEffect(() => { const body = host.current?.querySelector(".hjm-screen__body"); if (body)
305
314
  body.scrollTop = 0; }, [index]);
306
315
  const pending = !!(complete.pending || skip?.pending);
307
- return _jsx("div", { ref: host, style: { display: "contents" }, children: _jsx(ScreenLayout, { ...(layoutStyle === undefined ? {} : { layoutStyle }), title: step.title, description: step.description, actions: skip ? _jsx(Action, { action: { ...skip, disabled: !!(skip.disabled || pending) }, secondary: true }) : null, notice: _jsx(Text, { variant: "caption", tone: "muted", children: progressLabel(index + 1, steps.length) }), footer: _jsxs(Stack, { gap: "sm", children: [_jsx(Action, { action: position.last ? { ...complete, disabled: !!(complete.disabled || pending) } : { label: nextLabel, disabled: pending, onAction: () => onIndexChange(index + 1) } }), !position.first ? _jsx(Action, { action: { label: backLabel, disabled: pending, onAction: () => onIndexChange(index - 1) }, secondary: true }) : null] }), children: step.content }) });
316
+ return _jsx("div", { ref: host, style: { display: "contents" }, children: _jsx(ScreenLayout, { ...(layoutStyle === undefined ? {} : { layoutStyle }), title: step.title, description: step.description, actions: skip ? _jsx(Action, { action: { ...skip, disabled: !!(skip.disabled || pending) }, secondary: true }) : null, notice: _jsx(Text, { variant: "caption", tone: "muted", children: progressLabel(index + 1, steps.length) }), footer: _jsxs(Stack, { gap: "xs", children: [_jsx(Action, { action: position.last ? { ...complete, disabled: !!(complete.disabled || pending) } : { label: nextLabel, disabled: pending, onAction: () => onIndexChange(index + 1) } }), !position.first ? _jsx(Action, { action: { label: backLabel, disabled: pending, onAction: () => onIndexChange(index - 1) }, secondary: true }) : null] }), children: step.content }) });
317
+ }
318
+ /** Quiet secondary actions (reply, expand) read as muted copy beside the body, not as filled buttons. */
319
+ function CommentTextAction({ label, onPress, disabled = false, expanded }) {
320
+ return _jsx("button", { type: "button", className: "hjm-comment-row__action", disabled: disabled, "aria-expanded": expanded, onClick: onPress, children: label });
321
+ }
322
+ /** Vertical dots drawn in the icon grid, matching Native's drawn glyph (the semantic `more` icon is horizontal). */
323
+ function CommentMenuGlyph() { const size = commentThreadRecipe.menuGlyphSize; return _jsx("svg", { "aria-hidden": "true", focusable: "false", width: size, height: size, viewBox: "0 0 24 24", fill: "currentColor", children: [5, 12, 19].map(y => _jsx("circle", { cx: "12", cy: y, r: "1.75" }, y)) }); }
324
+ function CommentMenuButton({ item, menu }) {
325
+ const items = resolveCommentMenuItems(menu.items(item));
326
+ if (!items.length)
327
+ return null;
328
+ const label = menu.label(item);
329
+ return _jsx(Menu, { label: label, align: "end", trigger: _jsx(IconButton, { label: label, tone: "ghost", children: _jsx(CommentMenuGlyph, {}) }), items: items.map(entry => ({ id: entry.id, label: entry.label, textValue: entry.label, ...(entry.tone === undefined ? {} : { tone: entry.tone }), ...(entry.disabled === undefined ? {} : { disabled: entry.disabled }) })), onActionAfterDismiss: id => menu.onAction(item, id) });
308
330
  }
309
331
  /** Virtualized hosts reuse the same row as CommentThreadScreen; product slots add content, not a second layout. */
310
- export function CommentThreadRow({ item, onLike, onReply, replyLabel, layoutStyle }) {
311
- return _jsxs(Stack, { axis: "inline", align: "start", gap: "sm", ...(layoutStyle === undefined ? {} : { layoutStyle }), children: [item.avatar, _jsxs(Stack, { gap: "xxs", layoutStyle: { flex: 1, minWidth: 0 }, children: [item.bodyText !== undefined ? _jsxs(Text, { children: [_jsx(Text, { emphasis: "strong", children: item.author }), " ", item.bodyText] }) : (item.author || item.timeLabel) ? _jsxs(Stack, { axis: "inline", gap: "sm", align: "center", layoutStyle: { flexWrap: "wrap" }, children: [item.author ? _jsx(Text, { emphasis: "strong", children: item.author }) : null, item.timeLabel ? _jsx("time", { dateTime: item.timeDateTime, children: _jsx(Text, { variant: "caption", tone: "muted", children: item.timeLabel }) }) : null] }) : null, item.body, _jsxs(Stack, { axis: "inline", gap: "sm", align: "center", layoutStyle: { flexWrap: "wrap" }, children: [item.bodyText !== undefined && item.timeLabel ? _jsx("time", { dateTime: item.timeDateTime, children: _jsx(Text, { variant: "caption", tone: "muted", children: item.timeLabel }) }) : null, item.likeCountLabel ? _jsx(Text, { variant: "caption", tone: "muted", children: item.likeCountLabel }) : null, (item.canReply ?? item.parentId === null) ? _jsx(Button, { size: "small", tone: "ghost", disabled: item.replyDisabled ?? false, onClick: () => onReply(item.id), children: replyLabel }) : null] })] }), _jsxs(Stack, { axis: "inline", gap: "xxs", align: "center", layoutStyle: { flexShrink: 0 }, children: [item.likeAction !== undefined ? item.likeAction : _jsx(IconButton, { label: item.likeLabel, tone: "ghost", onClick: () => onLike(item.id), children: item.likeIcon }), item.actions] })] }, item.id);
332
+ export function CommentThreadRow({ item, onLike, onReply, replyLabel, layoutStyle, commentMenu }) {
333
+ const avatarSize = item.parentId === null ? commentThreadRecipe.avatarSize : commentThreadRecipe.replyAvatarSize;
334
+ const canReply = item.canReply ?? item.parentId === null;
335
+ const time = item.timeLabel ? _jsx("time", { dateTime: item.timeDateTime, children: _jsx(Text, { variant: "caption", tone: "muted", children: item.timeLabel }) }) : null;
336
+ // The like count sits under the heart so the text column carries only identity, body and reply.
337
+ return _jsxs(Stack, { axis: "inline", align: "start", gap: "xs", ...(layoutStyle === undefined ? {} : { layoutStyle }), children: [item.avatar ? _jsx("div", { className: "hjm-comment-row__avatar", style: { inlineSize: avatarSize }, children: item.avatar }) : null, _jsxs("div", { className: "hjm-comment-row__text", style: { gap: commentThreadRecipe.lineGap }, children: [(() => {
338
+ const identity = _jsxs(_Fragment, { children: [item.bodyText !== undefined ? _jsxs(Text, { children: [_jsx(Text, { emphasis: "strong", children: item.author }), " ", item.bodyText] }) : (item.author || item.timeLabel) ? _jsxs(Stack, { axis: "inline", gap: "xxs", align: "center", layoutStyle: { flexWrap: "wrap" }, children: [item.author ? _jsx(Text, { variant: "caption", emphasis: "strong", children: item.author }) : null, time] }) : null, item.body, item.media ? _jsx("div", { className: "hjm-comment-row__media", style: { maxInlineSize: commentThreadRecipe.mediaMaxWidth, borderRadius: commentThreadRecipe.mediaRadius }, children: item.media }) : null] });
339
+ return item.reactions ? _jsx(MessageReactions, { ...item.reactions, ...((item.canReply ?? item.parentId === null) && !item.replyDisabled ? { replyAction: { label: replyLabel, onPress: () => onReply(item.id), ...(item.reactions.replyIcon === undefined ? {} : { icon: item.reactions.replyIcon }) } } : {}), triggerClassName: "hjm-comment-row__reactions", children: identity }) : identity;
340
+ })(), (item.bodyText !== undefined && time) || canReply || item.reactionSummary ? _jsxs(Stack, { axis: "inline", gap: "sm", align: "center", layoutStyle: { flexWrap: "wrap" }, children: [item.bodyText !== undefined ? time : null, item.reactionSummary, canReply ? _jsx(CommentTextAction, { label: replyLabel, disabled: item.replyDisabled ?? false, onPress: () => onReply(item.id) }) : null] }) : null] }), _jsxs("div", { className: "hjm-comment-row__like", children: [_jsxs(Stack, { axis: "inline", gap: "xxs", align: "center", layoutStyle: { flexShrink: 0 }, children: [item.likeAction !== undefined ? item.likeAction : _jsx(IconButton, { label: item.likeLabel, tone: "ghost", onClick: () => onLike(item.id), children: item.likeIcon }), item.actions, commentMenu ? _jsx(CommentMenuButton, { item: item, menu: commentMenu }) : null] }), item.likeCountLabel ? _jsx("div", { className: "hjm-comment-row__like-count", style: { inlineSize: commentThreadRecipe.likeColumnWidth }, children: _jsx(Text, { variant: "caption", tone: "muted", children: item.likeCountLabel }) }) : null] })] }, item.id);
312
341
  }
313
342
  /** Controlled thread: server ordering, permission checks and receipt-based draft clearing belong to the product. */
314
- export function CommentThreadScreen({ items, expandedIds, onExpandedChange, onLike, onReply, replyLabel, repliesLabel, composer, threadHeader, threadFooter, ...screen }) {
343
+ export function CommentThreadScreen({ items, expandedIds, onExpandedChange, onLike, onReply, replyLabel, repliesLabel, composer, threadHeader, threadFooter, commentMenu, ...screen }) {
315
344
  validateCommentThread(items);
316
345
  // Index replies once; rescanning every item for each root makes long threads quadratic.
317
346
  const roots = [], repliesByParent = new Map();
@@ -327,10 +356,10 @@ export function CommentThreadScreen({ items, expandedIds, onExpandedChange, onLi
327
356
  repliesByParent.set(item.parentId, [item]);
328
357
  }
329
358
  }
330
- const row = (item) => _jsx(CommentThreadRow, { item: item, onLike: onLike, onReply: onReply, replyLabel: replyLabel }, item.id);
359
+ const row = (item) => _jsx(CommentThreadRow, { item: item, onLike: onLike, onReply: onReply, replyLabel: replyLabel, ...(commentMenu === undefined ? {} : { commentMenu }) }, item.id);
331
360
  // Product context belongs in the same scroll body as comments. Putting a tall
332
361
  // overview in the fixed header forced a second scroll region in Spint (2026-10-08).
333
- return _jsx(ScreenLayout, { ...screen, footer: !screen.state || screen.state.kind === "ready" || screen.state.kind === "empty" ? composer : null, children: _jsxs(Stack, { gap: "lg", children: [threadHeader, roots.map(item => { const replies = repliesByParent.get(item.id) ?? []; return _jsxs(Stack, { gap: "xs", children: [row(item), replies.length ? _jsxs(Stack, { gap: "md", layoutStyle: { marginInlineStart: screenPatternRecipe.sectionGap }, children: [_jsx(Button, { layoutStyle: { alignSelf: "flex-start" }, tone: "ghost", size: "small", "aria-expanded": expanded.has(item.id), onClick: () => onExpandedChange(item.id), children: repliesLabel(replies.length, expanded.has(item.id)) }), expanded.has(item.id) ? replies.map(row) : null] }) : null] }, item.id); }), threadFooter] }) });
362
+ return _jsx(ScreenLayout, { ...screen, footer: !screen.state || screen.state.kind === "ready" || screen.state.kind === "empty" ? composer : null, children: _jsxs(Stack, { gap: "lg", children: [threadHeader, _jsx("div", { className: "hjm-comment-thread", style: { gap: commentThreadRecipe.rowGap }, children: roots.map(item => { const replies = repliesByParent.get(item.id) ?? []; return _jsxs("div", { className: "hjm-comment-thread", style: { gap: commentThreadRecipe.rowGap }, children: [row(item), replies.length ? _jsxs("div", { className: "hjm-comment-thread", style: { gap: commentThreadRecipe.rowGap, marginInlineStart: commentThreadRecipe.replyIndent }, children: [_jsx(CommentTextAction, { label: repliesLabel(replies.length, expanded.has(item.id)), expanded: expanded.has(item.id), onPress: () => onExpandedChange(item.id) }), expanded.has(item.id) ? replies.map(row) : null] }) : null] }, item.id); }) }), threadFooter] }) });
334
363
  }
335
364
  /** Profile identity and counts are common; routing and mutations stay controlled by the product. */
336
365
  export function ProfileSummary({ name, headingLevel = 2, avatar, badge, nameActions, stats = [], actions, children }) {