@itwin/itwinui-css
Advanced tools
Comparing version 2.0.0-dev.13 to 2.0.0
578
CHANGELOG.md
# Changelog | ||
## 2.0.0-dev.13 | ||
## 2.0.0 | ||
### Major Changes | ||
Welcome to the v2 release of `@itwin/itwinui-css`. 🎉 | ||
- [#1626](https://github.com/iTwin/iTwinUI/pull/1626): Improved carousel accessibility and changed the markup so that the dots are present before the slides. | ||
- [#1469](https://github.com/iTwin/iTwinUI/pull/1469): Replaced `iui-slider-vertical` class modifier with `data-iui-orientation`. | ||
- `iui-slider-rail` class is now `::before` pseudo element of `iui-slider`. | ||
This release includes a few breaking changes which have been listed below. For more details, see the [migration guide](https://github.com/iTwin/iTwinUI/wiki/iTwinUI-css-v2-migration-guide). | ||
### Patch Changes | ||
- [#1632](https://github.com/iTwin/iTwinUI/pull/1632): Adjusted gap between adjacent icons in searchbox. | ||
## 2.0.0-dev.12 | ||
### Major Changes | ||
- [#1548](https://github.com/iTwin/iTwinUI/pull/1548): Using `aria-selected` instead of `iui-active` in Tabs to set active styling. | ||
- [#1446](https://github.com/iTwin/iTwinUI/pull/1446): `iui-avatar` has been refactored to be a single `<span>`, and the status is now applied using the `data-iui-status` attribute. The colors have been updated to pass AAA contrast ratio. | ||
- [#1548](https://github.com/iTwin/iTwinUI/pull/1548): Combined tabs stripe variables: `--iui-stripe-left` and `--iui-stripe-top` into `--iui-tabs-stripe-position`; `--iui-stripe-width` and `--iui-stripe-height` into `--iui-tabs-stripe-size`. | ||
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): `iui-transfer-list-listbox-label` and `iui-input-container` classes were removed. | ||
- [#1255](https://github.com/iTwin/iTwinUI/pull/1255): `iui-folder` is updated to use `display: grid`. `iui-tile-name` is now moved outside of `iui-tile-content` for folder variant. | ||
- [#1420](https://github.com/iTwin/iTwinUI/pull/1420): `<div class="iui-radio-tile-content">` has been removed from radio-tile. Also, `data-iui-disabled` attribute must be set on the radio-tile for browsers that don't support `:has` (firefox). | ||
- [#1573](https://github.com/iTwin/iTwinUI/pull/1573): Removed background from color-picker, date-picker/time-picker, and column-filter. Use `iui-popover-surface` class to add it back. | ||
- [#1489](https://github.com/iTwin/iTwinUI/pull/1489): `--iui-color-dot-inset` has been split into `--iui-color-dot-inset-block` and `--iui-color-dot-inset-inline`. | ||
- [#1369](https://github.com/iTwin/iTwinUI/pull/1369): The `iui-breadcrumbs-item-overrides` class name has been removed. Breadcrumbs items now use the `iui-breadcrumbs-content` class name. | ||
- [#1577](https://github.com/iTwin/iTwinUI/pull/1577): `iui-scroll` modifier is no longer needed on `iui-menu`. | ||
- [#1626](https://github.com/iTwin/iTwinUI/pull/1626): Improved carousel accessibility and changed the markup so that the dots are present before the slides. | ||
- [#1529](https://github.com/iTwin/iTwinUI/pull/1529): Removed location-marker component. | ||
- [#1469](https://github.com/iTwin/iTwinUI/pull/1469): Replaced `iui-slider-vertical` class modifier with `data-iui-orientation`. | ||
- `iui-slider-rail` class is now `::before` pseudo element of `iui-slider`. | ||
- [#1322](https://github.com/iTwin/iTwinUI/pull/1322): Removed input-container code from `utils.css` in favor of `input-container.css`. | ||
- [#1354](https://github.com/iTwin/iTwinUI/pull/1354): Renamed the following expandable-block classes: `iui-header`, `iui-icon`, `iui-title`, `iui-caption` to be scoped to expandable-block. | ||
- Updated the following modifier classes to be data attributes: `iui-expanded`, `iui-small`, `iui-borderless`. | ||
- [#1370](https://github.com/iTwin/iTwinUI/pull/1370): `iui-progress-indicator-linear` has been refactored to be a single `<div>`. Size, status, indeterminate variant, animation, etc are now specified using data attributes. | ||
- [#1523](https://github.com/iTwin/iTwinUI/pull/1523): Removed `iui-tooltip-container` and `iui-tooltip-visible` classes. The display is now toggled using the `hidden` HTML attribute, and the positioning should be managed using custom JS/CSS. | ||
- [#1302](https://github.com/iTwin/iTwinUI/pull/1302): `border-box` will now be set for _all_ elements under `iui-root`. | ||
- [#1610](https://github.com/iTwin/iTwinUI/pull/1610): Replaced `--iui-surface-border-color` with `--iui-surface-border` for full customization of border. Also removed `--iui-surface-border-radius` and `--iui-surface-background-color`. | ||
- [#1328](https://github.com/iTwin/iTwinUI/pull/1328): `iui-progress-overlay` has been renamed to `iui-overlay` and moved to `overlay.scss`. | ||
- [#1295](https://github.com/iTwin/iTwinUI/pull/1295): `iui-menu-item` and `iui-menu-description` classes were removed. | ||
- [#1548](https://github.com/iTwin/iTwinUI/pull/1548): `data-iui-scroll-placement` attributes in Tabs were removed. Updated tabs start and end masks to be applied on scroll animation. | ||
- [#1356](https://github.com/iTwin/iTwinUI/pull/1356): `iui-progress-radial` has been refactored to be a single `<div>` instead of using a nested svg. Size and status have been moved to data attributes. Also it is recommended to explicitly set `size` when using in other components. | ||
- [#1556](https://github.com/iTwin/iTwinUI/pull/1556): Items inside button-group no longer need a wrapping `<div>`. | ||
- [#1304](https://github.com/iTwin/iTwinUI/pull/1304): Instead of cloning passed icons to set classes on them, the classes will now be set on a wrapping element. Affected components: `Header`, `Select`, `MenuItem`, `RadioTile`, `Tabs`, `Tile`, `ToggleSwitch`, `TreeNode`, `InputContainer` (and all input variants). | ||
- [#1559](https://github.com/iTwin/iTwinUI/pull/1559): Changed `iui-button-group-vertical` class to `iui-button-group` with attribute `data-iui-orientation="vertical"`. | ||
- [#1548](https://github.com/iTwin/iTwinUI/pull/1548): The `iui-tabs` element has changed from `<ul>` to `<div>`. `iui-tabs` children are no longer wrapped in an `<li>` element. | ||
- [#1247](https://github.com/iTwin/iTwinUI/pull/1247): Replaced the `iui-alert-icon`, `iui-alert-button`, and `iui-alert-button-icon` class names with `iui-svg-icon`, `iui-button`, and `iui-button-icon` respectively. | ||
- [#1269](https://github.com/iTwin/iTwinUI/pull/1269): All dialog variants have `flex` applied by default. This means the content should be wrapped with `Dialog.Content` or `ModalContent` for optimal layout. | ||
- [#1548](https://github.com/iTwin/iTwinUI/pull/1548): The `iui-tab-label` wrapper class has been removed. The `iui-tab-label` class now applies to the `<span>` which holds the tab's label. `iui-tab-description` is now a `<span>` element. | ||
- [#1270](https://github.com/iTwin/iTwinUI/pull/1270): Change `line-height` to use a unitless value. | ||
## 2.0.0-dev.11 | ||
### Major Changes | ||
- [#1610](https://github.com/iTwin/iTwinUI/pull/1610): Replaced `--iui-surface-border-color` with `--iui-surface-border` for full customization of border. Also removed `--iui-surface-border-radius` and `--iui-surface-background-color`. | ||
### Patch Changes | ||
- [#1609](https://github.com/iTwin/iTwinUI/pull/1609): Adjusted padding value for `Surface.Body`. | ||
## 2.0.0-dev.10 | ||
### Minor Changes | ||
- [#1565](https://github.com/iTwin/iTwinUI/pull/1565): Updated menu styling and added `iui-popover-surface` class for standalone popovers. | ||
## 2.0.0-dev.9 | ||
### Major Changes | ||
- [#1573](https://github.com/iTwin/iTwinUI/pull/1573): Removed background from color-picker, date-picker/time-picker, and column-filter. Use `iui-surface` class to add it back. | ||
- [#1577](https://github.com/iTwin/iTwinUI/pull/1577): `iui-scroll` modifier is no longer needed on `iui-menu`. | ||
- [#1556](https://github.com/iTwin/iTwinUI/pull/1556): Items inside button-group no longer need a wrapping `<div>`. | ||
- [#1559](https://github.com/iTwin/iTwinUI/pull/1559): Changed `iui-button-group-vertical` class to `iui-button-group` with attribute `data-iui-orientation="vertical"`. | ||
## 2.0.0-dev.8 | ||
### Major Changes | ||
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): `iui-transfer-list-listbox-label` and `iui-input-container` classes were removed. | ||
- [#1529](https://github.com/iTwin/iTwinUI/pull/1529): Removed location-marker component. | ||
- [#1523](https://github.com/iTwin/iTwinUI/pull/1523): Removed `iui-tooltip-container` and `iui-tooltip-visible` classes. The display is now toggled using the `hidden` HTML attribute, and the positioning should be managed using custom JS/CSS. | ||
### Minor Changes | ||
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added `iui-input-group-wrapper` class to allow inline labels for input groups. | ||
- [#1373](https://github.com/iTwin/iTwinUI/pull/1373): Converted all physical CSS properties to their logical equivalents. | ||
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added `iui-input-grid` class for outer input styling. | ||
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added status styling to `input` and `select`. | ||
- [#1565](https://github.com/iTwin/iTwinUI/pull/1565): Updated menu styling and added `iui-popover-surface` class for standalone popovers. | ||
- [#1073](https://github.com/iTwin/iTwinUI/pull/1073): Added new `TransferList` component which is used to move one or more items between lists. Added the following subcomponents: `TransferList.ListWrapper`, `TransferList.ListboxWrapper`, `TransferList.ListboxLabel`, `TransferList.Listbox`, `TransferList.Item`, and `TransferList.Toolbar` | ||
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added padded styling to Icon using `data-iui-padded` attribute. | ||
- [#1362](https://github.com/iTwin/iTwinUI/pull/1362): All elements under the root will now get a default focus styling matching `--iui-color-border-accent`. | ||
- [#1355](https://github.com/iTwin/iTwinUI/pull/1355): Added `iui-status-message` class to wrap StatusMessage icon and content. | ||
- [#1363](https://github.com/iTwin/iTwinUI/pull/1363): `iui-svg-icon` now supports controlling size and fill using `--iui-svg-size` and `--iui-svg-fill` custom properties. | ||
## 2.0.0-dev.7 | ||
### Major Changes | ||
- [#1446](https://github.com/iTwin/iTwinUI/pull/1446): `iui-avatar` has been refactored to be a single `<span>`, and the status is now applied using the `data-iui-status` attribute. The colors have been updated to pass AAA contrast ratio. | ||
- [#1489](https://github.com/iTwin/iTwinUI/pull/1489): `--iui-color-dot-inset` has been split into `--iui-color-dot-inset-block` and `--iui-color-dot-inset-inline`. | ||
### Patch Changes | ||
- [#1499](https://github.com/iTwin/iTwinUI/pull/1499): Removed special handling of iPhone notch in Header and SideNavigation. | ||
## 2.0.0-dev.6 | ||
### Major Changes | ||
- [#1420](https://github.com/iTwin/iTwinUI/pull/1420): `<div class="iui-radio-tile-content">` has been removed from radio-tile. Also, `data-iui-disabled` attribute must be set on the radio-tile for browsers that don't support `:has` (firefox). | ||
## 2.0.0-dev.5 | ||
### Major Changes | ||
- [#1369](https://github.com/iTwin/iTwinUI/pull/1369): The `iui-breadcrumbs-item-overrides` class name has been removed. Breadcrumbs items now use the `iui-breadcrumbs-content` class name. | ||
- [#1354](https://github.com/iTwin/iTwinUI/pull/1354): The following class names have been updated: | ||
- `iui-header` -> `iui-expandable-header` | ||
- `iui-icon` -> `iui-expandable-block-icon` | ||
- `iui-title` -> `iui-expandable-block-title` | ||
- `iui-caption` -> `iui-expandable-block-caption` | ||
The following class names have been removed and updated to be data attributes: | ||
- `iui-expanded` -> `data-iui-expanded` (boolean) | ||
- `iui-small` -> `data-iui-size` (default or small) | ||
- `iui-borderless` -> `data-iui-variant` (default or borderless) | ||
- [#1370](https://github.com/iTwin/iTwinUI/pull/1370): `iui-progress-indicator-linear` has been refactored to be a single `<div>`. Size, status, indeterminate variant, animation, etc are now specified using data attributes. | ||
- [#1328](https://github.com/iTwin/iTwinUI/pull/1328): 'iui-progress-overlay' has been renamed to 'iui-overlay' and moved to 'overlay.scss' | ||
### Minor Changes | ||
- [#1373](https://github.com/iTwin/iTwinUI/pull/1373): Converted all physical CSS properties to their logical equivalents. | ||
### Patch Changes | ||
- [#1354](https://github.com/iTwin/iTwinUI/pull/1354): Expandable block animation now uses pure css instead of javascript for transitioning. | ||
## 2.0.0-dev.4 | ||
### Major Changes | ||
- [#1255](https://github.com/iTwin/iTwinUI/pull/1255): `iui-folder` is updated to use `display: grid`. `iui-tile-name` is now moved outside of `iui-tile-content` for folder variant. | ||
- [#1356](https://github.com/iTwin/iTwinUI/pull/1356): `iui-progress-radial` has been refactored to be a single `<div>` instead of using a nested svg. Size and status have been moved to data attributes. Also it is recommended to explicitly set `size` when using in other components. | ||
### Minor Changes | ||
- [#1362](https://github.com/iTwin/iTwinUI/pull/1362): All elements under the root will now get a default focus styling matching `--iui-color-border-accent`. | ||
- [#1363](https://github.com/iTwin/iTwinUI/pull/1363): `iui-svg-icon` now supports controlling size and fill using `--iui-svg-size` and `--iui-svg-fill` custom properties. | ||
## 2.0.0-dev.3 | ||
### Patch Changes | ||
- [#1609](https://github.com/iTwin/iTwinUI/pull/1609): Adjusted padding value for `Surface.Body`. | ||
- [#1632](https://github.com/iTwin/iTwinUI/pull/1632): Adjusted gap between adjacent icons in searchbox. | ||
- [#1351](https://github.com/iTwin/iTwinUI/pull/1351): `.iui-toast-anchor` can now be applied on a `<button>`. | ||
- [#1499](https://github.com/iTwin/iTwinUI/pull/1499): Removed special handling of iPhone notch in Header and SideNavigation. | ||
## 2.0.0-dev.2 | ||
## 1.x | ||
### Major Changes | ||
- [#1247](https://github.com/iTwin/iTwinUI/pull/1247): Replaced the `iui-alert-icon`, `iui-alert-button`, and `iui-alert-button-icon` class names with `iui-svg-icon`, `iui-button`, and `iui-button-icon` respectively. | ||
### Patch Changes | ||
- [#1310](https://github.com/iTwin/iTwinUI/pull/1310): Fix vertical centering for some inputs after unitless `line-height` change. | ||
## 2.0.0-dev.1 | ||
### Major Changes | ||
- [#1322](https://github.com/iTwin/iTwinUI/pull/1322): Removed input-container code from `utils.css` in favor of `input-container.css`. | ||
- [#1302](https://github.com/iTwin/iTwinUI/pull/1302): `border-box` will now be set for _all_ elements under `iui-root`. | ||
### Minor Changes | ||
- [#1073](https://github.com/iTwin/iTwinUI/pull/1073): Added new `TransferList` component which is used to move one or more items between lists. Added the following subcomponents: `TransferList.ListWrapper`, `TransferList.ListboxWrapper`, `TransferList.ListboxLabel`, `TransferList.Listbox`, `TransferList.Item`, and `TransferList.Toolbar` | ||
## 2.0.0-dev.0 | ||
### Major Changes | ||
- [#1295](https://github.com/iTwin/iTwinUI/pull/1295): `iui-menu-item` and `iui-menu-description` classes were removed. | ||
- [#1304](https://github.com/iTwin/iTwinUI/pull/1304): Instead of cloning passed icons to set classes on them, the classes will now be set on a wrapping element. Affected components: `Header`, `Select`, `MenuItem`, `RadioTile`, `Tabs`, `ToggleSwitch`, `TreeNode`, `InputContainer` (and all input variants). | ||
- [#1269](https://github.com/iTwin/iTwinUI/pull/1269): All dialog variants have `flex` applied by default. This means the content should be wrapped with `Dialog.Content` or `ModalContent` for optimal layout. | ||
- [#1270](https://github.com/iTwin/iTwinUI/pull/1270): Change `line-height` to use a unitless value. | ||
## 1.12.6 | ||
### Patch Changes | ||
- [#1643](https://github.com/iTwin/iTwinUI/pull/1643): Fixed an issue where ProgressRadial was not respecting explicit size. | ||
## 1.12.5 | ||
### Patch Changes | ||
- [#1586](https://github.com/iTwin/iTwinUI/pull/1586): Fixed an issue with toggle-switch border styles not working in popout windows. | ||
## 1.12.4 | ||
### Patch Changes | ||
- [#1575](https://github.com/iTwin/iTwinUI/pull/1575): ProgressRadial now stays inside container when size="x-small". | ||
## 1.12.3 | ||
### Patch Changes | ||
- [#1516](https://github.com/iTwin/iTwinUI/pull/1516): Update SearchBox placeholder color to match Input. | ||
## 1.12.2 | ||
### Patch Changes | ||
- [#1485](https://github.com/iTwin/iTwinUI/pull/1485): Improved color contrast for input and select placeholder text. | ||
- [#1501](https://github.com/iTwin/iTwinUI/pull/1501): Fixed a small misalignment in Table when using sticky columns. | ||
## 1.12.1 | ||
### Patch Changes | ||
- [#1494](https://github.com/iTwin/iTwinUI/pull/1494): Updated color-picker dot so its outline adapts dynamically to the backgrounds for better contrast. | ||
## 1.12.0 | ||
### Minor Changes | ||
- [#1422](https://github.com/iTwin/iTwinUI/pull/1422): Changed `all: revert` to `all: revert-layer` so that only styles from the v1 layer are reverted, thus avoiding issues with inadvertently removing browser default styles. This rule has also been moved from `all.css` to `revert-v1.css`. | ||
## 1.11.5 | ||
### Patch Changes | ||
- [#1424](https://github.com/iTwin/iTwinUI/pull/1424): Fixed a few different resizing issues in Dialog. | ||
## 1.11.4 | ||
### Patch Changes | ||
- [#1421](https://github.com/iTwin/iTwinUI/pull/1421): Fixed an issue in Table where column reordering and editable cells were not working when v2 Table was used within a v1 app. | ||
## 1.11.3 | ||
### Patch Changes | ||
- [#1410](https://github.com/iTwin/iTwinUI/pull/1410): Fixed an issue in `Tabs` where tabs-list was becoming too tall when the tabpanel didn't have enough content inside. | ||
## 1.11.2 | ||
### Patch Changes | ||
- [#1376](https://github.com/iTwin/iTwinUI/pull/1376): Fix issue where a nested expandable block's expander icon would always display as expanded. | ||
## 1.11.1 | ||
### Patch Changes | ||
- [#1288](https://github.com/iTwin/iTwinUI/pull/1288): Fixed hover styling for SearchBox. | ||
## 1.11.0 | ||
### Minor Changes | ||
- [#863](https://github.com/iTwin/iTwinUI/pull/863): SearchBox - Add `iui-input-flex-container` class for inputs with icons and buttons within | ||
- Add `iui-searchbox` class for Searchbox | ||
- Add `iui-expandable-searchbox` class for Searchbox that can be expanded | ||
- Add `iui-search-icon` for styling icons within search | ||
- [#1060](https://github.com/iTwin/iTwinUI/pull/1060): Tabs - Added data attribute 'data-iui-overflow' - when true it adds styling for overflow tabs | ||
### Patch Changes | ||
- [#1275](https://github.com/iTwin/iTwinUI/pull/1275): Fixed an issue where `ProgressRadial` was not correctly showing when used inside a v2 boundary within a v1 page. | ||
- [#1251](https://github.com/iTwin/iTwinUI/pull/1251): Reorganized source file structure. Should have no changes in the CSS output. | ||
- [#1271](https://github.com/iTwin/iTwinUI/pull/1271): Added `color` declaration to `iui-keyboard`. | ||
- [#1257](https://github.com/iTwin/iTwinUI/pull/1257): Fixed an issue where pseudo elements inside a v2 boundary were not reverting v1 styles. | ||
## 1.10.3 | ||
### Patch Changes | ||
- [#1245](https://github.com/iTwin/iTwinUI/pull/1245): Adjusted Checkbox so that its clickable target area is 24pxx24px by default (increased from 16x16) and 32x32 when used in a Table selection column. | ||
## 1.10.2 | ||
### Patch Changes | ||
- [#1235](https://github.com/iTwin/iTwinUI/pull/1235): Changed the internal DOM structure of `LabeledInput` and `LabeledTextarea` to prefer explicit association over implicit. The `<label>` is now associated with the input using `htmlFor`/`id` and the container is a generic div. | ||
This change improves accessibility, with no API changes and no effect on visuals. | ||
## 1.10.1 | ||
### Patch Changes | ||
- [#1215](https://github.com/iTwin/iTwinUI/pull/1215): Code component when used inside an Anchor will now have correct styling. | ||
## 1.10.0 | ||
### Minor Changes | ||
- [#1106](https://github.com/iTwin/iTwinUI/pull/1106): Added new List and ListItem components. | ||
```jsx | ||
<List> | ||
<ListItem>item 1</ListItem> | ||
<ListItem>item 2</ListItem> | ||
<ListItem>item 3</ListItem> | ||
</List> | ||
``` | ||
## 1.9.0 | ||
### Minor Changes | ||
- c8f6a8dd: Add surface component with included layout for header, body, and button footer. | ||
### Patch Changes | ||
- 3ad916b2: Allows alert messages to break when words are long. | ||
- f1e0d8d6: Allows toast messages to break when words are long. | ||
## 1.8.0 | ||
### Minor Changes | ||
- 61f44293: Added new `isDateDisabled` prop to DatePicker. Accepts a function which takes a date and returns a boolean to indicate whether that date is not selectable. | ||
- 8bfd4fe9: Add predefined status variants for badge. | ||
- c581e9ed: Added a utils components `iui-link-box` and `iui-link-action` to provide better accessibility experience with actions on elements. | ||
Updated Tile focus state when `iui-link-action` is present. | ||
Usage example: | ||
```html | ||
<div class="iui-link-box"> | ||
<a class="iui-link-action" href="/new-page">Test content</a> | ||
</div> | ||
``` | ||
### Patch Changes | ||
- 01d29fc1: Fixed an issue in Firefox where the right edge of the `Table` header was misaligned with the table body. | ||
- e2f547e1: Fixed a visual glitch in Tile thumbnail when hovering. | ||
- 028d4cd7: Updated actionable tile to have a more prominent hover effect. | ||
- 775933e3: The DOM order of Tile content has changed so that the name comes before the thumbnail region. This improves accessibility without affecting visuals. | ||
- 91486634: Modals and dialogs will have improved overflow behavior on smaller screen sizes with a lot of text. | ||
- 6f99039c: Fixed an issue with stepper when the last item is active. | ||
- 17d4fffb: Omit `border-radius` on adjacent active menu items. | ||
## 1.7.0 | ||
### Minor Changes | ||
- 85af52c6: Add small size toggle switch option using `size` prop as follows: `<ToggleSwitch size='small' />` | ||
- 1b541699: Added a new FileUploadCard component which serves as a default UI for when a single file is uploaded. This can also be used as a child of FileUpload | ||
```jsx | ||
<FileUploadCard /> | ||
``` | ||
```jsx | ||
const [files, setFiles] = React.useState<File[]>([]); | ||
<FileUpload | ||
onFileDropped={(files) => { | ||
setFiles(files); | ||
}} | ||
> | ||
<FileUploadCard files={files} onFilesChange={(files) => setFiles(files)} /> | ||
</FileUpload> | ||
``` | ||
### Patch Changes | ||
- 62c4a6da: Fixed issue where checkbox / radio border appeared above `:focus` outline. | ||
## 1.6.0 | ||
### Minor Changes | ||
- 2397ee0c: All styles will now be scoped and always take preference over previous major versions (`@itwin/itwinui-react`@`1.x`). | ||
This enables incremental adoption of `@itwin/itwinui-react`@`2.x` for some parts of the app, while still using `1.x` for the rest of the app. | ||
To use this feature, make sure that all parts that use v1 are updated to `@itwin/itwinui-css@0.63.2`, and then wrap the v2 parts in `ThemeProvider`: | ||
```html | ||
<body> | ||
<!-- rest of your app (v1) --> | ||
<ThemeProvider> | ||
<!-- new UI built using v2 --> | ||
</ThemeProvider> | ||
</body> | ||
``` | ||
For packages, there is a new theme `'inherit'`. Setting this enables scoping without forcing the default light theme. When the app eventually updates to v2, it can use its own `ThemeProvider` with any theme, and the components inside your package will inherit the app's theme. | ||
```html | ||
<body> | ||
<!-- rest of the app (maybe v1) --> | ||
<!-- inside your package ⬇️ --> | ||
<ThemeProvider theme='inherit'> | ||
<!-- v2 components inside package --> | ||
</ThemeProvider> | ||
</bod | ||
``` | ||
## 1.5.5 | ||
### Patch Changes | ||
- b2831ddb: Fix expandable rows not displaying when height is set on table and `overflow-y` is present. | ||
## 1.5.4 | ||
### Patch Changes | ||
- e1efed3b: Fix Table status icon fill not overriding svg's fill attribute. | ||
## 1.5.3 | ||
### Patch Changes | ||
- 27c23b31: Tooltip's background now has a blur filter to make text more readable. | ||
## 1.5.2 | ||
### Patch Changes | ||
- 2845b4f4: Fixed a bug where inline elements (e.g. links) were getting disrupted when using inside a checkbox label. | ||
## 1.5.1 | ||
### Patch Changes | ||
- d3844a07: Dialog content won't overflow off smaller screen sizes when the content is too big | ||
## 1.5.0 | ||
### Minor Changes | ||
- 06476ada: Added new `Flex` utility component and optional `Flex.Spacer`/`Flex.Item` subcomponents to make it easier to work with CSS flexbox and use iTwinUI design tokens for gap. | ||
```jsx | ||
<Flex gap='xl' justifyContent='center'> | ||
<div>...</div> | ||
<div>...</div> | ||
</Flex> | ||
``` | ||
```jsx | ||
<Flex> | ||
<Flex.Item>...</Flex.Item> | ||
<Flex.Spacer /> | ||
<Flex.Item>...</Flex.Item> | ||
<Flex.Item>...</Flex.Item> | ||
</Flex> | ||
``` | ||
### Patch Changes | ||
- fd2e5239: Alert: close button's focus color now matches the status color. | ||
- a1a8c74d: Resizable dialog now has a min height set so that it always includes the button bar. | ||
## 1.4.0 | ||
### Minor Changes | ||
- f7caf384: \* Added new `iui-tabs-actions-wrapper` and `iui-tabs-actions` to `.iui-tabs-wrapper` to add right/bottom content to the horizontal/vertical tabs. | ||
```html | ||
<div class="iui-tabs-wrapper iui-horizontal"> | ||
<ul class="iui-tabs iui-default"> | ||
... | ||
</ul> | ||
<div class="iui-tabs-actions-wrapper"> | ||
<div class="iui-tabs-actions">...</div> | ||
</div> | ||
<div class="iui-tabs-content">...</div> | ||
</div> | ||
``` | ||
- dd13257f: Added new `iui-svg-icon` class for displaying svgs | ||
- Supports `data-iui-icon-size` attribute for size. Can be one of: 's', 'm', 'l', 'auto' | ||
- Supports `data-iui-icon-color` attribute for fill. Can be one of: 'informational', 'positive', 'warning', 'negative' | ||
```html | ||
<span | ||
class="iui-svg-icon" | ||
data-iui-icon-size="m" | ||
data-iui-icon-color="positive" | ||
> | ||
<svg>...</svg> | ||
</span> | ||
``` | ||
### Patch Changes | ||
- ec26b72d: `Anchor` can now be rendered as a button using `as` prop. | ||
```jsx | ||
<Anchor as='button' onClick={() => {}}> | ||
... | ||
</Anchor> | ||
``` | ||
## [1.3.0](https://www.github.com/iTwin/iTwinUI/compare/v1.2.2...v1.3.0) (2022-12-19) | ||
### Minor changes | ||
- **Tag:** Tag body receives focus instead of close button within it ([#835](https://www.github.com/iTwin/iTwinUI/issues/835)) | ||
### Patch changes | ||
- **Inputs:** border color changes to status color on hover ([#847](https://www.github.com/iTwin/iTwinUI/issues/847)) | ||
- **ToggleSwitch:** Define height of toggle switch to display correctly in iOS ([#852](https://www.github.com/iTwin/iTwinUI/issues/852)) | ||
## [1.2.2](https://www.github.com/iTwin/iTwinUI/compare/v1.2.1...v1.2.2) (2022-12-09) | ||
### Patch changes | ||
- **Select:** Use correct placeholder text color ([#846](https://www.github.com/iTwin/iTwinUI/issues/846)) | ||
## [1.2.1](https://www.github.com/iTwin/iTwinUI/compare/v1.2.0...v1.2.1) (2022-12-08) | ||
### Patch changes | ||
- **Code:** Remove `user-select: all` and extra declarations ([#836](https://www.github.com/iTwin/iTwinUI/issues/836)) | ||
## [1.2.0](https://www.github.com/iTwin/iTwinUI/compare/v1.1.0...v1.2.0) (2022-12-06) | ||
### Minor changes | ||
- **ExpandableBlock:** Add disabled state support through `disabled`/`aria-disabled` attribute on the toggle ([#821](https://www.github.com/iTwin/iTwinUI/issues/821)) | ||
- **`iui-root`**: Add `.iui-root-background` modifier to opt into setting the recommended background-color ([#833](https://www.github.com/iTwin/iTwinUI/issues/833)) | ||
## [1.1.0](https://www.github.com/iTwin/iTwinUI/compare/v1.0.0...v1.1.0) (2022-12-01) | ||
### Minor changes | ||
- **ComboBox:** Add multi-select tags ([#817](https://www.github.com/iTwin/iTwinUI/issues/817)) | ||
### Patch changes | ||
- **Avatar:** Sizes have lower specificity, use CSS vars. ([#818](https://www.github.com/iTwin/iTwinUI/issues/818)) | ||
- **Progress-indicator**: Overlay now intercepts clicks ([#827](https://www.github.com/iTwin/iTwinUI/issues/827)) | ||
- **Slider:** Change align `start` to `flex-start` ([#825](https://www.github.com/iTwin/iTwinUI/issues/825)) | ||
## [1.0.0](https://www.github.com/iTwin/iTwinUI/compare/v0.63.1...v1.0.0) (2022-11-14) | ||
Welcome to the v1 release of iTwinUI-css. 🎉 | ||
The API is now considered "stable" and going forward there will be no more breaking changes in minor version bumps. | ||
Some of the highlights from this release include: | ||
- The `@itwin/itwinui-css` package is now CSS-only. Sass files are no longer part of the deliverable. | ||
- A new `@itwin/itwinui-variables` package has been introduced to replace Sass variables. | ||
- Scoped themes support, allowing styling only part of the page or mixing themes in different parts of the page. | ||
- Major visual updates across all themes. | ||
- Base themes pass WCAG 2.1 level AA requirements, high contrast themes pass level AAA. | ||
- Dark theme has received a complete overhaul. | ||
- Major visual updates across all components. | ||
- Rounded corners in most components (using `--iui-border-radius-1`). | ||
- More consistent elevation by ensuring lighter backgounds (`--iui-color-background`) appear above darker ones (`--iui-color-background-backdrop`). | ||
- Alert and toast have a brand new look. | ||
- Baseline height has increased by 1px, resulting in height changes in many components. | ||
- Switched all sizes from `px` to `rem` to respect base font-size set in user preferences. | ||
- Changes to class names and data attributes (see migration guide). | ||
- Renamed and reorganized a few component files. | ||
- `inputs.css` has been split into `input.css`, `checkbox.css`, `radio.css`, `select.css`, etc. | ||
- `user-icon.css` is now `avatar.css`. | ||
- `wizard.css` has been split into `stepper.css` and `workflow-diagram.css`. | ||
- A few utility components have been combined into `utils.css`. | ||
- Dropped IE11 support, removing any fallbacks for CSS variables, CSS grid, etc. | ||
- New font families: _Noto Sans_ and _Noto Sans Mono_. | ||
- Lots of bug fixes and improvements. | ||
If you're interested in more details, | ||
- check out our [iTwinUI-css v1 migration guide](https://github.com/iTwin/iTwinUI/wiki/iTwinUI-v1-migration-guide) for a full list of changes in all components. | ||
- check out our [iTwinUI-variables v1 migration guide](https://github.com/iTwin/iTwinUI/wiki/iTwinUI-variables-v1-migration-guide) for how the old Sass variables map to the new CSS variables. | ||
- check out a full diff of code changes in [`v0.63.1..v1.0.0`](https://www.github.com/iTwin/iTwinUI/compare/v0.63.1...v1.0.0). | ||
## 0.X | ||
For any changes prior to 1.0.0, check out the [0.X changelog](https://github.com/iTwin/iTwinUI/blob/legacy/v0-css/packages/itwinui-css/CHANGELOG.md). | ||
For any changes prior to 2.0.0, check out the [1.X changelog](https://github.com/iTwin/iTwinUI/blob/legacy/v2/packages/itwinui-css/CHANGELOG.md). |
{ | ||
"name": "@itwin/itwinui-css", | ||
"version": "2.0.0-dev.13", | ||
"version": "2.0.0", | ||
"author": "Bentley Systems", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
536195