@aws/mynah-ui 4.40.1 → 4.40.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.
- package/dist/components/title-description-with-icon.d.ts +15 -0
- package/dist/helper/sanitize.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +15 -0
- package/package.json +1 -1
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-3.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-parse-markdown/Open-MynahUI-should-parse-markdown-1.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-parse-markdown/Open-MynahUI-should-parse-markdown-1.png +0 -0
|
@@ -4,10 +4,25 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { DomBuilderObject, ExtendedHTMLElement } from '../helper/dom';
|
|
6
6
|
import { MynahIcons, MynahIconsType } from './icon';
|
|
7
|
+
export interface TitleDescriptionWithIconTip {
|
|
8
|
+
title?: string | ExtendedHTMLElement | HTMLElement | DomBuilderObject;
|
|
9
|
+
body?: string | ExtendedHTMLElement | HTMLElement | DomBuilderObject;
|
|
10
|
+
}
|
|
7
11
|
interface TitleDescriptionWithIconProps {
|
|
8
12
|
title?: string | ExtendedHTMLElement | HTMLElement | DomBuilderObject;
|
|
9
13
|
description?: string | ExtendedHTMLElement | HTMLElement | DomBuilderObject;
|
|
10
14
|
icon?: MynahIcons | MynahIconsType;
|
|
15
|
+
/**
|
|
16
|
+
* Optional tip card rendered between the title and the description.
|
|
17
|
+
* Useful for "Did you know?"-style introductions on welcome surfaces.
|
|
18
|
+
*/
|
|
19
|
+
tip?: TitleDescriptionWithIconTip;
|
|
20
|
+
/**
|
|
21
|
+
* When true, lays out icon, title, tip and description in a single
|
|
22
|
+
* centered column instead of the default `icon | title` two-column grid.
|
|
23
|
+
* Existing consumers get the original layout when this is not set.
|
|
24
|
+
*/
|
|
25
|
+
centered?: boolean;
|
|
11
26
|
testId?: string;
|
|
12
27
|
classNames?: string[];
|
|
13
28
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
export declare const AllowedTags: readonly ["a", "
|
|
5
|
+
export declare const AllowedTags: readonly ["a", "b", "blockquote", "br", "hr", "canvas", "code", "col", "colgroup", "data", "del", "details", "div", "em", "figcaption", "figure", "h1", "h2", "h3", "h4", "h5", "h6", "i", "input", "li", "map", "mark", "ol", "p", "pre", "q", "s", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "tfoot", "th", "thead", "tr", "u", "ul"];
|
|
6
6
|
export declare const AllowedAttributes: readonly ["accept", "accept-charset", "accesskey", "align", "allow", "allowfullscreen", "alt", "as", "async", "autocapitalize", "autoplay", "charset", "class", "cols", "colspan", "controls", "crossorigin", "data", "data-*", "datetime", "decoding", "default", "dir", "download", "headers", "hidden", "high", "href", "hreflang", "id", "ismap", "itemprop", "kind", "lang", "language", "loop", "low", "media", "muted", "optimum", "ping", "playsinline", "poster", "preload", "referrerpolicy", "rel", "reversed", "role", "rowspan", "sandbox", "scope", "shape", "size", "sizes", "slot", "span", "spellcheck", "src", "srclang", "srcset", "start", "style", "target", "title", "translate", "usemap", "wrap", "aspect-ratio"];
|
|
7
7
|
export type AllowedTagsInCustomRenderer = (typeof AllowedTags)[number];
|
|
8
8
|
export type AllowedAttributesInCustomRenderer = (typeof AllowedAttributes)[number];
|