Skip to content

Commit

Permalink
Merge pull request #5 from alsiola/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
alsiola authored Jan 28, 2018
2 parents d554627 + ef76088 commit ba21eda
Show file tree
Hide file tree
Showing 25 changed files with 55 additions and 3,078 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ Many modern applications need to be internationalized, and this can be an issue

In modern JavaScript development bundle size is always a concern - currently form-and-function weights in at just 3.54KB gzipped (14.87KB uncompressed).

* [Examples](#examples)
* [Installation](#installation)
* [Usage](#usage)
* [Validation](#validation)
* [Built-In Validators](#built-in-validators)
* [Custom Errors](#custom-validation-errors)
* [Combining Validators](#combining-validators)
* [Covalidating Fields](#covalidated-fields)
* [Custom Validators](#writing-your-own-validators)
* [Internationalization](#internationalization)

## Examples

There are several examples in the `demo` folder of this repository. They can be run locally by cloning this repository, installing dependencies and running `yarn start`. If anything is unclear then raise an issue, or tweet me @bigalreturns
Expand Down Expand Up @@ -165,6 +176,8 @@ import { Form, validation } from "form-and-function";
/>;
```

#### Built In Validators

If this looks long-winded then say hello to some built in validators! Currently we provide the following:

* `validation.required` - Is the value defined, with a length of > 0 when converted to a string
Expand Down
8 changes: 4 additions & 4 deletions docs/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"main.css": "static/css/main.095f15f8.css",
"main.css.map": "static/css/main.095f15f8.css.map",
"main.js": "static/js/main.8d0c625c.js",
"main.js.map": "static/js/main.8d0c625c.js.map",
"main.css": "static/css/main.fa179942.css",
"main.css.map": "static/css/main.fa179942.css.map",
"main.js": "static/js/main.9f58b0a0.js",
"main.js.map": "static/js/main.9f58b0a0.js.map",
"static/media/flags.png": "static/media/flags.9c74e172.png",
"static/media/icons.eot": "static/media/icons.674f50d2.eot",
"static/media/icons.svg": "static/media/icons.912ec66d.svg",
Expand Down
12 changes: 0 additions & 12 deletions docs/build/asset-manifest.json

This file was deleted.

Binary file removed docs/build/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion docs/build/index.html

This file was deleted.

15 changes: 0 additions & 15 deletions docs/build/manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion docs/build/service-worker.js

This file was deleted.

Binary file removed docs/build/static/media/flags.9c74e172.png
Binary file not shown.
Binary file removed docs/build/static/media/icons.674f50d2.eot
Binary file not shown.
Loading

0 comments on commit ba21eda

Please sign in to comment.