gantri-components 2.237.0 → 2.238.1
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.
|
@@ -4,6 +4,7 @@ export type DynamicListItem<T extends Record<any, any>> = T & {
|
|
|
4
4
|
/** @deprecated use `disabledTooltipProps` to provide any overrides. */
|
|
5
5
|
disabledTooltipDescription?: TooltipProps['description'];
|
|
6
6
|
disabledTooltipProps?: TooltipProps;
|
|
7
|
+
isAddTag?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export type DynamicListItemDefaultData = {
|
|
9
10
|
label: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, FocusEvent, ReactElement } from 'react';
|
|
1
|
+
import { CSSProperties, FocusEvent, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
3
|
import { DropdownMenuProps } from '../dropdown-menu/dropdown-menu.types';
|
|
4
4
|
import { DynamicListItem } from '../components.types';
|
|
@@ -79,4 +79,6 @@ export interface SearchFieldIsCreatableDef {
|
|
|
79
79
|
isValid?: (query: string) => boolean;
|
|
80
80
|
/** Override label text that appears next to the creatable item. */
|
|
81
81
|
label?: string;
|
|
82
|
+
/** Override the inner content of the creatable option. The outer tag styling is preserved. */
|
|
83
|
+
renderOption?: (searchValue: string) => ReactNode;
|
|
82
84
|
}
|