@epilot/volt-ui 1.0.0-alpha.14 → 1.0.0-alpha.17
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 +4 -4
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/field/field.d.ts +7 -2
- package/dist/components/field-select/field-select.d.ts +13 -0
- package/dist/components/separator/seperator.d.ts +2 -1
- package/dist/index.cjs.js +41 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.es.js +3753 -2453
- package/dist/style.css +1 -1
- package/package.json +14 -5
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ export default tseslint.config({
|
|
|
18
18
|
languageOptions: {
|
|
19
19
|
// other options...
|
|
20
20
|
parserOptions: {
|
|
21
|
-
project: [
|
|
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
|
|
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:
|
|
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[
|
|
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?: "
|
|
5
|
+
size?: "xs" | "sm" | "base" | "large" | 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?: "
|
|
14
|
+
size?: "xs" | "sm" | "base" | "large" | 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 "
|
|
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;
|
|
@@ -12,10 +13,14 @@ type FieldProps = React.ComponentProps<"div"> & {
|
|
|
12
13
|
declare const Field: ({ className, children, onClick, ...props }: FieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
declare const FieldContent: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
declare const FieldLabel: ({ className, ...props }: React.ComponentProps<typeof Label>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
type FieldLabelContentProps = React.ComponentProps<"div"> & {
|
|
17
|
+
showOnHover?: boolean;
|
|
18
|
+
};
|
|
19
|
+
declare const FieldLabelContent: ({ className, showOnHover, ...props }: FieldLabelContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
20
|
declare const FieldDescription: ({ className, ...props }: React.ComponentProps<"p">) => import("react/jsx-runtime").JSX.Element;
|
|
16
21
|
declare const FieldError: ({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
17
22
|
errors?: Array<{
|
|
18
23
|
message?: string;
|
|
19
24
|
} | undefined>;
|
|
20
25
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
21
|
-
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, useFieldContext, };
|
|
26
|
+
export { Field, FieldSet, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelContent, useFieldContext, };
|
|
@@ -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: ({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger>) => import("react/jsx-runtime").JSX.Element;
|
|
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, };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3
|
-
|
|
3
|
+
declare const Separator: ({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Separator };
|