@purpurds/tooltip 7.6.0 → 7.7.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/.rush/temp/chunked-rush-logs/tooltip.test_unit.chunks.jsonl +4 -4
- package/.rush/temp/ci_build/@purpurds/tooltip/{e04ac80cf8b216f998d09290cbd8c1633f02b26f.untar.log → 56e2c4a58123de97ef646ba6b7c93c03d2203269.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +4 -4
- package/.rush/temp/operation/ci_build/log-chunks.jsonl +4 -4
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/all.log +4 -4
- package/.rush/temp/operation/test_unit/log-chunks.jsonl +4 -4
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/.rush/temp/shrinkwrap-deps.json +1 -1
- package/dist/LICENSE.txt +4 -4
- package/dist/tooltip.cjs.js +6 -6
- package/dist/tooltip.cjs.js.map +1 -1
- package/dist/tooltip.d.ts +26 -4
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.es.js +691 -713
- package/dist/tooltip.es.js.map +1 -1
- package/package.json +7 -6
- package/src/tooltip.stories.tsx +1 -1
- package/src/tooltip.tsx +17 -22
package/dist/tooltip.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { default as React,
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { Size } from '@purpurds/action';
|
|
3
|
+
import { BaseProps } from '@purpurds/common-types';
|
|
3
4
|
|
|
4
5
|
export declare const TOOLTIP_POSITION: {
|
|
5
6
|
readonly TOP: "top";
|
|
@@ -22,17 +23,38 @@ type WithoutTriggeElement = {
|
|
|
22
23
|
triggerElement?: never;
|
|
23
24
|
triggerAriaLabel: string;
|
|
24
25
|
};
|
|
25
|
-
export type TooltipProps =
|
|
26
|
+
export type TooltipProps = Omit<BaseProps, "children"> & {
|
|
26
27
|
align?: TooltipAlign;
|
|
27
28
|
buttonSize?: Size;
|
|
28
29
|
children: ReactNode;
|
|
29
30
|
negative?: boolean;
|
|
30
31
|
position?: TooltipPosition;
|
|
31
|
-
["data-testid"]?: string;
|
|
32
32
|
triggerAriaLabel?: string;
|
|
33
33
|
triggerElement?: ReactNode;
|
|
34
34
|
contentClassName?: string;
|
|
35
35
|
} & (WithTriggerElement | WithoutTriggeElement);
|
|
36
|
-
export declare const Tooltip: React.ForwardRefExoticComponent<
|
|
36
|
+
export declare const Tooltip: React.ForwardRefExoticComponent<(Omit<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
37
|
+
[key: `data-${string}`]: string | undefined;
|
|
38
|
+
}, "children"> & {
|
|
39
|
+
align?: TooltipAlign;
|
|
40
|
+
buttonSize?: Size;
|
|
41
|
+
children: ReactNode;
|
|
42
|
+
negative?: boolean;
|
|
43
|
+
position?: TooltipPosition;
|
|
44
|
+
triggerAriaLabel?: string;
|
|
45
|
+
triggerElement?: ReactNode;
|
|
46
|
+
contentClassName?: string;
|
|
47
|
+
} & WithTriggerElement, "ref"> | Omit<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
48
|
+
[key: `data-${string}`]: string | undefined;
|
|
49
|
+
}, "children"> & {
|
|
50
|
+
align?: TooltipAlign;
|
|
51
|
+
buttonSize?: Size;
|
|
52
|
+
children: ReactNode;
|
|
53
|
+
negative?: boolean;
|
|
54
|
+
position?: TooltipPosition;
|
|
55
|
+
triggerAriaLabel?: string;
|
|
56
|
+
triggerElement?: ReactNode;
|
|
57
|
+
contentClassName?: string;
|
|
58
|
+
} & WithoutTriggeElement, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
37
59
|
export {};
|
|
38
60
|
//# sourceMappingURL=tooltip.d.ts.map
|
package/dist/tooltip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../src/t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