@cypress-design/react-tooltip 0.4.0 → 0.4.1
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 +6 -0
- package/Tooltip.rootstory.tsx +7 -7
- package/package.json +24 -24
- package/rollup.config.mjs +3 -0
- package/rollup.config.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @cypress-design/react-tooltip
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#164](https://github.com/cypress-io/cypress-design/pull/164) [`4fd951a`](https://github.com/cypress-io/cypress-design/commit/4fd951a39335900da2508beef9b3565a6f8f9518) Thanks [@elevatebart](https://github.com/elevatebart)! - fix: update active buttons borders
|
|
8
|
+
|
|
3
9
|
## 0.4.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/Tooltip.rootstory.tsx
CHANGED
|
@@ -13,10 +13,10 @@ export default ({
|
|
|
13
13
|
disabled?: boolean
|
|
14
14
|
tabIndex?: number
|
|
15
15
|
} = {}) => (
|
|
16
|
-
<div className="
|
|
16
|
+
<div className="flex flex-col items-center center gap-20">
|
|
17
17
|
<Tooltip
|
|
18
|
-
className="
|
|
19
|
-
popper={<div className="
|
|
18
|
+
className="w-1/2 p-4 bg-red-200"
|
|
19
|
+
popper={<div className="p-4 text-gray-800 bg-jade-200">PopovDyn</div>}
|
|
20
20
|
color={color}
|
|
21
21
|
placement={placement}
|
|
22
22
|
tabIndex={tabIndex}
|
|
@@ -25,7 +25,7 @@ export default ({
|
|
|
25
25
|
<div>Hover Me (dynamic: {placement?.toString()})</div>
|
|
26
26
|
</Tooltip>
|
|
27
27
|
<Tooltip
|
|
28
|
-
className="
|
|
28
|
+
className="w-1/2 p-4 bg-red-200"
|
|
29
29
|
popper={
|
|
30
30
|
<div className="h-[200px] flex items-center justify-center">Popov</div>
|
|
31
31
|
}
|
|
@@ -36,7 +36,7 @@ export default ({
|
|
|
36
36
|
<div>Force Placement to the top</div>
|
|
37
37
|
</Tooltip>
|
|
38
38
|
<Tooltip
|
|
39
|
-
className="
|
|
39
|
+
className="w-1/2 p-4 bg-red-200"
|
|
40
40
|
popper={<div>PopovInt</div>}
|
|
41
41
|
color={color}
|
|
42
42
|
placement={placement}
|
|
@@ -47,14 +47,14 @@ export default ({
|
|
|
47
47
|
{(['top', 'right', 'bottom', 'left', 'top-start'] as const).map(
|
|
48
48
|
(placement) => (
|
|
49
49
|
<Tooltip
|
|
50
|
-
className="
|
|
50
|
+
className="w-1/2 p-4 bg-indigo-200"
|
|
51
51
|
placement={placement}
|
|
52
52
|
key={placement}
|
|
53
53
|
color={color}
|
|
54
54
|
tabIndex={tabIndex}
|
|
55
55
|
disabled={disabled}
|
|
56
56
|
popper={
|
|
57
|
-
<div className="
|
|
57
|
+
<div className="p-4 text-gray-800 bg-jade-200">
|
|
58
58
|
Popover ({placement})
|
|
59
59
|
</div>
|
|
60
60
|
}
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
"name": "@cypress-design/react-tooltip",
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"files": [
|
|
5
|
+
"*"
|
|
6
|
+
],
|
|
7
|
+
"typings": "./dist/index.d.ts",
|
|
8
|
+
"main": "./dist/index.umd.js",
|
|
9
|
+
"module": "./dist/index.es.mjs",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.es.mjs",
|
|
13
|
+
"require": "./dist/index.umd.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "yarn build:module && yarn build:types",
|
|
18
|
+
"build:module": "rollup -c ./rollup.config.mjs",
|
|
19
|
+
"build:types": "tsc --project ./tsconfig.build.json"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"clsx": "*",
|
|
23
|
+
"@floating-ui/react-dom-interactions": "^0.6.1"
|
|
24
|
+
},
|
|
25
|
+
"license": "MIT"
|
|
26
26
|
}
|
package/rollup.config.js
DELETED