@popsure/dirty-swan 0.41.18 → 0.41.19-alpha

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/cjs/index.js CHANGED
@@ -8771,9 +8771,10 @@ var CardContent = function (_a) {
8771
8771
  };
8772
8772
  var Card = function (props) {
8773
8773
  var _a;
8774
- var onClick = props.onClick;
8775
- if (onClick) {
8776
- return (jsxRuntime.jsx("button", __assign({ className: classNames('c-pointer d-flex w100 br8 ai-stretch', styles$e.button, (_a = props.classNames) === null || _a === void 0 ? void 0 : _a.buttonWrapper), onClick: onClick, type: "button" }, { children: jsxRuntime.jsx(CardContent, __assign({}, props), void 0) }), void 0));
8774
+ var as = props.as, onClick = props.onClick;
8775
+ var Tag = as || 'button';
8776
+ if (onClick || as) {
8777
+ return (jsxRuntime.jsx(Tag, __assign({ className: classNames('c-pointer d-flex w100 br8 ai-stretch', styles$e.button, (_a = props.classNames) === null || _a === void 0 ? void 0 : _a.buttonWrapper), onClick: onClick }, onClick && { type: "button" }, { children: jsxRuntime.jsx(CardContent, __assign({}, props), void 0) }), void 0));
8777
8778
  }
8778
8779
  return jsxRuntime.jsx(CardContent, __assign({}, props), void 0);
8779
8780
  };