@carbon/ibm-products 2.12.1 → 2.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (346) hide show
  1. package/css/index-full-carbon.css +3482 -3232
  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 +464 -696
  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 +1040 -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 +1415 -1431
  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/DatagridToolbar.js +1 -1
  25. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +20 -6
  26. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +5 -4
  27. package/es/components/ImportModal/ImportModal.js +7 -5
  28. package/es/components/PageHeader/PageHeader.js +1 -1
  29. package/es/components/index.js +2 -1
  30. package/es/global/js/hooks/useCreateComponentFocus.js +7 -5
  31. package/es/global/js/hooks/useCreateComponentStepChange.js +28 -17
  32. package/es/global/js/package-settings.js +4 -2
  33. package/es/global/js/utils/story-helper.js +2 -1
  34. package/es/global/js/utils/test-helper.js +28 -17
  35. package/lib/components/APIKeyModal/APIKeyDownloader.js +10 -9
  36. package/lib/components/APIKeyModal/APIKeyModal.docs-page.js +3 -4
  37. package/lib/components/APIKeyModal/APIKeyModal.js +10 -9
  38. package/lib/components/AboutModal/AboutModal.docs-page.js +3 -4
  39. package/lib/components/AboutModal/AboutModal.js +3 -4
  40. package/lib/components/ActionBar/ActionBar.js +3 -4
  41. package/lib/components/ActionBar/ActionBarItem.js +1 -2
  42. package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -4
  43. package/lib/components/ActionSet/ActionSet.js +1 -2
  44. package/lib/components/ActionSet/actions.js +4 -7
  45. package/lib/components/AddSelect/AddSelect.js +3 -4
  46. package/lib/components/AddSelect/AddSelectBody.js +3 -4
  47. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +1 -2
  48. package/lib/components/AddSelect/AddSelectColumn.js +3 -4
  49. package/lib/components/AddSelect/AddSelectFilter.js +3 -4
  50. package/lib/components/AddSelect/AddSelectFormControl.js +1 -2
  51. package/lib/components/AddSelect/AddSelectList.js +1 -2
  52. package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -4
  53. package/lib/components/AddSelect/AddSelectRow.js +3 -4
  54. package/lib/components/AddSelect/AddSelectSidebar.js +1 -2
  55. package/lib/components/AddSelect/AddSelectSort.js +1 -2
  56. package/lib/components/AddSelect/add-select-utils.js +5 -9
  57. package/lib/components/AddSelect/hooks/useFocus.js +1 -2
  58. package/lib/components/AddSelect/hooks/useItemSort.js +2 -3
  59. package/lib/components/AddSelect/hooks/useParentSelect.js +1 -2
  60. package/lib/components/AddSelect/hooks/usePath.js +1 -2
  61. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +3 -4
  62. package/lib/components/ButtonMenu/ButtonMenu.js +1 -2
  63. package/lib/components/ButtonMenu/ButtonMenuItem.js +1 -2
  64. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +3 -4
  65. package/lib/components/Card/Card.js +3 -4
  66. package/lib/components/Card/CardFooter.js +1 -2
  67. package/lib/components/Card/CardHeader.js +1 -2
  68. package/lib/components/Cascade/Cascade.docs-page.js +3 -4
  69. package/lib/components/Cascade/Cascade.js +3 -4
  70. package/lib/components/Checklist/Checklist.docs-page.js +23 -0
  71. package/lib/components/Checklist/Checklist.js +297 -0
  72. package/lib/components/Checklist/ChecklistChart.js +99 -0
  73. package/lib/components/Checklist/ChecklistIcon.js +109 -0
  74. package/lib/components/Checklist/index.js +12 -0
  75. package/lib/components/ComboButton/ComboButton.js +3 -4
  76. package/lib/components/ComboButton/ComboButtonItem/index.js +1 -2
  77. package/lib/components/CreateFullPage/CreateFullPage.docs-page.js +3 -4
  78. package/lib/components/CreateFullPage/CreateFullPage.js +5 -8
  79. package/lib/components/CreateFullPage/CreateFullPageStep.js +3 -4
  80. package/lib/components/CreateInfluencer/CreateInfluencer.js +1 -2
  81. package/lib/components/CreateModal/CreateModal.docs-page.js +3 -4
  82. package/lib/components/CreateModal/CreateModal.js +1 -2
  83. package/lib/components/CreateSidePanel/CreateSidePanel.docs-page.js +3 -4
  84. package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -2
  85. package/lib/components/CreateTearsheet/CreateTearsheet.docs-page.js +3 -4
  86. package/lib/components/CreateTearsheet/CreateTearsheet.js +5 -8
  87. package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +3 -4
  88. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +3 -4
  89. package/lib/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +4 -5
  90. package/lib/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +4 -5
  91. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -2
  92. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +3 -4
  93. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +3 -4
  94. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +3 -4
  95. package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +2 -3
  96. package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +2 -3
  97. package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +2 -3
  98. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +2 -3
  99. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +2 -3
  100. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +2 -3
  101. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +2 -3
  102. package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +2 -3
  103. package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +2 -3
  104. package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +2 -3
  105. package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +2 -3
  106. package/lib/components/DataSpreadsheet/utils/generateData.js +2 -3
  107. package/lib/components/DataSpreadsheet/utils/getCellSize.js +2 -3
  108. package/lib/components/DataSpreadsheet/utils/getSelectionAreaPoints.js +2 -3
  109. package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +2 -3
  110. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +2 -3
  111. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +2 -3
  112. package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +2 -3
  113. package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +2 -3
  114. package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +2 -3
  115. package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +4 -7
  116. package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +2 -3
  117. package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +2 -3
  118. package/lib/components/DataSpreadsheet/utils/selectAllCells.js +2 -3
  119. package/lib/components/Datagrid/Datagrid/Datagrid.js +1 -2
  120. package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -2
  121. package/lib/components/Datagrid/Datagrid/DatagridContent.js +3 -4
  122. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +1 -2
  123. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +1 -2
  124. package/lib/components/Datagrid/Datagrid/DatagridHead.js +1 -2
  125. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +3 -4
  126. package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +1 -2
  127. package/lib/components/Datagrid/Datagrid/DatagridRow.js +1 -2
  128. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -5
  129. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -4
  130. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -2
  131. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +4 -5
  132. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -4
  133. package/lib/components/Datagrid/Datagrid/DraggableElement.js +1 -2
  134. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +3 -4
  135. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +3 -4
  136. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +3 -4
  137. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +3 -4
  138. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -2
  139. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +3 -4
  140. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +2 -3
  141. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +3 -4
  142. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +4 -6
  143. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +5 -8
  144. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +3 -4
  145. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +13 -26
  146. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
  147. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +4 -6
  148. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
  149. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
  150. package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +4 -7
  151. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +2 -3
  152. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -2
  153. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +3 -4
  154. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +4 -6
  155. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +2 -3
  156. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +2 -3
  157. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +2 -3
  158. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +2 -3
  159. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -3
  160. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +26 -13
  161. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +9 -6
  162. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +5 -9
  163. package/lib/components/Datagrid/Datagrid.docs-page.js +4 -5
  164. package/lib/components/Datagrid/Datagrid.stories/CustomizeColumnStory.js +2 -3
  165. package/lib/components/Datagrid/Datagrid.stories/RowSizeDropdownStory.js +2 -3
  166. package/lib/components/Datagrid/Datagrid.stories/SelectAllWithToggleStory.js +2 -3
  167. package/lib/components/Datagrid/Datagrid.stories/common.js +4 -7
  168. package/lib/components/Datagrid/Extensions/ColumnAlignment/ColumnAlignment.docs-page.js +2 -3
  169. package/lib/components/Datagrid/Extensions/ColumnCustomization/ColumnCustomization.docs-page.js +2 -3
  170. package/lib/components/Datagrid/Extensions/EditableCell/EditableCell.docs-page.js +2 -3
  171. package/lib/components/Datagrid/Extensions/ExpandableRow/ExpandableRow.docs-page.js +2 -3
  172. package/lib/components/Datagrid/Extensions/Filtering/Filtering.docs-page.js +2 -3
  173. package/lib/components/Datagrid/Extensions/RowActionButtons/RowActionButtons.docs-page.js +2 -3
  174. package/lib/components/Datagrid/common-column-ids.js +1 -2
  175. package/lib/components/Datagrid/useActionsColumn.js +3 -4
  176. package/lib/components/Datagrid/useColumnCenterAlign.js +1 -2
  177. package/lib/components/Datagrid/useColumnOrder.js +1 -2
  178. package/lib/components/Datagrid/useColumnRightAlign.js +1 -2
  179. package/lib/components/Datagrid/useCustomizeColumns.js +3 -4
  180. package/lib/components/Datagrid/useDatagrid.js +1 -2
  181. package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
  182. package/lib/components/Datagrid/useDisableSelectRows.js +1 -2
  183. package/lib/components/Datagrid/useEditableCell.js +1 -2
  184. package/lib/components/Datagrid/useExpandedRow.js +1 -2
  185. package/lib/components/Datagrid/useFiltering.js +1 -2
  186. package/lib/components/Datagrid/useFlexResize.js +1 -2
  187. package/lib/components/Datagrid/useFloatingScroll.js +1 -2
  188. package/lib/components/Datagrid/useInfiniteScroll.js +1 -2
  189. package/lib/components/Datagrid/useInlineEdit.js +3 -4
  190. package/lib/components/Datagrid/useNestedRowExpander.js +3 -4
  191. package/lib/components/Datagrid/useNestedRows.js +1 -2
  192. package/lib/components/Datagrid/useOnRowClick.js +1 -2
  193. package/lib/components/Datagrid/useParentDimensions.js +1 -2
  194. package/lib/components/Datagrid/useResizeTable.js +1 -2
  195. package/lib/components/Datagrid/useRowExpander.js +3 -4
  196. package/lib/components/Datagrid/useRowIsMouseOver.js +1 -2
  197. package/lib/components/Datagrid/useRowRenderer.js +1 -2
  198. package/lib/components/Datagrid/useRowSize.js +1 -2
  199. package/lib/components/Datagrid/useSelectAllToggle.js +3 -4
  200. package/lib/components/Datagrid/useSelectRows.js +3 -4
  201. package/lib/components/Datagrid/useSkeletonRows.js +1 -2
  202. package/lib/components/Datagrid/useSortableColumns.js +1 -2
  203. package/lib/components/Datagrid/useStickyColumn.js +1 -2
  204. package/lib/components/Datagrid/utils/DatagridActions.js +4 -5
  205. package/lib/components/Datagrid/utils/DatagridPagination.js +2 -3
  206. package/lib/components/Datagrid/utils/Wrapper.js +2 -3
  207. package/lib/components/Datagrid/utils/getArgTypes.js +2 -3
  208. package/lib/components/Datagrid/utils/getAutoSizedColumnWidth.js +2 -3
  209. package/lib/components/Datagrid/utils/getInlineEditColumns.js +3 -5
  210. package/lib/components/Datagrid/utils/makeData.js +3 -6
  211. package/lib/components/EditFullPage/EditFullPage.docs-page.js +3 -4
  212. package/lib/components/EditFullPage/EditFullPage.js +1 -2
  213. package/lib/components/EditInPlace/EditInPlace.js +4 -6
  214. package/lib/components/EditSidePanel/EditSidePanel.js +1 -2
  215. package/lib/components/EditTearsheet/EditTearsheet.docs-page.js +3 -4
  216. package/lib/components/EditTearsheet/EditTearsheet.js +5 -8
  217. package/lib/components/EditTearsheet/EditTearsheetForm.js +3 -4
  218. package/lib/components/EditTearsheet/preview-components/MultiFormEditTearsheet.js +4 -5
  219. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -2
  220. package/lib/components/EditUpdateCards/EditUpdateCards.js +1 -2
  221. package/lib/components/EmptyStates/EmptyState.js +2 -4
  222. package/lib/components/EmptyStates/EmptyStateContent.js +1 -2
  223. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -2
  224. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
  225. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -2
  226. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -2
  227. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -2
  228. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -2
  229. package/lib/components/EmptyStates/assets/ErrorIllustration.js +1 -2
  230. package/lib/components/EmptyStates/assets/NoDataIllustration.js +1 -2
  231. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
  232. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
  233. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
  234. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
  235. package/lib/components/ExampleComponent/ExampleComponent.docs-page.js +3 -4
  236. package/lib/components/ExampleComponent/ExampleComponent.js +3 -4
  237. package/lib/components/ExampleComponent/ExampleDeprecatedComponent.js +1 -2
  238. package/lib/components/ExampleComponent/useExample.js +1 -2
  239. package/lib/components/ExportModal/ExportModal.js +3 -4
  240. package/lib/components/ExpressiveCard/ExpressiveCard.js +3 -4
  241. package/lib/components/FilterSummary/FilterSummary.js +1 -2
  242. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -2
  243. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -2
  244. package/lib/components/HTTPErrors/HTTPErrorContent.js +1 -2
  245. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -2
  246. package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +1 -2
  247. package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +1 -2
  248. package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +1 -2
  249. package/lib/components/ImportModal/ImportModal.docs-page.js +1 -2
  250. package/lib/components/ImportModal/ImportModal.js +10 -9
  251. package/lib/components/MultiAddSelect/MultiAddSelect.docs-page.js +1 -2
  252. package/lib/components/MultiAddSelect/MultiAddSelect.js +3 -4
  253. package/lib/components/NotificationsPanel/NotificationsPanel.js +3 -4
  254. package/lib/components/NotificationsPanel/NotificationsPanel_data.js +1 -2
  255. package/lib/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +2 -3
  256. package/lib/components/NotificationsPanel/utils.js +1 -2
  257. package/lib/components/OptionsTile/OptionsTile.js +3 -4
  258. package/lib/components/PageHeader/PageHeader.js +5 -7
  259. package/lib/components/PageHeader/PageHeaderDemo.data.js +3 -4
  260. package/lib/components/PageHeader/PageHeaderTitle.js +2 -4
  261. package/lib/components/PageHeader/PageHeaderUtils.js +5 -9
  262. package/lib/components/ProductiveCard/ProductiveCard.js +3 -4
  263. package/lib/components/RemoveModal/RemoveModal.docs-page.js +1 -2
  264. package/lib/components/RemoveModal/RemoveModal.js +3 -4
  265. package/lib/components/Saving/Saving.js +3 -4
  266. package/lib/components/SidePanel/SidePanel.js +3 -4
  267. package/lib/components/SidePanel/constants.js +2 -3
  268. package/lib/components/SidePanel/motion/variants.js +3 -5
  269. package/lib/components/SimpleHeader/SimpleHeader.docs-page.js +3 -4
  270. package/lib/components/SimpleHeader/SimpleHeader.js +4 -6
  271. package/lib/components/SingleAddSelect/SingleAddSelect.docs-page.js +1 -2
  272. package/lib/components/SingleAddSelect/SingleAddSelect.js +3 -4
  273. package/lib/components/StatusIcon/StatusIcon.docs-page.js +3 -4
  274. package/lib/components/StatusIcon/StatusIcon.js +3 -4
  275. package/lib/components/TagSet/TagSet.js +5 -8
  276. package/lib/components/TagSet/TagSetModal.js +3 -4
  277. package/lib/components/TagSet/TagSetOverflow.js +3 -4
  278. package/lib/components/TagSet/constants.js +2 -3
  279. package/lib/components/Tearsheet/Tearsheet.js +2 -4
  280. package/lib/components/Tearsheet/TearsheetNarrow.js +2 -4
  281. package/lib/components/Tearsheet/TearsheetShell.js +8 -14
  282. package/lib/components/Toolbar/Toolbar.docs-page.js +3 -4
  283. package/lib/components/Toolbar/Toolbar.js +6 -10
  284. package/lib/components/Toolbar/ToolbarButton.js +4 -6
  285. package/lib/components/Toolbar/ToolbarGroup.js +3 -4
  286. package/lib/components/TooltipTrigger/TooltipTrigger.js +1 -2
  287. package/lib/components/TooltipTrigger/useExample.js +1 -2
  288. package/lib/components/UserProfileImage/UserProfileImage.docs-page.js +3 -4
  289. package/lib/components/UserProfileImage/UserProfileImage.js +1 -2
  290. package/lib/components/WebTerminal/WebTerminal.docs-page.js +3 -4
  291. package/lib/components/WebTerminal/WebTerminal.js +3 -4
  292. package/lib/components/WebTerminal/WebTerminalContentWrapper.js +1 -2
  293. package/lib/components/WebTerminal/hooks/index.js +6 -9
  294. package/lib/components/WebTerminal/preview-components/Navigation.js +1 -2
  295. package/lib/components/WebTerminal/preview-components/documentationLinks.js +2 -3
  296. package/lib/components/_Canary/Canary.js +1 -2
  297. package/lib/components/index.js +8 -1
  298. package/lib/global/decorators/sidePanelDecorator.js +2 -3
  299. package/lib/global/js/hooks/useActiveElement.js +2 -3
  300. package/lib/global/js/hooks/useClickOutside.js +2 -3
  301. package/lib/global/js/hooks/useCreateComponentFocus.js +9 -8
  302. package/lib/global/js/hooks/useCreateComponentStepChange.js +30 -20
  303. package/lib/global/js/hooks/usePortalTarget.js +2 -3
  304. package/lib/global/js/hooks/usePreviousValue.js +2 -3
  305. package/lib/global/js/hooks/useResetCreateComponent.js +2 -3
  306. package/lib/global/js/hooks/useResizeObserver.js +2 -3
  307. package/lib/global/js/hooks/useRetrieveFormTitles.js +2 -3
  308. package/lib/global/js/hooks/useRetrieveStepData.js +2 -3
  309. package/lib/global/js/hooks/useValidCreateStepCount.js +2 -3
  310. package/lib/global/js/hooks/useWindowResize.js +2 -3
  311. package/lib/global/js/package-settings.js +6 -5
  312. package/lib/global/js/utils/ClickListener.js +3 -4
  313. package/lib/global/js/utils/DisplayBox.js +1 -2
  314. package/lib/global/js/utils/StoryDocsPage.js +2 -4
  315. package/lib/global/js/utils/Wrap.js +1 -2
  316. package/lib/global/js/utils/deepCloneObject.js +2 -3
  317. package/lib/global/js/utils/devtools.js +1 -2
  318. package/lib/global/js/utils/getBezierValues.js +2 -3
  319. package/lib/global/js/utils/getFocusableElements.js +2 -3
  320. package/lib/global/js/utils/getNodeTextContent.js +2 -3
  321. package/lib/global/js/utils/getNumberOfHiddenSteps.js +2 -3
  322. package/lib/global/js/utils/getScrollbarWidth.js +2 -3
  323. package/lib/global/js/utils/keyboardNavigation.js +4 -8
  324. package/lib/global/js/utils/lastIndexInArray.js +2 -3
  325. package/lib/global/js/utils/motionConstants.js +4 -5
  326. package/lib/global/js/utils/pconsole.js +8 -15
  327. package/lib/global/js/utils/props-helper.js +7 -14
  328. package/lib/global/js/utils/rangeWithCallback.js +2 -3
  329. package/lib/global/js/utils/scrollableAncestor.js +2 -3
  330. package/lib/global/js/utils/story-helper.js +15 -26
  331. package/lib/global/js/utils/test-helper.js +39 -42
  332. package/lib/global/js/utils/unwrap-if-fragment.js +1 -2
  333. package/lib/global/js/utils/uuidv4.js +1 -2
  334. package/lib/global/js/utils/wait.js +1 -2
  335. package/lib/global/js/utils/wrapFocus.js +1 -2
  336. package/lib/settings.js +2 -4
  337. package/package.json +6 -6
  338. package/scss/components/AboutModal/_about-modal.scss +1 -2
  339. package/scss/components/Checklist/_checklist.scss +217 -0
  340. package/scss/components/Checklist/_index.scss +8 -0
  341. package/scss/components/Checklist/_storybook-styles.scss +13 -0
  342. package/scss/components/CreateFullPage/_storybook-styles.scss +1 -1
  343. package/scss/components/Datagrid/_datagrid.scss +1 -0
  344. package/scss/components/Datagrid/styles/_datagrid.scss +1 -2
  345. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +5 -0
  346. package/scss/components/_index.scss +2 -1
