diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index c2cdfb8..0000000 --- a/.editorconfig +++ /dev/null @@ -1,21 +0,0 @@ -# EditorConfig helps developers define and maintain consistent -# coding styles between different editors and IDEs -# editorconfig.org - -root = true - - -[*] - -# Change these settings to your own preference -indent_style = space -indent_size = 2 - -# We recommend you to keep these unchanged -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 2125666..0000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=auto \ No newline at end of file diff --git a/.gitignore b/.gitignore index 6f858af..8d4ae25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1 @@ -node_modules -dist -.sass-cache -.tmp +bower_components diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 37996c0..0000000 --- a/.jshintrc +++ /dev/null @@ -1,28 +0,0 @@ -{ - "node": true, - "browser": true, - "esnext": true, - "bitwise": true, - "camelcase": true, - "curly": true, - "eqeqeq": true, - "immed": true, - "indent": 2, - "latedef": true, - "newcap": true, - "noarg": true, - "quotmark": "single", - "regexp": true, - "undef": true, - "unused": true, - "strict": true, - "trailing": true, - "smarttabs": true, - "jquery": true, - "globals": { - "wrap": true, - "unwrap": true, - "Polymer": true, - "Platform": true - } -} diff --git a/.yo-rc.json b/.yo-rc.json new file mode 100644 index 0000000..2f04a55 --- /dev/null +++ b/.yo-rc.json @@ -0,0 +1,5 @@ +{ + "generator-polymer": { + "ghUser": "nishacodes" + } +} \ No newline at end of file diff --git a/README.md b/README.md index 83e131c..23b85cd 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,56 @@ # lens-u-colorpicker -See the [component page](http://lenses.github.io/lens-u-colorpicker) for more information. +An element providing a starting point for your own reusable Polymer elements. + + +## Dependencies + +Element dependencies are managed via [Bower](http://bower.io/). You can +install that via: + + npm install -g bower + +Then, go ahead and download the element's dependencies: + + bower install + + +## Playing With Your Element + +If you wish to work on your element in isolation, we recommend that you use +[Polyserve](https://github.com/PolymerLabs/polyserve) to keep your element's +bower dependencies in line. You can install it via: + + npm install -g polyserve + +And you can run it via: + + polyserve + +Once running, you can preview your element at +`http://localhost:8080/components/lens-u-colorpicker/`, where `lens-u-colorpicker` is the name of the directory containing it. + + +## Testing Your Element + +Simply navigate to the `/test` directory of your element to run its tests. If +you are using Polyserve: `http://localhost:8080/components/lens-u-colorpicker/test/` + +### web-component-tester + +The tests are compatible with [web-component-tester](https://github.com/Polymer/web-component-tester). +Install it via: + + npm install -g web-component-tester + +Then, you can run your tests on _all_ of your local browsers via: + + wct + +#### WCT Tips + +`wct -l chrome` will only run tests in chrome. + +`wct -p` will keep the browsers alive after test runs (refresh to re-run). + +`wct test/some-file.html` will test only the files you specify. diff --git a/bower.json b/bower.json index 9c5d783..d9d5985 100644 --- a/bower.json +++ b/bower.json @@ -1,13 +1,33 @@ { "name": "lens-u-colorpicker", - "version": "0.0.0", - "keywords": "thelma, polymer, web-components", + "version": "1.0.0", + "authors": [ + "Anonymous " + ], + "description": "An element providing a solution to no problem in particular.", + "keywords": [ + "web-component", + "web-components", + "polymer", + "seed" + ], "main": "lens-u-colorpicker.html", + "license": "http://polymer.github.io/LICENSE.txt", + "homepage": "https://github.com//seed-element/", + "ignore": [ + "/.*", + "/test/", + "/demo/" + ], "dependencies": { - "th-theme": "thelmanews/th-theme", - "polymer": "Polymer/polymer#~0.5.5", "flexi-color-picker": "DavidDurman/FlexiColorPicker", - "core-icon": "polymer/core-icon#~0.5.5", - "core-collapse": "polymer/core-collapse#~0.5.5" + "iron-input": "polymerelements/iron-input#~1.0.3", + "iron-collapse": "polymerelements/iron-collapse#~1.0.3", + "polymer": "Polymer/polymer#~1.1.0", + "lenses-styles": "lenses/lenses-styles" + }, + "devDependencies": { + "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", + "web-component-tester": "*" } } diff --git a/demo.html b/demo.html deleted file mode 100644 index db98114..0000000 --- a/demo.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - lens-u-colorpicker Demo - - - - - -

An example of `lens-u-colorpicker` looks like this:

- - - - - diff --git a/demo/index.html b/demo/index.html new file mode 100644 index 0000000..e2dfbb0 --- /dev/null +++ b/demo/index.html @@ -0,0 +1,19 @@ + + + + + + + lens-u-colorpicker Demo + + + + + + + +

An example of <lens-u-colorpicker>:

+ + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..0e22054 --- /dev/null +++ b/index.html @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + diff --git a/lens-u-colorpicker.css b/lens-u-colorpicker.css deleted file mode 100644 index 3b64de1..0000000 --- a/lens-u-colorpicker.css +++ /dev/null @@ -1,71 +0,0 @@ -:host { - width: 100%; - height: 100%; - display: inline-block; -} - -.color-picker { - width: 100%; - padding: 5px; - background: white; - box-sizing: border-box; -} - -.cp-small { - border-radius: 0; -} - -#picker { - background-color: white; - float: left; - width: 100%; - -} -#picker .picker-wrapper { - width: 85%; -} - -#picker .picker { - width: 100%; - height: 200px; -} -#picker .slide { - width: 100%; - height: 200px; -} -#picker .slide-wrapper { - margin-left: 5px; - width: 10%; -} -#picker .picker-indicator { - width: 5px; - height: 5px; - border: 2px solid white 1px solid black; -} - -#picker .slide-indicator { - width: 100%; - height: 2px; - left: 0px; - background-color: black; -} - -#color{ - display: inline-block; - width: 100%; - height: 26px; - border-radius: 3px; - padding: 5px; - font-size: 12px; - box-sizing: border-box; - border: 2px solid #eee; -} - -.swatch { - width: 18px; - height: 18px; - border-radius: 50%; - display: inline-block; - border: 1px solid #eee; -} - diff --git a/lens-u-colorpicker.html b/lens-u-colorpicker.html index ddeaac3..0da66b0 100644 --- a/lens-u-colorpicker.html +++ b/lens-u-colorpicker.html @@ -1,66 +1,274 @@ - - - - + + + + - - +