@orfium/ictinus 4.51.2 → 4.52.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.
@@ -27,7 +27,8 @@ var Drawer = function Drawer(props) {
27
27
  },
28
28
  onMouseLeave: function onMouseLeave() {
29
29
  return isSmallDesktop && props.setExpanded(false);
30
- }
30
+ },
31
+ "data-testid": 'sidebar'
31
32
  }, props.renderHeader == null ? void 0 : props.renderHeader(), (0, _react2.jsx)(_Navigation["default"], (0, _omit["default"])(props, 'renderHeader')));
32
33
  };
33
34
 
@@ -35,9 +35,11 @@ var ModalContent = function ModalContent(_ref) {
35
35
  }, Boolean(label) && (0, _react2.jsx)("p", {
36
36
  css: _ModalContent.labelContainer
37
37
  }, label), (0, _react2.jsx)("h5", {
38
- css: _ModalContent.headingContainer
38
+ css: _ModalContent.headingContainer,
39
+ "data-testid": (0, _helpers.generateTestDataId)('modal-content-header', dataTestId)
39
40
  }, heading), (0, _react2.jsx)("p", {
40
- css: _ModalContent.messageContainer
41
+ css: _ModalContent.messageContainer,
42
+ "data-testid": (0, _helpers.generateTestDataId)('modal-content-message', dataTestId)
41
43
  }, message), (0, _react2.jsx)("div", {
42
44
  css: _ModalContent.actionsContainer
43
45
  }, Boolean(secondaryCTA && secondaryCTALabel) && (0, _react2.jsx)(_Button["default"], {
@@ -51,7 +51,8 @@ var CompactNotification = function CompactNotification(_ref) {
51
51
  utils = _useTheme.utils;
52
52
 
53
53
  return (0, _react2.jsx)("div", _extends({
54
- css: (0, _CompactNotification.notificationsContainer)(type, styleType)
54
+ css: (0, _CompactNotification.notificationsContainer)(type, styleType),
55
+ "data-testid": (0, _helpers.generateTestDataId)(variant, dataTestId)
55
56
  }, variant == 'banner' && {
56
57
  'notification-type': 'banner'
57
58
  }), (0, _react2.jsx)("div", {
@@ -63,9 +64,11 @@ var CompactNotification = function CompactNotification(_ref) {
63
64
  color: type,
64
65
  size: 20
65
66
  })), variant === 'banner' && (0, _react2.jsx)("div", {
66
- css: (0, _CompactNotification.headContainer)()
67
+ css: (0, _CompactNotification.headContainer)(),
68
+ "data-testid": (0, _helpers.generateTestDataId)(variant + "-title", dataTestId)
67
69
  }, title), (0, _react2.jsx)("div", {
68
- css: (0, _CompactNotification.messageContainer)()
70
+ css: (0, _CompactNotification.messageContainer)(),
71
+ "data-testid": (0, _helpers.generateTestDataId)(variant + "-message", dataTestId)
69
72
  }, message)), (0, _react2.jsx)("div", {
70
73
  css: (0, _CompactNotification.actionsContainer)()
71
74
  }, primaryCTA && primaryCTALabel && (0, _react2.jsx)(_Button["default"], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orfium/ictinus",
3
- "version": "4.51.2",
3
+ "version": "4.52.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",