@conscience-technology/ovenn 0.6.7 → 0.7.2

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 (431) hide show
  1. package/assets/components/AIMessage/AIMessage.module.css +23 -1
  2. package/assets/components/AIMessage/AIMessage.tsx +27 -7
  3. package/assets/components/Accordion/Accordion.module.css +3 -0
  4. package/assets/components/AppFrame/AppFrame.module.css +2 -0
  5. package/assets/components/AttachmentItem/AttachmentItem.module.css +50 -13
  6. package/assets/components/AttachmentItem/AttachmentItem.tsx +25 -8
  7. package/assets/components/AttachmentThumb/AttachmentThumb.module.css +12 -9
  8. package/assets/components/Avatar/Avatar.module.css +26 -11
  9. package/assets/components/Avatar/Avatar.tsx +1 -1
  10. package/assets/components/AvatarUpload/AvatarUpload.module.css +4 -3
  11. package/assets/components/Badge/Badge.module.css +96 -70
  12. package/assets/components/Badge/Badge.tsx +33 -25
  13. package/assets/components/Breadcrumb/Breadcrumb.module.css +8 -4
  14. package/assets/components/Breadcrumb/Breadcrumb.tsx +1 -1
  15. package/assets/components/Bubble/Bubble.module.css +6 -0
  16. package/assets/components/Button/Button.module.css +6 -0
  17. package/assets/components/Calendar/Calendar.module.css +244 -0
  18. package/assets/components/Calendar/Calendar.tsx +419 -0
  19. package/assets/components/Calendar/index.ts +2 -0
  20. package/assets/components/Callout/Callout.module.css +54 -7
  21. package/assets/components/Callout/Callout.tsx +26 -2
  22. package/assets/components/Callout/index.ts +1 -1
  23. package/assets/components/Canvas/Canvas.module.css +75 -0
  24. package/assets/components/Canvas/Canvas.tsx +699 -0
  25. package/assets/components/Canvas/alignment.ts +34 -0
  26. package/assets/components/Canvas/clipboard.ts +30 -0
  27. package/assets/components/Canvas/collision.ts +67 -0
  28. package/assets/components/Canvas/edgeOptions.ts +11 -0
  29. package/assets/components/Canvas/graph.ts +11 -0
  30. package/assets/components/Canvas/history.ts +41 -0
  31. package/assets/components/Canvas/index.ts +4 -0
  32. package/assets/components/Canvas/selection.ts +56 -0
  33. package/assets/components/Canvas/tokens.css +61 -0
  34. package/assets/components/Canvas/types.ts +27 -0
  35. package/assets/components/Canvas/useCanvasSettlement.ts +79 -0
  36. package/assets/components/CanvasEdge/CanvasEdge.module.css +62 -0
  37. package/assets/components/CanvasEdge/CanvasEdge.tsx +121 -0
  38. package/assets/components/CanvasEdge/geometry.ts +350 -0
  39. package/assets/components/CanvasEdge/index.ts +4 -0
  40. package/assets/components/CanvasEdge/interactions.ts +14 -0
  41. package/assets/components/CanvasEdge/tokens.css +29 -0
  42. package/assets/components/CanvasNode/CanvasNode.module.css +234 -30
  43. package/assets/components/CanvasNode/CanvasNode.tsx +95 -28
  44. package/assets/components/CanvasNode/index.ts +1 -1
  45. package/assets/components/CanvasNode/runningOutline.ts +59 -0
  46. package/assets/components/CanvasNode/tokens.css +76 -13
  47. package/assets/components/Card/Card.module.css +5 -0
  48. package/assets/components/Chart/Chart.module.css +278 -0
  49. package/assets/components/Chart/Chart.tsx +385 -0
  50. package/assets/components/Chart/entrance.tsx +57 -0
  51. package/assets/components/Chart/index.ts +14 -0
  52. package/assets/components/ChatComposer/ChatComposer.module.css +17 -0
  53. package/assets/components/ChatComposer/ChatComposer.tsx +131 -0
  54. package/assets/components/ChatComposer/index.ts +2 -0
  55. package/assets/components/ChatInput/ChatInput.module.css +197 -30
  56. package/assets/components/ChatInput/ChatInput.tsx +137 -45
  57. package/assets/components/ChatInput/SendButton.tsx +4 -1
  58. package/assets/components/ChatInput/index.ts +5 -0
  59. package/assets/components/ChatMessage/ChatMessage.module.css +19 -0
  60. package/assets/components/ChatMessage/ChatMessage.tsx +63 -0
  61. package/assets/components/ChatMessage/index.ts +2 -0
  62. package/assets/components/ChatReactions/ChatReactions.module.css +15 -0
  63. package/assets/components/ChatReactions/ChatReactions.tsx +58 -0
  64. package/assets/components/ChatReactions/index.ts +2 -0
  65. package/assets/components/Checkbox/Checkbox.module.css +39 -0
  66. package/assets/components/Checkbox/Checkbox.tsx +99 -14
  67. package/assets/components/Checkbox/index.ts +1 -1
  68. package/assets/components/CheckboxCard/CheckboxCard.module.css +1 -177
  69. package/assets/components/CheckboxCard/CheckboxCard.tsx +6 -72
  70. package/assets/components/Chip/Chip.module.css +20 -30
  71. package/assets/components/Code/Code.module.css +1 -0
  72. package/assets/components/CodeBlock/CodeBlock.module.css +113 -13
  73. package/assets/components/CodeBlock/CodeBlock.tsx +114 -29
  74. package/assets/components/CodeBlock/SyntaxHighlight.tsx +20 -0
  75. package/assets/components/CodeBlock/diff-lines.ts +21 -0
  76. package/assets/components/CodeBlock/index.ts +2 -1
  77. package/assets/components/CodeBlock/line-preview.ts +7 -0
  78. package/assets/components/CodeBlock/syntax-highlighter.ts +96 -0
  79. package/assets/components/CodeBlock/use-syntax-tokens.ts +17 -0
  80. package/assets/components/ColorArea/ColorArea.module.css +3 -0
  81. package/assets/components/ColorField/ColorField.module.css +19 -190
  82. package/assets/components/ColorField/ColorField.tsx +116 -107
  83. package/assets/components/ColorPicker/ColorPicker.module.css +310 -0
  84. package/assets/components/ColorPicker/ColorPicker.tsx +387 -0
  85. package/assets/components/ColorPicker/index.ts +16 -0
  86. package/assets/components/ColorSlider/ColorSlider.module.css +15 -12
  87. package/assets/components/ColorSlider/ColorSlider.tsx +3 -3
  88. package/assets/components/ColorSwatch/ColorSwatch.module.css +2 -2
  89. package/assets/components/ColorSwatchPicker/ColorSwatchPicker.module.css +4 -3
  90. package/assets/components/Combobox/Combobox.module.css +21 -4
  91. package/assets/components/Combobox/Combobox.tsx +38 -22
  92. package/assets/components/CommandPalette/CommandPalette.module.css +19 -24
  93. package/assets/components/CommandPalette/CommandPalette.tsx +7 -5
  94. package/assets/components/Comment/Comment.module.css +25 -0
  95. package/assets/components/Comment/Comment.tsx +44 -0
  96. package/assets/components/Comment/CommentComposer.module.css +26 -0
  97. package/assets/components/Comment/CommentComposer.tsx +56 -0
  98. package/assets/components/Comment/CommentEditor.module.css +8 -0
  99. package/assets/components/Comment/CommentEditor.tsx +43 -0
  100. package/assets/components/Comment/CommentMentionInput.module.css +9 -0
  101. package/assets/components/Comment/CommentMentionInput.tsx +150 -0
  102. package/assets/components/Comment/index.ts +9 -0
  103. package/assets/components/Comment/types.ts +1 -0
  104. package/assets/components/ContextMenu/ContextMenu.module.css +5 -2
  105. package/assets/components/ContextMenu/ContextMenu.tsx +5 -0
  106. package/assets/components/ControlGroup/ControlGroup.module.css +20 -7
  107. package/assets/components/DataTable/DataTable.module.css +2 -0
  108. package/assets/components/DatePicker/DateField.tsx +72 -25
  109. package/assets/components/DatePicker/DatePicker.module.css +56 -54
  110. package/assets/components/DatePicker/DatePicker.tsx +86 -40
  111. package/assets/components/DatePicker/TimeSelector.tsx +1 -1
  112. package/assets/components/Disclosure/Disclosure.module.css +1 -0
  113. package/assets/components/Drawer/Drawer.module.css +23 -19
  114. package/assets/components/Drawer/Drawer.tsx +20 -24
  115. package/assets/components/DropdownMenu/DropdownMenu.tsx +5 -0
  116. package/assets/components/EmojiPicker/EmojiGlyph.module.css +2 -0
  117. package/assets/components/EmojiPicker/EmojiGlyph.tsx +12 -0
  118. package/assets/components/EmojiPicker/EmojiPicker.module.css +43 -0
  119. package/assets/components/EmojiPicker/EmojiPicker.tsx +143 -0
  120. package/assets/components/EmojiPicker/UNICODE-LICENSE.txt +39 -0
  121. package/assets/components/EmojiPicker/data.ts +41 -0
  122. package/assets/components/EmojiPicker/emojiData-0.json +1 -0
  123. package/assets/components/EmojiPicker/emojiData-1.json +1 -0
  124. package/assets/components/EmojiPicker/emojiData-2.json +1 -0
  125. package/assets/components/EmojiPicker/emojiData-3.json +1 -0
  126. package/assets/components/EmojiPicker/emojiData.sources.json +35 -0
  127. package/assets/components/EmojiPicker/emojiData.ts +8 -0
  128. package/assets/components/EmojiPicker/emojiFallbacks.json +1 -0
  129. package/assets/components/EmojiPicker/index.ts +4 -0
  130. package/assets/components/EmptyState/EmptyState.module.css +2 -2
  131. package/assets/components/EventChip/EventChip.module.css +120 -53
  132. package/assets/components/EventChip/EventChip.tsx +54 -6
  133. package/assets/components/EventChip/index.ts +1 -1
  134. package/assets/components/EventListItem/EventListItem.module.css +3 -0
  135. package/assets/components/EventListItem/EventListItem.tsx +15 -8
  136. package/assets/components/FileIcon/FileIcon.module.css +6 -6
  137. package/assets/components/FileUpload/FileUpload.module.css +10 -3
  138. package/assets/components/FileUpload/FileUpload.tsx +5 -9
  139. package/assets/components/FileUpload/FileUploadItem.tsx +34 -0
  140. package/assets/components/GalleryItem/GalleryItem.module.css +16 -19
  141. package/assets/components/GeneratedImage/GeneratedImage.module.css +2 -0
  142. package/assets/components/Icon/Icon.tsx +264 -1088
  143. package/assets/components/Icon/LucideFamilyIcon.tsx +436 -0
  144. package/assets/components/Icon/MissingIcon.tsx +25 -0
  145. package/assets/components/Icon/SolarFamilyIcon.tsx +443 -0
  146. package/assets/components/Icon/catalogNames.ts +8 -0
  147. package/assets/components/Icon/context.tsx +1 -1
  148. package/assets/components/Icon/index.ts +2 -0
  149. package/assets/components/Icon/lucideCatalog.ts +11358 -0
  150. package/assets/components/Icon/phosphorCatalog.ts +3052 -0
  151. package/assets/components/Icon/solarCatalog.ts +16064 -0
  152. package/assets/components/IconButton/IconButton.module.css +3 -2
  153. package/assets/components/Input/Input.module.css +63 -22
  154. package/assets/components/Input/Input.tsx +21 -10
  155. package/assets/components/Kanban/Kanban.module.css +6 -0
  156. package/assets/components/ListItem/ListItem.module.css +9 -6
  157. package/assets/components/MenuItem/MenuItem.module.css +24 -22
  158. package/assets/components/MenuItem/MenuItem.tsx +12 -12
  159. package/assets/components/MessageActions/MessageActions.module.css +38 -2
  160. package/assets/components/MessageActions/MessageActions.tsx +53 -28
  161. package/assets/components/MessageQuote/MessageQuote.module.css +1 -0
  162. package/assets/components/MessageSources/MessageSources.module.css +2 -0
  163. package/assets/components/MessageState/MessageState.module.css +1 -1
  164. package/assets/components/MetricCard/MetricCard.module.css +96 -108
  165. package/assets/components/MetricCard/MetricCard.tsx +45 -23
  166. package/assets/components/MetricCard/tokens.css +10 -0
  167. package/assets/components/MiniCalendar/MiniCalendar.module.css +130 -0
  168. package/assets/components/MiniCalendar/MiniCalendar.tsx +161 -0
  169. package/assets/components/MiniCalendar/index.ts +2 -0
  170. package/assets/components/Modal/Modal.module.css +13 -4
  171. package/assets/components/Modal/Modal.tsx +4 -0
  172. package/assets/components/Onboarding/LayoutBuilder.tsx +12 -50
  173. package/assets/components/Onboarding/Onboarding.module.css +211 -278
  174. package/assets/components/Onboarding/OnboardingAxisPanel.tsx +81 -125
  175. package/assets/components/Onboarding/OnboardingPage.tsx +244 -467
  176. package/assets/components/Onboarding/actions.ts +5 -0
  177. package/assets/components/Onboarding/palette.css +8 -0
  178. package/assets/components/Onboarding/wizardData.ts +8 -8
  179. package/assets/components/ProgressBar/ProgressBar.module.css +42 -8
  180. package/assets/components/ProgressBar/ProgressBar.tsx +5 -6
  181. package/assets/components/ProgressBar/index.ts +0 -1
  182. package/assets/components/QuotationBar/QuotationBar.module.css +2 -0
  183. package/assets/components/Radio/Radio.module.css +2 -0
  184. package/assets/components/RadioCard/RadioCard.module.css +96 -3
  185. package/assets/components/RadioCard/RadioCard.tsx +76 -13
  186. package/assets/components/RadioCard/index.ts +1 -1
  187. package/assets/components/SegmentedChart/SegmentedChart.module.css +16 -0
  188. package/assets/components/SegmentedChart/SegmentedChart.tsx +25 -8
  189. package/assets/components/Select/Select.module.css +9 -7
  190. package/assets/components/Select/Select.tsx +22 -6
  191. package/assets/components/Shortcut/Shortcut.module.css +2 -0
  192. package/assets/components/Sidebar/Sidebar.module.css +1 -0
  193. package/assets/components/Sidebar/Sidebar.tsx +2 -2
  194. package/assets/components/Skeleton/Skeleton.module.css +33 -0
  195. package/assets/components/Skeleton/Skeleton.tsx +20 -0
  196. package/assets/components/Skeleton/index.ts +2 -0
  197. package/assets/components/Skeleton/tokens.css +11 -0
  198. package/assets/components/Slider/Slider.module.css +3 -0
  199. package/assets/components/Slider/Slider.tsx +7 -2
  200. package/assets/components/Spinner/LottiePlayer.tsx +4 -4
  201. package/assets/components/Spinner/Spinner.module.css +3 -0
  202. package/assets/components/Spinner/lottieManifest.ts +3 -0
  203. package/assets/components/Stepper/Stepper.module.css +56 -8
  204. package/assets/components/Stepper/Stepper.tsx +13 -4
  205. package/assets/components/Switch/Switch.module.css +55 -42
  206. package/assets/components/Switch/Switch.tsx +6 -2
  207. package/assets/components/Switch/index.ts +1 -1
  208. package/assets/components/TabStrip/TabStrip.module.css +5 -1
  209. package/assets/components/TableCell/TableCell.module.css +8 -1
  210. package/assets/components/TableCell/TableCellBadge.tsx +7 -3
  211. package/assets/components/TableCell/TableCellImage.tsx +1 -1
  212. package/assets/components/TableCell/TableCellTag.tsx +23 -0
  213. package/assets/components/TableCell/index.ts +3 -0
  214. package/assets/components/TableHeader/TableHeader.module.css +4 -0
  215. package/assets/components/TableRow/TableRow.module.css +3 -0
  216. package/assets/components/TableRowEdit/TableRowEdit.module.css +2 -0
  217. package/assets/components/TableToolbar/TableToolbar.module.css +1 -0
  218. package/assets/components/Tabs/Tabs.module.css +23 -8
  219. package/assets/components/Tabs/Tabs.tsx +4 -3
  220. package/assets/components/Tag/Tag.module.css +101 -0
  221. package/assets/components/Tag/Tag.tsx +55 -0
  222. package/assets/components/Tag/index.ts +2 -0
  223. package/assets/components/TemplateBoundary/TemplateBoundary.tsx +22 -18
  224. package/assets/components/TemplateBoundary/types.ts +2 -0
  225. package/assets/components/Textarea/Textarea.module.css +30 -226
  226. package/assets/components/Textarea/Textarea.tsx +2 -2
  227. package/assets/components/ThemeController.tsx +30 -3
  228. package/assets/components/TimePicker/TimePicker.module.css +17 -4
  229. package/assets/components/TimePicker/TimePicker.tsx +102 -23
  230. package/assets/components/TimelineView/TimelineEventBar.tsx +109 -0
  231. package/assets/components/TimelineView/TimelineView.module.css +203 -0
  232. package/assets/components/TimelineView/TimelineView.tsx +137 -0
  233. package/assets/components/TimelineView/axis.ts +62 -0
  234. package/assets/components/TimelineView/index.ts +3 -0
  235. package/assets/components/TimelineView/layout.ts +56 -0
  236. package/assets/components/TimelineView/move.ts +51 -0
  237. package/assets/components/TimelineView/useTimelineDrag.ts +215 -0
  238. package/assets/components/TimelineView/useTimelineZoom.ts +92 -0
  239. package/assets/components/Toast/Toast.module.css +20 -0
  240. package/assets/components/Toast/Toast.tsx +1 -1
  241. package/assets/components/Toolbar/Toolbar.module.css +31 -24
  242. package/assets/components/Toolbar/Toolbar.tsx +4 -3
  243. package/assets/components/Tooltip/Tooltip.module.css +10 -0
  244. package/assets/components/Tooltip/Tooltip.tsx +50 -15
  245. package/assets/components/TopLoader/TopLoader.module.css +1 -0
  246. package/assets/components/TreeNav/TreeNav.module.css +1 -0
  247. package/assets/components/UserMessage/UserMessage.module.css +110 -1
  248. package/assets/components/UserMessage/UserMessage.tsx +138 -16
  249. package/assets/components/UserMessage/index.ts +4 -0
  250. package/assets/components/_color.ts +2 -2
  251. package/assets/components/_data.ts +37 -31
  252. package/assets/components/_utils.css +36 -5
  253. package/assets/components/axisOptions.ts +2 -0
  254. package/assets/components/component-registry.json +1731 -94
  255. package/assets/components/index.ts +23 -0
  256. package/assets/components/materialScope.tsx +11 -0
  257. package/assets/components/reset.css +1 -0
  258. package/assets/components/themeBootScript.ts +3 -2
  259. package/assets/components/tokens.css +308 -71
  260. package/assets/components/useChartEntrance.ts +119 -0
  261. package/assets/prompts/ASSEMBLY.md +20 -7
  262. package/assets/prompts/CATALOG.md +110 -92
  263. package/assets/prompts/FEEDBACK_PROCESS.md +19 -0
  264. package/assets/prompts/PRINCIPLES.md +25 -1
  265. package/assets/prompts/TEMPLATE_PREVIEWS.md +21 -0
  266. package/assets/prompts/WORKFLOW_DESIGN.md +48 -70
  267. package/assets/prompts/axes/font.md +12 -1
  268. package/assets/prompts/axes/icon.md +6 -4
  269. package/assets/prompts/axes/material.md +40 -0
  270. package/assets/prompts/axes/motion.md +2 -0
  271. package/assets/prompts/axes/palette.md +10 -2
  272. package/assets/prompts/axes/shape.md +8 -0
  273. package/assets/prompts/axes/voice.md +4 -0
  274. package/assets/prompts/components/README.md +3 -3
  275. package/assets/prompts/components/_variants.md +35 -35
  276. package/assets/prompts/components/accordion.md +15 -15
  277. package/assets/prompts/components/ai-message.md +14 -12
  278. package/assets/prompts/components/app-frame.md +16 -16
  279. package/assets/prompts/components/attachment-item.md +38 -31
  280. package/assets/prompts/components/attachment-thumb.md +14 -12
  281. package/assets/prompts/components/avatar-upload.md +10 -10
  282. package/assets/prompts/components/avatar.md +16 -16
  283. package/assets/prompts/components/badge.md +32 -97
  284. package/assets/prompts/components/breadcrumb.md +25 -24
  285. package/assets/prompts/components/bubble.md +13 -13
  286. package/assets/prompts/components/button-group.md +1 -1
  287. package/assets/prompts/components/button.md +36 -36
  288. package/assets/prompts/components/calendar.md +151 -0
  289. package/assets/prompts/components/callout.md +39 -23
  290. package/assets/prompts/components/canvas-edge.md +70 -0
  291. package/assets/prompts/components/canvas-node.md +27 -10
  292. package/assets/prompts/components/canvas.md +85 -0
  293. package/assets/prompts/components/card.md +31 -31
  294. package/assets/prompts/components/chart-bar.md +77 -0
  295. package/assets/prompts/components/chart-pie.md +63 -0
  296. package/assets/prompts/components/chart-radar.md +56 -0
  297. package/assets/prompts/components/chart-radial.md +56 -0
  298. package/assets/prompts/components/chart.md +129 -0
  299. package/assets/prompts/components/chat-composer.md +71 -0
  300. package/assets/prompts/components/chat-input.md +82 -27
  301. package/assets/prompts/components/chat-message.md +48 -0
  302. package/assets/prompts/components/chat-reactions.md +38 -0
  303. package/assets/prompts/components/checkbox-card.md +26 -45
  304. package/assets/prompts/components/checkbox.md +40 -17
  305. package/assets/prompts/components/chip.md +34 -34
  306. package/assets/prompts/components/code-block.md +109 -65
  307. package/assets/prompts/components/code.md +4 -4
  308. package/assets/prompts/components/color-area.md +9 -9
  309. package/assets/prompts/components/color-field.md +17 -13
  310. package/assets/prompts/components/color-picker.md +173 -0
  311. package/assets/prompts/components/color-slider.md +14 -14
  312. package/assets/prompts/components/color-swatch-picker.md +8 -8
  313. package/assets/prompts/components/color-swatch.md +9 -9
  314. package/assets/prompts/components/combobox.md +5 -2
  315. package/assets/prompts/components/command-palette.md +31 -30
  316. package/assets/prompts/components/comment.md +75 -0
  317. package/assets/prompts/components/context-menu.md +28 -25
  318. package/assets/prompts/components/control-group.md +4 -4
  319. package/assets/prompts/components/data-table.md +9 -0
  320. package/assets/prompts/components/date-picker.md +41 -23
  321. package/assets/prompts/components/disclosure.md +10 -10
  322. package/assets/prompts/components/drawer.md +29 -18
  323. package/assets/prompts/components/dropdown-menu.md +23 -21
  324. package/assets/prompts/components/emoji-picker.md +45 -0
  325. package/assets/prompts/components/empty-state.md +20 -18
  326. package/assets/prompts/components/event-chip.md +70 -28
  327. package/assets/prompts/components/event-list-item.md +32 -28
  328. package/assets/prompts/components/file-icon.md +18 -19
  329. package/assets/prompts/components/file-upload.md +1 -1
  330. package/assets/prompts/components/gallery-item.md +24 -23
  331. package/assets/prompts/components/generated-image.md +10 -10
  332. package/assets/prompts/components/hint.md +19 -19
  333. package/assets/prompts/components/icon-button.md +16 -16
  334. package/assets/prompts/components/icon.md +42 -17
  335. package/assets/prompts/components/input.md +49 -46
  336. package/assets/prompts/components/kanban.md +35 -35
  337. package/assets/prompts/components/list-item.md +50 -41
  338. package/assets/prompts/components/menu-item.md +49 -44
  339. package/assets/prompts/components/message-actions.md +15 -6
  340. package/assets/prompts/components/message-quote.md +7 -7
  341. package/assets/prompts/components/message-sources.md +10 -10
  342. package/assets/prompts/components/message-state.md +17 -17
  343. package/assets/prompts/components/message-table.md +5 -5
  344. package/assets/prompts/components/metric-card.md +57 -109
  345. package/assets/prompts/components/mini-calendar.md +77 -0
  346. package/assets/prompts/components/modal.md +40 -39
  347. package/assets/prompts/components/multi-select.md +4 -1
  348. package/assets/prompts/components/onboarding.md +23 -19
  349. package/assets/prompts/components/page-header.md +42 -33
  350. package/assets/prompts/components/pagination.md +17 -17
  351. package/assets/prompts/components/progress-bar.md +26 -13
  352. package/assets/prompts/components/quotation-bar.md +10 -10
  353. package/assets/prompts/components/radio-card.md +34 -117
  354. package/assets/prompts/components/radio.md +9 -9
  355. package/assets/prompts/components/segmented-chart.md +19 -5
  356. package/assets/prompts/components/select.md +29 -25
  357. package/assets/prompts/components/shortcut.md +11 -11
  358. package/assets/prompts/components/sidebar.md +67 -58
  359. package/assets/prompts/components/skeleton.md +47 -0
  360. package/assets/prompts/components/slider.md +18 -18
  361. package/assets/prompts/components/spinner.md +16 -16
  362. package/assets/prompts/components/stepper.md +29 -15
  363. package/assets/prompts/components/switch.md +30 -26
  364. package/assets/prompts/components/tab-strip.md +32 -31
  365. package/assets/prompts/components/table-cell.md +9 -7
  366. package/assets/prompts/components/table-header.md +16 -16
  367. package/assets/prompts/components/table-row-edit.md +19 -19
  368. package/assets/prompts/components/table-row-select.md +9 -9
  369. package/assets/prompts/components/table-row.md +29 -20
  370. package/assets/prompts/components/table-toolbar.md +9 -0
  371. package/assets/prompts/components/tabs.md +30 -27
  372. package/assets/prompts/components/tag.md +54 -0
  373. package/assets/prompts/components/textarea.md +16 -15
  374. package/assets/prompts/components/time-picker.md +22 -14
  375. package/assets/prompts/components/timeline-view.md +129 -0
  376. package/assets/prompts/components/toast.md +43 -42
  377. package/assets/prompts/components/toolbar.md +36 -23
  378. package/assets/prompts/components/tooltip.md +36 -17
  379. package/assets/prompts/components/top-loader.md +12 -12
  380. package/assets/prompts/components/topbar.md +43 -34
  381. package/assets/prompts/components/tree-nav.md +10 -10
  382. package/assets/prompts/components/user-message.md +23 -12
  383. package/assets/prompts/design-examples/README.md +1 -1
  384. package/assets/prompts/design-examples/ai-chat-full-page.png +0 -0
  385. package/assets/prompts/design-examples/catalog.json +124 -1
  386. package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.module.css +346 -0
  387. package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.tsx +375 -0
  388. package/assets/prompts/design-examples/sources/ai-chat-full-page/FullPageChat.tsx +8 -0
  389. package/assets/prompts/design-examples/sources/ai-chat-full-page/REFERENCE.md +19 -0
  390. package/assets/prompts/design-examples/sources/ai-chat-full-page/useChatDemo.ts +139 -0
  391. package/assets/prompts/design-examples/sources/ai-chat-full-page/useDemoTextStream.ts +30 -0
  392. package/assets/prompts/primitives/emerge.md +2 -0
  393. package/assets/prompts/templates/README.md +1 -1
  394. package/assets/prompts/templates/ains.md +9 -1
  395. package/assets/prompts/templates/aurora.md +5 -4
  396. package/assets/prompts/templates/minimal.md +14 -6
  397. package/assets/prompts/templates/onboarding.md +156 -0
  398. package/assets/prompts/templates/workspace.md +16 -11
  399. package/assets/prompts/tokens/color.md +11 -4
  400. package/assets/prompts/tokens/material.md +51 -0
  401. package/assets/prompts/tokens/radius.md +34 -0
  402. package/assets/prompts/tokens/typography.md +24 -2
  403. package/assets/prompts/use-cases/chart-chart-area.md +1334 -0
  404. package/assets/prompts/use-cases/chart-chart-bar.md +1886 -0
  405. package/assets/prompts/use-cases/chart-chart-pie.md +1031 -0
  406. package/assets/prompts/use-cases/chart-chart-radar.md +785 -0
  407. package/assets/prompts/use-cases/chart-chart-radial.md +988 -0
  408. package/assets/prompts/use-cases/chart-segmented-chart.md +262 -0
  409. package/assets/prompts/use-cases/chat-chat-composer.md +529 -0
  410. package/assets/prompts/use-cases/chat-chat-input.md +1766 -0
  411. package/assets/prompts/use-cases/data-comment.md +360 -0
  412. package/assets/prompts/use-cases/data-data-table.md +249 -0
  413. package/assets/prompts/use-cases/data-list-item.md +1056 -0
  414. package/assets/prompts/use-cases/data-metric-card.md +673 -0
  415. package/assets/prompts/use-cases/data-table-row.md +966 -0
  416. package/assets/prompts/use-cases/data-table-toolbar.md +481 -0
  417. package/assets/prompts/use-cases/feedback-drawer.md +1168 -0
  418. package/assets/prompts/use-cases/feedback-progress-bar.md +432 -0
  419. package/assets/prompts/use-cases/general-toolbar.md +854 -0
  420. package/assets/prompts/use-cases/general-tooltip.md +652 -0
  421. package/assets/prompts/use-cases/input-checkbox.md +443 -0
  422. package/assets/prompts/use-cases/structure-card.md +603 -0
  423. package/assets/prompts/use-cases/structure-page-header.md +755 -0
  424. package/assets/prompts/use-cases/structure-sidebar.md +1132 -0
  425. package/assets/prompts/use-cases/structure-topbar.md +1196 -0
  426. package/assets/public/ovenn-wordmark.svg +19 -0
  427. package/assets/skills/ovenn-wireframe/SKILL.md +17 -4
  428. package/package.json +10 -2
  429. package/src/commands/info.js +1 -1
  430. package/src/utils/design-examples.js +3 -4
  431. package/assets/prompts/templates/glass-button.md +0 -336
