@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
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
- Admin console
|
|
8
8
|
- AI chat app
|
|
9
|
-
- Detail page
|
|
10
|
-
- Notion style
|
|
9
|
+
- Detail page: back + save
|
|
10
|
+
- Notion style: toggle + expand
|
|
11
11
|
|
|
12
12
|
문서: /en/components/structure/topbar#use-cases
|
|
13
13
|
|
|
@@ -95,7 +95,7 @@ get_guide(topic="use-cases/structure-topbar", sections=["사례 목록", "파일
|
|
|
95
95
|
<Topbar className={styles.previewTopbar}>
|
|
96
96
|
<Topbar.Leading>
|
|
97
97
|
<IconButton size="sm" variant="ghost" icon={<Icon name="list" />} aria-label="Conversations" />
|
|
98
|
-
<span className={styles.chatTitle}>Project kickoff
|
|
98
|
+
<span className={styles.chatTitle}>Project kickoff: initial brainstorm</span>
|
|
99
99
|
</Topbar.Leading>
|
|
100
100
|
<Topbar.Trailing>
|
|
101
101
|
<DropdownMenu>
|
|
@@ -272,8 +272,8 @@ const en: Strings = {
|
|
|
272
272
|
desc: "Common topbar compositions by product type. Copy a shape that fits your page.",
|
|
273
273
|
admin: "Admin console",
|
|
274
274
|
aiChat: "AI chat app",
|
|
275
|
-
detail: "Detail page
|
|
276
|
-
notion: "Notion style
|
|
275
|
+
detail: "Detail page: back + save",
|
|
276
|
+
notion: "Notion style: toggle + expand",
|
|
277
277
|
},
|
|
278
278
|
api: {
|
|
279
279
|
heading: "API Reference",
|
|
@@ -316,94 +316,90 @@ const ko: Strings = {
|
|
|
316
316
|
title: "Topbar",
|
|
317
317
|
lead: (
|
|
318
318
|
<>
|
|
319
|
-
페이지
|
|
320
|
-
담당합니다. 내부는 <Code>Leading</Code>·<Code>Center</Code>·<Code>Trailing</Code> 3-zone으로
|
|
321
|
-
고정. leading과 trailing 짝이 기본이고 center는 선택.
|
|
319
|
+
페이지 상단의 탐색과 작업을 배치해요. 배경·테두리·그림자는 바깥 프레임에서 정하고, 안쪽은 <Code>Leading</Code>·<Code>Center</Code>·<Code>Trailing</Code> 세 영역으로 나눠요. 앞쪽과 뒤쪽을 기본으로 쓰고 가운데 영역은 필요할 때 추가해요.
|
|
322
320
|
</>
|
|
323
321
|
),
|
|
324
322
|
usage: {
|
|
325
|
-
heading: "
|
|
323
|
+
heading: "사용법",
|
|
326
324
|
desc: (
|
|
327
325
|
<>
|
|
328
|
-
<Code>Topbar.Leading</Code>과 <Code>Topbar.Trailing</Code
|
|
329
|
-
비우면
|
|
326
|
+
<Code>Topbar.Leading</Code>과 <Code>Topbar.Trailing</Code>을 함께 조립해요. <Code>Center</Code>를
|
|
327
|
+
비우면 앞쪽과 뒤쪽 영역 사이에 여유 공간을 둬요.
|
|
330
328
|
</>
|
|
331
329
|
),
|
|
332
330
|
},
|
|
333
|
-
playgroundDesc: "leading·center·trailing 조합과 size를
|
|
331
|
+
playgroundDesc: "leading·center·trailing 조합과 size를 바꿔 보세요.",
|
|
334
332
|
sizes: {
|
|
335
|
-
heading: "
|
|
333
|
+
heading: "크기",
|
|
336
334
|
desc: (
|
|
337
335
|
<>
|
|
338
|
-
<Code>size</Code>는 세로 높이만
|
|
339
|
-
데이터
|
|
336
|
+
<Code>size</Code>는 세로 높이만 정해요. <Code>md</Code>가 기본, <Code>sm</Code>은 관리 도구나
|
|
337
|
+
데이터 화면에 쓰는 낮은 탑바예요. 좌우 여백은 크기와 관계없이 같아요.
|
|
340
338
|
</>
|
|
341
339
|
),
|
|
342
340
|
},
|
|
343
341
|
leadingCompositions: {
|
|
344
|
-
heading: "
|
|
345
|
-
desc: "Leading
|
|
342
|
+
heading: "앞쪽 영역 구성",
|
|
343
|
+
desc: "Leading에는 ReactNode를 넣을 수 있어요. 페이지 제목, Breadcrumb, 사이드바 토글, 브랜드 로고를 조합해요.",
|
|
346
344
|
},
|
|
347
345
|
withCenter: {
|
|
348
|
-
heading: "
|
|
346
|
+
heading: "가운데 영역",
|
|
349
347
|
desc: (
|
|
350
348
|
<>
|
|
351
|
-
<Code>Topbar.Center</Code>는
|
|
352
|
-
요소를 담습니다.
|
|
349
|
+
<Code>Topbar.Center</Code>는 남은 공간을 채워요. 검색 버튼처럼 가운데에 고정할 요소를 담아요.
|
|
353
350
|
</>
|
|
354
351
|
),
|
|
355
352
|
},
|
|
356
353
|
withinFrame: {
|
|
357
|
-
heading: "
|
|
354
|
+
heading: "프레임 안에 배치",
|
|
358
355
|
desc: (
|
|
359
356
|
<>
|
|
360
357
|
Topbar는 투명한 콘텐츠 슬롯이고 아래 선·카드 느낌·사이드바와의 위치 관계는 모두 감싸는
|
|
361
|
-
프레임이
|
|
362
|
-
<Link href="/components/structure/app-frame"> App Frame</Link
|
|
358
|
+
프레임이 결정해요. 자세한 조합은
|
|
359
|
+
<Link href="/components/structure/app-frame"> App Frame</Link>을 참고해요.
|
|
363
360
|
</>
|
|
364
361
|
),
|
|
365
362
|
},
|
|
366
363
|
withTabs: {
|
|
367
|
-
heading: "
|
|
364
|
+
heading: "탭",
|
|
368
365
|
desc: (
|
|
369
366
|
<>
|
|
370
|
-
탑바 아래 서브 네비게이션이 필요하면 <Code>AppFrame.Tabs</Code> 슬롯을
|
|
371
|
-
|
|
372
|
-
겹치지 않습니다).
|
|
367
|
+
탑바 아래 서브 네비게이션이 필요하면 <Code>AppFrame.Tabs</Code> 슬롯을 써요. 탑바 바로
|
|
368
|
+
아래에 배치되고 하단 구분선을 표시해요. 탑바의 아래 선은 자동으로 사라져 겹치지 않아요.
|
|
373
369
|
</>
|
|
374
370
|
),
|
|
375
371
|
},
|
|
376
372
|
useCases: {
|
|
377
373
|
heading: "사용 사례",
|
|
378
|
-
desc: "제품
|
|
374
|
+
desc: "제품 유형에 맞는 탑바 구성을 골라 사용해요.",
|
|
379
375
|
admin: "운영 콘솔",
|
|
380
376
|
aiChat: "AI 챗 앱",
|
|
381
|
-
detail: "상세
|
|
382
|
-
notion: "노션
|
|
377
|
+
detail: "상세 페이지: 뒤로가기 + 저장",
|
|
378
|
+
notion: "노션 스타일: 사이드바 접기 + 페이지 확장",
|
|
383
379
|
},
|
|
384
380
|
api: {
|
|
385
|
-
heading: "
|
|
386
|
-
desc: "Topbar는
|
|
387
|
-
columns: { prop: "
|
|
381
|
+
heading: "속성",
|
|
382
|
+
desc: "Topbar는 세 영역의 가로 배치만 담당해요. 배경과 테두리는 바깥 프레임에서 정해요.",
|
|
383
|
+
columns: { prop: "요소", role: "역할", desc: "설명" },
|
|
388
384
|
rows: {
|
|
389
385
|
topbar: {
|
|
390
386
|
role: "가로 flex 컨테이너",
|
|
391
|
-
desc: "
|
|
387
|
+
desc: "좌우 여백은 space-5이고 세 영역을 자동으로 배분해요.",
|
|
392
388
|
},
|
|
393
389
|
size: {
|
|
394
|
-
desc: "세로
|
|
390
|
+
desc: "세로 높이를 정해요. 좌우 여백은 크기와 관계없이 같아요.",
|
|
395
391
|
},
|
|
396
392
|
leading: {
|
|
397
|
-
role: "왼쪽
|
|
398
|
-
desc: "
|
|
393
|
+
role: "왼쪽 영역 (내용에 맞춘 너비)",
|
|
394
|
+
desc: "브랜드·뒤로가기·경로·제목을 놓아요. 항목 간격은 space-1이에요.",
|
|
399
395
|
},
|
|
400
396
|
center: {
|
|
401
|
-
role: "가운데
|
|
402
|
-
desc: "
|
|
397
|
+
role: "가운데 영역 (남은 너비)",
|
|
398
|
+
desc: "검색 버튼처럼 가운데에 고정할 요소를 넣어요. 비우면 양쪽 영역 사이에 여유 공간을 둬요.",
|
|
403
399
|
},
|
|
404
400
|
trailing: {
|
|
405
|
-
role: "오른쪽
|
|
406
|
-
desc: "
|
|
401
|
+
role: "오른쪽 영역 (내용에 맞춘 너비)",
|
|
402
|
+
desc: "작업 아이콘·아바타·주요 버튼을 오른쪽 끝에 배치해요.",
|
|
407
403
|
},
|
|
408
404
|
},
|
|
409
405
|
},
|
|
@@ -838,7 +834,7 @@ export default function TopbarPage() {
|
|
|
838
834
|
<Topbar className={styles.previewTopbar}>
|
|
839
835
|
<Topbar.Leading>
|
|
840
836
|
<IconButton size="sm" variant="ghost" icon={<Icon name="list" />} aria-label="Conversations" />
|
|
841
|
-
<span className={styles.chatTitle}>Project kickoff
|
|
837
|
+
<span className={styles.chatTitle}>Project kickoff: initial brainstorm</span>
|
|
842
838
|
</Topbar.Leading>
|
|
843
839
|
<Topbar.Trailing>
|
|
844
840
|
<DropdownMenu>
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ovenn-wireframe
|
|
3
|
-
description: 기존
|
|
3
|
+
description: 기존 화면·와이어프레임·레거시 컴포넌트를 Ovenn으로 전환한다. "기존 프로젝트를 Ovenn으로 바꿔줘", "컴포넌트 교체", "디자인 시스템 마이그레이션", "이 화면을 Ovenn 부품으로" 요청에 발동. 인벤토리 → 매핑표 → 교체 → 정리 순서로 진행하며 사용자가 유지하라는 표현만 보존한다. Keywords: 전환, 교체, 마이그레이션, migrate, legacy, 기존 컴포넌트, 와이어프레임, wireframe.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# ovenn-wireframe
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
기존 UI를 Ovenn으로 바꾸는 작업의 진입점이다. 새 화면을 0부터 만드는 요청은 `ovenn-page`를 쓴다. 정책 원본은 `prompts/PRINCIPLES.md`, 절차 원본은 `prompts/ASSEMBLY.md`의 **기존 UI 전환: migration** 절, 검수 계약은 `prompts/WORKFLOW_DESIGN.md`다. MCP 연결 시 `get_rules`와 `get_design_workflow`로 같은 원본을 받는다.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## 전환 작업의 전제
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
- 전환 범위 안의 기존 컴포넌트와 native 컨트롤은 `preserved` 예외가 아니라 교체 대상이다. `preserved`는 사용자가 유지하라고 명시한 범위와 요청 밖 화면에만 쓴다.
|
|
13
|
+
- 기존 컴포넌트 이름이 Ovenn과 다르다는 이유로 건너뛰지 않는다. `PrimaryButton`, `TextField`, `SideNav`처럼 이름이 달라도 action·text-input·navigation-shell 역할로 판단한다.
|
|
14
|
+
- 와이어프레임·캡처만 받은 경우에도 같은 순서를 따른다. 인벤토리의 출처가 코드가 아니라 화면일 뿐이다.
|
|
15
|
+
|
|
16
|
+
## 순서
|
|
17
|
+
|
|
18
|
+
1. **인벤토리.** UI 코드를 쓰기 전에 대상 범위를 읽는다. 프로젝트 자체 컴포넌트 폴더, 외부 UI 라이브러리 import, 페이지 안의 `button`·`input`·`select`·`table`·`aside`·`nav`, 전역 CSS와 Tailwind·토큰 정의를 찾는다. 항목마다 경로, export, 사용처 수, 역할을 표로 적는다. 설치본이 있으면 `ovenn info check-component-usage --local`을 먼저 돌려 `native`와 `component-bypass` 목록을 인벤토리의 출발점으로 쓴다.
|
|
19
|
+
2. **매핑표.** `prompts/CATALOG.md`에서 역할별 Ovenn 부품을 고르고 해당 문서의 Props·Do/Don't와 실제 소스를 읽는다. 항목마다 strategy(reuse·compose·derived·custom)를 정하고, 셸은 ASSEMBLY 1단계의 AppFrame 판단으로 바꾼다. 매핑표는 `DESIGN.md`에, componentPlan의 각 role은 reason에 대체하는 기존 경로와 export를 남긴다.
|
|
20
|
+
3. **교체.** 사용처의 import를 Ovenn 부품으로 바꾸고 props·이벤트·라벨·키보드 계약을 옮긴다. 얇은 wrapper로 내부만 바꾸는 것은 임시 단계이며 범위 안에서는 wrapper를 제거한다. 색·간격 리터럴은 토큰 정의부로 옮긴다.
|
|
21
|
+
4. **정리와 검사.** import되지 않는 기존 컴포넌트·CSS를 삭제하거나 삭제 대상으로 보고한다. `check_component_usage`(또는 `ovenn info check-component-usage --local`)를 다시 돌려 `component-bypass`와 `semantic-role-candidate`를 범위 안에서 모두 해소한다. 교체 전후 캡처를 독립 검수에 전달한다.
|
|
22
|
+
|
|
23
|
+
## 보고
|
|
24
|
+
|
|
25
|
+
교체한 항목, 남긴 항목과 이유, 삭제한 파일을 적는다. 인벤토리 없이 일부만 바꾼 결과를 전환 완료로 표시하지 않는다. 검사 통과를 화면 검수로 대신하지 않는다.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conscience-technology/ovenn",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "Ovenn — 하이브리드 디자인 시스템 설치 · 온보딩 CLI (shadcn식 코드 생성기)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -72,7 +72,8 @@
|
|
|
72
72
|
"cmdk": "^1.1.1",
|
|
73
73
|
"react-aria-components": "^1.22.1",
|
|
74
74
|
"typescript": ">=5.0.0 <7.0.0",
|
|
75
|
-
"recharts": "^3.10.1"
|
|
75
|
+
"recharts": "^3.10.1",
|
|
76
|
+
"shiki": "^4.6.0"
|
|
76
77
|
},
|
|
77
78
|
"peerDependenciesMeta": {
|
|
78
79
|
"next": {
|
|
@@ -140,6 +141,9 @@
|
|
|
140
141
|
},
|
|
141
142
|
"recharts": {
|
|
142
143
|
"optional": true
|
|
144
|
+
},
|
|
145
|
+
"shiki": {
|
|
146
|
+
"optional": true
|
|
143
147
|
}
|
|
144
148
|
}
|
|
145
149
|
}
|
|
@@ -88,10 +88,9 @@ export function getDesignExample(promptsRoot, id, { repoRoot } = {}) {
|
|
|
88
88
|
const content = readFileSync(source, 'utf8');
|
|
89
89
|
return { path: file.path, source: file.source, digest: createHash('sha256').update(content).digest('hex'), content };
|
|
90
90
|
});
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
});
|
|
91
|
+
// Digests describe the files exactly as they sit next to this catalog: the repository catalog hashes
|
|
92
|
+
// repository sources, and the installed catalog is rewritten at bundle time to hash the installed copies.
|
|
93
|
+
const previewCurrent = item.previewSourceDigests && files.every(file => file.digest === item.previewSourceDigests[file.path]);
|
|
95
94
|
const previewStatus = !item.previewSourceDigests ? 'unverified' : previewCurrent ? 'current' : 'stale';
|
|
96
95
|
const previewPath = item.preview ? inside(join(promptsRoot, 'design-examples'), item.preview) : null;
|
|
97
96
|
const bytes = previewPath ? readFileSync(previewPath) : null;
|
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
# glass-button@1.0.0
|
|
2
|
-
|
|
3
|
-
생성된 설치 아티팩트. 변형과 exact 보존 정책은 PRINCIPLES/ASSEMBLY 원본을 따른다.
|
|
4
|
-
|
|
5
|
-
## GlassButton.tsx
|
|
6
|
-
|
|
7
|
-
```tsx
|
|
8
|
-
"use client";
|
|
9
|
-
|
|
10
|
-
import { forwardRef } from "react";
|
|
11
|
-
import {
|
|
12
|
-
CoreButton,
|
|
13
|
-
type ButtonProps,
|
|
14
|
-
type ButtonSize,
|
|
15
|
-
type ButtonVariant,
|
|
16
|
-
} from "@/components/ovenn/Button/Button";
|
|
17
|
-
import styles from "./GlassButton.module.css";
|
|
18
|
-
|
|
19
|
-
export type GlassButtonVariant = Extract<
|
|
20
|
-
ButtonVariant,
|
|
21
|
-
"primary" | "secondary" | "inverse" | "elevated"
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
|
-
export type GlassButtonProps = Omit<ButtonProps, "variant"> & {
|
|
25
|
-
variant?: GlassButtonVariant;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const GlassButton = forwardRef<HTMLButtonElement, GlassButtonProps>(
|
|
29
|
-
({ className, fullWidth = false, size = "md", variant = "primary", ...props }, ref) => (
|
|
30
|
-
<span
|
|
31
|
-
className={styles.root}
|
|
32
|
-
data-full-width={fullWidth || undefined}
|
|
33
|
-
data-size={size satisfies ButtonSize}
|
|
34
|
-
data-slot="glass-button-template"
|
|
35
|
-
>
|
|
36
|
-
<CoreButton
|
|
37
|
-
{...props}
|
|
38
|
-
ref={ref}
|
|
39
|
-
className={[styles.button, className].filter(Boolean).join(" ")}
|
|
40
|
-
fullWidth={fullWidth}
|
|
41
|
-
size={size}
|
|
42
|
-
variant={variant}
|
|
43
|
-
/>
|
|
44
|
-
</span>
|
|
45
|
-
),
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
GlassButton.displayName = "GlassButton";
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## GlassButton.module.css
|
|
52
|
-
|
|
53
|
-
```css
|
|
54
|
-
/* Glass 재질 토글 ────────────────────────────────────────────
|
|
55
|
-
`<GlassButton>` 로 켤 때만 입는다. **지원 variant는 primary·secondary·inverse·elevated 4종.**
|
|
56
|
-
이 템플릿은 Core Button과 분리되어 아래 네 variant만 타입 수준에서 허용한다.
|
|
57
|
-
|
|
58
|
-
── 패턴 A: 솔리드 variant (primary) ──
|
|
59
|
-
"유리 재질"이 아니라 "유리 환경에서 빛을 받은 솔리드 버튼".
|
|
60
|
-
bg 색은 선명하게 그대로 유지. backdrop-filter·투명도 X.
|
|
61
|
-
공급하는 건: 상단 밝은 하이라이트(주변광 받음) + 깊은 drop shadow(공중에 뜸).
|
|
62
|
-
→ "채워진 버튼이 유리 배경 위에서 자연스럽게 빛을 받은" 느낌.
|
|
63
|
-
|
|
64
|
-
── 패턴 B: 투명 variant (secondary / elevated / inverse) ──
|
|
65
|
-
"진짜 유리". bg 아주 투명, backdrop blur, inner glow, drop shadow 전부.
|
|
66
|
-
→ "진짜 유리로 깎인 버튼". 뒤 콘텐츠가 비침. */
|
|
67
|
-
|
|
68
|
-
/* Glass shell — 투명 glass variant를 감싸는 wrapper.
|
|
69
|
-
::before는 버튼 테두리에서 한 단계 떨어진 둥근 내부 유리 레이어. */
|
|
70
|
-
.root {
|
|
71
|
-
--glass-shadow: var(--shadow-lg);
|
|
72
|
-
--glass-solid-shadow: var(--shadow-xl);
|
|
73
|
-
--glass-primary-bg:
|
|
74
|
-
radial-gradient(ellipse 120% 100% at 50% 0%,
|
|
75
|
-
color-mix(in oklab, var(--primary) 40%, transparent) 0%,
|
|
76
|
-
transparent 80%),
|
|
77
|
-
radial-gradient(ellipse 100% 120% at 50% -30%,
|
|
78
|
-
color-mix(in oklab, var(--primary) 85%, var(--fixed-white)) 0%,
|
|
79
|
-
var(--primary) 70%);
|
|
80
|
-
--glass-primary-bg-hover:
|
|
81
|
-
radial-gradient(ellipse 120% 100% at 50% 0%,
|
|
82
|
-
color-mix(in oklab, var(--primary) 52%, transparent) 0%,
|
|
83
|
-
transparent 80%),
|
|
84
|
-
radial-gradient(ellipse 100% 120% at 50% -30%,
|
|
85
|
-
color-mix(in oklab, var(--primary) 70%, var(--fixed-white)) 0%,
|
|
86
|
-
var(--primary) 70%);
|
|
87
|
-
display: inline-flex;
|
|
88
|
-
position: relative;
|
|
89
|
-
}
|
|
90
|
-
.root::before {
|
|
91
|
-
content: "";
|
|
92
|
-
position: absolute;
|
|
93
|
-
inset: var(--space-1);
|
|
94
|
-
pointer-events: none;
|
|
95
|
-
transition: background var(--duration-slow) var(--ease-emphasized);
|
|
96
|
-
}
|
|
97
|
-
.root[data-full-width] {
|
|
98
|
-
display: flex;
|
|
99
|
-
width: 100%;
|
|
100
|
-
}
|
|
101
|
-
.root[data-size="xs"]::before { corner-shape: var(--corner-shape); border-radius: var(--radius-pill-sm); }
|
|
102
|
-
.root[data-size="sm"]::before { corner-shape: var(--corner-shape); border-radius: var(--radius-pill-sm); }
|
|
103
|
-
.root[data-size="md"]::before { corner-shape: var(--corner-shape); border-radius: var(--radius-pill-md); }
|
|
104
|
-
.root[data-size="lg"]::before { corner-shape: var(--corner-shape); border-radius: var(--radius-pill-lg); }
|
|
105
|
-
.root[data-size="xl"]::before { corner-shape: var(--corner-shape); border-radius: var(--radius-pill-lg); }
|
|
106
|
-
|
|
107
|
-
/* 공통: 라벨·아이콘·badge·spinner를 inner glow 위로 올림.
|
|
108
|
-
isolation: isolate 금지 — backdrop-filter가 자체 stacking context 바깥 콘텐츠를
|
|
109
|
-
blur 못하는 사고 재발 방지. overflow:hidden은 라운드 안 pseudo clipping용으로 유지.
|
|
110
|
-
선택자는 지원 variant 4종에만 걸림 — 미지원 variant에 glass prop 들어와도 무시된다. */
|
|
111
|
-
.button[data-variant="primary"],
|
|
112
|
-
.button[data-variant="secondary"],
|
|
113
|
-
.button[data-variant="inverse"],
|
|
114
|
-
.button[data-variant="elevated"] {
|
|
115
|
-
position: relative;
|
|
116
|
-
overflow: hidden;
|
|
117
|
-
/* glass는 그림자 레이어가 많아 ring용 duration-fast로는 "툭" 느껴짐.
|
|
118
|
-
background·box-shadow 모두 duration-slow + ease-emphasized로 부드럽게. */
|
|
119
|
-
transition:
|
|
120
|
-
background var(--duration-slow) var(--ease-emphasized),
|
|
121
|
-
box-shadow var(--duration-slow) var(--ease-emphasized),
|
|
122
|
-
color var(--duration-slow) var(--ease-out),
|
|
123
|
-
transform var(--duration-base) var(--ease-out);
|
|
124
|
-
}
|
|
125
|
-
.button[data-variant="primary"] [data-slot^="button-"],
|
|
126
|
-
.button[data-variant="secondary"] [data-slot^="button-"],
|
|
127
|
-
.button[data-variant="inverse"] [data-slot^="button-"],
|
|
128
|
-
.button[data-variant="elevated"] [data-slot^="button-"] {
|
|
129
|
-
position: relative;
|
|
130
|
-
z-index: var(--z-raise);
|
|
131
|
-
}
|
|
132
|
-
/* ── 패턴 B: 투명 유리 (secondary / elevated) ────────────
|
|
133
|
-
전체를 흰색으로 덮지 않고 상단 반사광만 30%까지 올린다.
|
|
134
|
-
본체는 낮은 알파로 유지해 배경의 명암과 색 경계가 유리를 통과하도록 한다. */
|
|
135
|
-
.button[data-variant="secondary"],
|
|
136
|
-
.button[data-variant="elevated"],
|
|
137
|
-
.button[data-variant="inverse"] {
|
|
138
|
-
background:
|
|
139
|
-
radial-gradient(ellipse 110% 95% at 50% -45%,
|
|
140
|
-
color-mix(in oklab, var(--fixed-white) 30%, transparent) 0%,
|
|
141
|
-
transparent 72%),
|
|
142
|
-
color-mix(in oklab, var(--fixed-white) 8%, transparent);
|
|
143
|
-
border: 0;
|
|
144
|
-
background-clip: padding-box;
|
|
145
|
-
-webkit-backdrop-filter: blur(var(--space-0_5)) saturate(1.3);
|
|
146
|
-
backdrop-filter: blur(var(--space-0_5)) saturate(1.3);
|
|
147
|
-
color: var(--fg);
|
|
148
|
-
box-shadow: var(--glass-shadow);
|
|
149
|
-
}
|
|
150
|
-
/* secondary — 버튼 표면은 흰 유리로 두고 primary 번짐은 shell 내부 레이어가 담당. */
|
|
151
|
-
.button[data-variant="secondary"] {
|
|
152
|
-
color: var(--secondary-fg);
|
|
153
|
-
/* 얇은 흰 inner rim은 유리 두께, 넓은 primary 3% shadow는 brand 광택을 만든다. */
|
|
154
|
-
box-shadow: var(--glass-shadow);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/* 다크 모드 — 포인트 색이 진한 톤이라 secondary 글자색으로 쓰면 어두운 bg와 대비 부족.
|
|
158
|
-
글자는 --fg(다크=밝은 잉크), bg는 "primary 틴트 섞인 다크 유리". 어두운 bg(--bg-elev-2)를
|
|
159
|
-
기본으로 깔고 그 위에 primary 흔적만 섞어 — 어떤 뒤 배경 위에서도 자리는 또렷. */
|
|
160
|
-
:global([data-mode="dark"]) .root .button[data-variant="secondary"] {
|
|
161
|
-
color: var(--fg);
|
|
162
|
-
background:
|
|
163
|
-
radial-gradient(ellipse 110% 95% at 50% -45%,
|
|
164
|
-
color-mix(in oklab, var(--fixed-white) 18%, transparent) 0%,
|
|
165
|
-
transparent 72%),
|
|
166
|
-
color-mix(in oklab, var(--bg-elev-2) 10%, transparent);
|
|
167
|
-
}
|
|
168
|
-
/* elevated / inverse — 우윳빛 반사, 하단 굴절 음영, 얇은 rim을 공유하는 liquid glass.
|
|
169
|
-
inverse는 base와 fg만 반대 Mode elevated 값으로 교체한다. */
|
|
170
|
-
.button[data-variant="elevated"],
|
|
171
|
-
.button[data-variant="inverse"] {
|
|
172
|
-
--button-liquid-base: var(--bg-elev-1);
|
|
173
|
-
--button-liquid-base-strength: 72%;
|
|
174
|
-
--button-liquid-fg: var(--fg);
|
|
175
|
-
--button-liquid-glow: var(--fixed-white);
|
|
176
|
-
--button-liquid-shade: var(--fixed-black);
|
|
177
|
-
|
|
178
|
-
background:
|
|
179
|
-
radial-gradient(ellipse 82% 90% at 18% -28%,
|
|
180
|
-
color-mix(in oklab, var(--button-liquid-glow) 46%, transparent) 0%,
|
|
181
|
-
transparent 68%),
|
|
182
|
-
radial-gradient(ellipse 90% 70% at 82% 118%,
|
|
183
|
-
color-mix(in oklab, var(--button-liquid-shade) 10%, transparent) 0%,
|
|
184
|
-
transparent 72%),
|
|
185
|
-
linear-gradient(180deg,
|
|
186
|
-
color-mix(in oklab, var(--button-liquid-glow) 22%, transparent) 0%,
|
|
187
|
-
color-mix(in oklab, var(--button-liquid-glow) 7%, transparent) 48%,
|
|
188
|
-
color-mix(in oklab, var(--button-liquid-shade) 5%, transparent) 100%),
|
|
189
|
-
color-mix(in oklab,
|
|
190
|
-
var(--button-liquid-base) var(--button-liquid-base-strength),
|
|
191
|
-
transparent);
|
|
192
|
-
border: var(--hairline) solid color-mix(in oklab, var(--button-liquid-glow) 52%, transparent);
|
|
193
|
-
-webkit-backdrop-filter: blur(var(--space-2)) saturate(1.24);
|
|
194
|
-
backdrop-filter: blur(var(--space-2)) saturate(1.24);
|
|
195
|
-
color: var(--button-liquid-fg);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.button[data-variant="inverse"] {
|
|
199
|
-
--button-liquid-base: var(--fixed-black);
|
|
200
|
-
--button-liquid-base-strength: 76%;
|
|
201
|
-
--button-liquid-fg: var(--fixed-white);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
:global([data-mode="dark"]) .root .button[data-variant="inverse"] {
|
|
205
|
-
--button-liquid-base: var(--fixed-white);
|
|
206
|
-
--button-liquid-base-strength: 82%;
|
|
207
|
-
--button-liquid-fg: var(--fixed-black);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/* glass 투명 variant는 base ::after hover overlay(fg 6%)를 꺼야 함.
|
|
211
|
-
유리 위에 회색 veil이 깔려 "탁해지는" 사고 원인. hover는 bg 틴트 진하게로만 신호. */
|
|
212
|
-
.button[data-variant="secondary"]::after,
|
|
213
|
-
.button[data-variant="elevated"]::after,
|
|
214
|
-
.button[data-variant="inverse"]::after {
|
|
215
|
-
content: none;
|
|
216
|
-
}
|
|
217
|
-
/* 실제 버튼 안쪽의 둥근 fill 레이어.
|
|
218
|
-
shell 뒤에 두면 반투명 표면에 가려지므로 root 안에 둔다. */
|
|
219
|
-
.button[data-variant="secondary"]::before,
|
|
220
|
-
.button[data-variant="elevated"]::before,
|
|
221
|
-
.button[data-variant="inverse"]::before {
|
|
222
|
-
content: "";
|
|
223
|
-
position: absolute;
|
|
224
|
-
inset: var(--space-1);
|
|
225
|
-
corner-shape: inherit;
|
|
226
|
-
border-radius: inherit;
|
|
227
|
-
filter: blur(var(--space-0_5));
|
|
228
|
-
pointer-events: none;
|
|
229
|
-
transition: background var(--duration-slow) var(--ease-emphasized);
|
|
230
|
-
}
|
|
231
|
-
/* secondary — rim을 남기고 안쪽 대부분을 primary 톤으로 부드럽게 채움. */
|
|
232
|
-
.button[data-variant="secondary"]::before {
|
|
233
|
-
background: color-mix(in oklab, var(--primary) 10%, transparent);
|
|
234
|
-
}
|
|
235
|
-
.button[data-variant="secondary"]:hover:not(:disabled)::before {
|
|
236
|
-
background: color-mix(in oklab, var(--primary) 16%, transparent);
|
|
237
|
-
}
|
|
238
|
-
.button[data-variant="elevated"]::before,
|
|
239
|
-
.button[data-variant="inverse"]::before {
|
|
240
|
-
inset: var(--hairline);
|
|
241
|
-
background:
|
|
242
|
-
radial-gradient(ellipse 72% 90% at 20% -34%,
|
|
243
|
-
color-mix(in oklab, var(--button-liquid-glow) 24%, transparent) 0%,
|
|
244
|
-
transparent 72%),
|
|
245
|
-
linear-gradient(180deg,
|
|
246
|
-
color-mix(in oklab, var(--button-liquid-glow) 12%, transparent),
|
|
247
|
-
transparent 54%);
|
|
248
|
-
}
|
|
249
|
-
.button[data-variant="elevated"]:hover:not(:disabled)::before,
|
|
250
|
-
.button[data-variant="inverse"]:hover:not(:disabled)::before {
|
|
251
|
-
background:
|
|
252
|
-
radial-gradient(ellipse 78% 96% at 20% -34%,
|
|
253
|
-
color-mix(in oklab, var(--button-liquid-glow) 32%, transparent) 0%,
|
|
254
|
-
transparent 72%),
|
|
255
|
-
linear-gradient(180deg,
|
|
256
|
-
color-mix(in oklab, var(--button-liquid-glow) 18%, transparent),
|
|
257
|
-
transparent 58%);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/* 버튼 아래에서 번지는 diffuse halo가 유리 덩어리를 표면에서 띄운다. */
|
|
261
|
-
.root:has(.button[data-variant="elevated"])::before {
|
|
262
|
-
background: color-mix(in oklab, var(--bg-elev-1) 28%, transparent);
|
|
263
|
-
filter: blur(var(--space-1));
|
|
264
|
-
}
|
|
265
|
-
.root:has(.button[data-variant="elevated"]:hover:not(:disabled))::before {
|
|
266
|
-
background: color-mix(in oklab, var(--bg-elev-1) 42%, transparent);
|
|
267
|
-
}
|
|
268
|
-
.root:has(.button[data-variant="inverse"])::before {
|
|
269
|
-
background: color-mix(in oklab, var(--fixed-black) 22%, transparent);
|
|
270
|
-
filter: blur(var(--space-1));
|
|
271
|
-
}
|
|
272
|
-
.root:has(.button[data-variant="inverse"]:hover:not(:disabled))::before {
|
|
273
|
-
background: color-mix(in oklab, var(--fixed-black) 34%, transparent);
|
|
274
|
-
}
|
|
275
|
-
:global([data-mode="dark"]) .root:has(.button[data-variant="inverse"])::before {
|
|
276
|
-
background: color-mix(in oklab, var(--fixed-white) 24%, transparent);
|
|
277
|
-
}
|
|
278
|
-
:global([data-mode="dark"]) .root:has(.button[data-variant="inverse"]:hover:not(:disabled))::before {
|
|
279
|
-
background: color-mix(in oklab, var(--fixed-white) 36%, transparent);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/* ── 패턴 A: 솔리드 variant — 색은 선명, 반짝은 bg 그라데이션 + 큰 blur glow로 ──────
|
|
283
|
-
핵심: "1px 선" 금지. 반짝은 "표면 전체에 빛이 스며드는" 느낌이지 라인 아님.
|
|
284
|
-
공급:
|
|
285
|
-
- bg 자체가 상단 밝은 그라데이션 (상단 15% 더 밝음)
|
|
286
|
-
- 상단에서 아래로 흐릿하게 번지는 큰 blur inset highlight
|
|
287
|
-
- 극미세 1px 흰 hairline (유리 두께)
|
|
288
|
-
- drop shadow 3단 */
|
|
289
|
-
.button[data-variant="primary"] {
|
|
290
|
-
backdrop-filter: none;
|
|
291
|
-
-webkit-backdrop-filter: none;
|
|
292
|
-
/* 테두리·inset 라인 전부 제거. 반짝은 오로지 bg 그라데이션으로.
|
|
293
|
-
drop shadow만 공중에 뜬 느낌 공급.
|
|
294
|
-
border 1px solid transparent + background-clip border-box(기본) 조합이
|
|
295
|
-
가장자리 1px에 미묘한 명도 계단을 만들어 "테두리처럼" 보이는 사고 — border 제거. */
|
|
296
|
-
border: 0;
|
|
297
|
-
background-clip: padding-box;
|
|
298
|
-
box-shadow: var(--glass-solid-shadow);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/* 각 솔리드 variant bg — 상단 밝은 그라데이션으로 "스며드는 빛" 공급.
|
|
302
|
-
solid 색을 기준으로 상단은 + white 10~15%, 하단은 원색 유지. */
|
|
303
|
-
/* radial-gradient — 상단 중앙에서 반원 하이라이트 번짐.
|
|
304
|
-
ellipse 가로/세로비는 버튼이 가로가 길어서 가로 넓게. 상단 바깥(0% -50%)에서 중심 잡아
|
|
305
|
-
버튼 안엔 "반원 아랫부분"만 들어옴. */
|
|
306
|
-
.button[data-variant="primary"] {
|
|
307
|
-
background: var(--glass-primary-bg);
|
|
308
|
-
color: var(--primary-fg);
|
|
309
|
-
}
|
|
310
|
-
/* hover — base 색은 그대로 유지(어둡게 깔지 않음), 상단 하이라이트만 강화해
|
|
311
|
-
"빛이 더 들어온" 느낌. --primary-hover로 전환하면 색이 가라앉아 탁해지는 사고. */
|
|
312
|
-
.button[data-variant="primary"]:hover:not(:disabled) {
|
|
313
|
-
background: var(--glass-primary-bg-hover);
|
|
314
|
-
}
|
|
315
|
-
/* 가드 — 지원 variant 4종에만 적용 */
|
|
316
|
-
.button[data-variant="primary"]:focus-visible,
|
|
317
|
-
.button[data-variant="secondary"]:focus-visible,
|
|
318
|
-
.button[data-variant="inverse"]:focus-visible,
|
|
319
|
-
.button[data-variant="elevated"]:focus-visible {
|
|
320
|
-
box-shadow: var(--ring-shadow-action);
|
|
321
|
-
}
|
|
322
|
-
.button[data-variant="primary"]:disabled:not([data-loading="true"]),
|
|
323
|
-
.button[data-variant="secondary"]:disabled:not([data-loading="true"]),
|
|
324
|
-
.button[data-variant="inverse"]:disabled:not([data-loading="true"]),
|
|
325
|
-
.button[data-variant="elevated"]:disabled:not([data-loading="true"]) {
|
|
326
|
-
backdrop-filter: none;
|
|
327
|
-
-webkit-backdrop-filter: none;
|
|
328
|
-
box-shadow: none;
|
|
329
|
-
background: var(--bg-muted);
|
|
330
|
-
}
|
|
331
|
-
/* xs size에서는 blur 생략 (접촉면 좁으면 레이어 폭증 + 과함). 투명 variant에만 적용. */
|
|
332
|
-
.root[data-size="xs"] .button[data-variant="secondary"],
|
|
333
|
-
.root[data-size="xs"] .button[data-variant="elevated"] {
|
|
334
|
-
backdrop-filter: none;
|
|
335
|
-
-webkit-backdrop-filter: none;
|
|
336
|
-
}
|
|
337
|
-
```
|