@carbon/ibm-products 2.12.1 → 2.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (352) hide show
  1. package/css/index-full-carbon.css +3510 -3234
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -10
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +471 -698
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -4
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +1066 -988
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -8
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +1445 -1435
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -8
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/APIKeyModal/APIKeyDownloader.js +7 -5
  18. package/es/components/APIKeyModal/APIKeyModal.js +7 -5
  19. package/es/components/Checklist/Checklist.docs-page.js +13 -0
  20. package/es/components/Checklist/Checklist.js +292 -0
  21. package/es/components/Checklist/ChecklistChart.js +98 -0
  22. package/es/components/Checklist/ChecklistIcon.js +107 -0
  23. package/es/components/Checklist/index.js +8 -0
  24. package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -1
  25. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +3 -2
  26. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +1 -1
  27. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +20 -6
  28. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +5 -4
  29. package/es/components/FilterSummary/FilterSummary.js +6 -2
  30. package/es/components/ImportModal/ImportModal.js +7 -5
  31. package/es/components/PageHeader/PageHeader.js +1 -1
  32. package/es/components/TagSet/TagSet.js +11 -3
  33. package/es/components/TagSet/TagSetOverflow.js +16 -5
  34. package/es/components/index.js +2 -1
  35. package/es/global/js/hooks/useCreateComponentFocus.js +7 -5
  36. package/es/global/js/hooks/useCreateComponentStepChange.js +28 -17
  37. package/es/global/js/package-settings.js +4 -2
  38. package/es/global/js/utils/story-helper.js +2 -1
  39. package/es/global/js/utils/test-helper.js +28 -17
  40. package/lib/components/APIKeyModal/APIKeyDownloader.js +10 -9
  41. package/lib/components/APIKeyModal/APIKeyModal.docs-page.js +3 -4
  42. package/lib/components/APIKeyModal/APIKeyModal.js +10 -9
  43. package/lib/components/AboutModal/AboutModal.docs-page.js +3 -4
  44. package/lib/components/AboutModal/AboutModal.js +3 -4
  45. package/lib/components/ActionBar/ActionBar.js +3 -4
  46. package/lib/components/ActionBar/ActionBarItem.js +1 -2
  47. package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -4
  48. package/lib/components/ActionSet/ActionSet.js +1 -2
  49. package/lib/components/ActionSet/actions.js +4 -7
  50. package/lib/components/AddSelect/AddSelect.js +3 -4
  51. package/lib/components/AddSelect/AddSelectBody.js +3 -4
  52. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +1 -2
  53. package/lib/components/AddSelect/AddSelectColumn.js +3 -4
  54. package/lib/components/AddSelect/AddSelectFilter.js +3 -4
  55. package/lib/components/AddSelect/AddSelectFormControl.js +1 -2
  56. package/lib/components/AddSelect/AddSelectList.js +1 -2
  57. package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -4
  58. package/lib/components/AddSelect/AddSelectRow.js +3 -4
  59. package/lib/components/AddSelect/AddSelectSidebar.js +1 -2
  60. package/lib/components/AddSelect/AddSelectSort.js +1 -2
  61. package/lib/components/AddSelect/add-select-utils.js +5 -9
  62. package/lib/components/AddSelect/hooks/useFocus.js +1 -2
  63. package/lib/components/AddSelect/hooks/useItemSort.js +2 -3
  64. package/lib/components/AddSelect/hooks/useParentSelect.js +1 -2
  65. package/lib/components/AddSelect/hooks/usePath.js +1 -2
  66. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +3 -4
  67. package/lib/components/ButtonMenu/ButtonMenu.js +1 -2
  68. package/lib/components/ButtonMenu/ButtonMenuItem.js +1 -2
  69. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +3 -4
  70. package/lib/components/Card/Card.js +3 -4
  71. package/lib/components/Card/CardFooter.js +1 -2
  72. package/lib/components/Card/CardHeader.js +1 -2
  73. package/lib/components/Cascade/Cascade.docs-page.js +3 -4
  74. package/lib/components/Cascade/Cascade.js +3 -4
  75. package/lib/components/Checklist/Checklist.docs-page.js +23 -0
  76. package/lib/components/Checklist/Checklist.js +297 -0
  77. package/lib/components/Checklist/ChecklistChart.js +99 -0
  78. package/lib/components/Checklist/ChecklistIcon.js +109 -0
  79. package/lib/components/Checklist/index.js +12 -0
  80. package/lib/components/ComboButton/ComboButton.js +3 -4
  81. package/lib/components/ComboButton/ComboButtonItem/index.js +1 -2
  82. package/lib/components/CreateFullPage/CreateFullPage.docs-page.js +3 -4
  83. package/lib/components/CreateFullPage/CreateFullPage.js +5 -8
  84. package/lib/components/CreateFullPage/CreateFullPageStep.js +3 -4
  85. package/lib/components/CreateInfluencer/CreateInfluencer.js +1 -2
  86. package/lib/components/CreateModal/CreateModal.docs-page.js +3 -4
  87. package/lib/components/CreateModal/CreateModal.js +1 -2
  88. package/lib/components/CreateSidePanel/CreateSidePanel.docs-page.js +3 -4
  89. package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -2
  90. package/lib/components/CreateTearsheet/CreateTearsheet.docs-page.js +3 -4
  91. package/lib/components/CreateTearsheet/CreateTearsheet.js +5 -8
  92. package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +3 -4
  93. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +3 -4
  94. package/lib/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +4 -5
  95. package/lib/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +4 -5
  96. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -2
  97. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +3 -4
  98. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +3 -4
  99. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +3 -4
  100. package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +2 -3
  101. package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +2 -3
  102. package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +2 -3
  103. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +2 -3
  104. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +2 -3
  105. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +2 -3
  106. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +2 -3
  107. package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +2 -3
  108. package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +2 -3
  109. package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +2 -3
  110. package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +2 -3
  111. package/lib/components/DataSpreadsheet/utils/generateData.js +2 -3
  112. package/lib/components/DataSpreadsheet/utils/getCellSize.js +2 -3
  113. package/lib/components/DataSpreadsheet/utils/getSelectionAreaPoints.js +2 -3
  114. package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +2 -3
  115. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +2 -3
  116. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +2 -3
  117. package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +2 -3
  118. package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +2 -3
  119. package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +2 -3
  120. package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +4 -7
  121. package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +2 -3
  122. package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +2 -3
  123. package/lib/components/DataSpreadsheet/utils/selectAllCells.js +2 -3
  124. package/lib/components/Datagrid/Datagrid/Datagrid.js +1 -2
  125. package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -2
  126. package/lib/components/Datagrid/Datagrid/DatagridContent.js +5 -5
  127. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +1 -2
  128. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +1 -2
  129. package/lib/components/Datagrid/Datagrid/DatagridHead.js +1 -2
  130. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -6
  131. package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +1 -2
  132. package/lib/components/Datagrid/Datagrid/DatagridRow.js +1 -2
  133. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -5
  134. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -4
  135. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -2
  136. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +4 -5
  137. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -4
  138. package/lib/components/Datagrid/Datagrid/DraggableElement.js +1 -2
  139. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +3 -4
  140. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +3 -4
  141. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +3 -4
  142. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +3 -4
  143. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -2
  144. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +3 -4
  145. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +2 -3
  146. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +3 -4
  147. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +4 -6
  148. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +5 -8
  149. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +3 -4
  150. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +13 -26
  151. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
  152. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +4 -6
  153. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
  154. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
  155. package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +4 -7
  156. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +2 -3
  157. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -2
  158. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +3 -4
  159. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +4 -6
  160. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +2 -3
  161. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +2 -3
  162. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +2 -3
  163. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +2 -3
  164. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -3
  165. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +26 -13
  166. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +9 -6
  167. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +5 -9
  168. package/lib/components/Datagrid/Datagrid.docs-page.js +4 -5
  169. package/lib/components/Datagrid/Datagrid.stories/CustomizeColumnStory.js +2 -3
  170. package/lib/components/Datagrid/Datagrid.stories/RowSizeDropdownStory.js +2 -3
  171. package/lib/components/Datagrid/Datagrid.stories/SelectAllWithToggleStory.js +2 -3
  172. package/lib/components/Datagrid/Datagrid.stories/common.js +4 -7
  173. package/lib/components/Datagrid/Extensions/ColumnAlignment/ColumnAlignment.docs-page.js +2 -3
  174. package/lib/components/Datagrid/Extensions/ColumnCustomization/ColumnCustomization.docs-page.js +2 -3
  175. package/lib/components/Datagrid/Extensions/EditableCell/EditableCell.docs-page.js +2 -3
  176. package/lib/components/Datagrid/Extensions/ExpandableRow/ExpandableRow.docs-page.js +2 -3
  177. package/lib/components/Datagrid/Extensions/Filtering/Filtering.docs-page.js +2 -3
  178. package/lib/components/Datagrid/Extensions/RowActionButtons/RowActionButtons.docs-page.js +2 -3
  179. package/lib/components/Datagrid/common-column-ids.js +1 -2
  180. package/lib/components/Datagrid/useActionsColumn.js +3 -4
  181. package/lib/components/Datagrid/useColumnCenterAlign.js +1 -2
  182. package/lib/components/Datagrid/useColumnOrder.js +1 -2
  183. package/lib/components/Datagrid/useColumnRightAlign.js +1 -2
  184. package/lib/components/Datagrid/useCustomizeColumns.js +3 -4
  185. package/lib/components/Datagrid/useDatagrid.js +1 -2
  186. package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
  187. package/lib/components/Datagrid/useDisableSelectRows.js +1 -2
  188. package/lib/components/Datagrid/useEditableCell.js +1 -2
  189. package/lib/components/Datagrid/useExpandedRow.js +1 -2
  190. package/lib/components/Datagrid/useFiltering.js +1 -2
  191. package/lib/components/Datagrid/useFlexResize.js +1 -2
  192. package/lib/components/Datagrid/useFloatingScroll.js +1 -2
  193. package/lib/components/Datagrid/useInfiniteScroll.js +1 -2
  194. package/lib/components/Datagrid/useInlineEdit.js +3 -4
  195. package/lib/components/Datagrid/useNestedRowExpander.js +3 -4
  196. package/lib/components/Datagrid/useNestedRows.js +1 -2
  197. package/lib/components/Datagrid/useOnRowClick.js +1 -2
  198. package/lib/components/Datagrid/useParentDimensions.js +1 -2
  199. package/lib/components/Datagrid/useResizeTable.js +1 -2
  200. package/lib/components/Datagrid/useRowExpander.js +3 -4
  201. package/lib/components/Datagrid/useRowIsMouseOver.js +1 -2
  202. package/lib/components/Datagrid/useRowRenderer.js +1 -2
  203. package/lib/components/Datagrid/useRowSize.js +1 -2
  204. package/lib/components/Datagrid/useSelectAllToggle.js +3 -4
  205. package/lib/components/Datagrid/useSelectRows.js +3 -4
  206. package/lib/components/Datagrid/useSkeletonRows.js +1 -2
  207. package/lib/components/Datagrid/useSortableColumns.js +1 -2
  208. package/lib/components/Datagrid/useStickyColumn.js +1 -2
  209. package/lib/components/Datagrid/utils/DatagridActions.js +4 -5
  210. package/lib/components/Datagrid/utils/DatagridPagination.js +2 -3
  211. package/lib/components/Datagrid/utils/Wrapper.js +2 -3
  212. package/lib/components/Datagrid/utils/getArgTypes.js +2 -3
  213. package/lib/components/Datagrid/utils/getAutoSizedColumnWidth.js +2 -3
  214. package/lib/components/Datagrid/utils/getInlineEditColumns.js +3 -5
  215. package/lib/components/Datagrid/utils/makeData.js +3 -6
  216. package/lib/components/EditFullPage/EditFullPage.docs-page.js +3 -4
  217. package/lib/components/EditFullPage/EditFullPage.js +1 -2
  218. package/lib/components/EditInPlace/EditInPlace.js +4 -6
  219. package/lib/components/EditSidePanel/EditSidePanel.js +1 -2
  220. package/lib/components/EditTearsheet/EditTearsheet.docs-page.js +3 -4
  221. package/lib/components/EditTearsheet/EditTearsheet.js +5 -8
  222. package/lib/components/EditTearsheet/EditTearsheetForm.js +3 -4
  223. package/lib/components/EditTearsheet/preview-components/MultiFormEditTearsheet.js +4 -5
  224. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -2
  225. package/lib/components/EditUpdateCards/EditUpdateCards.js +1 -2
  226. package/lib/components/EmptyStates/EmptyState.js +2 -4
  227. package/lib/components/EmptyStates/EmptyStateContent.js +1 -2
  228. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -2
  229. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
  230. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -2
  231. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -2
  232. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -2
  233. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -2
  234. package/lib/components/EmptyStates/assets/ErrorIllustration.js +1 -2
  235. package/lib/components/EmptyStates/assets/NoDataIllustration.js +1 -2
  236. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
  237. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
  238. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
  239. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
  240. package/lib/components/ExampleComponent/ExampleComponent.docs-page.js +3 -4
  241. package/lib/components/ExampleComponent/ExampleComponent.js +3 -4
  242. package/lib/components/ExampleComponent/ExampleDeprecatedComponent.js +1 -2
  243. package/lib/components/ExampleComponent/useExample.js +1 -2
  244. package/lib/components/ExportModal/ExportModal.js +3 -4
  245. package/lib/components/ExpressiveCard/ExpressiveCard.js +3 -4
  246. package/lib/components/FilterSummary/FilterSummary.js +7 -4
  247. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -2
  248. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -2
  249. package/lib/components/HTTPErrors/HTTPErrorContent.js +1 -2
  250. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -2
  251. package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +1 -2
  252. package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +1 -2
  253. package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +1 -2
  254. package/lib/components/ImportModal/ImportModal.docs-page.js +1 -2
  255. package/lib/components/ImportModal/ImportModal.js +10 -9
  256. package/lib/components/MultiAddSelect/MultiAddSelect.docs-page.js +1 -2
  257. package/lib/components/MultiAddSelect/MultiAddSelect.js +3 -4
  258. package/lib/components/NotificationsPanel/NotificationsPanel.js +3 -4
  259. package/lib/components/NotificationsPanel/NotificationsPanel_data.js +1 -2
  260. package/lib/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +2 -3
  261. package/lib/components/NotificationsPanel/utils.js +1 -2
  262. package/lib/components/OptionsTile/OptionsTile.js +3 -4
  263. package/lib/components/PageHeader/PageHeader.js +5 -7
  264. package/lib/components/PageHeader/PageHeaderDemo.data.js +3 -4
  265. package/lib/components/PageHeader/PageHeaderTitle.js +2 -4
  266. package/lib/components/PageHeader/PageHeaderUtils.js +5 -9
  267. package/lib/components/ProductiveCard/ProductiveCard.js +3 -4
  268. package/lib/components/RemoveModal/RemoveModal.docs-page.js +1 -2
  269. package/lib/components/RemoveModal/RemoveModal.js +3 -4
  270. package/lib/components/Saving/Saving.js +3 -4
  271. package/lib/components/SidePanel/SidePanel.js +3 -4
  272. package/lib/components/SidePanel/constants.js +2 -3
  273. package/lib/components/SidePanel/motion/variants.js +3 -5
  274. package/lib/components/SimpleHeader/SimpleHeader.docs-page.js +3 -4
  275. package/lib/components/SimpleHeader/SimpleHeader.js +4 -6
  276. package/lib/components/SingleAddSelect/SingleAddSelect.docs-page.js +1 -2
  277. package/lib/components/SingleAddSelect/SingleAddSelect.js +3 -4
  278. package/lib/components/StatusIcon/StatusIcon.docs-page.js +3 -4
  279. package/lib/components/StatusIcon/StatusIcon.js +3 -4
  280. package/lib/components/TagSet/TagSet.js +16 -11
  281. package/lib/components/TagSet/TagSetModal.js +3 -4
  282. package/lib/components/TagSet/TagSetOverflow.js +19 -9
  283. package/lib/components/TagSet/constants.js +2 -3
  284. package/lib/components/Tearsheet/Tearsheet.js +2 -4
  285. package/lib/components/Tearsheet/TearsheetNarrow.js +2 -4
  286. package/lib/components/Tearsheet/TearsheetShell.js +8 -14
  287. package/lib/components/Toolbar/Toolbar.docs-page.js +3 -4
  288. package/lib/components/Toolbar/Toolbar.js +6 -10
  289. package/lib/components/Toolbar/ToolbarButton.js +4 -6
  290. package/lib/components/Toolbar/ToolbarGroup.js +3 -4
  291. package/lib/components/TooltipTrigger/TooltipTrigger.js +1 -2
  292. package/lib/components/TooltipTrigger/useExample.js +1 -2
  293. package/lib/components/UserProfileImage/UserProfileImage.docs-page.js +3 -4
  294. package/lib/components/UserProfileImage/UserProfileImage.js +1 -2
  295. package/lib/components/WebTerminal/WebTerminal.docs-page.js +3 -4
  296. package/lib/components/WebTerminal/WebTerminal.js +3 -4
  297. package/lib/components/WebTerminal/WebTerminalContentWrapper.js +1 -2
  298. package/lib/components/WebTerminal/hooks/index.js +6 -9
  299. package/lib/components/WebTerminal/preview-components/Navigation.js +1 -2
  300. package/lib/components/WebTerminal/preview-components/documentationLinks.js +2 -3
  301. package/lib/components/_Canary/Canary.js +1 -2
  302. package/lib/components/index.js +8 -1
  303. package/lib/global/decorators/sidePanelDecorator.js +2 -3
  304. package/lib/global/js/hooks/useActiveElement.js +2 -3
  305. package/lib/global/js/hooks/useClickOutside.js +2 -3
  306. package/lib/global/js/hooks/useCreateComponentFocus.js +9 -8
  307. package/lib/global/js/hooks/useCreateComponentStepChange.js +30 -20
  308. package/lib/global/js/hooks/usePortalTarget.js +2 -3
  309. package/lib/global/js/hooks/usePreviousValue.js +2 -3
  310. package/lib/global/js/hooks/useResetCreateComponent.js +2 -3
  311. package/lib/global/js/hooks/useResizeObserver.js +2 -3
  312. package/lib/global/js/hooks/useRetrieveFormTitles.js +2 -3
  313. package/lib/global/js/hooks/useRetrieveStepData.js +2 -3
  314. package/lib/global/js/hooks/useValidCreateStepCount.js +2 -3
  315. package/lib/global/js/hooks/useWindowResize.js +2 -3
  316. package/lib/global/js/package-settings.js +6 -5
  317. package/lib/global/js/utils/ClickListener.js +3 -4
  318. package/lib/global/js/utils/DisplayBox.js +1 -2
  319. package/lib/global/js/utils/StoryDocsPage.js +2 -4
  320. package/lib/global/js/utils/Wrap.js +1 -2
  321. package/lib/global/js/utils/deepCloneObject.js +2 -3
  322. package/lib/global/js/utils/devtools.js +1 -2
  323. package/lib/global/js/utils/getBezierValues.js +2 -3
  324. package/lib/global/js/utils/getFocusableElements.js +2 -3
  325. package/lib/global/js/utils/getNodeTextContent.js +2 -3
  326. package/lib/global/js/utils/getNumberOfHiddenSteps.js +2 -3
  327. package/lib/global/js/utils/getScrollbarWidth.js +2 -3
  328. package/lib/global/js/utils/keyboardNavigation.js +4 -8
  329. package/lib/global/js/utils/lastIndexInArray.js +2 -3
  330. package/lib/global/js/utils/motionConstants.js +4 -5
  331. package/lib/global/js/utils/pconsole.js +8 -15
  332. package/lib/global/js/utils/props-helper.js +7 -14
  333. package/lib/global/js/utils/rangeWithCallback.js +2 -3
  334. package/lib/global/js/utils/scrollableAncestor.js +2 -3
  335. package/lib/global/js/utils/story-helper.js +15 -26
  336. package/lib/global/js/utils/test-helper.js +39 -42
  337. package/lib/global/js/utils/unwrap-if-fragment.js +1 -2
  338. package/lib/global/js/utils/uuidv4.js +1 -2
  339. package/lib/global/js/utils/wait.js +1 -2
  340. package/lib/global/js/utils/wrapFocus.js +1 -2
  341. package/lib/settings.js +2 -4
  342. package/package.json +6 -6
  343. package/scss/components/AboutModal/_about-modal.scss +1 -2
  344. package/scss/components/Checklist/_checklist.scss +217 -0
  345. package/scss/components/Checklist/_index.scss +8 -0
  346. package/scss/components/Checklist/_storybook-styles.scss +13 -0
  347. package/scss/components/CreateFullPage/_storybook-styles.scss +1 -1
  348. package/scss/components/Datagrid/_datagrid.scss +1 -0
  349. package/scss/components/Datagrid/styles/_datagrid.scss +1 -2
  350. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +41 -0
  351. package/scss/components/TagSet/_tag-set.scss +10 -2
  352. package/scss/components/_index.scss +2 -1
