@croquiscom/pds 8.1.0 → 8.2.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/dropdown/DropdownInput.d.ts +5 -1
- package/dist/components/dropdown/DropdownInput.stories.d.ts +3 -1
- package/dist/index.es.js +1 -1
- 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/scripts/table/migrate-table.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,10 @@ export interface DropdownInputOption<OptionValue> {
|
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<OptionValue>, 'options' | 'keyExtractor' | 'onChange'> {
|
|
21
|
+
/**
|
|
22
|
+
* options에 없는 값을 허용할 지 여부입니다.
|
|
23
|
+
*/
|
|
24
|
+
allowCustomValue?: boolean;
|
|
21
25
|
/**
|
|
22
26
|
* 입력된 검색결과를 전달합니다.
|
|
23
27
|
*/
|
|
@@ -27,4 +31,4 @@ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<Opti
|
|
|
27
31
|
keyExtractor?: (item: DropdownInputOption<OptionValue>, index: number) => string | number;
|
|
28
32
|
optionFilter?: (inputValue: string, item: DropdownInputOption<OptionValue>, index: number) => boolean;
|
|
29
33
|
}
|
|
30
|
-
export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, onSearch, onChange, }: DropdownInputProps<OptionValue> & AriaFocusProps) => JSX.Element;
|
|
34
|
+
export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, allowCustomValue, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, onSearch, onChange, }: DropdownInputProps<OptionValue> & AriaFocusProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
3
|
import { DropdownInput } from './DropdownInput';
|
|
4
|
-
declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, onSearch, onChange, }: import("./DropdownInput").DropdownInputProps<OptionValue> & import("../../types/common").AriaFocusProps) => JSX.Element)>;
|
|
4
|
+
declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, allowCustomValue, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, onSearch, onChange, }: import("./DropdownInput").DropdownInputProps<OptionValue> & import("../../types/common").AriaFocusProps) => JSX.Element)>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Base: any;
|
|
7
7
|
export declare const Error: any;
|
|
@@ -11,3 +11,5 @@ export declare const WithOptionFilter: ComponentStory<typeof DropdownInput>;
|
|
|
11
11
|
export declare const Size: ComponentStory<typeof DropdownInput>;
|
|
12
12
|
export declare const Disabled: any;
|
|
13
13
|
export declare const Controlled: ComponentStory<typeof DropdownInput>;
|
|
14
|
+
export declare const TestComposition: ComponentStory<typeof DropdownInput>;
|
|
15
|
+
export declare const AllowCustomValue: ComponentStory<typeof DropdownInput>;
|