Skip to content

Commit

Permalink
Build package
Browse files Browse the repository at this point in the history
  • Loading branch information
adirhaz1z committed Apr 11, 2021
1 parent c954722 commit 0198128
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 5 deletions.
8 changes: 8 additions & 0 deletions dist/commonjs/Grid/Grid.js
Expand Up @@ -1041,6 +1041,8 @@ var Grid =
onScroll: this._onScroll,
role: role,
style: _objectSpread(_objectSpread({}, gridStyle), style),
onFocus: this.props['onFocus'],
onBlur: this.props['onBlur'],
tabIndex: tabIndex,
},
),
Expand Down Expand Up @@ -1842,6 +1844,12 @@ var Grid =
'aria-readonly': _propTypes['default'].bool,
'aria-activedescendant': _propTypes['default'].string,

/** Callback invoked when list is focused. */
onFocus: _propTypes['default'].func,

/** Callback invoked when list is blured. */
onBlur: _propTypes['default'].func,

/**
* Set the width of the inner scrollable container to 'auto'.
* This is useful for single-column Grids to ensure that the column doesn't extend below a vertical scrollbar.
Expand Down
6 changes: 6 additions & 0 deletions dist/commonjs/List/List.js
Expand Up @@ -380,6 +380,12 @@ var List =
).apply(this, arguments);
},

/** Callback invoked when list is focused. */
onFocus: _propTypes['default'].func,

/** Callback invoked when list is blured. */
onBlur: _propTypes['default'].func,

/** Callback invoked with information about the slice of rows that were just rendered. */
onRowsRendered: _propTypes['default'].func.isRequired,

Expand Down
8 changes: 8 additions & 0 deletions dist/es/Grid/Grid.js
Expand Up @@ -983,6 +983,8 @@ var Grid =
onScroll: this._onScroll,
role: role,
style: _objectSpread(_objectSpread({}, gridStyle), style),
onFocus: this.props['onFocus'],
onBlur: this.props['onBlur'],
tabIndex: tabIndex,
},
),
Expand Down Expand Up @@ -1782,6 +1784,12 @@ var Grid =
'aria-readonly': PropTypes.bool,
'aria-activedescendant': PropTypes.string,

/** Callback invoked when list is focused. */
onFocus: PropTypes.func,

/** Callback invoked when list is blured. */
onBlur: PropTypes.func,

/**
* Set the width of the inner scrollable container to 'auto'.
* This is useful for single-column Grids to ensure that the column doesn't extend below a vertical scrollbar.
Expand Down
6 changes: 6 additions & 0 deletions dist/es/List/List.js
Expand Up @@ -337,6 +337,12 @@ var List =
).apply(this, arguments);
},

/** Callback invoked when list is focused. */
onFocus: PropTypes.func,

/** Callback invoked when list is blured. */
onBlur: PropTypes.func,

/** Callback invoked with information about the slice of rows that were just rendered. */
onRowsRendered: PropTypes.func.isRequired,

Expand Down
2 changes: 2 additions & 0 deletions dist/umd/react-virtualized.js
Expand Up @@ -4780,6 +4780,8 @@
_objectSpread2({}, gridStyle),
style,
),
onFocus: this.props.onFocus,
onBlur: this.props.onBlur,
tabIndex: tabIndex,
},
),
Expand Down
6 changes: 3 additions & 3 deletions source/Grid/Grid.js
Expand Up @@ -63,10 +63,10 @@ type Props = {
'aria-activedescendant'?: string,

/** Callback invoked when list is focused. */
onFocus: (params: Event) => void,
onFocus?: (params: Event) => void,

/** Callback invoked when list is blured. */
onBlur: (params: Event) => void,
onBlur?: (params: Event) => void,

/**
* Set the width of the inner scrollable container to 'auto'.
Expand Down Expand Up @@ -1061,7 +1061,7 @@ class Grid extends React.PureComponent<Props, State> {
...style,
}}
onFocus={this.props['onFocus']}
onBLur={this.props['onBlur']}
onBlur={this.props['onBlur']}
tabIndex={tabIndex}>
{childrenToDisplay.length > 0 && (
<div
Expand Down
4 changes: 2 additions & 2 deletions source/List/List.js
Expand Up @@ -51,10 +51,10 @@ type Props = {
noRowsRenderer: NoContentRenderer,

/** Callback invoked when list is focused. */
onFocus: (params: Event) => void,
onFocus?: (params: Event) => void,

/** Callback invoked when list is blured. */
onBlur: (params: Event) => void,
onBlur?: (params: Event) => void,

/** Callback invoked with information about the slice of rows that were just rendered. */
onRowsRendered: (params: RenderedRows) => void,
Expand Down

0 comments on commit 0198128

Please sign in to comment.