@@ -31,7 +31,6 @@ var defaults = {
31
31
  accept: Object.freeze([])
32
32
  };
33
33
  export var ImportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
34
- var _ref2;
35
34
  var _ref$accept = _ref.accept,
36
35
  accept = _ref$accept === void 0 ? defaults.accept : _ref$accept,
37
36
  className = _ref.className,
@@ -112,8 +111,8 @@ export var ImportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
112
111
  var finalFiles = _toConsumableArray(updatedFiles);
113
112
  setFiles(finalFiles);
114
113
  };
115
- var fetchFile = function fetchFile(_x) {
116
- return (_ref2 = _ref2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(evt) {
114
+ var fetchFile = /*#__PURE__*/function () {
115
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(evt) {
117
116
  var fileName, pendingFile, response, blob, fetchedFile, failedFile;
118
117
  return _regeneratorRuntime.wrap(function _callee$(_context) {
119
118
  while (1) switch (_context.prev = _context.next) {
@@ -161,8 +160,11 @@ export var ImportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
161
160
  return _context.stop();
162
161
  }
163
162
  }, _callee, null, [[4, 19]]);
164
- }))).apply(this, arguments);
165
- };
163
+ }));
164
+ return function fetchFile(_x) {
165
+ return _ref2.apply(this, arguments);
166
+ };
167
+ }();
166
168
  var onAddFile = function onAddFile(evt, _ref3) {
167
169
  var addedFiles = _ref3.addedFiles;
168
170
  evt.stopPropagation();
@@ -693,7 +693,7 @@ PageHeader.propTypes = _objectSpread({
693
693
  * Sitting just below the title is this optional subtitle that provides additional context to
694
694
  * identify the current page.
695
695
  */
696
- subtitle: PropTypes.string,
696
+ subtitle: PropTypes.node,
697
697
  /**
698
698
  * An array of tags to be shown as the final content in the PageHeader.
699
699
  *
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
5
- var _excluded = ["align", "allTagsModalTarget", "className", "maxVisible", "multiline", "overflowAlign", "overflowClassName", "allTagsModalTitle", "allTagsModalSearchLabel", "allTagsModalSearchPlaceholderText", "showAllTagsLabel", "tags"],
5
+ var _excluded = ["align", "allTagsModalTarget", "className", "maxVisible", "multiline", "overflowAlign", "overflowClassName", "overflowType", "allTagsModalTitle", "allTagsModalSearchLabel", "allTagsModalSearchPlaceholderText", "showAllTagsLabel", "tags"],
6
6
  _excluded2 = ["label", "id"],
7
7
  _excluded3 = ["label"];
8
8
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -31,7 +31,8 @@ var allTagsModalSearchThreshold = 10;
31
31
  // Default values for props
32
32
  var defaults = {
33
33
  align: 'start',
34
- overflowAlign: 'bottom'
34
+ overflowAlign: 'bottom',
35
+ overflowType: 'default'
35
36
  };
36
37
  export var TagSet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
37
38
  var _ref$align = _ref.align,
@@ -43,6 +44,8 @@ export var TagSet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
43
44
  _ref$overflowAlign = _ref.overflowAlign,
44
45
  overflowAlign = _ref$overflowAlign === void 0 ? defaults.overflowAlign : _ref$overflowAlign,
45
46
  overflowClassName = _ref.overflowClassName,
47
+ _ref$overflowType = _ref.overflowType,
48
+ overflowType = _ref$overflowType === void 0 ? defaults.overflowType : _ref$overflowType,
46
49
  allTagsModalTitle = _ref.allTagsModalTitle,
47
50
  allTagsModalSearchLabel = _ref.allTagsModalSearchLabel,
48
51
  allTagsModalSearchPlaceholderText = _ref.allTagsModalSearchPlaceholderText,
@@ -123,12 +126,13 @@ export var TagSet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
123
126
  onShowAllClick: handleShowAllClick,
124
127
  overflowTags: newOverflowTags,
125
128
  overflowAlign: overflowAlign,
129
+ overflowType: overflowType,
126
130
  showAllTagsLabel: showAllTagsLabel,
127
131
  key: "displayed-tag-overflow",
128
132
  ref: overflowTag
129
133
  }));
130
134
  setDisplayedTags(newDisplayedTags);
131
- }, [displayCount, overflowAlign, overflowClassName, showAllTagsLabel, tags]);
135
+ }, [displayCount, overflowAlign, overflowClassName, overflowType, showAllTagsLabel, tags]);
132
136
  var checkFullyVisibleTags = useCallback(function () {
133
137
  if (multiline) {
134
138
  return setDisplayCount(maxVisible);
@@ -277,6 +281,10 @@ TagSet.propTypes = {
277
281
  * overflowClassName for the tooltip popup
278
282
  */
279
283
  overflowClassName: PropTypes.string,
284
+ /**
285
+ * Type of rendering displayed inside of the tag overflow component
286
+ */
287
+ overflowType: PropTypes.oneOf(['default', 'tag']),
280
288
  /**
281
289
  * label for the overflow show all tags link.
282
290
  *
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
5
- var _excluded = ["allTagsModalSearchThreshold", "className", "onShowAllClick", "overflowAlign", "overflowTags", "showAllTagsLabel"];
5
+ var _excluded = ["allTagsModalSearchThreshold", "className", "onShowAllClick", "overflowAlign", "overflowTags", "overflowType", "showAllTagsLabel"];
6
6
  //
7
7
  // Copyright IBM Corp. 2021, 2022
8
8
  //
@@ -32,6 +32,7 @@ export var TagSetOverflow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
32
32
  _ref$overflowAlign = _ref.overflowAlign,
33
33
  overflowAlign = _ref$overflowAlign === void 0 ? defaults.overflowAlign : _ref$overflowAlign,
34
34
  overflowTags = _ref.overflowTags,
35
+ overflowType = _ref.overflowType,
35
36
  showAllTagsLabel = _ref.showAllTagsLabel,
36
37
  rest = _objectWithoutProperties(_ref, _excluded);
37
38
  var _useState = useState(false),
@@ -81,12 +82,18 @@ export var TagSetOverflow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
81
82
  }, overflowTags.filter(function (_, index) {
82
83
  return overflowTags.length > allTagsModalSearchThreshold ? index < allTagsModalSearchThreshold : index <= allTagsModalSearchThreshold;
83
84
  }).map(function (tag, index) {
85
+ var _cx2;
86
+ var tagProps = {};
87
+ if (overflowType === 'tag') {
88
+ tagProps.type = 'high-contrast';
89
+ }
90
+ if (overflowType === 'default') {
91
+ tagProps.filter = false;
92
+ }
84
93
  return /*#__PURE__*/React.createElement("li", {
85
- className: "".concat(blockClass, "__tag-item"),
94
+ className: cx("".concat(blockClass, "__tag-item"), (_cx2 = {}, _defineProperty(_cx2, "".concat(blockClass, "__tag-item--default"), overflowType === 'default'), _defineProperty(_cx2, "".concat(blockClass, "__tag-item--tag"), overflowType === 'tag'), _cx2)),
86
95
  key: index
87
- }, /*#__PURE__*/React.cloneElement(tag, {
88
- filter: false
89
- }));
96
+ }, /*#__PURE__*/React.cloneElement(tag, tagProps));
90
97
  })), overflowTags.length > allTagsModalSearchThreshold && /*#__PURE__*/React.createElement(Link, {
91
98
  className: "".concat(blockClass, "__show-all-tags-link"),
92
99
  href: "",
@@ -116,6 +123,10 @@ TagSetOverflow.propTypes = {
116
123
  * tags shown in overflow
117
124
  */
118
125
  overflowTags: PropTypes.arrayOf(PropTypes.object).isRequired,
126
+ /**
127
+ * Type of rendering displayed inside of the tag overflow component
128
+ */
129
+ overflowType: PropTypes.oneOf(['default', 'tag']),
119
130
  /**
120
131
  * label for the overflow show all tags link
121
132
  */
@@ -41,4 +41,5 @@ export { Datagrid, useDatagrid, useInfiniteScroll, useNestedRows, useSelectRows,
41
41
  export { EditTearsheet, EditTearsheetForm } from './EditTearsheet';
42
42
  export { EditTearsheetNarrow } from './EditTearsheetNarrow';
43
43
  export { EditFullPage } from './EditFullPage';
44
- export { EditUpdateCards } from './EditUpdateCards';
44
+ export { EditUpdateCards } from './EditUpdateCards';
45
+ export { Checklist } from './Checklist';
@@ -23,10 +23,9 @@ export var useCreateComponentFocus = function useCreateComponentFocus(_ref) {
23
23
  }
24
24
  }, [onMount]);
25
25
  useEffect(function () {
26
- var _ref2;
27
26
  // because of how handleStackChange.claimFocus in TearsheetShell works a timeout is required to focus on specific elements
28
- var awaitFocus = function awaitFocus(_x) {
29
- return (_ref2 = _ref2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(elm) {
27
+ var awaitFocus = /*#__PURE__*/function () {
28
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(elm) {
30
29
  return _regeneratorRuntime.wrap(function _callee$(_context) {
31
30
  while (1) switch (_context.prev = _context.next) {
32
31
  case 0:
@@ -39,8 +38,11 @@ export var useCreateComponentFocus = function useCreateComponentFocus(_ref) {
39
38
  return _context.stop();
40
39
  }
41
40
  }, _callee);
42
- }))).apply(this, arguments);
43
- };
41
+ }));
42
+ return function awaitFocus(_x) {
43
+ return _ref2.apply(this, arguments);
44
+ };
45
+ }();
44
46
  if ((previousState === null || previousState === void 0 ? void 0 : previousState.currentStep) !== currentStep && currentStep > 0) {
45
47
  if (firstFocusElement) {
46
48
  var elm = document.querySelector(firstFocusElement);
@@ -64,7 +64,6 @@ export var useCreateComponentStepChange = function useCreateComponentStepChange(
64
64
 
65
65
  // useEffect to handle multi step logic
66
66
  useEffect(function () {
67
- var _ref2, _ref3, _ref4, _ref5;
68
67
  var onUnmount = function onUnmount() {
69
68
  if (componentName !== 'CreateFullPage') {
70
69
  setCurrentStep(0);
@@ -72,8 +71,8 @@ export var useCreateComponentStepChange = function useCreateComponentStepChange(
72
71
  setIsSubmitting(false);
73
72
  onClose();
74
73
  };
75
- var handleOnRequestSubmit = function handleOnRequestSubmit() {
76
- return (_ref2 = _ref2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
74
+ var handleOnRequestSubmit = /*#__PURE__*/function () {
75
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
77
76
  return _regeneratorRuntime.wrap(function _callee$(_context) {
78
77
  while (1) switch (_context.prev = _context.next) {
79
78
  case 0:
@@ -94,10 +93,13 @@ export var useCreateComponentStepChange = function useCreateComponentStepChange(
94
93
  return _context.stop();
95
94
  }
96
95
  }, _callee, null, [[0, 6]]);
97
- }))).apply(this, arguments);
98
- };
99
- var handlePrevious = function handlePrevious() {
100
- return (_ref3 = _ref3 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
96
+ }));
97
+ return function handleOnRequestSubmit() {
98
+ return _ref2.apply(this, arguments);
99
+ };
100
+ }();
101
+ var handlePrevious = /*#__PURE__*/function () {
102
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
101
103
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
102
104
  while (1) switch (_context2.prev = _context2.next) {
103
105
  case 0:
@@ -127,10 +129,13 @@ export var useCreateComponentStepChange = function useCreateComponentStepChange(
127
129
  return _context2.stop();
128
130
  }
129
131
  }, _callee2, null, [[2, 8]]);
130
- }))).apply(this, arguments);
131
- };
132
- var handleNext = function handleNext() {
133
- return (_ref4 = _ref4 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
132
+ }));
133
+ return function handlePrevious() {
134
+ return _ref3.apply(this, arguments);
135
+ };
136
+ }();
137
+ var handleNext = /*#__PURE__*/function () {
138
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
134
139
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
135
140
  while (1) switch (_context3.prev = _context3.next) {
136
141
  case 0:
@@ -161,10 +166,13 @@ export var useCreateComponentStepChange = function useCreateComponentStepChange(
161
166
  return _context3.stop();
162
167
  }
163
168
  }, _callee3, null, [[2, 8]]);
