@conscience-technology/ovenn 0.7.3 → 0.7.5

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.
Files changed (150) hide show
  1. package/assets/components/AIMessage/AIMessage.module.css +10 -0
  2. package/assets/components/AIMessage/AIMessage.tsx +6 -2
  3. package/assets/components/Breadcrumb/Breadcrumb.module.css +82 -23
  4. package/assets/components/Breadcrumb/Breadcrumb.tsx +44 -26
  5. package/assets/components/Breadcrumb/index.ts +1 -0
  6. package/assets/components/Button/Button.module.css +2 -4
  7. package/assets/components/Callout/Callout.module.css +44 -18
  8. package/assets/components/Callout/Callout.tsx +9 -4
  9. package/assets/components/Callout/index.ts +1 -1
  10. package/assets/components/Canvas/Canvas.module.css +13 -0
  11. package/assets/components/Canvas/Canvas.tsx +378 -94
  12. package/assets/components/Canvas/clipboard.ts +5 -1
  13. package/assets/components/Canvas/collision.ts +5 -1
  14. package/assets/components/Canvas/graph.ts +14 -5
  15. package/assets/components/Canvas/history.ts +11 -4
  16. package/assets/components/Canvas/index.ts +2 -1
  17. package/assets/components/Canvas/types.ts +36 -1
  18. package/assets/components/CanvasEdge/tokens.css +14 -1
  19. package/assets/components/CanvasNode/tokens.css +13 -10
  20. package/assets/components/ChatInput/ChatInput.tsx +1 -1
  21. package/assets/components/ColorField/ColorField.module.css +6 -1
  22. package/assets/components/ColorPicker/ColorPicker.module.css +3 -0
  23. package/assets/components/CommandPalette/CommandPalette.module.css +115 -1
  24. package/assets/components/CommandPalette/CommandPalette.tsx +206 -21
  25. package/assets/components/CommandPalette/index.ts +1 -0
  26. package/assets/components/DatePicker/DatePicker.module.css +3 -2
  27. package/assets/components/Drawer/Drawer.module.css +30 -0
  28. package/assets/components/Drawer/Drawer.tsx +75 -16
  29. package/assets/components/Drawer/index.ts +1 -0
  30. package/assets/components/Icon/Icon.tsx +3 -0
  31. package/assets/components/Input/Input.module.css +4 -4
  32. package/assets/components/Select/Select.module.css +6 -2
  33. package/assets/components/SocialLoginButton/SocialLoginButton.module.css +198 -0
  34. package/assets/components/SocialLoginButton/SocialLoginButton.tsx +86 -0
  35. package/assets/components/SocialLoginButton/assets/amazon.svg +1 -0
  36. package/assets/components/SocialLoginButton/assets/apple.svg +3 -0
  37. package/assets/components/SocialLoginButton/assets/discord.svg +3 -0
  38. package/assets/components/SocialLoginButton/assets/facebook-white.png +0 -0
  39. package/assets/components/SocialLoginButton/assets/facebook.png +0 -0
  40. package/assets/components/SocialLoginButton/assets/github.svg +3 -0
  41. package/assets/components/SocialLoginButton/assets/google-mark.png +0 -0
  42. package/assets/components/SocialLoginButton/assets/kakao.svg +3 -0
  43. package/assets/components/SocialLoginButton/assets/line-icon.png +0 -0
  44. package/assets/components/SocialLoginButton/assets/line-white.png +0 -0
  45. package/assets/components/SocialLoginButton/assets/linkedin-white.png +0 -0
  46. package/assets/components/SocialLoginButton/assets/linkedin.png +0 -0
  47. package/assets/components/SocialLoginButton/assets/microsoft.svg +6 -0
  48. package/assets/components/SocialLoginButton/assets/naver.png +0 -0
  49. package/assets/components/SocialLoginButton/assets/slack.svg +17 -0
  50. package/assets/components/SocialLoginButton/assets/spotify.svg +3 -0
  51. package/assets/components/SocialLoginButton/assets/twitch.svg +21 -0
  52. package/assets/components/SocialLoginButton/assets/wechat.png +0 -0
  53. package/assets/components/SocialLoginButton/assets/x.svg +3 -0
  54. package/assets/components/SocialLoginButton/index.ts +2 -0
  55. package/assets/components/SocialLoginButton/provider-tokens.css +30 -0
  56. package/assets/components/SocialLoginButton/providers.ts +23 -0
  57. package/assets/components/TimePicker/TimePicker.module.css +3 -2
  58. package/assets/components/_data.ts +1 -1
  59. package/assets/components/_utils.css +2 -2
  60. package/assets/components/component-registry.json +30 -1
  61. package/assets/components/index.ts +1 -0
  62. package/assets/components/tokens.css +14 -15
  63. package/assets/prompts/ASSEMBLY.md +2 -0
  64. package/assets/prompts/CATALOG.md +1 -0
  65. package/assets/prompts/PRINCIPLES.md +1 -1
  66. package/assets/prompts/RULES.md +31 -0
  67. package/assets/prompts/axes/material.md +4 -4
  68. package/assets/prompts/axes/palette.md +1 -1
  69. package/assets/prompts/axes/shape.md +2 -2
  70. package/assets/prompts/axes/voice.md +2 -2
  71. package/assets/prompts/components/_variants.md +3 -3
  72. package/assets/prompts/components/accordion.md +1 -1
  73. package/assets/prompts/components/ai-message.md +6 -2
  74. package/assets/prompts/components/app-frame.md +2 -2
  75. package/assets/prompts/components/avatar.md +2 -2
  76. package/assets/prompts/components/badge.md +1 -1
  77. package/assets/prompts/components/breadcrumb.md +11 -5
  78. package/assets/prompts/components/button.md +2 -2
  79. package/assets/prompts/components/calendar.md +1 -1
  80. package/assets/prompts/components/callout.md +8 -4
  81. package/assets/prompts/components/canvas-edge.md +1 -1
  82. package/assets/prompts/components/canvas-node.md +2 -2
  83. package/assets/prompts/components/canvas.md +24 -8
  84. package/assets/prompts/components/chart-radial.md +1 -1
  85. package/assets/prompts/components/chart.md +1 -1
  86. package/assets/prompts/components/chat-reactions.md +1 -1
  87. package/assets/prompts/components/checkbox-card.md +3 -3
  88. package/assets/prompts/components/checkbox.md +1 -1
  89. package/assets/prompts/components/chip.md +4 -4
  90. package/assets/prompts/components/code-block.md +1 -1
  91. package/assets/prompts/components/combobox.md +3 -3
  92. package/assets/prompts/components/command-palette.md +52 -44
  93. package/assets/prompts/components/comment.md +2 -2
  94. package/assets/prompts/components/control-group.md +1 -1
  95. package/assets/prompts/components/data-table.md +1 -1
  96. package/assets/prompts/components/disclosure.md +1 -1
  97. package/assets/prompts/components/drawer.md +15 -1
  98. package/assets/prompts/components/dropdown-menu.md +1 -1
  99. package/assets/prompts/components/event-chip.md +2 -2
  100. package/assets/prompts/components/file-icon.md +1 -1
  101. package/assets/prompts/components/file-upload.md +1 -1
  102. package/assets/prompts/components/icon-button.md +1 -1
  103. package/assets/prompts/components/input.md +3 -3
  104. package/assets/prompts/components/list-item.md +1 -1
  105. package/assets/prompts/components/menu-item.md +2 -2
  106. package/assets/prompts/components/metric-card.md +1 -1
  107. package/assets/prompts/components/mini-calendar.md +1 -1
  108. package/assets/prompts/components/page-header.md +1 -1
  109. package/assets/prompts/components/segmented-chart.md +1 -1
  110. package/assets/prompts/components/sidebar.md +3 -3
  111. package/assets/prompts/components/skeleton.md +3 -3
  112. package/assets/prompts/components/social-login-button.md +117 -0
  113. package/assets/prompts/components/tab-strip.md +1 -1
  114. package/assets/prompts/components/table-cell.md +1 -1
  115. package/assets/prompts/components/table-header.md +1 -1
  116. package/assets/prompts/components/table-row-edit.md +3 -3
  117. package/assets/prompts/components/table-row.md +1 -1
  118. package/assets/prompts/components/table-toolbar.md +1 -1
  119. package/assets/prompts/components/timeline-view.md +2 -2
  120. package/assets/prompts/components/toast.md +1 -1
  121. package/assets/prompts/components/tooltip.md +3 -3
  122. package/assets/prompts/components/tree-nav.md +2 -2
  123. package/assets/prompts/design-examples/ai-chat-full-page.png +0 -0
  124. package/assets/prompts/design-examples/catalog.json +9 -9
  125. package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.module.css +37 -1
  126. package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.tsx +113 -18
  127. package/assets/prompts/design-examples/sources/ai-chat-full-page/FullPageChat.tsx +2 -2
  128. package/assets/prompts/design-examples/sources/ai-chat-full-page/REFERENCE.md +3 -1
  129. package/assets/prompts/design-examples/sources/ai-chat-full-page/useChatDemo.ts +99 -51
  130. package/assets/prompts/primitives/scroll.md +1 -1
  131. package/assets/prompts/tokens/color.md +4 -5
  132. package/assets/prompts/tokens/material.md +5 -2
  133. package/assets/prompts/tokens/radius.md +1 -1
  134. package/assets/prompts/use-cases/chat-chat-input.md +382 -74
  135. package/assets/prompts/use-cases/data-list-item.md +38 -431
  136. package/assets/prompts/use-cases/feedback-drawer.md +112 -33
  137. package/assets/prompts/use-cases/overlay-command-palette.md +2004 -0
  138. package/assets/prompts/use-cases/structure-canvas.md +1016 -0
  139. package/assets/skills/ovenn-validate/SKILL.md +1 -1
  140. package/assets/skills/ovenn-validate/scripts/lib/component-usage.js +27 -5
  141. package/assets/skills/ovenn-validate/scripts/rules/hard-rules.mjs +174 -0
  142. package/assets/skills/ovenn-validate/scripts/rules/hard-rules.test.mjs +57 -0
  143. package/assets/skills/ovenn-validate/scripts/validate.mjs +2 -0
  144. package/package.json +1 -1
  145. package/src/commands/info.js +5 -4
  146. package/src/commands/update.js +5 -1
  147. package/src/utils/agents.js +28 -17
  148. package/src/utils/client-bridges.js +4 -2
  149. package/src/utils/component-usage.js +27 -5
  150. package/src/utils/patch.js +2 -1
