@carbon/ibm-products 2.0.0-rc.2 → 2.0.0-rc.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. package/css/index-full-carbon.css +946 -327
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +4 -8
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +785 -168
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +4 -8
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +720 -232
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +4 -8
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +742 -244
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +4 -8
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/APIKeyModal/APIKeyModal.js +1 -1
  18. package/es/components/AddSelect/AddSelect.js +0 -3
  19. package/es/components/AddSelect/AddSelectBody.js +22 -5
  20. package/es/components/AddSelect/AddSelectBreadcrumbs.js +11 -3
  21. package/es/components/AddSelect/AddSelectColumn.js +5 -5
  22. package/es/components/AddSelect/AddSelectFilter.js +5 -4
  23. package/es/components/AddSelect/AddSelectList.js +61 -27
  24. package/es/components/AddSelect/AddSelectMetaPanel.js +1 -1
  25. package/es/components/AddSelect/AddSelectSort.js +1 -1
  26. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -6
  27. package/es/components/Card/Card.js +16 -6
  28. package/es/components/Card/CardFooter.js +3 -1
  29. package/es/components/Card/CardHeader.js +20 -1
  30. package/es/components/ComboButton/ComboButton.js +1 -1
  31. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
  32. package/es/components/DataSpreadsheet/DataSpreadsheet.js +63 -11
  33. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -1
  34. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +7 -0
  35. package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +6 -5
  36. package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +31 -0
  37. package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +1 -1
  38. package/es/components/Datagrid/Datagrid/Datagrid.js +10 -38
  39. package/es/components/Datagrid/Datagrid/DatagridContent.js +154 -0
  40. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +9 -1
  41. package/es/components/Datagrid/Datagrid/DatagridRow.js +10 -2
  42. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +10 -3
  43. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +13 -4
  44. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +5 -4
  45. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +2 -1
  46. package/es/components/Datagrid/Datagrid/DraggableElement.js +6 -2
  47. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +5 -45
  48. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +4 -1
  49. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +36 -10
  50. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsModal.js +62 -26
  51. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ModalWrapper.js +3 -2
  52. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +60 -0
  53. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/index.js +1 -0
  54. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +534 -0
  55. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/index.js +1 -0
  56. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +112 -0
  57. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +27 -0
  58. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/index.js +1 -0
  59. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +39 -0
  60. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +19 -0
  61. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +263 -0
  62. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +87 -0
  63. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +17 -14
  64. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +13 -36
  65. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/CustomizeColumnStory.js +0 -0
  66. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/LeftPanelStory.js +0 -0
  67. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/RowSizeDropdownStory.js +0 -0
  68. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/SelectAllWithToggleStory.js +0 -0
  69. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/StickyActionsColumnStory.js +0 -0
  70. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/common.js +0 -0
  71. package/es/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/index.js +0 -0
  72. package/es/components/Datagrid/index.js +3 -1
  73. package/es/components/Datagrid/useActionsColumn.js +28 -12
  74. package/es/components/Datagrid/useColumnOrder.js +8 -0
  75. package/es/components/Datagrid/useCustomizeColumns.js +5 -0
  76. package/es/components/Datagrid/useDisableSelectRows.js +6 -2
  77. package/es/components/Datagrid/useExpandedRow.js +0 -1
  78. package/es/components/Datagrid/useInfiniteScroll.js +5 -2
  79. package/es/components/Datagrid/useInlineEdit.js +71 -0
  80. package/es/components/Datagrid/useNestedRowExpander.js +42 -0
  81. package/es/components/Datagrid/useNestedRows.js +2 -2
  82. package/es/components/Datagrid/useRowExpander.js +1 -1
  83. package/es/components/Datagrid/useRowSize.js +17 -6
  84. package/es/components/Datagrid/useSelectAllToggle.js +17 -4
  85. package/es/components/Datagrid/useSelectRows.js +12 -2
  86. package/es/components/Datagrid/useSortableColumns.js +1 -1
  87. package/es/components/Datagrid/useStickyColumn.js +11 -0
  88. package/es/components/Datagrid/utils/DatagridActions.js +152 -0
  89. package/es/components/Datagrid/utils/DatagridPagination.js +33 -0
  90. package/es/components/Datagrid/utils/Wrapper.js +21 -0
  91. package/es/components/Datagrid/utils/getArgTypes.js +89 -0
  92. package/es/components/Datagrid/utils/getInlineEditColumns.js +153 -0
  93. package/es/components/Datagrid/utils/makeData.js +46 -1
  94. package/es/components/EditUpdateCards/EditUpdateCards.js +144 -0
  95. package/es/components/EditUpdateCards/index.js +7 -0
  96. package/es/components/ExportModal/ExportModal.js +1 -1
  97. package/es/components/ImportModal/ImportModal.js +3 -3
  98. package/es/components/InlineEdit/InlineEdit.js +11 -9
  99. package/es/components/ModifiedTabs/ModifiedTabLabelNew.js +1 -1
  100. package/es/components/ModifiedTabs/ModifiedTabLabelWithClose.js +1 -1
  101. package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
  102. package/es/components/OptionsTile/OptionsTile.js +1 -1
  103. package/es/components/PageHeader/PageHeader.js +1 -1
  104. package/es/components/PageHeader/PageHeaderTitle.js +3 -1
  105. package/es/components/ProductiveCard/ProductiveCard.js +5 -0
  106. package/es/components/Saving/Saving.js +1 -1
  107. package/es/components/SidePanel/SidePanel.js +45 -52
  108. package/es/components/SidePanel/motion/variants.js +45 -0
  109. package/es/components/StatusIcon/StatusIcon.js +1 -1
  110. package/es/components/UserProfileImage/UserProfileImage.js +1 -1
  111. package/es/components/WebTerminal/WebTerminal.js +1 -1
  112. package/es/components/WebTerminal/preview-components/Navigation.js +1 -1
  113. package/es/components/index.js +3 -2
  114. package/es/global/js/hooks/useClickOutside.js +1 -1
  115. package/es/global/js/package-settings.js +5 -4
  116. package/es/global/js/utils/getBezierValues.js +20 -0
  117. package/es/global/js/utils/motionConstants.js +45 -0
  118. package/es/global/js/utils/rangeWithCallback.js +13 -0
  119. package/es/global/js/utils/story-helper.js +5 -1
  120. package/es/global/js/utils/uuidv4.spec.js +4 -0
  121. package/lib/components/APIKeyModal/APIKeyModal.js +4 -4
  122. package/lib/components/AddSelect/AddSelect.js +0 -4
  123. package/lib/components/AddSelect/AddSelectBody.js +22 -5
  124. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +14 -3
  125. package/lib/components/AddSelect/AddSelectColumn.js +5 -5
  126. package/lib/components/AddSelect/AddSelectFilter.js +5 -4
  127. package/lib/components/AddSelect/AddSelectList.js +62 -28
  128. package/lib/components/AddSelect/AddSelectMetaPanel.js +2 -2
  129. package/lib/components/AddSelect/AddSelectSort.js +4 -4
  130. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +6 -6
  131. package/lib/components/Card/Card.js +16 -6
  132. package/lib/components/Card/CardFooter.js +3 -1
  133. package/lib/components/Card/CardHeader.js +21 -1
  134. package/lib/components/ComboButton/ComboButton.js +3 -3
  135. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
  136. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +63 -10
  137. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -1
  138. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +7 -0
  139. package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +6 -5
  140. package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +42 -0
  141. package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +1 -1
  142. package/lib/components/Datagrid/Datagrid/Datagrid.js +12 -45
  143. package/lib/components/Datagrid/Datagrid/DatagridContent.js +188 -0
  144. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +9 -1
  145. package/lib/components/Datagrid/Datagrid/DatagridRow.js +19 -2
  146. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +12 -3
  147. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +16 -5
  148. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +6 -5
  149. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +2 -1
  150. package/lib/components/Datagrid/Datagrid/DraggableElement.js +7 -3
  151. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +12 -47
  152. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +5 -2
  153. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +48 -25
  154. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsModal.js +60 -25
  155. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ModalWrapper.js +3 -2
  156. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +76 -0
  157. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/index.js +13 -0
  158. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +558 -0
  159. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/index.js +13 -0
  160. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +129 -0
  161. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +36 -0
  162. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/index.js +19 -0
  163. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +45 -0
  164. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +28 -0
  165. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +272 -0
  166. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +100 -0
  167. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +17 -13
  168. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +13 -35
  169. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/CustomizeColumnStory.js +0 -0
  170. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/LeftPanelStory.js +0 -0
  171. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/RowSizeDropdownStory.js +0 -0
  172. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/SelectAllWithToggleStory.js +0 -0
  173. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/StickyActionsColumnStory.js +0 -0
  174. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/common.js +0 -0
  175. package/lib/components/Datagrid/{Datagrid.stories-helpers → Datagrid.stories}/index.js +0 -0
  176. package/lib/components/Datagrid/index.js +17 -1
  177. package/lib/components/Datagrid/useActionsColumn.js +28 -13
  178. package/lib/components/Datagrid/useColumnOrder.js +17 -0
  179. package/lib/components/Datagrid/useCustomizeColumns.js +5 -0
  180. package/lib/components/Datagrid/useDisableSelectRows.js +6 -2
  181. package/lib/components/Datagrid/useExpandedRow.js +0 -1
  182. package/lib/components/Datagrid/useInfiniteScroll.js +5 -2
  183. package/lib/components/Datagrid/useInlineEdit.js +85 -0
  184. package/lib/components/Datagrid/useNestedRowExpander.js +57 -0
  185. package/lib/components/Datagrid/useNestedRows.js +3 -3
  186. package/lib/components/Datagrid/useRowExpander.js +3 -3
  187. package/lib/components/Datagrid/useRowSize.js +18 -13
  188. package/lib/components/Datagrid/useSelectAllToggle.js +18 -4
  189. package/lib/components/Datagrid/useSelectRows.js +12 -2
  190. package/lib/components/Datagrid/useSortableColumns.js +5 -5
  191. package/lib/components/Datagrid/useStickyColumn.js +11 -0
  192. package/lib/components/Datagrid/utils/DatagridActions.js +170 -0
  193. package/lib/components/Datagrid/utils/DatagridPagination.js +46 -0
  194. package/lib/components/Datagrid/utils/Wrapper.js +33 -0
  195. package/lib/components/Datagrid/utils/getArgTypes.js +97 -0
  196. package/lib/components/Datagrid/utils/getInlineEditColumns.js +168 -0
  197. package/lib/components/Datagrid/utils/makeData.js +47 -1
  198. package/lib/components/EditUpdateCards/EditUpdateCards.js +152 -0
  199. package/lib/components/EditUpdateCards/index.js +13 -0
  200. package/lib/components/ExportModal/ExportModal.js +3 -3
  201. package/lib/components/ImportModal/ImportModal.js +4 -4
  202. package/lib/components/InlineEdit/InlineEdit.js +16 -14
  203. package/lib/components/ModifiedTabs/ModifiedTabLabelNew.js +2 -2
  204. package/lib/components/ModifiedTabs/ModifiedTabLabelWithClose.js +3 -3
  205. package/lib/components/NotificationsPanel/NotificationsPanel.js +8 -8
  206. package/lib/components/OptionsTile/OptionsTile.js +6 -6
  207. package/lib/components/PageHeader/PageHeader.js +2 -2
  208. package/lib/components/PageHeader/PageHeaderTitle.js +3 -1
  209. package/lib/components/ProductiveCard/ProductiveCard.js +5 -0
  210. package/lib/components/Saving/Saving.js +5 -5
  211. package/lib/components/SidePanel/SidePanel.js +48 -53
  212. package/lib/components/SidePanel/motion/variants.js +55 -0
  213. package/lib/components/StatusIcon/StatusIcon.js +45 -45
  214. package/lib/components/UserProfileImage/UserProfileImage.js +7 -7
  215. package/lib/components/WebTerminal/WebTerminal.js +3 -3
  216. package/lib/components/WebTerminal/preview-components/Navigation.js +4 -4
  217. package/lib/components/index.js +21 -1
  218. package/lib/global/js/hooks/useClickOutside.js +1 -1
  219. package/lib/global/js/package-settings.js +5 -4
  220. package/lib/global/js/utils/getBezierValues.js +29 -0
  221. package/lib/global/js/utils/motionConstants.js +55 -0
  222. package/lib/global/js/utils/rangeWithCallback.js +22 -0
  223. package/lib/global/js/utils/story-helper.js +5 -1
  224. package/lib/global/js/utils/uuidv4.spec.js +4 -0
  225. package/package.json +18 -16
  226. package/scss/components/AddSelect/_add-select.scss +129 -30
  227. package/scss/components/Card/_card.scss +1 -0
  228. package/scss/components/Cascade/_cascade.scss +1 -1
  229. package/scss/components/CreateTearsheet/_create-tearsheet.scss +2 -0
  230. package/scss/components/Datagrid/_datagrid.scss +7 -0
  231. package/scss/components/Datagrid/_storybook-styles.scss +12 -5
  232. package/scss/components/Datagrid/styles/_datagrid.scss +31 -15
  233. package/scss/components/Datagrid/styles/_draggableElement.scss +26 -9
  234. package/scss/components/Datagrid/styles/_index.scss +1 -0
  235. package/scss/components/Datagrid/styles/_useActionsColumn.scss +14 -0
  236. package/scss/components/Datagrid/styles/_useExpandedRow.scss +37 -9
  237. package/scss/components/Datagrid/styles/_useInlineEdit.scss +419 -0
  238. package/scss/components/Datagrid/styles/_useNestedRows.scss +16 -1
  239. package/scss/components/Datagrid/styles/_useStickyColumn.scss +31 -2
  240. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsModal.scss +47 -6
  241. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +9 -1
  242. package/scss/components/EditUpdateCards/_carbon-imports.scss +9 -0
  243. package/scss/components/EditUpdateCards/_edit-update-cards.scss +85 -0
  244. package/scss/components/EditUpdateCards/_index-with-carbon.scss +9 -0
  245. package/scss/components/EditUpdateCards/_index.scss +8 -0
  246. package/scss/components/EditUpdateCards/_storybook-styles.scss +55 -0
  247. package/scss/components/InlineEdit/_inline-edit.scss +4 -2
  248. package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -6
  249. package/scss/components/PageHeader/_page-header.scss +4 -0
  250. package/scss/components/RemoveModal/_remove-modal.scss +0 -4
  251. package/scss/components/SidePanel/_side-panel.scss +3 -82
  252. package/scss/components/SidePanel/_storybook-styles.scss +6 -1
  253. package/scss/components/Tearsheet/_tearsheet.scss +2 -2
  254. package/scss/components/_index-released-only.scss +1 -0
  255. package/scss/components/_index-with-carbon.scss +1 -0
  256. package/scss/components/_index.scss +1 -0
