@thecb/components 10.6.5-beta.2 → 10.6.5-beta.4

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
@@ -39724,7 +39724,9 @@ var WalletName = function WalletName(_ref) {
39724
39724
  _ref$isLoading = _ref.isLoading,
39725
39725
  isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
39726
39726
  _ref$dataQa = _ref.dataQa,
39727
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
39727
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
39728
+ _ref$preventNewLineOn = _ref.preventNewLineOnMobile,
39729
+ preventNewLineOnMobile = _ref$preventNewLineOn === void 0 ? false : _ref$preventNewLineOn;
39728
39730
  var _useContext = useContext(ThemeContext),
39729
39731
  isMobile = _useContext.isMobile;
39730
39732
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Module$1, {
@@ -39747,7 +39749,7 @@ var WalletName = function WalletName(_ref) {
39747
39749
  radius: "10",
39748
39750
  cx: "12",
39749
39751
  cy: "12"
39750
- })) : mainText && /*#__PURE__*/React.createElement(Text$1, null, mainText)), !isMobile && /*#__PURE__*/React.createElement(Box, {
39752
+ })) : mainText && /*#__PURE__*/React.createElement(Text$1, null, mainText)), (!isMobile || preventNewLineOnMobile) && /*#__PURE__*/React.createElement(Box, {
39751
39753
  padding: "0"
39752
39754
  }, text && /*#__PURE__*/React.createElement(Text$1, {
39753
39755
  variant: "pXS"
@@ -39758,7 +39760,7 @@ var WalletName = function WalletName(_ref) {
39758
39760
  action: action,
39759
39761
  variant: "smallGhost",
39760
39762
  extraStyles: "\n margin: 0;\n min-width: 0;\n span {font-size: 0.75rem;}\n ".concat(linkButtonExtraStyles, "\n ")
39761
- })))), isMobile && /*#__PURE__*/React.createElement(Cluster, {
39763
+ })))), isMobile && !preventNewLineOnMobile && /*#__PURE__*/React.createElement(Cluster, {
39762
39764
  align: "center",
39763
39765
  justify: text || actionText ? "flex-end" : "flex-start",
39764
39766
  extraStyles: "margin-top: 0.5rem;"
@@ -41314,7 +41316,9 @@ var EditableList = function EditableList(_ref) {
41314
41316
  _ref$editItemAriaRole = _ref.editItemAriaRole,
41315
41317
  editItemAriaRole = _ref$editItemAriaRole === void 0 ? "" : _ref$editItemAriaRole,
41316
41318
  _ref$disablePlacehold = _ref.disablePlaceholder,
41317
- disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold;
41319
+ disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold,
41320
+ _ref$actionTextExtraS = _ref.actionTextExtraStyles,
41321
+ actionTextExtraStyles = _ref$actionTextExtraS === void 0 ? "" : _ref$actionTextExtraS;
41318
41322
  var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
41319
41323
  return /*#__PURE__*/React.createElement(Box, {
41320
41324
  padding: listPadding,
@@ -41373,7 +41377,7 @@ var EditableList = function EditableList(_ref) {
41373
41377
  action: function action() {
41374
41378
  return removeItem(item.id);
41375
41379
  },
41376
- extraStyles: "min-width: 0;",
41380
+ extraStyles: "min-width: 0; ".concat(actionTextExtraStyles),
41377
41381
  "aria-label": "Remove ".concat(ariaLabel || itemName)
41378
41382
  })), canEdit && /*#__PURE__*/React.createElement(Box, {
41379
41383
  padding: "0 0.5rem",
@@ -41387,7 +41391,7 @@ var EditableList = function EditableList(_ref) {
41387
41391
  action: function action() {
41388
41392
  return editItem(item.id);
41389
41393
  },
41390
- extraStyles: "min-width: 0;",
41394
+ extraStyles: "min-width: 0; ".concat(actionTextExtraStyles),
41391
41395
  "aria-label": "Edit ".concat(ariaLabel || itemName),
41392
41396
  role: editItemAriaRole
41393
41397
  }))));