Skip to content

Commit

Permalink
Merge pull request #701 from folio-org/release-v5.0.0
Browse files Browse the repository at this point in the history
Release v5.0.0
  • Loading branch information
cherewaty authored Jan 15, 2019
2 parents abda330 + f974e1a commit ca5e0d5
Show file tree
Hide file tree
Showing 29 changed files with 35 additions and 525 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
# Change history for stripes-components

## 4.6.0 (In Progress)
## [5.0.0](https://github.com/folio-org/stripes-components/tree/v5.0.0) (2019-01-15)
[Full Changelog](https://github.com/folio-org/stripes-components/compare/v4.4.0...v5.0.0)

* Add `inputRef` prop to `<TextField>`. Part of STCOM-372.
* Deprecate `getInput()` and `focusInput()` methods of `TextField`. Part of STCOM-372.
* Add [documentation](lib/TextField/Readme.md) for `<TextField>`.
* Add `document` icon
* Replace `<SegmentedControl>` with `<ButtonGroup>`
* Fix broken focus management of `<Selection>` on small screens. Fixes STCOM-433.
* Remove `craftLayerUrl()` util
* Remove deprecated CSS variables
* Remove deprecated `title` props
* Remove deprecated `excludeKeys` prop for `exportCsv`
* Delete `<TabButton>`
* Remove `<IfPermission>` and `<IfInterface>`
* Remove deprecated icon names
* Delete moved `<EntrySelector>`


## [4.5.0](https://github.com/folio-org/stripes-components/tree/v4.5.0) (2018-11-29)
[Full Changelog](https://github.com/folio-org/stripes-components/compare/v4.4.0...v4.5.0)
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ Component | doc | categories
[`<DropdownMenu>`](lib/DropdownMenu) | | control
[`<EditableList>`](lib/EditableList) | [doc](lib/EditableList/readme.md) | control, prefab
[`<EmptyMessage>`](lib/EmptyMessage) | [doc](lib/EmptyMessage/readme.md) | structure
[`<EntrySelector>`](lib/EntrySelector) | | control
[`<ErrorBoundary>`](lib/ErrorBoundary) | | user-feedback
[`<FilterControlGroup>`](lib/FilterControlGroup) | | control
[`<FilterGroups>`](lib/FilterGroups) | [doc](lib/FilterGroups/readme.md) | control
Expand All @@ -69,8 +68,6 @@ Component | doc | categories
[`<HotKeys>`](lib/HotKeys) | [doc](lib/HotKeys/readme.md) | utility
[`<Icon>`](lib/Icon) | [doc](lib/Icon/readme.md) | design
[`<IconButton>`](lib/IconButton) | [doc](lib/IconButton/readme.md) | control
[`<IfInterface>`](lib/IfInterface) | [doc](lib/IfInterface/readme.md) | utility
[`<IfPermission>`](lib/IfPermission) | [doc](lib/IfPermission/readme.md) | utility
[`<InfoPopover>`](lib/InfoPopover) | [doc](lib/InfoPopover/readme.md) | control, prefab
[`<KeyValue>`](lib/KeyValue) | [doc](lib/KeyValue/readme.md) | data-display
[`<Layer>`](lib/Layer) | [doc](lib/Layer/readme.md) | structure
Expand Down Expand Up @@ -105,7 +102,6 @@ Component | doc | categories
[`<Selection>`](lib/Selection) | [doc](lib/Selection/readme.md) | control
[`<Settings>`](lib/Settings) | [doc](lib/Settings/readme.md) | prefab
[`<SRStatus>`](lib/SRStatus) | [doc](lib/SRStatus/readme.md) | accessibility, user-feedback
[`<TabButton>`](lib/TabButton) | | control
[`<TextArea>`](lib/TextArea) | | control
[`<TextField>`](lib/TextField) | [doc](lib/TextField/readme.md) | control
[`<Timepicker>`](lib/Timepicker) | [doc](lib/Timepicker/readme.md) | control
Expand Down
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export { default as RadioButton } from './lib/RadioButton';
export { default as RadioButtonGroup } from './lib/RadioButtonGroup';
export { default as SegmentedControl } from './lib/SegmentedControl';
export { default as Select } from './lib/Select';
export { default as TabButton } from './lib/TabButton';
export { default as TextArea } from './lib/TextArea';
export { default as TextField } from './lib/TextField';
export { default as Timepicker } from './lib/Timepicker';
Expand Down Expand Up @@ -55,12 +54,9 @@ export { default as Callout, CalloutElement } from './lib/Callout';
export { Dropdown, UncontrolledDropdown } from './lib/Dropdown';
export { default as DropdownMenu } from './lib/DropdownMenu';
export { default as MenuSection } from './lib/MenuSection';
export { default as EntrySelector } from './lib/EntrySelector';
export { default as FocusLink } from './lib/FocusLink';
export { default as Headline } from './lib/Headline';
export { HotKeys, FocusTrap, HotKeyMapMixin } from './lib/HotKeys';
export { default as IfInterface } from './lib/IfInterface';
export { default as IfPermission } from './lib/IfPermission';
export { default as MenuItem } from './lib/MenuItem';
export { default as MetaSection } from './lib/MetaSection';
export { default as NavList } from './lib/NavList';
Expand Down
6 changes: 2 additions & 4 deletions lib/Avatar/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@
import React from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
import { deprecated } from 'prop-types-extra';
import css from './Avatar.css';

const propTypes = {
alt: PropTypes.string,
ariaLabel: PropTypes.string,
src: PropTypes.string,
title: deprecated(PropTypes.string, 'Use ariaLabel instead'),
};

const Avatar = ({ src, alt, title, ariaLabel, ...rest }) => {
const Avatar = ({ src, alt, ariaLabel, ...rest }) => {
// Placeholder SVG
let content = (
// eslint-disable-next-line max-len
Expand All @@ -24,7 +22,7 @@ const Avatar = ({ src, alt, title, ariaLabel, ...rest }) => {

// If we have a src attribute
if (src) {
content = (<img src={src} alt={alt} aria-label={ariaLabel || title} />);
content = (<img src={src} alt={alt} aria-label={ariaLabel} />);
}

return (
Expand Down
2 changes: 1 addition & 1 deletion lib/Avatar/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Name | Type | Description
-- | -- | --
src | string | Pass a url for a user's profile image
alt | string | Adds the alt attribute to the image-tag
title | string | Adds the title attribute to the image-tag
ariaLabel | string | Adds the aria-label attribute to the image-tag
217 changes: 0 additions & 217 deletions lib/EntrySelector/EntrySelector.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/EntrySelector/index.js

This file was deleted.

6 changes: 2 additions & 4 deletions lib/ExportCsv/ExportCsv.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { deprecated } from 'prop-types-extra';
import exportToCsv from './exportToCsv';
import Button from '../Button';

class ExportCsv extends React.Component {
static propTypes = {
data: PropTypes.arrayOf(PropTypes.object),
excludeKeys: deprecated(PropTypes.arrayOf(PropTypes.string), 'Use onlyFields to pass in the necessary fields'),
onlyFields: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.string),
PropTypes.arrayOf(PropTypes.object),
]),
}

render() {
const { data, excludeKeys, onlyFields } = this.props;
const options = { excludeKeys, onlyFields };
const { data, onlyFields } = this.props;
const options = { onlyFields };
return (
<Button onClick={() => { exportToCsv(data, options); }}>
<FormattedMessage id="stripes-components.exportToCsv" />
Expand Down
2 changes: 1 addition & 1 deletion lib/FocusLink/FocusLink.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
outline: 0;

&:focus {
color: var(--link-color);
color: var(--color-link);
}
}

Expand Down
Loading

0 comments on commit ca5e0d5

Please sign in to comment.