@agilant/toga-blox 1.0.30 → 1.0.32

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,10 +11,10 @@ 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 rounded-lg`;
15
- const closeButtonClasses = `cursor-pointer text-xs ${closeIconColor}`;
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
- : 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))) }));
18
+ : null }), _jsx("div", { className: "flex-grow", children: _jsx("p", { className: index === 0 && "font-semibold", children: msg }) }), _jsx("div", { className: "w-6 flex justify-end", children: index === 0 && hasClearButton && (_jsx("div", { "data-testid": "clear-button", className: closeButtonClasses, onClick: handleClearMessage, children: getFontAwesomeIcon("x", "solid") })) })] }, index))) }));
19
19
  };
20
20
  export default Toaster;
@@ -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
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agilant/toga-blox",
3
3
  "private": false,
4
- "version": "1.0.30",
4
+ "version": "1.0.32",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",