Skip to content

Commit e859372

Browse files
authored
Remove entire layout-related modules (#1128)
1 parent 3bdb95e commit e859372

File tree

88 files changed

+13
-3015
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+13
-3015
lines changed

.changeset/grumpy-eagles-move.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@channel.io/bezier-react": minor
3+
---
4+
5+
**Breaking changes**
6+
7+
No longer provide `layout`-related modules (e.g. `LayoutProvider`, `GNB`...)

.github/CODEOWNERS

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,3 @@
3737
/packages/bezier-react/src/components/Text/ @sungik-choi
3838
/packages/bezier-react/src/components/Toast/ @dinohan
3939
/packages/bezier-react/src/components/Tooltip/ @sungik-choi
40-
41-
# FIXME - Should be deleted after <https://github.com/channel-io/bezier-react/issues/981> resolved
42-
43-
/packages/bezier-react/src/layout/ @quino0627

packages/bezier-react/jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ module.exports = {
2020
'^Foundation$': '<rootDir>/src/foundation',
2121
'Foundation/(.*)$': '<rootDir>/src/foundation/$1',
2222
'Hooks/(.*)$': '<rootDir>/src/hooks/$1',
23-
'Layout/(.*)$': '<rootDir>/src/layout/$1',
2423
'Providers/(.*)$': '<rootDir>/src/providers/$1',
2524
'Types/(.*)$': '<rootDir>/src/types/$1',
2625
'Utils/(.*)$': '<rootDir>/src/utils/$1',

packages/bezier-react/rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const typescriptPlugin = typescript({
2727
],
2828
},
2929
exclude: [
30-
'./src/layout/stories/**/*',
3130
'**/__mocks__/*',
3231
'**/*.stories.tsx',
3332
'**/*.test.ts',

packages/bezier-react/src/components/Toast/utils.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
/* Internal dependencies */
22
import { css } from 'Foundation'
3-
import { GNB_WIDTH } from 'Layout/LayoutSizes'
43
import { ToastAppearance, ToastIconColor, ToastPlacement, ToastPreset, ToastPresetType } from './Toast.types'
54

5+
/**
6+
* @deprecated
7+
* FIXME: Styling dependent on specific applications.
8+
*/
9+
const GNB_WIDTH = 68
10+
611
function getIconColor(appearance: ToastAppearance): ToastIconColor {
712
switch (appearance) {
813
case ToastAppearance.Success:

packages/bezier-react/src/index.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,31 +53,12 @@ export * from 'Components/Tooltip'
5353
/* Hooks for Component */
5454
export { default as useToast } from 'Components/Toast/useToast'
5555

56-
/* Layout */
57-
export * from 'Layout/components/GNB'
58-
export * from 'Layout/components/GlobalHeader'
59-
export * from 'Layout/components/Client'
60-
export * from 'Layout/components/Main'
61-
export * from 'Layout/components/Header'
62-
export * from 'Layout/components/Navigations'
63-
export * from 'Layout/components/Side/SidePanelContent'
64-
export * from 'Layout/components/Side/SideViewContent'
65-
export * from 'Layout/redux'
66-
export { default as LayoutProvider } from 'Layout/LayoutProvider'
67-
68-
/* Hooks for Layout */
69-
export { default as useLayoutDispatch } from 'Layout/hooks/useLayoutDispatch'
70-
export { default as useLayoutState } from 'Layout/hooks/useLayoutState'
71-
export { default as useSideWidth } from 'Layout/hooks/useSideWidth'
72-
export { default as useHeader } from 'Layout/hooks/useHeader'
73-
7456
/* Types */
7557
export * from 'Types/ComponentProps'
7658
export * from 'Types/Foundation'
7759
export * from 'Types/Utils'
7860

7961
/* Types (Enum) */
80-
export { default as LayoutHeaderType } from 'Layout/types/LayoutHeaderType'
8162
export { default as TabsSize } from 'Components/Tabs/LegacyTabs/TabsSize'
8263

8364
/* Hooks */

packages/bezier-react/src/layout/LayoutContext.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/bezier-react/src/layout/LayoutProvider.tsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

packages/bezier-react/src/layout/LayoutSizes.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/bezier-react/src/layout/components/Client/Client.styled.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)