@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.
- 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/Button/Button.module.css +19 -0
- 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 +37 -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
|
@@ -102,7 +102,7 @@ get_guide(topic="use-cases/data-table-toolbar", sections=["사례 목록", "파
|
|
|
102
102
|
```tsx
|
|
103
103
|
<section data-use-cases id="narrow" className="section">
|
|
104
104
|
<h2>{ko ? "좁은 영역" : "Narrow container"}</h2>
|
|
105
|
-
<p className="desc">{ko ? "모든 항목은 한 줄을
|
|
105
|
+
<p className="desc">{ko ? "모든 항목은 한 줄을 유지해요. 가로로 스크롤하거나 Tab으로 다음 컨트롤로 이동할 수 있어요." : "Controls stay on one line. Scroll horizontally or use Tab to reach the next control."}</p>
|
|
106
106
|
<ExampleBlock align="column" code={`<div style={{ width: "var(--input-w-lg)", maxWidth: "100%" }}>
|
|
107
107
|
<TableToolbar label="Compact controls" query={query} onQueryChange={setQuery}
|
|
108
108
|
filters={<RoleFilter />} total={total} />
|
|
@@ -145,7 +145,7 @@ function PeopleTable({ rows, ko }: { rows: Person[]; ko: boolean }) {
|
|
|
145
145
|
];
|
|
146
146
|
return <div className={styles.scroll}><div role="table" aria-label={ko ? "대상 목록" : "People"}>
|
|
147
147
|
<TableHeader columns={columns} />{rows.map((row) => <TableRow key={row.id} columns={columns} data={row} />)}
|
|
148
|
-
</div>{!rows.length && <EmptyState title={ko ? "검색 결과가
|
|
148
|
+
</div>{!rows.length && <EmptyState title={ko ? "검색 결과가 없어요" : "No results"} />}</div>;
|
|
149
149
|
}
|
|
150
150
|
export function CustomerToolbarExample({ ko }: { ko: boolean }) {
|
|
151
151
|
const formId = useId();
|
|
@@ -165,7 +165,7 @@ export function CustomerToolbarExample({ ko }: { ko: boolean }) {
|
|
|
165
165
|
<TableToolbar.Spacer />
|
|
166
166
|
<TableToolbar.Group className={styles.customerTools}>
|
|
167
167
|
<TableToolbar.Search value={query} onValueChange={setQuery} width={200} className={styles.toolbarControl}
|
|
168
|
-
placeholder={view === "customers" ? (ko ? "고객 검색" : "Search customers
|
|
168
|
+
placeholder={view === "customers" ? (ko ? "고객 검색" : "Search customers") : (ko ? "직원 검색" : "Search employees")} />
|
|
169
169
|
<DropdownMenu><DropdownMenu.Trigger asChild><Button variant="outline" className={styles.toolbarControl} data-active={role !== "all" || undefined} leftIcon={<Icon name="sliders" />}>{role === "all" ? (ko ? "필터" : "Filters") : role}</Button></DropdownMenu.Trigger>
|
|
170
170
|
<DropdownMenu.Content><DropdownMenu.RadioGroup value={role} onValueChange={setRole}>
|
|
171
171
|
<DropdownMenu.RadioItem value="all">{ko ? "전체 직무" : "All roles"}</DropdownMenu.RadioItem>
|
|
@@ -232,7 +232,7 @@ export function FilterToolbarExample({ ko }: { ko: boolean }) {
|
|
|
232
232
|
{["all", "review"].map((value) => <Tabs.Panel key={value} value={value}>
|
|
233
233
|
<TableToolbar.Status total={rows.length} />
|
|
234
234
|
<div className={styles.scroll}><div role="table" aria-label={ko ? "거래 목록" : "Transactions"}><TableHeader columns={columns} />{rows.map((row) => <TableRow key={row.id} columns={columns} data={row} />)}</div></div>
|
|
235
|
-
{!rows.length && <EmptyState title={ko ? "조건에 맞는 거래가
|
|
235
|
+
{!rows.length && <EmptyState title={ko ? "조건에 맞는 거래가 없어요" : "No matching transactions"} />}
|
|
236
236
|
</Tabs.Panel>)}
|
|
237
237
|
</Tabs>;
|
|
238
238
|
}
|
|
@@ -378,7 +378,7 @@ function ToolbarExample({ ko, kind, table = false }: { ko: boolean; kind: Scenar
|
|
|
378
378
|
onSelectedChange={(checked) => setSelected(checked ? [...selected, row.id] : selected.filter((id) => id !== row.id))} />)}
|
|
379
379
|
</div>
|
|
380
380
|
</div>
|
|
381
|
-
{!filtered.length && <EmptyState title={ko ? "검색 결과가
|
|
381
|
+
{!filtered.length && <EmptyState title={ko ? "검색 결과가 없어요" : "No results"} />}
|
|
382
382
|
</>}
|
|
383
383
|
</div>;
|
|
384
384
|
}
|
|
@@ -388,7 +388,7 @@ export default function Page() {
|
|
|
388
388
|
const lang = ko ? "ko" : "en";
|
|
389
389
|
return <>
|
|
390
390
|
<h1 className="page-title">Table Toolbar</h1>
|
|
391
|
-
<p className="page-lead">{ko ? "탭·검색·필터·액션을 원하는 순서와 위치에
|
|
391
|
+
<p className="page-lead">{ko ? "탭·검색·필터·액션을 원하는 순서와 위치에 조합해요. 각 컨트롤의 스타일은 독립적으로 선택하며, 전체 배경은 선택 사항이에요." : "Compose tabs, search, filters and actions in any order. Choose each control’s style independently; the toolbar surface is optional."}</p>
|
|
392
392
|
<section data-use-cases id="compose" className="section-first">
|
|
393
393
|
<h2>{ko ? "자유롭게 조합하기" : "Compose freely"}</h2>
|
|
394
394
|
<h3>{ko ? "탭 + 우측 검색·필터·주요 액션" : "Tabs with search and actions on the right"}</h3>
|
|
@@ -446,7 +446,7 @@ export default function Page() {
|
|
|
446
446
|
</section>
|
|
447
447
|
<section data-use-cases id="narrow" className="section">
|
|
448
448
|
<h2>{ko ? "좁은 영역" : "Narrow container"}</h2>
|
|
449
|
-
<p className="desc">{ko ? "모든 항목은 한 줄을
|
|
449
|
+
<p className="desc">{ko ? "모든 항목은 한 줄을 유지해요. 가로로 스크롤하거나 Tab으로 다음 컨트롤로 이동할 수 있어요." : "Controls stay on one line. Scroll horizontally or use Tab to reach the next control."}</p>
|
|
450
450
|
<ExampleBlock align="column" code={`<div style={{ width: "var(--input-w-lg)", maxWidth: "100%" }}>
|
|
451
451
|
<TableToolbar label="Compact controls" query={query} onQueryChange={setQuery}
|
|
452
452
|
filters={<RoleFilter />} total={total} />
|
|
@@ -455,8 +455,8 @@ export default function Page() {
|
|
|
455
455
|
</ExampleBlock>
|
|
456
456
|
</section>
|
|
457
457
|
<section className="section">
|
|
458
|
-
<h2>API Reference</h2>
|
|
459
|
-
<p className="desc">{ko ? "Root는 배치만
|
|
458
|
+
<h2>{ko ? "속성" : "API Reference"}</h2>
|
|
459
|
+
<p className="desc">{ko ? "Root는 배치만 담당해요. Group·Spacer·Separator로 순서와 정렬을 만들고 Search·Status는 필요한 자리에만 넣으세요. className·style로 스킨을 바꾸고 surface=subtle로만 회색 바를 선택할 수 있어요. 아래 간편 API도 계속 지원해요." : 'Root controls layout only. Arrange Group, Spacer and Separator freely; add Search and Status where needed. Use className/style for skins, or surface="subtle" for an optional gray bar. The convenience API below remains supported.'}</p>
|
|
460
460
|
<DocsTable columns={[{ key: "part", label: "Part", width: "var(--input-w-md)" }, { key: "purpose", label: ko ? "역할" : "Purpose", flex: true, minWidth: "var(--input-w-md)" }]} rows={[
|
|
461
461
|
{ part: "Root", purpose: ko ? "자유 배치. label 필수, surface=plain|subtle, className/style 지원." : "Layout only. Required label; plain/subtle surface, className and style." },
|
|
462
462
|
{ part: "Group / Spacer / Separator", purpose: ko ? "컨트롤 묶음 / 남은 공간 / 명시적 경계. Group grow 지원." : "Group controls, consume free space, or separate groups. Group supports grow." },
|
|
@@ -464,7 +464,7 @@ export default function Page() {
|
|
|
464
464
|
{ part: "Status", purpose: ko ? "total/selectedCount 또는 커스텀 children 요약." : "Counts or custom summary children." },
|
|
465
465
|
]} />
|
|
466
466
|
<h3>{ko ? "간편 API" : "Convenience API"}</h3>
|
|
467
|
-
<DocsTable columns={[{ key: "prop", label: "Prop", width: "var(--input-w-md)" }, { key: "description", label: ko ? "설명" : "Description", flex: true, minWidth: "var(--input-w-md)" }]} rows={[
|
|
467
|
+
<DocsTable columns={[{ key: "prop", label: ko ? "속성" : "Prop", width: "var(--input-w-md)" }, { key: "description", label: ko ? "설명" : "Description", flex: true, minWidth: "var(--input-w-md)" }]} rows={[
|
|
468
468
|
{ prop: "label: string", description: ko ? "도구 그룹의 접근성 이름. 필수." : "Required accessible group name." },
|
|
469
469
|
{ prop: "query / onQueryChange", description: ko ? "검색 문자열과 변경 콜백. 실제 필터링은 호출 측 책임." : "Controlled search string and callback. The host filters data." },
|
|
470
470
|
{ prop: "search: boolean", description: ko ? "기본 true. false면 검색 영역을 생략." : "Defaults to true. Set false to omit search." },
|
|
@@ -100,7 +100,7 @@ type Strings = {
|
|
|
100
100
|
|
|
101
101
|
const en: Strings = {
|
|
102
102
|
title: "Drawer",
|
|
103
|
-
lead: "A full-height
|
|
103
|
+
lead: "A full-height side panel for details, editing, or settings alongside the page.",
|
|
104
104
|
|
|
105
105
|
usage: {
|
|
106
106
|
heading: "Usage",
|
|
@@ -179,11 +179,11 @@ const en: Strings = {
|
|
|
179
179
|
|
|
180
180
|
const ko: Strings = {
|
|
181
181
|
title: "Drawer",
|
|
182
|
-
lead: "화면
|
|
182
|
+
lead: "화면 좌우에서 열리는 전체 높이 패널이에요. 본문을 보면서 상세 정보·편집·설정 작업을 할 때 사용해요.",
|
|
183
183
|
|
|
184
184
|
usage: {
|
|
185
|
-
heading: "
|
|
186
|
-
desc: "
|
|
185
|
+
heading: "사용법",
|
|
186
|
+
desc: "본문에는 ReactNode를 자유롭게 넣을 수 있어요. 방향·크기·배경은 속성으로 조절해요. 하나의 결정에 집중해야 한다면 Modal을 사용해 주세요.",
|
|
187
187
|
},
|
|
188
188
|
usageDemo: {
|
|
189
189
|
title: "상세 보기",
|
|
@@ -191,45 +191,45 @@ const ko: Strings = {
|
|
|
191
191
|
dismissLabel: "닫기",
|
|
192
192
|
close: "닫기",
|
|
193
193
|
save: "저장",
|
|
194
|
-
body: "children
|
|
194
|
+
body: "children에 목록·탭·폼·이미지 등 ReactNode를 넣을 수 있어요.",
|
|
195
195
|
},
|
|
196
196
|
playground: {
|
|
197
|
-
desc: "
|
|
197
|
+
desc: "옵션을 바꾼 뒤 Drawer를 열어 확인해 보세요.",
|
|
198
198
|
close: "닫기",
|
|
199
199
|
save: "저장",
|
|
200
200
|
dismissLabel: "닫기",
|
|
201
|
-
descAxis: "
|
|
202
|
-
body: "
|
|
201
|
+
descAxis: "선택한 옵션을 확인할 수 있어요.",
|
|
202
|
+
body: "children에 원하는 ReactNode를 넣어 패널 본문을 구성해요.",
|
|
203
203
|
},
|
|
204
204
|
variants: {
|
|
205
|
-
heading: "
|
|
205
|
+
heading: "모양과 크기",
|
|
206
206
|
desc1: (
|
|
207
207
|
<>
|
|
208
|
-
<Code>side</Code>는 열리는
|
|
208
|
+
<Code>side</Code>는 패널이 열리는 방향이에요. 한 제품 안에선 용도별로 하나의 방향만 유지해요. <Code>size</Code>는 뷰포트 폭 기준 비율로 sm 33% · md 50% · lg 67%, 좁은 화면에서는 최소·최대 너비로 보정해요.
|
|
209
209
|
</>
|
|
210
210
|
),
|
|
211
211
|
desc2: (
|
|
212
212
|
<>
|
|
213
|
-
<Code>backdrop</Code>은 배경 타입만
|
|
213
|
+
<Code>backdrop</Code>은 배경 타입만 결정해요. <Code>none</Code>(기본)은 배경 없음, <Code>dim</Code>은 어두운 배경, <Code>blur</Code>는 어두운 배경과 흐림 효과를 적용해요. 바깥 클릭 닫힘은 별개로 <Code>dismissOnBackdropClick</Code>으로 설정해요.
|
|
214
214
|
</>
|
|
215
215
|
),
|
|
216
216
|
},
|
|
217
217
|
nonModal: {
|
|
218
|
-
heading: "
|
|
218
|
+
heading: "본문과 함께 사용",
|
|
219
219
|
desc: (
|
|
220
220
|
<>
|
|
221
221
|
<Code>backdrop="none"</Code>이면 배경 없이 상주하는 사이드 패널. 뒤 영역을 그대로 조작할 수 있어요.
|
|
222
222
|
</>
|
|
223
223
|
),
|
|
224
224
|
title: "사이드 패널",
|
|
225
|
-
body: "
|
|
225
|
+
body: "패널 뒤의 본문도 계속 조작할 수 있어요.",
|
|
226
226
|
dismissLabel: "닫기",
|
|
227
227
|
},
|
|
228
228
|
locked: {
|
|
229
|
-
heading: "
|
|
229
|
+
heading: "닫기 제한",
|
|
230
230
|
desc: (
|
|
231
231
|
<>
|
|
232
|
-
바깥 클릭·ESC
|
|
232
|
+
바깥 영역 클릭·ESC·닫기 버튼을 막아 작업 중 실수로 닫히지 않게 해요. 하단 버튼으로 다음 단계로 이동할 수 있어요. 배경은 <Code>dim</Code>으로 흐름을 끊고, <Code>dismissOnBackdropClick=false</Code>로 바깥 클릭을 막아요.
|
|
233
233
|
</>
|
|
234
234
|
),
|
|
235
235
|
title: "진행 중",
|
|
@@ -237,13 +237,13 @@ const ko: Strings = {
|
|
|
237
237
|
done: "완료",
|
|
238
238
|
},
|
|
239
239
|
api: {
|
|
240
|
-
heading: "
|
|
241
|
-
columns: { prop: "
|
|
240
|
+
heading: "속성",
|
|
241
|
+
columns: { prop: "속성", type: "타입", default: "기본값", desc: "설명" },
|
|
242
242
|
rows: {
|
|
243
|
-
open: "
|
|
244
|
-
onOpenChange: "열림
|
|
243
|
+
open: "메뉴나 패널이 열려 있는지 나타내요.",
|
|
244
|
+
onOpenChange: "열림 상태가 바뀌면 호출해요.",
|
|
245
245
|
title: "필수. 숨길 땐 titleSrOnly.",
|
|
246
|
-
description: "
|
|
246
|
+
description: "제목 아래 표시할 설명이에요.",
|
|
247
247
|
side: "열리는 방향.",
|
|
248
248
|
size: "뷰포트 폭 비율. sm 33 · md 50 · lg 67.",
|
|
249
249
|
backdrop: "뒤 배경 타입만. 바깥 클릭 닫힘은 별개.",
|
|
@@ -251,7 +251,7 @@ const ko: Strings = {
|
|
|
251
251
|
dismissible: "헤더 우측 X 버튼.",
|
|
252
252
|
disableEscape: "ESC 키 닫힘 차단.",
|
|
253
253
|
children: "바디. 세로 스크롤 담당.",
|
|
254
|
-
footer: "하단
|
|
254
|
+
footer: "하단 작업 영역.",
|
|
255
255
|
},
|
|
256
256
|
},
|
|
257
257
|
};
|
|
@@ -265,6 +265,8 @@ export type { Strings };
|
|
|
265
265
|
````tsx
|
|
266
266
|
"use client";
|
|
267
267
|
|
|
268
|
+
import { PreviewButton } from "@/app/_components/PreviewButton";
|
|
269
|
+
|
|
268
270
|
import { useState } from "react";
|
|
269
271
|
import { usePathname } from "next/navigation";
|
|
270
272
|
import {
|
|
@@ -318,7 +320,7 @@ export default function DrawerPage() {
|
|
|
318
320
|
|
|
319
321
|
const [open, setOpen] = useState(false);
|
|
320
322
|
|
|
321
|
-
<Button onClick={() => setOpen(true)}>Open drawer</Button>
|
|
323
|
+
<Button variant="outline" onClick={() => setOpen(true)}>Open drawer</Button>
|
|
322
324
|
<Drawer
|
|
323
325
|
open={open}
|
|
324
326
|
onOpenChange={setOpen}
|
|
@@ -335,7 +337,7 @@ const [open, setOpen] = useState(false);
|
|
|
335
337
|
</Drawer>`}
|
|
336
338
|
>
|
|
337
339
|
<>
|
|
338
|
-
<
|
|
340
|
+
<PreviewButton onClick={() => setUsageOpen(true)}>Open drawer</PreviewButton>
|
|
339
341
|
<Drawer
|
|
340
342
|
open={usageOpen}
|
|
341
343
|
onOpenChange={setUsageOpen}
|
|
@@ -370,7 +372,7 @@ const [open, setOpen] = useState(false);
|
|
|
370
372
|
]}
|
|
371
373
|
>
|
|
372
374
|
<>
|
|
373
|
-
<
|
|
375
|
+
<PreviewButton onClick={() => setPgOpen(true)}>Open drawer</PreviewButton>
|
|
374
376
|
<Drawer
|
|
375
377
|
open={pgOpen}
|
|
376
378
|
onOpenChange={setPgOpen}
|
|
@@ -412,7 +414,7 @@ const [open, setOpen] = useState(false);
|
|
|
412
414
|
</Drawer>`}
|
|
413
415
|
>
|
|
414
416
|
<>
|
|
415
|
-
<
|
|
417
|
+
<PreviewButton onClick={() => setNonModalOpen(true)}>Open drawer</PreviewButton>
|
|
416
418
|
<Drawer
|
|
417
419
|
open={nonModalOpen}
|
|
418
420
|
onOpenChange={setNonModalOpen}
|
|
@@ -443,7 +445,7 @@ const [open, setOpen] = useState(false);
|
|
|
443
445
|
/>`}
|
|
444
446
|
>
|
|
445
447
|
<>
|
|
446
|
-
<
|
|
448
|
+
<PreviewButton onClick={() => setLockedOpen(true)}>Open drawer</PreviewButton>
|
|
447
449
|
<Drawer
|
|
448
450
|
open={lockedOpen}
|
|
449
451
|
onOpenChange={() => {}}
|
|
@@ -673,7 +675,7 @@ export function CommentDiscussion({ value, onChange, variant = "line", label = "
|
|
|
673
675
|
.versions h3 { margin: 0 0 var(--space-4); font-size: var(--text-base); }
|
|
674
676
|
.notion { max-width: calc(var(--size-24) * 7); padding: var(--space-10) var(--space-12) var(--space-12); margin-inline: auto; }
|
|
675
677
|
.pageTitle.pageTitle { padding: 0; height: auto; min-height: var(--size-10); border: 0; box-shadow: none; margin-bottom: var(--space-4); background: transparent; }
|
|
676
|
-
.pageTitle :global(input) { font-family: var(--font-normal); font-size: var(--text-4xl); font-weight: var(--font-weight-medium); line-height: var(--lh-4xl); letter-spacing: var(--tracking
|
|
678
|
+
.pageTitle :global(input) { font-family: var(--font-normal); font-size: var(--text-4xl); font-weight: var(--font-weight-medium); line-height: var(--lh-4xl); letter-spacing: var(--type-4xl-tracking); }
|
|
677
679
|
.notionProperties { gap: 0; }
|
|
678
680
|
.notionProperties .property { grid-template-columns: calc(var(--size-16) * 2) minmax(0, 1fr); min-height: calc(var(--size-3) * 3); gap: var(--space-3); }
|
|
679
681
|
.quietChoice.quietChoice { border: 0; background: transparent; box-shadow: none; padding-inline: var(--space-2); width: fit-content; max-width: 100%; min-width: 0; color: var(--fg); }
|
|
@@ -768,6 +770,8 @@ export function CommentDiscussion({ value, onChange, variant = "line", label = "
|
|
|
768
770
|
````tsx
|
|
769
771
|
"use client";
|
|
770
772
|
|
|
773
|
+
import { PreviewButton } from "@/app/_components/PreviewButton";
|
|
774
|
+
|
|
771
775
|
import * as Popover from "@radix-ui/react-popover";
|
|
772
776
|
import { useRef, useState, useEffect, type FormEvent, type ReactNode } from "react";
|
|
773
777
|
import { Drawer } from "@/components/Drawer";
|
|
@@ -801,7 +805,7 @@ function Panel({ kind, title, launch, breadcrumb, actions, children, open, onOpe
|
|
|
801
805
|
const [expanded, setExpanded] = useState(false);
|
|
802
806
|
const change = (next: boolean) => { onOpenChange(next); if (!next) requestAnimationFrame(() => trigger.current?.focus()); };
|
|
803
807
|
return <>
|
|
804
|
-
<
|
|
808
|
+
<PreviewButton ref={trigger} onClick={() => change(true)}>{launch}</PreviewButton>
|
|
805
809
|
<Drawer.Root open={open} onOpenChange={change} disableEscape={suspendEscape} size="lg" backdrop="none" dismissOnBackdropClick={false}>
|
|
806
810
|
<div className={styles.content} data-example-kind={kind} data-expanded={expanded || undefined}>
|
|
807
811
|
<Drawer.Header title={title} titleSrOnly dismissible={false} />
|
|
@@ -1038,11 +1042,12 @@ export function DrawerDetailExamples({ lang }: { lang: "ko" | "en" }) {
|
|
|
1038
1042
|
````tsx
|
|
1039
1043
|
"use client";
|
|
1040
1044
|
|
|
1045
|
+
import { PreviewButton } from "@/app/_components/PreviewButton";
|
|
1046
|
+
|
|
1041
1047
|
import { Tag } from "@/components/Tag";
|
|
1042
1048
|
import { useRef, useState } from "react";
|
|
1043
1049
|
import { ThemeLocaleProvider } from "@/components/ThemeController";
|
|
1044
1050
|
import { Badge } from "@/components/Badge";
|
|
1045
|
-
import { Button } from "@/components/Button";
|
|
1046
1051
|
import { CodeBlock } from "@/components/CodeBlock";
|
|
1047
1052
|
import { Drawer } from "@/components/Drawer";
|
|
1048
1053
|
import { IconButton } from "@/components/IconButton";
|
|
@@ -1151,7 +1156,7 @@ export function TraceSidePanelExample() {
|
|
|
1151
1156
|
const [maximized, setMaximized] = useState(false);
|
|
1152
1157
|
const trigger = useRef<HTMLButtonElement>(null);
|
|
1153
1158
|
return <ThemeLocaleProvider lang="en"><div className={styles.example}>
|
|
1154
|
-
<
|
|
1159
|
+
<PreviewButton ref={trigger} onClick={() => setOpen(true)}>Open trace panel</PreviewButton>
|
|
1155
1160
|
<Drawer.Root open={open} onOpenChange={(value) => { setOpen(value); if (!value) requestAnimationFrame(() => trigger.current?.focus()); }} size="lg" backdrop="none" dismissOnBackdropClick={false}>
|
|
1156
1161
|
<div className={styles.dialogContent} data-expanded={maximized || undefined}>
|
|
1157
1162
|
<Drawer.Header title={"Trace detail"} titleSrOnly dismissible={false} />
|
|
@@ -173,15 +173,15 @@ const ko: Strings = {
|
|
|
173
173
|
title: "Progress Bar",
|
|
174
174
|
lead: (
|
|
175
175
|
<>
|
|
176
|
-
포인트 색으로 진행률을 표시하며, 모노에서는 밝은 화면에 검정, 어두운 화면에 흰색을
|
|
176
|
+
포인트 색으로 진행률을 표시하며, 모노에서는 밝은 화면에 검정, 어두운 화면에 흰색을 사용해요. <Code>value</Code>가 숫자면 해당 비율만큼 채우고, 생략하면 완료 전까지 서서히 진행해요. 업로드·다운로드나 페이지 이동 상태에 사용해요.
|
|
177
177
|
</>
|
|
178
178
|
),
|
|
179
179
|
|
|
180
180
|
usage: {
|
|
181
|
-
heading: "
|
|
181
|
+
heading: "사용법",
|
|
182
182
|
desc: (
|
|
183
183
|
<>
|
|
184
|
-
<Code>label</Code>과 <Code>output</Code>
|
|
184
|
+
<Code>label</Code>과 <Code>output</Code> 을 넣으면 진행률 위에 라벨과 값을 표시해요. 숫자 너비를 일정하게 유지해 값이 바뀌어도 위치가 흔들리지 않아요.
|
|
185
185
|
</>
|
|
186
186
|
),
|
|
187
187
|
demoLabel: "디자인 시스템.pdf",
|
|
@@ -189,44 +189,44 @@ const ko: Strings = {
|
|
|
189
189
|
reset: "초기화",
|
|
190
190
|
},
|
|
191
191
|
playground: {
|
|
192
|
-
desc: "
|
|
192
|
+
desc: "옵션을 바꿔보세요. indeterminate를 켜면 value 대신 진행 중 애니메이션을 표시해요.",
|
|
193
193
|
label: "진행 중",
|
|
194
194
|
},
|
|
195
195
|
|
|
196
196
|
sizes: {
|
|
197
|
-
heading: "
|
|
197
|
+
heading: "크기",
|
|
198
198
|
desc: (
|
|
199
199
|
<>
|
|
200
|
-
|
|
200
|
+
두 가지 두께를 제공해요. <Code>sm</Code>은 2px(테이블 셀 안·조밀한 리스트), <Code>md</Code>는 4px(기본, 폼·설정 패널).
|
|
201
201
|
</>
|
|
202
202
|
),
|
|
203
203
|
},
|
|
204
204
|
indeterminate: {
|
|
205
|
-
heading: "
|
|
205
|
+
heading: "진행률을 모를 때",
|
|
206
206
|
desc: (
|
|
207
207
|
<>
|
|
208
|
-
<Code>value</Code>
|
|
208
|
+
<Code>value</Code> 를 생략하면 0 → 30% → 55% → 75% → 90% 순서로 서서히 진행해요. <Code>active=false</Code>가 되면 100%까지 채운 뒤 사라져요. 페이지 이동 상태를 표시할 때는 TopLoader를 사용해 보세요.
|
|
209
209
|
</>
|
|
210
210
|
),
|
|
211
211
|
},
|
|
212
212
|
|
|
213
213
|
inUse: {
|
|
214
214
|
upload: "파일 업로드",
|
|
215
|
-
uploadDesc: "업로드 진행
|
|
216
|
-
loading: "
|
|
217
|
-
loadingDesc: "첫 화면을 불러오는 동안 진행률 바만 화면 중앙에
|
|
215
|
+
uploadDesc: "업로드 진행 상태를 보여주는 예시예요. 실제 파일은 전송하지 않아요.",
|
|
216
|
+
loading: "전체 화면 로딩",
|
|
217
|
+
loadingDesc: "첫 화면을 불러오는 동안 진행률 바만 화면 중앙에 표시해요.",
|
|
218
218
|
},
|
|
219
219
|
|
|
220
220
|
api: {
|
|
221
|
-
heading: "
|
|
222
|
-
columns: { prop: "
|
|
221
|
+
heading: "속성",
|
|
222
|
+
columns: { prop: "속성", type: "타입", default: "기본값", desc: "설명" },
|
|
223
223
|
rows: {
|
|
224
224
|
value: "0~100. 미지정 시 indeterminate.",
|
|
225
225
|
size: "두께. sm=2px / md=4px.",
|
|
226
226
|
position: "fixed는 화면 최상단 overlay.",
|
|
227
227
|
active: "false면 fade-out.",
|
|
228
228
|
label: "좌측 라벨. 공급 시 자체 헤더 라인 렌더.",
|
|
229
|
-
output: "
|
|
229
|
+
output: "오른쪽에 표시할 값이에요. 숫자의 너비를 일정하게 유지해요.",
|
|
230
230
|
},
|
|
231
231
|
},
|
|
232
232
|
};
|
|
@@ -300,10 +300,12 @@ import { UploadExample, FullPageLoadingExample } from "./_InUse";
|
|
|
300
300
|
const PG_SIZES: ProgressBarSize[] = ["sm", "md"];
|
|
301
301
|
|
|
302
302
|
export default function ProgressBarPage() {
|
|
303
|
-
const
|
|
303
|
+
const lang = localeFromPathname(usePathname() ?? "/");
|
|
304
|
+
const t = strings[lang];
|
|
304
305
|
|
|
305
306
|
const [pgSize, setPgSize] = useState<ProgressBarSize>("md");
|
|
306
307
|
const [pgValue, setPgValue] = useState(42);
|
|
308
|
+
const [pgFlow, setPgFlow] = useState(false);
|
|
307
309
|
const [pgIndet, setPgIndet] = useState(false);
|
|
308
310
|
const [pgLabel, setPgLabel] = useState(false);
|
|
309
311
|
const [pgOutput, setPgOutput] = useState(false);
|
|
@@ -345,6 +347,7 @@ export default function ProgressBarPage() {
|
|
|
345
347
|
{ label: "value", value: pgValue, onChange: setPgValue, min: 0, max: 100, unit: "%" },
|
|
346
348
|
]}
|
|
347
349
|
toggles={[
|
|
350
|
+
{ label: "flow", value: pgFlow, onChange: setPgFlow },
|
|
348
351
|
{ label: "indeterminate", value: pgIndet, onChange: setPgIndet },
|
|
349
352
|
{ label: "label", value: pgLabel, onChange: setPgLabel },
|
|
350
353
|
{ label: "output", value: pgOutput, onChange: setPgOutput },
|
|
@@ -353,6 +356,7 @@ export default function ProgressBarPage() {
|
|
|
353
356
|
<div className={styles.demo}>
|
|
354
357
|
<ProgressBar
|
|
355
358
|
size={pgSize}
|
|
359
|
+
variant={pgFlow ? "flow" : "progress"}
|
|
356
360
|
value={pgIndet ? undefined : pgValue}
|
|
357
361
|
label={pgLabel ? strings.en.playground.label : undefined}
|
|
358
362
|
output={pgOutput && !pgIndet ? `${pgValue}%` : undefined}
|
|
@@ -412,12 +416,13 @@ export default function ProgressBarPage() {
|
|
|
412
416
|
{ key: "desc", label: t.api.columns.desc, flex: true, minWidth: 240 },
|
|
413
417
|
]}
|
|
414
418
|
rows={[
|
|
415
|
-
{ prop: <Code>value</Code>, type: <Code>number</Code>, default: "
|
|
419
|
+
{ prop: <Code>value</Code>, type: <Code>number</Code>, default: "", desc: t.api.rows.value },
|
|
420
|
+
{ prop: <Code>variant</Code>, type: <Code>'progress' | 'flow'</Code>, default: <Code>'progress'</Code>, desc: lang === "ko" ? "flow는 부드러운 빛의 흐름을 반복하며 value는 접근성 진행률로 유지합니다." : "Flow repeats a soft light sweep; value remains available to assistive technology." },
|
|
416
421
|
{ prop: <Code>size</Code>, type: <Code>'sm' | 'md'</Code>, default: <Code>'md'</Code>, desc: t.api.rows.size },
|
|
417
422
|
{ prop: <Code>position</Code>, type: <Code>'fixed' | 'inline'</Code>, default: <Code>'inline'</Code>, desc: t.api.rows.position },
|
|
418
423
|
{ prop: <Code>active</Code>, type: <Code>boolean</Code>, default: <Code>true</Code>, desc: t.api.rows.active },
|
|
419
|
-
{ prop: <Code>label</Code>, type: <Code>ReactNode</Code>, default: "
|
|
420
|
-
{ prop: <Code>output</Code>, type: <Code>ReactNode</Code>, default: "
|
|
424
|
+
{ prop: <Code>label</Code>, type: <Code>ReactNode</Code>, default: "", desc: t.api.rows.label },
|
|
425
|
+
{ prop: <Code>output</Code>, type: <Code>ReactNode</Code>, default: "", desc: t.api.rows.output },
|
|
421
426
|
]}
|
|
422
427
|
/>
|
|
423
428
|
</section>
|
|
@@ -95,7 +95,7 @@ type Strings = {
|
|
|
95
95
|
|
|
96
96
|
const en: Strings = {
|
|
97
97
|
title: "Toolbar",
|
|
98
|
-
lead: "
|
|
98
|
+
lead: "Groups related tools for editors, canvases, and other repeated actions.",
|
|
99
99
|
playgroundDesc: "Toggle the knobs below to inspect combinations.",
|
|
100
100
|
|
|
101
101
|
searchLabel: "Search",
|
|
@@ -186,8 +186,8 @@ const en: Strings = {
|
|
|
186
186
|
|
|
187
187
|
const ko: Strings = {
|
|
188
188
|
title: "Toolbar",
|
|
189
|
-
lead: "아이콘과 텍스트
|
|
190
|
-
playgroundDesc: "
|
|
189
|
+
lead: "아이콘과 텍스트 버튼을 가로로 묶어요. 편집기나 캔버스에서 자주 쓰는 작업을 모아둘 수 있어요.",
|
|
190
|
+
playgroundDesc: "옵션을 바꿔 모양과 동작을 확인해 보세요.",
|
|
191
191
|
|
|
192
192
|
searchLabel: "검색",
|
|
193
193
|
listLabel: "목록",
|
|
@@ -200,7 +200,7 @@ const ko: Strings = {
|
|
|
200
200
|
previewLabel: "미리보기",
|
|
201
201
|
graphSelect: "그래프 선택",
|
|
202
202
|
editorToolsLabel: "편집 도구",
|
|
203
|
-
sideActionsLabel: "사이드
|
|
203
|
+
sideActionsLabel: "사이드 작업",
|
|
204
204
|
editTestLabel: "편집 (키보드 테스트)",
|
|
205
205
|
selectLabel: "선택",
|
|
206
206
|
editLabel: "편집",
|
|
@@ -215,48 +215,48 @@ const ko: Strings = {
|
|
|
215
215
|
underlineLabel: "밑줄",
|
|
216
216
|
|
|
217
217
|
usage: {
|
|
218
|
-
heading: "
|
|
218
|
+
heading: "사용법",
|
|
219
219
|
desc: (
|
|
220
220
|
<>
|
|
221
|
-
내부는 <Code>Toolbar.Group</Code>과 그룹 사이의 <Code>Toolbar.Divider</Code>로만
|
|
221
|
+
내부는 <Code>Toolbar.Group</Code>과 그룹 사이의 <Code>Toolbar.Divider</Code>로만 구성해요.
|
|
222
222
|
</>
|
|
223
223
|
),
|
|
224
224
|
},
|
|
225
225
|
variants: {
|
|
226
|
-
heading: "
|
|
226
|
+
heading: "모양과 크기",
|
|
227
227
|
variantDesc: (
|
|
228
228
|
<>
|
|
229
|
-
<Code>floating</Code>은 캔버스 위에 떠 있는
|
|
229
|
+
<Code>floating</Code>은 캔버스 위에 떠 있는 둥근 도구 모음이에요. 배경과 그림자가 있어요. <Code>attached</Code>는 콘텐츠에 붙은 도구 모음이에요. 배경 없이 아래 구분선만 표시해요.
|
|
230
230
|
</>
|
|
231
231
|
),
|
|
232
|
-
sizeDesc: (<><Code>xs</Code>는 히트박스24·아이콘16, <Code>sm</Code>은28·18, <Code>md</Code>는30·18
|
|
232
|
+
sizeDesc: (<><Code>xs</Code>는 히트박스24·아이콘16, <Code>sm</Code>은28·18, <Code>md</Code>는30·18이에요.</>),
|
|
233
233
|
},
|
|
234
234
|
orientation: {
|
|
235
|
-
heading: "
|
|
235
|
+
heading: "세로 배치",
|
|
236
236
|
desc: (
|
|
237
237
|
<>
|
|
238
|
-
<Code>orientation="vertical"</Code>로
|
|
238
|
+
<Code>orientation="vertical"</Code>로 도구 모음을 세로로 배치해요. 사이드 패널이나 오른쪽 속성 패널에 사용할 수 있어요. <Code>Toolbar.Divider</Code>는 가로 구분선이 되고, 키보드는 ↑↓로 이동해요.
|
|
239
239
|
</>
|
|
240
240
|
),
|
|
241
241
|
},
|
|
242
242
|
keyboard: {
|
|
243
|
-
heading: "
|
|
243
|
+
heading: "키보드 이동",
|
|
244
244
|
desc: (
|
|
245
245
|
<>
|
|
246
|
-
Tab으로
|
|
246
|
+
Tab으로 도구 모음에 진입하고, 안에서는 <Code>←</Code> <Code>→</Code> (가로) 또는 <Code>↑</Code> <Code>↓</Code> (세로)로 항목을 이동해요. <Code>Home</Code>, <Code>End</Code>로 처음과 끝으로 이동해요. Tab과 Shift+Tab으로 도구 모음을 벗어날 수 있어요.
|
|
247
247
|
</>
|
|
248
248
|
),
|
|
249
249
|
},
|
|
250
250
|
api: {
|
|
251
|
-
heading: "
|
|
251
|
+
heading: "속성",
|
|
252
252
|
desc: (
|
|
253
253
|
<>
|
|
254
254
|
서브컴포넌트는 <Code>Toolbar.Group</Code>, <Code>Toolbar.Divider</Code>. 안쪽 IconButton은 기본 size로 두세요.
|
|
255
255
|
</>
|
|
256
256
|
),
|
|
257
|
-
columns: { prop: "
|
|
257
|
+
columns: { prop: "속성", type: "타입", default: "기본값", desc: "설명" },
|
|
258
258
|
rows: {
|
|
259
|
-
variant: "floating은 떠 있는 알약, attached는 콘텐츠에
|
|
259
|
+
variant: "floating은 떠 있는 알약, attached는 콘텐츠에 붙는 도구 모음이에요.",
|
|
260
260
|
size: "xs=24/16, sm=28/18, md=30/18 (히트박스/아이콘).",
|
|
261
261
|
orientation: "세로 toolbar는 사이드 inspector 자리. Divider 자동 회전, 키보드 ↑↓.",
|
|
262
262
|
stretch: "true면 부모 폭을 꽉 채움. attached는 자동 true.",
|