@dhis2-ui/popper 8.15.0-alpha.3 → 8.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +4 -7
  2. package/types/index.d.ts +0 -42
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/popper",
3
- "version": "8.15.0-alpha.3",
3
+ "version": "8.15.0",
4
4
  "description": "UI Popper",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,6 @@
13
13
  "main": "./build/cjs/index.js",
14
14
  "module": "./build/es/index.js",
15
15
  "exports": {
16
- "types": "./types/index.d.ts",
17
16
  "import": "./build/es/index.js",
18
17
  "require": "./build/cjs/index.js"
19
18
  },
@@ -33,7 +32,7 @@
33
32
  },
34
33
  "dependencies": {
35
34
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2/ui-constants": "8.15.0-alpha.3",
35
+ "@dhis2/ui-constants": "8.15.0",
37
36
  "@popperjs/core": "^2.10.1",
38
37
  "classnames": "^2.3.1",
39
38
  "prop-types": "^15.7.2",
@@ -41,13 +40,11 @@
41
40
  "resize-observer-polyfill": "^1.5.1"
42
41
  },
43
42
  "files": [
44
- "build",
45
- "types"
43
+ "build"
46
44
  ],
47
45
  "devDependencies": {
48
46
  "react": "16.13",
49
47
  "react-dom": "16.13",
50
48
  "styled-jsx": "^4.0.1"
51
- },
52
- "types": "types"
49
+ }
53
50
  }
package/types/index.d.ts DELETED
@@ -1,42 +0,0 @@
1
- import * as React from 'react'
2
- import { StrictModifier } from 'react-popper'
3
- import { VirtualElement, Options as PopperOptions } from '@popperjs/core'
4
-
5
- type PopperReference = VirtualElement | Element
6
- type ReferenceElement = PopperReference | React.RefObject<PopperReference>
7
-
8
- export interface PopperProps {
9
- /**
10
- * Content inside the Popper
11
- */
12
- children: React.ReactNode
13
- className?: string
14
- dataTest?: string
15
- /**
16
- * A property of the `createPopper` options. See [popper docs](https://popper.js.org/docs/v2/constructors/)
17
- */
18
- modifiers?: StrictModifier[]
19
- /**
20
- * Makes the Popper update position when the **Popper content** changes size
21
- */
22
- observePopperResize?: boolean
23
- /**
24
- * Makes the Popper update position when the **reference element** changes size
25
- */
26
- observeReferenceResize?: boolean
27
- /**
28
- * A property of the `createPopper` options. See [popper docs](https://popper.js.org/docs/v2/constructors/)
29
- */
30
- placement?: PopperOptions['placement']
31
- /**
32
- * A React ref, DOM node, or [virtual element](https://popper.js.org/docs/v2/virtual-elements/) for the popper to position itself against
33
- */
34
- reference?: ReferenceElement
35
- /**
36
- * A property of the `createPopper` options. See [popper docs](https://popper.js.org/docs/v2/constructors/)
37
- */
38
- strategy?: PopperOptions['strategy']
39
- onFirstUpdate?: PopperOptions['onFirstUpdate']
40
- }
41
-
42
- export const Popper: React.FC<PopperProps>