@rescui/tooltip 0.1.1 → 0.2.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/lib/index.css +27 -23
- package/lib/index.module.pcss.js +5 -4
- package/lib/use-tooltip-state.js +2 -1
- package/package.json +5 -5
package/lib/index.css
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
.
|
|
1
|
+
._tooltip_oa3ue2_4{
|
|
2
2
|
position:relative;
|
|
3
3
|
}
|
|
4
|
-
.
|
|
4
|
+
._closing_oa3ue2_8{
|
|
5
5
|
pointer-events:none;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
8
|
-
letter-spacing:
|
|
7
|
+
._content_oa3ue2_12{
|
|
8
|
+
letter-spacing:0.0045em;
|
|
9
9
|
color:rgba(25,25,28,0.7);
|
|
10
10
|
color:var(--rs-typography-color-average, rgba(25,25,28,0.7));
|
|
11
|
-
font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
12
|
-
font-family:var(--rs-font-family-
|
|
11
|
+
font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
12
|
+
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
13
|
font-size:13px;
|
|
14
14
|
font-size:var(--rs-text-3-font-size, 13px);
|
|
15
|
-
font-weight:400;
|
|
16
15
|
line-height:20px;
|
|
17
16
|
line-height:var(--rs-text-3-line-height, 20px);
|
|
17
|
+
}
|
|
18
|
+
._rs-reset-letter-spacing_oa3ue2_1 ._content_oa3ue2_12{
|
|
19
|
+
letter-spacing:normal;
|
|
20
|
+
}
|
|
21
|
+
._content_oa3ue2_12 {
|
|
18
22
|
|
|
19
23
|
max-width:283px;
|
|
20
24
|
|
|
@@ -35,47 +39,47 @@
|
|
|
35
39
|
-webkit-transform:translate(0, 0);
|
|
36
40
|
transform:translate(0, 0);
|
|
37
41
|
}
|
|
38
|
-
[data-real-placement='top-end'] .
|
|
39
|
-
[data-real-placement='bottom-end'] .
|
|
42
|
+
[data-real-placement='top-end'] ._content_oa3ue2_12,
|
|
43
|
+
[data-real-placement='bottom-end'] ._content_oa3ue2_12{
|
|
40
44
|
margin-right:0;
|
|
41
45
|
}
|
|
42
|
-
[data-real-placement='top-start'] .
|
|
43
|
-
[data-real-placement='bottom-start'] .
|
|
46
|
+
[data-real-placement='top-start'] ._content_oa3ue2_12,
|
|
47
|
+
[data-real-placement='bottom-start'] ._content_oa3ue2_12{
|
|
44
48
|
margin-left:0;
|
|
45
49
|
}
|
|
46
|
-
[data-real-placement='left-end'] .
|
|
47
|
-
[data-real-placement='right-end'] .
|
|
50
|
+
[data-real-placement='left-end'] ._content_oa3ue2_12,
|
|
51
|
+
[data-real-placement='right-end'] ._content_oa3ue2_12{
|
|
48
52
|
margin-bottom:0;
|
|
49
53
|
}
|
|
50
|
-
[data-real-placement='left-start'] .
|
|
51
|
-
[data-real-placement='right-start'] .
|
|
54
|
+
[data-real-placement='left-start'] ._content_oa3ue2_12,
|
|
55
|
+
[data-real-placement='right-start'] ._content_oa3ue2_12{
|
|
52
56
|
margin-top:0;
|
|
53
57
|
}
|
|
54
|
-
.
|
|
58
|
+
._initial_oa3ue2_47 ._content_oa3ue2_12{
|
|
55
59
|
-webkit-transition:none;
|
|
56
60
|
transition:none;
|
|
57
61
|
}
|
|
58
|
-
.
|
|
62
|
+
._closing_oa3ue2_8 ._content_oa3ue2_12{
|
|
59
63
|
-webkit-transition-duration:200ms, 200ms;
|
|
60
64
|
transition-duration:200ms, 200ms;
|
|
61
65
|
}
|
|
62
|
-
.
|
|
63
|
-
.
|
|
66
|
+
._initial_oa3ue2_47 ._content_oa3ue2_12,
|
|
67
|
+
._closing_oa3ue2_8 ._content_oa3ue2_12{
|
|
64
68
|
opacity:0;
|
|
65
69
|
}
|
|
66
|
-
.
|
|
70
|
+
._initial_oa3ue2_47[data-real-placement^='top'] ._content_oa3ue2_12, ._closing_oa3ue2_8[data-real-placement^='top'] ._content_oa3ue2_12{
|
|
67
71
|
-webkit-transform:translate(0, 10px);
|
|
68
72
|
transform:translate(0, 10px);
|
|
69
73
|
}
|
|
70
|
-
.
|
|
74
|
+
._initial_oa3ue2_47[data-real-placement^='right'] ._content_oa3ue2_12, ._closing_oa3ue2_8[data-real-placement^='right'] ._content_oa3ue2_12{
|
|
71
75
|
-webkit-transform:translate(-10px, 0);
|
|
72
76
|
transform:translate(-10px, 0);
|
|
73
77
|
}
|
|
74
|
-
.
|
|
78
|
+
._initial_oa3ue2_47[data-real-placement^='bottom'] ._content_oa3ue2_12, ._closing_oa3ue2_8[data-real-placement^='bottom'] ._content_oa3ue2_12{
|
|
75
79
|
-webkit-transform:translate(0, -10px);
|
|
76
80
|
transform:translate(0, -10px);
|
|
77
81
|
}
|
|
78
|
-
.
|
|
82
|
+
._initial_oa3ue2_47[data-real-placement^='left'] ._content_oa3ue2_12, ._closing_oa3ue2_8[data-real-placement^='left'] ._content_oa3ue2_12{
|
|
79
83
|
-webkit-transform:translate(10px, 0);
|
|
80
84
|
transform:translate(10px, 0);
|
|
81
85
|
}
|
package/lib/index.module.pcss.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"tooltip": "
|
|
3
|
-
"closing": "
|
|
4
|
-
"content": "
|
|
5
|
-
"
|
|
2
|
+
"tooltip": "_tooltip_oa3ue2_4",
|
|
3
|
+
"closing": "_closing_oa3ue2_8",
|
|
4
|
+
"content": "_content_oa3ue2_12",
|
|
5
|
+
"rs-reset-letter-spacing": "_rs-reset-letter-spacing_oa3ue2_1",
|
|
6
|
+
"initial": "_initial_oa3ue2_47"
|
|
6
7
|
};
|
|
7
8
|
export default styles;
|
package/lib/use-tooltip-state.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/tooltip",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0 <18"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@rescui/colors": "^0.0.
|
|
31
|
-
"@rescui/scripts": "^0.1.
|
|
32
|
-
"@rescui/typography": "^0.
|
|
30
|
+
"@rescui/colors": "^0.0.6",
|
|
31
|
+
"@rescui/scripts": "^0.1.4",
|
|
32
|
+
"@rescui/typography": "^0.5.0"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "rescui-scripts build"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "f07b6abc886028f74f129d1d7bfbf8fcfa5825af"
|
|
38
38
|
}
|