@hh.ru/magritte-ui-tooltip 7.0.23 → 7.0.24
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/TooltipBase.js +1 -1
- package/index.css +37 -37
- package/package.json +5 -5
package/TooltipBase.js
CHANGED
|
@@ -13,7 +13,7 @@ import { TooltipArrow } from './TooltipArrow.js';
|
|
|
13
13
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
14
14
|
import { BaseText } from '@hh.ru/magritte-ui-typography/BaseText';
|
|
15
15
|
|
|
16
|
-
var styles = {"tooltip":"magritte-tooltip___Hxyh2_7-0-
|
|
16
|
+
var styles = {"tooltip":"magritte-tooltip___Hxyh2_7-0-24","tooltip-with-action":"magritte-tooltip-with-action___aYbOD_7-0-24","tooltipWithAction":"magritte-tooltip-with-action___aYbOD_7-0-24","tooltip-title":"magritte-tooltip-title___s-ekd_7-0-24","tooltipTitle":"magritte-tooltip-title___s-ekd_7-0-24","tooltip-close":"magritte-tooltip-close___B1qWh_7-0-24","tooltipClose":"magritte-tooltip-close___B1qWh_7-0-24","tooltip-with-close":"magritte-tooltip-with-close___2iNPt_7-0-24","tooltipWithClose":"magritte-tooltip-with-close___2iNPt_7-0-24","tooltip-enter":"magritte-tooltip-enter___cnped_7-0-24","tooltipEnter":"magritte-tooltip-enter___cnped_7-0-24","css-variables-element":"magritte-css-variables-element___yRnOI_7-0-24","cssVariablesElement":"magritte-css-variables-element___yRnOI_7-0-24","tooltip-enter-active":"magritte-tooltip-enter-active___M8qsm_7-0-24","tooltipEnterActive":"magritte-tooltip-enter-active___M8qsm_7-0-24","tooltip-exit":"magritte-tooltip-exit___IXkNp_7-0-24","tooltipExit":"magritte-tooltip-exit___IXkNp_7-0-24","tooltip-exit-active":"magritte-tooltip-exit-active___QllYr_7-0-24","tooltipExitActive":"magritte-tooltip-exit-active___QllYr_7-0-24","tooltip-actions":"magritte-tooltip-actions___gN8ad_7-0-24","tooltipActions":"magritte-tooltip-actions___gN8ad_7-0-24","tooltip-arrow":"magritte-tooltip-arrow___7OOYT_7-0-24","tooltipArrow":"magritte-tooltip-arrow___7OOYT_7-0-24"};
|
|
17
17
|
|
|
18
18
|
const CSS_CLASSES = {
|
|
19
19
|
enter: styles.tooltipEnter,
|
package/index.css
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
--magritte-color-component-tooltip-text-content-v19-1-0:#ffffff;
|
|
15
15
|
--magritte-color-component-tooltip-stroke-content-v19-1-0:#3B3B3B;
|
|
16
16
|
}
|
|
17
|
-
.magritte-tooltip___Hxyh2_7-0-
|
|
17
|
+
.magritte-tooltip___Hxyh2_7-0-24{
|
|
18
18
|
position:relative;
|
|
19
19
|
padding:16px;
|
|
20
20
|
border-radius:var(--magritte-static-border-radius-400-v19-1-0);
|
|
@@ -27,119 +27,119 @@
|
|
|
27
27
|
--magritte-ui-tooltip-arrow-fill:var(--magritte-color-component-tooltip-background-content-v19-1-0);
|
|
28
28
|
--magritte-ui-tooltip-arrow-stroke:var(--magritte-color-component-tooltip-stroke-content-v19-1-0);
|
|
29
29
|
}
|
|
30
|
-
.magritte-tooltip-with-action___aYbOD_7-0-
|
|
30
|
+
.magritte-tooltip-with-action___aYbOD_7-0-24{
|
|
31
31
|
border-bottom-left-radius:var(--magritte-static-border-radius-600-v19-1-0);
|
|
32
32
|
border-bottom-right-radius:var(--magritte-static-border-radius-600-v19-1-0);
|
|
33
33
|
}
|
|
34
|
-
.magritte-tooltip-title___s-ekd_7-0-
|
|
34
|
+
.magritte-tooltip-title___s-ekd_7-0-24{
|
|
35
35
|
margin-bottom:4px;
|
|
36
36
|
}
|
|
37
|
-
.magritte-tooltip-close___B1qWh_7-0-
|
|
37
|
+
.magritte-tooltip-close___B1qWh_7-0-24{
|
|
38
38
|
position:absolute;
|
|
39
39
|
right:9px;
|
|
40
40
|
top:9px;
|
|
41
41
|
}
|
|
42
|
-
.magritte-tooltip-with-close___2iNPt_7-0-
|
|
42
|
+
.magritte-tooltip-with-close___2iNPt_7-0-24{
|
|
43
43
|
padding-right:40px;
|
|
44
44
|
}
|
|
45
45
|
@media (prefers-reduced-motion: no-preference){
|
|
46
|
-
.magritte-tooltip-enter___cnped_7-0-
|
|
46
|
+
.magritte-tooltip-enter___cnped_7-0-24 .magritte-tooltip___Hxyh2_7-0-24{
|
|
47
47
|
opacity:0;
|
|
48
48
|
}
|
|
49
|
-
.magritte-css-variables-element___yRnOI_7-0-
|
|
50
|
-
.magritte-tooltip-enter-active___M8qsm_7-0-
|
|
49
|
+
.magritte-css-variables-element___yRnOI_7-0-24,
|
|
50
|
+
.magritte-tooltip-enter-active___M8qsm_7-0-24 .magritte-tooltip___Hxyh2_7-0-24{
|
|
51
51
|
opacity:1;
|
|
52
52
|
transition-property:opacity, transform;
|
|
53
53
|
transition-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v19-1-0);
|
|
54
54
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v19-1-0);
|
|
55
55
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v19-1-0);
|
|
56
56
|
}
|
|
57
|
-
.magritte-tooltip-exit___IXkNp_7-0-
|
|
57
|
+
.magritte-tooltip-exit___IXkNp_7-0-24 .magritte-tooltip___Hxyh2_7-0-24{
|
|
58
58
|
opacity:1;
|
|
59
59
|
}
|
|
60
|
-
.magritte-tooltip-exit-active___QllYr_7-0-
|
|
60
|
+
.magritte-tooltip-exit-active___QllYr_7-0-24 .magritte-tooltip___Hxyh2_7-0-24{
|
|
61
61
|
opacity:0;
|
|
62
62
|
transition-property:opacity, transform;
|
|
63
63
|
transition-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v19-1-0);
|
|
64
64
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v19-1-0);
|
|
65
65
|
--animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v19-1-0);
|
|
66
66
|
}
|
|
67
|
-
.magritte-tooltip-exit-active___QllYr_7-0-
|
|
68
|
-
.magritte-tooltip-enter___cnped_7-0-
|
|
67
|
+
.magritte-tooltip-exit-active___QllYr_7-0-24[data-magritte-drop-base-direction='bottom'] .magritte-tooltip___Hxyh2_7-0-24,
|
|
68
|
+
.magritte-tooltip-enter___cnped_7-0-24[data-magritte-drop-base-direction='bottom'] .magritte-tooltip___Hxyh2_7-0-24{
|
|
69
69
|
transform:translateY(4px);
|
|
70
70
|
}
|
|
71
|
-
.magritte-tooltip-exit-active___QllYr_7-0-
|
|
72
|
-
.magritte-tooltip-enter___cnped_7-0-
|
|
71
|
+
.magritte-tooltip-exit-active___QllYr_7-0-24[data-magritte-drop-base-direction='top'] .magritte-tooltip___Hxyh2_7-0-24,
|
|
72
|
+
.magritte-tooltip-enter___cnped_7-0-24[data-magritte-drop-base-direction='top'] .magritte-tooltip___Hxyh2_7-0-24{
|
|
73
73
|
transform:translateY(-4px);
|
|
74
74
|
}
|
|
75
|
-
.magritte-tooltip-exit-active___QllYr_7-0-
|
|
76
|
-
.magritte-tooltip-enter___cnped_7-0-
|
|
75
|
+
.magritte-tooltip-exit-active___QllYr_7-0-24[data-magritte-drop-base-direction='left'] .magritte-tooltip___Hxyh2_7-0-24,
|
|
76
|
+
.magritte-tooltip-enter___cnped_7-0-24[data-magritte-drop-base-direction='left'] .magritte-tooltip___Hxyh2_7-0-24{
|
|
77
77
|
transform:translateX(-4px);
|
|
78
78
|
}
|
|
79
|
-
.magritte-tooltip-exit-active___QllYr_7-0-
|
|
80
|
-
.magritte-tooltip-enter___cnped_7-0-
|
|
79
|
+
.magritte-tooltip-exit-active___QllYr_7-0-24[data-magritte-drop-base-direction='right'] .magritte-tooltip___Hxyh2_7-0-24,
|
|
80
|
+
.magritte-tooltip-enter___cnped_7-0-24[data-magritte-drop-base-direction='right'] .magritte-tooltip___Hxyh2_7-0-24{
|
|
81
81
|
transform:translateX(4px);
|
|
82
82
|
}
|
|
83
|
-
.magritte-tooltip-enter-active___M8qsm_7-0-
|
|
83
|
+
.magritte-tooltip-enter-active___M8qsm_7-0-24[data-magritte-drop-base-direction] .magritte-tooltip___Hxyh2_7-0-24{
|
|
84
84
|
transform:translate(0, 0);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
.magritte-tooltip-actions___gN8ad_7-0-
|
|
87
|
+
.magritte-tooltip-actions___gN8ad_7-0-24{
|
|
88
88
|
display:flex;
|
|
89
89
|
gap:12px;
|
|
90
90
|
margin-top:16px;
|
|
91
91
|
flex-flow:wrap;
|
|
92
92
|
}
|
|
93
|
-
.magritte-css-variables-element___yRnOI_7-0-
|
|
93
|
+
.magritte-css-variables-element___yRnOI_7-0-24{
|
|
94
94
|
top:28px;
|
|
95
95
|
right:15px;
|
|
96
96
|
bottom:24px;
|
|
97
97
|
left:calc(var(--magritte-static-border-radius-600-v19-1-0) - 12px / 2 + 28px /2 );
|
|
98
98
|
}
|
|
99
|
-
.magritte-tooltip-arrow___7OOYT_7-0-
|
|
99
|
+
.magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
100
100
|
position:absolute;
|
|
101
101
|
}
|
|
102
|
-
[data-magritte-drop-base-direction='bottom'] .magritte-tooltip-arrow___7OOYT_7-0-
|
|
102
|
+
[data-magritte-drop-base-direction='bottom'] .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
103
103
|
top:-12px;
|
|
104
104
|
}
|
|
105
|
-
[data-magritte-drop-base-direction='top'] .magritte-tooltip-arrow___7OOYT_7-0-
|
|
105
|
+
[data-magritte-drop-base-direction='top'] .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
106
106
|
bottom:-12px;
|
|
107
107
|
transform:rotate(180deg);
|
|
108
108
|
}
|
|
109
|
-
[data-magritte-drop-base-alignment='left'] .magritte-tooltip-arrow___7OOYT_7-0-
|
|
109
|
+
[data-magritte-drop-base-alignment='left'] .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
110
110
|
left:15px;
|
|
111
111
|
}
|
|
112
|
-
[data-magritte-drop-base-alignment='left'][data-magritte-drop-base-direction='top'] .magritte-tooltip-with-action___aYbOD_7-0-
|
|
112
|
+
[data-magritte-drop-base-alignment='left'][data-magritte-drop-base-direction='top'] .magritte-tooltip-with-action___aYbOD_7-0-24 .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
113
113
|
left:calc(var(--magritte-static-border-radius-600-v19-1-0) - 12px/2 + 28px/2);
|
|
114
114
|
}
|
|
115
|
-
[data-magritte-drop-base-direction='top'][data-magritte-drop-base-alignment='center'] .magritte-tooltip-arrow___7OOYT_7-0-
|
|
116
|
-
[data-magritte-drop-base-direction='bottom'][data-magritte-drop-base-alignment='center'] .magritte-tooltip-arrow___7OOYT_7-0-
|
|
115
|
+
[data-magritte-drop-base-direction='top'][data-magritte-drop-base-alignment='center'] .magritte-tooltip-arrow___7OOYT_7-0-24,
|
|
116
|
+
[data-magritte-drop-base-direction='bottom'][data-magritte-drop-base-alignment='center'] .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
117
117
|
left:calc(50% - 28px/2);
|
|
118
118
|
}
|
|
119
|
-
[data-magritte-drop-base-alignment='right'] .magritte-tooltip-arrow___7OOYT_7-0-
|
|
119
|
+
[data-magritte-drop-base-alignment='right'] .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
120
120
|
right:15px;
|
|
121
121
|
}
|
|
122
|
-
[data-magritte-drop-base-alignment='right'][data-magritte-drop-base-direction='top'] .magritte-tooltip-with-action___aYbOD_7-0-
|
|
122
|
+
[data-magritte-drop-base-alignment='right'][data-magritte-drop-base-direction='top'] .magritte-tooltip-with-action___aYbOD_7-0-24 .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
123
123
|
right:calc(var(--magritte-static-border-radius-600-v19-1-0) - 12px/2 + 28px/2);
|
|
124
124
|
}
|
|
125
|
-
[data-magritte-drop-base-direction='left'] .magritte-tooltip-arrow___7OOYT_7-0-
|
|
125
|
+
[data-magritte-drop-base-direction='left'] .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
126
126
|
right:-20px;
|
|
127
127
|
transform:rotate(90deg);
|
|
128
128
|
}
|
|
129
|
-
[data-magritte-drop-base-direction='right'] .magritte-tooltip-arrow___7OOYT_7-0-
|
|
129
|
+
[data-magritte-drop-base-direction='right'] .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
130
130
|
left:-20px;
|
|
131
131
|
transform:rotate(-90deg);
|
|
132
132
|
}
|
|
133
|
-
[data-magritte-drop-base-alignment='top'] .magritte-tooltip-arrow___7OOYT_7-0-
|
|
133
|
+
[data-magritte-drop-base-alignment='top'] .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
134
134
|
top:24px;
|
|
135
135
|
}
|
|
136
|
-
[data-magritte-drop-base-direction='left'][data-magritte-drop-base-alignment='center'] .magritte-tooltip-arrow___7OOYT_7-0-
|
|
137
|
-
[data-magritte-drop-base-direction='right'][data-magritte-drop-base-alignment='center'] .magritte-tooltip-arrow___7OOYT_7-0-
|
|
136
|
+
[data-magritte-drop-base-direction='left'][data-magritte-drop-base-alignment='center'] .magritte-tooltip-arrow___7OOYT_7-0-24,
|
|
137
|
+
[data-magritte-drop-base-direction='right'][data-magritte-drop-base-alignment='center'] .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
138
138
|
top:calc(50% - 12px/2);
|
|
139
139
|
}
|
|
140
|
-
[data-magritte-drop-base-alignment='bottom'] .magritte-tooltip-arrow___7OOYT_7-0-
|
|
140
|
+
[data-magritte-drop-base-alignment='bottom'] .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
141
141
|
bottom:24px;
|
|
142
142
|
}
|
|
143
|
-
[data-magritte-drop-base-alignment='bottom'] .magritte-tooltip-with-action___aYbOD_7-0-
|
|
143
|
+
[data-magritte-drop-base-alignment='bottom'] .magritte-tooltip-with-action___aYbOD_7-0-24 .magritte-tooltip-arrow___7OOYT_7-0-24{
|
|
144
144
|
bottom:calc(var(--magritte-static-border-radius-600-v19-1-0) - 12px/2 + 28px/2);
|
|
145
145
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-tooltip",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.24",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"@hh.ru/magritte-design-tokens": "19.1.0",
|
|
24
24
|
"@hh.ru/magritte-internal-drop-base": "7.0.6",
|
|
25
25
|
"@hh.ru/magritte-internal-layer-name": "2.2.0",
|
|
26
|
-
"@hh.ru/magritte-ui-action": "4.4.
|
|
26
|
+
"@hh.ru/magritte-ui-action": "4.4.10",
|
|
27
27
|
"@hh.ru/magritte-ui-breakpoint": "4.0.3",
|
|
28
|
-
"@hh.ru/magritte-ui-button": "5.2.
|
|
29
|
-
"@hh.ru/magritte-ui-icon": "7.
|
|
28
|
+
"@hh.ru/magritte-ui-button": "5.2.2",
|
|
29
|
+
"@hh.ru/magritte-ui-icon": "7.9.0",
|
|
30
30
|
"@hh.ru/magritte-ui-layer": "2.0.6",
|
|
31
31
|
"@hh.ru/magritte-ui-theme-provider": "1.1.29",
|
|
32
32
|
"@hh.ru/magritte-ui-typography": "3.0.16"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "b3e0588e408e619e64868eff34e01e3d07260b2d"
|
|
42
42
|
}
|