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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (391) hide show
  1. package/css/index-full-carbon.css +700 -163
  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 +85 -22
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +700 -163
  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 +660 -152
  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.d.ts +11 -0
  30. package/es/components/BigNumbers/BigNumbers.js +238 -0
  31. package/es/components/BigNumbers/constants.d.ts +13 -0
  32. package/es/components/BigNumbers/constants.js +67 -0
  33. package/es/components/BigNumbers/index.d.ts +1 -0
  34. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +1 -1
  35. package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +1 -1
  36. package/es/components/Card/Card.js +1 -1
  37. package/es/components/Card/CardFooter.js +1 -1
  38. package/es/components/Card/CardHeader.js +1 -1
  39. package/es/components/Carousel/Carousel.js +1 -1
  40. package/es/components/Carousel/CarouselItem.js +1 -1
  41. package/es/components/Cascade/Cascade.js +1 -1
  42. package/es/components/Checklist/Checklist.js +1 -1
  43. package/es/components/Checklist/ChecklistChart.js +1 -1
  44. package/es/components/Checklist/ChecklistIcon.js +1 -1
  45. package/es/components/Coachmark/Coachmark.js +1 -1
  46. package/es/components/Coachmark/CoachmarkDragbar.js +1 -1
  47. package/es/components/Coachmark/CoachmarkHeader.js +1 -1
  48. package/es/components/Coachmark/CoachmarkOverlay.js +1 -1
  49. package/es/components/Coachmark/CoachmarkTagline.js +1 -1
  50. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
  51. package/es/components/CoachmarkButton/CoachmarkButton.js +1 -1
  52. package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
  53. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +1 -1
  54. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -1
  55. package/es/components/CoachmarkStack/CoachmarkStack.js +1 -1
  56. package/es/components/CoachmarkStack/CoachmarkStackHome.js +1 -1
  57. package/es/components/ComboButton/ComboButton.js +1 -1
  58. package/es/components/CreateFullPage/CreateFullPage.js +1 -1
  59. package/es/components/CreateFullPage/CreateFullPageStep.js +1 -1
  60. package/es/components/CreateInfluencer/CreateInfluencer.js +1 -1
  61. package/es/components/CreateModal/CreateModal.js +1 -1
  62. package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
  63. package/es/components/CreateTearsheet/CreateTearsheet.js +8 -2
  64. package/es/components/CreateTearsheet/CreateTearsheetDivider.js +1 -1
  65. package/es/components/CreateTearsheet/CreateTearsheetStep.js +1 -1
  66. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
  67. package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -1
  68. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +5 -4
  69. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +4 -3
  70. package/es/components/DataSpreadsheet/utils/checkForHoldingKey.d.ts +1 -0
  71. package/es/components/DataSpreadsheet/utils/checkForHoldingKey.js +17 -0
  72. package/es/components/Datagrid/Datagrid/Datagrid.js +10 -3
  73. package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +3 -1
  74. package/es/components/Datagrid/Datagrid/DatagridContent.js +7 -3
  75. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +8 -4
  76. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +9 -5
  77. package/es/components/Datagrid/Datagrid/DatagridRefBody.js +1 -1
  78. package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -15
  79. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -1
  80. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +1 -1
  81. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
  82. package/es/components/Datagrid/Datagrid/DatagridToolbar.d.ts +10 -1
  83. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +22 -5
  84. package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -1
  85. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
  86. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -1
  87. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -1
  88. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +39 -16
  89. package/es/components/Datagrid/Datagrid/addons/Filtering/constants.d.ts +4 -1
  90. package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +5 -1
  91. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +102 -6
  92. package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +12 -1
  93. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
  94. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +1 -1
  95. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
  96. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
  97. package/es/components/Datagrid/useActionsColumn.js +1 -1
  98. package/es/components/Datagrid/useColumnCenterAlign.js +1 -1
  99. package/es/components/Datagrid/useColumnRightAlign.js +1 -1
  100. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
  101. package/es/components/Datagrid/useFiltering.js +48 -47
  102. package/es/components/Datagrid/useFloatingScroll.js +1 -1
  103. package/es/components/Datagrid/useInlineEdit.js +1 -1
  104. package/es/components/Datagrid/useNestedRowExpander.js +1 -1
  105. package/es/components/Datagrid/useNestedRows.js +1 -1
  106. package/es/components/Datagrid/useRowExpander.js +1 -1
  107. package/es/components/Datagrid/useSelectAllToggle.js +6 -4
  108. package/es/components/Datagrid/useSelectRows.js +2 -2
  109. package/es/components/Datagrid/useSortableColumns.js +1 -1
  110. package/es/components/Datagrid/useStickyColumn.js +1 -1
  111. package/es/components/DelimitedList/DelimitedList.js +1 -1
  112. package/es/components/EditFullPage/EditFullPage.js +1 -1
  113. package/es/components/EditInPlace/EditInPlace.js +1 -1
  114. package/es/components/EditSidePanel/EditSidePanel.js +1 -1
  115. package/es/components/EditTearsheet/EditTearsheet.js +1 -1
  116. package/es/components/EditTearsheet/EditTearsheetForm.js +1 -1
  117. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -1
  118. package/es/components/EditUpdateCards/EditUpdateCards.js +1 -1
  119. package/es/components/EmptyStates/EmptyState.js +1 -1
  120. package/es/components/EmptyStates/EmptyStateContent.js +1 -1
  121. package/es/components/EmptyStates/EmptyStateV2.js +1 -1
  122. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  123. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  124. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  125. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  126. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  127. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  128. package/es/components/EmptyStates/assets/ErrorIllustration.js +1 -1
  129. package/es/components/EmptyStates/assets/NoDataIllustration.js +1 -1
  130. package/es/components/EmptyStates/assets/NoTagsIllustration.js +1 -1
  131. package/es/components/EmptyStates/assets/NotFoundIllustration.js +1 -1
  132. package/es/components/EmptyStates/assets/NotificationsIllustration.js +1 -1
  133. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -1
  134. package/es/components/ExportModal/ExportModal.js +1 -1
  135. package/es/components/FilterSummary/FilterSummary.js +1 -1
  136. package/es/components/FullPageError/FullPageError.js +1 -1
  137. package/es/components/Guidebanner/Guidebanner.js +1 -1
  138. package/es/components/Guidebanner/GuidebannerElement.js +1 -1
  139. package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
  140. package/es/components/Guidebanner/GuidebannerElementLink.js +1 -1
  141. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
  142. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
  143. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
  144. package/es/components/ImportModal/ImportModal.js +1 -1
  145. package/es/components/InlineTip/InlineTip.js +1 -1
  146. package/es/components/InlineTip/InlineTipButton.js +1 -1
  147. package/es/components/InlineTip/InlineTipLink.js +1 -1
  148. package/es/components/InterstitialScreen/InterstitialScreen.js +1 -1
  149. package/es/components/InterstitialScreenView/InterstitialScreenView.js +1 -1
  150. package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +1 -1
  151. package/es/components/NonLinearReading/NonLinearReading.js +1 -1
  152. package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
  153. package/es/components/OptionsTile/OptionsTile.js +1 -1
  154. package/es/components/PageHeader/PageHeader.js +1 -1
  155. package/es/components/PageHeader/PageHeaderTitle.js +1 -1
  156. package/es/components/PageHeader/PageHeaderUtils.js +1 -1
  157. package/es/components/RemoveModal/RemoveModal.js +1 -1
  158. package/es/components/Saving/Saving.js +1 -1
  159. package/es/components/SearchBar/SearchBar.js +1 -1
  160. package/es/components/SidePanel/SidePanel.js +14 -7
  161. package/es/components/SidePanel/motion/variants.d.ts +39 -12
  162. package/es/components/SidePanel/motion/variants.js +42 -11
  163. package/es/components/SimpleHeader/SimpleHeader.js +1 -1
  164. package/es/components/StatusIcon/StatusIcon.js +1 -1
  165. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
  166. package/es/components/StringFormatter/StringFormatter.d.ts +6 -0
  167. package/es/components/StringFormatter/StringFormatter.js +79 -0
  168. package/es/components/StringFormatter/index.d.ts +1 -0
  169. package/es/components/StringFormatter/utils/enums.d.ts +14 -0
  170. package/es/components/StringFormatter/utils/enums.js +23 -0
  171. package/es/components/TagSet/TagSet.js +1 -1
  172. package/es/components/TagSet/TagSetModal.js +1 -1
  173. package/es/components/TagSet/TagSetOverflow.js +1 -1
  174. package/es/components/Tearsheet/TearsheetShell.js +13 -8
  175. package/es/components/Toolbar/Toolbar.js +1 -1
  176. package/es/components/Toolbar/ToolbarButton.js +1 -1
  177. package/es/components/Toolbar/ToolbarGroup.js +1 -1
  178. package/es/components/TooltipTrigger/TooltipTrigger.js +1 -1
  179. package/es/components/TruncatedList/TruncatedList.js +1 -1
  180. package/es/components/UserAvatar/UserAvatar.js +59 -43
  181. package/es/components/UserProfileImage/UserProfileImage.js +1 -1
  182. package/es/components/WebTerminal/WebTerminal.js +1 -1
  183. package/es/components/WebTerminal/WebTerminalContentWrapper.js +1 -1
  184. package/es/components/_Canary/Canary.js +1 -1
  185. package/es/components/index.d.ts +2 -0
  186. package/es/global/js/hooks/index.d.ts +1 -0
  187. package/es/global/js/hooks/useIsomorphicEffect.d.ts +2 -0
  188. package/es/global/js/hooks/useIsomorphicEffect.js +14 -0
  189. package/es/global/js/package-settings.d.ts +2 -0
  190. package/es/global/js/package-settings.js +2 -0
  191. package/es/index.js +2 -0
  192. package/es/node_modules/prop-types/index.js +1 -1
  193. package/es/settings.d.ts +2 -0
  194. package/lib/_virtual/index.js +2 -2
  195. package/lib/components/APIKeyModal/APIKeyModal.js +50 -49
  196. package/lib/components/AboutModal/AboutModal.js +17 -16
  197. package/lib/components/ActionBar/ActionBar.js +16 -15
  198. package/lib/components/ActionBar/ActionBarItem.js +8 -7
  199. package/lib/components/ActionBar/ActionBarOverflowItems.js +9 -8
  200. package/lib/components/ActionSet/ActionSet.js +4 -3
  201. package/lib/components/AddSelect/AddSelectBody.js +67 -66
  202. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +7 -6
  203. package/lib/components/AddSelect/AddSelectFilter.js +19 -18
  204. package/lib/components/AddSelect/AddSelectList.js +7 -6
  205. package/lib/components/AddSelect/AddSelectRow.js +33 -32
  206. package/lib/components/BigNumbers/BigNumbers.d.ts +11 -0
  207. package/lib/components/BigNumbers/BigNumbers.js +245 -0
  208. package/lib/components/BigNumbers/constants.d.ts +13 -0
  209. package/lib/components/BigNumbers/constants.js +76 -0
  210. package/lib/components/BigNumbers/index.d.ts +1 -0
  211. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +20 -19
  212. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +3 -2
  213. package/lib/components/Card/Card.js +5 -4
  214. package/lib/components/Card/CardFooter.js +22 -21
  215. package/lib/components/Card/CardHeader.js +27 -26
  216. package/lib/components/Carousel/Carousel.js +13 -12
  217. package/lib/components/Carousel/CarouselItem.js +6 -5
  218. package/lib/components/Cascade/Cascade.js +9 -8
  219. package/lib/components/Checklist/Checklist.js +33 -32
  220. package/lib/components/Checklist/ChecklistChart.js +7 -6
  221. package/lib/components/Checklist/ChecklistIcon.js +7 -6
  222. package/lib/components/Coachmark/Coachmark.js +21 -20
  223. package/lib/components/Coachmark/CoachmarkDragbar.js +10 -9
  224. package/lib/components/Coachmark/CoachmarkHeader.js +8 -7
  225. package/lib/components/Coachmark/CoachmarkOverlay.js +10 -9
  226. package/lib/components/Coachmark/CoachmarkTagline.js +8 -7
  227. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +7 -6
  228. package/lib/components/CoachmarkButton/CoachmarkButton.js +6 -5
  229. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +11 -10
  230. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +8 -7
  231. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -15
  232. package/lib/components/CoachmarkStack/CoachmarkStack.js +20 -19
  233. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +17 -16
  234. package/lib/components/ComboButton/ComboButton.js +7 -6
  235. package/lib/components/CreateFullPage/CreateFullPage.js +29 -28
  236. package/lib/components/CreateFullPage/CreateFullPageStep.js +18 -17
  237. package/lib/components/CreateInfluencer/CreateInfluencer.js +13 -12
  238. package/lib/components/CreateModal/CreateModal.js +16 -15
  239. package/lib/components/CreateSidePanel/CreateSidePanel.js +21 -20
  240. package/lib/components/CreateTearsheet/CreateTearsheet.js +27 -20
  241. package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +5 -4
  242. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +19 -18
  243. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +21 -20
  244. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +22 -21
  245. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +60 -58
  246. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +42 -40
  247. package/lib/components/DataSpreadsheet/utils/checkForHoldingKey.d.ts +1 -0
  248. package/lib/components/DataSpreadsheet/utils/checkForHoldingKey.js +21 -0
  249. package/lib/components/Datagrid/Datagrid/Datagrid.js +15 -7
  250. package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +3 -1
  251. package/lib/components/Datagrid/Datagrid/DatagridContent.js +37 -32
  252. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +8 -3
  253. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +14 -9
  254. package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -2
  255. package/lib/components/Datagrid/Datagrid/DatagridRow.js +20 -15
  256. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -3
  257. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +14 -13
  258. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +3 -2
  259. package/lib/components/Datagrid/Datagrid/DatagridToolbar.d.ts +10 -1
  260. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +24 -6
  261. package/lib/components/Datagrid/Datagrid/DraggableElement.js +13 -12
  262. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +15 -14
  263. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +25 -24
  264. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +27 -26
  265. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +37 -14
  266. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.d.ts +4 -1
  267. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +6 -0
  268. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +98 -2
  269. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +11 -0
  270. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +15 -14
  271. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +20 -19
  272. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +9 -8
  273. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
  274. package/lib/components/Datagrid/useActionsColumn.js +7 -6
  275. package/lib/components/Datagrid/useColumnCenterAlign.js +3 -2
  276. package/lib/components/Datagrid/useColumnRightAlign.js +3 -2
  277. package/lib/components/Datagrid/useDefaultStringRenderer.js +4 -3
  278. package/lib/components/Datagrid/useFiltering.js +46 -45
  279. package/lib/components/Datagrid/useFloatingScroll.js +6 -2
  280. package/lib/components/Datagrid/useInlineEdit.js +4 -3
  281. package/lib/components/Datagrid/useNestedRowExpander.js +4 -3
  282. package/lib/components/Datagrid/useNestedRows.js +6 -2
  283. package/lib/components/Datagrid/useRowExpander.js +3 -2
  284. package/lib/components/Datagrid/useSelectAllToggle.js +7 -4
  285. package/lib/components/Datagrid/useSelectRows.js +5 -4
  286. package/lib/components/Datagrid/useSortableColumns.js +3 -2
  287. package/lib/components/Datagrid/useStickyColumn.js +4 -3
  288. package/lib/components/DelimitedList/DelimitedList.js +8 -7
  289. package/lib/components/EditFullPage/EditFullPage.js +6 -5
  290. package/lib/components/EditInPlace/EditInPlace.js +23 -22
  291. package/lib/components/EditSidePanel/EditSidePanel.js +23 -22
  292. package/lib/components/EditTearsheet/EditTearsheet.js +18 -17
  293. package/lib/components/EditTearsheet/EditTearsheetForm.js +11 -10
  294. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +6 -5
  295. package/lib/components/EditUpdateCards/EditUpdateCards.js +31 -30
  296. package/lib/components/EmptyStates/EmptyState.js +20 -19
  297. package/lib/components/EmptyStates/EmptyStateContent.js +16 -15
  298. package/lib/components/EmptyStates/EmptyStateV2.js +20 -19
  299. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +18 -17
  300. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +18 -17
  301. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +18 -17
  302. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +18 -17
  303. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +18 -17
  304. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +18 -17
  305. package/lib/components/EmptyStates/assets/ErrorIllustration.js +7 -6
  306. package/lib/components/EmptyStates/assets/NoDataIllustration.js +7 -6
  307. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +7 -6
  308. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +7 -6
  309. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +7 -6
  310. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +7 -6
  311. package/lib/components/ExportModal/ExportModal.js +30 -29
  312. package/lib/components/FilterSummary/FilterSummary.js +13 -12
  313. package/lib/components/FullPageError/FullPageError.js +13 -12
  314. package/lib/components/Guidebanner/Guidebanner.js +20 -19
  315. package/lib/components/Guidebanner/GuidebannerElement.js +8 -7
  316. package/lib/components/Guidebanner/GuidebannerElementButton.js +8 -7
  317. package/lib/components/Guidebanner/GuidebannerElementLink.js +6 -5
  318. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +11 -10
  319. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +11 -10
  320. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +11 -10
  321. package/lib/components/ImportModal/ImportModal.js +32 -31
  322. package/lib/components/InlineTip/InlineTip.js +21 -20
  323. package/lib/components/InlineTip/InlineTipButton.js +6 -5
  324. package/lib/components/InlineTip/InlineTipLink.js +6 -5
  325. package/lib/components/InterstitialScreen/InterstitialScreen.js +13 -12
  326. package/lib/components/InterstitialScreenView/InterstitialScreenView.js +7 -6
  327. package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +7 -6
  328. package/lib/components/NonLinearReading/NonLinearReading.js +9 -8
  329. package/lib/components/NotificationsPanel/NotificationsPanel.js +59 -58
  330. package/lib/components/OptionsTile/OptionsTile.js +21 -20
  331. package/lib/components/PageHeader/PageHeader.js +74 -73
  332. package/lib/components/PageHeader/PageHeaderTitle.js +21 -20
  333. package/lib/components/PageHeader/PageHeaderUtils.js +3 -2
  334. package/lib/components/RemoveModal/RemoveModal.js +22 -21
  335. package/lib/components/Saving/Saving.js +18 -17
  336. package/lib/components/SearchBar/SearchBar.js +20 -19
  337. package/lib/components/SidePanel/SidePanel.js +58 -50
  338. package/lib/components/SidePanel/motion/variants.d.ts +39 -12
  339. package/lib/components/SidePanel/motion/variants.js +42 -10
  340. package/lib/components/SimpleHeader/SimpleHeader.js +17 -16
  341. package/lib/components/StatusIcon/StatusIcon.js +9 -8
  342. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +7 -6
  343. package/lib/components/StringFormatter/StringFormatter.d.ts +6 -0
  344. package/lib/components/StringFormatter/StringFormatter.js +86 -0
  345. package/lib/components/StringFormatter/index.d.ts +1 -0
  346. package/lib/components/StringFormatter/utils/enums.d.ts +14 -0
  347. package/lib/components/StringFormatter/utils/enums.js +27 -0
  348. package/lib/components/TagSet/TagSet.js +21 -20
  349. package/lib/components/TagSet/TagSetModal.js +13 -12
  350. package/lib/components/TagSet/TagSetOverflow.js +18 -17
  351. package/lib/components/Tearsheet/TearsheetShell.js +42 -36
  352. package/lib/components/Toolbar/Toolbar.js +7 -6
  353. package/lib/components/Toolbar/ToolbarButton.js +9 -8
  354. package/lib/components/Toolbar/ToolbarGroup.js +6 -5
  355. package/lib/components/TooltipTrigger/TooltipTrigger.js +6 -5
  356. package/lib/components/TruncatedList/TruncatedList.js +14 -13
  357. package/lib/components/UserAvatar/UserAvatar.js +61 -44
  358. package/lib/components/UserProfileImage/UserProfileImage.js +3 -2
  359. package/lib/components/WebTerminal/WebTerminal.js +14 -13
  360. package/lib/components/WebTerminal/WebTerminalContentWrapper.js +5 -4
  361. package/lib/components/_Canary/Canary.js +6 -5
  362. package/lib/components/index.d.ts +2 -0
  363. package/lib/global/js/hooks/index.d.ts +1 -0
  364. package/lib/global/js/hooks/useIsomorphicEffect.d.ts +2 -0
  365. package/lib/global/js/hooks/useIsomorphicEffect.js +18 -0
  366. package/lib/global/js/package-settings.d.ts +2 -0
  367. package/lib/global/js/package-settings.js +2 -0
  368. package/lib/index.js +10 -0
  369. package/lib/node_modules/prop-types/index.js +1 -1
  370. package/lib/settings.d.ts +2 -0
  371. package/package.json +8 -7
  372. package/scss/components/BigNumbers/_big-numbers.scss +151 -0
  373. package/scss/components/BigNumbers/_carbon-imports.scss +11 -0
  374. package/scss/components/BigNumbers/_index-with-carbon.scss +9 -0
  375. package/scss/components/BigNumbers/_index.scss +8 -0
  376. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +0 -1
  377. package/scss/components/Datagrid/styles/_datagrid.scss +61 -4
  378. package/scss/components/FullPageError/_full-page-error.scss +2 -2
  379. package/scss/components/SidePanel/_side-panel.scss +9 -2
  380. package/scss/components/StringFormatter/_carbon-imports.scss +10 -0
  381. package/scss/components/StringFormatter/_index-with-carbon.scss +9 -0
  382. package/scss/components/StringFormatter/_index.scss +8 -0
  383. package/scss/components/StringFormatter/_string-formatter.scss +97 -0
  384. package/scss/components/Tearsheet/_tearsheet.scss +38 -7
  385. package/scss/components/UserAvatar/_user-avatar.scss +40 -0
  386. package/scss/components/_index-with-carbon.scss +2 -0
  387. package/scss/components/_index.scss +2 -0
  388. package/es/_virtual/index2.js +0 -10
  389. package/es/node_modules/classnames/index.js +0 -70
  390. package/lib/_virtual/index2.js +0 -14
  391. package/lib/node_modules/classnames/index.js +0 -74
