@carbon/ibm-products 2.43.2-canary.12 → 2.43.2-canary.123

Sign up to get free protection for your applications and to get access to all the features.
Files changed (428) hide show
  1. package/css/config-dev.css +6 -1
  2. package/css/config-dev.css.map +1 -1
  3. package/css/config.css +6 -1
  4. package/css/config.css.map +1 -1
  5. package/css/index-full-carbon.css +1854 -499
  6. package/css/index-full-carbon.css.map +1 -1
  7. package/css/index-full-carbon.min.css +1 -1
  8. package/css/index-full-carbon.min.css.map +1 -1
  9. package/css/index-without-carbon-released-only.css +267 -65
  10. package/css/index-without-carbon-released-only.css.map +1 -1
  11. package/css/index-without-carbon-released-only.min.css +1 -1
  12. package/css/index-without-carbon-released-only.min.css.map +1 -1
  13. package/css/index-without-carbon.css +1463 -250
  14. package/css/index-without-carbon.css.map +1 -1
  15. package/css/index-without-carbon.min.css +1 -1
  16. package/css/index-without-carbon.min.css.map +1 -1
  17. package/css/index.css +1659 -369
  18. package/css/index.css.map +1 -1
  19. package/css/index.min.css +1 -1
  20. package/css/index.min.css.map +1 -1
  21. package/es/components/APIKeyModal/APIKeyModal.types.d.ts +6 -0
  22. package/es/components/ActionBar/ActionBar.d.ts +58 -2
  23. package/es/components/ActionBar/ActionBar.js +14 -9
  24. package/es/components/ActionBar/ActionBarItem.d.ts +36 -2
  25. package/es/components/ActionBar/ActionBarItem.js +8 -5
  26. package/es/components/ActionBar/ActionBarOverflowItems.d.ts +55 -16
  27. package/es/components/ActionBar/ActionBarOverflowItems.js +8 -4
  28. package/es/components/AddSelect/types/index.d.ts +6 -0
  29. package/es/components/Card/Card.d.ts +69 -2
  30. package/es/components/Card/Card.js +33 -37
  31. package/es/components/Card/CardFooter.d.ts +51 -48
  32. package/es/components/Card/CardFooter.js +4 -2
  33. package/es/components/Card/CardHeader.d.ts +67 -49
  34. package/es/components/Card/CardHeader.js +4 -2
  35. package/es/components/Coachmark/Coachmark.d.ts +6 -1
  36. package/es/components/Coachmark/Coachmark.js +47 -11
  37. package/es/components/Coachmark/CoachmarkOverlay.js +2 -4
  38. package/es/components/Coachmark/utils/enums.d.ts +6 -0
  39. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
  40. package/es/components/CoachmarkFixed/CoachmarkFixed.js +13 -11
  41. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -1
  42. package/es/components/CoachmarkStack/CoachmarkStack.d.ts +67 -2
  43. package/es/components/CoachmarkStack/CoachmarkStack.js +22 -11
  44. package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +71 -2
  45. package/es/components/CoachmarkStack/CoachmarkStackHome.js +25 -23
  46. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +100 -58
  47. package/es/components/ConditionBuilder/ConditionBuilder.js +82 -25
  48. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
  49. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +154 -0
  50. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +3 -1
  51. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +30 -27
  52. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +8 -1
  53. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +35 -11
  54. package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +18 -10
  55. package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +19 -11
  56. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -13
  57. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +83 -64
  58. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +13 -7
  59. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +31 -8
  60. package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +8 -2
  61. package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +35 -24
  62. package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +43 -36
  63. package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +43 -36
  64. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +6 -2
  65. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +114 -40
  66. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
  67. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +24 -9
  68. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +27 -9
  69. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
  70. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +114 -0
  71. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
  72. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +71 -38
  73. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +5 -1
  74. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +22 -9
  75. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +1 -1
  76. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +1 -3
  77. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +122 -40
  78. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +5 -1
  79. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +51 -19
  80. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +2 -1
  81. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +152 -42
  82. package/es/components/ConditionBuilder/utils/useTranslations.d.ts +1 -0
  83. package/es/components/ConditionBuilder/utils/useTranslations.js +26 -0
  84. package/es/components/ConditionBuilder/utils/util.d.ts +6 -4
  85. package/es/components/ConditionBuilder/utils/util.js +42 -17
  86. package/es/components/CreateFullPage/CreateFullPage.js +2 -2
  87. package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +26 -0
  88. package/es/components/DataSpreadsheet/DataSpreadsheet.js +129 -53
  89. package/es/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +16 -0
  90. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +32 -7
  91. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +8 -0
  92. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +16 -3
  93. package/es/components/DataSpreadsheet/types/index.d.ts +7 -0
  94. package/es/components/Datagrid/Datagrid/Datagrid.d.ts +0 -4
  95. package/es/components/Datagrid/Datagrid/Datagrid.js +4 -9
  96. package/es/components/Datagrid/Datagrid/DatagridBody.d.ts +6 -0
  97. package/es/components/Datagrid/Datagrid/DatagridContent.js +4 -3
  98. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -8
  99. package/es/components/Datagrid/Datagrid/DatagridRefBody.d.ts +6 -0
  100. package/es/components/Datagrid/Datagrid/DatagridRow.js +21 -8
  101. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +6 -6
  102. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
  103. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +6 -0
  104. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -1
  105. package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +6 -0
  106. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +34 -10
  107. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
  108. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
  109. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +6 -3
  110. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +20 -12
  111. package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +7 -0
  112. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
  113. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +54 -17
  114. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
  115. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +75 -12
  116. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
  117. package/es/components/Datagrid/common-column-ids.d.ts +6 -0
  118. package/es/components/Datagrid/types/index.d.ts +60 -9
  119. package/es/components/Datagrid/useActionsColumn.d.ts +8 -1
  120. package/es/components/Datagrid/useActionsColumn.js +7 -6
  121. package/es/components/Datagrid/useCustomizeColumns.d.ts +8 -1
  122. package/es/components/Datagrid/useCustomizeColumns.js +4 -3
  123. package/es/components/Datagrid/useDatagrid.d.ts +6 -0
  124. package/es/components/Datagrid/useDefaultStringRenderer.js +0 -1
  125. package/es/components/Datagrid/useDisableSelectRows.d.ts +8 -1
  126. package/es/components/Datagrid/useDisableSelectRows.js +27 -22
  127. package/es/components/Datagrid/useInitialColumnSort.js +4 -0
  128. package/es/components/Datagrid/useInlineEdit.js +12 -2
  129. package/es/components/Datagrid/useNestedRowExpander.js +1 -3
  130. package/es/components/Datagrid/useNestedRows.js +5 -4
  131. package/es/components/Datagrid/useRowExpander.js +1 -3
  132. package/es/components/Datagrid/useRowIsMouseOver.d.ts +6 -0
  133. package/es/components/Datagrid/useSelectRows.js +2 -1
  134. package/es/components/Datagrid/useSortableColumns.d.ts +5 -4
  135. package/es/components/Datagrid/useSortableColumns.js +18 -13
  136. package/es/components/Datagrid/useStickyColumn.d.ts +8 -1
  137. package/es/components/Datagrid/useStickyColumn.js +12 -9
  138. package/es/components/EditInPlace/EditInPlace.d.ts +4 -0
  139. package/es/components/EditInPlace/EditInPlace.js +21 -10
  140. package/es/components/EditTearsheet/EditTearsheet.d.ts +7 -2
  141. package/es/components/EditTearsheet/EditTearsheet.js +44 -10
  142. package/es/components/EditTearsheet/EditTearsheetForm.d.ts +45 -2
  143. package/es/components/EditTearsheet/EditTearsheetForm.js +3 -0
  144. package/es/components/EmptyStates/EmptyState.d.ts +72 -5
  145. package/es/components/EmptyStates/EmptyState.js +8 -5
  146. package/es/components/EmptyStates/EmptyStateV2.d.ts +63 -2
  147. package/es/components/EmptyStates/EmptyStateV2.js +3 -2
  148. package/es/components/FullPageError/FullPageError.d.ts +36 -2
  149. package/es/components/FullPageError/FullPageError.js +0 -3
  150. package/es/components/GetStartedCard/GetStartedCard.d.ts +60 -2
  151. package/es/components/GetStartedCard/GetStartedCard.js +11 -10
  152. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
  153. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
  154. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
  155. package/es/components/HTTPErrors/assets/HTTPErrorSvg403.js +204 -200
  156. package/es/components/HTTPErrors/assets/HTTPErrorSvg404.js +116 -112
  157. package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.js +110 -106
  158. package/es/components/Nav/NavItem.js +12 -3
  159. package/es/components/OptionsTile/OptionsTile.js +11 -6
  160. package/es/components/PageHeader/PageHeader.js +1 -0
  161. package/es/components/PageHeader/PageHeaderUtils.js +1 -1
  162. package/es/components/ProductiveCard/ProductiveCard.d.ts +4 -0
  163. package/es/components/ProductiveCard/ProductiveCard.js +7 -1
  164. package/es/components/RemoveModal/RemoveModal.d.ts +4 -0
  165. package/es/components/RemoveModal/RemoveModal.js +7 -1
  166. package/es/components/SearchBar/SearchBar.d.ts +1 -1
  167. package/es/components/SearchBar/SearchBar.js +2 -2
  168. package/es/components/SidePanel/SidePanel.js +17 -21
  169. package/es/components/SidePanel/motion/variants.d.ts +4 -6
  170. package/es/components/SidePanel/motion/variants.js +10 -11
  171. package/es/components/StatusIndicator/StatusIndicatorStep.js +87 -0
  172. package/es/components/StringFormatter/StringFormatter.js +14 -3
  173. package/es/components/StringFormatter/utils/enums.d.ts +20 -1
  174. package/es/components/StringFormatter/utils/enums.js +29 -2
  175. package/es/components/TagOverflow/TagOverflow.d.ts +35 -4
  176. package/es/components/TagOverflow/TagOverflow.js +47 -64
  177. package/es/components/TagOverflow/TagOverflowModal.js +4 -6
  178. package/es/components/TagOverflow/TagOverflowPopover.d.ts +13 -1
  179. package/es/components/TagOverflow/TagOverflowPopover.js +38 -41
  180. package/es/components/Tearsheet/Tearsheet.d.ts +8 -1
  181. package/es/components/Tearsheet/Tearsheet.js +9 -1
  182. package/es/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
  183. package/es/components/Tearsheet/TearsheetNarrow.js +12 -0
  184. package/es/components/Tearsheet/TearsheetShell.d.ts +11 -1
  185. package/es/components/Tearsheet/TearsheetShell.js +28 -7
  186. package/es/components/Toolbar/ToolbarButton.js +1 -1
  187. package/es/components/UserAvatar/UserAvatar.d.ts +59 -1
  188. package/es/components/UserAvatar/UserAvatar.js +7 -23
  189. package/es/components/WebTerminal/WebTerminal.js +10 -12
  190. package/es/components/index.d.ts +1 -1
  191. package/es/global/js/hooks/useFocus.d.ts +1 -0
  192. package/es/global/js/hooks/useFocus.js +5 -2
  193. package/es/global/js/hooks/usePrefersReducedMotion.js +14 -8
  194. package/es/global/js/package-settings.d.ts +1 -1
  195. package/es/global/js/package-settings.js +1 -1
  196. package/es/global/js/utils/scrollableAncestor.js +7 -0
  197. package/es/global/js/utils/uuidv4.d.ts +6 -0
  198. package/es/global/js/utils/uuidv4.js +2 -0
  199. package/es/global/js/utils/wait.d.ts +6 -0
  200. package/es/global/js/utils/wait.js +2 -0
  201. package/es/index.js +1 -0
  202. package/es/node_modules/@carbon/icon-helpers/es/index.js +49 -62
  203. package/es/node_modules/@carbon/icons-react/es/generated/bucket-2.js +1020 -1058
  204. package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +881 -758
  205. package/es/settings.d.ts +1 -1
  206. package/flags.js +7 -0
  207. package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +6 -0
  208. package/lib/components/ActionBar/ActionBar.d.ts +58 -2
  209. package/lib/components/ActionBar/ActionBar.js +14 -9
  210. package/lib/components/ActionBar/ActionBarItem.d.ts +36 -2
  211. package/lib/components/ActionBar/ActionBarItem.js +7 -4
  212. package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +55 -16
  213. package/lib/components/ActionBar/ActionBarOverflowItems.js +8 -4
  214. package/lib/components/AddSelect/types/index.d.ts +6 -0
  215. package/lib/components/Card/Card.d.ts +69 -2
  216. package/lib/components/Card/Card.js +33 -37
  217. package/lib/components/Card/CardFooter.d.ts +51 -48
  218. package/lib/components/Card/CardFooter.js +4 -2
  219. package/lib/components/Card/CardHeader.d.ts +67 -49
  220. package/lib/components/Card/CardHeader.js +4 -2
  221. package/lib/components/Coachmark/Coachmark.d.ts +6 -1
  222. package/lib/components/Coachmark/Coachmark.js +46 -10
  223. package/lib/components/Coachmark/CoachmarkOverlay.js +2 -4
  224. package/lib/components/Coachmark/utils/enums.d.ts +6 -0
  225. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
  226. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +13 -11
  227. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -1
  228. package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +67 -2
  229. package/lib/components/CoachmarkStack/CoachmarkStack.js +22 -11
  230. package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +71 -2
  231. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +25 -23
  232. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +98 -56
  233. package/lib/components/ConditionBuilder/ConditionBuilder.js +82 -25
  234. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
  235. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +163 -0
  236. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +3 -1
  237. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +29 -25
  238. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +8 -1
  239. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +33 -9
  240. package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +16 -8
  241. package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +18 -10
  242. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -13
  243. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +81 -62
  244. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +13 -7
  245. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +31 -8
  246. package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +8 -2
  247. package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +34 -24
  248. package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +43 -36
  249. package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +43 -36
  250. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +6 -2
  251. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +112 -38
  252. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
  253. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +24 -9
  254. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +28 -10
  255. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
  256. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +122 -0
  257. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
  258. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +68 -35
  259. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +5 -1
  260. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +21 -8
  261. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +1 -1
  262. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +1 -3
  263. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +119 -37
  264. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +5 -1
  265. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +50 -17
  266. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +2 -1
  267. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +152 -41
  268. package/lib/components/ConditionBuilder/utils/useTranslations.d.ts +1 -0
  269. package/lib/components/ConditionBuilder/utils/useTranslations.js +30 -0
  270. package/lib/components/ConditionBuilder/utils/util.d.ts +6 -4
  271. package/lib/components/ConditionBuilder/utils/util.js +44 -16
  272. package/lib/components/CreateFullPage/CreateFullPage.js +2 -2
  273. package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +26 -0
  274. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +129 -53
  275. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +16 -0
  276. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +32 -7
  277. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +8 -0
  278. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +16 -3
  279. package/lib/components/DataSpreadsheet/types/index.d.ts +7 -0
  280. package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +0 -4
  281. package/lib/components/Datagrid/Datagrid/Datagrid.js +4 -9
  282. package/lib/components/Datagrid/Datagrid/DatagridBody.d.ts +6 -0
  283. package/lib/components/Datagrid/Datagrid/DatagridContent.js +4 -3
  284. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -8
  285. package/lib/components/Datagrid/Datagrid/DatagridRefBody.d.ts +6 -0
  286. package/lib/components/Datagrid/Datagrid/DatagridRow.js +21 -8
  287. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +6 -6
  288. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
  289. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +6 -0
  290. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -1
  291. package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +6 -0
  292. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +34 -10
  293. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
  294. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
  295. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +6 -3
  296. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +20 -12
  297. package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +7 -0
  298. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
  299. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +53 -16
  300. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
  301. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +74 -11
  302. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
  303. package/lib/components/Datagrid/common-column-ids.d.ts +6 -0
  304. package/lib/components/Datagrid/types/index.d.ts +60 -9
  305. package/lib/components/Datagrid/useActionsColumn.d.ts +8 -1
  306. package/lib/components/Datagrid/useActionsColumn.js +7 -6
  307. package/lib/components/Datagrid/useCustomizeColumns.d.ts +8 -1
  308. package/lib/components/Datagrid/useCustomizeColumns.js +4 -3
  309. package/lib/components/Datagrid/useDatagrid.d.ts +6 -0
  310. package/lib/components/Datagrid/useDefaultStringRenderer.js +0 -1
  311. package/lib/components/Datagrid/useDisableSelectRows.d.ts +8 -1
  312. package/lib/components/Datagrid/useDisableSelectRows.js +27 -22
  313. package/lib/components/Datagrid/useInitialColumnSort.js +4 -0
  314. package/lib/components/Datagrid/useInlineEdit.js +12 -2
  315. package/lib/components/Datagrid/useNestedRowExpander.js +1 -3
  316. package/lib/components/Datagrid/useNestedRows.js +5 -4
  317. package/lib/components/Datagrid/useRowExpander.js +1 -3
  318. package/lib/components/Datagrid/useRowIsMouseOver.d.ts +6 -0
  319. package/lib/components/Datagrid/useSelectRows.js +2 -1
  320. package/lib/components/Datagrid/useSortableColumns.d.ts +5 -4
  321. package/lib/components/Datagrid/useSortableColumns.js +18 -13
  322. package/lib/components/Datagrid/useStickyColumn.d.ts +8 -1
  323. package/lib/components/Datagrid/useStickyColumn.js +12 -9
  324. package/lib/components/EditInPlace/EditInPlace.d.ts +4 -0
  325. package/lib/components/EditInPlace/EditInPlace.js +21 -10
  326. package/lib/components/EditTearsheet/EditTearsheet.d.ts +7 -2
  327. package/lib/components/EditTearsheet/EditTearsheet.js +43 -9
  328. package/lib/components/EditTearsheet/EditTearsheetForm.d.ts +45 -2
  329. package/lib/components/EditTearsheet/EditTearsheetForm.js +3 -0
  330. package/lib/components/EmptyStates/EmptyState.d.ts +72 -5
  331. package/lib/components/EmptyStates/EmptyState.js +8 -5
  332. package/lib/components/EmptyStates/EmptyStateV2.d.ts +63 -2
  333. package/lib/components/EmptyStates/EmptyStateV2.js +3 -2
  334. package/lib/components/FullPageError/FullPageError.d.ts +36 -2
  335. package/lib/components/FullPageError/FullPageError.js +0 -3
  336. package/lib/components/GetStartedCard/GetStartedCard.d.ts +60 -2
  337. package/lib/components/GetStartedCard/GetStartedCard.js +10 -9
  338. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
  339. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
  340. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
  341. package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +204 -200
  342. package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +116 -112
  343. package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +110 -106
  344. package/lib/components/Nav/NavItem.js +10 -1
  345. package/lib/components/OptionsTile/OptionsTile.js +11 -6
  346. package/lib/components/PageHeader/PageHeader.js +1 -0
  347. package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
  348. package/lib/components/ProductiveCard/ProductiveCard.d.ts +4 -0
  349. package/lib/components/ProductiveCard/ProductiveCard.js +7 -1
  350. package/lib/components/RemoveModal/RemoveModal.d.ts +4 -0
  351. package/lib/components/RemoveModal/RemoveModal.js +7 -1
  352. package/lib/components/SearchBar/SearchBar.d.ts +1 -1
  353. package/lib/components/SearchBar/SearchBar.js +2 -2
  354. package/lib/components/SidePanel/SidePanel.js +16 -20
  355. package/lib/components/SidePanel/motion/variants.d.ts +4 -6
  356. package/lib/components/SidePanel/motion/variants.js +10 -11
  357. package/lib/components/StatusIndicator/StatusIndicatorStep.js +94 -0
  358. package/lib/components/StringFormatter/StringFormatter.js +13 -2
  359. package/lib/components/StringFormatter/utils/enums.d.ts +20 -1
  360. package/lib/components/StringFormatter/utils/enums.js +30 -1
  361. package/lib/components/TagOverflow/TagOverflow.d.ts +35 -4
  362. package/lib/components/TagOverflow/TagOverflow.js +46 -63
  363. package/lib/components/TagOverflow/TagOverflowModal.js +4 -6
  364. package/lib/components/TagOverflow/TagOverflowPopover.d.ts +13 -1
  365. package/lib/components/TagOverflow/TagOverflowPopover.js +37 -40
  366. package/lib/components/Tearsheet/Tearsheet.d.ts +8 -1
  367. package/lib/components/Tearsheet/Tearsheet.js +9 -1
  368. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
  369. package/lib/components/Tearsheet/TearsheetNarrow.js +12 -0
  370. package/lib/components/Tearsheet/TearsheetShell.d.ts +11 -1
  371. package/lib/components/Tearsheet/TearsheetShell.js +26 -5
  372. package/lib/components/Toolbar/ToolbarButton.js +1 -1
  373. package/lib/components/UserAvatar/UserAvatar.d.ts +59 -1
  374. package/lib/components/UserAvatar/UserAvatar.js +7 -23
  375. package/lib/components/WebTerminal/WebTerminal.js +10 -12
  376. package/lib/components/index.d.ts +1 -1
  377. package/lib/global/js/hooks/useFocus.d.ts +1 -0
  378. package/lib/global/js/hooks/useFocus.js +5 -1
  379. package/lib/global/js/hooks/usePrefersReducedMotion.js +13 -7
  380. package/lib/global/js/package-settings.d.ts +1 -1
  381. package/lib/global/js/package-settings.js +1 -1
  382. package/lib/global/js/utils/scrollableAncestor.js +7 -0
  383. package/lib/global/js/utils/uuidv4.d.ts +6 -0
  384. package/lib/global/js/utils/uuidv4.js +2 -0
  385. package/lib/global/js/utils/wait.d.ts +6 -0
  386. package/lib/global/js/utils/wait.js +2 -0
  387. package/lib/index.js +5 -0
  388. package/lib/node_modules/@carbon/icon-helpers/es/index.js +49 -62
  389. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-2.js +1036 -1074
  390. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +946 -823
  391. package/lib/settings.d.ts +1 -1
  392. package/package.json +8 -7
  393. package/scss/components/Coachmark/_coachmark-overlay.scss +6 -70
  394. package/scss/components/Coachmark/_coachmark.scss +5 -4
  395. package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +1 -3
  396. package/scss/components/ConditionBuilder/_condition-builder.scss +8 -1
  397. package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +30 -5
  398. package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +88 -22
  399. package/scss/components/ConditionBuilder/styles/_index.scss +7 -0
  400. package/scss/components/CreateModal/_create-modal.scss +0 -4
  401. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +16 -2
  402. package/scss/components/Datagrid/_datagrid.scss +0 -4
  403. package/scss/components/Datagrid/styles/_datagrid.scss +1 -0
  404. package/scss/components/Datagrid/styles/_useActionsColumn.scss +6 -7
  405. package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +6 -7
  406. package/scss/components/Datagrid/styles/_useExpandedRow.scss +6 -7
  407. package/scss/components/Datagrid/styles/_useInlineEdit.scss +19 -7
  408. package/scss/components/Datagrid/styles/_useNestedRows.scss +6 -7
  409. package/scss/components/Datagrid/styles/_useNestedTable.scss +6 -7
  410. package/scss/components/Datagrid/styles/_useStickyColumn.scss +6 -7
  411. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +7 -5
  412. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +5 -4
  413. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +6 -7
  414. package/scss/components/HTTPErrors/_http-errors.scss +77 -0
  415. package/scss/components/OptionsTile/_options-tile.scss +6 -6
  416. package/scss/components/SidePanel/_side-panel.scss +1 -1
  417. package/scss/components/_index-released-only.scss +1 -0
  418. package/scss/config-dev.scss +7 -0
  419. package/scss/config.scss +7 -0
  420. package/telemetry.yml +34 -19
  421. package/es/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
  422. package/es/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -16
  423. package/es/global/js/utils/window.d.ts +0 -2
  424. package/es/global/js/utils/window.js +0 -12
  425. package/lib/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
  426. package/lib/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -20
  427. package/lib/global/js/utils/window.d.ts +0 -2
  428. package/lib/global/js/utils/window.js +0 -16
