@carbon/ibm-products 2.59.0 → 2.60.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 (926) hide show
  1. package/css/index-full-carbon.css +9105 -9158
  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 +1150 -1565
  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 +2837 -4774
  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 +2250 -1875
  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 +167 -196
  18. package/es/components/APIKeyModal/APIKeyDownloader.d.ts +6 -7
  19. package/es/components/APIKeyModal/APIKeyDownloader.js +3 -3
  20. package/es/components/APIKeyModal/APIKeyModal.d.ts +2 -3
  21. package/es/components/APIKeyModal/APIKeyModal.js +18 -18
  22. package/es/components/AboutModal/AboutModal.js +2 -2
  23. package/es/components/ActionBar/ActionBar.d.ts +1 -2
  24. package/es/components/ActionBar/ActionBar.js +4 -4
  25. package/es/components/ActionBar/ActionBarItem.js +1 -1
  26. package/es/components/ActionBar/ActionBarOverflowItems.d.ts +6 -7
  27. package/es/components/ActionBar/ActionBarOverflowItems.js +3 -3
  28. package/es/components/ActionSet/ActionSet.d.ts +0 -1
  29. package/es/components/ActionSet/ActionSet.js +23 -12
  30. package/es/components/AddSelect/AddSelect.js +8 -22
  31. package/es/components/AddSelect/AddSelectBody.js +12 -12
  32. package/es/components/AddSelect/AddSelectBreadcrumbs.d.ts +3 -4
  33. package/es/components/AddSelect/AddSelectColumn.d.ts +10 -11
  34. package/es/components/AddSelect/AddSelectColumn.js +6 -6
  35. package/es/components/AddSelect/AddSelectFilter.d.ts +15 -16
  36. package/es/components/AddSelect/AddSelectFilter.js +1 -1
  37. package/es/components/AddSelect/AddSelectFormControl.d.ts +4 -5
  38. package/es/components/AddSelect/AddSelectList.d.ts +3 -4
  39. package/es/components/AddSelect/AddSelectMetaPanel.d.ts +4 -9
  40. package/es/components/AddSelect/AddSelectMetaPanel.js +3 -3
  41. package/es/components/AddSelect/AddSelectRow.d.ts +21 -22
  42. package/es/components/AddSelect/AddSelectRow.js +3 -3
  43. package/es/components/AddSelect/AddSelectSidebar.d.ts +12 -13
  44. package/es/components/AddSelect/AddSelectSidebar.js +1 -1
  45. package/es/components/AddSelect/AddSelectSort.d.ts +4 -5
  46. package/es/components/AddSelect/AddSelectSort.js +5 -5
  47. package/es/components/AddSelect/add-select-utils.js +6 -17
  48. package/es/components/AddSelect/hooks/usePath.js +1 -1
  49. package/es/components/BigNumbers/BigNumbers.d.ts +26 -3
  50. package/es/components/BigNumbers/BigNumbers.js +55 -110
  51. package/es/components/BigNumbers/BigNumbersSkeleton.d.ts +17 -0
  52. package/es/components/BigNumbers/BigNumbersSkeleton.js +63 -0
  53. package/es/components/BigNumbers/constants.d.ts +17 -11
  54. package/es/components/BigNumbers/constants.js +17 -40
  55. package/es/components/BigNumbers/index.d.ts +7 -1
  56. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +5 -31
  57. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -5
  58. package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +6 -7
  59. package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
  60. package/es/components/Card/Card.js +14 -14
  61. package/es/components/Card/CardFooter.d.ts +20 -21
  62. package/es/components/Card/CardFooter.js +5 -8
  63. package/es/components/Card/CardHeader.d.ts +22 -23
  64. package/es/components/Card/CardHeader.js +3 -5
  65. package/es/components/Carousel/Carousel.js +25 -25
  66. package/es/components/Cascade/Cascade.d.ts +1 -3
  67. package/es/components/Cascade/Cascade.js +18 -17
  68. package/es/components/Checklist/Checklist.d.ts +0 -1
  69. package/es/components/Checklist/Checklist.js +12 -12
  70. package/es/components/Checklist/ChecklistChart.d.ts +2 -2
  71. package/es/components/Checklist/ChecklistChart.js +2 -2
  72. package/es/components/Checklist/ChecklistIcon.d.ts +3 -3
  73. package/es/components/Checklist/ChecklistIcon.js +2 -2
  74. package/es/components/Coachmark/Coachmark.js +10 -10
  75. package/es/components/Coachmark/CoachmarkDragbar.js +5 -5
  76. package/es/components/Coachmark/CoachmarkHeader.js +4 -4
  77. package/es/components/Coachmark/CoachmarkOverlay.js +4 -4
  78. package/es/components/Coachmark/CoachmarkTagline.js +3 -3
  79. package/es/components/Coachmark/utils/context.js +1 -1
  80. package/es/components/Coachmark/utils/enums.d.ts +1 -1
  81. package/es/components/Coachmark/utils/enums.js +3 -2
  82. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
  83. package/es/components/CoachmarkFixed/CoachmarkFixed.js +8 -8
  84. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +15 -15
  85. package/es/components/CoachmarkStack/CoachmarkStack.js +11 -7
  86. package/es/components/CoachmarkStack/CoachmarkStackHome.js +4 -4
  87. package/es/components/ComboButton/ComboButton.d.ts +1 -1
  88. package/es/components/ComboButton/ComboButton.js +24 -25
  89. package/es/components/ComboButton/ComboButtonItem/index.d.ts +4 -4
  90. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +18 -19
  91. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +18 -13
  92. package/es/components/ConditionBuilder/ConditionBuilder.js +7 -4
  93. package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts +24 -26
  94. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -6
  95. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +6 -6
  96. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +10 -11
  97. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
  98. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +17 -18
  99. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +6 -4
  100. package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +3 -4
  101. package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
  102. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +5 -19
  103. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +21 -21
  104. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +2 -3
  105. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +18 -18
  106. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +23 -10
  107. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -4
  108. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
  109. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +3 -4
  110. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
  111. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +3 -4
  112. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
  113. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +3 -4
  114. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +9 -9
  115. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +4 -5
  116. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
  117. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -3
  118. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
  119. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +5 -6
  120. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +40 -36
  121. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +3 -4
  122. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
  123. package/es/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
  124. package/es/components/ConditionBuilder/utils/useTranslations.js +2 -2
  125. package/es/components/ConditionBuilder/utils/util.d.ts +2 -9
  126. package/es/components/ConditionBuilder/utils/util.js +59 -44
  127. package/es/components/CreateFullPage/CreateFullPage.js +6 -10
  128. package/es/components/CreateFullPage/CreateFullPageStep.js +10 -10
  129. package/es/components/CreateInfluencer/CreateInfluencer.d.ts +5 -11
  130. package/es/components/CreateInfluencer/CreateInfluencer.js +8 -8
  131. package/es/components/CreateModal/CreateModal.d.ts +1 -2
  132. package/es/components/CreateModal/CreateModal.js +2 -2
  133. package/es/components/CreateSidePanel/CreateSidePanel.d.ts +1 -1
  134. package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
  135. package/es/components/CreateTearsheet/CreateTearsheet.js +7 -9
  136. package/es/components/CreateTearsheet/CreateTearsheetStep.js +17 -17
  137. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
  138. package/es/components/DataSpreadsheet/DataSpreadsheet.js +57 -59
  139. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +40 -40
  140. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
  141. package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
  142. package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
  143. package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
  144. package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
  145. package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +8 -8
  146. package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +11 -11
  147. package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
  148. package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +5 -5
  149. package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +7 -7
  150. package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +6 -6
  151. package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
  152. package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +3 -3
  153. package/es/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
  154. package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
  155. package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
  156. package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +8 -8
  157. package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
  158. package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +13 -13
  159. package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +16 -16
  160. package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +6 -6
  161. package/es/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
  162. package/es/components/Datagrid/Datagrid/Datagrid.js +2 -2
  163. package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -1
  164. package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +3 -29
  165. package/es/components/Datagrid/Datagrid/DatagridContent.js +17 -14
  166. package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
  167. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -5
  168. package/es/components/Datagrid/Datagrid/DatagridHead.js +2 -2
  169. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +25 -25
  170. package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
  171. package/es/components/Datagrid/Datagrid/DatagridRow.js +24 -26
  172. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +10 -10
  173. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +10 -11
  174. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
  175. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
  176. package/es/components/Datagrid/Datagrid/DatagridToolbar.d.ts +1 -2
  177. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +14 -12
  178. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
  179. package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +7 -8
  180. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +7 -8
  181. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +4 -5
  182. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
  183. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +12 -13
  184. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +10 -8
  185. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +14 -15
  186. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
  187. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +8 -8
  188. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +1 -2
  189. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  190. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +14 -23
  191. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +16 -16
  192. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +19 -24
  193. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +27 -24
  194. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +4 -5
  195. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +2 -2
  196. package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +8 -9
  197. package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
  198. package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
  199. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +3 -3
  200. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +21 -21
  201. package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +1 -1
  202. package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
  203. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +10 -11
  204. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
  205. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +9 -17
  206. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +36 -36
  207. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -2
  208. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
  209. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
  210. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
  211. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
  212. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +6 -7
  213. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +6 -6
  214. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
  215. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
  216. package/es/components/Datagrid/types/index.d.ts +2 -5
  217. package/es/components/Datagrid/useActionsColumn.js +3 -3
  218. package/es/components/Datagrid/useColumnRightAlign.js +3 -3
  219. package/es/components/Datagrid/useCustomizeColumns.js +2 -2
  220. package/es/components/Datagrid/useDatagrid.js +3 -3
  221. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
  222. package/es/components/Datagrid/useDisableSelectRows.js +16 -16
  223. package/es/components/Datagrid/useExpandedRow.js +1 -1
  224. package/es/components/Datagrid/useFiltering.js +1 -1
  225. package/es/components/Datagrid/useFloatingScroll.js +2 -2
  226. package/es/components/Datagrid/useFocusRowExpander.js +4 -4
  227. package/es/components/Datagrid/useInfiniteScroll.js +1 -1
  228. package/es/components/Datagrid/useInitialColumnSort.js +1 -1
  229. package/es/components/Datagrid/useInlineEdit.js +4 -4
  230. package/es/components/Datagrid/useNestedRowExpander.js +8 -8
  231. package/es/components/Datagrid/useNestedRows.js +6 -6
  232. package/es/components/Datagrid/useOnRowClick.js +6 -4
  233. package/es/components/Datagrid/useRowExpander.js +5 -5
  234. package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
  235. package/es/components/Datagrid/useRowRenderer.js +9 -10
  236. package/es/components/Datagrid/useSelectAllToggle.js +2 -2
  237. package/es/components/Datagrid/useSelectRows.js +7 -7
  238. package/es/components/Datagrid/useSortableColumns.js +11 -11
  239. package/es/components/Datagrid/useStickyColumn.js +8 -8
  240. package/es/components/DecoratorBase/DecoratorBase.js +8 -8
  241. package/es/components/DecoratorBase/DecoratorIcon.js +2 -2
  242. package/es/components/DelimitedList/DelimitedList.js +3 -3
  243. package/es/components/DescriptionList/DescriptionList.js +2 -2
  244. package/es/components/EditInPlace/EditInPlace.d.ts +1 -2
  245. package/es/components/EditInPlace/EditInPlace.js +7 -9
  246. package/es/components/EditSidePanel/EditSidePanel.js +3 -3
  247. package/es/components/EditTearsheet/EditTearsheet.js +4 -4
  248. package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
  249. package/es/components/EmptyStates/EmptyState.d.ts +0 -1
  250. package/es/components/EmptyStates/EmptyState.js +6 -6
  251. package/es/components/EmptyStates/EmptyStateContent.d.ts +6 -7
  252. package/es/components/EmptyStates/EmptyStateContent.js +2 -2
  253. package/es/components/EmptyStates/EmptyStateIllustration.d.ts +1 -2
  254. package/es/components/EmptyStates/EmptyStateV2.js +2 -2
  255. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +0 -1
  256. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +4 -4
  257. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +0 -1
  258. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +4 -4
  259. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +0 -1
  260. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +4 -4
  261. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +0 -1
  262. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +4 -4
  263. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +0 -1
  264. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +4 -4
  265. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +0 -1
  266. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +4 -4
  267. package/es/components/EmptyStates/assets/ErrorIllustration.d.ts +3 -4
  268. package/es/components/EmptyStates/assets/NoDataIllustration.d.ts +3 -4
  269. package/es/components/EmptyStates/assets/NoTagsIllustration.d.ts +3 -4
  270. package/es/components/EmptyStates/assets/NotFoundIllustration.d.ts +3 -4
  271. package/es/components/EmptyStates/assets/NotificationsIllustration.d.ts +3 -4
  272. package/es/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +3 -4
  273. package/es/components/ExportModal/ExportModal.d.ts +1 -2
  274. package/es/components/ExportModal/ExportModal.js +8 -9
  275. package/es/components/FeatureFlags/index.d.ts +2 -5
  276. package/es/components/FeatureFlags/index.js +3 -3
  277. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
  278. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
  279. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
  280. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
  281. package/es/components/FilterSummary/FilterSummary.js +12 -12
  282. package/es/components/FullPageError/FullPageError.js +1 -1
  283. package/es/components/FullPageError/assets/Error403SVG.d.ts +0 -1
  284. package/es/components/FullPageError/assets/Error404SVG.d.ts +0 -1
  285. package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +0 -1
  286. package/es/components/Guidebanner/Guidebanner.js +9 -9
  287. package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
  288. package/es/components/HTTPErrors/HTTPErrorContent.d.ts +4 -4
  289. package/es/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +0 -1
  290. package/es/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +0 -1
  291. package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +0 -1
  292. package/es/components/ImportModal/ImportModal.js +5 -5
  293. package/es/components/InlineTip/InlineTip.d.ts +1 -1
  294. package/es/components/InlineTip/InlineTip.js +11 -13
  295. package/es/components/InlineTip/InlineTipButton.d.ts +2 -1
  296. package/es/components/InlineTip/utils.js +5 -5
  297. package/es/components/InterstitialScreen/InterstitialScreen.d.ts +16 -0
  298. package/es/components/InterstitialScreen/InterstitialScreen.js +65 -49
  299. package/es/components/Nav/Nav.js +5 -5
  300. package/es/components/Nav/NavItem.d.ts +12 -13
  301. package/es/components/Nav/NavItem.js +7 -7
  302. package/es/components/Nav/NavList.js +12 -12
  303. package/es/components/NonLinearReading/NonLinearReading.js +1 -1
  304. package/es/components/NotificationsPanel/NotificationsPanel.d.ts +7 -10
  305. package/es/components/NotificationsPanel/NotificationsPanel.js +74 -98
  306. package/es/components/OptionsTile/OptionsTile.js +4 -5
  307. package/es/components/PageHeader/PageHeader.d.ts +3 -4
  308. package/es/components/PageHeader/PageHeader.js +20 -21
  309. package/es/components/PageHeader/PageHeaderTitle.d.ts +3 -20
  310. package/es/components/PageHeader/PageHeaderTitle.js +1 -1
  311. package/es/components/PageHeader/PageHeaderUtils.js +1 -1
  312. package/es/components/ProductiveCard/ProductiveCard.js +1 -1
  313. package/es/components/RemoveModal/RemoveModal.d.ts +1 -2
  314. package/es/components/RemoveModal/RemoveModal.js +3 -3
  315. package/es/components/Saving/Saving.js +4 -4
  316. package/es/components/ScrollGradient/ScrollGradient.js +5 -5
  317. package/es/components/SearchBar/SearchBar.d.ts +2 -3
  318. package/es/components/SearchBar/SearchBar.js +6 -13
  319. package/es/components/SidePanel/SidePanel.d.ts +1 -2
  320. package/es/components/SidePanel/SidePanel.js +59 -73
  321. package/es/components/SimpleHeader/SimpleHeader.d.ts +5 -17
  322. package/es/components/SimpleHeader/SimpleHeader.js +4 -4
  323. package/es/components/SingleAddSelect/SingleAddSelect.js +3 -1
  324. package/es/components/StatusIcon/StatusIcon.js +2 -2
  325. package/es/components/StatusIndicator/StatusIndicator.js +2 -2
  326. package/es/components/StatusIndicator/StatusIndicatorStep.js +1 -1
  327. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +15 -9
  328. package/es/components/StringFormatter/StringFormatter.js +5 -5
  329. package/es/components/TagOverflow/TagOverflow.js +6 -6
  330. package/es/components/TagOverflow/TagOverflowModal.d.ts +10 -14
  331. package/es/components/TagOverflow/TagOverflowModal.js +5 -5
  332. package/es/components/TagOverflow/TagOverflowPopover.d.ts +0 -1
  333. package/es/components/TagOverflow/TagOverflowPopover.js +13 -13
  334. package/es/components/TagSet/TagSet.d.ts +1 -1
  335. package/es/components/TagSet/TagSet.js +16 -19
  336. package/es/components/TagSet/TagSetModal.d.ts +8 -12
  337. package/es/components/TagSet/TagSetModal.js +7 -7
  338. package/es/components/TagSet/TagSetOverflow.d.ts +1 -1
  339. package/es/components/TagSet/TagSetOverflow.js +5 -4
  340. package/es/components/Tearsheet/Tearsheet.d.ts +1 -3
  341. package/es/components/Tearsheet/Tearsheet.js +2 -2
  342. package/es/components/Tearsheet/TearsheetNarrow.d.ts +1 -3
  343. package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
  344. package/es/components/Tearsheet/TearsheetShell.d.ts +2 -3
  345. package/es/components/Tearsheet/TearsheetShell.js +9 -9
  346. package/es/components/Toolbar/Toolbar.d.ts +1 -1
  347. package/es/components/Toolbar/Toolbar.js +18 -10
  348. package/es/components/Toolbar/ToolbarButton.d.ts +2 -3
  349. package/es/components/Toolbar/ToolbarButton.js +4 -4
  350. package/es/components/Toolbar/ToolbarGroup.d.ts +1 -1
  351. package/es/components/TruncatedList/TruncatedList.js +8 -8
  352. package/es/components/UserAvatar/UserAvatar.js +4 -4
  353. package/es/components/UserProfileImage/UserProfileImage.d.ts +0 -1
  354. package/es/components/UserProfileImage/UserProfileImage.js +3 -3
  355. package/es/components/WebTerminal/WebTerminal.d.ts +0 -1
  356. package/es/components/WebTerminal/WebTerminal.js +10 -10
  357. package/es/components/WebTerminal/hooks/index.js +1 -1
  358. package/es/components/_Canary/Canary.d.ts +2 -3
  359. package/es/global/js/hooks/index.d.ts +2 -0
  360. package/es/global/js/hooks/useControllableState.js +2 -2
  361. package/es/global/js/hooks/useCreateComponentFocus.js +2 -2
  362. package/es/global/js/hooks/useCreateComponentStepChange.js +14 -14
  363. package/es/global/js/hooks/useFocus.js +33 -38
  364. package/es/global/js/hooks/useOverflowItems.d.ts +1 -1
  365. package/es/global/js/hooks/useOverflowItems.js +4 -4
  366. package/es/global/js/hooks/usePrefersReducedMotion.d.ts +1 -2
  367. package/es/global/js/hooks/usePrefersReducedMotion.js +1 -1
  368. package/es/global/js/hooks/usePresence.d.ts +10 -0
  369. package/es/global/js/hooks/usePresence.js +43 -0
  370. package/es/global/js/hooks/useResetCreateComponent.js +1 -1
  371. package/es/global/js/hooks/useResizeObserver.js +5 -5
  372. package/es/global/js/hooks/useRetrieveStepData.js +1 -1
  373. package/es/global/js/hooks/useWindowResize.js +1 -1
  374. package/es/global/js/package-settings.js +4 -4
  375. package/es/global/js/utils/Wrap.js +4 -4
  376. package/es/global/js/utils/checkForOverflow.js +2 -2
  377. package/es/global/js/utils/deepCloneObject.js +3 -3
  378. package/es/global/js/utils/getNodeTextContent.js +5 -5
  379. package/es/global/js/utils/getSupportedLocale.d.ts +10 -0
  380. package/es/global/js/utils/getSupportedLocale.js +27 -0
  381. package/es/global/js/utils/lastIndexInArray.js +1 -1
  382. package/es/global/js/utils/motionConstants.js +2 -9
  383. package/es/global/js/utils/props-helper.d.ts +1 -1
  384. package/es/global/js/utils/props-helper.js +1 -1
  385. package/es/global/js/utils/scrollableAncestor.js +3 -3
  386. package/es/index.js +1 -1
  387. package/es/node_modules/@carbon/icon-helpers/es/index.js +7 -7
  388. package/es/node_modules/@carbon/icons-react/es/Icon.js +2 -2
  389. package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +862 -854
  390. package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +883 -879
  391. package/es/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  392. package/es/settings.js +3 -6
  393. package/lib/_virtual/_rollupPluginBabelHelpers.js +166 -196
  394. package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +6 -7
  395. package/lib/components/APIKeyModal/APIKeyDownloader.js +3 -3
  396. package/lib/components/APIKeyModal/APIKeyModal.d.ts +2 -3
  397. package/lib/components/APIKeyModal/APIKeyModal.js +18 -18
  398. package/lib/components/AboutModal/AboutModal.js +2 -2
  399. package/lib/components/ActionBar/ActionBar.d.ts +1 -2
  400. package/lib/components/ActionBar/ActionBar.js +4 -4
  401. package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +6 -7
  402. package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -3
  403. package/lib/components/ActionSet/ActionSet.d.ts +0 -1
  404. package/lib/components/ActionSet/ActionSet.js +23 -12
  405. package/lib/components/AddSelect/AddSelect.js +6 -20
  406. package/lib/components/AddSelect/AddSelectBody.js +10 -10
  407. package/lib/components/AddSelect/AddSelectBreadcrumbs.d.ts +3 -4
  408. package/lib/components/AddSelect/AddSelectColumn.d.ts +10 -11
  409. package/lib/components/AddSelect/AddSelectColumn.js +6 -6
  410. package/lib/components/AddSelect/AddSelectFilter.d.ts +15 -16
  411. package/lib/components/AddSelect/AddSelectFilter.js +1 -1
  412. package/lib/components/AddSelect/AddSelectFormControl.d.ts +4 -5
  413. package/lib/components/AddSelect/AddSelectList.d.ts +3 -4
  414. package/lib/components/AddSelect/AddSelectMetaPanel.d.ts +4 -9
  415. package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -3
  416. package/lib/components/AddSelect/AddSelectRow.d.ts +21 -22
  417. package/lib/components/AddSelect/AddSelectRow.js +3 -3
  418. package/lib/components/AddSelect/AddSelectSidebar.d.ts +12 -13
  419. package/lib/components/AddSelect/AddSelectSidebar.js +1 -1
  420. package/lib/components/AddSelect/AddSelectSort.d.ts +4 -5
  421. package/lib/components/AddSelect/AddSelectSort.js +5 -5
  422. package/lib/components/AddSelect/add-select-utils.js +6 -17
  423. package/lib/components/BigNumbers/BigNumbers.d.ts +26 -3
  424. package/lib/components/BigNumbers/BigNumbers.js +51 -106
  425. package/lib/components/BigNumbers/BigNumbersSkeleton.d.ts +17 -0
  426. package/lib/components/BigNumbers/BigNumbersSkeleton.js +65 -0
  427. package/lib/components/BigNumbers/constants.d.ts +17 -11
  428. package/lib/components/BigNumbers/constants.js +17 -41
  429. package/lib/components/BigNumbers/index.d.ts +7 -1
  430. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +5 -31
  431. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -5
  432. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +6 -7
  433. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
  434. package/lib/components/Card/Card.js +14 -14
  435. package/lib/components/Card/CardFooter.d.ts +20 -21
  436. package/lib/components/Card/CardFooter.js +5 -8
  437. package/lib/components/Card/CardHeader.d.ts +22 -23
  438. package/lib/components/Card/CardHeader.js +3 -5
  439. package/lib/components/Carousel/Carousel.js +25 -25
  440. package/lib/components/Cascade/Cascade.d.ts +1 -3
  441. package/lib/components/Cascade/Cascade.js +18 -17
  442. package/lib/components/Checklist/Checklist.d.ts +0 -1
  443. package/lib/components/Checklist/Checklist.js +11 -11
  444. package/lib/components/Checklist/ChecklistChart.d.ts +2 -2
  445. package/lib/components/Checklist/ChecklistChart.js +8 -8
  446. package/lib/components/Checklist/ChecklistIcon.d.ts +3 -3
  447. package/lib/components/Checklist/ChecklistIcon.js +1 -1
  448. package/lib/components/Coachmark/Coachmark.js +10 -10
  449. package/lib/components/Coachmark/CoachmarkDragbar.js +5 -5
  450. package/lib/components/Coachmark/CoachmarkHeader.js +4 -4
  451. package/lib/components/Coachmark/CoachmarkOverlay.js +4 -4
  452. package/lib/components/Coachmark/CoachmarkTagline.js +3 -3
  453. package/lib/components/Coachmark/utils/enums.d.ts +1 -1
  454. package/lib/components/Coachmark/utils/enums.js +3 -2
  455. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
  456. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +8 -8
  457. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +15 -15
  458. package/lib/components/CoachmarkStack/CoachmarkStack.js +11 -7
  459. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +4 -4
  460. package/lib/components/ComboButton/ComboButton.d.ts +1 -1
  461. package/lib/components/ComboButton/ComboButton.js +23 -24
  462. package/lib/components/ComboButton/ComboButtonItem/index.d.ts +4 -4
  463. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +18 -19
  464. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +18 -13
  465. package/lib/components/ConditionBuilder/ConditionBuilder.js +6 -3
  466. package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts +24 -26
  467. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -6
  468. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
  469. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +10 -11
  470. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
  471. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +17 -18
  472. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +6 -4
  473. package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +3 -4
  474. package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
  475. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +5 -19
  476. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
  477. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +2 -3
  478. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +18 -18
  479. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +22 -9
  480. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -4
  481. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
  482. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +3 -4
  483. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
  484. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +3 -4
  485. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
  486. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +3 -4
  487. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +8 -8
  488. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +4 -5
  489. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
  490. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -3
  491. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
  492. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +5 -6
  493. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +40 -36
  494. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +3 -4
  495. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
  496. package/lib/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
  497. package/lib/components/ConditionBuilder/utils/useTranslations.js +2 -2
  498. package/lib/components/ConditionBuilder/utils/util.d.ts +2 -9
  499. package/lib/components/ConditionBuilder/utils/util.js +59 -43
  500. package/lib/components/CreateFullPage/CreateFullPage.js +6 -10
  501. package/lib/components/CreateFullPage/CreateFullPageStep.js +10 -10
  502. package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +5 -11
  503. package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -8
  504. package/lib/components/CreateModal/CreateModal.d.ts +1 -2
  505. package/lib/components/CreateModal/CreateModal.js +2 -2
  506. package/lib/components/CreateSidePanel/CreateSidePanel.d.ts +1 -1
  507. package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
  508. package/lib/components/CreateTearsheet/CreateTearsheet.js +7 -9
  509. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +17 -17
  510. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
  511. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +53 -55
  512. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
  513. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
  514. package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
  515. package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
  516. package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
  517. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
  518. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +8 -8
  519. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
  520. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
  521. package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
  522. package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
  523. package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
  524. package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
  525. package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
  526. package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
  527. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
  528. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
  529. package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
  530. package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
  531. package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
  532. package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
  533. package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +6 -6
  534. package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
  535. package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -2
  536. package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -1
  537. package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +3 -29
  538. package/lib/components/Datagrid/Datagrid/DatagridContent.js +16 -13
  539. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
  540. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -5
  541. package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -2
  542. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
  543. package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
  544. package/lib/components/Datagrid/Datagrid/DatagridRow.js +23 -25
  545. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
  546. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +10 -11
  547. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
  548. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
  549. package/lib/components/Datagrid/Datagrid/DatagridToolbar.d.ts +1 -2
  550. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +14 -12
  551. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
  552. package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +7 -8
  553. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +7 -8
  554. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +4 -5
  555. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
  556. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +12 -13
  557. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +9 -7
  558. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +14 -15
  559. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
  560. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
  561. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +1 -2
  562. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  563. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +14 -23
  564. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
  565. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +19 -24
  566. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +25 -22
  567. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +4 -5
  568. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
  569. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +8 -9
  570. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
  571. package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
  572. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +3 -3
  573. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
  574. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
  575. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +10 -11
  576. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
  577. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +9 -17
  578. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
  579. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -2
  580. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
  581. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
  582. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
  583. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
  584. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +6 -7
  585. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
  586. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
  587. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
  588. package/lib/components/Datagrid/types/index.d.ts +2 -5
  589. package/lib/components/Datagrid/useActionsColumn.js +2 -2
  590. package/lib/components/Datagrid/useColumnRightAlign.js +3 -3
  591. package/lib/components/Datagrid/useCustomizeColumns.js +2 -2
  592. package/lib/components/Datagrid/useDatagrid.js +2 -2
  593. package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -1
  594. package/lib/components/Datagrid/useDisableSelectRows.js +16 -16
  595. package/lib/components/Datagrid/useExpandedRow.js +1 -1
  596. package/lib/components/Datagrid/useFiltering.js +1 -1
  597. package/lib/components/Datagrid/useFloatingScroll.js +2 -2
  598. package/lib/components/Datagrid/useFocusRowExpander.js +4 -4
  599. package/lib/components/Datagrid/useInfiniteScroll.js +1 -1
  600. package/lib/components/Datagrid/useInitialColumnSort.js +1 -1
  601. package/lib/components/Datagrid/useInlineEdit.js +4 -4
  602. package/lib/components/Datagrid/useNestedRowExpander.js +7 -7
  603. package/lib/components/Datagrid/useNestedRows.js +6 -6
  604. package/lib/components/Datagrid/useOnRowClick.js +6 -4
  605. package/lib/components/Datagrid/useRowExpander.js +4 -4
  606. package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
  607. package/lib/components/Datagrid/useRowRenderer.js +9 -10
  608. package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
  609. package/lib/components/Datagrid/useSelectRows.js +6 -6
  610. package/lib/components/Datagrid/useSortableColumns.js +11 -11
  611. package/lib/components/Datagrid/useStickyColumn.js +8 -8
  612. package/lib/components/DecoratorBase/DecoratorBase.js +8 -8
  613. package/lib/components/DecoratorBase/DecoratorIcon.js +2 -2
  614. package/lib/components/DelimitedList/DelimitedList.js +3 -3
  615. package/lib/components/DescriptionList/DescriptionList.js +2 -2
  616. package/lib/components/EditInPlace/EditInPlace.d.ts +1 -2
  617. package/lib/components/EditInPlace/EditInPlace.js +7 -9
  618. package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
  619. package/lib/components/EditTearsheet/EditTearsheet.js +4 -4
  620. package/lib/components/EditTearsheet/EditTearsheetForm.js +2 -2
  621. package/lib/components/EmptyStates/EmptyState.d.ts +0 -1
  622. package/lib/components/EmptyStates/EmptyState.js +5 -5
  623. package/lib/components/EmptyStates/EmptyStateContent.d.ts +6 -7
  624. package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
  625. package/lib/components/EmptyStates/EmptyStateIllustration.d.ts +1 -2
  626. package/lib/components/EmptyStates/EmptyStateV2.js +2 -2
  627. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +0 -1
  628. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
  629. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +0 -1
  630. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
  631. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +0 -1
  632. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
  633. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +0 -1
  634. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
  635. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +0 -1
  636. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
  637. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +0 -1
  638. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
  639. package/lib/components/EmptyStates/assets/ErrorIllustration.d.ts +3 -4
  640. package/lib/components/EmptyStates/assets/NoDataIllustration.d.ts +3 -4
  641. package/lib/components/EmptyStates/assets/NoTagsIllustration.d.ts +3 -4
  642. package/lib/components/EmptyStates/assets/NotFoundIllustration.d.ts +3 -4
  643. package/lib/components/EmptyStates/assets/NotificationsIllustration.d.ts +3 -4
  644. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +3 -4
  645. package/lib/components/ExportModal/ExportModal.d.ts +1 -2
  646. package/lib/components/ExportModal/ExportModal.js +8 -9
  647. package/lib/components/FeatureFlags/index.d.ts +2 -5
  648. package/lib/components/FeatureFlags/index.js +1 -1
  649. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
  650. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
  651. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
  652. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
  653. package/lib/components/FilterSummary/FilterSummary.js +11 -11
  654. package/lib/components/FullPageError/FullPageError.js +1 -1
  655. package/lib/components/FullPageError/assets/Error403SVG.d.ts +0 -1
  656. package/lib/components/FullPageError/assets/Error404SVG.d.ts +0 -1
  657. package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +0 -1
  658. package/lib/components/Guidebanner/Guidebanner.js +8 -8
  659. package/lib/components/Guidebanner/GuidebannerElementButton.js +1 -1
  660. package/lib/components/HTTPErrors/HTTPErrorContent.d.ts +4 -4
  661. package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +0 -1
  662. package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +0 -1
  663. package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +0 -1
  664. package/lib/components/ImportModal/ImportModal.js +4 -4
  665. package/lib/components/InlineTip/InlineTip.d.ts +1 -1
  666. package/lib/components/InlineTip/InlineTip.js +9 -11
  667. package/lib/components/InlineTip/InlineTipButton.d.ts +2 -1
  668. package/lib/components/InlineTip/utils.js +5 -5
  669. package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +16 -0
  670. package/lib/components/InterstitialScreen/InterstitialScreen.js +64 -48
  671. package/lib/components/Nav/Nav.js +1 -1
  672. package/lib/components/Nav/NavItem.d.ts +12 -13
  673. package/lib/components/Nav/NavItem.js +7 -7
  674. package/lib/components/Nav/NavList.js +12 -12
  675. package/lib/components/NonLinearReading/NonLinearReading.js +1 -1
  676. package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +7 -10
  677. package/lib/components/NotificationsPanel/NotificationsPanel.js +74 -98
  678. package/lib/components/OptionsTile/OptionsTile.js +5 -6
  679. package/lib/components/PageHeader/PageHeader.d.ts +3 -4
  680. package/lib/components/PageHeader/PageHeader.js +19 -20
  681. package/lib/components/PageHeader/PageHeaderTitle.d.ts +3 -20
  682. package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
  683. package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
  684. package/lib/components/ProductiveCard/ProductiveCard.js +1 -1
  685. package/lib/components/RemoveModal/RemoveModal.d.ts +1 -2
  686. package/lib/components/RemoveModal/RemoveModal.js +3 -3
  687. package/lib/components/Saving/Saving.js +4 -4
  688. package/lib/components/ScrollGradient/ScrollGradient.js +4 -4
  689. package/lib/components/SearchBar/SearchBar.d.ts +2 -3
  690. package/lib/components/SearchBar/SearchBar.js +6 -13
  691. package/lib/components/SidePanel/SidePanel.d.ts +1 -2
  692. package/lib/components/SidePanel/SidePanel.js +60 -74
  693. package/lib/components/SimpleHeader/SimpleHeader.d.ts +5 -17
  694. package/lib/components/SimpleHeader/SimpleHeader.js +4 -4
  695. package/lib/components/SingleAddSelect/SingleAddSelect.js +3 -1
  696. package/lib/components/StatusIcon/StatusIcon.js +1 -1
  697. package/lib/components/StatusIndicator/StatusIndicator.js +2 -2
  698. package/lib/components/StatusIndicator/StatusIndicatorStep.js +1 -1
  699. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +15 -9
  700. package/lib/components/StringFormatter/StringFormatter.js +4 -4
  701. package/lib/components/TagOverflow/TagOverflow.js +6 -6
  702. package/lib/components/TagOverflow/TagOverflowModal.d.ts +10 -14
  703. package/lib/components/TagOverflow/TagOverflowModal.js +5 -5
  704. package/lib/components/TagOverflow/TagOverflowPopover.d.ts +0 -1
  705. package/lib/components/TagOverflow/TagOverflowPopover.js +13 -13
  706. package/lib/components/TagSet/TagSet.d.ts +1 -1
  707. package/lib/components/TagSet/TagSet.js +16 -19
  708. package/lib/components/TagSet/TagSetModal.d.ts +8 -12
  709. package/lib/components/TagSet/TagSetModal.js +7 -7
  710. package/lib/components/TagSet/TagSetOverflow.d.ts +1 -1
  711. package/lib/components/TagSet/TagSetOverflow.js +5 -4
  712. package/lib/components/Tearsheet/Tearsheet.d.ts +1 -3
  713. package/lib/components/Tearsheet/Tearsheet.js +2 -2
  714. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +1 -3
  715. package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
  716. package/lib/components/Tearsheet/TearsheetShell.d.ts +2 -3
  717. package/lib/components/Tearsheet/TearsheetShell.js +7 -7
  718. package/lib/components/Toolbar/Toolbar.d.ts +1 -1
  719. package/lib/components/Toolbar/Toolbar.js +18 -10
  720. package/lib/components/Toolbar/ToolbarButton.d.ts +2 -3
  721. package/lib/components/Toolbar/ToolbarButton.js +4 -4
  722. package/lib/components/Toolbar/ToolbarGroup.d.ts +1 -1
  723. package/lib/components/TruncatedList/TruncatedList.js +8 -8
  724. package/lib/components/UserAvatar/UserAvatar.js +4 -4
  725. package/lib/components/UserProfileImage/UserProfileImage.d.ts +0 -1
  726. package/lib/components/UserProfileImage/UserProfileImage.js +2 -2
  727. package/lib/components/WebTerminal/WebTerminal.d.ts +0 -1
  728. package/lib/components/WebTerminal/WebTerminal.js +11 -11
  729. package/lib/components/_Canary/Canary.d.ts +2 -3
  730. package/lib/global/js/hooks/index.d.ts +2 -0
  731. package/lib/global/js/hooks/useControllableState.js +2 -2
  732. package/lib/global/js/hooks/useCreateComponentFocus.js +2 -2
  733. package/lib/global/js/hooks/useCreateComponentStepChange.js +14 -14
  734. package/lib/global/js/hooks/useFocus.js +33 -38
  735. package/lib/global/js/hooks/useOverflowItems.d.ts +1 -1
  736. package/lib/global/js/hooks/useOverflowItems.js +4 -4
  737. package/lib/global/js/hooks/usePrefersReducedMotion.d.ts +1 -2
  738. package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -3
  739. package/lib/global/js/hooks/usePresence.d.ts +10 -0
  740. package/lib/global/js/hooks/usePresence.js +45 -0
  741. package/lib/global/js/hooks/useResetCreateComponent.js +1 -1
  742. package/lib/global/js/hooks/useResizeObserver.js +5 -5
  743. package/lib/global/js/hooks/useRetrieveStepData.js +1 -1
  744. package/lib/global/js/package-settings.js +4 -4
  745. package/lib/global/js/utils/Wrap.js +4 -4
  746. package/lib/global/js/utils/checkForOverflow.js +2 -2
  747. package/lib/global/js/utils/deepCloneObject.js +3 -3
  748. package/lib/global/js/utils/getNodeTextContent.js +5 -5
  749. package/lib/global/js/utils/getSupportedLocale.d.ts +10 -0
  750. package/lib/global/js/utils/getSupportedLocale.js +29 -0
  751. package/lib/global/js/utils/lastIndexInArray.js +1 -1
  752. package/lib/global/js/utils/motionConstants.js +1 -8
  753. package/lib/global/js/utils/props-helper.d.ts +1 -1
  754. package/lib/global/js/utils/props-helper.js +1 -1
  755. package/lib/global/js/utils/scrollableAncestor.js +3 -3
  756. package/lib/index.js +5 -5
  757. package/lib/node_modules/@carbon/icon-helpers/es/index.js +7 -7
  758. package/lib/node_modules/@carbon/icons-react/es/Icon.js +2 -2
  759. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +863 -855
  760. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +884 -880
  761. package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  762. package/lib/settings.js +3 -6
  763. package/package.json +34 -35
  764. package/scss/components/APIKeyModal/_api-key-modal.scss +7 -7
  765. package/scss/components/APIKeyModal/_carbon-imports.scss +5 -5
  766. package/scss/components/AboutModal/_about-modal.scss +13 -13
  767. package/scss/components/AboutModal/_carbon-imports.scss +2 -2
  768. package/scss/components/ActionBar/_action-bar.scss +2 -2
  769. package/scss/components/ActionBar/_carbon-imports.scss +2 -2
  770. package/scss/components/ActionSet/_action-set.scss +9 -10
  771. package/scss/components/ActionSet/_carbon-imports.scss +2 -2
  772. package/scss/components/AddSelect/_add-select.scss +43 -40
  773. package/scss/components/AddSelect/_carbon-imports.scss +10 -10
  774. package/scss/components/BigNumbers/_big-numbers.scss +26 -20
  775. package/scss/components/BigNumbers/_carbon-imports.scss +2 -2
  776. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +8 -6
  777. package/scss/components/BreadcrumbWithOverflow/_carbon-imports.scss +3 -3
  778. package/scss/components/ButtonMenu/_button-menu.scss +3 -3
  779. package/scss/components/ButtonMenu/_carbon-imports.scss +2 -2
  780. package/scss/components/ButtonSetWithOverflow/_button-set-with-overflow.scss +2 -2
  781. package/scss/components/ButtonSetWithOverflow/_carbon-imports.scss +1 -1
  782. package/scss/components/Card/_carbon-imports.scss +2 -2
  783. package/scss/components/Card/_card.scss +23 -22
  784. package/scss/components/Carousel/_carousel.scss +5 -6
  785. package/scss/components/Cascade/_cascade.scss +2 -2
  786. package/scss/components/Checklist/_carbon-imports.scss +1 -1
  787. package/scss/components/Checklist/_checklist.scss +23 -24
  788. package/scss/components/Coachmark/_carbon-imports.scss +1 -1
  789. package/scss/components/Coachmark/_coachmark-dragbar.scss +1 -1
  790. package/scss/components/Coachmark/_coachmark-overlay.scss +34 -27
  791. package/scss/components/Coachmark/_coachmark-tagline.scss +18 -15
  792. package/scss/components/Coachmark/_coachmark.scss +1 -1
  793. package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +17 -17
  794. package/scss/components/CoachmarkButton/_coachmark-button.scss +1 -1
  795. package/scss/components/CoachmarkFixed/_coachmark-fixed.scss +1 -1
  796. package/scss/components/CoachmarkOverlayElement/_coachmark-overlay-element.scss +5 -5
  797. package/scss/components/CoachmarkOverlayElements/_coachmark-overlay-elements.scss +4 -4
  798. package/scss/components/CoachmarkStack/_coachmark-stack.scss +11 -11
  799. package/scss/components/ComboButton/_combo-button.scss +13 -9
  800. package/scss/components/ConditionBuilder/_condition-builder.scss +11 -12
  801. package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +10 -10
  802. package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +26 -30
  803. package/scss/components/CreateFullPage/_carbon-imports.scss +6 -6
  804. package/scss/components/CreateFullPage/_create-full-page.scss +36 -26
  805. package/scss/components/CreateInfluencer/_carbon-imports.scss +1 -1
  806. package/scss/components/CreateInfluencer/_create-influencer.scss +5 -2
  807. package/scss/components/CreateModal/_carbon-imports.scss +3 -3
  808. package/scss/components/CreateModal/_create-modal.scss +15 -14
  809. package/scss/components/CreateSidePanel/_carbon-imports.scss +1 -1
  810. package/scss/components/CreateSidePanel/_create-side-panel.scss +5 -5
  811. package/scss/components/CreateTearsheet/_carbon-imports.scss +1 -1
  812. package/scss/components/CreateTearsheet/_create-tearsheet.scss +22 -20
  813. package/scss/components/CreateTearsheetNarrow/_carbon-imports.scss +1 -1
  814. package/scss/components/CreateTearsheetNarrow/_create-tearsheet-narrow.scss +8 -8
  815. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +33 -32
  816. package/scss/components/Datagrid/_datagrid.scss +12 -8
  817. package/scss/components/Datagrid/styles/_datagrid.scss +135 -120
  818. package/scss/components/Datagrid/styles/_draggableElement.scss +11 -11
  819. package/scss/components/Datagrid/styles/_useActionsColumn.scss +1 -1
  820. package/scss/components/Datagrid/styles/_useColumnCenterAlign.scss +2 -3
  821. package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +7 -7
  822. package/scss/components/Datagrid/styles/_useExpandedRow.scss +13 -13
  823. package/scss/components/Datagrid/styles/_useInlineEdit.scss +62 -63
  824. package/scss/components/Datagrid/styles/_useNestedRows.scss +16 -16
  825. package/scss/components/Datagrid/styles/_useNestedTable.scss +10 -7
  826. package/scss/components/Datagrid/styles/_useSelectAllToggle.scss +6 -6
  827. package/scss/components/Datagrid/styles/_useSortableColumns.scss +6 -6
  828. package/scss/components/Datagrid/styles/_useStickyColumn.scss +11 -11
  829. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +9 -9
  830. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +19 -19
  831. package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +29 -29
  832. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +10 -9
  833. package/scss/components/DecoratorBase/_decorator-base-mixins.scss +6 -8
  834. package/scss/components/DecoratorBase/_decorator-base.scss +11 -11
  835. package/scss/components/DelimitedList/_delimited-list.scss +1 -1
  836. package/scss/components/DescriptionList/_description-list.scss +9 -9
  837. package/scss/components/EditInPlace/_carbon-imports.scss +2 -2
  838. package/scss/components/EditInPlace/_edit-in-place.scss +8 -7
  839. package/scss/components/EditSidePanel/_carbon-imports.scss +1 -1
  840. package/scss/components/EditSidePanel/_edit-side-panel.scss +4 -4
  841. package/scss/components/EditTearsheet/_carbon-imports.scss +9 -0
  842. package/scss/components/EditTearsheet/_edit-tearsheet.scss +20 -21
  843. package/scss/components/EditTearsheet/_index-with-carbon.scss +9 -0
  844. package/scss/components/EmptyStates/_carbon-imports.scss +2 -2
  845. package/scss/components/EmptyStates/_empty-state.scss +12 -10
  846. package/scss/components/ExampleComponent/_carbon-imports.scss +1 -1
  847. package/scss/components/ExportModal/_carbon-imports.scss +6 -6
  848. package/scss/components/ExportModal/_export-modal.scss +6 -6
  849. package/scss/components/FilterPanel/_carbon-imports.scss +5 -5
  850. package/scss/components/FilterPanel/_filter-panel-accordion-item.scss +3 -3
  851. package/scss/components/FilterPanel/_filter-panel-checkbox-with-overflow.scss +5 -5
  852. package/scss/components/FilterPanel/_filter-panel-checkbox.scss +3 -3
  853. package/scss/components/FilterPanel/_filter-panel-group.scss +4 -6
  854. package/scss/components/FilterPanel/_filter-panel-label.scss +1 -1
  855. package/scss/components/FilterPanel/_filter-panel-search.scss +8 -6
  856. package/scss/components/FilterPanel/_filter-panel.scss +1 -2
  857. package/scss/components/FilterSummary/_filter-summary.scss +9 -9
  858. package/scss/components/FullPageError/_full-page-error.scss +8 -9
  859. package/scss/components/GetStartedCard/_get-started-card.scss +12 -14
  860. package/scss/components/Guidebanner/_guidebanner.scss +37 -36
  861. package/scss/components/HTTPErrors/_carbon-imports.scss +1 -1
  862. package/scss/components/HTTPErrors/_http-errors.scss +11 -11
  863. package/scss/components/ImportModal/_carbon-imports.scss +4 -4
  864. package/scss/components/ImportModal/_import-modal.scss +12 -13
  865. package/scss/components/InlineTip/_inline-tip.scss +26 -25
  866. package/scss/components/InterstitialScreen/_interstitial-screen.scss +43 -44
  867. package/scss/components/InterstitialScreenView/_interstitial-screen-view.scss +2 -2
  868. package/scss/components/InterstitialScreenViewModule/_interstitial-screen-view-module.scss +2 -2
  869. package/scss/components/Nav/_nav.scss +32 -37
  870. package/scss/components/NonLinearReading/_non-linear-reading.scss +11 -7
  871. package/scss/components/NotificationsPanel/_carbon-imports.scss +3 -3
  872. package/scss/components/NotificationsPanel/_notifications-panel.scss +50 -40
  873. package/scss/components/OptionsTile/_carbon-imports.scss +1 -1
  874. package/scss/components/OptionsTile/_options-tile.scss +23 -25
  875. package/scss/components/PageHeader/_carbon-imports.scss +4 -4
  876. package/scss/components/PageHeader/_page-header.scss +109 -105
  877. package/scss/components/ProductiveCard/_productive-card.scss +11 -12
  878. package/scss/components/RemoveModal/_carbon-imports.scss +3 -3
  879. package/scss/components/RemoveModal/_remove-modal.scss +4 -4
  880. package/scss/components/Saving/_carbon-imports.scss +2 -2
  881. package/scss/components/Saving/_saving.scss +2 -2
  882. package/scss/components/ScrollGradient/_scroll-gradient.scss +18 -18
  883. package/scss/components/SidePanel/_animations.scss +78 -0
  884. package/scss/components/SidePanel/_carbon-imports.scss +1 -1
  885. package/scss/components/SidePanel/_side-panel.scss +154 -65
  886. package/scss/components/SimpleHeader/_simple-header.scss +3 -3
  887. package/scss/components/StatusIcon/_status-icon.scss +1 -1
  888. package/scss/components/StatusIndicator/_carbon-imports.scss +2 -2
  889. package/scss/components/StatusIndicator/_status-indicator.scss +11 -11
  890. package/scss/components/StringFormatter/_carbon-imports.scss +1 -1
  891. package/scss/components/StringFormatter/_string-formatter.scss +6 -7
  892. package/scss/components/TagOverflow/_tag-overflow.scss +14 -15
  893. package/scss/components/TagSet/_carbon-imports.scss +5 -5
  894. package/scss/components/TagSet/_tag-set.scss +13 -14
  895. package/scss/components/Tearsheet/_carbon-imports.scss +2 -2
  896. package/scss/components/Tearsheet/_tearsheet.scss +55 -41
  897. package/scss/components/Toolbar/_carbon-imports.scss +1 -1
  898. package/scss/components/Toolbar/_toolbar.scss +11 -11
  899. package/scss/components/TooltipTrigger/_tooltip-trigger.scss +2 -2
  900. package/scss/components/TruncatedList/_truncated-list.scss +8 -2
  901. package/scss/components/UserAvatar/_carbon-imports.scss +1 -1
  902. package/scss/components/UserAvatar/_user-avatar.scss +6 -16
  903. package/scss/components/UserProfileImage/_carbon-imports.scss +1 -1
  904. package/scss/components/UserProfileImage/_color-map.scss +1 -1
  905. package/scss/components/UserProfileImage/_user-profile-image.scss +5 -4
  906. package/scss/components/WebTerminal/_carbon-imports.scss +2 -2
  907. package/scss/components/WebTerminal/_web-terminal.scss +11 -11
  908. package/scss/components/_index-released-only-with-carbon.scss +1 -0
  909. package/scss/components/_index-with-carbon.scss +1 -0
  910. package/scss/global/decorators/_side-panel-decorator.scss +3 -3
  911. package/scss/global/styles/_display-box.scss +19 -19
  912. package/scss/global/styles/_mixins.scss +3 -3
  913. package/scss/index-full-carbon.scss +1 -1
  914. package/telemetry.yml +5 -2
  915. package/es/components/SidePanel/motion/variants.d.ts +0 -67
  916. package/es/components/SidePanel/motion/variants.js +0 -79
  917. package/es/global/js/utils/keyboardNavigation.d.ts +0 -27
  918. package/es/global/js/utils/keyboardNavigation.js +0 -37
  919. package/es/global/js/utils/wrapFocus.d.ts +0 -25
  920. package/es/global/js/utils/wrapFocus.js +0 -68
  921. package/lib/components/SidePanel/motion/variants.d.ts +0 -67
  922. package/lib/components/SidePanel/motion/variants.js +0 -83
  923. package/lib/global/js/utils/keyboardNavigation.d.ts +0 -27
  924. package/lib/global/js/utils/keyboardNavigation.js +0 -41
  925. package/lib/global/js/utils/wrapFocus.d.ts +0 -25
  926. package/lib/global/js/utils/wrapFocus.js +0 -73
