@clayui/tooltip
Advanced tools
Comparing version 3.32.0 to 3.35.0
@@ -6,2 +6,8 @@ # Change Log | ||
# [3.35.0](https://github.com/liferay/clay/compare/v3.34.0...v3.35.0) (2021-08-30) | ||
### Features | ||
- **@clayui/tooltip:** replaces direct use of dom-align with doAlign with RTL support ([2afa54c](https://github.com/liferay/clay/commit/2afa54c)) | ||
# [3.32.0](https://github.com/liferay/clay/compare/v3.31.0...v3.32.0) (2021-07-28) | ||
@@ -8,0 +14,0 @@ |
@@ -12,4 +12,2 @@ "use strict"; | ||
var _domAlign = _interopRequireDefault(require("dom-align")); | ||
var _react = _interopRequireWildcard(require("react")); | ||
@@ -21,2 +19,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } | ||
@@ -26,4 +26,2 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
@@ -282,3 +280,3 @@ | ||
var points = ALIGNMENTS_MAP[align || 'top']; | ||
var newAlignmentString = (0, _domAlign.default)(tooltipRef.current, titleNodeRef.current, { | ||
var newAlignmentString = (0, _shared.doAlign)({ | ||
overflow: { | ||
@@ -288,3 +286,5 @@ adjustX: autoAlign, | ||
}, | ||
points: points | ||
points: points, | ||
sourceElement: tooltipRef.current, | ||
targetElement: titleNodeRef.current | ||
}).points.join(''); | ||
@@ -291,0 +291,0 @@ var pointsString = points.join(''); |
{ | ||
"name": "@clayui/tooltip", | ||
"version": "3.32.0", | ||
"version": "3.35.0", | ||
"description": "ClayTooltip component", | ||
@@ -29,5 +29,4 @@ "license": "BSD-3-Clause", | ||
"dependencies": { | ||
"@clayui/shared": "^3.32.0", | ||
"@clayui/shared": "^3.35.0", | ||
"classnames": "^2.2.6", | ||
"dom-align": "^1.10.2", | ||
"warning": "^4.0.3" | ||
@@ -43,3 +42,3 @@ }, | ||
], | ||
"gitHead": "b3d1b171cc411bc8325f15a96f84e0458b9e94f0" | ||
"gitHead": "affbbdaef528353c6fed80e077bc55d35d5e59bd" | ||
} |
Sorry, the diff of this file is not supported yet
40757
6
807
- Removeddom-align@^1.10.2
Updated@clayui/shared@^3.35.0