Releases: salesforce/design-system-react
Releases · salesforce/design-system-react
v0.7.3
Release 0.7.3
Minor features
- Custom menu items renders are available with
menuItem
prop for Combobox.
v0.7.2
Release 0.7.2
Major features
Bugfix Changes
- Initial state of DataTable sort is null, unless prop is passed. Before this fix, columns appear to be ascending and descending only and toggle between those two based on the previous direction. You can now have an unsorted third option, so you can go have an unsorted sortable column and go from unsorted -> asc -> desc.
isSorted
andsortDirection
are both required if you are sorting a column. See #1163 for more background. - Removes the warnings that always show when using a Progress Indicator. Tooltip trigger is now on the button instead of the
li
tag.
Maintenance
- Lookup, Picklist, and Notification are deprecated. These are deprecated components with deprecation warnings. Deprecated components will be present for at least one major Salesforce release (not this library) after the current release cycle and may remain longer. Please refer to source code for prop descriptions in the future. Please transition:
- Lookup -> Autocomplete (base) Combobox
- Picklist -> Read-only (base) Combobox
- Notification -> Alert or Toast
- Removes
forceUpdate
from Tree example - Update Modal examples
- Add
parentSelector
use description to Modal - Add HTML avatar snapshots
- Fix combobox example use of
placeholderReadOnly
v0.7.1
Release 0.7.1
- Allow inline icons and
icon
prop data passed directly in to work properly again. - Rename internal constant bugs having to do with component names
- Pass
assistiveText
from MenuDropdown to trigger button - Replace
classname
withclassnameContainer
on TextArea container - Clarify test readme
v0.7.0
Release 0.7.0
Breaking Changes
- Icons removed which brings DSR from 749KB down to somewhere around 430KB
- Icon JS objects have been removed except for the original
design-system-react.js
bundle. An additional bundle has been addeddesign-system-react-components.js
without bundled icons. See readme for use of<IconSettings/>
to set icon context. - Devs now need to do two things if they're not using DSR with icons:
- You need to host your own icons (
npm install @salesforce-ux/icons
OR download them from SLDS website: https://core-210.lightningdesignsystem.com/downloads) - You'll need to use the
<IconSettings />
higher order component and pass in the path to where you are hosting your own icons. It might look something like this:
- You need to host your own icons (
import IconSettings from 'design-system-react/components/icon-settings';
ReactDOM.render(
<IconSettings iconPath="/assets/icons">
<MyApp />
</IconSettings>,
document.getElementById('app')
)
# This component can be wrapped around the entire app and/or individual components using Icons.
-
All direct CommonJS's
module.exports
have been removed. All components use ES6 which iscomponent.default
in CommonJS. -
Removed disabled styles from Tabs however you can still disable the Tab, and aria-disabled still appears on the Tab
<a>
. You'll just need to provide your own css for styling it.
Other Changes
- Some initial compatibility testing with React 16 has been completed, but library is not fully tested.
- Added
type="button"
toButton
as default (markup change). - Added SLDS Avatar
- Lookup Prop
- Added new props
isOpen
,onRequestOpen
, andonRequestClose
to Lookup.
- Added new props
- Dropdown Prop
- Added new prop
disabled
to Menu Item which gets passed toaria-disabled
onrole="option"
. Pass it down through options like so:
<MenuDropdown options={[ { disabled: true, label: 'Option A', value: 'A0' }, { label: 'Option B', value: 'B0' }, { label: 'Custom Class', className: 'custom-item-class', value: 'custom0' } ]} ... />
- Added new prop
v0.7.0-alpha-es
Major release
- All CommonJS's
module.exports
have been removed. - Icon JS objects have been removed except for the original
design-system-react.js
bundle. An additional bundle has been addeddesign-system-react-components.js
without bundled icons. See readme (in 0.7.x branch) for use of<IconSettings/>
to set icon context. - Some initial compatibility testing with React 16 has been completed, but library is not fully tested.
- Add
type="button"
toButton
as default (markup change)
v0.6.23
Release 0.6.23
Major features
- Add Combobox component. This will eventually replace the Lookup (Base Combobox) and Picklist (Read-only Combobox). Lookup and Picklist will remain the library for the foreseeable future, but will deprecate soon (that is removed from the documentation). Combobox is a completely controlled component (except for user active and focus options) and should be easier to debug and control with atomic state or container components.
v0.6.22
Release 0.6.22
Major features
- Add RadioButtonGroup component
Minor features
- Picklist with multiselect: Add onPillRemove
- Inline edit: Add onEnterEditMode, onLeaveEditMode, onKeyUp (for input)
Bugfix
- Fix Popover focus trap
- Lookup: Close on tab and pass list ref with guard
v0.6.21
Release 0.6.21
Minor Changes
- Add type support for Button
Bugfix Changes
- Allow Button Icon to accept external path for Icon
v0.6.20
Release 0.6.20
Minor Changes
- Lookup: Add
onFocus
callback - Notification: Add icon category prop
Bugfix Changes
- Update Webpack loader for Tab CSS
- Notification:
ref
to the Button component returned an object and now returns DOM node. - Popover: Update close button style
v0.6.19
Release 0.6.19
Bugfix Changes
- DataTable: Change child component (action row) validation to use
displayName
instead of type/function compare.