@carbon/ibm-products 2.0.0-rc.2 → 2.0.0-rc.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (380) hide show
  1. package/README.md +2 -2
  2. package/css/index-full-carbon.css +1368 -401
  3. package/css/index-full-carbon.css.map +1 -1
  4. package/css/index-full-carbon.min.css +6 -8
  5. package/css/index-full-carbon.min.css.map +1 -1
  6. package/css/index-without-carbon-released-only.css +1413 -385
  7. package/css/index-without-carbon-released-only.css.map +1 -1
  8. package/css/index-without-carbon-released-only.min.css +4 -8
  9. package/css/index-without-carbon-released-only.min.css.map +1 -1
  10. package/css/index-without-carbon.css +1292 -456
  11. package/css/index-without-carbon.css.map +1 -1
  12. package/css/index-without-carbon.min.css +6 -8
  13. package/css/index-without-carbon.min.css.map +1 -1
  14. package/css/index.css +1165 -334
  15. package/css/index.css.map +1 -1
  16. package/css/index.min.css +6 -8
  17. package/css/index.min.css.map +1 -1
  18. package/es/components/APIKeyModal/APIKeyModal.js +1 -1
  19. package/es/components/ActionBar/ActionBarOverflowItems.js +1 -0
  20. package/es/components/ActionSet/ActionSet.js +7 -3
  21. package/es/components/AddSelect/AddSelect.js +6 -6
  22. package/es/components/AddSelect/AddSelectBody.js +73 -32
  23. package/es/components/AddSelect/AddSelectBreadcrumbs.js +12 -4
  24. package/es/components/AddSelect/AddSelectColumn.js +8 -8
  25. package/es/components/AddSelect/AddSelectFilter.js +10 -7
  26. package/es/components/AddSelect/AddSelectList.js +64 -29
  27. package/es/components/AddSelect/AddSelectMetaPanel.js +7 -1
  28. package/es/components/AddSelect/AddSelectSidebar.js +5 -2
  29. package/es/components/AddSelect/AddSelectSort.js +2 -2
  30. package/es/components/AddSelect/add-select-utils.js +9 -2
  31. package/es/components/AddSelect/hooks/useItemSort.js +6 -0
  32. package/es/components/AddSelect/hooks/useParentSelect.js +6 -0
  33. package/es/components/AddSelect/hooks/usePath.js +23 -2
  34. package/es/components/AddSelect/index.js +1 -1
  35. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -6
  36. package/es/components/ButtonMenu/ButtonMenu.js +4 -3
  37. package/es/components/Card/Card.js +16 -6
  38. package/es/components/Card/CardFooter.js +3 -1
  39. package/es/components/Card/CardHeader.js +20 -1
  40. package/es/components/ComboButton/ComboButton.js +1 -1
  41. package/es/components/CreateFullPage/CreateFullPage.js +13 -3
  42. package/es/components/CreateTearsheet/CreateTearsheet.js +17 -3
  43. package/es/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +3 -1
  44. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
  45. package/es/components/DataSpreadsheet/DataSpreadsheet.js +65 -15
  46. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -1
  47. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +7 -0
  48. package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +6 -5
  49. package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +42 -0
  50. package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +1 -1
  51. package/es/components/Datagrid/Datagrid/Datagrid.js +16 -40
  52. package/es/components/Datagrid/Datagrid/DatagridContent.js +194 -0
  53. package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +18 -8
  54. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +9 -1
  55. package/es/components/Datagrid/Datagrid/DatagridHead.js +1 -2
  56. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -4
  57. package/es/components/Datagrid/Datagrid/DatagridRow.js +44 -7
  58. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +11 -5
  59. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +13 -4
  60. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -2
  61. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +14 -10
  62. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +32 -11
  63. package/es/components/Datagrid/Datagrid/DraggableElement.js +12 -4
  64. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +11 -54
  65. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +15 -14
  66. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +63 -31
  67. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +193 -0
  68. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +56 -0
  69. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/index.js +1 -1
  70. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +484 -0
  71. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +514 -0
  72. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +91 -0
  73. package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +28 -0
  74. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +9 -0
  75. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useInitialStateFromFilters.js +25 -0
  76. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +38 -0
  77. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +25 -0
  78. package/es/components/Datagrid/Datagrid/addons/Filtering/index.js +9 -0
  79. package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +55 -0
  80. package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +72 -0
  81. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +60 -0
  82. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/index.js +1 -0
  83. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +541 -0
  84. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/index.js +1 -0
  85. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +112 -0
  86. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +27 -0
  87. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/index.js +1 -0
  88. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +39 -0
  89. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +19 -0
  90. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +262 -0
  91. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +87 -0
  92. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +17 -14
  93. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +13 -36
  94. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/index.js +0 -1
  95. package/es/components/Datagrid/index.js +4 -1
  96. package/es/components/Datagrid/useActionsColumn.js +28 -12
  97. package/es/components/Datagrid/useColumnOrder.js +8 -0
  98. package/es/components/Datagrid/useCustomizeColumns.js +13 -8
  99. package/es/components/Datagrid/useDisableSelectRows.js +6 -2
  100. package/es/components/Datagrid/useExpandedRow.js +0 -1
  101. package/es/components/Datagrid/useFiltering.js +99 -0
  102. package/es/components/Datagrid/useInfiniteScroll.js +5 -2
  103. package/es/components/Datagrid/useInlineEdit.js +71 -0
  104. package/es/components/Datagrid/useNestedRowExpander.js +47 -0
  105. package/es/components/Datagrid/useNestedRows.js +16 -4
  106. package/es/components/Datagrid/useParentDimensions.js +3 -1
  107. package/es/components/Datagrid/useRowExpander.js +12 -4
  108. package/es/components/Datagrid/useRowSize.js +17 -6
  109. package/es/components/Datagrid/useSelectAllToggle.js +17 -4
  110. package/es/components/Datagrid/useSelectRows.js +13 -4
  111. package/es/components/Datagrid/useSortableColumns.js +15 -9
  112. package/es/components/Datagrid/useStickyColumn.js +11 -0
  113. package/es/components/Datagrid/utils/DatagridActions.js +249 -0
  114. package/es/components/Datagrid/utils/DatagridPagination.js +33 -0
  115. package/es/components/Datagrid/utils/Wrapper.js +21 -0
  116. package/es/components/Datagrid/utils/getArgTypes.js +94 -0
  117. package/es/components/Datagrid/utils/getInlineEditColumns.js +159 -0
  118. package/es/components/Datagrid/utils/makeData.js +54 -1
  119. package/es/components/EditUpdateCards/EditUpdateCards.js +144 -0
  120. package/es/components/EditUpdateCards/index.js +7 -0
  121. package/es/components/ExportModal/ExportModal.js +1 -1
  122. package/es/components/FilterSummary/FilterSummary.js +54 -0
  123. package/es/components/FilterSummary/index.js +7 -0
  124. package/es/components/ImportModal/ImportModal.js +3 -3
  125. package/es/components/InlineEdit/InlineEdit.js +28 -426
  126. package/es/components/InlineEditV1/InlineEditV1.js +447 -0
  127. package/es/components/InlineEditV1/index.js +7 -0
  128. package/es/components/InlineEditV2/InlineEditV2.js +289 -0
  129. package/es/components/InlineEditV2/index.js +7 -0
  130. package/es/components/ModifiedTabs/ModifiedTabLabelNew.js +1 -1
  131. package/es/components/ModifiedTabs/ModifiedTabLabelWithClose.js +1 -1
  132. package/es/components/MultiAddSelect/MultiAddSelect.js +14 -7
  133. package/es/components/MultiAddSelect/index.js +6 -0
  134. package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
  135. package/es/components/OptionsTile/OptionsTile.js +32 -16
  136. package/es/components/PageHeader/PageHeader.js +4 -4
  137. package/es/components/PageHeader/PageHeaderTitle.js +1 -1
  138. package/es/components/ProductiveCard/ProductiveCard.js +5 -0
  139. package/es/components/RemoveModal/RemoveModal.js +20 -3
  140. package/es/components/Saving/Saving.js +1 -1
  141. package/es/components/SidePanel/SidePanel.js +45 -52
  142. package/es/components/SidePanel/motion/variants.js +45 -0
  143. package/es/components/SingleAddSelect/SingleAddSelect.js +6 -0
  144. package/es/components/SingleAddSelect/index.js +6 -0
  145. package/es/components/StatusIcon/StatusIcon.js +1 -1
  146. package/es/components/Tearsheet/Tearsheet.js +5 -0
  147. package/es/components/Tearsheet/TearsheetNarrow.js +5 -0
  148. package/es/components/Tearsheet/TearsheetShell.js +1 -1
  149. package/es/components/UserProfileImage/UserProfileImage.js +1 -1
  150. package/es/components/WebTerminal/WebTerminal.js +1 -1
  151. package/es/components/WebTerminal/preview-components/Navigation.js +1 -1
  152. package/es/components/index.js +4 -3
  153. package/es/global/js/hooks/index.js +2 -1
  154. package/es/global/js/hooks/useClickOutside.js +1 -1
  155. package/es/global/js/hooks/useControllableState.js +83 -0
  156. package/es/global/js/hooks/useCreateComponentFocus.js +38 -10
  157. package/es/global/js/hooks/useResetCreateComponent.js +6 -2
  158. package/es/global/js/package-settings.js +9 -6
  159. package/es/global/js/utils/getBezierValues.js +20 -0
  160. package/es/global/js/utils/getNumberOfHiddenSteps.js +19 -0
  161. package/es/global/js/utils/motionConstants.js +45 -0
  162. package/es/global/js/utils/rangeWithCallback.js +13 -0
  163. package/es/global/js/utils/story-helper.js +5 -1
  164. package/es/global/js/utils/uuidv4.spec.js +4 -0
  165. package/lib/components/APIKeyModal/APIKeyModal.js +4 -4
  166. package/lib/components/ActionBar/ActionBarOverflowItems.js +1 -0
  167. package/lib/components/ActionSet/ActionSet.js +7 -3
  168. package/lib/components/AddSelect/AddSelect.js +5 -6
  169. package/lib/components/AddSelect/AddSelectBody.js +68 -31
  170. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +15 -4
  171. package/lib/components/AddSelect/AddSelectColumn.js +7 -7
  172. package/lib/components/AddSelect/AddSelectFilter.js +9 -6
  173. package/lib/components/AddSelect/AddSelectList.js +65 -30
  174. package/lib/components/AddSelect/AddSelectMetaPanel.js +8 -2
  175. package/lib/components/AddSelect/AddSelectSidebar.js +4 -1
  176. package/lib/components/AddSelect/AddSelectSort.js +5 -5
  177. package/lib/components/AddSelect/add-select-utils.js +9 -2
  178. package/lib/components/AddSelect/hooks/useItemSort.js +6 -0
  179. package/lib/components/AddSelect/hooks/useParentSelect.js +6 -0
  180. package/lib/components/AddSelect/hooks/usePath.js +16 -1
  181. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +6 -6
  182. package/lib/components/ButtonMenu/ButtonMenu.js +4 -3
  183. package/lib/components/Card/Card.js +16 -6
  184. package/lib/components/Card/CardFooter.js +3 -1
  185. package/lib/components/Card/CardHeader.js +21 -1
  186. package/lib/components/ComboButton/ComboButton.js +3 -3
  187. package/lib/components/CreateFullPage/CreateFullPage.js +13 -3
  188. package/lib/components/CreateTearsheet/CreateTearsheet.js +18 -3
  189. package/lib/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +3 -1
  190. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
  191. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +65 -14
  192. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -1
  193. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +7 -0
  194. package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +6 -5
  195. package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +53 -0
  196. package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +1 -1
  197. package/lib/components/Datagrid/Datagrid/Datagrid.js +19 -47
  198. package/lib/components/Datagrid/Datagrid/DatagridContent.js +230 -0
  199. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +19 -9
  200. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +9 -1
  201. package/lib/components/Datagrid/Datagrid/DatagridHead.js +1 -3
  202. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -5
  203. package/lib/components/Datagrid/Datagrid/DatagridRow.js +46 -8
  204. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +14 -6
  205. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +16 -5
  206. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -2
  207. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +14 -10
  208. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +33 -10
  209. package/lib/components/Datagrid/Datagrid/DraggableElement.js +12 -4
  210. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +11 -49
  211. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +11 -8
  212. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +76 -46
  213. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/{CustomizeColumnsModal.js → CustomizeColumnsTearsheet.js} +85 -48
  214. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/{ModalWrapper.js → TearsheetWrapper.js} +32 -36
  215. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/index.js +3 -3
  216. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +505 -0
  217. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +538 -0
  218. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +112 -0
  219. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +47 -0
  220. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +31 -0
  221. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useInitialStateFromFilters.js +37 -0
  222. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +50 -0
  223. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +35 -0
  224. package/lib/components/Datagrid/Datagrid/addons/Filtering/index.js +37 -0
  225. package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +67 -0
  226. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +82 -0
  227. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +76 -0
  228. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/index.js +13 -0
  229. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +566 -0
  230. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/index.js +13 -0
  231. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +129 -0
  232. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +36 -0
  233. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/index.js +19 -0
  234. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +45 -0
  235. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +28 -0
  236. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +271 -0
  237. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +100 -0
  238. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +17 -13
  239. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +13 -35
  240. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/index.js +0 -8
  241. package/lib/components/Datagrid/index.js +25 -1
  242. package/lib/components/Datagrid/useActionsColumn.js +28 -13
  243. package/lib/components/Datagrid/useColumnOrder.js +17 -0
  244. package/lib/components/Datagrid/useCustomizeColumns.js +12 -7
  245. package/lib/components/Datagrid/useDisableSelectRows.js +6 -2
  246. package/lib/components/Datagrid/useExpandedRow.js +0 -1
  247. package/lib/components/Datagrid/useFiltering.js +105 -0
  248. package/lib/components/Datagrid/useInfiniteScroll.js +5 -2
  249. package/lib/components/Datagrid/useInlineEdit.js +85 -0
  250. package/lib/components/Datagrid/useNestedRowExpander.js +63 -0
  251. package/lib/components/Datagrid/useNestedRows.js +17 -4
  252. package/lib/components/Datagrid/useParentDimensions.js +3 -1
  253. package/lib/components/Datagrid/useRowExpander.js +17 -5
  254. package/lib/components/Datagrid/useRowSize.js +18 -13
  255. package/lib/components/Datagrid/useSelectAllToggle.js +18 -4
  256. package/lib/components/Datagrid/useSelectRows.js +13 -4
  257. package/lib/components/Datagrid/useSortableColumns.js +16 -7
  258. package/lib/components/Datagrid/useStickyColumn.js +11 -0
  259. package/lib/components/Datagrid/utils/DatagridActions.js +275 -0
  260. package/lib/components/Datagrid/utils/DatagridPagination.js +46 -0
  261. package/lib/components/Datagrid/utils/Wrapper.js +33 -0
  262. package/lib/components/Datagrid/utils/getArgTypes.js +102 -0
  263. package/lib/components/Datagrid/utils/getInlineEditColumns.js +174 -0
  264. package/lib/components/Datagrid/utils/makeData.js +56 -2
  265. package/lib/components/EditUpdateCards/EditUpdateCards.js +152 -0
  266. package/lib/components/EditUpdateCards/index.js +13 -0
  267. package/lib/components/ExportModal/ExportModal.js +3 -3
  268. package/lib/components/FilterSummary/FilterSummary.js +72 -0
  269. package/lib/components/FilterSummary/index.js +15 -0
  270. package/lib/components/ImportModal/ImportModal.js +4 -4
  271. package/lib/components/InlineEdit/InlineEdit.js +27 -426
  272. package/lib/components/InlineEditV1/InlineEditV1.js +464 -0
  273. package/lib/components/InlineEditV1/index.js +13 -0
  274. package/lib/components/InlineEditV2/InlineEditV2.js +309 -0
  275. package/lib/components/InlineEditV2/index.js +13 -0
  276. package/lib/components/ModifiedTabs/ModifiedTabLabelNew.js +2 -2
  277. package/lib/components/ModifiedTabs/ModifiedTabLabelWithClose.js +3 -3
  278. package/lib/components/MultiAddSelect/MultiAddSelect.js +14 -7
  279. package/lib/components/NotificationsPanel/NotificationsPanel.js +8 -8
  280. package/lib/components/OptionsTile/OptionsTile.js +36 -19
  281. package/lib/components/PageHeader/PageHeader.js +5 -5
  282. package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
  283. package/lib/components/ProductiveCard/ProductiveCard.js +5 -0
  284. package/lib/components/RemoveModal/RemoveModal.js +20 -3
  285. package/lib/components/Saving/Saving.js +5 -5
  286. package/lib/components/SidePanel/SidePanel.js +48 -53
  287. package/lib/components/SidePanel/motion/variants.js +55 -0
  288. package/lib/components/SingleAddSelect/SingleAddSelect.js +6 -0
  289. package/lib/components/StatusIcon/StatusIcon.js +45 -45
  290. package/lib/components/Tearsheet/Tearsheet.js +5 -0
  291. package/lib/components/Tearsheet/TearsheetNarrow.js +5 -0
  292. package/lib/components/Tearsheet/TearsheetShell.js +1 -1
  293. package/lib/components/UserProfileImage/UserProfileImage.js +7 -7
  294. package/lib/components/WebTerminal/WebTerminal.js +3 -3
  295. package/lib/components/WebTerminal/preview-components/Navigation.js +4 -4
  296. package/lib/components/index.js +33 -1
  297. package/lib/global/js/hooks/index.js +9 -1
  298. package/lib/global/js/hooks/useClickOutside.js +1 -1
  299. package/lib/global/js/hooks/useControllableState.js +94 -0
  300. package/lib/global/js/hooks/useCreateComponentFocus.js +42 -11
  301. package/lib/global/js/hooks/useResetCreateComponent.js +7 -2
  302. package/lib/global/js/package-settings.js +9 -6
  303. package/lib/global/js/utils/getBezierValues.js +29 -0
  304. package/lib/global/js/utils/getNumberOfHiddenSteps.js +28 -0
  305. package/lib/global/js/utils/motionConstants.js +55 -0
  306. package/lib/global/js/utils/rangeWithCallback.js +22 -0
  307. package/lib/global/js/utils/story-helper.js +5 -1
  308. package/lib/global/js/utils/uuidv4.spec.js +4 -0
  309. package/package.json +18 -16
  310. package/scss/components/ActionSet/_action-set.scss +9 -4
  311. package/scss/components/AddSelect/_add-select.scss +132 -34
  312. package/scss/components/AddSelect/_index.scss +1 -1
  313. package/scss/components/AddSelect/_storybook-styles.scss +1 -1
  314. package/scss/components/Card/_card.scss +1 -0
  315. package/scss/components/Cascade/_cascade.scss +1 -1
  316. package/scss/components/CreateTearsheet/_create-tearsheet.scss +2 -0
  317. package/scss/components/Datagrid/_datagrid.scss +7 -1
  318. package/scss/components/Datagrid/_storybook-styles.scss +29 -5
  319. package/scss/components/Datagrid/styles/_datagrid.scss +131 -37
  320. package/scss/components/Datagrid/styles/_draggableElement.scss +50 -18
  321. package/scss/components/Datagrid/styles/_index.scss +10 -8
  322. package/scss/components/Datagrid/styles/_useActionsColumn.scss +14 -0
  323. package/scss/components/Datagrid/styles/_useExpandedRow.scss +56 -10
  324. package/scss/components/Datagrid/styles/_useInlineEdit.scss +419 -0
  325. package/scss/components/Datagrid/styles/_useNestedRows.scss +33 -1
  326. package/scss/components/Datagrid/styles/_useSortableColumns.scss +35 -16
  327. package/scss/components/Datagrid/styles/_useStickyColumn.scss +31 -2
  328. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +69 -0
  329. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +87 -0
  330. package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +129 -0
  331. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +12 -4
  332. package/scss/components/EditUpdateCards/_carbon-imports.scss +9 -0
  333. package/scss/components/EditUpdateCards/_edit-update-cards.scss +85 -0
  334. package/scss/components/EditUpdateCards/_index-with-carbon.scss +9 -0
  335. package/scss/components/EditUpdateCards/_index.scss +8 -0
  336. package/scss/components/EditUpdateCards/_storybook-styles.scss +55 -0
  337. package/scss/components/FilterSummary/_filter-summary.scss +21 -0
  338. package/scss/components/FilterSummary/_index.scss +10 -0
  339. package/scss/components/FilterSummary/_storybook-styles.scss +14 -0
  340. package/scss/components/{InlineEdit → InlineEditV1}/_index-with-carbon.scss +1 -1
  341. package/scss/components/{InlineEdit → InlineEditV1}/_index.scss +1 -1
  342. package/scss/components/{InlineEdit/_inline-edit.scss → InlineEditV1/_inline-edit-v1.scss} +4 -2
  343. package/scss/components/InlineEditV2/_carbon-imports.scss +9 -0
  344. package/scss/components/InlineEditV2/_index-with-carbon.scss +9 -0
  345. package/scss/components/InlineEditV2/_index.scss +10 -0
  346. package/scss/components/InlineEditV2/_inline-edit-v2.scss +83 -0
  347. package/scss/components/InlineEditV2/_storybook-styles.scss +9 -0
  348. package/scss/components/MultiAddSelect/_multi-add-select.scss +8 -1
  349. package/scss/components/MultiAddSelect/_storybook-styles.scss +1 -1
  350. package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -6
  351. package/scss/components/RemoveModal/_remove-modal.scss +0 -4
  352. package/scss/components/SidePanel/_side-panel.scss +3 -82
  353. package/scss/components/SidePanel/_storybook-styles.scss +6 -1
  354. package/scss/components/SingleAddSelect/_carbon-imports.scss +1 -1
  355. package/scss/components/SingleAddSelect/_index-with-carbon.scss +1 -1
  356. package/scss/components/SingleAddSelect/_index.scss +7 -0
  357. package/scss/components/SingleAddSelect/_single-add-select.scss +8 -1
  358. package/scss/components/SingleAddSelect/_storybook-styles.scss +1 -1
  359. package/scss/components/Tearsheet/_tearsheet.scss +4 -2
  360. package/scss/components/_index-released-only-with-carbon.scss +3 -1
  361. package/scss/components/_index-released-only.scss +4 -1
  362. package/scss/components/_index-with-carbon.scss +3 -1
  363. package/scss/components/_index.scss +4 -1
  364. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsModal.js +0 -157
  365. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ModalWrapper.js +0 -62
  366. package/es/components/Datagrid/Datagrid.stories-helpers/LeftPanelStory.js +0 -6
  367. package/lib/components/Datagrid/Datagrid.stories-helpers/LeftPanelStory.js +0 -13
  368. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsModal.scss +0 -52
  369. /package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/CustomizeColumnStory.js +0 -0
  370. /package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/RowSizeDropdownStory.js +0 -0
  371. /package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/SelectAllWithToggleStory.js +0 -0
  372. /package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/StickyActionsColumnStory.js +0 -0
  373. /package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/common.js +0 -0
  374. /package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/CustomizeColumnStory.js +0 -0
  375. /package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/RowSizeDropdownStory.js +0 -0
  376. /package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/SelectAllWithToggleStory.js +0 -0
  377. /package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/StickyActionsColumnStory.js +0 -0
  378. /package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/common.js +0 -0
  379. /package/scss/components/{InlineEdit → InlineEditV1}/_carbon-imports.scss +0 -0
  380. /package/scss/components/{InlineEdit → InlineEditV1}/_storybook-styles.scss +0 -0
