@nurihaus/web-design-system 3.16.0 → 3.17.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.
@@ -1478,6 +1478,7 @@ import { Modal } from '@nurihaus/web-design-system'; // 루트. 첫
1478
1478
  - `closeOnEscape={false}`면 Escape 로 닫히지 않는다. 기본 true.
1479
1479
  - `closeOnBackEvent`(기본 true)면 열린 동안 history 항목을 하나 쌓아, 브라우저·기기의 뒤로 가기가 페이지를 떠나지 않고 창을 닫는다. 이때도 `onOpenChange(false)` 가 불린다. 버튼·Esc 로 닫으면 쌓은 항목을 `history.back()` 으로 되돌린다. 겹쳐 열면 나중에 연 것부터 닫힌다. 주소가 바뀌어야 하는 화면 단위 오버레이에서는 `false` 로 끄고 라우터로 연다.
1480
1480
  - `portalContainer`를 주면 창을 그 요소 안에 그린다. 없으면 document.body.
1481
+ - 열리면 포커스는 첫 버튼이 아니라 창(dialog)에 놓인다. iOS 웹뷰에서 첫 버튼에 포커스 링이 뜨지 않게 하려는 것이고, Tab 을 누르면 창 안 첫 버튼(X 아이콘이 있으면 X)으로 간다.
1481
1482
  - `trigger` 없이 부모가 열면 닫힐 때 포커스가 연 요소로 돌아온다. 그 요소가 사라졌으면 돌려놓지 않는다.
1482
1483
  - `onEntered`는 등장 애니메이션이 끝난 뒤, `onExited`는 퇴장 애니메이션이 끝나 창이 사라진 뒤 한 번 불린다. reduced-motion 이면 열고 닫는 즉시 불린다.
1483
1484
 
@@ -1566,6 +1567,7 @@ import { Drawer } from '@nurihaus/web-design-system'; // 루트. 첫
1566
1567
  **언제 쓴다.** 상세 정보나 필터처럼 현재 화면을 떠나지 않고 옆이나 아래에서 패널을 꺼내 보여줄 때 쓴다. `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`은 패널에 붙는다.
1567
1568
 
1568
1569
  - right·left 패널은 화면 폭에서 56px(`--drawer-edge-gap`)을 남긴 폭보다 넓어지지 않는다. 좁은 화면에서도 바깥을 눌러 닫을 자리가 남는다.
1570
+ - bottom 패널은 `--layout-max-width`(480px)보다 넓어지지 않고 가운데에 선다. 넓은 화면에서도 한 기둥 화면과 폭이 같다(ADR 0019).
1569
1571
  - `motion`(`weak`·`strong`, 기본 `weak`)은 등장 세기다. `strong`은 스프링으로 끝에서 한 번 튄다. 퇴장은 같다.
1570
1572
  - `closeOnOverlayClick={false}`면 바깥을 눌러도 닫히지 않고 패널이 좌우로 한 번 흔들린다. 기본 true.
1571
1573
  - `closeOnEscape={false}`면 Escape 로 닫히지 않는다. 기본 true.
@@ -2287,7 +2289,7 @@ import { ModalWithDoubleButton } from '@nurihaus/web-design-system';
2287
2289
 
2288
2290
  **언제 쓴다.** 삭제 확인처럼 제목, 설명, 버튼 두 개로 된 확인 대화상자에 쓴다. `ModalWithDoubleButton.Row`는 버튼을 가로로, `ModalWithDoubleButton.Column`은 세로로 배치하며, `left`와 `right`는 CTAButton props를 그대로 받는다. `content`가 길면 `content`만 스크롤되고 X 아이콘·제목과 두 버튼은 제자리에 있다.
2289
2291
 
2290
- **열고 닫기.** `open`·`onOpenChange`를 넘기면 부모가 열림을 정한다. 열리면 포커스가 창 안으로 들어가고, Esc·바깥 누름·X 아이콘(`showCloseIcon`)·두 버튼이 `onOpenChange(false)`를 부르며, 닫히면 포커스가 연 요소로 돌아온다. 바텀시트 안의 삭제 확인처럼 키보드로 닿아야 하는 곳은 이 방식으로 쓴다. 이때 `onEntered` · `onExited` 가 Modal 과 같이 불리고, `closeOnBackEvent`(기본 true)면 뒤로 가기가 페이지를 떠나지 않고 `onOpenChange(false)` 를 부른다(버튼·Esc 로 닫으면 쌓은 history 항목을 되돌린다), `portalContainer` 를 주면 그 요소 안에 그린다. 답만 받으면 되는 삭제 확인은 state 없이 `useDialog().confirm` 으로 연다(OverlayProvider).
2292
+ **열고 닫기.** `open`·`onOpenChange`를 넘기면 부모가 열림을 정한다. 열리면 포커스가 창에 놓이고(첫 버튼이 아니다 — Tab 이 창 안 첫 버튼으로 간다), Esc·바깥 누름·X 아이콘(`showCloseIcon`)·두 버튼이 `onOpenChange(false)`를 부르며, 닫히면 포커스가 연 요소로 돌아온다. 바텀시트 안의 삭제 확인처럼 키보드로 닿아야 하는 곳은 이 방식으로 쓴다. 이때 `onEntered` · `onExited` 가 Modal 과 같이 불리고, `closeOnBackEvent`(기본 true)면 뒤로 가기가 페이지를 떠나지 않고 `onOpenChange(false)` 를 부른다(버튼·Esc 로 닫으면 쌓은 history 항목을 되돌린다), `portalContainer` 를 주면 그 요소 안에 그린다. 답만 받으면 되는 삭제 확인은 state 없이 `useDialog().confirm` 으로 연다(OverlayProvider).
2291
2293
 
2292
2294
  ```tsx
2293
2295
  <ModalWithDoubleButton.Row
@@ -2723,9 +2725,9 @@ import { BottomNav } from '@nurihaus/web-design-system/bottom-nav'; // 이 컴
2723
2725
  import { BottomNav } from '@nurihaus/web-design-system'; // 루트. 첫 로드 JS 가 커진다
2724
2726
  ```
2725
2727
 
2726
- **언제 쓴다.** 휴대폰 화면 바닥에 붙은 주 메뉴(탭 바)다. 탭은 3~5개, 탭마다 `href` 로 화면을 바꾼다. 지금 화면의 탭 id 를 `value` 로 넘기면 그 탭의 글자가 검정이 되고 아이콘이 채움으로 바뀐다(`aria-current="page"`). 탭 바가 스스로 `value` 를 바꾸지 않는다 — 주소가 바뀌면 쓰는 쪽이 새 `value` 를 넘긴다. `label` 은 `<nav>` 의 이름이다.
2728
+ **언제 쓴다.** 휴대폰 화면 아래에 떠 있는 주 메뉴(탭 바)다. 탭은 3~5개, 탭마다 `href` 로 화면을 바꾼다. 지금 화면의 탭 id 를 `value` 로 넘기면 그 탭의 글자가 검정, 아이콘이 채움이 되고 그 칸 뒤에 옅은 캡슐이 깔린다(`aria-current="page"`). 탭 바가 스스로 `value` 를 바꾸지 않는다 — 주소가 바뀌면 쓰는 쪽이 새 `value` 를 넘긴다. `label` 은 `<nav>` 의 이름이다.
2727
2729
 
2728
- 화면 바닥에 고정(`position: fixed`)된 흰 바이고 위에 얇은 선이 하나 있다. 기기 홈 막대 자리는 바 안에 든다. 화면 본문은 아래를 `calc(var(--bottom-nav-space) + env(safe-area-inset-bottom))` 만큼 비워 마지막 내용이 가려지지 않게 한다. `--bottom-nav-space` 는 바 높이(56px)다. `className`·`style` 은 `<nav>` 에 붙는다.
2730
+ 화면 아래에 떠 있는(`position: fixed`) 유리 캡슐이다. 양옆 16px, 바닥 14px 에 기기 홈 막대 자리만큼 더 띄우고, 뒤 내용이 흐리게 비친다. 넓은 화면에서는 `--layout-max-width`(480px) 기둥 안 가운데에 선다 — 한 기둥 화면은 본문 폭도 `max-width: var(--layout-max-width)` 로 맞춘다. 화면 본문은 아래를 `calc(var(--bottom-nav-space) + env(safe-area-inset-bottom))` 만큼 비워 마지막 내용이 가려지지 않게 한다. `--bottom-nav-space` 는 캡슐 높이와 띄움에 16px 을 더한 값(92px)이다. `className`·`style` 은 `<nav>` 에 붙는다.
2729
2731
 
2730
2732
  링크는 기본으로 `<a>` 다. 라우터의 링크로 바꾸려면 `linkComponent` 에 넘긴다. 받는 props 는 `href`·`className`·`children`·`aria-current`·`onClick` 이고, 그대로 링크에 전달하면 된다. `onClick` 을 빠뜨리면 `track` 로그가 나가지 않는다.
2731
2733
 
@@ -2782,7 +2784,7 @@ import Link from 'next/link';
2782
2784
  />
