@itwin/itwinui-react 3.16.4 → 3.16.5

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.16.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2402](https://github.com/iTwin/iTwinUI/pull/2402): Fixed an issue in `Tabs` where it wasn't recalculating the active stripe position when a new tab was asynchronously added to the tablist.
8
+
3
9
  ## 3.16.4
4
10
 
5
11
  ### Patch Changes
@@ -176,7 +176,15 @@ const Tab = _react.forwardRef((props, forwardedRef) => {
176
176
  });
177
177
  };
178
178
  if ('default' !== type && isActive) updateStripe();
179
- }, [type, orientation, isActive, tabsWidth, setStripeProperties, tablistRef]);
179
+ }, [
180
+ type,
181
+ orientation,
182
+ isActive,
183
+ tabsWidth,
184
+ setStripeProperties,
185
+ tablistRef,
186
+ value,
187
+ ]);
180
188
  let onKeyDown = (event) => {
181
189
  if (event.altKey) return;
182
190
  let allTabs = Array.from(event.currentTarget.parentElement?.children ?? []);
package/DEV-cjs/styles.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3
- const e = '3.16.4';
3
+ const e = '3.16.5';
4
4
  const u = new Proxy(
5
5
  {},
6
6
  {
@@ -162,7 +162,15 @@ let Tab = React.forwardRef((props, forwardedRef) => {
162
162
  });
163
163
  };
164
164
  if ('default' !== type && isActive) updateStripe();
165
- }, [type, orientation, isActive, tabsWidth, setStripeProperties, tablistRef]);
165
+ }, [
166
+ type,
167
+ orientation,
168
+ isActive,
169
+ tabsWidth,
170
+ setStripeProperties,
171
+ tablistRef,
172
+ value,
173
+ ]);
166
174
  let onKeyDown = (event) => {
167
175
  if (event.altKey) return;
168
176
  let allTabs = Array.from(event.currentTarget.parentElement?.children ?? []);
package/DEV-esm/styles.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = '3.16.4';
1
+ const t = '3.16.5';
2
2
  const u = new Proxy(
3
3
  {},
4
4
  {
@@ -174,7 +174,15 @@ const Tab = _react.forwardRef((props, forwardedRef) => {
174
174
  });
175
175
  };
176
176
  if ('default' !== type && isActive) updateStripe();
177
- }, [type, orientation, isActive, tabsWidth, setStripeProperties, tablistRef]);
177
+ }, [
178
+ type,
179
+ orientation,
180
+ isActive,
181
+ tabsWidth,
182
+ setStripeProperties,
183
+ tablistRef,
184
+ value,
185
+ ]);
178
186
  let onKeyDown = (event) => {
179
187
  if (event.altKey) return;
180
188
  let allTabs = Array.from(event.currentTarget.parentElement?.children ?? []);
package/cjs/styles.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3
- const e = '3.16.4';
3
+ const e = '3.16.5';
4
4
  const u = new Proxy(
5
5
  {},
6
6
  {
@@ -160,7 +160,15 @@ let Tab = React.forwardRef((props, forwardedRef) => {
160
160
  });
161
161
  };
162
162
  if ('default' !== type && isActive) updateStripe();
163
- }, [type, orientation, isActive, tabsWidth, setStripeProperties, tablistRef]);
163
+ }, [
164
+ type,
165
+ orientation,
166
+ isActive,
167
+ tabsWidth,
168
+ setStripeProperties,
169
+ tablistRef,
170
+ value,
171
+ ]);
164
172
  let onKeyDown = (event) => {
165
173
  if (event.altKey) return;
166
174
  let allTabs = Array.from(event.currentTarget.parentElement?.children ?? []);
package/esm/styles.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = '3.16.4';
1
+ const t = '3.16.5';
2
2
  const u = new Proxy(
3
3
  {},
4
4
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/itwinui-react",
3
- "version": "3.16.4",
3
+ "version": "3.16.5",
4
4
  "author": "Bentley Systems",
5
5
  "license": "MIT",
6
6
  "type": "module",