@@ -3,44 +3,44 @@
3
3
  ### 원칙
4
4
  워크플로우를 **상태(컬럼)와 아이템(카드)의 2차원 격자**로 보여주는 자리. 가로축은 진행 단계(todo·in-progress·review·done 등), 세로축은 각 단계 안의 큐. 3-레벨 compound로 분리되어 보드 폭·컬럼 뼈대·카드 내용이 각자 축을 가진다.
5
5
 
6
- - **Kanban (board)** — 가로 트랙. 컬럼 width·간격·스크롤 여부만 담당.
7
- - **Kanban.Column** — 한 상태의 세로 스택. chrome(배경 vs 테두리) × layout(한 블록 vs 두 블록) × accent(상태색 위치) × tone(6종)으로 조립.
8
- - **Kanban.Card** — 아이템 1장. slot(Cover/Header/Title/Description/Meta/Footer) 조합으로 자유롭게.
6
+ - **Kanban (board)**: 가로 트랙. 컬럼 width·간격·스크롤 여부만 담당.
7
+ - **Kanban.Column**: 한 상태의 세로 스택. chrome(배경 vs 테두리) × layout(한 블록 vs 두 블록) × accent(상태색 위치) × tone(6종)으로 조립.
8
+ - **Kanban.Card**: 아이템 1장. slot(Cover/Header/Title/Description/Meta/Footer) 조합으로 자유롭게.
9
9
 
