Skip to content

Commit

Permalink
Refactor KuiPage component folder structure. (elastic#13194)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Aug 16, 2017
1 parent 7025edd commit 3380fc7
Show file tree
Hide file tree
Showing 43 changed files with 61 additions and 33 deletions.
18 changes: 10 additions & 8 deletions ui_framework/dist/ui_framework.css
Original file line number Diff line number Diff line change
Expand Up @@ -639,14 +639,16 @@ table {
border: 1px solid #D9D9D9;
border-radius: 4px;
width: 100%; }
.kuiPageContent.kuiPageContent--verticalCenter {
-webkit-align-self: center;
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; }
.kuiPageContent.kuiPageContent--horizontalCenter {
width: auto;
margin: auto; }

.kuiPageContent--verticalCenter {
-webkit-align-self: center;
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; }

.kuiPageContent--horizontalCenter {
width: auto;
margin: auto; }

.kuiPageContentHeader {
margin-bottom: 32px;
Expand Down
12 changes: 4 additions & 8 deletions ui_framework/src/components/page/_index.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@import 'page';
@import 'page_body';
@import 'page_content';
@import 'page_content_body';
@import 'page_content_header';
@import 'page_content_header_section';
@import 'page_sidebar';
@import 'page_header';
@import 'page_header_section';
@import 'page_body/index';
@import 'page_content/index';
@import 'page_sidebar/index';
@import 'page_header/index';
32 changes: 23 additions & 9 deletions ui_framework/src/components/page/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
export { KuiPage } from './page';
export { KuiPageBody } from './page_body';
export { KuiPageContent } from './page_content';
export { KuiPageContentBody } from './page_content_body';
export { KuiPageContentHeader } from './page_content_header';
export { KuiPageContentHeaderSection } from './page_content_header_section';
export { KuiPageHeader } from './page_header';
export { KuiPageHeaderSection } from './page_header_section';
export { KuiPageSidebar } from './page_sidebar';
export {
KuiPage,
} from './page';

export {
KuiPageBody,
} from './page_body';

export {
KuiPageContent,
KuiPageContentBody,
KuiPageContentHeader,
KuiPageContentHeaderSection,
} from './page_content';

export {
KuiPageHeader,
KuiPageHeaderSection,
} from './page_header';

export {
KuiPageSidebar,
} from './page_sidebar';
1 change: 1 addition & 0 deletions ui_framework/src/components/page/page_body/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'page_body';
1 change: 1 addition & 0 deletions ui_framework/src/components/page/page_body/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { KuiPageBody } from './page_body';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from 'enzyme';
import { requiredProps } from '../../test/required_props';
import { requiredProps } from '../../../test/required_props';

import { KuiPageBody } from './page_body';

Expand Down
4 changes: 4 additions & 0 deletions ui_framework/src/components/page/page_content/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@import 'page_content';
@import 'page_content_body';
@import 'page_content_header';
@import 'page_content_header_section';
4 changes: 4 additions & 0 deletions ui_framework/src/components/page/page_content/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export { KuiPageContent } from './page_content';
export { KuiPageContentBody } from './page_content_body';
export { KuiPageContentHeader } from './page_content_header';
export { KuiPageContentHeaderSection } from './page_content_header_section';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from 'enzyme';
import { requiredProps } from '../../test/required_props';
import { requiredProps } from '../../../test/required_props';

import { KuiPageContent } from './page_content';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from 'enzyme';
import { requiredProps } from '../../test/required_props';
import { requiredProps } from '../../../test/required_props';

import { KuiPageContentBody } from './page_content_body';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from 'enzyme';
import { requiredProps } from '../../test/required_props';
import { requiredProps } from '../../../test/required_props';

import { KuiPageContentHeader } from './page_content_header';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from 'enzyme';
import { requiredProps } from '../../test/required_props';
import { requiredProps } from '../../../test/required_props';

import { KuiPageContentHeaderSection } from './page_content_header_section';

Expand Down
2 changes: 2 additions & 0 deletions ui_framework/src/components/page/page_header/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'page_header';
@import 'page_header_section';
2 changes: 2 additions & 0 deletions ui_framework/src/components/page/page_header/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { KuiPageHeader } from './page_header';
export { KuiPageHeaderSection } from './page_header_section';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from 'enzyme';
import { requiredProps } from '../../test/required_props';
import { requiredProps } from '../../../test/required_props';

import { KuiPageHeader } from './page_header';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from 'enzyme';
import { requiredProps } from '../../test/required_props';
import { requiredProps } from '../../../test/required_props';

import { KuiPageHeaderSection } from './page_header_section';

Expand Down
1 change: 1 addition & 0 deletions ui_framework/src/components/page/page_sidebar/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'page_sidebar';
1 change: 1 addition & 0 deletions ui_framework/src/components/page/page_sidebar/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { KuiPageSidebar } from './page_sidebar';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { render } from 'enzyme';
import { requiredProps } from '../../test/required_props';
import { requiredProps } from '../../../test/required_props';

import { KuiPageSidebar } from './page_sidebar';

Expand Down

0 comments on commit 3380fc7

Please sign in to comment.