@momentum-design/components 0.87.1 → 0.87.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/browser/index.js +9 -3
- package/dist/browser/index.js.map +3 -3
- package/dist/components/alertchip/alertchip.component.js +6 -2
- package/dist/components/chip/chip.component.js +5 -1
- package/dist/components/inputchip/inputchip.component.js +5 -1
- package/dist/custom-elements.json +1232 -1232
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +4 -4
- package/package.json +3 -3
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
9
9
|
};
|
10
|
-
import { html } from 'lit';
|
10
|
+
import { html, nothing } from 'lit';
|
11
11
|
import { property } from 'lit/decorators.js';
|
12
12
|
import { Component } from '../../models';
|
13
13
|
import Buttonsimple from '../buttonsimple/buttonsimple.component';
|
@@ -68,7 +68,11 @@ class AlertChip extends Buttonsimple {
|
|
68
68
|
render() {
|
69
69
|
return html `
|
70
70
|
<mdc-icon part="icon" name="${getAlertIcon(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
71
|
-
|
71
|
+
${this.label
|
72
|
+
? html `<mdc-text part="label" type="${DEFAULTS.TEXT_TYPE}" tagname="${DEFAULTS.TAG_NAME}"
|
73
|
+
>${this.label}</mdc-text
|
74
|
+
>`
|
75
|
+
: nothing}
|
72
76
|
`;
|
73
77
|
}
|
74
78
|
}
|
@@ -80,7 +80,11 @@ class Chip extends IconNameMixin(Buttonsimple) {
|
|
80
80
|
render() {
|
81
81
|
return html `
|
82
82
|
${this.renderIcon()}
|
83
|
-
|
83
|
+
${this.label
|
84
|
+
? html `<mdc-text part="label" type="${DEFAULTS.TEXT_TYPE}" tagname="${DEFAULTS.TAG_NAME}"
|
85
|
+
>${this.label}</mdc-text
|
86
|
+
>`
|
87
|
+
: nothing}
|
84
88
|
`;
|
85
89
|
}
|
86
90
|
}
|
@@ -74,7 +74,11 @@ class InputChip extends IconNameMixin(DisabledMixin(Component)) {
|
|
74
74
|
render() {
|
75
75
|
return html `
|
76
76
|
${this.renderIcon()}
|
77
|
-
|
77
|
+
${this.label
|
78
|
+
? html `<mdc-text part="label" type="${DEFAULTS.TEXT_TYPE}" tagname="${DEFAULTS.TAG_NAME}"
|
79
|
+
>${this.label}</mdc-text
|
80
|
+
>`
|
81
|
+
: nothing}
|
78
82
|
<mdc-button
|
79
83
|
?disabled="${this.disabled}"
|
80
84
|
variant="tertiary"
|