@@ -1,12 +1,14 @@
1
- /*
2
- * Licensed Materials - Property of IBM
3
- * 5724-Q36
4
- * (c) Copyright IBM Corp. 2022
5
- * US Government Users Restricted Rights - Use, duplication or disclosure
6
- * restricted by GSA ADP Schedule Contract with IBM Corp.
7
- */
1
+ //
2
+ // Copyright IBM Corp. 2022, 2022
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
8
  @use '@carbon/styles/scss/theme' as *;
9
9
  @use '@carbon/styles/scss/spacing' as *;
10
+ @use '@carbon/styles/scss/colors';
11
+ @use '@carbon/styles/scss/motion' as *;
10
12
  @use './variables';
11
13
 
12
14
  .#{variables.$block-class}__draggable-handleStyle {
@@ -20,32 +22,62 @@
20
22
  pointer-events: none;
21
23
  }
22
24
 
23
- svg.#{variables.$block-class}__draggable-handleStyle.disable {
24
- fill: $icon-disabled;
25
+ .#{variables.$block-class}__draggable-handleStyle.disabled svg {
26
+ fill: $icon-on-color-disabled;
25
27
  }
26
28
 
27
29
  .#{variables.$block-class}__draggable-handleHolder {
28
30
  display: flex;
29
- height: $spacing-07;
30
- padding-left: $spacing-02;
31
- margin-bottom: $spacing-03;
32
- background: $layer-02;
33
- &.#{variables.$block-class}__draggable-handleHolder-isOver {
34
- border: 2px dashed $focus;
35
- background-color: $highlight;
36
- }
31
+ height: $spacing-09;
32
+ border-bottom: 1px solid $layer-active;
33
+ background-color: $layer;
34
+ }
35
+
36
+ .#{variables.$block-class}__draggable-handleHolder:hover {
37
+ background-color: $layer-hover;
38
+ }
39
+
40
+ .#{variables.$block-class}__draggable-handleHolder-selected {
41
+ display: flex;
42
+ height: $spacing-09;
43
+ border-bottom: 1px solid $layer-active;
44
+ background-color: $layer-selected;
45
+ }
46
+
47
+ .#{variables.$block-class}__draggable-handleHolder-selected:hover {
48
+ background-color: $layer-selected-hover-01;
49
+ }
50
+
51
+ .#{variables.$block-class}__draggable-handleHolder-isOver {
52
+ border: 2px dashed $focus;
53
+ /* stylelint-disable-next-line carbon/theme-token-use */
54
+ background-color: colors.$blue-10;
37
55
  }
