-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: File input, file token group, and file dropzone components #3001
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3001 +/- ##
=======================================
Coverage 96.30% 96.30%
=======================================
Files 771 776 +5
Lines 21820 21846 +26
Branches 7450 7452 +2
=======================================
+ Hits 21013 21039 +26
Misses 799 799
Partials 8 8 ☔ View full report in Codecov by Sentry. |
props: { | ||
showFileLastModified, | ||
showFileSize, | ||
showFileThumbnail, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also add alignment and limit as props and something like useFilesLoading as metadata.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by useFilesLoading? Is there an example you can share?
import { applyDisplayName } from '../internal/utils/apply-display-name'; | ||
import { FileDropzoneProps } from './interfaces'; | ||
import InternalFileDropzone from './internal'; | ||
import { useFilesDragging } from './use-files-dragging'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add metrics instrumentation to useFilesDragging (as a follow-up, I'd say)?
Description
This pulls file input, file token group, and file dropzone out of internal and into the public folder.
It also updates file dropzone colors based on discussions with the visual design team.
This PR is part one of multiple for file upload decomposition, to make the pull requests easier to review.
Note: I decided to combine the external PRs to avoid merge conflicts and easier release.
Full plan:
file-upload
variant to button groupRelated links, issue #, if available: n/a
How has this been tested?
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md
.CONTRIBUTING.md
.Security
checkSafeUrl
function.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.