@@ -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
 
@@ -31,8 +31,8 @@ var _excluded = ["actions", "className", "maxVisible", "menuOptionsClass", "onWi
31
31
  // Import portions of React that are needed.
32
32
  // Other standard imports.
33
33
  // Carbon and package components we use.
34
- 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); }
35
- 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; }
34
+ 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); }
35
+ 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; }
36
36
  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; }
37
37
  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; }
38
38
  // The block part of our conventional BEM class names (blockClass__E--M).
@@ -44,7 +44,7 @@ var componentName = 'ActionBar';
44
44
  /**
45
45
  * The ActionBar is used internally by the PageHeader to wrap ActionBarItems.
46
46
  */
47
- var ActionBar = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
47
+ var ActionBar = exports.ActionBar = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
48
48
  var actions = _ref.actions,
49
49
  className = _ref.className,
50
50
  maxVisible = _ref.maxVisible,
@@ -202,7 +202,6 @@ var ActionBar = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
202
202
  className: (0, _classnames.default)(["".concat(blockClass, "__displayed-items"), (0, _defineProperty2.default)({}, "".concat(blockClass, "__displayed-items--right"), rightAlign)])
203
203
  }, displayedItems));
204
204
  });
205
- exports.ActionBar = ActionBar;
206
205
  ActionBar.displayName = componentName;
