@nurihaus/web-design-system 3.11.0 → 3.12.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.
- package/README.md +12 -0
- package/dist/.storybook/patterns.d.ts +36 -0
- package/dist/.storybook/preview.d.ts +12 -0
- package/dist/.storybook/story-kit.d.ts +20 -2
- package/dist/ai/components.md +183 -10
- package/dist/ai/patterns.md +2899 -0
- package/dist/ai/tokens.md +10 -0
- package/dist/chunk-6459.js +3 -1
- package/dist/chunk-7653.js +4 -0
- package/dist/components/asset/asset.d.ts +5 -5
- package/dist/components/asset/asset.stories.d.ts +5 -5
- package/dist/components/bottom-bar/bottom-bar.stories.d.ts +5 -5
- package/dist/components/breadcrumb/breadcrumb.stories.d.ts +1 -0
- package/dist/components/button/button.stories.d.ts +1 -0
- package/dist/components/check-box/check-box.stories.d.ts +1 -0
- package/dist/components/chip-group/chip-group.stories.d.ts +1 -0
- package/dist/components/drawer/drawer.stories.d.ts +3 -0
- package/dist/components/drop-down/drop-down.stories.d.ts +1 -0
- package/dist/components/empty-state/empty-state.stories.d.ts +12 -12
- package/dist/components/icon/icon-paths.d.ts +4 -0
- package/dist/components/icon/icon.stories.d.ts +1 -1
- package/dist/components/list/list-footer.stories.d.ts +8 -8
- package/dist/components/list/list-header.stories.d.ts +5 -5
- package/dist/components/list/list-row.stories.d.ts +9 -9
- package/dist/components/media/base-media.d.ts +2 -4
- package/dist/components/media/media-type.d.ts +6 -1
- package/dist/components/message/message.stories.d.ts +9 -9
- package/dist/components/modal/modal-with-double-button.stories.d.ts +1 -0
- package/dist/components/modal/modal.stories.d.ts +3 -0
- package/dist/components/notice/notice.stories.d.ts +6 -6
- package/dist/components/numeric-spinner/numeric-spinner.stories.d.ts +1 -0
- package/dist/components/overlay/overlay.stories.d.ts +1 -1
- package/dist/components/pagination/pagination.stories.d.ts +1 -0
- package/dist/components/radio/radio.stories.d.ts +1 -0
- package/dist/components/rating/rating.stories.d.ts +1 -0
- package/dist/components/segmented-control/segmented-control.stories.d.ts +1 -0
- package/dist/components/skeleton/skeleton-group.stories.d.ts +1 -1
- package/dist/components/skeleton/skeleton.stories.d.ts +7 -7
- package/dist/components/slider/slider.stories.d.ts +1 -0
- package/dist/components/switch/switch.stories.d.ts +1 -0
- package/dist/components/table/table.stories.d.ts +20 -0
- package/dist/components/tabs/tabs.stories.d.ts +1 -0
- package/dist/components/text-field/text-field.stories.d.ts +1 -1
- package/dist/components/toast/toast.stories.d.ts +9 -6
- package/dist/components/tooltip/tooltip.stories.d.ts +2 -0
- package/dist/components/top/top.stories.d.ts +4 -4
- package/dist/components.css +273 -18
- package/dist/data-table.js +60 -56
- package/dist/docs/patterns/desktop/admin-bulk.stories.d.ts +17 -0
- package/dist/docs/patterns/desktop/admin-dashboard.stories.d.ts +16 -0
- package/dist/docs/patterns/desktop/admin-detail.stories.d.ts +13 -0
- package/dist/docs/patterns/desktop/admin-form.stories.d.ts +16 -0
- package/dist/docs/patterns/desktop/admin-list.stories.d.ts +13 -0
- package/dist/docs/patterns/desktop/admin-login.stories.d.ts +16 -0
- package/dist/docs/patterns/desktop/admin-messages.stories.d.ts +17 -0
- package/dist/docs/patterns/desktop/admin-report.stories.d.ts +17 -0
- package/dist/docs/patterns/desktop/admin-review.stories.d.ts +16 -0
- package/dist/docs/patterns/desktop/admin-settings.stories.d.ts +16 -0
- package/dist/docs/patterns/desktop/admin-states.stories.d.ts +18 -0
- package/dist/docs/patterns/desktop/admin-wizard.stories.d.ts +17 -0
- package/dist/docs/patterns/mobile/chat.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/confirm.stories.d.ts +13 -0
- package/dist/docs/patterns/mobile/detail.stories.d.ts +13 -0
- package/dist/docs/patterns/mobile/empty.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/feed.stories.d.ts +17 -0
- package/dist/docs/patterns/mobile/filter-sheet.stories.d.ts +17 -0
- package/dist/docs/patterns/mobile/form.stories.d.ts +13 -0
- package/dist/docs/patterns/mobile/home.stories.d.ts +13 -0
- package/dist/docs/patterns/mobile/list.stories.d.ts +13 -0
- package/dist/docs/patterns/mobile/loading.stories.d.ts +18 -0
- package/dist/docs/patterns/mobile/login.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/media.stories.d.ts +16 -0
- package/dist/docs/patterns/mobile/notifications.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/profile.stories.d.ts +13 -0
- package/dist/docs/patterns/mobile/result.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/review-write.stories.d.ts +17 -0
- package/dist/docs/patterns/mobile/rewards.stories.d.ts +19 -0
- package/dist/docs/patterns/mobile/search.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/secure-input.stories.d.ts +18 -0
- package/dist/docs/patterns/mobile/settings.stories.d.ts +15 -0
- package/dist/docs/patterns/mobile/wizard.stories.d.ts +15 -0
- package/dist/eslint/README.md +79 -0
- package/dist/eslint/index.js +36 -0
- package/dist/eslint/lib/ds-jsx.js +203 -0
- package/dist/eslint/rules/no-cta-in-list-row.js +18 -0
- package/dist/eslint/rules/no-fill-in-card.js +22 -0
- package/dist/eslint/rules/no-fill-in-empty-state.js +21 -0
- package/dist/eslint/rules/no-nav-with-cta.js +25 -0
- package/dist/eslint/rules/no-nested-card.js +18 -0
- package/dist/eslint/rules/no-raw-color.js +26 -0
- package/dist/eslint/rules/no-raw-radius.js +26 -0
- package/dist/eslint/rules/no-sheet-in-modal.js +23 -0
- package/dist/eslint/rules/one-primary-fill.js +20 -0
- package/dist/eslint/rules/single-top.js +20 -0
- package/dist/index.js +108 -68
- package/dist/media-thumbnail.js +2 -0
- package/dist/media-viewer.js +2 -0
- package/dist/pagination.js +32 -8
- package/dist/scripts/patterns-doc.d.mts +26 -0
- package/dist/search-field.js +3 -3
- package/dist/styles.css +243 -17
- package/dist/text-field.js +3 -3
- package/dist/tokens/generated/primitive.d.ts +4 -0
- package/dist/tokens.css +3 -0
- package/dist/tokens.js +4 -0
- package/package.json +7 -4
- package/dist/.storybook/migration.d.ts +0 -1
package/dist/ai/components.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
화면을 만들 때 아래 컴포넌트가 있으면 직접 만들지 말고 이것을 쓴다. 색·간격·글자는 같은 폴더의 `tokens.md` 변수만 쓴다.
|
|
6
6
|
|
|
7
|
+
화면을 조합할 때는 같은 폴더의 `patterns.md` 를 먼저 본다. 화면 유형(홈·목록·폼·어드민 목록 등)마다 놓는 컴포넌트와 순서·size·variant 가 정해져 있다.
|
|
8
|
+
|
|
7
9
|
## CSS 가져오기
|
|
8
10
|
|
|
9
11
|
앱에서 한 번만 가져온다. 둘 중 하나를 고른다.
|
|
@@ -263,6 +265,8 @@ import { Asset } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
263
265
|
</Asset.Frame>
|
|
264
266
|
```
|
|
265
267
|
|
|
268
|
+
**반응형.** 그대로 됨. 표시용 틀이고 폭은 부모를 따른다.
|
|
269
|
+
|
|
266
270
|
**모션.** 없음. onClick 을 받지 않는 표시용 틀이다. 누를 수 있게 하려면 쓰는 쪽이 버튼으로 감싸고 그 버튼이 press 를 받는다. Lottie·Video 는 재생 자체가 내용이라 모션 토큰 대상이 아니다(재생은 앱의 플레이어와 video 요소가 한다, ADR 0014).
|
|
267
271
|
|
|
268
272
|
### Asset.Frame props
|
|
@@ -283,7 +287,7 @@ import { Asset } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
283
287
|
| prop | 타입 | 필수 | 기본값 |
|
|
284
288
|
| --- | --- | --- | --- |
|
|
285
289
|
| `label` | `string` | | |
|
|
286
|
-
| `name` | `'circle' \| 'link' \| 'image' \| 'x' \| 'warning' \| 'copy' \| 'house' \| 'megaphone-simple' \| 'chats-circle' \| 'user-circle' \| 'bell' \| 'caret-left' \| 'magnifying-glass' \| 'dots-three' \| 'gear-six' \| 'chat-circle' \| 'paper-plane-tilt' \| 'plus' \| 'minus' \| 'camera' \| 'video-camera' \| 'play' \| 'upload-simple' \| 'calendar-blank' \| 'clock' \| 'map-pin' \| 'truck' \| 'ticket' \| 'qr-code' \| 'sparkle' \| 'gift' \| 'wallet' \| 'bank' \| 'credit-card' \| 'check-circle' \| 'check' \| 'info' \| 'question' \| 'lock' \| 'pencil-simple' \| 'trash' \| 'share-network' \| 'eye' \| 'sliders-horizontal' \| 'heart' \| 'star' \| 'globe' \| 'sign-out' \| 'caret-right' \| 'caret-down' \| 'arrow-right' \| 'dots-six-vertical' \| 'envelope-simple' \| 'phone' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo' \| 'whatsapp-logo' \| 'telegram-logo'` | 예 | |
|
|
290
|
+
| `name` | `'circle' \| 'link' \| 'image' \| 'x' \| 'warning' \| 'copy' \| 'house' \| 'megaphone-simple' \| 'chats-circle' \| 'user-circle' \| 'bell' \| 'caret-left' \| 'magnifying-glass' \| 'dots-three' \| 'gear-six' \| 'chat-circle' \| 'paper-plane-tilt' \| 'plus' \| 'minus' \| 'camera' \| 'video-camera' \| 'play' \| 'upload-simple' \| 'calendar-blank' \| 'clock' \| 'map-pin' \| 'truck' \| 'ticket' \| 'qr-code' \| 'sparkle' \| 'gift' \| 'wallet' \| 'bank' \| 'credit-card' \| 'check-circle' \| 'check' \| 'info' \| 'question' \| 'lock' \| 'pencil-simple' \| 'trash' \| 'share-network' \| 'eye' \| 'eye-slash' \| 'sliders-horizontal' \| 'heart' \| 'star' \| 'globe' \| 'sign-out' \| 'caret-right' \| 'caret-down' \| 'arrow-right' \| 'dots-six-vertical' \| 'envelope-simple' \| 'phone' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo' \| 'whatsapp-logo' \| 'telegram-logo'` | 예 | |
|
|
287
291
|
| `weight` | `'fill' \| 'regular'` | | |
|
|
288
292
|
|
|
289
293
|
이 밖에 React·HTML 기본 속성 474개를 받는다.
|
|
@@ -357,6 +361,8 @@ import { Avatar } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
357
361
|
<Avatar size="m" src="https://placehold.co/80x80" alt="프로필 이미지" />
|
|
358
362
|
```
|
|
359
363
|
|
|
364
|
+
**반응형.** 그대로 됨. 고정 지름의 표시용 이미지다.
|
|
365
|
+
|
|
360
366
|
**모션.** 없음. onClick 을 받지 않는 표시용 이미지다. 누를 수 있게 하려면 쓰는 쪽이 버튼으로 감싸고 그 버튼이 press 를 받는다.
|
|
361
367
|
|
|
362
368
|
### props
|
|
@@ -434,6 +440,8 @@ import { CTAButton } from '@nurihaus/web-design-system'; // 루트.
|
|
|
434
440
|
</>
|
|
435
441
|
```
|
|
436
442
|
|
|
443
|
+
**반응형.** 터치 타깃만 키움. xs(28px)·s(38px)의 누르는 자리를 세로 44px 까지 넓힌다. 가로는 버튼 폭이 이미 넓다.
|
|
444
|
+
|
|
437
445
|
**모션.** press(`pressEffect`) · reject · appear(opt, `appear`) · busy(`loading`). 토큰 값과 규칙은 `motion.md`.
|
|
438
446
|
|
|
439
447
|
### props
|
|
@@ -505,6 +513,8 @@ import { IconButton } from '@nurihaus/web-design-system'; // 루트.
|
|
|
505
513
|
</>
|
|
506
514
|
```
|
|
507
515
|
|
|
516
|
+
**반응형.** 그대로 됨. 이미 `::after` 로 `--touch-target` 이다.
|
|
517
|
+
|
|
508
518
|
**모션.** press(`pressEffect`) · busy(`loading`). 토큰 값과 규칙은 `motion.md`.
|
|
509
519
|
|
|
510
520
|
### props
|
|
@@ -520,7 +530,7 @@ import { IconButton } from '@nurihaus/web-design-system'; // 루트.
|
|
|
520
530
|
| `asChild` | `boolean` | | |
|
|
521
531
|
| `trackProps` | `Record<string, string \| number \| boolean>` | | |
|
|
522
532
|
| `pressEffect` | `boolean` | | `true` |
|
|
523
|
-
| `icon` | `'circle' \| 'link' \| 'image' \| 'x' \| 'warning' \| 'copy' \| 'house' \| 'megaphone-simple' \| 'chats-circle' \| 'user-circle' \| 'bell' \| 'caret-left' \| 'magnifying-glass' \| 'dots-three' \| 'gear-six' \| 'chat-circle' \| 'paper-plane-tilt' \| 'plus' \| 'minus' \| 'camera' \| 'video-camera' \| 'play' \| 'upload-simple' \| 'calendar-blank' \| 'clock' \| 'map-pin' \| 'truck' \| 'ticket' \| 'qr-code' \| 'sparkle' \| 'gift' \| 'wallet' \| 'bank' \| 'credit-card' \| 'check-circle' \| 'check' \| 'info' \| 'question' \| 'lock' \| 'pencil-simple' \| 'trash' \| 'share-network' \| 'eye' \| 'sliders-horizontal' \| 'heart' \| 'star' \| 'globe' \| 'sign-out' \| 'caret-right' \| 'caret-down' \| 'arrow-right' \| 'dots-six-vertical' \| 'envelope-simple' \| 'phone' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo' \| 'whatsapp-logo' \| 'telegram-logo'` | 예 | |
|
|
533
|
+
| `icon` | `'circle' \| 'link' \| 'image' \| 'x' \| 'warning' \| 'copy' \| 'house' \| 'megaphone-simple' \| 'chats-circle' \| 'user-circle' \| 'bell' \| 'caret-left' \| 'magnifying-glass' \| 'dots-three' \| 'gear-six' \| 'chat-circle' \| 'paper-plane-tilt' \| 'plus' \| 'minus' \| 'camera' \| 'video-camera' \| 'play' \| 'upload-simple' \| 'calendar-blank' \| 'clock' \| 'map-pin' \| 'truck' \| 'ticket' \| 'qr-code' \| 'sparkle' \| 'gift' \| 'wallet' \| 'bank' \| 'credit-card' \| 'check-circle' \| 'check' \| 'info' \| 'question' \| 'lock' \| 'pencil-simple' \| 'trash' \| 'share-network' \| 'eye' \| 'eye-slash' \| 'sliders-horizontal' \| 'heart' \| 'star' \| 'globe' \| 'sign-out' \| 'caret-right' \| 'caret-down' \| 'arrow-right' \| 'dots-six-vertical' \| 'envelope-simple' \| 'phone' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo' \| 'whatsapp-logo' \| 'telegram-logo'` | 예 | |
|
|
524
534
|
|
|
525
535
|
이 밖에 React·HTML 기본 속성 275개를 받는다.
|
|
526
536
|
|
|
@@ -566,6 +576,8 @@ import { TextButton } from '@nurihaus/web-design-system'; // 루트.
|
|
|
566
576
|
</>
|
|
567
577
|
```
|
|
568
578
|
|
|
579
|
+
**반응형.** 그대로 됨. 이미 `::before` 로 `--touch-target` 이다.
|
|
580
|
+
|
|
569
581
|
**모션.** press(`pressEffect`). 토큰 값과 규칙은 `motion.md`.
|
|
570
582
|
|
|
571
583
|
### props
|
|
@@ -609,6 +621,8 @@ import { Callout } from '@nurihaus/web-design-system'; // 루트.
|
|
|
609
621
|
</>
|
|
610
622
|
```
|
|
611
623
|
|
|
624
|
+
**반응형.** 그대로 됨. 한 줄짜리 짧은 말풍선이다. 긴 문구는 쓰는 쪽이 줄인다.
|
|
625
|
+
|
|
612
626
|
**모션.** enter · attention. 토큰 값과 규칙은 `motion.md`.
|
|
613
627
|
|
|
614
628
|
### props
|
|
@@ -660,6 +674,8 @@ fx.current?.shine();
|
|
|
660
674
|
<OptionBadge option="진행 중" variant="primary" size="s" width="fit-content" />
|
|
661
675
|
```
|
|
662
676
|
|
|
677
|
+
**반응형.** 그대로 됨. 누를 수 없는 짧은 표시다.
|
|
678
|
+
|
|
663
679
|
**모션.** attention(opt). 토큰 값과 규칙은 `motion.md`.
|
|
664
680
|
|
|
665
681
|
### props
|
|
@@ -725,6 +741,8 @@ fx.current?.blink(3);
|
|
|
725
741
|
/>
|
|
726
742
|
```
|
|
727
743
|
|
|
744
|
+
**반응형.** 그대로 됨. 누를 수 없는 짧은 표시다.
|
|
745
|
+
|
|
728
746
|
**모션.** attention(opt). 토큰 값과 규칙은 `motion.md`.
|
|
729
747
|
|
|
730
748
|
### props
|
|
@@ -786,6 +804,8 @@ fx.current?.shine();
|
|
|
786
804
|
/>
|
|
787
805
|
```
|
|
788
806
|
|
|
807
|
+
**반응형.** 그대로 됨. 누를 수 없는 짧은 표시다.
|
|
808
|
+
|
|
789
809
|
**모션.** attention(opt). 토큰 값과 규칙은 `motion.md`.
|
|
790
810
|
|
|
791
811
|
### props
|
|
@@ -815,6 +835,8 @@ import { DataTable } from '@nurihaus/web-design-system'; // 루트.
|
|
|
815
835
|
|
|
816
836
|
`variant="padded"`를 주면 헤더 칸과 본문 셀이 여백·글자 크기·색을 기본으로 갖고, `fixedRowsIndex`로 고정한 마지막 열 오른쪽에 경계선이 행 높이만큼 그어진다. 기본 `plain`은 셀 내용이 모양을 정한다. `padded`에서 여백만 끄려면 `className`으로 `--data-table-cell-padding: 0`을 준다.
|
|
817
837
|
|
|
838
|
+
좁은 화면(768px 미만)에서는 표를 감싼 `div.data-table-scroll` 이 가로로 스크롤하고, 머리행은 페이지 대신 그 감싸개 위에 붙는다. `className`·`ref` 는 감싸개가 아니라 표(`table`)에 붙는다.
|
|
839
|
+
|
|
818
840
|
`track`을 주면 `onClickRow`가 있는 `rows` 항목(헤더 칸)을 누를 때 `click`과 그 `id`를 `value`에 담아 사용 로그로 보낸다. `onClickRow`가 없는 칸과 본문 셀은 보내지 않는다.
|
|
819
841
|
|
|
820
842
|
- `pressEffect`(기본 `true`): `onClickRow`가 있는 헤더 칸과 `onClickCell`이 있는 본문 셀을 누르는 동안 어두워진다. 핸들러가 없는 칸에는 붙지 않는다. `false`면 끈다.
|
|
@@ -855,6 +877,8 @@ import { DataTable } from '@nurihaus/web-design-system'; // 루트.
|
|
|
855
877
|
/>
|
|
856
878
|
```
|
|
857
879
|
|
|
880
|
+
**반응형.** 레이아웃이 바뀜. 768px 미만에서 감싸개 `.data-table-scroll` 이 가로 스크롤 칸이 된다. 고정 열은 왼쪽에 남고, 머리행 sticky 는 페이지 대신 감싸개 기준이 된다.
|
|
881
|
+
|
|
858
882
|
**모션.** press(`pressEffect`) · attention(opt). 토큰 값과 규칙은 `motion.md`.
|
|
859
883
|
|
|
860
884
|
### props
|
|
@@ -892,7 +916,7 @@ import { TextField } from '@nurihaus/web-design-system'; // 루트.
|
|
|
892
916
|
- `format={{ transform, reset }}`을 주면 `value`·`defaultValue`·`onChange`는 raw 값을 주고받고 input에는 `transform(raw)`가 보인다. `onChange`의 `event.target.value`는 이미 `reset`으로 되돌린 raw 값이다. `reset`이 없으면 화면 글을 그대로 raw로 쓴다. `transform`이 글자를 끼워 넣으면(하이픈 등) 입력 중 커서가 끝으로 옮겨갈 수 있다. `maxLength`는 화면 글 길이에 걸리므로 raw 길이 제한은 `reset`에서 자른다.
|
|
893
917
|
- `value`를 주지 않으면 input 값은 DOM 이 쥔다. react-hook-form `register`처럼 `ref`로 값을 넣고 읽는 폼을 그대로 쓸 수 있고, 다시 그려도 넣은 값이 남는다. `format`을 함께 쓰면 DOM(`ref.value`)에는 화면 글(`transform(raw)`)이 남으므로 raw 값은 `onChange`에서 받는다.
|
|
894
918
|
- `clearable`이면 값이 있고 포커스가 입력 상자 안에 있을 때 지우기 버튼(X, `aria-label` '입력 지우기')이 뜬다. 누르면 포커스는 input에 남고 `onChange`가 `''`로 불린 뒤 `onClear`가 불린다. `disabled`·`readOnly`면 뜨지 않는다.
|
|
895
|
-
- `passwordToggle`은 `type='password'`일 때만 보기·숨기기 버튼을 붙인다. 누르면 input `type`이 `text`·`password`로 바뀌고 `aria-pressed`와 `aria-label`('비밀번호 보기'·'비밀번호 숨기기')이 따라 바뀌며 `onVisibilityChange(visible)`가 불린다.
|
|
919
|
+
- `passwordToggle`은 `type='password'`일 때만 보기·숨기기 버튼을 붙인다. 누르면 input `type`이 `text`·`password`로 바뀌고 `aria-pressed`와 `aria-label`('비밀번호 보기'·'비밀번호 숨기기')이 따라 바뀌며 `onVisibilityChange(visible)`가 불린다. 아이콘은 지금 상태를 보인다 — 숨김이면 사선 그은 눈(`eye-slash`), 보이면 눈(`eye`).
|
|
896
920
|
|
|
897
921
|
**쓰지 않는다.** 여러 줄 입력은 지원하지 않는다(`<input>`만 렌더한다). 정해진 값 중에서 고르는 입력은 DropDown이나 Radio를 쓴다.
|
|
898
922
|
|
|
@@ -932,6 +956,8 @@ import { TextField } from '@nurihaus/web-design-system'; // 루트.
|
|
|
932
956
|
/>
|
|
933
957
|
```
|
|
934
958
|
|
|
959
|
+
**반응형.** 그대로 됨. 폭 100% 이고 지우기·보기 버튼은 이미 `--touch-target` 이다.
|
|
960
|
+
|
|
935
961
|
**모션.** press(opt). 토큰 값과 규칙은 `motion.md`.
|
|
936
962
|
|
|
937
963
|
### props
|
|
@@ -1024,6 +1050,8 @@ import { Radio } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
1024
1050
|
/>
|
|
1025
1051
|
```
|
|
1026
1052
|
|
|
1053
|
+
**반응형.** 터치 타깃만 키움. 18px 원은 그대로 두고 누르는 자리를 44×44 까지 넓힌다.
|
|
1054
|
+
|
|
1027
1055
|
**모션.** press(`pressEffect`) · confirm(`motion`, `delay`). 토큰 값과 규칙은 `motion.md`.
|
|
1028
1056
|
|
|
1029
1057
|
### props
|
|
@@ -1087,6 +1115,8 @@ import { Checkbox } from '@nurihaus/web-design-system'; // 루트.
|
|
|
1087
1115
|
<Checkbox id="agree-terms" label="약관에 동의합니다" checked={false} onChange={() => {}} />
|
|
1088
1116
|
```
|
|
1089
1117
|
|
|
1118
|
+
**반응형.** 터치 타깃만 키움. 18·20·24px 상자는 그대로 두고 누르는 자리를 44×44 까지 넓힌다.
|
|
1119
|
+
|
|
1090
1120
|
**모션.** press(`pressEffect`) · confirm(`delay`). 토큰 값과 규칙은 `motion.md`.
|
|
1091
1121
|
|
|
1092
1122
|
### props
|
|
@@ -1155,6 +1185,8 @@ import { Switch } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
1155
1185
|
<Switch id="push-alarm" label="푸시 알림 받기" checked={true} onChange={() => {}} />
|
|
1156
1186
|
```
|
|
1157
1187
|
|
|
1188
|
+
**반응형.** 터치 타깃만 키움. 높이 18~26px 의 누르는 자리를 44×44 까지 넓힌다.
|
|
1189
|
+
|
|
1158
1190
|
**모션.** press(`pressEffect`) · confirm(`motion`, `delay`). 토큰 값과 규칙은 `motion.md`.
|
|
1159
1191
|
|
|
1160
1192
|
### props
|
|
@@ -1216,6 +1248,8 @@ import { TextArea } from '@nurihaus/web-design-system'; // 루트.
|
|
|
1216
1248
|
<TextArea name="memo" title="메모" placeholder="내용을 입력하세요" rows={4} />
|
|
1217
1249
|
```
|
|
1218
1250
|
|
|
1251
|
+
**반응형.** 그대로 됨. 폭 100% 이고 상자 안 버튼은 이미 `--touch-target` 이다.
|
|
1252
|
+
|
|
1219
1253
|
**모션.** press(opt). 토큰 값과 규칙은 `motion.md`.
|
|
1220
1254
|
|
|
1221
1255
|
### props
|
|
@@ -1250,6 +1284,8 @@ import { Toast } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
1250
1284
|
|
|
1251
1285
|
- `onEntered`는 등장 애니메이션이 끝난 뒤, `onExited`는 퇴장 애니메이션이 끝나 토스트가 사라진 뒤 한 번 불린다. 시간이 다 되거나 밀어서 스스로 닫힐 때도 불린다. reduced-motion 이면 열고 닫는 즉시 불린다.
|
|
1252
1286
|
|
|
1287
|
+
좁은 화면(768px 미만)에서는 `position` 과 상관없이 화면 폭을 채운다(양옆 16px). 위·아래는 `position` 을 따른다.
|
|
1288
|
+
|
|
1253
1289
|
뒤로 가기로 닫는 `closeOnBackEvent` 는 없다. 토스트는 화면을 막지 않고 스스로 사라지기 때문이다. state 없이 띄우려면 `useToast().show` 를 쓴다(OverlayProvider).
|
|
1254
1290
|
|
|
1255
1291
|
**쓰지 않는다.** 사용자의 확인이나 선택이 필요한 내용은 ModalWithDoubleButton을 쓴다. 입력 오류처럼 그 자리에서 고쳐야 하는 안내는 TextField의 helper text를 쓴다.
|
|
@@ -1281,6 +1317,8 @@ import { Toast } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
1281
1317
|
<Toast open title="저장했습니다" description="변경 사항이 반영됐습니다." variant="success" onOpenChange={() => {}} />
|
|
1282
1318
|
```
|
|
1283
1319
|
|
|
1320
|
+
**반응형.** 레이아웃이 바뀜. 768px 미만에서 모서리 대신 화면 폭을 채운다(양옆 `--spacing-16`). 닫기 버튼(18px)의 누르는 자리는 44px 다.
|
|
1321
|
+
|
|
1284
1322
|
**모션.** enter(`onEntered`) · exit(`onExited`). 토큰 값과 규칙은 `motion.md`.
|
|
1285
1323
|
|
|
1286
1324
|
### props
|
|
@@ -1341,6 +1379,8 @@ import { ToastProvider } from '@nurihaus/web-design-system'; // 루
|
|
|
1341
1379
|
</ToastProvider>
|
|
1342
1380
|
```
|
|
1343
1381
|
|
|
1382
|
+
**반응형.** 그대로 됨. 그리는 것이 없다. 자리와 폭은 Toast 가 맡는다.
|
|
1383
|
+
|
|
1344
1384
|
**모션.** 없음. 토스트 자리(viewport)만 그린다. 모션은 각 Toast 가 받는다.
|
|
1345
1385
|
|
|
1346
1386
|
### props
|
|
@@ -1362,6 +1402,8 @@ import { Pagination } from '@nurihaus/web-design-system'; // 루트.
|
|
|
1362
1402
|
|
|
1363
1403
|
**언제 쓴다.** 목록이나 검색 결과가 여러 페이지로 나뉘어 있고 사용자가 번호로 페이지를 고를 때 쓴다. `totalPages`는 필수다. 현재 페이지는 `page`(controlled)·`defaultPage`(uncontrolled)로 주고, `onPageChange`는 새 페이지 번호(1부터)를 받는다. 1과 마지막 페이지는 항상 보이고, 현재 페이지 양옆 `siblingCount`(기본 1)개를 보이며 사이가 벌어지면 `…`를 넣는다. `className`·`style`은 루트 `nav`에 붙는다. `aria-label`을 주면 nav 이름을 바꾼다(기본 "페이지 탐색").
|
|
1364
1404
|
|
|
1405
|
+
좁은 화면(768px 미만)에서는 `siblingCount` 와 상관없이 현재 페이지 양옆 번호를 숨겨 `‹ 1 … 5 … 10 ›` 처럼 일곱 칸이 된다.
|
|
1406
|
+
|
|
1365
1407
|
`track`을 주면 페이지가 바뀔 때 `change`와 새 페이지 번호(문자열)를 `value`에 담아 사용 로그로 보낸다. 현재 페이지를 다시 누르면 보내지 않는다.
|
|
1366
1408
|
|
|
1367
1409
|
- `pressEffect`(기본 `true`): 페이지·이전·다음 버튼을 누르는 동안 살짝 줄어들고 어두워진다. `false`면 끈다.
|
|
@@ -1395,6 +1437,8 @@ import { Pagination } from '@nurihaus/web-design-system'; // 루트.
|
|
|
1395
1437
|
<Pagination totalPages={10} page={3} onPageChange={() => {}} />
|
|
1396
1438
|
```
|
|
1397
1439
|
|
|
1440
|
+
**반응형.** 레이아웃이 바뀜. 768px 미만에서 현재 쪽의 이웃 번호를 숨겨 `‹ 1 … 5 … 10 ›` 7칸이 된다. 넓은 목록과 좁은 목록을 함께 그리고 CSS 가 고른다.
|
|
1441
|
+
|
|
1398
1442
|
**모션.** press(`pressEffect`). 토큰 값과 규칙은 `motion.md`.
|
|
1399
1443
|
|
|
1400
1444
|
### props
|
|
@@ -1424,6 +1468,7 @@ import { Modal } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
1424
1468
|
**언제 쓴다.** 제목과 본문, 버튼 영역이 자유로운 일반 대화상자에 쓴다. `open · defaultOpen · onOpenChange`로 열고 닫고, `trigger`를 주면 그 요소를 클릭해 열린다. `title`은 필수이고 dialog의 접근성 이름이 된다. `footer`에는 CTAButton 을 넣는다. `className`·`style`은 dialog 요소(Content)에 붙는다. X 아이콘(`showCloseIcon`, 기본 true)·Escape·오버레이 클릭으로 닫힌다.
|
|
1425
1469
|
|
|
1426
1470
|
- 본문(`children`)이 길면 본문만 스크롤된다. 창은 화면 안에 머물고, 제목·X 아이콘과 `footer` 버튼은 제자리에 있다.
|
|
1471
|
+
- 좁은 화면(768px 미만)에서는 창 바깥 여백이 16px, 안 여백이 20px 로 줄어 본문이 넓어진다. ModalWithDoubleButton 도 같다.
|
|
1427
1472
|
- `closeOnOverlayClick={false}`면 바깥을 눌러도 닫히지 않고 창이 좌우로 한 번 흔들린다. 기본 true.
|
|
1428
1473
|
- `closeOnEscape={false}`면 Escape 로 닫히지 않는다. 기본 true.
|
|
1429
1474
|
- `closeOnBackEvent`(기본 true)면 열린 동안 history 항목을 하나 쌓아, 브라우저·기기의 뒤로 가기가 페이지를 떠나지 않고 창을 닫는다. 이때도 `onOpenChange(false)` 가 불린다. 버튼·Esc 로 닫으면 쌓은 항목을 `history.back()` 으로 되돌린다. 겹쳐 열면 나중에 연 것부터 닫힌다. 주소가 바뀌어야 하는 화면 단위 오버레이에서는 `false` 로 끄고 라우터로 연다.
|
|
@@ -1475,6 +1520,8 @@ import { Modal } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
1475
1520
|
</Modal>
|
|
1476
1521
|
```
|
|
1477
1522
|
|
|
1523
|
+
**반응형.** 레이아웃이 바뀜. 768px 미만에서 바깥 여백이 `--spacing-16`, 안 여백이 `--spacing-20` 으로 줄어 본문이 넓어진다. 닫기 아이콘(20px)의 누르는 자리는 44px 다.
|
|
1524
|
+
|
|
1478
1525
|
**모션.** enter(`onEntered`) · exit(`onExited`) · reject(opt). 토큰 값과 규칙은 `motion.md`.
|
|
1479
1526
|
|
|
1480
1527
|
### props
|
|
@@ -1513,6 +1560,7 @@ import { Drawer } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
1513
1560
|
|
|
1514
1561
|
**언제 쓴다.** 상세 정보나 필터처럼 현재 화면을 떠나지 않고 옆이나 아래에서 패널을 꺼내 보여줄 때 쓴다. `trigger`에 넘긴 요소를 클릭하면 열리고, `open`·`defaultOpen`·`onOpenChange`로 제어한다. `title`은 필수이며 dialog 의 접근성 이름이 된다. `side`(`right`·`left`·`bottom`, 기본 `right`)와 `size`(`s`·`m`·`l`, 기본 `m`)로 방향과 폭(bottom 은 높이)을 고른다. bottom 은 `fit`(`size` 기본 · `content` · `screen`)으로 높이를 정하는 법을 바꾼다. `content`는 내용 높이에 맞추고 화면의 92%(`--sheet-max-height`)를 넘으면 본문만 스크롤한다. `screen`은 늘 화면의 92%다. 어느 쪽이든 `footer`는 아래에 남는다. right·left 에서는 효과가 없다. Escape·바깥 클릭·X 버튼으로 닫히고, `className`·`style`은 패널에 붙는다.
|
|
1515
1562
|
|
|
1563
|
+
- right·left 패널은 화면 폭에서 56px(`--drawer-edge-gap`)을 남긴 폭보다 넓어지지 않는다. 좁은 화면에서도 바깥을 눌러 닫을 자리가 남는다.
|
|
1516
1564
|
- `motion`(`weak`·`strong`, 기본 `weak`)은 등장 세기다. `strong`은 스프링으로 끝에서 한 번 튄다. 퇴장은 같다.
|
|
1517
1565
|
- `closeOnOverlayClick={false}`면 바깥을 눌러도 닫히지 않고 패널이 좌우로 한 번 흔들린다. 기본 true.
|
|
1518
1566
|
- `closeOnEscape={false}`면 Escape 로 닫히지 않는다. 기본 true.
|
|
@@ -1558,6 +1606,8 @@ import { Drawer } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
1558
1606
|
</Drawer>
|
|
1559
1607
|
```
|
|
1560
1608
|
|
|
1609
|
+
**반응형.** 레이아웃이 바뀜. 옆 패널의 최대 폭이 `100% - var(--drawer-edge-gap)`(56px) 라 좁은 화면에서도 바깥이 남아 눌러 닫을 수 있다. `@media` 없이 바뀐다.
|
|
1610
|
+
|
|
1561
1611
|
**모션.** enter(`motion`, `onEntered`) · exit(`onExited`) · reject(opt). 토큰 값과 규칙은 `motion.md`.
|
|
1562
1612
|
|
|
1563
1613
|
### props
|
|
@@ -1620,6 +1670,8 @@ import { Skeleton } from '@nurihaus/web-design-system'; // 루트.
|
|
|
1620
1670
|
<Skeleton shape="text" lines={3} />
|
|
1621
1671
|
```
|
|
1622
1672
|
|
|
1673
|
+
**반응형.** 그대로 됨. 폭이 % 와 부모를 따른다.
|
|
1674
|
+
|
|
1623
1675
|
**모션.** busy(`animated`). 토큰 값과 규칙은 `motion.md`.
|
|
1624
1676
|
|
|
1625
1677
|
### props
|
|
@@ -1676,6 +1728,8 @@ import { SkeletonGroup } from '@nurihaus/web-design-system'; // 루
|
|
|
1676
1728
|
<SkeletonGroup custom={['title', 'spacer:16', 'text']} repeat={2} />
|
|
1677
1729
|
```
|
|
1678
1730
|
|
|
1731
|
+
**반응형.** 그대로 됨. 폭이 % 와 부모를 따른다.
|
|
1732
|
+
|
|
1679
1733
|
**모션.** busy(`animated`). 토큰 값과 규칙은 `motion.md`.
|
|
1680
1734
|
|
|
1681
1735
|
### props
|
|
@@ -1735,6 +1789,8 @@ import { Breadcrumb } from '@nurihaus/web-design-system'; // 루트.
|
|
|
1735
1789
|
/>
|
|
1736
1790
|
```
|
|
1737
1791
|
|
|
1792
|
+
**반응형.** 터치 타깃만 키움. 이미 줄을 바꾼다. 글자 높이뿐인 링크의 누르는 자리를 세로로만 44px 까지 넓힌다.
|
|
1793
|
+
|
|
1738
1794
|
**모션.** press(`pressEffect`). 토큰 값과 규칙은 `motion.md`.
|
|
1739
1795
|
|
|
1740
1796
|
### props
|
|
@@ -1816,6 +1872,8 @@ import { DropDown } from '@nurihaus/web-design-system'; // 루트.
|
|
|
1816
1872
|
/>
|
|
1817
1873
|
```
|
|
1818
1874
|
|
|
1875
|
+
**반응형.** 터치 타깃만 키움. xs(28px)·s(38px) 트리거의 누르는 자리를 세로 44px 까지 넓힌다. 펼친 목록의 행은 이미 46px 이다.
|
|
1876
|
+
|
|
1819
1877
|
**모션.** press(`pressEffect`) · unfold · expand. 토큰 값과 규칙은 `motion.md`.
|
|
1820
1878
|
|
|
1821
1879
|
### props
|
|
@@ -1957,6 +2015,8 @@ import Link from 'next/link';
|
|
|
1957
2015
|
/>
|
|
1958
2016
|
```
|
|
1959
2017
|
|
|
2018
|
+
**반응형.** 그대로 됨. 기본 폭 240px 은 360 안에 든다. 좁은 화면의 내비게이션은 BottomNav 가 맡는다.
|
|
2019
|
+
|
|
1960
2020
|
**모션.** press(`pressEffect`) · expand · unfold. 토큰 값과 규칙은 `motion.md`.
|
|
1961
2021
|
|
|
1962
2022
|
### props
|
|
@@ -2011,6 +2071,8 @@ import { Text } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
2011
2071
|
<Text as="h2" text="캠페인 목록" size="xl" weight="bold" color="text-body" />
|
|
2012
2072
|
```
|
|
2013
2073
|
|
|
2074
|
+
**반응형.** 그대로 됨. 글자만 그린다. 부모 폭에서 줄을 바꾼다.
|
|
2075
|
+
|
|
2014
2076
|
**모션.** 없음. 글자만 그린다.
|
|
2015
2077
|
|
|
2016
2078
|
### props
|
|
@@ -2069,6 +2131,8 @@ import { Tooltip } from '@nurihaus/web-design-system'; // 루트.
|
|
|
2069
2131
|
<Tooltip trigger={<span>도움말</span>} content="최근 30일 기준입니다." direction="top" disabled={false} />
|
|
2070
2132
|
```
|
|
2071
2133
|
|
|
2134
|
+
**반응형.** 그대로 됨. Radix 가 화면 안으로 위치를 고친다. 터치에서는 열리지 않으므로 꼭 필요한 정보를 툴팁에만 두지 않는다.
|
|
2135
|
+
|
|
2072
2136
|
**모션.** enter(`motion`, `onEntered`) · exit(`onExited`). 토큰 값과 규칙은 `motion.md`.
|
|
2073
2137
|
|
|
2074
2138
|
### props
|
|
@@ -2116,6 +2180,8 @@ import { TooltipProvider } from '@nurihaus/web-design-system'; //
|
|
|
2116
2180
|
</TooltipProvider>
|
|
2117
2181
|
```
|
|
2118
2182
|
|
|
2183
|
+
**반응형.** 그대로 됨. 그리는 것이 없다.
|
|
2184
|
+
|
|
2119
2185
|
**모션.** 없음. DOM 을 그리지 않는다. 지연 시간만 나눠 준다.
|
|
2120
2186
|
|
|
2121
2187
|
### props
|
|
@@ -2138,7 +2204,7 @@ import { Tabs } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
2138
2204
|
|
|
2139
2205
|
- `pressEffect`(기본 `true`): 탭을 누르는 동안 선택 배경과 같은 보라 색조로 살짝 어두워진다(줄어들지는 않는다). 떼면 인디케이터가 그 자리로 미끄러진다. `false`면 끈다.
|
|
2140
2206
|
- `fullWidth`(기본 `false`): 탭들이 목록 너비를 똑같이 나눠 갖는다. 탭이 두세 개뿐인 모바일 화면에 쓴다.
|
|
2141
|
-
-
|
|
2207
|
+
- 목록이 넘치면 두 변형 모두 가로로 스크롤한다. 밀려 있으면 왼쪽 끝에 화살표가 나타나고, 누르면 처음 탭으로 스크롤한다. 좁은 화면(768px 미만)에서는 탭 좌우 여백이 16px 로 줄어든다.
|
|
2142
2208
|
|
|
2143
2209
|
**쓰지 않는다.** 다른 페이지로 이동하는 내비게이션은 CollapsibleMenu를 쓴다. 폼에서 값 하나를 고르는 입력은 Radio를 쓴다.
|
|
2144
2210
|
|
|
@@ -2182,6 +2248,8 @@ import { Tabs } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
2182
2248
|
/>
|
|
2183
2249
|
```
|
|
2184
2250
|
|
|
2251
|
+
**반응형.** 레이아웃이 바뀜. filled 변형도 underline 처럼 가로 스크롤 칸이 된다. 768px 미만에서 탭 좌우 안 여백이 `--spacing-16` 으로 줄어든다.
|
|
2252
|
+
|
|
2185
2253
|
**모션.** press(`pressEffect`) · indicate · enter. 토큰 값과 규칙은 `motion.md`.
|
|
2186
2254
|
|
|
2187
2255
|
### props
|
|
@@ -2265,6 +2333,8 @@ import { ModalWithDoubleButton } from '@nurihaus/web-design-system';
|
|
|
2265
2333
|
/>
|
|
2266
2334
|
```
|
|
2267
2335
|
|
|
2336
|
+
**반응형.** 레이아웃이 바뀜. Modal 과 같은 상자 규칙이다. 768px 미만에서 바깥 여백 `--spacing-16`, 안 여백 `--spacing-20`.
|
|
2337
|
+
|
|
2268
2338
|
**모션.** enter(`onEntered`) · exit(`onExited`). 토큰 값과 규칙은 `motion.md`.
|
|
2269
2339
|
|
|
2270
2340
|
### ModalWithDoubleButton.Row props
|
|
@@ -2341,6 +2411,8 @@ import { Spinner } from '@nurihaus/web-design-system'; // 루트.
|
|
|
2341
2411
|
<Spinner size="s" variant="brand" />
|
|
2342
2412
|
```
|
|
2343
2413
|
|
|
2414
|
+
**반응형.** 그대로 됨. 고정 지름의 표시다.
|
|
2415
|
+
|
|
2344
2416
|
**모션.** busy(`delay`). 토큰 값과 규칙은 `motion.md`.
|
|
2345
2417
|
|
|
2346
2418
|
### props
|
|
@@ -2391,6 +2463,8 @@ import { InlineLoading } from '@nurihaus/web-design-system'; // 루
|
|
|
2391
2463
|
<InlineLoading label="댓글을 불러오는 중" justifyContent="center" />
|
|
2392
2464
|
```
|
|
2393
2465
|
|
|
2466
|
+
**반응형.** 그대로 됨. 글자 줄 안에 든다.
|
|
2467
|
+
|
|
2394
2468
|
**모션.** busy(`delay`). 토큰 값과 규칙은 `motion.md`.
|
|
2395
2469
|
|
|
2396
2470
|
### props
|
|
@@ -2443,6 +2517,8 @@ import { OverlayLoading } from '@nurihaus/web-design-system'; // 루
|
|
|
2443
2517
|
<OverlayLoading open={true} message="사진 올리는 중 2/5" progress={40} />
|
|
2444
2518
|
```
|
|
2445
2519
|
|
|
2520
|
+
**반응형.** 그대로 됨. 화면을 덮는 fixed 층이고 진행 막대 240px 은 360 안에 든다.
|
|
2521
|
+
|
|
2446
2522
|
**모션.** busy(`delay`) · enter. 토큰 값과 규칙은 `motion.md`.
|
|
2447
2523
|
|
|
2448
2524
|
### props
|
|
@@ -2504,6 +2580,8 @@ import { ProgressBar } from '@nurihaus/web-design-system'; // 루트
|
|
|
2504
2580
|
<ProgressBar value={40} label="업로드 진행률" />
|
|
2505
2581
|
```
|
|
2506
2582
|
|
|
2583
|
+
**반응형.** 그대로 됨. 폭이 부모를 따른다.
|
|
2584
|
+
|
|
2507
2585
|
**모션.** busy(`animated`, `delay`) · progress(`animated`). 토큰 값과 규칙은 `motion.md`.
|
|
2508
2586
|
|
|
2509
2587
|
### props
|
|
@@ -2554,6 +2632,8 @@ import { LoadingDots } from '@nurihaus/web-design-system'; // 루트
|
|
|
2554
2632
|
<LoadingDots size="s" variant="brand" />
|
|
2555
2633
|
```
|
|
2556
2634
|
|
|
2635
|
+
**반응형.** 그대로 됨. 고정 크기의 표시다.
|
|
2636
|
+
|
|
2557
2637
|
**모션.** busy(`delay`). 토큰 값과 규칙은 `motion.md`.
|
|
2558
2638
|
|
|
2559
2639
|
### props
|
|
@@ -2613,6 +2693,8 @@ import { Icon } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
2613
2693
|
<Icon name="x" size="m" label="닫기" />
|
|
2614
2694
|
```
|
|
2615
2695
|
|
|
2696
|
+
**반응형.** 그대로 됨. 고정 크기의 표시다.
|
|
2697
|
+
|
|
2616
2698
|
**모션.** 없음. 장식 그림이다. 모션은 감싸는 컴포넌트가 정한다.
|
|
2617
2699
|
|
|
2618
2700
|
### props
|
|
@@ -2621,7 +2703,7 @@ import { Icon } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
2621
2703
|
| --- | --- | --- | --- |
|
|
2622
2704
|
| `label` | `string` | | |
|
|
2623
2705
|
| `size` | `'xs' \| 's' \| 'm' \| 'l' \| 'xl'` | | `'l'` |
|
|
2624
|
-
| `name` | `'circle' \| 'link' \| 'image' \| 'x' \| 'warning' \| 'copy' \| 'house' \| 'megaphone-simple' \| 'chats-circle' \| 'user-circle' \| 'bell' \| 'caret-left' \| 'magnifying-glass' \| 'dots-three' \| 'gear-six' \| 'chat-circle' \| 'paper-plane-tilt' \| 'plus' \| 'minus' \| 'camera' \| 'video-camera' \| 'play' \| 'upload-simple' \| 'calendar-blank' \| 'clock' \| 'map-pin' \| 'truck' \| 'ticket' \| 'qr-code' \| 'sparkle' \| 'gift' \| 'wallet' \| 'bank' \| 'credit-card' \| 'check-circle' \| 'check' \| 'info' \| 'question' \| 'lock' \| 'pencil-simple' \| 'trash' \| 'share-network' \| 'eye' \| 'sliders-horizontal' \| 'heart' \| 'star' \| 'globe' \| 'sign-out' \| 'caret-right' \| 'caret-down' \| 'arrow-right' \| 'dots-six-vertical' \| 'envelope-simple' \| 'phone' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo' \| 'whatsapp-logo' \| 'telegram-logo'` | 예 | |
|
|
2706
|
+
| `name` | `'circle' \| 'link' \| 'image' \| 'x' \| 'warning' \| 'copy' \| 'house' \| 'megaphone-simple' \| 'chats-circle' \| 'user-circle' \| 'bell' \| 'caret-left' \| 'magnifying-glass' \| 'dots-three' \| 'gear-six' \| 'chat-circle' \| 'paper-plane-tilt' \| 'plus' \| 'minus' \| 'camera' \| 'video-camera' \| 'play' \| 'upload-simple' \| 'calendar-blank' \| 'clock' \| 'map-pin' \| 'truck' \| 'ticket' \| 'qr-code' \| 'sparkle' \| 'gift' \| 'wallet' \| 'bank' \| 'credit-card' \| 'check-circle' \| 'check' \| 'info' \| 'question' \| 'lock' \| 'pencil-simple' \| 'trash' \| 'share-network' \| 'eye' \| 'eye-slash' \| 'sliders-horizontal' \| 'heart' \| 'star' \| 'globe' \| 'sign-out' \| 'caret-right' \| 'caret-down' \| 'arrow-right' \| 'dots-six-vertical' \| 'envelope-simple' \| 'phone' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo' \| 'whatsapp-logo' \| 'telegram-logo'` | 예 | |
|
|
2625
2707
|
| `weight` | `'fill' \| 'regular'` | | |
|
|
2626
2708
|
|
|
2627
2709
|
이 밖에 React·HTML 기본 속성 474개를 받는다.
|
|
@@ -2693,6 +2775,8 @@ import Link from 'next/link';
|
|
|
2693
2775
|
/>
|
|
2694
2776
|
```
|
|
2695
2777
|
|
|
2778
|
+
**반응형.** 그대로 됨. 모바일이 기본 자리다. 화면 아래에 `left: 0; right: 0` 으로 펼쳐진다.
|
|
2779
|
+
|
|
2696
2780
|
**모션.** press(`pressEffect`) · indicate · appear(opt, `appear`) · dismiss-on-scroll(opt, `hideOnScroll`). 토큰 값과 규칙은 `motion.md`.
|
|
2697
2781
|
|
|
2698
2782
|
### props
|
|
@@ -2776,6 +2860,8 @@ import { StepProgress } from '@nurihaus/web-design-system'; // 루
|
|
|
2776
2860
|
/>
|
|
2777
2861
|
```
|
|
2778
2862
|
|
|
2863
|
+
**반응형.** 그대로 됨. `minmax(0, 1fr)` 칸과 말줄임으로 줄어든다.
|
|
2864
|
+
|
|
2779
2865
|
**모션.** progress(`animated`) · reveal(opt, `animated`, `stagger`, `delay`). 토큰 값과 규칙은 `motion.md`.
|
|
2780
2866
|
|
|
2781
2867
|
### props
|
|
@@ -2873,6 +2959,8 @@ import { ChipGroup } from '@nurihaus/web-design-system'; // 루트.
|
|
|
2873
2959
|
/>
|
|
2874
2960
|
```
|
|
2875
2961
|
|
|
2962
|
+
**반응형.** 터치 타깃만 키움. 이미 가로 스크롤이나 줄바꿈을 한다. xs(28px) 칩의 누르는 자리를 세로로만 44px 까지 넓힌다. 가로 스크롤 목록은 위아래 여백 4px 밖을 잘라 xs 는 36px 까지만 닿는다.
|
|
2963
|
+
|
|
2876
2964
|
**모션.** press(`pressEffect`) · confirm. 토큰 값과 규칙은 `motion.md`.
|
|
2877
2965
|
|
|
2878
2966
|
### props
|
|
@@ -2948,6 +3036,8 @@ import { SegmentedControl } from '@nurihaus/web-design-system'; //
|
|
|
2948
3036
|
/>
|
|
2949
3037
|
```
|
|
2950
3038
|
|
|
3039
|
+
**반응형.** 터치 타깃만 키움. 이미 가로 스크롤한다. 칸(s 28px·m 36px)의 누르는 자리를 세로로만 44px 까지 넓힌다. 스크롤 목록이 그만큼 위아래로 넓어지고 칸이 그려지는 자리는 그대로다.
|
|
3040
|
+
|
|
2951
3041
|
**모션.** press(`pressEffect`) · indicate. 토큰 값과 규칙은 `motion.md`.
|
|
2952
3042
|
|
|
2953
3043
|
### props
|
|
@@ -3035,6 +3125,8 @@ import { Slider } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
3035
3125
|
/>
|
|
3036
3126
|
```
|
|
3037
3127
|
|
|
3128
|
+
**반응형.** 터치 타깃만 키움. 24px 손잡이의 누르는 자리를 44×44 까지 넓힌다.
|
|
3129
|
+
|
|
3038
3130
|
**모션.** press(`pressEffect`). 토큰 값과 규칙은 `motion.md`.
|
|
3039
3131
|
|
|
3040
3132
|
### props
|
|
@@ -3107,6 +3199,8 @@ import { Rating } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
3107
3199
|
<Rating aria-label="상품 평점" readOnly value={4.5} variant="compact" size="s" />
|
|
3108
3200
|
```
|
|
3109
3201
|
|
|
3202
|
+
**반응형.** 터치 타깃만 키움. 별의 누르는 자리를 세로로만 44px 까지 넓힌다. 별끼리 붙어 있어 가로는 별 폭 그대로다.
|
|
3203
|
+
|
|
3110
3204
|
**모션.** press(`pressEffect`) · confirm(`delay`). 토큰 값과 규칙은 `motion.md`.
|
|
3111
3205
|
|
|
3112
3206
|
### props
|
|
@@ -3179,6 +3273,8 @@ import { NumericSpinner } from '@nurihaus/web-design-system'; // 루
|
|
|
3179
3273
|
/>
|
|
3180
3274
|
```
|
|
3181
3275
|
|
|
3276
|
+
**반응형.** 터치 타깃만 키움. xs(28px)부터인 −·+ 버튼의 누르는 자리를 44×44 까지 넓힌다.
|
|
3277
|
+
|
|
3182
3278
|
**모션.** press(`pressEffect`) · reject. 토큰 값과 규칙은 `motion.md`.
|
|
3183
3279
|
|
|
3184
3280
|
### props
|
|
@@ -3245,6 +3341,8 @@ import { Card } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
3245
3341
|
</>
|
|
3246
3342
|
```
|
|
3247
3343
|
|
|
3344
|
+
**반응형.** 그대로 됨. 폭이 부모를 따른다.
|
|
3345
|
+
|
|
3248
3346
|
**모션.** press(`pressEffect`) · attention(opt). 토큰 값과 규칙은 `motion.md`.
|
|
3249
3347
|
|
|
3250
3348
|
### props
|
|
@@ -3294,6 +3392,8 @@ import { ListGroup } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3294
3392
|
</ListGroup>
|
|
3295
3393
|
```
|
|
3296
3394
|
|
|
3395
|
+
**반응형.** 그대로 됨. 폭이 부모를 따른다.
|
|
3396
|
+
|
|
3297
3397
|
**모션.** reveal(opt, `stagger`). 토큰 값과 규칙은 `motion.md`.
|
|
3298
3398
|
|
|
3299
3399
|
### props
|
|
@@ -3384,6 +3484,8 @@ import { ListRow } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3384
3484
|
</ListGroup>
|
|
3385
3485
|
```
|
|
3386
3486
|
|
|
3487
|
+
**반응형.** 그대로 됨. 행 높이가 48px 이상이고 폭은 부모를 따른다.
|
|
3488
|
+
|
|
3387
3489
|
**모션.** press(`pressEffect`) · attention(opt). 토큰 값과 규칙은 `motion.md`.
|
|
3388
3490
|
|
|
3389
3491
|
### props
|
|
@@ -3453,6 +3555,8 @@ import { ListHeader } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3453
3555
|
/>
|
|
3454
3556
|
```
|
|
3455
3557
|
|
|
3558
|
+
**반응형.** 그대로 됨. 폭이 부모를 따른다.
|
|
3559
|
+
|
|
3456
3560
|
**모션.** 없음. 제목·설명 글자. 우측 액션은 TextButton 이 press 를 받는다.
|
|
3457
3561
|
|
|
3458
3562
|
### props
|
|
@@ -3506,6 +3610,8 @@ import { ListFooter } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3506
3610
|
</ListGroup>
|
|
3507
3611
|
```
|
|
3508
3612
|
|
|
3613
|
+
**반응형.** 그대로 됨. 폭이 부모를 따른다.
|
|
3614
|
+
|
|
3509
3615
|
**모션.** press(`pressEffect`) · busy(`loading`). 토큰 값과 규칙은 `motion.md`.
|
|
3510
3616
|
|
|
3511
3617
|
### props
|
|
@@ -3519,7 +3625,7 @@ import { ListFooter } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3519
3625
|
| `asChild` | `boolean` | | |
|
|
3520
3626
|
| `trackProps` | `Record<string, string \| number \| boolean>` | | |
|
|
3521
3627
|
| `pressEffect` | `boolean` | | `true` |
|
|
3522
|
-
| `icon` | `'circle' \| 'link' \| 'image' \| 'x' \| 'warning' \| 'copy' \| 'house' \| 'megaphone-simple' \| 'chats-circle' \| 'user-circle' \| 'bell' \| 'caret-left' \| 'magnifying-glass' \| 'dots-three' \| 'gear-six' \| 'chat-circle' \| 'paper-plane-tilt' \| 'plus' \| 'minus' \| 'camera' \| 'video-camera' \| 'play' \| 'upload-simple' \| 'calendar-blank' \| 'clock' \| 'map-pin' \| 'truck' \| 'ticket' \| 'qr-code' \| 'sparkle' \| 'gift' \| 'wallet' \| 'bank' \| 'credit-card' \| 'check-circle' \| 'check' \| 'info' \| 'question' \| 'lock' \| 'pencil-simple' \| 'trash' \| 'share-network' \| 'eye' \| 'sliders-horizontal' \| 'heart' \| 'star' \| 'globe' \| 'sign-out' \| 'caret-right' \| 'caret-down' \| 'arrow-right' \| 'dots-six-vertical' \| 'envelope-simple' \| 'phone' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo' \| 'whatsapp-logo' \| 'telegram-logo'` | | `'caret-down'` |
|
|
3628
|
+
| `icon` | `'circle' \| 'link' \| 'image' \| 'x' \| 'warning' \| 'copy' \| 'house' \| 'megaphone-simple' \| 'chats-circle' \| 'user-circle' \| 'bell' \| 'caret-left' \| 'magnifying-glass' \| 'dots-three' \| 'gear-six' \| 'chat-circle' \| 'paper-plane-tilt' \| 'plus' \| 'minus' \| 'camera' \| 'video-camera' \| 'play' \| 'upload-simple' \| 'calendar-blank' \| 'clock' \| 'map-pin' \| 'truck' \| 'ticket' \| 'qr-code' \| 'sparkle' \| 'gift' \| 'wallet' \| 'bank' \| 'credit-card' \| 'check-circle' \| 'check' \| 'info' \| 'question' \| 'lock' \| 'pencil-simple' \| 'trash' \| 'share-network' \| 'eye' \| 'eye-slash' \| 'sliders-horizontal' \| 'heart' \| 'star' \| 'globe' \| 'sign-out' \| 'caret-right' \| 'caret-down' \| 'arrow-right' \| 'dots-six-vertical' \| 'envelope-simple' \| 'phone' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo' \| 'whatsapp-logo' \| 'telegram-logo'` | | `'caret-down'` |
|
|
3523
3629
|
| `border` | `'none' \| 'full' \| 'indented'` | | `'full'` |
|
|
3524
3630
|
|
|
3525
3631
|
이 밖에 React·HTML 기본 속성 264개를 받는다.
|
|
@@ -3556,6 +3662,8 @@ import { DescriptionList } from '@nurihaus/web-design-system'; //
|
|
|
3556
3662
|
/>
|
|
3557
3663
|
```
|
|
3558
3664
|
|
|
3665
|
+
**반응형.** 그대로 됨. 세로로 쌓이는 목록이다.
|
|
3666
|
+
|
|
3559
3667
|
**모션.** 없음. 이름–값 글자만 그린다. 누르는 표면이 아니다.
|
|
3560
3668
|
|
|
3561
3669
|
### props
|
|
@@ -3577,7 +3685,7 @@ import { GridList } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3577
3685
|
|
|
3578
3686
|
**언제 쓴다.** 상품·캠페인·카테고리처럼 그림이 주인공인 항목을 여러 칸의 격자로 보여 줄 때 쓴다. 루트는 `ul`(role `list`)이고 칸은 `GridList.Item` 이다. `className`·`style` 은 루트 `ul` 에 붙는다.
|
|
3579
3687
|
|
|
3580
|
-
- `column`: `1 | 2 | 3`, 기본 `2`. 한 줄의 칸 수. 루트 style 의 `--grid-list-column` 이 된다.
|
|
3688
|
+
- `column`: `1 | 2 | 3`, 기본 `2`. 한 줄의 칸 수. 루트 style 의 `--grid-list-column` 이 된다. 좁은 화면의 열 수도 쓰는 쪽이 정한다. 화면 폭은 `primitive.breakpoint.m`(768)으로 가른다(`docs/responsive.md`).
|
|
3581
3689
|
- `stagger`: 처음 그릴 때 칸을 차례로 보인다. `true` 면 토큰 간격, 숫자면 칸 사이 간격(ms). 기본 꺼짐. 처음 그린 뒤 더해진 칸은 바로 보인다.
|
|
3582
3690
|
|
|
3583
3691
|
**쓰지 않는다.** 글자가 주인공인 줄 목록은 ListGroup 과 ListRow 를 쓴다. 사진을 눌러 크게 보는 것은 MediaThumbnail 을 쓴다.
|
|
@@ -3622,6 +3730,8 @@ import { GridList } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3622
3730
|
| --- | --- | --- |
|
|
3623
3731
|
| `alt` | `image` 의 Asset.Image | 칸 글자가 그림을 다 말하면 `""` 로 비워 두 번 읽히지 않게 한다 |
|
|
3624
3732
|
|
|
3733
|
+
**반응형.** 그대로 됨. `minmax(0, 1fr)` 칸이라 넘치지 않는다. 좁은 화면의 열 수는 쓰는 쪽이 `column` 으로 정한다.
|
|
3734
|
+
|
|
3625
3735
|
**모션.** press(`pressEffect`) · reveal(opt, `stagger`). 토큰 값과 규칙은 `motion.md`.
|
|
3626
3736
|
|
|
3627
3737
|
### props
|
|
@@ -3694,6 +3804,8 @@ BoardRow 여러 개를 세로로 묶고 행 사이에 1px 선(`--border-subtle`)
|
|
|
3694
3804
|
|
|
3695
3805
|
쓰는 쪽이 달 것이 없다.
|
|
3696
3806
|
|
|
3807
|
+
**반응형.** 그대로 됨. 폭 100% 에 `min-width: 0` 으로 줄어든다.
|
|
3808
|
+
|
|
3697
3809
|
**모션.** press(`pressEffect`) · expand. 토큰 값과 규칙은 `motion.md`.
|
|
3698
3810
|
|
|
3699
3811
|
### props
|
|
@@ -3750,6 +3862,8 @@ import { Border } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
3750
3862
|
</>
|
|
3751
3863
|
```
|
|
3752
3864
|
|
|
3865
|
+
**반응형.** 그대로 됨. 선 하나다.
|
|
3866
|
+
|
|
3753
3867
|
**모션.** 없음. 선 하나를 그린다. 움직이지 않는다.
|
|
3754
3868
|
|
|
3755
3869
|
### props
|
|
@@ -3787,6 +3901,8 @@ import { TableRow } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3787
3901
|
</>
|
|
3788
3902
|
```
|
|
3789
3903
|
|
|
3904
|
+
**반응형.** 그대로 됨. 왼쪽 칸이 비율(%)이고 양쪽 칸이 `min-width: 0` 으로 줄어든다.
|
|
3905
|
+
|
|
3790
3906
|
**모션.** 없음. 이름–값 글자만 그린다. 누르는 표면이 아니다.
|
|
3791
3907
|
|
|
3792
3908
|
### props
|
|
@@ -3844,6 +3960,8 @@ import { Notice } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
3844
3960
|
</Notice>
|
|
3845
3961
|
```
|
|
3846
3962
|
|
|
3963
|
+
**반응형.** 그대로 됨. 폭이 부모를 따른다.
|
|
3964
|
+
|
|
3847
3965
|
**모션.** enter(opt, `motion`). 토큰 값과 규칙은 `motion.md`.
|
|
3848
3966
|
|
|
3849
3967
|
### props
|
|
@@ -3914,6 +4032,8 @@ import { EmptyState } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3914
4032
|
/>
|
|
3915
4033
|
```
|
|
3916
4034
|
|
|
4035
|
+
**반응형.** 그대로 됨. 가운데 쌓기이고 폭이 부모를 따른다.
|
|
4036
|
+
|
|
3917
4037
|
**모션.** 없음. 누를 곳이 없는 표시용 화면이다. 버튼은 쓰는 쪽이 넘긴 CTAButton 이 press 를 받는다.
|
|
3918
4038
|
|
|
3919
4039
|
### props
|
|
@@ -3923,7 +4043,7 @@ import { EmptyState } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3923
4043
|
| `figure` | `ReactNode` | | |
|
|
3924
4044
|
| `title` | `ReactNode` | 예 | |
|
|
3925
4045
|
| `variant` | `'neutral' \| 'success' \| 'default'` | | `'default'` |
|
|
3926
|
-
| `icon` | `'circle' \| 'link' \| 'image' \| 'x' \| 'warning' \| 'copy' \| 'house' \| 'megaphone-simple' \| 'chats-circle' \| 'user-circle' \| 'bell' \| 'caret-left' \| 'magnifying-glass' \| 'dots-three' \| 'gear-six' \| 'chat-circle' \| 'paper-plane-tilt' \| 'plus' \| 'minus' \| 'camera' \| 'video-camera' \| 'play' \| 'upload-simple' \| 'calendar-blank' \| 'clock' \| 'map-pin' \| 'truck' \| 'ticket' \| 'qr-code' \| 'sparkle' \| 'gift' \| 'wallet' \| 'bank' \| 'credit-card' \| 'check-circle' \| 'check' \| 'info' \| 'question' \| 'lock' \| 'pencil-simple' \| 'trash' \| 'share-network' \| 'eye' \| 'sliders-horizontal' \| 'heart' \| 'star' \| 'globe' \| 'sign-out' \| 'caret-right' \| 'caret-down' \| 'arrow-right' \| 'dots-six-vertical' \| 'envelope-simple' \| 'phone' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo' \| 'whatsapp-logo' \| 'telegram-logo'` | | |
|
|
4046
|
+
| `icon` | `'circle' \| 'link' \| 'image' \| 'x' \| 'warning' \| 'copy' \| 'house' \| 'megaphone-simple' \| 'chats-circle' \| 'user-circle' \| 'bell' \| 'caret-left' \| 'magnifying-glass' \| 'dots-three' \| 'gear-six' \| 'chat-circle' \| 'paper-plane-tilt' \| 'plus' \| 'minus' \| 'camera' \| 'video-camera' \| 'play' \| 'upload-simple' \| 'calendar-blank' \| 'clock' \| 'map-pin' \| 'truck' \| 'ticket' \| 'qr-code' \| 'sparkle' \| 'gift' \| 'wallet' \| 'bank' \| 'credit-card' \| 'check-circle' \| 'check' \| 'info' \| 'question' \| 'lock' \| 'pencil-simple' \| 'trash' \| 'share-network' \| 'eye' \| 'eye-slash' \| 'sliders-horizontal' \| 'heart' \| 'star' \| 'globe' \| 'sign-out' \| 'caret-right' \| 'caret-down' \| 'arrow-right' \| 'dots-six-vertical' \| 'envelope-simple' \| 'phone' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo' \| 'whatsapp-logo' \| 'telegram-logo'` | | |
|
|
3927
4047
|
| `description` | `ReactNode` | | |
|
|
3928
4048
|
| `action` | `ReactNode` | | |
|
|
3929
4049
|
| `titleAs` | `'h1' \| 'h2' \| 'h3' \| 'p'` | | `'p'` |
|
|
@@ -3967,6 +4087,8 @@ import { Tag } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
3967
4087
|
</>
|
|
3968
4088
|
```
|
|
3969
4089
|
|
|
4090
|
+
**반응형.** 그대로 됨. X 버튼이 이미 `--touch-target` 이다.
|
|
4091
|
+
|
|
3970
4092
|
**모션.** press(`pressEffect`). 토큰 값과 규칙은 `motion.md`.
|
|
3971
4093
|
|
|
3972
4094
|
### props
|
|
@@ -4015,6 +4137,8 @@ import { MessageThread } from '@nurihaus/web-design-system'; // 루
|
|
|
4015
4137
|
</MessageThread>
|
|
4016
4138
|
```
|
|
4017
4139
|
|
|
4140
|
+
**반응형.** 그대로 됨. 폭이 부모를 따른다.
|
|
4141
|
+
|
|
4018
4142
|
**모션.** 없음. 목록 틀이다. 등장 모션은 항목(Message)이 가진다.
|
|
4019
4143
|
|
|
4020
4144
|
### props
|
|
@@ -4058,6 +4182,8 @@ import { Message } from '@nurihaus/web-design-system'; // 루트.
|
|
|
4058
4182
|
</MessageThread>
|
|
4059
4183
|
```
|
|
4060
4184
|
|
|
4185
|
+
**반응형.** 그대로 됨. 말풍선이 `max-width: 80%` 로 줄어든다.
|
|
4186
|
+
|
|
4061
4187
|
**모션.** enter(opt, `motion`). 토큰 값과 규칙은 `motion.md`.
|
|
4062
4188
|
|
|
4063
4189
|
### props
|
|
@@ -4100,6 +4226,8 @@ import { MessageEvent } from '@nurihaus/web-design-system'; // 루
|
|
|
4100
4226
|
</MessageThread>
|
|
4101
4227
|
```
|
|
4102
4228
|
|
|
4229
|
+
**반응형.** 그대로 됨. 가운데 한 줄 알림이다.
|
|
4230
|
+
|
|
4103
4231
|
**모션.** 없음. 대화 가운데 날짜·상태 줄. 움직이지 않는다.
|
|
4104
4232
|
|
|
4105
4233
|
### props
|
|
@@ -4156,6 +4284,8 @@ import { MessageComposer } from '@nurihaus/web-design-system'; //
|
|
|
4156
4284
|
</BottomBar>
|
|
4157
4285
|
```
|
|
4158
4286
|
|
|
4287
|
+
**반응형.** 그대로 됨. 보내기 버튼과 입력 줄이 이미 `--touch-target` 이다.
|
|
4288
|
+
|
|
4159
4289
|
**모션.** press(`pressEffect`) · reject · busy(`loading`). 토큰 값과 규칙은 `motion.md`.
|
|
4160
4290
|
|
|
4161
4291
|
### props
|
|
@@ -4208,6 +4338,8 @@ import { BottomBar } from '@nurihaus/web-design-system'; // 루트.
|
|
|
4208
4338
|
</BottomBar>
|
|
4209
4339
|
```
|
|
4210
4340
|
|
|
4341
|
+
**반응형.** 그대로 됨. `min-width: 0` 으로 줄어든다.
|
|
4342
|
+
|
|
4211
4343
|
**모션.** 없음. 주 행동·입력을 담는 고정 바라 스크롤로 숨기지 않는다.
|
|
4212
4344
|
|
|
4213
4345
|
### props
|
|
@@ -4258,6 +4390,8 @@ import { Top } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
4258
4390
|
/>
|
|
4259
4391
|
```
|
|
4260
4392
|
|
|
4393
|
+
**반응형.** 그대로 됨. 오른쪽 묶음이 `flex-wrap` 으로 줄을 바꾼다.
|
|
4394
|
+
|
|
4261
4395
|
**모션.** 없음. 누를 곳이 없는 화면 제목 묶음이다. 버튼은 쓰는 쪽이 넘긴 것이 press 를 받는다.
|
|
4262
4396
|
|
|
4263
4397
|
### props
|
|
@@ -4315,6 +4449,8 @@ import { BottomCTA } from '@nurihaus/web-design-system'; // 루트.
|
|
|
4315
4449
|
/>
|
|
4316
4450
|
```
|
|
4317
4451
|
|
|
4452
|
+
**반응형.** 그대로 됨. 화면 아래에 `left: 0; right: 0` 으로 펼쳐진다.
|
|
4453
|
+
|
|
4318
4454
|
**모션.** appear(opt, `appear`) · dismiss-on-scroll(opt, `hideOnScroll`). 토큰 값과 규칙은 `motion.md`.
|
|
4319
4455
|
|
|
4320
4456
|
### props
|
|
@@ -4405,6 +4541,8 @@ import { MediaThumbnail } from '@nurihaus/web-design-system'; // 루
|
|
|
4405
4541
|
/>
|
|
4406
4542
|
```
|
|
4407
4543
|
|
|
4544
|
+
**반응형.** 그대로 됨. 최대 240px 이라 360 안에 든다. 지우기 버튼은 이미 `--touch-target` 이다.
|
|
4545
|
+
|
|
4408
4546
|
**모션.** press(`pressEffect`) · busy(`loading`). 토큰 값과 규칙은 `motion.md`.
|
|
4409
4547
|
|
|
4410
4548
|
### props
|
|
@@ -4436,7 +4574,7 @@ import { MediaViewer } from '@nurihaus/web-design-system/media-viewer'; // 이
|
|
|
4436
4574
|
import { MediaViewer } from '@nurihaus/web-design-system'; // 루트. 첫 로드 JS 가 커진다
|
|
4437
4575
|
```
|
|
4438
4576
|
|
|
4439
|
-
**언제 쓴다.** 사진·영상 하나를 화면 전체에 띄워 볼 때 쓴다. 검은 바탕 위에 비율을 지켜 가운데 놓고, 영상은 열린 동안만 재생한다(닫으면 멈춘다). `trigger` 에 넘긴 요소를 누르면 열리고, `open`·`defaultOpen`·`onOpenChange` 로 제어한다. `closeLabel` 은 오른쪽 위 닫기 버튼 이름이라 필수다. 접근성 이름은 `title`, 없으면 `alt` 다(화면에는 안 보인다). Escape·닫기 버튼으로 닫힌다. `className`·`style` 은 화면 전체를 덮는 dialog 에 붙는다.
|
|
4577
|
+
**언제 쓴다.** 사진·영상 하나를 화면 전체에 띄워 볼 때 쓴다. 검은 바탕 위에 비율을 지켜 가운데 놓고, 영상은 열린 동안만 재생한다(닫으면 멈춘다). `trigger` 에 넘긴 요소를 누르면 열리고, `open`·`defaultOpen`·`onOpenChange` 로 제어한다. `closeLabel` 은 오른쪽 위 닫기 버튼 이름이라 필수다. 접근성 이름은 `title`, 없으면 `alt` 다(화면에는 안 보인다). Escape·닫기 버튼으로 닫힌다. `className`·`style` 은 화면 전체를 덮는 dialog 에 붙는다. `portalContainer` 를 주면 그 요소 안에 그린다(없으면 document.body).
|
|
4440
4578
|
|
|
4441
4579
|
**쓰지 않는다.** 썸네일을 누르면 여는 경우는 MediaThumbnail 이 뷰어를 같이 그린다. 사진 여러 장을 넘겨 보는 갤러리는 아직 없다.
|
|
4442
4580
|
|
|
@@ -4473,6 +4611,8 @@ import { MediaViewer } from '@nurihaus/web-design-system'; // 루트
|
|
|
4473
4611
|
<MediaViewer open src="https://example.com/photo.jpg" alt="제품 사진" closeLabel="닫기" onOpenChange={() => {}} />
|
|
4474
4612
|
```
|
|
4475
4613
|
|
|
4614
|
+
**반응형.** 그대로 됨. 닫기 버튼은 이미 `--touch-target` 이고 겹친 36px 아이콘은 누르는 자리가 아니다.
|
|
4615
|
+
|
|
4476
4616
|
**모션.** enter · exit. 토큰 값과 규칙은 `motion.md`.
|
|
4477
4617
|
|
|
4478
4618
|
### props
|
|
@@ -4481,6 +4621,7 @@ import { MediaViewer } from '@nurihaus/web-design-system'; // 루트
|
|
|
4481
4621
|
| --- | --- | --- | --- |
|
|
4482
4622
|
| `trigger` | `ReactElement<any, string \| JSXElementConstructor<any>>` | | |
|
|
4483
4623
|
| `title` | `string` | | |
|
|
4624
|
+
| `portalContainer` | `HTMLElement` | | |
|
|
4484
4625
|
| `open` | `boolean` | | |
|
|
4485
4626
|
| `defaultOpen` | `boolean` | | |
|
|
4486
4627
|
| `onOpenChange` | `((open: boolean) => void)` | | |
|
|
@@ -4548,6 +4689,8 @@ import { Paragraph } from '@nurihaus/web-design-system'; // 루트.
|
|
|
4548
4689
|
| `label` | Paragraph.Icon | 뜻을 아이콘으로만 전하면 이름을 준다. 없으면 낭독기에서 숨는다 |
|
|
4549
4690
|
| `href` 또는 `asChild` 라우터 링크 | Paragraph.Link | `href` 없는 `a` 는 링크가 아니고 키보드로 닿지 않는다 |
|
|
4550
4691
|
|
|
4692
|
+
**반응형.** 그대로 됨. 글자 블록이고 부모 폭에서 줄을 바꾼다.
|
|
4693
|
+
|
|
4551
4694
|
**모션.** 없음. 문단 글자와 줄 안 아이콘·뱃지·링크. 링크는 브라우저 기본 동작만 쓰고 누르는 표면이 아니다.
|
|
4552
4695
|
|
|
4553
4696
|
### props
|
|
@@ -4574,7 +4717,7 @@ import { Paragraph } from '@nurihaus/web-design-system'; // 루트.
|
|
|
4574
4717
|
| prop | 타입 | 필수 | 기본값 |
|
|
4575
4718
|
| --- | --- | --- | --- |
|
|
4576
4719
|
| `label` | `string` | | |
|
|
4577
|
-
| `name` | `'circle' \| 'link' \| 'image' \| 'x' \| 'warning' \| 'copy' \| 'house' \| 'megaphone-simple' \| 'chats-circle' \| 'user-circle' \| 'bell' \| 'caret-left' \| 'magnifying-glass' \| 'dots-three' \| 'gear-six' \| 'chat-circle' \| 'paper-plane-tilt' \| 'plus' \| 'minus' \| 'camera' \| 'video-camera' \| 'play' \| 'upload-simple' \| 'calendar-blank' \| 'clock' \| 'map-pin' \| 'truck' \| 'ticket' \| 'qr-code' \| 'sparkle' \| 'gift' \| 'wallet' \| 'bank' \| 'credit-card' \| 'check-circle' \| 'check' \| 'info' \| 'question' \| 'lock' \| 'pencil-simple' \| 'trash' \| 'share-network' \| 'eye' \| 'sliders-horizontal' \| 'heart' \| 'star' \| 'globe' \| 'sign-out' \| 'caret-right' \| 'caret-down' \| 'arrow-right' \| 'dots-six-vertical' \| 'envelope-simple' \| 'phone' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo' \| 'whatsapp-logo' \| 'telegram-logo'` | 예 | |
|
|
4720
|
+
| `name` | `'circle' \| 'link' \| 'image' \| 'x' \| 'warning' \| 'copy' \| 'house' \| 'megaphone-simple' \| 'chats-circle' \| 'user-circle' \| 'bell' \| 'caret-left' \| 'magnifying-glass' \| 'dots-three' \| 'gear-six' \| 'chat-circle' \| 'paper-plane-tilt' \| 'plus' \| 'minus' \| 'camera' \| 'video-camera' \| 'play' \| 'upload-simple' \| 'calendar-blank' \| 'clock' \| 'map-pin' \| 'truck' \| 'ticket' \| 'qr-code' \| 'sparkle' \| 'gift' \| 'wallet' \| 'bank' \| 'credit-card' \| 'check-circle' \| 'check' \| 'info' \| 'question' \| 'lock' \| 'pencil-simple' \| 'trash' \| 'share-network' \| 'eye' \| 'eye-slash' \| 'sliders-horizontal' \| 'heart' \| 'star' \| 'globe' \| 'sign-out' \| 'caret-right' \| 'caret-down' \| 'arrow-right' \| 'dots-six-vertical' \| 'envelope-simple' \| 'phone' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo' \| 'whatsapp-logo' \| 'telegram-logo'` | 예 | |
|
|
4578
4721
|
| `weight` | `'fill' \| 'regular'` | | `'regular'` |
|
|
4579
4722
|
|
|
4580
4723
|
이 밖에 React·HTML 기본 속성 474개를 받는다.
|
|
@@ -4677,6 +4820,8 @@ Paragraph 그대로다(`size`·`weight`·`color`, 기본 색 `text-body`). 안
|
|
|
4677
4820
|
| --- | --- | --- |
|
|
4678
4821
|
| `as` | Post.H1 · H2 · H3 · H4 | 화면의 제목 단계가 건너뛰지 않게 맞춘다. 화면에 h1 이 이미 있으면 Post.H1 에 `as="h2"` |
|
|
4679
4822
|
|
|
4823
|
+
**반응형.** 그대로 됨. 글자 블록이고 부모 폭에서 줄을 바꾼다.
|
|
4824
|
+
|
|
4680
4825
|
**모션.** 없음. 공지·약관 본문 글자. 누르는 표면이 없고 들어오는 동작도 없다.
|
|
4681
4826
|
|
|
4682
4827
|
### props
|
|
@@ -4794,6 +4939,8 @@ import { BottomInfo } from '@nurihaus/web-design-system'; // 루트.
|
|
|
4794
4939
|
</BottomInfo>
|
|
4795
4940
|
```
|
|
4796
4941
|
|
|
4942
|
+
**반응형.** 그대로 됨. 글자 블록이고 부모 폭에서 줄을 바꾼다.
|
|
4943
|
+
|
|
4797
4944
|
**모션.** 없음. 화면 맨 아래 고지 글자. 그라디언트는 정적이고 누르는 표면이 아니다.
|
|
4798
4945
|
|
|
4799
4946
|
### props
|
|
@@ -4854,6 +5001,8 @@ import { BarChart } from '@nurihaus/web-design-system'; // 루트.
|
|
|
4854
5001
|
/>
|
|
4855
5002
|
```
|
|
4856
5003
|
|
|
5004
|
+
**반응형.** 그대로 됨. `minmax(0, 1fr)` 칸이고 막대는 최대 32px 이다.
|
|
5005
|
+
|
|
4857
5006
|
**모션.** progress(`animated`) · reveal(opt, `animated`, `stagger`). 토큰 값과 규칙은 `motion.md`.
|
|
4858
5007
|
|
|
4859
5008
|
### props
|
|
@@ -4996,6 +5145,8 @@ import { Agreement } from '@nurihaus/web-design-system'; // 루트.
|
|
|
4996
5145
|
| `aria-label` | Agreement.RightArrow | 아이콘만 있는 버튼의 이름 |
|
|
4997
5146
|
| `aria-label` | Agreement.Collapsible.Trigger | 아이콘만 있는 펼침 버튼의 이름 |
|
|
4998
5147
|
|
|
5148
|
+
**반응형.** 그대로 됨. 행 높이가 44px 이상이다. 안의 Checkbox 가 자기 누르는 자리를 키운다.
|
|
5149
|
+
|
|
4999
5150
|
**모션.** press(`pressEffect`) · confirm(`motion`, `delay`) · expand. 토큰 값과 규칙은 `motion.md`.
|
|
5000
5151
|
|
|
5001
5152
|
### props
|
|
@@ -5163,6 +5314,8 @@ import { SearchField } from '@nurihaus/web-design-system'; // 루트
|
|
|
5163
5314
|
<SearchField placeholder="크리에이터, 캠페인 검색" onSearch={() => {}} fixed takeSpace />
|
|
5164
5315
|
```
|
|
5165
5316
|
|
|
5317
|
+
**반응형.** 그대로 됨. TextField 상자를 쓰며 폭 100% 다.
|
|
5318
|
+
|
|
5166
5319
|
**모션.** press(opt). 토큰 값과 규칙은 `motion.md`.
|
|
5167
5320
|
|
|
5168
5321
|
### props
|
|
@@ -5239,6 +5392,8 @@ import { SplitTextField } from '@nurihaus/web-design-system'; // 루
|
|
|
5239
5392
|
/>
|
|
5240
5393
|
```
|
|
5241
5394
|
|
|
5395
|
+
**반응형.** 그대로 됨. 칸 폭이 `2ch` 라 여섯 칸도 360 안에 든다.
|
|
5396
|
+
|
|
5242
5397
|
**모션.** press(opt). 토큰 값과 규칙은 `motion.md`.
|
|
5243
5398
|
|
|
5244
5399
|
### SplitTextField.RRN13 props
|
|
@@ -5332,6 +5487,8 @@ import { NumberKeypad } from '@nurihaus/web-design-system'; // 루
|
|
|
5332
5487
|
<NumberKeypad secure onKeyClick={() => {}} onBackspaceClick={() => {}} />
|
|
5333
5488
|
```
|
|
5334
5489
|
|
|
5490
|
+
**반응형.** 그대로 됨. `minmax(0, 1fr)` 그리드로 화면 폭을 나눈다.
|
|
5491
|
+
|
|
5335
5492
|
**모션.** press(`pressEffect`). 토큰 값과 규칙은 `motion.md`.
|
|
5336
5493
|
|
|
5337
5494
|
### props
|
|
@@ -5389,6 +5546,8 @@ import { AlphabetKeypad } from '@nurihaus/web-design-system'; // 루
|
|
|
5389
5546
|
<AlphabetKeypad onKeyClick={() => {}} onBackspaceClick={() => {}} />
|
|
5390
5547
|
```
|
|
5391
5548
|
|
|
5549
|
+
**반응형.** 그대로 됨. `minmax(0, 1fr)` 그리드다. 키 폭이 44px 보다 좁은 것은 시스템 자판과 같은 관례라 넓히지 않는다.
|
|
5550
|
+
|
|
5392
5551
|
**모션.** press(`pressEffect`). 토큰 값과 규칙은 `motion.md`.
|
|
5393
5552
|
|
|
5394
5553
|
### props
|
|
@@ -5456,6 +5615,8 @@ import { FullSecureKeypad } from '@nurihaus/web-design-system'; //
|
|
|
5456
5615
|
/>
|
|
5457
5616
|
```
|
|
5458
5617
|
|
|
5618
|
+
**반응형.** 그대로 됨. `minmax(0, 1fr)` 그리드로 화면 폭을 나눈다.
|
|
5619
|
+
|
|
5459
5620
|
**모션.** press(`pressEffect`) · reveal(opt, `animated`). 토큰 값과 규칙은 `motion.md`.
|
|
5460
5621
|
|
|
5461
5622
|
### props
|
|
@@ -5533,6 +5694,8 @@ import { BottomSheet } from '@nurihaus/web-design-system'; // 루트
|
|
|
5533
5694
|
</BottomSheet>
|
|
5534
5695
|
```
|
|
5535
5696
|
|
|
5697
|
+
**반응형.** 그대로 됨. 모바일이 기본 자리다. 화면 아래에서 폭을 채운다.
|
|
5698
|
+
|
|
5536
5699
|
**모션.** enter(`motion`, `onEntered`) · exit(`onExited`) · reject(opt) · press(`pressEffect`) · indicate. 토큰 값과 규칙은 `motion.md`.
|
|
5537
5700
|
|
|
5538
5701
|
### props
|
|
@@ -5638,6 +5801,8 @@ import { Menu } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
5638
5801
|
</Menu>
|
|
5639
5802
|
```
|
|
5640
5803
|
|
|
5804
|
+
**반응형.** 그대로 됨. 최소 180px 팝오버이고 Radix 가 화면 안에 둔다. 행 40·48px 은 위아래로 붙어 있어 넓히지 않는다.
|
|
5805
|
+
|
|
5641
5806
|
**모션.** press(`pressEffect`) · unfold · exit. 토큰 값과 규칙은 `motion.md`.
|
|
5642
5807
|
|
|
5643
5808
|
### props
|
|
@@ -5741,6 +5906,8 @@ import { Highlight } from '@nurihaus/web-design-system'; // 루트.
|
|
|
5741
5906
|
<Highlight open targetRef={{ current: null }} message="여기서 새 기능을 써 볼 수 있어요" onClick={() => {}} />
|
|
5742
5907
|
```
|
|
5743
5908
|
|
|
5909
|
+
**반응형.** 그대로 됨. 말풍선이 최대 280px 이라 360 안에 든다.
|
|
5910
|
+
|
|
5744
5911
|
**모션.** enter · exit(`onExited`) · appear(opt). 토큰 값과 규칙은 `motion.md`.
|
|
5745
5912
|
|
|
5746
5913
|
### props
|
|
@@ -5789,6 +5956,8 @@ LogProvider 가 없거나 `track` 을 주지 않으면 아무것도 보내지
|
|
|
5789
5956
|
</LogProvider>
|
|
5790
5957
|
```
|
|
5791
5958
|
|
|
5959
|
+
**반응형.** 그대로 됨. 그리는 것이 없다.
|
|
5960
|
+
|
|
5792
5961
|
**모션.** 없음. DOM 을 그리지 않는다.
|
|
5793
5962
|
|
|
5794
5963
|
### props
|
|
@@ -5822,6 +5991,8 @@ import { MotionProvider } from '@nurihaus/web-design-system'; // 루
|
|
|
5822
5991
|
</MotionProvider>
|
|
5823
5992
|
```
|
|
5824
5993
|
|
|
5994
|
+
**반응형.** 그대로 됨. 그리는 것이 없다.
|
|
5995
|
+
|
|
5825
5996
|
**모션.** 없음. DOM 을 그리지 않는다. 다른 컴포넌트의 motion 층이 이 아래에서 돈다.
|
|
5826
5997
|
|
|
5827
5998
|
### props
|
|
@@ -5920,6 +6091,8 @@ const onPickSort = async () => {
|
|
|
5920
6091
|
| `label` | OverlayProvider | 토스트 자리의 이름. 기본 `알림` 이라 다른 언어 서비스에서만 준다 |
|
|
5921
6092
|
| `title` | `alert` · `confirm` · `useBottomSheet().open` | 훅이 연 창의 접근성 이름 |
|
|
5922
6093
|
|
|
6094
|
+
**반응형.** 그대로 됨. 그리는 것이 없다.
|
|
6095
|
+
|
|
5923
6096
|
**모션.** 없음. 토스트 자리와 훅이 연 오버레이만 그린다. 모션은 그 안의 Modal · ModalWithDoubleButton · Toast 가 받는다.
|
|
5924
6097
|
|
|
5925
6098
|
### props
|