@dhis2-ui/alert 8.16.0-alpha.1 → 8.16.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 +6 -9
  2. package/types/index.d.ts +0 -49
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/alert",
3
- "version": "8.16.0-alpha.1",
3
+ "version": "8.16.0",
4
4
  "description": "UI Alert",
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,20 +32,18 @@
33
32
  },
34
33
  "dependencies": {
35
34
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2-ui/portal": "8.16.0-alpha.1",
37
- "@dhis2/ui-constants": "8.16.0-alpha.1",
38
- "@dhis2/ui-icons": "8.16.0-alpha.1",
35
+ "@dhis2-ui/portal": "8.16.0",
36
+ "@dhis2/ui-constants": "8.16.0",
37
+ "@dhis2/ui-icons": "8.16.0",
39
38
  "classnames": "^2.3.1",
40
39
  "prop-types": "^15.7.2"
41
40
  },
42
41
  "files": [
43
- "build",
44
- "types"
42
+ "build"
45
43
  ],
46
44
  "devDependencies": {
47
45
  "react": "16.13",
48
46
  "react-dom": "16.13",
49
47
  "styled-jsx": "^4.0.1"
50
- },
51
- "types": "types"
48
+ }
52
49
  }
package/types/index.d.ts DELETED
@@ -1,49 +0,0 @@
1
- import * as React from 'react'
2
-
3
- export interface ActionsAction {
4
- label: string
5
- onClick: React.MouseEventHandler<HTMLSpanElement>
6
- }
7
-
8
- type ActionActionTuple = [ActionsAction?, ActionsAction?]
9
-
10
- export interface AlertBarProps {
11
- /**
12
- * An array of 0-2 action objects
13
- */
14
- actions?: ActionActionTuple
15
- /**
16
- * The message string for the alert
17
- */
18
- children?: string
19
- className?: string
20
- /**
21
- * Alert bars with `critical` will not autohide
22
- */
23
- critical?: boolean
24
- dataTest?: string
25
- duration?: number
26
- hidden?: boolean
27
- /**
28
- * A specific icon to override the default icon in the bar.
29
- * If `false` is provided, no icon will be shown.
30
- */
31
- icon?: Element | boolean
32
- permanent?: boolean
33
- success?: boolean
34
- /**
35
- * Alert bars with `warning` will not autohide
36
- */
37
- warning?: boolean
38
- onHidden?: (arg0: {}, argv1: null) => void
39
- }
40
-
41
- export const AlertBar: React.FC<AlertBarProps>
42
-
43
- export interface AlertStackProps {
44
- children?: React.ReactNode
45
- className?: string
46
- dataTest?: string
47
- }
48
-
49
- export const AlertStack: React.FC<AlertStackProps>