@overmap-ai/blocks 0.0.9-alpha.2 → 0.0.9-alpha.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.
@@ -1,14 +1,12 @@
1
1
  import { FC, ReactElement } from "react";
2
- import { DialogContentProps, DialogProps } from "@radix-ui/react-dialog";
3
- interface SlideOutProps extends DialogContentProps {
2
+ import { DismissableLayerProps } from "@radix-ui/react-dismissable-layer";
3
+ interface SlideOutProps extends Omit<DismissableLayerProps, "disableOutsidePointerEvents"> {
4
4
  /** The controlled state of whether the SlideOut is open or not */
5
- open?: DialogProps["open"];
5
+ open?: boolean;
6
6
  /** Used to specify what side of the container the SlideOut appears on
7
7
  * @default "left"
8
8
  * */
9
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
10
  /** The minimum width of the SlideOut, this must be specified and will be the default width the SlideOut
13
11
  * first opens with. Note the developer is responsible for adapting this as the screen size or size of the container
14
12
  * the SlideOut appears in changes in width */
@@ -30,6 +28,10 @@ interface SlideOutProps extends DialogContentProps {
30
28
  resizable?: boolean;
31
29
  /** Component to be used as the resize handle for the SlideOut */
32
30
  resizeHandle?: ReactElement;
31
+ /** if set to relative, the SlideOut will push any content contained within its container when open/closed
32
+ * @default "absolute"
33
+ * */
34
+ position?: "absolute" | "relative";
33
35
  }
34
36
  /** The SlideOut component is a UI element that allows you to create a slide-in/slide-out effect for content within
35
37
  * your application. It provides a smooth transition animation for revealing and hiding content. */