@toptal/picasso-tooltip 2.0.4 → 2.0.5-alpha-bill-fix-initial-value-formatting-3895d7d76.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/picasso-tooltip",
3
- "version": "2.0.4",
3
+ "version": "2.0.5-alpha-bill-fix-initial-value-formatting-3895d7d76.0",
4
4
  "description": "Toptal UI components library - Tooltip",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,9 +22,9 @@
22
22
  },
23
23
  "homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
24
24
  "dependencies": {
25
- "@toptal/picasso-shared": "15.0.0",
26
- "@toptal/picasso-typography": "4.0.4",
27
- "@toptal/picasso-utils": "3.1.0",
25
+ "@toptal/picasso-shared": "15.0.1-alpha-bill-fix-initial-value-formatting-3895d7d76.0",
26
+ "@toptal/picasso-typography": "4.0.5-alpha-bill-fix-initial-value-formatting-3895d7d76.0",
27
+ "@toptal/picasso-utils": "3.1.1-alpha-bill-fix-initial-value-formatting-3895d7d76.0",
28
28
  "classnames": "^2.5.1",
29
29
  "debounce": "^1.2.1"
30
30
  },
@@ -34,12 +34,12 @@
34
34
  ],
35
35
  "peerDependencies": {
36
36
  "@material-ui/core": "4.12.4",
37
- "@toptal/picasso-provider": "*",
37
+ "@toptal/picasso-provider": "5.0.3-alpha-bill-fix-initial-value-formatting-3895d7d76.0",
38
38
  "react": ">=16.12.0 < 19.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@toptal/picasso-provider": "5.0.2",
42
- "@toptal/picasso-test-utils": "1.1.1",
41
+ "@toptal/picasso-provider": "5.0.3-alpha-bill-fix-initial-value-formatting-3895d7d76.0",
42
+ "@toptal/picasso-test-utils": "1.1.2-alpha-bill-fix-initial-value-formatting-3895d7d76.0",
43
43
  "popper.js": "^1.16.1"
44
44
  },
45
45
  "exports": {
@@ -97,18 +97,6 @@ describe('Tooltip', () => {
97
97
  unmount() // required to avoid updates from popper when portals are not used
98
98
  })
99
99
 
100
- it('opens and closes tooltip on focus', async () => {
101
- const { getByTestId, queryByTestId, findByTestId } = renderTooltip()
102
-
103
- fireEvent.focus(getByTestId('tooltip-trigger'))
104
- await findByTestId('tooltip-content')
105
-
106
- fireEvent.blur(getByTestId('tooltip-trigger'))
107
- await waitFor(() => {
108
- expect(queryByTestId('tooltip-content')).not.toBeInTheDocument()
109
- })
110
- })
111
-
112
100
  it('opens and closes tooltip on hover with a short delay', async () => {
113
101
  const { getByTestId, queryByTestId } = renderTooltip({ delay: 'short' })
114
102
 
@@ -181,23 +169,6 @@ describe('Tooltip', () => {
181
169
  expect(onMouseLeaveMock).toHaveBeenCalledTimes(1)
182
170
  })
183
171
 
184
- it('does not close tooltip when interactive content is used by the user', async () => {
185
- const { getByTestId, queryByTestId, findByTestId } = renderTooltip({
186
- interactive: true,
187
- })
188
-
189
- fireEvent.focus(getByTestId('tooltip-trigger'))
190
- await findByTestId('tooltip-content')
191
-
192
- fireEvent.mouseEnter(getByTestId('tooltip-content'))
193
- await findByTestId('tooltip-content')
194
-
195
- fireEvent.mouseLeave(getByTestId('tooltip-content'))
196
- await waitFor(() => {
197
- expect(queryByTestId('tooltip-content')).not.toBeInTheDocument()
198
- })
199
- })
200
-
201
172
  it('opens and moves tooltip on mouse move when followCursor prop is set and move distance is short', async () => {
202
173
  const { getByTestId, queryByTestId } = renderTooltip({
203
174
  followCursor: true,