164
- }))).apply(this, arguments);
165
- };
166
- var handleSubmit = function handleSubmit() {
167
- return (_ref5 = _ref5 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
169
+ }));
170
+ return function handleNext() {
171
+ return _ref4.apply(this, arguments);
172
+ };
173
+ }();
174
+ var handleSubmit = /*#__PURE__*/function () {
175
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
168
176
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
169
177
  while (1) switch (_context4.prev = _context4.next) {
170
178
  case 0:
@@ -199,8 +207,11 @@ export var useCreateComponentStepChange = function useCreateComponentStepChange(
199
207
  return _context4.stop();
200
208
  }
201
209
  }, _callee4, null, [[2, 9]]);
202
- }))).apply(this, arguments);
203
- };
210
+ }));
211
+ return function handleSubmit() {
212
+ return _ref5.apply(this, arguments);
213
+ };
214
+ }();
204
215
  if ((stepData === null || stepData === void 0 ? void 0 : stepData.length) > 0) {
205
216
  var buttons = [];
206
217
  if ((stepData === null || stepData === void 0 ? void 0 : stepData.length) > 1) {
@@ -68,10 +68,12 @@ var defaults = {
68
68
  EditTearsheetForm: false,
69
69
  EditTearsheetNarrow: false,
70
70
  EditFullPage: false,
71
- EditUpdateCards: false
71
+ EditUpdateCards: false,
72
72
  /* new component flags here - comment used by generate CLI */
73
- },
74
73
 
74
+ // Novice to pro components not yet reviewed and released:
75
+ Checklist: false
76
+ },
75
77
  // feature level flags
76
78
  feature: {
77
79
  'default-portal-target-body': true,
@@ -205,6 +205,7 @@ export var storyDocsGuidelines = function storyDocsGuidelines(csfFile) {
205
205
  * @returns "dark" or "light"
206
206
  */
207
207
  export var getSelectedCarbonTheme = function getSelectedCarbonTheme() {
208
- var themeId = document.querySelector('[storybook-carbon-theme]').getAttribute('storybook-carbon-theme');
208
+ var _document$querySelect;
209
+ var themeId = (_document$querySelect = document.querySelector('[storybook-carbon-theme]')) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.getAttribute('storybook-carbon-theme');
209
210
  return themeId === 'g90' || themeId === 'g100' ? 'dark' : 'light';
210
211
  };
@@ -1,6 +1,5 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
- var _ref, _ref2, _ref4, _ref5;
4
3
  import _regeneratorRuntime from "@babel/runtime/regenerator";
5
4
  //
6
5
  // Copyright IBM Corp. 2021, 2021
@@ -133,8 +132,8 @@ export var expectWarn = function expectWarn(message, test) {
133
132
  * An async version of expectWarn which awaits the test function and expects the call
134
133
  * to console.warn to have been made.
135
134
  */
136
- export var expectWarnAsync = function expectWarnAsync(_x, _x2) {
137
- return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(message, test) {
135
+ export var expectWarnAsync = /*#__PURE__*/function () {
136
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(message, test) {
138
137
  var _expect;
139
138
  var warn;
140
139
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -152,8 +151,11 @@ export var expectWarnAsync = function expectWarnAsync(_x, _x2) {
152
151
  return _context.stop();
153
152
  }
154
153
  }, _callee);
155
- }))).apply(this, arguments);
156
- };
154
+ }));
155
+ return function expectWarnAsync(_x, _x2) {
156
+ return _ref.apply(this, arguments);
157
+ };
158
+ }();
157
159
 
