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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. package/css/index-full-carbon.css +946 -327
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +4 -8
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +785 -168
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +4 -8
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +720 -232
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +4 -8
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +742 -244
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +4 -8
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/APIKeyModal/APIKeyModal.js +1 -1
  18. package/es/components/AddSelect/AddSelect.js +0 -3
  19. package/es/components/AddSelect/AddSelectBody.js +22 -5
  20. package/es/components/AddSelect/AddSelectBreadcrumbs.js +11 -3
  21. package/es/components/AddSelect/AddSelectColumn.js +5 -5
  22. package/es/components/AddSelect/AddSelectFilter.js +5 -4
  23. package/es/components/AddSelect/AddSelectList.js +61 -27
  24. package/es/components/AddSelect/AddSelectMetaPanel.js +1 -1
  25. package/es/components/AddSelect/AddSelectSort.js +1 -1
  26. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -6
  27. package/es/components/Card/Card.js +16 -6
  28. package/es/components/Card/CardFooter.js +3 -1
  29. package/es/components/Card/CardHeader.js +20 -1
  30. package/es/components/ComboButton/ComboButton.js +1 -1
  31. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
  32. package/es/components/DataSpreadsheet/DataSpreadsheet.js +63 -11
  33. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -1
  34. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +7 -0
  35. package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +6 -5
  36. package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +31 -0
  37. package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +1 -1
  38. package/es/components/Datagrid/Datagrid/Datagrid.js +10 -38
  39. package/es/components/Datagrid/Datagrid/DatagridContent.js +154 -0
  40. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +9 -1
  41. package/es/components/Datagrid/Datagrid/DatagridRow.js +10 -2
  42. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +10 -3
  43. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +13 -4
  44. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +5 -4
  45. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +2 -1
  46. package/es/components/Datagrid/Datagrid/DraggableElement.js +6 -2
  47. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +5 -45
  48. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +4 -1
  49. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +36 -10
  50. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsModal.js +62 -26
  51. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ModalWrapper.js +3 -2
  52. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +60 -0
  53. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/index.js +1 -0
  54. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +534 -0
  55. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/index.js +1 -0
  56. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +112 -0
  57. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +27 -0
  58. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/index.js +1 -0
  59. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +39 -0
  60. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +19 -0
  61. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +263 -0
  62. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +87 -0
  63. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +17 -14
  64. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +13 -36
  65. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/CustomizeColumnStory.js +0 -0
  66. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/LeftPanelStory.js +0 -0
  67. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/RowSizeDropdownStory.js +0 -0
  68. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/SelectAllWithToggleStory.js +0 -0
  69. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/StickyActionsColumnStory.js +0 -0
  70. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/common.js +0 -0
  71. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/index.js +0 -0
  72. package/es/components/Datagrid/index.js +3 -1
  73. package/es/components/Datagrid/useActionsColumn.js +28 -12
  74. package/es/components/Datagrid/useColumnOrder.js +8 -0
  75. package/es/components/Datagrid/useCustomizeColumns.js +5 -0
  76. package/es/components/Datagrid/useDisableSelectRows.js +6 -2
  77. package/es/components/Datagrid/useExpandedRow.js +0 -1
  78. package/es/components/Datagrid/useInfiniteScroll.js +5 -2
  79. package/es/components/Datagrid/useInlineEdit.js +71 -0
  80. package/es/components/Datagrid/useNestedRowExpander.js +42 -0
  81. package/es/components/Datagrid/useNestedRows.js +2 -2
  82. package/es/components/Datagrid/useRowExpander.js +1 -1
  83. package/es/components/Datagrid/useRowSize.js +17 -6
  84. package/es/components/Datagrid/useSelectAllToggle.js +17 -4
  85. package/es/components/Datagrid/useSelectRows.js +12 -2
  86. package/es/components/Datagrid/useSortableColumns.js +1 -1
  87. package/es/components/Datagrid/useStickyColumn.js +11 -0
  88. package/es/components/Datagrid/utils/DatagridActions.js +152 -0
  89. package/es/components/Datagrid/utils/DatagridPagination.js +33 -0
  90. package/es/components/Datagrid/utils/Wrapper.js +21 -0
  91. package/es/components/Datagrid/utils/getArgTypes.js +89 -0
  92. package/es/components/Datagrid/utils/getInlineEditColumns.js +153 -0
  93. package/es/components/Datagrid/utils/makeData.js +46 -1
  94. package/es/components/EditUpdateCards/EditUpdateCards.js +144 -0
  95. package/es/components/EditUpdateCards/index.js +7 -0
  96. package/es/components/ExportModal/ExportModal.js +1 -1
  97. package/es/components/ImportModal/ImportModal.js +3 -3
  98. package/es/components/InlineEdit/InlineEdit.js +11 -9
  99. package/es/components/ModifiedTabs/ModifiedTabLabelNew.js +1 -1
  100. package/es/components/ModifiedTabs/ModifiedTabLabelWithClose.js +1 -1
  101. package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
  102. package/es/components/OptionsTile/OptionsTile.js +1 -1
  103. package/es/components/PageHeader/PageHeader.js +1 -1
  104. package/es/components/PageHeader/PageHeaderTitle.js +3 -1
  105. package/es/components/ProductiveCard/ProductiveCard.js +5 -0
  106. package/es/components/Saving/Saving.js +1 -1
  107. package/es/components/SidePanel/SidePanel.js +45 -52
  108. package/es/components/SidePanel/motion/variants.js +45 -0
  109. package/es/components/StatusIcon/StatusIcon.js +1 -1
  110. package/es/components/UserProfileImage/UserProfileImage.js +1 -1
  111. package/es/components/WebTerminal/WebTerminal.js +1 -1
  112. package/es/components/WebTerminal/preview-components/Navigation.js +1 -1
  113. package/es/components/index.js +3 -2
  114. package/es/global/js/hooks/useClickOutside.js +1 -1
  115. package/es/global/js/package-settings.js +5 -4
  116. package/es/global/js/utils/getBezierValues.js +20 -0
  117. package/es/global/js/utils/motionConstants.js +45 -0
  118. package/es/global/js/utils/rangeWithCallback.js +13 -0
  119. package/es/global/js/utils/story-helper.js +5 -1
  120. package/es/global/js/utils/uuidv4.spec.js +4 -0
  121. package/lib/components/APIKeyModal/APIKeyModal.js +4 -4
  122. package/lib/components/AddSelect/AddSelect.js +0 -4
  123. package/lib/components/AddSelect/AddSelectBody.js +22 -5
  124. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +14 -3
  125. package/lib/components/AddSelect/AddSelectColumn.js +5 -5
  126. package/lib/components/AddSelect/AddSelectFilter.js +5 -4
  127. package/lib/components/AddSelect/AddSelectList.js +62 -28
  128. package/lib/components/AddSelect/AddSelectMetaPanel.js +2 -2
  129. package/lib/components/AddSelect/AddSelectSort.js +4 -4
  130. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +6 -6
  131. package/lib/components/Card/Card.js +16 -6
  132. package/lib/components/Card/CardFooter.js +3 -1
  133. package/lib/components/Card/CardHeader.js +21 -1
  134. package/lib/components/ComboButton/ComboButton.js +3 -3
  135. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
  136. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +63 -10
  137. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -1
  138. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +7 -0
  139. package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +6 -5
  140. package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +42 -0
  141. package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +1 -1
  142. package/lib/components/Datagrid/Datagrid/Datagrid.js +12 -45
  143. package/lib/components/Datagrid/Datagrid/DatagridContent.js +188 -0
  144. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +9 -1
  145. package/lib/components/Datagrid/Datagrid/DatagridRow.js +19 -2
  146. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +12 -3
  147. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +16 -5
  148. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +6 -5
  149. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +2 -1
  150. package/lib/components/Datagrid/Datagrid/DraggableElement.js +7 -3
  151. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +12 -47
  152. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +5 -2
  153. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +48 -25
  154. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsModal.js +60 -25
  155. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ModalWrapper.js +3 -2
  156. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +76 -0
  157. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/index.js +13 -0
  158. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +558 -0
  159. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/index.js +13 -0
  160. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +129 -0
  161. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +36 -0
  162. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/index.js +19 -0
  163. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +45 -0
  164. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +28 -0
  165. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +272 -0
  166. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +100 -0
  167. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +17 -13
  168. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +13 -35
  169. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/CustomizeColumnStory.js +0 -0
  170. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/LeftPanelStory.js +0 -0
  171. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/RowSizeDropdownStory.js +0 -0
  172. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/SelectAllWithToggleStory.js +0 -0
  173. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/StickyActionsColumnStory.js +0 -0
  174. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/common.js +0 -0
  175. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/index.js +0 -0
  176. package/lib/components/Datagrid/index.js +17 -1
  177. package/lib/components/Datagrid/useActionsColumn.js +28 -13
  178. package/lib/components/Datagrid/useColumnOrder.js +17 -0
  179. package/lib/components/Datagrid/useCustomizeColumns.js +5 -0
  180. package/lib/components/Datagrid/useDisableSelectRows.js +6 -2
  181. package/lib/components/Datagrid/useExpandedRow.js +0 -1
  182. package/lib/components/Datagrid/useInfiniteScroll.js +5 -2
  183. package/lib/components/Datagrid/useInlineEdit.js +85 -0
  184. package/lib/components/Datagrid/useNestedRowExpander.js +57 -0
  185. package/lib/components/Datagrid/useNestedRows.js +3 -3
  186. package/lib/components/Datagrid/useRowExpander.js +3 -3
  187. package/lib/components/Datagrid/useRowSize.js +18 -13
  188. package/lib/components/Datagrid/useSelectAllToggle.js +18 -4
  189. package/lib/components/Datagrid/useSelectRows.js +12 -2
  190. package/lib/components/Datagrid/useSortableColumns.js +5 -5
  191. package/lib/components/Datagrid/useStickyColumn.js +11 -0
  192. package/lib/components/Datagrid/utils/DatagridActions.js +170 -0
  193. package/lib/components/Datagrid/utils/DatagridPagination.js +46 -0
  194. package/lib/components/Datagrid/utils/Wrapper.js +33 -0
  195. package/lib/components/Datagrid/utils/getArgTypes.js +97 -0
  196. package/lib/components/Datagrid/utils/getInlineEditColumns.js +168 -0
  197. package/lib/components/Datagrid/utils/makeData.js +47 -1
  198. package/lib/components/EditUpdateCards/EditUpdateCards.js +152 -0
  199. package/lib/components/EditUpdateCards/index.js +13 -0
  200. package/lib/components/ExportModal/ExportModal.js +3 -3
  201. package/lib/components/ImportModal/ImportModal.js +4 -4
  202. package/lib/components/InlineEdit/InlineEdit.js +16 -14
  203. package/lib/components/ModifiedTabs/ModifiedTabLabelNew.js +2 -2
  204. package/lib/components/ModifiedTabs/ModifiedTabLabelWithClose.js +3 -3
  205. package/lib/components/NotificationsPanel/NotificationsPanel.js +8 -8
  206. package/lib/components/OptionsTile/OptionsTile.js +6 -6
  207. package/lib/components/PageHeader/PageHeader.js +2 -2
  208. package/lib/components/PageHeader/PageHeaderTitle.js +3 -1
  209. package/lib/components/ProductiveCard/ProductiveCard.js +5 -0
  210. package/lib/components/Saving/Saving.js +5 -5
  211. package/lib/components/SidePanel/SidePanel.js +48 -53
  212. package/lib/components/SidePanel/motion/variants.js +55 -0
  213. package/lib/components/StatusIcon/StatusIcon.js +45 -45
  214. package/lib/components/UserProfileImage/UserProfileImage.js +7 -7
  215. package/lib/components/WebTerminal/WebTerminal.js +3 -3
  216. package/lib/components/WebTerminal/preview-components/Navigation.js +4 -4
  217. package/lib/components/index.js +21 -1
  218. package/lib/global/js/hooks/useClickOutside.js +1 -1
  219. package/lib/global/js/package-settings.js +5 -4
  220. package/lib/global/js/utils/getBezierValues.js +29 -0
  221. package/lib/global/js/utils/motionConstants.js +55 -0
  222. package/lib/global/js/utils/rangeWithCallback.js +22 -0
  223. package/lib/global/js/utils/story-helper.js +5 -1
  224. package/lib/global/js/utils/uuidv4.spec.js +4 -0
  225. package/package.json +18 -16
  226. package/scss/components/AddSelect/_add-select.scss +129 -30
  227. package/scss/components/Card/_card.scss +1 -0
  228. package/scss/components/Cascade/_cascade.scss +1 -1
  229. package/scss/components/CreateTearsheet/_create-tearsheet.scss +2 -0
  230. package/scss/components/Datagrid/_datagrid.scss +7 -0
  231. package/scss/components/Datagrid/_storybook-styles.scss +12 -5
  232. package/scss/components/Datagrid/styles/_datagrid.scss +31 -15
  233. package/scss/components/Datagrid/styles/_draggableElement.scss +26 -9
  234. package/scss/components/Datagrid/styles/_index.scss +1 -0
  235. package/scss/components/Datagrid/styles/_useActionsColumn.scss +14 -0
  236. package/scss/components/Datagrid/styles/_useExpandedRow.scss +37 -9
  237. package/scss/components/Datagrid/styles/_useInlineEdit.scss +419 -0
  238. package/scss/components/Datagrid/styles/_useNestedRows.scss +16 -1
  239. package/scss/components/Datagrid/styles/_useStickyColumn.scss +31 -2
  240. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsModal.scss +47 -6
  241. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +9 -1
  242. package/scss/components/EditUpdateCards/_carbon-imports.scss +9 -0
  243. package/scss/components/EditUpdateCards/_edit-update-cards.scss +85 -0
  244. package/scss/components/EditUpdateCards/_index-with-carbon.scss +9 -0
  245. package/scss/components/EditUpdateCards/_index.scss +8 -0
  246. package/scss/components/EditUpdateCards/_storybook-styles.scss +55 -0
  247. package/scss/components/InlineEdit/_inline-edit.scss +4 -2
  248. package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -6
  249. package/scss/components/PageHeader/_page-header.scss +4 -0
  250. package/scss/components/RemoveModal/_remove-modal.scss +0 -4
  251. package/scss/components/SidePanel/_side-panel.scss +3 -82
  252. package/scss/components/SidePanel/_storybook-styles.scss +6 -1
  253. package/scss/components/Tearsheet/_tearsheet.scss +2 -2
  254. package/scss/components/_index-released-only.scss +1 -0
  255. package/scss/components/_index-with-carbon.scss +1 -0
  256. package/scss/components/_index.scss +1 -0