38
56
 
39
57
  .#{variables.$block-class}__draggable-handleHolder-droppable {
40
58
  display: flex;
41
59
  width: 100%;
60
+ align-items: center;
61
+ padding-left: $spacing-05;
62
+ /* stylelint-disable-next-line carbon/type-token-use */
63
+ line-height: 1; // center align text within row
64
+ transition-property: opacity;
42
65
  }
43
66
 
44
- .#{variables.$block-class}__draggable-handleHolder--grabbed {
67
+ .#{variables.$block-class}__draggable-handleHolder-droppable.#{variables.$block-class}__draggable-handleHolder-droppable--origin {
68
+ opacity: 0.5;
69
+ transition: opacity $duration-moderate-01 motion(entrance, productive);
70
+ }
71
+
72
+ .#{variables.$block-class}__draggable-handleHolder-grabbed {
45
73
  background-color: $highlight;
46
74
  color: $text-primary;
47
75
  }
48
76
 
77
+ .#{variables.$block-class}__draggable-handleHolder--sticky {
78
+ color: $text-on-color-disabled;
79
+ }
80
+
49
81
  .#{variables.$block-class}__shared-ui--assistive-text {
50
82
  // hide the assistive text. can not use display: none which will also hide from ARIA
51
83
  position: absolute;