package/lib/settings.d.ts CHANGED
@@ -25,6 +25,7 @@ export const pkg: {
25
25
  ErrorEmptyState: boolean;
26
26
  ExportModal: boolean;
27
27
  ExpressiveCard: boolean;
28
+ FullPageError: boolean;
28
29
  HTTPError403: boolean;
29
30
  HTTPError404: boolean;
30
31
  HTTPErrorOther: boolean;
@@ -66,7 +67,6 @@ export const pkg: {
66
67
  BigNumbers: boolean;
67
68
  TruncatedList: boolean;
68
69
  DelimitedList: boolean;
69
- FullPageError: boolean;
70
70
  ScrollGradient: boolean;
71
71
  StringFormatter: boolean;
72
72
  StatusIndicator: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.43.2-canary.12+b9055f1a5",
4
+ "version": "2.43.2-canary.123+413b2107b",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -26,7 +26,8 @@
26
26
  "lib",
27
27
  "scss",
28
28
  "flags.js",
29
- "telemetry.yml"
29
+ "telemetry.yml",
30
+ ".playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json"
30
31
  ],
31
32
  "keywords": [
32
33
  "carbon",
@@ -80,7 +81,7 @@
80
81
  "fs-extra": "^11.2.0",
81
82
  "glob": "^10.3.10",
82
83
  "jest": "^29.7.0",
83
- "jest-config-ibm-cloud-cognitive": "^1.2.0",
84
+ "jest-config-ibm-cloud-cognitive": "^1.6.0-rc.0",
84
85
  "jest-environment-jsdom": "^29.7.0",
85
86
  "namor": "^1.1.2",
86
87
  "npm-check-updates": "^16.14.12",
@@ -95,7 +96,7 @@
95
96
  "dependencies": {
96
97
  "@babel/runtime": "^7.23.9",
97
98
  "@carbon/feature-flags": "^0.20.0",
98
- "@carbon/ibm-products-styles": "^2.39.0",
99
+ "@carbon/ibm-products-styles": "^2.43.0-rc.0",
99
100
  "@carbon/telemetry": "^0.1.0",
100
101
  "@dnd-kit/core": "^6.0.8",
101
102
  "@dnd-kit/modifiers": "^7.0.0",
@@ -113,11 +114,11 @@
113
114
  "@carbon/grid": "^11.22.0",
114
115
  "@carbon/layout": "^11.21.0",
115
116
  "@carbon/motion": "^11.17.0",
116
- "@carbon/react": "^1.55.0",
117
- "@carbon/themes": "^11.34.0",
117
+ "@carbon/react": "^1.60.3",
118
+ "@carbon/themes": "^11.37.1",
118
119
  "@carbon/type": "^11.26.0",
119
120
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
120
121
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
121
122
  },
122
- "gitHead": "b9055f1a58d6b8c093b418db05a7768000e6944f"
123
+ "gitHead": "413b2107b433d4c58916ba0863a8762372759684"
123
124
  }
@@ -45,6 +45,11 @@ $draghandle-btn-class: #{$block-class}__handle;
45
45
 
46
46
  visibility: hidden;
47
47
 
48
+ &--tooltip {
49
+ position: initial;
50
+ transform: none !important;
51
+ }
52
+
48
53
  &--fixed {
49
54
  position: fixed;
50
55
  right: $spacing-05;
@@ -68,45 +73,19 @@ $draghandle-btn-class: #{$block-class}__handle;
68
73
  visibility: visible;
69
74
  }
70
75
 
71
- // CARET STYLING
72
- &__caret {
73
- // background-color: this property is set in _coachmark-overlay-theme.scss
74
- position: absolute;
75
- z-index: 5902;
76
- width: 0;
77
- height: 0;
78
- // border-bottom-color: this property is set in _coachmark-overlay-theme.scss
79
- border-right: $caret-center solid transparent;
80
- border-bottom: solid $caret-center $background-inverse;
81
- border-left: $caret-center solid transparent;
82
- }
83
-
84
- // OVERLAY AND CARET POSITIONING
76
+ // OVERLAY POSITIONING
85
77
  &--top {
86
78
  $horizontal-push: calc($distance-offset - $caret-center);
87
79
  $translate-y: calc(-1 * (100% + $distance-offset + $caret-height));
88
80
 
89
81
  transform: translate(-50%, $translate-y);
90
82
 
91
- .#{$block-class}__caret {
92
- left: calc(50% - $caret-center);
93
- transform: rotate(180deg);
94
- }
95
-
96
83
  &-left {
97
84
  transform: translate(calc(-1 * $distance-offset), $translate-y);
98
- .#{$block-class}__caret {
99
- left: $horizontal-push;
100
- transform: rotate(180deg);
101
- }
102
85
  }
