@aws/mynah-ui 4.36.1 → 4.36.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.
@@ -48,6 +48,7 @@ export declare class ChatItemCard {
48
48
  private readonly generateCard;
49
49
  private readonly setMaxHeightClass;
50
50
  private readonly getCardClasses;
51
+ private readonly getFilePillsCustomRenderer;
51
52
  private readonly updateCardContent;
52
53
  private readonly getChatAvatar;
53
54
  private readonly canShowAvatar;
@@ -0,0 +1,45 @@
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 FormItemPillBoxProps {
7
+ id: string;
8
+ value?: string;
9
+ classNames?: string[];
10
+ attributes?: Record<string, string>;
11
+ label?: HTMLElement | ExtendedHTMLElement | string;
12
+ description?: ExtendedHTMLElement;
13
+ placeholder?: string;
14
+ wrapperTestId?: string;
15
+ onChange?: (value: string) => void;
16
+ disabled?: boolean;
17
+ }
18
+ export declare abstract class FormItemPillBoxAbstract {
19
+ render: ExtendedHTMLElement;
20
+ setValue: (value: string) => void;
21
+ getValue: () => string;
22
+ setEnabled: (enabled: boolean) => void;
23
+ }
24
+ export declare class FormItemPillBoxInternal extends FormItemPillBoxAbstract {
25
+ private readonly props;
26
+ private readonly pillsContainer;
27
+ private readonly input;
28
+ private readonly wrapper;
29
+ private pills;
30
+ render: ExtendedHTMLElement;
31
+ constructor(props: FormItemPillBoxProps);
32
+ private addPill;
33
+ private notifyChange;
34
+ setValue: (value: string) => void;
35
+ getValue: () => string;
36
+ setEnabled: (enabled: boolean) => void;
37
+ }
38
+ export declare class FormItemPillBox extends FormItemPillBoxAbstract {
39
+ render: ExtendedHTMLElement;
40
+ private readonly instance;
41
+ constructor(props: FormItemPillBoxProps);
42
+ setValue: (value: string) => void;
43
+ getValue: () => string;
44
+ setEnabled: (enabled: boolean) => void;
45
+ }