@nurihaus/web-design-system 3.14.1 → 3.16.0

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 (58) hide show
  1. package/dist/ai/components.md +84 -6
  2. package/dist/ai/migration.md +6 -0
  3. package/dist/ai/motion.md +118 -86
  4. package/dist/ai/patterns.md +25 -28
  5. package/dist/ai/tokens.md +36 -0
  6. package/dist/bottom-cta.js +38 -88
  7. package/dist/bottom-sheet.js +4 -4
  8. package/dist/chunk-3084.js +69 -0
  9. package/dist/chunk-5670.js +9 -2
  10. package/dist/chunk-7232.js +6 -0
  11. package/dist/chunk-7687.js +2 -2
  12. package/dist/chunk-8982.js +20 -0
  13. package/dist/components/asset/asset.d.ts +3 -3
  14. package/dist/components/asset/asset.stories.d.ts +3 -3
  15. package/dist/components/bottom-bar/bottom-bar.stories.d.ts +5 -5
  16. package/dist/components/elements/text/text-props.d.ts +2 -2
  17. package/dist/components/elements/text/text.stories.d.ts +1 -1
  18. package/dist/components/empty-state/empty-state.stories.d.ts +10 -10
  19. package/dist/components/icon/icon.stories.d.ts +1 -1
  20. package/dist/components/list/list-footer.stories.d.ts +8 -8
  21. package/dist/components/list/list-header.stories.d.ts +5 -5
  22. package/dist/components/list/list-row.stories.d.ts +9 -9
  23. package/dist/components/message/message.stories.d.ts +8 -8
  24. package/dist/components/notice/notice.stories.d.ts +6 -6
  25. package/dist/components/overlay/overlay.stories.d.ts +1 -1
  26. package/dist/components/result-screen/base-result-screen.d.ts +4 -0
  27. package/dist/components/result-screen/result-screen-props.d.ts +15 -0
  28. package/dist/components/result-screen/result-screen-type.d.ts +28 -0
  29. package/dist/components/result-screen/result-screen.d.ts +14 -0
  30. package/dist/components/result-screen/result-screen.stories.d.ts +57 -0
  31. package/dist/components/section-header/section-header.stories.d.ts +5 -5
  32. package/dist/components/skeleton/skeleton-group-type.d.ts +3 -0
  33. package/dist/components/skeleton/skeleton-group.stories.d.ts +1 -1
  34. package/dist/components/skeleton/skeleton-props.d.ts +7 -0
  35. package/dist/components/skeleton/skeleton-type.d.ts +3 -1
  36. package/dist/components/skeleton/skeleton.stories.d.ts +15 -6
  37. package/dist/components/toast/toast.stories.d.ts +5 -5
  38. package/dist/components/top/top.stories.d.ts +4 -4
  39. package/dist/components.css +291 -4
  40. package/dist/cta-button.js +5 -5
  41. package/dist/docs/patterns/mobile/result.stories.d.ts +1 -1
  42. package/dist/full-secure-keypad.js +5 -5
  43. package/dist/index.d.ts +2 -0
  44. package/dist/index.js +377 -66
  45. package/dist/modal-with-double-button.js +5 -5
  46. package/dist/notice.js +5 -5
  47. package/dist/overlay.js +12 -12
  48. package/dist/result-screen.js +572 -0
  49. package/dist/skeleton-group.js +13 -6
  50. package/dist/skeleton.js +2 -2
  51. package/dist/styles.css +274 -4
  52. package/dist/toast.js +5 -5
  53. package/dist/tokens/generated/colors.d.ts +6 -0
  54. package/dist/tokens/generated/motion.d.ts +20 -0
  55. package/dist/tokens/generated/primitive.d.ts +15 -0
  56. package/dist/tokens.css +35 -0
  57. package/dist/tokens.js +41 -0
  58. package/package.json +5 -1
