Skip to content

Commit

Permalink
Copy storagemanager as fileuploader (#5744)
Browse files Browse the repository at this point in the history
* chore: copy StorageManager component, renaming copy FileUploader

* chore: add FileUploader to component class names

* chore: renaming internal FileUploader references to use its own name

* chore: adding test for default prop in FileControl

* chore: rename test file to use FileUploader reference

* chore: add changeset

* fix: adding reference to correct component class in test

* Update .changeset/small-masks-act.md

Co-authored-by: Scott Rees <[email protected]>

---------

Co-authored-by: Scott Rees <[email protected]>
  • Loading branch information
jordanvn and reesscot authored Sep 4, 2024
1 parent c7fe4a2 commit c3dfbe0
Show file tree
Hide file tree
Showing 79 changed files with 5,942 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/small-masks-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@aws-amplify/ui-react-storage': minor
'@aws-amplify/ui': minor
---

Adds FileUploader as new default name of StorageManager to avoid confusion with new components
77 changes: 77 additions & 0 deletions docs/src/components/ComponentsMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type ComponentNameKey =
| 'Divider'
| 'DropZone'
| 'Fieldset'
| 'FileUploader'
| 'Flex'
| 'Grid'
| 'Heading'
Expand Down Expand Up @@ -317,6 +318,82 @@ export const ComponentsMetadata: ComponentClassNameItems = {
components: ['Fieldset'],
description: 'Visual label for the Fieldset primitive',
},
FileUploader: {
className: ComponentClassName.FileUploader,
components: ['FileUploader'],
},
FileUploaderDropZone: {
className: ComponentClassName.FileUploaderDropZone,
components: ['FileUploader'],
},
FileUploaderDropZoneIcon: {
className: ComponentClassName.FileUploaderDropZoneIcon,
components: ['FileUploader'],
},
FileUploaderDropZoneText: {
className: ComponentClassName.FileUploaderDropZoneText,
components: ['FileUploader'],
},
FileUploaderFilePicker: {
className: ComponentClassName.FileUploaderFilePicker,
components: ['FileUploader'],
},
FileUploaderFile: {
className: ComponentClassName.FileUploaderFile,
components: ['FileUploader'],
},
FileUploaderFileWrapper: {
className: ComponentClassName.FileUploaderFileWrapper,
components: ['FileUploader'],
},
FileUploaderFileList: {
className: ComponentClassName.FileUploaderFileList,
components: ['FileUploader'],
},
FileUploaderFileName: {
className: ComponentClassName.FileUploaderFileName,
components: ['FileUploader'],
},
FileUploaderLoader: {
className: ComponentClassName.FileUploaderLoader,
components: ['FileUploader'],
},
FileUploaderFileSize: {
className: ComponentClassName.FileUploaderFileSize,
components: ['FileUploader'],
},
FileUploaderFileInfo: {
className: ComponentClassName.FileUploaderFileInfo,
components: ['FileUploader'],
},
FileUploaderFileImage: {
className: ComponentClassName.FileUploaderFileImage,
components: ['FileUploader'],
},
FileUploaderFileMain: {
className: ComponentClassName.FileUploaderFileMain,
components: ['FileUploader'],
},
FileUploaderFileStatus: {
className: ComponentClassName.FileUploaderFileStatus,
components: ['FileUploader'],
},
FileUploaderPreviewer: {
className: ComponentClassName.FileUploaderPreviewer,
components: ['FileUploader'],
},
FileUploaderPreviewerText: {
className: ComponentClassName.FileUploaderPreviewerText,
components: ['FileUploader'],
},
FileUploaderPreviewerActions: {
className: ComponentClassName.FileUploaderPreviewerActions,
components: ['FileUploader'],
},
FileUploaderPreviewerFooter: {
className: ComponentClassName.FileUploaderPreviewerFooter,
components: ['FileUploader'],
},
Flex: {
className: ComponentClassName.Flex,
components: ['Flex'],
Expand Down
Loading

0 comments on commit c3dfbe0

Please sign in to comment.