From abc0f6dc87551720e717f694e07f845fe4bac850 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Tue, 21 Apr 2020 23:57:59 +0900 Subject: [PATCH 1/5] Move HorizontalScrollGrid component files in a directory --- .../{ => HorizontalScrollGrid}/HorizontalScrollGrid.stories.tsx | 0 .../{ => HorizontalScrollGrid}/HorizontalScrollGrid.test.js | 0 .../{ => HorizontalScrollGrid}/HorizontalScrollGrid.tsx | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename packages/core/src/components/{ => HorizontalScrollGrid}/HorizontalScrollGrid.stories.tsx (100%) rename packages/core/src/components/{ => HorizontalScrollGrid}/HorizontalScrollGrid.test.js (100%) rename packages/core/src/components/{ => HorizontalScrollGrid}/HorizontalScrollGrid.tsx (100%) diff --git a/packages/core/src/components/HorizontalScrollGrid.stories.tsx b/packages/core/src/components/HorizontalScrollGrid/HorizontalScrollGrid.stories.tsx similarity index 100% rename from packages/core/src/components/HorizontalScrollGrid.stories.tsx rename to packages/core/src/components/HorizontalScrollGrid/HorizontalScrollGrid.stories.tsx diff --git a/packages/core/src/components/HorizontalScrollGrid.test.js b/packages/core/src/components/HorizontalScrollGrid/HorizontalScrollGrid.test.js similarity index 100% rename from packages/core/src/components/HorizontalScrollGrid.test.js rename to packages/core/src/components/HorizontalScrollGrid/HorizontalScrollGrid.test.js diff --git a/packages/core/src/components/HorizontalScrollGrid.tsx b/packages/core/src/components/HorizontalScrollGrid/HorizontalScrollGrid.tsx similarity index 100% rename from packages/core/src/components/HorizontalScrollGrid.tsx rename to packages/core/src/components/HorizontalScrollGrid/HorizontalScrollGrid.tsx From 9cffb0258db167b6db28b912217bc3dea663d609 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Tue, 21 Apr 2020 23:58:39 +0900 Subject: [PATCH 2/5] Move SortableTable component files in a directory --- packages/core/src/components/{ => SortableTable}/SortableTable.js | 0 .../src/components/{ => SortableTable}/SortableTable.stories.tsx | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename packages/core/src/components/{ => SortableTable}/SortableTable.js (100%) rename packages/core/src/components/{ => SortableTable}/SortableTable.stories.tsx (100%) diff --git a/packages/core/src/components/SortableTable.js b/packages/core/src/components/SortableTable/SortableTable.js similarity index 100% rename from packages/core/src/components/SortableTable.js rename to packages/core/src/components/SortableTable/SortableTable.js diff --git a/packages/core/src/components/SortableTable.stories.tsx b/packages/core/src/components/SortableTable/SortableTable.stories.tsx similarity index 100% rename from packages/core/src/components/SortableTable.stories.tsx rename to packages/core/src/components/SortableTable/SortableTable.stories.tsx From 6a0ff5ee22d3cc3a0a460648324fe83eadaea8c8 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Wed, 22 Apr 2020 00:01:41 +0900 Subject: [PATCH 3/5] SortableTable depends on the Status component --- .../core/src/components/SortableTable/SortableTable.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/SortableTable/SortableTable.stories.tsx b/packages/core/src/components/SortableTable/SortableTable.stories.tsx index c534457d53..0879368249 100644 --- a/packages/core/src/components/SortableTable/SortableTable.stories.tsx +++ b/packages/core/src/components/SortableTable/SortableTable.stories.tsx @@ -15,7 +15,7 @@ */ import React from 'react'; -import { StatusError, StatusOK, StatusWarning } from './Status'; +import { StatusError, StatusOK, StatusWarning } from './../Status'; import SortableTable from './SortableTable'; export default { From a72bd32b1f2c371792271b4ddd4e645f4c677252 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Wed, 22 Apr 2020 00:10:02 +0900 Subject: [PATCH 4/5] index.tsx required for the components namespace --- .../components/HorizontalScrollGrid/index.tsx | 17 +++++++++++++++++ .../core/src/components/SortableTable/index.tsx | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 packages/core/src/components/HorizontalScrollGrid/index.tsx create mode 100644 packages/core/src/components/SortableTable/index.tsx diff --git a/packages/core/src/components/HorizontalScrollGrid/index.tsx b/packages/core/src/components/HorizontalScrollGrid/index.tsx new file mode 100644 index 0000000000..2b44fe1955 --- /dev/null +++ b/packages/core/src/components/HorizontalScrollGrid/index.tsx @@ -0,0 +1,17 @@ +/* + * Copyright 2020 Spotify AB + * + * Licensed 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 { default } from './HorizontalScrollGrid'; diff --git a/packages/core/src/components/SortableTable/index.tsx b/packages/core/src/components/SortableTable/index.tsx new file mode 100644 index 0000000000..718f582b8f --- /dev/null +++ b/packages/core/src/components/SortableTable/index.tsx @@ -0,0 +1,17 @@ +/* + * Copyright 2020 Spotify AB + * + * Licensed 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 { default } from './SortableTable'; From 1cb81ce5c0f0a5504ef5cc053430e24a1db9b055 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Wed, 22 Apr 2020 01:01:28 +0900 Subject: [PATCH 5/5] Use absolute import instead of relative import --- .../core/src/components/SortableTable/SortableTable.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/SortableTable/SortableTable.stories.tsx b/packages/core/src/components/SortableTable/SortableTable.stories.tsx index 0879368249..3938916156 100644 --- a/packages/core/src/components/SortableTable/SortableTable.stories.tsx +++ b/packages/core/src/components/SortableTable/SortableTable.stories.tsx @@ -15,7 +15,7 @@ */ import React from 'react'; -import { StatusError, StatusOK, StatusWarning } from './../Status'; +import { StatusError, StatusOK, StatusWarning } from 'components/Status'; import SortableTable from './SortableTable'; export default {