+
+
+
+
+ >
+ );
+};
diff --git a/packages/carbon-react/src/components/TimePicker/TimePicker.stories.js b/packages/carbon-react/src/components/TimePicker/TimePicker.stories.js
index 34ba3e473bb2..96ef1e5ebdc1 100644
--- a/packages/carbon-react/src/components/TimePicker/TimePicker.stories.js
+++ b/packages/carbon-react/src/components/TimePicker/TimePicker.stories.js
@@ -11,6 +11,7 @@ import {
TimePickerSelect,
SelectItem,
} from 'carbon-components-react';
+import { Layer } from '../Layer';
// const props = {
// timepicker: () => ({
@@ -77,3 +78,44 @@ export const Default = () => {
);
};
+
+export const withLayer = () => {
+ return (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ );
+};
diff --git a/packages/react/src/components/ContentSwitcher/ContentSwitcher.js b/packages/react/src/components/ContentSwitcher/ContentSwitcher.js
index cd044d232ea2..85aa2b0a70cc 100644
--- a/packages/react/src/components/ContentSwitcher/ContentSwitcher.js
+++ b/packages/react/src/components/ContentSwitcher/ContentSwitcher.js
@@ -8,9 +8,9 @@
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
+import deprecate from '../../prop-types/deprecate';
import { composeEventHandlers } from '../../tools/events';
import { getNextIndex, matches, keys } from '../../internal/keyboard';
-import deprecate from '../../prop-types/deprecate';
import { PrefixContext } from '../../internal/usePrefix';
export default class ContentSwitcher extends React.Component {
diff --git a/packages/react/src/components/ListBox/ListBox.js b/packages/react/src/components/ListBox/ListBox.js
index 0fe99aa963eb..29f3345b3885 100644
--- a/packages/react/src/components/ListBox/ListBox.js
+++ b/packages/react/src/components/ListBox/ListBox.js
@@ -112,7 +112,8 @@ ListBox.propTypes = {
isOpen: PropTypes.bool,
/**
- * Specify if the control should use the light variant
+ * `true` to use the light version. For use on $ui-01 backgrounds only.
+ * Don't use this to make tile background color same as container background color.
*/
light: PropTypes.bool,
diff --git a/packages/react/src/components/RadioTile/RadioTile.js b/packages/react/src/components/RadioTile/RadioTile.js
index 3826de9dec2b..4dbd06a81392 100644
--- a/packages/react/src/components/RadioTile/RadioTile.js
+++ b/packages/react/src/components/RadioTile/RadioTile.js
@@ -120,7 +120,8 @@ RadioTile.propTypes = {
id: PropTypes.string,
/**
- * `true` to use the light version.
+ * `true` to use the light version. For use on $ui-01 backgrounds only.
+ * Don't use this to make tile background color same as container background color.
*/
light: PropTypes.bool,
diff --git a/packages/react/src/components/Select/Select.js b/packages/react/src/components/Select/Select.js
index bf31c3ace004..c85cd368dfee 100644
--- a/packages/react/src/components/Select/Select.js
+++ b/packages/react/src/components/Select/Select.js
@@ -218,7 +218,8 @@ Select.propTypes = {
labelText: PropTypes.node,
/**
- * Specify whether you want the light version of this control
+ * `true` to use the light version. For use on $ui-01 backgrounds only.
+ * Don't use this to make tile background color same as container background color.
*/
light: PropTypes.bool,
diff --git a/packages/react/src/components/TextArea/TextArea.js b/packages/react/src/components/TextArea/TextArea.js
index 7382c174bbad..ea3b76c23348 100644
--- a/packages/react/src/components/TextArea/TextArea.js
+++ b/packages/react/src/components/TextArea/TextArea.js
@@ -171,7 +171,8 @@ TextArea.propTypes = {
labelText: PropTypes.node.isRequired,
/**
- * Specify whether you want the light version of this control
+ * `true` to use the light version. For use on $ui-01 backgrounds only.
+ * Don't use this to make tile background color same as container background color.
*/
light: PropTypes.bool,
diff --git a/packages/react/src/components/TextInput/ControlledPasswordInput.js b/packages/react/src/components/TextInput/ControlledPasswordInput.js
index c62434e654dd..17a11ac87028 100644
--- a/packages/react/src/components/TextInput/ControlledPasswordInput.js
+++ b/packages/react/src/components/TextInput/ControlledPasswordInput.js
@@ -208,7 +208,8 @@ ControlledPasswordInput.propTypes = {
labelText: PropTypes.node.isRequired,
/**
- * Specify light version or default version of this control
+ * `true` to use the light version. For use on $ui-01 backgrounds only.
+ * Don't use this to make tile background color same as container background color.
*/
light: PropTypes.bool,
diff --git a/packages/react/src/components/TextInput/PasswordInput.js b/packages/react/src/components/TextInput/PasswordInput.js
index c593fb0c6f26..6a9e0134ba02 100644
--- a/packages/react/src/components/TextInput/PasswordInput.js
+++ b/packages/react/src/components/TextInput/PasswordInput.js
@@ -264,7 +264,8 @@ PasswordInput.propTypes = {
labelText: PropTypes.node.isRequired,
/**
- * Specify light version or default version of this control
+ * `true` to use the light version. For use on $ui-01 backgrounds only.
+ * Don't use this to make tile background color same as container background color.
*/
light: PropTypes.bool,
diff --git a/packages/react/src/components/TextInput/TextInput.js b/packages/react/src/components/TextInput/TextInput.js
index 8ce8d7b0f3e9..fc943e010f58 100644
--- a/packages/react/src/components/TextInput/TextInput.js
+++ b/packages/react/src/components/TextInput/TextInput.js
@@ -235,7 +235,8 @@ TextInput.propTypes = {
labelText: PropTypes.node.isRequired,
/**
- * `true` to use the light version.
+ * `true` to use the light version. For use on $ui-01 backgrounds only.
+ * Don't use this to make tile background color same as container background color.
*/
light: PropTypes.bool,
diff --git a/packages/react/src/components/Tile/Tile.js b/packages/react/src/components/Tile/Tile.js
index d10221dbb688..ee3d2d4ab023 100644
--- a/packages/react/src/components/Tile/Tile.js
+++ b/packages/react/src/components/Tile/Tile.js
@@ -316,6 +316,7 @@ export function SelectableTile(props) {
>
);
}
+
SelectableTile.defaultProps = {
value: 'value',
title: 'title',
@@ -326,6 +327,7 @@ SelectableTile.defaultProps = {
onChange: () => {},
onKeyDown: () => {},
};
+
SelectableTile.propTypes = {
/**
* The child nodes.
diff --git a/packages/react/src/components/TimePicker/TimePicker.js b/packages/react/src/components/TimePicker/TimePicker.js
index 46d7e8e980ce..774e9c90f8b1 100644
--- a/packages/react/src/components/TimePicker/TimePicker.js
+++ b/packages/react/src/components/TimePicker/TimePicker.js
@@ -59,7 +59,8 @@ export default class TimePicker extends Component {
labelText: PropTypes.node,
/**
- * `true` to use the light version.
+ * `true` to use the light version. For use on $ui-01 backgrounds only.
+ * Don't use this to make tile background color same as container background color.
*/
light: PropTypes.bool,