@@ -187,11 +187,11 @@
187
187
 
188
188
  --radius-none: 0;
189
189
  /* Shape는 반경과 곡선 형태를 함께 결정한다. 미지원 브라우저는 radius로 표시한다. */
190
- --corner-shape: superellipse(1.6);
190
+ --corner-shape: superellipse(1.7);
191
191
  /* Cards keep squircle curvature; Shape still controls their radius sizes. */
192
192
  --card-corner-shape: squircle;
193
193
  --corner-shape-mini: superellipse(1.35);
194
- --radius-scale: 1.8;
194
+ --radius-scale: 1.75;
195
195
  --radius-mini-ratio: 0.4;
196
196
  --radius-xs: calc(7.2px * var(--radius-scale));
197
197
  --radius-sm: calc(9px * var(--radius-scale));
@@ -393,9 +393,7 @@
393
393
  --fg-muted: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.82);
394
394
  --fg-subtle: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.42);
395
395
  --fg-disabled: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.26);
396
- /* placeholder는 실제 텍스트 노드로 렌더되는 자리(Select·날짜/시간 필드)가 있어
397
- subtle보다 진한 알파로 AA 4.5:1을 지킨다. native input/textarea도 같은 색을 쓴다. */
398
- --fg-placeholder: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.68);
396
+ --placeholder-opacity: 0.85;
399
397
  /* border는 배경 대비 알파 기반 hairline — 겹치면 자연스럽게 짙어짐.
400
398
  라이트 모드: 어두운 잉크 톤(≈rgb(18,24,38))을 낮은 알파로 얹음. */
401
399
  --border: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.08);
@@ -570,6 +568,7 @@ html[data-input-method="mouse"] {
570
568
  :root {
571
569
  --surface-glass-opacity: 72%;
572
570
  --surface-glass-floating-opacity: 80%;
571
+ --surface-glass-field-opacity: 45%;
573
572
  --surface-glass-tint: 0%;
574
573
  --surface-glass-border-contrast: 5%;
575
574
  --surface-glass-command-border: var(--border);
@@ -582,7 +581,10 @@ html[data-input-method="mouse"] {
582
581
  --surface-glass-picker-bg: color-mix(in srgb, color-mix(in srgb, var(--fg) var(--surface-glass-tint), var(--bg)) 42%, transparent);
583
582
  --surface-glass-picker-blur: 10px;
584
583
  --surface-glass-picker-border: color-mix(in srgb, var(--fg) 5%, var(--bg));
585
- --surface-glass-menu-bg: color-mix(in srgb, var(--bg) 92%, transparent);
584
+ --surface-glass-menu-bg: color-mix(in srgb, var(--bg) var(--surface-glass-field-opacity), transparent);
585
+ --surface-glass-field-bg: color-mix(in srgb, var(--bg) var(--surface-glass-field-opacity), transparent);
586
+ --surface-glass-field-filled-bg: color-mix(in srgb, var(--bg-subtle) var(--surface-glass-field-opacity), transparent);
587
+ --surface-glass-field-active-bg: color-mix(in srgb, var(--bg-muted) var(--surface-glass-field-opacity), transparent);
586
588
  --surface-glass-toolbar-bg: color-mix(in srgb, color-mix(in srgb, var(--fg) var(--surface-glass-tint), var(--bg)) 58%, transparent);
587
589
  --surface-glass-toolbar-blur: 8px;
588
590
  --surface-glass-command-bg: color-mix(in srgb, color-mix(in srgb, var(--fg) var(--surface-glass-tint), var(--bg)) 70%, transparent);
@@ -856,11 +858,11 @@ body {
856
858
  0 28px 56px -16px oklch(var(--shadow-color) / 0.07);
857
859
  }
858
860
 
859
- /* standard — soft와 crisp의 산술 중간. 무난한 표준값. */
861
+ /* standard — soft보다 살짝 각진 기본값. */
860
862
  [data-shape="standard"] {
861
- --corner-shape: superellipse(1.6);
863
+ --corner-shape: superellipse(1.7);
862
864
  --corner-shape-mini: superellipse(1.35);
863
- --radius-scale: 1.8;
865
+ --radius-scale: 1.75;
864
866
  --radius-mini-ratio: 0.4;
865
867
  --radius-xs: calc(7.2px * var(--radius-scale));
866
868
  --radius-sm: calc(9px * var(--radius-scale));
@@ -954,7 +956,6 @@ body {
954
956
  --border-table: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.42);
955
957
  --fg-muted: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.92);
956
958
  --fg-subtle: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.66);
957
- --fg-placeholder: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.80);
958
959
  }
959
960
  :root[data-mode="dark"] {
960
961
  --border: oklch(0.95 var(--tone-chroma) var(--tone-hue) / 0.50);
@@ -962,7 +963,6 @@ body {
962
963
  --border-table: oklch(0.95 var(--tone-chroma) var(--tone-hue) / 0.50);
963
964
  --fg-muted: oklch(0.95 var(--tone-chroma) var(--tone-hue) / 0.80);
964
965
  --fg-subtle: oklch(0.95 var(--tone-chroma) var(--tone-hue) / 0.60);
965
- --fg-placeholder: oklch(0.95 var(--tone-chroma) var(--tone-hue) / 0.80);
966
966
  }
967
967
  }
