@croquiscom/pds 6.5.0 → 6.6.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 +12 -0
- package/dist/components/date-picker/styles.d.ts +1 -0
- package/dist/components/dropdown/DropdownInput.d.ts +14 -2
- package/dist/components/dropdown/DropdownInput.stories.d.ts +2 -1
- package/dist/components/input/styles.d.ts +5 -0
- package/dist/index.es.js +6 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/utils/shared.d.ts +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @croquiscom/pds
|
|
2
2
|
|
|
3
|
+
## 6.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- cfa127f: DropdownInput 버그 수정 및 자동완성 로직 수정
|
|
8
|
+
|
|
9
|
+
## 6.5.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 3460334: Textarea, DateRangePicker, DatePicker, TimePicker, TimeRangePicker disabled 색상 오적용 수정
|
|
14
|
+
|
|
3
15
|
## 6.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -7,6 +7,7 @@ export declare const caption_text_button_css: import("@emotion/utils").Serialize
|
|
|
7
7
|
export declare const caption_arrow_button_css: import("@emotion/utils").SerializedStyles;
|
|
8
8
|
export declare const range_input_default_style: CSSProperties;
|
|
9
9
|
export declare const range_picker_focus_style: import("@emotion/utils").SerializedStyles;
|
|
10
|
+
export declare const date_picker_input_entered_disabled_style: import("@emotion/utils").SerializedStyles;
|
|
10
11
|
export declare const range_input_disabled_style: import("@emotion/utils").SerializedStyles;
|
|
11
12
|
export declare const year_month_select_panel_css: import("@emotion/utils").SerializedStyles;
|
|
12
13
|
export declare const getRangeFocusInputStyle: (size: InputSize) => import("@emotion/utils").SerializedStyles;
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
|
|
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>;
|
|
@@ -24,12 +24,17 @@ export declare const input_focus_style: {
|
|
|
24
24
|
export declare const input_disabled_style: {
|
|
25
25
|
backgroundColor: string;
|
|
26
26
|
border: string;
|
|
27
|
+
'-webkit-text-fill-color': string;
|
|
27
28
|
color: string;
|
|
28
29
|
opacity: number;
|
|
29
30
|
'&:focus, &:hover, &:focus-within': {
|
|
30
31
|
border: string;
|
|
31
32
|
};
|
|
32
33
|
};
|
|
34
|
+
export declare const input_entered_disabled_style: {
|
|
35
|
+
color: string;
|
|
36
|
+
'-webkit-text-fill-color': string;
|
|
37
|
+
};
|
|
33
38
|
export declare const getInputPaddingBySize: (size: InputSize) => string;
|
|
34
39
|
export declare const getInputSpacingBySize: (size: InputSize) => 4 | 8;
|
|
35
40
|
export declare const getInputHeightBySize: (size: InputSize) => number;
|