@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.
- package/dist/RiIcon/RiIcon.d.ts +3 -3
- package/dist/blocks.js +9 -8
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +9 -8
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/constants.d.ts +0 -1
package/dist/RiIcon/RiIcon.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
2
|
import { IconBaseProps } from "react-icons";
|
|
3
|
-
interface
|
|
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<(
|
|
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
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
})
|
|
2783
|
-
|
|
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;
|