@croquiscom/pds 8.4.0-next.0 → 8.5.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,10 +1,16 @@
1
1
  # @croquiscom/pds
2
2
 
3
- ## 8.4.0-next.0
3
+ ## 8.5.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - 86fd771: @floating-ui/react ^0.18.0 -> ^0.26.9 업데이트
7
+ - 9142b39: DropdownInput > Search 유형 추가
8
+
9
+ ## 8.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 781b00c: @floating-ui/react ^0.18.0 -> ^0.26.9 업데이트
8
14
 
9
15
  - DropdownInput, Popover, Tooltip에서 FloatingPortal 조건부로 렌더링되도록 변경
10
16
  - DateRangePicker에서 TimePicker 클릭시 focusout 이벤트로 닫히는 이슈 수정
@@ -1,6 +1,7 @@
1
- import React from 'react';
1
+ import React, { ReactNode, ReactElement } from 'react';
2
2
  import { AriaFocusProps } from '../../types/common';
3
3
  import { DropdownProps } from './Dropdown';
4
+ import { IconProps } from '../icons/generated';
4
5
  export interface DropdownInputOption<OptionValue> {
5
6
  /**
6
7
  * input 영역에 텍스트 형태로 노출되고, 자동 완성을 위해 사용되는 문자열 값입니다.
@@ -22,6 +23,8 @@ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<Opti
22
23
  * options에 없는 값을 허용할 지 여부입니다.
23
24
  */
24
25
  allowCustomValue?: boolean;
26
+ startElement?: ReactElement<IconProps> | ReactNode;
27
+ endElement?: ReactElement<IconProps> | ReactNode;
25
28
  /**
26
29
  * 입력된 검색결과를 전달합니다.
27
30
  */
@@ -31,4 +34,4 @@ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<Opti
31
34
  keyExtractor?: (item: DropdownInputOption<OptionValue>, index: number) => string | number;
32
35
  optionFilter?: (inputValue: string, item: DropdownInputOption<OptionValue>, index: number) => boolean;
33
36
  }
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;
37
+ export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, allowCustomValue, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, startElement, endElement, 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, allowCustomValue, 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, startElement, endElement, 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;
@@ -13,3 +13,4 @@ export declare const Disabled: any;
13
13
  export declare const Controlled: ComponentStory<typeof DropdownInput>;
14
14
  export declare const TestComposition: ComponentStory<typeof DropdownInput>;
15
15
  export declare const AllowCustomValue: ComponentStory<typeof DropdownInput>;
16
+ export declare const Search: ComponentStory<typeof DropdownInput>;