@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
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# onboarding@1.0.0
|
|
2
|
+
|
|
3
|
+
생성된 설치 아티팩트. 변형과 exact 보존 정책은 PRINCIPLES/ASSEMBLY 원본을 따른다.
|
|
4
|
+
|
|
5
|
+
## OnboardingSidebar.tsx
|
|
6
|
+
|
|
7
|
+
```tsx
|
|
8
|
+
"use client";
|
|
9
|
+
|
|
10
|
+
import { useEffect, useRef, useState, type ReactNode } from "react";
|
|
11
|
+
import { Stepper } from "@/components/ovenn/Stepper";
|
|
12
|
+
type Locale = "ko" | "en";
|
|
13
|
+
import styles from "./OnboardingSidebar.module.css";
|
|
14
|
+
|
|
15
|
+
const strings = {
|
|
16
|
+
ko: { name: "Onboarding", blurb: "짙은 차콜 패널과 번호·완료 상태를 표시하는 단계 탐색 사이드바.", label: "온보딩 단계", steps: [
|
|
17
|
+
{ title: "프로덕트 분위기", hint: "모서리 · 모션의 기본 조합" },
|
|
18
|
+
{ title: "정보 밀도", hint: "한 화면에 얼마나 빽빽하게 담을지." },
|
|
19
|
+
{ title: "컬러 & 톤", hint: "팔레트 선택 + 브랜드 색." },
|
|
20
|
+
{ title: "표면 재질", hint: "솔리드 또는 글래스" },
|
|
21
|
+
{ title: "레이아웃", hint: "사이드바 · 탑바 조합." },
|
|
22
|
+
{ title: "요약 & 적용", hint: "선택을 확인하고 프로젝트에 반영." },
|
|
23
|
+
] },
|
|
24
|
+
en: { name: "Onboarding", blurb: "A charcoal step sidebar with numbered markers and completion states.", label: "Onboarding steps", steps: [
|
|
25
|
+
{ title: "Product tone", hint: "Default corners and motion" },
|
|
26
|
+
{ title: "Density", hint: "Information per screen" },
|
|
27
|
+
{ title: "Color and tone", hint: "Palette and brand color" },
|
|
28
|
+
{ title: "Material", hint: "Solid or glass surfaces" },
|
|
29
|
+
{ title: "Layout", hint: "Sidebar and topbar composition" },
|
|
30
|
+
{ title: "Review and apply", hint: "Confirm your selections" },
|
|
31
|
+
] },
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type OnboardingSidebarProps = {
|
|
35
|
+
steps: readonly { id: string; title: ReactNode; hint?: ReactNode; disabled?: boolean }[];
|
|
36
|
+
activeIndex: number;
|
|
37
|
+
onStepClick: (index: number) => void;
|
|
38
|
+
brand?: ReactNode;
|
|
39
|
+
label?: string;
|
|
40
|
+
presentation?: "responsive" | "desktop";
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export function OnboardingSidebar({ steps, activeIndex, onStepClick, brand, label = "Onboarding", presentation = "responsive" }: OnboardingSidebarProps) {
|
|
44
|
+
const railRef = useRef<HTMLElement>(null);
|
|
45
|
+
const navigationRef = useRef<HTMLDivElement>(null);
|
|
46
|
+
const [compact, setCompact] = useState(false);
|
|
47
|
+
const [shortHeight, setShortHeight] = useState(false);
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (presentation === "desktop") return;
|
|
50
|
+
const rail = railRef.current;
|
|
51
|
+
if (!rail) return;
|
|
52
|
+
// The containing slot, rather than the page viewport, determines orientation.
|
|
53
|
+
const slot = rail.parentElement ?? rail;
|
|
54
|
+
const width = window.matchMedia("(max-width: 900px)");
|
|
55
|
+
const updateWidth = () => setCompact(width.matches && slot.clientWidth <= 600);
|
|
56
|
+
const observer = new ResizeObserver(updateWidth);
|
|
57
|
+
updateWidth();
|
|
58
|
+
width.addEventListener("change", updateWidth);
|
|
59
|
+
observer.observe(slot);
|
|
60
|
+
const height = window.matchMedia("(max-height: 800px)");
|
|
61
|
+
const update = () => setShortHeight(height.matches);
|
|
62
|
+
update();
|
|
63
|
+
height.addEventListener("change", update);
|
|
64
|
+
return () => { observer.disconnect(); width.removeEventListener("change", updateWidth); height.removeEventListener("change", update); };
|
|
65
|
+
}, [presentation]);
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
const viewport = navigationRef.current;
|
|
68
|
+
const current = viewport?.querySelector<HTMLElement>('[aria-current="step"]');
|
|
69
|
+
if (!viewport || !current) return;
|
|
70
|
+
const frame = viewport.getBoundingClientRect();
|
|
71
|
+
const item = current.getBoundingClientRect();
|
|
72
|
+
if (compact) {
|
|
73
|
+
if (item.left < frame.left) viewport.scrollLeft += item.left - frame.left;
|
|
74
|
+
else if (item.right > frame.right) viewport.scrollLeft += item.right - frame.right;
|
|
75
|
+
} else {
|
|
76
|
+
if (item.top < frame.top) viewport.scrollTop += item.top - frame.top;
|
|
77
|
+
else if (item.bottom > frame.bottom) viewport.scrollTop += item.bottom - frame.bottom;
|
|
78
|
+
}
|
|
79
|
+
}, [compact, activeIndex]);
|
|
80
|
+
return <aside ref={railRef} className={styles.root} data-mode="dark" data-compact={compact || undefined} aria-label={label}>
|
|
81
|
+
<div className={styles.brand}>{brand ?? <span className={styles.logo} role="img" aria-label="Ovenn" />}</div>
|
|
82
|
+
<div ref={navigationRef} className={styles.navigation}>
|
|
83
|
+
<Stepper className={styles.steps} orientation={compact ? "horizontal" : "vertical"} activeIndex={activeIndex} onStepClick={onStepClick} marker="number" tone="neutral" aria-label={label}>
|
|
84
|
+
{steps.map((step) => <Stepper.Item key={step.id} title={step.title} hint={compact || shortHeight ? undefined : step.hint} disabled={step.disabled} />)}
|
|
85
|
+
</Stepper>
|
|
86
|
+
</div>
|
|
87
|
+
</aside>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function OnboardingSidebarPreview({ lang = "ko" as Locale, thumbnail = false }: { lang?: Locale; thumbnail?: boolean } = {}) {
|
|
91
|
+
const t = strings[lang];
|
|
92
|
+
const [activeIndex, setActiveIndex] = useState(0);
|
|
93
|
+
const sidebar = <OnboardingSidebar presentation="desktop" steps={t.steps.map((step, index) => ({ ...step, id: String(index), disabled: index > 2 }))} activeIndex={activeIndex} onStepClick={setActiveIndex} label={t.label} />;
|
|
94
|
+
return thumbnail ? sidebar : <div className={styles.preview}>{sidebar}</div>;
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## OnboardingSidebar.module.css
|
|
99
|
+
|
|
100
|
+
```css
|
|
101
|
+
.root {
|
|
102
|
+
/* Scoped values from Onboarding/palette.css; install without the docs stylesheet. */
|
|
103
|
+
--onboarding-bg: #2c2825; /* lint-hardcoded: ignore — scoped template palette definition */
|
|
104
|
+
--onboarding-fg: #eee9e2; /* lint-hardcoded: ignore — scoped template palette definition */
|
|
105
|
+
--onboarding-muted: #a69b94; /* lint-hardcoded: ignore — scoped template palette definition */
|
|
106
|
+
--onboarding-hover: rgb(238 233 226 / 8%); /* lint-hardcoded: ignore — scoped template palette definition */
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
width: calc(var(--size-24) * 4);
|
|
110
|
+
max-width: 100%;
|
|
111
|
+
height: 100%;
|
|
112
|
+
min-height: 0;
|
|
113
|
+
min-width: 0;
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
padding: var(--space-8);
|
|
116
|
+
gap: var(--space-12);
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
background: var(--onboarding-bg);
|
|
119
|
+
color: var(--onboarding-fg);
|
|
120
|
+
border-radius: var(--radius-2xl);
|
|
121
|
+
corner-shape: var(--corner-shape);
|
|
122
|
+
}
|
|
123
|
+
.brand { flex-shrink: 0; }
|
|
124
|
+
.logo {
|
|
125
|
+
--onboarding-logo-mask: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iTGF5ZXJfMiIgZGF0YS1uYW1lPSJMYXllciAyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0OC43NyA5Ljg4Ij4KICA8ZGVmcz4KICAgIDxzdHlsZT4KICAgICAgLmNscy0xIHsKICAgICAgICBmaWxsOiAjMzYzNjM2OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8ZyBpZD0iX+ugiOydtOyWtF8xIiBkYXRhLW5hbWU9IiDroIjsnbTslrQgMSI+CiAgICA8Zz4KICAgICAgPHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNC44NiwwYy0xLjM1LDAtMi41MS40OS0zLjQ0LDEuNDYtLjk0Ljk3LTEuNDEsMi4xNS0xLjQxLDMuNTFzLjQ3LDIuNTEsMS40LDMuNDdjLjkzLjk2LDIuMSwxLjQ1LDMuNDYsMS40NXMyLjUzLS40OSwzLjQ1LTEuNDVjLjkzLS45NiwxLjQtMi4xMywxLjQtMy40OHMtLjQ4LTIuNTItMS40MS0zLjQ5Yy0uOTQtLjk3LTIuMS0xLjQ2LTMuNDQtMS40NlpNOC4yOCw0Ljk4YzAsLjk4LS4zNCwxLjgyLTEsMi41MS0uNjYuNjgtMS40OCwxLjAzLTIuNDQsMS4wM3MtMS43Ny0uMzQtMi40Mi0xLjAyYy0uNjUtLjY4LS45Ny0xLjUyLS45Ny0yLjVzLjM0LTEuODMsMS4wMS0yLjU0Yy42Ny0uNzEsMS40OC0xLjA2LDIuNC0xLjA2czEuNzMuMzYsMi40MSwxLjA2Yy42OC43MSwxLjAyLDEuNTYsMS4wMiwyLjUyWiIvPgogICAgICA8cG9seWdvbiBjbGFzcz0iY2xzLTEiIHBvaW50cz0iMTQuMzMgNi45NyAxMS4zOCAuMjQgOS44NiAuMjQgMTQuMTYgOS44OCAxNC41MyA5Ljg4IDE4LjggLjI0IDE3LjI3IC4yNCAxNC4zMyA2Ljk3Ii8+CiAgICAgIDxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTI4LjYsNS4wM2MtLjAzLTEuNTQtLjUyLTIuNzgtMS40My0zLjY4LS45Mi0uOS0yLjA2LTEuMzUtMy40MS0xLjM1cy0yLjQ5LjQ5LTMuNDEsMS40NmMtLjkxLjk3LTEuMzgsMi4xNC0xLjM4LDMuNDlzLjQ2LDIuNTIsMS4zNywzLjQ4Yy45MS45NiwyLjA4LDEuNDUsMy40OCwxLjQ1LDEuOTYsMCwzLjQ2LS45NCw0LjQ2LTIuOGwuMDYtLjExLTEuMjItLjYzLS4wNi4xMWMtLjc1LDEuNDItMS44NCwyLjExLTMuMzUsMi4xMS0uOSwwLTEuNjctLjMyLTIuMy0uOTYtLjYtLjYxLS45NC0xLjQzLS45OS0yLjQzaDguMTh2LS4xM1pNMjAuNTksMy45Yy41My0xLjcsMS41Ny0yLjUyLDMuMTktMi41Mi44LDAsMS41Mi4yNCwyLjEzLjcxLjU3LjQ0Ljk1LDEuMDUsMS4xMiwxLjgxaC02LjQ0WiIvPgogICAgICA8cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zNC4zMywwYy0yLjM2LDAtNC4yOCwxLjk0LTQuMzEsNC4zNHY1LjI0czEuNSwwLDEuNSwwdi0zLjQ2YzAtLjMxLDAtMS40NS4wMS0xLjcyLDAtMS42NCwxLjI5LTMuMDIsMi44MS0zLjAyczIuODQsMS4zOSwyLjg0LDMuMDN2NS4xN2gxLjQ4di01LjE4YzAtMi40Mi0xLjk0LTQuMzktNC4zMS00LjM5WiIvPgogICAgICA8cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik00NC40NSwwYy0yLjM2LDAtNC4yOCwxLjk0LTQuMzEsNC4zNHY1LjI0czEuNSwwLDEuNSwwdi0zLjQ2YzAtLjMxLDAtMS40Ni4wMS0xLjcyLDAtMS42NCwxLjI5LTMuMDIsMi44MS0zLjAyczIuODQsMS4zOSwyLjg0LDMuMDN2NS4xN2gxLjQ4di01LjE4YzAtMi40Mi0xLjk0LTQuMzktNC4zMS00LjM5WiIvPgogICAgPC9nPgogIDwvZz4KPC9zdmc+"); /* lint-hardcoded: ignore — bundled original wordmark asset */
|
|
126
|
+
display: block;
|
|
127
|
+
width: var(--size-20);
|
|
128
|
+
height: var(--size-4);
|
|
129
|
+
background: currentColor;
|
|
130
|
+
mask: var(--onboarding-logo-mask) center / contain no-repeat;
|
|
131
|
+
}
|
|
132
|
+
.navigation { flex: 1; min-height: 0; min-width: 0; overflow: auto; }
|
|
133
|
+
|
|
134
|
+
.steps > button:focus-visible { box-shadow: none; background: var(--onboarding-hover); }
|
|
135
|
+
.root[data-compact] { width: 100%; height: auto; padding: var(--space-5); gap: var(--space-5); }
|
|
136
|
+
.root[data-compact] .navigation { flex: none; }
|
|
137
|
+
.root[data-compact] .steps { min-width: max-content; }
|
|
138
|
+
.root[data-compact] .steps > button { flex: 0 0 auto; white-space: nowrap; }
|
|
139
|
+
.steps > button { word-break: keep-all; }
|
|
140
|
+
@media (max-height: 800px) { .root { gap: var(--space-6); } }
|
|
141
|
+
|
|
142
|
+
/* The detail stage preserves the original onboarding canvas; thumbnails render the rail alone. */
|
|
143
|
+
.preview {
|
|
144
|
+
--onboarding-canvas: #f8f6f2; /* lint-hardcoded: ignore — original onboarding canvas token definition */
|
|
145
|
+
display: flex;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
width: 100%;
|
|
148
|
+
height: 100%;
|
|
149
|
+
min-width: 0;
|
|
150
|
+
min-height: 0;
|
|
151
|
+
box-sizing: border-box;
|
|
152
|
+
padding: var(--space-6);
|
|
153
|
+
background: var(--template-preview-bg, var(--onboarding-canvas));
|
|
154
|
+
}
|
|
155
|
+
@media (max-width: 900px) { .preview { padding: var(--space-4); } }
|
|
156
|
+
```
|
|
@@ -127,9 +127,9 @@ export function WorkspaceSidebar({ lang = "ko" as Locale }: { lang?: Locale } =
|
|
|
127
127
|
>{t.workspaceName}</MenuItem>
|
|
128
128
|
)}
|
|
129
129
|
<IconButton
|
|
130
|
-
size="
|
|
130
|
+
size="sm"
|
|
131
131
|
variant="ghost"
|
|
132
|
-
icon={<Icon name="sidebar-simple" size={
|
|
132
|
+
icon={<Icon name="sidebar-simple" size={16} />}
|
|
133
133
|
aria-label={collapsed ? t.sidebarExpandAria : t.sidebarCollapseAria}
|
|
134
134
|
onClick={() => setCollapsed((v) => !v)}
|
|
135
135
|
/>
|
|
@@ -229,24 +229,29 @@ export function WorkspaceSidebar({ lang = "ko" as Locale }: { lang?: Locale } =
|
|
|
229
229
|
```css
|
|
230
230
|
/* Workspace 템플릿 — Taskify 스타일.
|
|
231
231
|
4영역: Workspace Header · Search · Main Menu(스크롤 ①) · Pinned(스크롤 ②).
|
|
232
|
-
|
|
232
|
+
배경은 라이트 흰색·다크 검정, active pill은 subtle 톤.
|
|
233
233
|
|
|
234
234
|
패딩 공급 — 벤더 Sidebar는 패딩 공급 안 함. 각 wrapper className이 자기
|
|
235
235
|
콘텐츠 래퍼 역할을 겸하므로 wrapper에 직접 좌우/상하 padding 공급. */
|
|
236
236
|
|
|
237
237
|
.root {
|
|
238
|
-
--menu-active-bg: var(--bg);
|
|
238
|
+
--menu-active-bg: var(--bg-subtle);
|
|
239
|
+
background: var(--fixed-white);
|
|
239
240
|
/* Separator 좌우 inset — nav wrapper padding과 동일하게 들여써 메뉴 폭에 맞춤. */
|
|
240
241
|
--separator-inset-x: var(--space-3);
|
|
241
242
|
border-right: var(--hairline) solid var(--border);
|
|
242
243
|
}
|
|
243
244
|
|
|
245
|
+
:global([data-mode="dark"]) .root {
|
|
246
|
+
background: var(--fixed-black);
|
|
247
|
+
}
|
|
248
|
+
|
|
244
249
|
/* Workspace Header — MenuItem avatar preset 트리거 좌, 접기 IconButton 우. */
|
|
245
250
|
.wsHeader {
|
|
246
251
|
display: flex;
|
|
247
252
|
align-items: center;
|
|
248
|
-
gap: var(--space-
|
|
249
|
-
padding: var(--space-3);
|
|
253
|
+
gap: var(--space-1);
|
|
254
|
+
padding: var(--space-2) var(--space-3);
|
|
250
255
|
}
|
|
251
256
|
|
|
252
257
|
/* 트리거가 Header 안에서 남은 공간 꽉. MenuItem이 width:100% grid라 flex-grow만. */
|
|
@@ -315,9 +320,9 @@ export function WorkspaceSidebar({ lang = "ko" as Locale }: { lang?: Locale } =
|
|
|
315
320
|
padding-inline: calc(var(--space-3) + var(--space-2));
|
|
316
321
|
}
|
|
317
322
|
|
|
318
|
-
/* Active 상태 —
|
|
323
|
+
/* Active 상태 — subtle 배경. radius는 MenuItem 기본값 유지. */
|
|
319
324
|
.nav :global([data-active]) {
|
|
320
|
-
background: var(--bg);
|
|
325
|
+
background: var(--menu-active-bg);
|
|
321
326
|
}
|
|
322
327
|
|
|
323
328
|
/* ─── Collapsed 상태 ─────────────────────────────────────
|
|
@@ -6,7 +6,7 @@ Semantic 이름으로 참조. 실제 색은 Palette(brand hex + paletteSet + mon
|
|
|
6
6
|
|
|
7
7
|
### Do
|
|
8
8
|
- **브랜드 색은 하나 — `--primary`**. 주 액션(CTA·submit·confirm)·링크·활성 상태·강조 전부 primary로. 브랜드 톤이 둘로 쪼개지지 않게.
|
|
9
|
-
- 텍스트 위계: 본문 `--fg`, 보조 `--fg-muted`,
|
|
9
|
+
- 텍스트 위계: 본문 `--fg`, 보조 `--fg-muted`, 메타 `--fg-subtle`, 플레이스홀더 `--fg-placeholder`. 플레이스홀더는 Select·날짜/시간 필드처럼 실제 텍스트로 렌더되는 자리가 있으므로 subtle보다 진한 알파로 AA 4.5:1을 지키되 본문보다 옅게 유지한다.
|
|
10
10
|
- 표면 위계: 페이지 `--bg`, 카드/영역 `--bg-subtle`, 코드/hover `--bg-muted`.
|
|
11
11
|
- 앱 탑바와 본문 페이지 바탕은 언제나 같은 색을 쓴다. AppFrame은 공통 `--app-frame-bg`(기본 `--bg`)로 Topbar·Tabs·Content를 연결한다. 프로젝트에서 바탕을 바꾸면 이 매핑과 페이지 바탕을 함께 바꾼다. 사이드바와 카드의 표면 구분은 [[components/app-frame]]의 배경 계약을 따른다.
|
|
12
12
|
- 다크의 일반 `--border`는 밝은 전경18% 알파, `--border-strong`은26% 알파로 구분한다. 전용 테이블 경계는 별도 토큰을 따른다.
|
|
@@ -43,7 +43,8 @@ Semantic 이름으로 참조. 실제 색은 Palette(brand hex + paletteSet + mon
|
|
|
43
43
|
|---|---|
|
|
44
44
|
| `--fg` | 본문 |
|
|
45
45
|
| `--fg-muted` | 보조 텍스트 |
|
|
46
|
-
| `--fg-subtle` |
|
|
46
|
+
| `--fg-subtle` | 메타 |
|
|
47
|
+
| `--fg-placeholder` | 플레이스홀더. 실제 텍스트로 렌더되는 자리표시도 AA 대비를 지킴 |
|
|
47
48
|
|
|
48
49
|
**경계**
|
|
49
50
|
| Token | 용도 |
|
|
@@ -103,3 +104,7 @@ mono에서는 모든 chart token의 chroma가 0이다. 단순 등간격 그레
|
|
|
103
104
|
| `--hover` | 반복 리스트·메뉴·탭·테이블 hover 공통. 라이트 검정 3%, 다크 흰색 3% 알파 오버레이 |
|
|
104
105
|
| `--tooltip-bg` | Tooltip 배경 (Mode 반전: light면 다크, dark면 라이트) |
|
|
105
106
|
| `--tooltip-fg` | Tooltip 텍스트 (Mode 반전) |
|
|
107
|
+
|
|
108
|
+
### 플레이스홀더 표현
|
|
109
|
+
|
|
110
|
+
`--fg-placeholder`는 native input/textarea의 `::placeholder`와 Select·날짜/시간 필드·검색 트리거의 자리표시 라벨에 공통으로 쓴다. 투명도로 옅게 만들지 않는다. 본문·라벨·도움말·disabled 토큰은 변경하지 않는다.
|
|
@@ -11,6 +11,7 @@ Squircle 보정 배율은 `radius-scale`(standard·pill1.8, soft1.72, crisp1)이
|
|
|
11
11
|
- 표면 위 SVG 외곽선은 CSS의 radius·corner-shape에서 같은 경로를 생성한다. 별도 rect rx로 일반 원호를 겹치면 squircle과 어긋난다. border/outline 같은 동일 요소의 네이티브 경계와 구분한다.
|
|
12
12
|
|
|
13
13
|
### Do
|
|
14
|
+
- 직접 만든 카드·모달·패널도 [[PRINCIPLES]] §5b-1을 따른다. 컴포넌트를 쓰지 않았다는 이유로 곡선 선언을 생략하지 않는다.
|
|
14
15
|
- 컴포넌트 크기에 맞춰 스케일 선택: 작을수록 작은 radius.
|
|
15
16
|
- 완전한 원형(Avatar, Pill Chip)은 `radius-full`.
|
|
16
17
|
- 각져야 하는 표·시트 셀은 `radius-none`.
|
|
@@ -22,6 +23,27 @@ Squircle 보정 배율은 `radius-scale`(standard·pill1.8, soft1.72, crisp1)이
|
|
|
22
23
|
### Fallback
|
|
23
24
|
애매하면 `radius-sm` (Button·Input 기본 스케일).
|
|
24
25
|
|
|
26
|
+
### 직접 만든 표면
|
|
27
|
+
|
|
28
|
+
```css
|
|
29
|
+
.customCard {
|
|
30
|
+
border-radius: var(--radius-md);
|
|
31
|
+
corner-shape: var(--card-corner-shape);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.customModal {
|
|
35
|
+
border-radius: var(--radius-lg);
|
|
36
|
+
corner-shape: var(--corner-shape);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.innerSurface {
|
|
40
|
+
border-radius: inherit;
|
|
41
|
+
corner-shape: inherit;
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
토큰 CSS가 불러오는 `_utils.css`의 `ovenn-shape` layer는 모든 요소와 `::before`·`::after`에 Shape 곡선을 기본 적용한다. 따라서 직접 만든 표면도 `border-radius`가 있으면 별도 클래스 없이 squircle이 적용된다. 반경이 0인 요소는 그대로 각지게 유지하며 카드·모달 역할을 추측해 반경을 추가하지 않는다. 카드 전용 곡선이나 내부 곡선 상속이 필요하면 위 예시처럼 직접 선언한다. 기존 컴포넌트의 명시적 round·mini·Switch 곡률은 기본 layer보다 우선한다. pseudo-element로 둥근 표면이나 경계를 만들 때도 반경과 곡선을 함께 맞춘다. `radius-full` 또는 50% 반경으로 원형을 직접 만드는 요소는 `corner-shape: round` 또는 `data-corner-shape="round"`를 사용한다. CSS는 반경만으로 원형과 둥근 표면의 의미를 구분하지 않는다. 이 속성은 해당 요소와 그 pseudo-element에만 적용된다. 미지원 브라우저는 기존 radius로 표시한다.
|
|
46
|
+
|
|
25
47
|
### 관련
|
|
26
48
|
- [[axes/shape]] — radius 값을 스왑
|
|
27
49
|
|
|
@@ -30,7 +30,7 @@ get_guide(topic="use-cases/chart-chart-area", sections=["사례 목록", "파일
|
|
|
30
30
|
|
|
31
31
|
```tsx
|
|
32
32
|
<section id="use-cases">
|
|
33
|
-
<h2>In Use</h2>
|
|
33
|
+
<h2>{!en ? "사용 사례" : "In Use"}</h2>
|
|
34
34
|
<h3>{en ? "Today vs yesterday" : "오늘과 어제 비교"}</h3>
|
|
35
35
|
<ExampleBlock previewWidth="full">
|
|
36
36
|
<TrafficComparisonExample />
|
|
@@ -192,7 +192,7 @@ const en: Strings = {
|
|
|
192
192
|
|
|
193
193
|
const ko: Strings = {
|
|
194
194
|
title: "Line & Area Chart",
|
|
195
|
-
lead: "시간에 따른 추세를 선과 영역으로
|
|
195
|
+
lead: "시간에 따른 추세를 선과 영역으로 보여줘요. 변화의 흐름은 선으로, 전체 규모는 영역으로 비교해요.",
|
|
196
196
|
|
|
197
197
|
months: ["1월", "2월", "3월", "4월", "5월", "6월"],
|
|
198
198
|
desktopLabel: "데스크톱",
|
|
@@ -201,74 +201,74 @@ const ko: Strings = {
|
|
|
201
201
|
dateFmt: (month, day) => `${month}월 ${day}일`,
|
|
202
202
|
|
|
203
203
|
usage: {
|
|
204
|
-
heading: "
|
|
205
|
-
desc: "일정한 간격으로 기록한 수치의 흐름을 볼 때
|
|
204
|
+
heading: "사용법",
|
|
205
|
+
desc: "일정한 간격으로 기록한 수치의 흐름을 볼 때 사용해요.",
|
|
206
206
|
},
|
|
207
207
|
|
|
208
208
|
|
|
209
209
|
variants: {
|
|
210
|
-
heading: "
|
|
211
|
-
desc: "수치가 변하는 방식에 맞춰 선의 형태를
|
|
212
|
-
linearDesc: "기록된 각 수치 사이의 변화를 그대로 비교할 때는 직선을
|
|
213
|
-
stepDesc: "가격처럼 다음 변경 시점까지 값이 유지되면 계단형을
|
|
210
|
+
heading: "표현",
|
|
211
|
+
desc: "수치가 변하는 방식에 맞춰 선의 형태를 선택해요.",
|
|
212
|
+
linearDesc: "기록된 각 수치 사이의 변화를 그대로 비교할 때는 직선을 사용해요.",
|
|
213
|
+
stepDesc: "가격처럼 다음 변경 시점까지 값이 유지되면 계단형을 사용해요.",
|
|
214
214
|
},
|
|
215
215
|
|
|
216
216
|
stacked: {
|
|
217
|
-
heading: "
|
|
218
|
-
desc: "합계와 각 항목의 구성을 함께 비교할 때 영역을 쌓아
|
|
219
|
-
expandDesc: "전체 규모보다 비중의 변화가 중요하면 100% 누적을
|
|
217
|
+
heading: "누적",
|
|
218
|
+
desc: "합계와 각 항목의 구성을 함께 비교할 때 영역을 쌓아 사용해요.",
|
|
219
|
+
expandDesc: "전체 규모보다 비중의 변화가 중요하면 100% 누적을 사용해요.",
|
|
220
220
|
},
|
|
221
221
|
|
|
222
222
|
gradient: {
|
|
223
|
-
heading: "
|
|
224
|
-
desc: "여러 영역이 겹칠 때는 채움을 옅게
|
|
223
|
+
heading: "그라데이션 채우기",
|
|
224
|
+
desc: "여러 영역이 겹칠 때는 채움을 옅게 조정해요.",
|
|
225
225
|
},
|
|
226
226
|
|
|
227
227
|
withAxis: {
|
|
228
|
-
heading: "
|
|
229
|
-
desc: "절대값을 비교해야 할 때는 수치 축을 함께
|
|
228
|
+
heading: "수치 축",
|
|
229
|
+
desc: "절대값을 비교해야 할 때는 수치 축을 함께 표시해요.",
|
|
230
230
|
},
|
|
231
231
|
|
|
232
232
|
withLegend: {
|
|
233
|
-
heading: "
|
|
234
|
-
desc: "둘 이상의 데이터 계열을 비교할 때는 범례를 함께
|
|
233
|
+
heading: "범례",
|
|
234
|
+
desc: "둘 이상의 데이터 계열을 비교할 때는 범례를 함께 표시해요.",
|
|
235
235
|
},
|
|
236
236
|
|
|
237
237
|
interactive: {
|
|
238
238
|
heading: "기간 선택",
|
|
239
|
-
desc: "특정 구간의 변화를 살펴볼 수 있도록 조회 기간을 선택하게
|
|
239
|
+
desc: "특정 구간의 변화를 살펴볼 수 있도록 조회 기간을 선택하게 해요.",
|
|
240
240
|
},
|
|
241
241
|
|
|
242
242
|
api: {
|
|
243
|
-
heading: "
|
|
244
|
-
desc: "공통 차트 옵션은 아래 표에서
|
|
243
|
+
heading: "속성",
|
|
244
|
+
desc: "공통 차트 옵션은 아래 표에서 확인해요. 차트별 옵션은",
|
|
245
245
|
officialDocs: "Recharts 문서",
|
|
246
|
-
columns: { prop: "
|
|
246
|
+
columns: { prop: "속성", type: "타입", default: "기본값", desc: "설명" },
|
|
247
247
|
columnsKey: { prop: "Key", type: "Type", default: "Default", desc: "Description" },
|
|
248
248
|
container: {
|
|
249
|
-
config: "각 데이터 계열의 이름·색상·아이콘을
|
|
250
|
-
className: "차트 컨테이너에 스타일을
|
|
251
|
-
children: "표시할 차트를
|
|
249
|
+
config: "각 데이터 계열의 이름·색상·아이콘을 지정해요.",
|
|
250
|
+
className: "차트 컨테이너에 스타일을 추가해요.",
|
|
251
|
+
children: "표시할 차트를 지정해요.",
|
|
252
252
|
},
|
|
253
253
|
tooltip: {
|
|
254
|
-
indicator: "데이터 계열을 구분하는 표시의
|
|
255
|
-
hideLabel: "수치 위에 표시되는 제목을
|
|
256
|
-
hideIndicator: "데이터 계열의 구분 표시를
|
|
257
|
-
nameKey: "데이터 계열을 식별할
|
|
258
|
-
labelKey: "툴팁 제목으로 사용할 데이터
|
|
259
|
-
labelFormatter: "툴팁 제목의 표시 형식을
|
|
260
|
-
formatter: "툴팁의 각 행을
|
|
254
|
+
indicator: "데이터 계열을 구분하는 표시의 모양이에요.",
|
|
255
|
+
hideLabel: "수치 위에 표시되는 제목을 숨겨요.",
|
|
256
|
+
hideIndicator: "데이터 계열의 구분 표시를 숨겨요.",
|
|
257
|
+
nameKey: "데이터 계열을 식별할 키예요.",
|
|
258
|
+
labelKey: "툴팁 제목으로 사용할 데이터 키예요.",
|
|
259
|
+
labelFormatter: "툴팁 제목의 표시 형식을 바꿔요.",
|
|
260
|
+
formatter: "툴팁의 각 행을 구성해요.",
|
|
261
261
|
},
|
|
262
262
|
legend: {
|
|
263
|
-
hideIcon: "사용자 지정 아이콘 대신 색상 표시를
|
|
264
|
-
nameKey: "범례 항목을 식별할 데이터
|
|
265
|
-
verticalAlign: "범례를 차트 위나 아래에
|
|
263
|
+
hideIcon: "사용자 지정 아이콘 대신 색상 표시를 사용해요.",
|
|
264
|
+
nameKey: "범례 항목을 식별할 데이터 키예요.",
|
|
265
|
+
verticalAlign: "범례를 차트 위나 아래에 배치해요.",
|
|
266
266
|
},
|
|
267
267
|
config: {
|
|
268
|
-
label: "툴팁과 범례에 표시할 데이터 계열의
|
|
269
|
-
icon: "데이터 계열의 이름 옆에 표시할
|
|
270
|
-
color: "고정 색상이며 모드별 색상과 함께 지정할 수
|
|
271
|
-
theme: "라이트·다크 모드별 색상이며 고정 색상과 함께 지정할 수
|
|
268
|
+
label: "툴팁과 범례에 표시할 데이터 계열의 이름이에요.",
|
|
269
|
+
icon: "데이터 계열의 이름 옆에 표시할 아이콘이에요.",
|
|
270
|
+
color: "고정 색상이며 모드별 색상과 함께 지정할 수 없어요.",
|
|
271
|
+
theme: "라이트·다크 모드별 색상이며 고정 색상과 함께 지정할 수 없어요.",
|
|
272
272
|
},
|
|
273
273
|
},
|
|
274
274
|
};
|
|
@@ -868,7 +868,7 @@ const filtered = useMemo(() => data.slice(-N[range]), [range]);
|
|
|
868
868
|
</section>
|
|
869
869
|
|
|
870
870
|
<section id="use-cases">
|
|
871
|
-
<h2>In Use</h2>
|
|
871
|
+
<h2>{!en ? "사용 사례" : "In Use"}</h2>
|
|
872
872
|
<h3>{en ? "Today vs yesterday" : "오늘과 어제 비교"}</h3>
|
|
873
873
|
<ExampleBlock previewWidth="full">
|
|
874
874
|
<TrafficComparisonExample />
|
|
@@ -895,7 +895,7 @@ const filtered = useMemo(() => data.slice(-N[range]), [range]);
|
|
|
895
895
|
{ key: "desc", label: t.api.columns.desc, flex: true, minWidth: 240 },
|
|
896
896
|
]}
|
|
897
897
|
rows={[
|
|
898
|
-
{ prop: "animateIn", type: "boolean", default: "true", desc: en ? "Draws the chart once when it first enters the viewport." : "화면에 처음 나타날 때 차트를 한 번
|
|
898
|
+
{ prop: "animateIn", type: "boolean", default: "true", desc: en ? "Draws the chart once when it first enters the viewport." : "화면에 처음 나타날 때 차트를 한 번 그려요." },
|
|
899
899
|
{ prop: "config", type: "ChartConfig", default: "-", desc: t.api.container.config },
|
|
900
900
|
{ prop: "className", type: "string", default: "-", desc: t.api.container.className },
|
|
901
901
|
{ prop: "children", type: "ReactElement", default: "-", desc: t.api.container.children },
|
|
@@ -188,7 +188,7 @@ const en: Strings = {
|
|
|
188
188
|
|
|
189
189
|
const ko: Strings = {
|
|
190
190
|
title: "Bar Chart",
|
|
191
|
-
lead: "항목별 수치를 막대 길이로
|
|
191
|
+
lead: "항목별 수치를 막대 길이로 비교해요. 순위를 살피거나 값의 차이를 정확히 비교할 때 사용해요.",
|
|
192
192
|
|
|
193
193
|
months: ["1월", "2월", "3월", "4월", "5월", "6월"],
|
|
194
194
|
desktopLabel: "데스크톱",
|
|
@@ -197,32 +197,32 @@ const ko: Strings = {
|
|
|
197
197
|
dateFmt: (month, day) => `${month}월 ${day}일`,
|
|
198
198
|
|
|
199
199
|
usage: {
|
|
200
|
-
heading: "
|
|
201
|
-
desc: "항목 간 수치 차이를 비교할 때
|
|
200
|
+
heading: "사용법",
|
|
201
|
+
desc: "항목 간 수치 차이를 비교할 때 사용해요.",
|
|
202
202
|
},
|
|
203
203
|
|
|
204
204
|
|
|
205
205
|
variants: {
|
|
206
|
-
heading: "
|
|
207
|
-
desc: "비교할 항목에 맞춰 막대 방향과 배치를
|
|
208
|
-
horizontalDesc: "항목명이 길면 가로 막대를
|
|
209
|
-
multipleDesc: "같은 항목의 수치를 직접 비교할 때는 막대를 나란히
|
|
206
|
+
heading: "표현",
|
|
207
|
+
desc: "비교할 항목에 맞춰 막대 방향과 배치를 선택해요.",
|
|
208
|
+
horizontalDesc: "항목명이 길면 가로 막대를 사용해요.",
|
|
209
|
+
multipleDesc: "같은 항목의 수치를 직접 비교할 때는 막대를 나란히 배치해요.",
|
|
210
210
|
},
|
|
211
211
|
|
|
212
212
|
stacked: {
|
|
213
|
-
heading: "
|
|
214
|
-
desc: "합계와 각 항목의 구성을 함께 볼 때 막대를 쌓아
|
|
215
|
-
expandDesc: "항목마다 전체에서 차지하는 비중을 비교할 때는 100% 누적을
|
|
213
|
+
heading: "누적",
|
|
214
|
+
desc: "합계와 각 항목의 구성을 함께 볼 때 막대를 쌓아 사용해요.",
|
|
215
|
+
expandDesc: "항목마다 전체에서 차지하는 비중을 비교할 때는 100% 누적을 사용해요.",
|
|
216
216
|
},
|
|
217
217
|
|
|
218
218
|
interactive: {
|
|
219
219
|
heading: "기간 선택",
|
|
220
|
-
desc: "최근 변화나 특정 구간을 살펴볼 수 있도록 조회 기간을 선택하게
|
|
220
|
+
desc: "최근 변화나 특정 구간을 살펴볼 수 있도록 조회 기간을 선택하게 해요.",
|
|
221
221
|
},
|
|
222
222
|
|
|
223
223
|
useCases: {
|
|
224
|
-
heading: "
|
|
225
|
-
desc: "단계가 있는 업무에서는 원래 순서를 유지해
|
|
224
|
+
heading: "사용 사례",
|
|
225
|
+
desc: "단계가 있는 업무에서는 원래 순서를 유지해 비교해요.",
|
|
226
226
|
pipeline: {
|
|
227
227
|
title: "영업 파이프라인",
|
|
228
228
|
totalBadge: "14",
|
|
@@ -238,35 +238,35 @@ const ko: Strings = {
|
|
|
238
238
|
},
|
|
239
239
|
|
|
240
240
|
api: {
|
|
241
|
-
heading: "
|
|
242
|
-
desc: "공통 차트 옵션은 아래 표에서
|
|
241
|
+
heading: "속성",
|
|
242
|
+
desc: "공통 차트 옵션은 아래 표에서 확인해요. 차트별 옵션은",
|
|
243
243
|
officialDocs: "Recharts 문서",
|
|
244
|
-
columns: { prop: "
|
|
244
|
+
columns: { prop: "속성", type: "타입", default: "기본값", desc: "설명" },
|
|
245
245
|
columnsKey: { prop: "Key", type: "Type", default: "Default", desc: "Description" },
|
|
246
246
|
container: {
|
|
247
|
-
config: "각 데이터 계열의 이름·색상·아이콘을
|
|
248
|
-
className: "차트 컨테이너에 스타일을
|
|
249
|
-
children: "표시할 차트를
|
|
247
|
+
config: "각 데이터 계열의 이름·색상·아이콘을 지정해요.",
|
|
248
|
+
className: "차트 컨테이너에 스타일을 추가해요.",
|
|
249
|
+
children: "표시할 차트를 지정해요.",
|
|
250
250
|
},
|
|
251
251
|
tooltip: {
|
|
252
|
-
indicator: "데이터 계열을 구분하는 표시의
|
|
253
|
-
hideLabel: "수치 위에 표시되는 제목을
|
|
254
|
-
hideIndicator: "데이터 계열의 구분 표시를
|
|
255
|
-
nameKey: "데이터 계열을 식별할
|
|
256
|
-
labelKey: "툴팁 제목으로 사용할 데이터
|
|
257
|
-
labelFormatter: "툴팁 제목의 표시 형식을
|
|
258
|
-
formatter: "툴팁의 각 행을
|
|
252
|
+
indicator: "데이터 계열을 구분하는 표시의 모양이에요.",
|
|
253
|
+
hideLabel: "수치 위에 표시되는 제목을 숨겨요.",
|
|
254
|
+
hideIndicator: "데이터 계열의 구분 표시를 숨겨요.",
|
|
255
|
+
nameKey: "데이터 계열을 식별할 키예요.",
|
|
256
|
+
labelKey: "툴팁 제목으로 사용할 데이터 키예요.",
|
|
257
|
+
labelFormatter: "툴팁 제목의 표시 형식을 바꿔요.",
|
|
258
|
+
formatter: "툴팁의 각 행을 구성해요.",
|
|
259
259
|
},
|
|
260
260
|
legend: {
|
|
261
|
-
hideIcon: "사용자 지정 아이콘 대신 색상 표시를
|
|
262
|
-
nameKey: "범례 항목을 식별할 데이터
|
|
263
|
-
verticalAlign: "범례를 차트 위나 아래에
|
|
261
|
+
hideIcon: "사용자 지정 아이콘 대신 색상 표시를 사용해요.",
|
|
262
|
+
nameKey: "범례 항목을 식별할 데이터 키예요.",
|
|
263
|
+
verticalAlign: "범례를 차트 위나 아래에 배치해요.",
|
|
264
264
|
},
|
|
265
265
|
config: {
|
|
266
|
-
label: "툴팁과 범례에 표시할 데이터 계열의
|
|
267
|
-
icon: "데이터 계열의 이름 옆에 표시할
|
|
268
|
-
color: "고정 색상이며 모드별 색상과 함께 지정할 수
|
|
269
|
-
theme: "라이트·다크 모드별 색상이며 고정 색상과 함께 지정할 수
|
|
266
|
+
label: "툴팁과 범례에 표시할 데이터 계열의 이름이에요.",
|
|
267
|
+
icon: "데이터 계열의 이름 옆에 표시할 아이콘이에요.",
|
|
268
|
+
color: "고정 색상이며 모드별 색상과 함께 지정할 수 없어요.",
|
|
269
|
+
theme: "라이트·다크 모드별 색상이며 고정 색상과 함께 지정할 수 없어요.",
|
|
270
270
|
},
|
|
271
271
|
},
|
|
272
272
|
};
|
|
@@ -1365,7 +1365,7 @@ const lastIndex = dailyWithIndex.length - 1;
|
|
|
1365
1365
|
{ key: "desc", label: t.api.columns.desc, flex: true, minWidth: 240 },
|
|
1366
1366
|
]}
|
|
1367
1367
|
rows={[
|
|
1368
|
-
{ prop: "animateIn", type: "boolean", default: "true", desc: en ? "Draws the chart once when it first enters the viewport." : "화면에 처음 나타날 때 차트를 한 번
|
|
1368
|
+
{ prop: "animateIn", type: "boolean", default: "true", desc: en ? "Draws the chart once when it first enters the viewport." : "화면에 처음 나타날 때 차트를 한 번 그려요." },
|
|
1369
1369
|
{ prop: "config", type: "ChartConfig", default: "-", desc: t.api.container.config },
|
|
1370
1370
|
{ prop: "className", type: "string", default: "-", desc: t.api.container.className },
|
|
1371
1371
|
{ prop: "children", type: "ReactElement", default: "-", desc: t.api.container.children },
|
|
@@ -28,7 +28,7 @@ get_guide(topic="use-cases/chart-chart-pie", 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 ? "Acquisition sources card" : "유입 경로 카드"}</h3>
|
|
33
33
|
<ExampleBlock previewWidth="full"><AcquisitionCardExample /></ExampleBlock>
|
|
34
34
|
</section>
|
|
@@ -114,38 +114,38 @@ const en: Strings = {
|
|
|
114
114
|
|
|
115
115
|
const ko: Strings = {
|
|
116
116
|
title: "Pie Chart",
|
|
117
|
-
lead: "전체에서 각 항목이 차지하는 비중을
|
|
117
|
+
lead: "전체에서 각 항목이 차지하는 비중을 보여줘요. 작은 차이를 정확히 비교할 때는 Bar Chart를 사용해요.",
|
|
118
118
|
browsers: ["크롬", "사파리", "파이어폭스", "엣지", "기타"],
|
|
119
119
|
visitors: "방문자",
|
|
120
120
|
totalVisitors: "전체 방문자",
|
|
121
121
|
usage: {
|
|
122
|
-
heading: "
|
|
123
|
-
desc: "하나의 전체를 이루는 소수 항목의 비중을 비교할 때
|
|
122
|
+
heading: "사용법",
|
|
123
|
+
desc: "하나의 전체를 이루는 소수 항목의 비중을 비교할 때 사용해요.",
|
|
124
124
|
},
|
|
125
125
|
labels: {
|
|
126
126
|
heading: "라벨",
|
|
127
|
-
desc: "마우스를 올리지 않아도 정확한 수치를 읽어야 할 때 라벨을
|
|
128
|
-
custom: "차트만으로 내용을 이해해야 할 때는 항목명과 비율을 함께
|
|
127
|
+
desc: "마우스를 올리지 않아도 정확한 수치를 읽어야 할 때 라벨을 표시해요.",
|
|
128
|
+
custom: "차트만으로 내용을 이해해야 할 때는 항목명과 비율을 함께 표시해요.",
|
|
129
129
|
},
|
|
130
130
|
legend: {
|
|
131
131
|
heading: "범례",
|
|
132
|
-
desc: "수치 비교에는 기본형, 항목 구분에는 컴팩트형 범례를
|
|
132
|
+
desc: "수치 비교에는 기본형, 항목 구분에는 컴팩트형 범례를 사용해요. 범례를 선택하면 해당 조각이 강조되고, 다시 선택하면 전체를 표시해요.",
|
|
133
133
|
},
|
|
134
134
|
donut: {
|
|
135
135
|
heading: "도넛",
|
|
136
|
-
desc: "중앙에 요약 값을 표시해야 할 때 도넛을
|
|
137
|
-
active: "한 항목을 자세히 살펴볼 수 있도록 마우스를 올린 조각을
|
|
138
|
-
text: "중앙에는 합계나 선택한 값 하나만
|
|
136
|
+
desc: "중앙에 요약 값을 표시해야 할 때 도넛을 사용해요.",
|
|
137
|
+
active: "한 항목을 자세히 살펴볼 수 있도록 마우스를 올린 조각을 강조해요.",
|
|
138
|
+
text: "중앙에는 합계나 선택한 값 하나만 표시해요.",
|
|
139
139
|
},
|
|
140
140
|
stacked: {
|
|
141
141
|
heading: "중첩 도넛",
|
|
142
|
-
desc: "두 분포를 비교할 때는 같은 항목 순서를
|
|
142
|
+
desc: "두 분포를 비교할 때는 같은 항목 순서를 유지해요.",
|
|
143
143
|
},
|
|
144
144
|
api: {
|
|
145
|
-
heading: "
|
|
145
|
+
heading: "속성",
|
|
146
146
|
desc: "조각·라벨·형태 옵션은",
|
|
147
147
|
officialDocs: "Pie 문서",
|
|
148
|
-
columns: { prop: "
|
|
148
|
+
columns: { prop: "속성", type: "타입", default: "기본값", desc: "설명" },
|
|
149
149
|
data: "카테고리 행 배열",
|
|
150
150
|
dataKey: "각도를 계산할 숫자 값 키",
|
|
151
151
|
nameKey: "툴팁과 범례에서 사용할 카테고리 이름 키",
|
|
@@ -618,7 +618,7 @@ import { ChartContainer } from "@/components/Chart";
|
|
|
618
618
|
</section>
|
|
619
619
|
|
|
620
620
|
<section id="use-cases">
|
|
621
|
-
<h2>In Use</h2>
|
|
621
|
+
<h2>{!en ? "사용 사례" : "In Use"}</h2>
|
|
622
622
|
<h3>{en ? "Acquisition sources card" : "유입 경로 카드"}</h3>
|
|
623
623
|
<ExampleBlock previewWidth="full"><AcquisitionCardExample /></ExampleBlock>
|
|
624
624
|
</section>
|