10
- DnD는 **이 컴포넌트가 품지 않는다** — dnd-kit은 호출부가 바깥에서 감싸는 opt-in 패턴. 시각이 먼저, 상호작용은 선택.
10
+ DnD는 **이 컴포넌트가 품지 않는다**: dnd-kit은 호출부가 바깥에서 감싸는 opt-in 패턴. 시각이 먼저, 상호작용은 선택.
11
11
 
12
12
  ### Do
13
- - 컬럼은 **같은 chrome · 같은 layout으로 통일**한다. 한 보드 안에 line·filled·plain, wrap·stack을 섞지 않는다 — depth 혼란.
13
+ - 컬럼은 **같은 chrome · 같은 layout으로 통일**한다. 한 보드 안에 line·filled·plain, wrap·stack을 섞지 않는다: depth 혼란.
14
14
  - 상태 색은 `tone` + `accent="dot"`(헤더 title 앞 점) 또는 `chrome="filled"`(bg·fg가 tone 색계열로 동시 변함)로 공급. 컬럼 전체를 진한 bg로 칠하지 않는다 ([[PRINCIPLES]] §5b).
15
- - `layout="wrap"`(기본)은 header와 카드 스택이 **한 쉘 안에** — 컬럼 하나가 하나의 "그릇". 가장 흔한 칸반 모습.
15
+ - `layout="wrap"`(기본)은 header와 카드 스택이 **한 쉘 안에**: 컬럼 하나가 하나의 "그릇". 가장 흔한 칸반 모습.
16
16
  - `layout="stack"`은 **header만 chrome**을 가지고 그 아래 카드 스택은 chrome 없이 떨어져 쌓이는 "얹어진" 레이아웃. 카드가 그릇에 갇히지 않고 자유롭게 숨 쉬는 느낌. header에 action이 많거나 카드 영역을 더 넓게 쓰고 싶을 때.
