matcha-components 20.58.0 → 20.60.0

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.
@@ -1125,6 +1125,7 @@ class MatchaCardComponent {
1125
1125
  this.blockquote = 'none';
1126
1126
  this.blockquoteColor = null;
1127
1127
  this.class = '';
1128
+ // Aplique o mesmo padrão para alpha, tint e loading
1128
1129
  this._alpha = false;
1129
1130
  this._tint = false;
1130
1131
  this._loading = false;
@@ -1135,17 +1136,23 @@ class MatchaCardComponent {
1135
1136
  return this.color;
1136
1137
  }
1137
1138
  get alpha() { return this._alpha; }
1138
- set alpha(v) { this._alpha = v === 'false' ? false : !!v; }
1139
+ set alpha(v) {
1140
+ this._alpha = v !== 'false' && v !== false;
1141
+ }
1139
1142
  get alphaAttr() {
1140
1143
  return this.alpha ? 'true' : 'false';
1141
1144
  }
1142
1145
  get tint() { return this._tint; }
1143
- set tint(v) { this._tint = v === 'false' ? false : !!v; }
1146
+ set tint(v) {
1147
+ this._tint = v !== 'false' && v !== false;
1148
+ }
1144
1149
  get tintAttr() {
1145
1150
  return this.tint ? 'true' : 'false';
1146
1151
  }
1147
1152
  get loading() { return this._loading; }
1148
- set loading(v) { this._loading = v === 'false' ? false : !!v; }
1153
+ set loading(v) {
1154
+ this._loading = v !== 'false' && v !== false;
1155
+ }
1149
1156
  get classes() {
1150
1157
  let backgroundColor = '';
1151
1158
  let blockquoteColor = '';