@croquiscom/pds 0.40.0 → 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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 0.40.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 1ad9f1a: Modal 중첩 노드 삭제 버그 수정
8
+
9
+ ## 0.40.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 21319cc: Modal Open 상태 외부 제어만 가능하도록 변경
14
+ - 7b81130: Modal Header Title text-overflow 제거
15
+
3
16
  ## 0.40.0
4
17
 
5
18
  ### Minor Changes
@@ -45,9 +45,6 @@ export interface ModalContentProps extends Pick<ModalProps, 'fixedHeader' | 'fix
45
45
  }
46
46
  export declare const MIN_WIDTH = 480;
47
47
  export declare const Modal: ({ opened: openProp, children, title, width, confirmText, cancelText, closeButton, backButton, dense, fill, fullScreen, fixedHeader, fixedFooter, footer, confirmButtonProps, cancelButtonProps, contentProps, onConfirm, onCancel, onClose, onExited, onClickBackButton, onClickOverlay, ...props }: PropsWithChildren<ModalProps>) => JSX.Element;
48
- export declare const ModalTitle: import("@emotion/styled").StyledComponent<(import("../text").BaseTextProps & (React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> | React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>)) & {
49
- theme?: import("@emotion/react").Theme;
50
- }, {}, {}>;
51
48
  export declare const ModalContent: import("@emotion/styled").StyledComponent<{
52
49
  theme?: import("@emotion/react").Theme;
53
50
  as?: React.ElementType<any>;
@@ -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;
@@ -1 +1,3 @@
1
1
  export declare const FLOATING_ROOT_ID = "pds-floating-root";
2
+ export declare const FLOATING_ALERT_ROOT_ID = "pds-alert-root";
3
+ export declare const FLOATING_CONFIRM_ROOT_ID = "pds-confirm-root";