@croquiscom/pds 6.5.1 → 6.6.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 6.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 7da3b18: export PaginationArrow
8
+
9
+ ## 6.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - cfa127f: DropdownInput 버그 수정 및 자동완성 로직 수정
14
+
3
15
  ## 6.5.1
4
16
 
5
17
  ### Patch Changes
@@ -1,8 +1,19 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { AriaFocusProps } from '../../types/common';
3
3
  import { DropdownProps } from './Dropdown';
4
4
  export interface DropdownInputOption<OptionValue> {
5
+ /**
6
+ * input 영역에 텍스트 형태로 노출되고, 자동 완성을 위해 사용되는 문자열 값입니다.
7
+ */
5
8
  label: string;
9
+ /**
10
+ * Dropdown의 팝업 영역 내부에 노출되는 ReactNode 값입니다. 지정된 경우 팝업 내부에
11
+ * label을 노출하지 않고 displayLabel을 사용합니다.
12
+ */
13
+ displayLabel?: React.ReactNode;
14
+ /**
15
+ * onChange, value에서 사용되는 항목의 값입니다.
16
+ */
6
17
  value: OptionValue;
7
18
  disabled?: boolean;
8
19
  }
@@ -14,5 +25,6 @@ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<Opti
14
25
  onChange?: (value: OptionValue | undefined) => void;
15
26
  options: Array<DropdownInputOption<OptionValue>>;
16
27
  keyExtractor?: (item: DropdownInputOption<OptionValue>, index: number) => string | number;
28
+ optionFilter?: (inputValue: string, item: DropdownInputOption<OptionValue>, index: number) => boolean;
17
29
  }
18
- export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, keyExtractor, onSearch, onChange, }: DropdownInputProps<OptionValue> & AriaFocusProps) => JSX.Element;
30
+ export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, keyExtractor, optionFilter, onSearch, onChange, }: DropdownInputProps<OptionValue> & AriaFocusProps) => JSX.Element;
@@ -1,11 +1,12 @@
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, 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, keyExtractor, optionFilter, 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;
8
8
  export declare const WithFormHelperText: ComponentStory<typeof DropdownInput>;
9
+ export declare const WithOptionFilter: ComponentStory<typeof DropdownInput>;
9
10
  export declare const Size: ComponentStory<typeof DropdownInput>;
10
11
  export declare const Disabled: any;
11
12
  export declare const Controlled: ComponentStory<typeof DropdownInput>;
@@ -6,9 +6,5 @@ export interface PaginationArrowProps {
6
6
  disabled?: boolean;
7
7
  onClick?: () => void;
8
8
  }
9
- export declare const PaginationArrow: ({ position, disabled, onClick }: {
10
- position?: string;
11
- disabled: any;
12
- onClick: any;
13
- }) => JSX.Element;
9
+ export declare const PaginationArrow: ({ position, disabled, onClick }: PaginationArrowProps) => JSX.Element;
14
10
  export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<({ position, disabled, onClick }: import("./PaginationArrow").PaginationArrowProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Base: any;
@@ -1 +1,2 @@
1
1
  export * from './Pagination';
2
+ export * from './PaginationArrow';