Skip to content

Commit e418556

Browse files
committed
Merge branch 'now-ims-master' into dev-master
2 parents 4ba3c8a + 6a0d976 commit e418556

2 files changed

Lines changed: 82 additions & 52 deletions

File tree

index.d.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* ****************************************************************************
3+
* Copyright (C) 2018-2018 WeWill3C, LLC dba Now IMS, All rights reserved.
4+
* Project: nowims-ui
5+
* Modified By: rogerk
6+
* Created On: March 27th, 2018
7+
* Last Modified: March 27th, 2018
8+
* ****************************************************************************
9+
*/
10+
import * as React from 'react';
11+
12+
export interface AlertOptions {
13+
place: 'tl' | 'tc' | 'tr' | 'bl' | 'bc' | 'br',
14+
message: string,
15+
type: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark',
16+
icon: string,
17+
autoDismiss: number
18+
}
19+
20+
declare class ReactNotificationAlert extends React.Component {
21+
notificationAlert(options: AlertOptions): void;
22+
}
23+
24+
export default ReactNotificationAlert;
25+

package.json

Lines changed: 57 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,59 @@
11
{
2-
"name": "react-notification-alert",
3-
"version": "0.0.12",
4-
"description": "React bootstrap 4 notification alert",
5-
"main": "dist/index.js",
6-
"scripts": {
7-
"build": "mkdir -p dist && babel index.js -o dist/index.js && cp animate.css dist/animate.css"
8-
},
9-
"babel": {
10-
"presets": [
11-
"react",
12-
"env",
13-
"stage-0"
14-
]
15-
},
16-
"repository": {
17-
"type": "git",
18-
"url": "git+https://github.com/creativetimofficial/react-notification-alert.git"
19-
},
20-
"keywords": [
21-
"react",
22-
"react-component",
23-
"component",
24-
"reactstrap",
25-
"reactstrap-component",
26-
"bootstrap4",
27-
"react-bootstrap",
28-
"react-bootstrap4",
29-
"notification",
30-
"notify",
31-
"react-notification",
32-
"alert",
33-
"react-alert",
34-
"notification-alert",
35-
"alert-notification",
36-
"react-notification-alert"
37-
],
38-
"author": "Creative Tim",
39-
"license": "MIT",
40-
"bugs": {
41-
"url": "https://github.com/creativetimofficial/react-notification-alert/issues"
42-
},
43-
"homepage": "https://github.com/creativetimofficial/react-notification-alert#readme",
44-
"devDependencies": {
45-
"babel-cli": "^6.26.0",
46-
"babel-preset-env": "^1.6.1",
47-
"babel-preset-react": "^6.24.1",
48-
"babel-preset-stage-0": "^6.24.1"
49-
},
50-
"peerDependencies": {
51-
"react": "16.x.x",
52-
"reactstrap": "8.x.x"
53-
}
2+
"name": "react-notification-alert",
3+
"version": "0.0.12",
4+
"description": "React bootstrap 4 notification alert",
5+
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
7+
"scripts": {
8+
"prebuild": "node_modules/.bin/wget https://raw.githubusercontent.com/daneden/animate.css/master/animate.css",
9+
"build": "mkdir -p dist && babel index.js -o dist/index.js",
10+
"postbuild": "cpx ./index.d.ts dist/ && cpx ./animate.css dist/"
11+
},
12+
"babel": {
13+
"presets": [
14+
"react",
15+
"env",
16+
"stage-0"
17+
]
18+
},
19+
"repository": {
20+
"type": "git",
21+
"url": "git+https://github.com/creativetimofficial/react-notification-alert.git"
22+
},
23+
"keywords": [
24+
"react",
25+
"react-component",
26+
"component",
27+
"reactstrap",
28+
"reactstrap-component",
29+
"bootstrap4",
30+
"react-bootstrap",
31+
"react-bootstrap4",
32+
"notification",
33+
"notify",
34+
"react-notification",
35+
"alert",
36+
"react-alert",
37+
"notification-alert",
38+
"alert-notification",
39+
"react-notification-alert"
40+
],
41+
"author": "Creative Tim",
42+
"license": "MIT",
43+
"bugs": {
44+
"url": "https://github.com/creativetimofficial/react-notification-alert/issues"
45+
},
46+
"homepage": "https://github.com/creativetimofficial/react-notification-alert#readme",
47+
"devDependencies": {
48+
"babel-cli": "^6.26.0",
49+
"babel-preset-env": "^1.6.1",
50+
"babel-preset-react": "^6.24.1",
51+
"babel-preset-stage-0": "^6.24.1",
52+
"cpx": "^1.5.0",
53+
"node-wget": "^0.4.2"
54+
},
55+
"peerDependencies": {
56+
"react": "^16.1.0",
57+
"reactstrap": "^5.0.0-alpha.4"
58+
}
5459
}

0 commit comments

Comments
 (0)