@7shifts/sous-chef 3.57.2-beta1 → 3.57.2-beta2
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.
|
@@ -22,7 +22,7 @@ export type Props<T> = {
|
|
|
22
22
|
onChange?: (e: SelectOption<T>) => void;
|
|
23
23
|
onBlur?: (e: SelectOption<T>) => void;
|
|
24
24
|
options: SelectOptions<T>;
|
|
25
|
-
placeholder?:
|
|
25
|
+
placeholder?: React.ReactNode;
|
|
26
26
|
/** Use a prefix for things like currency symbols (“$”, “¥”, “£”) or icons. */
|
|
27
27
|
prefix?: React.ReactNode;
|
|
28
28
|
/** Use a suffix for things like (“%”, “Jr.”, “.00”) or icons. */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { ControlProps } from 'react-select';
|
|
3
2
|
export type GroupOption<T> = {
|
|
4
3
|
label: string;
|
|
@@ -7,7 +6,7 @@ export type GroupOption<T> = {
|
|
|
7
6
|
export type SelectOption<T> = {
|
|
8
7
|
isDisabled?: boolean;
|
|
9
8
|
value: T;
|
|
10
|
-
label:
|
|
9
|
+
label: string;
|
|
11
10
|
};
|
|
12
11
|
export type SelectOptions<T> = Array<SelectOption<T> | GroupOption<T>>;
|
|
13
12
|
export type CustomOptionProps<T> = {
|