@bluemarble/bm-components 0.0.20 → 0.0.21

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.
@@ -14,6 +14,11 @@ interface AutocompleteWithFormikProps<T> extends MuiAutocomplete<T> {
14
14
  name: string;
15
15
  withFormik?: true;
16
16
  label?: string;
17
+ option?: {
18
+ label?: keyof T;
19
+ value?: keyof T;
20
+ key?: string;
21
+ };
17
22
  renderInput?: (params: AutocompleteRenderInputParams) => ReactNode;
18
23
  getOptionLabel: (option: T) => string;
19
24
  getOptionValue: (option: T) => string | number;
package/dist/index.d.ts CHANGED
@@ -114,6 +114,11 @@ interface AutocompleteWithFormikProps<T> extends MuiAutocomplete<T> {
114
114
  name: string;
115
115
  withFormik?: true;
116
116
  label?: string;
117
+ option?: {
118
+ label?: keyof T;
119
+ value?: keyof T;
120
+ key?: string;
121
+ };
117
122
  renderInput?: (params: AutocompleteRenderInputParams) => ReactNode;
118
123
  getOptionLabel: (option: T) => string;
119
124
  getOptionValue: (option: T) => string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluemarble/bm-components",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "BM components",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",