From f16ebdecc6de550d72a7339c7032ec31322cf7fd Mon Sep 17 00:00:00 2001 From: Sami Suo-Heikki Date: Sat, 15 Dec 2018 13:11:43 +0200 Subject: [PATCH] Add component --- README.md | 24 ++++--- bower.json | 4 +- demo/demos.json | 10 +++ demo/email-field-demos.html | 27 ++++++++ demo/index.html | 1 + src/vaadin-email-field.html | 67 ++++++++++++++++++++ test/email-field.html | 86 ++++++++++++++++++++++++++ test/test-suites.js | 3 +- theme/lumo/vaadin-email-field.html | 2 + theme/material/vaadin-email-field.html | 2 + vaadin-directory-description.md | 1 + vaadin-email-field.html | 1 + 12 files changed, 217 insertions(+), 11 deletions(-) create mode 100644 demo/email-field-demos.html create mode 100644 src/vaadin-email-field.html create mode 100644 test/email-field.html create mode 100644 theme/lumo/vaadin-email-field.html create mode 100644 theme/material/vaadin-email-field.html create mode 100644 vaadin-email-field.html diff --git a/README.md b/README.md index 258b7ccf..ff931b8e 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ + @@ -32,6 +33,7 @@ + ``` [Screenshot of vaadin-text-field](https://vaadin.com/components/vaadin-text-field) @@ -82,23 +84,27 @@ To use the Material theme, import the correspondent file from the `theme/materia - The components with the Lumo theme: - `theme/lumo/vaadin-text-field.html` - `theme/lumo/vaadin-text-area.html` + `theme/lumo/vaadin-text-field.html` + `theme/lumo/vaadin-text-area.html` `theme/lumo/vaadin-password-field.html` + `theme/lumo/vaadin-email-field.html` - The components with the Material theme: - `theme/material/vaadin-text-field.html` - `theme/material/vaadin-text-area.html` + `theme/material/vaadin-text-field.html` + `theme/material/vaadin-text-area.html` `theme/material/vaadin-password-field.html` + `theme/material/vaadin-email-field.html` -- Aliases for `theme/lumo/vaadin-text-field.html` - `theme/lumo/vaadin-text-area.html` - `theme/lumo/vaadin-password-field.html`: +- Aliases for `theme/lumo/vaadin-text-field.html` + `theme/lumo/vaadin-text-area.html` + `theme/lumo/vaadin-password-field.html` + `theme/lumo/vaadin-email-field.html`: - `vaadin-text-field.html` - `vaadin-text-area.html` + `vaadin-text-field.html` + `vaadin-text-area.html` `vaadin-password-field.html` + `vaadin-email-field.html` ## Running demos and tests in browser diff --git a/bower.json b/bower.json index c978620d..4fb4184f 100644 --- a/bower.json +++ b/bower.json @@ -9,9 +9,11 @@ "vaadin-text-field.html", "vaadin-password-field.html", "vaadin-text-area.html", + "vaadin-email-field.html", "theme/material/vaadin-password-field.html", "theme/material/vaadin-text-area.html", - "theme/material/vaadin-text-field.html" + "theme/material/vaadin-text-field.html", + "theme/material/vaadin-email.field.html" ], "keywords": [ "Vaadin", diff --git a/demo/demos.json b/demo/demos.json index cf452cfd..1fa81b16 100644 --- a/demo/demos.json +++ b/demo/demos.json @@ -51,6 +51,16 @@ "image": "" } }, + { + "name": "Email Field", + "url": "email-field-demos", + "src": "email-field-demos.html", + "meta": { + "title": "Vaadin Email Field Examples", + "description": "", + "image": "" + } + }, { "name": "Text Area", "url": "text-area-demos", diff --git a/demo/email-field-demos.html b/demo/email-field-demos.html new file mode 100644 index 00000000..116af3d4 --- /dev/null +++ b/demo/email-field-demos.html @@ -0,0 +1,27 @@ + + + + diff --git a/demo/index.html b/demo/index.html index a296cc7d..1da0eddb 100644 --- a/demo/index.html +++ b/demo/index.html @@ -15,6 +15,7 @@ + diff --git a/src/vaadin-email-field.html b/src/vaadin-email-field.html new file mode 100644 index 00000000..a5edee50 --- /dev/null +++ b/src/vaadin-email-field.html @@ -0,0 +1,67 @@ + + + + + + + diff --git a/test/email-field.html b/test/email-field.html new file mode 100644 index 00000000..2fb099f7 --- /dev/null +++ b/test/email-field.html @@ -0,0 +1,86 @@ + + + + + vaadin-email-field tests + + + + + + + + + + + + + + + diff --git a/test/test-suites.js b/test/test-suites.js index 7cad4ce1..e471cdbc 100644 --- a/test/test-suites.js +++ b/test/test-suites.js @@ -4,5 +4,6 @@ window.VaadinTextFieldSuites = [ 'password-field.html', 'validation.html', 'accessibility.html', - 'custom-input.html' + 'custom-input.html', + 'email-field.html' ]; diff --git a/theme/lumo/vaadin-email-field.html b/theme/lumo/vaadin-email-field.html new file mode 100644 index 00000000..7d697516 --- /dev/null +++ b/theme/lumo/vaadin-email-field.html @@ -0,0 +1,2 @@ + + diff --git a/theme/material/vaadin-email-field.html b/theme/material/vaadin-email-field.html new file mode 100644 index 00000000..7d697516 --- /dev/null +++ b/theme/material/vaadin-email-field.html @@ -0,0 +1,2 @@ + + diff --git a/vaadin-directory-description.md b/vaadin-directory-description.md index 8e8c29e6..a4c705a4 100644 --- a/vaadin-directory-description.md +++ b/vaadin-directory-description.md @@ -13,4 +13,5 @@ + ``` diff --git a/vaadin-email-field.html b/vaadin-email-field.html new file mode 100644 index 00000000..2117761c --- /dev/null +++ b/vaadin-email-field.html @@ -0,0 +1 @@ +