Skip to content

Commit

Permalink
Merge pull request #1156 from carbon-design-system/dev
Browse files Browse the repository at this point in the history
Merging Dev to Master to Depreciate Storybook
  • Loading branch information
lily-peng authored Jun 27, 2022
2 parents 03ae9de + 8c57c28 commit 86475e9
Show file tree
Hide file tree
Showing 1,025 changed files with 19,028 additions and 16,659 deletions.
22 changes: 19 additions & 3 deletions .storybook/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,25 @@ import { LIBRARY } from '../src/components/LayoutModules/stories';

// Category labels.
const CATEGORIES = {
OVERVIEW: 'Overview',
COMPONENTS: 'Components',
DEPRECATED: 'Deprecated',
LAYOUT_MODULES: 'Layout modules',
PAGE_LAYOUTS: 'Page layouts (Canary)',
PAGE_LAYOUTS: 'Layouts',
PATTERNS: 'Patterns',
};

const { COMPONENTS, DEPRECATED, LAYOUT_MODULES, PAGE_LAYOUTS, PATTERNS } =
CATEGORIES;
const {
OVERVIEW,
COMPONENTS,
DEPRECATED,
LAYOUT_MODULES,
PAGE_LAYOUTS,
PATTERNS,
} = CATEGORIES;

const ORDER = [
OVERVIEW,
LAYOUT_MODULES,
[LIBRARY],
PAGE_LAYOUTS,
Expand Down Expand Up @@ -61,6 +69,13 @@ const getDeprecatedCategory = bindCategory(DEPRECATED);
*/
const getLayoutModulesCategory = bindCategory(LAYOUT_MODULES);

/**
* Returns a formatted string for the layout modules category.
* @param {string} storyName The story name to format.
* @returns {string} The formatted layout module category and story name.
*/
const getOverviewModulesCategory = bindCategory(OVERVIEW);

/**
* Returns a formatted string for the page layouts category.
* @param {string} storyName The story name to format.
Expand Down Expand Up @@ -141,6 +156,7 @@ export {
getDeprecatedCategory as deprecated,
getDocsId,
getDocsParameters,
getOverviewModulesCategory as overviewModules,
getLayoutModulesCategory as layoutModules,
getPageLayoutsCategory as pageLayouts,
getPatternsCategory as patterns,
Expand Down
5 changes: 1 addition & 4 deletions .storybook/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
@import '@carbon/layout/scss/spacing';
@import '@carbon/themes/scss/theme-maps';

@import '../src/globals/index';

@import 'carbon-components/scss/globals/scss/vars';

@import '../src/components/index';
@import '../src/platform/index';
@import '../src/index';

// TODO: Remove workaround for https://github.ibm.com/security/design-core-experience/issues/241
@import 'components/Background/index';
Expand Down
4 changes: 0 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import { Column, Row } from '../src';
import random from '../src/globals/random';
import theme from '../src/globals/theme';

import Detail from '../src/components/LayoutModules/docs/examples/Detail/index.mdx';
import Overview from '../src/components/LayoutModules/docs/examples/Overview/index.mdx';
import Troubleshooting from '../src/components/LayoutModules/docs/Troubleshooting/index.mdx';

import { ORDER } from '.';
Expand Down Expand Up @@ -48,9 +46,7 @@ const parameters = {
ArgsTable,
Canvas,
Column,
Detail,
LinkTo: (props) => <LinkTo className="storybook__link" {...props} />,
Overview,
Row,
Source,
Story,
Expand Down
Binary file removed .yarn/offline-mirror/@babel-cli-7.14.8.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-cli-7.16.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-code-frame-7.16.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@babel-compat-data-7.15.0.tgz
Binary file not shown.
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-core-7.16.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-generator-7.16.0.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@babel-helpers-7.15.3.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-helpers-7.16.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@babel-highlight-7.14.5.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-highlight-7.16.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-parser-7.16.2.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@babel-preset-env-7.15.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-preset-env-7.16.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@babel-preset-flow-7.14.5.tgz
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@babel-preset-modules-0.1.4.tgz
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@babel-preset-react-7.14.5.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@babel-register-7.15.3.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-register-7.16.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-runtime-7.16.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-template-7.16.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-traverse-7.16.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@babel-types-7.16.0.tgz
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-bundler-10.11.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-cli-reporter-10.5.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-colors-10.31.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@carbon-colors-10.34.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-grid-10.35.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@carbon-grid-10.39.0.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-icons-react-10.38.0.tgz
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-layout-10.31.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@carbon-layout-10.34.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-motion-10.23.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@carbon-motion-10.26.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-themes-10.42.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@carbon-themes-10.46.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-type-10.35.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@carbon-type-10.38.0.tgz
Binary file not shown.
Binary file not shown.
Binary file added .yarn/offline-mirror/@gar-promisify-1.1.2.tgz
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@jest-console-27.0.6.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@jest-console-27.3.1.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@jest-core-27.0.6.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@jest-core-27.3.1.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@jest-environment-27.0.6.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@jest-environment-27.3.1.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@jest-fake-timers-27.0.6.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@jest-fake-timers-27.3.1.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@jest-globals-27.0.6.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@jest-globals-27.3.1.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@jest-reporters-27.0.6.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@jest-reporters-27.3.1.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@jest-test-result-27.0.6.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@jest-test-result-27.3.1.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@jest-test-sequencer-27.0.6.tgz
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@jest-transform-27.0.6.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@jest-transform-27.3.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@jest-types-27.2.5.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .yarn/offline-mirror/@npmcli-arborist-2.10.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@npmcli-arborist-2.8.2.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@npmcli-ci-detect-1.3.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@npmcli-ci-detect-1.4.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@npmcli-config-2.2.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@npmcli-config-2.3.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@npmcli-fs-1.0.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@npmcli-node-gyp-1.0.2.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@npmcli-node-gyp-1.0.3.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@octokit-auth-token-2.4.5.tgz
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@octokit-graphql-4.6.4.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@octokit-request-5.6.1.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@octokit-request-5.6.2.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@octokit-rest-18.12.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@octokit-rest-18.9.1.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@octokit-types-6.25.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@octokit-types-6.34.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@popperjs-core-2.10.2.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@popperjs-core-2.9.3.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@sindresorhus-is-0.14.0.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@storybook-addon-a11y-6.3.7.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .yarn/offline-mirror/@storybook-addons-6.3.12.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@storybook-addons-6.3.7.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@storybook-api-6.3.12.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@storybook-api-6.3.7.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 86475e9

Please sign in to comment.