@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 10.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 228947f: PopoverButton IconButton type 추가
8
+
9
+ ## 10.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - 1008b64: SectionTitle 사이즈별 하단 여백 기본 속성 추가
14
+
3
15
  ## 9.3.1
4
16
 
5
17
  ### Patch Changes
@@ -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
- export interface PopoverButtonProps<OptionValue> extends Omit<ButtonProps, 'size' | 'value' | 'onChange'> {
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;
@@ -7,3 +7,4 @@ export declare const Short: Story;
7
7
  export declare const Long: Story;
8
8
  export declare const Disabled: Story;
9
9
  export declare const Loading: Story;
10
+ export declare const IconPopoverButton: Story;
@@ -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;
@@ -7,4 +7,5 @@ export declare const Base: Story;
7
7
  export declare const Vertical: Story;
8
8
  export declare const SizeWithHorizontal: Story;
9
9
  export declare const SizeWithVertical: Story;
10
+ export declare const SizeWithNoMarginBottom: Story;
10
11
  export declare const Custom: Story;