@carbon/ibm-products 2.63.0 → 2.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/css/index-full-carbon.css.map +1 -1
  2. package/css/index-full-carbon.min.css.map +1 -1
  3. package/css/index-without-carbon-released-only.css.map +1 -1
  4. package/css/index-without-carbon-released-only.min.css.map +1 -1
  5. package/css/index-without-carbon.css.map +1 -1
  6. package/css/index-without-carbon.min.css.map +1 -1
  7. package/css/index.css.map +1 -1
  8. package/css/index.min.css.map +1 -1
  9. package/es/components/APIKeyModal/APIKeyModal.js +6 -9
  10. package/es/components/AboutModal/AboutModal.js +5 -4
  11. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +1 -3
  12. package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts +8 -7
  13. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +1 -3
  14. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
  15. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +71 -16
  16. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +1 -0
  17. package/es/components/ConditionBuilder/utils/util.js +10 -45
  18. package/es/components/CreateFullPage/CreateFullPageStep.js +4 -4
  19. package/es/components/CreateInfluencer/CreateInfluencer.js +3 -3
  20. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +0 -3
  21. package/es/components/Datagrid/useSortableColumns.js +1 -1
  22. package/es/components/EmptyStates/EmptyState.d.ts +6 -7
  23. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +3 -48
  24. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -0
  25. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +3 -48
  26. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +3 -48
  27. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -0
  28. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +3 -48
  29. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -0
  30. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +3 -48
  31. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -0
  32. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +3 -48
  33. package/es/components/InterstitialScreen/InterstitialScreen.js +4 -2
  34. package/es/components/InterstitialScreenView/InterstitialScreenView.d.ts +4 -0
  35. package/es/components/InterstitialScreenView/InterstitialScreenView.js +9 -4
  36. package/es/components/OptionsTile/OptionsTile.js +3 -3
  37. package/es/components/ProductiveCard/ProductiveCard.d.ts +9 -5
  38. package/es/components/SimpleHeader/SimpleHeader.js +2 -2
  39. package/es/components/Tearsheet/TearsheetShell.js +80 -50
  40. package/es/global/js/hooks/useFocus.d.ts +1 -1
  41. package/es/global/js/hooks/useFocus.js +23 -31
  42. package/es/node_modules/@carbon/icons-react/es/Icon.js +1 -1
  43. package/es/node_modules/@carbon/{icon-helpers → icons-react/node_modules/@carbon/icon-helpers}/es/index.js +1 -1
  44. package/lib/components/APIKeyModal/APIKeyModal.js +5 -8
  45. package/lib/components/AboutModal/AboutModal.js +4 -3
  46. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +1 -3
  47. package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts +8 -7
  48. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +1 -3
  49. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -1
  50. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +68 -13
  51. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +1 -0
  52. package/lib/components/ConditionBuilder/utils/util.js +10 -45
  53. package/lib/components/CreateFullPage/CreateFullPageStep.js +3 -3
  54. package/lib/components/CreateInfluencer/CreateInfluencer.js +2 -2
  55. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +0 -3
  56. package/lib/components/Datagrid/useSortableColumns.js +1 -1
  57. package/lib/components/EmptyStates/EmptyState.d.ts +6 -7
  58. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +3 -48
  59. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -0
  60. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +3 -48
  61. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +3 -48
  62. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -0
  63. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +3 -48
  64. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -0
  65. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +3 -48
  66. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -0
  67. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +3 -48
  68. package/lib/components/InterstitialScreen/InterstitialScreen.js +4 -2
  69. package/lib/components/InterstitialScreenView/InterstitialScreenView.d.ts +4 -0
  70. package/lib/components/InterstitialScreenView/InterstitialScreenView.js +9 -4
  71. package/lib/components/OptionsTile/OptionsTile.js +2 -2
  72. package/lib/components/ProductiveCard/ProductiveCard.d.ts +9 -5
  73. package/lib/components/SimpleHeader/SimpleHeader.js +1 -1
  74. package/lib/components/Tearsheet/TearsheetShell.js +78 -48
  75. package/lib/global/js/hooks/useFocus.d.ts +1 -1
  76. package/lib/global/js/hooks/useFocus.js +22 -31
  77. package/lib/node_modules/@carbon/icons-react/es/Icon.js +1 -1
  78. package/lib/node_modules/@carbon/{icon-helpers → icons-react/node_modules/@carbon/icon-helpers}/es/index.js +1 -1
  79. package/package.json +11 -12
  80. package/telemetry.yml +1 -1
