@conscience-technology/ovenn 0.7.0 → 0.7.3

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 (243) hide show
  1. package/assets/components/AIMessage/AIMessage.module.css +21 -0
  2. package/assets/components/AIMessage/AIMessage.tsx +27 -7
  3. package/assets/components/AttachmentItem/AttachmentItem.module.css +41 -10
  4. package/assets/components/AttachmentItem/AttachmentItem.tsx +25 -8
  5. package/assets/components/AttachmentThumb/AttachmentThumb.module.css +9 -10
  6. package/assets/components/Button/Button.module.css +19 -0
  7. package/assets/components/Callout/Callout.module.css +53 -7
  8. package/assets/components/Callout/Callout.tsx +26 -2
  9. package/assets/components/Callout/index.ts +1 -1
  10. package/assets/components/ChatComposer/ChatComposer.module.css +17 -0
  11. package/assets/components/ChatComposer/ChatComposer.tsx +131 -0
  12. package/assets/components/ChatComposer/index.ts +2 -0
  13. package/assets/components/ChatInput/ChatInput.module.css +192 -30
  14. package/assets/components/ChatInput/ChatInput.tsx +137 -45
  15. package/assets/components/ChatInput/SendButton.tsx +4 -1
  16. package/assets/components/ChatInput/index.ts +5 -0
  17. package/assets/components/ChatMessage/ChatMessage.module.css +19 -0
  18. package/assets/components/ChatMessage/ChatMessage.tsx +63 -0
  19. package/assets/components/ChatMessage/index.ts +2 -0
  20. package/assets/components/ChatReactions/ChatReactions.module.css +15 -0
  21. package/assets/components/ChatReactions/ChatReactions.tsx +58 -0
  22. package/assets/components/ChatReactions/index.ts +2 -0
  23. package/assets/components/CodeBlock/CodeBlock.module.css +106 -10
  24. package/assets/components/CodeBlock/CodeBlock.tsx +114 -29
  25. package/assets/components/CodeBlock/SyntaxHighlight.tsx +20 -0
  26. package/assets/components/CodeBlock/diff-lines.ts +21 -0
  27. package/assets/components/CodeBlock/index.ts +2 -1
  28. package/assets/components/CodeBlock/line-preview.ts +7 -0
  29. package/assets/components/CodeBlock/syntax-highlighter.ts +96 -0
  30. package/assets/components/CodeBlock/use-syntax-tokens.ts +17 -0
  31. package/assets/components/ColorField/ColorField.module.css +19 -196
  32. package/assets/components/ColorField/ColorField.tsx +116 -109
  33. package/assets/components/Combobox/Combobox.module.css +21 -4
  34. package/assets/components/Combobox/Combobox.tsx +37 -21
  35. package/assets/components/CommandPalette/CommandPalette.module.css +1 -1
  36. package/assets/components/ControlGroup/ControlGroup.module.css +13 -6
  37. package/assets/components/DatePicker/DateField.tsx +72 -25
  38. package/assets/components/DatePicker/DatePicker.module.css +28 -59
  39. package/assets/components/DatePicker/DatePicker.tsx +76 -40
  40. package/assets/components/Drawer/Drawer.module.css +12 -15
  41. package/assets/components/Drawer/Drawer.tsx +15 -23
  42. package/assets/components/EmojiPicker/EmojiGlyph.module.css +2 -0
  43. package/assets/components/EmojiPicker/EmojiGlyph.tsx +12 -0
  44. package/assets/components/EmojiPicker/EmojiPicker.module.css +43 -0
  45. package/assets/components/EmojiPicker/EmojiPicker.tsx +143 -0
  46. package/assets/components/EmojiPicker/UNICODE-LICENSE.txt +39 -0
  47. package/assets/components/EmojiPicker/data.ts +41 -0
  48. package/assets/components/EmojiPicker/emojiData-0.json +1 -0
  49. package/assets/components/EmojiPicker/emojiData-1.json +1 -0
  50. package/assets/components/EmojiPicker/emojiData-2.json +1 -0
  51. package/assets/components/EmojiPicker/emojiData-3.json +1 -0
  52. package/assets/components/EmojiPicker/emojiData.sources.json +35 -0
  53. package/assets/components/EmojiPicker/emojiData.ts +8 -0
  54. package/assets/components/EmojiPicker/emojiFallbacks.json +1 -0
  55. package/assets/components/EmojiPicker/index.ts +4 -0
  56. package/assets/components/EmptyState/EmptyState.module.css +2 -2
  57. package/assets/components/FileIcon/FileIcon.module.css +4 -6
  58. package/assets/components/Icon/LucideFamilyIcon.tsx +2 -0
  59. package/assets/components/Icon/SolarFamilyIcon.tsx +4 -0
  60. package/assets/components/Input/Input.module.css +33 -10
  61. package/assets/components/Input/Input.tsx +20 -9
  62. package/assets/components/MessageActions/MessageActions.module.css +2 -2
  63. package/assets/components/Onboarding/Onboarding.module.css +1 -1
  64. package/assets/components/ProgressBar/ProgressBar.module.css +38 -4
  65. package/assets/components/ProgressBar/ProgressBar.tsx +5 -1
  66. package/assets/components/RadioCard/RadioCard.module.css +18 -0
  67. package/assets/components/RadioCard/RadioCard.tsx +48 -7
  68. package/assets/components/Select/Select.module.css +9 -7
  69. package/assets/components/Select/Select.tsx +15 -2
  70. package/assets/components/Tabs/Tabs.module.css +1 -1
  71. package/assets/components/Tabs/Tabs.tsx +2 -2
  72. package/assets/components/Textarea/Textarea.module.css +28 -231
  73. package/assets/components/Textarea/Textarea.tsx +2 -2
  74. package/assets/components/TimePicker/TimePicker.module.css +16 -4
  75. package/assets/components/TimePicker/TimePicker.tsx +66 -8
  76. package/assets/components/Toast/Toast.module.css +18 -0
  77. package/assets/components/Toast/Toast.tsx +1 -1
  78. package/assets/components/Tooltip/Tooltip.tsx +33 -7
  79. package/assets/components/UserMessage/UserMessage.module.css +110 -1
  80. package/assets/components/UserMessage/UserMessage.tsx +138 -16
  81. package/assets/components/UserMessage/index.ts +4 -0
  82. package/assets/components/_data.ts +10 -5
  83. package/assets/components/_utils.css +31 -5
  84. package/assets/components/component-registry.json +1595 -107
  85. package/assets/components/index.ts +7 -0
  86. package/assets/components/tokens.css +83 -0
  87. package/assets/prompts/ASSEMBLY.md +11 -0
  88. package/assets/prompts/CATALOG.md +110 -106
  89. package/assets/prompts/PRINCIPLES.md +11 -1
  90. package/assets/prompts/TEMPLATE_PREVIEWS.md +21 -0
  91. package/assets/prompts/WORKFLOW_DESIGN.md +2 -0
  92. package/assets/prompts/axes/font.md +6 -0
  93. package/assets/prompts/axes/material.md +1 -1
  94. package/assets/prompts/axes/motion.md +2 -0
  95. package/assets/prompts/axes/palette.md +9 -2
  96. package/assets/prompts/axes/voice.md +4 -0
  97. package/assets/prompts/components/README.md +3 -3
  98. package/assets/prompts/components/_variants.md +35 -35
  99. package/assets/prompts/components/accordion.md +15 -15
  100. package/assets/prompts/components/ai-message.md +14 -12
  101. package/assets/prompts/components/app-frame.md +16 -16
  102. package/assets/prompts/components/attachment-item.md +36 -30
  103. package/assets/prompts/components/attachment-thumb.md +14 -12
  104. package/assets/prompts/components/avatar-upload.md +10 -10
  105. package/assets/prompts/components/avatar.md +16 -16
  106. package/assets/prompts/components/badge.md +4 -4
  107. package/assets/prompts/components/breadcrumb.md +24 -24
  108. package/assets/prompts/components/bubble.md +13 -13
  109. package/assets/prompts/components/button-group.md +1 -1
  110. package/assets/prompts/components/button.md +37 -36
  111. package/assets/prompts/components/calendar.md +29 -29
  112. package/assets/prompts/components/callout.md +39 -23
  113. package/assets/prompts/components/canvas-edge.md +5 -2
  114. package/assets/prompts/components/canvas-node.md +3 -3
  115. package/assets/prompts/components/canvas.md +5 -2
  116. package/assets/prompts/components/card.md +21 -21
  117. package/assets/prompts/components/chart-bar.md +7 -7
  118. package/assets/prompts/components/chart-pie.md +3 -3
  119. package/assets/prompts/components/chart-radar.md +3 -3
  120. package/assets/prompts/components/chart-radial.md +4 -4
  121. package/assets/prompts/components/chat-composer.md +71 -0
  122. package/assets/prompts/components/chat-input.md +82 -27
  123. package/assets/prompts/components/chat-message.md +48 -0
  124. package/assets/prompts/components/chat-reactions.md +38 -0
  125. package/assets/prompts/components/checkbox-card.md +3 -3
  126. package/assets/prompts/components/checkbox.md +17 -17
  127. package/assets/prompts/components/chip.md +32 -32
  128. package/assets/prompts/components/code-block.md +109 -66
  129. package/assets/prompts/components/code.md +4 -4
  130. package/assets/prompts/components/color-area.md +9 -9
  131. package/assets/prompts/components/color-field.md +17 -13
  132. package/assets/prompts/components/color-picker.md +6 -6
  133. package/assets/prompts/components/color-slider.md +8 -8
  134. package/assets/prompts/components/color-swatch-picker.md +8 -8
  135. package/assets/prompts/components/color-swatch.md +9 -9
  136. package/assets/prompts/components/combobox.md +5 -2
  137. package/assets/prompts/components/command-palette.md +26 -26
  138. package/assets/prompts/components/comment.md +5 -2
  139. package/assets/prompts/components/context-menu.md +22 -22
  140. package/assets/prompts/components/control-group.md +4 -4
  141. package/assets/prompts/components/date-picker.md +31 -23
  142. package/assets/prompts/components/disclosure.md +10 -10
  143. package/assets/prompts/components/drawer.md +19 -18
  144. package/assets/prompts/components/dropdown-menu.md +21 -21
  145. package/assets/prompts/components/emoji-picker.md +45 -0
  146. package/assets/prompts/components/empty-state.md +20 -18
  147. package/assets/prompts/components/event-chip.md +11 -11
  148. package/assets/prompts/components/event-list-item.md +21 -21
  149. package/assets/prompts/components/file-icon.md +18 -19
  150. package/assets/prompts/components/gallery-item.md +19 -19
  151. package/assets/prompts/components/generated-image.md +10 -10
  152. package/assets/prompts/components/hint.md +19 -19
  153. package/assets/prompts/components/icon-button.md +16 -16
  154. package/assets/prompts/components/icon.md +12 -9
  155. package/assets/prompts/components/input.md +49 -46
  156. package/assets/prompts/components/kanban.md +34 -34
  157. package/assets/prompts/components/list-item.md +39 -39
  158. package/assets/prompts/components/menu-item.md +41 -41
  159. package/assets/prompts/components/message-actions.md +6 -6
  160. package/assets/prompts/components/message-quote.md +7 -7
  161. package/assets/prompts/components/message-sources.md +10 -10
  162. package/assets/prompts/components/message-state.md +17 -17
  163. package/assets/prompts/components/message-table.md +5 -5
  164. package/assets/prompts/components/mini-calendar.md +6 -1
  165. package/assets/prompts/components/modal.md +39 -39
  166. package/assets/prompts/components/multi-select.md +4 -1
  167. package/assets/prompts/components/onboarding.md +19 -19
  168. package/assets/prompts/components/page-header.md +31 -31
  169. package/assets/prompts/components/pagination.md +17 -17
  170. package/assets/prompts/components/progress-bar.md +14 -11
  171. package/assets/prompts/components/quotation-bar.md +10 -10
  172. package/assets/prompts/components/radio-card.md +7 -6
  173. package/assets/prompts/components/radio.md +9 -9
  174. package/assets/prompts/components/select.md +28 -25
  175. package/assets/prompts/components/shortcut.md +11 -11
  176. package/assets/prompts/components/sidebar.md +56 -56
  177. package/assets/prompts/components/skeleton.md +7 -4
  178. package/assets/prompts/components/slider.md +18 -18
  179. package/assets/prompts/components/spinner.md +16 -16
  180. package/assets/prompts/components/stepper.md +14 -14
  181. package/assets/prompts/components/switch.md +19 -20
  182. package/assets/prompts/components/tab-strip.md +31 -31
  183. package/assets/prompts/components/table-cell.md +4 -4
  184. package/assets/prompts/components/table-header.md +16 -16
  185. package/assets/prompts/components/table-row-edit.md +19 -19
  186. package/assets/prompts/components/table-row-select.md +9 -9
  187. package/assets/prompts/components/table-row.md +18 -18
  188. package/assets/prompts/components/tabs.md +26 -25
  189. package/assets/prompts/components/tag.md +6 -6
  190. package/assets/prompts/components/textarea.md +16 -15
  191. package/assets/prompts/components/time-picker.md +21 -14
  192. package/assets/prompts/components/timeline-view.md +4 -4
  193. package/assets/prompts/components/toast.md +42 -41
  194. package/assets/prompts/components/toolbar.md +23 -23
  195. package/assets/prompts/components/tooltip.md +15 -14
  196. package/assets/prompts/components/top-loader.md +11 -11
  197. package/assets/prompts/components/topbar.md +35 -35
  198. package/assets/prompts/components/tree-nav.md +9 -9
  199. package/assets/prompts/components/user-message.md +23 -12
  200. package/assets/prompts/design-examples/README.md +1 -1
  201. package/assets/prompts/design-examples/ai-chat-full-page.png +0 -0
  202. package/assets/prompts/design-examples/catalog.json +124 -1
  203. package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.module.css +346 -0
  204. package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.tsx +375 -0
  205. package/assets/prompts/design-examples/sources/ai-chat-full-page/FullPageChat.tsx +8 -0
  206. package/assets/prompts/design-examples/sources/ai-chat-full-page/REFERENCE.md +19 -0
  207. package/assets/prompts/design-examples/sources/ai-chat-full-page/useChatDemo.ts +139 -0
  208. package/assets/prompts/design-examples/sources/ai-chat-full-page/useDemoTextStream.ts +30 -0
  209. package/assets/prompts/primitives/emerge.md +2 -0
  210. package/assets/prompts/templates/README.md +1 -1
  211. package/assets/prompts/templates/ains.md +7 -0
  212. package/assets/prompts/templates/minimal.md +6 -0
  213. package/assets/prompts/templates/onboarding.md +156 -0
  214. package/assets/prompts/templates/workspace.md +13 -8
  215. package/assets/prompts/tokens/color.md +7 -2
  216. package/assets/prompts/tokens/radius.md +22 -0
  217. package/assets/prompts/use-cases/chart-chart-area.md +40 -40
  218. package/assets/prompts/use-cases/chart-chart-bar.md +34 -34
  219. package/assets/prompts/use-cases/chart-chart-pie.md +14 -14
  220. package/assets/prompts/use-cases/chart-chart-radar.md +24 -24
  221. package/assets/prompts/use-cases/chart-chart-radial.md +14 -14
  222. package/assets/prompts/use-cases/chart-segmented-chart.md +32 -32
  223. package/assets/prompts/use-cases/chat-chat-composer.md +529 -0
  224. package/assets/prompts/use-cases/chat-chat-input.md +1766 -0
  225. package/assets/prompts/use-cases/data-comment.md +39 -39
  226. package/assets/prompts/use-cases/data-data-table.md +34 -34
  227. package/assets/prompts/use-cases/data-list-item.md +16 -16
  228. package/assets/prompts/use-cases/data-metric-card.md +18 -18
  229. package/assets/prompts/use-cases/data-table-row.md +19 -19
  230. package/assets/prompts/use-cases/data-table-toolbar.md +10 -10
  231. package/assets/prompts/use-cases/feedback-drawer.md +35 -30
  232. package/assets/prompts/use-cases/feedback-progress-bar.md +23 -18
  233. package/assets/prompts/use-cases/general-toolbar.md +16 -16
  234. package/assets/prompts/use-cases/general-tooltip.md +26 -26
  235. package/assets/prompts/use-cases/input-checkbox.md +27 -27
  236. package/assets/prompts/use-cases/structure-card.md +9 -9
  237. package/assets/prompts/use-cases/structure-page-header.md +17 -17
  238. package/assets/prompts/use-cases/structure-sidebar.md +20 -20
  239. package/assets/prompts/use-cases/structure-topbar.md +38 -42
  240. package/assets/skills/ovenn-wireframe/SKILL.md +17 -4
  241. package/package.json +6 -2
  242. package/src/utils/design-examples.js +3 -4
  243. package/assets/prompts/templates/glass-button.md +0 -337
