gantri-components 2.199.0 → 2.201.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.
@@ -2,6 +2,7 @@ import { JSX } from 'react';
2
2
  import { DropdownMenuProps } from '../dropdown-menu/dropdown-menu.types';
3
3
  import { ButtonVariant } from '../button/button.types';
4
4
  import { TooltipProps } from '../tooltip/tooltip.types';
5
+ import { OverlayPosition } from '../overlay/overlay.types';
5
6
  export interface ButtonMenuProps<T extends Record<string, unknown>> extends DropdownMenuProps<T> {
6
7
  active?: boolean;
7
8
  buttonClassName?: string;
@@ -14,7 +15,12 @@ export interface ButtonMenuProps<T extends Record<string, unknown>> extends Drop
14
15
  label?: string;
15
16
  labelTx?: string;
16
17
  labelTxValues?: Record<string, unknown>;
18
+ offsetBottom?: string;
19
+ offsetLeft?: string;
20
+ offsetRight?: string;
21
+ offsetTop?: string;
17
22
  onClose?: () => void;
18
23
  onOpen?: () => void;
24
+ position?: OverlayPosition;
19
25
  triggerEvent?: 'click' | 'hover' | 'manual';
20
26
  }
@@ -1,11 +1,13 @@
1
1
  import { Property } from 'csstype';
2
- import { ReactElement, ReactNode } from 'react';
2
+ import { CSSProperties, ReactElement, ReactNode } from 'react';
3
3
  import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
4
4
  import { StackProps } from '../stack/stack.types';
5
5
  export interface ModalProps {
6
+ bodyStyle?: CSSProperties;
6
7
  closeable?: boolean;
7
8
  /** Allows passing/overriding props on the inner-most content wrapper. */
8
9
  contentStackProps?: StackProps;
10
+ contentStyle?: CSSProperties;
9
11
  dataAttributes?: Record<string, unknown>;
10
12
  detailsPanel?: ReactElement;
11
13
  /** Applies to desktop only. */
@@ -13,6 +15,7 @@ export interface ModalProps {
13
15
  footer?: ReactElement;
14
16
  header?: ReactNode;
15
17
  headerBorderBottom?: Property.Border;
18
+ headerStyle?: CSSProperties;
16
19
  height?: ResolutionAwareProp<Property.Height>;
17
20
  hideBackdrop?: boolean;
18
21
  isFullScreen?: boolean;