Salesforce Lightning Design System :: React Components :: design-system-react All releases must use a level two heading.
These are changes that have backwards-compatible solutions present and that compatibility will be removed at a breaking change release in the future.
Checkbox'sonChangenow receivesevent, { checked: [boolean], indeterminate: [boolean] }. Previously,checkedwas the first parameter.TabsPanehas been replaced withTabsPanel.Input's props:iconPosition,iconAssistiveText,iconCategory,iconName,onIconClickare deprecated. AnIconcomponent should be used instead.DataTable'scollection,onSelect,onDeselectare deprecated.- Remove
openByDefaultfromPopoverTooltip. - Remove alias component files. Please update the following removed files to their new file name.
- tabs/pane
- SLDSSettings
- lookup/menu/
- lookup/menu/default-footer
- lookup/menu/default-header
- lookup/menu/default-section-divider
- lookup/menu/item/
- menu-list/list-item-label
- menu-list/list-item
- menu-list/list
- BreadCrumb is now Breadcrumb (bread-crumb -> breadcrumb)
- You can now check this library's dependency on SLDS to make sure you have the CSS that this library is being developed with. The NPM git URL can be found in the published
package.json.SLDS: { gitURL: [URL]}.
Bugfixes
Modal- Change default heading element fromh2toh1in accordance with the SLDS guideline
Bugfixes
Popover- Prevent ESC key event from bubbling up to parent components such asModal
Maintenance
ProgressIndicator- TypeScript types update
Bugfixes
Combobox- allow user to show different title in the selection list when mouse hoversslider- fixed event handler typesDatatable- restore prop propagation behaviour
Maintenance
- package.json: update license to be machine-parsable
Performance
DataTable- improves re-rendering performance in scenarios with many rows (in the hundreds/thousands).
Bugfixes
Combobox-ESCkey event is trapped when menu is open to prevent bubble up.BrandBand- SLDS style update. The props are breaking changes, but SLDS updated its markup, and therefore the current component was broken.
Maintenance
- ESLint - Ensure CSS class names plugin works with modern versions. Fix issues with string template scenarios.
Minor Features
Icon- Add success color variant
No changes
Minor Features
Icons- Updated to latest version 10.x
Bugfixes
- 'MenuDropdown' - Limit the set of keys that open the dropdown when pressed.
Bugfixes
- 'Combobox' - Recent changes to Combobox had causes compatibility issues with screen readers such as JAWS. This update reverts these markup changes.
Breaking change
- 'DataTable' - Protoype feature (resize columns) now defaults to 'fix' mode. This makes the default behavior of column resizing limited to the width of the table instead of overflow:hidden. Scrolling horizontally affects the table container vs column X-axis offset. Single columns get smaller and larger without pushing columns to the right and creating a horizontal scroll.
Bugfixes
- 'Dropdown' - Align checkbox icon for selected and unselected options
Minor Features
VerticalNavigation: AddIconandnotificationBadgeDataTable: Support table column resizing. This is at prototype stage, is not fully accessible, and required external styling. See component prop table on project website for more details.DataTable: Add Header-less Support
Bugfixes
ProgressIndicator: Add missing labels for accesibilityModal: Update dependency in order to remove race condition
Maintenance
- Remove Gitter link on readme
- Move CI server to CircleCI
Minor Features
Combobox: AddinputRefprop
Maintenance
- Update
react-modalto 3.14.2
Maintenance
- Update documentation site examples
Minor Features
BuilderHeader: Customizable utilities sectionCombobox: Allow "None" selection (read-only variant)DataTable: Add keyboard navigation supportDatePicker: Add error state
Bugfixes
Combobox: Addtitleto optionsRadioGroup: Allow radios to be disabled individually
React 17 compatibility updates
- Remove legacy 16.x context API
- Update package to React 17
- Remove deprecated react lifecycle methods
- Remove javascript:void(0) URLs
Bug fixes
Modal: Update structure for accessibilityDataTable: Fix infinite scroll when items are shorter than table heightDropdown: Update selected option state- Switch Typescript FC returntype to JSX.Element
Icon: Fix icon snapshot (after inline icon updates)
Maintenance
PageHeader: Add note about info variant and record-home variant to prop description- Update @salesforce-ux/icons from 9.27.0 to 9.40.1
- Update Storybook to 6.2.0
Bugfixes
Button: Add support fordata-*attributesProgressIndicator: Add support foronClickTabs: MovetabIndexfrom<li>to<a>VerticalNavigation: Addaria-currenttag to selected item- Adjust TypeScript definitions to make
aria-*props optional
Bugfixes
- Move
webpack-clito dev dependency
Bugfixes
Combobox: Fix style breakage due to SLDS CSS being on ARIA 1.1. This introduces a “double combobox role” in the component. It is a temporary, non-semantic update. It has been tested in NVDA and VoiceOver with no side effects. If you are using aXe or sa11y testing, please update your configuration until further notice to the following to avoid failing: https://github.com/salesforce/design-system-react/pull/2761/files#diff-93bc89e11753fdb252273d1a27f7bd40c68f6ffb9dad64ad77eba41831477748
Bugfixes
Combobox: Update markup from ARIA 1.1 to ARIA 1.2 to better support assistive technology
Bugfixes
Combobox: Auto-scroll menu to selected item in listbox
Bugfixes
DataTable:onRenderSubHeadingRowde-selecting de-selects all rows
Minor Features
Combobox: Match search terms against subtitlesDataTable: Add support for custom header rows
Bugfixes
ComboboxandPillContainer: Fix focus when clicking on a pillInput: Fix alignment of inline help text when Input is used with an icon
Minor Features
Badge: Add success, warning, and error colors
Bugfixes
DataTable: Properly display column label forstackedandstackedHorizontalvariants
Maintenance
- Update Storybook to 6.1
- Get accessibility tests running again
- Add UNSAFE_ prefix for deprecated lifecycle hooks
Minor Features
DataTable: Add infinite scrolling supportTab: Add vertical tab variant
Minor Features
Tab: Add error icon support
Bugfixes
Combobox: Clear selection when closing popoverCombobox: Fix keyboard navigation when used as a controlled component- Update
ComboboxandPopovermarkup
Maintenance
- Use
lint-stagedto run linters on commit - Update project to use Node 12
Minor Features
BuilderHeader: Ability to customize the title icon
Bugfixes
Popover: CloseEditDialogwhen clicking outside
Documentation
- Minor corrections in
BuilderHeader,Tooltip, andTree
Minor Features
Popover: Adddisabledprop toEditDialogSpinner: AddisInlineandhasContainerpropsStatefulButton: Ability to pass in customaria-*attributes
Bugfixes
DatePicker: Correctly determine first day of week whenisIsoWeekdayis true
Maintenance
- Bump
@babel/nodefrom 7.2.2 to 7.10.4 - Bump
@babel/plugin-proposal-export-default-fromfrom 7.2.0 to 7.10.4 - Bump
@babel/plugin-transform-modules-commonjsfrom 7.5.0 to 7.10.4 - Bump
@babel/preset-reactfrom 7.0.0 to 7.10.4 - Bump
concurrentlyfrom 4.1.0 to 5.2.0 - Bump
cross-envfrom 5.2.1 to 7.0.2 - Bump
lint-stagedfrom 8.2.0 to 10.2.11 - Bump
object.entriesfrom 1.1.0 to 1.1.2 - Bump
prop-typesfrom 15.6.0 to 15.7.2 - Bump
react-contenteditablefrom 3.3.2 to 3.3.5 - Bump
regenerator-runtimefrom 0.13.3 to 0.13.5 - Bump
websocket-extensionsfrom 0.1.3 to 0.1.4 (security) - Change
npm startto run processes in foreground
Bugfixes
Spinner: Addxx-smallvariantFilterandPanel: Minor markup updatesDatePicker: Typing in input closes the calendarDataTable: Add ability to specify a custom class for a row
Bugfixes
Combobox: Fix issue with subheaders sorting incorrectlyIcon: Fix issue with icons sometimes disappearing due to<use xlink:href>
Bugfixes
DataTableCell: Prevent boolean PropTypes forchildrenpropTooltip: Fix issue withhasAnchoredNubbinappearing at inappropriate times on hover
Maintenance
- Remove
componentWillReceivePropsfromColorPicker,Combobox,DatePicker,Lookup,MenuDropdown,MenuPicklist,Notification,TimePicker, andTree
Minor Features
Datepicker: AddcanInputMaintainFocuspropTooltip: AddonRequestTargetElementcallbackTooltip: AddhasAnchoredNubbinprop
Bugfixes
Colorpicker: Add support for named colors in default validator
Bugfixes
- Fix accessibility issues in
ProgressBar,ProgressRing, andToast Map: RenameMaptoLocationMap. Map was not a part of the default export.
Maintainance
- Make console error / warning fail tests in CI
Documentation
- Add example headings to site
- Add accessibility statement to readme
Bugfixes
- Remove console warnings in DataTable and Combobox
Minor Features
Maps: Make controlled componentCheckbox: Add grouped checkboxes withindeterminatestate working example that matches ARIA spec.Combobox: Support menu item scrolling in all variants- Move all prototype components to production status
Bugfixes
Accordion: Prevent grabbing focus on every renderAccordion: Hotfix to work with oneAccordionPanelchildToast: Focus on dialog container on render instead of close buttonPopover: Passaria-haspopupto triggering componentCombobox: Makedialogvariant work. Update menu down icon style.Combobox,DataTable,Expression,Map, andDropdown: Accessibility audit fixes. See salesforce#2359RadioGroup,Slider,SplitView,Spinner,Toast: Accessibility audit fixes. See salesforce#2337ProgressBar: Make read "{value}%" instead of just "{value}" for screenreadersProgressIndicator: Read "Disabled" for disabled stepsButtonGroup: Checkbox should read "this field is required"
Maintainance
- Deprecate and EOL Illustration component
ProgressRing: AddassistiveTextto icons in examplesTextArea: Making textarea error & required examples match their SLDS counterpartsButton: Add margin between buttons in examples
Minor Features
Popover: Add feature variantSplitView:onSelectnow called withenterkeyBuilderHeader: Add miscellaneous section sub-componentBuilderHeader: Use Error Popover in Utility Bar exampleAccordion: Update Base example to allow a panel to be toggled- Add ARIA attributes to all
inputtags in library in order to enable increased accessibility support for consumers SetupAssistant: Add capacity to pass Icons into aSetupAssistantStepDropdown: Addshovercapabilities w/ keyboard interactionsAccordion: Add arrow key panel support (accessibility)
Bugfixes
Dropdown: Menu Tooltip content now works withoptionsarrayTabs: White space around words in disabled tabs no longer trigger tab change. Disabled Tab styleimport '!style-loader!css-loader!@salesforce/design-system-react/styles/tabs/tab.css';updated to SLDS's modified BEM.Expression: Static markup accessibility violations fixed.Files: Add inverse classname to download buttonBuilderHeader: Make Tooltips in example accessibleTimePicker: Remove default time-picker placeholder text
Maintainance
SplitViewExample: File name change- Add functional programming eslint rules to increase maintainability
TravisCI: Enable matrix build to speed up CI time- Remove
PhantomJSlegacy code and instructions - Bump
eslint-plugin-filenamesfrom 1.2.0 to 1.3.2 - Bump
babel-plugin-istanbulfrom 5.1.4 to 5.2.0 - Bump
karma-chrome-launcherfrom 2.2.0 to 3.1.0 - Bump
reactfrom 16.8.6 to 16.9.0 - Bump
@babel/polyfillfrom 7.4.4 to 7.6.0 - Bump
cross-envfrom 5.2.0 to 5.2.1 - Bump
fs-extrafrom 3.0.1 to 8.1.0 - Bump
@storybook/addon-storyshots-puppeteerfrom 5.1.9 to 5.1.11 - Bump
normalizrfrom 3.2.4 to 3.4.1 - Bump
chownrfrom 1.1.0 to 1.1.2 - Bump
eslint-plugin-importfrom 2.17.3 to 2.18.2 - Bump
mocha-loaderfrom 2.0.1 to 3.0.0 - Bump
babel-eslintfrom 10.0.2 to 10.0.3 - Bump
karma-coveragefrom 1.1.2 to 2.0.1 - Bump
eslint-config-prettierfrom 3.0.1 to 6.1.0
Major Features
Badges: Add componentExpression: Add component
Minor Features
ButtonGroup: Add label support for all variantsButtonStateful: Add icon propCombobox: Add header and footer itemsMenuDropdown: Add "center"alignprop valueMenuDropdown: Add tooltip menu itemMenuDropdown: Add hover capabilities with keyboard interactionsTooltip: AddhoverOpenDelayprop
Bugfixes
Checkbox: Fix error text idsTabs: Use class name instead of presentation role for event conditionalTimePicker: Fix issue withstrValuenot updatingvaluecorrectly- Fix all existing aXe issues
Maintainance
- Automate
package.json,index.js, andsite-stories.jscreation classnamesupdate from 2.2.5 to 2.2.6sinon-chaiupdate from 2.14.0 to 3.3.0fstreamupdate from 1.0.11 to 1.0.12regenerator-runtimeupdate from 0.11.1 to 0.13.3eslint-plugin-reactupdate from 7.13.0 to 7.14.3react-onclickoutsideupdate from 6.8.0 to 6.9.0chaiupdate from 4.1.2 to 4.2.0file-loaderupdate from 1.1.11 to 4.2.0basic-authupdate from 1.1.0 to 2.0.1webpackupdate from 4.36.1 to 4.39.3@storybook/addon-storyshotsupdate from 5.1.10 to 5.1.11eslint-config-prettierupdate from 3.0.1 to 6.1.0mixin-deepupdate from 1.3.1 to 1.3.2 (security)
Bug with release script caused this version to be skipped. Please use 0.10.11
Major Features
Files: Add new component
Minor Features
ScopedNotification: Add icon prop
Bugfixes
Colorpicker: Pass aXe static markup accessibility testingProgressBar: UsegetIdfor id instead of hard-coded stringsTabs: prevent panel children clicks from changing tabs at unexpected timesWelcomeMat: Addslds-welcome-mat_info-onlyclass to container- Add additional context types to components with portals
Documentation
WelcomeMat: update icons
Maintainance
- Upgrade to Storybook 5
- Add accessibility tests to continuous integration
- Prevent literal strings in component code
- Add React fragment rule
@babel/plugin-transform-modules-commonjsupdate from 7.4.4 to 7.5.0@storybook/addon-actionsupdate from 5.1.9 to 5.1.10@storybook/addon-storyshotsupdate from 5.1.9 to 5.1.10
Major Features
WelcomeMat: Add new componentColorpicker: Add right to left language supportDatepicker: Add right to left language supportDropdown: Add right to left language supportIcon: Add right to left language support
Minor Features
PageHeader: Update markupPageHeader: Add support for custom iconsPageHeader: Add support forBreadcrumbsPageHeader: Support joined styling withDataTable
Bugfixes
ProgressRing: Fix for layout issue in IE11Dialog: Fix for "invalid propdirectionof value[object Object]suppliedBuilderHeader: Fix type- Remove unneeded imports (fixing DeepScan issues)
- Update jest config to include all snapshots
Documentation
- Update
create-react-app.md - Update
CONTRIBUTING.mdreadme to new Jest script process - Update
release.mdreadme
Maintainance
- Add Storybook stories to DOM, image, and a11y tests by default unless excluded
- Limit use of root
~babel alias to example files - Divide image snapshots into chunks, then remove them from standard tests (for now)
@salesforce-ux/design-systemupdate from 2.8.3 to 2.9.3 (SLDS)@salesforce-ux/iconsupdate from 7.34.0 to 9.27.0webpack-dev-middlewareupdate from 1.12.2 to 2.0.6babel-loaderupdate from 8.0.0-beta.3 to 8.0.6react-test-rendererupdate from 16.4.2 to 16.8.6warningupdate from 3.0.0 to 4.0.3eslint-loaderupdate from 1.9.0 to 2.1.2enzyme-adapter-react-16update from 1.12.1 to 1.14.0karma-cliupdate from 1.0.1 to 2.0.0object.entriesupdate from 1.0.4 to 1.1.0babel-eslintupdate from 8.2.3 to 10.0.2babel-plugin-instabulupdate from 4.1.6 to 5.1.4mochaupdate from 3.5.3 to 6.1.4react-onclickoutsideupdate from 6.7.1 to 6.8.0react-highlighterupdate from 0.4.2 to 0.4.3expressupdate from 4.16.2 to 4.17.1
Major Features
VisualPicker: Add new componentTrialBar: Add new componentProgressBar: Add "vertical"orientationoption
Minor Features
- Add snapshot testing to
Dropdown,Pill,ProgressRing,RadioGroup,RadioButtonGroup,Search,Slider,SplitView,Tabs,Textarea,Toast, andVerticalNavigationcomponents
Bugfixes
Button: Pass form props to button DOM nodeCarousel: Alter styling to better match designsCombobox: ARIA attribute fixesSetupAssistant: Active theme now shown forProgressRingat appropriate timesEditDialogPopover: Now defined on siteExpandableSection: Add tosite-stories.jsCheckboxandRadio: Fix typo inlabelsprop- Fixed issue with component paths that was causing build errors in some projects
Documentation
DatePicker: Fix prop description typoBuilderHeader: Fix typo forPropTypecomment
Maintainance
@babel/parserupdate from 7.4.4 to 7.4.5enzymeupdate from 3.9.0 to 3.10.0react-text-truncateupdate from 0.12.1 to 0.14.1react-modalupdate from 3.4.4 to 3.8.1@babel/preset-envupdate from 7.4.4 to 7.4.5karma-coverageupdate from 1.1.1 to 1.1.2webpack-hot-middlewareupdate from 2.21.0 to 2.25.0eslint-plugin-importupdate from 2.17.2 to 2.17.3eslint-plugin-jsonupdate from 1.2.0 to 1.4.0shortidupdate from 2.2.8 to 2.2.14concurrentlyupdate from 4.0.1 to 4.1.0lint-stagedupdate from 3.6.1 to 8.2.0sinonupdate from 2.4.1 to 4.5.0compressionupdate from 1.7.1 to 1.7.4tarupdate from 2.2.1 to 2.2.2 (security)extendupdate from 3.0.1 to 3.0.2 (security)sshpkupdate from 1.13.0 to 1.16.1 (security)stringstreamupdate from 0.0.5 to 0.0.6 (security)tough-cookieupdate from 2.3.2 to 2.3.4 (security)is-my-json-validupdate from 2.17.1 to 2.20.0 (security)macaddressupdate from 0.2.8 to 0.2.9 (security)mergeupdate from 1.2.0 to 1.2.1 (security)react-dev-utilsupdate from 5.0.1 to 5.0.3 (security)
Please use 0.10.7 instead as there was a bug in this release causing build errors in some projects
Major Features
Setup Assistant: Add Component
Minor Features
ProgressRing: Add active themeButtonGroup: AddslistvariantModal: Addsmallsize support
Bugfixes
- Radio Group: Update labels from props after instance construction. Label and error label did not update after component is initialzied.
SetupAssistant: Design review and red-lining of component such as padding, spacing, and borders.ColorPicker: Removes some differences between SLDSColorPickerpattern and this library
Documentation
- Codebase: Add default prop change warning
SLDSAccordian: 3 dropdowns in base whereas only 2 in base-openCombobox: Dialog variant documation site example fix
Maintainance
- Merge Radio Button Group and Radio Group, so that one is composed over the other.
Major Features
BuilderHeader: Add componentExpandable Section: Add component
Minor Features
ProgressRing: AddedflowDirectionpropCarousel: Add Mocha testsCarousel: Add props to allow controlled componentCarousel: Align design closer to SLDS and update non-SLDS designProgressIndicator: Addssetup-assistantvariantModal: Refactorborder-radiusrender logic based on header and footerGlobalNavigation: Align closer to SLDSAppLauncher: Align closer to SLDS
Bugfixes
Carousel: Prevent focus grab when slide changesDataTable: Fixed header scrolling bugfix whentabis usedIllustration: Minor bugfix forstyleobject
Maintainance
- Add a Gitter chat badge to
README.md - Fix accessibility issues in doc site examples
GlobalNavigation: Add a11y exception to region- Sync up the
package-lock.jsonfile
Major Features
ProgressBar: Add ComponentScopedNotification: Add ComponentDynamicIcon: Add ComponentPopover: Addedit-dialogvariant
Minor Features
Dropdown: Add menu width propDatePicker: Triggers a console warning on using default parserPageHeader: Remove all caps heading
Bugfixes
- Modal: fix error with dismissModalOnClickOutside
- Tree Buttons: Adds
aria-hidden=trueto align with SLDS - Accordion: Add event parameter in example code
- Update Popover to use
sectiontag
Maintainance
- Rename prop
titletoheadingin Modal - Update
PageHeaderpropvariantto accept kebab-case and otherwise show deprecation warning - Button Stateful: Changes background color to make the text more legible
- Alert: Adds padding to story container to prevent overlap
- AppLauncher: Changes icon text in tile to be consistent with heading
- Progress Indicator: Adds
verticalvariant to docsite examples - Button: Add
outline-brandvariant to doc site examples - Deprecate custom content for Dropdown component
- Add Icon Container assistive text in example
Bugfixes
Carousel:Buttonimport path was incorrect. Resulting in aError: Can't resolve '../../../../components/button'message
Bugfixes
Carousel:Buttonimport path was incorrect. Resulting in aError: Can't resolve '../../../../components/button'message
Maintainance
Carousel: AddisPrototypewarningDropdown: AddsunsetPropertyfortooltipprop
It has been more than a year since the release of React 16. With the release of v0.10, React 16.3 or later is required to consume this library. Features are present in the library now that are React v16 only.
Major Features
Carousel: In addition, to the SLDS one-panel blueprint. This component adds a non-SLDS three-item panel option for use on product home pages to aid in user on-boarding.Combobox: Adds Dialog variant. This allows “custom menus” such as checkboxes and other form elements to determine the input value.Popover: Walkthrough and Walkthrough Action variants were added. Along with this, Popover now allows custom targets which is helpful in feature highlighting and other user engagement stories. UseonRequestTargetElementto set a custom target.- `GlobalHeader``: Align markup and latest UX pattern to SLDS
- Remove all caps text from all components
- Progress Indicator: Add vertical orientation
Minor Features
Tooltip: Add dialogclassNamepropButton: Addoutline-brandvariantAvatar: AddinversevariantCard: AddhasNoHeaderprop to remove headerPillContainer: Return null if options is emptySpinner: AddsisDelayedprop to component
Bugfixes
Combobox: Cancel mouseDown bubble from listbox div tag in order to help not trigger onBlur when uses clicks menu scrollbarPopover: Change ARIA role todialogButtonStateful: Use prevState to update state in componentInput: Remove always true condition, 'props.hasSpinner'Input: Update error icon from warning icon to error iconTree: Adds unneededaria-hidden=trueto closer align with SLDS markupPopover: Change ARIAroletodialogProgressRing: Fixe examples pageAppLauncher: Fixes arrow direction in Sections
Maintainance
- Require React >16.3
- Add snapshot update npm command
Toast: Use role='status'- Add instructions to set up LDSR with Create React App 2.x
- Removed propTypes which are not used from different components
Modal: ReplacedismissiblewithdisableCloseinButton: Fix assistive text in small icon hint inverse exampleAlert: Add ability for example to closeCombobox: UpdatemenuItemtoonRenderMenuItemVertical Navigation: Removeshadevariant- Move storyshot DOM snapshots to individual files
- Remove unused variables from tests
- Support React fragment syntax
- Update to SLDS 2.8.x
- Improve docs for codebase-overview.md and CONTRIBUTING.md
ButtonExamples: Update function call for "Outline brand button" storyGlobalNavigationBar: Remove overlapping items from exampleLookup: Add visual deprecation heading to component
It has been more than a year since the release of React 16. With the release of v0.10, React 16.3 or later is required to consume this library. Features are present in the library now that are React v16 only.
Major Features
Carousel: In addition, to the SLDS one-panel blueprint. This component adds a non-SLDS three-item panel option for use on product home pages to aid in user on-boarding.Combobox: Adds Dialog variant. This allows “custom menus” such as checkboxes and other form elements to determine the input value.Popover: Walkthrough and Walkthrough Action variants were added. Along with this, Popover now allows custom targets which is helpful in feature highlighting and other user engagement stories. UseonRequestTargetElementto set a custom target.- `GlobalHeader``: Align markup and latest UX pattern to SLDS
- Remove all caps text from all components
ProgressIndicator: Add vertical orientation
Minor Features
Tooltip: Add dialogclassNamepropButton: Addoutline-brandvariantAvatar: AddinversevariantCard: AddhasNoHeaderprop to remove headerPillContainer: Return null if options is emptySpinner: AddsisDelayedprop to component
Bugfixes
Combobox: Cancel mouseDown bubble from listbox div tag in order to help not trigger onBlur when uses clicks menu scrollbarPopover: Change ARIA role todialogButtonStateful: Use prevState to update state in componentInput: Remove always true condition, 'props.hasSpinner'Input: Update error icon from warning icon to error iconTree: Adds unneededaria-hidden=trueto closer align with SLDS markupPopover: Change ARIAroletodialogProgressRing: Fixe examples pageAppLauncher: Fixes arrow direction in Sections
Maintainance
- Require React >16.3
- Add snapshot update npm command
Toast: Use role='status'- Add instructions to set up LDSR with Create React App 2.x
- Removed propTypes which are not used from different components
Modal: ReplacedismissiblewithdisableCloseinButton: Fix assistive text in small icon hint inverse exampleAlert: Add ability for example to closeCombobox: UpdatemenuItemtoonRenderMenuItemVertical Navigation: Removeshadevariant- Move storyshot DOM snapshots to individual files
- Remove unused variables from tests
- Support React fragment syntax
- Update to SLDS 2.8.x
- Improve docs for codebase-overview.md and CONTRIBUTING.md
ButtonExamples: Update function call for "Outline brand button" storyGlobalNavigationBar: Remove overlapping items from exampleLookup: Add visual deprecation heading to component
Minor Features
Popover: AdderrorandwarningvariantsDataTable: AddisDefaultSortDescendingprop to allow descending as first time sort directionCombobox: Adddisabledprop to readonly and inline-listbox variantsPillContainer: Return null if options is emptyInput: AddautoCompleteprop. (Newer versions of Chrome browser ignoreautocomplete="off").Combobox: AddInputprop on in order to expose allInputprops withinCombobox
Bugfixes
BrandBand: Lightning Theme Fix - Styles were intermittently applied beforeDataTable: Add missing top gray border to fixed header tablesIconSettings: Add additional inheritance of context foroverflowBoundaryElementDialog position which uses portals.Input: Update error icon from warning icon to error iconInput: PreventPropTypeswarning informs/private/labelwhenlabelprop contains a Reactnode
Maintainance
- Update Brand Band documentation: Depending on your server settings, you may get this error due to stye injection and may want to directly add styles to your CSS file.
- Update
README.mdto run install command in right directory - Datepicker: Clarify MomentJS usage in props/docs
- Add ESLINT skipBlankLines/skipComments max lines rule
- Combobox: Give each Storybook example a unique ID
- Define pull request expectations in more detail
- Document how to release a tag on a fork
- Add how to release a tag to 1st time PR bot
- Correct Typos in Contributor's Guidelines
- Improve docs for codebase-overview.md and CONTRIBUTING.md
- Remove non-breaking text from Tooltip Storybook examples
- Contributing docs: Add mention of adding new components to
package.json
Minor Features
- Combobox: Allow disabled menu items and disabled menu items with Tooltips
- Input: Add
styleContainerprop - ProgressIndicator:
tooltipPositionprop added to allow additional positioning logic - Dropdown:
lengthprop now allows numbers
Bugfixes
- BrandBand: Lightning Theme CSS injection was intermittantly working.
- Dropdown: Adds
aria-checkedand role="menuitemcheckbox" for selectable menus with checkmarks
Maintainance
- Warnings removed from snapshot tests and 404s from browser Mocha tests. "CI is now prettier."
- Add first time contributor survey to allow additional feedback to library maintainers.
- Imports additional examples from doc site examples that did not exist in Storybook
Minor Features
PageHeader: Allow actions in Base variant with support ofnavRightCombobox: Add field-level tooltip withfieldLevelHelpTooltipprop oninputprop. DeprecateCombobox'sassistiveText.fieldLevelHelpButtonin favor of usinginputprop's prop. See #1689 for more details. You will see a console warning if you are doing it wrong.Tooltip: RequireonClickTriggerfor learn more pattern- If
learnMoreTooltip variant is used withoutonClickTrigger, then the “no click” basic info icon tooltip will be used with a “disabled” button. - If
onClickTriggeris defined, a link will be rendered (this is the current behavior for learn more tooltips).
- If
- Add
AppLauncherTileandSectioncomponents to main module export to allow use in CommonJS build.
Bugfixes
DataTable: A UX pattern of Radio Group / Single Select with a Fixed Header works now.
Documentation
Combobox: Site examples now have unique id's- Re-organize Codebase Overview
- Add maximum lines in a file lint rule of 500
Bugfixes
DataTable: Adds event listeners to listen for window resize by default. This creates a behavior that truncates horizontal cells and is similar to how aDataTableon the Salesforce Platform works.
Major Features
DataTablesupports fixed headers and this allows the table headings to be visible while the table vertically scrolls.
Notes
- Tree
nodesare now compared with nodeidkey instead of object compare when using keyboard events - Testing suite runs on Windows now to enable contributions from Windows users. Use
git-bash, please--no Powershell.
Major Features
- Pill Container: Add Listbox of Pill Options component. Previously
Pillcomponents used in a group were not accessible. This component creates a pillbox or group option. IsoloatedPillcomponent is still present, but should not be used for user input/selection. - Input Counter: Add Counter Example. This is useful for number input.
Minor Features
- Combobox (Read-Only / Picklist): Add "press a letter to scroll to an option" (similar to HTML
selectbehavior) - Combobox (Read-Only / Picklist): Add auto-scroll behavior on keyboard menu item selection (similar to HTML
selectbehavior) - Combobox filter): Make combobox filtering more performant by not creating RegExp in a loop
- Combobox (filter): Remove selected options based on
option.idonly - Input Counter: Disable increment/decrement buttons when min/max is hit
- Datepicker: Add
inputrender prop for Input customization
Bugfixes
- Tree: Compare cached flattened nodes with id key
- Illustration: Remove
<title> - Input:
inlineHelpTextcan benodeas well asstringproptype update. - Combobox/PillContainer: Pill aria-selected state is always true
- Combobox/PillContainer: Tab propagation bug introduced with menu letter jump feature
- DataTable: Update
stackedHorizontalclass name - Tooltip: Do not console error
isTriggerTabbableif no children of tooltip. - Toast: Clear duration timeout in
componentWillUnmount()to avoid memory leaks - DataTable: Generates row
idif none is present
Maintenance
- Contributor Productivity: Enable test suite on Windows and run tests concurrently by default. This update allows entire testing suite (500+ browser tests, 320+ snapshot DOM/images, prop comment validation, Prettier style, ESlint code quality) to run in less than 2 minute on most machines. This pull request also aligns npm script names. Please use
npm runto view new names. - Contributor Productivity: Replace PhantomJS with Headless Chrome (also speeds up browser tests slightly)
Major Features
- Update CSS class names so that they align with the modified-BEM structure that Salesforce Lightning Design System switched to in June 2017. These changes are were promised to be backwards compatible for 18 months.** . (In short, the
classNamecontains--instead of_now).
Minor Features
- Input: Add
styleInputprop - Radio: Add
ref,dataattribute, andclassNameprops - Toast: Add
styleprop - Alert: Add
styleprop - Tooltip: Align "learn more" variant with SLDS
- Allow SLDS Token import for inline styles
- Allow Storybook (
npm start) on Windows 10 - Vertical Navigation: Update SLDS markup/classes
Bugfixes
- Popover (all dialogs): Prevent scroll to bottom on focus in dialogs
- DataTable: Update
stackedHorizontalclass name - Dialog: Remove isNaN gaurds since ‘inherit’ is not a number
- Page header: Details not truncating
- Page header: Align Media Objects and header text
- Adding missing
docs.jsonto some components
Maintenance and Documentation
- Clarify new component contribution section
- Convert
createReactClasscomponents to ES6 Classes - Move keyboard navigate mixin into picklist (deprecated)
- Remove some unneeded dependencies
- Fix typo in
Spinnerexample - Update prettier CI command to fail on style issues
- Fix lint errors
Major Features
- Adds Color Picker
This version reverts CSS class changes in 0.8.26 that align with the modified-BEM structure that Salesforce Lightning Design System switched to in June 2017. These changes are were promised to be backwards compatible for 18 months.** .
Please use the upcoming 0.9.x for components that use the modified BEM (that is the className contains -- instead of _).
Bugfixes
-
Fixes DataTable fixed layout width prop issue
-
Do not dismiss combobox lookup menu when clicking on menu scrollbar
Minor Features
- Adds additional helpful instruction for the pr template
Maintenance
-
Converts Dropdown to ES6 class
-
Removes find dom node from Dropdown
-
Creates local ESLint plugin and rule to disallow double-dash (
--) modifier class names -
Makes eslint plugin for SLDS external
-
Removes Mocha console errors
Minor Features
onRequestIconPathadded toIconSettingsto allow developers to return a custom icon path--for instance, on the same page with a local anchor (#down). This is helpful for when there are Cross-Origin Resource Sharing (CORS) issues with SVGs that are located on another domain such as a CDN.
Bugfixes
- Brand Band not exported in CJS/ESM packages
Bugfixes
- Missing
docs.jsonfor each component added to build. Component meta data is now stored with each component folder indocs.json. This library's release script was not copying the new file which makes all components imports fail.
Do not use 0.8.23.
Major Features
- Adds new
BrandBrandcomponent
Minor Features
- Adds new
styleprop toButtoncomponent - Allows passing node as avatar in
GlobalHeaderProfile
Bugfixes
- Fixes popper position when its props update in
Dialogcomponents - Replaces
TooltipwithPopoverTooltipinternally
Maintenance
- Removes
prettier-eslint - Allows linking to doc site from dev console warning messages
- Improves instructions on adding a new component to DSR
Bugfixes
- Fixes v0.8.21 CommonJS/ES6 module versions of this library which had an undefined error that is a high priority blocker. See 0.8.21 release tag for more details on the bug.
- DataTable's
onChangereplaced withonRowChange.onChange's parameters are(selectedArrayOfItems, event).onRowChangestandardizes the parameters with the rest of the library withevent, { selection:[array] }.
Minor Features
- Input: Add Field Level Help and Inline Help variants
- Icon: Add Warning, error, light color options
- Modal: Add additional warning when
Settings.setAppElementis not set. - AppLauncher: Add to CommonJS and ES6 module library export
- Add Spinner to doc site
Bugfixes
- Progress Indicator: Improved assistive tech user experience
- DatePicker: Fixing issue where year picker doesn't show years correctly
- GlobalHeaderButton: Invalid markup fixed when used within GlobalHeaderTrigger
- Tree: Allow label to be a React node (more lenient proptypes)
- Positioning behavior of Dialog components that use nubbins has changed. This applies to
Popover,Tooltip,Datepicker,Dropdown. Previously the nubbin would be misaligned due to hardcoded margins that would get added onto the dialog component. It will now instead calculate the offsets and include them in the positioning logic and add/subtract from the left and top. - Dialogs that use nubbins would previously have the nubbins point at the location on the reference trigger component (i.e.
Button). Details:- If a Popover had an align of
top left, that meant the nubbin would point at the top left hand side of theButton. - The behavior now is that the nubbin will always position the Dialog element as needed to ensure it points at the center of the desired side.
- In the case of a
top leftalign the left will only designate the location of the nubbin on the Dialog. - We may decide to bring back the ability to control both the nubbin location on the Dialog, but also the location at which it points to on the reference element. Much of the logic surrounding nubbins has been broken at the seams and edge cases for a long time. This change has been done in order to provide a more robust and dependable solution.
- Any dialog that uses an
offsetprop will need to be manually readjusted. - Deprecate
offsetprop forDropdownandPopover. The manual setting of positional offset of dialog components has been deemed unreliable. Position logic has been re-written to deliver better and more reliable positioning. Please create an issue if you have an edge case not covered by the built-in logic.
- If a Popover had an align of
Maintenance and documenation
- Move
NavigationtoVerticalNavigationto align with SLDS. - Dropdown: Document that default menu height is 5
- Datepicker: Increase default years, 5 to 10 years
- Add warnings to
bread-crumb,forms/input,forms/radio,forms/textarea,navigation,popover-tooltipto show that they have been moved. Warning only occurs when using source code filesimport [COMPONENT] fromdesign-system-react/components/[COMPONENT]` - Modal: Deprecate rarely used Trigger Portal found at
/components/modal/trigger - Combobox: Clarify prop docs
- Update react-doc-gen version
- Tree: Move to one render function and proptype object per file
- Add url-slug to package.json components, Makes prompt easier to find
- Update SLDS site URLs for doc site
- Add NPM babel preset
package.json - Prefer object spread instead of
object.assigneslint rule - Revert to
npm installfromnpm cidue to TravisCI issues
Bugfixes
- Fix bug in
Dropdowncomponent where getIndexByValue() needs to look at nextProps.options when componentWillreceiveProps() is called. - Datepicker: Make year Combobox menu width match the width of its input/button.
Maintenance
- Documentation update on how to use Design System React within Create React App.
- Consolidate assistiveText props under one object for the following:
DataTable,Icon,Search,PanelFilterGroup,Spinner,Tree,TextArea.
Major Features
- Add Illustration Component
Bugfixes
- Make
Slidera controlled component. UsevalueandonChangeprops. Combobox: Allow PopperJS to position menu correctly when menu hits the screen or overflow ancestor boundary.- Update
Treebranch and item to use latest SLDS HTML tags - Update
Alerterror icon
Maintenance
- Add
getting-started.mdto NPM module - Document copying over SLDS fonts to public for Create React App
- Update
Radiocomponent examples - Remove
Object.assign()from codebase and replace with spread - Consolidate
assistiveTextprops under one object. This is going to deprecate many props, but will make props more consistent across all the components.AppLauncherSectionAvatarBreadcrumbButtonStatefulButtonGlobalHeaderGlobalNavigationBarDropdown
Bugfixes
Iconuses new values fornameandcategorywhen changed.- Fixes console error that appears when using keyboard navigation to navigate the tree.
Maintenance
url-existsutility usesfetchinstead ofxmlHttpRequest.
Bugfixes
- REVERT Change inline edit for accessibility. It will not be updated. There is a new View/Edit Record Input pattern that uses the Docked Former Footer component and this should be used instead of the Inline Edit Input in the future.
Minor features
dropdownprop added toDataTableRowActionsto increase customization of the dropdown menutabIndexadded toMenuDropdowncomponentPicklisthas been removed from examples. Please use a Combobox instead.
Deprecation
TL:DR; If you use the source code directly, update your form component paths and the parameters in onChange. All others stay the same for now.
- Moves
Input,Checkbox, andTextareaout ofcomponent/formsand directly intocomponent/. Old paths such ascomponent/forms/inputwill still work, but include a console warning as deprecated. components/input,components/checkbox, andcomponents/textareapass different parameters into theonChangecallback.onChangenow passes inevent, { checked }if the new paths are used. The parameters used to bechecked, event, { checked }. If you use the new paths such ascomponents/input, please update your parameter variables. This aligns the callback's parameters with the rest of the library's callback functions.- If you consume the library with named imports
{[component]} from '@salesforce/design-system-react', you will recieve the warning and will need to use the old parameter order until the next breaking change. - For more information, please review #1350.
Minor features
- Update
Treeexample to be hashmap in order to promote immutability. Please reviewTreeexample on documentation site in order to understand flattened tree data. - Add
tabIndexprop toMenuDropdown - Update SLDS version to 2.6.0 and test
Bug fix
- Dialog components such as Dropdown when used with
menuPosition='overflowBoundaryElement'now respectmax-widthinstead of inherited children width - Remove duplicate logo in
GlobalHeader
Maintenance
- Upgrade Babel to v7 and Jest to v23
Documentation
- Remove deprecated Picklist from code base and examples
Modals are now at z-index: 8000. If there are items on the main page with a higher z-index, they will appear in front of the modal. This setting aligns with the prescribed z-index in SLDS for $z-index-overlay.
Require iconCategory if iconName is set. utility used to be the default icon category. iconCategory is now required.
Major features
@salesforce/design-system-react/modulenow contains tree-shaking compatible ES6 modules (Tested with Webpack 4). This should work out of the box (due topackage.json'smodulefield) and replace CommonJS module usage in Webpack 3 and 4. See pull request for more details.- Tree is now a production component and supports single selection keyboard navigation.
Minor features
- DataTable: Align header markup with SLDS to fix alignment issues. Remove error for non-boolean attribute
focusable. - Upgrade React Modal to 3.4.4. This is a dependency of
Modal. - Modal: Adds
assistiveText.dialogLabelto define modal label when there is no header. - DataTable: Adds
noHintprop to actions and makes hints an optional field.
Bug fix
- Request icons (console warning) with HTTP GET, so Create React App's webpack dev server doesn't 404
- Modal no longer jumps to 50% of page.
- Documentation: Align button group example on site with SLDS example
- Documentation site examples are more accessible (Page Headers and Stateful Buttons)
- Datepicker: Change the year picklist initial focus to currently selected year
- Datepicker: Focus input only if menu was previously open and not just requested to close
- Inline Edit UX pattern updated for keyboard: New pattern is that it'll tab to the close button, and if you're focused on the close button and tab again, it'll blur the field.
DropdownwithoverflowBoundaryElementandalign=rightuse max-width instead of inherited children width.
Maintenance
- Require
iconCategoryificonNameis set.utilityused to be the default icon category.iconCategoryis now required. - App Launcher -
assistiveTextis now an object with keys. Please update your component props. - Popover -
assistiveTextis now an object with keys. Please update your component props. - Modal -
assistiveTextis now an object with keys. Please update your component props. - NPM scripts update: “build-storybook" -> static:build, “build-storybook-for-tests” -> storyshots:build, “storybook” -> static:start
- Switch
xml2jsontoxml2jsin tooling to make more compatible with Windows
Adds new script storyshots:start that allows interactive viewing of what is being tested with image snapshots to allow debugging.
Minor features
- Tooltip: "Learn more" variant added. Deprecation notice added for
variant: info || error. Please usethemeprop going forward instead.
Bug fix
- Data Table: Remove console warning when DataTableColumn
sortableistrue. - Combobox: Trigger onOpen callback when menu opens
- Datepicker: Focus input if menu was actually open and not just requested to close
Major features
- Add SLDS Slider
Minor features
- Allow importing Lookup [deprecated] subcomponents in CommonJS modules
Minor features
- Affix position of Dialogs with
hasStaticAlignmentprop. Allows greater control of Tooltip, Popover, and dialog components. - Set Datepicker's initial year dropdown menu highlight selection to current selected date.
Minor features
- Allow
inputlabel of combobox to show as required - Input, Checkbox, and Radio support initial state (uncontrolled) in order to support applications with server-side form submission that are transitioning to atomic state.
Maintenance
- Lint warnings from a third-party package have been removed from CI tests.
Documentation
- Prop doc typos:
- replaced rendered input block to code block
- fixed broken link to source of Inline Edit Inputs
Minor features
- Combobox supports error messages.
Outside SLDS pattern added
- Multiple selection Combobox error messages should be placed after pillboxes with an additional
slds-has-errorwrapping div.
Maintenance
- Update Dropdown Menu children description
- Update SLDS peer dependency to allow 2.6.0-alphas
- Remove plus-plus (
var++) instances from library for clarity
Notice
package.module has been removed from the NPM module until a transpiled ES6 module build can be published to support it. The current package.module is considered broken already for Create React Apps--for instance, so this is not considered a breaking change. Your module bundler will just use the CommonJS build unless you are already transpiling the source code, so no changes should be need to be made.
Minor features
- Combobox menu supports subheadings and line separators.
Outside SLDS pattern added
- UX pattern created for Combobox autocomplete that limits subheadings to those that have "child" matching items.
Bugfix
- Export
canUseDOMcorrectly to enable focus trap. This bug is present in>=0.8.0versions. Upgrading to0.8.8is recommended forPopoverand other components to be accessible.
Maintenance
- Replace Airbnb shape props with 1PropTypes.shape1
- Add Prettier linting to JSON, Add JSON parser plugin to eslint
- Converts
package.jsonto tabs - Troubleshoots
npm run lint:fix - Implement Import first ESlint rule to increase code consistency
Documentatation
- Add missing documentation site component descriptions
- Document child nodes of
IconSettings - Update
Modalfooter prop description
Bugfix
- Revert Modal CSS class
slds-fade-in-open
Maintenance
- Add NPM package-lock
- Clarify lint scripts
- Kabob-case filename check
- Fix typos in webpack docs
- Remove JSX curly braces when not needed
- Add Trailing comma to iterables
- Updates dev node engine version to 8.x
Major features
- Add automated image and DOM snapshots with story-based automatic unit test creation
Bugfix
- Remove MenuDropdown console error
Maintenance
- Run React codemod transform component to ES6 classes
- Improve dev experience by removing pre-commit hooks, loosening ESlint rules until issues can be fixed, audit and add clarity to npm tasks, adding clarity to test scripts
Major features
- Add
SplitViewcomponent
Bugfix
- Remove timeout/setState warning on
Modal - Polyfill
Comboboxwithlodash.findIndex - Fix getDefaultProps warning in
Tree
Maintenance
- Add Babel preset
Bugfix
Iconnot present in NPM module due to gitignore's EMACS settings.
Bugfix
- Fix Lookup due to
Dialogupgrade to PopperJS.
Maintenance
- Update Babel settings and publish to NPM.
Major features
- Add Pill Component
Bugfix
- Removed
setStatecall when handling click to setactiveproperty. This was causing somesetStateissues on when unmountingButton. - Add
titleattribute to truncatedTreenodes
Maintenance
- Introduction of
npm run formatcommand to run prettier and ESlint. Update to ESlint settings.
Major features
- Add Progress Ring Component
- Make icons settings webpack friendly. Allows sprite file strings to be imported.
Maintenance
- Group like files: Move all component files into same folder to make library more modular
- Remove node engine version from published package
- Improve documentation: Usage with webpack
Minor features
- Custom menu items renders are available with
menuItemprop for Combobox.
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.
isSortedandsortDirectionare 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
litag.
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
forceUpdatefrom Tree example - Update Modal examples
- Add
parentSelectoruse description to Modal - Add HTML avatar snapshots
- Fix combobox example use of
placeholderReadOnly
- Allow inline icons and
iconprop data passed directly in to work properly again. - Rename internal constant bugs having to do with component names
- Pass
assistiveTextfrom MenuDropdown to trigger button - Replace
classnamewithclassnameContaineron TextArea container - Clarify test readme
###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.jsbundle. An additional bundle has been addeddesign-system-react-components.jswithout 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/iconsOR 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:
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.
- 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###
- All CommonJS's
module.exportshave been removed. - Some initial compatibility testing with React 16 has been completed, but library is not fully tested.
- Added
type="button"toButtonas default (markup change). - Added SLDS Avatar
- Lookup Prop
- Added new props isOpen, onRequestOpen, and onRequestClose to Lookup.
- Dropdown Prop
- Added new prop
disabledto Menu Item which gets passed toaria-disabledonrole="option". Pass it down through options like so:
- Added new prop
<MenuDropdown
options={[
{ disabled: true, label: 'Option A', value: 'A0' },
{ label: 'Option B', value: 'B0' },
{ label: 'Custom Class', className: 'custom-item-class', value: 'custom0' }
]}
...
/>
Major features
- Add Combobox component
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
Bugfix Changes
- Allow Button Icon to accept external path for Icon
Minor Changes
- Lookup: Add
onFocuscallback - Notification: Add icon category prop
Bugfix Changes
- Update Webpack loader for Tab CSS
- Notification:
refto the Button component returned an object and now returns DOM node. - Popover: Update close button style
Bugfix Changes
- DataTable: Change child component (action row) validation to use
displayNameinstead of type/function compare.
Bugfix Changes
- DataTable: Change child component validation to use
displayNameinstead of type/function compare.
Minor Changes
- Add Progress Indicator
Bugfix Changes
- Remove occurrence of assistiveText prop from ButtonIcon. ButtonStateful creates a ButtonIcon with assistiveText. Change this so that the assistiveText is put in this component.
- Allow variable type of
nodein dropdown menu label
Bugfix Changes
- Add react-onclickoutside events to Lookup to prevent scrollbar from closing the menu
Minor Changes
- Adds Multiselect Dropdown variant
Bugfix Changes
- Fix datepicker input value bug
Minor Changes
- Adds Textarea component
Bugfix Changes
- Fix icon when tree branch is expanded
Bugfix Changes
- Picklist child component Pill had a bad import that was only discoverable in production.
Minor Changes
- Add Multiselect Picklist variant (Pills paired with Picklist)
Maintenance
- Update package.json dependencies
- Switches to newest Heroku stack for deployment pipeline.
- Fixes missing icons on Heroku PR apps.
- Updates Jest and snapshots
- Updates sinon and sinon-chai
- Removes babel-eslint as a dependency
Minor Changes
- Update inline icons to v7.20.0
Minor Changes
- Move icons repository to looser major version. This should keep the SLDS website and the inline JS icons within this library in-sync with each other better.
- Fix app launcher button markup and testing code
- Allow non-strings in tree item labels (such as icons elements)
MAINTENANCE
- Release process updated
- Lint errors removed from production code
- Fix Lookup Item style bug
- Update test command to prevent false positives in TravisCI
Minor Changes
- Modal: Allow Modal footer prop to accept either an arry or node
- Modal: Allow Modal to be rendered inside of custom DOM node instead of
<body>tag. Pass function toparentSelectorprop - it should return the container DOM node (ie.return document.querySelector('#myModalContainer');).
New Components
- Checkbox button group
- Exported SLDSSearch (
forms/input/search) in bundled package
Minor Changes
- Started using assistiveText prop object instead of individual prop strings (Datepicker). Will follow suit in other components.
- Change React.PropTypes to prop-types in preparation for React upgrade
- Added a11y html markup to Filter
- Allow devs to pass in link to Icon for external icons
Bugs
- Fixed filter but where 'ESC' didn't close popover
Minor Changes
CheckboxToggle variant added
Minor Changes
MenuPicklist: Add inline error state similar toInputInput: correct spelling and usage ofaria-labelledby
Minor Changes
- Fix focus transfer on close of "modal"
Picklist - Remove title attribute on column header if
DataTablecolumn label is not a string - Pass
iconPositionprop fromDropdownto a custom trigger - Add
onClickcallback prop toFilter - Add
DataTablewidth prop to column header - Add
classNameprop toFilter
Minor Changes
Datepickerhas adateDisabledcallback to allow disabling of arbitrary dates.Filterhas apopoverprop that allows custom props to be passed in and allows theFilter's popover to be controlled by the developer instead of theFilter.Lookuphas an additional item compare to see if it should update its internal state. This is a temporary hack until state can be removed fromLookupand it can directly use props.- Inline icons are now v7.7.0. Version was just updated in a prior release.
- Add
DataTablewidth to table headers
Major Changes
- Filtering
Panelcomponent added with variants New, Error, and Locked.- Filters component added.
- Forward looking statement:
FilterGroupmay be broken out ofPaneland into it's own component in the future so that it can be used outside of aPanel, but was not broken out in this release due to pattern not existing outside of Panel in SLDS.
MAINTENANCE
- Reference of
undefinedvariable inTabsremoved.
Major Changes
BreadCrumbcomponent is nowBreadcrumbwith a backwards compatible alias.- ElementS are now allowed within Tab's
labelprop. DataTable- Markup updates to SLDS 2.2.1
- If you are using
idattributes, to query the DOM (tsk, tsk), theids have changed format. DataTableis now bordered by default. This is a visual breaking change, but will not be considered one for semver, due to SLDS's change to bordered tables being the default style.- Advanced/Fixed Table supports "title" attribute for truncated cells
DataTableColumnlabelcan be a node.DataTablecolumn sort arrow issues resolved, including ARIA issues.
- Icons are now v7.7.0.
- Added
closeButtonAssistiveTextto Modal for i18n
MAINTENANCE
- Documentation build out now occurs on all pull requests to catch issue sooner.
- Internal components use ES6's
export default. Public components were not affected, but will be moved ES6'sexport defaultin the future. - ESlint issues reduced to less than 300.
- Added Greenkeeper for dependency management
Major Changes
- Added Navigation component
Minor Changes
- Markup updates to Modal, Button, Card, Input, and Page Header
- Documentation site updates. No production code changes in this release.
MAJOR CHANGES
- Datepicker updates
classNamenow is added to the node withslds-datepickerclass within the dialog. UsetriggerClassNamefor the outer wrappingdiv. [BREAKING CHANGE]onChange(formerly onDateChange) now provides callback with event and a data object in the shape:{date: [Date object], formattedDate: [string], timezoneOffset: [number]}- Many new props and features: calendar alignment, assistive text props, accepts custom input, supports ISO weekday (Monday first), new props to allow calendar to be controlled (onClose, onOpen, onRequestClose, onRequestOpen),
portalMountprop for testing React root nodes, more alignment with other menu/dialog components - Additional accessiblity and testing
- See Date Picker documentation for full set of changes
idon GlobalNav Link move to list item instead ofa[BREAKING CHANGE]- In Button,
aria-*props now use hyphen instead of camelCase. Usearia-expandedand notariaExpanded. [BREAKING CHANGE]
MINOR CHANGES
- Picklist bugfix where the value might be available before the options object is. This would make the active item index be incorrect.
- Fix sort arrow bug in DataTable. Only one column can be actively sorted at a time. Column heading padding has also been updated.
- Add
disabledprop to Lookup. - Popover's
onRequestCloseandonClosenow fire once when Dialog component closes. - Popover spacing from target/trigger is correct.
checkProp'soneOfComponentparsesdisplayNameproperly
MINOR CHANGES
- Add icon/figure support to Page header (Object home variant)
- Correct dropdown trigger styling within a button group (e.g.- more button)
- Fix bug caused by DST and hours calculation in Datepicker.
DOCUMENTATION
- Moves stories into examples folder, doc site examples are now aligned with SLDS website. No production code changes in this release.
MINOR CHANGES
- React components that are really are just sub-renders and are not meant to be consumed by end-users of this project have been moved to
components/[COMPONENT_NAME]/private. Feel free to continue using components that are still incomponents/[COMPONENT_NAME]folder and consider them part of the public API. Hopefully, this adds clarity to what components can and should be used. - In order to automate more the documentation site, more components are listed in package.json and an
examplesfolder has been added to the-estagged package to be used by the doc site.
DOCUMENTATION
- Adds mention of setting
AppElementforModalandAppLauncherto component documentation, so that the entirebodyis not hidden for assistive technology users.
MINOR FEATURES
- Add
portalClassNameto Modal. - Tabs: Add scoped variant
BUG FIX
- Removed {...props} from DOM nodes in components to prevent non-valid ones from being passed on (ie.
<input myFunkyprop .. />). If users need specific props passed onto DOM nodes, please submit a Github issue. - Fix icons and alert texture in Notification
MINOR FEATURES
- Add indeterminate state support to
Checkbox. - Add indeterminate state support to selectable variant of
DataTable. - Export
InputIcon.
MINOR FEATURE
- Allow custom classes on menu list items with item object key,
classname, withinoptionsprop.
MINOR FEATURE
- App Launcher has a
modalClassNamethat will be added to theModalwhen rendered.
BUG FIX
- Tabs'
Panelchanged toTabsPanelto align with other component names.
BUG FIX
- Manages CSS imports better for ES6, CommonJS and AMD packages. Previously, CSS imports would fail if a CSS file imports were present in the ECMAScript. This will remove the CSS imports from CommonJS and AMD packages.
- Changes Tabs'
PanetoPanel - Removes prototype status from Tabs
BUG FIX
- Fixes bugs in allowing parent to control state of dropdown.
BREAKING CHANGES
- Replaces
modalwithisInlinefor all dropdown-like components.
MAJOR CHANGES
- Adds a Tabs component.
- Allow parent to control state of dropdown.
BUG FIX
- Tweaks the class names on dropdown trigger to match SLDS.
BUG FIX
- Due to deprecations in v0.3.15 of
Input'sonIconClick, anonSearchcallback has been added toSearch.
MAJOR CHANGES
- Allow icon on the left and right of inputs.
- Search can be
clearablenow with right clear icon. - Input now uses
iconRightandiconLeftand accepts anInputIconcomponent. Use ofonClickmakes it clickable. - The wrapping span has been removed from
ButtonIcon.ButtonIconis just a CSS customization ofUtilityIconnow. - Be sure to check inputs for deprecation notices.
- Remove top divider as default of
MenuDropdownlist menu heading items. - Adds
dividerkey with valuestopandbottomtoMenuDropdownoptions to allow for a divider to be added to a heading.
BUG FIX
- In App Launcher, Tile Truncate utility uses new props to prevent UI state from being out-of-sync with props.
BUG FIX
- In Picklist, pressing enter now triggers the
onClickprop - Add Dropdown wrapping
divto align with SLDS and allow menu nubbins to be positioned with default CSS. [DOM change] - Make Global Header dropdowns inline instead of "modal"
BUG FIX
- In Picklist, tabbing moves focus to the next tabbable DOM element, instead of opening the menu.
- In Dropdown, an
onCLickprop is passed down to all custom content children, so that they can close the menu.
MAJOR CHANGES
- Adds
hybridtoopenOnoptions. This allows a click to open and hover out to close in case one does not have control of the DOM outside of the navigation.
Bug Fix
- Prevent Global Nav menus from flipping up at small screen heights
Bug Fix
- Make App Launcher Tile More tooltip trigger a span tag
- Make inline input’s edit icon smaller
- Make DatePicker and TimePicker value prop the source of future state
Documentation
- Add mention of classnames library to
contributing.md - Add test coverage comments, surfacing in-browser tests
MAJOR CHANGES
- Global Navigation menus no longer are fixed to a height of
5. They're as high as their content. - Card heading can also be a node to allow full customization of a Card header
- Card control is now fully stateless to better match React patterns
Bug Fix
- Sets App Launcher modal to 90% height
- Sends correct
hrefto App Launcher Tile click callback - Corrects markup for menu separators and headers in Global Navigation
MAJOR CHANGES
- Add Tree as a prototype component. Tree is not accessible to assistive technology at this time.
- Add GlobalHeader to default library export.
Bug Fix
- Detect PageHeader detail field truncation on update instead of mount.
MAJOR CHANGES
- Add
styleandbodyClassNameprops to Card to allow overflow on Card body. - Add
lengthprop to GlobalNavigationMenuDropdown. It can be set tonullto remove scrolling.
MAJOR CHANGES - SLDSPageHeader
- Make field truncation optional.
- If field truncates, then show PopoverTooltip on hover/focus to view full field text.
Bug Fix
- Lookup component had a bug where updating the selectedItem prop did not work. Now it does. To clear the item, pass in -1.
- Focus on search input when App Launcher opens
- No longer renders a close button if modal type is prompt.
- Lookup search icon default should be on right side.
MAJOR CHANGES
- Add an AMD tag for users of Require.JS
- Makes the keyboard navigation logic less greedy
- Closes dropdown menu on second click of trigger
- Closes dropdown menu when another modal opens
- Closes dropdown menu when tabbed away from
- Opens hoverable dropdown menu on focus
- Provides a workaround for closing dropdown menus when clicking in another iframe
- Returns focus to the dropdown menu trigger when clicking escape
- Removes the default divider from the primary Global Navigation region when no secondary region is present
OTHER
- Remove SLDS media figure when no icon present in page header
- Adds a default iconPosition to Lookup
- Fixes modal Prompt heading style
MAJOR CHANGES
- Allow setting of active navigation bar item background color
OTHER
- Allows you to put the navigation bar right into the header if desired
BREAKING CHANGES
- AppLauncher now accepts a search node rather than
onSearchandsearchPlaceholderText - Popover
openByDefaulthas been replaced withisOpen
MAJOR CHANGES
- Adds special support for Global Header icons
MAJOR CHANGES
- Add
toggleableprop toAppLauncherSection - Add
GlobalNavBarLabelchild component - Make
GlobalHeadersearch to use left side icon - Correct letter spacing of
AppLauncherTilesub-heading
OTHER
- Adds 'tile' and 'section' imports to
AppLauncherfor site
MAJOR CHANGES
- Bugfixes and documentation for AppLauncher
MAJOR CHANGES
- Add Modal
headerandheaderClassNameprops to allow for custom headers
OTHER
- Update the truncation logic to account for AppLauncher's description headings
- Center AppLauncher search bar with CSS
- AppLauncher makes use of Modal's new
headerprop - Remove
idgenerator from button component (let parent generate it, if needed)
BREAKING CHANGES
- Updates the GlobalNavigationBarLink to pass
{ href }as the second parameter
MAJOR CHANGES
- Remove
trapEventfrom GlobalNavigationBarLink and replace withpreventDefaultto allow clicks to bubble up - Adds support for custom content to Global Header profile
- Cleans up the dividerPosition of Nav Region
OTHER
- Updates the icon script to lowercase names
- Makes the Nav Menu trigger use chevron icon
- Corrects check props for profile children
BREAKING CHANGES
- Changes to how the
inverseprop works for icons and removal of the default value oftrue - Button component: Inverse style of Button (white color to go on dark backgrounds) is now declared with a bool prop, inverse
- Button component:
inverseandicon-inverseare no longer supported in the variants prop
MAJOR CHANGES
- Add support for custom svg icons
- Update Icon to the latest markup
- Update Tooltip to the latest markup
- Allow custom styles to be passed to icons
OTHER
- Allow menus and buttons used in the Global Nav Bar to be marked as active
- Animates the App Launcher icon based on the latest SLDS markup
- Button component: when button icon had an iconVariant prop, the iconSize prop did not render. It is now fixed
- Timepicker wasn't working correctly after the menu updates in 0.1.1. It is now fixed
- Update the logo used in the Global Header story
MAJOR CHANGES
- Add the App Launcher component
- Add support for the title attribute for icons
OTHER
- Additional code cleanup
MAJOR CHANGES
- Add support for icons, headers, links, and dividers to Dropdown and Picklist menus
- Add support for custom content in Dropdown menus
- Update Lookup to the latest markup
- Update Picklist to the latest markup
OTHER
- Add name attributes to Checkbox and Input
- Add Button support to Global Navigation Bar
- Update the keyboard navigation logic used by menus
- Update profile icon used in the Global Header
BREAKING CHANGES
- Rename ContextBar to GlobalNavigationBar
MAJOR CHANGES
- Add the Global Header component
- Add a Search component
- Update BreadCrumb to the latest markup
- Update PageHeader to the latest markup
OTHER
- Begin counting versions from 0.1.0
- Add buffered option to DataTable
MAJOR CHANGES
- Reversed Flippable prop due to bug with Tether.js
- Use Popover component in Datepicker
- Add required and disabled props to Datepicker and Timepicker
BREAKING CHANGES
- Flippable prop on Timepicker and Datepicker used to default to true. Now, it defaults to false and you must explicitly add it.
MAJOR CHANGES
- Added new InlineEdit component
- Clickable Input icons now use Button
OTHER
- Remove unused Popover class on Picklist
- Additional code cleanup
- Added containerClassName prop to Spinner
MAJOR CHANGES
- Added new Spinner component
- Updated the ContextBar component
- Added a highlighting utility
- Added a custom cell type to DataTable using the highlighter
OTHER
- Remove isRequired for iconCategory in ButtonGroup
- Additional bug fixes and code cleanup
MAJOR CHANGES
- New release process
SITE AND DOCS
- Moved site to external repo
MAJOR CHANGES
- New Components:
- SLDSBreadCrumb
- SLDSDataTable
- SLDSGrid
- SLDSPageHeader
- Lookup component no longer requires icons for menu items
MAJOR CHANGES
- SLDSIcons.Icon refactored to SLDSIcon
- Picklist renamed to PicklistBase
- Dropdown renamed to DropdownBase
SITE AND DOCS
- New Getting Started and FAQ pages
OTHER
- custom_renderer code moved into demo/code_snippets
- new tests
- a multitude of bug fixes and TLC