@mdspl/mds-shared-ui 1.3.7 → 1.3.8
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.cjs +4 -4
- package/dist/index.d.ts +19 -0
- package/dist/index.js +1887 -1834
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,9 +6,11 @@ import { default as default_2 } from 'react';
|
|
|
6
6
|
import { ForwardRefExoticComponent } from 'react';
|
|
7
7
|
import { JSX } from 'react';
|
|
8
8
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
9
|
+
import * as React_2 from 'react';
|
|
9
10
|
import { ReactNode } from 'react';
|
|
10
11
|
import { RefAttributes } from 'react';
|
|
11
12
|
import { Store } from '@tanstack/store';
|
|
13
|
+
import { Tooltip } from '@chakra-ui/react';
|
|
12
14
|
|
|
13
15
|
declare interface ActionColumn<T> extends BaseColumn {
|
|
14
16
|
type: 'actions';
|
|
@@ -336,6 +338,23 @@ export declare const MDSPinInput: ({ value, onChange, length, size, isDisabled,
|
|
|
336
338
|
|
|
337
339
|
export declare const MDSSelectBox: ({ options, label, value, onChange, placeholder, size, width, variant, helperText, isDisabled, required, errorText, visible, }: IMDSSelectBoxTypes) => JSX_2.Element;
|
|
338
340
|
|
|
341
|
+
export declare const MDSTooltip: React_2.ForwardRefExoticComponent<MDSTooltipProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
342
|
+
|
|
343
|
+
export declare interface MDSTooltipProps extends Omit<Tooltip.RootProps, 'content' | 'children'> {
|
|
344
|
+
/** The text or element to display inside the tooltip */
|
|
345
|
+
content: React_2.ReactNode;
|
|
346
|
+
/** The element that triggers the tooltip when hovered/focused */
|
|
347
|
+
children: React_2.ReactNode;
|
|
348
|
+
/** Whether to show the tooltip arrow (default: true) */
|
|
349
|
+
showArrow?: boolean;
|
|
350
|
+
/** Whether the tooltip is disabled */
|
|
351
|
+
disabled?: boolean;
|
|
352
|
+
/** Whether to render the tooltip in a portal to avoid overflow clipping (default: true) */
|
|
353
|
+
portalled?: boolean;
|
|
354
|
+
/** Additional props to pass directly to the tooltip content container */
|
|
355
|
+
contentProps?: Tooltip.ContentProps;
|
|
356
|
+
}
|
|
357
|
+
|
|
339
358
|
export declare interface OptionsApi {
|
|
340
359
|
fetchLatest(keys: string[]): Promise<OptionValue[]>;
|
|
341
360
|
}
|