@overmap-ai/blocks 0.0.7 → 0.0.9-alpha.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.
@@ -0,0 +1,17 @@
1
+ import { ComponentProps } from "react";
2
+ import { Flex as RadixFlex } from "@radix-ui/themes";
3
+ export interface FlexProps extends ComponentProps<typeof RadixFlex> {
4
+ /** if true the border radius of the Flex container will match the one specified by the Theme
5
+ * @default false
6
+ * */
7
+ radius?: boolean;
8
+ /** if true sets the min-width of the Flex container to 0
9
+ * @default false
10
+ * */
11
+ zeroMinWidth?: boolean;
12
+ /** if true sets the min-height of the Flex container to 0
13
+ * @default false
14
+ * */
15
+ zeroMinHeight?: boolean;
16
+ }
17
+ export declare const Flex: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<FlexProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>>;
@@ -0,0 +1 @@
1
+ export * from "./Flex";
@@ -0,0 +1,37 @@
1
+ import { FC, ReactElement } from "react";
2
+ import { DialogContentProps, DialogProps } from "@radix-ui/react-dialog";
3
+ interface SlideOutProps extends DialogContentProps {
4
+ /** The controlled state of whether the SlideOut is open or not */
5
+ open?: DialogProps["open"];
6
+ /** Used to specify what side of the container the SlideOut appears on
7
+ * @default "left"
8
+ * */
9
+ side?: "left" | "right";
10
+ /** The container the SlideOut should render within, if unspecified, will render within the Radix Root theme */
11
+ container?: HTMLElement | null;
12
+ /** The minimum width of the SlideOut, this must be specified and will be the default width the SlideOut
13
+ * first opens with. Note the developer is responsible for adapting this as the screen size or size of the container
14
+ * the SlideOut appears in changes in width */
15
+ minWidth: number;
16
+ /** An optional max width of the SlideOut when resizing, like minWidth, the Developer is responsible for adapting
17
+ * this value as the screen size or size of the container of the SlideOut changes width*/
18
+ maxWidth?: number;
19
+ /** Renders an overlay with the SlideOut, should be used when the SlideOut should have modality
20
+ * @default false
21
+ * */
22
+ overlay?: boolean;
23
+ /** Determines if the SlideOut has modality, should be used in combination with overlay
24
+ * @default false
25
+ * */
26
+ modal?: boolean;
27
+ /** Controls whether the SlideOut can be resized
28
+ * @default true
29
+ * */
30
+ resizable?: boolean;
31
+ /** Component to be used as the resize handle for the SlideOut */
32
+ resizeHandle?: ReactElement;
33
+ }
34
+ /** The SlideOut component is a UI element that allows you to create a slide-in/slide-out effect for content within
35
+ * your application. It provides a smooth transition animation for revealing and hiding content. */
36
+ export declare const SlideOut: FC<SlideOutProps>;
37
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./SlideOut";
@@ -0,0 +1,23 @@
1
+ import { ToolbarProps } from "@radix-ui/react-toolbar";
2
+ import { ComponentProps, FC, ReactNode } from "react";
3
+ import { Flex } from "../Flex";
4
+ interface ToolBarRootProps extends Omit<ToolbarProps, "dir" | "asChild" | "orientation"> {
5
+ /** the minimum gap between the left and right content in the Toolbar*/
6
+ minContentGap?: ComponentProps<typeof Flex>["gap"];
7
+ }
8
+ /** The Toolbar component is commonly used in web development to create a horizontal bar that contains various UI
9
+ * elements, typically used for navigation, actions, or other functionalities. */
10
+ export declare const Root: FC<ToolBarRootProps>;
11
+ interface ContentProps {
12
+ children: ReactNode;
13
+ /** spacing between the items in the content of the Toolbar
14
+ * @default "2"
15
+ * */
16
+ gap?: ComponentProps<typeof Flex>["gap"];
17
+ }
18
+ export declare const Toolbar: {
19
+ Root: FC<ToolBarRootProps>;
20
+ LeftContent: FC<ContentProps>;
21
+ RightContent: FC<ContentProps>;
22
+ };
23
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./Toolbar";