207
206
  ActionBar.propTypes = {
208
207
  /**
@@ -32,7 +32,7 @@ var blockClass = "".concat(_settings.pkg.prefix, "--action-bar-item");
32
32
  /**
33
33
  * The ActionBarItem is used in the page header to populate the action bar
34
34
  */
35
- var ActionBarItem = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
35
+ var ActionBarItem = exports.ActionBarItem = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
36
36
  var label = _ref.label,
37
37
  className = _ref.className,
38
38
  renderIcon = _ref.renderIcon,
@@ -50,7 +50,6 @@ var ActionBarItem = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
50
50
  });
51
51
 
52
52
  // Return a placeholder if not released and not enabled by feature flag
53
- exports.ActionBarItem = ActionBarItem;
54
53
  exports.ActionBarItem = ActionBarItem = _settings.pkg.checkComponentEnabled(ActionBarItem, componentName);
55
54
 
56
55
  // Props the user cannot change
@@ -12,8 +12,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
12
12
  var _react2 = require("@carbon/react");
13
13
  var _uuidv = _interopRequireDefault(require("../../global/js/utils/uuidv4"));
14
14
  var _settings = require("../../settings");
15
- 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); }
16
- 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; }
15
+ 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); }
16
+ 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; }
17
17
  //
18
18
  // Copyright IBM Corp. 2020, 2023
