@croquiscom/pds 8.24.1 → 8.25.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,22 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 8.25.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 129c48b: ChipInput canDelete false인 아이템이 맨마지막인 경우 백스페이스 삭제 불가 추가
8
+
9
+ ## 8.25.0
10
+
11
+ ### Minor Changes
12
+
13
+ - e154f4f: ChipInput HTMLInputElement 기본 props 추가
14
+
15
+ ### Patch Changes
16
+
17
+ - b606992: DropdownOptions scroll 되지 않는 이슈 수정
18
+ - 1d972d2: FormField formHelperText영역 높이 제거
19
+
3
20
  ## 8.24.1
4
21
 
5
22
  ### Patch Changes
@@ -20,7 +20,7 @@ export interface PopoverButtonProps<OptionValue> extends Omit<ButtonProps, 'size
20
20
  optionsMatchRefWidth?: boolean;
21
21
  /**
22
22
  * Popover OptionList maxHeight값
23
- * @default 400
23
+ * @default DEFAULT_DROPDOWN_MAX_HEIGHT(400)
24
24
  */
25
25
  maxHeight?: number;
26
26
  disabled?: boolean;
@@ -16,7 +16,7 @@ export interface DropdownProps<OptionValue> {
16
16
  width?: CSSValueWithLength;
17
17
  /**
18
18
  * Dropdown OptionList maxHeight값
19
- * @default 400
19
+ * @default DEFAULT_DROPDOWN_MAX_HEIGHT(400)
20
20
  */
21
21
  maxHeight?: number;
22
22
  /**
@@ -34,4 +34,4 @@ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<Opti
34
34
  keyExtractor?: (item: DropdownInputOption<OptionValue>, index: number) => string | number;
35
35
  optionFilter?: (inputValue: string, item: DropdownInputOption<OptionValue>, index: number) => boolean;
36
36
  }
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) => React.JSX.Element;
37
+ export declare const DropdownInput: <OptionValue extends string | number>({ width, zIndex, disabled, options, placeholder, status, value, size: sizeProp, unstableFocusVisible, allowCustomValue, keyExtractor, optionFilter, autoPlacement: autoPlacementProps, startElement, endElement, onSearch, onChange, }: DropdownInputProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
@@ -10,7 +10,7 @@ export interface PopoverContentProps<OptionValue> {
10
10
  * @default 1030
11
11
  */
12
12
  zIndex?: number;
13
- hasNoData?: boolean;
13
+ noDataText?: ReactNode;
14
14
  /** @default large */
15
15
  initialFocus?: number;
16
16
  size?: InputSize;
@@ -29,4 +29,4 @@ export interface PopoverContentProps<OptionValue> {
29
29
  refs: ExtendedRefs<Element>;
30
30
  setRefs: (node: HTMLElement | null, index: number) => void;
31
31
  }
32
- export declare const DropdownOptions: <OptionValue extends string | number>({ className, zIndex, size: sizeProp, initialFocus, options, onClose, hasNoData, value: valueProp, unstableFocusVisible, keyExtractor, onChange, focusIndex, context, getFloatingProps, getItemProps, floatingStyles, refs, setRefs, }: PopoverContentProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
32
+ export declare const DropdownOptions: <OptionValue extends string | number>({ className, zIndex, size: sizeProp, initialFocus, options, onClose, noDataText, value: valueProp, unstableFocusVisible, keyExtractor, onChange, focusIndex, context, getFloatingProps, getItemProps, floatingStyles, refs, setRefs, }: PopoverContentProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_DROPDOWN_MAX_HEIGHT = 400;
@@ -1,4 +1,4 @@
1
- import React, { CSSProperties } from 'react';
1
+ import React, { CSSProperties, InputHTMLAttributes } from 'react';
2
2
  import { AriaFocusProps } from '../../types/common';
3
3
  import { InputSize, InputStatus } from './types';
4
4
  export interface ChipInputValue {
@@ -6,7 +6,7 @@ export interface ChipInputValue {
6
6
  canDelete?: boolean;
7
7
  disabled?: boolean;
8
8
  }
9
- export interface ChipInputProps extends AriaFocusProps {
9
+ export interface ChipInputProps extends AriaFocusProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'width' | 'size' | 'value' | 'onChange'> {
10
10
  value?: ChipInputValue[];
11
11
  disabled?: boolean;
12
12
  placeholder?: string;