@ws-ui/ui-components 1.0.14 → 1.0.15

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/dist/index.d.ts CHANGED
@@ -2636,7 +2636,7 @@ export declare interface IDownshiftHookParams<T> {
2636
2636
  onOpenChange?: (isOpen: boolean) => void;
2637
2637
  inputValue?: string;
2638
2638
  onInputChange?: (value: string) => void;
2639
- getOptionLabel?: (option: T) => string;
2639
+ getOptionLabel?: (option: T) => ReactNode;
2640
2640
  getOptionValue?: (option: T) => string | number;
2641
2641
  formatOptionLabel?: (option: T) => ReactNode;
2642
2642
  items?: T[];
@@ -2812,7 +2812,7 @@ export declare interface ISelectContextValue<T = unknown> {
2812
2812
  setHasMessage: Dispatch<SetStateAction<boolean>>;
2813
2813
  options?: T[] | ISelectOptionGroup<T>[];
2814
2814
  downshift: IDownshiftHookReturn<T>;
2815
- getOptionLabel: (option: T) => string | number;
2815
+ getOptionLabel: (option: T) => ReactNode;
2816
2816
  getOptionValue: (option: T) => string | number;
2817
2817
  isOptionDisabled: (option: T) => boolean;
2818
2818
  formatOptionLabel?: (option: T) => ReactNode;