@epilot/volt-ui 1.0.0-alpha.2 → 1.0.0-alpha.20
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 +29 -25
- package/dist/components/accordion/accordion.d.ts +10 -0
- package/dist/components/badge/badge.d.ts +39 -0
- package/dist/components/button/button-group.d.ts +11 -0
- package/dist/components/button/button.d.ts +5 -5
- package/dist/components/callout/callout.d.ts +15 -0
- package/dist/components/checkbox/checkbox.d.ts +4 -0
- package/dist/components/dialog/dialog.d.ts +17 -0
- package/dist/components/field/field-addon.d.ts +7 -0
- package/dist/components/field/field-input.d.ts +3 -0
- package/dist/components/field/field-select.d.ts +13 -0
- package/dist/components/field/field-textarea.d.ts +4 -0
- package/dist/components/field/field.d.ts +26 -0
- package/dist/components/label/label.d.ts +10 -0
- package/dist/components/popover/popover.d.ts +8 -0
- package/dist/components/radio/radio.d.ts +5 -0
- package/dist/components/separator/seperator.d.ts +4 -0
- package/dist/components/switch/switch.d.ts +13 -0
- package/dist/components/tooltip/tooltip.d.ts +10 -0
- package/dist/index.cjs.js +45 -0
- package/dist/index.d.ts +20 -2
- package/dist/index.es.js +7902 -1290
- package/dist/reset.css +1 -0
- package/dist/style.css +1 -1
- package/package.json +47 -48
- package/dist/index.umd.js +0 -30
- /package/dist/{utils/cn.d.ts → lib/utils.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,43 +1,47 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Volt UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**@epilot/volt-ui** is a tree-shakeable design system library for React applications.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Stack
|
|
6
6
|
|
|
7
|
-
|
|
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.
|
|
8
14
|
|
|
9
15
|
## Installation
|
|
10
16
|
|
|
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
|
+
|
|
11
27
|
```bash
|
|
12
|
-
|
|
13
|
-
# or
|
|
14
|
-
yarn add @epilot/volt-ui
|
|
15
|
-
# or
|
|
16
|
-
bun add @epilot/volt-ui
|
|
28
|
+
bun run dev:watch
|
|
17
29
|
```
|
|
18
30
|
|
|
31
|
+
Open http://localhost:3000 with your browser to see the result.
|
|
32
|
+
|
|
19
33
|
## Build
|
|
20
34
|
|
|
21
35
|
```bash
|
|
22
|
-
npm run build
|
|
23
|
-
# or
|
|
24
|
-
yarn build
|
|
25
|
-
# or
|
|
26
36
|
bun run build
|
|
27
37
|
```
|
|
28
38
|
|
|
29
|
-
|
|
39
|
+
> **Note**: This will generate the `dist` folder with the compiled code.
|
|
30
40
|
|
|
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
|
-
```
|
|
41
|
+
## Release
|
|
40
42
|
|
|
41
|
-
|
|
43
|
+
To release a new version, run:
|
|
42
44
|
|
|
43
|
-
|
|
45
|
+
```bash
|
|
46
|
+
npm run publish
|
|
47
|
+
```
|
|
@@ -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: "text-blue-default";
|
|
5
|
+
readonly sky: "text-sky-default";
|
|
6
|
+
readonly mint: "text-mint-default";
|
|
7
|
+
readonly green: "text-green-default";
|
|
8
|
+
readonly teal: "text-teal-default";
|
|
9
|
+
readonly cyan: "text-cyan-default";
|
|
10
|
+
readonly indigo: "text-indigo-default";
|
|
11
|
+
readonly purple: "text-purple-default";
|
|
12
|
+
readonly pink: "text-pink-default";
|
|
13
|
+
readonly red: "text-red-default";
|
|
14
|
+
readonly orange: "text-orange-default";
|
|
15
|
+
readonly yellow: "text-yellow-default";
|
|
16
|
+
readonly bronze: "text-bronze-default";
|
|
17
|
+
readonly gray: "text-gray-default";
|
|
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
|
-
import { type VariantProps } from "class-variance-authority";
|
|
2
1
|
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "primary" | "secondary" | "tertiary" | null | undefined;
|
|
5
|
-
size?: "sm" | "base" | "
|
|
4
|
+
variant?: "primary" | "secondary" | "tertiary" | "destructive" | null | undefined;
|
|
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"];
|
|
@@ -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" | null | undefined;
|
|
14
|
-
size?: "sm" | "base" | "
|
|
13
|
+
variant?: "primary" | "secondary" | "tertiary" | "destructive" | null | undefined;
|
|
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>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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, ...props }: React.ComponentProps<"div"> & VariantProps<typeof calloutVariants>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const CalloutTitle: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const CalloutDescription: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const CalloutAction: ({ className, align, ...props }: React.ComponentProps<"div"> & {
|
|
10
|
+
align?: "start" | "end";
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const CalloutIcon: ({ className, custom, ...props }: React.ComponentProps<"svg"> & {
|
|
13
|
+
custom?: React.ReactNode;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Callout, CalloutTitle, CalloutDescription, CalloutIcon, CalloutAction };
|
|
@@ -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 = "small" | "medium" | "large" | "xlarge" | "2xlarge" | "3xlarge" | "4xlarge" | "5xlarge" | "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,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,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Label } from "../../components/label/label";
|
|
3
|
+
type FieldInputRef = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | HTMLButtonElement | null;
|
|
4
|
+
declare const useFieldContext: () => {
|
|
5
|
+
inputRef: React.RefObject<FieldInputRef>;
|
|
6
|
+
};
|
|
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;
|
|
9
|
+
type FieldProps = React.ComponentProps<"div"> & {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const Field: ({ className, children, onClick, ...props }: FieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const FieldContent: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
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;
|
|
20
|
+
declare const FieldDescription: ({ className, ...props }: React.ComponentProps<"p">) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare const FieldError: ({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
22
|
+
errors?: Array<{
|
|
23
|
+
message?: string;
|
|
24
|
+
} | undefined>;
|
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
26
|
+
export { Field, FieldSet, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelContent, useFieldContext, };
|
|
@@ -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" | "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;
|
|
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" | "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;
|
|
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 };
|