@carbon/ibm-products 2.43.2-canary.257 → 2.43.2-canary.260

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 (396) hide show
  1. package/css/index-full-carbon.css +1 -0
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +1 -0
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +1 -0
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +1 -0
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/ActionBar/ActionBarOverflowItems.js +5 -0
  18. package/es/components/AddSelect/AddSelectBody.js +1 -1
  19. package/es/components/BigNumbers/BigNumbers.js +1 -1
  20. package/es/components/Coachmark/utils/enums.js +1 -0
  21. package/es/components/ScrollGradient/ScrollGradient.js +1 -1
  22. package/es/components/StringFormatter/StringFormatter.js +1 -1
  23. package/es/global/js/utils/devtools.js +1 -2
  24. package/lib/_virtual/_commonjsHelpers.js +0 -2
  25. package/lib/_virtual/_rollupPluginBabelHelpers.js +2 -4
  26. package/lib/_virtual/index.js +0 -2
  27. package/lib/components/APIKeyModal/APIKeyDownloader.js +8 -14
  28. package/lib/components/APIKeyModal/APIKeyModal.js +70 -77
  29. package/lib/components/AboutModal/AboutModal.js +29 -36
  30. package/lib/components/ActionBar/ActionBar.js +26 -33
  31. package/lib/components/ActionBar/ActionBarItem.js +9 -16
  32. package/lib/components/ActionBar/ActionBarOverflowItems.js +23 -25
  33. package/lib/components/ActionSet/ActionSet.js +17 -24
  34. package/lib/components/AddSelect/AddSelect.js +62 -68
  35. package/lib/components/AddSelect/AddSelectBody.js +82 -89
  36. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +6 -13
  37. package/lib/components/AddSelect/AddSelectColumn.js +29 -35
  38. package/lib/components/AddSelect/AddSelectFilter.js +30 -37
  39. package/lib/components/AddSelect/AddSelectFormControl.js +15 -21
  40. package/lib/components/AddSelect/AddSelectList.js +9 -16
  41. package/lib/components/AddSelect/AddSelectMetaPanel.js +16 -22
  42. package/lib/components/AddSelect/AddSelectRow.js +32 -39
  43. package/lib/components/AddSelect/AddSelectSidebar.js +29 -35
  44. package/lib/components/AddSelect/AddSelectSort.js +10 -16
  45. package/lib/components/AddSelect/add-select-utils.js +0 -2
  46. package/lib/components/AddSelect/hooks/useFocus.js +1 -1
  47. package/lib/components/AddSelect/hooks/useItemSort.js +0 -2
  48. package/lib/components/AddSelect/hooks/useParentSelect.js +1 -1
  49. package/lib/components/AddSelect/hooks/usePath.js +1 -1
  50. package/lib/components/BigNumbers/BigNumbers.js +39 -46
  51. package/lib/components/BigNumbers/constants.js +0 -2
  52. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +35 -42
  53. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +22 -29
  54. package/lib/components/Card/Card.js +73 -80
  55. package/lib/components/Card/CardFooter.js +28 -35
  56. package/lib/components/Card/CardHeader.js +37 -44
  57. package/lib/components/Carousel/Carousel.js +21 -28
  58. package/lib/components/Carousel/CarouselItem.js +5 -12
  59. package/lib/components/Cascade/Cascade.js +15 -22
  60. package/lib/components/Checklist/Checklist.js +50 -57
  61. package/lib/components/Checklist/Checklist.types.js +0 -2
  62. package/lib/components/Checklist/ChecklistChart.js +7 -15
  63. package/lib/components/Checklist/ChecklistIcon.js +7 -14
  64. package/lib/components/Coachmark/Coachmark.js +24 -31
  65. package/lib/components/Coachmark/CoachmarkDragbar.js +12 -19
  66. package/lib/components/Coachmark/CoachmarkHeader.js +9 -16
  67. package/lib/components/Coachmark/CoachmarkOverlay.js +14 -21
  68. package/lib/components/Coachmark/CoachmarkTagline.js +12 -19
  69. package/lib/components/Coachmark/utils/constants.js +0 -2
  70. package/lib/components/Coachmark/utils/context.js +0 -2
  71. package/lib/components/Coachmark/utils/enums.js +1 -2
  72. package/lib/components/Coachmark/utils/hooks.js +0 -2
  73. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +10 -17
  74. package/lib/components/CoachmarkButton/CoachmarkButton.js +6 -13
  75. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +13 -20
  76. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +11 -18
  77. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +25 -32
  78. package/lib/components/CoachmarkStack/CoachmarkStack.js +23 -30
  79. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +29 -36
  80. package/lib/components/ComboButton/ComboButton.js +11 -18
  81. package/lib/components/ComboButton/ComboButtonItem/index.js +2 -8
  82. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +34 -39
  83. package/lib/components/ConditionBuilder/ConditionBuilder.js +49 -56
  84. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +18 -23
  85. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +15 -20
  86. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +20 -27
  87. package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +8 -12
  88. package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +4 -8
  89. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +38 -42
  90. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +25 -31
  91. package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +0 -2
  92. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +17 -23
  93. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +9 -15
  94. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +5 -11
  95. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +13 -19
  96. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +17 -23
  97. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +6 -12
  98. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +9 -15
  99. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +27 -32
  100. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +25 -30
  101. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +0 -2
  102. package/lib/components/ConditionBuilder/utils/useDataConfigs.js +0 -2
  103. package/lib/components/ConditionBuilder/utils/useTranslations.js +0 -2
  104. package/lib/components/ConditionBuilder/utils/util.js +0 -2
  105. package/lib/components/CreateFullPage/CreateFullPage.js +44 -51
  106. package/lib/components/CreateFullPage/CreateFullPageStep.js +22 -29
  107. package/lib/components/CreateInfluencer/CreateInfluencer.js +15 -22
  108. package/lib/components/CreateModal/CreateModal.js +22 -29
  109. package/lib/components/CreateSidePanel/CreateSidePanel.js +24 -31
  110. package/lib/components/CreateTearsheet/CreateTearsheet.js +26 -33
  111. package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +3 -10
  112. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +31 -38
  113. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +24 -31
  114. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +37 -44
  115. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +54 -61
  116. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +37 -44
  117. package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +0 -2
  118. package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +0 -2
  119. package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +0 -2
  120. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +0 -2
  121. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +0 -2
  122. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +0 -2
  123. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +0 -2
  124. package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +0 -2
  125. package/lib/components/DataSpreadsheet/utils/checkForHoldingKey.js +0 -2
  126. package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +0 -2
  127. package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +1 -3
  128. package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +0 -2
  129. package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +0 -2
  130. package/lib/components/DataSpreadsheet/utils/getCellSize.js +0 -2
  131. package/lib/components/DataSpreadsheet/utils/getSelectionAreaPoints.js +0 -2
  132. package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +0 -2
  133. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +0 -2
  134. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +0 -2
  135. package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +0 -2
  136. package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +1 -3
  137. package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +1 -3
  138. package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +2 -4
  139. package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +0 -2
  140. package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +0 -2
  141. package/lib/components/DataSpreadsheet/utils/selectAllCells.js +1 -3
  142. package/lib/components/Datagrid/Datagrid/Datagrid.js +9 -16
  143. package/lib/components/Datagrid/Datagrid/DatagridBody.js +5 -9
  144. package/lib/components/Datagrid/Datagrid/DatagridContent.js +43 -50
  145. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -8
  146. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -11
  147. package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -6
  148. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +12 -17
  149. package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -8
  150. package/lib/components/Datagrid/Datagrid/DatagridRow.js +12 -17
  151. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -11
  152. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +18 -23
  153. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +3 -8
  154. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +14 -19
  155. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +5 -9
  156. package/lib/components/Datagrid/Datagrid/DraggableElement.js +17 -22
  157. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +11 -12
  158. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +10 -11
  159. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +25 -31
  160. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +18 -22
  161. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +7 -13
  162. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +3 -7
  163. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -7
  164. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +34 -39
  165. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +42 -47
  166. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +5 -11
  167. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +11 -15
  168. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -2
  169. package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +0 -2
  170. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -1
  171. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +16 -20
  172. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -6
  173. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -1
  174. package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -2
  175. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +0 -2
  176. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +18 -25
  177. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +32 -39
  178. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +2 -8
  179. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +0 -2
  180. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +0 -2
  181. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +0 -2
  182. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +0 -2
  183. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +0 -2
  184. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +12 -17
  185. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +11 -16
  186. package/lib/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +2 -8
  187. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +0 -2
  188. package/lib/components/Datagrid/common-column-ids.js +0 -2
  189. package/lib/components/Datagrid/useActionsColumn.js +12 -17
  190. package/lib/components/Datagrid/useColumnCenterAlign.js +4 -9
  191. package/lib/components/Datagrid/useColumnRightAlign.js +4 -9
  192. package/lib/components/Datagrid/useCustomizeColumns.js +6 -7
  193. package/lib/components/Datagrid/useDatagrid.js +4 -8
  194. package/lib/components/Datagrid/useDefaultStringRenderer.js +5 -10
  195. package/lib/components/Datagrid/useDisableSelectRows.js +1 -1
  196. package/lib/components/Datagrid/useEditableCell.js +2 -2
  197. package/lib/components/Datagrid/useExpandedRow.js +3 -3
  198. package/lib/components/Datagrid/useFiltering.js +5 -5
  199. package/lib/components/Datagrid/useFlexResize.js +1 -1
  200. package/lib/components/Datagrid/useFloatingScroll.js +2 -6
  201. package/lib/components/Datagrid/useFocusRowExpander.js +0 -2
  202. package/lib/components/Datagrid/useInfiniteScroll.js +4 -8
  203. package/lib/components/Datagrid/useInitialColumnSort.js +0 -2
  204. package/lib/components/Datagrid/useInlineEdit.js +7 -12
  205. package/lib/components/Datagrid/useNestedRowExpander.js +5 -10
  206. package/lib/components/Datagrid/useNestedRows.js +3 -7
  207. package/lib/components/Datagrid/useOnRowClick.js +1 -1
  208. package/lib/components/Datagrid/useParentDimensions.js +1 -1
  209. package/lib/components/Datagrid/useResizeTable.js +1 -1
  210. package/lib/components/Datagrid/useRowExpander.js +5 -10
  211. package/lib/components/Datagrid/useRowIsMouseOver.js +2 -6
  212. package/lib/components/Datagrid/useRowRenderer.js +2 -2
  213. package/lib/components/Datagrid/useRowSize.js +2 -2
  214. package/lib/components/Datagrid/useSelectAllToggle.js +3 -8
  215. package/lib/components/Datagrid/useSelectRows.js +6 -11
  216. package/lib/components/Datagrid/useSkeletonRows.js +1 -1
  217. package/lib/components/Datagrid/useSortableColumns.js +8 -13
  218. package/lib/components/Datagrid/useStickyColumn.js +4 -9
  219. package/lib/components/Datagrid/utils/getAutoSizedColumnWidth.js +0 -2
  220. package/lib/components/Decorator/Decorator.js +16 -22
  221. package/lib/components/DecoratorBase/DecoratorBase.js +41 -48
  222. package/lib/components/DecoratorBase/DecoratorIcon.js +6 -13
  223. package/lib/components/DecoratorBase/utils.js +0 -2
  224. package/lib/components/DecoratorDualButton/DecoratorDualButton.js +21 -27
  225. package/lib/components/DecoratorLink/DecoratorLink.js +19 -25
  226. package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +19 -25
  227. package/lib/components/DelimitedList/DelimitedList.js +7 -14
  228. package/lib/components/DescriptionList/DescriptionList.js +8 -15
  229. package/lib/components/DescriptionList/DescriptionListBody.js +5 -12
  230. package/lib/components/DescriptionList/DescriptionListCell.js +5 -12
  231. package/lib/components/DescriptionList/DescriptionListRow.js +5 -12
  232. package/lib/components/DescriptionList/constants.js +0 -2
  233. package/lib/components/EditFullPage/EditFullPage.js +5 -12
  234. package/lib/components/EditInPlace/EditInPlace.js +35 -42
  235. package/lib/components/EditSidePanel/EditSidePanel.js +26 -33
  236. package/lib/components/EditTearsheet/EditTearsheet.js +24 -31
  237. package/lib/components/EditTearsheet/EditTearsheetForm.js +16 -23
  238. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +5 -12
  239. package/lib/components/EditUpdateCards/EditUpdateCards.js +32 -39
  240. package/lib/components/EmptyStates/EmptyState.js +22 -29
  241. package/lib/components/EmptyStates/EmptyStateContent.js +18 -25
  242. package/lib/components/EmptyStates/EmptyStateIllustration.js +3 -7
  243. package/lib/components/EmptyStates/EmptyStateV2.js +25 -32
  244. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +19 -26
  245. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +19 -26
  246. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +19 -26
  247. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +19 -26
  248. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +19 -26
  249. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +19 -26
  250. package/lib/components/EmptyStates/assets/ErrorIllustration.js +53 -58
  251. package/lib/components/EmptyStates/assets/NoDataIllustration.js +43 -48
  252. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +114 -119
  253. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +84 -89
  254. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +81 -86
  255. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +74 -79
  256. package/lib/components/ExportModal/ExportModal.js +45 -52
  257. package/lib/components/ExpressiveCard/ExpressiveCard.js +28 -34
  258. package/lib/components/FeatureFlags/index.js +3 -9
  259. package/lib/components/FilterPanel/FilterPanel.js +7 -14
  260. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +10 -17
  261. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +13 -20
  262. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +9 -16
  263. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +17 -24
  264. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +11 -18
  265. package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +9 -16
  266. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +9 -16
  267. package/lib/components/FilterSummary/FilterSummary.js +22 -28
  268. package/lib/components/FullPageError/FullPageError.js +21 -28
  269. package/lib/components/FullPageError/assets/Error403SVG.js +129 -135
  270. package/lib/components/FullPageError/assets/Error404SVG.js +114 -120
  271. package/lib/components/FullPageError/assets/ErrorGenericSVG.js +128 -134
  272. package/lib/components/GetStartedCard/GetStartedCard.js +16 -22
  273. package/lib/components/Guidebanner/Guidebanner.js +32 -39
  274. package/lib/components/Guidebanner/GuidebannerElement.js +10 -17
  275. package/lib/components/Guidebanner/GuidebannerElementButton.js +9 -16
  276. package/lib/components/Guidebanner/GuidebannerElementLink.js +5 -12
  277. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +5 -12
  278. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +5 -12
  279. package/lib/components/HTTPErrors/HTTPErrorContent.js +5 -11
  280. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +5 -12
  281. package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +358 -364
  282. package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +309 -315
  283. package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +321 -327
  284. package/lib/components/ImportModal/ImportModal.js +48 -55
  285. package/lib/components/InlineTip/InlineTip.js +38 -45
  286. package/lib/components/InlineTip/InlineTipButton.js +5 -12
  287. package/lib/components/InlineTip/InlineTipLink.js +6 -13
  288. package/lib/components/InlineTip/utils.js +2 -4
  289. package/lib/components/InterstitialScreen/InterstitialScreen.js +73 -80
  290. package/lib/components/InterstitialScreenView/InterstitialScreenView.js +6 -13
  291. package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +8 -15
  292. package/lib/components/MultiAddSelect/MultiAddSelect.js +45 -51
  293. package/lib/components/Nav/Nav.js +14 -21
  294. package/lib/components/Nav/NavItem.js +19 -24
  295. package/lib/components/Nav/NavItemLink.js +4 -8
  296. package/lib/components/Nav/NavList.js +12 -17
  297. package/lib/components/NonLinearReading/NonLinearReading.js +12 -19
  298. package/lib/components/NotificationsPanel/NotificationsPanel.js +91 -98
  299. package/lib/components/NotificationsPanel/utils.js +0 -2
  300. package/lib/components/OptionsTile/OptionsTile.js +40 -47
  301. package/lib/components/PageHeader/PageHeader.js +105 -112
  302. package/lib/components/PageHeader/PageHeaderTitle.js +23 -30
  303. package/lib/components/PageHeader/PageHeaderUtils.js +2 -9
  304. package/lib/components/ProductiveCard/ProductiveCard.js +36 -42
  305. package/lib/components/RemoveModal/RemoveModal.js +27 -34
  306. package/lib/components/Saving/Saving.js +27 -34
  307. package/lib/components/ScrollGradient/ScrollGradient.js +17 -24
  308. package/lib/components/ScrollGradient/constants.js +0 -2
  309. package/lib/components/SearchBar/SearchBar.js +22 -29
  310. package/lib/components/SidePanel/SidePanel.js +66 -73
  311. package/lib/components/SidePanel/constants.js +0 -2
  312. package/lib/components/SidePanel/motion/variants.js +0 -2
  313. package/lib/components/SimpleHeader/SimpleHeader.js +18 -25
  314. package/lib/components/SingleAddSelect/SingleAddSelect.js +21 -27
  315. package/lib/components/StatusIcon/StatusIcon.js +52 -59
  316. package/lib/components/StatusIndicator/StatusIndicator.js +13 -20
  317. package/lib/components/StatusIndicator/StatusIndicatorStep.js +14 -21
  318. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +8 -17
  319. package/lib/components/StringFormatter/StringFormatter.js +12 -19
  320. package/lib/components/StringFormatter/utils/enums.js +0 -2
  321. package/lib/components/TagOverflow/TagOverflow.js +26 -33
  322. package/lib/components/TagOverflow/TagOverflowModal.js +17 -24
  323. package/lib/components/TagOverflow/TagOverflowPopover.js +22 -29
  324. package/lib/components/TagOverflow/constants.js +0 -2
  325. package/lib/components/TagSet/TagSet.js +34 -41
  326. package/lib/components/TagSet/TagSetModal.js +16 -23
  327. package/lib/components/TagSet/TagSetOverflow.js +25 -32
  328. package/lib/components/Tearsheet/Tearsheet.js +23 -29
  329. package/lib/components/Tearsheet/TearsheetNarrow.js +18 -24
  330. package/lib/components/Tearsheet/TearsheetShell.js +55 -62
  331. package/lib/components/Toolbar/Toolbar.js +3 -10
  332. package/lib/components/Toolbar/ToolbarButton.js +3 -10
  333. package/lib/components/Toolbar/ToolbarGroup.js +2 -9
  334. package/lib/components/TooltipTrigger/TooltipTrigger.js +4 -11
  335. package/lib/components/TruncatedList/TruncatedList.js +15 -22
  336. package/lib/components/UserAvatar/UserAvatar.js +18 -25
  337. package/lib/components/UserProfileImage/UserProfileImage.js +24 -31
  338. package/lib/components/WebTerminal/WebTerminal.js +26 -33
  339. package/lib/components/WebTerminal/WebTerminalContentWrapper.js +4 -11
  340. package/lib/components/WebTerminal/hooks/index.js +2 -8
  341. package/lib/components/_Canary/Canary.js +7 -14
  342. package/lib/feature-flags.js +3 -4
  343. package/lib/global/js/hooks/useActiveElement.js +0 -2
  344. package/lib/global/js/hooks/useClickOutside.js +0 -2
  345. package/lib/global/js/hooks/useControllableState.js +2 -4
  346. package/lib/global/js/hooks/useCreateComponentFocus.js +1 -3
  347. package/lib/global/js/hooks/useCreateComponentStepChange.js +0 -2
  348. package/lib/global/js/hooks/useFocus.js +1 -3
  349. package/lib/global/js/hooks/useIsomorphicEffect.js +0 -2
  350. package/lib/global/js/hooks/usePortalTarget.js +0 -2
  351. package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -1
  352. package/lib/global/js/hooks/usePrefix.js +1 -3
  353. package/lib/global/js/hooks/usePreviousValue.js +0 -2
  354. package/lib/global/js/hooks/useResetCreateComponent.js +0 -2
  355. package/lib/global/js/hooks/useResizeObserver.js +0 -2
  356. package/lib/global/js/hooks/useRetrieveFormTitles.js +0 -2
  357. package/lib/global/js/hooks/useRetrieveStepData.js +0 -2
  358. package/lib/global/js/hooks/useValidCreateStepCount.js +0 -2
  359. package/lib/global/js/hooks/useWindowResize.js +1 -3
  360. package/lib/global/js/hooks/useWindowScroll.js +1 -3
  361. package/lib/global/js/package-settings.js +1 -1
  362. package/lib/global/js/utils/Wrap.js +9 -15
  363. package/lib/global/js/utils/deepCloneObject.js +1 -3
  364. package/lib/global/js/utils/devtools.js +0 -2
  365. package/lib/global/js/utils/getBezierValues.js +0 -2
  366. package/lib/global/js/utils/getFocusableElements.js +0 -2
  367. package/lib/global/js/utils/getNodeTextContent.js +1 -3
  368. package/lib/global/js/utils/getNumberOfHiddenSteps.js +0 -2
  369. package/lib/global/js/utils/getScrollbarWidth.js +0 -2
  370. package/lib/global/js/utils/keyboardNavigation.js +0 -2
  371. package/lib/global/js/utils/lastIndexInArray.js +0 -2
  372. package/lib/global/js/utils/motionConstants.js +0 -2
  373. package/lib/global/js/utils/pconsole.js +1 -1
  374. package/lib/global/js/utils/props-helper.js +10 -12
  375. package/lib/global/js/utils/rangeWithCallback.js +0 -2
  376. package/lib/global/js/utils/scrollableAncestor.js +1 -3
  377. package/lib/global/js/utils/uuidv4.js +1 -1
  378. package/lib/global/js/utils/wait.js +1 -1
  379. package/lib/global/js/utils/wrapFocus.js +1 -1
  380. package/lib/index.js +19 -21
  381. package/lib/node_modules/@carbon/colors/es/index.js +0 -2
  382. package/lib/node_modules/@carbon/icon-helpers/es/index.js +3 -5
  383. package/lib/node_modules/@carbon/icons-react/es/Icon.js +14 -18
  384. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-2.js +525 -531
  385. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +500 -506
  386. package/lib/node_modules/@carbon/icons-react/es/iconPropTypes-4cbeb95d.js +1 -3
  387. package/lib/node_modules/object-assign/index.js +0 -2
  388. package/lib/node_modules/prop-types/checkPropTypes.js +2 -4
  389. package/lib/node_modules/prop-types/factoryWithThrowingShims.js +0 -2
  390. package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +4 -10
  391. package/lib/node_modules/prop-types/index.js +2 -6
  392. package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -2
  393. package/lib/node_modules/prop-types/lib/has.js +0 -2
  394. package/lib/settings.js +9 -15
  395. package/package.json +3 -3
  396. package/scss/components/SidePanel/_side-panel.scss +1 -0