17
17
  - 카드는 Column 안에 **자유 조합**: 가장 작은 카드는 `Title`만, 가장 큰 카드는 `Cover` + `Header` + `Title` + `Description` + `Meta` + `Footer` 전부.
18
- - 보드가 뷰포트보다 넓으면 `scroll` 기본 — 세로 wrap하지 않는다.
18
+ - 보드가 뷰포트보다 넓으면 `scroll` 기본: 세로 wrap하지 않는다.
19
19
  - Column의 count·action은 **헤더 우측**에 자동 배치됨. `action`은 ReactNode라 IconButton 여러 개(`+` · 설정 등)를 Fragment로 넘겨도 됨.
20
- - `layout="stack"`에선 **컬럼별로 chrome을 섞어 쓰기** 자연스러움 — 특정 컬럼만 filled로 강조하고 나머지는 line으로 조용히 두는 식. `layout="wrap"`에선 chrome 통일.
20
+ - `layout="stack"`에선 **컬럼별로 chrome을 섞어 쓰기** 자연스러움: 특정 컬럼만 filled로 강조하고 나머지는 line으로 조용히 두는 식. `layout="wrap"`에선 chrome 통일.
21
21
 
22
22
  ### Don't
23
- - [HARD] 카드 안에 다시 Card chrome(추가 border/shadow) 쌓지 않는다 — "컬럼 안 카드 안 카드"는 depth 깨짐.
23
+ - [HARD] 카드 안에 다시 Card chrome(추가 border/shadow) 쌓지 않는다: "컬럼 안 카드 안 카드"는 depth 깨짐.
24
24
  - 컬럼 chrome 기본형은 `line`(테두리만) · `filled`(배경만) · `plain`(둘 다 없음)이다. scoped skin에서 배경·테두리를 함께 쓰면 아주 미세한 표시 색 차이만 허용한다 ([[PRINCIPLES]] §5b).
25
- - [HARD] 컬럼 title을 UPPERCASE로 강제하지 않는다 — [[feedback_no_uppercase]].
26
- - [HARD] 상태 색을 **진한 bg로 칠하지 않는다** — tone 색은 chrome=filled일 때 subtle bg(약 8% opacity) + 같은 색 fg 조합으로만. 신호가 더 조용해야 하면 chrome=line/plain + accent="dot".
27
- - `layout="stack"`에서 body(카드 스택)에 chrome(배경·테두리)을 추가하지 않는다 — stack의 핵심은 "카드가 그릇에서 풀려남". chrome 축은 header에만 영향.
28
- - 보드 전체를 `<section>`으로 감싸지 않는다 — [[feedback_no_semantic_tags_in_components]].
25
+ - [HARD] 컬럼 title을 UPPERCASE로 강제하지 않는다: [[feedback_no_uppercase]].
26
+ - [HARD] 상태 색을 **진한 bg로 칠하지 않는다**: tone 색은 chrome=filled일 때 subtle bg(약 8% opacity) + 같은 색 fg 조합으로만. 신호가 더 조용해야 하면 chrome=line/plain + accent="dot".
27
+ - `layout="stack"`에서 body(카드 스택)에 chrome(배경·테두리)을 추가하지 않는다: stack의 핵심은 "카드가 그릇에서 풀려남". chrome 축은 header에만 영향.
28
+ - 보드 전체를 `<section>`으로 감싸지 않는다: [[feedback_no_semantic_tags_in_components]].
29
29
 
30
30
  ### Fallback
31
31
  - 애매하면 `chrome="line"` + `layout="wrap"` + `accent="none"`. 가장 조용한 조합.
32
- - 상태 신호를 강하게 주고 싶으면 `chrome="filled"` + `tone=…` (bg·fg 둘 다 그 색계열로).
32
+ - 상태 신호를 강하게 주고 싶으면 `chrome="filled"` + `tone="primary"` (bg·fg 둘 다 그 색계열로).
33
33
  - header에 action(검색·필터·추가 버튼 등)이 많아져 복잡해지면 `layout="stack"`로 분리.
34
34
 
35
35
  ### 관련
36
- - [[components/list-item]] — 세로 1열 리스트. 칸반 카드는 리스트 아이템을 그리드로 재구성한 것.
37
- - [[components/metric-card]] — 카드 chrome 규칙(그림자 금지, line 기본) 공유.
38
- - [[components/badge]] — 카드 Header의 상태·우선순위 라벨.
39
- - [[components/avatar]] — 카드 Footer의 담당자.
40
- - [[components/icon-button]] — 컬럼 action, 카드 메뉴.
41
- - [[tokens/color]] — `--bg` · `--bg-muted` · `--border` · `--primary` · `--success` · `--warning` · `--destructive` · `--info`.
42
- - [[PRINCIPLES]] §5b — 배경·경계의 미세한 표시 색 차이 기준.
43
- - [[feedback_no_hardcoded_values]] — columnWidth도 토큰/계산값 권장.
36
+ - [[components/list-item]]: 세로 1열 리스트. 칸반 카드는 리스트 아이템을 그리드로 재구성한 것.
37
+ - [[components/metric-card]]: 카드 chrome 규칙(그림자 금지, line 기본) 공유.
38
+ - [[components/badge]]: 카드 Header의 상태·우선순위 라벨.
39
+ - [[components/avatar]]: 카드 Footer의 담당자.
40
+ - [[components/icon-button]]: 컬럼 action, 카드 메뉴.
41
+ - [[tokens/color]]: `--bg` · `--bg-muted` · `--border` · `--primary` · `--success` · `--warning` · `--destructive` · `--info`.
42
+ - [[PRINCIPLES]] §5b: 배경·경계의 미세한 표시 색 차이 기준.
43
+ - [[feedback_no_hardcoded_values]]: columnWidth도 토큰/계산값 권장.
44
44
 
45
45
  ### Props 시그니처
46
46
  ```tsx
@@ -60,12 +60,12 @@ DnD는 **이 컴포넌트가 품지 않는다** — dnd-kit은 호출부가 바
60
60
  tone="neutral | primary | success | warning | danger | info"
61
61
  >
62
62
  <Kanban.Card href={string}>
63
- <Kanban.Card.Cover>…</Kanban.Card.Cover>
64
- <Kanban.Card.Header>…</Kanban.Card.Header>
65
- <Kanban.Card.Title>…</Kanban.Card.Title>
66
- <Kanban.Card.Description>…</Kanban.Card.Description>
67
- <Kanban.Card.Meta>…</Kanban.Card.Meta>
68
- <Kanban.Card.Footer>…</Kanban.Card.Footer>
63
+ <Kanban.Card.Cover>콘텐츠</Kanban.Card.Cover>
64
+ <Kanban.Card.Header>콘텐츠</Kanban.Card.Header>
65
+ <Kanban.Card.Title>콘텐츠</Kanban.Card.Title>
66
+ <Kanban.Card.Description>콘텐츠</Kanban.Card.Description>
67
+ <Kanban.Card.Meta>콘텐츠</Kanban.Card.Meta>
68
+ <Kanban.Card.Footer>콘텐츠</Kanban.Card.Footer>
69
69
  </Kanban.Card>
70
70
  </Kanban.Column>
71
71
  </Kanban>
@@ -92,7 +92,7 @@ DnD는 **이 컴포넌트가 품지 않는다** — dnd-kit은 호출부가 바
92
92
 
93
93
  ### 조합 예시
94
94
 
95
- **가장 작은 카드 — 제목만**
95
+ **가장 작은 카드: 제목만**
96
96
  ```tsx
97
97
  <Kanban>
98
98
  <Kanban.Column title="To Do" count={3}>
@@ -103,11 +103,11 @@ DnD는 **이 컴포넌트가 품지 않는다** — dnd-kit은 호출부가 바
103
103
  </Kanban>
104
104
  ```
105
105
 
106
- **표준 — 제목 + 메타 + 담당자**
106
+ **표준: 제목 + 메타 + 담당자**
107
107
  ```tsx
108
108
  <Kanban.Card href={`/tasks/${t.id}`}>
109
109
  <Kanban.Card.Header>
110
- <Badge variant="soft" status="warning">검토 필요</Badge>
110
+ <Tag variant="soft" status="warning">검토 필요</Tag>
111
111
  </Kanban.Card.Header>
112
112
  <Kanban.Card.Title>사이드바 리팩터 PR 리뷰</Kanban.Card.Title>
113
113
  <Kanban.Card.Meta>
@@ -120,7 +120,7 @@ DnD는 **이 컴포넌트가 품지 않는다** — dnd-kit은 호출부가 바
120
120
  </Kanban.Card>
121
121
  ```
122
122
 
123
- **얹어진 header — layout=stack + chrome=filled**
123
+ **얹어진 header: layout=stack + chrome=filled**
124
124
  ```tsx
125
125
  <Kanban>
126
126
  <Kanban.Column
@@ -131,12 +131,12 @@ DnD는 **이 컴포넌트가 품지 않는다** — dnd-kit은 호출부가 바
131
131
  layout="stack"
132
132
  tone="info"
133
133
  >
134
- {cards.map((c) => (…))}
134
+ {cards.map((c) => renderCard(c))}
135
135
  </Kanban.Column>
136
136
  </Kanban>
137
137
  ```
138
138
 
139
- **색 신호 — chrome=filled + tone 하나로**
139
+ **색 신호: chrome=filled + tone 하나로**
140
140
  ```tsx
141
141
  <Kanban>
142
142
  <Kanban.Column title="To Do" chrome="filled" tone="neutral" count={5} />
@@ -146,7 +146,7 @@ DnD는 **이 컴포넌트가 품지 않는다** — dnd-kit은 호출부가 바
146
146
  </Kanban>
147
147
  ```
148
148
 
149
- **DnD opt-in — dnd-kit로 바깥 감싸기**
149
+ **DnD opt-in: dnd-kit로 바깥 감싸기**
150
150
  ```tsx
151
151
  import { DndContext } from "@dnd-kit/core";
152
152
  import { SortableContext, useSortable } from "@dnd-kit/sortable";
@@ -3,19 +3,19 @@
3
3
  ### 원칙
4
4
  리스트에 반복되는 **한 줄 단위**의 범용 anatomy. 피드·알림·활동 로그·작업 리스트·자원 목록이 전부 이 형태다. GitHub Timeline · Linear Inbox · Jira Issue history · Notion Updates · Figma Comments 모두 같은 뼈대 위에 서식과 톤만 바뀐다.
5
5
 
