@overmap-ai/blocks 1.0.31-tailwind-components.26 → 1.0.31-tailwind-components.28
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/Avatar/Root.d.ts +1 -2
- package/dist/Avatar/typings.d.ts +2 -1
- package/dist/Badge/Badge.d.ts +1 -2
- package/dist/Badge/typings.d.ts +2 -1
- package/dist/Buttons/Button.d.ts +1 -2
- package/dist/Buttons/typings.d.ts +2 -1
- package/dist/Card/Card.d.ts +1 -2
- package/dist/Card/typings.d.ts +2 -1
- package/dist/Checkbox/Root.d.ts +1 -2
- package/dist/Checkbox/typings.d.ts +2 -1
- package/dist/HoverCard/Content.d.ts +1 -2
- package/dist/HoverCard/typings.d.ts +2 -1
- package/dist/Input/Root.d.ts +1 -2
- package/dist/Input/typings.d.ts +2 -1
- package/dist/Link/Link.d.ts +1 -2
- package/dist/Link/typings.d.ts +2 -1
- package/dist/Menu/typings.d.ts +2 -2
- package/dist/Popover/Content.d.ts +1 -2
- package/dist/Popover/typings.d.ts +2 -1
- package/dist/RadioGroup/Root.d.ts +1 -2
- package/dist/RadioGroup/typings.d.ts +2 -1
- package/dist/SegmentedControl/Root.d.ts +1 -2
- package/dist/SegmentedControl/typings.d.ts +2 -1
- package/dist/Separator/Separator.d.ts +1 -2
- package/dist/Separator/typings.d.ts +2 -1
- package/dist/Switch/Root.d.ts +1 -2
- package/dist/Switch/typings.d.ts +2 -1
- package/dist/Table/Root.d.ts +1 -2
- package/dist/Table/typings.d.ts +2 -1
- package/dist/Tabs/List.d.ts +1 -2
- package/dist/Tabs/typings.d.ts +2 -1
- package/dist/Text/Text.d.ts +1 -2
- package/dist/Text/typings.d.ts +2 -1
- package/dist/TextArea/TextArea.d.ts +1 -2
- package/dist/TextArea/typings.d.ts +2 -1
- package/dist/Toast/typings.d.ts +2 -2
- package/dist/ToggleButton/typings.d.ts +2 -2
- package/dist/Tooltip/Content.d.ts +1 -2
- package/dist/Tooltip/typings.d.ts +2 -1
- package/dist/blocks.js +0 -11
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +0 -11
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/Avatar/Root.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as RadixAvatar from "@radix-ui/react-avatar";
|
|
3
|
-
import type { AccentColorProps } from "../typings";
|
|
4
3
|
import type { AvatarVariantProps } from "./typings";
|
|
5
|
-
export interface AvatarRootProps extends RadixAvatar.AvatarProps, AvatarVariantProps
|
|
4
|
+
export interface AvatarRootProps extends RadixAvatar.AvatarProps, AvatarVariantProps {
|
|
6
5
|
}
|
|
7
6
|
export declare const AvatarRoot: import("react").ForwardRefExoticComponent<AvatarRootProps & import("react").RefAttributes<HTMLSpanElement>>;
|
package/dist/Avatar/typings.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { ComponentRadius } from "../Provider";
|
|
3
|
+
import type { AccentColorProps } from "../typings";
|
|
3
4
|
import { avatar, avatarFallback } from "./cva";
|
|
4
5
|
type Variants = VariantProps<typeof avatar> & VariantProps<typeof avatarFallback>;
|
|
5
6
|
export type AvatarSize = NonNullable<Variants["size"]>;
|
|
6
7
|
export type AvatarVariant = NonNullable<Variants["variant"]>;
|
|
7
|
-
export interface AvatarVariantProps {
|
|
8
|
+
export interface AvatarVariantProps extends AccentColorProps {
|
|
8
9
|
variant?: AvatarVariant;
|
|
9
10
|
size?: AvatarSize;
|
|
10
11
|
radius?: ComponentRadius;
|
package/dist/Badge/Badge.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
import type { AccentColorProps } from "../typings";
|
|
3
2
|
import type { BadgeVariantProps } from "./typings";
|
|
4
|
-
export interface BadgeProps extends ComponentProps<"span">, BadgeVariantProps
|
|
3
|
+
export interface BadgeProps extends ComponentProps<"span">, BadgeVariantProps {
|
|
5
4
|
}
|
|
6
5
|
export declare const Badge: import("react").ForwardRefExoticComponent<Omit<BadgeProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
package/dist/Badge/typings.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ComponentRadius } from "../Provider";
|
|
2
|
+
import type { AccentColorProps } from "../typings";
|
|
2
3
|
export type BadgeSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
3
4
|
export type BadgeVariant = "solid" | "soft" | "outline" | "surface";
|
|
4
|
-
export interface BadgeVariantProps {
|
|
5
|
+
export interface BadgeVariantProps extends AccentColorProps {
|
|
5
6
|
size?: BadgeSize;
|
|
6
7
|
variant?: BadgeVariant;
|
|
7
8
|
radius?: ComponentRadius;
|
package/dist/Buttons/Button.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
-
import type { AccentColorProps } from "../typings";
|
|
3
2
|
import type { ButtonVariantProps } from "./typings";
|
|
4
|
-
export interface ButtonProps extends ButtonVariantProps, PropsWithoutRef<ComponentProps<"button"
|
|
3
|
+
export interface ButtonProps extends ButtonVariantProps, PropsWithoutRef<ComponentProps<"button">> {
|
|
5
4
|
}
|
|
6
5
|
export declare const Button: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ComponentRadius } from "../Provider";
|
|
2
|
+
import type { AccentColorProps } from "../typings";
|
|
2
3
|
export type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
3
4
|
export type ButtonVariant = "solid" | "soft" | "outline" | "surface" | "ghost";
|
|
4
|
-
export interface ButtonVariantProps {
|
|
5
|
+
export interface ButtonVariantProps extends AccentColorProps {
|
|
5
6
|
size?: ButtonSize;
|
|
6
7
|
variant?: ButtonVariant;
|
|
7
8
|
radius?: ComponentRadius;
|
package/dist/Card/Card.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
-
import type { AccentColorProps } from "../typings";
|
|
3
2
|
import type { CardVariantProps } from "./typings";
|
|
4
|
-
export interface CardProps extends PropsWithoutRef<ComponentProps<"div">>, CardVariantProps
|
|
3
|
+
export interface CardProps extends PropsWithoutRef<ComponentProps<"div">>, CardVariantProps {
|
|
5
4
|
}
|
|
6
5
|
export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/Card/typings.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { ComponentRadius } from "../Provider";
|
|
3
|
+
import type { AccentColorProps } from "../typings";
|
|
3
4
|
import { cardCva } from "./cva";
|
|
4
5
|
type CardVariants = VariantProps<typeof cardCva>;
|
|
5
6
|
export type CardSize = NonNullable<CardVariants["size"]>;
|
|
6
7
|
export type CardVariant = NonNullable<CardVariants["variant"]>;
|
|
7
|
-
export interface CardVariantProps {
|
|
8
|
+
export interface CardVariantProps extends AccentColorProps {
|
|
8
9
|
size?: CardSize;
|
|
9
10
|
variant?: CardVariant;
|
|
10
11
|
radius?: ComponentRadius;
|
package/dist/Checkbox/Root.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as RadixCheckbox from "@radix-ui/react-checkbox";
|
|
3
|
-
import type { AccentColorProps } from "../typings";
|
|
4
3
|
import type { CheckboxVariantProps } from "./typings";
|
|
5
|
-
export interface CheckboxRootProps extends CheckboxVariantProps, RadixCheckbox.CheckboxProps
|
|
4
|
+
export interface CheckboxRootProps extends CheckboxVariantProps, RadixCheckbox.CheckboxProps {
|
|
6
5
|
}
|
|
7
6
|
export declare const CheckboxRoot: import("react").ForwardRefExoticComponent<CheckboxRootProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { ComponentRadius } from "../Provider";
|
|
3
|
+
import type { AccentColorProps } from "../typings";
|
|
3
4
|
import { checkbox } from "./cva";
|
|
4
5
|
type Variants = VariantProps<typeof checkbox>;
|
|
5
6
|
export type CheckboxSize = NonNullable<Variants["size"]>;
|
|
6
7
|
export type CheckboxVariant = NonNullable<Variants["variant"]>;
|
|
7
|
-
export interface CheckboxVariantProps {
|
|
8
|
+
export interface CheckboxVariantProps extends AccentColorProps {
|
|
8
9
|
size?: CheckboxSize;
|
|
9
10
|
variant?: CheckboxVariant;
|
|
10
11
|
radius?: ComponentRadius;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as RadixHoverCard from "@radix-ui/react-hover-card";
|
|
3
|
-
import type { AccentColorProps } from "../typings";
|
|
4
3
|
import type { HoverCardVariantProps } from "./typings";
|
|
5
|
-
export interface HoverCardContentProps extends RadixHoverCard.HoverCardContentProps, HoverCardVariantProps
|
|
4
|
+
export interface HoverCardContentProps extends RadixHoverCard.HoverCardContentProps, HoverCardVariantProps {
|
|
6
5
|
container?: RadixHoverCard.HoverCardPortalProps["container"];
|
|
7
6
|
}
|
|
8
7
|
export declare const HoverCardContent: import("react").ForwardRefExoticComponent<HoverCardContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { ComponentRadius } from "../Provider";
|
|
3
|
+
import type { AccentColorProps } from "../typings";
|
|
3
4
|
import { hoverCardContent } from "./cva";
|
|
4
5
|
type Variants = VariantProps<typeof hoverCardContent>;
|
|
5
6
|
export type HoverCardSize = NonNullable<Variants["size"]>;
|
|
6
|
-
export interface HoverCardVariantProps {
|
|
7
|
+
export interface HoverCardVariantProps extends AccentColorProps {
|
|
7
8
|
size?: HoverCardSize;
|
|
8
9
|
radius?: ComponentRadius;
|
|
9
10
|
}
|
package/dist/Input/Root.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
-
import type { AccentColorProps } from "../typings";
|
|
3
2
|
import type { InputVariantProps } from "./typings";
|
|
4
|
-
export interface InputRootProps extends InputVariantProps, PropsWithoutRef<ComponentProps<"div"
|
|
3
|
+
export interface InputRootProps extends InputVariantProps, PropsWithoutRef<ComponentProps<"div">> {
|
|
5
4
|
}
|
|
6
5
|
export declare const InputRoot: import("react").ForwardRefExoticComponent<InputRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/Input/typings.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { ComponentRadius } from "../Provider";
|
|
3
|
+
import type { AccentColorProps } from "../typings";
|
|
3
4
|
import { inputRoot } from "./cva";
|
|
4
5
|
type Variants = VariantProps<typeof inputRoot>;
|
|
5
6
|
export type InputSize = NonNullable<Variants["size"]>;
|
|
6
7
|
export type InputVariant = NonNullable<Variants["variant"]>;
|
|
7
|
-
export interface InputVariantProps {
|
|
8
|
+
export interface InputVariantProps extends AccentColorProps {
|
|
8
9
|
size?: InputSize;
|
|
9
10
|
variant?: InputVariant;
|
|
10
11
|
radius?: ComponentRadius;
|
package/dist/Link/Link.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
-
import type { AccentColorProps } from "../typings";
|
|
3
2
|
import type { LinkVariantProps } from "./typings";
|
|
4
|
-
export interface LinkProps extends PropsWithoutRef<ComponentProps<"a">>,
|
|
3
|
+
export interface LinkProps extends PropsWithoutRef<ComponentProps<"a">>, LinkVariantProps {
|
|
5
4
|
}
|
|
6
5
|
export declare const Link: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
package/dist/Link/typings.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { AccentColorProps } from "../typings";
|
|
2
3
|
import { linkCva } from "./cva";
|
|
3
4
|
type LinkVariants = VariantProps<typeof linkCva>;
|
|
4
5
|
export type LinkSize = Exclude<NonNullable<LinkVariants["size"]>, "none">;
|
|
5
6
|
export type LinkWeight = NonNullable<LinkVariants["weight"]>;
|
|
6
7
|
export type LinkAlign = NonNullable<LinkVariants["align"]>;
|
|
7
|
-
export interface LinkVariantProps {
|
|
8
|
+
export interface LinkVariantProps extends AccentColorProps {
|
|
8
9
|
size?: LinkSize;
|
|
9
10
|
weight?: LinkWeight;
|
|
10
11
|
align?: LinkAlign;
|
package/dist/Menu/typings.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { menuItem } from "./cva";
|
|
|
8
8
|
type MenuItemVariants = VariantProps<typeof menuItem>;
|
|
9
9
|
export type MenuVariant = NonNullable<MenuItemVariants["variant"]>;
|
|
10
10
|
export type MenuSize = NonNullable<MenuItemVariants["size"]>;
|
|
11
|
-
export interface MenuVariantProps extends
|
|
11
|
+
export interface MenuVariantProps extends AccentColorProps {
|
|
12
12
|
variant?: MenuVariant;
|
|
13
13
|
size?: MenuSize;
|
|
14
14
|
radius?: ComponentRadius;
|
|
@@ -26,7 +26,7 @@ export interface MenuRootProps extends PropsWithChildren {
|
|
|
26
26
|
loop?: boolean;
|
|
27
27
|
modal?: boolean;
|
|
28
28
|
}
|
|
29
|
-
export interface MenuContentProps extends ComponentProps<PropsWithoutRef<"div">>,
|
|
29
|
+
export interface MenuContentProps extends ComponentProps<PropsWithoutRef<"div">>, MenuVariantProps {
|
|
30
30
|
}
|
|
31
31
|
export interface MenuClickTriggerProps {
|
|
32
32
|
children: ReactElement;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as RadixPopover from "@radix-ui/react-popover";
|
|
3
|
-
import type { AccentColorProps } from "../typings";
|
|
4
3
|
import type { PopoverVariantProps } from "./typings";
|
|
5
|
-
export interface PopoverContentProps extends RadixPopover.PopoverContentProps, PopoverVariantProps
|
|
4
|
+
export interface PopoverContentProps extends RadixPopover.PopoverContentProps, PopoverVariantProps {
|
|
6
5
|
container?: RadixPopover.PopoverPortalProps["container"];
|
|
7
6
|
}
|
|
8
7
|
export declare const PopoverContent: import("react").ForwardRefExoticComponent<PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { ComponentRadius } from "../Provider";
|
|
3
|
+
import type { AccentColorProps } from "../typings";
|
|
3
4
|
import { popoverContent } from "./cva";
|
|
4
5
|
type PopoverVariants = VariantProps<typeof popoverContent>;
|
|
5
6
|
export type PopoverSize = NonNullable<PopoverVariants["size"]>;
|
|
6
|
-
export interface PopoverVariantProps {
|
|
7
|
+
export interface PopoverVariantProps extends AccentColorProps {
|
|
7
8
|
size?: PopoverSize;
|
|
8
9
|
radius?: ComponentRadius;
|
|
9
10
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as RadixRadioGroup from "@radix-ui/react-radio-group";
|
|
3
|
-
import type { AccentColorProps } from "../typings";
|
|
4
3
|
import type { RadioGroupVariantProps } from "./typings";
|
|
5
|
-
export interface RadioGroupRootProps extends RadixRadioGroup.RadioGroupProps, RadioGroupVariantProps
|
|
4
|
+
export interface RadioGroupRootProps extends RadixRadioGroup.RadioGroupProps, RadioGroupVariantProps {
|
|
6
5
|
}
|
|
7
6
|
export declare const RadioGroupRoot: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<RadioGroupRootProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { AccentColorProps } from "../typings";
|
|
2
3
|
import { radioGroupItem } from "./cva";
|
|
3
4
|
type Variants = VariantProps<typeof radioGroupItem>;
|
|
4
5
|
export type RadioGroupVariant = NonNullable<Variants["variant"]>;
|
|
5
6
|
export type RadioGroupSize = NonNullable<Variants["size"]>;
|
|
6
|
-
export interface RadioGroupVariantProps {
|
|
7
|
+
export interface RadioGroupVariantProps extends AccentColorProps {
|
|
7
8
|
variant?: RadioGroupVariant;
|
|
8
9
|
size?: RadioGroupSize;
|
|
9
10
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as RadixToggleGroup from "@radix-ui/react-toggle-group";
|
|
3
|
-
import type { AccentColorProps } from "../typings";
|
|
4
3
|
import type { SegmentedControlVariantProps } from "./typings";
|
|
5
|
-
export interface SegmentedControlRootProps extends Omit<RadixToggleGroup.ToggleGroupSingleProps, "type">, SegmentedControlVariantProps
|
|
4
|
+
export interface SegmentedControlRootProps extends Omit<RadixToggleGroup.ToggleGroupSingleProps, "type">, SegmentedControlVariantProps {
|
|
6
5
|
}
|
|
7
6
|
export declare const SegmentedControlRoot: import("react").ForwardRefExoticComponent<SegmentedControlRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { ComponentRadius } from "../Provider";
|
|
3
|
+
import type { AccentColorProps } from "../typings";
|
|
3
4
|
import { segmentedControlRootCva } from "./cva";
|
|
4
5
|
type SegmentedControlVariants = VariantProps<typeof segmentedControlRootCva>;
|
|
5
6
|
export type SegmentedControlSize = NonNullable<SegmentedControlVariants["size"]>;
|
|
6
7
|
export type SegmentedControlVariant = NonNullable<SegmentedControlVariants["variant"]>;
|
|
7
|
-
export interface SegmentedControlVariantProps {
|
|
8
|
+
export interface SegmentedControlVariantProps extends AccentColorProps {
|
|
8
9
|
size?: SegmentedControlSize;
|
|
9
10
|
variant?: SegmentedControlVariant;
|
|
10
11
|
radius?: ComponentRadius;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as RadixSeparator from "@radix-ui/react-separator";
|
|
3
|
-
import { AccentColorProps } from "../typings";
|
|
4
3
|
import type { SeparatorVariantProps } from "./typings";
|
|
5
|
-
interface SeparatorProps extends RadixSeparator.SeparatorProps, SeparatorVariantProps
|
|
4
|
+
interface SeparatorProps extends RadixSeparator.SeparatorProps, SeparatorVariantProps {
|
|
6
5
|
}
|
|
7
6
|
export declare const Separator: import("react").ForwardRefExoticComponent<SeparatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
7
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { AccentColorProps } from "../typings";
|
|
1
2
|
export type SeparatorSize = "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
2
3
|
export type SeparatorWeight = "light" | "medium" | "heavy";
|
|
3
4
|
export type SeparatorOrientation = "horizontal" | "vertical";
|
|
4
|
-
export interface SeparatorVariantProps {
|
|
5
|
+
export interface SeparatorVariantProps extends AccentColorProps {
|
|
5
6
|
size?: SeparatorSize;
|
|
6
7
|
weight?: SeparatorWeight;
|
|
7
8
|
orientation?: SeparatorOrientation;
|
package/dist/Switch/Root.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as RadixSwitch from "@radix-ui/react-switch";
|
|
3
|
-
import type { AccentColorProps } from "../typings";
|
|
4
3
|
import type { SwitchVariantProps } from "./typings";
|
|
5
|
-
export interface SwitchRootProps extends RadixSwitch.SwitchProps, SwitchVariantProps
|
|
4
|
+
export interface SwitchRootProps extends RadixSwitch.SwitchProps, SwitchVariantProps {
|
|
6
5
|
}
|
|
7
6
|
export declare const SwitchRoot: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<SwitchRootProps & import("react").RefAttributes<HTMLButtonElement>>>;
|
package/dist/Switch/typings.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { AccentColorProps } from "../typings";
|
|
2
3
|
import { switchRoot } from "./cva";
|
|
3
4
|
type Variants = VariantProps<typeof switchRoot>;
|
|
4
5
|
export type SwitchSize = NonNullable<Variants["size"]>;
|
|
5
|
-
export interface SwitchVariantProps {
|
|
6
|
+
export interface SwitchVariantProps extends AccentColorProps {
|
|
6
7
|
size?: SwitchSize;
|
|
7
8
|
}
|
|
8
9
|
export {};
|
package/dist/Table/Root.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
-
import type { AccentColorProps } from "../typings";
|
|
3
2
|
import type { TableVariantProps } from "./typings";
|
|
4
|
-
export interface TableRootProps extends Omit<PropsWithoutRef<ComponentProps<"table">>, "border">,
|
|
3
|
+
export interface TableRootProps extends Omit<PropsWithoutRef<ComponentProps<"table">>, "border">, TableVariantProps {
|
|
5
4
|
}
|
|
6
5
|
export declare const TableRoot: import("react").ForwardRefExoticComponent<TableRootProps & import("react").RefAttributes<HTMLTableElement>>;
|
package/dist/Table/typings.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { AccentColorProps } from "../typings";
|
|
2
3
|
import { tableCellCva } from "./cva";
|
|
3
4
|
type TableVariants = VariantProps<typeof tableCellCva>;
|
|
4
5
|
export type TableCellSize = NonNullable<TableVariants["size"]>;
|
|
5
6
|
export type TableBorder = NonNullable<TableVariants["border"]>;
|
|
6
7
|
export type TableVariant = NonNullable<TableVariants["variant"]>;
|
|
7
|
-
export interface TableVariantProps {
|
|
8
|
+
export interface TableVariantProps extends AccentColorProps {
|
|
8
9
|
size?: TableCellSize;
|
|
9
10
|
border?: TableBorder;
|
|
10
11
|
variant?: TableVariant;
|
package/dist/Tabs/List.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as RadixTabs from "@radix-ui/react-tabs";
|
|
3
|
-
import type { AccentColorProps } from "../typings";
|
|
4
3
|
import type { TabsVariantProps } from "./typings";
|
|
5
|
-
export interface TabsListProps extends RadixTabs.TabsListProps, TabsVariantProps
|
|
4
|
+
export interface TabsListProps extends RadixTabs.TabsListProps, TabsVariantProps {
|
|
6
5
|
}
|
|
7
6
|
export declare const TabsList: import("react").ForwardRefExoticComponent<TabsListProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/Tabs/typings.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { AccentColorProps } from "../typings";
|
|
2
3
|
import { tabsListCva } from "./cva";
|
|
3
4
|
type TabsVariants = VariantProps<typeof tabsListCva>;
|
|
4
5
|
export type TabsSize = NonNullable<TabsVariants["size"]>;
|
|
5
|
-
export interface TabsVariantProps {
|
|
6
|
+
export interface TabsVariantProps extends AccentColorProps {
|
|
6
7
|
size?: TabsSize;
|
|
7
8
|
}
|
|
8
9
|
export {};
|
package/dist/Text/Text.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
-
import type { AccentColorProps } from "../typings";
|
|
3
2
|
import type { TextVariantProps } from "./typings";
|
|
4
|
-
export interface TextProps extends PropsWithoutRef<ComponentProps<"span">>,
|
|
3
|
+
export interface TextProps extends PropsWithoutRef<ComponentProps<"span">>, TextVariantProps {
|
|
5
4
|
}
|
|
6
5
|
export declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<HTMLSpanElement>>;
|
package/dist/Text/typings.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
|
+
import type { AccentColorProps } from "../typings";
|
|
2
3
|
import { textCva } from "./cva";
|
|
3
4
|
type TextVariants = VariantProps<typeof textCva>;
|
|
4
5
|
export type TextSize = NonNullable<TextVariants["size"]>;
|
|
5
6
|
export type TextWeight = NonNullable<TextVariants["weight"]>;
|
|
6
7
|
export type TextAlign = NonNullable<TextVariants["align"]>;
|
|
7
|
-
export interface TextVariantProps {
|
|
8
|
+
export interface TextVariantProps extends AccentColorProps {
|
|
8
9
|
size?: TextSize;
|
|
9
10
|
weight?: TextWeight;
|
|
10
11
|
align?: TextAlign;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, PropsWithoutRef } from "react";
|
|
2
|
-
import type { AccentColorProps } from "../typings";
|
|
3
2
|
import type { TextAreaVariantProps } from "./typings";
|
|
4
|
-
export interface TextAreaProps extends PropsWithoutRef<ComponentProps<"textarea">>, TextAreaVariantProps
|
|
3
|
+
export interface TextAreaProps extends PropsWithoutRef<ComponentProps<"textarea">>, TextAreaVariantProps {
|
|
5
4
|
}
|
|
6
5
|
export declare const TextArea: import("react").ForwardRefExoticComponent<TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { ComponentRadius } from "../Provider";
|
|
3
|
+
import type { AccentColorProps } from "../typings";
|
|
3
4
|
import { textAreaCva } from "./cva";
|
|
4
5
|
type TextAreaVariants = VariantProps<typeof textAreaCva>;
|
|
5
6
|
export type TextAreaSize = NonNullable<TextAreaVariants["size"]>;
|
|
6
7
|
export type TextAreaVariant = NonNullable<TextAreaVariants["variant"]>;
|
|
7
8
|
export type TextAreaResize = NonNullable<TextAreaVariants["resize"]>;
|
|
8
|
-
export interface TextAreaVariantProps {
|
|
9
|
+
export interface TextAreaVariantProps extends AccentColorProps {
|
|
9
10
|
size?: TextAreaSize;
|
|
10
11
|
variant?: TextAreaVariant;
|
|
11
12
|
radius?: ComponentRadius;
|
package/dist/Toast/typings.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ import { toastCva } from "./cva";
|
|
|
6
6
|
type ToastVariants = VariantProps<typeof toastCva>;
|
|
7
7
|
export type ToastSize = NonNullable<ToastVariants["size"]>;
|
|
8
8
|
export type ToastVariant = NonNullable<ToastVariants["variant"]>;
|
|
9
|
-
export interface ToastVariantProps {
|
|
9
|
+
export interface ToastVariantProps extends AccentColorProps {
|
|
10
10
|
size?: ToastSize;
|
|
11
11
|
variant?: ToastVariant;
|
|
12
12
|
}
|
|
13
|
-
export interface ToastProps extends ToastVariantProps
|
|
13
|
+
export interface ToastProps extends ToastVariantProps {
|
|
14
14
|
/** the title of the Toast*/
|
|
15
15
|
title: string;
|
|
16
16
|
/** description of the Toast located underneath the title*/
|
|
@@ -3,12 +3,12 @@ import type { ComponentRadius } from "../Provider";
|
|
|
3
3
|
import type { AccentColorProps } from "../typings";
|
|
4
4
|
export type ToggleButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
5
5
|
export type ToggleButtonVariant = "outline" | "ghost";
|
|
6
|
-
export interface ToggleButtonVariantProps {
|
|
6
|
+
export interface ToggleButtonVariantProps extends AccentColorProps {
|
|
7
7
|
variant?: ToggleButtonVariant;
|
|
8
8
|
size?: ToggleButtonSize;
|
|
9
9
|
radius?: ComponentRadius;
|
|
10
10
|
}
|
|
11
|
-
export interface BaseToggleButtonProps extends Toggle.ToggleProps, ToggleButtonVariantProps
|
|
11
|
+
export interface BaseToggleButtonProps extends Toggle.ToggleProps, ToggleButtonVariantProps {
|
|
12
12
|
icon: boolean;
|
|
13
13
|
}
|
|
14
14
|
export type ToggleButtonProps = Omit<BaseToggleButtonProps, "icon">;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
3
|
-
import type { AccentColorProps } from "../typings";
|
|
4
3
|
import type { TooltipVariantProps } from "./typings";
|
|
5
|
-
export interface TooltipContentProps extends RadixTooltip.TooltipContentProps, TooltipVariantProps
|
|
4
|
+
export interface TooltipContentProps extends RadixTooltip.TooltipContentProps, TooltipVariantProps {
|
|
6
5
|
container?: RadixTooltip.TooltipPortalProps["container"];
|
|
7
6
|
}
|
|
8
7
|
export declare const TooltipContent: import("react").ForwardRefExoticComponent<TooltipContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
import type { ComponentRadius } from "../Provider";
|
|
3
|
+
import type { AccentColorProps } from "../typings";
|
|
3
4
|
import { tooltipContent } from "./cva";
|
|
4
5
|
type Variants = VariantProps<typeof tooltipContent>;
|
|
5
6
|
export type TooltipSize = NonNullable<Variants["size"]>;
|
|
6
|
-
export interface TooltipVariantProps {
|
|
7
|
+
export interface TooltipVariantProps extends AccentColorProps {
|
|
7
8
|
size?: TooltipSize;
|
|
8
9
|
radius?: ComponentRadius;
|
|
9
10
|
}
|
package/dist/blocks.js
CHANGED
|
@@ -1020,17 +1020,6 @@ const DialogRoot = (props) => {
|
|
|
1020
1020
|
} = props;
|
|
1021
1021
|
const [innerOpen, setInnerOpen] = useState(defaultOpen ?? false);
|
|
1022
1022
|
const open = externalOpen ?? innerOpen;
|
|
1023
|
-
if ((!!onCloseInterrupt || !!onOpen) && !!externalOpenChange) {
|
|
1024
|
-
throw new Error("Neither the `onCloseInterrupt` nor `onOpen` props can be used with `onOpenChange`.");
|
|
1025
|
-
}
|
|
1026
|
-
if (externalOpen !== void 0 && externalOpenChange === void 0) {
|
|
1027
|
-
throw new Error("The `open` prop requires the `onOpenChange` prop.");
|
|
1028
|
-
}
|
|
1029
|
-
if (!children && externalOpen === void 0) {
|
|
1030
|
-
throw new Error("Either the `children` or `open` prop must be defined.");
|
|
1031
|
-
} else if (children && externalOpen !== void 0) {
|
|
1032
|
-
throw new Error("The `children` and `open` props cannot be used together.");
|
|
1033
|
-
}
|
|
1034
1023
|
const handleOpenChange = useCallback(
|
|
1035
1024
|
(next) => {
|
|
1036
1025
|
if (externalOpenChange) return externalOpenChange(next);
|