@croquiscom/pds 9.3.1 → 10.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/PopoverButton.d.ts +12 -2
- package/dist/components/button/PopoverButton.stories.d.ts +1 -0
- package/dist/container/section-title/SectionTitle.d.ts +8 -1
- package/dist/container/section-title/SectionTitle.stories.d.ts +1 -0
- package/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DropdownOption } from '../dropdown';
|
|
3
3
|
import { AriaFocusProps } from '../../types/common';
|
|
4
|
+
import { IconProps } from '../icons/generated';
|
|
4
5
|
import { ButtonProps } from './Button';
|
|
5
|
-
|
|
6
|
+
import { IconButtonKind } from './types';
|
|
7
|
+
export interface PopoverButtonProps<OptionValue> extends Omit<ButtonProps, 'size' | 'value' | 'onChange' | 'kind'> {
|
|
8
|
+
/** @default false */
|
|
9
|
+
useIconButton?: boolean;
|
|
6
10
|
/** @default small */
|
|
7
11
|
size?: 'xsmall' | 'small' | 'medium';
|
|
8
12
|
/**
|
|
@@ -25,7 +29,13 @@ export interface PopoverButtonProps<OptionValue> extends Omit<ButtonProps, 'size
|
|
|
25
29
|
maxHeight?: number;
|
|
26
30
|
disabled?: boolean;
|
|
27
31
|
value?: OptionValue;
|
|
32
|
+
/**
|
|
33
|
+
* IconButton과 동시 지원을 위해 IconButtonKind로 제한합니다.
|
|
34
|
+
* @default outlined_secondary
|
|
35
|
+
* */
|
|
36
|
+
kind?: IconButtonKind;
|
|
37
|
+
icon?: React.ReactElement<IconProps, string | React.JSXElementConstructor<any>>;
|
|
28
38
|
onChange?: (value: OptionValue) => void;
|
|
29
39
|
options: Array<DropdownOption<OptionValue>>;
|
|
30
40
|
}
|
|
31
|
-
export declare const PopoverButton: <OptionValue extends string | number>({ size: sizeProp, loading, type, kind, startIcon, className, children, zIndex, autoPlacement: autoPlacementProps, optionsMatchRefWidth, options, value: valueProp, maxHeight, disabled, unstableFocusVisible, onChange, }: PopoverButtonProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
|
|
41
|
+
export declare const PopoverButton: <OptionValue extends string | number>({ useIconButton, size: sizeProp, loading, type, kind, icon, startIcon, className, children, zIndex, autoPlacement: autoPlacementProps, optionsMatchRefWidth, options, value: valueProp, maxHeight, disabled, unstableFocusVisible, onChange, }: PopoverButtonProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
+
import { CSSValueWithLength } from '../../styles';
|
|
2
3
|
export type SectionTitleDirection = 'horizontal' | 'vertical';
|
|
3
4
|
export type SectionTitleSize = 'small' | 'medium' | 'large';
|
|
4
5
|
export interface SectionTitleProps {
|
|
@@ -11,5 +12,11 @@ export interface SectionTitleProps {
|
|
|
11
12
|
description?: ReactNode;
|
|
12
13
|
textButton?: ReactNode;
|
|
13
14
|
actions?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* SectionTitle 컨테이너 하단 여백값
|
|
17
|
+
* - size별로 기본값이 적용되어 있으며 사용처에서 재정의할 수 있습니다.
|
|
18
|
+
* @default { large: 32, medium: 24, small: 16 }
|
|
19
|
+
*/
|
|
20
|
+
mb?: CSSValueWithLength;
|
|
14
21
|
}
|
|
15
|
-
export declare const SectionTitle: ({ direction, size, caption, title, description, textButton, actions, }: SectionTitleProps) => React.JSX.Element;
|
|
22
|
+
export declare const SectionTitle: ({ direction, size, caption, title, description, textButton, actions, mb, }: SectionTitleProps) => React.JSX.Element;
|