2783
2785
  ```
2784
2786
 
2785
- **반응형.** 그대로 됨. 모바일이 기본 자리다. 화면 아래에 `left: 0; right: 0` 으로 펼쳐진다.
2787
+ **반응형.** 그대로 됨. 모바일이 기본 자리다. 양옆 16px 띄운 캡슐이고 넓은 화면에서는 `--layout-max-width` 안에 선다.
2786
2788
 
2787
2789
  **모션.** press(`pressEffect`) · appear(opt, `appear`) · dismiss-on-scroll(opt, `hideOnScroll`). 토큰 값과 규칙은 `motion.md`.
2788
2790
 
@@ -5923,13 +5925,14 @@ import { BottomSheet } from '@nurihaus/web-design-system/bottom-sheet'; // 이
5923
5925
  import { BottomSheet } from '@nurihaus/web-design-system'; // 루트. 첫 로드 JS 가 커진다
5924
5926
  ```
5925
5927
 
5926
- **언제 쓴다.** 정렬·필터·공유처럼 지금 화면 위에서 잠깐 고르는 내용을 화면 아래에서 올려 보여 줄 때 쓴다. `trigger` 에 넘긴 요소를 누르면 열리고 `open`·`defaultOpen`·`onOpenChange` 로 제어한다. `title` 은 필수이며 dialog 의 접근성 이름이 된다. Esc·바탕 누름·뒤로 가기·손잡이를 아래로 끌기로 닫힌다. `ref`·`className`·`style` 은 끌리는 시트 판(`.bottom-sheet-panel`)에 붙는다. `role="dialog"` 는 그 바깥 틀이다.
5928
+ **언제 쓴다.** 정렬·필터·공유처럼 지금 화면 위에서 잠깐 고르는 내용을 화면 아래에서 올려 보여 줄 때 쓴다. `trigger` 에 넘긴 요소를 누르면 열리고 `open`·`defaultOpen`·`onOpenChange` 로 제어한다. `title` 은 필수이며 dialog 의 접근성 이름이 된다. Esc·바탕 누름·뒤로 가기·손잡이를 아래로 끌기로 닫힌다. `ref`·`className`·`style` 은 끌리는 시트 판(`.bottom-sheet-panel`)에 붙는다. `role="dialog"` 는 그 바깥 틀이다. 시트는 `--layout-max-width`(480px)보다 넓어지지 않고 가운데에 선다(ADR 0019).
5927
5929
 
5928
5930
  - `snapPoints` 는 멈추는 높이들이다. 작은 것부터 `'40%'`(시트 최대 높이 `--sheet-max-height` 의 비율) 또는 `'320px'` 로 준다. 없으면 내용 높이 하나다. `defaultSnap`(기본 0)이 열릴 때의 index 이고 열 때마다 이 값으로 돌아간다. 높이가 바뀌면 `onSnapChange(index)`, 마지막 높이에 닿으면 `onExpanded()` 가 불린다.
5929
5931
  - 끌기는 손잡이와 제목 줄에서만 시작한다. 본문은 스크롤이 먼저다. 손을 떼면 끈 뒤 높이에 가장 가까운 snap 으로 가고, 빠르게 튕기면 그 방향으로 한 칸 옮긴다. 가장 작은 높이의 절반보다 내리면 닫힌다. `onHandleDragStart`·`onHandleDragEnd` 가 끌기 시작과 끝에 불린다. 끌기는 앱 루트에 `MotionProvider` 가 있어야 움직인다.
5930
5932
  - `expandOnScroll` 이면 본문을 위로 스크롤할 때 다음 snap 으로 커진다.
5931
5933
  - `dismissible={false}` 면 바탕이 없고 바깥을 계속 조작할 수 있으며, 바깥 누름·아래로 끌기로 닫히지 않는다(가장 작은 높이에서 멈춘다). 지도 위 장소 정보처럼 띄워 두는 패널에 쓴다. 이때 Esc·뒤로 가기도 막으려면 `closeOnEscape={false}`·`closeOnBackEvent={false}` 를 함께 준다.
5932
5934
  - `hasTextField` 면 화면 키보드가 올라올 때 시트를 그 위로 올린다. 입력 상자가 든 시트에 준다.
5935
+ - 열리면 포커스는 시트 창에 놓인다(첫 입력·버튼이 아니다 — iOS 웹뷰에서 첫 버튼에 포커스 링이 뜨지 않게). Tab 이 창 안 첫 요소로 간다. 열자마자 입력하게 하려면 그 입력에 `autoFocus` 를 준다 — 이미 창 안에 포커스가 있으면 그대로 둔다.
5933
5936
  - `closeOnOverlayClick={false}` 면 바탕을 눌러도 닫히지 않고 시트가 좌우로 한 번 흔들린다. `closeOnEscape={false}` 면 Esc 로 닫히지 않는다. `closeOnBackEvent`(기본 true)는 Drawer 와 같은 뜻이다.
5934
5937
  - `motion`(`weak`·`strong`, 기본 `weak`)은 등장 세기이고 snap 사이를 옮길 때도 같은 세기로 움직인다. `onEntered`·`onExited` 는 등장·퇴장 애니메이션이 끝난 뒤 한 번 불린다.
5935
5938
  - `showHandle`(기본 true)은 위 가운데 손잡이, `pressEffect`(기본 true)는 손잡이의 눌림이다. `portalContainer` 를 주면 그 요소 안에 그린다. `track` 을 주면 열 때 `open`, 닫을 때 `close` 를 보낸다.
@@ -5972,7 +5975,7 @@ import { BottomSheet } from '@nurihaus/web-design-system'; // 루트
5972
5975
  </BottomSheet>
5973
5976
  ```
5974
5977
 
5975
- **반응형.** 그대로 됨. 모바일이 기본 자리다. 화면 아래에서 폭을 채운다.
5978
+ **반응형.** 그대로 됨. 모바일이 기본 자리다. 화면 아래에서 폭을 채우고 넓은 화면에서는 `--layout-max-width` 안에 선다.
5976
5979
 
5977
5980
  **모션.** enter(`motion`, `onEntered`) · exit(`onExited`) · reject(opt) · press(`pressEffect`) · indicate. 토큰 값과 규칙은 `motion.md`.
5978
5981
 
@@ -4,6 +4,14 @@
4
4
 
5
5
  지금 쓰는 버전보다 높은 칸을 위에서부터 읽고 고친다. 칸 제목은 그 변경이 처음 나간 버전이다. 결정의 이유는 패키지에 없고 레포의 `docs/decisions/` 에 있다.
6
6
 
7
+ ## 3.17.0
8
+
9
+ ### ADR 0019 — 하단 탭 바는 떠 있는 유리 캡슐이고, 탭 바와 아래 시트는 한 기둥 폭 안에 선다
10
+
11
+ - BottomNav 아래 본문 여백 식 `calc(var(--bottom-nav-space) + env(safe-area-inset-bottom))` 은 그대로다. 값이 56px 에서 92px 로 커진다. ADR 0015 뒤에 여백을 손으로 더한 화면은 그 여백을 지운다.
12
+ - 한 기둥 화면의 본문 `max-width` 를 숫자로 적었으면 `var(--layout-max-width)` 로 바꾼다. 탭 바와 본문 폭이 같이 움직인다.
13
+ - BottomNav 의 `style`·`className` 으로 `left`·`right`·`bottom`·`max-width` 를 덮던 화면은 그것을 지운다.
14
+
7
15
  ## 3.16.0
8
16
 
9
17
  ### ADR 0018 — 플랫폼 브랜드 색은 테마를 타지 않는 원시 토큰으로 둔다
@@ -139,11 +139,11 @@
139
139
  - **컴포넌트** `Notice variant="neutral"` 기본. 주의는 `warning`, 막힘은 `danger`, 완료는 `success`. 행동은 `action` 하나. 사라지는 알림은 `Toast`, 머무는 안내는 `Notice`.
140
140
  - **금지** 화면에 Notice 둘 이상. Notice 안에 링크 셋 이상. 성공 안내를 danger 색으로 강조.
141
141
 
142
- ### 13. 하단 탭은 바닥에 붙은 흰 바다
142
+ ### 13. 하단 탭은 떠 있는 유리 캡슐이다
143
143
 
144
- - **근거** 4-12 https://www.pinterest.com/pin/1103874558695783391/ · 4-15 https://www.pinterest.com/pin/424182858672487556/
145
- - **규칙** 주 메뉴는 화면 바닥에 붙은 흰 바이고 위에 얇은 선 하나다. 아이콘 넷 또는 다섯, 선택은 검정, 나머지는 연회색이다.
146
- - **컴포넌트** `BottomNav` 항목 4~5개. 기본값이 바닥에 붙은 흰 바다(ADR 0015). 알림 수는 `badge`.
144
+ - **근거** 크리에이터 앱의 탭 바(떠 있는 유리 캡슐). 웹 탭 바도 앱과 같은 모양이어야 한 앱으로 보인다(ADR 0019)
145
+ - **규칙** 주 메뉴는 화면 아래에 떠 있는 반투명 캡슐이고 넓은 화면에서도 본문 기둥 폭 안에 선다. 아이콘 넷 또는 다섯, 선택은 검정 글자에 옅은 캡슐, 나머지는 연회색이다.
146
+ - **컴포넌트** `BottomNav` 항목 4~5개. 기본값이 떠 있는 유리 캡슐이다(ADR 0019). 한 기둥 화면의 본문 폭은 `var(--layout-max-width)`. 알림 수는 `badge`.
147
147
  - **금지** 항목 여섯 이상. 탭 바에 fill 버튼 끼우기. 탭 바와 BottomCTA 를 한 화면에(둘 중 하나).
148
148
 
149
149
  ### 14. 모서리는 역할로 고른다
package/dist/ai/tokens.md CHANGED
@@ -522,20 +522,24 @@
522
522
  | `--sheet-max-height` | `92dvh` | 아래 시트(BottomSheet·Drawer bottom 의 fit-content·fit-screen): 손잡이 크기와 가장 큰 높이. 위 8% 는 시트 뒤 화면이 보이게 남긴다 |
523
523
  | `--menu-min-width` | `180px` | 행동 메뉴(Menu) 목록의 가장 좁은 폭 |
524
524
  | `--highlight-message-max-width` | `280px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
