gantri-components 2.236.0 → 2.238.0

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/CLAUDE.md CHANGED
@@ -232,7 +232,7 @@ const StyledBox = styled.div<StyledBoxProps>`
232
232
  | Figma font size | Variant | Font |
233
233
  |---|---|---|
234
234
  | 130px | `mh1` | Roboto Mono |
235
- | 50px | `mh2` | Roboto Mono |
235
+ | 36px | `mh2` | Roboto Mono |
236
236
  | 25px | `mp1` | Roboto Mono |
237
237
  | 16px | `mp2` | Roboto Mono |
238
238
  | 12px (mono) | `mp3` / `mh3`-`mh6` | Roboto Mono |
@@ -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
  }