@croquiscom/pds 0.18.2 → 0.20.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,29 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 0.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4c4f79f: Tooltip variant 변경
8
+
9
+ ## BreakPoint
10
+
11
+ Variant가 다음과 같이 변경되었습니다.
12
+
13
+ - primary => brand
14
+ - secondary => primary
15
+ - error => negative
16
+
17
+ ## 0.19.0
18
+
19
+ ### Minor Changes
20
+
21
+ - df92547: DropdownInput 컴포넌트 추가
22
+
23
+ ### Patch Changes
24
+
25
+ - b39ae94: Button xlarge 사이즈 폰트 크기 수정
26
+
3
27
  ## 0.18.2
4
28
 
5
29
  ### 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
+ };