6
- **3구역 뼈대**: `[leading] [content] [trailing]`. 가로축은 이 셋이 전부고 세 구역 전부 `ReactNode`라 **자유 조립**. content 안쪽은 자주 쓰는 조립을 위한 편의 서브컴포넌트(`Title · Description · Meta · MetaDivider`)가 세로 리듬을 자동 공급하지만 강제는 아님 — 아바타 그룹·프로그레스·커스텀 차트 등 아무거나 넣을 수 있다.
6
+ **3구역 뼈대**: `[leading] [content] [trailing]`. 가로축은 이 셋이 전부고 세 구역 전부 `ReactNode`라 **자유 조립**. content 안쪽은 자주 쓰는 조립을 위한 편의 서브컴포넌트(`Title · Description · Meta · MetaDivider`)가 세로 리듬을 자동 공급하지만 강제는 아님: 아바타 그룹·프로그레스·커스텀 차트 등 아무거나 넣을 수 있다.
7
7
 
8
- **일정·이벤트처럼 날짜가 leading 아이덴티티인 자리는 [[components/event-list-item]] 사용** — ListItem은 범용 한 줄, EventListItem은 시간축 중심 전용.
8
+ **일정·이벤트처럼 날짜가 leading 아이덴티티인 자리는 [[components/event-list-item]] 사용**: ListItem은 범용 한 줄, EventListItem은 시간축 중심 전용.
9
9
 
10
- **기본 표면 chrome 없음** — idle 상태의 카드 배경·테두리를 공급하지 않는다. hover·selected·active·focus는 행 전체의 상태로 표시한다. ListItem은 "리스트에 녹는 한 줄"이지, 블록이 아니다. 배경·테두리로 상태를 신호해야 하는 블록이 필요하면 [[components/callout]]로 승격한다.
10
+ **기본 표면 chrome 없음**: idle 상태의 카드 배경·테두리를 공급하지 않는다. hover·selected·active·focus는 행 전체의 상태로 표시한다. ListItem은 "리스트에 녹는 한 줄"이지, 블록이 아니다. 배경·테두리로 상태를 신호해야 하는 블록이 필요하면 [[components/callout]]로 승격한다.
11
11
 
12
- ### Title anatomy — inline 문장이 기본
12
+ ### Title anatomy: inline 문장이 기본
13
13
 
14
14
  `ListItem.Title`은 **inline 문장 흐름**이다. "actor <strong>name</strong> verb <strong>target</strong>" 같은 피드 라인이 자연스럽게 흘러야 하므로:
15
15
 
16
16
  - `display: block` + 안쪽은 **순수 inline flow**. flex gap 없음.
17
- - 기본 font-weight는 **regular** — 소비처가 `<strong>` 또는 `<b>`로 **medium 강조**(14.5px은 medium이 상한, [[tokens/typography]] weight cap).
18
- - `<strong>` / `<b>`는 Title 안에서 자동으로 `font-weight-medium`을 받는다 — 소비처가 `style={{ fontWeight: 500 }}` 수동 지정 금지.
17
+ - 기본 font-weight는 **regular**: 소비처가 `<strong>` 또는 `<b>`로 **medium 강조**(14.5px은 medium이 상한, [[tokens/typography]] weight cap).
18
+ - `<strong>` / `<b>`는 Title 안에서 자동으로 `font-weight-medium`을 받는다: 소비처가 `style={{ fontWeight: 500 }}` 수동 지정 금지.
19
19
 
20
20
  **[HARD] Badge/Chip은 Title 안에 중첩 금지.** flex gap을 Title에 깔면 **문장 자식 사이 공백이 중복(gap + " ")** 되고 Title의 font-weight가 안쪽 `<strong>`을 묻어 **강조가 안 보임**. 실제 사고 사례(활동 피드에서 발생).
21
21
 
@@ -24,7 +24,7 @@ Title 바깥에 "제목 + Badge" 가로 묶음이 필요하면 소비처가 조
24
24
  ```tsx
25
25
  <div style={{ display: "flex", alignItems: "center", gap: "var(--space-2)" }}>
26
26
  <ListItem.Title>Onboarding NPS Q4</ListItem.Title>
27
- <Badge variant="soft" status="success">Live</Badge>
27
+ <Tag variant="soft" status="success">Live</Tag>
28
28
  </div>
29
29
  ```
30
30
 
@@ -34,7 +34,7 @@ Title 바깥에 "제목 + Badge" 가로 묶음이 필요하면 소비처가 조
34
34
 
35
35
  ---
36
36
 
37
- ## 결정 가이드 — 뭘 만들려는 거지?
37
+ ## 결정 가이드: 뭘 만들려는 거지?
38
38
 
39
39
  ### 1. 자원·문서 목록 (내가 열어볼 것들)
40
40
  문서·프로젝트·설정 항목처럼 **"열람 가능한 것들"의 목록**. 액션보다 네비게이션이 주.
@@ -51,7 +51,7 @@ Title 바깥에 "제목 + Badge" 가로 묶음이 필요하면 소비처가 조
51
51
  ```
52
52
 
53
53
  - **leading**: `ListItemLeadingIcon`(배경색 아이콘) → 자원의 "타입 아이덴티티"
54
- - **content**: `Title` + `Meta`(생성/수정 날짜). Description은 생략 — 자원의 "본문 요약"이 필요한 자리면 그건 ListItem이 아니라 Card
54
+ - **content**: `Title` + `Meta`(생성/수정 날짜). Description은 생략: 자원의 "본문 요약"이 필요한 자리면 그건 ListItem이 아니라 Card
55
55
  - **trailing**: `caret-right` → "클릭하면 열림" 신호
56
56
  - **size**: `md`, **align**: `center`
57
57
 
@@ -64,7 +64,7 @@ Title 바깥에 "제목 + Badge" 가로 묶음이 필요하면 소비처가 조
64
64
  leading={<Icon name="list-dashes" />}
65
65
  trailing={
66
66
  <>
67
- <Badge variant="soft" status="warning">검토 필요</Badge>
67
+ <Tag variant="soft" status="warning">검토 필요</Tag>
68
68
  <IconButton size="sm" variant="ghost" icon={<Icon name="caret-right" />} aria-label="열기" />
69
69
  </>
70
70
  }
@@ -75,7 +75,7 @@ Title 바깥에 "제목 + Badge" 가로 묶음이 필요하면 소비처가 조
75
75
  ```
76
76
 
77
77
  - **leading**: raw `<Icon>` → 체크리스트·태스크의 "종류"만 가볍게
78
- - **content**: `Title` + `Meta`(요청 시각·요청자). Description은 선택 — 제목이 짧으면 추가
78
+ - **content**: `Title` + `Meta`(요청 시각·요청자). Description은 선택: 제목이 짧으면 추가
79
79
  - **trailing**: 상태 `Badge` + chevron. Badge가 "지금 상태"를 shout, chevron이 "열어서 처리하라"
80
80
  - **size**: `md`, **align**: `top`
81
81
 
@@ -84,7 +84,7 @@ Title 바깥에 "제목 + Badge" 가로 묶음이 필요하면 소비처가 조
84
84
 
85
85
  ```tsx
86
86
  <ListItem align="top" size="sm" leading={<Avatar size="sm" name="박지훈" />}>
87
- <ListItem.Title>박지훈 — ERP 2.0 사이드바 티켓에 코멘트</ListItem.Title>
87
+ <ListItem.Title>박지훈: ERP 2.0 사이드바 티켓에 코멘트</ListItem.Title>
88
88
  <ListItem.Meta><time>12분 전</time></ListItem.Meta>
89
89
  </ListItem>
90
90
  ```
@@ -150,7 +150,7 @@ Title 바깥에 "제목 + Badge" 가로 묶음이 필요하면 소비처가 조
150
150
 
151
151
  ### Do
152
152
  - **anatomy는 3구역 고정**: leading / children(content) / trailing.
153
- - **세 구역은 전부 ReactNode — 완전 자유**: 전용 서브컴포넌트는 리듬 토큰을 자동 공급하는 **편의 레이어**지 강제가 아님.
153
+ - **세 구역은 전부 ReactNode: 완전 자유**: 전용 서브컴포넌트는 리듬 토큰을 자동 공급하는 **편의 레이어**지 강제가 아님.
154
154
  - **leading 타입은 리스트 단위로 통일**: 자원 리스트는 전부 IconMark, 피드는 전부 Avatar 식.
155
155
  - **2줄 이상 본문이면 `align="top"`**: leading이 Title 라인에 top-align.
156
156
  - **스트림 자리는 `size="sm"`**: 활동 로그·알림 스트림은 조밀하게.
@@ -167,15 +167,15 @@ Title 바깥에 "제목 + Badge" 가로 묶음이 필요하면 소비처가 조
167
167
  - **leading에 inline `<svg>` 금지**: 반드시 `<Icon />`/Badge/Avatar 경유. [[feedback_no_inline_svg]].
168
168
  - **한 리스트 안 size 혼용 금지**: sm 리스트는 전부 sm.
169
169
  - **자리마다 세로 간격 손 조정 금지**: 균형 안 맞으면 `size` 또는 리듬 토큰(`--li-gap-title`·`--li-gap-body`)으로.
170
- - **[HARD] `border-bottom` 있는 li 에 세로 padding 생략 금지** ([[feedback_no_touching_edges]]) — 콘텐츠가 선에 붙으면 무조건 문제. 최소 `--space-3` 유지. border + padding 을 다른 레이어가 공급해도 결과적으로 접촉 금지는 소비처가 책임.
170
+ - **[HARD] `border-bottom` 있는 li 에 세로 padding 생략 금지** ([[feedback_no_touching_edges]]): 콘텐츠가 선에 붙으면 무조건 문제. 최소 `--space-3` 유지. border + padding 을 다른 레이어가 공급해도 결과적으로 접촉 금지는 소비처가 책임.
171
171
 
172
172
  ### Fallback
173
173
  leading 애매하면 Icon. size 애매하면 md. align 애매하면 center(한 줄)·top(2줄 이상).
174
174
 
175
175
  ### 관련
176
- - [[components/event-list-item]] — 날짜가 leading identity인 이벤트 전용 목록
177
- - [[components/table]] — 숫자 비교·정렬·집계가 중심인 목록
178
- - [[components/callout]] — 배경 톤으로 상태를 강조해야 하는 블록
176
+ - [[components/event-list-item]]: 날짜가 leading identity인 이벤트 전용 목록
177
+ - [[components/table]]: 숫자 비교·정렬·집계가 중심인 목록
178
+ - [[components/callout]]: 배경 톤으로 상태를 강조해야 하는 블록
179
179
 
180
180
  ## 축 (CSS 변수)
181
181
 
@@ -198,14 +198,14 @@ leading 애매하면 Icon. size 애매하면 md. align 애매하면 center(한
198
198
  height: calc(var(--text-xs) * 0.8); /* Meta 텍스트 높이 대비 약간 짧게 */
199
199
  background: var(--fg);
200
200
  opacity: 0.2; /* hairline 톤 */
201
- margin-inline: var(--space-1); /* 좌우 작게 — Meta 토큰 간격은 --li-gap-meta 가 담당 */
201
+ margin-inline: var(--space-1); /* 좌우 작게: Meta 토큰 간격은 --li-gap-meta 가 담당 */
202
202
  vertical-align: baseline;
203
203
  }
