@epilot/volt-ui 1.0.0-alpha.9 → 1.0.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.
Files changed (40) hide show
  1. package/README.md +38 -25
  2. package/dist/components/accordion/accordion.d.ts +10 -0
  3. package/dist/components/badge/badge.d.ts +39 -0
  4. package/dist/components/button/button-group.d.ts +11 -0
  5. package/dist/{src/components → components}/button/button.d.ts +3 -4
  6. package/dist/components/callout/callout.d.ts +14 -0
  7. package/dist/components/checkbox/checkbox.d.ts +4 -0
  8. package/dist/components/command/command.d.ts +19 -0
  9. package/dist/components/dialog/dialog.d.ts +17 -0
  10. package/dist/components/field/field-addon.d.ts +7 -0
  11. package/dist/components/field/field-combobox.d.ts +22 -0
  12. package/dist/components/field/field-input.d.ts +3 -0
  13. package/dist/components/field/field-select.d.ts +13 -0
  14. package/dist/components/field/field-textarea.d.ts +4 -0
  15. package/dist/components/field/field.d.ts +31 -0
  16. package/dist/components/label/label.d.ts +10 -0
  17. package/dist/components/popover/popover.d.ts +8 -0
  18. package/dist/components/radio/radio.d.ts +5 -0
  19. package/dist/components/separator/seperator.d.ts +4 -0
  20. package/dist/components/switch/switch.d.ts +13 -0
  21. package/dist/components/tooltip/tooltip.d.ts +10 -0
  22. package/dist/index.cjs.js +45 -0
  23. package/dist/index.d.ts +20 -0
  24. package/dist/index.es.js +7807 -1563
  25. package/dist/reset.css +1 -0
  26. package/dist/style.css +1 -0
  27. package/package.json +51 -53
  28. package/dist/fonts/Geist-VariableFont_wght.ttf +0 -0
  29. package/dist/index.umd.js +0 -30
  30. package/dist/postcss-prefix-variables.d.ts +0 -14
  31. package/dist/src/components/field/field-input.d.ts +0 -3
  32. package/dist/src/components/field/field.d.ts +0 -24
  33. package/dist/src/components/label/label.d.ts +0 -4
  34. package/dist/src/components/separator/separator.d.ts +0 -3
  35. package/dist/src/index.d.ts +0 -4
  36. package/dist/src/setupTests.d.ts +0 -1
  37. package/dist/styles.css +0 -1
  38. package/dist/vite-plugin-prefix-class-names.d.ts +0 -6
  39. package/dist/vite.config.d.ts +0 -2
  40. /package/dist/{src/utils/cn.d.ts → lib/utils.d.ts} +0 -0
package/README.md CHANGED
@@ -1,43 +1,56 @@
1
- # @epilot/volt-ui
1
+ # Volt UI
2
2
 
3
- A tree-shakeable design system library for React applications. Built with Tailwind CSS v4, Radix UI primitives, and TypeScript.
3
+ **@epilot/volt-ui** is a tree-shakeable design system library for React applications.
4
4
 
5
- ## Docs
5
+ ## Stack
6
6
 