968
968
 
@@ -980,7 +980,6 @@ body {
980
980
  --fg-strong: #0a0a0a;
981
981
  --fg-muted: #444444;
982
982
  --fg-subtle: #999999;
983
- --fg-placeholder: #5f5f5f;
984
983
  --fg-disabled: #c0c0c0;
985
984
  --border: rgba(0, 0, 0, 0.08);
986
985
  --border-strong: rgba(0, 0, 0, 0.14);
@@ -997,7 +996,6 @@ body {
997
996
  --fg-strong: #ffffff;
998
997
  --fg-muted: #b8b8b8;
999
998
  --fg-subtle: #7a7a7a;
1000
- --fg-placeholder: #a3a3a3;
1001
999
  --fg-disabled: #4a4a4a;
1002
1000
  --border: rgba(255, 255, 255, 0.18);
1003
1001
  --border-strong: rgba(255, 255, 255, 0.26);
@@ -1129,7 +1127,6 @@ body {
1129
1127
  중요한 보조 텍스트에는 --fg를 쓸 것. prefers-contrast: more에서 자동 상향됨. */
1130
1128
  --fg-muted: oklch(0.95 var(--tone-chroma) var(--tone-hue) / 0.72);
1131
1129
  --fg-subtle: oklch(0.95 var(--tone-chroma) var(--tone-hue) / 0.40);
1132
- --fg-placeholder: oklch(0.95 var(--tone-chroma) var(--tone-hue) / 0.66);
1133
1130
  --fg-disabled: oklch(0.95 var(--tone-chroma) var(--tone-hue) / 0.24);
1134
1131
  /* 다크 모드: fg 톤(밝은 잉크)을 낮은 알파로 얹음.
1135
1132
  어두운 bg(≈0.17) 위에서 흰 알파는 체감이 라이트보다 약해져 라이트(0.08/0.14)보다 상향. */
@@ -1182,7 +1179,6 @@ body {
1182
1179
  --fg: oklch(0.22 var(--tone-chroma) var(--tone-hue));
1183
1180
  --fg-muted: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.82);
1184
1181
  --fg-subtle: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.42);
1185
- --fg-placeholder: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.68);
1186
1182
  --fg-disabled: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.26);
1187
1183
  --border: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.08);
1188
1184
  --border-strong: oklch(0.18 var(--tone-chroma) var(--tone-hue) / 0.14);
@@ -1277,6 +1273,9 @@ body {
1277
1273
  --material-filter: var(--material-glass-enabled) blur(var(--surface-glass-blur));
1278
1274
  --material-scrim: var(--material-glass-enabled) var(--surface-glass-scrim);
1279
1275
  --material-selected-bg: var(--material-glass-enabled) var(--surface-glass-selected-bg);
1276
+ --material-field-bg: var(--material-glass-enabled) var(--surface-glass-field-bg);
1277
+ --material-field-filled-bg: var(--material-glass-enabled) var(--surface-glass-field-filled-bg);
1278
+ --material-field-active-bg: var(--material-glass-enabled) var(--surface-glass-field-active-bg);
1280
1279
  }
1281
1280
 