158
160
  /**
159
161
  * A helper function to enable a test to expect multiple calls to
@@ -169,8 +171,8 @@ export var expectWarnAsync = function expectWarnAsync(_x, _x2) {
169
171
  * @param {Function} test the test function to call, during which the calls to
170
172
  * console.warn will be expected.
171
173
  */
172
- export var expectMultipleWarn = function expectMultipleWarn(_x3, _x4) {
173
- return (_ref2 = _ref2 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(messages, test) {
174
+ export var expectMultipleWarn = /*#__PURE__*/function () {
175
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(messages, test) {
174
176
  var warn, result;
175
177
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
176
178
  while (1) switch (_context2.prev = _context2.next) {
@@ -192,8 +194,11 @@ export var expectMultipleWarn = function expectMultipleWarn(_x3, _x4) {
192
194
  return _context2.stop();
193
195
  }
194
196
  }, _callee2);
195
- }))).apply(this, arguments);
196
- };
197
+ }));
198
+ return function expectMultipleWarn(_x3, _x4) {
199
+ return _ref2.apply(this, arguments);
200
+ };
201
+ }();
197
202
  export var checkLogging = function checkLogging(mockedThing, message) {
198
203
  if (message) {
199
204
  expect(mockedThing).toBeCalled();
@@ -215,8 +220,8 @@ export var checkLogging = function checkLogging(mockedThing, message) {
215
220
  * @param {Function} test the test function to call, during which the call to
216
221
  * console.error will be expected.
217
222
  */
218
- export var expectLogging = function expectLogging(_x5, _x6) {
219
- return (_ref4 = _ref4 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref3, test) {
223
+ export var expectLogging = /*#__PURE__*/function () {
224
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref3, test) {
220
225
  var errors, warnings, error, warn, result;
221
226
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
222
227
  while (1) switch (_context3.prev = _context3.next) {
@@ -238,8 +243,11 @@ export var expectLogging = function expectLogging(_x5, _x6) {
238
243
  return _context3.stop();
239
244
  }
240
245
  }, _callee3);
241
- }))).apply(this, arguments);
242
- };
246
+ }));
247
+ return function expectLogging(_x5, _x6) {
248
+ return _ref4.apply(this, arguments);
249
+ };
250
+ }();
243
251
 
