@salesforcedevs/dx-components 1.3.2 → 1.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@types/vimeo__player": "^2.16.2",
|
|
37
37
|
"eventsourcemock": "^2.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "c68f4f3335a16a16656d9e95d10fe8443e48f78a"
|
|
40
40
|
}
|
|
@@ -69,6 +69,7 @@ export default class TypeBadge extends LightningElement {
|
|
|
69
69
|
@api size: TypeBadgeSize = "default";
|
|
70
70
|
@api variant?: Brand | ContentType = "default";
|
|
71
71
|
@api color?: Color;
|
|
72
|
+
@api dark?: false;
|
|
72
73
|
|
|
73
74
|
@api
|
|
74
75
|
get iconSymbol(): IconSymbol | undefined {
|
|
@@ -146,6 +147,12 @@ export default class TypeBadge extends LightningElement {
|
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
private get style(): string {
|
|
150
|
+
if (this.dark) {
|
|
151
|
+
return buildStyleColorVariables({
|
|
152
|
+
background: `--dx-g-${this.variantColorScope}-${this.variant}-color`,
|
|
153
|
+
color: `--dx-g-brand-default-color-background`
|
|
154
|
+
});
|
|
155
|
+
}
|
|
149
156
|
if (this.variantColorScope) {
|
|
150
157
|
return buildStyleColorVariables({
|
|
151
158
|
background: `--dx-g-${this.variantColorScope}-${this.variant}-color-background`,
|