@epilot/volt-ui 1.0.2 → 1.0.3-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 +1 -1
- package/dist/components/alert-dialog/alert-dialog.d.ts +14 -0
- package/dist/components/callout/callout.d.ts +3 -2
- package/dist/components/tooltip/tooltip.d.ts +4 -3
- package/dist/index.cjs.js +20 -14
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +3997 -3519
- package/dist/preflight.css +1 -0
- package/dist/style.css +1 -1
- package/package.json +5 -3
- package/dist/reset.css +0 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- [Fumadocs](https://fumadocs.com/) for documentation
|
|
12
12
|
- [Vitest](https://vitest.dev/) and [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/) for testing
|
|
13
13
|
|
|
14
|
-
> **Note**: We prefix the CSS classes and variables with `volt
|
|
14
|
+
> **Note**: We prefix the CSS classes `.volt-` and CSS variables with `volt-` to avoid conflicts with the application styles.
|
|
15
15
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
+
declare const AlertDialog: ({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const AlertDialogTrigger: ({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const AlertDialogPortal: ({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const AlertDialogOverlay: ({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const AlertDialogContent: ({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const AlertDialogHeader: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const AlertDialogFooter: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const AlertDialogTitle: ({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const AlertDialogDescription: ({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const AlertDialogAction: ({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const AlertDialogCancel: ({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const calloutVariants: (props?: ({
|
|
4
|
-
|
|
4
|
+
variant?: "destructive" | "gray" | "info" | "success" | "warning" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
declare const Callout: ({ className,
|
|
6
|
+
declare const Callout: ({ className, variant, hideIcon, customIcon, ...props }: React.ComponentProps<"div"> & VariantProps<typeof calloutVariants> & {
|
|
7
7
|
customIcon?: React.ReactNode;
|
|
8
|
+
hideIcon?: boolean;
|
|
8
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
declare const CalloutTitle: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
declare const CalloutDescription: ({ className, ...props }: React.ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
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;
|
|
3
|
+
declare const TooltipProvider: ({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const TooltipPortal: ({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Portal>) => import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
declare const Tooltip: ({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
declare const TooltipTrigger: ({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
type TooltipContentProps = React.ComponentProps<typeof TooltipPrimitive.Content> & {
|
|
7
8
|
hideArrow?: boolean;
|
|
8
9
|
};
|
|
9
|
-
declare const TooltipContent: ({ className,
|
|
10
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
10
|
+
declare const TooltipContent: ({ className, hideArrow, children, ...props }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, TooltipPortal };
|