@epilot/volt-ui 1.0.0-alpha.18 → 1.0.0-alpha.19
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/dist/components/accordion/accordion.d.ts +10 -0
- package/dist/components/button/button-group.d.ts +11 -0
- package/dist/components/{field-select → field}/field-select.d.ts +1 -1
- package/dist/components/field/field.d.ts +1 -1
- package/dist/index.cjs.js +22 -62
- package/dist/index.d.ts +3 -1
- package/dist/index.es.js +4975 -7238
- package/dist/style.css +1 -1
- package/package.json +2 -1
|
@@ -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,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, };
|
|
@@ -3,7 +3,7 @@ import * as SelectPrimitive from "@radix-ui/react-select";
|
|
|
3
3
|
declare const Select: ({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare const SelectGroup: ({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare const SelectValue: ({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Value>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare const SelectTrigger:
|
|
6
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
declare const SelectContent: ({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare const SelectLabel: ({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare const SelectItem: ({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Label } from "../../components/label/label";
|
|
3
|
-
type FieldInputRef = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null;
|
|
3
|
+
type FieldInputRef = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLButtonElement | null;
|
|
4
4
|
declare const useFieldContext: () => {
|
|
5
5
|
inputRef: React.RefObject<FieldInputRef>;
|
|
6
6
|
};
|