@webiny/app-file-manager 5.43.3 → 6.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BatchFileUploader.d.ts +2 -2
- package/BatchFileUploader.js +75 -112
- package/BatchFileUploader.js.map +1 -1
- package/app.js +8 -15
- package/app.js.map +1 -1
- package/components/BottomInfoBar/BottomInfoBar.d.ts +2 -2
- package/components/BottomInfoBar/BottomInfoBar.js +14 -17
- package/components/BottomInfoBar/BottomInfoBar.js.map +1 -1
- package/components/BottomInfoBar/ListStatus.js +17 -21
- package/components/BottomInfoBar/ListStatus.js.map +1 -1
- package/components/BottomInfoBar/SupportedFileTypes.js +31 -32
- package/components/BottomInfoBar/SupportedFileTypes.js.map +1 -1
- package/components/BottomInfoBar/index.js +1 -16
- package/components/BottomInfoBar/index.js.map +1 -1
- package/components/BulkActions/ActionDelete.js +70 -71
- package/components/BulkActions/ActionDelete.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEdit.js +38 -45
- package/components/BulkActions/ActionEdit/ActionEdit.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEdit.types.d.ts +1 -1
- package/components/BulkActions/ActionEdit/ActionEdit.types.js +1 -5
- package/components/BulkActions/ActionEdit/ActionEdit.types.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEditPresenter.d.ts +1 -1
- package/components/BulkActions/ActionEdit/ActionEditPresenter.js +45 -80
- package/components/BulkActions/ActionEdit/ActionEditPresenter.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js +11 -15
- package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js +15 -18
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.d.ts +2 -2
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js +34 -54
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.d.ts +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js +34 -46
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.d.ts +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js +125 -173
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js +56 -48
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.d.ts +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js +20 -28
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.d.ts +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js +34 -46
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js +1 -16
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js.map +1 -1
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.d.ts +2 -2
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.js +41 -51
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.js.map +1 -1
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js +88 -75
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/Batch.js +23 -38
- package/components/BulkActions/ActionEdit/domain/Batch.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/BatchMapper.d.ts +1 -1
- package/components/BulkActions/ActionEdit/domain/BatchMapper.js +10 -27
- package/components/BulkActions/ActionEdit/domain/BatchMapper.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/Field.d.ts +1 -1
- package/components/BulkActions/ActionEdit/domain/Field.js +31 -53
- package/components/BulkActions/ActionEdit/domain/Field.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/FieldMapper.d.ts +1 -1
- package/components/BulkActions/ActionEdit/domain/FieldMapper.js +18 -41
- package/components/BulkActions/ActionEdit/domain/FieldMapper.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/index.js +4 -49
- package/components/BulkActions/ActionEdit/domain/index.js.map +1 -1
- package/components/BulkActions/ActionEdit/index.js +1 -16
- package/components/BulkActions/ActionEdit/index.js.map +1 -1
- package/components/BulkActions/ActionEdit/useActionEditWorker.d.ts +2 -2
- package/components/BulkActions/ActionEdit/useActionEditWorker.js +44 -48
- package/components/BulkActions/ActionEdit/useActionEditWorker.js.map +1 -1
- package/components/BulkActions/ActionMove.js +64 -61
- package/components/BulkActions/ActionMove.js.map +1 -1
- package/components/BulkActions/BulkActions.js +35 -38
- package/components/BulkActions/BulkActions.js.map +1 -1
- package/components/BulkActions/index.js +4 -43
- package/components/BulkActions/index.js.map +1 -1
- package/components/EditFileUsingUrl/EditFileUsingUrl.d.ts +1 -1
- package/components/EditFileUsingUrl/EditFileUsingUrl.js +31 -43
- package/components/EditFileUsingUrl/EditFileUsingUrl.js.map +1 -1
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.d.ts +2 -2
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js +39 -49
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js.map +1 -1
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.d.ts +1 -1
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js +32 -49
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js.map +1 -1
- package/components/EditFileUsingUrl/GetFileByUrl.d.ts +4 -4
- package/components/EditFileUsingUrl/GetFileByUrl.js +22 -34
- package/components/EditFileUsingUrl/GetFileByUrl.js.map +1 -1
- package/components/EditFileUsingUrl/Loading.js +30 -53
- package/components/EditFileUsingUrl/Loading.js.map +1 -1
- package/components/EditFileUsingUrl/UpdateFile.d.ts +3 -3
- package/components/EditFileUsingUrl/UpdateFile.js +6 -19
- package/components/EditFileUsingUrl/UpdateFile.js.map +1 -1
- package/components/EditFileUsingUrl/getFileByUrl.graphql.d.ts +1 -1
- package/components/EditFileUsingUrl/getFileByUrl.graphql.js +16 -13
- package/components/EditFileUsingUrl/getFileByUrl.graphql.js.map +1 -1
- package/components/EditFileUsingUrl/index.js +1 -16
- package/components/EditFileUsingUrl/index.js.map +1 -1
- package/components/Empty/Empty.d.ts +1 -1
- package/components/Empty/Empty.js +18 -23
- package/components/Empty/Empty.js.map +1 -1
- package/components/Empty/index.js +1 -16
- package/components/Empty/index.js.map +1 -1
- package/components/FileDetails/FileDetails.d.ts +1 -1
- package/components/FileDetails/FileDetails.js +120 -131
- package/components/FileDetails/FileDetails.js.map +1 -1
- package/components/FileDetails/FileDetailsProvider.d.ts +1 -1
- package/components/FileDetails/FileDetailsProvider.js +11 -17
- package/components/FileDetails/FileDetailsProvider.js.map +1 -1
- package/components/FileDetails/components/ActionButton.d.ts +2 -1
- package/components/FileDetails/components/ActionButton.js +17 -24
- package/components/FileDetails/components/ActionButton.js.map +1 -1
- package/components/FileDetails/components/Actions.js +11 -34
- package/components/FileDetails/components/Actions.js.map +1 -1
- package/components/FileDetails/components/BaseFields.d.ts +1 -1
- package/components/FileDetails/components/BaseFields.js +14 -22
- package/components/FileDetails/components/BaseFields.js.map +1 -1
- package/components/FileDetails/components/Content.d.ts +2 -1
- package/components/FileDetails/components/Content.js +28 -41
- package/components/FileDetails/components/Content.js.map +1 -1
- package/components/FileDetails/components/CreatedOn.js +19 -52
- package/components/FileDetails/components/CreatedOn.js.map +1 -1
- package/components/FileDetails/components/Description.d.ts +2 -0
- package/components/FileDetails/components/Description.js +23 -0
- package/components/FileDetails/components/Description.js.map +1 -0
- package/components/FileDetails/components/Extensions.d.ts +1 -1
- package/components/FileDetails/components/Extensions.js +19 -47
- package/components/FileDetails/components/Extensions.js.map +1 -1
- package/components/FileDetails/components/Preview.js +9 -27
- package/components/FileDetails/components/Preview.js.map +1 -1
- package/components/FileDetails/components/Thumbnail.js +13 -18
- package/components/FileDetails/components/Thumbnail.js.map +1 -1
- package/components/FileDetails/index.js +1 -16
- package/components/FileDetails/index.js.map +1 -1
- package/components/FileDropArea/FileDropArea.d.ts +9 -0
- package/components/FileDropArea/FileDropArea.js +69 -0
- package/components/FileDropArea/FileDropArea.js.map +1 -0
- package/components/FileDropArea/index.d.ts +1 -0
- package/components/FileDropArea/index.js +3 -0
- package/components/FileDropArea/index.js.map +1 -0
- package/components/FileDropPlaceholder/FileDropPlaceholder.d.ts +2 -0
- package/components/FileDropPlaceholder/FileDropPlaceholder.js +12 -0
- package/components/FileDropPlaceholder/FileDropPlaceholder.js.map +1 -0
- package/components/FileDropPlaceholder/index.d.ts +1 -0
- package/components/FileDropPlaceholder/index.js +3 -0
- package/components/FileDropPlaceholder/index.js.map +1 -0
- package/components/Filters/Filters.js +26 -0
- package/components/Filters/Filters.js.map +1 -0
- package/components/Filters/index.d.ts +1 -0
- package/components/Filters/index.js +3 -0
- package/components/Filters/index.js.map +1 -0
- package/components/Grid/ActionButton.d.ts +2 -1
- package/components/Grid/ActionButton.js +24 -21
- package/components/Grid/ActionButton.js.map +1 -1
- package/components/Grid/File.d.ts +2 -1
- package/components/Grid/File.js +74 -60
- package/components/Grid/File.js.map +1 -1
- package/components/Grid/Grid.d.ts +4 -3
- package/components/Grid/Grid.js +58 -67
- package/components/Grid/Grid.js.map +1 -1
- package/components/Grid/Thumbnail.js +13 -18
- package/components/Grid/Thumbnail.js.map +1 -1
- package/components/Grid/index.js +1 -16
- package/components/Grid/index.js.map +1 -1
- package/components/Header/Actions.d.ts +5 -0
- package/components/Header/Actions.js +99 -0
- package/components/Header/Actions.js.map +1 -0
- package/components/Header/Header.d.ts +9 -0
- package/components/Header/Header.js +17 -0
- package/components/Header/Header.js.map +1 -0
- package/components/Header/Title.d.ts +2 -0
- package/components/Header/Title.js +62 -0
- package/components/Header/Title.js.map +1 -0
- package/components/Header/index.d.ts +1 -0
- package/components/Header/index.js +3 -0
- package/components/Header/index.js.map +1 -0
- package/components/ImageEditor/ImageEditor.d.ts +45 -0
- package/components/ImageEditor/ImageEditor.js +218 -0
- package/components/ImageEditor/ImageEditor.js.map +1 -0
- package/components/ImageEditor/ImageEditorDialog.d.ts +16 -0
- package/components/ImageEditor/ImageEditorDialog.js +53 -0
- package/components/ImageEditor/ImageEditorDialog.js.map +1 -0
- package/components/ImageEditor/index.d.ts +1 -0
- package/components/ImageEditor/index.js +3 -0
- package/components/ImageEditor/index.js.map +1 -0
- package/components/ImageEditor/toolbar/crop.d.ts +4 -0
- package/components/ImageEditor/toolbar/crop.js +67 -0
- package/components/ImageEditor/toolbar/crop.js.map +1 -0
- package/components/ImageEditor/toolbar/filter.d.ts +3 -0
- package/components/ImageEditor/toolbar/filter.js +167 -0
- package/components/ImageEditor/toolbar/filter.js.map +1 -0
- package/components/ImageEditor/toolbar/flip.d.ts +4 -0
- package/components/ImageEditor/toolbar/flip.js +94 -0
- package/components/ImageEditor/toolbar/flip.js.map +1 -0
- package/components/ImageEditor/toolbar/index.d.ts +4 -0
- package/components/ImageEditor/toolbar/index.js +6 -0
- package/components/ImageEditor/toolbar/index.js.map +1 -0
- package/components/ImageEditor/toolbar/rotate.d.ts +4 -0
- package/components/ImageEditor/toolbar/rotate.js +93 -0
- package/components/ImageEditor/toolbar/rotate.js.map +1 -0
- package/components/ImageEditor/toolbar/types.d.ts +32 -0
- package/components/ImageEditor/toolbar/types.js +3 -0
- package/components/ImageEditor/toolbar/types.js.map +1 -0
- package/components/LayoutSwitch/LayoutSwitch.js +18 -29
- package/components/LayoutSwitch/LayoutSwitch.js.map +1 -1
- package/components/LayoutSwitch/index.js +1 -16
- package/components/LayoutSwitch/index.js.map +1 -1
- package/components/NoPermissions/NoPermissions.d.ts +2 -0
- package/components/NoPermissions/NoPermissions.js +28 -0
- package/components/NoPermissions/NoPermissions.js.map +1 -0
- package/components/NoPermissions/index.d.ts +1 -0
- package/components/NoPermissions/index.js +3 -0
- package/components/NoPermissions/index.js.map +1 -0
- package/components/NoResults/NoResults.js +19 -15
- package/components/NoResults/NoResults.js.map +1 -1
- package/components/NoResults/index.js +1 -16
- package/components/NoResults/index.js.map +1 -1
- package/components/SearchWidget/SearchWidget.js +31 -0
- package/components/SearchWidget/SearchWidget.js.map +1 -0
- package/components/SearchWidget/index.d.ts +1 -0
- package/components/SearchWidget/index.js +3 -0
- package/components/SearchWidget/index.js.map +1 -0
- package/components/Table/Actions/CopyFile.js +19 -22
- package/components/Table/Actions/CopyFile.js.map +1 -1
- package/components/Table/Actions/DeleteFile.js +23 -25
- package/components/Table/Actions/DeleteFile.js.map +1 -1
- package/components/Table/Actions/EditFile.js +18 -23
- package/components/Table/Actions/EditFile.js.map +1 -1
- package/components/Table/Actions/MoveFile.js +15 -19
- package/components/Table/Actions/MoveFile.js.map +1 -1
- package/components/Table/Actions/index.js +4 -49
- package/components/Table/Actions/index.js.map +1 -1
- package/components/Table/Cells/CellActions.js +24 -28
- package/components/Table/Cells/CellActions.js.map +1 -1
- package/components/Table/Cells/CellAuthor.js +10 -17
- package/components/Table/Cells/CellAuthor.js.map +1 -1
- package/components/Table/Cells/CellCreated.js +12 -19
- package/components/Table/Cells/CellCreated.js.map +1 -1
- package/components/Table/Cells/CellModified.js +12 -19
- package/components/Table/Cells/CellModified.js.map +1 -1
- package/components/Table/Cells/CellName.d.ts +4 -4
- package/components/Table/Cells/CellName.js +55 -48
- package/components/Table/Cells/CellName.js.map +1 -1
- package/components/Table/Cells/CellSize.js +13 -18
- package/components/Table/Cells/CellSize.js.map +1 -1
- package/components/Table/Cells/CellThumbnail.d.ts +2 -0
- package/components/Table/Cells/CellThumbnail.js +16 -0
- package/components/Table/Cells/CellThumbnail.js.map +1 -0
- package/components/Table/Cells/CellType.js +12 -17
- package/components/Table/Cells/CellType.js.map +1 -1
- package/components/Table/Cells/index.js +7 -82
- package/components/Table/Cells/index.js.map +1 -1
- package/components/Table/Table.d.ts +4 -4
- package/components/Table/Table.js +17 -20
- package/components/Table/Table.js.map +1 -1
- package/components/Table/index.js +3 -38
- package/components/Table/index.js.map +1 -1
- package/components/TagsList/Empty.js +11 -0
- package/components/TagsList/Empty.js.map +1 -0
- package/components/TagsList/FilterSelect.d.ts +2 -0
- package/components/TagsList/FilterSelect.js +28 -0
- package/components/TagsList/FilterSelect.js.map +1 -0
- package/components/TagsList/FilterStatus.d.ts +7 -0
- package/components/TagsList/FilterStatus.js +27 -0
- package/components/TagsList/FilterStatus.js.map +1 -0
- package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/Tag.d.ts +1 -1
- package/components/TagsList/Tag.js +16 -0
- package/components/TagsList/Tag.js.map +1 -0
- package/components/TagsList/Tags.d.ts +8 -0
- package/components/TagsList/Tags.js +32 -0
- package/components/TagsList/Tags.js.map +1 -0
- package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/TagsList.d.ts +1 -1
- package/components/TagsList/TagsList.js +31 -0
- package/components/TagsList/TagsList.js.map +1 -0
- package/components/TagsList/index.js +3 -0
- package/components/TagsList/index.js.map +1 -0
- package/components/Thumbnail/Thumbnail.d.ts +2 -0
- package/components/Thumbnail/Thumbnail.js +16 -0
- package/components/Thumbnail/Thumbnail.js.map +1 -0
- package/components/Thumbnail/index.d.ts +1 -0
- package/components/Thumbnail/index.js +3 -0
- package/components/Thumbnail/index.js.map +1 -0
- package/components/UploadStatus/UploadStatus.d.ts +3 -1
- package/components/UploadStatus/UploadStatus.js +33 -32
- package/components/UploadStatus/UploadStatus.js.map +1 -1
- package/components/UploadStatus/index.js +1 -16
- package/components/UploadStatus/index.js.map +1 -1
- package/components/fields/AccessControl.js +31 -31
- package/components/fields/AccessControl.js.map +1 -1
- package/components/fields/Aliases.js +76 -127
- package/components/fields/Aliases.js.map +1 -1
- package/components/fields/Name.js +21 -23
- package/components/fields/Name.js.map +1 -1
- package/components/fields/Tags.js +30 -30
- package/components/fields/Tags.js.map +1 -1
- package/components/fields/index.js +4 -49
- package/components/fields/index.js.map +1 -1
- package/components/fields/useAccessControlField.d.ts +1 -1
- package/components/fields/useAccessControlField.js +9 -21
- package/components/fields/useAccessControlField.js.map +1 -1
- package/components/fields/useFileOrUndefined.js +3 -9
- package/components/fields/useFileOrUndefined.js.map +1 -1
- package/constants.js +4 -16
- package/constants.js.map +1 -1
- package/contexts/FileProvider.d.ts +1 -1
- package/contexts/FileProvider.js +12 -18
- package/contexts/FileProvider.js.map +1 -1
- package/hooks/useCopyFile.d.ts +1 -1
- package/hooks/useCopyFile.js +18 -24
- package/hooks/useCopyFile.js.map +1 -1
- package/hooks/useDeleteFile.d.ts +1 -1
- package/hooks/useDeleteFile.js +38 -62
- package/hooks/useDeleteFile.js.map +1 -1
- package/hooks/useFile.js +5 -12
- package/hooks/useFile.js.map +1 -1
- package/hooks/useFileDetails.js +5 -12
- package/hooks/useFileDetails.js.map +1 -1
- package/hooks/useFileModel.js +5 -12
- package/hooks/useFileModel.js.map +1 -1
- package/hooks/useMoveFileToFolder.d.ts +1 -1
- package/hooks/useMoveFileToFolder.js +19 -21
- package/hooks/useMoveFileToFolder.js.map +1 -1
- package/index.js +8 -101
- package/index.js.map +1 -1
- package/modules/Enterprise/HandleWebsocketMessages.js +31 -53
- package/modules/Enterprise/HandleWebsocketMessages.js.map +1 -1
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.d.ts +2 -0
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.js +23 -0
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.js.map +1 -0
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.d.ts +6 -0
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.js +32 -0
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.js.map +1 -0
- package/modules/Enterprise/constants.js +1 -7
- package/modules/Enterprise/constants.js.map +1 -1
- package/modules/Enterprise/index.js +29 -22
- package/modules/Enterprise/index.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.d.ts +3 -3
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js +120 -128
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.d.ts +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js +14 -25
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.d.ts +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js +25 -11
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.d.ts +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js +3 -9
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.js +3 -26
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.d.ts +2 -2
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js +4 -11
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js.map +1 -1
- package/modules/FileManagerApiProvider/graphql.d.ts +3 -3
- package/modules/FileManagerApiProvider/graphql.js +116 -27
- package/modules/FileManagerApiProvider/graphql.js.map +1 -1
- package/modules/FileManagerApiProvider/index.js +11 -17
- package/modules/FileManagerApiProvider/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js +18 -25
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js +26 -39
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js +15 -23
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.js +48 -59
- package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js +14 -22
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.js +29 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Download.js +16 -19
- package/modules/FileManagerRenderer/FileActions/Grid/Download.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js +14 -17
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.js +15 -18
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/index.js +36 -37
- package/modules/FileManagerRenderer/FileActions/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js +172 -252
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.d.ts +52 -6
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js +47 -54
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js +29 -56
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js +12 -23
- package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js +34 -45
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js +11 -17
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js +8 -19
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js +20 -29
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js +7 -13
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js +7 -13
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js +8 -19
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js +6 -10
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js +18 -27
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js +13 -19
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js +1 -5
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.d.ts +28 -5
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js +10 -19
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.d.ts +28 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js +30 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.d.ts +49 -3
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js +7 -9
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.d.ts +55 -12
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js +30 -38
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js +17 -26
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js +20 -29
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js +16 -24
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js +8 -14
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js +12 -18
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js +8 -14
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.d.ts +4 -4
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js +15 -21
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js +7 -16
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/index.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerView/index.js +49 -57
- package/modules/FileManagerRenderer/FileManagerView/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js +6 -17
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.d.ts +11 -5
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js +281 -337
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.js +2 -27
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.d.ts +4 -2
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js +30 -45
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.d.ts +5 -3
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.js +5 -9
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js +4 -10
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.d.ts +5 -5
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js +79 -99
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js +63 -81
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js.map +1 -1
- package/modules/FileManagerRenderer/filters/FilterByType.js +9 -16
- package/modules/FileManagerRenderer/filters/FilterByType.js.map +1 -1
- package/modules/FileManagerRenderer/index.js +89 -83
- package/modules/FileManagerRenderer/index.js.map +1 -1
- package/modules/HeadlessCms/fileField.d.ts +1 -1
- package/modules/HeadlessCms/fileField.js +11 -19
- package/modules/HeadlessCms/fileField.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/fileField.d.ts +1 -1
- package/modules/HeadlessCms/fileRenderer/fileField.js +46 -91
- package/modules/HeadlessCms/fileRenderer/fileField.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/fileFields.d.ts +1 -1
- package/modules/HeadlessCms/fileRenderer/fileFields.js +76 -146
- package/modules/HeadlessCms/fileRenderer/fileFields.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/utils.d.ts +1 -11
- package/modules/HeadlessCms/fileRenderer/utils.js +3 -53
- package/modules/HeadlessCms/fileRenderer/utils.js.map +1 -1
- package/modules/HeadlessCms/index.js +8 -14
- package/modules/HeadlessCms/index.js.map +1 -1
- package/modules/Settings/graphql.js +26 -15
- package/modules/Settings/graphql.js.map +1 -1
- package/modules/Settings/index.js +35 -32
- package/modules/Settings/index.js.map +1 -1
- package/modules/Settings/plugins/installation.d.ts +1 -1
- package/modules/Settings/plugins/installation.js +68 -68
- package/modules/Settings/plugins/installation.js.map +1 -1
- package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js +122 -149
- package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js.map +1 -1
- package/modules/Settings/plugins/permissionRenderer/index.d.ts +1 -1
- package/modules/Settings/plugins/permissionRenderer/index.js +16 -22
- package/modules/Settings/plugins/permissionRenderer/index.js.map +1 -1
- package/modules/Settings/views/FileManagerSettings.js +97 -110
- package/modules/Settings/views/FileManagerSettings.js.map +1 -1
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js +12 -0
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js +19 -0
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js +12 -0
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/GridItemImageRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/GridItemImageRenderer.js +19 -0
- package/modules/ThumbnailRenderers/GridItemImageRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js +19 -0
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/TableItemImageRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/TableItemImageRenderer.js +19 -0
- package/modules/ThumbnailRenderers/TableItemImageRenderer.js.map +1 -0
- package/package.json +23 -24
- package/tagsHelpers.d.ts +1 -1
- package/tagsHelpers.js +31 -37
- package/tagsHelpers.js.map +1 -1
- package/types.d.ts +6 -7
- package/types.js +1 -12
- package/types.js.map +1 -1
- package/components/BottomInfoBar/styled.d.ts +0 -21
- package/components/BottomInfoBar/styled.js +0 -81
- package/components/BottomInfoBar/styled.js.map +0 -1
- package/components/BulkActions/ActionEdit/ActionEdit.styled.d.ts +0 -28
- package/components/BulkActions/ActionEdit/ActionEdit.styled.js +0 -77
- package/components/BulkActions/ActionEdit/ActionEdit.styled.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.d.ts +0 -7
- package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.js +0 -26
- package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.js.map +0 -1
- package/components/BulkActions/BulkActions.styled.d.ts +0 -13
- package/components/BulkActions/BulkActions.styled.js +0 -46
- package/components/BulkActions/BulkActions.styled.js.map +0 -1
- package/components/DropFilesHere/DropFilesHere.d.ts +0 -8
- package/components/DropFilesHere/DropFilesHere.js +0 -28
- package/components/DropFilesHere/DropFilesHere.js.map +0 -1
- package/components/DropFilesHere/index.d.ts +0 -1
- package/components/DropFilesHere/index.js +0 -18
- package/components/DropFilesHere/index.js.map +0 -1
- package/components/DropFilesHere/styled.d.ts +0 -22
- package/components/DropFilesHere/styled.js +0 -61
- package/components/DropFilesHere/styled.js.map +0 -1
- package/components/FileDetails/components/Flex.d.ts +0 -7
- package/components/FileDetails/components/Flex.js +0 -48
- package/components/FileDetails/components/Flex.js.map +0 -1
- package/components/FileDetails/components/Footer.d.ts +0 -2
- package/components/FileDetails/components/Footer.js +0 -40
- package/components/FileDetails/components/Footer.js.map +0 -1
- package/components/FileDetails/components/Header.d.ts +0 -2
- package/components/FileDetails/components/Header.js +0 -40
- package/components/FileDetails/components/Header.js.map +0 -1
- package/components/FileDetails/components/PreviewMeta.d.ts +0 -2
- package/components/FileDetails/components/PreviewMeta.js +0 -31
- package/components/FileDetails/components/PreviewMeta.js.map +0 -1
- package/components/FileDetails/components/TypeAndSize.d.ts +0 -2
- package/components/FileDetails/components/TypeAndSize.js +0 -67
- package/components/FileDetails/components/TypeAndSize.js.map +0 -1
- package/components/Grid/styled.d.ts +0 -41
- package/components/Grid/styled.js +0 -137
- package/components/Grid/styled.js.map +0 -1
- package/components/NoPermission/NoPermission.d.ts +0 -2
- package/components/NoPermission/NoPermission.js +0 -25
- package/components/NoPermission/NoPermission.js.map +0 -1
- package/components/NoPermission/index.d.ts +0 -1
- package/components/NoPermission/index.js +0 -18
- package/components/NoPermission/index.js.map +0 -1
- package/components/NoPermission/styled.d.ts +0 -24
- package/components/NoPermission/styled.js +0 -97
- package/components/NoPermission/styled.js.map +0 -1
- package/components/NoResults/styled.d.ts +0 -5
- package/components/NoResults/styled.js +0 -25
- package/components/NoResults/styled.js.map +0 -1
- package/components/Table/Cells/Cells.styled.d.ts +0 -12
- package/components/Table/Cells/Cells.styled.js +0 -54
- package/components/Table/Cells/Cells.styled.js.map +0 -1
- package/components/Title/Title.d.ts +0 -5
- package/components/Title/Title.js +0 -21
- package/components/Title/Title.js.map +0 -1
- package/components/Title/index.d.ts +0 -1
- package/components/Title/index.js +0 -18
- package/components/Title/index.js.map +0 -1
- package/components/Title/styled.d.ts +0 -4
- package/components/Title/styled.js +0 -26
- package/components/Title/styled.js.map +0 -1
- package/components/UploadStatus/assets/check.svg +0 -3
- package/components/UploadStatus/assets/loading.svg +0 -17
- package/components/UploadStatus/styled.d.ts +0 -39
- package/components/UploadStatus/styled.js +0 -127
- package/components/UploadStatus/styled.js.map +0 -1
- package/modules/Enterprise/components/ThreatScanInProgress.d.ts +0 -2
- package/modules/Enterprise/components/ThreatScanInProgress.js +0 -44
- package/modules/Enterprise/components/ThreatScanInProgress.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/Filters.js +0 -33
- package/modules/FileManagerRenderer/FileManagerView/components/Filters.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.js +0 -98
- package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.js +0 -19
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.js +0 -29
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.js +0 -71
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/index.js +0 -18
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.d.ts +0 -39
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.js +0 -91
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.d.ts +0 -5
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js +0 -15
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js.map +0 -1
- package/modules/HeadlessCms/fileRenderer/File.d.ts +0 -10
- package/modules/HeadlessCms/fileRenderer/File.js +0 -86
- package/modules/HeadlessCms/fileRenderer/File.js.map +0 -1
- package/modules/ThumbnailRenderers/DefaultRenderer.d.ts +0 -2
- package/modules/ThumbnailRenderers/DefaultRenderer.js +0 -25
- package/modules/ThumbnailRenderers/DefaultRenderer.js.map +0 -1
- package/modules/ThumbnailRenderers/ImageRenderer.d.ts +0 -2
- package/modules/ThumbnailRenderers/ImageRenderer.js +0 -29
- package/modules/ThumbnailRenderers/ImageRenderer.js.map +0 -1
- /package/{modules/FileManagerRenderer/FileManagerView/components → components/Filters}/Filters.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView/components → components/SearchWidget}/SearchWidget.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/Empty.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/index.d.ts +0 -0
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.DropFilesHereWrapper = exports.DropFilesHereInner = exports.DropFilesHereIconWrapper = exports.DropFilesHereIcon = void 0;
|
|
8
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
-
var _cloud_upload = require("@material-design-icons/svg/filled/cloud_upload.svg");
|
|
10
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
11
|
-
var DropFilesHereWrapper = exports.DropFilesHereWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
12
|
-
target: "e1dajg7m3"
|
|
13
|
-
} : {
|
|
14
|
-
target: "e1dajg7m3",
|
|
15
|
-
label: "DropFilesHereWrapper"
|
|
16
|
-
})("pointer-events:", function (_ref) {
|
|
17
|
-
var empty = _ref.empty;
|
|
18
|
-
return empty ? "all" : "none";
|
|
19
|
-
}, ";margin:0 auto;padding-top:0;height:calc(100vh - 95px);z-index:100;width:100%;position:absolute;background:", function (_ref2) {
|
|
20
|
-
var empty = _ref2.empty;
|
|
21
|
-
return empty ? "transparent" : "var(--mdc-theme-text-hint-on-light)";
|
|
22
|
-
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTzRFIiwiZmlsZSI6InN0eWxlZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB7IFJlYWN0Q29tcG9uZW50IGFzIFVwbG9hZEljb24gfSBmcm9tIFwiQG1hdGVyaWFsLWRlc2lnbi1pY29ucy9zdmcvZmlsbGVkL2Nsb3VkX3VwbG9hZC5zdmdcIjtcblxudHlwZSBEcm9wRmlsZXNIZXJlV3JhcHBlclByb3BzID0ge1xuICAgIGVtcHR5PzogYm9vbGVhbjtcbn07XG5cbmV4cG9ydCBjb25zdCBEcm9wRmlsZXNIZXJlV3JhcHBlciA9IHN0eWxlZChcImRpdlwiKTxEcm9wRmlsZXNIZXJlV3JhcHBlclByb3BzPmBcbiAgICBwb2ludGVyLWV2ZW50czogJHsoeyBlbXB0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kaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBjb2xvcjogdmFyKC0tbWRjLXRoZW1lLW9uLXN1cmZhY2UpO1xuYDtcblxuZXhwb3J0IGNvbnN0IERyb3BGaWxlc0hlcmVJY29uID0gc3R5bGVkKFVwbG9hZEljb24pYFxuICAgIHdpZHRoOiAxMDBweCAhaW1wb3J0YW50O1xuICAgIGhlaWdodDogYXV0bztcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS1vbi1zdXJmYWNlKTtcbmA7XG4iXX0= */"));
|
|
23
|
-
var DropFilesHereInner = exports.DropFilesHereInner = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
24
|
-
target: "e1dajg7m2"
|
|
25
|
-
} : {
|
|
26
|
-
target: "e1dajg7m2",
|
|
27
|
-
label: "DropFilesHereInner"
|
|
28
|
-
})("text-align:center;width:300px;height:300px;background-color:", function (_ref3) {
|
|
29
|
-
var empty = _ref3.empty;
|
|
30
|
-
return empty ? "var(--mdc-theme-surface)" : "var(--mdc-theme-background)";
|
|
31
|
-
}, ";border-radius:50%;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%);" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0IwRSIsImZpbGUiOiJzdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBSZWFjdENvbXBvbmVudCBhcyBVcGxvYWRJY29uIH0gZnJvbSBcIkBtYXRlcmlhbC1kZXN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RlO1xuICAgIGxlZnQ6IDUwJTtcbiAgICB0b3A6IDUwJTtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTUwJSkgdHJhbnNsYXRlWSgtNTAlKTtcbmA7XG5cbmV4cG9ydCBjb25zdCBEcm9wRmlsZXNIZXJlSWNvbldyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHRvcDogOTBweDtcbiAgICB3aWR0aDogMzAwcHg7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS1vbi1zdXJmYWNlKTtcbmA7XG5cbmV4cG9ydCBjb25zdCBEcm9wRmlsZXNIZXJlSWNvbiA9IHN0eWxlZChVcGxvYWRJY29uKWBcbiAgICB3aWR0aDogMTAwcHggIWltcG9ydGFudDtcbiAgICBoZWlnaHQ6IGF1dG87XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIGNvbG9yOiB2YXIoLS1tZGMtdGhlbWUtb24tc3VyZmFjZSk7XG5gO1xuIl19 */"));
|
|
32
|
-
var DropFilesHereIconWrapper = exports.DropFilesHereIconWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
33
|
-
target: "e1dajg7m1"
|
|
34
|
-
} : {
|
|
35
|
-
target: "e1dajg7m1",
|
|
36
|
-
label: "DropFilesHereIconWrapper"
|
|
37
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
38
|
-
name: "prcr04",
|
|
39
|
-
styles: "position:absolute;top:90px;width:300px;display:flex;flex-direction:column;align-items:center;color:var(--mdc-theme-on-surface)"
|
|
40
|
-
} : {
|
|
41
|
-
name: "prcr04",
|
|
42
|
-
styles: "position:absolute;top:90px;width:300px;display:flex;flex-direction:column;align-items:center;color:var(--mdc-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
var DropFilesHereIcon = exports.DropFilesHereIcon = /*#__PURE__*/(0, _base.default)(_cloud_upload.ReactComponent, process.env.NODE_ENV === "production" ? {
|
|
47
|
-
target: "e1dajg7m0"
|
|
48
|
-
} : {
|
|
49
|
-
target: "e1dajg7m0",
|
|
50
|
-
label: "DropFilesHereIcon"
|
|
51
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
52
|
-
name: "1w6rjw4",
|
|
53
|
-
styles: "width:100px!important;height:auto;display:inline-block;color:var(--mdc-theme-on-surface)"
|
|
54
|
-
} : {
|
|
55
|
-
name: "1w6rjw4",
|
|
56
|
-
styles: "width:100px!important;height:auto;display:inline-block;color:var(--mdc-theme-on-surface)",
|
|
57
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUNtRCIsImZpbGUiOiJzdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBSZWFjdENvbXBvbmVudCBhcyBVcGxvYWRJY29uIH0gZnJvbSBcIkBtYXRlcmlhbC1kZXNpZ24taWNvbnMvc3ZnL2ZpbGxlZC9jbG91ZF91cGxvYWQuc3ZnXCI7XG5cbnR5cGUgRHJvcEZpbGVzSGVyZVdyYXBwZXJQcm9wcyA9IHtcbiAgICBlbXB0eT86IGJvb2xlYW47XG59O1xuXG5leHBvcnQgY29uc3QgRHJvcEZpbGVzSGVyZVdyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIik8RHJvcEZpbGVzSGVyZVdyYXBwZXJQcm9wcz5gXG4gICAgcG9pbnRlci1ldmVudHM6ICR7KHsgZW1wdHkgfSkgPT4gKGVtcHR5ID8gXCJhbGxcIiA6IFwibm9uZVwiKX07XG4gICAgbWFyZ2luOiAwIGF1dG87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XG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS1vbi1zdXJmYWNlKTtcbmA7XG5cbmV4cG9ydCBjb25zdCBEcm9wRmlsZXNIZXJlSWNvbiA9IHN0eWxlZChVcGxvYWRJY29uKWBcbiAgICB3aWR0aDogMTAwcHggIWltcG9ydGFudDtcbiAgICBoZWlnaHQ6IGF1dG87XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIGNvbG9yOiB2YXIoLS1tZGMtdGhlbWUtb24tc3VyZmFjZSk7XG5gO1xuIl19 */",
|
|
58
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
//# sourceMappingURL=styled.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_cloud_upload","require","_EMOTION_STRINGIFIED_CSS_ERROR__","DropFilesHereWrapper","exports","_base","default","process","env","NODE_ENV","target","label","_ref","empty","_ref2","DropFilesHereInner","_ref3","DropFilesHereIconWrapper","name","styles","map","toString","DropFilesHereIcon","UploadIcon"],"sources":["styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { ReactComponent as UploadIcon } from \"@material-design-icons/svg/filled/cloud_upload.svg\";\n\ntype DropFilesHereWrapperProps = {\n empty?: boolean;\n};\n\nexport const DropFilesHereWrapper = styled(\"div\")<DropFilesHereWrapperProps>`\n pointer-events: ${({ empty }) => (empty ? \"all\" : \"none\")};\n margin: 0 auto;\n padding-top: 0;\n height: calc(100vh - 95px);\n z-index: 100;\n width: 100%;\n position: absolute;\n background: ${({ empty }) => (empty ? \"transparent\" : \"var(--mdc-theme-text-hint-on-light)\")};\n`;\n\nexport const DropFilesHereInner = styled(\"div\")<DropFilesHereWrapperProps>`\n text-align: center;\n width: 300px;\n height: 300px;\n background-color: ${({ empty }) =>\n empty ? \"var(--mdc-theme-surface)\" : \"var(--mdc-theme-background)\"};\n border-radius: 50%;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n`;\n\nexport const DropFilesHereIconWrapper = styled(\"div\")`\n position: absolute;\n top: 90px;\n width: 300px;\n display: flex;\n flex-direction: column;\n align-items: center;\n color: var(--mdc-theme-on-surface);\n`;\n\nexport const DropFilesHereIcon = styled(UploadIcon)`\n width: 100px !important;\n height: auto;\n display: inline-block;\n color: var(--mdc-theme-on-surface);\n`;\n"],"mappings":";;;;;;;;AACA,IAAAA,aAAA,GAAAC,OAAA;AAAkG,SAAAC,iCAAA;AAM3F,IAAMC,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,gBAAG,IAAAE,KAAA,CAAAC,OAAA,EAAO,KAAK,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,oBAC3B,UAAAC,IAAA;EAAA,IAAGC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAAA,OAAQA,KAAK,GAAG,KAAK,GAAG,MAAM;AAAA,CAAC,iHAO3C,UAAAC,KAAA;EAAA,IAAGD,KAAK,GAAAC,KAAA,CAALD,KAAK;EAAA,OAAQA,KAAK,GAAG,aAAa,GAAG,qCAAqC;AAAA,CAAC,SAAAN,OAAA,CAAAC,GAAA,CAAAC,QAAA,gmEAC/F;AAEM,IAAMM,kBAAkB,GAAAX,OAAA,CAAAW,kBAAA,gBAAG,IAAAV,KAAA,CAAAC,OAAA,EAAO,KAAK,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,iEAIvB,UAAAK,KAAA;EAAA,IAAGH,KAAK,GAAAG,KAAA,CAALH,KAAK;EAAA,OACxBA,KAAK,GAAG,0BAA0B,GAAG,6BAA6B;AAAA,2GAAAN,OAAA,CAAAC,GAAA,CAAAC,QAAA,gmEAMzE;AAEM,IAAMQ,wBAAwB,GAAAb,OAAA,CAAAa,wBAAA,gBAAG,IAAAZ,KAAA,CAAAC,OAAA,EAAO,KAAK,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAS,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAnB;AAAA,EAQpD;AAEM,IAAMoB,iBAAiB,GAAAlB,OAAA,CAAAkB,iBAAA,gBAAG,IAAAjB,KAAA,CAAAC,OAAA,EAAOiB,4BAAU,EAAAhB,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAS,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAnB;AAAA,EAKlD","ignoreList":[]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.FlexRow = exports.FlexColumn = void 0;
|
|
8
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
11
|
-
var Row = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
12
|
-
target: "ek6axac1"
|
|
13
|
-
} : {
|
|
14
|
-
target: "ek6axac1",
|
|
15
|
-
label: "Row"
|
|
16
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
17
|
-
name: "ho1qnd",
|
|
18
|
-
styles: "display:flex;flex-direction:row"
|
|
19
|
-
} : {
|
|
20
|
-
name: "ho1qnd",
|
|
21
|
-
styles: "display:flex;flex-direction:row",
|
|
22
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZsZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdzQiIsImZpbGUiOiJGbGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSBcIkBlbW90aW9uL3N0eWxlZFwiO1xuaW1wb3J0IFJlYWN0IGZyb20gXCJyZWFjdFwiO1xuXG5jb25zdCBSb3cgPSBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IHJvdztcbmA7XG5cbmNvbnN0IENvbHVtbiA9IHN0eWxlZC5kaXZgXG4gICAgZmxleC1ncm93OiAxO1xuYDtcblxuZXhwb3J0IGNvbnN0IEZsZXhSb3cgPSAoeyBjaGlsZHJlbiB9OiB7IGNoaWxkcmVuOiBSZWFjdC5SZWFjdE5vZGUgfSkgPT4ge1xuICAgIHJldHVybiA8Um93PntjaGlsZHJlbn08L1Jvdz47XG59O1xuXG5leHBvcnQgY29uc3QgRmxleENvbHVtbiA9ICh7IGNoaWxkcmVuIH06IHsgY2hpbGRyZW46IFJlYWN0LlJlYWN0Tm9kZSB9KSA9PiB7XG4gICAgcmV0dXJuIDxDb2x1bW4+e2NoaWxkcmVufTwvQ29sdW1uPjtcbn07XG4iXX0= */",
|
|
23
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
|
-
});
|
|
25
|
-
var Column = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
26
|
-
target: "ek6axac0"
|
|
27
|
-
} : {
|
|
28
|
-
target: "ek6axac0",
|
|
29
|
-
label: "Column"
|
|
30
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
31
|
-
name: "1ff36h2",
|
|
32
|
-
styles: "flex-grow:1"
|
|
33
|
-
} : {
|
|
34
|
-
name: "1ff36h2",
|
|
35
|
-
styles: "flex-grow:1",
|
|
36
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZsZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVF5QiIsImZpbGUiOiJGbGV4LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSBcIkBlbW90aW9uL3N0eWxlZFwiO1xuaW1wb3J0IFJlYWN0IGZyb20gXCJyZWFjdFwiO1xuXG5jb25zdCBSb3cgPSBzdHlsZWQuZGl2YFxuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IHJvdztcbmA7XG5cbmNvbnN0IENvbHVtbiA9IHN0eWxlZC5kaXZgXG4gICAgZmxleC1ncm93OiAxO1xuYDtcblxuZXhwb3J0IGNvbnN0IEZsZXhSb3cgPSAoeyBjaGlsZHJlbiB9OiB7IGNoaWxkcmVuOiBSZWFjdC5SZWFjdE5vZGUgfSkgPT4ge1xuICAgIHJldHVybiA8Um93PntjaGlsZHJlbn08L1Jvdz47XG59O1xuXG5leHBvcnQgY29uc3QgRmxleENvbHVtbiA9ICh7IGNoaWxkcmVuIH06IHsgY2hpbGRyZW46IFJlYWN0LlJlYWN0Tm9kZSB9KSA9PiB7XG4gICAgcmV0dXJuIDxDb2x1bW4+e2NoaWxkcmVufTwvQ29sdW1uPjtcbn07XG4iXX0= */",
|
|
37
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
38
|
-
});
|
|
39
|
-
var FlexRow = exports.FlexRow = function FlexRow(_ref) {
|
|
40
|
-
var children = _ref.children;
|
|
41
|
-
return /*#__PURE__*/_react.default.createElement(Row, null, children);
|
|
42
|
-
};
|
|
43
|
-
var FlexColumn = exports.FlexColumn = function FlexColumn(_ref2) {
|
|
44
|
-
var children = _ref2.children;
|
|
45
|
-
return /*#__PURE__*/_react.default.createElement(Column, null, children);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=Flex.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_EMOTION_STRINGIFIED_CSS_ERROR__","Row","_base","default","process","env","NODE_ENV","target","label","name","styles","map","toString","Column","FlexRow","exports","_ref","children","createElement","FlexColumn","_ref2"],"sources":["Flex.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport React from \"react\";\n\nconst Row = styled.div`\n display: flex;\n flex-direction: row;\n`;\n\nconst Column = styled.div`\n flex-grow: 1;\n`;\n\nexport const FlexRow = ({ children }: { children: React.ReactNode }) => {\n return <Row>{children}</Row>;\n};\n\nexport const FlexColumn = ({ children }: { children: React.ReactNode }) => {\n return <Column>{children}</Column>;\n};\n"],"mappings":";;;;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0B,SAAAC,iCAAA;AAE1B,IAAMC,GAAG,oBAAAC,KAAA,CAAAC,OAAA,SAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAZ;AAAA,EAGR;AAED,IAAMa,MAAM,oBAAAX,KAAA,CAAAC,OAAA,SAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAZ;AAAA,EAEX;AAEM,IAAMc,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,SAAVA,OAAOA,CAAAE,IAAA,EAAoD;EAAA,IAA9CC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EAC9B,oBAAOpB,MAAA,CAAAM,OAAA,CAAAe,aAAA,CAACjB,GAAG,QAAEgB,QAAc,CAAC;AAChC,CAAC;AAEM,IAAME,UAAU,GAAAJ,OAAA,CAAAI,UAAA,GAAG,SAAbA,UAAUA,CAAAC,KAAA,EAAoD;EAAA,IAA9CH,QAAQ,GAAAG,KAAA,CAARH,QAAQ;EACjC,oBAAOpB,MAAA,CAAAM,OAAA,CAAAe,aAAA,CAACL,MAAM,QAAEI,QAAiB,CAAC;AACtC,CAAC","ignoreList":[]}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Footer = void 0;
|
|
8
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _SimpleForm = require("@webiny/app-admin/components/SimpleForm");
|
|
11
|
-
var _Button = require("@webiny/ui/Button");
|
|
12
|
-
var _form = require("@webiny/form");
|
|
13
|
-
var _useFileDetails2 = require("../../../hooks/useFileDetails");
|
|
14
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
15
|
-
var SimpleFormFooterStyled = /*#__PURE__*/(0, _base.default)(_SimpleForm.SimpleFormFooter, process.env.NODE_ENV === "production" ? {
|
|
16
|
-
target: "echg8m60"
|
|
17
|
-
} : {
|
|
18
|
-
target: "echg8m60",
|
|
19
|
-
label: "SimpleFormFooterStyled"
|
|
20
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
21
|
-
name: "1f60if8",
|
|
22
|
-
styles: "justify-content:flex-end"
|
|
23
|
-
} : {
|
|
24
|
-
name: "1f60if8",
|
|
25
|
-
styles: "justify-content:flex-end",
|
|
26
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZvb3Rlci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT3VEIiwiZmlsZSI6IkZvb3Rlci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSBcInJlYWN0XCI7XG5pbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB7IFNpbXBsZUZvcm1Gb290ZXIgfSBmcm9tIFwiQHdlYmlueS9hcHAtYWRtaW4vY29tcG9uZW50cy9TaW1wbGVGb3JtXCI7XG5pbXBvcnQgeyBCdXR0b25EZWZhdWx0LCBCdXR0b25QcmltYXJ5IH0gZnJvbSBcIkB3ZWJpbnkvdWkvQnV0dG9uXCI7XG5pbXBvcnQgeyB1c2VGb3JtIH0gZnJvbSBcIkB3ZWJpbnkvZm9ybVwiO1xuaW1wb3J0IHsgdXNlRmlsZURldGFpbHMgfSBmcm9tIFwifi9ob29rcy91c2VGaWxlRGV0YWlsc1wiO1xuXG5jb25zdCBTaW1wbGVGb3JtRm9vdGVyU3R5bGVkID0gc3R5bGVkKFNpbXBsZUZvcm1Gb290ZXIpYFxuICAgIGp1c3RpZnktY29udGVudDogZmxleC1lbmQ7XG5gO1xuXG5leHBvcnQgY29uc3QgRm9vdGVyID0gKCkgPT4ge1xuICAgIGNvbnN0IHsgY2xvc2UgfSA9IHVzZUZpbGVEZXRhaWxzKCk7XG4gICAgY29uc3QgZm9ybSA9IHVzZUZvcm0oKTtcblxuICAgIHJldHVybiAoXG4gICAgICAgIDxTaW1wbGVGb3JtRm9vdGVyU3R5bGVkPlxuICAgICAgICAgICAgPEJ1dHRvbkRlZmF1bHQgb25DbGljaz17Y2xvc2V9PkNhbmNlbDwvQnV0dG9uRGVmYXVsdD5cbiAgICAgICAgICAgIDxCdXR0b25QcmltYXJ5IG9uQ2xpY2s9e2Zvcm0uc3VibWl0fT5TYXZlIEZpbGU8L0J1dHRvblByaW1hcnk+XG4gICAgICAgIDwvU2ltcGxlRm9ybUZvb3RlclN0eWxlZD5cbiAgICApO1xufTtcbiJdfQ== */",
|
|
27
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
28
|
-
});
|
|
29
|
-
var Footer = exports.Footer = function Footer() {
|
|
30
|
-
var _useFileDetails = (0, _useFileDetails2.useFileDetails)(),
|
|
31
|
-
close = _useFileDetails.close;
|
|
32
|
-
var form = (0, _form.useForm)();
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(SimpleFormFooterStyled, null, /*#__PURE__*/_react.default.createElement(_Button.ButtonDefault, {
|
|
34
|
-
onClick: close
|
|
35
|
-
}, "Cancel"), /*#__PURE__*/_react.default.createElement(_Button.ButtonPrimary, {
|
|
36
|
-
onClick: form.submit
|
|
37
|
-
}, "Save File"));
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
//# sourceMappingURL=Footer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_SimpleForm","_Button","_form","_useFileDetails2","_EMOTION_STRINGIFIED_CSS_ERROR__","SimpleFormFooterStyled","_base","default","SimpleFormFooter","process","env","NODE_ENV","target","label","name","styles","map","toString","Footer","exports","_useFileDetails","useFileDetails","close","form","useForm","createElement","ButtonDefault","onClick","ButtonPrimary","submit"],"sources":["Footer.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"@emotion/styled\";\nimport { SimpleFormFooter } from \"@webiny/app-admin/components/SimpleForm\";\nimport { ButtonDefault, ButtonPrimary } from \"@webiny/ui/Button\";\nimport { useForm } from \"@webiny/form\";\nimport { useFileDetails } from \"~/hooks/useFileDetails\";\n\nconst SimpleFormFooterStyled = styled(SimpleFormFooter)`\n justify-content: flex-end;\n`;\n\nexport const Footer = () => {\n const { close } = useFileDetails();\n const form = useForm();\n\n return (\n <SimpleFormFooterStyled>\n <ButtonDefault onClick={close}>Cancel</ButtonDefault>\n <ButtonPrimary onClick={form.submit}>Save File</ButtonPrimary>\n </SimpleFormFooterStyled>\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAAwD,SAAAK,iCAAA;AAExD,IAAMC,sBAAsB,gBAAG,IAAAC,KAAA,CAAAC,OAAA,EAAOC,4BAAgB,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAb;AAAA,EAEtD;AAEM,IAAMc,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,SAATA,MAAMA,CAAA,EAAS;EACxB,IAAAE,eAAA,GAAkB,IAAAC,+BAAc,EAAC,CAAC;IAA1BC,KAAK,GAAAF,eAAA,CAALE,KAAK;EACb,IAAMC,IAAI,GAAG,IAAAC,aAAO,EAAC,CAAC;EAEtB,oBACI3B,MAAA,CAAAU,OAAA,CAAAkB,aAAA,CAACpB,sBAAsB,qBACnBR,MAAA,CAAAU,OAAA,CAAAkB,aAAA,CAACxB,OAAA,CAAAyB,aAAa;IAACC,OAAO,EAAEL;EAAM,GAAC,QAAqB,CAAC,eACrDzB,MAAA,CAAAU,OAAA,CAAAkB,aAAA,CAACxB,OAAA,CAAA2B,aAAa;IAACD,OAAO,EAAEJ,IAAI,CAACM;EAAO,GAAC,WAAwB,CACzC,CAAC;AAEjC,CAAC","ignoreList":[]}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Header = void 0;
|
|
8
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _close = require("@material-design-icons/svg/outlined/close.svg");
|
|
11
|
-
var _Button = require("@webiny/ui/Button");
|
|
12
|
-
var _SimpleForm = require("@webiny/app-admin/components/SimpleForm");
|
|
13
|
-
var _useFileDetails2 = require("../../../hooks/useFileDetails");
|
|
14
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
15
|
-
var CloseButton = /*#__PURE__*/(0, _base.default)(_Button.IconButton, process.env.NODE_ENV === "production" ? {
|
|
16
|
-
target: "e1e01brf0"
|
|
17
|
-
} : {
|
|
18
|
-
target: "e1e01brf0",
|
|
19
|
-
label: "CloseButton"
|
|
20
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
21
|
-
name: "1zok93",
|
|
22
|
-
styles: "position:absolute;top:15px"
|
|
23
|
-
} : {
|
|
24
|
-
name: "1zok93",
|
|
25
|
-
styles: "position:absolute;top:15px",
|
|
26
|
-
map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j5cbiAgICApO1xufTtcbiJdfQ== */",
|
|
27
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
28
|
-
});
|
|
29
|
-
var Header = exports.Header = function Header() {
|
|
30
|
-
var _useFileDetails = (0, _useFileDetails2.useFileDetails)(),
|
|
31
|
-
close = _useFileDetails.close;
|
|
32
|
-
return /*#__PURE__*/_react.default.createElement(_SimpleForm.SimpleFormHeader, {
|
|
33
|
-
title: "File details"
|
|
34
|
-
}, /*#__PURE__*/_react.default.createElement(CloseButton, {
|
|
35
|
-
icon: /*#__PURE__*/_react.default.createElement(_close.ReactComponent, null),
|
|
36
|
-
onClick: close
|
|
37
|
-
}));
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_close","_Button","_SimpleForm","_useFileDetails2","_EMOTION_STRINGIFIED_CSS_ERROR__","CloseButton","_base","default","IconButton","process","env","NODE_ENV","target","label","name","styles","map","toString","Header","exports","_useFileDetails","useFileDetails","close","createElement","SimpleFormHeader","title","icon","ReactComponent","onClick"],"sources":["Header.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"@emotion/styled\";\nimport { ReactComponent as CloseIcon } from \"@material-design-icons/svg/outlined/close.svg\";\nimport { IconButton } from \"@webiny/ui/Button\";\nimport { SimpleFormHeader } from \"@webiny/app-admin/components/SimpleForm\";\nimport { useFileDetails } from \"~/hooks/useFileDetails\";\n\nconst CloseButton = styled(IconButton)`\n position: absolute;\n top: 15px;\n`;\n\nexport const Header = () => {\n const { close } = useFileDetails();\n\n return (\n <SimpleFormHeader title={\"File details\"}>\n <CloseButton icon={<CloseIcon />} onClick={close} />\n </SimpleFormHeader>\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAAwD,SAAAK,iCAAA;AAExD,IAAMC,WAAW,gBAAG,IAAAC,KAAA,CAAAC,OAAA,EAAOC,kBAAU,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAb;AAAA,EAGrC;AAEM,IAAMc,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,SAATA,MAAMA,CAAA,EAAS;EACxB,IAAAE,eAAA,GAAkB,IAAAC,+BAAc,EAAC,CAAC;IAA1BC,KAAK,GAAAF,eAAA,CAALE,KAAK;EAEb,oBACIzB,MAAA,CAAAU,OAAA,CAAAgB,aAAA,CAACrB,WAAA,CAAAsB,gBAAgB;IAACC,KAAK,EAAE;EAAe,gBACpC5B,MAAA,CAAAU,OAAA,CAAAgB,aAAA,CAAClB,WAAW;IAACqB,IAAI,eAAE7B,MAAA,CAAAU,OAAA,CAAAgB,aAAA,CAACvB,MAAA,CAAA2B,cAAS,MAAE,CAAE;IAACC,OAAO,EAAEN;EAAM,CAAE,CACrC,CAAC;AAE3B,CAAC","ignoreList":[]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.PreviewMeta = void 0;
|
|
8
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _TypeAndSize = require("./TypeAndSize");
|
|
11
|
-
var _CreatedOn = require("./CreatedOn");
|
|
12
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
13
|
-
var PreviewMetaWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
14
|
-
target: "eay16vj0"
|
|
15
|
-
} : {
|
|
16
|
-
target: "eay16vj0",
|
|
17
|
-
label: "PreviewMetaWrapper"
|
|
18
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
19
|
-
name: "1mxzw3n",
|
|
20
|
-
styles: "display:flex;align-items:center;justify-content:space-between;padding:5px;border-top:1px solid var(--mdc-theme-on-background)"
|
|
21
|
-
} : {
|
|
22
|
-
name: "1mxzw3n",
|
|
23
|
-
styles: "display:flex;align-items:center;justify-content:space-between;padding:5px;border-top:1px solid var(--mdc-theme-on-background)",
|
|
24
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlByZXZpZXdNZXRhLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLcUMiLCJmaWxlIjoiUHJldmlld01ldGEudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gXCJyZWFjdFwiO1xuaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBUeXBlQW5kU2l6ZSB9IGZyb20gXCIuL1R5cGVBbmRTaXplXCI7XG5pbXBvcnQgeyBDcmVhdGVkT24gfSBmcm9tIFwiLi9DcmVhdGVkT25cIjtcblxuY29uc3QgUHJldmlld01ldGFXcmFwcGVyID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgIHBhZGRpbmc6IDVweDtcbiAgICBib3JkZXItdG9wOiAxcHggc29saWQgdmFyKC0tbWRjLXRoZW1lLW9uLWJhY2tncm91bmQpO1xuYDtcblxuZXhwb3J0IGNvbnN0IFByZXZpZXdNZXRhID0gKCkgPT4ge1xuICAgIHJldHVybiAoXG4gICAgICAgIDxQcmV2aWV3TWV0YVdyYXBwZXI+XG4gICAgICAgICAgICA8VHlwZUFuZFNpemUgLz5cbiAgICAgICAgICAgIDxDcmVhdGVkT24gLz5cbiAgICAgICAgPC9QcmV2aWV3TWV0YVdyYXBwZXI+XG4gICAgKTtcbn07XG4iXX0= */",
|
|
25
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
26
|
-
});
|
|
27
|
-
var PreviewMeta = exports.PreviewMeta = function PreviewMeta() {
|
|
28
|
-
return /*#__PURE__*/_react.default.createElement(PreviewMetaWrapper, null, /*#__PURE__*/_react.default.createElement(_TypeAndSize.TypeAndSize, null), /*#__PURE__*/_react.default.createElement(_CreatedOn.CreatedOn, null));
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
//# sourceMappingURL=PreviewMeta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_TypeAndSize","_CreatedOn","_EMOTION_STRINGIFIED_CSS_ERROR__","PreviewMetaWrapper","_base","default","process","env","NODE_ENV","target","label","name","styles","map","toString","PreviewMeta","exports","createElement","TypeAndSize","CreatedOn"],"sources":["PreviewMeta.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"@emotion/styled\";\nimport { TypeAndSize } from \"./TypeAndSize\";\nimport { CreatedOn } from \"./CreatedOn\";\n\nconst PreviewMetaWrapper = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 5px;\n border-top: 1px solid var(--mdc-theme-on-background);\n`;\n\nexport const PreviewMeta = () => {\n return (\n <PreviewMetaWrapper>\n <TypeAndSize />\n <CreatedOn />\n </PreviewMetaWrapper>\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAAwC,SAAAG,iCAAA;AAExC,IAAMC,kBAAkB,oBAAAC,KAAA,CAAAC,OAAA,SAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAZ;AAAA,EAMvB;AAEM,IAAMa,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAA,EAAS;EAC7B,oBACIlB,MAAA,CAAAQ,OAAA,CAAAY,aAAA,CAACd,kBAAkB,qBACfN,MAAA,CAAAQ,OAAA,CAAAY,aAAA,CAACjB,YAAA,CAAAkB,WAAW,MAAE,CAAC,eACfrB,MAAA,CAAAQ,OAAA,CAAAY,aAAA,CAAChB,UAAA,CAAAkB,SAAS,MAAE,CACI,CAAC;AAE7B,CAAC","ignoreList":[]}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.TypeAndSize = void 0;
|
|
9
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _bytes = _interopRequireDefault(require("bytes"));
|
|
12
|
-
var _insert_photo = require("@material-design-icons/svg/outlined/insert_photo.svg");
|
|
13
|
-
var _insert_drive_file = require("@material-design-icons/svg/outlined/insert_drive_file.svg");
|
|
14
|
-
var _Icon = require("@webiny/ui/Icon");
|
|
15
|
-
var _Typography = require("@webiny/ui/Typography");
|
|
16
|
-
var _useFile2 = require("../../../hooks/useFile");
|
|
17
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
18
|
-
var TypeAndSizeWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
19
|
-
target: "eyyrjdi1"
|
|
20
|
-
} : {
|
|
21
|
-
target: "eyyrjdi1",
|
|
22
|
-
label: "TypeAndSizeWrapper"
|
|
23
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
24
|
-
name: "s5xdrg",
|
|
25
|
-
styles: "display:flex;align-items:center"
|
|
26
|
-
} : {
|
|
27
|
-
name: "s5xdrg",
|
|
28
|
-
styles: "display:flex;align-items:center",
|
|
29
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlR5cGVBbmRTaXplLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFTcUMiLCJmaWxlIjoiVHlwZUFuZFNpemUudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IHVzZU1lbW8gfSBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCBieXRlcyBmcm9tIFwiYnl0ZXNcIjtcbmltcG9ydCBzdHlsZWQgZnJvbSBcIkBlbW90aW9uL3N0eWxlZFwiO1xuaW1wb3J0IHsgUmVhY3RDb21wb25lbnQgYXMgSW1hZ2VJY29uIH0gZnJvbSBcIkBtYXRlcmlhbC1kZXNpZ24ta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G4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIDxJbWFnZUljb24gLz47XG4gICAgfSwgW2ZpbGVdKTtcblxuICAgIHJldHVybiAoXG4gICAgICAgIDxUeXBlQW5kU2l6ZVdyYXBwZXI+XG4gICAgICAgICAgICA8SW5saW5lSWNvbiBpY29uPXtmaWxlVHlwZUljb259IC8+XG4gICAgICAgICAgICA8VHlwb2dyYXBoeSB1c2U9e1wiY2FwdGlvblwifT57ZmlsZS50eXBlfTwvVHlwb2dyYXBoeT5cbiAgICAgICAgICAgIDxzcGFuPiZuYnNwOy0mbmJzcDs8L3NwYW4+XG4gICAgICAgICAgICA8VHlwb2dyYXBoeSB1c2U9e1wiY2FwdGlvblwifSB0YWc9e1wic3BhblwifT5cbiAgICAgICAgICAgICAgICB7Ynl0ZXMuZm9ybWF0KGZpbGUuc2l6ZSwge1xuICAgICAgICAgICAgICAgICAgICB1bml0U2VwYXJhdG9yOiBcIiBcIlxuICAgICAgICAgICAgICAgIH0pfVxuICAgICAgICAgICAgPC9UeXBvZ3JhcGh5PlxuICAgICAgICA8L1R5cGVBbmRTaXplV3JhcHBlcj5cbiAgICApO1xufTtcbiJdfQ== */",
|
|
30
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
31
|
-
});
|
|
32
|
-
var InlineIcon = /*#__PURE__*/(0, _base.default)(_Icon.Icon, process.env.NODE_ENV === "production" ? {
|
|
33
|
-
target: "eyyrjdi0"
|
|
34
|
-
} : {
|
|
35
|
-
target: "eyyrjdi0",
|
|
36
|
-
label: "InlineIcon"
|
|
37
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
38
|
-
name: "1dey51h",
|
|
39
|
-
styles: "margin-right:5px;&.mdc-button__icon{display:inline;fill:var(--mdc-theme-text-secondary-on-background);}"
|
|
40
|
-
} : {
|
|
41
|
-
name: "1dey51h",
|
|
42
|
-
styles: "margin-right:5px;&.mdc-button__icon{display:inline;fill:var(--mdc-theme-text-secondary-on-background);}",
|
|
43
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GxheTogaW5saW5lO1xuICAgICAgICBmaWxsOiB2YXIoLS1tZGMtdGhlbWUtdGV4dC1zZWNvbmRhcnktb24tYmFja2dyb3VuZCk7XG4gICAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IFR5cGVBbmRTaXplID0gKCkgPT4ge1xuICAgIGNvbnN0IHsgZmlsZSB9ID0gdXNlRmlsZSgpO1xuXG4gICAgY29uc3QgZmlsZVR5cGVJY29uID0gdXNlTWVtbygoKSA9PiB7XG4gICAgICAgIGlmIChmaWxlICYmIHR5cGVvZiBmaWxlLnR5cGUgPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgIHJldHVybiBmaWxlLnR5cGUuaW5jbHVkZXMoXCJpbWFnZVwiKSA/IDxJbWFnZUljb24gLz4gOiA8RmlsZUljb24gLz47XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIDxJbWFnZUljb24gLz47XG4gICAgfSwgW2ZpbGVdKTtcblxuICAgIHJldHVybiAoXG4gICAgICAgIDxUeXBlQW5kU2l6ZVdyYXBwZXI+XG4gICAgICAgICAgICA8SW5saW5lSWNvbiBpY29uPXtmaWxlVHlwZUljb259IC8+XG4gICAgICAgICAgICA8VHlwb2dyYXBoeSB1c2U9e1wiY2FwdGlvblwifT57ZmlsZS50eXBlfTwvVHlwb2dyYXBoeT5cbiAgICAgICAgICAgIDxzcGFuPiZuYnNwOy0mbmJzcDs8L3NwYW4+XG4gICAgICAgICAgICA8VHlwb2dyYXBoeSB1c2U9e1wiY2FwdGlvblwifSB0YWc9e1wic3BhblwifT5cbiAgICAgICAgICAgICAgICB7Ynl0ZXMuZm9ybWF0KGZpbGUuc2l6ZSwge1xuICAgICAgICAgICAgICAgICAgICB1bml0U2VwYXJhdG9yOiBcIiBcIlxuICAgICAgICAgICAgICAgIH0pfVxuICAgICAgICAgICAgPC9UeXBvZ3JhcGh5PlxuICAgICAgICA8L1R5cGVBbmRTaXplV3JhcHBlcj5cbiAgICApO1xufTtcbiJdfQ== */",
|
|
44
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
45
|
-
});
|
|
46
|
-
var TypeAndSize = exports.TypeAndSize = function TypeAndSize() {
|
|
47
|
-
var _useFile = (0, _useFile2.useFile)(),
|
|
48
|
-
file = _useFile.file;
|
|
49
|
-
var fileTypeIcon = (0, _react.useMemo)(function () {
|
|
50
|
-
if (file && typeof file.type === "string") {
|
|
51
|
-
return file.type.includes("image") ? /*#__PURE__*/_react.default.createElement(_insert_photo.ReactComponent, null) : /*#__PURE__*/_react.default.createElement(_insert_drive_file.ReactComponent, null);
|
|
52
|
-
}
|
|
53
|
-
return /*#__PURE__*/_react.default.createElement(_insert_photo.ReactComponent, null);
|
|
54
|
-
}, [file]);
|
|
55
|
-
return /*#__PURE__*/_react.default.createElement(TypeAndSizeWrapper, null, /*#__PURE__*/_react.default.createElement(InlineIcon, {
|
|
56
|
-
icon: fileTypeIcon
|
|
57
|
-
}), /*#__PURE__*/_react.default.createElement(_Typography.Typography, {
|
|
58
|
-
use: "caption"
|
|
59
|
-
}, file.type), /*#__PURE__*/_react.default.createElement("span", null, "\xA0-\xA0"), /*#__PURE__*/_react.default.createElement(_Typography.Typography, {
|
|
60
|
-
use: "caption",
|
|
61
|
-
tag: "span"
|
|
62
|
-
}, _bytes.default.format(file.size, {
|
|
63
|
-
unitSeparator: " "
|
|
64
|
-
})));
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
//# sourceMappingURL=TypeAndSize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_bytes","_interopRequireDefault","_insert_photo","_insert_drive_file","_Icon","_Typography","_useFile2","_EMOTION_STRINGIFIED_CSS_ERROR__","TypeAndSizeWrapper","_base","default","process","env","NODE_ENV","target","label","name","styles","map","toString","InlineIcon","Icon","TypeAndSize","exports","_useFile","useFile","file","fileTypeIcon","useMemo","type","includes","createElement","ReactComponent","icon","Typography","use","tag","bytes","format","size","unitSeparator"],"sources":["TypeAndSize.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport bytes from \"bytes\";\nimport styled from \"@emotion/styled\";\nimport { ReactComponent as ImageIcon } from \"@material-design-icons/svg/outlined/insert_photo.svg\";\nimport { ReactComponent as FileIcon } from \"@material-design-icons/svg/outlined/insert_drive_file.svg\";\nimport { Icon } from \"@webiny/ui/Icon\";\nimport { Typography } from \"@webiny/ui/Typography\";\nimport { useFile } from \"~/hooks/useFile\";\n\nconst TypeAndSizeWrapper = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst InlineIcon = styled(Icon)`\n margin-right: 5px;\n &.mdc-button__icon {\n display: inline;\n fill: var(--mdc-theme-text-secondary-on-background);\n }\n`;\n\nexport const TypeAndSize = () => {\n const { file } = useFile();\n\n const fileTypeIcon = useMemo(() => {\n if (file && typeof file.type === \"string\") {\n return file.type.includes(\"image\") ? <ImageIcon /> : <FileIcon />;\n }\n return <ImageIcon />;\n }, [file]);\n\n return (\n <TypeAndSizeWrapper>\n <InlineIcon icon={fileTypeIcon} />\n <Typography use={\"caption\"}>{file.type}</Typography>\n <span> - </span>\n <Typography use={\"caption\"} tag={\"span\"}>\n {bytes.format(file.size, {\n unitSeparator: \" \"\n })}\n </Typography>\n </TypeAndSizeWrapper>\n );\n};\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AAA0C,SAAAQ,iCAAA;AAE1C,IAAMC,kBAAkB,oBAAAC,KAAA,CAAAC,OAAA,SAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA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AAA,CAACX,UAAU;IAACa,IAAI,EAAEN;EAAa,CAAE,CAAC,eAClC9B,MAAA,CAAAa,OAAA,CAAAqB,aAAA,CAAC1B,WAAA,CAAA6B,UAAU;IAACC,GAAG,EAAE;EAAU,GAAET,IAAI,CAACG,IAAiB,CAAC,eACpDhC,MAAA,CAAAa,OAAA,CAAAqB,aAAA,eAAM,WAAmB,CAAC,eAC1BlC,MAAA,CAAAa,OAAA,CAAAqB,aAAA,CAAC1B,WAAA,CAAA6B,UAAU;IAACC,GAAG,EAAE,SAAU;IAACC,GAAG,EAAE;EAAO,GACnCC,cAAK,CAACC,MAAM,CAACZ,IAAI,CAACa,IAAI,EAAE;IACrBC,aAAa,EAAE;EACnB,CAAC,CACO,CACI,CAAC;AAE7B,CAAC","ignoreList":[]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const FolderList: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const FileList: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
-
export declare const FileBody: import("@emotion/styled").StyledComponent<{
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
-
export declare const FileControls: import("@emotion/styled").StyledComponent<{
|
|
15
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
|
-
export declare const FileSelectedMarker: import("@emotion/styled").StyledComponent<{
|
|
19
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
21
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
22
|
-
export declare const FileInfoIcon: import("@emotion/styled").StyledComponent<{
|
|
23
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
25
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
26
|
-
export declare const FilePreview: import("@emotion/styled").StyledComponent<{
|
|
27
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
28
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
29
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
30
|
-
export declare const FileClickable: import("@emotion/styled").StyledComponent<{
|
|
31
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
32
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
33
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
34
|
-
export declare const FileLabel: import("@emotion/styled").StyledComponent<{
|
|
35
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
36
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
37
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
38
|
-
export declare const FileWrapper: import("@emotion/styled").StyledComponent<{
|
|
39
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
40
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
41
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|