204
204
  ```
205
205
 
206
206
  핵심 원칙:
207
- - 색은 `--fg` × 낮은 알파 (fg 톤 유지, bg 와 섞이지 않음) — 다크/라이트 모드 전환 자동 반응.
208
- - 높이는 Meta 폰트 크기(`--text-xs`) 기준 상대값 — Density 축 스왑에 자동 반응.
207
+ - 색은 `--fg` × 낮은 알파 (fg 톤 유지, bg 와 섞이지 않음): 다크/라이트 모드 전환 자동 반응.
208
+ - 높이는 Meta 폰트 크기(`--text-xs`) 기준 상대값: Density 축 스왑에 자동 반응.
209
209
  - 좌우 margin 은 `--space-1` 로 고정, Meta 토큰 간 가로 gap 은 상위 Meta wrapper 의 `gap` (`--li-gap-meta`)이 담당.
210
210
 
211
211
  ## Props 시그니처
@@ -233,7 +233,7 @@ leading 애매하면 Icon. size 애매하면 md. align 애매하면 center(한
233
233
 
234
234
  ```
235
235
 
236
- ## 조립 — 부모 wrapper
236
+ ## 조립: 부모 wrapper
237
237
  리스트로 묶을 때는 부모 ul에 hairline border만 공급.
238
238
 
239
239
  ```css
@@ -254,31 +254,31 @@ leading 애매하면 Icon. size 애매하면 md. align 애매하면 center(한
254
254
 
255
255
  [[SLOTS]] 참고.
256
256
 
257
- - `list-item-root` — `<div>` 컨테이너. href/onClick의 네이티브 링크/버튼은 내부 주 행동 진입점
258
- - `list-item-leading` — 아바타·아이콘 슬롯
259
- - `list-item-content` — Title/Description/Meta 담는 중앙 영역
260
- - `list-item-title` — Title 서브컴포넌트
261
- - `list-item-description` — Description 서브컴포넌트
262
- - `list-item-meta` — Meta 라인 (MetaDivider는 inline으로 안 표시)
263
- - `list-item-trailing` — Badge/Button/IconButton 등 trailing 슬롯
257
+ - `list-item-root`: `<div>` 컨테이너. href/onClick의 네이티브 링크/버튼은 내부 주 행동 진입점
258
+ - `list-item-leading`: 아바타·아이콘 슬롯
259
+ - `list-item-content`: Title/Description/Meta 담는 중앙 영역
260
+ - `list-item-title`: Title 서브컴포넌트
261
+ - `list-item-description`: Description 서브컴포넌트
262
+ - `list-item-meta`: Meta 라인 (MetaDivider는 inline으로 안 표시)
263
+ - `list-item-trailing`: Badge/Button/IconButton 등 trailing 슬롯
264
264
 
265
265
  ## state attributes
266
266
 
267
- - `data-size` — `sm|md` 중 하나
267
+ - `data-size`: `sm|md` 중 하나
268
268
 
269
269
  ## 관련
270
- - [[components/avatar]] — leading의 "사람" 자리.
271
- - [[components/badge]] — Title 앞 inline 상태, leading 상태, trailing 상태 전부.
272
- - [[components/button]] — trailing CTA.
273
- - [[components/icon-button]] — trailing chevron/dots.
274
- - [[components/callout]] — 배경·테두리로 상태 신호가 필요한 블록은 Callout.
275
- - [[components/event-list-item]] — 날짜가 leading 아이덴티티인 일정·이벤트 리스트는 EventListItem.
276
- - [[components/table]] — 숫자 비교·정렬이 핵심이면 Table.
277
- - [[components/metric-card]] — chrome 없이 부모가 분리 담당하는 설계 철학 공유.
278
- - [[axes/density]] — 전역 Density 축은 테마 레벨, ListItem의 size는 리스트 자리별 조절.
279
- - [[feedback_no_bullet_separator]] — Meta 라인 구분자는 MetaDivider.
280
- - [[feedback_no_inline_svg]] — leading 아이콘은 Icon 컴포넌트.
281
- - [[feedback_date_writing]] — Meta 안 날짜는 "10월 13일" / "12분 전" 형식.
270
+ - [[components/avatar]]: leading의 "사람" 자리.
271
+ - [[components/badge]]: Title 앞 inline 상태, leading 상태, trailing 상태 전부.
272
+ - [[components/button]]: trailing CTA.
273
+ - [[components/icon-button]]: trailing chevron/dots.
274
+ - [[components/callout]]: 배경·테두리로 상태 신호가 필요한 블록은 Callout.
275
+ - [[components/event-list-item]]: 날짜가 leading 아이덴티티인 일정·이벤트 리스트는 EventListItem.
276
+ - [[components/table]]: 숫자 비교·정렬이 핵심이면 Table.
277
+ - [[components/metric-card]]: chrome 없이 부모가 분리 담당하는 설계 철학 공유.
278
+ - [[axes/density]]: 전역 Density 축은 테마 레벨, ListItem의 size는 리스트 자리별 조절.
279
+ - [[feedback_no_bullet_separator]]: Meta 라인 구분자는 MetaDivider.
280
+ - [[feedback_no_inline_svg]]: leading 아이콘은 Icon 컴포넌트.
281
+ - [[feedback_date_writing]]: Meta 안 날짜는 "10월 13일" / "12분 전" 형식.
282
282
 
283
283
 
284
284
  ## Do: 행 상호작용 계약과 작동하는 예시
@@ -323,3 +323,12 @@ leading 애매하면 Icon. size 애매하면 md. align 애매하면 center(한
323
323
  ```json
324
324
  {"roles":["repeated-row"],"native":[],"hints":["taskList","taskRow","taskItem","activityList"],"requires":[]}