1282
1281
  @supports (backdrop-filter: blur(1px)) {
@@ -45,6 +45,8 @@ component와 components 배열에는 설치된 Ovenn 부품의 실제 export와
45
45
 
46
46
  `get_axis`, `get_token` 또는 설정·토큰 원본을 확인한다. 기존 토큰을 우선 사용하며 부족하면 프로젝트 공통 정의부에 추가한다. size를 지원하는 일반 컨트롤은 기본 **md**로 시작한다. 같은 작업 영역의 같은 역할은 크기를 통일하되 제목·본문의 위계, 터치·접근성에 필요한 차이는 유지한다. md API가 없는 부품에 임의 prop을 넣지 않는다.
47
47
 
48
+ 로그인 화면에서 일반 로그인과 소셜 로그인 버튼을 같은 영역에 놓을 때는 [[components/social-login-button]]의 크기 대응표에 따라 높이를 맞춘다. 같은 열에 쌓는 버튼은 너비도 맞춘다.
49
+
48
50
  ## 5. 규칙 검사: checks
49
51
 
50
52
  앱 셸이 있으면 실제 Sidebar/Topbar의 유무와 배치가 DESIGN.md의 결정·componentPlan과 일치하는지 확인한다. 탑바를 사용하는 경우 `AppFrame.Topbar`와 `AppFrame.Content`를 형제 슬롯으로 두고, 탑바·본문 바탕을 공통 `--app-frame-bg`로 연결한다. 모바일 CSS에서도 높이·overflow 계약과 필요한 탐색 경로를 유지한다. 검사는 AppFrame의 import 유무를 넘어 실제 슬롯 위치·스크롤 컨테이너·표면 매핑을 확인한다. 상세 계약은 [[components/app-frame]]을 따른다.
@@ -20,6 +20,7 @@ variant 이름이 헷갈리면 `prompts/components/_variants.md`.
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.
@@ -38,7 +38,7 @@
38
38
  4. 컴포넌트 API와 현재 구현의 제약. 제약은 조사하고 로컬 파생으로 해결할 수 있다.
39
39
  5. Brand Set·축·Theme·프리셋·기존 미감 기본값.
40
40
 
41
- 기존 문서의 `[HARD]`도 **실제 접근성·보안·행동 계약에 해당할 때만** 차단 규칙이다. 색 조합·폰트 개수·굵기·정렬·대문자·표면·HTML 태그 등 미감 제한은 선택 가능한 기본값이다. 오래된 하위 문서/skill/메모리가 변형 허용을 다시 금지하지 않는다.
41
+ [[RULES]]의 필수 규칙과 각 문서의 `[HARD]` bullet은 어떤 프로젝트에서도 차단 규칙이며 변형 대상이 아니다. 그 밖의 색 조합·폰트 개수·굵기·정렬·대문자·표면·HTML 태그 등 미감 제한은 선택 가능한 기본값이다. 오래된 하위 문서/skill/메모리가 그 변형 허용을 다시 금지하지 않는다.
42
42
 
43
43
  ### 4a. 안전 계약과 디자인 선택
44
44
 
@@ -0,0 +1,31 @@
1
+ # Ovenn 필수 규칙
2
+
3
+ 모든 UI 작업에 예외 없이 적용한다. 이 문서의 규칙과 다른 문서의 `[HARD]` bullet은 [[PRINCIPLES]] §4의 "선택 가능한 미감 기본값"에 포함되지 않는다. 사용자가 명시적으로 다른 지시를 한 범위에서만 바꾼다. 나머지 Do/Don't는 권장 기본값이며 프로젝트 안에서 변형할 수 있다.
4
+
5
+ ## 1. 접근성·동작 계약
6
+ - 키보드·포커스·라벨·역할·대비·disabled/loading/오류 의미·데이터와 선택 상태를 외형 때문에 손상하지 않는다.
7
+ - 상호작용 요소를 중첩하지 않는다. button 안 button, 링크·행·셀·카드·Tooltip 안에 다른 버튼·링크·입력을 넣지 않는다. Trigger는 `asChild`로 하나의 요소만 둔다.
8
+ - 아이콘만 있는 버튼·Avatar·아이콘 라벨은 `aria-label` 또는 텍스트 이름이 필수다.
9
+ - placeholder를 라벨 대신 쓰지 않는다. 값이 들어가면 힌트가 사라진다.
10
+ - hover에만 의존하는 정보·액션을 두지 않는다. 터치와 키보드에서도 같은 경로가 있어야 한다. 숨긴 액션은 `visibility`/`display`가 아니라 `opacity:0`+`pointer-events:none` 짝으로 숨기고 포커스 진입을 막지 않는다.
11
+ - native input·checkbox를 DOM에서 없애지 않는다. visually-hidden으로 감춘다. 커스텀 스크롤은 네이티브 `overflow:auto` 위에서만 만든다.
12
+ - 페이지 이동은 `<a>`(Link)이고 Button이 아니다. 표시 전용 요소(Badge·Skeleton·FileIcon)에 클릭·tabIndex를 붙이지 않는다.
13
+ - 색만으로 데이터를 설명하지 않는다. 수치·텍스트를 함께 둔다. 오류·빈 상태를 영구 로딩으로 가리지 않는다.
14
+
15
+ ## 2. 토큰과 하드코딩
16
+ - 색·크기·간격·폰트·그림자를 리터럴로 쓰지 않는다. 토큰이 없으면 프로젝트 토큰 정의부에 선언하고 쓴다. 차트 색도 `--chart-*` 토큰만 쓴다.
17
+ - 미선언 토큰·폰트 슬롯을 참조하지 않는다. 밝은 배경에 흰 글자처럼 semantic pair를 깨는 조합을 쓰지 않는다.
18
+ - 설치된 부품이 있는 역할을 native 요소로 다시 만들지 않는다. AppFrame 슬롯을 custom DOM으로 대체하거나 Content 안에 AppFrame을 중첩하지 않는다. 공유 Core의 variant 이름을 바꾸지 않는다.
19
+
20
+ ## 3. 사용자가 명시한 디자인 금지
21
+ - 라벨·제목·메타 앞의 장식용 점과 메타 사이 문자 구분자(`·` `•` `|` `/` `-`)를 쓰지 않는다. 실제 상태를 뜻하는 점만 허용한다.
22
+ - em dash(—)·en dash(–)·생략부호(…)·수사적 큰따옴표를 생성 문구에 쓰지 않는다. 사용자 원문은 보존한다.
23
+ - 흰색·연한 배경 위에 `filled` Input을 쓰지 않는다. `outline`을 쓴다. 사이드바 안 Input은 `line`도 쓰지 않는다.
24
+ - 탐색 항목에 액티브바를 붙이지 않는다. 선택은 표면·글자색·굵기로 표시한다. 둥근 행의 border·inset shadow에 붙어 휘는 바는 어떤 경우에도 금지다.
25
+ - 배경과 뚜렷한 테두리를 함께 쓰는 이중 장식을 만들지 않는다. 배경과 선의 색 차이가 아주 미세할 때만 함께 쓴다.
26
+ - 제목을 풀어 쓴 설명을 제목 밑에 반복하지 않는다. 관계없는 정보를 같은 카드에 담거나 카드 안에 카드를 반복하지 않는다. 그라데이션·글로우·유리·그림자가 서로 경쟁하게 두지 않는다.
27
+ - 동작하지 않는 검색·필터·버튼·알림·통계를 완성된 기능처럼 배치하지 않는다. 번역투 문장을 쓰지 않는다.
28
+
29
+ ## 4. 절차
30
+ - UI 코드를 쓰기 전에 [[PRINCIPLES]]를 읽고 [[ASSEMBLY]]의 순서(역할 → 레퍼런스 → 부품 → componentPlan → 조립 → 검사 → 시각)를 실행한다. 검수 기준은 [[WORKFLOW_DESIGN]]이다.
31
+ - 문서를 읽거나 파일을 복사한 것을 부품 사용으로 기록하지 않는다. 실행·캡처·독립 검수를 하지 않았으면 검수 대기로 남기고 완료라고 쓰지 않는다.
@@ -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 외곽과 Callout에 적용한다. Callout은 card/inline·fill/outline 모두 딤드 없는 공통 `--material-floating-bg/filter`를 따르며 tone 아이콘·크기·기존 그림자는 유지한다. 각 부품의 내부 구조·키보드·포커스·disabled 계약은 유지한다.
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는 전용92%/blur16px를 쓴다. 일반 floating 기본값을 그대로 덮어씌우지 않는다.
40
+ ColorPicker는 전용42%/blur10px·전경5% 중성 경계, ContextMenu·DropdownMenu·Select는 전용45%/blur16px를 쓴다. 일반 floating 기본값을 그대로 덮어씌우지 않는다.
@@ -37,7 +37,7 @@
37
37
  ### Don't
38
38
  - brand hex 하나를 컴포넌트별로 다르게 넣지 않는다. 프로젝트 전체가 한 brand.
39
39
  - 세트를 변경해도 primary 자체는 안 바뀜 — 혼동 금지.
40
- - `oklch(from var(--brand) ...)`는 사용하지 않는다 (Chromium·getComputedStyle 조합에서 invalid 평가되는 사례 — Lottie recolor 깨짐). 대신 `--brand-l/c/h` 분해값 참조.
40
+ - [HARD] `oklch(from var(--brand) ...)`는 사용하지 않는다 (Chromium·getComputedStyle 조합에서 invalid 평가되는 사례 — Lottie recolor 깨짐). 대신 `--brand-l/c/h` 분해값 참조.
41
41
 
42
42
  ### 축 간 상호작용
43
43
  - **mono + [[axes/icon]]**: `--icon-color`가 `--primary` 대신 `--fg-muted`로 override.
@@ -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.6, soft=1.4, crisp=2.4, pill=1.01이며 값은 CSS 토큰 정의를 따른다.
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와 crisp의 산술 중간. 무난한 표준.
28
+ - `standard` — soft보다 살짝 각진 기본 모서리.
29
29
  - `crisp` — 작은 radius, 짧고 예리한 그림자 + 아웃라인, 뚜렷한 border. 신뢰·전문.
30
30
 
31
31
  ### 기본값
@@ -21,10 +21,10 @@ Theme과 독립 — editorial이든 mechanical이든 어떤 Theme에도 어떤 V
21
21
 
22
22
  ### Don't
23
23
  - Voice를 색·간격·radius와 같은 기준으로 변경하지 않는다. 다른 축에 영향 없음.
24
- - 접근성 문구(에러 설명, 필수 필드 안내, 스크린리더 라벨)는 Voice와 무관하게 **명확성 우선**.
24
+ - [HARD] 접근성 문구(에러 설명, 필수 필드 안내, 스크린리더 라벨)는 Voice와 무관하게 **명확성 우선**.
25
25
  `casual`이어도 필수 정보를 희석하지 않는다 (예: "비밀번호는 필수입니다" 수준은 유지).
26
26
  - Voice에 CSS 변수나 토큰을 할당하지 않는다. 코드 레벨 영향은 `data-voice` 속성 노출뿐.
27
- - **[HARD] em dash(—), en dash(–), 생략부호(…), 수사적 큰따옴표 전면 금지.** ([[feedback_no_em_dash]])
27
+ - [HARD] **[HARD] em dash(—), en dash(–), 생략부호(…), 수사적 큰따옴표 전면 금지.** ([[feedback_no_em_dash]])
28
28
  모든 Voice 공통 하드 룰. 범위는 **제목·헤딩·버튼 라벨·메뉴명뿐 아니라 본문·테이블 셀·설명·툴팁·에러 메시지까지 모든 사람 UI 카피** 전부. 문서·UI 카피·AI 생성물 전부 해당.
29
29
  나쁜 예:
30
30
  - 제목: "온보딩 — 테마를 고릅니다", "설정 — 기본값", "저장 — 완료"
@@ -48,7 +48,7 @@
48
48
  - Chip은 "선택된 값(X로 제거 가능)" 전용. 카테고리·태그·메타 라벨은 **반드시 Badge** (관련: feedback 메모리 [Chip filter-only](../../memory/feedback_chip_filter_only.md)).
49
49
  - **안내 자리 3층 구분**: 성격에 따라 분리:
50
50
  - **흐름 속 각주 (1~2줄, 톤 없음)** = `Hint`
51
- - **액션 유도 있는 안내 블록 (사이드바·리스트 끝)** = `Callout fill` *(색 테두리+색 배경 금지: 메모리 [No outlined Callout](../../memory/feedback_no_outlined_callout.md))*
51
+ - **액션 유도 있는 안내 블록 (사이드바·리스트 끝)**는 `Callout fill`을 기본으로 쓴다. 아주 옅은 배경과 테두리를 함께 쓰려면 `outline-tint`를 쓴다.
52
52
  - **페이지 폭 상태 바 (공유 모드·만료·권한)** = [[recipes/page-banner]]
53
53
 
54
54
  ### 입력 컴포넌트: 매핑
@@ -76,11 +76,11 @@
76
76
 
77
77
  ### Don't
78
78
  - 신규 컴포넌트에 "역할 축"의 네이밍을 쓸 수 있으면 **primary/outline/ghost/destructive**를 그대로 재사용한다. "solid"는 표면 축, "primary"는 역할 축이라는 구분을 유지.
79
- - 기존 컴포넌트의 variant 이름을 바꾸지 않는다: 소비자 breaking.
79
+ - [HARD] 기존 컴포넌트의 variant 이름을 바꾸지 않는다: 소비자 breaking.
80
80
  - 매핑표에 없는 역할을 임의로 추가하지 않는다. 신규 역할이 필요하면 이 문서를 먼저 업데이트.
81
81
 
82
82
  ### 신규 컴포넌트 체크리스트
83
83
  1. 액션? → 역할 축 네이밍(`primary`/`outline`/`ghost`/`destructive`)
84
84
  2. 표시? → 표면 축 네이밍(`solid`/`soft`/`outline`/`line`/`fill`)
85
- 3. 입력? → `line` 기본 + `outline`/`filled` 선택
85
+ 3. 입력? → `outline` 기본 + `line`/`filled` 선택 (소스 기본값과 [[components/input]] 기준. `filled`는 연한 배경 위 금지, `line`은 밑줄 형태를 명시 요청한 경우)
86
86
  4. 레이아웃? → 자유. 다만 "variant"가 아니라 더 의미 있는 prop 이름(예: `position`, `tone`)을 먼저 검토
@@ -19,7 +19,7 @@
19
19
  - **길이가 들쭉날쭉한 본문 금지.** 어떤 섹션은 1줄, 어떤 섹션은 20줄이면 레이아웃이 요동친다. 긴 섹션은 아예 별도 페이지로.
20
20
  - **Accordion과 Tabs 혼용 금지.** 둘 다 "숨기기 + 보이기"이지만: **Accordion은 세로 리스트, Tabs는 가로 전환**. 섹션 수가 3개 이하 + 서로 배타적이면 Tabs가 맞음. 섹션 수가 많거나 동시 열람 가능하면 Accordion.
21
21
  - **애니메이션 커스터마이즈 금지.** Radix의 `--radix-accordion-content-height` 변수에 맞춰 Ovenn 모션 토큰(`--duration-base` + `--ease-out`)으로 이미 처리. duration·ease 하드코딩은 [[feedback_no_hardcoded_values]] 위반.
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.
@@ -5,10 +5,13 @@ AI가 보낸 응답 메시지. **왼쪽 정렬**, bubble 없이 본문 그대로
5
5
 
6
6
  ### Do
7
7
  - `label`로 메타 제목(예: LongText, Code Block)을 짧게 노출. 생략 가능.
8
- - `children`에 markdown HTML을 직접 넣거나, 콘텐츠 블록 컴포넌트(CodeBlock·Quote·Sources·Table)를 조합.
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} // chip 클릭 (popover 열기 등)
39
+ onSourcesClick={(event) => void} // 이벤트의 currentTarget은 출처 버튼
36
40
  isStreaming={boolean} // 누적 본문 수신 중, 액션/sources 숨김