244
252
  /**
245
253
  * A helper function to enable a test to expect a single call to
@@ -276,8 +284,8 @@ export var expectError = function expectError(message, test) {
276
284
  * @param {Function} test the test function to call, during which the calls to
277
285
  * console.error will be expected.
278
286
  */
279
- export var expectMultipleError = function expectMultipleError(_x7, _x8) {
280
- return (_ref5 = _ref5 || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(messages, test) {
287
+ export var expectMultipleError = /*#__PURE__*/function () {
288
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(messages, test) {
281
289
  var error, result;
282
290
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
283
291
  while (1) switch (_context4.prev = _context4.next) {
@@ -304,8 +312,11 @@ export var expectMultipleError = function expectMultipleError(_x7, _x8) {
304
312
  return _context4.stop();
305
313
  }
306
314
  }, _callee4);
307
- }))).apply(this, arguments);
308
- };
315
+ }));
316
+ return function expectMultipleError(_x7, _x8) {
317
+ return _ref5.apply(this, arguments);
318
+ };
319
+ }();
309
320
 
310
321
  /**
311
322
  * Return an expect matcher for a prop deprecation, suitable to pass to expectWarn
@@ -13,8 +13,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
13
13
  var _react = _interopRequireWildcard(require("react"));
14
14
  var _propTypes = _interopRequireDefault(require("prop-types"));
15
15
  var _settings = require("../../settings");
16
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  /**
19
19
  * Copyright IBM Corp. 2021, 2021
20
20
  *
@@ -23,7 +23,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
23
23
  */
