@epilot/volt-ui 1.3.4 → 1.3.6

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.
@@ -27,8 +27,8 @@ declare const styleClasses: {
27
27
  readonly surface: (color: string) => string;
28
28
  };
29
29
  declare const badgeVariants: (props?: ({
30
- color?: "error" | "accent" | "neutral" | "success" | "warning" | "blue" | "sky" | "mint" | "green" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "red" | "orange" | "yellow" | "bronze" | "gray" | null | undefined;
31
- style?: "soft" | "solid" | "surface" | null | undefined;
30
+ color?: "error" | "blue" | "cyan" | "gray" | "green" | "indigo" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow" | "accent" | "neutral" | "success" | "warning" | "sky" | "mint" | "bronze" | null | undefined;
31
+ style?: "solid" | "soft" | "surface" | null | undefined;
32
32
  size?: "base" | "sm" | "lg" | null | undefined;
33
33
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
34
34
  type BadgeColor = keyof typeof allColors;
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const calloutVariants: (props?: ({
4
- variant?: "destructive" | "success" | "warning" | "gray" | "info" | null | undefined;
4
+ variant?: "destructive" | "gray" | "success" | "warning" | "info" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  declare const Callout: ({ className, variant, hideIcon, customIcon, ...props }: React.ComponentProps<"div"> & VariantProps<typeof calloutVariants> & {
7
7
  customIcon?: React.ReactNode;
@@ -10,7 +10,9 @@ declare const DropdownMenuSubTrigger: ({ className, inset, children, ...props }:
10
10
  inset?: boolean;
11
11
  }) => import("react/jsx-runtime").JSX.Element;
12
12
  declare const DropdownMenuSubContent: ({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) => import("react/jsx-runtime").JSX.Element;
13
- declare const DropdownMenuContent: ({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) => import("react/jsx-runtime").JSX.Element;
13
+ declare const DropdownMenuContent: ({ className, sideOffset, container, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content> & {
14
+ container?: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>["container"];
15
+ }) => import("react/jsx-runtime").JSX.Element;
14
16
  declare const DropdownMenuItem: ({ className, inset, destructive, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
15
17
  inset?: boolean;
16
18
  destructive?: boolean;
@@ -27,8 +27,8 @@ declare const styleClasses: {
27
27
  readonly surface: (color: string) => string;
28
28
  };
29
29
  declare const pillVariants: (props?: ({
30
- color?: "error" | "accent" | "success" | "warning" | "blue" | "sky" | "mint" | "green" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "red" | "orange" | "yellow" | "bronze" | "gray" | "lime" | null | undefined;
31
- style?: "soft" | "solid" | "surface" | null | undefined;
30
+ color?: "error" | "blue" | "cyan" | "gray" | "green" | "indigo" | "lime" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow" | "accent" | "success" | "warning" | "sky" | "mint" | "bronze" | null | undefined;
31
+ style?: "solid" | "soft" | "surface" | null | undefined;
32
32
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
33
33
  type PillColor = keyof typeof baseColors;
34
34
  type PillStyle = keyof typeof styleClasses;
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
+ export type SegmentedControlLayout = "hug" | "equal" | "stretch";
4
+ export type SegmentedControlProps = React.ComponentProps<typeof RadioGroupPrimitive.Root> & {
5
+ layout?: SegmentedControlLayout;
6
+ };
7
+ export type SegmentedControlItemProps = React.ComponentProps<typeof RadioGroupPrimitive.Item> & {
8
+ icon?: React.ReactNode;
9
+ };
10
+ declare const SegmentedControl: ({ className, layout, orientation, value: valueProp, defaultValue, onValueChange, children, ...props }: SegmentedControlProps) => import("react/jsx-runtime").JSX.Element;
11
+ declare const SegmentedControlItem: ({ className, value, icon, children, ...props }: SegmentedControlItemProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { SegmentedControl, SegmentedControlItem };