@@ -142,6 +142,7 @@ disabled 인 CTAButton · Checkbox · Radio · Switch 를 누르면 흔들려서
142
142
  - [TableRow](#tablerow)
143
143
  - [Notice](#notice)
144
144
  - [EmptyState](#emptystate)
145
+ - [ResultScreen](#resultscreen)
145
146
  - [Tag](#tag)
146
147
  - [MessageThread](#messagethread)
147
148
  - [Message](#message)
@@ -457,7 +458,7 @@ import { CTAButton } from '@nurihaus/web-design-system'; // 루트.
457
458
  | `children` | `ReactNode` | | |
458
459
  | `size` | `'xs' \| 's' \| 'm' \| 'l' \| 'xl'` | | `'m'` |
459
460
  | `loading` | `boolean` | | |
460
- | `variant` (deprecated) | `'fill' \| 'neutral' \| 'primary' \| 'outlined' \| 'outline' \| 'weak' \| 'ghost' \| 'secondary' \| 'confirm' \| 'social'` | | `'fill'` |
461
+ | `variant` (deprecated) | `'fill' \| 'neutral' \| 'primary' \| 'outlined' \| 'outline' \| 'secondary' \| 'weak' \| 'ghost' \| 'confirm' \| 'social'` | | `'fill'` |
461
462
  | `leftIcon` | `ReactNode` | | |
462
463
  | `rightIcon` | `ReactNode` | | |
463
464
  | `callout` | `ReactNode` | | |
@@ -466,7 +467,7 @@ import { CTAButton } from '@nurihaus/web-design-system'; // 루트.
466
467
  | `pressEffect` | `boolean` | | `true` |
467
468
  | `appear` | `{ animation: AppearAnimation; delay?: number \| undefined; }` | | |
468
469
 
469
- - `variant` (deprecated): 'neutral' | 'primary' | 'outlined' | 'ghost' | 'secondary' | 'confirm' | 'social' 값. ADR 0011 이전의 variant. `color` × `variant` 로 옮긴다(usage.md 의 대응표). 다음 메이저에서 지운다
470
+ - `variant` (deprecated): 'neutral' | 'primary' | 'outlined' | 'secondary' | 'ghost' | 'confirm' | 'social' 값. ADR 0011 이전의 variant. `color` × `variant` 로 옮긴다(usage.md 의 대응표). 다음 메이저에서 지운다
470
471
 
471
472
  이 밖에 React·HTML 기본 속성 274개를 받는다.
472
473
 
@@ -529,7 +530,7 @@ import { IconButton } from '@nurihaus/web-design-system'; // 루트.
529
530
  | `children` | `ReactNode` | | |
530
531
  | `size` | `'s' \| 'm' \| 'l'` | | `'m'` |
531
532
  | `loading` | `boolean` | | |
532
- | `variant` | `'primary' \| 'ghost' \| 'secondary'` | | `'ghost'` |
533
+ | `variant` | `'primary' \| 'secondary' \| 'ghost'` | | `'ghost'` |
533
534
  | `asChild` | `boolean` | | |
534
535
  | `trackProps` | `Record<string, string \| number \| boolean>` | | |
535
536
  | `pressEffect` | `boolean` | | `true` |
@@ -1334,7 +1335,7 @@ import { Toast } from '@nurihaus/web-design-system'; // 루트. 첫
1334
1335
  | `track` | `string` | | |
1335
1336
  | `className` | `string` | | |
1336
1337
  | `onPause` | `(() => void)` | | |
1337
- | `variant` | `'success' \| 'warning' \| 'default' \| 'secondary' \| 'error'` | | `'default'` |
1338
+ | `variant` | `'success' \| 'warning' \| 'secondary' \| 'default' \| 'error'` | | `'default'` |
1338
1339
  | `trackProps` | `Record<string, string \| number \| boolean>` | | |
1339
1340
  | `onResume` | `(() => void)` | | |
1340
1341
  | `open` | `boolean` | | |
@@ -1651,7 +1652,7 @@ import { Skeleton } from '@nurihaus/web-design-system/skeleton'; // 이 컴포
1651
1652
  import { Skeleton } from '@nurihaus/web-design-system'; // 루트. 첫 로드 JS 가 커진다
1652
1653
  ```
1653
1654
 
1654
- **언제 쓴다.** 데이터를 기다리는 동안 들어올 내용의 자리를 같은 모양으로 비워 둘 때 쓴다. 한 줄 글은 `shape="text"`, 여러 줄은 `lines`, 이미지·카드는 `rect`에 `width`·`height`, 아바타는 `circle`에 `width`를 준다. `className`·`style`은 루트 `span`에 붙고 `width`·`height`는 루트 style 에 들어간다. 보조기기에는 숨기므로(`aria-hidden`) 불러오는 중이라는 알림은 감싸는 영역이 `aria-busy`로 알린다.
1655
+ **언제 쓴다.** 데이터를 기다리는 동안 들어올 내용의 자리를 같은 모양으로 비워 둘 때 쓴다. 한 줄 글은 `shape="text"`, 여러 줄은 `lines`, 이미지·카드는 `rect`에 `width`·`height`, 아바타는 `circle`에 `width`를 준다. 색은 `variant` 로 고른다. `'strong'`(기본)은 회색 뼈대(`--surface-strong`), `'subtle'` 은 바탕에 거의 묻히는 옅은 뼈대(`--surface-muted`, 빛 `--surface-subtle`)다. 화면 전체를 실제 화면 자리대로 깔 때처럼 뼈대가 눈에 띄지 않아야 하면 `subtle` 을 쓴다. `className`·`style`은 루트 `span`에 붙고 `width`·`height`는 루트 style 에 들어간다. 보조기기에는 숨기므로(`aria-hidden`) 불러오는 중이라는 알림은 감싸는 영역이 `aria-busy`로 알린다.
1655
1656
 
1656
1657
  **쓰지 않는다.** 짧은 처리 중 표시는 InlineLoading, 버튼 로딩은 CTAButton의 `loading`, 화면 전체를 막아야 하면 OverlayLoading을 쓴다. 들어올 내용의 모양을 모를 때는 쓰지 않는다.
1657
1658
 
@@ -1685,6 +1686,7 @@ import { Skeleton } from '@nurihaus/web-design-system'; // 루트.
1685
1686
  | `shape` | `'circle' \| 'rect' \| 'text'` | | `'text'` |
1686
1687
  | `height` | `string \| number` | | |
1687
1688
  | `width` | `string \| number` | | `'100%'` |
1689
+ | `variant` | `'strong' \| 'subtle'` | | `'strong'` |
1688
1690
  | `lines` | `number` | | `1` |
1689
1691
  | `animated` | `boolean` | | `true` |
1690
1692
 
@@ -1703,6 +1705,7 @@ import { SkeletonGroup } from '@nurihaus/web-design-system'; // 루
1703
1705
  - `custom`: `pattern` 대신 위에서부터 그릴 블록 이름 배열. `'title' | 'subtitle' | 'text' | 'circle' | 'rect' | 'card' | 'spacer:{n}'`. `text` 는 한 줄 글, `spacer:16` 은 블록 사이 간격 위에 `--spacing-16` 만큼 더 띄운다. `n` 은 `--spacing-*` 에 있는 이름(`SpacingToken`)만 되고 `'spacer:13'` 은 타입 오류다. `pattern` 과 함께 주면 타입 오류다.
1704
1706
  - `repeat`: 마지막 블록을 몇 번 그릴지. 기본 `3`. 목록·표 패턴의 마지막 블록은 행이라 행 수가 된다. 앞 블록(제목, 표 머리 행)은 한 번만 그린다.
1705
1707
  - `animated`: 블록마다 Skeleton 의 shimmer 를 켠다. 기본 `true`.
1708
+ - `variant`: 블록마다 Skeleton 의 색. Skeleton 과 같다. 기본 `'strong'`.
1706
1709
  - 블록 치수는 `styles/token/size.css` 의 `--skeleton-block-*` 이다. 바꾸려면 쓰는 쪽이 `className` 으로 변수를 덮는다.
1707
1710
 
1708
1711
  **쓰지 않는다.** 뼈대 하나만 필요하면 Skeleton 을 쓴다. 들어올 내용의 모양이 패턴과 다르면 `custom` 으로 적고, 그래도 맞지 않으면 Skeleton 을 직접 조합한다. 짧은 처리 중 표시는 InlineLoading 을 쓴다.
@@ -1742,6 +1745,7 @@ import { SkeletonGroup } from '@nurihaus/web-design-system'; // 루
1742
1745
  | --- | --- | --- | --- |
1743
1746
  | `repeat` | `number` | | `3` |
1744
1747
  | `animated` | `boolean` | | `true` |
1748
+ | `variant` | `'strong' \| 'subtle'` | | |
1745
1749
  | `aria-label` | `string` | | |
1746
1750
  | `className` | `string` | | |
1747
1751
  | `style` | `CSSProperties` | | |
@@ -2086,7 +2090,7 @@ import { Text } from '@nurihaus/web-design-system'; // 루트. 첫
2086
2090
  | `text` | `ReactNode` | 예 | |
2087
2091
  | `size` | `'base' \| 'xl' \| 'xsm' \| 'sm' \| 'lg' \| '2xl' \| '3xl' \| '4xl' \| '5xl' \| '6xl'` | 예 | |
2088
2092
  | `weight` | `'regular' \| 'medium' \| 'semibold' \| 'bold' \| 'extrabold'` | 예 | |
2089
- | `color` | `'transparent' \| 'text-primary' \| 'text-body' \| 'text-secondary' \| 'text-tertiary' \| 'text-muted' \| 'text-placeholder' \| 'text-disabled' \| 'text-inverse' \| 'text-on-brand' \| 'text-on-brand-subtle' \| 'text-on-overlay' \| 'text-on-disabled' \| 'text-brand' \| 'text-brand-active' \| 'text-brand-emphasis' \| 'text-brand-secondary' \| 'text-danger' \| 'text-error' \| 'text-success' \| 'text-warning' \| 'purple-50' \| 'purple-100' \| 'purple-200' \| 'purple-300' \| 'purple-400' \| 'purple-500' \| 'purple-600' \| 'purple-700' \| 'purple-800' \| 'purple-900' \| 'grey-scale-50' \| 'grey-scale-100' \| 'grey-scale-200' \| 'grey-scale-300' \| 'grey-scale-400' \| 'grey-scale-500' \| 'grey-scale-600' \| 'grey-scale-700' \| 'grey-scale-800' \| 'grey-scale-900' \| 'accent-red-50' \| 'accent-red-100' \| 'accent-red-200' \| 'accent-red-300' \| 'accent-red-400' \| 'accent-red-500' \| 'accent-red-600' \| 'accent-red-700' \| 'accent-red-800' \| 'accent-red-900' \| 'accent-pink-50' \| 'accent-pink-100' \| 'accent-pink-200' \| 'accent-pink-300' \| 'accent-pink-400' \| 'accent-pink-500' \| 'accent-pink-600' \| 'accent-pink-700' \| 'accent-pink-800' \| 'accent-pink-900' \| 'accent-magenta-50' \| 'accent-magenta-100' \| 'accent-magenta-200' \| 'accent-magenta-300' \| 'accent-magenta-400' \| 'accent-magenta-500' \| 'accent-magenta-600' \| 'accent-magenta-700' \| 'accent-magenta-800' \| 'accent-magenta-900' \| 'accent-blue-50' \| 'accent-blue-100' \| 'accent-blue-200' \| 'accent-blue-300' \| 'accent-blue-400' \| 'accent-blue-500' \| 'accent-blue-600' \| 'accent-blue-700' \| 'accent-blue-800' \| 'accent-blue-900' \| 'accent-mint-50' \| 'accent-mint-100' \| 'accent-mint-200' \| 'accent-mint-300' \| 'accent-mint-400' \| 'accent-mint-500' \| 'accent-mint-600' \| 'accent-mint-700' \| 'accent-mint-800' \| 'accent-mint-900' \| 'accent-green-50' \| 'accent-green-100' \| 'accent-green-200' \| 'accent-green-300' \| 'accent-green-400' \| 'accent-green-500' \| 'accent-green-600' \| 'accent-green-700' \| 'accent-green-800' \| 'accent-green-900' \| 'accent-yellow-50' \| 'accent-yellow-100' \| 'accent-yellow-200' \| 'accent-yellow-300' \| 'accent-yellow-400' \| 'accent-yellow-500' \| 'accent-yellow-600' \| 'accent-yellow-700' \| 'accent-yellow-800' \| 'accent-yellow-900' \| 'accent-orange-50' \| 'accent-orange-100' \| 'accent-orange-200' \| 'accent-orange-300' \| 'accent-orange-400' \| 'accent-orange-500' \| 'accent-orange-600' \| 'accent-orange-700' \| 'accent-orange-800' \| 'accent-orange-900' \| 'black' \| 'white'` | | |
2093
+ | `color` | `'transparent' \| 'text-primary' \| 'text-body' \| 'text-secondary' \| 'text-tertiary' \| 'text-muted' \| 'text-placeholder' \| 'text-disabled' \| 'text-inverse' \| 'text-on-brand' \| 'text-on-brand-subtle' \| 'text-on-overlay' \| 'text-on-disabled' \| 'text-brand' \| 'text-brand-active' \| 'text-brand-emphasis' \| 'text-brand-secondary' \| 'text-danger' \| 'text-error' \| 'text-success' \| 'text-warning' \| 'purple-50' \| 'purple-100' \| 'purple-200' \| 'purple-300' \| 'purple-400' \| 'purple-500' \| 'purple-600' \| 'purple-700' \| 'purple-800' \| 'purple-900' \| 'grey-scale-50' \| 'grey-scale-100' \| 'grey-scale-200' \| 'grey-scale-300' \| 'grey-scale-400' \| 'grey-scale-500' \| 'grey-scale-600' \| 'grey-scale-700' \| 'grey-scale-800' \| 'grey-scale-900' \| 'accent-red-50' \| 'accent-red-100' \| 'accent-red-200' \| 'accent-red-300' \| 'accent-red-400' \| 'accent-red-500' \| 'accent-red-600' \| 'accent-red-700' \| 'accent-red-800' \| 'accent-red-900' \| 'accent-pink-50' \| 'accent-pink-100' \| 'accent-pink-200' \| 'accent-pink-300' \| 'accent-pink-400' \| 'accent-pink-500' \| 'accent-pink-600' \| 'accent-pink-700' \| 'accent-pink-800' \| 'accent-pink-900' \| 'accent-magenta-50' \| 'accent-magenta-100' \| 'accent-magenta-200' \| 'accent-magenta-300' \| 'accent-magenta-400' \| 'accent-magenta-500' \| 'accent-magenta-600' \| 'accent-magenta-700' \| 'accent-magenta-800' \| 'accent-magenta-900' \| 'accent-blue-50' \| 'accent-blue-100' \| 'accent-blue-200' \| 'accent-blue-300' \| 'accent-blue-400' \| 'accent-blue-500' \| 'accent-blue-600' \| 'accent-blue-700' \| 'accent-blue-800' \| 'accent-blue-900' \| 'accent-mint-50' \| 'accent-mint-100' \| 'accent-mint-200' \| 'accent-mint-300' \| 'accent-mint-400' \| 'accent-mint-500' \| 'accent-mint-600' \| 'accent-mint-700' \| 'accent-mint-800' \| 'accent-mint-900' \| 'accent-green-50' \| 'accent-green-100' \| 'accent-green-200' \| 'accent-green-300' \| 'accent-green-400' \| 'accent-green-500' \| 'accent-green-600' \| 'accent-green-700' \| 'accent-green-800' \| 'accent-green-900' \| 'accent-yellow-50' \| 'accent-yellow-100' \| 'accent-yellow-200' \| 'accent-yellow-300' \| 'accent-yellow-400' \| 'accent-yellow-500' \| 'accent-yellow-600' \| 'accent-yellow-700' \| 'accent-yellow-800' \| 'accent-yellow-900' \| 'accent-orange-50' \| 'accent-orange-100' \| 'accent-orange-200' \| 'accent-orange-300' \| 'accent-orange-400' \| 'accent-orange-500' \| 'accent-orange-600' \| 'accent-orange-700' \| 'accent-orange-800' \| 'accent-orange-900' \| 'tiktok-cyan' \| 'tiktok-red' \| 'instagram-orange' \| 'instagram-pink' \| 'instagram-purple' \| 'youtube-red' \| 'black' \| 'white'` | | |
2090
2094
  | `textDecoration` | `TextDecoration<string \| number>` | | |
2091
2095
  | `textAlign` | `TextAlign` | | |
2092
2096
  | `wordBreak` | `WordBreak` | | |
@@ -4250,6 +4254,80 @@ import { EmptyState } from '@nurihaus/web-design-system'; // 루트.
4250
4254
 
4251
4255
  이 밖에 React·HTML 기본 속성 264개를 받는다.
4252
4256
 
4257
+ ## ResultScreen
4258
+
4259
+ ```ts
4260
+ import { ResultScreen } from '@nurihaus/web-design-system/result-screen'; // 이 컴포넌트만 싣는다 (권장)
4261
+ import { ResultScreen } from '@nurihaus/web-design-system'; // 루트. 첫 로드 JS 가 커진다
4262
+ ```
4263
+
4264
+ **언제 쓴다.** 신청·제출·변경·탈퇴처럼 되돌리기 어려운 일을 마친 직후, 결과를 한 번 알리고 다음 화면으로 보내는 화면 전체다. 가운데 그림 타일(또는 `figure`)·제목·설명을 세로로 쌓고, 주 버튼(`action`)은 화면 아래에 고정한다(BottomCTA `fixed takeSpace`). 그림 → 그림 안 표시 → 제목 → 설명 → 버튼 차례로 나타난다(모션 토큰 `result`). 동작 줄이기면 마지막 모습으로 바로 보인다.
4265
+
4266
+ - `variant`: 결과의 종류. 타일 색과 그림을 정한다. 아래 표에서 고른다. `figure` 와 둘 중 하나를 꼭 준다(둘 다 주거나 둘 다 없으면 타입 오류).
4267
+ - `figure`: 그 화면에만 있는 그림(가입 축하 카드 등)을 타일 대신 그대로 그린다. 틀과 차례는 같다.
4268
+ - `title`: 필수. 제목 한 줄. 문구는 쓰는 쪽이 정한다. `titleAs`(`h1` 기본·`h2`·`p`)로 태그만 바꾼다.
4269
+ - `description`: 한두 줄 설명. 문자열의 `\n` 은 줄을 바꾼다.
4270
+ - `action`: 필수. 주 버튼 하나(보통 `CTAButton size="xl"` primary fill). 화면 아래에 고정되고 마지막에 나타난다.
4271
+ - `secondary`: 보조 길 하나(보통 `TextButton variant="arrow" size="s" color="neutral"`). 주 버튼 위에 둔다.
4272
+ - `children`: 설명 아래 본문. 무엇이 접수됐는지 보여 주는 요약 `Card` 하나(`DescriptionList`)를 둔다.
4273
+ - `className`·`style` 은 루트(`div`)에 붙는다.
4274
+
4275
+ | 상황 | `variant` | 그림 | 주 버튼 |
4276
+ | --- | --- | --- | --- |
4277
+ | 신청·제출·인증을 마쳤다 | `success` | 연보라 타일에 체크가 그려진다 | "홈으로" 또는 다음 화면 |
4278
+ | 비밀번호·로그인 이메일처럼 계정 보안이 바뀌었다 | `security` | 자물쇠가 잠기고 체크 배지가 붙는다 | "로그인하기" 등 |
4279
+ | 해지·취소·삭제처럼 축하할 일은 아닌 처리를 마쳤다 | `neutral` | 회색 타일에 체크 | "확인" |
4280
+ | 탈퇴처럼 떠나보낸다 | `farewell` | 회색 타일에 무표정한 얼굴. 입이 그어지고 간격마다 세 번 깜빡인다 | "홈으로" |
4281
+ | 되돌리기 어려운 일이 안 됐다 | `failure` | 연빨강 타일에 느낌표, 한 번 흔들린다 | "다시 시도". 홈으로는 `secondary` |
4282
+
4283
+ **쓰지 않는다.** 화면을 떠나지 않는 가벼운 결과(저장)는 `useToast`, 화면 안의 빈 목록·다시 시도 안내는 EmptyState 를 쓴다. 표에 없는 결과면 새 그림을 만들지 않고 표와 스토리에 행을 더한다.
4284
+
4285
+ ### 접근성
4286
+
4287
+ 기본으로 단다.
4288
+
4289
+ | 요소 | 속성 | 값 |
4290
+ | --- | --- | --- |
4291
+ | `.result-screen` | `role` | `alert` (failure 만) |
4292
+ | `.result-screen-tile` | `aria-hidden` | `true` |
4293
+ | `.result-screen-title` | `role` | `heading` |
4294
+ | `.result-screen-description` | `role` | `paragraph` |
4295
+
4296
+ 쓰는 쪽이 단다.
4297
+
4298
+ | 무엇 | 어디에 | 왜 |
4299
+ | --- | --- | --- |
4300
+ | `title` | ResultScreen | 화면의 제목(`h1`)이다. 결과를 한 줄로 쓴다 |
4301
+ | `figure` 의 대체 글 | 쓰는 쪽 그림 | 타일 그림은 숨기지만 `figure` 는 그대로 그린다. 장식이면 쓰는 쪽이 `aria-hidden` 을 준다 |
4302
+
4303
+ ```tsx
4304
+ <ResultScreen
4305
+ variant="security"
4306
+ title="비밀번호를 바꿨어요"
4307
+ description={'새 비밀번호로 다시 로그인해 주세요.\n다른 기기에서는 모두 로그아웃됐어요.'}
4308
+ action={<CTAButton size="xl" text="로그인하기" />}
4309
+ />
4310
+ ```
4311
+
4312
+ **반응형.** 그대로 됨. 한 손 폭 기준의 결과 화면이고 주 버튼은 BottomCTA 가 아래에 고정한다.
4313
+
4314
+ **모션.** result · appear. 토큰 값과 규칙은 `motion.md`.
4315
+
4316
+ ### props
4317
+
4318
+ | prop | 타입 | 필수 | 기본값 |
4319
+ | --- | --- | --- | --- |
4320
+ | `figure` | `ReactNode` | | |
4321
+ | `title` | `ReactNode` | 예 | |
4322
+ | `children` | `ReactNode` | | |
4323
+ | `variant` | `'security' \| 'neutral' \| 'success' \| 'farewell' \| 'failure'` | | |
4324
+ | `description` | `ReactNode` | | |
4325
+ | `action` | `ReactNode` | 예 | |
4326
+ | `titleAs` | `'h1' \| 'h2' \| 'p'` | | `'h1'` |
4327
+ | `secondary` | `ReactNode` | | |
4328
+
4329
+ 이 밖에 React·HTML 기본 속성 264개를 받는다.
4330
+
4253
4331
  ## Tag
4254
4332
 
4255
4333
  ```ts
@@ -4,6 +4,12 @@
4
4
 
5
5
  지금 쓰는 버전보다 높은 칸을 위에서부터 읽고 고친다. 칸 제목은 그 변경이 처음 나간 버전이다. 결정의 이유는 패키지에 없고 레포의 `docs/decisions/` 에 있다.
6
6
 
7
+ ## 3.16.0
8
+
9
+ ### ADR 0018 — 플랫폼 브랜드 색은 테마를 타지 않는 원시 토큰으로 둔다
10
+
11
+ - 틱톡 · 인스타그램 · 유튜브 브랜드 색을 hex 로 적은 CSS 가 있으면 토큰으로 바꾼다. `#25f4ee` · `#fe2c55` 는 `var(--color-tiktok-cyan)` · `var(--color-tiktok-red)`, `#ff0033` 은 `var(--color-youtube-red)`, `linear-gradient(90deg, #f9a03f 0%, #e1306c 45%, #833ab4 100%)` 는 `var(--gradient-instagram)` 이다.
12
+
7
13
  ## 3.13.0
8
14
 
9
15
  ### ADR 0015 — 토큰 값으로 안 되는 무드는 컴포넌트 기본값과 구조로 옮긴다
package/dist/ai/motion.md CHANGED
@@ -328,6 +328,36 @@
328
328
  | `fade-duration` | `--motion-busy-fade-duration` | `var(--duration-s)` | `0.16` | 160ms |
329
329
  | `fade-ease` | `--motion-busy-fade-ease` | `var(--ease-out)` | `[0.25,0.1,0.25,1]` | cubic-bezier(0.25, 0.1, 0.25, 1) |
330
330
 
331
+ ### result
332
+
333
+ | 항목 | 내용 |
334
+ | --- | --- |
335
+ | 뜻 | 결과 화면의 차례 등장 |
336
+ | 트리거 | 결과 화면 mount |
337
+ | 붙는 곳 | ResultScreen 하나. 그림 타일이 튀어 오르고(strong) → 그림 안의 표시가 그려지고 → 제목 → 설명 → 하단 버튼 차례로 나타난다. farewell 의 눈은 blink 간격으로 세 번 깜빡이고 멈춘다 |
338
+ | 붙이지 않는 곳 | 결과 화면이 아닌 곳, 다시 그릴 때마다 반복하기 |
339
+ | 구현층 | `css` |
340
+ | prop | 없음 |
341
+ | reduced-motion | 시간이 0ms 가 되어 마지막 모습으로 바로 보인다. 깜빡임·흔들림도 멈춘다 |
342
+ | 작업 | KAN-10249 |
343
+
344
+ | 키 | CSS 변수 | CSS 값 | JS `motionTokens['result']` | 풀린 값 |
345
+ | --- | --- | --- | --- | --- |
346
+ | `duration` | `--motion-result-duration` | `var(--duration-l)` | `0.35` | 350ms |
347
+ | `ease` | `--motion-result-ease` | `var(--ease-out)` | `[0.25,0.1,0.25,1]` | cubic-bezier(0.25, 0.1, 0.25, 1) |
348
+ | `strong` | `--motion-result-strong-ease` | `var(--ease-spring-bounce)` | `{"type":"spring","stiffness":300,"damping":15,"mass":1}` | stiffness 300 · damping 15 |
349
+ | | `--motion-result-strong-duration` | `var(--duration-spring-bounce)` | | |
350
+ | `figure-delay` | `--motion-result-figure-delay` | `100ms` | `0.1` | 100ms |
351
+ | `glyph-delay` | `--motion-result-glyph-delay` | `450ms` | `0.45` | 450ms |
352
+ | `title-delay` | `--motion-result-title-delay` | `700ms` | `0.7` | 700ms |
353
+ | `description-delay` | `--motion-result-description-delay` | `800ms` | `0.8` | 800ms |
354
+ | `action-delay` | `--motion-result-action-delay` | `900ms` | `0.9` | 900ms |
355
+ | `blink` | `--motion-result-blink` | `3200ms` | `3.2` | 3200ms |
356
+ | `offset` | `--motion-result-offset` | `14px` | `"14px"` | 14px |
357
+ | `pop-scale` | `--motion-result-pop-scale` | `0.4` | `0.4` | 0.4 |
358
+ | `latch-offset` | `--motion-result-latch-offset` | `-6px` | `"-6px"` | -6px |
359
+ | `latch-angle` | `--motion-result-latch-angle` | `-28deg` | `"-28deg"` | -28deg |
360
+
331
361
  ## 원시값
332
362
 
333
363
  ### duration
@@ -370,92 +400,93 @@
370
400
 
371
401
  컴포넌트마다 어느 토큰이 붙는지 정한 표다. `✓` 는 규칙에 걸려 붙고, `opt` 는 prop 을 줄 때만 붙는다. 컴포넌트에 실제로 붙이는 일은 표의 작업 키가 한다.
372
402
 
373
- | 컴포넌트 | press | confirm | reject | enter | exit | appear | reveal | progress | indicate | flip | tilt | expand | unfold | dismiss-on-scroll | attention | busy |
374
- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
375
- | Asset | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
376
- | Avatar | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
377
- | CTAButton | ✓ scale | – | ✓ | – | – | opt | – | – | – | – | – | – | – | – | – | ✓ |
378
- | OptionBadge | – | – | – | – | – | – | – | – | – | – | – | – | – | – | opt | – |
379
- | IconTextBadge | – | – | – | – | – | – | – | – | – | – | – | – | – | – | opt | – |
380
- | IconTextOptionBadge | – | – | – | – | – | – | – | – | – | – | – | – | – | – | opt | – |
381
- | DataTable | ✓ dim | – | – | – | – | – | – | – | – | – | – | – | – | – | opt | – |
382
- | TextField | opt scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
383
- | Radio | ✓ scale | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
384
- | Checkbox | ✓ scale | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
385
- | Switch | ✓ scale | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
386
- | TextArea | opt scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
387
- | Toast | – | – | – | ✓ | ✓ | – | – | – | – | – | – | – | – | – | – | – |
388
- | ToastProvider | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
389
- | Pagination | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
390
- | Modal | – | – | opt | ✓ | ✓ | – | – | – | – | – | – | – | – | – | – | – |
391
- | Drawer | – | – | opt | ✓ | ✓ | – | – | – | – | – | – | – | – | – | – | – |
392
- | Skeleton | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ |
393
- | SkeletonGroup | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ |
394
- | Breadcrumb | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
395
- | DropDown | ✓ dim | – | – | – | – | – | – | – | – | – | – | ✓ | ✓ | – | – | – |
396
- | CollapsibleMenu | ✓ dim | – | – | – | – | – | – | – | – | – | – | ✓ | ✓ | – | – | – |
397
- | Text | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
398
- | Tooltip | – | – | – | ✓ | ✓ | – | – | – | – | – | – | – | – | – | – | – |
399
- | TooltipProvider | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
400
- | Tabs | ✓ dim | – | – | ✓ | – | – | – | – | ✓ | – | – | – | – | – | – | – |
401
- | ModalWithDoubleButton | – | – | – | ✓ | ✓ | – | – | – | – | – | – | – | – | – | – | – |
402
- | Spinner | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ |
403
- | InlineLoading | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ |
404
- | OverlayLoading | – | – | – | ✓ | – | – | – | – | – | – | – | – | – | – | – | ✓ |
405
- | ProgressBar | – | – | – | – | – | – | – | ✓ | – | – | – | – | – | – | – | ✓ |
406
- | LoadingDots | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ |
407
- | Icon | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
408
- | BottomNav | ✓ scale | – | – | – | – | opt | – | – | – | – | – | – | – | opt | – | – |
409
- | StepProgress | – | – | – | – | – | – | opt | ✓ | – | – | – | – | – | – | – | – |
410
- | ChipGroup | ✓ scale | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
411
- | SegmentedControl | ✓ dim | – | – | – | – | – | – | – | ✓ | – | – | – | – | – | – | – |
412
- | Slider | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
413
- | Rating | ✓ scale | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
414
- | NumericSpinner | ✓ scale | – | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | – |
415
- | LogProvider | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
416
- | MotionProvider | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
417
- | Callout | – | – | – | ✓ | – | – | – | – | – | – | – | – | – | – | ✓ | – |
418
- | Card | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | opt | – |
419
- | MemberCard | ✓ scale | – | – | – | – | – | – | – | – | ✓ | opt | – | – | – | opt | – |
420
- | ListGroup | – | – | – | – | – | – | opt | – | – | – | – | – | – | – | – | – |
421
- | ListRow | ✓ dim | – | – | – | – | – | – | – | – | – | – | – | – | – | opt | – |
422
- | ListHeader | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
423
- | Stat | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
424
- | SectionHeader | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
425
- | ListFooter | ✓ dim | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ |
426
- | TableRow | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
427
- | Border | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
428
- | BoardRow | ✓ dim | – | – | – | – | – | – | – | – | – | – | ✓ | – | – | – | – |
429
- | GridList | ✓ scale | – | – | – | – | – | opt | – | – | – | – | – | – | – | – | – |
430
- | DescriptionList | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
431
- | Notice | – | – | – | opt | – | – | – | – | – | – | – | – | – | – | – | – |
432
- | EmptyState | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
433
- | Tag | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
434
- | MessageThread | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
435
- | Message | – | – | – | opt | – | – | – | – | – | – | – | – | – | – | – | – |
436
- | MessageEvent | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
437
- | MessageComposer | ✓ scale | – | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | ✓ |
438
- | BottomBar | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
439
- | BottomCTA | – | – | – | – | – | opt | – | – | – | – | – | – | – | opt | – | – |
440
- | Top | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
441
- | MediaThumbnail | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ |
442
- | MediaViewer | – | – | – | ✓ | ✓ | – | – | – | – | – | – | – | – | – | – | – |
443
- | IconButton | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ |
444
- | TextButton | ✓ dim | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
445
- | OverlayProvider | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
446
- | Paragraph | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
447
- | Post | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
448
- | BottomInfo | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
449
- | BarChart | – | – | – | – | – | – | opt | ✓ | – | – | – | – | – | – | – | – |
450
- | Agreement | ✓ dim | ✓ | – | – | – | – | – | – | – | – | – | ✓ | – | – | – | – |
451
- | SearchField | opt scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
452
- | SplitTextField | opt scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
453
- | NumberKeypad | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
454
- | AlphabetKeypad | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
455
- | FullSecureKeypad | ✓ scale | – | – | – | – | – | opt | – | – | – | – | – | – | – | – | – |
456
- | BottomSheet | ✓ scale | – | opt | ✓ | ✓ | – | – | – | ✓ | – | – | – | – | – | – | – |
457
- | Menu | ✓ dim | – | – | – | ✓ | – | – | – | – | – | – | – | ✓ | – | – | – |
458
- | Highlight | – | – | – | ✓ | ✓ | opt | – | – | – | – | – | – | – | – | – | – |
403
+ | 컴포넌트 | press | confirm | reject | enter | exit | appear | reveal | progress | indicate | flip | tilt | expand | unfold | dismiss-on-scroll | attention | busy | result |
404
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
405
+ | Asset | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
406
+ | Avatar | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
407
+ | CTAButton | ✓ scale | – | ✓ | – | – | opt | – | – | – | – | – | – | – | – | – | ✓ | – |
408
+ | OptionBadge | – | – | – | – | – | – | – | – | – | – | – | – | – | – | opt | – | – |
409
+ | IconTextBadge | – | – | – | – | – | – | – | – | – | – | – | – | – | – | opt | – | – |
410
+ | IconTextOptionBadge | – | – | – | – | – | – | – | – | – | – | – | – | – | – | opt | – | – |
411
+ | DataTable | ✓ dim | – | – | – | – | – | – | – | – | – | – | – | – | – | opt | – | – |
412
+ | TextField | opt scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
413
+ | Radio | ✓ scale | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
414
+ | Checkbox | ✓ scale | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
415
+ | Switch | ✓ scale | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
416
+ | TextArea | opt scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
417
+ | Toast | – | – | – | ✓ | ✓ | – | – | – | – | – | – | – | – | – | – | – | – |
418
+ | ToastProvider | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
419
+ | Pagination | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
420
+ | Modal | – | – | opt | ✓ | ✓ | – | – | – | – | – | – | – | – | – | – | – | – |
421
+ | Drawer | – | – | opt | ✓ | ✓ | – | – | – | – | – | – | – | – | – | – | – | – |
422
+ | Skeleton | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ | – |
423
+ | SkeletonGroup | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ | – |
424
+ | Breadcrumb | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
425
+ | DropDown | ✓ dim | – | – | – | – | – | – | – | – | – | – | ✓ | ✓ | – | – | – | – |
426
+ | CollapsibleMenu | ✓ dim | – | – | – | – | – | – | – | – | – | – | ✓ | ✓ | – | – | – | – |
427
+ | Text | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
428
+ | Tooltip | – | – | – | ✓ | ✓ | – | – | – | – | – | – | – | – | – | – | – | – |
429
+ | TooltipProvider | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
430
+ | Tabs | ✓ dim | – | – | ✓ | – | – | – | – | ✓ | – | – | – | – | – | – | – | – |
431
+ | ModalWithDoubleButton | – | – | – | ✓ | ✓ | – | – | – | – | – | – | – | – | – | – | – | – |
432
+ | Spinner | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ | – |
433
+ | InlineLoading | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ | – |
434
+ | OverlayLoading | – | – | – | ✓ | – | – | – | – | – | – | – | – | – | – | – | ✓ | – |
435
+ | ProgressBar | – | – | – | – | – | – | – | ✓ | – | – | – | – | – | – | – | ✓ | – |
436
+ | LoadingDots | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ | – |
437
+ | Icon | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
438
+ | BottomNav | ✓ scale | – | – | – | – | opt | – | – | – | – | – | – | – | opt | – | – | – |
439
+ | StepProgress | – | – | – | – | – | – | opt | ✓ | – | – | – | – | – | – | – | – | – |
440
+ | ChipGroup | ✓ scale | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
441
+ | SegmentedControl | ✓ dim | – | – | – | – | – | – | – | ✓ | – | – | – | – | – | – | – | – |
442
+ | Slider | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
443
+ | Rating | ✓ scale | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
444
+ | NumericSpinner | ✓ scale | – | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
445
+ | LogProvider | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
446
+ | MotionProvider | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
447
+ | Callout | – | – | – | ✓ | – | – | – | – | – | – | – | – | – | – | ✓ | – | – |
448
+ | Card | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | opt | – | – |
449
+ | MemberCard | ✓ scale | – | – | – | – | – | – | – | – | ✓ | opt | – | – | – | opt | – | – |
450
+ | ListGroup | – | – | – | – | – | – | opt | – | – | – | – | – | – | – | – | – | – |
451
+ | ListRow | ✓ dim | – | – | – | – | – | – | – | – | – | – | – | – | – | opt | – | – |
452
+ | ListHeader | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
453
+ | Stat | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
454
+ | SectionHeader | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
455
+ | ListFooter | ✓ dim | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ | – |
456
+ | TableRow | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
457
+ | Border | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
458
+ | BoardRow | ✓ dim | – | – | – | – | – | – | – | – | – | – | ✓ | – | – | – | – | – |
459
+ | GridList | ✓ scale | – | – | – | – | – | opt | – | – | – | – | – | – | – | – | – | – |
460
+ | DescriptionList | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
461
+ | Notice | – | – | – | opt | – | – | – | – | – | – | – | – | – | – | – | – | – |
462
+ | EmptyState | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
463
+ | ResultScreen | – | – | – | – | – | ✓ | – | – | – | – | – | – | – | – | – | – | ✓ |
464
+ | Tag | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
465
+ | MessageThread | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
466
+ | Message | – | – | – | opt | – | – | – | – | – | – | – | – | – | – | – | – | – |
467
+ | MessageEvent | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
468
+ | MessageComposer | ✓ scale | – | ✓ | – | – | – | – | – | – | – | – | – | – | – | – | ✓ | – |
469
+ | BottomBar | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
470
+ | BottomCTA | – | – | – | – | – | opt | – | – | – | – | – | – | – | opt | – | – | – |
471
+ | Top | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
472
+ | MediaThumbnail | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ | – |
473
+ | MediaViewer | – | – | – | ✓ | ✓ | – | – | – | – | – | – | – | – | – | – | – | – |
474
+ | IconButton | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ | – |
475
+ | TextButton | ✓ dim | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
476
+ | OverlayProvider | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
477
+ | Paragraph | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
478
+ | Post | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
479
+ | BottomInfo | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
480
+ | BarChart | – | – | – | – | – | – | opt | ✓ | – | – | – | – | – | – | – | – | – |
481
+ | Agreement | ✓ dim | ✓ | – | – | – | – | – | – | – | – | – | ✓ | – | – | – | – | – |
482
+ | SearchField | opt scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
483
+ | SplitTextField | opt scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
484
+ | NumberKeypad | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
485
+ | AlphabetKeypad | ✓ scale | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – | – |
486
+ | FullSecureKeypad | ✓ scale | – | – | – | – | – | opt | – | – | – | – | – | – | – | – | – | – |
487
+ | BottomSheet | ✓ scale | – | opt | ✓ | ✓ | – | – | – | ✓ | – | – | – | – | – | – | – | – |
488
+ | Menu | ✓ dim | – | – | – | ✓ | – | – | – | – | – | – | – | ✓ | – | – | – | – |
489
+ | Highlight | – | – | – | ✓ | ✓ | opt | – | – | – | – | – | – | – | – | – | – | – |
459
490
 
460
491
  ### 판단 근거
461
492
 
@@ -517,6 +548,7 @@
517
548
  - **DescriptionList** 없음. 이름–값 글자만 그린다. 누르는 표면이 아니다
518
549
  - **Notice** enter(opt): 조건부로 나타나는 인라인 안내. motion prop 을 줄 때만 fade 로 들어온다. 나갈 때 모션은 presence 가 필요해 두지 않는다 (KAN-9451)
519
550
  - **EmptyState** 없음. 누를 곳이 없는 표시용 화면이다. 버튼은 쓰는 쪽이 넘긴 CTAButton 이 press 를 받는다
551
+ - **ResultScreen** result: 결과 화면 첫 렌더에 그림 타일 → 그림 안 표시 → 제목 → 설명 차례로 나타난다. farewell 의 눈은 간격마다 깜빡이고 failure 타일은 한 번 흔들린다 (KAN-10249) · appear: 주 버튼 바(BottomCTA appear slide)가 result action-delay 뒤 마지막에 나타난다 (KAN-10249)
520
552
  - **Tag** press[scale]: 지우기 버튼(X)은 onClick 표면이다 (KAN-9451)
521
553
  - **MessageThread** 없음. 목록 틀이다. 등장 모션은 항목(Message)이 가진다
522
554
  - **Message** enter(opt): 방금 보내거나 받은 메시지만 motion prop 으로. 처음 그린 대화는 움직이지 않는다 (KAN-9451)
@@ -953,39 +953,44 @@
953
953
 
954
954
  ### 조합
955
955
 
956
- 위에서 아래 순서다.
957
-
958
- 1. 결과 머리는 `EmptyState icon="check-circle" variant="success" titleAs="h1" title description`. 가운데 성공 색 원 · 제목 한 줄 · 설명 한 줄이다(규칙 9·10). 성공 색 아이콘 원은 EmptyState 에만 있고 `Asset.Frame` 바탕은 neutral · primary 뿐이라 EmptyState 를 쓴다(EmptyState usage 의 "모두 완료"). 이 화면에는 `Top` 이 없고 `titleAs="h1"` 이 화면 제목이 된다. `action` 은 비운다. 주 행동은 BottomCTA 에 있다.
959
- 2. 실패면 `icon="warning" variant="neutral" role="alert"`. 제목은 무엇이 안 됐는지, 설명은 이유와 할 일 한 줄이다(규칙 10).
960
- 3. 요약 `Card` 하나 안 `DescriptionList`(캠페인 · 채널 · 발표일 · 보상). 이름과 값만 나란히 보이는 묶음이다(규칙 2).
961
- 4. 보조 길 하나는 `TextButton asChild variant="arrow" size="s" color="neutral"` 링크(규칙 1).
962
- 5. 맨 아래 `BottomCTA fixed takeSpace` 안 `CTAButton size="xl"` primary fill 하나. 성공이면 `asChild` 링크 "홈으로", 실패면 "다시 시도" 다(규칙 1). 실패일 때 "홈으로" 는 4 의 TextButton 이 된다.
956
+ 화면 전체가 `ResultScreen` 하나다(2026-11-09, 그 전에는 EmptyState·BottomCTA 를 손으로 조합했다).
963
957
 
964
- 머리 위 여백은 `var(--spacing-30)`, 블록 사이는 `var(--spacing-24)` 다.
958
+ 1. 결과 머리는 `ResultScreen` 의 `variant`·`title`·`description`. 끝냈으면 `success`, 계정 보안이 바뀌었으면 `security`, 축하할 일은 아닌 처리는 `neutral`, 탈퇴는 `farewell`, 안 됐으면 `failure`(루트가 `role="alert"`). 그 화면에만 있는 그림은 `variant` 대신 `figure`. 제목이 화면 제목(`h1`)이다. 그림 → 제목 → 설명 → 버튼 차례로 나타난다.
959
+ 2. 요약 `Card` 하나 안 `DescriptionList`(캠페인 · 채널 · 발표일 · 보상)는 `children` 으로 넘긴다. 이름과 값만 나란히 보이는 묶음이다(규칙 2).
960
+ 3. 보조 길 하나는 `secondary` 에 `TextButton asChild variant="arrow" size="s" color="neutral"` 링크(규칙 1).
961
+ 4. 주 행동은 `action` 에 `CTAButton size="xl"` primary fill 하나. 화면 아래에 고정된다. 성공이면 `asChild` 링크 "홈으로", 실패면 "다시 시도" 다(규칙 1). 실패일 때 "홈으로" 는 3 의 `secondary` 가 된다.
965
962
 
966
963
  ### 금지 조합
967
964
 
968
- - EmptyState `action` 에 fill 을 넣고 BottomCTA 에도 fill(규칙 1·10). 이 화면의 fill 은 BottomCTA 하나다.
965
+ - `secondary` 에 fill 버튼(규칙 1·10). 이 화면의 fill 은 `action` 하나다.
966
+ - `variant` 표에 없는 그림을 쓰는 쪽에서 만들기. 표(ResultScreen usage)에 행을 더한다.
969
967
  - 결과를 `alert` 대화상자로만 알리고 원래 폼에 머물기. 되돌리기 어려운 일은 이 화면으로 보낸다.
970
- - 실패를 `variant="success"` 원에 빨간 글자로(규칙 12). 실패는 `warning` 아이콘에 neutral 원이다.
968
+ - 실패를 `success` 로 그리고 문구만 바꾸기(규칙 12). 실패는 `variant="failure"` 다.
971
969
  - 요약을 카드 여러 장으로(규칙 2).
972
970
  - BottomNav 와 같이(규칙 13).
973
971
 
974
972
  ### 모바일에서 바뀌는 것
975
973
 
976
- 모바일이 기준이다. 데스크톱 폭에서는 같은 조합을 화면 가운데 폭 480px 칸에 놓고, BottomCTA 대신 요약 카드 아래 `CTAButton size="l"` fill 하나를 둔다.
974
+ 모바일이 기준이다. ResultScreen 의 주 버튼은 늘 화면 아래에 고정된다. 데스크톱 폭에서는 화면 가운데 폭 480px 칸에 놓는다.
977
975
 
978
976
  ### 예시
979
977
 
980
978
  ```tsx
981
- <>
982
- <EmptyState
983
- icon="check-circle"
984
- variant="success"
985
- titleAs="h1"
986
- title="캠페인 신청을 마쳤어요"
987
- description="선정 결과는 11월 6일에 알림으로 알려 드려요."
988
- />
979
+ <ResultScreen
980
+ variant="success"
981
+ title="캠페인 신청을 마쳤어요"
982
+ description="선정 결과는 11월 6일에 알림으로 알려 드려요."
983
+ secondary={
984
+ <TextButton asChild variant="arrow" size="s" color="neutral" text="신청 내역 보기">
985
+ <a href="/me/campaigns" />
986
+ </TextButton>
987
+ }
988
+ action={
989
+ <CTAButton asChild size="xl" text="홈으로">
990
+ <a href="/" />
991
+ </CTAButton>
992
+ }
993
+ >
989
994
  <Card>
990
995
  <DescriptionList
991
996
  items={[
@@ -995,15 +1000,7 @@
995
1000
  ]}
996
1001
  />
997
1002
  </Card>
998
- <TextButton asChild variant="arrow" size="s" color="neutral" text="신청 내역 보기">
999
- <a href="/me/campaigns" />
1000
- </TextButton>
1001
- <BottomCTA fixed takeSpace>
1002
- <CTAButton asChild size="xl" text="홈으로">
1003
- <a href="/" />
1004
- </CTAButton>
1005
- </BottomCTA>
1006
- </>
1003
+ </ResultScreen>
1007
1004
  ```
1008
1005
 
1009
1006
  ## [모바일] 알림
package/dist/ai/tokens.md CHANGED
@@ -228,6 +228,8 @@
228
228
 
229
229
  ## 색
230
230
 
231
+ `tiktok`·`instagram`·`youtube` 는 플랫폼 브랜드 색이다. 테마·컬러스킴을 따르지 않는다. 그 플랫폼을 나타내는 자리에만 쓰고, 일반 강조색으로 쓰지 않는다.
232
+
231
233
  | 변수 | 값 |
232
234
  | --- | --- |
233
235
  | `--color-purple-50` | `#F4EFFA` |
@@ -330,9 +332,23 @@
330
332
  | `--color-accent-orange-700` | `#C2410C` |
331
333
  | `--color-accent-orange-800` | `#9A3412` |
332
334
  | `--color-accent-orange-900` | `#7C2D12` |
335
+ | `--color-tiktok-cyan` | `#25F4EE` |
336
+ | `--color-tiktok-red` | `#FE2C55` |
337
+ | `--color-instagram-orange` | `#F9A03F` |
338
+ | `--color-instagram-pink` | `#E1306C` |
339
+ | `--color-instagram-purple` | `#833AB4` |
340
+ | `--color-youtube-red` | `#FF0033` |
333
341
  | `--color-black` | `#000000` |
334
342
  | `--color-white` | `#FFFFFF` |
335
343
 
344
+ ## 그라디언트
345
+
346
+ `background` 에 그대로 쓴다(`background: var(--gradient-instagram)`). 색 토큰처럼 테마·컬러스킴을 따르지 않는다.
347
+
348
+ | 변수 | 값 |
349
+ | --- | --- |
350
+ | `--gradient-instagram` | `linear-gradient(90deg, var(--color-instagram-orange) 0%, var(--color-instagram-pink) 45%, var(--color-instagram-purple) 100%)` |
351
+
336
352
  ## 글꼴
337
353
 
338
354
  | 변수 | 값 |
@@ -552,6 +568,12 @@
552
568
  | `--bottom-cta-height-min` | `calc(var(--control-height-xl) + var(--spacing-12) + var(--spacing-20))` | 메시지 입력: message-composer. 보내기 원과 입력 칸 최대 높이(16/22 다섯 줄 + 위아래 안쪽) |
553
569
  | `--bottom-cta-fade-height` | `24px` | fixed 바 위에 얹는, 바탕색으로 녹아드는 띠의 높이 |
554
570
  | `--empty-state-icon-box` | `64px` | 빈 화면: empty-state 아이콘 원 |
571
+ | `--result-screen-tile` | `104px` | 결과 화면: result-screen 그림 타일·안의 그림·보안 체크 배지 |
572
+ | `--result-screen-glyph` | `52px` | 결과 화면: result-screen 그림 타일·안의 그림·보안 체크 배지 |
573
+ | `--result-screen-glyph-face` | `68px` | 결과 화면: result-screen 그림 타일·안의 그림·보안 체크 배지 |
574
+ | `--result-screen-badge` | `36px` | 결과 화면: result-screen 그림 타일·안의 그림·보안 체크 배지 |
575
+ | `--result-screen-badge-glyph` | `18px` | 결과 화면: result-screen 그림 타일·안의 그림·보안 체크 배지 |
576
+ | `--result-screen-badge-ring` | `4px` | 결과 화면: result-screen 그림 타일·안의 그림·보안 체크 배지 |
555
577
  | `--agreement-row-height-s` | `44px` | 약관 동의 행: agreement 의 size 와 indent 한 단계 |
556
578
  | `--agreement-row-height-m` | `52px` | 약관 동의 행: agreement 의 size 와 indent 한 단계 |
557
579
  | `--agreement-row-height-l` | `60px` | 약관 동의 행: agreement 의 size 와 indent 한 단계 |
@@ -701,3 +723,17 @@
701
723
  | `--motion-busy-delay` | `300ms` |
702
724
  | `--motion-busy-fade-duration` | `var(--duration-s)` |
703
725
  | `--motion-busy-fade-ease` | `var(--ease-out)` |
726
+ | `--motion-result-duration` | `var(--duration-l)` |
727
+ | `--motion-result-ease` | `var(--ease-out)` |
728
+ | `--motion-result-strong-ease` | `var(--ease-spring-bounce)` |
729
+ | `--motion-result-strong-duration` | `var(--duration-spring-bounce)` |
730
+ | `--motion-result-figure-delay` | `100ms` |
731
+ | `--motion-result-glyph-delay` | `450ms` |
732
+ | `--motion-result-title-delay` | `700ms` |
733
+ | `--motion-result-description-delay` | `800ms` |
734
+ | `--motion-result-action-delay` | `900ms` |
735
+ | `--motion-result-blink` | `3200ms` |
736
+ | `--motion-result-offset` | `14px` |
737
+ | `--motion-result-pop-scale` | `0.4` |
738
+ | `--motion-result-latch-offset` | `-6px` |
739
+ | `--motion-result-latch-angle` | `-28deg` |