@steroidsjs/core 3.0.0-beta.87 → 3.0.0-beta.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "3.0.0-beta.87",
3
+ "version": "3.0.0-beta.89",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -79,6 +79,10 @@ export interface ITooltipProps {
79
79
  * Рассчет позиции подсказки
80
80
  */
81
81
  calculatePosition?: (tooltipDimensions: Record<string, any>, arrowDimensions: Record<string, any>) => void;
82
+ /**
83
+ * Дополнительный CSS-класс для элемента отображения
84
+ */
85
+ className?: CssClassName;
82
86
  [key: string]: any;
83
87
  }
84
88
  export interface ITooltipViewProps extends ITooltipProps {
@@ -86,6 +90,7 @@ export interface ITooltipViewProps extends ITooltipProps {
86
90
  content: string | any;
87
91
  position: PositionType;
88
92
  style: ITooltipStylePosition;
93
+ className?: CssClassName;
89
94
  }
90
95
  declare function Tooltip(props: ITooltipProps): JSX.Element;
91
96
  declare namespace Tooltip {
@@ -77,7 +77,7 @@ function Tooltip(props) {
77
77
  })
78
78
  : (React.createElement("span", { ref: childRef, onFocus: onShow, onMouseOver: onShow, onBlur: onHide, onMouseOut: onHide }, props.children)),
79
79
  isComponentExist && (React.createElement(TooltipPortalInner_1["default"], null,
80
- React.createElement(TooltipView, { isTooltipVisible: isComponentVisible, content: props.content, position: position, style: style, arrowPosition: arrowPosition, calculatePosition: calculatePosition })))));
80
+ React.createElement(TooltipView, { isTooltipVisible: isComponentVisible, content: props.content, position: position, style: style, arrowPosition: arrowPosition, calculatePosition: calculatePosition, className: props.className })))));
81
81
  }
82
82
  Tooltip.defaultProps = {
83
83
  content: '',