@aws/mynah-ui 4.29.0 → 4.30.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.
@@ -1,7 +1,7 @@
1
1
  import { ChatItemButton, DetailedList, DetailedListItem } from '../../static';
2
2
  import { DetailedListWrapper } from './detailed-list';
3
3
  export interface DetailedListSheetProps {
4
- tabId: string;
4
+ tabId?: string;
5
5
  detailedList: DetailedList;
6
6
  events?: {
7
7
  onFilterValueChange?: (filterValues: Record<string, any>, isValid: boolean) => void;
@@ -0,0 +1,44 @@
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
+ import { MynahIcons, MynahIconsType } from '../icon';
7
+ import '../../styles/components/_form-input.scss';
8
+ export interface CheckboxProps {
9
+ type?: 'checkbox' | 'switch';
10
+ classNames?: string[];
11
+ attributes?: Record<string, string>;
12
+ title?: HTMLElement | ExtendedHTMLElement | string;
13
+ label?: string;
14
+ description?: ExtendedHTMLElement;
15
+ tooltip?: ExtendedHTMLElement;
16
+ value?: 'true' | 'false';
17
+ optional?: boolean;
18
+ icon?: MynahIcons | MynahIconsType;
19
+ onChange?: (value: 'true' | 'false') => void;
20
+ wrapperTestId?: string;
21
+ optionTestId?: string;
22
+ }
23
+ export declare abstract class CheckboxAbstract {
24
+ render: ExtendedHTMLElement;
25
+ setValue: (value: 'true' | 'false') => void;
26
+ getValue: () => 'true' | 'false';
27
+ setEnabled: (enabled: boolean) => void;
28
+ }
29
+ export declare class CheckboxInternal extends CheckboxAbstract {
30
+ private readonly checkboxWrapper;
31
+ private readonly checkboxItem;
32
+ render: ExtendedHTMLElement;
33
+ constructor(props: CheckboxProps);
34
+ setValue: (value: 'true' | 'false') => void;
35
+ getValue: () => 'true' | 'false';
36
+ setEnabled: (enabled: boolean) => void;
37
+ }
38
+ export declare class Checkbox extends CheckboxAbstract {
39
+ render: ExtendedHTMLElement;
40
+ constructor(props: CheckboxProps);
41
+ setValue: (value: 'true' | 'false') => void;
42
+ getValue: () => 'true' | 'false';
43
+ setEnabled: (enabled: boolean) => void;
44
+ }
@@ -11,12 +11,11 @@ interface SelectOption {
11
11
  icon?: MynahIcons | MynahIconsType;
12
12
  }
13
13
  export interface RadioGroupProps {
14
- type?: 'radio' | 'toggle';
14
+ type?: 'radiogroup' | 'toggle';
15
15
  classNames?: string[];
16
16
  attributes?: Record<string, string>;
17
17
  label?: HTMLElement | ExtendedHTMLElement | string;
18
18
  description?: ExtendedHTMLElement;
19
- tooltip?: ExtendedHTMLElement;
20
19
  value?: string;
21
20
  optional?: boolean;
22
21
  options?: SelectOption[];
@@ -65,6 +65,7 @@ export declare enum MynahIcons {
65
65
  BUG = "bug",
66
66
  CHECK_LIST = "check-list",
67
67
  DEPLOY = "deploy",
68
+ SHELL = "shell",
68
69
  HELP = "help",
69
70
  MESSAGE = "message",
70
71
  TRASH = "trash",
@@ -8,7 +8,10 @@ export interface TabBarButtonsWrapperProps {
8
8
  }
9
9
  export declare class TabBarButtonsWrapper {
10
10
  render: ExtendedHTMLElement;
11
+ private selectedTabId;
12
+ private tabBarButtonsSubscription;
11
13
  private readonly props;
12
14
  constructor(props?: TabBarButtonsWrapperProps);
15
+ private readonly handleTabBarButtonsChange;
13
16
  private readonly getTabsBarButtonsRender;
14
17
  }
@@ -5,7 +5,6 @@
5
5
  import { DomBuilderObject, ExtendedHTMLElement } from '../main';
6
6
  import '../styles/components/_sheet.scss';
7
7
  export interface SheetProps {
8
- tabId: string;
9
8
  title?: string;
10
9
  children?: Array<ExtendedHTMLElement | HTMLElement | string | DomBuilderObject>;
11
10
  fullScreen?: boolean;