@@ -1,10 +1,9 @@
1
- /*
2
- * Licensed Materials - Property of IBM
3
- * 5724-Q36
4
- * (c) Copyright IBM Corp. 2020, 2021
5
- * US Government Users Restricted Rights - Use, duplication or disclosure
6
- * restricted by GSA ADP Schedule Contract with IBM Corp.
7
- */
1
+ //
2
+ // Copyright IBM Corp. 2022, 2022
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
+ //
8
7
  @use './datagrid';
9
8
  @use './useNestedRows';
10
9
  @use './useNestedTable';
@@ -13,8 +12,11 @@
13
12
  @use './useColumnCenterAlign';
14
13
  @use './useStickyColumn';
15
14
  @use './useActionsColumn';
16
- @use './addons/CustomizeColumnsModal';
15
+ @use './addons/CustomizeColumnsTearsheet';
17
16
  @use './addons/RowSizeDropdown';
17
+ @use './addons/FilterFlyout';
18
+ @use './addons/FilterPanel';
18
19
  @use './useSelectAllToggle';
19
20
  @use './useExpandedRow';
20
21
  @use './draggableElement';
22
+ @use './useInlineEdit';
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  @use '@carbon/styles/scss/spacing' as *;
10
+ @use '@carbon/styles/scss/theme';
10
11
  @use './variables';