103
86
 
104
87
  &-right {
105
88
  transform: translate(calc(-1 * (100% - $distance-offset)), $translate-y);
106
- .#{$block-class}__caret {
107
- right: $horizontal-push;
108
- transform: rotate(180deg);
109
- }
110
89
  }
111
90
  }
112
91
 
@@ -116,26 +95,13 @@ $draghandle-btn-class: #{$block-class}__handle;
116
95
  $translate-y: calc($distance-offset + $caret-height);
117
96
 
118
97
  transform: translate(-50%, $translate-y);
119
- .#{$block-class}__caret {
120
- top: $top;
121
- left: calc(50% - $caret-center);
122
- }
123
98
 
124
99
  &-left {
125
100
  transform: translate(calc(-1 * $distance-offset), $translate-y);
126
- .#{$block-class}__caret {
127
- top: $top;
128
- left: $horizontal-push;
129
- }
130
101
  }
131
102
 
132
103
  &-right {
133
104
  transform: translate(calc(-1 * (100% - $distance-offset)), $translate-y);
134
-
135
- .#{$block-class}__caret {
136
- top: $top;
137
- right: $horizontal-push;
138
- }
139
105
  }
140
106
  }
141
107
 
@@ -145,28 +111,13 @@ $draghandle-btn-class: #{$block-class}__handle;
145
111
  $vertical-push: calc($distance-offset - ($caret-height * 0.5));
