@epilot/volt-ui 1.0.0-alpha.13 → 1.0.0-alpha.16

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
@@ -18,7 +18,7 @@ export default tseslint.config({
18
18
  languageOptions: {
19
19
  // other options...
20
20
  parserOptions: {
21
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
21
+ project: ["./tsconfig.node.json", "./tsconfig.app.json"],
22
22
  tsconfigRootDir: import.meta.dirname,
23
23
  },
24
24
  },
@@ -31,11 +31,11 @@ export default tseslint.config({
31
31
 
32
32
  ```js
33
33
  // eslint.config.js
34
- import react from 'eslint-plugin-react'
34
+ import react from "eslint-plugin-react"
35
35
 
36
36
  export default tseslint.config({
37
37
  // Set the react version
38
- settings: { react: { version: '18.3' } },
38
+ settings: { react: { version: "18.3" } },
39
39
  plugins: {
40
40
  // Add the react plugin
41
41
  react,
@@ -44,7 +44,7 @@ export default tseslint.config({
44
44
  // other rules...
45
45
  // Enable its recommended rules
46
46
  ...react.configs.recommended.rules,
47
- ...react.configs['jsx-runtime'].rules,
47
+ ...react.configs["jsx-runtime"].rules,
48
48
  },
49
49
  })
50
50
  ```
@@ -2,7 +2,7 @@ import type { ComponentPropsWithoutRef } from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const buttonVariants: (props?: ({
4
4
  variant?: "primary" | "secondary" | "tertiary" | "destructive" | null | undefined;
5
- size?: "sm" | "base" | "large" | null | undefined;
5
+ size?: "sm" | "base" | "large" | "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?: "sm" | "base" | "large" | null | undefined;
14
+ size?: "sm" | "base" | "large" | "icon" | null | undefined;
15
15
  } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
16
16
  asChild?: boolean;
17
17
  } & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,10 +1,11 @@
1
1
  import * as React from "react";
2
- import { Label } from "../label/label";
2
+ import { Label } from "../../components/label/label";
3
3
  type FieldInputRef = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null;
4
4
  declare const useFieldContext: () => {
5
5
  inputRef: React.RefObject<FieldInputRef>;
6
6
  };
7
7
  declare const FieldGroup: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
8
+ declare const FieldSet: ({ className, ...props }: React.ComponentProps<"fieldset">) => import("react/jsx-runtime").JSX.Element;
8
9
  type FieldProps = React.ComponentProps<"div"> & {
9
10
  children: React.ReactNode;
10
11
  onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
@@ -18,4 +19,4 @@ declare const FieldError: ({ className, children, errors, ...props }: React.Comp
18
19
  message?: string;
19
20
  } | undefined>;
20
21
  }) => import("react/jsx-runtime").JSX.Element | null;
21
- export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, useFieldContext, };
22
+ export { Field, FieldSet, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, useFieldContext, };
@@ -1,4 +1,10 @@
1
1
  import * as React from "react";
2
2
  import * as LabelPrimitive from "@radix-ui/react-label";
3
- declare const Label: ({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
3
+ import { VariantProps } from "class-variance-authority";
4
+ declare const labelVariants: (props?: ({
5
+ variant?: "primary" | "destructive" | null | undefined;
6
+ size?: "sm" | "base" | "large" | 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;
4
10
  export { Label };
@@ -1,3 +1,4 @@
1
1
  import * as React from "react";
2
2
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
- export declare const Separator: ({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const Separator: ({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
4
+ export { Separator };
@@ -1,5 +1,13 @@
1
1
  import * as React from "react";
2
2
  import * as SwitchPrimitive from "@radix-ui/react-switch";
3
- type SwitchProps = React.ComponentProps<typeof SwitchPrimitive.Root>;
4
- declare function Switch({ className, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
3
+ import { VariantProps } from "class-variance-authority";
4
+ declare const switchVariants: (props?: ({
5
+ variant?: "primary" | "destructive" | null | undefined;
6
+ size?: "sm" | "base" | "large" | 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;
5
13
  export { Switch };
@@ -1,7 +1,10 @@
1
1
  import * as React from "react";
2
2
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
- declare const TooltipProvider: ({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const TooltipProvider: ({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>) => import("react/jsx-runtime").JSX.Element;
4
4
  declare const Tooltip: ({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
5
5
  declare const TooltipTrigger: ({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) => import("react/jsx-runtime").JSX.Element;
6
- declare const TooltipContent: ({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>) => 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;
7
10
  export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };