@7shifts/sous-chef 3.81.1 → 3.82.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.
- package/dist/controls/ToolbarSelect/ToolbarSelect.d.ts +3 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +385 -374
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +404 -390
- package/dist/index.modern.js.map +1 -1
- package/dist/lists/Accordion/Accordion.d.ts +3 -2
- package/dist/lists/DataTable/DataTable.d.ts +3 -3
- package/package.json +2 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Props } from '../../forms/SelectField/SelectField';
|
|
3
|
-
|
|
3
|
+
import { DataProps } from '../../foundation/types';
|
|
4
|
+
type ToolbarSelectProps<T> = Omit<Props<T>, 'asToolbarFilter' | 'caption' | 'error' | 'id' | 'isClearable' | 'label' | 'noOptionMessage' | 'CustomOption' | 'SelectedOptionPrefix' | 'isSearchable'> & DataProps;
|
|
4
5
|
/** Toolbar component to make a possible selection from predefined options. */
|
|
5
|
-
declare const ToolbarSelect: <T extends unknown>({ name, value, options, onChange, onBlur, placeholder, defaultValue, menuShouldScrollIntoView, disabled, prefix, testId, creatableButton, onCreate }: ToolbarSelectProps<T>) => React.JSX.Element;
|
|
6
|
+
declare const ToolbarSelect: <T extends unknown>({ name, value, options, onChange, onBlur, placeholder, defaultValue, menuShouldScrollIntoView, disabled, prefix, testId, creatableButton, onCreate, ...rest }: ToolbarSelectProps<T>) => React.JSX.Element;
|
|
6
7
|
export default ToolbarSelect;
|
package/dist/index.css
CHANGED