carbon-react 144.6.0 → 144.7.1

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.
@@ -63,7 +63,6 @@ const HiddenCheckableInput = /*#__PURE__*/React.forwardRef(({
63
63
  "aria-labelledby": ariaLabelledBy,
64
64
  autoFocus: autoFocus,
65
65
  "data-has-autofocus": autoFocus ? true : undefined,
66
- "aria-checked": checked,
67
66
  checked: checked,
68
67
  name: name,
69
68
  role: role || type,
@@ -1,6 +1,7 @@
1
1
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  import React, { useRef } from "react";
3
3
  import PropTypes from "prop-types";
4
+ import Typography from "../typography";
4
5
  import MessageStyle from "./message.style";
5
6
  import TypeIcon from "./__internal__/type-icon/type-icon.component";
6
7
  import MessageContent from "./__internal__/message-content/message-content.component";
@@ -47,7 +48,9 @@ const Message = /*#__PURE__*/React.forwardRef(({
47
48
  }), /*#__PURE__*/React.createElement(TypeIcon, {
48
49
  variant: variant,
49
50
  transparent: transparent
50
- }), /*#__PURE__*/React.createElement(MessageContent, {
51
+ }), /*#__PURE__*/React.createElement(Typography, {
52
+ screenReaderOnly: true
53
+ }, l.message[variant]()), /*#__PURE__*/React.createElement(MessageContent, {
51
54
  showCloseIcon: showCloseIcon,
52
55
  title: title,
53
56
  reduceLeftPadding: transparent
@@ -31,7 +31,6 @@ const SimpleColor = /*#__PURE__*/React.forwardRef((props, ref) => {
31
31
  type: "radio",
32
32
  role: "radio",
33
33
  value: value,
34
- "aria-checked": checked,
35
34
  ref: ref,
36
35
  id: inputId,
37
36
  defaultChecked: defaultChecked
@@ -89,7 +89,6 @@ const TileSelect = /*#__PURE__*/React.forwardRef(({
89
89
  type: type,
90
90
  value: value,
91
91
  disabled: disabled,
92
- "aria-checked": checked,
93
92
  id: id,
94
93
  ref: ref
95
94
  }, rest)), /*#__PURE__*/React.createElement(StyledTileSelect, {
@@ -100,7 +100,12 @@ const deDE = {
100
100
  }
101
101
  },
102
102
  message: {
103
- closeButtonAriaLabel: () => "Schließen"
103
+ closeButtonAriaLabel: () => "Schließen",
104
+ error: () => "Fehler",
105
+ info: () => "Informationen",
106
+ success: () => "Erfolg",
107
+ warning: () => "Warnung",
108
+ neutral: () => "Informationen"
104
109
  },
105
110
  numeralDate: {
106
111
  validation: {
@@ -104,7 +104,12 @@ const enGB = {
104
104
  }
105
105
  },
106
106
  message: {
107
- closeButtonAriaLabel: () => "Close"
107
+ closeButtonAriaLabel: () => "Close",
108
+ error: () => "Error",
109
+ info: () => "Information",
110
+ success: () => "Success",
111
+ warning: () => "Warning",
112
+ neutral: () => "Information"
108
113
  },
109
114
  numeralDate: {
110
115
  validation: {
@@ -101,7 +101,12 @@ const esES = {
101
101
  }
102
102
  },
103
103
  message: {
104
- closeButtonAriaLabel: () => "Cerrar"
104
+ closeButtonAriaLabel: () => "Cerrar",
105
+ error: () => "Error",
106
+ info: () => "Información",
107
+ success: () => "Acción realizada",
108
+ warning: () => "Aviso",
109
+ neutral: () => "Información"
105
110
  },
106
111
  numeralDate: {
107
112
  validation: {
@@ -101,7 +101,12 @@ const frCA = {
101
101
  }
102
102
  },
103
103
  message: {
104
- closeButtonAriaLabel: () => "Fermer"
104
+ closeButtonAriaLabel: () => "Fermer",
105
+ error: () => "Erreur",
106
+ info: () => "Information",
107
+ success: () => "Opération réussie",
108
+ warning: () => "Avertissement",
109
+ neutral: () => "Information"
105
110
  },
106
111
  numeralDate: {
107
112
  validation: {
@@ -101,7 +101,12 @@ const frFR = {
101
101
  }
102
102
  },
103
103
  message: {
104
- closeButtonAriaLabel: () => "Fermer"
104
+ closeButtonAriaLabel: () => "Fermer",
105
+ error: () => "Erreur",
106
+ info: () => "Information",
107
+ success: () => "Action réussie",
108
+ warning: () => "Avertissement",
109
+ neutral: () => "Information"
105
110
  },
106
111
  numeralDate: {
107
112
  validation: {
@@ -88,6 +88,11 @@ interface Locale {
88
88
  };
89
89
  message: {
90
90
  closeButtonAriaLabel: () => string;
91
+ error: () => string;
92
+ info: () => string;
93
+ success: () => string;
94
+ warning: () => string;
95
+ neutral: () => string;
91
96
  };
92
97
  numeralDate: {
93
98
  validation: {
@@ -72,7 +72,6 @@ const HiddenCheckableInput = /*#__PURE__*/_react.default.forwardRef(({
72
72
  "aria-labelledby": ariaLabelledBy,
73
73
  autoFocus: autoFocus,
74
74
  "data-has-autofocus": autoFocus ? true : undefined,
75
- "aria-checked": checked,
76
75
  checked: checked,
77
76
  name: name,
78
77
  role: role || type,
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = exports.Message = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _typography = _interopRequireDefault(require("../typography"));
9
10
  var _message = _interopRequireDefault(require("./message.style"));
10
11
  var _typeIcon = _interopRequireDefault(require("./__internal__/type-icon/type-icon.component"));
11
12
  var _messageContent = _interopRequireDefault(require("./__internal__/message-content/message-content.component"));
@@ -56,7 +57,9 @@ const Message = exports.Message = /*#__PURE__*/_react.default.forwardRef(({
56
57
  }), /*#__PURE__*/_react.default.createElement(_typeIcon.default, {
57
58
  variant: variant,
58
59
  transparent: transparent
59
- }), /*#__PURE__*/_react.default.createElement(_messageContent.default, {
60
+ }), /*#__PURE__*/_react.default.createElement(_typography.default, {
61
+ screenReaderOnly: true
62
+ }, l.message[variant]()), /*#__PURE__*/_react.default.createElement(_messageContent.default, {
60
63
  showCloseIcon: showCloseIcon,
61
64
  title: title,
62
65
  reduceLeftPadding: transparent
@@ -40,7 +40,6 @@ const SimpleColor = exports.SimpleColor = /*#__PURE__*/_react.default.forwardRef
40
40
  type: "radio",
41
41
  role: "radio",
42
42
  value: value,
43
- "aria-checked": checked,
44
43
  ref: ref,
45
44
  id: inputId,
46
45
  defaultChecked: defaultChecked
@@ -98,7 +98,6 @@ const TileSelect = /*#__PURE__*/_react.default.forwardRef(({
98
98
  type: type,
99
99
  value: value,
100
100
  disabled: disabled,
101
- "aria-checked": checked,
102
101
  id: id,
103
102
  ref: ref
104
103
  }, rest)), /*#__PURE__*/_react.default.createElement(_tileSelect.StyledTileSelect, {
@@ -107,7 +107,12 @@ const deDE = {
107
107
  }
108
108
  },
109
109
  message: {
110
- closeButtonAriaLabel: () => "Schließen"
110
+ closeButtonAriaLabel: () => "Schließen",
111
+ error: () => "Fehler",
112
+ info: () => "Informationen",
113
+ success: () => "Erfolg",
114
+ warning: () => "Warnung",
115
+ neutral: () => "Informationen"
111
116
  },
112
117
  numeralDate: {
113
118
  validation: {
@@ -111,7 +111,12 @@ const enGB = {
111
111
  }
112
112
  },
113
113
  message: {
114
- closeButtonAriaLabel: () => "Close"
114
+ closeButtonAriaLabel: () => "Close",
115
+ error: () => "Error",
116
+ info: () => "Information",
117
+ success: () => "Success",
118
+ warning: () => "Warning",
119
+ neutral: () => "Information"
115
120
  },
116
121
  numeralDate: {
117
122
  validation: {
@@ -108,7 +108,12 @@ const esES = {
108
108
  }
109
109
  },
110
110
  message: {
111
- closeButtonAriaLabel: () => "Cerrar"
111
+ closeButtonAriaLabel: () => "Cerrar",
112
+ error: () => "Error",
113
+ info: () => "Información",
114
+ success: () => "Acción realizada",
115
+ warning: () => "Aviso",
116
+ neutral: () => "Información"
112
117
  },
113
118
  numeralDate: {
114
119
  validation: {
@@ -108,7 +108,12 @@ const frCA = {
108
108
  }
109
109
  },
110
110
  message: {
111
- closeButtonAriaLabel: () => "Fermer"
111
+ closeButtonAriaLabel: () => "Fermer",
112
+ error: () => "Erreur",
113
+ info: () => "Information",
114
+ success: () => "Opération réussie",
115
+ warning: () => "Avertissement",
116
+ neutral: () => "Information"
112
117
  },
113
118
  numeralDate: {
114
119
  validation: {
@@ -108,7 +108,12 @@ const frFR = {
108
108
  }
109
109
  },
110
110
  message: {
111
- closeButtonAriaLabel: () => "Fermer"
111
+ closeButtonAriaLabel: () => "Fermer",
112
+ error: () => "Erreur",
113
+ info: () => "Information",
114
+ success: () => "Action réussie",
115
+ warning: () => "Avertissement",
116
+ neutral: () => "Information"
112
117
  },
113
118
  numeralDate: {
114
119
  validation: {
@@ -88,6 +88,11 @@ interface Locale {
88
88
  };
89
89
  message: {
90
90
  closeButtonAriaLabel: () => string;
91
+ error: () => string;
92
+ info: () => string;
93
+ success: () => string;
94
+ warning: () => string;
95
+ neutral: () => string;
91
96
  };
92
97
  numeralDate: {
93
98
  validation: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "144.6.0",
3
+ "version": "144.7.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",