@croquiscom/pds 2.3.0 → 2.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 2.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c0a6b2c: Modal ContentProps scrollable 속성 추가
8
+
3
9
  ## 2.3.0
4
10
 
5
11
  ### Minor Changes
@@ -6,6 +6,7 @@ export type ModalButtonProps = Omit<ButtonProps, 'onClick'>;
6
6
  export type ModalCancelReason = ModalBaseCancelReason;
7
7
  export interface ModalContentProps extends SpaceProps {
8
8
  maxHeight?: CSSValueWithLength;
9
+ scrollable?: boolean;
9
10
  }
10
11
  type LayoutHeightType = {
11
12
  header: number;
@@ -40,7 +41,8 @@ export interface ModalProps extends Omit<ModalOverlayBaseProps, 'onClose'> {
40
41
  /**
41
42
  * 바디 영역 콘텐츠 ModalContentProps를 통한 커스텀이 가능합니다.
42
43
  * - [SpaceProps](https://github.com/croquiscom/pds/blob/main/src/styles/space.ts)
43
- * - maxHeight
44
+ * - maxHeight: 콘텐츠 영역 maxHeight을 커스텀할 수 있습니다. 지정하지 않을 경우 안전여백내에서 계산된 자동 최대 maxHeight값이 적용됩니다.
45
+ * - scrollable: true일 경우 콘텐츠 영역에 overflow-y: auto값이 적용됩니다.
44
46
  */
45
47
  contentProps?: ModalContentProps;
46
48
  /**
@@ -18,3 +18,4 @@ export declare const FullScreen: ComponentStory<typeof Modal>;
18
18
  export declare const CustomFooterFullScreen: ComponentStory<typeof Modal>;
19
19
  export declare const AutoMaxHeight: ComponentStory<typeof Modal>;
20
20
  export declare const CustomMaxHeight: ComponentStory<typeof Modal>;
21
+ export declare const Scrollable: ComponentStory<typeof Modal>;