diff --git a/.all-contributorsrc b/.all-contributorsrc index 444d90530529..92e7b8f4fbf8 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -801,6 +801,25 @@ "contributions": [ "code" ] + }, + { + "login": "RianTavares", + "name": "@RianTavaresOn", + "avatar_url": "https://avatars.githubusercontent.com/u/8935295?v=4", + "profile": "https://riantavares.github.io/", + "contributions": [ + "code", + "design" + ] + }, + { + "login": "ColbyJohnIBM", + "name": "ColbyJohnIBM", + "avatar_url": "https://avatars.githubusercontent.com/u/19613692?v=4", + "profile": "https://github.com/ColbyJohnIBM", + "contributions": [ + "code" + ] } ], "commitConvention": "none" diff --git a/.github/ISSUE_TEMPLATE/DESIGN_DEFECT.yaml b/.github/ISSUE_TEMPLATE/DESIGN_DEFECT.yaml new file mode 100644 index 000000000000..a4065d5d4723 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/DESIGN_DEFECT.yaml @@ -0,0 +1,93 @@ +name: Design defect 🎨 +description: Report a visual design issue +title: '[Bug]: ' +labels: 'type: bug 🐛' +body: + - type: markdown + attributes: + value: '## Welcome!' + - type: markdown + attributes: + value: + Thanks for taking the time to fill out the details below for this design + defect. + - type: dropdown + id: package + attributes: + label: Package + description: Which package(s) are you using? + multiple: true + options: + - 'carbon-components' + - 'carbon-components-react' + - '@carbon/colors' + - '@carbon/elements' + - '@carbon/grid' + - '@carbon/icons' + - '@carbon/icons-react' + - '@carbon/icons-vue' + - '@carbon/layout' + - '@carbon/motion' + - '@carbon/pictograms' + - '@carbon/pictograms-react' + - '@carbon/themes' + - '@carbon/type' + - '@carbon/upgrade' + validations: + required: true + - type: dropdown + id: browser + attributes: + label: Browser + description: Which browser(s) are you experiencing the issue? + multiple: true + options: + - Chrome + - Safari + - Firefox + - Edge + - type: input + id: version + attributes: + label: Package version + description: 'Which version(s) are you using?' + placeholder: e.g. v10.42.0 + validations: + required: true + - type: textarea + id: description + attributes: + label: Description + description: "Tell us more about the problem that you're running into" + placeholder: What did you see? What did you expect to see? + validations: + required: true + - type: textarea + id: example-url + attributes: + label: Screenshots + description: 'Provide screenshots of the problem' + validations: + required: true + - type: textarea + id: reproduce + attributes: + label: Steps to reproduce + description: + 'How do we reproduce the problem displayed in the screenshots above?' + validations: + required: true + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: Please confirm the following + options: + - label: + I agree to follow this project's [Code of + Conduct](https://github.com/carbon-design-system/carbon/blob/f555616971a03fd454c0f4daea184adf41fff05b/.github/CODE_OF_CONDUCT.md) + required: true + - label: + I checked the [current + issues](https://github.com/carbon-design-system/carbon/issues) for + duplicate problems diff --git a/README.md b/README.md index 1cd859141ab4..a3911db05b94 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,8 @@ check out our [Contributing Guide](/.github/CONTRIBUTING.md) and our
Adam Alston

📖
Krithika S Udupa

📖
Eshin Griffith

💻 +
@RianTavaresOn

💻 🎨 +
ColbyJohnIBM