@@ -12,8 +12,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
12
12
  var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
13
13
  var React = require('react');
14
14
  var react = require('@carbon/react');
15
- var index = require('../../node_modules/classnames/index.js');
16
- var index$1 = require('../../node_modules/prop-types/index.js');
15
+ var cx = require('classnames');
16
+ var index = require('../../node_modules/prop-types/index.js');
17
17
  var icons = require('@carbon/react/icons');
18
18
  var settings = require('../../settings.js');
19
19
  var devtools = require('../../global/js/utils/devtools.js');
@@ -21,6 +21,7 @@ var devtools = require('../../global/js/utils/devtools.js');
21
21
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
22
 
23
23
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
24
+ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
24
25
 
25
26
  var _Close, _Checkmark, _Edit;
26
27
  var _excluded = ["cancelLabel", "editAlwaysVisible", "editLabel", "id", "inheritTypography", "invalid", "invalidLabel", "invalidText", "labelText", "onCancel", "onChange", "onSave", "saveLabel", "size", "tooltipAlignment", "value"];
@@ -147,7 +148,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
147
148
  return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
148
149
  ref: ref
149
150
  }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React__default["default"].createElement("div", {
150
- className: index["default"](blockClass, "".concat(blockClass, "--").concat(size), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--focused"), focused), "".concat(blockClass, "--invalid"), invalid), "".concat(blockClass, "--inherit-type"), inheritTypography), "".concat(blockClass, "--overflows"), inputRef.current && inputRef.current.scrollWidth > inputRef.current.offsetWidth)),
151
+ className: cx__default["default"](blockClass, "".concat(blockClass, "--").concat(size), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--focused"), focused), "".concat(blockClass, "--invalid"), invalid), "".concat(blockClass, "--inherit-type"), inheritTypography), "".concat(blockClass, "--overflows"), inputRef.current && inputRef.current.scrollWidth > inputRef.current.offsetWidth)),
151
152
  onFocus: onFocusHandler,
152
153
  onBlur: onBlurHandler
153
154
  }, /*#__PURE__*/React__default["default"].createElement("label", {
@@ -155,7 +156,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
155
156
  htmlFor: id
156
157
  }, labelText), /*#__PURE__*/React__default["default"].createElement("input", {
157
158
  id: id,
158
- className: index["default"]("".concat(blockClass, "__text-input"), "".concat(settings.carbon.prefix, "--text-input"), "".concat(settings.carbon.prefix, "--text-input--").concat(size)),
159
+ className: cx__default["default"]("".concat(blockClass, "__text-input"), "".concat(settings.carbon.prefix, "--text-input"), "".concat(settings.carbon.prefix, "--text-input--").concat(size)),
159
160
  type: "text",
160
161
  value: value,
161
162
  onChange: onChangeHandler,
@@ -196,7 +197,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
196
197
  size: 16
197
198
  })))) : /*#__PURE__*/React__default["default"].createElement(react.IconButton, {
198
199
  align: tipAlignments.edit,
199
- className: index["default"]("".concat(blockClass, "__btn"), "".concat(blockClass, "__btn-edit"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__btn-edit--always-visible"), editAlwaysVisible)),
200
+ className: cx__default["default"]("".concat(blockClass, "__btn"), "".concat(blockClass, "__btn-edit"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__btn-edit--always-visible"), editAlwaysVisible)),
200
201
  size: size,
201
202
  label: editLabel,
202
203
  onClick: onFocusHandler,
@@ -216,27 +217,27 @@ var deprecatedProps = {
216
217
  * **Deprecated**
217
218
  * invalidLabel was misnamed, using invalidText to match Carbon
218
219
  */
219
- invalidText: index$1["default"].string
220
+ invalidText: index["default"].string
220
221
  };
221
- var alignPropType = index$1["default"].oneOf(['top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right', 'left', 'right']);
222
+ var alignPropType = index["default"].oneOf(['top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right', 'left', 'right']);
222
223
  exports.EditInPlace.propTypes = _rollupPluginBabelHelpers.objectSpread2({
223
224
  /**
224
225
  * label for cancel button
225
226
  */
226
- cancelLabel: index$1["default"].string.isRequired,
227
+ cancelLabel: index["default"].string.isRequired,
227
228
  /**
228
229
  * By default the edit icon is shown on hover only.
229
230
  */
230
- editAlwaysVisible: index$1["default"].bool,
231
+ editAlwaysVisible: index["default"].bool,
231
232
  /**
232
233
  /**
233
234
  * label for edit button
234
235
  */
235
- editLabel: index$1["default"].string.isRequired,
236
+ editLabel: index["default"].string.isRequired,
236
237
  /**
237
238
  * Specify a custom id for the input
238
239
  */
239
- id: index$1["default"].string.isRequired,
240
+ id: index["default"].string.isRequired,
240
241
  /**
241
242
  * inheritTypography - causes the text entry field to inherit typography settings
242
243
  * assigned to the container. This is useful when editing titles for instance.
@@ -244,31 +245,31 @@ exports.EditInPlace.propTypes = _rollupPluginBabelHelpers.objectSpread2({
244
245
  * NOTE: The size property limits the vertical size of the input element.
245
246
  * Inherited font's should be selected to fit within the size selected.
246
247
  */
247
- inheritTypography: index$1["default"].bool,
248
+ inheritTypography: index["default"].bool,
248
249
  /**
249
250
  * determines if the input is invalid
250
251
  */
251
- invalid: index$1["default"].bool,
252
+ invalid: index["default"].bool,
252
253
  /**
253
254
  * text that is displayed if the input is invalid
254
255
  */
255
- invalidText: index$1["default"].string,
256
+ invalidText: index["default"].string,
256
257
  /**
257
258
  * Provide the text that will be read by a screen reader when visiting this control
258
259
  */
259
- labelText: index$1["default"].string.isRequired,
260
+ labelText: index["default"].string.isRequired,
260
261
  /**
261
262
  * handler that is called when the cancel button is pressed or when the user removes focus from the input and there is no new value
262
263
  */
263
- onCancel: index$1["default"].func.isRequired,
264
+ onCancel: index["default"].func.isRequired,
264
265
  /**
265
266
  * handler that is called when the input is updated
266
267
  */
267
- onChange: index$1["default"].func.isRequired,
268
+ onChange: index["default"].func.isRequired,
268
269
  /**
269
270
  * handler that is called when the save button is pressed or when the user removes focus from the input if it has a new value
270
271
  */
271
- onSave: index$1["default"].func.isRequired,
272
+ onSave: index["default"].func.isRequired,
272
273
  /**
273
274
  * determines if the input is in readOnly mode
274
275
  */
@@ -280,17 +281,17 @@ exports.EditInPlace.propTypes = _rollupPluginBabelHelpers.objectSpread2({
280
281
  /**
281
282
  * label for save button
282
283
  */
283
- saveLabel: index$1["default"].string.isRequired,
284
+ saveLabel: index["default"].string.isRequired,
284
285
  /**
285
286
  * vertical size of control
286
287
  */
287
- size: index$1["default"].oneOf(['sm', 'md', 'lg']),
288
+ size: index["default"].oneOf(['sm', 'md', 'lg']),
288
289
  /**
289
290
  * tooltipAlignment from the standard tooltip. Default center.
290
291
  *
291
292
  * Can be passed either as one of tooltip options or as an object specifying cancel, edit and save separately
292
293
  */
293
- tooltipAlignment: index$1["default"].oneOfType([alignPropType, index$1["default"].shape({
294
+ tooltipAlignment: index["default"].oneOfType([alignPropType, index["default"].shape({
294
295
  cancel: alignPropType,
295
296
  edit: alignPropType,
296
297
  save: alignPropType
@@ -298,7 +299,7 @@ exports.EditInPlace.propTypes = _rollupPluginBabelHelpers.objectSpread2({
298
299
  /**
299
300
  * current value of the input
300
301
  */
301
- value: index$1["default"].string.isRequired
302
+ value: index["default"].string.isRequired
302
303
  }, deprecatedProps);
303
304
 
304
305
  exports.deprecatedProps = deprecatedProps;
@@ -11,8 +11,8 @@ 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 devtools = require('../../global/js/utils/devtools.js');
17
17
  var settings = require('../../settings.js');
18
18
  var react = require('@carbon/react');
@@ -23,6 +23,7 @@ var SidePanel = require('../SidePanel/SidePanel.js');
23
23
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
24
24
 
25
25
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
26
+ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
26
27
 
27
28
  var _excluded = ["children", "className", "disableSubmit", "id", "formTitle", "formDescription", "onRequestClose", "onRequestSubmit", "open", "placement", "primaryButtonText", "secondaryButtonText", "selectorPrimaryFocus", "selectorPageContent", "size", "slideIn", "subtitle", "title"];
28
29
 
@@ -91,7 +92,7 @@ exports.EditSidePanel = /*#__PURE__*/React__default["default"].forwardRef(functi
91
92
  placement: placement,
92
93
  slideIn: slideIn,
93
94
  animateTitle: false,
94
- className: index["default"](blockClass, className),
95
+ className: cx__default["default"](blockClass, className),
95
96
  size: size,
96
97
  preventCloseOnClickOutside: true,
97
98
  actions: actions
@@ -120,84 +121,84 @@ exports.EditSidePanel.propTypes = {
120
121
  /**
121
122
  * Sets the body content of the create side panel
122
123
  */
123
- children: index$1["default"].oneOfType([index$1["default"].arrayOf(index$1["default"].node), index$1["default"].node]).isRequired,
124
+ children: index["default"].oneOfType([index["default"].arrayOf(index["default"].node), index["default"].node]).isRequired,
124
125
  /**
125
126
  * Provide an optional class to be applied to the containing node.
126
127
  */
127
- className: index$1["default"].string,
128
+ className: index["default"].string,
128
129
  /**
129
130
  * Specifies a boolean for disabling or enabling the primary button. This is important for form validation
130
131
  * Returning `true` prevents the primary button from being clicked until required fields are completed.
131
132
  */
132
- disableSubmit: index$1["default"].bool,
133
+ disableSubmit: index["default"].bool,
133
134
  /**
134
135
  * Specifies an optional field that provides a additional context for a form
135
136
  */
136
- formDescription: index$1["default"].node,
137
+ formDescription: index["default"].node,
137
138
  /**
138
139
  * Specifies a required field that provides a title for a form
139
140
  */
140
- formTitle: index$1["default"].node.isRequired,
141
+ formTitle: index["default"].node.isRequired,
141
142
  /**
142
143
  * Unique identifier
143
144
  */
144
- id: index$1["default"].string,
145
+ id: index["default"].string,
145
146
  /**
146
147
  * Specifies an optional handler which is called when the CreateSidePanel
147
148
  * is closed.
148
149
  */
149
- onRequestClose: index$1["default"].func,
150
+ onRequestClose: index["default"].func,
150
151
  /**
151
152
  * Specifies an optional handler which is called when the CreateSidePanel
152
153
  * primary button is pressed.
153
154
  */
154
- onRequestSubmit: index$1["default"].func,
155
+ onRequestSubmit: index["default"].func,
155
156
  /**
156
157
  * Specifies whether the CreateSidePanel is open or not.
157
158
  */
158
- open: index$1["default"].bool,
159
+ open: index["default"].bool,
159
160
  /**
160
161
  * Determines if the side panel is on the right or left
161
162
  */
162
- placement: index$1["default"].oneOf(['left', 'right']),
163
+ placement: index["default"].oneOf(['left', 'right']),
163
164
  /**
164
165
  * Specifies the primary button's text in the modal.
165
166
  */
166
- primaryButtonText: index$1["default"].string.isRequired,
167
+ primaryButtonText: index["default"].string.isRequired,
167
168
  /**
168
169
  * Specifies the secondary button's text in the modal.
169
170
  */
170
- secondaryButtonText: index$1["default"].string.isRequired,
171
+ secondaryButtonText: index["default"].string.isRequired,
171
172
  /**
172
173
  * This is the selector to the element that contains all of the page content that will shrink if the panel is a slide in.
173
174
  * This prop is required when using the `slideIn` variant of the side panel.
174
175
  */
175
- selectorPageContent: index$1["default"].string.isRequired.if(function (_ref2) {
176
+ selectorPageContent: index["default"].string.isRequired.if(function (_ref2) {
176
177
  var slideIn = _ref2.slideIn;
177
178
  return slideIn;
178
179
  }),
179
180
  /**
180
181
  * Specifies which DOM element in the form should be focused.
181
182
  */
182
- selectorPrimaryFocus: index$1["default"].node.isRequired,
183
+ selectorPrimaryFocus: index["default"].node.isRequired,
183
184
  /**
184
185
  * Sets the size of the side panel
185
186
  */
186
- size: index$1["default"].oneOf(['xs', 'sm', 'md', 'lg', '2xl']),
187
+ size: index["default"].oneOf(['xs', 'sm', 'md', 'lg', '2xl']),
187
188
  /**
188
189
  * Specifies which DOM element in the form should be focused.
189
190
  */
190
- slideIn: index$1["default"].bool,
191
+ slideIn: index["default"].bool,
191
192
  /**
192
193
  * **Experimental:** Provide a `Slug` component to be rendered inside the `SidePanel` component
193
194
  */
194
- slug: index$1["default"].node,
195
+ slug: index["default"].node,
195
196
  /**
196
197
  * The subtitle of the CreateSidePanel is optional and serves to provide more information about the modal.
197
198
  */
198
- subtitle: index$1["default"].node,
199
+ subtitle: index["default"].node,
199
200
  /**
200
201
  * The title of the CreateSidePanel is usually the product or service name.
201
202
  */
202
- title: index$1["default"].node.isRequired
203
+ title: index["default"].node.isRequired
203
204
  };
@@ -11,8 +11,8 @@ 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 settings = require('../../settings.js');
18
18
  var devtools = require('../../global/js/utils/devtools.js');
@@ -21,6 +21,7 @@ var TearsheetShell = require('../Tearsheet/TearsheetShell.js');
21
21
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
22
 
23
23
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
24
+ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
24
25
 
25
26
  var _excluded = ["cancelButtonText", "children", "className", "description", "influencerWidth", "label", "onClose", "open", "submitButtonText", "title", "verticalPosition", "onRequestSubmit", "onFormChange", "sideNavAriaLabel"];
26
27
  var componentName = 'EditTearsheet';
@@ -109,7 +110,7 @@ exports.EditTearsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
109
110
  onClick: onClose,
110
111
  kind: 'ghost'
111
112
  }],
112
- className: index["default"](blockClass, className),
113
+ className: cx__default["default"](blockClass, className),
113
114
  description: description,
114
115
  hasCloseIcon: false,
115
116
  influencer: defaultInfluencer(),
@@ -151,61 +152,61 @@ exports.EditTearsheet.propTypes = {
151
152
  /**
152
153
  * The cancel button text
153
154
  */
154
- cancelButtonText: index$1["default"].string,
155
+ cancelButtonText: index["default"].string,
155
156
  /**
156
157
  * The main content of the tearsheet
157
158
  */
158
- children: index$1["default"].node,
159
+ children: index["default"].node,
159
160
  /**
160
161
  * An optional class or classes to be added to the outermost element.
161
162
  */
162
- className: index$1["default"].string,
163
+ className: index["default"].string,
163
164
  /**
164
165
  * A description of the flow, displayed in the header area of the tearsheet.
165
166
  */
166
- description: index$1["default"].node,
167
+ description: index["default"].node,
167
168
  /**
168
169
  * Used to set the size of the influencer
169
170
  */
170
- influencerWidth: index$1["default"].oneOf(['narrow', 'wide']),
171
+ influencerWidth: index["default"].oneOf(['narrow', 'wide']),
171
172
  /**
172
173
  * A label for the tearsheet, displayed in the header area of the tearsheet
173
174
  * to maintain context for the tearsheet (e.g. as the title changes from page
174
175
  * to page of a multi-page task).
175
176
  */
176
- label: index$1["default"].node,
177
+ label: index["default"].node,
177
178
  /**
178
179
  * An optional handler that is called when the user closes the tearsheet (by
179
180
  * clicking the close button, if enabled, or clicking outside, if enabled).
180
181
  * Returning `false` here prevents the modal from closing.
181
182
  */
182
- onClose: index$1["default"].func,
183
+ onClose: index["default"].func,
183
184
  /**
184
185
  * An optional handler that is called when a user changes forms via clicking
185
186
  * an influencer nav item.
186
187
  * Returns the index of the selected form.
187
188
  */
188
- onFormChange: index$1["default"].func,
189
+ onFormChange: index["default"].func,
189
190
  /**
190
191
  * Specify a handler for submitting the tearsheet.
191
192
  */
192
- onRequestSubmit: index$1["default"].func.isRequired,
193
+ onRequestSubmit: index["default"].func.isRequired,
193
194
  /**
194
195
  * Specifies whether the tearsheet is currently open.
195
196
  */
196
- open: index$1["default"].bool,
197
+ open: index["default"].bool,
197
198
  /**
198
199
  * Specifies the aria label for the SideNav from Carbon UIShell
199
200
  */
200
- sideNavAriaLabel: index$1["default"].string,
201
+ sideNavAriaLabel: index["default"].string,
201
202
  /**
202
203
  * The submit button text
203
204
  */
204
- submitButtonText: index$1["default"].string,
205
+ submitButtonText: index["default"].string,
205
206
  /**
206
207
  * The main title of the tearsheet, displayed in the header area.
207
208
  */
208
- title: index$1["default"].node,
209
+ title: index["default"].node,
209
210
  /**
210
211
  * The position of the top of tearsheet in the viewport. The 'normal'
211
212
  * position (the default) is a short distance down from the top of the
@@ -213,7 +214,7 @@ exports.EditTearsheet.propTypes = {
213
214
  * from below. The 'lower' position provides a little extra room at the top
214
215
  * to allow an action bar navigation or breadcrumbs to also show through.
215
216
  */
216
- verticalPosition: index$1["default"].oneOf(['normal', 'lower'])
217
+ verticalPosition: index["default"].oneOf(['normal', 'lower'])
217
218
  };
218
219
 
219
220
  exports.FormContext = FormContext;
@@ -11,8 +11,8 @@ 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 EditTearsheet = require('./EditTearsheet.js');
18
18
  var settings = require('../../settings.js');
@@ -22,6 +22,7 @@ var useRetrieveFormTitles = require('../../global/js/hooks/useRetrieveFormTitles
22
22
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
23
23
 
24
24
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
25
+ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
25
26
 
26
27
  var _excluded = ["children", "className", "description", "fieldsetLegendText", "hasFieldset", "subtitle", "title"];
27
28
  var componentName = 'EditTearsheetForm';
@@ -49,7 +50,7 @@ exports.EditTearsheetForm = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
49
50
  title: title
50
51
  });
51
52
  return formContext ? /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
52
- className: index["default"](blockClass, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__form--hidden-form"), formNumber !== (formContext === null || formContext === void 0 ? void 0 : formContext.currentForm)), "".concat(blockClass, "__form--visible-form"), formNumber === (formContext === null || formContext === void 0 ? void 0 : formContext.currentForm))),
53
+ className: cx__default["default"](blockClass, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__form--hidden-form"), formNumber !== (formContext === null || formContext === void 0 ? void 0 : formContext.currentForm)), "".concat(blockClass, "__form--visible-form"), formNumber === (formContext === null || formContext === void 0 ? void 0 : formContext.currentForm))),
53
54
  ref: ref
54
55
  }), /*#__PURE__*/React__default["default"].createElement(react.Grid, null, /*#__PURE__*/React__default["default"].createElement(react.Column, {
55
56
  xlg: 12,
@@ -76,21 +77,21 @@ exports.EditTearsheetForm.propTypes = {
76
77
  /**
77
78
  * Content that shows in the tearsheet form
78
79
  */
79
- children: index$1["default"].node,
80
+ children: index["default"].node,
80
81
  /**
81
82
  * Sets an optional className to be added to the tearsheet form
82
83
  */
83
- className: index$1["default"].string,
84
+ className: index["default"].string,
84
85
  /**
85
86
  * Sets an optional description on the form component
86
87
  */
87
- description: index$1["default"].string,
88
+ description: index["default"].string,
88
89
  /**
89
90
  * This is the required legend text that appears above a fieldset html element for accessibility purposes.
90
91
  * You can set the `hasFieldset` prop to false if you have multiple fieldset elements or want to control the children of your Full Page's form content.
91
92
  * Otherwise, use CSS to hide/remove this label text.
92
93
  */
93
- fieldsetLegendText: index$1["default"].string.isRequired.if(function (_ref2) {
94
+ fieldsetLegendText: index["default"].string.isRequired.if(function (_ref2) {
94
95
  var hasFieldset = _ref2.hasFieldset;
95
96
  return !!hasFieldset;
96
97
  }),
@@ -99,13 +100,13 @@ exports.EditTearsheetForm.propTypes = {
99
100
  * and is defaulted to true.
100
101
  * You can set this prop to `false` if you have multiple fieldset elements or want to control the children of your Full Page's form content.
101
102
  */
102
- hasFieldset: index$1["default"].bool,
103
+ hasFieldset: index["default"].bool,
103
104
  /**
104
105
  * Sets an optional subtitle on the form component
105
106
  */
106
- subtitle: index$1["default"].string,
107
+ subtitle: index["default"].string,
107
108
  /**
108
109
  * Sets the title text for a tearsheet form
109
110
  */
110
- title: index$1["default"].node.isRequired
111
+ title: index["default"].node.isRequired
111
112
  };
@@ -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 devtools = require('../../global/js/utils/devtools.js');
17
17
  var settings = require('../../settings.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 = ["children", "className"];
24
25
 
@@ -53,7 +54,7 @@ exports.EditTearsheetNarrow = /*#__PURE__*/React__default["default"].forwardRef(
53
54
  className = _ref.className,
54
55
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
55
56
  return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
56
- className: index["default"](blockClass,
57
+ className: cx__default["default"](blockClass,
57
58
  // Apply the block class to the main HTML element
58
59
  className,
59
60
  // Apply any supplied class names to the main HTML element.
@@ -81,11 +82,11 @@ exports.EditTearsheetNarrow.propTypes = {
81
82
  /**
82
83
  * Provide the contents of the EditTearsheetNarrow.
83
84
  */
84
- children: index$1["default"].node.isRequired,
85
+ children: index["default"].node.isRequired,
85
86
  /**
86
87
  * Provide an optional class to be applied to the containing node.
87
88
  */
88
- className: index$1["default"].string
89
+ className: index["default"].string
89
90
 
90
91
  /* TODO: add types and DocGen for all props. */
91
92
  };
@@ -11,8 +11,8 @@ 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 devtools = require('../../global/js/utils/devtools.js');
17
17
  var settings = require('../../settings.js');
18
18
  var ProductiveCard = require('../ProductiveCard/ProductiveCard.js');
@@ -20,6 +20,7 @@ var ProductiveCard = require('../ProductiveCard/ProductiveCard.js');
20
20
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
21
21
 
22
22
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
23
+ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
23
24
 
24
25
  var _excluded = ["actionIcons", "actionsPlacement", "className", "description", "editChildren", "editMode", "label", "onPrimaryButtonClick", "onSecondaryButtonClick", "previewChildren", "title", "titleSize", "primaryButtonIcon", "primaryButtonText", "secondaryButtonIcon", "secondaryButtonText"];
25
26
  // import { children } from 'cheerio/lib/api/traversing';
@@ -85,7 +86,7 @@ exports.EditUpdateCards = /*#__PURE__*/React__default["default"].forwardRef(func
85
86
  secondaryButtonText: secondaryButtonText
86
87
  };
87
88
  return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
88
- className: index["default"](blockClass,
89
+ className: cx__default["default"](blockClass,
89
90
  // Apply the block class to the main HTML element
90
91
  className, // Apply any supplied class names to the main HTML element.
91
92
  // example: `${blockClass}__template-string-class-${kind}-n-${size}`,
@@ -117,93 +118,93 @@ exports.EditUpdateCards.propTypes = {
117
118
  /**
118
119
  * Icons that are displayed on card. Refer to design documentation for implementation guidelines
119
120
  */
120
- actionIcons: index$1["default"].arrayOf(index$1["default"].shape({
121
- id: index$1["default"].string,
122
- icon: index$1["default"].oneOfType([index$1["default"].func, index$1["default"].object]),
123
- onKeyDown: index$1["default"].func,
124
- onClick: index$1["default"].func,
125
- iconDescription: index$1["default"].string,
126
- href: index$1["default"].string
121
+ actionIcons: index["default"].arrayOf(index["default"].shape({
122
+ id: index["default"].string,
123
+ icon: index["default"].oneOfType([index["default"].func, index["default"].object]),
124
+ onKeyDown: index["default"].func,
125
+ onClick: index["default"].func,
126
+ iconDescription: index["default"].string,
127
+ href: index["default"].string
127
128
  })),
128
129
  /**
129
130
  * Determines if the action icons are on the top or bottom of the card
130
131
  */
131
- actionsPlacement: index$1["default"].oneOf(['top', 'bottom']),
132
+ actionsPlacement: index["default"].oneOf(['top', 'bottom']),
132
133
  /**
133
134
  * Optional label for the top of the card.
134
135
  */
135
- className: index$1["default"].string,
136
+ className: index["default"].string,
136
137
  /**
137
138
  * Optional header description
138
139
  */
139
- description: index$1["default"].string,
140
+ description: index["default"].string,
140
141
  /**
141
142
  * Edit mode children
142
143
  */
143
- editChildren: index$1["default"].node,
144
+ editChildren: index["default"].node,
144
145
  /**
145
146
  * Edit mode
146
147
  */
147
- editMode: index$1["default"].bool,
148
+ editMode: index["default"].bool,
148
149
  /**
149
150
  * Optional label for the top of the card
150
151
  */
151
- label: index$1["default"].string,
152
+ label: index["default"].string,
152
153
  /**
153
154
  * Function that's called from the primary button or action icon
154
155
  */
155
- onPrimaryButtonClick: index$1["default"].func,
156
+ onPrimaryButtonClick: index["default"].func,
156
157
  /**
157
158
  * Function that's called from the secondary button or action icon
158
159
  */
159
- onSecondaryButtonClick: index$1["default"].func,
160
+ onSecondaryButtonClick: index["default"].func,
160
161
  /**
161
162
  * Preview mode children
162
163
  */
163
- previewChildren: index$1["default"].node,
164
+ previewChildren: index["default"].node,
164
165
  /**
165
166
  * Optional prop to allow overriding the icon rendering. Can be a React component class
166
167
  */
167
- primaryButtonIcon: index$1["default"].oneOfType([index$1["default"].func, index$1["default"].object]),
168
+ primaryButtonIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
168
169
  /**
169
170
  * Establishes the kind of button displayed for the primary button
170
171
  */
171
- primaryButtonKind: index$1["default"].oneOf(['primary', 'ghost']),
172
+ primaryButtonKind: index["default"].oneOf(['primary', 'ghost']),
172
173
  /**
173
174
  * Determines if the primary button is on the top or bottom of the card
174
175
  */
175
- primaryButtonPlacement: index$1["default"].oneOf(['top', 'bottom']),
176
+ primaryButtonPlacement: index["default"].oneOf(['top', 'bottom']),
176
177
  /**
177
178
  * The text that's displayed in the primary button
178
179
  */
179
- primaryButtonText: index$1["default"].string,
180
+ primaryButtonText: index["default"].string,
180
181
  /**
181
182
  * Optionally specify an href for your Button to become an <a> element
182
183
  */
183
- secondaryButtonHref: index$1["default"].string,
184
+ secondaryButtonHref: index["default"].string,
184
185
  /**
185
186
  * Optional prop to allow overriding the icon rendering. Can be a React component class
186
187
  */
187
- secondaryButtonIcon: index$1["default"].oneOfType([index$1["default"].func, index$1["default"].object]),
188
+ secondaryButtonIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
188
189
  /**
189
190
  * Establishes the kind of button displayed for the secondary button
190
191
  */
191
- secondaryButtonKind: index$1["default"].oneOf(['secondary', 'ghost']),
192
+ secondaryButtonKind: index["default"].oneOf(['secondary', 'ghost']),
192
193
  /**
193
194
  * Determines if the secondary button is on the top or bottom of the card
194
195
  */
195
- secondaryButtonPlacement: index$1["default"].oneOf(['top', 'bottom']),
196
+ secondaryButtonPlacement: index["default"].oneOf(['top', 'bottom']),
196
197
  /**
197
198
  * The text that's displayed in the secondary button
198
199
  */
199
- secondaryButtonText: index$1["default"].string,
200
+ secondaryButtonText: index["default"].string,
200
201
  /**
201
202
  * Title that's displayed at the top of the card
202
203
  */
203
- title: index$1["default"].string,
204
+ title: index["default"].string,
204
205
  /**
205
206
  * Determines title size
206
207
  */
207
- titleSize: index$1["default"].oneOf(['default', 'large'])
208
+ titleSize: index["default"].oneOf(['default', 'large'])
208
209
  /* TODO: add types and DocGen for all props. */
209
210
  };