: null
diff --git a/ui_framework/components/color_picker/color_picker.test.js b/ui_framework/src/components/color_picker/color_picker.test.js
similarity index 83%
rename from ui_framework/components/color_picker/color_picker.test.js
rename to ui_framework/src/components/color_picker/color_picker.test.js
index df06daed647a..8c848634e342 100644
--- a/ui_framework/components/color_picker/color_picker.test.js
+++ b/ui_framework/src/components/color_picker/color_picker.test.js
@@ -16,9 +16,9 @@ beforeEach(() => {
test('renders KuiColorPicker', () => {
const colorPicker = render(
);
expect(colorPicker).toMatchSnapshot();
@@ -27,9 +27,9 @@ test('renders KuiColorPicker', () => {
test('renders KuiColorPicker with an empty swatch when color is null', () => {
const colorPicker = render(
);
expect(colorPicker).toMatchSnapshot();
@@ -38,10 +38,10 @@ test('renders KuiColorPicker with an empty swatch when color is null', () => {
test('renders KuiColorPicker without a color label when showColorLabel is false', () => {
const colorPicker = render(
);
expect(colorPicker).toMatchSnapshot();
@@ -50,9 +50,9 @@ test('renders KuiColorPicker without a color label when showColorLabel is false'
test('pop up color selector is not shown by default', () => {
const colorPicker = mount(
);
@@ -63,9 +63,9 @@ test('pop up color selector is not shown by default', () => {
test('pop up color selector is shown when the color swatch is clicked', () => {
const colorPicker = mount(
);
@@ -77,9 +77,9 @@ test('pop up color selector is shown when the color swatch is clicked', () => {
test('pop up color selector is hidden when the color swatch is clicked twice', () => {
const colorPicker = mount(
);
@@ -92,9 +92,9 @@ test('pop up color selector is hidden when the color swatch is clicked twice', (
test('Setting a new color calls onChange', () => {
const colorPicker = mount(
);
diff --git a/ui_framework/components/color_picker/color_picker_empty_swatch.js b/ui_framework/src/components/color_picker/color_picker_empty_swatch.js
similarity index 100%
rename from ui_framework/components/color_picker/color_picker_empty_swatch.js
rename to ui_framework/src/components/color_picker/color_picker_empty_swatch.js
diff --git a/ui_framework/components/color_picker/color_picker_swatch.js b/ui_framework/src/components/color_picker/color_picker_swatch.js
similarity index 91%
rename from ui_framework/components/color_picker/color_picker_swatch.js
rename to ui_framework/src/components/color_picker/color_picker_swatch.js
index c5da105718d2..93bdd6b07b1e 100644
--- a/ui_framework/components/color_picker/color_picker_swatch.js
+++ b/ui_framework/src/components/color_picker/color_picker_swatch.js
@@ -18,8 +18,8 @@ export function KuiColorPickerSwatch(props) {
return (
diff --git a/ui_framework/components/color_picker/index.js b/ui_framework/src/components/color_picker/index.js
similarity index 100%
rename from ui_framework/components/color_picker/index.js
rename to ui_framework/src/components/color_picker/index.js
diff --git a/ui_framework/components/column/_column.scss b/ui_framework/src/components/column/_column.scss
similarity index 100%
rename from ui_framework/components/column/_column.scss
rename to ui_framework/src/components/column/_column.scss
diff --git a/ui_framework/components/column/_index.scss b/ui_framework/src/components/column/_index.scss
similarity index 100%
rename from ui_framework/components/column/_index.scss
rename to ui_framework/src/components/column/_index.scss
diff --git a/ui_framework/components/empty_table_prompt/__snapshots__/empty_table_prompt.test.js.snap b/ui_framework/src/components/empty_table_prompt/__snapshots__/empty_table_prompt.test.js.snap
similarity index 100%
rename from ui_framework/components/empty_table_prompt/__snapshots__/empty_table_prompt.test.js.snap
rename to ui_framework/src/components/empty_table_prompt/__snapshots__/empty_table_prompt.test.js.snap
diff --git a/ui_framework/components/empty_table_prompt/__snapshots__/empty_table_prompt_actions.test.js.snap b/ui_framework/src/components/empty_table_prompt/__snapshots__/empty_table_prompt_actions.test.js.snap
similarity index 100%
rename from ui_framework/components/empty_table_prompt/__snapshots__/empty_table_prompt_actions.test.js.snap
rename to ui_framework/src/components/empty_table_prompt/__snapshots__/empty_table_prompt_actions.test.js.snap
diff --git a/ui_framework/components/empty_table_prompt/__snapshots__/empty_table_prompt_message.test.js.snap b/ui_framework/src/components/empty_table_prompt/__snapshots__/empty_table_prompt_message.test.js.snap
similarity index 100%
rename from ui_framework/components/empty_table_prompt/__snapshots__/empty_table_prompt_message.test.js.snap
rename to ui_framework/src/components/empty_table_prompt/__snapshots__/empty_table_prompt_message.test.js.snap
diff --git a/ui_framework/components/empty_table_prompt/__snapshots__/empty_table_prompt_panel.test.js.snap b/ui_framework/src/components/empty_table_prompt/__snapshots__/empty_table_prompt_panel.test.js.snap
similarity index 100%
rename from ui_framework/components/empty_table_prompt/__snapshots__/empty_table_prompt_panel.test.js.snap
rename to ui_framework/src/components/empty_table_prompt/__snapshots__/empty_table_prompt_panel.test.js.snap
diff --git a/ui_framework/components/empty_table_prompt/_empty_table_prompt.scss b/ui_framework/src/components/empty_table_prompt/_empty_table_prompt.scss
similarity index 100%
rename from ui_framework/components/empty_table_prompt/_empty_table_prompt.scss
rename to ui_framework/src/components/empty_table_prompt/_empty_table_prompt.scss
diff --git a/ui_framework/components/empty_table_prompt/_index.scss b/ui_framework/src/components/empty_table_prompt/_index.scss
similarity index 100%
rename from ui_framework/components/empty_table_prompt/_index.scss
rename to ui_framework/src/components/empty_table_prompt/_index.scss
diff --git a/ui_framework/components/empty_table_prompt/empty_table_prompt.js b/ui_framework/src/components/empty_table_prompt/empty_table_prompt.js
similarity index 100%
rename from ui_framework/components/empty_table_prompt/empty_table_prompt.js
rename to ui_framework/src/components/empty_table_prompt/empty_table_prompt.js
diff --git a/ui_framework/components/empty_table_prompt/empty_table_prompt.test.js b/ui_framework/src/components/empty_table_prompt/empty_table_prompt.test.js
similarity index 96%
rename from ui_framework/components/empty_table_prompt/empty_table_prompt.test.js
rename to ui_framework/src/components/empty_table_prompt/empty_table_prompt.test.js
index 713c52664ba2..300bc1ab3aac 100644
--- a/ui_framework/components/empty_table_prompt/empty_table_prompt.test.js
+++ b/ui_framework/src/components/empty_table_prompt/empty_table_prompt.test.js
@@ -25,7 +25,7 @@ test('renders KuiEmptyTablePrompt', () => {
}
message="Uh oh, You have no items!"
- { ...requiredProps }
+ {...requiredProps}
/>);
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/empty_table_prompt/empty_table_prompt_actions.js b/ui_framework/src/components/empty_table_prompt/empty_table_prompt_actions.js
similarity index 100%
rename from ui_framework/components/empty_table_prompt/empty_table_prompt_actions.js
rename to ui_framework/src/components/empty_table_prompt/empty_table_prompt_actions.js
diff --git a/ui_framework/components/empty_table_prompt/empty_table_prompt_actions.test.js b/ui_framework/src/components/empty_table_prompt/empty_table_prompt_actions.test.js
similarity index 73%
rename from ui_framework/components/empty_table_prompt/empty_table_prompt_actions.test.js
rename to ui_framework/src/components/empty_table_prompt/empty_table_prompt_actions.test.js
index 0d2a20336b2f..c4ee04593159 100644
--- a/ui_framework/components/empty_table_prompt/empty_table_prompt_actions.test.js
+++ b/ui_framework/src/components/empty_table_prompt/empty_table_prompt_actions.test.js
@@ -7,6 +7,6 @@ import {
} from './empty_table_prompt_actions';
test('renders KuiEmptyTablePromptActions', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/empty_table_prompt/empty_table_prompt_message.js b/ui_framework/src/components/empty_table_prompt/empty_table_prompt_message.js
similarity index 100%
rename from ui_framework/components/empty_table_prompt/empty_table_prompt_message.js
rename to ui_framework/src/components/empty_table_prompt/empty_table_prompt_message.js
diff --git a/ui_framework/components/empty_table_prompt/empty_table_prompt_message.test.js b/ui_framework/src/components/empty_table_prompt/empty_table_prompt_message.test.js
similarity index 73%
rename from ui_framework/components/empty_table_prompt/empty_table_prompt_message.test.js
rename to ui_framework/src/components/empty_table_prompt/empty_table_prompt_message.test.js
index e7c044ca6909..069ed8e24fdf 100644
--- a/ui_framework/components/empty_table_prompt/empty_table_prompt_message.test.js
+++ b/ui_framework/src/components/empty_table_prompt/empty_table_prompt_message.test.js
@@ -7,6 +7,6 @@ import {
} from './empty_table_prompt_message';
test('renders KuiEmptyTablePromptMessage', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/empty_table_prompt/empty_table_prompt_panel.js b/ui_framework/src/components/empty_table_prompt/empty_table_prompt_panel.js
similarity index 100%
rename from ui_framework/components/empty_table_prompt/empty_table_prompt_panel.js
rename to ui_framework/src/components/empty_table_prompt/empty_table_prompt_panel.js
diff --git a/ui_framework/components/empty_table_prompt/empty_table_prompt_panel.test.js b/ui_framework/src/components/empty_table_prompt/empty_table_prompt_panel.test.js
similarity index 73%
rename from ui_framework/components/empty_table_prompt/empty_table_prompt_panel.test.js
rename to ui_framework/src/components/empty_table_prompt/empty_table_prompt_panel.test.js
index af1bfa188975..676432e6c6b4 100644
--- a/ui_framework/components/empty_table_prompt/empty_table_prompt_panel.test.js
+++ b/ui_framework/src/components/empty_table_prompt/empty_table_prompt_panel.test.js
@@ -7,6 +7,6 @@ import {
} from './empty_table_prompt_panel';
test('renders KuiEmptyTablePromptPanel', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/empty_table_prompt/index.js b/ui_framework/src/components/empty_table_prompt/index.js
similarity index 100%
rename from ui_framework/components/empty_table_prompt/index.js
rename to ui_framework/src/components/empty_table_prompt/index.js
diff --git a/ui_framework/components/event/__snapshots__/event.test.js.snap b/ui_framework/src/components/event/__snapshots__/event.test.js.snap
similarity index 100%
rename from ui_framework/components/event/__snapshots__/event.test.js.snap
rename to ui_framework/src/components/event/__snapshots__/event.test.js.snap
diff --git a/ui_framework/components/event/__snapshots__/event_body.test.js.snap b/ui_framework/src/components/event/__snapshots__/event_body.test.js.snap
similarity index 100%
rename from ui_framework/components/event/__snapshots__/event_body.test.js.snap
rename to ui_framework/src/components/event/__snapshots__/event_body.test.js.snap
diff --git a/ui_framework/components/event/__snapshots__/event_body_message.test.js.snap b/ui_framework/src/components/event/__snapshots__/event_body_message.test.js.snap
similarity index 100%
rename from ui_framework/components/event/__snapshots__/event_body_message.test.js.snap
rename to ui_framework/src/components/event/__snapshots__/event_body_message.test.js.snap
diff --git a/ui_framework/components/event/__snapshots__/event_body_metadata.test.js.snap b/ui_framework/src/components/event/__snapshots__/event_body_metadata.test.js.snap
similarity index 100%
rename from ui_framework/components/event/__snapshots__/event_body_metadata.test.js.snap
rename to ui_framework/src/components/event/__snapshots__/event_body_metadata.test.js.snap
diff --git a/ui_framework/components/event/__snapshots__/event_symbol.test.js.snap b/ui_framework/src/components/event/__snapshots__/event_symbol.test.js.snap
similarity index 100%
rename from ui_framework/components/event/__snapshots__/event_symbol.test.js.snap
rename to ui_framework/src/components/event/__snapshots__/event_symbol.test.js.snap
diff --git a/ui_framework/components/event/_event.scss b/ui_framework/src/components/event/_event.scss
similarity index 100%
rename from ui_framework/components/event/_event.scss
rename to ui_framework/src/components/event/_event.scss
diff --git a/ui_framework/components/event/_index.scss b/ui_framework/src/components/event/_index.scss
similarity index 100%
rename from ui_framework/components/event/_index.scss
rename to ui_framework/src/components/event/_index.scss
diff --git a/ui_framework/components/event/event.js b/ui_framework/src/components/event/event.js
similarity index 100%
rename from ui_framework/components/event/event.js
rename to ui_framework/src/components/event/event.js
diff --git a/ui_framework/components/event/event.test.js b/ui_framework/src/components/event/event.test.js
similarity index 77%
rename from ui_framework/components/event/event.test.js
rename to ui_framework/src/components/event/event.test.js
index 364357f90703..6de87e616e4a 100644
--- a/ui_framework/components/event/event.test.js
+++ b/ui_framework/src/components/event/event.test.js
@@ -7,6 +7,6 @@ import {
} from './event';
test('renders KuiEvent', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/event/event_body.js b/ui_framework/src/components/event/event_body.js
similarity index 100%
rename from ui_framework/components/event/event_body.js
rename to ui_framework/src/components/event/event_body.js
diff --git a/ui_framework/components/event/event_body.test.js b/ui_framework/src/components/event/event_body.test.js
similarity index 76%
rename from ui_framework/components/event/event_body.test.js
rename to ui_framework/src/components/event/event_body.test.js
index 7524bccd0866..436e41bf14dd 100644
--- a/ui_framework/components/event/event_body.test.js
+++ b/ui_framework/src/components/event/event_body.test.js
@@ -7,6 +7,6 @@ import {
} from './event_body';
test('renders KuiEventBody', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/event/event_body_message.js b/ui_framework/src/components/event/event_body_message.js
similarity index 100%
rename from ui_framework/components/event/event_body_message.js
rename to ui_framework/src/components/event/event_body_message.js
diff --git a/ui_framework/components/event/event_body_message.test.js b/ui_framework/src/components/event/event_body_message.test.js
similarity index 74%
rename from ui_framework/components/event/event_body_message.test.js
rename to ui_framework/src/components/event/event_body_message.test.js
index 331da2c8124a..ee212a2d7f72 100644
--- a/ui_framework/components/event/event_body_message.test.js
+++ b/ui_framework/src/components/event/event_body_message.test.js
@@ -7,6 +7,6 @@ import {
} from './event_body_message';
test('renders KuiEventBodyMessage', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/event/event_body_metadata.js b/ui_framework/src/components/event/event_body_metadata.js
similarity index 100%
rename from ui_framework/components/event/event_body_metadata.js
rename to ui_framework/src/components/event/event_body_metadata.js
diff --git a/ui_framework/components/event/event_body_metadata.test.js b/ui_framework/src/components/event/event_body_metadata.test.js
similarity index 74%
rename from ui_framework/components/event/event_body_metadata.test.js
rename to ui_framework/src/components/event/event_body_metadata.test.js
index c9784185f12a..164c0fa0abbf 100644
--- a/ui_framework/components/event/event_body_metadata.test.js
+++ b/ui_framework/src/components/event/event_body_metadata.test.js
@@ -7,6 +7,6 @@ import {
} from './event_body_metadata';
test('renders KuiEventBodyMetadata', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/event/event_symbol.js b/ui_framework/src/components/event/event_symbol.js
similarity index 100%
rename from ui_framework/components/event/event_symbol.js
rename to ui_framework/src/components/event/event_symbol.js
diff --git a/ui_framework/components/event/event_symbol.test.js b/ui_framework/src/components/event/event_symbol.test.js
similarity index 75%
rename from ui_framework/components/event/event_symbol.test.js
rename to ui_framework/src/components/event/event_symbol.test.js
index c6bd35158c33..903c48dd3fb3 100644
--- a/ui_framework/components/event/event_symbol.test.js
+++ b/ui_framework/src/components/event/event_symbol.test.js
@@ -7,6 +7,6 @@ import {
} from './event_symbol';
test('renders KuiEventSymbol', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/event/index.js b/ui_framework/src/components/event/index.js
similarity index 100%
rename from ui_framework/components/event/index.js
rename to ui_framework/src/components/event/index.js
diff --git a/ui_framework/components/expression/_expression.scss b/ui_framework/src/components/expression/_expression.scss
similarity index 100%
rename from ui_framework/components/expression/_expression.scss
rename to ui_framework/src/components/expression/_expression.scss
diff --git a/ui_framework/components/expression/_index.scss b/ui_framework/src/components/expression/_index.scss
similarity index 100%
rename from ui_framework/components/expression/_index.scss
rename to ui_framework/src/components/expression/_index.scss
diff --git a/ui_framework/components/form/_assisted_input.scss b/ui_framework/src/components/form/_assisted_input.scss
similarity index 100%
rename from ui_framework/components/form/_assisted_input.scss
rename to ui_framework/src/components/form/_assisted_input.scss
diff --git a/ui_framework/components/form/_check_box.scss b/ui_framework/src/components/form/_check_box.scss
similarity index 100%
rename from ui_framework/components/form/_check_box.scss
rename to ui_framework/src/components/form/_check_box.scss
diff --git a/ui_framework/components/form/_index.scss b/ui_framework/src/components/form/_index.scss
similarity index 100%
rename from ui_framework/components/form/_index.scss
rename to ui_framework/src/components/form/_index.scss
diff --git a/ui_framework/components/form/_label.scss b/ui_framework/src/components/form/_label.scss
similarity index 100%
rename from ui_framework/components/form/_label.scss
rename to ui_framework/src/components/form/_label.scss
diff --git a/ui_framework/components/form/_search_input.scss b/ui_framework/src/components/form/_search_input.scss
similarity index 100%
rename from ui_framework/components/form/_search_input.scss
rename to ui_framework/src/components/form/_search_input.scss
diff --git a/ui_framework/components/form/_select.scss b/ui_framework/src/components/form/_select.scss
similarity index 100%
rename from ui_framework/components/form/_select.scss
rename to ui_framework/src/components/form/_select.scss
diff --git a/ui_framework/components/form/_static_input.scss b/ui_framework/src/components/form/_static_input.scss
similarity index 100%
rename from ui_framework/components/form/_static_input.scss
rename to ui_framework/src/components/form/_static_input.scss
diff --git a/ui_framework/components/form/_text_area.scss b/ui_framework/src/components/form/_text_area.scss
similarity index 100%
rename from ui_framework/components/form/_text_area.scss
rename to ui_framework/src/components/form/_text_area.scss
diff --git a/ui_framework/components/form/_text_input.scss b/ui_framework/src/components/form/_text_input.scss
similarity index 100%
rename from ui_framework/components/form/_text_input.scss
rename to ui_framework/src/components/form/_text_input.scss
diff --git a/ui_framework/components/form_layout/__snapshots__/field_group.test.js.snap b/ui_framework/src/components/form_layout/__snapshots__/field_group.test.js.snap
similarity index 100%
rename from ui_framework/components/form_layout/__snapshots__/field_group.test.js.snap
rename to ui_framework/src/components/form_layout/__snapshots__/field_group.test.js.snap
diff --git a/ui_framework/components/form_layout/__snapshots__/field_group_section.test.js.snap b/ui_framework/src/components/form_layout/__snapshots__/field_group_section.test.js.snap
similarity index 100%
rename from ui_framework/components/form_layout/__snapshots__/field_group_section.test.js.snap
rename to ui_framework/src/components/form_layout/__snapshots__/field_group_section.test.js.snap
diff --git a/ui_framework/components/form_layout/_field_group.scss b/ui_framework/src/components/form_layout/_field_group.scss
similarity index 100%
rename from ui_framework/components/form_layout/_field_group.scss
rename to ui_framework/src/components/form_layout/_field_group.scss
diff --git a/ui_framework/components/form_layout/_index.scss b/ui_framework/src/components/form_layout/_index.scss
similarity index 100%
rename from ui_framework/components/form_layout/_index.scss
rename to ui_framework/src/components/form_layout/_index.scss
diff --git a/ui_framework/components/form_layout/field_group.js b/ui_framework/src/components/form_layout/field_group.js
similarity index 100%
rename from ui_framework/components/form_layout/field_group.js
rename to ui_framework/src/components/form_layout/field_group.js
diff --git a/ui_framework/components/form_layout/field_group.test.js b/ui_framework/src/components/form_layout/field_group.test.js
similarity index 67%
rename from ui_framework/components/form_layout/field_group.test.js
rename to ui_framework/src/components/form_layout/field_group.test.js
index 38f73eefe9af..8551fbf4d4e5 100644
--- a/ui_framework/components/form_layout/field_group.test.js
+++ b/ui_framework/src/components/form_layout/field_group.test.js
@@ -7,11 +7,11 @@ import {
} from './field_group';
test('renders KuiFieldGroup', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
test('renders KuiFieldGroup isAlignedTop', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/form_layout/field_group_section.js b/ui_framework/src/components/form_layout/field_group_section.js
similarity index 100%
rename from ui_framework/components/form_layout/field_group_section.js
rename to ui_framework/src/components/form_layout/field_group_section.js
diff --git a/ui_framework/components/form_layout/field_group_section.test.js b/ui_framework/src/components/form_layout/field_group_section.test.js
similarity index 65%
rename from ui_framework/components/form_layout/field_group_section.test.js
rename to ui_framework/src/components/form_layout/field_group_section.test.js
index 994573e92d70..ac044fdfe1a1 100644
--- a/ui_framework/components/form_layout/field_group_section.test.js
+++ b/ui_framework/src/components/form_layout/field_group_section.test.js
@@ -7,11 +7,11 @@ import {
} from './field_group_section';
test('renders KuiFieldGroupSection', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
test('renders KuiFieldGroupSection isWide', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/form_layout/index.js b/ui_framework/src/components/form_layout/index.js
similarity index 100%
rename from ui_framework/components/form_layout/index.js
rename to ui_framework/src/components/form_layout/index.js
diff --git a/ui_framework/components/gallery/__snapshots__/gallery.test.js.snap b/ui_framework/src/components/gallery/__snapshots__/gallery.test.js.snap
similarity index 100%
rename from ui_framework/components/gallery/__snapshots__/gallery.test.js.snap
rename to ui_framework/src/components/gallery/__snapshots__/gallery.test.js.snap
diff --git a/ui_framework/components/gallery/_gallery.scss b/ui_framework/src/components/gallery/_gallery.scss
similarity index 100%
rename from ui_framework/components/gallery/_gallery.scss
rename to ui_framework/src/components/gallery/_gallery.scss
diff --git a/ui_framework/components/gallery/_gallery_button.scss b/ui_framework/src/components/gallery/_gallery_button.scss
similarity index 100%
rename from ui_framework/components/gallery/_gallery_button.scss
rename to ui_framework/src/components/gallery/_gallery_button.scss
diff --git a/ui_framework/components/gallery/_index.scss b/ui_framework/src/components/gallery/_index.scss
similarity index 100%
rename from ui_framework/components/gallery/_index.scss
rename to ui_framework/src/components/gallery/_index.scss
diff --git a/ui_framework/components/gallery/gallery.js b/ui_framework/src/components/gallery/gallery.js
similarity index 100%
rename from ui_framework/components/gallery/gallery.js
rename to ui_framework/src/components/gallery/gallery.js
diff --git a/ui_framework/components/gallery/gallery.test.js b/ui_framework/src/components/gallery/gallery.test.js
similarity index 76%
rename from ui_framework/components/gallery/gallery.test.js
rename to ui_framework/src/components/gallery/gallery.test.js
index 2b6fd9de2d75..68917892dc54 100644
--- a/ui_framework/components/gallery/gallery.test.js
+++ b/ui_framework/src/components/gallery/gallery.test.js
@@ -7,6 +7,6 @@ import {
} from './gallery';
test('renders KuiGallery', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/gallery/gallery_button/__snapshots__/gallery_button.test.js.snap b/ui_framework/src/components/gallery/gallery_button/__snapshots__/gallery_button.test.js.snap
similarity index 100%
rename from ui_framework/components/gallery/gallery_button/__snapshots__/gallery_button.test.js.snap
rename to ui_framework/src/components/gallery/gallery_button/__snapshots__/gallery_button.test.js.snap
diff --git a/ui_framework/components/gallery/gallery_button/__snapshots__/gallery_button_icon.test.js.snap b/ui_framework/src/components/gallery/gallery_button/__snapshots__/gallery_button_icon.test.js.snap
similarity index 100%
rename from ui_framework/components/gallery/gallery_button/__snapshots__/gallery_button_icon.test.js.snap
rename to ui_framework/src/components/gallery/gallery_button/__snapshots__/gallery_button_icon.test.js.snap
diff --git a/ui_framework/components/gallery/gallery_button/__snapshots__/gallery_button_image.test.js.snap b/ui_framework/src/components/gallery/gallery_button/__snapshots__/gallery_button_image.test.js.snap
similarity index 100%
rename from ui_framework/components/gallery/gallery_button/__snapshots__/gallery_button_image.test.js.snap
rename to ui_framework/src/components/gallery/gallery_button/__snapshots__/gallery_button_image.test.js.snap
diff --git a/ui_framework/components/gallery/gallery_button/__snapshots__/gallery_button_label.test.js.snap b/ui_framework/src/components/gallery/gallery_button/__snapshots__/gallery_button_label.test.js.snap
similarity index 100%
rename from ui_framework/components/gallery/gallery_button/__snapshots__/gallery_button_label.test.js.snap
rename to ui_framework/src/components/gallery/gallery_button/__snapshots__/gallery_button_label.test.js.snap
diff --git a/ui_framework/components/gallery/gallery_button/gallery_button.js b/ui_framework/src/components/gallery/gallery_button/gallery_button.js
similarity index 100%
rename from ui_framework/components/gallery/gallery_button/gallery_button.js
rename to ui_framework/src/components/gallery/gallery_button/gallery_button.js
diff --git a/ui_framework/components/gallery/gallery_button/gallery_button.test.js b/ui_framework/src/components/gallery/gallery_button/gallery_button.test.js
similarity index 74%
rename from ui_framework/components/gallery/gallery_button/gallery_button.test.js
rename to ui_framework/src/components/gallery/gallery_button/gallery_button.test.js
index 3c9614d33354..9109ae113eaf 100644
--- a/ui_framework/components/gallery/gallery_button/gallery_button.test.js
+++ b/ui_framework/src/components/gallery/gallery_button/gallery_button.test.js
@@ -7,6 +7,6 @@ import {
} from './gallery_button';
test('renders KuiGalleryButton href', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/gallery/gallery_button/gallery_button_icon.js b/ui_framework/src/components/gallery/gallery_button/gallery_button_icon.js
similarity index 100%
rename from ui_framework/components/gallery/gallery_button/gallery_button_icon.js
rename to ui_framework/src/components/gallery/gallery_button/gallery_button_icon.js
diff --git a/ui_framework/components/gallery/gallery_button/gallery_button_icon.test.js b/ui_framework/src/components/gallery/gallery_button/gallery_button_icon.test.js
similarity index 74%
rename from ui_framework/components/gallery/gallery_button/gallery_button_icon.test.js
rename to ui_framework/src/components/gallery/gallery_button/gallery_button_icon.test.js
index 0ce736225fae..52a788a59174 100644
--- a/ui_framework/components/gallery/gallery_button/gallery_button_icon.test.js
+++ b/ui_framework/src/components/gallery/gallery_button/gallery_button_icon.test.js
@@ -7,6 +7,6 @@ import {
} from './gallery_button_icon';
test('renders KuiGalleryButtonIcon', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/gallery/gallery_button/gallery_button_image.js b/ui_framework/src/components/gallery/gallery_button/gallery_button_image.js
similarity index 100%
rename from ui_framework/components/gallery/gallery_button/gallery_button_image.js
rename to ui_framework/src/components/gallery/gallery_button/gallery_button_image.js
diff --git a/ui_framework/components/gallery/gallery_button/gallery_button_image.test.js b/ui_framework/src/components/gallery/gallery_button/gallery_button_image.test.js
similarity index 74%
rename from ui_framework/components/gallery/gallery_button/gallery_button_image.test.js
rename to ui_framework/src/components/gallery/gallery_button/gallery_button_image.test.js
index 5944ee1878ce..b786c3f95ce2 100644
--- a/ui_framework/components/gallery/gallery_button/gallery_button_image.test.js
+++ b/ui_framework/src/components/gallery/gallery_button/gallery_button_image.test.js
@@ -7,6 +7,6 @@ import {
} from './gallery_button_image';
test('renders KuiGalleryButtonImage', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/gallery/gallery_button/gallery_button_label.js b/ui_framework/src/components/gallery/gallery_button/gallery_button_label.js
similarity index 100%
rename from ui_framework/components/gallery/gallery_button/gallery_button_label.js
rename to ui_framework/src/components/gallery/gallery_button/gallery_button_label.js
diff --git a/ui_framework/components/gallery/gallery_button/gallery_button_label.test.js b/ui_framework/src/components/gallery/gallery_button/gallery_button_label.test.js
similarity index 74%
rename from ui_framework/components/gallery/gallery_button/gallery_button_label.test.js
rename to ui_framework/src/components/gallery/gallery_button/gallery_button_label.test.js
index b575d08cd961..5d10bdbd5471 100644
--- a/ui_framework/components/gallery/gallery_button/gallery_button_label.test.js
+++ b/ui_framework/src/components/gallery/gallery_button/gallery_button_label.test.js
@@ -7,6 +7,6 @@ import {
} from './gallery_button_label';
test('renders KuiGalleryButtonLabel', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/gallery/index.js b/ui_framework/src/components/gallery/index.js
similarity index 100%
rename from ui_framework/components/gallery/index.js
rename to ui_framework/src/components/gallery/index.js
diff --git a/ui_framework/components/header_bar/__snapshots__/header_bar.test.js.snap b/ui_framework/src/components/header_bar/__snapshots__/header_bar.test.js.snap
similarity index 100%
rename from ui_framework/components/header_bar/__snapshots__/header_bar.test.js.snap
rename to ui_framework/src/components/header_bar/__snapshots__/header_bar.test.js.snap
diff --git a/ui_framework/components/header_bar/__snapshots__/header_bar_section.test.js.snap b/ui_framework/src/components/header_bar/__snapshots__/header_bar_section.test.js.snap
similarity index 100%
rename from ui_framework/components/header_bar/__snapshots__/header_bar_section.test.js.snap
rename to ui_framework/src/components/header_bar/__snapshots__/header_bar_section.test.js.snap
diff --git a/ui_framework/components/header_bar/_header_bar.scss b/ui_framework/src/components/header_bar/_header_bar.scss
similarity index 100%
rename from ui_framework/components/header_bar/_header_bar.scss
rename to ui_framework/src/components/header_bar/_header_bar.scss
diff --git a/ui_framework/components/header_bar/_index.scss b/ui_framework/src/components/header_bar/_index.scss
similarity index 100%
rename from ui_framework/components/header_bar/_index.scss
rename to ui_framework/src/components/header_bar/_index.scss
diff --git a/ui_framework/components/header_bar/header_bar.js b/ui_framework/src/components/header_bar/header_bar.js
similarity index 100%
rename from ui_framework/components/header_bar/header_bar.js
rename to ui_framework/src/components/header_bar/header_bar.js
diff --git a/ui_framework/components/header_bar/header_bar.test.js b/ui_framework/src/components/header_bar/header_bar.test.js
similarity index 76%
rename from ui_framework/components/header_bar/header_bar.test.js
rename to ui_framework/src/components/header_bar/header_bar.test.js
index 226d8a9f3423..a16ef1ee6cd5 100644
--- a/ui_framework/components/header_bar/header_bar.test.js
+++ b/ui_framework/src/components/header_bar/header_bar.test.js
@@ -7,6 +7,6 @@ import {
} from './header_bar';
test('renders KuiHeaderBar', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/header_bar/header_bar_section.js b/ui_framework/src/components/header_bar/header_bar_section.js
similarity index 100%
rename from ui_framework/components/header_bar/header_bar_section.js
rename to ui_framework/src/components/header_bar/header_bar_section.js
diff --git a/ui_framework/components/header_bar/header_bar_section.test.js b/ui_framework/src/components/header_bar/header_bar_section.test.js
similarity index 74%
rename from ui_framework/components/header_bar/header_bar_section.test.js
rename to ui_framework/src/components/header_bar/header_bar_section.test.js
index 2683e1ba2d00..e183e2cd1c74 100644
--- a/ui_framework/components/header_bar/header_bar_section.test.js
+++ b/ui_framework/src/components/header_bar/header_bar_section.test.js
@@ -7,6 +7,6 @@ import {
} from './header_bar_section';
test('renders KuiHeaderBarSection', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/header_bar/index.js b/ui_framework/src/components/header_bar/index.js
similarity index 100%
rename from ui_framework/components/header_bar/index.js
rename to ui_framework/src/components/header_bar/index.js
diff --git a/ui_framework/components/icon/_icon.scss b/ui_framework/src/components/icon/_icon.scss
similarity index 100%
rename from ui_framework/components/icon/_icon.scss
rename to ui_framework/src/components/icon/_icon.scss
diff --git a/ui_framework/components/icon/_index.scss b/ui_framework/src/components/icon/_index.scss
similarity index 100%
rename from ui_framework/components/icon/_index.scss
rename to ui_framework/src/components/icon/_index.scss
diff --git a/ui_framework/src/components/index.js b/ui_framework/src/components/index.js
new file mode 100644
index 000000000000..fe3d7d3eaf83
--- /dev/null
+++ b/ui_framework/src/components/index.js
@@ -0,0 +1,133 @@
+export { KuiActionItem } from './action_item';
+
+export {
+ KuiKeyboardAccessible,
+ KuiScreenReaderOnly,
+} from './accessibility';
+
+export {
+ KuiBar,
+ KuiBarSection,
+} from './bar';
+
+export {
+ KuiButton,
+ KuiButtonGroup,
+ KuiButtonIcon,
+ KuiLinkButton,
+ KuiSubmitButton,
+} from './button';
+
+export {
+ KuiCard,
+ KuiCardDescriptionText,
+ KuiCardDescriptionTitle,
+ KuiCardDescription,
+ KuiCardFooter,
+ KuiCardGroup,
+} from './card';
+
+export {
+ KuiColorPicker,
+} from './color_picker';
+
+export {
+ KuiCollapseButton,
+} from './collapse_button';
+
+export {
+ KuiEmptyTablePrompt,
+ KuiEmptyTablePromptMessage,
+ KuiEmptyTablePromptPanel,
+} from './empty_table_prompt';
+
+export {
+ KuiEvent,
+ KuiEventSymbol,
+ KuiEventBody,
+ KuiEventBodyMessage,
+ KuiEventBodyMetadata,
+} from './event';
+
+export {
+ KuiFieldGroup,
+ KuiFieldGroupSection,
+} from './form_layout';
+
+export {
+ KuiGallery,
+ KuiGalleryButton,
+ KuiGalleryButtonIcon,
+ KuiGalleryButtonImage,
+ KuiGalleryButtonLabel,
+} from './gallery';
+
+export {
+ KuiHeaderBar,
+ KuiHeaderBarSection,
+} from './header_bar';
+
+export { KuiInfoButton } from './info_button';
+
+export {
+ KuiLocalNav,
+ KuiLocalNavRow,
+ KuiLocalNavRowSection,
+ KuiLocalTab,
+ KuiLocalTabs,
+ KuiLocalTitle,
+} from './local_nav';
+
+export {
+ KuiMenu,
+ KuiMenuItem,
+} from './menu';
+
+export {
+ KUI_MODAL_CANCEL_BUTTON,
+ KUI_MODAL_CONFIRM_BUTTON,
+ KuiConfirmModal,
+ KuiModal,
+ KuiModalBody,
+ KuiModalBodyText,
+ KuiModalFooter,
+ KuiModalHeader,
+ KuiModalHeaderTitle,
+ KuiModalOverlay,
+} from './modal';
+
+export {
+ KuiPager,
+ KuiPagerButtonGroup,
+} from './pager';
+
+export {
+ KuiPopover,
+} from './popover';
+
+export {
+ KuiTabs,
+ KuiTab
+} from './tabs';
+
+export {
+ KuiTable,
+ KuiControlledTable,
+ KuiTableHeaderCell,
+ KuiTableRow,
+ KuiTableRowCell,
+ KuiTableInfo,
+ KuiTableRowCheckBoxCell,
+ KuiTableHeaderCheckBoxCell,
+ KuiTableHeader,
+ KuiTableBody,
+} from './table';
+
+export {
+ KuiToolBar,
+ KuiToolBarSearchBox,
+ KuiToolBarFooter,
+ KuiToolBarSection,
+ KuiToolBarFooterSection,
+ KuiToolBarText
+} from './tool_bar';
diff --git a/ui_framework/components/index.scss b/ui_framework/src/components/index.scss
similarity index 95%
rename from ui_framework/components/index.scss
rename to ui_framework/src/components/index.scss
index 85d81497714d..6f432f2d266a 100644
--- a/ui_framework/components/index.scss
+++ b/ui_framework/src/components/index.scss
@@ -12,13 +12,6 @@
// When possible, if making changes to those legacy components, please think about
// instead adding them to this library and deprecating that dependency.
-
-// Global constants
-@import "variables";
-@import "mixins";
-@import "common_styles";
-
-// Components
@import "accessibility/index";
@import "action_item/index";
@import "badge/index";
@@ -46,6 +39,7 @@
@import "notice/index";
@import "pager/index";
@import "panel/index";
+@import "popover/index";
@import "empty_table_prompt/index";
@import "status_text/index";
@import "table/index";
diff --git a/ui_framework/components/info_button/__snapshots__/info_button.test.js.snap b/ui_framework/src/components/info_button/__snapshots__/info_button.test.js.snap
similarity index 100%
rename from ui_framework/components/info_button/__snapshots__/info_button.test.js.snap
rename to ui_framework/src/components/info_button/__snapshots__/info_button.test.js.snap
diff --git a/ui_framework/components/info_button/_index.scss b/ui_framework/src/components/info_button/_index.scss
similarity index 100%
rename from ui_framework/components/info_button/_index.scss
rename to ui_framework/src/components/info_button/_index.scss
diff --git a/ui_framework/components/info_button/_info_button.scss b/ui_framework/src/components/info_button/_info_button.scss
similarity index 100%
rename from ui_framework/components/info_button/_info_button.scss
rename to ui_framework/src/components/info_button/_info_button.scss
diff --git a/ui_framework/components/info_button/index.js b/ui_framework/src/components/info_button/index.js
similarity index 100%
rename from ui_framework/components/info_button/index.js
rename to ui_framework/src/components/info_button/index.js
diff --git a/ui_framework/components/info_button/info_button.js b/ui_framework/src/components/info_button/info_button.js
similarity index 87%
rename from ui_framework/components/info_button/info_button.js
rename to ui_framework/src/components/info_button/info_button.js
index 53448b1e06aa..b97a35e34b1a 100644
--- a/ui_framework/components/info_button/info_button.js
+++ b/ui_framework/src/components/info_button/info_button.js
@@ -9,7 +9,7 @@ const KuiInfoButton = props => {
return (
);
};
diff --git a/ui_framework/components/info_button/info_button.test.js b/ui_framework/src/components/info_button/info_button.test.js
similarity index 100%
rename from ui_framework/components/info_button/info_button.test.js
rename to ui_framework/src/components/info_button/info_button.test.js
diff --git a/ui_framework/components/info_panel/_index.scss b/ui_framework/src/components/info_panel/_index.scss
similarity index 100%
rename from ui_framework/components/info_panel/_index.scss
rename to ui_framework/src/components/info_panel/_index.scss
diff --git a/ui_framework/components/info_panel/_info_panel.scss b/ui_framework/src/components/info_panel/_info_panel.scss
similarity index 100%
rename from ui_framework/components/info_panel/_info_panel.scss
rename to ui_framework/src/components/info_panel/_info_panel.scss
diff --git a/ui_framework/components/link/_index.scss b/ui_framework/src/components/link/_index.scss
similarity index 100%
rename from ui_framework/components/link/_index.scss
rename to ui_framework/src/components/link/_index.scss
diff --git a/ui_framework/components/link/_link.scss b/ui_framework/src/components/link/_link.scss
similarity index 100%
rename from ui_framework/components/link/_link.scss
rename to ui_framework/src/components/link/_link.scss
diff --git a/ui_framework/components/local_nav/__snapshots__/local_nav.test.js.snap b/ui_framework/src/components/local_nav/__snapshots__/local_nav.test.js.snap
similarity index 100%
rename from ui_framework/components/local_nav/__snapshots__/local_nav.test.js.snap
rename to ui_framework/src/components/local_nav/__snapshots__/local_nav.test.js.snap
diff --git a/ui_framework/components/local_nav/__snapshots__/local_nav_row.test.js.snap b/ui_framework/src/components/local_nav/__snapshots__/local_nav_row.test.js.snap
similarity index 100%
rename from ui_framework/components/local_nav/__snapshots__/local_nav_row.test.js.snap
rename to ui_framework/src/components/local_nav/__snapshots__/local_nav_row.test.js.snap
diff --git a/ui_framework/components/local_nav/__snapshots__/local_nav_row_section.test.js.snap b/ui_framework/src/components/local_nav/__snapshots__/local_nav_row_section.test.js.snap
similarity index 100%
rename from ui_framework/components/local_nav/__snapshots__/local_nav_row_section.test.js.snap
rename to ui_framework/src/components/local_nav/__snapshots__/local_nav_row_section.test.js.snap
diff --git a/ui_framework/components/local_nav/__snapshots__/local_tab.test.js.snap b/ui_framework/src/components/local_nav/__snapshots__/local_tab.test.js.snap
similarity index 100%
rename from ui_framework/components/local_nav/__snapshots__/local_tab.test.js.snap
rename to ui_framework/src/components/local_nav/__snapshots__/local_tab.test.js.snap
diff --git a/ui_framework/components/local_nav/__snapshots__/local_tabs.test.js.snap b/ui_framework/src/components/local_nav/__snapshots__/local_tabs.test.js.snap
similarity index 100%
rename from ui_framework/components/local_nav/__snapshots__/local_tabs.test.js.snap
rename to ui_framework/src/components/local_nav/__snapshots__/local_tabs.test.js.snap
diff --git a/ui_framework/components/local_nav/__snapshots__/local_title.test.js.snap b/ui_framework/src/components/local_nav/__snapshots__/local_title.test.js.snap
similarity index 100%
rename from ui_framework/components/local_nav/__snapshots__/local_title.test.js.snap
rename to ui_framework/src/components/local_nav/__snapshots__/local_title.test.js.snap
diff --git a/ui_framework/components/local_nav/_index.scss b/ui_framework/src/components/local_nav/_index.scss
similarity index 100%
rename from ui_framework/components/local_nav/_index.scss
rename to ui_framework/src/components/local_nav/_index.scss
diff --git a/ui_framework/components/local_nav/_local_breadcrumbs.scss b/ui_framework/src/components/local_nav/_local_breadcrumbs.scss
similarity index 100%
rename from ui_framework/components/local_nav/_local_breadcrumbs.scss
rename to ui_framework/src/components/local_nav/_local_breadcrumbs.scss
diff --git a/ui_framework/components/local_nav/_local_date_picker.scss b/ui_framework/src/components/local_nav/_local_date_picker.scss
similarity index 100%
rename from ui_framework/components/local_nav/_local_date_picker.scss
rename to ui_framework/src/components/local_nav/_local_date_picker.scss
diff --git a/ui_framework/components/local_nav/_local_dropdown.scss b/ui_framework/src/components/local_nav/_local_dropdown.scss
similarity index 100%
rename from ui_framework/components/local_nav/_local_dropdown.scss
rename to ui_framework/src/components/local_nav/_local_dropdown.scss
diff --git a/ui_framework/components/local_nav/_local_menu.scss b/ui_framework/src/components/local_nav/_local_menu.scss
similarity index 100%
rename from ui_framework/components/local_nav/_local_menu.scss
rename to ui_framework/src/components/local_nav/_local_menu.scss
diff --git a/ui_framework/components/local_nav/_local_nav.scss b/ui_framework/src/components/local_nav/_local_nav.scss
similarity index 100%
rename from ui_framework/components/local_nav/_local_nav.scss
rename to ui_framework/src/components/local_nav/_local_nav.scss
diff --git a/ui_framework/components/local_nav/_local_search.scss b/ui_framework/src/components/local_nav/_local_search.scss
similarity index 100%
rename from ui_framework/components/local_nav/_local_search.scss
rename to ui_framework/src/components/local_nav/_local_search.scss
diff --git a/ui_framework/components/local_nav/_local_tabs.scss b/ui_framework/src/components/local_nav/_local_tabs.scss
similarity index 100%
rename from ui_framework/components/local_nav/_local_tabs.scss
rename to ui_framework/src/components/local_nav/_local_tabs.scss
diff --git a/ui_framework/components/local_nav/_local_title.scss b/ui_framework/src/components/local_nav/_local_title.scss
similarity index 100%
rename from ui_framework/components/local_nav/_local_title.scss
rename to ui_framework/src/components/local_nav/_local_title.scss
diff --git a/ui_framework/components/local_nav/index.js b/ui_framework/src/components/local_nav/index.js
similarity index 100%
rename from ui_framework/components/local_nav/index.js
rename to ui_framework/src/components/local_nav/index.js
diff --git a/ui_framework/components/local_nav/local_nav.js b/ui_framework/src/components/local_nav/local_nav.js
similarity index 89%
rename from ui_framework/components/local_nav/local_nav.js
rename to ui_framework/src/components/local_nav/local_nav.js
index 7594f9d4d6ff..d70e3c24f3d4 100644
--- a/ui_framework/components/local_nav/local_nav.js
+++ b/ui_framework/src/components/local_nav/local_nav.js
@@ -5,7 +5,7 @@ import React from 'react';
export function KuiLocalNav({ className, children, ...rest }) {
const classes = classnames('kuiLocalNav', className);
return (
-
+
{ children }
);
diff --git a/ui_framework/components/local_nav/local_nav.test.js b/ui_framework/src/components/local_nav/local_nav.test.js
similarity index 76%
rename from ui_framework/components/local_nav/local_nav.test.js
rename to ui_framework/src/components/local_nav/local_nav.test.js
index 12ab75cabad2..2c1d5b8a9eda 100644
--- a/ui_framework/components/local_nav/local_nav.test.js
+++ b/ui_framework/src/components/local_nav/local_nav.test.js
@@ -5,6 +5,6 @@ import { requiredProps } from '../../test/required_props';
import { KuiLocalNav } from './local_nav';
test('renders KuiLocalNav', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/local_nav/local_nav_row.js b/ui_framework/src/components/local_nav/local_nav_row.js
similarity index 92%
rename from ui_framework/components/local_nav/local_nav_row.js
rename to ui_framework/src/components/local_nav/local_nav_row.js
index 806b7223564f..2d9b577abb3c 100644
--- a/ui_framework/components/local_nav/local_nav_row.js
+++ b/ui_framework/src/components/local_nav/local_nav_row.js
@@ -7,7 +7,7 @@ export function KuiLocalNavRow({ className, children, isSecondary, ...rest }) {
'kuiLocalNavRow--secondary': isSecondary,
});
return (
-
+
{ children }
);
diff --git a/ui_framework/components/local_nav/local_nav_row.test.js b/ui_framework/src/components/local_nav/local_nav_row.test.js
similarity index 69%
rename from ui_framework/components/local_nav/local_nav_row.test.js
rename to ui_framework/src/components/local_nav/local_nav_row.test.js
index c0ad465aa8d3..0bd55a22a9fa 100644
--- a/ui_framework/components/local_nav/local_nav_row.test.js
+++ b/ui_framework/src/components/local_nav/local_nav_row.test.js
@@ -5,13 +5,13 @@ import { requiredProps } from '../../test/required_props';
import { KuiLocalNavRow } from './local_nav_row';
test('renders KuiLocalNavRow', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
describe('property isSecondary', () => {
test('renders the secondary modifier', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
});
diff --git a/ui_framework/components/local_nav/local_nav_row_section.js b/ui_framework/src/components/local_nav/local_nav_row_section.js
similarity index 89%
rename from ui_framework/components/local_nav/local_nav_row_section.js
rename to ui_framework/src/components/local_nav/local_nav_row_section.js
index 364d8acd4073..541a60d9f57c 100644
--- a/ui_framework/components/local_nav/local_nav_row_section.js
+++ b/ui_framework/src/components/local_nav/local_nav_row_section.js
@@ -5,7 +5,7 @@ import React from 'react';
export function KuiLocalNavRowSection({ className, children, ...rest }) {
const classes = classnames('kuiLocalNavRow__section', className);
return (
-
+
{ children }
);
diff --git a/ui_framework/components/local_nav/local_nav_row_section.test.js b/ui_framework/src/components/local_nav/local_nav_row_section.test.js
similarity index 74%
rename from ui_framework/components/local_nav/local_nav_row_section.test.js
rename to ui_framework/src/components/local_nav/local_nav_row_section.test.js
index 35235dc017bd..dbc950917712 100644
--- a/ui_framework/components/local_nav/local_nav_row_section.test.js
+++ b/ui_framework/src/components/local_nav/local_nav_row_section.test.js
@@ -5,6 +5,6 @@ import { requiredProps } from '../../test/required_props';
import { KuiLocalNavRowSection } from './local_nav_row_section';
test('renders KuiLocalNavRowSection', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/local_nav/local_tab.js b/ui_framework/src/components/local_nav/local_tab.js
similarity index 93%
rename from ui_framework/components/local_nav/local_tab.js
rename to ui_framework/src/components/local_nav/local_tab.js
index e4040367e3e3..823bf4eabbb4 100644
--- a/ui_framework/components/local_nav/local_tab.js
+++ b/ui_framework/src/components/local_nav/local_tab.js
@@ -8,7 +8,7 @@ export function KuiLocalTab({ className, children, isDisabled, isSelected, ...re
'kuiLocalTab-isSelected': isSelected,
});
return (
-
+
{ children }
);
diff --git a/ui_framework/components/local_nav/local_tab.test.js b/ui_framework/src/components/local_nav/local_tab.test.js
similarity index 67%
rename from ui_framework/components/local_nav/local_tab.test.js
rename to ui_framework/src/components/local_nav/local_tab.test.js
index 0a34baab3729..3dc458768d15 100644
--- a/ui_framework/components/local_nav/local_tab.test.js
+++ b/ui_framework/src/components/local_nav/local_tab.test.js
@@ -5,20 +5,20 @@ import { requiredProps } from '../../test/required_props';
import { KuiLocalTab } from './local_tab';
test('renders KuiLocalTab', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
describe('property isSelected', () => {
test('renders the isSelected modifier', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
});
describe('property isDisabled', () => {
test('renders the isDisabled modifier', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
});
diff --git a/ui_framework/components/local_nav/local_tabs.js b/ui_framework/src/components/local_nav/local_tabs.js
similarity index 89%
rename from ui_framework/components/local_nav/local_tabs.js
rename to ui_framework/src/components/local_nav/local_tabs.js
index 1aaa458d5688..f65f5fe90521 100644
--- a/ui_framework/components/local_nav/local_tabs.js
+++ b/ui_framework/src/components/local_nav/local_tabs.js
@@ -5,7 +5,7 @@ import React from 'react';
export function KuiLocalTabs({ className, children, ...rest }) {
const classes = classnames('kuiLocalTabs', className);
return (
-
+
{ children }
);
diff --git a/ui_framework/components/local_nav/local_tabs.test.js b/ui_framework/src/components/local_nav/local_tabs.test.js
similarity index 76%
rename from ui_framework/components/local_nav/local_tabs.test.js
rename to ui_framework/src/components/local_nav/local_tabs.test.js
index ffc70aeba75b..094495ad0f89 100644
--- a/ui_framework/components/local_nav/local_tabs.test.js
+++ b/ui_framework/src/components/local_nav/local_tabs.test.js
@@ -5,6 +5,6 @@ import { requiredProps } from '../../test/required_props';
import { KuiLocalTabs } from './local_tabs';
test('renders KuiLocalTabs', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/local_nav/local_title.js b/ui_framework/src/components/local_nav/local_title.js
similarity index 89%
rename from ui_framework/components/local_nav/local_title.js
rename to ui_framework/src/components/local_nav/local_title.js
index 1d1eb53406f3..0f40d5c19819 100644
--- a/ui_framework/components/local_nav/local_title.js
+++ b/ui_framework/src/components/local_nav/local_title.js
@@ -5,7 +5,7 @@ import React from 'react';
export function KuiLocalTitle({ className, children, ...rest }) {
const classes = classnames('kuiLocalTitle', className);
return (
-
+
{ children }
);
diff --git a/ui_framework/components/local_nav/local_title.test.js b/ui_framework/src/components/local_nav/local_title.test.js
similarity index 75%
rename from ui_framework/components/local_nav/local_title.test.js
rename to ui_framework/src/components/local_nav/local_title.test.js
index f393653afd3a..17d3877f4cad 100644
--- a/ui_framework/components/local_nav/local_title.test.js
+++ b/ui_framework/src/components/local_nav/local_title.test.js
@@ -5,6 +5,6 @@ import { requiredProps } from '../../test/required_props';
import { KuiLocalTitle } from './local_title';
test('renders KuiLocalTitle', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/menu/__snapshots__/menu.test.js.snap b/ui_framework/src/components/menu/__snapshots__/menu.test.js.snap
similarity index 100%
rename from ui_framework/components/menu/__snapshots__/menu.test.js.snap
rename to ui_framework/src/components/menu/__snapshots__/menu.test.js.snap
diff --git a/ui_framework/components/menu/__snapshots__/menu_item.test.js.snap b/ui_framework/src/components/menu/__snapshots__/menu_item.test.js.snap
similarity index 100%
rename from ui_framework/components/menu/__snapshots__/menu_item.test.js.snap
rename to ui_framework/src/components/menu/__snapshots__/menu_item.test.js.snap
diff --git a/ui_framework/components/menu/_index.scss b/ui_framework/src/components/menu/_index.scss
similarity index 100%
rename from ui_framework/components/menu/_index.scss
rename to ui_framework/src/components/menu/_index.scss
diff --git a/ui_framework/components/menu/_menu.scss b/ui_framework/src/components/menu/_menu.scss
similarity index 100%
rename from ui_framework/components/menu/_menu.scss
rename to ui_framework/src/components/menu/_menu.scss
diff --git a/ui_framework/components/menu/index.js b/ui_framework/src/components/menu/index.js
similarity index 100%
rename from ui_framework/components/menu/index.js
rename to ui_framework/src/components/menu/index.js
diff --git a/ui_framework/components/menu/menu.js b/ui_framework/src/components/menu/menu.js
similarity index 100%
rename from ui_framework/components/menu/menu.js
rename to ui_framework/src/components/menu/menu.js
diff --git a/ui_framework/components/menu/menu.test.js b/ui_framework/src/components/menu/menu.test.js
similarity index 84%
rename from ui_framework/components/menu/menu.test.js
rename to ui_framework/src/components/menu/menu.test.js
index 170003121cdd..265703fed390 100644
--- a/ui_framework/components/menu/menu.test.js
+++ b/ui_framework/src/components/menu/menu.test.js
@@ -7,7 +7,7 @@ import {
} from './menu';
test('renders KuiMenu', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/menu/menu_item.js b/ui_framework/src/components/menu/menu_item.js
similarity index 100%
rename from ui_framework/components/menu/menu_item.js
rename to ui_framework/src/components/menu/menu_item.js
diff --git a/ui_framework/components/menu/menu_item.test.js b/ui_framework/src/components/menu/menu_item.test.js
similarity index 76%
rename from ui_framework/components/menu/menu_item.test.js
rename to ui_framework/src/components/menu/menu_item.test.js
index 7ba271f5e057..1b08117b9c2b 100644
--- a/ui_framework/components/menu/menu_item.test.js
+++ b/ui_framework/src/components/menu/menu_item.test.js
@@ -7,6 +7,6 @@ import {
} from './menu_item';
test('renders KuiMenuItem', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/menu_button/_index.scss b/ui_framework/src/components/menu_button/_index.scss
similarity index 100%
rename from ui_framework/components/menu_button/_index.scss
rename to ui_framework/src/components/menu_button/_index.scss
diff --git a/ui_framework/components/menu_button/_menu_button.scss b/ui_framework/src/components/menu_button/_menu_button.scss
similarity index 100%
rename from ui_framework/components/menu_button/_menu_button.scss
rename to ui_framework/src/components/menu_button/_menu_button.scss
diff --git a/ui_framework/components/menu_button/_menu_button_group.scss b/ui_framework/src/components/menu_button/_menu_button_group.scss
similarity index 100%
rename from ui_framework/components/menu_button/_menu_button_group.scss
rename to ui_framework/src/components/menu_button/_menu_button_group.scss
diff --git a/ui_framework/components/micro_button/_index.scss b/ui_framework/src/components/micro_button/_index.scss
similarity index 100%
rename from ui_framework/components/micro_button/_index.scss
rename to ui_framework/src/components/micro_button/_index.scss
diff --git a/ui_framework/components/micro_button/_micro_button.scss b/ui_framework/src/components/micro_button/_micro_button.scss
similarity index 100%
rename from ui_framework/components/micro_button/_micro_button.scss
rename to ui_framework/src/components/micro_button/_micro_button.scss
diff --git a/ui_framework/components/micro_button/_micro_button_group.scss b/ui_framework/src/components/micro_button/_micro_button_group.scss
similarity index 100%
rename from ui_framework/components/micro_button/_micro_button_group.scss
rename to ui_framework/src/components/micro_button/_micro_button_group.scss
diff --git a/ui_framework/components/modal/__snapshots__/confirm_modal.test.js.snap b/ui_framework/src/components/modal/__snapshots__/confirm_modal.test.js.snap
similarity index 100%
rename from ui_framework/components/modal/__snapshots__/confirm_modal.test.js.snap
rename to ui_framework/src/components/modal/__snapshots__/confirm_modal.test.js.snap
diff --git a/ui_framework/components/modal/__snapshots__/modal.test.js.snap b/ui_framework/src/components/modal/__snapshots__/modal.test.js.snap
similarity index 100%
rename from ui_framework/components/modal/__snapshots__/modal.test.js.snap
rename to ui_framework/src/components/modal/__snapshots__/modal.test.js.snap
diff --git a/ui_framework/components/modal/__snapshots__/modal_body.test.js.snap b/ui_framework/src/components/modal/__snapshots__/modal_body.test.js.snap
similarity index 100%
rename from ui_framework/components/modal/__snapshots__/modal_body.test.js.snap
rename to ui_framework/src/components/modal/__snapshots__/modal_body.test.js.snap
diff --git a/ui_framework/components/modal/__snapshots__/modal_body_text.test.js.snap b/ui_framework/src/components/modal/__snapshots__/modal_body_text.test.js.snap
similarity index 100%
rename from ui_framework/components/modal/__snapshots__/modal_body_text.test.js.snap
rename to ui_framework/src/components/modal/__snapshots__/modal_body_text.test.js.snap
diff --git a/ui_framework/components/modal/__snapshots__/modal_footer.test.js.snap b/ui_framework/src/components/modal/__snapshots__/modal_footer.test.js.snap
similarity index 100%
rename from ui_framework/components/modal/__snapshots__/modal_footer.test.js.snap
rename to ui_framework/src/components/modal/__snapshots__/modal_footer.test.js.snap
diff --git a/ui_framework/components/modal/__snapshots__/modal_header.test.js.snap b/ui_framework/src/components/modal/__snapshots__/modal_header.test.js.snap
similarity index 100%
rename from ui_framework/components/modal/__snapshots__/modal_header.test.js.snap
rename to ui_framework/src/components/modal/__snapshots__/modal_header.test.js.snap
diff --git a/ui_framework/components/modal/__snapshots__/modal_header_title.test.js.snap b/ui_framework/src/components/modal/__snapshots__/modal_header_title.test.js.snap
similarity index 100%
rename from ui_framework/components/modal/__snapshots__/modal_header_title.test.js.snap
rename to ui_framework/src/components/modal/__snapshots__/modal_header_title.test.js.snap
diff --git a/ui_framework/components/modal/__snapshots__/modal_overlay.test.js.snap b/ui_framework/src/components/modal/__snapshots__/modal_overlay.test.js.snap
similarity index 100%
rename from ui_framework/components/modal/__snapshots__/modal_overlay.test.js.snap
rename to ui_framework/src/components/modal/__snapshots__/modal_overlay.test.js.snap
diff --git a/ui_framework/components/modal/_index.scss b/ui_framework/src/components/modal/_index.scss
similarity index 100%
rename from ui_framework/components/modal/_index.scss
rename to ui_framework/src/components/modal/_index.scss
diff --git a/ui_framework/components/modal/_modal.scss b/ui_framework/src/components/modal/_modal.scss
similarity index 100%
rename from ui_framework/components/modal/_modal.scss
rename to ui_framework/src/components/modal/_modal.scss
diff --git a/ui_framework/components/modal/_modal_overlay.scss b/ui_framework/src/components/modal/_modal_overlay.scss
similarity index 100%
rename from ui_framework/components/modal/_modal_overlay.scss
rename to ui_framework/src/components/modal/_modal_overlay.scss
diff --git a/ui_framework/components/modal/confirm_modal.js b/ui_framework/src/components/modal/confirm_modal.js
similarity index 87%
rename from ui_framework/components/modal/confirm_modal.js
rename to ui_framework/src/components/modal/confirm_modal.js
index 6655f3050a7f..f1a04c6c761d 100644
--- a/ui_framework/components/modal/confirm_modal.js
+++ b/ui_framework/src/components/modal/confirm_modal.js
@@ -42,10 +42,10 @@ export function KuiConfirmModal({
return (
{
title ?
@@ -65,17 +65,17 @@ export function KuiConfirmModal({
{cancelButtonText}
{confirmButtonText}
diff --git a/ui_framework/components/modal/confirm_modal.test.js b/ui_framework/src/components/modal/confirm_modal.test.js
similarity index 92%
rename from ui_framework/components/modal/confirm_modal.test.js
rename to ui_framework/src/components/modal/confirm_modal.test.js
index 216074d7ab2b..2c14f1949362 100644
--- a/ui_framework/components/modal/confirm_modal.test.js
+++ b/ui_framework/src/components/modal/confirm_modal.test.js
@@ -24,7 +24,7 @@ test('renders KuiConfirmModal', () => {
onConfirm={onConfirm}
cancelButtonText="Cancel Button Text"
confirmButtonText="Confirm Button Text"
- { ...requiredProps }
+ {...requiredProps}
/>);
expect(component).toMatchSnapshot();
});
@@ -37,7 +37,7 @@ test('onConfirm', () => {
onConfirm={onConfirm}
cancelButtonText="Cancel"
confirmButtonText="Confirm"
- { ...requiredProps }
+ {...requiredProps}
/>);
component.find('[data-test-subj="confirmModalConfirmButton"]').simulate('click');
sinon.assert.calledOnce(onConfirm);
@@ -53,7 +53,7 @@ describe('onCancel', () => {
onConfirm={onConfirm}
cancelButtonText="Cancel"
confirmButtonText="Confirm"
- { ...requiredProps }
+ {...requiredProps}
/>);
component.find('[data-test-subj="confirmModalCancelButton"]').simulate('click');
sinon.assert.notCalled(onConfirm);
@@ -68,7 +68,7 @@ describe('onCancel', () => {
onConfirm={onConfirm}
cancelButtonText="Cancel"
confirmButtonText="Confirm"
- { ...requiredProps }
+ {...requiredProps}
/>);
component.simulate('keydown', { keyCode: 27 });
sinon.assert.notCalled(onConfirm);
@@ -85,8 +85,8 @@ describe('defaultFocusedButton', () => {
onConfirm={onConfirm}
cancelButtonText="Cancel"
confirmButtonText="Confirm"
- defaultFocusedButton={ CANCEL_BUTTON }
- { ...requiredProps }
+ defaultFocusedButton={CANCEL_BUTTON}
+ {...requiredProps}
/>);
const button = component.find('[data-test-subj="confirmModalCancelButton"]').getDOMNode();
expect(document.activeElement).toEqual(button);
@@ -100,8 +100,8 @@ describe('defaultFocusedButton', () => {
onConfirm={onConfirm}
cancelButtonText="Cancel"
confirmButtonText="Confirm"
- defaultFocusedButton={ CONFIRM_BUTTON }
- { ...requiredProps }
+ defaultFocusedButton={CONFIRM_BUTTON}
+ {...requiredProps}
/>);
const button = component.find('[data-test-subj="confirmModalConfirmButton"]').getDOMNode();
expect(document.activeElement).toEqual(button);
@@ -115,7 +115,7 @@ describe('defaultFocusedButton', () => {
onConfirm={onConfirm}
cancelButtonText="Cancel"
confirmButtonText="Confirm"
- { ...requiredProps }
+ {...requiredProps}
/>);
const button = component.find('[data-test-subj="confirmModalConfirmButton"]').getDOMNode();
expect(document.activeElement).toEqual(button);
diff --git a/ui_framework/components/modal/index.js b/ui_framework/src/components/modal/index.js
similarity index 70%
rename from ui_framework/components/modal/index.js
rename to ui_framework/src/components/modal/index.js
index e1601d386ba3..2224887434d0 100644
--- a/ui_framework/components/modal/index.js
+++ b/ui_framework/src/components/modal/index.js
@@ -1,4 +1,8 @@
-export { KuiConfirmModal } from './confirm_modal';
+export {
+ KuiConfirmModal,
+ CONFIRM_BUTTON as KUI_MODAL_CONFIRM_BUTTON,
+ CANCEL_BUTTON as KUI_MODAL_CANCEL_BUTTON,
+} from './confirm_modal';
export { KuiModal } from './modal';
export { KuiModalFooter } from './modal_footer';
export { KuiModalHeader } from './modal_header';
diff --git a/ui_framework/components/modal/modal.js b/ui_framework/src/components/modal/modal.js
similarity index 88%
rename from ui_framework/components/modal/modal.js
rename to ui_framework/src/components/modal/modal.js
index 8ea7a08b9686..da89951ebae9 100644
--- a/ui_framework/components/modal/modal.js
+++ b/ui_framework/src/components/modal/modal.js
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
export function KuiModal({ className, children, ...rest }) {
const classes = classnames('kuiModal', className);
return (
-
+
{ children }
);
diff --git a/ui_framework/components/modal/modal.test.js b/ui_framework/src/components/modal/modal.test.js
similarity index 77%
rename from ui_framework/components/modal/modal.test.js
rename to ui_framework/src/components/modal/modal.test.js
index 4a393c27a008..948c7da07f99 100644
--- a/ui_framework/components/modal/modal.test.js
+++ b/ui_framework/src/components/modal/modal.test.js
@@ -7,6 +7,6 @@ import {
} from './modal';
test('renders KuiModal', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/modal/modal_body.js b/ui_framework/src/components/modal/modal_body.js
similarity index 89%
rename from ui_framework/components/modal/modal_body.js
rename to ui_framework/src/components/modal/modal_body.js
index efd954b834f1..e43d7ab5af18 100644
--- a/ui_framework/components/modal/modal_body.js
+++ b/ui_framework/src/components/modal/modal_body.js
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
export function KuiModalBody({ className, children, ...rest }) {
const classes = classnames('kuiModalBody', className);
return (
-
+
{ children }
);
diff --git a/ui_framework/components/modal/modal_body.test.js b/ui_framework/src/components/modal/modal_body.test.js
similarity index 76%
rename from ui_framework/components/modal/modal_body.test.js
rename to ui_framework/src/components/modal/modal_body.test.js
index b8b4d8e02d80..985b2cdb5a2b 100644
--- a/ui_framework/components/modal/modal_body.test.js
+++ b/ui_framework/src/components/modal/modal_body.test.js
@@ -7,6 +7,6 @@ import {
} from './modal_body';
test('renders KuiModalBody', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/modal/modal_body_text.js b/ui_framework/src/components/modal/modal_body_text.js
similarity index 89%
rename from ui_framework/components/modal/modal_body_text.js
rename to ui_framework/src/components/modal/modal_body_text.js
index 197bf7f0a797..55efdc723fa8 100644
--- a/ui_framework/components/modal/modal_body_text.js
+++ b/ui_framework/src/components/modal/modal_body_text.js
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
export function KuiModalBodyText({ className, children, ...rest }) {
const classes = classnames('kuiModalBodyText', className);
return (
-
+
{ children }
);
diff --git a/ui_framework/components/modal/modal_body_text.test.js b/ui_framework/src/components/modal/modal_body_text.test.js
similarity index 75%
rename from ui_framework/components/modal/modal_body_text.test.js
rename to ui_framework/src/components/modal/modal_body_text.test.js
index f71a5f6ed0be..a8d6af9df735 100644
--- a/ui_framework/components/modal/modal_body_text.test.js
+++ b/ui_framework/src/components/modal/modal_body_text.test.js
@@ -7,6 +7,6 @@ import {
} from './modal_body_text';
test('renders KuiModalBodyText', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/modal/modal_footer.js b/ui_framework/src/components/modal/modal_footer.js
similarity index 89%
rename from ui_framework/components/modal/modal_footer.js
rename to ui_framework/src/components/modal/modal_footer.js
index a62ba3dccef2..b91240efe570 100644
--- a/ui_framework/components/modal/modal_footer.js
+++ b/ui_framework/src/components/modal/modal_footer.js
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
export function KuiModalFooter({ className, children, ...rest }) {
const classes = classnames('kuiModalFooter', className);
return (
-
+
{ children }
);
diff --git a/ui_framework/components/modal/modal_footer.test.js b/ui_framework/src/components/modal/modal_footer.test.js
similarity index 75%
rename from ui_framework/components/modal/modal_footer.test.js
rename to ui_framework/src/components/modal/modal_footer.test.js
index ab80fa6b1407..9a54e5d8cae5 100644
--- a/ui_framework/components/modal/modal_footer.test.js
+++ b/ui_framework/src/components/modal/modal_footer.test.js
@@ -7,6 +7,6 @@ import {
} from './modal_footer';
test('renders KuiModalFooter', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/modal/modal_header.js b/ui_framework/src/components/modal/modal_header.js
similarity index 89%
rename from ui_framework/components/modal/modal_header.js
rename to ui_framework/src/components/modal/modal_header.js
index c6ccc30e2e11..7aa74a1cff9f 100644
--- a/ui_framework/components/modal/modal_header.js
+++ b/ui_framework/src/components/modal/modal_header.js
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
export function KuiModalHeader({ className, children, ...rest }) {
const classes = classnames('kuiModalHeader', className);
return (
-
+
{ children }
);
diff --git a/ui_framework/components/modal/modal_header.test.js b/ui_framework/src/components/modal/modal_header.test.js
similarity index 75%
rename from ui_framework/components/modal/modal_header.test.js
rename to ui_framework/src/components/modal/modal_header.test.js
index 0caaaa07ae89..f3a603bcb256 100644
--- a/ui_framework/components/modal/modal_header.test.js
+++ b/ui_framework/src/components/modal/modal_header.test.js
@@ -7,6 +7,6 @@ import {
} from './modal_header';
test('renders KuiModalHeader', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/modal/modal_header_title.js b/ui_framework/src/components/modal/modal_header_title.js
similarity index 89%
rename from ui_framework/components/modal/modal_header_title.js
rename to ui_framework/src/components/modal/modal_header_title.js
index a4a237ad8f1d..5baa3bd0be1e 100644
--- a/ui_framework/components/modal/modal_header_title.js
+++ b/ui_framework/src/components/modal/modal_header_title.js
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
export function KuiModalHeaderTitle({ className, children, ...rest }) {
const classes = classnames('kuiModalHeader__title', className);
return (
-
+
{ children }
);
diff --git a/ui_framework/components/modal/modal_header_title.test.js b/ui_framework/src/components/modal/modal_header_title.test.js
similarity index 74%
rename from ui_framework/components/modal/modal_header_title.test.js
rename to ui_framework/src/components/modal/modal_header_title.test.js
index 35fbbca89c95..7f0632ad5b60 100644
--- a/ui_framework/components/modal/modal_header_title.test.js
+++ b/ui_framework/src/components/modal/modal_header_title.test.js
@@ -7,6 +7,6 @@ import {
} from './modal_header_title';
test('renders KuiModalHeaderTitle', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/modal/modal_overlay.js b/ui_framework/src/components/modal/modal_overlay.js
similarity index 87%
rename from ui_framework/components/modal/modal_overlay.js
rename to ui_framework/src/components/modal/modal_overlay.js
index 34334e1a7507..4467bdee3667 100644
--- a/ui_framework/components/modal/modal_overlay.js
+++ b/ui_framework/src/components/modal/modal_overlay.js
@@ -6,8 +6,8 @@ export function KuiModalOverlay({ className, ...rest }) {
const classes = classnames('kuiModalOverlay', className);
return (
);
}
diff --git a/ui_framework/components/modal/modal_overlay.test.js b/ui_framework/src/components/modal/modal_overlay.test.js
similarity index 75%
rename from ui_framework/components/modal/modal_overlay.test.js
rename to ui_framework/src/components/modal/modal_overlay.test.js
index 94f5015de662..0600b5a45187 100644
--- a/ui_framework/components/modal/modal_overlay.test.js
+++ b/ui_framework/src/components/modal/modal_overlay.test.js
@@ -7,6 +7,6 @@ import {
} from './modal_overlay';
test('renders KuiModalOverlay', () => {
- const component =
children;
+ const component =
children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/notice/_index.scss b/ui_framework/src/components/notice/_index.scss
similarity index 100%
rename from ui_framework/components/notice/_index.scss
rename to ui_framework/src/components/notice/_index.scss
diff --git a/ui_framework/components/notice/_notice.scss b/ui_framework/src/components/notice/_notice.scss
similarity index 100%
rename from ui_framework/components/notice/_notice.scss
rename to ui_framework/src/components/notice/_notice.scss
diff --git a/ui_framework/components/pager/__snapshots__/pager.test.js.snap b/ui_framework/src/components/pager/__snapshots__/pager.test.js.snap
similarity index 100%
rename from ui_framework/components/pager/__snapshots__/pager.test.js.snap
rename to ui_framework/src/components/pager/__snapshots__/pager.test.js.snap
diff --git a/ui_framework/components/pager/__snapshots__/pager_button_group.test.js.snap b/ui_framework/src/components/pager/__snapshots__/pager_button_group.test.js.snap
similarity index 100%
rename from ui_framework/components/pager/__snapshots__/pager_button_group.test.js.snap
rename to ui_framework/src/components/pager/__snapshots__/pager_button_group.test.js.snap
diff --git a/ui_framework/components/pager/_index.scss b/ui_framework/src/components/pager/_index.scss
similarity index 100%
rename from ui_framework/components/pager/_index.scss
rename to ui_framework/src/components/pager/_index.scss
diff --git a/ui_framework/components/pager/_pager.scss b/ui_framework/src/components/pager/_pager.scss
similarity index 100%
rename from ui_framework/components/pager/_pager.scss
rename to ui_framework/src/components/pager/_pager.scss
diff --git a/ui_framework/components/pager/index.js b/ui_framework/src/components/pager/index.js
similarity index 100%
rename from ui_framework/components/pager/index.js
rename to ui_framework/src/components/pager/index.js
diff --git a/ui_framework/components/pager/pager.js b/ui_framework/src/components/pager/pager.js
similarity index 96%
rename from ui_framework/components/pager/pager.js
rename to ui_framework/src/components/pager/pager.js
index b96d399659df..55d6ab8f39f6 100644
--- a/ui_framework/components/pager/pager.js
+++ b/ui_framework/src/components/pager/pager.js
@@ -16,7 +16,7 @@ export function KuiPager({
}) {
const classes = classNames('kuiPager', className);
return (
-
+
{startNumber}–{endNumber} of {totalItems}
{
(startNumber === 1 && endNumber === totalItems)
diff --git a/ui_framework/components/pager/pager.test.js b/ui_framework/src/components/pager/pager.test.js
similarity index 99%
rename from ui_framework/components/pager/pager.test.js
rename to ui_framework/src/components/pager/pager.test.js
index f588e709cc9c..ab05d73e92d7 100644
--- a/ui_framework/components/pager/pager.test.js
+++ b/ui_framework/src/components/pager/pager.test.js
@@ -24,7 +24,7 @@ test('renders KuiPager', () => {
startNumber={1}
endNumber={10}
totalItems={20}
- { ...requiredProps }
+ {...requiredProps}
/>);
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/pager/pager_button_group.js b/ui_framework/src/components/pager/pager_button_group.js
similarity index 93%
rename from ui_framework/components/pager/pager_button_group.js
rename to ui_framework/src/components/pager/pager_button_group.js
index daaaada47038..6c105e311409 100644
--- a/ui_framework/components/pager/pager_button_group.js
+++ b/ui_framework/src/components/pager/pager_button_group.js
@@ -4,7 +4,7 @@ import { KuiButton, KuiButtonIcon, KuiButtonGroup } from '../button';
export function KuiPagerButtonGroup({ className, onPrevious, onNext, hasNext, hasPrevious, ...rest }) {
return (
-
+
{
onPrevious={onPrevious}
hasNext={true}
hasPrevious={true}
- { ...requiredProps }
+ {...requiredProps}
/>);
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/panel/_index.scss b/ui_framework/src/components/panel/_index.scss
similarity index 100%
rename from ui_framework/components/panel/_index.scss
rename to ui_framework/src/components/panel/_index.scss
diff --git a/ui_framework/components/panel/_panel.scss b/ui_framework/src/components/panel/_panel.scss
similarity index 100%
rename from ui_framework/components/panel/_panel.scss
rename to ui_framework/src/components/panel/_panel.scss
diff --git a/ui_framework/src/components/popover/__snapshots__/popover.test.js.snap b/ui_framework/src/components/popover/__snapshots__/popover.test.js.snap
new file mode 100644
index 000000000000..83e3145e6bb9
--- /dev/null
+++ b/ui_framework/src/components/popover/__snapshots__/popover.test.js.snap
@@ -0,0 +1,82 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`KuiPopover anchorPosition defaults to center 1`] = `
+
+`;
+
+exports[`KuiPopover anchorPosition left is rendered 1`] = `
+
+`;
+
+exports[`KuiPopover anchorPosition right is rendered 1`] = `
+
+`;
+
+exports[`KuiPopover children is rendered 1`] = `
+
+`;
+
+exports[`KuiPopover is rendered 1`] = `
+
+`;
+
+exports[`KuiPopover isOpen defaults to false 1`] = `
+
+`;
+
+exports[`KuiPopover isOpen renders true 1`] = `
+
+`;
diff --git a/ui_framework/src/components/popover/_index.scss b/ui_framework/src/components/popover/_index.scss
new file mode 100644
index 000000000000..861a11a9761a
--- /dev/null
+++ b/ui_framework/src/components/popover/_index.scss
@@ -0,0 +1,3 @@
+$popOverBackgroundColor: #FFF;
+
+@import 'popover';
diff --git a/ui_framework/src/components/popover/_popover.scss b/ui_framework/src/components/popover/_popover.scss
new file mode 100644
index 000000000000..559f09182145
--- /dev/null
+++ b/ui_framework/src/components/popover/_popover.scss
@@ -0,0 +1,95 @@
+// Pop menu is an animated popover relatively positioned to a button / action.
+// By default it positions in the middle, but can be anchored left and right.
+
+.kuiPopover {
+ display: inline-block;
+ position: relative;
+
+ // Open state happens on the wrapper and applies to the body.
+ &.kuiPopover-isOpen {
+ .kuiPopover__body {
+ opacity: 1;
+ visibility: visible;
+ z-index: 1;
+ margin-top: 10px;
+ box-shadow: 0 16px 16px -8px rgba(0, 0, 0, 0.1);
+ }
+ }
+}
+
+ // Animation happens on the body.
+ .kuiPopover__body {
+ line-height: $globalLineHeight;
+ font-size: $globalFontSize;
+ position: absolute;
+ min-width: 256px; // Can expand further, but this size is good for our menus.
+ top: 100%;
+ left: 50%;
+ background: $popOverBackgroundColor;
+ border: 1px solid $globalBorderColor;
+ border-radius: $globalBorderRadius 0 $globalBorderRadius $globalBorderRadius;
+ padding: 16px;
+ transform: translateX(-50%) translateY(8px) translateZ(0);
+ backface-visibility: hidden;
+ transform-origin: center top;
+ opacity: 0;
+ visibility: hidden;
+ margin-top: 32px;
+
+ // This fakes a border on the arrow.
+ &:before {
+ position: absolute;
+ content: "";
+ top: -16px;
+ height: 0;
+ width: 0;
+ left: 50%;
+ margin-left: -16px;
+ border-left: 16px solid transparent;
+ border-right: 16px solid transparent;
+ border-bottom: 16px solid $globalBorderColor;
+ }
+
+ // This part of the arrow matches the body.
+ &:after {
+ position: absolute;
+ content: "";
+ top: -16px + 1;
+ right: 0;
+ height: 0;
+ left: 50%;
+ margin-left: -16px;
+ width: 0;
+ border-left: 16px solid transparent;
+ border-right: 16px solid transparent;
+ border-bottom: 16px solid $popOverBackgroundColor;
+ }
+ }
+
+
+// Positions the menu and arrow to the left of the parent.
+.kuiPopover--anchorLeft {
+ .kuiPopover__body {
+ left: 0;
+ transform: translateX(0%) translateY(8px) translateZ(0);
+
+ &:before, &:after {
+ right: auto;
+ left: 8px;
+ margin: 0;
+ }
+ }
+}
+
+// Positions the menu and arrow to the right of the parent.
+.kuiPopover--anchorRight {
+ .kuiPopover__body {
+ left: 100%;
+ transform: translateX(-100%) translateY(8px) translateZ(0);
+
+ &:before, &:after {
+ right: 8px;
+ left: auto;
+ }
+ }
+}
diff --git a/ui_framework/src/components/popover/index.js b/ui_framework/src/components/popover/index.js
new file mode 100644
index 000000000000..248ad88e6c70
--- /dev/null
+++ b/ui_framework/src/components/popover/index.js
@@ -0,0 +1,3 @@
+export {
+ KuiPopover,
+} from './popover';
diff --git a/ui_framework/src/components/popover/popover.js b/ui_framework/src/components/popover/popover.js
new file mode 100644
index 000000000000..ce55ab06d937
--- /dev/null
+++ b/ui_framework/src/components/popover/popover.js
@@ -0,0 +1,100 @@
+import React, { Component } from 'react';
+import PropTypes from 'prop-types';
+import classNames from 'classnames';
+
+const anchorPositionToClassNameMap = {
+ 'center': '',
+ 'left': 'kuiPopover--anchorLeft',
+ 'right': 'kuiPopover--anchorRight',
+};
+
+export const ANCHOR_POSITIONS = Object.keys(anchorPositionToClassNameMap);
+
+export class KuiPopover extends Component {
+ constructor(props) {
+ super(props);
+
+ // Use this variable to differentiate between clicks on the element that should not cause the pop up
+ // to close, and external clicks that should cause the pop up to close.
+ this.didClickMyself = false;
+ }
+
+ closePopover = () => {
+ if (this.didClickMyself) {
+ this.didClickMyself = false;
+ return;
+ }
+
+ this.props.closePopover();
+ };
+
+ onClickRootElement = () => {
+ // This prevents clicking on the element from closing it, due to the event handler on the
+ // document object.
+ this.didClickMyself = true;
+ };
+
+ componentDidMount() {
+ // When the user clicks somewhere outside of the color picker, we will dismiss it.
+ document.addEventListener('click', this.closePopover);
+ }
+
+ componentWillUnmount() {
+ document.removeEventListener('click', this.closePopover);
+ }
+
+ render() {
+ const {
+ anchorPosition,
+ bodyClassName,
+ button,
+ isOpen,
+ children,
+ className,
+ closePopover, // eslint-disable-line no-unused-vars
+ ...rest,
+ } = this.props;
+
+ const classes = classNames(
+ 'kuiPopover',
+ anchorPositionToClassNameMap[anchorPosition],
+ className,
+ {
+ 'kuiPopover-isOpen': isOpen,
+ },
+ );
+
+ const bodyClasses = classNames('kuiPopover__body', bodyClassName);
+
+ const body = (
+
+ { children }
+
+ );
+
+ return (
+
+ { button }
+ { body }
+
+ );
+ }
+}
+
+KuiPopover.propTypes = {
+ isOpen: PropTypes.bool,
+ closePopover: PropTypes.func.isRequired,
+ button: PropTypes.node.isRequired,
+ children: PropTypes.node,
+ anchorPosition: PropTypes.oneOf(ANCHOR_POSITIONS),
+ bodyClassName: PropTypes.string,
+};
+
+KuiPopover.defaultProps = {
+ isOpen: false,
+ anchorPosition: 'center',
+};
diff --git a/ui_framework/src/components/popover/popover.test.js b/ui_framework/src/components/popover/popover.test.js
new file mode 100644
index 000000000000..39f20fccc002
--- /dev/null
+++ b/ui_framework/src/components/popover/popover.test.js
@@ -0,0 +1,101 @@
+import React from 'react';
+import { render } from 'enzyme';
+import { requiredProps } from '../../test/required_props';
+
+import { KuiPopover } from './popover';
+
+describe('KuiPopover', () => {
+ test('is rendered', () => {
+ const component = render(
+ }
+ closePopover={() => {}}
+ {...requiredProps}
+ />
+ );
+
+ expect(component)
+ .toMatchSnapshot();
+ });
+
+ test('children is rendered', () => {
+ const component = render(
+ }
+ closePopover={() => {}}
+ >
+ Children
+
+ );
+
+ expect(component)
+ .toMatchSnapshot();
+ });
+
+ describe('anchorPosition', () => {
+ test('defaults to center', () => {
+ const component = render(
+ }
+ closePopover={() => {}}
+ />
+ );
+
+ expect(component)
+ .toMatchSnapshot();
+ });
+
+ test('left is rendered', () => {
+ const component = render(
+ }
+ closePopover={() => {}}
+ anchorPosition="left"
+ />
+ );
+
+ expect(component)
+ .toMatchSnapshot();
+ });
+
+ test('right is rendered', () => {
+ const component = render(
+ }
+ closePopover={() => {}}
+ anchorPosition="right"
+ />
+ );
+
+ expect(component)
+ .toMatchSnapshot();
+ });
+ });
+
+ describe('isOpen', () => {
+ test('defaults to false', () => {
+ const component = render(
+ }
+ closePopover={() => {}}
+ />
+ );
+
+ expect(component)
+ .toMatchSnapshot();
+ });
+
+ test('renders true', () => {
+ const component = render(
+ }
+ closePopover={() => {}}
+ isOpen={true}
+ />
+ );
+
+ expect(component)
+ .toMatchSnapshot();
+ });
+ });
+});
diff --git a/ui_framework/components/status_text/_index.scss b/ui_framework/src/components/status_text/_index.scss
similarity index 100%
rename from ui_framework/components/status_text/_index.scss
rename to ui_framework/src/components/status_text/_index.scss
diff --git a/ui_framework/components/status_text/_status_text.scss b/ui_framework/src/components/status_text/_status_text.scss
similarity index 100%
rename from ui_framework/components/status_text/_status_text.scss
rename to ui_framework/src/components/status_text/_status_text.scss
diff --git a/ui_framework/components/table/__snapshots__/controlled_table.test.js.snap b/ui_framework/src/components/table/__snapshots__/controlled_table.test.js.snap
similarity index 100%
rename from ui_framework/components/table/__snapshots__/controlled_table.test.js.snap
rename to ui_framework/src/components/table/__snapshots__/controlled_table.test.js.snap
diff --git a/ui_framework/components/table/__snapshots__/table.test.js.snap b/ui_framework/src/components/table/__snapshots__/table.test.js.snap
similarity index 100%
rename from ui_framework/components/table/__snapshots__/table.test.js.snap
rename to ui_framework/src/components/table/__snapshots__/table.test.js.snap
diff --git a/ui_framework/components/table/__snapshots__/table_header_cell.test.js.snap b/ui_framework/src/components/table/__snapshots__/table_header_cell.test.js.snap
similarity index 100%
rename from ui_framework/components/table/__snapshots__/table_header_cell.test.js.snap
rename to ui_framework/src/components/table/__snapshots__/table_header_cell.test.js.snap
diff --git a/ui_framework/components/table/__snapshots__/table_header_check_box_cell.test.js.snap b/ui_framework/src/components/table/__snapshots__/table_header_check_box_cell.test.js.snap
similarity index 100%
rename from ui_framework/components/table/__snapshots__/table_header_check_box_cell.test.js.snap
rename to ui_framework/src/components/table/__snapshots__/table_header_check_box_cell.test.js.snap
diff --git a/ui_framework/components/table/__snapshots__/table_info.test.js.snap b/ui_framework/src/components/table/__snapshots__/table_info.test.js.snap
similarity index 100%
rename from ui_framework/components/table/__snapshots__/table_info.test.js.snap
rename to ui_framework/src/components/table/__snapshots__/table_info.test.js.snap
diff --git a/ui_framework/components/table/__snapshots__/table_row.test.js.snap b/ui_framework/src/components/table/__snapshots__/table_row.test.js.snap
similarity index 100%
rename from ui_framework/components/table/__snapshots__/table_row.test.js.snap
rename to ui_framework/src/components/table/__snapshots__/table_row.test.js.snap
diff --git a/ui_framework/components/table/__snapshots__/table_row_cell.test.js.snap b/ui_framework/src/components/table/__snapshots__/table_row_cell.test.js.snap
similarity index 100%
rename from ui_framework/components/table/__snapshots__/table_row_cell.test.js.snap
rename to ui_framework/src/components/table/__snapshots__/table_row_cell.test.js.snap
diff --git a/ui_framework/components/table/__snapshots__/table_row_check_box_cell.test.js.snap b/ui_framework/src/components/table/__snapshots__/table_row_check_box_cell.test.js.snap
similarity index 100%
rename from ui_framework/components/table/__snapshots__/table_row_check_box_cell.test.js.snap
rename to ui_framework/src/components/table/__snapshots__/table_row_check_box_cell.test.js.snap
diff --git a/ui_framework/components/table/_controlled_table.scss b/ui_framework/src/components/table/_controlled_table.scss
similarity index 100%
rename from ui_framework/components/table/_controlled_table.scss
rename to ui_framework/src/components/table/_controlled_table.scss
diff --git a/ui_framework/components/table/_index.scss b/ui_framework/src/components/table/_index.scss
similarity index 100%
rename from ui_framework/components/table/_index.scss
rename to ui_framework/src/components/table/_index.scss
diff --git a/ui_framework/components/table/_table.scss b/ui_framework/src/components/table/_table.scss
similarity index 100%
rename from ui_framework/components/table/_table.scss
rename to ui_framework/src/components/table/_table.scss
diff --git a/ui_framework/components/table/controlled_table.js b/ui_framework/src/components/table/controlled_table.js
similarity index 100%
rename from ui_framework/components/table/controlled_table.js
rename to ui_framework/src/components/table/controlled_table.js
diff --git a/ui_framework/components/table/controlled_table.test.js b/ui_framework/src/components/table/controlled_table.test.js
similarity index 75%
rename from ui_framework/components/table/controlled_table.test.js
rename to ui_framework/src/components/table/controlled_table.test.js
index e8f546858f82..579549b85e2c 100644
--- a/ui_framework/components/table/controlled_table.test.js
+++ b/ui_framework/src/components/table/controlled_table.test.js
@@ -7,6 +7,6 @@ import {
} from './controlled_table';
test('renders KuiToolControlledTable', () => {
- const component = children;
+ const component = children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/table/index.js b/ui_framework/src/components/table/index.js
similarity index 100%
rename from ui_framework/components/table/index.js
rename to ui_framework/src/components/table/index.js
diff --git a/ui_framework/components/table/table.js b/ui_framework/src/components/table/table.js
similarity index 100%
rename from ui_framework/components/table/table.js
rename to ui_framework/src/components/table/table.js
diff --git a/ui_framework/components/table/table.test.js b/ui_framework/src/components/table/table.test.js
similarity index 96%
rename from ui_framework/components/table/table.test.js
rename to ui_framework/src/components/table/table.test.js
index 253239d20e43..4a384bef1354 100644
--- a/ui_framework/components/table/table.test.js
+++ b/ui_framework/src/components/table/table.test.js
@@ -11,7 +11,7 @@ import { KuiTableHeaderCell } from './table_header_cell';
test('renders KuiTable', () => {
const component = (
-
+
Hi Title
diff --git a/ui_framework/components/table/table_body.js b/ui_framework/src/components/table/table_body.js
similarity index 85%
rename from ui_framework/components/table/table_body.js
rename to ui_framework/src/components/table/table_body.js
index 40588e57efef..79c8b285b761 100644
--- a/ui_framework/components/table/table_body.js
+++ b/ui_framework/src/components/table/table_body.js
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
export const KuiTableBody = ({ children, className, ...rest }) => {
return (
-
+
{ children }
);
diff --git a/ui_framework/components/table/table_header.js b/ui_framework/src/components/table/table_header.js
similarity index 85%
rename from ui_framework/components/table/table_header.js
rename to ui_framework/src/components/table/table_header.js
index cb4fa51d8272..e48b2af7694a 100644
--- a/ui_framework/components/table/table_header.js
+++ b/ui_framework/src/components/table/table_header.js
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
export const KuiTableHeader = ({ children, className, ...rest }) => {
return (
-
+
{ children }
);
diff --git a/ui_framework/components/table/table_header_cell.js b/ui_framework/src/components/table/table_header_cell.js
similarity index 100%
rename from ui_framework/components/table/table_header_cell.js
rename to ui_framework/src/components/table/table_header_cell.js
diff --git a/ui_framework/components/table/table_header_cell.test.js b/ui_framework/src/components/table/table_header_cell.test.js
similarity index 75%
rename from ui_framework/components/table/table_header_cell.test.js
rename to ui_framework/src/components/table/table_header_cell.test.js
index ec39c1bacceb..44e52ace9148 100644
--- a/ui_framework/components/table/table_header_cell.test.js
+++ b/ui_framework/src/components/table/table_header_cell.test.js
@@ -7,6 +7,6 @@ import {
} from './table_header_cell';
test('renders KuiTableHeaderCell', () => {
- const component = children;
+ const component = children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/table/table_header_check_box_cell.js b/ui_framework/src/components/table/table_header_check_box_cell.js
similarity index 87%
rename from ui_framework/components/table/table_header_check_box_cell.js
rename to ui_framework/src/components/table/table_header_check_box_cell.js
index 65c36d5c44d4..84d12b0e3034 100644
--- a/ui_framework/components/table/table_header_check_box_cell.js
+++ b/ui_framework/src/components/table/table_header_check_box_cell.js
@@ -7,14 +7,14 @@ export const KuiTableHeaderCheckBoxCell = ({ onChange, isChecked, className, ...
const classes = classNames('kuiTableHeaderCell--checkBox', className);
return (
);
diff --git a/ui_framework/components/table/table_header_check_box_cell.test.js b/ui_framework/src/components/table/table_header_check_box_cell.test.js
similarity index 73%
rename from ui_framework/components/table/table_header_check_box_cell.test.js
rename to ui_framework/src/components/table/table_header_check_box_cell.test.js
index 44930ddba01e..e998beabecb4 100644
--- a/ui_framework/components/table/table_header_check_box_cell.test.js
+++ b/ui_framework/src/components/table/table_header_check_box_cell.test.js
@@ -7,6 +7,6 @@ import {
} from './table_header_check_box_cell';
test('renders KuiTableHeaderCheckBoxCell', () => {
- const component = children;
+ const component = children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/table/table_info.js b/ui_framework/src/components/table/table_info.js
similarity index 100%
rename from ui_framework/components/table/table_info.js
rename to ui_framework/src/components/table/table_info.js
diff --git a/ui_framework/components/table/table_info.test.js b/ui_framework/src/components/table/table_info.test.js
similarity index 76%
rename from ui_framework/components/table/table_info.test.js
rename to ui_framework/src/components/table/table_info.test.js
index 59d7890f0afc..4c5eb34c7265 100644
--- a/ui_framework/components/table/table_info.test.js
+++ b/ui_framework/src/components/table/table_info.test.js
@@ -7,6 +7,6 @@ import {
} from './table_info';
test('renders KuiTableInfo', () => {
- const component = children;
+ const component = children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/table/table_row.js b/ui_framework/src/components/table/table_row.js
similarity index 100%
rename from ui_framework/components/table/table_row.js
rename to ui_framework/src/components/table/table_row.js
diff --git a/ui_framework/components/table/table_row.test.js b/ui_framework/src/components/table/table_row.test.js
similarity index 91%
rename from ui_framework/components/table/table_row.test.js
rename to ui_framework/src/components/table/table_row.test.js
index 5732b4d404ea..abc210710418 100644
--- a/ui_framework/components/table/table_row.test.js
+++ b/ui_framework/src/components/table/table_row.test.js
@@ -12,7 +12,7 @@ import {
test('renders KuiTableRow', () => {
const component = (
-
+
hi
);
diff --git a/ui_framework/components/table/table_row_cell.js b/ui_framework/src/components/table/table_row_cell.js
similarity index 100%
rename from ui_framework/components/table/table_row_cell.js
rename to ui_framework/src/components/table/table_row_cell.js
diff --git a/ui_framework/components/table/table_row_cell.test.js b/ui_framework/src/components/table/table_row_cell.test.js
similarity index 81%
rename from ui_framework/components/table/table_row_cell.test.js
rename to ui_framework/src/components/table/table_row_cell.test.js
index 95928873a681..117a3e8ef133 100644
--- a/ui_framework/components/table/table_row_cell.test.js
+++ b/ui_framework/src/components/table/table_row_cell.test.js
@@ -7,6 +7,6 @@ import {
} from './table_row_cell';
test('renders KuiTableRowCell', () => {
- const component = ;
+ const component = ;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/table/table_row_check_box_cell.js b/ui_framework/src/components/table/table_row_check_box_cell.js
similarity index 87%
rename from ui_framework/components/table/table_row_check_box_cell.js
rename to ui_framework/src/components/table/table_row_check_box_cell.js
index 8d301478ac67..49bca782cd4a 100644
--- a/ui_framework/components/table/table_row_check_box_cell.js
+++ b/ui_framework/src/components/table/table_row_check_box_cell.js
@@ -7,14 +7,14 @@ export const KuiTableRowCheckBoxCell = ({ onChange, isChecked, className, ...res
const classes = classNames('kuiTableRowCell--checkBox', className);
return (
);
diff --git a/ui_framework/components/table/table_row_check_box_cell.test.js b/ui_framework/src/components/table/table_row_check_box_cell.test.js
similarity index 80%
rename from ui_framework/components/table/table_row_check_box_cell.test.js
rename to ui_framework/src/components/table/table_row_check_box_cell.test.js
index 632ce0592433..3429b36fcf38 100644
--- a/ui_framework/components/table/table_row_check_box_cell.test.js
+++ b/ui_framework/src/components/table/table_row_check_box_cell.test.js
@@ -7,6 +7,6 @@ import {
} from './table_row_check_box_cell';
test('renders KuiTableRowCheckBoxCell', () => {
- const component = ;
+ const component = ;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/table_info/_index.scss b/ui_framework/src/components/table_info/_index.scss
similarity index 100%
rename from ui_framework/components/table_info/_index.scss
rename to ui_framework/src/components/table_info/_index.scss
diff --git a/ui_framework/components/table_info/_table_info.scss b/ui_framework/src/components/table_info/_table_info.scss
similarity index 100%
rename from ui_framework/components/table_info/_table_info.scss
rename to ui_framework/src/components/table_info/_table_info.scss
diff --git a/ui_framework/components/tabs/__snapshots__/tab.test.js.snap b/ui_framework/src/components/tabs/__snapshots__/tab.test.js.snap
similarity index 100%
rename from ui_framework/components/tabs/__snapshots__/tab.test.js.snap
rename to ui_framework/src/components/tabs/__snapshots__/tab.test.js.snap
diff --git a/ui_framework/components/tabs/__snapshots__/tabs.test.js.snap b/ui_framework/src/components/tabs/__snapshots__/tabs.test.js.snap
similarity index 100%
rename from ui_framework/components/tabs/__snapshots__/tabs.test.js.snap
rename to ui_framework/src/components/tabs/__snapshots__/tabs.test.js.snap
diff --git a/ui_framework/components/tabs/_index.scss b/ui_framework/src/components/tabs/_index.scss
similarity index 100%
rename from ui_framework/components/tabs/_index.scss
rename to ui_framework/src/components/tabs/_index.scss
diff --git a/ui_framework/components/tabs/_tabs.scss b/ui_framework/src/components/tabs/_tabs.scss
similarity index 100%
rename from ui_framework/components/tabs/_tabs.scss
rename to ui_framework/src/components/tabs/_tabs.scss
diff --git a/ui_framework/components/tabs/index.js b/ui_framework/src/components/tabs/index.js
similarity index 100%
rename from ui_framework/components/tabs/index.js
rename to ui_framework/src/components/tabs/index.js
diff --git a/ui_framework/components/tabs/tab.js b/ui_framework/src/components/tabs/tab.js
similarity index 100%
rename from ui_framework/components/tabs/tab.js
rename to ui_framework/src/components/tabs/tab.js
diff --git a/ui_framework/components/tabs/tab.test.js b/ui_framework/src/components/tabs/tab.test.js
similarity index 80%
rename from ui_framework/components/tabs/tab.test.js
rename to ui_framework/src/components/tabs/tab.test.js
index e820d148755b..66311c4f90b8 100644
--- a/ui_framework/components/tabs/tab.test.js
+++ b/ui_framework/src/components/tabs/tab.test.js
@@ -9,12 +9,12 @@ import {
describe('KuiTab', () => {
test('renders', () => {
- const component = {}} { ...requiredProps }>children;
+ const component = {}} {...requiredProps}>children;
expect(render(component)).toMatchSnapshot();
});
test('renders isSelected', () => {
- const component = {}} isSelected { ...requiredProps }>children;
+ const component = {}} isSelected {...requiredProps}>children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/tabs/tabs.js b/ui_framework/src/components/tabs/tabs.js
similarity index 100%
rename from ui_framework/components/tabs/tabs.js
rename to ui_framework/src/components/tabs/tabs.js
diff --git a/ui_framework/components/tabs/tabs.test.js b/ui_framework/src/components/tabs/tabs.test.js
similarity index 88%
rename from ui_framework/components/tabs/tabs.test.js
rename to ui_framework/src/components/tabs/tabs.test.js
index 24e934021a43..947bd1394da4 100644
--- a/ui_framework/components/tabs/tabs.test.js
+++ b/ui_framework/src/components/tabs/tabs.test.js
@@ -9,7 +9,7 @@ import {
describe('KuiTabs', () => {
test('renders', () => {
const component = (
-
+
);
expect(render(component)).toMatchSnapshot();
diff --git a/ui_framework/components/toggle_button/_index.scss b/ui_framework/src/components/toggle_button/_index.scss
similarity index 100%
rename from ui_framework/components/toggle_button/_index.scss
rename to ui_framework/src/components/toggle_button/_index.scss
diff --git a/ui_framework/components/toggle_button/_toggle_button.scss b/ui_framework/src/components/toggle_button/_toggle_button.scss
similarity index 100%
rename from ui_framework/components/toggle_button/_toggle_button.scss
rename to ui_framework/src/components/toggle_button/_toggle_button.scss
diff --git a/ui_framework/components/toggle_button/_toggle_panel.scss b/ui_framework/src/components/toggle_button/_toggle_panel.scss
similarity index 100%
rename from ui_framework/components/toggle_button/_toggle_panel.scss
rename to ui_framework/src/components/toggle_button/_toggle_panel.scss
diff --git a/ui_framework/components/tool_bar/__snapshots__/tool_bar.test.js.snap b/ui_framework/src/components/tool_bar/__snapshots__/tool_bar.test.js.snap
similarity index 100%
rename from ui_framework/components/tool_bar/__snapshots__/tool_bar.test.js.snap
rename to ui_framework/src/components/tool_bar/__snapshots__/tool_bar.test.js.snap
diff --git a/ui_framework/components/tool_bar/__snapshots__/tool_bar_footer.test.js.snap b/ui_framework/src/components/tool_bar/__snapshots__/tool_bar_footer.test.js.snap
similarity index 100%
rename from ui_framework/components/tool_bar/__snapshots__/tool_bar_footer.test.js.snap
rename to ui_framework/src/components/tool_bar/__snapshots__/tool_bar_footer.test.js.snap
diff --git a/ui_framework/components/tool_bar/__snapshots__/tool_bar_footer_section.test.js.snap b/ui_framework/src/components/tool_bar/__snapshots__/tool_bar_footer_section.test.js.snap
similarity index 100%
rename from ui_framework/components/tool_bar/__snapshots__/tool_bar_footer_section.test.js.snap
rename to ui_framework/src/components/tool_bar/__snapshots__/tool_bar_footer_section.test.js.snap
diff --git a/ui_framework/components/tool_bar/__snapshots__/tool_bar_search_box.test.js.snap b/ui_framework/src/components/tool_bar/__snapshots__/tool_bar_search_box.test.js.snap
similarity index 100%
rename from ui_framework/components/tool_bar/__snapshots__/tool_bar_search_box.test.js.snap
rename to ui_framework/src/components/tool_bar/__snapshots__/tool_bar_search_box.test.js.snap
diff --git a/ui_framework/components/tool_bar/__snapshots__/tool_bar_section.test.js.snap b/ui_framework/src/components/tool_bar/__snapshots__/tool_bar_section.test.js.snap
similarity index 100%
rename from ui_framework/components/tool_bar/__snapshots__/tool_bar_section.test.js.snap
rename to ui_framework/src/components/tool_bar/__snapshots__/tool_bar_section.test.js.snap
diff --git a/ui_framework/components/tool_bar/__snapshots__/tool_bar_text.test.js.snap b/ui_framework/src/components/tool_bar/__snapshots__/tool_bar_text.test.js.snap
similarity index 100%
rename from ui_framework/components/tool_bar/__snapshots__/tool_bar_text.test.js.snap
rename to ui_framework/src/components/tool_bar/__snapshots__/tool_bar_text.test.js.snap
diff --git a/ui_framework/components/tool_bar/_index.scss b/ui_framework/src/components/tool_bar/_index.scss
similarity index 100%
rename from ui_framework/components/tool_bar/_index.scss
rename to ui_framework/src/components/tool_bar/_index.scss
diff --git a/ui_framework/components/tool_bar/_tool_bar.scss b/ui_framework/src/components/tool_bar/_tool_bar.scss
similarity index 100%
rename from ui_framework/components/tool_bar/_tool_bar.scss
rename to ui_framework/src/components/tool_bar/_tool_bar.scss
diff --git a/ui_framework/components/tool_bar/_tool_bar_footer.scss b/ui_framework/src/components/tool_bar/_tool_bar_footer.scss
similarity index 100%
rename from ui_framework/components/tool_bar/_tool_bar_footer.scss
rename to ui_framework/src/components/tool_bar/_tool_bar_footer.scss
diff --git a/ui_framework/components/tool_bar/_tool_bar_search.scss b/ui_framework/src/components/tool_bar/_tool_bar_search.scss
similarity index 100%
rename from ui_framework/components/tool_bar/_tool_bar_search.scss
rename to ui_framework/src/components/tool_bar/_tool_bar_search.scss
diff --git a/ui_framework/components/tool_bar/_tool_bar_text.scss b/ui_framework/src/components/tool_bar/_tool_bar_text.scss
similarity index 100%
rename from ui_framework/components/tool_bar/_tool_bar_text.scss
rename to ui_framework/src/components/tool_bar/_tool_bar_text.scss
diff --git a/ui_framework/components/tool_bar/index.js b/ui_framework/src/components/tool_bar/index.js
similarity index 100%
rename from ui_framework/components/tool_bar/index.js
rename to ui_framework/src/components/tool_bar/index.js
diff --git a/ui_framework/components/tool_bar/tool_bar.js b/ui_framework/src/components/tool_bar/tool_bar.js
similarity index 100%
rename from ui_framework/components/tool_bar/tool_bar.js
rename to ui_framework/src/components/tool_bar/tool_bar.js
diff --git a/ui_framework/components/tool_bar/tool_bar.test.js b/ui_framework/src/components/tool_bar/tool_bar.test.js
similarity index 76%
rename from ui_framework/components/tool_bar/tool_bar.test.js
rename to ui_framework/src/components/tool_bar/tool_bar.test.js
index 5fc1eb6d3822..bb6d74557368 100644
--- a/ui_framework/components/tool_bar/tool_bar.test.js
+++ b/ui_framework/src/components/tool_bar/tool_bar.test.js
@@ -7,7 +7,7 @@ import {
} from './tool_bar';
test('renders KuiToolBar', () => {
- const component = children;
+ const component = children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/tool_bar/tool_bar_footer.js b/ui_framework/src/components/tool_bar/tool_bar_footer.js
similarity index 100%
rename from ui_framework/components/tool_bar/tool_bar_footer.js
rename to ui_framework/src/components/tool_bar/tool_bar_footer.js
diff --git a/ui_framework/components/tool_bar/tool_bar_footer.test.js b/ui_framework/src/components/tool_bar/tool_bar_footer.test.js
similarity index 75%
rename from ui_framework/components/tool_bar/tool_bar_footer.test.js
rename to ui_framework/src/components/tool_bar/tool_bar_footer.test.js
index c48ee7fcdcac..67c5d6132115 100644
--- a/ui_framework/components/tool_bar/tool_bar_footer.test.js
+++ b/ui_framework/src/components/tool_bar/tool_bar_footer.test.js
@@ -7,6 +7,6 @@ import {
} from './tool_bar_footer';
test('renders KuiToolBarFooter', () => {
- const component = children;
+ const component = children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/tool_bar/tool_bar_footer_section.js b/ui_framework/src/components/tool_bar/tool_bar_footer_section.js
similarity index 100%
rename from ui_framework/components/tool_bar/tool_bar_footer_section.js
rename to ui_framework/src/components/tool_bar/tool_bar_footer_section.js
diff --git a/ui_framework/components/tool_bar/tool_bar_footer_section.test.js b/ui_framework/src/components/tool_bar/tool_bar_footer_section.test.js
similarity index 74%
rename from ui_framework/components/tool_bar/tool_bar_footer_section.test.js
rename to ui_framework/src/components/tool_bar/tool_bar_footer_section.test.js
index 10008b58e039..f41d6566cb75 100644
--- a/ui_framework/components/tool_bar/tool_bar_footer_section.test.js
+++ b/ui_framework/src/components/tool_bar/tool_bar_footer_section.test.js
@@ -7,6 +7,6 @@ import {
} from './tool_bar_footer_section';
test('renders KuiToolBarFooterSection', () => {
- const component = children;
+ const component = children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/tool_bar/tool_bar_search_box.js b/ui_framework/src/components/tool_bar/tool_bar_search_box.js
similarity index 83%
rename from ui_framework/components/tool_bar/tool_bar_search_box.js
rename to ui_framework/src/components/tool_bar/tool_bar_search_box.js
index 36803651522f..41bf0e992589 100644
--- a/ui_framework/components/tool_bar/tool_bar_search_box.js
+++ b/ui_framework/src/components/tool_bar/tool_bar_search_box.js
@@ -8,18 +8,18 @@ export function KuiToolBarSearchBox({ filter, onFilter, placeholder, className,
const classes = classNames('kuiToolBarSearch', className);
return (
diff --git a/ui_framework/components/tool_bar/tool_bar_search_box.test.js b/ui_framework/src/components/tool_bar/tool_bar_search_box.test.js
similarity index 90%
rename from ui_framework/components/tool_bar/tool_bar_search_box.test.js
rename to ui_framework/src/components/tool_bar/tool_bar_search_box.test.js
index 17685a506e1d..7f54bb3bb4e6 100644
--- a/ui_framework/components/tool_bar/tool_bar_search_box.test.js
+++ b/ui_framework/src/components/tool_bar/tool_bar_search_box.test.js
@@ -10,13 +10,13 @@ import {
const onFilter = sinon.spy();
test('renders KuiToolBarSearchBox', () => {
- const component = ;
+ const component = ;
expect(render(component)).toMatchSnapshot();
});
describe('onFilter', () => {
test('is called on change event, with the value entered', () => {
- const searchBox = mount();
+ const searchBox = mount();
onFilter.reset();
const event = { target: { value: 'a' } };
searchBox.find('input').simulate('change', event);
diff --git a/ui_framework/components/tool_bar/tool_bar_section.js b/ui_framework/src/components/tool_bar/tool_bar_section.js
similarity index 100%
rename from ui_framework/components/tool_bar/tool_bar_section.js
rename to ui_framework/src/components/tool_bar/tool_bar_section.js
diff --git a/ui_framework/components/tool_bar/tool_bar_section.test.js b/ui_framework/src/components/tool_bar/tool_bar_section.test.js
similarity index 75%
rename from ui_framework/components/tool_bar/tool_bar_section.test.js
rename to ui_framework/src/components/tool_bar/tool_bar_section.test.js
index 8a6e92e038f1..7a98f905d9c2 100644
--- a/ui_framework/components/tool_bar/tool_bar_section.test.js
+++ b/ui_framework/src/components/tool_bar/tool_bar_section.test.js
@@ -7,6 +7,6 @@ import {
} from './tool_bar_section';
test('renders KuiToolBarSection', () => {
- const component = children;
+ const component = children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/components/tool_bar/tool_bar_text.js b/ui_framework/src/components/tool_bar/tool_bar_text.js
similarity index 100%
rename from ui_framework/components/tool_bar/tool_bar_text.js
rename to ui_framework/src/components/tool_bar/tool_bar_text.js
diff --git a/ui_framework/components/tool_bar/tool_bar_text.test.js b/ui_framework/src/components/tool_bar/tool_bar_text.test.js
similarity index 75%
rename from ui_framework/components/tool_bar/tool_bar_text.test.js
rename to ui_framework/src/components/tool_bar/tool_bar_text.test.js
index c8e697c4a4c0..b55b49b2be89 100644
--- a/ui_framework/components/tool_bar/tool_bar_text.test.js
+++ b/ui_framework/src/components/tool_bar/tool_bar_text.test.js
@@ -7,7 +7,7 @@ import {
} from './tool_bar_text';
test('renders KuiToolBarText', () => {
- const component = children;
+ const component = children;
expect(render(component)).toMatchSnapshot();
});
diff --git a/ui_framework/src/components/typography/__snapshots__/typography.test.js.snap b/ui_framework/src/components/typography/__snapshots__/typography.test.js.snap
new file mode 100644
index 000000000000..7ba379ea5a62
--- /dev/null
+++ b/ui_framework/src/components/typography/__snapshots__/typography.test.js.snap
@@ -0,0 +1,37 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`KuiText is rendered 1`] = `
+
+ Hello
+
+`;
+
+exports[`KuiTitle is rendered 1`] = `
+
+ Hello
+
+`;
+
+exports[`KuiTitle renders size large 1`] = `
+
+ Hello
+
+`;
+
+exports[`KuiTitle renders size small 1`] = `
+
+ Hello
+
+`;
diff --git a/ui_framework/components/typography/_index.scss b/ui_framework/src/components/typography/_index.scss
similarity index 100%
rename from ui_framework/components/typography/_index.scss
rename to ui_framework/src/components/typography/_index.scss
diff --git a/ui_framework/components/typography/_typography.scss b/ui_framework/src/components/typography/_typography.scss
similarity index 100%
rename from ui_framework/components/typography/_typography.scss
rename to ui_framework/src/components/typography/_typography.scss
diff --git a/ui_framework/src/components/typography/typography.js b/ui_framework/src/components/typography/typography.js
new file mode 100644
index 000000000000..1e13bbed7588
--- /dev/null
+++ b/ui_framework/src/components/typography/typography.js
@@ -0,0 +1,43 @@
+import {
+ cloneElement,
+ PropTypes,
+} from 'react';
+import classNames from 'classnames';
+
+const sizeToClassNameMap = {
+ small: 'kuiTitle--small',
+ large: 'kuiTitle--large',
+};
+
+export const SIZES = Object.keys(sizeToClassNameMap);
+
+export const KuiTitle = ({ size, children, className, ...rest }) => {
+ const classes = classNames('kuiTitle', sizeToClassNameMap[size], className);
+
+ const props = {
+ className: classes,
+ ...rest,
+ };
+
+ return cloneElement(children, props);
+};
+
+KuiTitle.PropTypes = {
+ children: PropTypes.node.isRequired,
+ size: PropTypes.oneOf(SIZES),
+};
+
+export const KuiText = ({ children, className, ...rest }) => {
+ const classes = classNames('kuiText', className);
+
+ const props = {
+ className: classes,
+ ...rest,
+ };
+
+ return cloneElement(children, props);
+};
+
+KuiText.PropTypes = {
+ children: PropTypes.node.isRequired,
+};
diff --git a/ui_framework/src/components/typography/typography.test.js b/ui_framework/src/components/typography/typography.test.js
new file mode 100644
index 000000000000..d0fd054cba87
--- /dev/null
+++ b/ui_framework/src/components/typography/typography.test.js
@@ -0,0 +1,50 @@
+import React from 'react';
+import { render } from 'enzyme';
+import { requiredProps } from '../../test/required_props';
+
+import {
+ KuiTitle,
+ KuiText,
+ SIZES,
+} from './typography';
+
+describe('KuiTitle', () => {
+ test('is rendered', () => {
+ const component = render(
+
+ Hello
+
+ );
+
+ expect(component)
+ .toMatchSnapshot();
+ });
+
+ describe('renders size', () => {
+ SIZES.forEach(size => {
+ test(size, () => {
+ const component = render(
+
+ Hello
+
+ );
+
+ expect(component)
+ .toMatchSnapshot();
+ });
+ });
+ });
+});
+
+describe('KuiText', () => {
+ test('is rendered', () => {
+ const component = render(
+
+ Hello
+
+ );
+
+ expect(component)
+ .toMatchSnapshot();
+ });
+});
diff --git a/ui_framework/components/vertical_rhythm/_index.scss b/ui_framework/src/components/vertical_rhythm/_index.scss
similarity index 100%
rename from ui_framework/components/vertical_rhythm/_index.scss
rename to ui_framework/src/components/vertical_rhythm/_index.scss
diff --git a/ui_framework/components/vertical_rhythm/_vertical_rhythm.scss b/ui_framework/src/components/vertical_rhythm/_vertical_rhythm.scss
similarity index 100%
rename from ui_framework/components/vertical_rhythm/_vertical_rhythm.scss
rename to ui_framework/src/components/vertical_rhythm/_vertical_rhythm.scss
diff --git a/ui_framework/components/view/_index.scss b/ui_framework/src/components/view/_index.scss
similarity index 100%
rename from ui_framework/components/view/_index.scss
rename to ui_framework/src/components/view/_index.scss
diff --git a/ui_framework/components/view/_view.scss b/ui_framework/src/components/view/_view.scss
similarity index 100%
rename from ui_framework/components/view/_view.scss
rename to ui_framework/src/components/view/_view.scss
diff --git a/ui_framework/components/_mixins.scss b/ui_framework/src/global_styling/mixins/_global_mixins.scss
similarity index 100%
rename from ui_framework/components/_mixins.scss
rename to ui_framework/src/global_styling/mixins/_global_mixins.scss
diff --git a/ui_framework/src/global_styling/mixins/_index.scss b/ui_framework/src/global_styling/mixins/_index.scss
new file mode 100644
index 000000000000..5950979c93d7
--- /dev/null
+++ b/ui_framework/src/global_styling/mixins/_index.scss
@@ -0,0 +1 @@
+@import 'global_mixins';
diff --git a/ui_framework/src/global_styling/reset/_index.scss b/ui_framework/src/global_styling/reset/_index.scss
new file mode 100644
index 000000000000..defff1d55c67
--- /dev/null
+++ b/ui_framework/src/global_styling/reset/_index.scss
@@ -0,0 +1 @@
+@import "reset";
diff --git a/ui_framework/components/_common_styles.scss b/ui_framework/src/global_styling/reset/_reset.scss
similarity index 100%
rename from ui_framework/components/_common_styles.scss
rename to ui_framework/src/global_styling/reset/_reset.scss
diff --git a/ui_framework/doc_site/src/views/button/button_small.js b/ui_framework/src/global_styling/utilities/_index.scss
similarity index 100%
rename from ui_framework/doc_site/src/views/button/button_small.js
rename to ui_framework/src/global_styling/utilities/_index.scss
diff --git a/ui_framework/src/global_styling/variables/_animations.scss b/ui_framework/src/global_styling/variables/_animations.scss
new file mode 100644
index 000000000000..7e0a4fca9d63
--- /dev/null
+++ b/ui_framework/src/global_styling/variables/_animations.scss
@@ -0,0 +1,9 @@
+// Animations
+
+$globalAnimSlightBounce: cubic-bezier(0.34,1.61,0.7,1);
+$globalAnimSlightResistance: cubic-bezier(0.694, 0.0482, 0.335, 1);
+$globalAnimSpeedVeryFast: 90ms;
+$globalAnimSpeedFast: 150ms;
+$globalAnimSpeedNormal: 250ms;
+$globalAnimSpeedSlow: 350ms;
+$globalAnimSpeedVerySlow: 500ms;
diff --git a/ui_framework/src/global_styling/variables/_borders.scss b/ui_framework/src/global_styling/variables/_borders.scss
new file mode 100644
index 000000000000..91c8776f5a9e
--- /dev/null
+++ b/ui_framework/src/global_styling/variables/_borders.scss
@@ -0,0 +1,6 @@
+// Borders
+
+$globalBorderColor: $globalColorLightGray;
+$globalBorderRadius: 4px;
+$globalBorderThick: 2px solid $globalBorderColor;
+$globalBorderThin: 1px solid $globalBorderColor;
diff --git a/ui_framework/src/global_styling/variables/_colors.scss b/ui_framework/src/global_styling/variables/_colors.scss
new file mode 100644
index 000000000000..adf001d2348b
--- /dev/null
+++ b/ui_framework/src/global_styling/variables/_colors.scss
@@ -0,0 +1,49 @@
+// True colors
+
+$globalColorBlue: #0079a5;
+$globalColorTeal: #00A69B;
+$globalColorRed: #A30000;
+$globalColorLightestGray: #F5F5F5;
+$globalColorLightGray: #D9D9D9;
+$globalColorMediumGray: #999;
+$globalColorDarkGray: #666;
+$globalColorDarkestGray: #3F3F3F;
+$globalColorBlack: #000;
+$globalColorWhite: #FFF;
+
+// Normal colors
+
+$globalTextColor: #2d2d2d;
+$globalLinkColor: $globalColorBlue;
+$globalLinkColor-isHover: darken($globalLinkColor, 10%);
+$globalInputTextColor: $globalTextColor;
+$globalInputBackgroundColor: $globalColorWhite;
+$globalInputBorderColor: $globalColorLightGray;
+
+// Dark theme colors
+
+$globalTextColor--darkTheme: #cecece;
+$globalBackgroundColor--darkTheme: #777777;
+$globalLinkColor--darkTheme: #b7e2ea;
+$globalLinkColor-isHover--darkTheme: #def2f6;
+$globalInputTextColor--darkTheme: $globalTextColor--darkTheme;
+$globalInputBackgroundColor--darkTheme: #444444;
+$globalInputBorderColor--darkTheme: $globalInputBackgroundColor--darkTheme;
+
+// Colors
+
+$globalInfoColor: #3fa8c7;
+$globalInactiveColor: #c3c3c3;
+$globalSuccessColor: #417505;
+$globalWarningColor: #ec9800;
+$globalDangerColor: $globalColorRed;
+$globalFocusColor: $globalColorBlue;
+$globalFocusDangerColor: #ff523c;
+$globalFocusWarningColor: #ffa500;
+$globalFocusBackgroundColor: #ffffff;
+$globalFontColor: #191E23;
+$globalSubduedTextColor: $globalColorDarkGray;
+$globalLinkHoverColor: #006E8A;
+$globalSelectedBorderColor: $globalColorBlue;
+$globalDangerBorderColor: $globalDangerColor;
+$globalFormControlBorderColor: #DEDEDE;
diff --git a/ui_framework/src/global_styling/variables/_font.scss b/ui_framework/src/global_styling/variables/_font.scss
new file mode 100644
index 000000000000..686e242bca94
--- /dev/null
+++ b/ui_framework/src/global_styling/variables/_font.scss
@@ -0,0 +1,9 @@
+// Font
+
+$globalFontFamily: "Open Sans", Helvetica, Arial, sans-serif;
+$globalFontSize: 14px;
+$globalLineHeight: 1.5;
+$globalSubTextFontSize: 12px;
+$globalTitleFontSize: 18px;
+$globalFontWeightRegular: 400;
+$globalFontWeightBold: 700;
diff --git a/ui_framework/src/global_styling/variables/_form.scss b/ui_framework/src/global_styling/variables/_form.scss
new file mode 100644
index 000000000000..442793e73aee
--- /dev/null
+++ b/ui_framework/src/global_styling/variables/_form.scss
@@ -0,0 +1,6 @@
+$globalFormControlHorizontalPadding: 12px;
+$globalFormControlPadding: 3px $globalFormControlHorizontalPadding 4px;
+$globalFormInputHeight: 30px;
+$globalFormFieldDefaultWidth: 180px;
+$globalFormFieldSmallWidth: 60px;
+$globalFormFieldLargeWidth: 400px;
diff --git a/ui_framework/src/global_styling/variables/_index.scss b/ui_framework/src/global_styling/variables/_index.scss
new file mode 100644
index 000000000000..9012651853b5
--- /dev/null
+++ b/ui_framework/src/global_styling/variables/_index.scss
@@ -0,0 +1,17 @@
+// --------------------------------------------------------------------------------------
+// KUI global variables
+// --------------------------------------------------------------------------------------
+// This module contains all global variables available within kui. Every variable in this
+// document should be prefixed with $global. This lets us know where the variable is
+// coming from when looking inside the individual component files. Any component local
+// variables should be declared at the top of those documents prefixed with $componentName.
+
+@import 'colors';
+@import 'font';
+@import 'timing';
+@import 'borders';
+@import 'shadows';
+@import 'z_index';
+@import 'animations';
+@import 'form';
+@import 'tool_bar';
diff --git a/ui_framework/src/global_styling/variables/_shadows.scss b/ui_framework/src/global_styling/variables/_shadows.scss
new file mode 100644
index 000000000000..9825e5581e54
--- /dev/null
+++ b/ui_framework/src/global_styling/variables/_shadows.scss
@@ -0,0 +1,3 @@
+// Shadows
+
+$globalBoxShadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
diff --git a/ui_framework/src/global_styling/variables/_timing.scss b/ui_framework/src/global_styling/variables/_timing.scss
new file mode 100644
index 000000000000..64c642f9a6e4
--- /dev/null
+++ b/ui_framework/src/global_styling/variables/_timing.scss
@@ -0,0 +1,3 @@
+// Timing
+
+$globalInputTransitionTiming: 0.1s linear;
diff --git a/ui_framework/src/global_styling/variables/_tool_bar.scss b/ui_framework/src/global_styling/variables/_tool_bar.scss
new file mode 100644
index 000000000000..7963b83d2b87
--- /dev/null
+++ b/ui_framework/src/global_styling/variables/_tool_bar.scss
@@ -0,0 +1,4 @@
+$toolBarHeight: 50px;
+$toolBarPadding: 10px;
+$toolBarSectionSpacing: 50px;
+$toolBarItsemSpacing: 10px;
diff --git a/ui_framework/src/global_styling/variables/_z_index.scss b/ui_framework/src/global_styling/variables/_z_index.scss
new file mode 100644
index 000000000000..e69de29bb2d1
diff --git a/ui_framework/src/index.scss b/ui_framework/src/index.scss
new file mode 100644
index 000000000000..ec4b0ad6f37e
--- /dev/null
+++ b/ui_framework/src/index.scss
@@ -0,0 +1,11 @@
+// Configuration
+@import 'global_styling/variables/index';
+@import 'themes/light_theme/index';
+
+// Core
+@import 'global_styling/mixins/index';
+@import 'global_styling/reset/index';
+@import 'global_styling/utilities/index';
+
+// Components
+@import 'components/index';
diff --git a/ui_framework/services/accessibility/accessible_click_keys.js b/ui_framework/src/services/accessibility/accessible_click_keys.js
similarity index 100%
rename from ui_framework/services/accessibility/accessible_click_keys.js
rename to ui_framework/src/services/accessibility/accessible_click_keys.js
diff --git a/ui_framework/services/accessibility/combo_box_key_codes.js b/ui_framework/src/services/accessibility/combo_box_key_codes.js
similarity index 100%
rename from ui_framework/services/accessibility/combo_box_key_codes.js
rename to ui_framework/src/services/accessibility/combo_box_key_codes.js
diff --git a/ui_framework/services/accessibility/index.js b/ui_framework/src/services/accessibility/index.js
similarity index 100%
rename from ui_framework/services/accessibility/index.js
rename to ui_framework/src/services/accessibility/index.js
diff --git a/ui_framework/services/alignment.js b/ui_framework/src/services/alignment.js
similarity index 100%
rename from ui_framework/services/alignment.js
rename to ui_framework/src/services/alignment.js
diff --git a/ui_framework/src/services/index.js b/ui_framework/src/services/index.js
new file mode 100644
index 000000000000..ba63715c0a26
--- /dev/null
+++ b/ui_framework/src/services/index.js
@@ -0,0 +1,11 @@
+export {
+ accessibleClickKeys,
+ comboBoxKeyCodes,
+ ENTER_KEY,
+ SPACE_KEY,
+} from './accessibility';
+
+export { SortableProperties } from './sort';
+export { ESC_KEY_CODE } from './key_codes';
+
+export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT } from './alignment';
diff --git a/ui_framework/services/key_codes.js b/ui_framework/src/services/key_codes.js
similarity index 100%
rename from ui_framework/services/key_codes.js
rename to ui_framework/src/services/key_codes.js
diff --git a/ui_framework/services/sort/index.js b/ui_framework/src/services/sort/index.js
similarity index 100%
rename from ui_framework/services/sort/index.js
rename to ui_framework/src/services/sort/index.js
diff --git a/ui_framework/services/sort/sortable_properties.js b/ui_framework/src/services/sort/sortable_properties.js
similarity index 100%
rename from ui_framework/services/sort/sortable_properties.js
rename to ui_framework/src/services/sort/sortable_properties.js
diff --git a/ui_framework/services/sort/sortable_properties.test.js b/ui_framework/src/services/sort/sortable_properties.test.js
similarity index 99%
rename from ui_framework/services/sort/sortable_properties.test.js
rename to ui_framework/src/services/sort/sortable_properties.test.js
index 2d6c80aa0099..e0f4bb2b21b7 100644
--- a/ui_framework/services/sort/sortable_properties.test.js
+++ b/ui_framework/src/services/sort/sortable_properties.test.js
@@ -1,4 +1,3 @@
-import _ from 'lodash';
import {
SortableProperties,
} from './sortable_properties';
diff --git a/ui_framework/test/required_props.js b/ui_framework/src/test/required_props.js
similarity index 100%
rename from ui_framework/test/required_props.js
rename to ui_framework/src/test/required_props.js
diff --git a/ui_framework/src/themes/light_theme/_index.scss b/ui_framework/src/themes/light_theme/_index.scss
new file mode 100644
index 000000000000..e69de29bb2d1
diff --git a/webpackShims/ace.js b/webpackShims/ace.js
index 68251531616d..0f49befbeeb2 100644
--- a/webpackShims/ace.js
+++ b/webpackShims/ace.js
@@ -1,6 +1,6 @@
require('brace');
require('brace/mode/json');
-require('node_modules/@spalger/ui-ace/ui-ace');
+require('node_modules/@elastic/ui-ace/ui-ace');
require('ui/modules').get('kibana', ['ui.ace']);
diff --git a/webpackShims/leaflet.js b/webpackShims/leaflet.js
index b131ba10b214..dc44f55a0fe7 100644
--- a/webpackShims/leaflet.js
+++ b/webpackShims/leaflet.js
@@ -1,7 +1,7 @@
require('node_modules/leaflet/dist/leaflet.css');
window.L = module.exports = require('node_modules/leaflet/dist/leaflet');
-require('node_modules/@spalger/leaflet-heat/dist/leaflet-heat.js');
+require('node_modules/@elastic/leaflet-heat/dist/leaflet-heat.js');
-require('node_modules/@spalger/leaflet-draw/dist/leaflet.draw.css');
-require('node_modules/@spalger/leaflet-draw/dist/leaflet.draw.js');
+require('node_modules/@elastic/leaflet-draw/dist/leaflet.draw.css');
+require('node_modules/@elastic/leaflet-draw/dist/leaflet.draw.js');
diff --git a/webpackShims/numeral.js b/webpackShims/numeral.js
index 71326a840d72..b63aba6c7ce5 100644
--- a/webpackShims/numeral.js
+++ b/webpackShims/numeral.js
@@ -1 +1 @@
-module.exports = require('@spalger/numeral');
+module.exports = require('@elastic/numeral');