@carbon/ibm-products 2.74.0 → 2.75.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (430) hide show
  1. package/css/carbon.css +349 -63
  2. package/css/carbon.css.map +1 -1
  3. package/css/index-full-carbon.css +351 -80
  4. package/css/index-full-carbon.css.map +1 -1
  5. package/css/index-full-carbon.min.css +1 -1
  6. package/css/index-full-carbon.min.css.map +1 -1
  7. package/css/index-without-carbon-released-only.css +2 -17
  8. package/css/index-without-carbon-released-only.css.map +1 -1
  9. package/css/index-without-carbon-released-only.min.css +1 -1
  10. package/css/index-without-carbon-released-only.min.css.map +1 -1
  11. package/css/index-without-carbon.css +2 -17
  12. package/css/index-without-carbon.css.map +1 -1
  13. package/css/index-without-carbon.min.css +1 -1
  14. package/css/index-without-carbon.min.css.map +1 -1
  15. package/css/index.css +204 -60
  16. package/css/index.css.map +1 -1
  17. package/css/index.min.css +1 -1
  18. package/css/index.min.css.map +1 -1
  19. package/es/components/APIKeyModal/APIKeyModal.d.ts +1 -1
  20. package/es/components/APIKeyModal/APIKeyModal.js +2 -2
  21. package/es/components/AboutModal/AboutModal.d.ts +1 -1
  22. package/es/components/AboutModal/AboutModal.js +1 -2
  23. package/es/components/ActionBar/ActionBar.d.ts +1 -1
  24. package/es/components/ActionBar/ActionBar.js +1 -2
  25. package/es/components/ActionBar/ActionBarItem.d.ts +1 -1
  26. package/es/components/ActionBar/ActionBarItem.js +1 -2
  27. package/es/components/BigNumber/BigNumber.d.ts +1 -1
  28. package/es/components/BigNumber/BigNumber.js +1 -4
  29. package/es/components/BigNumber/index.js +8 -0
  30. package/es/components/Cascade/Cascade.d.ts +1 -1
  31. package/es/components/Cascade/Cascade.js +1 -2
  32. package/es/components/Checklist/Checklist.d.ts +1 -1
  33. package/es/components/Checklist/Checklist.js +1 -2
  34. package/es/components/Coachmark/Coachmark.d.ts +1 -1
  35. package/es/components/Coachmark/Coachmark.js +1 -2
  36. package/es/components/Coachmark/CoachmarkDragbar.d.ts +1 -1
  37. package/es/components/Coachmark/CoachmarkDragbar.js +1 -2
  38. package/es/components/Coachmark/CoachmarkHeader.d.ts +1 -1
  39. package/es/components/Coachmark/CoachmarkHeader.js +1 -2
  40. package/es/components/Coachmark/CoachmarkOverlay.d.ts +1 -1
  41. package/es/components/Coachmark/CoachmarkOverlay.js +1 -2
  42. package/es/components/Coachmark/CoachmarkTagline.d.ts +1 -1
  43. package/es/components/Coachmark/CoachmarkTagline.js +1 -2
  44. package/es/components/Coachmark/next/Coachmark/index.js +8 -0
  45. package/es/components/Coachmark/utils/enums.js +5 -1
  46. package/es/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +1 -1
  47. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -2
  48. package/es/components/CoachmarkButton/CoachmarkButton.d.ts +1 -1
  49. package/es/components/CoachmarkButton/CoachmarkButton.js +1 -2
  50. package/es/components/CoachmarkFixed/CoachmarkFixed.d.ts +1 -1
  51. package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -2
  52. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +1 -1
  53. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +1 -4
  54. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +1 -1
  55. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -4
  56. package/es/components/CoachmarkStack/CoachmarkStack.d.ts +1 -1
  57. package/es/components/CoachmarkStack/CoachmarkStack.js +1 -2
  58. package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +1 -1
  59. package/es/components/CoachmarkStack/CoachmarkStackHome.js +1 -4
  60. package/es/components/ConditionBuilder/ConditionBuilder.d.ts +1 -1
  61. package/es/components/ConditionBuilder/ConditionBuilder.js +1 -3
  62. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +6 -0
  63. package/es/components/ConditionBuilder/index.js +8 -0
  64. package/es/components/CreateFullPage/CreateFullPage.d.ts +1 -1
  65. package/es/components/CreateFullPage/CreateFullPage.js +1 -2
  66. package/es/components/CreateFullPage/CreateFullPageStep.d.ts +1 -1
  67. package/es/components/CreateFullPage/CreateFullPageStep.js +1 -4
  68. package/es/components/CreateModal/CreateModal.d.ts +1 -1
  69. package/es/components/CreateModal/CreateModal.js +2 -2
  70. package/es/components/CreateSidePanel/CreateSidePanel.d.ts +1 -1
  71. package/es/components/CreateSidePanel/CreateSidePanel.js +1 -2
  72. package/es/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
  73. package/es/components/CreateTearsheet/CreateTearsheet.js +1 -2
  74. package/es/components/CreateTearsheet/CreateTearsheetDivider.d.ts +1 -1
  75. package/es/components/CreateTearsheet/CreateTearsheetDivider.js +1 -5
  76. package/es/components/CreateTearsheet/CreateTearsheetStep.d.ts +1 -1
  77. package/es/components/CreateTearsheet/CreateTearsheetStep.js +1 -4
  78. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +1 -1
  79. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -4
  80. package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +1 -1
  81. package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -2
  82. package/es/components/DataSpreadsheet/index.js +8 -0
  83. package/es/components/Datagrid/Datagrid/Datagrid.d.ts +1 -1
  84. package/es/components/Datagrid/Datagrid/Datagrid.js +1 -2
  85. package/es/components/Decorator/index.js +8 -0
  86. package/es/components/DecoratorBase/utils.d.ts +1 -1
  87. package/es/components/DelimitedList/DelimitedList.d.ts +1 -1
  88. package/es/components/DelimitedList/DelimitedList.js +1 -2
  89. package/es/components/DelimitedList/index.js +8 -0
  90. package/es/components/EditFullPage/EditFullPage.d.ts +1 -1
  91. package/es/components/EditFullPage/EditFullPage.js +1 -2
  92. package/es/components/EditInPlace/EditInPlace.d.ts +1 -1
  93. package/es/components/EditInPlace/EditInPlace.js +1 -2
  94. package/es/components/EditSidePanel/EditSidePanel.d.ts +1 -1
  95. package/es/components/EditSidePanel/EditSidePanel.js +1 -2
  96. package/es/components/EditTearsheet/EditTearsheet.d.ts +1 -1
  97. package/es/components/EditTearsheet/EditTearsheet.js +1 -2
  98. package/es/components/EditTearsheet/EditTearsheetForm.d.ts +1 -1
  99. package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
  100. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +1 -1
  101. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -4
  102. package/es/components/EditUpdateCards/EditUpdateCards.d.ts +1 -1
  103. package/es/components/EditUpdateCards/EditUpdateCards.js +1 -2
  104. package/es/components/EmptyStates/EmptyState.d.ts +1 -1
  105. package/es/components/EmptyStates/EmptyState.js +2 -2
  106. package/es/components/EmptyStates/EmptyStateV2.deprecated.d.ts +1 -1
  107. package/es/components/EmptyStates/EmptyStateV2.deprecated.js +2 -2
  108. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -1
  109. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -2
  110. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -1
  111. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
  112. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -1
  113. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -2
  114. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -1
  115. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -4
  116. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -1
  117. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -4
  118. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -1
  119. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -4
  120. package/es/components/ExportModal/ExportModal.d.ts +1 -1
  121. package/es/components/ExportModal/ExportModal.js +2 -2
  122. package/es/components/ExpressiveCard/ExpressiveCard.d.ts +1 -1
  123. package/es/components/ExpressiveCard/ExpressiveCard.js +2 -3
  124. package/es/components/FullPageError/FullPageError.d.ts +1 -1
  125. package/es/components/FullPageError/FullPageError.js +1 -2
  126. package/es/components/GetStartedCard/GetStartedCard.d.ts +1 -1
  127. package/es/components/GetStartedCard/GetStartedCard.js +2 -3
  128. package/es/components/GetStartedCard/index.js +8 -0
  129. package/es/components/Guidebanner/Guidebanner.d.ts +1 -1
  130. package/es/components/Guidebanner/Guidebanner.js +1 -2
  131. package/es/components/Guidebanner/GuidebannerElement.d.ts +1 -1
  132. package/es/components/Guidebanner/GuidebannerElement.js +1 -4
  133. package/es/components/Guidebanner/GuidebannerElementButton.d.ts +1 -1
  134. package/es/components/Guidebanner/GuidebannerElementButton.js +1 -4
  135. package/es/components/Guidebanner/GuidebannerElementLink.d.ts +1 -1
  136. package/es/components/Guidebanner/GuidebannerElementLink.js +1 -4
  137. package/es/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +1 -1
  138. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -2
  139. package/es/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +1 -1
  140. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -2
  141. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.d.ts +1 -1
  142. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -2
  143. package/es/components/ImportModal/ImportModal.d.ts +1 -1
  144. package/es/components/ImportModal/ImportModal.js +2 -2
  145. package/es/components/InlineTip/InlineTip.d.ts +1 -1
  146. package/es/components/InlineTip/InlineTip.js +1 -2
  147. package/es/components/InlineTip/InlineTipButton.d.ts +1 -1
  148. package/es/components/InlineTip/InlineTipButton.js +1 -2
  149. package/es/components/InlineTip/InlineTipLink.d.ts +1 -1
  150. package/es/components/InlineTip/InlineTipLink.js +1 -2
  151. package/es/components/InterstitialScreen/InterstitialScreen.d.ts +1 -1
  152. package/es/components/InterstitialScreen/InterstitialScreen.js +1 -4
  153. package/es/components/InterstitialScreen/_story-assets/InterstitialScreenView/InterstitialScreenView.d.ts +2 -2
  154. package/es/components/InterstitialScreen/_story-assets/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +2 -2
  155. package/es/components/MultiAddSelect/MultiAddSelect.d.ts +1 -1
  156. package/es/components/MultiAddSelect/MultiAddSelect.js +1 -3
  157. package/es/components/NonLinearReading/NonLinearReading.d.ts +1 -1
  158. package/es/components/NonLinearReading/NonLinearReading.js +1 -2
  159. package/es/components/NonLinearReading/index.js +8 -0
  160. package/es/components/NotificationsPanel/NotificationsPanel.d.ts +1 -1
  161. package/es/components/NotificationsPanel/NotificationsPanel.js +1 -4
  162. package/es/components/OptionsTile/OptionsTile.d.ts +1 -1
  163. package/es/components/OptionsTile/OptionsTile.js +1 -2
  164. package/es/components/PageHeader/PageHeader.d.ts +1 -1
  165. package/es/components/PageHeader/PageHeader.js +1 -2
  166. package/es/components/ProductiveCard/ProductiveCard.d.ts +1 -1
  167. package/es/components/ProductiveCard/ProductiveCard.js +2 -3
  168. package/es/components/RemoveModal/RemoveModal.d.ts +1 -1
  169. package/es/components/RemoveModal/RemoveModal.js +2 -2
  170. package/es/components/Saving/Saving.d.ts +1 -1
  171. package/es/components/Saving/Saving.js +1 -2
  172. package/es/components/SearchBar/SearchBar.d.ts +1 -1
  173. package/es/components/SearchBar/SearchBar.js +1 -2
  174. package/es/components/SearchBar/index.js +8 -0
  175. package/es/components/SidePanel/SidePanel.d.ts +4 -1
  176. package/es/components/SidePanel/SidePanel.js +4 -6
  177. package/es/components/SingleAddSelect/SingleAddSelect.d.ts +1 -1
  178. package/es/components/SingleAddSelect/SingleAddSelect.js +1 -3
  179. package/es/components/StatusIcon/StatusIcon.d.ts +1 -1
  180. package/es/components/StatusIcon/StatusIcon.js +1 -2
  181. package/es/components/StepFlow/story-assets/SidePanel/StepSidePanel.d.ts +4 -3
  182. package/es/components/TagOverflow/TagOverflow.d.ts +1 -1
  183. package/es/components/TagOverflow/TagOverflow.js +1 -2
  184. package/es/components/TagSet/TagSet.d.ts +1 -1
  185. package/es/components/TagSet/TagSet.js +2 -3
  186. package/es/components/Tearsheet/Tearsheet.d.ts +1 -1
  187. package/es/components/Tearsheet/Tearsheet.js +1 -3
  188. package/es/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
  189. package/es/components/Tearsheet/TearsheetNarrow.js +1 -3
  190. package/es/components/Toolbar/Toolbar.d.ts +2 -2
  191. package/es/components/Toolbar/Toolbar.js +1 -2
  192. package/es/components/Toolbar/ToolbarButton.d.ts +1 -1
  193. package/es/components/Toolbar/ToolbarButton.js +1 -3
  194. package/es/components/Toolbar/ToolbarGroup.d.ts +1 -1
  195. package/es/components/Toolbar/ToolbarGroup.js +1 -3
  196. package/es/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
  197. package/es/components/TooltipTrigger/TooltipTrigger.js +1 -2
  198. package/es/components/TruncatedList/TruncatedList.d.ts +1 -1
  199. package/es/components/TruncatedList/TruncatedList.js +1 -2
  200. package/es/components/TruncatedList/index.js +8 -0
  201. package/es/components/UserAvatar/UserAvatar.d.ts +1 -1
  202. package/es/components/UserAvatar/UserAvatar.js +1 -2
  203. package/es/components/UserProfileImage/UserProfileImage.d.ts +1 -1
  204. package/es/components/UserProfileImage/UserProfileImage.js +2 -2
  205. package/es/components/WebTerminal/WebTerminal.d.ts +1 -1
  206. package/es/components/WebTerminal/WebTerminal.js +1 -2
  207. package/es/components/WebTerminal/WebTerminalContentWrapper.d.ts +1 -1
  208. package/es/components/WebTerminal/WebTerminalContentWrapper.js +1 -4
  209. package/es/components/WebTerminal/hooks/index.d.ts +1 -1
  210. package/es/components/WebTerminal/hooks/index.js +2 -7
  211. package/es/components/index.d.ts +53 -43
  212. package/es/global/js/utils/carousel/carousel.d.ts +14 -0
  213. package/es/global/js/utils/carousel/index.d.ts +8 -0
  214. package/es/global/js/utils/carousel/swipeEvents.d.ts +7 -0
  215. package/es/global/js/utils/carousel/types.d.ts +37 -0
  216. package/es/global/js/utils/makeDraggable/makeDraggable.d.ts +20 -1
  217. package/es/global/js/utils/makeDraggable/makeDraggable.js +35 -22
  218. package/es/global/js/utils/makeDraggable/makeDraggable.stories.d.ts +1 -1
  219. package/es/index.js +69 -58
  220. package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +798 -792
  221. package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +528 -529
  222. package/lib/components/APIKeyModal/APIKeyModal.d.ts +1 -1
  223. package/lib/components/APIKeyModal/APIKeyModal.js +5 -4
  224. package/lib/components/AboutModal/AboutModal.d.ts +1 -1
  225. package/lib/components/AboutModal/AboutModal.js +5 -4
  226. package/lib/components/ActionBar/ActionBar.d.ts +1 -1
  227. package/lib/components/ActionBar/ActionBar.js +5 -4
  228. package/lib/components/ActionBar/ActionBarItem.d.ts +1 -1
  229. package/lib/components/ActionBar/ActionBarItem.js +5 -4
  230. package/lib/components/BigNumber/BigNumber.d.ts +1 -1
  231. package/lib/components/BigNumber/BigNumber.js +5 -6
  232. package/lib/components/BigNumber/index.js +14 -0
  233. package/lib/components/Cascade/Cascade.d.ts +1 -1
  234. package/lib/components/Cascade/Cascade.js +5 -4
  235. package/lib/components/Checklist/Checklist.d.ts +1 -1
  236. package/lib/components/Checklist/Checklist.js +5 -4
  237. package/lib/components/Coachmark/Coachmark.d.ts +1 -1
  238. package/lib/components/Coachmark/Coachmark.js +4 -4
  239. package/lib/components/Coachmark/CoachmarkDragbar.d.ts +1 -1
  240. package/lib/components/Coachmark/CoachmarkDragbar.js +5 -4
  241. package/lib/components/Coachmark/CoachmarkHeader.d.ts +1 -1
  242. package/lib/components/Coachmark/CoachmarkHeader.js +5 -4
  243. package/lib/components/Coachmark/CoachmarkOverlay.d.ts +1 -1
  244. package/lib/components/Coachmark/CoachmarkOverlay.js +6 -5
  245. package/lib/components/Coachmark/CoachmarkTagline.d.ts +1 -1
  246. package/lib/components/Coachmark/CoachmarkTagline.js +5 -4
  247. package/lib/components/Coachmark/next/Coachmark/index.js +14 -0
  248. package/lib/components/Coachmark/utils/enums.js +5 -0
  249. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +1 -1
  250. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +5 -4
  251. package/lib/components/CoachmarkButton/CoachmarkButton.d.ts +1 -1
  252. package/lib/components/CoachmarkButton/CoachmarkButton.js +6 -5
  253. package/lib/components/CoachmarkFixed/CoachmarkFixed.d.ts +1 -1
  254. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +5 -4
  255. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +1 -1
  256. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +6 -7
  257. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +1 -1
  258. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +6 -7
  259. package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +1 -1
  260. package/lib/components/CoachmarkStack/CoachmarkStack.js +5 -4
  261. package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +1 -1
  262. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +5 -6
  263. package/lib/components/ConditionBuilder/ConditionBuilder.d.ts +1 -1
  264. package/lib/components/ConditionBuilder/ConditionBuilder.js +5 -5
  265. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +6 -0
  266. package/lib/components/ConditionBuilder/index.js +14 -0
  267. package/lib/components/CreateFullPage/CreateFullPage.d.ts +1 -1
  268. package/lib/components/CreateFullPage/CreateFullPage.js +4 -4
  269. package/lib/components/CreateFullPage/CreateFullPageStep.d.ts +1 -1
  270. package/lib/components/CreateFullPage/CreateFullPageStep.js +4 -5
  271. package/lib/components/CreateModal/CreateModal.d.ts +1 -1
  272. package/lib/components/CreateModal/CreateModal.js +6 -4
  273. package/lib/components/CreateSidePanel/CreateSidePanel.d.ts +1 -1
  274. package/lib/components/CreateSidePanel/CreateSidePanel.js +5 -4
  275. package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
  276. package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
  277. package/lib/components/CreateTearsheet/CreateTearsheetDivider.d.ts +1 -1
  278. package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +4 -6
  279. package/lib/components/CreateTearsheet/CreateTearsheetStep.d.ts +1 -1
  280. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +4 -5
  281. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +1 -1
  282. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +5 -6
  283. package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +1 -1
  284. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +5 -4
  285. package/lib/components/DataSpreadsheet/index.js +14 -0
  286. package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +1 -1
  287. package/lib/components/Datagrid/Datagrid/Datagrid.js +6 -5
  288. package/lib/components/Decorator/index.js +17 -0
  289. package/lib/components/DecoratorBase/utils.d.ts +1 -1
  290. package/lib/components/DelimitedList/DelimitedList.d.ts +1 -1
  291. package/lib/components/DelimitedList/DelimitedList.js +5 -4
  292. package/lib/components/DelimitedList/index.js +14 -0
  293. package/lib/components/EditFullPage/EditFullPage.d.ts +1 -1
  294. package/lib/components/EditFullPage/EditFullPage.js +6 -5
  295. package/lib/components/EditInPlace/EditInPlace.d.ts +1 -1
  296. package/lib/components/EditInPlace/EditInPlace.js +4 -4
  297. package/lib/components/EditSidePanel/EditSidePanel.d.ts +1 -1
  298. package/lib/components/EditSidePanel/EditSidePanel.js +6 -5
  299. package/lib/components/EditTearsheet/EditTearsheet.d.ts +1 -1
  300. package/lib/components/EditTearsheet/EditTearsheet.js +5 -5
  301. package/lib/components/EditTearsheet/EditTearsheetForm.d.ts +1 -1
  302. package/lib/components/EditTearsheet/EditTearsheetForm.js +5 -3
  303. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +1 -1
  304. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +6 -7
  305. package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +1 -1
  306. package/lib/components/EditUpdateCards/EditUpdateCards.js +6 -5
  307. package/lib/components/EmptyStates/EmptyState.d.ts +1 -1
  308. package/lib/components/EmptyStates/EmptyState.js +5 -4
  309. package/lib/components/EmptyStates/EmptyStateV2.deprecated.d.ts +1 -1
  310. package/lib/components/EmptyStates/EmptyStateV2.deprecated.js +7 -5
  311. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -1
  312. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +5 -4
  313. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -1
  314. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +5 -4
  315. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -1
  316. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +5 -4
  317. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -1
  318. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +5 -6
  319. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -1
  320. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +5 -6
  321. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -1
  322. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +5 -6
  323. package/lib/components/ExportModal/ExportModal.d.ts +1 -1
  324. package/lib/components/ExportModal/ExportModal.js +6 -4
  325. package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +1 -1
  326. package/lib/components/ExpressiveCard/ExpressiveCard.js +6 -5
  327. package/lib/components/FullPageError/FullPageError.d.ts +1 -1
  328. package/lib/components/FullPageError/FullPageError.js +5 -4
  329. package/lib/components/GetStartedCard/GetStartedCard.d.ts +1 -1
  330. package/lib/components/GetStartedCard/GetStartedCard.js +6 -5
  331. package/lib/components/GetStartedCard/index.js +14 -0
  332. package/lib/components/Guidebanner/Guidebanner.d.ts +1 -1
  333. package/lib/components/Guidebanner/Guidebanner.js +5 -4
  334. package/lib/components/Guidebanner/GuidebannerElement.d.ts +1 -1
  335. package/lib/components/Guidebanner/GuidebannerElement.js +5 -6
  336. package/lib/components/Guidebanner/GuidebannerElementButton.d.ts +1 -1
  337. package/lib/components/Guidebanner/GuidebannerElementButton.js +5 -6
  338. package/lib/components/Guidebanner/GuidebannerElementLink.d.ts +1 -1
  339. package/lib/components/Guidebanner/GuidebannerElementLink.js +5 -6
  340. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +1 -1
  341. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -5
  342. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +1 -1
  343. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -5
  344. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.d.ts +1 -1
  345. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -5
  346. package/lib/components/ImportModal/ImportModal.d.ts +1 -1
  347. package/lib/components/ImportModal/ImportModal.js +6 -4
  348. package/lib/components/InlineTip/InlineTip.d.ts +1 -1
  349. package/lib/components/InlineTip/InlineTip.js +5 -4
  350. package/lib/components/InlineTip/InlineTipButton.d.ts +1 -1
  351. package/lib/components/InlineTip/InlineTipButton.js +5 -4
  352. package/lib/components/InlineTip/InlineTipLink.d.ts +1 -1
  353. package/lib/components/InlineTip/InlineTipLink.js +5 -4
  354. package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +1 -1
  355. package/lib/components/InterstitialScreen/InterstitialScreen.js +8 -9
  356. package/lib/components/InterstitialScreen/_story-assets/InterstitialScreenView/InterstitialScreenView.d.ts +2 -2
  357. package/lib/components/InterstitialScreen/_story-assets/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +2 -2
  358. package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +1 -1
  359. package/lib/components/MultiAddSelect/MultiAddSelect.js +5 -5
  360. package/lib/components/NonLinearReading/NonLinearReading.d.ts +1 -1
  361. package/lib/components/NonLinearReading/NonLinearReading.js +5 -4
  362. package/lib/components/NonLinearReading/index.js +14 -0
  363. package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +1 -1
  364. package/lib/components/NotificationsPanel/NotificationsPanel.js +5 -6
  365. package/lib/components/OptionsTile/OptionsTile.d.ts +1 -1
  366. package/lib/components/OptionsTile/OptionsTile.js +5 -4
  367. package/lib/components/PageHeader/PageHeader.d.ts +1 -1
  368. package/lib/components/PageHeader/PageHeader.js +5 -5
  369. package/lib/components/ProductiveCard/ProductiveCard.d.ts +1 -1
  370. package/lib/components/ProductiveCard/ProductiveCard.js +6 -5
  371. package/lib/components/RemoveModal/RemoveModal.d.ts +1 -1
  372. package/lib/components/RemoveModal/RemoveModal.js +6 -4
  373. package/lib/components/Saving/Saving.d.ts +1 -1
  374. package/lib/components/Saving/Saving.js +5 -4
  375. package/lib/components/SearchBar/SearchBar.d.ts +1 -1
  376. package/lib/components/SearchBar/SearchBar.js +4 -4
  377. package/lib/components/SearchBar/index.js +14 -0
  378. package/lib/components/SidePanel/SidePanel.d.ts +4 -1
  379. package/lib/components/SidePanel/SidePanel.js +3 -5
  380. package/lib/components/SingleAddSelect/SingleAddSelect.d.ts +1 -1
  381. package/lib/components/SingleAddSelect/SingleAddSelect.js +5 -5
  382. package/lib/components/StatusIcon/StatusIcon.d.ts +1 -1
  383. package/lib/components/StatusIcon/StatusIcon.js +5 -4
  384. package/lib/components/StepFlow/story-assets/SidePanel/StepSidePanel.d.ts +4 -3
  385. package/lib/components/TagOverflow/TagOverflow.d.ts +1 -1
  386. package/lib/components/TagOverflow/TagOverflow.js +5 -4
  387. package/lib/components/TagSet/TagSet.d.ts +1 -1
  388. package/lib/components/TagSet/TagSet.js +9 -5
  389. package/lib/components/Tearsheet/Tearsheet.d.ts +1 -1
  390. package/lib/components/Tearsheet/Tearsheet.js +4 -5
  391. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
  392. package/lib/components/Tearsheet/TearsheetNarrow.js +4 -5
  393. package/lib/components/Toolbar/Toolbar.d.ts +2 -2
  394. package/lib/components/Toolbar/Toolbar.js +4 -4
  395. package/lib/components/Toolbar/ToolbarButton.d.ts +1 -1
  396. package/lib/components/Toolbar/ToolbarButton.js +4 -5
  397. package/lib/components/Toolbar/ToolbarGroup.d.ts +1 -1
  398. package/lib/components/Toolbar/ToolbarGroup.js +5 -5
  399. package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
  400. package/lib/components/TooltipTrigger/TooltipTrigger.js +5 -4
  401. package/lib/components/TruncatedList/TruncatedList.d.ts +1 -1
  402. package/lib/components/TruncatedList/TruncatedList.js +5 -4
  403. package/lib/components/TruncatedList/index.js +14 -0
  404. package/lib/components/UserAvatar/UserAvatar.d.ts +1 -1
  405. package/lib/components/UserAvatar/UserAvatar.js +5 -4
  406. package/lib/components/UserProfileImage/UserProfileImage.d.ts +1 -1
  407. package/lib/components/UserProfileImage/UserProfileImage.js +7 -5
  408. package/lib/components/WebTerminal/WebTerminal.d.ts +1 -1
  409. package/lib/components/WebTerminal/WebTerminal.js +5 -4
  410. package/lib/components/WebTerminal/WebTerminalContentWrapper.d.ts +1 -1
  411. package/lib/components/WebTerminal/WebTerminalContentWrapper.js +5 -6
  412. package/lib/components/WebTerminal/hooks/index.d.ts +1 -1
  413. package/lib/components/WebTerminal/hooks/index.js +3 -7
  414. package/lib/components/index.d.ts +53 -43
  415. package/lib/global/js/utils/carousel/carousel.d.ts +14 -0
  416. package/lib/global/js/utils/carousel/index.d.ts +8 -0
  417. package/lib/global/js/utils/carousel/swipeEvents.d.ts +7 -0
  418. package/lib/global/js/utils/carousel/types.d.ts +37 -0
  419. package/lib/global/js/utils/makeDraggable/makeDraggable.d.ts +20 -1
  420. package/lib/global/js/utils/makeDraggable/makeDraggable.js +35 -22
  421. package/lib/global/js/utils/makeDraggable/makeDraggable.stories.d.ts +1 -1
  422. package/lib/index.js +178 -416
  423. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +817 -811
  424. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +651 -652
  425. package/package.json +17 -17
  426. package/scss/components/SidePanel/_side-panel.scss +1 -13
  427. package/scss/components/TagSet/_tag-set.scss +0 -6
  428. package/telemetry.yml +3 -1
  429. /package/es/node_modules/@carbon/icons-react/es/{iconPropTypes-4cbeb95d.js → iconPropTypes-C5chbmyn.js} +0 -0
  430. /package/lib/node_modules/@carbon/icons-react/es/{iconPropTypes-4cbeb95d.js → iconPropTypes-C5chbmyn.js} +0 -0
