@croquiscom/pds 0.40.1 → 0.40.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/CHANGELOG.md +6 -0
- package/dist/components/modal/ModalOverlay.d.ts +6 -1
- package/dist/components/modal/renderModal.d.ts +1 -1
- package/dist/constants/floating.d.ts +2 -0
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@ import { PropsWithChildren, Dispatch, SetStateAction } from 'react';
|
|
|
2
2
|
import { CSSValueWithLength } from '../../styles';
|
|
3
3
|
import { CornerRadiusSize } from '../../foundation';
|
|
4
4
|
export interface ModalOverlayBaseProps {
|
|
5
|
+
/**
|
|
6
|
+
* @default 'pds-floating-root'
|
|
7
|
+
* @desc FloatingPortal node id, render 함수로 Floating 노드를 생성하는 경우가 아닌 경우에는 디폴트 아이디값으로 처리합니다.
|
|
8
|
+
*/
|
|
9
|
+
floatingPortalId?: string;
|
|
5
10
|
/**
|
|
6
11
|
* @desc 안전여백을 포함한 100% 너비 사용, Alert 또는 Confirm Modal의 경우 최소너비(480) 범위내에서 적용됩니다.
|
|
7
12
|
* @default false
|
|
@@ -35,4 +40,4 @@ export interface ModalOverlayProps extends ModalOverlayBaseProps {
|
|
|
35
40
|
setOpened: Dispatch<SetStateAction<boolean>>;
|
|
36
41
|
onCloseOutsidePress?: () => void;
|
|
37
42
|
}
|
|
38
|
-
export declare const ModalOverlay: ({ width, maxWidth, borderRadiusSize, fill, fullScreen, className, children, opened: openProp, zIndex, canClickOutside, onExited, onClose, onCloseOutsidePress, setOpened, }: PropsWithChildren<ModalOverlayProps>) => JSX.Element;
|
|
43
|
+
export declare const ModalOverlay: ({ floatingPortalId, width, maxWidth, borderRadiusSize, fill, fullScreen, className, children, opened: openProp, zIndex, canClickOutside, onExited, onClose, onCloseOutsidePress, setOpened, }: PropsWithChildren<ModalOverlayProps>) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Root } from 'react-dom/client';
|
|
2
|
-
export declare function getFloatingModalPortal(): HTMLElement;
|
|
2
|
+
export declare function getFloatingModalPortal(id: string): HTMLElement;
|
|
3
3
|
export declare function removeFloatingModalPortal(target: HTMLElement, root: Root, unmountDelay?: number): void;
|