@jasperoosthoek/react-toolbox 0.7.1 → 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 +5 -1
- package/dist/components/forms/FormFields.d.ts +2 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/components/forms/FormFields.tsx +11 -1
- package/src/components/forms/FormModal.tsx +4 -0
- package/src/components/tables/DataTable.tsx +2 -3
- package/src/utils/hooks.ts +7 -7
package/change-log.md
CHANGED
|
@@ -289,4 +289,8 @@
|
|
|
289
289
|
- Fix brackets in `filterColumn` type
|
|
290
290
|
|
|
291
291
|
##### Version 0.7.1
|
|
292
|
-
- Make `filterColumn` type less strict
|
|
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;
|