@semcore/tooltip
Advanced tools
Comparing version 3.0.0 to 3.0.5
@@ -5,2 +5,35 @@ # Changelog | ||
## [3.0.5] - 2019-09-05 | ||
### Changed | ||
- Заменены устаревшие типографические переменные | ||
## [3.0.4] - 2019-07-31 | ||
### Fixed | ||
- Добавлены ts типы `PopperTrigger` для `TooltipBase` | ||
- Исправлена сборка для рендера css на сервере | ||
## [3.0.3] - 2019-06-25 | ||
### Fixed | ||
- Поведение на `onOutsideClick` теперь можно отключить, сделав `return false` | ||
## [3.0.2] - 2019-06-25 | ||
### Fixed | ||
- Исправлено поведение `onOutsideClick` | ||
### Changed | ||
- Обновлена версия `@semcore/popper` | ||
## [3.0.1] - 2019-06-13 | ||
- Исправлены типы TS для `title`,так как `title` является стандартным свойством dom | ||
## [3.0.0] - 2019-06-06 | ||
@@ -7,0 +40,0 @@ |
@@ -7,4 +7,4 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty'; | ||
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf'; | ||
import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized'; | ||
import _inherits from '@babel/runtime/helpers/inherits'; | ||
import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized'; | ||
import React, { PureComponent } from 'react'; | ||
@@ -14,7 +14,7 @@ import cn from 'classnames'; | ||
import { Box } from '@semcore/flex-box'; | ||
import { getState, internalSetState } from '@semcore/utils/lib/uncontroll'; | ||
import { internalSetState, getState } from '@semcore/utils/lib/uncontroll'; | ||
import fire from '@semcore/utils/lib/fire'; | ||
import _slicedToArray from '@babel/runtime/helpers/slicedToArray'; | ||
import Close from '@semcore/icon/lib/Close/xs'; | ||
import assignProps from '@semcore/utils/lib/assignProps'; | ||
import assignProps, { callAllEventHandlers } from '@semcore/utils/lib/assignProps'; | ||
import If from '@semcore/utils/lib/if'; | ||
@@ -24,22 +24,22 @@ | ||
"block": { | ||
"block": "_tooltip_hiqfy_3", | ||
"block": "_tooltip_f0fz5_3", | ||
"theme": { | ||
"default": "_tooltip--theme_default_hiqfy_15", | ||
"invert": "_tooltip--theme_invert_hiqfy_21", | ||
"warning": "_tooltip--theme_warning_hiqfy_27" | ||
"default": "_tooltip--theme_default_f0fz5_15", | ||
"invert": "_tooltip--theme_invert_f0fz5_21", | ||
"warning": "_tooltip--theme_warning_f0fz5_27" | ||
}, | ||
"out-of-boundaries": { | ||
"block": "_tooltip--out-of-boundaries_hiqfy_35" | ||
"block": "_tooltip--out-of-boundaries_f0fz5_35" | ||
} | ||
}, | ||
"close": { | ||
"block": "_tooltip__close_hiqfy_39" | ||
"block": "_tooltip__close_f0fz5_39" | ||
}, | ||
"arrow": { | ||
"block": "_tooltip__arrow_hiqfy_52", | ||
"block": "_tooltip__arrow_f0fz5_52", | ||
"placement": { | ||
"top": "_tooltip__arrow--placement_top_hiqfy_88", | ||
"left": "_tooltip__arrow--placement_left_hiqfy_108", | ||
"bottom": "_tooltip__arrow--placement_bottom_hiqfy_129", | ||
"right": "_tooltip__arrow--placement_right_hiqfy_149" | ||
"top": "_tooltip__arrow--placement_top_f0fz5_88", | ||
"left": "_tooltip__arrow--placement_left_f0fz5_108", | ||
"bottom": "_tooltip__arrow--placement_bottom_f0fz5_129", | ||
"right": "_tooltip__arrow--placement_right_f0fz5_149" | ||
} | ||
@@ -49,4 +49,4 @@ } | ||
(function cssModulesFnInject() { | ||
if (typeof window !== 'undefined') { | ||
(function cssModulesFnInject(_path) { | ||
if (_path && typeof window !== 'undefined') { | ||
var head = window.document.head; | ||
@@ -56,7 +56,7 @@ var prevStyle = head.querySelector('._css-style'); | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._tooltip_hiqfy_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_hiqfy_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_hiqfy_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_hiqfy_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_hiqfy_35{display:none}._tooltip__close_hiqfy_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_hiqfy_39:hover{color:#ababab}._tooltip__arrow_hiqfy_52,._tooltip__arrow_hiqfy_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_hiqfy_52:before{content:\"\";z-index:-1}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52{border-color:#fff}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52:before{border-color:#bdc4c6}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52{border-color:#000}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52:before{border:8px solid #fff}._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52:before{border-color:#ff7f00}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_hiqfy_88:before{top:-5px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_hiqfy_108:before{top:-6px;left:-5px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before{top:-8px;left:-3px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-1px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_hiqfy_149:before{top:-6px;left:-1px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before{top:-8px;left:-4px}"); | ||
prevStyle.insertAdjacentText("beforeend", "._tooltip_f0fz5_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_f0fz5_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_f0fz5_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_f0fz5_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_f0fz5_35{display:none}._tooltip__close_f0fz5_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_f0fz5_39:hover{color:#ababab}._tooltip__arrow_f0fz5_52,._tooltip__arrow_f0fz5_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_f0fz5_52:before{content:\"\";z-index:-1}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52{border-color:#fff}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52:before{border-color:#bdc4c6}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52{border-color:#000}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52:before{border:8px solid #fff}._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52:before{border-color:#ff7f00}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_f0fz5_88:before{top:-5px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_f0fz5_108:before{top:-6px;left:-5px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before{top:-8px;left:-3px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-1px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_f0fz5_149:before{top:-6px;left:-1px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before{top:-8px;left:-4px}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._tooltip_hiqfy_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_hiqfy_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_hiqfy_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_hiqfy_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_hiqfy_35{display:none}._tooltip__close_hiqfy_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_hiqfy_39:hover{color:#ababab}._tooltip__arrow_hiqfy_52,._tooltip__arrow_hiqfy_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_hiqfy_52:before{content:\"\";z-index:-1}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52{border-color:#fff}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52:before{border-color:#bdc4c6}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52{border-color:#000}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52:before{border:8px solid #fff}._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52:before{border-color:#ff7f00}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_hiqfy_88:before{top:-5px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_hiqfy_108:before{top:-6px;left:-5px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before{top:-8px;left:-3px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-1px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_hiqfy_149:before{top:-6px;left:-1px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before{top:-8px;left:-4px}"; | ||
style.innerHTML = "._tooltip_f0fz5_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_f0fz5_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_f0fz5_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_f0fz5_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_f0fz5_35{display:none}._tooltip__close_f0fz5_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_f0fz5_39:hover{color:#ababab}._tooltip__arrow_f0fz5_52,._tooltip__arrow_f0fz5_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_f0fz5_52:before{content:\"\";z-index:-1}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52{border-color:#fff}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52:before{border-color:#bdc4c6}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52{border-color:#000}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52:before{border:8px solid #fff}._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52:before{border-color:#ff7f00}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_f0fz5_88:before{top:-5px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_f0fz5_108:before{top:-6px;left:-5px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before{top:-8px;left:-3px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-1px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_f0fz5_149:before{top:-6px;left:-1px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before{top:-8px;left:-4px}"; | ||
head.appendChild(style); | ||
@@ -110,6 +110,6 @@ } | ||
_this.handleVisibleChange = function (visible) { | ||
internalSetState(_assertThisInitialized(_assertThisInitialized(_this)), { | ||
internalSetState(_assertThisInitialized(_this), { | ||
visible: visible | ||
}, function () { | ||
fire(_assertThisInitialized(_assertThisInitialized(_this)), 'onVisibleChange', visible); | ||
fire(_assertThisInitialized(_this), 'onVisibleChange', visible); | ||
}); | ||
@@ -176,22 +176,22 @@ }; | ||
"block": { | ||
"block": "_tooltip_hiqfy_3", | ||
"block": "_tooltip_f0fz5_3", | ||
"theme": { | ||
"default": "_tooltip--theme_default_hiqfy_15", | ||
"invert": "_tooltip--theme_invert_hiqfy_21", | ||
"warning": "_tooltip--theme_warning_hiqfy_27" | ||
"default": "_tooltip--theme_default_f0fz5_15", | ||
"invert": "_tooltip--theme_invert_f0fz5_21", | ||
"warning": "_tooltip--theme_warning_f0fz5_27" | ||
}, | ||
"out-of-boundaries": { | ||
"block": "_tooltip--out-of-boundaries_hiqfy_35" | ||
"block": "_tooltip--out-of-boundaries_f0fz5_35" | ||
} | ||
}, | ||
"close": { | ||
"block": "_tooltip__close_hiqfy_39" | ||
"block": "_tooltip__close_f0fz5_39" | ||
}, | ||
"arrow": { | ||
"block": "_tooltip__arrow_hiqfy_52", | ||
"block": "_tooltip__arrow_f0fz5_52", | ||
"placement": { | ||
"top": "_tooltip__arrow--placement_top_hiqfy_88", | ||
"left": "_tooltip__arrow--placement_left_hiqfy_108", | ||
"bottom": "_tooltip__arrow--placement_bottom_hiqfy_129", | ||
"right": "_tooltip__arrow--placement_right_hiqfy_149" | ||
"top": "_tooltip__arrow--placement_top_f0fz5_88", | ||
"left": "_tooltip__arrow--placement_left_f0fz5_108", | ||
"bottom": "_tooltip__arrow--placement_bottom_f0fz5_129", | ||
"right": "_tooltip__arrow--placement_right_f0fz5_149" | ||
} | ||
@@ -201,4 +201,4 @@ } | ||
(function cssModulesFnInject() { | ||
if (typeof window !== 'undefined') { | ||
(function cssModulesFnInject(_path) { | ||
if (_path && typeof window !== 'undefined') { | ||
var head = window.document.head; | ||
@@ -208,7 +208,7 @@ var prevStyle = head.querySelector('._css-style'); | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._tooltip_hiqfy_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_hiqfy_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_hiqfy_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_hiqfy_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_hiqfy_35{display:none}._tooltip__close_hiqfy_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_hiqfy_39:hover{color:#ababab}._tooltip__arrow_hiqfy_52,._tooltip__arrow_hiqfy_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_hiqfy_52:before{content:\"\";z-index:-1}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52{border-color:#fff}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52:before{border-color:#bdc4c6}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52{border-color:#000}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52:before{border:8px solid #fff}._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52:before{border-color:#ff7f00}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_hiqfy_88:before{top:-5px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_hiqfy_108:before{top:-6px;left:-5px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before{top:-8px;left:-3px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-1px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_hiqfy_149:before{top:-6px;left:-1px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before{top:-8px;left:-4px}"); | ||
prevStyle.insertAdjacentText("beforeend", "._tooltip_f0fz5_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_f0fz5_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_f0fz5_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_f0fz5_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_f0fz5_35{display:none}._tooltip__close_f0fz5_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_f0fz5_39:hover{color:#ababab}._tooltip__arrow_f0fz5_52,._tooltip__arrow_f0fz5_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_f0fz5_52:before{content:\"\";z-index:-1}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52{border-color:#fff}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52:before{border-color:#bdc4c6}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52{border-color:#000}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52:before{border:8px solid #fff}._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52:before{border-color:#ff7f00}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_f0fz5_88:before{top:-5px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_f0fz5_108:before{top:-6px;left:-5px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before{top:-8px;left:-3px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-1px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_f0fz5_149:before{top:-6px;left:-1px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before{top:-8px;left:-4px}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._tooltip_hiqfy_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_hiqfy_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_hiqfy_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_hiqfy_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_hiqfy_35{display:none}._tooltip__close_hiqfy_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_hiqfy_39:hover{color:#ababab}._tooltip__arrow_hiqfy_52,._tooltip__arrow_hiqfy_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_hiqfy_52:before{content:\"\";z-index:-1}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52{border-color:#fff}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52:before{border-color:#bdc4c6}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52{border-color:#000}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52:before{border:8px solid #fff}._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52:before{border-color:#ff7f00}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_hiqfy_88:before{top:-5px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_hiqfy_108:before{top:-6px;left:-5px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before{top:-8px;left:-3px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-1px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_hiqfy_149:before{top:-6px;left:-1px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before{top:-8px;left:-4px}"; | ||
style.innerHTML = "._tooltip_f0fz5_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_f0fz5_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_f0fz5_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_f0fz5_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_f0fz5_35{display:none}._tooltip__close_f0fz5_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_f0fz5_39:hover{color:#ababab}._tooltip__arrow_f0fz5_52,._tooltip__arrow_f0fz5_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_f0fz5_52:before{content:\"\";z-index:-1}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52{border-color:#fff}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52:before{border-color:#bdc4c6}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52{border-color:#000}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52:before{border:8px solid #fff}._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52:before{border-color:#ff7f00}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_f0fz5_88:before{top:-5px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_f0fz5_108:before{top:-6px;left:-5px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before{top:-8px;left:-3px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-1px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_f0fz5_149:before{top:-6px;left:-1px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before{top:-8px;left:-4px}"; | ||
head.appendChild(style); | ||
@@ -233,3 +233,3 @@ } | ||
function close$1() { | ||
function close() { | ||
return data$1['close']['block']; | ||
@@ -315,3 +315,3 @@ } | ||
arrow: cn(arrow$1(), arrow$1.placement(basePlacement)), | ||
close: cn(close$1()) | ||
close: cn(close()) | ||
}; | ||
@@ -358,6 +358,6 @@ return React.createElement(Box, Object.assign({}, assignProps(other, getPopperProps()), { | ||
_this.handleVisibleChange = function (visible) { | ||
internalSetState(_assertThisInitialized(_assertThisInitialized(_this)), { | ||
internalSetState(_assertThisInitialized(_this), { | ||
visible: visible | ||
}, function () { | ||
fire(_assertThisInitialized(_assertThisInitialized(_this)), 'onVisibleChange', visible); | ||
fire(_assertThisInitialized(_this), 'onVisibleChange', visible); | ||
}); | ||
@@ -374,2 +374,4 @@ }; | ||
var onOutsideClick = this.props.onOutsideClick; | ||
var _getState = getState(this), | ||
@@ -383,5 +385,5 @@ visible = _getState.visible; | ||
onVisibleChange: this.handleVisibleChange, | ||
onOutsideClick: function onOutsideClick() { | ||
onOutsideClick: callAllEventHandlers(onOutsideClick, function () { | ||
return _this2.handleVisibleChange(false); | ||
} | ||
}) | ||
})); | ||
@@ -388,0 +390,0 @@ } |
@@ -13,4 +13,4 @@ 'use strict'; | ||
var _getPrototypeOf = _interopDefault(require('@babel/runtime/helpers/getPrototypeOf')); | ||
var _assertThisInitialized = _interopDefault(require('@babel/runtime/helpers/assertThisInitialized')); | ||
var _inherits = _interopDefault(require('@babel/runtime/helpers/inherits')); | ||
var _assertThisInitialized = _interopDefault(require('@babel/runtime/helpers/assertThisInitialized')); | ||
var React = require('react'); | ||
@@ -25,3 +25,4 @@ var React__default = _interopDefault(React); | ||
var Close = _interopDefault(require('@semcore/icon/lib/Close/xs')); | ||
var assignProps = _interopDefault(require('@semcore/utils/lib/assignProps')); | ||
var assignProps = require('@semcore/utils/lib/assignProps'); | ||
var assignProps__default = _interopDefault(assignProps); | ||
var If = _interopDefault(require('@semcore/utils/lib/if')); | ||
@@ -31,22 +32,22 @@ | ||
"block": { | ||
"block": "_tooltip_hiqfy_3", | ||
"block": "_tooltip_f0fz5_3", | ||
"theme": { | ||
"default": "_tooltip--theme_default_hiqfy_15", | ||
"invert": "_tooltip--theme_invert_hiqfy_21", | ||
"warning": "_tooltip--theme_warning_hiqfy_27" | ||
"default": "_tooltip--theme_default_f0fz5_15", | ||
"invert": "_tooltip--theme_invert_f0fz5_21", | ||
"warning": "_tooltip--theme_warning_f0fz5_27" | ||
}, | ||
"out-of-boundaries": { | ||
"block": "_tooltip--out-of-boundaries_hiqfy_35" | ||
"block": "_tooltip--out-of-boundaries_f0fz5_35" | ||
} | ||
}, | ||
"close": { | ||
"block": "_tooltip__close_hiqfy_39" | ||
"block": "_tooltip__close_f0fz5_39" | ||
}, | ||
"arrow": { | ||
"block": "_tooltip__arrow_hiqfy_52", | ||
"block": "_tooltip__arrow_f0fz5_52", | ||
"placement": { | ||
"top": "_tooltip__arrow--placement_top_hiqfy_88", | ||
"left": "_tooltip__arrow--placement_left_hiqfy_108", | ||
"bottom": "_tooltip__arrow--placement_bottom_hiqfy_129", | ||
"right": "_tooltip__arrow--placement_right_hiqfy_149" | ||
"top": "_tooltip__arrow--placement_top_f0fz5_88", | ||
"left": "_tooltip__arrow--placement_left_f0fz5_108", | ||
"bottom": "_tooltip__arrow--placement_bottom_f0fz5_129", | ||
"right": "_tooltip__arrow--placement_right_f0fz5_149" | ||
} | ||
@@ -56,4 +57,4 @@ } | ||
(function cssModulesFnInject() { | ||
if (typeof window !== 'undefined') { | ||
(function cssModulesFnInject(_path) { | ||
if (_path && typeof window !== 'undefined') { | ||
var head = window.document.head; | ||
@@ -63,7 +64,7 @@ var prevStyle = head.querySelector('._css-style'); | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._tooltip_hiqfy_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_hiqfy_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_hiqfy_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_hiqfy_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_hiqfy_35{display:none}._tooltip__close_hiqfy_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_hiqfy_39:hover{color:#ababab}._tooltip__arrow_hiqfy_52,._tooltip__arrow_hiqfy_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_hiqfy_52:before{content:\"\";z-index:-1}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52{border-color:#fff}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52:before{border-color:#bdc4c6}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52{border-color:#000}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52:before{border:8px solid #fff}._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52:before{border-color:#ff7f00}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_hiqfy_88:before{top:-5px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_hiqfy_108:before{top:-6px;left:-5px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before{top:-8px;left:-3px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-1px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_hiqfy_149:before{top:-6px;left:-1px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before{top:-8px;left:-4px}"); | ||
prevStyle.insertAdjacentText("beforeend", "._tooltip_f0fz5_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_f0fz5_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_f0fz5_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_f0fz5_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_f0fz5_35{display:none}._tooltip__close_f0fz5_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_f0fz5_39:hover{color:#ababab}._tooltip__arrow_f0fz5_52,._tooltip__arrow_f0fz5_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_f0fz5_52:before{content:\"\";z-index:-1}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52{border-color:#fff}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52:before{border-color:#bdc4c6}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52{border-color:#000}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52:before{border:8px solid #fff}._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52:before{border-color:#ff7f00}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_f0fz5_88:before{top:-5px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_f0fz5_108:before{top:-6px;left:-5px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before{top:-8px;left:-3px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-1px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_f0fz5_149:before{top:-6px;left:-1px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before{top:-8px;left:-4px}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._tooltip_hiqfy_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_hiqfy_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_hiqfy_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_hiqfy_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_hiqfy_35{display:none}._tooltip__close_hiqfy_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_hiqfy_39:hover{color:#ababab}._tooltip__arrow_hiqfy_52,._tooltip__arrow_hiqfy_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_hiqfy_52:before{content:\"\";z-index:-1}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52{border-color:#fff}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52:before{border-color:#bdc4c6}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52{border-color:#000}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52:before{border:8px solid #fff}._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52:before{border-color:#ff7f00}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_hiqfy_88:before{top:-5px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_hiqfy_108:before{top:-6px;left:-5px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before{top:-8px;left:-3px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-1px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_hiqfy_149:before{top:-6px;left:-1px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before{top:-8px;left:-4px}"; | ||
style.innerHTML = "._tooltip_f0fz5_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_f0fz5_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_f0fz5_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_f0fz5_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_f0fz5_35{display:none}._tooltip__close_f0fz5_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_f0fz5_39:hover{color:#ababab}._tooltip__arrow_f0fz5_52,._tooltip__arrow_f0fz5_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_f0fz5_52:before{content:\"\";z-index:-1}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52{border-color:#fff}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52:before{border-color:#bdc4c6}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52{border-color:#000}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52:before{border:8px solid #fff}._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52:before{border-color:#ff7f00}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_f0fz5_88:before{top:-5px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_f0fz5_108:before{top:-6px;left:-5px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before{top:-8px;left:-3px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-1px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_f0fz5_149:before{top:-6px;left:-1px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before{top:-8px;left:-4px}"; | ||
head.appendChild(style); | ||
@@ -117,6 +118,6 @@ } | ||
_this.handleVisibleChange = function (visible) { | ||
uncontroll.internalSetState(_assertThisInitialized(_assertThisInitialized(_this)), { | ||
uncontroll.internalSetState(_assertThisInitialized(_this), { | ||
visible: visible | ||
}, function () { | ||
fire(_assertThisInitialized(_assertThisInitialized(_this)), 'onVisibleChange', visible); | ||
fire(_assertThisInitialized(_this), 'onVisibleChange', visible); | ||
}); | ||
@@ -183,22 +184,22 @@ }; | ||
"block": { | ||
"block": "_tooltip_hiqfy_3", | ||
"block": "_tooltip_f0fz5_3", | ||
"theme": { | ||
"default": "_tooltip--theme_default_hiqfy_15", | ||
"invert": "_tooltip--theme_invert_hiqfy_21", | ||
"warning": "_tooltip--theme_warning_hiqfy_27" | ||
"default": "_tooltip--theme_default_f0fz5_15", | ||
"invert": "_tooltip--theme_invert_f0fz5_21", | ||
"warning": "_tooltip--theme_warning_f0fz5_27" | ||
}, | ||
"out-of-boundaries": { | ||
"block": "_tooltip--out-of-boundaries_hiqfy_35" | ||
"block": "_tooltip--out-of-boundaries_f0fz5_35" | ||
} | ||
}, | ||
"close": { | ||
"block": "_tooltip__close_hiqfy_39" | ||
"block": "_tooltip__close_f0fz5_39" | ||
}, | ||
"arrow": { | ||
"block": "_tooltip__arrow_hiqfy_52", | ||
"block": "_tooltip__arrow_f0fz5_52", | ||
"placement": { | ||
"top": "_tooltip__arrow--placement_top_hiqfy_88", | ||
"left": "_tooltip__arrow--placement_left_hiqfy_108", | ||
"bottom": "_tooltip__arrow--placement_bottom_hiqfy_129", | ||
"right": "_tooltip__arrow--placement_right_hiqfy_149" | ||
"top": "_tooltip__arrow--placement_top_f0fz5_88", | ||
"left": "_tooltip__arrow--placement_left_f0fz5_108", | ||
"bottom": "_tooltip__arrow--placement_bottom_f0fz5_129", | ||
"right": "_tooltip__arrow--placement_right_f0fz5_149" | ||
} | ||
@@ -208,4 +209,4 @@ } | ||
(function cssModulesFnInject() { | ||
if (typeof window !== 'undefined') { | ||
(function cssModulesFnInject(_path) { | ||
if (_path && typeof window !== 'undefined') { | ||
var head = window.document.head; | ||
@@ -215,7 +216,7 @@ var prevStyle = head.querySelector('._css-style'); | ||
if (prevStyle && prevStyle.insertAdjacentText) { | ||
prevStyle.insertAdjacentText("beforeend", "._tooltip_hiqfy_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_hiqfy_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_hiqfy_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_hiqfy_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_hiqfy_35{display:none}._tooltip__close_hiqfy_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_hiqfy_39:hover{color:#ababab}._tooltip__arrow_hiqfy_52,._tooltip__arrow_hiqfy_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_hiqfy_52:before{content:\"\";z-index:-1}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52{border-color:#fff}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52:before{border-color:#bdc4c6}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52{border-color:#000}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52:before{border:8px solid #fff}._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52:before{border-color:#ff7f00}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_hiqfy_88:before{top:-5px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_hiqfy_108:before{top:-6px;left:-5px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before{top:-8px;left:-3px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-1px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_hiqfy_149:before{top:-6px;left:-1px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before{top:-8px;left:-4px}"); | ||
prevStyle.insertAdjacentText("beforeend", "._tooltip_f0fz5_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_f0fz5_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_f0fz5_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_f0fz5_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_f0fz5_35{display:none}._tooltip__close_f0fz5_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_f0fz5_39:hover{color:#ababab}._tooltip__arrow_f0fz5_52,._tooltip__arrow_f0fz5_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_f0fz5_52:before{content:\"\";z-index:-1}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52{border-color:#fff}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52:before{border-color:#bdc4c6}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52{border-color:#000}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52:before{border:8px solid #fff}._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52:before{border-color:#ff7f00}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_f0fz5_88:before{top:-5px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_f0fz5_108:before{top:-6px;left:-5px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before{top:-8px;left:-3px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-1px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_f0fz5_149:before{top:-6px;left:-1px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before{top:-8px;left:-4px}"); | ||
} else { | ||
var style = window.document.createElement("style"); | ||
style.classList.add('_css-style'); | ||
style.innerHTML = "._tooltip_hiqfy_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_hiqfy_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_hiqfy_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_hiqfy_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_hiqfy_35{display:none}._tooltip__close_hiqfy_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_hiqfy_39:hover{color:#ababab}._tooltip__arrow_hiqfy_52,._tooltip__arrow_hiqfy_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_hiqfy_52:before{content:\"\";z-index:-1}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52{border-color:#fff}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow_hiqfy_52:before{border-color:#bdc4c6}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52{border-color:#000}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow_hiqfy_52:before{border:8px solid #fff}._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow_hiqfy_52:before{border-color:#ff7f00}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_top_hiqfy_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_hiqfy_88:before{top:-5px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_top_hiqfy_88:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_left_hiqfy_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_hiqfy_108:before{top:-6px;left:-5px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_left_hiqfy_108:before{top:-8px;left:-3px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_bottom_hiqfy_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-1px;left:-6px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_bottom_hiqfy_129:before{top:-4px;left:-8px}._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_default_hiqfy_15 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149,._tooltip--theme_warning_hiqfy_27 ._tooltip__arrow--placement_right_hiqfy_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_hiqfy_149:before{top:-6px;left:-1px}._tooltip--theme_invert_hiqfy_21 ._tooltip__arrow--placement_right_hiqfy_149:before{top:-8px;left:-4px}"; | ||
style.innerHTML = "._tooltip_f0fz5_3{position:relative;padding:16px;color:#333;border-radius:3px;box-sizing:border-box;font-size:12px;line-height:1.5;word-wrap:break-word;max-width:250px}._tooltip--theme_default_f0fz5_15{background:#fff;border:1px solid #bdc4c6;box-shadow:0 2px 5px 0 rgba(0,0,0,.25),0 -2px 5px -2px rgba(0,0,0,.25)}._tooltip--theme_invert_f0fz5_21{color:#fff;background:#000;border:3px solid #fff}._tooltip--theme_warning_f0fz5_27{color:#fff;background:#ff7f00;border:1px solid #ff7f00;box-shadow:0 2px 5px 0 rgba(255,126,0,.25),0 -2px 5px -2px rgba(255,126,0,.25)}._tooltip--out-of-boundaries_f0fz5_35{display:none}._tooltip__close_f0fz5_39{position:absolute;right:8px;top:8px;cursor:pointer;color:#ccc;font-size:0}._tooltip__close_f0fz5_39:hover{color:#ababab}._tooltip__arrow_f0fz5_52,._tooltip__arrow_f0fz5_52:before{width:0;height:0;position:absolute;border:6px solid}._tooltip__arrow_f0fz5_52:before{content:\"\";z-index:-1}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52{border-color:#fff}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow_f0fz5_52:before{border-color:#bdc4c6}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52{border-color:#000}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow_f0fz5_52:before{border:8px solid #fff}._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow_f0fz5_52:before{border-color:#ff7f00}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_top_f0fz5_88:before{border-bottom:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_top_f0fz5_88:before{top:-5px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_top_f0fz5_88:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_left_f0fz5_108:before{border-right:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_left_f0fz5_108:before{top:-6px;left:-5px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_left_f0fz5_108:before{top:-8px;left:-3px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_bottom_f0fz5_129:before{border-top:0 transparent;border-right-color:transparent;border-left-color:transparent}._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-1px;left:-6px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_bottom_f0fz5_129:before{top:-4px;left:-8px}._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_default_f0fz5_15 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149,._tooltip--theme_warning_f0fz5_27 ._tooltip__arrow--placement_right_f0fz5_149:before{border-left:0 transparent;border-top-color:transparent;border-bottom-color:transparent}._tooltip__arrow--placement_right_f0fz5_149:before{top:-6px;left:-1px}._tooltip--theme_invert_f0fz5_21 ._tooltip__arrow--placement_right_f0fz5_149:before{top:-8px;left:-4px}"; | ||
head.appendChild(style); | ||
@@ -240,3 +241,3 @@ } | ||
function close$1() { | ||
function close() { | ||
return data$1['close']['block']; | ||
@@ -322,5 +323,5 @@ } | ||
arrow: cn(arrow$1(), arrow$1.placement(basePlacement)), | ||
close: cn(close$1()) | ||
close: cn(close()) | ||
}; | ||
return React__default.createElement(flexBox.Box, Object.assign({}, assignProps(other, getPopperProps()), { | ||
return React__default.createElement(flexBox.Box, Object.assign({}, assignProps__default(other, getPopperProps()), { | ||
className: styles.block | ||
@@ -365,6 +366,6 @@ }), React__default.createElement(If, { | ||
_this.handleVisibleChange = function (visible) { | ||
uncontroll.internalSetState(_assertThisInitialized(_assertThisInitialized(_this)), { | ||
uncontroll.internalSetState(_assertThisInitialized(_this), { | ||
visible: visible | ||
}, function () { | ||
fire(_assertThisInitialized(_assertThisInitialized(_this)), 'onVisibleChange', visible); | ||
fire(_assertThisInitialized(_this), 'onVisibleChange', visible); | ||
}); | ||
@@ -381,2 +382,4 @@ }; | ||
var onOutsideClick = this.props.onOutsideClick; | ||
var _getState = uncontroll.getState(this), | ||
@@ -390,5 +393,5 @@ visible = _getState.visible; | ||
onVisibleChange: this.handleVisibleChange, | ||
onOutsideClick: function onOutsideClick() { | ||
onOutsideClick: assignProps.callAllEventHandlers(onOutsideClick, function () { | ||
return _this2.handleVisibleChange(false); | ||
} | ||
}) | ||
})); | ||
@@ -417,4 +420,4 @@ } | ||
exports.Tooltip = Tooltip; | ||
exports.default = TooltipBase; | ||
exports.Tooltip = Tooltip; | ||
//# sourceMappingURL=index.js.map |
@@ -37,3 +37,14 @@ import React, { PureComponent } from 'react'; | ||
static Popper: typeof TooltipPopper; | ||
static defaultProps: IPopperProps; | ||
static defaultProps: { | ||
displayTimeout: { | ||
show: number; | ||
hide: number; | ||
}; | ||
displayEvents: { | ||
show: string[]; | ||
hide: string[]; | ||
}; | ||
placement: string; | ||
offset: number; | ||
}; | ||
state: { | ||
@@ -40,0 +51,0 @@ visible: boolean; |
import React, { PureComponent } from 'react'; | ||
import { IPopperContext, IPopperProps, IInnerTriggerProps } from '@semcore/popper'; | ||
import { IInnerTriggerProps, IPopperContext, IPopperProps, IPopperTriggerProps } from '@semcore/popper'; | ||
declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | ||
export declare type ITooltipBaseTitleAsFn = (props: IPopperContext) => React.ReactNode; | ||
export declare type ITooltipBaseChildrenAsFn = (props: IInnerTriggerProps) => React.ReactNode; | ||
export interface ITooltipBaseProps extends IPopperProps { | ||
export interface ITooltipBaseProps extends IPopperProps, IPopperTriggerProps { | ||
/** | ||
@@ -28,3 +29,3 @@ * Тема тултипа | ||
} | ||
declare class TooltipBase extends PureComponent<ITooltipBaseProps & React.HTMLAttributes<HTMLDivElement>, ITooltipBaseState> { | ||
declare class TooltipBase extends PureComponent<ITooltipBaseProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>, ITooltipBaseState> { | ||
static displayName: string; | ||
@@ -31,0 +32,0 @@ static defaultProps: { |
{ | ||
"name": "@semcore/tooltip", | ||
"description": "SEMRush Tooltip Component", | ||
"version": "3.0.0", | ||
"version": "3.0.5", | ||
"main": "lib/index.js", | ||
@@ -15,8 +15,8 @@ "module": "lib/index.es.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.4", | ||
"@babel/runtime": "^7.5", | ||
"@semcore/flex-box": "^3.1", | ||
"@semcore/icon": "^1.3", | ||
"@semcore/popper": "^3.2", | ||
"@semcore/utils": "^2.2", | ||
"@types/react": "^16.8", | ||
"@semcore/icon": "^1.4", | ||
"@semcore/popper": "^3.3", | ||
"@semcore/utils": "^3.0", | ||
"@types/react": "^16.9", | ||
"classnames": "^2.2" | ||
@@ -31,3 +31,3 @@ }, | ||
"react": "^16.4", | ||
"rollup-config-react": "*" | ||
"rollup-config-ts": "*" | ||
}, | ||
@@ -34,0 +34,0 @@ "jest": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
109804
1301
- Removed@semcore/utils@2.6.0(transitive)
Updated@babel/runtime@^7.5
Updated@semcore/icon@^1.4
Updated@semcore/popper@^3.3
Updated@semcore/utils@^3.0
Updated@types/react@^16.9