24
24
 
25
25
  var componentName = 'APIKeyDownloader';
26
- var APIKeyDownloader = function APIKeyDownloader(_ref) {
26
+ var APIKeyDownloader = exports.APIKeyDownloader = function APIKeyDownloader(_ref) {
27
27
  var apiKey = _ref.apiKey,
28
28
  body = _ref.body,
29
29
  fileName = _ref.fileName,
@@ -34,9 +34,8 @@ var APIKeyDownloader = function APIKeyDownloader(_ref) {
34
34
  linkProps = _useState2[0],
35
35
  setLinkProps = _useState2[1];
36
36
  (0, _react.useEffect)(function () {
37
- var _ref2;
38
- var generateLinkProps = function generateLinkProps() {
39
- return (_ref2 = _ref2 || (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
37
+ var generateLinkProps = /*#__PURE__*/function () {
38
+ var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
40
39
  var data, blob, href, download, props;
41
40
  return _regenerator.default.wrap(function _callee$(_context) {
42
41
  while (1) switch (_context.prev = _context.next) {
@@ -62,8 +61,11 @@ var APIKeyDownloader = function APIKeyDownloader(_ref) {
62
61
  return _context.stop();
63
62
  }
64
63
  }, _callee);
65
- }))).apply(this, arguments);
66
- };
64
+ }));
65
+ return function generateLinkProps() {
66
+ return _ref2.apply(this, arguments);
67
+ };
68
+ }();
67
69
  generateLinkProps();
68
70
  }, [apiKey, fileName, fileType]);
