@aws/mynah-ui 4.34.0 → 4.35.0-beta.1
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.
- package/dist/components/detailed-list/detailed-list-sheet.d.ts +1 -0
- package/dist/components/sheet.d.ts +10 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +4 -1
- package/package.json +1 -1
- package/ui-tests/dist/27f62b53b93858475a7f.ttf +0 -0
- package/ui-tests/dist/d50a80138ec4f2fb5e9f.ttf +0 -0
- package/ui-tests/dist/index.html +0 -9
- package/ui-tests/dist/main.js +0 -1366
- package/ui-tests/dist/main.js.map +0 -1
|
@@ -7,6 +7,7 @@ export interface DetailedListSheetProps {
|
|
|
7
7
|
onFilterValueChange?: (filterValues: Record<string, any>, isValid: boolean) => void;
|
|
8
8
|
onKeyPress?: (e: KeyboardEvent) => void;
|
|
9
9
|
onItemSelect?: (detailedListItem: DetailedListItem) => void;
|
|
10
|
+
onTitleActionClick?: (action: ChatItemButton) => void;
|
|
10
11
|
onActionClick?: (action: ChatItemButton) => void;
|
|
11
12
|
onClose?: () => void;
|
|
12
13
|
};
|
|
@@ -2,19 +2,28 @@
|
|
|
2
2
|
* Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
import { DomBuilderObject, ExtendedHTMLElement } from '../main';
|
|
5
|
+
import { ChatItemButton, DomBuilderObject, ExtendedHTMLElement } from '../main';
|
|
6
6
|
export interface SheetProps {
|
|
7
7
|
title?: string;
|
|
8
8
|
children?: Array<ExtendedHTMLElement | HTMLElement | string | DomBuilderObject>;
|
|
9
9
|
fullScreen?: boolean;
|
|
10
10
|
description?: string;
|
|
11
|
+
actions?: ChatItemButton[];
|
|
11
12
|
onClose: () => void;
|
|
13
|
+
onActionClick?: (action: ChatItemButton) => void;
|
|
12
14
|
}
|
|
13
15
|
export declare class Sheet {
|
|
16
|
+
private sheetTitle;
|
|
17
|
+
private sheetTitleActions;
|
|
18
|
+
private sheetDescription;
|
|
14
19
|
sheetContainer: ExtendedHTMLElement;
|
|
15
20
|
sheetWrapper: ExtendedHTMLElement;
|
|
16
21
|
onClose: () => void;
|
|
22
|
+
onActionClick: ((action: ChatItemButton) => void) | undefined;
|
|
17
23
|
constructor();
|
|
24
|
+
private readonly getTitle;
|
|
25
|
+
private readonly getTitleActions;
|
|
26
|
+
private readonly getDescription;
|
|
18
27
|
close: () => void;
|
|
19
28
|
show: () => void;
|
|
20
29
|
}
|