@conscience-technology/ovenn 0.7.4 → 0.7.6
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/README.md +43 -4
- package/assets/components/AIMessage/AIMessage.module.css +10 -0
- package/assets/components/AIMessage/AIMessage.tsx +6 -2
- package/assets/components/AttachmentThumb/AttachmentThumb.tsx +1 -0
- package/assets/components/Breadcrumb/Breadcrumb.module.css +82 -23
- package/assets/components/Breadcrumb/Breadcrumb.tsx +44 -26
- package/assets/components/Breadcrumb/index.ts +1 -0
- package/assets/components/Button/Button.module.css +2 -4
- package/assets/components/Callout/Callout.module.css +44 -18
- package/assets/components/Callout/Callout.tsx +9 -4
- package/assets/components/Callout/index.ts +1 -1
- package/assets/components/Canvas/Canvas.module.css +13 -0
- package/assets/components/Canvas/Canvas.tsx +378 -94
- package/assets/components/Canvas/clipboard.ts +5 -1
- package/assets/components/Canvas/collision.ts +5 -1
- package/assets/components/Canvas/graph.ts +14 -5
- package/assets/components/Canvas/history.ts +11 -4
- package/assets/components/Canvas/index.ts +2 -1
- package/assets/components/Canvas/types.ts +36 -1
- package/assets/components/CanvasEdge/tokens.css +14 -1
- package/assets/components/CanvasNode/tokens.css +13 -10
- package/assets/components/ChatComposer/ChatComposer.tsx +1 -1
- package/assets/components/ChatInput/ChatInput.tsx +1 -1
- package/assets/components/ColorField/ColorField.module.css +6 -1
- package/assets/components/ColorPicker/ColorPicker.module.css +3 -0
- package/assets/components/CommandPalette/CommandPalette.module.css +114 -0
- package/assets/components/CommandPalette/CommandPalette.tsx +206 -21
- package/assets/components/CommandPalette/index.ts +1 -0
- package/assets/components/Drawer/Drawer.module.css +30 -0
- package/assets/components/Drawer/Drawer.tsx +75 -16
- package/assets/components/Drawer/index.ts +1 -0
- package/assets/components/FileIcon/FileIcon.tsx +1 -0
- package/assets/components/FileIcon/fileExtMap.ts +1 -0
- package/assets/components/Icon/Icon.tsx +3 -0
- package/assets/components/Input/Input.module.css +3 -3
- package/assets/components/Onboarding/OnboardingAxisPanel.tsx +1 -1
- package/assets/components/Onboarding/OnboardingPage.tsx +13 -11
- package/assets/components/Onboarding/actions.ts +9 -9
- package/assets/components/Select/Select.module.css +1 -1
- package/assets/components/SocialLoginButton/SocialLoginButton.module.css +198 -0
- package/assets/components/SocialLoginButton/SocialLoginButton.tsx +86 -0
- package/assets/components/SocialLoginButton/assets/amazon.svg +1 -0
- package/assets/components/SocialLoginButton/assets/apple.svg +3 -0
- package/assets/components/SocialLoginButton/assets/discord.svg +3 -0
- package/assets/components/SocialLoginButton/assets/facebook-white.png +0 -0
- package/assets/components/SocialLoginButton/assets/facebook.png +0 -0
- package/assets/components/SocialLoginButton/assets/github.svg +3 -0
- package/assets/components/SocialLoginButton/assets/google-mark.png +0 -0
- package/assets/components/SocialLoginButton/assets/kakao.svg +3 -0
- package/assets/components/SocialLoginButton/assets/line-icon.png +0 -0
- package/assets/components/SocialLoginButton/assets/line-white.png +0 -0
- package/assets/components/SocialLoginButton/assets/linkedin-white.png +0 -0
- package/assets/components/SocialLoginButton/assets/linkedin.png +0 -0
- package/assets/components/SocialLoginButton/assets/microsoft.svg +6 -0
- package/assets/components/SocialLoginButton/assets/naver.png +0 -0
- package/assets/components/SocialLoginButton/assets/slack.svg +17 -0
- package/assets/components/SocialLoginButton/assets/spotify.svg +3 -0
- package/assets/components/SocialLoginButton/assets/twitch.svg +21 -0
- package/assets/components/SocialLoginButton/assets/wechat.png +0 -0
- package/assets/components/SocialLoginButton/assets/x.svg +3 -0
- package/assets/components/SocialLoginButton/index.ts +2 -0
- package/assets/components/SocialLoginButton/provider-tokens.css +30 -0
- package/assets/components/SocialLoginButton/providers.ts +23 -0
- package/assets/components/TableRowEdit/TableRowEdit.tsx +2 -2
- package/assets/components/ThemeController.tsx +2 -2
- package/assets/components/TimelineView/TimelineView.tsx +4 -2
- package/assets/components/Tooltip/Tooltip.module.css +1 -0
- package/assets/components/_data.ts +1 -1
- package/assets/components/_utils.css +1 -0
- package/assets/components/component-registry.json +30 -1
- package/assets/components/index.ts +1 -0
- package/assets/components/side-effect-css.d.ts +5 -0
- package/assets/components/themeBootScript.ts +7 -1
- package/assets/components/tokens.css +14 -6
- package/assets/prompts/ASSEMBLY.md +4 -0
- package/assets/prompts/CASCADE.md +2 -2
- package/assets/prompts/CATALOG.md +2 -1
- package/assets/prompts/PRINCIPLES.md +4 -8
- package/assets/prompts/RULES.md +19 -1
- package/assets/prompts/SLOTS.md +2 -4
- package/assets/prompts/WORKFLOW_DESIGN.md +0 -4
- package/assets/prompts/axes/icon.md +1 -1
- package/assets/prompts/axes/material.md +4 -4
- package/assets/prompts/axes/motion.md +1 -1
- package/assets/prompts/axes/shape.md +2 -2
- package/assets/prompts/axes/voice.md +1 -1
- package/assets/prompts/components/_variants.md +4 -4
- package/assets/prompts/components/accordion.md +4 -4
- package/assets/prompts/components/ai-message.md +6 -2
- package/assets/prompts/components/attachment-item.md +2 -2
- package/assets/prompts/components/breadcrumb.md +11 -5
- package/assets/prompts/components/button.md +3 -3
- package/assets/prompts/components/callout.md +8 -4
- package/assets/prompts/components/canvas-edge.md +1 -1
- package/assets/prompts/components/canvas-node.md +1 -1
- package/assets/prompts/components/canvas.md +24 -8
- package/assets/prompts/components/card.md +1 -2
- package/assets/prompts/components/chart-bar.md +1 -1
- package/assets/prompts/components/chat-input.md +1 -1
- package/assets/prompts/components/checkbox.md +5 -5
- package/assets/prompts/components/color-field.md +2 -2
- package/assets/prompts/components/command-palette.md +55 -47
- package/assets/prompts/components/context-menu.md +5 -5
- package/assets/prompts/components/date-picker.md +2 -2
- package/assets/prompts/components/drawer.md +17 -3
- package/assets/prompts/components/dropdown-menu.md +3 -3
- package/assets/prompts/components/event-list-item.md +4 -4
- package/assets/prompts/components/file-icon.md +2 -2
- package/assets/prompts/components/gallery-item.md +1 -1
- package/assets/prompts/components/hint.md +3 -3
- package/assets/prompts/components/kanban.md +2 -3
- package/assets/prompts/components/list-item.md +12 -12
- package/assets/prompts/components/menu-item.md +2 -2
- package/assets/prompts/components/message-table.md +4 -4
- package/assets/prompts/components/onboarding.md +3 -3
- package/assets/prompts/components/page-header.md +6 -7
- package/assets/prompts/components/quotation-bar.md +1 -1
- package/assets/prompts/components/select.md +1 -1
- package/assets/prompts/components/shortcut.md +3 -3
- package/assets/prompts/components/sidebar.md +5 -4
- package/assets/prompts/components/social-login-button.md +117 -0
- package/assets/prompts/components/stepper.md +1 -1
- package/assets/prompts/components/tab-strip.md +2 -2
- package/assets/prompts/components/table-row-edit.md +6 -6
- package/assets/prompts/components/table-row-select.md +1 -1
- package/assets/prompts/components/tabs.md +5 -2
- package/assets/prompts/components/textarea.md +1 -1
- package/assets/prompts/components/toast.md +3 -3
- package/assets/prompts/components/tooltip.md +3 -3
- package/assets/prompts/components/topbar.md +1 -1
- package/assets/prompts/design-examples/ai-chat-full-page.png +0 -0
- package/assets/prompts/design-examples/catalog.json +9 -9
- package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.module.css +37 -1
- package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.tsx +113 -18
- package/assets/prompts/design-examples/sources/ai-chat-full-page/FullPageChat.tsx +2 -2
- package/assets/prompts/design-examples/sources/ai-chat-full-page/REFERENCE.md +3 -1
- package/assets/prompts/design-examples/sources/ai-chat-full-page/useChatDemo.ts +99 -51
- package/assets/prompts/primitives/scroll.md +1 -1
- package/assets/prompts/recipes/README.md +5 -6
- package/assets/prompts/recipes/meta-line.md +2 -2
- package/assets/prompts/recipes/page-header.md +2 -2
- package/assets/prompts/recipes/section-header.md +1 -1
- package/assets/prompts/themes/_SCHEMA.md +2 -2
- package/assets/prompts/tokens/material.md +5 -2
- package/assets/prompts/tokens/radius.md +1 -1
- package/assets/prompts/use-cases/chat-chat-input.md +382 -74
- package/assets/prompts/use-cases/data-list-item.md +38 -431
- package/assets/prompts/use-cases/feedback-drawer.md +112 -33
- package/assets/prompts/use-cases/overlay-command-palette.md +2004 -0
- package/assets/prompts/use-cases/structure-canvas.md +1016 -0
- package/assets/skills/ovenn-validate/SKILL.md +1 -1
- package/assets/skills/ovenn-validate/scripts/lib/component-usage.js +7 -1
- package/assets/skills/ovenn-validate/scripts/lib/engine.mjs +105 -0
- package/assets/skills/ovenn-validate/scripts/lib/engine.test.mjs +46 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-utils.mjs +5 -3
- package/assets/skills/ovenn-validate/scripts/rules/doc-sync.mjs +28 -5
- package/assets/skills/ovenn-validate/scripts/rules/doc-sync.test.mjs +15 -0
- package/assets/skills/ovenn-validate/scripts/rules/ghost-tokens.mjs +7 -0
- package/assets/skills/ovenn-validate/scripts/rules/hardcoded.mjs +61 -30
- package/assets/skills/ovenn-validate/scripts/rules/memory-rules.mjs +7 -4
- package/assets/skills/ovenn-validate/scripts/rules/memory-rules.test.mjs +3 -0
- package/assets/skills/ovenn-validate/scripts/validate.mjs +8 -136
- package/assets/skills/ovenn-wireframe/SKILL.md +1 -1
- package/bin/ovenn.js +8 -0
- package/package.json +2 -2
- package/src/commands/check.js +70 -0
- package/src/commands/info.js +32 -7
- package/src/commands/init.js +26 -30
- package/src/commands/setup-checks.js +80 -0
- package/src/commands/update.js +90 -18
- package/src/data/ctds-releases.json +1 -0
- package/src/utils/assets.js +5 -0
- package/src/utils/component-usage.js +7 -1
- package/src/utils/design-workflow.js +6 -2
- package/src/utils/doctor.js +7 -1
- package/src/utils/legacy-ctds.js +169 -0
- package/src/utils/managed-assets.js +16 -3
- package/src/utils/route.js +17 -0
- package/src/utils/rules-context.js +91 -0
- package/src/utils/update-transaction.js +16 -3
- package/assets/prompts/FEEDBACK_PROCESS.md +0 -19
- package/assets/prompts/GUIDE.md +0 -307
- package/assets/prompts/MEMORY.md +0 -202
- package/assets/prompts/TEMPLATE_PREVIEWS.md +0 -21
- package/assets/prompts/components/README.md +0 -84
|
@@ -95,6 +95,8 @@ export const TimelineView = forwardRef<HTMLDivElement, TimelineViewProps>(functi
|
|
|
95
95
|
const fullFormatter = useMemo(() => new Intl.DateTimeFormat(lang === "ko" ? "ko-KR" : "en-GB", {
|
|
96
96
|
year: "numeric", month: "short", day: "numeric", hour: "2-digit", minute: "2-digit", hourCycle: "h23",
|
|
97
97
|
}), [lang]);
|
|
98
|
+
// Spoken range for labels and announcements; RULES keeps dashes out of generated copy.
|
|
99
|
+
const timeRange = (from: Date, to: Date) => lang === "ko" ? `${fullFormatter.format(from)}부터 ${fullFormatter.format(to)}까지` : `${fullFormatter.format(from)} to ${fullFormatter.format(to)}`;
|
|
98
100
|
const ticks = useMemo(() => timelineTicks(start, end, unit, canvasWidth), [start, end, unit, canvasWidth]);
|
|
99
101
|
const now = currentTime?.getTime();
|
|
100
102
|
const showNow = now !== undefined && now >= from && now <= end.getTime();
|
|
@@ -116,7 +118,7 @@ export const TimelineView = forwardRef<HTMLDivElement, TimelineViewProps>(functi
|
|
|
116
118
|
<span className={styles.rowMeasure} data-slot="timeline-row-measure" aria-hidden="true" />
|
|
117
119
|
<div className={styles.guides} aria-hidden="true">{ticks.map(tick => <span key={tick.time} className={styles.guide} style={{ left: `${tick.left}%` }} />)}</div>
|
|
118
120
|
{items.map(({ event, row, left, width }) => {
|
|
119
|
-
const label = `${event.title}, ${
|
|
121
|
+
const label = `${event.title}, ${timeRange(event.start, event.end)}`;
|
|
120
122
|
return <TimelineEventBar key={event.id} event={event} row={row} left={left} width={width}
|
|
121
123
|
size={size} appearance={event.appearance ?? appearance} showTime={showTime} time={formatter.format(event.start)} label={label}
|
|
122
124
|
selected={selectedEventId === undefined ? undefined : selectedEventId === event.id}
|
|
@@ -130,7 +132,7 @@ export const TimelineView = forwardRef<HTMLDivElement, TimelineViewProps>(functi
|
|
|
130
132
|
</div>
|
|
131
133
|
</div>
|
|
132
134
|
{(canDrag || canResize) && <span id={dragHelpId} className={styles.srOnly}>{editHelp}</span>}
|
|
133
|
-
<span role="status" className={styles.srOnly}>{drag.announcement && `${drag.announcement.title}, ${
|
|
135
|
+
<span role="status" className={styles.srOnly}>{drag.announcement && `${drag.announcement.title}, ${timeRange(drag.announcement.start, drag.announcement.end)}, ${lang === "ko" ? "행" : "row"} ${(drag.announcement.row ?? 0) + 1}` }</span>
|
|
134
136
|
{items.length === 0 && <div className={styles.empty}>{emptyContent ?? <EmptyState title={unit === "date" ? (lang === "ko" ? "이 기간에 일정이 없습니다" : "No events in this date range") : (lang === "ko" ? "이 시간대에 일정이 없습니다" : "No events in this time range")} />}</div>}
|
|
135
137
|
</div>
|
|
136
138
|
);
|
|
@@ -548,7 +548,7 @@ export const components: { id: string; title: string; items: string[] }[] = [
|
|
|
548
548
|
{
|
|
549
549
|
id: "general",
|
|
550
550
|
title: "General",
|
|
551
|
-
items: ["Button","Control Group","Icon Button","Menu Item","Toolbar","Badge","Tag","Avatar","Avatar Upload","Tooltip","Shortcut","Chip","Code","Code Block","Icon"],
|
|
551
|
+
items: ["Button","Social Login Button","Control Group","Icon Button","Menu Item","Toolbar","Badge","Tag","Avatar","Avatar Upload","Tooltip","Shortcut","Chip","Code","Code Block","Icon"],
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
554
|
id: "input",
|
|
@@ -299,6 +299,34 @@
|
|
|
299
299
|
"requires": []
|
|
300
300
|
}
|
|
301
301
|
},
|
|
302
|
+
{
|
|
303
|
+
"id": "social-login-button",
|
|
304
|
+
"name": "Social Login Button",
|
|
305
|
+
"folder": "SocialLoginButton",
|
|
306
|
+
"prompts": [
|
|
307
|
+
"social-login-button"
|
|
308
|
+
],
|
|
309
|
+
"route": "general/social-login-button",
|
|
310
|
+
"status": "public",
|
|
311
|
+
"exports": [
|
|
312
|
+
"SocialLoginButton",
|
|
313
|
+
"socialLoginColorOptions",
|
|
314
|
+
"socialLoginProviders",
|
|
315
|
+
"socialLoginProviderName"
|
|
316
|
+
],
|
|
317
|
+
"usage": {
|
|
318
|
+
"roles": [
|
|
319
|
+
"action"
|
|
320
|
+
],
|
|
321
|
+
"native": [],
|
|
322
|
+
"hints": [
|
|
323
|
+
"socialLogin",
|
|
324
|
+
"oauth",
|
|
325
|
+
"signIn"
|
|
326
|
+
],
|
|
327
|
+
"requires": []
|
|
328
|
+
}
|
|
329
|
+
},
|
|
302
330
|
{
|
|
303
331
|
"id": "button",
|
|
304
332
|
"name": "Button",
|
|
@@ -435,7 +463,8 @@
|
|
|
435
463
|
"status": "public",
|
|
436
464
|
"exports": [
|
|
437
465
|
"Canvas",
|
|
438
|
-
"canConnectCanvas"
|
|
466
|
+
"canConnectCanvas",
|
|
467
|
+
"canUseCanvasPort"
|
|
439
468
|
],
|
|
440
469
|
"usage": {
|
|
441
470
|
"roles": [
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// TypeScript 7 type-checks side-effect imports (noUncheckedSideEffectImports is on by default). These global
|
|
2
|
+
// stylesheets are imported for their rules only. Listed by name so CSS Modules keep Next's typed `*.module.css`.
|
|
3
|
+
declare module "*/tokens.css";
|
|
4
|
+
declare module "*/palette.css";
|
|
5
|
+
declare module "*/provider-tokens.css";
|
|
@@ -44,6 +44,10 @@ export type InitialAxes = {
|
|
|
44
44
|
accentHue?: number | null;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
/** Default brand seed (indigo) when no brand is configured; ThemeController uses the same value. */
|
|
48
|
+
// ovenn-validate-disable-next-line hardcoded/hex-color
|
|
49
|
+
export const DEFAULT_BRAND = "#3B5BDB";
|
|
50
|
+
|
|
47
51
|
export function themeBootScript({
|
|
48
52
|
onboardingPath = "/onboarding",
|
|
49
53
|
initial,
|
|
@@ -58,6 +62,8 @@ export function themeBootScript({
|
|
|
58
62
|
return `(function(){try{
|
|
59
63
|
var INIT=${JSON.stringify(init)};
|
|
60
64
|
var ONBOARD=${JSON.stringify(onboardingPath)};
|
|
65
|
+
// Projects migrated from CTDS kept theme choices under ctds-* keys. Carry them over once; existing ovenn-* values win.
|
|
66
|
+
for(var n=localStorage.length-1;n>=0;n--){var ck=localStorage.key(n);if(ck&&ck.indexOf('ctds-')===0){var nk='ovenn-'+ck.slice(5);if(localStorage.getItem(nk)===null)localStorage.setItem(nk,localStorage.getItem(ck));localStorage.removeItem(ck);}}
|
|
61
67
|
var isOnboarding=location.pathname===ONBOARD||location.pathname.indexOf(ONBOARD+'/')===0;
|
|
62
68
|
var mode=isOnboarding?'light':(INIT.mode||localStorage.getItem('ovenn-mode')||(matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light'));
|
|
63
69
|
document.documentElement.setAttribute('data-mode',mode);
|
|
@@ -90,7 +96,7 @@ function _legacyBrand(){
|
|
|
90
96
|
function toByte(v){var x=Math.round(255*Math.max(0,Math.min(1,toSrgb(v))));return (x<16?'0':'')+x.toString(16);}
|
|
91
97
|
return '#'+toByte(r)+toByte(g)+toByte(bb);
|
|
92
98
|
}
|
|
93
|
-
var brand=INIT.brand||_legacyBrand()||localStorage.getItem('ovenn-brand')
|
|
99
|
+
var brand=INIT.brand||_legacyBrand()||localStorage.getItem('ovenn-brand')||${JSON.stringify(DEFAULT_BRAND)};
|
|
94
100
|
var hexMatch=/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.exec(String(brand).trim());
|
|
95
101
|
if(hexMatch){
|
|
96
102
|
var clean=hexMatch[1];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* ovenn-validate-disable-file hardcoded -- token definition layer: literal values are declared here once and used through var() everywhere else */
|
|
1
2
|
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");
|
|
2
3
|
/* Font 축용 폰트 로드 — display=swap + 필요한 웨이트만.
|
|
3
4
|
ko: Pretendard(위) + Nanum Myeongjo(point)
|
|
@@ -187,11 +188,11 @@
|
|
|
187
188
|
|
|
188
189
|
--radius-none: 0;
|
|
189
190
|
/* Shape는 반경과 곡선 형태를 함께 결정한다. 미지원 브라우저는 radius로 표시한다. */
|
|
190
|
-
--corner-shape: superellipse(1.
|
|
191
|
+
--corner-shape: superellipse(1.7);
|
|
191
192
|
/* Cards keep squircle curvature; Shape still controls their radius sizes. */
|
|
192
193
|
--card-corner-shape: squircle;
|
|
193
194
|
--corner-shape-mini: superellipse(1.35);
|
|
194
|
-
--radius-scale: 1.
|
|
195
|
+
--radius-scale: 1.75;
|
|
195
196
|
--radius-mini-ratio: 0.4;
|
|
196
197
|
--radius-xs: calc(7.2px * var(--radius-scale));
|
|
197
198
|
--radius-sm: calc(9px * var(--radius-scale));
|
|
@@ -568,6 +569,7 @@ html[data-input-method="mouse"] {
|
|
|
568
569
|
:root {
|
|
569
570
|
--surface-glass-opacity: 72%;
|
|
570
571
|
--surface-glass-floating-opacity: 80%;
|
|
572
|
+
--surface-glass-field-opacity: 45%;
|
|
571
573
|
--surface-glass-tint: 0%;
|
|
572
574
|
--surface-glass-border-contrast: 5%;
|
|
573
575
|
--surface-glass-command-border: var(--border);
|
|
@@ -580,7 +582,10 @@ html[data-input-method="mouse"] {
|
|
|
580
582
|
--surface-glass-picker-bg: color-mix(in srgb, color-mix(in srgb, var(--fg) var(--surface-glass-tint), var(--bg)) 42%, transparent);
|
|
581
583
|
--surface-glass-picker-blur: 10px;
|
|
582
584
|
--surface-glass-picker-border: color-mix(in srgb, var(--fg) 5%, var(--bg));
|
|
583
|
-
--surface-glass-menu-bg: color-mix(in srgb, var(--bg)
|
|
585
|
+
--surface-glass-menu-bg: color-mix(in srgb, var(--bg) var(--surface-glass-field-opacity), transparent);
|
|
586
|
+
--surface-glass-field-bg: color-mix(in srgb, var(--bg) var(--surface-glass-field-opacity), transparent);
|
|
587
|
+
--surface-glass-field-filled-bg: color-mix(in srgb, var(--bg-subtle) var(--surface-glass-field-opacity), transparent);
|
|
588
|
+
--surface-glass-field-active-bg: color-mix(in srgb, var(--bg-muted) var(--surface-glass-field-opacity), transparent);
|
|
584
589
|
--surface-glass-toolbar-bg: color-mix(in srgb, color-mix(in srgb, var(--fg) var(--surface-glass-tint), var(--bg)) 58%, transparent);
|
|
585
590
|
--surface-glass-toolbar-blur: 8px;
|
|
586
591
|
--surface-glass-command-bg: color-mix(in srgb, color-mix(in srgb, var(--fg) var(--surface-glass-tint), var(--bg)) 70%, transparent);
|
|
@@ -854,11 +859,11 @@ body {
|
|
|
854
859
|
0 28px 56px -16px oklch(var(--shadow-color) / 0.07);
|
|
855
860
|
}
|
|
856
861
|
|
|
857
|
-
/* standard — soft
|
|
862
|
+
/* standard — soft보다 살짝 각진 기본값. */
|
|
858
863
|
[data-shape="standard"] {
|
|
859
|
-
--corner-shape: superellipse(1.
|
|
864
|
+
--corner-shape: superellipse(1.7);
|
|
860
865
|
--corner-shape-mini: superellipse(1.35);
|
|
861
|
-
--radius-scale: 1.
|
|
866
|
+
--radius-scale: 1.75;
|
|
862
867
|
--radius-mini-ratio: 0.4;
|
|
863
868
|
--radius-xs: calc(7.2px * var(--radius-scale));
|
|
864
869
|
--radius-sm: calc(9px * var(--radius-scale));
|
|
@@ -1269,6 +1274,9 @@ body {
|
|
|
1269
1274
|
--material-filter: var(--material-glass-enabled) blur(var(--surface-glass-blur));
|
|
1270
1275
|
--material-scrim: var(--material-glass-enabled) var(--surface-glass-scrim);
|
|
1271
1276
|
--material-selected-bg: var(--material-glass-enabled) var(--surface-glass-selected-bg);
|
|
1277
|
+
--material-field-bg: var(--material-glass-enabled) var(--surface-glass-field-bg);
|
|
1278
|
+
--material-field-filled-bg: var(--material-glass-enabled) var(--surface-glass-field-filled-bg);
|
|
1279
|
+
--material-field-active-bg: var(--material-glass-enabled) var(--surface-glass-field-active-bg);
|
|
1272
1280
|
}
|
|
1273
1281
|
|
|
1274
1282
|
@supports (backdrop-filter: blur(1px)) {
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
## 조립 전 확인: componentPlan
|
|
22
22
|
|
|
23
|
+
componentPlan의 부품이 정해지면 그 부품의 규칙만 받는다: MCP `get_rules(components=[...])`, 파일 환경은 `ovenn info get-rules --local --components=Input,Canvas`. 다음 단계의 절차는 `get_design_workflow(phase=plan|build|review)`로 그 단계 절만 받는다. 인자 없이 부르면 전문이다.
|
|
24
|
+
|
|
23
25
|
UI 코드를 쓰기 전에 역할·시각적 방향·레퍼런스·부품 선택을 마친다. 역할별 실행기가 있는 환경에서는 WORKFLOW_DESIGN의 UX·구조 협업을 먼저 실행하고 쟁점별 결정과 해결 여부를 보존한다. orchestrationVersion=2에서는 UX·구조 제안을 병렬 실행한 뒤 조정자가 흐름·구조·실제 부품 계획을 한 번에 확정한다. 필수 충돌이 있을 때만 담당자의 추가 확인을 1회 수행하며 미해결이면 구현을 시작하지 않는다. 확정한 업무 흐름과 구조를 입력으로 부품을 선정한다. componentPlan 형식과 검사 의미는 get_design_workflow 또는 로컬 `ovenn info get-design-workflow --local`에서 받는다. 각 역할의 id, purpose, component, strategy(reuse|compose|derived|custom|preserved), source, reason, requires, sourceFiles를 기록한다. component는 실제 export 이름이며 조합은 components 배열에 추가한다. 직접 구현/보존은 대안·구체적 요구·검증 근거를 reason과 evidence에 남긴다. 계획 확인 전 UI를 만들고 사후 명세로 선행했다고 주장하지 않는다.
|
|
24
26
|
|
|
25
27
|
역할은 입력/액션뿐 아니라 셸·사이드바 하단·지표 카드·목록 행·표·프로필·상태까지 조사한다. 셸 역할의 componentPlan에는 앞서 선택한 AppFrame·슬롯과 실제 사용할 Sidebar/Topbar를 반영하고, 상위 셸을 재사용하는 경우는 해당 소스와 보존 범위를 기록한다. 선택하지 않은 영역을 사용률 때문에 추가하지 않는다. 후보에 맞는 설치 가능한 부품이 있으면 실제 소스·CSS·필수 provider를 확인하고 사용한다. 컴포넌트 원문 마지막의 component-contract는 기계 계약이며 일반 미감 제한이 아니다. 변경 범위 밖 기존 구현은 preserved로 구분한다. 실행기 없는 환경에서는 순서를 지침으로 따르되 실행 사실을 인증했다고 주장하지 않는다.
|
|
@@ -45,6 +47,8 @@ component와 components 배열에는 설치된 Ovenn 부품의 실제 export와
|
|
|
45
47
|
|
|
46
48
|
`get_axis`, `get_token` 또는 설정·토큰 원본을 확인한다. 기존 토큰을 우선 사용하며 부족하면 프로젝트 공통 정의부에 추가한다. size를 지원하는 일반 컨트롤은 기본 **md**로 시작한다. 같은 작업 영역의 같은 역할은 크기를 통일하되 제목·본문의 위계, 터치·접근성에 필요한 차이는 유지한다. md API가 없는 부품에 임의 prop을 넣지 않는다.
|
|
47
49
|
|
|
50
|
+
로그인 화면에서 일반 로그인과 소셜 로그인 버튼을 같은 영역에 놓을 때는 [[components/social-login-button]]의 크기 대응표에 따라 높이를 맞춘다. 같은 열에 쌓는 버튼은 너비도 맞춘다.
|
|
51
|
+
|
|
48
52
|
## 5. 규칙 검사: checks
|
|
49
53
|
|
|
50
54
|
앱 셸이 있으면 실제 Sidebar/Topbar의 유무와 배치가 DESIGN.md의 결정·componentPlan과 일치하는지 확인한다. 탑바를 사용하는 경우 `AppFrame.Topbar`와 `AppFrame.Content`를 형제 슬롯으로 두고, 탑바·본문 바탕을 공통 `--app-frame-bg`로 연결한다. 모바일 CSS에서도 높이·overflow 계약과 필요한 탐색 경로를 유지한다. 검사는 AppFrame의 import 유무를 넘어 실제 슬롯 위치·스크롤 컨테이너·표면 매핑을 확인한다. 상세 계약은 [[components/app-frame]]을 따른다.
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
- 자식 영역이 축을 상속받지 못한 것 같으면: (1) 중간에 `data-*` 재선언이 있는지, (2) iframe·portal로 넘어가 조상 체인이 끊긴 건 아닌지 확인.
|
|
46
46
|
|
|
47
47
|
### 관련
|
|
48
|
-
-
|
|
49
|
-
- 각 축의 값·기본값·국소 스코프 디테일: [mode
|
|
48
|
+
- 앱 wiring: `app/layout.tsx` + `components/ovenn/ThemeController.tsx` + `components/ovenn/themeBootScript.ts`
|
|
49
|
+
- 각 축의 값·기본값·국소 스코프 디테일: [[axes/mode]] · [[axes/palette]] · [[axes/shape]] · [[axes/density]] · [[axes/motion]] · [[axes/icon]]
|
|
@@ -13,13 +13,14 @@ variant 이름이 헷갈리면 `prompts/components/_variants.md`.
|
|
|
13
13
|
- **Avatar** · `prompts/components/avatar.md`: 사람·팀의 식별 마커. 이미지 → 이니셜 → 아이콘 순서로 자동 폴백.
|
|
14
14
|
- **AvatarUpload** · `prompts/components/avatar-upload.md`: Avatar + 파일 피커. 프로필·조직 로고 설정의 "현재 사진 보여주고 바꾸기" 자리.
|
|
15
15
|
- **Badge** · `prompts/components/badge.md`: 수량·언리드·짧은 알림과 상태 dot을 표시하는 작은 시각 요소.
|
|
16
|
-
- **Button** · `prompts/components/button.md`: 텍스트 액션의 최소 단위. 클릭 시 무언가 일어나는 컨트롤: 페이지 이동은
|
|
16
|
+
- **Button** · `prompts/components/button.md`: 텍스트 액션의 최소 단위. 클릭 시 무언가 일어나는 컨트롤: 페이지 이동은 링크(`<a>` 또는 Next `Link`).
|
|
17
17
|
- **Chip** · `prompts/components/chip.md`: 선택을 담는 라벨. Chip 하나가 두 가지 모드로 쓰인다: 사용자가 이미 고른 값을 보여주며 제거할 수 있는 요약 모드, 그리고 사용자가 켜고 끌 수 있는 토글 모드.
|
|
18
18
|
- **Code** · `prompts/components/code.md`: 본문 안에서 변수명, 속성명, 짧은 코드 조각을 표시한다.
|
|
19
19
|
- **ControlGroup** · `prompts/components/control-group.md`: Button·Input·Select·DatePicker를 같은 높이의 한 몸체로 연결하는 가로 컨트롤 그룹.
|
|
20
20
|
- **IconButton** · `prompts/components/icon-button.md`: 아이콘만 있는 버튼. 툴바, 테이블 행 액션, 플로팅 액션, Input의 trailing 등 좁은 자리의 액션 전용.
|
|
21
21
|
- **MenuItem** · `prompts/components/menu-item.md`: 메뉴/리스트 안 개별 행의 최소 단위. Dropdown Menu · Context Menu · Sidebar · Command Palette · 일반 List가 공유.
|
|
22
22
|
- **Shortcut** · `prompts/components/shortcut.md`: 키보드 단축키를 표시하는 최소 시각 라벨. Menu Item의 trailing 슬롯, Tooltip 힌트, Command Palette 결과 행이 공유한다.
|
|
23
|
+
- **SocialLoginButton** · `prompts/components/social-login-button.md`: 외부 계정으로 로그인할 때 써요. `provider`를 고르면 해당 서비스의 로고와 문구가 표시돼요.
|
|
23
24
|
- **Tag** · `prompts/components/tag.md`: 분류·속성·텍스트 상태를 표시하는 정적인 라벨. Badge는 수량·알림·상태 dot, Tag는 `Design`, `API`, `Completed` 같은 이름을 담당한다.
|
|
24
25
|
- **Toolbar** · `prompts/components/toolbar.md`: IconButton 중심의 action 줄. 에디터·캔버스·갤러리 상단, 또는 "뜨 있는" 알약으로 콘텐츠 위에 떠서 액션을 모으는 자리.
|
|
25
26
|
- **Tooltip** · `prompts/components/tooltip.md`: hover·focus 시 뜨는 짧은 보조 설명. Radix Tooltip 위에 얹은 compound.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Ovenn 전역 원칙
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
변형·안전·토큰 정책을 설명한다. 문서 사이의 우선순위는 [[RULES]] §0 표가 정한다. **컴포넌트는 수정 가능한 출발점이며, 프로젝트 디자인은 자유롭게 만든다.** 동작과 접근성을 재사용하면서 표현을 바꿀 수 있다.
|
|
4
4
|
|
|
5
5
|
## 목표: 사용성과 아름다움
|
|
6
6
|
|
|
@@ -32,17 +32,13 @@
|
|
|
32
32
|
|
|
33
33
|
## 4. 충돌 시 우선순위
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
2. 사용자가 요청한 디자인과 프로젝트의 명시적 정책.
|
|
37
|
-
3. 이 원칙과 실제 토큰 선언, 명시적으로 exact를 요청한 영역의 보존 계약.
|
|
38
|
-
4. 컴포넌트 API와 현재 구현의 제약. 제약은 조사하고 로컬 파생으로 해결할 수 있다.
|
|
39
|
-
5. Brand Set·축·Theme·프리셋·기존 미감 기본값.
|
|
35
|
+
순위는 [[RULES]] §0 표 하나가 정한다. 접근성·동작 계약이 가장 먼저이고, 사용자의 명시 지시, 필수 규칙과 `[HARD]`, 프로젝트 정책, 이 원칙, 컴포넌트 제약, 미감 기본값 순이다. 컴포넌트 API의 제약은 조사하고 로컬 파생으로 해결할 수 있다.
|
|
40
36
|
|
|
41
|
-
|
|
37
|
+
필수 규칙과 `[HARD]` 밖의 색 조합·폰트 개수·굵기·정렬·대문자·표면·HTML 태그 등 미감 제한은 선택 가능한 기본값이다. 오래된 하위 문서/skill/메모리가 그 변형 허용을 다시 금지하지 않는다.
|
|
42
38
|
|
|
43
39
|
### 4a. 안전 계약과 디자인 선택
|
|
44
40
|
|
|
45
|
-
역할/라벨, 포커스·키보드, disabled/loading/오류 의미, 데이터·선택 상태는 보존한다. 디자인 선택은 프로젝트 안에서 자율적으로 결정하고 검증한다. 규칙 준수만으로 미적 완성도가 보증되지는 않는다. WORKFLOW_DESIGN의 명시적 디자인 금지 규칙은
|
|
41
|
+
역할/라벨, 포커스·키보드, disabled/loading/오류 의미, 데이터·선택 상태는 보존한다. 디자인 선택은 프로젝트 안에서 자율적으로 결정하고 검증한다. 규칙 준수만으로 미적 완성도가 보증되지는 않는다. WORKFLOW_DESIGN의 명시적 디자인 금지 규칙은 RULES §0의 5행이다. 해당 위반이 관측되면 필수 수정하며, 일반적인 미감 기본값의 선택 가능성을 이유로 면제하지 않는다.
|
|
46
42
|
|
|
47
43
|
### 4b. Template과 Brand Set
|
|
48
44
|
|
package/assets/prompts/RULES.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
# Ovenn 필수 규칙
|
|
2
2
|
|
|
3
|
-
모든 UI 작업에 예외 없이 적용한다.
|
|
3
|
+
모든 UI 작업에 예외 없이 적용한다. 문서끼리 충돌하면 아래 §0 표가 정한다. 우선순위는 이 표 한 곳에만 둔다.
|
|
4
|
+
|
|
5
|
+
## 0. 문서 역할과 우선순위
|
|
6
|
+
|
|
7
|
+
충돌하면 위 행이 이긴다. 같은 행에서는 다루는 범위가 더 좁은 문서가 이긴다(컴포넌트 문서 > 레시피 > 일반 원칙).
|
|
8
|
+
|
|
9
|
+
| 순위 | 무엇 | 어디 | 바꾸는 방법 |
|
|
10
|
+
|---|---|---|---|
|
|
11
|
+
| 1 | 접근성·보안·동작/데이터 의미, 보존할 공개 계약 | 이 문서 §1 | 바꾸지 않는다 |
|
|
12
|
+
| 2 | 사용자가 이번 작업에서 명시한 지시 | 요청 | 사용자. 그 범위 안에서만 3~7행을 바꾼다 |
|
|
13
|
+
| 3 | 필수 규칙(이 문서 §2~§4)과 각 문서의 `[HARD]` bullet | RULES, 해당 문서 | 사용자의 명시 지시로만 |
|
|
14
|
+
| 4 | 프로젝트의 명시적 정책 | `ovenn.config.json`, `DESIGN.md`, 프로젝트 토큰 | 프로젝트 |
|
|
15
|
+
| 5 | 원칙·절차·검수 기준과 exact 보존 계약. 검수 기준의 디자인 금지는 위반이 관측되면 필수 수정 | [[PRINCIPLES]], [[ASSEMBLY]], [[WORKFLOW_DESIGN]] | 문서 변경 |
|
|
16
|
+
| 6 | 컴포넌트 API와 현재 구현의 제약 | `prompts/components/*`, 실제 코드 | 로컬 파생으로 해결할 수 있다 |
|
|
17
|
+
| 7 | 미감 기본값: Brand Set·축·Theme·프리셋, `[HARD]`가 없는 Do/Don't | 각 문서 | 프로젝트에서 자유롭게 바꾼다 |
|
|
18
|
+
|
|
19
|
+
- 같은 규칙은 이 문서에만 두고 다른 문서는 링크한다. 컴포넌트 문서는 그 부품에서 규칙을 지키는 방법(예: ListItem은 MetaDivider)만 적는다.
|
|
20
|
+
- `[HARD]`는 그 문서의 부품·자리에만 적용한다. 7행의 선택 사항(대문자·HTML 태그·정렬·표면 등)을 `[HARD]`로 다시 금지하지 않는다.
|
|
21
|
+
- 기계로 잡히는 규칙은 `ovenn check`가 파일·줄·고칠 방법과 함께 알려 준다.
|
|
4
22
|
|
|
5
23
|
## 1. 접근성·동작 계약
|
|
6
24
|
- 키보드·포커스·라벨·역할·대비·disabled/loading/오류 의미·데이터와 선택 상태를 외형 때문에 손상하지 않는다.
|
package/assets/prompts/SLOTS.md
CHANGED
|
@@ -4,7 +4,7 @@ Ovenn은 CSS Modules 지역 스코프를 쓴다 ([[PRINCIPLES §6b]]). 그래서
|
|
|
4
4
|
|
|
5
5
|
**`data-slot` 과 통일된 `data-*` state attribute** 가 그 자리를 메우는 **공식 API**. CSS 선택자로 쓰지 않고 **외부 통합용**.
|
|
6
6
|
|
|
7
|
-
> 전제: [[PRINCIPLES]]
|
|
7
|
+
> 전제: [[PRINCIPLES]]를 읽었다.
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -169,7 +169,7 @@ Modal
|
|
|
169
169
|
|
|
170
170
|
## 6. 신규 컴포넌트 작성 시
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
컴포넌트 문서에 섹션 추가 — `## data-slot` 과 `## state attributes`:
|
|
173
173
|
|
|
174
174
|
```markdown
|
|
175
175
|
## data-slot
|
|
@@ -190,5 +190,3 @@ Modal
|
|
|
190
190
|
## 7. 관련
|
|
191
191
|
|
|
192
192
|
- [[PRINCIPLES §6b]] — CSS class 네이밍 (지역 vs 전역)
|
|
193
|
-
- [[GUIDE]] — 섹션 문서 공통 골격
|
|
194
|
-
- [[MEMORY]] — 메모리 승격 (data-slot 누락 feedback 축적 자리)
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
### 관련
|
|
62
62
|
- [[ASSEMBLY]]: 공통 순서·회차·증거·완료 계약
|
|
63
63
|
- [[PRINCIPLES]]: 안전·변형·토큰 정책
|
|
64
|
-
- [[FEEDBACK_PROCESS]]: 사용자 피드백으로 이 문서를 개선하는 메타 프로세스
|
|
65
64
|
- [[tokens/spacing]]: 간격 관계와 계산 범위
|
|
66
65
|
- [[tokens/typography]]: 역할별 타이포 위계
|
|
67
66
|
|
|
@@ -129,6 +128,3 @@ required는 위치·관측·영향·수정 방향을 구체적으로 제시한
|
|
|
129
128
|
강화 검수(reviewEvidenceVersion=1)는 각 기준의 evidence에 실제 첨부된 캡처 파일명을 남기고, ruleChecks에 위 6개 규칙 모두의 판정을 기록한다. 같은 지적을 수정 후 실제 화면에서 다시 확인한다. 다음 시각 검수는 이전 지적의 issueIndex별 resolved/still_present/not_observed와 현재 위치·관측·증거를 보고한다. resolved도 무엇이 바뀌었는지 실제 캡처로 확인해야 한다. source hash와 capture hash가 다른 보고서는 현재 결과의 합격으로 사용하지 않는다.
|
|
130
129
|
|
|
131
130
|
검수 모델은 criteria/issues 내용을 작성하고 실행기는 실제 전달한 소스·캡처 hash와 검수 세션을 연결한다. 모델이 긴 hash를 복사한 것을 파일을 관측한 증거로 삼지 않는다. needs_changes인 기준에는 같은 criterion의 required 지적이 있어야 한다.
|
|
132
|
-
|
|
133
|
-
### 사용자 피드백에서 규칙 개선까지
|
|
134
|
-
사용자 피드백으로 이 문서를 개선하는 메타 프로세스는 [[FEEDBACK_PROCESS]]에 있다. `continue` 모드에서 agent에게 전달되는 원인 분석 계약도 같은 파일에서 읽는다.
|
|
@@ -16,7 +16,7 @@ Weight는 축이 아니라 `<Icon weight="..." />` prop (컴포넌트별 자유
|
|
|
16
16
|
- 아이콘은 항상 의미 기반 이름으로 참조: `<Icon name="check" />`.
|
|
17
17
|
- 프로젝트 시작 시 Family 하나 결정. 리스킨 아닌 이상 안 바꾼다.
|
|
18
18
|
- 활성/선택 상태 표시엔 `weight=fill`, 그 외에는 `weight=regular`.
|
|
19
|
-
- **단순한 상징 우선** — Button/MenuItem 라벨이 이미 의미를 담고 있으니, 아이콘은 1초 안에 분류되는 "모양 꼬리표" 역할. 조합형 메타포(`envelope-plus`, `pencil-simple` 등)보다 원형 상징(`plus`, `x`, `check`, `search`, `trash`, `arrow-right`)이
|
|
19
|
+
- **단순한 상징 우선** — Button/MenuItem 라벨이 이미 의미를 담고 있으니, 아이콘은 1초 안에 분류되는 "모양 꼬리표" 역할. 조합형 메타포(`envelope-plus`, `pencil-simple` 등)보다 원형 상징(`plus`, `x`, `check`, `search`, `trash`, `arrow-right`)이 우선.
|
|
20
20
|
|
|
21
21
|
### Don't
|
|
22
22
|
- 한 페이지에서 두 Family를 섞지 않는다.
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
### Do
|
|
7
7
|
- `data-material="solid | glass"`와 ThemeController의 `material`·`setMaterial`로 제어한다. 테마 패널의 선택은 `ovenn-material`에 저장하며 `initialConfig.material`이 저장값보다 우선한다.
|
|
8
|
-
- Glass는 CommandPalette, ContextMenu·DropdownMenu·Select/Combobox 메뉴, DatePicker 팝업, ColorPicker 팝업 외곽, floating Toolbar, Modal·Drawer
|
|
8
|
+
- Glass는 CommandPalette, ContextMenu·DropdownMenu·Select/Combobox 메뉴, DatePicker 팝업, ColorPicker 팝업 외곽, floating Toolbar, Modal·Drawer 외곽에 적용한다. Callout 표면은 Material 축과 무관하게 variant와 tone을 따른다. 각 부품의 내부 구조·키보드·포커스·disabled 계약은 유지한다.
|
|
9
9
|
- 재질 값은 [[tokens/material]]의 `--surface-glass-*`를 사용한다. `--material-bg/border/filter/scrim/selected-bg`가 축의 활성 표면 값이다. Solid에서는 각 컴포넌트의 기존 불투명 값으로 돌아간다.
|
|
10
10
|
- 딤드 유무로 재질을 구분한다. 라이트에서 딤드가 있는 Modal·Drawer는 배경72%/blur8px, 딤드가 없는 피커·메뉴와 transparent Modal·none Drawer는 배경80%/blur16px를 사용한다. 다크에서는 각각40%/8px와58%/16px이며, 전경4%를 섞은 표면과 전경10% 경계로 검은 배경에서도 재질을 구분한다. 후자는 `--material-floating-bg/filter`로 활성화한다. Solid와 투명도 감소 설정에서는 불투명으로 돌아간다.
|
|
11
|
-
- 라이트 글래스의 기본 조합은 배경72%·blur8px·전경5% 경계다.
|
|
11
|
+
- 라이트 글래스의 기본 조합은 배경72%·blur8px·전경5% 경계다. 박스 Input·Textarea·Select/Combobox 트리거는 배경45%를 적용한다. line과 읽기 전용 입력은 투명을 유지하고, ColorField·ColorPicker의 색상 수치 입력과 색상판은 불투명하게 유지한다. 본문과 테이블의 바탕은 바꾸지 않는다.
|
|
12
12
|
- exact TemplateBoundary는 스냅샷의 Material(생략 시 Solid)을 React MaterialScopeContext로도 전달한다. 메뉴·선택·날짜/색상 팝업·모달·드로워·CommandPalette는 이 scope를 캡처해 Portal의 Content/Overlay에 `data-material`로 전달한다. 일반 앱에서 context 기본값은 undefined이며 전역 축을 그대로 따른다.
|
|
13
13
|
- 특정 표면을 Solid로 유지하려면 그 표면에 `data-material="solid"`를 지정한다. Portal로 옮겨지는 메뉴/다이얼로그는 React 부모의 DOM 속성을 상속하지 않으므로 실제 Content/Popover 또는 Portal container에 지정한다.
|
|
14
14
|
- 브라우저 미지원 및 `prefers-reduced-transparency: reduce`에서는 불투명 표면을 사용한다. 라이트/다크·복잡한 배경과 키보드 선택 상태의 가독성을 확인한다.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
### Don't
|
|
17
17
|
- Glass/Solid 전환으로 그림자를 변경하거나 Material 전용 shadow 토큰을 두지 않는다. 각 컴포넌트의 elevation·Shape 그림자를 유지한다.
|
|
18
18
|
- 페이지 전체 바탕이나 모든 자식에 opacity를 주지 않는다. 텍스트·아이콘까지 흐려지면 안 된다.
|
|
19
|
-
- attached Toolbar·인라인 날짜
|
|
19
|
+
- attached Toolbar·인라인 날짜 패널·폼의 바탕·데이터 행까지 자동으로 투명하게 만들지 않는다. 박스 입력 컨트롤의 표면만 별도 field recipe를 따른다.
|
|
20
20
|
- ColorPicker 색상판과 입력 필드를 투명하게 만들어 배경에 따라 표시색이 바뀌게 하지 않는다.
|
|
21
21
|
|
|
22
22
|
### Fallback
|
|
@@ -37,4 +37,4 @@ CommandPalette는 `--surface-glass-command-bg`로 라이트·다크 모두 불
|
|
|
37
37
|
|
|
38
38
|
Floating Toolbar는 작은 표면에 맞춰 라이트·다크 모두 불투명도58%·blur8px를 사용한다. `--surface-glass-toolbar-bg/blur`에 저장하며 일반 피커·메뉴의 floating recipe와 분리한다. attached Toolbar는 기존 투명 표면을 유지한다.
|
|
39
39
|
|
|
40
|
-
ColorPicker는 전용42%/blur10px·전경5% 중성 경계, ContextMenu·DropdownMenu·Select는 전용
|
|
40
|
+
ColorPicker는 전용42%/blur10px·전경5% 중성 경계, ContextMenu·DropdownMenu·Select는 전용45%/blur16px를 쓴다. 일반 floating 기본값을 그대로 덮어씌우지 않는다.
|
|
@@ -74,6 +74,6 @@ Turbopack CSS Modules는 컴포넌트 CSS 안의 `animation: <name>` shorthand
|
|
|
74
74
|
- `data-state="closed"` 애니메이션 생략 (인·아웃 대칭이 원칙).
|
|
75
75
|
|
|
76
76
|
### 관련
|
|
77
|
-
- [[primitives/fade]] · [[primitives/emerge]]
|
|
77
|
+
- [[primitives/fade]] · [[primitives/emerge]] — Motion 축이 파라미터를 스왑, `.m-float`이 side별 매핑
|
|
78
78
|
|
|
79
79
|
- 흐르는 업로드 피드백은 --duration-flow(1500ms × motion-scale)와 --ease-flow를 사용한다. 이 값은 공용 토큰에서 정의하고 컴포넌트 내부에서 시간·곡선을 직접 재선언하지 않는다.
|
|
@@ -7,7 +7,7 @@ Switch는 이 축에서 제외하며 자체 `variant="soft | crisp"`로 곡률
|
|
|
7
7
|
|
|
8
8
|
카드·일정·문서 예제 프레임의 곡선은 `card-corner-shape`의 공통 squircle을 사용하고, 크기별 반경은 Shape 축을 따른다. 원형 상태 표시는 유지한다.
|
|
9
9
|
|
|
10
|
-
일반 표면은 `corner-shape`로 superellipse 곡선을 적용한다. Shape 축은 반경뿐 아니라 곡선도 함께 바꿔 작은 컨트롤에서도 차이가 보이게 한다. standard=1.
|
|
10
|
+
일반 표면은 `corner-shape`로 superellipse 곡선을 적용한다. Shape 축은 반경뿐 아니라 곡선도 함께 바꿔 작은 컨트롤에서도 차이가 보이게 한다. standard=1.7, soft=1.4, crisp=2.4, pill=1.01이며 값은 CSS 토큰 정의를 따른다.
|
|
11
11
|
|
|
12
12
|
Checkbox·Badge는 `corner-shape-mini`, `radius-mini-ratio`, `radius-mini-sm/md`로 별도 조절한다. Badge의 자체 pill 모양을 전역 Shape 설정으로 취급하지 않는다. 중첩 Shape scope에서는 radius-pill alias를 다시 계산한다. 원형 의미인 Radio·Avatar circle·Spinner·dot·Slider thumb 등은 round를 유지한다. 미지원 브라우저에서는 기존 radius로 표시한다.
|
|
13
13
|
|
|
@@ -25,7 +25,7 @@ Checkbox·Badge는 `corner-shape-mini`, `radius-mini-ratio`, `radius-mini-sm/md`
|
|
|
25
25
|
|
|
26
26
|
### 값
|
|
27
27
|
- `soft` — 큰 radius, 부드러운 넓은 그림자, 얇은 border. 캐주얼·친근.
|
|
28
|
-
- `standard` — soft
|
|
28
|
+
- `standard` — soft보다 살짝 각진 기본 모서리.
|
|
29
29
|
- `crisp` — 작은 radius, 짧고 예리한 그림자 + 아웃라인, 뚜렷한 border. 신뢰·전문.
|
|
30
30
|
|
|
31
31
|
### 기본값
|
|
@@ -24,7 +24,7 @@ Theme과 독립 — editorial이든 mechanical이든 어떤 Theme에도 어떤 V
|
|
|
24
24
|
- [HARD] 접근성 문구(에러 설명, 필수 필드 안내, 스크린리더 라벨)는 Voice와 무관하게 **명확성 우선**.
|
|
25
25
|
`casual`이어도 필수 정보를 희석하지 않는다 (예: "비밀번호는 필수입니다" 수준은 유지).
|
|
26
26
|
- Voice에 CSS 변수나 토큰을 할당하지 않는다. 코드 레벨 영향은 `data-voice` 속성 노출뿐.
|
|
27
|
-
- [HARD] **[HARD] em dash(—), en dash(–), 생략부호(…), 수사적 큰따옴표 전면 금지.**
|
|
27
|
+
- [HARD] **[HARD] em dash(—), en dash(–), 생략부호(…), 수사적 큰따옴표 전면 금지.**
|
|
28
28
|
모든 Voice 공통 하드 룰. 범위는 **제목·헤딩·버튼 라벨·메뉴명뿐 아니라 본문·테이블 셀·설명·툴팁·에러 메시지까지 모든 사람 UI 카피** 전부. 문서·UI 카피·AI 생성물 전부 해당.
|
|
29
29
|
나쁜 예:
|
|
30
30
|
- 제목: "온보딩 — 테마를 고릅니다", "설정 — 기본값", "저장 — 완료"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
| [IconButton](icon-button.md) |: *(강조는 Button 쪽)* | `outline` | `ghost` | `destructive` | |
|
|
29
29
|
|
|
30
30
|
**선택 규칙 (액션)**
|
|
31
|
-
- 중요 액션=`primary`, 서브 액션=`outline`. 폼·모달·페이지 액션의 기본 쌍. **`secondary`는 레거시, 신규 코드에선 `outline`을 쓴다.**
|
|
31
|
+
- 중요 액션=`primary`, 서브 액션=`outline`. 폼·모달·페이지 액션의 기본 쌍. **`secondary`는 레거시, 신규 코드에선 `outline`을 쓴다.**
|
|
32
32
|
- 테이블 행·툴바 안 액션은 `ghost`.
|
|
33
33
|
- 삭제·해제는 `destructive`, 삭제가 두 번째 시선이면 `destructive-ghost`.
|
|
34
34
|
- IconButton엔 `primary`가 없다: "꽉 찬 색의 아이콘 버튼"은 Ovenn에서 금지. 강조가 필요하면 label 붙은 Button을 써라.
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
|
|
46
46
|
**선택 규칙 (표시)**
|
|
47
47
|
- 상태·카테고리 라벨=`Badge solid`(기본) 또는 `soft`(순한 톤). 선택된 필터 값=`Chip`.
|
|
48
|
-
- Chip은 "선택된 값(X로 제거 가능)" 전용. 카테고리·태그·메타 라벨은 **반드시 Badge
|
|
48
|
+
- Chip은 "선택된 값(X로 제거 가능)" 전용. 카테고리·태그·메타 라벨은 **반드시 Badge**.
|
|
49
49
|
- **안내 자리 3층 구분**: 성격에 따라 분리:
|
|
50
50
|
- **흐름 속 각주 (1~2줄, 톤 없음)** = `Hint`
|
|
51
|
-
- **액션 유도 있는 안내 블록 (사이드바·리스트 끝)
|
|
51
|
+
- **액션 유도 있는 안내 블록 (사이드바·리스트 끝)**는 `Callout fill`을 기본으로 쓴다. 아주 옅은 배경과 테두리를 함께 쓰려면 `outline-tint`를 쓴다.
|
|
52
52
|
- **페이지 폭 상태 바 (공유 모드·만료·권한)** = [[recipes/page-banner]]
|
|
53
53
|
|
|
54
54
|
### 입력 컴포넌트: 매핑
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
| [TimePicker](time-picker.md) | `line` | `outline` | `filled` |
|
|
62
62
|
|
|
63
63
|
**선택 규칙 (입력)**
|
|
64
|
-
- `line`을 먼저 고려. 독립 폼 블록이면 `outline`, 테이블 셀처럼 밀도가 극한이면 `filled
|
|
64
|
+
- `line`을 먼저 고려. 독립 폼 블록이면 `outline`, 테이블 셀처럼 밀도가 극한이면 `filled`.
|
|
65
65
|
|
|
66
66
|
### 레이아웃·구조 컴포넌트
|
|
67
67
|
"역할" 매핑과 맞지 않는 축을 쓰는 것들. 이름 그대로 사용:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Accordion
|
|
2
2
|
|
|
3
3
|
### 원칙
|
|
4
|
-
여러 섹션을 **접었다 폈다** 하는 구조 컴포넌트. 긴 콘텐츠를 압축해 "지금 중요한 것"만 보여주고, 사용자가 원할 때 세부를 펼친다. 설정 그룹·FAQ·상세 사양·단계별 체크리스트가 전형적인 자리. Radix `@radix-ui/react-accordion`을 감싼 compound 어댑터: 열림 상태·높이 측정·키보드 네비·ARIA는 Radix가 처리하고, Ovenn은 Trigger 레이아웃·caret·divider·card variant만 담당. [[components/
|
|
4
|
+
여러 섹션을 **접었다 폈다** 하는 구조 컴포넌트. 긴 콘텐츠를 압축해 "지금 중요한 것"만 보여주고, 사용자가 원할 때 세부를 펼친다. 설정 그룹·FAQ·상세 사양·단계별 체크리스트가 전형적인 자리. Radix `@radix-ui/react-accordion`을 감싼 compound 어댑터: 열림 상태·높이 측정·키보드 네비·ARIA는 Radix가 처리하고, Ovenn은 Trigger 레이아웃·caret·divider·card variant만 담당. [[components/disclosure]]과 비슷하지만 **여러 아이템**인 점이 다르다. 하나짜리면 Disclosure로.
|
|
5
5
|
|
|
6
6
|
### Do
|
|
7
7
|
- **"지금 보이는 것 vs 숨긴 것"의 비율이 1:3 이상일 때 쓴다.** 전부 다 중요하면 그냥 나열하는 게 낫다. Accordion은 "요약은 다 보이고, 세부가 선택적"인 리스트용.
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
- **본문에 또 다른 Primary CTA 넣지 말 것.** 사용자가 섹션을 "펼쳐야만" 중요한 액션을 볼 수 있는 구조는 발견 실패를 유발. 핵심 CTA는 Accordion 밖 상단에.
|
|
19
19
|
- **길이가 들쭉날쭉한 본문 금지.** 어떤 섹션은 1줄, 어떤 섹션은 20줄이면 레이아웃이 요동친다. 긴 섹션은 아예 별도 페이지로.
|
|
20
20
|
- **Accordion과 Tabs 혼용 금지.** 둘 다 "숨기기 + 보이기"이지만: **Accordion은 세로 리스트, Tabs는 가로 전환**. 섹션 수가 3개 이하 + 서로 배타적이면 Tabs가 맞음. 섹션 수가 많거나 동시 열람 가능하면 Accordion.
|
|
21
|
-
- **애니메이션 커스터마이즈 금지.** Radix의 `--radix-accordion-content-height` 변수에 맞춰 Ovenn 모션 토큰(`--duration-base` + `--ease-out`)으로 이미 처리. duration·ease 하드코딩은
|
|
21
|
+
- **애니메이션 커스터마이즈 금지.** Radix의 `--radix-accordion-content-height` 변수에 맞춰 Ovenn 모션 토큰(`--duration-base` + `--ease-out`)으로 이미 처리. duration·ease 하드코딩은 위반.
|
|
22
22
|
- [HARD] **라벨에 아이콘만 넣고 텍스트 빼는 것 금지.** 접근성·스캐닝 모두 깨짐.
|
|
23
23
|
|
|
24
24
|
### Fallback
|
|
25
25
|
type 애매하면 `single + collapsible`. variant 애매하면 `line`. defaultValue 애매하면 비워두기(전부 닫힘). 크기는 preset 하나(trigger text-base·min-h 48px·content text-sm). line variant는 자동으로 min-h 40px로 조밀. 특수 자리는 로컬 CSS 변수로 override.
|
|
26
26
|
|
|
27
27
|
### 관련
|
|
28
|
-
- [[components/
|
|
28
|
+
- [[components/disclosure]]: Accordion의 1-아이템 버전. "더 보기" 토글 하나짜리.
|
|
29
29
|
- [[components/tabs]]: 섹션 수 ≤ 3 + 가로 전환이 자연스러우면 Tabs. Accordion은 세로 리스트.
|
|
30
30
|
- [[components/menu-item]]: Section variant는 사이드바 섹션 접힘에 사용. 메뉴 트리의 접힘은 Accordion이 아님.
|
|
31
31
|
- [[tokens/motion]]: `--duration-base` · `--ease-out`이 slide 애니메이션을 만든다.
|
|
@@ -89,7 +89,7 @@ size prop을 두면 "라벨은 크게 본문은 작게" 같은 자리마다 다
|
|
|
89
89
|
| closed | 라벨 `--fg`, caret 아래, 본문 숨김 |
|
|
90
90
|
| open | 라벨 `--fg-strong`, caret 180도 회전, 본문 slide-down |
|
|
91
91
|
| hover (closed, 모든 variant) | Trigger 배경 `--hover` + 라벨 `--fg-strong` + leading·caret `--fg-strong`. 네 variant 전부 동일 어휘 |
|
|
92
|
-
| hover (open) | 배경 변화 없음: 상태 signal 유지
|
|
92
|
+
| hover (open) | 배경 변화 없음: 상태 signal 유지 |
|
|
93
93
|
| focus-visible | `--focus-ring` outline |
|
|
94
94
|
| disabled | `--fg-disabled`, cursor not-allowed, 클릭·키보드 모두 꺼짐 |
|
|
95
95
|
|
|
@@ -5,10 +5,13 @@ AI가 보낸 응답 메시지. **왼쪽 정렬**, bubble 없이 본문 그대로
|
|
|
5
5
|
|
|
6
6
|
### Do
|
|
7
7
|
- `label`로 메타 제목(예: LongText, Code Block)을 짧게 노출. 생략 가능.
|
|
8
|
-
- `
|
|
8
|
+
- `before`에는 기본으로 접힌 [[components/accordion]] 작업 요약을 넣을 수 있다. 사용자에게 보여줄 작업과 결과를 요약하고, 소요 시간은 호출자가 제공한 값만 표시한다.
|
|
9
|
+
- `children`에 마크다운 HTML, 링크, CodeBlock, 인용, 표, [[components/generated-image]]를 조합할 수 있다. 이미지에는 대체 텍스트를 제공한다.
|
|
10
|
+
- `onSourcesClick`에서 출처 목록을 연다. 닫을 때 클릭 이벤트의 버튼으로 포커스를 돌려준다.
|
|
9
11
|
- 기본 액션 `[copy, regenerate]`, `actionsVisibility`로 상시/호버 전환.
|
|
10
12
|
- 본문 수신 중에는 `isStreaming`을 켜고 누적 텍스트를 `children`에 전달한다. 본문 서식은 유지하고 액션·출처는 완료 후 표시한다. 문자열 본문은 grapheme 단위의 짧은 fade-in으로 새 글자를 부드럽게 표시한다. 완료·중지 시 마지막 글자의 모션은 마저 끝나며, 이미 표시한 글자는 다시 재생하지 않는다. 구조화 본문은 기존 블록 구조를 유지한다. motion=none과 reduced-motion에서는 fade를 생략한다. 컴포넌트가 실제 수신을 임의로 지연하지 않는다.
|
|
11
13
|
- 생성 대기에는 `isGenerating`로 액션 숨김. 로딩 UI는 [[components/message-state]] 조합.
|
|
14
|
+
- 응답 실패는 해당 위치에 인라인 [[components/callout]]으로 표시하고, 확인된 원인과 재시도 방법을 안내한다. AI Message 문서의 ‘응답 실패 및 재시도’ 예제는 서버 응답 시간 초과를 보여준다. 안내가 줄바꿈되면 아이콘은 첫 줄에 맞춘다. 다시 시도 아이콘 버튼에는 접근성 이름을 지정하며, 클릭 시 원형 화살표가 한 바퀴 돌고 같은 위치에서 응답이 스트리밍된다.
|
|
12
15
|
|
|
13
16
|
### Don't
|
|
14
17
|
- bubble로 감싸지 않는다: AI는 "본문"이 메시지 자체. bubble은 UserMessage 전용.
|
|
@@ -29,10 +32,11 @@ visibility 애매하면 `hover`, actions 애매하면 기본 `[copy, regenerate]
|
|
|
29
32
|
```tsx
|
|
30
33
|
<AIMessage
|
|
31
34
|
label={ReactNode} // 상단 메타 라벨
|
|
35
|
+
before={ReactNode} // 본문 위 작업 요약 등
|
|
32
36
|
actionsVisibility="show | hover" // default: hover
|
|
33
37
|
actions={[{ kind: "copy" }, { kind: "regenerate" }]} // 비우려면 []
|
|
34
38
|
sources={[{ id, label, href?, icon? }]} // 액션바 옆 inline chip
|
|
35
|
-
onSourcesClick={() => void}
|
|
39
|
+
onSourcesClick={(event) => void} // 이벤트의 currentTarget은 출처 버튼
|
|
36
40
|
isStreaming={boolean} // 누적 본문 수신 중, 액션/sources 숨김
|
|
37
41
|
isGenerating={boolean} // true면 액션/sources 숨김
|
|
38
42
|
>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
- trailing을 수제 버튼으로 그리지 않는다: 반드시 IconButton 재사용 (sm/md → IconButton xs 24, lg → IconButton sm 32). IconButton에 없는 치수(28·36 등)는 금지.
|
|
29
29
|
- loading 좌측에 베이스 Spinner variant(pulse·dots-bounce 등)를 쓰지 않는다: Ovenn 로더 톤 통일 위해 `lottie-dots` 고정. [[components/spinner]].
|
|
30
30
|
- 배경을 과한 톤으로 덮지 않는다: bg는 `var(--bg)`, 테두리는 hairline, drop shadow는 가장 연한 `--shadow-xs`만.
|
|
31
|
-
- meta
|
|
31
|
+
- meta 라인의 구분은 [[RULES]] §3을 따른다. 문자 구분자 대신 간격으로 나눈다.
|
|
32
32
|
- `AttachmentChip`으로 부르지 않는다: [[components/chip]]은 필터 선택값(X 제거) 전용. 파일 첨부는 Item.
|
|
33
33
|
|
|
34
34
|
### Fallback
|
|
@@ -77,7 +77,7 @@ size 애매하면 `md`. 모르는 확장자는 FileIcon이 `others`로 폴백하
|
|
|
77
77
|
- md: max=22
|
|
78
78
|
- lg: max=44
|
|
79
79
|
- 확장자 없거나(dot<=0) 비정상적으로 긴 확장자(>8자) / 확장자가 max를 거의 다 먹는 경우만 일반 `...` 꼬리로 폴백.
|
|
80
|
-
- 사용 문자는 ASCII `...` (유니코드 생략 기호
|
|
80
|
+
- 사용 문자는 ASCII `...` (유니코드 생략 기호 금지).
|
|
81
81
|
- CSS `text-overflow: ellipsis`는 안전망으로 유지하되, 글자 수 cap을 size별 폭보다 보수적으로 잡아 CSS가 확장자를 다시 잘라내지 않게 한다.
|
|
82
82
|
|
|
83
83
|
### Loading 좌측 뱃지
|