Releases: iTwin/iTwinUI
@itwin/[email protected]
Patch Changes
- #2163: Fixed an issue in virtualized
Table
where horizontal scroll was broken.
@itwin/[email protected]
@itwin/[email protected]
@itwin/[email protected]
Minor Changes
-
#2106: All internal CSS class prefixes have been changed to prevent style conflicts across minor versions.
- While this is not considered a breaking change according to our support policy, this change might affect you if you ignore our pleas to not rely on these internal class names. The recommendation is to pass your own custom
className
through props.
- While this is not considered a breaking change according to our support policy, this change might affect you if you ignore our pleas to not rely on these internal class names. The recommendation is to pass your own custom
-
#2131: Development-only warnings will now be properly excluded from the production build. This is done using a separate
"development"
entrypoint listed inpackage.json#exports
. -
#2135: Changed the column manager from a
DropdownMenu
to aPopover
to fix invalid markup and accessibility issues. -
Added dependency on
@tanstack/react-virtual
to replace the custom virtual-scroll implementation. This affects theenableVirtualization
prop inComboBox
,Table
, andTree
.-
#2061: Virtualized
ComboBox
now correctly supports dynamic sizing, e.g. when options both with and withoutsubLabel
are present. -
#2092: Virtualized
Table
has been improved so that scrolling no longer jumps when rows are scrolled past. -
#2139: Virtualized
Tree
no longer requires a wrapping scrollable element, since the tree itself is scrollable now.Diff
- <div style={{overflow: 'auto', height: 'min(400px, 90vh)'}}> <Tree enableVirtualization + style={{height: 'min(400px, 90vh)'}} /> - </div>
-
Patch Changes
- #2139: Added
overflow: auto
toTree
component to provide more consistent styling across components. - #2137: Console warnings will now be displayed during development when multiple versions of iTwinUI are detected.
- #2145: Fixed an issue where the
Overlay
component was causing bundler warnings about a non-analyzable expression used in a dependency. - #2135: The
Table
column manager button's open state no longer has theButton
's blue active color. - #2142: Added
displayName
s to all components that were previously missing them. - #2141:
displayName
s have been eliminated from the production build, so they only show up during development. - #2135:
ActionColumn
'sdropdownMenuProps
no longer exposes the unnecessarymatchWidth
prop.
@itwin/[email protected]
Patch Changes
- #2127: Fixed an issue in
Dialog
andModal
, where long titles were not wrapping properly.
@itwin/[email protected]
Patch Changes
- #2122: The new JSX transform added in v3.12.0 has been reverted, because React 17 doesn't properly support it.
- #2124: Fixed a CommonJS-related error where an internal variable was accidentally trying to override the
module
object.
@itwin/[email protected]
Minor Changes
-
#2048: Added a new
defaultValue
prop toComboBox
. This is useful when you don't want to maintain your own state but still want to control the initialvalue
. -
#2076: Added open popover styling to
Button
(andIconButton
). When an associatedPopover
orDropdownMenu
is open, the button will now get a subtle visual indication. -
#2111: Added the ability to pass arbitrary DOM props to
TreeNode
. -
#2107: A new
meta
object is exported, containing meta information about the package.import { meta } from '@itwin/itwinui-react'; console.log(meta.version, meta.module); // 3.12.0, ESM
-
#2048: Fixed a bug in
ComboBox
where the controlled state (value
prop) was not given priority over the uncontrolled state. As a result:- Setting the default value using
value={myDefaultValue}
will no longer work. Instead, use the newdefaultValue
prop. - Resetting the value using
value={null}
will now force the ComboBox to be in controlled mode. If you want to reset the value but be in uncontrolled mode, then usevalue={undefined}
, or better yet, reset the component state using key.
- Setting the default value using
-
#2101: Passing an
IconButton
toTile.QuickAction
andTile.TypeIndicator
is now deprecated. UseTile.IconButton
instead. -
#2021: In menu-like components (
DropdownMenu
,SplitButton
,Table
's column manager), using the mouse to operate the menu will no longer move focus like it does when using the keyboard. -
#2021:
MenuItem
'stabIndex
now is0
when it's selected and-1
when it's not. Additionally,MenuItem
passed inside most menu type components (e.g.DropdownMenu
,SplitButton
,Table
's column manager, etc.) have rovingtabIndex
. -
Dependency changes:
- #2116: Bumped the minimum required version of
@floating-ui/react
to0.26.18
. - #2100: Replaced dependency on
tslib
with@swc/helpers
. This is used mainly by the CommonJS build for interop reasons.
- #2116: Bumped the minimum required version of
Patch Changes
- #2117: Fixed an error in
Select
caused by updating@floating-ui/react
to0.26.18
. - #2101: Fixed a small visual bug in
Tile.IconButton
where the hover state wasn't working. - #2021:
MenuItem
now renders as a<button>
instead of a<div>
. - #2113: Fixed an issue where a portaled
Popover
was sometimes showing up in the wrong window during the first render. - #2048: Fixed a bug in
ComboBox
where theisSelected
passed toitemRenderer
was alwaysfalse
whenevermultiple
wastrue
.
Build Output Changes
- #2102: The build output is now generated using SWC and uses the new JSX transform instead of
React.createElement
. - #2118: Type declarations are now generated using TypeScript 5.5 with
"module": "NodeNext"
. - #2118: The
package.json#exports
fallback for/react-table
types is now handled usingtypesVersions
. - #2100: The build output is now (again) formatted using
prettier
for easier debugging. - #2100: All code comments have been removed from the build output.
@itwin/[email protected]
Patch Changes
- #2098: Fixed a regression in
Table
component whereselectSubRows
prop being set tofalse
would cause parent rows to become uncheckable.
@itwin/[email protected]
Patch Changes
- #2084: Fixed an issue where a portaled
ThemeProvider
would try to re-render infinitely. - #2083: Removed the accidentally added no-op
loading
prop inIconButton
. - #2083: Fixed a visual bug where elements like
startIcon
andendIcon
inside theButton
(or its derivatives) were not hidden when the button was in a loading state. Now,loading={true}
onButton
hides all its children except theProgressRadial
.
@itwin/[email protected]
Patch Changes
- #2074: Fixed indentation of
Tree
nodes to be aligned regardless of the presence of expander button. - #2064: Adjusted
Dialog
andExpandableBlock
to round some CSStransform
values. This helps avoid blurry text on Windows in some cases. - #2055: Fixed an issue in
Breadcrumbs.Item
where using a custom link component (e.g.as={Link}
for client side routing) would break the CSS styling. - #2071: Fixed a minor issue in
ComboBox
where alabel
attribute was accidentally being added to options in the DOM. - #2068: Fixed
EditableCell
so that it correctly mergesclassName
andstyle
props with the corresponding internal props. - #2073: Fixed CommonJS types exports for the
/react-table
entrypoint. - #2055: Fixed a regression from v3.10.0 where non-button and non-link
Breadcrumbs.Item
s were getting a hover styling as if it were a button.