@overmap-ai/blocks 1.0.30-clean-up.2 → 1.0.30
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/README.md +3 -3
- package/dist/Breadcrumb/Breadcrumb.d.ts +3 -2
- package/dist/ButtonGroup/ButtonList.d.ts +0 -1
- 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 +16 -0
- package/dist/ConfirmEditInput/ConfirmEditInput.d.ts +3 -0
- package/dist/ConfirmEditInput/index.d.ts +2 -0
- package/dist/ConfirmEditInput/typings.d.ts +15 -0
- package/dist/Flex/Flex.d.ts +17 -0
- package/dist/Flex/index.d.ts +1 -0
- package/dist/LeftAndRightPanels/LeftAndRightPanels.d.ts +34 -0
- package/dist/LeftAndRightPanels/index.d.ts +1 -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/OvermapErrorBoundary/OvermapErrorBoundary.d.ts +3 -2
- package/dist/OvermapMenu/typings.d.ts +3 -3
- package/dist/Select/Select.d.ts +0 -1
- package/dist/Separator/Separator.d.ts +3 -0
- package/dist/Separator/index.d.ts +2 -0
- package/dist/Separator/typings.d.ts +20 -0
- package/dist/Sidebar/Sidebar.d.ts +30 -0
- package/dist/Sidebar/index.d.ts +1 -0
- package/dist/Table/Table.d.ts +3 -0
- package/dist/Table/index.d.ts +2 -0
- package/dist/Table/typings.d.ts +70 -0
- package/dist/Text/Text.d.ts +24 -0
- package/dist/Text/index.d.ts +1 -0
- package/dist/ToggleGroup/ToggleGroup.d.ts +7 -0
- package/dist/ToggleGroup/index.d.ts +2 -0
- package/dist/ToggleGroup/typings.d.ts +7 -0
- package/dist/Toolbar/Toolbar.d.ts +23 -0
- package/dist/Toolbar/index.d.ts +1 -0
- package/dist/blocks.js +2164 -172
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +2130 -145
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/style.css +386 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# overmap-ai blocks
|
|
2
|
-
|
|
3
|
-
Contains basic components used by overmap-ai libraries.
|
|
1
|
+
# overmap-ai blocks
|
|
2
|
+
|
|
3
|
+
Contains basic components used by overmap-ai libraries.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Link } from "@radix-ui/themes";
|
|
2
|
+
import { FlexProps } from "../Flex";
|
|
2
3
|
import { ComponentProps, HTMLProps, ReactNode } from "react";
|
|
3
4
|
import { Severity } from "../typings";
|
|
4
5
|
export interface BreadcrumbItemProps extends Omit<HTMLProps<HTMLAnchorElement>, "size" | "ref" | "color"> {
|
|
@@ -17,7 +18,7 @@ export interface BreadcrumbGroupProps extends Omit<HTMLProps<HTMLDivElement>, "h
|
|
|
17
18
|
/** The gap between Breadcrumb items
|
|
18
19
|
* @default "2"
|
|
19
20
|
* */
|
|
20
|
-
gap?:
|
|
21
|
+
gap?: FlexProps["gap"];
|
|
21
22
|
}
|
|
22
23
|
export declare const Group: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<BreadcrumbGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
23
24
|
export declare const Breadcrumb: {
|
|
@@ -18,7 +18,6 @@ interface ButtonListRootProps extends Pick<ButtonGroupProps, "size" | "variant"
|
|
|
18
18
|
export declare const ButtonListRoot: FC<ButtonListRootProps>;
|
|
19
19
|
interface ButtonListItemProps extends Omit<ButtonProps, "size" | "variant" | "severity" | "fluid"> {
|
|
20
20
|
}
|
|
21
|
-
/** @deprecated do not use */
|
|
22
21
|
export declare const ButtonList: {
|
|
23
22
|
Root: FC<ButtonListRootProps>;
|
|
24
23
|
Item: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<ButtonListItemProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ReactNode, ReactElement } from "react";
|
|
2
|
+
import { Checkbox as RadixCheckbox } from "@radix-ui/themes";
|
|
3
|
+
import { FlexProps } from "../Flex";
|
|
4
|
+
export type RadixCheckboxProps = React.ComponentProps<typeof RadixCheckbox>;
|
|
5
|
+
export type CheckboxValue = boolean | "indeterminate";
|
|
6
|
+
export interface CheckboxProps extends RadixCheckboxProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
labelClassName?: string;
|
|
9
|
+
label?: ReactNode;
|
|
10
|
+
doesLabelCheck?: boolean;
|
|
11
|
+
alwaysShow?: boolean;
|
|
12
|
+
checkboxPosition?: FlexProps["align"];
|
|
13
|
+
}
|
|
14
|
+
export interface SelectAllCheckboxProps extends Omit<CheckboxProps, "checked"> {
|
|
15
|
+
children: Array<ReactElement<CheckboxProps>>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InputProps } from "../Input";
|
|
2
|
+
import { ButtonProps } from "../Buttons/typings";
|
|
3
|
+
import { ChangeEvent } from "react";
|
|
4
|
+
export interface ConfirmEditInputProps extends InputProps {
|
|
5
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
onEditActivate?: (text: string | undefined) => void;
|
|
7
|
+
onEditConfirm?: (text: string | undefined) => void;
|
|
8
|
+
onEditCancel?: (text: string | undefined) => void;
|
|
9
|
+
textClassName?: string;
|
|
10
|
+
inputClassName?: string;
|
|
11
|
+
iconClassName?: string;
|
|
12
|
+
mode?: "buttons" | "keys";
|
|
13
|
+
buttonVariant?: ButtonProps["variant"];
|
|
14
|
+
buttonAlwaysVisible?: boolean;
|
|
15
|
+
}
|
|
@@ -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,34 @@
|
|
|
1
|
+
import { FC, ReactNode, ReactElement } from "react";
|
|
2
|
+
export interface LeftAndRightPanelsProps {
|
|
3
|
+
/** content to be rendered within the center panel */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** state to determine whether to show or hide the left panel*/
|
|
6
|
+
showLeft?: boolean;
|
|
7
|
+
/** content to be rendered within the left panel*/
|
|
8
|
+
leftPanel?: ReactElement;
|
|
9
|
+
/** minimum width of the left panel when resizing */
|
|
10
|
+
leftMinWidth?: number;
|
|
11
|
+
/** maximum width of the left panel when resizing */
|
|
12
|
+
leftMaxWidth?: number;
|
|
13
|
+
/** state to determine whether to show or hide the right panel*/
|
|
14
|
+
showRight?: boolean;
|
|
15
|
+
/** content to be rendered within the left panel*/
|
|
16
|
+
rightPanel?: ReactElement;
|
|
17
|
+
/** minimum width of the left panel when resizing */
|
|
18
|
+
rightMinWidth?: number;
|
|
19
|
+
/** maximum width of the left panel when resizing */
|
|
20
|
+
rightMaxWidth?: number;
|
|
21
|
+
/** used to disable or enable resizing on the left and right panels */
|
|
22
|
+
resizeable?: {
|
|
23
|
+
left?: boolean;
|
|
24
|
+
right?: boolean;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/** Panels are graphical elements that divide a screen or window into distinct sections, each of which can contain
|
|
28
|
+
* different types of content or functionality. They are often used to organize and present information in a structured
|
|
29
|
+
* manner. In many graphical user interfaces (GUIs), panels are draggable and resizable, allowing users to customize
|
|
30
|
+
* the layout to suit their preferences. Panels can be used for a variety of purposes, such as displaying navigation
|
|
31
|
+
* menus, presenting data, providing tools or controls, or hosting multimedia content. LeftAndRightPanels renders main
|
|
32
|
+
* content and provides left and right resizable, toggleable panels. This component can be rendered within any element
|
|
33
|
+
* as its container and the Panels will be scoped to the height and appear to the left and right of that container. */
|
|
34
|
+
export declare const LeftAndRightPanels: FC<LeftAndRightPanelsProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LeftAndRightPanels";
|
|
@@ -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
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface ErrorBoundaryProps extends React.PropsWithChildren {
|
|
3
3
|
absoluteCentering?: boolean;
|
|
4
|
+
message?: string;
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
export
|
|
6
|
+
declare const OvermapErrorBoundary: React.MemoExoticComponent<(props: ErrorBoundaryProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default OvermapErrorBoundary;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren, ReactElement } from "react";
|
|
2
2
|
import { VirtualElement } from "@floating-ui/react";
|
|
3
3
|
import { OvermapItemProps } from "../OvermapItem";
|
|
4
4
|
import { OvermapItemGroupProps } from "../OvermapItemGroup";
|
|
5
|
+
import { SeparatorProps } from "../Separator";
|
|
5
6
|
import { OvermapInputItemProps } from "../OvermapInputItem";
|
|
6
|
-
import { Separator } from "@radix-ui/themes";
|
|
7
7
|
export type MenuTriggerType = "click" | "context" | "virtual";
|
|
8
8
|
export type MenuAlignment = "start" | "center" | "end";
|
|
9
9
|
export type MenuSide = "top" | "right" | "bottom" | "left";
|
|
@@ -85,7 +85,7 @@ export interface PageContentProps extends PropsWithChildren {
|
|
|
85
85
|
export interface PageTriggerProps extends Omit<MenuItemProps, "closeOnSelect"> {
|
|
86
86
|
page: string;
|
|
87
87
|
}
|
|
88
|
-
export interface MenuSeparatorProps extends
|
|
88
|
+
export interface MenuSeparatorProps extends SeparatorProps {
|
|
89
89
|
extend?: boolean;
|
|
90
90
|
spacingAbove?: boolean;
|
|
91
91
|
spacingBelow?: boolean;
|
package/dist/Select/Select.d.ts
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Flex, Text, Separator as RadixSeparator, MarginProps } from "@radix-ui/themes";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { Severity } from "../typings";
|
|
4
|
+
export interface SeparatorProps extends Omit<ComponentProps<typeof RadixSeparator>, "color" | "asChild" | keyof MarginProps> {
|
|
5
|
+
/** text to be displayed in the middle of the separator */
|
|
6
|
+
text?: string;
|
|
7
|
+
/** when text is passed in, gap specifies the distance between the left and right separators and the text
|
|
8
|
+
* @default "1"
|
|
9
|
+
* */
|
|
10
|
+
gap?: ComponentProps<typeof Flex>["gap"];
|
|
11
|
+
/** the weight of the text
|
|
12
|
+
* @default "light"
|
|
13
|
+
* */
|
|
14
|
+
textWeight?: ComponentProps<typeof Text>["weight"];
|
|
15
|
+
/** severity of the separator
|
|
16
|
+
* @default "info"
|
|
17
|
+
* */
|
|
18
|
+
severity?: Severity;
|
|
19
|
+
weight?: "light" | "medium" | "bold" | "full";
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DialogContentProps } from "@radix-ui/react-dialog";
|
|
3
|
+
interface SidebarProps extends Omit<DialogContentProps, "asChild" | "forceMount"> {
|
|
4
|
+
/** determines what side the Sidebar appears from within its rendered container */
|
|
5
|
+
side?: "left" | "right";
|
|
6
|
+
/** when true, interactions with any elements outside the Sidebar will be disabled */
|
|
7
|
+
modal?: boolean;
|
|
8
|
+
/** The minimum width to which the Sidebar can be resized to
|
|
9
|
+
* @default 300px
|
|
10
|
+
* */
|
|
11
|
+
minWidth?: number | string;
|
|
12
|
+
/** The maximum width to which the Sidebar can be resized to
|
|
13
|
+
* @default 500px
|
|
14
|
+
* */
|
|
15
|
+
maxWidth?: number | string;
|
|
16
|
+
/** determines if the Sidebar can be resized
|
|
17
|
+
* @default true
|
|
18
|
+
* */
|
|
19
|
+
resizable?: boolean;
|
|
20
|
+
/** prop to control whether the Sidebar is open or not */
|
|
21
|
+
open?: boolean;
|
|
22
|
+
/** a selector string for the desired container for the Sidebar to render within
|
|
23
|
+
* @default '[data-is-root-theme="true"]'
|
|
24
|
+
* */
|
|
25
|
+
containerSelector?: string;
|
|
26
|
+
/** determine whether the Sidebar also renders with an Overlay*/
|
|
27
|
+
overlay?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const Sidebar: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<SidebarProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Sidebar";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from "react";
|
|
2
|
+
export type IdLabel = string | number;
|
|
3
|
+
export type ValueLabel = IdLabel | null | undefined;
|
|
4
|
+
export type TableLabel = ValueLabel | ReactNode;
|
|
5
|
+
export interface FilterValue {
|
|
6
|
+
value: ValueLabel;
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface TableCell {
|
|
10
|
+
id: IdLabel;
|
|
11
|
+
value: ValueLabel;
|
|
12
|
+
label: TableLabel;
|
|
13
|
+
onClick?: (e: Event) => void;
|
|
14
|
+
filterValue?: ValueLabel;
|
|
15
|
+
sortValue?: ValueLabel;
|
|
16
|
+
searchValue?: ValueLabel;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface TableColumn {
|
|
21
|
+
id: IdLabel;
|
|
22
|
+
label: TableLabel;
|
|
23
|
+
sort?: boolean;
|
|
24
|
+
search?: boolean;
|
|
25
|
+
filter?: boolean;
|
|
26
|
+
width?: string;
|
|
27
|
+
maxWidth?: string;
|
|
28
|
+
className?: string;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
filterValues?: FilterValue[];
|
|
31
|
+
}
|
|
32
|
+
export interface TableRow {
|
|
33
|
+
id: IdLabel;
|
|
34
|
+
onClick?: (row: TableRow) => void;
|
|
35
|
+
className?: string;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
loading?: boolean;
|
|
38
|
+
columns: {
|
|
39
|
+
[columnId: string]: TableCell;
|
|
40
|
+
};
|
|
41
|
+
decorator?: (row: ReactElement) => ReactElement;
|
|
42
|
+
}
|
|
43
|
+
export interface TableProps {
|
|
44
|
+
columns: TableColumn[];
|
|
45
|
+
data: TableRow[];
|
|
46
|
+
color?: "light" | "dark";
|
|
47
|
+
title?: string | ReactNode;
|
|
48
|
+
description?: string | ReactNode;
|
|
49
|
+
defaultRowsPerPage?: number;
|
|
50
|
+
rowsPerPage?: number[];
|
|
51
|
+
fixHeader?: boolean;
|
|
52
|
+
showSearchBar?: boolean;
|
|
53
|
+
searchBarPlaceholder?: string;
|
|
54
|
+
showSelect?: boolean;
|
|
55
|
+
showFilterButton?: boolean;
|
|
56
|
+
showContainer?: boolean;
|
|
57
|
+
showRowsPerPage?: boolean;
|
|
58
|
+
showPageNumber?: boolean;
|
|
59
|
+
showPageNavigation?: boolean;
|
|
60
|
+
children?: ReactNode;
|
|
61
|
+
topBarComponents?: ReactNode;
|
|
62
|
+
showTopBar?: boolean;
|
|
63
|
+
showBottomBar?: boolean;
|
|
64
|
+
emptyMessage?: string;
|
|
65
|
+
containerClassName?: string;
|
|
66
|
+
className?: string;
|
|
67
|
+
columnClassName?: string;
|
|
68
|
+
rowClassName?: string;
|
|
69
|
+
cellClassName?: string;
|
|
70
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FC, ForwardRefExoticComponent } from "react";
|
|
2
|
+
import { MarginProps, Text as RadixText } from "@radix-ui/themes";
|
|
3
|
+
import { Severity } from "../typings";
|
|
4
|
+
type RadixTextProps = typeof RadixText extends ForwardRefExoticComponent<infer P> ? P : never;
|
|
5
|
+
export type TextProps = Omit<RadixTextProps, keyof MarginProps | "ref" | "asChild" | "color"> & {
|
|
6
|
+
/** If true, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
noWrap?: boolean;
|
|
10
|
+
severity?: Severity;
|
|
11
|
+
/** @default span */
|
|
12
|
+
as?: RadixTextProps["as"];
|
|
13
|
+
/** @default 3 */
|
|
14
|
+
size?: RadixTextProps["size"];
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A foundational text primitive.
|
|
18
|
+
*
|
|
19
|
+
* Use the `as` prop to render text as a `p`, `label`, `div` or `span`. This prop is purely semantic and does not alter visual appearance.
|
|
20
|
+
*
|
|
21
|
+
* For the complete documentation, refer to https://www.radix-ui.com/themes/docs/components/text.
|
|
22
|
+
*/
|
|
23
|
+
export declare const Text: FC<TextProps>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Text";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { ToggleGroupSingleProps } from "./typings";
|
|
3
|
+
/** The Toggle Group Component is a user interface element that allows users to select a single option from a set of
|
|
4
|
+
* mutually exclusive choices. It is commonly used in situations where users need to make a single selection from a
|
|
5
|
+
* predefined list of options. This component is built using the ButtonGroup and IconButton components in combination
|
|
6
|
+
* with the Radix Toggle Group primitive found here https://www.radix-ui.com/primitives/docs/components/toggle-group */
|
|
7
|
+
export declare const ToggleGroup: FC<ToggleGroupSingleProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ToggleGroupItemProps as RadixToggleGroupItemProps, ToggleGroupSingleProps as RadixToggleGroupSingleProps } from "@radix-ui/react-toggle-group";
|
|
2
|
+
import { ButtonGroupProps } from "../ButtonGroup";
|
|
3
|
+
export interface ToggleGroupItemProps extends Omit<RadixToggleGroupItemProps, "asChild"> {
|
|
4
|
+
}
|
|
5
|
+
export interface ToggleGroupSingleProps extends Omit<RadixToggleGroupSingleProps, "dir" | "orientation">, Omit<ButtonGroupProps, "children" | "defaultValue" | "variant"> {
|
|
6
|
+
items: ToggleGroupItemProps[];
|
|
7
|
+
}
|
|
@@ -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 { Toolbar } from "./Toolbar";
|