@sb1/ffe-messages-react 0.1.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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 SpareBank 1
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # @sb1/ffe-message-box-react
2
+
3
+ ## Install
4
+
5
+ ```
6
+ npm install --save @sb1/ffe-message-box-react
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ Full documentation on message box usage is available at https://design.sparebank1.no/komponenter/meldinger/#messagebox.
12
+
13
+ ## Development
14
+
15
+ To start a local development server, run the following from the designsystem root folder:
16
+
17
+ ```bash
18
+ npm install
19
+ npm run build
20
+ npm start
21
+ ```
22
+
23
+ A local instance of `component-overview` with live reloading will run at http://localhost:1234/.
24
+
25
+ Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.
package/es/Message.js ADDED
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export var Message = function () {
3
+ return React.createElement("div", null, "Hallo");
4
+ };
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ export { Message } from './Message';
package/lib/Message.js ADDED
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Message = void 0;
7
+ var react_1 = __importDefault(require("react"));
8
+ var Message = function () {
9
+ return react_1.default.createElement("div", null, "Hallo");
10
+ };
11
+ exports.Message = Message;
package/lib/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Message = void 0;
4
+ var Message_1 = require("./Message");
5
+ Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return Message_1.Message; } });
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@sb1/ffe-messages-react",
3
+ "version": "0.1.0",
4
+ "license": "MIT",
5
+ "author": "SpareBank 1",
6
+ "files": [
7
+ "lib",
8
+ "es",
9
+ "types"
10
+ ],
11
+ "main": "lib/index.js",
12
+ "module": "es/index.js",
13
+ "types": "types/index.d.ts",
14
+ "sideEffects": false,
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "ssh://git@github.com:SpareBank1/designsystem.git"
18
+ },
19
+ "scripts": {
20
+ "build": "ffe-buildtool tsc",
21
+ "watch": "ffe-buildtool babel-watch",
22
+ "lint": "eslint src --ext ts,tsx",
23
+ "lint:fix": "eslint src --fix --ext ts,tsx",
24
+ "test": "ffe-buildtool jest",
25
+ "test:watch": "ffe-buildtool jest --watch"
26
+ },
27
+ "dependencies": {
28
+ "@sb1/ffe-messages": "^0.1.0"
29
+ },
30
+ "devDependencies": {
31
+ "@sb1/ffe-buildtool": "^0.6.1",
32
+ "eslint": "^8.57.0",
33
+ "react": "^16.9.0",
34
+ "react-dom": "^16.9.0"
35
+ },
36
+ "peerDependencies": {
37
+ "react": ">=16.9.0"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "gitHead": "67ed248de14530efa204ed1162a78c1abe944c4f"
43
+ }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Message: React.FC;
@@ -0,0 +1 @@
1
+ export { Message } from './Message';