@carbon/ibm-products 2.61.0 → 2.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (547) hide show
  1. package/css/index-full-carbon.css +170 -22
  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 +170 -22
  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 +170 -22
  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 +170 -22
  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/_virtual/_rollupPluginBabelHelpers.js +4 -4
  18. package/es/components/APIKeyModal/APIKeyDownloader.js +2 -2
  19. package/es/components/APIKeyModal/APIKeyModal.js +16 -16
  20. package/es/components/AboutModal/AboutModal.js +1 -1
  21. package/es/components/ActionBar/ActionBar.js +5 -5
  22. package/es/components/ActionBar/ActionBarOverflowItems.js +3 -3
  23. package/es/components/ActionSet/ActionSet.js +5 -5
  24. package/es/components/AddSelect/AddSelect.js +5 -4
  25. package/es/components/AddSelect/AddSelectBody.js +12 -11
  26. package/es/components/AddSelect/AddSelectColumn.js +1 -1
  27. package/es/components/AddSelect/AddSelectFilter.js +1 -1
  28. package/es/components/AddSelect/AddSelectMetaPanel.js +3 -3
  29. package/es/components/AddSelect/AddSelectRow.js +21 -13
  30. package/es/components/AddSelect/AddSelectSidebar.js +14 -4
  31. package/es/components/AddSelect/AddSelectSort.js +5 -5
  32. package/es/components/AddSelect/add-select-utils.js +3 -3
  33. package/es/components/AddSelect/types/index.d.ts +1 -0
  34. package/es/components/BigNumbers/BigNumbers.js +11 -11
  35. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
  36. package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
  37. package/es/components/Card/Card.js +14 -14
  38. package/es/components/Card/CardFooter.js +4 -4
  39. package/es/components/Card/CardHeader.js +2 -2
  40. package/es/components/Carousel/Carousel.js +16 -16
  41. package/es/components/Cascade/Cascade.js +2 -2
  42. package/es/components/Checklist/Checklist.js +11 -11
  43. package/es/components/Checklist/ChecklistChart.js +1 -1
  44. package/es/components/Checklist/ChecklistIcon.js +1 -1
  45. package/es/components/Coachmark/Coachmark.js +10 -10
  46. package/es/components/Coachmark/CoachmarkDragbar.js +5 -5
  47. package/es/components/Coachmark/CoachmarkHeader.js +4 -4
  48. package/es/components/Coachmark/CoachmarkOverlay.js +4 -4
  49. package/es/components/Coachmark/CoachmarkTagline.js +3 -3
  50. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
  51. package/es/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
  52. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
  53. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
  54. package/es/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
  55. package/es/components/CoachmarkStack/CoachmarkStack.js +12 -22
  56. package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
  57. package/es/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
  58. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
  59. package/es/components/ConditionBuilder/ConditionBuilder.js +2 -2
  60. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
  61. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
  62. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
  63. package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
  64. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
  65. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
  66. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
  67. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
  68. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
  69. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
  70. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
  71. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
  72. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
  73. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
  74. package/es/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
  75. package/es/components/ConditionBuilder/utils/useTranslations.js +2 -2
  76. package/es/components/ConditionBuilder/utils/util.js +13 -13
  77. package/es/components/CreateFullPage/CreateFullPage.js +3 -3
  78. package/es/components/CreateFullPage/CreateFullPageStep.js +9 -9
  79. package/es/components/CreateInfluencer/CreateInfluencer.js +8 -8
  80. package/es/components/CreateModal/CreateModal.js +1 -1
  81. package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
  82. package/es/components/CreateTearsheet/CreateTearsheet.js +4 -4
  83. package/es/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
  84. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
  85. package/es/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
  86. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
  87. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
  88. package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
  89. package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
  90. package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
  91. package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
  92. package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
  93. package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
  94. package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
  95. package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
  96. package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
  97. package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
  98. package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
  99. package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
  100. package/es/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
  101. package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
  102. package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
  103. package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
  104. package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
  105. package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
  106. package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
  107. package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
  108. package/es/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
  109. package/es/components/Datagrid/Datagrid/Datagrid.js +2 -2
  110. package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -1
  111. package/es/components/Datagrid/Datagrid/DatagridContent.js +14 -14
  112. package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
  113. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
  114. package/es/components/Datagrid/Datagrid/DatagridHead.js +2 -2
  115. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
  116. package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
  117. package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -19
  118. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
  119. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
  120. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
  121. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
  122. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
  123. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
  124. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
  125. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
  126. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
  127. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  128. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
  129. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
  130. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
  131. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
  132. package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
  133. package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -5
  134. package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
  135. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
  136. package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
  137. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
  138. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
  139. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
  140. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
  141. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
  142. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
  143. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
  144. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
  145. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
  146. package/es/components/Datagrid/useActionsColumn.js +2 -2
  147. package/es/components/Datagrid/useColumnRightAlign.js +3 -3
  148. package/es/components/Datagrid/useCustomizeColumns.js +1 -1
  149. package/es/components/Datagrid/useDatagrid.js +2 -2
  150. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
  151. package/es/components/Datagrid/useDisableSelectRows.js +16 -16
  152. package/es/components/Datagrid/useExpandedRow.js +1 -1
  153. package/es/components/Datagrid/useFiltering.js +1 -1
  154. package/es/components/Datagrid/useFloatingScroll.js +2 -2
  155. package/es/components/Datagrid/useFocusRowExpander.js +4 -4
  156. package/es/components/Datagrid/useInfiniteScroll.js +1 -1
  157. package/es/components/Datagrid/useInitialColumnSort.js +1 -1
  158. package/es/components/Datagrid/useInlineEdit.js +4 -4
  159. package/es/components/Datagrid/useNestedRowExpander.js +6 -6
  160. package/es/components/Datagrid/useNestedRows.js +6 -6
  161. package/es/components/Datagrid/useOnRowClick.js +1 -1
  162. package/es/components/Datagrid/useRowExpander.js +4 -4
  163. package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
  164. package/es/components/Datagrid/useRowRenderer.js +6 -6
  165. package/es/components/Datagrid/useSelectAllToggle.js +2 -2
  166. package/es/components/Datagrid/useSelectRows.js +5 -5
  167. package/es/components/Datagrid/useSortableColumns.js +11 -11
  168. package/es/components/Datagrid/useStickyColumn.js +8 -8
  169. package/es/components/DecoratorBase/DecoratorBase.js +8 -8
  170. package/es/components/DecoratorBase/DecoratorIcon.js +2 -2
  171. package/es/components/DelimitedList/DelimitedList.js +3 -3
  172. package/es/components/DescriptionList/DescriptionList.js +2 -2
  173. package/es/components/EditInPlace/EditInPlace.js +6 -6
  174. package/es/components/EditSidePanel/EditSidePanel.js +3 -3
  175. package/es/components/EditTearsheet/EditTearsheet.js +3 -3
  176. package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
  177. package/es/components/EmptyStates/EmptyState.js +5 -5
  178. package/es/components/EmptyStates/EmptyStateContent.js +2 -2
  179. package/es/components/EmptyStates/EmptyStateV2.js +2 -2
  180. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
  181. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
  182. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
  183. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
  184. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
  185. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
  186. package/es/components/ExportModal/ExportModal.js +7 -7
  187. package/es/components/FeatureFlags/index.js +1 -1
  188. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
  189. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
  190. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
  191. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
  192. package/es/components/FilterSummary/FilterSummary.js +18 -34
  193. package/es/components/FullPageError/FullPageError.js +1 -1
  194. package/es/components/Guidebanner/Guidebanner.js +8 -8
  195. package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
  196. package/es/components/ImportModal/ImportModal.js +2 -2
  197. package/es/components/InlineTip/InlineTip.d.ts +0 -14
  198. package/es/components/InlineTip/InlineTip.js +13 -35
  199. package/es/components/InlineTip/utils.js +1 -1
  200. package/es/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
  201. package/es/components/InterstitialScreen/InterstitialScreen.js +22 -56
  202. package/es/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
  203. package/es/components/MultiAddSelect/MultiAddSelect.js +2 -1
  204. package/es/components/Nav/Nav.js +3 -3
  205. package/es/components/Nav/NavItem.js +8 -9
  206. package/es/components/Nav/NavList.js +14 -15
  207. package/es/components/NonLinearReading/NonLinearReading.js +1 -1
  208. package/es/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
  209. package/es/components/NotificationsPanel/NotificationsPanel.js +89 -71
  210. package/es/components/OptionsTile/OptionsTile.js +4 -3
  211. package/es/components/PageHeader/PageHeader.js +19 -19
  212. package/es/components/PageHeader/PageHeaderTitle.js +1 -1
  213. package/es/components/PageHeader/PageHeaderUtils.js +1 -1
  214. package/es/components/ProductiveCard/ProductiveCard.js +1 -1
  215. package/es/components/RemoveModal/RemoveModal.js +2 -2
  216. package/es/components/Saving/Saving.js +4 -4
  217. package/es/components/ScrollGradient/ScrollGradient.js +6 -6
  218. package/es/components/SearchBar/SearchBar.js +6 -6
  219. package/es/components/SidePanel/SidePanel.js +45 -45
  220. package/es/components/SimpleHeader/SimpleHeader.js +4 -4
  221. package/es/components/StatusIcon/StatusIcon.js +1 -1
  222. package/es/components/StatusIndicator/StatusIndicator.js +2 -2
  223. package/es/components/StatusIndicator/StatusIndicatorStep.js +1 -1
  224. package/es/components/StringFormatter/StringFormatter.js +4 -4
  225. package/es/components/TagOverflow/TagOverflow.js +7 -7
  226. package/es/components/TagOverflow/TagOverflowModal.js +4 -4
  227. package/es/components/TagOverflow/TagOverflowPopover.js +13 -13
  228. package/es/components/TagSet/TagSet.js +15 -15
  229. package/es/components/TagSet/TagSetModal.js +6 -6
  230. package/es/components/TagSet/TagSetOverflow.js +3 -3
  231. package/es/components/Tearsheet/Tearsheet.js +2 -2
  232. package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
  233. package/es/components/Tearsheet/TearsheetShell.js +6 -6
  234. package/es/components/Toolbar/Toolbar.js +6 -6
  235. package/es/components/Toolbar/ToolbarButton.js +4 -4
  236. package/es/components/TruncatedList/TruncatedList.js +8 -8
  237. package/es/components/UserAvatar/UserAvatar.js +4 -4
  238. package/es/components/UserProfileImage/UserProfileImage.js +2 -2
  239. package/es/components/WebTerminal/WebTerminal.js +8 -8
  240. package/es/global/js/hooks/useControllableState.js +1 -1
  241. package/es/global/js/hooks/useCreateComponentFocus.js +1 -1
  242. package/es/global/js/hooks/useCreateComponentStepChange.js +10 -10
  243. package/es/global/js/hooks/useFocus.js +19 -19
  244. package/es/global/js/hooks/useOverflowItems/index.d.ts +7 -0
  245. package/es/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
  246. package/es/global/js/hooks/useOverflowString.js +6 -6
  247. package/es/global/js/hooks/usePresence.d.ts +23 -0
  248. package/es/global/js/hooks/usePresence.js +26 -6
  249. package/es/global/js/hooks/useResetCreateComponent.js +1 -1
  250. package/es/global/js/hooks/useResizeObserver.js +5 -5
  251. package/es/global/js/hooks/useRetrieveStepData.js +1 -1
  252. package/es/global/js/package-settings.js +4 -4
  253. package/es/global/js/utils/Wrap.js +2 -2
  254. package/es/global/js/utils/checkForOverflow.js +1 -1
  255. package/es/global/js/utils/debounce.d.ts +1 -1
  256. package/es/global/js/utils/debounce.js +2 -2
  257. package/es/global/js/utils/getSupportedLocale.d.ts +2 -0
  258. package/es/global/js/utils/getSupportedLocale.js +2 -0
  259. package/es/global/js/utils/lastIndexInArray.js +1 -1
  260. package/es/global/js/utils/props-helper.js +1 -1
  261. package/es/node_modules/@carbon/icon-helpers/es/index.js +2 -2
  262. package/es/node_modules/@carbon/icons-react/es/Icon.js +2 -2
  263. package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +894 -863
  264. package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
  265. package/es/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  266. package/es/settings.js +2 -2
  267. package/lib/_virtual/_rollupPluginBabelHelpers.js +4 -4
  268. package/lib/components/APIKeyModal/APIKeyDownloader.js +2 -2
  269. package/lib/components/APIKeyModal/APIKeyModal.js +16 -16
  270. package/lib/components/AboutModal/AboutModal.js +1 -1
  271. package/lib/components/ActionBar/ActionBar.js +5 -5
  272. package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -3
  273. package/lib/components/ActionSet/ActionSet.js +5 -5
  274. package/lib/components/AddSelect/AddSelect.js +5 -4
  275. package/lib/components/AddSelect/AddSelectBody.js +12 -11
  276. package/lib/components/AddSelect/AddSelectColumn.js +1 -1
  277. package/lib/components/AddSelect/AddSelectFilter.js +1 -1
  278. package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -3
  279. package/lib/components/AddSelect/AddSelectRow.js +20 -12
  280. package/lib/components/AddSelect/AddSelectSidebar.js +14 -4
  281. package/lib/components/AddSelect/AddSelectSort.js +5 -5
  282. package/lib/components/AddSelect/add-select-utils.js +3 -3
  283. package/lib/components/AddSelect/types/index.d.ts +1 -0
  284. package/lib/components/BigNumbers/BigNumbers.js +10 -10
  285. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
  286. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
  287. package/lib/components/Card/Card.js +14 -14
  288. package/lib/components/Card/CardFooter.js +4 -4
  289. package/lib/components/Card/CardHeader.js +2 -2
  290. package/lib/components/Carousel/Carousel.js +16 -16
  291. package/lib/components/Cascade/Cascade.js +2 -2
  292. package/lib/components/Checklist/Checklist.js +11 -11
  293. package/lib/components/Checklist/ChecklistChart.js +1 -1
  294. package/lib/components/Checklist/ChecklistIcon.js +1 -1
  295. package/lib/components/Coachmark/Coachmark.js +10 -10
  296. package/lib/components/Coachmark/CoachmarkDragbar.js +5 -5
  297. package/lib/components/Coachmark/CoachmarkHeader.js +4 -4
  298. package/lib/components/Coachmark/CoachmarkOverlay.js +4 -4
  299. package/lib/components/Coachmark/CoachmarkTagline.js +3 -3
  300. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
  301. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
  302. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
  303. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
  304. package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
  305. package/lib/components/CoachmarkStack/CoachmarkStack.js +12 -22
  306. package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
  307. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
  308. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
  309. package/lib/components/ConditionBuilder/ConditionBuilder.js +2 -2
  310. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
  311. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
  312. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
  313. package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
  314. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
  315. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
  316. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
  317. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
  318. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
  319. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
  320. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
  321. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
  322. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
  323. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
  324. package/lib/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
  325. package/lib/components/ConditionBuilder/utils/useTranslations.js +2 -2
  326. package/lib/components/ConditionBuilder/utils/util.js +13 -13
  327. package/lib/components/CreateFullPage/CreateFullPage.js +3 -3
  328. package/lib/components/CreateFullPage/CreateFullPageStep.js +9 -9
  329. package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -8
  330. package/lib/components/CreateModal/CreateModal.js +1 -1
  331. package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
  332. package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
  333. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
  334. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
  335. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
  336. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
  337. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
  338. package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
  339. package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
  340. package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
  341. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
  342. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
  343. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
  344. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
  345. package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
  346. package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
  347. package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
  348. package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
  349. package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
  350. package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
  351. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
  352. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
  353. package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
  354. package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
  355. package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
  356. package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
  357. package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
  358. package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
  359. package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -2
  360. package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -1
  361. package/lib/components/Datagrid/Datagrid/DatagridContent.js +14 -14
  362. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
  363. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
  364. package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -2
  365. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
  366. package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
  367. package/lib/components/Datagrid/Datagrid/DatagridRow.js +19 -19
  368. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
  369. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
  370. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
  371. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
  372. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
  373. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
  374. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
  375. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
  376. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
  377. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  378. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
  379. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
  380. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
  381. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
  382. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
  383. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -6
  384. package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
  385. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
  386. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
  387. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
  388. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
  389. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
  390. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
  391. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
  392. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
  393. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
  394. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
  395. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
  396. package/lib/components/Datagrid/useActionsColumn.js +2 -2
  397. package/lib/components/Datagrid/useColumnRightAlign.js +3 -3
  398. package/lib/components/Datagrid/useCustomizeColumns.js +1 -1
  399. package/lib/components/Datagrid/useDatagrid.js +2 -2
  400. package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -1
  401. package/lib/components/Datagrid/useDisableSelectRows.js +16 -16
  402. package/lib/components/Datagrid/useExpandedRow.js +1 -1
  403. package/lib/components/Datagrid/useFiltering.js +1 -1
  404. package/lib/components/Datagrid/useFloatingScroll.js +2 -2
  405. package/lib/components/Datagrid/useFocusRowExpander.js +4 -4
  406. package/lib/components/Datagrid/useInfiniteScroll.js +1 -1
  407. package/lib/components/Datagrid/useInitialColumnSort.js +1 -1
  408. package/lib/components/Datagrid/useInlineEdit.js +4 -4
  409. package/lib/components/Datagrid/useNestedRowExpander.js +6 -6
  410. package/lib/components/Datagrid/useNestedRows.js +6 -6
  411. package/lib/components/Datagrid/useOnRowClick.js +1 -1
  412. package/lib/components/Datagrid/useRowExpander.js +4 -4
  413. package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
  414. package/lib/components/Datagrid/useRowRenderer.js +6 -6
  415. package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
  416. package/lib/components/Datagrid/useSelectRows.js +5 -5
  417. package/lib/components/Datagrid/useSortableColumns.js +11 -11
  418. package/lib/components/Datagrid/useStickyColumn.js +8 -8
  419. package/lib/components/DecoratorBase/DecoratorBase.js +8 -8
  420. package/lib/components/DecoratorBase/DecoratorIcon.js +2 -2
  421. package/lib/components/DelimitedList/DelimitedList.js +3 -3
  422. package/lib/components/DescriptionList/DescriptionList.js +2 -2
  423. package/lib/components/EditInPlace/EditInPlace.js +6 -6
  424. package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
  425. package/lib/components/EditTearsheet/EditTearsheet.js +3 -3
  426. package/lib/components/EditTearsheet/EditTearsheetForm.js +2 -2
  427. package/lib/components/EmptyStates/EmptyState.js +5 -5
  428. package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
  429. package/lib/components/EmptyStates/EmptyStateV2.js +2 -2
  430. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
  431. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
  432. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
  433. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
  434. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
  435. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
  436. package/lib/components/ExportModal/ExportModal.js +7 -7
  437. package/lib/components/FeatureFlags/index.js +1 -1
  438. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
  439. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
  440. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
  441. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
  442. package/lib/components/FilterSummary/FilterSummary.js +18 -34
  443. package/lib/components/FullPageError/FullPageError.js +1 -1
  444. package/lib/components/Guidebanner/Guidebanner.js +8 -8
  445. package/lib/components/Guidebanner/GuidebannerElementButton.js +1 -1
  446. package/lib/components/ImportModal/ImportModal.js +2 -2
  447. package/lib/components/InlineTip/InlineTip.d.ts +0 -14
  448. package/lib/components/InlineTip/InlineTip.js +13 -35
  449. package/lib/components/InlineTip/utils.js +1 -1
  450. package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
  451. package/lib/components/InterstitialScreen/InterstitialScreen.js +22 -56
  452. package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
  453. package/lib/components/MultiAddSelect/MultiAddSelect.js +2 -1
  454. package/lib/components/Nav/Nav.js +3 -3
  455. package/lib/components/Nav/NavItem.js +12 -13
  456. package/lib/components/Nav/NavList.js +18 -19
  457. package/lib/components/NonLinearReading/NonLinearReading.js +1 -1
  458. package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
  459. package/lib/components/NotificationsPanel/NotificationsPanel.js +89 -71
  460. package/lib/components/OptionsTile/OptionsTile.js +4 -3
  461. package/lib/components/PageHeader/PageHeader.js +19 -19
  462. package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
  463. package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
  464. package/lib/components/ProductiveCard/ProductiveCard.js +1 -1
  465. package/lib/components/RemoveModal/RemoveModal.js +2 -2
  466. package/lib/components/Saving/Saving.js +4 -4
  467. package/lib/components/ScrollGradient/ScrollGradient.js +6 -6
  468. package/lib/components/SearchBar/SearchBar.js +6 -6
  469. package/lib/components/SidePanel/SidePanel.js +45 -45
  470. package/lib/components/SimpleHeader/SimpleHeader.js +4 -4
  471. package/lib/components/StatusIcon/StatusIcon.js +1 -1
  472. package/lib/components/StatusIndicator/StatusIndicator.js +2 -2
  473. package/lib/components/StatusIndicator/StatusIndicatorStep.js +1 -1
  474. package/lib/components/StringFormatter/StringFormatter.js +4 -4
  475. package/lib/components/TagOverflow/TagOverflow.js +7 -7
  476. package/lib/components/TagOverflow/TagOverflowModal.js +4 -4
  477. package/lib/components/TagOverflow/TagOverflowPopover.js +13 -13
  478. package/lib/components/TagSet/TagSet.js +15 -15
  479. package/lib/components/TagSet/TagSetModal.js +6 -6
  480. package/lib/components/TagSet/TagSetOverflow.js +3 -3
  481. package/lib/components/Tearsheet/Tearsheet.js +2 -2
  482. package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
  483. package/lib/components/Tearsheet/TearsheetShell.js +6 -6
  484. package/lib/components/Toolbar/Toolbar.js +6 -6
  485. package/lib/components/Toolbar/ToolbarButton.js +4 -4
  486. package/lib/components/TruncatedList/TruncatedList.js +8 -8
  487. package/lib/components/UserAvatar/UserAvatar.js +4 -4
  488. package/lib/components/UserProfileImage/UserProfileImage.js +2 -2
  489. package/lib/components/WebTerminal/WebTerminal.js +8 -8
  490. package/lib/global/js/hooks/useControllableState.js +1 -1
  491. package/lib/global/js/hooks/useCreateComponentFocus.js +1 -1
  492. package/lib/global/js/hooks/useCreateComponentStepChange.js +10 -10
  493. package/lib/global/js/hooks/useFocus.js +19 -19
  494. package/lib/global/js/hooks/useOverflowItems/index.d.ts +7 -0
  495. package/lib/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
  496. package/lib/global/js/hooks/useOverflowString.js +6 -6
  497. package/lib/global/js/hooks/usePresence.d.ts +23 -0
  498. package/lib/global/js/hooks/usePresence.js +26 -6
  499. package/lib/global/js/hooks/useResetCreateComponent.js +1 -1
  500. package/lib/global/js/hooks/useResizeObserver.js +5 -5
  501. package/lib/global/js/hooks/useRetrieveStepData.js +1 -1
  502. package/lib/global/js/package-settings.js +4 -4
  503. package/lib/global/js/utils/Wrap.js +2 -2
  504. package/lib/global/js/utils/checkForOverflow.js +1 -1
  505. package/lib/global/js/utils/debounce.d.ts +1 -1
  506. package/lib/global/js/utils/debounce.js +2 -2
  507. package/lib/global/js/utils/getSupportedLocale.d.ts +2 -0
  508. package/lib/global/js/utils/getSupportedLocale.js +2 -0
  509. package/lib/global/js/utils/lastIndexInArray.js +1 -1
  510. package/lib/global/js/utils/props-helper.js +1 -1
  511. package/lib/node_modules/@carbon/icon-helpers/es/index.js +2 -2
  512. package/lib/node_modules/@carbon/icons-react/es/Icon.js +2 -2
  513. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +902 -871
  514. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
  515. package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  516. package/lib/settings.js +2 -2
  517. package/package.json +19 -19
  518. package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +100 -22
  519. package/scss/components/Datagrid/styles/addons/_animations.scss +56 -0
  520. package/scss/components/FilterSummary/_animations.scss +20 -0
  521. package/scss/components/FilterSummary/_filter-summary.scss +11 -0
  522. package/scss/components/FullPageError/_full-page-error.scss +4 -0
  523. package/scss/components/GetStartedCard/_get-started-card.scss +2 -2
  524. package/scss/components/NotificationsPanel/_notifications-panel.scss +35 -7
  525. package/scss/components/SidePanel/_side-panel.scss +4 -2
  526. package/scss/components/Tearsheet/_tearsheet.scss +6 -12
  527. package/telemetry.yml +9 -17
  528. package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
  529. package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -80
  530. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
  531. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -146
  532. package/es/components/SteppedAnimatedMedia/index.d.ts +0 -8
  533. package/es/global/js/utils/getBezierValues.d.ts +0 -1
  534. package/es/global/js/utils/getBezierValues.js +0 -28
  535. package/es/global/js/utils/motionConstants.d.ts +0 -23
  536. package/es/global/js/utils/motionConstants.js +0 -39
  537. package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
  538. package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -84
  539. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
  540. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -148
  541. package/lib/components/SteppedAnimatedMedia/index.d.ts +0 -8
  542. package/lib/global/js/utils/getBezierValues.d.ts +0 -1
  543. package/lib/global/js/utils/getBezierValues.js +0 -30
  544. package/lib/global/js/utils/motionConstants.d.ts +0 -23
  545. package/lib/global/js/utils/motionConstants.js +0 -42
  546. /package/es/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
  547. /package/lib/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
@@ -53,29 +53,29 @@ var defaults = {
53
53
  */
54
54
  var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
55
55
  var _ref$cellSize = _ref.cellSize,
56
- cellSize = _ref$cellSize === undefined ? 'sm' : _ref$cellSize,
56
+ cellSize = _ref$cellSize === void 0 ? 'sm' : _ref$cellSize,
57
57
  className = _ref.className,
58
58
  _ref$columns = _ref.columns,
59
- columns = _ref$columns === undefined ? defaults.columns : _ref$columns,
59
+ columns = _ref$columns === void 0 ? defaults.columns : _ref$columns,
60
60
  _ref$data = _ref.data,
61
- data = _ref$data === undefined ? defaults.data : _ref$data,
61
+ data = _ref$data === void 0 ? defaults.data : _ref$data,
62
62
  _ref$defaultEmptyRowC = _ref.defaultEmptyRowCount,
63
- defaultEmptyRowCount = _ref$defaultEmptyRowC === undefined ? defaults.defaultEmptyRowCount : _ref$defaultEmptyRowC,
63
+ defaultEmptyRowCount = _ref$defaultEmptyRowC === void 0 ? defaults.defaultEmptyRowCount : _ref$defaultEmptyRowC,
64
64
  _ref$onDataUpdate = _ref.onDataUpdate,
65
- onDataUpdate = _ref$onDataUpdate === undefined ? defaults.onDataUpdate : _ref$onDataUpdate,
65
+ onDataUpdate = _ref$onDataUpdate === void 0 ? defaults.onDataUpdate : _ref$onDataUpdate,
66
66
  _ref$onColDrag = _ref.onColDrag,
67
- onColDrag = _ref$onColDrag === undefined ? defaults.onColDrag : _ref$onColDrag,
67
+ onColDrag = _ref$onColDrag === void 0 ? defaults.onColDrag : _ref$onColDrag,
68
68
  id = _ref.id,
69
69
  _ref$onActiveCellChan = _ref.onActiveCellChange,
70
- onActiveCellChange = _ref$onActiveCellChan === undefined ? defaults.onActiveCellChange : _ref$onActiveCellChan,
70
+ onActiveCellChange = _ref$onActiveCellChan === void 0 ? defaults.onActiveCellChange : _ref$onActiveCellChan,
71
71
  _ref$onSelectionAreaC = _ref.onSelectionAreaChange,
72
- onSelectionAreaChange = _ref$onSelectionAreaC === undefined ? defaults.onSelectionAreaChange : _ref$onSelectionAreaC,
72
+ onSelectionAreaChange = _ref$onSelectionAreaC === void 0 ? defaults.onSelectionAreaChange : _ref$onSelectionAreaC,
73
73
  renderRowHeader = _ref.renderRowHeader,
74
74
  renderRowHeaderDirection = _ref.renderRowHeaderDirection,
75
75
  _ref$disableColumnSwa = _ref.disableColumnSwapping,
76
- disableColumnSwapping = _ref$disableColumnSwa === undefined ? false : _ref$disableColumnSwa,
76
+ disableColumnSwapping = _ref$disableColumnSwa === void 0 ? false : _ref$disableColumnSwa,
77
77
  _ref$readOnlyTable = _ref.readOnlyTable,
78
- readOnlyTable = _ref$readOnlyTable === undefined ? false : _ref$readOnlyTable,
78
+ readOnlyTable = _ref$readOnlyTable === void 0 ? false : _ref$readOnlyTable,
79
79
  selectAllAriaLabel = _ref.selectAllAriaLabel,
80
80
  spreadsheetAriaLabel = _ref.spreadsheetAriaLabel,
81
81
  theme = _ref.theme,
@@ -227,12 +227,12 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
227
227
  setPastColumns([]);
228
228
  }
229
229
  }
230
- }, [previousState === null || previousState === undefined ? undefined : previousState.selectedHeaderReorderActive, currentColumns, headerCellHoldActive, columns, activeCellContent, onColDrag, pastColumns]);
230
+ }, [previousState === null || previousState === void 0 ? void 0 : previousState.selectedHeaderReorderActive, currentColumns, headerCellHoldActive, columns, activeCellContent, onColDrag, pastColumns]);
231
231
 
232
232
  // Removes the active cell element
233
233
  var removeActiveCell = useCallback(function () {
234
234
  var _current;
235
- var activeCellHighlight = spreadsheetRef === null || spreadsheetRef === undefined || (_current = spreadsheetRef.current) === null || _current === undefined ? undefined : _current.querySelector(".".concat(blockClass, "__active-cell--highlight"));
235
+ var activeCellHighlight = spreadsheetRef === null || spreadsheetRef === void 0 || (_current = spreadsheetRef.current) === null || _current === void 0 ? void 0 : _current.querySelector(".".concat(blockClass, "__active-cell--highlight"));
236
236
  if (activeCellHighlight) {
237
237
  activeCellHighlight.style.display = 'none';
238
238
  }
@@ -240,7 +240,7 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
240
240
  var removeCellEditor = useCallback(function () {
241
241
  setCellEditorValue('');
242
242
  setIsEditing(false);
243
- if (cellEditorRef !== null && cellEditorRef !== undefined && cellEditorRef.current) {
243
+ if (cellEditorRef !== null && cellEditorRef !== void 0 && cellEditorRef.current) {
244
244
  cellEditorRef.current.style.display = 'none';
245
245
  }
246
246
  }, []);
@@ -248,25 +248,25 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
248
248
  // Remove cell editor if the active cell coordinates change and save with new cell data, this will
249
249
  // happen if you click on another cell while isEditing is true
250
250
  useEffect(function () {
251
- var prevCoords = previousState === null || previousState === undefined ? undefined : previousState.activeCellCoordinates;
252
- if (((prevCoords === null || prevCoords === undefined ? undefined : prevCoords.row) !== (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) || (prevCoords === null || prevCoords === undefined ? undefined : prevCoords.column) !== (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column)) && isEditing) {
253
- var cellProps = rows[Number(prevCoords === null || prevCoords === undefined ? undefined : prevCoords.row)].cells[Number(prevCoords === null || prevCoords === undefined ? undefined : prevCoords.column)];
251
+ var prevCoords = previousState === null || previousState === void 0 ? void 0 : previousState.activeCellCoordinates;
252
+ if (((prevCoords === null || prevCoords === void 0 ? void 0 : prevCoords.row) !== (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) || (prevCoords === null || prevCoords === void 0 ? void 0 : prevCoords.column) !== (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column)) && isEditing) {
253
+ var cellProps = rows[Number(prevCoords === null || prevCoords === void 0 ? void 0 : prevCoords.row)].cells[Number(prevCoords === null || prevCoords === void 0 ? void 0 : prevCoords.column)];
254
254
  removeCellEditor();
255
- updateData(prevCoords === null || prevCoords === undefined ? undefined : prevCoords.row, cellProps.column.id, undefined);
256
- if (cellEditorRulerRef !== null && cellEditorRulerRef !== undefined && cellEditorRulerRef.current) {
255
+ updateData(prevCoords === null || prevCoords === void 0 ? void 0 : prevCoords.row, cellProps.column.id, undefined);
256
+ if (cellEditorRulerRef !== null && cellEditorRulerRef !== void 0 && cellEditorRulerRef.current) {
257
257
  cellEditorRulerRef.current.textContent = '';
258
258
  }
259
259
  }
260
- if ((prevCoords === null || prevCoords === undefined ? undefined : prevCoords.row) !== (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) || (prevCoords === null || prevCoords === undefined ? undefined : prevCoords.column) !== (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column)) {
261
- if (activeCellCoordinates && (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) !== 'header' && (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) !== 'header') {
262
- var activeCellFullData = typeof (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'number' && typeof (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'number' ? rows[activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row].cells[activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column] : null;
260
+ if ((prevCoords === null || prevCoords === void 0 ? void 0 : prevCoords.row) !== (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) || (prevCoords === null || prevCoords === void 0 ? void 0 : prevCoords.column) !== (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column)) {
261
+ if (activeCellCoordinates && (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) !== 'header' && (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) !== 'header') {
262
+ var activeCellFullData = typeof (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'number' && typeof (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'number' ? rows[activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row].cells[activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column] : null;
263
263
  if (activeCellFullData) {
264
264
  setActiveCellContent(activeCellFullData.render('Cell'));
265
265
  } else {
266
266
  setActiveCellContent(null);
267
267
  }
268
268
  }
269
- if (activeCellCoordinates && (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header') {
269
+ if (activeCellCoordinates && (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header') {
270
270
  setActiveCellContent(null);
271
271
  setIsActiveHeaderCellChanged(function (prev) {
272
272
  return !prev;
@@ -279,14 +279,14 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
279
279
  isBlurSpreadsheet.current = false;
280
280
  removeCellEditor();
281
281
  }
282
- }, [isBlurSpreadsheet, activeCellCoordinates, previousState === null || previousState === undefined ? undefined : previousState.activeCellCoordinates, previousState === null || previousState === undefined ? undefined : previousState.cellEditorValue, updateData, rows, isEditing, removeCellEditor, activeCellContent]);
282
+ }, [isBlurSpreadsheet, activeCellCoordinates, previousState === null || previousState === void 0 ? void 0 : previousState.activeCellCoordinates, previousState === null || previousState === void 0 ? void 0 : previousState.cellEditorValue, updateData, rows, isEditing, removeCellEditor, activeCellContent]);
283
283
  var createActiveCell = useCallback(function (_ref3) {
284
284
  var placementElement = _ref3.placementElement,
285
285
  coords = _ref3.coords,
286
286
  _ref3$addToHeader = _ref3.addToHeader,
287
- addToHeader = _ref3$addToHeader === undefined ? false : _ref3$addToHeader;
288
- var activeCellFullData = typeof (coords === null || coords === undefined ? undefined : coords.column) === 'number' && typeof (coords === null || coords === undefined ? undefined : coords.row) === 'number' ? rows[coords === null || coords === undefined ? undefined : coords.row].cells[coords === null || coords === undefined ? undefined : coords.column] : null;
289
- var activeCellValue = activeCellFullData ? Object.values(activeCellFullData.row.values)[coords === null || coords === undefined ? undefined : coords.column] : null;
287
+ addToHeader = _ref3$addToHeader === void 0 ? false : _ref3$addToHeader;
288
+ var activeCellFullData = typeof (coords === null || coords === void 0 ? void 0 : coords.column) === 'number' && typeof (coords === null || coords === void 0 ? void 0 : coords.row) === 'number' ? rows[coords === null || coords === void 0 ? void 0 : coords.row].cells[coords === null || coords === void 0 ? void 0 : coords.column] : null;
289
+ var activeCellValue = activeCellFullData ? Object.values(activeCellFullData.row.values)[coords === null || coords === void 0 ? void 0 : coords.column] : null;
290
290
  createActiveCellFn({
291
291
  placementElement: placementElement,
292
292
  coords: coords,
@@ -336,10 +336,10 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
336
336
  }, [activeCellCoordinates]);
337
337
  var updateActiveCellCoordinates = useCallback(function (_ref4) {
338
338
  var _ref4$coords = _ref4.coords,
339
- coords = _ref4$coords === undefined ? _objectSpread2({}, activeCellCoordinates) : _ref4$coords,
339
+ coords = _ref4$coords === void 0 ? _objectSpread2({}, activeCellCoordinates) : _ref4$coords,
340
340
  updatedValue = _ref4.updatedValue,
341
341
  _ref4$optOutOfSelecti = _ref4.optOutOfSelectionAreaUpdate,
342
- optOutOfSelectionAreaUpdate = _ref4$optOutOfSelecti === undefined ? false : _ref4$optOutOfSelecti;
342
+ optOutOfSelectionAreaUpdate = _ref4$optOutOfSelecti === void 0 ? false : _ref4$optOutOfSelecti;
343
343
  var newActiveCell = _objectSpread2(_objectSpread2({}, coords), updatedValue);
344
344
  setActiveCellCoordinates(newActiveCell);
345
345
  // Only run if the active cell is _not_ a header cell. This will add a point1 object
@@ -374,7 +374,7 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
374
374
  }, [isEditing]);
375
375
  var handleArrowKeyPress = useCallback(function (arrowKey) {
376
376
  var _event;
377
- (_event = event) === null || _event === undefined || _event.preventDefault();
377
+ (_event = event) === null || _event === void 0 || _event.preventDefault();
378
378
  handleInitialArrowPress();
379
379
  var coordinatesClone = _objectSpread2({}, activeCellCoordinates);
380
380
  var updatedValue;
@@ -477,31 +477,31 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
477
477
  var _activeCellFullData$r;
478
478
  setIsEditing(true);
479
479
  setClickAndHoldActive(false);
480
- var activeCellFullData = typeof (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'number' && typeof (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'number' ? rows[activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row].cells[activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column] : null;
481
- var activeCellValue = activeCellFullData === null || activeCellFullData === undefined || (_activeCellFullData$r = activeCellFullData.row) === null || _activeCellFullData$r === undefined || (_activeCellFullData$r = _activeCellFullData$r.cells) === null || _activeCellFullData$r === undefined || (_activeCellFullData$r = _activeCellFullData$r[Number(activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column)]) === null || _activeCellFullData$r === undefined ? undefined : _activeCellFullData$r.value;
480
+ var activeCellFullData = typeof (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'number' && typeof (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'number' ? rows[activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row].cells[activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column] : null;
481
+ var activeCellValue = activeCellFullData === null || activeCellFullData === void 0 || (_activeCellFullData$r = activeCellFullData.row) === null || _activeCellFullData$r === void 0 || (_activeCellFullData$r = _activeCellFullData$r.cells) === null || _activeCellFullData$r === void 0 || (_activeCellFullData$r = _activeCellFullData$r[Number(activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column)]) === null || _activeCellFullData$r === void 0 ? void 0 : _activeCellFullData$r.value;
482
482
  setCellEditorValue(activeCellValue || '');
483
- if (cellEditorRulerRef !== null && cellEditorRulerRef !== undefined && cellEditorRulerRef.current) {
483
+ if (cellEditorRulerRef !== null && cellEditorRulerRef !== void 0 && cellEditorRulerRef.current) {
484
484
  cellEditorRulerRef.current.textContent = activeCellValue;
485
485
  }
486
- if (cellEditorRef !== null && cellEditorRef !== undefined && cellEditorRef.current && activeCellRef !== null && activeCellRef !== undefined && activeCellRef.current) {
486
+ if (cellEditorRef !== null && cellEditorRef !== void 0 && cellEditorRef.current && activeCellRef !== null && activeCellRef !== void 0 && activeCellRef.current) {
487
487
  var _activeCellRef$curren;
488
- cellEditorRef.current.style.width = activeCellRef === null || activeCellRef === undefined || (_activeCellRef$curren = activeCellRef.current) === null || _activeCellRef$curren === undefined || (_activeCellRef$curren = _activeCellRef$curren.style) === null || _activeCellRef$curren === undefined ? undefined : _activeCellRef$curren.width;
488
+ cellEditorRef.current.style.width = activeCellRef === null || activeCellRef === void 0 || (_activeCellRef$curren = activeCellRef.current) === null || _activeCellRef$curren === void 0 || (_activeCellRef$curren = _activeCellRef$curren.style) === null || _activeCellRef$curren === void 0 ? void 0 : _activeCellRef$curren.width;
489
489
  }
490
490
  };
491
491
 
492
492
  // Sets the initial placement of the cell editor cursor at the end of the text area
493
493
  // this is not done for us by default in Safari
494
494
  useEffect(function () {
495
- if (isEditing && !(previousState !== null && previousState !== undefined && previousState.isEditing)) {
495
+ if (isEditing && !(previousState !== null && previousState !== void 0 && previousState.isEditing)) {
496
496
  var _cellEditorRef$curren, _cellEditorRulerRef$c, _cellEditorRulerRef$c2, _cellEditorRef$curren2;
497
- cellEditorRef === null || cellEditorRef === undefined || (_cellEditorRef$curren = cellEditorRef.current) === null || _cellEditorRef$curren === undefined || _cellEditorRef$curren.setSelectionRange(Number(cellEditorRulerRef === null || cellEditorRulerRef === undefined || (_cellEditorRulerRef$c = cellEditorRulerRef.current) === null || _cellEditorRulerRef$c === undefined || (_cellEditorRulerRef$c = _cellEditorRulerRef$c.textContent) === null || _cellEditorRulerRef$c === undefined ? undefined : _cellEditorRulerRef$c.length), Number(cellEditorRulerRef === null || cellEditorRulerRef === undefined || (_cellEditorRulerRef$c2 = cellEditorRulerRef.current) === null || _cellEditorRulerRef$c2 === undefined || (_cellEditorRulerRef$c2 = _cellEditorRulerRef$c2.textContent) === null || _cellEditorRulerRef$c2 === undefined ? undefined : _cellEditorRulerRef$c2.length));
498
- cellEditorRef === null || cellEditorRef === undefined || (_cellEditorRef$curren2 = cellEditorRef.current) === null || _cellEditorRef$curren2 === undefined || _cellEditorRef$curren2.focus();
497
+ cellEditorRef === null || cellEditorRef === void 0 || (_cellEditorRef$curren = cellEditorRef.current) === null || _cellEditorRef$curren === void 0 || _cellEditorRef$curren.setSelectionRange(Number(cellEditorRulerRef === null || cellEditorRulerRef === void 0 || (_cellEditorRulerRef$c = cellEditorRulerRef.current) === null || _cellEditorRulerRef$c === void 0 || (_cellEditorRulerRef$c = _cellEditorRulerRef$c.textContent) === null || _cellEditorRulerRef$c === void 0 ? void 0 : _cellEditorRulerRef$c.length), Number(cellEditorRulerRef === null || cellEditorRulerRef === void 0 || (_cellEditorRulerRef$c2 = cellEditorRulerRef.current) === null || _cellEditorRulerRef$c2 === void 0 || (_cellEditorRulerRef$c2 = _cellEditorRulerRef$c2.textContent) === null || _cellEditorRulerRef$c2 === void 0 ? void 0 : _cellEditorRulerRef$c2.length));
498
+ cellEditorRef === null || cellEditorRef === void 0 || (_cellEditorRef$curren2 = cellEditorRef.current) === null || _cellEditorRef$curren2 === void 0 || _cellEditorRef$curren2.focus();
499
499
  }
500
- }, [isEditing, previousState === null || previousState === undefined ? undefined : previousState.isEditing]);
500
+ }, [isEditing, previousState === null || previousState === void 0 ? void 0 : previousState.isEditing]);
501
501
  var handleActiveCellClick = function handleActiveCellClick() {
502
- if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header') {
503
- var indexValue = (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' ? activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column : activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row;
504
- if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' && (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header') {
502
+ if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header') {
503
+ var indexValue = (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' ? activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column : activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row;
504
+ if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' && (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header') {
505
505
  return;
506
506
  }
507
507
  handleRowColumnHeaderClick({
@@ -519,7 +519,7 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
519
519
 
520
520
  // Mouse down on active cell
521
521
  var handleActiveCellMouseDown = function handleActiveCellMouseDown() {
522
- if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) !== 'header' || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) !== 'header') {
522
+ if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) !== 'header' || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) !== 'header') {
523
523
  var tempMatcher = uuidv4();
524
524
  setClickAndHoldActive(true);
525
525
  removeCellSelections({
@@ -541,10 +541,10 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
541
541
  var handleActiveCellKeyDown = function handleActiveCellKeyDown(event) {
542
542
  var key = event.key;
543
543
  if (key === 'Enter' && !activeCellInsideSelectionArea && !readOnlyTable) {
544
- if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) !== 'header' && (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) !== 'header') {
544
+ if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) !== 'header' && (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) !== 'header') {
545
545
  startEditMode();
546
546
  }
547
- if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header') {
547
+ if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header') {
548
548
  handleRowColumnHeaderClick({
549
549
  isKeyboard: true
550
550
  });
@@ -554,7 +554,7 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
554
554
  var handleRowColumnHeaderClick = function handleRowColumnHeaderClick(_ref6) {
555
555
  var isKeyboard = _ref6.isKeyboard,
556
556
  _ref6$index = _ref6.index,
557
- index = _ref6$index === undefined ? -1 : _ref6$index;
557
+ index = _ref6$index === void 0 ? -1 : _ref6$index;
558
558
  var handleHeaderCellProps = {
559
559
  activeCellCoordinates: activeCellCoordinates,
560
560
  rows: rows,
@@ -571,18 +571,18 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
571
571
  isHoldingShiftKey: null
572
572
  };
573
573
  // Select an entire column
574
- if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' && (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) !== 'header') {
574
+ if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' && (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) !== 'header') {
575
575
  handleHeaderCellSelection(_objectSpread2({
576
576
  type: 'column'
577
577
  }, handleHeaderCellProps));
578
578
  }
579
579
  // Select an entire row
580
- if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header' && (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) !== 'header') {
580
+ if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header' && (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) !== 'header') {
581
581
  handleHeaderCellSelection(_objectSpread2({
582
582
  type: 'row'
583
583
  }, handleHeaderCellProps));
584
584
  }
585
- if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header' && (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header') {
585
+ if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header' && (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header') {
586
586
  selectAllCells({
587
587
  ref: spreadsheetRef,
588
588
  setCurrentMatcher: setCurrentMatcher,
@@ -653,8 +653,8 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
653
653
  ref: spreadsheetRef,
654
654
  role: "grid",
655
655
  tabIndex: 0,
656
- "aria-rowcount": (rows === null || rows === undefined ? undefined : rows.length) || 0,
657
- "aria-colcount": (columns === null || columns === undefined ? undefined : columns.length) || 0,
656
+ "aria-rowcount": (rows === null || rows === void 0 ? void 0 : rows.length) || 0,
657
+ "aria-colcount": (columns === null || columns === void 0 ? void 0 : columns.length) || 0,
658
658
  "aria-label": spreadsheetAriaLabel,
659
659
  onKeyDown: handleKeyPressEvent,
660
660
  onFocus: function onFocus() {
@@ -756,13 +756,13 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
756
756
  onChange: function onChange(event) {
757
757
  if (previousState.isEditing) {
758
758
  setCellEditorValue(event.target.value);
759
- if (cellEditorRulerRef !== null && cellEditorRulerRef !== undefined && cellEditorRulerRef.current) {
759
+ if (cellEditorRulerRef !== null && cellEditorRulerRef !== void 0 && cellEditorRulerRef.current) {
760
760
  cellEditorRulerRef.current.textContent = event.target.value;
761
761
  }
762
762
  }
763
763
  },
764
764
  ref: cellEditorRef,
765
- "aria-labelledby": activeCellCoordinates ? "".concat(blockClass, "__cell--").concat(activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row, "--").concat(activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) : '',
765
+ "aria-labelledby": activeCellCoordinates ? "".concat(blockClass, "__cell--").concat(activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row, "--").concat(activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) : '',
766
766
  className: cx("".concat(blockClass, "__cell-editor"), "".concat(blockClass, "--interactive-cell-element"), "".concat(blockClass, "__cell-editor--").concat(cellSize), _defineProperty({}, "".concat(blockClass, "__cell-editor--active"), isEditing))
767
767
  }), /*#__PURE__*/React__default.createElement("pre", {
768
768
  "aria-hidden": true,
@@ -69,28 +69,28 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
69
69
  var previousState = usePreviousValue({
70
70
  selectionAreaData: selectionAreaData,
71
71
  clickAndHoldActive: clickAndHoldActive,
72
- rowHeight: defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.rowHeight
72
+ rowHeight: defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.rowHeight
73
73
  }) || {};
74
74
 
75
75
  // Set custom css property containing the spreadsheet total width
76
76
  useEffect(function () {
77
- ref === null || ref === undefined || ref.current.style.setProperty("--".concat(blockClass, "--total-width"), px((totalColumnsWidth || 0) + (scrollBarSize || 0)));
77
+ ref === null || ref === void 0 || ref.current.style.setProperty("--".concat(blockClass, "--total-width"), px((totalColumnsWidth || 0) + (scrollBarSize || 0)));
78
78
  }, [ref, scrollBarSize, totalColumnsWidth]);
79
79
 
80
80
  // Call the `onSelectionAreaChange` handler to send selection area data
81
81
  // back to the consumer
82
82
  useEffect(function () {
83
- if (selectionAreaData !== null && selectionAreaData !== undefined && selectionAreaData.length) {
83
+ if (selectionAreaData !== null && selectionAreaData !== void 0 && selectionAreaData.length) {
84
84
  var _previousState$select, _selectionAreaData$, _previousState$select2;
85
85
  var selectionChanged = false;
86
- if ((previousState === null || previousState === undefined || (_previousState$select = previousState.selectionAreaData) === null || _previousState$select === undefined ? undefined : _previousState$select.length) !== (selectionAreaData === null || selectionAreaData === undefined ? undefined : selectionAreaData.length) || (selectionAreaData === null || selectionAreaData === undefined || (_selectionAreaData$ = selectionAreaData[0]) === null || _selectionAreaData$ === undefined ? undefined : _selectionAreaData$.cells.length) !== (previousState === null || previousState === undefined || (_previousState$select2 = previousState.selectionAreaData) === null || _previousState$select2 === undefined || (_previousState$select2 = _previousState$select2[0]) === null || _previousState$select2 === undefined ? undefined : _previousState$select2.cells.length)) {
86
+ if ((previousState === null || previousState === void 0 || (_previousState$select = previousState.selectionAreaData) === null || _previousState$select === void 0 ? void 0 : _previousState$select.length) !== (selectionAreaData === null || selectionAreaData === void 0 ? void 0 : selectionAreaData.length) || (selectionAreaData === null || selectionAreaData === void 0 || (_selectionAreaData$ = selectionAreaData[0]) === null || _selectionAreaData$ === void 0 ? void 0 : _selectionAreaData$.cells.length) !== (previousState === null || previousState === void 0 || (_previousState$select2 = previousState.selectionAreaData) === null || _previousState$select2 === void 0 || (_previousState$select2 = _previousState$select2[0]) === null || _previousState$select2 === void 0 ? void 0 : _previousState$select2.cells.length)) {
87
87
  selectionChanged = true;
88
88
  }
89
- if (!clickAndHoldActive && previousState !== null && previousState !== undefined && previousState.clickAndHoldActive || selectionChanged) {
90
- onSelectionAreaChange === null || onSelectionAreaChange === undefined || onSelectionAreaChange(selectionAreaData);
89
+ if (!clickAndHoldActive && previousState !== null && previousState !== void 0 && previousState.clickAndHoldActive || selectionChanged) {
90
+ onSelectionAreaChange === null || onSelectionAreaChange === void 0 || onSelectionAreaChange(selectionAreaData);
91
91
  }
92
92
  }
93
- }, [previousState === null || previousState === undefined ? undefined : previousState.selectionAreaData, selectionAreaData, onSelectionAreaChange, clickAndHoldActive, previousState === null || previousState === undefined ? undefined : previousState.clickAndHoldActive]);
93
+ }, [previousState === null || previousState === void 0 ? void 0 : previousState.selectionAreaData, selectionAreaData, onSelectionAreaChange, clickAndHoldActive, previousState === null || previousState === void 0 ? void 0 : previousState.clickAndHoldActive]);
94
94
 
95
95
  // Create cell selection areas based on selectionAreas array
96
96
  useEffect(function () {
@@ -119,7 +119,7 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
119
119
  }),
120
120
  selectionId: area.matcher
121
121
  };
122
- setSelectionAreaData === null || setSelectionAreaData === undefined || setSelectionAreaData(function (prev) {
122
+ setSelectionAreaData === null || setSelectionAreaData === void 0 || setSelectionAreaData(function (prev) {
123
123
  var prevValues = _deepCloneObject(prev);
124
124
  var newAreaData = prevValues.filter(function (item) {
125
125
  return item.selectionId !== area.matcher;
@@ -181,26 +181,26 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
181
181
  useEffect(function () {
182
182
  var listContainer;
183
183
  var activeCellButton;
184
- if (spreadsheetBodyRef !== null && spreadsheetBodyRef !== undefined && spreadsheetBodyRef.current) {
184
+ if (spreadsheetBodyRef !== null && spreadsheetBodyRef !== void 0 && spreadsheetBodyRef.current) {
185
185
  var _listContainer;
186
- listContainer = spreadsheetBodyRef === null || spreadsheetBodyRef === undefined ? undefined : spreadsheetBodyRef.current;
187
- activeCellButton = (_listContainer = listContainer) === null || _listContainer === undefined ? undefined : _listContainer.querySelector(".".concat(blockClass, "__active-cell--highlight"));
186
+ listContainer = spreadsheetBodyRef === null || spreadsheetBodyRef === void 0 ? void 0 : spreadsheetBodyRef.current;
187
+ activeCellButton = (_listContainer = listContainer) === null || _listContainer === void 0 ? void 0 : _listContainer.querySelector(".".concat(blockClass, "__active-cell--highlight"));
188
188
  }
189
- if (activeCellButton && (defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.rowHeight) !== previousState.rowHeight) {
190
- activeCellButton.style.height = "".concat(defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.rowHeight, "px");
189
+ if (activeCellButton && (defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.rowHeight) !== previousState.rowHeight) {
190
+ activeCellButton.style.height = "".concat(defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.rowHeight, "px");
191
191
  if (activeCellCoordinates) {
192
- var activeTargetElement = ref === null || ref === undefined ? undefined : ref.current.querySelector("[data-row-index=\"".concat(activeCellCoordinates.row, "\"][data-column-index=\"").concat(activeCellCoordinates.column, "\"]"));
193
- var _listContainer2 = ref === null || ref === undefined ? undefined : ref.current.querySelector(".".concat(blockClass, "__list--container"));
192
+ var activeTargetElement = ref === null || ref === void 0 ? void 0 : ref.current.querySelector("[data-row-index=\"".concat(activeCellCoordinates.row, "\"][data-column-index=\"").concat(activeCellCoordinates.column, "\"]"));
193
+ var _listContainer2 = ref === null || ref === void 0 ? void 0 : ref.current.querySelector(".".concat(blockClass, "__list--container"));
194
194
  var newActiveCellTopPosition;
195
195
  if (activeTargetElement && _listContainer2) {
196
- newActiveCellTopPosition = (activeTargetElement === null || activeTargetElement === undefined ? undefined : activeTargetElement.getBoundingClientRect().top) - _listContainer2.getBoundingClientRect().top;
196
+ newActiveCellTopPosition = (activeTargetElement === null || activeTargetElement === void 0 ? void 0 : activeTargetElement.getBoundingClientRect().top) - _listContainer2.getBoundingClientRect().top;
197
197
  }
198
198
  activeCellButton.style.top = px(newActiveCellTopPosition);
199
199
  removeCellSelections({
200
200
  matcher: undefined,
201
201
  spreadsheetRef: ref
202
202
  });
203
- selectionAreas === null || selectionAreas === undefined || selectionAreas.map(function (area) {
203
+ selectionAreas === null || selectionAreas === void 0 || selectionAreas.map(function (area) {
204
204
  if (!area.areaCreated && area.point1 && area.point2 && area.matcher) {
205
205
  return createCellSelectionArea({
206
206
  ref: ref,
@@ -216,14 +216,14 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
216
216
  });
217
217
  }
218
218
  }
219
- }, [defaultColumn, ref, activeCellCoordinates, previousState === null || previousState === undefined ? undefined : previousState.rowHeight, selectionAreas, setActiveCellInsideSelectionArea, setSelectionAreas, visibleColumns, hasCustomRowHeader]);
219
+ }, [defaultColumn, ref, activeCellCoordinates, previousState === null || previousState === void 0 ? void 0 : previousState.rowHeight, selectionAreas, setActiveCellInsideSelectionArea, setSelectionAreas, visibleColumns, hasCustomRowHeader]);
220
220
 
221
221
  //this method will check for any duplicate selection area and remove.
222
222
  //same selections are those have the same height, width, top, left styles. These inline styles are being set in createCellSelection util.
223
223
  var removeDuplicateSelections = useCallback(function () {
224
224
  var uniqueAttrArray = [],
225
225
  removedSelectionAreaMatcherArr = [];
226
- ref === null || ref === undefined || ref.current.querySelectorAll(".".concat(blockClass, "__selection-area--element")).forEach(function (selectorEl) {
226
+ ref === null || ref === void 0 || ref.current.querySelectorAll(".".concat(blockClass, "__selection-area--element")).forEach(function (selectorEl) {
227
227
  var _style = selectorEl.style,
228
228
  top = _style.top,
229
229
  left = _style.left,
@@ -240,13 +240,13 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
240
240
 
241
241
  //clean the duplicate selectionAreaData and selectionArea
242
242
  if (removedSelectionAreaMatcherArr.length) {
243
- setSelectionAreas === null || setSelectionAreas === undefined || setSelectionAreas(function (prev) {
243
+ setSelectionAreas === null || setSelectionAreas === void 0 || setSelectionAreas(function (prev) {
244
244
  var prevValues = _deepCloneObject(prev);
245
245
  return prevValues.filter(function (item) {
246
246
  return !removedSelectionAreaMatcherArr.includes(item.matcher);
247
247
  });
248
248
  });
249
- setSelectionAreaData === null || setSelectionAreaData === undefined || setSelectionAreaData(function (prev) {
249
+ setSelectionAreaData === null || setSelectionAreaData === void 0 || setSelectionAreaData(function (prev) {
250
250
  var prevValues = _deepCloneObject(prev);
251
251
  return prevValues.filter(function (item) {
252
252
  return !removedSelectionAreaMatcherArr.includes(item.selectionId);
@@ -270,7 +270,7 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
270
270
  }, [currentMatcher, activeCellCoordinates, selectionAreas, setActiveCellCoordinates, setSelectionAreas, setContainerHasFocus, setClickAndHoldActive, setCurrentMatcher, ref, setSelectionAreaData, setActiveCellInsideSelectionArea, activeCellRef]);
271
271
  var handleBodyScroll = function handleBodyScroll() {
272
272
  var headerRowElement = ref.current.querySelector("\n .".concat(blockClass, "__header--container .").concat(blockClass, "__tr")) || new HTMLDivElement();
273
- headerRowElement.scrollLeft = contentScrollRef === null || contentScrollRef === undefined ? undefined : contentScrollRef.current.scrollLeft;
273
+ headerRowElement.scrollLeft = contentScrollRef === null || contentScrollRef === void 0 ? void 0 : contentScrollRef.current.scrollLeft;
274
274
  };
275
275
  useEffect(function () {
276
276
  contentScrollRef.current.addEventListener('scroll', function () {
@@ -295,22 +295,22 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
295
295
  // Builds the empty rows and calls `onDataUpdate` to set the new empty rows
296
296
  // using defaultEmptyRowCount to determine how many empty rows are created.
297
297
  useEffect(function () {
298
- if (!(rows !== null && rows !== undefined && rows.length)) {
298
+ if (!(rows !== null && rows !== void 0 && rows.length)) {
299
299
  var buildEmptyRows = function buildEmptyRows() {
300
300
  var emptyRowData = [];
301
301
  _toConsumableArray(Array(defaultEmptyRowCount)).map(function () {
302
302
  var _headerGroups$;
303
303
  var emptyCell = {};
304
- headerGroups === null || headerGroups === undefined || (_headerGroups$ = headerGroups[0]) === null || _headerGroups$ === undefined || _headerGroups$.headers.map(function (header) {
304
+ headerGroups === null || headerGroups === void 0 || (_headerGroups$ = headerGroups[0]) === null || _headerGroups$ === void 0 || _headerGroups$.headers.map(function (header) {
305
305
  emptyCell[header.id] = null;
306
306
  });
307
307
  emptyRowData.push(emptyCell);
308
308
  });
309
- onDataUpdate === null || onDataUpdate === undefined || onDataUpdate(emptyRowData);
309
+ onDataUpdate === null || onDataUpdate === void 0 || onDataUpdate(emptyRowData);
310
310
  };
311
311
  buildEmptyRows();
312
312
  }
313
- if (headerGroups !== null && headerGroups !== undefined && headerGroups[0] && typeof setCurrentColumns === 'function') {
313
+ if (headerGroups !== null && headerGroups !== void 0 && headerGroups[0] && typeof setCurrentColumns === 'function') {
314
314
  var headers = headerGroups[0].headers;
315
315
  setCurrentColumns(headers);
316
316
  }
@@ -323,9 +323,9 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
323
323
  var RenderRow = useCallback(function (_ref3) {
324
324
  var index = _ref3.index,
325
325
  style = _ref3.style;
326
- var row = rows === null || rows === undefined ? undefined : rows[index];
326
+ var row = rows === null || rows === void 0 ? void 0 : rows[index];
327
327
  if (rows && rows.length) {
328
- prepareRow === null || prepareRow === undefined || prepareRow(row);
328
+ prepareRow === null || prepareRow === void 0 || prepareRow(row);
329
329
  var rowProps = prepareProps(row.getRowProps({
330
330
  style: style
331
331
  }), 'key');
@@ -346,9 +346,9 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
346
346
  "data-column-index": "header",
347
347
  type: "button",
348
348
  onClick: handleRowHeaderClickEvent(index),
349
- className: cx("".concat(blockClass, "__td"), "".concat(blockClass, "__td-th"), "".concat(blockClass, "--interactive-cell-element"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__td_custom"), hasCustomRowHeader ? true : false), "".concat(blockClass, "__td-th--active-header"), !hasCustomRowHeader && ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === index || checkActiveHeaderCell(index, selectionAreas, 'row'))), "".concat(blockClass, "__td-th--selected-header"), !hasCustomRowHeader && checkSelectedHeaderCell(index, selectionAreas, 'row', columns))),
349
+ className: cx("".concat(blockClass, "__td"), "".concat(blockClass, "__td-th"), "".concat(blockClass, "--interactive-cell-element"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__td_custom"), hasCustomRowHeader ? true : false), "".concat(blockClass, "__td-th--active-header"), !hasCustomRowHeader && ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === index || checkActiveHeaderCell(index, selectionAreas, 'row'))), "".concat(blockClass, "__td-th--selected-header"), !hasCustomRowHeader && checkSelectedHeaderCell(index, selectionAreas, 'row', columns))),
350
350
  style: {
351
- width: defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.rowHeaderWidth,
351
+ width: defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.rowHeaderWidth,
352
352
  flexDirection: hasCustomRowHeader ? renderRowHeaderDirection === 'Left' ? 'row-reverse' : row : undefined
353
353
  }
354
354
  }, index + 1, hasCustomRowHeader && typeof renderRowHeader === 'function' && renderRowHeader(index))), row.cells.map(function (cell, index) {
@@ -361,7 +361,7 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
361
361
  role: "gridcell",
362
362
  style: _objectSpread2(_objectSpread2({}, cell.getCellProps().style), {}, {
363
363
  display: 'grid',
364
- minWidth: (cell === null || cell === undefined || (_cell$column = cell.column) === null || _cell$column === undefined ? undefined : _cell$column.width) || (defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.width)
364
+ minWidth: (cell === null || cell === void 0 || (_cell$column = cell.column) === null || _cell$column === void 0 ? void 0 : _cell$column.width) || (defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.width)
365
365
  })
366
366
  }), /*#__PURE__*/React__default.createElement("button", {
367
367
  id: "".concat(blockClass, "__cell--").concat(cell.row.index, "--").concat(index),
@@ -376,16 +376,16 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
376
376
  }, cell.render('Cell')));
377
377
  }));
378
378
  }
379
- }, [prepareRow, renderRowHeader, rows, hasCustomRowHeader, activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row, selectionAreas, handleRowHeaderClickEvent, handleBodyCellClickEvent, handleBodyCellHoverEvent, columns, defaultColumn, renderRowHeaderDirection]);
379
+ }, [prepareRow, renderRowHeader, rows, hasCustomRowHeader, activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row, selectionAreas, handleRowHeaderClickEvent, handleBodyCellClickEvent, handleBodyCellHoverEvent, columns, defaultColumn, renderRowHeaderDirection]);
380
380
  var spreadsheetBodyRef = useRef(undefined);
381
381
  return /*#__PURE__*/React__default.createElement("div", _extends({
382
382
  ref: spreadsheetBodyRef,
383
383
  className: cx("".concat(blockClass, "__body--container"))
384
- }, getTableBodyProps === null || getTableBodyProps === undefined ? undefined : getTableBodyProps()), /*#__PURE__*/React__default.createElement(FixedSizeList, {
384
+ }, getTableBodyProps === null || getTableBodyProps === void 0 ? void 0 : getTableBodyProps()), /*#__PURE__*/React__default.createElement(FixedSizeList, {
385
385
  className: cx("".concat(blockClass, "__list--container"), "".concat(blockClass, "__list--container--").concat(id)),
386
386
  height: 400,
387
- itemCount: (rows === null || rows === undefined ? undefined : rows.length) || defaultEmptyRowCount,
388
- itemSize: defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.rowHeight,
387
+ itemCount: (rows === null || rows === void 0 ? void 0 : rows.length) || defaultEmptyRowCount,
388
+ itemSize: defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.rowHeight,
389
389
  width: getSpreadsheetWidth({
390
390
  headerGroup: undefined,
391
391
  type: undefined,
@@ -396,7 +396,7 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
396
396
  visibleColumns: visibleColumns
397
397
  }),
398
398
  outerRef: contentScrollRef
399
- }, rows !== null && rows !== undefined && rows.length ? RenderRow : RenderEmptyRows));
399
+ }, rows !== null && rows !== void 0 && rows.length ? RenderRow : RenderEmptyRows));
400
400
  });
401
401
  DataSpreadsheetBody.propTypes = {
402
402
  /**