💻 diff --git a/package.json b/package.json index ee927a03ef52..2b3c358a6563 100644 --- a/package.json +++ b/package.json @@ -71,12 +71,6 @@ "rimraf": "^3.0.0", "stylelint": "^13.13.1" }, - "husky": { - "hooks": { - "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS", - "pre-commit": "lint-staged" - } - }, "commitlint": { "extends": [ "@commitlint/config-conventional" diff --git a/packages/carbon-react/package.json b/packages/carbon-react/package.json index 27bc40c6442a..06c0702f3ab5 100644 --- a/packages/carbon-react/package.json +++ b/packages/carbon-react/package.json @@ -1,7 +1,7 @@ { "name": "@carbon/react", "description": "React components for the Carbon Design System", - "version": "0.6.0", + "version": "0.7.0", "license": "Apache-2.0", "main": "lib/index.js", "module": "es/index.js", @@ -43,11 +43,11 @@ }, "dependencies": { "@carbon/feature-flags": "^0.6.0", - "@carbon/icons-react": "^10.40.0", - "@carbon/styles": "^0.6.0", + "@carbon/icons-react": "^10.41.0", + "@carbon/styles": "^0.7.0", "@carbon/telemetry": "0.0.0-alpha.6", - "carbon-components": "^10.45.0", - "carbon-components-react": "^7.45.0", + "carbon-components": "^10.46.0", + "carbon-components-react": "^7.46.0", "carbon-icons": "^7.0.7" }, "devDependencies": { @@ -58,7 +58,7 @@ "@babel/plugin-transform-react-constant-elements": "^7.14.5", "@babel/preset-env": "^7.14.7", "@babel/preset-react": "^7.14.5", - "@carbon/themes": "^10.44.0", + "@carbon/themes": "^10.45.0", "@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-commonjs": "^18.0.0", "@rollup/plugin-node-resolve": "^11.2.1", diff --git a/packages/carbon-react/src/components/CodeSnippet/CodeSnippet.stories.js b/packages/carbon-react/src/components/CodeSnippet/CodeSnippet.stories.js index 864b1f06ac02..8b6a05b3f7ae 100644 --- a/packages/carbon-react/src/components/CodeSnippet/CodeSnippet.stories.js +++ b/packages/carbon-react/src/components/CodeSnippet/CodeSnippet.stories.js @@ -7,6 +7,7 @@ import React from 'react'; import { CodeSnippet, CodeSnippetSkeleton } from 'carbon-components-react'; +import { Layer } from '../Layer'; export default { title: 'Components/CodeSnippet', @@ -60,6 +61,153 @@ export const singleline = () => ( ); +export const inlineWithLayer = () => { + return ( + <> + + {'node -v'} + + + + {'node -v'} + + + + {'node -v'} + + + + + ); +}; + +export const multilineWithLayer = () => { + return ( + <> + + {` "scripts": { + "build": "lerna run build --stream --prefix --npm-client yarn", + "ci-check": "carbon-cli ci-check", + "clean": "lerna run clean && lerna clean --yes && rimraf node_modules", + "doctoc": "doctoc --title '## Table of Contents'", + "format": "prettier --write '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**'", + "format:diff": "prettier --list-different '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**' '!packages/components/**'", + "lint": "eslint actions config codemods packages", + "lint:styles": "stylelint '**/*.{css,scss}' --report-needless-disables --report-invalid-scope-disables", + "sync": "carbon-cli sync", + "test": "cross-env BABEL_ENV=test jest", + "test:e2e": "cross-env BABEL_ENV=test jest --testPathPattern=e2e --testPathIgnorePatterns='examples,/packages/components/,/packages/react/'" + }, + "resolutions": { + "react": "~16.9.0", + "react-dom": "~16.9.0", + "react-is": "~16.9.0", + "react-test-renderer": "~16.9.0" + }, + "devDependencies": { + "@babel/core": "^7.10.0", + "@babel/plugin-proposal-class-properties": "^7.7.4", + "@babel/plugin-proposal-export-default-from": "^7.7.4", + "@babel/plugin-proposal-export-namespace-from": "^7.7.4", + "@babel/plugin-transform-runtime": "^7.10.0", + "@babel/preset-env": "^7.10.0", + "@babel/preset-react": "^7.10.0", + "@babel/runtime": "^7.10.0", + "@commitlint/cli": "^8.3.5",`} + + + + {` "scripts": { + "build": "lerna run build --stream --prefix --npm-client yarn", + "ci-check": "carbon-cli ci-check", + "clean": "lerna run clean && lerna clean --yes && rimraf node_modules", + "doctoc": "doctoc --title '## Table of Contents'", + "format": "prettier --write '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**'", + "format:diff": "prettier --list-different '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**' '!packages/components/**'", + "lint": "eslint actions config codemods packages", + "lint:styles": "stylelint '**/*.{css,scss}' --report-needless-disables --report-invalid-scope-disables", + "sync": "carbon-cli sync", + "test": "cross-env BABEL_ENV=test jest", + "test:e2e": "cross-env BABEL_ENV=test jest --testPathPattern=e2e --testPathIgnorePatterns='examples,/packages/components/,/packages/react/'" + }, + "resolutions": { + "react": "~16.9.0", + "react-dom": "~16.9.0", + "react-is": "~16.9.0", + "react-test-renderer": "~16.9.0" + }, + "devDependencies": { + "@babel/core": "^7.10.0", + "@babel/plugin-proposal-class-properties": "^7.7.4", + "@babel/plugin-proposal-export-default-from": "^7.7.4", + "@babel/plugin-proposal-export-namespace-from": "^7.7.4", + "@babel/plugin-transform-runtime": "^7.10.0", + "@babel/preset-env": "^7.10.0", + "@babel/preset-react": "^7.10.0", + "@babel/runtime": "^7.10.0", + "@commitlint/cli": "^8.3.5",`} + + + + {` "scripts": { + "build": "lerna run build --stream --prefix --npm-client yarn", + "ci-check": "carbon-cli ci-check", + "clean": "lerna run clean && lerna clean --yes && rimraf node_modules", + "doctoc": "doctoc --title '## Table of Contents'", + "format": "prettier --write '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**'", + "format:diff": "prettier --list-different '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd}/**' '!packages/components/**'", + "lint": "eslint actions config codemods packages", + "lint:styles": "stylelint '**/*.{css,scss}' --report-needless-disables --report-invalid-scope-disables", + "sync": "carbon-cli sync", + "test": "cross-env BABEL_ENV=test jest", + "test:e2e": "cross-env BABEL_ENV=test jest --testPathPattern=e2e --testPathIgnorePatterns='examples,/packages/components/,/packages/react/'" + }, + "resolutions": { + "react": "~16.9.0", + "react-dom": "~16.9.0", + "react-is": "~16.9.0", + "react-test-renderer": "~16.9.0" + }, + "devDependencies": { + "@babel/core": "^7.10.0", + "@babel/plugin-proposal-class-properties": "^7.7.4", + "@babel/plugin-proposal-export-default-from": "^7.7.4", + "@babel/plugin-proposal-export-namespace-from": "^7.7.4", + "@babel/plugin-transform-runtime": "^7.10.0", + "@babel/preset-env": "^7.10.0", + "@babel/preset-react": "^7.10.0", + "@babel/runtime": "^7.10.0", + "@commitlint/cli": "^8.3.5",`} + + + + + ); +}; + +export const singlelineWithLayer = () => { + return ( + <> + + yarn add carbon-components@latest carbon-components-react@latest + @carbon/icons-react@latest carbon-icons@latest + + + + yarn add carbon-components@latest carbon-components-react@latest + @carbon/icons-react@latest carbon-icons@latest + + + + yarn add carbon-components@latest carbon-components-react@latest + @carbon/icons-react@latest carbon-icons@latest + + + + + ); +}; + export const skeleton = () => (
diff --git a/packages/carbon-react/src/components/ComboBox/ComboBox.stories.js b/packages/carbon-react/src/components/ComboBox/ComboBox.stories.js index 0b997e2db9d7..5203768c6986 100644 --- a/packages/carbon-react/src/components/ComboBox/ComboBox.stories.js +++ b/packages/carbon-react/src/components/ComboBox/ComboBox.stories.js @@ -7,6 +7,7 @@ import React from 'react'; import { ComboBox } from 'carbon-components-react'; +import { Layer } from '../Layer'; const items = [ { @@ -54,3 +55,39 @@ export const Combobox = () => ( />
); + +export const withLayer = () => ( +
+ {}} + id="carbon-combobox" + items={items} + itemToString={(item) => (item ? item.text : '')} + placeholder="Filter..." + titleText="First Layer" + helperText="Combobox helper text" + /> + + {}} + id="carbon-combobox" + items={items} + itemToString={(item) => (item ? item.text : '')} + placeholder="Filter..." + titleText="Second Layer" + helperText="Combobox helper text" + /> + + {}} + id="carbon-combobox" + items={items} + itemToString={(item) => (item ? item.text : '')} + placeholder="Filter..." + titleText="Third Layer" + helperText="Combobox helper text" + /> + + +
+); diff --git a/packages/carbon-react/src/components/ContentSwitcher/ContentSwitcher.stories.js b/packages/carbon-react/src/components/ContentSwitcher/ContentSwitcher.stories.js index efdeef12bb1b..82daf616a49a 100644 --- a/packages/carbon-react/src/components/ContentSwitcher/ContentSwitcher.stories.js +++ b/packages/carbon-react/src/components/ContentSwitcher/ContentSwitcher.stories.js @@ -7,6 +7,7 @@ import React from 'react'; import { ContentSwitcher, Switch } from 'carbon-components-react'; +import { Layer } from '../Layer'; export default { title: 'Components/ContentSwitcher', @@ -27,3 +28,29 @@ export const Default = () => ( ); + +export const withLayer = () => { + return ( + <> + {}}> + + + + + + {}}> + + + + + + {}}> + + + + + + + + ); +}; diff --git a/packages/carbon-react/src/components/DatePicker/DatePicker.stories.js b/packages/carbon-react/src/components/DatePicker/DatePicker.stories.js index c82738966093..bfb80349c536 100644 --- a/packages/carbon-react/src/components/DatePicker/DatePicker.stories.js +++ b/packages/carbon-react/src/components/DatePicker/DatePicker.stories.js @@ -12,6 +12,7 @@ import { DatePickerInput, DatePickerSkeleton, } from 'carbon-components-react'; +import { Layer } from '../Layer'; // const patterns = { // 'Short (d{1,2}/d{4})': '\\d{1,2}/\\d{4}', @@ -108,6 +109,117 @@ export const RangeWithCalendar = () => { ); }; +export const SimpleWithLayer = () => { + return ( + <> + + + + + + + + + + + + + + + ); +}; + +export const SingleWithCalendarWithLayer = () => { + return ( + <> + + + + + + + + + + + + + + + ); +}; + +export const RangeWithCalendarWithLayer = () => { + return ( + <> + + + + + + + + + + + + + + + + + + ); +}; + /* eslint-disable react/prop-types */ export const DatePickerPlayground = () => ( diff --git a/packages/carbon-react/src/components/Dropdown/Dropdown.stories.js b/packages/carbon-react/src/components/Dropdown/Dropdown.stories.js index 06fb5251c320..92ae3ab55f0d 100644 --- a/packages/carbon-react/src/components/Dropdown/Dropdown.stories.js +++ b/packages/carbon-react/src/components/Dropdown/Dropdown.stories.js @@ -7,6 +7,7 @@ import React from 'react'; import { Dropdown, DropdownSkeleton } from 'carbon-components-react'; +import { Layer } from '../Layer'; const items = [ { @@ -73,6 +74,72 @@ export const Inline = () => ( ); +export const withLayer = () => ( +
+ (item ? item.text : '')} + /> + + (item ? item.text : '')} + /> + + (item ? item.text : '')} + /> + + +
+); + +export const InlineWithLayer = () => ( +
+ (item ? item.text : '')} + /> + + (item ? item.text : '')} + /> + + (item ? item.text : '')} + /> + + +
+); + export const Skeleton = () => (
diff --git a/packages/carbon-react/src/components/Grid/Grid.stories.scss b/packages/carbon-react/src/components/Grid/Grid.stories.scss index 734f3e73056e..6db1000777c2 100644 --- a/packages/carbon-react/src/components/Grid/Grid.stories.scss +++ b/packages/carbon-react/src/components/Grid/Grid.stories.scss @@ -2,54 +2,54 @@ @use '@carbon/styles/scss/type' as *; // Grid modes -.bx--css-grid { +.cds--css-grid { background-color: $blue-20; outline: 1px dashed $blue-40; } -.bx--css-grid p { +.cds--css-grid p { @include type-style('code-02'); } -.bx--css-grid p:first-of-type { +.cds--css-grid p:first-of-type { //messing up progress indicator stories margin-top: 0; } -.bx--css-grid.bx--css-grid--narrow { +.cds--css-grid.cds--css-grid--narrow { background-color: $teal-20; outline: 1px dashed $teal-40; } -.bx--css-grid.bx--css-grid--condensed { +.cds--css-grid.cds--css-grid--condensed { background-color: $purple-20; outline: 1px dashed $purple-40; } // Only use background for subgrid example, not other subgrids in "mixed modes" story or others -.bx--subgrid.example { +.cds--subgrid.example { background-color: $green-20; } // Columns -.bx--css-grid > [class*='col'], -.bx--subgrid > [class*='col'] { +.cds--css-grid > [class*='col'], +.cds--subgrid > [class*='col'] { min-height: 80px; } -.bx--css-grid > [class*='col'] { +.cds--css-grid > [class*='col'] { background: $blue-10; } -.bx--subgrid > [class*='col'] { +.cds--subgrid > [class*='col'] { background: $green-10; outline: 1px dashed $green-30; } -.bx--css-grid.bx--css-grid--narrow > [class*='col'] { +.cds--css-grid.cds--css-grid--narrow > [class*='col'] { background: $teal-10; } -.bx--css-grid.bx--css-grid--condensed > [class*='col'] { +.cds--css-grid.cds--css-grid--condensed > [class*='col'] { background: $purple-10; } diff --git a/packages/carbon-react/src/components/MultiSelect/MultiSelect.stories.js b/packages/carbon-react/src/components/MultiSelect/MultiSelect.stories.js index 70b0afc23cb2..d30f81f1ca0b 100644 --- a/packages/carbon-react/src/components/MultiSelect/MultiSelect.stories.js +++ b/packages/carbon-react/src/components/MultiSelect/MultiSelect.stories.js @@ -7,6 +7,7 @@ import React from 'react'; import { MultiSelect } from 'carbon-components-react'; +import { Layer } from '../Layer'; const items = [ { @@ -19,7 +20,8 @@ const items = [ }, { id: 'downshift-1-item-2', - text: 'Option 3', + text: 'Option 3 - a disabled item', + disabled: true, }, { id: 'downshift-1-item-3', @@ -94,3 +96,79 @@ export const _Filterable = () => {
); }; + +export const withLayer = () => { + return ( +
+ (item ? item.text : '')} + selectionFeedback="top-after-reopen" + /> + + (item ? item.text : '')} + selectionFeedback="top-after-reopen" + /> + + (item ? item.text : '')} + selectionFeedback="top-after-reopen" + /> + + +
+ ); +}; + +export const _FilterableWithLayer = () => { + return ( +
+ (item ? item.text : '')} + placeholder="Filter" + selectionFeedback="top-after-reopen" + /> + + (item ? item.text : '')} + placeholder="Filter" + selectionFeedback="top-after-reopen" + /> + + (item ? item.text : '')} + placeholder="Filter" + selectionFeedback="top-after-reopen" + /> + + +
+ ); +}; diff --git a/packages/carbon-react/src/components/NumberInput/NumberInput.stories.js b/packages/carbon-react/src/components/NumberInput/NumberInput.stories.js index b403c8622861..8109f350e78a 100644 --- a/packages/carbon-react/src/components/NumberInput/NumberInput.stories.js +++ b/packages/carbon-react/src/components/NumberInput/NumberInput.stories.js @@ -7,6 +7,7 @@ import React from 'react'; import { NumberInput, NumberInputSkeleton } from 'carbon-components-react'; +import { Layer } from '../Layer'; export default { title: 'Components/NumberInput', @@ -33,6 +34,20 @@ export const Default = () => { return ; }; +export const withLayer = () => { + return ( + <> + + + + + + + + + ); +}; + export const Skeleton = () => (
diff --git a/packages/carbon-react/src/components/Overflow/OverflowMenu.stories.js b/packages/carbon-react/src/components/Overflow/OverflowMenu.stories.js index 53d22796348d..b0b46cbf9538 100644 --- a/packages/carbon-react/src/components/Overflow/OverflowMenu.stories.js +++ b/packages/carbon-react/src/components/Overflow/OverflowMenu.stories.js @@ -7,6 +7,7 @@ import { OverflowMenu, OverflowMenuItem } from 'carbon-components-react'; import React from 'react'; +import { Layer } from '../Layer'; export default { title: 'Components/OverflowMenu', @@ -23,3 +24,35 @@ export const Default = () => { ); }; + +export const withLayer = () => { + return ( + <> + + + + + + + + + + + + + + + + + + + + + + + + + + + ); +}; diff --git a/packages/carbon-react/src/components/Search/Search.stories.js b/packages/carbon-react/src/components/Search/Search.stories.js index aca667e6aa2e..a99ab03d57d0 100644 --- a/packages/carbon-react/src/components/Search/Search.stories.js +++ b/packages/carbon-react/src/components/Search/Search.stories.js @@ -7,6 +7,7 @@ import { Search, ExpandableSearch } from 'carbon-components-react'; import React from 'react'; +import { Layer } from '../Layer'; export default { title: 'Components/Search' }; @@ -32,3 +33,76 @@ export const Expandable = () => ( onKeyDown={() => {}} /> ); + +export const withLayer = () => { + return ( + <> + {}} + onKeyDown={() => {}} + /> + + {}} + onKeyDown={() => {}} + /> + + {}} + onKeyDown={() => {}} + /> + + + + ); +}; + +export const ExpandableWithLayer = () => { + return ( + <> + {}} + onKeyDown={() => {}} + /> + + {}} + onKeyDown={() => {}} + /> + + {}} + onKeyDown={() => {}} + /> + + + + ); +}; diff --git a/packages/carbon-react/src/components/Select/Select.stories.js b/packages/carbon-react/src/components/Select/Select.stories.js index 057fb8ff05a7..779e3497c1ae 100644 --- a/packages/carbon-react/src/components/Select/Select.stories.js +++ b/packages/carbon-react/src/components/Select/Select.stories.js @@ -12,6 +12,7 @@ import { SelectItemGroup, SelectSkeleton, } from 'carbon-components-react'; +import { Layer } from '../Layer'; export default { title: 'Components/Select', @@ -91,3 +92,60 @@ export const _Skeleton = () => (
); + +export const withLayer = () => { + return ( + <> + + + + + + + + + ); +}; diff --git a/packages/carbon-react/src/components/Slider/Slider.stories.js b/packages/carbon-react/src/components/Slider/Slider.stories.js index b968c3d39bc5..802a63d55843 100644 --- a/packages/carbon-react/src/components/Slider/Slider.stories.js +++ b/packages/carbon-react/src/components/Slider/Slider.stories.js @@ -11,6 +11,7 @@ import React, { useState } from 'react'; // import { withKnobs, boolean, number, text } from '@storybook/addon-knobs'; import { Slider, SliderSkeleton } from '.'; // import { sliderValuePropSync } from '../../../../react/src/internal/FeatureFlags'; +import { Layer } from '../Layer'; import mdx from './Slider.mdx'; export default { @@ -63,4 +64,90 @@ export const ControlledSlider = () => { ); }; +export const withLayer = () => { + return ( + <> + + + + + + + + + ); +}; + +export const ControlledSliderWithLayer = () => { + const [val, setVal] = useState(87); + return ( + <> + + setVal(value)} + /> +

{val}

+ + + setVal(value)} + /> +

