@khanacademy/wonder-blocks-tooltip 1.4.1 → 1.4.3
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/CHANGELOG.md +22 -0
- package/dist/es/index.js +0 -18
- package/package.json +6 -6
- package/src/components/__tests__/tooltip-anchor.test.js +366 -423
- package/src/components/__tests__/tooltip-bubble.test.js +32 -49
- package/src/components/__tests__/tooltip-popper.test.js +2 -3
- package/src/components/__tests__/tooltip-tail.test.js +6 -84
- package/src/components/__tests__/tooltip.test.js +129 -246
- package/src/components/tooltip-tail.js +0 -18
- package/src/util/__tests__/ref-tracker.test.js +5 -7
- package/dist/index.js +0 -1495
- package/docs.md +0 -4
- package/src/components/__tests__/__snapshots__/tooltip-tail.test.js.snap +0 -9
- package/src/components/__tests__/__snapshots__/tooltip.test.js.snap +0 -53
package/docs.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`TooltipTail #render unknown placement, throws 1`] = `"Unknown placement: notaplacement"`;
|
|
4
|
-
|
|
5
|
-
exports[`TooltipTail INTERNALS _calculateDimensionsFromPlacement throws on bad placement 1`] = `"Unknown placement: notaplacement"`;
|
|
6
|
-
|
|
7
|
-
exports[`TooltipTail INTERNALS _getFilterPositioning throws on bad placement 1`] = `"Unknown placement: notaplacement"`;
|
|
8
|
-
|
|
9
|
-
exports[`TooltipTail INTERNALS _minDistanceFromCorners throws on bad placement 1`] = `"Unknown placement: notaplacement"`;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Tooltip Controlled can be opened programmatically: Similar to <TooltipContent>Content</TooltipContent> 1`] = `
|
|
4
|
-
<TooltipContent>
|
|
5
|
-
Content
|
|
6
|
-
</TooltipContent>
|
|
7
|
-
`;
|
|
8
|
-
|
|
9
|
-
exports[`Tooltip content is TooltipContent with title, overrides title of TooltipContent: Similar to <Body>Some custom content</Body> 1`] = `
|
|
10
|
-
<Body
|
|
11
|
-
tag="span"
|
|
12
|
-
>
|
|
13
|
-
Some custom content
|
|
14
|
-
</Body>
|
|
15
|
-
`;
|
|
16
|
-
|
|
17
|
-
exports[`Tooltip content is TooltipContent with title, sets title of TooltipContent: Similar to <HeadingSmall>Some custom content</HeadingSmall> 1`] = `
|
|
18
|
-
<HeadingSmall
|
|
19
|
-
tag="h4"
|
|
20
|
-
>
|
|
21
|
-
Some custom content
|
|
22
|
-
</HeadingSmall>
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
exports[`Tooltip content is TooltipContent with title, sets title of TooltipContent: Similar to <HeadingSmall>Title</HeadingSmall> 1`] = `
|
|
26
|
-
<HeadingSmall
|
|
27
|
-
tag="h4"
|
|
28
|
-
>
|
|
29
|
-
Title
|
|
30
|
-
</HeadingSmall>
|
|
31
|
-
`;
|
|
32
|
-
|
|
33
|
-
exports[`Tooltip content is TooltipContent without title, renders content as-is: <Body>Some custom content</Body> 1`] = `
|
|
34
|
-
<Body
|
|
35
|
-
tag="span"
|
|
36
|
-
>
|
|
37
|
-
Some custom content
|
|
38
|
-
</Body>
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
exports[`Tooltip content is a string, wraps in TooltipContent with title: Similar to <TooltipContent title="Title">Content</TooltipContent> 1`] = `
|
|
42
|
-
<TooltipContent
|
|
43
|
-
title="Title"
|
|
44
|
-
>
|
|
45
|
-
Content
|
|
46
|
-
</TooltipContent>
|
|
47
|
-
`;
|
|
48
|
-
|
|
49
|
-
exports[`Tooltip content is a string, wraps in TooltipContent without title: Similar to <TooltipContent>Content</TooltipContent> 1`] = `
|
|
50
|
-
<TooltipContent>
|
|
51
|
-
Content
|
|
52
|
-
</TooltipContent>
|
|
53
|
-
`;
|