@internxt/ui 0.0.25
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 +69 -0
- package/dist/components/avatar/Avatar.d.ts +29 -0
- package/dist/components/avatar/components/DefaultAvatar.d.ts +5 -0
- package/dist/components/avatar/components/PictureAvatar.d.ts +6 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/baseDialog/BaseDialog.d.ts +62 -0
- package/dist/components/baseDialog/index.d.ts +2 -0
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +68 -0
- package/dist/components/breadcrumbs/BreadcrumbsItem.d.ts +91 -0
- package/dist/components/breadcrumbs/index.d.ts +3 -0
- package/dist/components/button/Button.d.ts +75 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/buttonCircle/CircleButton.d.ts +19 -0
- package/dist/components/buttonCircle/index.d.ts +2 -0
- package/dist/components/card/Card.d.ts +17 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +46 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/contextMenu/ContextMenu.d.ts +56 -0
- package/dist/components/contextMenu/index.d.ts +2 -0
- package/dist/components/copyable/Copyable.d.ts +27 -0
- package/dist/components/copyable/index.d.ts +2 -0
- package/dist/components/dialog/Dialog.d.ts +50 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/dropdown/Dropdown.d.ts +20 -0
- package/dist/components/dropdown/index.d.ts +2 -0
- package/dist/components/empty/Empty.d.ts +40 -0
- package/dist/components/empty/index.d.ts +2 -0
- package/dist/components/header/Header.d.ts +24 -0
- package/dist/components/header/index.d.ts +2 -0
- package/dist/components/index.d.ts +28 -0
- package/dist/components/infiniteScroll/InfiniteScroll.d.ts +45 -0
- package/dist/components/infiniteScroll/index.d.ts +2 -0
- package/dist/components/input/Input.d.ts +115 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/list/List.d.ts +135 -0
- package/dist/components/list/ListHeader.d.ts +33 -0
- package/dist/components/list/ListItem.d.ts +25 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/loader/Loader.d.ts +40 -0
- package/dist/components/loader/index.d.ts +2 -0
- package/dist/components/menu/Menu.d.ts +72 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/modal/Modal.d.ts +53 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modalTransparent/TransparentModal.d.ts +11 -0
- package/dist/components/modalTransparent/index.d.ts +2 -0
- package/dist/components/popover/Popover.d.ts +30 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/radioButton/RadioButton.d.ts +26 -0
- package/dist/components/radioButton/index.d.ts +2 -0
- package/dist/components/skeletonLoader/SkeletonLoader.d.ts +19 -0
- package/dist/components/skeletonLoader/index.d.ts +2 -0
- package/dist/components/slider/RangeSlider.d.ts +56 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/switch/Switch.d.ts +33 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/table/Table.d.ts +59 -0
- package/dist/components/table/index.d.ts +6 -0
- package/dist/components/textArea/TextArea.d.ts +36 -0
- package/dist/components/textArea/index.d.ts +2 -0
- package/dist/components/tooltip/Tooltip.d.ts +46 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/hooks/useHotKeys.d.ts +5 -0
- package/dist/index.cjs.js +198 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +6052 -0
- package/dist/index.es.js.map +1 -0
- package/dist/stories/components/avatar/Avatar.stories.d.ts +18 -0
- package/dist/stories/components/baseDialog/BaseDialog.stories.d.ts +9 -0
- package/dist/stories/components/breadcrumbs/breadcrumbs.stories.d.ts +10 -0
- package/dist/stories/components/button/Button.stories.d.ts +12 -0
- package/dist/stories/components/buttonCircle/ButtonCircle.stories.d.ts +25 -0
- package/dist/stories/components/card/Card.stories.d.ts +8 -0
- package/dist/stories/components/checkbox/Checkbox.stories.d.ts +12 -0
- package/dist/stories/components/contextMenu/ContextMenu.stories.d.ts +7 -0
- package/dist/stories/components/copyable/Copyable.stories.d.ts +8 -0
- package/dist/stories/components/dialog/Dialog.stories.d.ts +7 -0
- package/dist/stories/components/dropdown/Dropdown.stories.d.ts +8 -0
- package/dist/stories/components/empty/Empty.stories.d.ts +8 -0
- package/dist/stories/components/header/Header.stories.d.ts +8 -0
- package/dist/stories/components/infiniteScroll/InfiniteScroll.stories.d.ts +8 -0
- package/dist/stories/components/input/Input.stories.d.ts +12 -0
- package/dist/stories/components/list/List.stories.d.ts +13 -0
- package/dist/stories/components/loader/Loader.stories.d.ts +11 -0
- package/dist/stories/components/menu/Menu.stories.d.ts +8 -0
- package/dist/stories/components/modal/Modal.stories.d.ts +7 -0
- package/dist/stories/components/modalTransparent/TransparentModal.stories.d.ts +9 -0
- package/dist/stories/components/popover/Popover.stories.d.ts +7 -0
- package/dist/stories/components/radioButton/RadioButton.stories.d.ts +7 -0
- package/dist/stories/components/skeletonLoader/SkeletonLoader.stories.d.ts +7 -0
- package/dist/stories/components/slider/RangeSlider.stories.d.ts +7 -0
- package/dist/stories/components/switch/Switch.stories.d.ts +9 -0
- package/dist/stories/components/table/Table.stories.d.ts +6 -0
- package/dist/stories/components/textArea/TextArea.stories.d.ts +8 -0
- package/dist/stories/components/tooltip/Tooltip.stories.d.ts +11 -0
- package/package.json +106 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface TransparentModalProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
disableBackdrop?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const TransparentModal: ({ isOpen, onClose, children, className, disableBackdrop }: TransparentModalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export default TransparentModal;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface PopoverProps {
|
|
4
|
+
childrenButton: ReactNode;
|
|
5
|
+
panel: (closePopover: () => void) => ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
classButton?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Popover component
|
|
11
|
+
*
|
|
12
|
+
* @property {ReactNode} childrenButton
|
|
13
|
+
* - The content to be displayed inside the trigger button.
|
|
14
|
+
*
|
|
15
|
+
* @property {(closePopover: () => void) => ReactNode} panel
|
|
16
|
+
* - A function that returns the content to be displayed inside the popover panel.
|
|
17
|
+
* It receives a `closePopover` function as a parameter, which can be used to programmatically close the popover.
|
|
18
|
+
*
|
|
19
|
+
* @property {string} [className]
|
|
20
|
+
* - Additional custom classes for the outermost container of the popover.
|
|
21
|
+
* Can be used for positioning or adding custom styles.
|
|
22
|
+
*
|
|
23
|
+
* @property {string} [classButton]
|
|
24
|
+
* - Custom classes for the trigger button.
|
|
25
|
+
*
|
|
26
|
+
* @returns {JSX.Element}
|
|
27
|
+
* - The rendered Popover component.
|
|
28
|
+
*/
|
|
29
|
+
declare const Popover: ({ childrenButton, panel, className, classButton }: PopoverProps) => JSX.Element;
|
|
30
|
+
export default Popover;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface RadioButtonProps {
|
|
2
|
+
checked: boolean;
|
|
3
|
+
id?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
onClick: (e?: unknown) => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* RadioButton component
|
|
9
|
+
*
|
|
10
|
+
* A custom radio button component that allows the user to select one option from a group of choices.
|
|
11
|
+
*
|
|
12
|
+
* @property {boolean} checked
|
|
13
|
+
* - Determines whether the radio button is selected (checked) or not. If true, the radio button appears active.
|
|
14
|
+
*
|
|
15
|
+
* @property {string} [id]
|
|
16
|
+
* - The unique identifier for the radio button element. Useful for associating labels or customizing the radio button.
|
|
17
|
+
*
|
|
18
|
+
* @property {boolean} [disabled]
|
|
19
|
+
* - If true, disables the radio button, making it unclickable and visually indicating its inactive state.
|
|
20
|
+
*
|
|
21
|
+
* @property {(e?: unknown) => void} onClick
|
|
22
|
+
* - A callback function triggered when the radio button is clicked.
|
|
23
|
+
* Can be used to handle custom behavior when the button is selected.
|
|
24
|
+
*/
|
|
25
|
+
declare const RadioButton: ({ checked, id, disabled, onClick }: RadioButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default RadioButton;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface SkeletonLoaderItemProps {
|
|
2
|
+
skeletonItem: Array<React.ReactElement> | undefined;
|
|
3
|
+
columns: Array<string>;
|
|
4
|
+
}
|
|
5
|
+
export interface SkeletonLoaderProps {
|
|
6
|
+
skeleton: Array<SkeletonLoaderItemProps>;
|
|
7
|
+
}
|
|
8
|
+
export declare const SkeletonLoaderItem: ({ skeletonItem, columns }: SkeletonLoaderItemProps) => React.ReactElement;
|
|
9
|
+
/**
|
|
10
|
+
* SkeletonLoader component to display loading placeholders in list layouts.
|
|
11
|
+
*
|
|
12
|
+
* @param skeleton - Array of skeleton items, {skeletonItem, columns}
|
|
13
|
+
* - The params of each sekeletonItem:
|
|
14
|
+
* - skeletonItem: - Array of elements representing the loading placeholders.
|
|
15
|
+
* - columns: - An array of CSS class names for each column, defining their layout and style.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
declare const SkeletonLoader: ({ skeleton }: SkeletonLoaderProps) => React.ReactElement;
|
|
19
|
+
export default SkeletonLoader;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
export interface RangeSliderProps {
|
|
3
|
+
value: number;
|
|
4
|
+
min?: number;
|
|
5
|
+
max: number;
|
|
6
|
+
step?: number;
|
|
7
|
+
percentageForProgressSliderBar?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
onChange: (value: number) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* RangeSlider component
|
|
15
|
+
*
|
|
16
|
+
* @param {RangeSliderProps} props - Properties of the RangeSlider component.
|
|
17
|
+
*
|
|
18
|
+
* @property {number} value
|
|
19
|
+
* - The current value of the slider.
|
|
20
|
+
*
|
|
21
|
+
* @property {number} [min=0]
|
|
22
|
+
* - The minimum value of the slider. Defaults to 0 if not specified.
|
|
23
|
+
*
|
|
24
|
+
* @property {number} max
|
|
25
|
+
* - The maximum value of the slider.
|
|
26
|
+
*
|
|
27
|
+
* @property {number} [step]
|
|
28
|
+
* - The step interval for the slider. Defines how much the value increments or decrements on each step.
|
|
29
|
+
*
|
|
30
|
+
* @property {number} [percentageForProgressSliderBar]
|
|
31
|
+
* - Optional. This value could control the width or progress of the slider,
|
|
32
|
+
* but it's not used in the component directly.
|
|
33
|
+
*
|
|
34
|
+
* @property {string} [className]
|
|
35
|
+
* - Optional class name to apply custom styles to the slider container.
|
|
36
|
+
*
|
|
37
|
+
* @property {(value: number) => void} onChange
|
|
38
|
+
* - Callback function triggered when the slider value changes. Receives the new value as an argument.
|
|
39
|
+
*
|
|
40
|
+
* @property {boolean} [disabled=false]
|
|
41
|
+
* - Optional flag to disable the slider. Defaults to false if not specified.
|
|
42
|
+
*
|
|
43
|
+
* @property {string} [ariaLabel="Range slider"]
|
|
44
|
+
* - Optional ARIA label for accessibility purposes. Defaults to 'Range slider' if not specified.
|
|
45
|
+
*
|
|
46
|
+
* @returns {JSX.Element}
|
|
47
|
+
* - The rendered RangeSlider component.
|
|
48
|
+
*
|
|
49
|
+
* The slider visually represents its value with a linear gradient background.
|
|
50
|
+
* The background dynamically adjusts as the slider's value changes, reflecting the percentage of progress.
|
|
51
|
+
* The slider supports custom min, max, and step values, and handles input changes via the `onChange` callback.
|
|
52
|
+
*
|
|
53
|
+
* The component also provides accessibility through the `aria-label` attribute.
|
|
54
|
+
*/
|
|
55
|
+
declare const RangeSlider: ({ value, min, max, step, className, disabled, ariaLabel, onChange, }: RangeSliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export default RangeSlider;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface SwitchComponentProps {
|
|
2
|
+
size?: 'md' | 'lg' | 'xl';
|
|
3
|
+
id?: string;
|
|
4
|
+
dataTestId?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
7
|
+
onClick?: (e?: unknown) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* SwitchComponent
|
|
11
|
+
*
|
|
12
|
+
* A toggle switch component that allows users to toggle between two states: on/off or checked/unchecked.
|
|
13
|
+
*
|
|
14
|
+
* @property {string} size
|
|
15
|
+
* - Defines the size of the switch. Options are 'md', 'lg', or 'xl'.
|
|
16
|
+
*
|
|
17
|
+
* @property {string} [id]
|
|
18
|
+
* - The unique identifier for the switch element.
|
|
19
|
+
*
|
|
20
|
+
* @property {string} [dataTestId]
|
|
21
|
+
* - A custom data attribute for use in testing or identifying the switch in the DOM.
|
|
22
|
+
*
|
|
23
|
+
* @property {boolean} [disabled]
|
|
24
|
+
* - If true, disables the switch, making it unclickable and visually indicating its inactive state.
|
|
25
|
+
*
|
|
26
|
+
* @property {(checked: boolean) => void} [onCheckedChange]
|
|
27
|
+
* - A callback function triggered whenever the checked state changes. Receives the new checked state as an argument.
|
|
28
|
+
*
|
|
29
|
+
* @property {(e?: unknown) => void} [onClick]
|
|
30
|
+
* - A callback function triggered when the switch is clicked. Allows for custom click behavior.
|
|
31
|
+
*/
|
|
32
|
+
declare const SwitchComponent: ({ disabled, id, dataTestId, size, onClick, onCheckedChange, }: SwitchComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export default SwitchComponent;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
isHeader?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Table component
|
|
26
|
+
*
|
|
27
|
+
* A container for tabular data. Wraps the `<table>` element with a div for additional styling or layout purposes.
|
|
28
|
+
* @param {TableProps} props - The props for the table component.
|
|
29
|
+
*/
|
|
30
|
+
export declare const Table: React.FC<TableProps>;
|
|
31
|
+
/**
|
|
32
|
+
* TableHeader component
|
|
33
|
+
*
|
|
34
|
+
* Represents the header section of the table. Wraps the `<thead>` element.
|
|
35
|
+
* @param {TableHeaderProps} props - The props for the table header component.
|
|
36
|
+
*/
|
|
37
|
+
export declare const TableHeader: React.FC<TableHeaderProps>;
|
|
38
|
+
/**
|
|
39
|
+
* TableBody component
|
|
40
|
+
*
|
|
41
|
+
* Represents the body section of the table. Wraps the `<tbody>` element.
|
|
42
|
+
* @param {TableBodyProps} props - The props for the table body component.
|
|
43
|
+
*/
|
|
44
|
+
export declare const TableBody: React.FC<TableBodyProps>;
|
|
45
|
+
/**
|
|
46
|
+
* TableRow component
|
|
47
|
+
*
|
|
48
|
+
* Represents a single row in the table. Wraps the `<tr>` element.
|
|
49
|
+
* @param {TableRowProps} props - The props for the table row component.
|
|
50
|
+
*/
|
|
51
|
+
export declare const TableRow: React.FC<TableRowProps>;
|
|
52
|
+
/**
|
|
53
|
+
* TableCell component
|
|
54
|
+
*
|
|
55
|
+
* Represents a single cell in the table, either header (`<th>`) or data (`<td>`).
|
|
56
|
+
* @param {TableCellProps} props - The props for the table cell component.
|
|
57
|
+
* @param {boolean} [props.isHeader=false] - Determines if the cell is a header (`<th>`).
|
|
58
|
+
*/
|
|
59
|
+
export declare const TableCell: React.FC<TableCellProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Table } from './Table';
|
|
2
|
+
export { TableHeader } from './Table';
|
|
3
|
+
export { TableBody } from './Table';
|
|
4
|
+
export { TableRow } from './Table';
|
|
5
|
+
export { TableCell } from './Table';
|
|
6
|
+
export type { TableProps, TableHeaderProps, TableBodyProps, TableRowProps, TableCellProps } from './Table';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface TextAreaComponentProps {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
accentColor?: 'red';
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
7
|
+
name?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* TextArea component
|
|
11
|
+
*
|
|
12
|
+
* @param {TextAreaComponentProps} props - Properties of the TextArea component.
|
|
13
|
+
*
|
|
14
|
+
* @property {boolean} [disabled=false]
|
|
15
|
+
* - Optional flag to disable the text area. Defaults to false if not specified.
|
|
16
|
+
*
|
|
17
|
+
* @property {'red'} [accentColor]
|
|
18
|
+
* - Optional accent color for the text area.
|
|
19
|
+
*
|
|
20
|
+
* @property {string} [placeholder='']
|
|
21
|
+
* - Optional placeholder text that is displayed when the text area is empty.
|
|
22
|
+
*
|
|
23
|
+
* @property {string} [value='']
|
|
24
|
+
* - Optional value for the text area. The content inside the text area is controlled by this value.
|
|
25
|
+
*
|
|
26
|
+
* @property {(e: React.ChangeEvent<HTMLTextAreaElement>) => void} [onChange]
|
|
27
|
+
* - Optional callback function triggered when the text area value changes. Receives the event object as an argument.
|
|
28
|
+
*
|
|
29
|
+
* @property {string} [name]
|
|
30
|
+
* - Optional name attribute for the text area, typically used for form submissions.
|
|
31
|
+
*
|
|
32
|
+
* @returns {JSX.Element}
|
|
33
|
+
* - The rendered TextArea component.
|
|
34
|
+
*/
|
|
35
|
+
declare const TextArea: ({ disabled, accentColor, placeholder, value, onChange, name, }: TextAreaComponentProps) => JSX.Element;
|
|
36
|
+
export default TextArea;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
popsFrom: 'right' | 'left' | 'top' | 'bottom';
|
|
8
|
+
className?: string;
|
|
9
|
+
delayInMs?: number;
|
|
10
|
+
arrow?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Tooltip component
|
|
14
|
+
*
|
|
15
|
+
* @property {ReactNode} children
|
|
16
|
+
* - The content that triggers the tooltip when hovered over.
|
|
17
|
+
*
|
|
18
|
+
* @property {string} title
|
|
19
|
+
* - The main text displayed inside the tooltip. This is required.
|
|
20
|
+
*
|
|
21
|
+
* @property {string} [subtitle]
|
|
22
|
+
* - An optional subtitle displayed below the main title inside the tooltip.
|
|
23
|
+
*
|
|
24
|
+
* @property {'right' | 'left' | 'top' | 'bottom'} popsFrom
|
|
25
|
+
* - Determines the direction from which the tooltip appears relative to the trigger element.
|
|
26
|
+
* - "right": Tooltip appears to the right of the element.
|
|
27
|
+
* - "left": Tooltip appears to the left of the element.
|
|
28
|
+
* - "top": Tooltip appears above the element.
|
|
29
|
+
* - "bottom": Tooltip appears below the element.
|
|
30
|
+
*
|
|
31
|
+
* @property {string} [className]
|
|
32
|
+
* - Additional CSS classes to style the tooltip container. Use to override default styles.
|
|
33
|
+
*
|
|
34
|
+
* @property {number} [delayInMs]
|
|
35
|
+
* - The delay (in milliseconds) before hiding the tooltip after the mouse leaves the trigger element.
|
|
36
|
+
* - If not provided, the tooltip hides immediately.
|
|
37
|
+
*
|
|
38
|
+
* @property {boolean} [arrow=true]
|
|
39
|
+
* - Whether to display the arrow pointing to the trigger element.
|
|
40
|
+
* - Default is true.
|
|
41
|
+
*
|
|
42
|
+
* @returns {JSX.Element}
|
|
43
|
+
* - A tooltip component that shows additional information when hovering over its children.
|
|
44
|
+
*/
|
|
45
|
+
declare const Tooltip: ({ children, title, subtitle, popsFrom, className, delayInMs, arrow, }: TooltipProps) => JSX.Element;
|
|
46
|
+
export default Tooltip;
|