- );
- }
-}
-
-KuiExpressionItemExample.propTypes = {
- defaultActiveButton: PropTypes.string.isRequired
-};
-
-export default KuiExpressionItemExample;
diff --git a/packages/kbn-ui-framework/doc_site/src/views/expression/expression_example.js b/packages/kbn-ui-framework/doc_site/src/views/expression/expression_example.js
deleted file mode 100644
index c85c8305d685..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/expression/expression_example.js
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/* eslint-disable import/no-duplicates */
-
-import React from 'react';
-import { renderToHtml } from '../../services';
-
-import {
- GuideDemo,
- GuidePage,
- GuideSection,
- GuideSectionTypes,
- GuideText,
-} from '../../components';
-
-import Expression from './expression';
-import expressionSource from '!!raw-loader!./expression';
-const expressionHtml = renderToHtml(Expression, { defaultActiveButton: 'example2' });
-
-export default props => (
-
-
-
- ExpressionButtons allow you to compress a complicated form into a small space.
-
-
-
-
-
-
-
-
-);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/menu/menu.js b/packages/kbn-ui-framework/doc_site/src/views/menu/menu.js
deleted file mode 100644
index ca9b6ccc1925..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/menu/menu.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-
-import {
- KuiMenu,
- KuiMenuItem,
-} from '../../../../components';
-
-export default () => (
-
-
-
-
Item A
-
-
-
-
Item B
-
-
-
-
Item C
-
-
-
-);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/menu/menu_contained.js b/packages/kbn-ui-framework/doc_site/src/views/menu/menu_contained.js
deleted file mode 100644
index 0ab679613942..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/menu/menu_contained.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-
-import {
- KuiMenu,
- KuiMenuItem,
-} from '../../../../components';
-
-export default () => (
-
-
-
-
Item A
-
-
-
-
Item B
-
-
-
-
Item C
-
-
-
-);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/menu/menu_example.js b/packages/kbn-ui-framework/doc_site/src/views/menu/menu_example.js
deleted file mode 100644
index 8e31432a1ccc..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/menu/menu_example.js
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/* eslint-disable import/no-duplicates */
-
-import React from 'react';
-
-import { renderToHtml } from '../../services';
-
-import {
- GuideDemo,
- GuidePage,
- GuideSection,
- GuideSectionTypes,
-} from '../../components';
-
-import Menu from './menu';
-import menuSource from '!!raw-loader!./menu';
-const menuHtml = renderToHtml(Menu);
-
-import MenuContained from './menu_contained';
-import menuContainedSource from '!!raw-loader!./menu_contained';
-const menuContainedHtml = renderToHtml(MenuContained);
-
-export default props => (
-
-
-
-
-
-
-
-
-
-
-
-
-
-);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_basic.html b/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_basic.html
deleted file mode 100644
index 580701220dfe..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_basic.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
diff --git a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_danger.html b/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_danger.html
deleted file mode 100644
index 07463ba68ef5..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_danger.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
diff --git a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_elements.html b/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_elements.html
deleted file mode 100644
index b8090e21c299..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_elements.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
- Anchor element
-
diff --git a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_example.js b/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_example.js
deleted file mode 100644
index 6677a7b29e52..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_example.js
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-
-import {
- GuideDemo,
- GuidePage,
- GuideSection,
- GuideSectionTypes,
- GuideText,
-} from '../../components';
-
-import basicHtml from './menu_button_basic.html';
-import primaryHtml from './menu_button_primary.html';
-import dangerHtml from './menu_button_danger.html';
-import withIconHtml from './menu_button_with_icon.html';
-import groupHtml from './menu_button_group.html';
-import elementsHtml from './menu_button_elements.html';
-
-export default props => (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- You can use a MenuButton with an Icon, with or without text.
-
-
-
-
-
-
-
-
-
-
-
- You can create a MenuButton using a button element, link, or input[type=“submit”].
-
-
-
-
-
-);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_group.html b/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_group.html
deleted file mode 100644
index 05d959d730dc..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_group.html
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_primary.html b/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_primary.html
deleted file mode 100644
index 67bed3fcbf81..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_primary.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
diff --git a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_with_icon.html b/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_with_icon.html
deleted file mode 100644
index 9ef05dca41a1..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/menu_button/menu_button_with_icon.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/packages/kbn-ui-framework/doc_site/src/views/modal/confirm_modal.js b/packages/kbn-ui-framework/doc_site/src/views/modal/confirm_modal.js
deleted file mode 100644
index 8ef7e88fe149..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/modal/confirm_modal.js
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React, {
- Component,
-} from 'react';
-
-import {
- KuiButton,
- KuiConfirmModal,
- KuiModalOverlay,
- KUI_MODAL_CONFIRM_BUTTON,
-} from '../../../../components';
-
-export class ConfirmModalExample extends Component {
- constructor(props) {
- super(props);
-
- this.state = {
- isModalVisible: false,
- };
-
- this.closeModal = this.closeModal.bind(this);
- this.showModal = this.showModal.bind(this);
- }
-
- closeModal() {
- this.setState({ isModalVisible: false });
- }
-
- showModal() {
- this.setState({ isModalVisible: true });
- }
-
- render() {
- let modal;
-
- if (this.state.isModalVisible) {
- modal = (
-
-
-
You’re about to do something.
-
Are you sure you want to do this?
-
-
- );
- }
-
- return (
-
-
- Show ConfirmModal
-
-
- {modal}
-
- );
- }
-}
diff --git a/packages/kbn-ui-framework/doc_site/src/views/modal/modal.js b/packages/kbn-ui-framework/doc_site/src/views/modal/modal.js
deleted file mode 100644
index 52fd031ccf42..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/modal/modal.js
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React, {
- Component,
-} from 'react';
-
-import {
- KuiButton,
- KuiModal,
- KuiModalBody,
- KuiModalFooter,
- KuiModalHeader,
- KuiModalHeaderTitle,
- KuiModalOverlay,
-} from '../../../../components';
-
-export class ModalExample extends Component {
- constructor(props) {
- super(props);
-
- this.state = {
- isModalVisible: false,
- };
- }
-
- closeModal = () => {
- this.setState({ isModalVisible: false });
- };
-
- showModal = () => {
- this.setState({ isModalVisible: true });
- };
-
- render() {
- let modal;
-
- if (this.state.isModalVisible) {
- modal = (
-
-
-
-
- Modal
-
-
-
-
-
- );
- }
-}
diff --git a/packages/kbn-ui-framework/doc_site/src/views/modal/modal_example.js b/packages/kbn-ui-framework/doc_site/src/views/modal/modal_example.js
deleted file mode 100644
index b21ee91ddb19..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/modal/modal_example.js
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/* eslint-disable import/no-duplicates */
-
-import React from 'react';
-
-import { renderToHtml } from '../../services';
-
-import {
- GuideCode,
- GuideDemo,
- GuidePage,
- GuideSection,
- GuideSectionTypes,
- GuideText,
-} from '../../components';
-
-import { ModalExample } from './modal';
-import modalSource from '!!raw-loader!./modal'; // eslint-disable-line import/default
-const modalHtml = renderToHtml(ModalExample);
-
-import { ConfirmModalExample } from './confirm_modal';
-import confirmModalSource from '!!raw-loader!./confirm_modal'; // eslint-disable-line import/default
-const confirmModalHtml = renderToHtml(ConfirmModalExample);
-
-export default props => (
-
-
-
-
- Use a KuiModal to temporarily escape the current UX and create
- another UX within it.
-
-
-
-
-
-
-
-
-
-
-
-
-
-);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/panel_simple/panel_simple.js b/packages/kbn-ui-framework/doc_site/src/views/panel_simple/panel_simple.js
deleted file mode 100644
index 376e60335833..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/panel_simple/panel_simple.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-
-import {
- KuiPanelSimple,
-} from '../../../../components';
-
-export default () => (
-
-);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/panel_simple/panel_simple_example.js b/packages/kbn-ui-framework/doc_site/src/views/panel_simple/panel_simple_example.js
deleted file mode 100644
index 3f7ffa2eec08..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/panel_simple/panel_simple_example.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/* eslint-disable import/no-duplicates */
-
-import React from 'react';
-
-import { Link } from 'react-router';
-
-import { renderToHtml } from '../../services';
-
-import {
- GuideCode,
- GuideDemo,
- GuidePage,
- GuideSection,
- GuideSectionTypes,
- GuideText,
-} from '../../components';
-
-import PanelSimple from './panel_simple';
-import panelSimpleSource from '!!raw-loader!./panel_simple';
-const panelSimpleHtml = renderToHtml(PanelSimple);
-
-export default props => (
-
-
-
- PanelSimple is a simple wrapper component to add
- depth to a contained layout. It it commonly used as a base for
- other larger components like Popover.
-
-
-
-
-
-
-
-);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/popover/popover.js b/packages/kbn-ui-framework/doc_site/src/views/popover/popover.js
deleted file mode 100644
index 59e47ef348b7..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/popover/popover.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React, {
- Component,
-} from 'react';
-
-import {
- KuiPopover,
- KuiButton,
-} from '../../../../components';
-
-export default class extends Component {
- constructor(props) {
- super(props);
-
- this.state = {
- isPopoverOpen: false,
- };
- }
-
- onButtonClick() {
- this.setState({
- isPopoverOpen: !this.state.isPopoverOpen,
- });
- }
-
- closePopover() {
- this.setState({
- isPopoverOpen: false,
- });
- }
-
- render() {
- const button = (
-
- Show popover
-
- );
-
- return (
-
-
Popover content that’s wider than the default width
-
- );
- }
-}
diff --git a/packages/kbn-ui-framework/doc_site/src/views/popover/popover_anchor_position.js b/packages/kbn-ui-framework/doc_site/src/views/popover/popover_anchor_position.js
deleted file mode 100644
index 54e0f97542ac..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/popover/popover_anchor_position.js
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React, {
- Component,
-} from 'react';
-
-import {
- KuiPopover,
- KuiButton,
-} from '../../../../components';
-
-export default class extends Component {
- constructor(props) {
- super(props);
-
- this.state = {
- isPopoverOpen1: false,
- isPopoverOpen2: false,
- };
- }
-
- onButtonClick1() {
- this.setState({
- isPopoverOpen1: !this.state.isPopoverOpen1,
- });
- }
-
- closePopover1() {
- this.setState({
- isPopoverOpen1: false,
- });
- }
-
- onButtonClick2() {
- this.setState({
- isPopoverOpen2: !this.state.isPopoverOpen2,
- });
- }
-
- closePopover2() {
- this.setState({
- isPopoverOpen2: false,
- });
- }
-
- render() {
- return (
-
- );
- }
-}
diff --git a/packages/kbn-ui-framework/doc_site/src/views/popover/popover_body_class_name.js b/packages/kbn-ui-framework/doc_site/src/views/popover/popover_body_class_name.js
deleted file mode 100644
index e347c5a32118..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/popover/popover_body_class_name.js
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React, {
- Component,
-} from 'react';
-
-import {
- KuiPopover,
- KuiButton
-} from '../../../../components';
-
-export default class extends Component {
- constructor(props) {
- super(props);
-
- this.state = {
- isPopoverOpen: false,
- };
- }
-
- onButtonClick() {
- this.setState({
- isPopoverOpen: !this.state.isPopoverOpen,
- });
- }
-
- closePopover() {
- this.setState({
- isPopoverOpen: false,
- });
- }
-
- render() {
- return (
-
- Custom class
-
- )}
- isOpen={this.state.isPopoverOpen}
- closePopover={this.closePopover.bind(this)}
- bodyClassName="yourClassNameHere"
- >
- It’s hard to tell but there’s a custom class on this element
-
- );
- }
-}
diff --git a/packages/kbn-ui-framework/doc_site/src/views/popover/popover_example.js b/packages/kbn-ui-framework/doc_site/src/views/popover/popover_example.js
deleted file mode 100644
index 90317ad5c56c..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/popover/popover_example.js
+++ /dev/null
@@ -1,160 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/* eslint-disable import/no-duplicates */
-
-import React from 'react';
-
-import { renderToHtml } from '../../services';
-
-import {
- GuideCode,
- GuideDemo,
- GuidePage,
- GuideSection,
- GuideSectionTypes,
- GuideText,
-} from '../../components';
-
-import Popover from './popover';
-import popoverSource from '!!raw-loader!./popover';
-const popoverHtml = renderToHtml(Popover);
-
-import TrapFocus from './trap_focus';
-import trapFocusSource from '!!raw-loader!./trap_focus';
-const trapFocusHtml = renderToHtml(TrapFocus);
-
-import PopoverAnchorPosition from './popover_anchor_position';
-import popoverAnchorPositionSource from '!!raw-loader!./popover_anchor_position';
-const popoverAnchorPositionHtml = renderToHtml(PopoverAnchorPosition);
-
-import PopoverPanelClassName from './popover_panel_class_name';
-import popoverPanelClassNameSource from '!!raw-loader!./popover_panel_class_name';
-const popoverPanelClassNameHtml = renderToHtml(PopoverPanelClassName);
-
-import PopoverWithTitle from './popover_with_title';
-import popoverWithTitleSource from '!!raw-loader!./popover_with_title';
-const popoverWithTitleHtml = renderToHtml(PopoverWithTitle);
-
-export default props => (
-
-
-
- Use the Popover component to hide controls or options behind a clickable element.
-
-
-
-
-
-
-
-
-
- If the Popover should be responsible for trapping the focus within itself (as opposed
- to a child component), then you should set ownFocus.
-
-
-
-
-
-
-
-
-
- Popovers often have need for titling. This can be applied through
- a prop or used separately as its own component
- KuiPopoverTitle nested somewhere in the child
- prop.
-
-
-
-
-
-
-
-
-
- The alignment and arrow on your popover can be set with
- the anchorPosition prop.
-
-
-
-
-
-
-
-
-
- Use the panelPaddingSize prop to adjust the padding
- on the panel within the panel. Use the panelClassName
- prop to pass a custom class to the panel.
- inside a popover.
-
-
-
-
-
-
-
-);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/popover/popover_panel_class_name.js b/packages/kbn-ui-framework/doc_site/src/views/popover/popover_panel_class_name.js
deleted file mode 100644
index c3b98fc6ca3d..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/popover/popover_panel_class_name.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React, {
- Component,
-} from 'react';
-
-import {
- KuiPopover,
- KuiButton,
-} from '../../../../components';
-
-export default class extends Component {
- constructor(props) {
- super(props);
-
- this.state = {
- isPopoverOpen: false,
- };
- }
-
- onButtonClick() {
- this.setState({
- isPopoverOpen: !this.state.isPopoverOpen,
- });
- }
-
- closePopover() {
- this.setState({
- isPopoverOpen: false,
- });
- }
-
- render() {
- return (
-
- Turn padding off and apply a custom class
-
- )}
- isOpen={this.state.isPopoverOpen}
- closePopover={this.closePopover.bind(this)}
- panelClassName="yourClassNameHere"
- panelPaddingSize="none"
- >
- This should have no padding, and if you inspect, also a custom class.
-
- );
- }
-}
diff --git a/packages/kbn-ui-framework/doc_site/src/views/popover/popover_with_title.js b/packages/kbn-ui-framework/doc_site/src/views/popover/popover_with_title.js
deleted file mode 100644
index ff25a54e1d60..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/popover/popover_with_title.js
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React, {
- Component,
-} from 'react';
-
-import {
- KuiPopover,
- KuiPopoverTitle,
- KuiButton,
-} from '../../../../components';
-
-export default class extends Component {
- constructor(props) {
- super(props);
-
- this.state = {
- isPopoverOpen: false,
- };
- }
-
- onButtonClick() {
- this.setState({
- isPopoverOpen: !this.state.isPopoverOpen,
- });
- }
-
- closePopover() {
- this.setState({
- isPopoverOpen: false,
- });
- }
-
- render() {
- const button = (
-
- Show popover with Title
-
- );
-
- return (
-
-
- Hello, I’m a popover title
-
- Popover content that’s wider than the default width
-
-
-
- );
- }
-}
diff --git a/packages/kbn-ui-framework/doc_site/src/views/popover/trap_focus.js b/packages/kbn-ui-framework/doc_site/src/views/popover/trap_focus.js
deleted file mode 100644
index b034da504f3d..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/popover/trap_focus.js
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React, {
- Component,
-} from 'react';
-
-import {
- KuiButton,
- KuiFieldGroup,
- KuiFieldGroupSection,
- KuiPopover,
-} from '../../../../components';
-
-export default class extends Component {
- constructor(props) {
- super(props);
-
- this.state = {
- isPopoverOpen: false,
- };
- }
-
- onButtonClick() {
- this.setState({
- isPopoverOpen: !this.state.isPopoverOpen,
- });
- }
-
- closePopover() {
- this.setState({
- isPopoverOpen: false,
- });
- }
-
- render() {
- const button = (
-
- Show popover
-
- );
-
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Save
-
-
-
- );
- }
-}
diff --git a/packages/kbn-ui-framework/doc_site/src/views/table/table_with_menu_buttons.js b/packages/kbn-ui-framework/doc_site/src/views/table/table_with_menu_buttons.js
index 4b1b06387686..49b4952de63a 100644
--- a/packages/kbn-ui-framework/doc_site/src/views/table/table_with_menu_buttons.js
+++ b/packages/kbn-ui-framework/doc_site/src/views/table/table_with_menu_buttons.js
@@ -28,86 +28,29 @@ import {
KuiTableBody,
} from '../../../../components';
-import {
- RIGHT_ALIGNMENT
-} from '../../../../src/services';
-
export function TableWithMenuButtons() {
return (
-
- Reminder
-
-
- A
-
-
- B
-
-
- C
-
-
- Actions
-
+ Reminder
+ A
+ B
+ C
-
- Core temperature critical
-
-
- A
-
-
- B
-
-
- C
-
-
-
-
-
-
-
-
+ Core temperature critical
+ A
+ B
+ C
-
- Time for your snack
-
-
- A
-
-
- B
-
-
- C
-
-
-
-
-
-
-
-
+ Time for your snack
+ A
+ B
+ C
diff --git a/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_button.html b/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_button.html
deleted file mode 100644
index 33ae80390fe3..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_button.html
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_button.js b/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_button.js
deleted file mode 100644
index 90fec3871cdc..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_button.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/* eslint-disable */
-
-let isButtonCollapsed = true;
-const $toggleButton = $('[data-id="toggleButton"]');
-const $toggleButtonIcon = $('[data-id="toggleButtonIcon"]');
-
-$toggleButton.on('click', () => {
- isButtonCollapsed = !isButtonCollapsed;
-
- if (isButtonCollapsed) {
- $toggleButtonIcon.addClass('fa-caret-right');
- $toggleButtonIcon.removeClass('fa-caret-down');
- } else {
- $toggleButtonIcon.removeClass('fa-caret-right');
- $toggleButtonIcon.addClass('fa-caret-down');
- }
-});
diff --git a/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_button_disabled.html b/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_button_disabled.html
deleted file mode 100644
index 0b3790f5084e..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_button_disabled.html
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_button_example.js b/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_button_example.js
deleted file mode 100644
index 6fd3a816e4fc..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_button_example.js
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-
-import {
- GuideDemo,
- GuidePage,
- GuideSection,
- GuideSectionTypes,
- GuideText,
-} from '../../components';
-
-import {
- Link,
-} from 'react-router';
-
-import toggleButtonHtml from './toggle_button.html';
-import toggleButtonJs from 'raw-loader!./toggle_button.js';
-import toggleButtonDisabledHtml from './toggle_button_disabled.html';
-import togglePanelHtml from './toggle_panel.html';
-import togglePanelJs from 'raw-loader!./toggle_panel.js';
-
-export default props => (
-
-
-
- You can use this button to reveal and hide content. For a complete example
- on how to make an collapsable panel proper accessible, read
- the CollapseButton documentation.
-
-
-
-
-
-
-
-
-
-
-
-
-
-);
diff --git a/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_panel.html b/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_panel.html
deleted file mode 100644
index 561a307d4c99..000000000000
--- a/packages/kbn-ui-framework/doc_site/src/views/toggle_button/toggle_panel.html
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis egestas dictum enim non lobortis. Curabitur vel viverra metus. Ut non dignissim neque. Nulla metus lorem, maximus et vehicula vel, pharetra vitae sem. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Etiam mi risus, varius in elit a, scelerisque blandit dolor. Donec ut leo mi. Duis ac tincidunt urna. Sed finibus eros odio, vitae euismod turpis ullamcorper pulvinar. Sed in ipsum at magna euismod tristique. Donec eget orci blandit, convallis odio sed, hendrerit dui. Aenean augue nibh, hendrerit sit amet aliquet et, efficitur sit amet nulla. Vivamus placerat pulvinar ipsum, dignissim sodales libero pulvinar sit amet. Maecenas pellentesque neque at quam varius aliquam. Ut at pretium augue, a pellentesque neque.
-`;
-
-exports[`KuiExpression renders 1`] = `
-
-`;
diff --git a/packages/kbn-ui-framework/src/components/expression/__snapshots__/expression_button.test.js.snap b/packages/kbn-ui-framework/src/components/expression/__snapshots__/expression_button.test.js.snap
deleted file mode 100644
index c3bbae52bd65..000000000000
--- a/packages/kbn-ui-framework/src/components/expression/__snapshots__/expression_button.test.js.snap
+++ /dev/null
@@ -1,57 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`KuiExpressionButton Props isActive false renders inactive 1`] = `
-
-`;
-
-exports[`KuiExpressionButton Props isActive true renders active 1`] = `
-
-`;
-
-exports[`KuiExpressionButton renders 1`] = `
-
-`;
diff --git a/packages/kbn-ui-framework/src/components/expression/_expression.scss b/packages/kbn-ui-framework/src/components/expression/_expression.scss
deleted file mode 100644
index bb01f5fa8359..000000000000
--- a/packages/kbn-ui-framework/src/components/expression/_expression.scss
+++ /dev/null
@@ -1,27 +0,0 @@
-.kuiExpression {
- padding: 20px;
- white-space: nowrap;
-}
-
-.kuiExpressionButton {
- background-color: transparent;
- padding: 5px 0px;
- border: none;
- border-bottom: dotted 2px $kuiBorderColor;
- font-size: $kuiFontSize;
- cursor: pointer;
-}
-
-.kuiExpressionButton__description {
- color: $expressionColorHighlight;
- text-transform: uppercase;
-}
-
-.kuiExpressionButton__value {
- color: $kuiTextColor;
- text-transform: lowercase;
-}
-
-.kuiExpressionButton-isActive {
- border-bottom: solid 2px $expressionColorHighlight;
-}
diff --git a/packages/kbn-ui-framework/src/components/expression/_index.scss b/packages/kbn-ui-framework/src/components/expression/_index.scss
deleted file mode 100644
index 7d806e314a27..000000000000
--- a/packages/kbn-ui-framework/src/components/expression/_index.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-$expressionColorHighlight: $euiColorSecondary;
-
-@import "expression";
diff --git a/packages/kbn-ui-framework/src/components/expression/expression.js b/packages/kbn-ui-framework/src/components/expression/expression.js
deleted file mode 100644
index 4464a1b742ba..000000000000
--- a/packages/kbn-ui-framework/src/components/expression/expression.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import PropTypes from 'prop-types';
-import classNames from 'classnames';
-
-export const KuiExpression = ({
- children,
- className,
- ...rest
-}) => {
- const classes = classNames('kuiExpression', className);
-
- return (
-
- {children}
-
- );
-};
-
-KuiExpression.propTypes = {
- children: PropTypes.node,
- className: PropTypes.string
-};
diff --git a/packages/kbn-ui-framework/src/components/expression/expression.test.js b/packages/kbn-ui-framework/src/components/expression/expression.test.js
deleted file mode 100644
index 5043dff09aa3..000000000000
--- a/packages/kbn-ui-framework/src/components/expression/expression.test.js
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import { render } from 'enzyme';
-import { requiredProps } from '../../test/required_props';
-
-import {
- KuiExpression,
-} from './expression';
-
-describe('KuiExpression', () => {
- test('renders', () => {
- const component = (
-
- );
-
- expect(render(component)).toMatchSnapshot();
- });
-
- describe('Props', () => {
- describe('children', () => {
- test('is rendered', () => {
- const component = render(
-
- some expression
-
- );
-
- expect(component)
- .toMatchSnapshot();
- });
- });
- });
-});
diff --git a/packages/kbn-ui-framework/src/components/expression/expression_button.js b/packages/kbn-ui-framework/src/components/expression/expression_button.js
deleted file mode 100644
index fd63469c1eff..000000000000
--- a/packages/kbn-ui-framework/src/components/expression/expression_button.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import PropTypes from 'prop-types';
-import classNames from 'classnames';
-
-export const KuiExpressionButton = ({
- className,
- description,
- buttonValue,
- isActive,
- onClick,
- ...rest
-}) => {
- const classes = classNames('kuiExpressionButton', className, {
- 'kuiExpressionButton-isActive': isActive
- });
-
- return (
-
- );
-};
-
-KuiExpressionButton.propTypes = {
- className: PropTypes.string,
- description: PropTypes.string.isRequired,
- buttonValue: PropTypes.string.isRequired,
- isActive: PropTypes.bool.isRequired,
- onClick: PropTypes.func.isRequired,
-};
-
-KuiExpressionButton.defaultProps = {
- isActive: false,
-};
diff --git a/packages/kbn-ui-framework/src/components/expression/expression_button.test.js b/packages/kbn-ui-framework/src/components/expression/expression_button.test.js
deleted file mode 100644
index 69149b947662..000000000000
--- a/packages/kbn-ui-framework/src/components/expression/expression_button.test.js
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import { render, shallow } from 'enzyme';
-import { requiredProps } from '../../test/required_props';
-import sinon from 'sinon';
-
-import {
- KuiExpressionButton,
-} from './expression_button';
-
-describe('KuiExpressionButton', () => {
- test('renders', () => {
- const component = (
- {}}
- {...requiredProps}
- />
- );
-
- expect(render(component)).toMatchSnapshot();
- });
-
- describe('Props', () => {
- describe('isActive', () => {
- test('true renders active', () => {
- const component = (
- {}}
- />
- );
-
- expect(render(component)).toMatchSnapshot();
- });
-
- test('false renders inactive', () => {
- const component = (
- {}}
- />
- );
-
- expect(render(component)).toMatchSnapshot();
- });
- });
-
- describe('onClick', () => {
- test('is called when the button is clicked', () => {
- const onClickHandler = sinon.spy();
-
- const button = shallow(
-
- );
-
- button.simulate('click');
-
- sinon.assert.calledOnce(onClickHandler);
- });
- });
- });
-});
diff --git a/packages/kbn-ui-framework/src/components/expression/index.js b/packages/kbn-ui-framework/src/components/expression/index.js
deleted file mode 100644
index 387e42553a62..000000000000
--- a/packages/kbn-ui-framework/src/components/expression/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-export { KuiExpression } from './expression';
-export { KuiExpressionButton } from './expression_button';
diff --git a/packages/kbn-ui-framework/src/components/index.js b/packages/kbn-ui-framework/src/components/index.js
index d1a94257abc9..7bc0f4aaf2cf 100644
--- a/packages/kbn-ui-framework/src/components/index.js
+++ b/packages/kbn-ui-framework/src/components/index.js
@@ -17,22 +17,11 @@
* under the License.
*/
-export {
- KuiBar,
- KuiBarSection,
-} from './bar';
+export { KuiBar, KuiBarSection } from './bar';
-export {
- KuiButton,
- KuiButtonGroup,
- KuiButtonIcon,
- KuiLinkButton,
- KuiSubmitButton,
-} from './button';
+export { KuiButton, KuiButtonGroup, KuiButtonIcon, KuiLinkButton, KuiSubmitButton } from './button';
-export {
- KuiCollapseButton,
-} from './collapse_button';
+export { KuiCollapseButton } from './collapse_button';
export {
KuiEmptyTablePrompt,
@@ -40,15 +29,7 @@ export {
KuiEmptyTablePromptPanel,
} from './empty_table_prompt';
-export {
- KuiExpression,
- KuiExpressionButton,
-} from './expression';
-
-export {
- KuiFieldGroup,
- KuiFieldGroupSection,
-} from './form_layout';
+export { KuiFieldGroup, KuiFieldGroupSection } from './form_layout';
export {
KuiLabel,
@@ -68,45 +49,9 @@ export {
KuiLocalTitle,
} from './local_nav';
-export {
- KuiMenu,
- KuiMenuItem,
-} from './menu';
+export { KuiPager, KuiPagerButtonGroup } from './pager';
-export {
- KUI_MODAL_CANCEL_BUTTON,
- KUI_MODAL_CONFIRM_BUTTON,
- KuiConfirmModal,
- KuiModal,
- KuiModalBody,
- KuiModalFooter,
- KuiModalHeader,
- KuiModalHeaderTitle,
- KuiModalOverlay,
-} from './modal';
-
-export {
- KuiOutsideClickDetector,
-} from './outside_click_detector';
-
-export {
- KuiPager,
- KuiPagerButtonGroup,
-} from './pager';
-
-export {
- KuiPanelSimple,
-} from './panel_simple';
-
-export {
- KuiPopover,
- KuiPopoverTitle,
-} from './popover';
-
-export {
- KuiTabs,
- KuiTab
-} from './tabs';
+export { KuiTabs, KuiTab } from './tabs';
export {
KuiTable,
@@ -123,7 +68,7 @@ export {
KuiListingTableCreateButton,
KuiListingTableDeleteButton,
KuiListingTableNoMatchesPrompt,
- KuiListingTableLoadingPrompt
+ KuiListingTableLoadingPrompt,
} from './table';
export {
@@ -132,5 +77,5 @@ export {
KuiToolBarFooter,
KuiToolBarSection,
KuiToolBarFooterSection,
- KuiToolBarText
+ KuiToolBarText,
} from './tool_bar';
diff --git a/packages/kbn-ui-framework/src/components/index.scss b/packages/kbn-ui-framework/src/components/index.scss
index 084e7045a393..5e12ef30c8c9 100644
--- a/packages/kbn-ui-framework/src/components/index.scss
+++ b/packages/kbn-ui-framework/src/components/index.scss
@@ -12,30 +12,23 @@
// When possible, if making changes to those legacy components, please think about
// instead adding them to this library and deprecating that dependency.
-@import "bar/index";
-@import "button/index";
-@import "collapse_button/index";
-@import "expression/index";
-@import "form/index";
-@import "form_layout/index";
-@import "icon/index";
-@import "info_panel/index";
-@import "link/index";
-@import "local_nav/index";
-@import "menu/index";
-@import "menu_button/index";
-@import "modal/index";
-@import "pager/index";
-@import "panel/index";
-@import "panel_simple/index";
-@import "popover/index";
-@import "empty_table_prompt/index";
-@import "status_text/index";
-@import "table/index";
-@import "table_info/index";
-@import "tabs/index";
-@import "toggle_button/index";
-@import "tool_bar/index";
-@import "typography/index";
-@import "vertical_rhythm/index";
-@import "view/index";
+@import 'bar/index';
+@import 'button/index';
+@import 'collapse_button/index';
+@import 'form/index';
+@import 'form_layout/index';
+@import 'icon/index';
+@import 'info_panel/index';
+@import 'link/index';
+@import 'local_nav/index';
+@import 'pager/index';
+@import 'panel/index';
+@import 'empty_table_prompt/index';
+@import 'status_text/index';
+@import 'table/index';
+@import 'table_info/index';
+@import 'tabs/index';
+@import 'tool_bar/index';
+@import 'typography/index';
+@import 'vertical_rhythm/index';
+@import 'view/index';
diff --git a/packages/kbn-ui-framework/src/components/menu/__snapshots__/menu.test.js.snap b/packages/kbn-ui-framework/src/components/menu/__snapshots__/menu.test.js.snap
deleted file mode 100644
index d33aa9635e93..000000000000
--- a/packages/kbn-ui-framework/src/components/menu/__snapshots__/menu.test.js.snap
+++ /dev/null
@@ -1,19 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`contained prop 1`] = `
-
-`;
diff --git a/packages/kbn-ui-framework/src/components/menu/_index.scss b/packages/kbn-ui-framework/src/components/menu/_index.scss
deleted file mode 100644
index 1884d62ee83b..000000000000
--- a/packages/kbn-ui-framework/src/components/menu/_index.scss
+++ /dev/null
@@ -1 +0,0 @@
-@import "menu";
diff --git a/packages/kbn-ui-framework/src/components/menu/_menu.scss b/packages/kbn-ui-framework/src/components/menu/_menu.scss
deleted file mode 100644
index 812a216153a2..000000000000
--- a/packages/kbn-ui-framework/src/components/menu/_menu.scss
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * 1. Allow class to be applied to `ul` and `ol` elements
- */
-.kuiMenu {
- padding-left: 0; /* 1 */
-}
-
-.kuiMenu--contained {
- border: $kuiBorderThin;
-
- .kuiMenuItem {
- padding: 6px 10px;
- }
-}
-
-/**
- * 1. Allow class to be applied to `li` elements
- */
-.kuiMenuItem {
- list-style: none; /* 1 */
- padding: 6px 0;
-
- & + & {
- border-top: $kuiBorderThin;
- }
-}
diff --git a/packages/kbn-ui-framework/src/components/menu/index.js b/packages/kbn-ui-framework/src/components/menu/index.js
deleted file mode 100644
index 54a6e4e1d82d..000000000000
--- a/packages/kbn-ui-framework/src/components/menu/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-export { KuiMenu } from './menu';
-export { KuiMenuItem } from './menu_item';
diff --git a/packages/kbn-ui-framework/src/components/menu/menu.js b/packages/kbn-ui-framework/src/components/menu/menu.js
deleted file mode 100644
index e0707293cca6..000000000000
--- a/packages/kbn-ui-framework/src/components/menu/menu.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import PropTypes from 'prop-types';
-import React from 'react';
-import classNames from 'classnames';
-
-export const KuiMenu = ({
- contained,
- className,
- children,
- ...rest
-}) => {
- const classes = classNames('kuiMenu', className, {
- 'kuiMenu--contained': contained
- });
-
- return (
-
- {children}
-
- );
-};
-
-KuiMenu.propTypes = {
- contained: PropTypes.bool,
- className: PropTypes.string,
- children: PropTypes.node
-};
diff --git a/packages/kbn-ui-framework/src/components/menu/menu.test.js b/packages/kbn-ui-framework/src/components/menu/menu.test.js
deleted file mode 100644
index 1ea1e5044faa..000000000000
--- a/packages/kbn-ui-framework/src/components/menu/menu.test.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import { render } from 'enzyme';
-import { requiredProps } from '../../test/required_props';
-
-import {
- KuiMenu,
-} from './menu';
-
-test('renders KuiMenu', () => {
- const component = children;
- expect(render(component)).toMatchSnapshot();
-});
-
-test('contained prop', () => {
- const component = children;
- expect(render(component)).toMatchSnapshot();
-});
diff --git a/packages/kbn-ui-framework/src/components/menu/menu_item.js b/packages/kbn-ui-framework/src/components/menu/menu_item.js
deleted file mode 100644
index b81d2053f75b..000000000000
--- a/packages/kbn-ui-framework/src/components/menu/menu_item.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import PropTypes from 'prop-types';
-import React from 'react';
-
-import classNames from 'classnames';
-
-export const KuiMenuItem = ({
- className,
- children,
- ...rest
-}) => {
- return (
-
- {children}
-
- );
-};
-
-KuiMenuItem.propTypes = {
- className: PropTypes.string,
- children: PropTypes.node
-};
diff --git a/packages/kbn-ui-framework/src/components/menu/menu_item.test.js b/packages/kbn-ui-framework/src/components/menu/menu_item.test.js
deleted file mode 100644
index e06c11077784..000000000000
--- a/packages/kbn-ui-framework/src/components/menu/menu_item.test.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import { render } from 'enzyme';
-import { requiredProps } from '../../test/required_props';
-
-import {
- KuiMenuItem,
-} from './menu_item';
-
-test('renders KuiMenuItem', () => {
- const component = children;
- expect(render(component)).toMatchSnapshot();
-});
diff --git a/packages/kbn-ui-framework/src/components/menu_button/_index.scss b/packages/kbn-ui-framework/src/components/menu_button/_index.scss
deleted file mode 100644
index 1548f7e600be..000000000000
--- a/packages/kbn-ui-framework/src/components/menu_button/_index.scss
+++ /dev/null
@@ -1,20 +0,0 @@
-$menuButtonFontSize: 12px;
-
-$menuButtonBasicTextColor: $euiTextColor;
-$menuButtonBasicBackgroundColor: $euiColorEmptyShade;
-$menuButtonBasicHoverBackgroundColor: $euiColorLightestShade;
-$menuButtonBasicDisabledTextColor: $euiColorMediumShade;
-$menuButtonPrimaryTextColor: $euiColorGhost;
-$menuButtonPrimaryBackgroundColor: $euiColorPrimary;
-$menuButtonPrimaryHoverBackgroundColor: darken($euiColorPrimary, 10%);
-$menuButtonPrimaryDisabledBackgroundColor: $euiColorMediumShade;
-
-$menuButtonDangerTextColor: $euiColorGhost;
-$menuButtonDangerBackgroundColor: $euiColorDanger;
-$menuButtonDangerHoverTextColor: $euiColorGhost;
-$menuButtonDangerHoverBackgroundColor: darken($euiColorDanger, 10%);
-$menuButtonDangerDisabledBackgroundColor: $euiColorMediumShade;
-$menuButtonDangerHoverDisabledTextColor: $euiColorGhost;
-
-@import "menu_button";
-@import "menu_button_group";
diff --git a/packages/kbn-ui-framework/src/components/menu_button/_menu_button.scss b/packages/kbn-ui-framework/src/components/menu_button/_menu_button.scss
deleted file mode 100644
index 2b9a8048746e..000000000000
--- a/packages/kbn-ui-framework/src/components/menu_button/_menu_button.scss
+++ /dev/null
@@ -1,118 +0,0 @@
-/**
- * 1. Setting to inline-block guarantees the same height when applied to both
- * button elements and anchor tags.
- * 2. Disable for Angular.
- * 3. Make the button just tall enough to fit inside an Option Layout.
- */
-.kuiMenuButton {
- display: inline-block; /* 1 */
- appearance: none;
- cursor: pointer;
- padding: 2px 10px; /* 3 */
- font-size: $menuButtonFontSize;
- font-weight: $kuiFontWeightRegular;
- line-height: $kuiLineHeight;
- text-decoration: none;
- border: none;
- border-radius: $kuiBorderRadius;
-
- &:disabled {
- cursor: default;
- pointer-events: none; /* 2 */
- }
-
- &:active:enabled {
- transform: translateY(1px);
- }
-
- &:focus {
- @include focus;
- }
-}
-
-.kuiMenuButton--iconText {
- .kuiMenuButton__icon {
- &:first-child {
- margin-right: 4px;
- }
-
- &:last-child {
- margin-left: 4px;
- }
- }
-}
-
-/**
- * 1. Override Bootstrap.
- * 2. Safari won't respect :enabled:hover/active on links.
- */
-.kuiMenuButton--basic {
- color: $menuButtonBasicTextColor;
- background-color: $menuButtonBasicBackgroundColor;
-
- // Goes before hover, so that hover can override it.
- &:focus {
- color: $menuButtonBasicTextColor !important; /* 1 */
- }
-
- &:hover, /* 2 */
- &:active { /* 2 */
- color: $menuButtonBasicTextColor !important; /* 1 */
- background-color: $menuButtonBasicHoverBackgroundColor;
- }
-
- &:disabled {
- color: $menuButtonBasicDisabledTextColor;
- cursor: not-allowed;
- }
-}
-
-/**
- * 1. Override Bootstrap.
- * 2. Safari won't respect :enabled:hover/active on links.
- */
-.kuiMenuButton--primary {
- color: $menuButtonPrimaryTextColor;
- background-color: $menuButtonPrimaryBackgroundColor;
-
- // Goes before hover, so that hover can override it.
- &:focus {
- color: $menuButtonPrimaryTextColor !important; /* 1 */
- }
-
- &:hover, /* 2 */
- &:active { /* 2 */
- color: $menuButtonPrimaryTextColor !important; /* 1 */
- background-color: $menuButtonPrimaryHoverBackgroundColor;
- }
-
- &:disabled {
- background-color: $menuButtonPrimaryDisabledBackgroundColor;
- cursor: not-allowed;
- }
-}
-
-/**
- * 1. Override Bootstrap.
- * 2. Safari won't respect :enabled:hover/active on links.
- */
-.kuiMenuButton--danger {
- color: $menuButtonDangerTextColor;
- background-color: $menuButtonDangerBackgroundColor;
-
- &:hover, /* 2 */
- &:active { /* 2 */
- color: $menuButtonDangerHoverTextColor !important; /* 1 */
- background-color: $menuButtonDangerHoverBackgroundColor;
- }
-
- &:disabled {
- color: $menuButtonDangerHoverDisabledTextColor;
- background-color: $menuButtonDangerDisabledBackgroundColor;
- cursor: not-allowed;
- }
-
- &:focus {
- @include focus($kuiFocusDangerColor);
- }
-}
diff --git a/packages/kbn-ui-framework/src/components/menu_button/_menu_button_group.scss b/packages/kbn-ui-framework/src/components/menu_button/_menu_button_group.scss
deleted file mode 100644
index e8a53967e8b3..000000000000
--- a/packages/kbn-ui-framework/src/components/menu_button/_menu_button_group.scss
+++ /dev/null
@@ -1,11 +0,0 @@
-.kuiMenuButtonGroup {
- display: flex;
-
- .kuiMenuButton + .kuiMenuButton {
- margin-left: 4px;
- }
-}
-
-.kuiMenuButtonGroup--alignRight {
- justify-content: flex-end;
-}
diff --git a/packages/kbn-ui-framework/src/components/modal/__snapshots__/confirm_modal.test.js.snap b/packages/kbn-ui-framework/src/components/modal/__snapshots__/confirm_modal.test.js.snap
deleted file mode 100644
index b42842a6959c..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/__snapshots__/confirm_modal.test.js.snap
+++ /dev/null
@@ -1,64 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`renders KuiConfirmModal 1`] = `
-
-
-
-
-
- {cancelButtonText}
-
-
-
- {confirmButtonText}
-
-
-
- );
-}
-
-KuiConfirmModal.propTypes = {
- children: PropTypes.node,
- title: PropTypes.string,
- cancelButtonText: PropTypes.string,
- confirmButtonText: PropTypes.string,
- onCancel: PropTypes.func.isRequired,
- onConfirm: PropTypes.func,
- className: PropTypes.string,
- defaultFocusedButton: PropTypes.oneOf(CONFIRM_MODAL_BUTTONS)
-};
diff --git a/packages/kbn-ui-framework/src/components/modal/confirm_modal.test.js b/packages/kbn-ui-framework/src/components/modal/confirm_modal.test.js
deleted file mode 100644
index c2713bebffd9..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/confirm_modal.test.js
+++ /dev/null
@@ -1,145 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import sinon from 'sinon';
-import { mount, render } from 'enzyme';
-
-import { findTestSubject, requiredProps } from '../../test';
-import { keyCodes } from '../../services';
-
-import {
- CANCEL_BUTTON, CONFIRM_BUTTON, KuiConfirmModal,
-} from './confirm_modal';
-
-let onConfirm;
-let onCancel;
-
-beforeEach(() => {
- onConfirm = sinon.spy();
- onCancel = sinon.spy();
-});
-
-test('renders KuiConfirmModal', () => {
- const component = render(
- {}}
- onConfirm={onConfirm}
- cancelButtonText="Cancel Button Text"
- confirmButtonText="Confirm Button Text"
- {...requiredProps}
- >
- This is a confirmation modal example
-
- );
- expect(component).toMatchSnapshot();
-});
-
-test('onConfirm', () => {
- const component = mount(
-
- );
-
- findTestSubject(component, 'confirmModalConfirmButton').simulate('click');
- sinon.assert.calledOnce(onConfirm);
- sinon.assert.notCalled(onCancel);
-});
-
-describe('onCancel', () => {
- test('triggered by click', () => {
- const component = mount(
-
- );
-
- findTestSubject(component, 'confirmModalCancelButton').simulate('click');
- sinon.assert.notCalled(onConfirm);
- sinon.assert.calledOnce(onCancel);
- });
-
- test('triggered by esc key', () => {
- const component = mount(
-
- );
-
- findTestSubject(component, 'modal').simulate('keydown', { keyCode: keyCodes.ESCAPE });
- sinon.assert.notCalled(onConfirm);
- sinon.assert.calledOnce(onCancel);
- });
-});
-
-describe('defaultFocusedButton', () => {
- test('is cancel', () => {
- const component = mount(
-
- );
-
- const button = findTestSubject(component, 'confirmModalCancelButton').getDOMNode();
- expect(document.activeElement).toEqual(button);
- });
-
- test('is confirm', () => {
- const component = mount(
-
- );
-
- const button = findTestSubject(component, 'confirmModalConfirmButton').getDOMNode();
- expect(document.activeElement).toEqual(button);
- });
-
- test('when not given gives focus to the modal', () => {
- const component = mount(
-
- );
- expect(document.activeElement).toEqual(component.getDOMNode().firstChild);
- });
-});
diff --git a/packages/kbn-ui-framework/src/components/modal/index.js b/packages/kbn-ui-framework/src/components/modal/index.js
deleted file mode 100644
index 7ce9e7e38606..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/index.js
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-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';
-export { KuiModalOverlay } from './modal_overlay';
-export { KuiModalBody } from './modal_body';
-export { KuiModalHeaderTitle } from './modal_header_title';
diff --git a/packages/kbn-ui-framework/src/components/modal/modal.js b/packages/kbn-ui-framework/src/components/modal/modal.js
deleted file mode 100644
index 0aa5d9ca5049..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/modal.js
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React, {
- Component,
-} from 'react';
-import classnames from 'classnames';
-import PropTypes from 'prop-types';
-import FocusTrap from 'focus-trap-react';
-
-import { keyCodes } from '../../services';
-
-export class KuiModal extends Component {
- onKeyDown = event => {
- if (event.keyCode === keyCodes.ESCAPE) {
- this.props.onClose();
- }
- };
-
- render() {
- const {
- className,
- children,
- onClose, // eslint-disable-line no-unused-vars
- ...rest
- } = this.props;
-
- const classes = classnames('kuiModal', className);
-
- return (
- this.modal,
- }}
- >
- {
- // Create a child div instead of applying these props directly to FocusTrap, or else
- // fallbackFocus won't work.
- }
-
-
- );
- }
-}
-
-KuiModal.propTypes = {
- className: PropTypes.string,
- children: PropTypes.node,
- onClose: PropTypes.func.isRequired,
-};
diff --git a/packages/kbn-ui-framework/src/components/modal/modal.test.js b/packages/kbn-ui-framework/src/components/modal/modal.test.js
deleted file mode 100644
index 0700079f5905..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/modal.test.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import { render } from 'enzyme';
-import { requiredProps } from '../../test/required_props';
-
-import {
- KuiModal,
-} from './modal';
-
-test('renders KuiModal', () => {
- const component = (
- {}}
- {...requiredProps}
- >
- children
-
- );
-
- expect(render(component)).toMatchSnapshot();
-});
diff --git a/packages/kbn-ui-framework/src/components/modal/modal_body.js b/packages/kbn-ui-framework/src/components/modal/modal_body.js
deleted file mode 100644
index 36bef25ae9b1..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/modal_body.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import classnames from 'classnames';
-import PropTypes from 'prop-types';
-
-export function KuiModalBody({ className, children, ...rest }) {
- const classes = classnames('kuiModalBody', className);
- return (
-
- { children }
-
- );
-}
-
-KuiModalBody.propTypes = {
- className: PropTypes.string,
- children: PropTypes.node
-};
diff --git a/packages/kbn-ui-framework/src/components/modal/modal_body.test.js b/packages/kbn-ui-framework/src/components/modal/modal_body.test.js
deleted file mode 100644
index b2a70839a12a..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/modal_body.test.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import { render } from 'enzyme';
-import { requiredProps } from '../../test/required_props';
-
-import {
- KuiModalBody,
-} from './modal_body';
-
-test('renders KuiModalBody', () => {
- const component = children;
- expect(render(component)).toMatchSnapshot();
-});
diff --git a/packages/kbn-ui-framework/src/components/modal/modal_footer.js b/packages/kbn-ui-framework/src/components/modal/modal_footer.js
deleted file mode 100644
index 1ded35b7046e..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/modal_footer.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import classnames from 'classnames';
-import PropTypes from 'prop-types';
-
-export function KuiModalFooter({ className, children, ...rest }) {
- const classes = classnames('kuiModalFooter', className);
- return (
-
- { children }
-
- );
-}
-
-KuiModalFooter.propTypes = {
- className: PropTypes.string,
- children: PropTypes.node
-};
diff --git a/packages/kbn-ui-framework/src/components/modal/modal_footer.test.js b/packages/kbn-ui-framework/src/components/modal/modal_footer.test.js
deleted file mode 100644
index e8404292ce1e..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/modal_footer.test.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import { render } from 'enzyme';
-import { requiredProps } from '../../test/required_props';
-
-import {
- KuiModalFooter,
-} from './modal_footer';
-
-test('renders KuiModalFooter', () => {
- const component = children;
- expect(render(component)).toMatchSnapshot();
-});
diff --git a/packages/kbn-ui-framework/src/components/modal/modal_header.js b/packages/kbn-ui-framework/src/components/modal/modal_header.js
deleted file mode 100644
index 9165e0c0a5b1..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/modal_header.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import classnames from 'classnames';
-import PropTypes from 'prop-types';
-
-export function KuiModalHeader({ className, children, ...rest }) {
- const classes = classnames('kuiModalHeader', className);
- return (
-
- { children }
-
- );
-}
-
-KuiModalHeader.propTypes = {
- className: PropTypes.string,
- children: PropTypes.node
-};
diff --git a/packages/kbn-ui-framework/src/components/modal/modal_header.test.js b/packages/kbn-ui-framework/src/components/modal/modal_header.test.js
deleted file mode 100644
index 10a51a1da4a8..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/modal_header.test.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import { render } from 'enzyme';
-import { requiredProps } from '../../test/required_props';
-
-import {
- KuiModalHeader,
-} from './modal_header';
-
-test('renders KuiModalHeader', () => {
- const component = children;
- expect(render(component)).toMatchSnapshot();
-});
diff --git a/packages/kbn-ui-framework/src/components/modal/modal_header_title.js b/packages/kbn-ui-framework/src/components/modal/modal_header_title.js
deleted file mode 100644
index 47d1960e02ae..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/modal_header_title.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import classnames from 'classnames';
-import PropTypes from 'prop-types';
-
-export function KuiModalHeaderTitle({ className, children, ...rest }) {
- const classes = classnames('kuiModalHeader__title', className);
- return (
-
- { children }
-
- );
-}
-
-KuiModalHeaderTitle.propTypes = {
- className: PropTypes.string,
- children: PropTypes.node
-};
diff --git a/packages/kbn-ui-framework/src/components/modal/modal_header_title.test.js b/packages/kbn-ui-framework/src/components/modal/modal_header_title.test.js
deleted file mode 100644
index 5ca29edfa972..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/modal_header_title.test.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import { render } from 'enzyme';
-import { requiredProps } from '../../test/required_props';
-
-import {
- KuiModalHeaderTitle,
-} from './modal_header_title';
-
-test('renders KuiModalHeaderTitle', () => {
- const component = children;
- expect(render(component)).toMatchSnapshot();
-});
diff --git a/packages/kbn-ui-framework/src/components/modal/modal_overlay.js b/packages/kbn-ui-framework/src/components/modal/modal_overlay.js
deleted file mode 100644
index 4d9ed64b8ead..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/modal_overlay.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import classnames from 'classnames';
-import PropTypes from 'prop-types';
-
-export function KuiModalOverlay({ className, ...rest }) {
- const classes = classnames('kuiModalOverlay', className);
- return (
-
- );
-}
-
-KuiModalOverlay.propTypes = {
- className: PropTypes.string,
-};
diff --git a/packages/kbn-ui-framework/src/components/modal/modal_overlay.test.js b/packages/kbn-ui-framework/src/components/modal/modal_overlay.test.js
deleted file mode 100644
index 75c3feee14e3..000000000000
--- a/packages/kbn-ui-framework/src/components/modal/modal_overlay.test.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import { render } from 'enzyme';
-import { requiredProps } from '../../test/required_props';
-
-import {
- KuiModalOverlay,
-} from './modal_overlay';
-
-test('renders KuiModalOverlay', () => {
- const component = children;
- expect(render(component)).toMatchSnapshot();
-});
diff --git a/packages/kbn-ui-framework/src/components/outside_click_detector/__snapshots__/outside_click_detector.test.js.snap b/packages/kbn-ui-framework/src/components/outside_click_detector/__snapshots__/outside_click_detector.test.js.snap
deleted file mode 100644
index 6345a66dd3ab..000000000000
--- a/packages/kbn-ui-framework/src/components/outside_click_detector/__snapshots__/outside_click_detector.test.js.snap
+++ /dev/null
@@ -1,3 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`KuiOutsideClickDetector is rendered 1`] = ``;
diff --git a/packages/kbn-ui-framework/src/components/outside_click_detector/index.js b/packages/kbn-ui-framework/src/components/outside_click_detector/index.js
deleted file mode 100644
index 52e22b67af17..000000000000
--- a/packages/kbn-ui-framework/src/components/outside_click_detector/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-export {
- KuiOutsideClickDetector,
-} from './outside_click_detector';
diff --git a/packages/kbn-ui-framework/src/components/outside_click_detector/outside_click_detector.js b/packages/kbn-ui-framework/src/components/outside_click_detector/outside_click_detector.js
deleted file mode 100644
index 0d107c249467..000000000000
--- a/packages/kbn-ui-framework/src/components/outside_click_detector/outside_click_detector.js
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import {
- Children,
- cloneElement,
- Component,
-} from 'react';
-import PropTypes from 'prop-types';
-
-export class KuiOutsideClickDetector extends Component {
- static propTypes = {
- children: PropTypes.node.isRequired,
- onOutsideClick: PropTypes.func.isRequired,
- };
-
- onClickOutside = event => {
- if (!this.wrapperRef) {
- return;
- }
-
- if (this.wrapperRef === event.target) {
- return;
- }
-
- if (this.wrapperRef.contains(event.target)) {
- return;
- }
-
- this.props.onOutsideClick();
- };
-
- componentDidMount() {
- document.addEventListener('mousedown', this.onClickOutside);
- }
-
- componentWillUnmount() {
- document.removeEventListener('mousedown', this.onClickOutside);
- }
-
- render() {
- const props = {
- ...this.props.children.props,
- ref: node => {
- this.wrapperRef = node;
- },
- };
-
- const child = Children.only(this.props.children);
- return cloneElement(child, props);
- }
-}
diff --git a/packages/kbn-ui-framework/src/components/outside_click_detector/outside_click_detector.test.js b/packages/kbn-ui-framework/src/components/outside_click_detector/outside_click_detector.test.js
deleted file mode 100644
index 5d872531f07b..000000000000
--- a/packages/kbn-ui-framework/src/components/outside_click_detector/outside_click_detector.test.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import { render } from 'enzyme';
-
-import { KuiOutsideClickDetector } from './outside_click_detector';
-
-describe('KuiOutsideClickDetector', () => {
- test('is rendered', () => {
- const component = render(
- {}}>
-
-
- );
-
- expect(component)
- .toMatchSnapshot();
- });
-});
diff --git a/packages/kbn-ui-framework/src/components/panel_simple/__snapshots__/panel_simple.test.js.snap b/packages/kbn-ui-framework/src/components/panel_simple/__snapshots__/panel_simple.test.js.snap
deleted file mode 100644
index f826cf618273..000000000000
--- a/packages/kbn-ui-framework/src/components/panel_simple/__snapshots__/panel_simple.test.js.snap
+++ /dev/null
@@ -1,9 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`KuiPanelSimple is rendered 1`] = `
-
-`;
diff --git a/packages/kbn-ui-framework/src/components/panel_simple/_index.scss b/packages/kbn-ui-framework/src/components/panel_simple/_index.scss
deleted file mode 100644
index 31e793246dfe..000000000000
--- a/packages/kbn-ui-framework/src/components/panel_simple/_index.scss
+++ /dev/null
@@ -1 +0,0 @@
-@import 'panel_simple';
diff --git a/packages/kbn-ui-framework/src/components/panel_simple/_panel_simple.scss b/packages/kbn-ui-framework/src/components/panel_simple/_panel_simple.scss
deleted file mode 100644
index debc03f0cfac..000000000000
--- a/packages/kbn-ui-framework/src/components/panel_simple/_panel_simple.scss
+++ /dev/null
@@ -1,27 +0,0 @@
-.kuiPanelSimple {
- @include euiBottomShadowSmall;
- background-color: $euiColorEmptyShade;
- border: $euiBorderThin;
- border-radius: $euiBorderRadius;
- flex-grow: 1;
-
- &.kuiPanelSimple--paddingSmall {
- padding: $kuiSizeS;
- }
-
- &.kuiPanelSimple--paddingMedium {
- padding: $kuiSize;
- }
-
- &.kuiPanelSimple--paddingLarge {
- padding: $kuiSizeL;
- }
-
- &.kuiPanelSimple--shadow {
- @include kuiBottomShadow;
- }
-
- &.kuiPanelSimple--flexGrowZero {
- flex-grow: 0;
- }
-}
diff --git a/packages/kbn-ui-framework/src/components/panel_simple/index.js b/packages/kbn-ui-framework/src/components/panel_simple/index.js
deleted file mode 100644
index c9375a948883..000000000000
--- a/packages/kbn-ui-framework/src/components/panel_simple/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-export {
- KuiPanelSimple,
- SIZES,
-} from './panel_simple';
diff --git a/packages/kbn-ui-framework/src/components/panel_simple/panel_simple.js b/packages/kbn-ui-framework/src/components/panel_simple/panel_simple.js
deleted file mode 100644
index 8e902201ced0..000000000000
--- a/packages/kbn-ui-framework/src/components/panel_simple/panel_simple.js
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import PropTypes from 'prop-types';
-import classNames from 'classnames';
-
-const paddingSizeToClassNameMap = {
- 'none': null,
- 's': 'kuiPanelSimple--paddingSmall',
- 'm': 'kuiPanelSimple--paddingMedium',
- 'l': 'kuiPanelSimple--paddingLarge',
-};
-
-export const SIZES = Object.keys(paddingSizeToClassNameMap);
-
-export const KuiPanelSimple = ({
- children,
- className,
- paddingSize,
- hasShadow,
- grow,
- panelRef,
- ...rest
-}) => {
-
- const classes = classNames(
- 'kuiPanelSimple',
- paddingSizeToClassNameMap[paddingSize],
- {
- 'kuiPanelSimple--shadow': hasShadow,
- 'kuiPanelSimple--flexGrowZero': !grow,
- },
- className
- );
-
- return (
-
- {children}
-
- );
-
-};
-
-KuiPanelSimple.propTypes = {
- children: PropTypes.node,
- className: PropTypes.string,
- hasShadow: PropTypes.bool,
- paddingSize: PropTypes.oneOf(SIZES),
- grow: PropTypes.bool,
- panelRef: PropTypes.func,
-};
-
-KuiPanelSimple.defaultProps = {
- paddingSize: 'm',
- hasShadow: false,
- grow: true,
-};
diff --git a/packages/kbn-ui-framework/src/components/panel_simple/panel_simple.test.js b/packages/kbn-ui-framework/src/components/panel_simple/panel_simple.test.js
deleted file mode 100644
index 977011207a16..000000000000
--- a/packages/kbn-ui-framework/src/components/panel_simple/panel_simple.test.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to Elasticsearch B.V. under one or more contributor
- * license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright
- * ownership. Elasticsearch B.V. licenses this file to you under
- * the Apache License, Version 2.0 (the "License"); you may
- * not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import React from 'react';
-import { render } from 'enzyme';
-import { requiredProps } from '../../test/required_props';
-
-import { KuiPanelSimple } from './panel_simple';
-
-describe('KuiPanelSimple', () => {
- test('is rendered', () => {
- const component = render(
-
- );
-
- expect(component)
- .toMatchSnapshot();
- });
-});
diff --git a/packages/kbn-ui-framework/src/components/popover/__snapshots__/popover.test.js.snap b/packages/kbn-ui-framework/src/components/popover/__snapshots__/popover.test.js.snap
deleted file mode 100644
index a409fcd28b80..000000000000
--- a/packages/kbn-ui-framework/src/components/popover/__snapshots__/popover.test.js.snap
+++ /dev/null
@@ -1,125 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`KuiPopover children is rendered 1`] = `
-
-
-
-`;
-
-exports[`KuiPopover is rendered 1`] = `
-
-
-
-`;
-
-exports[`KuiPopover props anchorPosition defaults to center 1`] = `
-
-
-
-`;
-
-exports[`KuiPopover props anchorPosition left is rendered 1`] = `
-
-
-
-`;
-
-exports[`KuiPopover props anchorPosition right is rendered 1`] = `
-