@epilot/volt-ui 1.0.0-alpha.18 → 1.0.0-alpha.2

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
@@ -1,47 +1,43 @@
1
- # Volt UI
1
+ # @epilot/volt-ui
2
2
 
3
- **@epilot/volt-ui** is a tree-shakeable design system library for React applications.
3
+ A tree-shakeable design system library for React applications. Built with Tailwind CSS v4, Radix UI primitives, and TypeScript.
4
4
 
5
- ## Stack
5
+ ## Docs
6
6
 
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
- - [Docs](https://fumadocs.com/) for documentation
12
-
13
- > **Note**: We prefix the CSS classes and variables with `volt-ui-` to avoid conflicts with the application styles.
7
+ See [documentation](./docs) for more information.
14
8
 
15
9
  ## Installation
16
10
 
17
- Install dependencies via [bun](https://bun.com/docs/installation).
18
-
19
- ```bash
20
- bun install
21
- ```
22
-
23
- ## Development
24
-
25
- To run the development, documentation server and watch for changes, run:
26
-
27
11
  ```bash
28
- bun run dev:watch
12
+ npm install @epilot/volt-ui
13
+ # or
14
+ yarn add @epilot/volt-ui
15
+ # or
16
+ bun add @epilot/volt-ui
29
17
  ```
30
18
 
31
- Open http://localhost:3000 with your browser to see the result.
32
-
33
19
  ## Build
34
20
 
35
21
  ```bash
22
+ npm run build
23
+ # or
24
+ yarn build
25
+ # or
36
26
  bun run build
37
27
  ```
38
28
 
39
- > **Note**: This will generate the `dist` folder with the compiled code.
29
+ ## Build Output
40
30
 
41
- ## Release
31
+ ```
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
+ │ └── style.css # Scoped CSS (requires [data-volt-ui])
38
+ └── ...
39
+ ```
42
40
 
43
- To release a new version, run:
41
+ ## License
44
42
 
45
- ```bash
46
- npm run publish
47
- ```
43
+ See LICENSE file for details.
@@ -1,8 +1,8 @@
1
- import type { ComponentPropsWithoutRef } from "react";
2
1
  import { type VariantProps } from "class-variance-authority";
2
+ import type { ComponentPropsWithoutRef } from "react";
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "primary" | "secondary" | "tertiary" | "destructive" | null | undefined;
5
- size?: "xs" | "sm" | "base" | "large" | null | undefined;
4
+ variant?: "primary" | "secondary" | "tertiary" | null | undefined;
5
+ size?: "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"];
@@ -10,8 +10,8 @@ export type ButtonProps = ComponentPropsWithoutRef<"button"> & VariantProps<type
10
10
  asChild?: boolean;
11
11
  };
12
12
  export declare const Button: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
13
- variant?: "primary" | "secondary" | "tertiary" | "destructive" | null | undefined;
14
- size?: "xs" | "sm" | "base" | "large" | null | undefined;
13
+ variant?: "primary" | "secondary" | "tertiary" | null | undefined;
14
+ size?: "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>>;
package/dist/index.d.ts CHANGED
@@ -1,18 +1,2 @@
1
- import "@/styles/index.css";
2
- export { cn } from "./lib/utils";
3
- export { Button } from "./components/button/button";
4
- export { Field, FieldSet, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelContent, useFieldContext, } from "./components/field/field";
5
- export { FieldInput, FieldInputGroup } from "./components/field/field-input";
6
- export { FieldGroupAddon } from "./components/field/field-addon";
7
- export { FieldTextarea } from "./components/field/field-textarea";
8
- export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from "./components/field-select/field-select";
9
- export { Label } from "./components/label/label";
10
- export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, } from "./components/tooltip/tooltip";
11
- export { Switch } from "./components/switch/switch";
12
- export { Separator } from "./components/separator/seperator";
13
- export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverPortal, } from "./components/popover/popover";
14
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, } from "./components/dialog/dialog";
15
- export { Checkbox } from "./components/checkbox/checkbox";
16
- export { RadioGroup, RadioGroupItem } from "./components/radio/radio";
17
- export { Badge, badgeVariants } from "./components/badge/badge";
18
- export { Callout, CalloutTitle, CalloutDescription, CalloutAction, CalloutIcon, } from "./components/callout/callout";
1
+ import "./styles/index.css";
2
+ export { Button, type ButtonProps, type ButtonVariant, type ButtonSize } from "./components/button/button";