@carbon/ibm-products 2.33.0 → 2.35.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) hide show
  1. package/css/index-full-carbon.css +31990 -32061
  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 +38 -17
  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 +636 -24096
  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 +2342 -17830
  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/ActionSet/ActionSet.d.ts +38 -2
  18. package/es/components/ActionSet/ActionSet.js +3 -5
  19. package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
  20. package/es/components/ConditionBuilder/ConditionBuilder.d.ts +5 -0
  21. package/es/components/ConditionBuilder/ConditionBuilder.js +125 -0
  22. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +10 -0
  23. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +92 -0
  24. package/es/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.d.ts +38 -0
  25. package/es/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.js +88 -0
  26. package/es/components/ConditionBuilder/assets/sampleInput.d.ts +58 -0
  27. package/es/components/ConditionBuilder/index.d.ts +1 -0
  28. package/es/components/CreateFullPage/CreateFullPage.js +3 -19
  29. package/es/components/CreateFullPage/CreateFullPageStep.js +22 -7
  30. package/es/components/CreateSidePanel/CreateSidePanel.d.ts +81 -2
  31. package/es/components/CreateSidePanel/CreateSidePanel.js +5 -2
  32. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +82 -2
  33. package/es/components/DataSpreadsheet/DataSpreadsheet.js +5 -117
  34. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +12 -111
  35. package/es/components/DataSpreadsheet/utils/commonEventHandlers.d.ts +4 -0
  36. package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +304 -0
  37. package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -1
  38. package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -1
  39. package/es/components/Datagrid/Datagrid/DatagridRefBody.js +3 -1
  40. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -1
  41. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +6 -2
  42. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +1 -1
  43. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +4 -0
  44. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.d.ts +2 -1
  45. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -3
  46. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +2 -1
  47. package/es/components/Datagrid/useEditableCell.js +15 -0
  48. package/es/components/DelimitedList/DelimitedList.d.ts +27 -2
  49. package/es/components/DelimitedList/DelimitedList.js +0 -1
  50. package/es/components/EditInPlace/EditInPlace.d.ts +97 -5
  51. package/es/components/EditInPlace/EditInPlace.js +10 -6
  52. package/es/components/EditSidePanel/EditSidePanel.d.ts +92 -2
  53. package/es/components/EditSidePanel/EditSidePanel.js +8 -10
  54. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +61 -2
  55. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -3
  56. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +61 -2
  57. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
  58. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +61 -2
  59. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -3
  60. package/es/components/ExportModal/ExportModal.d.ts +110 -2
  61. package/es/components/ExportModal/ExportModal.js +10 -4
  62. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +5 -0
  63. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +83 -0
  64. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +5 -0
  65. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +94 -0
  66. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
  67. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +8 -10
  68. package/es/components/FilterPanel/FilterPanelCheckbox/index.d.ts +1 -0
  69. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +10 -0
  70. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +157 -0
  71. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +5 -0
  72. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +72 -0
  73. package/es/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +2 -2
  74. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +5 -0
  75. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +92 -0
  76. package/es/components/FilterPanel/index.d.ts +5 -0
  77. package/es/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +40 -2
  78. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
  79. package/es/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +40 -2
  80. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
  81. package/es/components/ImportModal/ImportModal.d.ts +136 -2
  82. package/es/components/ImportModal/ImportModal.js +3 -2
  83. package/es/components/InlineTip/InlineTip.d.ts +90 -2
  84. package/es/components/InlineTip/InlineTip.js +3 -2
  85. package/es/components/Nav/Nav.js +1 -1
  86. package/es/components/Nav/NavList.js +7 -7
  87. package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
  88. package/es/components/OptionsTile/OptionsTile.d.ts +77 -3
  89. package/es/components/OptionsTile/OptionsTile.js +9 -20
  90. package/es/components/PageHeader/PageHeader.js +3 -3
  91. package/es/components/PageHeader/PageHeaderUtils.d.ts +1 -1
  92. package/es/components/PageHeader/PageHeaderUtils.js +4 -3
  93. package/es/components/RemoveModal/RemoveModal.d.ts +81 -7
  94. package/es/components/RemoveModal/RemoveModal.js +1 -0
  95. package/es/components/ScrollGradient/ScrollGradient.d.ts +5 -0
  96. package/es/components/ScrollGradient/ScrollGradient.js +156 -0
  97. package/es/components/ScrollGradient/constants.d.ts +15 -0
  98. package/es/components/ScrollGradient/constants.js +121 -0
  99. package/es/components/ScrollGradient/index.d.ts +1 -0
  100. package/es/components/SidePanel/SidePanel.d.ts +144 -2
  101. package/es/components/SidePanel/SidePanel.js +100 -75
  102. package/es/components/StatusIcon/StatusIcon.d.ts +34 -2
  103. package/es/components/StatusIcon/StatusIcon.js +97 -95
  104. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +23 -2
  105. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +6 -5
  106. package/es/components/TagOverflow/TagOverflow.d.ts +5 -0
  107. package/es/components/TagOverflow/TagOverflow.js +209 -0
  108. package/es/components/TagOverflow/constants.d.ts +14 -0
  109. package/es/components/TagOverflow/constants.js +30 -0
  110. package/es/components/TagOverflow/index.d.ts +1 -0
  111. package/es/components/Tearsheet/TearsheetNarrow.d.ts +105 -6
  112. package/es/components/Tearsheet/TearsheetNarrow.js +6 -1
  113. package/es/components/Toolbar/Toolbar.d.ts +23 -5
  114. package/es/components/Toolbar/Toolbar.js +30 -26
  115. package/es/components/TruncatedList/TruncatedList.js +5 -3
  116. package/es/components/UserAvatar/UserAvatar.js +7 -4
  117. package/es/components/index.d.ts +5 -2
  118. package/es/global/js/package-settings.d.ts +8 -0
  119. package/es/global/js/package-settings.js +8 -0
  120. package/es/index.js +9 -0
  121. package/es/settings.d.ts +8 -0
  122. package/lib/components/ActionSet/ActionSet.d.ts +38 -2
  123. package/lib/components/ActionSet/ActionSet.js +3 -5
  124. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
  125. package/lib/components/ConditionBuilder/ConditionBuilder.d.ts +5 -0
  126. package/lib/components/ConditionBuilder/ConditionBuilder.js +132 -0
  127. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +10 -0
  128. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +100 -0
  129. package/lib/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.d.ts +38 -0
  130. package/lib/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.js +98 -0
  131. package/lib/components/ConditionBuilder/assets/sampleInput.d.ts +58 -0
  132. package/lib/components/ConditionBuilder/index.d.ts +1 -0
  133. package/lib/components/CreateFullPage/CreateFullPage.js +2 -18
  134. package/lib/components/CreateFullPage/CreateFullPageStep.js +20 -5
  135. package/lib/components/CreateSidePanel/CreateSidePanel.d.ts +81 -2
  136. package/lib/components/CreateSidePanel/CreateSidePanel.js +5 -2
  137. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +82 -2
  138. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +5 -117
  139. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +12 -111
  140. package/lib/components/DataSpreadsheet/utils/commonEventHandlers.d.ts +4 -0
  141. package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +311 -0
  142. package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -1
  143. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -1
  144. package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -1
  145. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -1
  146. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +5 -1
  147. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +1 -1
  148. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +4 -0
  149. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.d.ts +2 -1
  150. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -3
  151. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +2 -1
  152. package/lib/components/Datagrid/useEditableCell.js +19 -0
  153. package/lib/components/DelimitedList/DelimitedList.d.ts +27 -2
  154. package/lib/components/DelimitedList/DelimitedList.js +0 -1
  155. package/lib/components/EditInPlace/EditInPlace.d.ts +97 -5
  156. package/lib/components/EditInPlace/EditInPlace.js +10 -6
  157. package/lib/components/EditSidePanel/EditSidePanel.d.ts +92 -2
  158. package/lib/components/EditSidePanel/EditSidePanel.js +8 -10
  159. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +61 -2
  160. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -3
  161. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +61 -2
  162. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
  163. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +61 -2
  164. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -3
  165. package/lib/components/ExportModal/ExportModal.d.ts +110 -2
  166. package/lib/components/ExportModal/ExportModal.js +10 -4
  167. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +5 -0
  168. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +90 -0
  169. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +5 -0
  170. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +101 -0
  171. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
  172. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +8 -10
  173. package/lib/components/FilterPanel/FilterPanelCheckbox/index.d.ts +1 -0
  174. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +10 -0
  175. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +164 -0
  176. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +5 -0
  177. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +79 -0
  178. package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +2 -2
  179. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +5 -0
  180. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +99 -0
  181. package/lib/components/FilterPanel/index.d.ts +5 -0
  182. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +40 -2
  183. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
  184. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +40 -2
  185. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
  186. package/lib/components/ImportModal/ImportModal.d.ts +136 -2
  187. package/lib/components/ImportModal/ImportModal.js +3 -2
  188. package/lib/components/InlineTip/InlineTip.d.ts +90 -2
  189. package/lib/components/InlineTip/InlineTip.js +3 -2
  190. package/lib/components/Nav/Nav.js +1 -1
  191. package/lib/components/Nav/NavList.js +7 -7
  192. package/lib/components/NotificationsPanel/NotificationsPanel.js +1 -1
  193. package/lib/components/OptionsTile/OptionsTile.d.ts +77 -3
  194. package/lib/components/OptionsTile/OptionsTile.js +9 -20
  195. package/lib/components/PageHeader/PageHeader.js +3 -3
  196. package/lib/components/PageHeader/PageHeaderUtils.d.ts +1 -1
  197. package/lib/components/PageHeader/PageHeaderUtils.js +4 -3
  198. package/lib/components/RemoveModal/RemoveModal.d.ts +81 -7
  199. package/lib/components/RemoveModal/RemoveModal.js +1 -0
  200. package/lib/components/ScrollGradient/ScrollGradient.d.ts +5 -0
  201. package/lib/components/ScrollGradient/ScrollGradient.js +163 -0
  202. package/lib/components/ScrollGradient/constants.d.ts +15 -0
  203. package/lib/components/ScrollGradient/constants.js +128 -0
  204. package/lib/components/ScrollGradient/index.d.ts +1 -0
  205. package/lib/components/SidePanel/SidePanel.d.ts +144 -2
  206. package/lib/components/SidePanel/SidePanel.js +100 -75
  207. package/lib/components/StatusIcon/StatusIcon.d.ts +34 -2
  208. package/lib/components/StatusIcon/StatusIcon.js +97 -95
  209. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +23 -2
  210. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +6 -5
  211. package/lib/components/TagOverflow/TagOverflow.d.ts +5 -0
  212. package/lib/components/TagOverflow/TagOverflow.js +216 -0
  213. package/lib/components/TagOverflow/constants.d.ts +14 -0
  214. package/lib/components/TagOverflow/constants.js +34 -0
  215. package/lib/components/TagOverflow/index.d.ts +1 -0
  216. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +105 -6
  217. package/lib/components/Tearsheet/TearsheetNarrow.js +6 -1
  218. package/lib/components/Toolbar/Toolbar.d.ts +23 -5
  219. package/lib/components/Toolbar/Toolbar.js +30 -26
  220. package/lib/components/TruncatedList/TruncatedList.js +5 -3
  221. package/lib/components/UserAvatar/UserAvatar.js +7 -4
  222. package/lib/components/index.d.ts +5 -2
  223. package/lib/global/js/package-settings.d.ts +8 -0
  224. package/lib/global/js/package-settings.js +8 -0
  225. package/lib/index.js +42 -0
  226. package/lib/settings.d.ts +8 -0
  227. package/package.json +3 -3
  228. package/scss/components/Coachmark/_coachmark-dragbar.scss +0 -1
  229. package/scss/components/Coachmark/_coachmark-tagline.scss +2 -2
  230. package/scss/components/ConditionBuilder/_carbon-imports.scss +9 -0
  231. package/scss/components/ConditionBuilder/_condition-builder.scss +25 -0
  232. package/scss/components/ConditionBuilder/_index-with-carbon.scss +9 -0
  233. package/scss/components/ConditionBuilder/_index.scss +8 -0
  234. package/scss/components/CreateFullPage/_create-full-page.scss +10 -10
  235. package/scss/components/Datagrid/styles/_useNestedRows.scss +5 -1
  236. package/scss/components/FilterPanel/_carbon-imports.scss +5 -0
  237. package/scss/components/FilterPanel/_filter-panel-accordion-item.scss +54 -0
  238. package/scss/components/FilterPanel/_filter-panel-accordion.scss +6 -0
  239. package/scss/components/FilterPanel/_filter-panel-checkbox-with-overflow.scss +60 -0
  240. package/scss/components/FilterPanel/_filter-panel-checkbox.scss +24 -3
  241. package/scss/components/FilterPanel/_filter-panel-group.scss +39 -0
  242. package/scss/components/FilterPanel/_filter-panel-label.scss +0 -8
  243. package/scss/components/FilterPanel/_filter-panel-search.scss +38 -0
  244. package/scss/components/FilterPanel/_filter-panel.scss +2 -0
  245. package/scss/components/FilterPanel/_index-with-carbon.scss +5 -0
  246. package/scss/components/FilterPanel/_index.scss +5 -0
  247. package/scss/components/Guidebanner/_guidebanner.scss +1 -1
  248. package/scss/components/InlineTip/_inline-tip.scss +1 -1
  249. package/scss/components/ProductiveCard/_productive-card.scss +13 -0
  250. package/scss/components/ScrollGradient/_carbon-imports.scss +9 -0
  251. package/scss/components/ScrollGradient/_index-with-carbon.scss +9 -0
  252. package/scss/components/ScrollGradient/_index.scss +8 -0
  253. package/scss/components/ScrollGradient/_scroll-gradient.scss +102 -0
  254. package/scss/components/SidePanel/_side-panel.scss +9 -9
  255. package/scss/components/TagOverflow/_carbon-imports.scss +9 -0
  256. package/scss/components/TagOverflow/_index-with-carbon.scss +9 -0
  257. package/scss/components/TagOverflow/_index.scss +8 -0
  258. package/scss/components/TagOverflow/_tag-overflow.scss +55 -0
  259. package/scss/components/Tearsheet/_tearsheet.scss +10 -0
  260. package/scss/components/UserAvatar/_user-avatar.scss +38 -4
  261. package/scss/components/_index-with-carbon.scss +3 -0
  262. package/scss/components/_index.scss +3 -0
