@carbon/ibm-products 2.38.0-alpha.5 → 2.39.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. package/css/index-full-carbon.css +227 -0
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +218 -0
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +227 -0
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +445 -0
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/ActionSet/ActionSet.js +3 -2
  18. package/es/components/Card/Card.js +50 -9
  19. package/es/components/Card/CardFooter.d.ts +5 -1
  20. package/es/components/Card/CardFooter.js +11 -1
  21. package/es/components/Carousel/Carousel.d.ts +6 -2
  22. package/es/components/Checklist/Checklist.d.ts +100 -2
  23. package/es/components/Checklist/Checklist.js +19 -15
  24. package/es/components/Checklist/Checklist.types.d.ts +19 -0
  25. package/es/components/Checklist/Checklist.types.js +22 -0
  26. package/es/components/Checklist/ChecklistChart.d.ts +6 -2
  27. package/es/components/Checklist/ChecklistChart.js +14 -33
  28. package/es/components/Checklist/ChecklistIcon.d.ts +5 -1
  29. package/es/components/Checklist/ChecklistIcon.js +9 -4
  30. package/es/components/Coachmark/Coachmark.d.ts +65 -2
  31. package/es/components/Coachmark/Coachmark.js +7 -10
  32. package/es/components/Coachmark/CoachmarkDragbar.d.ts +40 -2
  33. package/es/components/Coachmark/CoachmarkDragbar.js +3 -1
  34. package/es/components/Coachmark/CoachmarkHeader.d.ts +27 -2
  35. package/es/components/Coachmark/CoachmarkHeader.js +0 -1
  36. package/es/components/Coachmark/CoachmarkOverlay.d.ts +42 -2
  37. package/es/components/Coachmark/CoachmarkOverlay.js +18 -15
  38. package/es/components/Coachmark/CoachmarkTagline.d.ts +27 -2
  39. package/es/components/Coachmark/CoachmarkTagline.js +0 -1
  40. package/es/components/Coachmark/utils/enums.d.ts +20 -20
  41. package/es/components/Coachmark/utils/enums.js +22 -20
  42. package/es/components/CoachmarkButton/CoachmarkButton.d.ts +19 -2
  43. package/es/components/CoachmarkFixed/CoachmarkFixed.d.ts +42 -2
  44. package/es/components/CoachmarkFixed/CoachmarkFixed.js +4 -2
  45. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +46 -2
  46. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +5 -4
  47. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +2 -1
  48. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +25 -23
  49. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +2 -2
  50. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +14 -24
  51. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +2 -0
  52. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +4 -1
  53. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +3 -3
  54. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +11 -11
  55. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +5 -3
  56. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +54 -44
  57. package/es/components/CreateInfluencer/CreateInfluencer.d.ts +55 -17
  58. package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +67 -2
  59. package/es/components/DataSpreadsheet/DataSpreadsheet.js +48 -27
  60. package/es/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +139 -2
  61. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +60 -39
  62. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +89 -2
  63. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +39 -27
  64. package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +2 -1
  65. package/es/components/DataSpreadsheet/types/index.d.ts +30 -0
  66. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +19 -2
  67. package/es/components/GetStartedCard/GetStartedCard.d.ts +5 -0
  68. package/es/components/GetStartedCard/GetStartedCard.js +82 -0
  69. package/es/components/GetStartedCard/index.d.ts +1 -0
  70. package/es/components/Guidebanner/Guidebanner.js +2 -2
  71. package/es/components/NotificationsPanel/NotificationsPanel.d.ts +162 -1
  72. package/es/components/NotificationsPanel/NotificationsPanel.js +10 -10
  73. package/es/components/SearchBar/SearchBar.d.ts +10 -1
  74. package/es/components/SearchBar/SearchBar.js +26 -20
  75. package/es/components/SidePanel/SidePanel.js +1 -1
  76. package/es/components/TagOverflow/TagOverflow.d.ts +5 -0
  77. package/es/components/TagOverflow/TagOverflow.js +153 -29
  78. package/es/components/TagOverflow/TagOverflowModal.d.ts +29 -0
  79. package/es/components/TagOverflow/TagOverflowModal.js +112 -0
  80. package/es/components/TagOverflow/TagOverflowPopover.d.ts +2 -0
  81. package/es/components/TagOverflow/TagOverflowPopover.js +135 -0
  82. package/es/components/TagSet/TagSet.d.ts +87 -3
  83. package/es/components/TagSet/TagSet.js +20 -9
  84. package/es/components/TagSet/TagSetModal.d.ts +32 -26
  85. package/es/components/TagSet/TagSetModal.js +5 -5
  86. package/es/components/TagSet/TagSetOverflow.d.ts +45 -2
  87. package/es/components/TagSet/TagSetOverflow.js +14 -12
  88. package/es/components/WebTerminal/WebTerminal.js +2 -2
  89. package/es/components/WebTerminal/WebTerminalContentWrapper.d.ts +15 -2
  90. package/es/components/WebTerminal/hooks/index.d.ts +16 -11
  91. package/es/components/WebTerminal/hooks/index.js +1 -1
  92. package/es/components/index.d.ts +1 -0
  93. package/es/global/js/package-settings.d.ts +2 -1
  94. package/es/global/js/package-settings.js +2 -1
  95. package/es/index.js +1 -0
  96. package/es/node_modules/@carbon/colors/es/index.js +4 -1
  97. package/es/settings.d.ts +2 -1
  98. package/lib/components/ActionSet/ActionSet.js +2 -1
  99. package/lib/components/Card/Card.js +50 -9
  100. package/lib/components/Card/CardFooter.d.ts +5 -1
  101. package/lib/components/Card/CardFooter.js +11 -1
  102. package/lib/components/Carousel/Carousel.d.ts +6 -2
  103. package/lib/components/Checklist/Checklist.d.ts +100 -2
  104. package/lib/components/Checklist/Checklist.js +19 -15
  105. package/lib/components/Checklist/Checklist.types.d.ts +19 -0
  106. package/lib/components/Checklist/Checklist.types.js +27 -0
  107. package/lib/components/Checklist/ChecklistChart.d.ts +6 -2
  108. package/lib/components/Checklist/ChecklistChart.js +17 -36
  109. package/lib/components/Checklist/ChecklistIcon.d.ts +5 -1
  110. package/lib/components/Checklist/ChecklistIcon.js +9 -4
  111. package/lib/components/Coachmark/Coachmark.d.ts +65 -2
  112. package/lib/components/Coachmark/Coachmark.js +6 -9
  113. package/lib/components/Coachmark/CoachmarkDragbar.d.ts +40 -2
  114. package/lib/components/Coachmark/CoachmarkDragbar.js +3 -1
  115. package/lib/components/Coachmark/CoachmarkHeader.d.ts +27 -2
  116. package/lib/components/Coachmark/CoachmarkHeader.js +0 -1
  117. package/lib/components/Coachmark/CoachmarkOverlay.d.ts +42 -2
  118. package/lib/components/Coachmark/CoachmarkOverlay.js +18 -15
  119. package/lib/components/Coachmark/CoachmarkTagline.d.ts +27 -2
  120. package/lib/components/Coachmark/CoachmarkTagline.js +0 -1
  121. package/lib/components/Coachmark/utils/enums.d.ts +20 -20
  122. package/lib/components/Coachmark/utils/enums.js +22 -20
  123. package/lib/components/CoachmarkButton/CoachmarkButton.d.ts +19 -2
  124. package/lib/components/CoachmarkFixed/CoachmarkFixed.d.ts +42 -2
  125. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +4 -2
  126. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +46 -2
  127. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +5 -4
  128. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +2 -1
  129. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +25 -23
  130. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +2 -2
  131. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +13 -23
  132. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +2 -0
  133. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +4 -1
  134. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +3 -3
  135. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +11 -11
  136. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +5 -3
  137. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +54 -44
  138. package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +55 -17
  139. package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +67 -2
  140. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +48 -27
  141. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +139 -2
  142. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +59 -38
  143. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +89 -2
  144. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +39 -27
  145. package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +2 -1
  146. package/lib/components/DataSpreadsheet/types/index.d.ts +30 -0
  147. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +19 -2
  148. package/lib/components/GetStartedCard/GetStartedCard.d.ts +5 -0
  149. package/lib/components/GetStartedCard/GetStartedCard.js +88 -0
  150. package/lib/components/GetStartedCard/index.d.ts +1 -0
  151. package/lib/components/Guidebanner/Guidebanner.js +2 -2
  152. package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +162 -1
  153. package/lib/components/NotificationsPanel/NotificationsPanel.js +10 -10
  154. package/lib/components/SearchBar/SearchBar.d.ts +10 -1
  155. package/lib/components/SearchBar/SearchBar.js +26 -18
  156. package/lib/components/SidePanel/SidePanel.js +1 -1
  157. package/lib/components/TagOverflow/TagOverflow.d.ts +5 -0
  158. package/lib/components/TagOverflow/TagOverflow.js +154 -28
  159. package/lib/components/TagOverflow/TagOverflowModal.d.ts +29 -0
  160. package/lib/components/TagOverflow/TagOverflowModal.js +121 -0
  161. package/lib/components/TagOverflow/TagOverflowPopover.d.ts +2 -0
  162. package/lib/components/TagOverflow/TagOverflowPopover.js +144 -0
  163. package/lib/components/TagSet/TagSet.d.ts +87 -3
  164. package/lib/components/TagSet/TagSet.js +20 -9
  165. package/lib/components/TagSet/TagSetModal.d.ts +32 -26
  166. package/lib/components/TagSet/TagSetModal.js +3 -3
  167. package/lib/components/TagSet/TagSetOverflow.d.ts +45 -2
  168. package/lib/components/TagSet/TagSetOverflow.js +14 -12
  169. package/lib/components/WebTerminal/WebTerminal.js +2 -2
  170. package/lib/components/WebTerminal/WebTerminalContentWrapper.d.ts +15 -2
  171. package/lib/components/WebTerminal/hooks/index.d.ts +16 -11
  172. package/lib/components/WebTerminal/hooks/index.js +1 -1
  173. package/lib/components/index.d.ts +1 -0
  174. package/lib/global/js/package-settings.d.ts +2 -1
  175. package/lib/global/js/package-settings.js +2 -1
  176. package/lib/index.js +5 -0
  177. package/lib/node_modules/@carbon/colors/es/index.js +6 -0
  178. package/lib/settings.d.ts +2 -1
  179. package/package.json +3 -3
  180. package/scss/components/Checklist/_carbon-imports.scss +2 -2
  181. package/scss/components/GetStartedCard/_carbon-imports.scss +9 -0
  182. package/scss/components/GetStartedCard/_get-started-card.scss +135 -0
  183. package/scss/components/GetStartedCard/_index-with-carbon.scss +9 -0
  184. package/scss/components/GetStartedCard/_index.scss +8 -0
  185. package/scss/components/TagOverflow/_tag-overflow.scss +157 -0
  186. package/scss/components/_index-released-only-with-carbon.scss +2 -1
  187. package/scss/components/_index-released-only.scss +2 -1
  188. package/scss/components/_index-with-carbon.scss +2 -0
  189. package/scss/components/_index.scss +1 -0
  190. package/telemetry.yml +28 -24
