@oliasoft-open-source/react-ui-library 3.6.4 → 3.6.5

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9020,7 +9020,7 @@ const Icon = ({ icon: icon2, onClick, clickable: clickable2, color: color2, size
9020
9020
  },
9021
9021
  onClick: (evt) => onClick && !disabledContext ? onClick(evt) : {},
9022
9022
  "data-testid": testId,
9023
- children: isValidElement(icon2) ? icon2 : typeof icon2 === "string" && icon2.includes(".svg") ? /* @__PURE__ */ jsx(ReactSVG, {
9023
+ children: isValidElement(icon2) ? icon2 : typeof icon2 === "string" && (icon2.includes(".svg") || icon2.includes("image/svg")) ? /* @__PURE__ */ jsx(ReactSVG, {
9024
9024
  className: styles$N.customSvg,
9025
9025
  beforeInjection: (svg) => {
9026
9026
  if (size2) {
@@ -9029,7 +9029,7 @@ const Icon = ({ icon: icon2, onClick, clickable: clickable2, color: color2, size
9029
9029
  }
9030
9030
  },
9031
9031
  src: icon2
9032
- }) : typeof icon2 === "string" && icon2.includes(".png") ? /* @__PURE__ */ jsx("img", {
9032
+ }) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsx("img", {
9033
9033
  alt: "icon",
9034
9034
  className: styles$N.customPng,
9035
9035
  src: icon2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "3.6.4",
3
+ "version": "3.6.5",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {