@7shifts/sous-chef 3.63.1 → 3.64.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.
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { SelectOption, SelectOptions } from './types';
3
+ import { DataProps } from '../../foundation/types';
3
4
  type NoOptionsMessageFunction = (input: {
4
5
  inputValue: string;
5
6
  }) => string | null;
@@ -38,7 +39,7 @@ export type Props<T> = {
38
39
  /** This is to allow disable the seach functionality. Use it just in some edge-cases, for example in touch devices when the user clicks on the field it opens a virtual keyboard to search, sometimes that virtual keyboard taks much space then passing `isSearchable={false}` prevents opening it. */
39
40
  isSearchable?: boolean;
40
41
  autoFocus?: boolean;
41
- };
42
+ } & DataProps;
42
43
  /** Component to make possible choose from a predefined options. */
43
44
  declare const SelectField: <T extends unknown>(props: Props<T>) => React.JSX.Element;
44
45
  export default SelectField;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { Props } from './SelectField';
3
- export declare const useSelectField: <T extends unknown>({ asToolbarFilter, caption, disabled, error, id, isClearable, label, menuShouldScrollIntoView, name, noOptionsMessage, options, onBlur, onChange, placeholder, value, defaultValue, CustomOption: UserCustomOption, SelectedOptionPrefix, testId, creatableButton, onCreate, isSearchable, autoFocus }: Props<T>) => {
3
+ export declare const useSelectField: <T extends unknown>({ asToolbarFilter, caption, disabled, error, id, isClearable, label, menuShouldScrollIntoView, name, noOptionsMessage, options, onBlur, onChange, placeholder, value, defaultValue, CustomOption: UserCustomOption, SelectedOptionPrefix, testId, creatableButton, onCreate, isSearchable, autoFocus, ...rest }: Props<T>) => {
4
4
  selectProps: {
5
5
  [x: string]: any;
6
6
  [x: number]: any;