@firestitch/list 12.7.1 → 12.7.2

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.
@@ -691,7 +691,12 @@
691
691
  this.menu = (_a = value.menu) !== null && _a !== void 0 ? _a : true;
692
692
  this.remove = value.remove;
693
693
  this.className = value.className;
694
- this.type = (_b = value.type) !== null && _b !== void 0 ? _b : exports.ActionType.Basic;
694
+ if (this.menu && this.icon && !this.label && !value.type) {
695
+ this.type = exports.ActionType.Icon;
696
+ }
697
+ else {
698
+ this.type = (_b = value.type) !== null && _b !== void 0 ? _b : exports.ActionType.Basic;
699
+ }
695
700
  this.show = value.show;
696
701
  this.restore = value.restore;
697
702
  this.rowActions = (_c = value.rowActions) === null || _c === void 0 ? void 0 : _c.map(function (action) { return new RowAction(action); });