@@ -28,7 +28,7 @@ get_guide(topic="use-cases/data-comment", sections=["사례 목록", "파일 목
28
28
 
29
29
  ```tsx
30
30
  <section id="use-cases">
31
- <h2>In Use</h2>
31
+ <h2>{ko ? "사용 사례" : "In Use"}</h2>
32
32
  <h3>{ko ? "문서 검토" : "Document review"}</h3>
33
33
  <ExampleBlock previewWidth="full"><div className={styles.example}><CommentDiscussion /></div></ExampleBlock>
34
34
  <h3>{ko ? "업무 대화" : "Task discussion"}</h3>
@@ -70,18 +70,18 @@ export default function CommentPage() {
70
70
  const required = text("필수", "Required");
71
71
  const automatic = text("자동", "Automatic");
72
72
  const api = (rows: ApiRow[]) => <DocsTable columns={[
73
- { key: "prop", label: "Prop", width: 160 },
74
- { key: "type", label: "Type", flex: true, minWidth: 160 },
73
+ { key: "prop", label: ko ? "속성" : "Prop", width: 160 },
74
+ { key: "type", label: ko ? "타입" : "Type", flex: true, minWidth: 160 },
75
75
  { key: "default", label: "Default", width: 100 },
76
76
  { key: "desc", label: text("설명", "Description"), flex: true, minWidth: 200 },
77
77
  ]} rows={rows.map(([prop, type, value, desc]) => ({ prop: <Code>{prop}</Code>, type: <Code>{type}</Code>, default: value === required || value === automatic ? value : <Code>{value}</Code>, desc }))} />;
78
78
 
79
79
  return <>
80
80
  <h1 className="page-title">Comment</h1>
81
- <p className="page-lead">{text("작성자와 함께 댓글과 답글을 보여줍니다.", "Displays comments and replies with their authors.")}</p>
81
+ <p className="page-lead">{text("작성자와 함께 댓글과 답글을 보여줘요.", "Displays comments and replies with their authors.")}</p>
82
82
 
83
83
  <section id="usage" className="section-first">
84
- <h2>Usage</h2>
84
+ <h2>{ko ? "사용법" : "Usage"}</h2>
85
85
  <p className="desc">{text("검토 의견이나 업무 대화처럼 작성자를 함께 남길 때 사용하세요.", "Use for review feedback or discussions that need an author.")}</p>
86
86
  <ExampleBlock previewWidth="full" code={'import { Comment } from "@/components/Comment";\n\n<Comment author="Alex Morgan">Please check the mobile layout before the next review.</Comment>'}>
87
87
  <div className={styles.example}><Comment author="Alex Morgan">Please check the mobile layout before the next review.</Comment></div>
@@ -95,7 +95,7 @@ export default function CommentPage() {
95
95
  </Playground>
96
96
 
97
97
  <section id="variants">
98
- <h2>Variants</h2>
98
+ <h2>{ko ? "표현" : "Variants"}</h2>
99
99
  <p className="desc">{ko ? <>본문에 붙이는 입력창은 <Code>line</Code>, 입력 영역을 구분하려면 <Code>box</Code>를 사용하세요.</> : <>Use <Code>line</Code> for an inline composer and <Code>box</Code> to separate the input area.</>}</p>
100
100
  <ExampleBlock align="column" previewWidth="full" code={'<CommentComposer author="Alex Morgan" value={draft} onValueChange={setDraft} onSubmit={addComment} />\n<CommentComposer variant="box" author="Alex Morgan" value={boxDraft} onValueChange={setBoxDraft} onSubmit={addComment} />'}>
101
101
  <div className={styles.stack}>
@@ -107,7 +107,7 @@ export default function CommentPage() {
107
107
 
108
108
  <section id="with-actions">
109
109
  <h2>With Actions</h2>
110
- <p className="desc">{text("댓글을 가리키거나 작업 버튼에 포커스를 옮겨 수정·삭제할 수 있습니다. 삭제한 댓글은 Undo로 되돌릴 수 있습니다.", "Hover a comment or focus its actions to edit or delete it. Undo restores a deleted comment.")}</p>
110
+ <p className="desc">{text("댓글을 가리키거나 작업 버튼에 포커스를 옮겨 수정·삭제할 수 있어요. 삭제한 댓글은 Undo로 되돌릴 수 있어요.", "Hover a comment or focus its actions to edit or delete it. Undo restores a deleted comment.")}</p>
111
111
  <ExampleBlock previewWidth="full" code={'<Comment author="Alex Morgan" timestamp="Just now"\n actions={editing ? undefined : [\n { kind: "copy", onClick: copyComment, successLabel: "Copied", errorLabel: "Copy failed" },\n { kind: "edit", onClick: startEditing },\n { kind: "delete", onClick: deleteWithUndo },\n ]}\n>\n {editing ? (\n <CommentEditor value={draft} originalValue={body}\n mentions={draftMentions} originalMentions={mentions} mentionOptions={people}\n onValueChange={updateDraft} onSave={saveComment} onCancel={cancelEdit} />\n ) : <CommentText value={body} mentions={mentions} />}\n</Comment>'}>
112
112
  <CommentActionsExample />
113
113
  </ExampleBlock>
@@ -124,7 +124,7 @@ export default function CommentPage() {
124
124
  </section>
125
125
 
126
126
  <section id="use-cases">
127
- <h2>In Use</h2>
127
+ <h2>{ko ? "사용 사례" : "In Use"}</h2>
128
128
  <h3>{ko ? "문서 검토" : "Document review"}</h3>
129
129
  <ExampleBlock previewWidth="full"><div className={styles.example}><CommentDiscussion /></div></ExampleBlock>
130
130
  <h3>{ko ? "업무 대화" : "Task discussion"}</h3>
@@ -132,60 +132,60 @@ export default function CommentPage() {
132
132
  </section>
133
133
 
134
134
  <section id="api">
135
- <h2>API Reference</h2>
136
- <p className="desc">{text("댓글과 목록, 작성·수정 폼은 기본 HTML 속성을 함께 받습니다.", "The comment, list and input forms also accept native HTML attributes.")}</p>
135
+ <h2>{ko ? "속성" : "API Reference"}</h2>
136
+ <p className="desc">{text("댓글과 목록, 작성·수정 폼은 기본 HTML 속성을 함께 받아요.", "The comment, list and input forms also accept native HTML attributes.")}</p>
137
137
  <h3>Comment</h3>
138
138
  {api([
139
- ["author", "string", required, text("작성자 이름입니다.", "The author's display name.")],
140
- ["timestamp", "ReactNode", "undefined", text("댓글에 표시할 시간입니다.", "The displayed timestamp.")],
139
+ ["author", "string", required, text("작성자 이름이에요.", "The author's display name.")],
140
+ ["timestamp", "ReactNode", "undefined", text("댓글에 표시할 시간이에요.", "The displayed timestamp.")],
141
141
  ["dateTime", "string", "undefined", text("시간을 제공할 때 기계가 읽을 수 있는 날짜를 함께 지정하세요.", "Supply a machine-readable date when available.")],
142
- ["avatar", 'Omit<AvatarProps, "name" | "size">', "undefined", text("작성자 사진과 대체 표시를 지정합니다.", "Sets the author image and fallback.")],
142
+ ["avatar", 'Omit<AvatarProps, "name" | "size">', "undefined", text("작성자 사진과 대체 표시를 지정해요.", "Sets the author image and fallback.")],
143
143
  ["actions", "MessageAction[]", "[]", text("권한이 있는 작업만 전달하세요.", "Include only permitted actions.")],
144
- ["replies", "ReactNode", "undefined", text("해당 댓글에 이어지는 답글입니다.", "Replies belonging to this comment.")],
145
- ["children", "ReactNode", "undefined", text("댓글 본문이나 수정창입니다.", "The comment body or editor.")],
144
+ ["replies", "ReactNode", "undefined", text("해당 댓글에 이어지는 답글이에요.", "Replies belonging to this comment.")],
145
+ ["children", "ReactNode", "undefined", text("댓글 본문이나 수정창이에요.", "The comment body or editor.")],
146
146
  ])}
147
147
  <h3>CommentList</h3>
148
- {api([["children", "ReactNode", "undefined", text("댓글을 직접 나열하면 목록 항목으로 묶습니다.", "Wraps comment children as list items.")]])}
148
+ {api([["children", "ReactNode", "undefined", text("댓글을 직접 나열하면 목록 항목으로 묶어요.", "Wraps comment children as list items.")]])}
149
149
  <h3>CommentComposer</h3>
150
150
  {api([
151
151
  ["variant", '"line" | "box"', '"line"', text("본문과 붙이거나 입력 영역을 분리할 때 선택하세요.", "Choose an inline or outlined input area.")],
152
- ["author", "string", required, text("작성 중인 사용자의 이름입니다.", "The current author's name.")],
153
- ["avatar", 'Omit<AvatarProps, "name" | "size">', "undefined", text("작성 중인 사용자의 사진을 지정합니다.", "Sets the current author's image.")],
154
- ["value", "string", required, text("작성 중인 본문입니다.", "The current draft.")],
152
+ ["author", "string", required, text("작성 중인 사용자의 이름이에요.", "The current author's name.")],
153
+ ["avatar", 'Omit<AvatarProps, "name" | "size">', "undefined", text("작성 중인 사용자의 사진을 지정해요.", "Sets the current author's image.")],
154
+ ["value", "string", required, text("작성 중인 본문이에요.", "The current draft.")],
155
155
  ["onValueChange", "(value: string) => void", required, text("입력한 본문을 상태에 반영하세요.", "Update the draft state.")],
156
- ["onSubmit", "(body: string) => void", required, text("Enter로 전송하며 Shift+Enter는 줄바꿈합니다.", "Enter submits; Shift+Enter adds a line.")],
157
- ["replyTo", "string", "undefined", text("답글 대상 이름을 멘션으로 표시합니다.", "Shows the reply target as a mention.")],
158
- ["onCancel", "() => void", "undefined", text("답글 취소 버튼을 표시합니다.", "Shows the cancel-reply action.")],
156
+ ["onSubmit", "(body: string) => void", required, text("Enter로 전송하며 Shift+Enter는 줄바꿈해요.", "Enter submits; Shift+Enter adds a line.")],
157
+ ["replyTo", "string", "undefined", text("답글 대상 이름을 멘션으로 표시해요.", "Shows the reply target as a mention.")],
158
+ ["onCancel", "() => void", "undefined", text("답글 취소 버튼을 표시해요.", "Shows the cancel-reply action.")],
159
159
  ["disabled", "boolean", "false", text("작성할 수 없는 상태에 사용하세요.", "Use when writing is unavailable.")],
160
- ["submitting", "boolean", "false", text("처리 중 중복 전송을 막습니다.", "Prevents duplicate submissions while pending.")],
161
- ["label", "string", automatic, text("입력창의 접근성 이름을 바꿉니다.", "Overrides the input's accessible name.")],
162
- ["placeholder", "string", automatic, text("입력할 내용의 짧은 힌트입니다.", "A short input hint.")],
160
+ ["submitting", "boolean", "false", text("처리 중 중복 전송을 막아요.", "Prevents duplicate submissions while pending.")],
161
+ ["label", "string", automatic, text("입력창의 접근성 이름을 바꿔요.", "Overrides the input's accessible name.")],
162
+ ["placeholder", "string", automatic, text("입력할 내용의 짧은 힌트예요.", "A short input hint.")],
163
163
  ])}
164
164
  <h3>CommentEditor</h3>
165
165
  {api([
166
166
  ["variant", '"line" | "box"', '"line"', text("작성창과 같은 형태로 맞추세요.", "Match the composer's presentation.")],
167
- ["value", "string", required, text("수정 중인 본문입니다.", "The edited draft.")],
168
- ["originalValue", "string", required, text("변경 여부를 비교할 원문입니다.", "The original body used to detect changes.")],
167
+ ["value", "string", required, text("수정 중인 본문이에요.", "The edited draft.")],
168
+ ["originalValue", "string", required, text("변경 여부를 비교할 원문이에요.", "The original body used to detect changes.")],
169
169
  ["onValueChange", "(body: string, mentions: CommentMention[]) => void", required, text("본문과 멘션을 함께 상태에 반영하세요.", "Update text and mentions together.")],
170
- ["onSave", "(body: string, mentions: CommentMention[]) => void", required, text("Enter로 저장하며 Shift+Enter는 줄바꿈합니다.", "Enter saves; Shift+Enter adds a line.")],
171
- ["onCancel", "() => void", required, text("Escape나 취소 버튼으로 수정을 취소합니다.", "Cancels editing with Escape or the cancel action.")],
172
- ["mentions", "CommentMention[]", "[]", text("사용자 멘션을 한 번에 지우거나 바꿀 수 있습니다.", "Mentions that can be removed or replaced as a unit.")],
173
- ["originalMentions", "CommentMention[]", "[]", text("변경 여부를 비교할 원래 멘션입니다.", "The original mentions used to detect changes.")],
174
- ["mentionOptions", "CommentMentionOption[]", "[]", text("입력창에서 @로 검색할 사용자 목록입니다.", "People to suggest when typing @.")],
170
+ ["onSave", "(body: string, mentions: CommentMention[]) => void", required, text("Enter로 저장하며 Shift+Enter는 줄바꿈해요.", "Enter saves; Shift+Enter adds a line.")],
171
+ ["onCancel", "() => void", required, text("Escape나 취소 버튼으로 수정을 취소해요.", "Cancels editing with Escape or the cancel action.")],
172
+ ["mentions", "CommentMention[]", "[]", text("사용자 멘션을 한 번에 지우거나 바꿀 수 있어요.", "Mentions that can be removed or replaced as a unit.")],
173
+ ["originalMentions", "CommentMention[]", "[]", text("변경 여부를 비교할 원래 멘션이에요.", "The original mentions used to detect changes.")],
174
+ ["mentionOptions", "CommentMentionOption[]", "[]", text("입력창에서 @로 검색할 사용자 목록이에요.", "People to suggest when typing @.")],
175
175
  ["disabled", "boolean", "false", text("수정할 수 없는 상태에 사용하세요.", "Use when editing is unavailable.")],
176
- ["submitting", "boolean", "false", text("처리 중 중복 저장을 막습니다.", "Prevents duplicate saves while pending.")],
177
- ["autoFocus", "boolean", "true", text("수정창을 열면 입력에 포커스를 둡니다.", "Focuses the editor when opened.")],
176
+ ["submitting", "boolean", "false", text("처리 중 중복 저장을 막아요.", "Prevents duplicate saves while pending.")],
177
+ ["autoFocus", "boolean", "true", text("수정창을 열면 입력에 포커스를 둬요.", "Focuses the editor when opened.")],
178
178
  ])}
179
179
  <h3>CommentText</h3>
180
180
  {api([
181
- ["value", "string", required, text("저장된 댓글 본문입니다.", "The saved comment body.")],
182
- ["mentions", "CommentMention[]", "[]", text("본문 안에 표시할 사용자 멘션입니다.", "Mentions to render within the body.")],
181
+ ["value", "string", required, text("저장된 댓글 본문이에요.", "The saved comment body.")],
182
+ ["mentions", "CommentMention[]", "[]", text("본문 안에 표시할 사용자 멘션이에요.", "Mentions to render within the body.")],
183
183
  ])}
184
184
  <h3>CommentMention</h3>
185
185
  {api([
186
- ["id", "string", required, text("사용자를 식별할 값입니다.", "The person's identifier.")],
187
- ["label", "string", required, text("화면에 표시할 이름입니다.", "The displayed name.")],
188
- ["offset", "number", required, text("태그를 제외한 본문에서 멘션을 넣을 문자 위치입니다.", "The insertion position in text, excluding mention tags.")],
186
+ ["id", "string", required, text("사용자를 식별할 값이에요.", "The person's identifier.")],
187
+ ["label", "string", required, text("화면에 표시할 이름이에요.", "The displayed name.")],
188
+ ["offset", "number", required, text("태그를 제외한 본문에서 멘션을 넣을 문자 위치예요.", "The insertion position in text, excluding mention tags.")],
189
189
  ])}
190
190
  </section>
191
191
  </>;
@@ -25,7 +25,7 @@ get_guide(topic="use-cases/data-data-table", sections=["사례 목록", "파일
25
25
 
26
26
  ```tsx
27
27
  <section id="use-cases">
28
- <h2>In Use</h2>
28
+ <h2>{ko ? "사용 사례" : "In Use"}</h2>
29
29
  <h3>{ko ? "회원 목록" : "Member directory"}</h3>
30
30
  <ExampleBlock previewWidth="full" align="column"><TableDemo label="Member directory" directory /></ExampleBlock>
31
31
  <p className="desc"><Link href={`/${lang}/patterns/members`}>{ko ? "회원 관리 전체 화면 보기" : "View the member management page"}</Link></p>
@@ -132,39 +132,39 @@ export default function Page() {
132
132
  const [pagination, setPagination] = useState(true);
133
133
  const [empty, setEmpty] = useState(false);
134
134
  const api = [
135
- ["label", "string", "Required", ko ? "표의 내용을 구분하는 접근성 이름입니다." : "Accessible name describing the table."],
136
- ["rows", "T[]", "Required", ko ? "클라이언트 모드에서는 전체 데이터, 서버 모드에서는 현재 페이지를 전달합니다." : "All rows in client mode, or the current page in server mode."],
137
- ["columns", "TableRowColumn<T>[]", "Required", ko ? "셀 표시와 정렬 여부를 열마다 지정합니다." : "Defines each column’s content and sorting options."],
138
- ["getRowId", "(row: T) => string", "Required", ko ? "정렬이나 페이지가 바뀌어도 유지되는 고유 키를 반환합니다." : "Returns a stable, unique ID for each row."],
139
- ["state", "DataTableState", "Required", ko ? "검색·정렬·페이지·선택·열 설정을 제어합니다." : "Controls search, sorting, pagination, selection and columns."],
140
- ["onStateChange", "(state) => void", "Required", ko ? "변경된 상태를 저장합니다." : "Stores the updated table state."],
141
- ["variant", '"default" | "contained"', '"default"', ko ? "기본 표와 헤더까지 감싸는 표면을 선택합니다." : "Chooses an open table or a shared header-and-body surface."],
142
- ["selectable", "boolean", "true", ko ? "행 선택 체크박스를 표시합니다." : "Shows row selection checkboxes."],
143
- ["selectionPinned", "boolean", "true", ko ? "가로 스크롤 중에도 선택 열을 고정합니다." : "Pins the selection column during horizontal scrolling."],
144
- ["pagination", "boolean", "true", ko ? "하단 페이지 이동을 표시합니다." : "Shows pagination below the table."],
145
- ["toolbar", "ReactNode | null", "Built-in toolbar", ko ? "도구 영역을 바꾸거나 null로 숨깁니다." : "Replaces the default toolbar, or hides it with null."],
146
- ["filters / toolbarActions", "ReactNode", "None", ko ? "도구 영역에 필터와 목록 작업을 추가합니다." : "Adds filters and list actions to the toolbar."],
147
- ["actions", "(row: T) => ReactNode", "None", ko ? "각 행의 마지막 열에 작업을 추가합니다." : "Adds actions in the final column of each row."],
148
- ["onRowClick", "(row: T) => void", "None", ko ? "행을 눌렀을 때 실행할 동작입니다." : "Runs when a row is clicked."],
149
- ["getRowHref", "(row: T) => string", "None", ko ? "행의 이동 경로를 반환합니다." : "Returns the navigation destination for a row."],
150
- ["getRowLabel", "(row: T) => string", "None", ko ? "행 동작의 접근성 이름을 지정합니다." : "Names the action performed by a row."],
151
- ["activeRowId", "string", "None", ko ? "현재 열려 있는 행을 강조합니다." : "Highlights the currently open row."],
152
- ["mode", '"client" | "server"', '"client"', ko ? "검색·정렬·페이지 처리를 테이블 또는 서버에 맡깁니다." : "Processes search, sorting and pagination locally or on the server."],
153
- ["total", "number", "rows.length", ko ? "서버 모드에서 필터가 적용된 전체 행 수를 전달합니다." : "Filtered row count across all pages in server mode."],
154
- ["status", '"idle" | "loading" | "error"', '"idle"', ko ? "목록의 로딩과 오류 상태를 표시합니다." : "Sets the loading or error state of the list."],
155
- ["error / onRetry", "string / () => void", "Default message", ko ? "오류 안내와 다시 불러오기 동작을 지정합니다." : "Customizes the error message and retry action."],
156
- ["search", "(row: T, query: string) => boolean", "JSON matching", ko ? "검색 조건과 일치하는 행을 판별합니다." : "Tests whether a row matches the search query."],
157
- ["sortValue", "(row: T, key: string) => string | number", "String value", ko ? "열을 정렬할 값을 반환합니다." : "Returns the value used to sort a column."],
158
- ["rowVariant", '"navigate" | "edit"', '"navigate"', ko ? "행 동작과 셀 편집 중 상호작용 방식을 선택합니다." : "Chooses row actions or cell editing."],
159
- ["activeCell / onActiveCellChange", "{ rowId, key } | null / callback", "Internal state", ko ? "편집 중인 셀을 외부에서 제어합니다." : "Controls the cell currently being edited."],
160
- ["rowSize", '"sm" | "md" | "lg"', '"md"', ko ? "셀 편집 모드의 행 크기를 정합니다." : "Sets the row size in cell editing mode."],
135
+ ["label", "string", "Required", ko ? "표의 내용을 구분하는 접근성 이름이에요." : "Accessible name describing the table."],
136
+ ["rows", "T[]", "Required", ko ? "클라이언트 모드에서는 전체 데이터, 서버 모드에서는 현재 페이지를 전달해요." : "All rows in client mode, or the current page in server mode."],
137
+ ["columns", "TableRowColumn<T>[]", "Required", ko ? "셀 표시와 정렬 여부를 열마다 지정해요." : "Defines each column’s content and sorting options."],
138
+ ["getRowId", "(row: T) => string", "Required", ko ? "정렬이나 페이지가 바뀌어도 유지되는 고유 키를 반환해요." : "Returns a stable, unique ID for each row."],
139
+ ["state", "DataTableState", "Required", ko ? "검색·정렬·페이지·선택·열 설정을 제어해요." : "Controls search, sorting, pagination, selection and columns."],
140
+ ["onStateChange", "(state) => void", "Required", ko ? "변경된 상태를 저장해요." : "Stores the updated table state."],
141
+ ["variant", '"default" | "contained"', '"default"', ko ? "기본 표와 헤더까지 감싸는 표면을 선택해요." : "Chooses an open table or a shared header-and-body surface."],
142
+ ["selectable", "boolean", "true", ko ? "행 선택 체크박스를 표시해요." : "Shows row selection checkboxes."],
143
+ ["selectionPinned", "boolean", "true", ko ? "가로 스크롤 중에도 선택 열을 고정해요." : "Pins the selection column during horizontal scrolling."],
144
+ ["pagination", "boolean", "true", ko ? "하단 페이지 이동을 표시해요." : "Shows pagination below the table."],
145
+ ["toolbar", "ReactNode | null", "Built-in toolbar", ko ? "도구 영역을 바꾸거나 null로 숨겨요." : "Replaces the default toolbar, or hides it with null."],
146
+ ["filters / toolbarActions", "ReactNode", "None", ko ? "도구 영역에 필터와 목록 작업을 추가해요." : "Adds filters and list actions to the toolbar."],
147
+ ["actions", "(row: T) => ReactNode", "None", ko ? "각 행의 마지막 열에 작업을 추가해요." : "Adds actions in the final column of each row."],
148
+ ["onRowClick", "(row: T) => void", "None", ko ? "행을 눌렀을 때 실행할 동작이에요." : "Runs when a row is clicked."],
149
+ ["getRowHref", "(row: T) => string", "None", ko ? "행의 이동 경로를 반환해요." : "Returns the navigation destination for a row."],
150
+ ["getRowLabel", "(row: T) => string", "None", ko ? "행 동작의 접근성 이름을 지정해요." : "Names the action performed by a row."],
151
+ ["activeRowId", "string", "None", ko ? "현재 열려 있는 행을 강조해요." : "Highlights the currently open row."],
152
+ ["mode", '"client" | "server"', '"client"', ko ? "검색·정렬·페이지 처리를 테이블 또는 서버에 맡겨요." : "Processes search, sorting and pagination locally or on the server."],
153
+ ["total", "number", "rows.length", ko ? "서버 모드에서 필터가 적용된 전체 행 수를 전달해요." : "Filtered row count across all pages in server mode."],
154
+ ["status", '"idle" | "loading" | "error"', '"idle"', ko ? "목록의 로딩과 오류 상태를 표시해요." : "Sets the loading or error state of the list."],
155
+ ["error / onRetry", "string / () => void", "Default message", ko ? "오류 안내와 다시 불러오기 동작을 지정해요." : "Customizes the error message and retry action."],
156
+ ["search", "(row: T, query: string) => boolean", "JSON matching", ko ? "검색 조건과 일치하는 행을 판별해요." : "Tests whether a row matches the search query."],
157
+ ["sortValue", "(row: T, key: string) => string | number", "String value", ko ? "열을 정렬할 값을 반환해요." : "Returns the value used to sort a column."],
158
+ ["rowVariant", '"navigate" | "edit"', '"navigate"', ko ? "행 동작과 셀 편집 중 상호작용 방식을 선택해요." : "Chooses row actions or cell editing."],
159
+ ["activeCell / onActiveCellChange", "{ rowId, key } | null / callback", "Internal state", ko ? "편집 중인 셀을 외부에서 제어해요." : "Controls the cell currently being edited."],
160
+ ["rowSize", '"sm" | "md" | "lg"', '"md"', ko ? "셀 편집 모드의 행 크기를 정해요." : "Sets the row size in cell editing mode."],
161
161
  ];
162
162
  return <>
163
163
  <h1 className="page-title">Data Table</h1>
164
- <p className="page-lead">{ko ? "검색·정렬·선택·페이지 이동을 함께 쓰는 데이터 목록입니다. 행과 셀을 직접 조합하려면 Table Header와 Table Row를 사용하세요." : "A data list with search, sorting, selection and pagination. Use Table Header and Table Row when you need to compose the rows yourself."}</p>
164
+ <p className="page-lead">{ko ? "검색·정렬·선택·페이지 이동을 함께 쓰는 데이터 목록이에요. 행과 셀을 직접 조합하려면 Table Header와 Table Row를 사용하세요." : "A data list with search, sorting, selection and pagination. Use Table Header and Table Row when you need to compose the rows yourself."}</p>
165
165
 
166
166
  <section id="usage" className="section-first">
167
- <h2>Usage</h2>
167
+ <h2>{ko ? "사용법" : "Usage"}</h2>
168
168
  <ExampleBlock previewWidth="full" align="column" code={BASIC_CODE}><TableDemo /></ExampleBlock>
169
169
  </section>
170
170
 
@@ -184,8 +184,8 @@ export default function Page() {
184
184
  </Playground>
185
185
 
186
186
  <section id="variants">
187
- <h2>Variants</h2>
188
- <p className="desc">{ko ? "기본형은 목록을 넓게 보여주고, 둘러싼 형태는 헤더와 행을 한 덩어리로 묶습니다." : "Use the default for an open list, or contained to group the header and rows on one surface."}</p>
187
+ <h2>{ko ? "표현" : "Variants"}</h2>
188
+ <p className="desc">{ko ? "기본형은 목록을 넓게 보여주고, 둘러싼 형태는 헤더와 행을 한 덩어리로 묶어요." : "Use the default for an open list, or contained to group the header and rows on one surface."}</p>
189
189
  <ExampleBlock previewWidth="full" align="column" code={'<DataTable {...tableProps} />\n<DataTable {...tableProps} variant="contained" />'}>
190
190
  <TableDemo label="Default table" toolbar={false} pagination={false} />
191
191
  <div id="contained" className={styles.preview}><TableDemo label="Contained table" variant="contained" toolbar={false} pagination={false} /></div>
@@ -193,7 +193,7 @@ export default function Page() {
193
193
  </section>
194
194
 
195
195
  <section id="use-cases">
196
- <h2>In Use</h2>
196
+ <h2>{ko ? "사용 사례" : "In Use"}</h2>
197
197
  <h3>{ko ? "회원 목록" : "Member directory"}</h3>
198
198
  <ExampleBlock previewWidth="full" align="column"><TableDemo label="Member directory" directory /></ExampleBlock>
199
199
  <p className="desc"><Link href={`/${lang}/patterns/members`}>{ko ? "회원 관리 전체 화면 보기" : "View the member management page"}</Link></p>
@@ -202,9 +202,9 @@ export default function Page() {
202
202
  </section>
203
203
 
204
204
  <section id="api">
205
- <h2>API Reference</h2>
205
+ <h2>{ko ? "속성" : "API Reference"}</h2>
206
206
  <DocsTable columns={[
207
- { key: "prop", label: "Prop", width: 200 }, { key: "type", label: "Type", width: 230 },
207
+ { key: "prop", label: ko ? "속성" : "Prop", width: 200 }, { key: "type", label: ko ? "타입" : "Type", width: 230 },
208
208
  { key: "default", label: "Default", width: 140 }, { key: "desc", label: ko ? "설명" : "Description", flex: true, minWidth: 240 },
209
209
  ]} rows={api.map(([prop, type, fallback, desc]) => ({ prop: <Code>{prop}</Code>, type: <Code>{type}</Code>, default: <Code>{fallback}</Code>, desc }))} />
210
210
  </section>
@@ -108,7 +108,7 @@ type Strings = {
108
108
 
109
109
  const en: Strings = {
110
110
  title: "List Item",
111
- lead: "A 3-zone frame of leading, content, trailing with freely assembled content inside. Covers feeds, notifications, activity logs, and task lists. Use Event List Item for rows where a date is the leading identity.",
111
+ lead: "Compose leading, content, and trailing areas for feeds, notifications, logs, and tasks. Use Event List Item for date-led rows.",
112
112
 
113
113
  usage: {
114
114
  heading: "Usage",
@@ -188,7 +188,7 @@ const en: Strings = {
188
188
  heading: "Interactive",
189
189
  desc: (
190
190
  <>
191
- Pass <Code>href</Code> or <Code>onClick</Code> and the whole row becomes clickable with a focus ring supplied automatically.
191
+ Pass <Code>href</Code> or <Code>onClick</Code> to make the whole row clickable with visible keyboard focus.
192
192
  </>
193
193
  ),
194
194
  rows: [
@@ -213,32 +213,32 @@ const en: Strings = {
213
213
 
214
214
  const ko: Strings = {
215
215
  title: "List Item",
216
- lead: "3구역 뼈대 leading·content·trailing과 content 내부 자유 조립. 피드·알림·활동 로그·작업 리스트까지 전부 커버합니다. 일정·이벤트처럼 날짜가 leading 아이덴티티인 자리는 Event List Item.",
216
+ lead: "앞쪽·본문·뒤쪽 영역을 조합해 목록의 한 행을 만들어요. 피드·알림·활동 로그·작업 목록에 쓰고, 날짜를 앞세운 일정 목록에는 Event List Item을 써요.",
217
217
 
218
218
  usage: {
219
- heading: "Usage",
219
+ heading: "사용법",
220
220
  desc: (
221
221
  <>
222
- content 안에 <Code>ListItem.Title</Code>·<Code>Description</Code>·<Code>Meta</Code>를 자유 조립합니다.
222
+ content 안에 <Code>ListItem.Title</Code>·<Code>Description</Code>·<Code>Meta</Code>를 자유 조립해요.
223
223
  </>
224
224
  ),
225
225
  sampleTitle: "채용 파이프라인 QBR",
226
226
  sampleWrittenOn: "2029년 7월 8일 작성",
227
227
  },
228
228
 
229
- playgroundDesc: "조합을 눌러보면서 확인하세요.",
229
+ playgroundDesc: "옵션을 바꿔 보세요.",
230
230
 
231
231
  playground: {
232
232
  decisionPending: "결정 대기",
233
233
  scopeConfirm: "개발 대상과 문서 범위 확인",
234
- bufferDesc: "새 WBS의 검수 단계에 +1주 버퍼를 기본으로 붙입니다",
234
+ bufferDesc: "새 WBS의 검수 단계에 +1주 버퍼를 기본으로 붙여요",
235
235
  requestedAgo: "22분 전 요청",
236
236
  openAria: "열기",
237
237
  reviewNeeded: "검토 필요",
238
238
  },
239
239
 
240
240
  sizes: {
241
- heading: "Sizes",
241
+ heading: "크기",
242
242
  desc: (
243
243
  <>
244
244
  <Code>md</Code>는 작업·자원 리스트처럼 호흡이 있는 자리, <Code>sm</Code>은 활동 로그·추출 완료처럼 분리선 없이 조밀하게 쌓이는 스트림 자리에.
@@ -251,10 +251,10 @@ const ko: Strings = {
251
251
  },
252
252
 
253
253
  withStatus: {
254
- heading: "With Status",
254
+ heading: "상태 표시",
255
255
  desc: (
256
256
  <>
257
- 체크리스트 leading, 제목·메타, 우측 상태 Badge + chevron. 2줄 본문에선 leading을 <Code>align=&quot;top&quot;</Code>으로 title 라인에 맞춥니다.
257
+ 체크리스트 leading, 제목·메타, 우측 상태 Badge + chevron. 2줄 본문에선 leading을 <Code>align=&quot;top&quot;</Code>으로 title 라인에 맞춰요.
258
258
  </>
259
259
  ),
260
260
  openAria: "열기",
@@ -270,10 +270,10 @@ const ko: Strings = {
270
270
  },
271
271
 
272
272
  withDescription: {
273
- heading: "With Description",
273
+ heading: "설명",
274
274
  desc: (
275
275
  <>
276
- 2줄 본문(제목·서브)과 우측 상태 Badge. 분리선 없이 조밀하게 쌓이는 스트림이라 <Code>size=&quot;sm&quot;</Code>으로 세로 리듬을 좁힙니다.
276
+ 2줄 본문(제목·서브)과 우측 상태 Badge. 분리선 없이 조밀하게 쌓이는 스트림이라 <Code>size=&quot;sm&quot;</Code>으로 세로 리듬을 좁혀요.
277
277
  </>
278
278
  ),
279
279
  extractedBadge: "추출·정리 완료",
@@ -290,10 +290,10 @@ const ko: Strings = {
290
290
  },
291
291
 
292
292
  interactive: {
293
- heading: "Interactive",
293
+ heading: "행 동작",
294
294
  desc: (
295
295
  <>
296
- <Code>href</Code>나 <Code>onClick</Code>을 넘기면 row 전체가 클릭 가능해지고 focus ring이 자동 공급됩니다.
296
+ <Code>href</Code>나 <Code>onClick</Code>을 넘기면 행 전체를 누를 수 있고 키보드 포커스도 표시돼요.
297
297
  </>
298
298
  ),
299
299
  rows: [
@@ -303,8 +303,8 @@ const ko: Strings = {
303
303
  },
304
304
 
305
305
  api: {
306
- heading: "API Reference",
307
- columns: { prop: "Prop", type: "Type", default: "Default", desc: "Description" },
306
+ heading: "속성",
307
+ columns: { prop: "속성", type: "타입", default: "기본값", desc: "설명" },
308
308
  rows: {
309
309
  leading: "좌측 슬롯. Icon·Avatar·IconMark.",
310
310
  trailing: "우측 슬롯. Badge·IconButton 등.",
@@ -28,7 +28,7 @@ get_guide(topic="use-cases/data-metric-card", sections=["사례 목록", "파일
28
28
 
29
29
  ```tsx
30
30
  <section id="use-cases">
31
- <h2>In Use</h2>
31
+ <h2>{pathname?.startsWith("/ko") ? "사용 사례" : "In Use"}</h2>
32
32
  <h3>{t.inUse.commerce}</h3>
33
33
  <p className="desc">{t.inUse.commerceDesc}</p>
34
34
  <ExampleBlock align="column" previewWidth="full"><MetricCardInUse /></ExampleBlock>
@@ -246,22 +246,22 @@ const en: Strings = {
246
246
 
247
247
  const ko: Strings = {
248
248
  title: "Metric Card",
249
- lead: "핵심 수치 하나와 범위·변화량·목표 달성률을 함께 보여줍니다.",
249
+ lead: "핵심 수치 하나와 범위·변화량·목표 달성률을 함께 보여줘요.",
250
250
 
251
251
  usage: {
252
- heading: "Usage",
252
+ heading: "사용법",
253
253
  desc: (
254
254
  <>
255
- <Code>label</Code>과 <Code>value</Code>가 필수. <Code>trend</Code>를 넘기면 큰 수치 옆에 변화량 Tag가 표시됩니다.
255
+ <Code>label</Code>과 <Code>value</Code>가 필수. <Code>trend</Code>를 넘기면 큰 수치 옆에 변화량 Tag가 표시돼요.
256
256
  </>
257
257
  ),
258
258
  descCompareLast30: "지난 30일 대비",
259
259
  },
260
260
 
261
- playgroundDesc: "조합을 눌러보면서 확인하세요.",
261
+ playgroundDesc: "옵션을 바꿔 보세요.",
262
262
 
263
263
  variants: {
264
- heading: "Variants",
264
+ heading: "표현",
265
265
  desc: (
266
266
  <>
267
267
  <Code>line</Code>은 테두리만 있는 가장 조용한 카드, <Code>soft</Code>는 배경 틴트로 그룹에서 두드러짐, <Code>bare</Code>는 chrome 없이 수치만.
@@ -270,10 +270,10 @@ const ko: Strings = {
270
270
  },
271
271
 
272
272
  trend: {
273
- heading: "Trend",
273
+ heading: "변화량",
274
274
  desc: (
275
275
  <>
276
- <Code>up</Code>·<Code>down</Code>·<Code>flat</Code> 세 가지. 변화량 Tag의 색이 방향에 따라 매핑됩니다.
276
+ <Code>up</Code>·<Code>down</Code>·<Code>flat</Code> 세 가지. 변화량 Tag의 색이 방향에 따라 매핑돼요.
277
277
  </>
278
278
  ),
279
279
  upLabel: "상승",
@@ -282,25 +282,25 @@ const ko: Strings = {
282
282
  },
283
283
 
284
284
  minimal: {
285
- heading: "Minimal",
286
- desc: "추세 없이 수치와 선택적 설명만. 가벼운 대시보드 자리나 요약 섹션에 씁니다.",
285
+ heading: "간결한 구성",
286
+ desc: "추세 없이 수치와 선택적 설명만. 가벼운 대시보드 자리나 요약 섹션에 써요.",
287
287
  ordersLabel: "총 주문",
288
288
  avgResponseLabel: "평균 응답",
289
289
  pastHour: "최근 1시간",
290
290
  },
291
291
 
292
292
  inUse: {
293
- commerce: "쇼핑 지표", commerceDesc: "핵심 수치와 시간에 따른 매출 추이를 함께 봅니다.",
294
- returns: "기간별 수익률", returnsDesc: "기간별 수익률을 비교합니다. 점으로 쌓인 막대는 각 시점의 값을 나타냅니다.",
295
- goals: "목표 달성률", goalsDesc: "현재 수치와 목표까지 남은 비율을 함께 표시합니다.",
293
+ commerce: "쇼핑 지표", commerceDesc: "핵심 수치와 시간에 따른 매출 추이를 함께 봐요.",
294
+ returns: "기간별 수익률", returnsDesc: "기간별 수익률을 비교해요. 점으로 쌓인 막대는 각 시점의 값을 나타내요.",
295
+ goals: "목표 달성률", goalsDesc: "현재 수치와 목표까지 남은 비율을 함께 표시해요.",
296
296
  },
297
297
 
298
298
  api: {
299
- heading: "API Reference",
300
- columns: { prop: "Prop", type: "Type", default: "Default", desc: "Description" },
299
+ heading: "속성",
300
+ columns: { prop: "속성", type: "타입", default: "기본값", desc: "설명" },
301
301
  rows: {
302
302
  subtitle: "지표 이름 아래의 범위·기간 정보.",
303
- chart: "숫자 옆의 작은 차트. 링크 카드에는 별도 조작을 넣지 않습니다.",
303
+ chart: "숫자 옆의 작은 차트. 링크 카드에는 별도 조작을 넣지 않아요.",
304
304
  footer: "목표 진행률 등 수치 아래의 추가 정보.",
305
305
  label: "지표 이름.",
306
306
  value: "큰 숫자 본값.",
@@ -308,7 +308,7 @@ const ko: Strings = {
308
308
  icon: "라벨 옆 아이콘.",
309
309
  trend: "델타 라벨 추세 매핑.",
310
310
  deltaLabel: "trend와 함께 쓰이는 숫자 라벨.",
311
- delta: "델타 수동 override. trend 매핑 무시.",
311
+ delta: "변화량을 직접 지정해요. trend의 자동 매핑은 사용하지 않아요.",
312
312
  description: "변화량 아래의 추가 정보.",
313
313
  href: "지정 시 anchor로 렌더.",
314
314
  },
@@ -574,7 +574,7 @@ export default function MetricCardPage() {
574
574
  </section>
575
575
 
576
576
  <section id="use-cases">
577
- <h2>In Use</h2>
577
+ <h2>{pathname?.startsWith("/ko") ? "사용 사례" : "In Use"}</h2>
578
578
  <h3>{t.inUse.commerce}</h3>
579
579
  <p className="desc">{t.inUse.commerceDesc}</p>
580
580
  <ExampleBlock align="column" previewWidth="full"><MetricCardInUse /></ExampleBlock>
@@ -26,7 +26,7 @@ get_guide(topic="use-cases/data-table-row", sections=["사례 목록", "파일
26
26
 
27
27
  ```tsx
28
28
  <section id="in-uses">
29
- <h2>In Uses</h2>
29
+ <h2>{pathname?.startsWith("/ko") ? "사용 사례" : "In Uses"}</h2>
30
30
  <RowInteractionExamples only="table" />
31
31
  </section>
32
32
  ```
@@ -196,33 +196,33 @@ const ko: Strings = {
196
196
  title: "Table Row",
197
197
  lead: (
198
198
  <>
199
- 데이터 그리드의 행. 헤더와 같은 <Code>columns</Code>를 공유해 폭·정렬이 자동으로 맞춰집니다. 셀 콘텐츠는 <Code>TableCell*</Code> 포맷터로 조립합니다.
199
+ 데이터 그리드의 행. 헤더와 같은 <Code>columns</Code>를 공유해 폭·정렬이 자동으로 맞춰져요. 셀 콘텐츠는 <Code>TableCell*</Code> 포맷터로 조립해요.
200
200
  </>
201
201
  ),
202
202
 
203
203
  usage: {
204
- heading: "Usage",
204
+ heading: "사용법",
205
205
  desc: (
206
206
  <>
207
- 헤더가 쓴 <Code>columns</Code>를 그대로 재사용하고 각 셀마다 <Code>render</Code> 콜백만 더합니다. 행은 레이아웃, 포맷터는 텍스트·숫자·배지를 담당합니다.
207
+ 헤더가 쓴 <Code>columns</Code>를 그대로 재사용하고 각 셀마다 <Code>render</Code> 콜백만 더해요. 행은 레이아웃, 포맷터는 텍스트·숫자·배지를 담당해요.
208
208
  </>
209
209
  ),
210
210
  },
211
211
 
212
212
  variants: {
213
- heading: "Variants",
213
+ heading: "표현",
214
214
  desc: (
215
215
  <>
216
- 페이지에 바로 얹히는 자리는 <Code>line</Code>으로 둡니다. <Code>plate</Code>는 카드 안쪽처럼 각 행이 자기 표면이 필요할 때만.
216
+ 페이지에 바로 얹히는 자리는 <Code>line</Code>으로 둬요. <Code>plate</Code>는 카드 안쪽처럼 각 행이 자기 표면이 필요할 때만.
217
217
  </>
218
218
  ),
219
219
  },
220
220
 
221
221
  rowStates: {
222
- heading: "Row States",
222
+ heading: "행 상태",
223
223
  desc: (
224
224
  <>
225
- <Code>active</Code>는 상세가 열린 행 표시로, hover보다 우선합니다. <Code>selected</Code>는 Checkbox 선택, <Code>disabled</Code>는 포인터·키보드 진입을 막습니다.
225
+ <Code>active</Code>는 상세가 열린 행 표시로, hover보다 우선해요. <Code>selected</Code>는 Checkbox 선택, <Code>disabled</Code>는 포인터·키보드 진입을 막아요.
226
226
  </>
227
227
  ),
228
228
  activeLabel: "Active 행",
@@ -231,10 +231,10 @@ const ko: Strings = {
231
231
  },
232
232
 
233
233
  cells: {
234
- heading: "Cell Formatters",
234
+ heading: "셀 표시 형식",
235
235
  desc: (
236
236
  <>
237
- <Code>render</Code> 안쪽에는 <Code>TableCell*</Code> 세트만 둡니다. 행은 레이아웃, 포맷터는 톤·단위를 담당합니다.
237
+ <Code>render</Code> 안쪽에는 <Code>TableCell*</Code> 세트만 둬요. 행은 레이아웃, 포맷터는 톤·단위를 담당해요.
238
238
  </>
239
239
  ),
240
240
  textDefault: "기본",
@@ -255,17 +255,17 @@ const ko: Strings = {
255
255
  },
256
256
 
257
257
  api: {
258
- heading: "API Reference",
259
- columns: { prop: "Prop", type: "Type", default: "Default", desc: "Description" },
258
+ heading: "속성",
259
+ columns: { prop: "속성", type: "타입", default: "기본값", desc: "설명" },
260
260
  rows: {
261
- variant: "헤더 variant와 짝. 같은 테이블에서 섞으면 라운드·구분 규칙이 깨집니다.",
261
+ variant: "헤더 variant와 짝. 같은 테이블에서 섞으면 라운드·구분 규칙이 깨져요.",
262
262
  size: "대부분은 md. 밀도 높은 로그·개발자 도구는 sm, 썸네일이 있는 행에서만 lg.",
263
- columns: "헤더 스펙을 재사용합니다. 각 key에 render 콜백을 더합니다.",
263
+ columns: "헤더 스펙을 재사용해요. 각 key에 render 콜백을 더해요.",
264
264
  data: "render에 전달되는 레코드.",
265
- wrap: "셀 텍스트를 줄바꿈합니다. 기본은 1-line ellipsis.",
266
- selectable: "좌측 Checkbox 셀을 추가하고 체크 클릭과 행 클릭을 분리합니다.",
267
- active: "상세 패널이 열린 행을 표시합니다.",
268
- disabled: "해당 행의 포인터·키보드 진입을 막습니다.",
265
+ wrap: "셀 텍스트를 줄바꿈해요. 기본은 한 줄을 넘으면 끝을 생략해요.",
266
+ selectable: "좌측 Checkbox 셀을 추가하고 체크 클릭과 행 클릭을 분리해요.",
267
+ active: "상세 패널이 열린 행을 표시해요.",
268
+ disabled: "해당 행의 포인터·키보드 진입을 막아요.",
269
269
  },
270
270
  },
271
271
 
@@ -793,7 +793,7 @@ import { TableCellText, TableCellTag } from "@/components/TableCell";
793
793
  </section>
794
794
 
795
795
  <section id="in-uses">
796
- <h2>In Uses</h2>
796
+ <h2>{pathname?.startsWith("/ko") ? "사용 사례" : "In Uses"}</h2>
797
797
  <RowInteractionExamples only="table" />
798
798
  </section>
799
799