@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
@@ -8,7 +8,6 @@ exports.scssCompile = exports.scssCheck = exports.required = exports.mockHTMLEle
8
8
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
9
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
10
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
- var _ref, _ref2, _ref4, _ref5;
12
11
  //
13
12
  // Copyright IBM Corp. 2021, 2021
14
13
  //
@@ -32,7 +31,7 @@ var loadPath2 = r('../../../../../../node_modules');
32
31
  * containing details of the compilation failure.
33
32
  * @param {string} file fully qualified file name of the SCSS file to check.
34
33
  */
35
- var scssCheck = function scssCheck(file) {
34
+ var scssCheck = exports.scssCheck = function scssCheck(file) {
36
35
  // We use the sass cli because this is currently much faster than using
37
36
  // the API owing to the overhead of @import resolution through the API.
38
37
  // When the sass API is revised it may be feasible to switch back to
@@ -48,8 +47,7 @@ var scssCheck = function scssCheck(file) {
48
47
  * of the compilation failure.
49
48
  * @param {string} file fully qualified file name of the SCSS file to compile.
50
49
  */
51
- exports.scssCheck = scssCheck;
52
- var scssCompile = function scssCompile(file) {
50
+ var scssCompile = exports.scssCompile = function scssCompile(file) {
53
51
  var compressed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
54
52
  return (
55
53
  // We use the sass cli because this is currently much faster than using
@@ -77,9 +75,8 @@ var scssCompile = function scssCompile(file) {
77
75
  * This function should be called after tests in order not to pollute other
78
76
  * tests with the installed mocks.
79
77
  */
80
- exports.scssCompile = scssCompile;
81
78
  var hep = HTMLElement.prototype;
82
- var mockHTMLElement = function mockHTMLElement(options) {
79
+ var mockHTMLElement = exports.mockHTMLElement = function mockHTMLElement(options) {
83
80
  var originals = {};
84
81
  for (var option in options) {
85
82
  originals[option] = Object.getOwnPropertyDescriptor(hep, option);
@@ -104,7 +101,6 @@ var mockHTMLElement = function mockHTMLElement(options) {
104
101
 
105
102
  // a utility function used by expectWarn/Error to convert an argument
106
103
  // match element to an expect matcher
107
- exports.mockHTMLElement = mockHTMLElement;
108
104
  var makeMatcher = function makeMatcher(arg) {
109
105
  return typeof arg === 'string' ? expect.stringContaining(arg) : arg instanceof RegExp ? expect.stringMatching(arg) : arg;
110
106
  };
@@ -130,7 +126,7 @@ var makeMatcherArray = function makeMatcherArray(args) {
130
126
  * @param {Function} test the test function to call, during which the call to
131
127
  * console.warn will be expected.
132
128
  */
133
- var expectWarn = function expectWarn(message, test) {
129
+ var expectWarn = exports.expectWarn = function expectWarn(message, test) {
134
130
  var warn = jest.spyOn(console, 'warn').mockImplementation(jest.fn());
135
131
  var result = test();
136
132
  expect(warn).toBeCalledTimes(1);
@@ -143,9 +139,8 @@ var expectWarn = function expectWarn(message, test) {
143
139
  * An async version of expectWarn which awaits the test function and expects the call
144
140
  * to console.warn to have been made.
145
141
  */
146
- exports.expectWarn = expectWarn;
147
- var expectWarnAsync = function expectWarnAsync(_x, _x2) {
148
- return (_ref = _ref || (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(message, test) {
142
+ var expectWarnAsync = exports.expectWarnAsync = /*#__PURE__*/function () {
143
+ var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(message, test) {
149
144
  var _expect;
150
145
  var warn;
151
146
  return _regenerator.default.wrap(function _callee$(_context) {
@@ -163,8 +158,11 @@ var expectWarnAsync = function expectWarnAsync(_x, _x2) {
163
158
  return _context.stop();
164
159
  }
165
160
  }, _callee);
166
- }))).apply(this, arguments);
167
- };
161
+ }));
162
+ return function expectWarnAsync(_x, _x2) {
163
+ return _ref.apply(this, arguments);
164
+ };
165
+ }();
168
166
 
169
167
  /**
170
168
  * A helper function to enable a test to expect multiple calls to
@@ -180,9 +178,8 @@ var expectWarnAsync = function expectWarnAsync(_x, _x2) {
180
178
  * @param {Function} test the test function to call, during which the calls to
181
179
  * console.warn will be expected.
182
180
  */
183
- exports.expectWarnAsync = expectWarnAsync;
184
- var expectMultipleWarn = function expectMultipleWarn(_x3, _x4) {
185
- return (_ref2 = _ref2 || (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(messages, test) {
181
+ var expectMultipleWarn = exports.expectMultipleWarn = /*#__PURE__*/function () {
182
+ var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(messages, test) {
186
183
  var warn, result;
187
184
  return _regenerator.default.wrap(function _callee2$(_context2) {
188
185
  while (1) switch (_context2.prev = _context2.next) {
@@ -204,10 +201,12 @@ var expectMultipleWarn = function expectMultipleWarn(_x3, _x4) {
204
201
  return _context2.stop();
205
202
  }
206
203
  }, _callee2);
207
- }))).apply(this, arguments);
208
- };
209
- exports.expectMultipleWarn = expectMultipleWarn;
210
- var checkLogging = function checkLogging(mockedThing, message) {
204
+ }));
205
+ return function expectMultipleWarn(_x3, _x4) {
206
+ return _ref2.apply(this, arguments);
207
+ };
208
+ }();
209
+ var checkLogging = exports.checkLogging = function checkLogging(mockedThing, message) {
211
210
  if (message) {
212
211
  expect(mockedThing).toBeCalled();
213
212
  // TODO: React 18 update - console messages appear to be failing with calls that look like printf props
@@ -228,9 +227,8 @@ var checkLogging = function checkLogging(mockedThing, message) {
228
227
  * @param {Function} test the test function to call, during which the call to
229
228
  * console.error will be expected.
230
229
  */
231
- exports.checkLogging = checkLogging;
232
- var expectLogging = function expectLogging(_x5, _x6) {
233
- return (_ref4 = _ref4 || (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(_ref3, test) {
230
+ var expectLogging = exports.expectLogging = /*#__PURE__*/function () {
231
+ var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(_ref3, test) {
234
232
  var errors, warnings, error, warn, result;
235
233
  return _regenerator.default.wrap(function _callee3$(_context3) {
236
234
  while (1) switch (_context3.prev = _context3.next) {
@@ -252,8 +250,11 @@ var expectLogging = function expectLogging(_x5, _x6) {
252
250
  return _context3.stop();
253
251
  }
254
252
  }, _callee3);
255
- }))).apply(this, arguments);
256
- };
253
+ }));
254
+ return function expectLogging(_x5, _x6) {
255
+ return _ref4.apply(this, arguments);
256
+ };
257
+ }();
257
258
 
258
259
  /**
259
260
  * A helper function to enable a test to expect a single call to
@@ -268,8 +269,7 @@ var expectLogging = function expectLogging(_x5, _x6) {
268
269
  * @param {Function} test the test function to call, during which the call to
269
270
  * console.error will be expected.
270
271
  */
271
- exports.expectLogging = expectLogging;
272
- var expectError = function expectError(message, test) {
272
+ var expectError = exports.expectError = function expectError(message, test) {
273
273
  var error = jest.spyOn(console, 'error').mockImplementation(jest.fn());
274
274
  var result = test();
275
275
  checkLogging(error, message);
@@ -291,9 +291,8 @@ var expectError = function expectError(message, test) {
291
291
  * @param {Function} test the test function to call, during which the calls to
292
292
  * console.error will be expected.
293
293
  */
294
- exports.expectError = expectError;
295
- var expectMultipleError = function expectMultipleError(_x7, _x8) {
296
- return (_ref5 = _ref5 || (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(messages, test) {
294
+ var expectMultipleError = exports.expectMultipleError = /*#__PURE__*/function () {
295
+ var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(messages, test) {
297
296
  var error, result;
298
297
  return _regenerator.default.wrap(function _callee4$(_context4) {
299
298
  while (1) switch (_context4.prev = _context4.next) {
@@ -320,8 +319,11 @@ var expectMultipleError = function expectMultipleError(_x7, _x8) {
320
319
  return _context4.stop();
321
320
  }
322
321
  }, _callee4);
323
- }))).apply(this, arguments);
324
- };
322
+ }));
323
+ return function expectMultipleError(_x7, _x8) {
324
+ return _ref5.apply(this, arguments);
325
+ };
326
+ }();
325
327
 
326
328
  /**
327
329
  * Return an expect matcher for a prop deprecation, suitable to pass to expectWarn
@@ -329,8 +331,7 @@ var expectMultipleError = function expectMultipleError(_x7, _x8) {
329
331
  * @param {string} propName the prop name that is deprecated, or a matching regex
330
332
  * @param {string} componentName the component name on which the prop is defined, or a matching regex
331
333
  */
332
- exports.expectMultipleError = expectMultipleError;
333
- var deprecated = function deprecated(propName, componentName) {
334
+ var deprecated = exports.deprecated = function deprecated(propName, componentName) {
334
335
  var additionalInfo = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
335
336
  return expect.stringMatching(new RegExp("^The prop `".concat(propName, "` of `").concat(componentName, "` has been deprecated and will soon be removed. ").concat(additionalInfo)));
336
337
  };
@@ -341,8 +342,7 @@ var deprecated = function deprecated(propName, componentName) {
341
342
  * @param {string} propName the prop name whose usage has changed
342
343
  * @param {string} componentName the component name on which the prop is defined
343
344
  */
344
- exports.deprecated = deprecated;
345
- var deprecatedUsage = function deprecatedUsage(propName, componentName) {
345
+ var deprecatedUsage = exports.deprecatedUsage = function deprecatedUsage(propName, componentName) {
346
346
  var additionalInfo = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
347
347
  return expect.stringMatching(new RegExp("^The usage of the prop `".concat(propName, "` of `").concat(componentName, "` has been changed and support for the old usage will soon be removed. ").concat(additionalInfo)));
348
348
  };
@@ -353,8 +353,7 @@ var deprecatedUsage = function deprecatedUsage(propName, componentName) {
353
353
  * @param {string} propName the prop name that is required, or a matching regex
354
354
  * @param {string} componentName the component name on which the prop is defined, or a matching regex
355
355
  */
356
- exports.deprecatedUsage = deprecatedUsage;
357
- var required = function required(propName, componentName) {
356
+ var required = exports.required = function required(propName, componentName) {
358
357
  return expect.stringMatching(new RegExp("^Warning: Failed prop type: The prop `".concat(propName, "` is marked as required in `").concat(componentName, "`, but its value is `(.*)`.")));
359
358
  };
360
359
 
@@ -366,8 +365,6 @@ var required = function required(propName, componentName) {
366
365
  * @param {string} suppliedType the type that is being supplied, or a matching regex
367
366
  * @param {string} expectedType the type that is expected, or a matching regex
368
367
  */
369
- exports.required = required;
370
- var invalid = function invalid(propName, componentName, suppliedType, expectedType) {
368
+ var invalid = exports.invalid = function invalid(propName, componentName, suppliedType, expectedType) {
371
369
  return expect.stringMatching(new RegExp("^Warning: Failed prop type: Invalid prop `".concat(propName, "` of type `").concat(suppliedType, "` supplied to `").concat(componentName, "`, expected `").concat(expectedType, "`.")));
372
- };
373
- exports.invalid = invalid;
370
+ };
@@ -66,5 +66,4 @@ var unwrapIfFragment = function unwrapIfFragment(children) {
66
66
  });
67
67
  return keyedChildren;
68
68
  };
69
- var _default = unwrapIfFragment;
70
- exports.default = _default;
69
+ var _default = exports.default = unwrapIfFragment;
@@ -14,5 +14,4 @@ function uuidv4() {
14
14
  return (c ^ randomValues(c)).toString(16);
15
15
  });
16
16
  }
17
- var _default = uuidv4;
18
- exports.default = _default;
17
+ var _default = exports.default = uuidv4;
@@ -11,5 +11,4 @@ function wait(ms) {
11
11
  return setTimeout(resolve, ms);
12
12
  });
13
13
  }
14
- var _default = wait;
15
- exports.default = _default;
14
+ var _default = exports.default = wait;
@@ -70,5 +70,4 @@ function wrapFocus(_ref) {
70
70
  }
71
71
  }
72
72
  }
73
- var _default = wrapFocus;
74
- exports.default = _default;
73
+ var _default = exports.default = wrapFocus;
package/lib/settings.js CHANGED
@@ -10,13 +10,12 @@ var _packageSettings = _interopRequireDefault(require("./global/js/package-setti
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _themes = require("@carbon/themes");
12
12
  var _pconsole = _interopRequireDefault(require("./global/js/utils/pconsole"));
13
- var carbon = {
13
+ var carbon = exports.carbon = {
14
14
  get themes() {
15
15
  return _themes.themes;
16
16
  },
17
17
  prefix: 'cds'
18
18
  };
19
- exports.carbon = carbon;
20
19
  var componentDeprecatedWarning = function componentDeprecatedWarning(name, details) {
21
20
  return "Carbon for IBM Products (WARNING): Component \"".concat(name, "\" is deprecated. ").concat(details);
22
21
  };
@@ -90,5 +89,4 @@ _packageSettings.default.checkComponentEnabled = function (component, name) {
90
89
  });
91
90
  }
92
91
  };
93
- var pkg = _packageSettings.default;
94
- exports.pkg = pkg;
92
+ var pkg = exports.pkg = _packageSettings.default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.12.1",
4
+ "version": "2.13.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -87,14 +87,14 @@
87
87
  "react-window": "^1.8.9"
88
88
  },
89
89
  "peerDependencies": {
90
- "@carbon/grid": "^11.19.0",
90
+ "@carbon/grid": "^11.20.0",
91
91
  "@carbon/layout": "^11.19.0",
92
92
  "@carbon/motion": "^11.15.0",
93
- "@carbon/react": "^1.37.0",
94
- "@carbon/themes": "^11.24.0",
95
- "@carbon/type": "^11.23.0",
93
+ "@carbon/react": "^1.40.0",
94
+ "@carbon/themes": "^11.25.0",
95
+ "@carbon/type": "^11.24.0",
96
96
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
97
97
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
98
98
  },
99
- "gitHead": "c27ea01ddb03bae10002fd7fc853159cacc14204"
99
+ "gitHead": "0f226a6af5fd9c21aa5d39f26266f561895385b9"
100
100
  }
@@ -39,12 +39,11 @@ $block-class: #{c4p-settings.$pkg-prefix}--about-modal;
39
39
  .#{$block-class} .#{$block-class}__body {
40
40
  @include type.type-style('body-compact-02');
41
41
 
42
+ overflow: hidden auto;
42
43
  min-height: $spacing-10;
43
44
  padding: 0 20% 0 $spacing-05;
44
45
  margin-bottom: $spacing-06;
45
46
  grid-row: auto;
46
- overflow-x: hidden;
47
- overflow-y: auto;
48
47
  }
49
48
 
50
49
  .#{$block-class}
@@ -0,0 +1,217 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 2023
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ // Standard imports.
9
+ @use '@carbon/layout/scss/convert' as *;
10
+
11
+ @use '@carbon/styles/scss/motion' as *;
12
+ @use '@carbon/styles/scss/spacing' as *;
13
+ @use '@carbon/styles/scss/theme' as *;
14
+ @use '@carbon/styles/scss/type' as *;
15
+ @use '../../global/styles/project-settings' as c4p-settings;
16
+
17
+ @mixin ellipsis-2-lines {
18
+ display: -webkit-box;
19
+ overflow: hidden;
20
+ -webkit-box-orient: vertical;
21
+ -webkit-line-clamp: 2;
22
+ text-overflow: ellipsis;
23
+ }
24
+
25
+ // The block part of our conventional BEM class names (blockClass__E--M).
26
+ $block-class: #{c4p-settings.$pkg-prefix}--checklist;
27
+
28
+ // .#{$block-class} {
29
+ .#{$block-class}__header {
30
+ display: flex;
31
+ padding: $spacing-05;
32
+ background-color: $layer-01;
33
+ gap: $spacing-03;
34
+ }
35
+
36
+ .#{$block-class}__chart {
37
+ // outer donut
38
+ position: relative;
39
+ width: $spacing-08;
40
+ min-width: $spacing-08;
41
+ height: $spacing-08;
42
+ align-self: center;
43
+ }
44
+
45
+ .#{$block-class}__chart::after {
46
+ // inner donut
47
+ position: absolute;
48
+ top: $spacing-02;
49
+ left: $spacing-02;
50
+ width: $spacing-07;
51
+ height: $spacing-07;
52
+ border-radius: 50%;
53
+ background-color: $layer-01;
54
+ content: '';
55
+ }
56
+
57
+ // Align __title and __chart-label vertically centered in the header.
58
+ .#{$block-class}__titles {
59
+ display: flex;
60
+ flex-direction: column;
61
+ justify-content: center;
62
+ }
63
+
64
+ .#{$block-class}__title {
65
+ @include type-style('productive-heading-02');
66
+ @include ellipsis-2-lines();
67
+ }
68
+
69
+ .#{$block-class}__chart-label {
70
+ @include type-style('label-01');
71
+ @include ellipsis-2-lines();
72
+
73
+ color: $text-secondary;
74
+ }
75
+
76
+ .#{$block-class}__title + .#{$block-class}__chart-label {
77
+ margin-top: $spacing-01;
78
+ }
79
+
80
+ // TOGGLE
81
+ // The <iconbutton> itself (class="...__toggle") is embedded inside two more tags,
82
+ // which do not accept any classnames passed via the <iconbutton>.
83
+ // So, we have to refer to it via it's "tooltip" wrapper element. :/
84
+ .#{$block-class}__header .#{c4p-settings.$carbon-prefix}--tooltip {
85
+ height: 2rem;
86
+ margin-top: calc(-1 * $spacing-03);
87
+ margin-right: calc(-1 * $spacing-03);
88
+ margin-left: auto;
89
+ }
90
+
91
+ .#{$block-class}__chevron {
92
+ color: $text-primary;
93
+ transform: rotate(0deg);
94
+ transition: all $duration-fast-02 motion(standard, productive);
95
+
96
+ /* stylelint-disable-next-line max-nesting-depth */
97
+ @media (prefers-reduced-motion: reduce) {
98
+ transition: none;
99
+ }
100
+ }
101
+
102
+ .#{$block-class}__closed .#{$block-class}__chevron {
103
+ transform: rotate(-180deg);
104
+ }
105
+
106
+ // Button to appear more like a link so it aligns better with the list text.
107
+ // Override Primary button styling to appear more like a link.
108
+ // "Unset" some settings to allow an inner div to enable multiple lines and an ellipsis if req'd.
109
+ .#{$block-class}__button.#{c4p-settings.$carbon-prefix}--btn--primary {
110
+ max-width: none;
111
+ min-height: auto;
112
+ // override bx--btn to allow two-line ellipsis
113
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list */
114
+ flex-shrink: unset;
115
+ padding: 0;
116
+ border: none;
117
+ background-color: transparent;
118
+ color: $link-primary;
119
+ }
120
+ // The CSS for the Carbon button's label
121
+ // is incompatible with two-line ellipsis,
122
+ // but a div inside a Carbon button works.
123
+ .#{$block-class}__button.#{c4p-settings.$carbon-prefix}--btn--primary div {
124
+ @include ellipsis-2-lines();
125
+ }
126
+
127
+ .#{$block-class}__button.#{c4p-settings.$carbon-prefix}--btn--primary:hover {
128
+ background: transparent;
129
+ color: $link-primary-hover;
130
+ text-decoration: underline;
131
+ }
132
+
133
+ .#{$block-class}__button.#{c4p-settings.$carbon-prefix}--btn--primary:active {
134
+ background: transparent;
135
+ color: $text-primary;
136
+ text-decoration: underline;
137
+ }
138
+
139
+ .#{$block-class}__button--error {
140
+ /* stylelint-disable-next-line declaration-no-important */
141
+ color: $text-error !important;
142
+ }
143
+
144
+ // container for animated content
145
+ .#{$block-class}__content-outer {
146
+ overflow: hidden;
147
+ }
148
+
149
+ .#{$block-class}__content-inner {
150
+ height: 100%;
151
+ background-color: $layer-01;
152
+ transform: translate(0, 0);
153
+ transition: all $duration-fast-02 motion(standard, productive);
154
+
155
+ /* stylelint-disable-next-line max-nesting-depth */
156
+ @media (prefers-reduced-motion: reduce) {
157
+ transition: none;
158
+ }
159
+ }
160
+
161
+ .#{$block-class}__closed .#{$block-class}__content-inner {
162
+ height: 0;
163
+ transform: translate(0, -100%);
164
+ }
165
+
166
+ .#{$block-class}__list-group {
167
+ padding: $spacing-05;
168
+ border-top: 1px solid $border-subtle-01;
169
+ }
170
+
171
+ .#{$block-class}__list-title {
172
+ @include type-style('body-short-01');
173
+ @include ellipsis-2-lines();
174
+
175
+ margin-bottom: $spacing-03;
176
+ }
177
+
178
+ .#{$block-class}__list-item {
179
+ display: flex;
180
+ margin-bottom: $spacing-03;
181
+ }
182
+
183
+ .#{$block-class}__list-item:last-child {
184
+ margin-bottom: 0;
185
+ }
186
+
187
+ .#{$block-class}__icon {
188
+ /* stylelint-disable-next-line -- to-rem carbon replacement for rem */
189
+ margin: to-rem(1px) $spacing-03 0 0;
190
+ color: $link-primary;
191
+ }
192
+
193
+ .#{$block-class}__icon--error {
194
+ color: $support-error;
195
+ }
196
+
197
+ .#{$block-class}__icon--disabled {
198
+ color: $icon-disabled;
199
+ }
200
+
201
+ .#{$block-class}__label {
202
+ @include type-style('body-short-01');
203
+ @include ellipsis-2-lines();
204
+ }
205
+
206
+ .#{$block-class}__label--checked,
207
+ .#{$block-class}__label--disabled,
208
+ .#{$block-class}__label--error {
209
+ color: $text-disabled;
210
+ }
211
+
212
+ .#{$block-class}__footer {
213
+ @include ellipsis-2-lines();
214
+
215
+ padding: $spacing-03 $spacing-05;
216
+ border-top: 1px solid $border-subtle;
217
+ }
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 2023
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @use './checklist';
@@ -0,0 +1,13 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 2023
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @use '@carbon/styles/scss/spacing' as *;
9
+
10
+ .checklist-stories__viewport {
11
+ min-width: calc(2 * $spacing-13); // 320px
12
+ max-width: calc(2 * $spacing-13);
13
+ }
@@ -58,7 +58,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--create-full-page;
58
58
  .#{$story-class}__error--text {
