@konoma-development/react-components 0.2.6 → 0.2.8
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FormFieldProps } from './types.ts';
|
|
2
|
-
export default function TagList<DataType>({ classes, wrapperClasses, labelClasses, errorClasses, classesError, classesNeutral, label, error, required, values, dataTestId, addTagTitle, deleteIconName, deleteIconPath, addIconName, addIconPath, onChange, className, }: FormFieldProps<DataType>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function TagList<DataType>({ classes, wrapperClasses, labelClasses, errorClasses, classesError, classesNeutral, disabled, label, error, required, values, dataTestId, addTagTitle, deleteIconName, deleteIconPath, addIconName, addIconPath, allowDelete, allowNew, onChange, className, }: FormFieldProps<DataType>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -128,6 +128,8 @@ export interface FormFieldProps<DataType> extends Classes, Icons {
|
|
|
128
128
|
isMulti?: boolean;
|
|
129
129
|
/** [select only] Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control. */
|
|
130
130
|
menuPlacement?: 'auto' | 'top' | 'bottom';
|
|
131
|
+
allowNew?: boolean;
|
|
132
|
+
allowDelete?: boolean;
|
|
131
133
|
valueTransformer?: (value: FormValue) => FormValue;
|
|
132
134
|
/** Used to place the dropdown element of a Select */
|
|
133
135
|
menuPortalTarget?: HTMLElement;
|