@dhis2-ui/card 8.15.1 → 8.16.0-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +7 -4
  2. package/types/index.d.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/card",
3
- "version": "8.15.1",
3
+ "version": "8.16.0-alpha.1",
4
4
  "description": "UI Card",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,6 +13,7 @@
13
13
  "main": "./build/cjs/index.js",
14
14
  "module": "./build/es/index.js",
15
15
  "exports": {
16
+ "types": "./types/index.d.ts",
16
17
  "import": "./build/es/index.js",
17
18
  "require": "./build/cjs/index.js"
18
19
  },
@@ -32,16 +33,18 @@
32
33
  },
33
34
  "dependencies": {
34
35
  "@dhis2/prop-types": "^3.1.2",
35
- "@dhis2/ui-constants": "8.15.1",
36
+ "@dhis2/ui-constants": "8.16.0-alpha.1",
36
37
  "classnames": "^2.3.1",
37
38
  "prop-types": "^15.7.2"
38
39
  },
39
40
  "files": [
40
- "build"
41
+ "build",
42
+ "types"
41
43
  ],
42
44
  "devDependencies": {
43
45
  "react": "16.13",
44
46
  "react-dom": "16.13",
45
47
  "styled-jsx": "^4.0.1"
46
- }
48
+ },
49
+ "types": "types"
47
50
  }
@@ -0,0 +1,9 @@
1
+ import * as React from 'react'
2
+
3
+ export interface CardProps {
4
+ children?: React.ReactNode
5
+ className?: string
6
+ dataTest?: string
7
+ }
8
+
9
+ export const Card: React.FC<CardProps>