@dhis2-ui/layer 8.15.0-alpha.2 → 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.
- package/package.json +5 -7
- package/types/index.d.ts +0 -40
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/layer",
|
|
3
|
-
"version": "8.15.0
|
|
3
|
+
"version": "8.15.0",
|
|
4
4
|
"description": "UI Layer",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,19 +32,17 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@dhis2/prop-types": "^3.1.2",
|
|
35
|
-
"@dhis2-ui/portal": "8.15.0
|
|
36
|
-
"@dhis2/ui-constants": "8.15.0
|
|
35
|
+
"@dhis2-ui/portal": "8.15.0",
|
|
36
|
+
"@dhis2/ui-constants": "8.15.0",
|
|
37
37
|
"classnames": "^2.3.1",
|
|
38
38
|
"prop-types": "^15.7.2"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
|
-
"build"
|
|
42
|
-
"types"
|
|
41
|
+
"build"
|
|
43
42
|
],
|
|
44
43
|
"devDependencies": {
|
|
45
44
|
"react": "16.13",
|
|
46
45
|
"react-dom": "16.13",
|
|
47
46
|
"styled-jsx": "^4.0.1"
|
|
48
|
-
}
|
|
49
|
-
"types": "types"
|
|
47
|
+
}
|
|
50
48
|
}
|
package/types/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from 'react'
|
|
2
|
-
|
|
3
|
-
export type LayerLevel = number | string
|
|
4
|
-
|
|
5
|
-
export type LayerPosition = 'absolute' | 'fixed'
|
|
6
|
-
|
|
7
|
-
export type LayerBackdropClickEvent = React.MouseEvent<HTMLDivElement>
|
|
8
|
-
export type LayerBackdropClickHandler = (
|
|
9
|
-
arg0: {},
|
|
10
|
-
arg1: LayerBackdropClickEvent
|
|
11
|
-
) => void
|
|
12
|
-
|
|
13
|
-
export interface LayerProps {
|
|
14
|
-
children?: React.ReactNode
|
|
15
|
-
className?: string
|
|
16
|
-
dataTest?: string
|
|
17
|
-
/**
|
|
18
|
-
* Disable the Portal, useful for nesting layers
|
|
19
|
-
*/
|
|
20
|
-
disablePortal?: boolean
|
|
21
|
-
/**
|
|
22
|
-
* Z-index level
|
|
23
|
-
*/
|
|
24
|
-
level?: LayerLevel
|
|
25
|
-
position?: LayerPosition
|
|
26
|
-
/**
|
|
27
|
-
* Adds a semi-transparent background
|
|
28
|
-
*/
|
|
29
|
-
translucent?: boolean
|
|
30
|
-
/**
|
|
31
|
-
* Backdrop click handler
|
|
32
|
-
*/
|
|
33
|
-
onBackdropClick?: LayerBackdropClickHandler
|
|
34
|
-
/**
|
|
35
|
-
* Click handler - DEPRECATED
|
|
36
|
-
*/
|
|
37
|
-
onClick?: LayerBackdropClickHandler
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export const Layer: React.FC<LayerProps>
|