All notable changes will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
DatePicker
: update day buttons to use standard button stylesChip
: add border and background color CSS variable theming on selected state.SideNavigationItem
: add border CSS variable theming on selected state.
Navigation
: fix focus outline in dark themeNavigationSection
: fix props forwarding
- Storybook dark theme switcher: improve label of dark/light modes
- Storybook
withCombinations()
: better section heading, exclude combinations - Storybook
withTheming()
: new decorator to demonstrate CSS variables on stories - Storybook
Button
:- Cleaned up stories argTypes and controls
- Rework stories content with more combinations
- Add theming story
- Storybook
DatePicker
: add theming story - Storybook
Chip
: add theming story - Storybook
Navigation
: add variants & theming stories - Storybook
SideNavigationItem
: add variant and theming stories
3.9.5 - 2024-11-06
Chip
: trigger onClick whenEnter
key is pressedExpansionPanel
: fix children remaining in the DOM whenisOpen
prop changes
3.9.4 - 2024-11-04
ExpansionPanel
: fix children remaining in the DOM when closedImageLightbox
: fix unexpected error on windows 10 reporting incorrect touch device
BadgeWrapper
: add this new component to allow adding a badge to any component.
Mosaic
: removed broken lightboxes on mosaic demos.
3.9.3 - 2024-10-09
ImageLightbox
: fix closing transition triggering multiple times.
Tooltip
: use the standard classvisually-hidden
when closed and withcloseMode="hide"
.
3.9.2 - 2024-10-04
Slideshow
: changed active pagination item width for better a11y.ImageLightbox
: fix closing animation cut short because of unstable image reference.
Tooltip
: addcloseMode
to hide the tooltip instead of unmounting it.Tooltip
: addariaLinkMode
to use tooltip as label instead of description.
Tooltip
: increment z-index making them appear above popovers.TextField
: display browser native buttons when used with type="number", add "number" use case documentation.TextField
: add jsdoc and typing fortype
prop.
3.9.1 - 2024-09-17
Tooltip
: fix re-render errors when removing the label.useImageLightbox
: update props each time the lightbox opens.ImageLightbox
: fix reset zoom scale when switching to the first item.ButtonGroup
: fixed border radius style with single button or.visually-hidden
children.ImageLightbox
: fix zoom center based on mouse position on mouse wheel zoom.
3.9.0 - 2024-09-03
ImageLightbox
: new component providing an image slideshow lightbox with extra features (zoom & a11y).UserBlock
: added an XS size.
DatePicker
: improve display of localized day number.- Reworked internal id generation (linking fields with labels, a11y attributes). Removed the
uid
dependency. Message
: changed type "info" color to blueNotification
: changed type "info" color to blue
3.8.1 - 2024-08-14
ImageBlock
: restore old caption class names.
ImageBlock
: addtitleProps
anddescriptionProps
to forward to the title and description.
3.8.0 - 2024-08-13
Lightbox
: fix a11y color contrast on the close button.Mosaic
: fix thumbnail focus outline cropped by parent overflow.SlideShow
: fix pagination item focus outline cropped by parent overflow.
Heading
: fix the default typography when theas
prop is set.ImageBlock
: internal changes on caption styles (simply and make reusable).
Thumbnail
: addloadingPlaceholderImageRef
to re-use a loaded image as the loading placeholder.Checkbox
: add intermediate state viaisChecked="intermediate"
3.7.5 - 2024-07-25
ListItem
: display keyboard focus ring even when not highlightedMessage
: changed spacing between icon and text from 16 to 8
3.7.4 - 2024-06-20
GenericBlock
: fix shrinking content withmin-width: 0
.
3.7.3 - 2024-06-19
Chip
: fix forward key down event on clickable chipTextField
: fix forward aria-describedby prop to input
Select
,SelectMultiple
: addselectElementRef
prop to reference the actual input field of these components.
3.7.2 - 2024-05-22
- Tooltip: fix children not having consistent ref on re-render (like when updating the tooltip label)
3.7.1 - 2024-05-21
@lumx/core
: lumx-color-variant, add fallback to default variant
- InlineList: add
wrap
prop to activate line wrap on overflow - Thumbnail: add
objectFit
prop to control how the image fit in a constrained aspect ratio. Defaults tocover
to scale & crop the image (like before). Can be changed tocontain
to avoid cropping the image (aka letterboxing). - Flag: add
truncate
prop to activate text ellipsis on overflow. - Text: add
title
attribute when text is overflowing to display the full text on mouse over.
- Flag: allow any react node in label.
3.7.0 - 2024-04-29
@lumx/icons
: added icons TikTok, TencentQQ, TencentVideo and Baidu
@lumx/icons
: optimized all JS SVG path icons (23% reduction in size)@lumx/icons
: removed@mdi/js
dependency, icons are copied in the library (necessary for the optimization)
3.6.8 - 2024-04-18
- Chip: fix chip not receives focus when used as link
- Chip: Make it possible to override the following props:
role
,tabIndex
- DatePicker: force a constant number of rows in the month calendar to avoid layout shift
3.6.7 - 2024-04-02
@lumx/core
: fix customization of selected button CSS variables@lumx/core
: red/D2, red/N and green/N colors to fix color contrast a11y
- DatePicker: add an input to change the displayed year
- Message: add a
closeButtonProps
prop to add a close button in the message. Only available forinfo
kind messages with a background. - Popover: add a
focusTrapZoneElement
prop to specify the element in which the focus trap should be applied.
- Dialog: fullscreen display on smaller viewport
3.6.6 - 2024-03-15
- Thumbnail: use
span
instead ofdiv
in children elements to avoid semantic error on clickable thumbnails (button). - PopoverDialog: fix the
aria-label
prop not properly forwarded to the dialog. - ChipGroup: fix unwanted extra negative margin around chips (deprecating the
align
prop)
@lumx/core
: add.visually-hidden
a11y helper class to use on elements that should be read by screen readers but not shown.- DatePicker: improve screen reader text
- TextField: add
labelProps
prop to forward to the label element - DatePickerField: improve date picker dialog a11y
3.6.5 - 2024-02-21
- Tooltip: avoid removing the anchor
aria-describedby
- Popover: unstable restore focus and changing anchor refs (triggered by anchor wrapped in tooltip)
- Autocomplete: forward
focusAnchorOnClose
prop
3.6.4 - 2024-02-20
- InputHelper: change of html tag to improve semantic
- Popover: restore focus on trigger on closed externally
- Tooltip: do not show on anchor focus if the focus is not visible (keyboard driven)
3.6.3 - 2024-02-08
- Thumbnail: fix warnings on image overflow style
- Notification: fix forwarding style
- Popover: add dark theme
- Popover: reworked arrow style to be bigger and with a correct drop shadow
- Notification: add
usePortal
(default value istrue
) to be able to not use a portal in some cases.
3.6.2 - 2024-01-16
- Lightbox, Dialog, Notification: fix remove from DOM when closing while the opening transition isn't finished.
- Avatar: fixed Chrome behavior when down-scaling avatar so it is not pixelated anymore
3.6.1 - 2024-01-05
- Text: add style customisation with
whiteSpace
props - Add new design token
medium
forfont-weight
.
- Tooltip: fixed tooltip closing when mouse is hovering the tooltip text.
- Tooltip: fixed close on Escape key pressed (not only when anchor is focused).
- Lightbox: fixed aria dialog accessibility (reworked role, labelling and default focus element).
- Lightbox: document accessibility concerns.
3.6.0 - 2023-12-05
@lumx/icons
: override & alias system in place. now custom icon fonts are now generated from MDI fonts we extend.@lumx/icons
: override Twitter logo to use the new X logo.@lumx/core
: make component spacing styles default to CSS variables.@lumx/core
: make component border styles default to CSS variables.@lumx/core
: change text-field background to transparent.@lumx/core
: minor change on tabs color.@lumx/core
: minor change on navigation colors.@lumx/core
: minor change on button colors.
3.5.5 - 2023-11-13
- Table row: selected states color update + documentation update
@lumx/core
: remove default line-height on custom title typography.
3.5.4 - 2023-10-17
- List & Navigation: add outline on focus-visible for better accessibility
@lumx/react
no long depend onmoment
ormoment-range
to generate the date picker.- Deprecated
@lumx/core/js/date-picker
functions that will be removed in the next major version along withmoment
andmoment-range
. - DatePicker & DatePickerField:
locale
prop is now optional (uses browser locale by default) - ListSubHeader: darken text color for better accessibility
3.5.3 - 2023-08-30
- Upgrade dependency
classnames
to v2.3.2
3.5.2 - 2023-08-08
- Thumbnail: remove undesired console log.
3.5.1 - 2023-08-02
- Thumbnail: synchronously set error for image with empty source.
3.5.0 - 2023-07-27
- Tab: add icon customisation with
iconProps
- Thumbnail: fix an issue with SVG images not loading on firefox when no width/height is specified.
3.4.0 - 2023-07-06
- CommentBlock:
name
&date
are now optional - CommentBlock:
onClick
,onMouseEnter
&onMouseLeave
are now deprecated - Thumbnail: reworked image sizing with native CSS aspect ratio if supported
- Thumbnail: added
panoramic
aspect ratio
- TableCell: fix clickable & sortable header cell accessibility
- Uploader: use button element by default
- Uploader: use label and input file elements when providing
fileInputProps
- Autocomplete: fix focus field when clear button is triggered
- SideNavigationItem: fix closed/opened state accessibility
- SideNavigationItem: use button element by default for better accessibility
3.3.1 - 2023-06-12
- IconButton: remove the
aria-describedby
attribute when thearia-label
and thearia-describedby
have the same value. - TextField: focus the text field input when clicking on the clear button
3.3.0 - 2023-05-03
TextField
component now showsaria-describedby
andaria-invalid
attributes.TextField
component now has a new proponClear
to allow a callback to be passed.
3.2.1 - 2023-04-26
- Select: fix the select dropdown focus not being trapped in it.
- Popover, DatePickerField, Dialog & Lightbox: remove unnecessary scroll on open (on focus trap activation)
- Popover & Dropdown: remove unnecessary scroll on close (on focus restore)
3.2.0 - 2023-04-11
- @lumx/core: improved color contrast on dark L6 & L2
- New
Navigation
component.
3.1.5 - 2023-02-03
- Dialog: added new props
disableBodyScroll
,preventCloseOnClick
andpreventCloseOnEscape
3.1.4 - 2023-01-26
- Popover: skip positioning logic in jsdom environment (can only be tested in integration tests).
- Popover: add
as
prop to customize the root element component render.
3.1.3 - 2023-01-12
- ExpansionPanel: passed event to the
onOpen
,onClose
andonToggleOpen
callbacks.
- GridColumn: fix SCSS variable interpolation.
3.1.2 - 2023-01-05
- New
GridColumn
component. - Progress: split into
ProgressCircular
andProgressLinear
components.Progress
is now deprecated. - ProgressCircular: add
size
variants.
- Badge, Button, Chip, Icon, Link: only
ColorPalette
values are allowed on thecolor
prop (instead ofstring
). This has no impact on functionality, if you used unsupported color before, you can ignore TS errors withas any
.
- Tab: fix disabled state.
3.0.7 - 2022-12-06
- Checkbox: add
disabled
attribute to theinput
element
3.0.6 - 2022-12-01
- New component in React:
PopoverDialog
. - New type :
HasAriaLabelOrLabelledBy
- Popover: add
withFocusTrap
prop to set a focus trap within the popover.
- Autocomplete: fix type of textFieldProps prop.
- Popover, Dropdown, Autocomplete: add
minWidth
,maxWidth
andwidth
options to thefitToAnchorWidth
property. - Button: make Text component's truncate work with Button
3.0.5 - 2022-11-21
- RadioButton: add
inputProps
prop to forward to the native input element.
- RadioButton: fix helper text accessibility
- Switch: fix helper text accessibility
- ExpansionPanel: fix toggle button a11y using the disclosure pattern.
- Dialog, LightBox, Notification: rework DOM unmount to be based on CSS opacity transition instead of a timeout. This change can break unit test if you previously relied on the timeout.
3.0.4 - 2022-11-07
- Autocomplete: add
textFieldProps
props to the autocomplete component.
- InlineList: Set
listitem
role to items sincedisplay: contents
attribute removes the semantics. - Text: ignore empty children to make
dangerouslySetInnerHTML
work as expected.
@lumx/core
a11y: Introducing a more visible outline on elements with keyboard focus.@lumx/react
: rework how TS types are exposed. Fixed types forList.useKeyboardListNavigation
hook.
3.0.3 - 2022-10-14
- FlexBox: add
as
prop to customize the root element component render. - GenericBlock: add
as
prop to customize the root, the figure, the content and actions elements component render. - New
ClickAwayProvider
utility component (exported in the new@lumx/react/utils
module). - New
InlineList
component.
- Text: improve icon alignment inside text.
- Text: add
noWrap
prop to disable line wrap.
3.0.2 - 2022-09-23
- New
Text
component. - New
Heading
component. The component comes with aHeadingProvider
that allows theHeading
component to automatically use the correct heading level depending on the nested providers. - New
useHeadingLevel
hook to get the current heading level. - FlexBox: new options added for
vAlign
andhAlign
props (space-between
,space-evenly
andspace-around
).
- Slideshow: Improve accessibility by adding
tablist
/tab
roles to slideshow pagination andtabpanel
role to slide groups. These elements are linked together usingaria-controls
attribute. - Slideshow: Added the
slideGroupLabel
prop to set a label on each slide groups. The prop should be a function that receives the group position starting from 1 and the total number of groups. - Slideshow: Slides grouped together are now wrapper inside individual divs.
- SlideshowControls: Added the
paginationItemProps
prop to set custom props to each pagination item. The prop should be a function that receives the item index. - SlideshowControls: The bullets now use the "roving tab index" pattern to have only the current slide focusable and navigate using the left/right arrows.
- Slideshow: Avoid slides that are not displayed to be focusable and read by a screen reader.
3.0.1 - 2022-09-21
@lumx/core
: [BREAKING] migrating fromnode-sass
v4.13.1 tosass
v1.54.0. All SASS depreciation warnings have been handled, LumX is ready for SASS v2+. You must do the migration too if you are using@lumx/core
SCSS stylesheets.@lumx/core
: updatesass-mq
from v5 to v6.
2.2.25 - 2022-08-04
- @lumx/icons: provide both CJS and ESM module for better tooling compatibility.
2.2.24 - 2022-08-02
- Thumbnail: fix a bug on focus shift calculation caused when focusPoint is equals to 0 and the scaled image size equals the container size.
2.2.23 - 2022-08-01
- GenericBlock: improve default props values:
orientation
defaults tohorizontal
vAlign
&hAlign
do not default to anythingvAlign
&hAlign
of "figure", "content" and "actions" sections default to the rootvAlign
&hAlign
propsgap
defaults tobig
- GenericBlock: remove sections ("figure", "content" and "actions") if empty.
- GenericBlock: prevent overflow by default.
- FlexBox: add
tiny
to the possiblegap
sizes. - @lumx/icons: inline mdi icon import in the ESM module for better tree shaking.
- @lumx/react: fix
TypographyCustom
values. - Link: allow using all typography variants.
- Thumbnail: fix a bug on focus shift calculation caused when focusPoint is equals to 0 and the image size equals the container size.
2.2.22 - 2022-07-25
- Thumbnail: broaden
badge
prop TS type fromReactElement
toReactElement | Falsy
. - Dialog: broaden
contentRef
prop TS type fromRefObject
toRef
. - TextField: broaden
inputRef
prop TS type fromRefObject
toRef
. - Autocomplete: broaden
inputRef
prop TS type fromRefObject
toRef
.
- Dialog: avoid closing all nested dialogs if the user clicks outside a children dialog.
- GenericBlock: added alternative API to specify the "figure", "content" and "actions" sections using components.
2.2.21 - 2022-07-04
- @lumx/react build: fix export of react types in component props
- Dialog & Lightbox: fixed focus trap containing hidden input.
2.2.20 - 2022-07-01
- LinkPreview: added
linkAs
prop to customize link component. - LinkPreview: added
titleHeading
prop to customize the title heading tag. - Select & SelectMultiple: add
icon
props - New
GenericBlock
component - Popover: focus first focusable element in anchor OR anchor on close.
- LinkPreview: Improve accessibility on thumbnail link, remove redundant links in focus order and improve tag semantics.
- Dialog & Lightbox: fixed focus trap not working when closing and reopening the same component.
- Dialog & Lightbox & DatePickerField: fixed focus trap on nested components.
- Dialog & Lightbox & Popover: fixed 'Escape' key to close nested components.
- DatePickerField: fix focus element when opened and re-opened.
2.2.19 - 2022-06-03
- UserBlock a11y: remove avatar keyboard focus to avoid the redundant keyboard navigation with the name element.
- Dialog & Lightbox: fixed focus trap on
disabled=false
elements.
2.2.18 - 2022-05-20
- Tooltip: clear pending timers when the component unmounts
- SideNavigationItem: added
closeMode
to"unmount"
or"hide"
children when the item is closed.
2.2.17 - 2022-04-28
- Dialog & Lightbox: fixed focus trap on disabled elements and protect against focus breaking out.
- Size map: added
medium
- FlexBox: added gap size
medium
2.2.16 - 2022-04-20
- Added forwarded props to the
SelectMultiple
component.
2.2.15 - 2022-04-14
- Thumbnail: fix css display when thumbnails are fill-height & clickable.
2.2.14 - 2022-04-13
- RadioButton: Added
inputRef
prop to forward a ref on the native input. - Checkbox: Added
inputRef
prop to forward a ref on the native input.
- @lumx/core: all CSS animations and transitions are now disabled on browsers with
prefers-reduced-motion
media feature enabled.
- Mosaic: fix mosaic thumbnail not appearing on safari when providing a
onImageClik
prop.
2.2.13 - 2022-04-08
- CommentBlock: Added
fullDate
prop displaying when hovering the date with the mouse;
- CommentBlock: Move the comment date to below comment text;
- Select: fix chip vertical margin calculation.
2.2.12 - 2022-03-24
- Popover: Added
focusAnchorOnClose
prop to reset the focus back to the anchor element when popover closes and focus is set within. Default totrue
; - Dropdown: Added
focusAnchorOnClose
prop to reset the focus back to the anchor element when popover closes and focus is set within. Default totrue
; - List: Added
tabIndex
prop to control the list tabIndex. Default to-1
to avoid breaking changes.
- Icon: better
dark
theme on icon with shape. - List: Removed default
tabIndex={0}
. - Tooltip: Removed unecessary set state on unmount causing warnings in React dev tools.
2.2.11 - 2022-03-17
- Slideshow: temporarily remove slide
visibility: hidden
.
2.2.10 - 2022-03-16
- Slideshow Controls: Added Play/Pause Button and added focus styles to bullets. Allow to pass in a label for each bullet.
- Slideshow: slides no longer appear as blank while transitioning.
2.2.9 - 2022-03-15
Failed released
2.2.8 - 2022-03-10
- Icon: Add
alt
attribute to set an alternative text to the icon. If defined,role="img"
will also be applied tosvg
element. If undefined,aria-hidden=true
will be applied tosvg
element.
- @lumx/core: all CSS
:hover
style are now disable on devices that do not support pointer hover. warning: this is not applied on the SCSS, use the postcss pluginpostcss-hover-media-feature
to reproduce this in your project. - Tooltip: rework of the activation method to fit more devices
- On device with touch screen:
- The Tooltip shows when the tooltip's anchor is pressed for more than 250 ms (long press).
This disables the default anchor's
click
/touchend
event. - The tooltip hides 3 seconds after the long press is ended.
- The tooltip is not activated on a short
click
/tap
.
- The Tooltip shows when the tooltip's anchor is pressed for more than 250 ms (long press).
This disables the default anchor's
- On devices supporting pointer hovering:
- The tooltip shows when hovering (500 ms delay).
- The tooltip hides when moving the pointer outside the anchor or clicking the anchor.
- On every device:
- The tooltip shows when focusing the anchor.
- The tooltip hides when loosing focus on the anchor.
- The tooltip hides when the escape key is pressed.
- On device with touch screen:
- Slideshow: improve aria labels and make controls focusable.
- Hooks: created hooks
useFocusWithin
anduseSlideshowControls
.
- Thumbnail: className is now correctly passed from
imgProps
into theimg
tag
2.2.7 - 2022-03-09
Failed released
2.2.6 - 2022-03-02
- Colors: SCSS primary & secondary colors now use the CSS variables
2.2.5 - 2022-02-24
- Colors: Blue, green, yellow and red palettes have been modified to match our accessibility standards.
- Icon: Make sure to use dark/L1 color variant on yellow components (except for mdiAlertCircle icon).
2.2.4 - 2022-02-23
- Thumbnail: fix image original aspect ratio on ios safari.
2.2.3 - 2022-02-07
- Switch: Added a
inputProps
prop which will be passed to the input tag inside the Switch - Checkbox: Added a
inputProps
prop which will be passed to the input tag inside the Checkbox
2.2.2 - 2022-01-27
- UserBlock: fix button onClick not applied.
2.2.1 - 2022-01-25
- Avatar: Added a
linkProps
andlinkAs
props which will be passed to the Thumbnail child. - UserBlock: Added a
linkProps
andlinkAs
props which will be passed to the Thumbnail child and used to wrap the username. - UserBlock: Added a
nameProps
props which will be passed to the name block. - Thumbnail: better defaults for
type
andaria-Label
attributes when used as a button.
- Fixed Tooltip with target element using a function ref instead of object ref.
- Thumbnail: fix smaller image than the
size
prop.
2.2.0 - 2022-01-21
- Always use colors css variables.
- Thumbnail badge now have a mask around it even if the
size
prop is undefined. - Full internal rework of the Thumbnail component
- No change in React API
- Improved performance and reduced layout shift
- Improved button accessibility with
onClick
- Improved link accessibility with
linkProps
andlinkAs
- Focus point fully reworked
- Improved default error fallback state
- New skeleton loading state
- Compatibility warning: using the
aspectRatio
without asize
, afillHeight
or a size constraint from the parent element will produce a thumbnail shrunk to 0 pixel
2.1.9 - 2021-12-15
- Reverted a11y link improvements (
linkAs
andlinkProps
) on Thumbnail, Avatar and UserBlock introduced in v2.1.5 that introduced a regression on the Thumbnail style.
- Soften dark color on medium / low dark buttons, dark chips, dark flags, dark icons, tabs, navigation items and uploaders.
2.1.8 - 2021-12-10
- Reverted soften dark color on icons that caused issues.
2.1.7 - 2021-12-08
- Textfield: show the maxlength counter on textfields with no label.
- UserBlock : Pass
linkAs
prop to Avatar child.
2.1.6 - 2021-12-03
- Fixed generated typescript types for NPM publication.
- Fixed release script version and changelog update.
- Lightbox : Focus parent element only when his lightbox was previously opened.
2.1.5 - 2021-11-30
- Thumbnail: Added
linkProps
prop to allow the user to turn a thumbnail into an accessible link. - Thumbnail: Added
linkAs
prop into this new prop, to customize the link component. - Avatar: Added a
linkProps
andlinkAs
props which will be passed to the Thumbnail child. - UserBlock: Added a
linkProps
andlinkAs
props which will be passed to the Thumbnail child and used to wrap the username.
- Limit lighten dark color to components:
Button
,IconButton
,Chip
,Flags
,Tabs
,Icon
.
2.1.4 - 2021-11-25
- Slideshow : fixed keyboard navigation, now the right arrow goes to the next slides and the left to the previous one.
- Dialog : Focus parent element everytime the dialog closes, not only on escape and clickaway.
- Soften medium and low dark buttons color.
2.1.3 - 2021-11-19
ListItem
: AddedisDisabled
prop to disable a clickable list item.ListItem
: improve a11y keyboard activation on button list item.
2.1.2 - 2021-11-10
- Fixed
IconButton
typing by making bothicon
andimage
props conditional. This fixes an issue that would occur when extending the interface and forwarding parent props to a childrenIconButton
.
Button
: AddedfullWidth
prop to match the parent width when possible.TextField
: AddedafterElement
prop to add a custom element at the end of the text field.
2.1.1 - 2021-10-28
- New
image
prop forIconButton
, allowing to use an image url instead of an svg path. Will render a<img>
tag an can only be set ificon
prop is undefined (and vice-versa);
2.1.0 - 2021-10-26
@lumx/core
: Reworked style dictionary- Warning: Deprecating CSS and SCSS variables listed in
css/_retro-compat-v2.css
and_retro-compat-v2.scss
. They will be removed in the next major version! - Expanded list of customizable CSS variables
- Centralized material only design tokens
- Warning: Deprecating CSS and SCSS variables listed in
2.0.5 - 2021-10-20
- Popover: fix prevent overflow when provided a boundary ref.
2.0.4 - 2021-10-15
- New
color
prop forSkeletonRectangle
,SkeletonCircle
andSkeletonTypography
.
2.0.3 - 2021-10-04
- New
wide
16/9 aspect ratio forThumbnail
,Uploader
andSkeletonRectangle
.
2.0.2 - 2021-09-22
- Dropdown: fix elevation style
- Dialog: Fix scroll inside on iOS
2.0.1 - 2021-09-15
- Dialog/Lightbox: Fix unexpected scroll to top when closing a dialog or lightbox.
- useInfiniteScroll: Add an error margin of 5px for triggering the infinite scroll so edge cases browser sizes also work.
2.0.0 - 2021-09-01
- New
@lumx/core
CSS variable customization.- New lumapps theme applied by default
- Old Material theme applicable using variables in
css/material.css
1.0.24 - 2021-09-01
- Message: add
icon
prop to customize the message icon.
1.0.23 - 2021-08-27
- Switch: add attribute
aria-checked
for screen readers correct behavior. - Dialog: add
onVisibilityChange
prop to trigger an action when the dialog is actually visible / invisible.
1.0.22 - 2021-08-25
- Switch: add role
switch
for screen readers correct behavior.
- IconButton: Fix missing tooltip when activating
hasBackground
- IconButton: Fix border radius when activating
hasBackground
1.0.21 - 2021-08-05
- ProgressTracker: Fix progress tracker step style regression introduced in v1.0.20
1.0.20 - 2021-08-05
- Icon: Add missing class to style svg correctly
- Dialog/Lightbox: Fix unexpected scroll to top when opening a dialog or lightbox.
1.0.19 - 2021-07-15
- AutoComplete: Added
isRequired
prop to the component to indicated if field is required - AutoCompleteMultiple: Added
isRequired
prop to the component to indicated if field is required
- TextField: Add space after asterisk if component has
isRequired
props
1.0.18 - 2021-06-28
- AlertDialog: props forwarding on the confirm and cancel buttons.
- Fix Select/Dropdown inside Dialog not closing when clicking outside.
- Fix Select focus state not updating correctly.
1.0.17 - 2021-05-27
- Fixed slideshow swipe on touch devices
- Fix vertical scroll (previously blocked)
- Fix mouse/touch click in a slide (previously blocked)
- Do not loopback to the end or start when trying to swipe on the last or first slide
- Improved performance
1.0.16 - 2021-05-20
- Keep slideshow swipe only on touch device.
- Updated lodash from 4.17.19 to 4.17.21 to fix potential security risks.
1.0.15 - 2021-05-03
- Added
hideTooltip
prop toIconButton
component to control whether the tooltip should be hidden or not. Default atfalse
.
- Changed
IconButton
jsdoc.
1.0.14 - 2021-04-23
- Increase specificity of link color CSS classes to avoid incorrect color overrides.
1.0.13 - 2021-04-13
- Limit thumbnail resize update using
requestAnimationFrame
to avoid theResizeObserver loop limit exceeded
error.
1.0.12 - 2021-03-11
- Fixed tabs and progress tracker active index synchronization.
1.0.11 - 2021-02-26
- Added
boundaryRef
prop toPopover
component to override default boundary settings.
- Fixed overflow on avatar badge.
1.0.10 - 2021-02-25
- Make
TableRow
component'stabIndex
controllable. - Allow
typography
to be overriden. Thumbnail
aspect ratio forAvatar
is now fixed tosquare
. This is not a breaking change since the style has been modified to result in the same render as before. This modification prevents rectangular avatars to have a broken ratio.
- Cleanup
Flag
makup and styles - Use
uid
instead ofuniqueid
forCheckbox
default id. - Use
uid
instead ofuniqueid
forRadioButton
default id.
1.0.9 - 2021-02-22
- Fixed
TabProvider
&ProgressTrackerProvider
not callingonChange
when the index is not provided via the props. - Fixed
Link
default style when in button mode (padding + text align).
- New component in React:
Flag
1.0.8 - 2021-02-08
- Added
light
theme by default on Skeleton components. - Added
badge
prop onThumbnail
component.
1.0.7 - 2021-02-03
- Fixed
AlertDialog
export. - Fixed
Thumbnail
image overflowing instead of scaling to the parent height.
1.0.6 - 2021-02-02
- Fixed initial internal state for
TabProvider
(fixes lazy feature that would still render children once).
1.0.5 - 2021-02-02
- Added
dialogProps
prop toDialog
component to app props the dialog element itself. - Added
AlertDialog
component that is aDialog
contextualized to show short messages and that follows the WAI-ARIAalertdialog
a11y patterns. - Added
alert
role toNotification
component for a11y purposes.
- Fixed focus on parentElement of the
Dialog
component. - Fixed closing of tooltip when the anchor element gets hidden by another element.
1.0.4 - 2021-01-25
- Restored JS mdi icon
google-pages
that was removed with mdi v4.
1.0.3 - 2021-01-21
- Added
usePortal
prop toPopover
component (default value istrue
) to be able to not use a portal in some cases.
- Fixed
Switch
content placement forright
position. - Fixed
Lightbox
close on escape witch slideshow inside. - Fixed
Thumbnail
focus point when clickable. - Fixed
Thumbnail
focus state style. - Fixed
Thumbnail
fallback placement. - Fixed
Thumbnail
fill height style. - Fixed
TabProvider
andProgressTrackerProvider
state on unmout/remount.
1.0.2 - 2021-01-18
- Fixed angular z-index system (revert to previous system)
- Fixed
Lightbox
close on escape.
1.0.1 - 2021-01-13
- Fixed
@lumx/react
package.json
metadata - Fixed component TS type
1.0.0 - 2021-01-07
- Added
avatarProps
toCommentBlock
to allow setting custom props to the avatar. - Added
linkProps
toLinkPreview
to allow setting custom props to the link. - Added
avatarProps
toUserBlock
to allow setting custom props to the avatar. - Added
thumbnailProps
toPostBlock
to allow setting custom props to the thumbnail. - Added props forwarding to
Lightbox
component. - Added
name
andvalue
props toSwitch
,CheckBox
andRadioButton
components. - Added
name
prop toAutocomplete
,DatePicker
,TextField
,Button
,IconButton
andSlider
components. - Expose component default props in React
Component.defaultProps
- A
Link
component without anhref
would result in a button looking like a link instead of an anchor. - Added
typography
prop toLink
component. - Added
TabProvider
component wrapping the newTabList
andTabPanel
and handling state (controlled or uncontrolled). - Added
TabPanel
component that wraps the content of a tab (previously wrapped in theTab
component). Implements the WAI-ARIAtabpanel
role. - Added
TabList
component that wrapsTab
components. Implements the WAI-ARIAtablist
role. - Added
ProgressTrackerProvider
component wrapping the newProgressTracker
andProgressTrackerStepPanel
and handling state (controlled or uncontrolled). - Added
ProgressTrackerStepPanel
component that wraps the content of a step. Implements the WAI-ARIAtabpanel
role. - Added
isDisabled
prop toProgressTrackerStep
component. - Added
rightIcon
andleftIcon
props forLink
component. Sizes of icons are based ontypography
prop. - [BREAKING] Added required
label
prop forIconButton
. The label is used asaria-label
for the button and to add a tooltip. This prop is required for a11y purpose. If you really don't want a tooltip, you can give an empty label (this is not recommended). - [BREAKING] Added
nextButtonProps
andpreviousButtonProps
props toDatePickerControlled
,DatePicker
andDatePickerField
components to allow setting custom props to theIconButton
s used to change month. These fields are required because translation are not handled inside the Design System and theIconButton
now requires alabel
for a11y purposes. - [BREAKING] Added
nextButtonProps
andpreviousButtonProps
props toSlideshowControls
component to allow setting custom props to theIconButton
s used to change image. These fields are required because translation are not handled inside the Design System and theIconButton
now requires alabel
for a11y purposes. - Added
slideshowControlsProps
to theSlideshow
component to allow setting custom props to the slideshow controls. Controls are not displayed if this prop is not set. - [BREAKING] Added
toggleButtonProps
prop toExpansionPanel
component to allow setting custom props to theIconButton
s used to toggle the panel. This field is required because translation are not handled inside the Design System and theIconButton
now requires alabel
for a11y purposes. - [BREAKING] Added
toggleButtonProps
prop toSideNavigationItem
component to allow setting custom props to theIconButton
s used to toggle the menu. This field is required because translation are not handled inside the Design System and theIconButton
now requires alabel
for a11y purposes. - Added
clearButtonProps
prop toSelect
component to allow setting custom props to theIconButton
s used to clear the select. This prop is not required since the icon button is not automatically displayed. However, when used to display the button, thelabel
prop inside theclearButtonProps
prop will be required because translation are not handled inside the Design System and theIconButton
now requires alabel
for a11y purposes. - Added
clearButtonProps
prop toTextField
component to allow setting custom props to theIconButton
s used to clear the field. This prop is not required since the icon button is not automatically displayed. However, when used to display the button, thelabel
prop inside theclearButtonProps
prop will be required because translation are not handled inside the Design System and theIconButton
now requires alabel
for a11y purposes. - Added
closeButtonProps
prop toLightbox
component to allow setting custom props to theIconButton
s used to close the lightbox. This prop is not required since the icon button is not automatically displayed. However, when used to display the button, thelabel
prop inside thecloseButtonProps
prop will be required because translation are not handled inside the Design System and theIconButton
now requires alabel
for a11y purposes. - Added
tooltipProps
toIconButton
to allow setting custom props to the tooltip. - [BREAKING] Added
htmlFor
prop required forInputLabel
since it is required for<label>
for a11y purposes. - Added forwarded props to the
Select
component. - Added
variant
prop forCommentBlock
component (eitherindented
by default orlinear
).
- [BREAKING] Renamed
url
prop tolink
forLinkPreview
component. - [BREAKING] Renamed
onToggle
prop toonChange
forSwitch
component. - [BREAKING]
avatar
prop fromUserBlock
component is now a string and corresponds to the avatar url. Any other avatar props should be passed toavatarProps
prop. - [BREAKING] Renamed
handleClick
prop toonClick
andactionCallback
prop toonActionClick
forNotification
component. - [BREAKING] Renamed
closeCallback
,openCallback
andtoggleCallback
props respectively toonClose
,onOpen
andonToggleOpen
forExpansionPanel
component. - [BREAKING]
Checkbox
now useschecked
(edit: and its aliasisChecked
, see below) prop instead ofvalue
prop to know whether it is toggled on or not. This is more consistant with HTML native naming convention and this is also how it is used forRadioButton
andSwitch
. As said above,value
has been added as prop and acts like the HTML native propvalue
. - [BREAKING] Changed
onChange
method signature forRadioButton
component. This is breaking since now thevalue
argument ofonChange
method is required. - Changed
onChange
method signature forSwitch
,CheckBox
,Autocomplete
,TextField
,DatePicker
andSlider
components. isDisabled
prop is now the official name for the disabled state of all components (althoughdisabled
will also work for compatibility with the HTMLdisabled
attribute)isChecked
prop is now the official name for the checked state of all checkable components (althoughchecked
will also work for compatibility with the HTMLchecked
attribute).- [BREAKING] The prop
value
ofTextField
component can not be anumber
anymore. The user would have to cast the value on its side. - [BREAKING] Renamed
hideMinMaxlabel
prop tohideMinMaxLabel
forSlider
component. - Default color of
Badge
is nowprimary
. - [BREAKING]
Tab
component doesn't wrap the tab content anymore (useTabPanel
for that). Implements the WAI-ARIAtab
role. - [BREAKING]
onClick
prop forMosaic.thumbnail
prop is no longer automatically passing the index. ProgressTracker
component now implements the WAI-ARIAtablist
role.- [BREAKING]
activeStep
prop forProgressTracker
component has been removed and is now handled byProgressTrackerProvider
component. ProgressTrackerStep
components are button instead of anchor for better a11y. Aria attributes have been added according to WAI ARIAtab
role since stepper are similar to tabs in term of a11y.- [BREAKING]
onClick
prop forProgressTrackerStep
component is not used anymore.ProgressTrackerProvider
component has anonChange
prop instead. Therefore, a step is now clickable if it is not disabled. - [BREAKING]
DatePicker
andDatePickerField
value
prop can no longer be aMoment
object. This will allow us to removemoment
dep in the future without generating breaking change later. Thevalue
prop can no longer be astring
to avoid handling incompatible values.value
can only be aDate
(orundefined
for non selectable values). - [BREAKING] Thumbnail
loading
prop now takeeager
orlazy
string (instead of enum). - [BREAKING]
@lumx/react
is now exported as an ESM module targeting the browserlistdefaults
query. The package is not compatible with IE anymore. You can keep the compatibility by configuring your own polyfills and/or transpilation in your build setup. - [BREAKING]
lodash
is now defined as apeerDependencies
. You must install them separately from the@lumx/react
package. - [BREAKING] Replaced
buttonRef
byref
inButton
andIconButton
components. - [BREAKING] Replaced
buttonGroupRef
byref
inButtonGroup
component. - [BREAKING] Replaced
chipRef
byref
inChip
component. - [BREAKING] Replaced
iconRef
byref
inIcon
component. - [BREAKING] Replaced
linkRef
byref
inLink
component. - [BREAKING] Replaced
listElementRef
byref
inList
component. - [BREAKING] Replaced
popoverRef
byref
inPopover
component. - [BREAKING] Replaced
userBlockRef
byref
inUserBlock
component. - [BREAKING] The alternative text is now required (
alt
prop inThumbnail
,thumbnails[].alt
inMosaic
,alt
inImageBlock
,thumbnailProps.alt
inPostBlock
,thumbnailProps.alt
inLinkPreview
,alt
inAvatar
,avatarProps.alt
inCommentBlock
andavatarProps.alt
inuserBlock
). - [BREAKING] The title is now required in
ImageBlock
. - [BREAKING] Reworked Thumbnail CORS default.
crossOrigin
now default toundefined
instead of'anonymous'
.isCrossOriginEnabled
prop was removed (usecrossOrigin={undefined}
instead). - [BREAKING] Upgrade to mdi v5.8.55 and handle backward compatibility (see details).
Avatar
component now usesThumbnail
component.- [BREAKING] Since
alt
in now required forAvatar
,avatar
andavatarProps
props have been merged intoavatarProps
for bothCommentBlock
andUserBlock
. - [BREAKING] Removed
ListItemSize
(useSize
instead),TabListPosition
(useAlignment
instead),SwitchPosition
(useAlignment
instead),ThScope
(was not used). - [BREAKING] Renamed
Kind.valid
intoKind.success
and removedMessageKind
andNotificationType
(useKind
instead). - Loosened enum type so you can use the string value instead (ex: you can use
's'
instead ofSize.s
).
- [BREAKING] Removed
HTMLElement
as type inPostBlock
component props. - [BREAKING] Removed
onOpen
prop fromDialog
component. User should useisOpen
from its side. - [BREAKING] Removed
thumbnailAspectRatio
prop fromPostBlock
component. User should pass it usingthumbnailProps
instead. - [BREAKING] Removed
onOpen
,role
andnoWrapper
props fromLightbox
component. - [BREAKING]
aspectRatio
,crossOrigin
,focusPoint
,isCrossOriginEnabled
andonClick
props have been removed fromImageBlock
component. These props will now be passed using theImageBlock.thumbnailProps
prop. - [BREAKING] Removed
Tabs
component replaced by theTabProvider
andTabList
components. - [BREAKING] Removed
thumbnails.url
prop on theMosaic
(useimage
instead). - [BREAKING]
isClosingButtonVisible
prop ofLightbox
component has been removed. Passing thelabel
prop usingcloseButtonProps
prop is enough to determine the visibility of the icon button. - [BREAKING]
isClearable
prop ofTextField
,Autocomplete
andAutocompleteMultiple
components has been removed. Passing thelabel
prop usingclearButtonProps
prop is enough to determine the visibility of the icon button. - [BREAKING]
hasControls
prop ofSlideshow
component has been removed. UsingslideshowControlsProps
prop is enough to determine the visibility of the slideshow controls. - [BREAKING]
hasChildren
andhasIndentedChildren
props forCommentBlock
component have been removed. - [BREAKING] Removed
isFollowingWindowSize
andresizeDebounceTime
onThumbnail
. - [BREAKING] Removed
useCustomColors
props (component colors will be customizable using CSS variable overrides). - [BREAKING] Removed
lumapps
&material
theme in@lumx/color
(we now provide a single theme overridable with CSS variables)
- Fixed
DatePicker
component to prevent switching month when selecting a date. - Fixed
Tooltip
placement onIcon
andIconButton
. - Fixed
Switch
component. Its content should not take the full width of its parent. - Fixed image cache in
Thumbnail
. - Fixed focus point performance in
Thumbnail
(full rewrite using react hooks).
0.28.2 - 2020-12-11
- Added
headerActions
prop toCommentBlock
component to add actions to the header. - Added
SkeletonRectangle
,SkeletonCircle
andSkeletonTypography
components.
- Fixed
text
prop of theCommentBlock
component to acceptReactNode
type.
0.28.1 - 2020-12-03
- Fixed ClickAwayProvider initialization error using deferred initialization.
- Fixed
Popover
placement on children update. - Fixed
Popover
andDropdown
scrollbar behavior. - Fixed
Popover
arrow placement on placement variantstart
andend
.
- Forward synthetic event in List
onListItemSelected
prop and ListItemonItemSelected
prop.
0.28.0 - 2020-11-17
- [BREAKING]
angular
andjquery
are now exclusively defined aspeerDependencies
. You must install them separately from@lumx/angularjs
. - [BREAKING] updated
@lumx/angularjs
to jquery v3.5.1.
0.27.0 - 2020-11-05
- [BREAKING]
react
,react-dom
,moment
andmoment-range
are now exclusively defined aspeerDependencies
. You must install them separately from@lumx
packages.
0.26.2 - 2020-10-28
- Added component
SlideshowControls
to control a slideshow from the outside - Add
linkAs
prop onButton
andIconButton
to customize the link component (can be used to inject theLink
component fromreact-router
).
Link
prop type is now more permissive to accommodate for alternative components injected inlinkAs
.- Expose component default props in React's
Component.defaultProps
- Make it possible to override
tabIndex
androle
props ofListItem.linkProps
.
- Fixed page freeze when trying to use keyboard navigation on
List
component that has custom children.
0.26.1 - 2020-10-14
- [BREAKING] Downgrade mdi back to v4.2.95.
0.26.0 - 2020-10-13
- Add
gap
property toFlexBox
component. - Add has divider helper.
- Add optional
closeOnClick
property toSelect
component. - Add
linkAs
prop onSideNavigationItem
,ListItem
andLink
to customize the link component (can be used to inject theLink
component fromreact-router
).
- [BREAKING] Upgrade to mdi v5.6.55 and handle backward compatibility.
- [BREAKING]
lumx-has-divider
mixin now accepts a position constant as second parameter (lumx-base-const('position', 'TOP|RIGHT|BOTTOM|LEFT')
).
0.25.16 - 2020-09-16
- Add
thumbnailProps
toImageBlock
to allow setting custom props to the thumbnail.
0.25.15 - 2020-09-08
- Fix
Thumbnail
css issues when displayed withlumx-thumbnail--fill-height
classname.
0.25.14 - 2020-09-03
- Add
onActionClick
onSideNavigationItem
to have a dedicated action on the chevron icon and let the onClick on the link.
- Fix
Thumbnail
component loading issues for firefox
0.25.13 - 2020-09-01
- Fix CORS issues on
Thumbnail
component - Fix
Thumbnail
component loading and error state handling - Remove anchor wrapper style from
Tooltip
component.
- Add
isCrossOriginEnabled
andcrossOrigin
missing props onImageBlock
component to forward them toThumbnail
component
0.25.12 - 2020-08-31
- Pass type props to input on
TextField
component.
0.25.11 - 2020-08-27
SideNavigationItem
is now able to handle 2 actions. On the label link and on the chevron icon button.SideNavigation
is now indented on its children menus.
0.25.10 - 2020-08-26
- Use locale prop on
DatePickerField
component.
0.25.9 - 2020-08-25
- Make
Thumbnail
appear correctly on Safari intoMosaic
component.
- Added
ThumbnailProps
props to theMosaicElement
interface to be able to forward those props to theThumbnail
component inside theMosaic
component. - Added
fitWithinViewportHeight
prop on theDropdown
to disable the height shrinking.
Tooltip
are now displayed onfocus
in addition withmouse
events.
0.25.8 - 2020-08-05
- Fix frozen
Tooltip
when changing disabled state of a button wrapped in a tooltip.
0.25.7 - 2020-08-04
- Fixed and improved
Dropdown
shrinking system. - Fixed unwanted scroll to the top on the screen when opening a
Dropdown
. - Fix
Tooltip
display on disabled anchor.
- Improved
useInfiniteScroll
to prevent conditional hooks.
- Added
focusElement
prop to thePopover
component to be able to focus on open.
0.25.6 - 2020-07-31
Dropdown
placement is not limited tobottom
,bottom-start
andbottom-end
anymore.Tooltip
anchor is wrapped only if it is not a Button, IconButton, Icon or React HTML Element. Removedinline-block
display style.- Fixed
Popover
maxHeight when value is NaN. - Fixed
InputLabel
andInputHelper
bad display (flex instead of block)
0.25.5 - 2020-07-23
- [BREAKING]
Tooltip
placement is nowbottom
by default.
0.25.4 - 2020-07-22
ListItem
now properly keep the givenisHighligthed
prop value when controlled from a parent component. FixesAutocomplete
&AutocompleteMultiple
keyboard arrow navigation in the completed suggestions.- [BREAKING]
Tooltip
placement is nowtop
by default.
- [BREAKING]
Dropdown
placement is limited tobottom
,bottom-start
andbottom-end
.
0.25.3 - 2020-07-01
Popover
(andDropdown
) now fits to anchor width using min width.Dropdown
now hasBOTTOM
placement by default.- Fix
Popover
click away wrapper reference.
0.25.2 - 2020-06-30
Tooltip
can have a multilinelabel
by putting\n
character inside the string.
Tooltip
does not appear if thelabel
is empty,null
orundefined
.
0.25.0 - 2020-06-29
ListItem
component is now able to use a link as HTML element to wrap content.- Click away and escape are handled inside the
Popover
usingcloseOnClickAway
andcloseOnEscape
props. - The
Popover
can now have an anchor. Popover
now can show an arrow pointing on the anchor using thehasArrow
prop.label
prop has been added toTooltip
component.fitWithinViewportHeight
props has been added toPopover
component (false
by default, set totrue
forDropdown
). It shrink the popover if there is not enough space even after flipping.
List
no longer requires to have theisClickable
prop set to have the correct styling on clickable list item.List
keyboard navigation now correctly skips non clickable list items.ListItem
component is now able to use a link as HTML element to wrap content- [BREAKING]
Popover.useComputePosition
hook has been removed. - [BREAKING]
Offset
type does not havevertical
andhorizontal
keys anymore but hasalong
andaway
props. - [BREAKING]
Popover
computes position internally and add popover ref internally. Click away and escape are handled inside the popover. The popover can now have an anchor.popoverRect
,isVisible
andpopoverRef
props have been removed.anchorRef
,placement
,offset
,fitToAnchorWidth
,isOpen
,closeOnClickAway
,closeOnEscape
,onClose
andhasArrow
props have been added. - [BREAKING]
Tooltip
takes anchor as children and label as prop.anchorRef
prop has been removed.label
prop has been added. - [BREAKING] For the
Dropdown
component, the propcloseOnClick
now controls whether to close the dropdown when clicking inside it whereas thecloseOnClickAway
prop controls whether to close the dropdown when clicking outside. The propshowDropdown
has been renamedisOpen
. Also, seeOffset
typing change. - [BREAKING] For the
Autocomplete
component, the propcloseOnClick
has been renamedcloseOnClickAway
. Also, seeOffset
typing change.
- Remove required prop on
lx-text-field
andlx-select
input label - Fix calendar display for the
DatePicker
. - Fix on
Tooltip
that would persist even after the mouse has been moved out of the anchor. AutocompleteSimple
andSelect
now automatically close when a value is selected.
0.24.3 - 2020-06-24
- [BREAKING] Changed
thumbnailProps
prop type fromLinkPreview
to avoid typescript throwing an error ifthumbnailProps.image
was not specified even though it is already set by theimage
prop. - Allow event propagation on before/after element on
Chip
component when no handler is provided. - Fix error in storybook using
useComputePosition
-based components.
0.24.2 - 2020-06-18
Mosaic
component is now correctly displayed on IE11.- Fix missing grey color (in material theme) in the generated SCSS color palette
0.24.0 - 2020-06-11
TextField
component is now computing the number of rows (ifmultiple
is set) at the first rendering.- Fix centering issue on fallback icon in
Thumbnail
component when usingfillHeight
prop. - Fix nested click away for
Dialog
,Dropdown
,Select
andAutocomplete
(this fixes the dialog automatically closing when clicking on a nested select or dropdown.) - Fix position of the dropdown arrow icon when the select has no value (Material theme).
- The
DatePicker
andDatePickerFields
components now accept a javascript Date object or string as value. - [BREAKING] Removed SCSS variables
$lumx-theme-{primary,blue,...}
- [BREAKING] Renamed SCSS variables
$lumx-theme-{primary,blue,...}-{N,L1,...}
into$lumx-color-{primary,blue,...}-{N,L1,...}
- [BREAKING] Renamed SCSS variable
$lumx-theme-border-radius
into$lumx-border-radius
- [BREAKING] Renamed SCSS mixin
lumx-theme-color-variant()
into$lumx-color-variant()
- [BREAKING] Renamed SCSS mixin
lumx-theme-best-color()
into$lumx-best-color()
- [BREAKING] Renamed CSS classes
.lumx-theme-color-*
into.lumx-color-font-*
- [BREAKING] Renamed CSS classes
.lumx-theme-background-*
into.lumx-color-background-*
- Handle default size on fallback icon in
Thumbnail
component (Size.m).
0.23.0 - 2020-05-29
- Added optional
defaultMonth
prop to componentsDatePickerField
andDatePicker
. - Added optional
imgProps
prop to componentThumbnail
. - Added optional
fallback
prop (svg string or react node) to componentThumbnail
. - Added
thumbnailProps
prop toLinkPreview
. - Added
useImage
hook to preload an image and get states from it (isLoaded and hasError).
- [BREAKING] Replaced
today
andmonthOffset
props byselectedMonth
forDatePickerControlled
component.
- Trigger the infinite scroll callback on display if enough space with the
useInfiniteScroll
hook. - Fixed chips taking place before icons in
TextField
component. - Fixed
Mosaic
thumbnails showing as clickable even thoughonClick
wasn't defined. - [BREAKING] Fixed prop Interfaces of
Autocomplete
andDropdown
by changingonInfinite
toonInfiniteScroll
. - Added
type="button"
toTextField
"clear" button whenisClearable
istrue
to avoid clearing field when user tries to submit a form. - Moved
useFocusedImage
tohooks
folder.
0.22.0 - 2020-04-21
- [BREAKING] The component
WebBookmark
has been renamedLinkPreview
. - [BREAKING] split
Select
component intoSelect
(with single value selected) andSelectMultiple
for multiple value selected - Remove wrapper sentinel to only use css for scrollable
Dialog
- Fix for
LinkPreview
: elements linked to optional props are no longer rendered when the related prop is not defined.
0.21.19 - 2020-04-16
- Added
hasIndentedChildren
prop toCommentBlock
component
0.21.18 - 2020-04-16
- Fix
SideNavigationItem
link color
0.21.17 - 2020-04-15
- Added
linkProps
prop toSideNavigationItem
component - Declared
@lumx/react
,@lumx/icons
and@lumx/core
as side-effect free
0.21.16 - 2020-04-10
- Fix padding on
Chip
component if has after or has before
0.21.15 - 2020-04-01
- Added
contentRef
prop toDialog
component - Added
linkRef
onLink
component
- Fixed blurry Tooltip
0.21.14 - 2020-03-27
- Added
isCrossOriginEnabled
prop toTumbnail
component - Added
crossOrigin
prop toTumbnail
component - Added
isFollowingWindowSize
prop toTumbnail
component - Added
resizeDebounceTime
prop toTumbnail
component
0.21.13 - 2020-03-23
- Allow number type on
TextField
component value
0.21.12 - 2020-03-16
- Fix thumbnail image loading on IE
- Fix thumbnail focus point update when changing size or aspect ratio
0.21.11 - 2020-03-12
- Publish source code on NPM for
@lumx/react
0.21.10 - 2020-03-12
- New component in React:
FlexBox
- New component in React:
Mosaic
- Added
size
prop toWebBookmark
component - Added
badge
prop toAvatar
component - Change
avatar
prop ofUserBlock
component fromstring
toAvatarProp | string
to pass badge properties
- Added ReactNode as an allowed type for the label of the
SideNavigationItem
for typescript support - [BREAKING] Rename
IBaseBadgeProps
asBadgeProps
- [BREAKING] Rename
IInputHelperProps
asInputHelperProps
- [BREAKING] Rename
IInputLabelProps
asInputLabelProps
- [BREAKING] Rename
IFocusPoint
asFocusPoint
- Added ReactNode as an allowed type for the label of the
Tab
component for typescript support
- Fixed
Link
component Typescript types
0.21.9 - 2020-02-20
- New component in React:
Link
- Added
onBlur
prop toSelect
component - New component in React:
WebBookmark
0.21.8 - 2020-02-19
- Added
focusPoint
prop toImageBlock
component
0.21.7 - 2020-02-14
- Added
focusPoint
prop toThumbnail
component
0.21.6 - 2020-02-13
- Added
isRequired
prop toInputLabel
,TextField
andSelect
components - Added
lx-is-required
prop tolx-input-label
,lx-text-field
andlx-select
components
- Close popover on
DatePickerField
date pick - Pass appropriated
DatePickerField
props toTextField
component
- Correctly init value by ignoring time on
DatePicker
component - Move
textFieldRef
toTextField
component wrapper - Prevent
Notification
to be visible whenisOpen
is false
0.21.5 - 2020-02-10
@lumx/core
is now in full TypeScript (exposed on NPM)@lumx/icons
now exposes TypeScript types on NPM@lumx/react
now exposes TypeScript types on NPM
0.21.4 - 2020-02-04
- Added
isDisabled
prop toTableRow
component - Added
lx-is-disabled
prop tolx-table-row
component
- Interpolate variables when using
lx-input-label
andlx-input-helper
components
0.21.3 - 2020-02-03
- Added
isClickable
andisSelected
props toTable
component
0.21.2 - 2020-02-01
- Reset input label cursor on
ProgressTracker
- Apply
TextField
input min width only if has chips
0.21.1 - 2020-01-31
- Do not display
TextField
andSelect
header if no label
0.21.0 - 2020-01-30
- Remove useless
List
auto-focus on mount if is clickable
- [BREAKING] Externalized
moment
andmoment-range
dependencies from @lumx/react bundle
0.20.1 - 2020-01-29
- Fixed Dropdown focus trigger on open and close (fix on
useFocus
hook).
0.20.0 - 2020-01-28
- [BREAKING] Changed
type
prop tomultiline
flag prop in theTextField
component - [BREAKING] Changed
lx-checkbox-help
transclude slot tolx-checkbox-helper
fromlx-checkbox
component - [BREAKING] Changed
lx-radio-button-help
transclude slot tolx-radio-button-helper
fromlx-radio-button
component - [BREAKING] Changed
lx-switch-help
transclude slot tolx-switch-helper
fromlx-switch
component - [BREAKING] Changed
lx-error
prop tolx-has-error
fromlx-text-field
andlx-select
components - [BREAKING] Changed
lx-valid
prop tolx-is-valid
fromlx-text-field
andlx-select
components - [BREAKING] Changed
lx-helper
prop tolx-has-choices-helper
fromlx-select
component - [BREAKING] Changed
lx-helper-message
prop tolx-choices-helper
fromlx-select
component - Use the
useFocusOnOpen
hook to focus on theList
child of aDropdown
- Refactored
DatePicker
component to use Popover instead of Dropdown
- Fix: dialog focus trap interacting with other components (select, text field, etc.).
- Fix: dialog click away at the bottom of the dialog
- Fixed
Popover
pixelated rendering - Remove
Popover
closing when the anchor is out of the screen - Fixed
Dropdown
position re-calculation when children changes
- Added
helper
prop toTextField
component - Added
error
prop toAutocomplete
,Select
andTextField
component - Added
lx-helper
andlx-error
props tolx-text-field
andlx-select
components - Added
Message
component - Added
useFocus
hook - Added
focusElement
prop on dialog to select the element to focus when opening the dialog - Added
forceHeaderDivider
andforceFooterDivider
props on dialog force the display of header and footer dividers - Added use of
<header>
and<footer>
element in the dialog component - Added
size
prop toImageBlock
component - Added
lx-size
prop tolx-image-block
component - Added keyboard interaction to
DatePicker
component - Added
useFocusTrap
onDatePickerField
- Added
clearable
prop onDatePickerField
0.19.0 - 2020-01-02
- [BREAKING] Removed
variant
prop fromexpansionPanel
component - [BREAKING] Removed
isClickable
prop fromListItem
component (use it on theList
instead)
- Added
hasBackground
prop toexpansionPanel
component - Added
hasShape
prop toicon
component - Added
theme
prop toicon
component - Added
itemPadding
prop tolist
component - Added
badge
component
0.18.9 - 2019-12-13
- When we are using the AutocompleteMultiple, you can now just display the suggestions with the same size as the input.
- For the Autocomplete simple, we add the possibility to prevent refocus on close.
0.18.7 - 2019-12-06
- Added
maxLength
prop totextField
component - [BREAKING] Removed
helper
prop fromtextField
component
0.18.5 - 2019-12-04
- Add
zIndex
props on every appearing component
0.17.0 - 2019-11-28
- Whole new project architecture (with new build script and code cleanup)
0.15.3 - 2019-11-25
- Fix an infinite re-rendering case on SlideshowControls #233
0.15.2 - 2019-11-15
- Use
Popover
in theTooltip
component
0.15.1 - 2019-11-07
- Fix scrollbar re-appearing when
Dialog
re-renders
0.15.0 - 2019-11-06
- Uploader component #208
- Deprecated
ThumbnailAspectRatio
(useAspectRatio
instead) #208
0.14.0 - 2019-11-05
- Multiple Autocomplete component #209
isHighlighted
prop forChip
component #209- Added
isClearable
andchips
props for Autocomplete #209
Popover
bug that made the content be displayed on the top left corner.- Make autocomplete multiple demo remove a value upon clicking on the entire chip.
- Remove
cursor: pointer
for after-Chip icon.
0.13.0 - 2019-11-04
- Deprecated
ListItemSize
(useSize
instead). - [BREAKING] Remove
Switch
internal state. It's value is now set by thechecked
prop and can be controlled with theonToggle
prop
0.12.0 - 2019-10-30
- Text field enhancements (
chips
,onFocus
,onBlur
,textfieldRef
,inputRef
props) #199 - Autocomplete component #191
- TypeScript types now available in the NPM @lumx/react package!
- Fix stroke-width property on react progress bar.
- Fixes to Text Area related to Input resizing and
valid
anderror
states in Material
0.11.0 - 2019-10-23
- TypeScript and JSDoc cleanup for
SideNavigation
component. - [BREAKING] The
label
andhelper
of theRadioButton
component are now props and not children. - [BREAKING] The
onChange
callback of theRadioButton
component now provides the value directly without wrapping object. - [BREAKING] The
tags
prop of theImageBlock
must now be JSX and not an array. - Minor SCSS style changes on the
Tooltip
component. - Image Lazy Loading for Thumbnail Component [#190]
- The
tsx
demo of theSideNavigation
andRadioButton
component.
0.10.0 - 2019-10-03
- Added
EditableMedia
component.
- [BREAKING] The
label
andhelper
of theCheckbox
component are now props and not children. - [BREAKING] The
checked
props of theCheckbox
component has been renamedvalue
. - [BREAKING] The
onChange
callback of theCheckbox
component now has a boolean value argument instead of the{ checked: boolean }
object - TypeScript and JSDoc cleanup for
List
component - Adding dark and light theme variant for text and meta blocks for
PostBlock
component.
- The
tsx
demo of theCheckbox
andList
component has been removed