@rocket.chat/fuselage 0.62.3 → 0.64.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.
@@ -274,7 +274,8 @@ exports.typeOf = typeOf;
274
274
 
275
275
 
276
276
 
277
- if (false) {} else {
277
+ if (false) // removed by dead control flow
278
+ {} else {
278
279
  module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../node_modules/react-is/cjs/react-is.development.js");
279
280
  }
280
281
 
@@ -1668,7 +1669,8 @@ exports.jsxs = jsxs;
1668
1669
 
1669
1670
 
1670
1671
 
1671
- if (false) {} else {
1672
+ if (false) // removed by dead control flow
1673
+ {} else {
1672
1674
  module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "../../node_modules/react/cjs/react-jsx-runtime.development.js");
1673
1675
  }
1674
1676
 
@@ -2930,9 +2932,8 @@ var Banner = function (_a) {
2930
2932
  onClose();
2931
2933
  }
2932
2934
  }, [onClose]);
2933
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, composeClassNames_1.composeClassNames)('rcx-banner')((_b = {}, _b[variant] = true, _b.inline = inline, _b.actionable = actionable, _b), className), ref: ref, role: onAction ? 'button' : 'banner', tabIndex: onAction ? 0 : -1, onKeyDown: function (e) {
2934
- return e.code === 'Enter' || (e.code === 'Space' && handleBannerClick());
2935
- }, onClick: handleBannerClick }, props, { children: [icon && isIconVisible && ((0, jsx_runtime_1.jsx)("div", { className: (0, composeClassNames_1.composeClassNames)("rcx-banner__icon rcx-banner__icon--".concat(variant))({
2935
+ var buttonProps = (0, fuselage_hooks_1.useButtonPattern)(handleBannerClick);
2936
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, composeClassNames_1.composeClassNames)('rcx-banner')((_b = {}, _b[variant] = true, _b.inline = inline, _b.actionable = actionable, _b), className), ref: ref }, (onAction ? __assign({}, buttonProps) : { role: 'banner', tabIndex: -1 }), props, { children: [icon && isIconVisible && ((0, jsx_runtime_1.jsx)("div", { className: (0, composeClassNames_1.composeClassNames)("rcx-banner__icon rcx-banner__icon--".concat(variant))({
2936
2937
  inline: inline,
2937
2938
  }), children: icon })), (0, jsx_runtime_1.jsxs)("div", { className: (0, composeClassNames_1.composeClassNames)('rcx-banner__content')({ inline: inline }), children: [title && ((0, jsx_runtime_1.jsx)("h6", { className: (0, composeClassNames_1.composeClassNames)('rcx-banner__title')({ inline: inline }), children: title })), children, link && ((0, jsx_runtime_1.jsx)("a", { href: link, target: linkTarget, className: (0, composeClassNames_1.composeClassNames)('rcx-banner__link')((_c = {}, _c[variant] = true, _c)), children: linkText }))] }), closeable && ((0, jsx_runtime_1.jsx)("div", { className: (0, composeClassNames_1.composeClassNames)('rcx-banner__close-button')({ inline: inline }), children: (0, jsx_runtime_1.jsx)(Button_1.IconButton, { small: true, onClick: handleCloseButtonClick, icon: 'cross' }) }))] })));
2938
2939
  };
@@ -6253,7 +6254,8 @@ var FieldDescription = function (props) {
6253
6254
  if (true) {
6254
6255
  return ((0, jsx_runtime_1.jsx)(WithErrorWrapper_1.default, { context: Field_1.FieldContext, parentComponent: 'Field', componentName: exports.FieldDescription.name, children: component }));
6255
6256
  }
6256
- return component;
6257
+ // removed by dead control flow
6258
+ {}
6257
6259
  };
6258
6260
  exports.FieldDescription = FieldDescription;
6259
6261
 
@@ -6292,7 +6294,8 @@ var FieldError = function (props) {
6292
6294
  if (true) {
6293
6295
  return ((0, jsx_runtime_1.jsx)(WithErrorWrapper_1.default, { context: Field_1.FieldContext, parentComponent: 'Field', componentName: exports.FieldError.name, children: component }));
6294
6296
  }
6295
- return component;
6297
+ // removed by dead control flow
6298
+ {}
6296
6299
  };
6297
6300
  exports.FieldError = FieldError;
6298
6301
 
@@ -6331,7 +6334,8 @@ var FieldHint = function (props) {
6331
6334
  if (true) {
6332
6335
  return ((0, jsx_runtime_1.jsx)(WithErrorWrapper_1.default, { context: Field_1.FieldContext, parentComponent: 'Field', componentName: exports.FieldHint.name, children: component }));
6333
6336
  }
6334
- return component;
6337
+ // removed by dead control flow
6338
+ {}
6335
6339
  };
6336
6340
  exports.FieldHint = FieldHint;
6337
6341
 
@@ -6371,7 +6375,8 @@ var FieldLabel = function (props) {
6371
6375
  if (true) {
6372
6376
  return ((0, jsx_runtime_1.jsx)(WithErrorWrapper_1.default, { context: Field_1.FieldContext, parentComponent: 'Field', componentName: exports.FieldLabel.name, children: component }));
6373
6377
  }
6374
- return component;
6378
+ // removed by dead control flow
6379
+ {}
6375
6380
  };
6376
6381
  exports.FieldLabel = FieldLabel;
6377
6382
 
@@ -6410,7 +6415,8 @@ var FieldLabelInfo = function (props) {
6410
6415
  if (true) {
6411
6416
  return ((0, jsx_runtime_1.jsx)(WithErrorWrapper_1.default, { context: Field_1.FieldContext, parentComponent: 'Field', componentName: exports.FieldLabelInfo.name, children: component }));
6412
6417
  }
6413
- return component;
6418
+ // removed by dead control flow
6419
+ {}
6414
6420
  };
6415
6421
  exports.FieldLabelInfo = FieldLabelInfo;
6416
6422
 
@@ -6449,7 +6455,8 @@ var FieldLink = function (props) {
6449
6455
  if (true) {
6450
6456
  return ((0, jsx_runtime_1.jsx)(WithErrorWrapper_1.default, { context: Field_1.FieldContext, parentComponent: 'Field', componentName: exports.FieldLink.name, children: component }));
6451
6457
  }
6452
- return component;
6458
+ // removed by dead control flow
6459
+ {}
6453
6460
  };
6454
6461
  exports.FieldLink = FieldLink;
6455
6462
 
@@ -6488,7 +6495,8 @@ var FieldRow = function (props) {
6488
6495
  if (true) {
6489
6496
  return ((0, jsx_runtime_1.jsx)(WithErrorWrapper_1.default, { context: Field_1.FieldContext, parentComponent: 'Field', componentName: exports.FieldRow.name, children: component }));
6490
6497
  }
6491
- return component;
6498
+ // removed by dead control flow
6499
+ {}
6492
6500
  };
6493
6501
  exports.FieldRow = FieldRow;
6494
6502