@megafon/ui-core 4.7.0 → 4.8.0

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/es/components/Accordion/Accordion.css +1 -0
  3. package/dist/es/components/Button/Button.d.ts +2 -0
  4. package/dist/es/components/Button/Button.js +7 -5
  5. package/dist/es/components/Notification/Notification.d.ts +4 -0
  6. package/dist/es/components/Notification/Notification.js +7 -1
  7. package/dist/es/components/Search/Search.css +14 -0
  8. package/dist/es/components/Select/Select.css +2 -0
  9. package/dist/es/components/Tabs/Tabs.js +2 -1
  10. package/dist/es/components/TextField/TextField.css +4 -0
  11. package/dist/es/components/Tile/Tile.css +22 -6
  12. package/dist/es/components/Tile/Tile.d.ts +9 -5
  13. package/dist/es/components/Tile/Tile.js +11 -4
  14. package/dist/es/components/Tooltip/Tooltip.css +242 -71
  15. package/dist/es/components/Tooltip/Tooltip.d.ts +38 -0
  16. package/dist/es/components/Tooltip/Tooltip.js +162 -49
  17. package/dist/lib/components/Accordion/Accordion.css +1 -0
  18. package/dist/lib/components/Button/Button.d.ts +2 -0
  19. package/dist/lib/components/Button/Button.js +7 -5
  20. package/dist/lib/components/Notification/Notification.d.ts +4 -0
  21. package/dist/lib/components/Notification/Notification.js +7 -1
  22. package/dist/lib/components/Search/Search.css +14 -0
  23. package/dist/lib/components/Select/Select.css +2 -0
  24. package/dist/lib/components/Tabs/Tabs.js +2 -1
  25. package/dist/lib/components/TextField/TextField.css +4 -0
  26. package/dist/lib/components/Tile/Tile.css +22 -6
  27. package/dist/lib/components/Tile/Tile.d.ts +9 -5
  28. package/dist/lib/components/Tile/Tile.js +13 -6
  29. package/dist/lib/components/Tooltip/Tooltip.css +242 -71
  30. package/dist/lib/components/Tooltip/Tooltip.d.ts +38 -0
  31. package/dist/lib/components/Tooltip/Tooltip.js +168 -52
  32. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.8.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.7.0...@megafon/ui-core@4.8.0) (2022-11-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **search:** fix scrollbar styles ([c8df5df](https://github.com/MegafonWebLab/megafon-ui/commit/c8df5df9787984a5eb9556b786ab8a6bee75dcb7))
12
+ * **select:** fix scrollbar styles ([15fdd41](https://github.com/MegafonWebLab/megafon-ui/commit/15fdd4170b600b8dad5f6144dadb86ae1d1e7cc0))
13
+ * **tabs:** update resize ([710895f](https://github.com/MegafonWebLab/megafon-ui/commit/710895f4c2f0899fb41ac08e7dde7b1636c24ed9))
14
+ * **textfield:** fix scrollbar styles ([8205a34](https://github.com/MegafonWebLab/megafon-ui/commit/8205a345dfe254a8f46fe4b1023f18761a5a9d29))
15
+
16
+
17
+ ### Features
18
+
19
+ * **tooltip:** add props and update design ([3bb935a](https://github.com/MegafonWebLab/megafon-ui/commit/3bb935ae0b8f302f4dd9a9ef58496e9f19e3cd2f))
20
+
21
+
22
+
23
+
24
+
6
25
  # [4.7.0](https://github.com/MegafonWebLab/megafon-ui/compare/@megafon/ui-core@4.6.0...@megafon/ui-core@4.7.0) (2022-11-07)
7
26
 
8
27
 
@@ -14,6 +14,7 @@
14
14
  position: relative;
15
15
  padding: 24px 44px 24px 16px;
16
16
  border-radius: 12px;
17
+ outline: none;
17
18
  cursor: pointer;
18
19
  -webkit-transition: background-color 0.3s;
19
20
  transition: background-color 0.3s;
@@ -37,6 +37,8 @@ export interface IButtonProps {
37
37
  content?: Record<string, string>;
38
38
  inner?: Record<string, string>;
39
39
  loader?: Record<string, string>;
40
+ text?: Record<string, string>;
41
+ arrow?: Record<string, string>;
40
42
  };
41
43
  /** Тема компонента */
42
44
  theme?: ButtonThemesType;
@@ -130,14 +130,14 @@ var Button = function Button(_ref) {
130
130
  }, contentClassName)
131
131
  }), icon && /*#__PURE__*/React.createElement("div", {
132
132
  className: cn('icon')
133
- }, icon), children && /*#__PURE__*/React.createElement("span", {
133
+ }, icon), children && /*#__PURE__*/React.createElement("span", _extends({
134
134
  className: cn('text', {
135
135
  ellipsis: ellipsis
136
136
  })
137
- }, children), !icon && showArrow && /*#__PURE__*/React.createElement(Arrow, {
137
+ }, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.text)), children), !icon && showArrow && /*#__PURE__*/React.createElement(Arrow, _extends({
138
138
  className: cn('icon-arrow')
139
- }));
140
- }, [children, icon, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.content, contentClassName, showArrow, ellipsis]);
139
+ }, filterDataAttrs(dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrow))));
140
+ }, [children, icon, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.content, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.text, dataAttrs === null || dataAttrs === void 0 ? void 0 : dataAttrs.arrow, ellipsis, contentClassName, showArrow]);
141
141
  var contentType = React.useMemo(function () {
142
142
  switch (true) {
143
143
  case icon && !children:
@@ -222,7 +222,9 @@ Button.propTypes = {
222
222
  root: PropTypes.objectOf(PropTypes.string.isRequired),
223
223
  content: PropTypes.objectOf(PropTypes.string.isRequired),
224
224
  inner: PropTypes.objectOf(PropTypes.string.isRequired),
225
- loader: PropTypes.objectOf(PropTypes.string.isRequired)
225
+ loader: PropTypes.objectOf(PropTypes.string.isRequired),
226
+ text: PropTypes.objectOf(PropTypes.string.isRequired),
227
+ arrow: PropTypes.objectOf(PropTypes.string.isRequired)
226
228
  }),
227
229
  theme: PropTypes.oneOf(Object.values(ButtonThemes)),
228
230
  type: PropTypes.oneOf(Object.values(ButtonTypes)),
@@ -9,9 +9,13 @@ export declare const NotificationTypes: {
9
9
  declare type NotificationType = typeof NotificationTypes[keyof typeof NotificationTypes];
10
10
  export declare const ShadowTypes: {
11
11
  readonly ZERO: "zero";
12
+ /** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
12
13
  readonly LOW: "low";
14
+ /** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
13
15
  readonly HIGH: "high";
14
16
  readonly HOVER: "hover";
17
+ readonly PRESSED: "pressed";
18
+ readonly DEFAULT: "default";
15
19
  };
16
20
  declare type ShadowType = typeof ShadowTypes[keyof typeof ShadowTypes];
17
21
  export interface INotificationProps {
@@ -92,9 +92,15 @@ export var NotificationTypes = {
92
92
  };
93
93
  export var ShadowTypes = {
94
94
  ZERO: 'zero',
95
+
96
+ /** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
95
97
  LOW: 'low',
98
+
99
+ /** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
96
100
  HIGH: 'high',
97
- HOVER: 'hover'
101
+ HOVER: 'hover',
102
+ PRESSED: 'pressed',
103
+ DEFAULT: 'default'
98
104
  };
99
105
  var cn = cnCreate('mfui-notification');
100
106
 
@@ -231,6 +231,20 @@
231
231
  max-height: 368px;
232
232
  padding: 16px;
233
233
  overflow-y: auto;
234
+ scrollbar-width: thin;
235
+ scrollbar-color: var(--spbSky2) transparent;
236
+ }
237
+ .mfui-search__list-inner::-webkit-scrollbar {
238
+ width: 16px;
239
+ }
240
+ .mfui-search__list-inner::-webkit-scrollbar-thumb {
241
+ border: 6px solid transparent;
242
+ border-radius: 16px;
243
+ background-color: #D8D8D8;
244
+ background-clip: padding-box;
245
+ }
246
+ .mfui-search__list-inner::-webkit-scrollbar-thumb:hover {
247
+ background-color: #999999;
234
248
  }
235
249
  .mfui-search__list-item {
236
250
  font-family: inherit;
@@ -177,6 +177,8 @@
177
177
  max-height: 368px;
178
178
  padding: 16px;
179
179
  overflow-y: auto;
180
+ scrollbar-width: thin;
181
+ scrollbar-color: var(--spbSky2) transparent;
180
182
  }
181
183
  .mfui-select__list-inner_short {
182
184
  max-height: 235px;
@@ -396,7 +396,8 @@ var Tabs = function Tabs(_ref) {
396
396
  onSwiper: handleSwiper,
397
397
  onReachBeginning: handleReachBeginning,
398
398
  onReachEnd: handleReachEnd,
399
- onFromEdge: handleFromEdge
399
+ onFromEdge: handleFromEdge,
400
+ observer: true
400
401
  }), renderTabs(), /*#__PURE__*/React.createElement("div", {
401
402
  className: cn('underline'),
402
403
  slot: "wrapper-start",
@@ -161,6 +161,10 @@
161
161
  font-size: 15px;
162
162
  line-height: 24px;
163
163
  }
164
+ .mfui-text-field__field_textarea {
165
+ scrollbar-width: thin;
166
+ scrollbar-color: var(--spbSky2) transparent;
167
+ }
164
168
  .mfui-text-field__field_textarea ~ .mfui-text-field__label {
165
169
  top: 16px;
166
170
  }
@@ -3,7 +3,7 @@
3
3
  background-color: var(--base);
4
4
  }
5
5
  .mfui-tile_radius_rounded {
6
- border-radius: 8px;
6
+ border-radius: 12px;
7
7
  }
8
8
  .mfui-tile_pointer {
9
9
  cursor: pointer;
@@ -16,11 +16,6 @@
16
16
  -webkit-box-shadow: 0 2px 9px rgba(0, 0, 0, 0.15);
17
17
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.15);
18
18
  }
19
- .mfui-tile_theme_light.mfui-tile_shadow_hover,
20
- .mfui-tile_theme_light.mfui-tile_interactive:hover {
21
- -webkit-box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
22
- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
23
- }
24
19
  .mfui-tile_theme_dark.mfui-tile_shadow_low {
25
20
  -webkit-box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.45);
26
21
  box-shadow: 0 0.25px 3px rgba(0, 0, 0, 0.45);
@@ -29,6 +24,27 @@
29
24
  -webkit-box-shadow: 0 2px 9px rgba(0, 0, 0, 0.25);
30
25
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.25);
31
26
  }
27
+ .mfui-tile_theme_light.mfui-tile_shadow_default {
28
+ -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
29
+ box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
30
+ }
31
+ .mfui-tile_theme_light.mfui-tile_shadow_pressed {
32
+ -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
33
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
34
+ }
35
+ .mfui-tile_theme_light.mfui-tile_shadow_hover,
36
+ .mfui-tile_theme_light.mfui-tile_interactive:hover {
37
+ -webkit-box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
38
+ box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
39
+ }
40
+ .mfui-tile_theme_dark.mfui-tile_shadow_default {
41
+ -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
42
+ box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
43
+ }
44
+ .mfui-tile_theme_dark.mfui-tile_shadow_pressed {
45
+ -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
46
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
47
+ }
32
48
  .mfui-tile_theme_dark.mfui-tile_shadow_hover,
33
49
  .mfui-tile_theme_dark.mfui-tile_interactive:hover {
34
50
  -webkit-box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
@@ -10,13 +10,17 @@ export declare const Radius: {
10
10
  readonly ROUNDED: "rounded";
11
11
  };
12
12
  declare type RadiusType = typeof Radius[keyof typeof Radius];
13
- export declare const Shadow: {
13
+ export declare const ShadowLevel: {
14
14
  readonly ZERO: "zero";
15
- readonly LOW: "low";
16
- readonly HIGH: "high";
15
+ readonly DEFAULT: "default";
17
16
  readonly HOVER: "hover";
17
+ readonly PRESSED: "pressed";
18
+ /** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
19
+ readonly HIGH: "high";
20
+ /** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
21
+ readonly LOW: "low";
18
22
  };
19
- declare type ShadowType = typeof Shadow[keyof typeof Shadow];
23
+ declare type ShadowLevelType = typeof ShadowLevel[keyof typeof ShadowLevel];
20
24
  export interface ITileProps {
21
25
  /** Ссылка */
22
26
  href?: string;
@@ -27,7 +31,7 @@ export interface ITileProps {
27
31
  /** Радиус границы */
28
32
  radius?: RadiusType;
29
33
  /** Уровень тени */
30
- shadowLevel?: ShadowType;
34
+ shadowLevel?: ShadowLevelType;
31
35
  /** Включить тень при наведении */
32
36
  isInteractive?: boolean;
33
37
  /** Дополнительный класс корневого элемента */
@@ -12,11 +12,17 @@ export var Radius = {
12
12
  DEFAULT: 'default',
13
13
  ROUNDED: 'rounded'
14
14
  };
15
- export var Shadow = {
15
+ export var ShadowLevel = {
16
16
  ZERO: 'zero',
17
- LOW: 'low',
17
+ DEFAULT: 'default',
18
+ HOVER: 'hover',
19
+ PRESSED: 'pressed',
20
+
21
+ /** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
18
22
  HIGH: 'high',
19
- HOVER: 'hover'
23
+
24
+ /** @deprecated TODO: нужно удалить значение при выпуске мажорной версии */
25
+ LOW: 'low'
20
26
  };
21
27
  var cn = cnCreate('mfui-tile');
22
28
 
@@ -44,6 +50,7 @@ var Tile = function Tile(_ref) {
44
50
  var isPointer = !!href || isInteractive;
45
51
  return /*#__PURE__*/React.createElement("div", _extends({
46
52
  className: cn({
53
+ // TODO: переименовать в shadowColor
47
54
  theme: theme,
48
55
  radius: radius,
49
56
  shadow: shadowLevel,
@@ -62,7 +69,7 @@ Tile.propTypes = {
62
69
  href: PropTypes.string,
63
70
  theme: PropTypes.oneOf(Object.values(Theme)),
64
71
  radius: PropTypes.oneOf(Object.values(Radius)),
65
- shadowLevel: PropTypes.oneOf(Object.values(Shadow)),
72
+ shadowLevel: PropTypes.oneOf(Object.values(ShadowLevel)),
66
73
  className: PropTypes.string,
67
74
  isInteractive: PropTypes.bool,
68
75
  onClick: PropTypes.func,
@@ -6,6 +6,8 @@
6
6
  transition-duration: 0.3s;
7
7
  -webkit-transition-property: opacity, visibility;
8
8
  transition-property: opacity, visibility;
9
+ font-size: 12px;
10
+ line-height: 18px;
9
11
  pointer-events: none;
10
12
  }
11
13
  .mfui-tooltip_open {
@@ -14,7 +16,7 @@
14
16
  pointer-events: all;
15
17
  }
16
18
  .mfui-tooltip_paddings_small .mfui-tooltip__content {
17
- padding: 8px 16px;
19
+ padding: 16px;
18
20
  }
19
21
  .mfui-tooltip_paddings_medium .mfui-tooltip__content {
20
22
  padding: 24px;
@@ -22,102 +24,271 @@
22
24
  .mfui-tooltip__content {
23
25
  position: relative;
24
26
  z-index: 1;
27
+ display: -webkit-box;
28
+ display: -ms-flexbox;
29
+ display: flex;
30
+ -webkit-box-orient: vertical;
31
+ -webkit-box-direction: normal;
32
+ -ms-flex-direction: column;
33
+ flex-direction: column;
34
+ gap: 8px;
25
35
  }
26
36
  .mfui-tooltip__content-shadow {
27
37
  position: absolute;
38
+ top: 0;
39
+ right: 0;
40
+ bottom: 0;
41
+ left: 0;
28
42
  z-index: -1;
29
43
  }
30
- .mfui-tooltip__arrow {
31
- width: 12px;
32
- height: 12px;
44
+ .mfui-tooltip__arrow-container {
33
45
  position: absolute;
34
46
  }
35
- .mfui-tooltip__arrow:before {
36
- width: 12px;
47
+ .mfui-tooltip__arrow-wrap {
48
+ width: 42px;
37
49
  height: 12px;
38
- content: '';
39
- position: absolute;
40
- top: 0;
41
- left: 0;
42
- -webkit-transform: rotate(45deg);
43
- transform: rotate(45deg);
44
- background-color: var(--base);
45
50
  }
46
- .mfui-tooltip__arrow-shadow {
47
- width: 12px;
51
+ .mfui-tooltip__arrow {
52
+ width: 42px;
48
53
  height: 12px;
49
54
  position: absolute;
50
- z-index: -1;
51
55
  }
52
- .mfui-tooltip__arrow-shadow:before {
53
- width: 12px;
54
- height: 12px;
55
- content: '';
56
+ .mfui-tooltip__arrow-inner {
57
+ -webkit-filter: drop-shadow(0 2px 9px rgba(0, 0, 0, 0.15));
58
+ filter: drop-shadow(0 2px 9px rgba(0, 0, 0, 0.15));
59
+ fill: var(--base);
60
+ }
61
+ .mfui-tooltip__text {
62
+ font-size: 12px;
63
+ line-height: 18px;
64
+ }
65
+ .mfui-tooltip__button,
66
+ .mfui-tooltip__close-button {
67
+ display: -webkit-box;
68
+ display: -ms-flexbox;
69
+ display: flex;
70
+ -webkit-box-align: center;
71
+ -ms-flex-align: center;
72
+ align-items: center;
73
+ -webkit-box-sizing: border-box;
74
+ box-sizing: border-box;
75
+ padding: 0;
76
+ border: none;
77
+ cursor: pointer;
78
+ }
79
+ .mfui-tooltip__button {
80
+ font-family: inherit;
81
+ color: var(--brandGreen);
82
+ font-weight: 500;
83
+ font-size: 12px;
84
+ line-height: 14px;
85
+ background-color: transparent;
86
+ -webkit-transition: 300ms;
87
+ transition: 300ms;
88
+ }
89
+ .mfui-tooltip__button:hover {
90
+ color: var(--buttonHoverGreen);
91
+ }
92
+ .mfui-tooltip__button:hover .mfui-tooltip__button-arrow {
93
+ fill: var(--buttonHoverGreen);
94
+ }
95
+ .mfui-tooltip__button:active {
96
+ color: var(--buttonDown);
97
+ }
98
+ .mfui-tooltip__button:active .mfui-tooltip__button-arrow {
99
+ fill: var(--buttonDown);
100
+ }
101
+ .mfui-tooltip__close-button {
56
102
  position: absolute;
57
- top: 0;
58
- left: 0;
59
- -webkit-transform: rotate(45deg);
60
- transform: rotate(45deg);
61
- -webkit-box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.15);
62
- box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.15);
103
+ top: 10px;
104
+ right: 10px;
105
+ -webkit-box-pack: center;
106
+ -ms-flex-pack: center;
107
+ justify-content: center;
108
+ width: 24px;
109
+ height: 24px;
110
+ margin-left: 24px;
111
+ border-radius: 12px;
112
+ background-color: var(--spbSky0);
113
+ -webkit-transition: 300ms;
114
+ transition: 300ms;
63
115
  }
64
- .mfui-tooltip[data-popper-placement='right'] .mfui-tooltip__arrow,
65
- .mfui-tooltip[data-popper-placement='right'] .mfui-tooltip__arrow-shadow {
66
- right: calc(100% - 20px);
116
+ .mfui-tooltip__close-button:hover {
117
+ background-color: var(--spbSky1);
67
118
  }
68
- .mfui-tooltip[data-popper-placement='right'] .mfui-tooltip__content {
69
- -webkit-transform: translateX(14px);
70
- transform: translateX(14px);
119
+ .mfui-tooltip__close-button:active {
120
+ background-color: var(--spbSky2);
71
121
  }
72
- .mfui-tooltip[data-popper-placement='right'] .mfui-tooltip__content-shadow {
73
- top: 0;
74
- right: -14px;
75
- bottom: 0;
76
- left: 14px;
122
+ .mfui-tooltip__close-icon {
123
+ display: block;
124
+ width: 20px;
125
+ height: 20px;
126
+ opacity: 0.5;
127
+ fill: var(--content);
77
128
  }
78
- .mfui-tooltip[data-popper-placement='left'] .mfui-tooltip__arrow,
79
- .mfui-tooltip[data-popper-placement='left'] .mfui-tooltip__arrow-shadow {
80
- left: calc(100% - 20px);
129
+ .mfui-tooltip__button-arrow {
130
+ width: 20px;
131
+ min-width: 20px;
132
+ height: 20px;
133
+ margin-bottom: -2px;
134
+ -webkit-transition: 300ms;
135
+ transition: 300ms;
136
+ fill: var(--brandGreen);
81
137
  }
82
- .mfui-tooltip[data-popper-placement='left'] .mfui-tooltip__content {
83
- -webkit-transform: translateX(-14px);
84
- transform: translateX(-14px);
138
+ .mfui-tooltip_small .mfui-tooltip__content {
139
+ display: -webkit-box;
140
+ display: -ms-flexbox;
141
+ display: flex;
142
+ -webkit-box-orient: horizontal;
143
+ -webkit-box-direction: normal;
144
+ -ms-flex-direction: row;
145
+ flex-direction: row;
146
+ gap: 18px;
147
+ -webkit-box-align: center;
148
+ -ms-flex-align: center;
149
+ align-items: center;
85
150
  }
86
- .mfui-tooltip[data-popper-placement='left'] .mfui-tooltip__content-shadow {
87
- top: 0;
88
- right: 14px;
89
- bottom: 0;
90
- left: -14px;
151
+ .mfui-tooltip_small .mfui-tooltip__text {
152
+ font-weight: 500;
91
153
  }
92
- .mfui-tooltip[data-popper-placement='top'] .mfui-tooltip__arrow,
93
- .mfui-tooltip[data-popper-placement='top'] .mfui-tooltip__arrow-shadow {
94
- top: calc(100% - 20px);
154
+ .mfui-tooltip_small .mfui-tooltip__close-button {
155
+ position: static;
156
+ margin-left: 0;
95
157
  }
96
- .mfui-tooltip[data-popper-placement='top'] .mfui-tooltip__content {
97
- -webkit-transform: translateY(-14px);
98
- transform: translateY(-14px);
158
+ .mfui-tooltip_theme_red .mfui-tooltip__content,
159
+ .mfui-tooltip_theme_blue .mfui-tooltip__content,
160
+ .mfui-tooltip_theme_red .mfui-tooltip__arrow:before,
161
+ .mfui-tooltip_theme_blue .mfui-tooltip__arrow:before,
162
+ .mfui-tooltip_theme_red .mfui-tooltip__title,
163
+ .mfui-tooltip_theme_blue .mfui-tooltip__title,
164
+ .mfui-tooltip_theme_red .mfui-tooltip__button,
165
+ .mfui-tooltip_theme_blue .mfui-tooltip__button {
166
+ color: var(--stcWhite);
99
167
  }
100
- .mfui-tooltip[data-popper-placement='top'] .mfui-tooltip__content-shadow {
101
- top: -14px;
102
- right: 0;
103
- bottom: 14px;
104
- left: 0;
168
+ .mfui-tooltip_theme_red .mfui-tooltip__button-arrow,
169
+ .mfui-tooltip_theme_blue .mfui-tooltip__button-arrow {
170
+ fill: var(--stcWhite);
105
171
  }
106
- .mfui-tooltip[data-popper-placement='bottom'] .mfui-tooltip__arrow,
107
- .mfui-tooltip[data-popper-placement='bottom'] .mfui-tooltip__arrow-shadow {
108
- bottom: calc(100% - 20px);
172
+ .mfui-tooltip_theme_red .mfui-tooltip__button:hover,
173
+ .mfui-tooltip_theme_blue .mfui-tooltip__button:hover {
174
+ color: var(--buttonHoverGrey);
109
175
  }
110
- .mfui-tooltip[data-popper-placement='bottom'] .mfui-tooltip__content {
111
- -webkit-transform: translateY(14px);
112
- transform: translateY(14px);
176
+ .mfui-tooltip_theme_red .mfui-tooltip__button:hover .mfui-tooltip__button-arrow,
177
+ .mfui-tooltip_theme_blue .mfui-tooltip__button:hover .mfui-tooltip__button-arrow {
178
+ fill: var(--buttonHoverGrey);
113
179
  }
114
- .mfui-tooltip[data-popper-placement='bottom'] .mfui-tooltip__content-shadow {
115
- top: 14px;
116
- right: 0;
117
- bottom: -14px;
118
- left: 0;
180
+ .mfui-tooltip_theme_red .mfui-tooltip__button:active,
181
+ .mfui-tooltip_theme_blue .mfui-tooltip__button:active {
182
+ color: var(--buttonDown);
183
+ }
184
+ .mfui-tooltip_theme_red .mfui-tooltip__button:active .mfui-tooltip__button-arrow,
185
+ .mfui-tooltip_theme_blue .mfui-tooltip__button:active .mfui-tooltip__button-arrow {
186
+ fill: var(--buttonDown);
187
+ }
188
+ .mfui-tooltip_theme_red .mfui-tooltip__close-button,
189
+ .mfui-tooltip_theme_blue .mfui-tooltip__close-button {
190
+ background-color: var(--stcWhite10);
191
+ }
192
+ .mfui-tooltip_theme_red .mfui-tooltip__close-button:hover,
193
+ .mfui-tooltip_theme_blue .mfui-tooltip__close-button:hover {
194
+ background-color: var(--stcWhite20);
195
+ }
196
+ .mfui-tooltip_theme_red .mfui-tooltip__close-button:active,
197
+ .mfui-tooltip_theme_blue .mfui-tooltip__close-button:active {
198
+ background-color: var(--stcWhite50);
199
+ }
200
+ .mfui-tooltip_theme_red .mfui-tooltip__close-icon,
201
+ .mfui-tooltip_theme_blue .mfui-tooltip__close-icon {
202
+ opacity: 1;
203
+ fill: var(--stcWhite);
204
+ }
205
+ .mfui-tooltip_theme_red .mfui-tooltip__content,
206
+ .mfui-tooltip_theme_red .mfui-tooltip__content-shadow,
207
+ .mfui-tooltip_theme_red .mfui-tooltip__arrow:before {
208
+ background-color: var(--fury80);
209
+ }
210
+ .mfui-tooltip_theme_red .mfui-tooltip__arrow-inner {
211
+ fill: var(--fury80);
212
+ }
213
+ .mfui-tooltip_theme_blue .mfui-tooltip__content,
214
+ .mfui-tooltip_theme_blue .mfui-tooltip__content-shadow,
215
+ .mfui-tooltip_theme_blue .mfui-tooltip__arrow:before {
216
+ background-color: var(--reflexBlue80);
217
+ }
218
+ .mfui-tooltip_theme_blue .mfui-tooltip__arrow-inner {
219
+ fill: var(--reflexBlue80);
220
+ }
221
+ .mfui-tooltip[data-popper-placement='right'] .mfui-tooltip__arrow-container,
222
+ .mfui-tooltip[data-popper-placement='right-start'] .mfui-tooltip__arrow-container,
223
+ .mfui-tooltip[data-popper-placement='right-end'] .mfui-tooltip__arrow-container {
224
+ left: -12px;
225
+ width: 12px;
226
+ height: 100%;
227
+ }
228
+ .mfui-tooltip[data-popper-placement='right'] .mfui-tooltip__arrow-wrap,
229
+ .mfui-tooltip[data-popper-placement='right-start'] .mfui-tooltip__arrow-wrap,
230
+ .mfui-tooltip[data-popper-placement='right-end'] .mfui-tooltip__arrow-wrap {
231
+ left: -15px;
232
+ }
233
+ .mfui-tooltip[data-popper-placement='right'] .mfui-tooltip__arrow,
234
+ .mfui-tooltip[data-popper-placement='right-start'] .mfui-tooltip__arrow,
235
+ .mfui-tooltip[data-popper-placement='right-end'] .mfui-tooltip__arrow,
236
+ .mfui-tooltip[data-popper-placement='right'] .mfui-tooltip__arrow-shadow,
237
+ .mfui-tooltip[data-popper-placement='right-start'] .mfui-tooltip__arrow-shadow,
238
+ .mfui-tooltip[data-popper-placement='right-end'] .mfui-tooltip__arrow-shadow {
239
+ -webkit-transform: rotate(-90deg);
240
+ transform: rotate(-90deg);
241
+ }
242
+ .mfui-tooltip[data-popper-placement='left'] .mfui-tooltip__arrow-container,
243
+ .mfui-tooltip[data-popper-placement='left-start'] .mfui-tooltip__arrow-container,
244
+ .mfui-tooltip[data-popper-placement='left-end'] .mfui-tooltip__arrow-container {
245
+ right: -12px;
246
+ width: 12px;
247
+ height: 100%;
248
+ }
249
+ .mfui-tooltip[data-popper-placement='left'] .mfui-tooltip__arrow-wrap,
250
+ .mfui-tooltip[data-popper-placement='left-start'] .mfui-tooltip__arrow-wrap,
251
+ .mfui-tooltip[data-popper-placement='left-end'] .mfui-tooltip__arrow-wrap {
252
+ right: -15px;
253
+ }
254
+ .mfui-tooltip[data-popper-placement='left'] .mfui-tooltip__arrow,
255
+ .mfui-tooltip[data-popper-placement='left-start'] .mfui-tooltip__arrow,
256
+ .mfui-tooltip[data-popper-placement='left-end'] .mfui-tooltip__arrow,
257
+ .mfui-tooltip[data-popper-placement='left'] .mfui-tooltip__arrow-shadow,
258
+ .mfui-tooltip[data-popper-placement='left-start'] .mfui-tooltip__arrow-shadow,
259
+ .mfui-tooltip[data-popper-placement='left-end'] .mfui-tooltip__arrow-shadow {
260
+ -webkit-transform: rotate(90deg);
261
+ transform: rotate(90deg);
262
+ }
263
+ .mfui-tooltip[data-popper-placement='top'] .mfui-tooltip__arrow-container,
264
+ .mfui-tooltip[data-popper-placement='top-start'] .mfui-tooltip__arrow-container,
265
+ .mfui-tooltip[data-popper-placement='top-end'] .mfui-tooltip__arrow-container {
266
+ bottom: -12px;
267
+ width: 100%;
268
+ height: 12px;
269
+ }
270
+ .mfui-tooltip[data-popper-placement='top'] .mfui-tooltip__arrow-wrap,
271
+ .mfui-tooltip[data-popper-placement='top-start'] .mfui-tooltip__arrow-wrap,
272
+ .mfui-tooltip[data-popper-placement='top-end'] .mfui-tooltip__arrow-wrap {
273
+ top: 0;
274
+ }
275
+ .mfui-tooltip[data-popper-placement='top'] .mfui-tooltip__arrow,
276
+ .mfui-tooltip[data-popper-placement='top-start'] .mfui-tooltip__arrow,
277
+ .mfui-tooltip[data-popper-placement='top-end'] .mfui-tooltip__arrow,
278
+ .mfui-tooltip[data-popper-placement='top'] .mfui-tooltip__arrow-shadow,
279
+ .mfui-tooltip[data-popper-placement='top-start'] .mfui-tooltip__arrow-shadow,
280
+ .mfui-tooltip[data-popper-placement='top-end'] .mfui-tooltip__arrow-shadow {
281
+ -webkit-transform: rotate(180deg);
282
+ transform: rotate(180deg);
283
+ }
284
+ .mfui-tooltip[data-popper-placement='bottom'] .mfui-tooltip__arrow-container,
285
+ .mfui-tooltip[data-popper-placement='bottom-start'] .mfui-tooltip__arrow-container,
286
+ .mfui-tooltip[data-popper-placement='bottom-end'] .mfui-tooltip__arrow-container {
287
+ top: -12px;
288
+ width: 100%;
289
+ height: 12px;
119
290
  }
120
- .mfui-tooltip[data-popper-escaped='true'] {
291
+ .mfui-tooltip[data-popper-escaped='true'].mfui-tooltip_has-escape {
121
292
  visibility: hidden;
122
293
  pointer-events: none;
123
294
  }