@@ -21,6 +21,7 @@ var handleHeaderCellSelection = require('./utils/handleHeaderCellSelection.js');
21
21
  var selectAllCells = require('./utils/selectAllCells.js');
22
22
  var getSpreadsheetWidth = require('./utils/getSpreadsheetWidth.js');
23
23
  var checkForHoldingKey = require('./utils/checkForHoldingKey.js');
24
+ var propsHelper = require('../../global/js/utils/props-helper.js');
24
25
  var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
25
26
  var useSpreadsheetMouseMove = require('./hooks/useSpreadsheetMouseMove.js');
26
27
 
@@ -60,12 +61,12 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
60
61
  setSelectedHeaderReorderActive = _useState4[1];
61
62
  var previousState = usePreviousValue.usePreviousValue({
62
63
  cellSize: cellSize
63
- });
64
+ }) || {};
64
65
  React.useEffect(function () {
65
66
  if ((previousState === null || previousState === void 0 ? void 0 : previousState.cellSize) !== cellSize) {
66
- var _ref$current;
67
- var scrollContainer = ref === null || ref === void 0 || (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.querySelector(".".concat(blockClass, "__list--container"));
68
- var hasScrollBar = (scrollContainer === null || scrollContainer === void 0 ? void 0 : scrollContainer.scrollHeight) > (scrollContainer === null || scrollContainer === void 0 ? void 0 : scrollContainer.clientHeight);
67
+ var _current;
68
+ var scrollContainer = ref === null || ref === void 0 || (_current = ref.current) === null || _current === void 0 ? void 0 : _current.querySelector(".".concat(blockClass, "__list--container"));
69
+ var hasScrollBar = (scrollContainer === null || scrollContainer === void 0 ? void 0 : scrollContainer.scrollHeight) && (scrollContainer === null || scrollContainer === void 0 ? void 0 : scrollContainer.clientHeight) && (scrollContainer === null || scrollContainer === void 0 ? void 0 : scrollContainer.scrollHeight) > (scrollContainer === null || scrollContainer === void 0 ? void 0 : scrollContainer.clientHeight);
69
70
  var scrollBarValue = hasScrollBar ? 0 : scrollBarSize;
70
71
  setScrollBarSizeValue(scrollBarValue);
71
72
  }
@@ -79,15 +80,16 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
79
80
  activeCellCoordinates: activeCellCoordinates,
80
81
  rows: rows,
81
82
  columns: columns,
83
+ currentMatcher: currentMatcher,
82
84
  setActiveCellCoordinates: setActiveCellCoordinates,
83
85
  setCurrentMatcher: setCurrentMatcher,
84
86
  setSelectionAreas: setSelectionAreas,
85
87
  spreadsheetRef: ref,
86
88
  index: index,
89
+ isKeyboard: undefined,
87
90
  setSelectionAreaData: setSelectionAreaData,
88
91
  isHoldingCommandKey: isHoldingCommandKey,
89
- isHoldingShiftKey: isHoldingShiftKey,
90
- currentMatcher: currentMatcher
92
+ isHoldingShiftKey: isHoldingShiftKey
91
93
  });
92
94
  };
