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

@dhis2-ui/popper

Package Overview
Dependencies
Maintainers
2
Versions
319
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dhis2-ui/popper - npm Package Compare versions

Comparing version 6.10.0 to 6.10.1

36

build/cjs/popper.js

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

/**
* @module
* @param {Popper.PropTypes} props
* @returns {React.Component}
* @description A React wrapper around popper.js.
*
* @example import { Popper } from '@dhis2/ui-core'
*
* @see Live demo: {@link /demo/?path=/story/components-core-popper--top|Storybook}
* @see Popper js: {@link https://popper.js.org/docs/v2/|Documentation}
*/
const Popper = ({

@@ -80,27 +69,4 @@ children,

placement: 'auto'
};
/**
* @typedef Modifier
* @type {Object}
* @property {string} name
* @property {Object} options
*/
}; // Prop names follow the names here: https://popper.js.org/docs/v2/constructors/
/**
* @typedef {Object} PropTypes
* @static
*
* @prop {Node} children
* @prop {React.Ref|Element|VirtualElement} reference A React ref, DOM node, or {@link https://popper.js.org/docs/v2/virtual-elements/|popper.js virtual element} for the Popper to position itself against.
* @prop {string} [className]
* @prop {string} [dataTest=dhis2-uicore-popper]
* @prop {Array.<Modifier>} [modifiers=[]] A property of the `createPopper` options, {@link https://popper.js.org/docs/v2/constructors/|see constructor section of popper.js docs}
* @prop {Boolean} observePopperResize Makes the popper update position when the popper content changes size
* @prop {Boolean} observeReferenceResize Makes the popper update position when the reference element changes size
* @prop {('absolute'|'fixed')} [strategy=absolute] A property of the `createPopper` options, {@link https://popper.js.org/docs/v2/constructors/|see constructor section of popper.js docs}
* @prop {Function} [onFirstUpdate] A property of the `createPopper` options, {@link https://popper.js.org/docs/v2/constructors/|see constructor section of popper.js docs}
* @prop {('auto'|'auto-start'|'auto-end'|'top'|'top-start'|'top-end'|'bottom'|'bottom-start'|'bottom-end'|'right'|'right-start'|'right-end'|'left'|'left-start'|'left-end')} [placement=top] A property of the `createPopper` options, {@link https://popper.js.org/docs/v2/constructors/|see constructor section of popper.js docs}
*/
// Prop names follow the names here: https://popper.js.org/docs/v2/constructors/
Popper.propTypes = {

@@ -107,0 +73,0 @@ /** Content inside the Popper */

@@ -9,13 +9,2 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

import { deduplicateModifiers } from './modifiers.js';
/**
* @module
* @param {Popper.PropTypes} props
* @returns {React.Component}
* @description A React wrapper around popper.js.
*
* @example import { Popper } from '@dhis2/ui-core'
*
* @see Live demo: {@link /demo/?path=/story/components-core-popper--top|Storybook}
* @see Popper js: {@link https://popper.js.org/docs/v2/|Documentation}
*/

@@ -61,27 +50,4 @@ const Popper = ({

placement: 'auto'
};
/**
* @typedef Modifier
* @type {Object}
* @property {string} name
* @property {Object} options
*/
}; // Prop names follow the names here: https://popper.js.org/docs/v2/constructors/
/**
* @typedef {Object} PropTypes
* @static
*
* @prop {Node} children
* @prop {React.Ref|Element|VirtualElement} reference A React ref, DOM node, or {@link https://popper.js.org/docs/v2/virtual-elements/|popper.js virtual element} for the Popper to position itself against.
* @prop {string} [className]
* @prop {string} [dataTest=dhis2-uicore-popper]
* @prop {Array.<Modifier>} [modifiers=[]] A property of the `createPopper` options, {@link https://popper.js.org/docs/v2/constructors/|see constructor section of popper.js docs}
* @prop {Boolean} observePopperResize Makes the popper update position when the popper content changes size
* @prop {Boolean} observeReferenceResize Makes the popper update position when the reference element changes size
* @prop {('absolute'|'fixed')} [strategy=absolute] A property of the `createPopper` options, {@link https://popper.js.org/docs/v2/constructors/|see constructor section of popper.js docs}
* @prop {Function} [onFirstUpdate] A property of the `createPopper` options, {@link https://popper.js.org/docs/v2/constructors/|see constructor section of popper.js docs}
* @prop {('auto'|'auto-start'|'auto-end'|'top'|'top-start'|'top-end'|'bottom'|'bottom-start'|'bottom-end'|'right'|'right-start'|'right-end'|'left'|'left-start'|'left-end')} [placement=top] A property of the `createPopper` options, {@link https://popper.js.org/docs/v2/constructors/|see constructor section of popper.js docs}
*/
// Prop names follow the names here: https://popper.js.org/docs/v2/constructors/
Popper.propTypes = {

@@ -88,0 +54,0 @@ /** Content inside the Popper */

4

package.json
{
"name": "@dhis2-ui/popper",
"version": "6.10.0",
"version": "6.10.1",
"description": "UI Popper",

@@ -34,3 +34,3 @@ "repository": {

"@dhis2/prop-types": "^1.6.4",
"@dhis2/ui-constants": "6.10.0",
"@dhis2/ui-constants": "6.10.1",
"@popperjs/core": "^2.6.0",

@@ -37,0 +37,0 @@ "classnames": "^2.3.1",

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