carbon-addons-iot-react 5.7.2 → 5.7.3
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/es/components/Card/Card.js +1 -1
- package/es/components/GaugeCard/GaugeCard.js +6 -5
- package/es/components/ToggleTip/index.js +3 -1
- package/lib/components/Card/Card.js +1 -1
- package/lib/components/GaugeCard/GaugeCard.js +6 -5
- package/lib/components/ToggleTip/index.js +3 -1
- package/package.json +1 -1
- package/umd/carbon-addons-iot-react.js +10 -7
|
@@ -65,9 +65,9 @@ var CardWrapper = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
65
65
|
var validOthers = filterValidAttributes(others);
|
|
66
66
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
67
67
|
ref: ref,
|
|
68
|
-
role: "presentation",
|
|
69
68
|
"data-testid": testID || testId,
|
|
70
69
|
id: id,
|
|
70
|
+
role: "presentation",
|
|
71
71
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
72
72
|
'--card-default-height': "".concat(dimensions.y, "px")
|
|
73
73
|
}),
|
|
@@ -80,9 +80,9 @@ var getColor = function getColor(gauge, value) {
|
|
|
80
80
|
var GaugeCard = function GaugeCard(_ref) {
|
|
81
81
|
var children = _ref.children,
|
|
82
82
|
id = _ref.id,
|
|
83
|
-
title = _ref.title
|
|
84
|
-
|
|
85
|
-
gauges = _ref.content.gauges,
|
|
83
|
+
title = _ref.title;
|
|
84
|
+
_ref.tooltip;
|
|
85
|
+
var gauges = _ref.content.gauges,
|
|
86
86
|
values = _ref.values;
|
|
87
87
|
_ref.data;
|
|
88
88
|
var isLoading = _ref.isLoading,
|
|
@@ -120,12 +120,13 @@ var GaugeCard = function GaugeCard(_ref) {
|
|
|
120
120
|
className: "".concat(iotPrefix, "--gauge-card"),
|
|
121
121
|
title: title,
|
|
122
122
|
size: size,
|
|
123
|
-
resizeHandles: resizeHandles
|
|
123
|
+
resizeHandles: resizeHandles,
|
|
124
|
+
"aria-label": "".concat(title)
|
|
124
125
|
// TODO: remove deprecated testID in v3.
|
|
125
126
|
,
|
|
126
127
|
testId: testID || testId
|
|
127
128
|
}, others, {
|
|
128
|
-
tooltip:
|
|
129
|
+
tooltip: "".concat(title),
|
|
129
130
|
isLoading: isLoading
|
|
130
131
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
131
132
|
className: classnames("".concat(iotPrefix, "--gauge-container"), className),
|
|
@@ -60,7 +60,9 @@ var ToggleTip = function ToggleTip(_ref) {
|
|
|
60
60
|
}, triggerText)) : null, /*#__PURE__*/React.createElement(Toggletip, _extends({
|
|
61
61
|
align: newAlign,
|
|
62
62
|
autoAlign: useAutoPositioning
|
|
63
|
-
}, other), triggerBtn !== null && triggerBtn !== void 0 ? triggerBtn : /*#__PURE__*/React.createElement(ToggletipButton,
|
|
63
|
+
}, other), triggerBtn !== null && triggerBtn !== void 0 ? triggerBtn : /*#__PURE__*/React.createElement(ToggletipButton, {
|
|
64
|
+
"aria-label": triggerText
|
|
65
|
+
}, showIcon ? IconCustomElement ? /*#__PURE__*/React.createElement(IconCustomElement, null) : /*#__PURE__*/React.createElement(Information, null) : /*#__PURE__*/React.createElement(ToggletipLabel, null, /*#__PURE__*/React.createElement("div", {
|
|
64
66
|
ref: toggleTipLabelRef
|
|
65
67
|
}, triggerText))), /*#__PURE__*/React.createElement(ToggletipContent, null, content, /*#__PURE__*/React.createElement(ToggletipActions, null, action))));
|
|
66
68
|
};
|
|
@@ -80,9 +80,9 @@ var CardWrapper = /*#__PURE__*/React__default.default.forwardRef(function (_ref,
|
|
|
80
80
|
var validOthers = componentUtilityFunctions.filterValidAttributes(others);
|
|
81
81
|
return /*#__PURE__*/React__default.default.createElement("div", _extends__default.default({
|
|
82
82
|
ref: ref,
|
|
83
|
-
role: "presentation",
|
|
84
83
|
"data-testid": testID || testId,
|
|
85
84
|
id: id,
|
|
85
|
+
role: "presentation",
|
|
86
86
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
87
87
|
'--card-default-height': "".concat(dimensions.y, "px")
|
|
88
88
|
}),
|
|
@@ -93,9 +93,9 @@ var getColor = function getColor(gauge, value) {
|
|
|
93
93
|
var GaugeCard = function GaugeCard(_ref) {
|
|
94
94
|
var children = _ref.children,
|
|
95
95
|
id = _ref.id,
|
|
96
|
-
title = _ref.title
|
|
97
|
-
|
|
98
|
-
gauges = _ref.content.gauges,
|
|
96
|
+
title = _ref.title;
|
|
97
|
+
_ref.tooltip;
|
|
98
|
+
var gauges = _ref.content.gauges,
|
|
99
99
|
values = _ref.values;
|
|
100
100
|
_ref.data;
|
|
101
101
|
var isLoading = _ref.isLoading,
|
|
@@ -133,12 +133,13 @@ var GaugeCard = function GaugeCard(_ref) {
|
|
|
133
133
|
className: "".concat(iotPrefix, "--gauge-card"),
|
|
134
134
|
title: title,
|
|
135
135
|
size: size,
|
|
136
|
-
resizeHandles: resizeHandles
|
|
136
|
+
resizeHandles: resizeHandles,
|
|
137
|
+
"aria-label": "".concat(title)
|
|
137
138
|
// TODO: remove deprecated testID in v3.
|
|
138
139
|
,
|
|
139
140
|
testId: testID || testId
|
|
140
141
|
}, others, {
|
|
141
|
-
tooltip:
|
|
142
|
+
tooltip: "".concat(title),
|
|
142
143
|
isLoading: isLoading
|
|
143
144
|
}), /*#__PURE__*/React__default.default.createElement("div", {
|
|
144
145
|
className: classnames__default.default("".concat(iotPrefix, "--gauge-container"), className),
|
|
@@ -90,7 +90,9 @@ var ToggleTip = function ToggleTip(_ref) {
|
|
|
90
90
|
}, triggerText)) : null, /*#__PURE__*/React__namespace.createElement(react.Toggletip, _extends__default.default({
|
|
91
91
|
align: newAlign,
|
|
92
92
|
autoAlign: useAutoPositioning
|
|
93
|
-
}, other), triggerBtn !== null && triggerBtn !== void 0 ? triggerBtn : /*#__PURE__*/React__namespace.createElement(react.ToggletipButton,
|
|
93
|
+
}, other), triggerBtn !== null && triggerBtn !== void 0 ? triggerBtn : /*#__PURE__*/React__namespace.createElement(react.ToggletipButton, {
|
|
94
|
+
"aria-label": triggerText
|
|
95
|
+
}, showIcon ? IconCustomElement ? /*#__PURE__*/React__namespace.createElement(IconCustomElement, null) : /*#__PURE__*/React__namespace.createElement(iconsReact.Information, null) : /*#__PURE__*/React__namespace.createElement(react.ToggletipLabel, null, /*#__PURE__*/React__namespace.createElement("div", {
|
|
94
96
|
ref: toggleTipLabelRef
|
|
95
97
|
}, triggerText))), /*#__PURE__*/React__namespace.createElement(react.ToggletipContent, null, content, /*#__PURE__*/React__namespace.createElement(react.ToggletipActions, null, action))));
|
|
96
98
|
};
|
package/package.json
CHANGED
|
@@ -215387,7 +215387,9 @@ ${formatRule(Codicon.menuSubmenu)}
|
|
|
215387
215387
|
}, triggerText)) : null, /*#__PURE__*/React__namespace.createElement(react.Toggletip, _extends$3({
|
|
215388
215388
|
align: newAlign,
|
|
215389
215389
|
autoAlign: useAutoPositioning
|
|
215390
|
-
}, other), triggerBtn !== null && triggerBtn !== void 0 ? triggerBtn : /*#__PURE__*/React__namespace.createElement(react.ToggletipButton,
|
|
215390
|
+
}, other), triggerBtn !== null && triggerBtn !== void 0 ? triggerBtn : /*#__PURE__*/React__namespace.createElement(react.ToggletipButton, {
|
|
215391
|
+
"aria-label": triggerText
|
|
215392
|
+
}, showIcon ? IconCustomElement ? /*#__PURE__*/React__namespace.createElement(IconCustomElement, null) : /*#__PURE__*/React__namespace.createElement(iconsReact.Information, null) : /*#__PURE__*/React__namespace.createElement(react.ToggletipLabel, null, /*#__PURE__*/React__namespace.createElement("div", {
|
|
215391
215393
|
ref: toggleTipLabelRef
|
|
215392
215394
|
}, triggerText))), /*#__PURE__*/React__namespace.createElement(react.ToggletipContent, null, content, /*#__PURE__*/React__namespace.createElement(react.ToggletipActions, null, action))));
|
|
215393
215395
|
};
|
|
@@ -247989,9 +247991,9 @@ ${formatRule(Codicon.menuSubmenu)}
|
|
|
247989
247991
|
var validOthers = filterValidAttributes(others);
|
|
247990
247992
|
return /*#__PURE__*/React$1.createElement("div", _extends$3({
|
|
247991
247993
|
ref: ref,
|
|
247992
|
-
role: "presentation",
|
|
247993
247994
|
"data-testid": testID || testId,
|
|
247994
247995
|
id: id,
|
|
247996
|
+
role: "presentation",
|
|
247995
247997
|
style: _objectSpread$1n(_objectSpread$1n({}, style), {}, {
|
|
247996
247998
|
'--card-default-height': "".concat(dimensions.y, "px")
|
|
247997
247999
|
}),
|
|
@@ -286113,9 +286115,9 @@ ${formatRule(Codicon.menuSubmenu)}
|
|
|
286113
286115
|
var GaugeCard = function GaugeCard(_ref) {
|
|
286114
286116
|
var children = _ref.children,
|
|
286115
286117
|
id = _ref.id,
|
|
286116
|
-
title = _ref.title
|
|
286117
|
-
|
|
286118
|
-
gauges = _ref.content.gauges,
|
|
286118
|
+
title = _ref.title;
|
|
286119
|
+
_ref.tooltip;
|
|
286120
|
+
var gauges = _ref.content.gauges,
|
|
286119
286121
|
values = _ref.values;
|
|
286120
286122
|
_ref.data;
|
|
286121
286123
|
var isLoading = _ref.isLoading,
|
|
@@ -286153,12 +286155,13 @@ ${formatRule(Codicon.menuSubmenu)}
|
|
|
286153
286155
|
className: "".concat(iotPrefix$S, "--gauge-card"),
|
|
286154
286156
|
title: title,
|
|
286155
286157
|
size: size,
|
|
286156
|
-
resizeHandles: resizeHandles
|
|
286158
|
+
resizeHandles: resizeHandles,
|
|
286159
|
+
"aria-label": "".concat(title)
|
|
286157
286160
|
// TODO: remove deprecated testID in v3.
|
|
286158
286161
|
,
|
|
286159
286162
|
testId: testID || testId
|
|
286160
286163
|
}, others, {
|
|
286161
|
-
tooltip:
|
|
286164
|
+
tooltip: "".concat(title),
|
|
286162
286165
|
isLoading: isLoading
|
|
286163
286166
|
}), /*#__PURE__*/React$1.createElement("div", {
|
|
286164
286167
|
className: classnames("".concat(iotPrefix$S, "--gauge-container"), className),
|