7
- See [documentation](./docs) for more information.
7
+ - [Bun](https://bun.com/)
8
+ - [Vite](https://vitejs.dev/) for development and bundling
9
+ - [Tailwind CSS](https://tailwindcss.com/) for styling
10
+ - [Radix UI](https://www.radix-ui.com/) for UI components
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
13
+
14
+ > **Note**: We prefix the CSS classes and variables with `volt-ui-` to avoid conflicts with the application styles.
8
15
 
9
16
  ## Installation
10
17
 
18
+ Install dependencies via [bun](https://bun.com/docs/installation).
19
+
11
20
  ```bash
12
- npm install @epilot/volt-ui
13
- # or
14
- yarn add @epilot/volt-ui
15
- # or
16
- bun add @epilot/volt-ui
21
+ bun install
17
22
  ```
18
23
 
19
- ## Build
24
+ ## Development
25
+
26
+ To run the development, documentation server and watch for changes, run:
20
27
 
21
28
  ```bash
22
- npm run build
23
- # or
24
- yarn build
25
- # or
26
- bun run build
29
+ bun run dev:watch
27
30
  ```
28
31
 
29
- ## Build Output
32
+ Open http://localhost:3000 with your browser to see the result.
30
33
 
34
+ ## Testing
35
+
36
+ To run the tests, run:
37
+
38
+ ```bash
39
+ bun run test
31
40
  ```
32
- @epilot/volt-ui/
33
- ├── dist/
34
- │ ├── index.es.js # ESM bundle
35
- │ ├── index.umd.js # UMD bundle
36
- │ ├── index.d.ts # TypeScript declarations
37
- │ └── styles.css # Scoped CSS (requires [data-volt-ui])
38
- └── ...
41
+
42
+ ## Build
43
+
44
+ ```bash
45
+ bun run build
39
46
  ```
40
47
 
41
- ## License
48
+ > **Note**: This will generate the `dist` folder with the compiled code.
42
49
 
43
- See LICENSE file for details.
50
+ ## Release
51
+
52
+ To release a new version, run:
53
+
54
+ ```bash
55
+ npm run publish
56
+ ```
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
+ declare const Accordion: ({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const AccordionItem: ({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>) => import("react/jsx-runtime").JSX.Element;
5
+ type AccordionTriggerProps = React.ComponentProps<typeof AccordionPrimitive.Trigger> & {
6
+ align?: "start" | "end";
7
+ };
8
+ declare const AccordionTrigger: ({ className, align, children, ...props }: AccordionTriggerProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const AccordionContent: ({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>) => import("react/jsx-runtime").JSX.Element;
10
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -0,0 +1,39 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const baseColors: {
4
+ readonly blue: "blue";
5
+ readonly sky: "sky";
6
+ readonly mint: "mint";
7
+ readonly green: "green";
8
+ readonly teal: "teal";
9
+ readonly cyan: "cyan";
10
+ readonly indigo: "indigo";
11
+ readonly purple: "purple";
12
+ readonly pink: "pink";
13
+ readonly red: "red";
14
+ readonly orange: "orange";
15
+ readonly yellow: "yellow";
16
+ readonly bronze: "bronze";
17
+ readonly gray: "gray";
18
+ };
19
+ declare const styleClasses: {
20
+ readonly soft: (color: string) => string;
21
+ readonly solid: (color: string) => string;
22
+ readonly surface: (color: string) => string;
23
+ };
24
+ declare const badgeVariants: (props?: ({
25
+ color?: "blue" | "sky" | "mint" | "green" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "red" | "orange" | "yellow" | "bronze" | "gray" | null | undefined;
26
+ style?: "soft" | "solid" | "surface" | null | undefined;
27
+ shape?: "default" | "rounded" | null | undefined;
28
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
29
+ type BadgeColor = keyof typeof baseColors;
30
+ type BadgeStyle = keyof typeof styleClasses;
31
+ type BadgeShape = "default" | "rounded";
32
+ type BadgeProps = React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
33
+ asChild?: boolean;
34
+ color?: BadgeColor;
35
+ style?: BadgeStyle;
36
+ shape?: BadgeShape;
37
+ };
38
+ declare const Badge: ({ className, color, style, shape, asChild, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
39
+ export { Badge, badgeVariants };
@@ -0,0 +1,11 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import { Separator } from "../../components/separator/seperator";
3
+ declare const buttonGroupVariants: (props?: ({
4
+ orientation?: "horizontal" | "vertical" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ declare const ButtonGroup: ({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>) => import("react/jsx-runtime").JSX.Element;
7
+ declare const ButtonGroupText: ({ className, asChild, ...props }: React.ComponentProps<"div"> & {
8
+ asChild?: boolean;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ declare const ButtonGroupSeparator: ({ className, orientation, ...props }: React.ComponentProps<typeof Separator>) => import("react/jsx-runtime").JSX.Element;
11
+ export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants, };
@@ -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?: "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?: "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,14 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const calloutVariants: (props?: ({
4
+ type?: "destructive" | "gray" | "info" | "success" | "warning" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ declare const Callout: ({ className, type, customIcon, ...props }: React.ComponentProps<"div"> & VariantProps<typeof calloutVariants> & {
7
+ customIcon?: React.ReactNode;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ declare const CalloutTitle: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
10
+ declare const CalloutDescription: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
11
+ declare const CalloutAction: ({ className, align, ...props }: React.ComponentProps<"div"> & {
12
+ align?: "start" | "end";
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ export { Callout, CalloutTitle, CalloutDescription, CalloutAction };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
+ declare const Checkbox: ({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
4
+ export { Checkbox };
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import { Command as CommandPrimitive } from "cmdk";
3
+ import { Dialog } from "../../components/dialog/dialog";
4
+ declare const Command: ({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>) => import("react/jsx-runtime").JSX.Element;
5
+ declare const CommandDialog: ({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
6
+ title?: string;
7
+ description?: string;
8
+ className?: string;
9
+ showCloseButton?: boolean;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ declare const CommandInput: ({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>) => import("react/jsx-runtime").JSX.Element;
12
+ declare const CommandList: ({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>) => import("react/jsx-runtime").JSX.Element;
13
+ declare const CommandEmpty: ({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>) => import("react/jsx-runtime").JSX.Element;
14
+ declare const CommandGroup: ({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>) => import("react/jsx-runtime").JSX.Element;
15
+ declare const CommandSeparator: ({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>) => import("react/jsx-runtime").JSX.Element;
16
+ declare const CommandItem: ({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>) => import("react/jsx-runtime").JSX.Element;
17
+ declare const CommandShortcut: ({ className, ...props }: React.ComponentProps<"span">) => import("react/jsx-runtime").JSX.Element;
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, };
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ declare const Dialog: ({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const DialogTrigger: ({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) => import("react/jsx-runtime").JSX.Element;
5
+ declare const DialogPortal: ({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) => import("react/jsx-runtime").JSX.Element;
6
+ declare const DialogClose: ({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) => import("react/jsx-runtime").JSX.Element;
7
+ declare const DialogOverlay: ({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>) => import("react/jsx-runtime").JSX.Element;
8
+ type DialogContentSize = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "full-width";
9
+ declare const DialogContent: ({ className, children, showCloseButton, size, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
10
+ showCloseButton?: boolean;
11
+ size?: DialogContentSize;
12
+ }) => import("react/jsx-runtime").JSX.Element;
13
+ declare const DialogHeader: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
14
+ declare const DialogFooter: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
15
+ declare const DialogTitle: ({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) => import("react/jsx-runtime").JSX.Element;
16
+ declare const DialogDescription: ({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>) => import("react/jsx-runtime").JSX.Element;
17
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,7 @@
1
+ import { VariantProps } from "class-variance-authority";
2
+ declare const inputGroupAddonVariants: (props?: ({
3
+ align?: "start" | "end" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ type FieldGroupAddonProps = React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>;
6
+ declare const FieldGroupAddon: ({ className, align, ...props }: FieldGroupAddonProps) => import("react/jsx-runtime").JSX.Element;
7
+ export { FieldGroupAddon };
@@ -0,0 +1,22 @@
1
+ import * as React from "react";
2
+ import { CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator } from "../../components/command/command";
3
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
4
+ import { Label } from "../../components/label/label";
5
+ import { Button } from "../button/button";
6
+ declare const FieldCombobox: ({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
7
+ declare const FieldComboboxGroup: ({ className, ...props }: React.ComponentProps<typeof CommandGroup>) => import("react/jsx-runtime").JSX.Element;
8
+ declare const FieldComboboxGroupLabel: ({ className, ...props }: React.ComponentProps<typeof Label>) => import("react/jsx-runtime").JSX.Element;
9
+ declare const FieldComboboxValue: ({ className, children, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
10
+ declare const FieldComboboxTrigger: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
+ declare const FieldComboboxContent: ({ className, children, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>) => import("react/jsx-runtime").JSX.Element;
12
+ declare const FieldComboboxInput: ({ className, ...props }: React.ComponentProps<typeof CommandInput>) => import("react/jsx-runtime").JSX.Element;
13
+ declare const FieldComboboxList: ({ className, ...props }: React.ComponentProps<typeof CommandList>) => import("react/jsx-runtime").JSX.Element;
14
+ declare const FieldComboboxItem: ({ className, children, ...props }: React.ComponentProps<typeof CommandItem>) => import("react/jsx-runtime").JSX.Element;
15
+ declare const FieldComboboxEmpty: ({ className, ...props }: React.ComponentProps<typeof CommandEmpty>) => import("react/jsx-runtime").JSX.Element;
16
+ declare const FieldComboboxSeparator: ({ className, ...props }: React.ComponentProps<typeof CommandSeparator>) => import("react/jsx-runtime").JSX.Element;
17
+ declare const FieldComboboxItemCheckIcon: ({ className, }: React.ComponentProps<"span">) => import("react/jsx-runtime").JSX.Element;
18
+ declare const FieldComboboxLoading: ({ className, ...props }: React.ComponentProps<typeof CommandLoading>) => import("react/jsx-runtime").JSX.Element;
19
+ declare const FieldComboboxClear: ({ className, onClick, ...props }: React.ComponentProps<typeof Button>) => import("react/jsx-runtime").JSX.Element;
20
+ declare const FieldComboboxPlaceholder: ({ className, ...props }: React.ComponentProps<"span">) => import("react/jsx-runtime").JSX.Element;
21
+ declare const FieldComboboxClearValue: ({ className, onClick, ...props }: React.ComponentProps<"span">) => import("react/jsx-runtime").JSX.Element;
22
+ export { FieldCombobox, FieldComboboxGroup, FieldComboboxGroupLabel, FieldComboboxValue, FieldComboboxTrigger, FieldComboboxContent, FieldComboboxItem, FieldComboboxItemCheckIcon, FieldComboboxEmpty, FieldComboboxSeparator, FieldComboboxInput, FieldComboboxList, FieldComboboxLoading, FieldComboboxClear, FieldComboboxClearValue, FieldComboboxPlaceholder, };
@@ -0,0 +1,3 @@
1
+ declare const FieldInput: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
2
+ declare const FieldInputGroup: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
3
+ export { FieldInput, FieldInputGroup };
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+ declare const Select: ({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const SelectGroup: ({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>) => import("react/jsx-runtime").JSX.Element;
5
+ declare const SelectValue: ({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Value>) => import("react/jsx-runtime").JSX.Element;
6
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const SelectContent: ({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>) => import("react/jsx-runtime").JSX.Element;
8
+ declare const SelectLabel: ({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>) => import("react/jsx-runtime").JSX.Element;
9
+ declare const SelectItem: ({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>) => import("react/jsx-runtime").JSX.Element;
10
+ declare const SelectSeparator: ({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>) => import("react/jsx-runtime").JSX.Element;
11
+ declare const SelectScrollUpButton: ({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) => import("react/jsx-runtime").JSX.Element;
12
+ 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, };
@@ -0,0 +1,4 @@
1
+ declare const FieldTextarea: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & {
2
+ resize?: "none" | "vertical" | "horizontal";
3
+ } & import("react").RefAttributes<HTMLTextAreaElement>>;
4
+ export { FieldTextarea };
@@ -0,0 +1,31 @@
1
+ import * as React from "react";
2
+ import { Label } from "../../components/label/label";
3
+ import { VariantProps } from "class-variance-authority";
4
+ type FieldInputRef = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLButtonElement | null;
5
+ declare const useFieldContext: () => {
6
+ inputRef: React.RefObject<FieldInputRef>;
7
+ };
8
+ declare const FieldGroup: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
9
+ declare const FieldSet: ({ className, ...props }: React.ComponentProps<"fieldset">) => import("react/jsx-runtime").JSX.Element;
10
+ declare const fieldVariants: (props?: ({
11
+ variant?: "destructive" | "default" | "highlight" | null | undefined;
12
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
+ type FieldProps = React.ComponentProps<"div"> & {
14
+ children: React.ReactNode;
15
+ onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
16
+ variant?: VariantProps<typeof fieldVariants>["variant"];
17
+ };
18
+ declare const Field: ({ className, variant, children, onClick, ...props }: FieldProps) => import("react/jsx-runtime").JSX.Element;
19
+ declare const FieldContent: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
20
+ declare const FieldLabel: ({ className, ...props }: React.ComponentProps<typeof Label>) => import("react/jsx-runtime").JSX.Element;
21
+ type FieldLabelContentProps = React.ComponentProps<"div"> & {
22
+ showOnHover?: boolean;
23
+ };
24
+ declare const FieldLabelContent: ({ className, showOnHover, ...props }: FieldLabelContentProps) => import("react/jsx-runtime").JSX.Element;
25
+ declare const FieldDescription: ({ className, ...props }: React.ComponentProps<"p">) => import("react/jsx-runtime").JSX.Element;
26
+ declare const FieldError: ({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
27
+ errors?: Array<{
28
+ message?: string;
29
+ } | undefined>;
30
+ }) => import("react/jsx-runtime").JSX.Element | null;
31
+ export { Field, FieldSet, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelContent, useFieldContext, fieldVariants, };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import * as LabelPrimitive from "@radix-ui/react-label";
3
+ import { VariantProps } from "class-variance-authority";
4
+ declare const labelVariants: (props?: ({
5
+ variant?: "primary" | "destructive" | null | undefined;
6
+ size?: "sm" | "base" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ type LabelProps = React.ComponentProps<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>;
9
+ declare const Label: ({ variant, size, className, ...props }: LabelProps) => import("react/jsx-runtime").JSX.Element;
10
+ export { Label };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+ declare const PopoverPortal: ({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Portal>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const Popover: ({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
5
+ declare const PopoverTrigger: ({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) => import("react/jsx-runtime").JSX.Element;
6
+ declare const PopoverContent: ({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>) => import("react/jsx-runtime").JSX.Element;
7
+ declare const PopoverAnchor: ({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) => import("react/jsx-runtime").JSX.Element;
8
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverPortal };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
+ declare const RadioGroup: ({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const RadioGroupItem: ({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) => import("react/jsx-runtime").JSX.Element;
5
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
+ declare const Separator: ({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
4
+ export { Separator };
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
3
+ import { VariantProps } from "class-variance-authority";
4
+ declare const switchVariants: (props?: ({
5
+ variant?: "primary" | "destructive" | null | undefined;
6
+ size?: "sm" | "base" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ type SwitchProps = React.ComponentProps<typeof SwitchPrimitive.Root> & {
9
+ variant?: VariantProps<typeof switchVariants>["variant"];
10
+ size?: VariantProps<typeof switchVariants>["size"];
11
+ };
12
+ declare function Switch({ variant, size, className, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
13
+ export { Switch };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
+ declare const TooltipProvider: ({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const Tooltip: ({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
5
+ declare const TooltipTrigger: ({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) => import("react/jsx-runtime").JSX.Element;
6
+ type TooltipContentProps = React.ComponentProps<typeof TooltipPrimitive.Content> & {
7
+ hideArrow?: boolean;
8
+ };
9
+ declare const TooltipContent: ({ className, sideOffset, hideArrow, children, ...props }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element;
10
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };