From cb8c357bd24e230d7c7e6046489ffc5f0b1962a6 Mon Sep 17 00:00:00 2001 From: Stacey Gammon Date: Tue, 10 Jul 2018 09:13:01 -0400 Subject: [PATCH 1/3] Add typings for keyCodes --- CHANGELOG.md | 2 +- src/services/index.d.ts | 1 + src/services/key_codes.d.ts | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/services/key_codes.d.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 01cdfb07e2f..34ae40cc819 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ ## [`master`](https://github.com/elastic/eui/tree/master) +- Added typings for keyCodes - Changed `EuiXYChart` components exports to `/experimental` subfolder ([#975](https://github.com/elastic/eui/pull/975)) - Added beta version of `EuiXYChart` and associated components ([#309](https://github.com/elastic/eui/pull/309)) - **Bug fixes** - Fixed some IE11 flex box bugs and documented others (modal overflowing, image shrinking, and flex group wrapping) ([#973](https://github.com/elastic/eui/pull/973)) diff --git a/src/services/index.d.ts b/src/services/index.d.ts index 42a6bb261e0..ec6704fc16c 100644 --- a/src/services/index.d.ts +++ b/src/services/index.d.ts @@ -1,2 +1,3 @@ /// +/// /// diff --git a/src/services/key_codes.d.ts b/src/services/key_codes.d.ts new file mode 100644 index 00000000000..a000acb4a48 --- /dev/null +++ b/src/services/key_codes.d.ts @@ -0,0 +1,15 @@ + +declare module '@elastic/eui' { + export enum keyCodes { + ENTER = 13, + SPACE = 32, + ESCAPE = 27, + TAB = 9, + BACKSPACE = 8, + + DOWN = 40, + UP = 38, + LEFT = 37, + RIGHT = 39, + }; + } \ No newline at end of file From 5bf33d7ce001bf027ed079c2441b9267dfadcce2 Mon Sep 17 00:00:00 2001 From: Stacey Gammon Date: Tue, 10 Jul 2018 09:15:22 -0400 Subject: [PATCH 2/3] Add correct PR # --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34ae40cc819..5b210d97ef5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## [`master`](https://github.com/elastic/eui/tree/master) -- Added typings for keyCodes +- Added typings for keyCodes ([#988](https://github.com/elastic/eui/pull/988)) - Changed `EuiXYChart` components exports to `/experimental` subfolder ([#975](https://github.com/elastic/eui/pull/975)) - Added beta version of `EuiXYChart` and associated components ([#309](https://github.com/elastic/eui/pull/309)) **Bug fixes** From 39c033176512f1cad32394ba28c5788c3d882c27 Mon Sep 17 00:00:00 2001 From: Stacey Gammon Date: Tue, 10 Jul 2018 09:16:01 -0400 Subject: [PATCH 3/3] put back newline accidentally deleted --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b210d97ef5..3400c65ca20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Added typings for keyCodes ([#988](https://github.com/elastic/eui/pull/988)) - Changed `EuiXYChart` components exports to `/experimental` subfolder ([#975](https://github.com/elastic/eui/pull/975)) - Added beta version of `EuiXYChart` and associated components ([#309](https://github.com/elastic/eui/pull/309)) + **Bug fixes** - Fixed some IE11 flex box bugs and documented others (modal overflowing, image shrinking, and flex group wrapping) ([#973](https://github.com/elastic/eui/pull/973))