@overmap-ai/blocks 1.0.25-component-forms.0 → 1.0.25-export-error-fixes.0
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/Badge/Badge.d.ts +1 -1
- package/dist/Badge/index.d.ts +1 -1
- package/dist/Badge/typings.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseItemGroup/BaseItemGroup.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseItemGroup/index.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseItemGroup/typings.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseMultiSelectGroup/BaseMultiSelectGroup.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseMultiSelectGroup/index.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseMultiSelectGroup/typings.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseSelectGroup/BaseSelectGroup.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseSelectGroup/index.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseSelectGroup/typings.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseSubMenuGroup/BaseSubMenuGroup.d.ts +2 -2
- package/dist/BaseMenuGroups/BaseSubMenuGroup/index.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseSubMenuGroup/typings.d.ts +1 -1
- package/dist/BaseMenuGroups/index.d.ts +1 -1
- package/dist/BaseMenuGroups/typings.d.ts +2 -7
- package/dist/BaseMenuGroups/utils.d.ts +1 -1
- package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup/typings.d.ts +1 -1
- package/dist/Buttons/Button.d.ts +1 -1
- package/dist/Buttons/IconButton.d.ts +1 -1
- package/dist/Buttons/constants.d.ts +1 -1
- package/dist/Buttons/index.d.ts +4 -4
- package/dist/Buttons/typings.d.ts +1 -1
- package/dist/Checkbox/typings.d.ts +0 -2
- package/dist/ContextActionMenu/ContextActionMenu.d.ts +8 -0
- package/dist/ContextActionMenu/index.d.ts +1 -0
- package/dist/ContextMenu/ContextMenuGroups.d.ts +6 -0
- package/dist/ContextMenu/Root.d.ts +24 -0
- package/dist/ContextMenu/index.d.ts +9 -0
- package/dist/ContextMultiSelectMenu/ContextMultiSelectMenu.d.ts +9 -0
- package/dist/ContextMultiSelectMenu/index.d.ts +1 -0
- package/dist/ContextSelectMenu/ContextSelectMenu.d.ts +9 -0
- package/dist/ContextSelectMenu/index.d.ts +1 -0
- package/dist/DropdownItemMenu/DropdownItemMenu.d.ts +3 -2
- package/dist/DropdownItemMenu/index.d.ts +0 -1
- package/dist/DropdownMenu/DropdownMenu.d.ts +3 -2
- package/dist/DropdownMenu/index.d.ts +1 -3
- package/dist/DropdownMultiSelect/DropdownMultiSelect.d.ts +2 -1
- package/dist/DropdownMultiSelect/index.d.ts +0 -1
- package/dist/DropdownSelect/DropdownSelect.d.ts +3 -2
- package/dist/DropdownSelect/index.d.ts +1 -2
- package/dist/IconColorUtility/IconColorUtility.d.ts +1 -1
- package/dist/Input/Input.d.ts +1 -1
- package/dist/Input/typings.d.ts +1 -1
- package/dist/Layout/SlideOutOverlay.d.ts +1 -1
- package/dist/Layout/SlideOutTrigger.d.ts +1 -0
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/index.d.ts +1 -0
- package/dist/Select/index.d.ts +1 -1
- package/dist/Separator/Separator.d.ts +1 -1
- package/dist/Separator/index.d.ts +1 -1
- package/dist/Separator/typings.d.ts +1 -1
- package/dist/SlideOut/SlideOutV2.d.ts +1 -1
- package/dist/SlideOutV3/SlideOutV3.d.ts +7 -2
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/typings.d.ts +1 -1
- package/dist/TextArea/TextArea.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/typings.d.ts +1 -1
- package/dist/Toast/typings.d.ts +1 -1
- package/dist/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/dist/ToggleGroup/index.d.ts +1 -1
- package/dist/blocks.js +203 -49
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +200 -46
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/style.css +27 -22
- package/dist/typings.d.ts +2 -2
- package/package.json +104 -104
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.
|
package/dist/Badge/Badge.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { BadgeProps } from "./typings
|
|
2
|
+
import { BadgeProps } from "./typings";
|
|
3
3
|
/** The Badge Component is a user interface element that provides visual feedback, typically displaying a small amount
|
|
4
4
|
* of information. It is commonly used to indicate counts, statuses, or labels in a concise and visually appealing
|
|
5
5
|
* manner. This Badge components wraps the Badge component from Radix-ui found here https://www.radix-ui.com/themes/docs/components/badge */
|
package/dist/Badge/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./Badge";
|
|
2
|
-
export * from "./typings
|
|
2
|
+
export * from "./typings";
|
package/dist/Badge/typings.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { Badge as RadixBadge, MarginProps } from "@radix-ui/themes";
|
|
3
|
-
import { Severity } from "../typings
|
|
3
|
+
import { Severity } from "../typings";
|
|
4
4
|
export interface BadgeProps extends Omit<ComponentProps<typeof RadixBadge>, keyof MarginProps> {
|
|
5
5
|
/** The severity of the Badge, supports all global severities. Note that specifying a severity will overwrite any
|
|
6
6
|
* color passed into the Badge component. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseItemGroupElementProps, BaseItemGroupProps } from "./typings
|
|
2
|
+
import { BaseItemGroupElementProps, BaseItemGroupProps } from "./typings";
|
|
3
3
|
export declare const BaseItemGroup: import("react").NamedExoticComponent<BaseItemGroupProps & BaseItemGroupElementProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./BaseItemGroup";
|
|
2
|
-
export type { BaseItemProps, BaseItemGroupProps, BaseItemGroupElementProps } from "./typings
|
|
2
|
+
export type { BaseItemProps, BaseItemGroupProps, BaseItemGroupElementProps } from "./typings";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactElement } from "react";
|
|
2
2
|
import { MenuGroupProps, MenuItemProps } from "@radix-ui/react-menu";
|
|
3
|
-
import { BaseMenuItemProps, BaseMenuGroupProps, TextFilterProps } from "../typings
|
|
3
|
+
import { BaseMenuItemProps, BaseMenuGroupProps, TextFilterProps } from "../typings";
|
|
4
4
|
export type BaseItemProps = BaseMenuItemProps & Omit<MenuItemProps, "asChild" | "content"> & {
|
|
5
5
|
shortcut?: string[];
|
|
6
6
|
itemDecorator?: (itemElement: ReactElement) => ReactElement;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseMultiSelectGroupProps, BaseMultiSelectGroupElementProps } from "./typings
|
|
2
|
+
import { BaseMultiSelectGroupProps, BaseMultiSelectGroupElementProps } from "./typings";
|
|
3
3
|
export declare const BaseMultiSelectGroup: import("react").NamedExoticComponent<BaseMultiSelectGroupProps & BaseMultiSelectGroupElementProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./BaseMultiSelectGroup";
|
|
2
|
-
export
|
|
2
|
+
export * from "./typings";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MenuCheckboxItemProps, MenuGroupProps, MenuItemIndicatorProps } from "@radix-ui/react-menu";
|
|
2
2
|
import { FC, ReactNode } from "react";
|
|
3
|
-
import { BaseMenuItemProps, BaseMenuGroupProps, TextFilterProps } from "../typings
|
|
3
|
+
import { BaseMenuItemProps, BaseMenuGroupProps, TextFilterProps } from "../typings";
|
|
4
4
|
export type BaseMultiSelectItemProps = BaseMenuItemProps & Omit<MenuCheckboxItemProps, "asChild" | "content" | "checked" | "onCheckedChange"> & {
|
|
5
5
|
value: string;
|
|
6
6
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseSelectGroupProps, BaseSelectGroupElementProps } from "./typings
|
|
2
|
+
import { BaseSelectGroupProps, BaseSelectGroupElementProps } from "./typings";
|
|
3
3
|
export declare const BaseSelectGroup: import("react").NamedExoticComponent<BaseSelectGroupProps & BaseSelectGroupElementProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./BaseSelectGroup";
|
|
2
|
-
export
|
|
2
|
+
export * from "./typings";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
2
|
import { MenuCheckboxItemProps, MenuGroupProps, MenuItemIndicatorProps } from "@radix-ui/react-menu";
|
|
3
|
-
import { BaseMenuItemProps, BaseMenuGroupProps, TextFilterProps } from "../typings
|
|
3
|
+
import { BaseMenuItemProps, BaseMenuGroupProps, TextFilterProps } from "../typings";
|
|
4
4
|
export type BaseSelectItemProps = BaseMenuItemProps & Omit<MenuCheckboxItemProps, "asChild" | "content"> & {
|
|
5
5
|
value: string;
|
|
6
6
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseSubMenuGroupElementProps } from "./typings
|
|
3
|
-
export declare const BaseSubMenuGroup: import("react").NamedExoticComponent<Omit<import("
|
|
2
|
+
import { BaseSubMenuGroupElementProps } from "./typings";
|
|
3
|
+
export declare const BaseSubMenuGroup: import("react").NamedExoticComponent<Omit<import("..").BaseMenuGroupProps<import("./typings").BaseSubMenuItemProps>, "closeOnSelect"> & Omit<import("@radix-ui/react-menu").MenuGroupProps, "color" | "asChild"> & BaseSubMenuGroupElementProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./BaseSubMenuGroup";
|
|
2
|
-
export
|
|
2
|
+
export * from "./typings";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
2
|
import { MenuGroupProps, MenuSubContentProps, MenuSubProps, MenuSubTriggerProps } from "@radix-ui/react-menu";
|
|
3
|
-
import { BaseMenuItemProps, BaseMenuGroupProps } from "../typings
|
|
3
|
+
import { BaseMenuItemProps, BaseMenuGroupProps } from "../typings";
|
|
4
4
|
export type BaseSubMenuItemProps = BaseMenuItemProps & Omit<MenuSubTriggerProps, "asChild" | "content"> & {
|
|
5
5
|
triggerIndicator: ReactNode;
|
|
6
6
|
subContent: ReactNode;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { AllOrNone } from "../utils.ts";
|
|
1
|
+
import { ReactElement, ReactNode } from "react";
|
|
2
|
+
import { AllOrNone } from "../utils";
|
|
4
3
|
export interface BaseMenuGroupProps<TItemProps> {
|
|
5
4
|
closeOnSelect?: boolean;
|
|
6
5
|
items: TItemProps[];
|
|
@@ -30,8 +29,4 @@ export type BaseMenuProps = {
|
|
|
30
29
|
* @default false
|
|
31
30
|
*/
|
|
32
31
|
disabled?: boolean;
|
|
33
|
-
/** determines on which side of the trigger the dropdown select renders on, if open space
|
|
34
|
-
* @default "bottom"
|
|
35
|
-
* */
|
|
36
|
-
side?: ComponentProps<typeof RadixDropdownMenu.Content>["side"];
|
|
37
32
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MenuItemProps } from "@radix-ui/react-menu";
|
|
2
2
|
import { ChangeEvent } from "react";
|
|
3
|
-
import { TextFilterProps } from "./typings
|
|
3
|
+
import { TextFilterProps } from "./typings";
|
|
4
4
|
export declare const useCloseOnSelectHandler: (closeOnSelect: boolean) => (onSelect: MenuItemProps["onSelect"]) => (event: Event) => void;
|
|
5
5
|
export declare const useTextFilterChangeHandler: () => (onTextFilterChange: TextFilterProps["onFilterValueChange"]) => (event: ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Link } from "@radix-ui/themes";
|
|
2
2
|
import { FlexProps } from "../Flex";
|
|
3
3
|
import { ComponentProps, HTMLProps, ReactNode } from "react";
|
|
4
|
-
import { Severity } from "../typings
|
|
4
|
+
import { Severity } from "../typings";
|
|
5
5
|
export interface BreadcrumbItemProps extends Omit<HTMLProps<HTMLAnchorElement>, "size" | "ref" | "color"> {
|
|
6
6
|
}
|
|
7
7
|
export declare const Item: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<BreadcrumbItemProps & import("react").RefAttributes<HTMLAnchorElement>>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { ButtonGroupProps } from "./typings
|
|
2
|
+
import { ButtonGroupProps } from "./typings";
|
|
3
3
|
/** The ButtonGroup Component is a user interface element that groups multiple buttons together for improved user
|
|
4
4
|
* interaction and visual clarity. It is commonly used to present related actions or options in a compact and organized
|
|
5
5
|
* manner. The ButtonGroup supports all props of the RadixUI Flex layout component besides MarginProps,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Flex, MarginProps, Responsive } from "@radix-ui/themes";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import { Severity, Size, Variant } from "../typings
|
|
3
|
+
import { Severity, Size, Variant } from "../typings";
|
|
4
4
|
import { ButtonHoverEffect } from "../Buttons";
|
|
5
5
|
export interface ButtonGroupProps extends Omit<ComponentProps<typeof Flex>, keyof MarginProps | "size" | "direction" | "asChild"> {
|
|
6
6
|
/** The direction in which the Buttons within the ButtonGroup are stacked
|
package/dist/Buttons/Button.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonHoverEffect } from "./typings
|
|
1
|
+
import { ButtonHoverEffect } from "./typings";
|
|
2
2
|
import { KeyboardEvent } from "react";
|
|
3
3
|
export declare const hoverEffectClassNameMapping: Record<ButtonHoverEffect, string | undefined>;
|
|
4
4
|
/** Passing this to a `div` will make it behave like a `button`. However, it will **NOT** support the disabled state. */
|
package/dist/Buttons/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as Button } from "./Button
|
|
2
|
-
export { default as IconButton } from "./IconButton
|
|
3
|
-
export type { ButtonHoverEffect } from "./typings
|
|
4
|
-
export { divButtonProps } from "./constants
|
|
1
|
+
export { default as Button } from "./Button";
|
|
2
|
+
export { default as IconButton } from "./IconButton";
|
|
3
|
+
export type { ButtonHoverEffect } from "./typings";
|
|
4
|
+
export { divButtonProps } from "./constants";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Button as RadixButton, MarginProps, Responsive } from "@radix-ui/themes";
|
|
3
|
-
import { Severity, Size, Variant } from "../typings
|
|
3
|
+
import { Severity, Size, Variant } from "../typings";
|
|
4
4
|
export interface Shortcut {
|
|
5
5
|
keys: string[];
|
|
6
6
|
action: () => void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode, ReactElement } from "react";
|
|
2
2
|
import { Checkbox as RadixCheckbox } from "@radix-ui/themes";
|
|
3
|
-
import { FlexProps } from "../Flex";
|
|
4
3
|
export type RadixCheckboxProps = React.ComponentProps<typeof RadixCheckbox>;
|
|
5
4
|
export type CheckboxValue = boolean | "indeterminate";
|
|
6
5
|
export interface CheckboxProps extends RadixCheckboxProps {
|
|
@@ -9,7 +8,6 @@ export interface CheckboxProps extends RadixCheckboxProps {
|
|
|
9
8
|
label?: ReactNode;
|
|
10
9
|
doesLabelCheck?: boolean;
|
|
11
10
|
alwaysShow?: boolean;
|
|
12
|
-
checkboxPosition?: FlexProps["align"];
|
|
13
11
|
}
|
|
14
12
|
export interface SelectAllCheckboxProps extends Omit<CheckboxProps, "checked"> {
|
|
15
13
|
children: Array<ReactElement<CheckboxProps>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ContextMenuRootProps } from "../ContextMenu";
|
|
3
|
+
import { BaseItemGroupProps } from "../BaseMenuGroups";
|
|
4
|
+
export type ContextActionMenuProps = Omit<ContextMenuRootProps, "content"> & BaseItemGroupProps;
|
|
5
|
+
/** Creates a Context Menu containing "action" items only. Its desired use is for displaying a list of actions that need to be
|
|
6
|
+
* rendered within a Context Menu that appears upon right-clicking within its trigger element.
|
|
7
|
+
* It is a wrapper around the ContextMenu API's Root and ItemGroup components. */
|
|
8
|
+
export declare const ContextActionMenu: import("react").MemoExoticComponent<(props: ContextActionMenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ContextActionMenu";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseItemGroupProps, BaseMultiSelectGroupProps, BaseSelectGroupProps, BaseSubMenuGroupProps } from "../BaseMenuGroups";
|
|
3
|
+
export declare const ActionItemGroup: import("react").MemoExoticComponent<(props: BaseItemGroupProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
+
export declare const SelectItemGroup: import("react").MemoExoticComponent<(props: BaseSelectGroupProps) => import("react/jsx-runtime").JSX.Element>;
|
|
5
|
+
export declare const MultiSelectItemGroup: import("react").MemoExoticComponent<(props: BaseMultiSelectGroupProps) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
+
export declare const SubItemGroup: import("react").MemoExoticComponent<(props: BaseSubMenuGroupProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
import { ContextMenuContentProps, ContextMenuProps } from "@radix-ui/react-context-menu";
|
|
3
|
+
export interface ContextMenuRootProps extends PropsWithChildren, Omit<ContextMenuContentProps, "color" | "content"> {
|
|
4
|
+
/** used to disable the Context Menu from appearing on right click within its trigger element.
|
|
5
|
+
* @default false
|
|
6
|
+
* */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** used to disable pointer events outside the Context Menu when its open.
|
|
9
|
+
* @default false
|
|
10
|
+
* */
|
|
11
|
+
modal?: ContextMenuProps["modal"];
|
|
12
|
+
/** content to be displayed within the Context Menu.
|
|
13
|
+
* The following components are recommended:
|
|
14
|
+
* ContextMenu.ItemGroup
|
|
15
|
+
* ContextMenu.SelectGroup
|
|
16
|
+
* ContextMenu.MultiSelectGroup
|
|
17
|
+
* ContextMenu.SubMenuGroup
|
|
18
|
+
* */
|
|
19
|
+
content: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/** The Root component of the ContextMenu API is simply used to render a popover when right-clicking within the
|
|
22
|
+
* Context Menu's trigger. Its content can be completely customized using the ```content``` prop.
|
|
23
|
+
* */
|
|
24
|
+
export declare const Root: import("react").MemoExoticComponent<(props: ContextMenuRootProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type { ContextMenuRootProps } from "./Root";
|
|
3
|
+
export declare const ContextMenu: {
|
|
4
|
+
Root: import("react").MemoExoticComponent<(props: import("./Root").ContextMenuRootProps) => import("react/jsx-runtime").JSX.Element>;
|
|
5
|
+
ActionItemGroup: import("react").MemoExoticComponent<(props: import("..").BaseItemGroupProps) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
+
SelectItemGroup: import("react").MemoExoticComponent<(props: import("..").BaseSelectGroupProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
MultiSelectItemGroup: import("react").MemoExoticComponent<(props: import("..").BaseMultiSelectGroupProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
SubItemGroup: import("react").MemoExoticComponent<(props: import("..").BaseSubMenuGroupProps) => import("react/jsx-runtime").JSX.Element>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ContextMenuRootProps } from "../ContextMenu";
|
|
3
|
+
import { BaseMultiSelectGroupProps } from "../BaseMenuGroups";
|
|
4
|
+
export type ContextMultiSelectMenuProps = Omit<ContextMenuRootProps, "content"> & BaseMultiSelectGroupProps;
|
|
5
|
+
/** Creates a Context Menu displaying a list of items to select from.
|
|
6
|
+
* Its desired use is for displaying a list of options, where multiple items can be selected at a time,
|
|
7
|
+
* within a Context Menu that appears upon right-clicking within its trigger element.
|
|
8
|
+
* It is a wrapper around the ContextMenu API's Root and MultiSelect components. */
|
|
9
|
+
export declare const ContextMultiSelectMenu: import("react").MemoExoticComponent<(props: ContextMultiSelectMenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ContextMultiSelectMenu";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ContextMenuRootProps } from "../ContextMenu";
|
|
3
|
+
import { BaseSelectGroupProps } from "../BaseMenuGroups";
|
|
4
|
+
export type ContextSelectMenuProps = Omit<ContextMenuRootProps, "content"> & BaseSelectGroupProps;
|
|
5
|
+
/** Creates a Context Menu displaying a list of items to select from.
|
|
6
|
+
* Its desired use is for displaying a list of options, where only one can be selected at a time,
|
|
7
|
+
* within a Context Menu that appears upon right-clicking within its trigger element.
|
|
8
|
+
* It is a wrapper around the ContextMenu API's Root and SelectGroup components. */
|
|
9
|
+
export declare const ContextSelectMenu: import("react").MemoExoticComponent<(props: ContextSelectMenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ContextSelectMenu";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
import { DropdownMenuItemGroupItemProps, DropdownMenuItemGroupProps } from "../DropdownMenu";
|
|
3
4
|
import { BaseMenuProps } from "../BaseMenuGroups";
|
|
4
5
|
export type DropdownItemMenuItemProps = DropdownMenuItemGroupItemProps;
|
|
5
|
-
export type DropdownItemMenuProps = DropdownMenuItemGroupProps & BaseMenuProps;
|
|
6
|
+
export type DropdownItemMenuProps = DropdownMenuItemGroupProps & BaseMenuProps & DropdownMenuContentProps;
|
|
6
7
|
/** The DropdownItemMenu component is a user interface element that provides a list of options for the user to choose from.
|
|
7
8
|
* It is commonly used in web applications to present a set of related choices in a compact and organized manner.
|
|
8
9
|
* This DropdownItemMenu component is a wrapper around the Radix-UI DropdownItemMenu component that can be found here https://www.radix-ui.com/themes/docs/components/dropdown-menu */
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
import { DropdownMenuItemGroupItemProps } from "./DropdownMenuGroups";
|
|
3
4
|
import { BaseMenuProps } from "../BaseMenuGroups";
|
|
4
5
|
export type DropdownMenuItemProps = DropdownMenuItemGroupItemProps;
|
|
5
|
-
export type DropdownMenuProps = PropsWithChildren & BaseMenuProps;
|
|
6
|
+
export type DropdownMenuProps = PropsWithChildren & BaseMenuProps & DropdownMenuContentProps;
|
|
6
7
|
/** The DropdownMenu component is a user interface element that provides a list of options for the user to choose from.
|
|
7
8
|
* It is commonly used in web applications to present a set of related choices in a compact and organized manner.
|
|
8
9
|
* This DropdownMenu component is a wrapper around the Radix-UI DropdownMenu component that can be found here https://www.radix-ui.com/themes/docs/components/dropdown-menu */
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type { DropdownMenuProps, DropdownMenuItemProps } from "./DropdownMenu";
|
|
1
|
+
export * from "./DropdownMenu";
|
|
3
2
|
export * from "./DropdownMenuGroups";
|
|
4
|
-
export type { DropdownMenuItemGroupProps, DropdownMenuItemGroupItemProps, DropdownMenuSelectGroupProps, DropdownMenuSelectGroupItemProps, DropdownMenuMultiSelectGroupProps, DropdownMenuMultiSelectGroupItemProps, DropdownMenuSubMenuGroupProps, DropdownMenuSubMenuGroupItemProps, } from "./DropdownMenuGroups.tsx";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
+
import { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
|
|
2
3
|
import { DropdownMenuMultiSelectGroupItemProps, DropdownMenuMultiSelectGroupProps } from "../DropdownMenu";
|
|
3
4
|
import { BaseMenuProps } from "../BaseMenuGroups";
|
|
4
5
|
export type DropdownMultiSelectItemProps = DropdownMenuMultiSelectGroupItemProps;
|
|
5
|
-
export type DropdownMultiSelectProps = DropdownMenuMultiSelectGroupProps & BaseMenuProps;
|
|
6
|
+
export type DropdownMultiSelectProps = DropdownMenuMultiSelectGroupProps & BaseMenuProps & DropdownMenuContentProps;
|
|
6
7
|
export declare const DropdownMultiSelect: FC<DropdownMultiSelectProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
import { DropdownMenuItemGroupItemProps, DropdownMenuSelectGroupProps } from "../DropdownMenu";
|
|
3
4
|
import { BaseMenuProps } from "../BaseMenuGroups";
|
|
4
5
|
export type DropdownSelectItemProps = DropdownMenuItemGroupItemProps;
|
|
5
|
-
export type DropdownSelectProps = DropdownMenuSelectGroupProps & BaseMenuProps;
|
|
6
|
+
export type DropdownSelectProps = DropdownMenuSelectGroupProps & BaseMenuProps & DropdownMenuContentProps;
|
|
6
7
|
export declare const DropdownSelect: FC<DropdownSelectProps>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type { DropdownSelectProps, DropdownSelectItemProps } from "./DropdownSelect";
|
|
1
|
+
export * from "./DropdownSelect";
|
package/dist/Input/Input.d.ts
CHANGED
package/dist/Input/typings.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Responsive, TextField as RadixTextField } from "@radix-ui/themes";
|
|
3
|
-
import { Severity, Size } from "../typings
|
|
3
|
+
import { Severity, Size } from "../typings";
|
|
4
4
|
import { MarginProps } from "@radix-ui/themes";
|
|
5
5
|
type TextFieldInputProps = React.ComponentProps<typeof RadixTextField.Input>;
|
|
6
6
|
export interface InputProps extends Omit<TextFieldInputProps, "size" | "color" | "radius" | "variant" | keyof MarginProps> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PropsWithClassNameAndStyle } from "../typings
|
|
2
|
+
import { PropsWithClassNameAndStyle } from "../typings";
|
|
3
3
|
import { SlideOutV3Props } from "../SlideOutV3";
|
|
4
4
|
export interface OverlayProps extends PropsWithClassNameAndStyle {
|
|
5
5
|
active?: boolean;
|
|
@@ -2,5 +2,6 @@ import { PropsWithChildren } from "react";
|
|
|
2
2
|
import { SlideOutV3Props } from "../SlideOutV3";
|
|
3
3
|
export interface SlideOutTriggerProps extends PropsWithChildren {
|
|
4
4
|
side: SlideOutV3Props["side"];
|
|
5
|
+
type?: "toggle" | "open" | "close";
|
|
5
6
|
}
|
|
6
7
|
export declare const SlideOutTrigger: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<SlideOutTriggerProps & import("react").RefAttributes<HTMLButtonElement>>>;
|
package/dist/Popover/index.d.ts
CHANGED
package/dist/Select/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./Select";
|
|
2
|
-
export * from "./typings
|
|
2
|
+
export * from "./typings";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./Separator";
|
|
2
|
-
export * from "./typings
|
|
2
|
+
export * from "./typings";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Flex, Text, Separator as RadixSeparator, MarginProps } from "@radix-ui/themes";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import { Severity } from "../typings
|
|
3
|
+
import { Severity } from "../typings";
|
|
4
4
|
export interface SeparatorProps extends Omit<ComponentProps<typeof RadixSeparator>, "color" | "asChild" | keyof MarginProps> {
|
|
5
5
|
/** text to be displayed in the middle of the separator */
|
|
6
6
|
text?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
import { FocusOutsideEvent, PointerDownOutsideEvent } from "@radix-ui/react-dismissable-layer";
|
|
3
|
-
import { PropsWithClassNameAndStyle } from "../typings
|
|
3
|
+
import { PropsWithClassNameAndStyle } from "../typings";
|
|
4
4
|
export type DismissibleEventTypes = PointerDownOutsideEvent | FocusOutsideEvent | KeyboardEvent;
|
|
5
5
|
export interface SlideOutV2Props extends PropsWithChildren, PropsWithClassNameAndStyle {
|
|
6
6
|
/** The controlled open state of the SlideOut */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from "react";
|
|
2
|
-
import { PropsWithClassNameAndStyle } from "../typings
|
|
2
|
+
import { PropsWithClassNameAndStyle } from "../typings";
|
|
3
3
|
export interface SlideOutV3Props extends PropsWithChildren, PropsWithClassNameAndStyle {
|
|
4
4
|
/** The controlled open state of the SlideOut */
|
|
5
5
|
open: boolean;
|
|
@@ -8,6 +8,11 @@ export interface SlideOutV3Props extends PropsWithChildren, PropsWithClassNameAn
|
|
|
8
8
|
* to the SlideOut component as well.
|
|
9
9
|
* @default false */
|
|
10
10
|
modal?: boolean;
|
|
11
|
+
/** hides the SlideOut and its overlay but doesn't change the open state of the SlideOut. Should be used if
|
|
12
|
+
* the SlideOut needs to be hidden for some reason but not triggering a close
|
|
13
|
+
* @default false
|
|
14
|
+
* */
|
|
15
|
+
hide?: boolean;
|
|
11
16
|
/** The side the SlideOut should position on and "slide-in" from */
|
|
12
17
|
side: "left" | "right";
|
|
13
18
|
/** controls if the SlideOut can be resized by the user
|
|
@@ -38,7 +43,7 @@ export interface SlideOutV3Props extends PropsWithChildren, PropsWithClassNameAn
|
|
|
38
43
|
/** overlay to be rendered when the SlideOut is open*/
|
|
39
44
|
overlayComponent?: ReactNode;
|
|
40
45
|
/** content to be rendered within the SlideOut */
|
|
41
|
-
content: ReactNode;
|
|
46
|
+
content: ReactNode | null;
|
|
42
47
|
}
|
|
43
48
|
/** The SlideOut component is a UI element that allows you to create a slide-in/slide-out effect for content within
|
|
44
49
|
* your application. It provides a smooth transition animation for revealing and hiding content. */
|
package/dist/Switch/Switch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { SwitchProps } from "./typings
|
|
2
|
+
import { SwitchProps } from "./typings";
|
|
3
3
|
/** The Switch Component is a user interface element that allows users to toggle between two states, typically
|
|
4
4
|
* representing "on" and "off" or "enabled" and "disabled". It is commonly used for settings, preferences, or any
|
|
5
5
|
* binary options. This Switch component is a wrapper around the Radix-ui Switch component found here https://www.radix-ui.com/themes/docs/components/switch
|
package/dist/Switch/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./Switch";
|
|
2
|
-
export * from "./typings
|
|
2
|
+
export * from "./typings";
|
package/dist/Switch/typings.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, ReactElement, ReactNode } from "react";
|
|
2
2
|
import { MarginProps, Switch as RadixSwitch } from "@radix-ui/themes";
|
|
3
|
-
import { Severity } from "../typings
|
|
3
|
+
import { Severity } from "../typings";
|
|
4
4
|
interface SwitchIconProps {
|
|
5
5
|
checked: ReactNode;
|
|
6
6
|
unchecked: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { TextAreaProps } from "./typings
|
|
2
|
+
import { TextAreaProps } from "./typings";
|
|
3
3
|
/** The TextArea Component is a user interface element that allows users to input and edit multi-line text.
|
|
4
4
|
It is commonly used in forms, chat applications, and other scenarios where longer text inputs are required.
|
|
5
5
|
This TextArea is a wrapper of the RadixUI TextArea component found here https://www.radix-ui.com/themes/docs/components/text-area.
|
package/dist/TextArea/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./TextArea";
|
|
2
|
-
export * from "./typings
|
|
2
|
+
export * from "./typings";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { TextArea as RadixTextArea, MarginProps } from "@radix-ui/themes";
|
|
3
|
-
import { Severity } from "../typings
|
|
3
|
+
import { Severity } from "../typings";
|
|
4
4
|
export interface TextAreaProps extends Omit<ComponentProps<typeof RadixTextArea>, keyof MarginProps | "color" | "variant"> {
|
|
5
5
|
/** used to set the severity of the TextArea, supports all 5 global severities
|
|
6
6
|
* @default "primary"
|
package/dist/Toast/typings.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps, ReactElement, ReactNode } from "react";
|
|
2
2
|
import { ToastActionProps, ToastProps as RadixToastProps, ToastProviderProps, ToastViewportProps } from "@radix-ui/react-toast";
|
|
3
3
|
import { Callout } from "@radix-ui/themes";
|
|
4
|
-
import { Severity } from "../typings
|
|
4
|
+
import { Severity } from "../typings";
|
|
5
5
|
export interface ToastProps {
|
|
6
6
|
size?: ComponentProps<typeof Callout.Root>["size"];
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { ToggleGroupSingleProps } from "./typings
|
|
2
|
+
import { ToggleGroupSingleProps } from "./typings";
|
|
3
3
|
/** The Toggle Group Component is a user interface element that allows users to select a single option from a set of
|
|
4
4
|
* mutually exclusive choices. It is commonly used in situations where users need to make a single selection from a
|
|
5
5
|
* predefined list of options. This component is built using the ButtonGroup and IconButton components in combination
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./ToggleGroup";
|
|
2
|
-
export * from "./typings
|
|
2
|
+
export * from "./typings";
|