@aws/mynah-ui 4.36.0 → 4.36.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.
Files changed (13) hide show
  1. package/README.md +1 -1
  2. package/dist/components/form-items/select.d.ts +7 -0
  3. package/dist/main.js +1 -1
  4. package/dist/main.js.map +1 -1
  5. package/dist/static.d.ts +4 -0
  6. package/docs/DATAMODEL.md +6 -0
  7. package/package.json +2 -1
  8. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Context-selector-should-close-the-context-selector-by-pressing-space/Open-MynahUI-Context-selector-should-close-the-context-selector-by-pressing-space-1.png +0 -0
  9. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-command-selector-should-close-the-quick-command-selector-by-pressing-space/Open-MynahUI-Quick-command-selector-should-close-the-quick-command-selector-by-pressing-space-1.png +0 -0
  10. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Context-selector-should-close-the-context-selector-by-pressing-space/Open-MynahUI-Context-selector-should-close-the-context-selector-by-pressing-space-1.png +0 -0
  11. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-command-selector-should-close-the-quick-command-selector-by-pressing-space/Open-MynahUI-Quick-command-selector-should-close-the-quick-command-selector-by-pressing-space-1.png +0 -0
  12. package/ui-tests/__snapshots__/chromium/Open-MynahUI-Context-selector-should-select-context-selector-item-with-space/Open-MynahUI-Context-selector-should-select-context-selector-item-with-space-1.png +0 -0
  13. package/ui-tests/__snapshots__/webkit/Open-MynahUI-Context-selector-should-select-context-selector-item-with-space/Open-MynahUI-Context-selector-should-select-context-selector-item-with-space-1.png +0 -0
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Publish](https://github.com/aws/mynah-ui/actions/workflows/publish.yml/badge.svg?branch=main)](https://github.com/aws/mynah-ui/actions/workflows/publish.yml)
8
8
  [![Deploy](https://github.com/aws/mynah-ui/actions/workflows/deploy.yml/badge.svg?branch=main)](https://github.com/aws/mynah-ui/actions/workflows/deploy.yml)
9
9
 
10
- **Mynah UI** is a **_data and event_** driven chat interface designed for browsers and webviews on IDEs or any platform supporting the latest web technologies. It is utilized by Amazon Q for [VSCode](https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.aws-toolkit-vscode) and [JetBrains](https://plugins.jetbrains.com/plugin/11349-aws-toolkit--amazon-q-codewhisperer-and-more), and is included with the AWS Toolkit extension.
10
+ **Mynah UI** is a **_data and event_** driven chat interface designed for browsers and webviews on IDEs or any platform supporting the latest web technologies. It is utilized by Amazon Q for [VSCode](https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.aws-toolkit-vscode), [JetBrains](https://plugins.jetbrains.com/plugin/11349-aws-toolkit--amazon-q-codewhisperer-and-more), [Visual studio](https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.AWSToolkitforVisualStudio2022&ssr=false#overview) and [Eclipse](https://marketplace.eclipse.org/content/amazon-q).
11
11
 
12
12
  Mynah UI operates independently of any framework or UI library, enabling seamless integration into any web-based project. This design choice ensures high configurability for theming, supporting various use cases. It functions as a standalone solution, requiring only a designated rendering location within the DOMTree.
13
13
 
@@ -7,6 +7,7 @@ import { MynahIcons, MynahIconsType } from '../icon';
7
7
  interface SelectOption {
8
8
  value: string;
9
9
  label: string;
10
+ description?: string;
10
11
  }
11
12
  export interface SelectProps {
12
13
  classNames?: string[];
@@ -24,6 +25,7 @@ export interface SelectProps {
24
25
  onChange?: (value: string) => void;
25
26
  wrapperTestId?: string;
26
27
  optionTestId?: string;
28
+ tooltip?: string;
27
29
  }
28
30
  export declare abstract class SelectAbstract {
29
31
  render: ExtendedHTMLElement;
@@ -35,11 +37,16 @@ export declare class SelectInternal {
35
37
  private readonly props;
36
38
  private readonly selectElement;
37
39
  private readonly autoWidthSizer;
40
+ private readonly selectContainer;
41
+ private tooltipOverlay;
42
+ private tooltipTimeout;
38
43
  render: ExtendedHTMLElement;
39
44
  constructor(props: SelectProps);
40
45
  setValue: (value: string) => void;
41
46
  getValue: () => string;
42
47
  setEnabled: (enabled: boolean) => void;
48
+ private readonly showTooltip;
49
+ private readonly hideTooltip;
43
50
  }
44
51
  export declare class Select extends SelectAbstract {
45
52
  render: ExtendedHTMLElement;