@warp-ds/elements 1.3.2 → 1.3.3-next.1
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/index.js +73 -212
- package/dist/index.js.map +3 -3
- package/dist/packages/affix/index.js.map +1 -1
- package/dist/packages/alert/index.js +9 -8
- package/dist/packages/alert/index.js.map +2 -2
- package/dist/packages/attention/index.js +7 -28
- package/dist/packages/attention/index.js.map +2 -2
- package/dist/packages/badge/index.js.map +2 -2
- package/dist/packages/box/index.js.map +1 -1
- package/dist/packages/breadcrumbs/index.js +4 -14
- package/dist/packages/breadcrumbs/index.js.map +2 -2
- package/dist/packages/broadcast/index.js +1 -8
- package/dist/packages/broadcast/index.js.map +2 -2
- package/dist/packages/button/index.js +6 -30
- package/dist/packages/button/index.js.map +2 -2
- package/dist/packages/card/index.js +5 -20
- package/dist/packages/card/index.js.map +2 -2
- package/dist/packages/expandable/index.js +4 -12
- package/dist/packages/expandable/index.js.map +2 -2
- package/dist/packages/pill/index.js +4 -16
- package/dist/packages/pill/index.js.map +2 -2
- package/dist/packages/select/index.js +3 -15
- package/dist/packages/select/index.js.map +2 -2
- package/dist/packages/textfield/index.js +2 -24
- package/dist/packages/textfield/index.js.map +2 -2
- package/dist/packages/toast/index.js +19 -26
- package/dist/packages/toast/index.js.map +2 -2
- package/package.json +10 -2
|
@@ -2078,9 +2078,7 @@ var WarpAlert = class extends WarpElement {
|
|
|
2078
2078
|
connectedCallback() {
|
|
2079
2079
|
super.connectedCallback();
|
|
2080
2080
|
if (!this.variant || !variants[this.variant]) {
|
|
2081
|
-
throw new Error(
|
|
2082
|
-
'Invalid "variant" attribute. Set its value to one of the following:\nnegative, positive, warning, info.'
|
|
2083
|
-
);
|
|
2081
|
+
throw new Error('Invalid "variant" attribute. Set its value to one of the following:\nnegative, positive, warning, info.');
|
|
2084
2082
|
}
|
|
2085
2083
|
}
|
|
2086
2084
|
get _wrapperClasses() {
|
|
@@ -2097,15 +2095,18 @@ var WarpAlert = class extends WarpElement {
|
|
|
2097
2095
|
});
|
|
2098
2096
|
}
|
|
2099
2097
|
get _icon() {
|
|
2100
|
-
if (this.variant === variants.info)
|
|
2098
|
+
if (this.variant === variants.info) {
|
|
2101
2099
|
return html5`<w-icon-info-16></w-icon-info-16>`;
|
|
2102
|
-
|
|
2100
|
+
}
|
|
2101
|
+
if (this.variant === variants.warning) {
|
|
2103
2102
|
return html5`<w-icon-warning-16></w-icon-warning-16>`;
|
|
2104
|
-
|
|
2103
|
+
}
|
|
2104
|
+
if (this.variant === variants.negative) {
|
|
2105
2105
|
return html5`<w-icon-error-16></w-icon-error-16>`;
|
|
2106
|
-
|
|
2106
|
+
}
|
|
2107
|
+
if (this.variant === variants.positive) {
|
|
2107
2108
|
return html5`<w-icon-success-16></w-icon-success-16>`;
|
|
2108
|
-
else
|
|
2109
|
+
} else
|
|
2109
2110
|
return "";
|
|
2110
2111
|
}
|
|
2111
2112
|
render() {
|