11
12
 
12
13
  .#{variables.$block-class}__actions-column-cell {
@@ -23,3 +24,16 @@
23
24
  .#{variables.$block-class}__actions-column-loading {
24
25
  margin-bottom: $spacing-03;
25
26
  }
27
+
28
+ .#{variables.$block-class}
29
+ .#{variables.$block-class}__disabled-row-action-button {
30
+ cursor: not-allowed;
31
+ }
32
+
33
+ .#{variables.$block-class} .#{variables.$block-class}__disabled-row-action {
34
+ pointer-events: none;
35
+ }
36
+
37
+ .#{variables.$block-class} .#{variables.$block-class}__disabled-row-action svg {
38
+ fill: theme.$layer-selected-disabled;
39
+ }
@@ -1,14 +1,60 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2022
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 '../../../global/styles/project-settings';
1
+ /*
2
+ * Licensed Materials - Property of IBM
3
+ * 5724-Q36
4
+ * (c) Copyright IBM Corp. 2022
5
+ * US Government Users Restricted Rights - Use, duplication or disclosure
6
+ * restricted by GSA ADP Schedule Contract with IBM Corp.
7
+ */
8
+
9
+ @use '../../../global/styles/project-settings' as c4p-settings;
10
+ @use '@carbon/styles/scss/theme' as *;
9
11
  @use '@carbon/styles/scss/spacing' as *;
12
+ @use './variables';
13
+
14
+ @mixin shared-pseudo-styles() {
15
+ height: 1px;
16
+ background-color: $layer-accent;
17
+ content: '';
18
+ }
10
19
 
11
- $block-class: #{project-settings.$pkg-prefix}--datagrid;
12
- .#{$block-class}__expanded-row-content {
20
+ .#{variables.$block-class} .#{variables.$block-class}__expanded-row-content {
21
+ position: relative;
13
22
  padding: $spacing-05 $spacing-05 $spacing-06 $spacing-10;
14
23
  }
