Skip to content

Commit 8c57c28

Browse files
authored
Merge pull request #1151 from amtoussam/feature/create-overview-story
chore: deprecate entire repo
2 parents dc75db7 + 3c3bc98 commit 8c57c28

File tree

4 files changed

+56
-16
lines changed

4 files changed

+56
-16
lines changed

.storybook/index.js

Lines changed: 18 additions & 2 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',
1314
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,

src/components/LayoutModules/stories/Library.stories.mdx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ our other pages.
3535
<LinkTo
3636
className="storybook__link--image"
3737
kind={getDocsId('layout-modules-actionbarmodule')}
38-
story="default"
39-
>
38+
story="default">
4039
<img alt="Link to action bar module" src={actionBarModule} />
4140
</LinkTo>
4241
</Column>
@@ -45,8 +44,7 @@ our other pages.
4544
<LinkTo
4645
className="storybook__link--image"
4746
kind={getDocsId('layout-modules-buttonclustermodule')}
48-
story="default"
49-
>
47+
story="default">
5048
<img alt="Link to button cluster module" src={buttonClusterModule} />
5149
</LinkTo>
5250
</Column>
@@ -55,8 +53,7 @@ our other pages.
5553
<LinkTo
5654
className="storybook__link--image"
5755
kind={getDocsId('layout-modules-cardareamodule')}
58-
story="default"
59-
>
56+
story="default">
6057
<img alt="Link to card area module" src={cardAreaModule} />
6158
</LinkTo>
6259
</Column>
@@ -78,8 +75,7 @@ our other pages.
7875
<LinkTo
7976
className="storybook__link--image"
8077
kind={getDocsId('layout-modules-descriptionlistmodule')}
81-
story="default"
82-
>
78+
story="default">
8379
<img alt="Link to description list module" src={descriptionListModule} />
8480
</LinkTo>
8581
</Column>
@@ -88,8 +84,7 @@ our other pages.
8884
<LinkTo
8985
className="storybook__link--image"
9086
kind={getDocsId('layout-modules-icamodule')}
91-
story="default"
92-
>
87+
story="default">
9388
<img alt="Link to ICA module" src={icaModule} />
9489
</LinkTo>
9590
</Column>
@@ -101,17 +96,15 @@ our other pages.
10196
<LinkTo
10297
className="storybook__link--image"
10398
kind={getDocsId('layout-modules-titlebarmodule')}
104-
story="default"
105-
>
99+
story="default">
106100
<img alt="Link to title bar module" src={titleBarModule} />
107101
</LinkTo>
108102
</Column>
109103
<Column lg={4}>
110104
<LinkTo
111105
className="storybook__link--image"
112106
kind={getDocsId('layout-modules-listitemmodule')}
113-
story="default"
114-
>
107+
story="default">
115108
<img alt="Link to list item module" src={listItemModule} />
116109
</LinkTo>
117110
</Column>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Meta } from '@storybook/addon-docs';
2+
3+
import { getDocsId } from '../../../../.storybook';
4+
5+
import getTitle, { OVERVIEW, parameters } from '.';
6+
7+
<Meta parameters={parameters} title={getTitle(OVERVIEW)} />
8+
9+
# Carbon for IBM Security is longer supported
10+
11+
Carbon for IBM Security has fully migrated over
12+
to<LinkTo target="https://carbon-for-ibm-products.netlify.app/?path=/story/overview-getting-started--page">
13+
Carbon for IBM Products</LinkTo>. Upgrade to 2.7+ to ensure you are receiving
14+
the latest package of components, patterns and layouts.
15+
16+
<a href="https://github.com/carbon-design-system/ibm-cloud-cognitive/tree/main/packages/security">
17+
{' '}
18+
Visit here for more details.
19+
</a>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* @file Story information.
3+
* @copyright IBM Security 2020 - 2021
4+
*/
5+
6+
import { parameters, overviewModules } from '../../../../.storybook';
7+
8+
const OVERVIEW = 'Overview';
9+
10+
export default (title) => overviewModules(title);
11+
12+
export { OVERVIEW, parameters };

0 commit comments

Comments
 (0)