sellmate-design-system-react 4.3.0 → 4.3.1
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/index.cjs +34 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +34 -5
- package/dist/index.js.map +1 -1
- package/dist/lib/global-overlay.d.ts +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 모달 위에 뜨는 전역 레이어(토스트·로딩)의 표식.
|
|
3
|
+
*
|
|
4
|
+
* 이 레이어들은 모달보다 위(Z_INDEX.toast/loading > Z_INDEX.modalHost)에 뜨지만 DOM 상으로는
|
|
5
|
+
* body 직속이라, Radix Dialog 입장에서는 '모달 바깥'이다. 표식이 없으면 토스트 닫기 버튼을
|
|
6
|
+
* 누르는 것만으로 바깥 클릭으로 처리돼 persistent 모달은 흔들리고 일반 모달은 닫혀버린다.
|
|
7
|
+
*/
|
|
8
|
+
export declare const GLOBAL_OVERLAY_ATTR = "data-s-global-overlay";
|
|
9
|
+
/** 전역 레이어 루트에 펼쳐 넣는다. */
|
|
10
|
+
export declare const globalOverlayProps: {
|
|
11
|
+
"data-s-global-overlay": string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Radix 의 outside 이벤트(pointerDownOutside/focusOutside/interactOutside)가
|
|
15
|
+
* 전역 레이어에서 비롯됐는지 판별한다. Radix 는 원본 이벤트를 `detail.originalEvent` 에 담는다.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isFromGlobalOverlay(event: Event): boolean;
|