├── pattern-library ├── components │ ├── button │ │ ├── description.md │ │ └── default │ │ │ ├── description.md │ │ │ └── markup.html │ ├── label │ │ ├── description.md │ │ └── default │ │ │ ├── description.md │ │ │ └── markup.html │ ├── check-field │ │ ├── description.md │ │ ├── checkbox │ │ │ ├── description.md │ │ │ └── markup.html │ │ ├── radio │ │ │ ├── description.md │ │ │ └── markup.html │ │ └── error-state │ │ │ ├── description.md │ │ │ └── markup.html │ ├── input-field │ │ ├── tel │ │ │ ├── description.md │ │ │ └── markup.html │ │ ├── text │ │ │ ├── description.md │ │ │ └── markup.html │ │ ├── email │ │ │ ├── description.md │ │ │ └── markup.html │ │ ├── number │ │ │ ├── description.md │ │ │ └── markup.html │ │ ├── search │ │ │ ├── description.md │ │ │ └── markup.html │ │ ├── text-area │ │ │ ├── description.md │ │ │ └── markup.html │ │ ├── error-state │ │ │ ├── description.md │ │ │ └── markup.html │ │ └── description.md │ └── select-field │ │ ├── description.md │ │ ├── error-state │ │ ├── description.md │ │ └── markup.html │ │ └── select-menu │ │ ├── description.md │ │ └── markup.html ├── favicon.png ├── assets │ ├── js │ │ └── patterns.js │ └── images │ │ └── logo │ │ └── logo.svg ├── LICENSE.txt ├── data.json ├── app │ ├── js │ │ ├── main.min.js │ │ └── main.js │ └── css │ │ ├── styles.min.css │ │ └── styles.css └── index.html ├── .env.sample ├── astrum-config.json ├── dist ├── markup │ ├── button │ │ └── default │ │ │ └── markup.html │ ├── input-field │ │ ├── tel │ │ │ └── markup.html │ │ ├── text │ │ │ └── markup.html │ │ ├── error-state │ │ │ └── markup.html │ │ ├── number │ │ │ └── markup.html │ │ ├── search │ │ │ └── markup.html │ │ ├── text-area │ │ │ └── markup.html │ │ └── email │ │ │ └── markup.html │ ├── label │ │ └── default │ │ │ └── markup.html │ ├── check-field │ │ ├── checkbox │ │ │ └── markup.html │ │ ├── radio │ │ │ └── markup.html │ │ └── error-state │ │ │ └── markup.html │ └── select-field │ │ ├── select-menu │ │ └── markup.html │ │ └── error-state │ │ └── markup.html ├── css │ ├── boilerform.css.map │ ├── boilerform.min.css │ └── boilerform.css └── js │ ├── boilerform.min.js │ ├── boilerform.min.js.map │ ├── boilerform.js.map │ └── boilerform.js ├── .babelrc ├── .github ├── PULL_REQUEST_TEMPLATE.md └── ISSUE_TEMPLATE.md ├── .gitignore ├── assets ├── scss │ ├── layouts │ │ └── _l-form.scss │ ├── _functions.scss │ ├── mixins │ │ └── _namespace.scss │ ├── _helpers.scss │ ├── components │ │ ├── _c-input-field.scss │ │ ├── _c-label.scss │ │ ├── _c-button.scss │ │ ├── _c-select-field.scss │ │ └── _c-check-field.scss │ ├── boilerform.scss │ ├── _config.scss │ └── _reset.scss └── js │ ├── boilerform.js │ └── modules │ └── validation.js ├── .eslintrc ├── generator └── dist.js ├── LICENSE.txt ├── package.json ├── webpack.config.js ├── readme.md └── CONTRIBUTING.md /pattern-library/components/button/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/label/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.env.sample: -------------------------------------------------------------------------------- 1 | CSS_OUTPUT_PATH= 2 | JS_OUTPUT_PATH= 3 | -------------------------------------------------------------------------------- /pattern-library/components/check-field/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/button/default/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/tel/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/text/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/label/default/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/select-field/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /astrum-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "path": "pattern-library" 3 | } -------------------------------------------------------------------------------- /pattern-library/components/check-field/checkbox/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/check-field/radio/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/email/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/number/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/search/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/text-area/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/check-field/error-state/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/error-state/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/select-field/error-state/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/select-field/select-menu/description.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dist/markup/button/default/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["env"], 3 | "plugins": ["babel-plugin-add-module-exports"] 4 | } -------------------------------------------------------------------------------- /pattern-library/components/button/default/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dist/markup/input-field/tel/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dist/markup/input-field/text/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andy-set-studio/boilerform/HEAD/pattern-library/favicon.png -------------------------------------------------------------------------------- /dist/css/boilerform.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":[],"names":[],"mappings":"","file":"../css/boilerform.css","sourceRoot":""} -------------------------------------------------------------------------------- /pattern-library/components/input-field/tel/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/text/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dist/markup/input-field/error-state/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dist/markup/input-field/number/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dist/markup/input-field/search/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dist/markup/input-field/text-area/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dist/markup/label/default/markup.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/error-state/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/number/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dist/markup/input-field/email/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/search/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/text-area/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/label/default/markup.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/email/markup.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pattern-library/components/input-field/description.md: -------------------------------------------------------------------------------- 1 | Generic input fields with variations for size, placeholders and validation states. Relevant attributes are added to help users input data as efficiently as possible. -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Fixes Issue # (Delete if not applicable) 2 | 3 | ## Proposed Changes 4 | 5 | - 6 | - 7 | - 8 | 9 | ## Add a GIF that demonstrates how this Pull Request makes you feel (optional) 10 |  -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Expected Behavior 2 | 3 | 4 | ## Actual Behavior 5 | 6 | 7 | ## Steps to Reproduce the Problem 8 | 9 | 1. 10 | 1. 11 | 1. 12 | 13 | ## Specifications 14 | 15 | - Version: 16 | - Platform: 17 | - Browser: 18 | - Environment/Url: -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Common 2 | node_modules 3 | .DS_Store 4 | .sass-cache 5 | *.log 6 | *.scssc 7 | npm-debug.* 8 | .env 9 | 10 | # Compiled assets 11 | pattern-library/assets/css 12 | 13 | # Ignore 'sandbox'. This is where you can play around with features etc 14 | sandbox/ 15 | -------------------------------------------------------------------------------- /pattern-library/assets/js/patterns.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var componentSamples = [].slice.call(document.querySelectorAll('.ndpl-component__sample')); 3 | 4 | if(componentSamples.length) { 5 | componentSamples.map(function(item) { 6 | item.classList.add('boilerform'); 7 | }); 8 | } 9 | }()); -------------------------------------------------------------------------------- /assets/scss/layouts/_l-form.scss: -------------------------------------------------------------------------------- 1 | /*------------------------------------*\ 2 | FORM LAYOUT 3 | 4 | The main form layout that gives 5 | you rythm, alignment and flow 6 | \*------------------------------------*/ 7 | $namespace: ".l-form"; 8 | 9 | #{ $namespace } { 10 | 11 | @include namespace() { 12 | 13 | } 14 | } -------------------------------------------------------------------------------- /dist/markup/check-field/checkbox/markup.html: -------------------------------------------------------------------------------- 1 |