From 22cdc872c7824af511e09b38ea029715b1a49dd3 Mon Sep 17 00:00:00 2001 From: Abbey Hart Date: Thu, 21 Oct 2021 14:11:12 -0500 Subject: [PATCH] feat(react,carbon-react): add layer stories (#9838) * feat(react,carbon-react): add layer stories and deprecate light prop * chore(react): update deprecation message for lsitbox light prop * chore(react): remove deprecation warning for light prop * chore(react): remove accidental change to content switcher Co-authored-by: Alessandra Davila Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .../src/components/Select/Select.stories.js | 58 +++++++ .../components/TextArea/TextArea.stories.js | 36 ++++ .../components/TextInput/TextInput.stories.js | 31 +++- .../src/components/Tile/Tile.stories.js | 156 ++++++++++++++++++ .../TimePicker/TimePicker.stories.js | 42 +++++ .../ContentSwitcher/ContentSwitcher.js | 2 +- .../react/src/components/ListBox/ListBox.js | 3 +- .../src/components/RadioTile/RadioTile.js | 3 +- .../react/src/components/Select/Select.js | 3 +- .../react/src/components/TextArea/TextArea.js | 3 +- .../TextInput/ControlledPasswordInput.js | 3 +- .../src/components/TextInput/PasswordInput.js | 3 +- .../src/components/TextInput/TextInput.js | 3 +- packages/react/src/components/Tile/Tile.js | 2 + .../src/components/TimePicker/TimePicker.js | 3 +- 15 files changed, 341 insertions(+), 10 deletions(-) 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/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 ( + <> +