@ansible/ansible-ui-framework 0.0.738 → 0.0.740

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,17 +22,17 @@ interface IPageActionCommon {
22
22
  isPinned?: boolean;
23
23
  }
24
24
  interface IPageActionNoneCommon extends IPageActionCommon {
25
- selection?: PageActionSelection.None;
25
+ selection: PageActionSelection.None;
26
26
  isHidden?: () => boolean;
27
27
  isDisabled?: string | (() => string | undefined);
28
28
  }
29
29
  interface IPageActionSingleCommon<T extends object> extends IPageActionCommon {
30
- selection?: PageActionSelection.Single;
30
+ selection: PageActionSelection.Single;
31
31
  isHidden?: (item: T) => boolean;
32
32
  isDisabled?: string | ((item: T) => string | undefined);
33
33
  }
34
34
  interface IPageActionMultipleCommon<T extends object> extends IPageActionCommon {
35
- selection?: PageActionSelection.Multiple;
35
+ selection: PageActionSelection.Multiple;
36
36
  isDisabled?: string | ((items: T[]) => string | undefined);
37
37
  }
38
38
  export interface IPageActionButton extends IPageActionNoneCommon {
@@ -78,14 +78,17 @@ export interface IPageActionSwitchSingle<T extends object> extends IPageActionSi
78
78
  export interface IPageActionDropdown<T extends object> extends IPageActionNoneCommon {
79
79
  type: PageActionType.Dropdown;
80
80
  actions: IPageAction<T>[];
81
+ variant?: ButtonVariant;
81
82
  }
82
83
  export interface IPageActionDropdownSingle<T extends object> extends IPageActionSingleCommon<T> {
83
84
  type: PageActionType.Dropdown;
84
85
  actions: IPageAction<T>[];
86
+ variant?: ButtonVariant;
85
87
  }
86
88
  export interface IPageActionDropdownMultiple<T extends object> extends IPageActionMultipleCommon<T> {
87
89
  type: PageActionType.Dropdown;
88
90
  actions: IPageAction<T>[];
91
+ variant?: ButtonVariant;
89
92
  }
90
93
  export interface IPageActionSeperator {
91
94
  type: PageActionType.Seperator;