@aws/mynah-ui 4.4.3 → 4.5.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/README.md +1 -1
- package/dist/components/button.d.ts +8 -0
- package/dist/components/chat-item/chat-item-card.d.ts +1 -0
- package/dist/components/navigation-tab-bar-buttons.d.ts +14 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +15 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Please continue with one of the following guides:
|
|
|
18
18
|
### [Styling Configuration](./docs/STYLING.md)
|
|
19
19
|
|
|
20
20
|
<p align="center">
|
|
21
|
-
<img src="./docs/img/splash.gif" alt="MynahUI" style="max-width:
|
|
21
|
+
<img src="./docs/img/splash.gif" alt="MynahUI" style="max-width:1280px; width:100%;border: 1px solid #e0e0e0;">
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
## Supported browsers
|
|
@@ -3,11 +3,15 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../helper/dom';
|
|
6
|
+
import { OverlayHorizontalDirection, OverlayVerticalDirection } from './overlay';
|
|
6
7
|
export interface ButtonProps {
|
|
7
8
|
classNames?: string[];
|
|
8
9
|
attributes?: Record<string, string>;
|
|
9
10
|
icon?: HTMLElement | ExtendedHTMLElement | string;
|
|
10
11
|
label?: HTMLElement | ExtendedHTMLElement | string;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
tooltipVerticalDirection?: OverlayVerticalDirection;
|
|
14
|
+
tooltipHorizontalDirection?: OverlayHorizontalDirection;
|
|
11
15
|
children?: Array<HTMLElement | ExtendedHTMLElement | string>;
|
|
12
16
|
primary?: boolean;
|
|
13
17
|
additionalEvents?: Record<string, (event?: any) => any>;
|
|
@@ -15,7 +19,11 @@ export interface ButtonProps {
|
|
|
15
19
|
}
|
|
16
20
|
export declare class Button {
|
|
17
21
|
render: ExtendedHTMLElement;
|
|
22
|
+
private buttonTooltip;
|
|
23
|
+
private buttonTooltipTimeout;
|
|
18
24
|
constructor(props: ButtonProps);
|
|
25
|
+
private readonly showButtonTooltip;
|
|
26
|
+
readonly hideButtonTooltip: () => void;
|
|
19
27
|
updateLabel: (label: HTMLElement | ExtendedHTMLElement | string) => void;
|
|
20
28
|
setEnabled: (enabled: boolean) => void;
|
|
21
29
|
}
|
|
@@ -28,6 +28,7 @@ export declare class ChatItemCard {
|
|
|
28
28
|
private updateTimer;
|
|
29
29
|
constructor(props: ChatItemCardProps);
|
|
30
30
|
private readonly generateCard;
|
|
31
|
+
private readonly cardHasContent;
|
|
31
32
|
private readonly getCardClasses;
|
|
32
33
|
private readonly getCardContent;
|
|
33
34
|
private readonly getChatAvatar;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { ExtendedHTMLElement } from '../helper/dom';
|
|
6
|
+
export interface TabBarButtonsWrapperProps {
|
|
7
|
+
onButtonClick?: (selectedTabId: string, buttonId: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare class TabBarButtonsWrapper {
|
|
10
|
+
render: ExtendedHTMLElement;
|
|
11
|
+
private readonly props;
|
|
12
|
+
constructor(props?: TabBarButtonsWrapperProps);
|
|
13
|
+
private readonly getTabsBarButtonsRender;
|
|
14
|
+
}
|
package/dist/main.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export interface MynahUIProps {
|
|
|
44
44
|
}, eventId?: string) => void;
|
|
45
45
|
onOpenDiff?: (tabId: string, filePath: string, deleted: boolean, messageId?: string, eventId?: string) => void;
|
|
46
46
|
onFileActionClick?: (tabId: string, messageId: string, filePath: string, actionName: string, eventId?: string) => void;
|
|
47
|
+
onTabBarButtonClick?: (tabId: string, buttonId: string, eventId?: string) => void;
|
|
47
48
|
}
|
|
48
49
|
export declare class MynahUI {
|
|
49
50
|
private lastEventId;
|