@@ -35,298 +35,300 @@ _Status icons_ are an important method of communicating severity level
35
35
  information to users. The shapes and colors, communicate severity that enable
36
36
  users to quickly assess and identify status and respond accordingly.
37
37
  */
38
- exports.StatusIcon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
38
+
39
+ exports.StatusIcon = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
39
40
  var _icons$kind;
40
- var kind = _ref.kind,
41
- theme = _ref.theme,
42
- size = _ref.size,
43
- className = _ref.className,
44
- iconDescription = _ref.iconDescription,
45
- rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
41
+ var kind = _ref2.kind,
42
+ theme = _ref2.theme,
43
+ size = _ref2.size,
44
+ className = _ref2.className,
45
+ iconDescription = _ref2.iconDescription,
46
+ rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref2, _excluded);
47
+ var forwardedRef = ref;
46
48
  var icons$1 = {
47
49
  fatal: {
48
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
50
+ sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
49
51
  return /*#__PURE__*/React__default["default"].createElement(icons.Misuse, _rollupPluginBabelHelpers["extends"]({
50
52
  size: 16,
51
- ref: ref
53
+ ref: forwardedRef
52
54
  }, props));
53
55
  }),
54
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
56
+ md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
55
57
  return /*#__PURE__*/React__default["default"].createElement(icons.Misuse, _rollupPluginBabelHelpers["extends"]({
56
58
  size: 20,
57
- ref: ref
59
+ ref: forwardedRef
58
60
  }, props));
