@rocket.chat/fuselage 0.39.0 → 0.40.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.
@@ -2743,10 +2743,10 @@ var fuselage_hooks_1 = __webpack_require__(/*! @rocket.chat/fuselage-hooks */ "@
2743
2743
  var react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
2744
2744
  var Box_1 = __importDefault(__webpack_require__(/*! ../Box/Box */ "./src/components/Box/Box.tsx"));
2745
2745
  var Card = function (_a) {
2746
- var horizontal = _a.horizontal, props = __rest(_a, ["horizontal"]);
2746
+ var horizontal = _a.horizontal, hero = _a.hero, props = __rest(_a, ["horizontal", "hero"]);
2747
2747
  var breakpoints = (0, fuselage_hooks_1.useBreakpoints)();
2748
2748
  var isMobile = !breakpoints.includes('sm');
2749
- return (react_1.default.createElement(Box_1.default, __assign({ "rcx-card": true, "rcx-card__horizontal": horizontal, "rcx-card__vertical": !horizontal, "rcx-card__horizontal--wrap": horizontal && isMobile }, props)));
2749
+ return (react_1.default.createElement(Box_1.default, __assign({ "rcx-card": true, "rcx-card__horizontal": horizontal, "rcx-card__vertical": !horizontal, "rcx-card__hero": hero, "rcx-card__horizontal--wrap": horizontal && isMobile }, props)));
2750
2750
  };
2751
2751
  exports["default"] = Card;
2752
2752
 
@@ -2760,6 +2760,28 @@ exports["default"] = Card;
2760
2760
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2761
2761
 
2762
2762
 
2763
+ var __assign = (this && this.__assign) || function () {
2764
+ __assign = Object.assign || function(t) {
2765
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
2766
+ s = arguments[i];
2767
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2768
+ t[p] = s[p];
2769
+ }
2770
+ return t;
2771
+ };
2772
+ return __assign.apply(this, arguments);
2773
+ };
2774
+ var __rest = (this && this.__rest) || function (s, e) {
2775
+ var t = {};
2776
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2777
+ t[p] = s[p];
2778
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
2779
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2780
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2781
+ t[p[i]] = s[p[i]];
2782
+ }
2783
+ return t;
2784
+ };
2763
2785
  var __importDefault = (this && this.__importDefault) || function (mod) {
2764
2786
  return (mod && mod.__esModule) ? mod : { "default": mod };
2765
2787
  };
@@ -2767,8 +2789,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
2767
2789
  var react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
2768
2790
  var Box_1 = __importDefault(__webpack_require__(/*! ../Box/Box */ "./src/components/Box/Box.tsx"));
2769
2791
  var CardBody = function (_a) {
2770
- var children = _a.children, _b = _a.flexDirection, flexDirection = _b === void 0 ? 'row' : _b, height = _a.height;
2771
- return (react_1.default.createElement(Box_1.default, { fontScale: 'p2m', display: 'flex', flexDirection: flexDirection, flexGrow: 1, height: height, "rcx-card__body": true }, children));
2792
+ var children = _a.children, _b = _a.flexDirection, flexDirection = _b === void 0 ? 'row' : _b, height = _a.height, props = __rest(_a, ["children", "flexDirection", "height"]);
2793
+ return (react_1.default.createElement(Box_1.default, __assign({ fontScale: 'p2m', display: 'flex', flexDirection: flexDirection, flexGrow: 1, height: height, "rcx-card__body": true }, props), children));
2772
2794
  };
2773
2795
  exports["default"] = CardBody;
2774
2796