325
325
  ```
326
+
327
+ <!-- generated-use-cases:start -->
328
+ ### 사용 사례 연결
329
+
330
+ - Notification inbox · Document library · Activity log (문서 미장착 소스)
331
+ - 문서: /en/components/data/list-item#use-cases
332
+ - 참조 원본: [List Item 사례](../use-cases/data-list-item.md)
333
+ - AI 조회: `get_guide(topic="use-cases/data-list-item", sections=["사례 목록", "파일 목록"])` 후 필요한 `Section:` / `Source:` 헤딩을 선택한다.
334
+ <!-- generated-use-cases:end -->
@@ -3,35 +3,39 @@
3
3
  ### 원칙
4
4
  메뉴/리스트 안 개별 행의 최소 단위. Dropdown Menu · Context Menu · Sidebar · Command Palette · 일반 List가 공유. 시각·상태만 담당, 열림/닫힘·포커스 트랩·화살표 네비는 상위 컨테이너(Radix / Sidebar `<nav>`) 책임.
5
5
 
6
- root는 `<div role="menuitem">` — leading/trailing에 `IconButton` 같은 인터랙션 요소를 자유롭게 넣기 위해 nested `<button>` 금지를 피함. Enter/Space 키 처리는 컴포넌트가 직접.
6
+ root는 `<div role="menuitem">`: leading/trailing에 `IconButton` 같은 인터랙션 요소를 자유롭게 넣기 위해 nested `<button>` 금지를 피함. Enter/Space 키 처리는 컴포넌트가 직접.
7
7
 
8
8
  ### Do
9
+ - 일반 행과 섹션 라벨은 size에 맞는 label 줄 높이를 사용하며, 가로 말줄임 영역에서도 g·p·y 하단을 보존한다.
10
+ - 섹션 라벨은 크기에 맞는 줄 높이(sm: `--lh-xs`, md: `--label-sm-line-height`)를 사용한다. 말줄임용 `overflow: hidden` 안에서 g·p·y 등 글자 하단이 잘리지 않게 하며, 바깥 margin만 늘려 문제를 가리지 않는다.
9
11
  - Section은 분류 제목에, 일반 MenuItem은 프로젝트·폴더 같은 개별 탐색 대상에 사용한다. 즐겨찾기 별처럼 독립 행동이 있으면 IconButton을 슬롯에 넣고 항목 이동과 이벤트를 분리한다. 링크 안에 버튼을 중첩하지 않는다.
10
12
  - 섹션 제목 아래와 첫 항목 사이는 **2~4px**을 남긴다(기본 4px). 공통 `--menu-section-gap`이 담당하며, wrapper의 gap과 제목의 margin을 중복 적용하지 않는다. Density가 바뀌어도 이 범위를 유지한다.
11
13
  - **슬롯은 배열**: `leadingActions` / `trailingActions`에 Icon·IconButton·Badge·카운트 등 뭐든. 슬롯 내부 gap `--space-1.5`.
12
- - **hover-only 액션**: `{ node, hoverOnly: true }` — 평상시 숨김, hover/focus/focus-within에서 노출. Notion·Linear·VSCode·Slack 표준.
13
- - **메타 + hover 공존**: `trailingActions={[unreadCount, { node, hoverOnly: true }]}` — Slack 채널 언리드 + hover ⋯.
14
- - **내부 액션 클릭은 `e.stopPropagation()`** — 안 하면 root `onClick`도 발화.
14
+ - **hover-only 액션**: `{ node, hoverOnly: true }`: 평상시 숨김, hover/focus/focus-within에서 노출. Notion·Linear·VSCode·Slack 표준.
15
+ - **메타 + hover 공존**: `trailingActions={[unreadCount, { node, hoverOnly: true }]}`: Slack 채널 언리드 + hover ⋯.
16
+ - **내부 액션 클릭은 `e.stopPropagation()`**: 안 하면 root `onClick`도 발화.
15
17
  - **`checked=true`** → leading 맨 앞에 자동 checkmark. 기존 leading 아이콘과 공존 가능.
16
- - **한 메뉴 안 leading 유무 통일** — 혼재하면 라벨 시작점 어긋남.
18
+ - **한 메뉴 안 leading 유무 통일**: 혼재하면 라벨 시작점 어긋남.
17
19
  - **단축키는 실제 심볼** (`⌘K`, `⇧⌘P`). `CTRL+K` 금지 ([[feedback_no_uppercase]]).
18
- - **destructive variant** — 평상시 fg, hover/focus에서만 빨강. "약한" 위험 위계. 최종 확인은 [[components/alert-dialog]].
19
- - **섹션 묶음은 `MenuItem.Section` 사용** — 헤더(`variant="section"`) + 아래 아이템 열을 자동으로 `<div class="sectionGroup">` wrapper에 묶는다. wrapper 안쪽은 `gap: --space-1`(그룹 안), 그룹 사이 간격은 **부모 flex 컨테이너의 gap**이 담당(권장 `--space-3`). 비율 3:1로 "같은 그룹 안 < 다른 그룹 사이"가 Gestalt proximity로 성립.
20
+ - **destructive variant**: 평상시 fg, hover/focus에서만 빨강. "약한" 위험 위계. 최종 확인은 [[components/alert-dialog]].
21
+ - **섹션 묶음은 `MenuItem.Section` 사용**: 헤더(`variant="section"`) + 아래 아이템 열을 자동으로 `<div class="sectionGroup">` wrapper에 묶는다. wrapper 안쪽은 `gap: --space-1`(그룹 안), 그룹 사이 간격은 **부모 flex 컨테이너의 gap**이 담당(권장 `--space-3`). 비율 3:1로 "같은 그룹 안 < 다른 그룹 사이"가 Gestalt proximity로 성립.
20
22
 
21
23
  ### Size 컨텍스트
24
+ - 크기 이름은 `sm | md`이며 기본은 항상 `md`다. 기존 md는 sm, 기존 lg는 md로 이름만 변경하며 명시된 크기의 치수·아이콘·Avatar·Shortcut은 유지한다.
25
+ - ContextMenu에는 `sm`을 권장한다. 권장값과 컴포넌트 기본값 md는 구분한다.
22
26
  - **`sm` 허용**: Dropdown Menu · Context Menu · Command Palette (오버레이 크기 제약).
23
- - **`md` 고정 (기본)**: Sidebar · List · Settings · Modal 안 메뉴 · Topbar 메뉴 · 터치/모바일 시트. 밀도 부족하면 Density 축으로 조정, `lg` 금지.
27
+ - **`md` 고정 (기본)**: Sidebar · List · Settings · Modal 안 메뉴 · Topbar 메뉴 · 터치/모바일 시트. 밀도는 Density 축으로 조정한다.
24
28
 
25
- ### avatar · description · align — 2줄 identity row
29
+ ### avatar · description · align: 2줄 identity row
26
30
  MenuItem은 `avatar` + `description` + `align` 조합으로 2줄 identity row 어휘를 지원. **아래 세 자리에서만** 사용:
27
31
 
28
32
  - **Sidebar.Profile** (사이드바 footer): avatar + 닉네임 + sub + trailing `gear`. 가장 전형.
29
33
  - **스위처 리스트** (DropdownMenu 안 user/workspace/project 선택): avatar + 이름 + sub + 현재 선택엔 `check` trailing.
30
34
  - **파일/프로젝트 리스트**: `avatar={{ shape: "rounded", icon: <Icon name="file-text" /> }}` + 파일명 + sub(수정일·공동 편집자).
31
35
 
32
- **sub(=description)**: 이메일 **또는** @id 중 하나(동등 허용, 플랫폼 톤에 맞춰 고정, 중복 금지). 역할·위치 메타(`admin · 서울`)도 OK — bullet 금지 룰은 meta 토큰 사이 한정, identity sub는 자연 문구.
36
+ **sub(=description)**: 이메일 **또는** @id 중 하나(동등 허용, 플랫폼 톤에 맞춰 고정, 중복 금지). 역할·위치 메타(`admin · 서울`)도 OK: bullet 금지 룰은 meta 토큰 사이 한정, identity sub는 자연 문구.
33
37
 
34
- **`align="center"`**: 2줄 identity row 전용. 일반 2줄 메뉴("알림 / 이메일·푸시 설정")는 `align="start"`(기본) — 아이콘이 title 라인에 붙어야 자연스러움.
38
+ **`align="center"`**: 2줄 identity row 전용. 일반 2줄 메뉴("알림 / 이메일·푸시 설정")는 `align="start"`(기본): 아이콘이 title 라인에 붙어야 자연스러움.
35
39
 
36
40
  **1줄 모드 Avatar 자동 축소**: 아이콘 라인 사이즈로 자동 매핑(sm→xs, md→sm). 수동 override 금지.
37
41
 
@@ -44,26 +48,27 @@ MenuItem은 `avatar` + `description` + `align` 조합으로 2줄 identity row
44
48
 
45
49
  ### Don't
46
50
  - 선택 표시용 액티브바를 기본 장식으로 붙이지 않는다. 특히 radius가 있는 행에 border·inset shadow로 붙여 바가 `(` 모양으로 휘는 구현은 금지한다([[PRINCIPLES]] §5c).
47
- - 두 개 이상의 "주된 액션" 금지 — 아이템 전체가 하나의 selection. 부가 액션만 slot에.
48
- - 라벨 2줄 이상 금지 (단, `description`은 OK — 아래 identity row 룰 안에서).
49
- - 페이지 이동에 root click 금지 — `asChild`로 `<Link>` 위임. **`asChild`일 땐 `.label` 래퍼 미적용** — 자식이 라벨 역할. 긴 라벨이면 `<Link>` 쪽에 truncate 또는 짧게 유지.
51
+ - 두 개 이상의 "주된 액션" 금지: 아이템 전체가 하나의 selection. 부가 액션만 slot에.
52
+ - 라벨 2줄 이상 금지 (단, `description`은 OK: 아래 identity row 룰 안에서).
53
+ - 페이지 이동에 root click 금지: `asChild`로 `<Link>` 위임. **`asChild`일 땐 `.label` 래퍼 미적용**: 자식이 라벨 역할. 긴 라벨이면 `<Link>` 쪽에 truncate 또는 짧게 유지.
54
+ - `md` 라벨의 book(450) 굵기는 루트에서 상속하여 일반 라벨과 `asChild` 링크·버튼에 동일하게 적용한다. 소비자 라벨이 별도 굵기를 지정하지 않으면 TreeNav에서도 같은 굵기를 유지한다.
50
55
  - height CSS override 금지. `size` prop 경유 (Density 축이 스왑).
51
- - hover-only를 opacity만으로 숨기지 않기 — `opacity: 0` + `pointer-events: none` 짝. 안 그러면 안 보이는 버튼 클릭됨.
52
- - **1줄 짧은 메뉴에 `avatar` 금지** — "복사하기 / 붙여넣기" 액션 라인엔 Icon만. Avatar는 "식별 가능한 대상(사람·조직·파일)" 전용.
53
- - **description 없이 `align="center"` 금지** — 1줄에선 의미 없음.
54
- - **Sidebar에 `sm` 금지** — md 고정. 밀도 부족하면 Density 축.
55
- - **Sidebar.Profile 외 자리에 "avatar + sub + gear" 조합 복제 금지** — "현재 로그인 identity의 설정 입구" 어휘라 다른 자리에서 혼란.
56
- - **섹션 헤더 + 아이템을 flat하게 나열 금지** — `<MenuItem variant="section">` + `<MenuItem>`들을 Fragment로 그냥 뱉지 말 것. 반드시 `MenuItem.Section`으로 묶어 wrapper 안에 넣는다. flat 조립은 "섹션 안 간격 vs 섹션 간 간격" 책임이 헤더 margin 하나에만 걸려 리듬이 쉽게 깨짐.
56
+ - hover-only를 opacity만으로 숨기지 않기: `opacity: 0` + `pointer-events: none` 짝. 안 그러면 안 보이는 버튼 클릭됨.
57
+ - **1줄 짧은 메뉴에 `avatar` 금지**: "복사하기 / 붙여넣기" 액션 라인엔 Icon만. Avatar는 "식별 가능한 대상(사람·조직·파일)" 전용.
58
+ - **description 없이 `align="center"` 금지**: 1줄에선 의미 없음.
59
+ - **Sidebar에 `sm` 금지**: md 고정. 밀도 부족하면 Density 축.
60
+ - **Sidebar.Profile 외 자리에 "avatar + sub + gear" 조합 복제 금지**: "현재 로그인 identity의 설정 입구" 어휘라 다른 자리에서 혼란.
61
+ - **섹션 헤더 + 아이템을 flat하게 나열 금지**: `<MenuItem variant="section">` + `<MenuItem>`들을 Fragment로 그냥 뱉지 말 것. 반드시 `MenuItem.Section`으로 묶어 wrapper 안에 넣는다. flat 조립은 "섹션 안 간격 vs 섹션 간 간격" 책임이 헤더 margin 하나에만 걸려 리듬이 쉽게 깨짐.
57
62
 
58
63
  ### Fallback
59
64
  size `md`, variant `default`.
60
65
 
61
66
  ### 관련
62
- - [[components/button]] · [[components/icon-button]] — slot 자주 들어감
63
- - [[components/dropdown-menu]] · [[components/context-menu]] — 상위 컨테이너
64
- - [[components/sidebar]] · [[components/command-palette]] — 다른 컨텍스트 사용처
65
- - [[axes/density]] — `--control-h-*` 매핑
66
- - [[tokens/color]] — `--hover`/`--bg-muted`/`--destructive`
67
+ - [[components/button]] · [[components/icon-button]]: slot 자주 들어감
68
+ - [[components/dropdown-menu]] · [[components/context-menu]]: 상위 컨테이너
69
+ - [[components/sidebar]] · [[components/command-palette]]: 다른 컨텍스트 사용처
70
+ - [[axes/density]]: `--control-h-*` 매핑
71
+ - [[tokens/color]]: `--hover`/`--bg-muted`/`--destructive`
67
72
 
68
73
  ### Props 시그니처
69
74
  ```tsx
@@ -93,7 +98,7 @@ type MenuItemAction =
93
98
  ```
94
99
 
95
100
  ### 색상 훅 (컨테이너 단위 톤 조절)
96
- MenuItem은 세 개 CSS 변수로 색을 열어둠. **부모 컨테이너에 얹으면 안쪽 모든 MenuItem 일괄 반응** — variant 늘리지 말고 이 훅 사용이 원칙.
101
+ MenuItem은 세 개 CSS 변수로 색을 열어둠. **부모 컨테이너에 얹으면 안쪽 모든 MenuItem 일괄 반응**: variant 늘리지 말고 이 훅 사용이 원칙.
97
102
 
98
103
  | 훅 | 대상 | 폴백 |
99
104
  |---|---|---|
@@ -112,8 +117,8 @@ MenuItem은 세 개 CSS 변수로 색을 열어둠. **부모 컨테이너에 얹
112
117
 
113
118
  - 훅은 **컨테이너 단위**로. 아이템마다 다른 톤이면 리듬 깨짐.
114
119
  - 시맨틱 토큰만 (primary·secondary·destructive). hex/oklch 금지.
115
- - 훅으로 hover/focus 색 바꾸지 않기 — `--hover`로 별도 관리, 통일 유지.
116
- - disabled/destructive 색은 훅 미공개 — 접근성·위계 규칙상 컴포넌트가 통제.
120
+ - 훅으로 hover/focus 색 바꾸지 않기: `--hover`로 별도 관리, 통일 유지.
121
+ - disabled/destructive 색은 훅 미공개: 접근성·위계 규칙상 컴포넌트가 통제.
117
122
 
118
123
  ### 상태 매트릭스
119
124
  | 상태 | 시각 |
@@ -131,12 +136,12 @@ MenuItem은 세 개 CSS 변수로 색을 열어둠. **부모 컨테이너에 얹
131
136
  ### Size 표
132
137
  | size | height | icon | 자리 |
133
138
  |---|---|---|---|
134
- | `sm` | 32 | 14 | Dropdown · Context · Command Palette |
139
+ | `sm` | 34 | 14 | Dropdown · Context · Command Palette |
135
140
  | `md` (기본) | 36 | 16 | Sidebar · List · Settings · Modal 안 메뉴 |
136
141
 
137
142
  ### 조합 예시
138
143
  ```tsx
139
- // 가장 단순 — 아이콘 + 라벨 + 단축키
144
+ // 가장 단순: 아이콘 + 라벨 + 단축키
140
145
  <MenuItem leadingActions={[<Icon name="user" />]} shortcut="⌘,">
141
146
  계정 설정
142
147
  </MenuItem>
@@ -146,12 +151,12 @@ MenuItem은 세 개 CSS 변수로 색을 열어둠. **부모 컨테이너에 얹
146
151
  즐겨찾기로 이동
147
152
  </MenuItem>
148
153
 
149
- // 체크박스 메뉴 — **기본은 checked prop** (✓ 자동). 메뉴 안 "현재 선택됨" 표시엔 이쪽.
154
+ // 체크박스 메뉴: **기본은 checked prop** (✓ 자동). 메뉴 안 "현재 선택됨" 표시엔 이쪽.
150
155
  <DropdownMenu.CheckboxItem asChild checked={showGrid} onCheckedChange={setShowGrid}>
151
156
  <MenuItem checked={showGrid} shortcut="⌘G">그리드 표시</MenuItem>
152
157
  </DropdownMenu.CheckboxItem>
153
158
 
154
- // 비권장 — Checkbox 컴포넌트를 leading에 직접. 폼 느낌이 꼭 필요할 때만.
159
+ // 비권장: Checkbox 컴포넌트를 leading에 직접. 폼 느낌이 꼭 필요할 때만.
155
160
  <DropdownMenu.CheckboxItem asChild checked={showGrid} onCheckedChange={setShowGrid}>
156
161
  <MenuItem
157
162
  leadingActions={[<Checkbox size="sm" checked={showGrid} readOnly tabIndex={-1} className="menu-form-marker" />]}
@@ -159,7 +164,7 @@ MenuItem은 세 개 CSS 변수로 색을 열어둠. **부모 컨테이너에 얹
159
164
  >그리드 표시</MenuItem>
160
165
  </DropdownMenu.CheckboxItem>
161
166
 
162
- // 비권장 — Radio를 leading에 직접. 폼 "빈 원(○)" 자리가 꼭 필요할 때만.
167
+ // 비권장: Radio를 leading에 직접. 폼 "빈 원(○)" 자리가 꼭 필요할 때만.
163
168
  <DropdownMenu.RadioGroup value={density} onValueChange={setDensity}>
164
169
  {["compact", "cozy", "comfortable"].map((value) => (
165
170
  <DropdownMenu.RadioItem asChild key={value} value={value}>
@@ -171,9 +176,9 @@ MenuItem은 세 개 CSS 변수로 색을 열어둠. **부모 컨테이너에 얹
171
176
  ))}
172
177
  </DropdownMenu.RadioGroup>
173
178
 
174
- // identity row — Sidebar.Profile
179
+ // identity row: Sidebar.Profile
175
180
  <MenuItem
176
- size="md"
181
+ size="sm"
177
182
  align="center"
178
183
  avatar={{ initials: "JC" }}
179
184
  description="jane@ovenn.io"
@@ -183,7 +188,7 @@ MenuItem은 세 개 CSS 변수로 색을 열어둠. **부모 컨테이너에 얹
183
188
  ]}
