├── .gitignore ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── analysis.json ├── bower.json ├── demo └── index.html ├── index.html ├── package.json ├── polymer.json ├── test ├── index.html └── ud-stepper_test.html ├── ud-iconset.html ├── ud-step.html └── ud-stepper.html /.gitignore: -------------------------------------------------------------------------------- 1 | bower_components/ 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.tabSize": 2 3 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 urdeveloper 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. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # \ 2 | 3 | Material Design: 4 | [Steppers](https://material.io/guidelines/components/steppers.html) 5 | 6 | 27 | 28 | ```html 29 | 30 | 31 |
Step 1 Content
32 |
33 | 34 |
Step 2 Content
35 |
36 | 37 |
Step 3 Content
38 |
39 |
40 | ``` 41 | 42 | ## Install the Polymer-CLI 43 | 44 | First, make sure you have the 45 | [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run 46 | `polymer serve` to serve your element locally. 47 | 48 | ## Viewing Your Element 49 | 50 | ``` 51 | $ polymer serve 52 | ``` 53 | 54 | ## Running Tests 55 | 56 | ``` 57 | $ polymer test 58 | ``` 59 | 60 | Your application is already set up to be tested via 61 | [web-component-tester](https://github.com/Polymer/web-component-tester). Run 62 | `polymer test` to run your application's test suite locally. 63 | 64 | ## Acknowledgment 65 | This project is inspired by [MDL-Stepper](https://ahlechandre.github.io/mdl-stepper/). 66 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ud-stepper", 3 | "version": "0.6.0", 4 | "description": "Material Design Stepper", 5 | "main": "ud-stepper.html", 6 | "dependencies": { 7 | "polymer": "Polymer/polymer#^2.0.0", 8 | "paper-styles": "^2.0.0", 9 | "neon-animation": "^2.2.0", 10 | "iron-menu-behavior": "^2.0.1", 11 | "paper-button": "^2.0.0", 12 | "iron-iconset-svg": "^2.1.0", 13 | "iron-icon": "^2.0.1" 14 | }, 15 | "devDependencies": { 16 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^2.0.0", 17 | "web-component-tester": "Polymer/web-component-tester#^6.0.0", 18 | "webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0", 19 | "iron-component-page": "^3.0.1" 20 | }, 21 | "resolutions": { 22 | "polymer": "^2.0.0" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | ud-stepper demo 8 | 9 | 10 | 11 | 12 | 13 | 14 | 54 | 55 | 56 | 57 | 58 |
59 |
60 |

Linear Stepper

61 |
62 | Reset Stepper 63 | Toggle Orientation 64 | Toggle Animation 65 |
66 |
67 | 68 | 82 | 83 |
84 |
85 |
86 |

Non-Linear Stepper

87 |
88 | Reset Stepper 89 | Toggle Orientation 90 | Toggle Animation 91 |
92 |
93 | 94 | 107 | 108 |
109 |
110 |
111 |

Linear Stepper with an editable step

112 |
113 | Reset Stepper 114 | Toggle Orientation 115 |
116 |
117 | 118 | 131 | 132 |
133 |
134 |
135 |

Linear Stepper with an optional step

136 |
137 | Reset Stepper 138 | Toggle Orientation 139 |
140 |
141 | 142 | 155 | 156 |
157 |
158 |
159 |

Linear Stepper with error state

160 |
161 | Reset Stepper 162 | Toggle Orientation 163 |
164 |
165 | 166 | 179 | 180 |
181 |
182 |
183 |

Custom action implementation

184 |
185 | Reset Stepper 186 | Toggle Orientation 187 |
188 |
189 | 190 | 222 | 223 |
224 | 256 | 257 | 258 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ud-stepper 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ud-stepper", 3 | "version": "0.7.0", 4 | "description": "Polymer 2.x Material Design Stepper", 5 | "author": "urdeveloper", 6 | "license": "MIT", 7 | "repository": "urdeveloper/ud-stepper", 8 | "bugs": { 9 | "url": "https://github.com/urdeveloper/ud-stepper/issues" 10 | }, 11 | "homepage": "https://github.com/urdeveloper/ud-stepper", 12 | "keywords": [ 13 | "urdeveloper", 14 | "ud-stepper", 15 | "components", 16 | "webcomponents", 17 | "web-components" 18 | ], 19 | "dependencies": {} 20 | } 21 | -------------------------------------------------------------------------------- /polymer.json: -------------------------------------------------------------------------------- 1 | { 2 | "lint": { 3 | "rules": [ 4 | "polymer-2" 5 | ] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /test/ud-stepper_test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | ud-stepper test 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | 26 | 27 | 28 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /ud-iconset.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /ud-step.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 84 | 339 | -------------------------------------------------------------------------------- /ud-stepper.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 23 | 40 | 41 | 42 | 327 | 719 | 720 | --------------------------------------------------------------------------------