@carbon/ibm-products 2.27.0 → 2.28.0-alpha.4

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 (333) hide show
  1. package/css/index-full-carbon.css +192 -116
  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 +56 -11
  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 +192 -116
  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 +180 -112
  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/index.js +2 -2
  18. package/es/components/APIKeyModal/APIKeyModal.js +1 -1
  19. package/es/components/AboutModal/AboutModal.js +1 -1
  20. package/es/components/ActionBar/ActionBar.js +1 -1
  21. package/es/components/ActionBar/ActionBarItem.js +1 -1
  22. package/es/components/ActionBar/ActionBarOverflowItems.js +1 -1
  23. package/es/components/ActionSet/ActionSet.js +1 -1
  24. package/es/components/AddSelect/AddSelectBody.js +1 -1
  25. package/es/components/AddSelect/AddSelectBreadcrumbs.js +1 -1
  26. package/es/components/AddSelect/AddSelectFilter.js +1 -1
  27. package/es/components/AddSelect/AddSelectList.js +1 -1
  28. package/es/components/AddSelect/AddSelectRow.js +1 -1
  29. package/es/components/BigNumbers/BigNumbers.js +1 -1
  30. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +1 -1
  31. package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +1 -1
  32. package/es/components/Card/Card.js +1 -1
  33. package/es/components/Card/CardFooter.js +1 -1
  34. package/es/components/Card/CardHeader.js +1 -1
  35. package/es/components/Carousel/Carousel.js +1 -1
  36. package/es/components/Carousel/CarouselItem.js +1 -1
  37. package/es/components/Cascade/Cascade.js +1 -1
  38. package/es/components/Checklist/Checklist.js +1 -1
  39. package/es/components/Checklist/ChecklistChart.js +1 -1
  40. package/es/components/Checklist/ChecklistIcon.js +1 -1
  41. package/es/components/Coachmark/Coachmark.js +1 -1
  42. package/es/components/Coachmark/CoachmarkDragbar.js +1 -1
  43. package/es/components/Coachmark/CoachmarkHeader.js +1 -1
  44. package/es/components/Coachmark/CoachmarkOverlay.js +1 -1
  45. package/es/components/Coachmark/CoachmarkTagline.js +1 -1
  46. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
  47. package/es/components/CoachmarkButton/CoachmarkButton.js +1 -1
  48. package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
  49. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +1 -1
  50. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -1
  51. package/es/components/CoachmarkStack/CoachmarkStack.js +1 -1
  52. package/es/components/CoachmarkStack/CoachmarkStackHome.js +1 -1
  53. package/es/components/ComboButton/ComboButton.js +1 -1
  54. package/es/components/CreateFullPage/CreateFullPage.js +1 -1
  55. package/es/components/CreateFullPage/CreateFullPageStep.js +1 -1
  56. package/es/components/CreateInfluencer/CreateInfluencer.js +1 -1
  57. package/es/components/CreateModal/CreateModal.js +1 -1
  58. package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
  59. package/es/components/CreateTearsheet/CreateTearsheet.js +8 -2
  60. package/es/components/CreateTearsheet/CreateTearsheetDivider.js +1 -1
  61. package/es/components/CreateTearsheet/CreateTearsheetStep.js +1 -1
  62. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
  63. package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -1
  64. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -1
  65. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +1 -1
  66. package/es/components/Datagrid/Datagrid/Datagrid.js +1 -1
  67. package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  68. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +8 -4
  69. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -1
  70. package/es/components/Datagrid/Datagrid/DatagridRefBody.js +1 -1
  71. package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -15
  72. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -1
  73. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +1 -1
  74. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
  75. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +1 -1
  76. package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -1
  77. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
  78. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -1
  79. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -1
  80. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +8 -8
  81. package/es/components/Datagrid/Datagrid/addons/Filtering/constants.d.ts +1 -0
  82. package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +2 -1
  83. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +68 -4
  84. package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +12 -1
  85. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
  86. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +1 -1
  87. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
  88. package/es/components/Datagrid/useActionsColumn.js +1 -1
  89. package/es/components/Datagrid/useColumnCenterAlign.js +1 -1
  90. package/es/components/Datagrid/useColumnRightAlign.js +1 -1
  91. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
  92. package/es/components/Datagrid/useFiltering.js +48 -47
  93. package/es/components/Datagrid/useFloatingScroll.js +1 -1
  94. package/es/components/Datagrid/useInlineEdit.js +1 -1
  95. package/es/components/Datagrid/useNestedRowExpander.js +1 -1
  96. package/es/components/Datagrid/useNestedRows.js +1 -1
  97. package/es/components/Datagrid/useRowExpander.js +1 -1
  98. package/es/components/Datagrid/useSelectAllToggle.js +1 -1
  99. package/es/components/Datagrid/useSelectRows.js +2 -2
  100. package/es/components/Datagrid/useSortableColumns.js +1 -1
  101. package/es/components/Datagrid/useStickyColumn.js +1 -1
  102. package/es/components/DelimitedList/DelimitedList.js +1 -1
  103. package/es/components/EditFullPage/EditFullPage.js +1 -1
  104. package/es/components/EditInPlace/EditInPlace.js +1 -1
  105. package/es/components/EditSidePanel/EditSidePanel.js +1 -1
  106. package/es/components/EditTearsheet/EditTearsheet.js +1 -1
  107. package/es/components/EditTearsheet/EditTearsheetForm.js +1 -1
  108. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -1
  109. package/es/components/EditUpdateCards/EditUpdateCards.js +1 -1
  110. package/es/components/EmptyStates/EmptyState.js +1 -1
  111. package/es/components/EmptyStates/EmptyStateContent.js +1 -1
  112. package/es/components/EmptyStates/EmptyStateV2.js +1 -1
  113. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  114. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  115. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  116. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  117. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  118. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  119. package/es/components/EmptyStates/assets/ErrorIllustration.js +1 -1
  120. package/es/components/EmptyStates/assets/NoDataIllustration.js +1 -1
  121. package/es/components/EmptyStates/assets/NoTagsIllustration.js +1 -1
  122. package/es/components/EmptyStates/assets/NotFoundIllustration.js +1 -1
  123. package/es/components/EmptyStates/assets/NotificationsIllustration.js +1 -1
  124. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -1
  125. package/es/components/ExportModal/ExportModal.js +1 -1
  126. package/es/components/FilterSummary/FilterSummary.js +1 -1
  127. package/es/components/FullPageError/FullPageError.js +1 -1
  128. package/es/components/Guidebanner/Guidebanner.js +1 -1
  129. package/es/components/Guidebanner/GuidebannerElement.js +1 -1
  130. package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
  131. package/es/components/Guidebanner/GuidebannerElementLink.js +1 -1
  132. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
  133. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
  134. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
  135. package/es/components/ImportModal/ImportModal.js +1 -1
  136. package/es/components/InlineTip/InlineTip.js +1 -1
  137. package/es/components/InlineTip/InlineTipButton.js +1 -1
  138. package/es/components/InlineTip/InlineTipLink.js +1 -1
  139. package/es/components/InterstitialScreen/InterstitialScreen.js +1 -1
  140. package/es/components/InterstitialScreenView/InterstitialScreenView.js +1 -1
  141. package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +1 -1
  142. package/es/components/NonLinearReading/NonLinearReading.js +1 -1
  143. package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
  144. package/es/components/OptionsTile/OptionsTile.js +1 -1
  145. package/es/components/PageHeader/PageHeader.js +1 -1
  146. package/es/components/PageHeader/PageHeaderTitle.js +1 -1
  147. package/es/components/PageHeader/PageHeaderUtils.js +1 -1
  148. package/es/components/RemoveModal/RemoveModal.js +1 -1
  149. package/es/components/Saving/Saving.js +1 -1
  150. package/es/components/SearchBar/SearchBar.js +1 -1
  151. package/es/components/SidePanel/SidePanel.js +1 -1
  152. package/es/components/SimpleHeader/SimpleHeader.js +1 -1
  153. package/es/components/StatusIcon/StatusIcon.js +1 -1
  154. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
  155. package/es/components/StringFormatter/StringFormatter.js +1 -1
  156. package/es/components/TagSet/TagSet.js +1 -1
  157. package/es/components/TagSet/TagSetModal.js +1 -1
  158. package/es/components/TagSet/TagSetOverflow.js +1 -1
  159. package/es/components/Tearsheet/TearsheetShell.js +4 -5
  160. package/es/components/Toolbar/Toolbar.js +1 -1
  161. package/es/components/Toolbar/ToolbarButton.js +1 -1
  162. package/es/components/Toolbar/ToolbarGroup.js +1 -1
  163. package/es/components/TooltipTrigger/TooltipTrigger.js +1 -1
  164. package/es/components/TruncatedList/TruncatedList.js +1 -1
  165. package/es/components/UserAvatar/UserAvatar.js +1 -1
  166. package/es/components/UserProfileImage/UserProfileImage.js +1 -1
  167. package/es/components/WebTerminal/WebTerminal.js +1 -1
  168. package/es/components/WebTerminal/WebTerminalContentWrapper.js +1 -1
  169. package/es/components/_Canary/Canary.js +1 -1
  170. package/es/node_modules/prop-types/index.js +1 -1
  171. package/lib/_virtual/index.js +2 -2
  172. package/lib/components/APIKeyModal/APIKeyModal.js +50 -49
  173. package/lib/components/AboutModal/AboutModal.js +17 -16
  174. package/lib/components/ActionBar/ActionBar.js +16 -15
  175. package/lib/components/ActionBar/ActionBarItem.js +8 -7
  176. package/lib/components/ActionBar/ActionBarOverflowItems.js +9 -8
  177. package/lib/components/ActionSet/ActionSet.js +4 -3
  178. package/lib/components/AddSelect/AddSelectBody.js +67 -66
  179. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +7 -6
  180. package/lib/components/AddSelect/AddSelectFilter.js +19 -18
  181. package/lib/components/AddSelect/AddSelectList.js +7 -6
  182. package/lib/components/AddSelect/AddSelectRow.js +33 -32
  183. package/lib/components/BigNumbers/BigNumbers.js +23 -22
  184. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +20 -19
  185. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +3 -2
  186. package/lib/components/Card/Card.js +5 -4
  187. package/lib/components/Card/CardFooter.js +22 -21
  188. package/lib/components/Card/CardHeader.js +27 -26
  189. package/lib/components/Carousel/Carousel.js +13 -12
  190. package/lib/components/Carousel/CarouselItem.js +6 -5
  191. package/lib/components/Cascade/Cascade.js +9 -8
  192. package/lib/components/Checklist/Checklist.js +33 -32
  193. package/lib/components/Checklist/ChecklistChart.js +7 -6
  194. package/lib/components/Checklist/ChecklistIcon.js +7 -6
  195. package/lib/components/Coachmark/Coachmark.js +21 -20
  196. package/lib/components/Coachmark/CoachmarkDragbar.js +10 -9
  197. package/lib/components/Coachmark/CoachmarkHeader.js +8 -7
  198. package/lib/components/Coachmark/CoachmarkOverlay.js +10 -9
  199. package/lib/components/Coachmark/CoachmarkTagline.js +8 -7
  200. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +7 -6
  201. package/lib/components/CoachmarkButton/CoachmarkButton.js +6 -5
  202. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +11 -10
  203. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +8 -7
  204. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -15
  205. package/lib/components/CoachmarkStack/CoachmarkStack.js +20 -19
  206. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +17 -16
  207. package/lib/components/ComboButton/ComboButton.js +7 -6
  208. package/lib/components/CreateFullPage/CreateFullPage.js +29 -28
  209. package/lib/components/CreateFullPage/CreateFullPageStep.js +18 -17
  210. package/lib/components/CreateInfluencer/CreateInfluencer.js +13 -12
  211. package/lib/components/CreateModal/CreateModal.js +16 -15
  212. package/lib/components/CreateSidePanel/CreateSidePanel.js +21 -20
  213. package/lib/components/CreateTearsheet/CreateTearsheet.js +27 -20
  214. package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +5 -4
  215. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +19 -18
  216. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +21 -20
  217. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +22 -21
  218. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +56 -55
  219. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +39 -38
  220. package/lib/components/Datagrid/Datagrid/Datagrid.js +7 -6
  221. package/lib/components/Datagrid/Datagrid/DatagridContent.js +32 -31
  222. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +8 -3
  223. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -5
  224. package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -2
  225. package/lib/components/Datagrid/Datagrid/DatagridRow.js +20 -15
  226. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -3
  227. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +14 -13
  228. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +3 -2
  229. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +6 -5
  230. package/lib/components/Datagrid/Datagrid/DraggableElement.js +13 -12
  231. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +15 -14
  232. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +25 -24
  233. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +27 -26
  234. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +7 -7
  235. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.d.ts +1 -0
  236. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +2 -0
  237. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +65 -1
  238. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +11 -0
  239. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +15 -14
  240. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +20 -19
  241. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +9 -8
  242. package/lib/components/Datagrid/useActionsColumn.js +7 -6
  243. package/lib/components/Datagrid/useColumnCenterAlign.js +3 -2
  244. package/lib/components/Datagrid/useColumnRightAlign.js +3 -2
  245. package/lib/components/Datagrid/useDefaultStringRenderer.js +4 -3
  246. package/lib/components/Datagrid/useFiltering.js +46 -45
  247. package/lib/components/Datagrid/useFloatingScroll.js +6 -2
  248. package/lib/components/Datagrid/useInlineEdit.js +4 -3
  249. package/lib/components/Datagrid/useNestedRowExpander.js +4 -3
  250. package/lib/components/Datagrid/useNestedRows.js +6 -2
  251. package/lib/components/Datagrid/useRowExpander.js +3 -2
  252. package/lib/components/Datagrid/useSelectAllToggle.js +3 -2
  253. package/lib/components/Datagrid/useSelectRows.js +5 -4
  254. package/lib/components/Datagrid/useSortableColumns.js +3 -2
  255. package/lib/components/Datagrid/useStickyColumn.js +4 -3
  256. package/lib/components/DelimitedList/DelimitedList.js +8 -7
  257. package/lib/components/EditFullPage/EditFullPage.js +6 -5
  258. package/lib/components/EditInPlace/EditInPlace.js +23 -22
  259. package/lib/components/EditSidePanel/EditSidePanel.js +23 -22
  260. package/lib/components/EditTearsheet/EditTearsheet.js +18 -17
  261. package/lib/components/EditTearsheet/EditTearsheetForm.js +11 -10
  262. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +6 -5
  263. package/lib/components/EditUpdateCards/EditUpdateCards.js +31 -30
  264. package/lib/components/EmptyStates/EmptyState.js +20 -19
  265. package/lib/components/EmptyStates/EmptyStateContent.js +16 -15
  266. package/lib/components/EmptyStates/EmptyStateV2.js +20 -19
  267. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +18 -17
  268. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +18 -17
  269. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +18 -17
  270. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +18 -17
  271. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +18 -17
  272. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +18 -17
  273. package/lib/components/EmptyStates/assets/ErrorIllustration.js +7 -6
  274. package/lib/components/EmptyStates/assets/NoDataIllustration.js +7 -6
  275. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +7 -6
  276. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +7 -6
  277. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +7 -6
  278. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +7 -6
  279. package/lib/components/ExportModal/ExportModal.js +30 -29
  280. package/lib/components/FilterSummary/FilterSummary.js +13 -12
  281. package/lib/components/FullPageError/FullPageError.js +13 -12
  282. package/lib/components/Guidebanner/Guidebanner.js +20 -19
  283. package/lib/components/Guidebanner/GuidebannerElement.js +8 -7
  284. package/lib/components/Guidebanner/GuidebannerElementButton.js +8 -7
  285. package/lib/components/Guidebanner/GuidebannerElementLink.js +6 -5
  286. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +11 -10
  287. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +11 -10
  288. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +11 -10
  289. package/lib/components/ImportModal/ImportModal.js +32 -31
  290. package/lib/components/InlineTip/InlineTip.js +21 -20
  291. package/lib/components/InlineTip/InlineTipButton.js +6 -5
  292. package/lib/components/InlineTip/InlineTipLink.js +6 -5
  293. package/lib/components/InterstitialScreen/InterstitialScreen.js +13 -12
  294. package/lib/components/InterstitialScreenView/InterstitialScreenView.js +7 -6
  295. package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +7 -6
  296. package/lib/components/NonLinearReading/NonLinearReading.js +9 -8
  297. package/lib/components/NotificationsPanel/NotificationsPanel.js +59 -58
  298. package/lib/components/OptionsTile/OptionsTile.js +21 -20
  299. package/lib/components/PageHeader/PageHeader.js +74 -73
  300. package/lib/components/PageHeader/PageHeaderTitle.js +21 -20
  301. package/lib/components/PageHeader/PageHeaderUtils.js +3 -2
  302. package/lib/components/RemoveModal/RemoveModal.js +22 -21
  303. package/lib/components/Saving/Saving.js +18 -17
  304. package/lib/components/SearchBar/SearchBar.js +20 -19
  305. package/lib/components/SidePanel/SidePanel.js +47 -46
  306. package/lib/components/SimpleHeader/SimpleHeader.js +17 -16
  307. package/lib/components/StatusIcon/StatusIcon.js +9 -8
  308. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +7 -6
  309. package/lib/components/StringFormatter/StringFormatter.js +11 -10
  310. package/lib/components/TagSet/TagSet.js +21 -20
  311. package/lib/components/TagSet/TagSetModal.js +13 -12
  312. package/lib/components/TagSet/TagSetOverflow.js +18 -17
  313. package/lib/components/Tearsheet/TearsheetShell.js +35 -35
  314. package/lib/components/Toolbar/Toolbar.js +7 -6
  315. package/lib/components/Toolbar/ToolbarButton.js +9 -8
  316. package/lib/components/Toolbar/ToolbarGroup.js +6 -5
  317. package/lib/components/TooltipTrigger/TooltipTrigger.js +6 -5
  318. package/lib/components/TruncatedList/TruncatedList.js +14 -13
  319. package/lib/components/UserAvatar/UserAvatar.js +3 -2
  320. package/lib/components/UserProfileImage/UserProfileImage.js +3 -2
  321. package/lib/components/WebTerminal/WebTerminal.js +14 -13
  322. package/lib/components/WebTerminal/WebTerminalContentWrapper.js +5 -4
  323. package/lib/components/_Canary/Canary.js +6 -5
  324. package/lib/node_modules/prop-types/index.js +1 -1
  325. package/package.json +6 -5
  326. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +0 -1
  327. package/scss/components/Datagrid/styles/_datagrid.scss +61 -4
  328. package/scss/components/SidePanel/_side-panel.scss +8 -1
  329. package/scss/components/Tearsheet/_tearsheet.scss +4 -5
  330. package/es/_virtual/index2.js +0 -10
  331. package/es/node_modules/classnames/index.js +0 -70
  332. package/lib/_virtual/index2.js +0 -14
  333. package/lib/node_modules/classnames/index.js +0 -74