@@ -25,7 +25,8 @@ var useFocus = require('../../global/js/hooks/useFocus.js');
25
25
  var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
26
26
  var useIsomorphicEffect = require('../../global/js/hooks/useIsomorphicEffect.js');
27
27
 
28
- var _excluded = ["actions", "decorator", "ariaLabel", "children", "className", "closeIconDescription", "currentStep", "description", "hasCloseIcon", "hasError", "headerActions", "influencer", "influencerPosition", "influencerWidth", "label", "navigation", "onClose", "open", "portalTarget", "selectorPrimaryFocus", "selectorsFloatingMenus", "size", "slug", "title", "verticalPosition", "launcherButtonRef"];
28
+ var _excluded = ["children"],
29
+ _excluded2 = ["actions", "decorator", "ariaLabel", "children", "className", "closeIconDescription", "currentStep", "description", "hasCloseIcon", "hasError", "headerActions", "influencer", "influencerPosition", "influencerWidth", "label", "navigation", "onClose", "open", "portalTarget", "selectorPrimaryFocus", "selectorsFloatingMenus", "size", "slug", "title", "verticalPosition", "launcherButtonRef"];
29
30
  // The block part of our conventional BEM class names (bc__E--M).
30
31
  var bc = "".concat(settings.pkg.prefix, "--tearsheet");
31
32
  var componentName = 'TearsheetShell';
@@ -58,6 +59,18 @@ var tearsheetHasCloseIcon = function tearsheetHasCloseIcon(actions, hasCloseIcon
58
59
  return hasCloseIcon !== null && hasCloseIcon !== void 0 ? hasCloseIcon : tearsheetIsPassive(actions);
59
60
  };
60
61
 
62
+ /**
63
+ * Since the Tearsheet has an H3 heading, any headings inside the Tearsheet should start at H4.
64
+ * This is a helper to do that.
65
+ */
66
+ var SectionLevel3 = function SectionLevel3(_ref) {
67
+ var children = _ref.children,
68
+ rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
69
+ return /*#__PURE__*/React.createElement(react.Section, _rollupPluginBabelHelpers.extends({
70
+ level: 3
71
+ }, rest), children);
72
+ };
73
+
61
74
  /**
62
75
  * TearSheetShell is used internally by TearSheet and TearSheetNarrow
63
76
  *
@@ -65,36 +78,36 @@ var tearsheetHasCloseIcon = function tearsheetHasCloseIcon(actions, hasCloseIcon
65
78
  *
66
79
  * See the canvas tab for the component API details.
67
80
  * */
68
- var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
69
- var actions = _ref.actions,
70
- decorator = _ref.decorator,
71
- ariaLabel = _ref.ariaLabel,
72
- children = _ref.children,
73
- className = _ref.className,
74
- _ref$closeIconDescrip = _ref.closeIconDescription,
75
- closeIconDescription = _ref$closeIconDescrip === void 0 ? 'Close' : _ref$closeIconDescrip,
76
- currentStep = _ref.currentStep,
77
- description = _ref.description,
78
- hasCloseIcon = _ref.hasCloseIcon,
79
- hasError = _ref.hasError,
80
- headerActions = _ref.headerActions,
81
- influencer = _ref.influencer,
82
- influencerPosition = _ref.influencerPosition,
83
- influencerWidth = _ref.influencerWidth,
84
- label = _ref.label,
85
- navigation = _ref.navigation,
86
- onClose = _ref.onClose,
87
- open = _ref.open,
88
- portalTargetIn = _ref.portalTarget,
89
- selectorPrimaryFocus = _ref.selectorPrimaryFocus,
90
- _ref$selectorsFloatin = _ref.selectorsFloatingMenus,
91
- selectorsFloatingMenus = _ref$selectorsFloatin === void 0 ? [] : _ref$selectorsFloatin,
92
- size = _ref.size,
93
- deprecated_slug = _ref.slug,
94
- title = _ref.title,
95
- verticalPosition = _ref.verticalPosition,
96
- launcherButtonRef = _ref.launcherButtonRef,
97
- rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
81
+ var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
82
+ var actions = _ref2.actions,
83
+ decorator = _ref2.decorator,
84
+ ariaLabel = _ref2.ariaLabel,
85
+ children = _ref2.children,
86
+ className = _ref2.className,
87
+ _ref2$closeIconDescri = _ref2.closeIconDescription,
88
+ closeIconDescription = _ref2$closeIconDescri === void 0 ? 'Close' : _ref2$closeIconDescri,
89
+ currentStep = _ref2.currentStep,
90
+ description = _ref2.description,
91
+ hasCloseIcon = _ref2.hasCloseIcon,
92
+ hasError = _ref2.hasError,
93
+ headerActions = _ref2.headerActions,
94
+ influencer = _ref2.influencer,
95
+ influencerPosition = _ref2.influencerPosition,
96
+ influencerWidth = _ref2.influencerWidth,
97
+ label = _ref2.label,
98
+ navigation = _ref2.navigation,
99
+ onClose = _ref2.onClose,
100
+ open = _ref2.open,
101
+ portalTargetIn = _ref2.portalTarget,
102
+ selectorPrimaryFocus = _ref2.selectorPrimaryFocus,
103
+ _ref2$selectorsFloati = _ref2.selectorsFloatingMenus,
104
+ selectorsFloatingMenus = _ref2$selectorsFloati === void 0 ? [] : _ref2$selectorsFloati,
105
+ size = _ref2.size,
106
+ deprecated_slug = _ref2.slug,
107
+ title = _ref2.title,
108
+ verticalPosition = _ref2.verticalPosition,
109
+ launcherButtonRef = _ref2.launcherButtonRef,
110
+ rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref2, _excluded2);
98
111
  var carbonPrefix = react.usePrefix();
99
112
  var bcModalHeader = "".concat(carbonPrefix, "--modal-header");
100
113
  var renderPortalUse = usePortalTarget.usePortalTarget(portalTargetIn);
@@ -106,9 +119,9 @@ var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
106
119
  width = _useResizeObserver.width;
107
120
  var prevOpen = usePreviousValue.usePreviousValue(open);
108
121
  var _useFocus = useFocus.useFocus(modalRef, selectorPrimaryFocus),
109
- firstElement = _useFocus.firstElement,
110
- keyDownListener = _useFocus.keyDownListener;
111
- var modalRefValue = modalRef.current;
122
+ keyDownListener = _useFocus.keyDownListener,
123
+ claimFocus = _useFocus.claimFocus;
124
+ modalRef.current;
112
125
  var descriptionRef = React.useRef(null);
113
126
  var isOverflowing = checkForOverflow.checkHeightOverflow(descriptionRef.current);
114
127
  var descriptionContent = /*#__PURE__*/React.createElement("span", {
@@ -144,18 +157,32 @@ var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
144
157
  setPosition(newPosition);
145
158
  }
146
159
  React.useEffect(function () {
147
- if (open && position === depth) {
148
- // Focusing the first element or selectorPrimaryFocus element
149
- useFocus.claimFocus(firstElement, modalRef, selectorPrimaryFocus);
160
+ if (open) {
161
+ claimFocus();
150
162
  }
151
- }, [currentStep, depth, firstElement, modalRef, modalRefValue, open, position, selectorPrimaryFocus, hasError]);
163
+ }, [open, currentStep, effectiveHasCloseIcon, claimFocus]);
152
164
  React.useEffect(function () {
153
- if (prevOpen && !open && launcherButtonRef) {
165
+ if (prevOpen && !open && launcherButtonRef !== null && launcherButtonRef !== void 0 && launcherButtonRef.current) {
154
166
  setTimeout(function () {
155
- launcherButtonRef.current.focus();
167
+ launcherButtonRef === null || launcherButtonRef === void 0 || launcherButtonRef.current.focus();
156
168
  }, 0);
157
169
  }
158
- }, [launcherButtonRef, open, prevOpen]);
170
+ }, [open, prevOpen, launcherButtonRef]);
171
+ React.useEffect(function () {
172
+ requestAnimationFrame(function () {
173
+ var _modalRef$current;
174
+ if (open && depth === position && !(modalRef !== null && modalRef !== void 0 && (_modalRef$current = modalRef.current) !== null && _modalRef$current !== void 0 && _modalRef$current.contains(document.activeElement))) {
175
+ claimFocus();
176
+ }
177
+ });
178
+ // eslint-disable-next-line react-hooks/exhaustive-deps
179
+ }, [claimFocus, depth, modalRef, position]);
180
+ React.useEffect(function () {
181
+ var _modalRef$current2;
182
+ if (hasError && !(modalRef !== null && modalRef !== void 0 && (_modalRef$current2 = modalRef.current) !== null && _modalRef$current2 !== void 0 && _modalRef$current2.contains(document.activeElement))) {
183
+ claimFocus();
184
+ }
185
+ }, [claimFocus, hasError, modalRef]);
159
186
  React.useEffect(function () {
160
187
  var notify = function notify() {
161
188
  return stack.all.forEach(function (handler) {
@@ -205,10 +232,10 @@ var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
205
232
  return _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "--".concat(bc, "--stacking-scale-factor-single"), (width - 32) / width), "--".concat(bc, "--stacking-scale-factor-double"), (width - 64) / width);
206
233
  };
207
234
  if (modalRef.current) {
208
- Object.entries(setScaleValues()).map(function (_ref4) {
209
- var _ref5 = _rollupPluginBabelHelpers.slicedToArray(_ref4, 2),
210
- key = _ref5[0],
211
- value = _ref5[1];
235
+ Object.entries(setScaleValues()).map(function (_ref5) {
236
+ var _ref6 = _rollupPluginBabelHelpers.slicedToArray(_ref5, 2),
237
+ key = _ref6[0],
238
+ value = _ref6[1];
212
239
  modalRef.current.style.setProperty(key, String(value));
213
240
  });
214
241
  }
@@ -272,7 +299,8 @@ var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
272
299
  className: "".concat(carbonPrefix, "--modal-content ").concat(bc, "__body")
273
300
  }, /*#__PURE__*/React.createElement(Wrap.Wrap, {
274
301
  className: cx(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(bc, "__influencer"), true), "".concat(bc, "__influencer--wide"), influencerWidth === 'wide')),
275
- neverRender: influencerPosition === 'right'
302
+ neverRender: influencerPosition === 'right',
303
+ element: SectionLevel3
276
304
  }, influencer), /*#__PURE__*/React.createElement(Wrap.Wrap, {
277
305
  className: "".concat(bc, "__right")
278
306
  }, /*#__PURE__*/React.createElement(Wrap.Wrap, {
@@ -281,10 +309,12 @@ var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
281
309
  }, /*#__PURE__*/React.createElement(Wrap.Wrap, {
282
310
  className: "".concat(bc, "__content"),
283
311
  alwaysRender: !!(influencer && influencerPosition === 'right'),
284
- tabIndex: -1
312
+ tabIndex: -1,
313
+ element: SectionLevel3
285
314
  }, children), /*#__PURE__*/React.createElement(Wrap.Wrap, {
286
315
  className: cx(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(bc, "__influencer"), true), "".concat(bc, "__influencer--wide"), influencerWidth === 'wide')),
287
- neverRender: influencerPosition !== 'right'
316
+ neverRender: influencerPosition !== 'right',
317
+ element: SectionLevel3
288
318
  }, influencer)), includeActions && /*#__PURE__*/React.createElement(Wrap.Wrap, {
289
319
  className: "".concat(bc, "__button-container")
290
320
  }, /*#__PURE__*/React.createElement(ActionSet.ActionSet, {
@@ -11,5 +11,5 @@ export function useFocus(modalRef: any, selectorPrimaryFocus: any): {
11
11
  all: any;
12
12
  specified: any;
13
13
  };
14
+ claimFocus: () => void;
14
15
  };
15
- export function claimFocus(firstElement: any, modalRef: any, selectorPrimaryFocus?: string | undefined): void;
@@ -17,7 +17,7 @@ var getSpecificElement = function getSpecificElement(parentEl, elementId) {
17
17
  return elementId && !(element !== null && element !== void 0 && element.disabled) ? element : null;
18
18
  };
19
19
  var useFocus = function useFocus(modalRef, selectorPrimaryFocus) {
20
- var _getFocusable2, _getFocusable3, _getFocusable4, _getFocusable5;
20
+ var _getFocusable3, _getFocusable4, _getFocusable5, _getFocusable6;
21
21
  var carbonPrefix = react.usePrefix();
22
22
  var tearsheetBaseClass = "".concat(settings.pkg.prefix, "--tearsheet");
23
23
  var sidePanelBaseClass = "".concat(settings.pkg.prefix, "--side-panel");
@@ -92,40 +92,31 @@ var useFocus = function useFocus(modalRef, selectorPrimaryFocus) {
92
92
  return _ref.apply(this, arguments);
93
93
  };
94
94
  }();
95
+ var claimFocus = React.useCallback(function () {
96
+ var _window2;
97
+ var _getFocusable2 = getFocusable(),
98
+ first = _getFocusable2.first,
99
+ specified = _getFocusable2.specified;
100
+ if (specified && ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.getComputedStyle(specified)) === null || _window2 === void 0 ? void 0 : _window2.display) !== 'none' && (specified === null || specified === void 0 ? void 0 : specified.tabIndex) !== -1) {
101
+ setTimeout(function () {
102
+ return specified.focus();
103
+ }, 0);
104
+ } else {
105
+ setTimeout(function () {
106
+ return first === null || first === void 0 ? void 0 : first.focus();
107
+ }, 0);
108
+ }
109
+ }, [getFocusable]);
95
110
  return {
96
- firstElement: (_getFocusable2 = getFocusable()) === null || _getFocusable2 === void 0 ? void 0 : _getFocusable2.first,
97
- lastElement: (_getFocusable3 = getFocusable()) === null || _getFocusable3 === void 0 ? void 0 : _getFocusable3.last,
98
- allElements: (_getFocusable4 = getFocusable()) === null || _getFocusable4 === void 0 ? void 0 : _getFocusable4.all,
99
- specifiedElement: (_getFocusable5 = getFocusable()) === null || _getFocusable5 === void 0 ? void 0 : _getFocusable5.specified,
111
+ firstElement: (_getFocusable3 = getFocusable()) === null || _getFocusable3 === void 0 ? void 0 : _getFocusable3.first,
112
+ lastElement: (_getFocusable4 = getFocusable()) === null || _getFocusable4 === void 0 ? void 0 : _getFocusable4.last,
113
+ allElements: (_getFocusable5 = getFocusable()) === null || _getFocusable5 === void 0 ? void 0 : _getFocusable5.all,
114
+ specifiedElement: (_getFocusable6 = getFocusable()) === null || _getFocusable6 === void 0 ? void 0 : _getFocusable6.specified,
100
115
  keyDownListener: handleKeyDown,
101
- getFocusable: getFocusable
116
+ getFocusable: getFocusable,
117
+ claimFocus: claimFocus
102
118
  };
103
119
  };
104
120
 
105
- /**
106
- *
107
- * @param {*} firstElement
108
- * @param {*} modalRef
109
- * @param {string | undefined} selectorPrimaryFocus
110
- */
111
- var claimFocus = function claimFocus(firstElement, modalRef) {
112
- var _window2, _specifiedEl;
113
- var selectorPrimaryFocus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
114
- var specifiedEl;
115
- if (selectorPrimaryFocus) {
116
- specifiedEl = getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus);
117
- }
118
- if (specifiedEl && ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.getComputedStyle(specifiedEl)) === null || _window2 === void 0 ? void 0 : _window2.display) !== 'none' && ((_specifiedEl = specifiedEl) === null || _specifiedEl === void 0 ? void 0 : _specifiedEl.tabIndex) !== -1) {
119
- setTimeout(function () {
120
- return specifiedEl.focus();
121
- }, 0);
122
- } else {
123
- setTimeout(function () {
124
- return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
125
- }, 0);
126
- }
127
- };
128
-
129
- exports.claimFocus = claimFocus;
130
121
  exports.getSpecificElement = getSpecificElement;
131
122
  exports.useFocus = useFocus;
@@ -10,7 +10,7 @@
10
10
  Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
12
  var _rollupPluginBabelHelpers = require('../../../../_virtual/_rollupPluginBabelHelpers.js');
