funuicss 3.8.9 → 3.8.10

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.
@@ -217,7 +217,11 @@ var NotificationContent = function (_a) {
217
217
  var NotificationFooter = function (_a) {
218
218
  var globalProps = _a.globalProps, onClose = _a.onClose;
219
219
  var ctaText = globalProps.ctaText, ctaUrl = globalProps.ctaUrl, ctaVariant = globalProps.ctaVariant, ctaOnClick = globalProps.ctaOnClick, ctaClassName = globalProps.ctaClassName, ctaCss = globalProps.ctaCss, _b = globalProps.ctaAlign, ctaAlign = _b === void 0 ? 'right' : _b;
220
- var handleCTAClick = function () {
220
+ var handleCTAClick = function (url) {
221
+ if (url) {
222
+ window.open(url, '_blank');
223
+ return;
224
+ }
221
225
  if (ctaOnClick) {
222
226
  ctaOnClick();
223
227
  }
@@ -233,7 +237,7 @@ var NotificationFooter = function (_a) {
233
237
  justifyContent: ctaAlign === 'left' ? 'flex-start' : ctaAlign === 'center' ? 'center' : 'flex-end',
234
238
  gap: getSpacingValue('0.75rem'), // Using getSpacingValue for consistency
235
239
  } },
236
- ctaText && (react_1.default.createElement(Button_1.default, { url: ctaUrl, onClick: handleCTAClick, funcss: "".concat(ctaClassName || '', " ").concat(ctaCss || ''), text: ctaText })),
240
+ ctaText && (react_1.default.createElement(Button_1.default, { url: ctaUrl, onClick: function () { return handleCTAClick(ctaUrl); }, funcss: "".concat(ctaClassName || '', " ").concat(ctaCss || ''), text: ctaText })),
237
241
  onClose && (react_1.default.createElement(Button_1.default, { onClick: onClose, funcss: "notification__close-btn", text: "Dismiss", style: {
238
242
  color: 'var(--text-muted)',
239
243
  opacity: 0.7,