@croquiscom/pds 3.0.0 → 3.1.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/button/AccordionButton.d.ts +12 -0
- package/dist/components/button/AccordionButton.stories.d.ts +7 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/styles.d.ts +3 -1
- package/dist/components/button/types.d.ts +1 -0
- package/dist/components/drawer/index.d.ts +0 -1
- package/dist/components/modal/ModalStoryArgTypes.d.ts +0 -6
- package/dist/container/footer/Footer.d.ts +2 -0
- 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/dist/components/drawer/DrawerCloseButton.d.ts +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps } from './Button';
|
|
3
|
+
import { AccordionButtonSize } from './types';
|
|
4
|
+
export interface AccordionButtonProps extends Omit<ButtonProps, 'fill' | 'loading' | 'kind' | 'startIcon' | 'endIcon'> {
|
|
5
|
+
/** @default medium */
|
|
6
|
+
size?: AccordionButtonSize;
|
|
7
|
+
/** Label 좌측 렌더링될 Addon 요소 */
|
|
8
|
+
leftAddon?: ReactNode;
|
|
9
|
+
/** Label 우측 화살표 오픈 상태 여부 */
|
|
10
|
+
opened?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const AccordionButton: React.ForwardRefExoticComponent<AccordionButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<React.ForwardRefExoticComponent<import("./AccordionButton").AccordionButtonProps & React.RefAttributes<HTMLButtonElement>>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Base: any;
|
|
6
|
+
export declare const Disabled: any;
|
|
7
|
+
export declare const WithTooltip: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonSize, ButtonKind, IconButtonShape, TextButtonKind, TextButtonSize, IconButtonKind } from './types';
|
|
1
|
+
import { ButtonSize, ButtonKind, IconButtonShape, TextButtonKind, TextButtonSize, IconButtonKind, AccordionButtonSize } from './types';
|
|
2
2
|
export declare const button_base_css: import("@emotion/utils").SerializedStyles;
|
|
3
3
|
export declare const getButtonKind: (kind?: ButtonKind) => import("@emotion/utils").SerializedStyles;
|
|
4
4
|
export declare const getIconButtonKind: (kind?: IconButtonKind) => import("@emotion/utils").SerializedStyles;
|
|
@@ -9,3 +9,5 @@ export declare const getIconButtonStyle: (shape?: IconButtonShape) => import("@e
|
|
|
9
9
|
export declare const text_button_text_css: Record<TextButtonSize, string>;
|
|
10
10
|
export declare const text_button_size_css: Record<TextButtonSize, string>;
|
|
11
11
|
export declare const getTextButtonStyle: (kind: TextButtonKind, fixed_color: string) => import("@emotion/utils").SerializedStyles;
|
|
12
|
+
export declare const accordion_button_css: import("@emotion/utils").SerializedStyles;
|
|
13
|
+
export declare const accordion_button_size_css: Record<AccordionButtonSize, string>;
|
|
@@ -6,3 +6,4 @@ export type IconButtonShape = 'rectangle' | 'circle';
|
|
|
6
6
|
export type IconButtonKind = Exclude<ButtonOutlinedKind, 'outlined_black'>;
|
|
7
7
|
export type TextButtonKind = 'text' | 'link';
|
|
8
8
|
export type TextButtonSize = Exclude<ButtonSize, 'xsmall' | 'xlarge'>;
|
|
9
|
+
export type AccordionButtonSize = Exclude<TextButtonSize, 'large'>;
|
|
@@ -15,5 +15,7 @@ export declare const Footer: {
|
|
|
15
15
|
Link: import("@emotion/styled").StyledComponent<{
|
|
16
16
|
theme?: import("@emotion/react").Theme;
|
|
17
17
|
as?: import("react").ElementType<any>;
|
|
18
|
+
} & {
|
|
19
|
+
strong?: boolean;
|
|
18
20
|
}, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
|
19
21
|
};
|