@cypress-design/react-tooltip 1.0.1 → 1.0.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/.turbo/turbo-build.log +3 -1
- package/CHANGELOG.md +12 -0
- package/Tooltip.tsx +6 -0
- package/dist/Tooltip.d.ts +4 -0
- package/dist/Tooltip.d.ts.map +1 -1
- package/dist/index.es.mjs +3 -3313
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +16 -3325
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/rollup.config.mjs +6 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
yarn run v1.22.22
|
|
1
2
|
$ yarn build:module && yarn build:types
|
|
2
3
|
$ rollup -c ./rollup.config.mjs
|
|
3
4
|
[36m
|
|
4
5
|
[1m./index.ts[22m → [1m./dist/index.umd.js, ./dist/index.es.mjs[22m...[39m
|
|
5
|
-
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [
|
|
6
|
+
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [1m14s[22m[39m
|
|
6
7
|
$ tsc --project ./tsconfig.build.json
|
|
8
|
+
Done in 29.76s.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @cypress-design/react-tooltip
|
|
2
2
|
|
|
3
|
+
## 1.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#519](https://github.com/cypress-io/cypress-design/pull/519) [`748fb55`](https://github.com/cypress-io/cypress-design/commit/748fb55d2d64318a0826482c8c0eabf88d7e40c7) Thanks [@mabela416](https://github.com/mabela416)! - Allow tooltip popper to receive a classname
|
|
8
|
+
|
|
9
|
+
## 1.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#450](https://github.com/cypress-io/cypress-design/pull/450) [`927097f`](https://github.com/cypress-io/cypress-design/commit/927097f409235ac78c98b281c4d9b2ec70dfe01d) Thanks [@elevatebart](https://github.com/elevatebart)! - optim: do not package dependencies
|
|
14
|
+
|
|
3
15
|
## 1.0.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/Tooltip.tsx
CHANGED
|
@@ -32,6 +32,10 @@ export interface TooltipProps {
|
|
|
32
32
|
* The content of the tooltip.
|
|
33
33
|
*/
|
|
34
34
|
popper?: React.ReactNode
|
|
35
|
+
/**
|
|
36
|
+
* classname for the popper container
|
|
37
|
+
*/
|
|
38
|
+
popperClassName?: string
|
|
35
39
|
/**
|
|
36
40
|
* Disable the tooltip.
|
|
37
41
|
* This hides the popper and makes the tooltip inactive.
|
|
@@ -65,6 +69,7 @@ export const Tooltip: React.FC<
|
|
|
65
69
|
placement,
|
|
66
70
|
color = 'light',
|
|
67
71
|
className,
|
|
72
|
+
popperClassName,
|
|
68
73
|
children,
|
|
69
74
|
popper,
|
|
70
75
|
disabled,
|
|
@@ -180,6 +185,7 @@ export const Tooltip: React.FC<
|
|
|
180
185
|
ref={refs.setFloating}
|
|
181
186
|
style={{ ...floatingStyles, zIndex: 100 }}
|
|
182
187
|
role="tooltip"
|
|
188
|
+
className={popperClassName}
|
|
183
189
|
{...getFloatingProps()}
|
|
184
190
|
>
|
|
185
191
|
<div
|
package/dist/Tooltip.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ export interface TooltipProps {
|
|
|
15
15
|
* The content of the tooltip.
|
|
16
16
|
*/
|
|
17
17
|
popper?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* classname for the popper container
|
|
20
|
+
*/
|
|
21
|
+
popperClassName?: string;
|
|
18
22
|
/**
|
|
19
23
|
* Disable the tooltip.
|
|
20
24
|
* This hides the popper and makes the tooltip inactive.
|
package/dist/Tooltip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"./","sources":["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