@@ -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,17 @@
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
+ }
@@ -7,20 +7,43 @@
7
7
  */
8
8
 
9
9
  @use '@carbon/styles/scss/theme' as *;
10
+ @use '@carbon/styles/scss/spacing' as *;
10
11
  @use './variables';
11
12
 
12
13
  .#{variables.$block-class}__right-sticky-column-cell {
13
14
  /* stylelint-disable-next-line declaration-no-important */
14
15
  position: sticky !important;
15
16
  right: 0;
16
- box-shadow: -2px 1px 3px $overlay;
17
+ display: flex;
18
+ align-items: center;
19
+ border-left: 1px solid $layer-accent-01;
17
20
  }
18
21
 
19
22
  .#{variables.$block-class}__right-sticky-column-header {
20
23
  /* stylelint-disable-next-line declaration-no-important */
21
24
  position: sticky !important;
22
25
  right: 0;
23
- box-shadow: -2px 1px 3px $overlay;
26
+ }
27
+
28
+ .#{variables.$block-class}__left-sticky-column-cell {
29
+ /* stylelint-disable-next-line declaration-no-important */
30
+ position: sticky !important;
31
+ left: 0;
32
+ display: flex;
33
+ align-items: center;
34
+ border-right: 1px solid $layer-accent-01;
35
+ }
36
+
37
+ .#{variables.$block-class}__left-sticky-column-header {
38
+ /* stylelint-disable-next-line declaration-no-important */
39
+ position: sticky !important;
40
+ z-index: 1;
41
+ left: 0;
42
+ }
43
+
44
+ .#{variables.$block-class}__left-sticky-column-cell.#{variables.$block-class}__left-sticky-column-cell--with-extra-select-column,
45
+ .#{variables.$block-class}__left-sticky-column-header.#{variables.$block-class}__left-sticky-column-header--with-extra-select-column {
46
+ left: $spacing-08;
24
47
  }