37
41
  isGenerating={boolean} // true면 액션/sources 숨김
38
42
  >
@@ -53,9 +53,9 @@ AppFrame은 자기 root에 **`height: 100dvh`**를 깐다. 즉 **"뷰포트 전
53
53
  - `layout`은 서비스 성격 기준: sidebar-first(Linear·Slack·Figma 패턴) / topbar-first(Jira·Vercel 패턴).
54
54
 
55
55
  ### Don't
56
- - Content 안쪽에서 다시 AppFrame을 중첩하지 않는다: grid 규칙 깨짐.
56
+ - [HARD] Content 안쪽에서 다시 AppFrame을 중첩하지 않는다: grid 규칙 깨짐.
57
57
  - Sidebar·Topbar 안에서 flex/grid를 override로 조립하지 않는다. 각자 자신의 레이아웃 컴포넌트([[components/sidebar]], [[components/topbar]])에 위임.
58
- - 슬롯을 custom DOM으로 대체하지 않는다: `data-has-*` 감지가 깨짐. 반드시 `AppFrame.X` 사용.
58
+ - [HARD] 슬롯을 custom DOM으로 대체하지 않는다: `data-has-*` 감지가 깨짐. 반드시 `AppFrame.X` 사용.
59
59
  - padding/gap을 override 금지. `--control-h-*`, `--sidebar-w*`, `--topbar-h*` 토큰이 전담.
60
60
 
61
61
  ### Fallback
@@ -12,8 +12,8 @@
12
12
 
13
13
  ### Don't
14
14
  - hex·custom 색으로 tint 덮지 않는다. 10색 팔레트가 자동.
15
- - status에 커스텀 값 금지 (busy/away 아직 미지원).
16
- - aria-label 생략 금지 (`alt` 또는 `name` 중 하나는 필수).
15
+ - [HARD] status에 커스텀 값 금지 (busy/away 아직 미지원).
16
+ - [HARD] aria-label 생략 금지 (`alt` 또는 `name` 중 하나는 필수).
17
17
  - Avatar 안에 그라데이션·이모지·텍스트 2글자 넘김 금지: 식별 신호 혼탁.
18
18
  - 크기를 CSS로 override 금지. `size` prop만.
19
19
 
@@ -15,7 +15,7 @@
15
15
 
16
16
  ### Don't
17
17
  - 분류명·텍스트 상태를 Badge에 넣지 않는다. 예: `Design`, `Completed`, `API`는 Tag.
18
- - 클릭·선택·제거 동작을 붙이지 않는다. Chip/Button을 조립한다.
18
+ - [HARD] 클릭·선택·제거 동작을 붙이지 않는다. Chip/Button을 조립한다.
19
19
  - 수량을 Tag로 대체하지 않는다.
20
20
 
21
21
  ### Fallback
@@ -4,7 +4,8 @@
4
4
  현재 페이지가 계층 구조의 어디에 있는지 보여주고, **상위로 한 번에** 돌아가게 해주는 nav 컨트롤. 시각 무게는 최소: [[components/button]] `size=xs · variant=ghost`와 같은 톤. 페이지 헤더 위 얇은 한 줄로만 존재하고, 자기 자신을 스캔 대상으로 만들지 않는다.
5
5
 
6
6
  ### Do
7
- - 경로 라벨은 `--label-sm-line-height`를 사용해 가로 말줄임 안에서도 글자 하단을 보존한다.
7
+ - `size="md"`(기본)는 기존 높이·타이포·간격을 유지한다. `"lg"`는 `--control-h-sm`, `--label-md-size`, `--size-4` 아이콘과 `--space-1_5` 간격으로 한 단계 넉넉하게 표시한다. 메뉴 화살표는 md에서 `caret-down` 12px, lg에서 `caret-up-down` 14px 기준으로 다른 아이콘보다 작은 시각 무게를 유지한다. 크기는 루트에서 정하고 모든 segment가 상속한다.
8
+ - 경로 라벨은 크기에 맞는 `--label-sm-line-height` / `--label-md-line-height`를 사용해 가로 말줄임 안에서도 글자 하단을 보존한다.
8
9
  - 링크·현재 항목·메뉴 트리거의 텍스트 굵기는 regular(`--font-weight-regular`)를 사용한다. 현재 위치는 굵기 대신 텍스트 색으로 구분한다.
