@qodo/design-system 0.5.4 → 0.6.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/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
12
12
  import * as ProgressPrimitive from '@radix-ui/react-progress';
13
13
  import { PropsWithChildren } from 'react';
14
14
  import * as React_2 from 'react';
15
+ import { ReactNode } from 'react';
15
16
  import * as SelectPrimitive from '@radix-ui/react-select';
16
17
  import { SelectProps } from './types';
17
18
  import { Steps as Steps_2 } from '@ark-ui/react/steps';
@@ -20,7 +21,9 @@ import * as SwitchPrimitive from '@radix-ui/react-switch';
20
21
  import { TitleProps } from './types';
21
22
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
22
23
  import * as TogglePrimitive from '@radix-ui/react-toggle';
23
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
24
+ import { TooltipContentProps } from '@radix-ui/react-tooltip';
25
+ import { TooltipProviderProps } from '@radix-ui/react-tooltip';
26
+ import { TooltipTriggerProps } from '@radix-ui/react-tooltip';
24
27
  import { UseFormClearErrors } from 'react-hook-form';
25
28
  import { UseFormGetFieldState } from 'react-hook-form';
26
29
  import { UseFormGetValues } from 'react-hook-form';
@@ -259,13 +262,15 @@ declare const toggleVariants: (props?: ({
259
262
  size?: "default" | "sm" | "lg" | null | undefined;
260
263
  } & ClassProp) | undefined) => string;
261
264
 
262
- export declare function Tooltip({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Root>): JSX_2.Element;
265
+ export declare const Tooltip: ({ children, content, providerProps, triggerProps, contentProps, }: TooltipProps) => JSX_2.Element;
263
266
 
264
- export declare function TooltipContent({ className, sideOffset, children, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Content>): JSX_2.Element;
265
-
266
- export declare function TooltipProvider({ delayDuration, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Provider>): JSX_2.Element;
267
-
268
- export declare function TooltipTrigger({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Trigger>): JSX_2.Element;
267
+ declare interface TooltipProps {
268
+ children: ReactNode;
269
+ content: ReactNode;
270
+ providerProps?: Omit<TooltipProviderProps, "children">;
271
+ contentProps?: TooltipContentProps;
272
+ triggerProps?: TooltipTriggerProps;
273
+ }
269
274
 
270
275
  export declare const typography: {
271
276
  readonly fontFamily: {