@rescui/tooltip 0.4.1 → 0.4.2
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/lib/index.css +23 -23
- package/lib/index.p.module.css.js +9 -0
- package/lib/tooltip.js +1 -1
- package/package.json +5 -5
- package/lib/index.module.pcss.js +0 -9
package/lib/index.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.
|
|
1
|
+
._tooltip_4im8fv_4{
|
|
2
2
|
position:relative;
|
|
3
3
|
}
|
|
4
|
-
.
|
|
4
|
+
._closing_4im8fv_8{
|
|
5
5
|
pointer-events:none;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
._content_4im8fv_12{
|
|
8
8
|
letter-spacing:0.0045em;
|
|
9
9
|
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
10
10
|
font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
line-height:20px;
|
|
14
14
|
line-height:var(--rs-text-3-line-height, 20px);
|
|
15
15
|
}
|
|
16
|
-
._rs-reset-letter-
|
|
16
|
+
._rs-reset-letter-spacing_4im8fv_1 ._content_4im8fv_12{
|
|
17
17
|
letter-spacing:normal;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
._content_4im8fv_12 {
|
|
20
20
|
|
|
21
21
|
max-width:283px;
|
|
22
22
|
|
|
@@ -37,52 +37,52 @@
|
|
|
37
37
|
-webkit-transform:translate(0, 0);
|
|
38
38
|
transform:translate(0, 0);
|
|
39
39
|
}
|
|
40
|
-
[data-real-placement='top-end'] .
|
|
41
|
-
[data-real-placement='bottom-end'] .
|
|
40
|
+
[data-real-placement='top-end'] ._content_4im8fv_12,
|
|
41
|
+
[data-real-placement='bottom-end'] ._content_4im8fv_12{
|
|
42
42
|
margin-right:0;
|
|
43
43
|
}
|
|
44
|
-
[data-real-placement='top-start'] .
|
|
45
|
-
[data-real-placement='bottom-start'] .
|
|
44
|
+
[data-real-placement='top-start'] ._content_4im8fv_12,
|
|
45
|
+
[data-real-placement='bottom-start'] ._content_4im8fv_12{
|
|
46
46
|
margin-left:0;
|
|
47
47
|
}
|
|
48
|
-
[data-real-placement='left-end'] .
|
|
49
|
-
[data-real-placement='right-end'] .
|
|
48
|
+
[data-real-placement='left-end'] ._content_4im8fv_12,
|
|
49
|
+
[data-real-placement='right-end'] ._content_4im8fv_12{
|
|
50
50
|
margin-bottom:0;
|
|
51
51
|
}
|
|
52
|
-
[data-real-placement='left-start'] .
|
|
53
|
-
[data-real-placement='right-start'] .
|
|
52
|
+
[data-real-placement='left-start'] ._content_4im8fv_12,
|
|
53
|
+
[data-real-placement='right-start'] ._content_4im8fv_12{
|
|
54
54
|
margin-top:0;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
._initial_4im8fv_47 ._content_4im8fv_12{
|
|
57
57
|
-webkit-transition:none;
|
|
58
58
|
transition:none;
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
._closing_4im8fv_8 ._content_4im8fv_12{
|
|
61
61
|
-webkit-transition-duration:200ms, 200ms;
|
|
62
62
|
transition-duration:200ms, 200ms;
|
|
63
63
|
}
|
|
64
|
-
.
|
|
65
|
-
.
|
|
64
|
+
._initial_4im8fv_47 ._content_4im8fv_12,
|
|
65
|
+
._closing_4im8fv_8 ._content_4im8fv_12{
|
|
66
66
|
opacity:0;
|
|
67
67
|
}
|
|
68
|
-
.
|
|
68
|
+
._initial_4im8fv_47[data-real-placement^='top'] ._content_4im8fv_12, ._closing_4im8fv_8[data-real-placement^='top'] ._content_4im8fv_12{
|
|
69
69
|
-webkit-transform:translate(0, 10px);
|
|
70
70
|
transform:translate(0, 10px);
|
|
71
71
|
}
|
|
72
|
-
.
|
|
72
|
+
._initial_4im8fv_47[data-real-placement^='right'] ._content_4im8fv_12, ._closing_4im8fv_8[data-real-placement^='right'] ._content_4im8fv_12{
|
|
73
73
|
-webkit-transform:translate(-10px, 0);
|
|
74
74
|
transform:translate(-10px, 0);
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
._initial_4im8fv_47[data-real-placement^='bottom'] ._content_4im8fv_12, ._closing_4im8fv_8[data-real-placement^='bottom'] ._content_4im8fv_12{
|
|
77
77
|
-webkit-transform:translate(0, -10px);
|
|
78
78
|
transform:translate(0, -10px);
|
|
79
79
|
}
|
|
80
|
-
.
|
|
80
|
+
._initial_4im8fv_47[data-real-placement^='left'] ._content_4im8fv_12, ._closing_4im8fv_8[data-real-placement^='left'] ._content_4im8fv_12{
|
|
81
81
|
-webkit-transform:translate(10px, 0);
|
|
82
82
|
transform:translate(10px, 0);
|
|
83
83
|
}
|
|
84
|
-
.
|
|
85
|
-
.
|
|
84
|
+
._trigger_4im8fv_81:focus-visible,
|
|
85
|
+
._trigger_4im8fv_81:focus[data-focus-method='key']{
|
|
86
86
|
outline:none;
|
|
87
87
|
-webkit-box-shadow:rgba(107, 87, 255, 0.8) 0 0 0 4px;
|
|
88
88
|
-webkit-box-shadow:var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8)) 0 0 0 4px;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var styles = {
|
|
2
|
+
"tooltip": "_tooltip_4im8fv_4",
|
|
3
|
+
"closing": "_closing_4im8fv_8",
|
|
4
|
+
"content": "_content_4im8fv_12",
|
|
5
|
+
"rs-reset-letter-spacing": "_rs-reset-letter-spacing_4im8fv_1",
|
|
6
|
+
"initial": "_initial_4im8fv_47",
|
|
7
|
+
"trigger": "_trigger_4im8fv_81"
|
|
8
|
+
};
|
|
9
|
+
export { styles as default };
|
package/lib/tooltip.js
CHANGED
|
@@ -24,7 +24,7 @@ import PropTypes from 'prop-types';
|
|
|
24
24
|
import ReactDOM from 'react-dom';
|
|
25
25
|
import { Manager, Reference, Popper } from 'react-popper';
|
|
26
26
|
import { LayeringConsumer } from '@rescui/ui-contexts';
|
|
27
|
-
import styles from './index.module.
|
|
27
|
+
import styles from './index.p.module.css.js';
|
|
28
28
|
import { useTooltipState, TOOLTIP_STATES } from './use-tooltip-state.js';
|
|
29
29
|
var HIDE_TIMEOUT = 500; // it should in sync with the transition-duration css-property
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/tooltip",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"react-dom": ">=16.8.0 <18"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@rescui/colors": "^0.1.
|
|
32
|
-
"@rescui/scripts": "^0.1.
|
|
33
|
-
"@rescui/typography": "^0.7.
|
|
31
|
+
"@rescui/colors": "^0.1.2",
|
|
32
|
+
"@rescui/scripts": "^0.1.6",
|
|
33
|
+
"@rescui/typography": "^0.7.4",
|
|
34
34
|
"@types/react-is": "^17.0.3"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "rescui-scripts build"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "c5b48e321608ae1755e691238aa5db5977318c75"
|
|
40
40
|
}
|
package/lib/index.module.pcss.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var styles = {
|
|
2
|
-
"tooltip": "_tooltip_kf9v0p_4",
|
|
3
|
-
"closing": "_closing_kf9v0p_8",
|
|
4
|
-
"content": "_content_kf9v0p_12",
|
|
5
|
-
"rs-reset-letter-spacing": "_rs-reset-letter-spacing_kf9v0p_1",
|
|
6
|
-
"initial": "_initial_kf9v0p_47",
|
|
7
|
-
"trigger": "_trigger_kf9v0p_81"
|
|
8
|
-
};
|
|
9
|
-
export { styles as default };
|