@epilot/volt-ui 1.0.1 → 1.0.3-alpha.1

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
@@ -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-ui-` to avoid conflicts with the application styles.
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
 
@@ -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
- type?: "destructive" | "gray" | "info" | "success" | "warning" | null | undefined;
4
+ variant?: "destructive" | "gray" | "info" | "success" | "warning" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- declare const Callout: ({ className, type, customIcon, ...props }: React.ComponentProps<"div"> & VariantProps<typeof calloutVariants> & {
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, sideOffset, hideArrow, children, ...props }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element;
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 };