@overmap-ai/blocks 0.0.9-alpha.3 → 0.0.9-alpha.5
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/Buttons/typings.d.ts +6 -0
- package/dist/Checkbox/Checkbox.d.ts +3 -0
- package/dist/Checkbox/SelectAllCheckbox.d.ts +3 -0
- package/dist/Checkbox/index.d.ts +3 -0
- package/dist/Checkbox/typings.d.ts +13 -0
- package/dist/MultiPagePopover/MultiPagePopover.d.ts +3 -0
- package/dist/MultiPagePopover/index.d.ts +1 -0
- package/dist/MultiPagePopover/typings.d.ts +21 -0
- package/dist/Tooltip/Tooltip.d.ts +6 -0
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/blocks.js +1454 -806
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +2 -2
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/utils.d.ts +7 -0
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode, ReactElement } from "react";
|
|
2
|
+
import { Checkbox as RadixCheckbox } from "@radix-ui/themes";
|
|
3
|
+
export type RadixCheckboxProps = React.ComponentProps<typeof RadixCheckbox>;
|
|
4
|
+
export type CheckboxValue = boolean | "indeterminate";
|
|
5
|
+
export interface CheckboxProps extends RadixCheckboxProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
labelClassName?: string;
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
doesLabelCheck?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface SelectAllCheckboxProps extends Omit<CheckboxProps, "checked"> {
|
|
12
|
+
children: Array<ReactElement<CheckboxProps>>;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MultiPagePopover";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { PopoverProps } from "../Popover/typings";
|
|
3
|
+
export type MultiPagePopoverOption = {
|
|
4
|
+
value: string;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
page?: MultiPagePopoverPage;
|
|
7
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
8
|
+
buttonClassName?: string;
|
|
9
|
+
};
|
|
10
|
+
export interface MultiPagePopoverPage {
|
|
11
|
+
title?: ReactNode;
|
|
12
|
+
options?: MultiPagePopoverOption[];
|
|
13
|
+
content?: ReactNode;
|
|
14
|
+
buttonsContainerClassName?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface MultiPagePopoverProps extends Omit<PopoverProps, "content"> {
|
|
17
|
+
page: MultiPagePopoverPage;
|
|
18
|
+
className?: string;
|
|
19
|
+
direction?: "vertical" | "horizontal";
|
|
20
|
+
color: "light" | "dark";
|
|
21
|
+
}
|
|
@@ -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";
|