carbon-react 87.5.0 → 89.2.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/date/date.component.js +1 -2
  8. package/lib/components/date-range/date-range.component.js +1 -2
  9. package/lib/components/decimal/decimal.component.js +1 -2
  10. package/lib/components/detail/detail.component.js +2 -3
  11. package/lib/components/drag-and-drop/custom-drag-layer/custom-drag-layer.js +2 -3
  12. package/lib/components/drag-and-drop/draggable-context/draggable-context.js +10 -11
  13. package/lib/components/drag-and-drop/with-drag/with-drag.js +4 -6
  14. package/lib/components/drag-and-drop/with-drop/with-drop.js +4 -6
  15. package/lib/components/flat-table/flat-table-row/flat-table-row.component.js +2 -1
  16. package/lib/components/heading/heading.component.js +4 -8
  17. package/lib/components/i18n-provider/i18n-provider.d.ts +3 -94
  18. package/lib/components/icon/icon.component.js +4 -3
  19. package/lib/components/mount-in-app/mount-in-app.js +2 -5
  20. package/lib/components/multi-step-wizard/multi-step-wizard.js +14 -17
  21. package/lib/components/multi-step-wizard/step/step.js +6 -9
  22. package/lib/components/pod/pod.component.js +185 -390
  23. package/lib/components/profile/profile.component.js +47 -113
  24. package/lib/components/profile/profile.d.ts +0 -2
  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
@@ -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": "87.5.0",
3
+ "version": "89.2.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;