25
48
 
26
49
  .#{variables.$block-class}__sticky-noShadow {
@@ -37,3 +60,9 @@
37
60
  /* stylelint-disable-next-line */
38
61
  right: 6px !important; // offset the vertical scroll bar in the table body
39
62
  }
63
+
64
+ .#{variables.$block-class}__select-all-toggle-on.#{variables.$block-class}__select-all-sticky-left {
65
+ position: sticky;
66
+ z-index: 1;
67
+ left: 0;
68
+ }
@@ -17,22 +17,31 @@
17
17
  position: inherit;
18
18
  display: flex;
19
19
  flex-flow: column;
20
- /* stylelint-disable-next-line declaration-no-important */
21
- padding-top: 0 !important;
20
+ padding: 0;
21
+ margin: 0;
22
22
  }
23
23
  }
24
24
 
25
- .#{variables.$block-class}__customize-columns-checkbox {
25
+ .#{variables.$block-class}__customize-columns-checkbox-wrapper {
26
+ margin-bottom: 0;
27
+ }
28
+ .#{variables.$block-class}__customize-columns-checkbox-wrapper {
26
29
  display: flex;
27
30
  justify-content: center;
28
- /* stylelint-disable-next-line declaration-no-important */
29
- margin-bottom: 0 !important; // reset the bottom provided by carbon
30
31
  }