13
- var index = require('../../icon-helpers/es/index.js');
13
+ var index = require('../node_modules/@carbon/icon-helpers/es/index.js');
14
14
  var index$1 = require('../../../../_virtual/index.js');
15
15
  var React = require('react');
16
16
 
@@ -7,7 +7,7 @@
7
7
 
8
8
  'use strict';
9
9
 
10
- var _rollupPluginBabelHelpers = require('../../../../_virtual/_rollupPluginBabelHelpers.js');
10
+ var _rollupPluginBabelHelpers = require('../../../../../../../_virtual/_rollupPluginBabelHelpers.js');
11
11
 
12
12
  function _defineProperty(e, r, t) {
13
13
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.63.0",
4
+ "version": "2.64.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -53,11 +53,11 @@
53
53
  "telemetry-config": "ibmtelemetry-config generate --id 495342db-5046-4ecf-85ea-9ffceb6f8cdf --endpoint https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.cloud/v1/metrics --files ./src/components/**/*.(tsx|js|jsx)",
54
54
  "test": "jest --colors",
55
55
  "//upgrade-dependencies": "# don't upgrade carbon (done globally), react/react-dom (explicit range peer dependency), chalk (issue #1596)",
56
- "upgrade-dependencies": "npm-check-updates -u --dep dev,peer,prod --color --reject '/(carbon|^react$|^react-dom$|^chalk$|^namor|^framer-motion)/'"
56
+ "upgrade-dependencies": "npm-check-updates -u --dep dev,peer,prod --color --reject '/(carbon|^react$|^react-dom$|^chalk$|^namor)/'"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@babel/cli": "^7.26.4",
60
- "@babel/core": "^7.26.9",
60
+ "@babel/core": "^7.26.10",
61
61
  "@babel/plugin-proposal-class-properties": "^7.18.6",
62
62
  "@babel/plugin-proposal-export-default-from": "^7.25.9",
63
63
  "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
@@ -67,12 +67,12 @@
67
67
  "@babel/preset-typescript": "^7.26.0",
68
68
  "@ibm/telemetry-js-config-generator": "^2.0.1",
69
69
  "@rollup/plugin-babel": "^6.0.4",
70
- "@rollup/plugin-commonjs": "^28.0.2",
71
- "@rollup/plugin-node-resolve": "^16.0.0",
70
+ "@rollup/plugin-commonjs": "^28.0.3",
71
+ "@rollup/plugin-node-resolve": "^16.0.1",
72
72
  "@rollup/plugin-typescript": "^12.1.2",
73
73
  "@types/react-table": "^7.7.20",
74
74
  "babel-plugin-dev-expression": "^0.2.3",
75
- "babel-preset-ibm-cloud-cognitive": "^0.21.0",
75
+ "babel-preset-ibm-cloud-cognitive": "^0.22.0",
76
76
  "chalk": "^4.1.2",
77
77
  "change-case": "5.4.4",
78
78
  "classnames": "^2.5.1",
@@ -81,22 +81,22 @@
81
81
  "fs-extra": "^11.3.0",
82
82
  "glob": "^11.0.1",
83
83
  "jest": "^29.7.0",
84
- "jest-config-ibm-cloud-cognitive": "^1.22.0",
84
+ "jest-config-ibm-cloud-cognitive": "^1.23.0",
85
85
  "jest-environment-jsdom": "^29.7.0",
86
86
  "namor": "^1.1.2",
87
87
  "npm-check-updates": "^17.1.15",
88
88
  "npm-run-all": "^4.1.5",
89
89
  "rimraf": "^6.0.1",
90
- "rollup": "^4.34.8",
90
+ "rollup": "^4.35.0",
91
91
  "rollup-plugin-strip-banner": "^3.1.0",
92
92
  "sass": "^1.85.1",
93
93
  "typescript-config-carbon": "^0.3.0",
94
94
  "yargs": "^17.7.2"
95
95
  },