@@ -7,8 +7,6 @@
7
7
 
8
8
  'use strict';
9
9
 
10
- Object.defineProperty(exports, '__esModule', { value: true });
11
-
12
10
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
13
11
  var react = require('@carbon/react');
14
12
  var icons = require('@carbon/react/icons');
@@ -25,11 +23,6 @@ var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
25
23
  var useClickOutside = require('../../global/js/hooks/useClickOutside.js');
26
24
  var NotificationsEmptyState = require('../EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js');
27
25
 
28
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
29
-
30
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
31
- var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
32
-
33
26
  var _Close;
34
27
  var _excluded = ["className", "data", "daysAgoText", "dismissAllLabel", "dismissSingleNotificationIconDescription", "doNotDisturbDefaultToggled", "doNotDisturbLabel", "emptyStateLabel", "hourAgoText", "hoursAgoText", "minuteAgoText", "minutesAgoText", "monthAgoText", "monthsAgoText", "nowText", "onClickOutside", "onDismissAllNotifications", "onDismissSingleNotification", "onDoNotDisturbChange", "onSettingsClick", "onViewAllClick", "open", "previousLabel", "readLessLabel", "readMoreLabel", "secondsAgoText", "settingsIconDescription", "title", "todayLabel", "viewAllLabel", "yearAgoText", "yearsAgoText", "yesterdayAtText", "yesterdayLabel", "selectorsFloatingMenus", "triggerButtonRef"];
