@elliemae/ds-left-navigation 2.0.0-rc.11 → 2.0.0-rc.15

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.
@@ -36,7 +36,8 @@ const ItemSection = props => {
36
36
  label,
37
37
  LeftComponent,
38
38
  RightComponent,
39
- labelRightSection
39
+ labelRightSection,
40
+ labelDataTestId
40
41
  }
41
42
  },
42
43
  ctx,
@@ -61,7 +62,9 @@ const ItemSection = props => {
61
62
  }, void 0, LeftComponent ? /*#__PURE__*/_jsx__default["default"](LeftComponent, {
62
63
  ctx: ctx,
63
64
  item: item
64
- }) : _div || (_div = /*#__PURE__*/_jsx__default["default"]("div", {})), /*#__PURE__*/_jsx__default["default"](styled.StyledLabel, {}, void 0, label), _StyledVerticalSepara || (_StyledVerticalSepara = /*#__PURE__*/_jsx__default["default"](styled.StyledVerticalSeparator, {})), /*#__PURE__*/_jsx__default["default"](styled.StyledRightLabel, {}, void 0, labelRightSection)), /*#__PURE__*/_jsx__default["default"](Grid__default["default"], {
65
+ }) : _div || (_div = /*#__PURE__*/_jsx__default["default"]("div", {})), /*#__PURE__*/_jsx__default["default"](styled.StyledLabel, {
66
+ "data-testid": labelDataTestId || 'leftnav-section-item-label'
67
+ }, void 0, label), _StyledVerticalSepara || (_StyledVerticalSepara = /*#__PURE__*/_jsx__default["default"](styled.StyledVerticalSeparator, {})), /*#__PURE__*/_jsx__default["default"](styled.StyledRightLabel, {}, void 0, labelRightSection)), /*#__PURE__*/_jsx__default["default"](Grid__default["default"], {
65
68
  ml: "auto",
66
69
  onFocus: e => {
67
70
  setFocusedItem(null);
@@ -116,7 +116,7 @@ const ItemSubmenu = props => {
116
116
  setFocusedItem(null);
117
117
  },
118
118
  onKeyDown: e => e.stopPropagation(),
119
- onClick: e => openedItem && e.stopPropagation(),
119
+ onClick: e => openedItem === dsId && e.stopPropagation(),
120
120
  "data-testid": "leftnav-right-component"
121
121
  }, void 0, RightComponent && /*#__PURE__*/_jsx__default["default"](RightComponent, {
122
122
  ctx: ctx,
@@ -26,7 +26,8 @@ const ItemSection = props => {
26
26
  label,
27
27
  LeftComponent,
28
28
  RightComponent,
29
- labelRightSection
29
+ labelRightSection,
30
+ labelDataTestId
30
31
  }
31
32
  },
32
33
  ctx,
@@ -51,7 +52,9 @@ const ItemSection = props => {
51
52
  }, void 0, LeftComponent ? /*#__PURE__*/_jsx(LeftComponent, {
52
53
  ctx: ctx,
53
54
  item: item
54
- }) : _div || (_div = /*#__PURE__*/_jsx("div", {})), /*#__PURE__*/_jsx(StyledLabel, {}, void 0, label), _StyledVerticalSepara || (_StyledVerticalSepara = /*#__PURE__*/_jsx(StyledVerticalSeparator, {})), /*#__PURE__*/_jsx(StyledRightLabel, {}, void 0, labelRightSection)), /*#__PURE__*/_jsx(Grid, {
55
+ }) : _div || (_div = /*#__PURE__*/_jsx("div", {})), /*#__PURE__*/_jsx(StyledLabel, {
56
+ "data-testid": labelDataTestId || 'leftnav-section-item-label'
57
+ }, void 0, label), _StyledVerticalSepara || (_StyledVerticalSepara = /*#__PURE__*/_jsx(StyledVerticalSeparator, {})), /*#__PURE__*/_jsx(StyledRightLabel, {}, void 0, labelRightSection)), /*#__PURE__*/_jsx(Grid, {
55
58
  ml: "auto",
56
59
  onFocus: e => {
57
60
  setFocusedItem(null);
@@ -106,7 +106,7 @@ const ItemSubmenu = props => {
106
106
  setFocusedItem(null);
107
107
  },
108
108
  onKeyDown: e => e.stopPropagation(),
109
- onClick: e => openedItem && e.stopPropagation(),
109
+ onClick: e => openedItem === dsId && e.stopPropagation(),
110
110
  "data-testid": "leftnav-right-component"
111
111
  }, void 0, RightComponent && /*#__PURE__*/_jsx(RightComponent, {
112
112
  ctx: ctx,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-left-navigation",
3
- "version": "2.0.0-rc.11",
3
+ "version": "2.0.0-rc.15",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Left Navigation",
6
6
  "module": "./esm/index.js",
@@ -233,11 +233,11 @@
233
233
  "generateSubmodules": true
234
234
  },
235
235
  "dependencies": {
236
- "@elliemae/ds-circular-progress-indicator": "2.0.0-rc.11",
237
- "@elliemae/ds-grid": "2.0.0-rc.11",
238
- "@elliemae/ds-icons": "2.0.0-rc.11",
239
- "@elliemae/ds-system": "2.0.0-rc.11",
240
- "@elliemae/ds-truncated-tooltip-text": "2.0.0-rc.11",
236
+ "@elliemae/ds-circular-progress-indicator": "2.0.0-rc.15",
237
+ "@elliemae/ds-grid": "2.0.0-rc.15",
238
+ "@elliemae/ds-icons": "2.0.0-rc.15",
239
+ "@elliemae/ds-system": "2.0.0-rc.15",
240
+ "@elliemae/ds-truncated-tooltip-text": "2.0.0-rc.15",
241
241
  "overlayscrollbars": "1.13.1",
242
242
  "prop-types": "~15.7.2",
243
243
  "react-desc": "~4.1.3"