@conscience-technology/ovenn 0.7.0 → 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.
- package/assets/components/AIMessage/AIMessage.module.css +21 -0
- package/assets/components/AIMessage/AIMessage.tsx +27 -7
- package/assets/components/AttachmentItem/AttachmentItem.module.css +41 -10
- package/assets/components/AttachmentItem/AttachmentItem.tsx +25 -8
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +9 -10
- package/assets/components/Callout/Callout.module.css +53 -7
- package/assets/components/Callout/Callout.tsx +26 -2
- package/assets/components/Callout/index.ts +1 -1
- package/assets/components/ChatComposer/ChatComposer.module.css +17 -0
- package/assets/components/ChatComposer/ChatComposer.tsx +131 -0
- package/assets/components/ChatComposer/index.ts +2 -0
- package/assets/components/ChatInput/ChatInput.module.css +192 -30
- package/assets/components/ChatInput/ChatInput.tsx +137 -45
- package/assets/components/ChatInput/SendButton.tsx +4 -1
- package/assets/components/ChatInput/index.ts +5 -0
- package/assets/components/ChatMessage/ChatMessage.module.css +19 -0
- package/assets/components/ChatMessage/ChatMessage.tsx +63 -0
- package/assets/components/ChatMessage/index.ts +2 -0
- package/assets/components/ChatReactions/ChatReactions.module.css +15 -0
- package/assets/components/ChatReactions/ChatReactions.tsx +58 -0
- package/assets/components/ChatReactions/index.ts +2 -0
- package/assets/components/CodeBlock/CodeBlock.module.css +106 -10
- package/assets/components/CodeBlock/CodeBlock.tsx +114 -29
- package/assets/components/CodeBlock/SyntaxHighlight.tsx +20 -0
- package/assets/components/CodeBlock/diff-lines.ts +21 -0
- package/assets/components/CodeBlock/index.ts +2 -1
- package/assets/components/CodeBlock/line-preview.ts +7 -0
- package/assets/components/CodeBlock/syntax-highlighter.ts +96 -0
- package/assets/components/CodeBlock/use-syntax-tokens.ts +17 -0
- package/assets/components/ColorField/ColorField.module.css +19 -196
- package/assets/components/ColorField/ColorField.tsx +116 -109
- package/assets/components/Combobox/Combobox.module.css +21 -4
- package/assets/components/Combobox/Combobox.tsx +37 -21
- package/assets/components/CommandPalette/CommandPalette.module.css +1 -1
- package/assets/components/ControlGroup/ControlGroup.module.css +13 -6
- package/assets/components/DatePicker/DateField.tsx +72 -25
- package/assets/components/DatePicker/DatePicker.module.css +28 -59
- package/assets/components/DatePicker/DatePicker.tsx +76 -40
- package/assets/components/Drawer/Drawer.module.css +12 -15
- package/assets/components/Drawer/Drawer.tsx +15 -23
- package/assets/components/EmojiPicker/EmojiGlyph.module.css +2 -0
- package/assets/components/EmojiPicker/EmojiGlyph.tsx +12 -0
- package/assets/components/EmojiPicker/EmojiPicker.module.css +43 -0
- package/assets/components/EmojiPicker/EmojiPicker.tsx +143 -0
- package/assets/components/EmojiPicker/UNICODE-LICENSE.txt +39 -0
- package/assets/components/EmojiPicker/data.ts +41 -0
- package/assets/components/EmojiPicker/emojiData-0.json +1 -0
- package/assets/components/EmojiPicker/emojiData-1.json +1 -0
- package/assets/components/EmojiPicker/emojiData-2.json +1 -0
- package/assets/components/EmojiPicker/emojiData-3.json +1 -0
- package/assets/components/EmojiPicker/emojiData.sources.json +35 -0
- package/assets/components/EmojiPicker/emojiData.ts +8 -0
- package/assets/components/EmojiPicker/emojiFallbacks.json +1 -0
- package/assets/components/EmojiPicker/index.ts +4 -0
- package/assets/components/EmptyState/EmptyState.module.css +2 -2
- package/assets/components/FileIcon/FileIcon.module.css +4 -6
- package/assets/components/Icon/LucideFamilyIcon.tsx +2 -0
- package/assets/components/Icon/SolarFamilyIcon.tsx +4 -0
- package/assets/components/Input/Input.module.css +33 -10
- package/assets/components/Input/Input.tsx +20 -9
- package/assets/components/MessageActions/MessageActions.module.css +2 -2
- package/assets/components/Onboarding/Onboarding.module.css +1 -1
- package/assets/components/ProgressBar/ProgressBar.module.css +38 -4
- package/assets/components/ProgressBar/ProgressBar.tsx +5 -1
- package/assets/components/RadioCard/RadioCard.module.css +18 -0
- package/assets/components/RadioCard/RadioCard.tsx +48 -7
- package/assets/components/Select/Select.module.css +9 -7
- package/assets/components/Select/Select.tsx +15 -2
- package/assets/components/Tabs/Tabs.module.css +1 -1
- package/assets/components/Tabs/Tabs.tsx +2 -2
- package/assets/components/Textarea/Textarea.module.css +28 -231
- package/assets/components/Textarea/Textarea.tsx +2 -2
- package/assets/components/TimePicker/TimePicker.module.css +16 -4
- package/assets/components/TimePicker/TimePicker.tsx +66 -8
- package/assets/components/Toast/Toast.module.css +18 -0
- package/assets/components/Toast/Toast.tsx +1 -1
- package/assets/components/Tooltip/Tooltip.tsx +33 -7
- package/assets/components/UserMessage/UserMessage.module.css +110 -1
- package/assets/components/UserMessage/UserMessage.tsx +138 -16
- package/assets/components/UserMessage/index.ts +4 -0
- package/assets/components/_data.ts +10 -5
- package/assets/components/_utils.css +31 -5
- package/assets/components/component-registry.json +1595 -107
- package/assets/components/index.ts +7 -0
- package/assets/components/tokens.css +83 -0
- package/assets/prompts/ASSEMBLY.md +11 -0
- package/assets/prompts/CATALOG.md +110 -106
- package/assets/prompts/PRINCIPLES.md +11 -1
- package/assets/prompts/TEMPLATE_PREVIEWS.md +21 -0
- package/assets/prompts/WORKFLOW_DESIGN.md +2 -0
- package/assets/prompts/axes/font.md +6 -0
- package/assets/prompts/axes/material.md +1 -1
- package/assets/prompts/axes/motion.md +2 -0
- package/assets/prompts/axes/palette.md +9 -2
- package/assets/prompts/axes/voice.md +4 -0
- package/assets/prompts/components/README.md +3 -3
- package/assets/prompts/components/_variants.md +35 -35
- package/assets/prompts/components/accordion.md +15 -15
- package/assets/prompts/components/ai-message.md +14 -12
- package/assets/prompts/components/app-frame.md +16 -16
- package/assets/prompts/components/attachment-item.md +36 -30
- package/assets/prompts/components/attachment-thumb.md +14 -12
- package/assets/prompts/components/avatar-upload.md +10 -10
- package/assets/prompts/components/avatar.md +16 -16
- package/assets/prompts/components/badge.md +4 -4
- package/assets/prompts/components/breadcrumb.md +24 -24
- package/assets/prompts/components/bubble.md +13 -13
- package/assets/prompts/components/button-group.md +1 -1
- package/assets/prompts/components/button.md +36 -36
- package/assets/prompts/components/calendar.md +29 -29
- package/assets/prompts/components/callout.md +39 -23
- package/assets/prompts/components/canvas-edge.md +5 -2
- package/assets/prompts/components/canvas-node.md +3 -3
- package/assets/prompts/components/canvas.md +5 -2
- package/assets/prompts/components/card.md +21 -21
- package/assets/prompts/components/chart-bar.md +7 -7
- package/assets/prompts/components/chart-pie.md +3 -3
- package/assets/prompts/components/chart-radar.md +3 -3
- package/assets/prompts/components/chart-radial.md +4 -4
- package/assets/prompts/components/chat-composer.md +71 -0
- package/assets/prompts/components/chat-input.md +82 -27
- package/assets/prompts/components/chat-message.md +48 -0
- package/assets/prompts/components/chat-reactions.md +38 -0
- package/assets/prompts/components/checkbox-card.md +3 -3
- package/assets/prompts/components/checkbox.md +17 -17
- package/assets/prompts/components/chip.md +32 -32
- package/assets/prompts/components/code-block.md +109 -66
- package/assets/prompts/components/code.md +4 -4
- package/assets/prompts/components/color-area.md +9 -9
- package/assets/prompts/components/color-field.md +17 -13
- package/assets/prompts/components/color-picker.md +6 -6
- package/assets/prompts/components/color-slider.md +8 -8
- package/assets/prompts/components/color-swatch-picker.md +8 -8
- package/assets/prompts/components/color-swatch.md +9 -9
- package/assets/prompts/components/combobox.md +5 -2
- package/assets/prompts/components/command-palette.md +26 -26
- package/assets/prompts/components/comment.md +5 -2
- package/assets/prompts/components/context-menu.md +22 -22
- package/assets/prompts/components/control-group.md +4 -4
- package/assets/prompts/components/date-picker.md +31 -23
- package/assets/prompts/components/disclosure.md +10 -10
- package/assets/prompts/components/drawer.md +19 -18
- package/assets/prompts/components/dropdown-menu.md +21 -21
- package/assets/prompts/components/emoji-picker.md +45 -0
- package/assets/prompts/components/empty-state.md +20 -18
- package/assets/prompts/components/event-chip.md +11 -11
- package/assets/prompts/components/event-list-item.md +21 -21
- package/assets/prompts/components/file-icon.md +18 -19
- package/assets/prompts/components/gallery-item.md +19 -19
- package/assets/prompts/components/generated-image.md +10 -10
- package/assets/prompts/components/hint.md +19 -19
- package/assets/prompts/components/icon-button.md +16 -16
- package/assets/prompts/components/icon.md +12 -9
- package/assets/prompts/components/input.md +49 -46
- package/assets/prompts/components/kanban.md +34 -34
- package/assets/prompts/components/list-item.md +39 -39
- package/assets/prompts/components/menu-item.md +41 -41
- package/assets/prompts/components/message-actions.md +6 -6
- package/assets/prompts/components/message-quote.md +7 -7
- package/assets/prompts/components/message-sources.md +10 -10
- package/assets/prompts/components/message-state.md +17 -17
- package/assets/prompts/components/message-table.md +5 -5
- package/assets/prompts/components/mini-calendar.md +6 -1
- package/assets/prompts/components/modal.md +39 -39
- package/assets/prompts/components/multi-select.md +4 -1
- package/assets/prompts/components/onboarding.md +19 -19
- package/assets/prompts/components/page-header.md +31 -31
- package/assets/prompts/components/pagination.md +17 -17
- package/assets/prompts/components/progress-bar.md +14 -11
- package/assets/prompts/components/quotation-bar.md +10 -10
- package/assets/prompts/components/radio-card.md +7 -6
- package/assets/prompts/components/radio.md +9 -9
- package/assets/prompts/components/select.md +28 -25
- package/assets/prompts/components/shortcut.md +11 -11
- package/assets/prompts/components/sidebar.md +56 -56
- package/assets/prompts/components/skeleton.md +7 -4
- package/assets/prompts/components/slider.md +18 -18
- package/assets/prompts/components/spinner.md +16 -16
- package/assets/prompts/components/stepper.md +14 -14
- package/assets/prompts/components/switch.md +19 -20
- package/assets/prompts/components/tab-strip.md +31 -31
- package/assets/prompts/components/table-cell.md +4 -4
- package/assets/prompts/components/table-header.md +16 -16
- package/assets/prompts/components/table-row-edit.md +19 -19
- package/assets/prompts/components/table-row-select.md +9 -9
- package/assets/prompts/components/table-row.md +18 -18
- package/assets/prompts/components/tabs.md +26 -25
- package/assets/prompts/components/tag.md +6 -6
- package/assets/prompts/components/textarea.md +16 -15
- package/assets/prompts/components/time-picker.md +21 -14
- package/assets/prompts/components/timeline-view.md +4 -4
- package/assets/prompts/components/toast.md +42 -41
- package/assets/prompts/components/toolbar.md +23 -23
- package/assets/prompts/components/tooltip.md +15 -14
- package/assets/prompts/components/top-loader.md +11 -11
- package/assets/prompts/components/topbar.md +35 -35
- package/assets/prompts/components/tree-nav.md +9 -9
- package/assets/prompts/components/user-message.md +23 -12
- package/assets/prompts/design-examples/README.md +1 -1
- package/assets/prompts/design-examples/ai-chat-full-page.png +0 -0
- package/assets/prompts/design-examples/catalog.json +124 -1
- package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.module.css +346 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.tsx +375 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/FullPageChat.tsx +8 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/REFERENCE.md +19 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/useChatDemo.ts +139 -0
- package/assets/prompts/design-examples/sources/ai-chat-full-page/useDemoTextStream.ts +30 -0
- package/assets/prompts/primitives/emerge.md +2 -0
- package/assets/prompts/templates/README.md +1 -1
- package/assets/prompts/templates/ains.md +7 -0
- package/assets/prompts/templates/minimal.md +6 -0
- package/assets/prompts/templates/onboarding.md +156 -0
- package/assets/prompts/templates/workspace.md +13 -8
- package/assets/prompts/tokens/color.md +7 -2
- package/assets/prompts/tokens/radius.md +22 -0
- package/assets/prompts/use-cases/chart-chart-area.md +40 -40
- package/assets/prompts/use-cases/chart-chart-bar.md +34 -34
- package/assets/prompts/use-cases/chart-chart-pie.md +14 -14
- package/assets/prompts/use-cases/chart-chart-radar.md +24 -24
- package/assets/prompts/use-cases/chart-chart-radial.md +14 -14
- package/assets/prompts/use-cases/chart-segmented-chart.md +32 -32
- package/assets/prompts/use-cases/chat-chat-composer.md +529 -0
- package/assets/prompts/use-cases/chat-chat-input.md +1766 -0
- package/assets/prompts/use-cases/data-comment.md +39 -39
- package/assets/prompts/use-cases/data-data-table.md +34 -34
- package/assets/prompts/use-cases/data-list-item.md +16 -16
- package/assets/prompts/use-cases/data-metric-card.md +18 -18
- package/assets/prompts/use-cases/data-table-row.md +19 -19
- package/assets/prompts/use-cases/data-table-toolbar.md +10 -10
- package/assets/prompts/use-cases/feedback-drawer.md +35 -30
- package/assets/prompts/use-cases/feedback-progress-bar.md +23 -18
- package/assets/prompts/use-cases/general-toolbar.md +16 -16
- package/assets/prompts/use-cases/general-tooltip.md +26 -26
- package/assets/prompts/use-cases/input-checkbox.md +27 -27
- package/assets/prompts/use-cases/structure-card.md +9 -9
- package/assets/prompts/use-cases/structure-page-header.md +17 -17
- package/assets/prompts/use-cases/structure-sidebar.md +20 -20
- package/assets/prompts/use-cases/structure-topbar.md +38 -42
- package/assets/skills/ovenn-wireframe/SKILL.md +17 -4
- package/package.json +6 -2
- package/src/utils/design-examples.js +3 -4
- package/assets/prompts/templates/glass-button.md +0 -337
|
@@ -28,7 +28,7 @@ get_guide(topic="use-cases/chart-chart-radar", sections=["사례 목록", "파
|
|
|
28
28
|
|
|
29
29
|
```tsx
|
|
30
30
|
<section id="use-cases">
|
|
31
|
-
<h2>In Use</h2>
|
|
31
|
+
<h2>{!en ? "사용 사례" : "In Use"}</h2>
|
|
32
32
|
<h3>{en ? "Product quality card" : "제품 품질 카드"}</h3>
|
|
33
33
|
<ExampleBlock previewWidth="full"><QualityCardExample /></ExampleBlock>
|
|
34
34
|
</section>
|
|
@@ -85,30 +85,30 @@ const en: Strings = {
|
|
|
85
85
|
|
|
86
86
|
const ko: Strings = {
|
|
87
87
|
title: "Radar Chart",
|
|
88
|
-
lead: "여러 항목의 강점과 약점을 한눈에
|
|
88
|
+
lead: "여러 항목의 강점과 약점을 한눈에 비교해요. 정확한 수치 비교에는 Bar Chart를 사용해요.",
|
|
89
89
|
months: ["1월", "2월", "3월", "4월", "5월", "6월"],
|
|
90
90
|
desktop: "데스크톱",
|
|
91
91
|
mobile: "모바일",
|
|
92
92
|
usage: {
|
|
93
|
-
heading: "
|
|
94
|
-
desc: "개별 값의 차이보다 전체적인 강약을 비교할 때
|
|
93
|
+
heading: "사용법",
|
|
94
|
+
desc: "개별 값의 차이보다 전체적인 강약을 비교할 때 사용해요.",
|
|
95
95
|
},
|
|
96
96
|
shape: {
|
|
97
97
|
heading: "점과 라벨",
|
|
98
|
-
dots: "개별 지점의 값을 강조해야 할 때 점을
|
|
99
|
-
linesOnly: "영역이 서로 가려지면 채움 대신 윤곽선으로
|
|
100
|
-
customLabel: "항목명이 길면 짧게 줄여 라벨이 겹치지 않게
|
|
98
|
+
dots: "개별 지점의 값을 강조해야 할 때 점을 표시해요.",
|
|
99
|
+
linesOnly: "영역이 서로 가려지면 채움 대신 윤곽선으로 비교해요.",
|
|
100
|
+
customLabel: "항목명이 길면 짧게 줄여 라벨이 겹치지 않게 해요.",
|
|
101
101
|
},
|
|
102
102
|
grid: {
|
|
103
103
|
heading: "격자",
|
|
104
|
-
desc: "중심에서 떨어진 거리를 비교할 수 있도록 격자를
|
|
104
|
+
desc: "중심에서 떨어진 거리를 비교할 수 있도록 격자를 표시해요.",
|
|
105
105
|
},
|
|
106
106
|
multiple: {
|
|
107
107
|
heading: "범례",
|
|
108
|
-
desc: "겹쳐 비교하는 데이터 계열은 두 개로
|
|
108
|
+
desc: "겹쳐 비교하는 데이터 계열은 두 개로 제한해요. 범례를 선택하면 해당 계열만 표시하고, 다시 선택하면 둘 다 표시해요.",
|
|
109
109
|
},
|
|
110
110
|
api: {
|
|
111
|
-
heading: "
|
|
111
|
+
heading: "속성",
|
|
112
112
|
desc: "윤곽선과 격자 옵션은",
|
|
113
113
|
official: "Radar 문서",
|
|
114
114
|
},
|
|
@@ -361,7 +361,7 @@ import { ChartContainer } from "@/components/Chart";
|
|
|
361
361
|
</section>
|
|
362
362
|
|
|
363
363
|
<section id="use-cases">
|
|
364
|
-
<h2>In Use</h2>
|
|
364
|
+
<h2>{!en ? "사용 사례" : "In Use"}</h2>
|
|
365
365
|
<h3>{en ? "Product quality card" : "제품 품질 카드"}</h3>
|
|
366
366
|
<ExampleBlock previewWidth="full"><QualityCardExample /></ExampleBlock>
|
|
367
367
|
</section>
|
|
@@ -374,32 +374,32 @@ import { ChartContainer } from "@/components/Chart";
|
|
|
374
374
|
<h3>Radar</h3>
|
|
375
375
|
<DocsTable
|
|
376
376
|
columns={[
|
|
377
|
-
{ key: "prop", label: "Prop", width: 160 },
|
|
378
|
-
{ key: "type", label: "Type", flex: true, minWidth: 220 },
|
|
377
|
+
{ key: "prop", label: !en ? "속성" : "Prop", width: 160 },
|
|
378
|
+
{ key: "type", label: !en ? "타입" : "Type", flex: true, minWidth: 220 },
|
|
379
379
|
{ key: "default", label: en ? "Default" : "기본값", width: 120 },
|
|
380
380
|
{ key: "desc", label: en ? "Description" : "설명", flex: true, minWidth: 260 },
|
|
381
381
|
]}
|
|
382
382
|
rows={[
|
|
383
|
-
{ prop: "dataKey", type: "DataKey", default: "-", desc: en ? "Numeric series key." : "수치를 읽을 데이터
|
|
384
|
-
{ prop: "fill", type: "string", default: "-", desc: en ? "Area fill color." : "영역을 채울
|
|
385
|
-
{ prop: "fillOpacity", type: "number", default: "-", desc: en ? "Area translucency." : "채움의 불투명도를
|
|
386
|
-
{ prop: "stroke", type: "string", default: "-", desc: en ? "Outline color." : "윤곽선의
|
|
387
|
-
{ prop: "dot", type: "boolean | object | function", default: "false", desc: en ? "Vertex marker." : "각 지점의 표시를
|
|
388
|
-
{ prop: "connectNulls", type: "boolean", default: "false", desc: en ? "Connect across missing values." : "누락된 값 사이의 선을
|
|
383
|
+
{ prop: "dataKey", type: "DataKey", default: "-", desc: en ? "Numeric series key." : "수치를 읽을 데이터 키예요." },
|
|
384
|
+
{ prop: "fill", type: "string", default: "-", desc: en ? "Area fill color." : "영역을 채울 색상이에요." },
|
|
385
|
+
{ prop: "fillOpacity", type: "number", default: "-", desc: en ? "Area translucency." : "채움의 불투명도를 지정해요." },
|
|
386
|
+
{ prop: "stroke", type: "string", default: "-", desc: en ? "Outline color." : "윤곽선의 색상이에요." },
|
|
387
|
+
{ prop: "dot", type: "boolean | object | function", default: "false", desc: en ? "Vertex marker." : "각 지점의 표시를 설정해요." },
|
|
388
|
+
{ prop: "connectNulls", type: "boolean", default: "false", desc: en ? "Connect across missing values." : "누락된 값 사이의 선을 연결해요." },
|
|
389
389
|
]}
|
|
390
390
|
/>
|
|
391
391
|
<h3>PolarGrid</h3>
|
|
392
392
|
<DocsTable
|
|
393
393
|
columns={[
|
|
394
|
-
{ key: "prop", label: "Prop", width: 160 },
|
|
395
|
-
{ key: "type", label: "Type", flex: true, minWidth: 220 },
|
|
394
|
+
{ key: "prop", label: !en ? "속성" : "Prop", width: 160 },
|
|
395
|
+
{ key: "type", label: !en ? "타입" : "Type", flex: true, minWidth: 220 },
|
|
396
396
|
{ key: "default", label: en ? "Default" : "기본값", width: 120 },
|
|
397
397
|
{ key: "desc", label: en ? "Description" : "설명", flex: true, minWidth: 260 },
|
|
398
398
|
]}
|
|
399
399
|
rows={[
|
|
400
|
-
{ prop: "gridType", type: '"polygon" | "circle"', default: '"polygon"', desc: en ? "Grid geometry." : "격자의 형태를
|
|
401
|
-
{ prop: "radialLines", type: "boolean", default: "true", desc: en ? "Center-to-edge spokes." : "중심에서 바깥으로 이어지는 선을
|
|
402
|
-
{ prop: "polarRadius", type: "number[]", default: "-", desc: en ? "Explicit ring radii." : "격자 원의 반지름을
|
|
400
|
+
{ prop: "gridType", type: '"polygon" | "circle"', default: '"polygon"', desc: en ? "Grid geometry." : "격자의 형태를 선택해요." },
|
|
401
|
+
{ prop: "radialLines", type: "boolean", default: "true", desc: en ? "Center-to-edge spokes." : "중심에서 바깥으로 이어지는 선을 표시해요." },
|
|
402
|
+
{ prop: "polarRadius", type: "number[]", default: "-", desc: en ? "Explicit ring radii." : "격자 원의 반지름을 지정해요." },
|
|
403
403
|
]}
|
|
404
404
|
/>
|
|
405
405
|
</section>
|
|
@@ -28,7 +28,7 @@ get_guide(topic="use-cases/chart-chart-radial", sections=["사례 목록", "파
|
|
|
28
28
|
|
|
29
29
|
```tsx
|
|
30
30
|
<section id="use-cases">
|
|
31
|
-
<h2>In Use</h2>
|
|
31
|
+
<h2>{!en ? "사용 사례" : "In Use"}</h2>
|
|
32
32
|
<h3>{en ? "Monthly goal card" : "월간 목표 카드"}</h3>
|
|
33
33
|
<ExampleBlock previewWidth="full"><GoalCardExample /></ExampleBlock>
|
|
34
34
|
</section>
|
|
@@ -84,7 +84,7 @@ const en: Strings = {
|
|
|
84
84
|
|
|
85
85
|
const ko: Strings = {
|
|
86
86
|
title: "Radial Chart",
|
|
87
|
-
lead: "진행률이나 소수 항목의 수치를 원형 막대로
|
|
87
|
+
lead: "진행률이나 소수 항목의 수치를 원형 막대로 보여줘요. 정확한 차이를 비교할 때는 Bar Chart를 사용해요.",
|
|
88
88
|
browsers: ["크롬", "사파리", "파이어폭스", "엣지", "기타"],
|
|
89
89
|
visitors: "방문자",
|
|
90
90
|
completion: "완료율",
|
|
@@ -92,19 +92,19 @@ const ko: Strings = {
|
|
|
92
92
|
mobile: "모바일",
|
|
93
93
|
seriesLegend: "시리즈 범례",
|
|
94
94
|
usage: {
|
|
95
|
-
heading: "
|
|
96
|
-
desc: "정확한 수치 차이보다 전체 흐름을 간결하게 보여줄 때
|
|
95
|
+
heading: "사용법",
|
|
96
|
+
desc: "정확한 수치 차이보다 전체 흐름을 간결하게 보여줄 때 사용해요.",
|
|
97
97
|
},
|
|
98
98
|
center: {
|
|
99
99
|
heading: "중앙 값",
|
|
100
|
-
desc: "하나의 진행률을 보여줄 때는 현재 값을 중앙에
|
|
100
|
+
desc: "하나의 진행률을 보여줄 때는 현재 값을 중앙에 표시해요.",
|
|
101
101
|
},
|
|
102
102
|
stacked: {
|
|
103
103
|
heading: "누적",
|
|
104
|
-
desc: "같은 전체를 이루는 두 항목만 쌓고, 구분할 수 있도록 범례를
|
|
104
|
+
desc: "같은 전체를 이루는 두 항목만 쌓고, 구분할 수 있도록 범례를 표시해요.",
|
|
105
105
|
},
|
|
106
106
|
api: {
|
|
107
|
-
heading: "
|
|
107
|
+
heading: "속성",
|
|
108
108
|
desc: "원형 막대와 배경 트랙 옵션은",
|
|
109
109
|
official: "RadialBar 문서",
|
|
110
110
|
},
|
|
@@ -581,7 +581,7 @@ import { ChartContainer } from "@/components/Chart";
|
|
|
581
581
|
</section>
|
|
582
582
|
|
|
583
583
|
<section id="use-cases">
|
|
584
|
-
<h2>In Use</h2>
|
|
584
|
+
<h2>{!en ? "사용 사례" : "In Use"}</h2>
|
|
585
585
|
<h3>{en ? "Monthly goal card" : "월간 목표 카드"}</h3>
|
|
586
586
|
<ExampleBlock previewWidth="full"><GoalCardExample /></ExampleBlock>
|
|
587
587
|
</section>
|
|
@@ -593,16 +593,16 @@ import { ChartContainer } from "@/components/Chart";
|
|
|
593
593
|
</p>
|
|
594
594
|
<DocsTable
|
|
595
595
|
columns={[
|
|
596
|
-
{ key: "prop", label: "Prop", width: 160 },
|
|
597
|
-
{ key: "type", label: "Type", flex: true, minWidth: 220 },
|
|
596
|
+
{ key: "prop", label: !en ? "속성" : "Prop", width: 160 },
|
|
597
|
+
{ key: "type", label: !en ? "타입" : "Type", flex: true, minWidth: 220 },
|
|
598
598
|
{ key: "default", label: en ? "Default" : "기본값", width: 120 },
|
|
599
599
|
{ key: "desc", label: en ? "Description" : "설명", flex: true, minWidth: 260 },
|
|
600
600
|
]}
|
|
601
601
|
rows={[
|
|
602
|
-
{ prop: "dataKey", type: "DataKey", default: "-", desc: en ? "Numeric value key." : "수치를 읽을 데이터
|
|
603
|
-
{ prop: "background", type: "boolean | object", default: "false", desc: en ? "Remaining-value track." : "남은 비중의 배경 트랙을
|
|
604
|
-
{ prop: "cornerRadius", type: "number | string", default: "0", desc: en ? "Arc end rounding." : "막대 끝의 둥근 정도를
|
|
605
|
-
{ prop: "stackId", type: "string | number", default: "-", desc: en ? "Shared radial stack." : "같은 값으로 지정한 막대를
|
|
602
|
+
{ prop: "dataKey", type: "DataKey", default: "-", desc: en ? "Numeric value key." : "수치를 읽을 데이터 키예요." },
|
|
603
|
+
{ prop: "background", type: "boolean | object", default: "false", desc: en ? "Remaining-value track." : "남은 비중의 배경 트랙을 표시해요." },
|
|
604
|
+
{ prop: "cornerRadius", type: "number | string", default: "0", desc: en ? "Arc end rounding." : "막대 끝의 둥근 정도를 지정해요." },
|
|
605
|
+
{ prop: "stackId", type: "string | number", default: "-", desc: en ? "Shared radial stack." : "같은 값으로 지정한 막대를 쌓아요." },
|
|
606
606
|
]}
|
|
607
607
|
/>
|
|
608
608
|
</section>
|
|
@@ -26,16 +26,16 @@ get_guide(topic="use-cases/chart-segmented-chart", sections=["사례 목록", "
|
|
|
26
26
|
|
|
27
27
|
```tsx
|
|
28
28
|
<section id="use-cases">
|
|
29
|
-
<h2>In Use</h2>
|
|
29
|
+
<h2>{!en ? "사용 사례" : "In Use"}</h2>
|
|
30
30
|
<h3>{en ? "Deal pipeline" : "거래 파이프라인"}</h3>
|
|
31
|
-
<p className="desc">{en ? "Use when comparing both deal value and deal count across stages." : "단계별 금액 비중과 거래 건수를 함께 비교할 때
|
|
31
|
+
<p className="desc">{en ? "Use when comparing both deal value and deal count across stages." : "단계별 금액 비중과 거래 건수를 함께 비교할 때 사용해요."}</p>
|
|
32
32
|
<ExampleBlock>
|
|
33
33
|
<div className={styles.chart}>
|
|
34
34
|
<SegmentedChart title="Deal pipeline" showSummary data={pipelineData} unit={unit} caption={`${count} deals total`} aria-label="Deal pipeline" />
|
|
35
35
|
</div>
|
|
36
36
|
</ExampleBlock>
|
|
37
37
|
<h3>{en ? "Deal pipeline card" : "거래 파이프라인 카드"}</h3>
|
|
38
|
-
<p className="desc">{en ? "Use a card when the chart needs its own place in a dashboard." : "대시보드의 독립 지표로 배치할 때는 카드로 감싸
|
|
38
|
+
<p className="desc">{en ? "Use a card when the chart needs its own place in a dashboard." : "대시보드의 독립 지표로 배치할 때는 카드로 감싸 사용해요."}</p>
|
|
39
39
|
<ExampleBlock>
|
|
40
40
|
<PipelineCardExample lang="en" />
|
|
41
41
|
</ExampleBlock>
|
|
@@ -100,10 +100,10 @@ export default function SegmentedChartPage() {
|
|
|
100
100
|
|
|
101
101
|
return <>
|
|
102
102
|
<h1 className="page-title">Segmented Chart</h1>
|
|
103
|
-
<p className="page-lead">{en ? "Shows the parts of a whole in one segmented bar with a value breakdown." : "전체 구성비를 분할 막대와 항목별 수치로
|
|
103
|
+
<p className="page-lead">{en ? "Shows the parts of a whole in one segmented bar with a value breakdown." : "전체 구성비를 분할 막대와 항목별 수치로 보여줘요."}</p>
|
|
104
104
|
<section id="usage" className="section-first">
|
|
105
|
-
<h2>Usage</h2>
|
|
106
|
-
<p className="desc">{en ? "Compare shares of one total, rather than conversion rates between stages." : "단계 간 전환율이 아니라 전체에서 차지하는 비중을
|
|
105
|
+
<h2>{!en ? "사용법" : "Usage"}</h2>
|
|
106
|
+
<p className="desc">{en ? "Compare shares of one total, rather than conversion rates between stages." : "단계 간 전환율이 아니라 전체에서 차지하는 비중을 비교해요."}</p>
|
|
107
107
|
<ExampleBlock code={`import { SegmentedChart } from "@/components/SegmentedChart";
|
|
108
108
|
|
|
109
109
|
<SegmentedChart data={data} unit="× KRW 10k" aria-label="Stage distribution" />`}>
|
|
@@ -128,7 +128,7 @@ export default function SegmentedChartPage() {
|
|
|
128
128
|
</Playground>
|
|
129
129
|
<section id="states">
|
|
130
130
|
<h2>{en ? "Empty and zero values" : "빈 데이터와 0값"}</h2>
|
|
131
|
-
<p className="desc">{en ? "Keep missing data distinct from a measured value of zero." : "데이터가 없는 상태와 측정값이 0인 상태를
|
|
131
|
+
<p className="desc">{en ? "Keep missing data distinct from a measured value of zero." : "데이터가 없는 상태와 측정값이 0인 상태를 구분해요."}</p>
|
|
132
132
|
<ExampleBlock code={`<SegmentedChart data={[]} emptyLabel="No deals yet" />
|
|
133
133
|
<SegmentedChart data={[{ id: "pending", label: "Pending review", value: 0 }]} unit="deals" />`}>
|
|
134
134
|
<div className={styles.states}>
|
|
@@ -142,60 +142,60 @@ export default function SegmentedChartPage() {
|
|
|
142
142
|
</ExampleBlock>
|
|
143
143
|
</section>
|
|
144
144
|
<section id="use-cases">
|
|
145
|
-
<h2>In Use</h2>
|
|
145
|
+
<h2>{!en ? "사용 사례" : "In Use"}</h2>
|
|
146
146
|
<h3>{en ? "Deal pipeline" : "거래 파이프라인"}</h3>
|
|
147
|
-
<p className="desc">{en ? "Use when comparing both deal value and deal count across stages." : "단계별 금액 비중과 거래 건수를 함께 비교할 때
|
|
147
|
+
<p className="desc">{en ? "Use when comparing both deal value and deal count across stages." : "단계별 금액 비중과 거래 건수를 함께 비교할 때 사용해요."}</p>
|
|
148
148
|
<ExampleBlock>
|
|
149
149
|
<div className={styles.chart}>
|
|
150
150
|
<SegmentedChart title="Deal pipeline" showSummary data={pipelineData} unit={unit} caption={`${count} deals total`} aria-label="Deal pipeline" />
|
|
151
151
|
</div>
|
|
152
152
|
</ExampleBlock>
|
|
153
153
|
<h3>{en ? "Deal pipeline card" : "거래 파이프라인 카드"}</h3>
|
|
154
|
-
<p className="desc">{en ? "Use a card when the chart needs its own place in a dashboard." : "대시보드의 독립 지표로 배치할 때는 카드로 감싸
|
|
154
|
+
<p className="desc">{en ? "Use a card when the chart needs its own place in a dashboard." : "대시보드의 독립 지표로 배치할 때는 카드로 감싸 사용해요."}</p>
|
|
155
155
|
<ExampleBlock>
|
|
156
156
|
<PipelineCardExample lang="en" />
|
|
157
157
|
</ExampleBlock>
|
|
158
158
|
</section>
|
|
159
159
|
|
|
160
160
|
<section id="api">
|
|
161
|
-
<h2>API Reference</h2>
|
|
162
|
-
<p className="desc">{en ? "Use the selected item identifier and callback together to control selection." : "선택 상태를 제어할 때는 항목 식별자와 선택 콜백을 함께
|
|
161
|
+
<h2>{!en ? "속성" : "API Reference"}</h2>
|
|
162
|
+
<p className="desc">{en ? "Use the selected item identifier and callback together to control selection." : "선택 상태를 제어할 때는 항목 식별자와 선택 콜백을 함께 사용해요."}</p>
|
|
163
163
|
<h3>SegmentedChart</h3>
|
|
164
164
|
<DocsTable
|
|
165
165
|
columns={[
|
|
166
|
-
{ key: "prop", label: "Prop", width: 160 },
|
|
167
|
-
{ key: "type", label: "Type", flex: true, minWidth: 200 },
|
|
166
|
+
{ key: "prop", label: !en ? "속성" : "Prop", width: 160 },
|
|
167
|
+
{ key: "type", label: !en ? "타입" : "Type", flex: true, minWidth: 200 },
|
|
168
168
|
{ key: "default", label: en ? "Default" : "기본값", width: 120 },
|
|
169
169
|
{ key: "desc", label: en ? "Description" : "설명", flex: true, minWidth: 240 },
|
|
170
170
|
]}
|
|
171
171
|
rows={[
|
|
172
|
-
{ prop: <Code>animateIn</Code>, type: "boolean", default: "true", desc: en ? "Fills the bar once when it first enters the viewport." : "화면에 처음 나타날 때 막대를 한 번
|
|
173
|
-
{ prop: <Code>data</Code>, type: "readonly SegmentedChartItem[]", default: "-", desc: en ? "Values that make up the whole.": "전체를 구성하는 항목별
|
|
174
|
-
{ prop: <Code>title</Code>, type: "ReactNode", default: "-", desc: en ? "Optional heading above the chart.": "차트 위에 표시할
|
|
175
|
-
{ prop: <Code>showSummary</Code>, type: "boolean", default: "false", desc: en ? "Shows the total or selected value above the bar.": "막대 위에 합계나 선택한 값을
|
|
176
|
-
{ prop: <Code>unit</Code>, type: "string", default: "-", desc: en ? "Unit shown beside each value.": "수치 옆에 표시할
|
|
177
|
-
{ prop: <Code>caption</Code>, type: "ReactNode", default: "-", desc: en ? "Secondary text shown with the summary.": "요약 값과 함께 표시할 보조
|
|
178
|
-
{ prop: <Code>selectedId</Code>, type: "string", default: "-", desc: en ? "Identifier of the selected item.": "선택한 항목의
|
|
179
|
-
{ prop: <Code>onSegmentClick</Code>, type: "(item: SegmentedChartItem) => void", default: "-", desc: en ? "Receives the selected item when a legend row is activated.": "범례 항목을 선택하면 해당 항목을
|
|
180
|
-
{ prop: <Code>locale</Code>, type: "string", default: "\"ko-KR\"", desc: en ? "Locale used to format numbers.": "숫자 표기에 사용할
|
|
181
|
-
{ prop: <Code>formatValue</Code>, type: "(value: number) => string", default: "-", desc: en ? "Custom number formatter.": "숫자의 표시 형식을 직접
|
|
182
|
-
{ prop: <Code>emptyLabel</Code>, type: "string", default: "\"표시할 데이터가
|
|
172
|
+
{ prop: <Code>animateIn</Code>, type: "boolean", default: "true", desc: en ? "Fills the bar once when it first enters the viewport." : "화면에 처음 나타날 때 막대를 한 번 채워요." },
|
|
173
|
+
{ prop: <Code>data</Code>, type: "readonly SegmentedChartItem[]", default: "-", desc: en ? "Values that make up the whole.": "전체를 구성하는 항목별 수치예요." },
|
|
174
|
+
{ prop: <Code>title</Code>, type: "ReactNode", default: "-", desc: en ? "Optional heading above the chart.": "차트 위에 표시할 제목이에요." },
|
|
175
|
+
{ prop: <Code>showSummary</Code>, type: "boolean", default: "false", desc: en ? "Shows the total or selected value above the bar.": "막대 위에 합계나 선택한 값을 표시해요." },
|
|
176
|
+
{ prop: <Code>unit</Code>, type: "string", default: "-", desc: en ? "Unit shown beside each value.": "수치 옆에 표시할 단위예요." },
|
|
177
|
+
{ prop: <Code>caption</Code>, type: "ReactNode", default: "-", desc: en ? "Secondary text shown with the summary.": "요약 값과 함께 표시할 보조 정보여요." },
|
|
178
|
+
{ prop: <Code>selectedId</Code>, type: "string", default: "-", desc: en ? "Identifier of the selected item.": "선택한 항목의 식별자예요." },
|
|
179
|
+
{ prop: <Code>onSegmentClick</Code>, type: "(item: SegmentedChartItem) => void", default: "-", desc: en ? "Receives the selected item when a legend row is activated.": "범례 항목을 선택하면 해당 항목을 전달해요." },
|
|
180
|
+
{ prop: <Code>locale</Code>, type: "string", default: "\"ko-KR\"", desc: en ? "Locale used to format numbers.": "숫자 표기에 사용할 언어·지역이에요." },
|
|
181
|
+
{ prop: <Code>formatValue</Code>, type: "(value: number) => string", default: "-", desc: en ? "Custom number formatter.": "숫자의 표시 형식을 직접 지정해요." },
|
|
182
|
+
{ prop: <Code>emptyLabel</Code>, type: "string", default: "\"표시할 데이터가 없어요\"", desc: en ? "Message shown when there are no items.": "항목이 없을 때 표시할 문구예요." },
|
|
183
183
|
]}
|
|
184
184
|
/>
|
|
185
185
|
<h3>SegmentedChartItem</h3>
|
|
186
186
|
<DocsTable
|
|
187
187
|
columns={[
|
|
188
|
-
{ key: "prop", label: "Prop", width: 160 },
|
|
189
|
-
{ key: "type", label: "Type", flex: true, minWidth: 200 },
|
|
188
|
+
{ key: "prop", label: !en ? "속성" : "Prop", width: 160 },
|
|
189
|
+
{ key: "type", label: !en ? "타입" : "Type", flex: true, minWidth: 200 },
|
|
190
190
|
{ key: "default", label: en ? "Default" : "기본값", width: 120 },
|
|
191
191
|
{ key: "desc", label: en ? "Description" : "설명", flex: true, minWidth: 240 },
|
|
192
192
|
]}
|
|
193
193
|
rows={[
|
|
194
|
-
{ prop: <Code>id</Code>, type: "string", default: "-", desc: en ? "Unique, stable item identifier." : "항목을 구분하는 고유한
|
|
195
|
-
{ prop: <Code>label</Code>, type: "string", default: "-", desc: en ? "Item name shown in the legend." : "범례에 표시할
|
|
196
|
-
{ prop: <Code>value</Code>, type: "number", default: "-", desc: en ? "Finite, non-negative value used to calculate the share." : "비중 계산에 사용할 0 이상의 유한한
|
|
197
|
-
{ prop: <Code>description</Code>, type: "ReactNode", default: "-", desc: en ? "Optional secondary detail, such as a deal count." : "거래 건수처럼 함께 표시할 보조
|
|
198
|
-
{ prop: <Code>color</Code>, type: "string", default: "-", desc: en ? "Item color; omitted values use the default color sequence." : "색상을 생략하면 기본 색상 순서를
|
|
194
|
+
{ prop: <Code>id</Code>, type: "string", default: "-", desc: en ? "Unique, stable item identifier." : "항목을 구분하는 고유한 식별자예요." },
|
|
195
|
+
{ prop: <Code>label</Code>, type: "string", default: "-", desc: en ? "Item name shown in the legend." : "범례에 표시할 항목명이에요." },
|
|
196
|
+
{ prop: <Code>value</Code>, type: "number", default: "-", desc: en ? "Finite, non-negative value used to calculate the share." : "비중 계산에 사용할 0 이상의 유한한 수치예요." },
|
|
197
|
+
{ prop: <Code>description</Code>, type: "ReactNode", default: "-", desc: en ? "Optional secondary detail, such as a deal count." : "거래 건수처럼 함께 표시할 보조 정보여요." },
|
|
198
|
+
{ prop: <Code>color</Code>, type: "string", default: "-", desc: en ? "Item color; omitted values use the default color sequence." : "색상을 생략하면 기본 색상 순서를 사용해요." },
|
|
199
199
|
]}
|
|
200
200
|
/>
|
|
201
201
|
</section>
|