@julien-wiegandt/open-ui 0.3.3 → 0.3.4

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.
@@ -1,6 +1,8 @@
1
- import { Color, Radius, Variant } from '../../theme/types';
2
1
  import { default as React } from 'react';
2
+ import { Color, Radius, Variant } from '../../theme/types';
3
3
  import { MarginProps, PaddingProps } from '../common/types';
4
+ import { TextProps } from '../text';
5
+ import { TooltipSize } from './style';
4
6
  export type TooltipProps = {
5
7
  label: React.ReactNode;
6
8
  children: React.ReactNode;
@@ -10,6 +12,8 @@ export type TooltipProps = {
10
12
  gap?: number;
11
13
  bgcolor?: string;
12
14
  radius?: Radius;
15
+ size?: TooltipSize;
16
+ labelProps?: Omit<TextProps, "children">;
13
17
  zIndex?: number;
14
18
  } & MarginProps & PaddingProps & React.HTMLAttributes<HTMLDivElement>;
15
19
  export declare const Tooltip: React.ForwardRefExoticComponent<{
@@ -21,5 +25,7 @@ export declare const Tooltip: React.ForwardRefExoticComponent<{
21
25
  gap?: number;
22
26
  bgcolor?: string;
23
27
  radius?: Radius;
28
+ size?: TooltipSize;
29
+ labelProps?: Omit<TextProps, "children">;
24
30
  zIndex?: number;
25
31
  } & MarginProps & PaddingProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -1,9 +1,11 @@
1
1
  import { Color, Radius, Variant } from '../../theme/types';
2
+ export type TooltipSize = "sm" | "md" | "lg";
2
3
  export type StyledTooltipProps = {
3
4
  color: Color | string;
4
5
  variant: Variant;
5
6
  bgcolor?: string;
6
7
  radius?: Radius;
8
+ size: TooltipSize;
7
9
  };
8
10
  export declare const StyledTooltip: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<{
9
11
  elevation?: import('../..').Elevation;