Releases: equinor/design-system
Releases · equinor/design-system
eds-core-react@0.39.0
[0.39.0] - 2024-05-27
Fixed
- 🐛
DatePicker
: Datetime-input was formatted with/
instead of:
by @yusijs in #3450 - 🐛
Autocomplete
: added explicit transparent background-color to [popover]::backdrop by @oddvernes in af36ebd
Added
- ✨
Autocomplete
: Solution for object-checking by value instead of reference with newitemCompare
prop by @yusijs in #3455
Changed
- 📌 Changed required
styled-components
version to 5.1 in peer dependencies by @oddvernes in #3459
eds-tokens@0.10.0-beta.0
[0.10.0-beta.0] - 2024-05-16
Added
- Add code and structure to generate and sync new tokens from Figma Variables
- Provide tokens in CSS, TS, and JSON
eds-utils@0.8.5
eds-lab-react@0.7.7
[0.7.7] - 2024-05-14
Changed
- 🗑️
DatePicker
: We removed import of CSS. You need to require the CSS file fromreact-datepicker
. In any event, this component should be considered deprecated in favour ofDatePicker
in@equinor/eds-core-react
. by @torleifhalseth in #3346 - ⬆️ Updated prod dependencies by @oddvernes in #3425
eds-core-react@0.38.0
[0.38.0] - 2024-05-14
Added
- ✨
DatePicker
: Enable custom date-formats in the input segments when they are not focused. Also added support for custom locale by @yusijs in #3415
Changed
🧑💻 Autocomplete
: improved type safety for autocomplete whenoptionLabel
is required by @FredrikMWold in #3408- 🚸
Autocomplete
: implement nativepopover
for better compatability withDialog
by @oddvernes in #3416 - ⬆️ Updated prod dependencies by @oddvernes in #3425
Fixed
- 🐛
Autocomplete
"Select all" toggle causing crashes under certain circumstances with controlledAutocomplete
by @mhwaage in #3428 - 🐛
Autocomplete
when toggling "Select all" or clicking the "clear" button, disabled items are now left unchanged. The "x/y selected" text in the input has changed "y" from "total non-disabled items length" to "all items length" by @oddvernes in #3429 - 🐛
Autocomplete
: dragging scrollbar and then switching to using up/down arrow navigation should now work as expected by @oddvernes in #3441
Notes
Due to the introduction of the native popover
attribute, downstream unit tests involving eds Autocomplete
may fail due to Jest/jsDom not having added support for the popover api yet. The easy solution to this is to add the following lines to your jest.setup.ts
or alternatively within the test itself:
HTMLElement.prototype.showPopover = jest.fn()
HTMLElement.prototype.hidePopover = jest.fn()
eds-core-react@0.37.0
[0.37.0] - 2024-04-24
Added
- ✨ New components:
Datepicker
andDateRangePicker
by @yusijs in #3387 - ➕ New dependencies
react-aria
@react-aria/utils
@react-stately/calendar
@react-stately/datepicker
@react-types/shared
@internationalized/date
Changed
- 🏷️
Label
: change "meta" field type toReactNode
by @oddvernes in #3341 - 🚸
Autocomplete
: show "no options" on focus whenoptions
is empty by @oddvernes in #3399 - 💄
Menu
: focus-ring changed from :focus to :focus-visible by @oddvernes in #3396
Fixed
- 🐛
TextArea
/TextField
: Fixed scrollbar being inaccessible wheninputIcon
is present by @oddvernes in #3378 - 🐛
TextField
: Dynamically update padding wheninputIcon
changes by @torleifhalseth in #3380 - 🐛
Button
: fixed misaligned clickbounds on icon/ghost icon variants by @oddvernes in #3397 - 🔥
Tabs
: Remove invalid props fromTabListProps
type by @oddvernes in #3401
eds-lab-react@0.7.6
[0.7.6] - 2024-03-01
Changed
- ⬆️ Update prod dependencies by @oddvernes in #3298
Fixed
- ⬆️
Datepicker
: Update downshift@8.3.3 to fix focus grabbing on load bug by @oddvernes in #3336
eds-core-react@0.36.1
[0.36.1] - 2024-03-01
Changed
- ⬆️ Updated prod dependencies by @oddvernes in #3298
Fixed
- ⬆️
Autocomplete
: Updated downshift@8.3.3 to fix focus grabbing on load bug by @oddvernes in #3336
eds-data-grid-react@0.4.0
eds-data-grid-react@0.3.0
[0.3.0] - 2024-02-15
Added
Changed
- 🔧 Update babel compile target to "last 2 Chrome versions, last 2 firefox versions, last 2 safari versions, last 2 edge versions, not dead" by @oddvernes in #3219
- ⚡️ Improve performance by enabling
contain: strict
when width and height is provided by @magnh in #3273 - ✨ Improve data grid by @magnh in #3231
Details of #3231:
- ✨ Reexport
@tanstack/react-table
types to ease typing in apps using the data grid - 📌 Move
eds-core-react
to peer dependencies- This is neccessary because EDS uses React Context and the grid and the project should
have the same React instance running. This makes it possible to set EDS Density of the
table above the component.
- This is neccessary because EDS uses React Context and the grid and the project should
- ♻️ Move text truncating into default cell to enable overwriting cell content
- This enables custom cells like popover, autocomplete or other cells that overflows the cell itself.
- 🐛 Inherit row background color for pinned cells
- This ensures hover color on the whole row when columns are pinned
- 🐛 Support 100% width
- Support string
width
andheight
- Support string
- ✨ Allow setting
minWidth
of table - ✨ Expose
getRowId
callback from react-table - ✨ Expose virtualizer ref
- This is needed to be able to run "scroll to" functionality in apps.
- 🐛 Hide virtualizer rows top and bottom rows when not needed