@thecb/components 10.6.0-beta.1 → 10.6.0-beta.3

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/index.esm.js CHANGED
@@ -39404,40 +39404,41 @@ var WalletName = function WalletName(_ref) {
39404
39404
  actionText = _ref.actionText,
39405
39405
  themeValues = _ref.themeValues,
39406
39406
  _ref$disableAction = _ref.disableAction,
39407
- disableAction = _ref$disableAction === void 0 ? false : _ref$disableAction;
39407
+ disableAction = _ref$disableAction === void 0 ? false : _ref$disableAction,
39408
+ _ref$buttonExtraStyle = _ref.buttonExtraStyles,
39409
+ buttonExtraStyles = _ref$buttonExtraStyle === void 0 ? "" : _ref$buttonExtraStyle;
39408
39410
  var _useContext = useContext(ThemeContext),
39409
39411
  isMobile = _useContext.isMobile;
39410
39412
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Module$1, {
39411
39413
  spacingBottom: isMobile ? "0" : "1.5rem"
39412
- }, /*#__PURE__*/React.createElement(Box, {
39413
- padding: "24px",
39414
- boxShadow: themeValues.boxShadow,
39415
- spacingBottom: "0",
39416
- margin: "0 0 0 0",
39417
- extraStyles: isMobile ? "display: flex; flex-direction: column; flex-wrap: wrap; span {text-align: right;}" : "display: flex; justify-content: space-between; align-items: center;"
39414
+ }, /*#__PURE__*/React.createElement(Cluster, {
39415
+ align: "center",
39416
+ justify: !!text || !!actionText ? "space-between" : !text && !actionText && isMobile ? "flex-end" : "flex-end",
39417
+ extraStyles: "\n box-shadow: ".concat(themeValues.boxShadow, "; \n padding: 1.5rem;\n ").concat(isMobile ? "span {text-align: right;}" : "", "\n ")
39418
39418
  }, /*#__PURE__*/React.createElement(Box, {
39419
39419
  padding: "0 0 0"
39420
39420
  }, /*#__PURE__*/React.createElement(Text$1, null, mainText)), !isMobile && /*#__PURE__*/React.createElement(Box, {
39421
39421
  padding: "0"
39422
39422
  }, text && /*#__PURE__*/React.createElement(Text$1, {
39423
39423
  variant: "pXS"
39424
- }, text), text && actionText && /*#__PURE__*/React.createElement(React.Fragment, null, "\xA0"), action && actionText && /*#__PURE__*/React.createElement(ButtonWithAction, {
39424
+ }, text), (text || actionText) && /*#__PURE__*/React.createElement(React.Fragment, null, "\xA0"), action && actionText && /*#__PURE__*/React.createElement(ButtonWithAction, {
39425
39425
  disabled: disableAction,
39426
39426
  text: actionText,
39427
39427
  action: action,
39428
39428
  variant: "smallGhost",
39429
- extraStyles: " margin-left: 0; min-width: 0; span {font-size: 0.75rem;} "
39430
- })))), isMobile && /*#__PURE__*/React.createElement(Box, {
39431
- padding: "0 0 24px",
39432
- extraStyles: "display: flex; align-items: center; justify-content: flex-end;"
39429
+ extraStyles: "\n margin: 0;\n min-width: 0;\n span {font-size: 0.75rem;}\n ".concat(buttonExtraStyles, "\n ")
39430
+ })))), isMobile && /*#__PURE__*/React.createElement(Cluster, {
39431
+ align: "center",
39432
+ justify: text || actionText ? "flex-end" : "flex-start",
39433
+ extraStyles: "margin-top: 0.75rem;"
39433
39434
  }, text && /*#__PURE__*/React.createElement(Text$1, {
39434
39435
  extraStyles: "font-size: 12px"
39435
- }, text), action && actionText && /*#__PURE__*/React.createElement(ButtonWithAction, {
39436
+ }, text), (text || actionText) && /*#__PURE__*/React.createElement(React.Fragment, null, "\xA0"), action && actionText && /*#__PURE__*/React.createElement(ButtonWithAction, {
39436
39437
  text: actionText,
39437
39438
  action: action,
39438
39439
  variant: "smallGhost",
39439
- extraStyles: "span {font-size: 12px;}",
39440
- disabled: disableAction
39440
+ disabled: disableAction,
39441
+ extraStyles: "\n margin: 0;\n min-width: 0;\n span {font-size: 0.75rem;}\n ".concat(buttonExtraStyles, "\n ")
39441
39442
  })));
39442
39443
  };
39443
39444
  var WalletName$1 = themeComponent(WalletName, "WalletName", fallbackValues$C, "primary");