Skip to content

Commit 86475e9

Browse files
authored
Merge pull request #1156 from carbon-design-system/dev
Merging Dev to Master to Depreciate Storybook
2 parents 03ae9de + 8c57c28 commit 86475e9

File tree

1,025 files changed

+19028
-16659
lines changed

Some content is hidden

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

1,025 files changed

+19028
-16659
lines changed

.storybook/index.js

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,25 @@ import { LIBRARY } from '../src/components/LayoutModules/stories';
77

88
// Category labels.
99
const CATEGORIES = {
10+
OVERVIEW: 'Overview',
1011
COMPONENTS: 'Components',
1112
DEPRECATED: 'Deprecated',
1213
LAYOUT_MODULES: 'Layout modules',
13-
PAGE_LAYOUTS: 'Page layouts (Canary)',
14+
PAGE_LAYOUTS: 'Layouts',
1415
PATTERNS: 'Patterns',
1516
};
1617

17-
const { COMPONENTS, DEPRECATED, LAYOUT_MODULES, PAGE_LAYOUTS, PATTERNS } =
18-
CATEGORIES;
18+
const {
19+
OVERVIEW,
20+
COMPONENTS,
21+
DEPRECATED,
22+
LAYOUT_MODULES,
23+
PAGE_LAYOUTS,
24+
PATTERNS,
25+
} = CATEGORIES;
1926

2027
const ORDER = [
28+
OVERVIEW,
2129
LAYOUT_MODULES,
2230
[LIBRARY],
2331
PAGE_LAYOUTS,
@@ -61,6 +69,13 @@ const getDeprecatedCategory = bindCategory(DEPRECATED);
6169
*/
6270
const getLayoutModulesCategory = bindCategory(LAYOUT_MODULES);
6371

72+
/**
73+
* Returns a formatted string for the layout modules category.
74+
* @param {string} storyName The story name to format.
75+
* @returns {string} The formatted layout module category and story name.
76+
*/
77+
const getOverviewModulesCategory = bindCategory(OVERVIEW);
78+
6479
/**
6580
* Returns a formatted string for the page layouts category.
6681
* @param {string} storyName The story name to format.
@@ -141,6 +156,7 @@ export {
141156
getDeprecatedCategory as deprecated,
142157
getDocsId,
143158
getDocsParameters,
159+
getOverviewModulesCategory as overviewModules,
144160
getLayoutModulesCategory as layoutModules,
145161
getPageLayoutsCategory as pageLayouts,
146162
getPatternsCategory as patterns,

.storybook/index.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77
@import '@carbon/layout/scss/spacing';
88
@import '@carbon/themes/scss/theme-maps';
99

10-
@import '../src/globals/index';
11-
1210
@import 'carbon-components/scss/globals/scss/vars';
1311

14-
@import '../src/components/index';
15-
@import '../src/platform/index';
12+
@import '../src/index';
1613

1714
// TODO: Remove workaround for https://github.ibm.com/security/design-core-experience/issues/241
1815
@import 'components/Background/index';

.storybook/preview.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import { Column, Row } from '../src';
1616
import random from '../src/globals/random';
1717
import theme from '../src/globals/theme';
1818

19-
import Detail from '../src/components/LayoutModules/docs/examples/Detail/index.mdx';
20-
import Overview from '../src/components/LayoutModules/docs/examples/Overview/index.mdx';
2119
import Troubleshooting from '../src/components/LayoutModules/docs/Troubleshooting/index.mdx';
2220

2321
import { ORDER } from '.';
@@ -48,9 +46,7 @@ const parameters = {
4846
ArgsTable,
4947
Canvas,
5048
Column,
51-
Detail,
5249
LinkTo: (props) => <LinkTo className="storybook__link" {...props} />,
53-
Overview,
5450
Row,
5551
Source,
5652
Story,
-8.6 KB
Binary file not shown.
8.62 KB
Binary file not shown.
2.81 KB
Binary file not shown.
-5.17 KB
Binary file not shown.
5.22 KB
Binary file not shown.
38.8 KB
Binary file not shown.
22.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)