@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 +4 -4
- package/index.esm.js +4 -4
- package/package.json +1 -1
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:
|
|
747
|
+
return jsxRuntime.jsx(Icon, { color: color, name: "ExclamationTriangle" });
|
|
748
748
|
case "warning":
|
|
749
|
-
return jsxRuntime.jsx(Icon, { color:
|
|
749
|
+
return jsxRuntime.jsx(Icon, { color: color, name: "ExclamationCircle" });
|
|
750
750
|
case "success":
|
|
751
|
-
return jsxRuntime.jsx(Icon, { color:
|
|
751
|
+
return jsxRuntime.jsx(Icon, { color: color, name: "CheckCircle" });
|
|
752
752
|
case "info":
|
|
753
|
-
return jsxRuntime.jsx(Icon, { color:
|
|
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:
|
|
727
|
+
return jsx(Icon, { color: color, name: "ExclamationTriangle" });
|
|
728
728
|
case "warning":
|
|
729
|
-
return jsx(Icon, { color:
|
|
729
|
+
return jsx(Icon, { color: color, name: "ExclamationCircle" });
|
|
730
730
|
case "success":
|
|
731
|
-
return jsx(Icon, { color:
|
|
731
|
+
return jsx(Icon, { color: color, name: "CheckCircle" });
|
|
732
732
|
case "info":
|
|
733
|
-
return jsx(Icon, { color:
|
|
733
|
+
return jsx(Icon, { color: color, name: "InformationCircle" });
|
|
734
734
|
default:
|
|
735
735
|
return jsx(Icon, { name: "InformationCircle" });
|
|
736
736
|
}
|