@croquiscom/pds 10.0.0 → 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 +6 -0
- package/dist/components/button/PopoverButton.d.ts +12 -2
- package/dist/components/button/PopoverButton.stories.d.ts +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- 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;
|