@overmap-ai/blocks 1.0.31-tailwind-components.13 → 1.0.31-tailwind-components.14
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/dist/AlertDialog/index.d.ts +1 -0
- package/dist/Avatar/cva.d.ts +1 -1
- package/dist/Avatar/index.d.ts +1 -0
- package/dist/Avatar/typings.d.ts +1 -1
- package/dist/Badge/cva.d.ts +1 -1
- package/dist/Badge/typings.d.ts +4 -8
- package/dist/ButtonGroup/context.d.ts +2 -2
- package/dist/Buttons/cva.d.ts +2 -2
- package/dist/Buttons/typings.d.ts +3 -7
- package/dist/Card/cva.d.ts +1 -1
- package/dist/Card/typings.d.ts +1 -1
- package/dist/Checkbox/cva.d.ts +1 -1
- package/dist/Checkbox/index.d.ts +1 -0
- package/dist/Checkbox/typings.d.ts +1 -1
- package/dist/Dialog/Content.d.ts +1 -1
- package/dist/HoverCard/index.d.ts +1 -0
- package/dist/HoverCard/typings.d.ts +1 -1
- package/dist/Input/context.d.ts +1 -1
- package/dist/Input/cva.d.ts +3 -3
- package/dist/Input/index.d.ts +1 -0
- package/dist/Input/typings.d.ts +1 -1
- package/dist/Popover/index.d.ts +3 -0
- package/dist/Popover/typings.d.ts +1 -1
- package/dist/Provider/Provider.d.ts +1 -2
- package/dist/RadioGroup/index.d.ts +1 -0
- package/dist/SegmentedControl/cva.d.ts +2 -2
- package/dist/Separator/index.d.ts +1 -0
- package/dist/Separator/typings.d.ts +3 -7
- package/dist/Text/cva.d.ts +1 -1
- package/dist/TextArea/cva.d.ts +1 -1
- package/dist/TextArea/typings.d.ts +2 -2
- package/dist/ToggleButton/cva.d.ts +1 -1
- package/dist/ToggleButton/typings.d.ts +4 -8
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/Tooltip/typings.d.ts +1 -1
- package/dist/blocks.js +47 -41
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +47 -41
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import * as RadixAlertDialog from "@radix-ui/react-alert-dialog";
|
|
|
3
3
|
export * from "./Content";
|
|
4
4
|
export * from "./hooks";
|
|
5
5
|
export * from "./Provider";
|
|
6
|
+
export * from "./typings";
|
|
6
7
|
export declare const AlertDialog: {
|
|
7
8
|
Content: import("react").ForwardRefExoticComponent<import("./Content").AlertDialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
9
|
Trigger: import("react").ForwardRefExoticComponent<RadixAlertDialog.AlertDialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
package/dist/Avatar/cva.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export declare const avatar: (props?: ({
|
|
|
2
2
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
3
3
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
4
|
export declare const avatarFallback: (props?: ({
|
|
5
|
-
variant?: "solid" | "soft" | "
|
|
5
|
+
variant?: "solid" | "soft" | "outline" | "surface" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
package/dist/Avatar/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export * from "./Fallback";
|
|
3
3
|
export * from "./Image";
|
|
4
4
|
export * from "./Root";
|
|
5
|
+
export * from "./typings";
|
|
5
6
|
export declare const Avatar: {
|
|
6
7
|
Fallback: import("react").ForwardRefExoticComponent<import("./Fallback").AvatarFallbackProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
8
|
Image: import("react").ForwardRefExoticComponent<import("./Image").AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
package/dist/Avatar/typings.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import { ComponentRadius } from "../Provider
|
|
2
|
+
import type { ComponentRadius } from "../Provider";
|
|
3
3
|
import { avatar, avatarFallback } from "./cva";
|
|
4
4
|
type Variants = VariantProps<typeof avatar> & VariantProps<typeof avatarFallback>;
|
|
5
5
|
export type AvatarSize = NonNullable<Variants["size"]>;
|
package/dist/Badge/cva.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const badge: (props?: ({
|
|
2
2
|
icon?: boolean | null | undefined;
|
|
3
3
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
|
-
variant?: "solid" | "soft" | "
|
|
4
|
+
variant?: "solid" | "soft" | "outline" | "surface" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
package/dist/Badge/typings.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type BadgeVariants = VariantProps<typeof badge>;
|
|
5
|
-
export type BadgeSize = NonNullable<BadgeVariants["size"]>;
|
|
6
|
-
export type BadgeVariant = NonNullable<BadgeVariants["variant"]>;
|
|
1
|
+
import { ComponentRadius } from "../Provider";
|
|
2
|
+
export type BadgeSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
3
|
+
export type BadgeVariant = "solid" | "soft" | "outline" | "surface";
|
|
7
4
|
export interface BadgeVariantProps {
|
|
8
5
|
size?: BadgeSize;
|
|
9
6
|
variant?: BadgeVariant;
|
|
10
7
|
radius?: ComponentRadius;
|
|
11
|
-
icon?:
|
|
8
|
+
icon?: boolean;
|
|
12
9
|
}
|
|
13
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ButtonSize, ButtonVariant } from "../Buttons";
|
|
3
|
-
import { ComponentRadius } from "../Provider";
|
|
2
|
+
import type { ButtonSize, ButtonVariant } from "../Buttons";
|
|
3
|
+
import type { ComponentRadius } from "../Provider";
|
|
4
4
|
interface IButtonGroupContext {
|
|
5
5
|
variant: ButtonVariant;
|
|
6
6
|
size: ButtonSize;
|
package/dist/Buttons/cva.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
variant?: "solid" | "soft" | "
|
|
1
|
+
export declare const buttonCva: (props?: ({
|
|
2
|
+
variant?: "solid" | "soft" | "outline" | "surface" | "ghost" | null | undefined;
|
|
3
3
|
icon?: boolean | null | undefined;
|
|
4
4
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type Variants = VariantProps<typeof button>;
|
|
5
|
-
export type ButtonSize = NonNullable<Variants["size"]>;
|
|
6
|
-
export type ButtonVariant = NonNullable<Variants["variant"]>;
|
|
1
|
+
import type { ComponentRadius } from "../Provider";
|
|
2
|
+
export type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
3
|
+
export type ButtonVariant = "solid" | "soft" | "outline" | "surface" | "ghost";
|
|
7
4
|
export interface ButtonVariantProps {
|
|
8
5
|
size?: ButtonSize;
|
|
9
6
|
variant?: ButtonVariant;
|
|
10
7
|
radius?: ComponentRadius;
|
|
11
8
|
}
|
|
12
|
-
export {};
|
package/dist/Card/cva.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const cardCva: (props?: ({
|
|
2
|
-
variant?: "soft" | "
|
|
2
|
+
variant?: "soft" | "outline" | "surface" | null | undefined;
|
|
3
3
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
package/dist/Card/typings.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import { ComponentRadius } from "../Provider";
|
|
2
|
+
import type { ComponentRadius } from "../Provider";
|
|
3
3
|
import { cardCva } from "./cva";
|
|
4
4
|
type CardVariants = VariantProps<typeof cardCva>;
|
|
5
5
|
export type CardSize = NonNullable<CardVariants["size"]>;
|
package/dist/Checkbox/cva.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const checkbox: (props?: ({
|
|
2
|
-
variant?: "soft" | "
|
|
2
|
+
variant?: "soft" | "outline" | "surface" | null | undefined;
|
|
3
3
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
package/dist/Checkbox/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export * from "./Indicator";
|
|
3
3
|
export * from "./Root";
|
|
4
|
+
export * from "./typings";
|
|
4
5
|
export declare const Checkbox: {
|
|
5
6
|
Root: import("react").ForwardRefExoticComponent<import("./Root").CheckboxRootProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
7
|
Indicator: import("react").ForwardRefExoticComponent<import("./Indicator").CheckboxIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import { ComponentRadius } from "../Provider
|
|
2
|
+
import type { ComponentRadius } from "../Provider";
|
|
3
3
|
import { checkbox } from "./cva";
|
|
4
4
|
type Variants = VariantProps<typeof checkbox>;
|
|
5
5
|
export type CheckboxSize = NonNullable<Variants["size"]>;
|
package/dist/Dialog/Content.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import { AlertDialogSize } from "../AlertDialog
|
|
3
|
+
import { AlertDialogSize } from "../AlertDialog";
|
|
4
4
|
import { CloseDialogWithOptions } from "./typings";
|
|
5
5
|
export interface DialogContentProps extends Omit<RadixDialog.DialogContentProps, "children"> {
|
|
6
6
|
title: string;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as RadixHoverCard from "@radix-ui/react-hover-card";
|
|
3
3
|
export * from "./Arrow";
|
|
4
4
|
export * from "./Content";
|
|
5
|
+
export * from "./typings";
|
|
5
6
|
export declare const HoverCard: {
|
|
6
7
|
Arrow: import("react").ForwardRefExoticComponent<import("./Arrow").HoverCardArrowProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
7
8
|
Content: import("react").ForwardRefExoticComponent<import("./Content").HoverCardContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import { ComponentRadius } from "../Provider
|
|
2
|
+
import type { ComponentRadius } from "../Provider";
|
|
3
3
|
import { hoverCardContent } from "./cva";
|
|
4
4
|
type Variants = VariantProps<typeof hoverCardContent>;
|
|
5
5
|
export type HoverCardSize = NonNullable<Variants["size"]>;
|
package/dist/Input/context.d.ts
CHANGED
package/dist/Input/cva.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const inputRoot: (props?: ({
|
|
2
|
-
variant?: "soft" | "
|
|
2
|
+
variant?: "soft" | "outline" | "surface" | null | undefined;
|
|
3
3
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
5
|
export declare const inputField: (props?: ({
|
|
6
|
-
variant?: "soft" | "
|
|
6
|
+
variant?: "soft" | "outline" | "surface" | null | undefined;
|
|
7
7
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export declare const inputSlot: (props?: ({
|
|
10
10
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
11
|
-
variant?: "soft" | "
|
|
11
|
+
variant?: "soft" | "outline" | "surface" | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
package/dist/Input/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export * from "./Field";
|
|
3
3
|
export * from "./Root";
|
|
4
4
|
export * from "./Slot";
|
|
5
|
+
export * from "./typings";
|
|
5
6
|
export declare const Input: {
|
|
6
7
|
Field: import("react").ForwardRefExoticComponent<import("./Field").InputFieldProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
7
8
|
Root: import("react").ForwardRefExoticComponent<import("./Root").InputRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/Input/typings.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import { ComponentRadius } from "../Provider
|
|
2
|
+
import type { ComponentRadius } from "../Provider";
|
|
3
3
|
import { inputRoot } from "./cva";
|
|
4
4
|
type Variants = VariantProps<typeof inputRoot>;
|
|
5
5
|
export type InputSize = NonNullable<Variants["size"]>;
|
package/dist/Popover/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as RadixPopover from "@radix-ui/react-popover";
|
|
3
|
+
export * from "./Arrow";
|
|
4
|
+
export * from "./Content";
|
|
5
|
+
export * from "./typings";
|
|
3
6
|
export declare const Popover: {
|
|
4
7
|
Content: import("react").ForwardRefExoticComponent<import("./Content").PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
8
|
Arrow: import("react").ForwardRefExoticComponent<import("./Arrow").PopoverArrowProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import { ComponentRadius } from "../Provider
|
|
2
|
+
import type { ComponentRadius } from "../Provider";
|
|
3
3
|
import { popoverContent } from "./cva";
|
|
4
4
|
type PopoverVariants = VariantProps<typeof popoverContent>;
|
|
5
5
|
export type PopoverSize = NonNullable<PopoverVariants["size"]>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
import { ComponentRadius } from "./typings";
|
|
3
|
-
interface ProviderProps extends PropsWithChildren {
|
|
3
|
+
export interface ProviderProps extends PropsWithChildren {
|
|
4
4
|
accentColor: string;
|
|
5
5
|
radius?: ComponentRadius;
|
|
6
6
|
}
|
|
7
7
|
export declare const Provider: (props: ProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export * from "./Indicator";
|
|
3
3
|
export * from "./Item";
|
|
4
4
|
export * from "./Root";
|
|
5
|
+
export * from "./typings";
|
|
5
6
|
export declare const RadioGroup: {
|
|
6
7
|
Indicator: import("react").ForwardRefExoticComponent<import("./Indicator").RadioGroupIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
8
|
Item: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Item").RadioGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const segmentedControlRootCva: (props?: ({
|
|
2
|
-
variant?: "soft" | "
|
|
2
|
+
variant?: "soft" | "outline" | "surface" | null | undefined;
|
|
3
3
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
5
|
export declare const segmentedControlItemCva: (props?: ({
|
|
6
|
-
variant?: "soft" | "
|
|
6
|
+
variant?: "soft" | "outline" | "surface" | null | undefined;
|
|
7
7
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
8
8
|
icon?: boolean | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
export type SeparatorSize = NonNullable<Variants["size"]>;
|
|
5
|
-
export type SeparatorWeight = NonNullable<Variants["weight"]>;
|
|
6
|
-
export type SeparatorOrientation = NonNullable<Variants["orientation"]>;
|
|
1
|
+
export type SeparatorSize = "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
2
|
+
export type SeparatorWeight = "light" | "medium" | "heavy";
|
|
3
|
+
export type SeparatorOrientation = "horizontal" | "vertical";
|
|
7
4
|
export interface SeparatorVariantProps {
|
|
8
5
|
size?: SeparatorSize;
|
|
9
6
|
weight?: SeparatorWeight;
|
|
10
7
|
orientation?: SeparatorOrientation;
|
|
11
8
|
}
|
|
12
|
-
export {};
|
package/dist/Text/cva.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const textCva: (props?: ({
|
|
2
2
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
3
3
|
weight?: "bold" | "medium" | "light" | "regular" | null | undefined;
|
|
4
|
-
align?: "
|
|
4
|
+
align?: "right" | "left" | "center" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
package/dist/TextArea/cva.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const textAreaCva: (props?: ({
|
|
2
|
-
variant?: "soft" | "
|
|
2
|
+
variant?: "soft" | "outline" | "surface" | null | undefined;
|
|
3
3
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
4
|
resize?: "none" | "both" | "horizontal" | "vertical" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import { ComponentRadius } from "../Provider
|
|
2
|
+
import type { ComponentRadius } from "../Provider";
|
|
3
3
|
import { textAreaCva } from "./cva";
|
|
4
4
|
type TextAreaVariants = VariantProps<typeof textAreaCva>;
|
|
5
5
|
export type TextAreaSize = NonNullable<TextAreaVariants["size"]>;
|
|
6
6
|
export type TextAreaVariant = NonNullable<TextAreaVariants["variant"]>;
|
|
7
|
-
type TextAreaResize = NonNullable<TextAreaVariants["resize"]>;
|
|
7
|
+
export type TextAreaResize = NonNullable<TextAreaVariants["resize"]>;
|
|
8
8
|
export interface TextAreaVariantProps {
|
|
9
9
|
size?: TextAreaSize;
|
|
10
10
|
variant?: TextAreaVariant;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const toggleButtonCva: (props?: ({
|
|
2
|
-
variant?: "
|
|
2
|
+
variant?: "outline" | "ghost" | null | undefined;
|
|
3
3
|
icon?: boolean | null | undefined;
|
|
4
4
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import * as Toggle from "@radix-ui/react-toggle";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type ToggleButtonVariants = VariantProps<typeof toggleButtonCva>;
|
|
7
|
-
export type ToggleButtonSize = NonNullable<ToggleButtonVariants["size"]>;
|
|
8
|
-
export type ToggleButtonVariant = NonNullable<ToggleButtonVariants["variant"]>;
|
|
2
|
+
import type { ComponentRadius } from "../Provider";
|
|
3
|
+
import type { AccentColorProps } from "../typings";
|
|
4
|
+
export type ToggleButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
5
|
+
export type ToggleButtonVariant = "outline" | "ghost";
|
|
9
6
|
export interface ToggleButtonVariantProps {
|
|
10
7
|
variant?: ToggleButtonVariant;
|
|
11
8
|
size?: ToggleButtonSize;
|
|
@@ -15,4 +12,3 @@ export interface BaseToggleButtonProps extends Toggle.ToggleProps, ToggleButtonV
|
|
|
15
12
|
icon: boolean;
|
|
16
13
|
}
|
|
17
14
|
export type ToggleButtonProps = Omit<BaseToggleButtonProps, "icon">;
|
|
18
|
-
export {};
|
package/dist/Tooltip/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
3
3
|
export * from "./Arrow";
|
|
4
4
|
export * from "./Content";
|
|
5
|
+
export * from "./typings";
|
|
5
6
|
export declare const Tooltip: {
|
|
6
7
|
Arrow: import("react").ForwardRefExoticComponent<import("./Arrow").TooltipArrowProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
7
8
|
Content: import("react").ForwardRefExoticComponent<import("./Content").TooltipContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import { ComponentRadius } from "../Provider
|
|
2
|
+
import type { ComponentRadius } from "../Provider";
|
|
3
3
|
import { tooltipContent } from "./cva";
|
|
4
4
|
type Variants = VariantProps<typeof tooltipContent>;
|
|
5
5
|
export type TooltipSize = NonNullable<Variants["size"]>;
|
package/dist/blocks.js
CHANGED
|
@@ -28,6 +28,33 @@ import * as RadixTabs from "@radix-ui/react-tabs";
|
|
|
28
28
|
import * as RadixToast from "@radix-ui/react-toast";
|
|
29
29
|
import { ToastProvider as ToastProvider$1, ToastViewport } from "@radix-ui/react-toast";
|
|
30
30
|
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
31
|
+
const floating = cva(
|
|
32
|
+
[
|
|
33
|
+
"data-[state=open]:animate-in",
|
|
34
|
+
"data-[state=open]:fade-in-0",
|
|
35
|
+
"data-[state=open]:zoom-in-95",
|
|
36
|
+
"data-[state=closed]:animate-out",
|
|
37
|
+
"data-[state=closed]:fade-out-0",
|
|
38
|
+
"data-[state=closed]:zoom-out-95"
|
|
39
|
+
],
|
|
40
|
+
{
|
|
41
|
+
variants: {
|
|
42
|
+
shadow: {
|
|
43
|
+
"1": ["shadow-xs"],
|
|
44
|
+
"2": ["shadow-sm"],
|
|
45
|
+
"3": ["shadow-md"],
|
|
46
|
+
"4": ["shadow-lg"],
|
|
47
|
+
"5": ["shadow-xl"]
|
|
48
|
+
},
|
|
49
|
+
side: {
|
|
50
|
+
top: ["data-[side=top]:slide-in-from-bottom-2"],
|
|
51
|
+
right: ["data-[side=right]:slide-in-from-left-2"],
|
|
52
|
+
bottom: ["data-[side=bottom]:slide-in-from-top-2"],
|
|
53
|
+
left: ["data-[side=left]:slide-in-from-right-2"]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
);
|
|
31
58
|
const radiusCva = cva([], {
|
|
32
59
|
variants: {
|
|
33
60
|
maxLarge: {
|
|
@@ -184,34 +211,7 @@ const ButtonGroup = (props) => {
|
|
|
184
211
|
};
|
|
185
212
|
ButtonGroup.displayName = "Buttons";
|
|
186
213
|
const useButtonGroup = () => useContext(ButtonGroupContext);
|
|
187
|
-
const
|
|
188
|
-
[
|
|
189
|
-
"data-[state=open]:animate-in",
|
|
190
|
-
"data-[state=open]:fade-in-0",
|
|
191
|
-
"data-[state=open]:zoom-in-95",
|
|
192
|
-
"data-[state=closed]:animate-out",
|
|
193
|
-
"data-[state=closed]:fade-out-0",
|
|
194
|
-
"data-[state=closed]:zoom-out-95"
|
|
195
|
-
],
|
|
196
|
-
{
|
|
197
|
-
variants: {
|
|
198
|
-
shadow: {
|
|
199
|
-
"1": ["shadow-xs"],
|
|
200
|
-
"2": ["shadow-sm"],
|
|
201
|
-
"3": ["shadow-md"],
|
|
202
|
-
"4": ["shadow-lg"],
|
|
203
|
-
"5": ["shadow-xl"]
|
|
204
|
-
},
|
|
205
|
-
side: {
|
|
206
|
-
top: ["data-[side=top]:slide-in-from-bottom-2"],
|
|
207
|
-
right: ["data-[side=right]:slide-in-from-left-2"],
|
|
208
|
-
bottom: ["data-[side=bottom]:slide-in-from-top-2"],
|
|
209
|
-
left: ["data-[side=left]:slide-in-from-right-2"]
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
);
|
|
214
|
-
const button = cva(
|
|
214
|
+
const buttonCva = cva(
|
|
215
215
|
[
|
|
216
216
|
"flex",
|
|
217
217
|
"items-center",
|
|
@@ -367,7 +367,7 @@ const Button = memo(
|
|
|
367
367
|
{
|
|
368
368
|
className: cx(
|
|
369
369
|
className,
|
|
370
|
-
|
|
370
|
+
buttonCva({ size: size2, icon: false, variant }),
|
|
371
371
|
radiusCva({ radius, maxLarge: false })
|
|
372
372
|
),
|
|
373
373
|
ref,
|
|
@@ -394,7 +394,11 @@ const IconButton = memo(
|
|
|
394
394
|
return /* @__PURE__ */ jsx(
|
|
395
395
|
"button",
|
|
396
396
|
{
|
|
397
|
-
className: cx(
|
|
397
|
+
className: cx(
|
|
398
|
+
className,
|
|
399
|
+
buttonCva({ size: size2, icon: true, variant }),
|
|
400
|
+
radiusCva({ radius, maxLarge: false })
|
|
401
|
+
),
|
|
398
402
|
ref,
|
|
399
403
|
"data-accent-color": accentColor,
|
|
400
404
|
...rest,
|
|
@@ -553,52 +557,52 @@ const badge = cva(["flex", "items-center"], {
|
|
|
553
557
|
{
|
|
554
558
|
icon: true,
|
|
555
559
|
size: "xs",
|
|
556
|
-
|
|
560
|
+
className: "w-5"
|
|
557
561
|
},
|
|
558
562
|
{
|
|
559
563
|
icon: false,
|
|
560
564
|
size: "xs",
|
|
561
|
-
|
|
565
|
+
className: "px-2"
|
|
562
566
|
},
|
|
563
567
|
{
|
|
564
568
|
icon: true,
|
|
565
569
|
size: "sm",
|
|
566
|
-
|
|
570
|
+
className: "w-6"
|
|
567
571
|
},
|
|
568
572
|
{
|
|
569
573
|
icon: false,
|
|
570
574
|
size: "sm",
|
|
571
|
-
|
|
575
|
+
className: "px-2"
|
|
572
576
|
},
|
|
573
577
|
{
|
|
574
578
|
icon: true,
|
|
575
579
|
size: "md",
|
|
576
|
-
|
|
580
|
+
className: "w-7"
|
|
577
581
|
},
|
|
578
582
|
{
|
|
579
583
|
icon: false,
|
|
580
584
|
size: "md",
|
|
581
|
-
|
|
585
|
+
className: "px-3"
|
|
582
586
|
},
|
|
583
587
|
{
|
|
584
588
|
icon: true,
|
|
585
589
|
size: "lg",
|
|
586
|
-
|
|
590
|
+
className: "w-8"
|
|
587
591
|
},
|
|
588
592
|
{
|
|
589
593
|
icon: false,
|
|
590
594
|
size: "lg",
|
|
591
|
-
|
|
595
|
+
className: "px-4"
|
|
592
596
|
},
|
|
593
597
|
{
|
|
594
598
|
icon: true,
|
|
595
599
|
size: "xl",
|
|
596
|
-
|
|
600
|
+
className: "w-9"
|
|
597
601
|
},
|
|
598
602
|
{
|
|
599
603
|
icon: false,
|
|
600
604
|
size: "xl",
|
|
601
|
-
|
|
605
|
+
className: "px-5"
|
|
602
606
|
}
|
|
603
607
|
],
|
|
604
608
|
defaultVariants: {
|
|
@@ -9371,6 +9375,8 @@ export {
|
|
|
9371
9375
|
MenuVirtualTrigger,
|
|
9372
9376
|
OvermapErrorBoundary,
|
|
9373
9377
|
Popover,
|
|
9378
|
+
PopoverArrow,
|
|
9379
|
+
PopoverContent,
|
|
9374
9380
|
Provider,
|
|
9375
9381
|
RadioGroup,
|
|
9376
9382
|
RadioGroupIndicator,
|
|
@@ -9399,7 +9405,7 @@ export {
|
|
|
9399
9405
|
TooltipArrow,
|
|
9400
9406
|
TooltipContent,
|
|
9401
9407
|
badge,
|
|
9402
|
-
|
|
9408
|
+
buttonCva,
|
|
9403
9409
|
splitTextForEllipsisAndExpansion,
|
|
9404
9410
|
unsafeShowToast,
|
|
9405
9411
|
useAlertDialog,
|