mimir-ui-kit 1.56.0 → 1.57.0

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.
@@ -4,4 +4,4 @@ import { TIcon } from './components/types';
4
4
  export type TProps = Omit<SVGProps<SVGSVGElement>, 'ref'> & {
5
5
  iconName: TIcon;
6
6
  };
7
- export declare const Icon: ({ iconName, ...props }: TProps) => import("react/jsx-runtime").JSX.Element | null;
7
+ export declare const Icon: ({ iconName, ...props }: TProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { Suspense as s } from "react";
3
- import { i as e } from "../index-MeIz2XES.js";
4
- const p = ({ iconName: o, ...n }) => {
5
- const r = e[o];
6
- return r ? /* @__PURE__ */ t(s, { fallback: null, children: /* @__PURE__ */ t(r, { ...n, "data-testid": o }) }) : null;
2
+ import { useMemo as e, Suspense as m } from "react";
3
+ import { getIconComponent as p } from "./iconMapping.js";
4
+ const f = ({ iconName: o, ...n }) => {
5
+ const r = e(() => p(o), [o]);
6
+ return /* @__PURE__ */ t(m, { fallback: null, children: /* @__PURE__ */ t(r, { ...n, "data-testid": o }) });
7
7
  };
8
8
  export {
9
- p as Icon
9
+ f as Icon
10
10
  };