24
+
25
+ .#{variables.$block-class}
26
+ .#{variables.$block-class}__expanded-row-content::before {
27
+ position: absolute;
28
+ /* stylelint-disable-next-line carbon/layout-token-use */
29
+ top: -1px;
30
+ right: 0;
31
+ width: calc(100% - #{$spacing-09});
32
+ @include shared-pseudo-styles();
33
+ }
34
+
35
+ .#{variables.$block-class}
36
+ .#{variables.$block-class}__expanded-row-content::after {
37
+ position: absolute;
38
+ bottom: 0;
39
+ left: 0;
40
+ width: 100%;
41
+ @include shared-pseudo-styles();
42
+ }
43
+
44
+ .#{variables.$block-class}__carbon-row.#{variables.$block-class}__carbon-row-expandable
45
+ .#{variables.$block-class}__cell.#{variables.$block-class}__expandable-row-cell {
46
+ padding: $spacing-03;
47
+ padding-right: 0;
48
+ }
49
+
50
+ .#{variables.$block-class}__row-expander.#{c4p-settings.$carbon-prefix}--btn {
51
+ display: flex;
52
+ width: $spacing-07;
53
+ height: $spacing-07;
54
+ min-height: $spacing-07;
55
+ justify-content: center;
56
+ padding: 0;
57
+ .#{variables.$block-class}__row-expander--icon {
58
+ fill: $layer-selected-inverse;
59
+ }
60
+ }
@@ -0,0 +1,419 @@
1
+ /*
2
+ * Licensed Materials - Property of IBM
3
+ * 5724-Q36
4
+ * (c) Copyright IBM Corp. 2021
5
+ * US Government Users Restricted Rights - Use, duplication or disclosure
6
+ * restricted by GSA ADP Schedule Contract with IBM Corp.
7
+ */
8
+
9
+ @use '../../../global/styles/project-settings' as c4p-settings;
10
+ @use '@carbon/styles/scss/spacing' as *;
11
+ @use '@carbon/styles/scss/theme' as *;
12
+ @use '@carbon/styles/scss/components/button/tokens' as *;
13
+ @use '@carbon/type' as *;
14
+ @use './variables';
15
+
16
+ $row-heights: (
17
+ xs: 1.5rem,
18
+ sm: 2rem,
19
+ md: 2.5rem,
20
+ lg: 3rem,
21
+ xl: 4rem,
22
+ );
23
+
24
+ @each $size, $size-value in $row-heights {
25
+ .#{variables.$block-class}
26
+ .#{variables.$block-class}__inline-edit--outer-cell-button--#{$size}
27
+ .#{c4p-settings.$carbon-prefix}--text-input,
28
+ .#{variables.$block-class}
29
+ .#{variables.$block-class}__inline-edit--outer-cell-button--#{$size}
30
+ .#{c4p-settings.$carbon-prefix}--number
31
+ input[type='number'],
32
+ .#{variables.$block-class}
33
+ .#{variables.$block-class}__inline-edit--outer-cell-button--#{$size}
34
+ .#{variables.$block-class}__inline-edit--select
35
+ .#{c4p-settings.$carbon-prefix}--list-box.#{c4p-settings.$carbon-prefix}--dropdown,
36
+ .#{variables.$block-class}
37
+ .#{variables.$block-class}__inline-edit--date.#{variables.$block-class}__inline-edit--date-#{$size}
38
+ .#{c4p-settings.$carbon-prefix}--date-picker__input {
39
+ height: $size-value;
40
+ }
41
+ .#{variables.$block-class}
42
+ .#{variables.$block-class}__inline-edit--outer-cell-button--#{$size}
43
+ .#{c4p-settings.$carbon-prefix}--number__control-btn::before,
44
+ .#{variables.$block-class}
45
+ .#{variables.$block-class}__inline-edit--outer-cell-button--#{$size}
46
+ .#{c4p-settings.$carbon-prefix}--number__control-btn::after {
47
+ height: calc(#{$size-value} - 0.25rem);
48
+ }
49
+ .#{variables.$block-class}
50
+ .#{variables.$block-class}__inline-edit--outer-cell-button--#{$size}
51
+ .#{variables.$block-class}__inline-edit--select
52
+ .#{c4p-settings.$carbon-prefix}--list-box {
53
+ max-height: none;
54
+ }
55
+ }
56
+
57
+ @mixin input-outline($color: $focus) {
58
+ /* stylelint-disable-next-line carbon/theme-token-use */
59
+ outline: $spacing-01 solid $color;
60
+ outline-offset: calc(-1 * #{$spacing-01});
61
+
62
+ @media screen and (prefers-contrast) {
63
+ outline-style: dotted;
64
+ }
65
+ }
66
+
67
+ .#{variables.$block-class} {
68
+ --#{variables.$block-class}--grid-header-height: 0;
69
+ }
70
+
71
+ .#{variables.$block-class}__inline-edit-cell {
72
+ display: flex;
73
+ height: 100%;
74
+ align-items: center;
75
+ }
76
+
77
+ .#{variables.$block-class}
78
+ .#{c4p-settings.$pkg-prefix}--inline-edit__after-input-elements {
79
+ display: flex;
80
+ align-items: center;
81
+ }
82
+
83
+ .#{variables.$block-class}__inline-edit--outer-cell-button {
84
+ width: 100%;
85
+ height: calc(100% + 2px); // account for borders
86
+ }
87
+
88
+ .#{variables.$block-class}__inline-edit--outer-cell-button
89
+ .#{variables.$block-class}__inline-edit-button {
90
+ position: relative;
91
+ display: flex;
92
+ width: 100%;
93
+ height: 100%;
94
+ align-items: center;
95
+ justify-content: space-between;
96
+ padding-left: $spacing-05;
97
+ color: $text-secondary;
98
+ cursor: pointer;
99
+ outline: 0; // handled by active class
100
+ .#{variables.$block-class}__label-icon {
101
+ height: $spacing-05;
102
+ padding-right: $spacing-05;
103
+ }
104
+ &.#{variables.$block-class}__inline-edit-button--non-edit {
105
+ padding-left: 0;
106
+ cursor: default;
107
+ }
108
+ .#{variables.$block-class}__inline-edit-button-icon {
109
+ height: $spacing-05;
110
+ fill: $icon-secondary;
111
+ }
112
+ &.#{variables.$block-class}__inline-edit-button--date {
113
+ @include font-family($name: mono);
114
+ }
115
+ &.#{variables.$block-class}__inline-edit-button--selection {
116
+ justify-content: flex-start;
117
+ }
118
+ // Always show renderIcon if inline edit columns are less than half of total columns
119
+ &:not(.#{variables.$block-class}__inline-edit-button--edit-less-than-half-of-total-cols) {
120
+ .#{variables.$block-class}__inline-edit-button-icon {
121
+ display: none;
122
+ }
123
+
124
+ /* stylelint-disable-next-line */
125
+ &:hover {
126
+ .#{variables.$block-class}__inline-edit-button-icon {
127
+ display: block;
128
+ }
129
+ }
130
+ }
131
+ }
132
+
133
+ .#{variables.$block-class}__inline-edit--outer-cell-button
134
+ .#{variables.$block-class}__inline-edit-button:not([data-disabled='true']):hover {
135
+ background-color: $layer-active;
136
+ color: $text-primary;
137
+ .#{variables.$block-class}__inline-edit-button-icon {
138
+ fill: $icon-primary;
139
+ }
140
+ }
141
+
142
+ .#{variables.$block-class}__inline-edit--outer-cell-button
143
+ .#{variables.$block-class}__inline-edit-button.#{variables.$block-class}__inline-edit-button--active:not([data-disabled='true']) {
144
+ background-color: $layer-active;
145
+ color: $text-primary;
146
+ cursor: text;
147
+ }
148
+
149
+ .#{variables.$block-class}__inline-edit--outer-cell-button
150
+ .#{variables.$block-class}__inline-edit-button.#{variables.$block-class}__inline-edit-button--active {
151
+ @include input-outline;
152
+ }
153
+
154
+ .#{variables.$block-class}__inline-edit--outer-cell-button
155
+ .#{variables.$block-class}__inline-edit-button--disabled:not(.#{variables.$block-class}__inline-edit-button--edit-less-than-half-of-total-cols) {
156
+ color: $button-disabled;
157
+ cursor: not-allowed;
158
+ }
159
+
160
+ .#{variables.$block-class}__inline-edit--outer-cell-button
161
+ .#{variables.$block-class}__inline-edit-button
162
+ .#{variables.$block-class}__inline-edit-button-label {
163
+ overflow: hidden;
164
+ padding-right: $spacing-05;
165
+ text-overflow: ellipsis;
166
+ white-space: nowrap;
167
+ }
168
+
169
+ .#{variables.$block-class}__inline-edit--outer-cell-button
170
+ .#{variables.$block-class}__inline-edit-button
171
+ .#{variables.$block-class}__inline-edit-button-label.#{variables.$block-class}__inline-edit-button-label-with-icon {
172
+ padding-right: $spacing-09;
173
+ }
174
+
175
+ .#{variables.$block-class}__inline-edit--outer-cell-button
176
+ .#{c4p-settings.$carbon-prefix}--text-input,
177
+ .#{variables.$block-class}__inline-edit--outer-cell-button
178
+ .#{c4p-settings.$carbon-prefix}--number
179
+ input[type='number'] {
180
+ height: $spacing-09;
181
+ }
182
+
183
+ .#{variables.$block-class}__inline-edit-button-icon {
184
+ position: absolute;
185
+ right: $spacing-05;
186
+ }
187
+
188
+ .#{variables.$block-class}__table-with-inline-edit.#{c4p-settings.$carbon-prefix}--data-table
189
+ .#{variables.$block-class}__cell-inline-edit {
190
+ position: relative;
191
+ padding: 0;
192
+ .#{variables.$block-class}__inline-edit-button--non-edit {
193
+ padding-left: $spacing-05;
194
+ }
195
+
196
+ .#{c4p-settings.$carbon-prefix}--number input[type='number'] {
197
+ min-width: auto;
198
+ padding-right: $spacing-05;
199
+ }
200
+ }
201
+
202
+ .#{variables.$block-class}__inline-edit--select
203
+ .#{variables.$block-class}__inline-edit--select-item {
204
+ padding-bottom: $spacing-05;
205
+ padding-left: $spacing-05;
206
+ }
207
+
208
+ .#{variables.$block-class}__inline-edit--select.#{c4p-settings.$carbon-prefix}--dropdown,
209
+ .#{variables.$block-class}__inline-edit--date
210
+ .#{c4p-settings.$carbon-prefix}--date-picker {
211
+ width: inherit;
212
+ }
213
+
214
+ .#{variables.$block-class}__inline-edit--select.#{c4p-settings.$carbon-prefix}--dropdown,
215
+ .#{variables.$block-class}__inline-edit--date
216
+ .#{c4p-settings.$carbon-prefix}--date-picker.#{c4p-settings.$carbon-prefix}--date-picker--single
217
+ .#{c4p-settings.$carbon-prefix}--date-picker__input {
218
+ width: 100%;
219
+ height: $spacing-09; // default row height
220
+ max-height: none;
221
+ }
222
+
223
+ .#{variables.$block-class}__inline-edit--date
224
+ .#{c4p-settings.$carbon-prefix}--date-picker-container {
225
+ width: inherit;
226
+ }
227
+
228
+ .#{variables.$block-class}__inline-edit--date.#{c4p-settings.$carbon-prefix}--date-picker.#{c4p-settings.$carbon-prefix}--date-picker--single
229
+ .#{c4p-settings.$carbon-prefix}--date-picker__input {
230
+ overflow: hidden;
231
+ width: 100%;
232
+ max-width: none;
233
+ padding-right: $spacing-07;
234
+ text-overflow: ellipsis;
235
+ white-space: nowrap;
236
+ }
237
+
238
+ .#{variables.$block-class}
239
+ .#{c4p-settings.$carbon-prefix}--data-table
240
+ .#{variables.$block-class}__carbon-row-hover-active
241
+ td {
242
+ border-top-color: $layer-hover;
243
+ background-color: $layer-hover;
244
+ }
245
+
246
+ // Custom border/outline for the focus region area, because of the scrolling
247
+ // containers, using default border caused grid area width to be changed and
248
+ // outlines were not present be
249
+ .#{variables.$block-class}
250
+ .#{variables.$block-class}__grid-container-grid-active::before {
251
+ position: absolute;
252
+ z-index: 2;
253
+ bottom: 0;
254
+ left: 0;
255
+ width: 2px;
256
+ height: calc(
257
+ 100% - 50px - var(--#{variables.$block-class}--grid-header-height)
258
+ );
259
+ background-color: $link-inverse;
260
+ content: '';
261
+ }
262
+
263
+ .#{variables.$block-class}
264
+ .#{variables.$block-class}__grid-container-grid-active::after {
265
+ position: absolute;
266
+ z-index: 2;
267
+ right: 0;
268
+ bottom: 0;
269
+ width: 2px;
270
+ height: calc(
271
+ 100% - 50px - var(--#{variables.$block-class}--grid-header-height)
272
+ );
273
+ background-color: $link-inverse;
274
+ content: '';
275
+ }
276
+
277
+ .#{variables.$block-class}
278
+ .#{variables.$block-class}__grid-container-grid-active
279
+ .#{c4p-settings.$carbon-prefix}--data-table-content::before {
280
+ position: absolute;
281
+ z-index: 2;
282
+ top: 0;
283
+ right: 0;
284
+ left: 0;
285
+ width: var(--#{variables.$block-class}--grid-width);
286
+ height: 2px;
287
+ background-color: $link-inverse;
288
+ }
289
+
290
+ .#{variables.$block-class}
291
+ .#{variables.$block-class}__grid-container-grid-active.#{variables.$block-class}__grid-container-grid-active--without-toolbar::before,
292
+ .#{variables.$block-class}
293
+ .#{variables.$block-class}__grid-container-grid-active.#{variables.$block-class}__grid-container-grid-active--without-toolbar::after {
294
+ height: calc(
295
+ 100% - 2px - var(--#{variables.$block-class}--grid-header-height)
296
+ );
297
+ }
298
+
299
+ .#{variables.$block-class}
300
+ .#{variables.$block-class}__grid-container-grid-active
301
+ .#{variables.$block-class}__table-container {
302
+ outline: 2px solid $link-inverse;
303
+ outline-offset: -2px;
304
+ }
305
+
306
+ .#{variables.$block-class}
307
+ .#{variables.$block-class}__grid-container-inline-edit
308
+ .#{variables.$block-class}__table-container {
309
+ padding-top: $spacing-01;
310
+ }
311
+
312
+ .#{variables.$block-class}
313
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
314
+ [data-invalid]
315
+ ~ .#{c4p-settings.$carbon-prefix}--form-requirement,
316
+ .#{variables.$block-class}
317
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
318
+ [data-invalid]
319
+ .#{c4p-settings.$carbon-prefix}--form-requirement {
320
+ position: absolute;
321
+ z-index: 3;
322
+ top: calc(100% - #{$spacing-01});
323
+ width: 100%;
324
+ padding: $spacing-03 $spacing-06 $spacing-03 $spacing-03;
325
+ margin: 0;
326
+ background-color: $layer-01;
327
+ outline: $spacing-01 solid $support-error;
328
+ outline-offset: calc(-1 * #{$spacing-01});
329
+ }
330
+
331
+ .#{variables.$block-class}
332
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
333
+ .#{c4p-settings.$carbon-prefix}--list-box[data-invalid]:focus-within
334
+ ~ .#{c4p-settings.$carbon-prefix}--form-requirement {
335
+ outline: $spacing-01 solid $focus;
336
+ }
337
+
338
+ .#{variables.$block-class}
339
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
340
+ .#{c4p-settings.$carbon-prefix}--list-box__invalid-icon,
341
+ .#{variables.$block-class}
342
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
343
+ .#{c4p-settings.$carbon-prefix}--text-input__invalid-icon,
344
+ .#{variables.$block-class}
345
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
346
+ .#{c4p-settings.$carbon-prefix}--number__invalid {
347
+ z-index: 4;
348
+ top: calc(100% + #{$spacing-04} + #{$spacing-01});
349
+ right: $spacing-03;
350
+ }
351
+
352
+ .#{variables.$block-class}
353
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
354
+ .#{c4p-settings.$carbon-prefix}--number__invalid {
355
+ top: calc(100% + #{$spacing-02} + #{$spacing-01});
356
+ }
357
+
358
+ .#{variables.$block-class}
359
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
360
+ .#{c4p-settings.$carbon-prefix}--form-requirement::before {
361
+ position: absolute;
362
+ top: 0;
363
+ left: $spacing-01;
364
+ width: calc(100% - (#{$spacing-01} * 2));
365
+ height: $spacing-01;
366
+ background-color: $layer-01;
367
+ content: '';
368
+ }
369
+
370
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
371
+ .#{c4p-settings.$carbon-prefix}--form-requirement::after {
372
+ position: absolute;
373
+ top: $spacing-01;
374
+ left: $spacing-03;
375
+ width: calc(100% - (#{$spacing-03} * 2));
376
+ height: 1px;
377
+ background-color: $layer-accent-01;
378
+ content: '';
379
+ }
380
+
381
+ .#{variables.$block-class} tbody tr:hover {
382
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
383
+ .#{c4p-settings.$carbon-prefix}--form-requirement::before {
384
+ background-color: $layer-accent-01;
385
+ }
386
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
387
+ .#{c4p-settings.$carbon-prefix}--form-requirement::after {
388
+ background-color: transparent;
389
+ }
390
+ }
391
+
392
+ // Keep input focus states using $support-01 when inline edit cell is invalid
393
+ .#{variables.$block-class}
394
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
395
+ .#{c4p-settings.$carbon-prefix}--text-input:focus,
396
+ .#{variables.$block-class}
397
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
398
+ .#{c4p-settings.$carbon-prefix}--number
399
+ input[type='number']:focus,
400
+ .#{variables.$block-class}
401
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
402
+ .#{c4p-settings.$carbon-prefix}--number
403
+ input[type='number']:focus
404
+ ~ .#{c4p-settings.$carbon-prefix}--number__controls
405
+ .#{c4p-settings.$carbon-prefix}--number__control-btn:hover,
406
+ .#{variables.$block-class}
407
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
408
+ .#{c4p-settings.$carbon-prefix}--number__control-btn:focus {
409
+ outline-color: $support-error;
410
+ }
411
+
412
+ .#{variables.$block-class}
413
+ .#{variables.$block-class}__inline-edit--outer-cell-button--invalid
414
+ .#{c4p-settings.$carbon-prefix}--number
415
+ input[type='number'][data-invalid]:focus
416
+ ~ .#{c4p-settings.$carbon-prefix}--number__controls
417
+ .#{c4p-settings.$carbon-prefix}--number__control-btn.up-icon::after {
418
+ background-color: $support-error;
419
+ }
@@ -1,13 +1,14 @@
1
1
  /*
2
2
  * Licensed Materials - Property of IBM
3
3
  * 5724-Q36
4
- * (c) Copyright IBM Corp. 2020 - 2021
4
+ * (c) Copyright IBM Corp. 2020 - 2022
5
5
  * US Government Users Restricted Rights - Use, duplication or disclosure
6
6
  * restricted by GSA ADP Schedule Contract with IBM Corp.
7
7
  */
