Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uiw/react-overlay-trigger

Package Overview
Dependencies
Maintainers
2
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-overlay-trigger - npm Package Compare versions

Comparing version 4.21.28 to 4.22.0

2

cjs/getStyle.d.ts
import { IBoundingClientRect } from './util/getBoundingClientRect';
import { OverlayStyl, OverlayTriggerProps } from './';
declare type GetStyleOptions = {
type GetStyleOptions = {
trigger: HTMLElement | IBoundingClientRect;

@@ -5,0 +5,0 @@ popup: HTMLElement | IBoundingClientRect;

@@ -156,3 +156,2 @@ "use strict";

return sty;
}
//# sourceMappingURL=getStyle.js.map
}

@@ -25,8 +25,8 @@ import React from 'react';

}
export declare type Delay = number | {
export type Delay = number | {
show?: number;
hide?: number;
};
export declare type Placement = 'top' | 'topLeft' | 'topRight' | 'left' | 'leftTop' | 'leftBottom' | 'right' | 'rightTop' | 'rightBottom' | 'bottom' | 'bottomLeft' | 'bottomRight';
export declare type OverlayStyl = {
export type Placement = 'top' | 'topLeft' | 'topRight' | 'left' | 'leftTop' | 'leftBottom' | 'right' | 'rightTop' | 'rightBottom' | 'bottom' | 'bottomLeft' | 'bottomRight';
export type OverlayStyl = {
placement: Placement;

@@ -39,3 +39,3 @@ top: number;

};
export declare type OverlayTriggerRef = {
export type OverlayTriggerRef = {
hide: () => void;

@@ -42,0 +42,0 @@ show: () => void;

@@ -288,3 +288,2 @@ "use strict";

exports["default"] = _default;
module.exports = exports.default;
//# sourceMappingURL=index.js.map
module.exports = exports.default;

@@ -22,3 +22,2 @@ "use strict";

}
module.exports = exports.default;
//# sourceMappingURL=getBordersSize.js.map
module.exports = exports.default;

@@ -1,2 +0,2 @@

export interface IBoundingClientRect {
export interface IBoundingClientRect extends DOMRect {
left: number;

@@ -3,0 +3,0 @@ right: number;

@@ -68,3 +68,2 @@ "use strict";

}
module.exports = exports.default;
//# sourceMappingURL=getBoundingClientRect.js.map
module.exports = exports.default;

@@ -8,2 +8,2 @@ /**

*/
export default function getClientRect(offsets: ClientRect): ClientRect;
export default function getClientRect(offsets: DOMRect): DOMRect;

@@ -22,3 +22,2 @@ "use strict";

}
module.exports = exports.default;
//# sourceMappingURL=getClientRect.js.map
module.exports = exports.default;

@@ -1,2 +0,2 @@

export declare type Sizes = {
export type Sizes = {
width: number;

@@ -3,0 +3,0 @@ height: number;

@@ -26,3 +26,2 @@ "use strict";

}
module.exports = exports.default;
//# sourceMappingURL=getOuterSizes.js.map
module.exports = exports.default;

@@ -23,3 +23,2 @@ "use strict";

}
module.exports = exports.default;
//# sourceMappingURL=getStyleComputedProperty.js.map
module.exports = exports.default;

@@ -1,2 +0,2 @@

export declare type WindowSize = {
export type WindowSize = {
height?: number;

@@ -3,0 +3,0 @@ width?: number;

@@ -21,3 +21,2 @@ "use strict";

}
module.exports = exports.default;
//# sourceMappingURL=getWindowSizes.js.map
module.exports = exports.default;

@@ -9,3 +9,2 @@ "use strict";

exports["default"] = _default;
module.exports = exports.default;
//# sourceMappingURL=isBrowser.js.map
module.exports = exports.default;

@@ -28,3 +28,2 @@ "use strict";

}
module.exports = exports.default;
//# sourceMappingURL=isIE.js.map
module.exports = exports.default;

@@ -36,3 +36,2 @@ "use strict";

exports["default"] = _default;
module.exports = exports.default;
//# sourceMappingURL=utils.js.map
module.exports = exports.default;
import { IBoundingClientRect } from './util/getBoundingClientRect';
import { OverlayStyl, OverlayTriggerProps } from './';
declare type GetStyleOptions = {
type GetStyleOptions = {
trigger: HTMLElement | IBoundingClientRect;

@@ -5,0 +5,0 @@ popup: HTMLElement | IBoundingClientRect;

@@ -150,3 +150,2 @@ import _extends from "@babel/runtime/helpers/extends";

return sty;
}
//# sourceMappingURL=getStyle.js.map
}

@@ -25,8 +25,8 @@ import React from 'react';

}
export declare type Delay = number | {
export type Delay = number | {
show?: number;
hide?: number;
};
export declare type Placement = 'top' | 'topLeft' | 'topRight' | 'left' | 'leftTop' | 'leftBottom' | 'right' | 'rightTop' | 'rightBottom' | 'bottom' | 'bottomLeft' | 'bottomRight';
export declare type OverlayStyl = {
export type Placement = 'top' | 'topLeft' | 'topRight' | 'left' | 'leftTop' | 'leftBottom' | 'right' | 'rightTop' | 'rightBottom' | 'bottom' | 'bottomLeft' | 'bottomRight';
export type OverlayStyl = {
placement: Placement;

@@ -39,3 +39,3 @@ top: number;

};
export declare type OverlayTriggerRef = {
export type OverlayTriggerRef = {
hide: () => void;

@@ -42,0 +42,0 @@ show: () => void;

@@ -245,3 +245,2 @@ import _extends from "@babel/runtime/helpers/extends";

});
});
//# sourceMappingURL=index.js.map
});