59
59
  @include type.type-style('label-01');
60
60
 
61
- padding-bottom: $spacing-05;
61
+ margin-bottom: $spacing-05;
62
62
  }
63
63
 
64
64
  .#{$block-class}
@@ -24,6 +24,7 @@
24
24
  // Datagrid uses the following Carbon for IBM Products components:
25
25
  // TODO: @use(s) of IBM Products component styles used by Datagrid
26
26
  @use '../ButtonMenu';
27
+ @use '../FilterSummary';
27
28
 
28
29
  // The block part of our conventional BEM class names (blockClass__E--M).
29
30
  $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
@@ -360,8 +360,7 @@
360
360
  .#{$block-class}__simple-body {
361
361
  position: relative;
362
362
  display: table;
363
- overflow-x: hidden;
364
- overflow-y: auto;
363
+ overflow: hidden auto;
365
364
  //makes thin scrollbar in chrome and firefox
366
365
  scrollbar-width: thin;
367
366
  }
@@ -43,3 +43,8 @@
43
43
  height: $spacing-09;
44
44
  justify-content: center;
45
45
  }
46
+
47
+ .#{variables.$block-class}
48
+ .#{variables.$block-class}__row-size__row-settings-trigger--open.#{c4p-settings.$carbon-prefix}--btn--ghost {
49
+ background-color: $layer-02;
50
+ }
@@ -23,7 +23,7 @@
23
23
  @use './EmptyStates';
24
24
  @use './ExportModal';
25
25
  @use './ExpressiveCard';
26
- @use './FilterSummary/index';
26
+ @use './FilterSummary';
27
27
  @use './HTTPErrors';
28
28
  @use './ImportModal';
29
29
  @use './MultiAddSelect';
@@ -50,3 +50,4 @@
50
50
  @use './EditTearsheetNarrow';
51
51
  @use './EditFullPage';
52
52
  @use './EditUpdateCards';
53
+ @use './Checklist';