96
96
  "dependencies": {
97
- "@babel/runtime": "^7.26.9",
97
+ "@babel/runtime": "^7.26.10",
98
98
  "@carbon/feature-flags": "^0.24.0",
99
- "@carbon/ibm-products-styles": "^2.59.0",
99
+ "@carbon/ibm-products-styles": "^2.60.0",
100
100
  "@carbon/telemetry": "^0.1.0",
101
101
  "@carbon/utilities": "^0.4.0",
102
102
  "@dnd-kit/core": "^6.3.1",
@@ -104,7 +104,6 @@
104
104
  "@dnd-kit/sortable": "^10.0.0",
105
105
  "@dnd-kit/utilities": "^3.2.2",
106
106
  "@ibm/telemetry-js": "^1.9.1",
107
- "framer-motion": "^6.5.1 < 7",
108
107
  "react-table": "^7.8.0",
109
108
  "react-window": "^1.8.11"
110
109
  },
@@ -118,5 +117,5 @@
118
117
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0",
119
118
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0"
120
119
  },
121
- "gitHead": "5e391143783f07e648878658b2895f160395fe93"
120
+ "gitHead": "cc3ffcb1d51b9f3d99550cb9768deb8bc22eab5e"
122
121
  }
package/telemetry.yml CHANGED
@@ -230,6 +230,7 @@ collect:
230
230
  - onContextMenuValue
231
231
  - onDataUpdate
232
232
  - onFocus
233
+ - onKeyDown
233
234
  - onMount
234
235
  - onMouseEnter
235
236
  - onMouseLeave
@@ -504,7 +505,6 @@ collect:
504
505
  - componentName
505
506
  # Card
506
507
  - getStarted
507
- - onKeyDown
508
508
  # CardFooter
509
509
  - hasButton
510
510
  # CardHeader