@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/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.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixAlertDialog from "@radix-ui/react-alert-dialog";
|
|
3
|
+
import { AlertDialogVariantProps } from "./typings";
|
|
4
|
+
export interface AlertDialogContentProps extends RadixAlertDialog.AlertDialogContentProps, AlertDialogVariantProps {
|
|
5
|
+
container?: RadixAlertDialog.AlertDialogPortalProps["container"];
|
|
6
|
+
}
|
|
7
|
+
export declare const AlertDialogContent: import("react").ForwardRefExoticComponent<AlertDialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const dialogOverlay: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const dialogContent: (props?: ({
|
|
3
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAlertDialog: () => (options: import("./typings").AlertDialogOptions) => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixAlertDialog from "@radix-ui/react-alert-dialog";
|
|
3
|
+
export * from "./Content";
|
|
4
|
+
export * from "./hooks";
|
|
5
|
+
export * from "./Provider";
|
|
6
|
+
export declare const AlertDialog: {
|
|
7
|
+
Content: import("react").ForwardRefExoticComponent<import("./Content").AlertDialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Trigger: import("react").ForwardRefExoticComponent<RadixAlertDialog.AlertDialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
Root: import("react").FC<RadixAlertDialog.AlertDialogProps>;
|
|
10
|
+
Title: import("react").ForwardRefExoticComponent<RadixAlertDialog.AlertDialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
11
|
+
Description: import("react").ForwardRefExoticComponent<RadixAlertDialog.AlertDialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
12
|
+
Action: import("react").ForwardRefExoticComponent<RadixAlertDialog.AlertDialogActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
Cancel: import("react").ForwardRefExoticComponent<RadixAlertDialog.AlertDialogCancelProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import { dialogContent } from "./cva";
|
|
4
|
+
type Variants = VariantProps<typeof dialogContent>;
|
|
5
|
+
export type AlertDialogSize = NonNullable<Variants["size"]>;
|
|
6
|
+
export interface AlertDialogVariantProps {
|
|
7
|
+
size?: AlertDialogSize;
|
|
8
|
+
}
|
|
9
|
+
export interface AlertDialogOptions {
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
onAction: () => void;
|
|
13
|
+
onCancel?: () => void;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
cancel?: ReactNode;
|
|
16
|
+
action?: ReactNode;
|
|
17
|
+
size?: AlertDialogSize;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixAvatar from "@radix-ui/react-avatar";
|
|
3
|
+
export interface AvatarFallbackProps extends RadixAvatar.AvatarFallbackProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const AvatarFallback: import("react").ForwardRefExoticComponent<AvatarFallbackProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixAvatar from "@radix-ui/react-avatar";
|
|
3
|
+
export interface AvatarImageProps extends RadixAvatar.AvatarImageProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const AvatarImage: import("react").ForwardRefExoticComponent<AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixAvatar from "@radix-ui/react-avatar";
|
|
3
|
+
import { AccentColorProps } from "../typings";
|
|
4
|
+
import { AvatarVariantProps } from "./typings";
|
|
5
|
+
export interface AvatarRootProps extends RadixAvatar.AvatarProps, AvatarVariantProps, AccentColorProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const AvatarRoot: import("react").ForwardRefExoticComponent<AvatarRootProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const avatar: (props?: ({
|
|
2
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const avatarFallback: (props?: ({
|
|
5
|
+
variant?: "solid" | "soft" | "surface" | "outline" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export * from "./Fallback";
|
|
3
|
+
export * from "./Image";
|
|
4
|
+
export * from "./Root";
|
|
5
|
+
export declare const Avatar: {
|
|
6
|
+
Fallback: import("react").ForwardRefExoticComponent<import("./Fallback").AvatarFallbackProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
Image: import("react").ForwardRefExoticComponent<import("./Image").AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
|
8
|
+
Root: import("react").ForwardRefExoticComponent<import("./Root").AvatarRootProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ComponentRadius } from "../Provider/typings";
|
|
3
|
+
import { avatar, avatarFallback } from "./cva";
|
|
4
|
+
type Variants = VariantProps<typeof avatar> & VariantProps<typeof avatarFallback>;
|
|
5
|
+
export type AvatarSize = NonNullable<Variants["size"]>;
|
|
6
|
+
export type AvatarVariant = NonNullable<Variants["variant"]>;
|
|
7
|
+
export interface AvatarVariantProps {
|
|
8
|
+
variant?: AvatarVariant;
|
|
9
|
+
size?: AvatarSize;
|
|
10
|
+
radius?: ComponentRadius;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
package/dist/Badge/Badge.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const Badge:
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { AccentColorProps } from "../typings";
|
|
3
|
+
import { BadgeVariantProps } from "./typings";
|
|
4
|
+
export interface BadgeProps extends ComponentProps<"span">, BadgeVariantProps, AccentColorProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const Badge: import("react").ForwardRefExoticComponent<Omit<BadgeProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const badge: (props?: ({
|
|
2
|
+
icon?: boolean | null | undefined;
|
|
3
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
|
+
variant?: "solid" | "soft" | "surface" | "outline" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
package/dist/Badge/index.d.ts
CHANGED
package/dist/Badge/typings.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ComponentRadius } from "../Provider/typings";
|
|
3
|
+
import { badge } from "./cva";
|
|
4
|
+
type BadgeVariants = VariantProps<typeof badge>;
|
|
5
|
+
export type BadgeSize = NonNullable<BadgeVariants["size"]>;
|
|
6
|
+
export type BadgeVariant = NonNullable<BadgeVariants["variant"]>;
|
|
7
|
+
export interface BadgeVariantProps {
|
|
8
|
+
size?: BadgeSize;
|
|
9
|
+
variant?: BadgeVariant;
|
|
10
|
+
radius?: ComponentRadius;
|
|
11
|
+
icon?: NonNullable<BadgeVariants["icon"]>;
|
|
8
12
|
}
|
|
13
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import { ButtonVariantProps } from "../Buttons";
|
|
3
|
+
interface ButtonsProps extends PropsWithChildren, ButtonVariantProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const ButtonGroup: {
|
|
6
|
+
(props: ButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { ButtonSize, ButtonVariant } from "../Buttons";
|
|
3
|
+
import { ComponentRadius } from "../Provider/typings";
|
|
4
|
+
interface IButtonGroupContext {
|
|
5
|
+
variant: ButtonVariant;
|
|
6
|
+
size: ButtonSize;
|
|
7
|
+
radius: ComponentRadius;
|
|
8
|
+
}
|
|
9
|
+
export declare const ButtonGroupContext: import("react").Context<IButtonGroupContext>;
|
|
10
|
+
export {};
|
package/dist/Buttons/Button.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { AccentColorProps } from "../typings";
|
|
3
|
+
import { ButtonVariantProps } from "./typings";
|
|
4
|
+
export interface ButtonProps extends ButtonVariantProps, ComponentProps<"button">, AccentColorProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const Button: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { AccentColorProps } from "../typings";
|
|
3
|
+
import { ButtonVariantProps } from "./typings";
|
|
4
|
+
export interface IconButtonProps extends ButtonVariantProps, ComponentProps<"button">, AccentColorProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
declare const IconButton: FC<IconButtonProps>;
|
|
8
|
-
export default IconButton;
|
|
6
|
+
export declare const IconButton: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const button: (props?: ({
|
|
2
|
+
variant?: "solid" | "soft" | "ghost" | "surface" | "outline" | null | undefined;
|
|
3
|
+
icon?: boolean | null | undefined;
|
|
4
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
package/dist/Buttons/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
1
|
+
export * from "./Button";
|
|
2
|
+
export * from "./cva";
|
|
3
|
+
export * from "./IconButton";
|
|
4
|
+
export * from "./typings";
|
|
@@ -1,25 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/** @default solid */
|
|
12
|
-
variant?: Variant;
|
|
13
|
-
/** @default primary */
|
|
14
|
-
severity?: Severity;
|
|
15
|
-
size?: Responsive<Size>;
|
|
16
|
-
hoverEffects?: ButtonHoverEffect[];
|
|
17
|
-
highContrast?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export type RadixButtonProps = React.ComponentProps<typeof RadixButton>;
|
|
20
|
-
export type ButtonHoverEffect = "spin90Clockwise" | "spin180Clockwise" | "spin360Clockwise";
|
|
21
|
-
export interface ButtonProps extends Omit<RadixButtonProps, "size" | "variant" | "loading" | keyof MarginProps>, ButtonStyleProps {
|
|
22
|
-
children: RadixButtonProps["children"];
|
|
23
|
-
shortcut?: Shortcut;
|
|
24
|
-
loading?: boolean;
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ComponentRadius } from "../Provider/typings";
|
|
3
|
+
import { button } from "./cva";
|
|
4
|
+
type Variants = VariantProps<typeof button>;
|
|
5
|
+
export type ButtonSize = NonNullable<Variants["size"]>;
|
|
6
|
+
export type ButtonVariant = NonNullable<Variants["variant"]>;
|
|
7
|
+
export interface ButtonVariantProps {
|
|
8
|
+
size?: ButtonSize;
|
|
9
|
+
variant?: ButtonVariant;
|
|
10
|
+
radius?: ComponentRadius;
|
|
25
11
|
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixCheckbox from "@radix-ui/react-checkbox";
|
|
3
|
+
export interface CheckboxIndicatorProps extends RadixCheckbox.CheckboxIndicatorProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const CheckboxIndicator: import("react").ForwardRefExoticComponent<CheckboxIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixCheckbox from "@radix-ui/react-checkbox";
|
|
3
|
+
import { AccentColorProps } from "../typings";
|
|
4
|
+
import { CheckboxVariantProps } from "./typings";
|
|
5
|
+
export interface CheckboxRootProps extends CheckboxVariantProps, RadixCheckbox.CheckboxProps, AccentColorProps {
|
|
6
|
+
}
|
|
7
|
+
export declare const CheckboxRoot: import("react").ForwardRefExoticComponent<CheckboxRootProps & import("react").RefAttributes<HTMLButtonElement>>;
|
package/dist/Checkbox/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export * from "./
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export * from "./Indicator";
|
|
3
|
+
export * from "./Root";
|
|
4
|
+
export declare const Checkbox: {
|
|
5
|
+
Root: import("react").ForwardRefExoticComponent<import("./Root").CheckboxRootProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
Indicator: import("react").ForwardRefExoticComponent<import("./Indicator").CheckboxIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
};
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
alwaysShow?: boolean;
|
|
12
|
-
checkboxPosition?: FlexProps["align"];
|
|
13
|
-
}
|
|
14
|
-
export interface SelectAllCheckboxProps extends Omit<CheckboxProps, "checked"> {
|
|
15
|
-
children: Array<ReactElement<CheckboxProps>>;
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ComponentRadius } from "../Provider/typings";
|
|
3
|
+
import { checkbox } from "./cva";
|
|
4
|
+
type Variants = VariantProps<typeof checkbox>;
|
|
5
|
+
export type CheckboxSize = NonNullable<Variants["size"]>;
|
|
6
|
+
export type CheckboxVariant = NonNullable<Variants["variant"]>;
|
|
7
|
+
export interface CheckboxVariantProps {
|
|
8
|
+
size?: CheckboxSize;
|
|
9
|
+
variant?: CheckboxVariant;
|
|
10
|
+
radius?: ComponentRadius;
|
|
16
11
|
}
|
|
12
|
+
export {};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Flex } from "@radix-ui/themes";
|
|
1
|
+
import { CSSProperties } from "react";
|
|
3
2
|
import { NodeCallbacks, NodeRenderer } from "./typings";
|
|
4
3
|
interface ICollapsibleTreeContext<TMeta> extends NodeCallbacks<TMeta> {
|
|
5
4
|
nodeClassName?: string;
|
|
6
5
|
nodeStyles?: CSSProperties;
|
|
7
|
-
nodeGap: ComponentProps<typeof Flex>["gap"];
|
|
8
|
-
levelGap: ComponentProps<typeof Flex>["pl"];
|
|
9
6
|
disabled: boolean;
|
|
10
7
|
nodeRenderer: NodeRenderer<TMeta>;
|
|
11
8
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { ComponentProps, CSSProperties } from "react";
|
|
2
1
|
import { CollapsibleProps } from "@radix-ui/react-collapsible";
|
|
3
|
-
import {
|
|
2
|
+
import { CSSProperties, ReactNode } from "react";
|
|
4
3
|
import { PropsWithClassNameAndStyle } from "../typings";
|
|
5
|
-
import { OvermapItemProps } from "../OvermapItem";
|
|
6
|
-
import { OvermapItemGroupProps } from "../OvermapItemGroup";
|
|
7
4
|
export type NodeEventHandler<TMeta> = (meta: TMeta) => void;
|
|
8
5
|
export interface NodeCallbacks<TMeta> {
|
|
9
6
|
/** callback fired when a specific TreeNode is clicked, regardless of the current open state of the specific
|
|
@@ -27,11 +24,9 @@ export type NodeRenderer<TMeta> = (args: {
|
|
|
27
24
|
* TreeNode is disabled or not. */
|
|
28
25
|
disabled: boolean;
|
|
29
26
|
}) => {
|
|
30
|
-
children:
|
|
27
|
+
children: ReactNode;
|
|
31
28
|
className?: string;
|
|
32
29
|
style?: CSSProperties;
|
|
33
|
-
leftSlot?: OvermapItemProps["leftSlot"];
|
|
34
|
-
rightSlot?: OvermapItemProps["rightSlot"];
|
|
35
30
|
};
|
|
36
31
|
export interface TreeNodeProps<TMeta> extends Pick<CollapsibleProps, "disabled"> {
|
|
37
32
|
/** list of TreeNodes to be rendered within the current TreeNode collapsible */
|
|
@@ -40,17 +35,9 @@ export interface TreeNodeProps<TMeta> extends Pick<CollapsibleProps, "disabled">
|
|
|
40
35
|
* the structure of this meta-data. */
|
|
41
36
|
meta: TMeta;
|
|
42
37
|
}
|
|
43
|
-
export interface CollapsibleTreeProps<TMeta> extends PropsWithClassNameAndStyle,
|
|
38
|
+
export interface CollapsibleTreeProps<TMeta> extends PropsWithClassNameAndStyle, NodeCallbacks<TMeta> {
|
|
44
39
|
/** the TreeNode structure that should be rendered within the CollapsibleTree */
|
|
45
40
|
nodes: TreeNodeProps<TMeta>[];
|
|
46
|
-
/** the vertical gap between each TreeNode in the CollapsibleTree.
|
|
47
|
-
* @default "0"
|
|
48
|
-
* */
|
|
49
|
-
nodeGap?: ComponentProps<typeof Flex>["gap"];
|
|
50
|
-
/** the left inset between each TreeNode level in the CollapsibleTree.
|
|
51
|
-
* @default "2"
|
|
52
|
-
* */
|
|
53
|
-
levelGap?: ComponentProps<typeof Flex>["pl"];
|
|
54
41
|
/** disables all TreeNodes in the CollapsibleTree.
|
|
55
42
|
* @default false
|
|
56
43
|
* */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import { AlertDialogSize } from "../AlertDialog/typings";
|
|
4
|
+
import { CloseDialogWithOptions } from "./typings";
|
|
5
|
+
export interface DialogContentProps extends Omit<RadixDialog.DialogContentProps, "children"> {
|
|
6
|
+
title: string;
|
|
7
|
+
container?: RadixDialog.DialogPortalProps["container"];
|
|
8
|
+
size?: AlertDialogSize;
|
|
9
|
+
children: ReactNode | ((close: CloseDialogWithOptions) => ReactNode);
|
|
10
|
+
}
|
|
11
|
+
export declare const DialogContent: import("react").ForwardRefExoticComponent<DialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useCloseDialog: () => import("./typings").CloseDialogWithOptions;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
3
|
+
export * from "./Content";
|
|
4
|
+
export * from "./Root";
|
|
5
|
+
export * from "./typings";
|
|
6
|
+
export declare const Dialog: {
|
|
7
|
+
Root: (props: import("./typings").DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Content: import("react").ForwardRefExoticComponent<import("./Content").DialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Trigger: import("react").ForwardRefExoticComponent<RadixDialog.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
Close: import("react").ForwardRefExoticComponent<RadixDialog.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
2
|
+
/** Triggers the dialog to close */
|
|
3
|
+
export type CloseDialog = () => void;
|
|
4
|
+
export interface CloseDialogOptions {
|
|
5
|
+
/** Bypass the `onCloseInterrupt` and force the dialog to close */
|
|
6
|
+
force?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type CloseDialogWithOptions = (options?: CloseDialogOptions) => void;
|
|
9
|
+
export interface DialogProps extends RadixDialog.DialogProps {
|
|
10
|
+
/** Called when the dialog opens. Unlike `onCloseInterrupt`, it does not interrupt the dialog opening */
|
|
11
|
+
onOpen?: () => void;
|
|
12
|
+
/** Interrupts the close process; use the provided `confirmClose` callback to continue the close process. */
|
|
13
|
+
onCloseInterrupt?: (confirmClose: CloseDialog) => void;
|
|
14
|
+
/** Called when the dialog closes. If used in conjunction with `onCloseInterrupt`,
|
|
15
|
+
* the `onClose` callback executes when the `confirmClose` callback is called. */
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixHoverCard from "@radix-ui/react-hover-card";
|
|
3
|
+
export interface HoverCardArrowProps extends RadixHoverCard.HoverCardArrowProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const HoverCardArrow: import("react").ForwardRefExoticComponent<HoverCardArrowProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixHoverCard from "@radix-ui/react-hover-card";
|
|
3
|
+
import { AccentColorProps } from "../typings";
|
|
4
|
+
import { HoverCardVariantProps } from "./typings";
|
|
5
|
+
export interface HoverCardContentProps extends RadixHoverCard.HoverCardContentProps, HoverCardVariantProps, AccentColorProps {
|
|
6
|
+
container?: RadixHoverCard.HoverCardPortalProps["container"];
|
|
7
|
+
}
|
|
8
|
+
export declare const HoverCardContent: import("react").ForwardRefExoticComponent<HoverCardContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadixHoverCard from "@radix-ui/react-hover-card";
|
|
3
|
+
export * from "./Arrow";
|
|
4
|
+
export * from "./Content";
|
|
5
|
+
export declare const HoverCard: {
|
|
6
|
+
Arrow: import("react").ForwardRefExoticComponent<import("./Arrow").HoverCardArrowProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
7
|
+
Content: import("react").ForwardRefExoticComponent<import("./Content").HoverCardContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Root: import("react").FC<RadixHoverCard.HoverCardProps>;
|
|
9
|
+
Trigger: import("react").ForwardRefExoticComponent<RadixHoverCard.HoverCardTriggerProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ComponentRadius } from "../Provider/typings";
|
|
3
|
+
import { hoverCardContent } from "./cva";
|
|
4
|
+
type Variants = VariantProps<typeof hoverCardContent>;
|
|
5
|
+
export type HoverCardSize = NonNullable<Variants["size"]>;
|
|
6
|
+
export interface HoverCardVariantProps {
|
|
7
|
+
size?: HoverCardSize;
|
|
8
|
+
radius?: ComponentRadius;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -5,6 +5,7 @@ interface ChildProps {
|
|
|
5
5
|
onPointerLeave: PointerEventHandler<HTMLElement>;
|
|
6
6
|
}
|
|
7
7
|
interface HoverUtilityProps {
|
|
8
|
+
forceHover?: boolean;
|
|
8
9
|
children: (props: ChildProps) => ReactElement;
|
|
9
10
|
}
|
|
10
11
|
/** HoverUtility is a utility component used for detecting when an element is being hovered over or not, is passes a
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
+
export interface InputFieldProps extends PropsWithoutRef<ComponentProps<"input">> {
|
|
3
|
+
}
|
|
4
|
+
export declare const InputField: import("react").ForwardRefExoticComponent<InputFieldProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
+
import { AccentColorProps } from "../typings";
|
|
3
|
+
import { InputVariantProps } from "./typings";
|
|
4
|
+
export interface InputRootProps extends InputVariantProps, PropsWithoutRef<ComponentProps<"div">>, AccentColorProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const InputRoot: import("react").ForwardRefExoticComponent<InputRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
+
export interface InputSlotProps extends PropsWithoutRef<ComponentProps<"div">> {
|
|
3
|
+
}
|
|
4
|
+
export declare const InputSlot: import("react").ForwardRefExoticComponent<InputSlotProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const inputRoot: (props?: ({
|
|
2
|
+
variant?: "soft" | "surface" | "outline" | null | undefined;
|
|
3
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
export declare const inputField: (props?: ({
|
|
6
|
+
variant?: "soft" | "surface" | "outline" | null | undefined;
|
|
7
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
export declare const inputSlot: (props?: ({
|
|
10
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
11
|
+
variant?: "soft" | "surface" | "outline" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
package/dist/Input/index.d.ts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export * from "./
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export * from "./Field";
|
|
3
|
+
export * from "./Root";
|
|
4
|
+
export * from "./Slot";
|
|
5
|
+
export declare const Input: {
|
|
6
|
+
Field: import("react").ForwardRefExoticComponent<import("./Field").InputFieldProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
7
|
+
Root: import("react").ForwardRefExoticComponent<import("./Root").InputRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Slot: import("react").ForwardRefExoticComponent<import("./Slot").InputSlotProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
};
|