@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
@@ -17,6 +17,7 @@ import { handleHeaderCellSelection } from './utils/handleHeaderCellSelection.js'
17
17
  import { selectAllCells } from './utils/selectAllCells.js';
18
18
  import { getSpreadsheetWidth } from './utils/getSpreadsheetWidth.js';
19
19
  import { checkForHoldingKey } from './utils/checkForHoldingKey.js';
20
+ import { prepareProps } from '../../global/js/utils/props-helper.js';
20
21
  import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
21
22
  import { useSpreadsheetMouseMove } from './hooks/useSpreadsheetMouseMove.js';
22
23
 
@@ -51,12 +52,12 @@ var DataSpreadsheetHeader = /*#__PURE__*/forwardRef(function (_ref, ref) {
51
52
  setSelectedHeaderReorderActive = _useState4[1];
52
53
  var previousState = usePreviousValue({
53
54
  cellSize: cellSize
54
- });
55
+ }) || {};
55
56
  useEffect(function () {
56
57
  if ((previousState === null || previousState === void 0 ? void 0 : previousState.cellSize) !== cellSize) {
57
- var _ref$current;
58
- 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"));
59
- var hasScrollBar = (scrollContainer === null || scrollContainer === void 0 ? void 0 : scrollContainer.scrollHeight) > (scrollContainer === null || scrollContainer === void 0 ? void 0 : scrollContainer.clientHeight);
58
+ var _current;
59
+ var scrollContainer = ref === null || ref === void 0 || (_current = ref.current) === null || _current === void 0 ? void 0 : _current.querySelector(".".concat(blockClass, "__list--container"));
60
+ 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);
60
61
  var scrollBarValue = hasScrollBar ? 0 : scrollBarSize;
61
62
  setScrollBarSizeValue(scrollBarValue);
62
63
  }
@@ -70,15 +71,16 @@ var DataSpreadsheetHeader = /*#__PURE__*/forwardRef(function (_ref, ref) {
70
71
  activeCellCoordinates: activeCellCoordinates,
71
72
  rows: rows,
72
73
  columns: columns,
74
+ currentMatcher: currentMatcher,
73
75
  setActiveCellCoordinates: setActiveCellCoordinates,
74
76
  setCurrentMatcher: setCurrentMatcher,
75
77
  setSelectionAreas: setSelectionAreas,
76
78
  spreadsheetRef: ref,
77
79
  index: index,
80
+ isKeyboard: undefined,
78
81
  setSelectionAreaData: setSelectionAreaData,
79
82
  isHoldingCommandKey: isHoldingCommandKey,
80
- isHoldingShiftKey: isHoldingShiftKey,
81
- currentMatcher: currentMatcher
83
+ isHoldingShiftKey: isHoldingShiftKey
82
84
  });
83
85
  };
84
86
  };
