@epilot/volt-ui 1.0.4 → 1.1.1
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/components/badge/badge.d.ts +2 -1
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/datepicker/datepicker.d.ts +1 -0
- package/dist/components/field/field-combobox.d.ts +4 -4
- package/dist/components/field/field-select.d.ts +6 -1
- package/dist/components/field/field.d.ts +2 -2
- package/dist/components/switch/switch.d.ts +2 -1
- package/dist/components/tabs/tabs.d.ts +10 -0
- package/dist/components/text/text.d.ts +14 -0
- package/dist/components/toast/toast.d.ts +7 -0
- package/dist/index.cjs.js +21 -21
- package/dist/index.d.ts +4 -1
- package/dist/index.es.js +4926 -3874
- package/dist/style.css +1 -1
- package/package.json +3 -1
|
@@ -25,6 +25,7 @@ declare const badgeVariants: (props?: ({
|
|
|
25
25
|
color?: "blue" | "sky" | "mint" | "green" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "red" | "orange" | "yellow" | "bronze" | "gray" | null | undefined;
|
|
26
26
|
style?: "soft" | "solid" | "surface" | null | undefined;
|
|
27
27
|
shape?: "default" | "rounded" | null | undefined;
|
|
28
|
+
size?: "sm" | "base" | null | undefined;
|
|
28
29
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
29
30
|
type BadgeColor = keyof typeof baseColors;
|
|
30
31
|
type BadgeStyle = keyof typeof styleClasses;
|
|
@@ -35,5 +36,5 @@ type BadgeProps = React.ComponentProps<"span"> & VariantProps<typeof badgeVarian
|
|
|
35
36
|
style?: BadgeStyle;
|
|
36
37
|
shape?: BadgeShape;
|
|
37
38
|
};
|
|
38
|
-
declare const Badge: ({ className, color, style, shape, asChild, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
declare const Badge: ({ className, color, style, shape, size, asChild, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
40
|
export { Badge, badgeVariants };
|
|
@@ -2,7 +2,7 @@ import type { ComponentPropsWithoutRef } from "react";
|
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
export declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "primary" | "secondary" | "tertiary" | "destructive" | null | undefined;
|
|
5
|
-
size?: "xs" | "sm" | "base" | "lg" | null | undefined;
|
|
5
|
+
size?: "xs" | "sm" | "base" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type ButtonVariant = VariantProps<typeof buttonVariants>["variant"];
|
|
8
8
|
export type ButtonSize = VariantProps<typeof buttonVariants>["size"];
|
|
@@ -11,7 +11,7 @@ export type ButtonProps = ComponentPropsWithoutRef<"button"> & VariantProps<type
|
|
|
11
11
|
};
|
|
12
12
|
export declare const Button: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
13
13
|
variant?: "primary" | "secondary" | "tertiary" | "destructive" | null | undefined;
|
|
14
|
-
size?: "xs" | "sm" | "base" | "lg" | null | undefined;
|
|
14
|
+
size?: "xs" | "sm" | "base" | "lg" | "icon" | null | undefined;
|
|
15
15
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
16
16
|
asChild?: boolean;
|
|
17
17
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator } from "../../components/command/command";
|
|
3
|
-
import
|
|
3
|
+
import { Popover, PopoverContent } from "../../components/popover/popover";
|
|
4
4
|
import { Label } from "../../components/label/label";
|
|
5
5
|
import { Button } from "../button/button";
|
|
6
|
-
declare const FieldCombobox: ({ ...props }: React.ComponentProps<typeof
|
|
6
|
+
declare const FieldCombobox: ({ ...props }: React.ComponentProps<typeof Popover>) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const FieldComboboxGroup: ({ className, ...props }: React.ComponentProps<typeof CommandGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare const FieldComboboxGroupLabel: ({ className, ...props }: React.ComponentProps<typeof Label>) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare const FieldComboboxValue: ({ className, children, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare const FieldComboboxTrigger: React.ForwardRefExoticComponent<Omit<
|
|
11
|
-
declare const FieldComboboxContent: ({ className, children, ...props }: React.ComponentProps<typeof
|
|
10
|
+
declare const FieldComboboxTrigger: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-popover").PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
declare const FieldComboboxContent: ({ className, children, ...props }: React.ComponentProps<typeof PopoverContent>) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare const FieldComboboxInput: ({ className, ...props }: React.ComponentProps<typeof CommandInput>) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare const FieldComboboxList: ({ className, ...props }: React.ComponentProps<typeof CommandList>) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
declare const FieldComboboxItem: ({ className, children, ...props }: React.ComponentProps<typeof CommandItem>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
+
import { Button } from "../button/button";
|
|
3
4
|
declare const Select: ({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
declare const SelectGroup: ({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>) => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
declare const SelectValue: ({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Value>) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const SelectTriggerClear: {
|
|
9
|
+
({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
7
12
|
declare const SelectContent: ({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>) => import("react/jsx-runtime").JSX.Element;
|
|
8
13
|
declare const SelectLabel: ({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>) => import("react/jsx-runtime").JSX.Element;
|
|
9
14
|
declare const SelectItem: ({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>) => import("react/jsx-runtime").JSX.Element;
|
|
10
15
|
declare const SelectSeparator: ({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>) => import("react/jsx-runtime").JSX.Element;
|
|
11
16
|
declare const SelectScrollUpButton: ({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) => import("react/jsx-runtime").JSX.Element;
|
|
12
17
|
declare const SelectScrollDownButton: ({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
18
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectTriggerClear, SelectValue, };
|
|
@@ -8,14 +8,14 @@ declare const useFieldContext: () => {
|
|
|
8
8
|
declare const FieldGroup: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare const FieldSet: ({ className, ...props }: React.ComponentProps<"fieldset">) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare const fieldVariants: (props?: ({
|
|
11
|
-
variant?: "destructive" | "default" | "highlight" | null | undefined;
|
|
11
|
+
variant?: "destructive" | "default" | "highlight" | "readonly" | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
13
|
type FieldProps = React.ComponentProps<"div"> & {
|
|
14
14
|
children: React.ReactNode;
|
|
15
15
|
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
16
16
|
variant?: VariantProps<typeof fieldVariants>["variant"];
|
|
17
17
|
};
|
|
18
|
-
declare const Field: ({ className, variant, children,
|
|
18
|
+
declare const Field: ({ className, variant, children, ...props }: FieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
declare const FieldContent: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
declare const FieldLabel: ({ className, ...props }: React.ComponentProps<typeof Label>) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
type FieldLabelContentProps = React.ComponentProps<"div"> & {
|
|
@@ -8,6 +8,7 @@ declare const switchVariants: (props?: ({
|
|
|
8
8
|
type SwitchProps = React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
9
9
|
variant?: VariantProps<typeof switchVariants>["variant"];
|
|
10
10
|
size?: VariantProps<typeof switchVariants>["size"];
|
|
11
|
+
showThumbIcon?: boolean;
|
|
11
12
|
};
|
|
12
|
-
declare function Switch({ variant, size, className, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function Switch({ variant, size, className, showThumbIcon, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export { Switch };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
type TabsProps = React.ComponentProps<typeof TabsPrimitive.Root> & {
|
|
4
|
+
size?: "small" | "base";
|
|
5
|
+
};
|
|
6
|
+
declare const Tabs: ({ className, size, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const TabsList: ({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const TabsTrigger: ({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const TabsContent: ({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
export declare const textVariants: (props?: ({
|
|
4
|
+
variant?: "title3" | "title2" | "title1" | "heading3" | "heading2" | "heading1" | "body2" | "body1" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export type TextVariant = VariantProps<typeof textVariants>["variant"];
|
|
7
|
+
export type TextProps = ComponentPropsWithoutRef<"span"> & VariantProps<typeof textVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const Text: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & VariantProps<(props?: ({
|
|
11
|
+
variant?: "title3" | "title2" | "title1" | "heading3" | "heading2" | "heading1" | "body2" | "body1" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
13
|
+
asChild?: boolean;
|
|
14
|
+
} & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as Sonner from "sonner";
|
|
2
|
+
type Props = Sonner.ToasterProps & {
|
|
3
|
+
theme?: "light" | "dark";
|
|
4
|
+
};
|
|
5
|
+
declare const Toaster: ({ theme, toastOptions, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { toast } from "sonner";
|
|
7
|
+
export { Toaster };
|