146
112
 
147
113
  transform: translate($translate-x, -50%);
148
- .#{$block-class}__caret {
149
- top: calc(50% - ($caret-height * 0.5));
150
- right: $right;
151
- transform: rotate(90deg);
152
- }
153
114
 
154
115
  &-top {
155
116
  transform: translate($translate-x, calc(-1 * $distance-offset));
156
- .#{$block-class}__caret {
157
- top: $vertical-push;
158
- right: $right;
159
- transform: rotate(90deg);
160
- }
161
117
  }
162
118
 
163
119
  &-bottom {
164
120
  transform: translate($translate-x, calc(-1 * (100% - $distance-offset)));
165
- .#{$block-class}__caret {
166
- right: $right;
167
- bottom: $vertical-push;
168
- transform: rotate(90deg);
169
- }
170
121
  }
171
122
  }
172
123
 
@@ -176,28 +127,13 @@ $draghandle-btn-class: #{$block-class}__handle;
176
127
  $vertical-push: calc($distance-offset - ($caret-height * 0.5));
177
128
 
178
129
  transform: translate($translate-x, -50%);
179
- .#{$block-class}__caret {
180
- top: calc(50% - ($caret-height * 0.5));
181
- left: $left;
182
- transform: rotate(-90deg);
183
- }
184
130
 
