@croquiscom/pds 10.8.0 → 10.8.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,11 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 10.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 99fde0e: Dropdown/DropdownInput 컴포넌트에서 필요한 경우에만 가상스크롤을 사용하도록 enableVirtualScroll prop 추가
8
+
3
9
  ## 10.8.0
4
10
 
5
11
  ### Minor Changes
@@ -42,5 +42,6 @@ export interface DropdownProps<OptionValue> {
42
42
  keyExtractor?: (item: DropdownOption<OptionValue>, index: number) => string | number;
43
43
  onChange?: (value: OptionValue) => void;
44
44
  renderLabel?: (selectedOption: DropdownOption<OptionValue>) => ReactNode;
45
+ enableVirtualScroll?: boolean;
45
46
  }
46
- export declare const Dropdown: <OptionValue extends string | number>({ className, width, maxHeight, zIndex, size: sizeProp, disabled, optionsMatchRefWidth, options, placeholder, status, value: valueProp, autoPlacement: autoPlacementProps, unstableFocusVisible, keyExtractor, onChange, renderLabel, }: DropdownProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
47
+ export declare const Dropdown: <OptionValue extends string | number>({ className, width, maxHeight, zIndex, size: sizeProp, disabled, optionsMatchRefWidth, options, placeholder, status, value: valueProp, autoPlacement: autoPlacementProps, unstableFocusVisible, keyExtractor, onChange, renderLabel, enableVirtualScroll, }: DropdownProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
@@ -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>({ 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, enableVirtualScroll, }: DropdownInputProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
@@ -30,5 +30,6 @@ export interface PopoverContentProps<OptionValue> {
30
30
  setRefs: (node: HTMLElement | null, index: number) => void;
31
31
  isPositioned?: boolean;
32
32
  setFocusIndex?: (index: number) => void;
33
+ enableVirtualScroll?: boolean;
33
34
  }
34
- 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, isPositioned, setFocusIndex, }: PopoverContentProps<OptionValue> & AriaFocusProps) => React.JSX.Element;
35
+ 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, isPositioned, setFocusIndex, enableVirtualScroll, }: PopoverContentProps<OptionValue> & AriaFocusProps) => React.JSX.Element;