stratosphere-ui 1.8.2 → 1.8.4

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.
@@ -11,7 +11,7 @@ export interface SelectProps<DataItem extends GenericDataType, Values extends Fi
11
11
  disabled?: boolean;
12
12
  dropdownIcon?: ReactNode;
13
13
  formValueMode?: FormValueMode;
14
- getItemText: (data: DataItem) => string;
14
+ getItemText: (data: DataItem) => ReactNode;
15
15
  hideDropdownIcon?: true;
16
16
  menuClassName?: string;
17
17
  menuSize?: MenuSize;
@@ -19,4 +19,4 @@ export interface SelectProps<DataItem extends GenericDataType, Values extends Fi
19
19
  options?: DataItem[];
20
20
  showDirty?: boolean;
21
21
  }
22
- export declare const Select: <DataItem extends GenericDataType, Values extends FieldValues>({ buttonColor, buttonProps: { className: buttonClassName, color: buttonPropsColor, ...buttonProps }, className, disabled, dropdownIcon, formValueMode, getItemText, hideDropdownIcon, isRequired, labelText, menuClassName, menuSize, multi, name, options: optionsArray, showDirty, }: SelectProps<DataItem, Values>) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const Select: <DataItem extends GenericDataType, Values extends FieldValues>({ buttonColor, buttonProps: { children: buttonChildren, className: buttonClassName, color: buttonPropsColor, ...buttonProps }, className, disabled, dropdownIcon, formValueMode, getItemText, hideDropdownIcon, isRequired, labelText, menuClassName, menuSize, multi, name, options: optionsArray, showDirty, }: SelectProps<DataItem, Values>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { KeyboardEventHandler } from 'react';
1
+ import { KeyboardEventHandler, ReactNode } from 'react';
2
2
  import { FieldValues } from 'react-hook-form';
3
3
  import { GenericDataType } from '../../common';
4
4
  import { UseTypeaheadQueryOptions } from '../../hooks';
@@ -14,8 +14,9 @@ export interface TypeaheadSelectProps<DataItem extends GenericDataType, Values e
14
14
  disabled?: boolean;
15
15
  disableSingleSelectBadge?: true;
16
16
  formValueMode?: FormValueMode;
17
- getBadgeText?: (item: DataItem) => string;
18
- getItemText: (data: DataItem) => string;
17
+ getBadgeClassName?: (item: DataItem) => string;
18
+ getBadgeText?: (item: DataItem) => ReactNode;
19
+ getItemText: (data: DataItem) => ReactNode;
19
20
  inputClassName?: string;
20
21
  inputPlaceholder?: string;
21
22
  menuClassName?: string;
@@ -24,4 +25,4 @@ export interface TypeaheadSelectProps<DataItem extends GenericDataType, Values e
24
25
  onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
25
26
  size?: InputSize;
26
27
  }
27
- export declare const TypeaheadSelect: <DataItem extends GenericDataType, Values extends FieldValues>({ badgeColor, bordered, className, color, controllerProps, debounceTime, disabled, disableSingleSelectBadge, dropdownInputClassName, formValueMode, getBadgeText, getItemText, inputClassName, inputPlaceholder, isRequired, labelText, menuClassName, menuSize, multi, name, onDebouncedChange, onKeyDown, options: optionsArray, placeholder, showDirty, size, }: TypeaheadSelectProps<DataItem, Values>) => import("react/jsx-runtime").JSX.Element;
28
+ export declare const TypeaheadSelect: <DataItem extends GenericDataType, Values extends FieldValues>({ badgeColor, bordered, className, color, controllerProps, debounceTime, disabled, disableSingleSelectBadge, dropdownInputClassName, formValueMode, getBadgeClassName, getBadgeText, getItemText, inputClassName, inputPlaceholder, isRequired, labelText, menuClassName, menuSize, multi, name, onDebouncedChange, onKeyDown, options: optionsArray, placeholder, showDirty, size, }: TypeaheadSelectProps<DataItem, Values>) => import("react/jsx-runtime").JSX.Element;