@nurihaus/web-design-system 3.9.5 → 3.10.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/dist/ai/components.md +57 -15
- package/dist/ai/tokens.md +3 -3
- package/dist/chunk-7653.js +20 -0
- package/dist/{chunk-674.js → chunk-7687.js} +2 -56
- package/dist/{chunk-7460.js → chunk-7829.js} +39 -2
- package/dist/components/drawer/drawer-props.d.ts +7 -0
- package/dist/components/drawer/drawer-type.d.ts +6 -1
- package/dist/components/drawer/drawer.stories.d.ts +8 -0
- package/dist/components/icon/icon-paths.d.ts +20 -0
- package/dist/components/icon/icon.stories.d.ts +1 -1
- package/dist/components/list/list-row.stories.d.ts +8 -1
- package/dist/components/list/list-type.d.ts +10 -0
- package/dist/components/notice/notice-props.d.ts +8 -0
- package/dist/components/notice/notice-type.d.ts +4 -2
- package/dist/components/notice/notice.stories.d.ts +10 -1
- package/dist/components/skeleton/skeleton.stories.d.ts +1 -1
- package/dist/components.css +87 -0
- package/dist/drawer.js +7 -0
- package/dist/index.js +210 -85
- package/dist/list-row.js +78 -175
- package/dist/notice.js +8 -0
- package/dist/overlay.js +28 -26
- package/dist/radio.js +2 -0
- package/dist/skeleton-group.js +78 -25
- package/dist/skeleton.js +2 -1
- package/dist/styles.css +71 -1
- package/dist/toast.js +29 -27
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
package/dist/ai/components.md
CHANGED
|
@@ -283,7 +283,7 @@ import { Asset } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
283
283
|
| prop | 타입 | 필수 | 기본값 |
|
|
284
284
|
| --- | --- | --- | --- |
|
|
285
285
|
| `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' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo'` | 예 | |
|
|
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'` | 예 | |
|
|
287
287
|
| `weight` | `'fill' \| 'regular'` | | |
|
|
288
288
|
|
|
289
289
|
이 밖에 React·HTML 기본 속성 474개를 받는다.
|
|
@@ -520,7 +520,7 @@ import { IconButton } from '@nurihaus/web-design-system'; // 루트.
|
|
|
520
520
|
| `asChild` | `boolean` | | |
|
|
521
521
|
| `trackProps` | `Record<string, string \| number \| boolean>` | | |
|
|
522
522
|
| `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' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo'` | 예 | |
|
|
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'` | 예 | |
|
|
524
524
|
|
|
525
525
|
이 밖에 React·HTML 기본 속성 275개를 받는다.
|
|
526
526
|
|
|
@@ -977,6 +977,7 @@ import { Radio } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
977
977
|
- `pressEffect`(기본 `true`): 동그란 버튼(칩이면 칩)을 누르는 동안 살짝 줄어든다. `false`면 끈다.
|
|
978
978
|
- `motion`(`'weak'` 기본 · `'strong'`): 고른 점이 커지고 옛 점이 작아지는 스프링의 세기다. `'strong'`은 한 번 튀어 오른다. 앱 루트의 `MotionProvider` 아래에서만 움직이고, 없으면 움직임 없이 고름만 바뀐다.
|
|
979
979
|
- `delay`(ms, 기본 `0`): 고름이 바뀐 뒤 스프링이 출발하기까지 기다리는 시간이다.
|
|
980
|
+
- 버튼은 기본형·칩 모두 `type="button"`이라 `<form>` 안에서 눌러도 폼을 제출하지 않는다.
|
|
980
981
|
- `disabled` 선택지(버튼이나 라벨)를 누르면 그 줄이 좌우로 흔들린다. 꺼진 버튼에도 오는 `pointerdown`으로 알아채므로 Chromium 에서 동작하고 Firefox 는 보내지 않을 수 있다.
|
|
981
982
|
|
|
982
983
|
**쓰지 않는다.** 여러 개를 동시에 고르면 Checkbox를 쓴다. 선택지가 많아 모두 펼치기 어려우면 DropDown을 쓴다. 목록을 거르는 필터 칩은 ChipGroup을 쓴다(늘 하나가 골라져 있다).
|
|
@@ -1245,7 +1246,7 @@ import { Toast } from '@nurihaus/web-design-system/toast'; // 이 컴포넌트
|
|
|
1245
1246
|
import { Toast } from '@nurihaus/web-design-system'; // 루트. 첫 로드 JS 가 커진다
|
|
1246
1247
|
```
|
|
1247
1248
|
|
|
1248
|
-
**언제 쓴다.** 저장 완료·삭제 완료처럼 사용자의 행동 결과를 짧게 알리고 스스로 사라져야 할 때 쓴다. `title`은 필수, `description`은 한 줄 보충 설명이다. `variant`(`default · secondary · success · warning · error`)가 바탕색을 정한다. 기본은 Tooltip과 같은 진보라, `secondary`는 CTAButton `weak`와 같은 연보라(어두운 글자), `success`는 초록, `warning`은 주황, `error`는 CTAButton `danger`와 같은 빨강이고 이 셋은 앞에 상태 아이콘(
|
|
1249
|
+
**언제 쓴다.** 저장 완료·삭제 완료처럼 사용자의 행동 결과를 짧게 알리고 스스로 사라져야 할 때 쓴다. `title`은 필수, `description`은 한 줄 보충 설명이다. `variant`(`default · secondary · success · warning · error`)가 바탕색을 정한다. 기본은 Tooltip과 같은 진보라, `secondary`는 CTAButton `weak`와 같은 연보라(어두운 글자), `success`는 초록, `warning`은 주황, `error`는 CTAButton `danger`와 같은 빨강이고 이 셋은 앞에 상태 아이콘(체크·느낌표·원 안 느낌표)이 붙는다. secondary 외에는 글자가 흰색이다. `action`을 주면 되돌리기 같은 작은 버튼(CTAButton xs·`neutral`·`fill`)이 하나 붙고 누르면 토스트가 닫힌다. `showClose={false}`로 닫기 버튼을 뺄 수 있다. `duration`(ms)은 이 토스트만의 표시 시간이다. `className`·`style`은 토스트 루트(`li`)에 붙는다. 반드시 ToastProvider 안에서 쓴다.
|
|
1249
1250
|
|
|
1250
1251
|
- `onEntered`는 등장 애니메이션이 끝난 뒤, `onExited`는 퇴장 애니메이션이 끝나 토스트가 사라진 뒤 한 번 불린다. 시간이 다 되거나 밀어서 스스로 닫힐 때도 불린다. reduced-motion 이면 열고 닫는 즉시 불린다.
|
|
1251
1252
|
|
|
@@ -1510,7 +1511,7 @@ import { Drawer } from '@nurihaus/web-design-system/drawer'; // 이 컴포넌
|
|
|
1510
1511
|
import { Drawer } from '@nurihaus/web-design-system'; // 루트. 첫 로드 JS 가 커진다
|
|
1511
1512
|
```
|
|
1512
1513
|
|
|
1513
|
-
**언제 쓴다.** 상세 정보나 필터처럼 현재 화면을 떠나지 않고 옆이나 아래에서 패널을 꺼내 보여줄 때 쓴다. `trigger`에 넘긴 요소를 클릭하면 열리고, `open`·`defaultOpen`·`onOpenChange`로 제어한다. `title`은 필수이며 dialog 의 접근성 이름이 된다. `side`(`right`·`left`·`bottom`, 기본 `right`)와 `size`(`s`·`m`·`l`, 기본 `m`)로 방향과 폭(bottom 은 높이)을 고른다. Escape·바깥 클릭·X 버튼으로 닫히고, `className`·`style`은 패널에 붙는다.
|
|
1514
|
+
**언제 쓴다.** 상세 정보나 필터처럼 현재 화면을 떠나지 않고 옆이나 아래에서 패널을 꺼내 보여줄 때 쓴다. `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`은 패널에 붙는다.
|
|
1514
1515
|
|
|
1515
1516
|
- `motion`(`weak`·`strong`, 기본 `weak`)은 등장 세기다. `strong`은 스프링으로 끝에서 한 번 튄다. 퇴장은 같다.
|
|
1516
1517
|
- `closeOnOverlayClick={false}`면 바깥을 눌러도 닫히지 않고 패널이 좌우로 한 번 흔들린다. 기본 true.
|
|
@@ -1570,6 +1571,7 @@ import { Drawer } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
1570
1571
|
| `footer` | `ReactNode` | | |
|
|
1571
1572
|
| `side` | `'bottom' \| 'left' \| 'right'` | | `'right'` |
|
|
1572
1573
|
| `size` | `'s' \| 'm' \| 'l'` | | `'m'` |
|
|
1574
|
+
| `fit` | `'content' \| 'size' \| 'screen'` | | `'size'` |
|
|
1573
1575
|
| `showCloseIcon` | `boolean` | | `true` |
|
|
1574
1576
|
| `closeOnOverlayClick` | `boolean` | | `true` |
|
|
1575
1577
|
| `closeOnEscape` | `boolean` | | `true` |
|
|
@@ -2577,7 +2579,7 @@ import { Icon } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
2577
2579
|
|
|
2578
2580
|
글자 없이 아이콘만으로 뜻을 전하면(닫기 버튼 등) `label` 을 준다. 없으면 화면 낭독기가 건너뛴다.
|
|
2579
2581
|
|
|
2580
|
-
**쓰지 않는다.** 없는 모양을 다른 라이브러리나 손으로 그린 SVG 로 채우지 않는다. 이 저장소의 `scripts/build-icons.mjs` 에 이름을 더하고 `yarn icons` 를 돌린다. 브랜드 로고(SNS
|
|
2582
|
+
**쓰지 않는다.** 없는 모양을 다른 라이브러리나 손으로 그린 SVG 로 채우지 않는다. 이 저장소의 `scripts/build-icons.mjs` 에 이름을 더하고 `yarn icons` 를 돌린다. 브랜드 로고(SNS·메신저 제외, Phosphor 에 있는 것만)·일러스트는 아이콘이 아니다. SNS·메신저 로고(`whatsapp-logo`·`telegram-logo` 등)도 다른 아이콘처럼 단색(`currentColor`)으로만 그린다. 브랜드 고정색은 없다.
|
|
2581
2583
|
|
|
2582
2584
|
### 접근성
|
|
2583
2585
|
|
|
@@ -2599,6 +2601,10 @@ import { Icon } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
2599
2601
|
</button>
|
|
2600
2602
|
```
|
|
2601
2603
|
|
|
2604
|
+
```tsx
|
|
2605
|
+
<Icon name="whatsapp-logo" size="m" />
|
|
2606
|
+
```
|
|
2607
|
+
|
|
2602
2608
|
```tsx
|
|
2603
2609
|
<Icon name="house" weight="fill" size="l" />
|
|
2604
2610
|
```
|
|
@@ -2615,7 +2621,7 @@ import { Icon } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
2615
2621
|
| --- | --- | --- | --- |
|
|
2616
2622
|
| `label` | `string` | | |
|
|
2617
2623
|
| `size` | `'xs' \| 's' \| 'm' \| 'l' \| 'xl'` | | `'l'` |
|
|
2618
|
-
| `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' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo'` | 예 | |
|
|
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'` | 예 | |
|
|
2619
2625
|
| `weight` | `'fill' \| 'regular'` | | |
|
|
2620
2626
|
|
|
2621
2627
|
이 밖에 React·HTML 기본 속성 474개를 받는다.
|
|
@@ -3279,12 +3285,15 @@ import { ListRow } from '@nurihaus/web-design-system/list-row'; // 이 컴포
|
|
|
3279
3285
|
import { ListRow } from '@nurihaus/web-design-system'; // 루트. 첫 로드 JS 가 커진다
|
|
3280
3286
|
```
|
|
3281
3287
|
|
|
3282
|
-
**언제 쓴다.** ListGroup 안의 한 줄에 쓴다. `label` 이 이름, `description` 이 아래 보조 글, `leading` 이 왼쪽(Icon size m 이나 Avatar), `trailing` 이 오른쪽(값 글자, OptionBadge, Switch)이다. 다른 화면으로 가는 줄은 `asChild` 를 주고 링크 요소(`<a>`·라우터 Link) 하나를 children 으로 준다 — 그 링크가 줄이 되고 내용은 링크 안에 들어간다. 그 자리에서 동작하는 줄은 `onClick` 을 주면 button 이 된다. 누르는 줄은 오른쪽 끝에 화살표가 기본으로 붙고 `chevron={false}` 로 숨긴다. 누르면 배경이 잠깐 어두워진다. `className`·`style` 은 줄(button·링크) 자체에
|
|
3288
|
+
**언제 쓴다.** ListGroup 안의 한 줄에 쓴다. `label` 이 이름, `description` 이 아래 보조 글, `leading` 이 왼쪽(Icon size m 이나 Avatar), `trailing` 이 오른쪽(값 글자, OptionBadge, Switch)이다. 다른 화면으로 가는 줄은 `asChild` 를 주고 링크 요소(`<a>`·라우터 Link) 하나를 children 으로 준다 — 그 링크가 줄이 되고 내용은 링크 안에 들어간다. 그 자리에서 동작하는 줄은 `onClick` 을 주면 button 이 된다. 누르는 줄은 오른쪽 끝에 화살표가 기본으로 붙고 `chevron={false}` 로 숨긴다. 누르면 배경이 잠깐 어두워진다. `className`·`style` 은 줄(button·링크) 자체에 붙는다(`handle` 이 있으면 바깥 줄 div).
|
|
3283
3289
|
|
|
3284
3290
|
- `pressEffect`(기본 `true`): `onClick`·`asChild` 가 있는 줄을 누르는 동안 배경이 어두워진다. 크기는 줄지 않는다. 보기만 하는 줄에는 붙지 않는다. `false`면 끈다.
|
|
3285
3291
|
- `size`: `'s' | 'm' | 'l'`, 기본 `'m'`. 줄의 최소 높이(48 · 56 · 64px)만 바꾼다.
|
|
3286
3292
|
- `border`: `'indented' | 'full' | 'none'`, 기본 `'indented'`. 이 줄과 다음 줄 사이의 선이다. indented 는 왼쪽을 안쪽 여백만큼 띄우고 full 은 끝까지 긋는다. 마지막 줄의 값은 보이지 않는다.
|
|
3287
3293
|
- `effectRef`: `Ref<AttentionHandle>`. `shine(times?)`·`blink(times?)` 로 방금 바뀐 줄을 짚는다. 값이 바뀐 순간에 쓰는 쪽이 부른다.
|
|
3294
|
+
- `handle`: 줄 왼쪽 끝 끌기 핸들 칸. 보통 `<IconButton icon="dots-six-vertical" size="s" label="순서 바꾸기" />`(보이는 원 36px, 누르는 자리 44px). 핸들이 있으면 줄은 div 가 되고 누르는 영역(button·링크)은 그 안의 `.list-row-main` 이다 — 핸들 버튼이 버튼 안에 들어가지 않는다. 이때 `className`·`style` 은 바깥 줄 div 에 붙는다. 끌기 동작(포인터·키보드로 순서 바꾸기, 저장)은 쓰는 쪽이 한다.
|
|
3295
|
+
- `highlighted`(기본 `false`): 강조 테두리. 대표 연락처·기본 배송지처럼 하나만 다른 줄에 준다. 이 줄 위·아래 구분선은 그리지 않는다.
|
|
3296
|
+
- `dragging`(기본 `false`): 끄는 중 모양(배경이 한 단계 어둡고 핸들 커서가 grabbing). 끄는 동안 쓰는 쪽이 켠다.
|
|
3288
3297
|
|
|
3289
3298
|
**쓰지 않는다.** `trailing` 에 Switch 같은 버튼을 둔 줄에는 `onClick`·`asChild` 를 주지 않는다 — 버튼 안에 버튼이 들어간다. 줄을 ListGroup 밖에 홀로 두지 않는다. 사용 로그는 넘기는 링크·핸들러에서 남긴다.
|
|
3290
3299
|
|
|
@@ -3301,9 +3310,21 @@ import { ListRow } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3301
3310
|
</ListGroup>
|
|
3302
3311
|
```
|
|
3303
3312
|
|
|
3313
|
+
```tsx
|
|
3314
|
+
<ListGroup>
|
|
3315
|
+
<ListRow
|
|
3316
|
+
label="대표 연락처"
|
|
3317
|
+
description="010-0000-0000"
|
|
3318
|
+
handle={<IconButton icon="dots-six-vertical" size="s" label="순서 바꾸기" />}
|
|
3319
|
+
highlighted
|
|
3320
|
+
onClick={() => {}}
|
|
3321
|
+
/>
|
|
3322
|
+
</ListGroup>
|
|
3323
|
+
```
|
|
3324
|
+
|
|
3304
3325
|
### ListRow.Loader
|
|
3305
3326
|
|
|
3306
|
-
불러오는 동안 줄 하나의 자리에 원과 두 줄 글의 스켈레톤(SkeletonGroup `listWithIcon`)을 줄의 높이·여백·선 그대로 그린다. `size`·`border` 는 ListRow 와 같다. `aria-label`(기본 `'불러오는 중'`)로 한 번 알리고 `animated` 로 shimmer 를 끈다. `className`·`style` 은 줄 자리 div 에 붙는다. 줄 수만큼 놓는다.
|
|
3327
|
+
불러오는 동안 줄 하나의 자리에 원과 두 줄 글의 스켈레톤(SkeletonGroup `listWithIcon`)을 줄의 높이·여백·선 그대로 그린다. `size`·`border` 는 ListRow 와 같다. `aria-label`(기본 `'불러오는 중'`)로 한 번 알리고 `animated` 로 shimmer 를 끈다. `className`·`style` 은 줄 자리 div 에 붙는다. 줄 수만큼 놓는다. 실제 줄에 아이콘이 없으면 `leading={false}`, label 만 있으면 `description={false}` 로 원·두 번째 줄을 뺀다(둘 다 기본 `true`) — 자리 높이가 실제 줄과 같아진다. 한 줄일 때 폭은 두 줄의 마지막 줄과 같은 60%다.
|
|
3307
3328
|
|
|
3308
3329
|
### 접근성
|
|
3309
3330
|
|
|
@@ -3312,6 +3333,7 @@ import { ListRow } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3312
3333
|
| 요소 | 속성 | 값 |
|
|
3313
3334
|
| --- | --- | --- |
|
|
3314
3335
|
| `.list-row` | `role` | `button` · `link` |
|
|
3336
|
+
| `.list-row-main` | `role` | `button` · `link` |
|
|
3315
3337
|
| `.list-row-chevron` | `aria-hidden` | `true` |
|
|
3316
3338
|
| `.list-row-loader .skeleton-group` | `role` | `status` |
|
|
3317
3339
|
| `.list-row-loader .skeleton-group` | `aria-busy` | `true` |
|
|
@@ -3323,12 +3345,15 @@ import { ListRow } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3323
3345
|
| 무엇 | 어디에 | 왜 |
|
|
3324
3346
|
| --- | --- | --- |
|
|
3325
3347
|
| `aria-label` | `trailing` 의 Switch 같은 컨트롤 | 줄의 `label` 이 컨트롤 이름으로 이어지지 않는다 |
|
|
3348
|
+
| `aria-label` | `handle` 의 IconButton(`label`) | 무엇을 하는 버튼인지(예: `순서 바꾸기`) |
|
|
3349
|
+
| 키보드 순서 바꾸기·바뀐 순서 안내 | `handle` 을 쓰는 목록 | DS 는 끌기 동작을 하지 않는다. ↑↓ 등 키 이동과 결과 안내는 쓰는 쪽이 단다 |
|
|
3326
3350
|
| `aria-label` | ListRow.Loader | 기본은 `불러오는 중`. 무엇을 불러오는지 알리려면 바꾼다 |
|
|
3327
3351
|
|
|
3328
3352
|
```tsx
|
|
3329
3353
|
<ListGroup label="계좌">
|
|
3330
3354
|
<ListRow.Loader aria-label="계좌 불러오는 중" />
|
|
3331
3355
|
<ListRow.Loader />
|
|
3356
|
+
<ListRow.Loader leading={false} description={false} />
|
|
3332
3357
|
</ListGroup>
|
|
3333
3358
|
```
|
|
3334
3359
|
|
|
@@ -3348,10 +3373,13 @@ import { ListRow } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3348
3373
|
| `pressEffect` | `boolean` | | `true` |
|
|
3349
3374
|
| `effectRef` | `Ref<AttentionHandle>` | | |
|
|
3350
3375
|
| `border` | `'none' \| 'full' \| 'indented'` | | `'indented'` |
|
|
3351
|
-
| `description` | `ReactNode` | |
|
|
3376
|
+
| `description` | `ReactNode` | | `true` |
|
|
3352
3377
|
| `chevron` | `boolean` | | |
|
|
3353
|
-
| `leading` | `ReactNode` | |
|
|
3378
|
+
| `leading` | `ReactNode` | | `true` |
|
|
3354
3379
|
| `trailing` | `ReactNode` | | |
|
|
3380
|
+
| `handle` | `ReactNode` | | |
|
|
3381
|
+
| `highlighted` | `boolean` | | `false` |
|
|
3382
|
+
| `dragging` | `boolean` | | `false` |
|
|
3355
3383
|
|
|
3356
3384
|
이 밖에 React·HTML 기본 속성 264개를 받는다.
|
|
3357
3385
|
|
|
@@ -3361,10 +3389,12 @@ import { ListRow } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3361
3389
|
| --- | --- | --- | --- |
|
|
3362
3390
|
| `size` | `'s' \| 'm' \| 'l'` | | `'m'` |
|
|
3363
3391
|
| `border` | `'none' \| 'full' \| 'indented'` | | `'indented'` |
|
|
3392
|
+
| `leading` | `boolean` | | `true` |
|
|
3393
|
+
| `description` | `boolean` | | `true` |
|
|
3364
3394
|
| `className` | `string` | | |
|
|
3365
3395
|
| `style` | `CSSProperties` | | |
|
|
3366
3396
|
| `aria-label` | `string` | | |
|
|
3367
|
-
| `animated` | `boolean` | |
|
|
3397
|
+
| `animated` | `boolean` | | `true` |
|
|
3368
3398
|
|
|
3369
3399
|
이 밖에 React·HTML 기본 속성 2개를 받는다.
|
|
3370
3400
|
|
|
@@ -3462,7 +3492,7 @@ import { ListFooter } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3462
3492
|
| `asChild` | `boolean` | | |
|
|
3463
3493
|
| `trackProps` | `Record<string, string \| number \| boolean>` | | |
|
|
3464
3494
|
| `pressEffect` | `boolean` | | `true` |
|
|
3465
|
-
| `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' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo'` | | `'caret-down'` |
|
|
3495
|
+
| `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'` |
|
|
3466
3496
|
| `border` | `'none' \| 'full' \| 'indented'` | | `'full'` |
|
|
3467
3497
|
|
|
3468
3498
|
이 밖에 React·HTML 기본 속성 264개를 받는다.
|
|
@@ -3750,7 +3780,7 @@ import { Notice } from '@nurihaus/web-design-system/notice'; // 이 컴포넌
|
|
|
3750
3780
|
import { Notice } from '@nurihaus/web-design-system'; // 루트. 첫 로드 JS 가 커진다
|
|
3751
3781
|
```
|
|
3752
3782
|
|
|
3753
|
-
**언제 쓴다.** 카드·바텀시트·폼 안에 머무르며 상태나 주의를 알릴 때 쓴다(예: "검토 중입니다", "저장하지 못했습니다"). `variant`(`neutral` 기본·`success`·`warning`·`danger`)가 바탕색·글자색과 앞 아이콘(정보·체크·경고·경고)을 정한다. `danger` 는 `role="alert"` 라 화면 낭독기가 바로 읽는다. 다른 variant 에 role 이 필요하면 쓰는 쪽이 `role` 을 준다(그 값이 앞선다). `title` 은 본문 위 굵은 한 줄, `children` 이 본문이다. `action`(`{ label, onClick, loading?, track? }`)을 주면 본문 아래 작은 버튼(CTAButton xs·`primary`·`outline`)이 하나 붙는다. `loading` 이면 버튼이 Spinner 로 바뀌고 처리 중에는 `onClick` 을 다시 부르지 않는다. 조건에 따라 나타나는 안내만 `motion`(`weak`·`strong`)을 준다 — 나타날 때 흐려졌다 선명해진다. 사라질 때는 움직이지 않는다. `className`·`style` 은 루트(`div`)에 붙는다.
|
|
3783
|
+
**언제 쓴다.** 카드·바텀시트·폼 안에 머무르며 상태나 주의를 알릴 때 쓴다(예: "검토 중입니다", "저장하지 못했습니다"). `variant`(`neutral` 기본·`success`·`warning`·`danger`)가 바탕색·글자색과 앞 아이콘(정보·체크·경고·경고)을 정한다. `danger` 는 `role="alert"` 라 화면 낭독기가 바로 읽는다. 다른 variant 에 role 이 필요하면 쓰는 쪽이 `role` 을 준다(그 값이 앞선다). `title` 은 본문 위 굵은 한 줄, `children` 이 본문이다. `action`(`{ label, onClick, loading?, track? }`)을 주면 본문 아래 작은 버튼(CTAButton xs·`primary`·`outline`)이 하나 붙는다. 짧은 안내 한두 줄과 버튼 하나면 `actionPlacement="inline"`으로 버튼을 본문 오른쪽 같은 줄(마지막 줄 옆)에 둔다. 본문이 길면 기본 `below`가 낫다. `loading` 이면 버튼이 Spinner 로 바뀌고 처리 중에는 `onClick` 을 다시 부르지 않는다. 조건에 따라 나타나는 안내만 `motion`(`weak`·`strong`)을 준다 — 나타날 때 흐려졌다 선명해진다. 사라질 때는 움직이지 않는다. `className`·`style` 은 루트(`div`)에 붙는다.
|
|
3754
3784
|
|
|
3755
3785
|
**쓰지 않는다.** 행동 결과를 잠깐 알리고 스스로 사라져야 하면 Toast 를 쓴다. 입력칸 하나의 오류는 TextField 의 helper text 를 쓴다. 목록이 비었거나 화면 전체를 채우는 안내는 EmptyState 를 쓴다.
|
|
3756
3786
|
|
|
@@ -3776,6 +3806,17 @@ import { Notice } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
3776
3806
|
</Notice>
|
|
3777
3807
|
```
|
|
3778
3808
|
|
|
3809
|
+
```tsx
|
|
3810
|
+
<Notice
|
|
3811
|
+
variant="danger"
|
|
3812
|
+
title="이미 쓰는 이름이에요"
|
|
3813
|
+
actionPlacement="inline"
|
|
3814
|
+
action={{ label: '이 이름 쓰기', onClick: () => {} }}
|
|
3815
|
+
>
|
|
3816
|
+
닉네임3 은 어때요?
|
|
3817
|
+
</Notice>
|
|
3818
|
+
```
|
|
3819
|
+
|
|
3779
3820
|
**모션.** enter(opt, `motion`). 토큰 값과 규칙은 `motion.md`.
|
|
3780
3821
|
|
|
3781
3822
|
### props
|
|
@@ -3787,6 +3828,7 @@ import { Notice } from '@nurihaus/web-design-system'; // 루트. 첫
|
|
|
3787
3828
|
| `variant` | `'neutral' \| 'danger' \| 'success' \| 'warning'` | | `'neutral'` |
|
|
3788
3829
|
| `motion` | `'strong' \| 'weak'` | | |
|
|
3789
3830
|
| `action` | `NoticeAction` | | |
|
|
3831
|
+
| `actionPlacement` | `'inline' \| 'below'` | | `'below'` |
|
|
3790
3832
|
|
|
3791
3833
|
이 밖에 React·HTML 기본 속성 264개를 받는다.
|
|
3792
3834
|
|
|
@@ -3854,7 +3896,7 @@ import { EmptyState } from '@nurihaus/web-design-system'; // 루트.
|
|
|
3854
3896
|
| `figure` | `ReactNode` | | |
|
|
3855
3897
|
| `title` | `ReactNode` | 예 | |
|
|
3856
3898
|
| `variant` | `'neutral' \| 'success' \| 'default'` | | `'default'` |
|
|
3857
|
-
| `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' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo'` | | |
|
|
3899
|
+
| `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'` | | |
|
|
3858
3900
|
| `description` | `ReactNode` | | |
|
|
3859
3901
|
| `action` | `ReactNode` | | |
|
|
3860
3902
|
| `titleAs` | `'h1' \| 'h2' \| 'h3' \| 'p'` | | `'p'` |
|
|
@@ -4505,7 +4547,7 @@ import { Paragraph } from '@nurihaus/web-design-system'; // 루트.
|
|
|
4505
4547
|
| prop | 타입 | 필수 | 기본값 |
|
|
4506
4548
|
| --- | --- | --- | --- |
|
|
4507
4549
|
| `label` | `string` | | |
|
|
4508
|
-
| `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' \| 'backspace' \| 'arrow-fat-up' \| 'instagram-logo' \| 'tiktok-logo' \| 'youtube-logo'` | 예 | |
|
|
4550
|
+
| `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'` | 예 | |
|
|
4509
4551
|
| `weight` | `'fill' \| 'regular'` | | `'regular'` |
|
|
4510
4552
|
|
|
4511
4553
|
이 밖에 React·HTML 기본 속성 474개를 받는다.
|
package/dist/ai/tokens.md
CHANGED
|
@@ -472,9 +472,9 @@
|
|
|
472
472
|
| `--modal-width-s` | `400px` | 폭 |
|
|
473
473
|
| `--modal-width-m` | `450px` | 폭 |
|
|
474
474
|
| `--modal-width-l` | `500px` | 폭 |
|
|
475
|
-
| `--sheet-handle-width` | `40px` | 아래 시트(BottomSheet): 손잡이 크기와 가장 큰 높이. 위 8% 는 시트 뒤 화면이 보이게 남긴다 |
|
|
476
|
-
| `--sheet-handle-height` | `4px` | 아래 시트(BottomSheet): 손잡이 크기와 가장 큰 높이. 위 8% 는 시트 뒤 화면이 보이게 남긴다 |
|
|
477
|
-
| `--sheet-max-height` | `92dvh` | 아래 시트(BottomSheet): 손잡이 크기와 가장 큰 높이. 위 8% 는 시트 뒤 화면이 보이게 남긴다 |
|
|
475
|
+
| `--sheet-handle-width` | `40px` | 아래 시트(BottomSheet·Drawer bottom 의 fit-content·fit-screen): 손잡이 크기와 가장 큰 높이. 위 8% 는 시트 뒤 화면이 보이게 남긴다 |
|
|
476
|
+
| `--sheet-handle-height` | `4px` | 아래 시트(BottomSheet·Drawer bottom 의 fit-content·fit-screen): 손잡이 크기와 가장 큰 높이. 위 8% 는 시트 뒤 화면이 보이게 남긴다 |
|
|
477
|
+
| `--sheet-max-height` | `92dvh` | 아래 시트(BottomSheet·Drawer bottom 의 fit-content·fit-screen): 손잡이 크기와 가장 큰 높이. 위 8% 는 시트 뒤 화면이 보이게 남긴다 |
|
|
478
478
|
| `--menu-min-width` | `180px` | 행동 메뉴(Menu) 목록의 가장 좁은 폭 |
|
|
479
479
|
| `--highlight-message-max-width` | `280px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
|
|
480
480
|
| `--bottom-nav-height` | `62px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
|
package/dist/chunk-7653.js
CHANGED
|
@@ -226,6 +226,18 @@ var iconPaths = {
|
|
|
226
226
|
regular: ['M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'],
|
|
227
227
|
fill: ['M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z']
|
|
228
228
|
},
|
|
229
|
+
'dots-six-vertical': {
|
|
230
|
+
regular: ['M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z'],
|
|
231
|
+
fill: ['M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z']
|
|
232
|
+
},
|
|
233
|
+
'envelope-simple': {
|
|
234
|
+
regular: ['M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z'],
|
|
235
|
+
fill: ['M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z']
|
|
236
|
+
},
|
|
237
|
+
phone: {
|
|
238
|
+
regular: ['M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z'],
|
|
239
|
+
fill: ['M231.88,175.08A56.26,56.26,0,0,1,176,224C96.6,224,32,159.4,32,80A56.26,56.26,0,0,1,80.92,24.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,117.39,96c-.18.27-.37.52-.57.77L96,121.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,231.88,175.08Z']
|
|
240
|
+
},
|
|
229
241
|
backspace: {
|
|
230
242
|
regular: ['M216,40H68.53a16.08,16.08,0,0,0-13.72,7.77L9.14,123.88a8,8,0,0,0,0,8.24l45.67,76.11A16.08,16.08,0,0,0,68.53,216H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM61.67,204.12,68.53,200h0ZM216,200H68.53l-43.2-72,43.2-72H216ZM106.34,146.34,124.69,128l-18.35-18.34a8,8,0,0,1,11.32-11.32L136,116.69l18.34-18.35a8,8,0,0,1,11.32,11.32L147.31,128l18.35,18.34a8,8,0,0,1-11.32,11.32L136,139.31l-18.34,18.35a8,8,0,0,1-11.32-11.32Z'],
|
|
231
243
|
fill: ['M216,40H68.53a16.12,16.12,0,0,0-13.72,7.77L9.14,123.88a8,8,0,0,0,0,8.24l45.67,76.11h0A16.11,16.11,0,0,0,68.53,216H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM165.66,146.34a8,8,0,0,1-11.32,11.32L136,139.31l-18.35,18.35a8,8,0,0,1-11.31-11.32L124.69,128l-18.35-18.34a8,8,0,1,1,11.31-11.32L136,116.69l18.34-18.35a8,8,0,0,1,11.32,11.32L147.31,128Z']
|
|
@@ -245,6 +257,14 @@ var iconPaths = {
|
|
|
245
257
|
'youtube-logo': {
|
|
246
258
|
regular: ['M164.44,121.34l-48-32A8,8,0,0,0,104,96v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,145.05V111l25.58,17ZM234.33,69.52a24,24,0,0,0-14.49-16.4C185.56,39.88,131,40,128,40s-57.56-.12-91.84,13.12a24,24,0,0,0-14.49,16.4C19.08,79.5,16,97.74,16,128s3.08,48.5,5.67,58.48a24,24,0,0,0,14.49,16.41C69,215.56,120.4,216,127.34,216h1.32c6.94,0,58.37-.44,91.18-13.11a24,24,0,0,0,14.49-16.41c2.59-10,5.67-28.22,5.67-58.48S236.92,79.5,234.33,69.52Zm-15.49,113a8,8,0,0,1-4.77,5.49c-31.65,12.22-85.48,12-86,12H128c-.54,0-54.33.2-86-12a8,8,0,0,1-4.77-5.49C34.8,173.39,32,156.57,32,128s2.8-45.39,5.16-54.47A8,8,0,0,1,41.93,68c30.52-11.79,81.66-12,85.85-12h.27c.54,0,54.38-.18,86,12a8,8,0,0,1,4.77,5.49C221.2,82.61,224,99.43,224,128S221.2,173.39,218.84,182.47Z'],
|
|
247
259
|
fill: ['M234.33,69.52a24,24,0,0,0-14.49-16.4C185.56,39.88,131,40,128,40s-57.56-.12-91.84,13.12a24,24,0,0,0-14.49,16.4C19.08,79.5,16,97.74,16,128s3.08,48.5,5.67,58.48a24,24,0,0,0,14.49,16.41C69,215.56,120.4,216,127.34,216h1.32c6.94,0,58.37-.44,91.18-13.11a24,24,0,0,0,14.49-16.41c2.59-10,5.67-28.22,5.67-58.48S236.92,79.5,234.33,69.52Zm-73.74,65-40,28A8,8,0,0,1,108,156V100a8,8,0,0,1,12.59-6.55l40,28a8,8,0,0,1,0,13.1Z']
|
|
260
|
+
},
|
|
261
|
+
'whatsapp-logo': {
|
|
262
|
+
regular: ['M187.58,144.84l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88,40,40,0,0,0,40-40A8,8,0,0,0,187.58,144.84ZM152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155l14.61-9.74,23,11.48A24,24,0,0,1,152,176ZM128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z'],
|
|
263
|
+
fill: ['M152.58,145.23l23,11.48A24,24,0,0,1,152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155ZM232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-40,24a8,8,0,0,0-4.42-7.16l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88A40,40,0,0,0,192,152Z']
|
|
264
|
+
},
|
|
265
|
+
'telegram-logo': {
|
|
266
|
+
regular: ['M228.88,26.19a9,9,0,0,0-9.16-1.57L17.06,103.93a14.22,14.22,0,0,0,2.43,27.21L72,141.45V200a15.92,15.92,0,0,0,10,14.83,15.91,15.91,0,0,0,17.51-3.73l25.32-26.26L165,220a15.88,15.88,0,0,0,10.51,4,16.3,16.3,0,0,0,5-.79,15.85,15.85,0,0,0,10.67-11.63L231.77,35A9,9,0,0,0,228.88,26.19Zm-61.14,36L78.15,126.35l-49.6-9.73ZM88,200V152.52l24.79,21.74Zm87.53,8L92.85,135.5l119-85.29Z'],
|
|
267
|
+
fill: ['M228.88,26.19a9,9,0,0,0-9.16-1.57L17.06,103.93a14.22,14.22,0,0,0,2.43,27.21L72,141.45V200a15.92,15.92,0,0,0,10,14.83,15.91,15.91,0,0,0,17.51-3.73l25.32-26.26L165,220a15.88,15.88,0,0,0,10.51,4,16.3,16.3,0,0,0,5-.79,15.85,15.85,0,0,0,10.67-11.63L231.77,35A9,9,0,0,0,228.88,26.19ZM175.53,208,92.85,135.5l119-85.29Z']
|
|
248
268
|
}
|
|
249
269
|
};
|
|
250
270
|
;// ./components/icon/base-icon.tsx
|
|
@@ -1,62 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export const __webpack_esm_id__ =
|
|
3
|
-
export const __webpack_esm_ids__ = [
|
|
2
|
+
export const __webpack_esm_id__ = 7687;
|
|
3
|
+
export const __webpack_esm_ids__ = [7687];
|
|
4
4
|
export const __webpack_esm_modules__ = {
|
|
5
5
|
|
|
6
|
-
/***/ 3008
|
|
7
|
-
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
|
-
|
|
9
|
-
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
10
|
-
/* harmony export */ G: () => (/* binding */ PATTERNS)
|
|
11
|
-
/* harmony export */ });
|
|
12
|
-
/* unused harmony export patterns */
|
|
13
|
-
var patterns = (/* unused pure expression or super */ null && (['list', 'listWithIcon', 'titleList', 'card', 'table']));
|
|
14
|
-
var tableRow = {
|
|
15
|
-
kind: 'row',
|
|
16
|
-
items: [{
|
|
17
|
-
kind: 'rect'
|
|
18
|
-
}, {
|
|
19
|
-
kind: 'rect'
|
|
20
|
-
}, {
|
|
21
|
-
kind: 'rect'
|
|
22
|
-
}, {
|
|
23
|
-
kind: 'rect'
|
|
24
|
-
}]
|
|
25
|
-
};
|
|
26
|
-
/** 패턴마다 위에서부터 그릴 블록. repeat 은 마지막 블록을 되풀이한다 */
|
|
27
|
-
var PATTERNS = {
|
|
28
|
-
list: [{
|
|
29
|
-
kind: 'text',
|
|
30
|
-
lines: 1
|
|
31
|
-
}],
|
|
32
|
-
listWithIcon: [{
|
|
33
|
-
kind: 'row',
|
|
34
|
-
items: [{
|
|
35
|
-
kind: 'circle'
|
|
36
|
-
}, {
|
|
37
|
-
kind: 'text',
|
|
38
|
-
lines: 2
|
|
39
|
-
}]
|
|
40
|
-
}],
|
|
41
|
-
titleList: [{
|
|
42
|
-
kind: 'title'
|
|
43
|
-
}, {
|
|
44
|
-
kind: 'text',
|
|
45
|
-
lines: 1
|
|
46
|
-
}],
|
|
47
|
-
card: [{
|
|
48
|
-
kind: 'card'
|
|
49
|
-
}, {
|
|
50
|
-
kind: 'title'
|
|
51
|
-
}, {
|
|
52
|
-
kind: 'text',
|
|
53
|
-
lines: 1
|
|
54
|
-
}],
|
|
55
|
-
table: [tableRow, tableRow]
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/***/ },
|
|
59
|
-
|
|
60
6
|
/***/ 7687
|
|
61
7
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
62
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export const __webpack_esm_id__ =
|
|
3
|
-
export const __webpack_esm_ids__ = [
|
|
2
|
+
export const __webpack_esm_id__ = 7829;
|
|
3
|
+
export const __webpack_esm_ids__ = [7829];
|
|
4
4
|
export const __webpack_esm_modules__ = {
|
|
5
5
|
|
|
6
6
|
/***/ 6386
|
|
@@ -36,6 +36,43 @@ var SvgExclamation = function SvgExclamation(props) {
|
|
|
36
36
|
|
|
37
37
|
/***/ },
|
|
38
38
|
|
|
39
|
+
/***/ 7050
|
|
40
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
41
|
+
|
|
42
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
43
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
44
|
+
/* harmony export */ });
|
|
45
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(1041);
|
|
46
|
+
var _path, _path2, _path3;
|
|
47
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
48
|
+
|
|
49
|
+
var SvgExclamationCircle = function SvgExclamationCircle(props) {
|
|
50
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", _extends({
|
|
51
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
52
|
+
width: 16,
|
|
53
|
+
height: 16,
|
|
54
|
+
fill: "none",
|
|
55
|
+
viewBox: "0 0 16 16"
|
|
56
|
+
}, props), _path || (_path = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
57
|
+
stroke: "#fff",
|
|
58
|
+
strokeWidth: 1.5,
|
|
59
|
+
d: "M14.25 8a6.25 6.25 0 1 1-12.5 0 6.25 6.25 0 0 1 12.5 0Z"
|
|
60
|
+
})), _path2 || (_path2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
61
|
+
stroke: "#fff",
|
|
62
|
+
strokeLinecap: "round",
|
|
63
|
+
strokeWidth: 1.5,
|
|
64
|
+
d: "M8 5v3.5"
|
|
65
|
+
})), _path3 || (_path3 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
66
|
+
stroke: "#fff",
|
|
67
|
+
strokeLinecap: "round",
|
|
68
|
+
strokeWidth: 2,
|
|
69
|
+
d: "M8 11h.01"
|
|
70
|
+
})));
|
|
71
|
+
};
|
|
72
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SvgExclamationCircle);
|
|
73
|
+
|
|
74
|
+
/***/ },
|
|
75
|
+
|
|
39
76
|
/***/ 7413
|
|
40
77
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
41
78
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const sizes: readonly ["s", "m", "l"];
|
|
2
2
|
export declare const sides: readonly ["right", "left", "bottom"];
|
|
3
|
+
export declare const fits: readonly ["size", "content", "screen"];
|
|
3
4
|
export declare const drawerContentProps: {
|
|
4
5
|
size: import("../../helpers/types/propsDef").ClassNamePropsType<readonly ["s", "m", "l"]>;
|
|
5
6
|
side: {
|
|
@@ -8,4 +9,10 @@ export declare const drawerContentProps: {
|
|
|
8
9
|
values: readonly ["right", "left", "bottom"];
|
|
9
10
|
default: "right";
|
|
10
11
|
};
|
|
12
|
+
fit: {
|
|
13
|
+
type: "className";
|
|
14
|
+
className: string;
|
|
15
|
+
values: readonly ["size", "content", "screen"];
|
|
16
|
+
default: "size";
|
|
17
|
+
};
|
|
11
18
|
};
|
|
@@ -2,7 +2,7 @@ import { ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
|
|
|
2
2
|
import { EnterMotionProps, PresenceCallbackProps } from '../../helpers/motion/motion-props';
|
|
3
3
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
4
4
|
import { TrackProps } from '../logging/logging-type';
|
|
5
|
-
import { sides, sizes } from './drawer-props';
|
|
5
|
+
import { fits, sides, sizes } from './drawer-props';
|
|
6
6
|
export interface DrawerRootProps {
|
|
7
7
|
open?: boolean;
|
|
8
8
|
defaultOpen?: boolean;
|
|
@@ -32,6 +32,11 @@ export interface DrawerProps extends DrawerRootProps, StyleProps, TrackProps, En
|
|
|
32
32
|
footer?: ReactNode;
|
|
33
33
|
side?: (typeof sides)[number];
|
|
34
34
|
size?: (typeof sizes)[number];
|
|
35
|
+
/** side="bottom" 의 높이를 정하는 법. 기본 'size'. right·left 는 이미 화면 높이라 효과가 없다.
|
|
36
|
+
* 'size' — size(s 320 · m 400 · l 520) 고정 높이
|
|
37
|
+
* 'content' — 내용 높이. --sheet-max-height(92dvh)를 넘으면 본문만 스크롤하고 footer 는 아래에 남는다
|
|
38
|
+
* 'screen' — --sheet-max-height(92dvh) 고정. 본문이 높이를 다 써야 할 때 */
|
|
39
|
+
fit?: (typeof fits)[number];
|
|
35
40
|
showCloseIcon?: boolean;
|
|
36
41
|
/** false 면 바깥을 눌러도 닫히지 않고 패널이 좌우로 흔들린다. 기본 true */
|
|
37
42
|
closeOnOverlayClick?: boolean;
|
|
@@ -22,6 +22,12 @@ declare const meta: {
|
|
|
22
22
|
};
|
|
23
23
|
options: readonly ["s", "m", "l"];
|
|
24
24
|
};
|
|
25
|
+
fit: {
|
|
26
|
+
control: {
|
|
27
|
+
type: "select";
|
|
28
|
+
};
|
|
29
|
+
options: readonly ["size", "content", "screen"];
|
|
30
|
+
};
|
|
25
31
|
};
|
|
26
32
|
args: {
|
|
27
33
|
title: string;
|
|
@@ -37,6 +43,8 @@ export declare const Default: Story;
|
|
|
37
43
|
export declare const Sides: Story;
|
|
38
44
|
/** 크기별 열기 버튼이다. 서랍 폭 차이를 본다. */
|
|
39
45
|
export declare const Sizes: Story;
|
|
46
|
+
/** 아래 서랍의 높이 맞추기다. content 는 짧은 본문에 맞춰 낮고, screen 은 화면의 92% 를 쓴다. 버튼 줄은 늘 아래에 있다. */
|
|
47
|
+
export declare const Fits: Story;
|
|
40
48
|
/** 화면 아래에서 올라오는 서랍이다. */
|
|
41
49
|
export declare const Bottom: Story;
|
|
42
50
|
/** 설명 문구와 취소·저장 버튼 줄을 단 서랍이다. 제목 아래 설명과 아래쪽 버튼 줄 배치를 본다. */
|
|
@@ -203,6 +203,18 @@ export declare const iconPaths: {
|
|
|
203
203
|
readonly regular: readonly ["M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"];
|
|
204
204
|
readonly fill: readonly ["M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"];
|
|
205
205
|
};
|
|
206
|
+
readonly 'dots-six-vertical': {
|
|
207
|
+
readonly regular: readonly ["M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"];
|
|
208
|
+
readonly fill: readonly ["M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z"];
|
|
209
|
+
};
|
|
210
|
+
readonly 'envelope-simple': {
|
|
211
|
+
readonly regular: readonly ["M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"];
|
|
212
|
+
readonly fill: readonly ["M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"];
|
|
213
|
+
};
|
|
214
|
+
readonly phone: {
|
|
215
|
+
readonly regular: readonly ["M222.37,158.46l-47.11-21.11-.13-.06a16,16,0,0,0-15.17,1.4,8.12,8.12,0,0,0-.75.56L134.87,160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16,16,0,0,0,1.32-15.06l0-.12L97.54,33.64a16,16,0,0,0-16.62-9.52A56.26,56.26,0,0,0,32,80c0,79.4,64.6,144,144,144a56.26,56.26,0,0,0,55.88-48.92A16,16,0,0,0,222.37,158.46ZM176,208A128.14,128.14,0,0,1,48,80,40.2,40.2,0,0,1,82.87,40a.61.61,0,0,0,0,.12l21,47L83.2,111.86a6.13,6.13,0,0,0-.57.77,16,16,0,0,0-1,15.7c9.06,18.53,27.73,37.06,46.46,46.11a16,16,0,0,0,15.75-1.14,8.44,8.44,0,0,0,.74-.56L168.89,152l47,21.05h0s.08,0,.11,0A40.21,40.21,0,0,1,176,208Z"];
|
|
216
|
+
readonly fill: readonly ["M231.88,175.08A56.26,56.26,0,0,1,176,224C96.6,224,32,159.4,32,80A56.26,56.26,0,0,1,80.92,24.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,117.39,96c-.18.27-.37.52-.57.77L96,121.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,231.88,175.08Z"];
|
|
217
|
+
};
|
|
206
218
|
readonly backspace: {
|
|
207
219
|
readonly regular: readonly ["M216,40H68.53a16.08,16.08,0,0,0-13.72,7.77L9.14,123.88a8,8,0,0,0,0,8.24l45.67,76.11A16.08,16.08,0,0,0,68.53,216H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM61.67,204.12,68.53,200h0ZM216,200H68.53l-43.2-72,43.2-72H216ZM106.34,146.34,124.69,128l-18.35-18.34a8,8,0,0,1,11.32-11.32L136,116.69l18.34-18.35a8,8,0,0,1,11.32,11.32L147.31,128l18.35,18.34a8,8,0,0,1-11.32,11.32L136,139.31l-18.34,18.35a8,8,0,0,1-11.32-11.32Z"];
|
|
208
220
|
readonly fill: readonly ["M216,40H68.53a16.12,16.12,0,0,0-13.72,7.77L9.14,123.88a8,8,0,0,0,0,8.24l45.67,76.11h0A16.11,16.11,0,0,0,68.53,216H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM165.66,146.34a8,8,0,0,1-11.32,11.32L136,139.31l-18.35,18.35a8,8,0,0,1-11.31-11.32L124.69,128l-18.35-18.34a8,8,0,1,1,11.31-11.32L136,116.69l18.34-18.35a8,8,0,0,1,11.32,11.32L147.31,128Z"];
|
|
@@ -223,4 +235,12 @@ export declare const iconPaths: {
|
|
|
223
235
|
readonly regular: readonly ["M164.44,121.34l-48-32A8,8,0,0,0,104,96v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,145.05V111l25.58,17ZM234.33,69.52a24,24,0,0,0-14.49-16.4C185.56,39.88,131,40,128,40s-57.56-.12-91.84,13.12a24,24,0,0,0-14.49,16.4C19.08,79.5,16,97.74,16,128s3.08,48.5,5.67,58.48a24,24,0,0,0,14.49,16.41C69,215.56,120.4,216,127.34,216h1.32c6.94,0,58.37-.44,91.18-13.11a24,24,0,0,0,14.49-16.41c2.59-10,5.67-28.22,5.67-58.48S236.92,79.5,234.33,69.52Zm-15.49,113a8,8,0,0,1-4.77,5.49c-31.65,12.22-85.48,12-86,12H128c-.54,0-54.33.2-86-12a8,8,0,0,1-4.77-5.49C34.8,173.39,32,156.57,32,128s2.8-45.39,5.16-54.47A8,8,0,0,1,41.93,68c30.52-11.79,81.66-12,85.85-12h.27c.54,0,54.38-.18,86,12a8,8,0,0,1,4.77,5.49C221.2,82.61,224,99.43,224,128S221.2,173.39,218.84,182.47Z"];
|
|
224
236
|
readonly fill: readonly ["M234.33,69.52a24,24,0,0,0-14.49-16.4C185.56,39.88,131,40,128,40s-57.56-.12-91.84,13.12a24,24,0,0,0-14.49,16.4C19.08,79.5,16,97.74,16,128s3.08,48.5,5.67,58.48a24,24,0,0,0,14.49,16.41C69,215.56,120.4,216,127.34,216h1.32c6.94,0,58.37-.44,91.18-13.11a24,24,0,0,0,14.49-16.41c2.59-10,5.67-28.22,5.67-58.48S236.92,79.5,234.33,69.52Zm-73.74,65-40,28A8,8,0,0,1,108,156V100a8,8,0,0,1,12.59-6.55l40,28a8,8,0,0,1,0,13.1Z"];
|
|
225
237
|
};
|
|
238
|
+
readonly 'whatsapp-logo': {
|
|
239
|
+
readonly regular: readonly ["M187.58,144.84l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88,40,40,0,0,0,40-40A8,8,0,0,0,187.58,144.84ZM152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155l14.61-9.74,23,11.48A24,24,0,0,1,152,176ZM128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"];
|
|
240
|
+
readonly fill: readonly ["M152.58,145.23l23,11.48A24,24,0,0,1,152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155ZM232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-40,24a8,8,0,0,0-4.42-7.16l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88A40,40,0,0,0,192,152Z"];
|
|
241
|
+
};
|
|
242
|
+
readonly 'telegram-logo': {
|
|
243
|
+
readonly regular: readonly ["M228.88,26.19a9,9,0,0,0-9.16-1.57L17.06,103.93a14.22,14.22,0,0,0,2.43,27.21L72,141.45V200a15.92,15.92,0,0,0,10,14.83,15.91,15.91,0,0,0,17.51-3.73l25.32-26.26L165,220a15.88,15.88,0,0,0,10.51,4,16.3,16.3,0,0,0,5-.79,15.85,15.85,0,0,0,10.67-11.63L231.77,35A9,9,0,0,0,228.88,26.19Zm-61.14,36L78.15,126.35l-49.6-9.73ZM88,200V152.52l24.79,21.74Zm87.53,8L92.85,135.5l119-85.29Z"];
|
|
244
|
+
readonly fill: readonly ["M228.88,26.19a9,9,0,0,0-9.16-1.57L17.06,103.93a14.22,14.22,0,0,0,2.43,27.21L72,141.45V200a15.92,15.92,0,0,0,10,14.83,15.91,15.91,0,0,0,17.51-3.73l25.32-26.26L165,220a15.88,15.88,0,0,0,10.51,4,16.3,16.3,0,0,0,5-.79,15.85,15.85,0,0,0,10.67-11.63L231.77,35A9,9,0,0,0,228.88,26.19ZM175.53,208,92.85,135.5l119-85.29Z"];
|
|
245
|
+
};
|
|
226
246
|
};
|
|
@@ -14,7 +14,7 @@ declare const meta: {
|
|
|
14
14
|
control: {
|
|
15
15
|
type: "select";
|
|
16
16
|
};
|
|
17
|
-
options: ("circle" | "link" | "image" | "x" | "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" | "warning" | "info" | "question" | "lock" | "pencil-simple" | "trash" | "share-network" | "eye" | "sliders-horizontal" | "heart" | "star" | "globe" | "sign-out" | "caret-right" | "caret-down" | "arrow-right" | "backspace" | "arrow-fat-up" | "instagram-logo" | "tiktok-logo" | "youtube-logo")[];
|
|
17
|
+
options: ("circle" | "link" | "image" | "x" | "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" | "warning" | "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")[];
|
|
18
18
|
};
|
|
19
19
|
weight: {
|
|
20
20
|
control: {
|
|
@@ -295,6 +295,9 @@ declare const meta: {
|
|
|
295
295
|
chevron?: boolean | undefined;
|
|
296
296
|
leading?: import("react").ReactNode;
|
|
297
297
|
trailing?: import("react").ReactNode;
|
|
298
|
+
handle?: import("react").ReactNode;
|
|
299
|
+
highlighted?: boolean | undefined;
|
|
300
|
+
dragging?: boolean | undefined;
|
|
298
301
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
299
302
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
300
303
|
};
|
|
@@ -322,7 +325,11 @@ export declare const MotionPress: Story;
|
|
|
322
325
|
export declare const Sizes: Story;
|
|
323
326
|
/** border 는 이 줄과 다음 줄 사이의 선이다. 마지막 줄의 값은 보이지 않는다 */
|
|
324
327
|
export declare const Borders: Story;
|
|
325
|
-
/**
|
|
328
|
+
/** 끌기 핸들·강조·끄는 중. 첫 줄은 대표(highlighted), 둘째 줄은 끄는 중(dragging). 끌기 동작은 쓰는 쪽이 한다 */
|
|
329
|
+
export declare const Reorderable: Story;
|
|
330
|
+
/** ListRow.Loader 는 원과 두 줄 글의 스켈레톤을 행 자리에 그린다. 원·두 번째 줄은 끌 수 있다 */
|
|
326
331
|
export declare const Loader: Story;
|
|
332
|
+
/** 아이콘 없는 줄이면 leading={false}, label 만 있는 줄이면 description={false} */
|
|
333
|
+
export declare const LoaderWithoutLeading: Story;
|
|
327
334
|
/** effectRef 의 shine·blink 로 방금 바뀐 줄을 짚는다 */
|
|
328
335
|
export declare const MotionAttention: Story;
|
|
@@ -38,10 +38,20 @@ export interface ListRowProps extends Omit<ComponentPropsWithRef<'div'>, 'onClic
|
|
|
38
38
|
border?: ListRowBorder;
|
|
39
39
|
/** shine·blink 를 부르는 ref. 방금 바뀐 행을 쓰는 쪽이 짚는다 */
|
|
40
40
|
effectRef?: Ref<AttentionHandle>;
|
|
41
|
+
/** 줄 왼쪽 끝 끌기 핸들 칸. 누르는 영역(button·링크) 밖이라 안에 버튼을 둔다. 보통 `<IconButton icon='dots-six-vertical' size='s' label='순서 바꾸기' />`. 끌기 동작은 쓰는 쪽이 한다 */
|
|
42
|
+
handle?: ReactNode;
|
|
43
|
+
/** 강조 테두리. 대표 연락처·기본 배송지처럼 하나만 다른 줄. 이 줄 위·아래 구분선은 그리지 않는다. 기본 false */
|
|
44
|
+
highlighted?: boolean;
|
|
45
|
+
/** 끄는 중 모양(배경 surface-muted, 핸들 커서 grabbing). 기본 false */
|
|
46
|
+
dragging?: boolean;
|
|
41
47
|
}
|
|
42
48
|
export interface ListRowLoaderProps extends StyleProps, Pick<SkeletonGroupProps, 'animated' | 'aria-label'> {
|
|
43
49
|
size?: ListRowSize;
|
|
44
50
|
border?: ListRowBorder;
|
|
51
|
+
/** 앞 원(아이콘·아바타 자리). 아이콘 없는 줄이면 false. 기본 true */
|
|
52
|
+
leading?: boolean;
|
|
53
|
+
/** 두 번째 줄(description 자리). label 만 있는 줄이면 false 로 한 줄. 기본 true */
|
|
54
|
+
description?: boolean;
|
|
45
55
|
}
|
|
46
56
|
export interface ListHeaderProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
47
57
|
/** 글자면 base semibold 로 그린다 */
|