@rc-component/trigger
Advanced tools
Comparing version 1.15.6 to 1.16.0
@@ -16,11 +16,2 @@ /// <reference types="react" /> | ||
/** | ||
* @private Do not use in your production code | ||
*/ | ||
_experimental?: { | ||
/** | ||
* @private Do not use in your production code. Auto adjust align logic | ||
*/ | ||
dynamicInset?: boolean; | ||
}; | ||
/** | ||
* offset source node by offset[0] in x and offset[1] in y. | ||
@@ -61,2 +52,6 @@ * If offset contains percentage string value, it is relative to sourceNode region. | ||
/** | ||
* Auto chose position with `top` or `bottom` by the align result | ||
*/ | ||
dynamicInset?: boolean; | ||
/** | ||
* Whether use css right instead of left to position | ||
@@ -63,0 +58,0 @@ */ |
@@ -82,5 +82,5 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
if (ready || !open) { | ||
var points = align.points, | ||
_experimental = align._experimental; | ||
var dynamicInset = _experimental === null || _experimental === void 0 ? void 0 : _experimental.dynamicInset; | ||
var _experimental; | ||
var points = align.points; | ||
var dynamicInset = align.dynamicInset || ((_experimental = align._experimental) === null || _experimental === void 0 ? void 0 : _experimental.dynamicInset); | ||
var alignRight = dynamicInset && points[0][1] === 'r'; | ||
@@ -87,0 +87,0 @@ var alignBottom = dynamicInset && points[0][0] === 'b'; |
@@ -16,11 +16,2 @@ /// <reference types="react" /> | ||
/** | ||
* @private Do not use in your production code | ||
*/ | ||
_experimental?: { | ||
/** | ||
* @private Do not use in your production code. Auto adjust align logic | ||
*/ | ||
dynamicInset?: boolean; | ||
}; | ||
/** | ||
* offset source node by offset[0] in x and offset[1] in y. | ||
@@ -61,2 +52,6 @@ * If offset contains percentage string value, it is relative to sourceNode region. | ||
/** | ||
* Auto chose position with `top` or `bottom` by the align result | ||
*/ | ||
dynamicInset?: boolean; | ||
/** | ||
* Whether use css right instead of left to position | ||
@@ -63,0 +58,0 @@ */ |
@@ -90,5 +90,5 @@ "use strict"; | ||
if (ready || !open) { | ||
var points = align.points, | ||
_experimental = align._experimental; | ||
var dynamicInset = _experimental === null || _experimental === void 0 ? void 0 : _experimental.dynamicInset; | ||
var _experimental; | ||
var points = align.points; | ||
var dynamicInset = align.dynamicInset || ((_experimental = align._experimental) === null || _experimental === void 0 ? void 0 : _experimental.dynamicInset); | ||
var alignRight = dynamicInset && points[0][1] === 'r'; | ||
@@ -95,0 +95,0 @@ var alignBottom = dynamicInset && points[0][0] === 'b'; |
{ | ||
"name": "@rc-component/trigger", | ||
"version": "1.15.6", | ||
"version": "1.16.0", | ||
"description": "base abstract trigger component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
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
179856
3963