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

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,3 @@
1
+ import { FC } from "react";
2
+ import { CheckboxProps } from "./typings";
3
+ export declare const Checkbox: FC<CheckboxProps>;
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ import { SelectAllCheckboxProps } from "./typings";
3
+ export declare const SelectAllCheckbox: FC<SelectAllCheckboxProps>;
@@ -0,0 +1,3 @@
1
+ export { Checkbox } from "./Checkbox";
2
+ export { SelectAllCheckbox } from "./SelectAllCheckbox";
3
+ export * from "./typings";
@@ -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,3 @@
1
+ import { FC } from "react";
2
+ import { MultiPagePopoverProps } from "./typings";
3
+ export declare const MultiPagePopover: FC<MultiPagePopoverProps>;
@@ -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
+ }