@aws/mynah-ui 4.27.0-beta.2 → 4.27.0-beta.3

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.
@@ -5,13 +5,14 @@ export interface DetailedListItemWrapperProps {
5
5
  onSelect?: (detailedListItem: DetailedListItem) => void;
6
6
  onActionClick?: (action: ChatItemButton) => void;
7
7
  selectable?: boolean;
8
+ textDirection?: 'row' | 'column';
8
9
  }
9
10
  export declare class DetailedListItemWrapper {
10
11
  render: ExtendedHTMLElement;
11
12
  private readonly props;
12
13
  private actionMenuOverlay;
13
14
  constructor(props: DetailedListItemWrapperProps);
14
- readonly setFocus: (isFocused: boolean) => void;
15
+ readonly setFocus: (isFocused: boolean, scrollIntoView: boolean) => void;
15
16
  readonly getItem: () => DetailedListItem;
16
17
  private readonly showActionMenuOverlay;
17
18
  private getActionButton;
@@ -3,9 +3,9 @@ import { ChatItemButton, DetailedList, DetailedListItem } from '../../static';
3
3
  export interface DetailedListWrapperProps {
4
4
  detailedList: DetailedList;
5
5
  onFilterValueChange?: (filterValues: Record<string, any>, isValid: boolean) => void;
6
- onDetailedListItemGroupActionClick?: (action: ChatItemButton) => void;
7
- onDetailedListItemSelect?: (detailedListItem: DetailedListItem) => void;
8
- onDetailedListItemActionClick?: (action: ChatItemButton) => void;
6
+ onGroupActionClick?: (action: ChatItemButton) => void;
7
+ onItemSelect?: (detailedListItem: DetailedListItem) => void;
8
+ onItemActionClick?: (action: ChatItemButton) => void;
9
9
  }
10
10
  export declare class DetailedListWrapper {
11
11
  render: ExtendedHTMLElement;
@@ -19,7 +19,7 @@ export declare class DetailedListWrapper {
19
19
  private readonly getHeader;
20
20
  private readonly getFilters;
21
21
  private readonly getDetailedListItemGroups;
22
- readonly changeTarget: (direction: 'up' | 'down', snapOnLastAndFirst?: boolean) => void;
22
+ readonly changeTarget: (direction: 'up' | 'down', snapOnLastAndFirst?: boolean, scrollIntoView?: boolean) => void;
23
23
  readonly getTargetElement: () => DetailedListItem | null;
24
24
  readonly update: (detailedList: DetailedList) => void;
25
25
  }
package/dist/main.d.ts CHANGED
@@ -201,6 +201,7 @@ export declare class MynahUI {
201
201
  openDetailedList: (data: DetailedListSheetProps) => {
202
202
  update: (data: DetailedList) => void;
203
203
  close: () => void;
204
+ changeTarget: (direction: 'up' | 'down', snapOnLastAndFirst?: boolean) => void;
204
205
  };
205
206
  destroy: () => void;
206
207
  }