59
61
  }),
60
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
62
+ lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
61
63
  return /*#__PURE__*/React__default["default"].createElement(icons.Misuse, _rollupPluginBabelHelpers["extends"]({
62
64
  size: 24,
63
- ref: ref
65
+ ref: forwardedRef
64
66
  }, props));
65
67
  }),
66
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
68
+ xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
67
69
  return /*#__PURE__*/React__default["default"].createElement(icons.Misuse, _rollupPluginBabelHelpers["extends"]({
68
70
  size: 32,
69
- ref: ref
71
+ ref: forwardedRef
70
72
  }, props));
71
73
  })
72
74
  },
73
75
  critical: {
74
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
76
+ sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
75
77
  return /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, _rollupPluginBabelHelpers["extends"]({
76
78
  size: 16,
77
- ref: ref
79
+ ref: forwardedRef
78
80
  }, props));
79
81
  }),
80
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
82
+ md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
81
83
  return /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, _rollupPluginBabelHelpers["extends"]({
82
84
  size: 20,
83
- ref: ref
85
+ ref: forwardedRef
84
86
  }, props));
85
87
  }),
86
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
88
+ lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
87
89
  return /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, _rollupPluginBabelHelpers["extends"]({
88
90
  size: 24,
89
- ref: ref
91
+ ref: forwardedRef
90
92
  }, props));
91
93
  }),
92
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
94
+ xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
93
95
  return /*#__PURE__*/React__default["default"].createElement(icons.ErrorFilled, _rollupPluginBabelHelpers["extends"]({
94
96
  size: 32,
95
- ref: ref
97
+ ref: forwardedRef
96
98
  }, props));
97
99
  })
98
100
  },
99
101
  'major-warning': {
100
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
102
+ sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
101
103
  return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltInvertedFilled, _rollupPluginBabelHelpers["extends"]({
102
104
  size: 16,
103
- ref: ref
105
+ ref: forwardedRef
104
106
  }, props));
105
107
  }),
106
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
108
+ md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
107
109
  return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltInvertedFilled, _rollupPluginBabelHelpers["extends"]({
108
110
  size: 20,
109
- ref: ref
111
+ ref: forwardedRef
110
112
  }, props));
111
113
  }),
112
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
114
+ lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
113
115
  return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltInvertedFilled, _rollupPluginBabelHelpers["extends"]({
114
116
  size: 24,
115
- ref: ref
117
+ ref: forwardedRef
116
118
  }, props));
117
119
  }),
118
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
120
+ xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
119
121
  return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltInvertedFilled, _rollupPluginBabelHelpers["extends"]({
120
122
  size: 32,
121
- ref: ref
123
+ ref: forwardedRef
122
124
  }, props));
