@rocket.chat/fuselage 0.52.0 → 0.53.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.
@@ -3743,7 +3743,7 @@ var Box_1 = __importDefault(__webpack_require__(/*! ../Box */ "./src/components/
3743
3743
  var Button_1 = __webpack_require__(/*! ../Button */ "./src/components/Button/index.ts");
3744
3744
  var Skeleton_1 = __webpack_require__(/*! ../Skeleton */ "./src/components/Skeleton/index.tsx");
3745
3745
  var CodeSnippet = function (_a) {
3746
- var children = _a.children, onClick = _a.onClick, _b = _a.buttonText, buttonText = _b === void 0 ? 'Copy' : _b, props = __rest(_a, ["children", "onClick", "buttonText"]);
3746
+ var children = _a.children, onClick = _a.onClick, _b = _a.buttonText, buttonText = _b === void 0 ? 'Copy' : _b, _c = _a.buttonDisabled, buttonDisabled = _c === void 0 ? false : _c, props = __rest(_a, ["children", "onClick", "buttonText", "buttonDisabled"]);
3747
3747
  if (!children) {
3748
3748
  return (react_1.default.createElement(Box_1.default, __assign({ is: 'pre', "rcx-code-snippet": true }, props),
3749
3749
  react_1.default.createElement(Skeleton_1.Skeleton, { w: '100%', "aria-hidden": true, "aria-busy": true })));
@@ -3752,7 +3752,7 @@ var CodeSnippet = function (_a) {
3752
3752
  react_1.default.createElement(Box_1.default, { "rcx-code-snippet__codebox": true },
3753
3753
  react_1.default.createElement("code", null, children)),
3754
3754
  onClick && children && (react_1.default.createElement(Box_1.default, null,
3755
- react_1.default.createElement(Button_1.Button, { small: true, primary: true, onClick: onClick }, buttonText)))));
3755
+ react_1.default.createElement(Button_1.Button, { small: true, primary: true, onClick: onClick, disabled: buttonDisabled }, buttonText)))));
3756
3756
  };
3757
3757
  exports["default"] = CodeSnippet;
3758
3758