185
131
  &-top {
186
132
  transform: translate($translate-x, calc(-1 * $distance-offset));
187
- .#{$block-class}__caret {
188
- top: $vertical-push;
189
- left: $left;
190
- transform: rotate(-90deg);
191
- }
192
133
  }
193
134
 
194
135
  &-bottom {
195
136
  transform: translate($translate-x, calc(-1 * (100% - $distance-offset)));
196
- .#{$block-class}__caret {
197
- bottom: $vertical-push;
198
- left: $left;
199
- transform: rotate(-90deg);
200
- }
201
137
  }
202
138
  }
203
139
 
@@ -8,6 +8,7 @@
8
8
  // Standard imports.
9
9
  @use '../../global/styles/project-settings' as c4p-settings;
10
10
  @use '../../global/styles/mixins';
11
+ @use '@carbon/styles/scss/config';
11
12
 
12
13
  @use './coachmark-dragbar';
13
14
  @use './coachmark-header';
@@ -23,8 +24,8 @@
23
24
  // TODO: @use(s) of IBM Products component styles used by Coachmark
24
25
 
25
26
  // The block part of our conventional BEM class names (blockClass__E--M).
26
- //$block-class: #{c4p-settings.$pkg-prefix}--coachmark;
27
+ $block-class: #{c4p-settings.$pkg-prefix}--coachmark;
27
28
 
