@dhis2-ui/popper
Advanced tools
Comparing version 6.10.0 to 6.10.1
@@ -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 */ |
{ | ||
"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", |
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
56199
1247
+ Added@dhis2/ui-constants@6.10.1(transitive)
- Removed@dhis2/ui-constants@6.10.0(transitive)
Updated@dhis2/ui-constants@6.10.1