@loja-integrada/admin-components 0.12.1 → 0.12.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.
@@ -666,6 +666,12 @@ var ButtonType = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
666
666
  if (as === 'a' || props.href) return React__default.createElement("a", Object.assign({}, props, {
667
667
  ref: ref
668
668
  }), children);
669
+
670
+ if (!props.type) {
671
+ // Default to button when missing type
672
+ props.type = 'button';
673
+ }
674
+
669
675
  return React__default.createElement("button", Object.assign({}, props, {
670
676
  ref: ref
671
677
  }), children);
@@ -2823,7 +2829,8 @@ var ActionBarComponent = function ActionBarComponent(_ref) {
2823
2829
  if (!props.children) return;
2824
2830
  return React__default.createElement("button", {
2825
2831
  className: 'px-4 py-1 text-base-1' + (props != null && props.loading ? ' pointer-events-none' : ''),
2826
- onClick: props == null ? void 0 : props.onClick
2832
+ onClick: props == null ? void 0 : props.onClick,
2833
+ type: (props == null ? void 0 : props.type) || 'button'
2827
2834
  }, props != null && props.loading ? React__default.createElement(Icon, {
2828
2835
  icon: "loading",
2829
2836
  className: "p-px"