funuicss 3.8.9 → 3.8.11
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/css/fun.css +0 -1
- package/package.json +1 -1
- package/ui/carousel/Carousel.d.ts +3 -0
- package/ui/carousel/Carousel.js +140 -16
- package/ui/feature/Feature.d.ts +17 -1
- package/ui/feature/Feature.js +25 -1
- package/ui/form/Form.d.ts +2 -2
- package/ui/form/Form.js +1140 -202
- package/ui/input/Input.js +23 -988
- package/ui/notification/Notification.js +6 -2
|
@@ -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,
|