@trackunit/react-components 0.4.13 → 0.4.17

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/index.cjs.js CHANGED
@@ -744,13 +744,13 @@ const Alert = ({ color = "info", title, className, children, primaryAction, seco
744
744
  const getIconFromColor = () => {
745
745
  switch (color) {
746
746
  case "danger":
747
- return jsxRuntime.jsx(Icon, { color: "danger", name: "ExclamationTriangle" });
747
+ return jsxRuntime.jsx(Icon, { color: color, name: "ExclamationTriangle" });
748
748
  case "warning":
749
- return jsxRuntime.jsx(Icon, { color: "warning", name: "ExclamationCircle" });
749
+ return jsxRuntime.jsx(Icon, { color: color, name: "ExclamationCircle" });
750
750
  case "success":
751
- return jsxRuntime.jsx(Icon, { color: "success", name: "CheckCircle" });
751
+ return jsxRuntime.jsx(Icon, { color: color, name: "CheckCircle" });
752
752
  case "info":
753
- return jsxRuntime.jsx(Icon, { color: "info", name: "InformationCircle" });
753
+ return jsxRuntime.jsx(Icon, { color: color, name: "InformationCircle" });
754
754
  default:
755
755
  return jsxRuntime.jsx(Icon, { name: "InformationCircle" });
756
756
  }
package/index.esm.js CHANGED
@@ -724,13 +724,13 @@ const Alert = ({ color = "info", title, className, children, primaryAction, seco
724
724
  const getIconFromColor = () => {
725
725
  switch (color) {
726
726
  case "danger":
727
- return jsx(Icon, { color: "danger", name: "ExclamationTriangle" });
727
+ return jsx(Icon, { color: color, name: "ExclamationTriangle" });
728
728
  case "warning":
729
- return jsx(Icon, { color: "warning", name: "ExclamationCircle" });
729
+ return jsx(Icon, { color: color, name: "ExclamationCircle" });
730
730
  case "success":
731
- return jsx(Icon, { color: "success", name: "CheckCircle" });
731
+ return jsx(Icon, { color: color, name: "CheckCircle" });
732
732
  case "info":
733
- return jsx(Icon, { color: "info", name: "InformationCircle" });
733
+ return jsx(Icon, { color: color, name: "InformationCircle" });
734
734
  default:
735
735
  return jsx(Icon, { name: "InformationCircle" });
736
736
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.4.13",
3
+ "version": "0.4.17",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {