Major Changes
-
#5816
37ce3ebThanks @lisalupi! - ! BREAKING CHANGES !
In order to start using the new style, you will need to import new<ThemeProvider />and import new CSS generated at build time:import { ThemeProvider } from "@emotion/react"; import { consoleLightTheme, ThemeProvider as ThemeProviderUV, } from "@ultraviolet/themes"; import "@ultraviolet/ui/styles"; // Generated CSS used by components export const App = (children) => { <ThemeProvider theme={consoleLightTheme}> <ThemeProviderUV>{children}</ThemeProviderUV> </ThemeProvider>; };
-
#5816
37ce3ebThanks @lisalupi! - ! POTENTIAL BREAKING CHANGES !
Fixed themaxLengthprop on TagList. This prop was previously implemented incorrectly and would only reduce the threshold by one when the total length exceededmaxLength.
This change might affect the number of visible tags, particularly if you have many long tags (the defaultmaxLengthis set to600characters) or if you have specified a custommaxLength. -
#5819
48cc201Thanks @lisalupi! - Refactor all components to usevanilla-extractinstead ofEmotion -
#5816
37ce3ebThanks @lisalupi! - BREAKING CHANGE Remove all emotion animation, replace with vanilla-extract animation by default.import { fadeIn } from "@ultraviolet/ui"; // vanilla-extract animation
To use animation in another context, add
Defaultat the end of the animation name:import { fadeInDefault } from "@ultraviolet/ui";
This returns a string that can be used in many different places.
- Emotion: create the keyframe then use it:
import { fadeInDefault } from "@ultraviolet/ui"; import { keyframes } from "@emotion/react"; const fadeInEmotion = keyframes`${fadeInDefault}`; const StyledDiv = styled.div` animation: ${fadeInEmotion} 1s ease infinite; `;
- Vanilla CSS: simply add the name of the animation you want to use as a className.
const MyComponent = () => <div className="fadeIn">Hello World!</div>;
To customize the animation, you must overrule the default settings:
const MyComponent = () => ( <div className="fadeIn" style={{ animationDuration: "300ms" }}> Hello World! </div> );
-
#5816
37ce3ebThanks @lisalupi! - - RemoveEmotion- Removed
Breakpoint: use directlyupanddown
- Removed
-
#5816
37ce3ebThanks @lisalupi! - -Bullet: BREAKING CHANGE "disabled" is now a prop instead of a value of prop "sentiment" -
#5816
37ce3ebThanks @lisalupi! - Theme provider has been moved to@ultraviolet/themespackage.@ultraviolet/uiimports it internally and exportThemeProvideranduseThemehook for convenience.
Minor Changes
-
#5816
37ce3ebThanks @lisalupi! -ListHeaderCell: Rename propminWith->minWidth -
#5816
37ce3ebThanks @lisalupi! -UnitInput: remove&&in style, since it is not needed anymore and replace id use with vanilla-extract class -
#5816
37ce3ebThanks @lisalupi! -TagList: popover should be openable using keyboard keys (space or enter) -
#5816
37ce3ebThanks @lisalupi! -SelectableCard: add "stopPropagation" in the children for keyboard events -
#5816
37ce3ebThanks @lisalupi! - feat(ui): add TreeMap chart -
#5816
37ce3ebThanks @lisalupi! - Remove vanilla-extract variables inBarStackand create them directly in CSS -
#5816
37ce3ebThanks @lisalupi! - Refactor search input to use fuzzy search from scaleway lib -
#5816
37ce3ebThanks @lisalupi! -TextInput: remove default outline when the input is focused (Firefox)
Patch Changes
-
#5816
37ce3ebThanks @lisalupi! - Fix className useless spacing on Banner and Button -
#5816
37ce3ebThanks @lisalupi! -TagInput: "paste" shoud not automatically create a new tag -
#5816
37ce3ebThanks @lisalupi! - Add htmlFor on label forVerificationCode -
#5816
37ce3ebThanks @lisalupi! -EmptyState: content text should be neutral -
#5816
37ce3ebThanks @lisalupi! -ListandUnitInput: Fix vanilla-extract typos -
#5816
37ce3ebThanks @lisalupi! - Fix<NumberInput />disabled button not working on re-render -
#5816
37ce3ebThanks @lisalupi! - Fix<Table.Row />propselectDisabledto be disabled when set to false -
#5816
37ce3ebThanks @lisalupi! - Fix<Checkbox />input size being wrong -
#5816
37ce3ebThanks @lisalupi! -Drawer: fix animation on small -
#5816
37ce3ebThanks @lisalupi! - Fix<Snippet />improve selection by removing after element on most of the lines -
#5816
37ce3ebThanks @lisalupi! -Popup: position is recomputed when children changes -
#5816
37ce3ebThanks @lisalupi! -ActionBar&Text: Use css variable instead of style with vanilla extract -
#5816
37ce3ebThanks @lisalupi! - Add propstyleto every component -
#5816
37ce3ebThanks @lisalupi! - Fix<Stack />to provideasprop for polymorphic composition used in<Navigation />for example -
#5816
37ce3ebThanks @lisalupi! -SelectableCardOptionGroup: fix issue with radio style -
#5816
37ce3ebThanks @lisalupi! - Fix<TextArea />when tooltip is set -
#5816
37ce3ebThanks @lisalupi! - Add e2e test ofSelectableCardwithTextArea -
#5816
37ce3ebThanks @lisalupi! -Menu&Popup: whenplacement='bottom'orplacement='top', avoid negative values for "translate3d" to prevent negative positioning/x-overflow -
#5816
37ce3ebThanks @lisalupi! -SelectInput: should display values correctly on first render -
#5816
37ce3ebThanks @lisalupi! - Add propmaxWidthon<UnitInput />component -
#5816
37ce3ebThanks @lisalupi! - Fix<Stack />useless style applied -
#5816
37ce3ebThanks @lisalupi! -EmptyState: fix sentiment on title -
#5816
37ce3ebThanks @lisalupi! - Fix<ThemeProvider />to inject theme variable in the<head>of the page -
#5816
37ce3ebThanks @lisalupi! -SelectInput: placeholder shoul be aspaninstead of ap -
#5816
37ce3ebThanks @lisalupi! -Button: remove background color when hovering a disabled outlined/ghost button -
#5816
37ce3ebThanks @lisalupi! -Carousel: fix container width -
#5816
37ce3ebThanks @lisalupi! -TagInputandTextArea: fix size -
#5816
37ce3ebThanks @lisalupi! -ExpandableCard: new prop "open" (uncontrolled version of prop "expanded) -
#5816
37ce3ebThanks @lisalupi! - Updated dependency@types/reactto19.2.6.
Updated dependency@types/react-domto19.2.3. -
#5816
37ce3ebThanks @lisalupi! -Popup: Make sure to clear all timers when unmount -
#5816
37ce3ebThanks @lisalupi! -Tag: container should be a "span", not a "div" -
#5816
37ce3ebThanks @lisalupi! - Fix<Stack />and<Row />variables to provide default values -
#5816
37ce3ebThanks @lisalupi! - Fix<Snippet />to preserve indentation -
#5816
37ce3ebThanks @lisalupi! - AllPopupcomponents (Popover,Tooltip,Menu): 4 new positionsauto-to have auto-placement but give priority to a direction. For instance,auto-bottomwill try to place the popup beneath the disclosure first, if there is not enough place it will try top, then left, then right.
The priorities are :auto-bottom: bottom > top > left > rightauto-left: left > right > top > bottomauto-right: right > left > top > bottomautoandauto-top: top > bottom > left > right
BREAKING CHANGE
Menu: propnoShrinkrenamedshrinkwith opposite behavior -
#5816
37ce3ebThanks @lisalupi! -Breadcrumbs: add padding on item without prop "to" -
#5816
37ce3ebThanks @lisalupi! - Fix<Button />class having a space in the beggining -
#5816
37ce3ebThanks @lisalupi! -Button: add box-shadow when button is active (accidentaly removed while migrating to vanilla extract) -
Updated dependencies [
37ce3eb,37ce3eb,37ce3eb,37ce3eb,37ce3eb,37ce3eb,37ce3eb,37ce3eb,48cc201,37ce3eb,37ce3eb,37ce3eb,37ce3eb,37ce3eb,37ce3eb,37ce3eb,37ce3eb,37ce3eb,37ce3eb,37ce3eb,37ce3eb]:- @ultraviolet/[email protected]
- @ultraviolet/[email protected]