@digital-b2c/coreui-kit 0.26.0 → 0.26.1

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/dist/index.cjs CHANGED
@@ -1157,7 +1157,7 @@ var InfoCard_module_default = {
1157
1157
  "info-card": "InfoCard_module_info-card",
1158
1158
  header: "InfoCard_module_header",
1159
1159
  badge: "InfoCard_module_badge",
1160
- hasIcon: "InfoCard_module_hasIcon"
1160
+ icon: "InfoCard_module_icon"
1161
1161
  };
1162
1162
  var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
1163
1163
  var _a, _b;
@@ -1169,7 +1169,7 @@ var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
1169
1169
  const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
1170
1170
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx65__default.default(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
1171
1171
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: InfoCard_module_default.header, children: [
1172
- icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx65__default.default(InfoCard_module_default.badge, "h4"), children: badge }) : null,
1172
+ icon && typeof icon === "object" ? /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: InfoCard_module_default.icon }, icon)) : icon ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx65__default.default(InfoCard_module_default.badge, "h4"), children: badge }) : null,
1173
1173
  titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h4", children: titleNode })
1174
1174
  ] }),
1175
1175
  subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: subtitleNode })