184
189
  >Jane Choi</MenuItem>
185
190
 
186
- // 스위처 리스트 — 현재 선택엔 check
191
+ // 스위처 리스트: 현재 선택엔 check
187
192
  <MenuItem
188
193
  avatar={{ initials: "AC" }}
189
194
  description="admin · 서울"
@@ -191,14 +196,14 @@ MenuItem은 세 개 CSS 변수로 색을 열어둠. **부모 컨테이너에 얹
191
196
  active
192
197
  >Acme Co.</MenuItem>
193
198
 
194
- // 파일 리스트 — rounded avatar + file icon
199
+ // 파일 리스트: rounded avatar + file icon
195
200
  <MenuItem
196
201
  avatar={{ shape: "rounded", icon: <Icon name="file-text" /> }}
197
202
  description="어제 수정, 3명 공동 편집 중"
198
203
  trailingActions={[{ node: <IconButton size="sm" variant="ghost" icon={<Icon name="dots-three" />} aria-label="더 보기" />, hoverOnly: true }]}
199
204
  >디자인 시스템 초안</MenuItem>
200
205
 
201
- // Notion 페이지 리스트 — 메타 + hover 액션
206
+ // Notion 페이지 리스트: 메타 + hover 액션
202
207
  <MenuItem
203
208
  leadingActions={[<Icon name="star" />]}
204
209
  trailingActions={[
@@ -211,7 +216,7 @@ MenuItem은 세 개 CSS 변수로 색을 열어둠. **부모 컨테이너에 얹
211
216
  onClick={() => openPage()}
212
217
  >디자인 시스템</MenuItem>
213
218
 
214
- // Sidebar 라우팅 — asChild로 <Link> 위임 + active
219
+ // Sidebar 라우팅: asChild로 <Link> 위임 + active
215
220
  <MenuItem asChild active={pathname === "/tokens/color"} leadingActions={[<Icon name="paint-bucket" />]}>
216
221
  <Link href="/tokens/color">Color</Link>
217
222
  </MenuItem>
@@ -228,18 +233,18 @@ MenuItem은 세 개 CSS 변수로 색을 열어둠. **부모 컨테이너에 얹
228
233
  - `menu-item-root`
229
234
  - `menu-item-leading`
230
235
  - `menu-item-label`
231
- - `menu-item-label-stack` — description 있을 때 label+description wrapper
236
+ - `menu-item-label-stack`: description 있을 때 label+description wrapper
232
237
  - `menu-item-description`
233
238
  - `menu-item-trailing`
234
239
 
235
240
  ### state attributes
236
- - `data-active="true"` — 현재 라우트/선택
241
+ - `data-active="true"`: 현재 라우트/선택
237
242
  - `data-active-style="fill|plain"`
238
- - `data-align="center"` — 2줄 identity row 모드
239
- - `data-checked="true"` — checkbox/radio 체크
243
+ - `data-align="center"`: 2줄 identity row 모드
244
+ - `data-checked="true"`: checkbox/radio 체크
240
245
  - `data-disabled="true"`
241
246
  - `data-has-submenu="true"`
242
- - `data-collapsed="true"` — Sidebar collapsed
247
+ - `data-collapsed="true"`: Sidebar collapsed
243
248
 
244
249
  <!-- component-contract -->
245
250
  ```json
@@ -6,20 +6,21 @@
6
6
  ### Do
7
7
  - UserMessage: `[copy, edit]` 조합이 기본 (오른쪽 정렬 `align=end`).
8
8
  - AIMessage: `[copy, regenerate]` 조합이 기본 (왼쪽 정렬 `align=start`).
9
- - 호버·focus-visible에서만 ring 노출, 평상시엔 투명 bg + fg-muted 아이콘.
9
+ - 호버·focus-visible에서만 ring 노출, 평상시엔 투명 bg + fg-subtle 아이콘. inline 기본 액션은 AIMessage·UserMessage에서 같은 옅은 색을 사용하고 hover 시 fg-strong으로 강조한다.
10
+ - 댓글 같은 호버 액션 블록은 `variant="toolbar" size="xs"`을 사용한다. 실제 Toolbar + IconButton + Tooltip 조합이며 Tab으로 한 번 진입하고 방향키/Home/End로 이동한다. 기본 `inline`은 기존 메시지 하단 표현을 유지한다.
10
11
  - 커스텀 액션 필요하면 `icon`에 직접 ReactNode 전달.
11
12
 
12
13
  ### Don't
13
- - 액션 라벨을 아이콘 옆에 노출하지 않는다 — `title`(툴팁)과 `aria-label`만.
14
- - 액션 사이에 구분선 넣지 않는다 — gap으로 공간만 분리.
15
- - 많은 액션(5개 이상) 나열 금지 — 메뉴 오버플로우로 숨김 고려.
14
+ - 액션 라벨을 아이콘 옆에 노출하지 않는다: `title`(툴팁)과 `aria-label`만.
15
+ - 액션 사이에 구분선 넣지 않는다: gap으로 공간만 분리.
16
+ - 많은 액션(5개 이상) 나열 금지: 메뉴 오버플로우로 숨김 고려.
16
17
 
17
18
  ### Fallback
18
19
  align 애매하면 `start`. kind 없는 커스텀 액션은 `icon` 직접 전달.
19
20
 
20
21
  ### 관련
21
- - [[components/user-message]] / [[components/ai-message]] — 메인 소비처
22
- - [[components/icon-button]] — 단독 아이콘 버튼은 IconButton 사용
22
+ - [[components/user-message]] / [[components/ai-message]]: 메인 소비처
23
+ - [[components/icon-button]]: 단독 아이콘 버튼은 IconButton 사용
23
24
 
24
25
  ### Props 시그니처
25
26
  ```tsx
@@ -28,6 +29,8 @@ align 애매하면 `start`. kind 없는 커스텀 액션은 `icon` 직접 전달
28
29
  { kind: "copy", onClick },
29
30
  { kind: "regenerate", onClick },
30
31
  ]}
32
+ variant="inline | toolbar" // default: inline
33
+ size="xs | sm | md" // toolbar only, default: sm
31
34
  align="start | end" // default: start
32
35
  />
33
36
  ```
@@ -35,6 +38,7 @@ align 애매하면 `start`. kind 없는 커스텀 액션은 `icon` 직접 전달
35
38
  ### Kind 매핑
36
39
  | kind | icon | 기본 라벨 |
37
40
  |---|---|---|
41
+ | reply | ArrowBendUpLeft | 답글 |
38
42
  | copy | Copy | 복사 |
39
43
  | edit | PencilSimple | 수정 |
40
44
  | regenerate | ArrowClockwise | 다시 생성 |
@@ -52,3 +56,8 @@ align 애매하면 `start`. kind 없는 커스텀 액션은 `icon` 직접 전달
52
56
  ```json
53
57
  {"roles":["message-actions"],"native":[],"hints":[],"requires":["ThemeController"]}
54
58
  ```
59
+
60
+ ### Action feedback
61
+ - `onClick`은 void 또는 Promise<void>를 반환한다. `successLabel` / `errorLabel`을 지정하면 완료/실패 후 같은 버튼 Tooltip에 1200ms간 표시하고 포인터 이탈/포커스 해제 시 닫는다. 성공 표시 앞에는 체크를 붙이며 체크는 duration-slower로 clip-path inset(0 100% 0 0)→inset(0)(크기 고정)로 왼쪽부터 드러나고 문구는 duration-base 뒤에 duration-slow로 거의 제자리에서(space-0_5 / 2→0) 따라온다. 두 요소를 따로 애니메이션하며 묶음 전체를 확대하지 않는다. Tooltip 폭은 현재 내용에 맞추고 완료 문구용 최소 폭을 예약하지 않는다. 종료 애니메이션 동안 결과 문구를 유지하고 다음 열림에만 원래 라벨로 복원한다. 비동기 성공 전에는 완료로 표시하지 않는다. 버튼의 접근성 이름은 원래 액션 이름을 유지한다.
62
+
63
+ - 완료 전환 시 원래 라벨을 별도 레이어로 유지해 duration-base로 페이드아웃한다. 체크와 완료 문구는 duration-base 뒤에 등장해 이전 라벨이 완전히 사라진 뒤 완료 문구를 표시한다. 두 라벨을 겹쳐 표시하지 않는다. 이전 라벨은 aria-hidden이며 모션 감소 설정에서는 즉시 숨긴다.