@@ -35,7 +35,7 @@ var _NotificationsEmptyState = require("../EmptyStates/NotificationsEmptyState")
35
35
 
36
36
  var _react2 = require("@carbon/react");
37
37
 
38
- var _iconsReact = require("@carbon/icons-react");
38
+ var _icons = require("@carbon/react/icons");
39
39
 
40
40
  var _excluded = ["className", "data", "daysAgoText", "dismissAllLabel", "dismissSingleNotificationIconDescription", "doNotDisturbDefaultToggled", "doNotDisturbLabel", "emptyStateLabel", "hourAgoText", "hoursAgoText", "minuteAgoText", "minutesAgoText", "monthAgoText", "monthsAgoText", "nowText", "onClickOutside", "onDismissAllNotifications", "onDismissSingleNotification", "onDoNotDisturbChange", "onSettingsClick", "onViewAllClick", "open", "previousLabel", "readLessLabel", "readMoreLabel", "secondsAgoText", "settingsIconDescription", "title", "todayLabel", "viewAllLabel", "yearAgoText", "yearsAgoText", "yesterdayAtText", "yesterdayLabel"];
41
41
 
@@ -250,7 +250,7 @@ var NotificationsPanel = /*#__PURE__*/_react.default.forwardRef(function (_ref,
250
250
  kind: "ghost",
251
251
  size: "sm",
252
252
  renderIcon: function renderIcon(props) {
253
- return /*#__PURE__*/_react.default.createElement(_iconsReact.ChevronDown, (0, _extends2.default)({
253
+ return /*#__PURE__*/_react.default.createElement(_icons.ChevronDown, (0, _extends2.default)({
254
254
  size: 16
255
255
  }, props));
256
256
  },
@@ -293,16 +293,16 @@ var NotificationsPanel = /*#__PURE__*/_react.default.forwardRef(function (_ref,
293
293
 
294
294
  event.which === 13 && notification.onNotificationClick(notification);
295
295
  }
296
- }, notification.type === 'error' && /*#__PURE__*/_react.default.createElement(_iconsReact.ErrorFilled, {
296
+ }, notification.type === 'error' && /*#__PURE__*/_react.default.createElement(_icons.ErrorFilled, {
297
297
  size: 16,
298
298
  className: (0, _classnames.default)(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-error")])
299
- }), notification.type === 'success' && /*#__PURE__*/_react.default.createElement(_iconsReact.CheckmarkFilled, {
299
+ }), notification.type === 'success' && /*#__PURE__*/_react.default.createElement(_icons.CheckmarkFilled, {
300
300
  size: 16,
301
301
  className: (0, _classnames.default)(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-success")])
302
- }), notification.type === 'warning' && /*#__PURE__*/_react.default.createElement(_iconsReact.WarningAltFilled, {
302
+ }), notification.type === 'warning' && /*#__PURE__*/_react.default.createElement(_icons.WarningAltFilled, {
303
303
  size: 16,
304
304
  className: (0, _classnames.default)(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-warning")])
305
- }), notification.type === 'informational' && /*#__PURE__*/_react.default.createElement(_iconsReact.InformationSquareFilled, {
305
+ }), notification.type === 'informational' && /*#__PURE__*/_react.default.createElement(_icons.InformationSquareFilled, {
306
306
  size: 16,
307
307
  className: (0, _classnames.default)(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-informational")])
308
308
  }), /*#__PURE__*/_react.default.createElement("div", {
@@ -337,7 +337,7 @@ var NotificationsPanel = /*#__PURE__*/_react.default.forwardRef(function (_ref,
337
337
  onClick: function onClick(event) {
338
338
  return dismissSingleNotification(event, notification);
339
339
  }
340
- }, /*#__PURE__*/_react.default.createElement(_iconsReact.Close, {
340
+ }, /*#__PURE__*/_react.default.createElement(_icons.Close, {
341
341
  size: 16
342
342
  })));
343
343
  };
@@ -413,7 +413,7 @@ var NotificationsPanel = /*#__PURE__*/_react.default.forwardRef(function (_ref,
413
413
  size: "sm",
414
414
  className: "".concat(blockClass, "__settings-button"),
415
415
  renderIcon: function renderIcon(props) {
416
- return /*#__PURE__*/_react.default.createElement(_iconsReact.Settings, (0, _extends2.default)({
416
+ return /*#__PURE__*/_react.default.createElement(_icons.Settings, (0, _extends2.default)({
417
417
  size: 16
418
418
  }, props));
419
419
  },
@@ -31,7 +31,7 @@ var _settings = require("../../settings");
31
31
 
32
32
  var _react2 = require("@carbon/react");
33
33
 
34
- var _iconsReact = require("@carbon/icons-react");
34
+ var _icons = require("@carbon/react/icons");
35
35
 
36
36
  var carbonMotion = _interopRequireWildcard(require("@carbon/motion"));
37
37
 
@@ -194,15 +194,15 @@ var OptionsTile = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
194
194
  var summaryClasses = ["".concat(blockClass, "__summary")];
195
195
 
196
196
  if (invalid) {
197
- Icon = _iconsReact.WarningFilled;
197
+ Icon = _icons.WarningFilled;
198
198
  text = invalidText;
199
199
  summaryClasses.push("".concat(blockClass, "__summary--invalid"));
200
200
  } else if (warn) {
201
- Icon = _iconsReact.WarningAltFilled;
201
+ Icon = _icons.WarningAltFilled;
202
202
  text = warnText;
203
203
  summaryClasses.push("".concat(blockClass, "__summary--warn"));
204
204
  } else if (locked) {
205
- Icon = _iconsReact.Locked;
205
+ Icon = _icons.Locked;
206
206
  summaryClasses.push("".concat(blockClass, "__summary--locked"));
207
207
 
208
208
  if (!text) {
@@ -256,7 +256,7 @@ var OptionsTile = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
256
256
  }, /*#__PURE__*/_react.default.createElement("summary", {
257
257
  className: "".concat(blockClass, "__header"),
258
258
  onClick: toggle
259
- }, /*#__PURE__*/_react.default.createElement(_iconsReact.ChevronDown, {
259
+ }, /*#__PURE__*/_react.default.createElement(_icons.ChevronDown, {
260
260
  size: 16,
261
261
  className: "".concat(blockClass, "__chevron")
262
262
  }), renderTitle()), /*#__PURE__*/_react.default.createElement("div", {
@@ -264,7 +264,7 @@ var OptionsTile = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
264
264
  ref: contentRef
265
265
  }, isLocked && /*#__PURE__*/_react.default.createElement("p", {
266
266
  className: "".concat(blockClass, "__locked-text")
267
- }, /*#__PURE__*/_react.default.createElement(_iconsReact.Locked, {
267
+ }, /*#__PURE__*/_react.default.createElement(_icons.Locked, {
268
268
  size: 16
269
269
  }), lockedText), children)) : /*#__PURE__*/_react.default.createElement("div", {
270
270
  className: "".concat(blockClass, "__static-content")
@@ -45,7 +45,7 @@ var _TagSet = require("../TagSet/TagSet");
45
45
 
46
46
  var _ButtonSetWithOverflow = require("../ButtonSetWithOverflow");
47
47
 
48
- var _iconsReact = require("@carbon/icons-react");
48
+ var _icons = require("@carbon/react/icons");
49
49
 
50
50
  var _PageHeaderUtils = require("./PageHeaderUtils");
51
51
 
@@ -484,7 +484,7 @@ var PageHeader = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
484
484
  kind: "ghost",
485
485
  onClick: handleCollapseToggle,
486
486
  renderIcon: function renderIcon(props) {
487
- return /*#__PURE__*/_react.default.createElement(_iconsReact.ChevronUp, (0, _extends2.default)({
487
+ return /*#__PURE__*/_react.default.createElement(_icons.ChevronUp, (0, _extends2.default)({
488
488
  size: 16
489
489
  }, props));
490
490
  },
@@ -84,7 +84,9 @@ var PageHeaderTitle = function PageHeaderTitle(_ref) {
84
84
  return /*#__PURE__*/_react.default.createElement("div", {
85
85
  className: (0, _classnames.default)("".concat(blockClass, "__title"), (0, _defineProperty2.default)({}, "".concat(blockClass, "__title--editable"), isEditable), (0, _defineProperty2.default)({}, "".concat(blockClass, "__title--fades"), hasBreadcrumbRow)),
86
86
  title: titleText
87
- }, titleInnards);
87
+ }, /*#__PURE__*/_react.default.createElement("h1", {
88
+ className: "".concat(blockClass, "__title-wrapper")
89
+ }, titleInnards));
88
90
  };
89
91
 
90
92
  exports.PageHeaderTitle = PageHeaderTitle;
@@ -135,6 +135,11 @@ ProductiveCard.propTypes = {
135
135
  */
136
136
  primaryButtonIcon: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
137
137
 
138
+ /**
139
+ * Determines if the primary button is on the top or bottom of the card
140
+ */
141
+ primaryButtonPlacement: _propTypes.default.oneOf(['top', 'bottom']),
142
+
138
143
  /**
139
144
  * The text that's displayed in the primary button
140
145
  */
@@ -21,7 +21,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
21
21
 
22
22
  var _react2 = require("@carbon/react");
23
23
 
24
- var _iconsReact = require("@carbon/icons-react");
24
+ var _icons = require("@carbon/react/icons");
25
25
 
26
26
  var _propTypes = _interopRequireDefault(require("prop-types"));
27
27
 
@@ -59,7 +59,7 @@ var Saving = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
59
59
  text: defaultText,
60
60
  iconDescription: defaultIconDescription,
61
61
  icon: function icon(props) {
62
- return /*#__PURE__*/_react.default.createElement(_iconsReact.CheckmarkOutline, (0, _extends2.default)({
62
+ return /*#__PURE__*/_react.default.createElement(_icons.CheckmarkOutline, (0, _extends2.default)({
63
63
  size: 16
64
64
  }, props));
65
65
  }
@@ -76,7 +76,7 @@ var Saving = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
76
76
  text: successText,
77
77
  iconDescription: successIconDescription,
78
78
  icon: function icon(props) {
79
- return /*#__PURE__*/_react.default.createElement(_iconsReact.Save, (0, _extends2.default)({
79
+ return /*#__PURE__*/_react.default.createElement(_icons.Save, (0, _extends2.default)({
80
80
  size: 16
81
81
  }, props));
82
82
  }
@@ -84,7 +84,7 @@ var Saving = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
84
84
  text: failText,
85
85
  iconDescription: failIconDescription,
86
86
  icon: function icon(props) {
87
- return /*#__PURE__*/_react.default.createElement(_iconsReact.ErrorOutline, (0, _extends2.default)({
87
+ return /*#__PURE__*/_react.default.createElement(_icons.ErrorOutline, (0, _extends2.default)({
88
88
  size: 16
89
89
  }, props));
90
90
  }
@@ -97,7 +97,7 @@ var Saving = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
97
97
  className: "".concat(blockClass, "__message")
98
98
  }, status === 'fail' && /*#__PURE__*/_react.default.createElement("div", {
99
99
  className: "".concat(blockClass, "__error-icon")
100
- }, /*#__PURE__*/_react.default.createElement(_iconsReact.ErrorFilled, {
100
+ }, /*#__PURE__*/_react.default.createElement(_icons.ErrorFilled, {
101
101
  size: 16
102
102
  })), /*#__PURE__*/_react.default.createElement("p", {
103
103
  className: "".concat(blockClass, "__text")
@@ -19,6 +19,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
19
19
 
20
20
  var _react = _interopRequireWildcard(require("react"));
21
21
 
22
+ var _framerMotion = require("framer-motion");
23
+
22
24
  var _propTypes = _interopRequireDefault(require("prop-types"));
23
25
 
24
26
  var _classnames = _interopRequireDefault(require("classnames"));
@@ -41,10 +43,12 @@ var _hooks = require("../../global/js/hooks");
41
43
 
42
44
  var _react2 = require("@carbon/react");
43
45
 
44
- var _iconsReact = require("@carbon/icons-react");
46
+ var _icons = require("@carbon/react/icons");
45
47
 
46
48
  var _ActionSet = require("../ActionSet");
47
49
 
50
+ var _variants = require("./motion/variants");
51
+
48
52
  var _excluded = ["actionToolbarButtons", "actions", "animateTitle", "children", "className", "closeIconDescription", "condensedActions", "currentStep", "includeOverlay", "labelText", "navigationBackIconDescription", "onNavigationBack", "onRequestClose", "onUnmount", "open", "placement", "preventCloseOnClickOutside", "selectorPageContent", "selectorPrimaryFocus", "size", "slideIn", "subtitle", "title"],
49
53
  _excluded2 = ["label", "kind", "icon", "leading", "disabled", "className", "onClick"];
50
54
 
@@ -106,20 +110,15 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
106
110
  title = _ref.title,
107
111
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
108
112
 
109
- var _useState = (0, _react.useState)(open),
113
+ var _useState = (0, _react.useState)(false),
110
114
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
111
- shouldRender = _useState2[0],
112
- setRender = _useState2[1];
115
+ animationComplete = _useState2[0],
116
+ setAnimationComplete = _useState2[1];
113
117
 
114
- var _useState3 = (0, _react.useState)(false),
118
+ var _useState3 = (0, _react.useState)(0),
115
119
  _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
116
- animationComplete = _useState4[0],
117
- setAnimationComplete = _useState4[1];
118
-
119
- var _useState5 = (0, _react.useState)(0),
120
- _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
121
- panelHeight = _useState6[0],
122
- setPanelHeight = _useState6[1];
120
+ panelHeight = _useState4[0],
121
+ setPanelHeight = _useState4[1];
123
122
 
124
123
  var sidePanelRef = (0, _react.useRef)();
125
124
  var sidePanelOverlayRef = (0, _react.useRef)();
@@ -149,8 +148,10 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
149
148
  // height css custom property
150
149
 
151
150
  if ((previousState === null || previousState === void 0 ? void 0 : previousState.size) !== size) {
151
+ var _sidePanelOuter$style;
152
+
152
153
  scrollableSection.scrollTop = 0;
153
- sidePanelOuter.style.setProperty("--".concat(blockClass, "--title-container-height"), "".concat(Number(initialTitleHeight), "px"));
154
+ sidePanelOuter === null || sidePanelOuter === void 0 ? void 0 : (_sidePanelOuter$style = sidePanelOuter.style) === null || _sidePanelOuter$style === void 0 ? void 0 : _sidePanelOuter$style.setProperty("--".concat(blockClass, "--title-container-height"), "".concat(Number(initialTitleHeight), "px"));
154
155
  }
155
156
  }
156
157
  }, [currentStep, ref, size, previousState === null || previousState === void 0 ? void 0 : previousState.size]); // set initial focus when side panel opens
@@ -178,12 +179,14 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
178
179
  }, [selectorPrimaryFocus, open, animationComplete]);
179
180
  (0, _react.useEffect)(function () {
180
181
  if (open && actions && actions.length && animationComplete) {
182
+ var _sidePanelOuter$style2;
183
+
181
184
  var sidePanelOuter = document.querySelector("#".concat(blockClass, "-outer"));
182
185
  var actionsContainer = getActionsContainerElement();
183
186
  var actionsHeight = (actionsContainer === null || actionsContainer === void 0 ? void 0 : actionsContainer.offsetHeight) + 16; // add additional 1rem spacing to bottom padding
184
187
 
185
188
  actionsHeight = "".concat(Math.round(actionsHeight / 16), "rem");
186
- sidePanelOuter === null || sidePanelOuter === void 0 ? void 0 : sidePanelOuter.style.setProperty("--".concat(blockClass, "--content-bottom-padding"), actionsHeight);
189
+ sidePanelOuter === null || sidePanelOuter === void 0 ? void 0 : (_sidePanelOuter$style2 = sidePanelOuter.style) === null || _sidePanelOuter$style2 === void 0 ? void 0 : _sidePanelOuter$style2.setProperty("--".concat(blockClass, "--content-bottom-padding"), actionsHeight);
187
190
  }
188
191
  }, [actions, condensedActions, open, animationComplete]); // Add console warning if labelText is provided without a title.
189
192
  // This combination is not allowed.
@@ -196,13 +199,15 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
196
199
  /* istanbul ignore next */
197
200
 
198
201
  var handleResize = function handleResize(width, height) {
202
+ var _sidePanelOuter$style3;
203
+
199
204
  setPanelHeight(height);
200
205
  var sidePanelOuter = document.querySelector("#".concat(blockClass, "-outer"));
201
206
  var actionsContainer = getActionsContainerElement();
202
- var actionsHeight = actionsContainer.offsetHeight + 16; // add additional 1rem spacing to bottom padding
207
+ var actionsHeight = (actionsContainer === null || actionsContainer === void 0 ? void 0 : actionsContainer.offsetHeight) + 16; // add additional 1rem spacing to bottom padding
203
208
 
204
209
  actionsHeight = "".concat(Math.round(actionsHeight / 16), "rem");
205
- sidePanelOuter.style.setProperty("--".concat(blockClass, "--content-bottom-padding"), actionsHeight);
210
+ sidePanelOuter === null || sidePanelOuter === void 0 ? void 0 : (_sidePanelOuter$style3 = sidePanelOuter.style) === null || _sidePanelOuter$style3 === void 0 ? void 0 : _sidePanelOuter$style3.setProperty("--".concat(blockClass, "--content-bottom-padding"), actionsHeight);
206
211
  };
207
212
 
208
213
  var getActionsContainerElement = function getActionsContainerElement() {
@@ -287,7 +292,7 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
287
292
  });
288
293
  }
289
294
 
290
- if (open && shouldRender && !animateTitle) {
295
+ if (open && !animateTitle) {
291
296
  var _sidePanelOuter = document.querySelector("#".concat(blockClass, "-outer"));
292
297
 
293
298
  var _sidePanelTitleElement = document.querySelector(".".concat(blockClass, "__title-container .").concat(blockClass, "__title-text"));
@@ -308,7 +313,7 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
308
313
  _sidePanelOuter === null || _sidePanelOuter === void 0 ? void 0 : _sidePanelOuter.style.setProperty("--".concat(blockClass, "--action-bar-container-height"), "".concat(sidePanelActionBarElementHeight, "px"));
309
314
  _sidePanelOuter === null || _sidePanelOuter === void 0 ? void 0 : _sidePanelOuter.style.setProperty("--".concat(blockClass, "--label-text-height"), "".concat(labelHeight, "px"));
310
315
  }
311
- }, [open, animateTitle, animationComplete, shouldRender, panelHeight, title, size, reducedMotion.matches]); // click outside functionality if `includeOverlay` prop is set
316
+ }, [open, animateTitle, animationComplete, panelHeight, title, size, reducedMotion.matches]); // click outside functionality if `includeOverlay` prop is set
312
317
 
313
318
  (0, _react.useEffect)(function () {
314
319
  var handleOutsideClick = function handleOutsideClick(event) {
@@ -334,18 +339,11 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
334
339
  return function () {
335
340
  document.removeEventListener('click', handleOutsideClick);
336
341
  };
337
- }, [includeOverlay, onRequestClose, open, preventCloseOnClickOutside, ref, onUnmount]); // initialize the side panel to open
338
-
339
- (0, _react.useEffect)(function () {
340
- if (open) {
341
- setRender(true);
342
- }
343
- }, [open]); // initializes the side panel to close
342
+ }, [includeOverlay, onRequestClose, open, preventCloseOnClickOutside, ref, onUnmount]); // initializes the side panel to close
344
343
 
345
344
  var onAnimationEnd = function onAnimationEnd() {
346
345
  if (!open) {
347
346
  onUnmount === null || onUnmount === void 0 ? void 0 : onUnmount();
348
- setRender(false);
349
347
  }
350
348
 
351
349
  setAnimationComplete(true);
@@ -359,13 +357,8 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
359
357
  }
360
358
  }, [reducedMotion.matches]); // initializes the side panel to open
361
359
 
362
- var _onAnimationStart = function onAnimationStart(event) {
363
- event.persist();
364
- var isPanelTarget = event.target.id === "".concat(blockClass, "-outer");
365
-
366
- if (isPanelTarget) {
367
- setAnimationComplete(false);
368
- }
360
+ var _onAnimationStart = function onAnimationStart() {
361
+ setAnimationComplete(false);
369
362
  }; // used to reset margins of the slide in panel when closed/closing
370
363
 
371
364
 
@@ -382,13 +375,12 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
382
375
  }, [open, placement, selectorPageContent, slideIn]);
383
376
  (0, _react.useEffect)(function () {
384
377
  if (!open && previousState !== null && previousState !== void 0 && previousState.open && reducedMotion.matches) {
385
- setRender(false);
386
378
  onUnmount === null || onUnmount === void 0 ? void 0 : onUnmount();
387
379
  }
388
380
  }, [open, onUnmount, reducedMotion.matches, previousState === null || previousState === void 0 ? void 0 : previousState.open]); // used to set margins of content for slide in panel version
389
381
 
390
382
  (0, _react.useEffect)(function () {
391
- if (shouldRender && slideIn) {
383
+ if (open && slideIn) {
392
384
  var pageContentElement = document.querySelector(selectorPageContent);
393
385
 
394
386
  if (placement && placement === 'right' && pageContentElement) {
@@ -401,7 +393,7 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
401
393
  pageContentElement.style.marginLeft = _constants.SIDE_PANEL_SIZES[size];
402
394
  }
403
395
  }
404
- }, [slideIn, selectorPageContent, placement, shouldRender, size, reducedMotion.matches]); // adds focus trap functionality
396
+ }, [slideIn, selectorPageContent, placement, size, reducedMotion.matches, open]); // adds focus trap functionality
405
397
 
406
398
  /* istanbul ignore next */
407
399
 
@@ -435,7 +427,7 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
435
427
  size: "sm",
436
428
  disabled: false,
437
429
  renderIcon: function renderIcon(props) {
438
- return /*#__PURE__*/_react.default.createElement(_iconsReact.ArrowLeft, (0, _extends2.default)({
430
+ return /*#__PURE__*/_react.default.createElement(_icons.ArrowLeft, (0, _extends2.default)({
439
431
  size: 20
440
432
  }, props));
441
433
  },
@@ -449,7 +441,7 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
449
441
  kind: "ghost",
450
442
  size: "sm",
451
443
  renderIcon: function renderIcon(props) {
452
- return /*#__PURE__*/_react.default.createElement(_iconsReact.Close, (0, _extends2.default)({
444
+ return /*#__PURE__*/_react.default.createElement(_icons.Close, (0, _extends2.default)({
453
445
  size: 20
454
446
  }, props));
455
447
  },
@@ -506,20 +498,22 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
506
498
  onResize: handleResize,
507
499
  targetRef: contentRef
508
500
  });
509
- return shouldRender && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, (0, _devtools.getDevtoolsProps)(componentName), rest, {
501
+ return /*#__PURE__*/_react.default.createElement(_framerMotion.AnimatePresence, null, open && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_framerMotion.motion.div, (0, _extends2.default)({}, (0, _devtools.getDevtoolsProps)(componentName), rest, {
510
502
  id: "".concat(blockClass, "-outer"),
511
503
  className: mainPanelClassNames,
512
- style: {
513
- animation: !reducedMotion.matches ? "".concat(open ? placement === 'right' ? "side-panel-entrance-right ".concat(_motion.moderate02) : "side-panel-entrance-left ".concat(_motion.moderate02) : placement === 'right' ? "side-panel-exit-right ".concat(_motion.moderate02) : "side-panel-exit-left ".concat(_motion.moderate02)) : null
514
- },
515
- onAnimationEnd: onAnimationEnd,
516
- onAnimationStart: function onAnimationStart(event) {
517
- return _onAnimationStart(event);
518
- },
519
504
  onBlur: handleBlur,
520
505
  ref: contentRef,
521
506
  role: "complementary",
522
- "aria-label": title
507
+ "aria-label": title,
508
+ onAnimationComplete: onAnimationEnd,
509
+ onAnimationStart: function onAnimationStart(event) {
510
+ return _onAnimationStart(event);
511
+ },
512
+ variants: _variants.panelVariants,
513
+ initial: "hidden",
514
+ animate: "visible",
515
+ exit: "exit",
516
+ custom: placement
523
517
  }), /*#__PURE__*/_react.default.createElement("span", {
524
518
  ref: startTrapRef,
525
519
  tabIndex: "0",
@@ -539,13 +533,14 @@ var SidePanel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
539
533
  tabIndex: "0",
540
534
  role: "link",
541
535
  className: "".concat(blockClass, "__visually-hidden")
542
- }, "Focus sentinel")), includeOverlay && /*#__PURE__*/_react.default.createElement("div", {
536
+ }, "Focus sentinel")), /*#__PURE__*/_react.default.createElement(_framerMotion.AnimatePresence, null, includeOverlay && /*#__PURE__*/_react.default.createElement(_framerMotion.motion.div, {
537
+ variants: _variants.overlayVariants,
538
+ initial: "hidden",
539
+ animate: "visible",
540
+ exit: "exit",
543
541
  ref: sidePanelOverlayRef,
544
- className: "".concat(blockClass, "__overlay"),
545
- style: {
546
- animation: !reducedMotion.matches ? "".concat(open ? "side-panel-overlay-entrance ".concat(_motion.moderate02) : "side-panel-overlay-exit ".concat(_motion.moderate02)) : null
547
- }
548
- }));
542
+ className: "".concat(blockClass, "__overlay")
543
+ }))));
549
544
  }); // Return a placeholder if not released and not enabled by feature flag
550
545
 
551
546
 
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.panelVariants = exports.overlayVariants = void 0;
7
+
8
+ var _motionConstants = require("../../../global/js/utils/motionConstants");
9
+
10
+ /**
11
+ * Copyright IBM Corp. 2022, 2022
12
+ *
13
+ * This source code is licensed under the Apache-2.0 license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+ var overlayVariants = {
17
+ visible: {
18
+ opacity: 1,
19
+ transition: {
20
+ duration: _motionConstants.DURATIONS.moderate02,
21
+ ease: _motionConstants.EASINGS.productive.standard
22
+ }
23
+ },
24
+ hidden: {
25
+ opacity: 0
26
+ },
27
+ exit: {
28
+ opacity: 0
29
+ }
30
+ };
31
+ exports.overlayVariants = overlayVariants;
32
+ var panelVariants = {
33
+ visible: {
34
+ x: 0,
35
+ transition: {
36
+ duration: _motionConstants.DURATIONS.moderate02,
37
+ ease: _motionConstants.EASINGS.productive.standard
38
+ }
39
+ },
40
+ hidden: function hidden(placement) {
41
+ return {
42
+ x: placement === 'right' ? '100%' : -320
43
+ };
44
+ },
45
+ exit: function exit(placement) {
46
+ return {
47
+ x: placement === 'right' ? '100%' : -320,
48
+ transition: {
49
+ duration: _motionConstants.DURATIONS.moderate01,
50
+ ease: _motionConstants.EASINGS.productive.exit
51
+ }
52
+ };
53
+ }
54
+ };
55
+ exports.panelVariants = panelVariants;