@idbrnd/design-system 1.5.0 → 1.5.2
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @idbrnd/design-system
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|

|
|
5
5
|

|
|
6
6
|

|
|
@@ -636,6 +636,7 @@ function SelectExample() {
|
|
|
636
636
|
- `variant`를 직접 지정하지 않아도 열림/선택 상태에 따라 `choosing` → `selected`로 자동 전환됩니다.
|
|
637
637
|
- `variant="error"`는 자동 전환되지 않으므로 직접 지정해야 합니다.
|
|
638
638
|
- 드롭다운 목록은 `document.body`에 포탈로 렌더링됩니다.
|
|
639
|
+
- 뷰포트 하단 공간이 부족하면 드롭다운이 트리거 위쪽으로 자동 전환(flip)됩니다.
|
|
639
640
|
- 긴 옵션 라벨은 말줄임 처리되며, hover 시 툴팁으로 전체 텍스트가 표시됩니다. 트리거 버튼의 선택된 값도 동일하게 동작합니다.
|
|
640
641
|
- `placeholder`에 문자열 대신 JSX를 전달하면 커스텀 플레이스홀더를 렌더링할 수 있습니다.
|
|
641
642
|
- 옵션이 비어있을 때: `type="search"`에서 검색어가 있으면 "검색 결과가 없습니다.", 그 외에는 `-`가 표시됩니다.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DropdownMenuProps } from './DropdownMenu.types';
|
|
2
|
-
declare function DropdownMenu({ listboxId, type, align, content, options, selectedValue, onSelect, textColor, closing, }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function DropdownMenu({ listboxId, type, align, content, options, selectedValue, onSelect, textColor, closing, placement, }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default DropdownMenu;
|
|
@@ -47,4 +47,10 @@ export interface DropdownMenuProps {
|
|
|
47
47
|
* @defaultValue `false`
|
|
48
48
|
*/
|
|
49
49
|
closing?: boolean;
|
|
50
|
+
/** 드롭다운 표시 방향. (내부 전용)
|
|
51
|
+
* - `bottom`: 트리거 아래쪽에 표시 (기본값)
|
|
52
|
+
* - `top`: 트리거 위쪽에 표시 (뷰포트 하단 공간 부족 시 자동 전환)
|
|
53
|
+
* @defaultValue `'bottom'`
|
|
54
|
+
*/
|
|
55
|
+
placement?: 'bottom' | 'top';
|
|
50
56
|
}
|