@overmap-ai/blocks 1.0.31-minimize-size.7 → 1.0.31-tailwind-components.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/AlertDialog/Content.d.ts +7 -0
- package/dist/AlertDialog/Provider.d.ts +2 -0
- package/dist/AlertDialog/context.d.ts +5 -0
- package/dist/AlertDialog/cva.d.ts +4 -0
- package/dist/AlertDialog/hooks.d.ts +1 -0
- package/dist/AlertDialog/index.d.ts +14 -0
- package/dist/AlertDialog/typings.d.ts +19 -0
- package/dist/Avatar/Fallback.d.ts +5 -0
- package/dist/Avatar/Image.d.ts +5 -0
- package/dist/Avatar/Root.d.ts +7 -0
- package/dist/Avatar/context.d.ts +7 -0
- package/dist/Avatar/cva.d.ts +6 -0
- package/dist/Avatar/index.d.ts +9 -0
- package/dist/Avatar/typings.d.ts +12 -0
- package/dist/Badge/Badge.d.ts +6 -6
- package/dist/Badge/cva.d.ts +5 -0
- package/dist/Badge/index.d.ts +1 -0
- package/dist/Badge/typings.d.ts +12 -7
- package/dist/ButtonGroup/ButtonGroup.d.ts +9 -7
- package/dist/ButtonGroup/context.d.ts +9 -4
- package/dist/ButtonGroup/index.d.ts +1 -2
- package/dist/Buttons/Button.d.ts +6 -4
- package/dist/Buttons/IconButton.d.ts +5 -7
- package/dist/Buttons/cva.d.ts +5 -0
- package/dist/Buttons/index.d.ts +4 -4
- package/dist/Buttons/typings.d.ts +11 -24
- package/dist/Checkbox/Indicator.d.ts +5 -0
- package/dist/Checkbox/Root.d.ts +7 -0
- package/dist/Checkbox/cva.d.ts +4 -0
- package/dist/Checkbox/index.d.ts +7 -3
- package/dist/Checkbox/typings.d.ts +11 -15
- package/dist/CollapsibleTree/context.d.ts +1 -4
- package/dist/CollapsibleTree/typings.d.ts +3 -16
- package/dist/Dialog/Content.d.ts +11 -0
- package/dist/Dialog/Root.d.ts +2 -0
- package/dist/Dialog/context.d.ts +3 -0
- package/dist/Dialog/hooks.d.ts +1 -0
- package/dist/Dialog/index.d.ts +11 -0
- package/dist/Dialog/typings.d.ts +17 -0
- package/dist/HoverCard/Arrow.d.ts +5 -0
- package/dist/HoverCard/Content.d.ts +8 -0
- package/dist/HoverCard/cva.d.ts +3 -0
- package/dist/HoverCard/index.d.ts +10 -0
- package/dist/HoverCard/typings.d.ts +10 -0
- package/dist/HoverUtility/HoverUtility.d.ts +1 -0
- package/dist/Input/Field.d.ts +4 -0
- package/dist/Input/Root.d.ts +6 -0
- package/dist/Input/Slot.d.ts +4 -0
- package/dist/Input/context.d.ts +8 -0
- package/dist/Input/cva.d.ts +12 -0
- package/dist/Input/index.d.ts +9 -2
- package/dist/Input/typings.d.ts +10 -12
- package/dist/Layout/Container.d.ts +3 -4
- package/dist/Layout/SlideOutOverlay.d.ts +2 -3
- package/dist/Layout/index.d.ts +3 -3
- package/dist/OvermapMenu/ClickTrigger/index.d.ts +1 -1
- package/dist/OvermapMenu/Content/Content.d.ts +1 -1
- package/dist/OvermapMenu/Content/context.d.ts +7 -1
- package/dist/OvermapMenu/Input/Field.d.ts +3 -0
- package/dist/OvermapMenu/Input/Root.d.ts +4 -0
- package/dist/OvermapMenu/Input/Slot.d.ts +5 -0
- package/dist/OvermapMenu/Input/index.d.ts +3 -1
- package/dist/OvermapMenu/Pages/index.d.ts +1 -1
- package/dist/OvermapMenu/SelectAll/SelectAllIndicator.d.ts +6 -0
- package/dist/OvermapMenu/SelectAll/SelectAllItem.d.ts +3 -0
- package/dist/OvermapMenu/SelectAll/context.d.ts +6 -0
- package/dist/OvermapMenu/SelectAll/index.d.ts +2 -0
- package/dist/OvermapMenu/SelectedIndicator/index.d.ts +1 -1
- package/dist/OvermapMenu/Separator/Separator.d.ts +1 -1
- package/dist/OvermapMenu/Sub/context.d.ts +1 -1
- package/dist/OvermapMenu/Sub/index.d.ts +1 -1
- package/dist/OvermapMenu/SubTrigger/index.d.ts +1 -1
- package/dist/OvermapMenu/cva.d.ts +20 -0
- package/dist/OvermapMenu/root/context.d.ts +1 -4
- package/dist/OvermapMenu/root/index.d.ts +1 -1
- package/dist/OvermapMenu/typings.d.ts +30 -20
- package/dist/Popover/Arrow.d.ts +5 -0
- package/dist/Popover/Content.d.ts +8 -0
- package/dist/Popover/cva.d.ts +3 -0
- package/dist/Popover/index.d.ts +19 -2
- package/dist/Popover/typings.d.ts +8 -17
- package/dist/Provider/Provider.d.ts +8 -0
- package/dist/Provider/context.d.ts +8 -0
- package/dist/Provider/index.d.ts +3 -0
- package/dist/Provider/typings.d.ts +1 -0
- package/dist/RadioGroup/Indicator.d.ts +5 -0
- package/dist/RadioGroup/Item.d.ts +6 -0
- package/dist/RadioGroup/Root.d.ts +7 -0
- package/dist/RadioGroup/context.d.ts +7 -0
- package/dist/RadioGroup/cva.d.ts +4 -0
- package/dist/RadioGroup/index.d.ts +9 -0
- package/dist/RadioGroup/typings.d.ts +10 -0
- package/dist/RiIcon/RiIcon.d.ts +4 -5
- package/dist/RiIcon/index.d.ts +0 -2
- package/dist/SelectContext/index.d.ts +1 -1
- package/dist/Separator/Separator.d.ts +8 -3
- package/dist/Separator/cva.d.ts +5 -0
- package/dist/Separator/index.d.ts +0 -1
- package/dist/Separator/typings.d.ts +11 -19
- package/dist/SlideOut/SlideOutV2.d.ts +1 -3
- package/dist/TextArea/TextArea.d.ts +6 -7
- package/dist/TextArea/cva.d.ts +5 -0
- package/dist/TextArea/typings.d.ts +13 -15
- package/dist/Toast/cva.d.ts +4 -0
- package/dist/Toast/typings.d.ts +13 -10
- package/dist/ToggleButton/BaseToggleButton.d.ts +3 -0
- package/dist/ToggleButton/IconToggleButton.d.ts +3 -0
- package/dist/ToggleButton/ToggleButton.d.ts +2 -7
- package/dist/ToggleButton/cva.d.ts +5 -0
- package/dist/ToggleButton/index.d.ts +2 -0
- package/dist/ToggleButton/typings.d.ts +18 -0
- package/dist/Tooltip/Arrow.d.ts +5 -0
- package/dist/Tooltip/Content.d.ts +8 -0
- package/dist/Tooltip/cva.d.ts +4 -0
- package/dist/Tooltip/index.d.ts +11 -1
- package/dist/Tooltip/typings.d.ts +10 -0
- package/dist/blocks.js +3089 -4032
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +3358 -19
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/constants.d.ts +1 -2
- package/dist/cva/floating.d.ts +6 -0
- package/dist/cva/index.d.ts +2 -0
- package/dist/cva/radius.d.ts +4 -0
- package/dist/index.d.ts +17 -35
- package/dist/typings.d.ts +3 -3
- package/dist/utils.d.ts +2 -27
- package/package.json +66 -42
- package/dist/Breadcrumb/Breadcrumb.d.ts +0 -27
- package/dist/Breadcrumb/context.d.ts +0 -10
- package/dist/Breadcrumb/index.d.ts +0 -2
- package/dist/ButtonGroup/ButtonList.d.ts +0 -25
- package/dist/ButtonGroup/typings.d.ts +0 -37
- package/dist/Buttons/constants.d.ts +0 -9
- package/dist/Checkbox/Checkbox.d.ts +0 -3
- package/dist/Checkbox/SelectAllCheckbox.d.ts +0 -3
- package/dist/ConfirmEditInput/ConfirmEditInput.d.ts +0 -3
- package/dist/ConfirmEditInput/index.d.ts +0 -2
- package/dist/ConfirmEditInput/typings.d.ts +0 -15
- package/dist/Dialogs/AlertDialog/AlertDialog.d.ts +0 -11
- package/dist/Dialogs/AlertDialog/AlertDialogContent.d.ts +0 -4
- package/dist/Dialogs/AlertDialog/context.d.ts +0 -8
- package/dist/Dialogs/AlertDialog/hooks.d.ts +0 -7
- package/dist/Dialogs/AlertDialog/index.d.ts +0 -3
- package/dist/Dialogs/AlertDialog/typings.d.ts +0 -49
- package/dist/Dialogs/BaseDialog/BaseDialog.d.ts +0 -3
- package/dist/Dialogs/BaseDialog/index.d.ts +0 -2
- package/dist/Dialogs/BaseDialog/typings.d.ts +0 -31
- package/dist/Dialogs/Dialog/Dialog.d.ts +0 -7
- package/dist/Dialogs/Dialog/DialogContent.d.ts +0 -3
- package/dist/Dialogs/Dialog/index.d.ts +0 -3
- package/dist/Dialogs/Dialog/typings.d.ts +0 -40
- package/dist/Dialogs/Dialog/utils.d.ts +0 -7
- package/dist/Dialogs/Overlay/Overlay.d.ts +0 -7
- package/dist/Dialogs/Overlay/index.d.ts +0 -1
- package/dist/Dialogs/index.d.ts +0 -4
- package/dist/Dialogs/typings.d.ts +0 -7
- package/dist/DownloadButtonUtility/DownloadButtonUtility.d.ts +0 -7
- package/dist/DownloadButtonUtility/index.d.ts +0 -1
- package/dist/Flex/Flex.d.ts +0 -17
- package/dist/Flex/index.d.ts +0 -1
- package/dist/IconColorUtility/IconColorUtility.d.ts +0 -17
- package/dist/IconColorUtility/index.d.ts +0 -1
- package/dist/Input/Input.d.ts +0 -3
- package/dist/ItemStack/Group.d.ts +0 -9
- package/dist/ItemStack/Item.d.ts +0 -4
- package/dist/LeftAndRightPanels/LeftAndRightPanels.d.ts +0 -34
- package/dist/LeftAndRightPanels/index.d.ts +0 -1
- package/dist/MultiPagePopover/MultiPagePopover.d.ts +0 -3
- package/dist/MultiPagePopover/index.d.ts +0 -1
- package/dist/MultiPagePopover/typings.d.ts +0 -21
- package/dist/MultiSelect/MultiSelect.d.ts +0 -28
- package/dist/MultiSelect/MultiSelectItem.d.ts +0 -14
- package/dist/MultiSelect/index.d.ts +0 -1
- package/dist/OvermapDropdownMenu/DropdownMenu.d.ts +0 -8
- package/dist/OvermapDropdownMenu/index.d.ts +0 -1
- package/dist/OvermapDropdownMultiSelect/DropdownMultiSelect.d.ts +0 -8
- package/dist/OvermapDropdownMultiSelect/index.d.ts +0 -1
- package/dist/OvermapDropdownSelect/DropdownSelect.d.ts +0 -8
- package/dist/OvermapDropdownSelect/index.d.ts +0 -1
- package/dist/OvermapInputItem/OvermapInputItem.d.ts +0 -6
- package/dist/OvermapInputItem/index.d.ts +0 -2
- package/dist/OvermapInputItem/typings.d.ts +0 -4
- package/dist/OvermapItem/OvermapItem.d.ts +0 -5
- package/dist/OvermapItem/constants.d.ts +0 -2
- package/dist/OvermapItem/index.d.ts +0 -2
- package/dist/OvermapItem/typings.d.ts +0 -24
- package/dist/OvermapItemGroup/OvermapItemGroup.d.ts +0 -3
- package/dist/OvermapItemGroup/context.d.ts +0 -9
- package/dist/OvermapItemGroup/index.d.ts +0 -3
- package/dist/OvermapItemGroup/typings.d.ts +0 -6
- package/dist/OvermapMenu/Input/Input.d.ts +0 -3
- package/dist/OvermapMenu/Scroll/Scroll.d.ts +0 -2
- package/dist/OvermapMenu/Scroll/index.d.ts +0 -1
- package/dist/OvermapMenu/index.d.ts +0 -29
- package/dist/Popover/Popover.d.ts +0 -3
- package/dist/RiIcon/constants.d.ts +0 -138
- package/dist/RiIcon/typings.d.ts +0 -2
- package/dist/Select/Select.d.ts +0 -3
- package/dist/Select/index.d.ts +0 -2
- package/dist/Select/typings.d.ts +0 -22
- package/dist/Sidebar/Sidebar.d.ts +0 -30
- package/dist/Sidebar/index.d.ts +0 -1
- package/dist/Switch/Switch.d.ts +0 -7
- package/dist/Switch/index.d.ts +0 -2
- package/dist/Switch/typings.d.ts +0 -13
- package/dist/Table/Table.d.ts +0 -3
- package/dist/Table/index.d.ts +0 -2
- package/dist/Table/typings.d.ts +0 -70
- package/dist/Text/Text.d.ts +0 -24
- package/dist/Text/index.d.ts +0 -1
- package/dist/Theme/DefaultTheme.d.ts +0 -4
- package/dist/Theme/index.d.ts +0 -2
- package/dist/ToggleGroup/ToggleGroup.d.ts +0 -7
- package/dist/ToggleGroup/index.d.ts +0 -2
- package/dist/ToggleGroup/typings.d.ts +0 -7
- package/dist/Toolbar/Toolbar.d.ts +0 -23
- package/dist/Toolbar/index.d.ts +0 -1
- package/dist/Tooltip/Tooltip.d.ts +0 -6
- package/dist/style.css +0 -1
package/dist/Input/typings.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
type
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
showInputLength?: boolean;
|
|
12
|
-
variant?: TextFieldInputProps["variant"] | "ghost";
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ComponentRadius } from "../Provider/typings";
|
|
3
|
+
import { inputRoot } from "./cva";
|
|
4
|
+
type Variants = VariantProps<typeof inputRoot>;
|
|
5
|
+
export type InputSize = NonNullable<Variants["size"]>;
|
|
6
|
+
export type InputVariant = NonNullable<Variants["variant"]>;
|
|
7
|
+
export interface InputVariantProps {
|
|
8
|
+
size?: InputSize;
|
|
9
|
+
variant?: InputVariant;
|
|
10
|
+
radius?: ComponentRadius;
|
|
13
11
|
}
|
|
14
12
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ComponentProps } from "react";
|
|
2
|
-
|
|
3
|
-
export interface ContainerProps extends ComponentProps<typeof Flex> {
|
|
1
|
+
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
+
export interface ContainerProps extends PropsWithoutRef<ComponentProps<"div">> {
|
|
4
3
|
}
|
|
5
|
-
export declare const Container: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
4
|
+
export declare const Container: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ContainerProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { PropsWithClassNameAndStyle } from "../typings";
|
|
1
|
+
import { ComponentProps, PropsWithoutRef } from "react";
|
|
3
2
|
import { SlideOutV3Props } from "../SlideOutV3";
|
|
4
|
-
export interface LayoutOverlayProps extends
|
|
3
|
+
export interface LayoutOverlayProps extends PropsWithoutRef<ComponentProps<"div">> {
|
|
5
4
|
active?: boolean;
|
|
6
5
|
side: SlideOutV3Props["side"];
|
|
7
6
|
smallModeOnly?: boolean;
|
package/dist/Layout/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Layout: {
|
|
3
3
|
Root: import("react").MemoExoticComponent<(props: import("./Root").RootProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
-
Container: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
4
|
+
Container: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Container").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
5
5
|
SlideOutOverlay: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./SlideOutOverlay").LayoutOverlayProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
6
6
|
LeftSlideOut: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./SlideOut").LayoutSlideOutProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
7
7
|
RightSlideOut: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./SlideOut").LayoutSlideOutProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
8
8
|
SlideOutTrigger: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./SlideOutTrigger").SlideOutTriggerProps & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
9
9
|
};
|
|
10
|
+
export type * from "./Container";
|
|
10
11
|
export * from "./context";
|
|
11
12
|
export type * from "./Root";
|
|
12
|
-
export type * from "./Container";
|
|
13
|
-
export type * from "./SlideOutOverlay";
|
|
14
13
|
export type * from "./SlideOut";
|
|
14
|
+
export type * from "./SlideOutOverlay";
|
|
15
15
|
export type * from "./SlideOutTrigger";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./ClickTrigger
|
|
1
|
+
export * from "./ClickTrigger";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MenuContentProps } from "../typings";
|
|
3
|
-
export declare const Content: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<MenuContentProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
3
|
+
export declare const Content: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<MenuContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { UseFloatingData, UseInteractionsReturn } from "@floating-ui/react";
|
|
1
2
|
import { MutableRefObject } from "react";
|
|
2
|
-
import {
|
|
3
|
+
import { ComponentRadius } from "../../Provider/typings";
|
|
4
|
+
import { MenuSize, MenuVariant } from "../typings";
|
|
3
5
|
interface IMenuContentContext {
|
|
4
6
|
activeIndex: number | null;
|
|
5
7
|
getItemProps: UseInteractionsReturn["getItemProps"];
|
|
@@ -8,6 +10,10 @@ interface IMenuContentContext {
|
|
|
8
10
|
refs: UseFloatingData["refs"];
|
|
9
11
|
open: boolean;
|
|
10
12
|
setOpen: (open: boolean) => void;
|
|
13
|
+
accentColor: string;
|
|
14
|
+
radius: ComponentRadius;
|
|
15
|
+
size: MenuSize;
|
|
16
|
+
variant: MenuVariant;
|
|
11
17
|
}
|
|
12
18
|
export declare const MenuContentContext: import("react").Context<IMenuContentContext>;
|
|
13
19
|
export declare const useMenuContentContext: () => IMenuContentContext;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MenuInputProps } from "../typings";
|
|
3
|
+
export declare const MenuInputField: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<MenuInputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
+
export interface MenuInputRootProps extends PropsWithoutRef<ComponentProps<"div">> {
|
|
3
|
+
}
|
|
4
|
+
export declare const MenuInputRoot: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<MenuInputRootProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
+
import { InputSlotProps } from "../../Input";
|
|
3
|
+
export interface MenuInputSlotProps extends PropsWithoutRef<ComponentProps<"div">> {
|
|
4
|
+
}
|
|
5
|
+
export declare const MenuInputSlot: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<InputSlotProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentProps, PropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
interface SelectAllIndicatorProps extends Omit<PropsWithoutRef<ComponentProps<"span">>, "children"> {
|
|
3
|
+
children: ReactNode | ((indeterminate: boolean) => ReactNode);
|
|
4
|
+
}
|
|
5
|
+
export declare const SelectAllIndicator: import("react").ForwardRefExoticComponent<SelectAllIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MenuSeparatorProps } from "../typings";
|
|
3
|
-
export declare const Separator: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const Separator: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<MenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSProperties, MutableRefObject } from "react";
|
|
2
1
|
import { UseFloatingData, UseInteractionsReturn } from "@floating-ui/react";
|
|
2
|
+
import { CSSProperties, MutableRefObject } from "react";
|
|
3
3
|
import { MenuSide } from "../typings";
|
|
4
4
|
interface ISubContext {
|
|
5
5
|
open: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./SubTrigger
|
|
1
|
+
export * from "./SubTrigger";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const menuItem: (props?: ({
|
|
2
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
3
|
+
variant?: "solid" | "soft" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
export declare const menuSeparator: (props?: ({
|
|
6
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export declare const menuSelectedIndicator: (props?: ({
|
|
9
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
export declare const menuContent: (props?: ({
|
|
12
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
13
|
+
radius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
|
|
14
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
|
+
export declare const menuOverlay: (props?: ({
|
|
16
|
+
modal?: boolean | null | undefined;
|
|
17
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
|
+
export declare const inputRoot: (props?: ({
|
|
19
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
20
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { CSSProperties, MutableRefObject } from "react";
|
|
2
1
|
import { MiddlewareData, UseFloatingData, UseInteractionsReturn } from "@floating-ui/react";
|
|
3
|
-
import {
|
|
2
|
+
import { CSSProperties, MutableRefObject } from "react";
|
|
4
3
|
import { MenuSide, MenuTriggerType } from "../typings";
|
|
5
4
|
interface IMenuContext {
|
|
6
5
|
open: boolean;
|
|
7
6
|
setOpen: (open: boolean) => void;
|
|
8
|
-
size: OvermapItemGroupProps["size"];
|
|
9
7
|
side: MenuSide;
|
|
10
8
|
setTriggerType: (triggerType: MenuTriggerType) => void;
|
|
11
|
-
dialog: boolean;
|
|
12
9
|
modal: boolean;
|
|
13
10
|
nodeId: string;
|
|
14
11
|
refs: UseFloatingData["refs"];
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactElement } from "react";
|
|
2
1
|
import { VirtualElement } from "@floating-ui/react";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import * as RadixSeparator from "@radix-ui/react-separator";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import { ComponentProps, PropsWithChildren, PropsWithoutRef, ReactElement, ReactNode } from "react";
|
|
5
|
+
import { ComponentRadius } from "../Provider/typings";
|
|
6
|
+
import { AccentColorProps } from "../typings";
|
|
7
|
+
import { menuItem } from "./cva";
|
|
8
|
+
type MenuItemVariants = VariantProps<typeof menuItem>;
|
|
9
|
+
export type MenuVariant = NonNullable<MenuItemVariants["variant"]>;
|
|
10
|
+
export type MenuSize = NonNullable<MenuItemVariants["size"]>;
|
|
11
|
+
export interface MenuVariantProps extends MenuItemVariants {
|
|
12
|
+
variant?: MenuVariant;
|
|
13
|
+
size?: MenuSize;
|
|
14
|
+
radius?: ComponentRadius;
|
|
15
|
+
}
|
|
7
16
|
export type MenuTriggerType = "click" | "context" | "virtual";
|
|
8
17
|
export type MenuAlignment = "start" | "center" | "end";
|
|
9
18
|
export type MenuSide = "top" | "right" | "bottom" | "left";
|
|
10
|
-
export interface MenuRootProps extends PropsWithChildren
|
|
19
|
+
export interface MenuRootProps extends PropsWithChildren {
|
|
11
20
|
open?: boolean;
|
|
12
21
|
onOpenChange?: (open: boolean) => void;
|
|
13
22
|
defaultOpen?: boolean;
|
|
@@ -18,8 +27,7 @@ export interface MenuRootProps extends PropsWithChildren, Pick<OvermapItemGroupP
|
|
|
18
27
|
dialog?: boolean;
|
|
19
28
|
modal?: boolean;
|
|
20
29
|
}
|
|
21
|
-
export interface MenuContentProps extends
|
|
22
|
-
disableScroll?: boolean;
|
|
30
|
+
export interface MenuContentProps extends ComponentProps<PropsWithoutRef<"div">>, AccentColorProps, MenuVariantProps {
|
|
23
31
|
}
|
|
24
32
|
export interface MenuClickTriggerProps {
|
|
25
33
|
children: ReactElement;
|
|
@@ -33,7 +41,7 @@ export interface MenuVirtualTriggerProps {
|
|
|
33
41
|
virtualElement: VirtualElement | null;
|
|
34
42
|
disabled?: boolean;
|
|
35
43
|
}
|
|
36
|
-
export interface MenuGroupProps extends
|
|
44
|
+
export interface MenuGroupProps extends PropsWithoutRef<ComponentProps<"div">> {
|
|
37
45
|
}
|
|
38
46
|
export interface MenuSelectGroupProps extends MenuGroupProps {
|
|
39
47
|
value: string | null;
|
|
@@ -48,16 +56,22 @@ export interface MenuItemMeta {
|
|
|
48
56
|
selected: boolean;
|
|
49
57
|
}
|
|
50
58
|
type ActiveAndSelectedItemCallback<T> = (meta: MenuItemMeta) => T;
|
|
51
|
-
export interface MenuItemProps extends Omit<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
children: OvermapItemProps["children"] | ActiveAndSelectedItemCallback<OvermapItemProps["children"]>;
|
|
59
|
+
export interface MenuItemProps extends Omit<PropsWithoutRef<ComponentProps<"div">>, "children"> {
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
children: ReactNode | ActiveAndSelectedItemCallback<ReactNode>;
|
|
55
62
|
closeOnSelect?: boolean;
|
|
56
63
|
onSelect?: () => void;
|
|
57
64
|
}
|
|
58
65
|
export interface MenuSelectItemProps extends MenuItemProps {
|
|
59
66
|
value: string;
|
|
60
67
|
}
|
|
68
|
+
export interface SelectAllItemProps extends Omit<MenuItemProps, "children"> {
|
|
69
|
+
allValues: string[];
|
|
70
|
+
children: ReactNode | ((meta: {
|
|
71
|
+
active: boolean;
|
|
72
|
+
selected: boolean | "indeterminate";
|
|
73
|
+
}) => ReactNode);
|
|
74
|
+
}
|
|
61
75
|
export interface MenuSubProps extends PropsWithChildren {
|
|
62
76
|
disabled?: boolean;
|
|
63
77
|
open?: boolean;
|
|
@@ -69,8 +83,7 @@ export interface MenuSubProps extends PropsWithChildren {
|
|
|
69
83
|
loop?: boolean;
|
|
70
84
|
modal?: boolean;
|
|
71
85
|
}
|
|
72
|
-
export interface SubMenuContentProps extends
|
|
73
|
-
disableScroll?: boolean;
|
|
86
|
+
export interface SubMenuContentProps extends PropsWithoutRef<ComponentProps<"div">> {
|
|
74
87
|
}
|
|
75
88
|
export interface MenuSubTriggerProps extends Omit<MenuItemProps, "closeOnSelect" | "disabled"> {
|
|
76
89
|
}
|
|
@@ -85,12 +98,9 @@ export interface PageContentProps extends PropsWithChildren {
|
|
|
85
98
|
export interface PageTriggerProps extends Omit<MenuItemProps, "closeOnSelect"> {
|
|
86
99
|
page: string;
|
|
87
100
|
}
|
|
88
|
-
export interface MenuSeparatorProps extends SeparatorProps {
|
|
89
|
-
extend?: boolean;
|
|
90
|
-
spacingAbove?: boolean;
|
|
91
|
-
spacingBelow?: boolean;
|
|
101
|
+
export interface MenuSeparatorProps extends RadixSeparator.SeparatorProps {
|
|
92
102
|
}
|
|
93
|
-
export interface MenuInputProps extends
|
|
103
|
+
export interface MenuInputProps extends ComponentProps<PropsWithoutRef<"input">> {
|
|
94
104
|
onValueChange?: (value: string) => void;
|
|
95
105
|
}
|
|
96
106
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixPopover from "@radix-ui/react-popover";
|
|
3
|
+
export interface PopoverArrowProps extends RadixPopover.PopoverArrowProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const PopoverArrow: import("react").ForwardRefExoticComponent<PopoverArrowProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixPopover from "@radix-ui/react-popover";
|
|
3
|
+
import { AccentColorProps } from "../typings";
|
|
4
|
+
import { PopoverVariantProps } from "./typings";
|
|
5
|
+
export interface PopoverContentProps extends RadixPopover.PopoverContentProps, PopoverVariantProps, AccentColorProps {
|
|
6
|
+
container?: RadixPopover.PopoverPortalProps["container"];
|
|
7
|
+
}
|
|
8
|
+
export declare const PopoverContent: import("react").ForwardRefExoticComponent<PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/Popover/index.d.ts
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixPopover from "@radix-ui/react-popover";
|
|
3
|
+
export declare const Popover: {
|
|
4
|
+
Content: import("react").ForwardRefExoticComponent<import("./Content").PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
Arrow: import("react").ForwardRefExoticComponent<import("./Arrow").PopoverArrowProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
6
|
+
Anchor: import("react").ForwardRefExoticComponent<RadixPopover.PopoverAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Close: import("react").ForwardRefExoticComponent<RadixPopover.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
Popover: import("react").FC<RadixPopover.PopoverProps>;
|
|
9
|
+
PopoverAnchor: import("react").ForwardRefExoticComponent<RadixPopover.PopoverAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
PopoverArrow: import("react").ForwardRefExoticComponent<RadixPopover.PopoverArrowProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
|
+
PopoverClose: import("react").ForwardRefExoticComponent<RadixPopover.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
PopoverContent: import("react").ForwardRefExoticComponent<RadixPopover.PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
PopoverPortal: import("react").FC<RadixPopover.PopoverPortalProps>;
|
|
14
|
+
PopoverTrigger: import("react").ForwardRefExoticComponent<RadixPopover.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
Portal: import("react").FC<RadixPopover.PopoverPortalProps>;
|
|
16
|
+
Root: import("react").FC<RadixPopover.PopoverProps>;
|
|
17
|
+
Trigger: import("react").ForwardRefExoticComponent<RadixPopover.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
createPopoverScope: import("@radix-ui/react-context").CreateScope;
|
|
19
|
+
};
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
type
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
trigger: ReactElement;
|
|
10
|
-
/** The content of the popover */
|
|
11
|
-
children: (Close: typeof RadixPopover.Close) => ReactNode;
|
|
12
|
-
/** determines if popover should default to open on render */
|
|
13
|
-
defaultOpen?: RadixPopoverRootProps["defaultOpen"];
|
|
14
|
-
/** if true disables interaction with other elements until popover is closed*/
|
|
15
|
-
modal?: RadixPopoverRootProps["modal"];
|
|
16
|
-
open?: RadixPopoverRootProps["open"];
|
|
17
|
-
onOpenChange?: RadixPopoverRootProps["onOpenChange"];
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ComponentRadius } from "../Provider/typings";
|
|
3
|
+
import { popoverContent } from "./cva";
|
|
4
|
+
type PopoverVariants = VariantProps<typeof popoverContent>;
|
|
5
|
+
export type PopoverSize = NonNullable<PopoverVariants["size"]>;
|
|
6
|
+
export interface PopoverVariantProps {
|
|
7
|
+
size?: PopoverSize;
|
|
8
|
+
radius?: ComponentRadius;
|
|
18
9
|
}
|
|
19
10
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import { ComponentRadius } from "./typings";
|
|
3
|
+
interface ProviderProps extends PropsWithChildren {
|
|
4
|
+
accentColor: string;
|
|
5
|
+
radius?: ComponentRadius;
|
|
6
|
+
}
|
|
7
|
+
export declare const Provider: (props: ProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ComponentRadius = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixRadioGroup from "@radix-ui/react-radio-group";
|
|
3
|
+
export interface RadioGroupIndicatorProps extends RadixRadioGroup.RadioGroupIndicatorProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const RadioGroupIndicator: import("react").ForwardRefExoticComponent<RadioGroupIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixRadioGroup from "@radix-ui/react-radio-group";
|
|
3
|
+
import { RadioGroupVariantProps } from "./typings";
|
|
4
|
+
export interface RadioGroupItemProps extends RadioGroupVariantProps, RadixRadioGroup.RadioGroupItemProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const RadioGroupItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<RadioGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixRadioGroup from "@radix-ui/react-radio-group";
|
|
3
|
+
import { AccentColorProps } from "../typings";
|
|
4
|
+
import { RadioGroupVariantProps } from "./typings";
|
|
5
|
+
export interface RadioGroupRootProps extends RadixRadioGroup.RadioGroupProps, RadioGroupVariantProps, AccentColorProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const RadioGroupRoot: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<RadioGroupRootProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RadioGroupSize, RadioGroupVariant } from "./typings";
|
|
3
|
+
export interface IRadioGroupContext {
|
|
4
|
+
size: RadioGroupSize;
|
|
5
|
+
variant: RadioGroupVariant;
|
|
6
|
+
}
|
|
7
|
+
export declare const RadioGroupContext: import("react").Context<IRadioGroupContext>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export * from "./Indicator";
|
|
3
|
+
export * from "./Item";
|
|
4
|
+
export * from "./Root";
|
|
5
|
+
export declare const RadioGroup: {
|
|
6
|
+
Indicator: import("react").ForwardRefExoticComponent<import("./Indicator").RadioGroupIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
Item: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Item").RadioGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
8
|
+
Root: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Root").RadioGroupRootProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { radioGroupItem } from "./cva";
|
|
3
|
+
type Variants = VariantProps<typeof radioGroupItem>;
|
|
4
|
+
export type RadioGroupVariant = NonNullable<Variants["variant"]>;
|
|
5
|
+
export type RadioGroupSize = NonNullable<Variants["size"]>;
|
|
6
|
+
export interface RadioGroupVariantProps {
|
|
7
|
+
variant?: RadioGroupVariant;
|
|
8
|
+
size?: RadioGroupSize;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
package/dist/RiIcon/RiIcon.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IconBaseProps } from "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
icon: keyof typeof USED_ICONS | string;
|
|
2
|
+
import { IconBaseProps } from "react-icons";
|
|
3
|
+
interface RemixIconProps extends IconBaseProps {
|
|
4
|
+
icon: string;
|
|
6
5
|
}
|
|
7
|
-
export declare const RiIcon: import("react").MemoExoticComponent<(props:
|
|
6
|
+
export declare const RiIcon: import("react").MemoExoticComponent<(props: RemixIconProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
7
|
export {};
|
package/dist/RiIcon/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixSeparator from "@radix-ui/react-separator";
|
|
3
|
+
import { AccentColorProps } from "../typings";
|
|
4
|
+
import { SeparatorVariantProps } from "./typings";
|
|
5
|
+
interface SeparatorProps extends RadixSeparator.SeparatorProps, SeparatorVariantProps, AccentColorProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const Separator: import("react").ForwardRefExoticComponent<SeparatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const separator: (props?: ({
|
|
2
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
|
|
3
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
4
|
+
weight?: "medium" | "light" | "heavy" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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";
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { separator } from "./cva";
|
|
3
|
+
type Variants = VariantProps<typeof separator>;
|
|
4
|
+
export type SeparatorSize = NonNullable<Variants["size"]>;
|
|
5
|
+
export type SeparatorWeight = NonNullable<Variants["weight"]>;
|
|
6
|
+
export type SeparatorOrientation = NonNullable<Variants["orientation"]>;
|
|
7
|
+
export interface SeparatorVariantProps {
|
|
8
|
+
size?: SeparatorSize;
|
|
9
|
+
weight?: SeparatorWeight;
|
|
10
|
+
orientation?: SeparatorOrientation;
|
|
20
11
|
}
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
-
import { FocusOutsideEvent, PointerDownOutsideEvent } from "@radix-ui/react-dismissable-layer";
|
|
3
2
|
import { PropsWithClassNameAndStyle } from "../typings";
|
|
4
|
-
export type DismissibleEventTypes = PointerDownOutsideEvent | FocusOutsideEvent | KeyboardEvent;
|
|
5
3
|
export interface SlideOutV2Props extends PropsWithChildren, PropsWithClassNameAndStyle {
|
|
6
4
|
/** The controlled open state of the SlideOut */
|
|
7
5
|
open: boolean;
|
|
@@ -29,7 +27,7 @@ export interface SlideOutV2Props extends PropsWithChildren, PropsWithClassNameAn
|
|
|
29
27
|
maxWidth?: number | string;
|
|
30
28
|
/** callback fired when the SlideOut should be dismissed (closed) when in modal mode. The type of event resulting in
|
|
31
29
|
* the SlideOut dismissal is passed with the callback. */
|
|
32
|
-
onDismiss?: (
|
|
30
|
+
onDismiss?: () => void;
|
|
33
31
|
/** callback fired when the SlideOut has finished sliding out (closing) */
|
|
34
32
|
onClosed?: () => void;
|
|
35
33
|
/** callback fired when the SlideOut starts sliding in (opening) */
|