@atlaskit/media-card 73.6.0 → 74.0.0
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/CHANGELOG.md +44 -0
- package/dist/cjs/files/cardImageView/cardImageViewWrapper.js +60 -0
- package/dist/cjs/files/cardImageView/cardOverlay/cardOverlayComponents.js +63 -0
- package/dist/cjs/files/cardImageView/cardOverlay/index.js +31 -19
- package/dist/cjs/files/cardImageView/cardOverlay/styles.js +75 -0
- package/dist/cjs/files/cardImageView/index.js +39 -28
- package/dist/cjs/files/cardImageView/styles.js +60 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/root/card/cardAnalytics.js +1 -25
- package/dist/cjs/root/card/getCardPreview/cache.js +9 -10
- package/dist/cjs/root/card/getCardPreview/index.js +36 -26
- package/dist/cjs/root/card/index.js +25 -20
- package/dist/cjs/root/cardView.js +49 -50
- package/dist/cjs/root/cardViewWrapper.js +35 -0
- package/dist/cjs/root/inlinePlayer.js +15 -15
- package/dist/cjs/root/inlinePlayerWrapper.js +32 -0
- package/dist/cjs/root/styles.js +57 -0
- package/dist/cjs/root/types.js +5 -0
- package/dist/cjs/root/ui/actionsBar/actionsBar.js +2 -2
- package/dist/cjs/root/ui/actionsBar/actionsBarWrapper.js +21 -0
- package/dist/cjs/root/ui/actionsBar/styles.js +28 -0
- package/dist/cjs/root/ui/actionsBar/types.js +5 -0
- package/dist/cjs/root/ui/blanket/blanket.js +21 -0
- package/dist/cjs/root/ui/blanket/styles.js +30 -0
- package/dist/cjs/root/ui/iconMessage/iconMessageWrapper.js +25 -0
- package/dist/cjs/root/ui/iconMessage/index.js +3 -5
- package/dist/cjs/root/ui/iconMessage/styles.js +32 -0
- package/dist/cjs/root/ui/iconMessage/types.js +5 -0
- package/dist/cjs/root/ui/iconWrapper/iconWrapper.js +25 -0
- package/dist/cjs/root/ui/iconWrapper/{styled.js → styles.js} +7 -7
- package/dist/cjs/root/ui/iconWrapper/types.js +5 -0
- package/dist/cjs/root/ui/loadingRateLimited/styles.js +36 -0
- package/dist/cjs/root/ui/newFileExperience/newFileExperienceWrapper.js +52 -0
- package/dist/cjs/root/ui/newFileExperience/styles.js +47 -0
- package/dist/cjs/root/ui/newFileExperience/types.js +5 -0
- package/dist/cjs/root/ui/playButton/playButton.js +4 -2
- package/dist/cjs/root/ui/playButton/playButtonBackground.js +20 -0
- package/dist/cjs/root/ui/playButton/playButtonWrapper.js +20 -0
- package/dist/cjs/root/ui/playButton/styles.js +29 -0
- package/dist/cjs/root/ui/progressBar/progressBar.js +10 -5
- package/dist/cjs/root/ui/progressBar/styledBar.js +29 -0
- package/dist/cjs/root/ui/progressBar/{styled.js → styles.js} +11 -7
- package/dist/cjs/root/ui/progressBar/types.js +5 -0
- package/dist/cjs/root/ui/{styled.js → styles.js} +23 -40
- package/dist/cjs/root/ui/tickBox/styles.js +36 -0
- package/dist/cjs/root/ui/tickBox/tickBox.js +3 -3
- package/dist/cjs/root/ui/tickBox/tickBoxWrapper.js +21 -0
- package/dist/cjs/root/ui/tickBox/types.js +5 -0
- package/dist/cjs/root/ui/titleBox/failedTitleBox.js +5 -7
- package/dist/cjs/root/ui/titleBox/styles.js +62 -0
- package/dist/cjs/root/ui/titleBox/titleBox.js +7 -7
- package/dist/cjs/root/ui/titleBox/titleBoxComponents.js +66 -0
- package/dist/cjs/root/ui/titleBox/types.js +5 -0
- package/dist/cjs/styles/animations.js +2 -2
- package/dist/cjs/styles/index.js +12 -7
- package/dist/cjs/types.js +0 -1
- package/dist/cjs/utils/analytics.js +15 -1
- package/dist/cjs/utils/cardActions/cardActionButton.js +24 -0
- package/dist/cjs/utils/cardActions/cardActionIconButton.js +2 -3
- package/dist/cjs/utils/cardActions/cardActionsDropdownMenu.js +3 -3
- package/dist/cjs/utils/cardActions/cardActionsView.js +11 -13
- package/dist/cjs/utils/cardActions/index.js +2 -2
- package/dist/cjs/utils/cardActions/{styled.js → styles.js} +8 -8
- package/dist/cjs/utils/errorIcon/index.js +8 -10
- package/dist/cjs/utils/errorIcon/styles.js +17 -0
- package/dist/cjs/utils/fileIcon/index.js +9 -14
- package/dist/cjs/utils/fileIcon/styles.js +19 -0
- package/dist/cjs/utils/getMediaCardCursor.js +5 -2
- package/dist/cjs/utils/lightCards/cardError.js +2 -2
- package/dist/cjs/utils/lightCards/cardLoading.js +3 -3
- package/dist/cjs/utils/lightCards/lightCardWrappers.js +41 -0
- package/dist/cjs/utils/lightCards/styles.js +47 -0
- package/dist/cjs/utils/mediaTypeIcon/iconWrapper.js +20 -0
- package/dist/cjs/utils/mediaTypeIcon/index.js +2 -2
- package/dist/cjs/utils/mediaTypeIcon/{styled.js → styles.js} +9 -5
- package/dist/cjs/utils/mediaTypeIcon/types.js +5 -0
- package/dist/cjs/utils/progressBar/index.js +7 -9
- package/dist/cjs/utils/progressBar/styles.js +19 -0
- package/dist/cjs/utils/ufoExperiences.js +18 -18
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/files/cardImageView/cardImageViewWrapper.js +43 -0
- package/dist/es2019/files/cardImageView/cardOverlay/cardOverlayComponents.js +41 -0
- package/dist/es2019/files/cardImageView/cardOverlay/index.js +29 -15
- package/dist/es2019/files/cardImageView/cardOverlay/{styled.js → styles.js} +34 -25
- package/dist/es2019/files/cardImageView/index.js +38 -26
- package/dist/es2019/files/cardImageView/{styled.js → styles.js} +15 -14
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/root/card/cardAnalytics.js +0 -11
- package/dist/es2019/root/card/getCardPreview/cache.js +9 -10
- package/dist/es2019/root/card/getCardPreview/index.js +16 -8
- package/dist/es2019/root/card/index.js +22 -15
- package/dist/es2019/root/cardView.js +40 -39
- package/dist/es2019/root/cardViewWrapper.js +26 -0
- package/dist/es2019/root/inlinePlayer.js +9 -7
- package/dist/es2019/root/inlinePlayerWrapper.js +23 -0
- package/dist/es2019/root/{styled.js → styles.js} +18 -19
- package/dist/es2019/root/types.js +1 -0
- package/dist/es2019/root/ui/actionsBar/actionsBar.js +2 -2
- package/dist/es2019/root/ui/actionsBar/actionsBarWrapper.js +10 -0
- package/dist/es2019/root/ui/actionsBar/styles.js +15 -0
- package/dist/es2019/root/ui/actionsBar/types.js +1 -0
- package/dist/es2019/root/ui/blanket/blanket.js +12 -0
- package/dist/es2019/root/ui/blanket/styles.js +17 -0
- package/dist/es2019/root/ui/iconMessage/iconMessageWrapper.js +16 -0
- package/dist/es2019/root/ui/iconMessage/index.js +2 -3
- package/dist/es2019/root/ui/iconMessage/styles.js +32 -0
- package/dist/es2019/root/ui/iconMessage/types.js +1 -0
- package/dist/es2019/root/ui/iconWrapper/iconWrapper.js +16 -0
- package/dist/es2019/root/ui/iconWrapper/styles.js +25 -0
- package/dist/es2019/root/ui/iconWrapper/types.js +1 -0
- package/dist/es2019/root/ui/loadingRateLimited/styles.js +41 -0
- package/dist/es2019/root/ui/newFileExperience/newFileExperienceWrapper.js +42 -0
- package/dist/es2019/root/ui/newFileExperience/styles.js +50 -0
- package/dist/es2019/root/ui/newFileExperience/types.js +1 -0
- package/dist/es2019/root/ui/playButton/playButton.js +3 -2
- package/dist/es2019/root/ui/playButton/playButtonBackground.js +9 -0
- package/dist/es2019/root/ui/playButton/playButtonWrapper.js +9 -0
- package/dist/es2019/root/ui/playButton/{styled.js → styles.js} +5 -11
- package/dist/es2019/root/ui/progressBar/progressBar.js +5 -3
- package/dist/es2019/root/ui/progressBar/styledBar.js +20 -0
- package/dist/es2019/root/ui/progressBar/{styled.js → styles.js} +28 -24
- package/dist/es2019/root/ui/progressBar/types.js +1 -0
- package/dist/es2019/root/ui/styles.js +78 -0
- package/dist/es2019/root/ui/tickBox/styles.js +30 -0
- package/dist/es2019/root/ui/tickBox/tickBox.js +2 -2
- package/dist/es2019/root/ui/tickBox/tickBoxWrapper.js +10 -0
- package/dist/es2019/root/ui/tickBox/types.js +1 -0
- package/dist/es2019/root/ui/titleBox/failedTitleBox.js +3 -4
- package/dist/es2019/root/ui/titleBox/styles.js +68 -0
- package/dist/es2019/root/ui/titleBox/titleBox.js +2 -2
- package/dist/es2019/root/ui/titleBox/titleBoxComponents.js +49 -0
- package/dist/es2019/root/ui/titleBox/types.js +1 -0
- package/dist/es2019/styles/animations.js +1 -1
- package/dist/es2019/styles/index.js +4 -4
- package/dist/es2019/types.js +0 -1
- package/dist/es2019/utils/analytics.js +12 -1
- package/dist/es2019/utils/cardActions/cardActionButton.js +13 -0
- package/dist/es2019/utils/cardActions/cardActionIconButton.js +1 -2
- package/dist/es2019/utils/cardActions/cardActionsDropdownMenu.js +1 -1
- package/dist/es2019/utils/cardActions/cardActionsView.js +9 -6
- package/dist/es2019/utils/cardActions/index.js +1 -1
- package/dist/es2019/utils/cardActions/{styled.js → styles.js} +14 -12
- package/dist/es2019/utils/errorIcon/index.js +7 -3
- package/dist/es2019/utils/errorIcon/styles.js +5 -0
- package/dist/es2019/utils/fileIcon/index.js +7 -5
- package/dist/es2019/utils/fileIcon/{styled.js → styles.js} +2 -2
- package/dist/es2019/utils/getMediaCardCursor.js +6 -2
- package/dist/es2019/utils/lightCards/cardError.js +1 -1
- package/dist/es2019/utils/lightCards/cardLoading.js +1 -1
- package/dist/es2019/utils/lightCards/lightCardWrappers.js +24 -0
- package/dist/es2019/utils/lightCards/{styled.js → styles.js} +16 -9
- package/dist/es2019/utils/mediaTypeIcon/iconWrapper.js +9 -0
- package/dist/es2019/utils/mediaTypeIcon/index.js +1 -1
- package/dist/es2019/utils/mediaTypeIcon/{styled.js → styles.js} +10 -5
- package/dist/es2019/utils/mediaTypeIcon/types.js +1 -0
- package/dist/es2019/utils/progressBar/index.js +6 -3
- package/dist/es2019/utils/progressBar/{styled.js → styles.js} +2 -2
- package/dist/es2019/utils/ufoExperiences.js +15 -14
- package/dist/es2019/version.json +1 -1
- package/dist/esm/files/cardImageView/cardImageViewWrapper.js +41 -0
- package/dist/esm/files/cardImageView/cardOverlay/cardOverlayComponents.js +39 -0
- package/dist/esm/files/cardImageView/cardOverlay/index.js +28 -15
- package/dist/esm/files/cardImageView/cardOverlay/styles.js +46 -0
- package/dist/esm/files/cardImageView/index.js +37 -26
- package/dist/esm/files/cardImageView/styles.js +36 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/root/card/cardAnalytics.js +0 -15
- package/dist/esm/root/card/getCardPreview/cache.js +9 -10
- package/dist/esm/root/card/getCardPreview/helpers.js +1 -1
- package/dist/esm/root/card/getCardPreview/index.js +35 -27
- package/dist/esm/root/card/index.js +23 -18
- package/dist/esm/root/cardView.js +39 -39
- package/dist/esm/root/cardViewWrapper.js +24 -0
- package/dist/esm/root/inline/loader.js +1 -1
- package/dist/esm/root/inlinePlayer.js +10 -8
- package/dist/esm/root/inlinePlayerWrapper.js +21 -0
- package/dist/esm/root/styles.js +36 -0
- package/dist/esm/root/types.js +1 -0
- package/dist/esm/root/ui/actionsBar/actionsBar.js +2 -2
- package/dist/esm/root/ui/actionsBar/actionsBarWrapper.js +10 -0
- package/dist/esm/root/ui/actionsBar/styles.js +12 -0
- package/dist/esm/root/ui/actionsBar/types.js +1 -0
- package/dist/esm/root/ui/blanket/blanket.js +10 -0
- package/dist/esm/root/ui/blanket/styles.js +13 -0
- package/dist/esm/root/ui/iconMessage/iconMessageWrapper.js +14 -0
- package/dist/esm/root/ui/iconMessage/index.js +2 -3
- package/dist/esm/root/ui/iconMessage/styles.js +19 -0
- package/dist/esm/root/ui/iconMessage/types.js +1 -0
- package/dist/esm/root/ui/iconWrapper/iconWrapper.js +14 -0
- package/dist/esm/root/ui/iconWrapper/{styled.js → styles.js} +5 -5
- package/dist/esm/root/ui/iconWrapper/types.js +1 -0
- package/dist/esm/root/ui/loadingRateLimited/styles.js +17 -0
- package/dist/esm/root/ui/newFileExperience/newFileExperienceWrapper.js +40 -0
- package/dist/esm/root/ui/newFileExperience/styles.js +27 -0
- package/dist/esm/root/ui/newFileExperience/types.js +1 -0
- package/dist/esm/root/ui/playButton/playButton.js +3 -2
- package/dist/esm/root/ui/playButton/playButtonBackground.js +9 -0
- package/dist/esm/root/ui/playButton/playButtonWrapper.js +9 -0
- package/dist/esm/root/ui/playButton/styles.js +13 -0
- package/dist/esm/root/ui/progressBar/progressBar.js +5 -3
- package/dist/esm/root/ui/progressBar/styledBar.js +18 -0
- package/dist/esm/root/ui/progressBar/{styled.js → styles.js} +10 -5
- package/dist/esm/root/ui/progressBar/types.js +1 -0
- package/dist/esm/root/ui/styles.js +72 -0
- package/dist/esm/root/ui/tickBox/styles.js +16 -0
- package/dist/esm/root/ui/tickBox/tickBox.js +2 -2
- package/dist/esm/root/ui/tickBox/tickBoxWrapper.js +10 -0
- package/dist/esm/root/ui/tickBox/types.js +1 -0
- package/dist/esm/root/ui/titleBox/failedTitleBox.js +3 -4
- package/dist/esm/root/ui/titleBox/styles.js +39 -0
- package/dist/esm/root/ui/titleBox/titleBox.js +2 -2
- package/dist/esm/root/ui/titleBox/titleBoxComponents.js +43 -0
- package/dist/esm/root/ui/titleBox/types.js +1 -0
- package/dist/esm/styles/animations.js +1 -1
- package/dist/esm/styles/index.js +8 -4
- package/dist/esm/types.js +0 -1
- package/dist/esm/utils/analytics.js +12 -1
- package/dist/esm/utils/cardActions/cardActionButton.js +13 -0
- package/dist/esm/utils/cardActions/cardActionIconButton.js +1 -2
- package/dist/esm/utils/cardActions/cardActionsDropdownMenu.js +1 -1
- package/dist/esm/utils/cardActions/cardActionsView.js +9 -6
- package/dist/esm/utils/cardActions/index.js +1 -1
- package/dist/esm/utils/cardActions/{styled.js → styles.js} +6 -6
- package/dist/esm/utils/errorIcon/index.js +6 -3
- package/dist/esm/utils/errorIcon/styles.js +6 -0
- package/dist/esm/utils/fileIcon/index.js +7 -5
- package/dist/esm/utils/fileIcon/styles.js +7 -0
- package/dist/esm/utils/getMediaCardCursor.js +6 -2
- package/dist/esm/utils/lightCards/cardError.js +1 -1
- package/dist/esm/utils/lightCards/cardLoading.js +1 -1
- package/dist/esm/utils/lightCards/lightCardWrappers.js +24 -0
- package/dist/esm/utils/lightCards/styles.js +28 -0
- package/dist/esm/utils/mediaTypeIcon/iconWrapper.js +9 -0
- package/dist/esm/utils/mediaTypeIcon/index.js +1 -1
- package/dist/esm/utils/mediaTypeIcon/{styled.js → styles.js} +8 -3
- package/dist/esm/utils/mediaTypeIcon/types.js +1 -0
- package/dist/esm/utils/progressBar/index.js +6 -3
- package/dist/esm/utils/progressBar/styles.js +7 -0
- package/dist/esm/utils/ufoExperiences.js +15 -14
- package/dist/esm/utils/videoSnapshot.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/files/cardImageView/cardImageViewWrapper.d.ts +6 -0
- package/dist/types/files/cardImageView/cardOverlay/cardOverlayComponents.d.ts +8 -0
- package/dist/types/files/cardImageView/cardOverlay/index.d.ts +6 -4
- package/dist/types/files/cardImageView/cardOverlay/styles.d.ts +26 -0
- package/dist/types/files/cardImageView/index.d.ts +3 -1
- package/dist/types/files/cardImageView/styles.d.ts +24 -0
- package/dist/types/index.d.ts +6 -1
- package/dist/types/root/card/cardAnalytics.d.ts +0 -10
- package/dist/types/root/card/getCardPreview/cache.d.ts +9 -8
- package/dist/types/root/card/getCardPreview/index.d.ts +7 -5
- package/dist/types/root/cardView.d.ts +5 -3
- package/dist/types/root/cardViewWrapper.d.ts +4 -0
- package/dist/types/root/inlinePlayer.d.ts +1 -1
- package/dist/types/root/inlinePlayerWrapper.d.ts +4 -0
- package/dist/types/root/styles.d.ts +10 -0
- package/dist/types/root/types.d.ts +24 -0
- package/dist/types/root/ui/actionsBar/actionsBar.d.ts +1 -5
- package/dist/types/root/ui/actionsBar/actionsBarWrapper.d.ts +4 -0
- package/dist/types/root/ui/actionsBar/styles.d.ts +6 -0
- package/dist/types/root/ui/actionsBar/types.d.ts +10 -0
- package/dist/types/root/ui/blanket/blanket.d.ts +6 -0
- package/dist/types/root/ui/blanket/styles.d.ts +6 -0
- package/dist/types/root/ui/iconMessage/iconMessageWrapper.d.ts +4 -0
- package/dist/types/root/ui/iconMessage/index.d.ts +1 -10
- package/dist/types/root/ui/iconMessage/styles.d.ts +5 -0
- package/dist/types/root/ui/iconMessage/types.d.ts +19 -0
- package/dist/types/root/ui/iconWrapper/iconWrapper.d.ts +4 -0
- package/dist/types/root/ui/iconWrapper/styles.d.ts +7 -0
- package/dist/types/root/ui/iconWrapper/types.d.ts +6 -0
- package/dist/types/root/ui/loadingRateLimited/styles.d.ts +13 -0
- package/dist/types/root/ui/newFileExperience/newFileExperienceWrapper.d.ts +4 -0
- package/dist/types/root/ui/newFileExperience/styles.d.ts +5 -0
- package/dist/types/root/ui/newFileExperience/types.d.ts +23 -0
- package/dist/types/root/ui/playButton/playButtonBackground.d.ts +3 -0
- package/dist/types/root/ui/playButton/playButtonWrapper.d.ts +3 -0
- package/dist/types/root/ui/playButton/styles.d.ts +5 -0
- package/dist/types/root/ui/progressBar/progressBar.d.ts +1 -0
- package/dist/types/root/ui/progressBar/styledBar.d.ts +4 -0
- package/dist/types/root/ui/progressBar/styles.d.ts +7 -0
- package/dist/types/root/ui/progressBar/types.d.ts +7 -0
- package/dist/types/root/ui/styles.d.ts +11 -0
- package/dist/types/root/ui/tickBox/styles.d.ts +7 -0
- package/dist/types/root/ui/tickBox/tickBox.d.ts +1 -3
- package/dist/types/root/ui/tickBox/tickBoxWrapper.d.ts +4 -0
- package/dist/types/root/ui/tickBox/types.d.ts +4 -0
- package/dist/types/root/ui/titleBox/failedTitleBox.d.ts +1 -7
- package/dist/types/root/ui/titleBox/styles.d.ts +15 -0
- package/dist/types/root/ui/titleBox/titleBox.d.ts +1 -13
- package/dist/types/root/ui/titleBox/titleBoxComponents.d.ts +8 -0
- package/dist/types/root/ui/titleBox/types.d.ts +32 -0
- package/dist/types/styles/animations.d.ts +1 -1
- package/dist/types/styles/index.d.ts +3 -4
- package/dist/types/styles/mixins.d.ts +2 -2
- package/dist/types/types.d.ts +2 -1
- package/dist/types/utils/analytics.d.ts +2 -0
- package/dist/types/utils/cardActions/cardActionButton.d.ts +4 -0
- package/dist/types/utils/cardActions/cardActionIconButton.d.ts +1 -1
- package/dist/types/utils/cardActions/cardActionsDropdownMenu.d.ts +1 -1
- package/dist/types/utils/cardActions/cardActionsView.d.ts +1 -1
- package/dist/types/utils/cardActions/index.d.ts +1 -1
- package/dist/types/utils/cardActions/styles.d.ts +18 -0
- package/dist/types/utils/errorIcon/index.d.ts +3 -1
- package/dist/types/utils/errorIcon/styles.d.ts +1 -0
- package/dist/types/utils/fileIcon/index.d.ts +3 -1
- package/dist/types/utils/fileIcon/styles.d.ts +1 -0
- package/dist/types/utils/getMediaCardCursor.d.ts +4 -1
- package/dist/types/utils/lightCards/lightCardWrappers.d.ts +5 -0
- package/dist/types/utils/lightCards/styles.d.ts +4 -0
- package/dist/types/utils/lightCards/types.d.ts +8 -0
- package/dist/types/utils/mediaTypeIcon/iconWrapper.d.ts +4 -0
- package/dist/types/utils/mediaTypeIcon/styles.d.ts +2 -0
- package/dist/types/utils/mediaTypeIcon/types.d.ts +6 -0
- package/dist/types/utils/progressBar/index.d.ts +3 -1
- package/dist/types/utils/progressBar/styles.d.ts +1 -0
- package/dist/types/utils/ufoExperiences.d.ts +2 -2
- package/example-helpers/cardViewWrapper.tsx +26 -0
- package/example-helpers/cards.tsx +417 -0
- package/example-helpers/index.tsx +20 -9
- package/example-helpers/styles.ts +115 -0
- package/package.json +11 -11
- package/report.api.md +269 -0
- package/dist/cjs/files/cardImageView/cardOverlay/styled.js +0 -86
- package/dist/cjs/files/cardImageView/styled.js +0 -73
- package/dist/cjs/root/styled.js +0 -58
- package/dist/cjs/root/ui/actionsBar/styled.js +0 -31
- package/dist/cjs/root/ui/blanket/styled.js +0 -33
- package/dist/cjs/root/ui/iconMessage/styled.js +0 -34
- package/dist/cjs/root/ui/loadingRateLimited/loadingRateLimited.js +0 -35
- package/dist/cjs/root/ui/loadingRateLimited/styled.js +0 -43
- package/dist/cjs/root/ui/playButton/styled.js +0 -38
- package/dist/cjs/root/ui/tickBox/styled.js +0 -37
- package/dist/cjs/root/ui/titleBox/styled.js +0 -67
- package/dist/cjs/utils/errorIcon/styled.js +0 -18
- package/dist/cjs/utils/fileIcon/styled.js +0 -20
- package/dist/cjs/utils/lightCards/styled.js +0 -43
- package/dist/cjs/utils/progressBar/styled.js +0 -20
- package/dist/es2019/root/ui/actionsBar/styled.js +0 -23
- package/dist/es2019/root/ui/blanket/styled.js +0 -25
- package/dist/es2019/root/ui/iconMessage/styled.js +0 -30
- package/dist/es2019/root/ui/iconWrapper/styled.js +0 -27
- package/dist/es2019/root/ui/loadingRateLimited/loadingRateLimited.js +0 -16
- package/dist/es2019/root/ui/loadingRateLimited/styled.js +0 -43
- package/dist/es2019/root/ui/styled.js +0 -134
- package/dist/es2019/root/ui/tickBox/styled.js +0 -41
- package/dist/es2019/root/ui/titleBox/styled.js +0 -79
- package/dist/es2019/utils/errorIcon/styled.js +0 -5
- package/dist/esm/files/cardImageView/cardOverlay/styled.js +0 -39
- package/dist/esm/files/cardImageView/styled.js +0 -34
- package/dist/esm/root/styled.js +0 -36
- package/dist/esm/root/ui/actionsBar/styled.js +0 -15
- package/dist/esm/root/ui/blanket/styled.js +0 -16
- package/dist/esm/root/ui/iconMessage/styled.js +0 -15
- package/dist/esm/root/ui/loadingRateLimited/loadingRateLimited.js +0 -17
- package/dist/esm/root/ui/loadingRateLimited/styled.js +0 -17
- package/dist/esm/root/ui/playButton/styled.js +0 -19
- package/dist/esm/root/ui/styled.js +0 -98
- package/dist/esm/root/ui/tickBox/styled.js +0 -21
- package/dist/esm/root/ui/titleBox/styled.js +0 -40
- package/dist/esm/utils/errorIcon/styled.js +0 -6
- package/dist/esm/utils/fileIcon/styled.js +0 -7
- package/dist/esm/utils/lightCards/styled.js +0 -19
- package/dist/esm/utils/progressBar/styled.js +0 -7
- package/dist/types/files/cardImageView/cardOverlay/styled.d.ts +0 -23
- package/dist/types/files/cardImageView/styled.d.ts +0 -276
- package/dist/types/root/styled.d.ts +0 -16
- package/dist/types/root/ui/actionsBar/styled.d.ts +0 -10
- package/dist/types/root/ui/blanket/styled.d.ts +0 -10
- package/dist/types/root/ui/iconMessage/styled.d.ts +0 -6
- package/dist/types/root/ui/iconWrapper/styled.d.ts +0 -8
- package/dist/types/root/ui/loadingRateLimited/loadingRateLimited.d.ts +0 -6
- package/dist/types/root/ui/loadingRateLimited/styled.d.ts +0 -11
- package/dist/types/root/ui/playButton/styled.d.ts +0 -9
- package/dist/types/root/ui/progressBar/styled.d.ts +0 -10
- package/dist/types/root/ui/styled.d.ts +0 -20
- package/dist/types/root/ui/tickBox/styled.d.ts +0 -10
- package/dist/types/root/ui/titleBox/styled.d.ts +0 -18
- package/dist/types/utils/cardActions/styled.d.ts +0 -12
- package/dist/types/utils/errorIcon/styled.d.ts +0 -2
- package/dist/types/utils/fileIcon/styled.d.ts +0 -2
- package/dist/types/utils/lightCards/styled.d.ts +0 -8
- package/dist/types/utils/mediaTypeIcon/styled.d.ts +0 -6
- package/dist/types/utils/progressBar/styled.d.ts +0 -2
- package/example-helpers/styled.ts +0 -137
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { responsiveSettings, getTitleBoxHeight, Breakpoint } from '../common';
|
|
3
|
-
import { N0 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { rgba } from '../../../styles/mixins';
|
|
5
|
-
|
|
6
|
-
const generateResponsiveStyles = (breakpoint = Breakpoint.SMALL) => {
|
|
7
|
-
const setting = responsiveSettings[breakpoint];
|
|
8
|
-
const verticalPadding = setting.titleBox.verticalPadding;
|
|
9
|
-
const horizontalPadding = setting.titleBox.horizontalPadding;
|
|
10
|
-
const height = getTitleBoxHeight(breakpoint);
|
|
11
|
-
return `
|
|
12
|
-
height: ${height}px;
|
|
13
|
-
padding: ${verticalPadding}px ${horizontalPadding}px;
|
|
14
|
-
`;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const HEX_REGEX = /^#[0-9A-F]{6}$/i;
|
|
18
|
-
export const TitleBoxWrapper = styled.div`
|
|
19
|
-
${({
|
|
20
|
-
breakpoint,
|
|
21
|
-
titleBoxBgColor
|
|
22
|
-
}) => `
|
|
23
|
-
position: absolute;
|
|
24
|
-
bottom: 0;
|
|
25
|
-
width: 100%;
|
|
26
|
-
background-color: ${rgba(titleBoxBgColor && HEX_REGEX.test(titleBoxBgColor) ? titleBoxBgColor : N0, 0.8)};
|
|
27
|
-
color: inherit;
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
${generateResponsiveStyles(breakpoint)}
|
|
32
|
-
`}
|
|
33
|
-
`;
|
|
34
|
-
TitleBoxWrapper.displayName = 'TitleBoxWrapper';
|
|
35
|
-
const infoStyles = `
|
|
36
|
-
white-space: nowrap;
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
`;
|
|
39
|
-
const iconOverlapStyles = `
|
|
40
|
-
padding-right: 10px;
|
|
41
|
-
`;
|
|
42
|
-
export const TitleBoxHeader = styled.div`
|
|
43
|
-
${({
|
|
44
|
-
hasIconOverlap
|
|
45
|
-
}) => `
|
|
46
|
-
font-weight: 600;
|
|
47
|
-
${infoStyles}
|
|
48
|
-
${hasIconOverlap && iconOverlapStyles}
|
|
49
|
-
`}
|
|
50
|
-
`;
|
|
51
|
-
TitleBoxHeader.displayName = 'FailedTitleBoxHeader';
|
|
52
|
-
export const TitleBoxFooter = styled.div`
|
|
53
|
-
${({
|
|
54
|
-
hasIconOverlap
|
|
55
|
-
}) => `
|
|
56
|
-
text-overflow: ellipsis;
|
|
57
|
-
${infoStyles}
|
|
58
|
-
${hasIconOverlap && iconOverlapStyles}
|
|
59
|
-
`}
|
|
60
|
-
`;
|
|
61
|
-
TitleBoxFooter.displayName = 'TitleBoxFooter';
|
|
62
|
-
export const TitleBoxIcon = styled.div`
|
|
63
|
-
position: absolute;
|
|
64
|
-
right: 4px;
|
|
65
|
-
bottom: 0px;
|
|
66
|
-
`;
|
|
67
|
-
TitleBoxIcon.displayName = 'TitleBoxIcon';
|
|
68
|
-
export const ErrorMessageWrapper = styled.div`
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
justify-content: flex-start;
|
|
72
|
-
span {
|
|
73
|
-
vertical-align: middle;
|
|
74
|
-
:nth-child(2) {
|
|
75
|
-
margin-left: 4px;
|
|
76
|
-
margin-right: 4px;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Everything about this file change is just wrong.
|
|
7
|
-
* Mostly because we do bad things with classes.
|
|
8
|
-
* This is all wrong and hopefully will be removed from existence with card v3,
|
|
9
|
-
* so please don’t be too sad about all this!
|
|
10
|
-
*/
|
|
11
|
-
import styled from 'styled-components';
|
|
12
|
-
import { rgba, centerX, easeOutCubic, transition, antialiased } from '../../../styles';
|
|
13
|
-
import { borderRadius, size, ellipsis, absolute } from '@atlaskit/media-ui';
|
|
14
|
-
import { themed } from '@atlaskit/theme/components';
|
|
15
|
-
import * as colors from '@atlaskit/theme/colors';
|
|
16
|
-
export var TickBox = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", " ", " background-color: ", ";\n position: absolute;\n top: 8px;\n right: 8px;\n border-radius: 20px;\n color: #798599; /* TODO FIL-3884: Align color with new design */\n display: flex;\n opacity: 0;\n\n &.selected {\n opacity: 1;\n color: white;\n background-color: #0052cc; /* TODO FIL-3884: Align with tickbox icons */\n }\n\n /* Enforce dimensions of \"tick\" icon */\n svg {\n position: absolute;\n width: 14px;\n }\n"])), size(14), transition(), rgba('#ffffff', 0.5));
|
|
17
|
-
export var Overlay = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", " ", " ", " display: flex;\n justify-content: space-between;\n flex-direction: column;\n background: transparent;\n transition: 0.3s background ", ", 0.3s border-color;\n padding: 16px;\n\n ", " &:not(.persistent):hover, &.active {\n .top-row {\n .title {\n color: ", ";\n }\n }\n\n .bottom-row {\n .delete-btn {\n display: flex;\n }\n }\n }\n\n &.noHover:hover {\n .top-row {\n .title {\n color: ", ";\n }\n }\n }\n\n .file-type-icon {\n display: block;\n }\n\n &:not(.persistent) {\n &:not(.error, .noHover):hover {\n background-color: ", ";\n }\n\n &.selectable {\n &.selected {\n background-color: ", ";\n\n &:hover {\n /* TODO FIL-3884 add new overlay with rgba(colors.N900, 0.16) */\n }\n\n .title,\n .bottom-row,\n .file-size,\n .more-btn {\n color: ", ";\n }\n }\n }\n }\n\n &.persistent {\n &:not(.active) {\n overflow: hidden;\n }\n\n .top-row {\n .title {\n transition: opacity 0.3s;\n opacity: 0;\n color: white;\n visibility: hidden;\n }\n }\n\n .bottom-row {\n opacity: 0;\n transition: transform 0.2s, opacity 0.5s;\n /* This is the height of the overlay footer, needs to be present now since the parent uses flex and 100% doesn't look right anymore */\n transform: translateY(35px);\n\n .file-type-icon {\n display: none;\n }\n\n .file-size {\n color: white;\n display: none;\n }\n\n .more-btn {\n color: ", ";\n display: none;\n\n &:hover {\n background-color: rgba(9, 30, 66, 0.2);\n }\n }\n\n .delete-btn {\n display: none;\n\n &:hover {\n background-color: rgba(9, 30, 66, 0.2);\n }\n }\n }\n\n &:hover,\n &.active {\n background-color: ", ";\n\n .title {\n opacity: 1;\n visibility: visible;\n }\n\n .file-type-icon,\n .file-size {\n display: block;\n }\n\n .more-btn {\n ", " color: ", ";\n }\n\n .delete-btn {\n display: flex;\n }\n\n .bottom-row {\n opacity: 1;\n transform: translateY(0);\n }\n }\n\n /* Selectable */\n &.selectable {\n &:hover {\n .tickbox {\n opacity: 1;\n }\n }\n\n &.selected {\n .tickbox {\n background-color: ", " !important;\n border-color: ", " !important;\n color: white;\n }\n }\n }\n }\n\n &.error {\n .top-row {\n overflow: visible;\n }\n &:hover,\n &.active {\n .top-row {\n .title {\n color: ", ";\n }\n }\n }\n }\n"])), size(), absolute(), borderRadius, easeOutCubic, function (_ref) {
|
|
18
|
-
var hasError = _ref.hasError,
|
|
19
|
-
noHover = _ref.noHover;
|
|
20
|
-
|
|
21
|
-
if (hasError || noHover) {
|
|
22
|
-
return "\n cursor: default;\n\n &:hover {\n background: transparent;\n }\n ";
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return '';
|
|
26
|
-
}, colors.B400, colors.N800, rgba(colors.N900, 0.06), colors.B200, colors.N0, colors.N0, rgba(colors.N900, 0.5), centerX, colors.N0, colors.B200, colors.B200, colors.N800);
|
|
27
|
-
export var ErrorLine = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n height: 24px;\n display: flex;\n align-items: center;\n"])));
|
|
28
|
-
export var LeftColumn = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n position: relative;\n box-sizing: border-box;\n vertical-align: middle;\n"])));
|
|
29
|
-
export var TopRow = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral([""])));
|
|
30
|
-
export var BottomRow = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n height: 16px;\n"])));
|
|
31
|
-
export var RightColumn = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([""])));
|
|
32
|
-
export var ErrorMessage = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n ", " display: inline-block;\n vertical-align: middle;\n font-weight: bold;\n color: ", ";\n font-size: 12px;\n line-height: 15px;\n overflow: hidden;\n max-width: ~'calc(100% - 24px)';\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: auto 3px;\n"])), antialiased, colors.N70);
|
|
33
|
-
export var AltWrapper = styled(ErrorMessage)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n font-weight: normal;\n"])));
|
|
34
|
-
export var TitleWrapper = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n word-wrap: break-word;\n color: ", ";\n font-size: 12px;\n line-height: 18px;\n"])), themed({
|
|
35
|
-
light: colors.N800,
|
|
36
|
-
dark: colors.DN900
|
|
37
|
-
}));
|
|
38
|
-
export var Subtitle = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n ", " font-size: 12px;\n color: #5e6c84;\n"])), ellipsis('100px'));
|
|
39
|
-
export var Metadata = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
4
|
-
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { absolute, borderRadius, size } from '@atlaskit/media-ui';
|
|
7
|
-
import { themed } from '@atlaskit/theme/components';
|
|
8
|
-
import { N20, DN50, N0 } from '@atlaskit/theme/colors';
|
|
9
|
-
import { Root, cardShadow } from '../../styles';
|
|
10
|
-
import { getSelectedBorderStyle } from '../../styles/getSelectedBorderStyle';
|
|
11
|
-
|
|
12
|
-
var getShadowAttribute = function getShadowAttribute(props) {
|
|
13
|
-
var disableOverlay = props.disableOverlay;
|
|
14
|
-
return disableOverlay ? '' : cardShadow;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
var getBackgroundColor = function getBackgroundColor(props) {
|
|
18
|
-
var mediaType = props.mediaType;
|
|
19
|
-
return "background: ".concat(mediaType === 'image' ? 'transparent' : themed({
|
|
20
|
-
light: N20,
|
|
21
|
-
dark: DN50
|
|
22
|
-
})(props), ";");
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export var Wrapper = styled(Root)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n\n line-height: normal;\n position: relative;\n\n ", "\n\n ", " .wrapper {\n ", ";\n display: block;\n height: inherit;\n position: relative;\n\n .img-wrapper {\n position: relative;\n width: inherit;\n height: inherit;\n overflow: hidden;\n display: block;\n ", "\n }\n }\n"])), getShadowAttribute, borderRadius, getBackgroundColor, getSelectedBorderStyle, size(), borderRadius, borderRadius);
|
|
26
|
-
export var PlayIconWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n\n /* we want to override default icon size and hover state */\n &:hover > * {\n width: 64px;\n height: 64px;\n }\n"])));
|
|
27
|
-
export var PlayIconBackground = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background: rgba(23, 43, 77, 0.7);\n border-radius: 100%;\n padding: 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n transition-property: width, height;\n transition-duration: 0.1s;\n width: 56px;\n height: 56px;\n"])));
|
|
28
|
-
var bodyHeight = 26;
|
|
29
|
-
export var ProgressBarWrapper = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n height: 100%;\n width: 100%;\n"])));
|
|
30
|
-
export var Overlay = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", "\n ", "\n border-radius: inherit;\n background-color: rgba(9, 30, 66, 0.5);\n"])), absolute(), size());
|
|
31
|
-
export var Title = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", " width: 100%;\n padding: 8px;\n color: ", ";\n font-size: 12px;\n line-height: 18px;\n word-wrap: break-word;\n"])), absolute(), N0);
|
|
32
|
-
export var Body = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n position: absolute;\n bottom: 0;\n width: 100%;\n padding: 8px;\n color: ", ";\n"])), N0);
|
|
33
|
-
export var ProgressWrapper = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n flex-grow: 1;\n\n /*\n force the height to always be 20px (the height of the cancel icon),\n so that the height of the progress bar doesn't jump when cards with\n and without a cancel icon are rendered side-by-side.\n */\n height: ", "px;\n\n /*\n vertically center the progress bar within the 20px, keeping the progress bar full width\n */\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])), bodyHeight);
|
|
34
|
-
export var CardActionsWrapper = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-left: 4px;\n /*\n button must appear above overlay\n */\n z-index: 2;\n"])));
|
package/dist/esm/root/styled.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
4
|
-
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { borderRadius } from '@atlaskit/theme/constants';
|
|
7
|
-
import { getCSSUnitValue } from '../utils/getCSSUnitValue';
|
|
8
|
-
import { breakpointStyles } from '../utils/breakpoint';
|
|
9
|
-
import { getSelectedBorderStyle } from '../styles/getSelectedBorderStyle';
|
|
10
|
-
import { getDimensionsWithDefault } from '../utils/lightCards/getDimensionsWithDefault';
|
|
11
|
-
|
|
12
|
-
var getWrapperHeight = function getWrapperHeight(dimensions) {
|
|
13
|
-
return dimensions && dimensions.height ? "height: ".concat(getCSSUnitValue(dimensions.height), "; max-height: 100%;") : '';
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
var getWrapperWidth = function getWrapperWidth(dimensions) {
|
|
17
|
-
return dimensions && dimensions.width ? "width: ".concat(getCSSUnitValue(dimensions.width), "; max-width: 100%;") : '';
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export var Wrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ";\n"])), function (_ref) {
|
|
21
|
-
var dimensions = _ref.dimensions,
|
|
22
|
-
_ref$breakpointSize = _ref.breakpointSize,
|
|
23
|
-
breakpointSize = _ref$breakpointSize === void 0 ? 'medium' : _ref$breakpointSize,
|
|
24
|
-
shouldUsePointerCursor = _ref.shouldUsePointerCursor;
|
|
25
|
-
return "\n ".concat(breakpointStyles({
|
|
26
|
-
breakpointSize: breakpointSize
|
|
27
|
-
}), "\n ").concat(getWrapperHeight(dimensions), "\n ").concat(getWrapperWidth(dimensions), "\n cursor: ").concat(shouldUsePointerCursor ? 'pointer' : 'default', ";\n ");
|
|
28
|
-
});
|
|
29
|
-
Wrapper.displayName = 'CardViewWrapper';
|
|
30
|
-
export var InlinePlayerWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n overflow: hidden;\n border-radius: ", "px;\n position: relative;\n max-width: 100%;\n max-height: 100%;\n\n ", "\n\n video {\n width: 100%;\n height: 100%;\n }\n"])), function (props) {
|
|
31
|
-
return getDimensionsWithDefault(props.dimensions).width || '100%';
|
|
32
|
-
}, function (props) {
|
|
33
|
-
return getDimensionsWithDefault(props.dimensions).height || 'auto';
|
|
34
|
-
}, borderRadius(), getSelectedBorderStyle);
|
|
35
|
-
InlinePlayerWrapper.displayName = 'InlinePlayerWrapper';
|
|
36
|
-
export var FormattedMessageWrapper = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([""])));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject;
|
|
4
|
-
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { transition } from '../../../styles';
|
|
7
|
-
export var actionsBarClassName = 'media-card-actions-bar';
|
|
8
|
-
export var fixedActionBarStyles = "\n opacity: 1;\n";
|
|
9
|
-
export var Wrapper = styled.div.attrs({
|
|
10
|
-
className: actionsBarClassName
|
|
11
|
-
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
12
|
-
var isFixed = _ref.isFixed;
|
|
13
|
-
return "\n ".concat(isFixed ? fixedActionBarStyles : 'opacity: 0;', "\n ").concat(transition(), "\n position: absolute;\n top: 8px;\n right: 8px;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n ");
|
|
14
|
-
});
|
|
15
|
-
Wrapper.displayName = 'ActionsBarWrapper';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject;
|
|
4
|
-
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { transition } from '../../../styles';
|
|
7
|
-
import { N90A } from '@atlaskit/theme/colors';
|
|
8
|
-
export var blanketClassName = 'media-card-blanket';
|
|
9
|
-
export var fixedBlanketStyles = "\n background-color: ".concat(N90A, ";\n");
|
|
10
|
-
export var Blanket = styled.div.attrs({
|
|
11
|
-
className: blanketClassName
|
|
12
|
-
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
13
|
-
var isFixed = _ref.isFixed;
|
|
14
|
-
return "\n ".concat(transition(), "\n position: absolute;\n width: 100%;\n height: 100%;\n max-height: 100%;\n max-width: 100%;\n left: 0;\n top: 0;\n ").concat(isFixed ? fixedBlanketStyles : '', "\n ");
|
|
15
|
-
});
|
|
16
|
-
Blanket.displayName = 'Blanket';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject, _templateObject2;
|
|
4
|
-
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { keyframes } from 'styled-components';
|
|
7
|
-
import { N300 } from '@atlaskit/theme/colors';
|
|
8
|
-
var breatheAnimation = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% { opacity: 1}\n 50% { opacity: 0.3 }\n 100% { opacity: 1; }"])));
|
|
9
|
-
var animatedStyles = "\n animation-name: ".concat(breatheAnimation, ";\n animation-duration: 3.5s;\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n");
|
|
10
|
-
export var IconMessageWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
11
|
-
var animated = _ref.animated,
|
|
12
|
-
reducedFont = _ref.reducedFont;
|
|
13
|
-
return "\n overflow: hidden;\n opacity: 1;\n font-weight: 450;\n ".concat(reducedFont ? 'font-size: 0.7em;' : '', "\n color: ").concat(N300, ";\n text-align:center;\n ").concat(animated ? animatedStyles : '', "\n margin-bottom: -1em;\n padding: 3px 10px;\n");
|
|
14
|
-
});
|
|
15
|
-
IconMessageWrapper.displayName = 'IconMessageWrapper';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { errorIcon } from '@atlaskit/media-ui/errorIcon';
|
|
3
|
-
import { WarningIconWrapper, LoadingRateLimitedContainer, CouldntLoadWrapper, ErrorWrapper, LoadingRateLimitedTextWrapper } from './styled';
|
|
4
|
-
import { FormattedMessageWrapper } from '../../styled';
|
|
5
|
-
import { messages } from '@atlaskit/media-ui';
|
|
6
|
-
import { FormattedMessage } from 'react-intl-next';
|
|
7
|
-
import { Breakpoint } from '../common';
|
|
8
|
-
export var LoadingRateLimited = function LoadingRateLimited(_ref) {
|
|
9
|
-
var _ref$breakpoint = _ref.breakpoint,
|
|
10
|
-
breakpoint = _ref$breakpoint === void 0 ? Breakpoint.SMALL : _ref$breakpoint,
|
|
11
|
-
_ref$positionBottom = _ref.positionBottom,
|
|
12
|
-
positionBottom = _ref$positionBottom === void 0 ? true : _ref$positionBottom;
|
|
13
|
-
return /*#__PURE__*/React.createElement(LoadingRateLimitedContainer, null, /*#__PURE__*/React.createElement(WarningIconWrapper, null, errorIcon), /*#__PURE__*/React.createElement(LoadingRateLimitedTextWrapper, {
|
|
14
|
-
breakpoint: breakpoint,
|
|
15
|
-
positionBottom: positionBottom
|
|
16
|
-
}, /*#__PURE__*/React.createElement(CouldntLoadWrapper, null, /*#__PURE__*/React.createElement(FormattedMessageWrapper, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.couldnt_load_file))), /*#__PURE__*/React.createElement(ErrorWrapper, null, /*#__PURE__*/React.createElement(FormattedMessageWrapper, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.error_429)))));
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
4
|
-
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { generateResponsiveStyles } from '../progressBar/styled';
|
|
7
|
-
import { N300 } from '@atlaskit/theme/colors';
|
|
8
|
-
export var LoadingRateLimitedContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n"])));
|
|
9
|
-
export var WarningIconWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n justify-content: center;\n display: flex;\n /* Required to allow end users to select text in the error message */\n cursor: auto;\n user-select: text;\n > svg {\n width: 45px;\n }\n"])));
|
|
10
|
-
export var LoadingRateLimitedTextWrapper = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
11
|
-
var breakpoint = _ref.breakpoint,
|
|
12
|
-
positionBottom = _ref.positionBottom;
|
|
13
|
-
return "\n margin-top: 10px;\n overflow: hidden;\n color: ".concat(N300, ";\n display: block;\n width:100%;\n text-align:center;\n ").concat(generateResponsiveStyles(breakpoint, positionBottom, false, 1), "\n ");
|
|
14
|
-
});
|
|
15
|
-
LoadingRateLimitedTextWrapper.displayName = 'LoadingRateLimitedTextWrapper';
|
|
16
|
-
export var CouldntLoadWrapper = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-weight: 550;\n"])));
|
|
17
|
-
export var ErrorWrapper = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-weight: 350;\n"])));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject, _templateObject2;
|
|
4
|
-
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { N0, N90A } from '@atlaskit/theme/colors';
|
|
7
|
-
export var playButtonClassName = 'media-card-play-button';
|
|
8
|
-
var bkgClassName = 'play-icon-background';
|
|
9
|
-
var discSize = 48;
|
|
10
|
-
var discSizeHover = 56;
|
|
11
|
-
export var fixedPlayButtonStyles = "\n .".concat(bkgClassName, " {\n width: ").concat(discSizeHover, "px;\n height: ").concat(discSizeHover, "px;\n }\n");
|
|
12
|
-
export var Wrapper = styled.div.attrs({
|
|
13
|
-
className: playButtonClassName
|
|
14
|
-
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: ", ";\n span {\n position: absolute;\n }\n"])), N0);
|
|
15
|
-
Wrapper.displayName = 'PlayButtonWrapper';
|
|
16
|
-
export var Background = styled.div.attrs({
|
|
17
|
-
className: bkgClassName
|
|
18
|
-
})(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n transition-property: width, height;\n transition-duration: 0.1s;\n position: absolute;\n width: ", "px;\n height: ", "px;\n background: ", ";\n border-radius: 100%;\n"])), discSize, discSize, N90A);
|
|
19
|
-
Background.displayName = 'PlayButtonBackground';
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
|
|
4
|
-
var _templateObject, _templateObject2;
|
|
5
|
-
|
|
6
|
-
import styled from 'styled-components';
|
|
7
|
-
import { getCSSUnitValue } from '../../utils/getCSSUnitValue';
|
|
8
|
-
import { getDefaultCardDimensions } from '../../utils/cardDimensions';
|
|
9
|
-
import { fontFamily } from '@atlaskit/theme/constants';
|
|
10
|
-
import { borderRadius } from '@atlaskit/media-ui';
|
|
11
|
-
import { N20, N60A } from '@atlaskit/theme/colors';
|
|
12
|
-
import { akEditorSelectedBoxShadow } from '@atlaskit/editor-shared-styles/consts';
|
|
13
|
-
import { hideNativeBrowserTextSelectionStyles } from '@atlaskit/editor-shared-styles/selection';
|
|
14
|
-
import { transition } from '../../styles';
|
|
15
|
-
import { tickBoxClassName, tickboxFixedStyles } from './tickBox/styled';
|
|
16
|
-
import { fixedBlanketStyles, blanketClassName } from './blanket/styled';
|
|
17
|
-
import { fixedActionBarStyles, actionsBarClassName } from './actionsBar/styled';
|
|
18
|
-
import { fixedPlayButtonStyles, playButtonClassName } from './playButton/styled';
|
|
19
|
-
import { Breakpoint, responsiveSettings } from './common';
|
|
20
|
-
var breakpointSizes = [[Breakpoint.SMALL, 599], [Breakpoint.LARGE, Infinity]];
|
|
21
|
-
export var calcBreakpointSize = function calcBreakpointSize() {
|
|
22
|
-
var wrapperWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
23
|
-
|
|
24
|
-
var _ref = breakpointSizes.find(function (_ref3) {
|
|
25
|
-
var _ref4 = _slicedToArray(_ref3, 2),
|
|
26
|
-
_breakpoint = _ref4[0],
|
|
27
|
-
limit = _ref4[1];
|
|
28
|
-
|
|
29
|
-
return wrapperWidth <= limit;
|
|
30
|
-
}) || [Breakpoint.SMALL],
|
|
31
|
-
_ref2 = _slicedToArray(_ref, 1),
|
|
32
|
-
breakpoint = _ref2[0];
|
|
33
|
-
|
|
34
|
-
return breakpoint;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
var generateResponsiveStyles = function generateResponsiveStyles() {
|
|
38
|
-
var breakpoint = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Breakpoint.SMALL;
|
|
39
|
-
var setting = responsiveSettings[breakpoint];
|
|
40
|
-
return "\n font-size: ".concat(setting.fontSize, "px;\n line-height: ").concat(setting.lineHeight, "px;\n ");
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
var getWrapperDimensions = function getWrapperDimensions(dimensions, appearance) {
|
|
44
|
-
var _ref5 = dimensions || {},
|
|
45
|
-
width = _ref5.width,
|
|
46
|
-
height = _ref5.height;
|
|
47
|
-
|
|
48
|
-
var _getDefaultCardDimens = getDefaultCardDimensions(appearance),
|
|
49
|
-
defaultWidth = _getDefaultCardDimens.width,
|
|
50
|
-
defaultHeight = _getDefaultCardDimens.height;
|
|
51
|
-
|
|
52
|
-
return "\n width: ".concat(getCSSUnitValue(width || defaultWidth), ";\n max-width: 100%;\n height: ").concat(getCSSUnitValue(height || defaultHeight), ";\n max-height: 100%;\n ");
|
|
53
|
-
}; // This is a trick to simulate the blue border without affecting the dimensions.
|
|
54
|
-
// CSS outline has no 'radius', therefore we can't achieve the same effect with it
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var getWrapperShadow = function getWrapperShadow(disableOverlay, selected) {
|
|
58
|
-
var withOverlayShadow = !disableOverlay ? "0 1px 1px ".concat(N60A, ", 0 0 1px 0 ").concat(N60A) : '';
|
|
59
|
-
var selectedShadow = selected ? akEditorSelectedBoxShadow : '';
|
|
60
|
-
var shadow = [selectedShadow, withOverlayShadow].filter(Boolean).join(', ');
|
|
61
|
-
return shadow ? "box-shadow: ".concat(shadow, ";") : '';
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var getCursorStyle = function getCursorStyle(cursor) {
|
|
65
|
-
return "cursor: ".concat(cursor, ";");
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
var getClickablePlayButtonStyles = function getClickablePlayButtonStyles(isPlayButtonClickable) {
|
|
69
|
-
if (!isPlayButtonClickable) {
|
|
70
|
-
return '';
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return "\n &:hover .".concat(playButtonClassName, " {\n ").concat(fixedPlayButtonStyles, "\n }\n ");
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
var getSelectableTickBoxStyles = function getSelectableTickBoxStyles(isTickBoxSelectable) {
|
|
77
|
-
if (!isTickBoxSelectable) {
|
|
78
|
-
return '';
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return "\n &:hover .".concat(tickBoxClassName, " {\n ").concat(tickboxFixedStyles, "\n }\n ");
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export var NewFileExperienceWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref6) {
|
|
85
|
-
var breakpoint = _ref6.breakpoint,
|
|
86
|
-
dimensions = _ref6.dimensions,
|
|
87
|
-
appearance = _ref6.appearance,
|
|
88
|
-
disableOverlay = _ref6.disableOverlay,
|
|
89
|
-
displayBackground = _ref6.displayBackground,
|
|
90
|
-
selected = _ref6.selected,
|
|
91
|
-
isPlayButtonClickable = _ref6.isPlayButtonClickable,
|
|
92
|
-
isTickBoxSelectable = _ref6.isTickBoxSelectable,
|
|
93
|
-
shouldDisplayTooltip = _ref6.shouldDisplayTooltip,
|
|
94
|
-
mediaCardCursor = _ref6.mediaCardCursor;
|
|
95
|
-
return "\n ".concat(transition(), "\n box-sizing: border-box;\n * {\n box-sizing: border-box;\n }\n position: relative;\n font-family: ").concat(fontFamily(), ";\n ").concat(getWrapperDimensions(dimensions, appearance), "\n ").concat(displayBackground ? "background-color: ".concat(N20, ";") : '', "\n ").concat(borderRadius, "\n ").concat(getCursorStyle(mediaCardCursor), "\n ").concat(getWrapperShadow(disableOverlay, selected), "\n ").concat(generateResponsiveStyles(breakpoint), "\n ").concat(hideNativeBrowserTextSelectionStyles, "\n\n /* We use classnames from here exceptionally to be able to handle styles when the Card is on hover */\n ").concat(getClickablePlayButtonStyles(isPlayButtonClickable), "\n ").concat(getSelectableTickBoxStyles(isTickBoxSelectable), "\n &:hover .").concat(blanketClassName, " {\n ").concat(fixedBlanketStyles, "\n }\n\n &:hover .").concat(actionsBarClassName, " {\n ").concat(fixedActionBarStyles, "\n }\n\n /* Tooltip does not support percentage dimensions. We enforce them here */\n ").concat(shouldDisplayTooltip ? "> div { width: 100%; height: 100% }" : '', "\n");
|
|
96
|
-
});
|
|
97
|
-
NewFileExperienceWrapper.displayName = 'NewFileExperienceWrapper';
|
|
98
|
-
export var CardImageContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n max-width: 100%;\n width: 100%;\n height: 100%;\n max-height: 100%;\n overflow: hidden;\n ", "\n"])), borderRadius);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject;
|
|
4
|
-
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { transition } from '../../../styles';
|
|
7
|
-
import { B200, N0, N100 } from '@atlaskit/theme/colors';
|
|
8
|
-
export var tickBoxClassName = 'media-card-tickbox';
|
|
9
|
-
export var tickboxFixedStyles = "\n background-color: ".concat(N0, ";\n color: ").concat(N100, ";\n");
|
|
10
|
-
|
|
11
|
-
var getSelectedStyles = function getSelectedStyles(selected) {
|
|
12
|
-
return selected ? "\n background-color: ".concat(B200, ";\n color: white;\n ") : "";
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export var Wrapper = styled.div.attrs({
|
|
16
|
-
className: tickBoxClassName
|
|
17
|
-
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
18
|
-
var selected = _ref.selected;
|
|
19
|
-
return "\n ".concat(transition(), "\n font-size: 14px;\n width: 14px;\n height: 14px;\n position: absolute;\n top: 7px;\n left: 7px;\n border-radius: 20px;\n color: transparent;\n\n /* Enforce dimensions and position of \"tick\" icon */\n span {\n display: block;\n svg {\n height: 14px;\n }\n }\n ").concat(getSelectedStyles(selected), "\n ");
|
|
20
|
-
});
|
|
21
|
-
Wrapper.displayName = 'TickBoxWrapper';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
4
|
-
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { responsiveSettings, getTitleBoxHeight, Breakpoint } from '../common';
|
|
7
|
-
import { N0 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { rgba } from '../../../styles/mixins';
|
|
9
|
-
|
|
10
|
-
var generateResponsiveStyles = function generateResponsiveStyles() {
|
|
11
|
-
var breakpoint = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Breakpoint.SMALL;
|
|
12
|
-
var setting = responsiveSettings[breakpoint];
|
|
13
|
-
var verticalPadding = setting.titleBox.verticalPadding;
|
|
14
|
-
var horizontalPadding = setting.titleBox.horizontalPadding;
|
|
15
|
-
var height = getTitleBoxHeight(breakpoint);
|
|
16
|
-
return "\n height: ".concat(height, "px;\n padding: ").concat(verticalPadding, "px ").concat(horizontalPadding, "px;\n ");
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
var HEX_REGEX = /^#[0-9A-F]{6}$/i;
|
|
20
|
-
export var TitleBoxWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
21
|
-
var breakpoint = _ref.breakpoint,
|
|
22
|
-
titleBoxBgColor = _ref.titleBoxBgColor;
|
|
23
|
-
return "\n position: absolute;\n bottom: 0;\n width: 100%;\n background-color: ".concat(rgba(titleBoxBgColor && HEX_REGEX.test(titleBoxBgColor) ? titleBoxBgColor : N0, 0.8), ";\n color: inherit;\n display: flex;\n flex-direction: column;\n justify-content: center;\n ").concat(generateResponsiveStyles(breakpoint), "\n ");
|
|
24
|
-
});
|
|
25
|
-
TitleBoxWrapper.displayName = 'TitleBoxWrapper';
|
|
26
|
-
var infoStyles = "\n white-space: nowrap;\n overflow: hidden;\n";
|
|
27
|
-
var iconOverlapStyles = "\n padding-right: 10px;\n";
|
|
28
|
-
export var TitleBoxHeader = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref2) {
|
|
29
|
-
var hasIconOverlap = _ref2.hasIconOverlap;
|
|
30
|
-
return "\n font-weight: 600;\n ".concat(infoStyles, "\n ").concat(hasIconOverlap && iconOverlapStyles, "\n ");
|
|
31
|
-
});
|
|
32
|
-
TitleBoxHeader.displayName = 'FailedTitleBoxHeader';
|
|
33
|
-
export var TitleBoxFooter = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref3) {
|
|
34
|
-
var hasIconOverlap = _ref3.hasIconOverlap;
|
|
35
|
-
return "\n text-overflow: ellipsis;\n ".concat(infoStyles, "\n ").concat(hasIconOverlap && iconOverlapStyles, "\n ");
|
|
36
|
-
});
|
|
37
|
-
TitleBoxFooter.displayName = 'TitleBoxFooter';
|
|
38
|
-
export var TitleBoxIcon = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n right: 4px;\n bottom: 0px;\n"])));
|
|
39
|
-
TitleBoxIcon.displayName = 'TitleBoxIcon';
|
|
40
|
-
export var ErrorMessageWrapper = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n span {\n vertical-align: middle;\n :nth-child(2) {\n margin-left: 4px;\n margin-right: 4px;\n }\n }\n"])));
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject;
|
|
4
|
-
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
export var ErrorIconWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n color: #ff991f;\n"])));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject;
|
|
4
|
-
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { size } from '@atlaskit/media-ui';
|
|
7
|
-
export var FileTypeIcon = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n float: left;\n margin-right: 6px;\n position: relative;\n top: 1px;\n img {\n ", ";\n }\n"])), size('12px !important'));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
4
|
-
|
|
5
|
-
import styled, { keyframes } from 'styled-components';
|
|
6
|
-
import { center, borderRadius } from '@atlaskit/media-ui';
|
|
7
|
-
import { themed } from '@atlaskit/theme/components';
|
|
8
|
-
import { N20, DN50, N50, DN100 } from '@atlaskit/theme/colors';
|
|
9
|
-
export var blinkLoadingAnimation = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0%{\n opacity: 1;\n }\n\n 50%{\n opacity: 0.6;\n }\n\n 100%{\n opacity: 1;\n }\n"])));
|
|
10
|
-
export var Wrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", " background: ", ";\n color: ", ";\n ", "\n max-height: 100%;\n max-width: 100%;\n\n ", "\n"])), center, themed({
|
|
11
|
-
light: N20,
|
|
12
|
-
dark: DN50
|
|
13
|
-
}), themed({
|
|
14
|
-
light: N50,
|
|
15
|
-
dark: DN100
|
|
16
|
-
}), borderRadius, function (props) {
|
|
17
|
-
return "\n width: ".concat(props.dimensions.width, ";\n height: ").concat(props.dimensions.height, ";\n ");
|
|
18
|
-
});
|
|
19
|
-
export var AnimatedWrapper = styled(Wrapper)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n > span {\n animation: ", " 0.8s infinite;\n }\n"])), blinkLoadingAnimation);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
|
-
var _templateObject;
|
|
4
|
-
|
|
5
|
-
import styled from 'styled-components';
|
|
6
|
-
import { borderRadius } from '@atlaskit/media-ui';
|
|
7
|
-
export var ProgressWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", " z-index: 30;\n overflow: hidden;\n background-color: rgba(255, 255, 255, 0.3);\n\n .progressBar {\n width: 0%;\n height: 3px;\n transition: width 0.25s ease-in;\n background-color: white;\n }\n"])), borderRadius);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Everything about this file change is just wrong.
|
|
3
|
-
* Mostly because we do bad things with classes.
|
|
4
|
-
* This is all wrong and hopefully will be removed from existence with card v3,
|
|
5
|
-
* so please don’t be too sad about all this!
|
|
6
|
-
*/
|
|
7
|
-
import { HTMLAttributes, ComponentClass } from 'react';
|
|
8
|
-
export interface OverlayProps {
|
|
9
|
-
hasError?: boolean;
|
|
10
|
-
noHover?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const TickBox: ComponentClass<HTMLAttributes<{}> & OverlayProps>;
|
|
13
|
-
export declare const Overlay: ComponentClass<HTMLAttributes<{}> & OverlayProps>;
|
|
14
|
-
export declare const ErrorLine: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>>;
|
|
15
|
-
export declare const LeftColumn: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>>;
|
|
16
|
-
export declare const TopRow: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>>;
|
|
17
|
-
export declare const BottomRow: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>>;
|
|
18
|
-
export declare const RightColumn: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>>;
|
|
19
|
-
export declare const ErrorMessage: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>>;
|
|
20
|
-
export declare const AltWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>>;
|
|
21
|
-
export declare const TitleWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & (import("@atlaskit/theme").ThemeProps | undefined), any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & (import("@atlaskit/theme").ThemeProps | undefined)>;
|
|
22
|
-
export declare const Subtitle: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>>;
|
|
23
|
-
export declare const Metadata: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>>;
|