28
- // .#{$block-class} {
29
- // // TODO: Styles.
30
- // }
29
+ .#{$block-class} {
30
+ position: relative;
31
+ }
@@ -69,9 +69,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--coachmark-beacon;
69
69
  }
70
70
  .#{$block-class}__target {
71
71
  // the hit area
72
- position: absolute;
73
- top: calc(-1 * $spacing-05);
74
- left: calc(-1 * $spacing-05);
72
+ display: flex;
75
73
  width: $spacing-07;
76
74
  height: $spacing-07;
77
75
  padding: 0;
@@ -49,7 +49,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
49
49
  }
50
50
  .#{$block-class}__condition-block {
51
51
  display: flex;
52
- width: max-content;
52
+ width: fit-content;
53
53
  flex-direction: row;
54
54
  }
55
55
  .#{$block-class}__content-container {
@@ -69,3 +69,10 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
69
69
  .#{$block-class}__group-separator {
70
70
  margin-top: $spacing-02;
71
71
  }
72
+ .#{$block-class}__add-group,
73
+ .#{$block-class}__group-separator {
74
+ width: fit-content;
75
+ }
76
+ .#{$block-class}__tooltip {
77
+ word-break: break-all;
78
+ }
@@ -1,6 +1,13 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
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
+
1
8
  @use '@carbon/react/scss/theme' as *;
2
9
  @use '@carbon/react/scss/spacing' as *;
3
- @use '@carbon/react/scss/motion';
10
+ @use '@carbon/react/scss/motion' as *;
4
11
  @use '@carbon/styles/scss/components/tag' as *;
5
12
  @use '@carbon/styles/scss/utilities/focus-outline';
6
13
  @use '../../../global/styles/project-settings' as c4p-settings;
@@ -30,7 +37,9 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
30
37
  .#{$block-class}__condition__deletion-preview
31
38
  .#{$block-class}__button:not(
32
39
  .#{$block-class}__statement-button,
33
- .#{$block-class}__connector-button
40
+ .#{$block-class}__connector-button,
41
+ .#{$block-class}__add-button,
42
+ .#{$block-class}__add-condition-sub-group
34
43
  ) {
35
44
  background-color: $tag-background-red;
36
45
  color: $tag-color-red;
@@ -52,14 +61,30 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
52
61
  text-wrap: nowrap;
53
62
  }
54
63
  .#{$block-class}__group-preview {
64
+ height: 0;
65
+ opacity: 0;
66
+ pointer-events: none;
67
+ transition: all $duration-moderate-02 motion(exit, expressive);
68
+ .#{$block-class}__preview-condition {
69
+ display: flex;
70
+ }
71
+ }
72
+ .#{$block-class}__group-preview-animate {
73
+ height: auto;
74
+ color: $text-secondary;
55
75
  opacity: 0.5;
56
76
  pointer-events: none;
77
+ transition: all $duration-moderate-02 motion(exit, expressive);
57
78
  }
58
- .#{$block-class}__connector-disabled {
79
+ .#{$block-class}__connector--disabled {
59
80
  display: flex;
60
81
  min-width: $spacing-10;
61
- align-items: center;
62
82
  background-color: $layer;
63
83
  color: $text-helper;
64
- padding-inline: $spacing-03;
84
+ pointer-events: none;
85
+ }
86
+ .#{$block-class}__condition-wrapper
87
+ > .#{$block-class}__condition-block:last-child
88
+ > .#{$block-class}__groupConnector {
89
+ margin-bottom: 0;
65
90
  }
@@ -1,4 +1,12 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
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
+
1
8
  @use 'sass:list';
9
+ @use 'sass:math';
2
10
  @use 'sass:string';