@@ -15,3 +15,2 @@ /*

return parseFloat(styles["border" + sideA + "Width"]) + parseFloat(styles["border" + sideB + "Width"]);
}
//# sourceMappingURL=getBordersSize.js.map
}

@@ -1,2 +0,2 @@

export interface IBoundingClientRect {
export interface IBoundingClientRect extends DOMRect {
left: number;

@@ -3,0 +3,0 @@ right: number;

@@ -60,3 +60,2 @@ import { getScroll } from '@uiw/utils';

return getClientRect(result);
}
//# sourceMappingURL=getBoundingClientRect.js.map
}

@@ -8,2 +8,2 @@ /**

*/
export default function getClientRect(offsets: ClientRect): ClientRect;
export default function getClientRect(offsets: DOMRect): DOMRect;

@@ -14,3 +14,2 @@ import _extends from "@babel/runtime/helpers/extends";

});
}
//# sourceMappingURL=getClientRect.js.map
}

@@ -1,2 +0,2 @@

export declare type Sizes = {
export type Sizes = {
width: number;

@@ -3,0 +3,0 @@ height: number;

@@ -19,3 +19,2 @@ /**

return result;
}
//# sourceMappingURL=getOuterSizes.js.map
}

@@ -16,3 +16,2 @@ /**

return property ? css[property] : css;
}
//# sourceMappingURL=getStyleComputedProperty.js.map
}

@@ -1,2 +0,2 @@

export declare type WindowSize = {
export type WindowSize = {
height?: number;

@@ -3,0 +3,0 @@ width?: number;

@@ -13,3 +13,2 @@ import isIE from './isIE';

};
}
//# sourceMappingURL=getWindowSizes.js.map
}

@@ -1,2 +0,1 @@

export default typeof window !== 'undefined' && typeof document !== 'undefined';
//# sourceMappingURL=isBrowser.js.map
export default typeof window !== 'undefined' && typeof document !== 'undefined';

@@ -20,3 +20,2 @@ import isBrowser from './isBrowser';

return isIE11 || isIE10;
}
//# sourceMappingURL=isIE.js.map
}

@@ -26,3 +26,2 @@ var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);

})();
export default contains;
//# sourceMappingURL=utils.js.map
export default contains;
{
"name": "@uiw/react-overlay-trigger",
"version": "4.21.28",
"version": "4.22.0",
"description": "OverlayTrigger component",

@@ -47,5 +47,5 @@ "author": "Kenny Wong <wowohoo@qq.com>",

"dependencies": {
"@uiw/react-overlay": "^4.21.28",
"@uiw/utils": "^4.21.28"
"@uiw/react-overlay": "^4.22.0",
"@uiw/utils": "^4.22.0"
}
}

@@ -8,3 +8,3 @@ import { getScroll } from '@uiw/utils';

export interface IBoundingClientRect {
export interface IBoundingClientRect extends DOMRect {
left: number;

@@ -11,0 +11,0 @@ right: number;

@@ -8,3 +8,3 @@ /**

*/
export default function getClientRect(offsets: ClientRect): ClientRect {
export default function getClientRect(offsets: DOMRect): DOMRect {
return {

@@ -11,0 +11,0 @@ ...offsets,

@@ -23,3 +23,3 @@ import isIE from './isIE';

isIE(10)
? parseInt(html[`offset${axis}`], 10) +
? parseInt(html[`offset${axis}` as keyof IHTMLElement], 10) +
parseInt(computedStyle[`margin${axis === 'Height' ? 'Top' : 'Left'}`], 10) +

@@ -26,0 +26,0 @@ parseInt(computedStyle[`margin${axis === 'Height' ? 'Bottom' : 'Right'}`], 10)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc