office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
1,612 lines (1,041 loc) • 105 kB
Markdown
# Change Log - office-ui-fabric-react
This log was last generated on Tue, 06 Feb 2018 11:14:36 GMT and should not be manually modified.
## 5.47.0
Tue, 06 Feb 2018 11:14:36 GMT
### Minor changes
- BaseAutofill: Move to it's own component
### Patches
- fix deselect all in suggestionsController
- DetailsList: Adding optional callback aria-describedby for each item in DetailsList
## 5.46.0
Mon, 05 Feb 2018 11:24:23 GMT
### Minor changes
- [SpinButton] Implemented precision
### Patches
- ComboBox, Dropdown, TextField: Improved high contrast in focus state. Layout changes for ComboBox to allow for border-box sizing.
## 5.45.3
Fri, 02 Feb 2018 11:24:16 GMT
### Patches
- Converted ActivityItemExample to use mergeStyles instead of SCSS
## 5.45.2
Thu, 01 Feb 2018 11:23:17 GMT
### Patches
- Adds the _isControlled flag to the TextField component that disabled onChange if the value prop is set, which follows developer expectations with React inputs.
- Theme Generator: fix autogenerated neutral colors
- Fix bug in modal selection handling
- added return default when reaching the html tag in while loop inside _getBackground() inside Sticky component.
## 5.45.1
Wed, 31 Jan 2018 11:11:59 GMT
### Patches
- swatch color picker - add ability to add aria-label
- ChoiceGroup: Wrap long text for image and icon types.
- updating willReceiveProps of date picker to not run validation unless the props actually changed
- ComboBox: ComboBoxes were changed to always expand which is incorrect behavior, fixing to align with the correct design
- ContextualMenu: Remove the list in the menu and move the aria-label/labelledby to the correct element
- TextField: fixed whitespace wrapping with prefix/suffix.
- Fixing the up and down arrows position and behavior according to RTL expected behavior
- Removed unused scss file in Sticky component
## 5.45.0
Tue, 30 Jan 2018 11:22:56 GMT
### Minor changes
- Added prop to ComboBox to control its button's aria-hidden attribute
### Patches
- Fix TeachingBubble dismiss on scroll by passing onDismiss to callout.
## 5.44.0
Mon, 29 Jan 2018 11:23:40 GMT
### Minor changes
- Add work week date range type and update calendar and calendarDay components to consume it
- Added onRenderCoin prop that controls the persona coin image
### Patches
- Combox box: added accessibility changes added a title and changed activedescendant to use focused element
- Callout/Popup: Fix a bug where callout doesn't have the correct overflow style"
- setting people picker default size back to 28 from 24
- Add private _defaultCalloutProps instead of public defaultProps to set calloutProps.
## 5.43.1
Fri, 26 Jan 2018 11:25:22 GMT
### Patches
- SplitButton - added aria support for button in split buttons and the whole container
- Dropdown, Checkbox: Fix disabled Dropdown options and update Checkbox disabled styles
- Persona: Changed text and root heights for size24 when secondary text is shown.
- TextField, Pickers, PeoplePicker: Homogenizing input heights and colors
## 5.43.0
Thu, 25 Jan 2018 11:23:07 GMT
### Minor changes
- Callout: Convert component to JS Styling
- Added onFocus state Boolean to BasePicker
### Patches
- spin button - add aria label for decrement and increment buttons
- Pickers: Fixing errors occuring onBlur of limited pickers
- Fixed broken links on documentation pages
- Pickers: Aligning suggestions callout to the correct RTL position
## 5.42.0
Wed, 24 Jan 2018 11:23:26 GMT
### Minor changes
- ResizeGroup: Add the ability for ResizeGroup to get divProps
- Enhance Panel component props to allow all of FocusTrapZone props overrides.
### Patches
- BaseAutoFill: Fixed a bug where baseautofill would not work with composed languages like Japanese
- Dropdown: Align error message styling to TextField. TextField & ComboBox: Updated invalid input border color to be red in all states.
- TextField and SearchBox: Specified placeholder text color to be more consistent across browsers.
- Prevent default to avoid setting focus on SplitButton menu button
- Fix CalendarDay RTL view
## 5.41.2
Tue, 23 Jan 2018 11:22:12 GMT
### Patches
- Fixed SuggestionsController method convertSuggestionsToSuggestionItems to handle BasePicker createGenericItem correctly
## 5.41.1
Mon, 22 Jan 2018 18:39:02 GMT
### Patches
- [FocusTrapZone] Text selection inside FocusTrapZone was broken. This brings it back
- fix hover card dismiss issue
## 5.41.0
Mon, 22 Jan 2018 11:14:27 GMT
### Minor changes
- Add a context value under ResizeGroup to allow child components to detect whether they are being used only for measurement.
- MessageBar: New prop to allow singleline text with no action buttons to be truncated.
### Patches
- Address issue #1535 - Calendar: Change clickable spans to buttons.
- updated divider color to be more visible
- Hovercard: Changed content keydown listener to element event binding
- MessageBar: scss refactor and component polish.
## 5.40.2
Fri, 19 Jan 2018 11:14:03 GMT
### Patches
- added smallInputBorder semantic slots and updated checkbox, choicegroup, and toggle to use it.
- Add classNames and style the hidden input inside the ChoiceGroup image and icon variants so the Narrator highlights it correctly.
- Datepicker: Fix so calendar doesn't open when clicking icon when DatePicker is disabled
- Persona: Fix a bug where space would be taken even though there was no secondary text
- Changes in Week Number Computation logic for FirstFourDayWeek setting to fix issue 3119
## 5.40.1
Thu, 18 Jan 2018 11:21:56 GMT
### Patches
- BasePicker: Fix accessibility bug where it always has aria-expanded=true
- Calculate overflow manually to determine if Callout needs a scrollbar
- Update .npmignore to publish all examples
## 5.40.0
Wed, 17 Jan 2018 11:11:25 GMT
### Minor changes
- DatePicker: Default selectedDate should be undefined, not new Date()
- DatePicker: Add an initialPickerDate property
- Icon: the `ms-Icon` class name, despite being unused, is causing conflicts with fabric-core usage inadvertently. There isn't a great way to deal with this other than to avoid re-using the `ms-Icon` class name.
- ProgressIndicator: Adding indeterminate progress variant.
### Patches
- Pickers: Fixed border clipping of tag item in high-contrast mode
- Escape key shouldn't propagate in combo box if it isn't open
## 5.39.1
Fri, 12 Jan 2018 20:03:22 GMT
### Patches
- Checkbox and ChoiceGroup: New resting state border color.
## 5.39.0
Wed, 10 Jan 2018 11:23:36 GMT
### Minor changes
- Rating: Convert to getstyles
### Patches
- Add auto expand on focus for Combobox
- Callout/Positioning: Fix a bug where callouts would position incorrectly if the target was an HTMLImg element
## 5.38.1
Mon, 08 Jan 2018 11:13:51 GMT
### Patches
- Contextual Menu submenus that have no items will have chevron icon and call onMenuOpened
- CommandBar: Allow disabled anchor and text items
- Rating: Set default active element and fixed focusability
## 5.38.0
Fri, 05 Jan 2018 11:14:58 GMT
### Minor changes
- Added a customizable onDismiss to the BasePicker
### Patches
- ToolTop: Changed ToolTipHost to inline-block
- ContextualMenu: Added styling for disabled icon"
## 5.37.0
Wed, 03 Jan 2018 11:23:12 GMT
### Minor changes
- TextField: Allows user to provide the `autocomplete` prop.
- Added optional callback for getting image load state change events from personacoin through Persona component
### Patches
- add unmount check in suggestion promise
## 5.36.0
Thu, 28 Dec 2017 11:23:50 GMT
### Minor changes
- SearchBox: Converted component to getStyles
### Patches
- SearchBox: moved className into styles file and added it to styles interface
## 5.35.2
Mon, 25 Dec 2017 11:13:32 GMT
### Patches
- SpinButton: Fix falsey check for value so custom handlers work even if value is 0
## 5.35.1
Fri, 22 Dec 2017 11:10:56 GMT
### Patches
- Callout: Fix opacity when class name has animation that involves opacity
- Calendar: Fix scrollbar when today button is added to overlayed calendars
## 5.35.0
Thu, 21 Dec 2017 11:23:03 GMT
### Minor changes
- Grid: Enable styling customization to grid through getStyles
### Patches
- Fixed persona import paths
## 5.34.3
Wed, 20 Dec 2017 11:21:48 GMT
### Patches
- HoverCard: fixing detection of if expanded scrolling is needed
## 5.34.2
Tue, 19 Dec 2017 11:22:47 GMT
### Patches
- Persona: Set initials color for high contrast mode.
- Broaden the range of allowed prop-type versions
## 5.34.1
Mon, 18 Dec 2017 11:22:54 GMT
### Patches
- respect className for PersonaCoin
## 5.34.0
Sat, 16 Dec 2017 05:07:22 GMT
### Minor changes
- Updated build to newest React version and typings. Updated tests and made various tweaks to the code to remove React warnings and keep Enzyme happy.
## 5.33.1
Fri, 15 Dec 2017 11:22:38 GMT
### Patches
- Only perform list measurements if we absolutely need to
- Link: Improved selectors to fix pressed state.
- Fixes bug with GroupedList losing focus sometimes when item gets removed from list
## 5.33.0
Thu, 14 Dec 2017 11:23:17 GMT
### Minor changes
- Add remeasure public method to ResizeGroup
### Patches
- ComboBox: Fix some issues with submitting values when freeform and autocomplete
- Reversing the order of :focus and :active selectors for comboBox options.
- Panel: Don't render Overlay unless Panel prop isOpen is true
## 5.32.0
Wed, 13 Dec 2017 04:06:51 GMT
### Minor changes
- BaseButton:onAfterMenuDismiss
### Patches
- ContextualMenu: Undo change to manually set the scrollbar
- Link: Fixed state styling for the component and its documented examples.
- Fix dropdown focus issue for IE
## 5.31.2
Tue, 12 Dec 2017 11:25:08 GMT
### Patches
- Fix DetailsList onRenderMissingItem not rendering the missing item
## 5.31.1
Tue, 12 Dec 2017 03:55:03 GMT
### Patches
- BaseButton: Explicitly dismiss the menu when the contextual menu is dismissed rather than calling toggleMEnu
## 5.31.0
Tue, 12 Dec 2017 02:08:36 GMT
### Minor changes
- List: Support ghosting
### Patches
- remove customized dismiss function in HoverCard
- ComboBox: Add onMenuDismiss prop
- ActivityItem: Snapshot and Screener tests added
## 5.30.2
Fri, 08 Dec 2017 21:30:54 GMT
### Patches
- ComboBox:Make sure currentOtions has values before attempt to get values out of it
## 5.30.1
Fri, 08 Dec 2017 18:09:44 GMT
### Patches
- ComboBox: change when focus is set back to the input to make sure it doesn't steal focus from somewhere else
- Added checks to BasePicker if input is null.
- ContextualMenu: properly observe deprecated `isDisabled` property (until we remove the property)
## 5.30.0
Thu, 07 Dec 2017 03:44:42 GMT
### Minor changes
- BaseButton: Expose getSplitButtonClassNames func as a prop to be able to override it.
### Patches
- ComboBox: Update onBlur to do nothing if the event came from an element inside of the comboBox
## 5.29.5
Wed, 06 Dec 2017 23:00:38 GMT
### Patches
- Persona: Allow for consumers to provide custom colors
- ComboBox: Update scrolling behavior to behave as expected
## 5.29.4
Wed, 06 Dec 2017 17:38:45 GMT
### Patches
- Contextual Menu: made it so we can tab through items
## 5.29.3
Wed, 06 Dec 2017 11:24:52 GMT
### Patches
- Button: Move contextual menu outside of button tag if doNotLayer
## 5.29.2
Tue, 05 Dec 2017 02:04:27 GMT
### Patches
- Update Default Button colors to match design spec
- Contextual Tab and Focus Zone - reverted tabbing functionality to avoid tab being captured
## 5.29.1
Mon, 04 Dec 2017 17:27:54 GMT
### Patches
- ContextualMenu: Make sure vertical scrollbar does not take space away from contents
## 5.29.0
Fri, 01 Dec 2017 11:11:16 GMT
### Minor changes
- DatePicker: Calendar Props. Adding access to ICalendarProps
- ContextualMenu: Expose callback hook when menu is being removed from DOM
- Panel: When panel is dismissed, hide the panel instead of destroying it
### Patches
- GroupHeader: Style fix to add nowrap on group header
- Changed combobox option height to match other menu option heights
- FocusZone: Fix focus-in behavior when children are added asynchronously.
- ComboBox: Update to allow the dropdown to fit its content
- DatePicker: Reset invalid input (typed by used).
- PersonaPresence: Scale the presence and presence icon proportionally to the specified coinSize up to a max size.
## 5.28.0
Thu, 30 Nov 2017 01:16:12 GMT
### Minor changes
- Positioning/Callout: made significant changes to help prepare for when positioning and calloutpositioning separate.
- ComboBox/Dropdown/ContextualMenu: Update how the focus gets updated for hover so that 1) we aren't blasting mouseMoves and 2) so we get rid of weirdness around hover and scroll
### Patches
- SwatchColorPicker: Expose getStyles of colorCell subcomponent
## 5.27.0
Wed, 29 Nov 2017 11:24:06 GMT
### Minor changes
- SelectableOption: New disabled prop for options. ComboBox: Updated styling per design spec, including new rootPressed prop, color updates, and className updates.
- SwatchColorPicker: Change scss to js styling
- Updating TypeScript to 2.6.2.
## 5.26.1
Tue, 28 Nov 2017 02:24:21 GMT
### Patches
- Contextual Menu: made it so we can tab through items
## 5.26.0
Mon, 27 Nov 2017 22:13:20 GMT
### Minor changes
- DetailsList: Resizing columns in justified mode doesn't affect columns on the left.
### Patches
- ContextualMenu: Add ability to open splitButton chevron menu, when they are inside menus
## 5.25.0
Thu, 23 Nov 2017 11:10:13 GMT
### Minor changes
- Button: new prop splitButtonAriaLabel.
### Patches
- Combo box only updates the pending values in arrow keypresses, whether its menu is open or closed
- ContextualMenu: Updated expanded menu item style to match toolkit.
- ContextualMenu: Add a prop for setting the min width to be equal to the width of the target
- Apply props.className in ResizeGroup. Add snapshot for ResizeGroup. Pass className from experiments CommandBarTests. Update experiments CommandBar snapshot
- Toggle: Split out a new example for on and offAriaLabels to clarify the experince.
- Change the combobox alignment to be the same as the design of dropdown
## 5.24.2
Wed, 22 Nov 2017 11:12:40 GMT
### Patches
- Add small headline with margin and wide callout with image on the left side
## 5.24.1
Tue, 21 Nov 2017 11:21:39 GMT
### Patches
- ColorCells: Adding gray border to white color cells
- Prevent default while handling up/down arrow keys on a contextual menu
- TextField example: match the max width for TextFields.
## 5.24.0
Mon, 20 Nov 2017 11:12:47 GMT
### Minor changes
- calendar component ux changes plus exposing sixweeksbydefault
### Patches
- Persona: Changed size40 primaryText font size back 14px.
- DetailsList: preserve focus only if active element leaves the list
- Edit HoverCardPage, OverflowSetPage, ScrollablePanePage, TeachingBubblePage to use IComponentDemoPageProps
## 5.23.0
Fri, 17 Nov 2017 17:36:36 GMT
### Minor changes
- add suffix to TextField
- Nav: Added `onLinkExpandClick` callback for getting a callback when an item expanded state is toggled
- PersonaCoin: For non-latin characters, if initials return an empty string, use the Contact icon instead of the empty string.
- Rating control implementation using button, Half star support and ReadOnly rating control support
### Patches
- DetailsList: mouse click gives preference to inner links.
- DetailsHeader: Accessibility fix, move aria-haspopup to correct element
- SplitButton: Add splitFullActiveState to make the whole splitButton look active if true
- ScrollablePane: Fix sortStickies function to sort elements by their true offsetTop in respect to scrollablePane's root
- Fixing high contrast bugs
## 5.22.0
Thu, 16 Nov 2017 11:20:34 GMT
### Minor changes
- Dropdown: Update dropdown interface to allow open dropdown after focus and remove extra focus border for dropdown option.
### Patches
- Checkbox: Add getClassNames prop to allow complete customization of the component
- SplitButton: Avoid applying selector rest changes when in toggle state
- Toggle: Add label as fall back ariaLabel.
## 5.21.2
Wed, 15 Nov 2017 11:11:59 GMT
### Patches
- SplitButton: Disable visual changes in splitButtonContainer when control is disabled
## 5.21.1
Tue, 14 Nov 2017 11:21:27 GMT
### Patches
- ChoiceGroup: Fixed RTL support.
## 5.21.0
Fri, 10 Nov 2017 17:09:36 GMT
### Minor changes
- Allow optional minimum and maximum date boundaries on DatePicker component
- Added className to IDetailsRowProps for the root element.
- Have VirtualizedCombobox implement IComboBox interface
- Add focusInput method in BasePicker to allow set focus to input element directly.
### Patches
- Expose prop to apply rootExpanded on Primary Button if isSplit is true
- TextField: Moved required asterisk to be outside of fieldGroup when no label is present. No longer a need for special styles when icons are present.
- TextField: Updated field width for all examples to be more legible. Replaced ms- with docs- prefix for example scss.
## 5.20.3
Wed, 08 Nov 2017 06:05:34 GMT
### Patches
- Selection: calling `setItems` with new items will now invalidate the internal selection array.
- Persona: DirectionalHint for Tooltip location, polished example spacing and documentation on PersonaPage.
- Preserve focus in DetailsList when items change
## 5.20.2
Tue, 07 Nov 2017 11:22:30 GMT
### Patches
- Checkbox: Expose icon props for the check mark
- added aira0expanded property to contextMenu item so that narrator will announce expand/collapse state of a menu item if it has submenu items.
## 5.20.1
Mon, 06 Nov 2017 18:44:43 GMT
### Patches
- Fixing Icon amd import.
## 5.20.0
Sun, 05 Nov 2017 23:27:32 GMT
### Minor changes
- Allow optional minimum and maximum date boundaries on Calendar component.
### Patches
- Persona: respecting the deprecated PersonaSize enum values to avoid breaking changes.
- Persona: Renamed Persona size12 to Persona size10. Polished style to reflect the toolkit.
## 5.19.1
Fri, 03 Nov 2017 15:06:54 GMT
### Patches
- HoverCard: fixing an import to be AMD compliant.
## 5.19.0
Fri, 03 Nov 2017 14:09:56 GMT
### Minor changes
- OverflowSet: Support vertical orientation
### Patches
- SpinButton: Allow for styling of the icon when the component is disabled
## 5.18.0
Thu, 02 Nov 2017 18:20:18 GMT
### Minor changes
- Adding ES2015 Module Support
- BaseButton: onMenuClick to support other actions for menu and split buttons
- add accessibility behavior of hover card
- CommandBar: iconOnly items prop
- Add 'today' to DatePicker properties and forward it to the Calendar.
- Grid: Add prop to for FocusZone presence
- Slider: added `ariaValueText` property for better screen-reader support.
### Patches
- Changed es2015 module output to target es5 so that TypeScript downcompiles the code.
- Dropdown: Updated caret dropdown colors.
- Button: Added flexShrink: 0 to icons in button so long text won't make them shrink
- Fixed contextual menu state colors.
- Facepile style debugging, includes new FacepileButton
- Menus: Update so they have one notion of focus (from both hover and keyboard)
- Split Button in Menu: add vertical divider component and hook to customize splitbutton in menu div classname
- Persona: Changed PersonaSize names from descriptive to numerical.
- TextField/DatePicker: The required astrisk is now more correctly positioned.
## 5.17.1
Tue, 31 Oct 2017 10:22:25 GMT
### Patches
- Button: Pass specified onDismiss callback to contextual menu
- ContextualMenu: Support suppressing dismiss on ItemClick via preventDefault
## 5.17.0
Mon, 30 Oct 2017 10:23:09 GMT
### Minor changes
- Make red a reserved color for the PersonaCoin so it can only be used if you override the personacoin color
### Patches
- Fixed an issue where ComboBox would throw an exception under shallow rendering tests
- Adjustments made to the disabled text color for Toggle and Checkbox.
## 5.16.0
Fri, 27 Oct 2017 10:25:09 GMT
### Minor changes
- Add ariaHidden prop to buttons
### Patches
- Restore forceAnchor prop for INavLink elements
- SearchBox onKeyDown: prevent default events only when specified by the user
- Panel: changed navigation layout to use flexbox, and pass overrides directly into button to avoid load order issues
- Theme Generator: improve perf
## 5.15.0
Thu, 26 Oct 2017 10:21:37 GMT
### Minor changes
- Removing the `initializeIcons` call from the top level import. The bundle in the dist folder used in codepens will still continue to have it, so that codepens don't stop rendering icons.
### Patches
- Callout: Add check for undefined when comparing old and new position
- SplitButtonInMenu: render icon in primary action button
- ContextualMenu: Make the behavior of getIsChecked consistent for isChecked and checked props
## 5.14.0
Wed, 25 Oct 2017 02:03:33 GMT
### Minor changes
- Panel: Added possibility of using a custom function to handle clicks outside the panel when using isLightDismiss=true
- ComboBox: Adding prop that keeps calout closed when using test input
### Patches
- Button: Pass specified onDismiss callback to contextual menu
- Buttons: split button has `borderRadius` set to 0 to override defaults on Mac chrome/safari.
- CalloutContent: Fix calculation of max size if calloutMaxHeight is not provided
- Fix Dropdown's falsey check in selection to strict check for undefined in case key is 0
## 5.13.0
Tue, 24 Oct 2017 10:21:08 GMT
### Minor changes
- Adds "onInputChanged" prop to BasePicker
- Layer: exposing `setDefaultTarget(selector)` static method to set a default target element where layered content should render by default.
### Patches
- ComboBox: Add support for custom styling of the label in the disabled state
- Dialog: Don't add empty spans to footer for falsy children of DialogFooter
- Nav: Add onRenderLink back to JSX to allow custom rendering of links
- remove outdated semantic slots
- Ensure that Select All checkbox can still be focused
## 5.12.0
Mon, 23 Oct 2017 10:24:13 GMT
### Minor changes
- ComboBox: Adding onMenuOpen callback
### Patches
- Added a new divider component
- ContextualMenu/Callout: Fix (and deprecate) broken 'targetPoint' API
- DatePicker will not try to parse a string if the formatted string of the selected date is the same as the string to be parsed.
## 5.11.0
Fri, 20 Oct 2017 18:42:08 GMT
### Minor changes
- Adding an Icons export in lib folder, as well as adding Check to the root index exports.
- Add a way to force a layout update for ScrollablePane
- ColorPicker: Adding hex/red/green/blue/alpha label props so applications can provide localized strings. Also turns off spell check for corresponding text fields.
- Add opt-in modal selection behavior on touch
### Patches
- Fix minor state update bug with Sticky
- ComboBox: Fix custom styling on menu options
- Updated example to render some custom icons.
- SpinButton: Disable last pass autofill
- Menu Split Button: Launch split button menu with right arrow key
- PersonaCoin - display initials only if no imageUrl is provided or if error loading image
## 5.10.0
Wed, 18 Oct 2017 10:21:25 GMT
### Minor changes
- ComboBox: the label now appears disabled when the ComboBox is disabled.
- "ContextualMenu: SplitButtons can now appear inside menus"
- Theming: add SASS variables for semantic theming to support legacy scenarios"
### Patches
- Added implementation examples section to Button Page. Rearranged TextField borderless example.
- Updated the Fabric Core package version
- Fix Image css so it doesn't fade in if shouldStartVisible is true
- Fix refs in Dropdown and Datepicker
## 5.9.3
Tue, 17 Oct 2017 17:17:41 GMT
### Patches
- SearchBox: expose onKeyDown event by invoking external prop
- ContextualMenu: Pass in a menu dismiss function into onRender to allow custom rendered menu items to dismiss the menu
## 5.9.2
Mon, 16 Oct 2017 22:49:01 GMT
### Patches
- Nav: fixing amd-incompatible import.
## 5.9.1
Mon, 16 Oct 2017 20:00:51 GMT
### Patches
- Dropdown: Fixing nullref when nothing is selected in multi select rendering.
- Updating shrinkwrap for Fabric Core package update
## 5.9.0
Mon, 16 Oct 2017 10:20:41 GMT
### Minor changes
- DatePicker getWeekNumbers function accepts firstWeekOfYear settings
### Patches
- Fix Slider css so label does not break lines if value is long
- Fix rounding issue in Slider when step is less than 1
- Fix CommandButton styles for Nav entries
## 5.8.2
Fri, 13 Oct 2017 04:00:17 GMT
### Patches
- Colors Utility: add error checking if an invalid string is given
## 5.8.1
Fri, 13 Oct 2017 01:36:02 GMT
### Patches
- Callout: Update the typings on the target prop to make it compatible with React refs
- Tooltip: pass calloutProps.className to Callout
- Theme Generator: insure color update when bg inverts
## 5.8.0
Thu, 12 Oct 2017 10:20:49 GMT
### Minor changes
- Dropdown: add onDismiss callback. Example multi select dropdown with filters, we want to apply filters after user has dismissed the dropdown.
- OverflowSet: Add FocusZoneProps and the ability to set the role
- Callout: Added optional button at the bottom of the callout container
- ComboBox: added selectedIndex prop and inputFieldText prop for more control over comboBox behavior
- "Update spinButton styling to have the right font size and disabled visuals"
### Patches
- ComboBox: Updated typing and documentation for `autoComplete` to only allow 'on' or 'off' (following html standards) rather than a boolean.
- ContextualMenu: Update the typings on getMenuItemClassNames
- Adding Implementation Examples section to ComponentPage. Implemented in TextField.
## 5.7.0
Wed, 11 Oct 2017 10:11:04 GMT
### Minor changes
- ComboBox: Adding props to control height and width of Callout
- "Move getItemClassnNames forontextualMenuProps to IContextualMenuItem"
- Make Modal's FocusTrapZone controllable
### Patches
- ContextualMenu: Update the typing for getMenuClassNames
- SpinButton: Fix the code reference for the stateful spinButton Example (#3023)
- MessageBar: replaced DefaultButton with MessageBarButton.
## 5.6.0
Tue, 10 Oct 2017 10:24:47 GMT
### Minor changes
- " Move ContextualMenu component to Glamor"
- ComboBox: Add virtualization to the combobox control
### Patches
- ComboBox: Pass default render functions to ComboBox custom render functions
- New MessageBarButton component to allow for the unique state styles need in MessageBar.
## 5.5.1
Mon, 09 Oct 2017 10:08:09 GMT
### Patches
- Added sizing prop for Breadcrumb per design toolkit.
- Vertically center checkbox in DetailsList header
- Label: Convert sass to mergeStyles
- Positioning: Fix an issue where beak would appear misaligned if an event was passed in
## 5.5.0
Fri, 06 Oct 2017 10:18:41 GMT
### Minor changes
- Style ms-Button-menuIcon according to root styles for the following states - hovered, pressed, expanded ande expandedHovered.
### Patches
- Dropdown: fix broken implementation of controlled multi-select dropdowns
- TSConfig: update to use preserveConstEnums so that certain builds systems don't break when importing const enums
- Router: regex to be able to render the correct page when it encounters queries.
## 5.4.0
Thu, 05 Oct 2017 17:03:43 GMT
### Minor changes
- Fixing version dependencies.
## 6.0.1
Thu, 05 Oct 2017 10:17:42 GMT
### Patches
- Added min-width for button icons so that its easy to create buttons with space for an icon
## 6.0.0
Wed, 04 Oct 2017 22:40:22 GMT
### Breaking changes
- Positioning: Refactored positioning and removed deprecated properties
### Minor changes
- ComboBox: when options are scrollable, added prop to scroll selected item to top when callout is opened.
- "Buttons: adding `primaryDisabled` flag for disabling only the primary action of the split button, leaving the menu enabled."
### Patches
- TooltipHost: Specifying a className will no longer prevent innate Tooltip classes from being properly applied
- DatePicker - make onSelectDate callback execute as part of SetState instead of after it. This ensures that selected date changes occur in the expected order
- Dropdown: fixed logic in getSelectedIndex to support controlled uses
- General bug fixes: Updated ResourcePage text, Reordered TextField page to give priority to design guidance examples, improved padding and spacing for TextField and ComboBox examples, and various website pages. Synced ComboBox error message spacing to be like TextField and per design specs.
- Removed duplicate header in ResizeGroup.
- Added new inline prop for SearchBox and corresonding new example. Adjested the SearchBoxPage to better reflect the current toolkit documentation.
- Fixed duplicate header on Tooltip page.
- List: Fix Grid example to read right to left in RTL mode
- High contrast fixes for breadcrumb, contextualMenu, overlay, pivot, calendar, and searchbox
- BaseButton: Added borderRadius:0 to fix new default styles in webkit
## 5.3.0
Mon, 02 Oct 2017 10:19:43 GMT
### Minor changes
- PersonaCoin: added `coinSize` prop to allow for customized sizes.
## 5.2.1
Sat, 30 Sep 2017 01:26:37 GMT
### Patches
- ComboBox: Fix broken styles as part of the move to MergeStyles
## 5.2.0
Fri, 29 Sep 2017 10:20:24 GMT
### Minor changes
- Adding custom render to TextField label
### Patches
- Simplified checkbox examples and fixed spacing issue.
- DetailsList: Allow resizing columns wider than maxWidth in justified layout
- ContextualMenu: Make sure to check items within a menu section for the 'canCheck' property
- Updating mergeStyleSets usage in various components to adhere to correct typing.
- Split out and cleaned up TextField examples to better reflect the toolkit.
- DatePicker: call correct callback when previous year button is clicked
## 5.1.0
Thu, 28 Sep 2017 10:19:12 GMT
### Minor changes
- DetailsList: Added ability to add css class to checkbox cell
### Patches
- List: Fix documentation examples. Adds autobind to onRenderCell of List Grid Example
## 5.0.1
Wed, 27 Sep 2017 00:20:58 GMT
### Patches
- Updated for Fabric 5.0.
## 4.51.0
Tue, 26 Sep 2017 20:42:17 GMT
### Minor changes
- Reverting Customizer changes, as they are breaking. Will include in 5.0.
### Patches
- Use aria-label for slider, even when label is not set
- PeoplePicker: adjusting aria/role attributes to improve the Narrator experience when reading out suggestions.
- TextField: Moved aria live attribute onto the actual text of an error message for text field component so that it is read aloud by narrator.
- Removed old visual testing system to make way for new Screener based system
## 4.50.2
Tue, 26 Sep 2017 10:09:04 GMT
### Patches
- Updating components to support scoped customizations.
- Dropdown: add titleIsPlaceHolder class to dropdown title so styles can be overridden
- Persona: Fixed regression in secondary text not showing
## 4.50.1
Mon, 25 Sep 2017 10:19:18 GMT
### Patches
- Reordered Buttons on ButtonPage and made some small style changes to match toolkit for website.
- Updated ContextualMenu examples and page to better reflect the XD Toolkit.
- Dropdown: Adds a positioning wrapper around the caretDown icon
- Theme Generator: have the bg change with the theme
- make headings on theme generator page theme
## 4.50.0
Fri, 22 Sep 2017 19:08:51 GMT
### Minor changes
- Icon: Removed a recently added prop `onClicked` as it is redundant with `onClick`. Updated DatePicker to use `onClick`.
- Create Theme Generator page
- ActivityItem: Adding ReactNodes in the interface in addition to the IRenderFunction props.
### Patches
- Adds ARIA label prop for Suggestions component
- SplitButton: Fix menu rendering when splitbutton is disabled
- ComboBox: Changing high-contrast styles to use msHighContrastAdjust
## 4.49.1
Thu, 21 Sep 2017 06:23:58 GMT
### Patches
- Brand icons page clean up.
- Implement hover and focus trigger behavior for Check component
- Add the ability for compoundButtons to have icons
- [ComboBox] Fix slight rendering bug in browser zoom (around sub-pixel rounding)
- Stop delete from happening using delete or backspace when component is in disabled mode
- fix comments and example code for onRenderCaretDown prop of Dropdown component
## 4.49.0
Wed, 20 Sep 2017 10:19:01 GMT
### Minor changes
- allow 'chevron down' icon on Dropdown to be customized
- ContextualMenu: Update the type of the title property on a menu section to be of type string
- SearchBox: Added onEscape prop
### Patches
- Button: Add the ability to dismiss any open menus from the button interface
- Modal: Updated padding in example to fix RTL support
- Changing high-contrast colors to system colors
## 4.48.1
Tue, 19 Sep 2017 10:08:55 GMT
### Patches
- Added label to Persona example components.
- Added an optional alt text prop for the Image component and example on the website.
- Revised alt text best practices for Image Component in website, removed alt prop.
- Updated dropdown state styles to match the XD specs.
- Cleaned up Default Dialogue to more cleanly represent the default state. Reformated exampleStyles imports to work towards more modularity. Typo and language fixes.
- Dropdown: Fixed logic to support selected options in single select scenario
- Added shared styling to accommodate shared spacing between common elements in example components on the website. Also began to add consistency in the language.
- SplitButton: Properly cascade container styles to the disabled state
- Visual bug fixes for UHF adoption for website
## 4.48.0
Mon, 18 Sep 2017 10:18:23 GMT
### Minor changes
- DatePicker-Adding new props from Calendar component
### Patches
- DatePicker-fixing vertical scrollbar bug
- Force Check to use the page background color
- Allow onItemContextMenu a way to cancel preventDefault() call.
- ActivityItem: Descreasing icon font size.
## 4.47.0
Fri, 15 Sep 2017 10:19:50 GMT
### Minor changes
- Calendar: Adding week numbers to calendar
- DatePicker: Hovering over calendar icon in text input does not change cursor to pointer.
### Patches
- SplitButton: Fixed primary theme, updated documentation
- Prevent touch events from triggering marquee selection
## 4.46.1
Thu, 14 Sep 2017 10:17:39 GMT
### Patches
- Callout: Made updatePosition async. Contextualmenu: Fixed a bug where sometimes a submenu would have a beak.
- Refactor `Persona` to extract `PersonaCoin` and `PersonaPresence` so image/status can be rendered alone without Tooltip. Added `PersonaCoin` to top level exports
## 4.46.0
Thu, 14 Sep 2017 00:34:57 GMT
### Minor changes
- Calendar: Updating accessibility, fixing headers aria box, fixing selected/unselected state in day and month picker, updating aria-label for next/previous buttons, fixing arial label for months in month picker.
- Adding `MoreVertical` icon.
### Patches
- Check: better alignment of the check mark.
- [SwatchColorPicker] Fix uncaught exception when colorCells is empty
- Calendar: Month-picker-only selection bug fixed
- DetailsList: Update DetailsRow Check target size to be larger
## 4.45.1
Tue, 12 Sep 2017 17:41:25 GMT
### Patches
- DetailsList: Fixed collapsing logic to look at all items including first 2
- Fixing circular dependency issue in PrimaryButton.
## 4.45.0
Tue, 12 Sep 2017 10:10:21 GMT
### Minor changes
- Add sections to contextual menus
- Calendar: Arrows (when month picker only) do not navigate correctly. Fixed this and fixed position.
### Patches
- MessageBar: Added word-break to fix long words in message bar
- Pickers: Fixed a bug where suggestionsHeaderText would not display, also fixed backspace event propagating even when it was handled.
- Mix native props to Nav items.
- Button: Add support for dividers in split buttons
- SplitButton: Update the menu launcher target for a split button to be the entire control instead of just the menu launching portion
- DetailsList: Update activeRows management to use item keys
## 4.44.0
Mon, 11 Sep 2017 10:08:07 GMT
### Minor changes
- Icon: tweaked `iconName` to take in a string, rather than IconCode. The type safety can't be enforced in Fabric 5 which will support whatever subsets the customer registers.
### Patches
- CommandBar: Fixing wrong positioning for overflow menu, when overflow menu open and CommandBar is updated
## 4.43.1
Sat, 09 Sep 2017 01:39:37 GMT
### Patches
- Check: Updating css to look great on IE11.
- Add tool tip to text of Persona.
## 4.43.0
Fri, 08 Sep 2017 10:16:28 GMT
### Minor changes
- Add scrollToIndex to GroupedList, DetailsList
### Patches
- DetailsList: Fixing alignment issues due to recent changes in Check.
## 4.42.0
Thu, 07 Sep 2017 10:09:51 GMT
### Minor changes
- Added rootExpandedHovered and iconExpandedHovered to IButtonStyles interface. These entries are for specifying on hover style for expanded state.
- ContextualMenu: `onRenderSubMenu` prop added to allow the overriding of submenu rendering.
## 4.41.0
Wed, 06 Sep 2017 10:16:32 GMT
### Minor changes
- Allow rendering empty GroupedList headers
## 4.40.1
Tue, 05 Sep 2017 20:36:48 GMT
### Patches
- HoverCard: Support change in expanded card height. Add callbacks upon card visible/hide
- ScrollablePane: Fix component to remove stickyContainer element on component unmount.
- List: fixing minor issue around using the `shouldVirtualize` prop.
## 4.40.0
Mon, 04 Sep 2017 10:16:56 GMT
### Minor changes
- Updating Calendar component styles to match new OWA calendar styles for the Calendar team.
### Patches
- Check: Fixed Chrome-specific alignment for the checkmark within the circle.
- Slider: adding `vertical` property to render as a vertical slider.
- DetailsHeader: Adjust sortIcon position
## 4.39.0
Fri, 01 Sep 2017 16:51:57 GMT
### Minor changes
- Calendar: Adding option to add date formatting to calendar
### Patches
- Respect ths isHeader property on the ResizeGroup demo page
- BaseButton: Put the right classname on the menu icon
- Add FullWidth icon.
- SwatchColorPicker: Fixed so it will deselect the current items if there is a selected id passed in that does not exist in the color list
## 4.38.0
Thu, 31 Aug 2017 15:41:56 GMT
### Minor changes
- Updating goToToday to include onSelectDate function if defined so that this button behaves like a date has been picked
- Tooltip: Added support for custom maxWidth values
### Patches
- HoverCard: Improved performance of expanding animation.
- Check: Increased size of check to 18px
- Fix data-command-key to key instead of index.
- ComboBox: Loosen the re-rendering requirement
## 4.37.7
Tue, 29 Aug 2017 20:55:35 GMT
### Patches
- Adjusted build to produce sourcemaps with correct sourceRoot.
## 4.37.6
Tue, 29 Aug 2017 10:20:56 GMT
### Patches
- FocusZone: disable tabIndex of previous element on mouse focus.
- Selection: Adding better handling around a case where getKey returns null or undefined.
- Dialog: Show close button when dialog type is DialogType.close
## 4.37.5
Sat, 26 Aug 2017 00:52:38 GMT
### Patches
- Add LikeSolid icon
- Updating sass build to pre-process theming again for better registration performance.
- Fix issues when a SelectionZone is outside a FocusZone
## 4.37.4
Fri, 25 Aug 2017 20:31:51 GMT
### Patches
- Adding back sourcemap content to .map files, which should alleviate "../src/* missing" issues when using webpack.
## 4.37.3
Fri, 25 Aug 2017 19:27:18 GMT
### Patches
- ComboBox- Make sure the option always get updated if they change (#2301)
- Pickers: Have IInput props correctly extend inputhtmlattributes
## 4.37.2
Fri, 25 Aug 2017 10:09:40 GMT
### Patches
- HoverCard: Dismiss on key/mouse down, Add directionalHint, Fix target prop
- Breadcrumb: Fixed extra dropdown icon
- ComboBox - Fix so the component doesn't cause it's children to rebuild and fix up the the updating of the value accordingly
## 4.37.1
Thu, 24 Aug 2017 10:20:20 GMT
### Patches
- Darkened the placeholder text for dropdowns to meet MAS color contrast standards
## 4.37.0
Thu, 24 Aug 2017 05:38:14 GMT
### Minor changes
- Checkbox: support for aria attributes
- BasePicker: added itemLimit property, which will allow preventing adding more items than set limit.
- Selection: now takes in a selectionMode, which DetailsList and others can read from. This does not break any existing SelectionMode passed into DetailsList currently but allows you to move the setting to the Selection object.
- TextField: Added selectionStart and selectionEnd getters to ITextField.
- withViewport: adding the ability to disable measures to improve performance of rendering the DetailsList in fixed mode.
### Patches
- Fix aria-labeling for DetailsList column headers
- DetailsRow: Removed margin from check buttons.
## 4.36.0
Wed, 23 Aug 2017 19:04:55 GMT
### Minor changes
- DocumentCardPreview: Allow show Icon in the preview area instead of image.
### Patches
- ContextualMenu: Add ability to override role on menu items
- ComboBox: Content should not be selected when comboBox isn't focused
- Adding react import to SpinButton.Props for classic module resolution.
- High contrast, accesibility, and other bugfixes
- Dropdown: adds a for property to dropdown labels.
## 4.35.2
Tue, 22 Aug 2017 10:09:55 GMT
### Patches
- Dropdown: Fixed bug where selectedKey selects dropdown option with a different key
## 4.35.1
Mon, 21 Aug 2017 10:19:29 GMT
### Patches
- Updating project dependencies.
- DetailsList: Move background color from .cell to .root for DetailsHeader
- PeoplePicker: Fixing A11yMAS accessibility issue in selected items.
## 4.35.0
Fri, 18 Aug 2017 16:32:33 GMT
### Minor changes
- Added ActionButton and CommandBarButton
- DetailsList: Resizing columns preserves justified mode.
- TooltipHost: new onTooltipToggle callback
### Patches
- Minor cleanup in merging of css class names.
- Dropdown: Fixed bug where selected state was not being removed from dropdown options
- FocusZone: presssing home/end inside of an input/textarea element should respect cursor location.
- Fix some unused code and typings in List
- Pickers: Fixed an issue where a loop would sometimes occur if values were resolved when input had an empty value.
- Toggle: fixed issue where disabled Toggles are clickable. Also cleaned up some of the styling.
- CommandBar: adding `aria-expanded` attribute to overflow menu.
- DetailsList: Making expand/collapse chevron in grouped list headers keyboard accessible.
## 4.34.0
Wed, 16 Aug 2017 10:11:43 GMT
### Minor changes
- Enhancing the calendar component. Created option to have month picker overlayed on top of calendar so that the calendar remains in one column and switches between the two. Added accessibility in new overlay to mimi OWA calendar. Fixed issue: When the month picker is the only calendar, and screen is small, calendar would disappear when it should be visible.
- Calendar had extra 30px margin at the bottom of the component. It interfered with the layout below the component. The 30px margin is only necessary when the 'go to today' button is visible.
- Add ability to override page render behavior in List
## 4.33.0
Tue, 15 Aug 2017 10:19:22 GMT
### Minor changes
- Dropdown: no longer scrolls body when arrowing up down at the start/end of the menu. Also added `multSelectDelimiter` for tweaking how the title is rendered in a multi-select scenario.
- Pickers: fixing accessiblity and styling issues
### Patches
- ComboBox: Fix role typo to read heading instead of header
- Added menu indexes to the accessibility readouts for ContextMenus
- Added the ability to change the root element of a FocusZone
## 4.32.0
Fri, 11 Aug 2017 19:38:35 GMT
### Minor changes
- Mixing choice group fields with html input attributes
- Callout/Dropdown: Both components now support custom widths
- Nav: Add more options for nav link groups
- ComboBox: Fix some functionality for when the comboBox is controlled
- Calendar: added ability to customize navigation icons.
- Add onFocus and onBlur for Pickers, SpinButton, SearchBox, and Rating. Add IBasePicker with focus().
### Patches
- add StreamLogo and PowerBILogo icons
- Add target to hover card
- Nav: fix bug with sublink padding
- FocusZone: adjusting initialization logic to remove a potential memory leak in server rendered scenarios.
- ComboBox: Update example to work correctly now that StrictNullChecks have been put in place
- Nav: update isGroupCollapsed for new groups
- Change dropdown's role from "combobox" to "menu"
- Changed DatePicker role to be more accurate for screen readers
- Selection: Fix broken selection state in example.
## 4.31.0
Tue, 08 Aug 2017 15:28:32 GMT
### Minor changes
- ComboBox: Putting the child component styles in the main props and a few other fixes
- Moving SpinButton to Glamor based styling
- GridCell: Add a component to handle the shared logic managing selection and navigation of cells within all consumers of the Grid class. This change also updates the SwatchColorPicker to use the GridCell component and removes most of the logic now contained in the GridCell component.
- Checkbox: add custom render function for checkbox label.
### Patches
- BaseButton: Added screenReaderText styles to base button
- BaseButton: Remove the IconButton dependency that was introduced with SplitButton.
- Added role alert to "no results" view
## 4.30.1
Mon, 07 Aug 2017 10:22:46 GMT
### Patches
- Callout: Fix positioning comparision so it correctly repositions if the beak left/right position has changed"
- Dialog: fixing accessibility regression
- Prevent auto-selection on focus in DetailsList
- ResizeGroup: Prevent rendering to the hidden div on prop updates that has an initial data that is in the cache
- Textfield: removed background from textfield internal field
## 4.30.0
Fri, 04 Aug 2017 10:11:48 GMT
### Minor changes
- Dropdown: added `multiSelect` attribute, which controls multi-item selection. Added `selectedKeys` to `IDropdown` which provides access to all selected keys, in addition to `defaultSelectedKeys` and `selectedKeys` props.
- Add ScrollablePane and Sticky components
### Patches
- Button: Merge the ISplitButtonStyles into IButtonStyles
- Datepicker: updated icon size
- Expand hit target of DetailsRow checkbox
- ResizeGroup: Add another example use case to demo site
- PeoplePicker: Improved keyboard support and font size updates.
## 4.29.0
Thu, 03 Aug 2017 10:13:03 GMT
### Minor changes
- ConextualMenuItem: Support target value
- TypeScript 2.4.1 bump
### Patches
- add Spacer and Divider toolbox icon
- Searchbox: fixed bug when repeatedly entering a single character
- Callout: Reverting the callout border to it's previous state with a light border.
## 4.28.0
Wed, 02 Aug 2017 10:22:40 GMT
### Minor changes
- Enable strictNullChecks
### Patches
- Checkbox: Fix Edge bug where 2nd click event was being fired
- ChoiceGroup: allow developers to pass additional 'aria-labelledBy' ids
- ContextualMenu: Fixing issue where icons are not displayed.
## 4.27.0
Tue, 01 Aug 2017 10:13:55 GMT
### Minor changes
- SwatchColorPicker: Simplify component to remove the menu button and header/divider aspects that were built in to the component. Now the SwatchColorPicker only renders the grid portion and is more streamlined
- OverflowSet: Add focus method, class name and abstract item interface
- Panel: added prop to force footer to bottom of the page
### Patches
- Allow the X in a persona to receive focus and update focus when it is clicked
## 4.26.0
Mon, 31 Jul 2017 10:12:08 GMT
### Minor changes
- BasePicker: Add in the ability for it to be used as a controlled component with the property selectedItems
### Patches
- MessageBar: Fix system problems that display when component is on website
- Searchbox: Fixed broken disabled state and aligned styles with current XD styles
## 4.25.1
Fri, 28 Jul 2017 18:36:00 GMT
### Patches
- Checkbox: Adjusting the default text color to not use default button color, removing click behavior for disabled checkboxes, fixing an rtl margin issue.
- Fix Callout to get a valid element
## 4.25.0
Fri, 28 Jul 2017 10:23:10 GMT
### Minor changes
- Moving ComboBox component to use the styling library
### Patches
- Fix hover card scroll
- Checkbox: Added left textAlign style
- Update accessibility for checkable menu items
## 4.24.0
Thu, 27 Jul 2017 10:23:33 GMT
### Minor changes
- More type casting to get us on the path to enabling strictNullChecks
### Patches
- Dropdown: added onBlur support.
- Fix focus issues for Safari and Firefox on Mac OS
- Icons: Added new icons from 2.38
- Adds prop to process selection in BasePicker
- CommandBar: Accessibility fix for expand behavior
## 4.23.0
Tue, 25 Jul 2017 10:22:35 GMT
### Minor changes
- Button: Support expanded style state triggered by opened menu
### Patches
- Checkbox: Fixed label font size
- TextField: multiline variant font now correct, assuming the Fabric component wraps the application. A new selector was added which will force TEXTAREA elements to inherit the font.
- ResizeGroup: Prevent flashing when passing in new props
- ResizeGroup: Don't show a scrollbar while measuring the hidden div
- Textfield: Fixed high contrast border and textarea font family
- Textfield: Removed icon pointer events so that any click is click in textfield
## 4.22.0
Mon, 24 Jul 2017 10:24:30 GMT
### Minor changes
- Callout/ContextualMenu/Tooltip: we now mirror DirectionalHints in RTL layouts by default. To override this behavior, specify `directionalHintForRtl`
### Patches
- Fix application of aria properties on BaseButton.
- ResizeGroup: Add support for onGrowData
- Accessibility fixes for PeoplePicker
- Dropdown: Updated keydown handler to respond correctly to normal dropdown items
## 4.21.4
Fri, 21 Jul 2017 10:21:45 GMT
### Patches
- Do not redundantly set aria-label on command bar items.
- More strict null check fixes in office-ui-fabric-react
- Textfield: Fixed regression in disabled styles
- ResizeGroup: Use scrollWidth instead of clientWidth for measuring hidden div
- Fixed deletion