31
32
 
32
33
  .#{variables.$block-class}__customize-columns-modal--actions {
33
34
  display: flex;
35
+ height: $spacing-09;
34
36
  flex-flow: row;
35
- margin-bottom: $spacing-06;
37
+ background-color: $field-02;
38
+ }
39
+
40
+ .#{variables.$block-class}__customize-columns-modal--actions
41
+ input[role='searchbox'] {
42
+ height: $spacing-09;
43
+ padding-left: $spacing-08;
44
+ border-bottom: none;
36
45
  }
37
46
 
38
47
  .#{variables.$block-class}__customize-columns-modal--actions > button {
@@ -40,7 +49,9 @@
40
49
  }
41
50
 
42
51
  .#{variables.$block-class}__customize-columns-instructions {
52
+ padding-left: $spacing-05;
43
53
  margin-bottom: $spacing-06;
54
+
44
55
  @include type.type-style('body-long-01');
45
56
 
46
57
  color: $text-primary;
@@ -50,3 +61,33 @@
50
61
  position: relative; // needed for the react-dnd, otherwise the drag preview will not work correctly
51
62
  overflow: auto;
52
63
  }
64
+
65
+ .#{variables.$block-class}__customize-columns-select-all {
66
+ display: flex;
67
+ height: $spacing-09;
68
+ align-items: center;
69
+ padding-left: $spacing-08;
70
+ border-bottom: 1px solid $layer-active;
71
+ background-color: $layer-01;
72
+ }
73
+ .#{variables.$block-class}__customize-columns-select-all:hover {
74
+ background-color: $layer-hover-01;
75
+ }
76
+ .#{variables.$block-class}__customize-columns-select-all-selected {
77
+ display: flex;
78
+ height: $spacing-09;
79
+ align-items: center;
80
+ padding-left: $spacing-08;
81
+ border-bottom: 1px solid $layer-active;
82
+ background-color: $layer-selected-01;
83
+ }
84
+
85
+ .#{variables.$block-class}__customize-columns-select-all-selected:hover {
86
+ background-color: $background-selected-hover;
87
+ }
88
+
89
+ .#{variables.$block-class}
90
+ .#{variables.$block-class}__customize-columns-modal
91
+ .#{c4p-settings.$carbon-prefix}--modal-content {
92
+ margin-bottom: 0;
93
+ }
@@ -8,10 +8,10 @@
8
8
 
9
9
  @use '@carbon/styles/scss/theme' as *;
10
10
  @use '@carbon/styles/scss/spacing' as *;
11
+ @use '../../../../global/styles/project-settings' as c4p-settings;
11
12
  @use '../variables';
12
13
 
13
14
  .#{variables.$block-class}__row-size-dropdown {
14
- position: absolute;
15
15
  padding: $spacing-05;
16
16
  background-color: $background;
17
17
 
@@ -23,3 +23,11 @@
23
23
 
24
24
  box-shadow: 1px 4px 8px -3px $overlay, -1px 6px 8px -5px $overlay;
25
25
  }
26
+
27
+ .#{variables.$block-class}
28
+ .#{c4p-settings.$carbon-prefix}--popover--bottom-right.#{variables.$block-class}__row-height-settings-popover
29
+ .#{c4p-settings.$carbon-prefix}--popover-caret {
30
+ // Used to fix layout issue with IconButton caret inside of Popover component
31
+ /* stylelint-disable-next-line carbon/layout-token-use */
32
+ left: -4px;
33
+ }
@@ -0,0 +1,9 @@
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
+ // Import any Carbon component styles used from EditUpdateCards in this file.
9
+ // EditUpdateCards uses the following Carbon components: