@farmzone/fz-react-ui 1.2.2 → 1.2.3

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
@@ -1798,7 +1798,8 @@ var ToastManager = class _ToastManager {
1798
1798
  duration: props.duration ?? perType.duration ?? base.duration ?? 1500,
1799
1799
  style: Object.keys(style).length > 0 ? style : void 0,
1800
1800
  className: className || void 0,
1801
- iconTheme: props.iconTheme ?? perType.iconTheme ?? base.iconTheme
1801
+ iconTheme: props.iconTheme ?? perType.iconTheme ?? base.iconTheme,
1802
+ icon: props.icon ?? perType.icon ?? base.icon
1802
1803
  };
1803
1804
  }
1804
1805
  registerContainer(position, setToasts) {
@@ -2109,7 +2110,7 @@ function ToastItemCard(props) {
2109
2110
  onClick: handleClick,
2110
2111
  children: [
2111
2112
  toast2.props.icon || getDefaultIcon(toast2.props.type || "info", toast2.props.iconTheme),
2112
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 text-sm font-medium", children: toast2.props.toast }),
2113
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: `flex-1 font-medium ${hasCustomStyle ? "" : "text-sm"}`, children: toast2.props.toast }),
2113
2114
  toast2.props.showCloseButton === true && /* @__PURE__ */ jsxRuntime.jsx(
2114
2115
  "button",
2115
2116
  {