@thecb/components 10.7.7 → 10.7.8

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.cjs.js CHANGED
@@ -46140,6 +46140,8 @@ var CloseButton = function CloseButton(_ref) {
46140
46140
  buttonExtraStyles = _ref$buttonExtraStyle === void 0 ? "" : _ref$buttonExtraStyle,
46141
46141
  _ref$closeButtonText = _ref.closeButtonText,
46142
46142
  closeButtonText = _ref$closeButtonText === void 0 ? "" : _ref$closeButtonText,
46143
+ _ref$closeButtonVaria = _ref.closeButtonVariant,
46144
+ closeButtonVariant = _ref$closeButtonVaria === void 0 ? "primary" : _ref$closeButtonVaria,
46143
46145
  _ref$hideModal = _ref.hideModal,
46144
46146
  hideModal = _ref$hideModal === void 0 ? noop : _ref$hideModal,
46145
46147
  _ref$isMobile = _ref.isMobile,
@@ -46156,7 +46158,7 @@ var CloseButton = function CloseButton(_ref) {
46156
46158
  role: "button",
46157
46159
  text: closeButtonText,
46158
46160
  textExtraStyles: "".concat(fontSize),
46159
- variant: "primary"
46161
+ variant: closeButtonVariant
46160
46162
  });
46161
46163
  };
46162
46164
 
@@ -46252,6 +46254,8 @@ var Modal$2 = function Modal(_ref) {
46252
46254
  children = _ref$children === void 0 ? [] : _ref$children,
46253
46255
  _ref$closeButtonText = _ref.closeButtonText,
46254
46256
  closeButtonText = _ref$closeButtonText === void 0 ? "Close" : _ref$closeButtonText,
46257
+ _ref$closeButtonVaria = _ref.closeButtonVariant,
46258
+ closeButtonVariant = _ref$closeButtonVaria === void 0 ? "primary" : _ref$closeButtonVaria,
46255
46259
  _ref$continueAction = _ref.continueAction,
46256
46260
  continueAction = _ref$continueAction === void 0 ? noop : _ref$continueAction,
46257
46261
  _ref$continueButtonTe = _ref.continueButtonText,
@@ -46406,6 +46410,7 @@ var Modal$2 = function Modal(_ref) {
46406
46410
  }), hasCloseButton && /*#__PURE__*/React__default.createElement(CloseButton, {
46407
46411
  buttonExtraStyles: buttonExtraStyles,
46408
46412
  closeButtonText: closeButtonText,
46413
+ closeButtonVariant: closeButtonVariant,
46409
46414
  hideModal: hideModal,
46410
46415
  isMobile: isMobile,
46411
46416
  key: "close"