@agilant/toga-blox 1.0.30 → 1.0.31
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.
|
@@ -11,8 +11,8 @@ const Toaster = ({ message, additionalClasses, clearMessage, hasClearButton, clo
|
|
|
11
11
|
};
|
|
12
12
|
const { colorClass, icon: maybeIcon } = statusProps;
|
|
13
13
|
const containerClasses = colorClass ?? "";
|
|
14
|
-
const shadowClasses = `shadow-lg shadow-boxShadow
|
|
15
|
-
const closeButtonClasses = `cursor-pointer text-xs
|
|
14
|
+
const shadowClasses = `shadow-lg shadow-boxShadow`;
|
|
15
|
+
const closeButtonClasses = `cursor-pointer text-xs ${closeIconColor}`;
|
|
16
16
|
return (_jsx("div", { "data-testid": "toaster-test-id", role: "alert", "aria-live": "polite", className: `${shadowClasses} ${containerClasses} ${additionalClasses}`, children: message.map((msg, index) => (_jsxs("div", { className: "flex items-center p-2", children: [_jsx("div", { className: `w-6 flex-none mr-2 ${iconColor} `, children: index === 0 && maybeIcon
|
|
17
17
|
? getFontAwesomeIcon(maybeIcon.icon, maybeIcon.type)
|
|
18
18
|
: null }), _jsx("div", { className: "flex-grow", children: _jsx("p", { className: index === 0 && "font-semibold", children: msg }) }), _jsx("div", { className: "w-6 flex-none ml-2", children: index === 0 && hasClearButton && (_jsx("div", { "data-testid": "clear-button", className: closeButtonClasses, onClick: handleClearMessage, children: getFontAwesomeIcon("x", "solid") })) })] }, index))) }));
|
|
@@ -122,5 +122,5 @@ hasMultipleMessages.args = {
|
|
|
122
122
|
colorClass: "bg-orange-100 border border-orange-500 text-orange-800",
|
|
123
123
|
icon: { icon: "circleCheck", type: "solid" },
|
|
124
124
|
},
|
|
125
|
-
additionalClasses: "py-2 px-5 min-w-96",
|
|
125
|
+
additionalClasses: "py-2 px-5 min-w-96 rounded-xl",
|
|
126
126
|
};
|