35
28
 
@@ -90,7 +83,7 @@ var defaults = {
90
83
  },
91
84
  yesterdayLabel: 'Yesterday'
92
85
  };
93
- exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
86
+ exports.NotificationsPanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
94
87
  var className = _ref.className,
95
88
  data = _ref.data,
96
89
  _ref$daysAgoText = _ref.daysAgoText,
@@ -169,7 +162,7 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
169
162
  var previousState = usePreviousValue.usePreviousValue({
170
163
  open: open
171
164
  });
172
- var reducedMotion = usePrefersReducedMotion["default"]();
165
+ var reducedMotion = usePrefersReducedMotion.default();
173
166
  var carbonPrefix = react.usePrefix();
174
167
  React.useEffect(function () {
175
168
  // Set the notifications passed to the state within this component
@@ -220,7 +213,7 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
220
213
  var bodyNode = notificationPanelInnerRef.current;
221
214
  var startSentinelNode = startSentinel.current;
222
215
  var endSentinelNode = endSentinel.current;
223
- wrapFocus["default"]({
216
+ wrapFocus.default({
224
217
  bodyNode: bodyNode,
225
218
  startTrapNode: startSentinelNode,
226
219
  endTrapNode: endSentinelNode,
@@ -278,15 +271,15 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
278
271
  })[0];
279
272
  var trimLength = 88;
280
273
  var description = notification === null || notification === void 0 ? void 0 : notification['description'];
281
- var descriptionClassName = cx__default["default"](["".concat(blockClass, "__notification-description"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-long-description"), notification === null || notification === void 0 ? void 0 : notification['showAll']), "".concat(blockClass, "__notification-short-description"), !(notification !== null && notification !== void 0 && notification['showAll']))]);
282
- var showMoreButtonClassName = cx__default["default"]([_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-read-less-button"), notification === null || notification === void 0 ? void 0 : notification['showAll']), "".concat(blockClass, "__notification-read-more-button"), !(notification !== null && notification !== void 0 && notification['showAll']))]);
283
- return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("p", {
274
+ var descriptionClassName = cx(["".concat(blockClass, "__notification-description"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-long-description"), notification === null || notification === void 0 ? void 0 : notification['showAll']), "".concat(blockClass, "__notification-short-description"), !(notification !== null && notification !== void 0 && notification['showAll']))]);
275
+ var showMoreButtonClassName = cx([_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-read-less-button"), notification === null || notification === void 0 ? void 0 : notification['showAll']), "".concat(blockClass, "__notification-read-more-button"), !(notification !== null && notification !== void 0 && notification['showAll']))]);
276
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
284
277
  className: descriptionClassName
285
- }, description), description.length > trimLength && /*#__PURE__*/React__default["default"].createElement(react.Button, {
278
+ }, description), description.length > trimLength && /*#__PURE__*/React.createElement(react.Button, {
286
279
  kind: "ghost",
287
280
  size: "sm",
288
281
  renderIcon: function renderIcon(props) {
289
- return /*#__PURE__*/React__default["default"].createElement(icons.ChevronDown, _rollupPluginBabelHelpers["extends"]({
282
+ return /*#__PURE__*/React.createElement(icons.ChevronDown, _rollupPluginBabelHelpers.extends({
290
283
  size: 16
291
284
  }, props));
292
285
  },
@@ -308,9 +301,9 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
308
301
  }, notification !== null && notification !== void 0 && notification['showAll'] ? readLessLabel : readMoreLabel));
309
302
  };
310
303
  var renderNotification = function renderNotification(group, notification, index) {
311
- var notificationClassName = cx__default["default"](["".concat(blockClass, "__notification"), "".concat(blockClass, "__notification-").concat(group)]);
312
- var notificationHeaderClassName = cx__default["default"](["".concat(blockClass, "__notification-title"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-title-unread"), notification.unread)]);
313
- return /*#__PURE__*/React__default["default"].createElement("div", {
304
+ var notificationClassName = cx(["".concat(blockClass, "__notification"), "".concat(blockClass, "__notification-").concat(group)]);
305
+ var notificationHeaderClassName = cx(["".concat(blockClass, "__notification-title"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-title-unread"), notification.unread)]);
306
+ return /*#__PURE__*/React.createElement("div", {
314
307
  key: "".concat(notification.timestamp, "-").concat(notification.title, "-").concat(index),
315
308
  className: notificationClassName,
316
309
  role: "button",
@@ -324,21 +317,21 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
324
317
  }
325
318
  event.which === 13 && notification.onNotificationClick(notification);
326
319
  }
327
- }, notification.type === 'error' && /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, {
320
+ }, notification.type === 'error' && /*#__PURE__*/React.createElement(icons.ErrorFilled, {
328
321
  size: 16,
329
- className: cx__default["default"](["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-error")])
330
- }), notification.type === 'success' && /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, {
322
+ className: cx(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-error")])
323
+ }), notification.type === 'success' && /*#__PURE__*/React.createElement(icons.CheckmarkFilled, {
331
324
  size: 16,
332
- className: cx__default["default"](["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-success")])
333
- }), notification.type === 'warning' && /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, {
325
+ className: cx(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-success")])
326
+ }), notification.type === 'warning' && /*#__PURE__*/React.createElement(icons.WarningAltFilled, {
334
327
  size: 16,
335
- className: cx__default["default"](["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-warning")])
336
- }), notification.type === 'informational' && /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, {
328
+ className: cx(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-warning")])
329
+ }), notification.type === 'informational' && /*#__PURE__*/React.createElement(icons.InformationSquareFilled, {
337
330
  size: 16,
338
- className: cx__default["default"](["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-informational")])
339
- }), /*#__PURE__*/React__default["default"].createElement("div", {
331
+ className: cx(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-informational")])
332
+ }), /*#__PURE__*/React.createElement("div", {
340
333
  className: "".concat(blockClass, "__notification-content")
341
- }, /*#__PURE__*/React__default["default"].createElement("p", {
334
+ }, /*#__PURE__*/React.createElement("p", {
342
335
  className: "".concat(blockClass, "__notification-time-label")
343
336
  }, utils.timeAgo({
344
337
  previousTime: notification.timestamp,
@@ -354,12 +347,12 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
354
347
  yearsAgoText: yearsAgoText,
355
348
  yearAgoText: yearAgoText,
356
349
  nowText: nowText
357
- })), /*#__PURE__*/React__default["default"].createElement("h6", {
350
+ })), /*#__PURE__*/React.createElement("h6", {
358
351
  className: notificationHeaderClassName
359
- }, notification.title), notification.description && notification.description.length && renderDescription(notification.id), notification.link && notification.link.text && notification.link.url && /*#__PURE__*/React__default["default"].createElement(react.Link, _rollupPluginBabelHelpers["extends"]({
352
+ }, notification.title), notification.description && notification.description.length && renderDescription(notification.id), notification.link && notification.link.text && notification.link.url && /*#__PURE__*/React.createElement(react.Link, _rollupPluginBabelHelpers.extends({
360
353
  href: notification.link.url,
361
354
  className: "".concat(blockClass, "__notifications-link")
362
- }, propsHelper.prepareProps({}, notification.link, ['text', 'url'])), notification.link.text)), /*#__PURE__*/React__default["default"].createElement(react.IconButton, {
355
+ }, propsHelper.prepareProps({}, notification.link, ['text', 'url'])), notification.link.text)), /*#__PURE__*/React.createElement(react.IconButton, {
363
356
  align: "left",
364
357
  kind: "ghost",
365
358
  size: "sm",
@@ -368,7 +361,7 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
368
361
  onClick: function onClick(event) {
369
362
  return dismissSingleNotification(event, notification);
370
363
  }
371
- }, _Close || (_Close = /*#__PURE__*/React__default["default"].createElement(icons.Close, {
364
+ }, _Close || (_Close = /*#__PURE__*/React.createElement(icons.Close, {
372
365
  size: 16
373
366
  }))));
374
367
  };
@@ -377,12 +370,12 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
377
370
  event.stopPropagation();
378
371
  onDismissSingleNotification(notification);
379
372
  };
380
- var mainSectionClassName = cx__default["default"](["".concat(blockClass, "__main-section"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__main-section-empty"), allNotifications && !allNotifications.length)]);
381
- return shouldRender ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("button", {
373
+ var mainSectionClassName = cx(["".concat(blockClass, "__main-section"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__main-section-empty"), allNotifications && !allNotifications.length)]);
374
+ return shouldRender ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
382
375
  type: "button",
383
376
  className: "".concat(carbonPrefix, "--visually-hidden"),
384
377
  ref: startSentinel
385
- }, "Focus sentinel start"), /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({
378
+ }, "Focus sentinel start"), /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({
386
379
  role: "dialog",
387
380
  "aria-label": "Notification Panel",
388
381
  onBlur: handleBlur,
@@ -390,28 +383,28 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
390
383
  onKeyDown: handleKeydown
391
384
  }, rest, {
392
385
  id: blockClass,
393
- className: cx__default["default"](blockClass, className, "".concat(blockClass, "__container")),
386
+ className: cx(blockClass, className, "".concat(blockClass, "__container")),
394
387
  style: {
395
388
  animation: !reducedMotion ? "".concat(open ? 'fade-in 250ms' : 'fade-out forwards 250ms') : undefined
396
389
  },
397
390
  onAnimationEnd: onAnimationEnd,
398
391
  ref: ref || notificationPanelRef
399
- }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React__default["default"].createElement("div", {
392
+ }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement("div", {
400
393
  ref: notificationPanelInnerRef
401
- }, /*#__PURE__*/React__default["default"].createElement("div", {
394
+ }, /*#__PURE__*/React.createElement("div", {
402
395
  className: "".concat(blockClass, "__header-container")
403
- }, /*#__PURE__*/React__default["default"].createElement("div", {
396
+ }, /*#__PURE__*/React.createElement("div", {
404
397
  className: "".concat(blockClass, "__header-flex")
405
- }, /*#__PURE__*/React__default["default"].createElement("h2", {
398
+ }, /*#__PURE__*/React.createElement("h2", {
406
399
  className: "".concat(blockClass, "__header")
407
- }, title), /*#__PURE__*/React__default["default"].createElement(react.Button, {
400
+ }, title), /*#__PURE__*/React.createElement(react.Button, {
408
401
  size: "sm",
409
402
  kind: "ghost",
410
403
  className: "".concat(blockClass, "__dismiss-button"),
411
404
  onClick: function onClick() {
412
405
  return onDismissAllNotifications();
413
406
  }
414
- }, dismissAllLabel)), onDoNotDisturbChange && /*#__PURE__*/React__default["default"].createElement(react.Toggle, {
407
+ }, dismissAllLabel)), onDoNotDisturbChange && /*#__PURE__*/React.createElement(react.Toggle, {
415
408
  size: "sm",
416
409
  className: "".concat(blockClass, "__do-not-disturb-toggle"),
417
410
  id: "".concat(blockClass, "__do-not-disturb-toggle-component"),
@@ -423,38 +416,38 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
423
416
  defaultToggled: doNotDisturbDefaultToggled,
424
417
  "aria-label": doNotDisturbLabel,
425
418
  labelText: doNotDisturbLabel
426
- })), /*#__PURE__*/React__default["default"].createElement("div", {
419
+ })), /*#__PURE__*/React.createElement("div", {
427
420
  className: mainSectionClassName
428
- }, withinLastDayNotifications && withinLastDayNotifications.length ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("h6", {
421
+ }, withinLastDayNotifications && withinLastDayNotifications.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h6", {
429
422
  className: "".concat(blockClass, "__time-section-label")
430
423
  }, todayLabel), withinLastDayNotifications.map(function (notification, index) {
431
424
  return renderNotification('today', notification, index);
432
- })) : null, previousDayNotifications && previousDayNotifications.length ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("h6", {
425
+ })) : null, previousDayNotifications && previousDayNotifications.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h6", {
433
426
  className: "".concat(blockClass, "__time-section-label")
434
427
  }, yesterdayLabel), previousDayNotifications.map(function (notification, index) {
435
428
  return renderNotification('yesterday', notification, index);
436
- })) : null, previousNotifications && previousNotifications.length ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("h6", {
429
+ })) : null, previousNotifications && previousNotifications.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h6", {
437
430
  className: "".concat(blockClass, "__time-section-label")
438
431
  }, previousLabel), previousNotifications.map(function (notification, index) {
439
432
  return renderNotification('previous', notification, index);
440
- })) : null, !allNotifications.length && /*#__PURE__*/React__default["default"].createElement(NotificationsEmptyState.NotificationsEmptyState, {
433
+ })) : null, !allNotifications.length && /*#__PURE__*/React.createElement(NotificationsEmptyState.NotificationsEmptyState, {
441
434
  illustrationTheme: "dark",
442
435
  title: "",
443
436
  subtitle: emptyStateLabel
444
- })), onViewAllClick && onSettingsClick && allNotifications && allNotifications.length ? /*#__PURE__*/React__default["default"].createElement("div", {
437
+ })), onViewAllClick && onSettingsClick && allNotifications && allNotifications.length ? /*#__PURE__*/React.createElement("div", {
445
438
  className: "".concat(blockClass, "__bottom-actions")
446
- }, /*#__PURE__*/React__default["default"].createElement(react.Button, {
439
+ }, /*#__PURE__*/React.createElement(react.Button, {
447
440
  kind: "ghost",
448
441
  className: "".concat(blockClass, "__view-all-button"),
449
442
  onClick: function onClick() {
450
443
  return onViewAllClick();
451
444
  }
452
- }, viewAllLabel(allNotifications.length)), /*#__PURE__*/React__default["default"].createElement(react.Button, {
445
+ }, viewAllLabel(allNotifications.length)), /*#__PURE__*/React.createElement(react.Button, {
453
446
  kind: "ghost",
454
447
  size: "sm",
455
448
  className: "".concat(blockClass, "__settings-button"),
456
449
  renderIcon: function renderIcon(props) {
457
- return /*#__PURE__*/React__default["default"].createElement(icons.Settings, _rollupPluginBabelHelpers["extends"]({
450
+ return /*#__PURE__*/React.createElement(icons.Settings, _rollupPluginBabelHelpers.extends({
458
451
  size: 16
459
452
  }, props));
460
453
  },
@@ -462,7 +455,7 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
462
455
  onClick: function onClick() {
463
456
  return onSettingsClick();
464
457
  }
465
- })) : null)), /*#__PURE__*/React__default["default"].createElement("button", {
458
+ })) : null)), /*#__PURE__*/React.createElement("button", {
466
459
  type: "button",
467
460
  className: "".concat(carbonPrefix, "--visually-hidden"),
468
461
  ref: endSentinel
@@ -483,158 +476,158 @@ exports.NotificationsPanel.propTypes = {
483
476
  /**
484
477
  * Provide an optional class to be applied to the containing node.
485
478
  */
486
- className: index["default"].string,
479
+ className: index.default.string,
487
480
  /**
488
481
  * Array of data for Notifications component to render
489
482
  */
490
483
  /**@ts-ignore*/
491
- data: index["default"].arrayOf(index["default"].shape({
492
- id: index["default"].oneOfType([index["default"].string, index["default"].number]),
493
- type: index["default"].oneOf(['error', 'warning', 'success', 'informational']),
494
- timestamp: index["default"].instanceOf(Date),
495
- title: index["default"].string,
496
- description: index["default"].string,
497
- link: index["default"].shape({
498
- url: index["default"].string,
499
- text: index["default"].string
484
+ data: index.default.arrayOf(index.default.shape({
485
+ id: index.default.oneOfType([index.default.string, index.default.number]),
486
+ type: index.default.oneOf(['error', 'warning', 'success', 'informational']),
487
+ timestamp: index.default.instanceOf(Date),
488
+ title: index.default.string,
489
+ description: index.default.string,
490
+ link: index.default.shape({
491
+ url: index.default.string,
492
+ text: index.default.string
500
493
  }),
501
- unread: index["default"].bool,
502
- onNotificationClick: index["default"].func
494
+ unread: index.default.bool,
495
+ onNotificationClick: index.default.func
503
496
  })).isRequired,
504
497
  /**
505
498
  * Sets the `days ago` label text
506
499
  */
507
- daysAgoText: index["default"].func,
500
+ daysAgoText: index.default.func,
508
501
  /**
509
502
  * Label for Dismiss all button
510
503
  */
511
- dismissAllLabel: index["default"].string,
504
+ dismissAllLabel: index.default.string,
512
505
  /**
513
506
  * Label for Dismiss single notification icon button
514
507
  */
515
- dismissSingleNotificationIconDescription: index["default"].string,
508
+ dismissSingleNotificationIconDescription: index.default.string,
516
509
  /**
517
510
  * Optional: Determines if the `Do not disturb` toggle is on or off when the component is rendered
518
511
  */
519
- doNotDisturbDefaultToggled: index["default"].bool,
512
+ doNotDisturbDefaultToggled: index.default.bool,
520
513
  /**
521
514
  * Optional: Label for Do not disturb toggle
522
515
  */
523
- doNotDisturbLabel: index["default"].string,
516
+ doNotDisturbLabel: index.default.string,
524
517
  /**
525
518
  * Sets the empty state label text when there are no notifications
526
519
  */
527
- emptyStateLabel: index["default"].string,
520
+ emptyStateLabel: index.default.string,
528
521
  /**
529
522
  * Sets the `hour ago` label text
530
523
  */
531
- hourAgoText: index["default"].func,
524
+ hourAgoText: index.default.func,
532
525
  /**
533
526
  * Sets the `hours ago` label text
534
527
  */
535
- hoursAgoText: index["default"].func,
528
+ hoursAgoText: index.default.func,
536
529
  /**
537
530
  * Sets the `minute ago` label text
538
531
  */
539
- minuteAgoText: index["default"].func,
532
+ minuteAgoText: index.default.func,
540
533
  /**
541
534
  * Sets the `minutes ago` label text
542
535
  */
543
- minutesAgoText: index["default"].func,
536
+ minutesAgoText: index.default.func,
544
537
  /**
545
538
  * Sets the `month ago` label text
546
539
  */
547
- monthAgoText: index["default"].func,
540
+ monthAgoText: index.default.func,
548
541
  /**
549
542
  * Sets the `months ago` label text
550
543
  */
551
- monthsAgoText: index["default"].func,
544
+ monthsAgoText: index.default.func,
552
545
  /**
553
546
  * Sets the `now` label text
554
547
  */
555
- nowText: index["default"].string,
548
+ nowText: index.default.string,
556
549
  /**
557
550
  * Sets the notifications panel open state
558
551
  */
559
- onClickOutside: index["default"].func.isRequired,
552
+ onClickOutside: index.default.func.isRequired,
560
553
  /**
561
554
  * Function that will dismiss all notifications
562
555
  */
563
- onDismissAllNotifications: index["default"].func,
556
+ onDismissAllNotifications: index.default.func,
564
557
  /**
565
558
  * Function that will dismiss a single notification
566
559
  */
567
- onDismissSingleNotification: index["default"].func,
560
+ onDismissSingleNotification: index.default.func,
568
561
  /**
569
562
  * Optional: function that returns the current selected value of the disable notification toggle
570
563
  */
571
- onDoNotDisturbChange: index["default"].func,
564
+ onDoNotDisturbChange: index.default.func,
572
565
  /**
573
566
  * Event handler for the View all button
574
567
  */
575
- onSettingsClick: index["default"].func,
568
+ onSettingsClick: index.default.func,
576
569
  /**
577
570
  * Event handler for the View all button
578
571
  */
579
- onViewAllClick: index["default"].func,
572
+ onViewAllClick: index.default.func,
580
573
  /**
581
574
  * Determines whether the notifications panel should render or not
582
575
  */
583
- open: index["default"].bool.isRequired,
576
+ open: index.default.bool.isRequired,
584
577
  /**
585
578
  * Sets the previous label text
586
579
  */
587
- previousLabel: index["default"].string,
580
+ previousLabel: index.default.string,
588
581
  /**
589
582
  * Sets the `read less` label text
590
583
  */
591
- readLessLabel: index["default"].string,
584
+ readLessLabel: index.default.string,
592
585
  /**
593
586
  * Sets the `read more` label text
594
587
  */
595
- readMoreLabel: index["default"].string,
588
+ readMoreLabel: index.default.string,
596
589
  /**
597
590
  * Sets the `seconds ago` label text
598
591
  */
599
- secondsAgoText: index["default"].func,
592
+ secondsAgoText: index.default.func,
600
593
  /**
601
594
  * Specify the CSS selectors that match the floating menus
602
595
  */
603
- selectorsFloatingMenus: index["default"].arrayOf(index["default"].string.isRequired),
596
+ selectorsFloatingMenus: index.default.arrayOf(index.default.string.isRequired),
604
597
  /**
605
598
  * Sets the settings icon description text
606
599
  */
607
- settingsIconDescription: index["default"].string,
600
+ settingsIconDescription: index.default.string,
608
601
  /**
609
602
  * Sets the title for the Notifications panel
610
603
  */
611
- title: index["default"].string,
604
+ title: index.default.string,
612
605
  /**
613
606
  * Sets the today label text
614
607
  */
615
- todayLabel: index["default"].string,
608
+ todayLabel: index.default.string,
616
609
  /**
617
610
  * Sets the today label text
618
611
  */
619
- triggerButtonRef: index["default"].any,
612
+ triggerButtonRef: index.default.any,
620
613
  /**
621
614
  * Sets the View all button text
622
615
  */
623
- viewAllLabel: index["default"].func,
616
+ viewAllLabel: index.default.func,
624
617
  /**
625
618
  * Sets the `year ago` label text
626
619
  */
627
- yearAgoText: index["default"].func,
620
+ yearAgoText: index.default.func,
628
621
  /**
629
622
  * Sets the `years ago` label text
630
623
  */
631
- yearsAgoText: index["default"].func,
624
+ yearsAgoText: index.default.func,
632
625
  /**
633
626
  * Sets the `Yesterday at` label text
634
627
  */
635
- yesterdayAtText: index["default"].func,
628
+ yesterdayAtText: index.default.func,
636
629
  /**
637
630
  * Sets the yesterday label text
638
631
  */
639
- yesterdayLabel: index["default"].string
632
+ yesterdayLabel: index.default.string
640
633
  };
@@ -7,8 +7,6 @@
7
7
 
8
8
  'use strict';
9
9
 
10
- Object.defineProperty(exports, '__esModule', { value: true });
11
-
12
10
  var timeAgo = function timeAgo(_ref) {
13
11
  var previousTime = _ref.previousTime,
14
12
  secondsAgoText = _ref.secondsAgoText,