@carbon/ibm-products 2.43.2-canary.1 → 2.43.2-canary.101

Sign up to get free protection for your applications and to get access to all the features.
Files changed (362) hide show
  1. package/css/index-full-carbon.css +429 -143
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +219 -9
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +249 -105
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +350 -129
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/ActionBar/ActionBarItem.js +1 -1
  18. package/es/components/Coachmark/Coachmark.d.ts +6 -1
  19. package/es/components/Coachmark/Coachmark.js +47 -11
  20. package/es/components/Coachmark/CoachmarkOverlay.js +2 -4
  21. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
  22. package/es/components/CoachmarkFixed/CoachmarkFixed.js +13 -11
  23. package/es/components/CoachmarkStack/CoachmarkStack.js +7 -3
  24. package/es/components/CoachmarkStack/CoachmarkStackHome.js +8 -4
  25. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +76 -55
  26. package/es/components/ConditionBuilder/ConditionBuilder.js +82 -25
  27. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
  28. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +154 -0
  29. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +3 -1
  30. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +29 -13
  31. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +8 -1
  32. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +30 -8
  33. package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +14 -9
  34. package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +19 -11
  35. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -13
  36. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +75 -62
  37. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +13 -7
  38. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +31 -8
  39. package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +8 -2
  40. package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +35 -24
  41. package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +40 -36
  42. package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +40 -36
  43. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +6 -2
  44. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +98 -40
  45. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
  46. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +24 -9
  47. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +27 -9
  48. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
  49. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +114 -0
  50. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
  51. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +71 -38
  52. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +5 -1
  53. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +22 -9
  54. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +1 -1
  55. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +1 -3
  56. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +121 -40
  57. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +3 -1
  58. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +45 -19
  59. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +2 -1
  60. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +137 -40
  61. package/es/components/ConditionBuilder/utils/useTranslations.d.ts +1 -0
  62. package/es/components/ConditionBuilder/utils/useTranslations.js +26 -0
  63. package/es/components/ConditionBuilder/utils/util.d.ts +6 -4
  64. package/es/components/ConditionBuilder/utils/util.js +42 -17
  65. package/es/components/CreateFullPage/CreateFullPage.js +2 -2
  66. package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +26 -0
  67. package/es/components/DataSpreadsheet/DataSpreadsheet.js +140 -54
  68. package/es/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +25 -1
  69. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +50 -9
  70. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +16 -0
  71. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +32 -8
  72. package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +4 -1
  73. package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.d.ts +3 -1
  74. package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +15 -3
  75. package/es/components/DataSpreadsheet/types/index.d.ts +2 -1
  76. package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +34 -2
  77. package/es/components/Datagrid/Datagrid/Datagrid.d.ts +0 -4
  78. package/es/components/Datagrid/Datagrid/Datagrid.js +4 -9
  79. package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  80. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -8
  81. package/es/components/Datagrid/Datagrid/DatagridRow.js +21 -8
  82. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +6 -6
  83. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
  84. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +34 -10
  85. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
  86. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
  87. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +3 -1
  88. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +7 -4
  89. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
  90. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +54 -17
  91. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
  92. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +75 -12
  93. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
  94. package/es/components/Datagrid/types/index.d.ts +61 -9
  95. package/es/components/Datagrid/useActionsColumn.d.ts +8 -1
  96. package/es/components/Datagrid/useActionsColumn.js +7 -6
  97. package/es/components/Datagrid/useColumnCenterAlign.d.ts +8 -1
  98. package/es/components/Datagrid/useColumnCenterAlign.js +1 -1
  99. package/es/components/Datagrid/useColumnRightAlign.d.ts +8 -1
  100. package/es/components/Datagrid/useColumnRightAlign.js +4 -3
  101. package/es/components/Datagrid/useCustomizeColumns.d.ts +8 -1
  102. package/es/components/Datagrid/useCustomizeColumns.js +4 -3
  103. package/es/components/Datagrid/useDefaultStringRenderer.js +0 -1
  104. package/es/components/Datagrid/useDisableSelectRows.d.ts +2 -1
  105. package/es/components/Datagrid/useDisableSelectRows.js +27 -22
  106. package/es/components/Datagrid/useInlineEdit.d.ts +8 -1
  107. package/es/components/Datagrid/useInlineEdit.js +13 -3
  108. package/es/components/Datagrid/useNestedRowExpander.js +1 -3
  109. package/es/components/Datagrid/useNestedRows.js +32 -13
  110. package/es/components/Datagrid/useRowExpander.js +1 -3
  111. package/es/components/Datagrid/useSelectRows.js +2 -1
  112. package/es/components/Datagrid/useStickyColumn.d.ts +8 -1
  113. package/es/components/Datagrid/useStickyColumn.js +12 -9
  114. package/es/components/Decorator/Decorator.js +2 -1
  115. package/es/components/DecoratorBase/DecoratorBase.js +3 -5
  116. package/es/components/DecoratorDualButton/DecoratorDualButton.js +2 -1
  117. package/es/components/DecoratorLink/DecoratorLink.js +2 -1
  118. package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +2 -1
  119. package/es/components/EditInPlace/EditInPlace.d.ts +4 -0
  120. package/es/components/EditInPlace/EditInPlace.js +21 -10
  121. package/es/components/EditTearsheet/EditTearsheet.d.ts +7 -2
  122. package/es/components/EditTearsheet/EditTearsheet.js +44 -10
  123. package/es/components/EditTearsheet/EditTearsheetForm.d.ts +45 -2
  124. package/es/components/EditTearsheet/EditTearsheetForm.js +3 -0
  125. package/es/components/EmptyStates/EmptyStateV2.d.ts +63 -2
  126. package/es/components/EmptyStates/EmptyStateV2.js +2 -1
  127. package/es/components/FullPageError/FullPageError.d.ts +36 -2
  128. package/es/components/FullPageError/FullPageError.js +0 -3
  129. package/es/components/GetStartedCard/GetStartedCard.d.ts +61 -2
  130. package/es/components/GetStartedCard/GetStartedCard.js +9 -8
  131. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
  132. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
  133. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
  134. package/es/components/HTTPErrors/assets/HTTPErrorSvg403.js +204 -200
  135. package/es/components/HTTPErrors/assets/HTTPErrorSvg404.js +116 -112
  136. package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.js +110 -106
  137. package/es/components/Nav/NavItem.js +12 -3
  138. package/es/components/OptionsTile/OptionsTile.js +11 -6
  139. package/es/components/PageHeader/PageHeader.js +1 -0
  140. package/es/components/RemoveModal/RemoveModal.d.ts +4 -0
  141. package/es/components/RemoveModal/RemoveModal.js +7 -1
  142. package/es/components/SearchBar/SearchBar.d.ts +1 -1
  143. package/es/components/SearchBar/SearchBar.js +2 -2
  144. package/es/components/SidePanel/SidePanel.js +17 -21
  145. package/es/components/SidePanel/motion/variants.d.ts +4 -6
  146. package/es/components/SidePanel/motion/variants.js +10 -11
  147. package/es/components/StatusIndicator/StatusIndicatorStep.js +87 -0
  148. package/es/components/StringFormatter/StringFormatter.js +14 -3
  149. package/es/components/StringFormatter/utils/enums.d.ts +20 -1
  150. package/es/components/StringFormatter/utils/enums.js +22 -2
  151. package/es/components/TagOverflow/TagOverflow.d.ts +35 -4
  152. package/es/components/TagOverflow/TagOverflow.js +47 -64
  153. package/es/components/TagOverflow/TagOverflowModal.js +4 -6
  154. package/es/components/TagOverflow/TagOverflowPopover.d.ts +13 -1
  155. package/es/components/TagOverflow/TagOverflowPopover.js +38 -41
  156. package/es/components/Tearsheet/Tearsheet.d.ts +8 -1
  157. package/es/components/Tearsheet/Tearsheet.js +9 -1
  158. package/es/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
  159. package/es/components/Tearsheet/TearsheetNarrow.js +12 -0
  160. package/es/components/Tearsheet/TearsheetShell.d.ts +11 -1
  161. package/es/components/Tearsheet/TearsheetShell.js +28 -7
  162. package/es/components/Toolbar/ToolbarButton.js +1 -1
  163. package/es/components/WebTerminal/WebTerminal.js +10 -12
  164. package/es/components/index.d.ts +1 -1
  165. package/es/global/js/hooks/useFocus.d.ts +1 -0
  166. package/es/global/js/hooks/useFocus.js +5 -2
  167. package/es/global/js/hooks/usePrefersReducedMotion.js +14 -8
  168. package/es/global/js/package-settings.d.ts +1 -1
  169. package/es/global/js/package-settings.js +1 -1
  170. package/es/index.js +1 -0
  171. package/es/node_modules/@carbon/icon-helpers/es/index.js +49 -62
  172. package/es/node_modules/@carbon/icons-react/es/generated/bucket-2.js +1020 -1058
  173. package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +881 -758
  174. package/es/settings.d.ts +1 -1
  175. package/lib/components/ActionBar/ActionBarItem.js +1 -1
  176. package/lib/components/Coachmark/Coachmark.d.ts +6 -1
  177. package/lib/components/Coachmark/Coachmark.js +46 -10
  178. package/lib/components/Coachmark/CoachmarkOverlay.js +2 -4
  179. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
  180. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +13 -11
  181. package/lib/components/CoachmarkStack/CoachmarkStack.js +7 -3
  182. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +8 -4
  183. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +74 -53
  184. package/lib/components/ConditionBuilder/ConditionBuilder.js +82 -25
  185. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
  186. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +163 -0
  187. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +3 -1
  188. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +28 -11
  189. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +8 -1
  190. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +29 -7
  191. package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +12 -7
  192. package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +18 -10
  193. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -13
  194. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +73 -60
  195. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +13 -7
  196. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +31 -8
  197. package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +8 -2
  198. package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +34 -24
  199. package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +40 -36
  200. package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +40 -36
  201. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +6 -2
  202. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +96 -38
  203. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
  204. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +24 -9
  205. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +28 -10
  206. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
  207. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +122 -0
  208. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
  209. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +68 -35
  210. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +5 -1
  211. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +21 -8
  212. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +1 -1
  213. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +1 -3
  214. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +118 -37
  215. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +3 -1
  216. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +44 -17
  217. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +2 -1
  218. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +137 -39
  219. package/lib/components/ConditionBuilder/utils/useTranslations.d.ts +1 -0
  220. package/lib/components/ConditionBuilder/utils/useTranslations.js +30 -0
  221. package/lib/components/ConditionBuilder/utils/util.d.ts +6 -4
  222. package/lib/components/ConditionBuilder/utils/util.js +44 -16
  223. package/lib/components/CreateFullPage/CreateFullPage.js +2 -2
  224. package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +26 -0
  225. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +140 -54
  226. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +25 -1
  227. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +50 -9
  228. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +16 -0
  229. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +32 -8
  230. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +4 -1
  231. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.d.ts +3 -1
  232. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +15 -3
  233. package/lib/components/DataSpreadsheet/types/index.d.ts +2 -1
  234. package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +34 -2
  235. package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +0 -4
  236. package/lib/components/Datagrid/Datagrid/Datagrid.js +4 -9
  237. package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  238. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -8
  239. package/lib/components/Datagrid/Datagrid/DatagridRow.js +21 -8
  240. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +6 -6
  241. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
  242. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +34 -10
  243. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
  244. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
  245. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +3 -1
  246. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +7 -4
  247. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
  248. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +53 -16
  249. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
  250. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +74 -11
  251. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
  252. package/lib/components/Datagrid/types/index.d.ts +61 -9
  253. package/lib/components/Datagrid/useActionsColumn.d.ts +8 -1
  254. package/lib/components/Datagrid/useActionsColumn.js +7 -6
  255. package/lib/components/Datagrid/useColumnCenterAlign.d.ts +8 -1
  256. package/lib/components/Datagrid/useColumnCenterAlign.js +1 -1
  257. package/lib/components/Datagrid/useColumnRightAlign.d.ts +8 -1
  258. package/lib/components/Datagrid/useColumnRightAlign.js +4 -3
  259. package/lib/components/Datagrid/useCustomizeColumns.d.ts +8 -1
  260. package/lib/components/Datagrid/useCustomizeColumns.js +4 -3
  261. package/lib/components/Datagrid/useDefaultStringRenderer.js +0 -1
  262. package/lib/components/Datagrid/useDisableSelectRows.d.ts +2 -1
  263. package/lib/components/Datagrid/useDisableSelectRows.js +27 -22
  264. package/lib/components/Datagrid/useInlineEdit.d.ts +8 -1
  265. package/lib/components/Datagrid/useInlineEdit.js +13 -3
  266. package/lib/components/Datagrid/useNestedRowExpander.js +1 -3
  267. package/lib/components/Datagrid/useNestedRows.js +32 -13
  268. package/lib/components/Datagrid/useRowExpander.js +1 -3
  269. package/lib/components/Datagrid/useSelectRows.js +2 -1
  270. package/lib/components/Datagrid/useStickyColumn.d.ts +8 -1
  271. package/lib/components/Datagrid/useStickyColumn.js +12 -9
  272. package/lib/components/Decorator/Decorator.js +2 -1
  273. package/lib/components/DecoratorBase/DecoratorBase.js +3 -5
  274. package/lib/components/DecoratorDualButton/DecoratorDualButton.js +2 -1
  275. package/lib/components/DecoratorLink/DecoratorLink.js +2 -1
  276. package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +2 -1
  277. package/lib/components/EditInPlace/EditInPlace.d.ts +4 -0
  278. package/lib/components/EditInPlace/EditInPlace.js +21 -10
  279. package/lib/components/EditTearsheet/EditTearsheet.d.ts +7 -2
  280. package/lib/components/EditTearsheet/EditTearsheet.js +43 -9
  281. package/lib/components/EditTearsheet/EditTearsheetForm.d.ts +45 -2
  282. package/lib/components/EditTearsheet/EditTearsheetForm.js +3 -0
  283. package/lib/components/EmptyStates/EmptyStateV2.d.ts +63 -2
  284. package/lib/components/EmptyStates/EmptyStateV2.js +2 -1
  285. package/lib/components/FullPageError/FullPageError.d.ts +36 -2
  286. package/lib/components/FullPageError/FullPageError.js +0 -3
  287. package/lib/components/GetStartedCard/GetStartedCard.d.ts +61 -2
  288. package/lib/components/GetStartedCard/GetStartedCard.js +8 -7
  289. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
  290. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
  291. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
  292. package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +204 -200
  293. package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +116 -112
  294. package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +110 -106
  295. package/lib/components/Nav/NavItem.js +10 -1
  296. package/lib/components/OptionsTile/OptionsTile.js +11 -6
  297. package/lib/components/PageHeader/PageHeader.js +1 -0
  298. package/lib/components/RemoveModal/RemoveModal.d.ts +4 -0
  299. package/lib/components/RemoveModal/RemoveModal.js +7 -1
  300. package/lib/components/SearchBar/SearchBar.d.ts +1 -1
  301. package/lib/components/SearchBar/SearchBar.js +2 -2
  302. package/lib/components/SidePanel/SidePanel.js +16 -20
  303. package/lib/components/SidePanel/motion/variants.d.ts +4 -6
  304. package/lib/components/SidePanel/motion/variants.js +10 -11
  305. package/lib/components/StatusIndicator/StatusIndicatorStep.js +94 -0
  306. package/lib/components/StringFormatter/StringFormatter.js +13 -2
  307. package/lib/components/StringFormatter/utils/enums.d.ts +20 -1
  308. package/lib/components/StringFormatter/utils/enums.js +23 -1
  309. package/lib/components/TagOverflow/TagOverflow.d.ts +35 -4
  310. package/lib/components/TagOverflow/TagOverflow.js +46 -63
  311. package/lib/components/TagOverflow/TagOverflowModal.js +4 -6
  312. package/lib/components/TagOverflow/TagOverflowPopover.d.ts +13 -1
  313. package/lib/components/TagOverflow/TagOverflowPopover.js +37 -40
  314. package/lib/components/Tearsheet/Tearsheet.d.ts +8 -1
  315. package/lib/components/Tearsheet/Tearsheet.js +9 -1
  316. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
  317. package/lib/components/Tearsheet/TearsheetNarrow.js +12 -0
  318. package/lib/components/Tearsheet/TearsheetShell.d.ts +11 -1
  319. package/lib/components/Tearsheet/TearsheetShell.js +26 -5
  320. package/lib/components/Toolbar/ToolbarButton.js +1 -1
  321. package/lib/components/WebTerminal/WebTerminal.js +10 -12
  322. package/lib/components/index.d.ts +1 -1
  323. package/lib/global/js/hooks/useFocus.d.ts +1 -0
  324. package/lib/global/js/hooks/useFocus.js +5 -1
  325. package/lib/global/js/hooks/usePrefersReducedMotion.js +13 -7
  326. package/lib/global/js/package-settings.d.ts +1 -1
  327. package/lib/global/js/package-settings.js +1 -1
  328. package/lib/index.js +5 -0
  329. package/lib/node_modules/@carbon/icon-helpers/es/index.js +49 -62
  330. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-2.js +1036 -1074
  331. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +946 -823
  332. package/lib/settings.d.ts +1 -1
  333. package/package.json +9 -8
  334. package/scss/components/Coachmark/_coachmark-overlay.scss +6 -70
  335. package/scss/components/Coachmark/_coachmark.scss +5 -4
  336. package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +1 -3
  337. package/scss/components/ConditionBuilder/_condition-builder.scss +5 -1
  338. package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +20 -3
  339. package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +32 -3
  340. package/scss/components/CreateModal/_create-modal.scss +0 -4
  341. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +17 -2
  342. package/scss/components/Datagrid/_datagrid.scss +0 -4
  343. package/scss/components/Datagrid/styles/_datagrid.scss +1 -0
  344. package/scss/components/Datagrid/styles/_useInlineEdit.scss +13 -0
  345. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +7 -5
  346. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +5 -4
  347. package/scss/components/HTTPErrors/_http-errors.scss +77 -0
  348. package/scss/components/OptionsTile/_options-tile.scss +6 -6
  349. package/scss/components/SidePanel/_side-panel.scss +1 -1
  350. package/scss/components/StatusIcon/_status-icon.scss +4 -4
  351. package/scss/components/StringFormatter/_string-formatter.scss +2 -2
  352. package/scss/components/UserProfileImage/_user-profile-image.scss +6 -2
  353. package/scss/components/_index-released-only.scss +1 -0
  354. package/telemetry.yml +32 -19
  355. package/es/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
  356. package/es/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -16
  357. package/es/global/js/utils/window.d.ts +0 -2
  358. package/es/global/js/utils/window.js +0 -12
  359. package/lib/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
  360. package/lib/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -20
  361. package/lib/global/js/utils/window.d.ts +0 -2
  362. package/lib/global/js/utils/window.js +0 -16