69
71
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -74,7 +76,6 @@ var APIKeyDownloader = function APIKeyDownloader(_ref) {
74
76
  className: "".concat(_settings.pkg.prefix, "--apikey-modal__download-link")
75
77
  }), linkText)));
76
78
  };
77
- exports.APIKeyDownloader = APIKeyDownloader;
78
79
  APIKeyDownloader.displayName = componentName;
79
80
  APIKeyDownloader.propTypes = {
80
81
  /**
@@ -11,8 +11,8 @@ var _StoryDocsPage = require("../../global/js/utils/StoryDocsPage");
11
11
  var _blocks = require("@storybook/blocks");
12
12
  var _storyHelper = require("../../global/js/utils/story-helper");
13
13
  var stories = _interopRequireWildcard(require("./APIKeyModal.stories"));
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
16
  var DocsPage = function DocsPage() {
17
17
  var _useOf = (0, _blocks.useOf)('meta', ['meta']),
18
18
  csfFile = _useOf.csfFile;
@@ -33,5 +33,4 @@ var DocsPage = function DocsPage() {
33
33
  }]
34
34
  });
35
35
  };
36
- var _default = DocsPage;
37
- exports.default = _default;
36
+ var _default = exports.default = DocsPage;
@@ -29,8 +29,8 @@ var _excluded = ["apiKey", "apiKeyLabel", "apiKeyName", "body", "className", "cl
29
29
  // This source code is licensed under the Apache-2.0 license found in the
30
30
  // LICENSE file in the root directory of this source tree.
31
31
  //
32
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
32
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
33
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
34
34
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
35
35
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
36
36
  var componentName = 'APIKeyModal';
@@ -40,8 +40,7 @@ var defaults = {
40
40
  apiKeyName: '',
41
41
  customSteps: Object.freeze([])
42
42
  };
43
- var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
44
- var _ref2;
43
+ var APIKeyModal = exports.APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
45
44
  var apiKey = _ref.apiKey,
46
45
  apiKeyLabel = _ref.apiKeyLabel,
47
46
  _ref$apiKeyName = _ref.apiKeyName,
@@ -176,8 +175,8 @@ var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
176
175
  setCurrentStep(0);
177
176
  onClose();
178
177
  };
179
- var submitHandler = function submitHandler(_x) {
180
- return (_ref2 = _ref2 || (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
178
+ var submitHandler = /*#__PURE__*/function () {
179
+ var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
181
180
  return _regenerator.default.wrap(function _callee$(_context) {
182
181
  while (1) switch (_context.prev = _context.next) {
183
182
  case 0:
@@ -227,8 +226,11 @@ var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
227
226
  return _context.stop();
228
227
  }
229
228
  }, _callee, null, [[10, 15]]);
230
- }))).apply(this, arguments);
231
- };
229
+ }));
230
+ return function submitHandler(_x) {
231
+ return _ref2.apply(this, arguments);
232
+ };
233
+ }();
232
234
  var onBackHandler = function onBackHandler() {
233
235
  if (hasPreviousStep && !apiKeyLoaded) {
234
236
  setCurrentStep(currentStep - 1);
@@ -313,7 +315,6 @@ var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
313
315
  disabled: isPrimaryButtonDisabled()
314
316
  }), getPrimaryButtonText()))));
