@overmap-ai/blocks 1.0.31-tailwind-components.38 → 1.0.31-tailwind-components.39

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.
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import { ComponentProps } from "react";
2
2
  import { IconBaseProps } from "react-icons";
3
- interface RemixIconProps extends IconBaseProps {
3
+ interface RiIconProps extends ComponentProps<"svg">, Pick<IconBaseProps, "size" | "title" | "color"> {
4
4
  icon: string;
5
5
  }
6
- export declare const RiIcon: import("react").MemoExoticComponent<(props: RemixIconProps) => import("react/jsx-runtime").JSX.Element>;
6
+ export declare const RiIcon: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<RiIconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>>;
7
7
  export {};
package/dist/blocks.js CHANGED
@@ -2773,14 +2773,15 @@ const Menu = {
2773
2773
  Separator: MenuSeparator,
2774
2774
  Scroll: MenuScroll
2775
2775
  };
2776
- const DEFAULT_ICON_SIZE = "15px";
2777
- const RiIcon = memo((props) => {
2778
- const { icon, size: size2 = DEFAULT_ICON_SIZE, color, ...rest } = props;
2779
- const Icon = RiIcons[icon];
2780
- if (!Icon) console.error(`Icon ${icon} not found`);
2781
- return Icon ? /* @__PURE__ */ jsx(Icon, { size: size2, color, ...rest }) : /* @__PURE__ */ jsx(RiQuestionMark, {});
2782
- });
2783
- RiIcon.displayName = "IconComponent";
2776
+ const RiIcon = memo(
2777
+ forwardRef((props, ref) => {
2778
+ const { icon, size: size2, title, color, ...rest } = props;
2779
+ const Icon = RiIcons[icon];
2780
+ if (!Icon) console.error(`Icon ${icon} not found`);
2781
+ return Icon ? /* @__PURE__ */ jsx(Icon, { ref, title, size: size2, color, ...rest }) : /* @__PURE__ */ jsx(RiQuestionMark, { ref, title, size: size2, color, ...rest });
2782
+ })
2783
+ );
2784
+ RiIcon.displayName = "RiIcon";
2784
2785
  const centerStyles = { placeSelf: "center" };
2785
2786
  const ErrorFallback = memo((props) => {
2786
2787
  const { absoluteCentering, message = "Something went wrong", onRetry } = props;