@rocket.chat/fuselage 0.39.0 → 0.41.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, clickable = _a.clickable, props = __rest(_a, ["horizontal", "hero", "clickable"]);
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, "rcx-card__clickable": clickable }, 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
 
@@ -2987,7 +3009,7 @@ var CardTitle = function (_a) {
2987
3009
  var children = _a.children, info = _a.info, _b = _a.variant, variant = _b === void 0 ? 'h4' : _b, props = __rest(_a, ["children", "info", "variant"]);
2988
3010
  return (react_1.default.createElement(Box_1.default, __assign({ fontScale: variant, is: variant, "rcx-card__title": true }, props),
2989
3011
  children,
2990
- info && react_1.default.createElement(LabelInfo_1.LabelInfo, { title: info, mis: 2 })));
3012
+ info && react_1.default.createElement(LabelInfo_1.LabelInfo, { title: info })));
2991
3013
  };
2992
3014
  exports["default"] = CardTitle;
2993
3015
 
@@ -5283,6 +5305,78 @@ exports["default"] = {
5283
5305
  };
5284
5306
 
5285
5307
 
5308
+ /***/ }),
5309
+
5310
+ /***/ "./src/components/FramedIcon/FramedIcon.tsx":
5311
+ /*!**************************************************!*\
5312
+ !*** ./src/components/FramedIcon/FramedIcon.tsx ***!
5313
+ \**************************************************/
5314
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
5315
+
5316
+
5317
+ var __assign = (this && this.__assign) || function () {
5318
+ __assign = Object.assign || function(t) {
5319
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5320
+ s = arguments[i];
5321
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
5322
+ t[p] = s[p];
5323
+ }
5324
+ return t;
5325
+ };
5326
+ return __assign.apply(this, arguments);
5327
+ };
5328
+ var __rest = (this && this.__rest) || function (s, e) {
5329
+ var t = {};
5330
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5331
+ t[p] = s[p];
5332
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
5333
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
5334
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
5335
+ t[p[i]] = s[p[i]];
5336
+ }
5337
+ return t;
5338
+ };
5339
+ var __importDefault = (this && this.__importDefault) || function (mod) {
5340
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5341
+ };
5342
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
5343
+ exports.FramedIcon = void 0;
5344
+ var react_1 = __importDefault(__webpack_require__(/*! react */ "react"));
5345
+ var Icon_1 = __webpack_require__(/*! ../Icon */ "./src/components/Icon/index.ts");
5346
+ var FramedIcon = function (_a) {
5347
+ var info = _a.info, success = _a.success, warning = _a.warning, danger = _a.danger, neutral = _a.neutral, icon = _a.icon, props = __rest(_a, ["info", "success", "warning", "danger", "neutral", "icon"]);
5348
+ return (react_1.default.createElement(Icon_1.Icon, __assign({}, props, { "rcx-framed-icon": true, "rcx-framed-icon--info": info, "rcx-framed-icon--success": success, "rcx-framed-icon--warning": warning, "rcx-framed-icon--danger": danger, "rcx-framed-icon--neutral": neutral || (!info && !success && !warning && !danger), name: icon, size: 20 })));
5349
+ };
5350
+ exports.FramedIcon = FramedIcon;
5351
+
5352
+
5353
+ /***/ }),
5354
+
5355
+ /***/ "./src/components/FramedIcon/index.ts":
5356
+ /*!********************************************!*\
5357
+ !*** ./src/components/FramedIcon/index.ts ***!
5358
+ \********************************************/
5359
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
5360
+
5361
+
5362
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5363
+ if (k2 === undefined) k2 = k;
5364
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5365
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5366
+ desc = { enumerable: true, get: function() { return m[k]; } };
5367
+ }
5368
+ Object.defineProperty(o, k2, desc);
5369
+ }) : (function(o, m, k, k2) {
5370
+ if (k2 === undefined) k2 = k;
5371
+ o[k2] = m[k];
5372
+ }));
5373
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
5374
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5375
+ };
5376
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
5377
+ __exportStar(__webpack_require__(/*! ./FramedIcon */ "./src/components/FramedIcon/FramedIcon.tsx"), exports);
5378
+
5379
+
5286
5380
  /***/ }),
5287
5381
 
5288
5382
  /***/ "./src/components/Grid/Grid.tsx":
@@ -17137,6 +17231,7 @@ var Field_1 = __webpack_require__(/*! ./Field */ "./src/components/Field/index.t
17137
17231
  Object.defineProperty(exports, "Field", ({ enumerable: true, get: function () { return __importDefault(Field_1).default; } }));
17138
17232
  __exportStar(__webpack_require__(/*! ./Field */ "./src/components/Field/index.tsx"), exports);
17139
17233
  __exportStar(__webpack_require__(/*! ./FieldGroup */ "./src/components/FieldGroup/index.ts"), exports);
17234
+ __exportStar(__webpack_require__(/*! ./FramedIcon */ "./src/components/FramedIcon/index.ts"), exports);
17140
17235
  var Flex_1 = __webpack_require__(/*! ./Flex */ "./src/components/Flex/index.ts");
17141
17236
  Object.defineProperty(exports, "Flex", ({ enumerable: true, get: function () { return __importDefault(Flex_1).default; } }));
17142
17237
  __exportStar(__webpack_require__(/*! ./Grid */ "./src/components/Grid/index.ts"), exports);