315
317
  });
316
- exports.APIKeyModal = APIKeyModal;
317
318
  var customStepsRequiredProps = function customStepsRequiredProps(type) {
318
319
  return (0, _propsHelper.isRequiredIf)(type, function (_ref3) {
319
320
  var customSteps = _ref3.customSteps;
@@ -9,8 +9,8 @@ exports.default = void 0;
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _StoryDocsPage = require("../../global/js/utils/StoryDocsPage");
11
11
  var stories = _interopRequireWildcard(require("./AboutModal.stories"));
12
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
14
  var DocsPage = function DocsPage() {
15
15
  return /*#__PURE__*/_react.default.createElement(_StoryDocsPage.StoryDocsPage, {
16
16
  guidelinesHref: "https://pages.github.ibm.com/cdai-design/pal/patterns/about-modal/usage",
@@ -28,5 +28,4 @@ var DocsPage = function DocsPage() {
28
28
  }]
29
29
  });
30
30
  };
31
- var _default = DocsPage;
32
- exports.default = _default;
31
+ var _default = exports.default = DocsPage;
@@ -29,8 +29,8 @@ var _excluded = ["additionalInfo", "className", "closeIconDescription", "copyrig
29
29
  // Import portions of React that are needed.
30
30
  // Other standard imports.
31
31
  // Carbon and package components we use.
32
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
32
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
33
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
34
34
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
35
35
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
36
36
  // The block part of our conventional BEM class names (blockClass__E--M).
@@ -46,7 +46,7 @@ var componentName = 'AboutModal';
46
46
  * should be immediately apparent to the user, with a clear and obvious path
47
47
  * to completion.
48
48
  */
49
- var AboutModal = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
49
+ var AboutModal = exports.AboutModal = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
50
50
  var additionalInfo = _ref.additionalInfo,
51
51
  className = _ref.className,
52
52
  closeIconDescription = _ref.closeIconDescription,
@@ -133,7 +133,6 @@ var AboutModal = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
133
133
  });
134
134
 
135
135
  // Return a placeholder if not released and not enabled by feature flag
136
- exports.AboutModal = AboutModal;
137
136
  exports.AboutModal = AboutModal = _settings.pkg.checkComponentEnabled(AboutModal, componentName);
138
137
  AboutModal.displayName = componentName;
139
138