@onsvisual/svelte-components 1.1.4 → 1.1.5
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.
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
* @type {string}
|
|
5
5
|
*/
|
|
6
6
|
export let phase = "Beta";
|
|
7
|
+
/**
|
|
8
|
+
* Message to describe the phase
|
|
9
|
+
* @type {string}
|
|
10
|
+
*/
|
|
11
|
+
export let description =
|
|
12
|
+
phase === "Prototype" ? "This is a prototype." : "This is a new service.";
|
|
7
13
|
/**
|
|
8
14
|
* URL of feedback form (relative or absolute)
|
|
9
15
|
* @type {string}
|
|
@@ -26,7 +32,7 @@
|
|
|
26
32
|
</div>
|
|
27
33
|
<div class="ons-grid__col ons-col-auto ons-u-flex-shrink">
|
|
28
34
|
<p class="ons-phase-banner__desc ons-u-fs-s ons-u-mb-no">
|
|
29
|
-
|
|
35
|
+
{description}
|
|
30
36
|
{#if href}
|
|
31
37
|
To help us improve it, <a
|
|
32
38
|
{href}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export default class PhaseBanner extends SvelteComponentTyped<{
|
|
5
5
|
cls?: string | null | undefined;
|
|
6
6
|
href?: string | undefined;
|
|
7
|
+
description?: string | undefined;
|
|
7
8
|
phase?: string | undefined;
|
|
8
9
|
}, {
|
|
9
10
|
[evt: string]: CustomEvent<any>;
|
|
@@ -17,6 +18,7 @@ declare const __propDef: {
|
|
|
17
18
|
props: {
|
|
18
19
|
cls?: string | null | undefined;
|
|
19
20
|
href?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
20
22
|
phase?: string | undefined;
|
|
21
23
|
};
|
|
22
24
|
events: {
|