19
19
  //
@@ -31,7 +31,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
31
31
 
32
32
  var blockClass = "".concat(_settings.pkg.prefix, "--action-bar-overflow-items");
33
33
  var componentName = 'ActionBar';
34
- var ActionBarOverflowItems = function ActionBarOverflowItems(_ref) {
34
+ var ActionBarOverflowItems = exports.ActionBarOverflowItems = function ActionBarOverflowItems(_ref) {
35
35
  var className = _ref.className,
36
36
  menuOptionsClass = _ref.menuOptionsClass,
37
37
  overflowItems = _ref.overflowItems,
@@ -63,7 +63,6 @@ var ActionBarOverflowItems = function ActionBarOverflowItems(_ref) {
63
63
  });
64
64
  }));
65
65
  };
66
- exports.ActionBarOverflowItems = ActionBarOverflowItems;
67
66
  ActionBarOverflowItems.displayName = componentName;
68
67
  ActionBarOverflowItems.propTypes = {
69
68
  // expects action bar item as array or in fragment,
@@ -78,7 +78,7 @@ var defaults = {
78
78
  * it appears at the left side. If there is a primary button it appears at the
79
79
  * right.
80
80
  */
81
- var ActionSet = /*#__PURE__*/_react.default.forwardRef(function (_ref3, ref) {
81
+ var ActionSet = exports.ActionSet = /*#__PURE__*/_react.default.forwardRef(function (_ref3, ref) {
82
82
  var _actions$slice, _cx;
83
83
  var actions = _ref3.actions,
84
84
  buttonSize = _ref3.buttonSize,
@@ -121,7 +121,6 @@ var ActionSet = /*#__PURE__*/_react.default.forwardRef(function (_ref3, ref) {
121
121
  }));
122
122
  }));
123
123
  });
