carbon-react 88.0.0 → 89.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/lib/__internal__/input/input.component.js +2 -1
  2. package/lib/__spec_helper__/mock-date-helper.js +2 -1
  3. package/lib/components/action-toolbar/action-toolbar.component.js +6 -7
  4. package/lib/components/app-wrapper/app-wrapper.component.js +2 -5
  5. package/lib/components/configurable-items/configurable-item-row/configurable-item-row.component.js +6 -8
  6. package/lib/components/configurable-items/configurable-items.component.js +1 -2
  7. package/lib/components/content/content.component.js +1 -1
  8. package/lib/components/content/content.d.ts +1 -1
  9. package/lib/components/date/date.component.js +1 -2
  10. package/lib/components/date-range/date-range.component.js +1 -2
  11. package/lib/components/decimal/decimal.component.js +1 -2
  12. package/lib/components/detail/detail.component.js +2 -3
  13. package/lib/components/drag-and-drop/custom-drag-layer/custom-drag-layer.js +2 -3
  14. package/lib/components/drag-and-drop/draggable-context/draggable-context.js +10 -11
  15. package/lib/components/drag-and-drop/with-drag/with-drag.js +4 -6
  16. package/lib/components/drag-and-drop/with-drop/with-drop.js +4 -6
  17. package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +2 -1
  18. package/lib/components/heading/heading.component.js +4 -8
  19. package/lib/components/i18n-provider/i18n-provider.d.ts +3 -94
  20. package/lib/components/icon/icon.component.js +4 -3
  21. package/lib/components/mount-in-app/mount-in-app.js +2 -5
  22. package/lib/components/multi-step-wizard/multi-step-wizard.js +14 -17
  23. package/lib/components/multi-step-wizard/step/step.js +6 -9
  24. package/lib/components/pod/pod.component.js +185 -390
  25. package/lib/components/scrollable-list/scrollable-list.component.js +2 -3
  26. package/lib/components/show-edit-pod/show-edit-pod.component.js +1 -3
  27. package/lib/components/sidebar/sidebar.component.js +2 -1
  28. package/lib/components/table/table.component.js +1 -3
  29. package/lib/components/text-editor/text-editor.component.js +2 -1
  30. package/lib/components/textarea/textarea.component.js +1 -3
  31. package/lib/components/{pod/pod-manager.component.js → tile-select/__internal__/accordion/accordion.component.js} +30 -30
  32. package/lib/components/tile-select/__internal__/accordion/accordion.d.ts +13 -0
  33. package/lib/components/tile-select/__internal__/accordion/accordion.style.js +30 -0
  34. package/lib/components/tile-select/__internal__/accordion/index.js +15 -0
  35. package/lib/components/tile-select/tile-select.component.js +39 -10
  36. package/lib/components/tile-select/tile-select.d.ts +6 -0
  37. package/lib/components/tile-select/tile-select.style.js +17 -1
  38. package/lib/locales/en-gb.d.ts +5 -0
  39. package/lib/locales/en-gb.js +2 -3
  40. package/lib/locales/index.d.ts +2 -0
  41. package/lib/locales/locale.d.ts +96 -0
  42. package/lib/patterns/configurable-items/configurable-items-content/configurable-items-content.js +2 -3
  43. package/lib/patterns/configurable-items/configurable-items.js +2 -2
  44. package/lib/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.js +2 -2
  45. package/package.json +8 -6
  46. package/lib/components/pod/pod-context.js +0 -12
  47. package/lib/components/pod/pod-manager.d.ts +0 -9