123
125
  })
124
126
  },
125
127
  'minor-warning': {
126
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
128
+ sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
127
129
  return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, _rollupPluginBabelHelpers["extends"]({
128
130
  size: 16,
129
- ref: ref
131
+ ref: forwardedRef
130
132
  }, props));
131
133
  }),
132
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
134
+ md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
133
135
  return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, _rollupPluginBabelHelpers["extends"]({
134
136
  size: 20,
135
- ref: ref
137
+ ref: forwardedRef
136
138
  }, props));
137
139
  }),
138
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
140
+ lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
139
141
  return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, _rollupPluginBabelHelpers["extends"]({
140
142
  size: 24,
141
- ref: ref
143
+ ref: forwardedRef
142
144
  }, props));
143
145
  }),
144
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
146
+ xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
145
147
  return /*#__PURE__*/React__default["default"].createElement(icons.WarningAltFilled, _rollupPluginBabelHelpers["extends"]({
146
148
  size: 32,
147
- ref: ref
149
+ ref: forwardedRef
148
150
  }, props));
149
151
  })
150
152
  },
151
153
  undefined: {
152
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
154
+ sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
153
155
  return /*#__PURE__*/React__default["default"].createElement(icons.UndefinedFilled, _rollupPluginBabelHelpers["extends"]({
154
156
  size: 16,
155
- ref: ref
157
+ ref: forwardedRef
156
158
  }, props));
157
159
  }),
158
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
160
+ md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
159
161
  return /*#__PURE__*/React__default["default"].createElement(icons.UndefinedFilled, _rollupPluginBabelHelpers["extends"]({
160
162
  size: 20,
161
- ref: ref
163
+ ref: forwardedRef
162
164
  }, props));
163
165
  }),
164
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
166
+ lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
165
167
  return /*#__PURE__*/React__default["default"].createElement(icons.UndefinedFilled, _rollupPluginBabelHelpers["extends"]({
166
168
  size: 24,
167
- ref: ref
169
+ ref: forwardedRef
168
170
  }, props));
169
171
  }),
170
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
172
+ xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
171
173
  return /*#__PURE__*/React__default["default"].createElement(icons.UndefinedFilled, _rollupPluginBabelHelpers["extends"]({
172
174
  size: 32,
173
- ref: ref
175
+ ref: forwardedRef
174
176
  }, props));
175
177
  })
176
178
  },
177
179
  unknown: {
178
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
180
+ sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
179
181
  return /*#__PURE__*/React__default["default"].createElement(icons.UnknownFilled, _rollupPluginBabelHelpers["extends"]({
180
182
  size: 16,
181
- ref: ref
183
+ ref: forwardedRef
182
184
  }, props));
183
185
  }),
184
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
186
+ md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
185
187
  return /*#__PURE__*/React__default["default"].createElement(icons.UnknownFilled, _rollupPluginBabelHelpers["extends"]({
186
188
  size: 20,
187
- ref: ref
189
+ ref: forwardedRef
188
190
  }, props));
189
191
  }),
190
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
192
+ lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
191
193
  return /*#__PURE__*/React__default["default"].createElement(icons.UnknownFilled, _rollupPluginBabelHelpers["extends"]({
192
194
  size: 24,
193
- ref: ref
195
+ ref: forwardedRef
194
196
  }, props));
195
197
  }),
196
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
198
+ xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
197
199
  return /*#__PURE__*/React__default["default"].createElement(icons.UnknownFilled, _rollupPluginBabelHelpers["extends"]({
198
200
  size: 32,
199
- ref: ref
201
+ ref: forwardedRef
200
202
  }, props));
201
203
  })
202
204
  },
203
205
  normal: {
204
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
206
+ sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
205
207
  return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, _rollupPluginBabelHelpers["extends"]({
206
208
  size: 16,
207
- ref: ref
209
+ ref: forwardedRef
208
210
  }, props));
209
211
  }),
210
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
212
+ md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
211
213
  return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, _rollupPluginBabelHelpers["extends"]({
212
214
  size: 20,
213
- ref: ref
215
+ ref: forwardedRef
214
216
  }, props));
215
217
  }),
216
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
218
+ lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
217
219
  return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, _rollupPluginBabelHelpers["extends"]({
218
220
  size: 24,
219
- ref: ref
221
+ ref: forwardedRef
220
222
  }, props));
221
223
  }),
222
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
224
+ xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
223
225
  return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, _rollupPluginBabelHelpers["extends"]({
224
226
  size: 32,
225
- ref: ref
227
+ ref: forwardedRef
226
228
  }, props));
227
229
  })
228
230
  },
229
231
  info: {
230
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
232
+ sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
231
233
  return /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, _rollupPluginBabelHelpers["extends"]({
232
234
  size: 16,
233
- ref: ref
235
+ ref: forwardedRef
234
236
  }, props));
235
237
  }),
236
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
238
+ md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
237
239
  return /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, _rollupPluginBabelHelpers["extends"]({
238
240
  size: 20,
239
- ref: ref
241
+ ref: forwardedRef
240
242
  }, props));
241
243
  }),
242
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
244
+ lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
243
245
  return /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, _rollupPluginBabelHelpers["extends"]({
244
246
  size: 24,
245
- ref: ref
247
+ ref: forwardedRef
246
248
  }, props));
247
249
  }),
248
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
250
+ xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
249
251
  return /*#__PURE__*/React__default["default"].createElement(icons.InformationSquareFilled, _rollupPluginBabelHelpers["extends"]({
250
252
  size: 32,
251
- ref: ref
253
+ ref: forwardedRef
252
254
  }, props));
253
255
  })
254
256
  },
255
257
  'in-progress': {
256
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
258
+ sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
257
259
  return /*#__PURE__*/React__default["default"].createElement(icons.InProgress, _rollupPluginBabelHelpers["extends"]({
258
260
  size: 16,
259
- ref: ref
261
+ ref: forwardedRef
260
262
  }, props));
261
263
  }),
262
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
264
+ md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
263
265
  return /*#__PURE__*/React__default["default"].createElement(icons.InProgress, _rollupPluginBabelHelpers["extends"]({
264
266
  size: 20,
265
- ref: ref
267
+ ref: forwardedRef
266
268
  }, props));
267
269
  }),
268
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
270
+ lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
269
271
  return /*#__PURE__*/React__default["default"].createElement(icons.InProgress, _rollupPluginBabelHelpers["extends"]({
270
272
  size: 24,
271
- ref: ref
273
+ ref: forwardedRef
272
274
  }, props));
273
275
  }),
274
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
276
+ xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
275
277
  return /*#__PURE__*/React__default["default"].createElement(icons.InProgress, _rollupPluginBabelHelpers["extends"]({
276
278
  size: 32,
277
- ref: ref
279
+ ref: forwardedRef
278
280
  }, props));
279
281
  })
280
282
  },
281
283
  running: {
282
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
284
+ sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
283
285
  return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, _rollupPluginBabelHelpers["extends"]({
284
286
  size: 16,
285
- ref: ref
287
+ ref: forwardedRef
286
288
  }, props));
287
289
  }),
288
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
290
+ md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
289
291
  return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, _rollupPluginBabelHelpers["extends"]({
290
292
  size: 20,
291
- ref: ref
293
+ ref: forwardedRef
292
294
  }, props));
293
295
  }),
294
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
296
+ lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
295
297
  return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, _rollupPluginBabelHelpers["extends"]({
296
298
  size: 24,
297
- ref: ref
299
+ ref: forwardedRef
298
300
  }, props));
299
301
  }),
300
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
302
+ xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
301
303
  return /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkOutline, _rollupPluginBabelHelpers["extends"]({
302
304
  size: 32,
303
- ref: ref
305
+ ref: forwardedRef
304
306
  }, props));
305
307
  })
306
308
  },
