@croquiscom/pds 3.3.1 → 3.4.1
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/dropdown/Dropdown.d.ts +4 -1
- package/dist/components/dropdown/Dropdown.stories.d.ts +2 -1
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/index.es.js +2 -2
- 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,5 +1,17 @@
|
|
|
1
1
|
# @croquiscom/pds
|
|
2
2
|
|
|
3
|
+
## 3.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f49470b: export되지 않은 Menu 부속 컴포넌트 export 하도록 수정
|
|
8
|
+
|
|
9
|
+
## 3.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 54f7a02: Dropdown renderLabel, optionsMatchRefWidth props 추가
|
|
14
|
+
|
|
3
15
|
## 3.3.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -26,6 +26,8 @@ export interface DropdownProps<OptionValue> {
|
|
|
26
26
|
/** @default large */
|
|
27
27
|
size?: InputSize;
|
|
28
28
|
disabled?: boolean;
|
|
29
|
+
/** @default true */
|
|
30
|
+
optionsMatchRefWidth?: boolean;
|
|
29
31
|
options: Array<DropdownOption<OptionValue>>;
|
|
30
32
|
placeholder?: string;
|
|
31
33
|
status?: DropdownLabelProps['status'];
|
|
@@ -38,5 +40,6 @@ export interface DropdownProps<OptionValue> {
|
|
|
38
40
|
autoPlacement?: boolean;
|
|
39
41
|
keyExtractor?: (item: DropdownOption<OptionValue>, index: number) => string | number;
|
|
40
42
|
onChange?: (value: OptionValue) => void;
|
|
43
|
+
renderLabel?: (selectedOption: DropdownOption<OptionValue>) => ReactNode;
|
|
41
44
|
}
|
|
42
|
-
export declare const Dropdown: <OptionValue extends string | number>({ className, width, maxHeight, zIndex, size: sizeProp, disabled, options, placeholder, status, value: valueProp, autoPlacement: autoPlacementProps, keyExtractor, onChange, }: DropdownProps<OptionValue>) => JSX.Element;
|
|
45
|
+
export declare const Dropdown: <OptionValue extends string | number>({ className, width, maxHeight, zIndex, size: sizeProp, disabled, optionsMatchRefWidth, options, placeholder, status, value: valueProp, autoPlacement: autoPlacementProps, keyExtractor, onChange, renderLabel, }: DropdownProps<OptionValue>) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
3
|
import { Dropdown } from './Dropdown';
|
|
4
|
-
declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, maxHeight, zIndex, size: sizeProp, disabled, options, placeholder, status, value: valueProp, autoPlacement: autoPlacementProps, keyExtractor, onChange, }: import("./Dropdown").DropdownProps<OptionValue>) => JSX.Element)>;
|
|
4
|
+
declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, maxHeight, zIndex, size: sizeProp, disabled, optionsMatchRefWidth, options, placeholder, status, value: valueProp, autoPlacement: autoPlacementProps, keyExtractor, onChange, renderLabel, }: import("./Dropdown").DropdownProps<OptionValue>) => JSX.Element)>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Base: any;
|
|
7
7
|
export declare const Error: any;
|
|
@@ -12,3 +12,4 @@ export declare const DisabledOptionItem: any;
|
|
|
12
12
|
export declare const CustomMaxHeight: any;
|
|
13
13
|
export declare const WithIcon: ComponentStory<typeof Dropdown>;
|
|
14
14
|
export declare const Controlled: ComponentStory<typeof Dropdown>;
|
|
15
|
+
export declare const CustomLabel: ComponentStory<typeof Dropdown>;
|