@ember-eui/core 5.15.1 → 5.16.0
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,20 +1,17 @@
|
|
|
1
|
-
<div
|
|
1
|
+
<div
|
|
2
2
|
class={{class-names
|
|
3
3
|
componentName="EuiToast"
|
|
4
4
|
color=(arg-or-default @color "none")
|
|
5
|
-
}}
|
|
5
|
+
}}
|
|
6
6
|
...attributes
|
|
7
7
|
>
|
|
8
|
-
{{
|
|
8
|
+
{{! TODO: Translate strings when EuiI18n is available }}
|
|
9
9
|
<p {{screen-reader-only}}>
|
|
10
10
|
A new notification appears
|
|
11
11
|
</p>
|
|
12
12
|
|
|
13
13
|
<div
|
|
14
|
-
class={{class-names
|
|
15
|
-
"euiToastHeader"
|
|
16
|
-
(if @body "euiToastHeader--withBody")
|
|
17
|
-
}}
|
|
14
|
+
class={{class-names "euiToastHeader" (if @body "euiToastHeader--withBody")}}
|
|
18
15
|
aria-label="Notification"
|
|
19
16
|
data-test-subj="euiToastHeader"
|
|
20
17
|
>
|
|
@@ -45,8 +42,12 @@
|
|
|
45
42
|
{{/if}}
|
|
46
43
|
|
|
47
44
|
{{#if @body}}
|
|
48
|
-
|
|
49
|
-
{{@body}}
|
|
50
|
-
|
|
45
|
+
{{#if @useMarkdownFormat}}
|
|
46
|
+
<EuiMarkdownFormat @value={{@body}} />
|
|
47
|
+
{{else}}
|
|
48
|
+
<EuiText @size="s" class="euiToastBody">
|
|
49
|
+
{{@body}}
|
|
50
|
+
</EuiText>
|
|
51
|
+
{{/if}}
|
|
51
52
|
{{/if}}
|
|
52
53
|
</div>
|
|
@@ -28,6 +28,23 @@ export default class DemoToastListComponent extends Component {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
toasts = [
|
|
31
|
+
{
|
|
32
|
+
title: 'You can use markdown for body too!',
|
|
33
|
+
useMarkdownFormat: true,
|
|
34
|
+
body: `
|
|
35
|
+
##### This tooltip is using markdown!
|
|
36
|
+
|
|
37
|
+
You can pass \`useMarkdownFormat: true\`
|
|
38
|
+
|
|
39
|
+
[click here](https://www.google.com)
|
|
40
|
+
|
|
41
|
+
\`\`\`typescript
|
|
42
|
+
class Hello {
|
|
43
|
+
@tracked count = 1;
|
|
44
|
+
}
|
|
45
|
+
\`\`\`
|
|
46
|
+
`
|
|
47
|
+
},
|
|
31
48
|
{
|
|
32
49
|
title: `Long toast`,
|
|
33
50
|
body: 'This toast overrides the default toastLifeTimeMs value and will be around for 15 seconds.',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.16.0",
|
|
4
4
|
"description": "Ember Components for Elastic UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -186,5 +186,5 @@
|
|
|
186
186
|
"volta": {
|
|
187
187
|
"extends": "../../package.json"
|
|
188
188
|
},
|
|
189
|
-
"gitHead": "
|
|
189
|
+
"gitHead": "935bd04cef925daf9e98960727a40e96ea895d3f"
|
|
190
190
|
}
|