mado-ui 0.2.3 → 0.3.0
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/css/index.css +975 -3421
- package/dist/components/button.d.ts +32 -10
- package/dist/components/details.d.ts +18 -0
- package/dist/components/drop-down.d.ts +28 -0
- package/dist/components/form/fieldset.d.ts +9 -0
- package/dist/components/form/index.d.ts +2 -1
- package/dist/components/form/input/index.d.ts +1 -1
- package/dist/components/form/submit-button.d.ts +24 -5
- package/dist/components/form/textarea.d.ts +1 -1
- package/dist/components/index.d.ts +5 -2
- package/dist/components/link.d.ts +31 -8
- package/dist/components/modal.d.ts +1 -2
- package/dist/components/tooltip.d.ts +26 -0
- package/dist/components.esm.js +2562 -285
- package/dist/components.esm.js.map +1 -1
- package/dist/components.js +2621 -313
- package/dist/components.js.map +1 -1
- package/dist/hooks.esm.js.map +1 -1
- package/dist/hooks.js.map +1 -1
- package/dist/icons.esm.js.map +1 -1
- package/dist/icons.js.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.esm.js +2932 -663
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2972 -671
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/utils.d.ts +5 -7
- package/dist/utils/helpers.d.ts +7 -2
- package/dist/utils.esm.js.map +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +12 -9
|
@@ -1,21 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OneOf } from '../types';
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
import { AnyElementProps, OneOf } from '../types';
|
|
3
|
+
type ColorTheme = OneOf<[
|
|
4
|
+
{
|
|
5
|
+
/** Color theme. */
|
|
6
|
+
theme?: 'blue' | 'brown' | 'green' | 'grey' | 'sky-blue' | 'magenta' | 'orange' | 'pink' | 'purple' | 'red' | 'violet' | 'yellow';
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
/** Color theme. */
|
|
10
|
+
theme?: 'custom';
|
|
11
|
+
customTheme: OneOf<[
|
|
12
|
+
{
|
|
13
|
+
/** Example: `'[--theme-color:var(--color-blue-500)]'` */
|
|
14
|
+
themeColor: string;
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
/** This doesn't use any preset color theme classes. */
|
|
18
|
+
classes: string;
|
|
19
|
+
}
|
|
20
|
+
]>;
|
|
21
|
+
}
|
|
22
|
+
]>;
|
|
23
|
+
type LinkOrOther<TTag extends ElementType> = (AnyElementProps<TTag> & {
|
|
24
|
+
href?: never;
|
|
25
|
+
}) | (AnchorProps & {
|
|
26
|
+
href: string;
|
|
27
|
+
});
|
|
28
|
+
export type ButtonProps<TTag extends ElementType> = LinkOrOther<TTag> & ColorTheme & {
|
|
29
|
+
/** Customizes the theme color to a sensible gradient. */
|
|
30
|
+
gradient?: boolean;
|
|
8
31
|
/** The size of the element based on padding. */
|
|
9
32
|
padding?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
33
|
/** The size of the border-1 radius. */
|
|
11
34
|
rounded?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
12
|
-
/** Color theme. */
|
|
13
|
-
theme?: 'blue' | 'blue-gradient' | 'brown' | 'brown-gradient' | 'green' | 'green-gradient' | 'grey' | 'grey-gradient' | 'sky-blue' | 'sky-blue-gradient' | 'magenta' | 'magenta-gradient' | 'neutral' | 'neutral-gradient' | 'orange' | 'orange-gradient' | 'pink' | 'pink-gradient' | 'purple' | 'purple-gradient' | 'red' | 'red-gradient' | 'violet' | 'violet-gradient' | 'yellow' | 'yellow-gradient';
|
|
14
35
|
};
|
|
15
36
|
import { AnchorProps } from './link';
|
|
37
|
+
import { Button as HeadlessButton } from '@headlessui/react';
|
|
16
38
|
/**
|
|
17
39
|
* # Button
|
|
18
40
|
* - A pre-styled button with utility props for easy customization depending on use case.
|
|
19
41
|
*/
|
|
20
|
-
export default function Button<
|
|
42
|
+
export default function Button<TTag extends ElementType = typeof HeadlessButton>({ className, customTheme, gradient, padding, rounded, theme, ...props }: ButtonProps<TTag>): import("react/jsx-runtime").JSX.Element;
|
|
21
43
|
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
|
+
export type DetailsBodyProps<TTag extends ElementType = 'div'> = Omit<DisclosurePanelProps<TTag>, 'className'> & {
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
export type DetailsProps<TTag extends ElementType = 'div'> = Omit<DisclosureProps<TTag>, 'className' | 'role'> & {
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export type DetailsSummaryProps<TTag extends ElementType = typeof Button> = Omit<DisclosureButtonProps<TTag> & {
|
|
9
|
+
href?: never;
|
|
10
|
+
}, 'className' | 'href' | 'role'> & {
|
|
11
|
+
arrow?: boolean | ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
import { DisclosureProps, DisclosureButtonProps, DisclosurePanelProps } from '@headlessui/react';
|
|
15
|
+
import Button from './button';
|
|
16
|
+
export declare function DetailsSummary<TTag extends ElementType = typeof Button<'button'>>({ arrow, as, children, className, ...props }: DetailsSummaryProps<TTag>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function DetailsBody<TTag extends ElementType = 'div'>({ children, className, ...props }: DetailsBodyProps<TTag>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function Details<TTag extends ElementType = 'div'>({ as, className, ...props }: DetailsProps<TTag>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
|
+
export type DropDownButtonProps<TTag extends ElementType = 'button'> = Omit<MenuButtonProps<TTag>, 'as' | 'className'> & {
|
|
3
|
+
arrow?: boolean | ReactNode;
|
|
4
|
+
as?: TTag | ElementType;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export type DropDownItemProps = MenuItemProps;
|
|
8
|
+
export type DropDownItemsProps = Omit<MenuItemsProps, 'className' | 'transition'> & {
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export type DropDownProps = MenuProps;
|
|
12
|
+
export type DropDownSectionProps = MenuSectionProps & {
|
|
13
|
+
label: string;
|
|
14
|
+
labelProps?: Omit<MenuHeadingProps, 'children'> & {
|
|
15
|
+
/** @deprecated Use `label` instead. */
|
|
16
|
+
children?: never;
|
|
17
|
+
};
|
|
18
|
+
separatorAbove?: boolean;
|
|
19
|
+
separatorBelow?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type DropDownSeparatorProps = MenuSeparatorProps;
|
|
22
|
+
import { MenuButtonProps, MenuHeadingProps, MenuItemProps, MenuItemsProps, MenuProps, MenuSectionProps, MenuSeparatorProps } from '@headlessui/react';
|
|
23
|
+
export declare function DropDownButton<TTag extends ElementType = 'button'>({ arrow, as, children, className, ...props }: DropDownButtonProps<TTag>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function DropDownItem({ as, ...props }: DropDownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function DropDownItems({ anchor, children, className, style, ...props }: DropDownItemsProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function DropDownSection({ children, label, labelProps, separatorAbove, separatorBelow, ...props }: DropDownSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function DropDownSeparator({ className, ...props }: DropDownSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default function DropDown(props: DropDownProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type FieldsetProps = HeadlessFieldsetProps & {
|
|
2
|
+
legend?: string;
|
|
3
|
+
legendProps?: Omit<LegendProps, 'children'> & {
|
|
4
|
+
/** @deprecated Use the `legend` prop instead. */
|
|
5
|
+
children?: never;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
import { FieldsetProps as HeadlessFieldsetProps, LegendProps } from '@headlessui/react';
|
|
9
|
+
export default function Fieldset({ children, className, legend, legendProps, ...props }: FieldsetProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,7 +25,8 @@ export type FormProps<T extends ElementType = 'form'> = Omit<AnyElementProps<T,
|
|
|
25
25
|
};
|
|
26
26
|
import { FormContext, FormStatus } from '../../hooks';
|
|
27
27
|
export default function Form<T extends ElementType = 'form'>({ controlled, initialStatus, ...props }: FormProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
import Fieldset, { FieldsetProps } from './fieldset';
|
|
28
29
|
import Input, { InputProps } from './input';
|
|
29
30
|
import SubmitButton, { SubmitButtonProps } from './submit-button';
|
|
30
31
|
import Textarea, { TextareaProps } from './textarea';
|
|
31
|
-
export { Input, InputProps, Textarea, TextareaProps, SubmitButton, SubmitButtonProps };
|
|
32
|
+
export { Fieldset, FieldsetProps, Input, InputProps, Textarea, TextareaProps, SubmitButton, SubmitButtonProps };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { HTMLInputTypeAttribute, ReactNode, RefObject } from 'react';
|
|
2
1
|
import { OneOf } from '../../../types';
|
|
3
2
|
type PasswordOptionList = {
|
|
4
3
|
matchPreviousInput: boolean;
|
|
@@ -31,6 +30,7 @@ export type InputProps = Omit<HeadlessInputProps, 'name' | 'type'> & TypeOfPassw
|
|
|
31
30
|
name: string;
|
|
32
31
|
ref?: RefObject<HTMLInputElement | null>;
|
|
33
32
|
};
|
|
33
|
+
import { HTMLInputTypeAttribute, ReactNode, RefObject } from 'react';
|
|
34
34
|
import { DescriptionProps, FieldProps, InputProps as HeadlessInputProps, LabelProps } from '@headlessui/react';
|
|
35
35
|
export default function Input({ checked, className, defaultValue, description, descriptionProps, disabled, fieldProps, invalid, label, labelProps, name, onBlur, onChange, placeholder, ref, required, type, value, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
export {};
|
|
@@ -1,20 +1,39 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export type SubmitButtonProps = ButtonProps<
|
|
2
|
+
export type SubmitButtonProps = Omit<ButtonProps<'button'> & {
|
|
3
|
+
href?: never;
|
|
4
|
+
}, 'as' | 'customTheme' | 'href' | 'theme'> & {
|
|
5
|
+
customTheme?: {
|
|
6
|
+
/** Example: `'[--theme-color:var(--color-blue-500)]'` */
|
|
7
|
+
themeColor: string;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Only `themeColor` is available.
|
|
10
|
+
*
|
|
11
|
+
* ~~This doesn't use any preset color theme classes.~~
|
|
12
|
+
*/
|
|
13
|
+
classes?: never;
|
|
14
|
+
};
|
|
3
15
|
/** The message to display when the form status is "error" */
|
|
4
16
|
error?: ReactNode;
|
|
5
17
|
/** The message to display when the form status is "incomplete" */
|
|
6
18
|
incomplete?: ReactNode;
|
|
7
19
|
/** The message to display when the form status is "loading" */
|
|
8
20
|
loading?: ReactNode;
|
|
9
|
-
/**
|
|
21
|
+
/** The message to display when the form status is "readonly" */
|
|
22
|
+
readonly?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Use `children` instead.
|
|
10
25
|
*
|
|
11
26
|
* ~~The message to display when the form status is "ready"~~
|
|
12
27
|
*/
|
|
13
28
|
ready?: never;
|
|
14
29
|
/** The message to display when the form status is "success" */
|
|
15
30
|
success?: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Use `customTheme.themeColor` instead.
|
|
33
|
+
*
|
|
34
|
+
* ~~Color theme.~~
|
|
35
|
+
*/
|
|
36
|
+
theme?: never;
|
|
18
37
|
};
|
|
19
38
|
import { ButtonProps } from '../button';
|
|
20
|
-
export default function SubmitButton({ children, className, error, incomplete, loading, success,
|
|
39
|
+
export default function SubmitButton({ children, className, customTheme, error, incomplete, loading, success, type, ...props }: SubmitButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
|
2
1
|
export type TextareaProps = Omit<HeadlessTextareaProps, 'name'> & {
|
|
3
2
|
description?: ReactNode;
|
|
4
3
|
descriptionProps?: Omit<DescriptionProps, 'children'> & {
|
|
@@ -14,5 +13,6 @@ export type TextareaProps = Omit<HeadlessTextareaProps, 'name'> & {
|
|
|
14
13
|
name: string;
|
|
15
14
|
ref?: RefObject<HTMLTextAreaElement | null>;
|
|
16
15
|
};
|
|
16
|
+
import { ReactNode, RefObject } from 'react';
|
|
17
17
|
import { DescriptionProps, FieldProps, TextareaProps as HeadlessTextareaProps, LabelProps } from '@headlessui/react';
|
|
18
18
|
export default function Textarea({ className, defaultValue, description, descriptionProps, disabled, fieldProps, invalid, label, labelProps, name, onBlur, onChange, placeholder, ref, required, value, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import Button, { ButtonProps } from './button';
|
|
2
|
-
import
|
|
2
|
+
import Details, { DetailsBody, DetailsBodyProps, DetailsProps, DetailsSummary, DetailsSummaryProps } from './details';
|
|
3
|
+
import DropDown, { DropDownButton, DropDownButtonProps, DropDownItem, DropDownItemProps, DropDownItems, DropDownItemsProps, DropDownProps, DropDownSection, DropDownSectionProps, DropDownSeparator, DropDownSeparatorProps } from './drop-down';
|
|
4
|
+
import Form, { Fieldset, FieldsetProps, FormProps, FormSubmitArgs, Input, InputProps, SubmitButton, SubmitButtonProps, Textarea, TextareaProps } from './form';
|
|
3
5
|
import Ghost from './ghost';
|
|
4
6
|
import Heading, { HeadingProps } from './heading';
|
|
5
7
|
import Link, { Anchor, AnchorProps, LinkProps } from './link';
|
|
6
8
|
import Modal, { ModalDialog, ModalProps, ModalTrigger } from './modal';
|
|
7
9
|
import Time from './time';
|
|
8
|
-
|
|
10
|
+
import Tooltip, { TooltipPanel, TooltipProps, TooltipTrigger } from './tooltip';
|
|
11
|
+
export { Anchor, AnchorProps, Button, ButtonProps, Details, DetailsBody, DetailsBodyProps, DetailsProps, DetailsSummary, DetailsSummaryProps, DropDown, DropDownButton, DropDownButtonProps, DropDownItem, DropDownItemProps, DropDownItems, DropDownItemsProps, DropDownProps, DropDownSection, DropDownSectionProps, DropDownSeparator, DropDownSeparatorProps, Fieldset, FieldsetProps, Form, FormProps, FormSubmitArgs, Ghost, Heading, HeadingProps, Input, InputProps, Link, LinkProps, Modal, ModalDialog, ModalProps, ModalTrigger, SubmitButton, SubmitButtonProps, Textarea, TextareaProps, Time, Tooltip, TooltipPanel, TooltipProps, TooltipTrigger, };
|
|
@@ -1,18 +1,40 @@
|
|
|
1
1
|
import { AnyElementProps, OneOf } from '../types';
|
|
2
|
-
import {
|
|
3
|
-
export type AnchorProps =
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
export type AnchorProps<TTag extends ElementType<any, 'a'> = 'a'> = AnyElementProps<TTag> & {
|
|
4
4
|
disabled?: boolean;
|
|
5
|
-
ref?: RefObject<HTMLAnchorElement | null>;
|
|
6
5
|
};
|
|
7
|
-
export declare function Anchor({ className, disabled, href, onClick,
|
|
8
|
-
|
|
6
|
+
export declare function Anchor({ as, className, disabled, href, onClick, target, rel, ...props }: AnchorProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
type ThemeColorOrClasses = OneOf<[
|
|
8
|
+
{
|
|
9
|
+
/**
|
|
10
|
+
* - Fill Example: `'after:[--theme-color:var(--color-blue-500)]'`
|
|
11
|
+
* - Multiline Fill Example: `'[--theme-color:var(--color-blue-500)]'`
|
|
12
|
+
*/
|
|
13
|
+
themeColor: string;
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
/** This doesn't use any preset color theme classes. */
|
|
17
|
+
classes: string;
|
|
18
|
+
}
|
|
19
|
+
]>;
|
|
20
|
+
type ColorTheme = OneOf<[
|
|
21
|
+
{
|
|
22
|
+
/** Color theme. */
|
|
23
|
+
theme?: 'blue' | 'brown' | 'green' | 'grey' | 'sky-blue' | 'magenta' | 'orange' | 'pink' | 'purple' | 'red' | 'violet' | 'yellow';
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
/** Color theme. */
|
|
27
|
+
theme?: 'custom';
|
|
28
|
+
customTheme: ThemeColorOrClasses;
|
|
29
|
+
}
|
|
30
|
+
]>;
|
|
31
|
+
export type LinkProps<TTag extends ElementType<any, 'a'> = 'a'> = AnyElementProps<TTag, OneOf<[
|
|
9
32
|
{
|
|
10
33
|
type?: 'center' | 'lift' | 'ltr' | 'multiline' | 'multiline-center' | 'multiline-lift' | 'multiline-ltr' | 'multiline-rtl' | 'multiline-static' | 'normal' | 'rtl' | 'static';
|
|
11
34
|
},
|
|
12
35
|
{
|
|
13
36
|
type?: 'fill' | 'fill-lift' | 'fill-ltr' | 'fill-rtl' | 'multiline-fill' | 'multiline-fill-center' | 'multiline-fill-ltr' | 'multiline-fill-lift' | 'multiline-fill-rtl';
|
|
14
|
-
|
|
15
|
-
}
|
|
37
|
+
} & ColorTheme
|
|
16
38
|
]>>;
|
|
17
39
|
/**
|
|
18
40
|
* # Link
|
|
@@ -43,4 +65,5 @@ export type LinkProps<T extends ElementType = typeof Anchor> = AnyElementProps<T
|
|
|
43
65
|
* @example
|
|
44
66
|
* <Link href='/about' type='fill-ltr' theme='red' title='About Us'>Learn more about our company</Link>
|
|
45
67
|
*/
|
|
46
|
-
export default function Link({ as, className,
|
|
68
|
+
export default function Link({ as, className, customTheme, theme, type, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export {};
|
|
@@ -4,13 +4,12 @@ export type ModalProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
|
4
4
|
openModal: () => void;
|
|
5
5
|
closeModal: () => void;
|
|
6
6
|
}) => ReactNode);
|
|
7
|
-
closeButtonRef?: RefObject<HTMLButtonElement | null>;
|
|
8
7
|
dragToClose?: boolean;
|
|
9
8
|
onClose?: () => void;
|
|
10
9
|
onOpen?: () => void;
|
|
11
10
|
place?: 'center' | 'bottom';
|
|
12
11
|
};
|
|
13
|
-
import { ElementType, HTMLAttributes, ReactNode
|
|
12
|
+
import { ElementType, HTMLAttributes, ReactNode } from 'react';
|
|
14
13
|
import { Button as HeadlessButton, DialogTitleProps } from '@headlessui/react';
|
|
15
14
|
export declare function ModalTrigger<T extends ElementType = typeof HeadlessButton>({ as, ...props }: AnyElementProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
16
15
|
export declare function ModalTitle(props: DialogTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AnyElementProps } from '../types';
|
|
2
|
+
export type TooltipProps = {
|
|
3
|
+
anchor?: Placement;
|
|
4
|
+
arrow?: boolean;
|
|
5
|
+
arrowClassName?: string;
|
|
6
|
+
children: ReactNode | (({ openTooltip, closeTooltip }: {
|
|
7
|
+
openTooltip: () => void;
|
|
8
|
+
closeTooltip: () => void;
|
|
9
|
+
}) => ReactNode);
|
|
10
|
+
delay?: number;
|
|
11
|
+
offset?: number;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
onOpen?: () => void;
|
|
14
|
+
portal?: boolean;
|
|
15
|
+
maxWidth?: number;
|
|
16
|
+
};
|
|
17
|
+
export type TooltipTriggerProps<T extends ElementType = 'button'> = AnyElementProps<T> & {
|
|
18
|
+
asChild?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type TooltipPanelProps<T extends ElementType = 'div'> = AnyElementProps<T>;
|
|
21
|
+
import { ElementType, ReactNode } from 'react';
|
|
22
|
+
import { Placement } from '@floating-ui/react-dom';
|
|
23
|
+
import { Button as HeadlessButton } from '@headlessui/react';
|
|
24
|
+
export declare function TooltipTrigger<T extends ElementType = typeof HeadlessButton>({ as, asChild, children, ...props }: TooltipTriggerProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function TooltipPanel<T extends ElementType = 'div'>({ as, children, className, style, ...props }: TooltipPanelProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default function Tooltip({ anchor, arrow, arrowClassName, children, delay, offset, onClose, onOpen, portal, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|