diff --git a/example/index.html b/example/index.html index e378793..35fc3eb 100644 --- a/example/index.html +++ b/example/index.html @@ -2,7 +2,7 @@ Happy - + - -2) Use them: - -* Simple: - - - -* Colored (as you are used to from Bootstrap) - - - -3) In case you need to re-init Happy JS, call - - window.happy.reset(); \ No newline at end of file +# Happy components + +See [demo](http://paveljanda.github.io/happy/example/) + +## Installation + +```bash +npm install happy-inputs +``` + +## Usage + +```html + + + + Happy + + + + + + + + + + + + + + + + + + +``` diff --git a/example/node_modules/happy-inputs/example/index.html b/example/node_modules/happy-inputs/example/index.html index 0241500..e378793 100644 --- a/example/node_modules/happy-inputs/example/index.html +++ b/example/node_modules/happy-inputs/example/index.html @@ -2,15 +2,19 @@ Happy - - + + + + - +

Happy components

- -

Sad radio :(

diff --git a/example/node_modules/happy-inputs/example/package-lock.json b/example/node_modules/happy-inputs/example/package-lock.json new file mode 100644 index 0000000..512a0b6 --- /dev/null +++ b/example/node_modules/happy-inputs/example/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "happy-inputs example", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "happy-inputs": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/happy-inputs/-/happy-inputs-2.0.0.tgz", + "integrity": "sha512-9QBzo/ek0Nl3mnb/EJLHlBoqmCnn4s3tb/FiPnDFmzcqMRvZ66s0JX3k9k1cAJge5MMGJd1DsGutbYRitlvn8Q==" + } + } +} diff --git a/example/node_modules/happy-inputs/example/package.json b/example/node_modules/happy-inputs/example/package.json new file mode 100644 index 0000000..2a0bb3e --- /dev/null +++ b/example/node_modules/happy-inputs/example/package.json @@ -0,0 +1,15 @@ +{ + "name": "happy-inputs-example", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "Pavel Janda ", + "license": "MIT", + "dependencies": { + "happy-inputs": "^2.0.0" + } +} diff --git a/example/node_modules/happy-inputs/example/styles.css b/example/node_modules/happy-inputs/example/styles.css new file mode 100644 index 0000000..1a8094b --- /dev/null +++ b/example/node_modules/happy-inputs/example/styles.css @@ -0,0 +1,37 @@ +body { + margin: 0; + text-align: center; + font-family: 'Helvetica-neue', Helvetica, Arial; +} + +.container { + position: relative; + margin: auto; + width: 500px; +} + +.example { + padding: 2em; + margin: 0 0 1em; + border: 1px solid #E6E6E6; + text-align: left; +} + +h1, h2, h3 { + font-weight: normal; + opacity: 0.6; +} + +h2 { + margin: 1em 1em; + text-align: center; + color: red; +} + +h2:first-child { + margin-top: 0; +} + +label { + display: block; +} diff --git a/example/node_modules/happy-inputs/package.json b/example/node_modules/happy-inputs/package.json index a77e2db..3b78a90 100644 --- a/example/node_modules/happy-inputs/package.json +++ b/example/node_modules/happy-inputs/package.json @@ -1,27 +1,27 @@ { - "_from": "happy-inputs", - "_id": "happy-inputs@2.0.0", + "_from": "happy-inputs@2.0.1", + "_id": "happy-inputs@2.0.1", "_inBundle": false, - "_integrity": "sha512-9QBzo/ek0Nl3mnb/EJLHlBoqmCnn4s3tb/FiPnDFmzcqMRvZ66s0JX3k9k1cAJge5MMGJd1DsGutbYRitlvn8Q==", + "_integrity": "sha512-xpVdZ1HJw6SzFsqaRDM1Y4EvBkraApvx62yK+JrDgd5ULE5a3vCqa1TXPywexgeBJz3V3j8y+kf74aY9mH7ghA==", "_location": "/happy-inputs", "_phantomChildren": {}, "_requested": { - "type": "tag", + "type": "version", "registry": true, - "raw": "happy-inputs", + "raw": "happy-inputs@2.0.1", "name": "happy-inputs", "escapedName": "happy-inputs", - "rawSpec": "", + "rawSpec": "2.0.1", "saveSpec": null, - "fetchSpec": "latest" + "fetchSpec": "2.0.1" }, "_requiredBy": [ "#USER", "/" ], - "_resolved": "https://registry.npmjs.org/happy-inputs/-/happy-inputs-2.0.0.tgz", - "_shasum": "0889fd71c7cee452e5ab2d0733756871a3ec7b2b", - "_spec": "happy-inputs", + "_resolved": "https://registry.npmjs.org/happy-inputs/-/happy-inputs-2.0.1.tgz", + "_shasum": "615060386bb188407ff3be2bf8048f80b23b7741", + "_spec": "happy-inputs@2.0.1", "_where": "/Users/paveljanda/www/private/happy/example", "author": { "name": "Pavel Janda", @@ -56,5 +56,5 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "version": "2.0.0" + "version": "2.0.1" } diff --git a/example/node_modules/happy-inputs/dist/happy.css b/example/node_modules/happy-inputs/src/happy.css similarity index 100% rename from example/node_modules/happy-inputs/dist/happy.css rename to example/node_modules/happy-inputs/src/happy.css diff --git a/example/package-lock.json b/example/package-lock.json index 512a0b6..dfb93f0 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -1,13 +1,13 @@ { - "name": "happy-inputs example", + "name": "happy-inputs-example", "version": "1.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { "happy-inputs": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/happy-inputs/-/happy-inputs-2.0.0.tgz", - "integrity": "sha512-9QBzo/ek0Nl3mnb/EJLHlBoqmCnn4s3tb/FiPnDFmzcqMRvZ66s0JX3k9k1cAJge5MMGJd1DsGutbYRitlvn8Q==" + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/happy-inputs/-/happy-inputs-2.0.1.tgz", + "integrity": "sha512-xpVdZ1HJw6SzFsqaRDM1Y4EvBkraApvx62yK+JrDgd5ULE5a3vCqa1TXPywexgeBJz3V3j8y+kf74aY9mH7ghA==" } } } diff --git a/example/package.json b/example/package.json index 2a0bb3e..f51a5e3 100644 --- a/example/package.json +++ b/example/package.json @@ -10,6 +10,6 @@ "author": "Pavel Janda ", "license": "MIT", "dependencies": { - "happy-inputs": "^2.0.0" + "happy-inputs": "^2.0.1" } }