9
10
  - **깊이 3 이상**일 때만 쓴다: 2단계면 상위 링크 하나로 충분하고, 브래드크럼은 노이즈가 된다.
10
11
  - **마지막 항목은 `Breadcrumb.Current`**: 링크가 아닌 텍스트. `--fg-strong`로 자연스럽게 위계를 준다.
@@ -13,13 +14,15 @@
13
14
  - **URL 계층이 그대로 라벨**: 사이트맵의 실제 위치를 그대로 반영. 계층에 없는 임의 카테고리를 만들어 붙이지 않는다.
14
15
  - **모바일에서는 축약**: 첫 항목 + `Breadcrumb.Ellipsis` + 마지막 두 항목. 6개 이상이면 축약이 필수.
15
16
  - **Next.js `<Link>` 등 라우터**는 `<Breadcrumb.Link asChild>`로 감싼다. 스타일 유지한 채 SPA 네비게이션 위임.
16
- - **형제 전환이 필요한 segment**는 `Breadcrumb.Menu`로. ▾ caret이 붙은 트리거를 눌러 같은 레벨의 다른 페이지(프로젝트·워크스페이스·브랜치 등)로 바로 이동. 현재 페이지 자리에 쓸 때는 `active` 필수: `aria-current="page"`와 `--fg-strong` 톤을 자동으로 맞춘다.
17
+ - **형제 전환이 필요한 segment**는 `Breadcrumb.Menu`로. 크기에 맞는 메뉴 화살표가 붙은 트리거를 눌러 같은 레벨의 다른 페이지(프로젝트·워크스페이스·브랜치 등)로 바로 이동. 현재 페이지 자리에 쓸 때는 `active` 필수: `aria-current="page"`와 `--fg-strong` 톤을 자동으로 맞춘다.
18
+ - **팝오버 목록 크기**: `size`는 경로 항목과 트리거에만 적용한다. Portal 안 메뉴 목록은 기존 `MenuItem size="sm"`을 유지한다.
19
+ - **메뉴 화살표 표시**: `Menu.caretVisibility="always"`(기본)는 항상 표시. `"hover"`는 호버·키보드 포커스·열림 상태에서 폭과 간격을 펼쳐 표시한다. 터치 기기에서는 항상 표시하며 reduced-motion에서는 즉시 전환한다.
17
20
  - **접근성**: 루트가 자동으로 `<nav aria-label="Breadcrumb">` + `<ol>`, 마지막 항목에 `aria-current="page"`를 붙인다. separator는 `aria-hidden`.
18
21
 
19
22
  ### Don't
20
23
  - **탭 전환용으로 쓰지 않는다**: 그건 [[components/tabs]]. Breadcrumb은 URL 자체가 바뀌는 계층 이동 전용.
21
24
  - **마지막 항목을 링크로 만들지 않는다**: 자기 페이지를 다시 링크하면 새로고침 트리거가 되고 사용자를 헷갈리게 한다.
22
- - **`Button size=xs`가 아닌 다른 사이즈**로 커스텀하지 않는다: 페이지 헤더 위 최소 무게가 유일한 존재 이유.
25
+ - 크기는 루트의 `size="md" | "lg"`로 맞춘다. 같은 경로 안에서 항목별 크기를 섞지 않는다.
23
26
  - **활성 색을 `--primary`로 덮지 않는다**: 활성은 `--fg-strong`(무채). 브랜드 컬러를 여기 쓰면 CTA와 위계가 충돌.
24
27
  - **아이콘 남발 금지**: 첫 항목 외에 아이콘 붙이면 라벨 스캔이 무너진다.
25
28
  - **draggable/sortable 만들지 않는다**: 계층은 URL이 정한다. UI에서 조작할 대상이 아님.
@@ -34,18 +37,20 @@
34
37
  - [[components/button]]: Link 시각을 그대로 상속 (`size=xs · variant=ghost`)
35
38
  - [[components/tabs]]: 페이지 안 콘텐츠 전환은 Breadcrumb이 아니라 Tabs
36
39
  - [[components/sidebar]]: 계층의 "전체 뷰"는 Sidebar, "현재 위치 트레일"은 Breadcrumb
37
- - [[axes/density]]: `--control-h-xs`가 Link 높이에 매핑
40
+ - [[axes/density]]: `md`는 `--control-h-xs`, `lg`는 `--control-h-sm`가 Link 높이에 매핑
38
41
  - [[axes/shape]]: `--radius-xs`가 Link hover 표면 radius에 매핑
39
42
  - [[tokens/color]]: `--fg-muted`(Link) → `--fg-strong`(Current) 대비, `--hover`(hover 표면)
40
43
 
41
44
  ### Props 시그니처
42
45
  ```tsx
43
46
  <Breadcrumb
47
+ size="md" // "md" | "lg", default: md
44
48
  aria-label="Breadcrumb" // default: "Breadcrumb"
45
49
  separator={<Icon name="caret-right" />} // default: caret-right icon
46
50
  >
47
51
  <Breadcrumb.Link href="/" leftIcon={<Icon name="house" />}>Home</Breadcrumb.Link>
48
52
  <Breadcrumb.Menu
53
+ caretVisibility="always" // "hover"로 바꾸면 호버·포커스 시 펼침
49
54
  items={[
50
55
  { label: "Alpha", href: "/p/alpha", active: true },
51
56
  { label: "Beta", href: "/p/beta" },
@@ -61,10 +66,11 @@
61
66
  ### Variant 매트릭스
62
67
  | variant | 용도 | 금지 조합 |
63
68
  |---|---|---|
69
+ | root `size` | `md`는 기존 24px 높이, `lg`는 32px 높이와 큰 아이콘·간격. Density/Font 축에 따라 토큰 스케일 적용. | 항목별 크기 혼용 금지. |
64
70
  | `Breadcrumb.Link` | 상위 계층 링크. Button xs · ghost 톤. hover 시 `--hover` 표면. | 마지막 항목엔 쓰지 않음. |
65
71
  | `Breadcrumb.Current` | 현재 페이지. `--fg-strong` 텍스트, hover 반응 없음. | `href`·`onClick` 붙이지 않음. |
66
72
  | `Breadcrumb.Ellipsis` | 축약 트리거. 항상 클릭 가능. [[components/select]]와 동일한 팝오버 표면으로 숨긴 항목 리스트를 연다. | `items`에 5개 이상 넣지 않는다: 그러면 축약이 아니라 실질적 서브메뉴가 됨. 정적(클릭 불가) 마커는 지원하지 않는다. |
67
- | `Breadcrumb.Menu` | 형제 전환 트리거. ▾ caret이 붙은 segment를 눌러 같은 레벨 페이지로 이동. `active=true`로 현재 페이지 자리에도 쓸 수 있다 (aria-current + fg-strong 자동). | 아이콘 단독 모드 지원 안 함: 트리거 라벨 필수. 탭 전환용으로 쓰지 않는다. |
73
+ | `Breadcrumb.Menu` | 형제 전환 트리거. 크기에 맞는 메뉴 화살표가 붙은 segment를 눌러 같은 레벨 페이지로 이동. `active=true`로 현재 페이지 자리에도 쓸 수 있다 (aria-current + fg-strong 자동). | 아이콘 단독 모드 지원 안 함: 트리거 라벨 필수. 탭 전환용으로 쓰지 않는다. |
68
74
 
69
75
  ### 조합 예시
70
76
  ```tsx
