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.
- package/esm/__internal__/checkable-input/hidden-checkable-input.component.js +0 -1
- package/esm/components/message/message.component.js +4 -1
- package/esm/components/simple-color-picker/simple-color/simple-color.component.js +0 -1
- package/esm/components/tile-select/tile-select.component.js +0 -1
- package/esm/locales/de-de.js +6 -1
- package/esm/locales/en-gb.js +6 -1
- package/esm/locales/es-es.js +6 -1
- package/esm/locales/fr-ca.js +6 -1
- package/esm/locales/fr-fr.js +6 -1
- package/esm/locales/locale.d.ts +5 -0
- package/lib/__internal__/checkable-input/hidden-checkable-input.component.js +0 -1
- package/lib/components/message/message.component.js +4 -1
- package/lib/components/simple-color-picker/simple-color/simple-color.component.js +0 -1
- package/lib/components/tile-select/tile-select.component.js +0 -1
- package/lib/locales/de-de.js +6 -1
- package/lib/locales/en-gb.js +6 -1
- package/lib/locales/es-es.js +6 -1
- package/lib/locales/fr-ca.js +6 -1
- package/lib/locales/fr-fr.js +6 -1
- package/lib/locales/locale.d.ts +5 -0
- package/package.json +1 -1
|
@@ -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(
|
|
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
|
package/esm/locales/de-de.js
CHANGED
|
@@ -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: {
|
package/esm/locales/en-gb.js
CHANGED
|
@@ -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: {
|
package/esm/locales/es-es.js
CHANGED
|
@@ -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: {
|
package/esm/locales/fr-ca.js
CHANGED
|
@@ -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: {
|
package/esm/locales/fr-fr.js
CHANGED
|
@@ -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: {
|
package/esm/locales/locale.d.ts
CHANGED
|
@@ -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(
|
|
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
|
|
@@ -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, {
|
package/lib/locales/de-de.js
CHANGED
|
@@ -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: {
|
package/lib/locales/en-gb.js
CHANGED
|
@@ -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: {
|
package/lib/locales/es-es.js
CHANGED
|
@@ -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: {
|
package/lib/locales/fr-ca.js
CHANGED
|
@@ -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: {
|
package/lib/locales/fr-fr.js
CHANGED
|
@@ -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: {
|
package/lib/locales/locale.d.ts
CHANGED