93
95
  };
@@ -104,34 +106,36 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
104
106
  };
105
107
  var handleHeaderMouseDown = function handleHeaderMouseDown(index) {
106
108
  return function (event) {
107
- var _selectionAreaToClone;
109
+ var _selectionAreaToClone, _selectionAreaToClone2, _selectionAreaToClone3, _document;
108
110
  if (event.shiftKey) {
109
111
  // Remove columns, need to call handleHeaderCellSelection
110
112
  return;
111
113
  }
112
114
  setSelectedHeaderReorderActive(true);
113
- var selectionAreaToClone = selectionAreas.filter(function (item) {
115
+ var selectionAreaToClone = selectionAreas === null || selectionAreas === void 0 ? void 0 : selectionAreas.filter(function (item) {
114
116
  return (item === null || item === void 0 ? void 0 : item.matcher) === currentMatcher;
115
117
  });
116
- var selectionAreaElement = ref.current.querySelector("[data-matcher-id=\"".concat((_selectionAreaToClone = selectionAreaToClone[0]) === null || _selectionAreaToClone === void 0 ? void 0 : _selectionAreaToClone.matcher, "\"]"));
118
+ var selectionAreaElement = ref.current.querySelector("[data-matcher-id=\"".concat(selectionAreaToClone === null || selectionAreaToClone === void 0 || (_selectionAreaToClone = selectionAreaToClone[0]) === null || _selectionAreaToClone === void 0 ? void 0 : _selectionAreaToClone.matcher, "\"]"));
117
119
  var clickXPosition = event.clientX;
118
120
  var headerButtonCoords = event.target.getBoundingClientRect();
119
121
  var headerIndex = event.target.getAttribute('data-column-index');
120
122
  var offsetXValue = clickXPosition - headerButtonCoords.left;
121
- var lowestColumnIndexFromSelectionArea = Math.min(selectionAreaToClone[0].point1.column, selectionAreaToClone[0].point2.column);
122
- var selectionAreaCoords = selectionAreaElement.getBoundingClientRect();
123
- var updatedOffsetDifference = lowestColumnIndexFromSelectionArea < parseInt(headerIndex) ? offsetXValue + (headerButtonCoords.left - selectionAreaCoords.left) : offsetXValue;
124
- var bodyContainer = document.querySelector(".".concat(blockClass, "__list--container")).firstElementChild;
125
- var selectionAreaClonedElement = selectionAreaElement.cloneNode();
126
- var reorderIndicatorLine = selectionAreaElement.cloneNode();
127
- reorderIndicatorLine.className = "".concat(blockClass, "__reorder-indicator-line");
128
- reorderIndicatorLine.style.width = layout.px(2);
123
+ var lowestColumnIndexFromSelectionArea = Math.min((selectionAreaToClone === null || selectionAreaToClone === void 0 || (_selectionAreaToClone2 = selectionAreaToClone[0]) === null || _selectionAreaToClone2 === void 0 || (_selectionAreaToClone2 = _selectionAreaToClone2.point1) === null || _selectionAreaToClone2 === void 0 ? void 0 : _selectionAreaToClone2.column) || 0, (selectionAreaToClone === null || selectionAreaToClone === void 0 || (_selectionAreaToClone3 = selectionAreaToClone[0]) === null || _selectionAreaToClone3 === void 0 || (_selectionAreaToClone3 = _selectionAreaToClone3.point2) === null || _selectionAreaToClone3 === void 0 ? void 0 : _selectionAreaToClone3.column) || 0);
124
+ var selectionAreaCoords = (selectionAreaElement === null || selectionAreaElement === void 0 ? void 0 : selectionAreaElement.getBoundingClientRect()) || new DOMRect();
125
+ var updatedOffsetDifference = lowestColumnIndexFromSelectionArea < parseInt(headerIndex) ? offsetXValue + (headerButtonCoords.left - (selectionAreaCoords === null || selectionAreaCoords === void 0 ? void 0 : selectionAreaCoords.left)) : offsetXValue;
126
+ var bodyContainer = (_document = document) === null || _document === void 0 || (_document = _document.querySelector(".".concat(blockClass, "__list--container"))) === null || _document === void 0 ? void 0 : _document.firstElementChild;
127
+ var selectionAreaClonedElement = selectionAreaElement === null || selectionAreaElement === void 0 ? void 0 : selectionAreaElement.cloneNode();
128
+ var reorderIndicatorLine = selectionAreaElement === null || selectionAreaElement === void 0 ? void 0 : selectionAreaElement.cloneNode();
129
+ if (reorderIndicatorLine) {
130
+ reorderIndicatorLine.className = "".concat(blockClass, "__reorder-indicator-line");
131
+ reorderIndicatorLine.style.width = layout.px(2);
132
+ }
129
133
  selectionAreaClonedElement.classList.add("".concat(blockClass, "__selection-area--element-cloned"));
130
- selectionAreaClonedElement.setAttribute('data-clone-offset-x', updatedOffsetDifference);
134
+ selectionAreaClonedElement.setAttribute('data-clone-offset-x', "".concat(updatedOffsetDifference));
131
135
  selectionAreaClonedElement.setAttribute('data-column-index-original', index);
132
- bodyContainer.appendChild(selectionAreaClonedElement);
133
- bodyContainer.appendChild(reorderIndicatorLine);
134
- setHeaderCellHoldActive(true);
136
+ bodyContainer === null || bodyContainer === void 0 || bodyContainer.appendChild(selectionAreaClonedElement);
137
+ bodyContainer === null || bodyContainer === void 0 || bodyContainer.appendChild(reorderIndicatorLine);
138
+ setHeaderCellHoldActive === null || setHeaderCellHoldActive === void 0 || setHeaderCellHoldActive(true);
135
139
  };
136
140
  };
137
141
  useSpreadsheetMouseMove.useSpreadsheetMouseMove({
@@ -142,10 +146,11 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
142
146
  return /*#__PURE__*/React__default["default"].createElement("div", {
143
147
  className: cx__default["default"]("".concat(blockClass, "__header--container")),
144
148
  role: "rowgroup"
145
- }, headerGroups.map(function (headerGroup, index) {
149
+ }, headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map(function (headerGroup, index) {
150
+ var headerProps = propsHelper.prepareProps(headerGroup.getHeaderGroupProps(), 'key');
146
151
  return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({
147
152
  key: "header_".concat(index)
148
- }, headerGroup.getHeaderGroupProps(), {
153
+ }, headerProps, {
149
154
  style: _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, headerGroup.getHeaderGroupProps().style), {}, {
150
155
  width: getSpreadsheetWidth.getSpreadsheetWidth({
151
156
  type: 'header',
@@ -153,6 +158,7 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
153
158
  scrollBarSizeValue: scrollBarSizeValue,
154
159
  totalVisibleColumns: totalVisibleColumns,
155
160
  defaultColumn: defaultColumn,
161
+ totalColumnsWidth: undefined,
156
162
  visibleColumns: visibleColumns
157
163
  }),
158
164
  overflow: 'hidden'
@@ -175,21 +181,22 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
175
181
  onClick: handleSelectAllClick,
176
182
  className: cx__default["default"]("".concat(blockClass, "__th"), "".concat(blockClass, "--interactive-cell-element"), "".concat(blockClass, "__th--select-all"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__th--active-header"), (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header' && (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header'))
177
183
  }, "\xA0")), headerGroup.headers.map(function (column, index) {
184
+ var colProps = propsHelper.prepareProps(column.getHeaderProps(), 'key');
178
185
  var selectedHeader = checkSelectedHeaderCell.checkSelectedHeaderCell(index, selectionAreas, 'column', rows);
179
186
  return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({
180
187
  key: "column_".concat(index),
181
188
  role: "columnheader",
182
189
  className: "".concat(blockClass, "__columnheader")
183
- }, column.getHeaderProps()), /*#__PURE__*/React__default["default"].createElement("button", {
190
+ }, colProps), /*#__PURE__*/React__default["default"].createElement("button", {
184
191
  id: "".concat(blockClass, "__cell--header--").concat(index),
185
192
  "data-row-index": "header",
186
193
  "data-column-index": index,
187
194
  tabIndex: -1,
188
- onMouseDown: selectedHeader ? handleHeaderMouseDown(index) : null,
195
+ onMouseDown: selectedHeader ? handleHeaderMouseDown(index) : undefined,
189
196
  onMouseUp: selectedHeader ? function () {
190
197
  return setSelectedHeaderReorderActive(false);
191
- } : null,
192
- onClick: !selectedHeader ? handleColumnHeaderClick(index) : null,
198
+ } : undefined,
199
+ onClick: !selectedHeader ? handleColumnHeaderClick(index) : undefined,
193
200
  style: {
194
201
  height: defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.rowHeight,
195
202
  width: (column === null || column === void 0 ? void 0 : column.width) || (defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.width)
@@ -204,6 +211,7 @@ DataSpreadsheetHeader.propTypes = {
204
211
  /**
205
212
  * Object containing the active cell coordinates
206
213
  */
214
+ /**@ts-ignore */
207
215
  activeCellCoordinates: index["default"].shape({
208
216
  row: index["default"].oneOfType([index["default"].number, index["default"].string]),
209
217
  column: index["default"].oneOfType([index["default"].number, index["default"].string])
@@ -223,6 +231,7 @@ DataSpreadsheetHeader.propTypes = {
223
231
  /**
224
232
  * Default spreadsheet sizing values
225
233
  */
234
+ /**@ts-ignore */
226
235
  defaultColumn: index["default"].shape({
227
236
  rowHeight: index["default"].number,
228
237
  rowHeaderWidth: index["default"].number,
@@ -239,6 +248,7 @@ DataSpreadsheetHeader.propTypes = {
239
248
  /**
240
249
  * All of the spreadsheet row data
241
250
  */
251
+ /**@ts-ignore */
242
252
  rows: index["default"].arrayOf(index["default"].object),
243
253
  /**
244
254
  * The scrollbar width
@@ -251,6 +261,7 @@ DataSpreadsheetHeader.propTypes = {
251
261
  /**
252
262
  * All of the cell selection area items
253
263
  */
264
+ /**@ts-ignore */
254
265
  selectionAreas: index["default"].arrayOf(index["default"].object),
255
266
  /**
256
267
  * Setter fn for activeCellCoordinates value
@@ -284,6 +295,7 @@ DataSpreadsheetHeader.propTypes = {
284
295
  /**
285
296
  * Array of visible columns provided by react-table useTable hook
286
297
  */
298
+ /**@ts-ignore */
287
299
  visibleColumns: index["default"].array
288
300
  };
289
301
 
@@ -19,12 +19,13 @@ var useMoveActiveCell = function useMoveActiveCell(_ref) {
19
19
  createActiveCell = _ref.createActiveCell,
20
20
  activeCellContent = _ref.activeCellContent,
21
21
  isActiveHeaderCellChanged = _ref.isActiveHeaderCellChanged;
22
+ var performCreateActiveCell;
22
23
  //new active cell is created when the activeCellContent changes or navigate through headers
23
24
  // Otherwise new active cell will display the old value in a glance
24
25
  React.useEffect(function () {
25
26
  performCreateActiveCell();
26
27
  }, [activeCellContent, performCreateActiveCell, isActiveHeaderCellChanged]);
27
- var performCreateActiveCell = React.useCallback(function () {
28
+ performCreateActiveCell = React.useCallback(function () {
28
29
  var activeCellPlacementElement = spreadsheetRef === null || spreadsheetRef === void 0 ? void 0 : spreadsheetRef.current.querySelector("[data-row-index=\"".concat(activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row, "\"][data-column-index=\"").concat(activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column, "\"]"));
29
30
  var shouldPlaceActiveCellInHeader = (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' && true;
30
31
  var selectAllElement = spreadsheetRef === null || spreadsheetRef === void 0 ? void 0 : spreadsheetRef.current.querySelector("[data-row-index=\"header\"][data-column-index=\"header\"]");
@@ -0,0 +1,30 @@
1
+ export type Size = 'xs' | 'sm' | 'md' | 'lg';
2
+ export type Theme = 'light' | 'dark';
3
+ export interface Column {
4
+ Header?: string;
5
+ accessor?: string | (() => void);
6
+ Cell?: () => void;
7
+ rowHeight?: number;
8
+ rowHeaderWidth?: number;
9
+ width?: number;
10
+ }
11
+ export interface ActiveCellCoordinates {
12
+ row?: number | string;
13
+ column?: number | string;
14
+ }
15
+ export interface PrevState {
16
+ activeCellCoordinates?: ActiveCellCoordinates;
17
+ isEditing?: boolean;
18
+ selectionAreaData?: object[];
19
+ clickAndHoldActive?: boolean;
20
+ rowHeight?: number;
21
+ cellSize?: Size;
22
+ }
23
+ export interface Point {
24
+ column?: number;
25
+ }
26
+ export interface ItemType {
27
+ matcher?: string;
28
+ point1?: Point;
29
+ point2?: Point;
30
+ }
@@ -1,5 +1,22 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import React, { ReactNode } from 'react';
8
+ interface EditTearsheetNarrowProps {
9
+ /**
10
+ * Provide the contents of the EditTearsheetNarrow.
11
+ */
12
+ children: ReactNode;
13
+ /**
14
+ * Provide an optional class to be applied to the containing node.
15
+ */
16
+ className?: string;
17
+ }
1
18
  /**
2
19
  * Use a narrow tearsheet as an alternative to a modal when there is scrolling. See usage guidance for further information.
3
20
  */
4
- export let EditTearsheetNarrow: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
- import React from 'react';
21
+ export declare let EditTearsheetNarrow: React.ForwardRefExoticComponent<EditTearsheetNarrowProps & React.RefAttributes<HTMLDivElement>>;
22
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * GetStartedCard a card with icon, number, and media variants
3
+ */
4
+ export let GetStartedCard: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
+ import React from 'react';
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Copyright IBM Corp. 2020, 2024
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ Object.defineProperty(exports, '__esModule', { value: true });
11
+
12
+ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
13
+ var React = require('react');
14
+ var index = require('../../node_modules/prop-types/index.js');
15
+ var devtools = require('../../global/js/utils/devtools.js');
16
+ var settings = require('../../settings.js');
17
+ var Card = require('../Card/Card.js');
18
+
19
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
+
21
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
22
+
23
+ var componentName = 'GetStartedCard';
24
+
25
+ /**
26
+ * GetStartedCard a card with icon, number, and media variants
27
+ */
28
+ exports.GetStartedCard = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
29
+ var rest = _rollupPluginBabelHelpers["extends"]({}, (_rollupPluginBabelHelpers.objectDestructuringEmpty(_ref), _ref));
30
+ return /*#__PURE__*/React__default["default"].createElement(Card.Card, _rollupPluginBabelHelpers["extends"]({
31
+ getStarted: true,
32
+ ref: ref
33
+ }, rest, devtools.getDevtoolsProps(componentName)));
34
+ });
35
+
36
+ // Return a placeholder if not released and not enabled by feature flag
37
+ exports.GetStartedCard = settings.pkg.checkComponentEnabled(exports.GetStartedCard, componentName);
38
+ exports.GetStartedCard.displayName = componentName;
39
+ exports.GetStartedCard.propTypes = {
40
+ /**
41
+ * Provide an optional class to be applied to the containing node.
42
+ */
43
+ className: index["default"].string,
44
+ /**
45
+ * Optional if the card should be disabled
46
+ */
47
+ disabled: index["default"].bool,
48
+ /**
49
+ * Provides the action icon that's displayed at the footer of the card
50
+ */
51
+ footerActionIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
52
+ /**
53
+ * Optional label for the top of the card
54
+ */
55
+ label: index["default"].oneOfType([index["default"].string, index["default"].object, index["default"].node]),
56
+ /**
57
+ * Optional media content like an image to be placed in the card
58
+ */
59
+ media: index["default"].node,
60
+ /**
61
+ * Icons that are displayed on the card showing the time and skill needed
62
+ */
63
+ metadata: index["default"].arrayOf(index["default"].shape({
64
+ id: index["default"].string,
65
+ icon: index["default"].oneOfType([index["default"].func, index["default"].object]),
66
+ iconDescription: index["default"].string
67
+ })),
68
+ /**
69
+ * Provides the callback for a clickable card
70
+ */
71
+ onClick: index["default"].func.isRequired,
72
+ /**
73
+ * Provides the icon that's displayed at the top of the card
74
+ */
75
+ pictogram: index["default"].oneOfType([index["default"].func, index["default"].object]),
76
+ /**
77
+ * Provides number for card for tasks in a sequential order
78
+ */
79
+ sequence: index["default"].number,
80
+ /**
81
+ * Provides the status that's displayed at the top of the card
82
+ */
83
+ status: index["default"].oneOf(['complete', 'incomplete']),
84
+ /**
85
+ * Title that's displayed at the top of the card
86
+ */
87
+ title: index["default"].oneOfType([index["default"].string, index["default"].object, index["default"].node])
88
+ };
@@ -0,0 +1 @@
1
+ export { GetStartedCard } from "./GetStartedCard";
@@ -86,7 +86,6 @@ exports.Guidebanner = /*#__PURE__*/React__default["default"].forwardRef(function
86
86
  });
87
87
  };
88
88
  return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
89
- "aria-expanded": !isCollapsed,
90
89
  className: cx__default["default"](blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"), withLeftGutter && "".concat(blockClass, "__with-left-gutter")),
91
90
  ref: ref
92
91
  }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React__default["default"].createElement(icons.Idea, {
@@ -117,7 +116,8 @@ exports.Guidebanner = /*#__PURE__*/React__default["default"].forwardRef(function
117
116
  size: "md",
118
117
  className: "".concat(blockClass, "__toggle-button"),
119
118
  onClick: handleClickToggle,
120
- ref: toggleRef
119
+ ref: toggleRef,
120
+ "aria-expanded": !isCollapsed
121
121
  }, isCollapsed ? expandButtonLabel : collapseButtonLabel), showNavigation && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("span", {
122
122
  className: cx__default["default"]("".concat(blockClass, "__back-button"), [scrollPosition === 0 ? "".concat(blockClass, "__back-button--disabled") : null])
123
123
  }, /*#__PURE__*/React__default["default"].createElement(react.IconButton, {
@@ -1,2 +1,163 @@
1
- export let NotificationsPanel: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
1
+ /**
2
+ * Copyright IBM Corp. 2020, 2022
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ /// <reference path="../../../src/custom-typings/index.d.ts" />
2
8
  import React from 'react';
9
+ import { Link } from '@carbon/react';
10
+ interface Link {
11
+ url: string;
12
+ text: string;
13
+ }
14
+ interface Data {
15
+ id?: string | number;
16
+ type?: 'error' | 'warning' | 'success' | 'informational';
17
+ timestamp?: Date;
18
+ title?: string;
19
+ description?: string;
20
+ link?: Link;
21
+ unread?: boolean;
22
+ onNotificationClick?: () => void;
23
+ }
24
+ interface NotificationsPanelProps {
25
+ /**
26
+ * Provide an optional class to be applied to the containing node.
27
+ */
28
+ className?: string;
29
+ /**
30
+ * Array of data for Notifications component to render
31
+ */
32
+ data: Data[];
33
+ /**
34
+ * Sets the `days ago` label text
35
+ */
36
+ daysAgoText?: (value: number) => string;
37
+ /**
38
+ * Label for Dismiss all button
39
+ */
40
+ dismissAllLabel?: string;
41
+ /**
42
+ * Label for Dismiss single notification icon button
43
+ */
44
+ dismissSingleNotificationIconDescription?: string;
45
+ /**
46
+ * Optional: Determines if the `Do not disturb` toggle is on or off when the component is rendered
47
+ */
48
+ doNotDisturbDefaultToggled?: boolean;
49
+ /**
50
+ * Optional: Label for Do not disturb toggle
51
+ */
52
+ doNotDisturbLabel?: string;
53
+ /**
54
+ * Sets the empty state label text when there are no notifications
55
+ */
56
+ emptyStateLabel?: string;
57
+ /**
58
+ * Sets the `hour ago` label text
59
+ */
60
+ hourAgoText?: (value: number) => string;
61
+ /**
62
+ * Sets the `hours ago` label text
63
+ */
64
+ hoursAgoText?: (value: number) => string;
65
+ /**
66
+ * Sets the `minute ago` label text
67
+ */
68
+ minuteAgoText?: (value: number) => string;
69
+ /**
70
+ * Sets the `minutes ago` label text
71
+ */
72
+ minutesAgoText?: (value: number) => string;
73
+ /**
74
+ * Sets the `month ago` label text
75
+ */
76
+ monthAgoText?: (value: number) => string;
77
+ /**
78
+ * Sets the `months ago` label text
79
+ */
80
+ monthsAgoText?: (value: number) => string;
81
+ /**
82
+ * Sets the `now` label text
83
+ */
84
+ nowText?: string;
85
+ /**
86
+ * Sets the notifications panel open state
87
+ */
88
+ onClickOutside: () => void;
89
+ /**
90
+ * Function that will dismiss all notifications
91
+ */
92
+ onDismissAllNotifications?: () => void;
93
+ /**
94
+ * Function that will dismiss a single notification
95
+ */
96
+ onDismissSingleNotification?: (prop: any) => void;
97
+ /**
98
+ * Optional: function that returns the current selected value of the disable notification toggle
99
+ */
100
+ onDoNotDisturbChange?: (prop: any) => void;
101
+ /**
102
+ * Event handler for the View all button
103
+ */
104
+ onSettingsClick?: () => void;
105
+ /**
106
+ * Event handler for the View all button
107
+ */
108
+ onViewAllClick?: () => void;
109
+ /**
110
+ * Determines whether the notifications panel should render or not
111
+ */
112
+ open: boolean;
113
+ /**
114
+ * Sets the previous label text
115
+ */
116
+ previousLabel?: string;
117
+ /**
118
+ * Sets the `read less` label text
119
+ */
120
+ readLessLabel?: string;
121
+ /**
122
+ * Sets the `read more` label text
123
+ */
124
+ readMoreLabel?: string;
125
+ /**
126
+ * Sets the `seconds ago` label text
127
+ */
128
+ secondsAgoText?: (value: number) => string;
129
+ /**
130
+ * Sets the settings icon description text
131
+ */
132
+ settingsIconDescription?: string;
133
+ /**
134
+ * Sets the title for the Notifications panel
135
+ */
136
+ title?: string;
137
+ /**
138
+ * Sets the today label text
139
+ */
140
+ todayLabel?: string;
141
+ /**
142
+ * Sets the View all button text
143
+ */
144
+ viewAllLabel?: (value: number) => string;
145
+ /**
146
+ * Sets the `year ago` label text
147
+ */
148
+ yearAgoText?: (value: number) => string;
149
+ /**
150
+ * Sets the `years ago` label text
151
+ */
152
+ yearsAgoText?: (value: number) => string;
153
+ /**
154
+ * Sets the `Yesterday at` label text
155
+ */
156
+ yesterdayAtText?: (value: number) => string;
157
+ /**
158
+ * Sets the yesterday label text
159
+ */
160
+ yesterdayLabel?: string;
161
+ }
162
+ export declare let NotificationsPanel: React.ForwardRefExoticComponent<NotificationsPanelProps & React.RefAttributes<unknown>>;
163
+ export {};
@@ -218,9 +218,9 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
218
218
  return item.id === id;
219
219
  })[0];
220
220
  var trimLength = 88;
221
- var description = notification.description;
222
- var descriptionClassName = cx__default["default"](["".concat(blockClass, "__notification-description"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-long-description"), notification.showAll), "".concat(blockClass, "__notification-short-description"), !notification.showAll)]);
223
- var showMoreButtonClassName = cx__default["default"]([_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-read-less-button"), notification.showAll), "".concat(blockClass, "__notification-read-more-button"), !notification.showAll)]);
221
+ var description = notification === null || notification === void 0 ? void 0 : notification['description'];
222
+ var descriptionClassName = cx__default["default"](["".concat(blockClass, "__notification-description"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-long-description"), notification === null || notification === void 0 ? void 0 : notification['showAll']), "".concat(blockClass, "__notification-short-description"), !(notification !== null && notification !== void 0 && notification['showAll']))]);
223
+ var showMoreButtonClassName = cx__default["default"]([_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-read-less-button"), notification === null || notification === void 0 ? void 0 : notification['showAll']), "".concat(blockClass, "__notification-read-more-button"), !(notification !== null && notification !== void 0 && notification['showAll']))]);
224
224
  return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("p", {
225
225
  className: descriptionClassName
226
226
  }, description), description.length > trimLength && /*#__PURE__*/React__default["default"].createElement(react.Button, {
@@ -231,14 +231,14 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
231
231
  size: 16
232
232
  }, props));
233
233
  },
234
- iconDescription: notification.showAll ? readLessLabel : readMoreLabel,
234
+ iconDescription: notification !== null && notification !== void 0 && notification['showAll'] ? readLessLabel : readMoreLabel,
235
235
  onClick: function onClick(event) {
236
236
  event.preventDefault();
237
237
  event.stopPropagation();
238
238
  var newData = allNotifications.map(function (item) {
239
- if (item.id === notification.id) {
239
+ if (item.id === (notification === null || notification === void 0 ? void 0 : notification['id'])) {
240
240
  return Object.assign({}, item, {
241
- showAll: !item.showAll
241
+ showAll: !(item !== null && item !== void 0 && item['showAll'])
242
242
  });
243
243
  }
244
244
  return item;
@@ -246,7 +246,7 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
246
246
  setAllNotifications(newData);
247
247
  },
248
248
  className: showMoreButtonClassName
249
- }, notification.showAll ? readLessLabel : readMoreLabel));
249
+ }, notification !== null && notification !== void 0 && notification['showAll'] ? readLessLabel : readMoreLabel));
250
250
  };
251
251
  var renderNotification = function renderNotification(group, notification, index) {
252
252
  var notificationClassName = cx__default["default"](["".concat(blockClass, "__notification"), "".concat(blockClass, "__notification-").concat(group)]);
@@ -255,14 +255,13 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
255
255
  "aria-label": notification.title,
256
256
  key: "".concat(notification.timestamp, "-").concat(notification.title, "-").concat(index),
257
257
  className: notificationClassName,
258
- type: "button",
259
258
  role: "button",
260
259
  tabIndex: 0,
261
260
  onClick: function onClick() {
262
261
  return notification.onNotificationClick(notification);
263
262
  },
264
263
  onKeyDown: function onKeyDown(event) {
265
- if (event.target.classList.contains("".concat(blockClass, "__dismiss-single-button"))) {
264
+ if (event.target instanceof HTMLElement && event.target.classList.contains("".concat(blockClass, "__dismiss-single-button"))) {
266
265
  return;
267
266
  }
268
267
  event.which === 13 && notification.onNotificationClick(notification);
@@ -325,7 +324,7 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
325
324
  id: blockClass,
326
325
  className: cx__default["default"](blockClass, className, "".concat(blockClass, "__container")),
327
326
  style: {
328
- animation: !reducedMotion ? "".concat(open ? 'fade-in 250ms' : 'fade-out forwards 250ms') : null
327
+ animation: !reducedMotion ? "".concat(open ? 'fade-in 250ms' : 'fade-out forwards 250ms') : undefined
329
328
  },
330
329
  onAnimationEnd: onAnimationEnd,
331
330
  ref: ref || notificationPanelRef
@@ -414,6 +413,7 @@ exports.NotificationsPanel.propTypes = {
414
413
  /**
415
414
  * Array of data for Notifications component to render
416
415
  */
416
+ /**@ts-ignore*/
417
417
  data: index["default"].arrayOf(index["default"].shape({
418
418
  id: index["default"].oneOfType([index["default"].string, index["default"].number]),
419
419
  type: index["default"].oneOf(['error', 'warning', 'success', 'informational']),
@@ -5,6 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React, { PropsWithChildren } from 'react';
8
+ import PropTypes from 'prop-types';
8
9
  type Scopes = string[] | object[];
9
10
  interface SearchBarProps extends PropsWithChildren {
10
11
  /** @type {string} Optional additional class name. */
@@ -22,7 +23,7 @@ interface SearchBarProps extends PropsWithChildren {
22
23
  /** @type {Function} Function handler for when the user submits a search. */
23
24
  onSubmit?: (event: any) => void;
24
25
  /** @type {string} Placeholder text to be displayed in the search input. */
25
- placeHolderText: string;
26
+ placeholderText: string;
26
27
  /** @type {Function} Function to get the text for each scope to display in dropdown. */
27
28
  scopeToString?: () => void;
28
29
  /** @type {Array<any>} Array of allowed search scopes. */
@@ -50,4 +51,12 @@ interface SearchBarProps extends PropsWithChildren {
50
51
  }
51
52
  export declare let SearchBar: React.ForwardRefExoticComponent<SearchBarProps & React.RefAttributes<HTMLFormElement>>;
52
53
  declare const conditionalScopePropValidator: (props: any, propName: any, componentName: any, ...rest: any[]) => Error | null;
54
+ export declare const deprecatedProps: {
55
+ /**
56
+ * **Deprecated**
57
+ *
58
+ * Provide accessible label text for the scopes MultiSelect.
59
+ */
60
+ titleText: PropTypes.Requireable<string>;
61
+ };
53
62
  export {};