Skip to content

Commit

Permalink
Merge branch 'master' into safari-helper-text-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Jul 7, 2020
2 parents 72f9fce + 8a284ea commit 326de7f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
10 changes: 10 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2549,6 +2549,16 @@ Map {
"role": Object {
"type": "string",
},
"size": Object {
"args": Array [
Array [
"default",
"field",
"small",
],
],
"type": "oneOf",
},
"tabIndex": Object {
"type": "number",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const props = {
'Error body (errorBody)',
'500kb max file size. Select a new file and try again.'
),
size: select('FileUploaderItem height (size)', sizes, 'default'),
}),
fileUploaderDropContainer: () => ({
size: select('Filename height (size)', sizes, 'default'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ FileUploaderDropContainer.propTypes = {
* The event handler signature looks like `onAddFiles(evt, { addedFiles })`
*/
onAddFiles: PropTypes.func,

/**
* Specify the size of the uploaded items, from a list of available
* sizes. For `default` size, this prop can remain unspecified.
*/
size: PropTypes.oneOf(['default', 'field', 'small']),
};

FileUploaderDropContainer.defaultProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ FileUploaderItem.propTypes = {
status: PropTypes.oneOf(['uploading', 'edit', 'complete']),

/**
* Specify the size of the button, from a list of available sizes.
* For `default` buttons, this prop can remain unspecified.
* Specify the size of the uploaded items, from a list of available
* sizes. For `default` size, this prop can remain unspecified.
*/
size: PropTypes.oneOf(['default', 'field', 'small']),

Expand Down

0 comments on commit 326de7f

Please sign in to comment.