@create-flow/auth-ui 0.0.1

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/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # auth-ui
2
+
3
+ > Made with create-react-library
4
+
5
+ [![NPM](https://img.shields.io/npm/v/auth-ui.svg)](https://www.npmjs.com/package/auth-ui) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install --save auth-ui
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```tsx
16
+ import React, { Component } from 'react'
17
+
18
+ import MyComponent from 'auth-ui'
19
+ import 'auth-ui/dist/index.css'
20
+
21
+ class Example extends Component {
22
+ render() {
23
+ return <MyComponent />
24
+ }
25
+ }
26
+ ```
27
+
28
+ ## License
29
+
30
+ None © [@create-flow](https://github.com/@create-flow)
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ text: string;
4
+ }
5
+ export declare const Hello: ({ text }: Props) => JSX.Element;
6
+ export {};
package/dist/index.css ADDED
@@ -0,0 +1,7 @@
1
+ ._3mAYe {
2
+ margin: 2em;
3
+ padding: 0.5em;
4
+ border: 2px solid #000;
5
+ font-size: 2em;
6
+ text-align: center;
7
+ }
@@ -0,0 +1 @@
1
+ export * from './Hello';
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ var React = require('react');
2
+
3
+ var styles = {"test":"_3mAYe"};
4
+
5
+ var Hello = function Hello(_ref) {
6
+ var text = _ref.text;
7
+ return React.createElement("div", {
8
+ className: styles.test
9
+ }, "Hello, ", text);
10
+ };
11
+
12
+ exports.Hello = Hello;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/Hello.tsx"],"sourcesContent":["import * as React from 'react'\nimport styles from './Hello.module.css'\n\ninterface Props {\n text: string\n}\n\nexport const Hello = ({ text }: Props): JSX.Element => {\n return <div className={styles.test}>Hello, {text}</div>\n}\n"],"names":["Hello","_ref","text","React","className","styles","test"],"mappings":";;;;IAOaA,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA;MAAMC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EAC1B,OAAOC;IAAKC,SAAS,EAAEC,MAAM,CAACC;gBAAcJ,IAAI,CAAO;AACzD,CAAC;;;;"}
@@ -0,0 +1,13 @@
1
+ import { createElement } from 'react';
2
+
3
+ var styles = {"test":"_3mAYe"};
4
+
5
+ var Hello = function Hello(_ref) {
6
+ var text = _ref.text;
7
+ return createElement("div", {
8
+ className: styles.test
9
+ }, "Hello, ", text);
10
+ };
11
+
12
+ export { Hello };
13
+ //# sourceMappingURL=index.modern.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.modern.js","sources":["../src/Hello.tsx"],"sourcesContent":["import * as React from 'react'\nimport styles from './Hello.module.css'\n\ninterface Props {\n text: string\n}\n\nexport const Hello = ({ text }: Props): JSX.Element => {\n return <div className={styles.test}>Hello, {text}</div>\n}\n"],"names":["Hello","_ref","text","React","className","styles","test"],"mappings":";;;;IAOaA,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA;MAAMC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EAC1B,OAAOC;IAAKC,SAAS,EAAEC,MAAM,CAACC;gBAAcJ,IAAI,CAAO;AACzD,CAAC;;;;"}
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@create-flow/auth-ui",
3
+ "version": "0.0.1",
4
+ "description": "Made with create-react-library",
5
+ "author": "@create-flow",
6
+ "license": "UNLICENSED",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "repository": "@create-flow/auth-ui",
11
+ "main": "dist/index.js",
12
+ "module": "dist/index.modern.js",
13
+ "source": "src/index.tsx",
14
+ "engines": {
15
+ "node": ">=10"
16
+ },
17
+ "scripts": {
18
+ "build": "microbundle-crl --no-compress --format modern,cjs",
19
+ "start": "microbundle-crl watch --no-compress --format modern,cjs",
20
+ "prepare": "run-s build",
21
+ "prepublishOnly": "run-s test:unit test:lint",
22
+ "test": "run-s test:unit test:lint test:build",
23
+ "test:build": "run-s build",
24
+ "test:lint": "eslint . --ext .ts,.tsx",
25
+ "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
26
+ "test:watch": "react-scripts test --env=jsdom",
27
+ "predeploy": "cd example && yarn install && yarn run build",
28
+ "deploy": "gh-pages -d example/build"
29
+ },
30
+ "peerDependencies": {
31
+ "react": "^16.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "@testing-library/jest-dom": "^4.2.4",
35
+ "@testing-library/react": "^9.5.0",
36
+ "@testing-library/user-event": "^7.2.1",
37
+ "@types/jest": "^25.1.4",
38
+ "@types/node": "^12.12.38",
39
+ "@types/react": "^16.9.27",
40
+ "@types/react-dom": "^16.9.7",
41
+ "@types/minimatch": "3.0.3",
42
+ "@typescript-eslint/eslint-plugin": "^2.26.0",
43
+ "@typescript-eslint/parser": "^2.26.0",
44
+ "microbundle-crl": "^0.13.10",
45
+ "babel-eslint": "^10.0.3",
46
+ "cross-env": "^7.0.2",
47
+ "eslint": "^6.8.0",
48
+ "eslint-config-prettier": "^6.7.0",
49
+ "eslint-config-standard": "^14.1.0",
50
+ "eslint-config-standard-react": "^9.2.0",
51
+ "eslint-plugin-import": "^2.18.2",
52
+ "eslint-plugin-node": "^11.0.0",
53
+ "eslint-plugin-prettier": "^3.1.1",
54
+ "eslint-plugin-promise": "^4.2.1",
55
+ "eslint-plugin-react": "^7.17.0",
56
+ "eslint-plugin-standard": "^4.0.1",
57
+ "gh-pages": "^2.2.0",
58
+ "npm-run-all": "^4.1.5",
59
+ "prettier": "^2.0.4",
60
+ "react": "^16.13.1",
61
+ "react-dom": "^16.13.1",
62
+ "react-scripts": "^3.4.1",
63
+ "typescript": "^3.7.5"
64
+ },
65
+ "files": [
66
+ "dist"
67
+ ]
68
+ }