gantri-components 2.119.0-beta.3 → 2.119.0-beta.4

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,9 +1,12 @@
1
1
  import { DropdownMenuProps } from '../dropdown-menu/dropdown-menu.types';
2
2
  import { ButtonVariant } from '../button/button.types';
3
+ import { TooltipProps } from '../tooltip/tooltip.types';
3
4
  export interface ButtonMenuProps<T extends Record<string, unknown>> extends DropdownMenuProps<T> {
4
5
  active?: boolean;
5
6
  buttonClassName?: string;
6
7
  buttonVariant?: ButtonVariant;
8
+ /** Applies to any disabled tooltips within the dropdown menu. */
9
+ disabledTooltipProps?: Partial<TooltipProps>;
7
10
  label?: string;
8
11
  labelTx?: string;
9
12
  labelTxValues?: Record<string, unknown>;
@@ -5,11 +5,14 @@ import { ErrorMessageType, LabelPosition, TextFieldSize, TextFieldVariant } from
5
5
  import { Maybe } from '../../global';
6
6
  import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
7
7
  import { TextVariant } from '../typography';
8
+ import { TooltipProps } from '../tooltip/tooltip.types';
8
9
  export type DropdownVariant = 'inline' | 'external';
9
10
  export interface DropdownProps<T extends Record<string, unknown>> extends Omit<DropdownMenuProps<T>, 'items'> {
10
11
  borderless?: boolean;
11
12
  className?: string;
12
13
  disabled?: boolean;
14
+ /** Applies to any disabled tooltips within the dropdown menu. */
15
+ disabledTooltipProps?: Partial<TooltipProps>;
13
16
  dropdownPopupWidth?: Property.Width<string | number>;
14
17
  dropdownVariant?: DropdownVariant;
15
18
  errorMessage?: ErrorMessageType;
@@ -7,6 +7,8 @@ export interface DropdownMenuProps<T extends DropdownMenuItem<Record<string, unk
7
7
  autoSelectFirst?: boolean;
8
8
  borderColor?: Color;
9
9
  className?: string;
10
+ /** Applies to any disabled tooltips within the dropdown menu. */
11
+ disabledTooltipProps?: Partial<TooltipProps>;
10
12
  header?: ReactNode;
11
13
  idProperty?: keyof DropdownMenuItem<T>;
12
14
  /** Can optionally include `disabled: true` to any index to disable that item. */
@@ -34,7 +36,6 @@ export interface DropdownMenuProps<T extends DropdownMenuItem<Record<string, unk
34
36
  }
35
37
  export type DropdownMenuItem<T extends Record<string, unknown>> = T & {
36
38
  disabled?: boolean;
37
- disabledTooltipProps?: Partial<TooltipProps>;
38
39
  };
39
40
  export type DefaultMenuItemKeys = {
40
41
  label: string;
@@ -6,11 +6,14 @@ import { BlurChangeEvent, DropdownChangeEvent } from '../dropdown';
6
6
  import { Maybe } from '../../global';
7
7
  import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
8
8
  import { TextVariant } from '../typography';
9
+ import { TooltipProps } from '../tooltip/tooltip.types';
9
10
  export interface SearchFieldProps<T extends DropdownMenuItem<Record<string, unknown>>> extends Omit<DropdownMenuProps<T>, 'items'> {
10
11
  borderless?: boolean;
11
12
  className?: string;
12
13
  clearButtonText?: string;
13
14
  disabled?: boolean;
15
+ /** Applies to any disabled tooltips within the dropdown menu. */
16
+ disabledTooltipProps?: Partial<TooltipProps>;
14
17
  dropdownPopupWidth?: Property.Width<string | number>;
15
18
  enableSelectedItemsList?: boolean;
16
19
  errorMessage?: ErrorMessageType;