@@ -11,9 +11,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
12
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
13
13
  var React = require('react');
14
- var index$1 = require('../../node_modules/prop-types/index.js');
14
+ var index = require('../../node_modules/prop-types/index.js');
15
15
  var layout = require('@carbon/layout');
16
- var index = require('../../node_modules/classnames/index.js');
16
+ var cx = require('classnames');
17
17
  var useResizeObserver = require('../../global/js/hooks/useResizeObserver.js');
18
18
  var react = require('@carbon/react');
19
19
  var devtools = require('../../global/js/utils/devtools.js');
@@ -32,6 +32,7 @@ var ButtonSetWithOverflow = require('../ButtonSetWithOverflow/ButtonSetWithOverf
32
32
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
33
33
 
34
34
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
35
+ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
35
36
 
36
37
  var _excluded = ["actionBarItems", "actionBarMenuOptionsClass", "actionBarOverflowAriaLabel", "allTagsModalSearchLabel", "allTagsModalSearchPlaceholderText", "allTagsModalTitle", "hasBackgroundAlways", "breadcrumbOverflowAriaLabel", "breadcrumbs", "children", "className", "collapseHeader", "collapseHeaderIconDescription", "collapseTitle", "disableBreadcrumbScroll", "enableBreadcrumbScroll", "expandHeaderIconDescription", "fullWidthGrid", "hasCollapseHeaderToggle", "narrowGrid", "navigation", "pageActions", "pageActionsOverflowLabel", "pageActionsMenuOptionsClass", "showAllTagsLabel", "subtitle", "tags", "title", "withoutBackground"];
37
38
  var componentName = 'PageHeader';
@@ -325,28 +326,28 @@ exports.PageHeader = /*#__PURE__*/React__default["default"].forwardRef(function
325
326
  className: "".concat(PageHeaderUtils.blockClass, "--offset-top-measuring-element"),
326
327
  ref: offsetTopMeasuringRef
327
328
  }), /*#__PURE__*/React__default["default"].createElement("section", _rollupPluginBabelHelpers["extends"]({}, rest, {
328
- className: index["default"]([PageHeaderUtils.blockClass, "".concat(PageHeaderUtils.blockClass, "--no-margins-below-row"), className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "--has-navigation"), navigation || tags), "".concat(PageHeaderUtils.blockClass, "--has-navigation-tags-only"), !navigation && tags)]),
329
+ className: cx__default["default"]([PageHeaderUtils.blockClass, "".concat(PageHeaderUtils.blockClass, "--no-margins-below-row"), className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "--has-navigation"), navigation || tags), "".concat(PageHeaderUtils.blockClass, "--has-navigation-tags-only"), !navigation && tags)]),
329
330
  style: pageHeaderStyles,
330
331
  ref: headerRef
331
332
  }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React__default["default"].createElement(react.FlexGrid, {
332
333
  fullWidth: fullWidthGrid === true || fullWidthGrid === 'xl',
333
334
  narrow: narrowGrid,
334
- className: index["default"](_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "--width--xl"), fullWidthGrid === 'xl'))
335
+ className: cx__default["default"](_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "--width--xl"), fullWidthGrid === 'xl'))
335
336
  }, /*#__PURE__*/React__default["default"].createElement("div", {
336
337
  className: "".concat(PageHeaderUtils.blockClass, "__non-navigation-row-content")
337
338
  }, hasBreadcrumbRow ? /*#__PURE__*/React__default["default"].createElement(react.Row, {
338
- className: index["default"]("".concat(PageHeaderUtils.blockClass, "__breadcrumb-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__breadcrumb-row--next-to-tabs"), nextToTabsCheck()), "".concat(PageHeaderUtils.blockClass, "__breadcrumb-row--has-breadcrumbs"), breadcrumbs || breadcrumbItemForTitle), "".concat(PageHeaderUtils.blockClass, "__breadcrumb-row--has-action-bar"), hasActionBar || widthIsNarrow), "".concat(PageHeaderUtils.blockClass, "__has-page-actions-without-action-bar"), !hasActionBar && !widthIsNarrow && pageActions))
339
+ className: cx__default["default"]("".concat(PageHeaderUtils.blockClass, "__breadcrumb-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__breadcrumb-row--next-to-tabs"), nextToTabsCheck()), "".concat(PageHeaderUtils.blockClass, "__breadcrumb-row--has-breadcrumbs"), breadcrumbs || breadcrumbItemForTitle), "".concat(PageHeaderUtils.blockClass, "__breadcrumb-row--has-action-bar"), hasActionBar || widthIsNarrow), "".concat(PageHeaderUtils.blockClass, "__has-page-actions-without-action-bar"), !hasActionBar && !widthIsNarrow && pageActions))
339
340
  }, /*#__PURE__*/React__default["default"].createElement("div", {
340
341
  className: "".concat(PageHeaderUtils.blockClass, "__breadcrumb-row--container")
341
342
  }, /*#__PURE__*/React__default["default"].createElement(react.Column, {
342
- className: index["default"]("".concat(PageHeaderUtils.blockClass, "__breadcrumb-column"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__breadcrumb-column--background"), !!breadcrumbs || hasActionBar || widthIsNarrow))
343
+ className: cx__default["default"]("".concat(PageHeaderUtils.blockClass, "__breadcrumb-column"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__breadcrumb-column--background"), !!breadcrumbs || hasActionBar || widthIsNarrow))
343
344
  }, breadcrumbs || breadcrumbItemForTitle ? /*#__PURE__*/React__default["default"].createElement(BreadcrumbWithOverflow.BreadcrumbWithOverflow, {
344
345
  className: "".concat(PageHeaderUtils.blockClass, "__breadcrumb"),
345
346
  noTrailingSlash: !!title,
346
347
  overflowAriaLabel: breadcrumbOverflowAriaLabel,
347
348
  breadcrumbs: breadcrumbs && breadcrumbItemForTitle ? breadcrumbs.concat(breadcrumbItemForTitle) : breadcrumbItemForTitle ? [breadcrumbItemForTitle] : breadcrumbs // breadcrumbs may be null or undefined
348
349
  }) : null), /*#__PURE__*/React__default["default"].createElement(react.Column, {
349
- className: index["default"](["".concat(PageHeaderUtils.blockClass, "__action-bar-column ").concat(PageHeaderUtils.blockClass, "__action-bar-column--background"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__action-bar-column--has-page-actions"), pageActions), "".concat(PageHeaderUtils.blockClass, "__action-bar-column--influenced-by-collapse-button"), spaceForCollapseButton)])
350
+ className: cx__default["default"](["".concat(PageHeaderUtils.blockClass, "__action-bar-column ").concat(PageHeaderUtils.blockClass, "__action-bar-column--background"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__action-bar-column--has-page-actions"), pageActions), "".concat(PageHeaderUtils.blockClass, "__action-bar-column--influenced-by-collapse-button"), spaceForCollapseButton)])
350
351
  }, /*#__PURE__*/React__default["default"].createElement("div", {
351
352
  className: "".concat(PageHeaderUtils.blockClass, "__action-bar-column-content"),
352
353
  ref: sizingContainerRef
@@ -354,14 +355,14 @@ exports.PageHeader = /*#__PURE__*/React__default["default"].forwardRef(function
354
355
  /*#__PURE__*/
355
356
  // Investigate the responsive behavior or this and the title also fix the ActionBar Item and PageAction story css
356
357
  React__default["default"].createElement(React__default["default"].Fragment, null, thePageActions(true, pageActionsInBreadcrumbRow), /*#__PURE__*/React__default["default"].createElement(ActionBar.ActionBar, {
357
- menuOptionsClass: index["default"](actionBarMenuOptionsClass, "".concat(PageHeaderUtils.blockClass, "__action-bar-menu-options")),
358
+ menuOptionsClass: cx__default["default"](actionBarMenuOptionsClass, "".concat(PageHeaderUtils.blockClass, "__action-bar-menu-options")),
358
359
  overflowAriaLabel: actionBarOverflowAriaLabel,
359
360
  actions: actionBarItems,
360
361
  className: "".concat(PageHeaderUtils.blockClass, "__action-bar"),
361
362
  onWidthChange: handleActionBarWidthChange,
362
363
  rightAlign: true
363
364
  })) : widthIsNarrow && thePageActions(true, pageActionsInBreadcrumbRow))))) : null, !collapseTitle && (title || pageActions) ? /*#__PURE__*/React__default["default"].createElement(react.Row, {
364
- className: index["default"]("".concat(PageHeaderUtils.blockClass, "__title-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__title-row--no-breadcrumb-row"), !hasBreadcrumbRow), "".concat(PageHeaderUtils.blockClass, "__title-row--under-action-bar"), hasActionBar || widthIsNarrow), "".concat(PageHeaderUtils.blockClass, "__title-row--has-page-actions"), !!pageActions), "".concat(PageHeaderUtils.blockClass, "__title-row--sticky"), !!pageActions && !actionBarItems && hasBreadcrumbRow))
365
+ className: cx__default["default"]("".concat(PageHeaderUtils.blockClass, "__title-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__title-row--no-breadcrumb-row"), !hasBreadcrumbRow), "".concat(PageHeaderUtils.blockClass, "__title-row--under-action-bar"), hasActionBar || widthIsNarrow), "".concat(PageHeaderUtils.blockClass, "__title-row--has-page-actions"), !!pageActions), "".concat(PageHeaderUtils.blockClass, "__title-row--sticky"), !!pageActions && !actionBarItems && hasBreadcrumbRow))
365
366
  }, /*#__PURE__*/React__default["default"].createElement(react.Column, {
366
367
  className: "".concat(PageHeaderUtils.blockClass, "__title-column")
367
368
  }, title ? /*#__PURE__*/React__default["default"].createElement(PageHeaderTitle.PageHeaderTitle, {
@@ -377,13 +378,13 @@ exports.PageHeader = /*#__PURE__*/React__default["default"].forwardRef(function
377
378
  }, /*#__PURE__*/React__default["default"].createElement(react.Column, {
378
379
  className: "".concat(PageHeaderUtils.blockClass, "__available-column")
379
380
  }, children)) : null, (breadcrumbs || actionBarItems || title || pageActions || children || subtitle) && /*#__PURE__*/React__default["default"].createElement("div", {
380
- className: index["default"](["".concat(PageHeaderUtils.blockClass, "__last-row-buffer"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__last-row-buffer--active"), lastRowBufferActive)])
381
+ className: cx__default["default"](["".concat(PageHeaderUtils.blockClass, "__last-row-buffer"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__last-row-buffer--active"), lastRowBufferActive)])
381
382
  }),
382
383
  // this navigation row scrolls under the breadcrumb if there is one
383
384
  tags && !navigation ? /*#__PURE__*/React__default["default"].createElement(react.Row, {
384
- className: index["default"]("".concat(PageHeaderUtils.blockClass, "__navigation-row"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__navigation-row--has-tags"), tags))
385
+ className: cx__default["default"]("".concat(PageHeaderUtils.blockClass, "__navigation-row"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__navigation-row--has-tags"), tags))
385
386
  }, /*#__PURE__*/React__default["default"].createElement(react.Column, {
386
- className: index["default"]("".concat(PageHeaderUtils.blockClass, "__navigation-tags"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__navigation-tags--tags-only"), !navigation))
387
+ className: cx__default["default"]("".concat(PageHeaderUtils.blockClass, "__navigation-tags"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__navigation-tags--tags-only"), !navigation))
387
388
  }, /*#__PURE__*/React__default["default"].createElement(TagSet.TagSet, {
388
389
  overflowAlign: "bottom-right",
389
390
  allTagsModalSearchLabel: allTagsModalSearchLabel,
@@ -395,11 +396,11 @@ exports.PageHeader = /*#__PURE__*/React__default["default"].forwardRef(function
395
396
  }))) : null),
396
397
  // this navigation pushes the breadcrumb off or settles underneath it depending on enableBreadcrumbScroll
397
398
  navigation ? /*#__PURE__*/React__default["default"].createElement(react.Row, {
398
- className: index["default"]("".concat(PageHeaderUtils.blockClass, "__navigation-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__navigation-row--spacing-above-06"), !!navigation), "".concat(PageHeaderUtils.blockClass, "__navigation-row--has-tags"), tags))
399
+ className: cx__default["default"]("".concat(PageHeaderUtils.blockClass, "__navigation-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__navigation-row--spacing-above-06"), !!navigation), "".concat(PageHeaderUtils.blockClass, "__navigation-row--has-tags"), tags))
399
400
  }, /*#__PURE__*/React__default["default"].createElement(react.Column, {
400
401
  className: "".concat(PageHeaderUtils.blockClass, "__navigation-tabs")
401
402
  }, navigation), tags ? /*#__PURE__*/React__default["default"].createElement(react.Column, {
402
- className: index["default"]("".concat(PageHeaderUtils.blockClass, "__navigation-tags"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__navigation-tags--tags-only"), !navigation))
403
+ className: cx__default["default"]("".concat(PageHeaderUtils.blockClass, "__navigation-tags"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__navigation-tags--tags-only"), !navigation))
403
404
  }, /*#__PURE__*/React__default["default"].createElement(TagSet.TagSet, {
404
405
  overflowAlign: "bottom-right",
405
406
  allTagsModalSearchLabel: allTagsModalSearchLabel,
@@ -409,7 +410,7 @@ exports.PageHeader = /*#__PURE__*/React__default["default"].forwardRef(function
409
410
  tags: tags,
410
411
  overflowClassName: "".concat(PageHeaderUtils.blockClass, "__navigation-tags-overflow")
411
412
  })) : null) : null), hasCollapseButton ? /*#__PURE__*/React__default["default"].createElement("div", {
412
- className: index["default"]("".concat(PageHeaderUtils.blockClass, "__collapse-expand-toggle"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__collapse-expand-toggle--collapsed"), fullyCollapsed))
413
+ className: cx__default["default"]("".concat(PageHeaderUtils.blockClass, "__collapse-expand-toggle"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__collapse-expand-toggle--collapsed"), fullyCollapsed))
413
414
  }, /*#__PURE__*/React__default["default"].createElement(react.Button, {
414
415
  hasIconOnly: true,
415
416
  iconDescription: /* istanbul ignore next */
@@ -434,12 +435,12 @@ exports.PageHeader = /*#__PURE__*/React__default["default"].forwardRef(function
434
435
  // and when there is an actionBar
435
436
  var handleWidthChange = isBreadcrumbRow && hasBreadcrumbRow ? handlePageActionWidthChange : function () {};
436
437
  return /*#__PURE__*/React__default["default"].createElement(_Tag, {
437
- className: index["default"]("".concat(PageHeaderUtils.blockClass, "__page-actions"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__page-actions--in-breadcrumb"), inBreadcrumbRow))
438
+ className: cx__default["default"]("".concat(PageHeaderUtils.blockClass, "__page-actions"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(PageHeaderUtils.blockClass, "__page-actions--in-breadcrumb"), inBreadcrumbRow))
438
439
  }, /*#__PURE__*/React__default["default"].createElement("div", {
439
- className: index["default"]("".concat(PageHeaderUtils.blockClass, "__page-actions-content"))
440
+ className: cx__default["default"]("".concat(PageHeaderUtils.blockClass, "__page-actions-content"))
440
441
  }, (_pageActions$content = pageActions.content) !== null && _pageActions$content !== void 0 ? _pageActions$content : /*#__PURE__*/React__default["default"].createElement(ButtonSetWithOverflow.ButtonSetWithOverflow, {
441
442
  classname: "".concat(PageHeaderUtils.blockClass, "__button-set-with-overflow"),
442
- menuOptionsClass: index["default"](pageActionsMenuOptionsClass, "".concat(PageHeaderUtils.blockClass, "__button-set-menu-options")),
443
+ menuOptionsClass: cx__default["default"](pageActionsMenuOptionsClass, "".concat(PageHeaderUtils.blockClass, "__button-set-menu-options")),
443
444
  onWidthChange: handleWidthChange,
444
445
  buttons: pageActions,
445
446
  buttonSetOverflowLabel: pageActionsOverflowLabel,
@@ -472,11 +473,11 @@ var deprecatedProps = {
472
473
  /**
473
474
  * **Deprecated** see property `enableBreadcrumbScroll`
474
475
  */
475
- disableBreadcrumbScroll: propsHelper.deprecateProp(index$1["default"].bool, 'Property replaced by `enableBreadcrumbScroll`'),
476
+ disableBreadcrumbScroll: propsHelper.deprecateProp(index["default"].bool, 'Property replaced by `enableBreadcrumbScroll`'),
476
477
  /**
477
478
  * **Deprecated** see property `withoutBackground`
478
479
  */
479
- hasBackgroundAlways: propsHelper.deprecateProp(index$1["default"].bool, 'Property replaced by `withoutBackground`')
480
+ hasBackgroundAlways: propsHelper.deprecateProp(index["default"].bool, 'Property replaced by `withoutBackground`')
480
481
  };
481
482
  exports.PageHeader.tagTypes = tagTypes;
482
483
  exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
@@ -485,22 +486,22 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
485
486
  * Each item is specified as an object with the properties of a Carbon Button in icon only form.
486
487
  * Button kind, size, tooltipPosition, tooltipAlignment and type are ignored.
487
488
  */
488
- actionBarItems: index$1["default"].arrayOf(index$1["default"].shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, propsHelper.prepareProps(react.Button.propTypes, ['kind', 'size', 'tooltipPosition', 'tooltipAlignment'])), {}, {
489
- iconDescription: index$1["default"].string.isRequired,
489
+ actionBarItems: index["default"].arrayOf(index["default"].shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, propsHelper.prepareProps(react.Button.propTypes, ['kind', 'size', 'tooltipPosition', 'tooltipAlignment'])), {}, {
490
+ iconDescription: index["default"].string.isRequired,
490
491
  onClick: react.Button.propTypes.onClick,
491
492
  renderIcon: react.Button.propTypes.renderIcon.isRequired
492
493
  }))),
493
494
  /**
494
495
  * class name applied to the action bar overflow options
495
496
  */
496
- actionBarMenuOptionsClass: index$1["default"].string,
497
+ actionBarMenuOptionsClass: index["default"].string,
497
498
  /**
498
499
  * When there is insufficient space for all actionBarItems to be displayed this
499
500
  * aria label is used for the action bar overflow menu
500
501
  *
501
502
  * NOTE: This prop is required if actionBarItems are supplied
502
503
  */
503
- actionBarOverflowAriaLabel: index$1["default"].string.isRequired.if(function (_ref10) {
504
+ actionBarOverflowAriaLabel: index["default"].string.isRequired.if(function (_ref10) {
504
505
  var actionBarItems = _ref10.actionBarItems;
505
506
  return actionBarItems && actionBarItems.length > 0;
506
507
  }),
@@ -532,7 +533,7 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
532
533
  * If the user supplies breadcrumbs then this property is required.
533
534
  * It is used in an overflow menu when there is insufficient space to display all breadcrumbs inline.
534
535
  */
535
- breadcrumbOverflowAriaLabel: index$1["default"].string.isRequired.if(function (_ref11) {
536
+ breadcrumbOverflowAriaLabel: index["default"].string.isRequired.if(function (_ref11) {
536
537
  var breadcrumbs = _ref11.breadcrumbs;
537
538
  return breadcrumbs && breadcrumbs.length > 0;
538
539
  }),
@@ -547,27 +548,27 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
547
548
  * fields in the object will be passed through to the breadcrumb element as
548
549
  * HTML attributes.
549
550
  */
550
- breadcrumbs: index$1["default"].arrayOf(index$1["default"].shape({
551
+ breadcrumbs: index["default"].arrayOf(index["default"].shape({
551
552
  /**
552
553
  * Optional string representing the link location for the BreadcrumbItem
553
554
  */
554
- href: index$1["default"].string,
555
+ href: index["default"].string,
555
556
  /**
556
557
  * Provide if this breadcrumb item represents the current page
557
558
  */
558
- isCurrentPage: index$1["default"].bool,
559
+ isCurrentPage: index["default"].bool,
559
560
  /**
560
561
  * Key required to render array efficiently
561
562
  */
562
- key: index$1["default"].string.isRequired,
563
+ key: index["default"].string.isRequired,
563
564
  /**
564
565
  * Pass in content that will be inside of the BreadcrumbItem
565
566
  */
566
- label: index$1["default"].node,
567
+ label: index["default"].node,
567
568
  /**
568
569
  * A text version of the `label` for display, required if `label` is not a string.
569
570
  */
570
- title: index$1["default"].string.isRequired.if(function (_ref12) {
571
+ title: index["default"].string.isRequired.if(function (_ref12) {
571
572
  var label = _ref12.label;
572
573
  return typeof label !== 'string';
573
574
  })
@@ -576,12 +577,12 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
576
577
  * A zone for placing high-level, client content above the page tabs.
577
578
  * Accepts arbitrary renderable content as a React node. Optional.
578
579
  */
579
- children: index$1["default"].node,
580
+ children: index["default"].node,
580
581
  /**
581
582
  * Specifies class(es) to be applied to the top-level PageHeader node.
582
583
  * Optional.
583
584
  */
584
- className: index$1["default"].string,
585
+ className: index["default"].string,
585
586
  /**
586
587
  * The header can as a whole be collapsed, expanded or somewhere in between.
587
588
  * This setting controls the initial value, but also takes effect on change
@@ -589,12 +590,12 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
589
590
  * NOTE: The header is collapsed by setting the scroll position to hide part of the header.
590
591
  * Collapsing has no effect if there is insufficient content to scroll.
591
592
  */
592
- collapseHeader: index$1["default"].bool,
593
+ collapseHeader: index["default"].bool,
593
594
  /**
594
595
  * If `hasCollapseHeaderToggle` is set and `withoutBackground` is unset/falsy then assistive text is
595
596
  * required for both the expend and collapse states of the button component used.
596
597
  */
597
- collapseHeaderIconDescription: index$1["default"].string.isRequired.if(function (_ref13) {
598
+ collapseHeaderIconDescription: index["default"].string.isRequired.if(function (_ref13) {
598
599
  var withoutBackground = _ref13.withoutBackground,
599
600
  hasCollapseHeaderToggle = _ref13.hasCollapseHeaderToggle;
600
601
  return !withoutBackground && hasCollapseHeaderToggle;
@@ -603,17 +604,17 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
603
604
  * The title row typically starts below the breadcrumb row. This option
604
605
  * preCollapses it into the breadcrumb row.
605
606
  */
606
- collapseTitle: index$1["default"].bool,
607
+ collapseTitle: index["default"].bool,
607
608
  /**
608
609
  * Standard keeps the breadcrumb on the page. This option allows the breadcrumb
609
610
  * to scroll off
610
611
  */
611
- enableBreadcrumbScroll: index$1["default"].bool,
612
+ enableBreadcrumbScroll: index["default"].bool,
612
613
  /**
613
614
  * If `hasCollapseHeaderToggle` is set and `withoutBackground` is unset/falsy then assistive text is
614
615
  * required for both the expend and collapse states of the button component used.
615
616
  */
616
- expandHeaderIconDescription: index$1["default"].string.isRequired.if(function (_ref14) {
617
+ expandHeaderIconDescription: index["default"].string.isRequired.if(function (_ref14) {
617
618
  var withoutBackground = _ref14.withoutBackground,
618
619
  hasCollapseHeaderToggle = _ref14.hasCollapseHeaderToggle;
619
620
  return !withoutBackground && hasCollapseHeaderToggle;
@@ -622,23 +623,23 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
622
623
  * The PageHeader is hosted in a Carbon grid, this value is passed through to the Carbon grid fullWidth prop.
623
624
  * 'xl' is used to override the grid width setting. Can be used with narrowGrid: true to get the largest size.
624
625
  */
625
- fullWidthGrid: index$1["default"].oneOfType([index$1["default"].bool, index$1["default"].oneOf(['xl'])]),
626
+ fullWidthGrid: index["default"].oneOfType([index["default"].bool, index["default"].oneOf(['xl'])]),
626
627
  /**
627
628
  * Adds a button as the last element of the bottom row which collapses and expands the header.
628
629
  *
629
630
  * NOTE: The header is collapsed by setting the scroll position to hide part of the header.
630
631
  * Collapsing has no effect if there is insufficient content to scroll.
631
632
  */
632
- hasCollapseHeaderToggle: index$1["default"].bool,
633
+ hasCollapseHeaderToggle: index["default"].bool,
633
634
  /**
634
635
  * The PageHeader is hosted in a Carbon grid, this value is passed through to the Carbon grid narrow prop
635
636
  */
636
- narrowGrid: index$1["default"].bool,
637
+ narrowGrid: index["default"].bool,
637
638
  /**
638
639
  * Content for the navigation area in the PageHeader. Should
639
640
  * be a React element that is normally a Carbon Tabs component. Optional.
640
641
  */
641
- navigation: index$1["default"].element,
642
+ navigation: index["default"].element,
642
643
  // Supports Tabs
643
644
  /**
644
645
  * Specifies the primary page actions which are placed at the same level in the page as the title.
@@ -655,31 +656,31 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
655
656
  * - maxWidth: maximum number of pixels the content will grow to
656
657
  * Carbon Button API https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
657
658
  */
658
- pageActions: index$1["default"].oneOfType([index$1["default"].arrayOf(index$1["default"].shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
659
- key: index$1["default"].string.isRequired,
659
+ pageActions: index["default"].oneOfType([index["default"].arrayOf(index["default"].shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, react.Button.propTypes), {}, {
660
+ key: index["default"].string.isRequired,
660
661
  kind: react.Button.propTypes.kind,
661
- label: index$1["default"].node,
662
- onClick: index$1["default"].func
663
- }))), index$1["default"].shape({
662
+ label: index["default"].node,
663
+ onClick: index["default"].func
664
+ }))), index["default"].shape({
664
665
  /**
665
666
  * minWidth should not be more than 180
666
667
  * The content is expected to adjust itself to fit in
667
668
  */
668
- content: index$1["default"].node.isRequired,
669
- minWidth: index$1["default"].number.isRequired,
670
- maxWidth: index$1["default"].number.isRequired
669
+ content: index["default"].node.isRequired,
670
+ minWidth: index["default"].number.isRequired,
671
+ maxWidth: index["default"].number.isRequired
671
672
  })]),
672
673
  /**
673
674
  * class name applied to the page actions overflow options
674
675
  */
675
- pageActionsMenuOptionsClass: index$1["default"].string,
676
+ pageActionsMenuOptionsClass: index["default"].string,
676
677
  /**
677
678
  * When there is insufficient space to display all of hte page actions inline a dropdown button menu is shown,
678
679
  * containing the page actions. This label is used as the display content of the dropdown button menu.
679
680
  *
680
681
  * NOTE: This prop is required if pageActions are supplied
681
682
  */
682
- pageActionsOverflowLabel: index$1["default"].node.isRequired.if(function (_ref15) {
683
+ pageActionsOverflowLabel: index["default"].node.isRequired.if(function (_ref15) {
683
684
  var pageActions = _ref15.pageActions;
684
685
  return pageActions && pageActions.length > 0 && !pageActions.content;
685
686
  }),
@@ -695,7 +696,7 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
695
696
  * Sitting just below the title is this optional subtitle that provides additional context to
696
697
  * identify the current page.
697
698
  */
698
- subtitle: index$1["default"].node,
699
+ subtitle: index["default"].node,
699
700
  /**
700
701
  * An array of tags to be shown as the final content in the PageHeader.
701
702
  *
@@ -708,10 +709,10 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
708
709
  *
709
710
  * See https://react.carbondesignsystem.com/?path=/docs/components-tag--default
710
711
  */
711
- tags: index$1["default"].arrayOf(index$1["default"].shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, propsHelper.prepareProps(react.Tag.propTypes, 'filter')), {}, {
712
- label: index$1["default"].string.isRequired,
712
+ tags: index["default"].arrayOf(index["default"].shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, propsHelper.prepareProps(react.Tag.propTypes, 'filter')), {}, {
713
+ label: index["default"].string.isRequired,
713
714
  // we duplicate this prop to improve the DocGen
714
- type: index$1["default"].oneOf(tagTypes)
715
+ type: index["default"].oneOf(tagTypes)
715
716
  }))),
716
717
  /**
717
718
  * An optional page title supplied as a string or object with the following attributes: text, icon, loading
@@ -732,35 +733,35 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
732
733
  * - breadcrumbContent: version of content used in the breadcrumb on scroll. If not supplied
733
734
  * - asText: String based representation of the title
734
735
  */
735
- title: index$1["default"].oneOfType([index$1["default"].shape({
736
+ title: index["default"].oneOfType([index["default"].shape({
736
737
  // Update docgen if changed
737
- text: index$1["default"].string.isRequired,
738
- icon: index$1["default"].oneOfType([index$1["default"].func, index$1["default"].object]),
739
- loading: index$1["default"].bool,
738
+ text: index["default"].string.isRequired,
739
+ icon: index["default"].oneOfType([index["default"].func, index["default"].object]),
740
+ loading: index["default"].bool,
740
741
  // inline edit version properties
741
- editableLabel: index$1["default"].string,
742
+ editableLabel: index["default"].string,
742
743
  // .isRequired.if(editInPlaceRequired),
743
- id: index$1["default"].string,
744
+ id: index["default"].string,
744
745
  // .isRequired.if(editInPlaceRequired),
745
- onCancel: index$1["default"].func,
746
- onChange: index$1["default"].func,
747
- onSave: index$1["default"].func,
748
- cancelDescription: index$1["default"].string,
746
+ onCancel: index["default"].func,
747
+ onChange: index["default"].func,
748
+ onSave: index["default"].func,
749
+ cancelDescription: index["default"].string,
749
750
  //.isRequired.if(editInPlaceRequired),
750
- editDescription: index$1["default"].string,
751
+ editDescription: index["default"].string,
751
752
  // .isRequired.if(editInPlaceRequired),
752
- saveDescription: index$1["default"].string //.isRequired.if(editInPlaceRequired),
753
+ saveDescription: index["default"].string //.isRequired.if(editInPlaceRequired),
753
754
  // Update docgen if changed
754
- }), index$1["default"].string, index$1["default"].shape({
755
- content: index$1["default"].node.isRequired,
756
- breadcrumbContent: index$1["default"].node,
757
- asText: index$1["default"].string.isRequired
755
+ }), index["default"].string, index["default"].shape({
756
+ content: index["default"].node.isRequired,
757
+ breadcrumbContent: index["default"].node,
758
+ asText: index["default"].string.isRequired
758
759
  })]),
759
760
  /**
760
761
  * Specifies if the PageHeader should appear without a background color, and defaults to the preferred `false` (a background color is shown).
761
762
  * Note that when `true` some parts of the header still gain a background if and when they stick to the top of the PageHeader on scroll.
762
763
  */
763
- withoutBackground: index$1["default"].bool
764
+ withoutBackground: index["default"].bool
764
765
  }, deprecatedProps);
765
766
  exports.PageHeader.displayName = componentName;
766
767
 
@@ -11,14 +11,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
12
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
13
13
  var React = require('react');
14
- var index$1 = require('../../node_modules/prop-types/index.js');
15
- var index = require('../../node_modules/classnames/index.js');
14
+ var index = require('../../node_modules/prop-types/index.js');
15
+ var cx = require('classnames');
16
16
  var react = require('@carbon/react');
17
17
  var EditInPlace = require('../EditInPlace/EditInPlace.js');
18
18
 
19
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
20
 
21
21
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
22
+ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
22
23
 
23
24
  var _excluded = ["text", "content", "loading", "icon", "asText", "onChange", "onSave", "editDescription", "editableLabel", "cancelDescription", "saveDescription"];
24
25
 
@@ -78,7 +79,7 @@ var PageHeaderTitle = function PageHeaderTitle(_ref) {
78
79
  titleText = asText;
79
80
  }
80
81
  return /*#__PURE__*/React__default["default"].createElement("h1", {
81
- className: index["default"]("".concat(blockClass, "__title"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__title--editable"), isEditable), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__title--fades"), hasBreadcrumbRow)),
82
+ className: cx__default["default"]("".concat(blockClass, "__title"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__title--editable"), isEditable), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__title--fades"), hasBreadcrumbRow)),
82
83
  title: titleText
83
84
  }, titleInnards);
84
85
  };
@@ -88,11 +89,11 @@ var editInPlaceRequired = function editInPlaceRequired(_ref2) {
88
89
  };
89
90
  PageHeaderTitle.propTypes = {
90
91
  // passed from page header
91
- blockClass: index$1["default"].string.isRequired,
92
+ blockClass: index["default"].string.isRequired,
92
93
  /**
93
94
  * controlled from within page header
94
95
  */
95
- hasBreadcrumbRow: index$1["default"].bool,
96
+ hasBreadcrumbRow: index["default"].bool,
96
97
  /**
97
98
  * An optional page title supplied as a string or object with the following attributes: text, icon, loading
98
99
  *
@@ -113,24 +114,24 @@ PageHeaderTitle.propTypes = {
113
114
  * - breadcrumbContent: version of content used in the breadcrumb on scroll. If not supplied
114
115
  * - asText: String based representation of the title
115
116
  */
116
- title: index$1["default"].oneOfType([index$1["default"].shape({
117
+ title: index["default"].oneOfType([index["default"].shape({
117
118
  // Update docgen if changed
118
- text: index$1["default"].string.isRequired,
119
- icon: index$1["default"].oneOfType([index$1["default"].func, index$1["default"].object]),
120
- loading: index$1["default"].bool,
119
+ text: index["default"].string.isRequired,
120
+ icon: index["default"].oneOfType([index["default"].func, index["default"].object]),
121
+ loading: index["default"].bool,
121
122
  // inline edit version properties
122
- editDescription: index$1["default"].string.isRequired.if(editInPlaceRequired),
123
- editableLabel: index$1["default"].string.isRequired.if(editInPlaceRequired),
124
- id: index$1["default"].string.isRequired.if(editInPlaceRequired),
125
- onChange: index$1["default"].func,
126
- onSave: index$1["default"].func,
127
- cancelDescription: index$1["default"].string.isRequired.if(editInPlaceRequired),
128
- saveDescription: index$1["default"].string.isRequired.if(editInPlaceRequired)
123
+ editDescription: index["default"].string.isRequired.if(editInPlaceRequired),
124
+ editableLabel: index["default"].string.isRequired.if(editInPlaceRequired),
125
+ id: index["default"].string.isRequired.if(editInPlaceRequired),
126
+ onChange: index["default"].func,
127
+ onSave: index["default"].func,
128
+ cancelDescription: index["default"].string.isRequired.if(editInPlaceRequired),
129
+ saveDescription: index["default"].string.isRequired.if(editInPlaceRequired)
129
130
  // Update docgen if changed
130
- }), index$1["default"].string, index$1["default"].shape({
131
- content: index$1["default"].node.isRequired,
132
- breadcrumbContent: index$1["default"].node,
133
- asText: index$1["default"].string.isRequired
131
+ }), index["default"].string, index["default"].shape({
132
+ content: index["default"].node.isRequired,
133
+ breadcrumbContent: index["default"].node,
134
+ asText: index["default"].string.isRequired
134
135
  })])
135
136
  };
136
137
 
@@ -11,7 +11,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
12
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
13
13
  var React = require('react');
14
- var index = require('../../node_modules/classnames/index.js');
14
+ var cx = require('classnames');
15
15
  var settings = require('../../settings.js');
16
16
  var scrollableAncestor = require('../../global/js/utils/scrollableAncestor.js');
17
17
  var react = require('@carbon/react');
@@ -19,6 +19,7 @@ var react = require('@carbon/react');
19
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
20
 
21
21
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
22
+ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
22
23
 
23
24
  var _SkeletonText;
24
25
  var blockClass = "".concat(settings.pkg.prefix, "--page-header");
@@ -187,7 +188,7 @@ var utilGetBreadcrumbItemForTitle = function utilGetBreadcrumbItemForTitle(block
187
188
  if (breadcrumbTitle) {
188
189
  breadcrumbTitle.key = 'breadcrumb-title';
189
190
  breadcrumbTitle.isCurrentPage = true;
190
- breadcrumbTitle.className = index["default"](["".concat(blockClass, "__breadcrumb-title"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__breadcrumb-title--pre-collapsed"), collapseTitle)]);
191
+ breadcrumbTitle.className = cx__default["default"](["".concat(blockClass, "__breadcrumb-title"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__breadcrumb-title--pre-collapsed"), collapseTitle)]);
191
192
  }
192
193
  return breadcrumbTitle;
193
194
  }