@@ -65,7 +65,8 @@ const TextEditor = /*#__PURE__*/_react.default.forwardRef(({
65
65
  const [inlines, setInlines] = (0, _react.useState)([]);
66
66
  const [activeInlines, setActiveInlines] = (0, _react.useState)({});
67
67
  const [focusToolbar, setFocusToolbar] = (0, _react.useState)(false);
68
- const editor = ref || (0, _react.useRef)();
68
+ const editorRef = (0, _react.useRef)();
69
+ const editor = ref || editorRef;
69
70
  const contentLength = (0, _utils.getContent)(value).getPlainText("").length;
70
71
  const moveCursor = (0, _react.useRef)(contentLength > 0);
71
72
  const lastKeyPressed = (0, _react.useRef)();
@@ -245,9 +245,7 @@ let Textarea = /*#__PURE__*/function (_React$Component) {
245
245
  }(_react.default.Component);
246
246
 
247
247
  exports.OriginalTextarea = Textarea;
248
-
249
- _defineProperty(Textarea, "contextType", _i18nContext.default);
250
-
248
+ Textarea.contextType = _i18nContext.default;
251
249
  Textarea.propTypes = { ...marginPropTypes,
252
250
 
253
251
  /** id of the input */
@@ -9,9 +9,9 @@ var _react = _interopRequireWildcard(require("react"));
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
- var _podContext = _interopRequireDefault(require("./pod-context"));
12
+ var _accordion = require("./accordion.style");
13
13
 
14
- var _logger = _interopRequireDefault(require("../../utils/logger/logger"));
14
+ var _useResizeObserver = _interopRequireDefault(require("../../../../hooks/__internal__/useResizeObserver"));
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
@@ -19,38 +19,38 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
19
19
 
20
20
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
21
 
22
- let deprecatedWarnTriggered = false;
23
-
24
- const PodManager = ({
25
- children
22
+ const Accordion = ({
23
+ children,
24
+ expanded,
25
+ contentId,
26
+ controlId
26
27
  }) => {
27
- if (!deprecatedWarnTriggered) {
28
- deprecatedWarnTriggered = true; // eslint-disable-next-line max-len
29
-
30
- _logger.default.deprecate("`PodManager` component is deprecated and will soon be removed.");
31
- }
32
-
33
- const podManagerRef = (0, _react.useRef)();
34
- const [heightOfTheLongestPod, setHeightOfTheLongestPod] = (0, _react.useState)();
28
+ const [contentHeight, setContentHeight] = (0, _react.useState)(0);
29
+ const contentRef = (0, _react.useRef)(null);
30
+ (0, _useResizeObserver.default)(contentRef, () => {
31
+ setContentHeight(contentRef.current.scrollHeight);
32
+ });
35
33
  (0, _react.useEffect)(() => {
36
- const allHeights = [];
37
- const allPodNodeList = podManagerRef.current.querySelectorAll(`[data-component="pod"]`);
38
- const allPodsArray = Array.from(allPodNodeList);
39
- allPodsArray.map(el => allHeights.push(el.scrollHeight));
40
- const tallerValue = Math.max(...allHeights);
41
- setHeightOfTheLongestPod(tallerValue);
42
- }, []);
43
- return /*#__PURE__*/_react.default.createElement(_podContext.default.Provider, {
44
- value: {
45
- heightOfTheLongestPod
46
- }
47
- }, /*#__PURE__*/_react.default.createElement("div", {
48
- ref: podManagerRef
34
+ setContentHeight(contentRef.current.scrollHeight);
35
+ }, [contentRef]);
36
+ return /*#__PURE__*/_react.default.createElement(_accordion.StyledContentContainer, {
37
+ "aria-expanded": expanded,
38
+ isExpanded: expanded,
39
+ maxHeight: contentHeight
40
+ }, /*#__PURE__*/_react.default.createElement(_accordion.StyledContent, {
41
+ role: "region",
42
+ "data-element": "tile-select-accordion-content",
43
+ ref: contentRef,
44
+ id: contentId,
45
+ "aria-labelledby": controlId
49
46
  }, children));
50
47
  };
51
48
 
52
- PodManager.propTypes = {
53
- children: _propTypes.default.node
49
+ Accordion.propTypes = {
50
+ children: _propTypes.default.node.isRequired,
51
+ expanded: _propTypes.default.bool,
52
+ contentId: _propTypes.default.string,
53
+ controlId: _propTypes.default.string
54
54
  };
55
- var _default = PodManager;
55
+ var _default = Accordion;
56
56
  exports.default = _default;
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import { SpaceProps } from "styled-system";
3
+
4
+ export interface AccordionProps extends SpaceProps {
5
+ children: React.ReactNode;
6
+ expanded?: boolean;
7
+ contentId?: string;
8
+ controlId?: string;
9
+ }
10
+
11
+ declare function Accordion(props: AccordionProps): JSX.Element;
12
+
13
+ export default Accordion;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.StyledContent = exports.StyledContentContainer = void 0;
7
+
8
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
+
10
+ var _accordion = require("../../../accordion/accordion.style");
11
+
12
+ var _base = _interopRequireDefault(require("../../../../style/themes/base"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ const StyledContentContainer = (0, _styledComponents.default)(_accordion.StyledAccordionContentContainer)`
17
+ background-color: ${({
18
+ theme
19
+ }) => theme.tileSelect.hoverBackground};
20
+ `;
21
+ exports.StyledContentContainer = StyledContentContainer;
22
+ const StyledContent = (0, _styledComponents.default)(_accordion.StyledAccordionContent)`
23
+ padding: 24px;
24
+ position: relative;
25
+ z-index: 200;
26
+ `;
27
+ exports.StyledContent = StyledContent;
28
+ StyledContentContainer.defaultProps = {
29
+ theme: _base.default
30
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "default", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _accordion.default;
10
+ }
11
+ });
12
+
13
+ var _accordion = _interopRequireDefault(require("./accordion.component"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -5,30 +5,34 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
8
  var _react = _interopRequireWildcard(require("react"));
11
9
 
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
12
  var _propTypes2 = _interopRequireDefault(require("@styled-system/prop-types"));
13
13
 
14
14
  var _tags = _interopRequireDefault(require("../../utils/helpers/tags/tags"));
15
15
 
16
16
  var _useLocale = _interopRequireDefault(require("../../hooks/__internal__/useLocale"));
17
17
 
18
+ var _guid = _interopRequireDefault(require("../../utils/helpers/guid"));
19
+
18
20
  var _button = _interopRequireDefault(require("../button"));
19
21
 
20
22
  var _box = _interopRequireDefault(require("../box"));
21
23
 
24
+ var _accordion = _interopRequireDefault(require("./__internal__/accordion"));
25
+
22
26
  var _tileSelect = require("./tile-select.style");
23
27
 
24
28
  var _utils = require("../../style/utils");
25
29
 
30
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
+
26
32
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
27
33
 
28
34
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
35
 
30
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
-
32
36
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
33
37
 
34
38
  const marginPropTypes = (0, _utils.filterStyledSystemMarginProps)(_propTypes2.default.space);
@@ -57,6 +61,9 @@ const TileSelect = ({
57
61
  footer,
58
62
  prefixAdornment,
59
63
  additionalInformation,
64
+ accordionContent,
65
+ accordionControl,
66
+ accordionExpanded,
60
67
  ...rest
61
68
  }) => {
62
69
  const l = (0, _useLocale.default)();
@@ -88,6 +95,9 @@ const TileSelect = ({
88
95
  setHasFocus(false);
89
96
  }
90
97
  }, [disabled, hasFocus]);
98
+ const guid = (0, _react.useRef)((0, _guid.default)());
99
+ const contentId = `AccordionContent_${guid.current}`;
100
+ const controlId = `AccordionControl_${guid.current}`;
91
101
  return /*#__PURE__*/_react.default.createElement(_tileSelect.StyledTileSelectContainer, _extends({
92
102
  checked: checked,
93
103
  className: className,
@@ -121,14 +131,21 @@ const TileSelect = ({
121
131
  checked: checked
122
132
  }, /*#__PURE__*/_react.default.createElement(_box.default, {
123
133
  display: "flex",
124
- justifyContent: "space-between"
125
- }, prefixAdornment && /*#__PURE__*/_react.default.createElement(_box.default, {
126
- mr: 3
127
- }, prefixAdornment), /*#__PURE__*/_react.default.createElement(_box.default, {
134
+ justifyContent: "space-between",
135
+ flexDirection: "row-reverse"
136
+ }, (customActionButton || checked) && renderActionButton(), /*#__PURE__*/_react.default.createElement(_box.default, {
128
137
  flexGrow: "1"
129
138
  }, /*#__PURE__*/_react.default.createElement(_tileSelect.StyledTitleContainer, null, title && /*#__PURE__*/_react.default.createElement(_tileSelect.StyledTitle, checkPropTypeIsNode(title), title), subtitle && /*#__PURE__*/_react.default.createElement(_tileSelect.StyledSubtitle, checkPropTypeIsNode(subtitle), subtitle), titleAdornment && /*#__PURE__*/_react.default.createElement(_tileSelect.StyledAdornment, {
130
139
  hasAdditionalInformation: !!additionalInformation
131
- }, titleAdornment)), additionalInformation && /*#__PURE__*/_react.default.createElement("div", null, additionalInformation), /*#__PURE__*/_react.default.createElement(_tileSelect.StyledDescription, checkPropTypeIsNode(description), description), footer && /*#__PURE__*/_react.default.createElement(_tileSelect.StyledFooterWrapper, null, footer)), (customActionButton || checked) && renderActionButton()))));
140
+ }, titleAdornment)), additionalInformation && /*#__PURE__*/_react.default.createElement("div", null, additionalInformation), /*#__PURE__*/_react.default.createElement(_tileSelect.StyledDescription, checkPropTypeIsNode(description), description), footer && /*#__PURE__*/_react.default.createElement(_tileSelect.StyledFooterWrapper, null, footer), accordionContent && accordionControl && /*#__PURE__*/_react.default.createElement(_tileSelect.StyledAccordionFooterWrapper, {
141
+ accordionExpanded: accordionExpanded
142
+ }, accordionControl(controlId, contentId))), prefixAdornment && /*#__PURE__*/_react.default.createElement(_box.default, {
143
+ mr: 3
144
+ }, prefixAdornment))), accordionContent && /*#__PURE__*/_react.default.createElement(_accordion.default, {
145
+ contentId: contentId,
146
+ controlId: controlId,
147
+ expanded: accordionExpanded
148
+ }, accordionContent)));
132
149
  };
133
150
 
134
151
  TileSelect.defaultProps = {
@@ -192,7 +209,19 @@ TileSelect.propTypes = { ...marginPropTypes,
192
209
  prefixAdornment: _propTypes.default.node,
193
210
 
194
211
  /** Component to render additional information row between title and description */
195
- additionalInformation: _propTypes.default.node
212
+ additionalInformation: _propTypes.default.node,
213
+
214
+ /** Components to render in the TileSelect Accordion */
215
+ accordionContent: _propTypes.default.node,
216
+
217
+ /**
218
+ * Render prop to support rendering the control to handle the expanded state of the TileSelect Accordion.
219
+ * `(controlId, contentId) => <Button id={controlId} aria-controls={contentId}>...</Button>`
220
+ */
221
+ accordionControl: _propTypes.default.func,
222
+
223
+ /** Flag to control the open state of TileSelect Accordion */
224
+ accordionExpanded: _propTypes.default.bool
196
225
  };
197
226
  TileSelect.displayName = "TileSelect";
198
227
  var _default = TileSelect;
@@ -38,6 +38,12 @@ export interface TileSelectProps extends MarginProps {
38
38
  prefixAdornment?: React.ReactNode;
39
39
  /** Component to render additional information row between title and description */
40
40
  additionalInformation?: React.ReactNode;
41
+ /** Components to render in the TileSelect Accordion */
42
+ accordionContent?: React.ReactNode;
43
+ /** Callback to toggle expanded state of TileSelect Accordion */
44
+ accordionControl?: (controlId: string, contentId: string) => JSX.Element;
45
+ /** Flag to control the open state of TileSelect Accordion */
46
+ accordionExpanded?: boolean;
41
47
  }
42
48
 
43
49
  declare function TileSelect(props: TileSelectProps): JSX.Element;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.StyledFocusWrapper = exports.StyledFooterWrapper = exports.StyledDeselectWrapper = exports.StyledDescription = exports.StyledAdornment = exports.StyledSubtitle = exports.StyledTitle = exports.StyledTitleContainer = exports.StyledTileSelectInput = exports.StyledTileSelect = exports.StyledTileSelectContainer = exports.StyledGroupDescription = exports.StyledTileSelectFieldset = void 0;
6
+ exports.StyledAccordionFooterWrapper = exports.StyledFocusWrapper = exports.StyledFooterWrapper = exports.StyledDeselectWrapper = exports.StyledDescription = exports.StyledAdornment = exports.StyledSubtitle = exports.StyledTitle = exports.StyledTitleContainer = exports.StyledTileSelectInput = exports.StyledTileSelect = exports.StyledTileSelectContainer = exports.StyledGroupDescription = exports.StyledTileSelectFieldset = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
@@ -131,6 +131,22 @@ const StyledFooterWrapper = _styledComponents.default.div`
131
131
  z-index: 200;
132
132
  `;
133
133
  exports.StyledFooterWrapper = StyledFooterWrapper;
134
+ const StyledAccordionFooterWrapper = _styledComponents.default.div`
135
+ width: fit-content;
136
+ position: relative;
137
+ z-index: 200;
138
+ left: -12px;
139
+
140
+ ${({
141
+ accordionExpanded
142
+ }) => `
143
+ span[data-element="chevron_down"] {
144
+ transition: transform 0.3s;
145
+ ${!accordionExpanded && "transform: rotate(-90deg)"};
146
+ }
147
+ `}
148
+ `;
149
+ exports.StyledAccordionFooterWrapper = StyledAccordionFooterWrapper;
134
150
  const StyledTileSelectInput = (0, _styledComponents.default)(_input.Input)`
135
151
  position: absolute;
136
152
  top: 0;
@@ -0,0 +1,5 @@
1
+ import Locale from ".";
2
+
3
+ declare const EnGb: Locale;
4
+
5
+ export default EnGb;
@@ -3,11 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.isSingular = void 0;
6
+ exports.default = void 0;
7
7
 
8
- const isSingular = count => parseInt(count, 10) === 1;
8
+ const isSingular = count => (typeof count === "string" ? parseInt(count) : count) === 1;
9
9
 
10
- exports.isSingular = isSingular;
11
10
  var _default = {
12
11
  locale: () => "en-GB",
13
12
  actions: {
@@ -0,0 +1,2 @@
1
+ export { default } from "./locale";
2
+ export { default as EnGb } from "./en-gb";
@@ -0,0 +1,96 @@
1
+ interface Locale {
2
+ locale: () => string;
3
+ actions: {
4
+ edit: () => string;
5
+ delete: () => string;
6
+ reset: () => string;
7
+ };
8
+ actionPopover: {
9
+ ariaLabel: () => string;
10
+ };
11
+ actionToolbar: {
12
+ selected: () => string;
13
+ };
14
+ batchSelection: {
15
+ selected: (count: number | string) => string;
16
+ };
17
+ confirm: {
18
+ no: () => string;
19
+ yes: () => string;
20
+ };
21
+ date: {
22
+ formats: {
23
+ inputs: () => [string];
24
+ javascript: () => string;
25
+ };
26
+ };
27
+ errors: {
28
+ messages: {
29
+ formSummary: (
30
+ errors: number,
31
+ warnings: number,
32
+ type: string
33
+ ) => [string, string];
34
+ };
35
+ };
36
+ message: {
37
+ closeButtonAriaLabel: () => string;
38
+ };
39
+ numeralDate: {
40
+ validation: {
41
+ day: () => string;
42
+ month: () => string;
43
+ year: () => string;
44
+ };
45
+ };
46
+ pager: {
47
+ show: () => string;
48
+ records: (count: number | string, showNumber: boolean) => string;
49
+ first: () => string;
50
+ last: () => string;
51
+ next: () => string;
52
+ previous: () => string;
53
+ pageX: () => string;
54
+ ofY: (count: string | number) => string;
55
+ };
56
+ select: {
57
+ actionButtonText: () => string;
58
+ placeholder: () => string;
59
+ noResultsForTerm: (term: string) => string;
60
+ };
61
+ switch: {
62
+ on: () => string;
63
+ off: () => string;
64
+ };
65
+ table: {
66
+ noData: () => string;
67
+ };
68
+ textEditor: {
69
+ tooltipMessages: {
70
+ bold: () => string;
71
+ italic: () => string;
72
+ bulletList: () => string;
73
+ numberList: () => string;
74
+ };
75
+ ariaLabels: {
76
+ bold: () => string;
77
+ italic: () => string;
78
+ bulletList: () => string;
79
+ numberList: () => string;
80
+ };
81
+ };
82
+ titleSelect: {
83
+ deselect: () => string;
84
+ };
85
+ wizards: {
86
+ multiStep: {
87
+ buttons: {
88
+ submit: () => string;
89
+ next: () => string;
90
+ back: () => string;
91
+ };
92
+ };
93
+ };
94
+ }
95
+
96
+ export default Locale;
@@ -87,7 +87,7 @@ let ConfigurableItemsContent = /*#__PURE__*/function (_React$Component) {
87
87
  return ConfigurableItemsContent;
88
88
  }(_react.default.Component);
89
89
 
90
- _defineProperty(ConfigurableItemsContent, "propTypes", {
90
+ ConfigurableItemsContent.propTypes = {
91
91
  /**
92
92
  * The configurable item data.
93
93
  *
@@ -135,7 +135,6 @@ _defineProperty(ConfigurableItemsContent, "propTypes", {
135
135
  * @type {Function}
136
136
  */
137
137
  onSave: _propTypes.default.func.isRequired
138
- });
139
-
138
+ };
140
139
  var _default = ConfigurableItemsContent;
141
140
  exports.default = _default;
@@ -161,7 +161,7 @@ let ConfigurableItemsPattern = /*#__PURE__*/function (_React$Component) {
161
161
  return ConfigurableItemsPattern;
162
162
  }(_react.default.Component);
163
163
 
164
- _defineProperty(ConfigurableItemsPattern, "propTypes", {
164
+ ConfigurableItemsPattern.propTypes = {
165
165
  /**
166
166
  * A custom class name for the component.
167
167
  *
@@ -209,7 +209,7 @@ _defineProperty(ConfigurableItemsPattern, "propTypes", {
209
209
  * @type {Object}
210
210
  */
211
211
  title: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object])
212
- });
212
+ };
213
213
 
214
214
  var _default = (0, _flux.connect)(ConfigurableItemsPattern, _store.default);
215
215
 
@@ -76,10 +76,10 @@ const withUniqueIdProps = WrappedComponent => {
76
76
  return WithUniqueIdProps;
77
77
  }(_react.default.Component);
78
78
 
79
- _defineProperty(WithUniqueIdProps, "propTypes", {
79
+ WithUniqueIdProps.propTypes = {
80
80
  forwardedRef: _propTypes.default.object,
81
81
  id: _propTypes.default.string
82
- });
82
+ };
83
83
 
84
84
  const Component = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
85
85
  return /*#__PURE__*/_react.default.createElement(WithUniqueIdProps, _extends({}, props, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "88.0.0",
3
+ "version": "89.3.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {
@@ -101,14 +101,16 @@
101
101
  "enzyme-adapter-react-16": "^1.14.0",
102
102
  "enzyme-to-json": "^3.4.0",
103
103
  "eslint": "^7.25.0",
104
- "eslint-config-airbnb": "17.0.0",
104
+ "eslint-config-airbnb": "^18.2.0",
105
105
  "eslint-config-prettier": "^6.15.0",
106
106
  "eslint-plugin-cypress": "^2.0.1",
107
- "eslint-plugin-import": "2.13.0",
108
- "eslint-plugin-jsx-a11y": "6.1.1",
107
+ "eslint-plugin-import": "^2.22.0",
108
+ "eslint-plugin-jest": "^24.1.3",
109
+ "eslint-plugin-jest-dom": "^3.6.5",
110
+ "eslint-plugin-jsx-a11y": "^6.3.1",
109
111
  "eslint-plugin-no-unsanitized": "^3.1.4",
110
- "eslint-plugin-react": "7.19.0",
111
- "eslint-plugin-react-hooks": "2.3.0",
112
+ "eslint-plugin-react": "^7.20.3",
113
+ "eslint-plugin-react-hooks": "^4.2.0",
112
114
  "events": "~1.1.1",
113
115
  "flux": "^4.0.1",
114
116
  "husky": "^4.3.6",
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = require("react");
9
-
10
- const PodContext = /*#__PURE__*/(0, _react.createContext)({});
11
- var _default = PodContext;
12
- exports.default = _default;
@@ -1,9 +0,0 @@
1
- import * as React from "react";
2
-
3
- export interface PodManagerProps {
4
- children: React.ReactNode;
5
- }
6
-
7
- declare function PodManager(props: PodManagerProps): JSX.Element;
8
-
9
- export default PodManager;