124
- exports.ActionSet = ActionSet;
125
124
  ActionSet.displayName = componentName;
126
125
 
127
126
  /**
@@ -11,9 +11,8 @@ exports.actionsOptions = exports.actionsMapping = exports.actionsLabels = void 0
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
13
 
14
- var actionsOptions = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
15
- exports.actionsOptions = actionsOptions;
16
- var actionsLabels = {
14
+ var actionsOptions = exports.actionsOptions = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
15
+ var actionsLabels = exports.actionsLabels = {
17
16
  0: 'None',
18
17
  1: 'One button',
19
18
  2: 'A danger button',
@@ -26,8 +25,7 @@ var actionsLabels = {
26
25
  9: 'Four buttons with one ghost',
27
26
  10: 'Four buttons with two danger'
28
27
  };
29
- exports.actionsLabels = actionsLabels;
30
- var actionsMapping = function actionsMapping(labels, action) {
28
+ var actionsMapping = exports.actionsMapping = function actionsMapping(labels, action) {
31
29
  var _labels$primary, _labels$danger, _labels$secondary, _labels$secondary2, _labels$dangerGhost, _labels$ghost;
32
30
  var act = function act(label, kind, key) {
33
31
  var actionCall = action && action("Click on '".concat(label, "'"));
@@ -60,5 +58,4 @@ var actionsMapping = function actionsMapping(labels, action) {
60
58
  9: [primary, secondary, secondary2, ghost],
61
59
  10: [danger, secondary, secondary2, dangerGhost]
62
60
  };
63
- };
64
- exports.actionsMapping = actionsMapping;
61
+ };
@@ -19,10 +19,10 @@ var _excluded = ["items", "globalFilters"]; //
19
19
  // This source code is licensed under the Apache-2.0 license found in the
20
20
  // LICENSE file in the root directory of this source tree.
21
21
  //
22
- 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); }
23
- 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; }
22
+ 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); }
23
+ 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; }
24
24
  var componentName = 'AddSelect';
25
- var AddSelect = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
25
+ var AddSelect = exports.AddSelect = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
26
26
  var items = _ref.items,
27
27
  globalFilters = _ref.globalFilters,
28
28
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -46,7 +46,6 @@ var AddSelect = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
46
46
  defaultModifiers: defaultModifiers
47
47
  }));
48
48
  });
49
- exports.AddSelect = AddSelect;
50
49
  AddSelect.propTypes = {
51
50
  className: _propTypes.default.string,
52
51
  clearFiltersText: _propTypes.default.string,