525
- | `--bottom-nav-height` | `56px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
526
- | `--bottom-nav-space` | `var(--bottom-nav-height)` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
527
- | `--bottom-nav-badge-dot` | `8px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
528
- | `--bottom-nav-badge-count` | `18px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
529
- | `--loading-size-s` | `var(--icon-size-xs)` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
530
- | `--loading-size-m` | `var(--icon-size-m)` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
531
- | `--loading-size-l` | `40px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
532
- | `--loading-stroke-s` | `2px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
533
- | `--loading-stroke-m` | `2px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
534
- | `--loading-stroke-l` | `3px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
535
- | `--loading-dot-s` | `4px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
536
- | `--loading-dot-m` | `6px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
537
- | `--loading-dot-l` | `8px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
538
- | `--overlay-progress-width` | `240px` | 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 |
525
+ | `--layout-max-width` | `480px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
526
+ | `--bottom-nav-height` | `62px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
527
+ | `--bottom-nav-padding` | `5px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
528
+ | `--bottom-nav-offset` | `14px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
529
+ | `--bottom-nav-space` | `calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + var(--spacing-16))` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
530
+ | `--glass-blur` | `18px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
531
+ | `--bottom-nav-badge-dot` | `8px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
532
+ | `--bottom-nav-badge-count` | `18px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
533
+ | `--loading-size-s` | `var(--icon-size-xs)` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
534
+ | `--loading-size-m` | `var(--icon-size-m)` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
535
+ | `--loading-size-l` | `40px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
536
+ | `--loading-stroke-s` | `2px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
537
+ | `--loading-stroke-m` | `2px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
538
+ | `--loading-stroke-l` | `3px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
539
+ | `--loading-dot-s` | `4px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
540
+ | `--loading-dot-m` | `6px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
541
+ | `--loading-dot-l` | `8px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
542
+ | `--overlay-progress-width` | `240px` | 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) |
539
543
  | `--progress-thickness-s` | `2px` | 진행 막대 두께. ProgressBar 와 StepProgress 가 같은 size 이름으로 함께 쓴다 |
540
544
  | `--progress-thickness-m` | `4px` | 진행 막대 두께. ProgressBar 와 StepProgress 가 같은 size 이름으로 함께 쓴다 |
541
545
  | `--progress-thickness-l` | `8px` | 진행 막대 두께. ProgressBar 와 StepProgress 가 같은 size 이름으로 함께 쓴다 |
@@ -92,7 +92,7 @@ var BottomNavRoot = Object.assign(BottomNavRootBase, {
92
92
  });
93
93
  /* harmony default export */ const base_bottom_nav = (BottomNavRoot);
94
94
  ;// ./components/bottom-nav/bottom-nav-props.ts
95
- // 크기·변형이 없다. 탭 바는 화면 바닥에 붙은 흰 바 한 모양이다(ADR 0015).
95
+ // 크기·변형이 없다. 탭 바는 화면 아래에 떠 있는 유리 캡슐 한 모양이다(ADR 0019).
96
96
  var bottomNavProps = {};
97
97
  ;// ./components/bottom-nav/bottom-nav.tsx
98
98
  var bottom_nav_assign = undefined && undefined.__assign || function () {
@@ -112,7 +112,7 @@ var BottomSheet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)
112
112
  });
113
113
  var reject = (0,_helpers_motion_use_effect_trigger__WEBPACK_IMPORTED_MODULE_8__/* .useEffectTrigger */ .H)();
114
114
  var _m = (0,_helpers_hooks_useReturnFocus__WEBPACK_IMPORTED_MODULE_6__/* .useReturnFocus */ .G)(),
115
- rememberOpener = _m.rememberOpener,
115
+ focusOnOpen = _m.focusOnOpen,
116
116
  returnFocus = _m.returnFocus;
117
117
  var keyboardInset = (0,_helpers_hooks_useKeyboardInset__WEBPACK_IMPORTED_MODULE_5__/* .useKeyboardInset */ .Q)(open && hasTextField);
118
118
  var changeOpen = function changeOpen(next) {
@@ -228,7 +228,7 @@ var BottomSheet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)
228
228
  presence.onAnimationEnd(event);
229
229
  reject.onAnimationEnd(event);
230
230
  },
231
- onOpenAutoFocus: trigger ? undefined : rememberOpener,
231
+ onOpenAutoFocus: focusOnOpen,
232
232
  onCloseAutoFocus: trigger ? undefined : returnFocus,
233
233
  onPointerDownOutside: closeOnOverlayClick ? undefined : function (event) {
234
234
  event.preventDefault();
@@ -591,9 +591,9 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
591
591
  /******/ __nuri_require__.C(__webpack_chunk_7__);
592
592
  /******/ import * as __webpack_chunk_8__ from "./chunk-8982.js";
593
593
  /******/ __nuri_require__.C(__webpack_chunk_8__);
594
- /******/ import * as __webpack_chunk_9__ from "./chunk-4205.js";
594
+ /******/ import * as __webpack_chunk_9__ from "./chunk-829.js";
595
595
  /******/ __nuri_require__.C(__webpack_chunk_9__);
596
- /******/ import * as __webpack_chunk_10__ from "./chunk-829.js";
596
+ /******/ import * as __webpack_chunk_10__ from "./chunk-4205.js";
597
597
  /******/ __nuri_require__.C(__webpack_chunk_10__);
598
598
  /******/ import * as __webpack_chunk_11__ from "./chunk-4109.js";
599
599
  /******/ __nuri_require__.C(__webpack_chunk_11__);
@@ -603,7 +603,7 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
603
603
  /******/ // startup
604
604
  /******/ // Load entry module and return exports
605
605
  /******/ // This entry module depends on other loaded chunks and execution need to be delayed
606
- /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,4560,1768,3640,9717,6706,3297,8982,4205,829,4109,6478], () => (__nuri_require__(7963)))
606
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,4560,1768,3640,9717,6706,3297,8982,829,4205,4109,6478], () => (__nuri_require__(7963)))
607
607
  /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
608
608
  /******/ const __webpack_exports__default = __webpack_exports__.A;
609
609
  /******/ export { __webpack_exports__default as default };