@@ -56,19 +56,19 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
56
56
  cellSize: cellSize
57
57
  }) || {};
58
58
  React.useEffect(function () {
59
- if ((previousState === null || previousState === void 0 ? void 0 : previousState.cellSize) !== cellSize) {
59
+ if ((previousState === null || previousState === undefined ? undefined : previousState.cellSize) !== cellSize) {
60
60
  var _current;
61
- var scrollContainer = ref === null || ref === void 0 || (_current = ref.current) === null || _current === void 0 ? void 0 : _current.querySelector(".".concat(blockClass, "__list--container"));
62
- 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);
61
+ var scrollContainer = ref === null || ref === undefined || (_current = ref.current) === null || _current === undefined ? undefined : _current.querySelector(".".concat(blockClass, "__list--container"));
62
+ var hasScrollBar = (scrollContainer === null || scrollContainer === undefined ? undefined : scrollContainer.scrollHeight) && (scrollContainer === null || scrollContainer === undefined ? undefined : scrollContainer.clientHeight) && (scrollContainer === null || scrollContainer === undefined ? undefined : scrollContainer.scrollHeight) > (scrollContainer === null || scrollContainer === undefined ? undefined : scrollContainer.clientHeight);
63
63
  var scrollBarValue = hasScrollBar ? 0 : scrollBarSize;
64
64
 
65
65
  // fix for a11y violation element_scrollable_tabbable
66
- if (!(scrollContainer !== null && scrollContainer !== void 0 && scrollContainer.getAttribute('tabIndex'))) {
67
- scrollContainer === null || scrollContainer === void 0 || scrollContainer.setAttribute('tabIndex', '0');
66
+ if (!(scrollContainer !== null && scrollContainer !== undefined && scrollContainer.getAttribute('tabIndex'))) {
67
+ scrollContainer === null || scrollContainer === undefined || scrollContainer.setAttribute('tabIndex', '0');
68
68
  }
69
69
  setScrollBarSizeValue(scrollBarValue);
70
70
  }
71
- }, [cellSize, ref, scrollBarSize, previousState === null || previousState === void 0 ? void 0 : previousState.cellSize]);
71
+ }, [cellSize, ref, scrollBarSize, previousState === null || previousState === undefined ? undefined : previousState.cellSize]);
72
72
  var handleColumnHeaderClick = function handleColumnHeaderClick(index) {
73
73
  return function (event) {
74
74
  var isHoldingCommandKey = checkForHoldingKey.checkForHoldingKey(event, 'cmd');
@@ -109,10 +109,10 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
109
109
  // Remove columns, need to call handleHeaderCellSelection
110
110
  return;
111
111
  }
112
- var selectionAreaToClone = selectionAreas === null || selectionAreas === void 0 ? void 0 : selectionAreas.filter(function (item) {
113
- return (item === null || item === void 0 ? void 0 : item.matcher) === currentMatcher;
112
+ var selectionAreaToClone = selectionAreas === null || selectionAreas === undefined ? undefined : selectionAreas.filter(function (item) {
113
+ return (item === null || item === undefined ? undefined : item.matcher) === currentMatcher;
114
114
  });
115
- 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, "\"]"));
115
+ var selectionAreaElement = ref.current.querySelector("[data-matcher-id=\"".concat(selectionAreaToClone === null || selectionAreaToClone === undefined || (_selectionAreaToClone = selectionAreaToClone[0]) === null || _selectionAreaToClone === undefined ? undefined : _selectionAreaToClone.matcher, "\"]"));
116
116
  if (selectionAreaElement) {
117
117
  selectionAreaElement.classList.add("".concat(blockClass, "__selection-area--element"));
118
118
  }
@@ -123,12 +123,12 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
123
123
  var headerButtonCoords = event.target.getBoundingClientRect();
124
124
  var headerIndex = event.target.getAttribute('data-column-index');
125
125
  var offsetXValue = clickXPosition - headerButtonCoords.left;
126
- 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);
127
- var selectionAreaCoords = (selectionAreaElement === null || selectionAreaElement === void 0 ? void 0 : selectionAreaElement.getBoundingClientRect()) || new DOMRect();
128
- var updatedOffsetDifference = lowestColumnIndexFromSelectionArea < parseInt(headerIndex) ? offsetXValue + (headerButtonCoords.left - (selectionAreaCoords === null || selectionAreaCoords === void 0 ? void 0 : selectionAreaCoords.left)) : offsetXValue;
129
- var bodyContainer = (_document = document) === null || _document === void 0 || (_document = _document.querySelector(".".concat(blockClass, "__list--container"))) === null || _document === void 0 ? void 0 : _document.firstElementChild;
130
- var selectionAreaClonedElement = selectionAreaElement === null || selectionAreaElement === void 0 ? void 0 : selectionAreaElement.cloneNode();
131
- var reorderIndicatorLine = selectionAreaElement === null || selectionAreaElement === void 0 ? void 0 : selectionAreaElement.cloneNode();
126
+ var lowestColumnIndexFromSelectionArea = Math.min((selectionAreaToClone === null || selectionAreaToClone === undefined || (_selectionAreaToClone2 = selectionAreaToClone[0]) === null || _selectionAreaToClone2 === undefined || (_selectionAreaToClone2 = _selectionAreaToClone2.point1) === null || _selectionAreaToClone2 === undefined ? undefined : _selectionAreaToClone2.column) || 0, (selectionAreaToClone === null || selectionAreaToClone === undefined || (_selectionAreaToClone3 = selectionAreaToClone[0]) === null || _selectionAreaToClone3 === undefined || (_selectionAreaToClone3 = _selectionAreaToClone3.point2) === null || _selectionAreaToClone3 === undefined ? undefined : _selectionAreaToClone3.column) || 0);
127
+ var selectionAreaCoords = (selectionAreaElement === null || selectionAreaElement === undefined ? undefined : selectionAreaElement.getBoundingClientRect()) || new DOMRect();
128
+ var updatedOffsetDifference = lowestColumnIndexFromSelectionArea < parseInt(headerIndex) ? offsetXValue + (headerButtonCoords.left - (selectionAreaCoords === null || selectionAreaCoords === undefined ? undefined : selectionAreaCoords.left)) : offsetXValue;
129
+ var bodyContainer = (_document = document) === null || _document === undefined || (_document = _document.querySelector(".".concat(blockClass, "__list--container"))) === null || _document === undefined ? undefined : _document.firstElementChild;
130
+ var selectionAreaClonedElement = selectionAreaElement === null || selectionAreaElement === undefined ? undefined : selectionAreaElement.cloneNode();
131
+ var reorderIndicatorLine = selectionAreaElement === null || selectionAreaElement === undefined ? undefined : selectionAreaElement.cloneNode();
132
132
  if (reorderIndicatorLine) {
133
133
  reorderIndicatorLine.className = "".concat(blockClass, "__reorder-indicator-line");
134
134
  reorderIndicatorLine.style.width = layout.px(2);
@@ -136,9 +136,9 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
136
136
  selectionAreaClonedElement.classList.add("".concat(blockClass, "__selection-area--element-cloned"));
137
137
  selectionAreaClonedElement.setAttribute('data-clone-offset-x', "".concat(updatedOffsetDifference));
138
138
  selectionAreaClonedElement.setAttribute('data-column-index-original', index);
139
- bodyContainer === null || bodyContainer === void 0 || bodyContainer.appendChild(selectionAreaClonedElement);
140
- bodyContainer === null || bodyContainer === void 0 || bodyContainer.appendChild(reorderIndicatorLine);
141
- setHeaderCellHoldActive === null || setHeaderCellHoldActive === void 0 || setHeaderCellHoldActive(true);
139
+ bodyContainer === null || bodyContainer === undefined || bodyContainer.appendChild(selectionAreaClonedElement);
140
+ bodyContainer === null || bodyContainer === undefined || bodyContainer.appendChild(reorderIndicatorLine);
141
+ setHeaderCellHoldActive === null || setHeaderCellHoldActive === undefined || setHeaderCellHoldActive(true);
142
142
  };
