@carbon/ibm-products 2.43.2-canary.90 → 2.43.2-canary.92

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.
@@ -167,10 +167,13 @@ var TearsheetShell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
167
167
  useEffect(function () {
168
168
  if (open && position !== depth) {
169
169
  setTimeout(function () {
170
+ if (selectorPrimaryFocus) {
171
+ return specifiedElement === null || specifiedElement === void 0 ? void 0 : specifiedElement.focus();
172
+ }
170
173
  firstElement === null || firstElement === void 0 || firstElement.focus();
171
174
  }, 0);
172
175
  }
173
- }, [position, depth, firstElement, open]);
176
+ }, [position, depth, firstElement, open, specifiedElement, selectorPrimaryFocus]);
174
177
  useEffect(function () {
175
178
  var notify = function notify() {
176
179
  return stack.all.forEach(function (handler) {
@@ -176,10 +176,13 @@ var TearsheetShell = /*#__PURE__*/React__default["default"].forwardRef(function
176
176
  React.useEffect(function () {
177
177
  if (open && position !== depth) {
178
178
  setTimeout(function () {
179
+ if (selectorPrimaryFocus) {
180
+ return specifiedElement === null || specifiedElement === void 0 ? void 0 : specifiedElement.focus();
181
+ }
179
182
  firstElement === null || firstElement === void 0 || firstElement.focus();
180
183
  }, 0);
181
184
  }
182
- }, [position, depth, firstElement, open]);
185
+ }, [position, depth, firstElement, open, specifiedElement, selectorPrimaryFocus]);
183
186
  React.useEffect(function () {
184
187
  var notify = function notify() {
185
188
  return stack.all.forEach(function (handler) {
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.43.2-canary.90+24db46d00",
4
+ "version": "2.43.2-canary.92+ef7c9b9a2",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -81,7 +81,7 @@
81
81
  "fs-extra": "^11.2.0",
82
82
  "glob": "^10.3.10",
83
83
  "jest": "^29.7.0",
84
- "jest-config-ibm-cloud-cognitive": "^1.4.0",
84
+ "jest-config-ibm-cloud-cognitive": "^1.5.0-rc.0",
85
85
  "jest-environment-jsdom": "^29.7.0",
86
86
  "namor": "^1.1.2",
87
87
  "npm-check-updates": "^16.14.12",
@@ -96,7 +96,7 @@
96
96
  "dependencies": {
97
97
  "@babel/runtime": "^7.23.9",
98
98
  "@carbon/feature-flags": "^0.20.0",
99
- "@carbon/ibm-products-styles": "^2.41.0",
99
+ "@carbon/ibm-products-styles": "^2.42.0-rc.0",
100
100
  "@carbon/telemetry": "^0.1.0",
101
101
  "@dnd-kit/core": "^6.0.8",
102
102
  "@dnd-kit/modifiers": "^7.0.0",
@@ -120,5 +120,5 @@
120
120
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
121
121
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
122
122
  },
123
- "gitHead": "24db46d006d6d24f738daaf64ab65cd33b712e33"
123
+ "gitHead": "ef7c9b9a234428770892220759a594f66b06a9d8"
124
124
  }