@@ -15,6 +15,7 @@ import { pkg } from '../../settings.js';
15
15
  import { Toggle, Layer } from '@carbon/react';
16
16
  import { ChevronDown, Locked, WarningFilled, WarningAltFilled } from '@carbon/react/icons';
17
17
  import * as carbonMotion from '@carbon/motion';
18
+ import usePrefersReducedMotion from '../../global/js/hooks/usePrefersReducedMotion.js';
18
19
  import { useControllableState } from '../../global/js/hooks/useControllableState.js';
19
20
 
20
21
  var _Locked;
@@ -71,9 +72,7 @@ var OptionsTile = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
71
72
  var isInvalid = invalid;
72
73
  var isWarn = !isInvalid && warn;
73
74
  var isLocked = !isInvalid && !isWarn && locked;
74
- var reducedMotion = window && window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)') : {
75
- matches: true
76
- };
75
+ var shouldReduceMotion = usePrefersReducedMotion();
77
76
  if (open !== prevIsOpen) {
78
77
  if (isOpen && !open) {
79
78
  collapse();
@@ -83,7 +82,7 @@ var OptionsTile = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
83
82
  setPrevIsOpen(open);
84
83
  }
85
84
  function expand() {
86
- if (detailsRef.current && contentRef.current && !reducedMotion.matches) {
85
+ if (detailsRef.current && contentRef.current && !shouldReduceMotion) {
87
86
  setIsOpen(true);
88
87
  detailsRef.current.open = true;
89
88
  var _getComputedStyle = getComputedStyle(contentRef.current),
@@ -112,7 +111,7 @@ var OptionsTile = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
112
111
  }
113
112
  }
114
113
  function collapse() {
115
- if (contentRef.current && !reducedMotion.matches) {
114
+ if (contentRef.current && !shouldReduceMotion) {
116
115
  setClosing(true);
117
116
  var _getComputedStyle2 = getComputedStyle(contentRef.current),
118
117
  paddingTop = _getComputedStyle2.paddingTop,
@@ -164,6 +163,12 @@ var OptionsTile = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
164
163
  var Icon = null;
165
164
  var text = summary;
166
165
  var summaryClasses = ["".concat(blockClass, "__summary")];
166
+ if (closing) {
167
+ summaryClasses.push("".concat(blockClass, "__summary--closing"));
168
+ }
169
+ if (isOpen) {
170
+ summaryClasses.push("".concat(blockClass, "__summary--open"));
171
+ }
167
172
  if (invalid) {
168
173
  Icon = WarningFilled;
169
174
  text = invalidText;
@@ -227,7 +232,7 @@ var OptionsTile = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
227
232
  onClick: toggle
228
233
  }, /*#__PURE__*/React__default.createElement(ChevronDown, {
229
234
  size: 16,
230
- className: "".concat(blockClass, "__chevron")
235
+ className: cx("".concat(blockClass, "__chevron"), _defineProperty(_defineProperty({}, "".concat(blockClass, "__chevron--open"), isOpen), "".concat(blockClass, "__chevron--closing"), closing))
231
236
  }), renderTitle()), /*#__PURE__*/React__default.createElement("div", {
232
237
  className: "".concat(blockClass, "__content"),
233
238
  ref: contentRef
@@ -27,6 +27,7 @@ import { ButtonSetWithOverflow } from '../ButtonSetWithOverflow/ButtonSetWithOve
27
27
 
28
28
  var _excluded = ["actionBarItems", "actionBarMenuOptionsClass", "actionBarOverflowAriaLabel", "allTagsModalSearchLabel", "allTagsModalSearchPlaceholderText", "allTagsModalTitle", "hasBackgroundAlways", "breadcrumbOverflowAriaLabel", "breadcrumbs", "children", "className", "collapseHeader", "collapseHeaderIconDescription", "collapseTitle", "disableBreadcrumbScroll", "enableBreadcrumbScroll", "expandHeaderIconDescription", "fullWidthGrid", "hasCollapseHeaderToggle", "narrowGrid", "navigation", "pageActions", "pageActionsOverflowLabel", "pageActionsMenuOptionsClass", "showAllTagsLabel", "subtitle", "tags", "title", "withoutBackground", "breadcrumbOverflowTooltipAlign"];
29
29
  var componentName = 'PageHeader';
30
+ pkg._silenceWarnings(true);
30
31
  pkg.component.ActionBar = true;
31
32
 
32
33
  // Default values for props
@@ -58,6 +58,10 @@ interface RemoveModalProps extends React.ComponentProps<typeof ComposedModal> {
58
58
  * Specify the text for the primary button
59
59
  */
60
60
  primaryButtonText?: string;
61
+ /**
62
+ * Specify the danger description on the primary button
63
+ */
64
+ primaryDangerDescription?: string;
61
65
  /**
62
66
  * The name of the resource being acted upon
63
67
  */
@@ -16,7 +16,7 @@ import { pkg } from '../../settings.js';
16
16
  import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
17
17
  import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
18
18
 
19
- var _excluded = ["body", "className", "iconDescription", "inputInvalidText", "inputLabelText", "inputPlaceholderText", "label", "onClose", "onRequestSubmit", "open", "portalTarget", "preventCloseOnClickOutside", "primaryButtonDisabled", "primaryButtonText", "resourceName", "secondaryButtonText", "textConfirmation", "title"];
19
+ var _excluded = ["body", "className", "iconDescription", "inputInvalidText", "inputLabelText", "inputPlaceholderText", "label", "onClose", "onRequestSubmit", "open", "portalTarget", "preventCloseOnClickOutside", "primaryButtonDisabled", "primaryButtonText", "primaryDangerDescription", "resourceName", "secondaryButtonText", "textConfirmation", "title"];
20
20
  var componentName = 'RemoveModal';
21
21
 
22
22
  /**
@@ -40,6 +40,7 @@ var RemoveModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
40
40
  preventCloseOnClickOutside = _ref.preventCloseOnClickOutside,
41
41
  primaryButtonDisabled = _ref.primaryButtonDisabled,
42
42
  primaryButtonText = _ref.primaryButtonText,
43
+ primaryDangerDescription = _ref.primaryDangerDescription,
43
44
  resourceName = _ref.resourceName,
44
45
  secondaryButtonText = _ref.secondaryButtonText,
45
46
  textConfirmation = _ref.textConfirmation,
@@ -109,6 +110,7 @@ var RemoveModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
109
110
  }, secondaryButtonText), /*#__PURE__*/React__default.createElement(Button, {
110
111
  type: "submit",
111
112
  kind: "danger",
113
+ dangerDescription: primaryDangerDescription,
112
114
  onClick: onRequestSubmit,
113
115
  disabled: primaryButtonStatus
114
116
  }, primaryButtonText))));
@@ -173,6 +175,10 @@ RemoveModal.propTypes = {
173
175
  * Specify the text for the primary button
174
176
  */
175
177
  primaryButtonText: PropTypes.string,
178
+ /**
179
+ * Specify the danger description on the primary button
180
+ */
181
+ primaryDangerDescription: PropTypes.string,
176
182
  /**
177
183
  * The name of the resource being acted upon
178
184
  */
@@ -17,7 +17,7 @@ interface SearchBarProps extends PropsWithChildren {
17
17
  */
18
18
  hideScopesLabel?: boolean;
19
19
  /** @type {string} The label text for the search text input. */
20
- labelText?: string;
20
+ labelText: string;
21
21
  /** @type {Function} Function handler for when the user changes their query search. */
22
22
  onChange?: (event: any) => void;
23
23
  /** @type {Function} Function handler for when the user submits a search. */
@@ -135,7 +135,7 @@ var SearchBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
135
135
  })) : null, /*#__PURE__*/React__default.createElement(Search, {
136
136
  className: "".concat(blockClass, "__input"),
137
137
  closeButtonLabelText: clearButtonLabelText,
138
- labelText: labelText || '',
138
+ labelText: labelText,
139
139
  name: "search-input",
140
140
  onChange: handleInputChange,
141
141
  placeholder: placeholderText,
@@ -188,7 +188,7 @@ SearchBar.propTypes = _objectSpread2({
188
188
  */
189
189
  hideScopesLabel: PropTypes.bool,
190
190
  /** @type {string} The label text for the search text input. */
191
- labelText: PropTypes.string,
191
+ labelText: PropTypes.string.isRequired,
192
192
  /** @type {Function} Function handler for when the user changes their query search. */
193
193
  onChange: PropTypes.func,
194
194
  /** @type {Function} Function handler for when the user submits a search. */
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default, { useState, useRef, useEffect, useCallback } from 'react';
10
- import { motion, useReducedMotion, AnimatePresence } from 'framer-motion';
10
+ import { motion, AnimatePresence } from 'framer-motion';
11
11
  import PropTypes from '../../node_modules/prop-types/index.js';
12
12
  import cx from 'classnames';
13
13
  import { moderate02 } from '@carbon/motion';
@@ -19,6 +19,7 @@ import { Button, IconButton } from '@carbon/react';
19
19
  import { ArrowLeft, Close } from '@carbon/react/icons';
20
20
  import { actionSetVariants, overlayVariants, panelVariants } from './motion/variants.js';
21
21
  import pconsole from '../../global/js/utils/pconsole.js';
22
+ import usePrefersReducedMotion from '../../global/js/hooks/usePrefersReducedMotion.js';
22
23
  import { ActionSet } from '../ActionSet/ActionSet.js';
23
24
  import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
24
25
  import { useFocus } from '../../global/js/hooks/useFocus.js';
@@ -44,7 +45,6 @@ var defaults = {
44
45
  * Side panels keep users in-context of a page while performing tasks like navigating, editing, viewing details, or configuring something new.
45
46
  */
46
47
  var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
47
- var _window;
48
48
  var actionToolbarButtons = _ref.actionToolbarButtons,
49
49
  actions = _ref.actions,
50
50
  _ref$animateTitle = _ref.animateTitle,
@@ -111,7 +111,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
111
111
  keyDownListener = _useFocus.keyDownListener;
112
112
  var panelRefValue = sidePanelRef.current;
113
113
  var previousOpen = usePreviousValue(open);
114
- var shouldReduceMotion = useReducedMotion();
114
+ var shouldReduceMotion = usePrefersReducedMotion();
115
115
 
116
116
  // Title animation on scroll related state
117
117
  var _useState7 = useState(0),
@@ -154,9 +154,6 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
154
154
  titleItemsStyles(animationProgress);
155
155
  }
156
156
  }, [doAnimateTitle, panelRefValue === null || panelRefValue === void 0 ? void 0 : panelRefValue.style, scrollAnimationDistance, titleItemsStyles]);
157
- var reducedMotion = typeof document !== 'undefined' && (_window = window) !== null && _window !== void 0 && _window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)') : {
158
- matches: true
159
- };
160
157
 
161
158
  // scroll panel to top going between steps
162
159
  useEffect(function () {
@@ -193,7 +190,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
193
190
  }, [launcherButtonRef, open, previousOpen]);
194
191
  var checkSetDoAnimateTitle = function checkSetDoAnimateTitle() {
195
192
  var canDoAnimateTitle = false;
196
- if (panelRefValue && open && animateTitle && animationComplete && titleRef !== null && titleRef !== void 0 && titleRef.current && title && title.length && !reducedMotion.matches) {
193
+ if (panelRefValue && open && animateTitle && animationComplete && titleRef !== null && titleRef !== void 0 && titleRef.current && title && title.length && !shouldReduceMotion) {
197
194
  var _labelTextRef$current3, _labelTextRef$current4, _subtitleRef$current$, _subtitleRef$current;
198
195
  var titleEl = titleRef.current;
199
196
  var labelHeight = (_labelTextRef$current3 = labelTextRef === null || labelTextRef === void 0 || (_labelTextRef$current4 = labelTextRef.current) === null || _labelTextRef$current4 === void 0 ? void 0 : _labelTextRef$current4.offsetHeight) !== null && _labelTextRef$current3 !== void 0 ? _labelTextRef$current3 : 0;
@@ -209,8 +206,8 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
209
206
  panelRefValue === null || panelRefValue === void 0 || panelRefValue.style.setProperty("--".concat(blockClass, "--scroll-animation-distance"), _scrollAnimationDistance.toString());
210
207
  var scrollEl = innerContentRef.current;
211
208
  if (scrollEl) {
212
- var _window2;
213
- var innerComputed = (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.getComputedStyle(innerContentRef.current);
209
+ var _window;
210
+ var innerComputed = (_window = window) === null || _window === void 0 ? void 0 : _window.getComputedStyle(innerContentRef.current);
214
211
  var innerPaddingHeight = innerComputed ? parseFloat(innerComputed === null || innerComputed === void 0 ? void 0 : innerComputed.paddingTop) + parseFloat(innerComputed === null || innerComputed === void 0 ? void 0 : innerComputed.paddingBottom) : 0;
215
212
  canDoAnimateTitle = (!!labelText || !!actionToolbarButtons || !!subtitle) && scrollEl.scrollHeight - scrollEl.clientHeight >= _scrollAnimationDistance + innerPaddingHeight;
216
213
  }
@@ -228,12 +225,12 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
228
225
 
229
226
  // Calculate scroll distances
230
227
  useEffect(function () {
231
- if (panelRefValue && open && animateTitle && animationComplete && titleRef !== null && titleRef !== void 0 && titleRef.current && title && title.length && !reducedMotion.matches) {
228
+ if (panelRefValue && open && animateTitle && animationComplete && titleRef !== null && titleRef !== void 0 && titleRef.current && title && title.length && !shouldReduceMotion) {
232
229
  checkSetDoAnimateTitle();
233
230
  }
234
231
 
235
232
  // eslint-disable-next-line react-hooks/exhaustive-deps
236
- }, [open, doAnimateTitle /* use do instead of animateTitle directly */, animationComplete, handleScroll, title, size, reducedMotion.matches, id]);
233
+ }, [open, doAnimateTitle /* use do instead of animateTitle directly */, animationComplete, handleScroll, title, size, shouldReduceMotion, id]);
237
234
 
238
235
  // click outside functionality if `includeOverlay` prop is set
239
236
  useEffect(function () {
@@ -269,10 +266,10 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
269
266
  // Set the internal state `animationComplete` to true if
270
267
  // prefers reduced motion is true
271
268
  useEffect(function () {
272
- if (reducedMotion.matches) {
269
+ if (shouldReduceMotion) {
273
270
  setAnimationComplete(true);
274
271
  }
275
- }, [reducedMotion.matches]);
272
+ }, [shouldReduceMotion]);
276
273
 
277
274
  // initializes the side panel to open
278
275
  var onAnimationStart = function onAnimationStart() {
@@ -291,10 +288,10 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
291
288
  }
292
289
  }, [open, placement, selectorPageContent, slideIn]);
293
290
  useEffect(function () {
294
- if (!open && previousState && previousState['open'] && reducedMotion.matches) {
291
+ if (!open && previousState && previousState['open'] && shouldReduceMotion) {
295
292
  onUnmount === null || onUnmount === void 0 || onUnmount();
296
293
  }
297
- }, [open, onUnmount, reducedMotion.matches, previousState]);
294
+ }, [open, onUnmount, shouldReduceMotion, previousState]);
298
295
 
299
296
  // used to set margins of content for slide in panel version
300
297
  useEffect(function () {
@@ -307,15 +304,15 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
307
304
  }
308
305
  if (placement && placement === 'right' && pageContentElement) {
309
306
  pageContentElement.style.marginInlineEnd = '0';
310
- pageContentElement.style.transition = !reducedMotion.matches ? "margin-inline-end ".concat(moderate02) : '';
307
+ pageContentElement.style.transition = !shouldReduceMotion ? "margin-inline-end ".concat(moderate02) : '';
311
308
  pageContentElement.style.marginInlineEnd = SIDE_PANEL_SIZES[size];
312
309
  } else if (pageContentElement) {
313
310
  pageContentElement.style.marginInlineStart = '0';
314
- pageContentElement.style.transition = !reducedMotion.matches ? "margin-inline-start ".concat(moderate02) : '';
311
+ pageContentElement.style.transition = !shouldReduceMotion ? "margin-inline-start ".concat(moderate02) : '';
315
312
  pageContentElement.style.marginInlineStart = SIDE_PANEL_SIZES[size];
316
313
  }
317
314
  }
318
- }, [slideIn, selectorPageContent, placement, size, reducedMotion.matches, open]);
315
+ }, [slideIn, selectorPageContent, placement, size, shouldReduceMotion, open]);
319
316
  useEffect(function () {
320
317
  if (open) {
321
318
  setTimeout(function () {
@@ -341,7 +338,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
341
338
  className: "".concat(blockClass, "__title-text"),
342
339
  title: title,
343
340
  "aria-hidden": false
344
- }, title), doAnimateTitle && !reducedMotion.matches && /*#__PURE__*/React__default.createElement("h2", {
341
+ }, title), doAnimateTitle && !shouldReduceMotion && /*#__PURE__*/React__default.createElement("h2", {
345
342
  className: "".concat(blockClass, "__collapsed-title-text"),
346
343
  title: title,
347
344
  "aria-hidden": true
@@ -358,10 +355,9 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
358
355
  });
359
356
  }
360
357
  return /*#__PURE__*/React__default.createElement("div", {
361
- className: cx("".concat(blockClass, "__header"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__header--on-detail-step"), currentStep > 0), "".concat(blockClass, "__header--no-title-animation"), !animateTitle), "".concat(blockClass, "__header--reduced-motion"), reducedMotion.matches), "".concat(blockClass, "__header--has-title"), title)),
358
+ className: cx("".concat(blockClass, "__header"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__header--on-detail-step"), currentStep > 0), "".concat(blockClass, "__header--no-title-animation"), !animateTitle), "".concat(blockClass, "__header--reduced-motion"), shouldReduceMotion), "".concat(blockClass, "__header--has-title"), title)),
362
359
  ref: headerRef
363
360
  }, currentStep > 0 && /*#__PURE__*/React__default.createElement(Button, {
364
- "aria-label": navigationBackIconDescription,
365
361
  kind: "ghost",
366
362
  size: slugCloseSize,
367
363
  disabled: false,
@@ -16,15 +16,13 @@ export namespace overlayVariants {
16
16
  }
17
17
  }
18
18
  export namespace panelVariants {
19
- export function visible_1({ shouldReduceMotion }: {
20
- shouldReduceMotion: any;
21
- }): {
19
+ export function visible_1(): {
22
20
  x: number;
23
21
  transition: {
24
22
  duration: number;
25
23
  ease: number[];
26
24
  };
27
- opacity: any;
25
+ opacity: number;
28
26
  };
29
27
  export { visible_1 as visible };
30
28
  export function hidden_1({ placement, shouldReduceMotion }: {
@@ -32,7 +30,7 @@ export namespace panelVariants {
32
30
  shouldReduceMotion: any;
33
31
  }): {
34
32
  x: string | number;
35
- opacity: any;
33
+ opacity: number;
36
34
  };
37
35
  export { hidden_1 as hidden };
38
36
  export function exit_1({ placement, shouldReduceMotion }: {
@@ -44,7 +42,7 @@ export namespace panelVariants {
44
42
  duration: number;
45
43
  ease: number[];
46
44
  };
47
- opacity: any;
45
+ opacity: number;
48
46
  };
49
47
  export { exit_1 as exit };
50
48
  }
@@ -23,35 +23,34 @@ var overlayVariants = {
23
23
  }
24
24
  };
25
25
  var panelVariants = {
26
- visible: function visible(_ref) {
27
- var shouldReduceMotion = _ref.shouldReduceMotion;
26
+ visible: function visible() {
28
27
  return {
29
28
  x: 0,
30
29
  transition: {
31
30
  duration: DURATIONS.moderate02,
32
31
  ease: EASINGS.productive.standard
33
32
  },
34
- opacity: shouldReduceMotion && 1
33
+ opacity: 1
35
34
  };
36
35
  },
37
- hidden: function hidden(_ref2) {
38
- var placement = _ref2.placement,
39
- shouldReduceMotion = _ref2.shouldReduceMotion;
36
+ hidden: function hidden(_ref) {
37
+ var placement = _ref.placement,
38
+ shouldReduceMotion = _ref.shouldReduceMotion;
40
39
  return {
41
40
  x: placement === 'right' ? shouldReduceMotion ? 0 : '100%' : shouldReduceMotion ? 0 : -320,
42
- opacity: shouldReduceMotion && 0
41
+ opacity: shouldReduceMotion ? 0 : 1
43
42
  };
44
43
  },
45
- exit: function exit(_ref3) {
46
- var placement = _ref3.placement,
47
- shouldReduceMotion = _ref3.shouldReduceMotion;
44
+ exit: function exit(_ref2) {
45
+ var placement = _ref2.placement,
46
+ shouldReduceMotion = _ref2.shouldReduceMotion;
48
47
  return {
49
48
  x: placement === 'right' ? shouldReduceMotion ? 0 : '100%' : shouldReduceMotion ? 0 : -320,
50
49
  transition: {
51
50
  duration: DURATIONS.moderate01,
52
51
  ease: EASINGS.productive.exit
53
52
  },
54
- opacity: shouldReduceMotion && 0
53
+ opacity: shouldReduceMotion ? 0 : 1
55
54
  };
56
55
  }
57
56
  };
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Copyright IBM Corp. 2020, 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
+
8
+ import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
+ import React__default from 'react';
10
+ import PropTypes from '../../node_modules/prop-types/index.js';
11
+ import cx from 'classnames';
12
+ import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
13
+ import { pkg } from '../../settings.js';
14
+ import { InlineLoading } from '@carbon/react';
15
+ import { CircleStroke, ErrorOutline, CheckmarkOutline } from '@carbon/react/icons';
16
+
17
+ var _CircleStroke, _InlineLoading, _ErrorOutline, _CheckmarkOutline;
18
+ var _excluded = ["className", "description", "errorMessage", "status"];
19
+
20
+ // The block part of our conventional BEM class names (blockClass__E--M).
21
+ var blockClass = "".concat(pkg.prefix, "--status-indicator-step");
22
+ var componentName = 'StatusIndicatorStep';
23
+ var defaults = {
24
+ status: 'inactive'
25
+ };
26
+
27
+ /**
28
+ * An icon/description pair that describes one step of the `StatusIndicator`.
29
+ */
30
+ var StatusIndicatorStep = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
31
+ var className = _ref.className,
32
+ description = _ref.description,
33
+ errorMessage = _ref.errorMessage,
34
+ _ref$status = _ref.status,
35
+ status = _ref$status === void 0 ? defaults.status : _ref$status,
36
+ rest = _objectWithoutProperties(_ref, _excluded);
37
+ return /*#__PURE__*/React__default.createElement("li", _extends({}, rest, {
38
+ className: cx(blockClass, className, "".concat(blockClass, "--").concat(status)),
39
+ ref: ref
40
+ }, getDevtoolsProps(componentName)), /*#__PURE__*/React__default.createElement("div", {
41
+ className: "".concat(blockClass, "__details")
42
+ }, /*#__PURE__*/React__default.createElement("div", {
43
+ className: "".concat(blockClass, "__icon")
44
+ }, status === 'inactive' && (_CircleStroke || (_CircleStroke = /*#__PURE__*/React__default.createElement(CircleStroke, {
45
+ size: 16,
46
+ viewBox: "1 1 14 14"
47
+ }))), status === 'active' && (_InlineLoading || (_InlineLoading = /*#__PURE__*/React__default.createElement(InlineLoading, null))), status === 'error' && (_ErrorOutline || (_ErrorOutline = /*#__PURE__*/React__default.createElement(ErrorOutline, {
48
+ size: 16
49
+ }))), status === 'finished' && (_CheckmarkOutline || (_CheckmarkOutline = /*#__PURE__*/React__default.createElement(CheckmarkOutline, {
50
+ size: 16
51
+ })))), /*#__PURE__*/React__default.createElement("div", {
52
+ className: "".concat(blockClass, "__text")
53
+ }, description)), status === 'error' && errorMessage && /*#__PURE__*/React__default.createElement("div", {
54
+ className: "".concat(blockClass, "__error-message")
55
+ }, errorMessage));
56
+ });
57
+
58
+ // Return a placeholder if not released and not enabled by feature flag
59
+ StatusIndicatorStep = pkg.checkComponentEnabled(StatusIndicatorStep, componentName);
60
+
61
+ // The display name of the component, used by React. Note that displayName
62
+ // is used in preference to relying on function.name.
63
+ StatusIndicatorStep.displayName = componentName;
64
+
65
+ // The types and DocGen commentary for the component props,
66
+ // in alphabetical order (for consistency).
67
+ // See https://www.npmjs.com/package/prop-types#usage.
68
+ StatusIndicatorStep.propTypes = {
69
+ /**
70
+ * Provide an optional class to be applied to the containing node.
71
+ */
72
+ className: PropTypes.string,
73
+ /**
74
+ * The text associated with the icon.
75
+ */
76
+ description: PropTypes.string.isRequired,
77
+ /**
78
+ * This message will appear below the description if the `status` is "error".
79
+ */
80
+ errorMessage: PropTypes.string,
81
+ /**
82
+ * Each `status` represents a different icon..
83
+ */
84
+ status: PropTypes.oneOf(['inactive', 'active', 'error', 'finished']).isRequired
85
+ };
86
+
87
+ export { StatusIndicatorStep };
@@ -12,14 +12,15 @@ import cx from 'classnames';
12
12
  import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
13
13
  import { pkg } from '../../settings.js';
14
14
  import { DefinitionTooltip } from '@carbon/react';
15
- import { StringFormatterAlignment } from './utils/enums.js';
15
+ import { StringFormatterAlignment, deprecated_StringFormatterAlignment, propMappingFunction } from './utils/enums.js';
16
+ import { allPropTypes } from '../../global/js/utils/props-helper.js';
16
17
 
17
18
  var _excluded = ["className", "lines", "tooltipDirection", "truncate", "width", "value"];
18
19
  var blockClass = "".concat(pkg.prefix, "--string-formatter");
19
20
  var componentName = 'StringFormatter';
20
21
  var defaults = {
21
22
  lines: 1,
22
- tooltipDirection: StringFormatterAlignment.BOTTOM_LEFT,
23
+ tooltipDirection: StringFormatterAlignment.BOTTOM_START,
23
24
  truncate: false,
24
25
  width: null
25
26
  };
@@ -59,6 +60,16 @@ var StringFormatter = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
59
60
  });
60
61
  StringFormatter = pkg.checkComponentEnabled(StringFormatter, componentName);
61
62
  StringFormatter.displayName = componentName;
63
+ StringFormatter.validateAlignment = function () {
64
+ return function (props, propName, componentName) {
65
+ var prop = props[propName];
66
+ var deprecatedAlignValues = Object.values(deprecated_StringFormatterAlignment);
67
+ if (deprecatedAlignValues.includes(prop)) {
68
+ var mappedNewProp = propMappingFunction(prop);
69
+ console.warn("\"".concat(prop, "\" is a deprecated value for the \"").concat(propName, "\" prop on the \"").concat(componentName, "\" component. Use \"").concat(mappedNewProp, "\" instead. Allowable values are: ").concat(Object.values(StringFormatterAlignment).join(', '), "."));
70
+ }
71
+ };
72
+ };
62
73
  StringFormatter.propTypes = {
63
74
  /**
64
75
  * Provide an optional class to be applied to the containing node.
@@ -67,7 +78,7 @@ StringFormatter.propTypes = {
67
78
  /** Number of lines to clamp value. */
68
79
  lines: PropTypes.number,
69
80
  /** Specify the direction of the tooltip. Can be either top or bottom. */
70
- tooltipDirection: PropTypes.oneOf(Object.values(StringFormatterAlignment)),
81
+ tooltipDirection: allPropTypes([StringFormatter.validateAlignment(), PropTypes.oneOf(Object.values(deprecated_StringFormatterAlignment), Object.values(StringFormatterAlignment))]),
71
82
  /** Whether or not the value should be truncated. */
72
83
  truncate: PropTypes.bool,
73
84
  /** Value to format. */
@@ -1,4 +1,4 @@
1
- export namespace StringFormatterAlignment {
1
+ export namespace deprecated_StringFormatterAlignment {
2
2
  let TOP: string;
3
3
  let TOP_LEFT: string;
4
4
  let TOP_RIGHT: string;
@@ -12,3 +12,22 @@ export namespace StringFormatterAlignment {
12
12
  let RIGHT_BOTTOM: string;
13
13
  let RIGHT_TOP: string;
14
14
  }
15
+ export namespace StringFormatterAlignment {
16
+ let TOP_1: string;
17
+ export { TOP_1 as TOP };
18
+ export let TOP_START: string;
19
+ export let TOP_END: string;
20
+ let BOTTOM_1: string;
21
+ export { BOTTOM_1 as BOTTOM };
22
+ export let BOTTOM_START: string;
23
+ export let BOTTOM_END: string;
24
+ let LEFT_1: string;
25
+ export { LEFT_1 as LEFT };
26
+ export let LEFT_END: string;
27
+ export let LEFT_START: string;
28
+ let RIGHT_1: string;
29
+ export { RIGHT_1 as RIGHT };
30
+ export let RIGHT_END: string;
31
+ export let RIGHT_START: string;
32
+ }
33
+ export function propMappingFunction(deprecatedValue: any): string;
@@ -5,7 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- var StringFormatterAlignment = {
8
+ import { defineProperty as _defineProperty } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
+
10
+ var deprecated_StringFormatterAlignment = {
9
11
  TOP: 'top',
10
12
  TOP_LEFT: 'top-left',
11
13
  TOP_RIGHT: 'top-right',
@@ -19,5 +21,23 @@ var StringFormatterAlignment = {
19
21
  RIGHT_BOTTOM: 'right-bottom',
20
22
  RIGHT_TOP: 'right-top'
21
23
  };
24
+ var StringFormatterAlignment = {
25
+ TOP: 'top',
26
+ TOP_START: 'top-start',
27
+ TOP_END: 'top-end',
28
+ BOTTOM: 'bottom',
29
+ BOTTOM_START: 'bottom-start',
30
+ BOTTOM_END: 'bottom-end',
31
+ LEFT: 'left',
32
+ LEFT_END: 'left-end',
33
+ LEFT_START: 'left-start',
34
+ RIGHT: 'right',
35
+ RIGHT_END: 'right-end',
36
+ RIGHT_START: 'right-start'
37
+ };
38
+ var propMappingFunction = function propMappingFunction(deprecatedValue) {
39
+ var mapping = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, deprecated_StringFormatterAlignment.TOP_LEFT, StringFormatterAlignment.TOP_START), deprecated_StringFormatterAlignment.TOP_RIGHT, StringFormatterAlignment.TOP_END), deprecated_StringFormatterAlignment.BOTTOM_LEFT, StringFormatterAlignment.BOTTOM_START), deprecated_StringFormatterAlignment.BOTTOM_RIGHT, StringFormatterAlignment.BOTTOM_END), deprecated_StringFormatterAlignment.LEFT_BOTTOM, StringFormatterAlignment.LEFT_END), deprecated_StringFormatterAlignment.LEFT_TOP, StringFormatterAlignment.LEFT_START), deprecated_StringFormatterAlignment.RIGHT_BOTTOM, StringFormatterAlignment.RIGHT_END), deprecated_StringFormatterAlignment.RIGHT_START, StringFormatterAlignment.RIGHT_START);
40
+ return mapping[deprecatedValue];
41
+ };
22
42
 
23
- export { StringFormatterAlignment };
43
+ export { StringFormatterAlignment, deprecated_StringFormatterAlignment, propMappingFunction };
@@ -1,10 +1,41 @@
1
1
  /**
2
- * TODO: A description of the component.
2
+ * Copyright IBM Corp. 2024, 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.
3
6
  */
4
- export let TagOverflow: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
7
+ import React, { RefObject, ReactNode } from 'react';
8
+ export interface TagOverflowItem {
9
+ className?: string;
10
+ filter?: string;
11
+ id: string;
12
+ label: string;
13
+ onClose: () => void;
14
+ tagType?: 'red' | 'magenta' | 'purple' | 'blue' | 'cyan' | 'teal' | 'green' | 'gray' | 'cool-gray' | 'warm-gray' | 'high-contrast' | 'outline';
15
+ type?: string;
16
+ }
17
+ export interface Props {
18
+ align?: 'start' | 'center' | 'end';
19
+ allTagsModalSearchLabel?: string;
20
+ allTagsModalSearchPlaceholderText?: string;
21
+ allTagsModalTarget?: ReactNode;
22
+ allTagsModalTitle?: string;
23
+ className?: string;
24
+ containingElementRef?: RefObject<HTMLElement>;
25
+ items: TagOverflowItem[];
26
+ maxVisible?: number;
27
+ measurementOffset?: number;
28
+ multiline?: boolean;
29
+ overflowAlign?: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'left-bottom' | 'left-top' | 'right' | 'right-bottom' | 'right-top';
30
+ overflowClassName?: string;
31
+ overflowType?: 'default' | 'tag';
32
+ onOverflowTagChange?: (arr: TagOverflowItem[]) => void;
33
+ showAllTagsLabel?: string;
34
+ tagComponent?: string;
35
+ }
36
+ export declare let TagOverflow: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
5
37
  /**
6
38
  * The strings shown in the showAllModal are only shown if we have more than allTagsModalSearchLThreshold
7
39
  * @returns null if no problems
8
40
  */
9
- export const string_required_if_more_than_10_tags: (props: any, propName: any, componentName: any, location: any, propFullName: any, secret: any) => any;
10
- import React from 'react';
41
+ export declare const string_required_if_more_than_10_tags: (props: any, propName: any, componentName: any, location: any, propFullName: any, secret: any) => any;