143
143
  };
144
144
  useSpreadsheetMouseMove.useSpreadsheetMouseMove({
@@ -149,7 +149,7 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
149
149
  return /*#__PURE__*/React.createElement("div", {
150
150
  className: cx("".concat(blockClass, "__header--container")),
151
151
  role: "rowgroup"
152
- }, headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map(function (headerGroup, index) {
152
+ }, headerGroups === null || headerGroups === undefined ? undefined : headerGroups.map(function (headerGroup, index) {
153
153
  var headerProps = propsHelper.prepareProps(headerGroup.getHeaderGroupProps(), 'key');
154
154
  return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({
155
155
  key: "header_".concat(index)
@@ -171,8 +171,8 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
171
171
  role: "columnheader",
172
172
  className: "".concat(blockClass, "__select-all-cell-container"),
173
173
  style: {
174
- width: defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.rowHeaderWidth,
175
- height: defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.rowHeight
174
+ width: defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.rowHeaderWidth,
175
+ height: defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.rowHeight
176
176
  }
177
177
  }, /*#__PURE__*/React.createElement("button", {
178
178
  id: "".concat(blockClass, "__cell--header--header"),
@@ -180,12 +180,12 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
180
180
  "data-column-index": "header",
181
181
  type: "button",
182
182
  style: {
183
- width: defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.rowHeaderWidth
183
+ width: defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.rowHeaderWidth
184
184
  },
185
185
  tabIndex: -1,
186
186
  "aria-label": selectAllAriaLabel,
187
187
  onClick: handleSelectAllClick,
188
- className: cx("".concat(blockClass, "__th"), "".concat(blockClass, "--interactive-cell-element"), "".concat(blockClass, "__th--select-all"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__th--active-header"), (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header' && (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header'))
188
+ className: cx("".concat(blockClass, "__th"), "".concat(blockClass, "--interactive-cell-element"), "".concat(blockClass, "__th--select-all"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__th--active-header"), (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header' && (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header'))
189
189
  }, "\xA0")), headerGroup.headers.map(function (column, index) {
190
190
  var colProps = propsHelper.prepareProps(column.getHeaderProps(), 'key');
191
191
  var selectedHeader = checkSelectedHeaderCell.checkSelectedHeaderCell(index, selectionAreas, 'column', rows);
@@ -204,10 +204,10 @@ var DataSpreadsheetHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
204
204
  } : undefined,
205
205
  onClick: !selectedHeader ? handleColumnHeaderClick(index) : undefined,
206
206
  style: {
207
- height: defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.rowHeight,
208
- width: (column === null || column === void 0 ? void 0 : column.width) || (defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.width)
207
+ height: defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.rowHeight,
208
+ width: (column === null || column === undefined ? undefined : column.width) || (defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.width)
209
209
  },
210
- className: cx("".concat(blockClass, "__th"), "".concat(blockClass, "--interactive-cell-element"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__th--active-header"), (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === index || checkActiveHeaderCell.checkActiveHeaderCell(index, selectionAreas, 'column')), "".concat(blockClass, "__th--active-header-disabledSwapping"), disableColumnSwapping || readOnlyTable), "".concat(blockClass, "__th--selected-header"), selectedHeader), "".concat(blockClass, "__th--selected-header-reorder-active"), selectedHeaderReorderActive)),
210
+ className: cx("".concat(blockClass, "__th"), "".concat(blockClass, "--interactive-cell-element"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__th--active-header"), (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === index || checkActiveHeaderCell.checkActiveHeaderCell(index, selectionAreas, 'column')), "".concat(blockClass, "__th--active-header-disabledSwapping"), disableColumnSwapping || readOnlyTable), "".concat(blockClass, "__th--selected-header"), selectedHeader), "".concat(blockClass, "__th--selected-header-reorder-active"), selectedHeaderReorderActive)),
211
211
  type: "button"
212
212
  }, column.render('Header')));
213
213
  }));
@@ -24,9 +24,9 @@ var useMoveActiveCell = function useMoveActiveCell(_ref) {
24
24
  performCreateActiveCell();
25
25
  }, [activeCellContent, performCreateActiveCell, isActiveHeaderCellChanged]);
26
26
  performCreateActiveCell = React.useCallback(function () {
27
- 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, "\"]"));
28
- var shouldPlaceActiveCellInHeader = (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' && true;
29
- var selectAllElement = spreadsheetRef === null || spreadsheetRef === void 0 ? void 0 : spreadsheetRef.current.querySelector("[data-row-index=\"header\"][data-column-index=\"header\"]");
27
+ var activeCellPlacementElement = spreadsheetRef === null || spreadsheetRef === undefined ? undefined : spreadsheetRef.current.querySelector("[data-row-index=\"".concat(activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row, "\"][data-column-index=\"").concat(activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column, "\"]"));
28
+ var shouldPlaceActiveCellInHeader = (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' && true;
29
+ var selectAllElement = spreadsheetRef === null || spreadsheetRef === undefined ? undefined : spreadsheetRef.current.querySelector("[data-row-index=\"header\"][data-column-index=\"header\"]");
30
30
  if (containerHasFocus) {
31
31
  createActiveCell({
32
32
  placementElement: activeCellCoordinates ? activeCellPlacementElement : selectAllElement,
@@ -100,7 +100,7 @@ var useMultipleKeyTracking = function useMultipleKeyTracking(_ref) {
100
100
  }
101
101
  };
102
102
  }
103
- if (previousState !== null && previousState !== void 0 && previousState.windowFocused && !windowFocused) {
103
+ if (previousState !== null && previousState !== undefined && previousState.windowFocused && !windowFocused) {
104
104
  setKeysPressedList([]);
105
105
  }
106
106
  // Remove handlers if the spreadsheet container loses focus
@@ -108,11 +108,11 @@ var useMultipleKeyTracking = function useMultipleKeyTracking(_ref) {
108
108
  if (ref && !containerHasFocus || isEditing) {
109
109
  ref.current.onkeydown = undefined;
110
110
  ref.current.onkeyup = undefined;
111
- if (!(previousState !== null && previousState !== void 0 && previousState.isEditing) && isEditing || previousState !== null && previousState !== void 0 && previousState.containerHasFocus && !containerHasFocus) {
111
+ if (!(previousState !== null && previousState !== undefined && previousState.isEditing) && isEditing || previousState !== null && previousState !== undefined && previousState.containerHasFocus && !containerHasFocus) {
112
112
  setKeysPressedList([]);
113
113
  }
114
114
  }
115
- }, [keysPressedList, containerHasFocus, ref, isEditing, previousState === null || previousState === void 0 ? void 0 : previousState.isEditing, previousState === null || previousState === void 0 ? void 0 : previousState.containerHasFocus, windowFocused, previousState === null || previousState === void 0 ? void 0 : previousState.windowFocused, usingMac]);
115
+ }, [keysPressedList, containerHasFocus, ref, isEditing, previousState === null || previousState === undefined ? undefined : previousState.isEditing, previousState === null || previousState === undefined ? undefined : previousState.containerHasFocus, windowFocused, previousState === null || previousState === undefined ? undefined : previousState.windowFocused, usingMac]);
116
116
  return {
117
117
  keysPressedList: keysPressedList,
118
118
  windowFocused: windowFocused,
@@ -12,7 +12,7 @@ var settings = require('../../../settings.js');
12
12
 
13
13
  var useResetSpreadsheetFocus = function useResetSpreadsheetFocus(_ref) {
14
14
  var _ref$blockClass = _ref.blockClass,
15
- blockClass = _ref$blockClass === void 0 ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
15
+ blockClass = _ref$blockClass === undefined ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
16
16
  focusedElement = _ref.focusedElement,
17
17
  removeActiveCell = _ref.removeActiveCell,
18
18
  setContainerHasFocus = _ref.setContainerHasFocus;
@@ -24,7 +24,7 @@ var useSpreadsheetEdit = function useSpreadsheetEdit(_ref) {
24
24
  defaultColumn = _ref.defaultColumn,
25
25
  cellEditorValue = _ref.cellEditorValue,
26
26
  _ref$blockClass = _ref.blockClass,
27
- blockClass = _ref$blockClass === void 0 ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass;
27
+ blockClass = _ref$blockClass === undefined ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass;
28
28
  var _useState = React.useState(null),
29
29
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
30
30
  nextIndex = _useState2[0],
@@ -33,28 +33,28 @@ var useSpreadsheetEdit = function useSpreadsheetEdit(_ref) {
33
33
  nextIndex: nextIndex
34
34
  });
35
35
  React.useEffect(function () {
36
- if (!(previousState !== null && previousState !== void 0 && previousState.nextIndex)) {
37
- setNextIndex(activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column);
36
+ if (!(previousState !== null && previousState !== undefined && previousState.nextIndex)) {
37
+ setNextIndex(activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column);
38
38
  }
39
- }, [previousState === null || previousState === void 0 ? void 0 : previousState.nextIndex, activeCellCoordinates]);
39
+ }, [previousState === null || previousState === undefined ? undefined : previousState.nextIndex, activeCellCoordinates]);
40
40
  React.useEffect(function () {
41
41
  var rulerWidth = cellEditorRulerRef.current.offsetWidth;
42
42
  var cellEditorCurrentWidth = parseInt(cellEditorRef.current.style.width);
43
43
  if (isEditing) {
44
44
  var _rows$activeCellCoord, _cellProps$column, _cellEditorRef$curren;
45
- var cellProps = (_rows$activeCellCoord = rows[activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row]) === null || _rows$activeCellCoord === void 0 ? void 0 : _rows$activeCellCoord.cells[activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column];
46
- var activeCellLeftPosition = activeCellRef === null || activeCellRef === void 0 ? void 0 : activeCellRef.current.style.left;
47
- var activeCellTopPosition = activeCellRef === null || activeCellRef === void 0 ? void 0 : activeCellRef.current.style.top;
45
+ var cellProps = (_rows$activeCellCoord = rows[activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row]) === null || _rows$activeCellCoord === undefined ? undefined : _rows$activeCellCoord.cells[activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column];
46
+ var activeCellLeftPosition = activeCellRef === null || activeCellRef === undefined ? undefined : activeCellRef.current.style.left;
47
+ var activeCellTopPosition = activeCellRef === null || activeCellRef === undefined ? undefined : activeCellRef.current.style.top;
48
48
  cellEditorRef.current.style.left = activeCellLeftPosition;
49
49
  cellEditorRef.current.style.top = activeCellTopPosition;
50
50
  cellEditorRef.current.style.display = 'block';
51
- cellEditorRef.current.style.height = activeCellRef === null || activeCellRef === void 0 ? void 0 : activeCellRef.current.style.height;
52
- cellEditorRef.current.style.paddingTop = "".concat((parseInt(activeCellRef === null || activeCellRef === void 0 ? void 0 : activeCellRef.current.style.height) - 16) / 2 - 1, "px"); // calculate paddingTop based on cellHeight which could be variable depending on the cellSize prop
53
- cellEditorRef.current.style.textAlign = (cellProps === null || cellProps === void 0 || (_cellProps$column = cellProps.column) === null || _cellProps$column === void 0 ? void 0 : _cellProps$column.placement) === 'right' ? 'right' : 'left';
54
- (_cellEditorRef$curren = cellEditorRef.current) === null || _cellEditorRef$curren === void 0 || _cellEditorRef$curren.focus();
51
+ cellEditorRef.current.style.height = activeCellRef === null || activeCellRef === undefined ? undefined : activeCellRef.current.style.height;
52
+ cellEditorRef.current.style.paddingTop = "".concat((parseInt(activeCellRef === null || activeCellRef === undefined ? undefined : activeCellRef.current.style.height) - 16) / 2 - 1, "px"); // calculate paddingTop based on cellHeight which could be variable depending on the cellSize prop
53
+ cellEditorRef.current.style.textAlign = (cellProps === null || cellProps === undefined || (_cellProps$column = cellProps.column) === null || _cellProps$column === undefined ? undefined : _cellProps$column.placement) === 'right' ? 'right' : 'left';
54
+ (_cellEditorRef$curren = cellEditorRef.current) === null || _cellEditorRef$curren === undefined || _cellEditorRef$curren.focus();
55
55
  if (rulerWidth < cellEditorCurrentWidth) {
56
56
  var _visibleColumns$nextI;
57
- var currentColumnWidth = ((_visibleColumns$nextI = visibleColumns[nextIndex]) === null || _visibleColumns$nextI === void 0 ? void 0 : _visibleColumns$nextI.width) || (defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.width);
57
+ var currentColumnWidth = ((_visibleColumns$nextI = visibleColumns[nextIndex]) === null || _visibleColumns$nextI === undefined ? undefined : _visibleColumns$nextI.width) || (defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.width);
58
58
  // If the contents of the cell editor is deleted past the point of the next column
59
59
  if (rulerWidth < cellEditorCurrentWidth - currentColumnWidth) {
60
60
  cellEditorRef.current.style.width = layout.px(parseInt(cellEditorRef.current.style.width) - currentColumnWidth);
@@ -76,8 +76,8 @@ var useSpreadsheetEdit = function useSpreadsheetEdit(_ref) {
76
76
  return prev + 1;
77
77
  });
78
78
  var onLastColumnIndex = nextIndex + 1 === visibleColumns.length;
79
- var nextColumnWidth = onLastColumnIndex ? 0 : ((_visibleColumns = visibleColumns[nextIndex + 1]) === null || _visibleColumns === void 0 ? void 0 : _visibleColumns.width) || (defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.width);
80
- var startingRowPosition = activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row;
79
+ var nextColumnWidth = onLastColumnIndex ? 0 : ((_visibleColumns = visibleColumns[nextIndex + 1]) === null || _visibleColumns === undefined ? undefined : _visibleColumns.width) || (defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.width);
80
+ var startingRowPosition = activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row;
81
81
  var totalRows = rows.length;
82
82
  var totalCellEditorMaxHeight = (totalRows - startingRowPosition) * defaultColumn.rowHeight;
83
83
  cellEditorRef.current.style.maxHeight = layout.px(totalCellEditorMaxHeight);
@@ -98,9 +98,9 @@ var useSpreadsheetEdit = function useSpreadsheetEdit(_ref) {
98
98
  cellEditorRef.current.style.display = 'none';
99
99
  cellEditorRef.current.blur();
100
100
  activeCellRef.current.focus();
101
- setNextIndex(activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column);
101
+ setNextIndex(activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column);
102
102
  }
103
- }, [isEditing, activeCellCoordinates, rows, cellEditorValue, defaultColumn, activeCellRef, cellEditorRef, cellEditorRulerRef, visibleColumns, blockClass, previousState === null || previousState === void 0 ? void 0 : previousState.cellEditorValue, nextIndex]);
103
+ }, [isEditing, activeCellCoordinates, rows, cellEditorValue, defaultColumn, activeCellRef, cellEditorRef, cellEditorRulerRef, visibleColumns, blockClass, previousState === null || previousState === undefined ? undefined : previousState.cellEditorValue, nextIndex]);
104
104
  };
105
105
 
106
106
  exports.useSpreadsheetEdit = useSpreadsheetEdit;
@@ -17,14 +17,14 @@ var moveColumnIndicatorLine = require('../utils/moveColumnIndicatorLine.js');
17
17
  var useSpreadsheetMouseMove = function useSpreadsheetMouseMove(_ref) {
18
18
  var ref = _ref.ref,
19
19
  _ref$blockClass = _ref.blockClass,
20
- blockClass = _ref$blockClass === void 0 ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
20
+ blockClass = _ref$blockClass === undefined ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
21
21
  headerCellHoldActive = _ref.headerCellHoldActive,
22
22
  defaultColumn = _ref.defaultColumn;
23
23
  React.useEffect(function () {
24
- var handleMouseMove = function handleMouseMove(event) {
24
+ var _handleMouseMove = function handleMouseMove(event) {
25
25
  var clonedSelectionElement = ref.current.querySelector(".".concat(blockClass, "__selection-area--element-cloned"));
26
26
  if (clonedSelectionElement) {
27
- ref.current.addEventListener('mousemove', handleMouseMove);
27
+ ref.current.addEventListener('mousemove', _handleMouseMove);
28
28
  }
29
29
  var spreadsheetCoords = ref.current.getBoundingClientRect();
30
30
  var listContainer = ref.current.querySelector(".".concat(blockClass, "__list--container"));
@@ -38,10 +38,10 @@ var useSpreadsheetMouseMove = function useSpreadsheetMouseMove(_ref) {
38
38
  var spreadsheetWrapperElement = ref.current;
39
39
  spreadsheetWrapperElement.getBoundingClientRect();
40
40
  var xPositionRelativeToSpreadsheet = event.clientX - spreadsheetCoords.left;
41
- var offsetXValue = clonedSelectionElement === null || clonedSelectionElement === void 0 ? void 0 : clonedSelectionElement.getAttribute('data-clone-offset-x');
41
+ var offsetXValue = clonedSelectionElement === null || clonedSelectionElement === undefined ? undefined : clonedSelectionElement.getAttribute('data-clone-offset-x');
42
42
  var totalSpreadsheetScrollingWidth = listContainer.scrollWidth;
43
43
  var clonedSelectionWidth = clonedSelectionElement.offsetWidth;
44
- var clonePlacement = Math.max(xPositionRelativeToSpreadsheet - offsetXValue, defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.rowHeaderWidth);
44
+ var clonePlacement = Math.max(xPositionRelativeToSpreadsheet - offsetXValue, defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.rowHeaderWidth);
45
45
  var leftPosition = totalSpreadsheetScrollingWidth - clonedSelectionWidth >= clonePlacement ? clonePlacement + scrollAmount : totalSpreadsheetScrollingWidth - clonedSelectionWidth;
46
46
  // Moves the position of the cloned selection area to follow mouse, and
47
47
  // add the amount horizontally scrolled
@@ -50,14 +50,14 @@ var useSpreadsheetMouseMove = function useSpreadsheetMouseMove(_ref) {
50
50
  }
51
51
  };
52
52
  if (headerCellHoldActive) {
53
- ref.current.addEventListener('mousemove', handleMouseMove);
53
+ ref.current.addEventListener('mousemove', _handleMouseMove);
54
54
  }
55
55
  var spreadsheetRef = ref.current;
56
56
  if (!headerCellHoldActive) {
57
- spreadsheetRef === null || spreadsheetRef === void 0 || spreadsheetRef.removeEventListener('mousemove', handleMouseMove);
57
+ spreadsheetRef === null || spreadsheetRef === undefined || spreadsheetRef.removeEventListener('mousemove', _handleMouseMove);
58
58
  }
59
59
  return function () {
60
- spreadsheetRef === null || spreadsheetRef === void 0 || spreadsheetRef.removeEventListener('mousemove', handleMouseMove);
60
+ spreadsheetRef === null || spreadsheetRef === undefined || spreadsheetRef.removeEventListener('mousemove', _handleMouseMove);
61
61
  };
62
62
  });
63
63
  };
@@ -22,7 +22,7 @@ var useSpreadsheetMouseUp = function useSpreadsheetMouseUp(_ref) {
22
22
  setValidStartingPoint = _ref.setValidStartingPoint,
23
23
  validStartingPoint = _ref.validStartingPoint,
24
24
  _ref$blockClass = _ref.blockClass,
25
- blockClass = _ref$blockClass === void 0 ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
25
+ blockClass = _ref$blockClass === undefined ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
26
26
  ref = _ref.ref,
27
27
  setHeaderCellHoldActive = _ref.setHeaderCellHoldActive,
28
28
  setColumnOrder = _ref.setColumnOrder,
@@ -36,7 +36,7 @@ var useSpreadsheetMouseUp = function useSpreadsheetMouseUp(_ref) {
36
36
  var handleMouseUp = function handleMouseUp(event) {
37
37
  var _selectionAreas$;
38
38
  var isHoldingColumn = false;
39
- if (selectionAreas !== null && selectionAreas !== void 0 && (_selectionAreas$ = selectionAreas[0]) !== null && _selectionAreas$ !== void 0 && _selectionAreas$.header && selectionAreas[0].header.type === 'column') {
39
+ if (selectionAreas !== null && selectionAreas !== undefined && (_selectionAreas$ = selectionAreas[0]) !== null && _selectionAreas$ !== undefined && _selectionAreas$.header && selectionAreas[0].header.type === 'column') {
40
40
  isHoldingColumn = true;
41
41
  }
42
42
  // Remove the cloned selection area on mouse up
@@ -51,10 +51,10 @@ var useSpreadsheetMouseUp = function useSpreadsheetMouseUp(_ref) {
51
51
  if (selectionAreaCloneElement) {
52
52
  var _selectionAreaElement;
53
53
  var closestCell = event.target.closest(".".concat(blockClass, "--interactive-cell-element"));
54
- var newColumnIndex = parseInt === null || parseInt === void 0 ? void 0 : parseInt(closestCell === null || closestCell === void 0 ? void 0 : closestCell.getAttribute('data-column-index'));
55
- var originalColumnIndex = parseInt === null || parseInt === void 0 ? void 0 : parseInt(selectionAreaCloneElement === null || selectionAreaCloneElement === void 0 ? void 0 : selectionAreaCloneElement.getAttribute('data-column-index-original'));
54
+ var newColumnIndex = parseInt === null || parseInt === undefined ? undefined : parseInt(closestCell === null || closestCell === undefined ? undefined : closestCell.getAttribute('data-column-index'));
55
+ var originalColumnIndex = parseInt === null || parseInt === undefined ? undefined : parseInt(selectionAreaCloneElement === null || selectionAreaCloneElement === undefined ? undefined : selectionAreaCloneElement.getAttribute('data-column-index-original'));
56
56
  var selectionAreaToClone = selectionAreas.filter(function (item) {
57
- return (item === null || item === void 0 ? void 0 : item.matcher) === currentMatcher;
57
+ return (item === null || item === undefined ? undefined : item.matcher) === currentMatcher;
58
58
  });
59
59
  var selectionAreaIndexArray = selectionAreaToClone[0].header.selectedIndexList;
60
60
  var columnToMoveToElement = ref.current.querySelector("[data-row-index=\"header\"][data-column-index=\"".concat(newColumnIndex, "\"]"));
@@ -135,9 +135,9 @@ var useSpreadsheetMouseUp = function useSpreadsheetMouseUp(_ref) {
135
135
  }
136
136
  // Remove the cloned column and indicator elements
137
137
  var indicatorLineElement = ref.current.querySelector(".".concat(blockClass, "__reorder-indicator-line"));
138
- indicatorLineElement === null || indicatorLineElement === void 0 || indicatorLineElement.remove();
139
- selectionAreaCloneElement === null || selectionAreaCloneElement === void 0 || selectionAreaCloneElement.remove();
140
- selectionAreaElement === null || selectionAreaElement === void 0 || (_selectionAreaElement = selectionAreaElement.classList) === null || _selectionAreaElement === void 0 || _selectionAreaElement.remove("".concat(blockClass, "__selection-area--element"));
138
+ indicatorLineElement === null || indicatorLineElement === undefined || indicatorLineElement.remove();
139
+ selectionAreaCloneElement === null || selectionAreaCloneElement === undefined || selectionAreaCloneElement.remove();
140
+ selectionAreaElement === null || selectionAreaElement === undefined || (_selectionAreaElement = selectionAreaElement.classList) === null || _selectionAreaElement === undefined || _selectionAreaElement.remove("".concat(blockClass, "__selection-area--element"));
141
141
  setSelectedHeaderReorderActive(false);
142
142
  }
143
143
  }
@@ -16,7 +16,7 @@ var useSpreadsheetOutsideClick = function useSpreadsheetOutsideClick(_ref) {
16
16
  var isBlurSpreadsheet = _ref.isBlurSpreadsheet,
17
17
  spreadsheetRef = _ref.spreadsheetRef,
18
18
  _ref$blockClass = _ref.blockClass,
19
- blockClass = _ref$blockClass === void 0 ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
19
+ blockClass = _ref$blockClass === undefined ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
20
20
  setActiveCellCoordinates = _ref.setActiveCellCoordinates,
21
21
  setSelectionAreas = _ref.setSelectionAreas,
22
22
  removeActiveCell = _ref.removeActiveCell,
@@ -18,14 +18,14 @@ var checkActiveHeaderCell = function checkActiveHeaderCell(headerIndex, selectio
18
18
  var activeRowIndexes = [];
19
19
  areasCloned.forEach(function (area) {
20
20
  var _area$point, _area$point2, _area$point3, _area$point4;
21
- var greatestRowIndex = Math.max((_area$point = area.point1) === null || _area$point === void 0 ? void 0 : _area$point[headerType], (_area$point2 = area.point2) === null || _area$point2 === void 0 ? void 0 : _area$point2[headerType]);
22
- var lowestRowIndex = Math.min((_area$point3 = area.point1) === null || _area$point3 === void 0 ? void 0 : _area$point3[headerType], (_area$point4 = area.point2) === null || _area$point4 === void 0 ? void 0 : _area$point4[headerType]);
21
+ var greatestRowIndex = Math.max((_area$point = area.point1) === null || _area$point === undefined ? undefined : _area$point[headerType], (_area$point2 = area.point2) === null || _area$point2 === undefined ? undefined : _area$point2[headerType]);
22
+ var lowestRowIndex = Math.min((_area$point3 = area.point1) === null || _area$point3 === undefined ? undefined : _area$point3[headerType], (_area$point4 = area.point2) === null || _area$point4 === undefined ? undefined : _area$point4[headerType]);
23
23
  for (var i = lowestRowIndex; i <= greatestRowIndex; i++) {
24
24
  activeRowIndexes.push(i);
25
25
  }
26
26
  });
27
27
  var activeRowIndexesNoDuplicates = _rollupPluginBabelHelpers.toConsumableArray(new Set(activeRowIndexes));
28
- if (areasCloned !== null && areasCloned !== void 0 && areasCloned.length && activeRowIndexesNoDuplicates.includes(headerIndex)) {
28
+ if (areasCloned !== null && areasCloned !== undefined && areasCloned.length && activeRowIndexesNoDuplicates.includes(headerIndex)) {
29
29
  return true;
30
30
  }
31
31
  return false;
@@ -14,11 +14,11 @@ var checkSelectedHeaderCell = function checkSelectedHeaderCell(headerIndex, sele
14
14
  var isSelectedHeader = areasCloned.some(function (area) {
15
15
  var _area$point, _area$point2, _area$point3, _area$point4, _area$point5, _area$point6, _area$point7, _area$point8;
16
16
  var oppositeType = headerType === 'column' ? 'row' : 'column';
17
- var minOppositeSelection = Math.min(area === null || area === void 0 || (_area$point = area.point1) === null || _area$point === void 0 ? void 0 : _area$point[oppositeType], area === null || area === void 0 || (_area$point2 = area.point2) === null || _area$point2 === void 0 ? void 0 : _area$point2[oppositeType]);
18
- var maxOppositeSelection = Math.max(area === null || area === void 0 || (_area$point3 = area.point1) === null || _area$point3 === void 0 ? void 0 : _area$point3[oppositeType], area === null || area === void 0 || (_area$point4 = area.point2) === null || _area$point4 === void 0 ? void 0 : _area$point4[oppositeType]);
19
- var minSelection = Math.min(area === null || area === void 0 || (_area$point5 = area.point1) === null || _area$point5 === void 0 ? void 0 : _area$point5[headerType], area === null || area === void 0 || (_area$point6 = area.point2) === null || _area$point6 === void 0 ? void 0 : _area$point6[headerType]);
20
- var maxSelection = Math.max(area === null || area === void 0 || (_area$point7 = area.point1) === null || _area$point7 === void 0 ? void 0 : _area$point7[headerType], area === null || area === void 0 || (_area$point8 = area.point2) === null || _area$point8 === void 0 ? void 0 : _area$point8[headerType]);
21
- var isTrueSelectedState = (items === null || items === void 0 ? void 0 : items.length) - 1 === maxOppositeSelection && minOppositeSelection === 0;
17
+ var minOppositeSelection = Math.min(area === null || area === undefined || (_area$point = area.point1) === null || _area$point === undefined ? undefined : _area$point[oppositeType], area === null || area === undefined || (_area$point2 = area.point2) === null || _area$point2 === undefined ? undefined : _area$point2[oppositeType]);
18
+ var maxOppositeSelection = Math.max(area === null || area === undefined || (_area$point3 = area.point1) === null || _area$point3 === undefined ? undefined : _area$point3[oppositeType], area === null || area === undefined || (_area$point4 = area.point2) === null || _area$point4 === undefined ? undefined : _area$point4[oppositeType]);
19
+ var minSelection = Math.min(area === null || area === undefined || (_area$point5 = area.point1) === null || _area$point5 === undefined ? undefined : _area$point5[headerType], area === null || area === undefined || (_area$point6 = area.point2) === null || _area$point6 === undefined ? undefined : _area$point6[headerType]);
20
+ var maxSelection = Math.max(area === null || area === undefined || (_area$point7 = area.point1) === null || _area$point7 === undefined ? undefined : _area$point7[headerType], area === null || area === undefined || (_area$point8 = area.point2) === null || _area$point8 === undefined ? undefined : _area$point8[headerType]);
21
+ var isTrueSelectedState = (items === null || items === undefined ? undefined : items.length) - 1 === maxOppositeSelection && minOppositeSelection === 0;
22
22
  // console.log({minSelection, maxSelection});
23
23
  // Iterate over all columns included in the selection area
24
24
  for (var i = minSelection; i <= maxSelection; i++) {
@@ -128,7 +128,7 @@ var handleBodyCellHover = function handleBodyCellHover(cell, columnIndex) {
128
128
  return prev;
129
129
  }
130
130
  // Do not update state if you're still hovering on the same cell
131
- if (((_selectionAreaClone$i = selectionAreaClone[indexOfItemToUpdate].point2) === null || _selectionAreaClone$i === void 0 ? void 0 : _selectionAreaClone$i.row) === cellCoordinates.row && ((_selectionAreaClone$i2 = selectionAreaClone[indexOfItemToUpdate].point2) === null || _selectionAreaClone$i2 === void 0 ? void 0 : _selectionAreaClone$i2.column) === cellCoordinates.column) {
131
+ if (((_selectionAreaClone$i = selectionAreaClone[indexOfItemToUpdate].point2) === null || _selectionAreaClone$i === undefined ? undefined : _selectionAreaClone$i.row) === cellCoordinates.row && ((_selectionAreaClone$i2 = selectionAreaClone[indexOfItemToUpdate].point2) === null || _selectionAreaClone$i2 === undefined ? undefined : _selectionAreaClone$i2.column) === cellCoordinates.column) {
132
132
  return prev;
133
133
  }
134
134
  selectionAreaClone[indexOfItemToUpdate].point2 = cellCoordinates;
@@ -200,7 +200,7 @@ var handleKeyPress = function handleKeyPress(event) {
200
200
 
201
201
  // Clear out all cell selection areas if user uses any arrow key, except if the shift key is being held
202
202
  if (['ArrowLeft', 'ArrowUp', 'ArrowRight', 'ArrowDown'].indexOf(key) > -1) {
203
- if (selectionAreas !== null && selectionAreas !== void 0 && selectionAreas.length && keysPressedList.length < 2 && !handleMultipleKeys.includesShift(keysPressedList)) {
203
+ if (selectionAreas !== null && selectionAreas !== undefined && selectionAreas.length && keysPressedList.length < 2 && !handleMultipleKeys.includesShift(keysPressedList)) {
204
204
  setSelectionAreas([]);
205
205
  setSelectionAreaData([]);
206
206
  removeCellSelections.removeCellSelections({
@@ -208,7 +208,7 @@ var handleKeyPress = function handleKeyPress(event) {
208
208
  });
209
209
  }
210
210
  }
211
- if ((keysPressedList === null || keysPressedList === void 0 ? void 0 : keysPressedList.length) > 1) {
211
+ if ((keysPressedList === null || keysPressedList === undefined ? undefined : keysPressedList.length) > 1) {
212
212
  handleMultipleKeys.handleMultipleKeys({
213
213
  activeCellCoordinates: activeCellCoordinates,
214
214
  event: event,
@@ -14,10 +14,10 @@ var createActiveCellFn = function createActiveCellFn(_ref) {
14
14
  var placementElement = _ref.placementElement,
15
15
  coords = _ref.coords,
16
16
  _ref$addToHeader = _ref.addToHeader,
17
- addToHeader = _ref$addToHeader === void 0 ? false : _ref$addToHeader,
17
+ addToHeader = _ref$addToHeader === undefined ? false : _ref$addToHeader,
18
18
  contextRef = _ref.contextRef,
19
19
  _ref$blockClass = _ref.blockClass,
20
- blockClass = _ref$blockClass === void 0 ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
20
+ blockClass = _ref$blockClass === undefined ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
21
21
  onActiveCellChange = _ref.onActiveCellChange,
22
22
  activeCellValue = _ref.activeCellValue,
23
23
  activeCellRef = _ref.activeCellRef,
@@ -31,27 +31,27 @@ var createActiveCellFn = function createActiveCellFn(_ref) {
31
31
  var point1Element = document.querySelector("[data-row-index=\"".concat(coords.row, "\"][data-column-index=\"").concat(coords.column, "\"]")) || document.querySelector(".".concat(blockClass, "__body--td")); // if we can't find the point1 element (this can happen in the case where a virtualized row is not present anymore in the DOM), we get the default height/width of the first body cell we find
32
32
  var selectionAreaCellWidth = point1Element.offsetWidth;
33
33
  var selectionAreaCellHeight = point1Element.offsetHeight;
34
- var activeElementContainer = addToHeader ? contextRef === null || contextRef === void 0 ? void 0 : contextRef.current.querySelector(".".concat(blockClass, "__header--container")) : contextRef === null || contextRef === void 0 ? void 0 : contextRef.current.querySelector(".".concat(blockClass, "__list--container")).firstElementChild;
34
+ var activeElementContainer = addToHeader ? contextRef === null || contextRef === undefined ? undefined : contextRef.current.querySelector(".".concat(blockClass, "__header--container")) : contextRef === null || contextRef === undefined ? undefined : contextRef.current.querySelector(".".concat(blockClass, "__list--container")).firstElementChild;
35
35
  var relativePosition = {
36
36
  top: placementElement ? placementElement.getBoundingClientRect().top - activeElementContainer.getBoundingClientRect().top : coords.row === 0 ? 0 : selectionAreaCellHeight * coords.row,
37
37
  // calculate top value here if virtualized row is not in DOM
38
38
  left: placementElement ? placementElement.getBoundingClientRect().left - activeElementContainer.getBoundingClientRect().left : coords.column === 0 ? 0 + (defaultColumn.rowHeaderWidth - 4) : selectionAreaCellWidth * coords.column + (defaultColumn.rowHeaderWidth - 4) // calculate left value here if virtualized row is not in DOM, accounting for row header cell width (including borders)
39
39
  };
40
- var activeCellButton = activeCellRef === null || activeCellRef === void 0 ? void 0 : activeCellRef.current;
41
- activeCellButton.style.width = layout.px(placementElement ? placementElement === null || placementElement === void 0 ? void 0 : placementElement.offsetWidth : selectionAreaCellWidth);
42
- activeCellButton.style.height = layout.px(placementElement ? placementElement === null || placementElement === void 0 ? void 0 : placementElement.offsetHeight : selectionAreaCellHeight);
40
+ var activeCellButton = activeCellRef === null || activeCellRef === undefined ? undefined : activeCellRef.current;
41
+ activeCellButton.style.width = layout.px(placementElement ? placementElement === null || placementElement === undefined ? undefined : placementElement.offsetWidth : selectionAreaCellWidth);
42
+ activeCellButton.style.height = layout.px(placementElement ? placementElement === null || placementElement === undefined ? undefined : placementElement.offsetHeight : selectionAreaCellHeight);
43
43
  activeCellButton.style.left = layout.px(relativePosition.left);
44
44
  activeCellButton.style.top = layout.px(relativePosition.top);
45
45
  activeCellButton.style.display = 'block';
46
- activeCellButton.setAttribute('data-active-row-index', typeof (coords === null || coords === void 0 ? void 0 : coords.row) === 'number' ? coords.row : 'header');
47
- activeCellButton.setAttribute('data-active-column-index', typeof (coords === null || coords === void 0 ? void 0 : coords.column) === 'number' ? coords.column : 'header');
46
+ activeCellButton.setAttribute('data-active-row-index', typeof (coords === null || coords === undefined ? undefined : coords.row) === 'number' ? coords.row : 'header');
47
+ activeCellButton.setAttribute('data-active-column-index', typeof (coords === null || coords === undefined ? undefined : coords.column) === 'number' ? coords.column : 'header');
48
48
  activeElementContainer.appendChild(activeCellButton);
49
49
  activeCellButton.focus();
50
50
  if (!addToHeader) {
51
51
  activeElementContainer.appendChild(cellEditorRef.current);
52
52
  }
53
- if (typeof (coords === null || coords === void 0 ? void 0 : coords.column) === 'number' && typeof (coords === null || coords === void 0 ? void 0 : coords.row) === 'number') {
54
- onActiveCellChange === null || onActiveCellChange === void 0 || onActiveCellChange(activeCellValue);
53
+ if (typeof (coords === null || coords === undefined ? undefined : coords.column) === 'number' && typeof (coords === null || coords === undefined ? undefined : coords.row) === 'number') {
54
+ onActiveCellChange === null || onActiveCellChange === undefined || onActiveCellChange(activeCellValue);
55
55
  }
56
56
  };
57
57
 
@@ -33,7 +33,7 @@ var createCellSelectionArea = function createCellSelectionArea(_ref) {
33
33
  var selectionAreaVariableWidth = 0;
34
34
  visibleColumns.forEach(function (item, index) {
35
35
  if (index >= lowestColumnIndex && index <= greatestColumnIndex) {
36
- selectionAreaVariableWidth += (item === null || item === void 0 ? void 0 : item.width) || (defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.width);
36
+ selectionAreaVariableWidth += (item === null || item === undefined ? undefined : item.width) || (defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.width);
37
37
  }
38
38
  });
39
39
  var point1Element = document.querySelector("[data-row-index=\"".concat(area.point1.row, "\"][data-column-index=\"").concat(area.point1.column, "\"]")) || document.querySelector(".".concat(blockClass, "__body--td")); // if we can't find the point1 element (this can happen in the case where a virtualized row is not present anymore in the DOM), we get the default height of the first body cell we find
@@ -28,7 +28,7 @@ var getSpreadsheetWidth = function getSpreadsheetWidth(_ref) {
28
28
  }
29
29
  if (totalVisibleColumns) {
30
30
  var totalVisibleColumnWidth = visibleColumns.map(function (item, index) {
31
- return index <= totalVisibleColumns - 1 && ((item === null || item === void 0 ? void 0 : item.width) || (defaultColumn === null || defaultColumn === void 0 ? void 0 : defaultColumn.width));
31
+ return index <= totalVisibleColumns - 1 && ((item === null || item === undefined ? undefined : item.width) || (defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.width));
32
32
  }).reduce(function (prev, curr) {
33
33
  return prev + curr;
34
34
  }, 0);
@@ -31,11 +31,11 @@ var handleActiveCellInSelectionEnter = function handleActiveCellInSelectionEnter
31
31
  greatestRowIndex = _getSelectionAreaPoin.greatestRowIndex;
32
32
  // Move active cell down one row if possible
33
33
  var coordinatesClone = _rollupPluginBabelHelpers.objectSpread2({}, activeCellCoordinates);
34
- if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) < greatestRowIndex) {
34
+ if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) < greatestRowIndex) {
35
35
  updateActiveCellCoordinates({
36
36
  coords: coordinatesClone,
37
37
  updatedValue: {
38
- row: (coordinatesClone === null || coordinatesClone === void 0 ? void 0 : coordinatesClone.row) + 1
38
+ row: (coordinatesClone === null || coordinatesClone === undefined ? undefined : coordinatesClone.row) + 1
39
39
  },
40
40
  optOutOfSelectionAreaUpdate: true
41
41
  });
@@ -43,12 +43,12 @@ var handleActiveCellInSelectionEnter = function handleActiveCellInSelectionEnter
43
43
  // Move active cell to next column of selection area if it exists
44
44
  // If not, find the next selection area and update active cell to
45
45
  // be the first cell in that selection
46
- if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === greatestRowIndex) {
47
- if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) < greatestColumnIndex) {
46
+ if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === greatestRowIndex) {
47
+ if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) < greatestColumnIndex) {
48
48
  updateActiveCellCoordinates({
49
49
  coords: coordinatesClone,
50
50
  updatedValue: {
51
- column: (coordinatesClone === null || coordinatesClone === void 0 ? void 0 : coordinatesClone.column) + 1,
51
+ column: (coordinatesClone === null || coordinatesClone === undefined ? undefined : coordinatesClone.column) + 1,
52
52
  row: lowestRowIndex
53
53
  },
54
54
  optOutOfSelectionAreaUpdate: true
@@ -56,7 +56,7 @@ var handleActiveCellInSelectionEnter = function handleActiveCellInSelectionEnter
56
56
  }
57
57
  // Move to next selection area if there is one, or back to
58
58
  // the beginning of the current selection
59
- if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === greatestColumnIndex) {
59
+ if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === greatestColumnIndex) {
60
60
  if (selectionAreas.length > 1) {
61
61
  if (selectionAreas[activeCellIndexInSelectionAreas + 1]) {
62
62
  // Update activeCellRef data-selection-id attribute to the matcher of the next selection area