@doist/reactist 28.6.0 → 28.7.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.
@@ -928,6 +928,14 @@ const _excluded$n = ["id", "type", "title", "description", "action", "icon", "im
928
928
  _excluded2$5 = ["label"],
929
929
  _excluded3$2 = ["type", "label"],
930
930
  _excluded4$2 = ["type", "label", "variant"];
931
+ /**
932
+ * Type guard to check if the action is an Action object (button or link)
933
+ */
934
+
935
+ function isActionObject$1(action) {
936
+ return typeof action === 'object' && action !== null && 'type' in action && (action.type === 'button' || action.type === 'link');
937
+ }
938
+
931
939
  const Banner = /*#__PURE__*/React__namespace.forwardRef(function Banner(_ref, ref) {
932
940
  let {
933
941
  id,
@@ -1006,7 +1014,7 @@ const Banner = /*#__PURE__*/React__namespace.forwardRef(function Banner(_ref, re
1006
1014
  className: modules_afa80466.actions,
1007
1015
  display: "flex",
1008
1016
  gap: "small"
1009
- }, (action == null ? void 0 : action.type) === 'button' ? /*#__PURE__*/React__namespace.createElement(ActionButton, _objectSpread2({}, action)) : null, (action == null ? void 0 : action.type) === 'link' ? /*#__PURE__*/React__namespace.createElement(ActionLink, _objectSpread2({}, action)) : null, closeButton) : null));
1017
+ }, action ? isActionObject$1(action) ? action.type === 'button' ? /*#__PURE__*/React__namespace.createElement(ActionButton, _objectSpread2({}, action)) : /*#__PURE__*/React__namespace.createElement(ActionLink, _objectSpread2({}, action)) : action : null, closeButton) : null));
1010
1018
  });
1011
1019
 
1012
1020
  function ActionButton(_ref3) {