@overmap-ai/blocks 0.0.9-alpha.4 → 0.0.9-alpha.6

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,6 +1,11 @@
1
1
  import React from "react";
2
2
  import { Button as RadixButton, MarginProps, Responsive } from "@radix-ui/themes";
3
3
  import { Severity, Size, Variant } from "../typings.ts";
4
+ export interface Shortcut {
5
+ keys: string[];
6
+ action: () => void;
7
+ disabled?: boolean;
8
+ }
4
9
  export type RadixButtonProps = React.ComponentProps<typeof RadixButton>;
5
10
  export type ButtonHoverEffect = "spin90Clockwise" | "spin180Clockwise" | "spin360Clockwise";
6
11
  export interface ButtonProps extends Omit<RadixButtonProps, "size" | "variant" | keyof MarginProps> {
@@ -13,4 +18,5 @@ export interface ButtonProps extends Omit<RadixButtonProps, "size" | "variant" |
13
18
  severity?: Severity;
14
19
  size?: Responsive<Size>;
15
20
  hoverEffects?: ButtonHoverEffect[];
21
+ shortcut?: Shortcut;
16
22
  }
@@ -18,6 +18,14 @@ export interface DialogProps extends Omit<RadixDialogContentProps, "content"> {
18
18
  * @default false
19
19
  */
20
20
  defaultOpen?: boolean;
21
+ /** Manually control the open state
22
+ * @deprecated Use `defaultOpen` and `Trigger` instead
23
+ */
24
+ open?: boolean;
25
+ /** Manually control the open state changes.
26
+ * @deprecated Use `onOpen` and `onCloseInterrupt` instead
27
+ */
28
+ onOpenChange?: (open: boolean) => void;
21
29
  /** The title of the Dialog should only be a few words */
22
30
  title: string;
23
31
  /** The description of the Dialog should explain what is happening and possible ramifications. */
@@ -0,0 +1,6 @@
1
+ import { ComponentProps } from "react";
2
+ import { Tooltip as RadixToolTip } from "@radix-ui/themes";
3
+ interface TooltipProps extends Omit<ComponentProps<typeof RadixToolTip>, "asChild"> {
4
+ }
5
+ export declare const Tooltip: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>>;
6
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./Tooltip";