@ansible/ansible-ui-framework 2.4.2572 → 2.4.2574

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,11 +55,13 @@ export interface IPageActionButtonMultiple<T extends object> extends IPageAction
55
55
  }
56
56
  export interface IPageActionLink extends IPageActionNoneCommon {
57
57
  type: PageActionType.Link;
58
+ selection: PageActionSelection.None;
58
59
  href: string;
59
60
  variant?: ButtonVariant;
60
61
  }
61
62
  export interface IPageActionLinkSingle<T extends object> extends IPageActionSingleCommon<T> {
62
63
  type: PageActionType.Link;
64
+ selection: PageActionSelection.Single;
63
65
  href: (item: T) => string;
64
66
  variant?: ButtonVariant;
65
67
  }
@@ -1,5 +1,4 @@
1
- import { ButtonVariant } from '@patternfly/react-core';
2
- import { DropdownPosition } from '@patternfly/react-core/deprecated';
1
+ import { ButtonVariant, DropdownPopperProps } from '@patternfly/react-core';
3
2
  import { ComponentClass, FunctionComponent } from 'react';
4
3
  import { WindowSize } from '../components/useBreakPoint';
5
4
  import { IPageAction } from './PageAction';
@@ -9,7 +8,7 @@ interface PageActionProps<T extends object> {
9
8
  selectedItems?: T[];
10
9
  wrapper?: ComponentClass | FunctionComponent;
11
10
  collapse?: WindowSize | 'always' | 'never';
12
- position?: DropdownPosition;
11
+ position?: DropdownPopperProps['position'];
13
12
  iconOnly?: boolean;
14
13
  onOpen?: (open: boolean) => void;
15
14
  variant?: ButtonVariant;