@@ -95,34 +97,36 @@ var DataSpreadsheetHeader = /*#__PURE__*/forwardRef(function (_ref, ref) {
95
97
  };
96
98
  var handleHeaderMouseDown = function handleHeaderMouseDown(index) {
97
99
  return function (event) {
98
- var _selectionAreaToClone;
100
+ var _selectionAreaToClone, _selectionAreaToClone2, _selectionAreaToClone3, _document;
99
101
  if (event.shiftKey) {
100
102
  // Remove columns, need to call handleHeaderCellSelection
101
103
  return;
102
104
  }
103
105
  setSelectedHeaderReorderActive(true);
104
- var selectionAreaToClone = selectionAreas.filter(function (item) {
106
+ var selectionAreaToClone = selectionAreas === null || selectionAreas === void 0 ? void 0 : selectionAreas.filter(function (item) {
105
107
  return (item === null || item === void 0 ? void 0 : item.matcher) === currentMatcher;
106
108
  });
107
- var selectionAreaElement = ref.current.querySelector("[data-matcher-id=\"".concat((_selectionAreaToClone = selectionAreaToClone[0]) === null || _selectionAreaToClone === void 0 ? void 0 : _selectionAreaToClone.matcher, "\"]"));
109
+ 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, "\"]"));
108
110
  var clickXPosition = event.clientX;
109
111
  var headerButtonCoords = event.target.getBoundingClientRect();
110
112
  var headerIndex = event.target.getAttribute('data-column-index');
111
113
  var offsetXValue = clickXPosition - headerButtonCoords.left;
112
- var lowestColumnIndexFromSelectionArea = Math.min(selectionAreaToClone[0].point1.column, selectionAreaToClone[0].point2.column);
113
- var selectionAreaCoords = selectionAreaElement.getBoundingClientRect();
114
- var updatedOffsetDifference = lowestColumnIndexFromSelectionArea < parseInt(headerIndex) ? offsetXValue + (headerButtonCoords.left - selectionAreaCoords.left) : offsetXValue;
115
- var bodyContainer = document.querySelector(".".concat(blockClass, "__list--container")).firstElementChild;
116
- var selectionAreaClonedElement = selectionAreaElement.cloneNode();
117
- var reorderIndicatorLine = selectionAreaElement.cloneNode();
118
- reorderIndicatorLine.className = "".concat(blockClass, "__reorder-indicator-line");
119
- reorderIndicatorLine.style.width = px(2);
114
+ 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);
115
+ var selectionAreaCoords = (selectionAreaElement === null || selectionAreaElement === void 0 ? void 0 : selectionAreaElement.getBoundingClientRect()) || new DOMRect();
116
+ var updatedOffsetDifference = lowestColumnIndexFromSelectionArea < parseInt(headerIndex) ? offsetXValue + (headerButtonCoords.left - (selectionAreaCoords === null || selectionAreaCoords === void 0 ? void 0 : selectionAreaCoords.left)) : offsetXValue;
117
+ var bodyContainer = (_document = document) === null || _document === void 0 || (_document = _document.querySelector(".".concat(blockClass, "__list--container"))) === null || _document === void 0 ? void 0 : _document.firstElementChild;
118
+ var selectionAreaClonedElement = selectionAreaElement === null || selectionAreaElement === void 0 ? void 0 : selectionAreaElement.cloneNode();
119
+ var reorderIndicatorLine = selectionAreaElement === null || selectionAreaElement === void 0 ? void 0 : selectionAreaElement.cloneNode();
120
+ if (reorderIndicatorLine) {
121
+ reorderIndicatorLine.className = "".concat(blockClass, "__reorder-indicator-line");
122
+ reorderIndicatorLine.style.width = px(2);
123
+ }
120
124
  selectionAreaClonedElement.classList.add("".concat(blockClass, "__selection-area--element-cloned"));
121
- selectionAreaClonedElement.setAttribute('data-clone-offset-x', updatedOffsetDifference);
125
+ selectionAreaClonedElement.setAttribute('data-clone-offset-x', "".concat(updatedOffsetDifference));
122
126
  selectionAreaClonedElement.setAttribute('data-column-index-original', index);
123
- bodyContainer.appendChild(selectionAreaClonedElement);
124
- bodyContainer.appendChild(reorderIndicatorLine);
125
- setHeaderCellHoldActive(true);
127
+ bodyContainer === null || bodyContainer === void 0 || bodyContainer.appendChild(selectionAreaClonedElement);
128
+ bodyContainer === null || bodyContainer === void 0 || bodyContainer.appendChild(reorderIndicatorLine);
129
+ setHeaderCellHoldActive === null || setHeaderCellHoldActive === void 0 || setHeaderCellHoldActive(true);
126
130
  };
127
131
  };