@@ -4,7 +4,7 @@
4
4
  텍스트 액션의 최소 단위. 클릭 시 무언가 **일어나는** 컨트롤: 페이지 이동은 [[components/link]]. size는 [[axes/density]] 축과 연동되고, variant는 semantic 역할(강조 위계)만 담당한다.
5
5
 
6
6
  ### Do
7
- - `outline`의 얇은 경계는 공통 컨트롤 박스 바깥으로 hairline만큼 그려 filled와 시각적 높이를 맞춘다. 모든 size·아이콘 유무에서 layout 높이는 동일하며 화면에서 outline 높이를 따로 늘리지 않는다. 일반 disabled는 채움 상태로 전환해 경계를 숨기고 loading outline은 유지한다.
7
+ - `outline`의 얇은 경계는 공통 컨트롤 박스 안쪽에 그린다. 같은 size에서는 채움형과 높이가 같고, 콘텐츠와 아이콘 구성이 같으면 너비도 같다. 일반 disabled는 채움 상태로 전환해 경계를 숨기고 loading outline은 유지한다.
8
8
  - `loading`은 접근 가능한 이름을 유지하고 `aria-busy`를 전달한다. 기본 Spinner는 Motion 축을 따르며 모션 축소에서도 정적인 로딩 표시를 유지한다. `asChild`의 disabled/loading도 클릭·키보드 활성화를 차단하고 탭 순서에서 제외한다.
9
9
  - **중요=`primary`, 서브=`outline`**이 기본 쌍이다. 모달 하단, 폼 하단, 페이지 액션 영역 등 "확정 + 취소/이전" 구조의 기본값. `secondary`는 primary tint가 섞인 색조 액션이 필요한 특별 맥락에서만: 중립 서브 액션엔 `outline`이 먼저다.
10
10
  - **버튼 사이 gap은 언제나 `space-1`(4px) 고정.** footer action 쌍, 툴바 액션 묶음, 폼 하단 등 어느 자리든 동일. `space-2` 이상 금지: 두 버튼이 하나의 액션 묶음으로 묶여 읽히는 밀도를 유지.
@@ -20,7 +20,7 @@
20
20
  - 같은 작업 문맥에서 경쟁하는 primary를 불필요하게 늘리지 않는다.
21
21
  - 버튼 사이 gap에 `space-2`(8px) 이상 금지: 반드시 `space-1`(4px).
22
22
  - height를 CSS로 덮어쓰지 않는다. `size` prop 경유.
23
- - 페이지 이동에 Button 쓰지 않는다: 시맨틱은 `<a>`.
23
+ - [HARD] 페이지 이동에 Button 쓰지 않는다: 시맨틱은 `<a>`.
24
24
  - disabled 색을 variant별로 다르게 덮어쓰지 않는다. **모든 variant는 disabled 시 회색 배경(`--bg-muted`) + 실버 텍스트(`--fg-disabled`) + 투명 보더로 통일**: "지금은 못 누른다"가 variant 위계보다 우선 읽혀야 한다.
25
25
 
26
26
  ### 인터랙션
@@ -33,7 +33,7 @@
33
33
 
34
34
  ### Don't
35
35
  - Popover로 감싸지 않는다: 이건 DatePicker 자리. Calendar는 페이지 레이아웃의 블록 영역을 차지한다.
36
- - 셀 안에 "클릭 가능한 이벤트 pill"을 만들지 않는다: 셀 전체가 하나의 클릭 타겟이고, 상세는 사이드 패널·Drawer에서 연다. pill 안에 또 버튼이 들어가면 클릭 영역이 미궁에 빠진다.
36
+ - [HARD] 셀 안에 "클릭 가능한 이벤트 pill"을 만들지 않는다: 셀 전체가 하나의 클릭 타겟이고, 상세는 사이드 패널·Drawer에서 연다. pill 안에 또 버튼이 들어가면 클릭 영역이 미궁에 빠진다.
37
37
  - 요일 헤더에 "월요일/화요일" 두 글자 표기 금지: "월·화" 한 글자. 두 글자는 가로 공간을 먹고 셀 수가 줄어든 느낌을 준다.
38
38
  - 하루 셀에 라벨 일정은 최대 3개만 표시한다. 실제 공간에 맞춰 더 적게 표시할 수 있으며 넘치면 작은 수량 텍스트로 접는다.
39
39
  - `showWeekend=false`일 때 토·일 셀 자리를 유지하지 않는다: 숨길 거면 열 자체를 5열로 접는다.
@@ -5,13 +5,16 @@
5
5
 
6
6
  ### Do
7
7
  - 기본 `layout="card"`는 기존 카드, `layout="inline"`은 아이콘·메시지·액션·닫기 순서의 낮은 가로 안내다.
8
+ - 기본 `size="md"`는 표준 여백을 쓰고, `size="sm"`은 카드와 인라인의 패딩과 간격을 줄인다.
9
+ - 인라인 안내가 여러 줄로 감기면 아이콘은 첫 줄에 맞추고, 제목과 설명은 동일한 행간으로 표시한다.
8
10
  - inline은 짧으면 한 줄, 긴 문장이나 좁은 폭에서는 줄바꿈한다. ellipsis로 내용을 숨기지 않는다. `title` 또는 `children`만으로도 쓸 수 있다. children만 있는 inline의 주 메시지는 `fg`를 쓰며 제목과 함께 있는 보조 설명은 `fg-muted`로 유지한다.
9
11
  - inline 액션은 `actionsPlacement`와 관계없이 오른쪽에 놓이며 공간이 부족하면 다음 행으로 흐른다. 자동 종료·고정 위치·강제 alert 역할은 추가하지 않는다.
10
- - 기본 표면은 `fill`의 tone tint 배경과 투명 border다. `outline`은 투명 배경·경계와 은은한 `shadow-sm` 그림자다.
11
- - `data-material="glass"`에서는 두 레이아웃·variant 모두 공통 글래스 표면(`--material-floating-bg/filter`, `--material-border`)을 따른다. 아이콘 tone·크기·outline 그림자는 유지하며 Solid·투명도 감소·미지원에서는 기존 표면으로 돌아간다. 로컬 `data-material="solid"`로 해제할 수 있다.
12
+ - 기본 표면은 `fill`의 tone tint 배경과 투명 border다. `outline`은 투명 배경·경계와 은은한 `shadow-sm` 그림자다. `outline-tint`는 같은 경계에 `fill`의 절반 농도 배경을 쓴다.
13
+ - Callout 표면은 Material 축과 무관하게 variant와 tone을 따른다.
12
14
  - 강조 색은 `tone` 으로 제어한다.
13
15
  - 닫기 IconButton의 버튼 영역은 모든 레이아웃에서 `sm`을 쓰며, X 아이콘은 `icon-size-sm`이다. 앞쪽 안내 아이콘과는 별도로 제어한다. inline의 액션·닫기는 기존 세로 패딩 안에 배치해 한 줄 높이를 유지한다. 긴 본문이나 액션이 여러 행으로 감기는 경우에는 필요한 만큼 늘어난다.
14
16
  - `dismissible=true`면 `onDismiss`와 함께 부모가 숨김 상태를 저장한다.
17
+ - 닫기 X는 `fg-muted`와 `fg-subtle` 사이의 옅은 중립색을 쓴다.
15
18
  - `actions`는 [[components/button]] slot이다: variant는 자유, size는 `xs`(기본) 또는 `sm`만.
16
19
  - 액션 Button의 색은 `tone`을 따라간다: solid/soft 버튼이면 같은 tone(warning엔 warning 버튼, destructive엔 destructive 버튼), 아니면 `ghost`/`outline` 중립. tone과 다른 색 solid 버튼으로 신호를 깨지 않는다.
