@croquiscom/pds 0.18.1 → 0.19.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,5 +1,21 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 0.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - df92547: DropdownInput 컴포넌트 추가
8
+
9
+ ### Patch Changes
10
+
11
+ - b39ae94: Button xlarge 사이즈 폰트 크기 수정
12
+
13
+ ## 0.18.2
14
+
15
+ ### Patch Changes
16
+
17
+ - e137e93: Checkbox, Radio 포커스 스타일 제거
18
+
3
19
  ## 0.18.1
4
20
 
5
21
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { DropdownLabelProps } from './DropdownLabel';
3
+ export declare const DropdownArrowButton: ({ expanded, disabled, selected, onClick }: DropdownLabelProps) => JSX.Element;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { DropdownProps } from './Dropdown';
3
+ export interface DropdownInputOption<OptionValue> {
4
+ label: string;
5
+ value: OptionValue;
6
+ disabled?: boolean;
7
+ }
8
+ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<OptionValue>, 'options' | 'keyExtractor' | 'onChange'> {
9
+ onSearch?: (inputValue: string) => void;
10
+ onChange?: (value: OptionValue | undefined) => void;
11
+ options: Array<DropdownInputOption<OptionValue>>;
12
+ keyExtractor?: (item: DropdownInputOption<OptionValue>, index: number) => string | number;
13
+ }
14
+ export declare const DropdownInput: <OptionValue extends string | number>({ className, width, disabled, options, placeholder, value, keyExtractor, onSearch, onChange, }: DropdownInputProps<OptionValue>) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
+ import { DropdownInput } from './DropdownInput';
4
+ declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, disabled, options, placeholder, value, keyExtractor, onSearch, onChange, }: import("./DropdownInput").DropdownInputProps<OptionValue>) => JSX.Element)>;
5
+ export default _default;
6
+ export declare const Base: any;
7
+ export declare const Disabled: any;
8
+ export declare const Controlled: ComponentStory<typeof DropdownInput>;
@@ -6,5 +6,10 @@ export interface DropdownItemProps extends LiHTMLAttributes<HTMLLIElement> {
6
6
  * Option 선택 여부
7
7
  */
8
8
  selected?: boolean;
9
+ /**
10
+ * @default false
11
+ * Option focus 여부
12
+ */
13
+ focused?: boolean;
9
14
  }
10
15
  export declare const DropdownItem: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLLIElement>>;
@@ -1 +1,2 @@
1
1
  export * from './Dropdown';
2
+ export * from './DropdownInput';
@@ -22,3 +22,6 @@ export declare const dropdown_item_selected_style: {
22
22
  backgroundColor: string;
23
23
  };
24
24
  };
25
+ export declare const dropdown_item_focused_style: {
26
+ backgroundColor: string;
27
+ };