128
132
  useSpreadsheetMouseMove({
@@ -133,10 +137,11 @@ var DataSpreadsheetHeader = /*#__PURE__*/forwardRef(function (_ref, ref) {
133
137
  return /*#__PURE__*/React__default.createElement("div", {
134
138
  className: cx("".concat(blockClass, "__header--container")),
135
139
  role: "rowgroup"
136
- }, headerGroups.map(function (headerGroup, index) {
140
+ }, headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map(function (headerGroup, index) {
141
+ var headerProps = prepareProps(headerGroup.getHeaderGroupProps(), 'key');
137
142
  return /*#__PURE__*/React__default.createElement("div", _extends({
138
143
  key: "header_".concat(index)
139
- }, headerGroup.getHeaderGroupProps(), {
144
+ }, headerProps, {
140
145
  style: _objectSpread2(_objectSpread2({}, headerGroup.getHeaderGroupProps().style), {}, {
141
146
  width: getSpreadsheetWidth({
142
147
  type: 'header',
@@ -144,6 +149,7 @@ var DataSpreadsheetHeader = /*#__PURE__*/forwardRef(function (_ref, ref) {
144
149
  scrollBarSizeValue: scrollBarSizeValue,
145
150
  totalVisibleColumns: totalVisibleColumns,
146
151
  defaultColumn: defaultColumn,
152
+ totalColumnsWidth: undefined,
147
153
  visibleColumns: visibleColumns
148
154
  }),
149
155
  overflow: 'hidden'
@@ -166,21 +172,22 @@ var DataSpreadsheetHeader = /*#__PURE__*/forwardRef(function (_ref, ref) {
166
172
  onClick: handleSelectAllClick,
167
173
  className: cx("".concat(blockClass, "__th"), "".concat(blockClass, "--interactive-cell-element"), "".concat(blockClass, "__th--select-all"), _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'))
168
174
  }, "\xA0")), headerGroup.headers.map(function (column, index) {
175
+ var colProps = prepareProps(column.getHeaderProps(), 'key');
169
176
  var selectedHeader = checkSelectedHeaderCell(index, selectionAreas, 'column', rows);
170
177
  return /*#__PURE__*/React__default.createElement("div", _extends({
171
178
  key: "column_".concat(index),
172
179
  role: "columnheader",
173
180
  className: "".concat(blockClass, "__columnheader")
174
- }, column.getHeaderProps()), /*#__PURE__*/React__default.createElement("button", {
181
+ }, colProps), /*#__PURE__*/React__default.createElement("button", {
175
182
  id: "".concat(blockClass, "__cell--header--").concat(index),
176
183
  "data-row-index": "header",
177
184
  "data-column-index": index,
178
185
  tabIndex: -1,
179
- onMouseDown: selectedHeader ? handleHeaderMouseDown(index) : null,
186
+ onMouseDown: selectedHeader ? handleHeaderMouseDown(index) : undefined,
180
187
  onMouseUp: selectedHeader ? function () {
181
188
  return setSelectedHeaderReorderActive(false);
182
- } : null,
183
- onClick: !selectedHeader ? handleColumnHeaderClick(index) : null,
189
+ } : undefined,
190
+ onClick: !selectedHeader ? handleColumnHeaderClick(index) : undefined,
184
191
  style: {
185
192
  height: defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.rowHeight,
186
193
  width: (column === null || column === void 0 ? void 0 : column.width) || (defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.width)
@@ -195,6 +202,7 @@ DataSpreadsheetHeader.propTypes = {
195
202
  /**
196
203
  * Object containing the active cell coordinates
197
204
  */
205
+ /**@ts-ignore */
198
206
  activeCellCoordinates: PropTypes.shape({
199
207
  row: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
200
208
  column: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
@@ -214,6 +222,7 @@ DataSpreadsheetHeader.propTypes = {
214
222
  /**
215
223
  * Default spreadsheet sizing values
216
224
  */
225
+ /**@ts-ignore */
217
226
  defaultColumn: PropTypes.shape({
218
227
  rowHeight: PropTypes.number,
219
228
  rowHeaderWidth: PropTypes.number,
@@ -230,6 +239,7 @@ DataSpreadsheetHeader.propTypes = {
230
239
  /**
231
240
  * All of the spreadsheet row data
232
241
  */
242
+ /**@ts-ignore */
233
243
  rows: PropTypes.arrayOf(PropTypes.object),
234
244
  /**
235
245
  * The scrollbar width
@@ -242,6 +252,7 @@ DataSpreadsheetHeader.propTypes = {
242
252
  /**
243
253
  * All of the cell selection area items
244
254
  */
255
+ /**@ts-ignore */
245
256
  selectionAreas: PropTypes.arrayOf(PropTypes.object),
246
257
  /**
247
258
  * Setter fn for activeCellCoordinates value
@@ -275,6 +286,7 @@ DataSpreadsheetHeader.propTypes = {
275
286
  /**
276
287
  * Array of visible columns provided by react-table useTable hook
277
288
  */
289
+ /**@ts-ignore */
278
290
  visibleColumns: PropTypes.array
279
291
  };
280
292
 
@@ -15,12 +15,13 @@ var useMoveActiveCell = function useMoveActiveCell(_ref) {
15
15
  createActiveCell = _ref.createActiveCell,
16
16
  activeCellContent = _ref.activeCellContent,
17
17
  isActiveHeaderCellChanged = _ref.isActiveHeaderCellChanged;
18
+ var performCreateActiveCell;
18
19
  //new active cell is created when the activeCellContent changes or navigate through headers
19
20
  // Otherwise new active cell will display the old value in a glance
20
21
  useEffect(function () {
21
22
  performCreateActiveCell();
22
23
  }, [activeCellContent, performCreateActiveCell, isActiveHeaderCellChanged]);
23
- var performCreateActiveCell = useCallback(function () {
24
+ performCreateActiveCell = useCallback(function () {
24
25
  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, "\"]"));
25
26
  var shouldPlaceActiveCellInHeader = (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' && true;
26
27
  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,82 @@
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
+ import { extends as _extends, objectDestructuringEmpty as _objectDestructuringEmpty } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
+ import React__default from 'react';
10
+ import PropTypes from '../../node_modules/prop-types/index.js';
11
+ import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
12
+ import { pkg } from '../../settings.js';
13
+ import { Card } from '../Card/Card.js';
14
+
15
+ var componentName = 'GetStartedCard';
16
+
17
+ /**
18
+ * GetStartedCard a card with icon, number, and media variants
19
+ */
20
+ var GetStartedCard = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
21
+ var rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
22
+ return /*#__PURE__*/React__default.createElement(Card, _extends({
23
+ getStarted: true,
24
+ ref: ref
25
+ }, rest, getDevtoolsProps(componentName)));
26
+ });
27
+
28
+ // Return a placeholder if not released and not enabled by feature flag
29
+ GetStartedCard = pkg.checkComponentEnabled(GetStartedCard, componentName);
30
+ GetStartedCard.displayName = componentName;
31
+ GetStartedCard.propTypes = {
32
+ /**
33
+ * Provide an optional class to be applied to the containing node.
34
+ */
35
+ className: PropTypes.string,
36
+ /**
37
+ * Optional if the card should be disabled
38
+ */
39
+ disabled: PropTypes.bool,
40
+ /**
41
+ * Provides the action icon that's displayed at the footer of the card
42
+ */
43
+ footerActionIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
44
+ /**
45
+ * Optional label for the top of the card
46
+ */
47
+ label: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node]),
48
+ /**
49
+ * Optional media content like an image to be placed in the card
50
+ */
51
+ media: PropTypes.node,
52
+ /**
53
+ * Icons that are displayed on the card showing the time and skill needed
54
+ */
55
+ metadata: PropTypes.arrayOf(PropTypes.shape({
56
+ id: PropTypes.string,
57
+ icon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
58
+ iconDescription: PropTypes.string
59
+ })),
60
+ /**
61
+ * Provides the callback for a clickable card
62
+ */
63
+ onClick: PropTypes.func.isRequired,
64
+ /**
65
+ * Provides the icon that's displayed at the top of the card
66
+ */
67
+ pictogram: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
68
+ /**
69
+ * Provides number for card for tasks in a sequential order
70
+ */
71
+ sequence: PropTypes.number,
72
+ /**
73
+ * Provides the status that's displayed at the top of the card
74
+ */
75
+ status: PropTypes.oneOf(['complete', 'incomplete']),
76
+ /**
77
+ * Title that's displayed at the top of the card
78
+ */
79
+ title: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node])
80
+ };
81
+
82
+ export { GetStartedCard };
@@ -0,0 +1 @@
1
+ export { GetStartedCard } from "./GetStartedCard";
@@ -77,7 +77,6 @@ var Guidebanner = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
77
77
  });
78
78
  };
79
79
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
80
- "aria-expanded": !isCollapsed,
81
80
  className: cx(blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"), withLeftGutter && "".concat(blockClass, "__with-left-gutter")),
82
81
  ref: ref
83
82
  }, getDevtoolsProps(componentName)), /*#__PURE__*/React__default.createElement(Idea, {
@@ -108,7 +107,8 @@ var Guidebanner = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
108
107
  size: "md",
109
108
  className: "".concat(blockClass, "__toggle-button"),
110
109
  onClick: handleClickToggle,
111
- ref: toggleRef
110
+ ref: toggleRef,
111
+ "aria-expanded": !isCollapsed
112
112
  }, isCollapsed ? expandButtonLabel : collapseButtonLabel), showNavigation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
113
113
  className: cx("".concat(blockClass, "__back-button"), [scrollPosition === 0 ? "".concat(blockClass, "__back-button--disabled") : null])
114
114
  }, /*#__PURE__*/React__default.createElement(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 {};
@@ -209,9 +209,9 @@ var NotificationsPanel = /*#__PURE__*/React__default.forwardRef(function (_ref,
209
209
  return item.id === id;
210
210
  })[0];
211
211
  var trimLength = 88;
212
- var description = notification.description;
213
- var descriptionClassName = cx(["".concat(blockClass, "__notification-description"), _defineProperty(_defineProperty({}, "".concat(blockClass, "__notification-long-description"), notification.showAll), "".concat(blockClass, "__notification-short-description"), !notification.showAll)]);
214
- var showMoreButtonClassName = cx([_defineProperty(_defineProperty({}, "".concat(blockClass, "__notification-read-less-button"), notification.showAll), "".concat(blockClass, "__notification-read-more-button"), !notification.showAll)]);
212
+ var description = notification === null || notification === void 0 ? void 0 : notification['description'];
213
+ var descriptionClassName = cx(["".concat(blockClass, "__notification-description"), _defineProperty(_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']))]);
214
+ var showMoreButtonClassName = cx([_defineProperty(_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']))]);
215
215
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", {
216
216
  className: descriptionClassName
217
217
  }, description), description.length > trimLength && /*#__PURE__*/React__default.createElement(Button, {
@@ -222,14 +222,14 @@ var NotificationsPanel = /*#__PURE__*/React__default.forwardRef(function (_ref,
222
222
  size: 16
223
223
  }, props));
224
224
  },
225
- iconDescription: notification.showAll ? readLessLabel : readMoreLabel,
225
+ iconDescription: notification !== null && notification !== void 0 && notification['showAll'] ? readLessLabel : readMoreLabel,
226
226
  onClick: function onClick(event) {
227
227
  event.preventDefault();
228
228
  event.stopPropagation();
229
229
  var newData = allNotifications.map(function (item) {
230
- if (item.id === notification.id) {
230
+ if (item.id === (notification === null || notification === void 0 ? void 0 : notification['id'])) {
231
231
  return Object.assign({}, item, {
232
- showAll: !item.showAll
232
+ showAll: !(item !== null && item !== void 0 && item['showAll'])
233
233
  });
234
234
  }
235
235
  return item;
@@ -237,7 +237,7 @@ var NotificationsPanel = /*#__PURE__*/React__default.forwardRef(function (_ref,
237
237
  setAllNotifications(newData);
238
238
  },
239
239
  className: showMoreButtonClassName
240
- }, notification.showAll ? readLessLabel : readMoreLabel));
240
+ }, notification !== null && notification !== void 0 && notification['showAll'] ? readLessLabel : readMoreLabel));
241
241
  };
242
242
  var renderNotification = function renderNotification(group, notification, index) {
243
243
  var notificationClassName = cx(["".concat(blockClass, "__notification"), "".concat(blockClass, "__notification-").concat(group)]);
@@ -246,14 +246,13 @@ var NotificationsPanel = /*#__PURE__*/React__default.forwardRef(function (_ref,
246
246
  "aria-label": notification.title,
247
247
  key: "".concat(notification.timestamp, "-").concat(notification.title, "-").concat(index),
248
248
  className: notificationClassName,
249
- type: "button",
250
249
  role: "button",
251
250
  tabIndex: 0,
252
251
  onClick: function onClick() {
253
252
  return notification.onNotificationClick(notification);
254
253
  },
255
254
  onKeyDown: function onKeyDown(event) {
256
- if (event.target.classList.contains("".concat(blockClass, "__dismiss-single-button"))) {
255
+ if (event.target instanceof HTMLElement && event.target.classList.contains("".concat(blockClass, "__dismiss-single-button"))) {
257
256
  return;
258
257
  }
259
258
  event.which === 13 && notification.onNotificationClick(notification);
@@ -316,7 +315,7 @@ var NotificationsPanel = /*#__PURE__*/React__default.forwardRef(function (_ref,
316
315
  id: blockClass,
317
316
  className: cx(blockClass, className, "".concat(blockClass, "__container")),
318
317
  style: {
319
- animation: !reducedMotion ? "".concat(open ? 'fade-in 250ms' : 'fade-out forwards 250ms') : null
318
+ animation: !reducedMotion ? "".concat(open ? 'fade-in 250ms' : 'fade-out forwards 250ms') : undefined
320
319
  },
321
320
  onAnimationEnd: onAnimationEnd,
322
321
  ref: ref || notificationPanelRef
@@ -405,6 +404,7 @@ NotificationsPanel.propTypes = {
405
404
  /**
406
405
  * Array of data for Notifications component to render
407
406
  */
407
+ /**@ts-ignore*/
408
408
  data: PropTypes.arrayOf(PropTypes.shape({
409
409
  id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
410
410
  type: PropTypes.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 {};