307
309
  pending: {
308
- sm: /*#__PURE__*/React.forwardRef(function (props, ref) {
310
+ sm: /*#__PURE__*/React.forwardRef(function (props, _ref) {
309
311
  return /*#__PURE__*/React__default["default"].createElement(icons.Pending, _rollupPluginBabelHelpers["extends"]({
310
312
  size: 16,
311
- ref: ref
313
+ ref: forwardedRef
312
314
  }, props));
313
315
  }),
314
- md: /*#__PURE__*/React.forwardRef(function (props, ref) {
316
+ md: /*#__PURE__*/React.forwardRef(function (props, _ref) {
315
317
  return /*#__PURE__*/React__default["default"].createElement(icons.Pending, _rollupPluginBabelHelpers["extends"]({
316
318
  size: 20,
317
- ref: ref
319
+ ref: forwardedRef
318
320
  }, props));
319
321
  }),
320
- lg: /*#__PURE__*/React.forwardRef(function (props, ref) {
322
+ lg: /*#__PURE__*/React.forwardRef(function (props, _ref) {
321
323
  return /*#__PURE__*/React__default["default"].createElement(icons.Pending, _rollupPluginBabelHelpers["extends"]({
322
324
  size: 24,
323
- ref: ref
325
+ ref: forwardedRef
324
326
  }, props));
325
327
  }),
326
- xl: /*#__PURE__*/React.forwardRef(function (props, ref) {
328
+ xl: /*#__PURE__*/React.forwardRef(function (props, _ref) {
327
329
  return /*#__PURE__*/React__default["default"].createElement(icons.Pending, _rollupPluginBabelHelpers["extends"]({
328
330
  size: 32,
329
- ref: ref
331
+ ref: forwardedRef
330
332
  }, props));
331
333
  })
332
334
  }
@@ -1,5 +1,26 @@
1
1
  /**
2
- * The SteppedAnimatedMedia is a Novice to Pro internal component and is not intended for general use.
2
+ * Copyright IBM Corp. 2023, 2024
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
3
6
  */
4
- export const SteppedAnimatedMedia: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
7
  import React from 'react';
8
+ interface SteppedAnimatedMediaProps {
9
+ /**
10
+ * Optional class name for this component.
11
+ */
12
+ className?: string;
13
+ /**
14
+ * The file path(s) to json formatted Lottie animation files.
15
+ */
16
+ filePaths: string[] | undefined;
17
+ /**
18
+ * Which animation step from the filePaths array to play.
19
+ */
20
+ playStep?: number;
21
+ }
22
+ /**
23
+ * The SteppedAnimatedMedia is a Novice to Pro internal component and is not intended for general use.
24
+ */
25
+ export declare const SteppedAnimatedMedia: React.ForwardRefExoticComponent<SteppedAnimatedMediaProps & React.RefAttributes<HTMLDivElement>>;
26
+ export {};
@@ -37,7 +37,6 @@ var componentName = 'SteppedAnimatedMedia';
37
37
  var defaults = {
38
38
  playStep: 0
39
39
  };
40
-
41
40
  /**
42
41
  * The SteppedAnimatedMedia is a Novice to Pro internal component and is not intended for general use.
43
42
  */
@@ -52,8 +51,9 @@ var SteppedAnimatedMedia = /*#__PURE__*/React__default["default"].forwardRef(fun
52
51
  jsonData = _useState2[0],
53
52
  setJsonData = _useState2[1];
54
53
  var animRef = React.useRef();
55
- var backupRef = React.useRef();
54
+ var backupRef = React.useRef(null);
56
55
  var localRef = ref !== null && ref !== void 0 ? ref : backupRef;
56
+ var localRefValue = localRef.current;
57
57
  // load animation source
58
58
  React.useEffect(function () {
59
59
  var isJsonFile = function isJsonFile(filePath) {
@@ -100,11 +100,11 @@ var SteppedAnimatedMedia = /*#__PURE__*/React__default["default"].forwardRef(fun
100
100
  React.useEffect(function () {
101
101
  var _window;
102
102
  var prefersReducedMotion = (_window = window) !== null && _window !== void 0 && _window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)').matches : true;
103
- if (localRef.current) {
103
+ if (localRefValue) {
104
104
  var _animRef$current, _animRef$current2, _animRef$current3;
105
105
  (_animRef$current = animRef.current) === null || _animRef$current === void 0 || _animRef$current.destroy();
106
106
  animRef.current = lottie__default["default"].loadAnimation({
107
- container: localRef.current,
107
+ container: localRefValue,
108
108
  renderer: 'svg',
109
109
  animationData: jsonData[clamp__default["default"](playStep, 0, jsonData.length - 1)],
110
110
  loop: false,
@@ -119,7 +119,7 @@ var SteppedAnimatedMedia = /*#__PURE__*/React__default["default"].forwardRef(fun
119
119
  var _animRef$current4;
120
120
  return (_animRef$current4 = animRef.current) === null || _animRef$current4 === void 0 ? void 0 : _animRef$current4.destroy();
121
121
  };
122
- }, [jsonData, localRef, playStep]);
122
+ }, [jsonData, localRefValue, playStep]);
123
123
  if (!jsonData) {
124
124
  return null;
125
125
  }
@@ -138,6 +138,7 @@ SteppedAnimatedMedia.propTypes = {
138
138
  /**
139
139
  * The file path(s) to json formatted Lottie animation files.
140
140
  */
141
+ /**@ts-ignore*/
141
142
  filePaths: index["default"].arrayOf(index["default"].string).isRequired,
142
143
  /**
143
144
  * Which animation step from the filePaths array to play.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * TODO: A description of the component.
3
+ */
4
+ export let TagOverflow: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
+ import React from 'react';