3
11
  @use '@carbon/react/scss/theme' as *;
4
12
  @use '../../../global/styles/project-settings' as c4p-settings;
@@ -14,11 +22,20 @@
14
22
 
15
23
  $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
16
24
 
25
+ @mixin actions-animation($translateValue) {
26
+ z-index: -1;
27
+ opacity: 0;
28
+ pointer-events: none;
29
+ /* stylelint-disable-next-line carbon/layout-token-use */
30
+ transform: translateX($translateValue);
31
+ transition: all $duration-fast-02 motion(standard, productive);
32
+ }
33
+
17
34
  .#{$block-class}__condition-wrapper * {
18
35
  @include type-style('body-01');
19
36
  }
20
37
 
21
- .#{$block-class}__item__content {
38
+ .#{$block-class}__popover-content-wrapper {
22
39
  overflow: auto;
23
40
  min-width: $spacing-07 + $spacing-13;
24
41
  max-width: $spacing-13 + $spacing-13;
@@ -96,7 +113,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
96
113
  .#{$block-class}__item-date,
97
114
  .#{$block-class}__item-text,
98
115
  .#{$block-class}__item-number,
99
- #{$block-class}__item-time {
116
+ .#{$block-class}__item-time {
100
117
  padding-block-end: $spacing-05;
101
118
  padding-inline: $spacing-05;
102
119
  }
@@ -167,21 +184,11 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
167
184
  }
168
185
  //need to revamp to a simpler logic
169
186
  $colors: (
170
- ($purple-70, $purple-60, $purple-50, $purple-40, $purple-30, $purple-20),
171
- ($cyan-70, $cyan-60, $cyan-50, $cyan-40, $cyan-30, $cyan-20),
172
- ($teal-70, $teal-60, $teal-50, $teal-40, $teal-30, $teal-20),
173
- (
174
- $magenta-70,
175
- $magenta-60,
176
- $magenta-50,
177
- $magenta-40,
178
- $magenta-30,
179
- $magenta-20
180
- ),
181
- ($red-70, $red-60, $red-50, $red-40, $red-30, $red-20),
182
- ($orange-70, $orange-60, $orange-50, $orange-40, $orange-30, $orange-20),
183
- ($yellow-70, $yellow-60, $yellow-50, $yellow-40, $yellow-30, $yellow-20),
184
- ($green-70, $green-60, $green-50, $green-40, $green-30, $green-20)
187
+ ($purple-70, $purple-60, $purple-50, $purple-40, $purple-30),
188
+ ($blue-70, $blue-60, $blue-50, $blue-40, $blue-30),
189
+ ($cyan-70, $cyan-60, $cyan-50, $cyan-40, $cyan-30),
190
+ ($teal-70, $teal-60, $teal-50, $teal-40, $teal-30),
191
+ ($green-70, $green-60, $green-50, $green-40, $green-30)
185
192
  );
186
193
 
187
194
  @for $i from 1 through list.length($colors) {
@@ -191,10 +198,30 @@ $colors: (
191
198
  )
192
199
  );
193
200
  $group-colors: list.nth($colors, $i);
194
- @each $color in $group-colors {
201
+ $group-colors-length: list.length($group-colors);
202
+
203
+ //this is to select and add color to the new group preview
204
+ .#{$block-class}__group-preview[data-color-index='#{($i%list.length($colors))}']
205
+ button {
206
+ /* stylelint-disable-next-line carbon/theme-token-use */
207
+ $next-group-color: list.nth($colors, ($i%list.length($colors)) +1);
208
+ /* stylelint-disable-next-line carbon/theme-token-use */
209
+ box-shadow: inset 0 #{$spacing-01} 0 0 list.nth($next-group-color, 1);
210
+ }
211
+
212
+ //we need to select the group color from the $colors array and need to repeat the colors after $colors.length subgroups
213
+ @for $el-index from 1 through 50 {
214
+ $item-index: $el-index;
215
+ /* stylelint-disable-next-line carbon/theme-token-use */
216
+ $item-index: ((($item-index - 1) % $group-colors-length) +1);
195
217
  #{$selector} {
196
- /* stylelint-disable-next-line carbon/theme-token-use */
197
- --#{$block-class}__condition-wrapper-color: #{$color};
218
+ @if $item-index != 1 {
219
+ /* stylelint-disable-next-line carbon/theme-token-use */
220
+ --#{$block-class}__condition-wrapper-color: #{list.nth(
221
+ $group-colors,
222
+ $item-index
223
+ )}; // stylelint-disable-line carbon/theme-token-use
224
+ }
198
225
  }
199
226
 
200
227
  $selector: list.append(
@@ -211,8 +238,15 @@ $colors: (
211
238
  .#{$block-class}__groupConnector {
212
239
  background-color: $layer;
213
240
  }
214
- .#{$block-class}__condition-wrapper > :nth-child(1) .#{$block-class}__button,
215
- .#{$block-class}__condition-wrapper > :nth-child(2) .#{$block-class}__button {
241
+ .#{$block-class}__condition-wrapper:not(.#{$block-class}__group-preview)
242
+ > :nth-child(1)
243
+ .#{$block-class}__button,
244
+ .#{$block-class}__condition-wrapper:not(.#{$block-class}__group-preview)
245
+ > :nth-child(2)
246
+ .#{$block-class}__button:not(
247
+ .#{$block-class}__add-button,
248
+ .#{$block-class}__add-condition-sub-group
249
+ ) {
216
250
  /* stylelint-disable-next-line carbon/theme-token-use */
217
251
  box-shadow: inset 0 #{$spacing-01} 0 0 var(--#{$block-class}__condition-wrapper-color);
218
252
  }
@@ -229,3 +263,35 @@ $colors: (
229
263
  align-self: center;
230
264
  margin-left: auto;
231
265
  }