8
8
 
9
9
  @use '@carbon/styles/scss/theme' as *;
10
10
  @use '../../../global/styles/project-settings' as c4p-settings;
11
+ @use '@carbon/styles/scss/motion' as *;
11
12
  @use './variables' as *;
12
13
 
13
14
  .#{c4p-settings.$carbon-prefix}--data-table
@@ -18,3 +19,34 @@
18
19
  border-bottom: 1px solid $layer-accent-01;
19
20
  }
20
21
  }
22
+
23
+ .#{$block-class} .#{$block-class}__expander-icon {
24
+ transition: transform $duration-fast-01 motion('standard', 'productive');
25
+ }
26
+
27
+ .#{$block-class} .#{$block-class}__expander-icon--open {
28
+ transform: rotate(90deg);
29
+ }
30
+
31
+ .#{$block-class}__expanded-row
32
+ .#{$block-class}__carbon-row-expanded
33
+ td:first-child {
34
+ border-bottom: none;
35
+ }
36
+
37
+ .#{$block-class} .#{$block-class}__carbon-row-expandable {
38
+ position: relative;
39
+ }
40
+
41
+ .#{$block-class}
42
+ tr.#{$block-class}__carbon-nested-row
43
+ + :not(tr.#{$block-class}__carbon-nested-row)::before {
44
+ position: absolute;
45
+ /* stylelint-disable-next-line carbon/layout-token-use */
46
+ top: -1px;
47
+ left: 0;
48
+ width: 100%;
49
+ height: 1px;
50
+ background-color: $border-subtle;
51
+ content: '';
52
+ }