{val}

+ + + setVal(value)} + /> +

{val}

+
+
+ + ); +}; + export const Skeleton = () => ; diff --git a/packages/carbon-react/src/components/Tabs/Tabs.stories.js b/packages/carbon-react/src/components/Tabs/Tabs.stories.js index 08482fdb9108..4e4741d3288f 100644 --- a/packages/carbon-react/src/components/Tabs/Tabs.stories.js +++ b/packages/carbon-react/src/components/Tabs/Tabs.stories.js @@ -7,9 +7,18 @@ import React from 'react'; import { Button, Tab, Tabs, TabsSkeleton } from '../Tabs'; +import { unstable_FeatureFlags as FeatureFlags } from 'carbon-components-react'; +import { Layer } from '../Layer'; export default { title: 'Components/Tabs', + decorators: [ + (Story) => ( + + + + ), + ], parameters: { component: Tabs, subcomponents: { @@ -42,3 +51,77 @@ export const Default = () => ( ); + +export const withLayer = () => { + return ( + <> + + +

First Layer. Content for first tab goes here.

+
+ +

Content for second tab goes here.

+ +
+ +

Content for third tab goes here.

+
+ +

Content for fourth tab goes here.

+
+ Custom Label}> +

Content for fifth tab goes here.

+
+
+ + + +

Second Layer. Content for first tab goes here.

+
+ +

Content for second tab goes here.

+ +
+ +

Content for third tab goes here.

+
+ +

Content for fourth tab goes here.

+
+ Custom Label}> +

Content for fifth tab goes here.

+
+
+ + + +

Third Layer. Content for first tab goes here.

+
+ +

Content for second tab goes here.

+ +
+ +

Content for third tab goes here.

+
+ +

Content for fourth tab goes here.

+
+ Custom Label}> +

Content for fifth tab goes here.

+
+
+
+
+ + ); +}; diff --git a/packages/carbon-react/src/components/TextArea/TextArea.stories.js b/packages/carbon-react/src/components/TextArea/TextArea.stories.js index 001a32aba115..3992c2be6984 100644 --- a/packages/carbon-react/src/components/TextArea/TextArea.stories.js +++ b/packages/carbon-react/src/components/TextArea/TextArea.stories.js @@ -7,6 +7,7 @@ import React from 'react'; import { TextArea, TextAreaSkeleton } from 'carbon-components-react'; +import { Layer } from '../Layer'; export default { title: 'Components/TextArea', @@ -29,4 +30,39 @@ export const Default = () => ( /> ); +export const withLayer = () => { + return ( + <> +