@nexus-cross/dapp-ui 1.1.4 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -172,6 +172,9 @@ Context Provider + Popover/Drawer Root.
172
172
  | `showGameToken` | `boolean` | `true` | game 카테고리 토큰 표시 여부 (`false`이면 숨김) |
173
173
  | `showQR` | `boolean` | `true` | QR 코드 버튼/뷰 활성화 여부 |
174
174
  | `onCopyAddress` | `(address: string, success: boolean) => void` | - | 주소 복사 콜백 (토스트 표시용) |
175
+ | `onBuy` | `() => void` | - | 기본 액션 row의 Buy 클릭 핸들러 |
176
+ | `onDisconnect` | `() => void` | - | 지정 시 하단에 기본 Disconnect(Log Out) 버튼 렌더 |
177
+ | `disconnectLabel` | `string` | `'Disconnect'` | 기본 Disconnect 버튼 라벨 |
175
178
  | `open` | `boolean` | - | 외부에서 열림 상태를 제어 (controlled) |
176
179
  | `onOpenChange` | `(open: boolean) => void` | - | 열림 상태 변경 콜백 |
177
180
  | `style` | `WalletInfoStyle` | - | CSS 커스텀 변수 오버라이드 (자동완성 지원) |
@@ -219,7 +222,9 @@ dapp별 네비게이션 메뉴 슬롯. 스크롤 영역 외부에 고정 배치
219
222
 
220
223
  ### `<WalletInfo.Footer>`
221
224
 
222
- dapp별 푸터 슬롯. Disconnect 버튼 등을 배치한다.
225
+ 하단 고정 영역 슬롯. `My Profile`·`Settings` 같은 **임의의 커스텀 버튼**을 배치한다. wallet·QR 뷰에서만 노출되고 portfolio·send 뷰에서는 숨겨진다. 전용 버튼 배열 prop은 없고 children으로 직접 구성한다.
226
+
227
+ Log Out 처리는 레이아웃 목표에 따라 택일한다: **(A)** 단독 Disconnect만 필요하면 `onDisconnect`(본문 하단·우측 정렬 기본 버튼), **(B)** Profile/Settings/Log Out을 한 덩어리로 묶으려면 `onDisconnect`를 생략하고 세 버튼을 모두 `Footer`에 넣는다. 둘은 위치·정렬이 달라 함께 쓰면 Log Out만 떨어져 보이므로 동시에 쓰지 않는다.
223
228
 
224
229
  | Prop | Type | Default | Description |
225
230
  | ---------- | ----------- | ------- | ----------- |