package/dist/chunk-829.js CHANGED
@@ -12,14 +12,22 @@ export const __webpack_esm_modules__ = {
12
12
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(1041);
13
13
 
14
14
  /**
15
- * Radix 는 Dialog.Trigger 로 열었을 때만 포커스를 돌려준다. 부모가 연 경우를 위해 연 요소를 기억한다.
16
- * `rememberOpener` 는 Content 의 onOpenAutoFocus, `returnFocus` 는 onCloseAutoFocus 에 단다.
15
+ * Radix Dialog 의 열 때·닫을 때 포커스. `focusOnOpen`(연 요소를 기억하고 창에 포커스)은 Content 의 onOpenAutoFocus, `returnFocus` 는 onCloseAutoFocus 에 단다.
16
+ *
17
+ * 열 때는 첫 버튼이 아니라 창(Content, tabindex=-1)에 포커스를 둔다. iOS WebKit 은 탭한 버튼에 포커스를 주지 않아
18
+ * 앞선 포커스가 없고, 그 상태의 스크립트 포커스를 키보드 포커스로 보아 첫 버튼에 링을 그린다. 창에 두면 링이 없고
19
+ * 스크린 리더는 창을 읽으며, Tab 이 창 안 첫 버튼으로 간다. 이때 연 요소를 기억한다.
20
+ *
21
+ * Radix 는 Dialog.Trigger 로 열었을 때만 포커스를 돌려준다. 부모가 연 경우 `returnFocus` 가 기억한 요소로 돌린다.
17
22
  * 연 요소가 그사이 사라졌으면 Radix 기본 동작에 맡긴다.
18
23
  */
19
24
  var useReturnFocus = function useReturnFocus() {
20
25
  var opener = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
21
- var rememberOpener = function rememberOpener() {
26
+ var focusOnOpen = function focusOnOpen(event) {
22
27
  opener.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
28
+ if (!(event.currentTarget instanceof HTMLElement)) return;
29
+ event.preventDefault();
30
+ event.currentTarget.focus();
23
31
  };
24
32
  var returnFocus = function returnFocus(event) {
25
33
  var _a;
@@ -28,7 +36,7 @@ var useReturnFocus = function useReturnFocus() {
28
36
  opener.current.focus();
29
37
  };
30
38
  return {
31
- rememberOpener: rememberOpener,
39
+ focusOnOpen: focusOnOpen,
32
40
  returnFocus: returnFocus
33
41
  };
34
42
  };
@@ -58,7 +58,7 @@ declare const meta: {
58
58
  };
59
59
  export default meta;
60
60
  type Story = StoryObj<typeof meta>;
61
- /** 화면 아래에 붙은 하단 내비게이션이다. 현재 탭 표시와 홈·내 정보 탭에 붙은 배지를 본다. */
61
+ /** 화면 아래에 떠 있는 하단 내비게이션이다. 현재 탭 표시와 홈·내 정보 탭에 붙은 배지를 본다. 넓은 화면에서는 480px 기둥 안 가운데에 선다. */
62
62
  export declare const Default: Story;
63
63
  /** 탭을 누르고 있으면 살짝 작아진다. 탭을 바꾸면 글자색과 아이콘 채움만 바뀐다 */
64
64
  export declare const MotionPress: Story;
@@ -14,7 +14,7 @@ declare const meta: {
14
14
  control: {
15
15
  type: "select";
16
16
  };
17
- options: ("link" | "circle" | "image" | "x" | "copy" | "caret-right" | "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" | "eye-slash" | "sliders-horizontal" | "heart" | "star" | "globe" | "sign-out" | "caret-down" | "arrow-right" | "dots-six-vertical" | "envelope-simple" | "phone" | "backspace" | "arrow-fat-up" | "instagram-logo" | "tiktok-logo" | "youtube-logo" | "whatsapp-logo" | "telegram-logo")[];
17
+ options: ("link" | "circle" | "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" | "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")[];
18
18
  };
19
19
  weight: {
20
20
  control: {
@@ -283,12 +283,12 @@ declare const meta: {
283
283
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
284
284
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
285
285
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
286
- border?: (typeof footerBorder)[number] | undefined;
286
+ loading?: boolean | undefined;
287
287
  asChild?: boolean | undefined;
288
288
  trackProps?: Record<string, string | number | boolean> | undefined;
289
289
  pressEffect?: boolean | undefined;
290
+ border?: (typeof footerBorder)[number] | undefined;
290
291
  icon?: import("../..").IconName | undefined;
291
- loading?: boolean | undefined;
292
292
  ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
293
293
  }>) => import("react/jsx-runtime").JSX.Element)[];
294
294
  };
@@ -285,11 +285,11 @@ declare const meta: {
285
285
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
286
286
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
287
287
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
288
- border?: import("./list-type").ListRowBorder | undefined;
289
288
  size?: import("./list-type").ListRowSize | undefined;
290
289
  asChild?: boolean | undefined;
291
290
  trackProps?: Record<string, string | number | boolean> | undefined;
292
291
  pressEffect?: boolean | undefined;
292
+ border?: import("./list-type").ListRowBorder | undefined;
293
293
  effectRef?: import("react").Ref<AttentionHandle> | undefined;
294
294
  description?: import("react").ReactNode;
295
295
  chevron?: boolean | undefined;
@@ -34,6 +34,8 @@ declare const meta: {
34
34
  time?: import("react").ReactNode;
35
35
  title?: string | undefined | undefined;
36
36
  key?: import("react").Key | null | undefined;
37
+ name?: import("react").ReactNode;
38
+ value?: string | number | readonly string[] | undefined;
37
39
  defaultChecked?: boolean | undefined | undefined;
38
40
  defaultValue?: string | number | readonly string[] | undefined;
39
41
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -298,8 +300,6 @@ declare const meta: {
298
300
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
299
301
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
300
302
  motion?: (typeof motion)[number] | undefined;
301
- name?: import("react").ReactNode;
302
- value?: string | number | readonly string[] | undefined;
303
303
  media?: import("react").ReactNode;
304
304
  side?: (typeof side)[number] | undefined;
305
305
  dateTime?: string | undefined;
@@ -301,8 +301,8 @@ declare const meta: {
301
301
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
302
302
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
303
303
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
304
- motion?: (typeof motion)[number] | undefined;
305
304
  variant?: (typeof variant)[number] | undefined;
305
+ motion?: (typeof motion)[number] | undefined;
306
306
  action?: import("./notice-type").NoticeAction | undefined;
307
307
  actionPlacement?: (typeof actionPlacement)[number] | undefined;
308
308
  ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
@@ -318,9 +318,9 @@ declare const meta: {
318
318
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
319
319
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
320
320
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
321
+ variant?: (typeof variants)[number] | undefined;
321
322
  height?: number | string | undefined;
322
323
  width?: number | string | undefined;
323
- variant?: (typeof variants)[number] | undefined;
324
324
  shape?: (typeof shapes)[number] | undefined;
325
325
  lines?: number | undefined;
326
326
  animated?: boolean | undefined;
@@ -31,6 +31,7 @@ declare const meta: {
31
31
  title: import("react").ReactNode;
32
32
  track?: string | undefined;
33
33
  key?: import("react").Key | null | undefined;
34
+ value?: string | number | readonly string[] | undefined;
34
35
  defaultChecked?: boolean | undefined | undefined;
35
36
  defaultValue?: string | number | readonly string[] | undefined;
36
37
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -293,7 +294,6 @@ declare const meta: {
293
294
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLLIElement> | undefined;
294
295
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
295
296
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLLIElement> | undefined;
296
- value?: string | number | readonly string[] | undefined;
297
297
  variant?: (typeof variants)[number] | undefined;
298
298
  trackProps?: Record<string, string | number | boolean> | undefined;
299
299
  open?: boolean | undefined;
@@ -1818,17 +1818,21 @@
1818
1818
 
1819
1819
  .base-bottom-nav:where(.root) {
1820
1820
  position: fixed;
1821
- left: 0;
1822
- right: 0;
1823
- bottom: 0;
1821
+ left: var(--spacing-16);
1822
+ right: var(--spacing-16);
1823
+ /* 넓은 화면에서는 한 기둥 폭 안 가운데에 선다. left·right 와 margin auto 가 가운데를 잡는다 */
1824
+ max-width: calc(var(--layout-max-width) - 2 * var(--spacing-16));
1825
+ margin-inline: auto;
1826
+ /* 기기 홈 막대만큼 더 띄운다. env() 의 대체값 0 은 단위가 있어야 calc 가 성립한다 */
1827
+ bottom: calc(var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px)); /* raw-px */
1824
1828
  z-index: var(--z-sticky);
1825
1829
  display: grid;
1826
1830
  grid-auto-flow: column;
1827
1831
  grid-auto-columns: minmax(0, 1fr);
1828
- grid-template-rows: var(--bottom-nav-height);
1829
- /* 기기 홈 막대 자리는 바 안에 둔다. env() 의 대체값 0 은 단위가 있어야 한다 */
1830
- padding-bottom: env(safe-area-inset-bottom, 0px); /* raw-px */
1832
+ height: var(--bottom-nav-height);
1833
+ padding: var(--bottom-nav-padding);
1831
1834
  box-sizing: border-box;
1835
+ border-radius: var(--radius-pill);
1832
1836
  }
1833
1837
 
1834
1838
  .base-bottom-nav:where(.item) {
@@ -1838,27 +1842,52 @@
1838
1842
  align-items: center;
1839
1843
  justify-content: center;
1840
1844
  gap: var(--spacing-2);
1845
+ border-radius: inherit;
1841
1846
  text-decoration: none;
1842
1847
  }
1843
1848
 
1844
1849
  /***************************************************************************************************
1845
1850
  * *
1846
- * bottom-nav — 바닥에 붙은 흰 바 *
1851
+ * bottom-nav — 떠 있는 유리 캡슐 (ADR 0019) *
1847
1852
  * *
1848
1853
  ***************************************************************************************************/
1849
1854
 
1850
1855
  .bottom-nav {
1851
- /* 위쪽 헤어라인은 안쪽 그림자다. 선이 높이에 더해지면 바가 --bottom-nav-space 보다 1px 커진다 */
1852
- box-shadow: inset 0 var(--hairline) 0 0 var(--border-subtle);
1853
- background-color: var(--surface-base);
1856
+ /* 뒤를 흐리고 채도를 올린 반투명 바탕 + 위쪽 반사광 + 안쪽 테두리 + 그림자. 모두 --surface-base 를 섞어 다크에서는 어두운 유리가 된다 */
1857
+ background:
1858
+ linear-gradient(180deg, color-mix(in srgb, var(--surface-base) 55%, transparent), transparent 55%),
1859
+ color-mix(in srgb, var(--surface-base) 62%, transparent);
1860
+ backdrop-filter: blur(var(--glass-blur)) saturate(180%);
1861
+ box-shadow:
1862
+ inset 0 var(--hairline) 0 color-mix(in srgb, var(--surface-base) 75%, transparent),
1863
+ inset 0 0 0 var(--hairline) color-mix(in srgb, var(--surface-base) 35%, transparent),
1864
+ var(--shadow-floating);
1854
1865
 
1855
- /* hideOnScroll: 바닥에 붙어 있어 자기 높이(안전 영역 포함)만큼 내리면 다 숨는다. 키보드로 탭에 들어오면 다시 올린다 */
1866
+ /* 흐림을 못 하는 브라우저, 투명도 줄이기 설정에서는 거의 불투명하게 */
1867
+
1868
+ /* hideOnScroll: 띄운 만큼(안전 영역 포함)까지 더해 화면 밖으로 내린다. 키보드로 탭에 들어오면 다시 올린다 */
1856
1869
  transition: transform var(--motion-dismiss-on-scroll-duration)
1857
1870
  var(--motion-dismiss-on-scroll-ease);
1858
1871
  }
1859
1872
 
1873
+ @supports not ((backdrop-filter: none) or (-webkit-backdrop-filter: none)) {
1874
+
1875
+ .bottom-nav {
1876
+ background: color-mix(in srgb, var(--surface-base) 96%, transparent);
1877
+ }
1878
+ }
1879
+
1880
+ @media (prefers-reduced-transparency: reduce) {
1881
+
1882
+ .bottom-nav {
1883
+ background: color-mix(in srgb, var(--surface-base) 98%, transparent);
1884
+ }
1885
+ }
1886
+
1860
1887
  .bottom-nav[data-hidden]:not(:focus-within) {
1861
- transform: translateY(100%);
1888
+ transform: translateY(calc(100% + var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px))); /* raw-px */
1889
+ /* 내려도 위로 번지는 그림자가 화면 바닥에 얼룩으로 남지 않게 */
1890
+ box-shadow: none;
1862
1891
  }
1863
1892
 
1864
1893
  .bottom-nav-item {
@@ -1867,17 +1896,20 @@
1867
1896
  font-weight: var(--font-weight-medium);
1868
1897
  -webkit-tap-highlight-color: transparent;
1869
1898
  /* .motion-press 의 transform 전환을 이 줄이 덮으므로 함께 적는다 */
1870
- transition-property: color, transform;
1899
+ transition-property: color, background-color, transform;
1871
1900
  transition-duration: var(--motion-press-duration);
1872
1901
  transition-timing-function: var(--motion-press-ease);
1902
+
1903
+ /* 선택은 검정 글자 + 채운 아이콘(무드 규칙 8), 그 칸 뒤에 옅은 캡슐. 옮겨 가는 요소는 없다 — 주소가 선택을 바꾼다 */
1873
1904
  }
1874
1905
 
1875
1906
  .bottom-nav-item[aria-current='page'] {
1876
1907
  color: var(--text-primary);
1877
1908
  font-weight: var(--font-weight-bold);
1909
+ background-color: color-mix(in srgb, var(--surface-inverse) 8%, transparent);
1878
1910
  }
1879
1911
 
1880
- /* 칸이 화면 끝까지 닿아 링을 안쪽으로 넣는다. 색·두께는 전역(styles/focus.css) */
1912
+ /* 캡슐 안이라 링을 안쪽으로 넣는다. 색·두께는 전역(styles/focus.css) */
1881
1913
 
1882
1914
  .bottom-nav-item:focus-visible {
1883
1915
  outline-offset: calc(-1 * var(--focus-ring-offset));
@@ -1921,6 +1953,9 @@
1921
1953
  left: 0;
1922
1954
  right: 0;
1923
1955
  bottom: var(--sheet-keyboard-inset, 0);
1956
+ /* 넓은 화면에서는 한 기둥 폭 안 가운데에 선다(ADR 0019). 좁은 화면은 그대로 화면 폭이다 */
1957
+ max-width: var(--layout-max-width);
1958
+ margin-inline: auto;
1924
1959
  background-color: transparent;
1925
1960
  }
1926
1961
 
@@ -1992,6 +2027,12 @@
1992
2027
  animation-timing-function: var(--motion-enter-strong-ease), var(--motion-reject-ease);
1993
2028
  }
1994
2029
 
2030
+ /* 열리면 창이 포커스를 받는다(useReturnFocus). Tab 으로 닿지 않는 자리라 링을 그리지 않는다 */
2031
+
2032
+ .bottom-sheet:focus-visible {
2033
+ outline: none;
2034
+ }
2035
+
1995
2036
  .bottom-sheet-panel {
1996
2037
  padding: 0 var(--spacing-20);
1997
2038
  padding-bottom: max(env(safe-area-inset-bottom), var(--spacing-20));
@@ -3629,6 +3670,9 @@
3629
3670
  left: 0;
3630
3671
  right: 0;
3631
3672
  bottom: 0;
3673
+ /* 넓은 화면에서는 한 기둥 폭 안 가운데에 선다(ADR 0019). 좁은 화면은 그대로 화면 폭이다 */
3674
+ max-width: var(--layout-max-width);
3675
+ margin-inline: auto;
3632
3676
  height: var(--drawer-height);
3633
3677
  max-height: 100%;
3634
3678
  border-top-left-radius: var(--radius-surface);
@@ -6241,6 +6285,12 @@
6241
6285
  margin-top: calc(var(--spacing-20) - var(--modal-scroll-inset));
6242
6286
  }
6243
6287
 
6288
+ /* 열리면 창이 포커스를 받는다(useReturnFocus). Tab 으로 닿지 않는 자리라 링을 그리지 않는다 */
6289
+
6290
+ .base-modal.modal-container:focus-visible {
6291
+ outline: none;
6292
+ }
6293
+
6244
6294
  /* force-mount 는 부르는 쪽이 마운트를 정한다. 마운트할 때 등장만 하고 퇴장은 없다 */
6245
6295
 
6246
6296
  .base-modal.modal-container:is([data-state='open'],.force-mount) {
@@ -1,9 +1,14 @@
1
1
  /**
2
- * Radix 는 Dialog.Trigger 로 열었을 때만 포커스를 돌려준다. 부모가 연 경우를 위해 연 요소를 기억한다.
3
- * `rememberOpener` 는 Content 의 onOpenAutoFocus, `returnFocus` 는 onCloseAutoFocus 에 단다.
2
+ * Radix Dialog 의 열 때·닫을 때 포커스. `focusOnOpen`(연 요소를 기억하고 창에 포커스)은 Content 의 onOpenAutoFocus, `returnFocus` 는 onCloseAutoFocus 에 단다.
3
+ *
4
+ * 열 때는 첫 버튼이 아니라 창(Content, tabindex=-1)에 포커스를 둔다. iOS WebKit 은 탭한 버튼에 포커스를 주지 않아
5
+ * 앞선 포커스가 없고, 그 상태의 스크립트 포커스를 키보드 포커스로 보아 첫 버튼에 링을 그린다. 창에 두면 링이 없고
6
+ * 스크린 리더는 창을 읽으며, Tab 이 창 안 첫 버튼으로 간다. 이때 연 요소를 기억한다.
7
+ *
8
+ * Radix 는 Dialog.Trigger 로 열었을 때만 포커스를 돌려준다. 부모가 연 경우 `returnFocus` 가 기억한 요소로 돌린다.
4
9
  * 연 요소가 그사이 사라졌으면 Radix 기본 동작에 맡긴다.
5
10
  */
6
11
  export declare const useReturnFocus: () => {
7
- rememberOpener: () => void;
12
+ focusOnOpen: (event: Event) => void;
8
13
  returnFocus: (event: Event) => void;
9
14
  };
@@ -2,6 +2,6 @@ import { Ref } from 'react';
2
2
  import type { AttentionHandle } from './motion-props';
3
3
  /** effectRef 에 shine·blink 를 걸고, 효과를 받을 루트에 펼칠 data-effect·onAnimationEnd 를 돌려준다 */
4
4
  export declare const useAttentionHandle: (effectRef: Ref<AttentionHandle> | undefined) => {
5
- 'data-effect': "blink" | "shake" | "wiggle" | "shine" | undefined;
5
+ 'data-effect': "shake" | "wiggle" | "shine" | "blink" | undefined;
6
6
  onAnimationEnd: (event: import("react").AnimationEvent<Element>) => void;
7
7
  };
@@ -5,7 +5,7 @@ import type { EffectName } from './effects';
5
5
  * trigger(name, times) 는 재생 중이어도 처음부터 다시 times 번 재생한다.
6
6
  */
7
7
  export declare const useEffectTrigger: () => {
8
- effect: "blink" | "shake" | "wiggle" | "shine" | undefined;
8
+ effect: "shake" | "wiggle" | "shine" | "blink" | undefined;
9
9
  trigger: (name: EffectName, times?: number) => void;
10
10
  onAnimationEnd: (event: AnimationEvent<Element>) => void;
11
11
  };
package/dist/index.js CHANGED
@@ -2679,7 +2679,7 @@ var BottomNavRoot = Object.assign(BottomNavRootBase, {
2679
2679
  });
2680
2680
  /* harmony default export */ const base_bottom_nav = (BottomNavRoot);
2681
2681
  ;// ./components/bottom-nav/bottom-nav-props.ts
2682
- // 크기·변형이 없다. 탭 바는 화면 바닥에 붙은 흰 바 한 모양이다(ADR 0015).
2682
+ // 크기·변형이 없다. 탭 바는 화면 아래에 떠 있는 유리 캡슐 한 모양이다(ADR 0019).
2683
2683
  var bottomNavProps = {};
2684
2684
  ;// ./components/bottom-nav/bottom-nav.tsx
2685
2685
  var bottom_nav_assign = undefined && undefined.__assign || function () {
@@ -3032,7 +3032,7 @@ var BottomSheet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)
3032
3032
  });
3033
3033
  var reject = (0,_helpers_motion_use_effect_trigger__WEBPACK_IMPORTED_MODULE_8__/* .useEffectTrigger */ .H)();
3034
3034
  var _m = (0,_helpers_hooks_useReturnFocus__WEBPACK_IMPORTED_MODULE_6__/* .useReturnFocus */ .G)(),
3035
- rememberOpener = _m.rememberOpener,
3035
+ focusOnOpen = _m.focusOnOpen,
3036
3036
  returnFocus = _m.returnFocus;
3037
3037
  var keyboardInset = (0,_helpers_hooks_useKeyboardInset__WEBPACK_IMPORTED_MODULE_5__/* .useKeyboardInset */ .Q)(open && hasTextField);
3038
3038
  var changeOpen = function changeOpen(next) {
@@ -3148,7 +3148,7 @@ var BottomSheet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)
3148
3148
  presence.onAnimationEnd(event);
3149
3149
  reject.onAnimationEnd(event);
3150
3150
  },
3151
- onOpenAutoFocus: trigger ? undefined : rememberOpener,
3151
+ onOpenAutoFocus: focusOnOpen,
3152
3152
  onCloseAutoFocus: trigger ? undefined : returnFocus,
3153
3153
  onPointerDownOutside: closeOnOverlayClick ? undefined : function (event) {
3154
3154
  event.preventDefault();
@@ -10194,7 +10194,7 @@ var ModalWithDoubleButtonBody = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1
10194
10194
  // open 을 넘기면 Radix 가 열림·포커스·Esc 를 맡는다. 안 넘기면 예전처럼 forceMount 로 늘 보인다.
10195
10195
  var controlled = open !== undefined;
10196
10196
  var _c = (0,_helpers_hooks_useReturnFocus__WEBPACK_IMPORTED_MODULE_4__/* .useReturnFocus */ .G)(),
10197
- rememberOpener = _c.rememberOpener,
10197
+ focusOnOpen = _c.focusOnOpen,
10198
10198
  returnFocus = _c.returnFocus;
10199
10199
  var presence = (0,_helpers_motion_use_presence_callbacks__WEBPACK_IMPORTED_MODULE_5__/* .usePresenceCallbacks */ .r)({
10200
10200
  open: open !== null && open !== void 0 ? open : true,
@@ -10217,7 +10217,7 @@ var ModalWithDoubleButtonBody = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1
10217
10217
  forceMount: controlled ? undefined : true,
10218
10218
  portalContainer: portalContainer,
10219
10219
  onAnimationEnd: presence.onAnimationEnd,
10220
- onOpenAutoFocus: controlled ? rememberOpener : undefined,
10220
+ onOpenAutoFocus: controlled ? focusOnOpen : undefined,
10221
10221
  onCloseAutoFocus: controlled ? returnFocus : undefined,
10222
10222
  children: [showCloseIcon && (controlled ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_modal__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .A.Close, {
10223
10223
  className: 'modal-with-double-button-close-button',
@@ -10375,9 +10375,9 @@ var Modal = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(funct
10375
10375
  return changeOpen(false);
10376
10376
  }
10377
10377
  });
10378
- // trigger 로 열면 Radix 가 그 trigger 로 포커스를 돌려준다. 부모가 연 경우만 연 요소를 기억한다
10378
+ // 열 때는 늘 창에 포커스. 닫을 때는 trigger 면 Radix 가 trigger 로, 부모가 연 경우는 기억한 연 요소로 돌려준다
10379
10379
  var _g = (0,_helpers_hooks_useReturnFocus__WEBPACK_IMPORTED_MODULE_5__/* .useReturnFocus */ .G)(),
10380
- rememberOpener = _g.rememberOpener,
10380
+ focusOnOpen = _g.focusOnOpen,
10381
10381
  returnFocus = _g.returnFocus;
10382
10382
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_base_modal__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .A, {
10383
10383
  open: open,
@@ -10390,7 +10390,7 @@ var Modal = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(funct
10390
10390
  className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_9__/* .classNames */ .x)(className, 'modal'),
10391
10391
  style: style,
10392
10392
  portalContainer: portalContainer,
10393
- onOpenAutoFocus: trigger ? undefined : rememberOpener,
10393
+ onOpenAutoFocus: focusOnOpen,
10394
10394
  onCloseAutoFocus: trigger ? undefined : returnFocus,
10395
10395
  "data-effect": reject.effect,
10396
10396
  onAnimationEnd: function onAnimationEnd(event) {
@@ -17096,14 +17096,22 @@ var useKeyboardInset = function useKeyboardInset(enabled) {
17096
17096
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(1041);
17097
17097
 
17098
17098
  /**
17099
- * Radix 는 Dialog.Trigger 로 열었을 때만 포커스를 돌려준다. 부모가 연 경우를 위해 연 요소를 기억한다.
17100
- * `rememberOpener` 는 Content 의 onOpenAutoFocus, `returnFocus` 는 onCloseAutoFocus 에 단다.
17099
+ * Radix Dialog 의 열 때·닫을 때 포커스. `focusOnOpen`(연 요소를 기억하고 창에 포커스)은 Content 의 onOpenAutoFocus, `returnFocus` 는 onCloseAutoFocus 에 단다.
17100
+ *
17101
+ * 열 때는 첫 버튼이 아니라 창(Content, tabindex=-1)에 포커스를 둔다. iOS WebKit 은 탭한 버튼에 포커스를 주지 않아
17102
+ * 앞선 포커스가 없고, 그 상태의 스크립트 포커스를 키보드 포커스로 보아 첫 버튼에 링을 그린다. 창에 두면 링이 없고
17103
+ * 스크린 리더는 창을 읽으며, Tab 이 창 안 첫 버튼으로 간다. 이때 연 요소를 기억한다.
17104
+ *
17105
+ * Radix 는 Dialog.Trigger 로 열었을 때만 포커스를 돌려준다. 부모가 연 경우 `returnFocus` 가 기억한 요소로 돌린다.
17101
17106
  * 연 요소가 그사이 사라졌으면 Radix 기본 동작에 맡긴다.
17102
17107
  */
17103
17108
  var useReturnFocus = function useReturnFocus() {
17104
17109
  var opener = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
17105
- var rememberOpener = function rememberOpener() {
17110
+ var focusOnOpen = function focusOnOpen(event) {
17106
17111
  opener.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
17112
+ if (!(event.currentTarget instanceof HTMLElement)) return;
17113
+ event.preventDefault();
17114
+ event.currentTarget.focus();
17107
17115
  };
17108
17116
  var returnFocus = function returnFocus(event) {
17109
17117
  var _a;
@@ -17112,7 +17120,7 @@ var useReturnFocus = function useReturnFocus() {
17112
17120
  opener.current.focus();
17113
17121
  };
17114
17122
  return {
17115
- rememberOpener: rememberOpener,
17123
+ focusOnOpen: focusOnOpen,
17116
17124
  returnFocus: returnFocus
17117
17125
  };
17118
17126
  };
@@ -90,7 +90,7 @@ var ModalWithDoubleButtonBody = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1
90
90
  // open 을 넘기면 Radix 가 열림·포커스·Esc 를 맡는다. 안 넘기면 예전처럼 forceMount 로 늘 보인다.
91
91
  var controlled = open !== undefined;
92
92
  var _c = (0,_helpers_hooks_useReturnFocus__WEBPACK_IMPORTED_MODULE_4__/* .useReturnFocus */ .G)(),
93
- rememberOpener = _c.rememberOpener,
93
+ focusOnOpen = _c.focusOnOpen,
94
94
  returnFocus = _c.returnFocus;
95
95
  var presence = (0,_helpers_motion_use_presence_callbacks__WEBPACK_IMPORTED_MODULE_5__/* .usePresenceCallbacks */ .r)({
96
96
  open: open !== null && open !== void 0 ? open : true,
@@ -113,7 +113,7 @@ var ModalWithDoubleButtonBody = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1
113
113
  forceMount: controlled ? undefined : true,
114
114
  portalContainer: portalContainer,
115
115
  onAnimationEnd: presence.onAnimationEnd,
116
- onOpenAutoFocus: controlled ? rememberOpener : undefined,
116
+ onOpenAutoFocus: controlled ? focusOnOpen : undefined,
117
117
  onCloseAutoFocus: controlled ? returnFocus : undefined,
118
118
  children: [showCloseIcon && (controlled ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_modal__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .A.Close, {
119
119
  className: 'modal-with-double-button-close-button',
package/dist/modal.js CHANGED
@@ -111,9 +111,9 @@ var Modal = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(funct
111
111
  return changeOpen(false);
112
112
  }
113
113
  });
114
- // trigger 로 열면 Radix 가 그 trigger 로 포커스를 돌려준다. 부모가 연 경우만 연 요소를 기억한다
114
+ // 열 때는 늘 창에 포커스. 닫을 때는 trigger 면 Radix 가 trigger 로, 부모가 연 경우는 기억한 연 요소로 돌려준다
115
115
  var _g = (0,_helpers_hooks_useReturnFocus__WEBPACK_IMPORTED_MODULE_5__/* .useReturnFocus */ .G)(),
116
- rememberOpener = _g.rememberOpener,
116
+ focusOnOpen = _g.focusOnOpen,
117
117
  returnFocus = _g.returnFocus;
118
118
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_base_modal__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .A, {
119
119
  open: open,
@@ -126,7 +126,7 @@ var Modal = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(funct
126
126
  className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_9__/* .classNames */ .x)(className, 'modal'),
127
127
  style: style,
128
128
  portalContainer: portalContainer,
129
- onOpenAutoFocus: trigger ? undefined : rememberOpener,
129
+ onOpenAutoFocus: focusOnOpen,
130
130
  onCloseAutoFocus: trigger ? undefined : returnFocus,
131
131
  "data-effect": reject.effect,
132
132
  onAnimationEnd: function onAnimationEnd(event) {
package/dist/overlay.js CHANGED
@@ -113,7 +113,7 @@ var BottomSheet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)
113
113
  });
114
114
  var reject = (0,_helpers_motion_use_effect_trigger__WEBPACK_IMPORTED_MODULE_8__/* .useEffectTrigger */ .H)();
115
115
  var _m = (0,_helpers_hooks_useReturnFocus__WEBPACK_IMPORTED_MODULE_6__/* .useReturnFocus */ .G)(),
116
- rememberOpener = _m.rememberOpener,
116
+ focusOnOpen = _m.focusOnOpen,
117
117
  returnFocus = _m.returnFocus;
118
118
  var keyboardInset = (0,_helpers_hooks_useKeyboardInset__WEBPACK_IMPORTED_MODULE_5__/* .useKeyboardInset */ .Q)(open && hasTextField);
119
119
  var changeOpen = function changeOpen(next) {
@@ -229,7 +229,7 @@ var BottomSheet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)
229
229
  presence.onAnimationEnd(event);
230
230
  reject.onAnimationEnd(event);
231
231
  },
232
- onOpenAutoFocus: trigger ? undefined : rememberOpener,
232
+ onOpenAutoFocus: focusOnOpen,
233
233
  onCloseAutoFocus: trigger ? undefined : returnFocus,
234
234
  onPointerDownOutside: closeOnOverlayClick ? undefined : function (event) {
235
235
  event.preventDefault();
@@ -489,7 +489,7 @@ var ModalWithDoubleButtonBody = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1
489
489
  // open 을 넘기면 Radix 가 열림·포커스·Esc 를 맡는다. 안 넘기면 예전처럼 forceMount 로 늘 보인다.
490
490
  var controlled = open !== undefined;
491
491
  var _c = (0,_helpers_hooks_useReturnFocus__WEBPACK_IMPORTED_MODULE_4__/* .useReturnFocus */ .G)(),
492
- rememberOpener = _c.rememberOpener,
492
+ focusOnOpen = _c.focusOnOpen,
493
493
  returnFocus = _c.returnFocus;
494
494
  var presence = (0,_helpers_motion_use_presence_callbacks__WEBPACK_IMPORTED_MODULE_5__/* .usePresenceCallbacks */ .r)({
495
495
  open: open !== null && open !== void 0 ? open : true,
@@ -512,7 +512,7 @@ var ModalWithDoubleButtonBody = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1
512
512
  forceMount: controlled ? undefined : true,
513
513
  portalContainer: portalContainer,
514
514
  onAnimationEnd: presence.onAnimationEnd,
515
- onOpenAutoFocus: controlled ? rememberOpener : undefined,
515
+ onOpenAutoFocus: controlled ? focusOnOpen : undefined,
516
516
  onCloseAutoFocus: controlled ? returnFocus : undefined,
517
517
  children: [showCloseIcon && (controlled ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_modal__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .A.Close, {
518
518
  className: 'modal-with-double-button-close-button',
@@ -670,9 +670,9 @@ var Modal = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(funct
670
670
  return changeOpen(false);
671
671
  }
672
672
  });
673
- // trigger 로 열면 Radix 가 그 trigger 로 포커스를 돌려준다. 부모가 연 경우만 연 요소를 기억한다
673
+ // 열 때는 늘 창에 포커스. 닫을 때는 trigger 면 Radix 가 trigger 로, 부모가 연 경우는 기억한 연 요소로 돌려준다
674
674
  var _g = (0,_helpers_hooks_useReturnFocus__WEBPACK_IMPORTED_MODULE_5__/* .useReturnFocus */ .G)(),
675
- rememberOpener = _g.rememberOpener,
675
+ focusOnOpen = _g.focusOnOpen,
676
676
  returnFocus = _g.returnFocus;
677
677
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_base_modal__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .A, {
678
678
  open: open,
@@ -685,7 +685,7 @@ var Modal = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(funct
685
685
  className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_9__/* .classNames */ .x)(className, 'modal'),
686
686
  style: style,
687
687
  portalContainer: portalContainer,
688
- onOpenAutoFocus: trigger ? undefined : rememberOpener,
688
+ onOpenAutoFocus: focusOnOpen,
689
689
  onCloseAutoFocus: trigger ? undefined : returnFocus,
690
690
  "data-effect": reject.effect,
691
691
  onAnimationEnd: function onAnimationEnd(event) {
@@ -1723,9 +1723,9 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
1723
1723
  /******/ __nuri_require__.C(__webpack_chunk_19__);
1724
1724
  /******/ import * as __webpack_chunk_20__ from "./chunk-6713.js";
1725
1725
  /******/ __nuri_require__.C(__webpack_chunk_20__);
1726
- /******/ import * as __webpack_chunk_21__ from "./chunk-4205.js";
1726
+ /******/ import * as __webpack_chunk_21__ from "./chunk-829.js";
1727
1727
  /******/ __nuri_require__.C(__webpack_chunk_21__);
1728
- /******/ import * as __webpack_chunk_22__ from "./chunk-829.js";
1728
+ /******/ import * as __webpack_chunk_22__ from "./chunk-4205.js";
1729
1729
  /******/ __nuri_require__.C(__webpack_chunk_22__);
1730
1730
  /******/ import * as __webpack_chunk_23__ from "./chunk-5077.js";
1731
1731
  /******/ __nuri_require__.C(__webpack_chunk_23__);
@@ -1741,7 +1741,7 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
1741
1741
  /******/ // startup
1742
1742
  /******/ // Load entry module and return exports
1743
1743
  /******/ // This entry module depends on other loaded chunks and execution need to be delayed
1744
- /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,1768,3640,9717,1176,6706,8734,7737,8933,8491,5302,3297,2496,948,8982,910,6713,4205,829,5077,1657,4109,7829,6478], () => (__nuri_require__(5542)))
1744
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,1768,3640,9717,1176,6706,8734,7737,8933,8491,5302,3297,2496,948,8982,910,6713,829,4205,5077,1657,4109,7829,6478], () => (__nuri_require__(5542)))
1745
1745
  /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
1746
1746
  /******/ const __webpack_exports__OverlayProvider = __webpack_exports__.so;
1747
1747
  /******/ const __webpack_exports__useBottomSheet = __webpack_exports__.gO;
package/dist/styles.css CHANGED
@@ -360,9 +360,15 @@
360
360
  /* 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 */
361
361
  --highlight-message-max-width: 280px;
362
362
 
363
- /* 하단 탭 바: 화면 바닥에 붙은 흰 바. 화면은 아래를 --bottom-nav-space(+ 안전 영역)만큼 비운다 */
364
- --bottom-nav-height: 56px;
365
- --bottom-nav-space: var(--bottom-nav-height);
363
+ /* 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) */
364
+ --layout-max-width: 480px;
365
+
366
+ /* 하단 탭 바: 화면 아래에 떠 있는 유리 캡슐 (ADR 0019). 화면은 아래를 --bottom-nav-space(+ 안전 영역)만큼 비운다 */
367
+ --bottom-nav-height: 62px;
368
+ --bottom-nav-padding: 5px;
369
+ --bottom-nav-offset: 14px;
370
+ --bottom-nav-space: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + var(--spacing-16));
371
+ --glass-blur: 18px;
366
372
  --bottom-nav-badge-dot: 8px;
367
373
  --bottom-nav-badge-count: 18px;
368
374
 
@@ -2649,17 +2655,21 @@ p {
2649
2655
  }
2650
2656
  .base-bottom-nav:where(.root) {
2651
2657
  position: fixed;
2652
- left: 0;
2653
- right: 0;
2654
- bottom: 0;
2658
+ left: var(--spacing-16);
2659
+ right: var(--spacing-16);
2660
+ /* 넓은 화면에서는 한 기둥 폭 안 가운데에 선다. left·right 와 margin auto 가 가운데를 잡는다 */
2661
+ max-width: calc(var(--layout-max-width) - 2 * var(--spacing-16));
2662
+ margin-inline: auto;
2663
+ /* 기기 홈 막대만큼 더 띄운다. env() 의 대체값 0 은 단위가 있어야 calc 가 성립한다 */
2664
+ bottom: calc(var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px)); /* raw-px */
2655
2665
  z-index: var(--z-sticky);
2656
2666
  display: grid;
2657
2667
  grid-auto-flow: column;
2658
2668
  grid-auto-columns: minmax(0, 1fr);
2659
- grid-template-rows: var(--bottom-nav-height);
2660
- /* 기기 홈 막대 자리는 바 안에 둔다. env() 의 대체값 0 은 단위가 있어야 한다 */
2661
- padding-bottom: env(safe-area-inset-bottom, 0px); /* raw-px */
2669
+ height: var(--bottom-nav-height);
2670
+ padding: var(--bottom-nav-padding);
2662
2671
  box-sizing: border-box;
2672
+ border-radius: var(--radius-pill);
2663
2673
  }
2664
2674
  .base-bottom-nav:where(.item) {
2665
2675
  position: relative;
@@ -2668,24 +2678,45 @@ p {
2668
2678
  align-items: center;
2669
2679
  justify-content: center;
2670
2680
  gap: var(--spacing-2);
2681
+ border-radius: inherit;
2671
2682
  text-decoration: none;
2672
2683
  }
2673
2684
  /***************************************************************************************************
2674
2685
  * *
2675
- * bottom-nav — 바닥에 붙은 흰 바 *
2686
+ * bottom-nav — 떠 있는 유리 캡슐 (ADR 0019) *
2676
2687
  * *
2677
2688
  ***************************************************************************************************/
2678
2689
  .bottom-nav {
2679
- /* 위쪽 헤어라인은 안쪽 그림자다. 선이 높이에 더해지면 바가 --bottom-nav-space 보다 1px 커진다 */
2680
- box-shadow: inset 0 var(--hairline) 0 0 var(--border-subtle);
2681
- background-color: var(--surface-base);
2690
+ /* 뒤를 흐리고 채도를 올린 반투명 바탕 + 위쪽 반사광 + 안쪽 테두리 + 그림자. 모두 --surface-base 를 섞어 다크에서는 어두운 유리가 된다 */
2691
+ background:
2692
+ linear-gradient(180deg, color-mix(in srgb, var(--surface-base) 55%, transparent), transparent 55%),
2693
+ color-mix(in srgb, var(--surface-base) 62%, transparent);
2694
+ backdrop-filter: blur(var(--glass-blur)) saturate(180%);
2695
+ box-shadow:
2696
+ inset 0 var(--hairline) 0 color-mix(in srgb, var(--surface-base) 75%, transparent),
2697
+ inset 0 0 0 var(--hairline) color-mix(in srgb, var(--surface-base) 35%, transparent),
2698
+ var(--shadow-floating);
2699
+
2700
+ /* 흐림을 못 하는 브라우저, 투명도 줄이기 설정에서는 거의 불투명하게 */
2682
2701
 
2683
- /* hideOnScroll: 바닥에 붙어 있어 자기 높이(안전 영역 포함)만큼 내리면 다 숨는다. 키보드로 탭에 들어오면 다시 올린다 */
2702
+ /* hideOnScroll: 띄운 만큼(안전 영역 포함)까지 더해 화면 밖으로 내린다. 키보드로 탭에 들어오면 다시 올린다 */
2684
2703
  transition: transform var(--motion-dismiss-on-scroll-duration)
2685
2704
  var(--motion-dismiss-on-scroll-ease);
2686
2705
  }
2706
+ @supports not ((backdrop-filter: none) or (-webkit-backdrop-filter: none)) {
2707
+ .bottom-nav {
2708
+ background: color-mix(in srgb, var(--surface-base) 96%, transparent);
2709
+ }
2710
+ }
2711
+ @media (prefers-reduced-transparency: reduce) {
2712
+ .bottom-nav {
2713
+ background: color-mix(in srgb, var(--surface-base) 98%, transparent);
2714
+ }
2715
+ }
2687
2716
  .bottom-nav[data-hidden]:not(:focus-within) {
2688
- transform: translateY(100%);
2717
+ transform: translateY(calc(100% + var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px))); /* raw-px */
2718
+ /* 내려도 위로 번지는 그림자가 화면 바닥에 얼룩으로 남지 않게 */
2719
+ box-shadow: none;
2689
2720
  }
2690
2721
  .bottom-nav-item {
2691
2722
  color: var(--text-tertiary);
@@ -2693,15 +2724,18 @@ p {
2693
2724
  font-weight: var(--font-weight-medium);
2694
2725
  -webkit-tap-highlight-color: transparent;
2695
2726
  /* .motion-press 의 transform 전환을 이 줄이 덮으므로 함께 적는다 */
2696
- transition-property: color, transform;
2727
+ transition-property: color, background-color, transform;
2697
2728
  transition-duration: var(--motion-press-duration);
2698
2729
  transition-timing-function: var(--motion-press-ease);
2730
+
2731
+ /* 선택은 검정 글자 + 채운 아이콘(무드 규칙 8), 그 칸 뒤에 옅은 캡슐. 옮겨 가는 요소는 없다 — 주소가 선택을 바꾼다 */
2699
2732
  }
2700
2733
  .bottom-nav-item[aria-current='page'] {
2701
2734
  color: var(--text-primary);
2702
2735
  font-weight: var(--font-weight-bold);
2736
+ background-color: color-mix(in srgb, var(--surface-inverse) 8%, transparent);
2703
2737
  }
2704
- /* 칸이 화면 끝까지 닿아 링을 안쪽으로 넣는다. 색·두께는 전역(styles/focus.css) */
2738
+ /* 캡슐 안이라 링을 안쪽으로 넣는다. 색·두께는 전역(styles/focus.css) */
2705
2739
  .bottom-nav-item:focus-visible {
2706
2740
  outline-offset: calc(-1 * var(--focus-ring-offset));
2707
2741
  }
@@ -2739,6 +2773,9 @@ p {
2739
2773
  left: 0;
2740
2774
  right: 0;
2741
2775
  bottom: var(--sheet-keyboard-inset, 0);
2776
+ /* 넓은 화면에서는 한 기둥 폭 안 가운데에 선다(ADR 0019). 좁은 화면은 그대로 화면 폭이다 */
2777
+ max-width: var(--layout-max-width);
2778
+ margin-inline: auto;
2742
2779
  background-color: transparent;
2743
2780
  }
2744
2781
  .base-bottom-sheet:where(.panel) {
@@ -2797,6 +2834,10 @@ p {
2797
2834
  animation-duration: var(--motion-enter-strong-duration), var(--motion-reject-duration);
2798
2835
  animation-timing-function: var(--motion-enter-strong-ease), var(--motion-reject-ease);
2799
2836
  }
2837
+ /* 열리면 창이 포커스를 받는다(useReturnFocus). Tab 으로 닿지 않는 자리라 링을 그리지 않는다 */
2838
+ .bottom-sheet:focus-visible {
2839
+ outline: none;
2840
+ }
2800
2841
  .bottom-sheet-panel {
2801
2842
  padding: 0 var(--spacing-20);
2802
2843
  padding-bottom: max(env(safe-area-inset-bottom), var(--spacing-20));
@@ -4178,6 +4219,9 @@ p {
4178
4219
  left: 0;
4179
4220
  right: 0;
4180
4221
  bottom: 0;
4222
+ /* 넓은 화면에서는 한 기둥 폭 안 가운데에 선다(ADR 0019). 좁은 화면은 그대로 화면 폭이다 */
4223
+ max-width: var(--layout-max-width);
4224
+ margin-inline: auto;
4181
4225
  height: var(--drawer-height);
4182
4226
  max-height: 100%;
4183
4227
  border-top-left-radius: var(--radius-surface);
@@ -6284,6 +6328,10 @@ p {
6284
6328
  .base-modal.modal-container > .modal-with-double-button-content {
6285
6329
  margin-top: calc(var(--spacing-20) - var(--modal-scroll-inset));
6286
6330
  }
6331
+ /* 열리면 창이 포커스를 받는다(useReturnFocus). Tab 으로 닿지 않는 자리라 링을 그리지 않는다 */
6332
+ .base-modal.modal-container:focus-visible {
6333
+ outline: none;
6334
+ }
6287
6335
  /* force-mount 는 부르는 쪽이 마운트를 정한다. 마운트할 때 등장만 하고 퇴장은 없다 */
6288
6336
  .base-modal.modal-container:is([data-state='open'],.force-mount) {
6289
6337
  animation: motion-enter-scale var(--motion-enter-duration) var(--motion-enter-ease);
package/dist/tokens.css CHANGED
@@ -358,9 +358,15 @@
358
358
  /* 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 */
359
359
  --highlight-message-max-width: 280px;
360
360
 
361
- /* 하단 탭 바: 화면 바닥에 붙은 흰 바. 화면은 아래를 --bottom-nav-space(+ 안전 영역)만큼 비운다 */
362
- --bottom-nav-height: 56px;
363
- --bottom-nav-space: var(--bottom-nav-height);
361
+ /* 한 기둥 화면(모바일 화면을 넓은 화면 가운데에 세운 것)의 가장 넓은 폭. 하단 탭 바도 이 폭 안에 선다 (ADR 0019) */
362
+ --layout-max-width: 480px;
363
+
364
+ /* 하단 탭 바: 화면 아래에 떠 있는 유리 캡슐 (ADR 0019). 화면은 아래를 --bottom-nav-space(+ 안전 영역)만큼 비운다 */
365
+ --bottom-nav-height: 62px;
366
+ --bottom-nav-padding: 5px;
367
+ --bottom-nav-offset: 14px;
368
+ --bottom-nav-space: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + var(--spacing-16));
369
+ --glass-blur: 18px;
364
370
  --bottom-nav-badge-dot: 8px;
365
371
  --bottom-nav-badge-count: 18px;
366
372
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nurihaus/web-design-system",
3
- "version": "3.16.0",
3
+ "version": "3.17.0",
4
4
  "description": "Nurihaus 디자인 시스템 — 컴포넌트와 디자인 토큰",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",