Published by cee-chen 6 months ago
getDefaultEuiMarkdownPlugins()
to allow excluding the following plugins in addition to tooltip
: (#7676)
checkbox
linkValidator
lineBreaks
emoji
EuiSelectable
's isPreFiltered
prop to allow passing a configuration object, which allows disabling search highlighting in addition to search filtering (#7683)EuiFlexGroup
and EuiFlexItem
prop types to support passing any valid React component type to the component
prop and ensure proper type checking of the extra props forwarded to the component
. (#7688)EuiSearchBar
to allow the @
special character in query string searches (#7702)optionMatcher
prop to EuiSelectable
and EuiComboBox
allowing passing a custom option matcher function to these components and controlling option filtering for given search string (#7709)Bug fixes
EuiPageTemplate
bug where prop updates would not cascade down to child sections (#7648)
EuiPageTemplate
now explicitly requires using the EuiPageTemplate.Sidebar
rather than EuiPageSidebar
EuiFieldNumber
's typing to accept an icon configuration shape (#7666)EuiFieldText
and EuiFieldNumber
to render the correct paddings for icon shapes set to side: 'right'
(#7666)EuiFieldText
and EuiFieldNumber
to fully ignore icon
/prepend
/append
when controlOnly
is set to true (#7666)EuiColorPicker
's input not setting the correct right padding for the number of icons displayed (#7666)EuiRange
s with showInput
: (#7678)
append
/prepend
labels no longer cause a background bugEuiTableRowCell
s with the row
header scope (#7681)toolTipProps
type on EuiSuperUpdateButton
to use Partial<EuiToolTipProps>
(#7692)popperProps
on EuiDatePicker
(#7694)EuiDataGrid
s with leadingControlColumns
when moving columns to the left/right (#7701) (#7698)EuiSuperDatePicker
to validate date string with respect of locale on EuiAbsoluteTab
. (#7705)EuiSuperDatePicker
's absolute tab on small mobile screens (#7708)FieldValueSelectionFilter
component (#7718)Dependency updates
Accessibility
EuiBasicTable
and EuiInMemoryTable
's selection checkboxes to have unique aria-labels per row (#7672)aria-valuetext
attributes to EuiRange
s with tick labels for improved screen reader UX (#7675)EuiAccordion
to keep focus on accordion trigger instead of moving to content on click/keypress (#7696)aria-disabled
attribute to EuiHorizontalSteps
when status is "disabled" (#7699)Published by cee-chen 7 months ago
EuiTable
, EuiBasicTable
, and EuiInMemoryTable
with a new responsiveBreakpoint
prop, which allows customizing the point at which the table collapses into a mobile-friendly view with cards (#7625)EuiProvider
's componentDefaults
prop to allow configuring EuiTable.responsiveBreakpoint
(#7625)Bug fixes
EuiBasicTable
& EuiInMemoryTable
isPrimary
actions are now correctly shown on mobile views (#7640)mobileOptions
: (#7642)
mobileOptions.align
is now respected instead of all cells being forced to left alignmenttextTruncate
and textOnly
are now respected even if a render
function is not passedBreaking changes
EuiTableHeaderButton
component (#7621)responsive
prop from EuiTable
, EuiBasicTable
, and EuiInMemoryTable
. Use the new responsiveBreakpoint
prop instead (#7625)EuiBasicTable
or EuiInMemoryTable
for responsive table behavior to work correctly, and can be removed: (#7632)
isSelectable
isExpandable
hasActions
showOnHover
prop from EuiTableRowCell
/ EuiBasicTable
/EuiInMemoryTable
's columns
API. Use the new actions columns[].actions[].showOnHover
API instead. (#7640)textOnly
prop from EuiBasicTable
and EuiInMemoryTable
. Use columns[].textOnly
instead. (#7642)DOM changes
EuiTable
mobile headers no longer render in the DOM when not visible (previously rendered with display: none
). This may affect DOM testing assertions. (#7625)EuiTableRowCell
now applies passed className
s to the parent <td>
element, instead of to the inner cell content <div>
. (#7631)EuiTableRow
s rendered by basic and memory tables now only render a .euiTableRow-isSelectable
className if the selection checkbox is not disabled (#7632)EuiTableRowCell
s with textOnly
set to false
will no longer attempt to apply the .euiTableCellContent__text
className to child elements. (#7641)EuiTableRowCell
no longer renders mobile headers to the DOM unless the current table is displaying its responsive view. (#7642)EuiTableHeaderCell
and EuiTableRowCell
will no longer render in the DOM at all on mobile if their columns' mobileOptions.show
is set to false
. (#7642)EuiTableHeaderCell
and EuiTableRowCell
will no longer render in the DOM at all on desktop if their columns' mobileOptions.only
is set to true
. (#7642)CSS-in-JS conversions
EuiTable
, EuiTableRow
, EuiTableRowCell
, and all other table subcomponents to Emotion (#7654)EuiTable
Sass variables: (#7654)
$euiTableCellContentPadding
$euiTableCellContentPaddingCompressed
$euiTableCellCheckboxWidth
$euiTableHoverColor
$euiTableSelectedColor
$euiTableHoverSelectedColor
$euiTableActionsBorderColor
$euiTableHoverClickableColor
$euiTableFocusClickableColor
EuiTable
Sass mixins: (#7654)
euiTableActionsBackgroundMobile
euiTableCellCheckbox
euiTableCell
Published by cee-chen 7 months ago
EuiBreadcrumb
styles to improve visual distinction of clickable breadcrumbs (#7615)Deprecations
color
prop on EuiBreadcrumb
(#7615)Bug fixes
EuiComboBox
to correctly select full matches within groups via the Enter
key (#7658)Accessibility
EuiHeaderBreadcrumb
styles to ensure min. required color contrast (#7643)EuiSuperSelect
now correctly reads out parent EuiFormRow
labels to screen readers (#7650)EuiSuperSelect
now more closely mimics native <select>
behavior in its keyboard behavior and navigation (#7650)EuiSuperSelect
no longer strands keyboard focus on close (#7650)EuiSuperSelect
now correctly allows keyboard navigating past disabled options in the middle of the options list (#7650)Published by cee-chen 7 months ago
Published by cee-chen 7 months ago
EuiHeaderLinks
now accepts a children
render function that will be passed a closeMobilePopover
callback, allowing consumers to close the mobile popover by its content (#7603)EuiSelectable
to support scrolling list containers when listProps.isVirtualization
is set to false
(#7609)Bug fixes
EuiIconTip
's default aria-label
text to be i18n tokenizable (#7606)EuiTextArea
's CSS box model to no longer render a few extra pixels of strut height (#7607)Dependency updates
@types/refractor
to v3.4.0 (#7590)@types/lodash
to v4.14.202 (#7591)@types/resize-observer-browser
dependency. ResizeObserver
types should already be baked in to Typescript as of 4.2+ (#7592)classnames
to v2.5.1 (#7593)@types/numeral
to v2.0.5 (#7594)@types/react-window
to 1.8.8 (#7597)prop-types
to v15.18.1 (#7602)prop-types
as a peer dependency, per package recommendation (#7602)Accessibility
EuiIcons
no longer apply aria-hidden
to empty icons, as long as a valid title or label is provided to the icon. In particular, this is intended to improve the accessibility of loading EuiIconTip
s. (#7606)Published by cee-chen 7 months ago
EuiButtonGroup
's options
configs: toolTipContent
, toolTipProps
, and title
. These new properties allow wrapping buttons in EuiToolTips
, and additionally customizing or disabling the native browser title
tooltip. (#7461)EuiResizeObserver
and useResizeObserver
's performance to not trigger page reflows on resize event (#7575)EuiSuperUpdateButton
to support custom button text via an optional children
prop (#7576)Bug fixes
EuiFlyout
to not repeatedly remove/add a body class on resize (#7462)EuiToast
title text to wrap instead of overflowing out of the container (#7568)EuiHeaderBreadcrumbs
with popovers (#7580)Deprecations
euiPalettePositive
and euiPaletteNegative
in favour of a more culturally inclusive euiPaletteGreen
and euiPaletteRed
(#7570)@elastic/charts
exports: (#7572)
EUI_CHARTS_THEME_<DARK|LIGHT>
in favor of <DARK|LIGHT>_THEME
from @elastic/charts
. (#7572)EUI_SPARKLINE_THEME_PARTIAL
in favor of useSparklineOverrides
theme from the kibana charts
plugin theme
service.Accessibility
Published by cee-chen 8 months ago
EuiDataGrid
new prop: cellContext
, an optional object of additional props passed to the cell render function. (#7374)EuiBreadcrumbs
's popoverContent
API now accepts a render function that will be passed a closePopover
callback, allowing consumers to close the breadcrumb popover from their popover content (#7555)Bug fixes
EuiProgress
bar update (#7538)EuiDataGrid
bug with gridStyle.rowClasses
, where custom consumer classes that began with euiDataGridRow
would not be correctly removed/reapplied (#7549)EuiDataGrid
bug where EuiCheckbox
es within control columns were not vertically centered within single height rows (#7549)Published by cee-chen 8 months ago
EuiPageSidebar
and EuiPageTemplate.Sidebar
with a new hasEmbellish
prop (defaults to false) (#7521)diff
glyph to EuiIcon
(#7520)newChat
glyph to EuiIcon
(#7524)Bug fixes
EuiSideNav
not correctly typing the items
prop as required (#7521)CSS is not defined
bug in EuiPageTemplate
when rendering in some SSR environments, particularly Next.js v13 and up (#7525)EuiDataGrid
component to clean up timer from side effect on unmount (#7534)Accessibility
EuiSideNav
to render a fallback aria-label on mobile toggles if no heading or mobile title exists (#7521)CSS-in-JS conversions
EuiSideNav
to Emotion; Removed the following Sass variables: (#7521)
$euiSideNavEmphasizedBackgroundColor
$euiSideNavRootTextcolor
$euiSideNavBranchTextcolor
$euiSideNavSelectedTextcolor
$euiSideNavDisabledTextcolor
euiSideNavEmbellish
Sass mixin. Use the new EuiPageSidebar
hasEmbellish
prop instead (#7521)Published by cee-chen 8 months ago
index
glyph to EuiIcon
(#7498)EuiHighlight
to accept an array of search
strings, which allows highlighting multiple, separate words within its children. This new type and behavior only works if highlightAll
is also set to true. (#7496)EuiContextMenu
with a new panels.items.renderItem
property, which allows rendering completely custom items next to standard EuiContextMenuItem
objects (#7510)EuiSuperDatePicker
updates:
EuiSuperDatePicker
with a new canRoundRelativeUnits
prop, which defaults to true (current behavior). To preserve displaying the unit that users select for relative time, set this to false. (#7502)EuiSuperDatePicker
with a new refreshIntervalUnits
prop. Passing this prop allows controlling and overriding the default unit rounding behavior. (#7501)EuiAutoRefresh
and EuiRefreshInterval
with a new intervalUnits
prop. Passing this prop allows controlling and overriding the default unit rounding behavior. (#7501)onRefreshChange
to pass back a new intervalUnits
key that contains the current interval unit format (seconds, minutes, or hours). (#7501)EuiSuperDatePicker
with a new refreshMinInterval
prop, which accepts a minimum number in milliseconds (#7516)EuiAutoRefresh
and EuiRefreshInterval
with a new minInterval
prop, which accepts a minimum number in milliseconds (#7516)Bug fixes
EuiHighlight
to not parse search
strings as regexes (#7496)EuiSuperDatePicker
submit bug when used within <form>
elements (#7504)EuiTreeView
bug where aria-expanded
was being applied to items without expandable children (#7513)CSS-in-JS conversions
EuiTreeView
to Emotion. Updates as part of the conversion: (#7513)
.euiTreeView__wrapper
div nodeicon
size based on display
sizePublished by cee-chen 9 months ago
Bug fixes
EuiTextTruncate
component to clean up timer from side effect on unmount (#7495)Breaking changes
anchorClassName
prop from EuiPopover
. Use className
instead (#7488)buttonRef
prop from EuiPopover
. Use popoverRef
instead (#7488)toolTipTitle
and toolTipPosition
props from EuiContextMenuItem
. Use toolTipProps.title
and toolTipProps.position
instead (#7489)setSelection
ref method from EuiInMemoryTable
and EuiBasicTable
. Use the new controlled selection.selected
prop API instead. (#7491)EuiTourStep
's className
and style
props now apply to the anchoring element instead of to the popover panel, to match EuiPopover
behavior. (#7497)
panelClassName
and panelStyle
respectively instead.Performance
EuiCode
and EuiCodeBlock
(#7486)CSS-in-JS conversions
Published by cee-chen 9 months ago
Bug fixes
Published by cee-chen 9 months ago
EuiFlyoutResizable
with new optional onResize
callback (#7464)Bug fixes
EuiResizableContainer
where onResizeEnd
could become a stale closure when renders occured between resize start and end, resulting in an outdated version of a consumer's onResizeEnd
callback being called (#7468)EuiTextArea
to correctly fire onChange
callbacks on clear button click (#7473)EuiContextMenu
's panel titles & items to not show underlines on hover for non-interactive elements (#7474)Deprecations
Published by cee-chen 9 months ago
EuiResizableButton
to allow customizing the indicator
style with either handle
(default) or border
(#7455)EuiResizableContainer
to preserve the drag/resize event when the user's mouse leaves the parent container and re-enters (#7456)Bug fixes
EuiTreeView
JSX Typescript error (#7452)EuiStep
s (#7454)Accessibility
EuiDataGrid
's keyboard/screenreader experience has been tweaked to be more consistent for varying complex data: (#7448)
EuiDataGrid
now provides a direct screen reader hint for Enter key behavior for expandable & interactive cells (#7448)Published by cee-chen 10 months ago
v92.0.0
EuiBasicTable
, EuiInMemoryTable
and EuiSearchBar.Query.execute
to add extends object
constraint (#7340)
EuiFlyoutResizable
component (#7439)EuiTextArea
to accept isClearable
and icon
as props (#7449)Bug fixes
EuiRange
/EuiDualRange
's track ticks & highlights now update their positions on resize (#7442)Deprecations
EuiFilterButton
to remove the second .euiFilterButton__textShift
span wrapper. Target .euiFilterButton__text
instead (#7444)Breaking changes
Published by cee-chen 10 months ago