@@ -29,7 +29,7 @@ const componentName = 'UserAvatar';
29
29
  * TODO: A description of the component.
30
30
  */
31
31
 
32
- let UserAvatar = /*#__PURE__*/React__default.forwardRef((props, ref) => {
32
+ const UserAvatar = /*#__PURE__*/React__default.forwardRef((props, ref) => {
33
33
  const {
34
34
  backgroundColor = 'order-1-cyan',
35
35
  className,
@@ -107,7 +107,6 @@ let UserAvatar = /*#__PURE__*/React__default.forwardRef((props, ref) => {
107
107
  });
108
108
 
109
109
  // Return a placeholder if not released and not enabled by feature flag
110
- UserAvatar = pkg.checkComponentEnabled(UserAvatar, componentName);
111
110
 
112
111
  // The display name of the component, used by React. Note that displayName
113
112
  // is used in preference to relying on function.name.
@@ -65,5 +65,5 @@ export type UserProfileImageProps = UserProfileImageBaseProps & imageProps;
65
65
  * The user profile avatar allows for an image of the user to be displayed by passing in the image prop. By default the component will display a user icon on a blue background.
66
66
  * @deprecated This component is deprecated.
67
67
  */
68
- export declare let UserProfileImage: React.ForwardRefExoticComponent<UserProfileImageProps & React.RefAttributes<HTMLDivElement>>;
68
+ export declare const UserProfileImage: React.ForwardRefExoticComponent<UserProfileImageProps & React.RefAttributes<HTMLDivElement>>;
69
69
  export {};
@@ -26,7 +26,7 @@ const componentName = 'UserProfileImage';
26
26
  * The user profile avatar allows for an image of the user to be displayed by passing in the image prop. By default the component will display a user icon on a blue background.
27
27
  * @deprecated This component is deprecated.
28
28
  */
29
- let UserProfileImage = /*#__PURE__*/React__default.forwardRef((props, ref) => {
29
+ const UserProfileImage = /*#__PURE__*/React__default.forwardRef((props, ref) => {
30
30
  var _FillItem;
31
31
  const {
32
32
  backgroundColor,
@@ -116,7 +116,7 @@ UserProfileImage.deprecated = {
116
116
  };
117
117
 
118
118
  // Return a placeholder if not released and not enabled by feature flag
119
- UserProfileImage = pkg.checkComponentEnabled(UserProfileImage, componentName);
119
+
120
120
  UserProfileImage.displayName = componentName;
121
121
  UserProfileImage.propTypes = {
122
122
  /**
@@ -48,5 +48,5 @@ export interface WebTerminalProps extends PropsWithChildren {
48
48
  /**
49
49
  * The `WebTerminal` is prompted by the user and is persistent until dismissed. The purpose of a web terminal is to provide users with the ability to type commands manually instead of using the GUI.
50
50
  */
51
- export declare let WebTerminal: React.ForwardRefExoticComponent<WebTerminalProps & React.RefAttributes<HTMLDivElement>>;
51
+ export declare const WebTerminal: React.ForwardRefExoticComponent<WebTerminalProps & React.RefAttributes<HTMLDivElement>>;
52
52
  export {};
@@ -31,7 +31,7 @@ const defaults = {
31
31
  /**
32
32
  * The `WebTerminal` is prompted by the user and is persistent until dismissed. The purpose of a web terminal is to provide users with the ability to type commands manually instead of using the GUI.
33
33
  */
34
- let WebTerminal = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
34
+ const WebTerminal = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
35
35
  let {
36
36
  // The component props, in alphabetical order (for consistency).
37
37
 
@@ -148,7 +148,6 @@ let WebTerminal = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
148
148
  });
149
149
 
150
150
  // Return a placeholder if not released and not enabled by feature flag
151
- WebTerminal = pkg.checkComponentEnabled(WebTerminal, componentName);
152
151
 
153
152
  // The display name of the component, used by React. Note that displayName
154
153
  // is used in preference to relying on function.name.
@@ -11,4 +11,4 @@ export interface WebTerminalContentWrapperProps {
11
11
  */
12
12
  children: ReactNode;
13
13
  }
14
- export declare let WebTerminalContentWrapper: React.ForwardRefExoticComponent<WebTerminalContentWrapperProps & React.RefAttributes<HTMLDivElement>>;
14
+ export declare const WebTerminalContentWrapper: React.ForwardRefExoticComponent<WebTerminalContentWrapperProps & React.RefAttributes<HTMLDivElement>>;
@@ -15,7 +15,7 @@ import { useWebTerminal } from './hooks/index.js';
15
15
  // The block part of our conventional BEM class names (blockClass__E--M).
16
16
  const componentName = 'WebTerminalContentWrapper';
17
17
  const blockClass = `${pkg.prefix}--web-terminal-content-wrapper`;
18
- let WebTerminalContentWrapper = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
18
+ const WebTerminalContentWrapper = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
19
19
  let {
20
20
  // The component props, in alphabetical order (for consistency).
21
21
  children,
@@ -33,9 +33,6 @@ let WebTerminalContentWrapper = /*#__PURE__*/React__default.forwardRef((_ref, re
33
33
  }, rest), children);
34
34
  });
35
35
 
36
- // Return a placeholder if not released and not enabled by feature flag
37
- WebTerminalContentWrapper = pkg.checkComponentEnabled(WebTerminalContentWrapper, componentName);
38
-
39
36
  // The display name of the component, used by React. Note that displayName
40
37
  // is used in preference to relying on function.name.
41
38
  WebTerminalContentWrapper.displayName = componentName;
@@ -12,6 +12,6 @@ interface WebTerminalProviderProps {
12
12
  */
13
13
  children: ReactNode | ReactNode[];
14
14
  }
15
- export declare let WebTerminalProvider: React.FC<WebTerminalProviderProps>;
15
+ export declare const WebTerminalProvider: React.FC<WebTerminalProviderProps>;
16
16
  export declare const useWebTerminal: () => WebTerminalContextType;
17
17
  export {};
@@ -5,9 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import React__default, { useState, useCallback, createContext, useContext } from 'react';
8
+ import React__default, { useContext, createContext, useState, useCallback } from 'react';
9
9
  import PropTypes from '../../../_virtual/index.js';
10
- import { pkg } from '../../../settings.js';
11
10
 
12
11
  // Copyright IBM Corp. 2022, 2022
13
12
  //
@@ -16,8 +15,7 @@ import { pkg } from '../../../settings.js';
16
15
  //
17
16
 
18
17
  const WebTerminalContext = /*#__PURE__*/createContext({});
19
- const componentName = 'WebTerminalProvider';
20
- let WebTerminalProvider = _ref => {
18
+ const WebTerminalProvider = _ref => {
21
19
  let {
22
20
  children
23
21
  } = _ref;
@@ -34,9 +32,6 @@ let WebTerminalProvider = _ref => {
34
32
  }
35
33
  }, children);
36
34
  };
37
-
38
- // Return a placeholder if not released and not enabled by feature flag
39
- WebTerminalProvider = pkg.checkComponentEnabled(WebTerminalProvider, componentName);
40
35
  WebTerminalProvider.propTypes = {
41
36
  /**
42
37
  * Provide your own terminal component as children to show up in the web terminal
@@ -1,74 +1,84 @@
1
1
  import '../feature-flags';
2
+ /**
3
+ * Stable components
4
+ */
2
5
  export * from './AboutModal';
6
+ export { ActionBar } from './ActionBar';
3
7
  export * from './APIKeyModal';
4
8
  export * from './Cascade';
5
- export * from './ComboButton';
9
+ export * from './Checklist';
6
10
  export * from './CreateFullPage';
7
11
  export * from './CreateModal';
8
12
  export * from './CreateSidePanel';
9
13
  export * from './CreateTearsheet';
10
14
  export * from './CreateTearsheetNarrow';
15
+ export * from './EditSidePanel';
16
+ export * from './EditInPlace';
11
17
  export * from './EmptyStates';
12
18
  export * from './ExportModal';
13
19
  export * from './ExpressiveCard';
14
- export * from './HTTPErrors';
20
+ export * from './FullPageError';
15
21
  export * from './ImportModal';
22
+ export * from './InterstitialScreen';
16
23
  export * from './MultiAddSelect';
17
24
  export * from './NotificationsPanel';
25
+ export * from './OptionsTile';
18
26
  export * from './PageHeader';
19
27
  export * from './ProductiveCard';
20
28
  export * from './RemoveModal';
21
29
  export * from './Saving';
30
+ export * from './ScrollGradient';
22
31
  export * from './SidePanel';
23
32
  export * from './SingleAddSelect';
24
33
  export * from './StatusIcon';
34
+ export * from './StringFormatter';
35
+ export * from './TagOverflow';
25
36
  export * from './TagSet';
26
37
  export * from './Tearsheet';
27
- export * from './Toolbar';
28
- export * from './UserProfileImage';
38
+ export * from './TruncatedText';
39
+ export * from './UserAvatar';
29
40
  export * from './WebTerminal';
30
- export * from './EditSidePanel';
31
- export * from './OptionsTile';
32
- export * from './EditInPlace';
33
- export * from './DataSpreadsheet';
41
+ /**
42
+ * Non-stable components
43
+ * draft | previewCandidate | preview
44
+ */
45
+ export * as preview__Coachmark from './Coachmark/next/Coachmark';
46
+ export { FeatureFlags as preview__FeatureFlags, useFeatureFlag as preview__useFeatureFlag, useFeatureFlags as preview__useFeatureFlags, } from './FeatureFlags';
47
+ export * as preview__PageHeader from './PageHeader/next/PageHeader';
48
+ export * as previewCandidate__BigNumber from './BigNumber';
49
+ export { Coachmark as previewCandidate__Coachmark, BEACON_KIND, COACHMARK_OVERLAY_KIND, COACHMARK_ALIGNMENT, useCoachmark, type CoachmarkProps, } from './Coachmark';
50
+ export { CoachmarkBeacon as previewCandidate__CoachmarkBeacon, type CoachmarkBeaconProps, } from './CoachmarkBeacon';
51
+ export { CoachmarkButton as previewCandidate__CoachmarkButton, type CoachmarkButtonProps, } from './CoachmarkButton';
52
+ export { CoachmarkFixed as previewCandidate__CoachmarkFixed, type CoachmarkFixedProps, } from './CoachmarkFixed';
53
+ export { CoachmarkOverlayElement as previewCandidate__CoachmarkOverlayElement, type CoachmarkOverlayElementProps, } from './CoachmarkOverlayElement';
54
+ export { CoachmarkOverlayElements as previewCandidate__CoachmarkOverlayElements, type CoachmarkOverlayElementsProps, } from './CoachmarkOverlayElements';
55
+ export { CoachmarkStack as previewCandidate__CoachmarkStack } from './CoachmarkStack';
56
+ export * as previewCandidate__ConditionBuilder from './ConditionBuilder';
57
+ export * as previewCandidate__DataSpreadsheet from './DataSpreadsheet';
58
+ export * as previewCandidate__DelimitedList from './DelimitedList';
59
+ export * as previewCandidate__Decorator from './Decorator';
60
+ export * as previewCandidate__GetStartedCard from './GetStartedCard';
61
+ export { Guidebanner as previewCandidate__Guidebanner, GuidebannerElement as previewCandidate__GuidebannerElement, GuidebannerElementButton as previewCandidate__GuidebannerElementButton, GuidebannerElementLink as previewCandidate__GuidebannerElementLink, type GuidebannerProps, type GuidebannerElementProps, type GuidebannerElementButtonProps, type GuidebannerElementLinkProps, } from './Guidebanner';
62
+ export { InlineTip as previewCandidate__InlineTip, InlineTipButton as previewCandidate__InlineTipButton, InlineTipLink as previewCandidate__InlineTipLink, type InlineTipProps, type InlineTipButtonProps, type InlineTipLinkProps, } from './InlineTip';
63
+ export * as previewCandidate__NonLinearReading from './NonLinearReading';
64
+ export * as previewCandidate__SearchBar from './SearchBar';
65
+ export { Toolbar as previewCandidate__Toolbar, ToolbarButton as previewCandidate__ToolbarButton, ToolbarGroup as previewCandidate__ToolbarGroup, type ToolbarProps, type ToolbarButtonProps, type ToolbarGroupProps, } from './Toolbar';
66
+ export * as previewCandidate__TruncatedList from './TruncatedList';
67
+ /**
68
+ * Deprecated
69
+ */
70
+ export * from './ComboButton';
34
71
  export * from './Datagrid';
35
- export * from './EditTearsheet';
36
- export * from './EditTearsheetNarrow';
37
- export * from './EditFullPage';
38
- export * from './EditUpdateCards';
39
- export * from './Checklist';
40
- export { Coachmark } from './Coachmark';
41
- export { Coachmark as preview__Coachmark } from './Coachmark/next/Coachmark';
42
- export * from './CoachmarkBeacon';
43
- export * from './CoachmarkButton';
44
- export * from './CoachmarkFixed';
45
- export * from './CoachmarkOverlayElement';
46
- export * from './CoachmarkOverlayElements';
47
- export * from './CoachmarkStack';
48
- export * from './Guidebanner';
49
- export * from './InlineTip';
50
- export * from './NonLinearReading';
51
- export * from './BigNumber';
52
- export * from './TruncatedList';
53
- export * from './TruncatedText';
54
- export * from './InterstitialScreen';
55
- export * from './DelimitedList';
56
- export * from './Decorator';
57
72
  export * from './DecoratorLink';
58
- export * from './DecoratorSingleButton';
59
73
  export * from './DecoratorDualButton';
74
+ export * from './DecoratorSingleButton';
60
75
  export * from './DescriptionList';
61
- export * from './FullPageError';
62
- export * from './SearchBar';
76
+ export * from './EditFullPage';
77
+ export * from './EditTearsheet';
78
+ export * from './EditTearsheetNarrow';
79
+ export * from './EditUpdateCards';
80
+ export * from './FilterPanel';
81
+ export * from './HTTPErrors';
63
82
  export * from './Nav';
64
- export * from './StringFormatter';
65
- export * from './UserAvatar';
66
- export * from './ScrollGradient';
67
83
  export * from './StatusIndicator';
68
- export * from './TagOverflow';
69
- export { ActionBar } from './ActionBar';
70
- export * from './FilterPanel';
71
- export * from './ConditionBuilder';
72
- export * from './GetStartedCard';
73
- export * as preview__PageHeader from './PageHeader/next/PageHeader';
74
- export { FeatureFlags as unstable_FeatureFlags, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags, } from './FeatureFlags';
84
+ export * from './UserProfileImage';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
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
+ import { InitCarousel, Config } from './types';
8
+ /**
9
+ * Initializes a carousel with the given configuration.
10
+ * @param carouselContainer - The HTMLElement representing the carousel container.
11
+ * @param config - Optional configuration object.
12
+ * @returns An object containing methods to control the carousel.
13
+ */
14
+ export declare const initCarousel: (carouselContainer: HTMLElement, config?: Config) => InitCarousel;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
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
+ export * from './carousel';
8
+ export * from './types';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright IBM Corp. 2025
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
+ export declare const registerSwipeEvents: (carousel: HTMLElement, next: () => void, prev: () => void, destroy: boolean) => void;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ interface CarouselStackHistory {
10
+ id: number;
11
+ elem: HTMLLIElement;
12
+ }
13
+ type CarouselResponse = {
14
+ currentIndex: number;
15
+ lastIndex: number;
16
+ totalViews: number;
17
+ historyStack: CarouselStackHistory[];
18
+ };
19
+ type ActiveItem = {
20
+ index: number;
21
+ item: HTMLElement | null;
22
+ };
23
+ export type Config = {
24
+ onViewChangeStart?: (args: CarouselResponse) => void;
25
+ onViewChangeEnd?: (args: CarouselResponse) => void;
26
+ excludeSwipeSupport?: boolean;
27
+ };
28
+ interface InitCarousel {
29
+ next: () => void;
30
+ prev: () => void;
31
+ reset: () => void;
32
+ goToIndex: (index: number) => void;
33
+ getActiveItem: () => ActiveItem;
34
+ destroyEvents: (() => void) | null;
35
+ allViews: Record<number, HTMLElement | null>;
36
+ }
37
+ export type { CarouselStackHistory, CarouselResponse, InitCarousel };
@@ -5,15 +5,34 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  interface DraggableProps {
8
+ /**
9
+ * HTML element to move.
10
+ */
8
11
  el: HTMLElement;
12
+ /**
13
+ * HTML element to initiate the drag (e.g., header).
14
+ */
9
15
  dragHandle?: HTMLElement;
16
+ /**
17
+ * HTML element to focus on drag for keyboard interaction (e.g., Drag Icon).
18
+ */
10
19
  focusableDragHandle?: HTMLElement;
20
+ /**
21
+ * Pixel value that defines the distance to move when dragging with arrow
22
+ * keys.
23
+ */
11
24
  dragStep?: number;
25
+ /**
26
+ * Pixel value that defines the distance to move when dragging with
27
+ * shift+arrow keys.
28
+ */
12
29
  shiftDragStep?: number;
13
30
  }
14
31
  /**
15
32
  * Makes a given element draggable using a handle element.
16
33
  *@param draggable - object which accepts el and optional attributes handle,focusableInHandle,dragStep and shiftDragStep
17
34
  */
18
- export declare function makeDraggable({ el, dragHandle, focusableDragHandle, dragStep, shiftDragStep, }: DraggableProps): void;
35
+ export declare const makeDraggable: ({ el, dragHandle, focusableDragHandle, dragStep, shiftDragStep, }: DraggableProps) => {
36
+ cleanup: () => void;
37
+ };
19
38
  export {};
@@ -5,12 +5,13 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
+ /* eslint-disable jsdoc/check-param-names */
9
+
8
10
  /**
9
11
  * Makes a given element draggable using a handle element.
10
12
  *@param draggable - object which accepts el and optional attributes handle,focusableInHandle,dragStep and shiftDragStep
11
13
  */
12
-
13
- function makeDraggable(_ref) {
14
+ const makeDraggable = _ref => {
14
15
  let {
15
16
  el,
16
17
  dragHandle,
@@ -18,28 +19,23 @@ function makeDraggable(_ref) {
18
19
  dragStep,
19
20
  shiftDragStep
20
21
  } = _ref;
21
- const computedStyle = window.getComputedStyle(el);
22
22
  if (dragHandle) {
23
23
  dragHandle.style.cursor = 'move';
24
24
  el.style.cursor = 'default';
25
25
  } else {
26
26
  el.style.cursor = 'move';
27
27
  }
28
- const position = computedStyle.position;
29
- if (position !== 'absolute' && position !== 'relative' && position !== 'fixed') {
30
- el.style.position = 'relative';
31
- }
32
28
  let isDragging = false;
33
29
  let offsetX = 0;
34
30
  let offsetY = 0;
35
- function dispatch(type) {
36
- let detail = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
37
- el.dispatchEvent(new CustomEvent(type, {
31
+ const dispatch = (type, detail) => {
32
+ const eventInit = {
38
33
  detail,
39
34
  bubbles: true
40
- }));
41
- }
42
- function onKeyDown(e) {
35
+ };
36
+ el.dispatchEvent(new CustomEvent(type, eventInit));
37
+ };
38
+ const onKeyDown = e => {
43
39
  if (e.key === 'Enter') {
44
40
  isDragging = !isDragging;
45
41
  }
@@ -74,9 +70,13 @@ function makeDraggable(_ref) {
74
70
  el.style.top = `${el.offsetTop + distance}px`;
75
71
  break;
76
72
  }
77
- }
78
- function onMouseDown(e) {
79
- const isTargetInHandle = dragHandle ? dragHandle.contains(e.target) : el.contains(e.target);
73
+ };
74
+ const onMouseDown = e => {
75
+ const target = e.target;
76
+ if (!(target instanceof Node)) {
77
+ return;
78
+ }
79
+ const isTargetInHandle = dragHandle ? dragHandle.contains(target) : el.contains(target);
80
80
  if (!isTargetInHandle) {
81
81
  return;
82
82
  }
@@ -90,15 +90,15 @@ function makeDraggable(_ref) {
90
90
  document.addEventListener('mouseup', onMouseUp, {
91
91
  once: true
92
92
  });
93
- }
94
- function onMouseMove(e) {
93
+ };
94
+ const onMouseMove = e => {
95
95
  if (!isDragging) {
96
96
  return;
97
97
  }
98
98
  el.style.left = `${e.clientX - offsetX}px`;
99
99
  el.style.top = `${e.clientY - offsetY}px`;
100
- }
101
- function onMouseUp() {
100
+ };
101
+ const onMouseUp = () => {
102
102
  if (!isDragging) {
103
103
  return;
104
104
  }
@@ -107,13 +107,26 @@ function makeDraggable(_ref) {
107
107
  mouse: true
108
108
  });
109
109
  document.removeEventListener('mousemove', onMouseMove);
110
- }
110
+ };
111
111
  if (dragHandle) {
112
112
  dragHandle.addEventListener('mousedown', onMouseDown);
113
113
  } else {
114
114
  el.addEventListener('mousedown', onMouseDown);
115
115
  }
116
116
  focusableDragHandle?.addEventListener('keydown', onKeyDown);
117
- }
117
+ const draggableCleanup = () => {
118
+ if (dragHandle) {
119
+ dragHandle.removeEventListener('mousedown', onMouseDown);
120
+ } else {
121
+ el.removeEventListener('mousedown', onMouseDown);
122
+ }
123
+ focusableDragHandle?.removeEventListener('keydown', onKeyDown);
124
+ document.removeEventListener('mousemove', onMouseMove);
125
+ document.removeEventListener('mouseup', onMouseUp);
126
+ };
127
+ return {
128
+ cleanup: draggableCleanup
129
+ };
130
+ };
118
131
 
119
132
  export { makeDraggable };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2025
2
+ * Copyright IBM Corp. 2025, 2025
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.