@croquiscom/pds 8.12.1 → 8.14.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 +12 -0
- package/dist/components/modal/AlertModal.d.ts +2 -2
- package/dist/components/modal/AlertModal.stories.d.ts +1 -1
- package/dist/components/modal/ConfirmModal.d.ts +10 -1
- package/dist/components/modal/ConfirmModal.stories.d.ts +2 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { ConfirmModalProps } from './ConfirmModal';
|
|
3
3
|
import { NotificationKind } from '../notification';
|
|
4
4
|
import { ModalActionButtonType } from './ModalActionButton';
|
|
5
|
-
export interface AlertModalProps extends Omit<ConfirmModalProps, 'cancelText' | 'onCancel' | 'autoFocusButton'> {
|
|
5
|
+
export interface AlertModalProps extends Omit<ConfirmModalProps, 'cancelText' | 'onCancel' | 'autoFocusButton' | 'cancelButtonProps'> {
|
|
6
6
|
/**
|
|
7
7
|
* @default info
|
|
8
8
|
*/
|
|
@@ -13,5 +13,5 @@ export interface AlertModalProps extends Omit<ConfirmModalProps, 'cancelText' |
|
|
|
13
13
|
*/
|
|
14
14
|
autoFocusButton?: Extract<ModalActionButtonType, 'confirm'> | null;
|
|
15
15
|
}
|
|
16
|
-
export declare const AlertModal: ({ width, kind, dense, fill, title, confirmText, autoFocusButton, text, subtext, zIndex, onConfirm, onClose, onExited, ...props }: AlertModalProps) => JSX.Element;
|
|
16
|
+
export declare const AlertModal: ({ width, kind, dense, fill, title, confirmText, confirmButtonProps, autoFocusButton, text, subtext, zIndex, onConfirm, onClose, onExited, ...props }: AlertModalProps) => JSX.Element;
|
|
17
17
|
export declare const Alert: (properties: AlertModalProps) => Promise<boolean>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
3
|
import { AlertModal, AlertModalProps } from './AlertModal';
|
|
4
|
-
declare const _default: ComponentMeta<({ width, kind, dense, fill, title, confirmText, autoFocusButton, text, subtext, zIndex, onConfirm, onClose, onExited, ...props }: AlertModalProps) => JSX.Element>;
|
|
4
|
+
declare const _default: ComponentMeta<({ width, kind, dense, fill, title, confirmText, confirmButtonProps, autoFocusButton, text, subtext, zIndex, onConfirm, onClose, onExited, ...props }: AlertModalProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Base: ComponentStory<typeof AlertModal>;
|
|
7
7
|
export declare const Dense: ComponentStory<typeof AlertModal>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ModalButtonProps } from './Modal';
|
|
2
3
|
import { ModalOverlayBaseProps } from './ModalOverlay';
|
|
3
4
|
import { ModalActionButtonType } from './ModalActionButton';
|
|
4
5
|
export interface ConfirmModalProps extends Omit<ModalOverlayBaseProps, 'onClose'> {
|
|
@@ -11,6 +12,14 @@ export interface ConfirmModalProps extends Omit<ModalOverlayBaseProps, 'onClose'
|
|
|
11
12
|
dense?: boolean;
|
|
12
13
|
confirmText?: string;
|
|
13
14
|
cancelText?: string;
|
|
15
|
+
/**
|
|
16
|
+
* [ButtonProps](https://storybook.kakaostyle.in/master/pds/?path=/docs/component-button--primary)를 confirmButton에 적용할 수 있습니다.
|
|
17
|
+
*/
|
|
18
|
+
confirmButtonProps?: ModalButtonProps;
|
|
19
|
+
/**
|
|
20
|
+
* [ButtonProps](https://storybook.kakaostyle.in/master/pds/?path=/docs/component-button--primary)를 cancelButton에 적용할 수 있습니다.
|
|
21
|
+
*/
|
|
22
|
+
cancelButtonProps?: ModalButtonProps;
|
|
14
23
|
/**
|
|
15
24
|
* autofocus 지정할 기본 버튼 요소
|
|
16
25
|
* @default confirm
|
|
@@ -29,7 +38,7 @@ export interface ConfirmModalProps extends Omit<ModalOverlayBaseProps, 'onClose'
|
|
|
29
38
|
*/
|
|
30
39
|
onClose?: () => void | Promise<void>;
|
|
31
40
|
}
|
|
32
|
-
export declare const ConfirmModal: ({ title, width, zIndex, dense, fill, text, subtext, confirmText, cancelText, autoFocusButton, onConfirm, onCancel, onClose, onExited, ...props }: ConfirmModalProps) => JSX.Element;
|
|
41
|
+
export declare const ConfirmModal: ({ title, width, zIndex, dense, fill, text, subtext, confirmText, cancelText, confirmButtonProps, cancelButtonProps, autoFocusButton, onConfirm, onCancel, onClose, onExited, ...props }: ConfirmModalProps) => JSX.Element;
|
|
33
42
|
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>)) & {
|
|
34
43
|
theme?: import("@emotion/react").Theme;
|
|
35
44
|
}, {}, {}>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
3
|
import { ConfirmModal } from './ConfirmModal';
|
|
4
|
-
declare const _default: ComponentMeta<({ title, width, zIndex, dense, fill, text, subtext, confirmText, cancelText, autoFocusButton, onConfirm, onCancel, onClose, onExited, ...props }: import("./ConfirmModal").ConfirmModalProps) => JSX.Element>;
|
|
4
|
+
declare const _default: ComponentMeta<({ title, width, zIndex, dense, fill, text, subtext, confirmText, cancelText, confirmButtonProps, cancelButtonProps, autoFocusButton, onConfirm, onCancel, onClose, onExited, ...props }: import("./ConfirmModal").ConfirmModalProps) => JSX.Element>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Base: ComponentStory<typeof ConfirmModal>;
|
|
7
7
|
export declare const Dense: ComponentStory<typeof ConfirmModal>;
|
|
8
8
|
export declare const ContinuosOpen: ComponentStory<typeof ConfirmModal>;
|
|
9
9
|
export declare const AutoFocusButtonCustom: ComponentStory<typeof ConfirmModal>;
|
|
10
10
|
export declare const DisabledAutoFocusButton: ComponentStory<typeof ConfirmModal>;
|
|
11
|
+
export declare const CustomPropsButton: ComponentStory<typeof ConfirmModal>;
|