266
+ .#{$block-class}__add-button-wrapper > :nth-child(1) {
267
+ @include actions-animation(-100%);
268
+ }
269
+ .#{$block-class}__add-button-wrapper > :nth-child(2) {
270
+ @include actions-animation(-200%);
271
+ }
272
+
273
+ .#{$block-class}__condition-block:focus-within:first-child
274
+ .#{$block-class}__add-button-wrapper
275
+ > span,
276
+ .#{$block-class}__condition--interacting
277
+ .#{$block-class}__add-button-wrapper
278
+ > span {
279
+ z-index: 0;
280
+ opacity: 1;
281
+ pointer-events: all;
282
+ transform: translateX(0);
283
+ /* stylelint-disable-next-line carbon/motion-easing-use */
284
+ transition: transform motion(exit, productive) $duration-fast-02;
285
+ }
286
+
287
+ .#{$block-class}__invalid-input {
288
+ display: flex;
289
+ direction: rtl;
290
+ }
291
+ .#{$block-class}__invalid-input > svg {
292
+ color: $support-warning;
293
+ /* stylelint-disable max-nesting-depth */
294
+ > path:first-child {
295
+ fill: $icon-primary;
296
+ }
297
+ }
@@ -1,2 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
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
+
1
8
  @use './conditionBuilderItem';
2
9
  @use './conditionBuilderCondition';
@@ -12,10 +12,6 @@
12
12
  @use '@carbon/styles/scss/type';
13
13
  @use '../../global/styles/project-settings' as c4p-settings;
14
14
 
15
- .#{c4p-settings.$pkg-prefix}--create-modal {
16
- background-color: $background;
17
- }
18
-
19
15
  .#{c4p-settings.$pkg-prefix}--create-modal
20
16
  .#{c4p-settings.$carbon-prefix}--modal-close {
21
17
  display: none;
@@ -201,6 +201,13 @@ $header-cell-background: $layer-accent-01;
201
201
  outline: 0;
202
202
  }
203
203
  }
204
+
205
+ .#{$block-class}__td-th.#{$block-class}__td_custom {
206
+ align-items: center;
207
+ justify-content: center;
208
+ gap: $spacing-03;
209
+ }
210
+
204
211
  .#{$block-class}__selection-area--element {
205
212
  position: absolute;
206
213
  z-index: 2;
@@ -252,7 +259,9 @@ $header-cell-background: $layer-accent-01;
252
259
  background-color: $background-inverse;
253
260
  }
254
261
  }
255
- .#{$block-class}__th--selected-header.#{$block-class}__th {
262
+ .#{$block-class}__th--selected-header.#{$block-class}__th:not(
263
+ .#{$block-class}__th--active-header-disabledSwapping
264
+ ) {
256
265
  cursor: grab;
257
266
  }
258
267
  .#{$block-class}__th--selected-header-reorder-active.#{$block-class}__th {
@@ -268,6 +277,9 @@ $header-cell-background: $layer-accent-01;
268
277
  width: $spacing-01;
269
278
  background-color: $background-brand;
270
279
  }
280
+ .#{$block-class}__th--active-header-disabledSwapping {
281
+ cursor: pointer;
282
+ }
271
283
  .#{$block-class}__th--active-header,
272
284
  .#{$block-class}__td-th--active-header.#{$block-class}__td {
273
285
  background-color: $background-selected-hover;
@@ -283,7 +295,9 @@ $header-cell-background: $layer-accent-01;
283
295
  background-color: $background-inverse;
284
296
  }
285
297
  }
286
- .#{$block-class}__th--selected-header.#{$block-class}__th {
298
+ .#{$block-class}__th--selected-header.#{$block-class}__th:not(
299
+ .#{$block-class}__th--active-header-disabledSwapping
300
+ ) {
287
301
  cursor: grab;
288
302
  }
289
303
  .#{$block-class}__th--selected-header-reorder-active.#{$block-class}__th {
@@ -80,7 +80,3 @@ $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
80
80
  ) {
81
81
  min-width: auto;
82
82
  }
83
-
84
- .#{$block-class} .#{c4p-settings.$carbon-prefix}--pagination {
85
- background-color: $layer-02;
86
- }
@@ -479,6 +479,7 @@
479
479
  }
480
480
 
481
481
  .#{$block-class}__head-hidden-select-all {
482
+ min-width: $spacing-09;
482
483
  padding-right: $spacing-09;
483
484
 
484
485
  &.#{$block-class}__select-all-sticky-left {
@@ -1,10 +1,9 @@
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
- */
1
+ /**
2
+ * Copyright IBM Corp. 2024
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
 
9
8
  @use '@carbon/styles/scss/spacing' as *;
10
9
  @use '@carbon/styles/scss/theme';
@@ -1,10 +1,9 @@
1
- /*
2
- * Licensed Materials - Property of IBM
3
- * 5724-Q36
4
- * (c) Copyright IBM Corp. 2020
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. 2024
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
 
9
8
  @use './variables';
10
9
 
@@ -1,10 +1,9 @@
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. 2024
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
 
9
8
  @use '../../../global/styles/project-settings' as c4p-settings;
10
9
  @use '@carbon/styles/scss/theme' as *;
@@ -1,10 +1,9 @@
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
- */
1
+ /**
2
+ * Copyright IBM Corp. 2024
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
 
9
8
  @use '../../../global/styles/project-settings' as c4p-settings;
10
9
  @use '@carbon/styles/scss/spacing' as *;
@@ -80,6 +79,19 @@ $row-heights: (
80
79
  align-items: center;
81
80
  }
82
81
 
82
+ .#{variables.$block-class}__inline-edit--outer-cell-checkbox-focus
83
+ .cds--checkbox-label::before {
84
+ outline: $spacing-01 solid $focus;
85
+ outline-offset: 1px;
86
+ }
87
+
88
+ .#{variables.$block-class}__inline-edit--outer-cell-checkbox {
89
+ display: flex;
90
+ height: -webkit-fill-available;
91
+ justify-content: center;
92
+ padding-inline: $spacing-05;
93
+ }
94
+
83
95
  .#{variables.$block-class}__static--outer-cell {
84
96
  display: flex;
85
97
  height: -webkit-fill-available;
@@ -1,10 +1,9 @@
1
- /*
2
- * Licensed Materials - Property of IBM
3
- * 5724-Q36
4
- * (c) Copyright IBM Corp. 2020 - 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. 2024
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
 
9
8
  @use '@carbon/styles/scss/theme' as *;
10
9
  @use '@carbon/styles/scss/spacing' as *;