17
20
  - 좁은 컨테이너에선 `actionsPlacement="bottom"` 유지, `right`는 본문이 짧고 카드가 가로로 넓을 때만.
@@ -38,7 +41,8 @@
38
41
  ```tsx
39
42
  <Callout
40
43
  layout="card | inline" // default: card
41
- variant="fill | outline" // default: fill
44
+ size="sm | md" // default: md
45
+ variant="fill | outline | outline-tint" // default: fill
42
46
  title={ReactNode} // optional (compound 쓰면 생략 가능)
43
47
  icon={IconName | ReactNode} // 문자열은 Icon 자동 wrap, Avatar·Badge 등도 수용
44
48
  tone="neutral | brand | success | warning | destructive" // default: brand
@@ -59,7 +63,7 @@
59
63
  > `layout`과 `variant`는 독립적이다. 기존 호출은 `card`로 유지되며 `outline`도 기존처럼 지원한다.
60
64
 
61
65
  ### Variant 매트릭스
62
- `fill`은 tone별 tint 표면, `outline`은 투명 배경과 tone별 경계다. 두 레이아웃에서 같은 표면 API를 사용한다.
66
+ `fill`은 tone별 tint 표면, `outline`은 투명 배경과 tone별 경계다. `outline-tint`는 tone별 경계에 아주 옅은 배경을 함께 표시한다. 세 variant를 두 레이아웃에서 사용할 수 있다.
63
67
 
64
68
  | tone | fill (기본 variant) | 용도 |
65
69
  |---|---|---|
@@ -10,7 +10,7 @@
10
10
  - `obstaclePadding?: number`: 노드와의 기본 여유, 기본12좌표px/0~80. 라운드 안전 여유를 더한다. 포트 방향으로 기본 offset24의 출발/도착 공간을 확보한다. 좁은 공간에서는 여유와 stem 길이를 단계적으로 줄이되, 대체 경로도 같은 라운드 처리를 거쳐 충돌하는 개별 코너의 반경만 줄인다. 전체 대체 경로를 일괄 sharp로 바꾸지 않는다. 경로 계산은 포트가 가려지거나 길을 찾지 못하면 관통 fallback 없이 빈 경로를 반환한다. 렌더러는 이미 확정된 선의 마지막 정상 경로를 유지하고, 다시 계산 가능해지면 새 경로로 갱신한다. 미리보기·정상 경로가 없던 선·비유한 입력에는 이전 경로를 표시하지 않는다. 방향/variant/arrow 변경은 캐시를 비운다.
11
11
  - `lineStyle?: 'solid' | 'dashed'`: 기본 solid.
12
12
  - `status?: 'idle' | 'running' | 'success' | 'error'`: 기본 idle. 실행은 primary 흐름, 완료·오류는 상태색을 사용한다.
13
- - `selected?: boolean`, `disabled?: boolean`: 기본은 border-strong에 fg5%를 섞은 경계색이다. 선택은 fg의 진한 중립색으로만 강조하며 기본·선택·포커스 모두1.5px를 유지한다. 다크에서는 밝은 중립색으로 대응한다. 실행·오류 의미를 덮지 않는다.
13
+ - `selected?: boolean`, `disabled?: boolean`: 기본 연결선은 캔버스 배경색과 `--fg`를 섞은 옅은 불투명 색을 사용한다. 독립형 연결선은 `--bg`를 사용한다. 선이 겹쳐도 톤이 누적되지 않는다. 선택은 `--fg`로 강조하며 기본·선택·포커스 모두 1.5px를 유지한다. 실행·오류 상태의 색은 별도로 적용한다.
14
14
  - `preview?: boolean`: 연결 중인 비인터랙티브 미리보기. 실선 기본값은 임시 점선으로 표시하고 실행 모션은 사용하지 않는다.
15
15
  - `arrow?: boolean`: 기본 false. 작은 열린 화살표로 방향을 표시하며, 12px 핸들과 겹치지 않도록 선과 화살표 끝을 target 중심에서9px 앞에 둔다. 클릭 영역은 원래 target까지 유지한다.
16
16
  - `statusLabel?: string`: 현지화된 상태 설명. 기본값은 상태별 영어 이름이며 aria-describedby로 연결한다.
@@ -25,7 +25,7 @@
25
25
  - 나머지 HTMLDivElement 속성과 ref는 바깥 wrapper에 전달한다.
26
26
 
27
27
  ### 조합
28
- 내부 패딩은 상하12px/좌우16px, 미디어 없는 카드는 좌우20px이다. 카드176px폭에 제목·설명2줄을 수용하는 공통 최소높이, 타일·원형64px이며 제목·설명 gap1px을 사용한다. 핸들은 지름12px, 노드 경계의 중심에 걸치며 fg14% 테두리를 사용한다. 라이트 채움은 fixed-white, 다크는 표면을 상속한다. 선택 시 핸들을 상시 표시하고2% 호버 오버레이를 유지한다. 연결된 핸들은 상시 표시한다. 호버로 나타나는 핸들은 경계 중심을 유지하며45% 크기에서200ms scale/fade로 살짝 커졌다가 안착한다. 선택·연결 핸들은 최종 크기로 유지하고 모션 축소 시 전환을 생략한다. Card·Button·Badge를 재사용하고 연결·팬·줌·드래그는 호스트가 담당한다.
28
+ 내부 패딩은 상하12px/좌우16px, 미디어 없는 카드는 좌우20px이다. 카드 폭은 176px이다. 카드의 기본 본체 높이는 타일·원형과 같은 64px이며, 설명이나 상태 문구에 공간이 더 필요하면 카드 높이가 늘어난다. 제목과 설명 사이 간격은 1px이다. 핸들은 지름12px, 노드 경계의 중심에 걸치며 fg14% 테두리를 사용한다. 라이트 채움은 fixed-white, 다크는 표면을 상속한다. 선택 시 핸들을 상시 표시하고2% 호버 오버레이를 유지한다. 연결된 핸들은 상시 표시한다. 호버로 나타나는 핸들은 경계 중심을 유지하며45% 크기에서200ms scale/fade로 살짝 커졌다가 안착한다. 선택·연결 핸들은 최종 크기로 유지하고 모션 축소 시 전환을 생략한다. Card·Button·Badge를 재사용하고 연결·팬·줌·드래그는 호스트가 담당한다.
29
29
 
30
30
  표면 그림자는 접지·ambient·원거리 세 층으로 적용해 노드의 높이를 드러낸다. 전용 `--node-shadow` 토큰을 사용하고 다크에서는 검정 알파를 보강하며 표면에 fg4%를 섞고 상단 안쪽1px에 낮은 농도의 빛 반사를 더한다. 라이트는 기본 표면색을 유지한다. 경계·선택·상태색을 덮는 glow나 외곽ring은 추가하지 않는다.
31
31
 
@@ -51,7 +51,7 @@
51
51
  ### Don't
52
52
  - Agent·Tool 등 제품별 종류를 공용 shape로 추가하지 않는다.
53
53
  - 표시 전용 포트를 동작하는 연결 컨트롤로 설명하지 않는다.
54
- - media/icon 안에 버튼·링크·입력을 넣지 않는다. 별도 하단 본문이나 children 슬롯은 지원하지 않는다.
54
+ - [HARD] media/icon 안에 버튼·링크·입력을 넣지 않는다. 별도 하단 본문이나 children 슬롯은 지원하지 않는다.
55
55
 
56
56
  ### Fallback
57
57
  형태가 애매하면 기본 `card`. 실행 상태를 모르면 기본 `idle`(상태 텍스트 없음)로 둔다. 포트는 기본 좌우를 유지하고, 연결이 확정된 방향만 `connectedPorts`로 표시한다. 제품별 종류 구분이 필요해 보이면 shape를 늘리지 말고 `media`·`description`으로 구분한다.