@fluid-topics/ft-notice 1.3.9 → 1.3.11
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/build/ftds-notice.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare class FtdsNotice extends FtBaseNotice implements FtdsNoticeProper
|
|
|
9
9
|
variant: FtdsNoticeVariant;
|
|
10
10
|
collapsible: boolean;
|
|
11
11
|
dense: boolean;
|
|
12
|
+
forcedIcon: string | undefined;
|
|
12
13
|
private iconByVariant;
|
|
13
14
|
protected update(props: PropertyValues): void;
|
|
14
15
|
}
|
package/build/ftds-notice.js
CHANGED
|
@@ -16,6 +16,7 @@ class FtdsNotice extends FtBaseNotice {
|
|
|
16
16
|
this.variant = FtdsNoticeVariant.info;
|
|
17
17
|
this.collapsible = false;
|
|
18
18
|
this.dense = false;
|
|
19
|
+
this.forcedIcon = undefined;
|
|
19
20
|
this.iconByVariant = {
|
|
20
21
|
error: FtIcons.CLOSE_PLAIN,
|
|
21
22
|
info: FtIcons.INFO,
|
|
@@ -34,9 +35,10 @@ class FtdsNotice extends FtBaseNotice {
|
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
update(props) {
|
|
38
|
+
var _a;
|
|
37
39
|
super.update(props);
|
|
38
|
-
if (props.has("variant")) {
|
|
39
|
-
this.icon = this.iconByVariant[this.variant];
|
|
40
|
+
if (props.has("variant") || props.has("forcedIcon")) {
|
|
41
|
+
this.icon = (_a = this.forcedIcon) !== null && _a !== void 0 ? _a : this.iconByVariant[this.variant];
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
}
|
|
@@ -50,4 +52,7 @@ __decorate([
|
|
|
50
52
|
__decorate([
|
|
51
53
|
property({ type: Boolean })
|
|
52
54
|
], FtdsNotice.prototype, "dense", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
property()
|
|
57
|
+
], FtdsNotice.prototype, "forcedIcon", void 0);
|
|
53
58
|
export { FtdsNotice };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-notice",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"description": "Notice to display different messages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@fluid-topics/design-system-variables": "0.1.100",
|
|
23
|
-
"@fluid-topics/ft-icon": "1.3.
|
|
24
|
-
"@fluid-topics/ft-typography": "1.3.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "1.3.
|
|
23
|
+
"@fluid-topics/ft-icon": "1.3.11",
|
|
24
|
+
"@fluid-topics/ft-typography": "1.3.11",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "1.3.11",
|
|
26
26
|
"lit": "3.1.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "d6d94dad1cc2ca781775cc04c47a5447f6effab5"
|
|
29
29
|
}
|