@epilot/volt-ui 1.0.0-alpha.23 → 1.0.0-alpha.25

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 CHANGED
@@ -8,7 +8,8 @@
8
8
  - [Vite](https://vitejs.dev/) for development and bundling
9
9
  - [Tailwind CSS](https://tailwindcss.com/) for styling
10
10
  - [Radix UI](https://www.radix-ui.com/) for UI components
11
- - [Docs](https://fumadocs.com/) for documentation
11
+ - [Fumadocs](https://fumadocs.com/) for documentation
12
+ - [Vitest](https://vitest.dev/) and [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/) for testing
12
13
 
13
14
  > **Note**: We prefix the CSS classes and variables with `volt-ui-` to avoid conflicts with the application styles.
14
15
 
@@ -30,6 +31,14 @@ bun run dev:watch
30
31
 
31
32
  Open http://localhost:3000 with your browser to see the result.
32
33
 
34
+ ## Testing
35
+
36
+ To run the tests, run:
37
+
38
+ ```bash
39
+ bun run test
40
+ ```
41
+
33
42
  ## Build
34
43
 
35
44
  ```bash
@@ -1,8 +1,8 @@
1
1
  import type { ComponentPropsWithoutRef } from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
- declare const buttonVariants: (props?: ({
3
+ export declare const buttonVariants: (props?: ({
4
4
  variant?: "primary" | "secondary" | "tertiary" | "destructive" | null | undefined;
5
- size?: "xs" | "sm" | "base" | "large" | null | undefined;
5
+ size?: "xs" | "sm" | "base" | "lg" | 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,8 +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" | "large" | null | undefined;
14
+ size?: "xs" | "sm" | "base" | "lg" | null | undefined;
15
15
  } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
16
16
  asChild?: boolean;
17
17
  } & import("react").RefAttributes<HTMLButtonElement>>;
18
- export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -15,4 +15,5 @@ declare const CommandGroup: ({ className, ...props }: React.ComponentProps<typeo
15
15
  declare const CommandSeparator: ({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>) => import("react/jsx-runtime").JSX.Element;
16
16
  declare const CommandItem: ({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>) => import("react/jsx-runtime").JSX.Element;
17
17
  declare const CommandShortcut: ({ className, ...props }: React.ComponentProps<"span">) => import("react/jsx-runtime").JSX.Element;
18
- export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
18
+ declare const CommandLoading: ({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Loading>) => import("react/jsx-runtime").JSX.Element;
19
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, CommandLoading, };
@@ -5,7 +5,7 @@ declare const DialogTrigger: ({ ...props }: React.ComponentProps<typeof DialogPr
5
5
  declare const DialogPortal: ({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) => import("react/jsx-runtime").JSX.Element;
6
6
  declare const DialogClose: ({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) => import("react/jsx-runtime").JSX.Element;
7
7
  declare const DialogOverlay: ({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>) => import("react/jsx-runtime").JSX.Element;
8
- type DialogContentSize = "small" | "medium" | "large" | "xlarge" | "2xlarge" | "3xlarge" | "4xlarge" | "5xlarge" | "full-width";
8
+ type DialogContentSize = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "full-width";
9
9
  declare const DialogContent: ({ className, children, showCloseButton, size, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
10
10
  showCloseButton?: boolean;
11
11
  size?: DialogContentSize;
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator } from "../../components/command/command";
2
+ import { CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator } from "../../components/command/command";
3
3
  import * as PopoverPrimitive from "@radix-ui/react-popover";
4
4
  import { Label } from "../../components/label/label";
5
5
  declare const FieldCombobox: ({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
@@ -16,4 +16,5 @@ declare const FieldComboboxItem: ({ className, children, ...props }: React.Compo
16
16
  declare const FieldComboboxEmpty: ({ className, ...props }: React.ComponentProps<typeof CommandEmpty>) => import("react/jsx-runtime").JSX.Element;
17
17
  declare const FieldComboboxSeparator: ({ className, ...props }: React.ComponentProps<typeof CommandSeparator>) => import("react/jsx-runtime").JSX.Element;
18
18
  declare const FieldComboboxItemCheckIcon: ({ className, }: React.ComponentProps<"span">) => import("react/jsx-runtime").JSX.Element;
19
- export { FieldCombobox, FieldComboboxGroup, FieldComboboxGroupLabel, FieldComboboxValue, FieldComboboxTrigger, FieldComboboxContent, FieldComboboxItem, FieldComboboxItemCheckIcon, FieldComboboxEmpty, FieldComboboxSeparator, FieldComboboxInput, FieldComboboxList, };
19
+ declare const FieldComboboxLoading: ({ className, ...props }: React.ComponentProps<typeof CommandLoading>) => import("react/jsx-runtime").JSX.Element;
20
+ export { FieldCombobox, FieldComboboxGroup, FieldComboboxGroupLabel, FieldComboboxValue, FieldComboboxTrigger, FieldComboboxContent, FieldComboboxItem, FieldComboboxItemCheckIcon, FieldComboboxEmpty, FieldComboboxSeparator, FieldComboboxInput, FieldComboboxList, FieldComboboxLoading, };
@@ -3,7 +3,7 @@ import * as LabelPrimitive from "@radix-ui/react-label";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
  declare const labelVariants: (props?: ({
5
5
  variant?: "primary" | "destructive" | null | undefined;
6
- size?: "sm" | "base" | "large" | null | undefined;
6
+ size?: "sm" | "base" | "lg" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  type LabelProps = React.ComponentProps<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>;
9
9
  declare const Label: ({ variant, size, className, ...props }: LabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,7 @@ import * as SwitchPrimitive from "@radix-ui/react-switch";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
  declare const switchVariants: (props?: ({
5
5
  variant?: "primary" | "destructive" | null | undefined;
6
- size?: "sm" | "base" | "large" | null | undefined;
6
+ size?: "sm" | "base" | "lg" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  type SwitchProps = React.ComponentProps<typeof SwitchPrimitive.Root> & {
9
9
  variant?: VariantProps<typeof switchVariants>["variant"];