@carbon/ibm-products 2.43.2-canary.11 → 2.43.2-canary.111

Sign up to get free protection for your applications and to get access to all the features.
Files changed (369) hide show
  1. package/css/index-full-carbon.css +1780 -443
  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 +1439 -244
  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 +1490 -218
  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/ActionBar.d.ts +58 -2
  18. package/es/components/ActionBar/ActionBar.js +14 -9
  19. package/es/components/ActionBar/ActionBarItem.d.ts +36 -2
  20. package/es/components/ActionBar/ActionBarItem.js +8 -5
  21. package/es/components/ActionBar/ActionBarOverflowItems.d.ts +55 -16
  22. package/es/components/ActionBar/ActionBarOverflowItems.js +8 -4
  23. package/es/components/Card/Card.d.ts +68 -2
  24. package/es/components/Card/Card.js +28 -35
  25. package/es/components/Card/CardFooter.d.ts +51 -48
  26. package/es/components/Card/CardFooter.js +4 -2
  27. package/es/components/Card/CardHeader.d.ts +67 -49
  28. package/es/components/Card/CardHeader.js +4 -2
  29. package/es/components/Coachmark/Coachmark.d.ts +6 -1
  30. package/es/components/Coachmark/Coachmark.js +47 -11
  31. package/es/components/Coachmark/CoachmarkOverlay.js +2 -4
  32. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
  33. package/es/components/CoachmarkFixed/CoachmarkFixed.js +13 -11
  34. package/es/components/CoachmarkStack/CoachmarkStack.js +7 -3
  35. package/es/components/CoachmarkStack/CoachmarkStackHome.js +8 -4
  36. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -0
  37. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +90 -56
  38. package/es/components/ConditionBuilder/ConditionBuilder.js +82 -25
  39. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
  40. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +154 -0
  41. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +3 -1
  42. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +29 -13
  43. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +8 -1
  44. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +35 -11
  45. package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +18 -10
  46. package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +19 -11
  47. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -13
  48. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +83 -64
  49. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +13 -7
  50. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +31 -8
  51. package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +8 -2
  52. package/es/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +35 -24
  53. package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +43 -36
  54. package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +43 -36
  55. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +6 -2
  56. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +114 -40
  57. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
  58. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +24 -9
  59. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +27 -9
  60. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
  61. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +114 -0
  62. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
  63. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +71 -38
  64. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +5 -1
  65. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +22 -9
  66. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +1 -1
  67. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +1 -3
  68. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +131 -42
  69. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +5 -1
  70. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +51 -19
  71. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +2 -1
  72. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +152 -42
  73. package/es/components/ConditionBuilder/utils/useTranslations.d.ts +1 -0
  74. package/es/components/ConditionBuilder/utils/useTranslations.js +26 -0
  75. package/es/components/ConditionBuilder/utils/util.d.ts +6 -4
  76. package/es/components/ConditionBuilder/utils/util.js +42 -17
  77. package/es/components/CreateFullPage/CreateFullPage.js +2 -2
  78. package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +26 -0
  79. package/es/components/DataSpreadsheet/DataSpreadsheet.js +129 -53
  80. package/es/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +16 -0
  81. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +32 -7
  82. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +8 -0
  83. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +16 -3
  84. package/es/components/DataSpreadsheet/types/index.d.ts +1 -0
  85. package/es/components/Datagrid/Datagrid/Datagrid.d.ts +0 -4
  86. package/es/components/Datagrid/Datagrid/Datagrid.js +4 -9
  87. package/es/components/Datagrid/Datagrid/DatagridContent.js +4 -3
  88. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -8
  89. package/es/components/Datagrid/Datagrid/DatagridRow.js +21 -8
  90. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +6 -6
  91. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
  92. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +34 -10
  93. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
  94. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
  95. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +6 -3
  96. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +20 -12
  97. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
  98. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +54 -17
  99. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
  100. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +75 -12
  101. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
  102. package/es/components/Datagrid/types/index.d.ts +57 -9
  103. package/es/components/Datagrid/useActionsColumn.d.ts +8 -1
  104. package/es/components/Datagrid/useActionsColumn.js +7 -6
  105. package/es/components/Datagrid/useColumnRightAlign.d.ts +8 -1
  106. package/es/components/Datagrid/useColumnRightAlign.js +4 -3
  107. package/es/components/Datagrid/useCustomizeColumns.d.ts +8 -1
  108. package/es/components/Datagrid/useCustomizeColumns.js +4 -3
  109. package/es/components/Datagrid/useDefaultStringRenderer.js +0 -1
  110. package/es/components/Datagrid/useDisableSelectRows.d.ts +2 -1
  111. package/es/components/Datagrid/useDisableSelectRows.js +27 -22
  112. package/es/components/Datagrid/useInlineEdit.js +12 -2
  113. package/es/components/Datagrid/useNestedRowExpander.js +1 -3
  114. package/es/components/Datagrid/useNestedRows.js +32 -13
  115. package/es/components/Datagrid/useRowExpander.js +1 -3
  116. package/es/components/Datagrid/useSelectRows.js +2 -1
  117. package/es/components/Datagrid/useStickyColumn.d.ts +8 -1
  118. package/es/components/Datagrid/useStickyColumn.js +12 -9
  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/EmptyState.d.ts +72 -5
  126. package/es/components/EmptyStates/EmptyState.js +8 -5
  127. package/es/components/EmptyStates/EmptyStateV2.d.ts +63 -2
  128. package/es/components/EmptyStates/EmptyStateV2.js +3 -2
  129. package/es/components/FullPageError/FullPageError.d.ts +36 -2
  130. package/es/components/FullPageError/FullPageError.js +0 -3
  131. package/es/components/GetStartedCard/GetStartedCard.d.ts +60 -2
  132. package/es/components/GetStartedCard/GetStartedCard.js +11 -10
  133. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
  134. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
  135. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
  136. package/es/components/HTTPErrors/assets/HTTPErrorSvg403.js +204 -200
  137. package/es/components/HTTPErrors/assets/HTTPErrorSvg404.js +116 -112
  138. package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.js +110 -106
  139. package/es/components/Nav/NavItem.js +12 -3
  140. package/es/components/OptionsTile/OptionsTile.js +11 -6
  141. package/es/components/PageHeader/PageHeader.js +1 -0
  142. package/es/components/PageHeader/PageHeaderUtils.js +1 -1
  143. package/es/components/RemoveModal/RemoveModal.d.ts +4 -0
  144. package/es/components/RemoveModal/RemoveModal.js +7 -1
  145. package/es/components/SearchBar/SearchBar.d.ts +1 -1
  146. package/es/components/SearchBar/SearchBar.js +2 -2
  147. package/es/components/SidePanel/SidePanel.js +17 -21
  148. package/es/components/SidePanel/motion/variants.d.ts +4 -6
  149. package/es/components/SidePanel/motion/variants.js +10 -11
  150. package/es/components/StatusIndicator/StatusIndicatorStep.js +87 -0
  151. package/es/components/StringFormatter/StringFormatter.js +14 -3
  152. package/es/components/StringFormatter/utils/enums.d.ts +20 -1
  153. package/es/components/StringFormatter/utils/enums.js +22 -2
  154. package/es/components/TagOverflow/TagOverflow.d.ts +35 -4
  155. package/es/components/TagOverflow/TagOverflow.js +47 -64
  156. package/es/components/TagOverflow/TagOverflowModal.js +4 -6
  157. package/es/components/TagOverflow/TagOverflowPopover.d.ts +13 -1
  158. package/es/components/TagOverflow/TagOverflowPopover.js +38 -41
  159. package/es/components/Tearsheet/Tearsheet.d.ts +8 -1
  160. package/es/components/Tearsheet/Tearsheet.js +9 -1
  161. package/es/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
  162. package/es/components/Tearsheet/TearsheetNarrow.js +12 -0
  163. package/es/components/Tearsheet/TearsheetShell.d.ts +11 -1
  164. package/es/components/Tearsheet/TearsheetShell.js +28 -7
  165. package/es/components/Toolbar/ToolbarButton.js +1 -1
  166. package/es/components/UserAvatar/UserAvatar.d.ts +59 -1
  167. package/es/components/UserAvatar/UserAvatar.js +7 -23
  168. package/es/components/WebTerminal/WebTerminal.js +10 -12
  169. package/es/components/index.d.ts +1 -1
  170. package/es/global/js/hooks/useFocus.d.ts +1 -0
  171. package/es/global/js/hooks/useFocus.js +5 -2
  172. package/es/global/js/hooks/usePrefersReducedMotion.js +14 -8
  173. package/es/global/js/package-settings.d.ts +1 -1
  174. package/es/global/js/package-settings.js +1 -1
  175. package/es/index.js +1 -0
  176. package/es/node_modules/@carbon/icon-helpers/es/index.js +49 -62
  177. package/es/node_modules/@carbon/icons-react/es/generated/bucket-2.js +1020 -1058
  178. package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +881 -758
  179. package/es/settings.d.ts +1 -1
  180. package/lib/components/ActionBar/ActionBar.d.ts +58 -2
  181. package/lib/components/ActionBar/ActionBar.js +14 -9
  182. package/lib/components/ActionBar/ActionBarItem.d.ts +36 -2
  183. package/lib/components/ActionBar/ActionBarItem.js +7 -4
  184. package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +55 -16
  185. package/lib/components/ActionBar/ActionBarOverflowItems.js +8 -4
  186. package/lib/components/Card/Card.d.ts +68 -2
  187. package/lib/components/Card/Card.js +28 -35
  188. package/lib/components/Card/CardFooter.d.ts +51 -48
  189. package/lib/components/Card/CardFooter.js +4 -2
  190. package/lib/components/Card/CardHeader.d.ts +67 -49
  191. package/lib/components/Card/CardHeader.js +4 -2
  192. package/lib/components/Coachmark/Coachmark.d.ts +6 -1
  193. package/lib/components/Coachmark/Coachmark.js +46 -10
  194. package/lib/components/Coachmark/CoachmarkOverlay.js +2 -4
  195. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -7
  196. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +13 -11
  197. package/lib/components/CoachmarkStack/CoachmarkStack.js +7 -3
  198. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +8 -4
  199. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -0
  200. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +87 -53
  201. package/lib/components/ConditionBuilder/ConditionBuilder.js +82 -25
  202. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +15 -0
  203. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +163 -0
  204. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +3 -1
  205. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +28 -11
  206. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +8 -1
  207. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +33 -9
  208. package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +16 -8
  209. package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +18 -10
  210. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +9 -13
  211. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +81 -62
  212. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +13 -7
  213. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +31 -8
  214. package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.d.ts +8 -2
  215. package/lib/components/ConditionBuilder/ConditionBuilderContext/DataConfigs.js +34 -24
  216. package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +43 -36
  217. package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +43 -36
  218. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +6 -2
  219. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +112 -38
  220. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
  221. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +24 -9
  222. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +28 -10
  223. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +13 -0
  224. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +122 -0
  225. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.d.ts → ItemOptionForValueField.d.ts} +2 -2
  226. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/{ConditionBuilderItemOption.js → ItemOptionForValueField.js} +68 -35
  227. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +5 -1
  228. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +21 -8
  229. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +1 -1
  230. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +1 -3
  231. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +128 -39
  232. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +5 -1
  233. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +50 -17
  234. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.d.ts +2 -1
  235. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +152 -41
  236. package/lib/components/ConditionBuilder/utils/useTranslations.d.ts +1 -0
  237. package/lib/components/ConditionBuilder/utils/useTranslations.js +30 -0
  238. package/lib/components/ConditionBuilder/utils/util.d.ts +6 -4
  239. package/lib/components/ConditionBuilder/utils/util.js +44 -16
  240. package/lib/components/CreateFullPage/CreateFullPage.js +2 -2
  241. package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +26 -0
  242. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +129 -53
  243. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +16 -0
  244. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +32 -7
  245. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +8 -0
  246. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +16 -3
  247. package/lib/components/DataSpreadsheet/types/index.d.ts +1 -0
  248. package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +0 -4
  249. package/lib/components/Datagrid/Datagrid/Datagrid.js +4 -9
  250. package/lib/components/Datagrid/Datagrid/DatagridContent.js +4 -3
  251. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -8
  252. package/lib/components/Datagrid/Datagrid/DatagridRow.js +21 -8
  253. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +6 -6
  254. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -2
  255. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +34 -10
  256. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +6 -1
  257. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -1
  258. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +6 -3
  259. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +20 -12
  260. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
  261. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +53 -16
  262. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
  263. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +74 -11
  264. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +10 -2
  265. package/lib/components/Datagrid/types/index.d.ts +57 -9
  266. package/lib/components/Datagrid/useActionsColumn.d.ts +8 -1
  267. package/lib/components/Datagrid/useActionsColumn.js +7 -6
  268. package/lib/components/Datagrid/useColumnRightAlign.d.ts +8 -1
  269. package/lib/components/Datagrid/useColumnRightAlign.js +4 -3
  270. package/lib/components/Datagrid/useCustomizeColumns.d.ts +8 -1
  271. package/lib/components/Datagrid/useCustomizeColumns.js +4 -3
  272. package/lib/components/Datagrid/useDefaultStringRenderer.js +0 -1
  273. package/lib/components/Datagrid/useDisableSelectRows.d.ts +2 -1
  274. package/lib/components/Datagrid/useDisableSelectRows.js +27 -22
  275. package/lib/components/Datagrid/useInlineEdit.js +12 -2
  276. package/lib/components/Datagrid/useNestedRowExpander.js +1 -3
  277. package/lib/components/Datagrid/useNestedRows.js +32 -13
  278. package/lib/components/Datagrid/useRowExpander.js +1 -3
  279. package/lib/components/Datagrid/useSelectRows.js +2 -1
  280. package/lib/components/Datagrid/useStickyColumn.d.ts +8 -1
  281. package/lib/components/Datagrid/useStickyColumn.js +12 -9
  282. package/lib/components/EditInPlace/EditInPlace.d.ts +4 -0
  283. package/lib/components/EditInPlace/EditInPlace.js +21 -10
  284. package/lib/components/EditTearsheet/EditTearsheet.d.ts +7 -2
  285. package/lib/components/EditTearsheet/EditTearsheet.js +43 -9
  286. package/lib/components/EditTearsheet/EditTearsheetForm.d.ts +45 -2
  287. package/lib/components/EditTearsheet/EditTearsheetForm.js +3 -0
  288. package/lib/components/EmptyStates/EmptyState.d.ts +72 -5
  289. package/lib/components/EmptyStates/EmptyState.js +8 -5
  290. package/lib/components/EmptyStates/EmptyStateV2.d.ts +63 -2
  291. package/lib/components/EmptyStates/EmptyStateV2.js +3 -2
  292. package/lib/components/FullPageError/FullPageError.d.ts +36 -2
  293. package/lib/components/FullPageError/FullPageError.js +0 -3
  294. package/lib/components/GetStartedCard/GetStartedCard.d.ts +60 -2
  295. package/lib/components/GetStartedCard/GetStartedCard.js +10 -9
  296. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +6 -0
  297. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +6 -0
  298. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +6 -0
  299. package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +204 -200
  300. package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +116 -112
  301. package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +110 -106
  302. package/lib/components/Nav/NavItem.js +10 -1
  303. package/lib/components/OptionsTile/OptionsTile.js +11 -6
  304. package/lib/components/PageHeader/PageHeader.js +1 -0
  305. package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
  306. package/lib/components/RemoveModal/RemoveModal.d.ts +4 -0
  307. package/lib/components/RemoveModal/RemoveModal.js +7 -1
  308. package/lib/components/SearchBar/SearchBar.d.ts +1 -1
  309. package/lib/components/SearchBar/SearchBar.js +2 -2
  310. package/lib/components/SidePanel/SidePanel.js +16 -20
  311. package/lib/components/SidePanel/motion/variants.d.ts +4 -6
  312. package/lib/components/SidePanel/motion/variants.js +10 -11
  313. package/lib/components/StatusIndicator/StatusIndicatorStep.js +94 -0
  314. package/lib/components/StringFormatter/StringFormatter.js +13 -2
  315. package/lib/components/StringFormatter/utils/enums.d.ts +20 -1
  316. package/lib/components/StringFormatter/utils/enums.js +23 -1
  317. package/lib/components/TagOverflow/TagOverflow.d.ts +35 -4
  318. package/lib/components/TagOverflow/TagOverflow.js +46 -63
  319. package/lib/components/TagOverflow/TagOverflowModal.js +4 -6
  320. package/lib/components/TagOverflow/TagOverflowPopover.d.ts +13 -1
  321. package/lib/components/TagOverflow/TagOverflowPopover.js +37 -40
  322. package/lib/components/Tearsheet/Tearsheet.d.ts +8 -1
  323. package/lib/components/Tearsheet/Tearsheet.js +9 -1
  324. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +11 -0
  325. package/lib/components/Tearsheet/TearsheetNarrow.js +12 -0
  326. package/lib/components/Tearsheet/TearsheetShell.d.ts +11 -1
  327. package/lib/components/Tearsheet/TearsheetShell.js +26 -5
  328. package/lib/components/Toolbar/ToolbarButton.js +1 -1
  329. package/lib/components/UserAvatar/UserAvatar.d.ts +59 -1
  330. package/lib/components/UserAvatar/UserAvatar.js +7 -23
  331. package/lib/components/WebTerminal/WebTerminal.js +10 -12
  332. package/lib/components/index.d.ts +1 -1
  333. package/lib/global/js/hooks/useFocus.d.ts +1 -0
  334. package/lib/global/js/hooks/useFocus.js +5 -1
  335. package/lib/global/js/hooks/usePrefersReducedMotion.js +13 -7
  336. package/lib/global/js/package-settings.d.ts +1 -1
  337. package/lib/global/js/package-settings.js +1 -1
  338. package/lib/index.js +5 -0
  339. package/lib/node_modules/@carbon/icon-helpers/es/index.js +49 -62
  340. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-2.js +1036 -1074
  341. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +946 -823
  342. package/lib/settings.d.ts +1 -1
  343. package/package.json +8 -7
  344. package/scss/components/Coachmark/_coachmark-overlay.scss +6 -70
  345. package/scss/components/Coachmark/_coachmark.scss +5 -4
  346. package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +1 -3
  347. package/scss/components/ConditionBuilder/_condition-builder.scss +8 -1
  348. package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +31 -5
  349. package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +61 -22
  350. package/scss/components/CreateModal/_create-modal.scss +0 -4
  351. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +16 -2
  352. package/scss/components/Datagrid/_datagrid.scss +0 -4
  353. package/scss/components/Datagrid/styles/_datagrid.scss +1 -0
  354. package/scss/components/Datagrid/styles/_useInlineEdit.scss +13 -0
  355. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +7 -5
  356. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +5 -4
  357. package/scss/components/HTTPErrors/_http-errors.scss +77 -0
  358. package/scss/components/OptionsTile/_options-tile.scss +6 -6
  359. package/scss/components/SidePanel/_side-panel.scss +1 -1
  360. package/scss/components/_index-released-only.scss +1 -0
  361. package/telemetry.yml +32 -19
  362. package/es/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
  363. package/es/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -16
  364. package/es/global/js/utils/window.d.ts +0 -2
  365. package/es/global/js/utils/window.js +0 -12
  366. package/lib/components/ConditionBuilder/utils/checkForHoldingKey.d.ts +0 -1
  367. package/lib/components/ConditionBuilder/utils/checkForHoldingKey.js +0 -20
  368. package/lib/global/js/utils/window.d.ts +0 -2
  369. package/lib/global/js/utils/window.js +0 -16
package/es/settings.d.ts CHANGED
@@ -25,6 +25,7 @@ export const pkg: {
25
25
  ErrorEmptyState: boolean;
26
26
  ExportModal: boolean;
27
27
  ExpressiveCard: boolean;
28
+ FullPageError: boolean;
28
29
  HTTPError403: boolean;
29
30
  HTTPError404: boolean;
30
31
  HTTPErrorOther: boolean;
@@ -66,7 +67,6 @@ export const pkg: {
66
67
  BigNumbers: boolean;
67
68
  TruncatedList: boolean;
68
69
  DelimitedList: boolean;
69
- FullPageError: boolean;
70
70
  ScrollGradient: boolean;
71
71
  StringFormatter: boolean;
72
72
  StatusIndicator: boolean;
@@ -1,5 +1,61 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ import { ButtonProps } from '@carbon/type';
3
+ import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
4
+ interface Action extends ButtonProps {
5
+ id?: string;
6
+ key: string;
7
+ iconDescription: string;
8
+ label: string;
9
+ onClick?: () => void;
10
+ renderIcon: CarbonIconType;
11
+ }
12
+ interface ActionBarProps extends PropsWithChildren {
13
+ /**
14
+ * Specifies the action bar items. Each item is specified as an object
15
+ * with required fields: key for array rendering, renderIcon, iconDescription and
16
+ * label to provide the icon to display,
17
+ * and optional 'onClick' to receive notifications when the button is clicked.
18
+ * Additional fields in the object will be passed to the
19
+ * Button component, and these can include 'disabled', 'ref', 'className',
20
+ * and any other Button props.
21
+ *
22
+ * Note that the Button props 'kind', 'size',
23
+ * 'tooltipPosition', 'tooltipAlignment' and 'type' are ignored, as these
24
+ * cannot be used for an action bar item.
25
+ *
26
+ * Carbon Button API https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
27
+ */
28
+ actions?: readonly Action[];
29
+ /**
30
+ * className
31
+ */
32
+ className?: string;
33
+ /**
34
+ * maxVisible : Maximum action bar items visible before going into the overflow menu
35
+ */
36
+ maxVisible?: number;
37
+ /**
38
+ * class name applied to the overflow options
39
+ */
40
+ menuOptionsClass?: string;
41
+ /**
42
+ * onItemCountChange - event reporting maxWidth
43
+ */
44
+ onWidthChange?: (sizes: {
45
+ minWidth: number;
46
+ maxWidth: number;
47
+ }) => void;
48
+ /**
49
+ * overflowAriaLabel label for open close button overflow used for action bar items that do nto fit.
50
+ */
51
+ overflowAriaLabel: string;
52
+ /**
53
+ * align tags to right of available space
54
+ */
55
+ rightAlign?: boolean;
56
+ }
1
57
  /**
2
58
  * The ActionBar is used internally by the PageHeader to wrap ActionBarItems.
3
59
  */
4
- export let ActionBar: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
- import React from 'react';
60
+ export declare let ActionBar: React.ForwardRefExoticComponent<ActionBarProps & React.RefAttributes<HTMLDivElement>>;
61
+ export {};
@@ -29,7 +29,6 @@ var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
29
29
  var _excluded = ["actions", "className", "maxVisible", "menuOptionsClass", "onWidthChange", "overflowAriaLabel", "rightAlign"],
30
30
  _excluded2 = ["key", "id"],
31
31
  _excluded3 = ["key"];
32
-
33
32
  // The block part of our conventional BEM class names (blockClass__E--M).
34
33
  var blockClass = "".concat(settings.pkg.prefix, "--action-bar");
35
34
  var componentName = 'ActionBar';
@@ -38,7 +37,6 @@ var componentName = 'ActionBar';
38
37
  var defaults = {
39
38
  actions: Object.freeze([])
40
39
  };
41
-
42
40
  // NOTE: the component SCSS is not imported here: it is rolled up separately.
43
41
 
44
42
  /**
@@ -62,7 +60,7 @@ exports.ActionBar = /*#__PURE__*/React__default["default"].forwardRef(function (
62
60
  _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
63
61
  displayedItems = _useState4[0],
64
62
  setDisplayedItems = _useState4[1];
65
- var _useState5 = React.useState([]),
63
+ var _useState5 = React.useState(null),
66
64
  _useState6 = _rollupPluginBabelHelpers.slicedToArray(_useState5, 2),
67
65
  hiddenSizingItems = _useState6[0],
68
66
  setHiddenSizingItems = _useState6[1];
@@ -70,7 +68,7 @@ exports.ActionBar = /*#__PURE__*/React__default["default"].forwardRef(function (
70
68
  var refDisplayedItems = React.useRef(null);
71
69
  var sizingRef = React.useRef(null);
72
70
  var sizes = React.useRef({});
73
- var backupRef = React.useRef();
71
+ var backupRef = React.useRef(null);
74
72
  var localRef = ref || backupRef;
75
73
 
76
74
  // create hidden sizing items
@@ -130,24 +128,25 @@ exports.ActionBar = /*#__PURE__*/React__default["default"].forwardRef(function (
130
128
  var checkFullyVisibleItems = function checkFullyVisibleItems() {
131
129
  /* istanbul ignore if */
132
130
  if (sizingRef.current) {
131
+ var _refDisplayedItems$cu;
133
132
  var sizingItems = Array.from(sizingRef.current.querySelectorAll(".".concat(blockClass, "__hidden-sizing-item")));
134
133
 
135
134
  // first item is always the overflow even if nothing else is rendered
136
135
  var overflowItem = sizingItems.shift();
137
136
 
138
137
  // determine how many will fit
139
- var spaceAvailable = refDisplayedItems.current.offsetWidth;
138
+ var spaceAvailable = (_refDisplayedItems$cu = refDisplayedItems.current) === null || _refDisplayedItems$cu === void 0 ? void 0 : _refDisplayedItems$cu.offsetWidth;
140
139
  var willFit = 0;
141
140
  var maxVisibleWidth = 0;
142
141
  var fitLimit = maxVisible ? Math.min(maxVisible, sizingItems.length) : sizingItems.length;
143
142
 
144
143
  // loop checking the space available
145
144
  for (var i = 0; i < fitLimit; i++) {
146
- var newSpaceAvailable = spaceAvailable - sizingItems[i].offsetWidth;
145
+ var newSpaceAvailable = spaceAvailable && spaceAvailable - sizingItems[i].offsetWidth;
147
146
 
148
147
  // update maxVisibleWidth for later use by onWidthChange
149
148
  maxVisibleWidth += sizingItems[i].offsetWidth;
150
- if (newSpaceAvailable >= 0) {
149
+ if (newSpaceAvailable && newSpaceAvailable >= 0) {
151
150
  spaceAvailable = newSpaceAvailable;
152
151
  willFit += 1;
153
152
  }
@@ -157,7 +156,7 @@ exports.ActionBar = /*#__PURE__*/React__default["default"].forwardRef(function (
157
156
  var overflowWidth = overflowItem.offsetWidth;
158
157
  if (willFit < sizingItems.length) {
159
158
  // Check space for overflow
160
- while (willFit > 0 && spaceAvailable < overflowWidth) {
159
+ while (willFit > 0 && spaceAvailable && spaceAvailable < overflowWidth) {
161
160
  willFit -= 1;
162
161
 
163
162
  // Highly unlikely that any action bar item is narrower than the overflow item
@@ -170,7 +169,10 @@ exports.ActionBar = /*#__PURE__*/React__default["default"].forwardRef(function (
170
169
  sizes.current.minWidth = overflowWidth;
171
170
  sizes.current.maxWidth = maxVisibleWidth;
172
171
  // emit onWidthChange
173
- onWidthChange(_rollupPluginBabelHelpers.objectSpread2({}, sizes.current));
172
+ onWidthChange({
173
+ minWidth: overflowWidth,
174
+ maxWidth: maxVisibleWidth
175
+ });
174
176
  }
175
177
  if (willFit < 1) {
176
178
  setDisplayCount(0);
@@ -221,14 +223,17 @@ exports.ActionBar.propTypes = {
221
223
  *
222
224
  * Carbon Button API https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
223
225
  */
226
+ /**@ts-ignore */
224
227
  actions: index["default"].arrayOf(index["default"].shape(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, propsHelper.prepareProps(react.Button.propTypes, [
225
228
  // props not desired from Button.propTypes
226
229
  'kind', 'size', 'tooltipPosition', 'tooltipAlignment'])), {}, {
230
+ id: index["default"].string,
227
231
  // Additional props
228
232
  key: index["default"].string.isRequired,
229
233
  // Redefine as form different to Button and a key prop used by ActionBarItems
230
234
  iconDescription: index["default"].string.isRequired,
231
235
  label: index["default"].string.isRequired,
236
+ /**@ts-ignore */
232
237
  renderIcon: react.Button.propTypes.renderIcon.isRequired,
233
238
  // We duplicate onClick here to improve DocGen in Storybook
234
239
  onClick: index["default"].func
@@ -1,5 +1,39 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
3
+ interface ActionBarItemProps extends PropsWithChildren {
4
+ /**
5
+ * Specify an optional className to be added to your Button
6
+ *
7
+ * (inherited from Carbon Button)
8
+ */
9
+ className?: string;
10
+ /**
11
+ * If specifying the `renderIcon` prop, provide a description for that icon that can
12
+ * be read by screen readers
13
+ *
14
+ * (inherited from Carbon Button)
15
+ */
16
+ label?: string;
17
+ /**
18
+ * Optional click handler
19
+ *
20
+ * (inherited from Carbon Button)
21
+ */
22
+ onClick?: () => void;
23
+ /**
24
+ * Optional prop to allow overriding the icon rendering.
25
+ * Can be a React component class
26
+ *
27
+ * (inherited from Carbon Button)
28
+ */
29
+ renderIcon?: CarbonIconType;
30
+ /**
31
+ * Optional tab index
32
+ */
33
+ tabIndex?: number;
34
+ }
1
35
  /**
2
36
  * The ActionBarItem is used in the page header to populate the action bar
3
37
  */
4
- export let ActionBarItem: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
- import React from 'react';
38
+ export declare let ActionBarItem: React.ForwardRefExoticComponent<ActionBarItemProps & React.RefAttributes<HTMLDivElement>>;
39
+ export {};
@@ -22,11 +22,9 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
22
22
  var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
23
23
 
24
24
  var _excluded = ["label", "className", "renderIcon"];
25
-
26
25
  // The block part of our conventional BEM class names (blockClass__E--M).
27
26
  var componentName = 'ActionBarItem';
28
27
  var blockClass = "".concat(settings.pkg.prefix, "--action-bar-item");
29
-
30
28
  // NOTE: the component SCSS is not imported here: it is rolled up separately.
31
29
 
32
30
  /**
@@ -43,7 +41,7 @@ exports.ActionBarItem = /*#__PURE__*/React__default["default"].forwardRef(functi
43
41
  className: cx__default["default"](blockClass, className),
44
42
  kind: 'ghost',
45
43
  size: 'md',
46
- align: 'bottom-right',
44
+ align: 'bottom-end',
47
45
  type: 'button',
48
46
  label: label
49
47
  }), Icon ? /*#__PURE__*/React__default["default"].createElement(Icon, null) : null);
@@ -94,5 +92,10 @@ exports.ActionBarItem.propTypes = _rollupPluginBabelHelpers.objectSpread2(_rollu
94
92
  *
95
93
  * (inherited from Carbon Button)
96
94
  */
97
- renderIcon: index["default"].oneOfType([index["default"].func, index["default"].object])
95
+ /**@ts-ignore */
96
+ renderIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
97
+ /**
98
+ * Optional tab index
99
+ */
100
+ tabIndex: index["default"].number
98
101
  });
@@ -1,18 +1,57 @@
1
- export function ActionBarOverflowItems({ className, menuOptionsClass, overflowItems, overflowAriaLabel, }: {
2
- className: any;
3
- menuOptionsClass: any;
4
- overflowItems: any;
5
- overflowAriaLabel: any;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- export namespace ActionBarOverflowItems {
8
- export { componentName as displayName };
9
- export namespace propTypes {
10
- let className: PropTypes.Requireable<string>;
11
- let menuOptionsClass: PropTypes.Requireable<string>;
12
- let overflowAriaLabel: PropTypes.Requireable<string>;
13
- let overflowItems: PropTypes.Requireable<(PropTypes.ReactElementLike | null | undefined)[]>;
14
- }
15
- }
16
- declare const componentName: "ActionBar";
1
+ import { PropsWithChildren, ReactElement } from 'react';
17
2
  import PropTypes from 'prop-types';
3
+ import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
4
+ type OverflowItem = {
5
+ label: string;
6
+ onClick: () => void;
7
+ renderIcon: CarbonIconType;
8
+ };
9
+ interface ActionBarOverflowItemProps extends PropsWithChildren {
10
+ /**
11
+ * className
12
+ */
13
+ className?: string;
14
+ /**
15
+ * class name applied to the overflow options
16
+ */
17
+ menuOptionsClass?: string;
18
+ /**
19
+ * overflowAriaLabel label for open close button overflow used for action bar items that do nto fit.
20
+ */
21
+ overflowAriaLabel?: string;
22
+ /**
23
+ * overflowItems: items to bre shown in the ActionBar overflow menu
24
+ */
25
+ overflowItems?: ReactElement<OverflowItem>[];
26
+ /**
27
+ * Optional tab index
28
+ */
29
+ tabIndex?: number;
30
+ }
31
+ export declare const ActionBarOverflowItems: {
32
+ ({ className, menuOptionsClass, overflowItems, overflowAriaLabel, }: ActionBarOverflowItemProps): import("react/jsx-runtime").JSX.Element;
33
+ displayName: string;
34
+ propTypes: {
35
+ /**
36
+ * className
37
+ */
38
+ className: PropTypes.Requireable<string>;
39
+ /**
40
+ * class name applied to the overflow options
41
+ */
42
+ menuOptionsClass: PropTypes.Requireable<string>;
43
+ /**
44
+ * overflowAriaLabel label for open close button overflow used for action bar items that do nto fit.
45
+ */
46
+ overflowAriaLabel: PropTypes.Requireable<string>;
47
+ /**
48
+ * overflowItems: items to bre shown in the ActionBar overflow menu
49
+ */
50
+ overflowItems: PropTypes.Requireable<(PropTypes.ReactElementLike | null | undefined)[]>;
51
+ /**
52
+ * Optional tab index
53
+ */
54
+ tabIndex: PropTypes.Requireable<number>;
55
+ };
56
+ };
18
57
  export {};
@@ -42,17 +42,17 @@ var ActionBarOverflowItems = function ActionBarOverflowItems(_ref) {
42
42
  // This uses a copy of a menu item option
43
43
  // NOTE: Cannot use a real Tooltip icon below as it uses a <button /> the
44
44
  // div equivalent below is based on Carbon 10.25.0
45
- var ItemIcon = item.props.renderIcon;
45
+ var ItemIcon = item === null || item === void 0 ? void 0 : item.props.renderIcon;
46
46
  return /*#__PURE__*/React__default["default"].createElement(react.OverflowMenuItem, {
47
47
  className: "".concat(blockClass, "__item"),
48
- onClick: item.props.onClick,
48
+ onClick: item === null || item === void 0 ? void 0 : item.props.onClick,
49
49
  itemText: /*#__PURE__*/React__default["default"].createElement("div", {
50
50
  className: "".concat(blockClass, "__item-content"),
51
51
  "aria-describedby": "".concat(internalId.current, "-").concat(index, "--item-label")
52
52
  }, /*#__PURE__*/React__default["default"].createElement("span", {
53
53
  className: "".concat(blockClass, "__item-label"),
54
54
  id: "".concat(internalId.current, "-").concat(index, "--item-label")
55
- }, item.props.label), typeof item.props.renderIcon === 'function' ? /*#__PURE__*/React__default["default"].createElement(ItemIcon, null) : item.props.renderIcon)
55
+ }, item === null || item === void 0 ? void 0 : item.props.label), typeof (item === null || item === void 0 ? void 0 : item.props.renderIcon) === 'function' ? /*#__PURE__*/React__default["default"].createElement(ItemIcon, null) : item === null || item === void 0 ? void 0 : item.props.renderIcon)
56
56
  });
57
57
  }));
58
58
  };
@@ -74,7 +74,11 @@ ActionBarOverflowItems.propTypes = {
74
74
  /**
75
75
  * overflowItems: items to bre shown in the ActionBar overflow menu
76
76
  */
77
- overflowItems: index["default"].arrayOf(index["default"].element)
77
+ overflowItems: index["default"].arrayOf(index["default"].element),
78
+ /**
79
+ * Optional tab index
80
+ */
81
+ tabIndex: index["default"].number
78
82
  };
79
83
 
80
84
  exports.ActionBarOverflowItems = ActionBarOverflowItems;
@@ -1,2 +1,68 @@
1
- export let Card: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
2
- import React from 'react';
1
+ import React, { PropsWithChildren, ReactNode } from 'react';
2
+ type ActionIcon = {
3
+ id?: string;
4
+ icon?: () => ReactNode;
5
+ onKeydown?: () => void;
6
+ onClick?: () => void;
7
+ iconDescription?: string;
8
+ href?: string;
9
+ };
10
+ type OverflowActions = {
11
+ id?: string;
12
+ itemText?: string;
13
+ onClick?: () => void;
14
+ onKeydown?: () => void;
15
+ };
16
+ type Metadata = {
17
+ id?: string;
18
+ icon?: () => ReactNode;
19
+ iconDescription?: string;
20
+ onClick?: () => void;
21
+ href?: string;
22
+ };
23
+ interface CardProp extends PropsWithChildren {
24
+ actionIcons?: readonly ActionIcon[];
25
+ actionsPlacement?: 'top' | 'bottom';
26
+ children?: ReactNode;
27
+ className?: string;
28
+ clickZone?: 'one' | 'two' | 'three';
29
+ description?: ReactNode;
30
+ disabled?: boolean;
31
+ footerActionIcon?: React.ElementType;
32
+ getStarted?: boolean;
33
+ label?: ReactNode;
34
+ media?: ReactNode;
35
+ mediaPosition?: 'top' | 'left';
36
+ metadata?: readonly Metadata[];
37
+ onClick?: () => void;
38
+ onKeyDown?: () => void;
39
+ onPrimaryButtonClick?: () => void;
40
+ onSecondaryButtonClick?: () => void;
41
+ overflowActions?: readonly OverflowActions[];
42
+ overflowAriaLabel?: string;
43
+ pictogram?: () => ReactNode;
44
+ primaryButtonDisabled?: boolean;
45
+ primaryButtonHref?: string;
46
+ primaryButtonIcon?: React.ElementType;
47
+ primaryButtonKind?: 'primary' | 'ghost';
48
+ primaryButtonPlacement?: 'top' | 'bottom';
49
+ primaryButtonText?: string;
50
+ productive?: boolean;
51
+ secondaryButtonDisabled?: boolean;
52
+ secondaryButtonHref?: string;
53
+ secondaryButtonIcon?: React.ElementType;
54
+ secondaryButtonKind?: 'secondary' | 'ghost';
55
+ secondaryButtonPlacement?: 'top' | 'bottom';
56
+ secondaryButtonText?: string;
57
+ sequence?: number;
58
+ /**
59
+ * **Experimental?** For all cases a `Slug` component can be provided.
60
+ * Clickable tiles only accept a boolean value of true and display a hollow slug.
61
+ */
62
+ slug?: ReactNode | boolean;
63
+ status?: 'complete' | 'incomplete';
64
+ title?: ReactNode;
65
+ titleSize?: 'default' | 'large';
66
+ }
67
+ export declare const Card: React.ForwardRefExoticComponent<CardProp & React.RefAttributes<HTMLDivElement>>;
68
+ export {};
@@ -29,32 +29,17 @@ var _excluded = ["actionIcons", "actionsPlacement", "metadata", "children", "cla
29
29
  _excluded2 = ["id"],
30
30
  _excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
31
31
  var componentName = 'Card';
32
-
33
- // Default values for props
34
- var defaults = {
35
- actionIcons: Object.freeze([]),
36
- actionsPlacement: 'bottom',
37
- clickZone: 'one',
38
- mediaPosition: 'top',
39
- overflowActions: Object.freeze([]),
40
- primaryButtonKind: 'primary',
41
- primaryButtonPlacement: 'bottom',
42
- productive: false,
43
- secondaryButtonKind: 'secondary',
44
- secondaryButtonPlacement: 'bottom',
45
- titleSize: 'default'
46
- };
47
32
  var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
48
33
  var _ref$actionIcons = _ref.actionIcons,
49
- actionIcons = _ref$actionIcons === void 0 ? defaults.actionIcons : _ref$actionIcons,
34
+ actionIcons = _ref$actionIcons === void 0 ? Object.freeze([]) : _ref$actionIcons,
50
35
  _ref$actionsPlacement = _ref.actionsPlacement,
51
- actionsPlacement = _ref$actionsPlacement === void 0 ? defaults.actionsPlacement : _ref$actionsPlacement,
36
+ actionsPlacement = _ref$actionsPlacement === void 0 ? 'bottom' : _ref$actionsPlacement,
52
37
  _ref$metadata = _ref.metadata,
53
- metadata = _ref$metadata === void 0 ? defaults.actionIcons : _ref$metadata,
38
+ metadata = _ref$metadata === void 0 ? Object.freeze([]) : _ref$metadata,
54
39
  children = _ref.children,
55
40
  className = _ref.className,
56
41
  _ref$clickZone = _ref.clickZone,
57
- clickZone = _ref$clickZone === void 0 ? defaults.clickZone : _ref$clickZone,
42
+ clickZone = _ref$clickZone === void 0 ? 'one' : _ref$clickZone,
58
43
  description = _ref.description,
59
44
  disabled = _ref.disabled,
60
45
  footerActionIcon = _ref.footerActionIcon,
@@ -62,12 +47,12 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
62
47
  label = _ref.label,
63
48
  media = _ref.media,
64
49
  _ref$mediaPosition = _ref.mediaPosition,
65
- mediaPosition = _ref$mediaPosition === void 0 ? defaults.mediaPosition : _ref$mediaPosition,
50
+ mediaPosition = _ref$mediaPosition === void 0 ? 'top' : _ref$mediaPosition,
66
51
  onClick = _ref.onClick,
67
52
  onKeyDown = _ref.onKeyDown,
68
53
  onPrimaryButtonClick = _ref.onPrimaryButtonClick,
69
54
  _ref$overflowActions = _ref.overflowActions,
70
- overflowActions = _ref$overflowActions === void 0 ? defaults.overflowActions : _ref$overflowActions,
55
+ overflowActions = _ref$overflowActions === void 0 ? Object.freeze([]) : _ref$overflowActions,
71
56
  overflowAriaLabel = _ref.overflowAriaLabel,
72
57
  onSecondaryButtonClick = _ref.onSecondaryButtonClick,
73
58
  Pictogram = _ref.pictogram,
@@ -75,26 +60,26 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
75
60
  primaryButtonHref = _ref.primaryButtonHref,
76
61
  primaryButtonIcon = _ref.primaryButtonIcon,
77
62
  _ref$primaryButtonKin = _ref.primaryButtonKind,
78
- primaryButtonKind = _ref$primaryButtonKin === void 0 ? defaults.primaryButtonKind : _ref$primaryButtonKin,
63
+ primaryButtonKind = _ref$primaryButtonKin === void 0 ? 'primary' : _ref$primaryButtonKin,
79
64
  _ref$primaryButtonPla = _ref.primaryButtonPlacement,
80
- primaryButtonPlacement = _ref$primaryButtonPla === void 0 ? defaults.primaryButtonPlacement : _ref$primaryButtonPla,
65
+ primaryButtonPlacement = _ref$primaryButtonPla === void 0 ? 'bottom' : _ref$primaryButtonPla,
81
66
  primaryButtonText = _ref.primaryButtonText,
82
67
  _ref$productive = _ref.productive,
83
- productive = _ref$productive === void 0 ? defaults.productive : _ref$productive,
68
+ productive = _ref$productive === void 0 ? false : _ref$productive,
84
69
  secondaryButtonDisabled = _ref.secondaryButtonDisabled,
85
70
  secondaryButtonHref = _ref.secondaryButtonHref,
86
71
  secondaryButtonIcon = _ref.secondaryButtonIcon,
87
72
  _ref$secondaryButtonK = _ref.secondaryButtonKind,
88
- secondaryButtonKind = _ref$secondaryButtonK === void 0 ? defaults.secondaryButtonKind : _ref$secondaryButtonK,
73
+ secondaryButtonKind = _ref$secondaryButtonK === void 0 ? 'secondary' : _ref$secondaryButtonK,
89
74
  _ref$secondaryButtonP = _ref.secondaryButtonPlacement,
90
- secondaryButtonPlacement = _ref$secondaryButtonP === void 0 ? defaults.secondaryButtonPlacement : _ref$secondaryButtonP,
75
+ secondaryButtonPlacement = _ref$secondaryButtonP === void 0 ? 'bottom' : _ref$secondaryButtonP,
91
76
  secondaryButtonText = _ref.secondaryButtonText,
92
77
  slug = _ref.slug,
93
78
  status = _ref.status,
94
79
  sequence = _ref.sequence,
95
80
  title = _ref.title,
96
81
  _ref$titleSize = _ref.titleSize,
97
- titleSize = _ref$titleSize === void 0 ? defaults.titleSize : _ref$titleSize,
82
+ titleSize = _ref$titleSize === void 0 ? 'default' : _ref$titleSize,
98
83
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
99
84
  var getIcons = function getIcons() {
100
85
  return getStarted ? metadata : actionIcons;
@@ -110,7 +95,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
110
95
  onClick: onClick,
111
96
  onKeyDown: onKeyDown,
112
97
  role: 'button',
113
- tabIndex: '0'
98
+ tabIndex: 0
114
99
  };
115
100
 
116
101
  // actions can either be an overflow menu or series of icons
@@ -144,7 +129,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
144
129
  return /*#__PURE__*/React__default["default"].createElement("span", {
145
130
  key: id,
146
131
  className: "".concat(blockClass, "__icon")
147
- }, /*#__PURE__*/React__default["default"].createElement(Icon, {
132
+ }, Icon && /*#__PURE__*/React__default["default"].createElement(Icon, {
148
133
  "aria-label": iconDescription
149
134
  }), iconDescription);
150
135
  }
@@ -166,7 +151,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
166
151
  className: "".concat(blockClass, "__icon"),
167
152
  href: href,
168
153
  onClick: onClick
169
- }, /*#__PURE__*/React__default["default"].createElement(Icon, {
154
+ }, Icon && /*#__PURE__*/React__default["default"].createElement(Icon, {
170
155
  "aria-label": iconDescription
171
156
  }));
172
157
  }
@@ -177,7 +162,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
177
162
  onClick: onClick,
178
163
  kind: "ghost",
179
164
  size: "sm"
180
- }, /*#__PURE__*/React__default["default"].createElement(Icon, {
165
+ }, Icon && /*#__PURE__*/React__default["default"].createElement(Icon, {
181
166
  "aria-label": iconDescription
182
167
  }));
183
168
  });
@@ -274,6 +259,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
274
259
  }, media)), hasBottomBar && /*#__PURE__*/React__default["default"].createElement(CardFooter.CardFooter, getFooterProps())));
275
260
  });
276
261
  Card.propTypes = {
262
+ /**@ts-ignore */
277
263
  actionIcons: index["default"].arrayOf(index["default"].shape({
278
264
  id: index["default"].string,
279
265
  icon: index["default"].oneOfType([index["default"].func, index["default"].object]),
@@ -286,13 +272,16 @@ Card.propTypes = {
286
272
  children: index["default"].node,
287
273
  className: index["default"].string,
288
274
  clickZone: index["default"].oneOf(['one', 'two', 'three']),
289
- description: index["default"].oneOfType([index["default"].string, index["default"].object, index["default"].node]),
275
+ /**@ts-ignore */
276
+ description: index["default"].oneOfType([index["default"].string, index["default"].node]),
290
277
  disabled: index["default"].bool,
278
+ /**@ts-ignore */
291
279
  footerActionIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
292
280
  getStarted: index["default"].bool,
293
- label: index["default"].oneOfType([index["default"].string, index["default"].object, index["default"].node]),
281
+ label: index["default"].oneOfType([index["default"].string, index["default"].node]),
294
282
  media: index["default"].node,
295
283
  mediaPosition: index["default"].oneOf(['top', 'left']),
284
+ /**@ts-ignore */
296
285
  metadata: index["default"].arrayOf(index["default"].shape({
297
286
  id: index["default"].string,
298
287
  icon: index["default"].oneOfType([index["default"].func, index["default"].object]),
@@ -302,6 +291,7 @@ Card.propTypes = {
302
291
  onKeyDown: index["default"].func,
303
292
  onPrimaryButtonClick: index["default"].func,
304
293
  onSecondaryButtonClick: index["default"].func,
294
+ /**@ts-ignore */
305
295
  overflowActions: index["default"].arrayOf(index["default"].shape({
306
296
  id: index["default"].string,
307
297
  itemText: index["default"].string,
@@ -309,16 +299,19 @@ Card.propTypes = {
309
299
  onKeyDown: index["default"].func
310
300
  })),
311
301
  overflowAriaLabel: index["default"].string,
302
+ /**@ts-ignore */
312
303
  pictogram: index["default"].oneOfType([index["default"].func, index["default"].object]),
313
304
  primaryButtonDisabled: index["default"].bool,
314
305
  primaryButtonHref: index["default"].string,
306
+ /**@ts-ignore */
315
307
  primaryButtonIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
316
308
  primaryButtonKind: index["default"].oneOf(['primary', 'ghost']),
317
309
  primaryButtonPlacement: index["default"].oneOf(['top', 'bottom']),
318
- primaryButtonText: index["default"].node,
310
+ primaryButtonText: index["default"].string,
319
311
  productive: index["default"].bool,
320
312
  secondaryButtonDisabled: index["default"].bool,
321
313
  secondaryButtonHref: index["default"].string,
314
+ /**@ts-ignore */
322
315
  secondaryButtonIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
323
316
  secondaryButtonKind: index["default"].oneOf(['secondary', 'ghost']),
324
317
  secondaryButtonPlacement: index["default"].oneOf(['top', 'bottom']),
@@ -330,7 +323,7 @@ Card.propTypes = {
330
323
  */
331
324
  slug: index["default"].oneOfType([index["default"].node, index["default"].bool]),
332
325
  status: index["default"].oneOf(['complete', 'incomplete']),
333
- title: index["default"].oneOfType([index["default"].string, index["default"].object, index["default"].node]),
326
+ title: index["default"].oneOfType([index["default"].string, index["default"].node]),
334
327
  titleSize: index["default"].oneOf(['default', 'large'])
335
328
  };
336
329
  Card.displayName = componentName;