Releases: vtex/styleguide
Releases · vtex/styleguide
v9.0.0
Changed
- Breaking Change Make
vtex.styleguide
work with apps that are build with the new react builder 3.x
.
v8.13.0
Added
Toast
Add horizontalPosition
to showToast
options.
v8.11.3
Fixed
- Button when using block prop and small size, button height was smaller than it was supposed to be.
- Table Align toolbar buttons and use ButtonWithIcon instead of Button.
v8.11.2
Added
- Conditions Add the
subjectPlaceholder
prop to control the placeholder
of the subject atom dropdown.
Changed
- Conditions Remove
flex-auto
from the subject and verb atoms.
- Conditions Automatically select first verb when changing a subject.
v8.11.1
Changed
-
Conditions Modify object atom prop to allow developers to pass extra
parameters to the render function. Now instead of passing a function
to the
object prop you need to pass an object
with the following structure:
const options = {
...
verbs: [
{
...
object: {
renderFn: foo,
extraParams: {
a: 1,
b: 2,
...
}
}
},
]
}
The extraParams property will be available in your render function as a
parameter like the example below:
foo = ({ statements, values, statementIndex, error, extraParams }) => {
// here goes the render logic of you object component
}
v8.10.5
Fixed
- Fixed Dropdown label adding a stray margin at the top of the component.
- Fixed Radio getting squished on small sizes.
Changed
react
& react-dom
version to 16.7.0
v8.10.4
Fixed
- Toast Pass event parameter to onClick
v8.10.3
Fix
- Fix #458 by adding postinstall script to run the install dependencies for the
react/
folder after installing dependencies for the root
folder.
v8.10.2
Added
- Table loading prop, holding the table size.
v8.10.1
Changed
- Toast Allow single line toast on small screens if the message is short enough.