@croquiscom/pds 2.2.0 → 2.2.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 +12 -0
- package/dist/components/banner/NormalBanner.d.ts +5 -1
- package/dist/components/banner/NormalBanner.stories.d.ts +2 -1
- package/dist/components/modal/ConfirmModal.d.ts +4 -1
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @croquiscom/pds
|
|
2
2
|
|
|
3
|
+
## 2.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6311238: Banner 타이틀 개행 시 아이콘 사이즈 유지 및 아이콘 노출 Optional로 변경
|
|
8
|
+
|
|
9
|
+
## 2.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- b55e198: Confirm, Alert Modal 텍스트 개행 지원 추가, onExited 발생시 onClose 호출 추가
|
|
14
|
+
|
|
3
15
|
## 2.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -19,7 +19,11 @@ export interface NormalBannerProps {
|
|
|
19
19
|
* - Icon 컴포넌트 size props가 있더라도 Icon 사이즈는 banner size 'medium'일경우 16, 'small'일경우 12로 고정됩니다.
|
|
20
20
|
*/
|
|
21
21
|
iconComponent?: React.ComponentType<IconProps>;
|
|
22
|
+
/**
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
showIcon?: boolean;
|
|
22
26
|
title?: string;
|
|
23
27
|
message?: ReactNode;
|
|
24
28
|
}
|
|
25
|
-
export declare const NormalBanner: ({ className, kind, size, iconComponent, title, message, }: NormalBannerProps) => JSX.Element;
|
|
29
|
+
export declare const NormalBanner: ({ className, kind, size, iconComponent, showIcon, title, message, }: NormalBannerProps) => JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentMeta } from '@storybook/react';
|
|
3
|
-
declare const _default: ComponentMeta<({ className, kind, size, iconComponent, title, message, }: import("./NormalBanner").NormalBannerProps) => JSX.Element>;
|
|
3
|
+
declare const _default: ComponentMeta<({ className, kind, size, iconComponent, showIcon, title, message, }: import("./NormalBanner").NormalBannerProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Base: any;
|
|
6
6
|
export declare const NoTitle: any;
|
|
7
|
+
export declare const NoIcon: any;
|
|
7
8
|
export declare const Kind: () => JSX.Element;
|
|
8
9
|
export declare const Size: () => JSX.Element;
|
|
9
10
|
export declare const CustomIcon: () => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ModalOverlayBaseProps } from './ModalOverlay';
|
|
3
3
|
export interface ConfirmModalProps extends Omit<ModalOverlayBaseProps, 'onClose'> {
|
|
4
4
|
title: ReactNode;
|
|
@@ -24,4 +24,7 @@ export interface ConfirmModalProps extends Omit<ModalOverlayBaseProps, 'onClose'
|
|
|
24
24
|
onClose?: () => void | Promise<void>;
|
|
25
25
|
}
|
|
26
26
|
export declare const ConfirmModal: ({ title, width, zIndex, dense, fill, text, subtext, confirmText, cancelText, onConfirm, onCancel, onClose, onExited, ...props }: ConfirmModalProps) => JSX.Element;
|
|
27
|
+
export declare const StyledText: 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>)) & {
|
|
28
|
+
theme?: import("@emotion/react").Theme;
|
|
29
|
+
}, {}, {}>;
|
|
27
30
|
export declare const Confirm: (properties: ConfirmModalProps) => Promise<boolean>;
|