@jasperoosthoek/react-toolbox 0.7.0 → 0.7.2

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/change-log.md CHANGED
@@ -286,4 +286,11 @@
286
286
  - `filterColumn` in `DataTable` can also be an array of strings or modifiers
287
287
 
288
288
  ##### Version 0.7.0
289
- - Fix brackets in `filterColumn` type
289
+ - Fix brackets in `filterColumn` type
290
+
291
+ ##### Version 0.7.1
292
+ - Make `filterColumn` type less strict
293
+
294
+ ##### Version 0.7.2
295
+ - Fix error when supplying `FormModal` with empty `FormFields`
296
+ - Fix placing `selected` on `option` html tag that breaks Reacts best practices
@@ -33,6 +33,7 @@ export interface FormInputProps extends Omit<FormControlProps, 'onChange'>, Form
33
33
  }
34
34
  export declare const FormInput: ({ label, value, onEnter, placeholder, onChange, controlId, state, setState, initialState, initialValue, keyName, pristine, id, ...formProps }: FormInputProps) => React.JSX.Element;
35
35
  export declare const FormTextArea: ({ as, rows, ...restProps }: FormInputProps) => React.JSX.Element;
36
+ export type FormTextAreaProps = FormInputProps;
36
37
  export declare const FormDate: (props: FormInputProps) => React.JSX.Element;
37
38
  export interface FormDateTimeProps extends Omit<FormInputProps, 'onChange' | 'value'> {
38
39
  value: string | Moment;
@@ -81,4 +82,4 @@ export interface FormDropdownProps<T> extends Omit<FormInputProps, 'disabled' |
81
82
  disabled?: boolean | ((props: DisabledProps) => boolean);
82
83
  variant?: Variant;
83
84
  }
84
- export declare const FormDropdown: <T>({ list: listBase, idKey, nameKey, value, onChange, label, controlId, isInvalid, state, setState, disabled, initialState, initialValue, variant, pristine, keyName, ...restProps }: FormDropdownProps<T>) => React.JSX.Element;
85
+ export declare const FormDropdown: <T>({ list: listBase, idKey, nameKey, value, onChange, label, controlId, isInvalid, state, setState, disabled, initialState, initialValue, variant, pristine, keyName, onEnter, ...restProps }: FormDropdownProps<T>) => React.JSX.Element;
@@ -37,7 +37,7 @@ export type DataTableProps<D extends any[]> = {
37
37
  columns: DataTableColumn<D[number]>[];
38
38
  rowsPerPage?: number | null;
39
39
  rowsPerPageOptions?: RowsPerPageOptions;
40
- filterColumn?: (keyof D) | ((row: D[number]) => string) | ((keyof D) | ((row: D[number]) => string))[];
40
+ filterColumn?: string | ((row: D[number]) => string) | (string | ((row: D[number]) => string))[];
41
41
  orderByDefault?: ((row: D[number]) => number) | string | null;
42
42
  orderByDefaultDirection?: OrderByDirection;
43
43
  onMove?: OnMove<D[number]>;